storybook 9.0.8 → 9.0.9
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/bin/index.cjs +54 -61
- package/dist/bin/index.js +45 -52
- package/dist/cli/bin/index.cjs +572 -572
- package/dist/cli/bin/index.js +582 -582
- package/dist/common/index.cjs +677 -684
- package/dist/common/index.d.ts +0 -7
- package/dist/common/index.js +680 -687
- package/dist/core-server/presets/common-manager.js +2545 -2507
- package/dist/csf/index.d.ts +3 -1
- package/dist/instrumenter/index.cjs +958 -934
- package/dist/instrumenter/index.d.ts +1 -0
- package/dist/instrumenter/index.js +933 -908
- package/dist/manager/globals-runtime.js +8514 -8489
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/preview/runtime.js +7488 -7459
- package/dist/preview-api/index.cjs +4438 -2648
- package/dist/preview-api/index.js +4231 -2435
- package/dist/telemetry/index.cjs +521 -521
- package/dist/telemetry/index.js +526 -526
- package/package.json +1 -185
- package/dist/actions/preview.cjs +0 -159
- package/dist/actions/preview.d.ts +0 -555
- package/dist/actions/preview.js +0 -149
- package/dist/backgrounds/index.cjs +0 -148
- package/dist/backgrounds/index.d.ts +0 -592
- package/dist/backgrounds/index.js +0 -130
- package/dist/backgrounds/preview.cjs +0 -143
- package/dist/backgrounds/preview.d.ts +0 -555
- package/dist/backgrounds/preview.js +0 -127
- package/dist/component-testing/index.cjs +0 -23
- package/dist/component-testing/index.d.ts +0 -3
- package/dist/component-testing/index.js +0 -5
- package/dist/component-testing/preview.cjs +0 -40
- package/dist/component-testing/preview.d.ts +0 -5
- package/dist/component-testing/preview.js +0 -25
- package/dist/controls/preview.cjs +0 -26
- package/dist/controls/preview.d.ts +0 -555
- package/dist/controls/preview.js +0 -9
- package/dist/highlight/preview.cjs +0 -590
- package/dist/highlight/preview.d.ts +0 -555
- package/dist/highlight/preview.js +0 -574
- package/dist/measure/index.cjs +0 -476
- package/dist/measure/index.d.ts +0 -567
- package/dist/measure/index.js +0 -464
- package/dist/measure/preview.cjs +0 -466
- package/dist/measure/preview.d.ts +0 -560
- package/dist/measure/preview.js +0 -450
- package/dist/outline/index.cjs +0 -528
- package/dist/outline/index.d.ts +0 -567
- package/dist/outline/index.js +0 -500
- package/dist/outline/preview.cjs +0 -518
- package/dist/outline/preview.d.ts +0 -560
- package/dist/outline/preview.js +0 -486
- package/dist/test/preview.cjs +0 -73
- package/dist/test/preview.d.ts +0 -555
- package/dist/test/preview.js +0 -66
- package/dist/viewport/preview.cjs +0 -35
- package/dist/viewport/preview.d.ts +0 -569
- package/dist/viewport/preview.js +0 -19
package/dist/telemetry/index.js
CHANGED
|
@@ -16,15 +16,15 @@ var i = (t, e) => $t(t, "name", { value: e, configurable: !0 }), N = /* @__PURE_
|
|
|
16
16
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
17
17
|
throw Error('Dynamic require of "' + t + '" is not supported');
|
|
18
18
|
});
|
|
19
|
-
var
|
|
19
|
+
var bi = (t, e) => () => (t && (e = t(t = 0)), e);
|
|
20
20
|
var I = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
|
|
21
|
-
var
|
|
21
|
+
var xi = (t, e, r, n) => {
|
|
22
22
|
if (e && typeof e == "object" || typeof e == "function")
|
|
23
23
|
for (let s of hi(e))
|
|
24
24
|
!gi.call(t, s) && s !== r && $t(t, s, { get: () => e[s], enumerable: !(n = mi(e, s)) || n.enumerable });
|
|
25
25
|
return t;
|
|
26
26
|
};
|
|
27
|
-
var G = (t, e, r) => (r = t != null ? fi(yi(t)) : {},
|
|
27
|
+
var G = (t, e, r) => (r = t != null ? fi(yi(t)) : {}, xi(
|
|
28
28
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
29
|
// file that has been converted to a CommonJS file using a Babel-
|
|
30
30
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
@@ -35,18 +35,18 @@ var G = (t, e, r) => (r = t != null ? fi(yi(t)) : {}, bi(
|
|
|
35
35
|
|
|
36
36
|
// ../node_modules/picocolors/picocolors.js
|
|
37
37
|
var Xr = I((pl, Vt) => {
|
|
38
|
-
var Qe = process || {}, Hr = Qe.argv || [], Xe = Qe.env || {},
|
|
39
|
-
includes("--color") || Qe.platform === "win32" || (Qe.stdout || {}).isTTY && Xe.TERM !== "dumb" || !!Xe.CI),
|
|
38
|
+
var Qe = process || {}, Hr = Qe.argv || [], Xe = Qe.env || {}, vi = !(Xe.NO_COLOR || Hr.includes("--no-color")) && (!!Xe.FORCE_COLOR || Hr.
|
|
39
|
+
includes("--color") || Qe.platform === "win32" || (Qe.stdout || {}).isTTY && Xe.TERM !== "dumb" || !!Xe.CI), _i = /* @__PURE__ */ i((t, e, r = t) => (n) => {
|
|
40
40
|
let s = "" + n, o = s.indexOf(e, t.length);
|
|
41
|
-
return ~o ? t +
|
|
42
|
-
}, "formatter"),
|
|
41
|
+
return ~o ? t + wi(s, e, r, o) + e : t + s + e;
|
|
42
|
+
}, "formatter"), wi = /* @__PURE__ */ i((t, e, r, n) => {
|
|
43
43
|
let s = "", o = 0;
|
|
44
44
|
do
|
|
45
45
|
s += t.substring(o, n) + r, o = n + e.length, n = t.indexOf(e, o);
|
|
46
46
|
while (~n);
|
|
47
47
|
return s + t.substring(o);
|
|
48
|
-
}, "replaceClose"), Yr = /* @__PURE__ */ i((t =
|
|
49
|
-
let e = t ?
|
|
48
|
+
}, "replaceClose"), Yr = /* @__PURE__ */ i((t = vi) => {
|
|
49
|
+
let e = t ? _i : () => String;
|
|
50
50
|
return {
|
|
51
51
|
isColorSupported: t,
|
|
52
52
|
reset: e("\x1B[0m", "\x1B[0m"),
|
|
@@ -309,51 +309,51 @@ var st = I((z) => {
|
|
|
309
309
|
var Jt = I((Kt) => {
|
|
310
310
|
"use strict";
|
|
311
311
|
Object.defineProperty(Kt, "__esModule", { value: !0 });
|
|
312
|
-
var ee = Ne(),
|
|
312
|
+
var ee = Ne(), O = st(), Mi = /* @__PURE__ */ i((t, e) => {
|
|
313
313
|
let r;
|
|
314
314
|
switch (t.code) {
|
|
315
|
-
case
|
|
315
|
+
case O.ZodIssueCode.invalid_type:
|
|
316
316
|
t.received === ee.ZodParsedType.undefined ? r = "Required" : r = `Expected ${t.expected}, received ${t.received}`;
|
|
317
317
|
break;
|
|
318
|
-
case
|
|
318
|
+
case O.ZodIssueCode.invalid_literal:
|
|
319
319
|
r = `Invalid literal value, expected ${JSON.stringify(t.expected, ee.util.jsonStringifyReplacer)}`;
|
|
320
320
|
break;
|
|
321
|
-
case
|
|
321
|
+
case O.ZodIssueCode.unrecognized_keys:
|
|
322
322
|
r = `Unrecognized key(s) in object: ${ee.util.joinValues(t.keys, ", ")}`;
|
|
323
323
|
break;
|
|
324
|
-
case
|
|
324
|
+
case O.ZodIssueCode.invalid_union:
|
|
325
325
|
r = "Invalid input";
|
|
326
326
|
break;
|
|
327
|
-
case
|
|
327
|
+
case O.ZodIssueCode.invalid_union_discriminator:
|
|
328
328
|
r = `Invalid discriminator value. Expected ${ee.util.joinValues(t.options)}`;
|
|
329
329
|
break;
|
|
330
|
-
case
|
|
330
|
+
case O.ZodIssueCode.invalid_enum_value:
|
|
331
331
|
r = `Invalid enum value. Expected ${ee.util.joinValues(t.options)}, received '${t.received}'`;
|
|
332
332
|
break;
|
|
333
|
-
case
|
|
333
|
+
case O.ZodIssueCode.invalid_arguments:
|
|
334
334
|
r = "Invalid function arguments";
|
|
335
335
|
break;
|
|
336
|
-
case
|
|
336
|
+
case O.ZodIssueCode.invalid_return_type:
|
|
337
337
|
r = "Invalid function return type";
|
|
338
338
|
break;
|
|
339
|
-
case
|
|
339
|
+
case O.ZodIssueCode.invalid_date:
|
|
340
340
|
r = "Invalid date";
|
|
341
341
|
break;
|
|
342
|
-
case
|
|
342
|
+
case O.ZodIssueCode.invalid_string:
|
|
343
343
|
typeof t.validation == "object" ? "includes" in t.validation ? (r = `Invalid input: must include "${t.validation.includes}"`, typeof t.
|
|
344
344
|
validation.position == "number" && (r = `${r} at one or more positions greater than or equal to ${t.validation.position}`)) : "start\
|
|
345
345
|
sWith" in t.validation ? r = `Invalid input: must start with "${t.validation.startsWith}"` : "endsWith" in t.validation ? r = `Invalid input\
|
|
346
346
|
: must end with "${t.validation.endsWith}"` : ee.util.assertNever(t.validation) : t.validation !== "regex" ? r = `Invalid ${t.validation}` :
|
|
347
347
|
r = "Invalid";
|
|
348
348
|
break;
|
|
349
|
-
case
|
|
349
|
+
case O.ZodIssueCode.too_small:
|
|
350
350
|
t.type === "array" ? r = `Array must contain ${t.exact ? "exactly" : t.inclusive ? "at least" : "more than"} ${t.minimum} element(s)` :
|
|
351
351
|
t.type === "string" ? r = `String must contain ${t.exact ? "exactly" : t.inclusive ? "at least" : "over"} ${t.minimum} character(s)` :
|
|
352
352
|
t.type === "number" ? r = `Number must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater tha\
|
|
353
353
|
n "}${t.minimum}` : t.type === "date" ? r = `Date must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "gre\
|
|
354
354
|
ater than "}${new Date(Number(t.minimum))}` : r = "Invalid input";
|
|
355
355
|
break;
|
|
356
|
-
case
|
|
356
|
+
case O.ZodIssueCode.too_big:
|
|
357
357
|
t.type === "array" ? r = `Array must contain ${t.exact ? "exactly" : t.inclusive ? "at most" : "less than"} ${t.maximum} element(s)` :
|
|
358
358
|
t.type === "string" ? r = `String must contain ${t.exact ? "exactly" : t.inclusive ? "at most" : "under"} ${t.maximum} character(s)` :
|
|
359
359
|
t.type === "number" ? r = `Number must be ${t.exact ? "exactly" : t.inclusive ? "less than or equal to" : "less than"} ${t.maximum}` :
|
|
@@ -361,16 +361,16 @@ ater than "}${new Date(Number(t.minimum))}` : r = "Invalid input";
|
|
|
361
361
|
t.type === "date" ? r = `Date must be ${t.exact ? "exactly" : t.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(
|
|
362
362
|
Number(t.maximum))}` : r = "Invalid input";
|
|
363
363
|
break;
|
|
364
|
-
case
|
|
364
|
+
case O.ZodIssueCode.custom:
|
|
365
365
|
r = "Invalid input";
|
|
366
366
|
break;
|
|
367
|
-
case
|
|
367
|
+
case O.ZodIssueCode.invalid_intersection_types:
|
|
368
368
|
r = "Intersection results could not be merged";
|
|
369
369
|
break;
|
|
370
|
-
case
|
|
370
|
+
case O.ZodIssueCode.not_multiple_of:
|
|
371
371
|
r = `Number must be a multiple of ${t.multipleOf}`;
|
|
372
372
|
break;
|
|
373
|
-
case
|
|
373
|
+
case O.ZodIssueCode.not_finite:
|
|
374
374
|
r = "Number must be finite";
|
|
375
375
|
break;
|
|
376
376
|
default:
|
|
@@ -504,10 +504,10 @@ var Yt = I((T) => {
|
|
|
504
504
|
T.INVALID = Object.freeze({
|
|
505
505
|
status: "aborted"
|
|
506
506
|
});
|
|
507
|
-
var
|
|
508
|
-
T.DIRTY =
|
|
509
|
-
var
|
|
510
|
-
T.OK =
|
|
507
|
+
var Wi = /* @__PURE__ */ i((t) => ({ status: "dirty", value: t }), "DIRTY");
|
|
508
|
+
T.DIRTY = Wi;
|
|
509
|
+
var qi = /* @__PURE__ */ i((t) => ({ status: "valid", value: t }), "OK");
|
|
510
|
+
T.OK = qi;
|
|
511
511
|
var Gi = /* @__PURE__ */ i((t) => t.status === "aborted", "isAborted");
|
|
512
512
|
T.isAborted = Gi;
|
|
513
513
|
var zi = /* @__PURE__ */ i((t) => t.status === "dirty", "isDirty");
|
|
@@ -519,20 +519,20 @@ var Yt = I((T) => {
|
|
|
519
519
|
});
|
|
520
520
|
|
|
521
521
|
// ../node_modules/zod/lib/helpers/typeAliases.js
|
|
522
|
-
var
|
|
522
|
+
var xn = I((bn) => {
|
|
523
523
|
"use strict";
|
|
524
|
-
Object.defineProperty(
|
|
524
|
+
Object.defineProperty(bn, "__esModule", { value: !0 });
|
|
525
525
|
});
|
|
526
526
|
|
|
527
527
|
// ../node_modules/zod/lib/helpers/errorUtil.js
|
|
528
|
-
var
|
|
528
|
+
var _n = I((it) => {
|
|
529
529
|
"use strict";
|
|
530
530
|
Object.defineProperty(it, "__esModule", { value: !0 });
|
|
531
531
|
it.errorUtil = void 0;
|
|
532
|
-
var
|
|
532
|
+
var vn;
|
|
533
533
|
(function(t) {
|
|
534
534
|
t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e?.message;
|
|
535
|
-
})(
|
|
535
|
+
})(vn || (it.errorUtil = vn = {}));
|
|
536
536
|
});
|
|
537
537
|
|
|
538
538
|
// ../node_modules/zod/lib/types.js
|
|
@@ -560,7 +560,7 @@ t declare it");
|
|
|
560
560
|
d.promise = d.preprocess = d.pipeline = d.ostring = d.optional = d.onumber = d.oboolean = d.object = d.number = d.nullable = d.null = d.never =
|
|
561
561
|
d.nativeEnum = d.nan = d.map = d.literal = d.lazy = d.intersection = d.instanceof = d.function = d.enum = d.effect = d.discriminatedUnion =
|
|
562
562
|
d.date = void 0;
|
|
563
|
-
var at = ot(), y =
|
|
563
|
+
var at = ot(), y = _n(), u = Yt(), h = Ne(), m = st(), D = class {
|
|
564
564
|
static {
|
|
565
565
|
i(this, "ParseInputLazyPath");
|
|
566
566
|
}
|
|
@@ -571,7 +571,7 @@ t declare it");
|
|
|
571
571
|
return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.
|
|
572
572
|
push(...this._path, this._key)), this._cachedPath;
|
|
573
573
|
}
|
|
574
|
-
},
|
|
574
|
+
}, wn = /* @__PURE__ */ i((t, e) => {
|
|
575
575
|
if ((0, u.isValid)(e))
|
|
576
576
|
return { success: !0, data: e.value };
|
|
577
577
|
if (!t.common.issues.length)
|
|
@@ -586,7 +586,7 @@ t declare it");
|
|
|
586
586
|
}
|
|
587
587
|
};
|
|
588
588
|
}, "handleResult");
|
|
589
|
-
function
|
|
589
|
+
function x(t) {
|
|
590
590
|
if (!t)
|
|
591
591
|
return {};
|
|
592
592
|
let { errorMap: e, invalid_type_error: r, required_error: n, description: s } = t;
|
|
@@ -600,8 +600,8 @@ t declare it");
|
|
|
600
600
|
p : c.defaultError };
|
|
601
601
|
}, "customMap"), description: s };
|
|
602
602
|
}
|
|
603
|
-
i(
|
|
604
|
-
var
|
|
603
|
+
i(x, "processCreateParams");
|
|
604
|
+
var v = class {
|
|
605
605
|
static {
|
|
606
606
|
i(this, "ZodType");
|
|
607
607
|
}
|
|
@@ -664,7 +664,7 @@ t declare it");
|
|
|
664
664
|
data: e,
|
|
665
665
|
parsedType: (0, h.getParsedType)(e)
|
|
666
666
|
}, o = this._parseSync({ data: e, path: s.path, parent: s });
|
|
667
|
-
return
|
|
667
|
+
return wn(s, o);
|
|
668
668
|
}
|
|
669
669
|
"~validate"(e) {
|
|
670
670
|
var r, n;
|
|
@@ -719,7 +719,7 @@ t declare it");
|
|
|
719
719
|
data: e,
|
|
720
720
|
parsedType: (0, h.getParsedType)(e)
|
|
721
721
|
}, s = this._parse({ data: e, path: n.path, parent: n }), o = await ((0, u.isAsync)(s) ? s : Promise.resolve(s));
|
|
722
|
-
return
|
|
722
|
+
return wn(n, o);
|
|
723
723
|
}
|
|
724
724
|
refine(e, r) {
|
|
725
725
|
let n = /* @__PURE__ */ i((s) => typeof r == "string" || typeof r > "u" ? { message: r } : typeof r == "function" ? r(s) : r, "getIssu\
|
|
@@ -769,7 +769,7 @@ eProperties");
|
|
|
769
769
|
return this.nullable().optional();
|
|
770
770
|
}
|
|
771
771
|
array() {
|
|
772
|
-
return
|
|
772
|
+
return q.create(this);
|
|
773
773
|
}
|
|
774
774
|
promise() {
|
|
775
775
|
return H.create(this, this._def);
|
|
@@ -782,7 +782,7 @@ eProperties");
|
|
|
782
782
|
}
|
|
783
783
|
transform(e) {
|
|
784
784
|
return new Z({
|
|
785
|
-
...
|
|
785
|
+
...x(this._def),
|
|
786
786
|
schema: this,
|
|
787
787
|
typeName: g.ZodEffects,
|
|
788
788
|
effect: { type: "transform", transform: e }
|
|
@@ -791,7 +791,7 @@ eProperties");
|
|
|
791
791
|
default(e) {
|
|
792
792
|
let r = typeof e == "function" ? e : () => e;
|
|
793
793
|
return new fe({
|
|
794
|
-
...
|
|
794
|
+
...x(this._def),
|
|
795
795
|
innerType: this,
|
|
796
796
|
defaultValue: r,
|
|
797
797
|
typeName: g.ZodDefault
|
|
@@ -801,13 +801,13 @@ eProperties");
|
|
|
801
801
|
return new Le({
|
|
802
802
|
typeName: g.ZodBranded,
|
|
803
803
|
type: this,
|
|
804
|
-
...
|
|
804
|
+
...x(this._def)
|
|
805
805
|
});
|
|
806
806
|
}
|
|
807
807
|
catch(e) {
|
|
808
808
|
let r = typeof e == "function" ? e : () => e;
|
|
809
809
|
return new me({
|
|
810
|
-
...
|
|
810
|
+
...x(this._def),
|
|
811
811
|
innerType: this,
|
|
812
812
|
catchValue: r,
|
|
813
813
|
typeName: g.ZodCatch
|
|
@@ -833,9 +833,9 @@ eProperties");
|
|
|
833
833
|
return this.safeParse(null).success;
|
|
834
834
|
}
|
|
835
835
|
};
|
|
836
|
-
d.ZodType =
|
|
837
|
-
d.Schema =
|
|
838
|
-
d.ZodSchema =
|
|
836
|
+
d.ZodType = v;
|
|
837
|
+
d.Schema = v;
|
|
838
|
+
d.ZodSchema = v;
|
|
839
839
|
var Hi = /^c[^\s-]{8,}$/i, Yi = /^[0-9a-z]+$/, Xi = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Qi = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,
|
|
840
840
|
ea = /^[a-z0-9_-]{21}$/i, ta = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, ra = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,
|
|
841
841
|
na = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, sa = "^(\\p{Extended_Pictographic}|\\p{Emoji_Comp\
|
|
@@ -880,7 +880,7 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
880
880
|
return !!((e === "v4" || !e) && ia.test(t) || (e === "v6" || !e) && ca.test(t));
|
|
881
881
|
}
|
|
882
882
|
i(ha, "isValidCidr");
|
|
883
|
-
var K = class t extends
|
|
883
|
+
var K = class t extends v {
|
|
884
884
|
static {
|
|
885
885
|
i(this, "ZodString");
|
|
886
886
|
}
|
|
@@ -1270,7 +1270,7 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1270
1270
|
checks: [],
|
|
1271
1271
|
typeName: g.ZodString,
|
|
1272
1272
|
coerce: (e = t?.coerce) !== null && e !== void 0 ? e : !1,
|
|
1273
|
-
...
|
|
1273
|
+
...x(t)
|
|
1274
1274
|
});
|
|
1275
1275
|
};
|
|
1276
1276
|
function ya(t, e) {
|
|
@@ -1279,7 +1279,7 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1279
1279
|
return o % a / Math.pow(10, s);
|
|
1280
1280
|
}
|
|
1281
1281
|
i(ya, "floatSafeRemainder");
|
|
1282
|
-
var te = class t extends
|
|
1282
|
+
var te = class t extends v {
|
|
1283
1283
|
static {
|
|
1284
1284
|
i(this, "ZodNumber");
|
|
1285
1285
|
}
|
|
@@ -1455,9 +1455,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1455
1455
|
checks: [],
|
|
1456
1456
|
typeName: g.ZodNumber,
|
|
1457
1457
|
coerce: t?.coerce || !1,
|
|
1458
|
-
...
|
|
1458
|
+
...x(t)
|
|
1459
1459
|
});
|
|
1460
|
-
var re = class t extends
|
|
1460
|
+
var re = class t extends v {
|
|
1461
1461
|
static {
|
|
1462
1462
|
i(this, "ZodBigInt");
|
|
1463
1463
|
}
|
|
@@ -1596,10 +1596,10 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1596
1596
|
checks: [],
|
|
1597
1597
|
typeName: g.ZodBigInt,
|
|
1598
1598
|
coerce: (e = t?.coerce) !== null && e !== void 0 ? e : !1,
|
|
1599
|
-
...
|
|
1599
|
+
...x(t)
|
|
1600
1600
|
});
|
|
1601
1601
|
};
|
|
1602
|
-
var ne = class extends
|
|
1602
|
+
var ne = class extends v {
|
|
1603
1603
|
static {
|
|
1604
1604
|
i(this, "ZodBoolean");
|
|
1605
1605
|
}
|
|
@@ -1619,9 +1619,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1619
1619
|
ne.create = (t) => new ne({
|
|
1620
1620
|
typeName: g.ZodBoolean,
|
|
1621
1621
|
coerce: t?.coerce || !1,
|
|
1622
|
-
...
|
|
1622
|
+
...x(t)
|
|
1623
1623
|
});
|
|
1624
|
-
var se = class t extends
|
|
1624
|
+
var se = class t extends v {
|
|
1625
1625
|
static {
|
|
1626
1626
|
i(this, "ZodDate");
|
|
1627
1627
|
}
|
|
@@ -1700,9 +1700,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1700
1700
|
checks: [],
|
|
1701
1701
|
coerce: t?.coerce || !1,
|
|
1702
1702
|
typeName: g.ZodDate,
|
|
1703
|
-
...
|
|
1703
|
+
...x(t)
|
|
1704
1704
|
});
|
|
1705
|
-
var
|
|
1705
|
+
var _e = class extends v {
|
|
1706
1706
|
static {
|
|
1707
1707
|
i(this, "ZodSymbol");
|
|
1708
1708
|
}
|
|
@@ -1718,12 +1718,12 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1718
1718
|
return (0, u.OK)(e.data);
|
|
1719
1719
|
}
|
|
1720
1720
|
};
|
|
1721
|
-
d.ZodSymbol =
|
|
1722
|
-
|
|
1721
|
+
d.ZodSymbol = _e;
|
|
1722
|
+
_e.create = (t) => new _e({
|
|
1723
1723
|
typeName: g.ZodSymbol,
|
|
1724
|
-
...
|
|
1724
|
+
...x(t)
|
|
1725
1725
|
});
|
|
1726
|
-
var oe = class extends
|
|
1726
|
+
var oe = class extends v {
|
|
1727
1727
|
static {
|
|
1728
1728
|
i(this, "ZodUndefined");
|
|
1729
1729
|
}
|
|
@@ -1742,9 +1742,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1742
1742
|
d.ZodUndefined = oe;
|
|
1743
1743
|
oe.create = (t) => new oe({
|
|
1744
1744
|
typeName: g.ZodUndefined,
|
|
1745
|
-
...
|
|
1745
|
+
...x(t)
|
|
1746
1746
|
});
|
|
1747
|
-
var ie = class extends
|
|
1747
|
+
var ie = class extends v {
|
|
1748
1748
|
static {
|
|
1749
1749
|
i(this, "ZodNull");
|
|
1750
1750
|
}
|
|
@@ -1763,9 +1763,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1763
1763
|
d.ZodNull = ie;
|
|
1764
1764
|
ie.create = (t) => new ie({
|
|
1765
1765
|
typeName: g.ZodNull,
|
|
1766
|
-
...
|
|
1766
|
+
...x(t)
|
|
1767
1767
|
});
|
|
1768
|
-
var J = class extends
|
|
1768
|
+
var J = class extends v {
|
|
1769
1769
|
static {
|
|
1770
1770
|
i(this, "ZodAny");
|
|
1771
1771
|
}
|
|
@@ -1779,9 +1779,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1779
1779
|
d.ZodAny = J;
|
|
1780
1780
|
J.create = (t) => new J({
|
|
1781
1781
|
typeName: g.ZodAny,
|
|
1782
|
-
...
|
|
1782
|
+
...x(t)
|
|
1783
1783
|
});
|
|
1784
|
-
var
|
|
1784
|
+
var W = class extends v {
|
|
1785
1785
|
static {
|
|
1786
1786
|
i(this, "ZodUnknown");
|
|
1787
1787
|
}
|
|
@@ -1792,12 +1792,12 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1792
1792
|
return (0, u.OK)(e.data);
|
|
1793
1793
|
}
|
|
1794
1794
|
};
|
|
1795
|
-
d.ZodUnknown =
|
|
1796
|
-
|
|
1795
|
+
d.ZodUnknown = W;
|
|
1796
|
+
W.create = (t) => new W({
|
|
1797
1797
|
typeName: g.ZodUnknown,
|
|
1798
|
-
...
|
|
1798
|
+
...x(t)
|
|
1799
1799
|
});
|
|
1800
|
-
var U = class extends
|
|
1800
|
+
var U = class extends v {
|
|
1801
1801
|
static {
|
|
1802
1802
|
i(this, "ZodNever");
|
|
1803
1803
|
}
|
|
@@ -1813,9 +1813,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1813
1813
|
d.ZodNever = U;
|
|
1814
1814
|
U.create = (t) => new U({
|
|
1815
1815
|
typeName: g.ZodNever,
|
|
1816
|
-
...
|
|
1816
|
+
...x(t)
|
|
1817
1817
|
});
|
|
1818
|
-
var
|
|
1818
|
+
var we = class extends v {
|
|
1819
1819
|
static {
|
|
1820
1820
|
i(this, "ZodVoid");
|
|
1821
1821
|
}
|
|
@@ -1831,12 +1831,12 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1831
1831
|
return (0, u.OK)(e.data);
|
|
1832
1832
|
}
|
|
1833
1833
|
};
|
|
1834
|
-
d.ZodVoid =
|
|
1835
|
-
|
|
1834
|
+
d.ZodVoid = we;
|
|
1835
|
+
we.create = (t) => new we({
|
|
1836
1836
|
typeName: g.ZodVoid,
|
|
1837
|
-
...
|
|
1837
|
+
...x(t)
|
|
1838
1838
|
});
|
|
1839
|
-
var
|
|
1839
|
+
var q = class t extends v {
|
|
1840
1840
|
static {
|
|
1841
1841
|
i(this, "ZodArray");
|
|
1842
1842
|
}
|
|
@@ -1904,34 +1904,34 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1904
1904
|
return this.min(1, e);
|
|
1905
1905
|
}
|
|
1906
1906
|
};
|
|
1907
|
-
d.ZodArray =
|
|
1908
|
-
|
|
1907
|
+
d.ZodArray = q;
|
|
1908
|
+
q.create = (t, e) => new q({
|
|
1909
1909
|
type: t,
|
|
1910
1910
|
minLength: null,
|
|
1911
1911
|
maxLength: null,
|
|
1912
1912
|
exactLength: null,
|
|
1913
1913
|
typeName: g.ZodArray,
|
|
1914
|
-
...
|
|
1914
|
+
...x(e)
|
|
1915
1915
|
});
|
|
1916
|
-
function
|
|
1917
|
-
if (t instanceof
|
|
1916
|
+
function ve(t) {
|
|
1917
|
+
if (t instanceof j) {
|
|
1918
1918
|
let e = {};
|
|
1919
1919
|
for (let r in t.shape) {
|
|
1920
1920
|
let n = t.shape[r];
|
|
1921
|
-
e[r] = M.create(
|
|
1921
|
+
e[r] = M.create(ve(n));
|
|
1922
1922
|
}
|
|
1923
|
-
return new
|
|
1923
|
+
return new j({
|
|
1924
1924
|
...t._def,
|
|
1925
1925
|
shape: /* @__PURE__ */ i(() => e, "shape")
|
|
1926
1926
|
});
|
|
1927
|
-
} else return t instanceof
|
|
1927
|
+
} else return t instanceof q ? new q({
|
|
1928
1928
|
...t._def,
|
|
1929
|
-
type:
|
|
1930
|
-
}) : t instanceof M ? M.create(
|
|
1929
|
+
type: ve(t.element)
|
|
1930
|
+
}) : t instanceof M ? M.create(ve(t.unwrap())) : t instanceof F ? F.create(ve(t.unwrap())) : t instanceof V ? V.create(t.items.map((e) => ve(
|
|
1931
1931
|
e))) : t;
|
|
1932
1932
|
}
|
|
1933
|
-
i(
|
|
1934
|
-
var
|
|
1933
|
+
i(ve, "deepPartialify");
|
|
1934
|
+
var j = class t extends v {
|
|
1935
1935
|
static {
|
|
1936
1936
|
i(this, "ZodObject");
|
|
1937
1937
|
}
|
|
@@ -1959,10 +1959,10 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1959
1959
|
a.includes(p) || c.push(p);
|
|
1960
1960
|
let l = [];
|
|
1961
1961
|
for (let p of a) {
|
|
1962
|
-
let f = o[p],
|
|
1962
|
+
let f = o[p], b = s.data[p];
|
|
1963
1963
|
l.push({
|
|
1964
1964
|
key: { status: "valid", value: p },
|
|
1965
|
-
value: f._parse(new D(s,
|
|
1965
|
+
value: f._parse(new D(s, b, s.path, p)),
|
|
1966
1966
|
alwaysSet: p in s.data
|
|
1967
1967
|
});
|
|
1968
1968
|
}
|
|
@@ -1984,11 +1984,11 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1984
1984
|
} else {
|
|
1985
1985
|
let p = this._def.catchall;
|
|
1986
1986
|
for (let f of c) {
|
|
1987
|
-
let
|
|
1987
|
+
let b = s.data[f];
|
|
1988
1988
|
l.push({
|
|
1989
1989
|
key: { status: "valid", value: f },
|
|
1990
1990
|
value: p._parse(
|
|
1991
|
-
new D(s,
|
|
1991
|
+
new D(s, b, s.path, f)
|
|
1992
1992
|
//, ctx.child(key), value, getParsedType(value)
|
|
1993
1993
|
),
|
|
1994
1994
|
alwaysSet: f in s.data
|
|
@@ -1998,10 +1998,10 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
1998
1998
|
return s.common.async ? Promise.resolve().then(async () => {
|
|
1999
1999
|
let p = [];
|
|
2000
2000
|
for (let f of l) {
|
|
2001
|
-
let
|
|
2001
|
+
let b = await f.key, _ = await f.value;
|
|
2002
2002
|
p.push({
|
|
2003
|
-
key:
|
|
2004
|
-
value:
|
|
2003
|
+
key: b,
|
|
2004
|
+
value: _,
|
|
2005
2005
|
alwaysSet: f.alwaysSet
|
|
2006
2006
|
});
|
|
2007
2007
|
}
|
|
@@ -2170,7 +2170,7 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2170
2170
|
* @deprecated
|
|
2171
2171
|
*/
|
|
2172
2172
|
deepPartial() {
|
|
2173
|
-
return
|
|
2173
|
+
return ve(this);
|
|
2174
2174
|
}
|
|
2175
2175
|
partial(e) {
|
|
2176
2176
|
let r = {};
|
|
@@ -2202,29 +2202,29 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2202
2202
|
return Cn(h.util.objectKeys(this.shape));
|
|
2203
2203
|
}
|
|
2204
2204
|
};
|
|
2205
|
-
d.ZodObject =
|
|
2206
|
-
|
|
2205
|
+
d.ZodObject = j;
|
|
2206
|
+
j.create = (t, e) => new j({
|
|
2207
2207
|
shape: /* @__PURE__ */ i(() => t, "shape"),
|
|
2208
2208
|
unknownKeys: "strip",
|
|
2209
2209
|
catchall: U.create(),
|
|
2210
2210
|
typeName: g.ZodObject,
|
|
2211
|
-
...
|
|
2211
|
+
...x(e)
|
|
2212
2212
|
});
|
|
2213
|
-
|
|
2213
|
+
j.strictCreate = (t, e) => new j({
|
|
2214
2214
|
shape: /* @__PURE__ */ i(() => t, "shape"),
|
|
2215
2215
|
unknownKeys: "strict",
|
|
2216
2216
|
catchall: U.create(),
|
|
2217
2217
|
typeName: g.ZodObject,
|
|
2218
|
-
...
|
|
2218
|
+
...x(e)
|
|
2219
2219
|
});
|
|
2220
|
-
|
|
2220
|
+
j.lazycreate = (t, e) => new j({
|
|
2221
2221
|
shape: t,
|
|
2222
2222
|
unknownKeys: "strip",
|
|
2223
2223
|
catchall: U.create(),
|
|
2224
2224
|
typeName: g.ZodObject,
|
|
2225
|
-
...
|
|
2225
|
+
...x(e)
|
|
2226
2226
|
});
|
|
2227
|
-
var ae = class extends
|
|
2227
|
+
var ae = class extends v {
|
|
2228
2228
|
static {
|
|
2229
2229
|
i(this, "ZodUnion");
|
|
2230
2230
|
}
|
|
@@ -2298,12 +2298,12 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2298
2298
|
ae.create = (t, e) => new ae({
|
|
2299
2299
|
options: t,
|
|
2300
2300
|
typeName: g.ZodUnion,
|
|
2301
|
-
...
|
|
2301
|
+
...x(e)
|
|
2302
2302
|
});
|
|
2303
2303
|
var B = /* @__PURE__ */ i((t) => t instanceof de ? B(t.schema) : t instanceof Z ? B(t.innerType()) : t instanceof ue ? [t.value] : t instanceof
|
|
2304
2304
|
le ? t.options : t instanceof pe ? h.util.objectValues(t.enum) : t instanceof fe ? B(t._def.innerType) : t instanceof oe ? [void 0] : t instanceof
|
|
2305
2305
|
ie ? [null] : t instanceof M ? [void 0, ...B(t.unwrap())] : t instanceof F ? [null, ...B(t.unwrap())] : t instanceof Le || t instanceof he ?
|
|
2306
|
-
B(t.unwrap()) : t instanceof me ? B(t._def.innerType) : [], "getDiscriminator"), dt = class t extends
|
|
2306
|
+
B(t.unwrap()) : t instanceof me ? B(t._def.innerType) : [], "getDiscriminator"), dt = class t extends v {
|
|
2307
2307
|
static {
|
|
2308
2308
|
i(this, "ZodDiscriminatedUnion");
|
|
2309
2309
|
}
|
|
@@ -2364,7 +2364,7 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2364
2364
|
discriminator: e,
|
|
2365
2365
|
options: r,
|
|
2366
2366
|
optionsMap: s,
|
|
2367
|
-
...
|
|
2367
|
+
...x(n)
|
|
2368
2368
|
});
|
|
2369
2369
|
}
|
|
2370
2370
|
};
|
|
@@ -2396,7 +2396,7 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2396
2396
|
} else return r === h.ZodParsedType.date && n === h.ZodParsedType.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
|
|
2397
2397
|
}
|
|
2398
2398
|
i(Qt, "mergeValues");
|
|
2399
|
-
var ce = class extends
|
|
2399
|
+
var ce = class extends v {
|
|
2400
2400
|
static {
|
|
2401
2401
|
i(this, "ZodIntersection");
|
|
2402
2402
|
}
|
|
@@ -2437,9 +2437,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2437
2437
|
left: t,
|
|
2438
2438
|
right: e,
|
|
2439
2439
|
typeName: g.ZodIntersection,
|
|
2440
|
-
...
|
|
2440
|
+
...x(r)
|
|
2441
2441
|
});
|
|
2442
|
-
var V = class t extends
|
|
2442
|
+
var V = class t extends v {
|
|
2443
2443
|
static {
|
|
2444
2444
|
i(this, "ZodTuple");
|
|
2445
2445
|
}
|
|
@@ -2490,10 +2490,10 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2490
2490
|
items: t,
|
|
2491
2491
|
typeName: g.ZodTuple,
|
|
2492
2492
|
rest: null,
|
|
2493
|
-
...
|
|
2493
|
+
...x(e)
|
|
2494
2494
|
});
|
|
2495
2495
|
};
|
|
2496
|
-
var ut = class t extends
|
|
2496
|
+
var ut = class t extends v {
|
|
2497
2497
|
static {
|
|
2498
2498
|
i(this, "ZodRecord");
|
|
2499
2499
|
}
|
|
@@ -2524,21 +2524,21 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2524
2524
|
return this._def.valueType;
|
|
2525
2525
|
}
|
|
2526
2526
|
static create(e, r, n) {
|
|
2527
|
-
return r instanceof
|
|
2527
|
+
return r instanceof v ? new t({
|
|
2528
2528
|
keyType: e,
|
|
2529
2529
|
valueType: r,
|
|
2530
2530
|
typeName: g.ZodRecord,
|
|
2531
|
-
...
|
|
2531
|
+
...x(n)
|
|
2532
2532
|
}) : new t({
|
|
2533
2533
|
keyType: K.create(),
|
|
2534
2534
|
valueType: e,
|
|
2535
2535
|
typeName: g.ZodRecord,
|
|
2536
|
-
...
|
|
2536
|
+
...x(r)
|
|
2537
2537
|
});
|
|
2538
2538
|
}
|
|
2539
2539
|
};
|
|
2540
2540
|
d.ZodRecord = ut;
|
|
2541
|
-
var ke = class extends
|
|
2541
|
+
var ke = class extends v {
|
|
2542
2542
|
static {
|
|
2543
2543
|
i(this, "ZodMap");
|
|
2544
2544
|
}
|
|
@@ -2588,9 +2588,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2588
2588
|
valueType: e,
|
|
2589
2589
|
keyType: t,
|
|
2590
2590
|
typeName: g.ZodMap,
|
|
2591
|
-
...
|
|
2591
|
+
...x(r)
|
|
2592
2592
|
});
|
|
2593
|
-
var Te = class t extends
|
|
2593
|
+
var Te = class t extends v {
|
|
2594
2594
|
static {
|
|
2595
2595
|
i(this, "ZodSet");
|
|
2596
2596
|
}
|
|
@@ -2657,9 +2657,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2657
2657
|
minSize: null,
|
|
2658
2658
|
maxSize: null,
|
|
2659
2659
|
typeName: g.ZodSet,
|
|
2660
|
-
...
|
|
2660
|
+
...x(e)
|
|
2661
2661
|
});
|
|
2662
|
-
var lt = class t extends
|
|
2662
|
+
var lt = class t extends v {
|
|
2663
2663
|
static {
|
|
2664
2664
|
i(this, "ZodFunction");
|
|
2665
2665
|
}
|
|
@@ -2714,9 +2714,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2714
2714
|
return (0, u.OK)(async function(...l) {
|
|
2715
2715
|
let p = new m.ZodError([]), f = await c._def.args.parseAsync(l, o).catch((k) => {
|
|
2716
2716
|
throw p.addIssue(n(l, k)), p;
|
|
2717
|
-
}),
|
|
2718
|
-
return await c._def.returns._def.type.parseAsync(
|
|
2719
|
-
throw p.addIssue(s(
|
|
2717
|
+
}), b = await Reflect.apply(a, this, f);
|
|
2718
|
+
return await c._def.returns._def.type.parseAsync(b, o).catch((k) => {
|
|
2719
|
+
throw p.addIssue(s(b, k)), p;
|
|
2720
2720
|
});
|
|
2721
2721
|
});
|
|
2722
2722
|
} else {
|
|
@@ -2725,10 +2725,10 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2725
2725
|
let p = c._def.args.safeParse(l, o);
|
|
2726
2726
|
if (!p.success)
|
|
2727
2727
|
throw new m.ZodError([n(l, p.error)]);
|
|
2728
|
-
let f = Reflect.apply(a, this, p.data),
|
|
2729
|
-
if (!
|
|
2730
|
-
throw new m.ZodError([s(f,
|
|
2731
|
-
return
|
|
2728
|
+
let f = Reflect.apply(a, this, p.data), b = c._def.returns.safeParse(f, o);
|
|
2729
|
+
if (!b.success)
|
|
2730
|
+
throw new m.ZodError([s(f, b.error)]);
|
|
2731
|
+
return b.data;
|
|
2732
2732
|
});
|
|
2733
2733
|
}
|
|
2734
2734
|
}
|
|
@@ -2741,7 +2741,7 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2741
2741
|
args(...e) {
|
|
2742
2742
|
return new t({
|
|
2743
2743
|
...this._def,
|
|
2744
|
-
args: V.create(e).rest(
|
|
2744
|
+
args: V.create(e).rest(W.create())
|
|
2745
2745
|
});
|
|
2746
2746
|
}
|
|
2747
2747
|
returns(e) {
|
|
@@ -2758,15 +2758,15 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2758
2758
|
}
|
|
2759
2759
|
static create(e, r, n) {
|
|
2760
2760
|
return new t({
|
|
2761
|
-
args: e || V.create([]).rest(
|
|
2762
|
-
returns: r ||
|
|
2761
|
+
args: e || V.create([]).rest(W.create()),
|
|
2762
|
+
returns: r || W.create(),
|
|
2763
2763
|
typeName: g.ZodFunction,
|
|
2764
|
-
...
|
|
2764
|
+
...x(n)
|
|
2765
2765
|
});
|
|
2766
2766
|
}
|
|
2767
2767
|
};
|
|
2768
2768
|
d.ZodFunction = lt;
|
|
2769
|
-
var de = class extends
|
|
2769
|
+
var de = class extends v {
|
|
2770
2770
|
static {
|
|
2771
2771
|
i(this, "ZodLazy");
|
|
2772
2772
|
}
|
|
@@ -2782,9 +2782,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2782
2782
|
de.create = (t, e) => new de({
|
|
2783
2783
|
getter: t,
|
|
2784
2784
|
typeName: g.ZodLazy,
|
|
2785
|
-
...
|
|
2785
|
+
...x(e)
|
|
2786
2786
|
});
|
|
2787
|
-
var ue = class extends
|
|
2787
|
+
var ue = class extends v {
|
|
2788
2788
|
static {
|
|
2789
2789
|
i(this, "ZodLiteral");
|
|
2790
2790
|
}
|
|
@@ -2807,17 +2807,17 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2807
2807
|
ue.create = (t, e) => new ue({
|
|
2808
2808
|
value: t,
|
|
2809
2809
|
typeName: g.ZodLiteral,
|
|
2810
|
-
...
|
|
2810
|
+
...x(e)
|
|
2811
2811
|
});
|
|
2812
2812
|
function Cn(t, e) {
|
|
2813
2813
|
return new le({
|
|
2814
2814
|
values: t,
|
|
2815
2815
|
typeName: g.ZodEnum,
|
|
2816
|
-
...
|
|
2816
|
+
...x(e)
|
|
2817
2817
|
});
|
|
2818
2818
|
}
|
|
2819
2819
|
i(Cn, "createZodEnum");
|
|
2820
|
-
var le = class t extends
|
|
2820
|
+
var le = class t extends v {
|
|
2821
2821
|
static {
|
|
2822
2822
|
i(this, "ZodEnum");
|
|
2823
2823
|
}
|
|
@@ -2880,7 +2880,7 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2880
2880
|
d.ZodEnum = le;
|
|
2881
2881
|
Me = /* @__PURE__ */ new WeakMap();
|
|
2882
2882
|
le.create = Cn;
|
|
2883
|
-
var pe = class extends
|
|
2883
|
+
var pe = class extends v {
|
|
2884
2884
|
static {
|
|
2885
2885
|
i(this, "ZodNativeEnum");
|
|
2886
2886
|
}
|
|
@@ -2916,9 +2916,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2916
2916
|
pe.create = (t, e) => new pe({
|
|
2917
2917
|
values: t,
|
|
2918
2918
|
typeName: g.ZodNativeEnum,
|
|
2919
|
-
...
|
|
2919
|
+
...x(e)
|
|
2920
2920
|
});
|
|
2921
|
-
var H = class extends
|
|
2921
|
+
var H = class extends v {
|
|
2922
2922
|
static {
|
|
2923
2923
|
i(this, "ZodPromise");
|
|
2924
2924
|
}
|
|
@@ -2944,9 +2944,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
2944
2944
|
H.create = (t, e) => new H({
|
|
2945
2945
|
type: t,
|
|
2946
2946
|
typeName: g.ZodPromise,
|
|
2947
|
-
...
|
|
2947
|
+
...x(e)
|
|
2948
2948
|
});
|
|
2949
|
-
var Z = class extends
|
|
2949
|
+
var Z = class extends v {
|
|
2950
2950
|
static {
|
|
2951
2951
|
i(this, "ZodEffects");
|
|
2952
2952
|
}
|
|
@@ -3034,15 +3034,15 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
3034
3034
|
schema: t,
|
|
3035
3035
|
typeName: g.ZodEffects,
|
|
3036
3036
|
effect: e,
|
|
3037
|
-
...
|
|
3037
|
+
...x(r)
|
|
3038
3038
|
});
|
|
3039
3039
|
Z.createWithPreprocess = (t, e, r) => new Z({
|
|
3040
3040
|
schema: e,
|
|
3041
3041
|
effect: { type: "preprocess", transform: t },
|
|
3042
3042
|
typeName: g.ZodEffects,
|
|
3043
|
-
...
|
|
3043
|
+
...x(r)
|
|
3044
3044
|
});
|
|
3045
|
-
var M = class extends
|
|
3045
|
+
var M = class extends v {
|
|
3046
3046
|
static {
|
|
3047
3047
|
i(this, "ZodOptional");
|
|
3048
3048
|
}
|
|
@@ -3057,9 +3057,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
3057
3057
|
M.create = (t, e) => new M({
|
|
3058
3058
|
innerType: t,
|
|
3059
3059
|
typeName: g.ZodOptional,
|
|
3060
|
-
...
|
|
3060
|
+
...x(e)
|
|
3061
3061
|
});
|
|
3062
|
-
var F = class extends
|
|
3062
|
+
var F = class extends v {
|
|
3063
3063
|
static {
|
|
3064
3064
|
i(this, "ZodNullable");
|
|
3065
3065
|
}
|
|
@@ -3074,9 +3074,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
3074
3074
|
F.create = (t, e) => new F({
|
|
3075
3075
|
innerType: t,
|
|
3076
3076
|
typeName: g.ZodNullable,
|
|
3077
|
-
...
|
|
3077
|
+
...x(e)
|
|
3078
3078
|
});
|
|
3079
|
-
var fe = class extends
|
|
3079
|
+
var fe = class extends v {
|
|
3080
3080
|
static {
|
|
3081
3081
|
i(this, "ZodDefault");
|
|
3082
3082
|
}
|
|
@@ -3097,9 +3097,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
3097
3097
|
innerType: t,
|
|
3098
3098
|
typeName: g.ZodDefault,
|
|
3099
3099
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
3100
|
-
...
|
|
3100
|
+
...x(e)
|
|
3101
3101
|
});
|
|
3102
|
-
var me = class extends
|
|
3102
|
+
var me = class extends v {
|
|
3103
3103
|
static {
|
|
3104
3104
|
i(this, "ZodCatch");
|
|
3105
3105
|
}
|
|
@@ -3144,9 +3144,9 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
3144
3144
|
innerType: t,
|
|
3145
3145
|
typeName: g.ZodCatch,
|
|
3146
3146
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
3147
|
-
...
|
|
3147
|
+
...x(e)
|
|
3148
3148
|
});
|
|
3149
|
-
var Ie = class extends
|
|
3149
|
+
var Ie = class extends v {
|
|
3150
3150
|
static {
|
|
3151
3151
|
i(this, "ZodNaN");
|
|
3152
3152
|
}
|
|
@@ -3165,10 +3165,10 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
3165
3165
|
d.ZodNaN = Ie;
|
|
3166
3166
|
Ie.create = (t) => new Ie({
|
|
3167
3167
|
typeName: g.ZodNaN,
|
|
3168
|
-
...
|
|
3168
|
+
...x(t)
|
|
3169
3169
|
});
|
|
3170
3170
|
d.BRAND = Symbol("zod_brand");
|
|
3171
|
-
var Le = class extends
|
|
3171
|
+
var Le = class extends v {
|
|
3172
3172
|
static {
|
|
3173
3173
|
i(this, "ZodBranded");
|
|
3174
3174
|
}
|
|
@@ -3185,7 +3185,7 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
3185
3185
|
}
|
|
3186
3186
|
};
|
|
3187
3187
|
d.ZodBranded = Le;
|
|
3188
|
-
var Ue = class t extends
|
|
3188
|
+
var Ue = class t extends v {
|
|
3189
3189
|
static {
|
|
3190
3190
|
i(this, "ZodPipeline");
|
|
3191
3191
|
}
|
|
@@ -3230,7 +3230,7 @@ onent})+$", Xt, oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
|
|
|
3230
3230
|
}
|
|
3231
3231
|
};
|
|
3232
3232
|
d.ZodPipeline = Ue;
|
|
3233
|
-
var he = class extends
|
|
3233
|
+
var he = class extends v {
|
|
3234
3234
|
static {
|
|
3235
3235
|
i(this, "ZodReadonly");
|
|
3236
3236
|
}
|
|
@@ -3247,14 +3247,14 @@ eze");
|
|
|
3247
3247
|
he.create = (t, e) => new he({
|
|
3248
3248
|
innerType: t,
|
|
3249
3249
|
typeName: g.ZodReadonly,
|
|
3250
|
-
...
|
|
3250
|
+
...x(e)
|
|
3251
3251
|
});
|
|
3252
3252
|
function kn(t, e) {
|
|
3253
3253
|
let r = typeof t == "function" ? t(e) : typeof t == "string" ? { message: t } : t;
|
|
3254
3254
|
return typeof r == "string" ? { message: r } : r;
|
|
3255
3255
|
}
|
|
3256
3256
|
i(kn, "cleanParams");
|
|
3257
|
-
function
|
|
3257
|
+
function Pn(t, e = {}, r) {
|
|
3258
3258
|
return t ? J.create().superRefine((n, s) => {
|
|
3259
3259
|
var o, a;
|
|
3260
3260
|
let c = t(n);
|
|
@@ -3262,8 +3262,8 @@ eze");
|
|
|
3262
3262
|
return c.then((l) => {
|
|
3263
3263
|
var p, f;
|
|
3264
3264
|
if (!l) {
|
|
3265
|
-
let
|
|
3266
|
-
s.addIssue({ code: "custom", ...
|
|
3265
|
+
let b = kn(e, n), _ = (f = (p = b.fatal) !== null && p !== void 0 ? p : r) !== null && f !== void 0 ? f : !0;
|
|
3266
|
+
s.addIssue({ code: "custom", ...b, fatal: _ });
|
|
3267
3267
|
}
|
|
3268
3268
|
});
|
|
3269
3269
|
if (!c) {
|
|
@@ -3272,10 +3272,10 @@ eze");
|
|
|
3272
3272
|
}
|
|
3273
3273
|
}) : J.create();
|
|
3274
3274
|
}
|
|
3275
|
-
i(
|
|
3276
|
-
d.custom =
|
|
3275
|
+
i(Pn, "custom");
|
|
3276
|
+
d.custom = Pn;
|
|
3277
3277
|
d.late = {
|
|
3278
|
-
object:
|
|
3278
|
+
object: j.lazycreate
|
|
3279
3279
|
};
|
|
3280
3280
|
var g;
|
|
3281
3281
|
(function(t) {
|
|
@@ -3290,44 +3290,44 @@ adonly";
|
|
|
3290
3290
|
})(g || (d.ZodFirstPartyTypeKind = g = {}));
|
|
3291
3291
|
var ga = /* @__PURE__ */ i((t, e = {
|
|
3292
3292
|
message: `Input not instance of ${t.name}`
|
|
3293
|
-
}) =>
|
|
3293
|
+
}) => Pn((r) => r instanceof t, e), "instanceOfType");
|
|
3294
3294
|
d.instanceof = ga;
|
|
3295
|
-
var
|
|
3296
|
-
d.string =
|
|
3297
|
-
var
|
|
3298
|
-
d.number =
|
|
3299
|
-
var
|
|
3300
|
-
d.nan =
|
|
3301
|
-
var
|
|
3302
|
-
d.bigint =
|
|
3303
|
-
var
|
|
3304
|
-
d.boolean =
|
|
3305
|
-
var
|
|
3306
|
-
d.date =
|
|
3307
|
-
var
|
|
3308
|
-
d.symbol =
|
|
3309
|
-
var
|
|
3310
|
-
d.undefined =
|
|
3295
|
+
var An = K.create;
|
|
3296
|
+
d.string = An;
|
|
3297
|
+
var On = te.create;
|
|
3298
|
+
d.number = On;
|
|
3299
|
+
var ba = Ie.create;
|
|
3300
|
+
d.nan = ba;
|
|
3301
|
+
var xa = re.create;
|
|
3302
|
+
d.bigint = xa;
|
|
3303
|
+
var jn = ne.create;
|
|
3304
|
+
d.boolean = jn;
|
|
3305
|
+
var va = se.create;
|
|
3306
|
+
d.date = va;
|
|
3307
|
+
var _a = _e.create;
|
|
3308
|
+
d.symbol = _a;
|
|
3309
|
+
var wa = oe.create;
|
|
3310
|
+
d.undefined = wa;
|
|
3311
3311
|
var ka = ie.create;
|
|
3312
3312
|
d.null = ka;
|
|
3313
3313
|
var Ta = J.create;
|
|
3314
3314
|
d.any = Ta;
|
|
3315
|
-
var Ia =
|
|
3315
|
+
var Ia = W.create;
|
|
3316
3316
|
d.unknown = Ia;
|
|
3317
3317
|
var Sa = U.create;
|
|
3318
3318
|
d.never = Sa;
|
|
3319
|
-
var Ea =
|
|
3319
|
+
var Ea = we.create;
|
|
3320
3320
|
d.void = Ea;
|
|
3321
|
-
var Ca =
|
|
3321
|
+
var Ca = q.create;
|
|
3322
3322
|
d.array = Ca;
|
|
3323
|
-
var
|
|
3324
|
-
d.object =
|
|
3325
|
-
var
|
|
3326
|
-
d.strictObject =
|
|
3327
|
-
var
|
|
3328
|
-
d.union =
|
|
3329
|
-
var
|
|
3330
|
-
d.discriminatedUnion =
|
|
3323
|
+
var Pa = j.create;
|
|
3324
|
+
d.object = Pa;
|
|
3325
|
+
var Aa = j.strictCreate;
|
|
3326
|
+
d.strictObject = Aa;
|
|
3327
|
+
var Oa = ae.create;
|
|
3328
|
+
d.union = Oa;
|
|
3329
|
+
var ja = dt.create;
|
|
3330
|
+
d.discriminatedUnion = ja;
|
|
3331
3331
|
var Ra = ce.create;
|
|
3332
3332
|
d.intersection = Ra;
|
|
3333
3333
|
var Na = V.create;
|
|
@@ -3353,19 +3353,19 @@ adonly";
|
|
|
3353
3353
|
var Rn = Z.create;
|
|
3354
3354
|
d.effect = Rn;
|
|
3355
3355
|
d.transformer = Rn;
|
|
3356
|
-
var
|
|
3357
|
-
d.optional =
|
|
3358
|
-
var
|
|
3359
|
-
d.nullable =
|
|
3356
|
+
var Wa = M.create;
|
|
3357
|
+
d.optional = Wa;
|
|
3358
|
+
var qa = F.create;
|
|
3359
|
+
d.nullable = qa;
|
|
3360
3360
|
var Ga = Z.createWithPreprocess;
|
|
3361
3361
|
d.preprocess = Ga;
|
|
3362
3362
|
var za = Ue.create;
|
|
3363
3363
|
d.pipeline = za;
|
|
3364
|
-
var Ka = /* @__PURE__ */ i(() =>
|
|
3364
|
+
var Ka = /* @__PURE__ */ i(() => An().optional(), "ostring");
|
|
3365
3365
|
d.ostring = Ka;
|
|
3366
|
-
var Ja = /* @__PURE__ */ i(() =>
|
|
3366
|
+
var Ja = /* @__PURE__ */ i(() => On().optional(), "onumber");
|
|
3367
3367
|
d.onumber = Ja;
|
|
3368
|
-
var Ha = /* @__PURE__ */ i(() =>
|
|
3368
|
+
var Ha = /* @__PURE__ */ i(() => jn().optional(), "oboolean");
|
|
3369
3369
|
d.oboolean = Ha;
|
|
3370
3370
|
d.coerce = {
|
|
3371
3371
|
string: /* @__PURE__ */ i((t) => K.create({ ...t, coerce: !0 }), "string"),
|
|
@@ -3397,7 +3397,7 @@ var er = I((L) => {
|
|
|
3397
3397
|
Object.defineProperty(L, "__esModule", { value: !0 });
|
|
3398
3398
|
Se(ot(), L);
|
|
3399
3399
|
Se(Yt(), L);
|
|
3400
|
-
Se(
|
|
3400
|
+
Se(xn(), L);
|
|
3401
3401
|
Se(Ne(), L);
|
|
3402
3402
|
Se(Nn(), L);
|
|
3403
3403
|
Se(st(), L);
|
|
@@ -3447,8 +3447,8 @@ var Un = I(($e) => {
|
|
|
3447
3447
|
var s = n.reduce(function(c, l) {
|
|
3448
3448
|
var p = l.match(/\n([\t ]+|(?!\s).)/g);
|
|
3449
3449
|
return p ? c.concat(p.map(function(f) {
|
|
3450
|
-
var
|
|
3451
|
-
return (
|
|
3450
|
+
var b, _;
|
|
3451
|
+
return (_ = (b = f.match(/[\t ]/g)) === null || b === void 0 ? void 0 : b.length) !== null && _ !== void 0 ? _ : 0;
|
|
3452
3452
|
})) : c;
|
|
3453
3453
|
}, []);
|
|
3454
3454
|
if (s.length) {
|
|
@@ -3462,13 +3462,13 @@ var Un = I(($e) => {
|
|
|
3462
3462
|
n[0] = n[0].replace(/^\r?\n/, "");
|
|
3463
3463
|
var a = n[0];
|
|
3464
3464
|
return e.forEach(function(c, l) {
|
|
3465
|
-
var p = a.match(/(?:^|\n)( *)$/), f = p ? p[1] : "",
|
|
3465
|
+
var p = a.match(/(?:^|\n)( *)$/), f = p ? p[1] : "", b = c;
|
|
3466
3466
|
typeof c == "string" && c.includes(`
|
|
3467
|
-
`) && (
|
|
3468
|
-
`).map(function(
|
|
3469
|
-
return k === 0 ?
|
|
3467
|
+
`) && (b = String(c).split(`
|
|
3468
|
+
`).map(function(_, k) {
|
|
3469
|
+
return k === 0 ? _ : "" + f + _;
|
|
3470
3470
|
}).join(`
|
|
3471
|
-
`)), a +=
|
|
3471
|
+
`)), a += b + n[l + 1];
|
|
3472
3472
|
}), a;
|
|
3473
3473
|
}
|
|
3474
3474
|
i(Ln, "dedent");
|
|
@@ -3477,9 +3477,9 @@ var Un = I(($e) => {
|
|
|
3477
3477
|
});
|
|
3478
3478
|
|
|
3479
3479
|
// ../node_modules/isexe/windows.js
|
|
3480
|
-
var zn = I((
|
|
3481
|
-
Gn.exports =
|
|
3482
|
-
|
|
3480
|
+
var zn = I((vp, Gn) => {
|
|
3481
|
+
Gn.exports = qn;
|
|
3482
|
+
qn.sync = cc;
|
|
3483
3483
|
var Bn = N("fs");
|
|
3484
3484
|
function ac(t, e) {
|
|
3485
3485
|
var r = e.pathExt !== void 0 ? e.pathExt : process.env.PATHEXT;
|
|
@@ -3493,24 +3493,24 @@ var zn = I((xp, Gn) => {
|
|
|
3493
3493
|
return !1;
|
|
3494
3494
|
}
|
|
3495
3495
|
i(ac, "checkPathExt");
|
|
3496
|
-
function
|
|
3496
|
+
function Wn(t, e, r) {
|
|
3497
3497
|
return !t.isSymbolicLink() && !t.isFile() ? !1 : ac(e, r);
|
|
3498
3498
|
}
|
|
3499
|
-
i(
|
|
3500
|
-
function
|
|
3499
|
+
i(Wn, "checkStat");
|
|
3500
|
+
function qn(t, e, r) {
|
|
3501
3501
|
Bn.stat(t, function(n, s) {
|
|
3502
|
-
r(n, n ? !1 :
|
|
3502
|
+
r(n, n ? !1 : Wn(s, t, e));
|
|
3503
3503
|
});
|
|
3504
3504
|
}
|
|
3505
|
-
i(
|
|
3505
|
+
i(qn, "isexe");
|
|
3506
3506
|
function cc(t, e) {
|
|
3507
|
-
return
|
|
3507
|
+
return Wn(Bn.statSync(t), t, e);
|
|
3508
3508
|
}
|
|
3509
3509
|
i(cc, "sync");
|
|
3510
3510
|
});
|
|
3511
3511
|
|
|
3512
3512
|
// ../node_modules/isexe/mode.js
|
|
3513
|
-
var Xn = I((
|
|
3513
|
+
var Xn = I((wp, Yn) => {
|
|
3514
3514
|
Yn.exports = Jn;
|
|
3515
3515
|
Jn.sync = dc;
|
|
3516
3516
|
var Kn = N("fs");
|
|
@@ -3530,9 +3530,9 @@ var Xn = I((_p, Yn) => {
|
|
|
3530
3530
|
i(Hn, "checkStat");
|
|
3531
3531
|
function uc(t, e) {
|
|
3532
3532
|
var r = t.mode, n = t.uid, s = t.gid, o = e.uid !== void 0 ? e.uid : process.getuid && process.getuid(), a = e.gid !== void 0 ? e.gid : process.
|
|
3533
|
-
getgid && process.getgid(), c = parseInt("100", 8), l = parseInt("010", 8), p = parseInt("001", 8), f = c | l,
|
|
3533
|
+
getgid && process.getgid(), c = parseInt("100", 8), l = parseInt("010", 8), p = parseInt("001", 8), f = c | l, b = r & p || r & l && s ===
|
|
3534
3534
|
a || r & c && n === o || r & f && o === 0;
|
|
3535
|
-
return
|
|
3535
|
+
return b;
|
|
3536
3536
|
}
|
|
3537
3537
|
i(uc, "checkMode");
|
|
3538
3538
|
});
|
|
@@ -3572,38 +3572,38 @@ var es = I((Ip, Qn) => {
|
|
|
3572
3572
|
|
|
3573
3573
|
// ../node_modules/which/which.js
|
|
3574
3574
|
var as = I((Ep, is) => {
|
|
3575
|
-
var
|
|
3575
|
+
var Pe = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", ts = N("path"), pc = Pe ? ";" :
|
|
3576
3576
|
":", rs = es(), ns = /* @__PURE__ */ i((t) => Object.assign(new Error(`not found: ${t}`), { code: "ENOENT" }), "getNotFoundError"), ss = /* @__PURE__ */ i(
|
|
3577
3577
|
(t, e) => {
|
|
3578
|
-
let r = e.colon || pc, n = t.match(/\//) ||
|
|
3578
|
+
let r = e.colon || pc, n = t.match(/\//) || Pe && t.match(/\\/) ? [""] : [
|
|
3579
3579
|
// windows always checks the cwd first
|
|
3580
|
-
...
|
|
3580
|
+
...Pe ? [process.cwd()] : [],
|
|
3581
3581
|
...(e.path || process.env.PATH || /* istanbul ignore next: very unusual */
|
|
3582
3582
|
"").split(r)
|
|
3583
|
-
], s =
|
|
3584
|
-
return
|
|
3583
|
+
], s = Pe ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = Pe ? s.split(r) : [""];
|
|
3584
|
+
return Pe && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
|
|
3585
3585
|
pathEnv: n,
|
|
3586
3586
|
pathExt: o,
|
|
3587
3587
|
pathExtExe: s
|
|
3588
3588
|
};
|
|
3589
3589
|
}, "getPathInfo"), os = /* @__PURE__ */ i((t, e, r) => {
|
|
3590
3590
|
typeof e == "function" && (r = e, e = {}), e || (e = {});
|
|
3591
|
-
let { pathEnv: n, pathExt: s, pathExtExe: o } = ss(t, e), a = [], c = /* @__PURE__ */ i((p) => new Promise((f,
|
|
3591
|
+
let { pathEnv: n, pathExt: s, pathExtExe: o } = ss(t, e), a = [], c = /* @__PURE__ */ i((p) => new Promise((f, b) => {
|
|
3592
3592
|
if (p === n.length)
|
|
3593
|
-
return e.all && a.length ? f(a) :
|
|
3594
|
-
let
|
|
3593
|
+
return e.all && a.length ? f(a) : b(ns(t));
|
|
3594
|
+
let _ = n[p], k = /^".*"$/.test(_) ? _.slice(1, -1) : _, P = ts.join(k, t), S = !k && /^\.[\\\/]/.test(t) ? t.slice(0, 2) + P : P;
|
|
3595
3595
|
f(l(S, p, 0));
|
|
3596
|
-
}), "step"), l = /* @__PURE__ */ i((p, f,
|
|
3597
|
-
if (
|
|
3598
|
-
return
|
|
3599
|
-
let
|
|
3600
|
-
rs(p +
|
|
3596
|
+
}), "step"), l = /* @__PURE__ */ i((p, f, b) => new Promise((_, k) => {
|
|
3597
|
+
if (b === s.length)
|
|
3598
|
+
return _(c(f + 1));
|
|
3599
|
+
let P = s[b];
|
|
3600
|
+
rs(p + P, { pathExt: o }, (S, C) => {
|
|
3601
3601
|
if (!S && C)
|
|
3602
3602
|
if (e.all)
|
|
3603
|
-
a.push(p +
|
|
3603
|
+
a.push(p + P);
|
|
3604
3604
|
else
|
|
3605
|
-
return
|
|
3606
|
-
return
|
|
3605
|
+
return _(p + P);
|
|
3606
|
+
return _(l(p, f, b + 1));
|
|
3607
3607
|
});
|
|
3608
3608
|
}), "subStep");
|
|
3609
3609
|
return r ? c(0).then((p) => r(null, p), r) : c(0);
|
|
@@ -3612,14 +3612,14 @@ var as = I((Ep, is) => {
|
|
|
3612
3612
|
let { pathEnv: r, pathExt: n, pathExtExe: s } = ss(t, e), o = [];
|
|
3613
3613
|
for (let a = 0; a < r.length; a++) {
|
|
3614
3614
|
let c = r[a], l = /^".*"$/.test(c) ? c.slice(1, -1) : c, p = ts.join(l, t), f = !l && /^\.[\\\/]/.test(t) ? t.slice(0, 2) + p : p;
|
|
3615
|
-
for (let
|
|
3616
|
-
let
|
|
3615
|
+
for (let b = 0; b < n.length; b++) {
|
|
3616
|
+
let _ = f + n[b];
|
|
3617
3617
|
try {
|
|
3618
|
-
if (rs.sync(
|
|
3618
|
+
if (rs.sync(_, { pathExt: s }))
|
|
3619
3619
|
if (e.all)
|
|
3620
|
-
o.push(
|
|
3620
|
+
o.push(_);
|
|
3621
3621
|
else
|
|
3622
|
-
return
|
|
3622
|
+
return _;
|
|
3623
3623
|
} catch {
|
|
3624
3624
|
}
|
|
3625
3625
|
}
|
|
@@ -3635,7 +3635,7 @@ var as = I((Ep, is) => {
|
|
|
3635
3635
|
});
|
|
3636
3636
|
|
|
3637
3637
|
// ../node_modules/path-key/index.js
|
|
3638
|
-
var ds = I((
|
|
3638
|
+
var ds = I((Pp, nr) => {
|
|
3639
3639
|
"use strict";
|
|
3640
3640
|
var cs = /* @__PURE__ */ i((t = {}) => {
|
|
3641
3641
|
let e = t.env || process.env;
|
|
@@ -3646,7 +3646,7 @@ var ds = I((jp, nr) => {
|
|
|
3646
3646
|
});
|
|
3647
3647
|
|
|
3648
3648
|
// ../node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
3649
|
-
var fs = I((
|
|
3649
|
+
var fs = I((Op, ps) => {
|
|
3650
3650
|
"use strict";
|
|
3651
3651
|
var us = N("path"), mc = as(), hc = ds();
|
|
3652
3652
|
function ls(t, e) {
|
|
@@ -3685,13 +3685,13 @@ var ms = I((Rp, or) => {
|
|
|
3685
3685
|
return t = t.replace(sr, "^$1"), t;
|
|
3686
3686
|
}
|
|
3687
3687
|
i(gc, "escapeCommand");
|
|
3688
|
-
function
|
|
3688
|
+
function bc(t, e) {
|
|
3689
3689
|
return t = `${t}`, t = t.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"'), t = t.replace(/(?=(\\+?)?)\1$/, "$1$1"), t = `"${t}"`, t = t.replace(sr,
|
|
3690
3690
|
"^$1"), e && (t = t.replace(sr, "^$1")), t;
|
|
3691
3691
|
}
|
|
3692
|
-
i(
|
|
3692
|
+
i(bc, "escapeArgument");
|
|
3693
3693
|
or.exports.command = gc;
|
|
3694
|
-
or.exports.argument =
|
|
3694
|
+
or.exports.argument = bc;
|
|
3695
3695
|
});
|
|
3696
3696
|
|
|
3697
3697
|
// ../node_modules/shebang-regex/index.js
|
|
@@ -3701,11 +3701,11 @@ var ys = I((Zp, hs) => {
|
|
|
3701
3701
|
});
|
|
3702
3702
|
|
|
3703
3703
|
// ../node_modules/shebang-command/index.js
|
|
3704
|
-
var
|
|
3704
|
+
var bs = I((Mp, gs) => {
|
|
3705
3705
|
"use strict";
|
|
3706
|
-
var
|
|
3706
|
+
var xc = ys();
|
|
3707
3707
|
gs.exports = (t = "") => {
|
|
3708
|
-
let e = t.match(
|
|
3708
|
+
let e = t.match(xc);
|
|
3709
3709
|
if (!e)
|
|
3710
3710
|
return null;
|
|
3711
3711
|
let [r, n] = e[0].replace(/#! ?/, "").split(" "), s = r.split("/").pop();
|
|
@@ -3714,29 +3714,29 @@ var vs = I((Mp, gs) => {
|
|
|
3714
3714
|
});
|
|
3715
3715
|
|
|
3716
3716
|
// ../node_modules/cross-spawn/lib/util/readShebang.js
|
|
3717
|
-
var
|
|
3717
|
+
var vs = I((Dp, xs) => {
|
|
3718
3718
|
"use strict";
|
|
3719
|
-
var ir = N("fs"),
|
|
3720
|
-
function
|
|
3719
|
+
var ir = N("fs"), vc = bs();
|
|
3720
|
+
function _c(t) {
|
|
3721
3721
|
let r = Buffer.alloc(150), n;
|
|
3722
3722
|
try {
|
|
3723
3723
|
n = ir.openSync(t, "r"), ir.readSync(n, r, 0, 150, 0), ir.closeSync(n);
|
|
3724
3724
|
} catch {
|
|
3725
3725
|
}
|
|
3726
|
-
return
|
|
3726
|
+
return vc(r.toString());
|
|
3727
3727
|
}
|
|
3728
|
-
i(
|
|
3729
|
-
|
|
3728
|
+
i(_c, "readShebang");
|
|
3729
|
+
xs.exports = _c;
|
|
3730
3730
|
});
|
|
3731
3731
|
|
|
3732
3732
|
// ../node_modules/cross-spawn/lib/parse.js
|
|
3733
3733
|
var Ts = I((Up, ks) => {
|
|
3734
3734
|
"use strict";
|
|
3735
|
-
var
|
|
3735
|
+
var wc = N("path"), _s = fs(), ws = ms(), kc = vs(), Tc = process.platform === "win32", Ic = /\.(?:com|exe)$/i, Sc = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
3736
3736
|
function Ec(t) {
|
|
3737
|
-
t.file =
|
|
3737
|
+
t.file = _s(t);
|
|
3738
3738
|
let e = t.file && kc(t.file);
|
|
3739
|
-
return e ? (t.args.unshift(t.file), t.command = e,
|
|
3739
|
+
return e ? (t.args.unshift(t.file), t.command = e, _s(t)) : t.file;
|
|
3740
3740
|
}
|
|
3741
3741
|
i(Ec, "detectShebang");
|
|
3742
3742
|
function Cc(t) {
|
|
@@ -3745,14 +3745,14 @@ var Ts = I((Up, ks) => {
|
|
|
3745
3745
|
let e = Ec(t), r = !Ic.test(e);
|
|
3746
3746
|
if (t.options.forceShell || r) {
|
|
3747
3747
|
let n = Sc.test(e);
|
|
3748
|
-
t.command =
|
|
3748
|
+
t.command = wc.normalize(t.command), t.command = ws.command(t.command), t.args = t.args.map((o) => ws.argument(o, n));
|
|
3749
3749
|
let s = [t.command].concat(t.args).join(" ");
|
|
3750
3750
|
t.args = ["/d", "/s", "/c", `"${s}"`], t.command = process.env.comspec || "cmd.exe", t.options.windowsVerbatimArguments = !0;
|
|
3751
3751
|
}
|
|
3752
3752
|
return t;
|
|
3753
3753
|
}
|
|
3754
3754
|
i(Cc, "parseNonShell");
|
|
3755
|
-
function
|
|
3755
|
+
function Pc(t, e, r) {
|
|
3756
3756
|
e && !Array.isArray(e) && (r = e, e = null), e = e ? e.slice(0) : [], r = Object.assign({}, r);
|
|
3757
3757
|
let n = {
|
|
3758
3758
|
command: t,
|
|
@@ -3766,8 +3766,8 @@ var Ts = I((Up, ks) => {
|
|
|
3766
3766
|
};
|
|
3767
3767
|
return r.shell ? n : Cc(n);
|
|
3768
3768
|
}
|
|
3769
|
-
i(
|
|
3770
|
-
ks.exports =
|
|
3769
|
+
i(Pc, "parse");
|
|
3770
|
+
ks.exports = Pc;
|
|
3771
3771
|
});
|
|
3772
3772
|
|
|
3773
3773
|
// ../node_modules/cross-spawn/lib/enoent.js
|
|
@@ -3784,7 +3784,7 @@ var Es = I((Vp, Ss) => {
|
|
|
3784
3784
|
});
|
|
3785
3785
|
}
|
|
3786
3786
|
i(cr, "notFoundError");
|
|
3787
|
-
function
|
|
3787
|
+
function Ac(t, e) {
|
|
3788
3788
|
if (!ar)
|
|
3789
3789
|
return;
|
|
3790
3790
|
let r = t.emit;
|
|
@@ -3797,50 +3797,50 @@ var Es = I((Vp, Ss) => {
|
|
|
3797
3797
|
return r.apply(t, arguments);
|
|
3798
3798
|
};
|
|
3799
3799
|
}
|
|
3800
|
-
i(
|
|
3800
|
+
i(Ac, "hookChildProcess");
|
|
3801
3801
|
function Is(t, e) {
|
|
3802
3802
|
return ar && t === 1 && !e.file ? cr(e.original, "spawn") : null;
|
|
3803
3803
|
}
|
|
3804
3804
|
i(Is, "verifyENOENT");
|
|
3805
|
-
function
|
|
3805
|
+
function Oc(t, e) {
|
|
3806
3806
|
return ar && t === 1 && !e.file ? cr(e.original, "spawnSync") : null;
|
|
3807
3807
|
}
|
|
3808
|
-
i(
|
|
3808
|
+
i(Oc, "verifyENOENTSync");
|
|
3809
3809
|
Ss.exports = {
|
|
3810
|
-
hookChildProcess:
|
|
3810
|
+
hookChildProcess: Ac,
|
|
3811
3811
|
verifyENOENT: Is,
|
|
3812
|
-
verifyENOENTSync:
|
|
3812
|
+
verifyENOENTSync: Oc,
|
|
3813
3813
|
notFoundError: cr
|
|
3814
3814
|
};
|
|
3815
3815
|
});
|
|
3816
3816
|
|
|
3817
3817
|
// ../node_modules/cross-spawn/index.js
|
|
3818
|
-
var
|
|
3818
|
+
var As = I((Bp, Ae) => {
|
|
3819
3819
|
"use strict";
|
|
3820
3820
|
var Cs = N("child_process"), dr = Ts(), ur = Es();
|
|
3821
|
-
function
|
|
3821
|
+
function Ps(t, e, r) {
|
|
3822
3822
|
let n = dr(t, e, r), s = Cs.spawn(n.command, n.args, n.options);
|
|
3823
3823
|
return ur.hookChildProcess(s, n), s;
|
|
3824
3824
|
}
|
|
3825
|
-
i(
|
|
3826
|
-
function
|
|
3825
|
+
i(Ps, "spawn");
|
|
3826
|
+
function jc(t, e, r) {
|
|
3827
3827
|
let n = dr(t, e, r), s = Cs.spawnSync(n.command, n.args, n.options);
|
|
3828
3828
|
return s.error = s.error || ur.verifyENOENTSync(s.status, n), s;
|
|
3829
3829
|
}
|
|
3830
|
-
i(
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3830
|
+
i(jc, "spawnSync");
|
|
3831
|
+
Ae.exports = Ps;
|
|
3832
|
+
Ae.exports.spawn = Ps;
|
|
3833
|
+
Ae.exports.sync = jc;
|
|
3834
|
+
Ae.exports._parse = dr;
|
|
3835
|
+
Ae.exports._enoent = ur;
|
|
3836
3836
|
});
|
|
3837
3837
|
|
|
3838
3838
|
// ../node_modules/merge-stream/index.js
|
|
3839
3839
|
var no = I((ym, ro) => {
|
|
3840
3840
|
"use strict";
|
|
3841
|
-
var { PassThrough:
|
|
3841
|
+
var { PassThrough: Ad } = N("stream");
|
|
3842
3842
|
ro.exports = function() {
|
|
3843
|
-
var t = [], e = new
|
|
3843
|
+
var t = [], e = new Ad({ objectMode: !0 });
|
|
3844
3844
|
return e.setMaxListeners(0), e.add = r, e.isEmpty = n, e.on("unpipe", s), Array.prototype.slice.call(arguments).forEach(r), e;
|
|
3845
3845
|
function r(o) {
|
|
3846
3846
|
return Array.isArray(o) ? (o.forEach(r), this) : (t.push(o), o.once("end", s.bind(null, o)), o.once("error", e.emit.bind(e, "error")),
|
|
@@ -3864,12 +3864,12 @@ var no = I((ym, ro) => {
|
|
|
3864
3864
|
function Mr(t) {
|
|
3865
3865
|
return t.startsWith("\\\\?\\") ? t : t.replace(/\\/g, "/");
|
|
3866
3866
|
}
|
|
3867
|
-
var To =
|
|
3867
|
+
var To = bi(() => {
|
|
3868
3868
|
i(Mr, "slash");
|
|
3869
3869
|
});
|
|
3870
3870
|
|
|
3871
3871
|
// ../node_modules/common-path-prefix/index.js
|
|
3872
|
-
var
|
|
3872
|
+
var Oo = I((ph, Ao) => {
|
|
3873
3873
|
"use strict";
|
|
3874
3874
|
var { sep: iu } = N("path"), au = /* @__PURE__ */ i((t) => {
|
|
3875
3875
|
for (let e of t) {
|
|
@@ -3878,7 +3878,7 @@ var Ao = I((ph, Po) => {
|
|
|
3878
3878
|
}
|
|
3879
3879
|
return iu;
|
|
3880
3880
|
}, "determineSeparator");
|
|
3881
|
-
|
|
3881
|
+
Ao.exports = /* @__PURE__ */ i(function(e, r = au(e)) {
|
|
3882
3882
|
let [n = "", ...s] = e;
|
|
3883
3883
|
if (n === "" || s.length === 0) return "";
|
|
3884
3884
|
let o = n.split(r), a = o.length;
|
|
@@ -3930,42 +3930,42 @@ var ti = I((Bg, ei) => {
|
|
|
3930
3930
|
else
|
|
3931
3931
|
throw new Y("retryOn property expects an array or function");
|
|
3932
3932
|
return new Promise(function(p, f) {
|
|
3933
|
-
var
|
|
3934
|
-
var
|
|
3935
|
-
t(
|
|
3933
|
+
var b = /* @__PURE__ */ i(function(k) {
|
|
3934
|
+
var P = typeof Request < "u" && s instanceof Request ? s.clone() : s;
|
|
3935
|
+
t(P, o).then(function(S) {
|
|
3936
3936
|
if (Array.isArray(l) && l.indexOf(S.status) === -1)
|
|
3937
3937
|
p(S);
|
|
3938
3938
|
else if (typeof l == "function")
|
|
3939
3939
|
try {
|
|
3940
3940
|
return Promise.resolve(l(k, null, S)).then(function(C) {
|
|
3941
|
-
C ?
|
|
3941
|
+
C ? _(k, null, S) : p(S);
|
|
3942
3942
|
}).catch(f);
|
|
3943
3943
|
} catch (C) {
|
|
3944
3944
|
f(C);
|
|
3945
3945
|
}
|
|
3946
3946
|
else
|
|
3947
|
-
k < a ?
|
|
3947
|
+
k < a ? _(k, null, S) : p(S);
|
|
3948
3948
|
}).catch(function(S) {
|
|
3949
3949
|
if (typeof l == "function")
|
|
3950
3950
|
try {
|
|
3951
3951
|
Promise.resolve(l(k, S, null)).then(function(C) {
|
|
3952
|
-
C ?
|
|
3952
|
+
C ? _(k, S, null) : f(S);
|
|
3953
3953
|
}).catch(function(C) {
|
|
3954
3954
|
f(C);
|
|
3955
3955
|
});
|
|
3956
3956
|
} catch (C) {
|
|
3957
3957
|
f(C);
|
|
3958
3958
|
}
|
|
3959
|
-
else k < a ?
|
|
3959
|
+
else k < a ? _(k, S, null) : f(S);
|
|
3960
3960
|
});
|
|
3961
3961
|
}, "wrappedFetch");
|
|
3962
|
-
function
|
|
3963
|
-
var C = typeof c == "function" ? c(k,
|
|
3962
|
+
function _(k, P, S) {
|
|
3963
|
+
var C = typeof c == "function" ? c(k, P, S) : c;
|
|
3964
3964
|
setTimeout(function() {
|
|
3965
|
-
|
|
3965
|
+
b(++k);
|
|
3966
3966
|
}, C);
|
|
3967
3967
|
}
|
|
3968
|
-
i(
|
|
3968
|
+
i(_, "retry"), b(0);
|
|
3969
3969
|
});
|
|
3970
3970
|
}, "fetchRetry");
|
|
3971
3971
|
};
|
|
@@ -3985,14 +3985,14 @@ import { logger as pi } from "storybook/internal/node-logger";
|
|
|
3985
3985
|
// src/telemetry/notify.ts
|
|
3986
3986
|
var et = G(Xr(), 1);
|
|
3987
3987
|
import { cache as Qr } from "storybook/internal/common";
|
|
3988
|
-
var en = "telemetry-notification-date",
|
|
3989
|
-
await Qr.get(en, null) || (Qr.set(en, Date.now()),
|
|
3988
|
+
var en = "telemetry-notification-date", xe = console, tn = /* @__PURE__ */ i(async () => {
|
|
3989
|
+
await Qr.get(en, null) || (Qr.set(en, Date.now()), xe.log(), xe.log(
|
|
3990
3990
|
`${et.default.magenta(
|
|
3991
3991
|
et.default.bold("attention")
|
|
3992
3992
|
)} => Storybook now collects completely anonymous telemetry regarding usage.`
|
|
3993
|
-
),
|
|
3993
|
+
), xe.log("This information is used to shape Storybook's roadmap and prioritize features."), xe.log(
|
|
3994
3994
|
"You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"
|
|
3995
|
-
),
|
|
3995
|
+
), xe.log(et.default.cyan("https://storybook.js.org/telemetry")), xe.log());
|
|
3996
3996
|
}, "notify");
|
|
3997
3997
|
|
|
3998
3998
|
// src/telemetry/sanitize.ts
|
|
@@ -4099,7 +4099,7 @@ var un = [
|
|
|
4099
4099
|
"yarn.lock": "yarn",
|
|
4100
4100
|
"package-lock.json": "npm",
|
|
4101
4101
|
"npm-shrinkwrap.json": "npm"
|
|
4102
|
-
},
|
|
4102
|
+
}, Wt = {
|
|
4103
4103
|
"node_modules/.deno/": "deno",
|
|
4104
4104
|
"node_modules/.pnpm/": "pnpm",
|
|
4105
4105
|
"node_modules/.yarn-state.yml": "yarn",
|
|
@@ -4119,7 +4119,7 @@ var un = [
|
|
|
4119
4119
|
import pn from "node:fs/promises";
|
|
4120
4120
|
import Q from "node:path";
|
|
4121
4121
|
import Ci from "node:process";
|
|
4122
|
-
async function
|
|
4122
|
+
async function qt(t, e) {
|
|
4123
4123
|
try {
|
|
4124
4124
|
let r = await pn.stat(t);
|
|
4125
4125
|
return e === "file" ? r.isFile() : r.isDirectory();
|
|
@@ -4127,25 +4127,25 @@ async function Wt(t, e) {
|
|
|
4127
4127
|
return !1;
|
|
4128
4128
|
}
|
|
4129
4129
|
}
|
|
4130
|
-
i(
|
|
4131
|
-
function*
|
|
4130
|
+
i(qt, "pathExists");
|
|
4131
|
+
function* Pi(t = Ci.cwd()) {
|
|
4132
4132
|
let e = Q.resolve(t), { root: r } = Q.parse(e);
|
|
4133
4133
|
for (; e && e !== r; )
|
|
4134
4134
|
yield e, e = Q.dirname(e);
|
|
4135
4135
|
}
|
|
4136
|
-
i(
|
|
4136
|
+
i(Pi, "lookup");
|
|
4137
4137
|
async function ln(t, e) {
|
|
4138
|
-
return !t || !
|
|
4138
|
+
return !t || !qt(t, "file") ? null : await Oi(t, e);
|
|
4139
4139
|
}
|
|
4140
4140
|
i(ln, "parsePackageJson");
|
|
4141
4141
|
async function Gt(t = {}) {
|
|
4142
4142
|
let { cwd: e, strategies: r = ["lockfile", "packageManager-field", "devEngines-field"], onUnknown: n } = t;
|
|
4143
|
-
for (let s of
|
|
4143
|
+
for (let s of Pi(e))
|
|
4144
4144
|
for (let o of r)
|
|
4145
4145
|
switch (o) {
|
|
4146
4146
|
case "lockfile": {
|
|
4147
4147
|
for (let a of Object.keys(Bt))
|
|
4148
|
-
if (await
|
|
4148
|
+
if (await qt(Q.join(s, a), "file")) {
|
|
4149
4149
|
let c = Bt[a], l = await ln(Q.join(s, "package.json"), n);
|
|
4150
4150
|
return l || { name: c, agent: c };
|
|
4151
4151
|
}
|
|
@@ -4159,10 +4159,10 @@ async function Gt(t = {}) {
|
|
|
4159
4159
|
break;
|
|
4160
4160
|
}
|
|
4161
4161
|
case "install-metadata": {
|
|
4162
|
-
for (let a of Object.keys(
|
|
4162
|
+
for (let a of Object.keys(Wt)) {
|
|
4163
4163
|
let c = a.endsWith("/") ? "dir" : "file";
|
|
4164
|
-
if (await
|
|
4165
|
-
let l =
|
|
4164
|
+
if (await qt(Q.join(s, a), c)) {
|
|
4165
|
+
let l = Wt[a], p = l === "yarn" ? ji(a) ? "yarn" : "yarn@berry" : l;
|
|
4166
4166
|
return { name: l, agent: p };
|
|
4167
4167
|
}
|
|
4168
4168
|
}
|
|
@@ -4172,7 +4172,7 @@ async function Gt(t = {}) {
|
|
|
4172
4172
|
return null;
|
|
4173
4173
|
}
|
|
4174
4174
|
i(Gt, "detect");
|
|
4175
|
-
function
|
|
4175
|
+
function Ai(t) {
|
|
4176
4176
|
let e = /* @__PURE__ */ i((r) => r?.match(/\d+(\.\d+){0,2}/)?.[0] ?? r, "handelVer");
|
|
4177
4177
|
if (typeof t.packageManager == "string") {
|
|
4178
4178
|
let [r, n] = t.packageManager.replace(/^\^/, "").split("@");
|
|
@@ -4184,10 +4184,10 @@ function Pi(t) {
|
|
|
4184
4184
|
ver: e(t.devEngines.packageManager.version)
|
|
4185
4185
|
};
|
|
4186
4186
|
}
|
|
4187
|
-
i(
|
|
4188
|
-
async function
|
|
4187
|
+
i(Ai, "getNameAndVer");
|
|
4188
|
+
async function Oi(t, e) {
|
|
4189
4189
|
try {
|
|
4190
|
-
let r = JSON.parse(await pn.readFile(t, "utf8")), n, s =
|
|
4190
|
+
let r = JSON.parse(await pn.readFile(t, "utf8")), n, s = Ai(r);
|
|
4191
4191
|
if (s) {
|
|
4192
4192
|
let o = s.name, a = s.ver, c = a;
|
|
4193
4193
|
return o === "yarn" && a && Number.parseInt(a) > 1 ? (n = "yarn@berry", c = "berry", { name: o, agent: n, version: c }) : o === "pnpm" &&
|
|
@@ -4198,11 +4198,11 @@ async function Ai(t, e) {
|
|
|
4198
4198
|
}
|
|
4199
4199
|
return null;
|
|
4200
4200
|
}
|
|
4201
|
-
i(
|
|
4202
|
-
function
|
|
4201
|
+
i(Oi, "handlePackageManager");
|
|
4202
|
+
function ji(t) {
|
|
4203
4203
|
return t.endsWith(".yarn_integrity");
|
|
4204
4204
|
}
|
|
4205
|
-
i(
|
|
4205
|
+
i(ji, "isMetadataYarnClassic");
|
|
4206
4206
|
|
|
4207
4207
|
// ../node_modules/package-manager-detector/dist/index.mjs
|
|
4208
4208
|
import "node:fs/promises";
|
|
@@ -4210,7 +4210,7 @@ import "node:path";
|
|
|
4210
4210
|
import "node:process";
|
|
4211
4211
|
|
|
4212
4212
|
// package.json
|
|
4213
|
-
var nt = "9.0.
|
|
4213
|
+
var nt = "9.0.9";
|
|
4214
4214
|
|
|
4215
4215
|
// src/cli/globalSettings.ts
|
|
4216
4216
|
var Ce = G(Dn(), 1);
|
|
@@ -4335,17 +4335,17 @@ var mt = class {
|
|
|
4335
4335
|
};
|
|
4336
4336
|
|
|
4337
4337
|
// src/telemetry/get-application-file-count.ts
|
|
4338
|
-
import { sep as
|
|
4338
|
+
import { sep as wu } from "node:path";
|
|
4339
4339
|
|
|
4340
4340
|
// src/telemetry/exec-command-count-lines.ts
|
|
4341
4341
|
import { createInterface as Qd } from "node:readline";
|
|
4342
4342
|
|
|
4343
4343
|
// node_modules/execa/index.js
|
|
4344
|
-
var
|
|
4344
|
+
var xo = G(As(), 1);
|
|
4345
4345
|
import { Buffer as zd } from "node:buffer";
|
|
4346
4346
|
import Kd from "node:path";
|
|
4347
4347
|
import Zr from "node:child_process";
|
|
4348
|
-
import
|
|
4348
|
+
import Pt from "node:process";
|
|
4349
4349
|
|
|
4350
4350
|
// ../node_modules/strip-final-newline/index.js
|
|
4351
4351
|
function lr(t) {
|
|
@@ -4358,7 +4358,7 @@ i(lr, "stripFinalNewline");
|
|
|
4358
4358
|
// node_modules/npm-run-path/index.js
|
|
4359
4359
|
import gt from "node:process";
|
|
4360
4360
|
import Ve from "node:path";
|
|
4361
|
-
import { fileURLToPath as
|
|
4361
|
+
import { fileURLToPath as Os } from "node:url";
|
|
4362
4362
|
|
|
4363
4363
|
// node_modules/path-key/index.js
|
|
4364
4364
|
function yt(t = {}) {
|
|
@@ -4378,16 +4378,16 @@ var Rc = /* @__PURE__ */ i(({
|
|
|
4378
4378
|
execPath: n = gt.execPath,
|
|
4379
4379
|
addExecPath: s = !0
|
|
4380
4380
|
} = {}) => {
|
|
4381
|
-
let o = t instanceof URL ?
|
|
4381
|
+
let o = t instanceof URL ? Os(t) : t, a = Ve.resolve(o), c = [];
|
|
4382
4382
|
return r && Nc(c, a), s && Zc(c, n, a), [...c, e].join(Ve.delimiter);
|
|
4383
4383
|
}, "npmRunPath"), Nc = /* @__PURE__ */ i((t, e) => {
|
|
4384
4384
|
let r;
|
|
4385
4385
|
for (; r !== e; )
|
|
4386
4386
|
t.push(Ve.join(e, "node_modules/.bin")), r = e, e = Ve.resolve(e, "..");
|
|
4387
4387
|
}, "applyPreferLocal"), Zc = /* @__PURE__ */ i((t, e, r) => {
|
|
4388
|
-
let n = e instanceof URL ?
|
|
4388
|
+
let n = e instanceof URL ? Os(e) : e;
|
|
4389
4389
|
t.push(Ve.resolve(r, n, ".."));
|
|
4390
|
-
}, "applyExecPath"),
|
|
4390
|
+
}, "applyExecPath"), js = /* @__PURE__ */ i(({ env: t = gt.env, ...e } = {}) => {
|
|
4391
4391
|
t = { ...t };
|
|
4392
4392
|
let r = yt({ env: t });
|
|
4393
4393
|
return e.path = t[r], t[r] = Rc(e), t;
|
|
@@ -4420,22 +4420,22 @@ function pr(t, e, { ignoreNonConfigurable: r = !1 } = {}) {
|
|
|
4420
4420
|
i(pr, "mimicFunction");
|
|
4421
4421
|
|
|
4422
4422
|
// node_modules/onetime/index.js
|
|
4423
|
-
var
|
|
4423
|
+
var bt = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ i((t, e = {}) => {
|
|
4424
4424
|
if (typeof t != "function")
|
|
4425
4425
|
throw new TypeError("Expected a function");
|
|
4426
4426
|
let r, n = 0, s = t.displayName || t.name || "<anonymous>", o = /* @__PURE__ */ i(function(...a) {
|
|
4427
|
-
if (
|
|
4427
|
+
if (bt.set(o, ++n), n === 1)
|
|
4428
4428
|
r = t.apply(this, a), t = null;
|
|
4429
4429
|
else if (e.throw === !0)
|
|
4430
4430
|
throw new Error(`Function \`${s}\` can only be called once`);
|
|
4431
4431
|
return r;
|
|
4432
4432
|
}, "onetime");
|
|
4433
|
-
return pr(o, t),
|
|
4433
|
+
return pr(o, t), bt.set(o, n), o;
|
|
4434
4434
|
}, "onetime");
|
|
4435
4435
|
Rs.callCount = (t) => {
|
|
4436
|
-
if (!
|
|
4436
|
+
if (!bt.has(t))
|
|
4437
4437
|
throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);
|
|
4438
|
-
return
|
|
4438
|
+
return bt.get(t);
|
|
4439
4439
|
};
|
|
4440
4440
|
var Ns = Rs;
|
|
4441
4441
|
|
|
@@ -4458,7 +4458,7 @@ var Zs = /* @__PURE__ */ i(() => {
|
|
|
4458
4458
|
}), "getRealtimeSignal"), Ms = 34, fr = 64;
|
|
4459
4459
|
|
|
4460
4460
|
// node_modules/human-signals/build/src/signals.js
|
|
4461
|
-
import { constants as
|
|
4461
|
+
import { constants as Wc } from "node:os";
|
|
4462
4462
|
|
|
4463
4463
|
// node_modules/human-signals/build/src/core.js
|
|
4464
4464
|
var Ds = [
|
|
@@ -4736,8 +4736,8 @@ var Ds = [
|
|
|
4736
4736
|
// node_modules/human-signals/build/src/signals.js
|
|
4737
4737
|
var mr = /* @__PURE__ */ i(() => {
|
|
4738
4738
|
let t = Zs();
|
|
4739
|
-
return [...Ds, ...t].map(
|
|
4740
|
-
}, "getSignals"),
|
|
4739
|
+
return [...Ds, ...t].map(qc);
|
|
4740
|
+
}, "getSignals"), qc = /* @__PURE__ */ i(({
|
|
4741
4741
|
name: t,
|
|
4742
4742
|
number: e,
|
|
4743
4743
|
description: r,
|
|
@@ -4747,7 +4747,7 @@ var mr = /* @__PURE__ */ i(() => {
|
|
|
4747
4747
|
}) => {
|
|
4748
4748
|
let {
|
|
4749
4749
|
signals: { [t]: a }
|
|
4750
|
-
} =
|
|
4750
|
+
} = Wc, c = a !== void 0;
|
|
4751
4751
|
return { name: t, number: c ? a : e, description: r, supported: c, action: n, forced: s, standard: o };
|
|
4752
4752
|
}, "normalizeSignal");
|
|
4753
4753
|
|
|
@@ -4789,7 +4789,7 @@ var zc = /* @__PURE__ */ i(() => {
|
|
|
4789
4789
|
}, "getSignalByNumber"), Yc = /* @__PURE__ */ i((t, e) => {
|
|
4790
4790
|
let r = e.find(({ name: n }) => Gc.signals[n] === t);
|
|
4791
4791
|
return r !== void 0 ? r : e.find((n) => n.number === t);
|
|
4792
|
-
}, "findSignalByNumber"),
|
|
4792
|
+
}, "findSignalByNumber"), bf = Jc();
|
|
4793
4793
|
|
|
4794
4794
|
// node_modules/execa/lib/error.js
|
|
4795
4795
|
var Qc = /* @__PURE__ */ i(({ timedOut: t, timeout: e, errorCode: r, signal: n, signalDescription: s, exitCode: o, isCanceled: a }) => t ? `\
|
|
@@ -4806,32 +4806,32 @@ o !== void 0 ? `failed with exit code ${o}` : "failed", "getErrorPrefix"), Fe =
|
|
|
4806
4806
|
timedOut: l,
|
|
4807
4807
|
isCanceled: p,
|
|
4808
4808
|
killed: f,
|
|
4809
|
-
parsed: { options: { timeout:
|
|
4809
|
+
parsed: { options: { timeout: b, cwd: _ = Xc.cwd() } }
|
|
4810
4810
|
}) => {
|
|
4811
4811
|
o = o === null ? void 0 : o, s = s === null ? void 0 : s;
|
|
4812
|
-
let k = s === void 0 ? void 0 : Ls[s].description,
|
|
4813
|
-
exitCode: o, isCanceled: p })}: ${a}`,
|
|
4814
|
-
${n.message}` : C, X = [
|
|
4812
|
+
let k = s === void 0 ? void 0 : Ls[s].description, P = n && n.code, C = `Command ${Qc({ timedOut: l, timeout: b, errorCode: P, signal: s, signalDescription: k,
|
|
4813
|
+
exitCode: o, isCanceled: p })}: ${a}`, je = Object.prototype.toString.call(n) === "[object Error]", be = je ? `${C}
|
|
4814
|
+
${n.message}` : C, X = [be, e, t].filter(Boolean).join(`
|
|
4815
4815
|
`);
|
|
4816
|
-
return
|
|
4817
|
-
exitCode = o, n.signal = s, n.signalDescription = k, n.stdout = t, n.stderr = e, n.cwd =
|
|
4816
|
+
return je ? (n.originalMessage = n.message, n.message = X) : n = new Error(X), n.shortMessage = be, n.command = a, n.escapedCommand = c, n.
|
|
4817
|
+
exitCode = o, n.signal = s, n.signalDescription = k, n.stdout = t, n.stderr = e, n.cwd = _, r !== void 0 && (n.all = r), "bufferedData" in
|
|
4818
4818
|
n && delete n.bufferedData, n.failed = !0, n.timedOut = !!l, n.isCanceled = p, n.killed = f && !l, n;
|
|
4819
4819
|
}, "makeError");
|
|
4820
4820
|
|
|
4821
4821
|
// node_modules/execa/lib/stdio.js
|
|
4822
|
-
var
|
|
4822
|
+
var xt = ["stdin", "stdout", "stderr"], ed = /* @__PURE__ */ i((t) => xt.some((e) => t[e] !== void 0), "hasAlias"), Us = /* @__PURE__ */ i((t) => {
|
|
4823
4823
|
if (!t)
|
|
4824
4824
|
return;
|
|
4825
4825
|
let { stdio: e } = t;
|
|
4826
4826
|
if (e === void 0)
|
|
4827
|
-
return
|
|
4827
|
+
return xt.map((n) => t[n]);
|
|
4828
4828
|
if (ed(t))
|
|
4829
|
-
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${
|
|
4829
|
+
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${xt.map((n) => `\`${n}\``).join(", ")}`);
|
|
4830
4830
|
if (typeof e == "string")
|
|
4831
4831
|
return e;
|
|
4832
4832
|
if (!Array.isArray(e))
|
|
4833
4833
|
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);
|
|
4834
|
-
let r = Math.max(e.length,
|
|
4834
|
+
let r = Math.max(e.length, xt.length);
|
|
4835
4835
|
return Array.from({ length: r }, (n, s) => e[s]);
|
|
4836
4836
|
}, "normalizeStdio");
|
|
4837
4837
|
|
|
@@ -4859,7 +4859,7 @@ process.platform !== "win32" && ye.push(
|
|
|
4859
4859
|
process.platform === "linux" && ye.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
4860
4860
|
|
|
4861
4861
|
// node_modules/signal-exit/dist/mjs/index.js
|
|
4862
|
-
var
|
|
4862
|
+
var vt = /* @__PURE__ */ i((t) => !!t && typeof t == "object" && typeof t.removeListener == "function" && typeof t.emit == "function" && typeof t.
|
|
4863
4863
|
reallyExit == "function" && typeof t.listeners == "function" && typeof t.kill == "function" && typeof t.pid == "number" && typeof t.on == "f\
|
|
4864
4864
|
unction", "processOk"), hr = Symbol.for("signal-exit emitter"), yr = globalThis, td = Object.defineProperty.bind(Object), gr = class {
|
|
4865
4865
|
static {
|
|
@@ -4901,7 +4901,7 @@ unction", "processOk"), hr = Symbol.for("signal-exit emitter"), yr = globalThis,
|
|
|
4901
4901
|
s = o(r, n) === !0 || s;
|
|
4902
4902
|
return e === "exit" && (s = this.emit("afterExit", r, n) || s), s;
|
|
4903
4903
|
}
|
|
4904
|
-
},
|
|
4904
|
+
}, _t = class {
|
|
4905
4905
|
static {
|
|
4906
4906
|
i(this, "SignalExitBase");
|
|
4907
4907
|
}
|
|
@@ -4915,7 +4915,7 @@ unction", "processOk"), hr = Symbol.for("signal-exit emitter"), yr = globalThis,
|
|
|
4915
4915
|
unload() {
|
|
4916
4916
|
return t.unload();
|
|
4917
4917
|
}
|
|
4918
|
-
}), "signalExitWrap"),
|
|
4918
|
+
}), "signalExitWrap"), br = class extends _t {
|
|
4919
4919
|
static {
|
|
4920
4920
|
i(this, "SignalExitFallback");
|
|
4921
4921
|
}
|
|
@@ -4927,14 +4927,14 @@ unction", "processOk"), hr = Symbol.for("signal-exit emitter"), yr = globalThis,
|
|
|
4927
4927
|
}
|
|
4928
4928
|
unload() {
|
|
4929
4929
|
}
|
|
4930
|
-
},
|
|
4930
|
+
}, xr = class extends _t {
|
|
4931
4931
|
static {
|
|
4932
4932
|
i(this, "SignalExit");
|
|
4933
4933
|
}
|
|
4934
4934
|
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
4935
4935
|
// so use a supported signal instead
|
|
4936
4936
|
/* c8 ignore start */
|
|
4937
|
-
#i =
|
|
4937
|
+
#i = vr.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
4938
4938
|
/* c8 ignore stop */
|
|
4939
4939
|
#t = new gr();
|
|
4940
4940
|
#e;
|
|
@@ -4957,7 +4957,7 @@ unction", "processOk"), hr = Symbol.for("signal-exit emitter"), yr = globalThis,
|
|
|
4957
4957
|
this.#o = e.reallyExit, this.#s = e.emit;
|
|
4958
4958
|
}
|
|
4959
4959
|
onExit(e, r) {
|
|
4960
|
-
if (!
|
|
4960
|
+
if (!vt(this.#e))
|
|
4961
4961
|
return () => {
|
|
4962
4962
|
};
|
|
4963
4963
|
this.#r === !1 && this.load();
|
|
@@ -4990,19 +4990,19 @@ unction", "processOk"), hr = Symbol.for("signal-exit emitter"), yr = globalThis,
|
|
|
4990
4990
|
}), this.#e.emit = this.#s, this.#e.reallyExit = this.#o, this.#t.count -= 1);
|
|
4991
4991
|
}
|
|
4992
4992
|
#a(e) {
|
|
4993
|
-
return
|
|
4993
|
+
return vt(this.#e) ? (this.#e.exitCode = e || 0, this.#t.emit("exit", this.#e.exitCode, null), this.#o.call(this.#e, this.#e.exitCode)) :
|
|
4994
4994
|
0;
|
|
4995
4995
|
}
|
|
4996
4996
|
#c(e, ...r) {
|
|
4997
4997
|
let n = this.#s;
|
|
4998
|
-
if (e === "exit" &&
|
|
4998
|
+
if (e === "exit" && vt(this.#e)) {
|
|
4999
4999
|
typeof r[0] == "number" && (this.#e.exitCode = r[0]);
|
|
5000
5000
|
let s = n.call(this.#e, e, ...r);
|
|
5001
5001
|
return this.#t.emit("exit", this.#e.exitCode, null), s;
|
|
5002
5002
|
} else
|
|
5003
5003
|
return n.call(this.#e, e, ...r);
|
|
5004
5004
|
}
|
|
5005
|
-
},
|
|
5005
|
+
}, vr = globalThis.process, {
|
|
5006
5006
|
/**
|
|
5007
5007
|
* Called when the process is exiting, whether via signal, explicit
|
|
5008
5008
|
* exit, or running out of stuff to do.
|
|
@@ -5020,7 +5020,7 @@ unction", "processOk"), hr = Symbol.for("signal-exit emitter"), yr = globalThis,
|
|
|
5020
5020
|
*
|
|
5021
5021
|
* @internal
|
|
5022
5022
|
*/
|
|
5023
|
-
load:
|
|
5023
|
+
load: Pf,
|
|
5024
5024
|
/**
|
|
5025
5025
|
* Unload the listeners. Likely you never need to call this, unless
|
|
5026
5026
|
* doing a rather deep integration with signal-exit functionality.
|
|
@@ -5028,8 +5028,8 @@ unction", "processOk"), hr = Symbol.for("signal-exit emitter"), yr = globalThis,
|
|
|
5028
5028
|
*
|
|
5029
5029
|
* @internal
|
|
5030
5030
|
*/
|
|
5031
|
-
unload:
|
|
5032
|
-
} = rd(
|
|
5031
|
+
unload: Af
|
|
5032
|
+
} = rd(vt(vr) ? new xr(vr) : new br());
|
|
5033
5033
|
|
|
5034
5034
|
// node_modules/execa/lib/kill.js
|
|
5035
5035
|
var sd = 1e3 * 5, Vs = /* @__PURE__ */ i((t, e = "SIGTERM", r = {}) => {
|
|
@@ -5064,10 +5064,10 @@ var sd = 1e3 * 5, Vs = /* @__PURE__ */ i((t, e = "SIGTERM", r = {}) => {
|
|
|
5064
5064
|
clearTimeout(s);
|
|
5065
5065
|
});
|
|
5066
5066
|
return Promise.race([o, a]);
|
|
5067
|
-
}, "setupTimeout"),
|
|
5067
|
+
}, "setupTimeout"), Ws = /* @__PURE__ */ i(({ timeout: t }) => {
|
|
5068
5068
|
if (t !== void 0 && (!Number.isFinite(t) || t < 0))
|
|
5069
5069
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);
|
|
5070
|
-
}, "validateTimeout"),
|
|
5070
|
+
}, "validateTimeout"), qs = /* @__PURE__ */ i(async (t, { cleanup: e, detached: r }, n) => {
|
|
5071
5071
|
if (!e || r)
|
|
5072
5072
|
return n;
|
|
5073
5073
|
let s = $s(() => {
|
|
@@ -5083,33 +5083,33 @@ import { createWriteStream as ud } from "node:fs";
|
|
|
5083
5083
|
import { ChildProcess as ld } from "node:child_process";
|
|
5084
5084
|
|
|
5085
5085
|
// node_modules/is-stream/index.js
|
|
5086
|
-
function
|
|
5086
|
+
function wt(t) {
|
|
5087
5087
|
return t !== null && typeof t == "object" && typeof t.pipe == "function";
|
|
5088
5088
|
}
|
|
5089
|
-
i(
|
|
5090
|
-
function
|
|
5091
|
-
return
|
|
5089
|
+
i(wt, "isStream");
|
|
5090
|
+
function _r(t) {
|
|
5091
|
+
return wt(t) && t.writable !== !1 && typeof t._write == "function" && typeof t._writableState == "object";
|
|
5092
5092
|
}
|
|
5093
|
-
i(
|
|
5093
|
+
i(_r, "isWritableStream");
|
|
5094
5094
|
|
|
5095
5095
|
// node_modules/execa/lib/pipe.js
|
|
5096
|
-
var pd = /* @__PURE__ */ i((t) => t instanceof ld && typeof t.then == "function", "isExecaChildProcess"),
|
|
5096
|
+
var pd = /* @__PURE__ */ i((t) => t instanceof ld && typeof t.then == "function", "isExecaChildProcess"), wr = /* @__PURE__ */ i((t, e, r) => {
|
|
5097
5097
|
if (typeof r == "string")
|
|
5098
5098
|
return t[e].pipe(ud(r)), t;
|
|
5099
|
-
if (
|
|
5099
|
+
if (_r(r))
|
|
5100
5100
|
return t[e].pipe(r), t;
|
|
5101
5101
|
if (!pd(r))
|
|
5102
5102
|
throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
|
|
5103
|
-
if (!
|
|
5103
|
+
if (!_r(r.stdin))
|
|
5104
5104
|
throw new TypeError("The target child process's stdin must be available.");
|
|
5105
5105
|
return t[e].pipe(r.stdin), r;
|
|
5106
5106
|
}, "pipeToTarget"), Gs = /* @__PURE__ */ i((t) => {
|
|
5107
|
-
t.stdout !== null && (t.pipeStdout =
|
|
5108
|
-
all !== void 0 && (t.pipeAll =
|
|
5107
|
+
t.stdout !== null && (t.pipeStdout = wr.bind(void 0, t, "stdout")), t.stderr !== null && (t.pipeStderr = wr.bind(void 0, t, "stderr")), t.
|
|
5108
|
+
all !== void 0 && (t.pipeAll = wr.bind(void 0, t, "all"));
|
|
5109
5109
|
}, "addPipeMethods");
|
|
5110
5110
|
|
|
5111
5111
|
// node_modules/execa/lib/stream.js
|
|
5112
|
-
import { createReadStream as
|
|
5112
|
+
import { createReadStream as Od, readFileSync as jd } from "node:fs";
|
|
5113
5113
|
import { setTimeout as Rd } from "node:timers/promises";
|
|
5114
5114
|
|
|
5115
5115
|
// node_modules/get-stream/source/contents.js
|
|
@@ -5121,8 +5121,8 @@ maxBuffer: l = Number.POSITIVE_INFINITY } = {}) => {
|
|
|
5121
5121
|
p.length = 0;
|
|
5122
5122
|
try {
|
|
5123
5123
|
for await (let f of t) {
|
|
5124
|
-
let
|
|
5125
|
-
Js({ convertedChunk:
|
|
5124
|
+
let b = hd(f), _ = r[b](f, p);
|
|
5125
|
+
Js({ convertedChunk: _, state: p, getSize: n, truncateChunk: s, addChunk: o, maxBuffer: l });
|
|
5126
5126
|
}
|
|
5127
5127
|
return fd({ state: p, convertChunk: r, getSize: n, truncateChunk: s, addChunk: o, getFinalChunk: a, maxBuffer: l }), c(p);
|
|
5128
5128
|
} catch (f) {
|
|
@@ -5174,18 +5174,18 @@ async function Sr(t, e) {
|
|
|
5174
5174
|
return Be(t, Td, e);
|
|
5175
5175
|
}
|
|
5176
5176
|
i(Sr, "getStreamAsArrayBuffer");
|
|
5177
|
-
var yd = /* @__PURE__ */ i(() => ({ contents: new ArrayBuffer(0) }), "initArrayBuffer"), gd = /* @__PURE__ */ i((t) =>
|
|
5178
|
-
tEncoder"),
|
|
5179
|
-
t.buffer, t.byteOffset, t.byteLength), "useUint8ArrayWithOffset"),
|
|
5180
|
-
|
|
5181
|
-
let s = eo() ?
|
|
5177
|
+
var yd = /* @__PURE__ */ i(() => ({ contents: new ArrayBuffer(0) }), "initArrayBuffer"), gd = /* @__PURE__ */ i((t) => bd.encode(t), "useTex\
|
|
5178
|
+
tEncoder"), bd = new TextEncoder(), Hs = /* @__PURE__ */ i((t) => new Uint8Array(t), "useUint8Array"), Ys = /* @__PURE__ */ i((t) => new Uint8Array(
|
|
5179
|
+
t.buffer, t.byteOffset, t.byteLength), "useUint8ArrayWithOffset"), xd = /* @__PURE__ */ i((t, e) => t.slice(0, e), "truncateArrayBufferChunk"),
|
|
5180
|
+
vd = /* @__PURE__ */ i((t, { contents: e, length: r }, n) => {
|
|
5181
|
+
let s = eo() ? wd(e, n) : _d(e, n);
|
|
5182
5182
|
return new Uint8Array(s).set(t, r), s;
|
|
5183
|
-
}, "addArrayBufferChunk"),
|
|
5183
|
+
}, "addArrayBufferChunk"), _d = /* @__PURE__ */ i((t, e) => {
|
|
5184
5184
|
if (e <= t.byteLength)
|
|
5185
5185
|
return t;
|
|
5186
5186
|
let r = new ArrayBuffer(Qs(e));
|
|
5187
5187
|
return new Uint8Array(r).set(new Uint8Array(t), 0), r;
|
|
5188
|
-
}, "resizeArrayBufferSlow"),
|
|
5188
|
+
}, "resizeArrayBufferSlow"), wd = /* @__PURE__ */ i((t, e) => {
|
|
5189
5189
|
if (e <= t.maxByteLength)
|
|
5190
5190
|
return t.resize(e), t;
|
|
5191
5191
|
let r = new ArrayBuffer(e, { maxByteLength: Qs(e) });
|
|
@@ -5203,8 +5203,8 @@ xd = /* @__PURE__ */ i((t, { contents: e, length: r }, n) => {
|
|
|
5203
5203
|
others: Tt
|
|
5204
5204
|
},
|
|
5205
5205
|
getSize: It,
|
|
5206
|
-
truncateChunk:
|
|
5207
|
-
addChunk:
|
|
5206
|
+
truncateChunk: xd,
|
|
5207
|
+
addChunk: vd,
|
|
5208
5208
|
getFinalChunk: Tr,
|
|
5209
5209
|
finalize: kd
|
|
5210
5210
|
};
|
|
@@ -5224,7 +5224,7 @@ var to = /* @__PURE__ */ i((t) => globalThis.Buffer.from(t), "arrayBufferToNodeB
|
|
|
5224
5224
|
|
|
5225
5225
|
// node_modules/get-stream/source/string.js
|
|
5226
5226
|
async function Er(t, e) {
|
|
5227
|
-
return Be(t,
|
|
5227
|
+
return Be(t, Pd, e);
|
|
5228
5228
|
}
|
|
5229
5229
|
i(Er, "getStreamAsString");
|
|
5230
5230
|
var Id = /* @__PURE__ */ i(() => ({ contents: "", textDecoder: new TextDecoder() }), "initString"), Et = /* @__PURE__ */ i((t, { textDecoder: e }) => e.
|
|
@@ -5232,7 +5232,7 @@ decode(t, { stream: !0 }), "useTextDecoder"), Sd = /* @__PURE__ */ i((t, { conte
|
|
|
5232
5232
|
(t, e) => t.slice(0, e), "truncateStringChunk"), Cd = /* @__PURE__ */ i(({ textDecoder: t }) => {
|
|
5233
5233
|
let e = t.decode();
|
|
5234
5234
|
return e === "" ? void 0 : e;
|
|
5235
|
-
}, "getFinalStringChunk"),
|
|
5235
|
+
}, "getFinalStringChunk"), Pd = {
|
|
5236
5236
|
init: Id,
|
|
5237
5237
|
convertChunk: {
|
|
5238
5238
|
string: kr,
|
|
@@ -5254,16 +5254,16 @@ var so = G(no(), 1);
|
|
|
5254
5254
|
var oo = /* @__PURE__ */ i((t) => {
|
|
5255
5255
|
if (t !== void 0)
|
|
5256
5256
|
throw new TypeError("The `input` and `inputFile` options cannot be both set.");
|
|
5257
|
-
}, "validateInputOptions"), Nd = /* @__PURE__ */ i(({ input: t, inputFile: e }) => typeof e != "string" ? t : (oo(t),
|
|
5257
|
+
}, "validateInputOptions"), Nd = /* @__PURE__ */ i(({ input: t, inputFile: e }) => typeof e != "string" ? t : (oo(t), jd(e)), "getInputSync"),
|
|
5258
5258
|
io = /* @__PURE__ */ i((t) => {
|
|
5259
5259
|
let e = Nd(t);
|
|
5260
|
-
if (
|
|
5260
|
+
if (wt(e))
|
|
5261
5261
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
5262
5262
|
return e;
|
|
5263
|
-
}, "handleInputSync"), Zd = /* @__PURE__ */ i(({ input: t, inputFile: e }) => typeof e != "string" ? t : (oo(t),
|
|
5263
|
+
}, "handleInputSync"), Zd = /* @__PURE__ */ i(({ input: t, inputFile: e }) => typeof e != "string" ? t : (oo(t), Od(e)), "getInput"), ao = /* @__PURE__ */ i(
|
|
5264
5264
|
(t, e) => {
|
|
5265
5265
|
let r = Zd(e);
|
|
5266
|
-
r !== void 0 && (
|
|
5266
|
+
r !== void 0 && (wt(r) ? r.pipe(t.stdin) : t.stdin.end(r));
|
|
5267
5267
|
}, "handleInput"), co = /* @__PURE__ */ i((t, { all: e }) => {
|
|
5268
5268
|
if (!e || !t.stdout && !t.stderr)
|
|
5269
5269
|
return;
|
|
@@ -5278,12 +5278,12 @@ io = /* @__PURE__ */ i((t) => {
|
|
|
5278
5278
|
return r.bufferedData;
|
|
5279
5279
|
}
|
|
5280
5280
|
}
|
|
5281
|
-
}, "getBufferedData"),
|
|
5281
|
+
}, "getBufferedData"), Pr = /* @__PURE__ */ i((t, { encoding: e, buffer: r, maxBuffer: n }) => {
|
|
5282
5282
|
if (!(!t || !r))
|
|
5283
5283
|
return e === "utf8" || e === "utf-8" ? Er(t, { maxBuffer: n }) : e === null || e === "buffer" ? St(t, { maxBuffer: n }) : Md(t, n, e);
|
|
5284
5284
|
}, "getStreamPromise"), Md = /* @__PURE__ */ i(async (t, e, r) => (await St(t, { maxBuffer: e })).toString(r), "applyEncoding"), uo = /* @__PURE__ */ i(
|
|
5285
5285
|
async ({ stdout: t, stderr: e, all: r }, { encoding: n, buffer: s, maxBuffer: o }, a) => {
|
|
5286
|
-
let c =
|
|
5286
|
+
let c = Pr(t, { encoding: n, buffer: s, maxBuffer: o }), l = Pr(e, { encoding: n, buffer: s, maxBuffer: o }), p = Pr(r, { encoding: n, buffer: s,
|
|
5287
5287
|
maxBuffer: o * 2 });
|
|
5288
5288
|
try {
|
|
5289
5289
|
return await Promise.all([a, c, l, p]);
|
|
@@ -5302,7 +5302,7 @@ var Dd = (async () => {
|
|
|
5302
5302
|
})().constructor.prototype, Ld = ["then", "catch", "finally"].map((t) => [
|
|
5303
5303
|
t,
|
|
5304
5304
|
Reflect.getOwnPropertyDescriptor(Dd, t)
|
|
5305
|
-
]),
|
|
5305
|
+
]), Ar = /* @__PURE__ */ i((t, e) => {
|
|
5306
5306
|
for (let [r, n] of Ld) {
|
|
5307
5307
|
let s = typeof e == "function" ? (...o) => Reflect.apply(n.value, e(), o) : n.value.bind(e);
|
|
5308
5308
|
Reflect.defineProperty(t, r, { ...n, value: s });
|
|
@@ -5321,8 +5321,8 @@ var Dd = (async () => {
|
|
|
5321
5321
|
import { Buffer as Ud } from "node:buffer";
|
|
5322
5322
|
import { ChildProcess as $d } from "node:child_process";
|
|
5323
5323
|
var mo = /* @__PURE__ */ i((t, e = []) => Array.isArray(e) ? [t, ...e] : [t], "normalizeArgs"), Vd = /^[\w.-]+$/, Fd = /* @__PURE__ */ i((t) => typeof t !=
|
|
5324
|
-
"string" || Vd.test(t) ? t : `"${t.replaceAll('"', '\\"')}"`, "escapeArg"),
|
|
5325
|
-
d"),
|
|
5324
|
+
"string" || Vd.test(t) ? t : `"${t.replaceAll('"', '\\"')}"`, "escapeArg"), Or = /* @__PURE__ */ i((t, e) => mo(t, e).join(" "), "joinComman\
|
|
5325
|
+
d"), jr = /* @__PURE__ */ i((t, e) => mo(t, e).map((r) => Fd(r)).join(" "), "getEscapedCommand"), ho = / +/g, yo = /* @__PURE__ */ i((t) => {
|
|
5326
5326
|
let e = [];
|
|
5327
5327
|
for (let r of t.trim().split(ho)) {
|
|
5328
5328
|
let n = e.at(-1);
|
|
@@ -5370,30 +5370,30 @@ d"), Or = /* @__PURE__ */ i((t, e) => mo(t, e).map((r) => Fd(r)).join(" "), "get
|
|
|
5370
5370
|
}, "parseTemplates");
|
|
5371
5371
|
|
|
5372
5372
|
// node_modules/execa/lib/verbose.js
|
|
5373
|
-
import { debuglog as
|
|
5374
|
-
import
|
|
5375
|
-
var go =
|
|
5373
|
+
import { debuglog as Wd } from "node:util";
|
|
5374
|
+
import qd from "node:process";
|
|
5375
|
+
var go = Wd("execa").enabled, Ct = /* @__PURE__ */ i((t, e) => String(t).padStart(e, "0"), "padField"), Gd = /* @__PURE__ */ i(() => {
|
|
5376
5376
|
let t = /* @__PURE__ */ new Date();
|
|
5377
5377
|
return `${Ct(t.getHours(), 2)}:${Ct(t.getMinutes(), 2)}:${Ct(t.getSeconds(), 2)}.${Ct(t.getMilliseconds(), 3)}`;
|
|
5378
5378
|
}, "getTimestamp"), Nr = /* @__PURE__ */ i((t, { verbose: e }) => {
|
|
5379
|
-
e &&
|
|
5379
|
+
e && qd.stderr.write(`[${Gd()}] ${t}
|
|
5380
5380
|
`);
|
|
5381
5381
|
}, "logCommand");
|
|
5382
5382
|
|
|
5383
5383
|
// node_modules/execa/index.js
|
|
5384
5384
|
var Jd = 1e3 * 1e3 * 100, Hd = /* @__PURE__ */ i(({ env: t, extendEnv: e, preferLocal: r, localDir: n, execPath: s }) => {
|
|
5385
|
-
let o = e ? { ...
|
|
5386
|
-
return r ?
|
|
5387
|
-
}, "getEnv"),
|
|
5388
|
-
let n =
|
|
5385
|
+
let o = e ? { ...Pt.env, ...t } : t;
|
|
5386
|
+
return r ? js({ env: o, cwd: n, execPath: s }) : o;
|
|
5387
|
+
}, "getEnv"), vo = /* @__PURE__ */ i((t, e, r = {}) => {
|
|
5388
|
+
let n = xo.default._parse(t, e, r);
|
|
5389
5389
|
return t = n.command, e = n.args, r = n.options, r = {
|
|
5390
5390
|
maxBuffer: Jd,
|
|
5391
5391
|
buffer: !0,
|
|
5392
5392
|
stripFinalNewline: !0,
|
|
5393
5393
|
extendEnv: !0,
|
|
5394
5394
|
preferLocal: !1,
|
|
5395
|
-
localDir: r.cwd ||
|
|
5396
|
-
execPath:
|
|
5395
|
+
localDir: r.cwd || Pt.cwd(),
|
|
5396
|
+
execPath: Pt.execPath,
|
|
5397
5397
|
encoding: "utf8",
|
|
5398
5398
|
reject: !0,
|
|
5399
5399
|
cleanup: !0,
|
|
@@ -5401,18 +5401,18 @@ var Jd = 1e3 * 1e3 * 100, Hd = /* @__PURE__ */ i(({ env: t, extendEnv: e, prefer
|
|
|
5401
5401
|
windowsHide: !0,
|
|
5402
5402
|
verbose: go,
|
|
5403
5403
|
...r
|
|
5404
|
-
}, r.env = Hd(r), r.stdio = Us(r),
|
|
5404
|
+
}, r.env = Hd(r), r.stdio = Us(r), Pt.platform === "win32" && Kd.basename(t, ".exe") === "cmd" && e.unshift("/q"), { file: t, args: e, options: r,
|
|
5405
5405
|
parsed: n };
|
|
5406
|
-
}, "handleArguments"),
|
|
5406
|
+
}, "handleArguments"), We = /* @__PURE__ */ i((t, e, r) => typeof e != "string" && !zd.isBuffer(e) ? r === void 0 ? void 0 : "" : t.stripFinalNewline ?
|
|
5407
5407
|
lr(e) : e, "handleOutput");
|
|
5408
|
-
function
|
|
5409
|
-
let n =
|
|
5410
|
-
Nr(o, n.options),
|
|
5408
|
+
function _o(t, e, r) {
|
|
5409
|
+
let n = vo(t, e, r), s = Or(t, e), o = jr(t, e);
|
|
5410
|
+
Nr(o, n.options), Ws(n.options);
|
|
5411
5411
|
let a;
|
|
5412
5412
|
try {
|
|
5413
5413
|
a = Zr.spawn(n.file, n.args, n.options);
|
|
5414
5414
|
} catch (k) {
|
|
5415
|
-
let
|
|
5415
|
+
let P = new Zr.ChildProcess(), S = Promise.reject(Fe({
|
|
5416
5416
|
error: k,
|
|
5417
5417
|
stdout: "",
|
|
5418
5418
|
stderr: "",
|
|
@@ -5424,21 +5424,21 @@ function wo(t, e, r) {
|
|
|
5424
5424
|
isCanceled: !1,
|
|
5425
5425
|
killed: !1
|
|
5426
5426
|
}));
|
|
5427
|
-
return
|
|
5427
|
+
return Ar(P, S), P;
|
|
5428
5428
|
}
|
|
5429
|
-
let c = lo(a), l = Bs(a, n.options, c), p =
|
|
5429
|
+
let c = lo(a), l = Bs(a, n.options, c), p = qs(a, n.options, l), f = { isCanceled: !1 };
|
|
5430
5430
|
a.kill = Vs.bind(null, a.kill.bind(a)), a.cancel = Fs.bind(null, a, f);
|
|
5431
|
-
let
|
|
5432
|
-
let [{ error: k, exitCode:
|
|
5433
|
-
|
|
5434
|
-
if (k ||
|
|
5435
|
-
let
|
|
5431
|
+
let _ = Ns(/* @__PURE__ */ i(async () => {
|
|
5432
|
+
let [{ error: k, exitCode: P, signal: S, timedOut: C }, je, be, X] = await uo(a, n.options, p), Je = We(n.options, je), He = We(n.options,
|
|
5433
|
+
be), w = We(n.options, X);
|
|
5434
|
+
if (k || P !== 0 || S !== null) {
|
|
5435
|
+
let A = Fe({
|
|
5436
5436
|
error: k,
|
|
5437
|
-
exitCode:
|
|
5437
|
+
exitCode: P,
|
|
5438
5438
|
signal: S,
|
|
5439
5439
|
stdout: Je,
|
|
5440
5440
|
stderr: He,
|
|
5441
|
-
all:
|
|
5441
|
+
all: w,
|
|
5442
5442
|
command: s,
|
|
5443
5443
|
escapedCommand: o,
|
|
5444
5444
|
parsed: n,
|
|
@@ -5447,8 +5447,8 @@ function wo(t, e, r) {
|
|
|
5447
5447
|
killed: a.killed
|
|
5448
5448
|
});
|
|
5449
5449
|
if (!n.options.reject)
|
|
5450
|
-
return
|
|
5451
|
-
throw
|
|
5450
|
+
return A;
|
|
5451
|
+
throw A;
|
|
5452
5452
|
}
|
|
5453
5453
|
return {
|
|
5454
5454
|
command: s,
|
|
@@ -5456,18 +5456,18 @@ function wo(t, e, r) {
|
|
|
5456
5456
|
exitCode: 0,
|
|
5457
5457
|
stdout: Je,
|
|
5458
5458
|
stderr: He,
|
|
5459
|
-
all:
|
|
5459
|
+
all: w,
|
|
5460
5460
|
failed: !1,
|
|
5461
5461
|
timedOut: !1,
|
|
5462
5462
|
isCanceled: !1,
|
|
5463
5463
|
killed: !1
|
|
5464
5464
|
};
|
|
5465
5465
|
}, "handlePromise"));
|
|
5466
|
-
return ao(a, n.options), a.all = co(a, n.options), Gs(a),
|
|
5466
|
+
return ao(a, n.options), a.all = co(a, n.options), Gs(a), Ar(a, _), a;
|
|
5467
5467
|
}
|
|
5468
|
-
i(
|
|
5468
|
+
i(_o, "execa");
|
|
5469
5469
|
function Yd(t, e, r) {
|
|
5470
|
-
let n =
|
|
5470
|
+
let n = vo(t, e, r), s = Or(t, e), o = jr(t, e);
|
|
5471
5471
|
Nr(o, n.options);
|
|
5472
5472
|
let a = io(n.options), c;
|
|
5473
5473
|
try {
|
|
@@ -5486,7 +5486,7 @@ function Yd(t, e, r) {
|
|
|
5486
5486
|
killed: !1
|
|
5487
5487
|
});
|
|
5488
5488
|
}
|
|
5489
|
-
let l =
|
|
5489
|
+
let l = We(n.options, c.stdout, c.error), p = We(n.options, c.stderr, c.error);
|
|
5490
5490
|
if (c.error || c.status !== 0 || c.signal !== null) {
|
|
5491
5491
|
let f = Fe({
|
|
5492
5492
|
stdout: l,
|
|
@@ -5519,35 +5519,35 @@ function Yd(t, e, r) {
|
|
|
5519
5519
|
}
|
|
5520
5520
|
i(Yd, "execaSync");
|
|
5521
5521
|
var Xd = /* @__PURE__ */ i(({ input: t, inputFile: e, stdio: r }) => t === void 0 && e === void 0 && r === void 0 ? { stdin: "inherit" } : {},
|
|
5522
|
-
"normalizeScriptStdin"),
|
|
5522
|
+
"normalizeScriptStdin"), bo = /* @__PURE__ */ i((t = {}) => ({
|
|
5523
5523
|
preferLocal: !0,
|
|
5524
5524
|
...Xd(t),
|
|
5525
5525
|
...t
|
|
5526
5526
|
}), "normalizeScriptOptions");
|
|
5527
|
-
function
|
|
5527
|
+
function wo(t) {
|
|
5528
5528
|
function e(r, ...n) {
|
|
5529
5529
|
if (!Array.isArray(r))
|
|
5530
|
-
return
|
|
5530
|
+
return wo({ ...t, ...r });
|
|
5531
5531
|
let [s, ...o] = Rr(r, n);
|
|
5532
|
-
return
|
|
5532
|
+
return _o(s, o, bo(t));
|
|
5533
5533
|
}
|
|
5534
5534
|
return i(e, "$"), e.sync = (r, ...n) => {
|
|
5535
5535
|
if (!Array.isArray(r))
|
|
5536
5536
|
throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
|
|
5537
5537
|
let [s, ...o] = Rr(r, n);
|
|
5538
|
-
return Yd(s, o,
|
|
5538
|
+
return Yd(s, o, bo(t));
|
|
5539
5539
|
}, e;
|
|
5540
5540
|
}
|
|
5541
|
-
i(
|
|
5542
|
-
var Hm =
|
|
5541
|
+
i(wo, "create$");
|
|
5542
|
+
var Hm = wo();
|
|
5543
5543
|
function ko(t, e) {
|
|
5544
5544
|
let [r, ...n] = yo(t);
|
|
5545
|
-
return
|
|
5545
|
+
return _o(r, n, e);
|
|
5546
5546
|
}
|
|
5547
5547
|
i(ko, "execaCommand");
|
|
5548
5548
|
|
|
5549
5549
|
// src/telemetry/exec-command-count-lines.ts
|
|
5550
|
-
async function
|
|
5550
|
+
async function At(t, e) {
|
|
5551
5551
|
let r = ko(t, { shell: !0, buffer: !1, ...e });
|
|
5552
5552
|
if (!r.stdout)
|
|
5553
5553
|
throw new Error("Unexpected missing stdout");
|
|
@@ -5556,24 +5556,24 @@ async function Pt(t, e) {
|
|
|
5556
5556
|
n += 1;
|
|
5557
5557
|
}), await r, s.close(), n;
|
|
5558
5558
|
}
|
|
5559
|
-
i(
|
|
5559
|
+
i(At, "execCommandCountLines");
|
|
5560
5560
|
|
|
5561
5561
|
// src/common/utils/file-cache.ts
|
|
5562
5562
|
import { createHash as Io, randomBytes as eu } from "node:crypto";
|
|
5563
5563
|
import { mkdirSync as Dr, readFileSync as tu, readdirSync as ru, rmSync as So, writeFileSync as nu } from "node:fs";
|
|
5564
|
-
import { readFile as Eo, readdir as Co, rm as
|
|
5564
|
+
import { readFile as Eo, readdir as Co, rm as Po, writeFile as su } from "node:fs/promises";
|
|
5565
5565
|
import { tmpdir as ou } from "node:os";
|
|
5566
|
-
import { join as
|
|
5567
|
-
var
|
|
5566
|
+
import { join as qe } from "node:path";
|
|
5567
|
+
var Ot = class {
|
|
5568
5568
|
static {
|
|
5569
5569
|
i(this, "FileSystemCache");
|
|
5570
5570
|
}
|
|
5571
5571
|
constructor(e = {}) {
|
|
5572
|
-
this.prefix = (e.ns || e.prefix || "") + "-", this.hash_alg = e.hash_alg || "md5", this.cache_dir = e.basePath ||
|
|
5572
|
+
this.prefix = (e.ns || e.prefix || "") + "-", this.hash_alg = e.hash_alg || "md5", this.cache_dir = e.basePath || qe(ou(), eu(15).toString(
|
|
5573
5573
|
"base64").replace(/\//g, "-")), this.ttl = e.ttl || 0, Io(this.hash_alg), Dr(this.cache_dir, { recursive: !0 });
|
|
5574
5574
|
}
|
|
5575
5575
|
generateHash(e) {
|
|
5576
|
-
return
|
|
5576
|
+
return qe(this.cache_dir, this.prefix + Io(this.hash_alg).update(e).digest("hex"));
|
|
5577
5577
|
}
|
|
5578
5578
|
isExpired(e, r) {
|
|
5579
5579
|
return e.ttl != null && r > e.ttl;
|
|
@@ -5621,7 +5621,7 @@ var At = class {
|
|
|
5621
5621
|
e.forEach((n) => this.setSync(n.key, n.content ?? n.value, r));
|
|
5622
5622
|
}
|
|
5623
5623
|
async remove(e) {
|
|
5624
|
-
await
|
|
5624
|
+
await Po(this.generateHash(e), { force: !0 });
|
|
5625
5625
|
}
|
|
5626
5626
|
removeSync(e) {
|
|
5627
5627
|
So(this.generateHash(e), { force: !0 });
|
|
@@ -5629,16 +5629,16 @@ var At = class {
|
|
|
5629
5629
|
async clear() {
|
|
5630
5630
|
let e = await Co(this.cache_dir);
|
|
5631
5631
|
await Promise.all(
|
|
5632
|
-
e.filter((r) => r.startsWith(this.prefix)).map((r) =>
|
|
5632
|
+
e.filter((r) => r.startsWith(this.prefix)).map((r) => Po(qe(this.cache_dir, r), { force: !0 }))
|
|
5633
5633
|
);
|
|
5634
5634
|
}
|
|
5635
5635
|
clearSync() {
|
|
5636
|
-
ru(this.cache_dir).filter((e) => e.startsWith(this.prefix)).forEach((e) => So(
|
|
5636
|
+
ru(this.cache_dir).filter((e) => e.startsWith(this.prefix)).forEach((e) => So(qe(this.cache_dir, e), { force: !0 }));
|
|
5637
5637
|
}
|
|
5638
5638
|
async getAll() {
|
|
5639
5639
|
let e = Date.now(), r = await Co(this.cache_dir);
|
|
5640
5640
|
return (await Promise.all(
|
|
5641
|
-
r.filter((s) => s.startsWith(this.prefix)).map((s) => Eo(
|
|
5641
|
+
r.filter((s) => s.startsWith(this.prefix)).map((s) => Eo(qe(this.cache_dir, s), "utf8"))
|
|
5642
5642
|
)).map((s) => JSON.parse(s)).filter((s) => s.content && !this.isExpired(s, e));
|
|
5643
5643
|
}
|
|
5644
5644
|
async load() {
|
|
@@ -5652,7 +5652,7 @@ var At = class {
|
|
|
5652
5652
|
}
|
|
5653
5653
|
};
|
|
5654
5654
|
function Lr(t) {
|
|
5655
|
-
return new
|
|
5655
|
+
return new Ot(t);
|
|
5656
5656
|
}
|
|
5657
5657
|
i(Lr, "createFileSystemCache");
|
|
5658
5658
|
|
|
@@ -5660,22 +5660,22 @@ i(Lr, "createFileSystemCache");
|
|
|
5660
5660
|
import { join as Uo } from "node:path";
|
|
5661
5661
|
|
|
5662
5662
|
// node_modules/find-cache-dir/index.js
|
|
5663
|
-
var Lo = G(
|
|
5664
|
-
import
|
|
5663
|
+
var Lo = G(Oo(), 1);
|
|
5664
|
+
import xu from "node:process";
|
|
5665
5665
|
import Ge from "node:path";
|
|
5666
5666
|
import Rt from "node:fs";
|
|
5667
5667
|
|
|
5668
5668
|
// ../node_modules/pkg-dir/index.js
|
|
5669
|
-
import
|
|
5669
|
+
import bu from "node:path";
|
|
5670
5670
|
|
|
5671
5671
|
// ../node_modules/pkg-dir/node_modules/find-up/index.js
|
|
5672
|
-
import
|
|
5672
|
+
import jt from "node:path";
|
|
5673
5673
|
import { fileURLToPath as mu } from "node:url";
|
|
5674
5674
|
|
|
5675
5675
|
// ../node_modules/locate-path/index.js
|
|
5676
5676
|
import cu from "node:process";
|
|
5677
5677
|
import du from "node:path";
|
|
5678
|
-
import
|
|
5678
|
+
import jo, { promises as Th } from "node:fs";
|
|
5679
5679
|
import { fileURLToPath as uu } from "node:url";
|
|
5680
5680
|
var Ro = {
|
|
5681
5681
|
directory: "isDirectory",
|
|
@@ -5693,7 +5693,7 @@ function Ur(t, {
|
|
|
5693
5693
|
allowSymlinks: n = !0
|
|
5694
5694
|
} = {}) {
|
|
5695
5695
|
lu(r), e = fu(e);
|
|
5696
|
-
let s = n ?
|
|
5696
|
+
let s = n ? jo.statSync : jo.lstatSync;
|
|
5697
5697
|
for (let o of t)
|
|
5698
5698
|
try {
|
|
5699
5699
|
let a = s(du.resolve(e, o), {
|
|
@@ -5709,12 +5709,12 @@ function Ur(t, {
|
|
|
5709
5709
|
i(Ur, "locatePathSync");
|
|
5710
5710
|
|
|
5711
5711
|
// ../node_modules/pkg-dir/node_modules/path-exists/index.js
|
|
5712
|
-
import
|
|
5712
|
+
import Ah, { promises as Oh } from "node:fs";
|
|
5713
5713
|
|
|
5714
5714
|
// ../node_modules/pkg-dir/node_modules/find-up/index.js
|
|
5715
5715
|
var hu = /* @__PURE__ */ i((t) => t instanceof URL ? mu(t) : t, "toPath"), yu = Symbol("findUpStop");
|
|
5716
5716
|
function gu(t, e = {}) {
|
|
5717
|
-
let r =
|
|
5717
|
+
let r = jt.resolve(hu(e.cwd) || ""), { root: n } = jt.parse(r), s = e.stopAt || n, o = e.limit || Number.POSITIVE_INFINITY, a = [t].flat(),
|
|
5718
5718
|
c = /* @__PURE__ */ i((p) => {
|
|
5719
5719
|
if (typeof t != "function")
|
|
5720
5720
|
return Ur(a, p);
|
|
@@ -5723,9 +5723,9 @@ function gu(t, e = {}) {
|
|
|
5723
5723
|
}, "runMatcher"), l = [];
|
|
5724
5724
|
for (; ; ) {
|
|
5725
5725
|
let p = c({ ...e, cwd: r });
|
|
5726
|
-
if (p === yu || (p && l.push(
|
|
5726
|
+
if (p === yu || (p && l.push(jt.resolve(r, p)), r === s || l.length >= o))
|
|
5727
5727
|
break;
|
|
5728
|
-
r =
|
|
5728
|
+
r = jt.dirname(r);
|
|
5729
5729
|
}
|
|
5730
5730
|
return l;
|
|
5731
5731
|
}
|
|
@@ -5738,12 +5738,12 @@ i(No, "findUpSync");
|
|
|
5738
5738
|
// ../node_modules/pkg-dir/index.js
|
|
5739
5739
|
function Zo({ cwd: t } = {}) {
|
|
5740
5740
|
let e = No("package.json", { cwd: t });
|
|
5741
|
-
return e &&
|
|
5741
|
+
return e && bu.dirname(e);
|
|
5742
5742
|
}
|
|
5743
5743
|
i(Zo, "packageDirectorySync");
|
|
5744
5744
|
|
|
5745
5745
|
// node_modules/find-cache-dir/index.js
|
|
5746
|
-
var { env: $r, cwd:
|
|
5746
|
+
var { env: $r, cwd: vu } = xu, Mo = /* @__PURE__ */ i((t) => {
|
|
5747
5747
|
try {
|
|
5748
5748
|
return Rt.accessSync(t, Rt.constants.W_OK), !0;
|
|
5749
5749
|
} catch {
|
|
@@ -5754,22 +5754,22 @@ function Do(t, e) {
|
|
|
5754
5754
|
return e.create && Rt.mkdirSync(t, { recursive: !0 }), t;
|
|
5755
5755
|
}
|
|
5756
5756
|
i(Do, "useDirectory");
|
|
5757
|
-
function
|
|
5757
|
+
function _u(t) {
|
|
5758
5758
|
let e = Ge.join(t, "node_modules");
|
|
5759
5759
|
if (!(!Mo(e) && (Rt.existsSync(e) || !Mo(Ge.join(t)))))
|
|
5760
5760
|
return e;
|
|
5761
5761
|
}
|
|
5762
|
-
i(
|
|
5762
|
+
i(_u, "getNodeModuleDirectory");
|
|
5763
5763
|
function Vr(t = {}) {
|
|
5764
5764
|
if ($r.CACHE_DIR && !["true", "false", "1", "0"].includes($r.CACHE_DIR))
|
|
5765
5765
|
return Do(Ge.join($r.CACHE_DIR, t.name), t);
|
|
5766
|
-
let { cwd: e =
|
|
5766
|
+
let { cwd: e = vu(), files: r } = t;
|
|
5767
5767
|
if (r) {
|
|
5768
5768
|
if (!Array.isArray(r))
|
|
5769
5769
|
throw new TypeError(`Expected \`files\` option to be an array, got \`${typeof r}\`.`);
|
|
5770
5770
|
e = (0, Lo.default)(r.map((s) => Ge.resolve(e, s)));
|
|
5771
5771
|
}
|
|
5772
|
-
if (e = Zo({ cwd: e }), !(!e || !
|
|
5772
|
+
if (e = Zo({ cwd: e }), !(!e || !_u(e)))
|
|
5773
5773
|
return Do(Ge.join(e, "node_modules", ".cache", t.name), t);
|
|
5774
5774
|
}
|
|
5775
5775
|
i(Vr, "findCacheDirectory");
|
|
@@ -5798,11 +5798,11 @@ var ku = ["page", "screen"], Tu = ["js", "jsx", "ts", "tsx"], Iu = /* @__PURE__
|
|
|
5798
5798
|
n,
|
|
5799
5799
|
[n[0].toUpperCase(), ...n.slice(1)].join("")
|
|
5800
5800
|
]).flatMap(
|
|
5801
|
-
(n) => Tu.map((s) => `"${t}${
|
|
5801
|
+
(n) => Tu.map((s) => `"${t}${wu}*${n}*.${s}"`)
|
|
5802
5802
|
);
|
|
5803
5803
|
try {
|
|
5804
5804
|
let n = `git ls-files -- ${r.join(" ")}`;
|
|
5805
|
-
return await
|
|
5805
|
+
return await At(n);
|
|
5806
5806
|
} catch {
|
|
5807
5807
|
return;
|
|
5808
5808
|
}
|
|
@@ -5820,7 +5820,7 @@ i(Bo, "getChromaticVersionSpecifier");
|
|
|
5820
5820
|
|
|
5821
5821
|
// src/telemetry/get-framework-info.ts
|
|
5822
5822
|
import { normalize as Cu } from "node:path";
|
|
5823
|
-
import { frameworkPackages as
|
|
5823
|
+
import { frameworkPackages as Pu } from "storybook/internal/common";
|
|
5824
5824
|
|
|
5825
5825
|
// src/telemetry/package-json.ts
|
|
5826
5826
|
import { readFile as Su } from "node:fs/promises";
|
|
@@ -5850,7 +5850,7 @@ var Fr = /* @__PURE__ */ i(async (t) => {
|
|
|
5850
5850
|
}, "getActualPackageJson");
|
|
5851
5851
|
|
|
5852
5852
|
// src/telemetry/get-framework-info.ts
|
|
5853
|
-
var
|
|
5853
|
+
var Au = [
|
|
5854
5854
|
"html",
|
|
5855
5855
|
"react",
|
|
5856
5856
|
"svelte",
|
|
@@ -5861,8 +5861,8 @@ var Pu = [
|
|
|
5861
5861
|
"web-components",
|
|
5862
5862
|
"angular",
|
|
5863
5863
|
"ember"
|
|
5864
|
-
],
|
|
5865
|
-
function
|
|
5864
|
+
], Ou = ["builder-webpack5", "builder-vite"];
|
|
5865
|
+
function Wo(t, e) {
|
|
5866
5866
|
let { name: r = "", version: n, dependencies: s, devDependencies: o, peerDependencies: a } = t, c = {
|
|
5867
5867
|
// We include the framework itself because it may be a renderer too (e.g. angular)
|
|
5868
5868
|
[r]: n,
|
|
@@ -5872,12 +5872,12 @@ function qo(t, e) {
|
|
|
5872
5872
|
};
|
|
5873
5873
|
return e.map((l) => `@storybook/${l}`).find((l) => c[l]);
|
|
5874
5874
|
}
|
|
5875
|
-
i(
|
|
5876
|
-
var
|
|
5875
|
+
i(Wo, "findMatchingPackage");
|
|
5876
|
+
var ju = /* @__PURE__ */ i((t) => {
|
|
5877
5877
|
let e = Cu(t).replace(new RegExp(/\\/, "g"), "/");
|
|
5878
|
-
return Object.keys(
|
|
5878
|
+
return Object.keys(Pu).find((n) => e.endsWith(n)) || Re(t).replace(/.*node_modules[\\/]/, "");
|
|
5879
5879
|
}, "getFrameworkPackageName");
|
|
5880
|
-
async function
|
|
5880
|
+
async function qo(t) {
|
|
5881
5881
|
if (!t?.framework)
|
|
5882
5882
|
return {};
|
|
5883
5883
|
let e = typeof t.framework == "string" ? t.framework : t.framework?.name;
|
|
@@ -5886,7 +5886,7 @@ async function Wo(t) {
|
|
|
5886
5886
|
let r = await Br(e);
|
|
5887
5887
|
if (!r)
|
|
5888
5888
|
return {};
|
|
5889
|
-
let n =
|
|
5889
|
+
let n = Wo(r, Ou), s = Wo(r, Au), o = ju(e), a = typeof t.framework == "object" ? t.framework.options : {};
|
|
5890
5890
|
return {
|
|
5891
5891
|
framework: {
|
|
5892
5892
|
name: o,
|
|
@@ -5896,7 +5896,7 @@ async function Wo(t) {
|
|
|
5896
5896
|
renderer: s
|
|
5897
5897
|
};
|
|
5898
5898
|
}
|
|
5899
|
-
i(
|
|
5899
|
+
i(qo, "getFrameworkInfo");
|
|
5900
5900
|
|
|
5901
5901
|
// src/telemetry/get-has-router-package.ts
|
|
5902
5902
|
var Ru = /* @__PURE__ */ new Set([
|
|
@@ -5931,7 +5931,7 @@ i(Go, "getHasRouterPackage");
|
|
|
5931
5931
|
|
|
5932
5932
|
// src/telemetry/get-monorepo-type.ts
|
|
5933
5933
|
import { existsSync as zo, readFileSync as Nu } from "node:fs";
|
|
5934
|
-
import { join as
|
|
5934
|
+
import { join as Wr } from "node:path";
|
|
5935
5935
|
import { getProjectRoot as Zu } from "storybook/internal/common";
|
|
5936
5936
|
var Ko = {
|
|
5937
5937
|
Nx: "nx.json",
|
|
@@ -5944,15 +5944,15 @@ var Ko = {
|
|
|
5944
5944
|
if (!t)
|
|
5945
5945
|
return;
|
|
5946
5946
|
let r = Object.keys(Ko).find((s) => {
|
|
5947
|
-
let o =
|
|
5947
|
+
let o = Wr(t, Ko[s]);
|
|
5948
5948
|
return zo(o);
|
|
5949
5949
|
});
|
|
5950
5950
|
if (r)
|
|
5951
5951
|
return r;
|
|
5952
|
-
if (!zo(
|
|
5952
|
+
if (!zo(Wr(t, "package.json")))
|
|
5953
5953
|
return;
|
|
5954
5954
|
if (JSON.parse(
|
|
5955
|
-
Nu(
|
|
5955
|
+
Nu(Wr(t, "package.json"), { encoding: "utf8" })
|
|
5956
5956
|
)?.workspaces)
|
|
5957
5957
|
return "Workspaces";
|
|
5958
5958
|
}, "getMonorepoType");
|
|
@@ -5961,7 +5961,7 @@ var Ko = {
|
|
|
5961
5961
|
var Mu = /* @__PURE__ */ i(async (t) => {
|
|
5962
5962
|
try {
|
|
5963
5963
|
let e = "git grep -l composeStor" + (t ? ` -- ${t}` : "");
|
|
5964
|
-
return await
|
|
5964
|
+
return await At(e);
|
|
5965
5965
|
} catch (e) {
|
|
5966
5966
|
return e.exitCode === 1 ? 0 : void 0;
|
|
5967
5967
|
}
|
|
@@ -5980,7 +5980,7 @@ var Yo = {
|
|
|
5980
5980
|
"@vue/cli-service": "vue-cli",
|
|
5981
5981
|
"@sveltejs/kit": "sveltekit"
|
|
5982
5982
|
}, Xo = /* @__PURE__ */ i((t) => Re(t).replace(/\/dist\/.*/, "").replace(/\.[mc]?[tj]?s[x]?$/, "").replace(/\/register$/, "").replace(/\/manager$/,
|
|
5983
|
-
"").replace(/\/preset$/, ""), "sanitizeAddonName"),
|
|
5983
|
+
"").replace(/\/preset$/, ""), "sanitizeAddonName"), Wu = /* @__PURE__ */ i(async ({
|
|
5984
5984
|
packageJsonPath: t,
|
|
5985
5985
|
packageJson: e,
|
|
5986
5986
|
mainConfig: r
|
|
@@ -5997,13 +5997,13 @@ var Yo = {
|
|
|
5997
5997
|
...e?.dependencies,
|
|
5998
5998
|
...e?.devDependencies,
|
|
5999
5999
|
...e?.peerDependencies
|
|
6000
|
-
}, a = Object.keys(o).find((
|
|
6000
|
+
}, a = Object.keys(o).find((w) => !!Yo[w]);
|
|
6001
6001
|
if (a) {
|
|
6002
|
-
let { version:
|
|
6002
|
+
let { version: w } = await Zt(a);
|
|
6003
6003
|
s.metaFramework = {
|
|
6004
6004
|
name: Yo[a],
|
|
6005
6005
|
packageName: a,
|
|
6006
|
-
version:
|
|
6006
|
+
version: w
|
|
6007
6007
|
};
|
|
6008
6008
|
}
|
|
6009
6009
|
let c = [
|
|
@@ -6026,21 +6026,21 @@ var Yo = {
|
|
|
6026
6026
|
"sinon",
|
|
6027
6027
|
"chromatic"
|
|
6028
6028
|
], l = Object.keys(o).filter(
|
|
6029
|
-
(
|
|
6029
|
+
(w) => c.find((A) => w.includes(A))
|
|
6030
6030
|
);
|
|
6031
6031
|
s.testPackages = Object.fromEntries(
|
|
6032
6032
|
await Promise.all(
|
|
6033
|
-
l.map(async (
|
|
6033
|
+
l.map(async (w) => [w, (await Zt(w))?.version])
|
|
6034
6034
|
)
|
|
6035
6035
|
), s.hasRouterPackage = Go(e);
|
|
6036
6036
|
let p = Jo();
|
|
6037
6037
|
p && (s.monorepo = p);
|
|
6038
6038
|
try {
|
|
6039
|
-
let
|
|
6040
|
-
|
|
6041
|
-
type:
|
|
6042
|
-
version:
|
|
6043
|
-
agent:
|
|
6039
|
+
let w = await Gt({ cwd: Lu() });
|
|
6040
|
+
w && (s.packageManager = {
|
|
6041
|
+
type: w.name,
|
|
6042
|
+
version: w.version,
|
|
6043
|
+
agent: w.agent
|
|
6044
6044
|
});
|
|
6045
6045
|
} catch {
|
|
6046
6046
|
}
|
|
@@ -6053,36 +6053,36 @@ var Yo = {
|
|
|
6053
6053
|
};
|
|
6054
6054
|
s.hasCustomBabel = !!r.babel, s.hasCustomWebpack = !!r.webpackFinal, s.hasStaticDirs = !!r.staticDirs, typeof r.typescript == "object" && (s.
|
|
6055
6055
|
typescriptOptions = r.typescript);
|
|
6056
|
-
let
|
|
6056
|
+
let b = await qo(r);
|
|
6057
6057
|
typeof r.refs == "object" && (s.refCount = Object.keys(r.refs).length), typeof r.features == "object" && (s.features = r.features);
|
|
6058
|
-
let
|
|
6059
|
-
r.addons && r.addons.forEach((
|
|
6060
|
-
let
|
|
6061
|
-
typeof
|
|
6058
|
+
let _ = {};
|
|
6059
|
+
r.addons && r.addons.forEach((w) => {
|
|
6060
|
+
let A, Ye;
|
|
6061
|
+
typeof w == "string" ? A = Xo(w) : (w.name.includes("addon-essentials") && (Ye = w.options), A = Xo(w.name)), _[A] = {
|
|
6062
6062
|
options: Ye,
|
|
6063
6063
|
version: void 0
|
|
6064
6064
|
};
|
|
6065
6065
|
});
|
|
6066
6066
|
let k = Bo(e);
|
|
6067
|
-
k && (
|
|
6067
|
+
k && (_.chromatic = {
|
|
6068
6068
|
version: void 0,
|
|
6069
6069
|
versionSpecifier: k,
|
|
6070
6070
|
options: void 0
|
|
6071
|
-
}), (await Fr(
|
|
6072
|
-
w
|
|
6071
|
+
}), (await Fr(_)).forEach(({ name: w, version: A }) => {
|
|
6072
|
+
_[w].version = A;
|
|
6073
6073
|
});
|
|
6074
|
-
let S = Object.keys(
|
|
6075
|
-
...
|
|
6076
|
-
[
|
|
6074
|
+
let S = Object.keys(_), C = Object.keys(o).filter((w) => w.includes("storybook") && !S.includes(w)).reduce((w, A) => ({
|
|
6075
|
+
...w,
|
|
6076
|
+
[A]: { version: void 0 }
|
|
6077
6077
|
}), {});
|
|
6078
|
-
(await Fr(C)).forEach(({ name:
|
|
6079
|
-
C[
|
|
6078
|
+
(await Fr(C)).forEach(({ name: w, version: A }) => {
|
|
6079
|
+
C[w].version = A;
|
|
6080
6080
|
});
|
|
6081
|
-
let
|
|
6081
|
+
let be = !!o["eslint-plugin-storybook"], X = $u(e);
|
|
6082
6082
|
try {
|
|
6083
|
-
let { previewConfig:
|
|
6084
|
-
if (
|
|
6085
|
-
let
|
|
6083
|
+
let { previewConfig: w } = X;
|
|
6084
|
+
if (w) {
|
|
6085
|
+
let A = await Bu(w), Ye = !!(A.getFieldNode(["globals"]) || A.getFieldNode(["globalTypes"]));
|
|
6086
6086
|
s.preview = { ...s.preview, usesGlobals: Ye };
|
|
6087
6087
|
}
|
|
6088
6088
|
} catch {
|
|
@@ -6090,18 +6090,18 @@ var Yo = {
|
|
|
6090
6090
|
let Je = await Ho(), He = await Fo(Du(t));
|
|
6091
6091
|
return {
|
|
6092
6092
|
...s,
|
|
6093
|
-
...
|
|
6093
|
+
...b,
|
|
6094
6094
|
portableStoriesFileCount: Je,
|
|
6095
6095
|
applicationFileCount: He,
|
|
6096
6096
|
storybookVersion: nt,
|
|
6097
6097
|
storybookVersionSpecifier: X.version,
|
|
6098
6098
|
language: f,
|
|
6099
6099
|
storybookPackages: C,
|
|
6100
|
-
addons:
|
|
6101
|
-
hasStorybookEslint:
|
|
6100
|
+
addons: _,
|
|
6101
|
+
hasStorybookEslint: be
|
|
6102
6102
|
};
|
|
6103
6103
|
}, "computeStorybookMetadata");
|
|
6104
|
-
async function
|
|
6104
|
+
async function qu() {
|
|
6105
6105
|
let t = await Ft(process.cwd());
|
|
6106
6106
|
return t ? {
|
|
6107
6107
|
packageJsonPath: t,
|
|
@@ -6111,17 +6111,17 @@ async function Wu() {
|
|
|
6111
6111
|
packageJson: {}
|
|
6112
6112
|
};
|
|
6113
6113
|
}
|
|
6114
|
-
i(
|
|
6114
|
+
i(qu, "getPackageJsonDetails");
|
|
6115
6115
|
var Mt, Qo = /* @__PURE__ */ i(async (t) => {
|
|
6116
6116
|
if (Mt)
|
|
6117
6117
|
return Mt;
|
|
6118
|
-
let { packageJson: e, packageJsonPath: r } = await
|
|
6118
|
+
let { packageJson: e, packageJsonPath: r } = await qu(), n = (t || Uu(
|
|
6119
6119
|
String(e?.scripts?.storybook || ""),
|
|
6120
6120
|
"-c",
|
|
6121
6121
|
"--config-dir"
|
|
6122
6122
|
)) ?? ".storybook", s = await Vu({ configDir: n }).catch(() => {
|
|
6123
6123
|
});
|
|
6124
|
-
return Mt = await
|
|
6124
|
+
return Mt = await Wu({ mainConfig: s, packageJson: e, packageJsonPath: r }), Mt;
|
|
6125
6125
|
}, "getStorybookMetadata");
|
|
6126
6126
|
|
|
6127
6127
|
// src/telemetry/telemetry.ts
|
|
@@ -6135,13 +6135,13 @@ import { randomFillSync as ni } from "crypto";
|
|
|
6135
6135
|
var ri = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
6136
6136
|
|
|
6137
6137
|
// ../node_modules/nanoid/index.js
|
|
6138
|
-
var Gu = 128, ge,
|
|
6139
|
-
!ge || ge.length < t ? (ge = Buffer.allocUnsafe(t * Gu), ni(ge),
|
|
6138
|
+
var Gu = 128, ge, Oe, zu = /* @__PURE__ */ i((t) => {
|
|
6139
|
+
!ge || ge.length < t ? (ge = Buffer.allocUnsafe(t * Gu), ni(ge), Oe = 0) : Oe + t > ge.length && (ni(ge), Oe = 0), Oe += t;
|
|
6140
6140
|
}, "fillPool");
|
|
6141
6141
|
var ze = /* @__PURE__ */ i((t = 21) => {
|
|
6142
6142
|
zu(t -= 0);
|
|
6143
6143
|
let e = "";
|
|
6144
|
-
for (let r =
|
|
6144
|
+
for (let r = Oe - t; r < Oe; r++)
|
|
6145
6145
|
e += ri[ge[r] & 63];
|
|
6146
6146
|
return e;
|
|
6147
6147
|
}, "nanoid");
|
|
@@ -6154,7 +6154,7 @@ import { execSync as Yu } from "child_process";
|
|
|
6154
6154
|
|
|
6155
6155
|
// src/telemetry/one-way-hash.ts
|
|
6156
6156
|
import { createHash as Ku } from "crypto";
|
|
6157
|
-
var
|
|
6157
|
+
var qr = /* @__PURE__ */ i((t) => {
|
|
6158
6158
|
let e = Ku("sha256");
|
|
6159
6159
|
return e.update("storybook-telemetry-salt"), e.update(t), e.digest("hex");
|
|
6160
6160
|
}, "oneWayHash");
|
|
@@ -6177,7 +6177,7 @@ var Lt, si = /* @__PURE__ */ i(() => {
|
|
|
6177
6177
|
timeout: 1e3,
|
|
6178
6178
|
stdio: "pipe"
|
|
6179
6179
|
});
|
|
6180
|
-
Lt =
|
|
6180
|
+
Lt = qr(Qu(String(r), e));
|
|
6181
6181
|
} catch {
|
|
6182
6182
|
}
|
|
6183
6183
|
return Lt;
|
|
@@ -6268,8 +6268,8 @@ async function li(t, e = { retryDelay: 1e3, immediate: !1 }) {
|
|
|
6268
6268
|
i(li, "sendTelemetry");
|
|
6269
6269
|
|
|
6270
6270
|
// src/telemetry/index.ts
|
|
6271
|
-
var
|
|
6272
|
-
sExampleStoryId"),
|
|
6271
|
+
var Eb = /* @__PURE__ */ i((t) => t.startsWith("example-button--") || t.startsWith("example-header--") || t.startsWith("example-page--"), "i\
|
|
6272
|
+
sExampleStoryId"), Cb = /* @__PURE__ */ i(async (t, e = {}, r = {}) => {
|
|
6273
6273
|
t !== "boot" && r.notify !== !1 && await tn();
|
|
6274
6274
|
let n = {
|
|
6275
6275
|
eventType: t,
|
|
@@ -6288,14 +6288,14 @@ sExampleStoryId"), Cv = /* @__PURE__ */ i(async (t, e = {}, r = {}) => {
|
|
|
6288
6288
|
export {
|
|
6289
6289
|
cl as addToGlobalContext,
|
|
6290
6290
|
Re as cleanPaths,
|
|
6291
|
-
|
|
6291
|
+
Wu as computeStorybookMetadata,
|
|
6292
6292
|
sl as getPrecedingUpgrade,
|
|
6293
6293
|
Qo as getStorybookMetadata,
|
|
6294
|
-
|
|
6294
|
+
Eb as isExampleStoryId,
|
|
6295
6295
|
Yo as metaFrameworks,
|
|
6296
|
-
|
|
6296
|
+
qr as oneWayHash,
|
|
6297
6297
|
nn as removeAnsiEscapeCodes,
|
|
6298
6298
|
Xo as sanitizeAddonName,
|
|
6299
6299
|
tt as sanitizeError,
|
|
6300
|
-
|
|
6300
|
+
Cb as telemetry
|
|
6301
6301
|
};
|