storybook 9.1.0-alpha.6 → 9.1.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/assets/browser/favicon-wrapper.svg +46 -0
  2. package/assets/browser/favicon.svg +1 -1
  3. package/dist/bin/index.cjs +43 -43
  4. package/dist/bin/index.js +43 -43
  5. package/dist/cli/bin/index.cjs +513 -513
  6. package/dist/cli/bin/index.js +535 -535
  7. package/dist/cli/index.cjs +2454 -2453
  8. package/dist/cli/index.d.ts +10 -3
  9. package/dist/cli/index.js +2436 -2435
  10. package/dist/common/index.cjs +64 -61
  11. package/dist/common/index.d.ts +9 -3
  12. package/dist/common/index.js +64 -61
  13. package/dist/components/index.cjs +4602 -4427
  14. package/dist/components/index.d.ts +9 -11
  15. package/dist/components/index.js +2760 -2580
  16. package/dist/core-server/index.cjs +5833 -5819
  17. package/dist/core-server/index.d.ts +4 -1
  18. package/dist/core-server/index.js +4848 -4835
  19. package/dist/core-server/presets/common-manager.js +3410 -3332
  20. package/dist/core-server/presets/common-preset.cjs +1831 -1837
  21. package/dist/core-server/presets/common-preset.js +1787 -1792
  22. package/dist/csf/index.cjs +2536 -736
  23. package/dist/csf/index.d.ts +250 -9
  24. package/dist/csf/index.js +2558 -749
  25. package/dist/csf-tools/index.cjs +319 -321
  26. package/dist/csf-tools/index.js +239 -241
  27. package/dist/instrumenter/index.cjs +1150 -1099
  28. package/dist/instrumenter/index.d.ts +1 -0
  29. package/dist/instrumenter/index.js +1261 -1214
  30. package/dist/manager/globals-module-info.cjs +0 -1
  31. package/dist/manager/globals-module-info.js +0 -1
  32. package/dist/manager/globals-runtime.js +21740 -24218
  33. package/dist/manager/runtime.js +3715 -3536
  34. package/dist/manager-api/index.cjs +3 -3
  35. package/dist/manager-api/index.d.ts +4 -1
  36. package/dist/manager-api/index.js +3 -3
  37. package/dist/node-logger/index.cjs +1620 -1620
  38. package/dist/node-logger/index.js +1619 -1619
  39. package/dist/preview/runtime.js +13337 -16032
  40. package/dist/preview-api/index.cjs +273 -271
  41. package/dist/preview-api/index.d.ts +4 -1
  42. package/dist/preview-api/index.js +14 -12
  43. package/dist/telemetry/index.cjs +500 -500
  44. package/dist/telemetry/index.d.ts +1 -1
  45. package/dist/telemetry/index.js +478 -478
  46. package/dist/test/index.cjs +9136 -9815
  47. package/dist/test/index.js +8339 -9025
  48. package/dist/types/index.d.ts +12 -12
  49. package/package.json +5 -196
  50. package/dist/actions/preview.cjs +0 -159
  51. package/dist/actions/preview.d.ts +0 -45
  52. package/dist/actions/preview.js +0 -149
  53. package/dist/backgrounds/index.cjs +0 -16
  54. package/dist/backgrounds/index.d.ts +0 -2
  55. package/dist/backgrounds/index.js +0 -0
  56. package/dist/backgrounds/preview.cjs +0 -143
  57. package/dist/backgrounds/preview.d.ts +0 -53
  58. package/dist/backgrounds/preview.js +0 -127
  59. package/dist/component-testing/index.cjs +0 -23
  60. package/dist/component-testing/index.d.ts +0 -3
  61. package/dist/component-testing/index.js +0 -5
  62. package/dist/component-testing/preview.cjs +0 -40
  63. package/dist/component-testing/preview.d.ts +0 -5
  64. package/dist/component-testing/preview.js +0 -25
  65. package/dist/controls/preview.cjs +0 -26
  66. package/dist/controls/preview.d.ts +0 -43
  67. package/dist/controls/preview.js +0 -9
  68. package/dist/highlight/preview.cjs +0 -590
  69. package/dist/highlight/preview.d.ts +0 -20
  70. package/dist/highlight/preview.js +0 -575
  71. package/dist/measure/index.cjs +0 -16
  72. package/dist/measure/index.d.ts +0 -2
  73. package/dist/measure/index.js +0 -0
  74. package/dist/measure/preview.cjs +0 -466
  75. package/dist/measure/preview.d.ts +0 -25
  76. package/dist/measure/preview.js +0 -450
  77. package/dist/outline/index.cjs +0 -16
  78. package/dist/outline/index.d.ts +0 -2
  79. package/dist/outline/index.js +0 -0
  80. package/dist/outline/preview.cjs +0 -518
  81. package/dist/outline/preview.d.ts +0 -25
  82. package/dist/outline/preview.js +0 -486
  83. package/dist/test/preview.cjs +0 -73
  84. package/dist/test/preview.d.ts +0 -17
  85. package/dist/test/preview.js +0 -66
  86. package/dist/viewport/preview.cjs +0 -35
  87. package/dist/viewport/preview.d.ts +0 -62
  88. package/dist/viewport/preview.js +0 -19
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
- var va = Object.create;
2
+ var xa = Object.create;
3
3
  var Fe = Object.defineProperty;
4
- var xa = Object.getOwnPropertyDescriptor;
5
- var ba = Object.getOwnPropertyNames;
6
- var wa = Object.getPrototypeOf, _a = Object.prototype.hasOwnProperty;
4
+ var ba = Object.getOwnPropertyDescriptor;
5
+ var va = Object.getOwnPropertyNames;
6
+ var _a = Object.getPrototypeOf, wa = Object.prototype.hasOwnProperty;
7
7
  var i = (t, e) => Fe(t, "name", { value: e, configurable: !0 });
8
8
  var En = (t, e) => () => (t && (e = t(t = 0)), e);
9
9
  var S = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports), ka = (t, e) => {
@@ -11,11 +11,11 @@ var S = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports), k
11
11
  Fe(t, r, { get: e[r], enumerable: !0 });
12
12
  }, Cn = (t, e, r, n) => {
13
13
  if (e && typeof e == "object" || typeof e == "function")
14
- for (let s of ba(e))
15
- !_a.call(t, s) && s !== r && Fe(t, s, { get: () => e[s], enumerable: !(n = xa(e, s)) || n.enumerable });
14
+ for (let s of va(e))
15
+ !wa.call(t, s) && s !== r && Fe(t, s, { get: () => e[s], enumerable: !(n = ba(e, s)) || n.enumerable });
16
16
  return t;
17
17
  };
18
- var T = (t, e, r) => (r = t != null ? va(wa(t)) : {}, Cn(
18
+ var T = (t, e, r) => (r = t != null ? xa(_a(t)) : {}, Cn(
19
19
  // If the importer is in node compatibility mode or this is not an ESM
20
20
  // file that has been converted to a CommonJS file using a Babel-
21
21
  // compatible transform (i.e. "__esModule" has not been set), then set
@@ -25,7 +25,7 @@ var T = (t, e, r) => (r = t != null ? va(wa(t)) : {}, Cn(
25
25
  )), Ta = (t) => Cn(Fe({}, "__esModule", { value: !0 }), t);
26
26
 
27
27
  // ../node_modules/picocolors/picocolors.js
28
- var An = S((xl, ar) => {
28
+ var On = S((bl, ar) => {
29
29
  var ft = process || {}, Pn = ft.argv || [], pt = ft.env || {}, Ia = !(pt.NO_COLOR || Pn.includes("--no-color")) && (!!pt.FORCE_COLOR || Pn.
30
30
  includes("--color") || ft.platform === "win32" || (ft.stdout || {}).isTTY && pt.TERM !== "dumb" || !!pt.CI), Sa = /* @__PURE__ */ i((t, e, r = t) => (n) => {
31
31
  let s = "" + n, o = s.indexOf(e, t.length);
@@ -36,7 +36,7 @@ var An = S((xl, ar) => {
36
36
  s += t.substring(o, n) + r, o = n + e.length, n = t.indexOf(e, o);
37
37
  while (~n);
38
38
  return s + t.substring(o);
39
- }, "replaceClose"), jn = /* @__PURE__ */ i((t = Ia) => {
39
+ }, "replaceClose"), An = /* @__PURE__ */ i((t = Ia) => {
40
40
  let e = t ? Sa : () => String;
41
41
  return {
42
42
  isColorSupported: t,
@@ -83,8 +83,8 @@ var An = S((xl, ar) => {
83
83
  bgWhiteBright: e("\x1B[107m", "\x1B[49m")
84
84
  };
85
85
  }, "createColors");
86
- ar.exports = jn();
87
- ar.exports.createColors = jn;
86
+ ar.exports = An();
87
+ ar.exports.createColors = An;
88
88
  });
89
89
 
90
90
  // ../node_modules/walk-up-path/dist/cjs/index.js
@@ -105,7 +105,7 @@ var Dn = S((mt) => {
105
105
  });
106
106
 
107
107
  // ../node_modules/zod/lib/helpers/util.js
108
- var qe = S((C) => {
108
+ var We = S((C) => {
109
109
  "use strict";
110
110
  Object.defineProperty(C, "__esModule", { value: !0 });
111
111
  C.getParsedType = C.ZodParsedType = C.objectUtil = C.util = void 0;
@@ -146,14 +146,14 @@ var qe = S((C) => {
146
146
  }
147
147
  i(n, "joinValues"), t.joinValues = n, t.jsonStringifyReplacer = (s, o) => typeof o == "bigint" ? o.toString() : o;
148
148
  })(gr || (C.util = gr = {}));
149
- var Wn;
149
+ var qn;
150
150
  (function(t) {
151
151
  t.mergeShapes = (e, r) => ({
152
152
  ...e,
153
153
  ...r
154
154
  // second overwrites first
155
155
  });
156
- })(Wn || (C.objectUtil = Wn = {}));
156
+ })(qn || (C.objectUtil = qn = {}));
157
157
  C.ZodParsedType = gr.arrayToEnum([
158
158
  "string",
159
159
  "nan",
@@ -208,7 +208,7 @@ var gt = S((Y) => {
208
208
  "use strict";
209
209
  Object.defineProperty(Y, "__esModule", { value: !0 });
210
210
  Y.ZodError = Y.quotelessJson = Y.ZodIssueCode = void 0;
211
- var Gn = qe();
211
+ var Gn = We();
212
212
  Y.ZodIssueCode = Gn.util.arrayToEnum([
213
213
  "invalid_type",
214
214
  "invalid_literal",
@@ -229,7 +229,7 @@ var gt = S((Y) => {
229
229
  ]);
230
230
  var Ma = /* @__PURE__ */ i((t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:"), "quotelessJson");
231
231
  Y.quotelessJson = Ma;
232
- var We = class t extends Error {
232
+ var qe = class t extends Error {
233
233
  static {
234
234
  i(this, "ZodError");
235
235
  }
@@ -292,59 +292,59 @@ var gt = S((Y) => {
292
292
  return this.flatten();
293
293
  }
294
294
  };
295
- Y.ZodError = We;
296
- We.create = (t) => new We(t);
295
+ Y.ZodError = qe;
296
+ qe.create = (t) => new qe(t);
297
297
  });
298
298
 
299
299
  // ../node_modules/zod/lib/locales/en.js
300
- var xr = S((vr) => {
300
+ var br = S((xr) => {
301
301
  "use strict";
302
- Object.defineProperty(vr, "__esModule", { value: !0 });
303
- var ne = qe(), O = gt(), Da = /* @__PURE__ */ i((t, e) => {
302
+ Object.defineProperty(xr, "__esModule", { value: !0 });
303
+ var ne = We(), j = gt(), Da = /* @__PURE__ */ i((t, e) => {
304
304
  let r;
305
305
  switch (t.code) {
306
- case O.ZodIssueCode.invalid_type:
306
+ case j.ZodIssueCode.invalid_type:
307
307
  t.received === ne.ZodParsedType.undefined ? r = "Required" : r = `Expected ${t.expected}, received ${t.received}`;
308
308
  break;
309
- case O.ZodIssueCode.invalid_literal:
309
+ case j.ZodIssueCode.invalid_literal:
310
310
  r = `Invalid literal value, expected ${JSON.stringify(t.expected, ne.util.jsonStringifyReplacer)}`;
311
311
  break;
312
- case O.ZodIssueCode.unrecognized_keys:
312
+ case j.ZodIssueCode.unrecognized_keys:
313
313
  r = `Unrecognized key(s) in object: ${ne.util.joinValues(t.keys, ", ")}`;
314
314
  break;
315
- case O.ZodIssueCode.invalid_union:
315
+ case j.ZodIssueCode.invalid_union:
316
316
  r = "Invalid input";
317
317
  break;
318
- case O.ZodIssueCode.invalid_union_discriminator:
318
+ case j.ZodIssueCode.invalid_union_discriminator:
319
319
  r = `Invalid discriminator value. Expected ${ne.util.joinValues(t.options)}`;
320
320
  break;
321
- case O.ZodIssueCode.invalid_enum_value:
321
+ case j.ZodIssueCode.invalid_enum_value:
322
322
  r = `Invalid enum value. Expected ${ne.util.joinValues(t.options)}, received '${t.received}'`;
323
323
  break;
324
- case O.ZodIssueCode.invalid_arguments:
324
+ case j.ZodIssueCode.invalid_arguments:
325
325
  r = "Invalid function arguments";
326
326
  break;
327
- case O.ZodIssueCode.invalid_return_type:
327
+ case j.ZodIssueCode.invalid_return_type:
328
328
  r = "Invalid function return type";
329
329
  break;
330
- case O.ZodIssueCode.invalid_date:
330
+ case j.ZodIssueCode.invalid_date:
331
331
  r = "Invalid date";
332
332
  break;
333
- case O.ZodIssueCode.invalid_string:
333
+ case j.ZodIssueCode.invalid_string:
334
334
  typeof t.validation == "object" ? "includes" in t.validation ? (r = `Invalid input: must include "${t.validation.includes}"`, typeof t.
335
335
  validation.position == "number" && (r = `${r} at one or more positions greater than or equal to ${t.validation.position}`)) : "start\
336
336
  sWith" in t.validation ? r = `Invalid input: must start with "${t.validation.startsWith}"` : "endsWith" in t.validation ? r = `Invalid input\
337
337
  : must end with "${t.validation.endsWith}"` : ne.util.assertNever(t.validation) : t.validation !== "regex" ? r = `Invalid ${t.validation}` :
338
338
  r = "Invalid";
339
339
  break;
340
- case O.ZodIssueCode.too_small:
340
+ case j.ZodIssueCode.too_small:
341
341
  t.type === "array" ? r = `Array must contain ${t.exact ? "exactly" : t.inclusive ? "at least" : "more than"} ${t.minimum} element(s)` :
342
342
  t.type === "string" ? r = `String must contain ${t.exact ? "exactly" : t.inclusive ? "at least" : "over"} ${t.minimum} character(s)` :
343
343
  t.type === "number" ? r = `Number must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater tha\
344
344
  n "}${t.minimum}` : t.type === "date" ? r = `Date must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "gre\
345
345
  ater than "}${new Date(Number(t.minimum))}` : r = "Invalid input";
346
346
  break;
347
- case O.ZodIssueCode.too_big:
347
+ case j.ZodIssueCode.too_big:
348
348
  t.type === "array" ? r = `Array must contain ${t.exact ? "exactly" : t.inclusive ? "at most" : "less than"} ${t.maximum} element(s)` :
349
349
  t.type === "string" ? r = `String must contain ${t.exact ? "exactly" : t.inclusive ? "at most" : "under"} ${t.maximum} character(s)` :
350
350
  t.type === "number" ? r = `Number must be ${t.exact ? "exactly" : t.inclusive ? "less than or equal to" : "less than"} ${t.maximum}` :
@@ -352,16 +352,16 @@ ater than "}${new Date(Number(t.minimum))}` : r = "Invalid input";
352
352
  t.type === "date" ? r = `Date must be ${t.exact ? "exactly" : t.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(
353
353
  Number(t.maximum))}` : r = "Invalid input";
354
354
  break;
355
- case O.ZodIssueCode.custom:
355
+ case j.ZodIssueCode.custom:
356
356
  r = "Invalid input";
357
357
  break;
358
- case O.ZodIssueCode.invalid_intersection_types:
358
+ case j.ZodIssueCode.invalid_intersection_types:
359
359
  r = "Intersection results could not be merged";
360
360
  break;
361
- case O.ZodIssueCode.not_multiple_of:
361
+ case j.ZodIssueCode.not_multiple_of:
362
362
  r = `Number must be a multiple of ${t.multipleOf}`;
363
363
  break;
364
- case O.ZodIssueCode.not_finite:
364
+ case j.ZodIssueCode.not_finite:
365
365
  r = "Number must be finite";
366
366
  break;
367
367
  default:
@@ -369,18 +369,18 @@ ater than "}${new Date(Number(t.minimum))}` : r = "Invalid input";
369
369
  }
370
370
  return { message: r };
371
371
  }, "errorMap");
372
- vr.default = Da;
372
+ xr.default = Da;
373
373
  });
374
374
 
375
375
  // ../node_modules/zod/lib/errors.js
376
- var vt = S((B) => {
376
+ var xt = S((B) => {
377
377
  "use strict";
378
378
  var La = B && B.__importDefault || function(t) {
379
379
  return t && t.__esModule ? t : { default: t };
380
380
  };
381
381
  Object.defineProperty(B, "__esModule", { value: !0 });
382
382
  B.getErrorMap = B.setErrorMap = B.defaultErrorMap = void 0;
383
- var zn = La(xr());
383
+ var zn = La(br());
384
384
  B.defaultErrorMap = zn.default;
385
385
  var Kn = zn.default;
386
386
  function Ua(t) {
@@ -396,7 +396,7 @@ var vt = S((B) => {
396
396
  });
397
397
 
398
398
  // ../node_modules/zod/lib/helpers/parseUtil.js
399
- var wr = S((I) => {
399
+ var _r = S((I) => {
400
400
  "use strict";
401
401
  var Va = I && I.__importDefault || function(t) {
402
402
  return t && t.__esModule ? t : { default: t };
@@ -404,7 +404,7 @@ var wr = S((I) => {
404
404
  Object.defineProperty(I, "__esModule", { value: !0 });
405
405
  I.isAsync = I.isValid = I.isDirty = I.isAborted = I.OK = I.DIRTY = I.INVALID = I.ParseStatus = I.addIssueToContext = I.EMPTY_PATH = I.makeIssue =
406
406
  void 0;
407
- var Fa = vt(), Jn = Va(xr()), Ba = /* @__PURE__ */ i((t) => {
407
+ var Fa = xt(), Jn = Va(br()), Ba = /* @__PURE__ */ i((t) => {
408
408
  let { data: e, path: r, errorMaps: n, issueData: s } = t, o = [...r, ...s.path || []], a = {
409
409
  ...s,
410
410
  path: o
@@ -426,7 +426,7 @@ var wr = S((I) => {
426
426
  }, "makeIssue");
427
427
  I.makeIssue = Ba;
428
428
  I.EMPTY_PATH = [];
429
- function qa(t, e) {
429
+ function Wa(t, e) {
430
430
  let r = (0, Fa.getErrorMap)(), n = (0, I.makeIssue)({
431
431
  issueData: e,
432
432
  data: t.data,
@@ -444,9 +444,9 @@ var wr = S((I) => {
444
444
  });
445
445
  t.common.issues.push(n);
446
446
  }
447
- i(qa, "addIssueToContext");
448
- I.addIssueToContext = qa;
449
- var br = class t {
447
+ i(Wa, "addIssueToContext");
448
+ I.addIssueToContext = Wa;
449
+ var vr = class t {
450
450
  static {
451
451
  i(this, "ParseStatus");
452
452
  }
@@ -491,12 +491,12 @@ var wr = S((I) => {
491
491
  return { status: e.value, value: n };
492
492
  }
493
493
  };
494
- I.ParseStatus = br;
494
+ I.ParseStatus = vr;
495
495
  I.INVALID = Object.freeze({
496
496
  status: "aborted"
497
497
  });
498
- var Wa = /* @__PURE__ */ i((t) => ({ status: "dirty", value: t }), "DIRTY");
499
- I.DIRTY = Wa;
498
+ var qa = /* @__PURE__ */ i((t) => ({ status: "dirty", value: t }), "DIRTY");
499
+ I.DIRTY = qa;
500
500
  var Ga = /* @__PURE__ */ i((t) => ({ status: "valid", value: t }), "OK");
501
501
  I.OK = Ga;
502
502
  var za = /* @__PURE__ */ i((t) => t.status === "aborted", "isAborted");
@@ -516,20 +516,20 @@ var Yn = S((Hn) => {
516
516
  });
517
517
 
518
518
  // ../node_modules/zod/lib/helpers/errorUtil.js
519
- var Qn = S((xt) => {
519
+ var Qn = S((bt) => {
520
520
  "use strict";
521
- Object.defineProperty(xt, "__esModule", { value: !0 });
522
- xt.errorUtil = void 0;
521
+ Object.defineProperty(bt, "__esModule", { value: !0 });
522
+ bt.errorUtil = void 0;
523
523
  var Xn;
524
524
  (function(t) {
525
525
  t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e?.message;
526
- })(Xn || (xt.errorUtil = Xn = {}));
526
+ })(Xn || (bt.errorUtil = Xn = {}));
527
527
  });
528
528
 
529
529
  // ../node_modules/zod/lib/types.js
530
530
  var ps = S((d) => {
531
531
  "use strict";
532
- var wt = d && d.__classPrivateFieldGet || function(t, e, r, n) {
532
+ var _t = d && d.__classPrivateFieldGet || function(t, e, r, n) {
533
533
  if (r === "a" && !n) throw new TypeError("Private accessor was defined without a getter");
534
534
  if (typeof e == "function" ? t !== e || !n : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did n\
535
535
  ot declare it");
@@ -551,7 +551,7 @@ t declare it");
551
551
  d.promise = d.preprocess = d.pipeline = d.ostring = d.optional = d.onumber = d.oboolean = d.object = d.number = d.nullable = d.null = d.never =
552
552
  d.nativeEnum = d.nan = d.map = d.literal = d.lazy = d.intersection = d.instanceof = d.function = d.enum = d.effect = d.discriminatedUnion =
553
553
  d.date = void 0;
554
- var bt = vt(), y = Qn(), u = wr(), h = qe(), m = gt(), L = class {
554
+ var vt = xt(), y = Qn(), u = _r(), h = We(), m = gt(), L = class {
555
555
  static {
556
556
  i(this, "ParseInputLazyPath");
557
557
  }
@@ -577,7 +577,7 @@ t declare it");
577
577
  }
578
578
  };
579
579
  }, "handleResult");
580
- function b(t) {
580
+ function v(t) {
581
581
  if (!t)
582
582
  return {};
583
583
  let { errorMap: e, invalid_type_error: r, required_error: n, description: s } = t;
@@ -591,8 +591,8 @@ t declare it");
591
591
  p : c.defaultError };
592
592
  }, "customMap"), description: s };
593
593
  }
594
- i(b, "processCreateParams");
595
- var w = class {
594
+ i(v, "processCreateParams");
595
+ var _ = class {
596
596
  static {
597
597
  i(this, "ZodType");
598
598
  }
@@ -754,7 +754,7 @@ eProperties");
754
754
  return D.create(this, this._def);
755
755
  }
756
756
  nullable() {
757
- return W.create(this, this._def);
757
+ return q.create(this, this._def);
758
758
  }
759
759
  nullish() {
760
760
  return this.nullable().optional();
@@ -773,7 +773,7 @@ eProperties");
773
773
  }
774
774
  transform(e) {
775
775
  return new Z({
776
- ...b(this._def),
776
+ ...v(this._def),
777
777
  schema: this,
778
778
  typeName: g.ZodEffects,
779
779
  effect: { type: "transform", transform: e }
@@ -782,7 +782,7 @@ eProperties");
782
782
  default(e) {
783
783
  let r = typeof e == "function" ? e : () => e;
784
784
  return new ye({
785
- ...b(this._def),
785
+ ...v(this._def),
786
786
  innerType: this,
787
787
  defaultValue: r,
788
788
  typeName: g.ZodDefault
@@ -792,13 +792,13 @@ eProperties");
792
792
  return new Ke({
793
793
  typeName: g.ZodBranded,
794
794
  type: this,
795
- ...b(this._def)
795
+ ...v(this._def)
796
796
  });
797
797
  }
798
798
  catch(e) {
799
799
  let r = typeof e == "function" ? e : () => e;
800
800
  return new ge({
801
- ...b(this._def),
801
+ ...v(this._def),
802
802
  innerType: this,
803
803
  catchValue: r,
804
804
  typeName: g.ZodCatch
@@ -815,7 +815,7 @@ eProperties");
815
815
  return Je.create(this, e);
816
816
  }
817
817
  readonly() {
818
- return ve.create(this);
818
+ return xe.create(this);
819
819
  }
820
820
  isOptional() {
821
821
  return this.safeParse(void 0).success;
@@ -824,13 +824,13 @@ eProperties");
824
824
  return this.safeParse(null).success;
825
825
  }
826
826
  };
827
- d.ZodType = w;
828
- d.Schema = w;
829
- d.ZodSchema = w;
827
+ d.ZodType = _;
828
+ d.Schema = _;
829
+ d.ZodSchema = _;
830
830
  var Ya = /^c[^\s-]{8,}$/i, Xa = /^[0-9a-z]+$/, Qa = /^[0-9A-HJKMNP-TV-Z]{26}$/i, ec = /^[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,
831
831
  tc = /^[a-z0-9_-]{21}$/i, rc = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, nc = /^[-+]?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)?)??$/,
832
832
  sc = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, oc = "^(\\p{Extended_Pictographic}|\\p{Emoji_Comp\
833
- onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ac = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,
833
+ onent})+$", wr, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ac = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,
834
834
  cc = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,
835
835
  dc = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,
836
836
  uc = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, lc = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,
@@ -871,7 +871,7 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
871
871
  return !!((e === "v4" || !e) && ac.test(t) || (e === "v6" || !e) && dc.test(t));
872
872
  }
873
873
  i(yc, "isValidCidr");
874
- var X = class t extends w {
874
+ var X = class t extends _ {
875
875
  static {
876
876
  i(this, "ZodString");
877
877
  }
@@ -928,7 +928,7 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
928
928
  message: o.message
929
929
  }), n.dirty());
930
930
  else if (o.kind === "emoji")
931
- _r || (_r = new RegExp(oc, "u")), _r.test(e.data) || (s = this._getOrReturnCtx(e, s), (0, u.addIssueToContext)(s, {
931
+ wr || (wr = new RegExp(oc, "u")), wr.test(e.data) || (s = this._getOrReturnCtx(e, s), (0, u.addIssueToContext)(s, {
932
932
  validation: "emoji",
933
933
  code: m.ZodIssueCode.invalid_string,
934
934
  message: o.message
@@ -1261,7 +1261,7 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1261
1261
  checks: [],
1262
1262
  typeName: g.ZodString,
1263
1263
  coerce: (e = t?.coerce) !== null && e !== void 0 ? e : !1,
1264
- ...b(t)
1264
+ ...v(t)
1265
1265
  });
1266
1266
  };
1267
1267
  function gc(t, e) {
@@ -1270,7 +1270,7 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1270
1270
  return o % a / Math.pow(10, s);
1271
1271
  }
1272
1272
  i(gc, "floatSafeRemainder");
1273
- var se = class t extends w {
1273
+ var se = class t extends _ {
1274
1274
  static {
1275
1275
  i(this, "ZodNumber");
1276
1276
  }
@@ -1446,9 +1446,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1446
1446
  checks: [],
1447
1447
  typeName: g.ZodNumber,
1448
1448
  coerce: t?.coerce || !1,
1449
- ...b(t)
1449
+ ...v(t)
1450
1450
  });
1451
- var oe = class t extends w {
1451
+ var oe = class t extends _ {
1452
1452
  static {
1453
1453
  i(this, "ZodBigInt");
1454
1454
  }
@@ -1587,10 +1587,10 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1587
1587
  checks: [],
1588
1588
  typeName: g.ZodBigInt,
1589
1589
  coerce: (e = t?.coerce) !== null && e !== void 0 ? e : !1,
1590
- ...b(t)
1590
+ ...v(t)
1591
1591
  });
1592
1592
  };
1593
- var ie = class extends w {
1593
+ var ie = class extends _ {
1594
1594
  static {
1595
1595
  i(this, "ZodBoolean");
1596
1596
  }
@@ -1610,9 +1610,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1610
1610
  ie.create = (t) => new ie({
1611
1611
  typeName: g.ZodBoolean,
1612
1612
  coerce: t?.coerce || !1,
1613
- ...b(t)
1613
+ ...v(t)
1614
1614
  });
1615
- var ae = class t extends w {
1615
+ var ae = class t extends _ {
1616
1616
  static {
1617
1617
  i(this, "ZodDate");
1618
1618
  }
@@ -1691,9 +1691,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1691
1691
  checks: [],
1692
1692
  coerce: t?.coerce || !1,
1693
1693
  typeName: g.ZodDate,
1694
- ...b(t)
1694
+ ...v(t)
1695
1695
  });
1696
- var Te = class extends w {
1696
+ var Te = class extends _ {
1697
1697
  static {
1698
1698
  i(this, "ZodSymbol");
1699
1699
  }
@@ -1712,9 +1712,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1712
1712
  d.ZodSymbol = Te;
1713
1713
  Te.create = (t) => new Te({
1714
1714
  typeName: g.ZodSymbol,
1715
- ...b(t)
1715
+ ...v(t)
1716
1716
  });
1717
- var ce = class extends w {
1717
+ var ce = class extends _ {
1718
1718
  static {
1719
1719
  i(this, "ZodUndefined");
1720
1720
  }
@@ -1733,9 +1733,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1733
1733
  d.ZodUndefined = ce;
1734
1734
  ce.create = (t) => new ce({
1735
1735
  typeName: g.ZodUndefined,
1736
- ...b(t)
1736
+ ...v(t)
1737
1737
  });
1738
- var de = class extends w {
1738
+ var de = class extends _ {
1739
1739
  static {
1740
1740
  i(this, "ZodNull");
1741
1741
  }
@@ -1754,9 +1754,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1754
1754
  d.ZodNull = de;
1755
1755
  de.create = (t) => new de({
1756
1756
  typeName: g.ZodNull,
1757
- ...b(t)
1757
+ ...v(t)
1758
1758
  });
1759
- var Q = class extends w {
1759
+ var Q = class extends _ {
1760
1760
  static {
1761
1761
  i(this, "ZodAny");
1762
1762
  }
@@ -1770,9 +1770,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1770
1770
  d.ZodAny = Q;
1771
1771
  Q.create = (t) => new Q({
1772
1772
  typeName: g.ZodAny,
1773
- ...b(t)
1773
+ ...v(t)
1774
1774
  });
1775
- var K = class extends w {
1775
+ var K = class extends _ {
1776
1776
  static {
1777
1777
  i(this, "ZodUnknown");
1778
1778
  }
@@ -1786,9 +1786,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1786
1786
  d.ZodUnknown = K;
1787
1787
  K.create = (t) => new K({
1788
1788
  typeName: g.ZodUnknown,
1789
- ...b(t)
1789
+ ...v(t)
1790
1790
  });
1791
- var $ = class extends w {
1791
+ var $ = class extends _ {
1792
1792
  static {
1793
1793
  i(this, "ZodNever");
1794
1794
  }
@@ -1804,9 +1804,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1804
1804
  d.ZodNever = $;
1805
1805
  $.create = (t) => new $({
1806
1806
  typeName: g.ZodNever,
1807
- ...b(t)
1807
+ ...v(t)
1808
1808
  });
1809
- var Ie = class extends w {
1809
+ var Ie = class extends _ {
1810
1810
  static {
1811
1811
  i(this, "ZodVoid");
1812
1812
  }
@@ -1825,9 +1825,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1825
1825
  d.ZodVoid = Ie;
1826
1826
  Ie.create = (t) => new Ie({
1827
1827
  typeName: g.ZodVoid,
1828
- ...b(t)
1828
+ ...v(t)
1829
1829
  });
1830
- var J = class t extends w {
1830
+ var J = class t extends _ {
1831
1831
  static {
1832
1832
  i(this, "ZodArray");
1833
1833
  }
@@ -1902,7 +1902,7 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1902
1902
  maxLength: null,
1903
1903
  exactLength: null,
1904
1904
  typeName: g.ZodArray,
1905
- ...b(e)
1905
+ ...v(e)
1906
1906
  });
1907
1907
  function ke(t) {
1908
1908
  if (t instanceof R) {
@@ -1918,11 +1918,11 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1918
1918
  } else return t instanceof J ? new J({
1919
1919
  ...t._def,
1920
1920
  type: ke(t.element)
1921
- }) : t instanceof D ? D.create(ke(t.unwrap())) : t instanceof W ? W.create(ke(t.unwrap())) : t instanceof q ? q.create(t.items.map((e) => ke(
1921
+ }) : t instanceof D ? D.create(ke(t.unwrap())) : t instanceof q ? q.create(ke(t.unwrap())) : t instanceof W ? W.create(t.items.map((e) => ke(
1922
1922
  e))) : t;
1923
1923
  }
1924
1924
  i(ke, "deepPartialify");
1925
- var R = class t extends w {
1925
+ var R = class t extends _ {
1926
1926
  static {
1927
1927
  i(this, "ZodObject");
1928
1928
  }
@@ -1950,10 +1950,10 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1950
1950
  a.includes(p) || c.push(p);
1951
1951
  let l = [];
1952
1952
  for (let p of a) {
1953
- let f = o[p], v = s.data[p];
1953
+ let f = o[p], x = s.data[p];
1954
1954
  l.push({
1955
1955
  key: { status: "valid", value: p },
1956
- value: f._parse(new L(s, v, s.path, p)),
1956
+ value: f._parse(new L(s, x, s.path, p)),
1957
1957
  alwaysSet: p in s.data
1958
1958
  });
1959
1959
  }
@@ -1975,11 +1975,11 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1975
1975
  } else {
1976
1976
  let p = this._def.catchall;
1977
1977
  for (let f of c) {
1978
- let v = s.data[f];
1978
+ let x = s.data[f];
1979
1979
  l.push({
1980
1980
  key: { status: "valid", value: f },
1981
1981
  value: p._parse(
1982
- new L(s, v, s.path, f)
1982
+ new L(s, x, s.path, f)
1983
1983
  //, ctx.child(key), value, getParsedType(value)
1984
1984
  ),
1985
1985
  alwaysSet: f in s.data
@@ -1989,9 +1989,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
1989
1989
  return s.common.async ? Promise.resolve().then(async () => {
1990
1990
  let p = [];
1991
1991
  for (let f of l) {
1992
- let v = await f.key, k = await f.value;
1992
+ let x = await f.key, k = await f.value;
1993
1993
  p.push({
1994
- key: v,
1994
+ key: x,
1995
1995
  value: k,
1996
1996
  alwaysSet: f.alwaysSet
1997
1997
  });
@@ -2199,23 +2199,23 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2199
2199
  unknownKeys: "strip",
2200
2200
  catchall: $.create(),
2201
2201
  typeName: g.ZodObject,
2202
- ...b(e)
2202
+ ...v(e)
2203
2203
  });
2204
2204
  R.strictCreate = (t, e) => new R({
2205
2205
  shape: /* @__PURE__ */ i(() => t, "shape"),
2206
2206
  unknownKeys: "strict",
2207
2207
  catchall: $.create(),
2208
2208
  typeName: g.ZodObject,
2209
- ...b(e)
2209
+ ...v(e)
2210
2210
  });
2211
2211
  R.lazycreate = (t, e) => new R({
2212
2212
  shape: t,
2213
2213
  unknownKeys: "strip",
2214
2214
  catchall: $.create(),
2215
2215
  typeName: g.ZodObject,
2216
- ...b(e)
2216
+ ...v(e)
2217
2217
  });
2218
- var ue = class extends w {
2218
+ var ue = class extends _ {
2219
2219
  static {
2220
2220
  i(this, "ZodUnion");
2221
2221
  }
@@ -2289,12 +2289,12 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2289
2289
  ue.create = (t, e) => new ue({
2290
2290
  options: t,
2291
2291
  typeName: g.ZodUnion,
2292
- ...b(e)
2292
+ ...v(e)
2293
2293
  });
2294
2294
  var z = /* @__PURE__ */ i((t) => t instanceof pe ? z(t.schema) : t instanceof Z ? z(t.innerType()) : t instanceof fe ? [t.value] : t instanceof
2295
2295
  me ? t.options : t instanceof he ? h.util.objectValues(t.enum) : t instanceof ye ? z(t._def.innerType) : t instanceof ce ? [void 0] : t instanceof
2296
- de ? [null] : t instanceof D ? [void 0, ...z(t.unwrap())] : t instanceof W ? [null, ...z(t.unwrap())] : t instanceof Ke || t instanceof ve ?
2297
- z(t.unwrap()) : t instanceof ge ? z(t._def.innerType) : [], "getDiscriminator"), _t = class t extends w {
2296
+ de ? [null] : t instanceof D ? [void 0, ...z(t.unwrap())] : t instanceof q ? [null, ...z(t.unwrap())] : t instanceof Ke || t instanceof xe ?
2297
+ z(t.unwrap()) : t instanceof ge ? z(t._def.innerType) : [], "getDiscriminator"), wt = class t extends _ {
2298
2298
  static {
2299
2299
  i(this, "ZodDiscriminatedUnion");
2300
2300
  }
@@ -2355,11 +2355,11 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2355
2355
  discriminator: e,
2356
2356
  options: r,
2357
2357
  optionsMap: s,
2358
- ...b(n)
2358
+ ...v(n)
2359
2359
  });
2360
2360
  }
2361
2361
  };
2362
- d.ZodDiscriminatedUnion = _t;
2362
+ d.ZodDiscriminatedUnion = wt;
2363
2363
  function kr(t, e) {
2364
2364
  let r = (0, h.getParsedType)(t), n = (0, h.getParsedType)(e);
2365
2365
  if (t === e)
@@ -2387,7 +2387,7 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2387
2387
  } else return r === h.ZodParsedType.date && n === h.ZodParsedType.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
2388
2388
  }
2389
2389
  i(kr, "mergeValues");
2390
- var le = class extends w {
2390
+ var le = class extends _ {
2391
2391
  static {
2392
2392
  i(this, "ZodIntersection");
2393
2393
  }
@@ -2428,9 +2428,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2428
2428
  left: t,
2429
2429
  right: e,
2430
2430
  typeName: g.ZodIntersection,
2431
- ...b(r)
2431
+ ...v(r)
2432
2432
  });
2433
- var q = class t extends w {
2433
+ var W = class t extends _ {
2434
2434
  static {
2435
2435
  i(this, "ZodTuple");
2436
2436
  }
@@ -2473,18 +2473,18 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2473
2473
  });
2474
2474
  }
2475
2475
  };
2476
- d.ZodTuple = q;
2477
- q.create = (t, e) => {
2476
+ d.ZodTuple = W;
2477
+ W.create = (t, e) => {
2478
2478
  if (!Array.isArray(t))
2479
2479
  throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
2480
- return new q({
2480
+ return new W({
2481
2481
  items: t,
2482
2482
  typeName: g.ZodTuple,
2483
2483
  rest: null,
2484
- ...b(e)
2484
+ ...v(e)
2485
2485
  });
2486
2486
  };
2487
- var kt = class t extends w {
2487
+ var kt = class t extends _ {
2488
2488
  static {
2489
2489
  i(this, "ZodRecord");
2490
2490
  }
@@ -2515,21 +2515,21 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2515
2515
  return this._def.valueType;
2516
2516
  }
2517
2517
  static create(e, r, n) {
2518
- return r instanceof w ? new t({
2518
+ return r instanceof _ ? new t({
2519
2519
  keyType: e,
2520
2520
  valueType: r,
2521
2521
  typeName: g.ZodRecord,
2522
- ...b(n)
2522
+ ...v(n)
2523
2523
  }) : new t({
2524
2524
  keyType: X.create(),
2525
2525
  valueType: e,
2526
2526
  typeName: g.ZodRecord,
2527
- ...b(r)
2527
+ ...v(r)
2528
2528
  });
2529
2529
  }
2530
2530
  };
2531
2531
  d.ZodRecord = kt;
2532
- var Se = class extends w {
2532
+ var Se = class extends _ {
2533
2533
  static {
2534
2534
  i(this, "ZodMap");
2535
2535
  }
@@ -2579,9 +2579,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2579
2579
  valueType: e,
2580
2580
  keyType: t,
2581
2581
  typeName: g.ZodMap,
2582
- ...b(r)
2582
+ ...v(r)
2583
2583
  });
2584
- var Ee = class t extends w {
2584
+ var Ee = class t extends _ {
2585
2585
  static {
2586
2586
  i(this, "ZodSet");
2587
2587
  }
@@ -2648,9 +2648,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2648
2648
  minSize: null,
2649
2649
  maxSize: null,
2650
2650
  typeName: g.ZodSet,
2651
- ...b(e)
2651
+ ...v(e)
2652
2652
  });
2653
- var Tt = class t extends w {
2653
+ var Tt = class t extends _ {
2654
2654
  static {
2655
2655
  i(this, "ZodFunction");
2656
2656
  }
@@ -2672,8 +2672,8 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2672
2672
  errorMaps: [
2673
2673
  r.common.contextualErrorMap,
2674
2674
  r.schemaErrorMap,
2675
- (0, bt.getErrorMap)(),
2676
- bt.defaultErrorMap
2675
+ (0, vt.getErrorMap)(),
2676
+ vt.defaultErrorMap
2677
2677
  ].filter((p) => !!p),
2678
2678
  issueData: {
2679
2679
  code: m.ZodIssueCode.invalid_arguments,
@@ -2689,8 +2689,8 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2689
2689
  errorMaps: [
2690
2690
  r.common.contextualErrorMap,
2691
2691
  r.schemaErrorMap,
2692
- (0, bt.getErrorMap)(),
2693
- bt.defaultErrorMap
2692
+ (0, vt.getErrorMap)(),
2693
+ vt.defaultErrorMap
2694
2694
  ].filter((p) => !!p),
2695
2695
  issueData: {
2696
2696
  code: m.ZodIssueCode.invalid_return_type,
@@ -2703,11 +2703,11 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2703
2703
  if (this._def.returns instanceof ee) {
2704
2704
  let c = this;
2705
2705
  return (0, u.OK)(async function(...l) {
2706
- let p = new m.ZodError([]), f = await c._def.args.parseAsync(l, o).catch((_) => {
2707
- throw p.addIssue(n(l, _)), p;
2708
- }), v = await Reflect.apply(a, this, f);
2709
- return await c._def.returns._def.type.parseAsync(v, o).catch((_) => {
2710
- throw p.addIssue(s(v, _)), p;
2706
+ let p = new m.ZodError([]), f = await c._def.args.parseAsync(l, o).catch((w) => {
2707
+ throw p.addIssue(n(l, w)), p;
2708
+ }), x = await Reflect.apply(a, this, f);
2709
+ return await c._def.returns._def.type.parseAsync(x, o).catch((w) => {
2710
+ throw p.addIssue(s(x, w)), p;
2711
2711
  });
2712
2712
  });
2713
2713
  } else {
@@ -2716,10 +2716,10 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2716
2716
  let p = c._def.args.safeParse(l, o);
2717
2717
  if (!p.success)
2718
2718
  throw new m.ZodError([n(l, p.error)]);
2719
- let f = Reflect.apply(a, this, p.data), v = c._def.returns.safeParse(f, o);
2720
- if (!v.success)
2721
- throw new m.ZodError([s(f, v.error)]);
2722
- return v.data;
2719
+ let f = Reflect.apply(a, this, p.data), x = c._def.returns.safeParse(f, o);
2720
+ if (!x.success)
2721
+ throw new m.ZodError([s(f, x.error)]);
2722
+ return x.data;
2723
2723
  });
2724
2724
  }
2725
2725
  }
@@ -2732,7 +2732,7 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2732
2732
  args(...e) {
2733
2733
  return new t({
2734
2734
  ...this._def,
2735
- args: q.create(e).rest(K.create())
2735
+ args: W.create(e).rest(K.create())
2736
2736
  });
2737
2737
  }
2738
2738
  returns(e) {
@@ -2749,15 +2749,15 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2749
2749
  }
2750
2750
  static create(e, r, n) {
2751
2751
  return new t({
2752
- args: e || q.create([]).rest(K.create()),
2752
+ args: e || W.create([]).rest(K.create()),
2753
2753
  returns: r || K.create(),
2754
2754
  typeName: g.ZodFunction,
2755
- ...b(n)
2755
+ ...v(n)
2756
2756
  });
2757
2757
  }
2758
2758
  };
2759
2759
  d.ZodFunction = Tt;
2760
- var pe = class extends w {
2760
+ var pe = class extends _ {
2761
2761
  static {
2762
2762
  i(this, "ZodLazy");
2763
2763
  }
@@ -2773,9 +2773,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2773
2773
  pe.create = (t, e) => new pe({
2774
2774
  getter: t,
2775
2775
  typeName: g.ZodLazy,
2776
- ...b(e)
2776
+ ...v(e)
2777
2777
  });
2778
- var fe = class extends w {
2778
+ var fe = class extends _ {
2779
2779
  static {
2780
2780
  i(this, "ZodLiteral");
2781
2781
  }
@@ -2798,17 +2798,17 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2798
2798
  fe.create = (t, e) => new fe({
2799
2799
  value: t,
2800
2800
  typeName: g.ZodLiteral,
2801
- ...b(e)
2801
+ ...v(e)
2802
2802
  });
2803
2803
  function is(t, e) {
2804
2804
  return new me({
2805
2805
  values: t,
2806
2806
  typeName: g.ZodEnum,
2807
- ...b(e)
2807
+ ...v(e)
2808
2808
  });
2809
2809
  }
2810
2810
  i(is, "createZodEnum");
2811
- var me = class t extends w {
2811
+ var me = class t extends _ {
2812
2812
  static {
2813
2813
  i(this, "ZodEnum");
2814
2814
  }
@@ -2824,7 +2824,7 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2824
2824
  code: m.ZodIssueCode.invalid_type
2825
2825
  }), u.INVALID;
2826
2826
  }
2827
- if (wt(this, Ge, "f") || rs(this, Ge, new Set(this._def.values), "f"), !wt(this, Ge, "f").has(e.data)) {
2827
+ if (_t(this, Ge, "f") || rs(this, Ge, new Set(this._def.values), "f"), !_t(this, Ge, "f").has(e.data)) {
2828
2828
  let r = this._getOrReturnCtx(e), n = this._def.values;
2829
2829
  return (0, u.addIssueToContext)(r, {
2830
2830
  received: r.data,
@@ -2871,7 +2871,7 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2871
2871
  d.ZodEnum = me;
2872
2872
  Ge = /* @__PURE__ */ new WeakMap();
2873
2873
  me.create = is;
2874
- var he = class extends w {
2874
+ var he = class extends _ {
2875
2875
  static {
2876
2876
  i(this, "ZodNativeEnum");
2877
2877
  }
@@ -2888,7 +2888,7 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2888
2888
  code: m.ZodIssueCode.invalid_type
2889
2889
  }), u.INVALID;
2890
2890
  }
2891
- if (wt(this, ze, "f") || rs(this, ze, new Set(h.util.getValidEnumValues(this._def.values)), "f"), !wt(this, ze, "f").has(e.data)) {
2891
+ if (_t(this, ze, "f") || rs(this, ze, new Set(h.util.getValidEnumValues(this._def.values)), "f"), !_t(this, ze, "f").has(e.data)) {
2892
2892
  let s = h.util.objectValues(r);
2893
2893
  return (0, u.addIssueToContext)(n, {
2894
2894
  received: n.data,
@@ -2907,9 +2907,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2907
2907
  he.create = (t, e) => new he({
2908
2908
  values: t,
2909
2909
  typeName: g.ZodNativeEnum,
2910
- ...b(e)
2910
+ ...v(e)
2911
2911
  });
2912
- var ee = class extends w {
2912
+ var ee = class extends _ {
2913
2913
  static {
2914
2914
  i(this, "ZodPromise");
2915
2915
  }
@@ -2935,9 +2935,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
2935
2935
  ee.create = (t, e) => new ee({
2936
2936
  type: t,
2937
2937
  typeName: g.ZodPromise,
2938
- ...b(e)
2938
+ ...v(e)
2939
2939
  });
2940
- var Z = class extends w {
2940
+ var Z = class extends _ {
2941
2941
  static {
2942
2942
  i(this, "ZodEffects");
2943
2943
  }
@@ -3025,15 +3025,15 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
3025
3025
  schema: t,
3026
3026
  typeName: g.ZodEffects,
3027
3027
  effect: e,
3028
- ...b(r)
3028
+ ...v(r)
3029
3029
  });
3030
3030
  Z.createWithPreprocess = (t, e, r) => new Z({
3031
3031
  schema: e,
3032
3032
  effect: { type: "preprocess", transform: t },
3033
3033
  typeName: g.ZodEffects,
3034
- ...b(r)
3034
+ ...v(r)
3035
3035
  });
3036
- var D = class extends w {
3036
+ var D = class extends _ {
3037
3037
  static {
3038
3038
  i(this, "ZodOptional");
3039
3039
  }
@@ -3048,9 +3048,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
3048
3048
  D.create = (t, e) => new D({
3049
3049
  innerType: t,
3050
3050
  typeName: g.ZodOptional,
3051
- ...b(e)
3051
+ ...v(e)
3052
3052
  });
3053
- var W = class extends w {
3053
+ var q = class extends _ {
3054
3054
  static {
3055
3055
  i(this, "ZodNullable");
3056
3056
  }
@@ -3061,13 +3061,13 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
3061
3061
  return this._def.innerType;
3062
3062
  }
3063
3063
  };
3064
- d.ZodNullable = W;
3065
- W.create = (t, e) => new W({
3064
+ d.ZodNullable = q;
3065
+ q.create = (t, e) => new q({
3066
3066
  innerType: t,
3067
3067
  typeName: g.ZodNullable,
3068
- ...b(e)
3068
+ ...v(e)
3069
3069
  });
3070
- var ye = class extends w {
3070
+ var ye = class extends _ {
3071
3071
  static {
3072
3072
  i(this, "ZodDefault");
3073
3073
  }
@@ -3088,9 +3088,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
3088
3088
  innerType: t,
3089
3089
  typeName: g.ZodDefault,
3090
3090
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
3091
- ...b(e)
3091
+ ...v(e)
3092
3092
  });
3093
- var ge = class extends w {
3093
+ var ge = class extends _ {
3094
3094
  static {
3095
3095
  i(this, "ZodCatch");
3096
3096
  }
@@ -3135,9 +3135,9 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
3135
3135
  innerType: t,
3136
3136
  typeName: g.ZodCatch,
3137
3137
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
3138
- ...b(e)
3138
+ ...v(e)
3139
3139
  });
3140
- var Ce = class extends w {
3140
+ var Ce = class extends _ {
3141
3141
  static {
3142
3142
  i(this, "ZodNaN");
3143
3143
  }
@@ -3156,10 +3156,10 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
3156
3156
  d.ZodNaN = Ce;
3157
3157
  Ce.create = (t) => new Ce({
3158
3158
  typeName: g.ZodNaN,
3159
- ...b(t)
3159
+ ...v(t)
3160
3160
  });
3161
3161
  d.BRAND = Symbol("zod_brand");
3162
- var Ke = class extends w {
3162
+ var Ke = class extends _ {
3163
3163
  static {
3164
3164
  i(this, "ZodBranded");
3165
3165
  }
@@ -3176,7 +3176,7 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
3176
3176
  }
3177
3177
  };
3178
3178
  d.ZodBranded = Ke;
3179
- var Je = class t extends w {
3179
+ var Je = class t extends _ {
3180
3180
  static {
3181
3181
  i(this, "ZodPipeline");
3182
3182
  }
@@ -3221,7 +3221,7 @@ onent})+$", _r, ic = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.
3221
3221
  }
3222
3222
  };
3223
3223
  d.ZodPipeline = Je;
3224
- var ve = class extends w {
3224
+ var xe = class extends _ {
3225
3225
  static {
3226
3226
  i(this, "ZodReadonly");
3227
3227
  }
@@ -3234,11 +3234,11 @@ eze");
3234
3234
  return this._def.innerType;
3235
3235
  }
3236
3236
  };
3237
- d.ZodReadonly = ve;
3238
- ve.create = (t, e) => new ve({
3237
+ d.ZodReadonly = xe;
3238
+ xe.create = (t, e) => new xe({
3239
3239
  innerType: t,
3240
3240
  typeName: g.ZodReadonly,
3241
- ...b(e)
3241
+ ...v(e)
3242
3242
  });
3243
3243
  function ts(t, e) {
3244
3244
  let r = typeof t == "function" ? t(e) : typeof t == "string" ? { message: t } : t;
@@ -3253,8 +3253,8 @@ eze");
3253
3253
  return c.then((l) => {
3254
3254
  var p, f;
3255
3255
  if (!l) {
3256
- let v = ts(e, n), k = (f = (p = v.fatal) !== null && p !== void 0 ? p : r) !== null && f !== void 0 ? f : !0;
3257
- s.addIssue({ code: "custom", ...v, fatal: k });
3256
+ let x = ts(e, n), k = (f = (p = x.fatal) !== null && p !== void 0 ? p : r) !== null && f !== void 0 ? f : !0;
3257
+ s.addIssue({ code: "custom", ...x, fatal: k });
3258
3258
  }
3259
3259
  });
3260
3260
  if (!c) {
@@ -3279,24 +3279,24 @@ known", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray",
3279
3279
  t", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodRe\
3280
3280
  adonly";
3281
3281
  })(g || (d.ZodFirstPartyTypeKind = g = {}));
3282
- var vc = /* @__PURE__ */ i((t, e = {
3282
+ var xc = /* @__PURE__ */ i((t, e = {
3283
3283
  message: `Input not instance of ${t.name}`
3284
3284
  }) => as((r) => r instanceof t, e), "instanceOfType");
3285
- d.instanceof = vc;
3285
+ d.instanceof = xc;
3286
3286
  var cs = X.create;
3287
3287
  d.string = cs;
3288
3288
  var ds = se.create;
3289
3289
  d.number = ds;
3290
- var xc = Ce.create;
3291
- d.nan = xc;
3292
- var bc = oe.create;
3293
- d.bigint = bc;
3290
+ var bc = Ce.create;
3291
+ d.nan = bc;
3292
+ var vc = oe.create;
3293
+ d.bigint = vc;
3294
3294
  var us = ie.create;
3295
3295
  d.boolean = us;
3296
- var wc = ae.create;
3297
- d.date = wc;
3298
- var _c = Te.create;
3299
- d.symbol = _c;
3296
+ var _c = ae.create;
3297
+ d.date = _c;
3298
+ var wc = Te.create;
3299
+ d.symbol = wc;
3300
3300
  var kc = ce.create;
3301
3301
  d.undefined = kc;
3302
3302
  var Tc = de.create;
@@ -3311,17 +3311,17 @@ adonly";
3311
3311
  d.void = Cc;
3312
3312
  var Pc = J.create;
3313
3313
  d.array = Pc;
3314
- var jc = R.create;
3315
- d.object = jc;
3316
- var Ac = R.strictCreate;
3317
- d.strictObject = Ac;
3318
- var Oc = ue.create;
3319
- d.union = Oc;
3320
- var Rc = _t.create;
3314
+ var Ac = R.create;
3315
+ d.object = Ac;
3316
+ var Oc = R.strictCreate;
3317
+ d.strictObject = Oc;
3318
+ var jc = ue.create;
3319
+ d.union = jc;
3320
+ var Rc = wt.create;
3321
3321
  d.discriminatedUnion = Rc;
3322
3322
  var Nc = le.create;
3323
3323
  d.intersection = Nc;
3324
- var Zc = q.create;
3324
+ var Zc = W.create;
3325
3325
  d.tuple = Zc;
3326
3326
  var Mc = kt.create;
3327
3327
  d.record = Mc;
@@ -3339,14 +3339,14 @@ adonly";
3339
3339
  d.enum = Fc;
3340
3340
  var Bc = he.create;
3341
3341
  d.nativeEnum = Bc;
3342
- var qc = ee.create;
3343
- d.promise = qc;
3342
+ var Wc = ee.create;
3343
+ d.promise = Wc;
3344
3344
  var ls = Z.create;
3345
3345
  d.effect = ls;
3346
3346
  d.transformer = ls;
3347
- var Wc = D.create;
3348
- d.optional = Wc;
3349
- var Gc = W.create;
3347
+ var qc = D.create;
3348
+ d.optional = qc;
3349
+ var Gc = q.create;
3350
3350
  d.nullable = Gc;
3351
3351
  var zc = Z.createWithPreprocess;
3352
3352
  d.preprocess = zc;
@@ -3386,10 +3386,10 @@ var Tr = S((U) => {
3386
3386
  for (var r in t) r !== "default" && !Object.prototype.hasOwnProperty.call(e, r) && Xc(e, t, r);
3387
3387
  };
3388
3388
  Object.defineProperty(U, "__esModule", { value: !0 });
3389
- Pe(vt(), U);
3390
- Pe(wr(), U);
3389
+ Pe(xt(), U);
3390
+ Pe(_r(), U);
3391
3391
  Pe(Yn(), U);
3392
- Pe(qe(), U);
3392
+ Pe(We(), U);
3393
3393
  Pe(ps(), U);
3394
3394
  Pe(gt(), U);
3395
3395
  });
@@ -3438,8 +3438,8 @@ var gs = S((He) => {
3438
3438
  var s = n.reduce(function(c, l) {
3439
3439
  var p = l.match(/\n([\t ]+|(?!\s).)/g);
3440
3440
  return p ? c.concat(p.map(function(f) {
3441
- var v, k;
3442
- return (k = (v = f.match(/[\t ]/g)) === null || v === void 0 ? void 0 : v.length) !== null && k !== void 0 ? k : 0;
3441
+ var x, k;
3442
+ return (k = (x = f.match(/[\t ]/g)) === null || x === void 0 ? void 0 : x.length) !== null && k !== void 0 ? k : 0;
3443
3443
  })) : c;
3444
3444
  }, []);
3445
3445
  if (s.length) {
@@ -3453,13 +3453,13 @@ var gs = S((He) => {
3453
3453
  n[0] = n[0].replace(/^\r?\n/, "");
3454
3454
  var a = n[0];
3455
3455
  return e.forEach(function(c, l) {
3456
- var p = a.match(/(?:^|\n)( *)$/), f = p ? p[1] : "", v = c;
3456
+ var p = a.match(/(?:^|\n)( *)$/), f = p ? p[1] : "", x = c;
3457
3457
  typeof c == "string" && c.includes(`
3458
- `) && (v = String(c).split(`
3459
- `).map(function(k, _) {
3460
- return _ === 0 ? k : "" + f + k;
3458
+ `) && (x = String(c).split(`
3459
+ `).map(function(k, w) {
3460
+ return w === 0 ? k : "" + f + k;
3461
3461
  }).join(`
3462
- `)), a += v + n[l + 1];
3462
+ `)), a += x + n[l + 1];
3463
3463
  }), a;
3464
3464
  }
3465
3465
  i(ys, "dedent");
@@ -3471,7 +3471,7 @@ var gs = S((He) => {
3471
3471
  var Ss = S((mp, Is) => {
3472
3472
  Is.exports = Ts;
3473
3473
  Ts.sync = id;
3474
- var _s = require("fs");
3474
+ var ws = require("fs");
3475
3475
  function od(t, e) {
3476
3476
  var r = e.pathExt !== void 0 ? e.pathExt : process.env.PATHEXT;
3477
3477
  if (!r || (r = r.split(";"), r.indexOf("") !== -1))
@@ -3489,20 +3489,20 @@ var Ss = S((mp, Is) => {
3489
3489
  }
3490
3490
  i(ks, "checkStat");
3491
3491
  function Ts(t, e, r) {
3492
- _s.stat(t, function(n, s) {
3492
+ ws.stat(t, function(n, s) {
3493
3493
  r(n, n ? !1 : ks(s, t, e));
3494
3494
  });
3495
3495
  }
3496
3496
  i(Ts, "isexe");
3497
3497
  function id(t, e) {
3498
- return ks(_s.statSync(t), t, e);
3498
+ return ks(ws.statSync(t), t, e);
3499
3499
  }
3500
3500
  i(id, "sync");
3501
3501
  });
3502
3502
 
3503
3503
  // ../node_modules/isexe/mode.js
3504
- var As = S((yp, js) => {
3505
- js.exports = Cs;
3504
+ var Os = S((yp, As) => {
3505
+ As.exports = Cs;
3506
3506
  Cs.sync = ad;
3507
3507
  var Es = require("fs");
3508
3508
  function Cs(t, e, r) {
@@ -3521,18 +3521,18 @@ var As = S((yp, js) => {
3521
3521
  i(Ps, "checkStat");
3522
3522
  function cd(t, e) {
3523
3523
  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.
3524
- getgid && process.getgid(), c = parseInt("100", 8), l = parseInt("010", 8), p = parseInt("001", 8), f = c | l, v = r & p || r & l && s ===
3524
+ getgid && process.getgid(), c = parseInt("100", 8), l = parseInt("010", 8), p = parseInt("001", 8), f = c | l, x = r & p || r & l && s ===
3525
3525
  a || r & c && n === o || r & f && o === 0;
3526
- return v;
3526
+ return x;
3527
3527
  }
3528
3528
  i(cd, "checkMode");
3529
3529
  });
3530
3530
 
3531
3531
  // ../node_modules/isexe/index.js
3532
- var Rs = S((xp, Os) => {
3533
- var vp = require("fs"), jt;
3534
- process.platform === "win32" || global.TESTING_WINDOWS ? jt = Ss() : jt = As();
3535
- Os.exports = Ir;
3532
+ var Rs = S((bp, js) => {
3533
+ var xp = require("fs"), At;
3534
+ process.platform === "win32" || global.TESTING_WINDOWS ? At = Ss() : At = Os();
3535
+ js.exports = Ir;
3536
3536
  Ir.sync = dd;
3537
3537
  function Ir(t, e, r) {
3538
3538
  if (typeof e == "function" && (r = e, e = {}), !r) {
@@ -3544,14 +3544,14 @@ var Rs = S((xp, Os) => {
3544
3544
  });
3545
3545
  });
3546
3546
  }
3547
- jt(t, e || {}, function(n, s) {
3547
+ At(t, e || {}, function(n, s) {
3548
3548
  n && (n.code === "EACCES" || e && e.ignoreErrors) && (n = null, s = !1), r(n, s);
3549
3549
  });
3550
3550
  }
3551
3551
  i(Ir, "isexe");
3552
3552
  function dd(t, e) {
3553
3553
  try {
3554
- return jt.sync(t, e || {});
3554
+ return At.sync(t, e || {});
3555
3555
  } catch (r) {
3556
3556
  if (e && e.ignoreErrors || r.code === "EACCES")
3557
3557
  return !1;
@@ -3562,39 +3562,39 @@ var Rs = S((xp, Os) => {
3562
3562
  });
3563
3563
 
3564
3564
  // ../node_modules/which/which.js
3565
- var $s = S((wp, Us) => {
3566
- var Oe = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", Ns = require("path"), ud = Oe ?
3565
+ var $s = S((_p, Us) => {
3566
+ var je = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", Ns = require("path"), ud = je ?
3567
3567
  ";" : ":", Zs = Rs(), Ms = /* @__PURE__ */ i((t) => Object.assign(new Error(`not found: ${t}`), { code: "ENOENT" }), "getNotFoundError"), Ds = /* @__PURE__ */ i(
3568
3568
  (t, e) => {
3569
- let r = e.colon || ud, n = t.match(/\//) || Oe && t.match(/\\/) ? [""] : [
3569
+ let r = e.colon || ud, n = t.match(/\//) || je && t.match(/\\/) ? [""] : [
3570
3570
  // windows always checks the cwd first
3571
- ...Oe ? [process.cwd()] : [],
3571
+ ...je ? [process.cwd()] : [],
3572
3572
  ...(e.path || process.env.PATH || /* istanbul ignore next: very unusual */
3573
3573
  "").split(r)
3574
- ], s = Oe ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = Oe ? s.split(r) : [""];
3575
- return Oe && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
3574
+ ], s = je ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = je ? s.split(r) : [""];
3575
+ return je && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
3576
3576
  pathEnv: n,
3577
3577
  pathExt: o,
3578
3578
  pathExtExe: s
3579
3579
  };
3580
3580
  }, "getPathInfo"), Ls = /* @__PURE__ */ i((t, e, r) => {
3581
3581
  typeof e == "function" && (r = e, e = {}), e || (e = {});
3582
- let { pathEnv: n, pathExt: s, pathExtExe: o } = Ds(t, e), a = [], c = /* @__PURE__ */ i((p) => new Promise((f, v) => {
3582
+ let { pathEnv: n, pathExt: s, pathExtExe: o } = Ds(t, e), a = [], c = /* @__PURE__ */ i((p) => new Promise((f, x) => {
3583
3583
  if (p === n.length)
3584
- return e.all && a.length ? f(a) : v(Ms(t));
3585
- let k = n[p], _ = /^".*"$/.test(k) ? k.slice(1, -1) : k, P = Ns.join(_, t), E = !_ && /^\.[\\\/]/.test(t) ? t.slice(0, 2) + P : P;
3584
+ return e.all && a.length ? f(a) : x(Ms(t));
3585
+ let k = n[p], w = /^".*"$/.test(k) ? k.slice(1, -1) : k, P = Ns.join(w, t), E = !w && /^\.[\\\/]/.test(t) ? t.slice(0, 2) + P : P;
3586
3586
  f(l(E, p, 0));
3587
- }), "step"), l = /* @__PURE__ */ i((p, f, v) => new Promise((k, _) => {
3588
- if (v === s.length)
3587
+ }), "step"), l = /* @__PURE__ */ i((p, f, x) => new Promise((k, w) => {
3588
+ if (x === s.length)
3589
3589
  return k(c(f + 1));
3590
- let P = s[v];
3591
- Zs(p + P, { pathExt: o }, (E, j) => {
3592
- if (!E && j)
3590
+ let P = s[x];
3591
+ Zs(p + P, { pathExt: o }, (E, A) => {
3592
+ if (!E && A)
3593
3593
  if (e.all)
3594
3594
  a.push(p + P);
3595
3595
  else
3596
3596
  return k(p + P);
3597
- return k(l(p, f, v + 1));
3597
+ return k(l(p, f, x + 1));
3598
3598
  });
3599
3599
  }), "subStep");
3600
3600
  return r ? c(0).then((p) => r(null, p), r) : c(0);
@@ -3603,8 +3603,8 @@ var $s = S((wp, Us) => {
3603
3603
  let { pathEnv: r, pathExt: n, pathExtExe: s } = Ds(t, e), o = [];
3604
3604
  for (let a = 0; a < r.length; a++) {
3605
3605
  let c = r[a], l = /^".*"$/.test(c) ? c.slice(1, -1) : c, p = Ns.join(l, t), f = !l && /^\.[\\\/]/.test(t) ? t.slice(0, 2) + p : p;
3606
- for (let v = 0; v < n.length; v++) {
3607
- let k = f + n[v];
3606
+ for (let x = 0; x < n.length; x++) {
3607
+ let k = f + n[x];
3608
3608
  try {
3609
3609
  if (Zs.sync(k, { pathExt: s }))
3610
3610
  if (e.all)
@@ -3637,10 +3637,10 @@ var Fs = S((kp, Sr) => {
3637
3637
  });
3638
3638
 
3639
3639
  // ../node_modules/cross-spawn/lib/util/resolveCommand.js
3640
- var Gs = S((Ip, Ws) => {
3640
+ var Gs = S((Ip, qs) => {
3641
3641
  "use strict";
3642
3642
  var Bs = require("path"), pd = $s(), fd = Fs();
3643
- function qs(t, e) {
3643
+ function Ws(t, e) {
3644
3644
  let r = t.options.env || process.env, n = process.cwd(), s = t.options.cwd != null, o = s && process.chdir !== void 0 && !process.chdir.
3645
3645
  disabled;
3646
3646
  if (o)
@@ -3660,12 +3660,12 @@ var Gs = S((Ip, Ws) => {
3660
3660
  }
3661
3661
  return a && (a = Bs.resolve(s ? t.options.cwd : "", a)), a;
3662
3662
  }
3663
- i(qs, "resolveCommandAttempt");
3663
+ i(Ws, "resolveCommandAttempt");
3664
3664
  function md(t) {
3665
- return qs(t) || qs(t, !0);
3665
+ return Ws(t) || Ws(t, !0);
3666
3666
  }
3667
3667
  i(md, "resolveCommand");
3668
- Ws.exports = md;
3668
+ qs.exports = md;
3669
3669
  });
3670
3670
 
3671
3671
  // ../node_modules/cross-spawn/lib/util/escape.js
@@ -3692,7 +3692,7 @@ var Js = S((Pp, Ks) => {
3692
3692
  });
3693
3693
 
3694
3694
  // ../node_modules/shebang-command/index.js
3695
- var Ys = S((jp, Hs) => {
3695
+ var Ys = S((Ap, Hs) => {
3696
3696
  "use strict";
3697
3697
  var gd = Js();
3698
3698
  Hs.exports = (t = "") => {
@@ -3705,38 +3705,38 @@ var Ys = S((jp, Hs) => {
3705
3705
  });
3706
3706
 
3707
3707
  // ../node_modules/cross-spawn/lib/util/readShebang.js
3708
- var Qs = S((Ap, Xs) => {
3708
+ var Qs = S((Op, Xs) => {
3709
3709
  "use strict";
3710
- var Pr = require("fs"), vd = Ys();
3711
- function xd(t) {
3710
+ var Pr = require("fs"), xd = Ys();
3711
+ function bd(t) {
3712
3712
  let r = Buffer.alloc(150), n;
3713
3713
  try {
3714
3714
  n = Pr.openSync(t, "r"), Pr.readSync(n, r, 0, 150, 0), Pr.closeSync(n);
3715
3715
  } catch {
3716
3716
  }
3717
- return vd(r.toString());
3717
+ return xd(r.toString());
3718
3718
  }
3719
- i(xd, "readShebang");
3720
- Xs.exports = xd;
3719
+ i(bd, "readShebang");
3720
+ Xs.exports = bd;
3721
3721
  });
3722
3722
 
3723
3723
  // ../node_modules/cross-spawn/lib/parse.js
3724
3724
  var no = S((Rp, ro) => {
3725
3725
  "use strict";
3726
- var bd = require("path"), eo = Gs(), to = zs(), wd = Qs(), _d = process.platform === "win32", kd = /\.(?:com|exe)$/i, Td = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
3726
+ var vd = require("path"), eo = Gs(), to = zs(), _d = Qs(), wd = process.platform === "win32", kd = /\.(?:com|exe)$/i, Td = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
3727
3727
  function Id(t) {
3728
3728
  t.file = eo(t);
3729
- let e = t.file && wd(t.file);
3729
+ let e = t.file && _d(t.file);
3730
3730
  return e ? (t.args.unshift(t.file), t.command = e, eo(t)) : t.file;
3731
3731
  }
3732
3732
  i(Id, "detectShebang");
3733
3733
  function Sd(t) {
3734
- if (!_d)
3734
+ if (!wd)
3735
3735
  return t;
3736
3736
  let e = Id(t), r = !kd.test(e);
3737
3737
  if (t.options.forceShell || r) {
3738
3738
  let n = Td.test(e);
3739
- t.command = bd.normalize(t.command), t.command = to.command(t.command), t.args = t.args.map((o) => to.argument(o, n));
3739
+ t.command = vd.normalize(t.command), t.command = to.command(t.command), t.args = t.args.map((o) => to.argument(o, n));
3740
3740
  let s = [t.command].concat(t.args).join(" ");
3741
3741
  t.args = ["/d", "/s", "/c", `"${s}"`], t.command = process.env.comspec || "cmd.exe", t.options.windowsVerbatimArguments = !0;
3742
3742
  }
@@ -3764,8 +3764,8 @@ var no = S((Rp, ro) => {
3764
3764
  // ../node_modules/cross-spawn/lib/enoent.js
3765
3765
  var io = S((Zp, oo) => {
3766
3766
  "use strict";
3767
- var jr = process.platform === "win32";
3768
- function Ar(t, e) {
3767
+ var Ar = process.platform === "win32";
3768
+ function Or(t, e) {
3769
3769
  return Object.assign(new Error(`${e} ${t.command} ENOENT`), {
3770
3770
  code: "ENOENT",
3771
3771
  errno: "ENOENT",
@@ -3774,9 +3774,9 @@ var io = S((Zp, oo) => {
3774
3774
  spawnargs: t.args
3775
3775
  });
3776
3776
  }
3777
- i(Ar, "notFoundError");
3777
+ i(Or, "notFoundError");
3778
3778
  function Cd(t, e) {
3779
- if (!jr)
3779
+ if (!Ar)
3780
3780
  return;
3781
3781
  let r = t.emit;
3782
3782
  t.emit = function(n, s) {
@@ -3790,48 +3790,48 @@ var io = S((Zp, oo) => {
3790
3790
  }
3791
3791
  i(Cd, "hookChildProcess");
3792
3792
  function so(t, e) {
3793
- return jr && t === 1 && !e.file ? Ar(e.original, "spawn") : null;
3793
+ return Ar && t === 1 && !e.file ? Or(e.original, "spawn") : null;
3794
3794
  }
3795
3795
  i(so, "verifyENOENT");
3796
3796
  function Pd(t, e) {
3797
- return jr && t === 1 && !e.file ? Ar(e.original, "spawnSync") : null;
3797
+ return Ar && t === 1 && !e.file ? Or(e.original, "spawnSync") : null;
3798
3798
  }
3799
3799
  i(Pd, "verifyENOENTSync");
3800
3800
  oo.exports = {
3801
3801
  hookChildProcess: Cd,
3802
3802
  verifyENOENT: so,
3803
3803
  verifyENOENTSync: Pd,
3804
- notFoundError: Ar
3804
+ notFoundError: Or
3805
3805
  };
3806
3806
  });
3807
3807
 
3808
3808
  // ../node_modules/cross-spawn/index.js
3809
3809
  var uo = S((Dp, Re) => {
3810
3810
  "use strict";
3811
- var ao = require("child_process"), Or = no(), Rr = io();
3811
+ var ao = require("child_process"), jr = no(), Rr = io();
3812
3812
  function co(t, e, r) {
3813
- let n = Or(t, e, r), s = ao.spawn(n.command, n.args, n.options);
3813
+ let n = jr(t, e, r), s = ao.spawn(n.command, n.args, n.options);
3814
3814
  return Rr.hookChildProcess(s, n), s;
3815
3815
  }
3816
3816
  i(co, "spawn");
3817
- function jd(t, e, r) {
3818
- let n = Or(t, e, r), s = ao.spawnSync(n.command, n.args, n.options);
3817
+ function Ad(t, e, r) {
3818
+ let n = jr(t, e, r), s = ao.spawnSync(n.command, n.args, n.options);
3819
3819
  return s.error = s.error || Rr.verifyENOENTSync(s.status, n), s;
3820
3820
  }
3821
- i(jd, "spawnSync");
3821
+ i(Ad, "spawnSync");
3822
3822
  Re.exports = co;
3823
3823
  Re.exports.spawn = co;
3824
- Re.exports.sync = jd;
3825
- Re.exports._parse = Or;
3824
+ Re.exports.sync = Ad;
3825
+ Re.exports._parse = jr;
3826
3826
  Re.exports._enoent = Rr;
3827
3827
  });
3828
3828
 
3829
3829
  // ../node_modules/merge-stream/index.js
3830
3830
  var Fo = S((tm, Vo) => {
3831
3831
  "use strict";
3832
- var { PassThrough: _u } = require("stream");
3832
+ var { PassThrough: wu } = require("stream");
3833
3833
  Vo.exports = function() {
3834
- var t = [], e = new _u({ objectMode: !0 });
3834
+ var t = [], e = new wu({ objectMode: !0 });
3835
3835
  return e.setMaxListeners(0), e.add = r, e.isEmpty = n, e.on("unpipe", s), Array.prototype.slice.call(arguments).forEach(r), e;
3836
3836
  function r(o) {
3837
3837
  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")),
@@ -3860,7 +3860,7 @@ var yi = En(() => {
3860
3860
  });
3861
3861
 
3862
3862
  // ../node_modules/common-path-prefix/index.js
3863
- var xi = S((Zm, vi) => {
3863
+ var bi = S((Zm, xi) => {
3864
3864
  "use strict";
3865
3865
  var { sep: Mu } = require("path"), Du = /* @__PURE__ */ i((t) => {
3866
3866
  for (let e of t) {
@@ -3869,7 +3869,7 @@ var xi = S((Zm, vi) => {
3869
3869
  }
3870
3870
  return Mu;
3871
3871
  }, "determineSeparator");
3872
- vi.exports = /* @__PURE__ */ i(function(e, r = Du(e)) {
3872
+ xi.exports = /* @__PURE__ */ i(function(e, r = Du(e)) {
3873
3873
  let [n = "", ...s] = e;
3874
3874
  if (n === "" || s.length === 0) return "";
3875
3875
  let o = n.split(r), a = o.length;
@@ -3885,7 +3885,7 @@ var xi = S((Zm, vi) => {
3885
3885
  });
3886
3886
 
3887
3887
  // ../node_modules/yocto-queue/index.js
3888
- var cn, nt, bi = En(() => {
3888
+ var cn, nt, vi = En(() => {
3889
3889
  cn = class {
3890
3890
  static {
3891
3891
  i(this, "Node");
@@ -3973,42 +3973,42 @@ var na = S((Qy, ra) => {
3973
3973
  else
3974
3974
  throw new te("retryOn property expects an array or function");
3975
3975
  return new Promise(function(p, f) {
3976
- var v = /* @__PURE__ */ i(function(_) {
3976
+ var x = /* @__PURE__ */ i(function(w) {
3977
3977
  var P = typeof Request < "u" && s instanceof Request ? s.clone() : s;
3978
3978
  t(P, o).then(function(E) {
3979
3979
  if (Array.isArray(l) && l.indexOf(E.status) === -1)
3980
3980
  p(E);
3981
3981
  else if (typeof l == "function")
3982
3982
  try {
3983
- return Promise.resolve(l(_, null, E)).then(function(j) {
3984
- j ? k(_, null, E) : p(E);
3983
+ return Promise.resolve(l(w, null, E)).then(function(A) {
3984
+ A ? k(w, null, E) : p(E);
3985
3985
  }).catch(f);
3986
- } catch (j) {
3987
- f(j);
3986
+ } catch (A) {
3987
+ f(A);
3988
3988
  }
3989
3989
  else
3990
- _ < a ? k(_, null, E) : p(E);
3990
+ w < a ? k(w, null, E) : p(E);
3991
3991
  }).catch(function(E) {
3992
3992
  if (typeof l == "function")
3993
3993
  try {
3994
- Promise.resolve(l(_, E, null)).then(function(j) {
3995
- j ? k(_, E, null) : f(E);
3996
- }).catch(function(j) {
3997
- f(j);
3994
+ Promise.resolve(l(w, E, null)).then(function(A) {
3995
+ A ? k(w, E, null) : f(E);
3996
+ }).catch(function(A) {
3997
+ f(A);
3998
3998
  });
3999
- } catch (j) {
4000
- f(j);
3999
+ } catch (A) {
4000
+ f(A);
4001
4001
  }
4002
- else _ < a ? k(_, E, null) : f(E);
4002
+ else w < a ? k(w, E, null) : f(E);
4003
4003
  });
4004
4004
  }, "wrappedFetch");
4005
- function k(_, P, E) {
4006
- var j = typeof c == "function" ? c(_, P, E) : c;
4005
+ function k(w, P, E) {
4006
+ var A = typeof c == "function" ? c(w, P, E) : c;
4007
4007
  setTimeout(function() {
4008
- v(++_);
4009
- }, j);
4008
+ x(++w);
4009
+ }, A);
4010
4010
  }
4011
- i(k, "retry"), v(0);
4011
+ i(k, "retry"), x(0);
4012
4012
  });
4013
4013
  }, "fetchRetry");
4014
4014
  };
@@ -4026,15 +4026,15 @@ var na = S((Qy, ra) => {
4026
4026
  var gl = {};
4027
4027
  ka(gl, {
4028
4028
  addToGlobalContext: () => ya,
4029
- cleanPaths: () => _e,
4029
+ cleanPaths: () => we,
4030
4030
  computeStorybookMetadata: () => ta,
4031
4031
  getPrecedingUpgrade: () => pa,
4032
- getStorybookMetadata: () => bn,
4032
+ getStorybookMetadata: () => vn,
4033
4033
  isExampleStoryId: () => hl,
4034
- metaFrameworks: () => vn,
4034
+ metaFrameworks: () => xn,
4035
4035
  oneWayHash: () => nr,
4036
4036
  removeAnsiEscapeCodes: () => dr,
4037
- sanitizeAddonName: () => xn,
4037
+ sanitizeAddonName: () => bn,
4038
4038
  sanitizeError: () => Be,
4039
4039
  telemetry: () => yl
4040
4040
  });
@@ -4042,9 +4042,9 @@ module.exports = Ta(gl);
4042
4042
  var Sn = require("storybook/internal/node-logger");
4043
4043
 
4044
4044
  // src/telemetry/notify.ts
4045
- var cr = require("storybook/internal/common"), re = require("storybook/internal/node-logger"), Rn = T(An(), 1);
4046
- var On = "telemetry-notification-date", Nn = /* @__PURE__ */ i(async () => {
4047
- await cr.cache.get(On, null) || (cr.cache.set(On, Date.now()), re.logger.log(
4045
+ var cr = require("storybook/internal/common"), re = require("storybook/internal/node-logger"), Rn = T(On(), 1);
4046
+ var jn = "telemetry-notification-date", Nn = /* @__PURE__ */ i(async () => {
4047
+ await cr.cache.get(jn, null) || (cr.cache.set(jn, Date.now()), re.logger.log(
4048
4048
  `${re.CLI_COLORS.info("Attention:")} Storybook now collects completely anonymous telemetry regarding usage. This information is used to \
4049
4049
  shape Storybook's roadmap and prioritize features.`
4050
4050
  ), re.logger.log(
@@ -4062,7 +4062,7 @@ function dr(t = "") {
4062
4062
  return t.replace(/\u001B\[[0-9;]*m/g, "");
4063
4063
  }
4064
4064
  i(dr, "removeAnsiEscapeCodes");
4065
- function _e(t, e = ur.default.sep) {
4065
+ function we(t, e = ur.default.sep) {
4066
4066
  if (!t)
4067
4067
  return t;
4068
4068
  let r = process.cwd().split(e);
@@ -4074,7 +4074,7 @@ function _e(t, e = ur.default.sep) {
4074
4074
  }
4075
4075
  return t;
4076
4076
  }
4077
- i(_e, "cleanPaths");
4077
+ i(we, "cleanPaths");
4078
4078
  function Be(t, e = ur.default.sep) {
4079
4079
  try {
4080
4080
  t = {
@@ -4084,7 +4084,7 @@ function Be(t, e = ur.default.sep) {
4084
4084
  cause: t.cause,
4085
4085
  name: t.name
4086
4086
  };
4087
- let r = _e(JSON.stringify(t), e);
4087
+ let r = we(JSON.stringify(t), e);
4088
4088
  return JSON.parse(r);
4089
4089
  } catch (r) {
4090
4090
  return `Sanitization error: ${r?.message}`;
@@ -4162,7 +4162,7 @@ var Fn = [
4162
4162
  };
4163
4163
 
4164
4164
  // ../node_modules/package-manager-detector/dist/detect.mjs
4165
- var hr = T(require("node:fs/promises"), 1), H = T(require("node:path"), 1), qn = T(require("node:process"), 1);
4165
+ var hr = T(require("node:fs/promises"), 1), H = T(require("node:path"), 1), Wn = T(require("node:process"), 1);
4166
4166
  async function mr(t, e) {
4167
4167
  try {
4168
4168
  let r = await hr.default.stat(t);
@@ -4172,19 +4172,19 @@ async function mr(t, e) {
4172
4172
  }
4173
4173
  }
4174
4174
  i(mr, "pathExists");
4175
- function* ja(t = qn.default.cwd()) {
4175
+ function* Aa(t = Wn.default.cwd()) {
4176
4176
  let e = H.default.resolve(t), { root: r } = H.default.parse(e);
4177
4177
  for (; e && e !== r; )
4178
4178
  yield e, e = H.default.dirname(e);
4179
4179
  }
4180
- i(ja, "lookup");
4180
+ i(Aa, "lookup");
4181
4181
  async function Bn(t, e) {
4182
- return !t || !mr(t, "file") ? null : await Oa(t, e);
4182
+ return !t || !mr(t, "file") ? null : await ja(t, e);
4183
4183
  }
4184
4184
  i(Bn, "parsePackageJson");
4185
4185
  async function yr(t = {}) {
4186
4186
  let { cwd: e, strategies: r = ["lockfile", "packageManager-field", "devEngines-field"], onUnknown: n } = t;
4187
- for (let s of ja(e))
4187
+ for (let s of Aa(e))
4188
4188
  for (let o of r)
4189
4189
  switch (o) {
4190
4190
  case "lockfile": {
@@ -4216,7 +4216,7 @@ async function yr(t = {}) {
4216
4216
  return null;
4217
4217
  }
4218
4218
  i(yr, "detect");
4219
- function Aa(t) {
4219
+ function Oa(t) {
4220
4220
  let e = /* @__PURE__ */ i((r) => r?.match(/\d+(\.\d+){0,2}/)?.[0] ?? r, "handelVer");
4221
4221
  if (typeof t.packageManager == "string") {
4222
4222
  let [r, n] = t.packageManager.replace(/^\^/, "").split("@");
@@ -4228,10 +4228,10 @@ function Aa(t) {
4228
4228
  ver: e(t.devEngines.packageManager.version)
4229
4229
  };
4230
4230
  }
4231
- i(Aa, "getNameAndVer");
4232
- async function Oa(t, e) {
4231
+ i(Oa, "getNameAndVer");
4232
+ async function ja(t, e) {
4233
4233
  try {
4234
- let r = JSON.parse(await hr.default.readFile(t, "utf8")), n, s = Aa(r);
4234
+ let r = JSON.parse(await hr.default.readFile(t, "utf8")), n, s = Oa(r);
4235
4235
  if (s) {
4236
4236
  let o = s.name, a = s.ver, c = a;
4237
4237
  return o === "yarn" && a && Number.parseInt(a) > 1 ? (n = "yarn@berry", c = "berry", { name: o, agent: n, version: c }) : o === "pnpm" &&
@@ -4242,7 +4242,7 @@ async function Oa(t, e) {
4242
4242
  }
4243
4243
  return null;
4244
4244
  }
4245
- i(Oa, "handlePackageManager");
4245
+ i(ja, "handlePackageManager");
4246
4246
  function Ra(t) {
4247
4247
  return t.endsWith(".yarn_integrity");
4248
4248
  }
@@ -4252,23 +4252,23 @@ i(Ra, "isMetadataYarnClassic");
4252
4252
  var Nl = require("node:fs/promises"), Zl = require("node:path"), Ml = require("node:process");
4253
4253
 
4254
4254
  // package.json
4255
- var yt = "9.1.0-alpha.6";
4255
+ var yt = "9.1.0-alpha.8";
4256
4256
 
4257
4257
  // src/cli/globalSettings.ts
4258
- var Et = T(require("node:fs/promises"), 1), bs = require("node:os"), Pt = require("node:path"), Ae = T(hs(), 1);
4258
+ var Et = T(require("node:fs/promises"), 1), vs = require("node:os"), Pt = require("node:path"), Oe = T(hs(), 1);
4259
4259
 
4260
4260
  // src/server-errors.ts
4261
- var xs = T(gs(), 1);
4261
+ var bs = T(gs(), 1);
4262
4262
 
4263
4263
  // src/storybook-error.ts
4264
- function vs({
4264
+ function xs({
4265
4265
  code: t,
4266
4266
  category: e
4267
4267
  }) {
4268
4268
  let r = String(t).padStart(4, "0");
4269
4269
  return `SB_${e}_${r}`;
4270
4270
  }
4271
- i(vs, "parseErrorCode");
4271
+ i(xs, "parseErrorCode");
4272
4272
  var It = class t extends Error {
4273
4273
  constructor(r) {
4274
4274
  super(t.getFullMessage(r));
@@ -4285,7 +4285,7 @@ var It = class t extends Error {
4285
4285
  i(this, "StorybookError");
4286
4286
  }
4287
4287
  get fullErrorCode() {
4288
- return vs({ code: this.code, category: this.category });
4288
+ return xs({ code: this.code, category: this.category });
4289
4289
  }
4290
4290
  /** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
4291
4291
  get name() {
@@ -4300,7 +4300,7 @@ var It = class t extends Error {
4300
4300
  message: o
4301
4301
  }) {
4302
4302
  let a;
4303
- return r === !0 ? a = `https://storybook.js.org/error/${vs({ code: n, category: s })}` : typeof r == "string" ? a = r : Array.isArray(r) &&
4303
+ return r === !0 ? a = `https://storybook.js.org/error/${xs({ code: n, category: s })}` : typeof r == "string" ? a = r : Array.isArray(r) &&
4304
4304
  (a = `
4305
4305
  ${r.map((c) => ` - ${c}`).join(`
4306
4306
  `)}`), `${o}${a != null ? `
@@ -4316,7 +4316,7 @@ var St = class extends It {
4316
4316
  super({
4317
4317
  category: "CORE-SERVER",
4318
4318
  code: 1,
4319
- message: xs.dedent`
4319
+ message: bs.dedent`
4320
4320
  Unable to save global settings file to ${r.filePath}
4321
4321
  ${r.error && `Reason: ${r.error}`}`
4322
4322
  });
@@ -4328,25 +4328,25 @@ var St = class extends It {
4328
4328
  };
4329
4329
 
4330
4330
  // src/cli/globalSettings.ts
4331
- var rd = (0, Pt.join)((0, bs.homedir)(), ".storybook", "settings.json"), nd = 1, sd = Ae.z.object({
4332
- version: Ae.z.number(),
4331
+ var rd = (0, Pt.join)((0, vs.homedir)(), ".storybook", "settings.json"), nd = 1, sd = Oe.z.object({
4332
+ version: Oe.z.number(),
4333
4333
  // NOTE: every key (and subkey) below must be optional, for forwards compatibility reasons
4334
4334
  // (we can remove keys once they are deprecated)
4335
- userSince: Ae.z.number().optional(),
4336
- init: Ae.z.object({ skipOnboarding: Ae.z.boolean().optional() }).optional()
4337
- }), je;
4338
- async function ws(t = rd) {
4339
- if (je)
4340
- return je;
4335
+ userSince: Oe.z.number().optional(),
4336
+ init: Oe.z.object({ skipOnboarding: Oe.z.boolean().optional() }).optional()
4337
+ }), Ae;
4338
+ async function _s(t = rd) {
4339
+ if (Ae)
4340
+ return Ae;
4341
4341
  try {
4342
4342
  let e = await Et.default.readFile(t, "utf8"), r = sd.parse(JSON.parse(e));
4343
- je = new Ct(t, r);
4343
+ Ae = new Ct(t, r);
4344
4344
  } catch {
4345
- je = new Ct(t, { version: nd, userSince: Date.now() }), await je.save();
4345
+ Ae = new Ct(t, { version: nd, userSince: Date.now() }), await Ae.save();
4346
4346
  }
4347
- return je;
4347
+ return Ae;
4348
4348
  }
4349
- i(ws, "globalSettings");
4349
+ i(_s, "globalSettings");
4350
4350
  var Ct = class {
4351
4351
  static {
4352
4352
  i(this, "Settings");
@@ -4381,7 +4381,7 @@ var $i = require("node:path");
4381
4381
  var hi = require("node:readline");
4382
4382
 
4383
4383
  // node_modules/execa/index.js
4384
- var ci = require("node:buffer"), di = T(require("node:path"), 1), qt = T(require("node:child_process"), 1), et = T(require("node:process"), 1),
4384
+ var ci = require("node:buffer"), di = T(require("node:path"), 1), Wt = T(require("node:child_process"), 1), et = T(require("node:process"), 1),
4385
4385
  ui = T(uo(), 1);
4386
4386
 
4387
4387
  // ../node_modules/strip-final-newline/index.js
@@ -4396,26 +4396,26 @@ i(Nr, "stripFinalNewline");
4396
4396
  var Ye = T(require("node:process"), 1), Ne = T(require("node:path"), 1), Zr = require("node:url");
4397
4397
 
4398
4398
  // node_modules/path-key/index.js
4399
- function At(t = {}) {
4399
+ function Ot(t = {}) {
4400
4400
  let {
4401
4401
  env: e = process.env,
4402
4402
  platform: r = process.platform
4403
4403
  } = t;
4404
4404
  return r !== "win32" ? "PATH" : Object.keys(e).reverse().find((n) => n.toUpperCase() === "PATH") || "Path";
4405
4405
  }
4406
- i(At, "pathKey");
4406
+ i(Ot, "pathKey");
4407
4407
 
4408
4408
  // node_modules/npm-run-path/index.js
4409
- var Ad = /* @__PURE__ */ i(({
4409
+ var Od = /* @__PURE__ */ i(({
4410
4410
  cwd: t = Ye.default.cwd(),
4411
- path: e = Ye.default.env[At()],
4411
+ path: e = Ye.default.env[Ot()],
4412
4412
  preferLocal: r = !0,
4413
4413
  execPath: n = Ye.default.execPath,
4414
4414
  addExecPath: s = !0
4415
4415
  } = {}) => {
4416
4416
  let o = t instanceof URL ? (0, Zr.fileURLToPath)(t) : t, a = Ne.default.resolve(o), c = [];
4417
- return r && Od(c, a), s && Rd(c, n, a), [...c, e].join(Ne.default.delimiter);
4418
- }, "npmRunPath"), Od = /* @__PURE__ */ i((t, e) => {
4417
+ return r && jd(c, a), s && Rd(c, n, a), [...c, e].join(Ne.default.delimiter);
4418
+ }, "npmRunPath"), jd = /* @__PURE__ */ i((t, e) => {
4419
4419
  let r;
4420
4420
  for (; r !== e; )
4421
4421
  t.push(Ne.default.join(e, "node_modules/.bin")), r = e, e = Ne.default.resolve(e, "..");
@@ -4424,8 +4424,8 @@ var Ad = /* @__PURE__ */ i(({
4424
4424
  t.push(Ne.default.resolve(r, n, ".."));
4425
4425
  }, "applyExecPath"), lo = /* @__PURE__ */ i(({ env: t = Ye.default.env, ...e } = {}) => {
4426
4426
  t = { ...t };
4427
- let r = At({ env: t });
4428
- return e.path = t[r], t[r] = Ad(e), t;
4427
+ let r = Ot({ env: t });
4428
+ return e.path = t[r], t[r] = Od(e), t;
4429
4429
  }, "npmRunPathEnv");
4430
4430
 
4431
4431
  // node_modules/mimic-fn/index.js
@@ -4455,30 +4455,30 @@ function Mr(t, e, { ignoreNonConfigurable: r = !1 } = {}) {
4455
4455
  i(Mr, "mimicFunction");
4456
4456
 
4457
4457
  // node_modules/onetime/index.js
4458
- var Ot = /* @__PURE__ */ new WeakMap(), po = /* @__PURE__ */ i((t, e = {}) => {
4458
+ var jt = /* @__PURE__ */ new WeakMap(), po = /* @__PURE__ */ i((t, e = {}) => {
4459
4459
  if (typeof t != "function")
4460
4460
  throw new TypeError("Expected a function");
4461
4461
  let r, n = 0, s = t.displayName || t.name || "<anonymous>", o = /* @__PURE__ */ i(function(...a) {
4462
- if (Ot.set(o, ++n), n === 1)
4462
+ if (jt.set(o, ++n), n === 1)
4463
4463
  r = t.apply(this, a), t = null;
4464
4464
  else if (e.throw === !0)
4465
4465
  throw new Error(`Function \`${s}\` can only be called once`);
4466
4466
  return r;
4467
4467
  }, "onetime");
4468
- return Mr(o, t), Ot.set(o, n), o;
4468
+ return Mr(o, t), jt.set(o, n), o;
4469
4469
  }, "onetime");
4470
4470
  po.callCount = (t) => {
4471
- if (!Ot.has(t))
4471
+ if (!jt.has(t))
4472
4472
  throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);
4473
- return Ot.get(t);
4473
+ return jt.get(t);
4474
4474
  };
4475
4475
  var fo = po;
4476
4476
 
4477
4477
  // node_modules/execa/lib/error.js
4478
- var bo = T(require("node:process"), 1);
4478
+ var vo = T(require("node:process"), 1);
4479
4479
 
4480
4480
  // node_modules/human-signals/build/src/main.js
4481
- var vo = require("node:os");
4481
+ var xo = require("node:os");
4482
4482
 
4483
4483
  // node_modules/human-signals/build/src/realtime.js
4484
4484
  var mo = /* @__PURE__ */ i(() => {
@@ -4789,8 +4789,8 @@ var Lr = /* @__PURE__ */ i(() => {
4789
4789
  // node_modules/human-signals/build/src/main.js
4790
4790
  var Bd = /* @__PURE__ */ i(() => {
4791
4791
  let t = Lr();
4792
- return Object.fromEntries(t.map(qd));
4793
- }, "getSignalsByName"), qd = /* @__PURE__ */ i(({
4792
+ return Object.fromEntries(t.map(Wd));
4793
+ }, "getSignalsByName"), Wd = /* @__PURE__ */ i(({
4794
4794
  name: t,
4795
4795
  number: e,
4796
4796
  description: r,
@@ -4798,7 +4798,7 @@ var Bd = /* @__PURE__ */ i(() => {
4798
4798
  action: s,
4799
4799
  forced: o,
4800
4800
  standard: a
4801
- }) => [t, { name: t, number: e, description: r, supported: n, action: s, forced: o, standard: a }], "getSignalByName"), xo = Bd(), Wd = /* @__PURE__ */ i(
4801
+ }) => [t, { name: t, number: e, description: r, supported: n, action: s, forced: o, standard: a }], "getSignalByName"), bo = Bd(), qd = /* @__PURE__ */ i(
4802
4802
  () => {
4803
4803
  let t = Lr(), e = Dr + 1, r = Array.from(
4804
4804
  { length: e },
@@ -4822,9 +4822,9 @@ var Bd = /* @__PURE__ */ i(() => {
4822
4822
  }
4823
4823
  };
4824
4824
  }, "getSignalByNumber"), zd = /* @__PURE__ */ i((t, e) => {
4825
- let r = e.find(({ name: n }) => vo.constants.signals[n] === t);
4825
+ let r = e.find(({ name: n }) => xo.constants.signals[n] === t);
4826
4826
  return r !== void 0 ? r : e.find((n) => n.number === t);
4827
- }, "findSignalByNumber"), af = Wd();
4827
+ }, "findSignalByNumber"), af = qd();
4828
4828
 
4829
4829
  // node_modules/execa/lib/error.js
4830
4830
  var Kd = /* @__PURE__ */ i(({ timedOut: t, timeout: e, errorCode: r, signal: n, signalDescription: s, exitCode: o, isCanceled: a }) => t ? `\
@@ -4841,20 +4841,20 @@ o !== void 0 ? `failed with exit code ${o}` : "failed", "getErrorPrefix"), Xe =
4841
4841
  timedOut: l,
4842
4842
  isCanceled: p,
4843
4843
  killed: f,
4844
- parsed: { options: { timeout: v, cwd: k = bo.default.cwd() } }
4844
+ parsed: { options: { timeout: x, cwd: k = vo.default.cwd() } }
4845
4845
  }) => {
4846
4846
  o = o === null ? void 0 : o, s = s === null ? void 0 : s;
4847
- let _ = s === void 0 ? void 0 : xo[s].description, P = n && n.code, j = `Command ${Kd({ timedOut: l, timeout: v, errorCode: P, signal: s, signalDescription: _,
4848
- exitCode: o, isCanceled: p })}: ${a}`, F = Object.prototype.toString.call(n) === "[object Error]", $e = F ? `${j}
4849
- ${n.message}` : j, we = [$e, e, t].filter(Boolean).join(`
4847
+ let w = s === void 0 ? void 0 : bo[s].description, P = n && n.code, A = `Command ${Kd({ timedOut: l, timeout: x, errorCode: P, signal: s, signalDescription: w,
4848
+ exitCode: o, isCanceled: p })}: ${a}`, F = Object.prototype.toString.call(n) === "[object Error]", $e = F ? `${A}
4849
+ ${n.message}` : A, _e = [$e, e, t].filter(Boolean).join(`
4850
4850
  `);
4851
- return F ? (n.originalMessage = n.message, n.message = we) : n = new Error(we), n.shortMessage = $e, n.command = a, n.escapedCommand = c, n.
4852
- exitCode = o, n.signal = s, n.signalDescription = _, n.stdout = t, n.stderr = e, n.cwd = k, r !== void 0 && (n.all = r), "bufferedData" in
4851
+ return F ? (n.originalMessage = n.message, n.message = _e) : n = new Error(_e), n.shortMessage = $e, n.command = a, n.escapedCommand = c, n.
4852
+ exitCode = o, n.signal = s, n.signalDescription = w, n.stdout = t, n.stderr = e, n.cwd = k, r !== void 0 && (n.all = r), "bufferedData" in
4853
4853
  n && delete n.bufferedData, n.failed = !0, n.timedOut = !!l, n.isCanceled = p, n.killed = f && !l, n;
4854
4854
  }, "makeError");
4855
4855
 
4856
4856
  // node_modules/execa/lib/stdio.js
4857
- var Rt = ["stdin", "stdout", "stderr"], Jd = /* @__PURE__ */ i((t) => Rt.some((e) => t[e] !== void 0), "hasAlias"), wo = /* @__PURE__ */ i((t) => {
4857
+ var Rt = ["stdin", "stdout", "stderr"], Jd = /* @__PURE__ */ i((t) => Rt.some((e) => t[e] !== void 0), "hasAlias"), _o = /* @__PURE__ */ i((t) => {
4858
4858
  if (!t)
4859
4859
  return;
4860
4860
  let { stdio: e } = t;
@@ -4874,9 +4874,9 @@ var Rt = ["stdin", "stdout", "stderr"], Jd = /* @__PURE__ */ i((t) => Rt.some((e
4874
4874
  var ko = T(require("node:os"), 1);
4875
4875
 
4876
4876
  // node_modules/signal-exit/dist/mjs/signals.js
4877
- var xe = [];
4878
- xe.push("SIGHUP", "SIGINT", "SIGTERM");
4879
- process.platform !== "win32" && xe.push(
4877
+ var be = [];
4878
+ be.push("SIGHUP", "SIGINT", "SIGTERM");
4879
+ process.platform !== "win32" && be.push(
4880
4880
  "SIGALRM",
4881
4881
  "SIGABRT",
4882
4882
  "SIGVTALRM",
@@ -4891,7 +4891,7 @@ process.platform !== "win32" && xe.push(
4891
4891
  // see #21
4892
4892
  // 'SIGPROF'
4893
4893
  );
4894
- process.platform === "linux" && xe.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
4894
+ process.platform === "linux" && be.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
4895
4895
 
4896
4896
  // node_modules/signal-exit/dist/mjs/index.js
4897
4897
  var Nt = /* @__PURE__ */ i((t) => !!t && typeof t == "object" && typeof t.removeListener == "function" && typeof t.emit == "function" && typeof t.
@@ -4969,7 +4969,7 @@ unction", "processOk"), Ur = Symbol.for("signal-exit emitter"), $r = globalThis,
4969
4969
  // "SIGHUP" throws an `ENOSYS` error on Windows,
4970
4970
  // so use a supported signal instead
4971
4971
  /* c8 ignore start */
4972
- #r = qr.platform === "win32" ? "SIGINT" : "SIGHUP";
4972
+ #r = Wr.platform === "win32" ? "SIGINT" : "SIGHUP";
4973
4973
  /* c8 ignore stop */
4974
4974
  #t = new Vr();
4975
4975
  #e;
@@ -4979,7 +4979,7 @@ unction", "processOk"), Ur = Symbol.for("signal-exit emitter"), $r = globalThis,
4979
4979
  #n = !1;
4980
4980
  constructor(e) {
4981
4981
  super(), this.#e = e, this.#s = {};
4982
- for (let r of xe)
4982
+ for (let r of be)
4983
4983
  this.#s[r] = () => {
4984
4984
  let n = this.#e.listeners(r), { count: s } = this.#t, o = e;
4985
4985
  if (typeof o.__signal_exit_emitter__ == "object" && typeof o.__signal_exit_emitter__.count == "number" && (s += o.__signal_exit_emitter__.
@@ -5004,7 +5004,7 @@ unction", "processOk"), Ur = Symbol.for("signal-exit emitter"), $r = globalThis,
5004
5004
  load() {
5005
5005
  if (!this.#n) {
5006
5006
  this.#n = !0, this.#t.count += 1;
5007
- for (let e of xe)
5007
+ for (let e of be)
5008
5008
  try {
5009
5009
  let r = this.#s[e];
5010
5010
  r && this.#e.on(e, r);
@@ -5014,7 +5014,7 @@ unction", "processOk"), Ur = Symbol.for("signal-exit emitter"), $r = globalThis,
5014
5014
  }
5015
5015
  }
5016
5016
  unload() {
5017
- this.#n && (this.#n = !1, xe.forEach((e) => {
5017
+ this.#n && (this.#n = !1, be.forEach((e) => {
5018
5018
  let r = this.#s[e];
5019
5019
  if (!r)
5020
5020
  throw new Error("Listener not defined for signal: " + e);
@@ -5037,7 +5037,7 @@ unction", "processOk"), Ur = Symbol.for("signal-exit emitter"), $r = globalThis,
5037
5037
  } else
5038
5038
  return n.call(this.#e, e, ...r);
5039
5039
  }
5040
- }, qr = globalThis.process, {
5040
+ }, Wr = globalThis.process, {
5041
5041
  /**
5042
5042
  * Called when the process is exiting, whether via signal, explicit
5043
5043
  * exit, or running out of stuff to do.
@@ -5047,7 +5047,7 @@ unction", "processOk"), Ur = Symbol.for("signal-exit emitter"), $r = globalThis,
5047
5047
  *
5048
5048
  * Returns a function that may be used to unload signal-exit.
5049
5049
  */
5050
- onExit: _o,
5050
+ onExit: wo,
5051
5051
  /**
5052
5052
  * Load the listeners. Likely you never need to call this, unless
5053
5053
  * doing a rather deep integration with signal-exit functionality.
@@ -5063,8 +5063,8 @@ unction", "processOk"), Ur = Symbol.for("signal-exit emitter"), $r = globalThis,
5063
5063
  *
5064
5064
  * @internal
5065
5065
  */
5066
- unload: vf
5067
- } = Yd(Nt(qr) ? new Br(qr) : new Fr());
5066
+ unload: xf
5067
+ } = Yd(Nt(Wr) ? new Br(Wr) : new Fr());
5068
5068
 
5069
5069
  // node_modules/execa/lib/kill.js
5070
5070
  var Xd = 1e3 * 5, To = /* @__PURE__ */ i((t, e = "SIGTERM", r = {}) => {
@@ -5106,7 +5106,7 @@ var Xd = 1e3 * 5, To = /* @__PURE__ */ i((t, e = "SIGTERM", r = {}) => {
5106
5106
  }, "validateTimeout"), Co = /* @__PURE__ */ i(async (t, { cleanup: e, detached: r }, n) => {
5107
5107
  if (!e || r)
5108
5108
  return n;
5109
- let s = _o(() => {
5109
+ let s = wo(() => {
5110
5110
  t.kill();
5111
5111
  });
5112
5112
  return n.finally(() => {
@@ -5115,31 +5115,31 @@ var Xd = 1e3 * 5, To = /* @__PURE__ */ i((t, e = "SIGTERM", r = {}) => {
5115
5115
  }, "setExitHandler");
5116
5116
 
5117
5117
  // node_modules/execa/lib/pipe.js
5118
- var Po = require("node:fs"), jo = require("node:child_process");
5118
+ var Po = require("node:fs"), Ao = require("node:child_process");
5119
5119
 
5120
5120
  // node_modules/is-stream/index.js
5121
5121
  function Mt(t) {
5122
5122
  return t !== null && typeof t == "object" && typeof t.pipe == "function";
5123
5123
  }
5124
5124
  i(Mt, "isStream");
5125
- function Wr(t) {
5125
+ function qr(t) {
5126
5126
  return Mt(t) && t.writable !== !1 && typeof t._write == "function" && typeof t._writableState == "object";
5127
5127
  }
5128
- i(Wr, "isWritableStream");
5128
+ i(qr, "isWritableStream");
5129
5129
 
5130
5130
  // node_modules/execa/lib/pipe.js
5131
- var su = /* @__PURE__ */ i((t) => t instanceof jo.ChildProcess && typeof t.then == "function", "isExecaChildProcess"), Gr = /* @__PURE__ */ i(
5131
+ var su = /* @__PURE__ */ i((t) => t instanceof Ao.ChildProcess && typeof t.then == "function", "isExecaChildProcess"), Gr = /* @__PURE__ */ i(
5132
5132
  (t, e, r) => {
5133
5133
  if (typeof r == "string")
5134
5134
  return t[e].pipe((0, Po.createWriteStream)(r)), t;
5135
- if (Wr(r))
5135
+ if (qr(r))
5136
5136
  return t[e].pipe(r), t;
5137
5137
  if (!su(r))
5138
5138
  throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
5139
- if (!Wr(r.stdin))
5139
+ if (!qr(r.stdin))
5140
5140
  throw new TypeError("The target child process's stdin must be available.");
5141
5141
  return t[e].pipe(r.stdin), r;
5142
- }, "pipeToTarget"), Ao = /* @__PURE__ */ i((t) => {
5142
+ }, "pipeToTarget"), Oo = /* @__PURE__ */ i((t) => {
5143
5143
  t.stdout !== null && (t.pipeStdout = Gr.bind(void 0, t, "stdout")), t.stderr !== null && (t.pipeStderr = Gr.bind(void 0, t, "stderr")), t.
5144
5144
  all !== void 0 && (t.pipeAll = Gr.bind(void 0, t, "all"));
5145
5145
  }, "addPipeMethods");
@@ -5156,7 +5156,7 @@ maxBuffer: l = Number.POSITIVE_INFINITY } = {}) => {
5156
5156
  p.length = 0;
5157
5157
  try {
5158
5158
  for await (let f of t) {
5159
- let v = au(f), k = r[v](f, p);
5159
+ let x = au(f), k = r[x](f, p);
5160
5160
  No({ convertedChunk: k, state: p, getSize: n, truncateChunk: s, addChunk: o, maxBuffer: l });
5161
5161
  }
5162
5162
  return ou({ state: p, convertChunk: r, getSize: n, truncateChunk: s, addChunk: o, getFinalChunk: a, maxBuffer: l }), c(p);
@@ -5169,12 +5169,12 @@ maxBuffer: l = Number.POSITIVE_INFINITY } = {}) => {
5169
5169
  }, "appendFinalChunk"), No = /* @__PURE__ */ i(({ convertedChunk: t, state: e, getSize: r, truncateChunk: n, addChunk: s, maxBuffer: o }) => {
5170
5170
  let a = r(t), c = e.length + a;
5171
5171
  if (c <= o) {
5172
- Oo(t, e, s, c);
5172
+ jo(t, e, s, c);
5173
5173
  return;
5174
5174
  }
5175
5175
  let l = n(t, o - e.length);
5176
- throw l !== void 0 && Oo(l, e, s, o), new Dt();
5177
- }, "appendChunk"), Oo = /* @__PURE__ */ i((t, e, r, n) => {
5176
+ throw l !== void 0 && jo(l, e, s, o), new Dt();
5177
+ }, "appendChunk"), jo = /* @__PURE__ */ i((t, e, r, n) => {
5178
5178
  e.contents = r(t, e, n), e.length = n;
5179
5179
  }, "addNewChunk"), iu = /* @__PURE__ */ i((t) => typeof t == "object" && t !== null && typeof t[Symbol.asyncIterator] == "function", "isAsyn\
5180
5180
  cIterable"), au = /* @__PURE__ */ i((t) => {
@@ -5259,15 +5259,15 @@ var $o = /* @__PURE__ */ i((t) => globalThis.Buffer.from(t), "arrayBufferToNodeB
5259
5259
 
5260
5260
  // node_modules/get-stream/source/string.js
5261
5261
  async function Yr(t, e) {
5262
- return Qe(t, wu, e);
5262
+ return Qe(t, _u, e);
5263
5263
  }
5264
5264
  i(Yr, "getStreamAsString");
5265
5265
  var gu = /* @__PURE__ */ i(() => ({ contents: "", textDecoder: new TextDecoder() }), "initString"), Vt = /* @__PURE__ */ i((t, { textDecoder: e }) => e.
5266
- decode(t, { stream: !0 }), "useTextDecoder"), vu = /* @__PURE__ */ i((t, { contents: e }) => e + t, "addStringChunk"), xu = /* @__PURE__ */ i(
5267
- (t, e) => t.slice(0, e), "truncateStringChunk"), bu = /* @__PURE__ */ i(({ textDecoder: t }) => {
5266
+ decode(t, { stream: !0 }), "useTextDecoder"), xu = /* @__PURE__ */ i((t, { contents: e }) => e + t, "addStringChunk"), bu = /* @__PURE__ */ i(
5267
+ (t, e) => t.slice(0, e), "truncateStringChunk"), vu = /* @__PURE__ */ i(({ textDecoder: t }) => {
5268
5268
  let e = t.decode();
5269
5269
  return e === "" ? void 0 : e;
5270
- }, "getFinalStringChunk"), wu = {
5270
+ }, "getFinalStringChunk"), _u = {
5271
5271
  init: gu,
5272
5272
  convertChunk: {
5273
5273
  string: zr,
@@ -5278,31 +5278,31 @@ decode(t, { stream: !0 }), "useTextDecoder"), vu = /* @__PURE__ */ i((t, { conte
5278
5278
  others: Lt
5279
5279
  },
5280
5280
  getSize: Ut,
5281
- truncateChunk: xu,
5282
- addChunk: vu,
5283
- getFinalChunk: bu,
5281
+ truncateChunk: bu,
5282
+ addChunk: xu,
5283
+ getFinalChunk: vu,
5284
5284
  finalize: Jr
5285
5285
  };
5286
5286
 
5287
5287
  // node_modules/execa/lib/stream.js
5288
- var qo = T(Fo(), 1);
5289
- var Wo = /* @__PURE__ */ i((t) => {
5288
+ var Wo = T(Fo(), 1);
5289
+ var qo = /* @__PURE__ */ i((t) => {
5290
5290
  if (t !== void 0)
5291
5291
  throw new TypeError("The `input` and `inputFile` options cannot be both set.");
5292
- }, "validateInputOptions"), ku = /* @__PURE__ */ i(({ input: t, inputFile: e }) => typeof e != "string" ? t : (Wo(t), (0, Ft.readFileSync)(e)),
5292
+ }, "validateInputOptions"), ku = /* @__PURE__ */ i(({ input: t, inputFile: e }) => typeof e != "string" ? t : (qo(t), (0, Ft.readFileSync)(e)),
5293
5293
  "getInputSync"), Go = /* @__PURE__ */ i((t) => {
5294
5294
  let e = ku(t);
5295
5295
  if (Mt(e))
5296
5296
  throw new TypeError("The `input` option cannot be a stream in sync mode");
5297
5297
  return e;
5298
- }, "handleInputSync"), Tu = /* @__PURE__ */ i(({ input: t, inputFile: e }) => typeof e != "string" ? t : (Wo(t), (0, Ft.createReadStream)(e)),
5298
+ }, "handleInputSync"), Tu = /* @__PURE__ */ i(({ input: t, inputFile: e }) => typeof e != "string" ? t : (qo(t), (0, Ft.createReadStream)(e)),
5299
5299
  "getInput"), zo = /* @__PURE__ */ i((t, e) => {
5300
5300
  let r = Tu(e);
5301
5301
  r !== void 0 && (Mt(r) ? r.pipe(t.stdin) : t.stdin.end(r));
5302
5302
  }, "handleInput"), Ko = /* @__PURE__ */ i((t, { all: e }) => {
5303
5303
  if (!e || !t.stdout && !t.stderr)
5304
5304
  return;
5305
- let r = (0, qo.default)();
5305
+ let r = (0, Wo.default)();
5306
5306
  return t.stdout && r.add(t.stdout), t.stderr && r.add(t.stderr), r;
5307
5307
  }, "makeAllStream"), Xr = /* @__PURE__ */ i(async (t, e) => {
5308
5308
  if (!(!t || e === void 0)) {
@@ -5382,7 +5382,7 @@ d"), rn = /* @__PURE__ */ i((t, e) => ti(t, e).map((r) => Pu(r)).join(" "), "get
5382
5382
  ...t.slice(0, -1),
5383
5383
  `${t.at(-1)}${e[0]}`,
5384
5384
  ...e.slice(1)
5385
- ], "concatTokens"), ju = /* @__PURE__ */ i(({ templates: t, expressions: e, tokens: r, index: n, template: s }) => {
5385
+ ], "concatTokens"), Au = /* @__PURE__ */ i(({ templates: t, expressions: e, tokens: r, index: n, template: s }) => {
5386
5386
  let o = s ?? t.raw[n], a = o.split(ri).filter(Boolean), c = Xo(
5387
5387
  r,
5388
5388
  a,
@@ -5399,29 +5399,29 @@ d"), rn = /* @__PURE__ */ i((t, e) => ti(t, e).map((r) => Pu(r)).join(" "), "get
5399
5399
  }, "parseTemplate"), nn = /* @__PURE__ */ i((t, e) => {
5400
5400
  let r = [];
5401
5401
  for (let [n, s] of t.entries())
5402
- r = ju({ templates: t, expressions: e, tokens: r, index: n, template: s });
5402
+ r = Au({ templates: t, expressions: e, tokens: r, index: n, template: s });
5403
5403
  return r;
5404
5404
  }, "parseTemplates");
5405
5405
 
5406
5406
  // node_modules/execa/lib/verbose.js
5407
5407
  var si = require("node:util"), oi = T(require("node:process"), 1);
5408
- var ii = (0, si.debuglog)("execa").enabled, Bt = /* @__PURE__ */ i((t, e) => String(t).padStart(e, "0"), "padField"), Au = /* @__PURE__ */ i(
5408
+ var ii = (0, si.debuglog)("execa").enabled, Bt = /* @__PURE__ */ i((t, e) => String(t).padStart(e, "0"), "padField"), Ou = /* @__PURE__ */ i(
5409
5409
  () => {
5410
5410
  let t = /* @__PURE__ */ new Date();
5411
5411
  return `${Bt(t.getHours(), 2)}:${Bt(t.getMinutes(), 2)}:${Bt(t.getSeconds(), 2)}.${Bt(t.getMilliseconds(), 3)}`;
5412
5412
  }, "getTimestamp"), sn = /* @__PURE__ */ i((t, { verbose: e }) => {
5413
- e && oi.default.stderr.write(`[${Au()}] ${t}
5413
+ e && oi.default.stderr.write(`[${Ou()}] ${t}
5414
5414
  `);
5415
5415
  }, "logCommand");
5416
5416
 
5417
5417
  // node_modules/execa/index.js
5418
- var Ou = 1e3 * 1e3 * 100, Ru = /* @__PURE__ */ i(({ env: t, extendEnv: e, preferLocal: r, localDir: n, execPath: s }) => {
5418
+ var ju = 1e3 * 1e3 * 100, Ru = /* @__PURE__ */ i(({ env: t, extendEnv: e, preferLocal: r, localDir: n, execPath: s }) => {
5419
5419
  let o = e ? { ...et.default.env, ...t } : t;
5420
5420
  return r ? lo({ env: o, cwd: n, execPath: s }) : o;
5421
5421
  }, "getEnv"), li = /* @__PURE__ */ i((t, e, r = {}) => {
5422
5422
  let n = ui.default._parse(t, e, r);
5423
5423
  return t = n.command, e = n.args, r = n.options, r = {
5424
- maxBuffer: Ou,
5424
+ maxBuffer: ju,
5425
5425
  buffer: !0,
5426
5426
  stripFinalNewline: !0,
5427
5427
  extendEnv: !0,
@@ -5435,7 +5435,7 @@ var Ou = 1e3 * 1e3 * 100, Ru = /* @__PURE__ */ i(({ env: t, extendEnv: e, prefer
5435
5435
  windowsHide: !0,
5436
5436
  verbose: ii,
5437
5437
  ...r
5438
- }, r.env = Ru(r), r.stdio = wo(r), et.default.platform === "win32" && di.default.basename(t, ".exe") === "cmd" && e.unshift("/q"), { file: t,
5438
+ }, r.env = Ru(r), r.stdio = _o(r), et.default.platform === "win32" && di.default.basename(t, ".exe") === "cmd" && e.unshift("/q"), { file: t,
5439
5439
  args: e, options: r, parsed: n };
5440
5440
  }, "handleArguments"), tt = /* @__PURE__ */ i((t, e, r) => typeof e != "string" && !ci.Buffer.isBuffer(e) ? r === void 0 ? void 0 : "" : t.stripFinalNewline ?
5441
5441
  Nr(e) : e, "handleOutput");
@@ -5444,10 +5444,10 @@ function pi(t, e, r) {
5444
5444
  sn(o, n.options), Eo(n.options);
5445
5445
  let a;
5446
5446
  try {
5447
- a = qt.default.spawn(n.file, n.args, n.options);
5448
- } catch (_) {
5449
- let P = new qt.default.ChildProcess(), E = Promise.reject(Xe({
5450
- error: _,
5447
+ a = Wt.default.spawn(n.file, n.args, n.options);
5448
+ } catch (w) {
5449
+ let P = new Wt.default.ChildProcess(), E = Promise.reject(Xe({
5450
+ error: w,
5451
5451
  stdout: "",
5452
5452
  stderr: "",
5453
5453
  all: "",
@@ -5463,11 +5463,11 @@ function pi(t, e, r) {
5463
5463
  let c = Ho(a), l = So(a, n.options, c), p = Co(a, n.options, l), f = { isCanceled: !1 };
5464
5464
  a.kill = To.bind(null, a.kill.bind(a)), a.cancel = Io.bind(null, a, f);
5465
5465
  let k = fo(/* @__PURE__ */ i(async () => {
5466
- let [{ error: _, exitCode: P, signal: E, timedOut: j }, F, $e, we] = await Jo(a, n.options, p), Ve = tt(n.options, F), dt = tt(n.options,
5467
- $e), ut = tt(n.options, we);
5468
- if (_ || P !== 0 || E !== null) {
5469
- let x = Xe({
5470
- error: _,
5466
+ let [{ error: w, exitCode: P, signal: E, timedOut: A }, F, $e, _e] = await Jo(a, n.options, p), Ve = tt(n.options, F), dt = tt(n.options,
5467
+ $e), ut = tt(n.options, _e);
5468
+ if (w || P !== 0 || E !== null) {
5469
+ let b = Xe({
5470
+ error: w,
5471
5471
  exitCode: P,
5472
5472
  signal: E,
5473
5473
  stdout: Ve,
@@ -5476,13 +5476,13 @@ function pi(t, e, r) {
5476
5476
  command: s,
5477
5477
  escapedCommand: o,
5478
5478
  parsed: n,
5479
- timedOut: j,
5479
+ timedOut: A,
5480
5480
  isCanceled: f.isCanceled || (n.options.signal ? n.options.signal.aborted : !1),
5481
5481
  killed: a.killed
5482
5482
  });
5483
5483
  if (!n.options.reject)
5484
- return x;
5485
- throw x;
5484
+ return b;
5485
+ throw b;
5486
5486
  }
5487
5487
  return {
5488
5488
  command: s,
@@ -5497,7 +5497,7 @@ function pi(t, e, r) {
5497
5497
  killed: !1
5498
5498
  };
5499
5499
  }, "handlePromise"));
5500
- return zo(a, n.options), a.all = Ko(a, n.options), Ao(a), en(a, k), a;
5500
+ return zo(a, n.options), a.all = Ko(a, n.options), Oo(a), en(a, k), a;
5501
5501
  }
5502
5502
  i(pi, "execa");
5503
5503
  function Nu(t, e, r) {
@@ -5505,7 +5505,7 @@ function Nu(t, e, r) {
5505
5505
  sn(o, n.options);
5506
5506
  let a = Go(n.options), c;
5507
5507
  try {
5508
- c = qt.default.spawnSync(n.file, n.args, { ...n.options, input: a });
5508
+ c = Wt.default.spawnSync(n.file, n.args, { ...n.options, input: a });
5509
5509
  } catch (f) {
5510
5510
  throw Xe({
5511
5511
  error: f,
@@ -5581,7 +5581,7 @@ function mi(t, e) {
5581
5581
  i(mi, "execaCommand");
5582
5582
 
5583
5583
  // src/telemetry/exec-command-count-lines.ts
5584
- async function Wt(t, e) {
5584
+ async function qt(t, e) {
5585
5585
  let r = mi(t, { shell: !0, buffer: !1, ...e });
5586
5586
  if (!r.stdout)
5587
5587
  throw new Error("Unexpected missing stdout");
@@ -5590,7 +5590,7 @@ async function Wt(t, e) {
5590
5590
  n += 1;
5591
5591
  }), await r, s.close(), n;
5592
5592
  }
5593
- i(Wt, "execCommandCountLines");
5593
+ i(qt, "execCommandCountLines");
5594
5594
 
5595
5595
  // src/common/utils/file-cache.ts
5596
5596
  var rt = require("node:crypto"), M = require("node:fs"), V = require("node:fs/promises"), gi = require("node:os"), Ze = require("node:path");
@@ -5599,7 +5599,7 @@ var Gt = class {
5599
5599
  i(this, "FileSystemCache");
5600
5600
  }
5601
5601
  constructor(e = {}) {
5602
- this.prefix = (e.ns || e.prefix || "") + "-", this.hash_alg = e.hash_alg || "md5", this.cache_dir = e.basePath || (0, Ze.join)((0, gi.tmpdir)(),
5602
+ this.prefix = (e.ns || e.prefix || "") + "-", this.hash_alg = e.hash_alg || "sha256", this.cache_dir = e.basePath || (0, Ze.join)((0, gi.tmpdir)(),
5603
5603
  (0, rt.randomBytes)(15).toString("base64").replace(/\//g, "-")), this.ttl = e.ttl || 0, (0, rt.createHash)(this.hash_alg), (0, M.mkdirSync)(
5604
5604
  this.cache_dir, { recursive: !0 });
5605
5605
  }
@@ -5692,7 +5692,7 @@ i(an, "createFileSystemCache");
5692
5692
  var mn = require("node:path");
5693
5693
 
5694
5694
  // node_modules/find-cache-dir/index.js
5695
- var Ri = T(require("node:process"), 1), De = T(require("node:path"), 1), ot = T(require("node:fs"), 1), Ni = T(xi(), 1);
5695
+ var Ri = T(require("node:process"), 1), De = T(require("node:path"), 1), ot = T(require("node:fs"), 1), Ni = T(bi(), 1);
5696
5696
 
5697
5697
  // ../node_modules/pkg-dir/index.js
5698
5698
  var Pi = T(require("node:path"), 1);
@@ -5701,10 +5701,10 @@ var Pi = T(require("node:path"), 1);
5701
5701
  var st = T(require("node:path"), 1), Ei = require("node:url");
5702
5702
 
5703
5703
  // ../node_modules/locate-path/index.js
5704
- var un = T(require("node:process"), 1), ln = T(require("node:path"), 1), Me = T(require("node:fs"), 1), wi = require("node:url");
5704
+ var un = T(require("node:process"), 1), ln = T(require("node:path"), 1), Me = T(require("node:fs"), 1), _i = require("node:url");
5705
5705
 
5706
5706
  // ../node_modules/locate-path/node_modules/p-limit/index.js
5707
- bi();
5707
+ vi();
5708
5708
  function zt(t) {
5709
5709
  if (!((Number.isInteger(t) || t === Number.POSITIVE_INFINITY) && t > 0))
5710
5710
  throw new TypeError("Expected `concurrency` to be a number from 1 and up");
@@ -5770,16 +5770,16 @@ async function dn(t, e, {
5770
5770
  i(dn, "pLocate");
5771
5771
 
5772
5772
  // ../node_modules/locate-path/index.js
5773
- var _i = {
5773
+ var wi = {
5774
5774
  directory: "isDirectory",
5775
5775
  file: "isFile"
5776
5776
  };
5777
5777
  function ki(t) {
5778
- if (!Object.hasOwnProperty.call(_i, t))
5778
+ if (!Object.hasOwnProperty.call(wi, t))
5779
5779
  throw new Error(`Invalid type specified: ${t}`);
5780
5780
  }
5781
5781
  i(ki, "checkType");
5782
- var Ti = /* @__PURE__ */ i((t, e) => e[_i[t]](), "matchType"), Ii = /* @__PURE__ */ i((t) => t instanceof URL ? (0, wi.fileURLToPath)(t) : t,
5782
+ var Ti = /* @__PURE__ */ i((t, e) => e[wi[t]](), "matchType"), Ii = /* @__PURE__ */ i((t) => t instanceof URL ? (0, _i.fileURLToPath)(t) : t,
5783
5783
  "toPath");
5784
5784
  async function Jt(t, {
5785
5785
  cwd: e = un.default.cwd(),
@@ -5849,41 +5849,41 @@ function Ci(t, e = {}) {
5849
5849
  i(Ci, "findUpSync");
5850
5850
 
5851
5851
  // ../node_modules/pkg-dir/index.js
5852
- function ji({ cwd: t } = {}) {
5852
+ function Ai({ cwd: t } = {}) {
5853
5853
  let e = Ci("package.json", { cwd: t });
5854
5854
  return e && Pi.default.dirname(e);
5855
5855
  }
5856
- i(ji, "packageDirectorySync");
5856
+ i(Ai, "packageDirectorySync");
5857
5857
 
5858
5858
  // node_modules/find-cache-dir/index.js
5859
- var { env: pn, cwd: Bu } = Ri.default, Ai = /* @__PURE__ */ i((t) => {
5859
+ var { env: pn, cwd: Bu } = Ri.default, Oi = /* @__PURE__ */ i((t) => {
5860
5860
  try {
5861
5861
  return ot.default.accessSync(t, ot.default.constants.W_OK), !0;
5862
5862
  } catch {
5863
5863
  return !1;
5864
5864
  }
5865
5865
  }, "isWritable");
5866
- function Oi(t, e) {
5866
+ function ji(t, e) {
5867
5867
  return e.create && ot.default.mkdirSync(t, { recursive: !0 }), t;
5868
5868
  }
5869
- i(Oi, "useDirectory");
5870
- function qu(t) {
5869
+ i(ji, "useDirectory");
5870
+ function Wu(t) {
5871
5871
  let e = De.default.join(t, "node_modules");
5872
- if (!(!Ai(e) && (ot.default.existsSync(e) || !Ai(De.default.join(t)))))
5872
+ if (!(!Oi(e) && (ot.default.existsSync(e) || !Oi(De.default.join(t)))))
5873
5873
  return e;
5874
5874
  }
5875
- i(qu, "getNodeModuleDirectory");
5875
+ i(Wu, "getNodeModuleDirectory");
5876
5876
  function fn(t = {}) {
5877
5877
  if (pn.CACHE_DIR && !["true", "false", "1", "0"].includes(pn.CACHE_DIR))
5878
- return Oi(De.default.join(pn.CACHE_DIR, t.name), t);
5878
+ return ji(De.default.join(pn.CACHE_DIR, t.name), t);
5879
5879
  let { cwd: e = Bu(), files: r } = t;
5880
5880
  if (r) {
5881
5881
  if (!Array.isArray(r))
5882
5882
  throw new TypeError(`Expected \`files\` option to be an array, got \`${typeof r}\`.`);
5883
5883
  e = (0, Ni.default)(r.map((s) => De.default.resolve(e, s)));
5884
5884
  }
5885
- if (e = ji({ cwd: e }), !(!e || !qu(e)))
5886
- return Oi(De.default.join(e, "node_modules", ".cache", t.name), t);
5885
+ if (e = Ai({ cwd: e }), !(!e || !Wu(e)))
5886
+ return ji(De.default.join(e, "node_modules", ".cache", t.name), t);
5887
5887
  }
5888
5888
  i(fn, "findCacheDirectory");
5889
5889
 
@@ -5908,7 +5908,7 @@ i(hn, "toPath");
5908
5908
  var Di = T(require("node:fs"), 1);
5909
5909
 
5910
5910
  // ../node_modules/find-up/index.js
5911
- var Wu = Symbol("findUpStop");
5911
+ var qu = Symbol("findUpStop");
5912
5912
  async function Gu(t, e = {}) {
5913
5913
  let r = Le.default.resolve(hn(e.cwd) ?? ""), { root: n } = Le.default.parse(r), s = Le.default.resolve(r, hn(e.stopAt ?? n)), o = e.limit ??
5914
5914
  Number.POSITIVE_INFINITY, a = [t].flat(), c = /* @__PURE__ */ i(async (p) => {
@@ -5919,7 +5919,7 @@ async function Gu(t, e = {}) {
5919
5919
  }, "runMatcher"), l = [];
5920
5920
  for (; ; ) {
5921
5921
  let p = await c({ ...e, cwd: r });
5922
- if (p === Wu || (p && l.push(Le.default.resolve(r, p)), r === s || l.length >= o))
5922
+ if (p === qu || (p && l.push(Le.default.resolve(r, p)), r === s || l.length >= o))
5923
5923
  break;
5924
5924
  r = Le.default.dirname(r);
5925
5925
  }
@@ -5952,7 +5952,7 @@ var zu = ["page", "screen"], Ku = ["js", "jsx", "ts", "tsx"], Ju = /* @__PURE__
5952
5952
  );
5953
5953
  try {
5954
5954
  let n = `git ls-files -- ${r.join(" ")}`;
5955
- return await Wt(n);
5955
+ return await qt(n);
5956
5956
  } catch {
5957
5957
  return;
5958
5958
  }
@@ -5972,7 +5972,7 @@ i(Fi, "getChromaticVersionSpecifier");
5972
5972
  var Gi = require("node:path"), zi = require("storybook/internal/common");
5973
5973
 
5974
5974
  // src/telemetry/package-json.ts
5975
- var Bi = require("node:fs/promises"), qi = require("node:path");
5975
+ var Bi = require("node:fs/promises"), Wi = require("node:path");
5976
5976
  var yn = /* @__PURE__ */ i(async (t) => {
5977
5977
  let e = Object.keys(t);
5978
5978
  return Promise.all(e.map(Xt));
@@ -5992,7 +5992,7 @@ var yn = /* @__PURE__ */ i(async (t) => {
5992
5992
  }, "getActualPackageVersion"), gn = /* @__PURE__ */ i(async (t) => {
5993
5993
  try {
5994
5994
  let e = await Li("package.json", { cwd: require.resolve(t) });
5995
- return e || (e = require.resolve((0, qi.join)(t, "package.json"), {
5995
+ return e || (e = require.resolve((0, Wi.join)(t, "package.json"), {
5996
5996
  paths: [process.cwd()]
5997
5997
  })), JSON.parse(await (0, Bi.readFile)(e, { encoding: "utf8" }));
5998
5998
  } catch {
@@ -6013,7 +6013,7 @@ var Hu = [
6013
6013
  "angular",
6014
6014
  "ember"
6015
6015
  ], Yu = ["builder-webpack5", "builder-vite"];
6016
- function Wi(t, e) {
6016
+ function qi(t, e) {
6017
6017
  let { name: r = "", version: n, dependencies: s, devDependencies: o, peerDependencies: a } = t, c = {
6018
6018
  // We include the framework itself because it may be a renderer too (e.g. angular)
6019
6019
  [r]: n,
@@ -6023,10 +6023,10 @@ function Wi(t, e) {
6023
6023
  };
6024
6024
  return e.map((l) => `@storybook/${l}`).find((l) => c[l]);
6025
6025
  }
6026
- i(Wi, "findMatchingPackage");
6026
+ i(qi, "findMatchingPackage");
6027
6027
  var Xu = /* @__PURE__ */ i((t) => {
6028
6028
  let e = (0, Gi.normalize)(t).replace(new RegExp(/\\/, "g"), "/");
6029
- return Object.keys(zi.frameworkPackages).find((n) => e.endsWith(n)) || _e(t).replace(/.*node_modules[\\/]/, "");
6029
+ return Object.keys(zi.frameworkPackages).find((n) => e.endsWith(n)) || we(t).replace(/.*node_modules[\\/]/, "");
6030
6030
  }, "getFrameworkPackageName");
6031
6031
  async function Ki(t) {
6032
6032
  if (!t?.framework)
@@ -6037,7 +6037,7 @@ async function Ki(t) {
6037
6037
  let r = await gn(e);
6038
6038
  if (!r)
6039
6039
  return {};
6040
- let n = Wi(r, Yu), s = Wi(r, Hu), o = Xu(e), a = typeof t.framework == "object" ? t.framework.options : {};
6040
+ let n = qi(r, Yu), s = qi(r, Hu), o = Xu(e), a = typeof t.framework == "object" ? t.framework.options : {};
6041
6041
  return {
6042
6042
  framework: {
6043
6043
  name: o,
@@ -6107,7 +6107,7 @@ var Hi = {
6107
6107
  var el = /* @__PURE__ */ i(async (t) => {
6108
6108
  try {
6109
6109
  let e = "git grep -l composeStor" + (t ? ` -- ${t}` : "");
6110
- return await Wt(e);
6110
+ return await qt(e);
6111
6111
  } catch (e) {
6112
6112
  return e.exitCode === 1 ? 0 : void 0;
6113
6113
  }
@@ -6117,7 +6117,7 @@ var el = /* @__PURE__ */ i(async (t) => {
6117
6117
  ), "getPortableStoriesFileCount");
6118
6118
 
6119
6119
  // src/telemetry/storybook-metadata.ts
6120
- var vn = {
6120
+ var xn = {
6121
6121
  next: "Next",
6122
6122
  "react-scripts": "CRA",
6123
6123
  gatsby: "Gatsby",
@@ -6125,14 +6125,14 @@ var vn = {
6125
6125
  "@nrwl/storybook": "nx",
6126
6126
  "@vue/cli-service": "vue-cli",
6127
6127
  "@sveltejs/kit": "sveltekit"
6128
- }, xn = /* @__PURE__ */ i((t) => _e(t).replace(/\/dist\/.*/, "").replace(/\.[mc]?[tj]?s[x]?$/, "").replace(/\/register$/, "").replace(/\/manager$/,
6128
+ }, bn = /* @__PURE__ */ i((t) => we(t).replace(/\/dist\/.*/, "").replace(/\.[mc]?[tj]?s[x]?$/, "").replace(/\/register$/, "").replace(/\/manager$/,
6129
6129
  "").replace(/\/preset$/, ""), "sanitizeAddonName"), ta = /* @__PURE__ */ i(async ({
6130
6130
  packageJsonPath: t,
6131
6131
  packageJson: e,
6132
6132
  mainConfig: r,
6133
6133
  configDir: n
6134
6134
  }) => {
6135
- let s = await ws(), o = {
6135
+ let s = await _s(), o = {
6136
6136
  generatedAt: (/* @__PURE__ */ new Date()).getTime(),
6137
6137
  userSince: s.value.userSince,
6138
6138
  hasCustomBabel: !1,
@@ -6144,13 +6144,13 @@ var vn = {
6144
6144
  ...e?.dependencies,
6145
6145
  ...e?.devDependencies,
6146
6146
  ...e?.peerDependencies
6147
- }, c = Object.keys(a).find((x) => !!vn[x]);
6147
+ }, c = Object.keys(a).find((b) => !!xn[b]);
6148
6148
  if (c) {
6149
- let { version: x } = await Xt(c);
6149
+ let { version: b } = await Xt(c);
6150
6150
  o.metaFramework = {
6151
- name: vn[c],
6151
+ name: xn[c],
6152
6152
  packageName: c,
6153
- version: x || "unknown"
6153
+ version: b || "unknown"
6154
6154
  };
6155
6155
  }
6156
6156
  let l = [
@@ -6173,69 +6173,69 @@ var vn = {
6173
6173
  "sinon",
6174
6174
  "chromatic"
6175
6175
  ], p = Object.keys(a).filter(
6176
- (x) => l.find((A) => x.includes(A))
6176
+ (b) => l.find((O) => b.includes(O))
6177
6177
  );
6178
6178
  o.testPackages = Object.fromEntries(
6179
6179
  await Promise.all(
6180
- p.map(async (x) => [x, (await Xt(x))?.version])
6180
+ p.map(async (b) => [b, (await Xt(b))?.version])
6181
6181
  )
6182
6182
  ), o.hasRouterPackage = Ji(e);
6183
6183
  let f = Yi();
6184
6184
  f && (o.monorepo = f);
6185
6185
  try {
6186
- let x = await yr({ cwd: (0, G.getProjectRoot)() });
6187
- x && (o.packageManager = {
6188
- type: x.name,
6189
- version: x.version,
6190
- agent: x.agent
6186
+ let b = await yr({ cwd: (0, G.getProjectRoot)() });
6187
+ b && (o.packageManager = {
6188
+ type: b.name,
6189
+ version: b.version,
6190
+ agent: b.agent
6191
6191
  });
6192
6192
  } catch {
6193
6193
  }
6194
- let v = a.typescript ? "typescript" : "javascript";
6194
+ let x = a.typescript ? "typescript" : "javascript";
6195
6195
  if (!r)
6196
6196
  return {
6197
6197
  ...o,
6198
6198
  storybookVersionSpecifier: G.versions.storybook,
6199
- language: v
6199
+ language: x
6200
6200
  };
6201
6201
  o.hasCustomBabel = !!r.babel, o.hasCustomWebpack = !!r.webpackFinal, o.hasStaticDirs = !!r.staticDirs, typeof r.typescript == "object" && (o.
6202
6202
  typescriptOptions = r.typescript);
6203
6203
  let k = await Ki(r);
6204
6204
  typeof r.refs == "object" && (o.refCount = Object.keys(r.refs).length), typeof r.features == "object" && (o.features = r.features);
6205
- let _ = {};
6206
- r.addons && r.addons.forEach((x) => {
6207
- let A, lt;
6208
- typeof x == "string" ? A = xn(x) : (x.name.includes("addon-essentials") && (lt = x.options), A = xn(x.name)), _[A] = {
6205
+ let w = {};
6206
+ r.addons && r.addons.forEach((b) => {
6207
+ let O, lt;
6208
+ typeof b == "string" ? O = bn(b) : (b.name.includes("addon-essentials") && (lt = b.options), O = bn(b.name)), w[O] = {
6209
6209
  options: lt,
6210
6210
  version: void 0
6211
6211
  };
6212
6212
  });
6213
6213
  let P = Fi(e);
6214
- P && (_.chromatic = {
6214
+ P && (w.chromatic = {
6215
6215
  version: void 0,
6216
6216
  versionSpecifier: P,
6217
6217
  options: void 0
6218
- }), (await yn(_)).forEach(({ name: x, version: A }) => {
6219
- _[x] = _[x] || {
6220
- name: x,
6221
- version: A
6222
- }, _[x].version = A || void 0;
6218
+ }), (await yn(w)).forEach(({ name: b, version: O }) => {
6219
+ w[b] = w[b] || {
6220
+ name: b,
6221
+ version: O
6222
+ }, w[b].version = O || void 0;
6223
6223
  });
6224
- let j = Object.keys(_), F = Object.keys(a).filter((x) => x.includes("storybook") && !j.includes(x)).reduce((x, A) => ({
6225
- ...x,
6226
- [A]: { version: void 0 }
6224
+ let A = Object.keys(w), F = Object.keys(a).filter((b) => b.includes("storybook") && !A.includes(b)).reduce((b, O) => ({
6225
+ ...b,
6226
+ [O]: { version: void 0 }
6227
6227
  }), {});
6228
- (await yn(F)).forEach(({ name: x, version: A }) => {
6229
- F[x] = F[x] || {
6230
- name: x,
6231
- version: A
6232
- }, F[x].version = A || void 0;
6228
+ (await yn(F)).forEach(({ name: b, version: O }) => {
6229
+ F[b] = F[b] || {
6230
+ name: b,
6231
+ version: O
6232
+ }, F[b].version = O || void 0;
6233
6233
  });
6234
- let we = !!a["eslint-plugin-storybook"], Ve = (0, G.getStorybookInfo)(n);
6234
+ let _e = !!a["eslint-plugin-storybook"], Ve = (0, G.getStorybookInfo)(n);
6235
6235
  try {
6236
- let { previewConfigPath: x } = Ve;
6237
- if (x) {
6238
- let A = await (0, ea.readConfig)(x), lt = !!(A.getFieldNode(["globals"]) || A.getFieldNode(["globalTypes"]));
6236
+ let { previewConfigPath: b } = Ve;
6237
+ if (b) {
6238
+ let O = await (0, ea.readConfig)(b), lt = !!(O.getFieldNode(["globals"]) || O.getFieldNode(["globalTypes"]));
6239
6239
  o.preview = { ...o.preview, usesGlobals: lt };
6240
6240
  }
6241
6241
  } catch {
@@ -6248,10 +6248,10 @@ var vn = {
6248
6248
  applicationFileCount: ut,
6249
6249
  storybookVersion: yt,
6250
6250
  storybookVersionSpecifier: Ve.version,
6251
- language: v,
6251
+ language: x,
6252
6252
  storybookPackages: F,
6253
- addons: _,
6254
- hasStorybookEslint: we
6253
+ addons: w,
6254
+ hasStorybookEslint: _e
6255
6255
  };
6256
6256
  }, "computeStorybookMetadata");
6257
6257
  async function tl() {
@@ -6265,7 +6265,7 @@ async function tl() {
6265
6265
  };
6266
6266
  }
6267
6267
  i(tl, "getPackageJsonDetails");
6268
- var tr, bn = /* @__PURE__ */ i(async (t) => {
6268
+ var tr, vn = /* @__PURE__ */ i(async (t) => {
6269
6269
  if (tr)
6270
6270
  return tr;
6271
6271
  let { packageJson: e, packageJsonPath: r } = await tl(), n = (t || (0, G.getStorybookConfiguration)(
@@ -6286,21 +6286,21 @@ var tr, bn = /* @__PURE__ */ i(async (t) => {
6286
6286
  var ma = T(require("node:os"), 1), ha = T(na(), 1);
6287
6287
 
6288
6288
  // ../node_modules/nanoid/index.js
6289
- var wn = require("crypto");
6289
+ var _n = require("crypto");
6290
6290
 
6291
6291
  // ../node_modules/nanoid/url-alphabet/index.js
6292
6292
  var sa = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
6293
6293
 
6294
6294
  // ../node_modules/nanoid/index.js
6295
- var rl = 128, be, Ue, nl = /* @__PURE__ */ i((t) => {
6296
- !be || be.length < t ? (be = Buffer.allocUnsafe(t * rl), (0, wn.randomFillSync)(be), Ue = 0) : Ue + t > be.length && ((0, wn.randomFillSync)(
6297
- be), Ue = 0), Ue += t;
6295
+ var rl = 128, ve, Ue, nl = /* @__PURE__ */ i((t) => {
6296
+ !ve || ve.length < t ? (ve = Buffer.allocUnsafe(t * rl), (0, _n.randomFillSync)(ve), Ue = 0) : Ue + t > ve.length && ((0, _n.randomFillSync)(
6297
+ ve), Ue = 0), Ue += t;
6298
6298
  }, "fillPool");
6299
6299
  var at = /* @__PURE__ */ i((t = 21) => {
6300
6300
  nl(t -= 0);
6301
6301
  let e = "";
6302
6302
  for (let r = Ue - t; r < Ue; r++)
6303
- e += sa[be[r] & 63];
6303
+ e += sa[ve[r] & 63];
6304
6304
  return e;
6305
6305
  }, "nanoid");
6306
6306
 
@@ -6341,10 +6341,10 @@ var sr, da = /* @__PURE__ */ i(() => {
6341
6341
 
6342
6342
  // src/telemetry/event-cache.ts
6343
6343
  var or = require("storybook/internal/common");
6344
- var _n = Promise.resolve(), il = /* @__PURE__ */ i(async (t, e) => {
6344
+ var wn = Promise.resolve(), il = /* @__PURE__ */ i(async (t, e) => {
6345
6345
  let r = await or.cache.get("lastEvents") || {};
6346
6346
  r[t] = { body: e, timestamp: Date.now() }, await or.cache.set("lastEvents", r);
6347
- }, "setHelper"), la = /* @__PURE__ */ i(async (t, e) => (await _n, _n = il(t, e), _n), "set");
6347
+ }, "setHelper"), la = /* @__PURE__ */ i(async (t, e) => (await wn, wn = il(t, e), wn), "set");
6348
6348
  var al = /* @__PURE__ */ i((t) => {
6349
6349
  let { body: e, timestamp: r } = t;
6350
6350
  return {
@@ -6432,7 +6432,7 @@ sExampleStoryId"), yl = /* @__PURE__ */ i(async (t, e = {}, r = {}) => {
6432
6432
  payload: e
6433
6433
  };
6434
6434
  try {
6435
- r?.stripMetadata || (n.metadata = await bn(r?.configDir));
6435
+ r?.stripMetadata || (n.metadata = await vn(r?.configDir));
6436
6436
  } catch (s) {
6437
6437
  n.payload.metadataErrorMessage = Be(s).message, r?.enableCrashReports && (n.payload.metadataError = Be(s));
6438
6438
  } finally {