storybook 9.1.1 → 9.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +28 -41
  2. package/dist/bin/index.cjs +43 -43
  3. package/dist/bin/index.js +43 -43
  4. package/dist/cli/bin/index.cjs +1211 -1211
  5. package/dist/cli/bin/index.js +1214 -1214
  6. package/dist/cli/index.cjs +6 -1
  7. package/dist/cli/index.js +6 -1
  8. package/dist/common/index.cjs +1792 -1792
  9. package/dist/common/index.js +1831 -1831
  10. package/dist/core-server/index.cjs +3107 -3095
  11. package/dist/core-server/index.js +3411 -3399
  12. package/dist/core-server/presets/common-manager.js +150 -127
  13. package/dist/core-server/presets/common-preset.cjs +2489 -2483
  14. package/dist/core-server/presets/common-preset.js +7445 -7439
  15. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.cjs +57 -51
  16. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +60 -52
  17. package/dist/csf-tools/index.cjs +4 -4
  18. package/dist/csf-tools/index.js +4 -4
  19. package/dist/manager/globals-runtime.js +7376 -7365
  20. package/dist/manager/runtime.js +32 -18
  21. package/dist/manager-api/index.cjs +546 -535
  22. package/dist/manager-api/index.js +653 -642
  23. package/dist/manager-errors.js +44 -33
  24. package/dist/preview/runtime.js +5559 -5548
  25. package/dist/preview-api/index.cjs +4 -4
  26. package/dist/preview-api/index.js +4 -4
  27. package/dist/preview-errors.cjs +82 -71
  28. package/dist/preview-errors.js +89 -78
  29. package/dist/router/index.cjs +1 -1
  30. package/dist/router/index.js +1 -1
  31. package/dist/server-errors.cjs +121 -77
  32. package/dist/server-errors.d.ts +14 -1
  33. package/dist/server-errors.js +135 -91
  34. package/dist/telemetry/index.cjs +1 -1
  35. package/dist/telemetry/index.js +1 -1
  36. package/dist/test/index.cjs +1 -1
  37. package/dist/test/index.js +1 -1
  38. package/package.json +17 -3
@@ -1,8 +1,8 @@
1
1
  var Nn = Object.create;
2
2
  var $e = Object.defineProperty;
3
- var Cn = Object.getOwnPropertyDescriptor;
4
- var jn = Object.getOwnPropertyNames;
5
- var kn = Object.getPrototypeOf, Dn = Object.prototype.hasOwnProperty;
3
+ var jn = Object.getOwnPropertyDescriptor;
4
+ var kn = Object.getOwnPropertyNames;
5
+ var Dn = Object.getPrototypeOf, Mn = Object.prototype.hasOwnProperty;
6
6
  var n = (e, t) => $e(e, "name", { value: t, configurable: !0 }), Pe = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
7
7
  "u" ? new Proxy(e, {
8
8
  get: (t, r) => (typeof require < "u" ? require : t)[r]
@@ -13,13 +13,13 @@ var n = (e, t) => $e(e, "name", { value: t, configurable: !0 }), Pe = /* @__PURE
13
13
  var $r = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), L = (e, t) => {
14
14
  for (var r in t)
15
15
  $e(e, r, { get: t[r], enumerable: !0 });
16
- }, Mn = (e, t, r, o) => {
16
+ }, Un = (e, t, r, o) => {
17
17
  if (t && typeof t == "object" || typeof t == "function")
18
- for (let s of jn(t))
19
- !Dn.call(e, s) && s !== r && $e(e, s, { get: () => t[s], enumerable: !(o = Cn(t, s)) || o.enumerable });
18
+ for (let s of kn(t))
19
+ !Mn.call(e, s) && s !== r && $e(e, s, { get: () => t[s], enumerable: !(o = jn(t, s)) || o.enumerable });
20
20
  return e;
21
21
  };
22
- var Ot = (e, t, r) => (r = e != null ? Nn(kn(e)) : {}, Mn(
22
+ var Ot = (e, t, r) => (r = e != null ? Nn(Dn(e)) : {}, Un(
23
23
  // If the importer is in node compatibility mode or this is not an ESM
24
24
  // file that has been converted to a CommonJS file using a Babel-
25
25
  // compatible transform (i.e. "__esModule" has not been set), then set
@@ -162,7 +162,7 @@ var Bt = $r((co, $t) => {
162
162
  });
163
163
 
164
164
  // ../node_modules/store2/dist/store2.js
165
- var Mo = $r((bt, Pt) => {
165
+ var Uo = $r((bt, Pt) => {
166
166
  (function(e, t) {
167
167
  var r = {
168
168
  version: "2.14.4",
@@ -384,26 +384,26 @@ var Mo = $r((bt, Pt) => {
384
384
 
385
385
  // src/manager-api/root.tsx
386
386
  import me, {
387
- Component as vu,
388
- Fragment as _u,
387
+ Component as _u,
388
+ Fragment as Iu,
389
389
  useCallback as ke,
390
390
  useContext as Mr,
391
- useEffect as hn,
391
+ useEffect as gn,
392
392
  useMemo as Dr,
393
- useRef as fn,
394
- useState as Iu
393
+ useRef as yn,
394
+ useState as xu
395
395
  } from "react";
396
396
  import {
397
- DOCS_PREPARED as xu,
398
- SET_STORIES as Tu,
399
- SHARED_STATE_CHANGED as yn,
397
+ DOCS_PREPARED as Tu,
398
+ SET_STORIES as Ru,
399
+ SHARED_STATE_CHANGED as mn,
400
400
  SHARED_STATE_SET as je,
401
- STORY_CHANGED as Ru,
402
- STORY_PREPARED as wu
401
+ STORY_CHANGED as wu,
402
+ STORY_PREPARED as Ou
403
403
  } from "storybook/internal/core-events";
404
404
 
405
405
  // ../node_modules/es-toolkit/dist/array/countBy.mjs
406
- function Nt(e, t) {
406
+ function Ct(e, t) {
407
407
  let r = {};
408
408
  for (let o = 0; o < e.length; o++) {
409
409
  let s = e[o], i = t(s);
@@ -411,7 +411,7 @@ function Nt(e, t) {
411
411
  }
412
412
  return r;
413
413
  }
414
- n(Nt, "countBy");
414
+ n(Ct, "countBy");
415
415
 
416
416
  // ../node_modules/es-toolkit/dist/array/partition.mjs
417
417
  function Be(e, t) {
@@ -525,7 +525,7 @@ function Q(e, t, r, o = /* @__PURE__ */ new Map(), s = void 0) {
525
525
  let a = new e.constructor();
526
526
  return o.set(e, a), a.message = e.message, a.name = e.name, a.stack = e.stack, a.cause = e.cause, _e(a, e, r, o, s), a;
527
527
  }
528
- if (typeof e == "object" && Un(e)) {
528
+ if (typeof e == "object" && Ln(e)) {
529
529
  let a = Object.create(Object.getPrototypeOf(e));
530
530
  return o.set(e, a), _e(a, e, r, o, s), a;
531
531
  }
@@ -540,7 +540,7 @@ function _e(e, t, r = e, o, s) {
540
540
  }
541
541
  }
542
542
  n(_e, "copyProperties");
543
- function Un(e) {
543
+ function Ln(e) {
544
544
  switch (Ee(e)) {
545
545
  case ve:
546
546
  case Qe:
@@ -569,7 +569,7 @@ function Un(e) {
569
569
  return !1;
570
570
  }
571
571
  }
572
- n(Un, "isCloneableObject");
572
+ n(Ln, "isCloneableObject");
573
573
 
574
574
  // ../node_modules/es-toolkit/dist/object/cloneDeep.mjs
575
575
  function Jr(e) {
@@ -588,7 +588,7 @@ function se(e) {
588
588
  n(se, "isPlainObject");
589
589
 
590
590
  // ../node_modules/es-toolkit/dist/object/mapValues.mjs
591
- function Ct(e, t) {
591
+ function Nt(e, t) {
592
592
  let r = {}, o = Object.keys(e);
593
593
  for (let s = 0; s < o.length; s++) {
594
594
  let i = o[s], a = e[i];
@@ -596,7 +596,7 @@ function Ct(e, t) {
596
596
  }
597
597
  return r;
598
598
  }
599
- n(Ct, "mapValues");
599
+ n(Nt, "mapValues");
600
600
 
601
601
  // ../node_modules/es-toolkit/dist/object/merge.mjs
602
602
  function ae(e, t) {
@@ -784,8 +784,8 @@ function M(e, t) {
784
784
  n(M, "isEqual");
785
785
 
786
786
  // src/manager-api/context.ts
787
- import { createContext as Ln } from "react";
788
- var Zr = /* @__PURE__ */ n(({ api: e, state: t }) => Ln({ api: e, state: t }), "createContext");
787
+ import { createContext as Fn } from "react";
788
+ var Zr = /* @__PURE__ */ n(({ api: e, state: t }) => Fn({ api: e, state: t }), "createContext");
789
789
 
790
790
  // src/manager-api/lib/merge.ts
791
791
  import { logger as eo } from "storybook/internal/client-logger";
@@ -832,10 +832,10 @@ var K = /* @__PURE__ */ n((e, ...t) => {
832
832
  }, "noArrayMerge");
833
833
 
834
834
  // src/manager-api/initial-state.ts
835
- var Fn = /* @__PURE__ */ n((...e) => e.reduce((t, r) => K(t, r), {}), "main"), lt = Fn;
835
+ var Wn = /* @__PURE__ */ n((...e) => e.reduce((t, r) => K(t, r), {}), "main"), lt = Wn;
836
836
 
837
837
  // src/manager-api/lib/addons.ts
838
- import { logger as Wn } from "storybook/internal/client-logger";
838
+ import { logger as $n } from "storybook/internal/client-logger";
839
839
  import { SET_CONFIG as ro } from "storybook/internal/core-events";
840
840
  import { Addon_TypesEnum as oo } from "storybook/internal/types";
841
841
  import { global as Dt } from "@storybook/global";
@@ -879,7 +879,7 @@ var Lt = class Lt {
879
879
  * @returns {void}
880
880
  */
881
881
  this.register = /* @__PURE__ */ n((t, r) => {
882
- this.loaders[t] && Wn.warn(`${t} was loaded twice, this could have bad side-effects`), this.loaders[t] = r;
882
+ this.loaders[t] && $n.warn(`${t} was loaded twice, this could have bad side-effects`), this.loaders[t] = r;
883
883
  }, "register");
884
884
  this.loadAddons = /* @__PURE__ */ n((t) => {
885
885
  Object.values(this.loaders).forEach((r) => r(t));
@@ -908,17 +908,17 @@ var Lt = class Lt {
908
908
  };
909
909
  n(Lt, "AddonStore");
910
910
  var Ut = Lt, Mt = "__STORYBOOK_ADDONS_MANAGER";
911
- function $n() {
911
+ function Bn() {
912
912
  return Dt[Mt] || (Dt[Mt] = new Ut()), Dt[Mt];
913
913
  }
914
- n($n, "getAddonsStore");
915
- var Bn = $n();
914
+ n(Bn, "getAddonsStore");
915
+ var Vn = Bn();
916
916
 
917
917
  // src/manager-api/modules/addons.ts
918
- var Gt = {};
919
- L(Gt, {
918
+ var Wt = {};
919
+ L(Wt, {
920
920
  ensurePanel: () => Ft,
921
- init: () => Vn
921
+ init: () => Kn
922
922
  });
923
923
  import { Addon_TypesEnum as no } from "storybook/internal/types";
924
924
  function Ft(e, t, r) {
@@ -926,7 +926,7 @@ function Ft(e, t, r) {
926
926
  return o.indexOf(t) >= 0 ? t : o.length ? o[0] : r;
927
927
  }
928
928
  n(Ft, "ensurePanel");
929
- var Vn = /* @__PURE__ */ n(({ provider: e, store: t, fullAPI: r }) => {
929
+ var Kn = /* @__PURE__ */ n(({ provider: e, store: t, fullAPI: r }) => {
930
930
  let o = {
931
931
  getElements: /* @__PURE__ */ n((s) => e.getElements(s), "getElements"),
932
932
  getSelectedPanel: /* @__PURE__ */ n(() => {
@@ -958,11 +958,11 @@ var Vn = /* @__PURE__ */ n(({ provider: e, store: t, fullAPI: r }) => {
958
958
  }, "init");
959
959
 
960
960
  // src/manager-api/modules/channel.ts
961
- var Wt = {};
962
- L(Wt, {
963
- init: () => Kn
961
+ var Gt = {};
962
+ L(Gt, {
963
+ init: () => zn
964
964
  });
965
- var Kn = /* @__PURE__ */ n(({ provider: e }) => ({ api: {
965
+ var zn = /* @__PURE__ */ n(({ provider: e }) => ({ api: {
966
966
  getChannel: /* @__PURE__ */ n(() => e.channel, "getChannel"),
967
967
  on: /* @__PURE__ */ n((r, o) => (e.channel?.on(r, o), () => e.channel?.off(r, o)), "on"),
968
968
  off: /* @__PURE__ */ n((r, o) => e.channel?.off(r, o), "off"),
@@ -976,10 +976,10 @@ var Kn = /* @__PURE__ */ n(({ provider: e }) => ({ api: {
976
976
  // src/manager-api/modules/globals.ts
977
977
  var qt = {};
978
978
  L(qt, {
979
- init: () => ss
979
+ init: () => as
980
980
  });
981
981
  import { logger as Ao } from "storybook/internal/client-logger";
982
- import { GLOBALS_UPDATED as rs, SET_GLOBALS as os, UPDATE_GLOBALS as ns } from "storybook/internal/core-events";
982
+ import { GLOBALS_UPDATED as os, SET_GLOBALS as ns, UPDATE_GLOBALS as ss } from "storybook/internal/core-events";
983
983
 
984
984
  // ../node_modules/dequal/dist/index.mjs
985
985
  var so = Object.prototype.hasOwnProperty;
@@ -1038,14 +1038,14 @@ function F(e, t) {
1038
1038
  n(F, "dequal");
1039
1039
 
1040
1040
  // src/manager-api/lib/events.ts
1041
- import { logger as ts } from "storybook/internal/client-logger";
1041
+ import { logger as rs } from "storybook/internal/client-logger";
1042
1042
 
1043
1043
  // src/manager-api/modules/refs.ts
1044
1044
  var Ht = {};
1045
1045
  L(Ht, {
1046
1046
  defaultStoryMapper: () => Po,
1047
1047
  getSourceType: () => zt,
1048
- init: () => es
1048
+ init: () => ts
1049
1049
  });
1050
1050
  import { global as bo } from "@storybook/global";
1051
1051
 
@@ -1086,7 +1086,7 @@ n(j, "dedent");
1086
1086
  var io = j;
1087
1087
 
1088
1088
  // src/manager-api/lib/stories.ts
1089
- import { sanitize as zn } from "storybook/internal/csf";
1089
+ import { sanitize as Hn } from "storybook/internal/csf";
1090
1090
  var Vt = Ot(Bt(), 1);
1091
1091
 
1092
1092
  // src/manager-api/lib/intersect.ts
@@ -1094,11 +1094,11 @@ var uo = /* @__PURE__ */ n((e, t) => !Array.isArray(e) || !Array.isArray(t) || !
1094
1094
  o) && r.push(o), r), []), "default");
1095
1095
 
1096
1096
  // src/manager-api/lib/stories.ts
1097
- var Hn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1097
+ var qn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1098
1098
  globalParameters: e,
1099
1099
  kindParameters: t,
1100
1100
  stories: r
1101
- }) => Ct(r, (o) => ({
1101
+ }) => Nt(r, (o) => ({
1102
1102
  ...o,
1103
1103
  parameters: mo(
1104
1104
  e,
@@ -1136,7 +1136,7 @@ var Hn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1136
1136
  return r;
1137
1137
  },
1138
1138
  {}
1139
- ) }), "transformSetStoriesStoryDataToPreparedStoryIndex"), qn = /* @__PURE__ */ n((e) => ({
1139
+ ) }), "transformSetStoriesStoryDataToPreparedStoryIndex"), Yn = /* @__PURE__ */ n((e) => ({
1140
1140
  v: 3,
1141
1141
  stories: Object.values(e.stories).reduce(
1142
1142
  (t, r) => (t[r.id] = {
@@ -1147,8 +1147,8 @@ var Hn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1147
1147
  }, t),
1148
1148
  {}
1149
1149
  )
1150
- }), "transformStoryIndexV2toV3"), Yn = /* @__PURE__ */ n((e) => {
1151
- let t = Nt(Object.values(e.stories), (r) => r.title);
1150
+ }), "transformStoryIndexV2toV3"), Jn = /* @__PURE__ */ n((e) => {
1151
+ let t = Ct(Object.values(e.stories), (r) => r.title);
1152
1152
  return {
1153
1153
  v: 4,
1154
1154
  entries: Object.values(e.stories).reduce(
@@ -1163,7 +1163,7 @@ var Hn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1163
1163
  {}
1164
1164
  )
1165
1165
  };
1166
- }, "transformStoryIndexV3toV4"), Jn = /* @__PURE__ */ n((e) => ({
1166
+ }, "transformStoryIndexV3toV4"), Xn = /* @__PURE__ */ n((e) => ({
1167
1167
  v: 5,
1168
1168
  entries: Object.values(e.entries).reduce(
1169
1169
  (t, r) => (t[r.id] = {
@@ -1176,7 +1176,7 @@ var Hn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1176
1176
  if (!e.v)
1177
1177
  throw new Error("Composition: Missing stories.json version");
1178
1178
  let i = e;
1179
- i = i.v === 2 ? qn(i) : i, i = i.v === 3 ? Yn(i) : i, i = i.v === 4 ? Jn(i) : i, i = i;
1179
+ i = i.v === 2 ? Yn(i) : i, i = i.v === 3 ? Jn(i) : i, i = i.v === 4 ? Xn(i) : i, i = i;
1180
1180
  let a = Object.values(i.entries).filter((h) => {
1181
1181
  let g = !0, S = s[h.id] ?? {};
1182
1182
  return Object.values(S).some(({ value: P }) => P === "status-value:error") || Object.values(o).forEach((P) => {
@@ -1185,8 +1185,8 @@ var Hn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1185
1185
  }), { sidebar: c = {} } = t.getConfig(), { showRoots: u, collapsedRoots: l = [], renderLabel: p } = c, d = typeof u < "u", f = a.reduce((h, g) => {
1186
1186
  if (r.docsMode && g.type !== "docs")
1187
1187
  return h;
1188
- let { title: S } = g, P = S.trim().split(Hn), E = (!d || u) && P.length > 1 ? [P.shift()] : [], v = [...E, ...P], I = v.reduce((_, w, N) => {
1189
- let x = N > 0 && _[N - 1], he = zn(x ? `${x}-${w}` : w);
1188
+ let { title: S } = g, P = S.trim().split(qn), E = (!d || u) && P.length > 1 ? [P.shift()] : [], v = [...E, ...P], I = v.reduce((_, w, C) => {
1189
+ let x = C > 0 && _[C - 1], he = Hn(x ? `${x}-${w}` : w);
1190
1190
  if (w.trim() === "")
1191
1191
  throw new Error(j`Invalid title ${S} ending in slash.`);
1192
1192
  if (x === he)
@@ -1200,7 +1200,7 @@ var Hn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1200
1200
  return _.push(he), _;
1201
1201
  }, []);
1202
1202
  return I.forEach((_, w) => {
1203
- let N = I[w + 1] || g.id;
1203
+ let C = I[w + 1] || g.id;
1204
1204
  E.length && w === 0 ? h[_] = K(h[_] || {}, {
1205
1205
  type: "root",
1206
1206
  id: _,
@@ -1210,7 +1210,7 @@ var Hn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1210
1210
  renderLabel: p,
1211
1211
  startCollapsed: l.includes(_),
1212
1212
  // Note that this will later get appended to the previous list of children (see below)
1213
- children: [N]
1213
+ children: [C]
1214
1214
  }) : (!h[_] || h[_].type === "component") && w === I.length - 1 ? h[_] = K(h[_] || {}, {
1215
1215
  type: "component",
1216
1216
  id: _,
@@ -1219,8 +1219,8 @@ var Hn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1219
1219
  parent: I[w - 1],
1220
1220
  depth: w,
1221
1221
  renderLabel: p,
1222
- ...N && {
1223
- children: [N]
1222
+ ...C && {
1223
+ children: [C]
1224
1224
  }
1225
1225
  }) : h[_] = K(h[_] || {}, {
1226
1226
  type: "group",
@@ -1230,8 +1230,8 @@ var Hn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1230
1230
  parent: I[w - 1],
1231
1231
  depth: w,
1232
1232
  renderLabel: p,
1233
- ...N && {
1234
- children: [N]
1233
+ ...C && {
1234
+ children: [C]
1235
1235
  }
1236
1236
  });
1237
1237
  }), h[g.id] = {
@@ -1265,8 +1265,8 @@ var Hn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1265
1265
  }, [])), yo = (0, Vt.default)(1)((e) => Object.keys(e).filter((t) => ["story", "docs"].includes(e[t].type)));
1266
1266
 
1267
1267
  // src/manager-api/modules/refs.ts
1268
- var { location: Xn, fetch: ho } = bo, zt = /* @__PURE__ */ n((e, t) => {
1269
- let { origin: r, pathname: o } = Xn, { origin: s, pathname: i } = new URL(e), a = `${r + o}`.replace("/iframe.html", "").replace(/\/$/, ""),
1268
+ var { location: Qn, fetch: ho } = bo, zt = /* @__PURE__ */ n((e, t) => {
1269
+ let { origin: r, pathname: o } = Qn, { origin: s, pathname: i } = new URL(e), a = `${r + o}`.replace("/iframe.html", "").replace(/\/$/, ""),
1270
1270
  c = `${s + i}`.replace("/iframe.html", "").replace(/\/$/, "");
1271
1271
  return a === c ? ["local", c] : t || e ? ["external", c] : [null, null];
1272
1272
  }, "getSourceType"), Po = /* @__PURE__ */ n((e, t) => ({ ...t, kind: t.kind.replace("|", "/") }), "defaultStoryMapper"), go = /* @__PURE__ */ n(
@@ -1287,16 +1287,16 @@ async function So(e) {
1287
1287
  }
1288
1288
  }
1289
1289
  n(So, "handleRequest");
1290
- var Qn = /* @__PURE__ */ n((e) => {
1290
+ var Zn = /* @__PURE__ */ n((e) => {
1291
1291
  let t = /https?:\/\/(.+:.+)@/, r = e, o, [, s] = e.match(t) || [];
1292
1292
  return s && (r = e.replace(`${s}@`, ""), o = btoa(`${s}`)), {
1293
1293
  url: r,
1294
1294
  authorization: o
1295
1295
  };
1296
- }, "parseUrl"), Zn = /* @__PURE__ */ n((e, t, r) => {
1296
+ }, "parseUrl"), es = /* @__PURE__ */ n((e, t, r) => {
1297
1297
  let { storyMapper: o } = r;
1298
1298
  return o ? Object.entries(e).reduce((s, [i, a]) => ({ ...s, [i]: o(t, a) }), {}) : e;
1299
- }, "map"), es = /* @__PURE__ */ n(({ store: e, provider: t, singleStory: r, docsOptions: o = {} }, { runCheck: s = !0 } = {}) => {
1299
+ }, "map"), ts = /* @__PURE__ */ n(({ store: e, provider: t, singleStory: r, docsOptions: o = {} }, { runCheck: s = !0 } = {}) => {
1300
1300
  let i = {
1301
1301
  findRef: /* @__PURE__ */ n((u) => {
1302
1302
  let l = i.getRefs();
@@ -1322,7 +1322,7 @@ var Qn = /* @__PURE__ */ n((e) => {
1322
1322
  }, "changeRefState"),
1323
1323
  checkRef: /* @__PURE__ */ n(async (u) => {
1324
1324
  let { id: l, url: p, version: d, type: f } = u, y = f === "server-checked", m = {}, h = d ? `?version=${d}` : "", g = y ? "omit" : "in\
1325
- clude", S = Qn(p), P = {
1325
+ clude", S = Zn(p), P = {
1326
1326
  Accept: "application/json"
1327
1327
  };
1328
1328
  S.authorization && Object.assign(P, {
@@ -1381,7 +1381,7 @@ clude", S = Qn(p), P = {
1381
1381
  return;
1382
1382
  let y, m, h, { filters: g } = e.getState(), { storyMapper: S = Po } = t.getConfig(), P = i.getRefs()[u];
1383
1383
  (l || p) && (y = p ? po(
1384
- Zn(p, P, { storyMapper: S })
1384
+ es(p, P, { storyMapper: S })
1385
1385
  ) : l, h = ie(l, {
1386
1386
  provider: t,
1387
1387
  docsOptions: o,
@@ -1434,12 +1434,12 @@ var k = /* @__PURE__ */ n((e, t) => {
1434
1434
  return u;
1435
1435
  // if we couldn't find the source, something risky happened, we ignore the input, and log a warning
1436
1436
  default:
1437
- return ts.warn(`Received a ${s} frame that was not configured as a ref`), null;
1437
+ return rs.warn(`Received a ${s} frame that was not configured as a ref`), null;
1438
1438
  }
1439
1439
  }, "getEventMetadata");
1440
1440
 
1441
1441
  // src/manager-api/modules/globals.ts
1442
- var ss = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1442
+ var as = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1443
1443
  let o = {
1444
1444
  getGlobals() {
1445
1445
  return e.getState().globals;
@@ -1454,7 +1454,7 @@ var ss = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1454
1454
  return e.getState().globalTypes;
1455
1455
  },
1456
1456
  updateGlobals(a) {
1457
- r.channel?.emit(ns, {
1457
+ r.channel?.emit(ss, {
1458
1458
  globals: a,
1459
1459
  options: {
1460
1460
  target: "storybook-preview-iframe"
@@ -1479,7 +1479,7 @@ var ss = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1479
1479
  F(a, l) || e.setState({ globals: a }), F(u, p) || e.setState({ userGlobals: u }), F(c, d) || e.setState({ storyGlobals: c });
1480
1480
  }, "updateGlobals");
1481
1481
  return r.channel?.on(
1482
- rs,
1482
+ os,
1483
1483
  /* @__PURE__ */ n(function({ globals: c, storyGlobals: u, userGlobals: l }) {
1484
1484
  let { ref: p } = k(this, t);
1485
1485
  p ? Ao.warn(
@@ -1487,7 +1487,7 @@ var ss = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1487
1487
  ) : i({ globals: c, storyGlobals: u, userGlobals: l });
1488
1488
  }, "handleGlobalsUpdated")
1489
1489
  ), r.channel?.on(
1490
- os,
1490
+ ns,
1491
1491
  /* @__PURE__ */ n(function({ globals: c, globalTypes: u }) {
1492
1492
  let { ref: l } = k(this, t), p = e.getState()?.globals;
1493
1493
  l ? Object.keys(c).length > 0 && Ao.warn("received globals from a non-local ref. This is not currently supported.") : e.setState({ globals: c,
@@ -1505,12 +1505,12 @@ L(dt, {
1505
1505
  ActiveTabs: () => _o,
1506
1506
  defaultLayoutState: () => U,
1507
1507
  focusableUIElements: () => Re,
1508
- init: () => ls
1508
+ init: () => ps
1509
1509
  });
1510
- import { SET_CONFIG as as } from "storybook/internal/core-events";
1511
- import { global as is } from "@storybook/global";
1512
- import { create as cs } from "storybook/theming/create";
1513
- var { document: us } = is, Eo = /* @__PURE__ */ n((e) => typeof e == "function", "isFunction"), _o = {
1510
+ import { SET_CONFIG as is } from "storybook/internal/core-events";
1511
+ import { global as cs } from "@storybook/global";
1512
+ import { create as us } from "storybook/theming/create";
1513
+ var { document: ls } = cs, Eo = /* @__PURE__ */ n((e) => typeof e == "function", "isFunction"), _o = {
1514
1514
  SIDEBAR: "sidebar",
1515
1515
  CANVAS: "canvas",
1516
1516
  ADDONS: "addons"
@@ -1537,7 +1537,7 @@ var { document: us } = is, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1537
1537
  showToolbar: void 0
1538
1538
  },
1539
1539
  selectedPanel: void 0,
1540
- theme: cs()
1540
+ theme: us()
1541
1541
  }, Re = {
1542
1542
  storySearchField: "storybook-explorer-searchfield",
1543
1543
  storyListMenu: "storybook-explorer-menu",
@@ -1549,7 +1549,7 @@ var { document: us } = is, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1549
1549
  navSize: e.navSize > 0 ? e.navSize : e.recentVisibleSizes.navSize,
1550
1550
  bottomPanelHeight: e.bottomPanelHeight > 0 ? e.bottomPanelHeight : e.recentVisibleSizes.bottomPanelHeight,
1551
1551
  rightPanelWidth: e.rightPanelWidth > 0 ? e.rightPanelWidth : e.recentVisibleSizes.rightPanelWidth
1552
- }), "getRecentVisibleSizes"), ls = /* @__PURE__ */ n(({ store: e, provider: t, singleStory: r }) => {
1552
+ }), "getRecentVisibleSizes"), ps = /* @__PURE__ */ n(({ store: e, provider: t, singleStory: r }) => {
1553
1553
  let o = {
1554
1554
  toggleFullscreen(i) {
1555
1555
  return e.setState(
@@ -1675,7 +1675,7 @@ var { document: us } = is, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1675
1675
  focusOnUIElement(i, a) {
1676
1676
  if (!i)
1677
1677
  return;
1678
- let c = us.getElementById(i);
1678
+ let c = ls.getElementById(i);
1679
1679
  c && (c.focus(), a && c.select());
1680
1680
  },
1681
1681
  getInitialOptions() {
@@ -1743,7 +1743,7 @@ var { document: us } = is, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1743
1743
  keys(y).length && e.setState(y, { persistence: "permanent" }), M(l, f) || e.setState({ theme: f });
1744
1744
  }, "setOptions")
1745
1745
  }, s = Z(e.getState(), ["layout", "selectedPanel"]);
1746
- return t.channel?.on(as, () => {
1746
+ return t.channel?.on(is, () => {
1747
1747
  o.setOptions(K(o.getInitialOptions(), s));
1748
1748
  }), {
1749
1749
  api: o,
@@ -1754,9 +1754,9 @@ var { document: us } = is, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1754
1754
  // src/manager-api/modules/notifications.ts
1755
1755
  var Xt = {};
1756
1756
  L(Xt, {
1757
- init: () => ps
1757
+ init: () => ds
1758
1758
  });
1759
- var ps = /* @__PURE__ */ n(({ store: e }) => ({ api: {
1759
+ var ds = /* @__PURE__ */ n(({ store: e }) => ({ api: {
1760
1760
  addNotification: /* @__PURE__ */ n((o) => {
1761
1761
  e.setState(({ notifications: s }) => {
1762
1762
  let [i, a] = Be(s, (c) => c.id === o.id);
@@ -1778,9 +1778,9 @@ var ps = /* @__PURE__ */ n(({ store: e }) => ({ api: {
1778
1778
  // src/manager-api/modules/provider.ts
1779
1779
  var Qt = {};
1780
1780
  L(Qt, {
1781
- init: () => ds
1781
+ init: () => fs
1782
1782
  });
1783
- var ds = /* @__PURE__ */ n(({ provider: e, fullAPI: t }) => ({
1783
+ var fs = /* @__PURE__ */ n(({ provider: e, fullAPI: t }) => ({
1784
1784
  api: e.renderPreview ? { renderPreview: e.renderPreview } : {},
1785
1785
  state: {},
1786
1786
  init: /* @__PURE__ */ n(() => {
@@ -1791,9 +1791,9 @@ var ds = /* @__PURE__ */ n(({ provider: e, fullAPI: t }) => ({
1791
1791
  // src/manager-api/modules/settings.ts
1792
1792
  var Zt = {};
1793
1793
  L(Zt, {
1794
- init: () => fs
1794
+ init: () => ys
1795
1795
  });
1796
- var fs = /* @__PURE__ */ n(({ store: e, navigate: t, fullAPI: r }) => ({
1796
+ var ys = /* @__PURE__ */ n(({ store: e, navigate: t, fullAPI: r }) => ({
1797
1797
  state: { settings: { lastTrackedStoryId: null } },
1798
1798
  api: {
1799
1799
  closeSettings: /* @__PURE__ */ n(() => {
@@ -1827,23 +1827,23 @@ var ir = {};
1827
1827
  L(ir, {
1828
1828
  controlOrMetaKey: () => ce,
1829
1829
  defaultShortcuts: () => ue,
1830
- init: () => vs,
1830
+ init: () => _s,
1831
1831
  isMacLike: () => xo,
1832
1832
  keys: () => ar
1833
1833
  });
1834
1834
  import {
1835
- FORCE_REMOUNT as gs,
1836
- PREVIEW_KEYDOWN as Ss,
1837
- STORIES_COLLAPSE_ALL as bs,
1838
- STORIES_EXPAND_ALL as Ps
1835
+ FORCE_REMOUNT as Ss,
1836
+ PREVIEW_KEYDOWN as bs,
1837
+ STORIES_COLLAPSE_ALL as Ps,
1838
+ STORIES_EXPAND_ALL as As
1839
1839
  } from "storybook/internal/core-events";
1840
- import { global as As } from "@storybook/global";
1840
+ import { global as Es } from "@storybook/global";
1841
1841
 
1842
1842
  // src/manager-api/lib/shortcut.ts
1843
- import { global as ys } from "@storybook/global";
1844
- var { navigator: er } = ys, tr = /* @__PURE__ */ n(() => er && er.platform ? !!er.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1, "isMacLike"),
1845
- cd = /* @__PURE__ */ n(() => tr() ? "\u2318" : "ctrl", "controlOrMetaSymbol"), ud = /* @__PURE__ */ n(() => tr() ? "meta" : "control", "cont\
1846
- rolOrMetaKey"), ms = /* @__PURE__ */ n(() => tr() ? "\u2325" : "alt", "optionOrAltSymbol"), ld = /* @__PURE__ */ n((e, t) => JSON.stringify(
1843
+ import { global as ms } from "@storybook/global";
1844
+ var { navigator: er } = ms, tr = /* @__PURE__ */ n(() => er && er.platform ? !!er.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1, "isMacLike"),
1845
+ ud = /* @__PURE__ */ n(() => tr() ? "\u2318" : "ctrl", "controlOrMetaSymbol"), ld = /* @__PURE__ */ n(() => tr() ? "meta" : "control", "cont\
1846
+ rolOrMetaKey"), hs = /* @__PURE__ */ n(() => tr() ? "\u2325" : "alt", "optionOrAltSymbol"), pd = /* @__PURE__ */ n((e, t) => JSON.stringify(
1847
1847
  e) === JSON.stringify(t), "isShortcutTaken"), rr = /* @__PURE__ */ n((e) => {
1848
1848
  if (["Meta", "Alt", "Control", "Shift"].includes(e.key))
1849
1849
  return null;
@@ -1859,13 +1859,13 @@ e) === JSON.stringify(t), "isShortcutTaken"), rr = /* @__PURE__ */ n((e) => {
1859
1859
  }, "eventToShortcut"), or = /* @__PURE__ */ n((e, t) => !e || !t || (e.join("").startsWith("shift/") && e.shift(), e.length !== t.length) ? !1 :
1860
1860
  !e.find(
1861
1861
  (r, o) => Array.isArray(r) ? !r.includes(t[o]) : r !== t[o]
1862
- ), "shortcutMatchesShortcut"), pd = /* @__PURE__ */ n((e, t) => or(rr(e), t), "eventMatchesShortcut"), hs = /* @__PURE__ */ n((e) => e === "\
1863
- alt" ? ms() : e === "control" ? "\u2303" : e === "meta" ? "\u2318" : e === "shift" ? "\u21E7\u200B" : e === "Enter" || e === "Backspace" || e ===
1862
+ ), "shortcutMatchesShortcut"), dd = /* @__PURE__ */ n((e, t) => or(rr(e), t), "eventMatchesShortcut"), gs = /* @__PURE__ */ n((e) => e === "\
1863
+ alt" ? hs() : e === "control" ? "\u2303" : e === "meta" ? "\u2318" : e === "shift" ? "\u21E7\u200B" : e === "Enter" || e === "Backspace" || e ===
1864
1864
  "Esc" || e === "escape" ? "" : e === " " ? "SPACE" : e === "ArrowUp" ? "\u2191" : e === "ArrowDown" ? "\u2193" : e === "ArrowLeft" ? "\u2190" :
1865
- e === "ArrowRight" ? "\u2192" : e.toUpperCase(), "keyToSymbol"), dd = /* @__PURE__ */ n((e) => e.map(hs).join(" "), "shortcutToHumanString");
1865
+ e === "ArrowRight" ? "\u2192" : e.toUpperCase(), "keyToSymbol"), fd = /* @__PURE__ */ n((e) => e.map(gs).join(" "), "shortcutToHumanString");
1866
1866
 
1867
1867
  // src/manager-api/modules/shortcuts.ts
1868
- var { navigator: nr, document: Io } = As, xo = /* @__PURE__ */ n(() => nr && nr.platform ? !!nr.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1,
1868
+ var { navigator: nr, document: Io } = Es, xo = /* @__PURE__ */ n(() => nr && nr.platform ? !!nr.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1,
1869
1869
  "isMacLike"), ce = /* @__PURE__ */ n(() => xo() ? "meta" : "control", "controlOrMetaKey");
1870
1870
  function ar(e) {
1871
1871
  return Object.keys(e);
@@ -1893,12 +1893,12 @@ var ue = Object.freeze({
1893
1893
  expandAll: [ce(), "shift", "ArrowDown"],
1894
1894
  remount: ["alt", "R"]
1895
1895
  }), sr = {};
1896
- function Es(e) {
1896
+ function vs(e) {
1897
1897
  let t = e.target;
1898
1898
  return !!(/input|textarea/i.test(t.tagName) || t.getAttribute("contenteditable") !== null || t.closest("dialog[open]"));
1899
1899
  }
1900
- n(Es, "shouldSkipShortcut");
1901
- var vs = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1900
+ n(vs, "shouldSkipShortcut");
1901
+ var _s = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1902
1902
  let o = {
1903
1903
  // Getting and setting shortcuts
1904
1904
  getShortcutKeys() {
@@ -2033,15 +2033,15 @@ var vs = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
2033
2033
  break;
2034
2034
  }
2035
2035
  case "collapseAll": {
2036
- t.emit(bs);
2036
+ t.emit(Ps);
2037
2037
  break;
2038
2038
  }
2039
2039
  case "expandAll": {
2040
- t.emit(Ps);
2040
+ t.emit(As);
2041
2041
  break;
2042
2042
  }
2043
2043
  case "remount": {
2044
- t.emit(gs, { storyId: p });
2044
+ t.emit(Ss, { storyId: p });
2045
2045
  break;
2046
2046
  }
2047
2047
  default:
@@ -2058,8 +2058,8 @@ var vs = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
2058
2058
  };
2059
2059
  return { api: o, state: i, init: /* @__PURE__ */ n(() => {
2060
2060
  Io.addEventListener("keydown", (c) => {
2061
- Es(c) || o.handleKeydownEvent(c);
2062
- }), r.channel?.on(Ss, (c) => {
2061
+ vs(c) || o.handleKeydownEvent(c);
2062
+ }), r.channel?.on(bs, (c) => {
2063
2063
  o.handleKeydownEvent(c.event);
2064
2064
  });
2065
2065
  }, "initModule") };
@@ -2068,31 +2068,31 @@ var vs = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
2068
2068
  // src/manager-api/modules/stories.ts
2069
2069
  var yr = {};
2070
2070
  L(yr, {
2071
- init: () => Qs
2071
+ init: () => Zs
2072
2072
  });
2073
- import { logger as ws } from "storybook/internal/client-logger";
2073
+ import { logger as Os } from "storybook/internal/client-logger";
2074
2074
  import {
2075
- CONFIG_ERROR as Os,
2075
+ CONFIG_ERROR as Cs,
2076
2076
  CURRENT_STORY_WAS_SET as Ns,
2077
- DOCS_PREPARED as Cs,
2078
- PRELOAD_ENTRIES as js,
2079
- RESET_STORY_ARGS as ks,
2080
- SELECT_STORY as Ds,
2081
- SET_CONFIG as Ms,
2082
- SET_CURRENT_STORY as Us,
2083
- SET_FILTER as Ls,
2084
- SET_INDEX as Fs,
2077
+ DOCS_PREPARED as js,
2078
+ PRELOAD_ENTRIES as ks,
2079
+ RESET_STORY_ARGS as Ds,
2080
+ SELECT_STORY as Ms,
2081
+ SET_CONFIG as Us,
2082
+ SET_CURRENT_STORY as Ls,
2083
+ SET_FILTER as Fs,
2084
+ SET_INDEX as Ws,
2085
2085
  SET_STORIES as Gs,
2086
- STORY_ARGS_UPDATED as Ws,
2087
- STORY_CHANGED as $s,
2088
- STORY_INDEX_INVALIDATED as Bs,
2089
- STORY_MISSING as Vs,
2090
- STORY_PREPARED as Ks,
2091
- STORY_SPECIFIED as zs,
2092
- UPDATE_STORY_ARGS as Hs
2086
+ STORY_ARGS_UPDATED as $s,
2087
+ STORY_CHANGED as Bs,
2088
+ STORY_INDEX_INVALIDATED as Vs,
2089
+ STORY_MISSING as Ks,
2090
+ STORY_PREPARED as zs,
2091
+ STORY_SPECIFIED as Hs,
2092
+ UPDATE_STORY_ARGS as qs
2093
2093
  } from "storybook/internal/core-events";
2094
- import { sanitize as Oo, toId as St } from "storybook/internal/csf";
2095
- import { global as qs } from "@storybook/global";
2094
+ import { sanitize as Co, toId as St } from "storybook/internal/csf";
2095
+ import { global as Ys } from "@storybook/global";
2096
2096
 
2097
2097
  // src/storybook-error.ts
2098
2098
  function To({
@@ -2103,6 +2103,17 @@ function To({
2103
2103
  return `SB_${t}_${r}`;
2104
2104
  }
2105
2105
  n(To, "parseErrorCode");
2106
+ function Ro(e) {
2107
+ if (/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))
2108
+ return e;
2109
+ try {
2110
+ let t = new URL(e);
2111
+ return t.searchParams.set("ref", "error"), t.toString();
2112
+ } catch {
2113
+ return e;
2114
+ }
2115
+ }
2116
+ n(Ro, "appendErrorRef");
2106
2117
  var ft = class ft extends Error {
2107
2118
  constructor(r) {
2108
2119
  super(ft.getFullMessage(r));
@@ -2131,9 +2142,9 @@ var ft = class ft extends Error {
2131
2142
  message: i
2132
2143
  }) {
2133
2144
  let a;
2134
- return r === !0 ? a = `https://storybook.js.org/error/${To({ code: o, category: s })}` : typeof r == "string" ? a = r : Array.isArray(r) &&
2135
- (a = `
2136
- ${r.map((c) => ` - ${c}`).join(`
2145
+ return r === !0 ? a = `https://storybook.js.org/error/${To({ code: o, category: s })}?ref=error` : typeof r == "string" ? a = Ro(r) : Array.
2146
+ isArray(r) && (a = `
2147
+ ${r.map((c) => ` - ${Ro(c)}`).join(`
2137
2148
  `)}`), `${i}${a != null ? `
2138
2149
 
2139
2150
  More info: ${a}
@@ -2198,14 +2209,14 @@ n(lr, "StatusTypeIdMismatchError");
2198
2209
  var ht = lr;
2199
2210
 
2200
2211
  // src/shared/status-store/index.ts
2201
- var Ro = {
2212
+ var wo = {
2202
2213
  id: "storybook/status",
2203
2214
  leader: !0,
2204
2215
  initialState: {}
2205
2216
  }, pr = {
2206
2217
  SELECT: "select"
2207
2218
  };
2208
- function wo({
2219
+ function Oo({
2209
2220
  universalStatusStore: e,
2210
2221
  useUniversalStore: t,
2211
2222
  environment: r
@@ -2307,13 +2318,13 @@ function wo({
2307
2318
  useStatusStore: /* @__PURE__ */ n((i) => t(e, i)[0], "useStatusStore")
2308
2319
  } : { getStatusStoreByTypeId: s, fullStatusStore: o, universalStatusStore: e };
2309
2320
  }
2310
- n(wo, "createStatusStore");
2321
+ n(Oo, "createStatusStore");
2311
2322
 
2312
2323
  // src/shared/universal-store/instances.ts
2313
2324
  var dr = /* @__PURE__ */ new Map();
2314
2325
 
2315
2326
  // src/shared/universal-store/index.ts
2316
- var _s = "UNIVERSAL_STORE:", G = {
2327
+ var Is = "UNIVERSAL_STORE:", W = {
2317
2328
  PENDING: "PENDING",
2318
2329
  RESOLVED: "RESOLVED",
2319
2330
  REJECTED: "REJECTED"
@@ -2365,26 +2376,26 @@ var _s = "UNIVERSAL_STORE:", G = {
2365
2376
  "UniversalStore is not constructable - use UniversalStore.create() instead"
2366
2377
  );
2367
2378
  if (b.isInternalConstructing = !1, this.id = t.id, this.actorId = Date.now().toString(36) + Math.random().toString(36).substring(2), this.
2368
- actorType = t.leader ? b.ActorType.LEADER : b.ActorType.FOLLOWER, this.state = t.initialState, this.channelEventName = `${_s}${this.id}`,
2379
+ actorType = t.leader ? b.ActorType.LEADER : b.ActorType.FOLLOWER, this.state = t.initialState, this.channelEventName = `${Is}${this.id}`,
2369
2380
  this.debug("constructor", {
2370
2381
  options: t,
2371
2382
  environmentOverrides: r,
2372
2383
  channelEventName: this.channelEventName
2373
2384
  }), this.actor.type === b.ActorType.LEADER)
2374
2385
  this.syncing = {
2375
- state: G.RESOLVED,
2386
+ state: W.RESOLVED,
2376
2387
  promise: Promise.resolve()
2377
2388
  };
2378
2389
  else {
2379
2390
  let o, s, i = new Promise((a, c) => {
2380
2391
  o = /* @__PURE__ */ n(() => {
2381
- this.syncing.state === G.PENDING && (this.syncing.state = G.RESOLVED, a());
2392
+ this.syncing.state === W.PENDING && (this.syncing.state = W.RESOLVED, a());
2382
2393
  }, "syncingResolve"), s = /* @__PURE__ */ n((u) => {
2383
- this.syncing.state === G.PENDING && (this.syncing.state = G.REJECTED, c(u));
2394
+ this.syncing.state === W.PENDING && (this.syncing.state = W.REJECTED, c(u));
2384
2395
  }, "syncingReject");
2385
2396
  });
2386
2397
  this.syncing = {
2387
- state: G.PENDING,
2398
+ state: W.PENDING,
2388
2399
  promise: i,
2389
2400
  resolve: o,
2390
2401
  reject: s
@@ -2429,12 +2440,12 @@ var _s = "UNIVERSAL_STORE:", G = {
2429
2440
  if (!this.channel || !this.environment)
2430
2441
  return b.Status.UNPREPARED;
2431
2442
  switch (this.syncing?.state) {
2432
- case G.PENDING:
2443
+ case W.PENDING:
2433
2444
  case void 0:
2434
2445
  return b.Status.SYNCING;
2435
- case G.REJECTED:
2446
+ case W.REJECTED:
2436
2447
  return b.Status.ERROR;
2437
- case G.RESOLVED:
2448
+ case W.RESOLVED:
2438
2449
  default:
2439
2450
  return b.Status.READY;
2440
2451
  }
@@ -2565,7 +2576,7 @@ var _s = "UNIVERSAL_STORE:", G = {
2565
2576
  if ([o.actor.id, o.forwardingActor?.id].includes(this.actor.id)) {
2566
2577
  this.debug("handleChannelEvents: Ignoring event from self", { channelEvent: t });
2567
2578
  return;
2568
- } else if (this.syncing?.state === G.PENDING && r.type !== b.InternalEventType.EXISTING_STATE_RESPONSE) {
2579
+ } else if (this.syncing?.state === W.PENDING && r.type !== b.InternalEventType.EXISTING_STATE_RESPONSE) {
2569
2580
  this.debug("handleChannelEvents: Ignoring event while syncing", { channelEvent: t });
2570
2581
  return;
2571
2582
  }
@@ -2583,7 +2594,7 @@ var _s = "UNIVERSAL_STORE:", G = {
2583
2594
  }), this.emitToChannel(i, { actor: this.actor }), this.emitToListeners(i, { actor: this.actor });
2584
2595
  break;
2585
2596
  case b.InternalEventType.LEADER_CREATED:
2586
- s = !1, this.syncing.state = G.REJECTED, this.debug("handleChannelEvents: erroring due to second leader being created", {
2597
+ s = !1, this.syncing.state = W.REJECTED, this.debug("handleChannelEvents: erroring due to second leader being created", {
2587
2598
  event: r
2588
2599
  }), console.error(
2589
2600
  j`Detected multiple UniversalStore leaders created with the same id "${this.id}".
@@ -2602,7 +2613,7 @@ var _s = "UNIVERSAL_STORE:", G = {
2602
2613
  case b.InternalEventType.EXISTING_STATE_RESPONSE:
2603
2614
  if (this.debug("handleChannelEvents: Setting state from leader's existing state response", {
2604
2615
  event: r
2605
- }), this.syncing?.state !== G.PENDING)
2616
+ }), this.syncing?.state !== W.PENDING)
2606
2617
  break;
2607
2618
  this.syncing.resolve?.();
2608
2619
  let s = {
@@ -2684,7 +2695,7 @@ b.InternalEventType = {
2684
2695
  ERROR: "ERROR"
2685
2696
  }, // This is used to check if constructor was called from the static factory create()
2686
2697
  b.isInternalConstructing = !1, b.setupPreparationPromise();
2687
- var W = b;
2698
+ var G = b;
2688
2699
 
2689
2700
  // src/shared/universal-store/use-universal-store-manager.ts
2690
2701
  import * as ee from "react";
@@ -2709,27 +2720,27 @@ var we = /* @__PURE__ */ n((e, t) => {
2709
2720
  }, "useUniversalStore");
2710
2721
 
2711
2722
  // src/manager-api/stores/status.ts
2712
- var Is = wo({
2713
- universalStatusStore: W.create({
2714
- ...Ro,
2723
+ var xs = Oo({
2724
+ universalStatusStore: G.create({
2725
+ ...wo,
2715
2726
  leader: globalThis.CONFIG_TYPE === "PRODUCTION"
2716
2727
  }),
2717
2728
  useUniversalStore: we,
2718
2729
  environment: "manager"
2719
- }), { fullStatusStore: gt, getStatusStoreByTypeId: xs, useStatusStore: Ts, universalStatusStore: Rs } = Is;
2730
+ }), { fullStatusStore: gt, getStatusStoreByTypeId: Ts, useStatusStore: Rs, universalStatusStore: ws } = xs;
2720
2731
 
2721
2732
  // src/manager-api/modules/stories.ts
2722
- var { fetch: Ys } = qs, Js = "./index.json", Xs = ["enableShortcuts", "theme", "showRoots"];
2733
+ var { fetch: Js } = Ys, Xs = "./index.json", Qs = ["enableShortcuts", "theme", "showRoots"];
2723
2734
  function fr(e) {
2724
2735
  if (!e || typeof e == "string")
2725
2736
  return e;
2726
2737
  let t = { ...e };
2727
- return Xs.forEach((r) => {
2738
+ return Qs.forEach((r) => {
2728
2739
  r in t && delete t[r];
2729
2740
  }), t;
2730
2741
  }
2731
2742
  n(fr, "removeRemovedOptions");
2732
- var Qs = /* @__PURE__ */ n(({
2743
+ var Zs = /* @__PURE__ */ n(({
2733
2744
  fullAPI: e,
2734
2745
  store: t,
2735
2746
  navigate: r,
@@ -2811,7 +2822,7 @@ var Qs = /* @__PURE__ */ n(({
2811
2822
  if (g[P])
2812
2823
  c.selectStory(P, void 0, d);
2813
2824
  else {
2814
- let E = g[Oo(l)];
2825
+ let E = g[Co(l)];
2815
2826
  if (E?.type === "component") {
2816
2827
  let v = E.children.find((I) => g[I].name === p);
2817
2828
  v && c.selectStory(v, void 0, d);
@@ -2822,7 +2833,7 @@ var Qs = /* @__PURE__ */ n(({
2822
2833
  c.selectStory(P, void 0, d);
2823
2834
  }
2824
2835
  else {
2825
- let P = l ? g[l] || g[Oo(l)] : g[S];
2836
+ let P = l ? g[l] || g[Co(l)] : g[S];
2826
2837
  if (!P)
2827
2838
  throw new Error(`Unknown id or title: '${l}'`);
2828
2839
  t.setState({
@@ -2863,7 +2874,7 @@ var Qs = /* @__PURE__ */ n(({
2863
2874
  },
2864
2875
  updateStoryArgs: /* @__PURE__ */ n((l, p) => {
2865
2876
  let { id: d, refId: f } = l;
2866
- o.channel?.emit(Hs, {
2877
+ o.channel?.emit(qs, {
2867
2878
  storyId: d,
2868
2879
  updatedArgs: p,
2869
2880
  options: { target: f }
@@ -2871,7 +2882,7 @@ var Qs = /* @__PURE__ */ n(({
2871
2882
  }, "updateStoryArgs"),
2872
2883
  resetStoryArgs: /* @__PURE__ */ n((l, p) => {
2873
2884
  let { id: d, refId: f } = l;
2874
- o.channel?.emit(ks, {
2885
+ o.channel?.emit(Ds, {
2875
2886
  storyId: d,
2876
2887
  argNames: p,
2877
2888
  options: { target: f }
@@ -2879,12 +2890,12 @@ var Qs = /* @__PURE__ */ n(({
2879
2890
  }, "resetStoryArgs"),
2880
2891
  fetchIndex: /* @__PURE__ */ n(async () => {
2881
2892
  try {
2882
- let l = await Ys(Js);
2893
+ let l = await Js(Xs);
2883
2894
  if (l.status !== 200)
2884
2895
  throw new Error(await l.text());
2885
2896
  let p = await l.json();
2886
2897
  if (p.v < 3) {
2887
- ws.warn(`Skipping story index with version v${p.v}, awaiting SET_STORIES.`);
2898
+ Os.warn(`Skipping story index with version v${p.v}, awaiting SET_STORIES.`);
2888
2899
  return;
2889
2900
  }
2890
2901
  await c.setIndex(p);
@@ -2969,11 +2980,11 @@ var Qs = /* @__PURE__ */ n(({
2969
2980
  let f = await e.getRefs();
2970
2981
  Object.entries(f).forEach(([y, { internal_index: m, ...h }]) => {
2971
2982
  e.setRef(y, { ...h, storyIndex: m }, !0);
2972
- }), o.channel?.emit(Ls, { id: l });
2983
+ }), o.channel?.emit(Fs, { id: l });
2973
2984
  }, "experimental_setFilter")
2974
2985
  };
2975
2986
  o.channel?.on(
2976
- zs,
2987
+ Hs,
2977
2988
  /* @__PURE__ */ n(function({
2978
2989
  storyId: p,
2979
2990
  viewMode: d
@@ -2982,7 +2993,7 @@ var Qs = /* @__PURE__ */ n(({
2982
2993
  if (f === "local") {
2983
2994
  let y = t.getState(), m = y.path === "/" || y.viewMode === "story" || y.viewMode === "docs", h = y.viewMode && y.storyId, g = y.viewMode !==
2984
2995
  d || y.storyId !== p, { type: S } = y.index?.[y.storyId] || {};
2985
- m && (h && g && !(S === "root" || S === "component" || S === "group") ? o.channel?.emit(Us, {
2996
+ m && (h && g && !(S === "root" || S === "component" || S === "group") ? o.channel?.emit(Ls, {
2986
2997
  storyId: y.storyId,
2987
2998
  viewMode: y.viewMode
2988
2999
  }) : g && r(`/${d}/${p}`));
@@ -2991,14 +3002,14 @@ var Qs = /* @__PURE__ */ n(({
2991
3002
  ), o.channel?.on(Ns, /* @__PURE__ */ n(function() {
2992
3003
  let { ref: p } = k(this, e);
2993
3004
  c.setPreviewInitialized(p);
2994
- }, "handler")), o.channel?.on($s, /* @__PURE__ */ n(function() {
3005
+ }, "handler")), o.channel?.on(Bs, /* @__PURE__ */ n(function() {
2995
3006
  let { sourceType: p } = k(this, e);
2996
3007
  if (p === "local") {
2997
3008
  let d = c.getCurrentParameter("options");
2998
3009
  d && e.setOptions(fr(d));
2999
3010
  }
3000
3011
  }, "handler")), o.channel?.on(
3001
- Ks,
3012
+ zs,
3002
3013
  /* @__PURE__ */ n(function({ id: p, ...d }) {
3003
3014
  let { ref: f, sourceType: y } = k(this, e);
3004
3015
  if (c.updateStory(p, { ...d, prepared: !0 }, f), !f && !t.getState().hasCalledSetOptions) {
@@ -3015,19 +3026,19 @@ var Qs = /* @__PURE__ */ n(({
3015
3026
  c.findSiblingStoryId(m, h, -1, !0)
3016
3027
  ])
3017
3028
  ).filter(Boolean);
3018
- o.channel?.emit(js, {
3029
+ o.channel?.emit(ks, {
3019
3030
  ids: S,
3020
3031
  options: { target: g }
3021
3032
  });
3022
3033
  }
3023
3034
  }, "handler")
3024
3035
  ), o.channel?.on(
3025
- Cs,
3036
+ js,
3026
3037
  /* @__PURE__ */ n(function({ id: p, ...d }) {
3027
3038
  let { ref: f } = k(this, e);
3028
3039
  c.updateStory(p, { ...d, prepared: !0 }, f);
3029
3040
  }, "handler")
3030
- ), o.channel?.on(Fs, /* @__PURE__ */ n(function(p) {
3041
+ ), o.channel?.on(Ws, /* @__PURE__ */ n(function(p) {
3031
3042
  let { ref: d } = k(this, e);
3032
3043
  if (d)
3033
3044
  e.setRef(d.id, { ...d, storyIndex: p }, !0);
@@ -3043,7 +3054,7 @@ var Qs = /* @__PURE__ */ n(({
3043
3054
  else
3044
3055
  throw new Error("Cannot call SET_STORIES for local frame");
3045
3056
  }, "handler")), o.channel?.on(
3046
- Ds,
3057
+ Ms,
3047
3058
  /* @__PURE__ */ n(function({
3048
3059
  kind: p,
3049
3060
  title: d = p,
@@ -3056,18 +3067,18 @@ var Qs = /* @__PURE__ */ n(({
3056
3067
  g ? e.selectStory(m || d, y, { ...h, ref: g.id }) : e.selectStory(m || d, y, h);
3057
3068
  }, "handler")
3058
3069
  ), o.channel?.on(
3059
- Ws,
3070
+ $s,
3060
3071
  /* @__PURE__ */ n(function({ storyId: p, args: d }) {
3061
3072
  let { ref: f } = k(this, e);
3062
3073
  c.updateStory(p, { args: d }, f);
3063
3074
  }, "handleStoryArgsUpdated")
3064
- ), o.channel?.on(Os, /* @__PURE__ */ n(function(p) {
3075
+ ), o.channel?.on(Cs, /* @__PURE__ */ n(function(p) {
3065
3076
  let { ref: d } = k(this, e);
3066
3077
  c.setPreviewInitialized(d);
3067
- }, "handleConfigError")), o.channel?.on(Vs, /* @__PURE__ */ n(function(p) {
3078
+ }, "handleConfigError")), o.channel?.on(Ks, /* @__PURE__ */ n(function(p) {
3068
3079
  let { ref: d } = k(this, e);
3069
3080
  c.setPreviewInitialized(d);
3070
- }, "handleConfigError")), o.channel?.on(Ms, () => {
3081
+ }, "handleConfigError")), o.channel?.on(Us, () => {
3071
3082
  let l = o.getConfig();
3072
3083
  l?.sidebar?.filters && t.setState({
3073
3084
  filters: {
@@ -3096,7 +3107,7 @@ var Qs = /* @__PURE__ */ n(({
3096
3107
  filters: u?.sidebar?.filters || {}
3097
3108
  },
3098
3109
  init: /* @__PURE__ */ n(async () => {
3099
- o.channel?.on(Bs, () => c.fetchIndex()), await c.fetchIndex();
3110
+ o.channel?.on(Vs, () => c.fetchIndex()), await c.fetchIndex();
3100
3111
  }, "init")
3101
3112
  };
3102
3113
  }, "init");
@@ -3104,23 +3115,23 @@ var Qs = /* @__PURE__ */ n(({
3104
3115
  // src/manager-api/modules/url.ts
3105
3116
  var gr = {};
3106
3117
  L(gr, {
3107
- init: () => ia
3118
+ init: () => ca
3108
3119
  });
3109
3120
  import {
3110
- GLOBALS_UPDATED as Zs,
3111
- NAVIGATE_URL as ea,
3112
- SET_CURRENT_STORY as ta,
3113
- STORY_ARGS_UPDATED as ra,
3114
- UPDATE_QUERY_PARAMS as oa
3121
+ GLOBALS_UPDATED as ea,
3122
+ NAVIGATE_URL as ta,
3123
+ SET_CURRENT_STORY as ra,
3124
+ STORY_ARGS_UPDATED as oa,
3125
+ UPDATE_QUERY_PARAMS as na
3115
3126
  } from "storybook/internal/core-events";
3116
- import { buildArgsParam as No, queryFromLocation as na } from "storybook/internal/router";
3117
- import { global as sa } from "@storybook/global";
3118
- var { window: mr } = sa, te = /* @__PURE__ */ n((e) => {
3127
+ import { buildArgsParam as No, queryFromLocation as sa } from "storybook/internal/router";
3128
+ import { global as aa } from "@storybook/global";
3129
+ var { window: mr } = aa, te = /* @__PURE__ */ n((e) => {
3119
3130
  if (e === "true" || e === "1")
3120
3131
  return !0;
3121
3132
  if (e === "false" || e === "0")
3122
3133
  return !1;
3123
- }, "parseBoolean"), hr, aa = /* @__PURE__ */ n(({
3134
+ }, "parseBoolean"), hr, ia = /* @__PURE__ */ n(({
3124
3135
  state: { location: e, path: t, viewMode: r, storyId: o },
3125
3136
  singleStory: s
3126
3137
  }) => {
@@ -3134,7 +3145,7 @@ var { window: mr } = sa, te = /* @__PURE__ */ n((e) => {
3134
3145
  path: d,
3135
3146
  ...f
3136
3147
  // the rest gets passed to the iframe
3137
- } = na(e), y, m, h;
3148
+ } = sa(e), y, m, h;
3138
3149
  te(i) === !0 ? (y = 0, m = 0, h = 0) : te(i) === !1 && (y = U.layout.navSize, m = U.layout.bottomPanelHeight, h = U.layout.rightPanelWidth),
3139
3150
  s || (te(c) === !0 && (y = U.layout.navSize), te(c) === !1 && (y = 0)), te(a) === !1 && (m = 0, h = 0);
3140
3151
  let g = {
@@ -3147,7 +3158,7 @@ var { window: mr } = sa, te = /* @__PURE__ */ n((e) => {
3147
3158
  enableShortcuts: te(u)
3148
3159
  }, P = l || void 0, E = o, v = F(hr, f) ? hr : f;
3149
3160
  return hr = v, { viewMode: r, layout: g, ui: S, selectedPanel: P, location: e, path: t, customQueryParams: v, storyId: E };
3150
- }, "initialUrlSupport"), ia = /* @__PURE__ */ n((e) => {
3161
+ }, "initialUrlSupport"), ca = /* @__PURE__ */ n((e) => {
3151
3162
  let { store: t, navigate: r, provider: o, fullAPI: s } = e, i = /* @__PURE__ */ n((l, p = {}, d = {}) => {
3152
3163
  let f = Object.entries(p).filter(([, m]) => m).sort(([m], [h]) => m < h ? -1 : 1).map(([m, h]) => `${m}=${h}`), y = [l, ...f].join("&");
3153
3164
  return r(y, d);
@@ -3172,7 +3183,7 @@ var { window: mr } = sa, te = /* @__PURE__ */ n((e) => {
3172
3183
  ...p,
3173
3184
  ...Object.entries(l).reduce((y, [m, h]) => (h !== null && (y[m] = h), y), d)
3174
3185
  };
3175
- F(p, f) || (t.setState({ customQueryParams: f }), o.channel?.emit(oa, f));
3186
+ F(p, f) || (t.setState({ customQueryParams: f }), o.channel?.emit(na, f));
3176
3187
  },
3177
3188
  applyQueryParams(l, p) {
3178
3189
  let { path: d, hash: f = "", queryParams: y } = a.getUrlState();
@@ -3191,48 +3202,48 @@ var { window: mr } = sa, te = /* @__PURE__ */ n((e) => {
3191
3202
  let { args: m, initialArgs: h } = y, g = No(h, m);
3192
3203
  i(`${l}${p}`, { ...d, args: g }, { replace: !0 }), a.setQueryParams({ args: g });
3193
3204
  }, "updateArgsParam");
3194
- o.channel?.on(ta, () => c());
3205
+ o.channel?.on(ra, () => c());
3195
3206
  let u;
3196
- return o.channel?.on(ra, () => {
3207
+ return o.channel?.on(oa, () => {
3197
3208
  "requestIdleCallback" in mr ? (u && mr.cancelIdleCallback(u), u = mr.requestIdleCallback(c, { timeout: 1e3 })) : (u && clearTimeout(u), setTimeout(
3198
3209
  c, 100));
3199
- }), o.channel?.on(Zs, ({ userGlobals: l, initialGlobals: p }) => {
3210
+ }), o.channel?.on(ea, ({ userGlobals: l, initialGlobals: p }) => {
3200
3211
  let { path: d, hash: f = "", queryParams: y } = a.getUrlState(), m = No(p, l);
3201
3212
  i(`${d}${f}`, { ...y, globals: m }, { replace: !0 }), a.setQueryParams({ globals: m });
3202
- }), o.channel?.on(ea, (l, p) => {
3213
+ }), o.channel?.on(ta, (l, p) => {
3203
3214
  a.navigateUrl(l, p);
3204
3215
  }), {
3205
3216
  api: a,
3206
- state: aa(e)
3217
+ state: ia(e)
3207
3218
  };
3208
3219
  }, "init");
3209
3220
 
3210
3221
  // src/manager-api/modules/versions.ts
3211
3222
  var br = {};
3212
3223
  L(br, {
3213
- init: () => la
3224
+ init: () => pa
3214
3225
  });
3215
- var ko = Ot(Bt(), 1);
3226
+ var Do = Ot(Bt(), 1);
3216
3227
  import { global as Sr } from "@storybook/global";
3217
3228
  import $ from "semver";
3218
3229
 
3219
3230
  // src/manager-api/version.ts
3220
- var Co = "9.1.1";
3231
+ var jo = "9.1.3";
3221
3232
 
3222
3233
  // src/manager-api/modules/versions.ts
3223
- var { VERSIONCHECK: ca } = Sr, jo = (0, ko.default)(1)(() => {
3234
+ var { VERSIONCHECK: ua } = Sr, ko = (0, Do.default)(1)(() => {
3224
3235
  try {
3225
- return { ...JSON.parse(ca).data || {} };
3236
+ return { ...JSON.parse(ua).data || {} };
3226
3237
  } catch {
3227
3238
  return {};
3228
3239
  }
3229
- }), ua = /* @__PURE__ */ n((e) => e.includes("vue") ? "vue" : e, "normalizeRendererName"), la = /* @__PURE__ */ n(({ store: e }) => {
3240
+ }), la = /* @__PURE__ */ n((e) => e.includes("vue") ? "vue" : e, "normalizeRendererName"), pa = /* @__PURE__ */ n(({ store: e }) => {
3230
3241
  let { dismissedVersionNotification: t } = e.getState(), r = {
3231
3242
  versions: {
3232
3243
  current: {
3233
- version: Co
3244
+ version: jo
3234
3245
  },
3235
- ...jo()
3246
+ ...ko()
3236
3247
  },
3237
3248
  dismissedVersionNotification: t
3238
3249
  }, o = {
@@ -3261,7 +3272,7 @@ var { VERSIONCHECK: ca } = Sr, jo = (0, ko.default)(1)(() => {
3261
3272
  let [d, f] = i?.split("#") || [];
3262
3273
  if (d && (p += `${d}/`), c && typeof Sr.STORYBOOK_RENDERER < "u") {
3263
3274
  let y = Sr.STORYBOOK_RENDERER;
3264
- y && (p += `?renderer=${ua(y)}`);
3275
+ y && (p += `?renderer=${la(y)}`);
3265
3276
  }
3266
3277
  return f && (p += `#${f}`), p;
3267
3278
  }, "getDocsUrl"),
@@ -3279,7 +3290,7 @@ var { VERSIONCHECK: ca } = Sr, jo = (0, ko.default)(1)(() => {
3279
3290
  }, "versionUpdateAvailable")
3280
3291
  };
3281
3292
  return { init: /* @__PURE__ */ n(async () => {
3282
- let { versions: i = {} } = e.getState(), { latest: a, next: c } = jo();
3293
+ let { versions: i = {} } = e.getState(), { latest: a, next: c } = ko();
3283
3294
  await e.setState({
3284
3295
  versions: { ...i, latest: a, next: c }
3285
3296
  });
@@ -3289,17 +3300,17 @@ var { VERSIONCHECK: ca } = Sr, jo = (0, ko.default)(1)(() => {
3289
3300
  // src/manager-api/modules/whatsnew.tsx
3290
3301
  var Ar = {};
3291
3302
  L(Ar, {
3292
- init: () => ga
3303
+ init: () => Sa
3293
3304
  });
3294
3305
  import Pr from "react";
3295
3306
  import {
3296
- REQUEST_WHATS_NEW_DATA as pa,
3297
- RESULT_WHATS_NEW_DATA as da,
3298
- SET_WHATS_NEW_CACHE as fa,
3299
- TOGGLE_WHATS_NEW_NOTIFICATIONS as ya
3307
+ REQUEST_WHATS_NEW_DATA as da,
3308
+ RESULT_WHATS_NEW_DATA as fa,
3309
+ SET_WHATS_NEW_CACHE as ya,
3310
+ TOGGLE_WHATS_NEW_NOTIFICATIONS as ma
3300
3311
  } from "storybook/internal/core-events";
3301
- import { global as ma } from "@storybook/global";
3302
- var Do = "whats-new", ha = /* @__PURE__ */ n(({ color: e = "currentColor", size: t = 14 }) => /* @__PURE__ */ Pr.createElement(
3312
+ import { global as ha } from "@storybook/global";
3313
+ var Mo = "whats-new", ga = /* @__PURE__ */ n(({ color: e = "currentColor", size: t = 14 }) => /* @__PURE__ */ Pr.createElement(
3303
3314
  "svg",
3304
3315
  {
3305
3316
  width: t,
@@ -3321,7 +3332,7 @@ var Do = "whats-new", ha = /* @__PURE__ */ n(({ color: e = "currentColor", size:
3321
3332
  fill: e
3322
3333
  }
3323
3334
  )
3324
- ), "StorybookIcon"), ga = /* @__PURE__ */ n(({ fullAPI: e, store: t, provider: r }) => {
3335
+ ), "StorybookIcon"), Sa = /* @__PURE__ */ n(({ fullAPI: e, store: t, provider: r }) => {
3325
3336
  let o = {
3326
3337
  whatsNewData: void 0
3327
3338
  };
@@ -3335,44 +3346,44 @@ var Do = "whats-new", ha = /* @__PURE__ */ n(({ color: e = "currentColor", size:
3335
3346
  },
3336
3347
  whatsNewHasBeenRead() {
3337
3348
  o.whatsNewData?.status === "SUCCESS" && (c({ lastReadPost: o.whatsNewData.url }), s({ ...o.whatsNewData, postIsRead: !0 }), e.clearNotification(
3338
- Do));
3349
+ Mo));
3339
3350
  },
3340
3351
  toggleWhatsNewNotifications() {
3341
3352
  o.whatsNewData?.status === "SUCCESS" && (s({
3342
3353
  ...o.whatsNewData,
3343
3354
  disableWhatsNewNotifications: !o.whatsNewData.disableWhatsNewNotifications
3344
- }), r.channel?.emit(ya, {
3355
+ }), r.channel?.emit(ma, {
3345
3356
  disableWhatsNewNotifications: o.whatsNewData.disableWhatsNewNotifications
3346
3357
  }));
3347
3358
  }
3348
3359
  };
3349
3360
  function a() {
3350
- return r.channel?.emit(pa), new Promise(
3361
+ return r.channel?.emit(da), new Promise(
3351
3362
  (l) => r.channel?.once(
3352
- da,
3363
+ fa,
3353
3364
  ({ data: p }) => l(p)
3354
3365
  )
3355
3366
  );
3356
3367
  }
3357
3368
  n(a, "getLatestWhatsNewPost");
3358
3369
  function c(l) {
3359
- r.channel?.emit(fa, l);
3370
+ r.channel?.emit(ya, l);
3360
3371
  }
3361
3372
  return n(c, "setWhatsNewCache"), { init: /* @__PURE__ */ n(async () => {
3362
- if (ma.CONFIG_TYPE !== "DEVELOPMENT")
3373
+ if (ha.CONFIG_TYPE !== "DEVELOPMENT")
3363
3374
  return;
3364
3375
  let l = await a();
3365
3376
  s(l);
3366
3377
  let p = e.getUrlState();
3367
3378
  !(p?.path === "/onboarding" || p.queryParams?.onboarding === "true") && l.status === "SUCCESS" && !l.disableWhatsNewNotifications && l.showNotification &&
3368
3379
  e.addNotification({
3369
- id: Do,
3380
+ id: Mo,
3370
3381
  link: "/settings/whats-new",
3371
3382
  content: {
3372
3383
  headline: l.title,
3373
3384
  subHeadline: "Learn what's new in Storybook"
3374
3385
  },
3375
- icon: /* @__PURE__ */ Pr.createElement(ha, null),
3386
+ icon: /* @__PURE__ */ Pr.createElement(ga, null),
3376
3387
  onClear({ dismissed: f }) {
3377
3388
  f && c({ lastDismissedPost: l.url });
3378
3389
  }
@@ -3381,25 +3392,25 @@ var Do = "whats-new", ha = /* @__PURE__ */ n(({ color: e = "currentColor", size:
3381
3392
  }, "init");
3382
3393
 
3383
3394
  // src/manager-api/store.ts
3384
- var ye = Ot(Mo(), 1);
3395
+ var ye = Ot(Uo(), 1);
3385
3396
 
3386
3397
  // ../node_modules/telejson/dist/chunk-EAFQLD22.mjs
3387
- var Sa = Object.create, Uo = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, Lo = Object.getOwnPropertyNames, Pa = Object.getPrototypeOf,
3388
- Aa = Object.prototype.hasOwnProperty, A = /* @__PURE__ */ n((e, t) => /* @__PURE__ */ n(function() {
3389
- return t || (0, e[Lo(e)[0]])((t = { exports: {} }).exports, t), t.exports;
3390
- }, "__require"), "__commonJS"), Ea = /* @__PURE__ */ n((e, t, r, o) => {
3398
+ var ba = Object.create, Lo = Object.defineProperty, Pa = Object.getOwnPropertyDescriptor, Fo = Object.getOwnPropertyNames, Aa = Object.getPrototypeOf,
3399
+ Ea = Object.prototype.hasOwnProperty, A = /* @__PURE__ */ n((e, t) => /* @__PURE__ */ n(function() {
3400
+ return t || (0, e[Fo(e)[0]])((t = { exports: {} }).exports, t), t.exports;
3401
+ }, "__require"), "__commonJS"), va = /* @__PURE__ */ n((e, t, r, o) => {
3391
3402
  if (t && typeof t == "object" || typeof t == "function")
3392
- for (let s of Lo(t))
3393
- !Aa.call(e, s) && s !== r && Uo(e, s, { get: /* @__PURE__ */ n(() => t[s], "get"), enumerable: !(o = ba(t, s)) || o.enumerable });
3403
+ for (let s of Fo(t))
3404
+ !Ea.call(e, s) && s !== r && Lo(e, s, { get: /* @__PURE__ */ n(() => t[s], "get"), enumerable: !(o = Pa(t, s)) || o.enumerable });
3394
3405
  return e;
3395
- }, "__copyProps"), At = /* @__PURE__ */ n((e, t, r) => (r = e != null ? Sa(Pa(e)) : {}, Ea(
3406
+ }, "__copyProps"), At = /* @__PURE__ */ n((e, t, r) => (r = e != null ? ba(Aa(e)) : {}, va(
3396
3407
  // If the importer is in node compatibility mode or this is not an ESM
3397
3408
  // file that has been converted to a CommonJS file using a Babel-
3398
3409
  // compatible transform (i.e. "__esModule" has not been set), then set
3399
3410
  // "default" to the CommonJS "module.exports" for node compatibility.
3400
- t || !e || !e.__esModule ? Uo(r, "default", { value: e, enumerable: !0 }) : r,
3411
+ t || !e || !e.__esModule ? Lo(r, "default", { value: e, enumerable: !0 }) : r,
3401
3412
  e
3402
- )), "__toESM"), va = [
3413
+ )), "__toESM"), _a = [
3403
3414
  "bubbles",
3404
3415
  "cancelBubble",
3405
3416
  "cancelable",
@@ -3413,45 +3424,45 @@ Aa = Object.prototype.hasOwnProperty, A = /* @__PURE__ */ n((e, t) => /* @__PURE
3413
3424
  "target",
3414
3425
  "timeStamp",
3415
3426
  "type"
3416
- ], _a = ["detail"];
3417
- function Fo(e) {
3418
- let t = va.filter((r) => e[r] !== void 0).reduce((r, o) => (r[o] = e[o], r), {});
3427
+ ], Ia = ["detail"];
3428
+ function Wo(e) {
3429
+ let t = _a.filter((r) => e[r] !== void 0).reduce((r, o) => (r[o] = e[o], r), {});
3419
3430
  if (e instanceof CustomEvent)
3420
- for (let r of _a.filter(
3431
+ for (let r of Ia.filter(
3421
3432
  (o) => e[o] !== void 0
3422
3433
  ))
3423
3434
  t[r] = e[r];
3424
3435
  return t;
3425
3436
  }
3426
- n(Fo, "extractEventHiddenProperties");
3437
+ n(Wo, "extractEventHiddenProperties");
3427
3438
 
3428
3439
  // ../node_modules/telejson/dist/index.mjs
3429
- var Ko = A({
3440
+ var zo = A({
3430
3441
  "node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e, t) {
3431
3442
  "use strict";
3432
3443
  t.exports = Object;
3433
3444
  }
3434
- }), Ia = A({
3445
+ }), xa = A({
3435
3446
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e, t) {
3436
3447
  "use strict";
3437
3448
  t.exports = Error;
3438
3449
  }
3439
- }), xa = A({
3450
+ }), Ta = A({
3440
3451
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e, t) {
3441
3452
  "use strict";
3442
3453
  t.exports = EvalError;
3443
3454
  }
3444
- }), Ta = A({
3455
+ }), Ra = A({
3445
3456
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e, t) {
3446
3457
  "use strict";
3447
3458
  t.exports = RangeError;
3448
3459
  }
3449
- }), Ra = A({
3460
+ }), wa = A({
3450
3461
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e, t) {
3451
3462
  "use strict";
3452
3463
  t.exports = ReferenceError;
3453
3464
  }
3454
- }), wa = A({
3465
+ }), Oa = A({
3455
3466
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e, t) {
3456
3467
  "use strict";
3457
3468
  t.exports = SyntaxError;
@@ -3461,7 +3472,7 @@ var Ko = A({
3461
3472
  "use strict";
3462
3473
  t.exports = TypeError;
3463
3474
  }
3464
- }), Oa = A({
3475
+ }), Ca = A({
3465
3476
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e, t) {
3466
3477
  "use strict";
3467
3478
  t.exports = URIError;
@@ -3471,47 +3482,47 @@ var Ko = A({
3471
3482
  "use strict";
3472
3483
  t.exports = Math.abs;
3473
3484
  }
3474
- }), Ca = A({
3485
+ }), ja = A({
3475
3486
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e, t) {
3476
3487
  "use strict";
3477
3488
  t.exports = Math.floor;
3478
3489
  }
3479
- }), ja = A({
3490
+ }), ka = A({
3480
3491
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e, t) {
3481
3492
  "use strict";
3482
3493
  t.exports = Math.max;
3483
3494
  }
3484
- }), ka = A({
3495
+ }), Da = A({
3485
3496
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e, t) {
3486
3497
  "use strict";
3487
3498
  t.exports = Math.min;
3488
3499
  }
3489
- }), Da = A({
3500
+ }), Ma = A({
3490
3501
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e, t) {
3491
3502
  "use strict";
3492
3503
  t.exports = Math.pow;
3493
3504
  }
3494
- }), Ma = A({
3505
+ }), Ua = A({
3495
3506
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e, t) {
3496
3507
  "use strict";
3497
3508
  t.exports = Math.round;
3498
3509
  }
3499
- }), Ua = A({
3510
+ }), La = A({
3500
3511
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e, t) {
3501
3512
  "use strict";
3502
3513
  t.exports = Number.isNaN || /* @__PURE__ */ n(function(o) {
3503
3514
  return o !== o;
3504
3515
  }, "isNaN2");
3505
3516
  }
3506
- }), La = A({
3517
+ }), Fa = A({
3507
3518
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e, t) {
3508
3519
  "use strict";
3509
- var r = Ua();
3520
+ var r = La();
3510
3521
  t.exports = /* @__PURE__ */ n(function(s) {
3511
3522
  return r(s) || s === 0 ? s : s < 0 ? -1 : 1;
3512
3523
  }, "sign");
3513
3524
  }
3514
- }), Fa = A({
3525
+ }), Wa = A({
3515
3526
  "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e, t) {
3516
3527
  "use strict";
3517
3528
  t.exports = Object.getOwnPropertyDescriptor;
@@ -3519,7 +3530,7 @@ var Ko = A({
3519
3530
  }), _r = A({
3520
3531
  "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e, t) {
3521
3532
  "use strict";
3522
- var r = Fa();
3533
+ var r = Wa();
3523
3534
  if (r)
3524
3535
  try {
3525
3536
  r([], "length");
@@ -3540,7 +3551,7 @@ var Ko = A({
3540
3551
  }
3541
3552
  t.exports = r;
3542
3553
  }
3543
- }), zo = A({
3554
+ }), Ho = A({
3544
3555
  "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e, t) {
3545
3556
  "use strict";
3546
3557
  t.exports = /* @__PURE__ */ n(function() {
@@ -3573,27 +3584,27 @@ Symbol]")
3573
3584
  return !0;
3574
3585
  }, "hasSymbols");
3575
3586
  }
3576
- }), Ho = A({
3587
+ }), qo = A({
3577
3588
  "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e, t) {
3578
3589
  "use strict";
3579
- var r = typeof Symbol < "u" && Symbol, o = zo();
3590
+ var r = typeof Symbol < "u" && Symbol, o = Ho();
3580
3591
  t.exports = /* @__PURE__ */ n(function() {
3581
3592
  return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
3582
3593
  o();
3583
3594
  }, "hasNativeSymbols");
3584
3595
  }
3585
- }), qo = A({
3596
+ }), Yo = A({
3586
3597
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e, t) {
3587
3598
  "use strict";
3588
3599
  t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
3589
3600
  }
3590
- }), Yo = A({
3601
+ }), Jo = A({
3591
3602
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e, t) {
3592
3603
  "use strict";
3593
- var r = Ko();
3604
+ var r = zo();
3594
3605
  t.exports = r.getPrototypeOf || null;
3595
3606
  }
3596
- }), Wa = A({
3607
+ }), $a = A({
3597
3608
  "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e, t) {
3598
3609
  "use strict";
3599
3610
  var r = "Function.prototype.bind called on incompatible ", o = Object.prototype.toString, s = Math.max, i = "[object Function]", a = /* @__PURE__ */ n(
@@ -3641,7 +3652,7 @@ Symbol]")
3641
3652
  }), Et = A({
3642
3653
  "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e, t) {
3643
3654
  "use strict";
3644
- var r = Wa();
3655
+ var r = $a();
3645
3656
  t.exports = Function.prototype.bind || r;
3646
3657
  }
3647
3658
  }), Ir = A({
@@ -3649,36 +3660,36 @@ Symbol]")
3649
3660
  "use strict";
3650
3661
  t.exports = Function.prototype.call;
3651
3662
  }
3652
- }), Jo = A({
3663
+ }), Xo = A({
3653
3664
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e, t) {
3654
3665
  "use strict";
3655
3666
  t.exports = Function.prototype.apply;
3656
3667
  }
3657
- }), $a = A({
3668
+ }), Ba = A({
3658
3669
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e, t) {
3659
3670
  "use strict";
3660
3671
  t.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
3661
3672
  }
3662
- }), Ba = A({
3673
+ }), Va = A({
3663
3674
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e, t) {
3664
3675
  "use strict";
3665
- var r = Et(), o = Jo(), s = Ir(), i = $a();
3676
+ var r = Et(), o = Xo(), s = Ir(), i = Ba();
3666
3677
  t.exports = i || r.call(s, o);
3667
3678
  }
3668
- }), Xo = A({
3679
+ }), Qo = A({
3669
3680
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e, t) {
3670
3681
  "use strict";
3671
- var r = Et(), o = vr(), s = Ir(), i = Ba();
3682
+ var r = Et(), o = vr(), s = Ir(), i = Va();
3672
3683
  t.exports = /* @__PURE__ */ n(function(c) {
3673
3684
  if (c.length < 1 || typeof c[0] != "function")
3674
3685
  throw new o("a function is required");
3675
3686
  return i(r, s, c);
3676
3687
  }, "callBindBasic");
3677
3688
  }
3678
- }), Va = A({
3689
+ }), Ka = A({
3679
3690
  "node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e, t) {
3680
3691
  "use strict";
3681
- var r = Xo(), o = _r(), s;
3692
+ var r = Qo(), o = _r(), s;
3682
3693
  try {
3683
3694
  s = /** @type {{ __proto__?: typeof Array.prototype }} */
3684
3695
  [].__proto__ === Array.prototype;
@@ -3698,10 +3709,10 @@ Symbol]")
3698
3709
  }, "getDunder")
3699
3710
  ) : !1;
3700
3711
  }
3701
- }), Ka = A({
3712
+ }), za = A({
3702
3713
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e, t) {
3703
3714
  "use strict";
3704
- var r = qo(), o = Yo(), s = Va();
3715
+ var r = Yo(), o = Jo(), s = Ka();
3705
3716
  t.exports = r ? /* @__PURE__ */ n(function(a) {
3706
3717
  return r(a);
3707
3718
  }, "getProto") : o ? /* @__PURE__ */ n(function(a) {
@@ -3712,17 +3723,17 @@ Symbol]")
3712
3723
  return s(a);
3713
3724
  }, "getProto") : null;
3714
3725
  }
3715
- }), Qo = A({
3726
+ }), Zo = A({
3716
3727
  "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e, t) {
3717
3728
  "use strict";
3718
3729
  var r = Function.prototype.call, o = Object.prototype.hasOwnProperty, s = Et();
3719
3730
  t.exports = s.call(r, o);
3720
3731
  }
3721
- }), za = A({
3732
+ }), Ha = A({
3722
3733
  "node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e, t) {
3723
3734
  "use strict";
3724
- var r, o = Ko(), s = Ia(), i = xa(), a = Ta(), c = Ra(), u = wa(), l = vr(), p = Oa(), d = Na(), f = Ca(), y = ja(), m = ka(), h = Da(),
3725
- g = Ma(), S = La(), P = Function, E = /* @__PURE__ */ n(function(B) {
3735
+ var r, o = zo(), s = xa(), i = Ta(), a = Ra(), c = wa(), u = Oa(), l = vr(), p = Ca(), d = Na(), f = ja(), y = ka(), m = Da(), h = Ma(),
3736
+ g = Ua(), S = Fa(), P = Function, E = /* @__PURE__ */ n(function(B) {
3726
3737
  try {
3727
3738
  return P('"use strict"; return (' + B + ").constructor;")();
3728
3739
  } catch {
@@ -3739,13 +3750,13 @@ Symbol]")
3739
3750
  return _;
3740
3751
  }
3741
3752
  }
3742
- }() : _, N = Ho()(), x = Ka(), he = Yo(), An = qo(), Lr = Jo(), ge = Ir(), re = {}, En = typeof Uint8Array > "u" || !x ? r : x(Uint8Array),
3753
+ }() : _, C = qo()(), x = za(), he = Jo(), En = Yo(), Lr = Xo(), ge = Ir(), re = {}, vn = typeof Uint8Array > "u" || !x ? r : x(Uint8Array),
3743
3754
  X = {
3744
3755
  __proto__: null,
3745
3756
  "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
3746
3757
  "%Array%": Array,
3747
3758
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer,
3748
- "%ArrayIteratorPrototype%": N && x ? x([][Symbol.iterator]()) : r,
3759
+ "%ArrayIteratorPrototype%": C && x ? x([][Symbol.iterator]()) : r,
3749
3760
  "%AsyncFromSyncIteratorPrototype%": r,
3750
3761
  "%AsyncFunction%": re,
3751
3762
  "%AsyncGenerator%": re,
@@ -3777,10 +3788,10 @@ Symbol]")
3777
3788
  "%Int32Array%": typeof Int32Array > "u" ? r : Int32Array,
3778
3789
  "%isFinite%": isFinite,
3779
3790
  "%isNaN%": isNaN,
3780
- "%IteratorPrototype%": N && x ? x(x([][Symbol.iterator]())) : r,
3791
+ "%IteratorPrototype%": C && x ? x(x([][Symbol.iterator]())) : r,
3781
3792
  "%JSON%": typeof JSON == "object" ? JSON : r,
3782
3793
  "%Map%": typeof Map > "u" ? r : Map,
3783
- "%MapIteratorPrototype%": typeof Map > "u" || !N || !x ? r : x((/* @__PURE__ */ new Map())[Symbol.iterator]()),
3794
+ "%MapIteratorPrototype%": typeof Map > "u" || !C || !x ? r : x((/* @__PURE__ */ new Map())[Symbol.iterator]()),
3784
3795
  "%Math%": Math,
3785
3796
  "%Number%": Number,
3786
3797
  "%Object%": o,
@@ -3794,14 +3805,14 @@ Symbol]")
3794
3805
  "%Reflect%": typeof Reflect > "u" ? r : Reflect,
3795
3806
  "%RegExp%": RegExp,
3796
3807
  "%Set%": typeof Set > "u" ? r : Set,
3797
- "%SetIteratorPrototype%": typeof Set > "u" || !N || !x ? r : x((/* @__PURE__ */ new Set())[Symbol.iterator]()),
3808
+ "%SetIteratorPrototype%": typeof Set > "u" || !C || !x ? r : x((/* @__PURE__ */ new Set())[Symbol.iterator]()),
3798
3809
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? r : SharedArrayBuffer,
3799
3810
  "%String%": String,
3800
- "%StringIteratorPrototype%": N && x ? x(""[Symbol.iterator]()) : r,
3801
- "%Symbol%": N ? Symbol : r,
3811
+ "%StringIteratorPrototype%": C && x ? x(""[Symbol.iterator]()) : r,
3812
+ "%Symbol%": C ? Symbol : r,
3802
3813
  "%SyntaxError%": u,
3803
3814
  "%ThrowTypeError%": w,
3804
- "%TypedArray%": En,
3815
+ "%TypedArray%": vn,
3805
3816
  "%TypeError%": l,
3806
3817
  "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
3807
3818
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
@@ -3822,7 +3833,7 @@ Symbol]")
3822
3833
  "%Math.pow%": h,
3823
3834
  "%Math.round%": g,
3824
3835
  "%Math.sign%": S,
3825
- "%Reflect.getPrototypeOf%": An
3836
+ "%Reflect.getPrototypeOf%": En
3826
3837
  };
3827
3838
  if (x)
3828
3839
  try {
@@ -3830,7 +3841,7 @@ Symbol]")
3830
3841
  } catch (B) {
3831
3842
  Fr = x(x(B)), X["%Error.prototype%"] = Fr;
3832
3843
  }
3833
- var Fr, vn = /* @__PURE__ */ n(function B(T) {
3844
+ var Fr, _n = /* @__PURE__ */ n(function B(T) {
3834
3845
  var O;
3835
3846
  if (T === "%AsyncFunction%")
3836
3847
  O = E("async function () {}");
@@ -3842,11 +3853,11 @@ Symbol]")
3842
3853
  var R = B("%AsyncGeneratorFunction%");
3843
3854
  R && (O = R.prototype);
3844
3855
  } else if (T === "%AsyncIteratorPrototype%") {
3845
- var C = B("%AsyncGenerator%");
3846
- C && x && (O = x(C.prototype));
3856
+ var N = B("%AsyncGenerator%");
3857
+ N && x && (O = x(N.prototype));
3847
3858
  }
3848
3859
  return X[T] = O, O;
3849
- }, "doEval2"), Gr = {
3860
+ }, "doEval2"), Wr = {
3850
3861
  __proto__: null,
3851
3862
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
3852
3863
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -3899,26 +3910,26 @@ Symbol]")
3899
3910
  "%URIErrorPrototype%": ["URIError", "prototype"],
3900
3911
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3901
3912
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3902
- }, Se = Et(), De = Qo(), _n = Se.call(ge, Array.prototype.concat), In = Se.call(Lr, Array.prototype.splice), Wr = Se.call(ge, String.prototype.
3903
- replace), Me = Se.call(ge, String.prototype.slice), xn = Se.call(ge, RegExp.prototype.exec), Tn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
3904
- Rn = /\\(\\)?/g, wn = /* @__PURE__ */ n(function(T) {
3913
+ }, Se = Et(), De = Zo(), In = Se.call(ge, Array.prototype.concat), xn = Se.call(Lr, Array.prototype.splice), Gr = Se.call(ge, String.prototype.
3914
+ replace), Me = Se.call(ge, String.prototype.slice), Tn = Se.call(ge, RegExp.prototype.exec), Rn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
3915
+ wn = /\\(\\)?/g, On = /* @__PURE__ */ n(function(T) {
3905
3916
  var O = Me(T, 0, 1), R = Me(T, -1);
3906
3917
  if (O === "%" && R !== "%")
3907
3918
  throw new u("invalid intrinsic syntax, expected closing `%`");
3908
3919
  if (R === "%" && O !== "%")
3909
3920
  throw new u("invalid intrinsic syntax, expected opening `%`");
3910
- var C = [];
3911
- return Wr(T, Tn, function(V, oe, D, Ue) {
3912
- C[C.length] = D ? Wr(Ue, Rn, "$1") : oe || V;
3913
- }), C;
3914
- }, "stringToPath3"), On = /* @__PURE__ */ n(function(T, O) {
3915
- var R = T, C;
3916
- if (De(Gr, R) && (C = Gr[R], R = "%" + C[0] + "%"), De(X, R)) {
3921
+ var N = [];
3922
+ return Gr(T, Rn, function(V, oe, D, Ue) {
3923
+ N[N.length] = D ? Gr(Ue, wn, "$1") : oe || V;
3924
+ }), N;
3925
+ }, "stringToPath3"), Cn = /* @__PURE__ */ n(function(T, O) {
3926
+ var R = T, N;
3927
+ if (De(Wr, R) && (N = Wr[R], R = "%" + N[0] + "%"), De(X, R)) {
3917
3928
  var V = X[R];
3918
- if (V === re && (V = vn(R)), typeof V > "u" && !O)
3929
+ if (V === re && (V = _n(R)), typeof V > "u" && !O)
3919
3930
  throw new l("intrinsic " + T + " exists, but is not available. Please file an issue!");
3920
3931
  return {
3921
- alias: C,
3932
+ alias: N,
3922
3933
  name: R,
3923
3934
  value: V
3924
3935
  };
@@ -3930,15 +3941,15 @@ Symbol]")
3930
3941
  throw new l("intrinsic name must be a non-empty string");
3931
3942
  if (arguments.length > 1 && typeof O != "boolean")
3932
3943
  throw new l('"allowMissing" argument must be a boolean');
3933
- if (xn(/^%?[^%]*%?$/, T) === null)
3944
+ if (Tn(/^%?[^%]*%?$/, T) === null)
3934
3945
  throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3935
- var R = wn(T), C = R.length > 0 ? R[0] : "", V = On("%" + C + "%", O), oe = V.name, D = V.value, Ue = !1, wt = V.alias;
3936
- wt && (C = wt[0], In(R, _n([0, 1], wt)));
3946
+ var R = On(T), N = R.length > 0 ? R[0] : "", V = Cn("%" + N + "%", O), oe = V.name, D = V.value, Ue = !1, wt = V.alias;
3947
+ wt && (N = wt[0], xn(R, In([0, 1], wt)));
3937
3948
  for (var Le = 1, be = !0; Le < R.length; Le += 1) {
3938
- var H = R[Le], Fe = Me(H, 0, 1), Ge = Me(H, -1);
3939
- if ((Fe === '"' || Fe === "'" || Fe === "`" || Ge === '"' || Ge === "'" || Ge === "`") && Fe !== Ge)
3949
+ var H = R[Le], Fe = Me(H, 0, 1), We = Me(H, -1);
3950
+ if ((Fe === '"' || Fe === "'" || Fe === "`" || We === '"' || We === "'" || We === "`") && Fe !== We)
3940
3951
  throw new u("property names with quotes must have matching quotes");
3941
- if ((H === "constructor" || !be) && (Ue = !0), C += "." + H, oe = "%" + C + "%", De(X, oe))
3952
+ if ((H === "constructor" || !be) && (Ue = !0), N += "." + H, oe = "%" + N + "%", De(X, oe))
3942
3953
  D = X[oe];
3943
3954
  else if (D != null) {
3944
3955
  if (!(H in D)) {
@@ -3947,8 +3958,8 @@ Symbol]")
3947
3958
  return;
3948
3959
  }
3949
3960
  if (v && Le + 1 >= R.length) {
3950
- var We = v(D, H);
3951
- be = !!We, be && "get" in We && !("originalValue" in We.get) ? D = We.get : D = D[H];
3961
+ var Ge = v(D, H);
3962
+ be = !!Ge, be && "get" in Ge && !("originalValue" in Ge.get) ? D = Ge.get : D = D[H];
3952
3963
  } else
3953
3964
  be = De(D, H), D = D[H];
3954
3965
  be && !Ue && (X[oe] = D);
@@ -3960,7 +3971,7 @@ Symbol]")
3960
3971
  }), xr = A({
3961
3972
  "node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e, t) {
3962
3973
  "use strict";
3963
- var r = za(), o = Xo(), s = o([r("%String.prototype.indexOf%")]);
3974
+ var r = Ha(), o = Qo(), s = o([r("%String.prototype.indexOf%")]);
3964
3975
  t.exports = /* @__PURE__ */ n(function(a, c) {
3965
3976
  var u = (
3966
3977
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
@@ -3972,18 +3983,18 @@ Symbol]")
3972
3983
  ) : u;
3973
3984
  }, "callBoundIntrinsic");
3974
3985
  }
3975
- }), Ha = A({
3986
+ }), qa = A({
3976
3987
  "node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e, t) {
3977
3988
  "use strict";
3978
- var r = zo();
3989
+ var r = Ho();
3979
3990
  t.exports = /* @__PURE__ */ n(function() {
3980
3991
  return r() && !!Symbol.toStringTag;
3981
3992
  }, "hasToStringTagShams");
3982
3993
  }
3983
- }), Zo = A({
3994
+ }), en = A({
3984
3995
  "node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e, t) {
3985
3996
  "use strict";
3986
- var r = xr(), o = Ha()(), s = Qo(), i = _r(), a;
3997
+ var r = xr(), o = qa()(), s = Zo(), i = _r(), a;
3987
3998
  o ? (c = r("RegExp.prototype.exec"), u = {}, l = /* @__PURE__ */ n(function() {
3988
3999
  throw u;
3989
4000
  }, "throwRegexMarker"), p = {
@@ -4018,7 +4029,7 @@ Symbol]")
4018
4029
  var c, u, l, p, d, f;
4019
4030
  t.exports = a;
4020
4031
  }
4021
- }), qa = A({
4032
+ }), Ya = A({
4022
4033
  "node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e, t) {
4023
4034
  t.exports = o;
4024
4035
  var r = Object.prototype.toString;
@@ -4031,10 +4042,10 @@ Symbol]")
4031
4042
  }
4032
4043
  n(o, "isFunction3");
4033
4044
  }
4034
- }), Ya = A({
4045
+ }), Ja = A({
4035
4046
  "node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e, t) {
4036
4047
  "use strict";
4037
- var r = xr(), o = Zo(), s = r("RegExp.prototype.exec"), i = vr();
4048
+ var r = xr(), o = en(), s = r("RegExp.prototype.exec"), i = vr();
4038
4049
  t.exports = /* @__PURE__ */ n(function(c) {
4039
4050
  if (!o(c))
4040
4051
  throw new i("`regex` must be a RegExp");
@@ -4043,10 +4054,10 @@ Symbol]")
4043
4054
  }, "test");
4044
4055
  }, "regexTester");
4045
4056
  }
4046
- }), Ja = A({
4057
+ }), Xa = A({
4047
4058
  "node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e, t) {
4048
4059
  "use strict";
4049
- var r = xr(), o = r("Object.prototype.toString"), s = Ho()(), i = Ya();
4060
+ var r = xr(), o = r("Object.prototype.toString"), s = qo()(), i = Ja();
4050
4061
  s ? (a = r("Symbol.prototype.toString"), c = i(/^Symbol\(.*\)$/), u = /* @__PURE__ */ n(function(p) {
4051
4062
  return typeof p.valueOf() != "symbol" ? !1 : c(a(p));
4052
4063
  }, "isRealSymbolObject"), t.exports = /* @__PURE__ */ n(function(p) {
@@ -4064,91 +4075,91 @@ Symbol]")
4064
4075
  }, "isSymbol3");
4065
4076
  var a, c, u;
4066
4077
  }
4067
- }), Xa = At(Zo()), Qa = At(qa()), Za = At(Ja());
4068
- function ei(e) {
4078
+ }), Qa = At(en()), Za = At(Ya()), ei = At(Xa());
4079
+ function ti(e) {
4069
4080
  return e != null && typeof e == "object" && Array.isArray(e) === !1;
4070
4081
  }
4071
- n(ei, "isObject");
4072
- var ti = typeof global == "object" && global && global.Object === Object && global, ri = ti, oi = typeof self == "object" && self && self.Object ===
4073
- Object && self, ni = ri || oi || Function("return this")(), Tr = ni, si = Tr.Symbol, le = si, en = Object.prototype, ai = en.hasOwnProperty,
4074
- ii = en.toString, Oe = le ? le.toStringTag : void 0;
4075
- function ci(e) {
4076
- var t = ai.call(e, Oe), r = e[Oe];
4082
+ n(ti, "isObject");
4083
+ var ri = typeof global == "object" && global && global.Object === Object && global, oi = ri, ni = typeof self == "object" && self && self.Object ===
4084
+ Object && self, si = oi || ni || Function("return this")(), Tr = si, ai = Tr.Symbol, le = ai, tn = Object.prototype, ii = tn.hasOwnProperty,
4085
+ ci = tn.toString, Oe = le ? le.toStringTag : void 0;
4086
+ function ui(e) {
4087
+ var t = ii.call(e, Oe), r = e[Oe];
4077
4088
  try {
4078
4089
  e[Oe] = void 0;
4079
4090
  var o = !0;
4080
4091
  } catch {
4081
4092
  }
4082
- var s = ii.call(e);
4093
+ var s = ci.call(e);
4083
4094
  return o && (t ? e[Oe] = r : delete e[Oe]), s;
4084
4095
  }
4085
- n(ci, "getRawTag");
4086
- var ui = ci, li = Object.prototype, pi = li.toString;
4087
- function di(e) {
4088
- return pi.call(e);
4089
- }
4090
- n(di, "objectToString");
4091
- var fi = di, yi = "[object Null]", mi = "[object Undefined]", Go = le ? le.toStringTag : void 0;
4092
- function hi(e) {
4093
- return e == null ? e === void 0 ? mi : yi : Go && Go in Object(e) ? ui(e) : fi(e);
4096
+ n(ui, "getRawTag");
4097
+ var li = ui, pi = Object.prototype, di = pi.toString;
4098
+ function fi(e) {
4099
+ return di.call(e);
4094
4100
  }
4095
- n(hi, "baseGetTag");
4096
- var tn = hi;
4101
+ n(fi, "objectToString");
4102
+ var yi = fi, mi = "[object Null]", hi = "[object Undefined]", Go = le ? le.toStringTag : void 0;
4097
4103
  function gi(e) {
4104
+ return e == null ? e === void 0 ? hi : mi : Go && Go in Object(e) ? li(e) : yi(e);
4105
+ }
4106
+ n(gi, "baseGetTag");
4107
+ var rn = gi;
4108
+ function Si(e) {
4098
4109
  return e != null && typeof e == "object";
4099
4110
  }
4100
- n(gi, "isObjectLike");
4101
- var Si = gi, bi = "[object Symbol]";
4102
- function Pi(e) {
4103
- return typeof e == "symbol" || Si(e) && tn(e) == bi;
4111
+ n(Si, "isObjectLike");
4112
+ var bi = Si, Pi = "[object Symbol]";
4113
+ function Ai(e) {
4114
+ return typeof e == "symbol" || bi(e) && rn(e) == Pi;
4104
4115
  }
4105
- n(Pi, "isSymbol");
4106
- var Rr = Pi;
4107
- function Ai(e, t) {
4116
+ n(Ai, "isSymbol");
4117
+ var Rr = Ai;
4118
+ function Ei(e, t) {
4108
4119
  for (var r = -1, o = e == null ? 0 : e.length, s = Array(o); ++r < o; )
4109
4120
  s[r] = t(e[r], r, e);
4110
4121
  return s;
4111
4122
  }
4112
- n(Ai, "arrayMap");
4113
- var Ei = Ai, vi = Array.isArray, wr = vi, _i = 1 / 0, Wo = le ? le.prototype : void 0, $o = Wo ? Wo.toString : void 0;
4114
- function rn(e) {
4123
+ n(Ei, "arrayMap");
4124
+ var vi = Ei, _i = Array.isArray, wr = _i, Ii = 1 / 0, $o = le ? le.prototype : void 0, Bo = $o ? $o.toString : void 0;
4125
+ function on(e) {
4115
4126
  if (typeof e == "string")
4116
4127
  return e;
4117
4128
  if (wr(e))
4118
- return Ei(e, rn) + "";
4129
+ return vi(e, on) + "";
4119
4130
  if (Rr(e))
4120
- return $o ? $o.call(e) : "";
4131
+ return Bo ? Bo.call(e) : "";
4121
4132
  var t = e + "";
4122
- return t == "0" && 1 / e == -_i ? "-0" : t;
4133
+ return t == "0" && 1 / e == -Ii ? "-0" : t;
4123
4134
  }
4124
- n(rn, "baseToString");
4125
- var Ii = rn;
4126
- function xi(e) {
4135
+ n(on, "baseToString");
4136
+ var xi = on;
4137
+ function Ti(e) {
4127
4138
  var t = typeof e;
4128
4139
  return e != null && (t == "object" || t == "function");
4129
4140
  }
4130
- n(xi, "isObject2");
4131
- var on = xi, Ti = "[object AsyncFunction]", Ri = "[object Function]", wi = "[object GeneratorFunction]", Oi = "[object Proxy]";
4141
+ n(Ti, "isObject2");
4142
+ var nn = Ti, Ri = "[object AsyncFunction]", wi = "[object Function]", Oi = "[object GeneratorFunction]", Ci = "[object Proxy]";
4132
4143
  function Ni(e) {
4133
- if (!on(e))
4144
+ if (!nn(e))
4134
4145
  return !1;
4135
- var t = tn(e);
4136
- return t == Ri || t == wi || t == Ti || t == Oi;
4146
+ var t = rn(e);
4147
+ return t == wi || t == Oi || t == Ri || t == Ci;
4137
4148
  }
4138
4149
  n(Ni, "isFunction");
4139
- var Ci = Ni, ji = Tr["__core-js_shared__"], Er = ji, Bo = function() {
4150
+ var ji = Ni, ki = Tr["__core-js_shared__"], Er = ki, Vo = function() {
4140
4151
  var e = /[^.]+$/.exec(Er && Er.keys && Er.keys.IE_PROTO || "");
4141
4152
  return e ? "Symbol(src)_1." + e : "";
4142
4153
  }();
4143
- function ki(e) {
4144
- return !!Bo && Bo in e;
4154
+ function Di(e) {
4155
+ return !!Vo && Vo in e;
4145
4156
  }
4146
- n(ki, "isMasked");
4147
- var Di = ki, Mi = Function.prototype, Ui = Mi.toString;
4148
- function Li(e) {
4157
+ n(Di, "isMasked");
4158
+ var Mi = Di, Ui = Function.prototype, Li = Ui.toString;
4159
+ function Fi(e) {
4149
4160
  if (e != null) {
4150
4161
  try {
4151
- return Ui.call(e);
4162
+ return Li.call(e);
4152
4163
  } catch {
4153
4164
  }
4154
4165
  try {
@@ -4158,77 +4169,77 @@ function Li(e) {
4158
4169
  }
4159
4170
  return "";
4160
4171
  }
4161
- n(Li, "toSource");
4162
- var Fi = Li, Gi = /[\\^$.*+?()[\]{}|]/g, Wi = /^\[object .+?Constructor\]$/, $i = Function.prototype, Bi = Object.prototype, Vi = $i.toString,
4163
- Ki = Bi.hasOwnProperty, zi = RegExp(
4164
- "^" + Vi.call(Ki).replace(Gi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
4172
+ n(Fi, "toSource");
4173
+ var Wi = Fi, Gi = /[\\^$.*+?()[\]{}|]/g, $i = /^\[object .+?Constructor\]$/, Bi = Function.prototype, Vi = Object.prototype, Ki = Bi.toString,
4174
+ zi = Vi.hasOwnProperty, Hi = RegExp(
4175
+ "^" + Ki.call(zi).replace(Gi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
4165
4176
  );
4166
- function Hi(e) {
4167
- if (!on(e) || Di(e))
4177
+ function qi(e) {
4178
+ if (!nn(e) || Mi(e))
4168
4179
  return !1;
4169
- var t = Ci(e) ? zi : Wi;
4170
- return t.test(Fi(e));
4180
+ var t = ji(e) ? Hi : $i;
4181
+ return t.test(Wi(e));
4171
4182
  }
4172
- n(Hi, "baseIsNative");
4173
- var qi = Hi;
4174
- function Yi(e, t) {
4183
+ n(qi, "baseIsNative");
4184
+ var Yi = qi;
4185
+ function Ji(e, t) {
4175
4186
  return e?.[t];
4176
4187
  }
4177
- n(Yi, "getValue");
4178
- var Ji = Yi;
4179
- function Xi(e, t) {
4180
- var r = Ji(e, t);
4181
- return qi(r) ? r : void 0;
4182
- }
4183
- n(Xi, "getNative");
4184
- var nn = Xi;
4188
+ n(Ji, "getValue");
4189
+ var Xi = Ji;
4185
4190
  function Qi(e, t) {
4191
+ var r = Xi(e, t);
4192
+ return Yi(r) ? r : void 0;
4193
+ }
4194
+ n(Qi, "getNative");
4195
+ var sn = Qi;
4196
+ function Zi(e, t) {
4186
4197
  return e === t || e !== e && t !== t;
4187
4198
  }
4188
- n(Qi, "eq");
4189
- var Zi = Qi, ec = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, tc = /^\w*$/;
4190
- function rc(e, t) {
4199
+ n(Zi, "eq");
4200
+ var ec = Zi, tc = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, rc = /^\w*$/;
4201
+ function oc(e, t) {
4191
4202
  if (wr(e))
4192
4203
  return !1;
4193
4204
  var r = typeof e;
4194
- return r == "number" || r == "symbol" || r == "boolean" || e == null || Rr(e) ? !0 : tc.test(e) || !ec.test(e) || t != null && e in Object(
4205
+ return r == "number" || r == "symbol" || r == "boolean" || e == null || Rr(e) ? !0 : rc.test(e) || !tc.test(e) || t != null && e in Object(
4195
4206
  t);
4196
4207
  }
4197
- n(rc, "isKey");
4198
- var oc = rc, nc = nn(Object, "create"), Ne = nc;
4199
- function sc() {
4200
- this.__data__ = Ne ? Ne(null) : {}, this.size = 0;
4208
+ n(oc, "isKey");
4209
+ var nc = oc, sc = sn(Object, "create"), Ce = sc;
4210
+ function ac() {
4211
+ this.__data__ = Ce ? Ce(null) : {}, this.size = 0;
4201
4212
  }
4202
- n(sc, "hashClear");
4203
- var ac = sc;
4204
- function ic(e) {
4213
+ n(ac, "hashClear");
4214
+ var ic = ac;
4215
+ function cc(e) {
4205
4216
  var t = this.has(e) && delete this.__data__[e];
4206
4217
  return this.size -= t ? 1 : 0, t;
4207
4218
  }
4208
- n(ic, "hashDelete");
4209
- var cc = ic, uc = "__lodash_hash_undefined__", lc = Object.prototype, pc = lc.hasOwnProperty;
4210
- function dc(e) {
4219
+ n(cc, "hashDelete");
4220
+ var uc = cc, lc = "__lodash_hash_undefined__", pc = Object.prototype, dc = pc.hasOwnProperty;
4221
+ function fc(e) {
4211
4222
  var t = this.__data__;
4212
- if (Ne) {
4223
+ if (Ce) {
4213
4224
  var r = t[e];
4214
- return r === uc ? void 0 : r;
4225
+ return r === lc ? void 0 : r;
4215
4226
  }
4216
- return pc.call(t, e) ? t[e] : void 0;
4227
+ return dc.call(t, e) ? t[e] : void 0;
4217
4228
  }
4218
- n(dc, "hashGet");
4219
- var fc = dc, yc = Object.prototype, mc = yc.hasOwnProperty;
4220
- function hc(e) {
4229
+ n(fc, "hashGet");
4230
+ var yc = fc, mc = Object.prototype, hc = mc.hasOwnProperty;
4231
+ function gc(e) {
4221
4232
  var t = this.__data__;
4222
- return Ne ? t[e] !== void 0 : mc.call(t, e);
4233
+ return Ce ? t[e] !== void 0 : hc.call(t, e);
4223
4234
  }
4224
- n(hc, "hashHas");
4225
- var gc = hc, Sc = "__lodash_hash_undefined__";
4226
- function bc(e, t) {
4235
+ n(gc, "hashHas");
4236
+ var Sc = gc, bc = "__lodash_hash_undefined__";
4237
+ function Pc(e, t) {
4227
4238
  var r = this.__data__;
4228
- return this.size += this.has(e) ? 0 : 1, r[e] = Ne && t === void 0 ? Sc : t, this;
4239
+ return this.size += this.has(e) ? 0 : 1, r[e] = Ce && t === void 0 ? bc : t, this;
4229
4240
  }
4230
- n(bc, "hashSet");
4231
- var Pc = bc;
4241
+ n(Pc, "hashSet");
4242
+ var Ac = Pc;
4232
4243
  function pe(e) {
4233
4244
  var t = -1, r = e == null ? 0 : e.length;
4234
4245
  for (this.clear(); ++t < r; ) {
@@ -4237,51 +4248,51 @@ function pe(e) {
4237
4248
  }
4238
4249
  }
4239
4250
  n(pe, "Hash");
4240
- pe.prototype.clear = ac;
4241
- pe.prototype.delete = cc;
4242
- pe.prototype.get = fc;
4243
- pe.prototype.has = gc;
4244
- pe.prototype.set = Pc;
4245
- var Vo = pe;
4246
- function Ac() {
4251
+ pe.prototype.clear = ic;
4252
+ pe.prototype.delete = uc;
4253
+ pe.prototype.get = yc;
4254
+ pe.prototype.has = Sc;
4255
+ pe.prototype.set = Ac;
4256
+ var Ko = pe;
4257
+ function Ec() {
4247
4258
  this.__data__ = [], this.size = 0;
4248
4259
  }
4249
- n(Ac, "listCacheClear");
4250
- var Ec = Ac;
4251
- function vc(e, t) {
4260
+ n(Ec, "listCacheClear");
4261
+ var vc = Ec;
4262
+ function _c(e, t) {
4252
4263
  for (var r = e.length; r--; )
4253
- if (Zi(e[r][0], t))
4264
+ if (ec(e[r][0], t))
4254
4265
  return r;
4255
4266
  return -1;
4256
4267
  }
4257
- n(vc, "assocIndexOf");
4258
- var vt = vc, _c = Array.prototype, Ic = _c.splice;
4259
- function xc(e) {
4268
+ n(_c, "assocIndexOf");
4269
+ var vt = _c, Ic = Array.prototype, xc = Ic.splice;
4270
+ function Tc(e) {
4260
4271
  var t = this.__data__, r = vt(t, e);
4261
4272
  if (r < 0)
4262
4273
  return !1;
4263
4274
  var o = t.length - 1;
4264
- return r == o ? t.pop() : Ic.call(t, r, 1), --this.size, !0;
4275
+ return r == o ? t.pop() : xc.call(t, r, 1), --this.size, !0;
4265
4276
  }
4266
- n(xc, "listCacheDelete");
4267
- var Tc = xc;
4268
- function Rc(e) {
4277
+ n(Tc, "listCacheDelete");
4278
+ var Rc = Tc;
4279
+ function wc(e) {
4269
4280
  var t = this.__data__, r = vt(t, e);
4270
4281
  return r < 0 ? void 0 : t[r][1];
4271
4282
  }
4272
- n(Rc, "listCacheGet");
4273
- var wc = Rc;
4274
- function Oc(e) {
4283
+ n(wc, "listCacheGet");
4284
+ var Oc = wc;
4285
+ function Cc(e) {
4275
4286
  return vt(this.__data__, e) > -1;
4276
4287
  }
4277
- n(Oc, "listCacheHas");
4278
- var Nc = Oc;
4279
- function Cc(e, t) {
4288
+ n(Cc, "listCacheHas");
4289
+ var Nc = Cc;
4290
+ function jc(e, t) {
4280
4291
  var r = this.__data__, o = vt(r, e);
4281
4292
  return o < 0 ? (++this.size, r.push([e, t])) : r[o][1] = t, this;
4282
4293
  }
4283
- n(Cc, "listCacheSet");
4284
- var jc = Cc;
4294
+ n(jc, "listCacheSet");
4295
+ var kc = jc;
4285
4296
  function de(e) {
4286
4297
  var t = -1, r = e == null ? 0 : e.length;
4287
4298
  for (this.clear(); ++t < r; ) {
@@ -4290,55 +4301,55 @@ function de(e) {
4290
4301
  }
4291
4302
  }
4292
4303
  n(de, "ListCache");
4293
- de.prototype.clear = Ec;
4294
- de.prototype.delete = Tc;
4295
- de.prototype.get = wc;
4304
+ de.prototype.clear = vc;
4305
+ de.prototype.delete = Rc;
4306
+ de.prototype.get = Oc;
4296
4307
  de.prototype.has = Nc;
4297
- de.prototype.set = jc;
4298
- var kc = de, Dc = nn(Tr, "Map"), Mc = Dc;
4299
- function Uc() {
4308
+ de.prototype.set = kc;
4309
+ var Dc = de, Mc = sn(Tr, "Map"), Uc = Mc;
4310
+ function Lc() {
4300
4311
  this.size = 0, this.__data__ = {
4301
- hash: new Vo(),
4302
- map: new (Mc || kc)(),
4303
- string: new Vo()
4312
+ hash: new Ko(),
4313
+ map: new (Uc || Dc)(),
4314
+ string: new Ko()
4304
4315
  };
4305
4316
  }
4306
- n(Uc, "mapCacheClear");
4307
- var Lc = Uc;
4308
- function Fc(e) {
4317
+ n(Lc, "mapCacheClear");
4318
+ var Fc = Lc;
4319
+ function Wc(e) {
4309
4320
  var t = typeof e;
4310
4321
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
4311
4322
  }
4312
- n(Fc, "isKeyable");
4313
- var Gc = Fc;
4314
- function Wc(e, t) {
4323
+ n(Wc, "isKeyable");
4324
+ var Gc = Wc;
4325
+ function $c(e, t) {
4315
4326
  var r = e.__data__;
4316
4327
  return Gc(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
4317
4328
  }
4318
- n(Wc, "getMapData");
4319
- var _t = Wc;
4320
- function $c(e) {
4329
+ n($c, "getMapData");
4330
+ var _t = $c;
4331
+ function Bc(e) {
4321
4332
  var t = _t(this, e).delete(e);
4322
4333
  return this.size -= t ? 1 : 0, t;
4323
4334
  }
4324
- n($c, "mapCacheDelete");
4325
- var Bc = $c;
4326
- function Vc(e) {
4335
+ n(Bc, "mapCacheDelete");
4336
+ var Vc = Bc;
4337
+ function Kc(e) {
4327
4338
  return _t(this, e).get(e);
4328
4339
  }
4329
- n(Vc, "mapCacheGet");
4330
- var Kc = Vc;
4331
- function zc(e) {
4340
+ n(Kc, "mapCacheGet");
4341
+ var zc = Kc;
4342
+ function Hc(e) {
4332
4343
  return _t(this, e).has(e);
4333
4344
  }
4334
- n(zc, "mapCacheHas");
4335
- var Hc = zc;
4336
- function qc(e, t) {
4345
+ n(Hc, "mapCacheHas");
4346
+ var qc = Hc;
4347
+ function Yc(e, t) {
4337
4348
  var r = _t(this, e), o = r.size;
4338
4349
  return r.set(e, t), this.size += r.size == o ? 0 : 1, this;
4339
4350
  }
4340
- n(qc, "mapCacheSet");
4341
- var Yc = qc;
4351
+ n(Yc, "mapCacheSet");
4352
+ var Jc = Yc;
4342
4353
  function fe(e) {
4343
4354
  var t = -1, r = e == null ? 0 : e.length;
4344
4355
  for (this.clear(); ++t < r; ) {
@@ -4347,15 +4358,15 @@ function fe(e) {
4347
4358
  }
4348
4359
  }
4349
4360
  n(fe, "MapCache");
4350
- fe.prototype.clear = Lc;
4351
- fe.prototype.delete = Bc;
4352
- fe.prototype.get = Kc;
4353
- fe.prototype.has = Hc;
4354
- fe.prototype.set = Yc;
4355
- var sn = fe, Jc = "Expected a function";
4361
+ fe.prototype.clear = Fc;
4362
+ fe.prototype.delete = Vc;
4363
+ fe.prototype.get = zc;
4364
+ fe.prototype.has = qc;
4365
+ fe.prototype.set = Jc;
4366
+ var an = fe, Xc = "Expected a function";
4356
4367
  function Or(e, t) {
4357
4368
  if (typeof e != "function" || t != null && typeof t != "function")
4358
- throw new TypeError(Jc);
4369
+ throw new TypeError(Xc);
4359
4370
  var r = /* @__PURE__ */ n(function() {
4360
4371
  var o = arguments, s = t ? t.apply(this, o) : o[0], i = r.cache;
4361
4372
  if (i.has(s))
@@ -4363,63 +4374,63 @@ function Or(e, t) {
4363
4374
  var a = e.apply(this, o);
4364
4375
  return r.cache = i.set(s, a) || i, a;
4365
4376
  }, "memoized");
4366
- return r.cache = new (Or.Cache || sn)(), r;
4377
+ return r.cache = new (Or.Cache || an)(), r;
4367
4378
  }
4368
4379
  n(Or, "memoize");
4369
- Or.Cache = sn;
4370
- var Xc = Or, Qc = 500;
4371
- function Zc(e) {
4372
- var t = Xc(e, function(o) {
4373
- return r.size === Qc && r.clear(), o;
4380
+ Or.Cache = an;
4381
+ var Qc = Or, Zc = 500;
4382
+ function eu(e) {
4383
+ var t = Qc(e, function(o) {
4384
+ return r.size === Zc && r.clear(), o;
4374
4385
  }), r = t.cache;
4375
4386
  return t;
4376
4387
  }
4377
- n(Zc, "memoizeCapped");
4378
- var eu = Zc, tu = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ru = /\\(\\)?/g, ou = eu(
4388
+ n(eu, "memoizeCapped");
4389
+ var tu = eu, ru = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ou = /\\(\\)?/g, nu = tu(
4379
4390
  function(e) {
4380
4391
  var t = [];
4381
- return e.charCodeAt(0) === 46 && t.push(""), e.replace(tu, function(r, o, s, i) {
4382
- t.push(s ? i.replace(ru, "$1") : o || r);
4392
+ return e.charCodeAt(0) === 46 && t.push(""), e.replace(ru, function(r, o, s, i) {
4393
+ t.push(s ? i.replace(ou, "$1") : o || r);
4383
4394
  }), t;
4384
- }), nu = ou;
4385
- function su(e) {
4386
- return e == null ? "" : Ii(e);
4395
+ }), su = nu;
4396
+ function au(e) {
4397
+ return e == null ? "" : xi(e);
4387
4398
  }
4388
- n(su, "toString");
4389
- var au = su;
4390
- function iu(e, t) {
4391
- return wr(e) ? e : oc(e, t) ? [e] : nu(au(e));
4399
+ n(au, "toString");
4400
+ var iu = au;
4401
+ function cu(e, t) {
4402
+ return wr(e) ? e : nc(e, t) ? [e] : su(iu(e));
4392
4403
  }
4393
- n(iu, "castPath");
4394
- var cu = iu, uu = 1 / 0;
4395
- function lu(e) {
4404
+ n(cu, "castPath");
4405
+ var uu = cu, lu = 1 / 0;
4406
+ function pu(e) {
4396
4407
  if (typeof e == "string" || Rr(e))
4397
4408
  return e;
4398
4409
  var t = e + "";
4399
- return t == "0" && 1 / e == -uu ? "-0" : t;
4410
+ return t == "0" && 1 / e == -lu ? "-0" : t;
4400
4411
  }
4401
- n(lu, "toKey");
4402
- var pu = lu;
4403
- function du(e, t) {
4404
- t = cu(t, e);
4412
+ n(pu, "toKey");
4413
+ var du = pu;
4414
+ function fu(e, t) {
4415
+ t = uu(t, e);
4405
4416
  for (var r = 0, o = t.length; e != null && r < o; )
4406
- e = e[pu(t[r++])];
4417
+ e = e[du(t[r++])];
4407
4418
  return r && r == o ? e : void 0;
4408
4419
  }
4409
- n(du, "baseGet");
4410
- var fu = du;
4411
- function yu(e, t, r) {
4412
- var o = e == null ? void 0 : fu(e, t);
4420
+ n(fu, "baseGet");
4421
+ var yu = fu;
4422
+ function mu(e, t, r) {
4423
+ var o = e == null ? void 0 : yu(e, t);
4413
4424
  return o === void 0 ? r : o;
4414
4425
  }
4415
- n(yu, "get");
4416
- var mu = yu, Nr = ei, hu = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, gu = /* @__PURE__ */ n((e) => e.match(/^[\[\{\"\}].*[\]\}\"]$/),
4426
+ n(mu, "get");
4427
+ var hu = mu, Cr = ti, gu = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, Su = /* @__PURE__ */ n((e) => e.match(/^[\[\{\"\}].*[\]\}\"]$/),
4417
4428
  "isJSON");
4418
- function an(e) {
4419
- if (!Nr(e))
4429
+ function cn(e) {
4430
+ if (!Cr(e))
4420
4431
  return e;
4421
4432
  let t = e, r = !1;
4422
- return typeof Event < "u" && e instanceof Event && (t = Fo(t), r = !0), t = Object.keys(t).reduce((o, s) => {
4433
+ return typeof Event < "u" && e instanceof Event && (t = Wo(t), r = !0), t = Object.keys(t).reduce((o, s) => {
4423
4434
  try {
4424
4435
  t[s] && t[s].toJSON, o[s] = t[s];
4425
4436
  } catch {
@@ -4428,8 +4439,8 @@ function an(e) {
4428
4439
  return o;
4429
4440
  }, {}), r ? t : e;
4430
4441
  }
4431
- n(an, "convertUnconventionalData");
4432
- var Su = /* @__PURE__ */ n(function(t) {
4442
+ n(cn, "convertUnconventionalData");
4443
+ var bu = /* @__PURE__ */ n(function(t) {
4433
4444
  let r, o, s, i;
4434
4445
  return /* @__PURE__ */ n(function(c, u) {
4435
4446
  try {
@@ -4449,12 +4460,12 @@ var Su = /* @__PURE__ */ n(function(t) {
4449
4460
  if (typeof u == "bigint")
4450
4461
  return `_bigint_${u.toString()}`;
4451
4462
  if (typeof u == "string")
4452
- return hu.test(u) ? t.allowDate ? `_date_${u}` : void 0 : u;
4453
- if ((0, Xa.default)(u))
4454
- return t.allowRegExp ? `_regexp_${u.flags}|${u.source}` : void 0;
4463
+ return gu.test(u) ? t.allowDate ? `_date_${u}` : void 0 : u;
4455
4464
  if ((0, Qa.default)(u))
4465
+ return t.allowRegExp ? `_regexp_${u.flags}|${u.source}` : void 0;
4466
+ if ((0, Za.default)(u))
4456
4467
  return;
4457
- if ((0, Za.default)(u)) {
4468
+ if ((0, ei.default)(u)) {
4458
4469
  if (!t.allowSymbol)
4459
4470
  return;
4460
4471
  let d = Symbol.keyFor(u);
@@ -4500,7 +4511,7 @@ var Su = /* @__PURE__ */ n(function(t) {
4500
4511
  }
4501
4512
  let p = r.get(u);
4502
4513
  if (!p) {
4503
- let d = Array.isArray(u) ? u : an(u);
4514
+ let d = Array.isArray(u) ? u : cn(u);
4504
4515
  return i.push(c), s.unshift(d), r.set(u, JSON.stringify(i)), u !== d && o.set(u, d), d;
4505
4516
  }
4506
4517
  return `_duplicate_${p}`;
@@ -4508,15 +4519,15 @@ var Su = /* @__PURE__ */ n(function(t) {
4508
4519
  return;
4509
4520
  }
4510
4521
  }, "replace");
4511
- }, "replacer2"), bu = /* @__PURE__ */ n(function(t) {
4522
+ }, "replacer2"), Pu = /* @__PURE__ */ n(function(t) {
4512
4523
  let r = [], o;
4513
4524
  return /* @__PURE__ */ n(function(i, a) {
4514
4525
  if (i === "" && (o = a, r.forEach(({ target: c, container: u, replacement: l }) => {
4515
- let p = gu(l) ? JSON.parse(l) : l.split(".");
4516
- p.length === 0 ? u[c] = o : u[c] = mu(o, p);
4526
+ let p = Su(l) ? JSON.parse(l) : l.split(".");
4527
+ p.length === 0 ? u[c] = o : u[c] = hu(o, p);
4517
4528
  })), i === "_constructor-name_")
4518
4529
  return a;
4519
- if (Nr(a) && a.__isConvertedError__) {
4530
+ if (Cr(a) && a.__isConvertedError__) {
4520
4531
  let { message: c, ...u } = a.errorProperties, l = new Error(c);
4521
4532
  return Object.assign(l, u), l;
4522
4533
  }
@@ -4531,7 +4542,7 @@ var Su = /* @__PURE__ */ n(function(t) {
4531
4542
  a === "_Infinity_" ? Number.POSITIVE_INFINITY : typeof a == "string" && a === "_NaN_" ? Number.NaN : typeof a == "string" && a.startsWith(
4532
4543
  "_bigint_") && typeof BigInt == "function" ? BigInt(a.replace("_bigint_", "")) : a;
4533
4544
  }, "revive");
4534
- }, "reviver2"), cn = {
4545
+ }, "reviver2"), un = {
4535
4546
  maxDepth: 10,
4536
4547
  space: void 0,
4537
4548
  allowRegExp: !0,
@@ -4539,55 +4550,55 @@ var Su = /* @__PURE__ */ n(function(t) {
4539
4550
  allowError: !0,
4540
4551
  allowUndefined: !0,
4541
4552
  allowSymbol: !0
4542
- }, un = /* @__PURE__ */ n((e, t = {}) => {
4543
- let r = { ...cn, ...t };
4544
- return JSON.stringify(an(e), Su(r), t.space);
4545
- }, "stringify"), Pu = /* @__PURE__ */ n(() => {
4553
+ }, ln = /* @__PURE__ */ n((e, t = {}) => {
4554
+ let r = { ...un, ...t };
4555
+ return JSON.stringify(cn(e), bu(r), t.space);
4556
+ }, "stringify"), Au = /* @__PURE__ */ n(() => {
4546
4557
  let e = /* @__PURE__ */ new Map();
4547
4558
  return /* @__PURE__ */ n(function t(r) {
4548
- Nr(r) && Object.entries(r).forEach(([o, s]) => {
4559
+ Cr(r) && Object.entries(r).forEach(([o, s]) => {
4549
4560
  s === "_undefined_" ? r[o] = void 0 : e.get(s) || (e.set(s, !0), t(s));
4550
4561
  }), Array.isArray(r) && r.forEach((o, s) => {
4551
4562
  o === "_undefined_" ? (e.set(o, !0), r[s] = void 0) : e.get(o) || (e.set(o, !0), t(o));
4552
4563
  });
4553
4564
  }, "mutateUndefined");
4554
- }, "mutator"), ln = /* @__PURE__ */ n((e, t = {}) => {
4555
- let r = { ...cn, ...t }, o = JSON.parse(e, bu(r));
4556
- return Pu()(o), o;
4565
+ }, "mutator"), pn = /* @__PURE__ */ n((e, t = {}) => {
4566
+ let r = { ...un, ...t }, o = JSON.parse(e, Pu(r));
4567
+ return Au()(o), o;
4557
4568
  }, "parse");
4558
4569
 
4559
4570
  // src/manager-api/lib/store-setup.ts
4560
- var pn = /* @__PURE__ */ n((e) => {
4571
+ var dn = /* @__PURE__ */ n((e) => {
4561
4572
  e.fn("set", function(t, r) {
4562
4573
  return e.set(
4563
4574
  // @ts-expect-error('this' implicitly has type 'any')
4564
4575
  this._area,
4565
4576
  // @ts-expect-error('this' implicitly has type 'any')
4566
4577
  this._in(t),
4567
- un(r, { maxDepth: 50 })
4578
+ ln(r, { maxDepth: 50 })
4568
4579
  );
4569
4580
  }), e.fn("get", function(t, r) {
4570
4581
  let o = e.get(this._area, this._in(t));
4571
- return o !== null ? ln(o) : r || o;
4582
+ return o !== null ? pn(o) : r || o;
4572
4583
  });
4573
4584
  }, "default");
4574
4585
 
4575
4586
  // src/manager-api/store.ts
4576
- pn(ye.default._);
4577
- var dn = "@storybook/manager/store";
4578
- function Cr(e) {
4579
- return e.get(dn) || {};
4587
+ dn(ye.default._);
4588
+ var fn = "@storybook/manager/store";
4589
+ function Nr(e) {
4590
+ return e.get(fn) || {};
4580
4591
  }
4581
- n(Cr, "get");
4582
- function Au(e, t) {
4583
- return e.set(dn, t);
4584
- }
4585
- n(Au, "set");
4592
+ n(Nr, "get");
4586
4593
  function Eu(e, t) {
4587
- let r = Cr(e);
4588
- return Au(e, { ...r, ...t });
4594
+ return e.set(fn, t);
4595
+ }
4596
+ n(Eu, "set");
4597
+ function vu(e, t) {
4598
+ let r = Nr(e);
4599
+ return Eu(e, { ...r, ...t });
4589
4600
  }
4590
- n(Eu, "update");
4601
+ n(vu, "update");
4591
4602
  var jr = class jr {
4592
4603
  constructor({ setState: t, getState: r }) {
4593
4604
  this.upstreamSetState = t, this.upstreamGetState = r;
@@ -4595,7 +4606,7 @@ var jr = class jr {
4595
4606
  // The assumption is that this will be called once, to initialize the React state
4596
4607
  // when the module is instantiated
4597
4608
  getInitialState(t) {
4598
- return { ...t, ...Cr(ye.default.local), ...Cr(ye.default.session) };
4609
+ return { ...t, ...Nr(ye.default.local), ...Nr(ye.default.session) };
4599
4610
  }
4600
4611
  getState() {
4601
4612
  return this.upstreamGetState();
@@ -4612,13 +4623,13 @@ var jr = class jr {
4612
4623
  });
4613
4624
  if (a !== "none") {
4614
4625
  let p = a === "session" ? ye.default.session : ye.default.local;
4615
- await Eu(p, u);
4626
+ await vu(p, u);
4616
4627
  }
4617
4628
  return s && s(l), l;
4618
4629
  }
4619
4630
  };
4620
4631
  n(jr, "Store");
4621
- var Ce = jr;
4632
+ var Ne = jr;
4622
4633
 
4623
4634
  // src/manager-api/lib/request-response.ts
4624
4635
  var kr = class kr extends Error {
@@ -4629,7 +4640,7 @@ var kr = class kr extends Error {
4629
4640
  }
4630
4641
  };
4631
4642
  n(kr, "RequestResponseError");
4632
- var It = kr, jf = /* @__PURE__ */ n((e, t, r, o, s = 5e3) => {
4643
+ var It = kr, kf = /* @__PURE__ */ n((e, t, r, o, s = 5e3) => {
4633
4644
  let i;
4634
4645
  return new Promise((a, c) => {
4635
4646
  let u = {
@@ -4645,8 +4656,8 @@ var It = kr, jf = /* @__PURE__ */ n((e, t, r, o, s = 5e3) => {
4645
4656
  }, "experimental_requestResponse");
4646
4657
 
4647
4658
  // src/manager-api/root.tsx
4648
- var { ActiveTabs: Vf } = dt;
4649
- var Tt = Zr({ api: void 0, state: lt({}) }), mo = /* @__PURE__ */ n((...e) => to({}, ...e), "combineParameters"), xt = class xt extends vu {
4659
+ var { ActiveTabs: Kf } = dt;
4660
+ var Tt = Zr({ api: void 0, state: lt({}) }), mo = /* @__PURE__ */ n((...e) => to({}, ...e), "combineParameters"), xt = class xt extends _u {
4650
4661
  constructor(r) {
4651
4662
  super(r);
4652
4663
  this.api = {};
@@ -4664,7 +4675,7 @@ var Tt = Zr({ api: void 0, state: lt({}) }), mo = /* @__PURE__ */ n((...e) => to
4664
4675
  storyId: u,
4665
4676
  docsOptions: l,
4666
4677
  navigate: p
4667
- } = r, d = new Ce({
4678
+ } = r, d = new Ne({
4668
4679
  getState: /* @__PURE__ */ n(() => this.state, "getState"),
4669
4680
  setState: /* @__PURE__ */ n((S, P) => (this.setState(S, () => P(this.state)), this.state), "setState")
4670
4681
  }), f = { location: o, path: s, viewMode: a, singleStory: c, storyId: u, refId: i }, y = { docsOptions: l };
@@ -4676,8 +4687,8 @@ var Tt = Zr({ api: void 0, state: lt({}) }), mo = /* @__PURE__ */ n((...e) => to
4676
4687
  };
4677
4688
  this.modules = [
4678
4689
  Qt,
4679
- Wt,
4680
4690
  Gt,
4691
+ Wt,
4681
4692
  dt,
4682
4693
  Xt,
4683
4694
  Zt,
@@ -4713,74 +4724,74 @@ var Tt = Zr({ api: void 0, state: lt({}) }), mo = /* @__PURE__ */ n((...e) => to
4713
4724
  state: this.state,
4714
4725
  api: this.api
4715
4726
  };
4716
- return /* @__PURE__ */ me.createElement(Ou, { effect: this.initModules }, /* @__PURE__ */ me.createElement(Tt.Provider, { value: o }, /* @__PURE__ */ me.
4717
- createElement(Cu, null, r)));
4727
+ return /* @__PURE__ */ me.createElement(Cu, { effect: this.initModules }, /* @__PURE__ */ me.createElement(Tt.Provider, { value: o }, /* @__PURE__ */ me.
4728
+ createElement(ju, null, r)));
4718
4729
  }
4719
4730
  };
4720
4731
  n(xt, "ManagerProvider"), xt.displayName = "Manager";
4721
- var mn = xt, Ou = /* @__PURE__ */ n(({ children: e, effect: t }) => (me.useEffect(t, []), e), "EffectOnMount"), Nu = /* @__PURE__ */ n((e) => e,
4732
+ var hn = xt, Cu = /* @__PURE__ */ n(({ children: e, effect: t }) => (me.useEffect(t, []), e), "EffectOnMount"), Nu = /* @__PURE__ */ n((e) => e,
4722
4733
  "defaultFilter");
4723
- function Cu({
4734
+ function ju({
4724
4735
  // @ts-expect-error (Converted from ts-ignore)
4725
4736
  filter: e = Nu,
4726
4737
  children: t
4727
4738
  }) {
4728
- let r = Mr(Tt), o = fn(t), s = fn(e);
4739
+ let r = Mr(Tt), o = yn(t), s = yn(e);
4729
4740
  if (typeof o.current != "function")
4730
- return /* @__PURE__ */ me.createElement(_u, null, o.current);
4741
+ return /* @__PURE__ */ me.createElement(Iu, null, o.current);
4731
4742
  let i = s.current(r), a = Dr(() => [...Object.entries(i).reduce((c, u) => c.concat(u), [])], [r.state]);
4732
4743
  return Dr(() => {
4733
4744
  let c = o.current;
4734
4745
  return /* @__PURE__ */ me.createElement(c, { ...i });
4735
4746
  }, a);
4736
4747
  }
4737
- n(Cu, "ManagerConsumer");
4738
- function Kf() {
4748
+ n(ju, "ManagerConsumer");
4749
+ function zf() {
4739
4750
  let { state: e } = Mr(Tt);
4740
4751
  return e;
4741
4752
  }
4742
- n(Kf, "useStorybookState");
4753
+ n(zf, "useStorybookState");
4743
4754
  function J() {
4744
4755
  let { api: e } = Mr(Tt);
4745
4756
  return e;
4746
4757
  }
4747
4758
  n(J, "useStorybookApi");
4748
- function gn(e, t) {
4759
+ function Sn(e, t) {
4749
4760
  return typeof e > "u" ? t : e;
4750
4761
  }
4751
- n(gn, "orDefault");
4752
- var Sn = /* @__PURE__ */ n((e, t = []) => {
4762
+ n(Sn, "orDefault");
4763
+ var bn = /* @__PURE__ */ n((e, t = []) => {
4753
4764
  let r = J();
4754
- return hn(() => (Object.entries(e).forEach(([o, s]) => r.on(o, s)), () => {
4765
+ return gn(() => (Object.entries(e).forEach(([o, s]) => r.on(o, s)), () => {
4755
4766
  Object.entries(e).forEach(([o, s]) => r.off(o, s));
4756
4767
  }), t), r.emit;
4757
4768
  }, "useChannel");
4758
- function zf(e) {
4769
+ function Hf(e) {
4759
4770
  return J().isPrepared(e);
4760
4771
  }
4761
- n(zf, "useStoryPrepared");
4762
- function Hf(e, t) {
4763
- let r = J(), [o, s] = Iu(r.getCurrentParameter(e)), i = ke(() => {
4772
+ n(Hf, "useStoryPrepared");
4773
+ function qf(e, t) {
4774
+ let r = J(), [o, s] = xu(r.getCurrentParameter(e)), i = ke(() => {
4764
4775
  let a = r.getCurrentParameter(e);
4765
4776
  s(a);
4766
4777
  }, [r, e]);
4767
- return Sn(
4778
+ return bn(
4768
4779
  {
4769
- [wu]: i,
4770
- [xu]: i
4780
+ [Ou]: i,
4781
+ [Tu]: i
4771
4782
  },
4772
4783
  [i]
4773
- ), gn(o, t);
4784
+ ), Sn(o, t);
4774
4785
  }
4775
- n(Hf, "useParameter");
4786
+ n(qf, "useParameter");
4776
4787
  globalThis.STORYBOOK_ADDON_STATE = {};
4777
4788
  var { STORYBOOK_ADDON_STATE: z } = globalThis;
4778
- function ju(e, t) {
4779
- let r = J(), o = r.getAddonState(e) || z[e], s = gn(
4789
+ function ku(e, t) {
4790
+ let r = J(), o = r.getAddonState(e) || z[e], s = Sn(
4780
4791
  o,
4781
4792
  z[e] ? z[e] : t
4782
4793
  ), i = !1;
4783
- s === t && t !== void 0 && (z[e] = t, i = !0), hn(() => {
4794
+ s === t && t !== void 0 && (z[e] = t, i = !0), gn(() => {
4784
4795
  i && r.setAddonState(e, t);
4785
4796
  }, [i]);
4786
4797
  let a = ke(
@@ -4792,15 +4803,15 @@ function ju(e, t) {
4792
4803
  [r, e]
4793
4804
  ), c = Dr(() => {
4794
4805
  let p = {
4795
- [`${yn}-client-${e}`]: a,
4806
+ [`${mn}-client-${e}`]: a,
4796
4807
  [`${je}-client-${e}`]: a
4797
4808
  }, d = {
4798
- [Tu]: async () => {
4809
+ [Ru]: async () => {
4799
4810
  let f = r.getAddonState(e);
4800
4811
  f ? (z[e] = f, r.emit(`${je}-manager-${e}`, f)) : z[e] ? (await a(z[e]), r.emit(`${je}-manager-${e}`, z[e])) : t !== void 0 && (await a(
4801
4812
  t), z[e] = t, r.emit(`${je}-manager-${e}`, t));
4802
4813
  },
4803
- [Ru]: () => {
4814
+ [wu]: () => {
4804
4815
  let f = r.getAddonState(e);
4805
4816
  f !== void 0 && r.emit(`${je}-manager-${e}`, f);
4806
4817
  }
@@ -4809,22 +4820,22 @@ function ju(e, t) {
4809
4820
  ...p,
4810
4821
  ...d
4811
4822
  };
4812
- }, [e]), u = Sn(c), l = ke(
4823
+ }, [e]), u = bn(c), l = ke(
4813
4824
  async (p, d) => {
4814
4825
  await a(p, d);
4815
4826
  let f = r.getAddonState(e);
4816
- u(`${yn}-manager-${e}`, f);
4827
+ u(`${mn}-manager-${e}`, f);
4817
4828
  },
4818
4829
  [r, u, a, e]
4819
4830
  );
4820
4831
  return [s, l];
4821
4832
  }
4822
- n(ju, "useSharedState");
4823
- function qf(e, t) {
4824
- return ju(e, t);
4833
+ n(ku, "useSharedState");
4834
+ function Yf(e, t) {
4835
+ return ku(e, t);
4825
4836
  }
4826
- n(qf, "useAddonState");
4827
- function Yf() {
4837
+ n(Yf, "useAddonState");
4838
+ function Jf() {
4828
4839
  let { getCurrentStoryData: e, updateStoryArgs: t, resetStoryArgs: r } = J(), o = e(), s = o?.type === "story" ? o.args : {}, i = o?.type ===
4829
4840
  "story" ? o.initialArgs : {}, a = ke(
4830
4841
  (u) => t(o, u),
@@ -4835,36 +4846,36 @@ function Yf() {
4835
4846
  );
4836
4847
  return [s, a, c, i];
4837
4848
  }
4838
- n(Yf, "useArgs");
4839
- function Jf() {
4849
+ n(Jf, "useArgs");
4850
+ function Xf() {
4840
4851
  let e = J();
4841
4852
  return [e.getGlobals(), e.updateGlobals, e.getStoryGlobals(), e.getUserGlobals()];
4842
4853
  }
4843
- n(Jf, "useGlobals");
4844
- function Xf() {
4854
+ n(Xf, "useGlobals");
4855
+ function Qf() {
4845
4856
  return J().getGlobalTypes();
4846
4857
  }
4847
- n(Xf, "useGlobalTypes");
4848
- function ku() {
4858
+ n(Qf, "useGlobalTypes");
4859
+ function Du() {
4849
4860
  let { getCurrentStoryData: e } = J();
4850
4861
  return e();
4851
4862
  }
4852
- n(ku, "useCurrentStory");
4853
- function Qf() {
4854
- let e = ku();
4863
+ n(Du, "useCurrentStory");
4864
+ function Zf() {
4865
+ let e = Du();
4855
4866
  return e?.type === "story" && e.argTypes || {};
4856
4867
  }
4857
- n(Qf, "useArgTypes");
4858
- var Zf = oo;
4868
+ n(Zf, "useArgTypes");
4869
+ var ey = oo;
4859
4870
 
4860
4871
  // src/shared/universal-store/mock.ts
4861
- import { Channel as Du } from "storybook/internal/channels";
4862
- var Rt = class Rt extends W {
4872
+ import { Channel as Mu } from "storybook/internal/channels";
4873
+ var Rt = class Rt extends G {
4863
4874
  constructor(t, r) {
4864
- W.isInternalConstructing = !0, super(
4875
+ G.isInternalConstructing = !0, super(
4865
4876
  { ...t, leader: !0 },
4866
- { channel: new Du({}), environment: W.Environment.MOCK }
4867
- ), W.isInternalConstructing = !1, typeof r?.fn == "function" && (this.testUtils = r, this.getState = r.fn(this.getState), this.setState =
4877
+ { channel: new Mu({}), environment: G.Environment.MOCK }
4878
+ ), G.isInternalConstructing = !1, typeof r?.fn == "function" && (this.testUtils = r, this.getState = r.fn(this.getState), this.setState =
4868
4879
  r.fn(this.setState), this.subscribe = r.fn(this.subscribe), this.onStateChange = r.fn(this.onStateChange), this.send = r.fn(this.send));
4869
4880
  }
4870
4881
  /** Create a mock universal store. This is just an alias for the constructor */
@@ -4890,12 +4901,12 @@ n(Rt, "MockUniversalStore");
4890
4901
  var Ur = Rt;
4891
4902
 
4892
4903
  // src/shared/test-provider-store/index.ts
4893
- var bn = {
4904
+ var Pn = {
4894
4905
  id: "storybook/test-provider",
4895
4906
  leader: !0,
4896
4907
  initialState: {}
4897
4908
  };
4898
- function Pn({
4909
+ function An({
4899
4910
  universalTestProviderStore: e,
4900
4911
  useUniversalStore: t
4901
4912
  }) {
@@ -4953,63 +4964,63 @@ function Pn({
4953
4964
  universalTestProviderStore: e
4954
4965
  };
4955
4966
  }
4956
- n(Pn, "createTestProviderStore");
4967
+ n(An, "createTestProviderStore");
4957
4968
 
4958
4969
  // src/manager-api/stores/test-provider.ts
4959
- var Mu = Pn({
4960
- universalTestProviderStore: W.create({
4961
- ...bn,
4970
+ var Uu = An({
4971
+ universalTestProviderStore: G.create({
4972
+ ...Pn,
4962
4973
  leader: globalThis.CONFIG_TYPE === "PRODUCTION"
4963
4974
  }),
4964
4975
  useUniversalStore: we
4965
4976
  }), {
4966
- fullTestProviderStore: Uu,
4967
- getTestProviderStoreById: Lu,
4968
- useTestProviderStore: Fu,
4977
+ fullTestProviderStore: Lu,
4978
+ getTestProviderStoreById: Fu,
4979
+ useTestProviderStore: Wu,
4969
4980
  universalTestProviderStore: Gu
4970
- } = Mu;
4981
+ } = Uu;
4971
4982
  export {
4972
- Vf as ActiveTabs,
4973
- Cu as Consumer,
4983
+ Kf as ActiveTabs,
4984
+ ju as Consumer,
4974
4985
  Tt as ManagerContext,
4975
- mn as Provider,
4986
+ hn as Provider,
4976
4987
  It as RequestResponseError,
4977
- Bn as addons,
4988
+ Vn as addons,
4978
4989
  mo as combineParameters,
4979
- ud as controlOrMetaKey,
4980
- cd as controlOrMetaSymbol,
4981
- pd as eventMatchesShortcut,
4990
+ ld as controlOrMetaKey,
4991
+ ud as controlOrMetaSymbol,
4992
+ dd as eventMatchesShortcut,
4982
4993
  rr as eventToShortcut,
4983
4994
  Ur as experimental_MockUniversalStore,
4984
- W as experimental_UniversalStore,
4985
- xs as experimental_getStatusStore,
4986
- Lu as experimental_getTestProviderStore,
4987
- jf as experimental_requestResponse,
4988
- Ts as experimental_useStatusStore,
4989
- Fu as experimental_useTestProviderStore,
4995
+ G as experimental_UniversalStore,
4996
+ Ts as experimental_getStatusStore,
4997
+ Fu as experimental_getTestProviderStore,
4998
+ kf as experimental_requestResponse,
4999
+ Rs as experimental_useStatusStore,
5000
+ Wu as experimental_useTestProviderStore,
4990
5001
  we as experimental_useUniversalStore,
4991
5002
  gt as internal_fullStatusStore,
4992
- Uu as internal_fullTestProviderStore,
4993
- Rs as internal_universalStatusStore,
5003
+ Lu as internal_fullTestProviderStore,
5004
+ ws as internal_universalStatusStore,
4994
5005
  Gu as internal_universalTestProviderStore,
4995
5006
  tr as isMacLike,
4996
- ld as isShortcutTaken,
4997
- hs as keyToSymbol,
5007
+ pd as isShortcutTaken,
5008
+ gs as keyToSymbol,
4998
5009
  K as merge,
4999
5010
  kt as mockChannel,
5000
- ms as optionOrAltSymbol,
5011
+ hs as optionOrAltSymbol,
5001
5012
  or as shortcutMatchesShortcut,
5002
- dd as shortcutToHumanString,
5003
- Zf as types,
5004
- qf as useAddonState,
5005
- Qf as useArgTypes,
5006
- Yf as useArgs,
5007
- Sn as useChannel,
5008
- Xf as useGlobalTypes,
5009
- Jf as useGlobals,
5010
- Hf as useParameter,
5011
- ju as useSharedState,
5012
- zf as useStoryPrepared,
5013
+ fd as shortcutToHumanString,
5014
+ ey as types,
5015
+ Yf as useAddonState,
5016
+ Zf as useArgTypes,
5017
+ Jf as useArgs,
5018
+ bn as useChannel,
5019
+ Qf as useGlobalTypes,
5020
+ Xf as useGlobals,
5021
+ qf as useParameter,
5022
+ ku as useSharedState,
5023
+ Hf as useStoryPrepared,
5013
5024
  J as useStorybookApi,
5014
- Kf as useStorybookState
5025
+ zf as useStorybookState
5015
5026
  };