storybook 9.0.0-beta.8 → 9.0.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- var kn = Object.create;
1
+ var Kn = Object.create;
2
2
  var hr = Object.defineProperty;
3
- var jn = Object.getOwnPropertyDescriptor;
4
- var Mn = Object.getOwnPropertyNames;
5
- var _n = Object.getPrototypeOf, Ln = Object.prototype.hasOwnProperty;
3
+ var Xn = Object.getOwnPropertyDescriptor;
4
+ var Jn = Object.getOwnPropertyNames;
5
+ var Qn = Object.getPrototypeOf, Zn = Object.prototype.hasOwnProperty;
6
6
  var n = (r, e) => hr(r, "name", { value: e, configurable: !0 }), Ee = /* @__PURE__ */ ((r) => typeof require < "u" ? require : typeof Proxy <
7
7
  "u" ? new Proxy(r, {
8
8
  get: (e, t) => (typeof require < "u" ? require : e)[t]
@@ -11,13 +11,13 @@ var n = (r, e) => hr(r, "name", { value: e, configurable: !0 }), Ee = /* @__PURE
11
11
  throw Error('Dynamic require of "' + r + '" is not supported');
12
12
  });
13
13
  var O = (r, e) => () => (e || r((e = { exports: {} }).exports, e), e.exports);
14
- var Nn = (r, e, t, o) => {
14
+ var es = (r, e, t, o) => {
15
15
  if (e && typeof e == "object" || typeof e == "function")
16
- for (let s of Mn(e))
17
- !Ln.call(r, s) && s !== t && hr(r, s, { get: () => e[s], enumerable: !(o = jn(e, s)) || o.enumerable });
16
+ for (let s of Jn(e))
17
+ !Zn.call(r, s) && s !== t && hr(r, s, { get: () => e[s], enumerable: !(o = Xn(e, s)) || o.enumerable });
18
18
  return r;
19
19
  };
20
- var ue = (r, e, t) => (t = r != null ? kn(_n(r)) : {}, Nn(
20
+ var ue = (r, e, t) => (t = r != null ? Kn(Qn(r)) : {}, es(
21
21
  // If the importer is in node compatibility mode or this is not an ESM
22
22
  // file that has been converted to a CommonJS file using a Babel-
23
23
  // compatible transform (i.e. "__esModule" has not been set), then set
@@ -27,10 +27,10 @@ var ue = (r, e, t) => (t = r != null ? kn(_n(r)) : {}, Nn(
27
27
  ));
28
28
 
29
29
  // ../node_modules/memoizerific/memoizerific.js
30
- var Or = O((zt, Ir) => {
30
+ var kr = O((oo, Dr) => {
31
31
  (function(r) {
32
- if (typeof zt == "object" && typeof Ir < "u")
33
- Ir.exports = r();
32
+ if (typeof oo == "object" && typeof Dr < "u")
33
+ Dr.exports = r();
34
34
  else if (typeof define == "function" && define.amd)
35
35
  define([], r);
36
36
  else {
@@ -160,11 +160,11 @@ var Or = O((zt, Ir) => {
160
160
  });
161
161
 
162
162
  // ../node_modules/picoquery/lib/string-util.js
163
- var Wr = O((Vr) => {
163
+ var st = O((nt) => {
164
164
  "use strict";
165
- Object.defineProperty(Vr, "__esModule", { value: !0 });
166
- Vr.encodeString = Hi;
167
- var z = Array.from({ length: 256 }, (r, e) => "%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase()), Ui = new Int8Array([
165
+ Object.defineProperty(nt, "__esModule", { value: !0 });
166
+ nt.encodeString = ia;
167
+ var z = Array.from({ length: 256 }, (r, e) => "%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase()), sa = new Int8Array([
168
168
  0,
169
169
  0,
170
170
  0,
@@ -294,7 +294,7 @@ var Wr = O((Vr) => {
294
294
  1,
295
295
  0
296
296
  ]);
297
- function Hi(r) {
297
+ function ia(r) {
298
298
  let e = r.length;
299
299
  if (e === 0)
300
300
  return "";
@@ -302,7 +302,7 @@ var Wr = O((Vr) => {
302
302
  e: for (; s < e; s++) {
303
303
  let i = r.charCodeAt(s);
304
304
  for (; i < 128; ) {
305
- if (Ui[i] !== 1 && (o < s && (t += r.slice(o, s)), o = s + 1, t += z[i]), ++s === e)
305
+ if (sa[i] !== 1 && (o < s && (t += r.slice(o, s)), o = s + 1, t += z[i]), ++s === e)
306
306
  break e;
307
307
  i = r.charCodeAt(s);
308
308
  }
@@ -321,7 +321,7 @@ var Wr = O((Vr) => {
321
321
  }
322
322
  return o === 0 ? r : o < e ? t + r.slice(o) : t;
323
323
  }
324
- n(Hi, "encodeString");
324
+ n(ia, "encodeString");
325
325
  });
326
326
 
327
327
  // ../node_modules/picoquery/lib/shared.js
@@ -329,80 +329,80 @@ var tr = O((G) => {
329
329
  "use strict";
330
330
  Object.defineProperty(G, "__esModule", { value: !0 });
331
331
  G.defaultOptions = G.defaultShouldSerializeObject = G.defaultValueSerializer = void 0;
332
- var $r = Wr(), Vi = /* @__PURE__ */ n((r) => {
332
+ var it = st(), aa = /* @__PURE__ */ n((r) => {
333
333
  switch (typeof r) {
334
334
  case "string":
335
- return (0, $r.encodeString)(r);
335
+ return (0, it.encodeString)(r);
336
336
  case "bigint":
337
337
  case "boolean":
338
338
  return "" + r;
339
339
  case "number":
340
340
  if (Number.isFinite(r))
341
- return r < 1e21 ? "" + r : (0, $r.encodeString)("" + r);
341
+ return r < 1e21 ? "" + r : (0, it.encodeString)("" + r);
342
342
  break;
343
343
  }
344
- return r instanceof Date ? (0, $r.encodeString)(r.toISOString()) : "";
344
+ return r instanceof Date ? (0, it.encodeString)(r.toISOString()) : "";
345
345
  }, "defaultValueSerializer");
346
- G.defaultValueSerializer = Vi;
347
- var Wi = /* @__PURE__ */ n((r) => r instanceof Date, "defaultShouldSerializeObject");
348
- G.defaultShouldSerializeObject = Wi;
349
- var Fo = /* @__PURE__ */ n((r) => r, "identityFunc");
346
+ G.defaultValueSerializer = aa;
347
+ var la = /* @__PURE__ */ n((r) => r instanceof Date, "defaultShouldSerializeObject");
348
+ G.defaultShouldSerializeObject = la;
349
+ var Vo = /* @__PURE__ */ n((r) => r, "identityFunc");
350
350
  G.defaultOptions = {
351
351
  nesting: !0,
352
352
  nestingSyntax: "dot",
353
353
  arrayRepeat: !1,
354
354
  arrayRepeatSyntax: "repeat",
355
355
  delimiter: 38,
356
- valueDeserializer: Fo,
356
+ valueDeserializer: Vo,
357
357
  valueSerializer: G.defaultValueSerializer,
358
- keyDeserializer: Fo,
358
+ keyDeserializer: Vo,
359
359
  shouldSerializeObject: G.defaultShouldSerializeObject
360
360
  };
361
361
  });
362
362
 
363
363
  // ../node_modules/picoquery/lib/object-util.js
364
- var Yr = O((or) => {
364
+ var at = O((or) => {
365
365
  "use strict";
366
366
  Object.defineProperty(or, "__esModule", { value: !0 });
367
- or.getDeepObject = Ki;
368
- or.stringifyObject = Io;
369
- var ae = tr(), $i = Wr();
370
- function Yi(r) {
367
+ or.getDeepObject = pa;
368
+ or.stringifyObject = Wo;
369
+ var ae = tr(), ca = st();
370
+ function da(r) {
371
371
  return r === "__proto__" || r === "constructor" || r === "prototype";
372
372
  }
373
- n(Yi, "isPrototypeKey");
374
- function Ki(r, e, t, o, s) {
375
- if (Yi(e))
373
+ n(da, "isPrototypeKey");
374
+ function pa(r, e, t, o, s) {
375
+ if (da(e))
376
376
  return r;
377
377
  let i = r[e];
378
378
  return typeof i == "object" && i !== null ? i : !o && (s || typeof t == "number" || typeof t == "string" && t * 0 === 0 && t.indexOf(".") ===
379
379
  -1) ? r[e] = [] : r[e] = {};
380
380
  }
381
- n(Ki, "getDeepObject");
382
- var Xi = 20, Ji = "[]", Qi = "[", Zi = "]", ea = ".";
383
- function Io(r, e, t = 0, o, s) {
381
+ n(pa, "getDeepObject");
382
+ var ua = 20, fa = "[]", ya = "[", ma = "]", ha = ".";
383
+ function Wo(r, e, t = 0, o, s) {
384
384
  let { nestingSyntax: i = ae.defaultOptions.nestingSyntax, arrayRepeat: a = ae.defaultOptions.arrayRepeat, arrayRepeatSyntax: l = ae.defaultOptions.
385
385
  arrayRepeatSyntax, nesting: c = ae.defaultOptions.nesting, delimiter: d = ae.defaultOptions.delimiter, valueSerializer: p = ae.defaultOptions.
386
386
  valueSerializer, shouldSerializeObject: u = ae.defaultOptions.shouldSerializeObject } = e, y = typeof d == "number" ? String.fromCharCode(
387
387
  d) : d, h = s === !0 && a, g = i === "dot" || i === "js" && !s;
388
- if (t > Xi)
388
+ if (t > ua)
389
389
  return "";
390
390
  let b = "", m = !0, T = !1;
391
391
  for (let x in r) {
392
392
  let f = r[x], S;
393
- o ? (S = o, h ? l === "bracket" && (S += Ji) : g ? (S += ea, S += x) : (S += Qi, S += x, S += Zi)) : S = x, m || (b += y), typeof f ==
394
- "object" && f !== null && !u(f) ? (T = f.pop !== void 0, (c || a && T) && (b += Io(f, e, t + 1, S, T))) : (b += (0, $i.encodeString)(S),
393
+ o ? (S = o, h ? l === "bracket" && (S += fa) : g ? (S += ha, S += x) : (S += ya, S += x, S += ma)) : S = x, m || (b += y), typeof f ==
394
+ "object" && f !== null && !u(f) ? (T = f.pop !== void 0, (c || a && T) && (b += Wo(f, e, t + 1, S, T))) : (b += (0, ca.encodeString)(S),
395
395
  b += "=", b += p(f, x)), m && (m = !1);
396
396
  }
397
397
  return b;
398
398
  }
399
- n(Io, "stringifyObject");
399
+ n(Wo, "stringifyObject");
400
400
  });
401
401
 
402
402
  // ../node_modules/fast-decode-uri-component/index.js
403
- var jo = O((Xu, ko) => {
403
+ var Xo = O((ff, Ko) => {
404
404
  "use strict";
405
- var Oo = 12, ra = 0, Kr = [
405
+ var $o = 12, ga = 0, lt = [
406
406
  // The first part of the table maps bytes to character to a transition.
407
407
  0,
408
408
  0,
@@ -785,18 +785,18 @@ var jo = O((Xu, ko) => {
785
785
  7,
786
786
  7
787
787
  ];
788
- function ta(r) {
788
+ function ba(r) {
789
789
  var e = r.indexOf("%");
790
790
  if (e === -1) return r;
791
- for (var t = r.length, o = "", s = 0, i = 0, a = e, l = Oo; e > -1 && e < t; ) {
792
- var c = Do(r[e + 1], 4), d = Do(r[e + 2], 0), p = c | d, u = Kr[p];
793
- if (l = Kr[256 + l + u], i = i << 6 | p & Kr[364 + u], l === Oo)
791
+ for (var t = r.length, o = "", s = 0, i = 0, a = e, l = $o; e > -1 && e < t; ) {
792
+ var c = Yo(r[e + 1], 4), d = Yo(r[e + 2], 0), p = c | d, u = lt[p];
793
+ if (l = lt[256 + l + u], i = i << 6 | p & lt[364 + u], l === $o)
794
794
  o += r.slice(s, a), o += i <= 65535 ? String.fromCharCode(i) : String.fromCharCode(
795
795
  55232 + (i >> 10),
796
796
  56320 + (i & 1023)
797
797
  ), i = 0, s = e + 3, e = a = r.indexOf("%", s);
798
798
  else {
799
- if (l === ra)
799
+ if (l === ga)
800
800
  return null;
801
801
  if (e += 3, e < t && r.charCodeAt(e) === 37) continue;
802
802
  return null;
@@ -804,8 +804,8 @@ var jo = O((Xu, ko) => {
804
804
  }
805
805
  return o + r.slice(s);
806
806
  }
807
- n(ta, "decodeURIComponent");
808
- var oa = {
807
+ n(ba, "decodeURIComponent");
808
+ var Sa = {
809
809
  0: 0,
810
810
  1: 1,
811
811
  2: 2,
@@ -829,55 +829,55 @@ var jo = O((Xu, ko) => {
829
829
  f: 15,
830
830
  F: 15
831
831
  };
832
- function Do(r, e) {
833
- var t = oa[r];
832
+ function Yo(r, e) {
833
+ var t = Sa[r];
834
834
  return t === void 0 ? 255 : t << e;
835
835
  }
836
- n(Do, "hexCodeToInt");
837
- ko.exports = ta;
836
+ n(Yo, "hexCodeToInt");
837
+ Ko.exports = ba;
838
838
  });
839
839
 
840
840
  // ../node_modules/picoquery/lib/parse.js
841
- var No = O((W) => {
841
+ var en = O((W) => {
842
842
  "use strict";
843
- var na = W && W.__importDefault || function(r) {
843
+ var Ta = W && W.__importDefault || function(r) {
844
844
  return r && r.__esModule ? r : { default: r };
845
845
  };
846
846
  Object.defineProperty(W, "__esModule", { value: !0 });
847
847
  W.numberValueDeserializer = W.numberKeyDeserializer = void 0;
848
- W.parse = aa;
849
- var nr = Yr(), le = tr(), Mo = na(jo()), sa = /* @__PURE__ */ n((r) => {
848
+ W.parse = wa;
849
+ var nr = at(), le = tr(), Jo = Ta(Xo()), xa = /* @__PURE__ */ n((r) => {
850
850
  let e = Number(r);
851
851
  return Number.isNaN(e) ? r : e;
852
852
  }, "numberKeyDeserializer");
853
- W.numberKeyDeserializer = sa;
854
- var ia = /* @__PURE__ */ n((r) => {
853
+ W.numberKeyDeserializer = xa;
854
+ var Ra = /* @__PURE__ */ n((r) => {
855
855
  let e = Number(r);
856
856
  return Number.isNaN(e) ? r : e;
857
857
  }, "numberValueDeserializer");
858
- W.numberValueDeserializer = ia;
859
- var _o = /\+/g, Lo = /* @__PURE__ */ n(function() {
858
+ W.numberValueDeserializer = Ra;
859
+ var Qo = /\+/g, Zo = /* @__PURE__ */ n(function() {
860
860
  }, "Empty");
861
- Lo.prototype = /* @__PURE__ */ Object.create(null);
861
+ Zo.prototype = /* @__PURE__ */ Object.create(null);
862
862
  function sr(r, e, t, o, s) {
863
863
  let i = r.substring(e, t);
864
- return o && (i = i.replace(_o, " ")), s && (i = (0, Mo.default)(i) || i), i;
864
+ return o && (i = i.replace(Qo, " ")), s && (i = (0, Jo.default)(i) || i), i;
865
865
  }
866
866
  n(sr, "computeKeySlice");
867
- function aa(r, e) {
867
+ function wa(r, e) {
868
868
  let { valueDeserializer: t = le.defaultOptions.valueDeserializer, keyDeserializer: o = le.defaultOptions.keyDeserializer, arrayRepeatSyntax: s = le.
869
869
  defaultOptions.arrayRepeatSyntax, nesting: i = le.defaultOptions.nesting, arrayRepeat: a = le.defaultOptions.arrayRepeat, nestingSyntax: l = le.
870
870
  defaultOptions.nestingSyntax, delimiter: c = le.defaultOptions.delimiter } = e ?? {}, d = typeof c == "string" ? c.charCodeAt(0) : c, p = l ===
871
- "js", u = new Lo();
871
+ "js", u = new Zo();
872
872
  if (typeof r != "string")
873
873
  return u;
874
874
  let y = r.length, h = "", g = -1, b = -1, m = -1, T = u, x, f = "", S = "", R = !1, w = !1, A = !1, F = !1, j = !1, N = !1, pe = !1, C = 0,
875
- B = -1, Re = -1, at = -1;
875
+ B = -1, Re = -1, wt = -1;
876
876
  for (let I = 0; I < y + 1; I++) {
877
877
  if (C = I !== y ? r.charCodeAt(I) : d, C === d) {
878
878
  if (pe = b > g, pe || (b = I), m !== b - 1 && (S = sr(r, m + 1, B > -1 ? B : b, A, R), f = o(S), x !== void 0 && (T = (0, nr.getDeepObject)(
879
879
  T, x, f, p && j, p && N))), pe || f !== "") {
880
- pe && (h = r.slice(b + 1, I), F && (h = h.replace(_o, " ")), w && (h = (0, Mo.default)(h) || h));
880
+ pe && (h = r.slice(b + 1, I), F && (h = h.replace(Qo, " ")), w && (h = (0, Jo.default)(h) || h));
881
881
  let we = t(h, f);
882
882
  if (a) {
883
883
  let Be = T[f];
@@ -886,38 +886,38 @@ var No = O((W) => {
886
886
  T[f] = we;
887
887
  }
888
888
  h = "", g = I, b = I, R = !1, w = !1, A = !1, F = !1, j = !1, N = !1, B = -1, m = I, T = u, x = void 0, f = "";
889
- } else C === 93 ? (a && s === "bracket" && at === 91 && (B = Re), i && (l === "index" || p) && b <= g && (m !== Re && (S = sr(r, m + 1,
889
+ } else C === 93 ? (a && s === "bracket" && wt === 91 && (B = Re), i && (l === "index" || p) && b <= g && (m !== Re && (S = sr(r, m + 1,
890
890
  I, A, R), f = o(S), x !== void 0 && (T = (0, nr.getDeepObject)(T, x, f, void 0, p)), x = f, A = !1, R = !1), m = I, N = !0, j = !1)) :
891
891
  C === 46 ? i && (l === "dot" || p) && b <= g && (m !== Re && (S = sr(r, m + 1, I, A, R), f = o(S), x !== void 0 && (T = (0, nr.getDeepObject)(
892
892
  T, x, f, p)), x = f, A = !1, R = !1), j = !0, N = !1, m = I) : C === 91 ? i && (l === "index" || p) && b <= g && (m !== Re && (S = sr(
893
893
  r, m + 1, I, A, R), f = o(S), p && x !== void 0 && (T = (0, nr.getDeepObject)(T, x, f, p)), x = f, A = !1, R = !1, j = !1, N = !0), m =
894
894
  I) : C === 61 ? b <= g ? b = I : w = !0 : C === 43 ? b > g ? F = !0 : A = !0 : C === 37 && (b > g ? w = !0 : R = !0);
895
- Re = I, at = C;
895
+ Re = I, wt = C;
896
896
  }
897
897
  return u;
898
898
  }
899
- n(aa, "parse");
899
+ n(wa, "parse");
900
900
  });
901
901
 
902
902
  // ../node_modules/picoquery/lib/stringify.js
903
- var qo = O((Xr) => {
903
+ var rn = O((ct) => {
904
904
  "use strict";
905
- Object.defineProperty(Xr, "__esModule", { value: !0 });
906
- Xr.stringify = ca;
907
- var la = Yr();
908
- function ca(r, e) {
905
+ Object.defineProperty(ct, "__esModule", { value: !0 });
906
+ ct.stringify = Aa;
907
+ var Ea = at();
908
+ function Aa(r, e) {
909
909
  if (r === null || typeof r != "object")
910
910
  return "";
911
911
  let t = e ?? {};
912
- return (0, la.stringifyObject)(r, t);
912
+ return (0, Ea.stringifyObject)(r, t);
913
913
  }
914
- n(ca, "stringify");
914
+ n(Aa, "stringify");
915
915
  });
916
916
 
917
917
  // ../node_modules/picoquery/lib/main.js
918
918
  var ir = O((q) => {
919
919
  "use strict";
920
- var da = q && q.__createBinding || (Object.create ? function(r, e, t, o) {
920
+ var Ca = q && q.__createBinding || (Object.create ? function(r, e, t, o) {
921
921
  o === void 0 && (o = t);
922
922
  var s = Object.getOwnPropertyDescriptor(e, t);
923
923
  (!s || ("get" in s ? !e.__esModule : s.writable || s.configurable)) && (s = { enumerable: !0, get: /* @__PURE__ */ n(function() {
@@ -925,25 +925,25 @@ var ir = O((q) => {
925
925
  }, "get") }), Object.defineProperty(r, o, s);
926
926
  } : function(r, e, t, o) {
927
927
  o === void 0 && (o = t), r[o] = e[t];
928
- }), pa = q && q.__exportStar || function(r, e) {
929
- for (var t in r) t !== "default" && !Object.prototype.hasOwnProperty.call(e, t) && da(e, r, t);
928
+ }), va = q && q.__exportStar || function(r, e) {
929
+ for (var t in r) t !== "default" && !Object.prototype.hasOwnProperty.call(e, t) && Ca(e, r, t);
930
930
  };
931
931
  Object.defineProperty(q, "__esModule", { value: !0 });
932
932
  q.stringify = q.parse = void 0;
933
- var ua = No();
933
+ var Pa = en();
934
934
  Object.defineProperty(q, "parse", { enumerable: !0, get: /* @__PURE__ */ n(function() {
935
- return ua.parse;
935
+ return Pa.parse;
936
936
  }, "get") });
937
- var fa = qo();
937
+ var Fa = rn();
938
938
  Object.defineProperty(q, "stringify", { enumerable: !0, get: /* @__PURE__ */ n(function() {
939
- return fa.stringify;
939
+ return Fa.stringify;
940
940
  }, "get") });
941
- pa(tr(), q);
941
+ va(tr(), q);
942
942
  });
943
943
 
944
944
  // ../node_modules/entities/lib/maps/entities.json
945
- var Zr = O((yf, Ra) => {
946
- Ra.exports = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\
945
+ var ft = O((If, Na) => {
946
+ Na.exports = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\
947
947
  \xC2", acirc: "\xE2", acute: "\xB4", Acy: "\u0410", acy: "\u0430", AElig: "\xC6", aelig: "\xE6", af: "\u2061", Afr: "\u{1D504}", afr: "\u{1D51E}",
948
948
  Agrave: "\xC0", agrave: "\xE0", alefsym: "\u2135", aleph: "\u2135", Alpha: "\u0391", alpha: "\u03B1", Amacr: "\u0100", amacr: "\u0101", amalg: "\
949
949
  \u2A3F", amp: "&", AMP: "&", andand: "\u2A55", And: "\u2A53", and: "\u2227", andd: "\u2A5C", andslope: "\u2A58", andv: "\u2A5A", ang: "\u2220",
@@ -1224,8 +1224,8 @@ var Zr = O((yf, Ra) => {
1224
1224
  });
1225
1225
 
1226
1226
  // ../node_modules/entities/lib/maps/legacy.json
1227
- var Wo = O((mf, wa) => {
1228
- wa.exports = { Aacute: "\xC1", aacute: "\xE1", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", AElig: "\xC6", aelig: "\xE6", Agrave: "\xC0", agrave: "\
1227
+ var cn = O((Of, qa) => {
1228
+ qa.exports = { Aacute: "\xC1", aacute: "\xE1", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", AElig: "\xC6", aelig: "\xE6", Agrave: "\xC0", agrave: "\
1229
1229
  \xE0", amp: "&", AMP: "&", Aring: "\xC5", aring: "\xE5", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", brvbar: "\xA6", Ccedil: "\
1230
1230
  \xC7", ccedil: "\xE7", cedil: "\xB8", cent: "\xA2", copy: "\xA9", COPY: "\xA9", curren: "\xA4", deg: "\xB0", divide: "\xF7", Eacute: "\xC9",
1231
1231
  eacute: "\xE9", Ecirc: "\xCA", ecirc: "\xEA", Egrave: "\xC8", egrave: "\xE8", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", frac12: "\
@@ -1239,25 +1239,25 @@ var Wo = O((mf, wa) => {
1239
1239
  });
1240
1240
 
1241
1241
  // ../node_modules/entities/lib/maps/xml.json
1242
- var et = O((hf, Ea) => {
1243
- Ea.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' };
1242
+ var yt = O((Df, Ba) => {
1243
+ Ba.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' };
1244
1244
  });
1245
1245
 
1246
1246
  // ../node_modules/entities/lib/maps/decode.json
1247
- var $o = O((gf, Aa) => {
1248
- Aa.exports = { "0": 65533, "128": 8364, "130": 8218, "131": 402, "132": 8222, "133": 8230, "134": 8224, "135": 8225, "136": 710, "137": 8240,
1247
+ var dn = O((kf, za) => {
1248
+ za.exports = { "0": 65533, "128": 8364, "130": 8218, "131": 402, "132": 8222, "133": 8230, "134": 8224, "135": 8225, "136": 710, "137": 8240,
1249
1249
  "138": 352, "139": 8249, "140": 338, "142": 381, "145": 8216, "146": 8217, "147": 8220, "148": 8221, "149": 8226, "150": 8211, "151": 8212,
1250
1250
  "152": 732, "153": 8482, "154": 353, "155": 8250, "156": 339, "158": 382, "159": 376 };
1251
1251
  });
1252
1252
 
1253
1253
  // ../node_modules/entities/lib/decode_codepoint.js
1254
- var Ko = O((qe) => {
1254
+ var un = O((qe) => {
1255
1255
  "use strict";
1256
- var Ca = qe && qe.__importDefault || function(r) {
1256
+ var Ga = qe && qe.__importDefault || function(r) {
1257
1257
  return r && r.__esModule ? r : { default: r };
1258
1258
  };
1259
1259
  Object.defineProperty(qe, "__esModule", { value: !0 });
1260
- var Yo = Ca($o()), va = (
1260
+ var pn = Ga(dn()), Ua = (
1261
1261
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
1262
1262
  String.fromCodePoint || function(r) {
1263
1263
  var e = "";
@@ -1265,38 +1265,38 @@ var Ko = O((qe) => {
1265
1265
  e;
1266
1266
  }
1267
1267
  );
1268
- function Pa(r) {
1269
- return r >= 55296 && r <= 57343 || r > 1114111 ? "\uFFFD" : (r in Yo.default && (r = Yo.default[r]), va(r));
1268
+ function Ha(r) {
1269
+ return r >= 55296 && r <= 57343 || r > 1114111 ? "\uFFFD" : (r in pn.default && (r = pn.default[r]), Ua(r));
1270
1270
  }
1271
- n(Pa, "decodeCodePoint");
1272
- qe.default = Pa;
1271
+ n(Ha, "decodeCodePoint");
1272
+ qe.default = Ha;
1273
1273
  });
1274
1274
 
1275
1275
  // ../node_modules/entities/lib/decode.js
1276
- var tt = O((U) => {
1276
+ var ht = O((U) => {
1277
1277
  "use strict";
1278
1278
  var ar = U && U.__importDefault || function(r) {
1279
1279
  return r && r.__esModule ? r : { default: r };
1280
1280
  };
1281
1281
  Object.defineProperty(U, "__esModule", { value: !0 });
1282
1282
  U.decodeHTML = U.decodeHTMLStrict = U.decodeXML = void 0;
1283
- var rt = ar(Zr()), Fa = ar(Wo()), Ia = ar(et()), Xo = ar(Ko()), Oa = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;
1284
- U.decodeXML = Qo(Ia.default);
1285
- U.decodeHTMLStrict = Qo(rt.default);
1286
- function Qo(r) {
1287
- var e = Zo(r);
1283
+ var mt = ar(ft()), Va = ar(cn()), Wa = ar(yt()), fn = ar(un()), $a = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;
1284
+ U.decodeXML = mn(Wa.default);
1285
+ U.decodeHTMLStrict = mn(mt.default);
1286
+ function mn(r) {
1287
+ var e = hn(r);
1288
1288
  return function(t) {
1289
- return String(t).replace(Oa, e);
1289
+ return String(t).replace($a, e);
1290
1290
  };
1291
1291
  }
1292
- n(Qo, "getStrictDecoder");
1293
- var Jo = /* @__PURE__ */ n(function(r, e) {
1292
+ n(mn, "getStrictDecoder");
1293
+ var yn = /* @__PURE__ */ n(function(r, e) {
1294
1294
  return r < e ? 1 : -1;
1295
1295
  }, "sorter");
1296
1296
  U.decodeHTML = function() {
1297
- for (var r = Object.keys(Fa.default).sort(Jo), e = Object.keys(rt.default).sort(Jo), t = 0, o = 0; t < e.length; t++)
1297
+ for (var r = Object.keys(Va.default).sort(yn), e = Object.keys(mt.default).sort(yn), t = 0, o = 0; t < e.length; t++)
1298
1298
  r[o] === e[t] ? (e[t] += ";?", o++) : e[t] += ";";
1299
- var s = new RegExp("&(?:" + e.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g"), i = Zo(rt.default);
1299
+ var s = new RegExp("&(?:" + e.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g"), i = hn(mt.default);
1300
1300
  function a(l) {
1301
1301
  return l.substr(-1) !== ";" && (l += ";"), i(l);
1302
1302
  }
@@ -1304,38 +1304,38 @@ var tt = O((U) => {
1304
1304
  return String(l).replace(s, a);
1305
1305
  };
1306
1306
  }();
1307
- function Zo(r) {
1307
+ function hn(r) {
1308
1308
  return /* @__PURE__ */ n(function(t) {
1309
1309
  if (t.charAt(1) === "#") {
1310
1310
  var o = t.charAt(2);
1311
- return o === "X" || o === "x" ? Xo.default(parseInt(t.substr(3), 16)) : Xo.default(parseInt(t.substr(2), 10));
1311
+ return o === "X" || o === "x" ? fn.default(parseInt(t.substr(3), 16)) : fn.default(parseInt(t.substr(2), 10));
1312
1312
  }
1313
1313
  return r[t.slice(1, -1)] || t;
1314
1314
  }, "replace");
1315
1315
  }
1316
- n(Zo, "getReplacer");
1316
+ n(hn, "getReplacer");
1317
1317
  });
1318
1318
 
1319
1319
  // ../node_modules/entities/lib/encode.js
1320
- var nt = O((M) => {
1320
+ var bt = O((M) => {
1321
1321
  "use strict";
1322
- var en = M && M.__importDefault || function(r) {
1322
+ var gn = M && M.__importDefault || function(r) {
1323
1323
  return r && r.__esModule ? r : { default: r };
1324
1324
  };
1325
1325
  Object.defineProperty(M, "__esModule", { value: !0 });
1326
1326
  M.escapeUTF8 = M.escape = M.encodeNonAsciiHTML = M.encodeHTML = M.encodeXML = void 0;
1327
- var Da = en(et()), rn = on(Da.default), tn = nn(rn);
1328
- M.encodeXML = ln(rn);
1329
- var ka = en(Zr()), ot = on(ka.default), ja = nn(ot);
1330
- M.encodeHTML = _a(ot, ja);
1331
- M.encodeNonAsciiHTML = ln(ot);
1332
- function on(r) {
1327
+ var Ya = gn(yt()), bn = Tn(Ya.default), Sn = xn(bn);
1328
+ M.encodeXML = En(bn);
1329
+ var Ka = gn(ft()), gt = Tn(Ka.default), Xa = xn(gt);
1330
+ M.encodeHTML = Qa(gt, Xa);
1331
+ M.encodeNonAsciiHTML = En(gt);
1332
+ function Tn(r) {
1333
1333
  return Object.keys(r).sort().reduce(function(e, t) {
1334
1334
  return e[r[t]] = "&" + t + ";", e;
1335
1335
  }, {});
1336
1336
  }
1337
- n(on, "getInverseObj");
1338
- function nn(r) {
1337
+ n(Tn, "getInverseObj");
1338
+ function xn(r) {
1339
1339
  for (var e = [], t = [], o = 0, s = Object.keys(r); o < s.length; o++) {
1340
1340
  var i = s[o];
1341
1341
  i.length === 1 ? e.push("\\" + i) : t.push(i);
@@ -1349,9 +1349,9 @@ var nt = O((M) => {
1349
1349
  }
1350
1350
  return t.unshift("[" + e.join("") + "]"), new RegExp(t.join("|"), "g");
1351
1351
  }
1352
- n(nn, "getInverseReplacer");
1353
- var sn = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,
1354
- Ma = (
1352
+ n(xn, "getInverseReplacer");
1353
+ var Rn = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,
1354
+ Ja = (
1355
1355
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
1356
1356
  String.prototype.codePointAt != null ? (
1357
1357
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -1366,62 +1366,62 @@ var nt = O((M) => {
1366
1366
  )
1367
1367
  );
1368
1368
  function lr(r) {
1369
- return "&#x" + (r.length > 1 ? Ma(r) : r.charCodeAt(0)).toString(16).toUpperCase() + ";";
1369
+ return "&#x" + (r.length > 1 ? Ja(r) : r.charCodeAt(0)).toString(16).toUpperCase() + ";";
1370
1370
  }
1371
1371
  n(lr, "singleCharReplacer");
1372
- function _a(r, e) {
1372
+ function Qa(r, e) {
1373
1373
  return function(t) {
1374
1374
  return t.replace(e, function(o) {
1375
1375
  return r[o];
1376
- }).replace(sn, lr);
1376
+ }).replace(Rn, lr);
1377
1377
  };
1378
1378
  }
1379
- n(_a, "getInverse");
1380
- var an = new RegExp(tn.source + "|" + sn.source, "g");
1381
- function La(r) {
1382
- return r.replace(an, lr);
1379
+ n(Qa, "getInverse");
1380
+ var wn = new RegExp(Sn.source + "|" + Rn.source, "g");
1381
+ function Za(r) {
1382
+ return r.replace(wn, lr);
1383
1383
  }
1384
- n(La, "escape");
1385
- M.escape = La;
1386
- function Na(r) {
1387
- return r.replace(tn, lr);
1384
+ n(Za, "escape");
1385
+ M.escape = Za;
1386
+ function el(r) {
1387
+ return r.replace(Sn, lr);
1388
1388
  }
1389
- n(Na, "escapeUTF8");
1390
- M.escapeUTF8 = Na;
1391
- function ln(r) {
1389
+ n(el, "escapeUTF8");
1390
+ M.escapeUTF8 = el;
1391
+ function En(r) {
1392
1392
  return function(e) {
1393
- return e.replace(an, function(t) {
1393
+ return e.replace(wn, function(t) {
1394
1394
  return r[t] || lr(t);
1395
1395
  });
1396
1396
  };
1397
1397
  }
1398
- n(ln, "getASCIIEncoder");
1398
+ n(En, "getASCIIEncoder");
1399
1399
  });
1400
1400
 
1401
1401
  // ../node_modules/entities/lib/index.js
1402
- var dn = O((E) => {
1402
+ var Cn = O((E) => {
1403
1403
  "use strict";
1404
1404
  Object.defineProperty(E, "__esModule", { value: !0 });
1405
1405
  E.decodeXMLStrict = E.decodeHTML5Strict = E.decodeHTML4Strict = E.decodeHTML5 = E.decodeHTML4 = E.decodeHTMLStrict = E.decodeHTML = E.decodeXML =
1406
1406
  E.encodeHTML5 = E.encodeHTML4 = E.escapeUTF8 = E.escape = E.encodeNonAsciiHTML = E.encodeHTML = E.encodeXML = E.encode = E.decodeStrict = E.
1407
1407
  decode = void 0;
1408
- var cr = tt(), cn = nt();
1409
- function qa(r, e) {
1408
+ var cr = ht(), An = bt();
1409
+ function rl(r, e) {
1410
1410
  return (!e || e <= 0 ? cr.decodeXML : cr.decodeHTML)(r);
1411
1411
  }
1412
- n(qa, "decode");
1413
- E.decode = qa;
1414
- function Ba(r, e) {
1412
+ n(rl, "decode");
1413
+ E.decode = rl;
1414
+ function tl(r, e) {
1415
1415
  return (!e || e <= 0 ? cr.decodeXML : cr.decodeHTMLStrict)(r);
1416
1416
  }
1417
- n(Ba, "decodeStrict");
1418
- E.decodeStrict = Ba;
1419
- function za(r, e) {
1420
- return (!e || e <= 0 ? cn.encodeXML : cn.encodeHTML)(r);
1417
+ n(tl, "decodeStrict");
1418
+ E.decodeStrict = tl;
1419
+ function ol(r, e) {
1420
+ return (!e || e <= 0 ? An.encodeXML : An.encodeHTML)(r);
1421
1421
  }
1422
- n(za, "encode");
1423
- E.encode = za;
1424
- var ce = nt();
1422
+ n(ol, "encode");
1423
+ E.encode = ol;
1424
+ var ce = bt();
1425
1425
  Object.defineProperty(E, "encodeXML", { enumerable: !0, get: /* @__PURE__ */ n(function() {
1426
1426
  return ce.encodeXML;
1427
1427
  }, "get") });
@@ -1443,7 +1443,7 @@ var dn = O((E) => {
1443
1443
  Object.defineProperty(E, "encodeHTML5", { enumerable: !0, get: /* @__PURE__ */ n(function() {
1444
1444
  return ce.encodeHTML;
1445
1445
  }, "get") });
1446
- var Z = tt();
1446
+ var Z = ht();
1447
1447
  Object.defineProperty(E, "decodeXML", { enumerable: !0, get: /* @__PURE__ */ n(function() {
1448
1448
  return Z.decodeXML;
1449
1449
  }, "get") });
@@ -1471,28 +1471,28 @@ var dn = O((E) => {
1471
1471
  });
1472
1472
 
1473
1473
  // ../node_modules/ansi-to-html/lib/ansi_to_html.js
1474
- var xn = O((Cf, Tn) => {
1474
+ var _n = O((Gf, Ln) => {
1475
1475
  "use strict";
1476
- function Ga(r, e) {
1476
+ function nl(r, e) {
1477
1477
  if (!(r instanceof e))
1478
1478
  throw new TypeError("Cannot call a class as a function");
1479
1479
  }
1480
- n(Ga, "_classCallCheck");
1481
- function pn(r, e) {
1480
+ n(nl, "_classCallCheck");
1481
+ function vn(r, e) {
1482
1482
  for (var t = 0; t < e.length; t++) {
1483
1483
  var o = e[t];
1484
1484
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(r, o.key, o);
1485
1485
  }
1486
1486
  }
1487
- n(pn, "_defineProperties");
1488
- function Ua(r, e, t) {
1489
- return e && pn(r.prototype, e), t && pn(r, t), r;
1487
+ n(vn, "_defineProperties");
1488
+ function sl(r, e, t) {
1489
+ return e && vn(r.prototype, e), t && vn(r, t), r;
1490
1490
  }
1491
- n(Ua, "_createClass");
1492
- function gn(r, e) {
1491
+ n(sl, "_createClass");
1492
+ function kn(r, e) {
1493
1493
  var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
1494
1494
  if (!t) {
1495
- if (Array.isArray(r) || (t = Ha(r)) || e && r && typeof r.length == "number") {
1495
+ if (Array.isArray(r) || (t = il(r)) || e && r && typeof r.length == "number") {
1496
1496
  t && (r = t);
1497
1497
  var o = 0, s = /* @__PURE__ */ n(function() {
1498
1498
  }, "F");
@@ -1521,32 +1521,32 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1521
1521
  }
1522
1522
  }, "f") };
1523
1523
  }
1524
- n(gn, "_createForOfIteratorHelper");
1525
- function Ha(r, e) {
1524
+ n(kn, "_createForOfIteratorHelper");
1525
+ function il(r, e) {
1526
1526
  if (r) {
1527
- if (typeof r == "string") return un(r, e);
1527
+ if (typeof r == "string") return Pn(r, e);
1528
1528
  var t = Object.prototype.toString.call(r).slice(8, -1);
1529
1529
  if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set") return Array.from(r);
1530
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return un(r, e);
1530
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Pn(r, e);
1531
1531
  }
1532
1532
  }
1533
- n(Ha, "_unsupportedIterableToArray");
1534
- function un(r, e) {
1533
+ n(il, "_unsupportedIterableToArray");
1534
+ function Pn(r, e) {
1535
1535
  (e == null || e > r.length) && (e = r.length);
1536
1536
  for (var t = 0, o = new Array(e); t < e; t++)
1537
1537
  o[t] = r[t];
1538
1538
  return o;
1539
1539
  }
1540
- n(un, "_arrayLikeToArray");
1541
- var Va = dn(), fn = {
1540
+ n(Pn, "_arrayLikeToArray");
1541
+ var al = Cn(), Fn = {
1542
1542
  fg: "#FFF",
1543
1543
  bg: "#000",
1544
1544
  newline: !1,
1545
1545
  escapeXML: !1,
1546
1546
  stream: !1,
1547
- colors: Wa()
1547
+ colors: ll()
1548
1548
  };
1549
- function Wa() {
1549
+ function ll() {
1550
1550
  var r = {
1551
1551
  0: "#000",
1552
1552
  1: "#A00",
@@ -1568,32 +1568,32 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1568
1568
  return dr(0, 5).forEach(function(e) {
1569
1569
  dr(0, 5).forEach(function(t) {
1570
1570
  dr(0, 5).forEach(function(o) {
1571
- return $a(e, t, o, r);
1571
+ return cl(e, t, o, r);
1572
1572
  });
1573
1573
  });
1574
1574
  }), dr(0, 23).forEach(function(e) {
1575
- var t = e + 232, o = bn(e * 10 + 8);
1575
+ var t = e + 232, o = jn(e * 10 + 8);
1576
1576
  r[t] = "#" + o + o + o;
1577
1577
  }), r;
1578
1578
  }
1579
- n(Wa, "getDefaultColors");
1580
- function $a(r, e, t, o) {
1579
+ n(ll, "getDefaultColors");
1580
+ function cl(r, e, t, o) {
1581
1581
  var s = 16 + r * 36 + e * 6 + t, i = r > 0 ? r * 40 + 55 : 0, a = e > 0 ? e * 40 + 55 : 0, l = t > 0 ? t * 40 + 55 : 0;
1582
- o[s] = Ya([i, a, l]);
1582
+ o[s] = dl([i, a, l]);
1583
1583
  }
1584
- n($a, "setStyleColor");
1585
- function bn(r) {
1584
+ n(cl, "setStyleColor");
1585
+ function jn(r) {
1586
1586
  for (var e = r.toString(16); e.length < 2; )
1587
1587
  e = "0" + e;
1588
1588
  return e;
1589
1589
  }
1590
- n(bn, "toHexString");
1591
- function Ya(r) {
1592
- var e = [], t = gn(r), o;
1590
+ n(jn, "toHexString");
1591
+ function dl(r) {
1592
+ var e = [], t = kn(r), o;
1593
1593
  try {
1594
1594
  for (t.s(); !(o = t.n()).done; ) {
1595
1595
  var s = o.value;
1596
- e.push(bn(s));
1596
+ e.push(jn(s));
1597
1597
  }
1598
1598
  } catch (i) {
1599
1599
  t.e(i);
@@ -1602,29 +1602,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1602
1602
  }
1603
1603
  return "#" + e.join("");
1604
1604
  }
1605
- n(Ya, "toColorHexString");
1606
- function yn(r, e, t, o) {
1605
+ n(dl, "toColorHexString");
1606
+ function In(r, e, t, o) {
1607
1607
  var s;
1608
- return e === "text" ? s = Qa(t, o) : e === "display" ? s = Xa(r, t, o) : e === "xterm256Foreground" ? s = ur(r, o.colors[t]) : e === "xt\
1609
- erm256Background" ? s = fr(r, o.colors[t]) : e === "rgb" && (s = Ka(r, t)), s;
1608
+ return e === "text" ? s = yl(t, o) : e === "display" ? s = ul(r, t, o) : e === "xterm256Foreground" ? s = ur(r, o.colors[t]) : e === "xt\
1609
+ erm256Background" ? s = fr(r, o.colors[t]) : e === "rgb" && (s = pl(r, t)), s;
1610
1610
  }
1611
- n(yn, "generateOutput");
1612
- function Ka(r, e) {
1611
+ n(In, "generateOutput");
1612
+ function pl(r, e) {
1613
1613
  e = e.substring(2).slice(0, -1);
1614
1614
  var t = +e.substr(0, 2), o = e.substring(5).split(";"), s = o.map(function(i) {
1615
1615
  return ("0" + Number(i).toString(16)).substr(-2);
1616
1616
  }).join("");
1617
1617
  return pr(r, (t === 38 ? "color:#" : "background-color:#") + s);
1618
1618
  }
1619
- n(Ka, "handleRgb");
1620
- function Xa(r, e, t) {
1619
+ n(pl, "handleRgb");
1620
+ function ul(r, e, t) {
1621
1621
  e = parseInt(e, 10);
1622
1622
  var o = {
1623
1623
  "-1": /* @__PURE__ */ n(function() {
1624
1624
  return "<br/>";
1625
1625
  }, "_"),
1626
1626
  0: /* @__PURE__ */ n(function() {
1627
- return r.length && Sn(r);
1627
+ return r.length && Mn(r);
1628
1628
  }, "_"),
1629
1629
  1: /* @__PURE__ */ n(function() {
1630
1630
  return ee(r, "b");
@@ -1645,10 +1645,10 @@ erm256Background" ? s = fr(r, o.colors[t]) : e === "rgb" && (s = Ka(r, t)), s;
1645
1645
  return pr(r, "font-weight:normal;text-decoration:none;font-style:normal");
1646
1646
  }, "_"),
1647
1647
  23: /* @__PURE__ */ n(function() {
1648
- return hn(r, "i");
1648
+ return Dn(r, "i");
1649
1649
  }, "_"),
1650
1650
  24: /* @__PURE__ */ n(function() {
1651
- return hn(r, "u");
1651
+ return Dn(r, "u");
1652
1652
  }, "_"),
1653
1653
  39: /* @__PURE__ */ n(function() {
1654
1654
  return ur(r, t.fg);
@@ -1664,38 +1664,38 @@ erm256Background" ? s = fr(r, o.colors[t]) : e === "rgb" && (s = Ka(r, t)), s;
1664
1664
  fr(r, t.colors[e - 40]) : 89 < e && e < 98 ? s = ur(r, t.colors[8 + (e - 90)]) : 99 < e && e < 108 && (s = fr(r, t.colors[8 + (e - 100)])),
1665
1665
  s;
1666
1666
  }
1667
- n(Xa, "handleDisplay");
1668
- function Sn(r) {
1667
+ n(ul, "handleDisplay");
1668
+ function Mn(r) {
1669
1669
  var e = r.slice(0);
1670
1670
  return r.length = 0, e.reverse().map(function(t) {
1671
1671
  return "</" + t + ">";
1672
1672
  }).join("");
1673
1673
  }
1674
- n(Sn, "resetStyles");
1674
+ n(Mn, "resetStyles");
1675
1675
  function dr(r, e) {
1676
1676
  for (var t = [], o = r; o <= e; o++)
1677
1677
  t.push(o);
1678
1678
  return t;
1679
1679
  }
1680
1680
  n(dr, "range");
1681
- function Ja(r) {
1681
+ function fl(r) {
1682
1682
  return function(e) {
1683
1683
  return (r === null || e.category !== r) && r !== "all";
1684
1684
  };
1685
1685
  }
1686
- n(Ja, "notCategory");
1687
- function mn(r) {
1686
+ n(fl, "notCategory");
1687
+ function On(r) {
1688
1688
  r = parseInt(r, 10);
1689
1689
  var e = null;
1690
1690
  return r === 0 ? e = "all" : r === 1 ? e = "bold" : 2 < r && r < 5 ? e = "underline" : 4 < r && r < 7 ? e = "blink" : r === 8 ? e = "hid\
1691
1691
  e" : r === 9 ? e = "strike" : 29 < r && r < 38 || r === 39 || 89 < r && r < 98 ? e = "foreground-color" : (39 < r && r < 48 || r === 49 || 99 <
1692
1692
  r && r < 108) && (e = "background-color"), e;
1693
1693
  }
1694
- n(mn, "categoryForCode");
1695
- function Qa(r, e) {
1696
- return e.escapeXML ? Va.encodeXML(r) : r;
1694
+ n(On, "categoryForCode");
1695
+ function yl(r, e) {
1696
+ return e.escapeXML ? al.encodeXML(r) : r;
1697
1697
  }
1698
- n(Qa, "pushText");
1698
+ n(yl, "pushText");
1699
1699
  function ee(r, e, t) {
1700
1700
  return t || (t = ""), r.push(e), "<".concat(e).concat(t ? ' style="'.concat(t, '"') : "", ">");
1701
1701
  }
@@ -1712,13 +1712,13 @@ e" : r === 9 ? e = "strike" : 29 < r && r < 38 || r === 39 || 89 < r && r < 98 ?
1712
1712
  return ee(r, "span", "background-color:" + e);
1713
1713
  }
1714
1714
  n(fr, "pushBackgroundColor");
1715
- function hn(r, e) {
1715
+ function Dn(r, e) {
1716
1716
  var t;
1717
1717
  if (r.slice(-1)[0] === e && (t = r.pop()), t)
1718
1718
  return "</" + e + ">";
1719
1719
  }
1720
- n(hn, "closeTag");
1721
- function Za(r, e, t) {
1720
+ n(Dn, "closeTag");
1721
+ function ml(r, e, t) {
1722
1722
  var o = !1, s = 3;
1723
1723
  function i() {
1724
1724
  return "";
@@ -1738,7 +1738,7 @@ e" : r === 9 ? e = "strike" : 29 < r && r < 38 || r === 39 || 89 < r && r < 98 ?
1738
1738
  n(c, "newline");
1739
1739
  function d(R, w) {
1740
1740
  o = !0, w.trim().length === 0 && (w = "0"), w = w.trimRight(";").split(";");
1741
- var A = gn(w), F;
1741
+ var A = kn(w), F;
1742
1742
  try {
1743
1743
  for (A.s(); !(F = A.n()).done; ) {
1744
1744
  var j = F.value;
@@ -1839,44 +1839,44 @@ e" : r === 9 ? e = "strike" : 29 < r && r < 38 || r === 39 || 89 < r && r < 98 ?
1839
1839
  }
1840
1840
  return g;
1841
1841
  }
1842
- n(Za, "tokenize");
1843
- function el(r, e, t) {
1844
- return e !== "text" && (r = r.filter(Ja(mn(t))), r.push({
1842
+ n(ml, "tokenize");
1843
+ function hl(r, e, t) {
1844
+ return e !== "text" && (r = r.filter(fl(On(t))), r.push({
1845
1845
  token: e,
1846
1846
  data: t,
1847
- category: mn(t)
1847
+ category: On(t)
1848
1848
  })), r;
1849
1849
  }
1850
- n(el, "updateStickyStack");
1851
- var rl = /* @__PURE__ */ function() {
1850
+ n(hl, "updateStickyStack");
1851
+ var gl = /* @__PURE__ */ function() {
1852
1852
  function r(e) {
1853
- Ga(this, r), e = e || {}, e.colors && (e.colors = Object.assign({}, fn.colors, e.colors)), this.options = Object.assign({}, fn, e), this.
1853
+ nl(this, r), e = e || {}, e.colors && (e.colors = Object.assign({}, Fn.colors, e.colors)), this.options = Object.assign({}, Fn, e), this.
1854
1854
  stack = [], this.stickyStack = [];
1855
1855
  }
1856
- return n(r, "Filter"), Ua(r, [{
1856
+ return n(r, "Filter"), sl(r, [{
1857
1857
  key: "toHtml",
1858
1858
  value: /* @__PURE__ */ n(function(t) {
1859
1859
  var o = this;
1860
1860
  t = typeof t == "string" ? [t] : t;
1861
1861
  var s = this.stack, i = this.options, a = [];
1862
1862
  return this.stickyStack.forEach(function(l) {
1863
- var c = yn(s, l.token, l.data, i);
1863
+ var c = In(s, l.token, l.data, i);
1864
1864
  c && a.push(c);
1865
- }), Za(t.join(""), i, function(l, c) {
1866
- var d = yn(s, l, c, i);
1867
- d && a.push(d), i.stream && (o.stickyStack = el(o.stickyStack, l, c));
1868
- }), s.length && a.push(Sn(s)), a.join("");
1865
+ }), ml(t.join(""), i, function(l, c) {
1866
+ var d = In(s, l, c, i);
1867
+ d && a.push(d), i.stream && (o.stickyStack = hl(o.stickyStack, l, c));
1868
+ }), s.length && a.push(Mn(s)), a.join("");
1869
1869
  }, "toHtml")
1870
1870
  }]), r;
1871
1871
  }();
1872
- Tn.exports = rl;
1872
+ Ln.exports = gl;
1873
1873
  });
1874
1874
 
1875
1875
  // src/preview-api/modules/addons/main.ts
1876
1876
  import { global as br } from "@storybook/global";
1877
1877
 
1878
1878
  // src/preview-api/modules/addons/storybook-channel-mock.ts
1879
- import { Channel as qn } from "storybook/internal/channels";
1879
+ import { Channel as rs } from "storybook/internal/channels";
1880
1880
  function gr() {
1881
1881
  let r = {
1882
1882
  setHandler: /* @__PURE__ */ n(() => {
@@ -1884,12 +1884,12 @@ function gr() {
1884
1884
  send: /* @__PURE__ */ n(() => {
1885
1885
  }, "send")
1886
1886
  };
1887
- return new qn({ transport: r });
1887
+ return new rs({ transport: r });
1888
1888
  }
1889
1889
  n(gr, "mockChannel");
1890
1890
 
1891
1891
  // src/preview-api/modules/addons/main.ts
1892
- var Tr = class {
1892
+ var xr = class xr {
1893
1893
  constructor() {
1894
1894
  this.getChannel = /* @__PURE__ */ n(() => {
1895
1895
  if (!this.channel) {
@@ -1907,33 +1907,32 @@ var Tr = class {
1907
1907
  this.resolve = () => e(this.getChannel());
1908
1908
  });
1909
1909
  }
1910
- static {
1911
- n(this, "AddonStore");
1912
- }
1913
- }, Sr = "__STORYBOOK_ADDONS_PREVIEW";
1914
- function Bn() {
1910
+ };
1911
+ n(xr, "AddonStore");
1912
+ var Tr = xr, Sr = "__STORYBOOK_ADDONS_PREVIEW";
1913
+ function ts() {
1915
1914
  return br[Sr] || (br[Sr] = new Tr()), br[Sr];
1916
1915
  }
1917
- n(Bn, "getAddonsStore");
1918
- var _ = Bn();
1916
+ n(ts, "getAddonsStore");
1917
+ var L = ts();
1919
1918
 
1920
1919
  // src/preview-api/modules/addons/definePreview.ts
1921
- function zn(r) {
1920
+ function os(r) {
1922
1921
  return r;
1923
1922
  }
1924
- n(zn, "definePreview");
1923
+ n(os, "definePreview");
1925
1924
 
1926
1925
  // src/preview-api/modules/addons/hooks.ts
1927
1926
  import { logger as Ae } from "storybook/internal/client-logger";
1928
1927
  import {
1929
- FORCE_RE_RENDER as Gn,
1930
- RESET_STORY_ARGS as Un,
1931
- STORY_RENDERED as lt,
1932
- UPDATE_GLOBALS as Hn,
1933
- UPDATE_STORY_ARGS as Vn
1928
+ FORCE_RE_RENDER as ns,
1929
+ RESET_STORY_ARGS as ss,
1930
+ STORY_RENDERED as Et,
1931
+ UPDATE_GLOBALS as is,
1932
+ UPDATE_STORY_ARGS as as
1934
1933
  } from "storybook/internal/core-events";
1935
1934
  import { global as ze } from "@storybook/global";
1936
- var re = class {
1935
+ var Cr = class Cr {
1937
1936
  constructor() {
1938
1937
  this.hookListsMap = void 0;
1939
1938
  this.mountedDecorators = void 0;
@@ -1951,9 +1950,6 @@ var re = class {
1951
1950
  }, "renderListener");
1952
1951
  this.init();
1953
1952
  }
1954
- static {
1955
- n(this, "HooksContext");
1956
- }
1957
1953
  init() {
1958
1954
  this.hookListsMap = /* @__PURE__ */ new WeakMap(), this.mountedDecorators = /* @__PURE__ */ new Set(), this.prevMountedDecorators = /* @__PURE__ */ new Set(),
1959
1955
  this.currentHooks = [], this.nextHookIndex = 0, this.currentPhase = "NONE", this.currentEffects = [], this.prevEffects = [], this.currentDecoratorName =
@@ -1976,13 +1972,15 @@ var re = class {
1976
1972
  }), this.prevEffects = this.currentEffects, this.currentEffects = [];
1977
1973
  }
1978
1974
  addRenderListeners() {
1979
- this.removeRenderListeners(), _.getChannel().on(lt, this.renderListener);
1975
+ this.removeRenderListeners(), L.getChannel().on(Et, this.renderListener);
1980
1976
  }
1981
1977
  removeRenderListeners() {
1982
- _.getChannel().removeListener(lt, this.renderListener);
1978
+ L.getChannel().removeListener(Et, this.renderListener);
1983
1979
  }
1984
1980
  };
1985
- function ct(r) {
1981
+ n(Cr, "HooksContext");
1982
+ var re = Cr;
1983
+ function At(r) {
1986
1984
  let e = /* @__PURE__ */ n((...t) => {
1987
1985
  let { hooks: o } = typeof t[0] == "function" ? t[1] : t[0], s = o.currentPhase, i = o.currentHooks, a = o.nextHookIndex, l = o.currentDecoratorName;
1988
1986
  o.currentDecoratorName = r.name, o.prevMountedDecorators.has(r) ? (o.currentPhase = "UPDATE", o.currentHooks = o.hookListsMap.get(r) || []) :
@@ -1999,39 +1997,39 @@ function ct(r) {
1999
1997
  }, "hookified");
2000
1998
  return e.originalFn = r, e;
2001
1999
  }
2002
- n(ct, "hookify");
2003
- var xr = 0, Wn = 25, Rr = /* @__PURE__ */ n((r) => (e, t) => {
2000
+ n(At, "hookify");
2001
+ var Rr = 0, ls = 25, wr = /* @__PURE__ */ n((r) => (e, t) => {
2004
2002
  let o = r(
2005
- ct(e),
2006
- t.map((s) => ct(s))
2003
+ At(e),
2004
+ t.map((s) => At(s))
2007
2005
  );
2008
2006
  return (s) => {
2009
2007
  let { hooks: i } = s;
2010
2008
  i.prevMountedDecorators ??= /* @__PURE__ */ new Set(), i.mountedDecorators = /* @__PURE__ */ new Set([e, ...t]), i.currentContext = s, i.
2011
2009
  hasUpdates = !1;
2012
2010
  let a = o(s);
2013
- for (xr = 1; i.hasUpdates; )
2014
- if (i.hasUpdates = !1, i.currentEffects = [], a = o(s), xr += 1, xr > Wn)
2011
+ for (Rr = 1; i.hasUpdates; )
2012
+ if (i.hasUpdates = !1, i.currentEffects = [], a = o(s), Rr += 1, Rr > ls)
2015
2013
  throw new Error(
2016
2014
  "Too many re-renders. Storybook limits the number of renders to prevent an infinite loop."
2017
2015
  );
2018
2016
  return i.addRenderListeners(), a;
2019
2017
  };
2020
- }, "applyHooks"), $n = /* @__PURE__ */ n((r, e) => r.length === e.length && r.every((t, o) => t === e[o]), "areDepsEqual"), wr = /* @__PURE__ */ n(
2018
+ }, "applyHooks"), cs = /* @__PURE__ */ n((r, e) => r.length === e.length && r.every((t, o) => t === e[o]), "areDepsEqual"), Er = /* @__PURE__ */ n(
2021
2019
  () => new Error("Storybook preview hooks can only be called inside decorators and story functions."), "invalidHooksError");
2022
- function dt() {
2020
+ function Ct() {
2023
2021
  return ze.STORYBOOK_HOOKS_CONTEXT || null;
2024
2022
  }
2025
- n(dt, "getHooksContextOrNull");
2026
- function Er() {
2027
- let r = dt();
2023
+ n(Ct, "getHooksContextOrNull");
2024
+ function Ar() {
2025
+ let r = Ct();
2028
2026
  if (r == null)
2029
- throw wr();
2027
+ throw Er();
2030
2028
  return r;
2031
2029
  }
2032
- n(Er, "getHooksContextOrThrow");
2033
- function Yn(r, e, t) {
2034
- let o = Er();
2030
+ n(Ar, "getHooksContextOrThrow");
2031
+ function ds(r, e, t) {
2032
+ let o = Ar();
2035
2033
  if (o.currentPhase === "MOUNT") {
2036
2034
  t != null && !Array.isArray(t) && Ae.warn(
2037
2035
  `${r} received a final argument that is not an array (instead, received ${t}). When specified, the final argument must be an array.`
@@ -2052,13 +2050,13 @@ s type cannot change between renders.`
2052
2050
  ), t != null && s.deps != null && t.length !== s.deps.length && Ae.warn(`The final argument passed to ${r} changed size between renders.\
2053
2051
  The order and size of this array must remain constant.
2054
2052
  Previous: ${s.deps}
2055
- Incoming: ${t}`), (t == null || s.deps == null || !$n(t, s.deps)) && (e(s), s.deps = t), s;
2053
+ Incoming: ${t}`), (t == null || s.deps == null || !cs(t, s.deps)) && (e(s), s.deps = t), s;
2056
2054
  }
2057
- throw wr();
2055
+ throw Er();
2058
2056
  }
2059
- n(Yn, "useHook");
2057
+ n(ds, "useHook");
2060
2058
  function Ge(r, e, t) {
2061
- let { memoizedState: o } = Yn(
2059
+ let { memoizedState: o } = ds(
2062
2060
  r,
2063
2061
  (s) => {
2064
2062
  s.memoizedState = e();
@@ -2068,103 +2066,103 @@ function Ge(r, e, t) {
2068
2066
  return o;
2069
2067
  }
2070
2068
  n(Ge, "useMemoLike");
2071
- function Kn(r, e) {
2069
+ function ps(r, e) {
2072
2070
  return Ge("useMemo", r, e);
2073
2071
  }
2074
- n(Kn, "useMemo");
2072
+ n(ps, "useMemo");
2075
2073
  function Ce(r, e) {
2076
2074
  return Ge("useCallback", () => r, e);
2077
2075
  }
2078
2076
  n(Ce, "useCallback");
2079
- function pt(r, e) {
2077
+ function vt(r, e) {
2080
2078
  return Ge(r, () => ({ current: e }), []);
2081
2079
  }
2082
- n(pt, "useRefLike");
2083
- function Xn(r) {
2084
- return pt("useRef", r);
2080
+ n(vt, "useRefLike");
2081
+ function us(r) {
2082
+ return vt("useRef", r);
2085
2083
  }
2086
- n(Xn, "useRef");
2087
- function Jn() {
2088
- let r = dt();
2084
+ n(us, "useRef");
2085
+ function fs() {
2086
+ let r = Ct();
2089
2087
  if (r != null && r.currentPhase !== "NONE")
2090
2088
  r.hasUpdates = !0;
2091
2089
  else
2092
2090
  try {
2093
- _.getChannel().emit(Gn);
2091
+ L.getChannel().emit(ns);
2094
2092
  } catch {
2095
2093
  Ae.warn("State updates of Storybook preview hooks work only in browser");
2096
2094
  }
2097
2095
  }
2098
- n(Jn, "triggerUpdate");
2099
- function ut(r, e) {
2100
- let t = pt(
2096
+ n(fs, "triggerUpdate");
2097
+ function Pt(r, e) {
2098
+ let t = vt(
2101
2099
  r,
2102
2100
  // @ts-expect-error S type should never be function, but there's no way to tell that to TypeScript
2103
2101
  typeof e == "function" ? e() : e
2104
2102
  ), o = /* @__PURE__ */ n((s) => {
2105
- t.current = typeof s == "function" ? s(t.current) : s, Jn();
2103
+ t.current = typeof s == "function" ? s(t.current) : s, fs();
2106
2104
  }, "setState");
2107
2105
  return [t.current, o];
2108
2106
  }
2109
- n(ut, "useStateLike");
2110
- function Qn(r) {
2111
- return ut("useState", r);
2107
+ n(Pt, "useStateLike");
2108
+ function ys(r) {
2109
+ return Pt("useState", r);
2112
2110
  }
2113
- n(Qn, "useState");
2114
- function Zn(r, e, t) {
2115
- let o = t != null ? () => t(e) : e, [s, i] = ut("useReducer", o);
2111
+ n(ys, "useState");
2112
+ function ms(r, e, t) {
2113
+ let o = t != null ? () => t(e) : e, [s, i] = Pt("useReducer", o);
2116
2114
  return [s, /* @__PURE__ */ n((l) => i((c) => r(c, l)), "dispatch")];
2117
2115
  }
2118
- n(Zn, "useReducer");
2119
- function ft(r, e) {
2120
- let t = Er(), o = Ge("useEffect", () => ({ create: r }), e);
2116
+ n(ms, "useReducer");
2117
+ function Ft(r, e) {
2118
+ let t = Ar(), o = Ge("useEffect", () => ({ create: r }), e);
2121
2119
  t.currentEffects.includes(o) || t.currentEffects.push(o);
2122
2120
  }
2123
- n(ft, "useEffect");
2124
- function es(r, e = []) {
2125
- let t = _.getChannel();
2126
- return ft(() => (Object.entries(r).forEach(([o, s]) => t.on(o, s)), () => {
2121
+ n(Ft, "useEffect");
2122
+ function hs(r, e = []) {
2123
+ let t = L.getChannel();
2124
+ return Ft(() => (Object.entries(r).forEach(([o, s]) => t.on(o, s)), () => {
2127
2125
  Object.entries(r).forEach(
2128
2126
  ([o, s]) => t.removeListener(o, s)
2129
2127
  );
2130
2128
  }), [...Object.keys(r), ...e]), Ce(t.emit.bind(t), [t]);
2131
2129
  }
2132
- n(es, "useChannel");
2130
+ n(hs, "useChannel");
2133
2131
  function Ue() {
2134
- let { currentContext: r } = Er();
2132
+ let { currentContext: r } = Ar();
2135
2133
  if (r == null)
2136
- throw wr();
2134
+ throw Er();
2137
2135
  return r;
2138
2136
  }
2139
2137
  n(Ue, "useStoryContext");
2140
- function rs(r, e) {
2138
+ function gs(r, e) {
2141
2139
  let { parameters: t } = Ue();
2142
2140
  if (r)
2143
2141
  return t[r] ?? e;
2144
2142
  }
2145
- n(rs, "useParameter");
2146
- function ts() {
2147
- let r = _.getChannel(), { id: e, args: t } = Ue(), o = Ce(
2148
- (i) => r.emit(Vn, { storyId: e, updatedArgs: i }),
2143
+ n(gs, "useParameter");
2144
+ function bs() {
2145
+ let r = L.getChannel(), { id: e, args: t } = Ue(), o = Ce(
2146
+ (i) => r.emit(as, { storyId: e, updatedArgs: i }),
2149
2147
  [r, e]
2150
2148
  ), s = Ce(
2151
- (i) => r.emit(Un, { storyId: e, argNames: i }),
2149
+ (i) => r.emit(ss, { storyId: e, argNames: i }),
2152
2150
  [r, e]
2153
2151
  );
2154
2152
  return [t, o, s];
2155
2153
  }
2156
- n(ts, "useArgs");
2157
- function os() {
2158
- let r = _.getChannel(), { globals: e } = Ue(), t = Ce(
2159
- (o) => r.emit(Hn, { globals: o }),
2154
+ n(bs, "useArgs");
2155
+ function Ss() {
2156
+ let r = L.getChannel(), { globals: e } = Ue(), t = Ce(
2157
+ (o) => r.emit(is, { globals: o }),
2160
2158
  [r]
2161
2159
  );
2162
2160
  return [e, t];
2163
2161
  }
2164
- n(os, "useGlobals");
2162
+ n(Ss, "useGlobals");
2165
2163
 
2166
2164
  // src/preview-api/modules/addons/make-decorator.ts
2167
- var ns = /* @__PURE__ */ n(({
2165
+ var Ts = /* @__PURE__ */ n(({
2168
2166
  name: r,
2169
2167
  parameterName: e,
2170
2168
  wrapper: t,
@@ -2189,33 +2187,33 @@ var ns = /* @__PURE__ */ n(({
2189
2187
 
2190
2188
  // src/preview-api/modules/store/StoryStore.ts
2191
2189
  import {
2192
- CalledExtractOnStoreError as Us,
2193
- MissingStoryFromCsfFileError as Hs
2190
+ CalledExtractOnStoreError as si,
2191
+ MissingStoryFromCsfFileError as ii
2194
2192
  } from "storybook/internal/preview-errors";
2195
2193
 
2196
2194
  // ../node_modules/es-toolkit/dist/function/noop.mjs
2197
- function yt() {
2195
+ function It() {
2198
2196
  }
2199
- n(yt, "noop");
2197
+ n(It, "noop");
2200
2198
 
2201
2199
  // ../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
2202
- function Ar(r) {
2200
+ function vr(r) {
2203
2201
  return Object.getOwnPropertySymbols(r).filter((e) => Object.prototype.propertyIsEnumerable.call(r, e));
2204
2202
  }
2205
- n(Ar, "getSymbols");
2203
+ n(vr, "getSymbols");
2206
2204
 
2207
2205
  // ../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
2208
- function Cr(r) {
2206
+ function Pr(r) {
2209
2207
  return r == null ? r === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(r);
2210
2208
  }
2211
- n(Cr, "getTag");
2209
+ n(Pr, "getTag");
2212
2210
 
2213
2211
  // ../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
2214
- var mt = "[object RegExp]", ht = "[object String]", gt = "[object Number]", bt = "[object Boolean]", vr = "[object Arguments]", St = "[objec\
2215
- t Symbol]", Tt = "[object Date]", xt = "[object Map]", Rt = "[object Set]", wt = "[object Array]", Et = "[object Function]", At = "[object A\
2216
- rrayBuffer]", He = "[object Object]", Ct = "[object Error]", vt = "[object DataView]", Pt = "[object Uint8Array]", Ft = "[object Uint8Clampe\
2217
- dArray]", It = "[object Uint16Array]", Ot = "[object Uint32Array]", Dt = "[object BigUint64Array]", kt = "[object Int8Array]", jt = "[object\
2218
- Int16Array]", Mt = "[object Int32Array]", _t = "[object BigInt64Array]", Lt = "[object Float32Array]", Nt = "[object Float64Array]";
2212
+ var Ot = "[object RegExp]", Dt = "[object String]", kt = "[object Number]", jt = "[object Boolean]", Fr = "[object Arguments]", Mt = "[objec\
2213
+ t Symbol]", Lt = "[object Date]", _t = "[object Map]", Nt = "[object Set]", qt = "[object Array]", Bt = "[object Function]", zt = "[object A\
2214
+ rrayBuffer]", He = "[object Object]", Gt = "[object Error]", Ut = "[object DataView]", Ht = "[object Uint8Array]", Vt = "[object Uint8Clampe\
2215
+ dArray]", Wt = "[object Uint16Array]", $t = "[object Uint32Array]", Yt = "[object BigUint64Array]", Kt = "[object Int8Array]", Xt = "[object\
2216
+ Int16Array]", Jt = "[object Int32Array]", Qt = "[object BigInt64Array]", Zt = "[object Float32Array]", eo = "[object Float64Array]";
2219
2217
 
2220
2218
  // ../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
2221
2219
  function k(r) {
@@ -2239,7 +2237,7 @@ function H(r, e) {
2239
2237
  n(H, "mapValues");
2240
2238
 
2241
2239
  // ../node_modules/es-toolkit/dist/object/pickBy.mjs
2242
- function Pr(r, e) {
2240
+ function Ir(r, e) {
2243
2241
  let t = {}, o = Object.keys(r);
2244
2242
  for (let s = 0; s < o.length; s++) {
2245
2243
  let i = o[s], a = r[i];
@@ -2247,19 +2245,19 @@ function Pr(r, e) {
2247
2245
  }
2248
2246
  return t;
2249
2247
  }
2250
- n(Pr, "pickBy");
2248
+ n(Ir, "pickBy");
2251
2249
 
2252
2250
  // ../node_modules/es-toolkit/dist/compat/util/eq.mjs
2253
- function qt(r, e) {
2251
+ function ro(r, e) {
2254
2252
  return r === e || Number.isNaN(r) && Number.isNaN(e);
2255
2253
  }
2256
- n(qt, "eq");
2254
+ n(ro, "eq");
2257
2255
 
2258
2256
  // ../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
2259
- function Bt(r, e, t) {
2257
+ function to(r, e, t) {
2260
2258
  return ve(r, e, void 0, void 0, void 0, void 0, t);
2261
2259
  }
2262
- n(Bt, "isEqualWith");
2260
+ n(to, "isEqualWith");
2263
2261
  function ve(r, e, t, o, s, i, a) {
2264
2262
  let l = a(r, e, t, o, s, i);
2265
2263
  if (l !== void 0)
@@ -2285,23 +2283,23 @@ n(ve, "isEqualWithImpl");
2285
2283
  function Pe(r, e, t, o) {
2286
2284
  if (Object.is(r, e))
2287
2285
  return !0;
2288
- let s = Cr(r), i = Cr(e);
2289
- if (s === vr && (s = He), i === vr && (i = He), s !== i)
2286
+ let s = Pr(r), i = Pr(e);
2287
+ if (s === Fr && (s = He), i === Fr && (i = He), s !== i)
2290
2288
  return !1;
2291
2289
  switch (s) {
2292
- case ht:
2290
+ case Dt:
2293
2291
  return r.toString() === e.toString();
2294
- case gt: {
2292
+ case kt: {
2295
2293
  let c = r.valueOf(), d = e.valueOf();
2296
- return qt(c, d);
2294
+ return ro(c, d);
2297
2295
  }
2298
- case bt:
2299
- case Tt:
2300
- case St:
2296
+ case jt:
2297
+ case Lt:
2298
+ case Mt:
2301
2299
  return Object.is(r.valueOf(), e.valueOf());
2302
- case mt:
2300
+ case Ot:
2303
2301
  return r.source === e.source && r.flags === e.flags;
2304
- case Et:
2302
+ case Bt:
2305
2303
  return r === e;
2306
2304
  }
2307
2305
  t = t ?? /* @__PURE__ */ new Map();
@@ -2311,7 +2309,7 @@ function Pe(r, e, t, o) {
2311
2309
  t.set(r, e), t.set(e, r);
2312
2310
  try {
2313
2311
  switch (s) {
2314
- case xt: {
2312
+ case _t: {
2315
2313
  if (r.size !== e.size)
2316
2314
  return !1;
2317
2315
  for (let [c, d] of r.entries())
@@ -2319,7 +2317,7 @@ function Pe(r, e, t, o) {
2319
2317
  return !1;
2320
2318
  return !0;
2321
2319
  }
2322
- case Rt: {
2320
+ case Nt: {
2323
2321
  if (r.size !== e.size)
2324
2322
  return !1;
2325
2323
  let c = Array.from(r.values()), d = Array.from(e.values());
@@ -2331,18 +2329,18 @@ function Pe(r, e, t, o) {
2331
2329
  }
2332
2330
  return !0;
2333
2331
  }
2334
- case wt:
2335
- case Pt:
2336
- case Ft:
2337
- case It:
2338
- case Ot:
2339
- case Dt:
2340
- case kt:
2341
- case jt:
2342
- case Mt:
2343
- case _t:
2344
- case Lt:
2345
- case Nt: {
2332
+ case qt:
2333
+ case Ht:
2334
+ case Vt:
2335
+ case Wt:
2336
+ case $t:
2337
+ case Yt:
2338
+ case Kt:
2339
+ case Xt:
2340
+ case Jt:
2341
+ case Qt:
2342
+ case Zt:
2343
+ case eo: {
2346
2344
  if (typeof Buffer < "u" && Buffer.isBuffer(r) !== Buffer.isBuffer(e) || r.length !== e.length)
2347
2345
  return !1;
2348
2346
  for (let c = 0; c < r.length; c++)
@@ -2350,16 +2348,16 @@ function Pe(r, e, t, o) {
2350
2348
  return !1;
2351
2349
  return !0;
2352
2350
  }
2353
- case At:
2351
+ case zt:
2354
2352
  return r.byteLength !== e.byteLength ? !1 : Pe(new Uint8Array(r), new Uint8Array(e), t, o);
2355
- case vt:
2353
+ case Ut:
2356
2354
  return r.byteLength !== e.byteLength || r.byteOffset !== e.byteOffset ? !1 : Pe(new Uint8Array(r), new Uint8Array(e), t, o);
2357
- case Ct:
2355
+ case Gt:
2358
2356
  return r.name === e.name && r.message === e.message;
2359
2357
  case He: {
2360
2358
  if (!(Pe(r.constructor, e.constructor, t, o) || k(r) && k(e)))
2361
2359
  return !1;
2362
- let d = [...Object.keys(r), ...Ar(r)], p = [...Object.keys(e), ...Ar(e)];
2360
+ let d = [...Object.keys(r), ...vr(r)], p = [...Object.keys(e), ...vr(e)];
2363
2361
  if (d.length !== p.length)
2364
2362
  return !1;
2365
2363
  for (let u = 0; u < d.length; u++) {
@@ -2382,47 +2380,47 @@ function Pe(r, e, t, o) {
2382
2380
  n(Pe, "areObjectsEqual");
2383
2381
 
2384
2382
  // ../node_modules/es-toolkit/dist/predicate/isEqual.mjs
2385
- function Fr(r, e) {
2386
- return Bt(r, e, yt);
2383
+ function Or(r, e) {
2384
+ return to(r, e, It);
2387
2385
  }
2388
- n(Fr, "isEqual");
2386
+ n(Or, "isEqual");
2389
2387
 
2390
2388
  // src/preview-api/modules/store/StoryStore.ts
2391
- var Ze = ue(Or(), 1);
2389
+ var Ze = ue(kr(), 1);
2392
2390
 
2393
2391
  // src/preview-api/core-annotations.ts
2394
- import Gt from "storybook/internal/component-testing/preview";
2395
- import Ut from "storybook/actions/preview";
2396
- import Ht from "storybook/backgrounds/preview";
2397
- import Vt from "storybook/highlight/preview";
2398
- import Wt from "storybook/measure/preview";
2399
- import $t from "storybook/outline/preview";
2400
- import Yt from "storybook/test/preview";
2401
- import Kt from "storybook/viewport/preview";
2392
+ import no from "storybook/internal/component-testing/preview";
2393
+ import so from "storybook/actions/preview";
2394
+ import io from "storybook/backgrounds/preview";
2395
+ import ao from "storybook/highlight/preview";
2396
+ import lo from "storybook/measure/preview";
2397
+ import co from "storybook/outline/preview";
2398
+ import po from "storybook/test/preview";
2399
+ import uo from "storybook/viewport/preview";
2402
2400
  function te() {
2403
2401
  return [
2404
2402
  // @ts-expect-error CJS fallback
2405
- (Wt.default ?? Wt)(),
2403
+ (lo.default ?? lo)(),
2406
2404
  // @ts-expect-error CJS fallback
2407
- (Ht.default ?? Ht)(),
2405
+ (io.default ?? io)(),
2408
2406
  // @ts-expect-error CJS fallback
2409
- (Vt.default ?? Vt)(),
2407
+ (ao.default ?? ao)(),
2410
2408
  // @ts-expect-error CJS fallback
2411
- ($t.default ?? $t)(),
2409
+ (co.default ?? co)(),
2412
2410
  // @ts-expect-error CJS fallback
2413
- (Kt.default ?? Kt)(),
2411
+ (uo.default ?? uo)(),
2414
2412
  // @ts-expect-error CJS fallback
2415
- (Ut.default ?? Ut)(),
2413
+ (so.default ?? so)(),
2416
2414
  // @ts-expect-error CJS fallback
2417
- (Gt.default ?? Gt)(),
2415
+ (no.default ?? no)(),
2418
2416
  // @ts-expect-error CJS fallback
2419
- (Yt.default ?? Yt)()
2417
+ (po.default ?? po)()
2420
2418
  ];
2421
2419
  }
2422
2420
  n(te, "getCoreAnnotations");
2423
2421
 
2424
2422
  // src/preview-api/modules/store/args.ts
2425
- import { once as Dr } from "storybook/internal/client-logger";
2423
+ import { once as jr } from "storybook/internal/client-logger";
2426
2424
 
2427
2425
  // ../node_modules/ts-dedent/esm/index.js
2428
2426
  function P(r) {
@@ -2460,7 +2458,7 @@ function P(r) {
2460
2458
  n(P, "dedent");
2461
2459
 
2462
2460
  // src/preview-api/modules/store/args.ts
2463
- var fe = Symbol("incompatible"), kr = /* @__PURE__ */ n((r, e) => {
2461
+ var fe = Symbol("incompatible"), Mr = /* @__PURE__ */ n((r, e) => {
2464
2462
  let t = e.type;
2465
2463
  if (r == null || !t || e.mapping)
2466
2464
  return r;
@@ -2475,21 +2473,21 @@ var fe = Symbol("incompatible"), kr = /* @__PURE__ */ n((r, e) => {
2475
2473
  return String(r) === "true";
2476
2474
  case "array":
2477
2475
  return !t.value || !Array.isArray(r) ? fe : r.reduce((o, s, i) => {
2478
- let a = kr(s, { type: t.value });
2476
+ let a = Mr(s, { type: t.value });
2479
2477
  return a !== fe && (o[i] = a), o;
2480
2478
  }, new Array(r.length));
2481
2479
  case "object":
2482
2480
  return typeof r == "string" || typeof r == "number" ? r : !t.value || typeof r != "object" ? fe : Object.entries(r).reduce((o, [s, i]) => {
2483
- let a = kr(i, { type: t.value[s] });
2481
+ let a = Mr(i, { type: t.value[s] });
2484
2482
  return a === fe ? o : Object.assign(o, { [s]: a });
2485
2483
  }, {});
2486
2484
  default:
2487
2485
  return fe;
2488
2486
  }
2489
- }, "map"), Xt = /* @__PURE__ */ n((r, e) => Object.entries(r).reduce((t, [o, s]) => {
2487
+ }, "map"), fo = /* @__PURE__ */ n((r, e) => Object.entries(r).reduce((t, [o, s]) => {
2490
2488
  if (!e[o])
2491
2489
  return t;
2492
- let i = kr(s, e[o]);
2490
+ let i = Mr(s, e[o]);
2493
2491
  return i === fe ? t : Object.assign(t, { [o]: i });
2494
2492
  }, {}), "mapArgsToTypes"), Fe = /* @__PURE__ */ n((r, e) => Array.isArray(r) && Array.isArray(e) ? e.reduce(
2495
2493
  (t, o, s) => (t[s] = Fe(r[s], e[s]), t),
@@ -2501,20 +2499,20 @@ var fe = Symbol("incompatible"), kr = /* @__PURE__ */ n((r, e) => {
2501
2499
  } else
2502
2500
  t[o] = r[o];
2503
2501
  return t;
2504
- }, {}), "combineArgs"), Jt = /* @__PURE__ */ n((r, e) => Object.entries(e).reduce((t, [o, { options: s }]) => {
2502
+ }, {}), "combineArgs"), yo = /* @__PURE__ */ n((r, e) => Object.entries(e).reduce((t, [o, { options: s }]) => {
2505
2503
  function i() {
2506
2504
  return o in r && (t[o] = r[o]), t;
2507
2505
  }
2508
2506
  if (n(i, "allowArg"), !s)
2509
2507
  return i();
2510
2508
  if (!Array.isArray(s))
2511
- return Dr.error(P`
2509
+ return jr.error(P`
2512
2510
  Invalid argType: '${o}.options' should be an array.
2513
2511
 
2514
2512
  More info: https://storybook.js.org/docs/api/arg-types
2515
2513
  `), i();
2516
2514
  if (s.some((u) => u && ["object", "function"].includes(typeof u)))
2517
- return Dr.error(P`
2515
+ return jr.error(P`
2518
2516
  Invalid argType: '${o}.options' should only contain primitives. Use a 'mapping' for complex values.
2519
2517
 
2520
2518
  More info: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
@@ -2523,11 +2521,11 @@ var fe = Symbol("incompatible"), kr = /* @__PURE__ */ n((r, e) => {
2523
2521
  if (r[o] === void 0 || s.includes(r[o]) || c)
2524
2522
  return i();
2525
2523
  let d = a ? `${o}[${l}]` : o, p = s.map((u) => typeof u == "string" ? `'${u}'` : String(u)).join(", ");
2526
- return Dr.warn(`Received illegal value for '${d}'. Supported options: ${p}`), t;
2524
+ return jr.warn(`Received illegal value for '${d}'. Supported options: ${p}`), t;
2527
2525
  }, {}), "validateOptions"), oe = Symbol("Deeply equal"), ye = /* @__PURE__ */ n((r, e) => {
2528
2526
  if (typeof r != typeof e)
2529
2527
  return e;
2530
- if (Fr(r, e))
2528
+ if (Or(r, e))
2531
2529
  return oe;
2532
2530
  if (Array.isArray(r) && Array.isArray(e)) {
2533
2531
  let t = e.reduce((o, s, i) => {
@@ -2540,32 +2538,29 @@ var fe = Symbol("incompatible"), kr = /* @__PURE__ */ n((r, e) => {
2540
2538
  let s = ye(r?.[o], e?.[o]);
2541
2539
  return s === oe ? t : Object.assign(t, { [o]: s });
2542
2540
  }, {}) : e;
2543
- }, "deepDiff"), jr = "UNTARGETED";
2544
- function Qt({
2541
+ }, "deepDiff"), Lr = "UNTARGETED";
2542
+ function mo({
2545
2543
  args: r,
2546
2544
  argTypes: e
2547
2545
  }) {
2548
2546
  let t = {};
2549
2547
  return Object.entries(r).forEach(([o, s]) => {
2550
- let { target: i = jr } = e[o] || {};
2548
+ let { target: i = Lr } = e[o] || {};
2551
2549
  t[i] = t[i] || {}, t[i][o] = s;
2552
2550
  }), t;
2553
2551
  }
2554
- n(Qt, "groupArgsByTarget");
2552
+ n(mo, "groupArgsByTarget");
2555
2553
 
2556
2554
  // src/preview-api/modules/store/ArgsStore.ts
2557
- function ss(r) {
2555
+ function xs(r) {
2558
2556
  return Object.keys(r).forEach((e) => r[e] === void 0 && delete r[e]), r;
2559
2557
  }
2560
- n(ss, "deleteUndefined");
2561
- var Ve = class {
2558
+ n(xs, "deleteUndefined");
2559
+ var _r = class _r {
2562
2560
  constructor() {
2563
2561
  this.initialArgsByStoryId = {};
2564
2562
  this.argsByStoryId = {};
2565
2563
  }
2566
- static {
2567
- n(this, "ArgsStore");
2568
- }
2569
2564
  get(e) {
2570
2565
  if (!(e in this.argsByStoryId))
2571
2566
  throw new Error(`No args known for ${e} -- has it been rendered yet?`);
@@ -2580,35 +2575,34 @@ var Ve = class {
2580
2575
  }
2581
2576
  }
2582
2577
  updateFromDelta(e, t) {
2583
- let o = Jt(t, e.argTypes);
2578
+ let o = yo(t, e.argTypes);
2584
2579
  this.argsByStoryId[e.id] = Fe(this.argsByStoryId[e.id], o);
2585
2580
  }
2586
2581
  updateFromPersisted(e, t) {
2587
- let o = Xt(t, e.argTypes);
2582
+ let o = fo(t, e.argTypes);
2588
2583
  return this.updateFromDelta(e, o);
2589
2584
  }
2590
2585
  update(e, t) {
2591
2586
  if (!(e in this.argsByStoryId))
2592
2587
  throw new Error(`No args known for ${e} -- has it been rendered yet?`);
2593
- this.argsByStoryId[e] = ss({
2588
+ this.argsByStoryId[e] = xs({
2594
2589
  ...this.argsByStoryId[e],
2595
2590
  ...t
2596
2591
  });
2597
2592
  }
2598
2593
  };
2594
+ n(_r, "ArgsStore");
2595
+ var Ve = _r;
2599
2596
 
2600
2597
  // src/preview-api/modules/store/GlobalsStore.ts
2601
- import { logger as is } from "storybook/internal/client-logger";
2598
+ import { logger as Rs } from "storybook/internal/client-logger";
2602
2599
 
2603
2600
  // src/preview-api/modules/store/csf/getValuesFromArgTypes.ts
2604
2601
  var We = /* @__PURE__ */ n((r = {}) => Object.entries(r).reduce((e, [t, { defaultValue: o }]) => (typeof o < "u" && (e[t] = o), e), {}), "ge\
2605
2602
  tValuesFromArgTypes");
2606
2603
 
2607
2604
  // src/preview-api/modules/store/GlobalsStore.ts
2608
- var $e = class {
2609
- static {
2610
- n(this, "GlobalsStore");
2611
- }
2605
+ var Nr = class Nr {
2612
2606
  constructor({
2613
2607
  globals: e = {},
2614
2608
  globalTypes: t = {}
@@ -2622,7 +2616,7 @@ var $e = class {
2622
2616
  this.initialGlobals = { ...s, ...e }, this.globals = this.initialGlobals, o && o !== oe && this.updateFromPersisted(o);
2623
2617
  }
2624
2618
  filterAllowedGlobals(e) {
2625
- return Object.entries(e).reduce((t, [o, s]) => (this.allowedGlobalNames.has(o) ? t[o] = s : is.warn(
2619
+ return Object.entries(e).reduce((t, [o, s]) => (this.allowedGlobalNames.has(o) ? t[o] = s : Rs.warn(
2626
2620
  `Attempted to set a global (${o}) that is not defined in initial globals or globalTypes`
2627
2621
  ), t), {});
2628
2622
  }
@@ -2637,19 +2631,18 @@ var $e = class {
2637
2631
  this.globals = { ...this.globals, ...this.filterAllowedGlobals(e) };
2638
2632
  }
2639
2633
  };
2634
+ n(Nr, "GlobalsStore");
2635
+ var $e = Nr;
2640
2636
 
2641
2637
  // src/preview-api/modules/store/StoryIndexStore.ts
2642
- var Zt = ue(Or(), 1);
2643
- import { MissingStoryAfterHmrError as as } from "storybook/internal/preview-errors";
2644
- var ls = (0, Zt.default)(1)(
2638
+ var ho = ue(kr(), 1);
2639
+ import { MissingStoryAfterHmrError as ws } from "storybook/internal/preview-errors";
2640
+ var Es = (0, ho.default)(1)(
2645
2641
  (r) => Object.values(r).reduce(
2646
2642
  (e, t) => (e[t.importPath] = e[t.importPath] || t, e),
2647
2643
  {}
2648
2644
  )
2649
- ), Ye = class {
2650
- static {
2651
- n(this, "StoryIndexStore");
2652
- }
2645
+ ), qr = class qr {
2653
2646
  constructor({ entries: e } = { v: 5, entries: {} }) {
2654
2647
  this.entries = e;
2655
2648
  }
@@ -2665,33 +2658,35 @@ var ls = (0, Zt.default)(1)(
2665
2658
  storyIdToEntry(e) {
2666
2659
  let t = this.entries[e];
2667
2660
  if (!t)
2668
- throw new as({ storyId: e });
2661
+ throw new ws({ storyId: e });
2669
2662
  return t;
2670
2663
  }
2671
2664
  importPathToEntry(e) {
2672
- return ls(this.entries)[e];
2665
+ return Es(this.entries)[e];
2673
2666
  }
2674
2667
  };
2668
+ n(qr, "StoryIndexStore");
2669
+ var Ye = qr;
2675
2670
 
2676
2671
  // src/preview-api/modules/store/csf/normalizeInputTypes.ts
2677
- var cs = /* @__PURE__ */ n((r) => typeof r == "string" ? { name: r } : r, "normalizeType"), ds = /* @__PURE__ */ n((r) => typeof r == "strin\
2678
- g" ? { type: r } : r, "normalizeControl"), ps = /* @__PURE__ */ n((r, e) => {
2672
+ var As = /* @__PURE__ */ n((r) => typeof r == "string" ? { name: r } : r, "normalizeType"), Cs = /* @__PURE__ */ n((r) => typeof r == "strin\
2673
+ g" ? { type: r } : r, "normalizeControl"), vs = /* @__PURE__ */ n((r, e) => {
2679
2674
  let { type: t, control: o, ...s } = r, i = {
2680
2675
  name: e,
2681
2676
  ...s
2682
2677
  };
2683
- return t && (i.type = cs(t)), o ? i.control = ds(o) : o === !1 && (i.control = { disable: !0 }), i;
2684
- }, "normalizeInputType"), ne = /* @__PURE__ */ n((r) => H(r, ps), "normalizeInputTypes");
2678
+ return t && (i.type = As(t)), o ? i.control = Cs(o) : o === !1 && (i.control = { disable: !0 }), i;
2679
+ }, "normalizeInputType"), ne = /* @__PURE__ */ n((r) => H(r, vs), "normalizeInputTypes");
2685
2680
 
2686
2681
  // src/preview-api/modules/store/csf/normalizeStory.ts
2687
- import { deprecate as us, logger as fs } from "storybook/internal/client-logger";
2688
- import { storyNameFromExport as ys, toId as ms } from "storybook/internal/csf";
2682
+ import { deprecate as Ps, logger as Fs } from "storybook/internal/client-logger";
2683
+ import { storyNameFromExport as Is, toId as Os } from "storybook/internal/csf";
2689
2684
 
2690
2685
  // src/preview-api/modules/store/csf/normalizeArrays.ts
2691
2686
  var v = /* @__PURE__ */ n((r) => Array.isArray(r) ? r : r ? [r] : [], "normalizeArrays");
2692
2687
 
2693
2688
  // src/preview-api/modules/store/csf/normalizeStory.ts
2694
- var hs = P`
2689
+ var Ds = P`
2695
2690
  CSF .story annotations deprecated; annotate story functions directly:
2696
2691
  - StoryFn.story.name => StoryFn.storyName
2697
2692
  - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
@@ -2699,8 +2694,8 @@ See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-
2699
2694
  `;
2700
2695
  function me(r, e, t) {
2701
2696
  let o = e, s = typeof e == "function" ? e : null, { story: i } = o;
2702
- i && (fs.debug("deprecated story", i), us(hs));
2703
- let a = ys(r), l = typeof o != "function" && o.name || o.storyName || i?.name || a, c = [
2697
+ i && (Fs.debug("deprecated story", i), Ps(Ds));
2698
+ let a = Is(r), l = typeof o != "function" && o.name || o.storyName || i?.name || a, c = [
2704
2699
  ...v(o.decorators),
2705
2700
  ...v(i?.decorators)
2706
2701
  ], d = { ...i?.parameters, ...o.parameters }, p = { ...i?.args, ...o.args }, u = { ...i?.argTypes, ...o.argTypes }, y = [...v(o.loaders), ...v(
@@ -2710,7 +2705,7 @@ function me(r, e, t) {
2710
2705
  ], g = [
2711
2706
  ...v(o.experimental_afterEach),
2712
2707
  ...v(i?.experimental_afterEach)
2713
- ], { render: b, play: m, tags: T = [], globals: x = {} } = o, f = d.__id || ms(t.id, a);
2708
+ ], { render: b, play: m, tags: T = [], globals: x = {} } = o, f = d.__id || Os(t.id, a);
2714
2709
  return {
2715
2710
  moduleExport: e,
2716
2711
  id: f,
@@ -2732,15 +2727,15 @@ function me(r, e, t) {
2732
2727
  n(me, "normalizeStory");
2733
2728
 
2734
2729
  // src/preview-api/modules/store/csf/processCSFFile.ts
2735
- import { logger as ro } from "storybook/internal/client-logger";
2736
- import { isExportStory as eo, isStory as bs } from "storybook/internal/csf";
2730
+ import { logger as bo } from "storybook/internal/client-logger";
2731
+ import { isExportStory as go, isStory as js } from "storybook/internal/csf";
2737
2732
 
2738
2733
  // src/preview-api/modules/store/csf/normalizeComponentAnnotations.ts
2739
- import { sanitize as gs } from "storybook/internal/csf";
2734
+ import { sanitize as ks } from "storybook/internal/csf";
2740
2735
  function Ie(r, e = r.title, t) {
2741
2736
  let { id: o, argTypes: s } = r;
2742
2737
  return {
2743
- id: gs(o || e),
2738
+ id: ks(o || e),
2744
2739
  ...r,
2745
2740
  title: e,
2746
2741
  ...s && { argTypes: ne(s) },
@@ -2753,29 +2748,29 @@ function Ie(r, e = r.title, t) {
2753
2748
  n(Ie, "normalizeComponentAnnotations");
2754
2749
 
2755
2750
  // src/preview-api/modules/store/csf/processCSFFile.ts
2756
- var Ss = /* @__PURE__ */ n((r) => {
2751
+ var Ms = /* @__PURE__ */ n((r) => {
2757
2752
  let { globals: e, globalTypes: t } = r;
2758
- (e || t) && ro.error(
2753
+ (e || t) && bo.error(
2759
2754
  "Global args/argTypes can only be set globally",
2760
2755
  JSON.stringify({
2761
2756
  globals: e,
2762
2757
  globalTypes: t
2763
2758
  })
2764
2759
  );
2765
- }, "checkGlobals"), Ts = /* @__PURE__ */ n((r) => {
2760
+ }, "checkGlobals"), Ls = /* @__PURE__ */ n((r) => {
2766
2761
  let { options: e } = r;
2767
- e?.storySort && ro.error("The storySort option parameter can only be set globally");
2762
+ e?.storySort && bo.error("The storySort option parameter can only be set globally");
2768
2763
  }, "checkStorySort"), Ke = /* @__PURE__ */ n((r) => {
2769
- r && (Ss(r), Ts(r));
2764
+ r && (Ms(r), Ls(r));
2770
2765
  }, "checkDisallowedParameters");
2771
- function to(r, e, t) {
2766
+ function So(r, e, t) {
2772
2767
  let { default: o, __namedExportsOrder: s, ...i } = r, a = Object.values(i)[0];
2773
- if (bs(a)) {
2768
+ if (js(a)) {
2774
2769
  let d = Ie(a.meta.input, t, e);
2775
2770
  Ke(d.parameters);
2776
2771
  let p = { meta: d, stories: {}, moduleExports: r };
2777
2772
  return Object.keys(i).forEach((u) => {
2778
- if (eo(u, d)) {
2773
+ if (go(u, d)) {
2779
2774
  let y = me(u, i[u].input, d);
2780
2775
  Ke(y.parameters), p.stories[y.id] = y;
2781
2776
  }
@@ -2789,37 +2784,37 @@ function to(r, e, t) {
2789
2784
  Ke(l.parameters);
2790
2785
  let c = { meta: l, stories: {}, moduleExports: r };
2791
2786
  return Object.keys(i).forEach((d) => {
2792
- if (eo(d, l)) {
2787
+ if (go(d, l)) {
2793
2788
  let p = me(d, i[d], l);
2794
2789
  Ke(p.parameters), c.stories[p.id] = p;
2795
2790
  }
2796
2791
  }), c;
2797
2792
  }
2798
- n(to, "processCSFFile");
2793
+ n(So, "processCSFFile");
2799
2794
 
2800
2795
  // src/preview-api/modules/store/csf/prepareStory.ts
2801
- import { combineTags as Rs, includeConditionalArg as ws } from "storybook/internal/csf";
2802
- import { NoRenderFunctionError as Es } from "storybook/internal/preview-errors";
2803
- import { global as As } from "@storybook/global";
2804
- import { global as Cs } from "@storybook/global";
2796
+ import { combineTags as Ns, includeConditionalArg as qs } from "storybook/internal/csf";
2797
+ import { NoRenderFunctionError as Bs } from "storybook/internal/preview-errors";
2798
+ import { global as zs } from "@storybook/global";
2799
+ import { global as Gs } from "@storybook/global";
2805
2800
 
2806
2801
  // src/preview-api/modules/preview-web/render/mount-utils.ts
2807
- function no(r) {
2808
- return r != null && xs(r).includes("mount");
2802
+ function xo(r) {
2803
+ return r != null && _s(r).includes("mount");
2809
2804
  }
2810
- n(no, "mountDestructured");
2811
- function xs(r) {
2805
+ n(xo, "mountDestructured");
2806
+ function _s(r) {
2812
2807
  let e = r.toString().match(/[^(]*\(([^)]*)/);
2813
2808
  if (!e)
2814
2809
  return [];
2815
- let t = oo(e[1]);
2810
+ let t = To(e[1]);
2816
2811
  if (!t.length)
2817
2812
  return [];
2818
2813
  let o = t[0];
2819
- return o.startsWith("{") && o.endsWith("}") ? oo(o.slice(1, -1).replace(/\s/g, "")).map((i) => i.replace(/:.*|=.*/g, "")) : [];
2814
+ return o.startsWith("{") && o.endsWith("}") ? To(o.slice(1, -1).replace(/\s/g, "")).map((i) => i.replace(/:.*|=.*/g, "")) : [];
2820
2815
  }
2821
- n(xs, "getUsedProps");
2822
- function oo(r) {
2816
+ n(_s, "getUsedProps");
2817
+ function To(r) {
2823
2818
  let e = [], t = [], o = 0;
2824
2819
  for (let i = 0; i < r.length; i++)
2825
2820
  if (r[i] === "{" || r[i] === "[")
@@ -2833,15 +2828,15 @@ function oo(r) {
2833
2828
  let s = r.substring(o).trim();
2834
2829
  return s && e.push(s), e;
2835
2830
  }
2836
- n(oo, "splitByComma");
2831
+ n(To, "splitByComma");
2837
2832
 
2838
2833
  // src/preview-api/modules/store/decorators.ts
2839
- function so(r, e, t) {
2834
+ function Ro(r, e, t) {
2840
2835
  let o = t(r);
2841
2836
  return (s) => e(o, s);
2842
2837
  }
2843
- n(so, "decorateStory");
2844
- function io({
2838
+ n(Ro, "decorateStory");
2839
+ function wo({
2845
2840
  componentId: r,
2846
2841
  title: e,
2847
2842
  kind: t,
@@ -2855,38 +2850,38 @@ function io({
2855
2850
  } = {}) {
2856
2851
  return d;
2857
2852
  }
2858
- n(io, "sanitizeStoryContextUpdate");
2859
- function Mr(r, e) {
2853
+ n(wo, "sanitizeStoryContextUpdate");
2854
+ function Br(r, e) {
2860
2855
  let t = {}, o = /* @__PURE__ */ n((i) => (a) => {
2861
2856
  if (!t.value)
2862
2857
  throw new Error("Decorated function called without init");
2863
2858
  return t.value = {
2864
2859
  ...t.value,
2865
- ...io(a)
2860
+ ...wo(a)
2866
2861
  }, i(t.value);
2867
2862
  }, "bindWithContext"), s = e.reduce(
2868
- (i, a) => so(i, a, o),
2863
+ (i, a) => Ro(i, a, o),
2869
2864
  r
2870
2865
  );
2871
2866
  return (i) => (t.value = i, s(i));
2872
2867
  }
2873
- n(Mr, "defaultDecorateStory");
2868
+ n(Br, "defaultDecorateStory");
2874
2869
 
2875
2870
  // src/preview-api/modules/store/parameters.ts
2876
- var L = /* @__PURE__ */ n((...r) => {
2871
+ var _ = /* @__PURE__ */ n((...r) => {
2877
2872
  let e = {}, t = r.filter(Boolean), o = t.reduce((s, i) => (Object.entries(i).forEach(([a, l]) => {
2878
2873
  let c = s[a];
2879
2874
  Array.isArray(l) || typeof c > "u" ? s[a] = l : k(l) && k(c) ? e[a] = !0 : typeof l < "u" && (s[a] = l);
2880
2875
  }), s), {});
2881
2876
  return Object.keys(e).forEach((s) => {
2882
2877
  let i = t.filter(Boolean).map((a) => a[s]).filter((a) => typeof a < "u");
2883
- i.every((a) => k(a)) ? o[s] = L(...i) : o[s] = i[i.length - 1];
2878
+ i.every((a) => k(a)) ? o[s] = _(...i) : o[s] = i[i.length - 1];
2884
2879
  }), o;
2885
2880
  }, "combineParameters");
2886
2881
 
2887
2882
  // src/preview-api/modules/store/csf/prepareStory.ts
2888
2883
  function Oe(r, e, t) {
2889
- let { moduleExport: o, id: s, name: i } = r || {}, a = ao(
2884
+ let { moduleExport: o, id: s, name: i } = r || {}, a = Eo(
2890
2885
  r,
2891
2886
  e,
2892
2887
  t
@@ -2927,15 +2922,15 @@ function Oe(r, e, t) {
2927
2922
  return;
2928
2923
  await F(w);
2929
2924
  }
2930
- }, "applyAfterEach"), p = /* @__PURE__ */ n((w) => w.originalStoryFn(w.args, w), "undecoratedStoryFn"), { applyDecorators: u = Mr, runStep: y } = t,
2925
+ }, "applyAfterEach"), p = /* @__PURE__ */ n((w) => w.originalStoryFn(w.args, w), "undecoratedStoryFn"), { applyDecorators: u = Br, runStep: y } = t,
2931
2926
  h = [
2932
2927
  ...v(r?.decorators),
2933
2928
  ...v(e?.decorators),
2934
2929
  ...v(t?.decorators)
2935
- ], g = r?.userStoryFn || r?.render || e.render || t.render, b = Rr(u)(p, h), m = /* @__PURE__ */ n((w) => b(w), "unboundStoryFn"), T = r?.
2936
- play ?? e?.play, x = no(T);
2930
+ ], g = r?.userStoryFn || r?.render || e.render || t.render, b = wr(u)(p, h), m = /* @__PURE__ */ n((w) => b(w), "unboundStoryFn"), T = r?.
2931
+ play ?? e?.play, x = xo(T);
2937
2932
  if (!g && !x)
2938
- throw new Es({ id: s });
2933
+ throw new Bs({ id: s });
2939
2934
  let f = /* @__PURE__ */ n((w) => async () => (await w.renderToCanvas(), w.canvas), "defaultMount"), S = r.mount ?? e.mount ?? t.mount ?? f,
2940
2935
  R = t.testingLibraryRender;
2941
2936
  return {
@@ -2960,25 +2955,25 @@ function Oe(r, e, t) {
2960
2955
  };
2961
2956
  }
2962
2957
  n(Oe, "prepareStory");
2963
- function _r(r, e, t) {
2958
+ function zr(r, e, t) {
2964
2959
  return {
2965
- ...ao(void 0, r, e),
2960
+ ...Eo(void 0, r, e),
2966
2961
  moduleExport: t
2967
2962
  };
2968
2963
  }
2969
- n(_r, "prepareMeta");
2970
- function ao(r, e, t) {
2971
- let o = ["dev", "test"], s = Cs.DOCS_OPTIONS?.autodocs === !0 ? ["autodocs"] : [], i = Rs(
2964
+ n(zr, "prepareMeta");
2965
+ function Eo(r, e, t) {
2966
+ let o = ["dev", "test"], s = Gs.DOCS_OPTIONS?.autodocs === !0 ? ["autodocs"] : [], i = Ns(
2972
2967
  ...o,
2973
2968
  ...s,
2974
2969
  ...t.tags ?? [],
2975
2970
  ...e.tags ?? [],
2976
2971
  ...r?.tags ?? []
2977
- ), a = L(
2972
+ ), a = _(
2978
2973
  t.parameters,
2979
2974
  e.parameters,
2980
2975
  r?.parameters
2981
- ), { argTypesEnhancers: l = [], argsEnhancers: c = [] } = t, d = L(
2976
+ ), { argTypesEnhancers: l = [], argsEnhancers: c = [] } = t, d = _(
2982
2977
  t.argTypes,
2983
2978
  e.argTypes,
2984
2979
  r?.argTypes
@@ -3030,20 +3025,20 @@ function ao(r, e, t) {
3030
3025
  let { name: g, story: b, ...m } = y;
3031
3026
  return m;
3032
3027
  }
3033
- n(ao, "preparePartialAnnotations");
3028
+ n(Eo, "preparePartialAnnotations");
3034
3029
  function Xe(r) {
3035
3030
  let { args: e } = r, t = {
3036
3031
  ...r,
3037
3032
  allArgs: void 0,
3038
3033
  argsByTarget: void 0
3039
3034
  };
3040
- if (As.FEATURES?.argTypeTargetsV7) {
3041
- let i = Qt(r);
3035
+ if (zs.FEATURES?.argTypeTargetsV7) {
3036
+ let i = mo(r);
3042
3037
  t = {
3043
3038
  ...r,
3044
3039
  allArgs: r.args,
3045
3040
  argsByTarget: i,
3046
- args: i[jr] || {}
3041
+ args: i[Lr] || {}
3047
3042
  };
3048
3043
  }
3049
3044
  let o = Object.entries(t.args).reduce((i, [a, l]) => {
@@ -3056,15 +3051,15 @@ function Xe(r) {
3056
3051
  return i[a] = Array.isArray(l) ? l.map(c) : c(l), i;
3057
3052
  }, {}), s = Object.entries(o).reduce((i, [a, l]) => {
3058
3053
  let c = t.argTypes[a] || {};
3059
- return ws(c, o, t.globals) && (i[a] = l), i;
3054
+ return qs(c, o, t.globals) && (i[a] = l), i;
3060
3055
  }, {});
3061
3056
  return { ...t, unmappedArgs: e, args: s };
3062
3057
  }
3063
3058
  n(Xe, "prepareContext");
3064
3059
 
3065
3060
  // src/preview-api/modules/store/inferArgTypes.ts
3066
- import { logger as vs } from "storybook/internal/client-logger";
3067
- var Lr = /* @__PURE__ */ n((r, e, t) => {
3061
+ import { logger as Us } from "storybook/internal/client-logger";
3062
+ var Gr = /* @__PURE__ */ n((r, e, t) => {
3068
3063
  let o = typeof r;
3069
3064
  switch (o) {
3070
3065
  case "boolean":
@@ -3076,44 +3071,44 @@ var Lr = /* @__PURE__ */ n((r, e, t) => {
3076
3071
  default:
3077
3072
  break;
3078
3073
  }
3079
- return r ? t.has(r) ? (vs.warn(P`
3074
+ return r ? t.has(r) ? (Us.warn(P`
3080
3075
  We've detected a cycle in arg '${e}'. Args should be JSON-serializable.
3081
3076
 
3082
3077
  Consider using the mapping feature or fully custom args:
3083
3078
  - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
3084
3079
  - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
3085
- `), { name: "other", value: "cyclic object" }) : (t.add(r), Array.isArray(r) ? { name: "array", value: r.length > 0 ? Lr(r[0], e, new Set(
3086
- t)) : { name: "other", value: "unknown" } } : { name: "object", value: H(r, (i) => Lr(i, e, new Set(t))) }) : { name: "object", value: {} };
3087
- }, "inferType"), Nr = /* @__PURE__ */ n((r) => {
3080
+ `), { name: "other", value: "cyclic object" }) : (t.add(r), Array.isArray(r) ? { name: "array", value: r.length > 0 ? Gr(r[0], e, new Set(
3081
+ t)) : { name: "other", value: "unknown" } } : { name: "object", value: H(r, (i) => Gr(i, e, new Set(t))) }) : { name: "object", value: {} };
3082
+ }, "inferType"), Ur = /* @__PURE__ */ n((r) => {
3088
3083
  let { id: e, argTypes: t = {}, initialArgs: o = {} } = r, s = H(o, (a, l) => ({
3089
3084
  name: l,
3090
- type: Lr(a, `${e}.${l}`, /* @__PURE__ */ new Set())
3085
+ type: Gr(a, `${e}.${l}`, /* @__PURE__ */ new Set())
3091
3086
  })), i = H(t, (a, l) => ({
3092
3087
  name: l
3093
3088
  }));
3094
- return L(s, i, t);
3089
+ return _(s, i, t);
3095
3090
  }, "inferArgTypes");
3096
- Nr.secondPass = !0;
3091
+ Ur.secondPass = !0;
3097
3092
 
3098
3093
  // src/preview-api/modules/store/inferControls.ts
3099
- import { logger as Ps } from "storybook/internal/client-logger";
3094
+ import { logger as Hs } from "storybook/internal/client-logger";
3100
3095
 
3101
3096
  // src/preview-api/modules/store/filterArgTypes.ts
3102
- var lo = /* @__PURE__ */ n((r, e) => Array.isArray(e) ? e.includes(r) : r.match(e), "matches"), Je = /* @__PURE__ */ n((r, e, t) => !e && !t ?
3103
- r : r && Pr(r, (o, s) => {
3097
+ var Ao = /* @__PURE__ */ n((r, e) => Array.isArray(e) ? e.includes(r) : r.match(e), "matches"), Je = /* @__PURE__ */ n((r, e, t) => !e && !t ?
3098
+ r : r && Ir(r, (o, s) => {
3104
3099
  let i = o.name || s.toString();
3105
- return !!(!e || lo(i, e)) && (!t || !lo(i, t));
3100
+ return !!(!e || Ao(i, e)) && (!t || !Ao(i, t));
3106
3101
  }), "filterArgTypes");
3107
3102
 
3108
3103
  // src/preview-api/modules/store/inferControls.ts
3109
- var Fs = /* @__PURE__ */ n((r, e, t) => {
3104
+ var Vs = /* @__PURE__ */ n((r, e, t) => {
3110
3105
  let { type: o, options: s } = r;
3111
3106
  if (o) {
3112
3107
  if (t.color && t.color.test(e)) {
3113
3108
  let i = o.name;
3114
3109
  if (i === "string")
3115
3110
  return { control: { type: "color" } };
3116
- i !== "enum" && Ps.warn(
3111
+ i !== "enum" && Hs.warn(
3117
3112
  `Addon controls: Control of type color only supports string, received "${i}" instead`
3118
3113
  );
3119
3114
  }
@@ -3146,8 +3141,8 @@ var Fs = /* @__PURE__ */ n((r, e, t) => {
3146
3141
  } = r;
3147
3142
  if (!t)
3148
3143
  return e;
3149
- let a = Je(e, o, s), l = H(a, (c, d) => c?.type && Fs(c, d.toString(), i));
3150
- return L(l, a);
3144
+ let a = Je(e, o, s), l = H(a, (c, d) => c?.type && Vs(c, d.toString(), i));
3145
+ return _(l, a);
3151
3146
  }, "inferControls");
3152
3147
  De.secondPass = !0;
3153
3148
 
@@ -3172,7 +3167,7 @@ function he({
3172
3167
  experimental_afterEach: v(a),
3173
3168
  argTypesEnhancers: [
3174
3169
  ...t || [],
3175
- Nr,
3170
+ Ur,
3176
3171
  // There's an architectural decision to be made regarding embedded addons in core:
3177
3172
  //
3178
3173
  // Option 1: Keep embedded addons but ensure consistency by moving addon-specific code
@@ -3197,10 +3192,10 @@ function he({
3197
3192
  n(he, "normalizeProjectAnnotations");
3198
3193
 
3199
3194
  // src/preview-api/modules/store/csf/composeConfigs.ts
3200
- import { global as Is } from "@storybook/global";
3195
+ import { global as Ws } from "@storybook/global";
3201
3196
 
3202
3197
  // src/preview-api/modules/store/csf/beforeAll.ts
3203
- var co = /* @__PURE__ */ n((r) => async () => {
3198
+ var Co = /* @__PURE__ */ n((r) => async () => {
3204
3199
  let e = [];
3205
3200
  for (let t of r) {
3206
3201
  let o = await t();
@@ -3213,7 +3208,7 @@ var co = /* @__PURE__ */ n((r) => async () => {
3213
3208
  }, "composeBeforeAllHooks");
3214
3209
 
3215
3210
  // src/preview-api/modules/store/csf/stepRunners.ts
3216
- function qr(r) {
3211
+ function Hr(r) {
3217
3212
  return async (e, t, o) => {
3218
3213
  await r.reduceRight(
3219
3214
  (i, a) => async () => a(e, i, o),
@@ -3221,7 +3216,7 @@ function qr(r) {
3221
3216
  )();
3222
3217
  };
3223
3218
  }
3224
- n(qr, "composeStepRunners");
3219
+ n(Hr, "composeStepRunners");
3225
3220
 
3226
3221
  // src/preview-api/modules/store/csf/composeConfigs.ts
3227
3222
  function je(r, e) {
@@ -3246,9 +3241,9 @@ n(ke, "getSingletonField");
3246
3241
  function Y(r) {
3247
3242
  let e = [te(), ...r], t = $(e, "argTypesEnhancers"), o = je(e, "runStep"), s = $(e, "beforeAll");
3248
3243
  return {
3249
- parameters: L(...je(e, "parameters")),
3244
+ parameters: _(...je(e, "parameters")),
3250
3245
  decorators: $(e, "decorators", {
3251
- reverseFileOrder: !(Is.FEATURES?.legacyDecoratorFileOrder ?? !1)
3246
+ reverseFileOrder: !(Ws.FEATURES?.legacyDecoratorFileOrder ?? !1)
3252
3247
  }),
3253
3248
  args: Qe(e, "args"),
3254
3249
  argsEnhancers: $(e, "argsEnhancers"),
@@ -3260,13 +3255,13 @@ function Y(r) {
3260
3255
  initialGlobals: Qe(e, "initialGlobals"),
3261
3256
  globalTypes: Qe(e, "globalTypes"),
3262
3257
  loaders: $(e, "loaders"),
3263
- beforeAll: co(s),
3258
+ beforeAll: Co(s),
3264
3259
  beforeEach: $(e, "beforeEach"),
3265
3260
  experimental_afterEach: $(e, "experimental_afterEach"),
3266
3261
  render: ke(e, "render"),
3267
3262
  renderToCanvas: ke(e, "renderToCanvas"),
3268
3263
  applyDecorators: ke(e, "applyDecorators"),
3269
- runStep: qr(o),
3264
+ runStep: Hr(o),
3270
3265
  tags: $(e, "tags"),
3271
3266
  mount: ke(e, "mount"),
3272
3267
  testingLibraryRender: ke(e, "testingLibraryRender")
@@ -3275,57 +3270,56 @@ function Y(r) {
3275
3270
  n(Y, "composeConfigs");
3276
3271
 
3277
3272
  // src/preview-api/modules/store/csf/portable-stories.ts
3278
- import { isExportStory as Ds } from "storybook/internal/csf";
3279
- import { MountMustBeDestructuredError as ks } from "storybook/internal/preview-errors";
3273
+ import { isExportStory as Ys } from "storybook/internal/csf";
3274
+ import { MountMustBeDestructuredError as Ks } from "storybook/internal/preview-errors";
3280
3275
 
3281
3276
  // src/preview-api/modules/store/reporter-api.ts
3282
- var se = class {
3277
+ var Vr = class Vr {
3283
3278
  constructor() {
3284
3279
  this.reports = [];
3285
3280
  }
3286
- static {
3287
- n(this, "ReporterAPI");
3288
- }
3289
3281
  async addReport(e) {
3290
3282
  this.reports.push(e);
3291
3283
  }
3292
3284
  };
3285
+ n(Vr, "ReporterAPI");
3286
+ var se = Vr;
3293
3287
 
3294
3288
  // src/preview-api/modules/store/csf/csf-factory-utils.ts
3295
- import { isStory as Os } from "storybook/internal/csf";
3296
- function Br(r, e, t) {
3297
- return Os(r) ? {
3289
+ import { isStory as $s } from "storybook/internal/csf";
3290
+ function Wr(r, e, t) {
3291
+ return $s(r) ? {
3298
3292
  story: r.input,
3299
3293
  meta: r.meta.input,
3300
3294
  preview: r.meta.preview.composed
3301
3295
  } : { story: r, meta: e, preview: t };
3302
3296
  }
3303
- n(Br, "getCsfFactoryAnnotations");
3297
+ n(Wr, "getCsfFactoryAnnotations");
3304
3298
 
3305
3299
  // src/preview-api/modules/store/csf/portable-stories.ts
3306
- function js(r) {
3300
+ function Xs(r) {
3307
3301
  globalThis.defaultProjectAnnotations = r;
3308
3302
  }
3309
- n(js, "setDefaultProjectAnnotations");
3310
- var Ms = "ComposedStory", _s = "Unnamed Story";
3311
- function Ls(r) {
3303
+ n(Xs, "setDefaultProjectAnnotations");
3304
+ var Js = "ComposedStory", Qs = "Unnamed Story";
3305
+ function Zs(r) {
3312
3306
  return r ? Y([r]) : {};
3313
3307
  }
3314
- n(Ls, "extractAnnotation");
3315
- function Ns(r) {
3308
+ n(Zs, "extractAnnotation");
3309
+ function ei(r) {
3316
3310
  let e = Array.isArray(r) ? r : [r];
3317
3311
  return globalThis.globalProjectAnnotations = Y([
3318
3312
  globalThis.defaultProjectAnnotations ?? {},
3319
- Y(e.map(Ls))
3313
+ Y(e.map(Zs))
3320
3314
  ]), globalThis.globalProjectAnnotations ?? {};
3321
3315
  }
3322
- n(Ns, "setProjectAnnotations");
3316
+ n(ei, "setProjectAnnotations");
3323
3317
  var K = [];
3324
- function po(r, e, t, o, s) {
3318
+ function vo(r, e, t, o, s) {
3325
3319
  if (r === void 0)
3326
3320
  throw new Error("Expected a story but received undefined.");
3327
- e.title = e.title ?? Ms;
3328
- let i = Ie(e), a = s || r.storyName || r.story?.name || r.name || _s, l = me(
3321
+ e.title = e.title ?? Js;
3322
+ let i = Ie(e), a = s || r.storyName || r.story?.name || r.name || Qs, l = me(
3329
3323
  a,
3330
3324
  r,
3331
3325
  i
@@ -3392,7 +3386,7 @@ ${R.description}`);
3392
3386
  return S.canvasElement ??= globalThis?.document?.body, g && (S.loaded = g.loaded), Object.assign(S, f), d.playFunction(S);
3393
3387
  }, "play"), m = /* @__PURE__ */ n((f) => {
3394
3388
  let S = h();
3395
- return Object.assign(S, f), Gs(d, S);
3389
+ return Object.assign(S, f), ni(d, S);
3396
3390
  }, "run"), T = d.playFunction ? b : void 0;
3397
3391
  return Object.assign(
3398
3392
  /* @__PURE__ */ n(function(S) {
@@ -3423,22 +3417,22 @@ ${R.description}`);
3423
3417
  }
3424
3418
  );
3425
3419
  }
3426
- n(po, "composeStory");
3427
- var qs = /* @__PURE__ */ n((r, e, t, o) => po(r, e, t, {}, o), "defaultComposeStory");
3428
- function Bs(r, e, t = qs) {
3420
+ n(vo, "composeStory");
3421
+ var ri = /* @__PURE__ */ n((r, e, t, o) => vo(r, e, t, {}, o), "defaultComposeStory");
3422
+ function ti(r, e, t = ri) {
3429
3423
  let { default: o, __esModule: s, __namedExportsOrder: i, ...a } = r, l = o;
3430
3424
  return Object.entries(a).reduce(
3431
3425
  (d, [p, u]) => {
3432
- let { story: y, meta: h } = Br(u);
3433
- return !l && h && (l = h), Ds(p, l) ? Object.assign(d, {
3426
+ let { story: y, meta: h } = Wr(u);
3427
+ return !l && h && (l = h), Ys(p, l) ? Object.assign(d, {
3434
3428
  [p]: t(y, l, e, p)
3435
3429
  }) : d;
3436
3430
  },
3437
3431
  {}
3438
3432
  );
3439
3433
  }
3440
- n(Bs, "composeStories");
3441
- function zs(r) {
3434
+ n(ti, "composeStories");
3435
+ function oi(r) {
3442
3436
  return r.extend({
3443
3437
  mount: /* @__PURE__ */ n(async ({ mount: e, page: t }, o) => {
3444
3438
  await o(async (s, ...i) => {
@@ -3468,8 +3462,8 @@ function zs(r) {
3468
3462
  }, "mount")
3469
3463
  });
3470
3464
  }
3471
- n(zs, "createPlaywrightTest");
3472
- async function Gs(r, e) {
3465
+ n(oi, "createPlaywrightTest");
3466
+ async function ni(r, e) {
3473
3467
  for (let s of [...K].reverse())
3474
3468
  await s();
3475
3469
  if (K.length = 0, !e.canvasElement) {
@@ -3483,13 +3477,13 @@ async function Gs(r, e) {
3483
3477
  K.push(...(await r.applyBeforeEach(e)).filter(Boolean));
3484
3478
  let t = r.playFunction, o = r.usesMount;
3485
3479
  o || await e.mount(), !e.abortSignal.aborted && (t && (o || (e.mount = async () => {
3486
- throw new ks({ playFunction: t.toString() });
3480
+ throw new Ks({ playFunction: t.toString() });
3487
3481
  }), await t(e)), await r.applyAfterEach(e));
3488
3482
  }
3489
- n(Gs, "runStory");
3483
+ n(ni, "runStory");
3490
3484
 
3491
3485
  // src/preview-api/modules/store/StoryStore.ts
3492
- var uo = 1e3, Vs = 1e4, ge = class {
3486
+ var Po = 1e3, ai = 1e4, $r = class $r {
3493
3487
  constructor(e, t, o) {
3494
3488
  this.importFn = t;
3495
3489
  this.storyIndex = new Ye(e), this.projectAnnotations = he(
@@ -3497,10 +3491,7 @@ var uo = 1e3, Vs = 1e4, ge = class {
3497
3491
  );
3498
3492
  let { initialGlobals: s, globalTypes: i } = this.projectAnnotations;
3499
3493
  this.args = new Ve(), this.userGlobals = new $e({ globals: s, globalTypes: i }), this.hooks = {}, this.cleanupCallbacks = {}, this.processCSFFileWithCache =
3500
- (0, Ze.default)(uo)(to), this.prepareMetaWithCache = (0, Ze.default)(uo)(_r), this.prepareStoryWithCache = (0, Ze.default)(Vs)(Oe);
3501
- }
3502
- static {
3503
- n(this, "StoryStore");
3494
+ (0, Ze.default)(Po)(So), this.prepareMetaWithCache = (0, Ze.default)(Po)(zr), this.prepareStoryWithCache = (0, Ze.default)(ai)(Oe);
3504
3495
  }
3505
3496
  setProjectAnnotations(e) {
3506
3497
  this.projectAnnotations = he(e);
@@ -3564,7 +3555,7 @@ var uo = 1e3, Vs = 1e4, ge = class {
3564
3555
  }) {
3565
3556
  let o = t.stories[e];
3566
3557
  if (!o)
3567
- throw new Hs({ storyId: e });
3558
+ throw new ii({ storyId: e });
3568
3559
  let s = t.meta, i = this.prepareStoryWithCache(
3569
3560
  o,
3570
3561
  s,
@@ -3620,7 +3611,7 @@ var uo = 1e3, Vs = 1e4, ge = class {
3620
3611
  extract(e = { includeDocsOnly: !1 }) {
3621
3612
  let { cachedCSFFiles: t } = this;
3622
3613
  if (!t)
3623
- throw new Us();
3614
+ throw new si();
3624
3615
  return Object.entries(this.storyIndex.entries).reduce(
3625
3616
  (o, [s, { type: i, importPath: a }]) => {
3626
3617
  if (i === "docs")
@@ -3644,18 +3635,20 @@ var uo = 1e3, Vs = 1e4, ge = class {
3644
3635
  );
3645
3636
  }
3646
3637
  };
3638
+ n($r, "StoryStore");
3639
+ var ge = $r;
3647
3640
 
3648
3641
  // src/preview-api/modules/store/autoTitle.ts
3649
- import { once as Ws } from "storybook/internal/client-logger";
3642
+ import { once as li } from "storybook/internal/client-logger";
3650
3643
 
3651
3644
  // ../node_modules/slash/index.js
3652
- function zr(r) {
3645
+ function Yr(r) {
3653
3646
  return r.startsWith("\\\\?\\") ? r : r.replace(/\\/g, "/");
3654
3647
  }
3655
- n(zr, "slash");
3648
+ n(Yr, "slash");
3656
3649
 
3657
3650
  // src/preview-api/modules/store/autoTitle.ts
3658
- var $s = /* @__PURE__ */ n((r) => {
3651
+ var ci = /* @__PURE__ */ n((r) => {
3659
3652
  if (r.length === 0)
3660
3653
  return r;
3661
3654
  let e = r[r.length - 1], t = e?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i, "");
@@ -3665,28 +3658,28 @@ var $s = /* @__PURE__ */ n((r) => {
3665
3658
  return t && o && t.toLowerCase() === o.toLowerCase() ? [...r.slice(0, -2), t] : t && (/^(story|stories)([.][^.]+)$/i.test(e) || /^index$/i.
3666
3659
  test(t)) ? r.slice(0, -1) : [...r.slice(0, -1), t];
3667
3660
  }, "sanitize");
3668
- function fo(r) {
3661
+ function Fo(r) {
3669
3662
  return r.flatMap((e) => e.split("/")).filter(Boolean).join("/");
3670
3663
  }
3671
- n(fo, "pathJoin");
3672
- var yo = /* @__PURE__ */ n((r, e, t) => {
3664
+ n(Fo, "pathJoin");
3665
+ var Io = /* @__PURE__ */ n((r, e, t) => {
3673
3666
  let { directory: o, importPathMatcher: s, titlePrefix: i = "" } = e || {};
3674
- typeof r == "number" && Ws.warn(P`
3667
+ typeof r == "number" && li.warn(P`
3675
3668
  CSF Auto-title received a numeric fileName. This typically happens when
3676
3669
  webpack is mis-configured in production mode. To force webpack to produce
3677
3670
  filenames, set optimization.moduleIds = "named" in your webpack config.
3678
3671
  `);
3679
- let a = zr(String(r));
3672
+ let a = Yr(String(r));
3680
3673
  if (s.exec(a)) {
3681
3674
  if (!t) {
3682
- let l = a.replace(o, ""), c = fo([i, l]).split("/");
3683
- return c = $s(c), c.join("/");
3675
+ let l = a.replace(o, ""), c = Fo([i, l]).split("/");
3676
+ return c = ci(c), c.join("/");
3684
3677
  }
3685
- return i ? fo([i, t]) : t;
3678
+ return i ? Fo([i, t]) : t;
3686
3679
  }
3687
- }, "userOrAutoTitleFromSpecifier"), Ys = /* @__PURE__ */ n((r, e, t) => {
3680
+ }, "userOrAutoTitleFromSpecifier"), di = /* @__PURE__ */ n((r, e, t) => {
3688
3681
  for (let o = 0; o < e.length; o += 1) {
3689
- let s = yo(r, e[o], t);
3682
+ let s = Io(r, e[o], t);
3690
3683
  if (s)
3691
3684
  return s;
3692
3685
  }
@@ -3694,10 +3687,10 @@ var yo = /* @__PURE__ */ n((r, e, t) => {
3694
3687
  }, "userOrAutoTitle");
3695
3688
 
3696
3689
  // src/preview-api/modules/store/storySort.ts
3697
- var mo = /\s*\/\s*/, ho = /* @__PURE__ */ n((r = {}) => (e, t) => {
3690
+ var Oo = /\s*\/\s*/, Do = /* @__PURE__ */ n((r = {}) => (e, t) => {
3698
3691
  if (e.title === t.title && !r.includeNames)
3699
3692
  return 0;
3700
- let o = r.method || "configure", s = r.order || [], i = e.title.trim().split(mo), a = t.title.trim().split(mo);
3693
+ let o = r.method || "configure", s = r.order || [], i = e.title.trim().split(Oo), a = t.title.trim().split(Oo);
3701
3694
  r.includeNames && (i.push(e.name), a.push(t.name));
3702
3695
  let l = 0;
3703
3696
  for (; i[l] || a[l]; ) {
@@ -3721,18 +3714,18 @@ var mo = /\s*\/\s*/, ho = /* @__PURE__ */ n((r = {}) => (e, t) => {
3721
3714
  }, "storySort");
3722
3715
 
3723
3716
  // src/preview-api/modules/store/sortStories.ts
3724
- var Ks = /* @__PURE__ */ n((r, e, t) => {
3717
+ var pi = /* @__PURE__ */ n((r, e, t) => {
3725
3718
  if (e) {
3726
3719
  let o;
3727
- typeof e == "function" ? o = e : o = ho(e), r.sort(o);
3720
+ typeof e == "function" ? o = e : o = Do(e), r.sort(o);
3728
3721
  } else
3729
3722
  r.sort(
3730
3723
  (o, s) => t.indexOf(o.importPath) - t.indexOf(s.importPath)
3731
3724
  );
3732
3725
  return r;
3733
- }, "sortStoriesCommon"), Xs = /* @__PURE__ */ n((r, e, t) => {
3726
+ }, "sortStoriesCommon"), ui = /* @__PURE__ */ n((r, e, t) => {
3734
3727
  try {
3735
- return Ks(r, e, t);
3728
+ return pi(r, e, t);
3736
3729
  } catch (o) {
3737
3730
  throw new Error(P`
3738
3731
  Error sorting stories with sort parameter ${e}:
@@ -3747,48 +3740,48 @@ var Ks = /* @__PURE__ */ n((r, e, t) => {
3747
3740
  }, "sortStoriesV7");
3748
3741
 
3749
3742
  // src/preview-api/modules/preview-web/Preview.tsx
3750
- import { deprecate as ti, logger as xo } from "storybook/internal/client-logger";
3743
+ import { deprecate as bi, logger as _o } from "storybook/internal/client-logger";
3751
3744
  import {
3752
- ARGTYPES_INFO_REQUEST as oi,
3753
- ARGTYPES_INFO_RESPONSE as Ro,
3754
- CONFIG_ERROR as ni,
3755
- FORCE_REMOUNT as si,
3756
- FORCE_RE_RENDER as ii,
3757
- GLOBALS_UPDATED as wo,
3758
- RESET_STORY_ARGS as ai,
3759
- SET_GLOBALS as li,
3760
- STORY_ARGS_UPDATED as ci,
3761
- STORY_INDEX_INVALIDATED as di,
3762
- UPDATE_GLOBALS as pi,
3763
- UPDATE_STORY_ARGS as ui
3745
+ ARGTYPES_INFO_REQUEST as Si,
3746
+ ARGTYPES_INFO_RESPONSE as No,
3747
+ CONFIG_ERROR as Ti,
3748
+ FORCE_REMOUNT as xi,
3749
+ FORCE_RE_RENDER as Ri,
3750
+ GLOBALS_UPDATED as qo,
3751
+ RESET_STORY_ARGS as wi,
3752
+ SET_GLOBALS as Ei,
3753
+ STORY_ARGS_UPDATED as Ai,
3754
+ STORY_INDEX_INVALIDATED as Ci,
3755
+ UPDATE_GLOBALS as vi,
3756
+ UPDATE_STORY_ARGS as Pi
3764
3757
  } from "storybook/internal/core-events";
3765
3758
  import {
3766
3759
  CalledPreviewMethodBeforeInitializationError as V,
3767
- MissingRenderToCanvasError as fi,
3768
- StoryIndexFetchError as yi,
3769
- StoryStoreAccessedBeforeInitializationError as mi
3760
+ MissingRenderToCanvasError as Fi,
3761
+ StoryIndexFetchError as Ii,
3762
+ StoryStoreAccessedBeforeInitializationError as Oi
3770
3763
  } from "storybook/internal/preview-errors";
3771
- import { global as hi } from "@storybook/global";
3764
+ import { global as Di } from "@storybook/global";
3772
3765
 
3773
3766
  // src/preview-api/modules/preview-web/render/StoryRender.ts
3774
3767
  import {
3775
- PLAY_FUNCTION_THREW_EXCEPTION as Js,
3776
- STORY_FINISHED as go,
3777
- STORY_RENDERED as Qs,
3778
- STORY_RENDER_PHASE_CHANGED as bo,
3779
- UNHANDLED_ERRORS_WHILE_PLAYING as Zs
3768
+ PLAY_FUNCTION_THREW_EXCEPTION as fi,
3769
+ STORY_FINISHED as ko,
3770
+ STORY_RENDERED as yi,
3771
+ STORY_RENDER_PHASE_CHANGED as jo,
3772
+ UNHANDLED_ERRORS_WHILE_PLAYING as mi
3780
3773
  } from "storybook/internal/core-events";
3781
3774
  import {
3782
- MountMustBeDestructuredError as ei,
3783
- NoStoryMountedError as ri
3775
+ MountMustBeDestructuredError as hi,
3776
+ NoStoryMountedError as gi
3784
3777
  } from "storybook/internal/preview-errors";
3785
3778
 
3786
3779
  // src/preview-api/modules/preview-web/render/Render.ts
3787
3780
  var X = new Error("prepareAborted");
3788
3781
 
3789
3782
  // src/preview-api/modules/preview-web/render/StoryRender.ts
3790
- var { AbortController: So } = globalThis;
3791
- function To(r) {
3783
+ var { AbortController: Mo } = globalThis;
3784
+ function Lo(r) {
3792
3785
  try {
3793
3786
  let { name: e = "Error", message: t = String(r), stack: o } = r;
3794
3787
  return { name: e, message: t, stack: o };
@@ -3796,8 +3789,8 @@ function To(r) {
3796
3789
  return { name: "Error", message: String(r) };
3797
3790
  }
3798
3791
  }
3799
- n(To, "serializeError");
3800
- var ie = class {
3792
+ n(Lo, "serializeError");
3793
+ var Kr = class Kr {
3801
3794
  constructor(e, t, o, s, i, a, l = { autoplay: !0, forceInitialArgs: !1 }, c) {
3802
3795
  this.channel = e;
3803
3796
  this.store = t;
@@ -3813,16 +3806,13 @@ var ie = class {
3813
3806
  this.teardownRender = /* @__PURE__ */ n(() => {
3814
3807
  }, "teardownRender");
3815
3808
  this.torndown = !1;
3816
- this.abortController = new So(), c && (this.story = c, this.phase = "preparing");
3817
- }
3818
- static {
3819
- n(this, "StoryRender");
3809
+ this.abortController = new Mo(), c && (this.story = c, this.phase = "preparing");
3820
3810
  }
3821
3811
  async runPhase(e, t, o) {
3822
- this.phase = t, this.channel.emit(bo, { newPhase: this.phase, storyId: this.id }), o && (await o(), this.checkIfAborted(e));
3812
+ this.phase = t, this.channel.emit(jo, { newPhase: this.phase, storyId: this.id }), o && (await o(), this.checkIfAborted(e));
3823
3813
  }
3824
3814
  checkIfAborted(e) {
3825
- return e.aborted ? (this.phase = "aborted", this.channel.emit(bo, { newPhase: this.phase, storyId: this.id }), !0) : !1;
3815
+ return e.aborted ? (this.phase = "aborted", this.channel.emit(jo, { newPhase: this.phase, storyId: this.id }), !0) : !1;
3826
3816
  }
3827
3817
  async prepare() {
3828
3818
  if (await this.runPhase(this.abortController.signal, "preparing", async () => {
@@ -3874,7 +3864,7 @@ var ie = class {
3874
3864
  playFunction: g,
3875
3865
  runStep: b
3876
3866
  } = s;
3877
- t && !e && (this.cancelRender(), this.abortController = new So());
3867
+ t && !e && (this.cancelRender(), this.abortController = new Mo());
3878
3868
  let m = this.abortController.signal, T = !1, x = s.usesMount;
3879
3869
  try {
3880
3870
  let f = {
@@ -3935,27 +3925,27 @@ var ie = class {
3935
3925
  window.addEventListener("error", F), window.addEventListener("unhandledrejection", F), this.disableKeyListeners = !0;
3936
3926
  try {
3937
3927
  if (x ? await g(f) : (f.mount = async () => {
3938
- throw new ei({ playFunction: g.toString() });
3928
+ throw new hi({ playFunction: g.toString() });
3939
3929
  }, await this.runPhase(m, "playing", async () => g(f))), !T)
3940
- throw new ri();
3930
+ throw new gi();
3941
3931
  this.checkIfAborted(m), !w && A.size > 0 ? await this.runPhase(m, "errored") : await this.runPhase(m, "played");
3942
3932
  } catch (C) {
3943
3933
  if (this.callbacks.showStoryDuringRender?.(), await this.runPhase(m, "errored", async () => {
3944
- this.channel.emit(Js, To(C));
3934
+ this.channel.emit(fi, Lo(C));
3945
3935
  }), this.story.parameters.throwPlayFunctionExceptions !== !1)
3946
3936
  throw C;
3947
3937
  console.error(C);
3948
3938
  }
3949
3939
  if (!w && A.size > 0 && this.channel.emit(
3950
- Zs,
3951
- Array.from(A).map(To)
3940
+ mi,
3941
+ Array.from(A).map(Lo)
3952
3942
  ), this.disableKeyListeners = !1, window.removeEventListener("unhandledrejection", F), window.removeEventListener("error", F), m.aborted)
3953
3943
  return;
3954
3944
  }
3955
3945
  await this.runPhase(
3956
3946
  m,
3957
3947
  "completed",
3958
- async () => this.channel.emit(Qs, i)
3948
+ async () => this.channel.emit(yi, i)
3959
3949
  ), this.phase !== "errored" && await this.runPhase(m, "afterEach", async () => {
3960
3950
  await y(f);
3961
3951
  });
@@ -3965,7 +3955,7 @@ var ie = class {
3965
3955
  await this.runPhase(
3966
3956
  m,
3967
3957
  "finished",
3968
- async () => this.channel.emit(go, {
3958
+ async () => this.channel.emit(ko, {
3969
3959
  storyId: i,
3970
3960
  status: pe ? "error" : "success",
3971
3961
  reporters: f.reporting.reports
@@ -3975,7 +3965,7 @@ var ie = class {
3975
3965
  this.phase = "errored", this.callbacks.showException(f), await this.runPhase(
3976
3966
  m,
3977
3967
  "finished",
3978
- async () => this.channel.emit(go, {
3968
+ async () => this.channel.emit(ko, {
3979
3969
  storyId: i,
3980
3970
  status: "error",
3981
3971
  reporters: []
@@ -4020,10 +4010,12 @@ var ie = class {
4020
4010
  });
4021
4011
  }
4022
4012
  };
4013
+ n(Kr, "StoryRender");
4014
+ var ie = Kr;
4023
4015
 
4024
4016
  // src/preview-api/modules/preview-web/Preview.tsx
4025
- var { fetch: gi } = hi, bi = "./index.json", be = class {
4026
- constructor(e, t, o = _.getChannel(), s = !0) {
4017
+ var { fetch: ki } = Di, ji = "./index.json", Xr = class Xr {
4018
+ constructor(e, t, o = L.getChannel(), s = !0) {
4027
4019
  this.importFn = e;
4028
4020
  this.getProjectAnnotations = t;
4029
4021
  this.channel = o;
@@ -4032,9 +4024,6 @@ var { fetch: gi } = hi, bi = "./index.json", be = class {
4032
4024
  this.resolveStoreInitializationPromise = i, this.rejectStoreInitializationPromise = a;
4033
4025
  }), s && this.initialize();
4034
4026
  }
4035
- static {
4036
- n(this, "Preview");
4037
- }
4038
4027
  // Create a proxy object for `__STORYBOOK_STORY_STORE__` and `__STORYBOOK_PREVIEW__.storyStore`
4039
4028
  // That proxies through to the store once ready, and errors beforehand. This means we can set
4040
4029
  // `__STORYBOOK_STORY_STORE__ = __STORYBOOK_PREVIEW__.storyStore` without having to wait, and
@@ -4046,8 +4035,8 @@ var { fetch: gi } = hi, bi = "./index.json", be = class {
4046
4035
  {
4047
4036
  get: /* @__PURE__ */ n((e, t) => {
4048
4037
  if (this.storyStoreValue)
4049
- return ti("Accessing the Story Store is deprecated and will be removed in 9.0"), this.storyStoreValue[t];
4050
- throw new mi();
4038
+ return bi("Accessing the Story Store is deprecated and will be removed in 9.0"), this.storyStoreValue[t];
4039
+ throw new Oi();
4051
4040
  }, "get")
4052
4041
  }
4053
4042
  );
@@ -4066,15 +4055,15 @@ var { fetch: gi } = hi, bi = "./index.json", be = class {
4066
4055
  return this.storeInitializationPromise;
4067
4056
  }
4068
4057
  setupListeners() {
4069
- this.channel.on(di, this.onStoryIndexChanged.bind(this)), this.channel.on(pi, this.onUpdateGlobals.bind(this)), this.channel.on(ui, this.
4070
- onUpdateArgs.bind(this)), this.channel.on(oi, this.onRequestArgTypesInfo.bind(this)), this.channel.on(ai, this.onResetArgs.bind(this)), this.
4071
- channel.on(ii, this.onForceReRender.bind(this)), this.channel.on(si, this.onForceRemount.bind(this));
4058
+ this.channel.on(Ci, this.onStoryIndexChanged.bind(this)), this.channel.on(vi, this.onUpdateGlobals.bind(this)), this.channel.on(Pi, this.
4059
+ onUpdateArgs.bind(this)), this.channel.on(Si, this.onRequestArgTypesInfo.bind(this)), this.channel.on(wi, this.onResetArgs.bind(this)), this.
4060
+ channel.on(Ri, this.onForceReRender.bind(this)), this.channel.on(xi, this.onForceRemount.bind(this));
4072
4061
  }
4073
4062
  async getProjectAnnotationsOrRenderError() {
4074
4063
  try {
4075
4064
  let e = await this.getProjectAnnotations();
4076
4065
  if (this.renderToCanvas = e.renderToCanvas, !this.renderToCanvas)
4077
- throw new fi();
4066
+ throw new Fi();
4078
4067
  return e;
4079
4068
  } catch (e) {
4080
4069
  throw this.renderPreviewEntryError("Error reading preview.js:", e), e;
@@ -4098,10 +4087,10 @@ var { fetch: gi } = hi, bi = "./index.json", be = class {
4098
4087
  }
4099
4088
  }
4100
4089
  async getStoryIndexFromServer() {
4101
- let e = await gi(bi);
4090
+ let e = await ki(ji);
4102
4091
  if (e.status === 200)
4103
4092
  return e.json();
4104
- throw new yi({ text: await e.text() });
4093
+ throw new Ii({ text: await e.text() });
4105
4094
  }
4106
4095
  // If initialization gets as far as the story index, this function runs.
4107
4096
  initializeWithStoryIndex(e) {
@@ -4123,7 +4112,7 @@ var { fetch: gi } = hi, bi = "./index.json", be = class {
4123
4112
  globals: this.storyStoreValue.userGlobals.get() || {},
4124
4113
  globalTypes: this.storyStoreValue.projectAnnotations.globalTypes || {}
4125
4114
  };
4126
- this.channel.emit(li, e);
4115
+ this.channel.emit(Ei, e);
4127
4116
  }
4128
4117
  // EVENT HANDLERS
4129
4118
  // This happens when a config file gets reloaded
@@ -4168,7 +4157,7 @@ var { fetch: gi } = hi, bi = "./index.json", be = class {
4168
4157
  throw new V({ methodName: "onUpdateGlobals" });
4169
4158
  if (this.storyStoreValue.userGlobals.update(e), t) {
4170
4159
  let { initialGlobals: o, storyGlobals: s, userGlobals: i, globals: a } = this.storyStoreValue.getStoryContext(t);
4171
- this.channel.emit(wo, {
4160
+ this.channel.emit(qo, {
4172
4161
  initialGlobals: o,
4173
4162
  userGlobals: i,
4174
4163
  storyGlobals: s,
@@ -4176,7 +4165,7 @@ var { fetch: gi } = hi, bi = "./index.json", be = class {
4176
4165
  });
4177
4166
  } else {
4178
4167
  let { initialGlobals: o, globals: s } = this.storyStoreValue.userGlobals;
4179
- this.channel.emit(wo, {
4168
+ this.channel.emit(qo, {
4180
4169
  initialGlobals: o,
4181
4170
  userGlobals: s,
4182
4171
  storyGlobals: {},
@@ -4196,7 +4185,7 @@ var { fetch: gi } = hi, bi = "./index.json", be = class {
4196
4185
  o.story && o.story.usesMount ? o.remount() : o.rerender()
4197
4186
  )
4198
4187
  )
4199
- ), this.channel.emit(ci, {
4188
+ ), this.channel.emit(Ai, {
4200
4189
  storyId: e,
4201
4190
  args: this.storyStoreValue.args.get(e)
4202
4191
  });
@@ -4205,14 +4194,14 @@ var { fetch: gi } = hi, bi = "./index.json", be = class {
4205
4194
  try {
4206
4195
  await this.storeInitializationPromise;
4207
4196
  let o = await this.storyStoreValue?.loadStory(t);
4208
- this.channel.emit(Ro, {
4197
+ this.channel.emit(No, {
4209
4198
  id: e,
4210
4199
  success: !0,
4211
4200
  payload: { argTypes: o?.argTypes || {} },
4212
4201
  error: null
4213
4202
  });
4214
4203
  } catch (o) {
4215
- this.channel.emit(Ro, {
4204
+ this.channel.emit(No, {
4216
4205
  id: e,
4217
4206
  success: !1,
4218
4207
  error: o?.message
@@ -4285,57 +4274,59 @@ var { fetch: gi } = hi, bi = "./index.json", be = class {
4285
4274
  }
4286
4275
  // UTILITIES
4287
4276
  renderPreviewEntryError(e, t) {
4288
- this.previewEntryError = t, xo.error(e), xo.error(t), this.channel.emit(ni, t);
4277
+ this.previewEntryError = t, _o.error(e), _o.error(t), this.channel.emit(Ti, t);
4289
4278
  }
4290
4279
  };
4280
+ n(Xr, "Preview");
4281
+ var be = Xr;
4291
4282
 
4292
4283
  // src/preview-api/modules/preview-web/PreviewWeb.tsx
4293
- import { global as nl } from "@storybook/global";
4284
+ import { global as Tl } from "@storybook/global";
4294
4285
 
4295
4286
  // src/preview-api/modules/preview-web/PreviewWithSelection.tsx
4296
4287
  import { logger as rr } from "storybook/internal/client-logger";
4297
4288
  import {
4298
- CURRENT_STORY_WAS_SET as Eo,
4299
- DOCS_PREPARED as wi,
4300
- GLOBALS_UPDATED as Ao,
4301
- PRELOAD_ENTRIES as Ei,
4302
- PREVIEW_KEYDOWN as Ai,
4303
- SET_CURRENT_STORY as Ci,
4304
- STORY_CHANGED as vi,
4305
- STORY_ERRORED as Pi,
4306
- STORY_MISSING as Co,
4307
- STORY_PREPARED as Fi,
4308
- STORY_RENDER_PHASE_CHANGED as vo,
4309
- STORY_SPECIFIED as Ii,
4310
- STORY_THREW_EXCEPTION as Oi,
4311
- STORY_UNCHANGED as Di,
4312
- UPDATE_QUERY_PARAMS as ki
4289
+ CURRENT_STORY_WAS_SET as Bo,
4290
+ DOCS_PREPARED as qi,
4291
+ GLOBALS_UPDATED as zo,
4292
+ PRELOAD_ENTRIES as Bi,
4293
+ PREVIEW_KEYDOWN as zi,
4294
+ SET_CURRENT_STORY as Gi,
4295
+ STORY_CHANGED as Ui,
4296
+ STORY_ERRORED as Hi,
4297
+ STORY_MISSING as Go,
4298
+ STORY_PREPARED as Vi,
4299
+ STORY_RENDER_PHASE_CHANGED as Uo,
4300
+ STORY_SPECIFIED as Wi,
4301
+ STORY_THREW_EXCEPTION as $i,
4302
+ STORY_UNCHANGED as Yi,
4303
+ UPDATE_QUERY_PARAMS as Ki
4313
4304
  } from "storybook/internal/core-events";
4314
4305
  import {
4315
- CalledPreviewMethodBeforeInitializationError as Ur,
4316
- EmptyIndexError as ji,
4317
- MdxFileWithNoCsfReferencesError as Mi,
4318
- NoStoryMatchError as _i
4306
+ CalledPreviewMethodBeforeInitializationError as rt,
4307
+ EmptyIndexError as Xi,
4308
+ MdxFileWithNoCsfReferencesError as Ji,
4309
+ NoStoryMatchError as Qi
4319
4310
  } from "storybook/internal/preview-errors";
4320
4311
 
4321
4312
  // ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
4322
- var Si = !1, Gr = "Invariant failed";
4313
+ var Mi = !1, Jr = "Invariant failed";
4323
4314
  function er(r, e) {
4324
4315
  if (!r) {
4325
- if (Si)
4326
- throw new Error(Gr);
4327
- var t = typeof e == "function" ? e() : e, o = t ? "".concat(Gr, ": ").concat(t) : Gr;
4316
+ if (Mi)
4317
+ throw new Error(Jr);
4318
+ var t = typeof e == "function" ? e() : e, o = t ? "".concat(Jr, ": ").concat(t) : Jr;
4328
4319
  throw new Error(o);
4329
4320
  }
4330
4321
  }
4331
4322
  n(er, "invariant");
4332
4323
 
4333
4324
  // src/preview-api/modules/preview-web/render/CsfDocsRender.ts
4334
- import { DOCS_RENDERED as xi } from "storybook/internal/core-events";
4325
+ import { DOCS_RENDERED as _i } from "storybook/internal/core-events";
4335
4326
 
4336
4327
  // src/preview-api/modules/preview-web/docs-context/DocsContext.ts
4337
- import { isStory as Ti } from "storybook/internal/csf";
4338
- var J = class {
4328
+ import { isStory as Li } from "storybook/internal/csf";
4329
+ var Qr = class Qr {
4339
4330
  constructor(e, t, o, s) {
4340
4331
  this.channel = e;
4341
4332
  this.store = t;
@@ -4374,9 +4365,6 @@ mCSFFile");
4374
4365
  this.referenceCSFFile(i);
4375
4366
  });
4376
4367
  }
4377
- static {
4378
- n(this, "DocsContext");
4379
- }
4380
4368
  // This docs entry references this CSF file and can synchronously load the stories, as well
4381
4369
  // as reference them by module export. If the CSF is part of the "component" stories, they
4382
4370
  // can also be referenced by name and are in the componentStories list.
@@ -4438,7 +4426,7 @@ CSF file?"
4438
4426
  if (t)
4439
4427
  return { type: "meta", csfFile: t };
4440
4428
  let o = this.exportToStory.get(
4441
- Ti(e) ? e.input : e
4429
+ Li(e) ? e.input : e
4442
4430
  );
4443
4431
  return o ? { type: "story", story: o } : { type: "component", component: e };
4444
4432
  }
@@ -4476,9 +4464,11 @@ CSF file?"
4476
4464
  }
4477
4465
  }
4478
4466
  };
4467
+ n(Qr, "DocsContext");
4468
+ var J = Qr;
4479
4469
 
4480
4470
  // src/preview-api/modules/preview-web/render/CsfDocsRender.ts
4481
- var Me = class {
4471
+ var Zr = class Zr {
4482
4472
  constructor(e, t, o, s) {
4483
4473
  this.channel = e;
4484
4474
  this.store = t;
@@ -4491,9 +4481,6 @@ var Me = class {
4491
4481
  this.preparing = !1;
4492
4482
  this.id = o.id;
4493
4483
  }
4494
- static {
4495
- n(this, "CsfDocsRender");
4496
- }
4497
4484
  isPreparing() {
4498
4485
  return this.preparing;
4499
4486
  }
@@ -4533,7 +4520,7 @@ var Me = class {
4533
4520
  );
4534
4521
  let i = await s.renderer(), { render: a } = i, l = /* @__PURE__ */ n(async () => {
4535
4522
  try {
4536
- await a(o, s, e), this.channel.emit(xi, this.id);
4523
+ await a(o, s, e), this.channel.emit(_i, this.id);
4537
4524
  } catch (c) {
4538
4525
  this.callbacks.showException(c);
4539
4526
  }
@@ -4546,10 +4533,12 @@ var Me = class {
4546
4533
  this.teardownRender?.({ viewModeChanged: e }), this.torndown = !0;
4547
4534
  }
4548
4535
  };
4536
+ n(Zr, "CsfDocsRender");
4537
+ var Me = Zr;
4549
4538
 
4550
4539
  // src/preview-api/modules/preview-web/render/MdxDocsRender.ts
4551
- import { DOCS_RENDERED as Ri } from "storybook/internal/core-events";
4552
- var _e = class {
4540
+ import { DOCS_RENDERED as Ni } from "storybook/internal/core-events";
4541
+ var et = class et {
4553
4542
  constructor(e, t, o, s) {
4554
4543
  this.channel = e;
4555
4544
  this.store = t;
@@ -4562,9 +4551,6 @@ var _e = class {
4562
4551
  this.preparing = !1;
4563
4552
  this.id = o.id;
4564
4553
  }
4565
- static {
4566
- n(this, "MdxDocsRender");
4567
- }
4568
4554
  isPreparing() {
4569
4555
  return this.preparing;
4570
4556
  }
@@ -4598,7 +4584,7 @@ var _e = class {
4598
4584
  );
4599
4585
  let i = { ...s, page: this.exports.default }, a = await s.renderer(), { render: l } = a, c = /* @__PURE__ */ n(async () => {
4600
4586
  try {
4601
- await l(o, i, e), this.channel.emit(Ri, this.id);
4587
+ await l(o, i, e), this.channel.emit(Ni, this.id);
4602
4588
  } catch (d) {
4603
4589
  this.callbacks.showException(d);
4604
4590
  }
@@ -4611,32 +4597,34 @@ var _e = class {
4611
4597
  this.teardownRender?.({ viewModeChanged: e }), this.torndown = !0;
4612
4598
  }
4613
4599
  };
4600
+ n(et, "MdxDocsRender");
4601
+ var Le = et;
4614
4602
 
4615
4603
  // src/preview-api/modules/preview-web/PreviewWithSelection.tsx
4616
- var Li = globalThis;
4617
- function Ni(r) {
4604
+ var Zi = globalThis;
4605
+ function ea(r) {
4618
4606
  let e = r.composedPath && r.composedPath()[0] || r.target;
4619
4607
  return /input|textarea/i.test(e.tagName) || e.getAttribute("contenteditable") !== null;
4620
4608
  }
4621
- n(Ni, "focusInInput");
4622
- var Po = "attached-mdx", qi = "unattached-mdx";
4623
- function Bi({ tags: r }) {
4624
- return r?.includes(qi) || r?.includes(Po);
4609
+ n(ea, "focusInInput");
4610
+ var Ho = "attached-mdx", ra = "unattached-mdx";
4611
+ function ta({ tags: r }) {
4612
+ return r?.includes(ra) || r?.includes(Ho);
4625
4613
  }
4626
- n(Bi, "isMdxEntry");
4627
- function Hr(r) {
4614
+ n(ta, "isMdxEntry");
4615
+ function tt(r) {
4628
4616
  return r.type === "story";
4629
4617
  }
4630
- n(Hr, "isStoryRender");
4631
- function zi(r) {
4618
+ n(tt, "isStoryRender");
4619
+ function oa(r) {
4632
4620
  return r.type === "docs";
4633
4621
  }
4634
- n(zi, "isDocsRender");
4635
- function Gi(r) {
4636
- return zi(r) && r.subtype === "csf";
4622
+ n(oa, "isDocsRender");
4623
+ function na(r) {
4624
+ return oa(r) && r.subtype === "csf";
4637
4625
  }
4638
- n(Gi, "isCsfDocsRender");
4639
- var Se = class extends be {
4626
+ n(na, "isCsfDocsRender");
4627
+ var ot = class ot extends be {
4640
4628
  constructor(t, o, s, i) {
4641
4629
  super(t, o, void 0, !1);
4642
4630
  this.importFn = t;
@@ -4645,16 +4633,13 @@ var Se = class extends be {
4645
4633
  this.view = i;
4646
4634
  this.initialize();
4647
4635
  }
4648
- static {
4649
- n(this, "PreviewWithSelection");
4650
- }
4651
4636
  setupListeners() {
4652
- super.setupListeners(), Li.onkeydown = this.onKeydown.bind(this), this.channel.on(Ci, this.onSetCurrentStory.bind(this)), this.channel.on(
4653
- ki, this.onUpdateQueryParams.bind(this)), this.channel.on(Ei, this.onPreloadStories.bind(this));
4637
+ super.setupListeners(), Zi.onkeydown = this.onKeydown.bind(this), this.channel.on(Gi, this.onSetCurrentStory.bind(this)), this.channel.on(
4638
+ Ki, this.onUpdateQueryParams.bind(this)), this.channel.on(Bi, this.onPreloadStories.bind(this));
4654
4639
  }
4655
4640
  async setInitialGlobals() {
4656
4641
  if (!this.storyStoreValue)
4657
- throw new Ur({ methodName: "setInitialGlobals" });
4642
+ throw new rt({ methodName: "setInitialGlobals" });
4658
4643
  let { globals: t } = this.selectionStore.selectionSpecifier || {};
4659
4644
  t && this.storyStoreValue.userGlobals.updateFromPersisted(t), this.emitGlobals();
4660
4645
  }
@@ -4665,7 +4650,7 @@ var Se = class extends be {
4665
4650
  // Use the selection specifier to choose a story, then render it
4666
4651
  async selectSpecifiedStory() {
4667
4652
  if (!this.storyStoreValue)
4668
- throw new Ur({
4653
+ throw new rt({
4669
4654
  methodName: "selectSpecifiedStory"
4670
4655
  });
4671
4656
  if (this.selectionStore.selection) {
@@ -4678,14 +4663,14 @@ var Se = class extends be {
4678
4663
  }
4679
4664
  let { storySpecifier: t, args: o } = this.selectionStore.selectionSpecifier, s = this.storyStoreValue.storyIndex.entryFromSpecifier(t);
4680
4665
  if (!s) {
4681
- t === "*" ? this.renderStoryLoadingException(t, new ji()) : this.renderStoryLoadingException(
4666
+ t === "*" ? this.renderStoryLoadingException(t, new Xi()) : this.renderStoryLoadingException(
4682
4667
  t,
4683
- new _i({ storySpecifier: t.toString() })
4668
+ new Qi({ storySpecifier: t.toString() })
4684
4669
  );
4685
4670
  return;
4686
4671
  }
4687
4672
  let { id: i, type: a } = s;
4688
- this.selectionStore.setSelection({ storyId: i, viewMode: a }), this.channel.emit(Ii, this.selectionStore.selection), this.channel.emit(Eo,
4673
+ this.selectionStore.setSelection({ storyId: i, viewMode: a }), this.channel.emit(Wi, this.selectionStore.selection), this.channel.emit(Bo,
4689
4674
  this.selectionStore.selection), await this.renderSelection({ persistedArgs: o });
4690
4675
  }
4691
4676
  // EVENT HANDLERS
@@ -4704,15 +4689,15 @@ var Se = class extends be {
4704
4689
  selectSpecifiedStory();
4705
4690
  }
4706
4691
  onKeydown(t) {
4707
- if (!this.storyRenders.find((o) => o.disableKeyListeners) && !Ni(t)) {
4692
+ if (!this.storyRenders.find((o) => o.disableKeyListeners) && !ea(t)) {
4708
4693
  let { altKey: o, ctrlKey: s, metaKey: i, shiftKey: a, key: l, code: c, keyCode: d } = t;
4709
- this.channel.emit(Ai, {
4694
+ this.channel.emit(zi, {
4710
4695
  event: { altKey: o, ctrlKey: s, metaKey: i, shiftKey: a, key: l, code: c, keyCode: d }
4711
4696
  });
4712
4697
  }
4713
4698
  }
4714
4699
  async onSetCurrentStory(t) {
4715
- this.selectionStore.setSelection({ viewMode: "story", ...t }), await this.storeInitializationPromise, this.channel.emit(Eo, this.selectionStore.
4700
+ this.selectionStore.setSelection({ viewMode: "story", ...t }), await this.storeInitializationPromise, this.channel.emit(Bo, this.selectionStore.
4716
4701
  selection), this.renderSelection();
4717
4702
  }
4718
4703
  onUpdateQueryParams(t) {
@@ -4720,7 +4705,7 @@ var Se = class extends be {
4720
4705
  }
4721
4706
  async onUpdateGlobals({ globals: t }) {
4722
4707
  let o = this.currentRender instanceof ie && this.currentRender.story || void 0;
4723
- super.onUpdateGlobals({ globals: t, currentStory: o }), (this.currentRender instanceof _e || this.currentRender instanceof Me) && await this.
4708
+ super.onUpdateGlobals({ globals: t, currentStory: o }), (this.currentRender instanceof Le || this.currentRender instanceof Me) && await this.
4724
4709
  currentRender.rerender?.();
4725
4710
  }
4726
4711
  async onUpdateArgs({ storyId: t, updatedArgs: o }) {
@@ -4738,7 +4723,7 @@ var Se = class extends be {
4738
4723
  async renderSelection({ persistedArgs: t } = {}) {
4739
4724
  let { renderToCanvas: o } = this;
4740
4725
  if (!this.storyStoreValue || !o)
4741
- throw new Ur({ methodName: "renderSelection" });
4726
+ throw new rt({ methodName: "renderSelection" });
4742
4727
  let { selection: s } = this.selectionStore;
4743
4728
  if (!s)
4744
4729
  throw new Error("Cannot call renderSelection as no selection was made");
@@ -4760,7 +4745,7 @@ var Se = class extends be {
4760
4745
  this.mainStoryCallbacks(i),
4761
4746
  i,
4762
4747
  "story"
4763
- ) : Bi(a) ? d = new _e(
4748
+ ) : ta(a) ? d = new Le(
4764
4749
  this.channel,
4765
4750
  this.storyStoreValue,
4766
4751
  a,
@@ -4782,11 +4767,11 @@ var Se = class extends be {
4782
4767
  return;
4783
4768
  }
4784
4769
  let y = !l && u && !d.isEqual(u);
4785
- if (t && Hr(d) && (er(!!d.story), this.storyStoreValue.args.updateFromPersisted(d.story, t)), u && !u.torndown && !l && !y && !c) {
4786
- this.currentRender = u, this.channel.emit(Di, i), this.view.showMain();
4770
+ if (t && tt(d) && (er(!!d.story), this.storyStoreValue.args.updateFromPersisted(d.story, t)), u && !u.torndown && !l && !y && !c) {
4771
+ this.currentRender = u, this.channel.emit(Yi, i), this.view.showMain();
4787
4772
  return;
4788
4773
  }
4789
- if (u && await this.teardownRender(u, { viewModeChanged: c }), p && (l || c) && this.channel.emit(vi, i), Hr(d)) {
4774
+ if (u && await this.teardownRender(u, { viewModeChanged: c }), p && (l || c) && this.channel.emit(Ui, i), tt(d)) {
4790
4775
  er(!!d.story);
4791
4776
  let {
4792
4777
  parameters: h,
@@ -4798,33 +4783,33 @@ var Se = class extends be {
4798
4783
  storyGlobals: f,
4799
4784
  globals: S
4800
4785
  } = this.storyStoreValue.getStoryContext(d.story);
4801
- this.channel.emit(Fi, {
4786
+ this.channel.emit(Vi, {
4802
4787
  id: i,
4803
4788
  parameters: h,
4804
4789
  initialArgs: g,
4805
4790
  argTypes: b,
4806
4791
  args: m
4807
- }), this.channel.emit(Ao, { userGlobals: x, storyGlobals: f, globals: S, initialGlobals: T });
4792
+ }), this.channel.emit(zo, { userGlobals: x, storyGlobals: f, globals: S, initialGlobals: T });
4808
4793
  } else {
4809
4794
  let { parameters: h } = this.storyStoreValue.projectAnnotations, { initialGlobals: g, globals: b } = this.storyStoreValue.userGlobals;
4810
- if (this.channel.emit(Ao, {
4795
+ if (this.channel.emit(zo, {
4811
4796
  globals: b,
4812
4797
  initialGlobals: g,
4813
4798
  storyGlobals: {},
4814
4799
  userGlobals: b
4815
- }), Gi(d) || d.entry.tags?.includes(Po)) {
4800
+ }), na(d) || d.entry.tags?.includes(Ho)) {
4816
4801
  if (!d.csfFiles)
4817
- throw new Mi({ storyId: i });
4802
+ throw new Ji({ storyId: i });
4818
4803
  ({ parameters: h } = this.storyStoreValue.preparedMetaFromCSFFile({
4819
4804
  csfFile: d.csfFiles[0]
4820
4805
  }));
4821
4806
  }
4822
- this.channel.emit(wi, {
4807
+ this.channel.emit(qi, {
4823
4808
  id: i,
4824
4809
  parameters: h
4825
4810
  });
4826
4811
  }
4827
- Hr(d) ? (er(!!d.story), this.storyRenders.push(d), this.currentRender.renderToElement(
4812
+ tt(d) ? (er(!!d.story), this.storyRenders.push(d), this.currentRender.renderToElement(
4828
4813
  this.view.prepareForStory(d.story)
4829
4814
  )) : this.currentRender.renderToElement(
4830
4815
  this.view.prepareForDocs(),
@@ -4848,39 +4833,41 @@ var Se = class extends be {
4848
4833
  super.renderPreviewEntryError(t, o), this.view.showErrorDisplay(o);
4849
4834
  }
4850
4835
  renderMissingStory() {
4851
- this.view.showNoPreview(), this.channel.emit(Co);
4836
+ this.view.showNoPreview(), this.channel.emit(Go);
4852
4837
  }
4853
4838
  renderStoryLoadingException(t, o) {
4854
- rr.error(o), this.view.showErrorDisplay(o), this.channel.emit(Co, t);
4839
+ rr.error(o), this.view.showErrorDisplay(o), this.channel.emit(Go, t);
4855
4840
  }
4856
4841
  // renderException is used if we fail to render the story and it is uncaught by the app layer
4857
4842
  renderException(t, o) {
4858
4843
  let { name: s = "Error", message: i = String(o), stack: a } = o;
4859
- this.channel.emit(Oi, { name: s, message: i, stack: a }), this.channel.emit(vo, { newPhase: "errored", storyId: t }), this.view.showErrorDisplay(
4844
+ this.channel.emit($i, { name: s, message: i, stack: a }), this.channel.emit(Uo, { newPhase: "errored", storyId: t }), this.view.showErrorDisplay(
4860
4845
  o), rr.error(`Error rendering story '${t}':`), rr.error(o);
4861
4846
  }
4862
4847
  // renderError is used by the various app layers to inform the user they have done something
4863
4848
  // wrong -- for instance returned the wrong thing from a story
4864
4849
  renderError(t, { title: o, description: s }) {
4865
- rr.error(`Error rendering story ${o}: ${s}`), this.channel.emit(Pi, { title: o, description: s }), this.channel.emit(vo, { newPhase: "er\
4850
+ rr.error(`Error rendering story ${o}: ${s}`), this.channel.emit(Hi, { title: o, description: s }), this.channel.emit(Uo, { newPhase: "er\
4866
4851
  rored", storyId: t }), this.view.showErrorDisplay({
4867
4852
  message: o,
4868
4853
  stack: s
4869
4854
  });
4870
4855
  }
4871
4856
  };
4857
+ n(ot, "PreviewWithSelection");
4858
+ var Se = ot;
4872
4859
 
4873
4860
  // src/preview-api/modules/preview-web/UrlStore.ts
4874
4861
  var Ne = ue(ir(), 1);
4875
- import { global as ga } from "@storybook/global";
4862
+ import { global as ka } from "@storybook/global";
4876
4863
 
4877
4864
  // src/preview-api/modules/preview-web/parseArgsParam.ts
4878
- import { once as ya } from "storybook/internal/client-logger";
4879
- var zo = ue(ir(), 1);
4880
- var Bo = /^[a-zA-Z0-9 _-]*$/, Go = /^-?[0-9]+(\.[0-9]+)?$/, ma = /^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i, Uo = /^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,
4881
- Jr = /* @__PURE__ */ n((r = "", e) => r === null || r === "" || !Bo.test(r) ? !1 : e == null || e instanceof Date || typeof e == "number" ||
4882
- typeof e == "boolean" ? !0 : typeof e == "string" ? Bo.test(e) || Go.test(e) || ma.test(e) || Uo.test(e) : Array.isArray(e) ? e.every((t) => Jr(
4883
- r, t)) : k(e) ? Object.entries(e).every(([t, o]) => Jr(t, o)) : !1, "validateArgs"), ha = {
4865
+ import { once as Ia } from "storybook/internal/client-logger";
4866
+ var on = ue(ir(), 1);
4867
+ var tn = /^[a-zA-Z0-9 _-]*$/, nn = /^-?[0-9]+(\.[0-9]+)?$/, Oa = /^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i, sn = /^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,
4868
+ dt = /* @__PURE__ */ n((r = "", e) => r === null || r === "" || !tn.test(r) ? !1 : e == null || e instanceof Date || typeof e == "number" ||
4869
+ typeof e == "boolean" ? !0 : typeof e == "string" ? tn.test(e) || nn.test(e) || Oa.test(e) || sn.test(e) : Array.isArray(e) ? e.every((t) => dt(
4870
+ r, t)) : k(e) ? Object.entries(e).every(([t, o]) => dt(t, o)) : !1, "validateArgs"), Da = {
4884
4871
  delimiter: ";",
4885
4872
  // we're parsing a single query param
4886
4873
  nesting: !0,
@@ -4902,17 +4889,17 @@ r, t)) : k(e) ? Object.entries(e).every(([t, o]) => Jr(t, o)) : !1, "validateArg
4902
4889
  return new Date(r.replaceAll(" ", "+").slice(6, -1));
4903
4890
  if (r.startsWith("!hex(") && r.endsWith(")"))
4904
4891
  return `#${r.slice(5, -1)}`;
4905
- let e = r.slice(1).match(Uo);
4892
+ let e = r.slice(1).match(sn);
4906
4893
  if (e)
4907
4894
  return r.startsWith("!rgba") || r.startsWith("!RGBA") ? `${e[1]}(${e[2]}, ${e[3]}, ${e[4]}, ${e[5]})` : r.startsWith("!hsla") || r.startsWith(
4908
4895
  "!HSLA") ? `${e[1]}(${e[2]}, ${e[3]}%, ${e[4]}%, ${e[5]})` : r.startsWith("!rgb") || r.startsWith("!RGB") ? `${e[1]}(${e[2]}, ${e[3]}\
4909
4896
  , ${e[4]})` : `${e[1]}(${e[2]}, ${e[3]}%, ${e[4]}%)`;
4910
4897
  }
4911
- return Go.test(r) ? Number(r) : r;
4898
+ return nn.test(r) ? Number(r) : r;
4912
4899
  }
4913
- }, Qr = /* @__PURE__ */ n((r) => {
4900
+ }, pt = /* @__PURE__ */ n((r) => {
4914
4901
  let e = r.split(";").map((t) => t.replace("=", "~").replace(":", "="));
4915
- return Object.entries((0, zo.parse)(e.join(";"), ha)).reduce((t, [o, s]) => Jr(o, s) ? Object.assign(t, { [o]: s }) : (ya.warn(P`
4902
+ return Object.entries((0, on.parse)(e.join(";"), Da)).reduce((t, [o, s]) => dt(o, s) ? Object.assign(t, { [o]: s }) : (Ia.warn(P`
4916
4903
  Omitted potentially unsafe URL args.
4917
4904
 
4918
4905
  More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
@@ -4920,15 +4907,15 @@ r, t)) : k(e) ? Object.entries(e).every(([t, o]) => Jr(t, o)) : !1, "validateArg
4920
4907
  }, "parseArgsParam");
4921
4908
 
4922
4909
  // src/preview-api/modules/preview-web/UrlStore.ts
4923
- var { history: Ho, document: Q } = ga;
4924
- function ba(r) {
4910
+ var { history: an, document: Q } = ka;
4911
+ function ja(r) {
4925
4912
  let e = (r || "").match(/^\/story\/(.+)/);
4926
4913
  if (!e)
4927
4914
  throw new Error(`Invalid path '${r}', must start with '/story/'`);
4928
4915
  return e[1];
4929
4916
  }
4930
- n(ba, "pathToId");
4931
- var Vo = /* @__PURE__ */ n(({
4917
+ n(ja, "pathToId");
4918
+ var ln = /* @__PURE__ */ n(({
4932
4919
  selection: r,
4933
4920
  extraParams: e
4934
4921
  }) => {
@@ -4938,71 +4925,70 @@ var Vo = /* @__PURE__ */ n(({
4938
4925
  ...e,
4939
4926
  ...r && { id: r.storyId, viewMode: r.viewMode }
4940
4927
  })}`;
4941
- }, "getQueryString"), Sa = /* @__PURE__ */ n((r) => {
4928
+ }, "getQueryString"), Ma = /* @__PURE__ */ n((r) => {
4942
4929
  if (!r)
4943
4930
  return;
4944
- let e = Vo({ selection: r }), { hash: t = "" } = Q.location;
4945
- Q.title = r.storyId, Ho.replaceState({}, "", `${Q.location.pathname}${e}${t}`);
4946
- }, "setPath"), Ta = /* @__PURE__ */ n((r) => r != null && typeof r == "object" && Array.isArray(r) === !1, "isObject"), Le = /* @__PURE__ */ n(
4931
+ let e = ln({ selection: r }), { hash: t = "" } = Q.location;
4932
+ Q.title = r.storyId, an.replaceState({}, "", `${Q.location.pathname}${e}${t}`);
4933
+ }, "setPath"), La = /* @__PURE__ */ n((r) => r != null && typeof r == "object" && Array.isArray(r) === !1, "isObject"), _e = /* @__PURE__ */ n(
4947
4934
  (r) => {
4948
4935
  if (r !== void 0) {
4949
4936
  if (typeof r == "string")
4950
4937
  return r;
4951
4938
  if (Array.isArray(r))
4952
- return Le(r[0]);
4953
- if (Ta(r))
4954
- return Le(
4939
+ return _e(r[0]);
4940
+ if (La(r))
4941
+ return _e(
4955
4942
  Object.values(r).filter(Boolean)
4956
4943
  );
4957
4944
  }
4958
- }, "getFirstString"), xa = /* @__PURE__ */ n(() => {
4945
+ }, "getFirstString"), _a = /* @__PURE__ */ n(() => {
4959
4946
  if (typeof Q < "u") {
4960
- let r = Q.location.search.slice(1), e = (0, Ne.parse)(r), t = typeof e.args == "string" ? Qr(e.args) : void 0, o = typeof e.globals == "\
4961
- string" ? Qr(e.globals) : void 0, s = Le(e.viewMode);
4947
+ let r = Q.location.search.slice(1), e = (0, Ne.parse)(r), t = typeof e.args == "string" ? pt(e.args) : void 0, o = typeof e.globals == "\
4948
+ string" ? pt(e.globals) : void 0, s = _e(e.viewMode);
4962
4949
  (typeof s != "string" || !s.match(/docs|story/)) && (s = "story");
4963
- let i = Le(e.path), a = i ? ba(i) : Le(e.id);
4950
+ let i = _e(e.path), a = i ? ja(i) : _e(e.id);
4964
4951
  if (a)
4965
4952
  return { storySpecifier: a, args: t, globals: o, viewMode: s };
4966
4953
  }
4967
4954
  return null;
4968
- }, "getSelectionSpecifierFromPath"), Te = class {
4969
- static {
4970
- n(this, "UrlStore");
4971
- }
4955
+ }, "getSelectionSpecifierFromPath"), ut = class ut {
4972
4956
  constructor() {
4973
- this.selectionSpecifier = xa();
4957
+ this.selectionSpecifier = _a();
4974
4958
  }
4975
4959
  setSelection(e) {
4976
- this.selection = e, Sa(this.selection);
4960
+ this.selection = e, Ma(this.selection);
4977
4961
  }
4978
4962
  setQueryParams(e) {
4979
- let t = Vo({ extraParams: e }), { hash: o = "" } = Q.location;
4980
- Ho.replaceState({}, "", `${Q.location.pathname}${t}${o}`);
4963
+ let t = ln({ extraParams: e }), { hash: o = "" } = Q.location;
4964
+ an.replaceState({}, "", `${Q.location.pathname}${t}${o}`);
4981
4965
  }
4982
4966
  };
4967
+ n(ut, "UrlStore");
4968
+ var Te = ut;
4983
4969
 
4984
4970
  // src/preview-api/modules/preview-web/WebView.ts
4985
- var En = ue(xn(), 1), An = ue(ir(), 1);
4986
- import { logger as tl } from "storybook/internal/client-logger";
4987
- import { global as ol } from "@storybook/global";
4988
- var { document: D } = ol, Rn = 100, Cn = /* @__PURE__ */ ((i) => (i.MAIN = "MAIN", i.NOPREVIEW = "NOPREVIEW", i.PREPARING_STORY = "PREPARING\
4989
- _STORY", i.PREPARING_DOCS = "PREPARING_DOCS", i.ERROR = "ERROR", i))(Cn || {}), st = {
4971
+ var Bn = ue(_n(), 1), zn = ue(ir(), 1);
4972
+ import { logger as bl } from "storybook/internal/client-logger";
4973
+ import { global as Sl } from "@storybook/global";
4974
+ var { document: D } = Sl, Nn = 100, Gn = /* @__PURE__ */ ((i) => (i.MAIN = "MAIN", i.NOPREVIEW = "NOPREVIEW", i.PREPARING_STORY = "PREPARING\
4975
+ _STORY", i.PREPARING_DOCS = "PREPARING_DOCS", i.ERROR = "ERROR", i))(Gn || {}), St = {
4990
4976
  PREPARING_STORY: "sb-show-preparing-story",
4991
4977
  PREPARING_DOCS: "sb-show-preparing-docs",
4992
4978
  MAIN: "sb-show-main",
4993
4979
  NOPREVIEW: "sb-show-nopreview",
4994
4980
  ERROR: "sb-show-errordisplay"
4995
- }, it = {
4981
+ }, Tt = {
4996
4982
  centered: "sb-main-centered",
4997
4983
  fullscreen: "sb-main-fullscreen",
4998
4984
  padded: "sb-main-padded"
4999
- }, wn = new En.default({
4985
+ }, qn = new Bn.default({
5000
4986
  escapeXML: !0
5001
- }), xe = class {
4987
+ }), xt = class xt {
5002
4988
  constructor() {
5003
4989
  this.testing = !1;
5004
4990
  if (typeof D < "u") {
5005
- let { __SPECIAL_TEST_PARAMETER__: e } = (0, An.parse)(D.location.search.slice(1));
4991
+ let { __SPECIAL_TEST_PARAMETER__: e } = (0, zn.parse)(D.location.search.slice(1));
5006
4992
  switch (e) {
5007
4993
  case "preparing-story": {
5008
4994
  this.showPreparingStory(), this.testing = !0;
@@ -5016,9 +5002,6 @@ _STORY", i.PREPARING_DOCS = "PREPARING_DOCS", i.ERROR = "ERROR", i))(Cn || {}),
5016
5002
  }
5017
5003
  }
5018
5004
  }
5019
- static {
5020
- n(this, "WebView");
5021
- }
5022
5005
  // Get ready to render a story, returning the element to render to
5023
5006
  prepareForStory(e) {
5024
5007
  return this.showStory(), this.applyLayout(e.parameters.layout), D.documentElement.scrollTop = 0, D.documentElement.scrollLeft = 0, this.
@@ -5040,27 +5023,27 @@ _STORY", i.PREPARING_DOCS = "PREPARING_DOCS", i.ERROR = "ERROR", i))(Cn || {}),
5040
5023
  return;
5041
5024
  }
5042
5025
  this.checkIfLayoutExists(e);
5043
- let t = it[e];
5026
+ let t = Tt[e];
5044
5027
  D.body.classList.remove(this.currentLayoutClass), D.body.classList.add(t), this.currentLayoutClass = t;
5045
5028
  }
5046
5029
  checkIfLayoutExists(e) {
5047
- it[e] || tl.warn(
5030
+ Tt[e] || bl.warn(
5048
5031
  P`
5049
5032
  The desired layout: ${e} is not a valid option.
5050
- The possible options are: ${Object.keys(it).join(", ")}, none.
5033
+ The possible options are: ${Object.keys(Tt).join(", ")}, none.
5051
5034
  `
5052
5035
  );
5053
5036
  }
5054
5037
  showMode(e) {
5055
- clearTimeout(this.preparingTimeout), Object.keys(Cn).forEach((t) => {
5056
- t === e ? D.body.classList.add(st[t]) : D.body.classList.remove(st[t]);
5038
+ clearTimeout(this.preparingTimeout), Object.keys(Gn).forEach((t) => {
5039
+ t === e ? D.body.classList.add(St[t]) : D.body.classList.remove(St[t]);
5057
5040
  });
5058
5041
  }
5059
5042
  showErrorDisplay({ message: e = "", stack: t = "" }) {
5060
5043
  let o = e, s = t, i = e.split(`
5061
5044
  `);
5062
5045
  i.length > 1 && ([o] = i, s = i.slice(1).join(`
5063
- `).replace(/^\n/, "")), D.getElementById("error-message").innerHTML = wn.toHtml(o), D.getElementById("error-stack").innerHTML = wn.toHtml(s),
5046
+ `).replace(/^\n/, "")), D.getElementById("error-message").innerHTML = qn.toHtml(o), D.getElementById("error-stack").innerHTML = qn.toHtml(s),
5064
5047
  this.showMode("ERROR");
5065
5048
  }
5066
5049
  showNoPreview() {
@@ -5070,12 +5053,12 @@ true"));
5070
5053
  showPreparingStory({ immediate: e = !1 } = {}) {
5071
5054
  clearTimeout(this.preparingTimeout), e ? this.showMode("PREPARING_STORY") : this.preparingTimeout = setTimeout(
5072
5055
  () => this.showMode("PREPARING_STORY"),
5073
- Rn
5056
+ Nn
5074
5057
  );
5075
5058
  }
5076
5059
  showPreparingDocs({ immediate: e = !1 } = {}) {
5077
5060
  clearTimeout(this.preparingTimeout), e ? this.showMode("PREPARING_DOCS") : this.preparingTimeout = setTimeout(() => this.showMode("PREPA\
5078
- RING_DOCS"), Rn);
5061
+ RING_DOCS"), Nn);
5079
5062
  }
5080
5063
  showMain() {
5081
5064
  this.showMode("MAIN");
@@ -5087,26 +5070,27 @@ RING_DOCS"), Rn);
5087
5070
  this.docsRoot().setAttribute("hidden", "true"), this.storyRoot().removeAttribute("hidden");
5088
5071
  }
5089
5072
  showStoryDuringRender() {
5090
- D.body.classList.add(st.MAIN);
5073
+ D.body.classList.add(St.MAIN);
5091
5074
  }
5092
5075
  };
5076
+ n(xt, "WebView");
5077
+ var xe = xt;
5093
5078
 
5094
5079
  // src/preview-api/modules/preview-web/PreviewWeb.tsx
5095
- var yr = class extends Se {
5080
+ var Rt = class Rt extends Se {
5096
5081
  constructor(t, o) {
5097
5082
  super(t, o, new Te(), new xe());
5098
5083
  this.importFn = t;
5099
5084
  this.getProjectAnnotations = o;
5100
- nl.__STORYBOOK_PREVIEW__ = this;
5101
- }
5102
- static {
5103
- n(this, "PreviewWeb");
5085
+ Tl.__STORYBOOK_PREVIEW__ = this;
5104
5086
  }
5105
5087
  };
5088
+ n(Rt, "PreviewWeb");
5089
+ var yr = Rt;
5106
5090
 
5107
5091
  // src/preview-api/modules/preview-web/simulate-pageload.ts
5108
- import { global as sl } from "@storybook/global";
5109
- var { document: de } = sl, il = [
5092
+ import { global as xl } from "@storybook/global";
5093
+ var { document: de } = xl, Rl = [
5110
5094
  "application/javascript",
5111
5095
  "application/ecmascript",
5112
5096
  "application/x-ecmascript",
@@ -5125,53 +5109,53 @@ var { document: de } = sl, il = [
5125
5109
  "text/x-javascript",
5126
5110
  // Support modern javascript
5127
5111
  "module"
5128
- ], al = "script", vn = "scripts-root";
5112
+ ], wl = "script", Un = "scripts-root";
5129
5113
  function mr() {
5130
5114
  let r = de.createEvent("Event");
5131
5115
  r.initEvent("DOMContentLoaded", !0, !0), de.dispatchEvent(r);
5132
5116
  }
5133
5117
  n(mr, "simulateDOMContentLoaded");
5134
- function ll(r, e, t) {
5118
+ function El(r, e, t) {
5135
5119
  let o = de.createElement("script");
5136
5120
  o.type = r.type === "module" ? "module" : "text/javascript", r.src ? (o.onload = e, o.onerror = e, o.src = r.src) : o.textContent = r.innerText,
5137
5121
  t ? t.appendChild(o) : de.head.appendChild(o), r.parentNode.removeChild(r), r.src || e();
5138
5122
  }
5139
- n(ll, "insertScript");
5140
- function Pn(r, e, t = 0) {
5123
+ n(El, "insertScript");
5124
+ function Hn(r, e, t = 0) {
5141
5125
  r[t](() => {
5142
- t++, t === r.length ? e() : Pn(r, e, t);
5126
+ t++, t === r.length ? e() : Hn(r, e, t);
5143
5127
  });
5144
5128
  }
5145
- n(Pn, "insertScriptsSequentially");
5146
- function Fn(r) {
5147
- let e = de.getElementById(vn);
5148
- e ? e.innerHTML = "" : (e = de.createElement("div"), e.id = vn, de.body.appendChild(e));
5149
- let t = Array.from(r.querySelectorAll(al));
5129
+ n(Hn, "insertScriptsSequentially");
5130
+ function Vn(r) {
5131
+ let e = de.getElementById(Un);
5132
+ e ? e.innerHTML = "" : (e = de.createElement("div"), e.id = Un, de.body.appendChild(e));
5133
+ let t = Array.from(r.querySelectorAll(wl));
5150
5134
  if (t.length) {
5151
5135
  let o = [];
5152
5136
  t.forEach((s) => {
5153
5137
  let i = s.getAttribute("type");
5154
- (!i || il.includes(i)) && o.push((a) => ll(s, a, e));
5155
- }), o.length && Pn(o, mr, void 0);
5138
+ (!i || Rl.includes(i)) && o.push((a) => El(s, a, e));
5139
+ }), o.length && Hn(o, mr, void 0);
5156
5140
  } else
5157
5141
  mr();
5158
5142
  }
5159
- n(Fn, "simulatePageLoad");
5143
+ n(Vn, "simulatePageLoad");
5160
5144
 
5161
5145
  // src/docs-tools/shared.ts
5162
- var In = "storybook/docs", Gf = `${In}/panel`;
5163
- var On = `${In}/snippet-rendered`;
5146
+ var Wn = "storybook/docs", ny = `${Wn}/panel`;
5147
+ var $n = `${Wn}/snippet-rendered`;
5164
5148
 
5165
5149
  // src/preview-api/modules/preview-web/emitTransformCode.ts
5166
- async function Dn(r, e) {
5150
+ async function Yn(r, e) {
5167
5151
  let t = e.parameters?.docs?.source?.transform, { id: o, unmappedArgs: s } = e, i = t && r ? t?.(r, e) : r, a = i ? await i : void 0;
5168
- _.getChannel().emit(On, {
5152
+ L.getChannel().emit($n, {
5169
5153
  id: o,
5170
5154
  source: a,
5171
5155
  args: s
5172
5156
  });
5173
5157
  }
5174
- n(Dn, "emitTransformCode");
5158
+ n(Yn, "emitTransformCode");
5175
5159
  export {
5176
5160
  J as DocsContext,
5177
5161
  re as HooksContext,
@@ -5182,46 +5166,46 @@ export {
5182
5166
  ge as StoryStore,
5183
5167
  Te as UrlStore,
5184
5168
  xe as WebView,
5185
- _ as addons,
5186
- Rr as applyHooks,
5169
+ L as addons,
5170
+ wr as applyHooks,
5187
5171
  Fe as combineArgs,
5188
- L as combineParameters,
5172
+ _ as combineParameters,
5189
5173
  Y as composeConfigs,
5190
- qr as composeStepRunners,
5191
- Bs as composeStories,
5192
- po as composeStory,
5193
- zs as createPlaywrightTest,
5194
- so as decorateStory,
5195
- Mr as defaultDecorateStory,
5196
- zn as definePreview,
5197
- Dn as emitTransformCode,
5174
+ Hr as composeStepRunners,
5175
+ ti as composeStories,
5176
+ vo as composeStory,
5177
+ oi as createPlaywrightTest,
5178
+ Ro as decorateStory,
5179
+ Br as defaultDecorateStory,
5180
+ os as definePreview,
5181
+ Yn as emitTransformCode,
5198
5182
  Je as filterArgTypes,
5199
5183
  te as getCoreAnnotations,
5200
- Br as getCsfFactoryAnnotations,
5184
+ Wr as getCsfFactoryAnnotations,
5201
5185
  De as inferControls,
5202
- ns as makeDecorator,
5186
+ Ts as makeDecorator,
5203
5187
  gr as mockChannel,
5204
5188
  he as normalizeProjectAnnotations,
5205
5189
  me as normalizeStory,
5206
- _r as prepareMeta,
5190
+ zr as prepareMeta,
5207
5191
  Oe as prepareStory,
5208
- io as sanitizeStoryContextUpdate,
5209
- js as setDefaultProjectAnnotations,
5210
- Ns as setProjectAnnotations,
5192
+ wo as sanitizeStoryContextUpdate,
5193
+ Xs as setDefaultProjectAnnotations,
5194
+ ei as setProjectAnnotations,
5211
5195
  mr as simulateDOMContentLoaded,
5212
- Fn as simulatePageLoad,
5213
- Xs as sortStoriesV7,
5214
- ts as useArgs,
5196
+ Vn as simulatePageLoad,
5197
+ ui as sortStoriesV7,
5198
+ bs as useArgs,
5215
5199
  Ce as useCallback,
5216
- es as useChannel,
5217
- ft as useEffect,
5218
- os as useGlobals,
5219
- Kn as useMemo,
5220
- rs as useParameter,
5221
- Zn as useReducer,
5222
- Xn as useRef,
5223
- Qn as useState,
5200
+ hs as useChannel,
5201
+ Ft as useEffect,
5202
+ Ss as useGlobals,
5203
+ ps as useMemo,
5204
+ gs as useParameter,
5205
+ ms as useReducer,
5206
+ us as useRef,
5207
+ ys as useState,
5224
5208
  Ue as useStoryContext,
5225
- Ys as userOrAutoTitle,
5226
- yo as userOrAutoTitleFromSpecifier
5209
+ di as userOrAutoTitle,
5210
+ Io as userOrAutoTitleFromSpecifier
5227
5211
  };