storybook 9.0.0-beta.6 → 9.0.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/bin/index.cjs +44 -44
  2. package/dist/bin/index.js +44 -44
  3. package/dist/cli/bin/index.cjs +4184 -737
  4. package/dist/cli/bin/index.js +4198 -749
  5. package/dist/cli/index.cjs +25090 -21638
  6. package/dist/cli/index.d.ts +974 -1
  7. package/dist/cli/index.js +25330 -21876
  8. package/dist/common/index.cjs +4518 -4511
  9. package/dist/common/index.d.ts +7 -2
  10. package/dist/common/index.js +4528 -4521
  11. package/dist/core-server/index.cjs +3240 -3235
  12. package/dist/core-server/index.d.ts +22 -22
  13. package/dist/core-server/index.js +1288 -1283
  14. package/dist/core-server/presets/common-preset.cjs +1445 -1444
  15. package/dist/core-server/presets/common-preset.js +418 -417
  16. package/dist/manager/globals-runtime.js +8188 -8165
  17. package/dist/manager/runtime.js +1151 -1149
  18. package/dist/manager-api/index.cjs +1046 -1023
  19. package/dist/manager-api/index.d.ts +12 -1
  20. package/dist/manager-api/index.js +649 -626
  21. package/dist/preview/runtime.js +5389 -5388
  22. package/dist/preview-api/index.cjs +615 -614
  23. package/dist/preview-api/index.js +532 -531
  24. package/dist/server-errors.cjs +186 -171
  25. package/dist/server-errors.d.ts +11 -1
  26. package/dist/server-errors.js +167 -152
  27. package/dist/telemetry/index.cjs +4887 -1403
  28. package/dist/telemetry/index.d.ts +2 -1
  29. package/dist/telemetry/index.js +4923 -1437
  30. package/dist/test/index.d.ts +2 -6
  31. package/dist/test/index.js +2818 -2818
  32. package/dist/test/preview.cjs +648 -648
  33. package/dist/test/preview.js +837 -837
  34. package/dist/test/spy.cjs +112 -112
  35. package/dist/test/spy.d.ts +2 -6
  36. package/dist/test/spy.js +104 -104
  37. package/dist/types/index.cjs +4 -4
  38. package/dist/types/index.d.ts +2687 -2594
  39. package/package.json +3 -2
@@ -1,8 +1,8 @@
1
- var ya = Object.create;
1
+ var wa = Object.create;
2
2
  var je = Object.defineProperty;
3
- var wa = Object.getOwnPropertyDescriptor;
4
- var Ra = Object.getOwnPropertyNames;
5
- var Sa = Object.getPrototypeOf, Ea = Object.prototype.hasOwnProperty;
3
+ var Ra = Object.getOwnPropertyDescriptor;
4
+ var Sa = Object.getOwnPropertyNames;
5
+ var Ea = Object.getPrototypeOf, Ia = Object.prototype.hasOwnProperty;
6
6
  var o = (e, t) => je(e, "name", { value: t, configurable: !0 }), we = /* @__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]
@@ -10,16 +10,16 @@ var o = (e, t) => je(e, "name", { value: t, configurable: !0 }), we = /* @__PURE
10
10
  if (typeof require < "u") return require.apply(this, arguments);
11
11
  throw Error('Dynamic require of "' + e + '" is not supported');
12
12
  });
13
- var Or = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), B = (e, t) => {
13
+ var Or = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), N = (e, t) => {
14
14
  for (var r in t)
15
15
  je(e, r, { get: t[r], enumerable: !0 });
16
- }, Ia = (e, t, r, a) => {
16
+ }, xa = (e, t, r, a) => {
17
17
  if (t && typeof t == "object" || typeof t == "function")
18
- for (let n of Ra(t))
19
- !Ea.call(e, n) && n !== r && je(e, n, { get: () => t[n], enumerable: !(a = wa(t, n)) || a.enumerable });
18
+ for (let n of Sa(t))
19
+ !Ia.call(e, n) && n !== r && je(e, n, { get: () => t[n], enumerable: !(a = Ra(t, n)) || a.enumerable });
20
20
  return e;
21
21
  };
22
- var _t = (e, t, r) => (r = e != null ? ya(Sa(e)) : {}, Ia(
22
+ var _t = (e, t, r) => (r = e != null ? wa(Ea(e)) : {}, xa(
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 kt = Or((Qr, Vt) => {
162
162
  });
163
163
 
164
164
  // ../node_modules/store2/dist/store2.js
165
- var A0 = Or((gt, yt) => {
165
+ var b0 = Or((gt, yt) => {
166
166
  (function(e, t) {
167
167
  var r = {
168
168
  version: "2.14.4",
@@ -384,19 +384,19 @@ var A0 = Or((gt, yt) => {
384
384
 
385
385
  // src/manager-api/root.tsx
386
386
  import pe, {
387
- Component as ui,
388
- Fragment as hi,
387
+ Component as hi,
388
+ Fragment as pi,
389
389
  useCallback as xt,
390
390
  useContext as br,
391
- useEffect as oa,
391
+ useEffect as na,
392
392
  useMemo as Ar,
393
- useRef as ta
393
+ useRef as ra
394
394
  } from "react";
395
395
  import {
396
- SET_STORIES as pi,
397
- SHARED_STATE_CHANGED as ra,
396
+ SET_STORIES as mi,
397
+ SHARED_STATE_CHANGED as aa,
398
398
  SHARED_STATE_SET as ze,
399
- STORY_CHANGED as mi
399
+ STORY_CHANGED as vi
400
400
  } from "storybook/internal/core-events";
401
401
 
402
402
  // ../node_modules/es-toolkit/dist/array/countBy.mjs
@@ -522,7 +522,7 @@ function X(e, t, r, a = /* @__PURE__ */ new Map(), n = void 0) {
522
522
  let i = new e.constructor();
523
523
  return a.set(e, i), i.message = e.message, i.name = e.name, i.stack = e.stack, i.cause = e.cause, Ie(i, e, r, a, n), i;
524
524
  }
525
- if (typeof e == "object" && xa(e)) {
525
+ if (typeof e == "object" && Aa(e)) {
526
526
  let i = Object.create(Object.getPrototypeOf(e));
527
527
  return a.set(e, i), Ie(i, e, r, a, n), i;
528
528
  }
@@ -537,7 +537,7 @@ function Ie(e, t, r = e, a, n) {
537
537
  }
538
538
  }
539
539
  o(Ie, "copyProperties");
540
- function xa(e) {
540
+ function Aa(e) {
541
541
  switch (Se(e)) {
542
542
  case Ee:
543
543
  case Xe:
@@ -566,7 +566,7 @@ function xa(e) {
566
566
  return !1;
567
567
  }
568
568
  }
569
- o(xa, "isCloneableObject");
569
+ o(Aa, "isCloneableObject");
570
570
 
571
571
  // ../node_modules/es-toolkit/dist/object/cloneDeep.mjs
572
572
  function Dr(e) {
@@ -781,8 +781,8 @@ function H(e, t) {
781
781
  o(H, "isEqual");
782
782
 
783
783
  // src/manager-api/context.ts
784
- import { createContext as Aa } from "react";
785
- var Fr = /* @__PURE__ */ o(({ api: e, state: t }) => Aa({ api: e, state: t }), "createContext");
784
+ import { createContext as ba } from "react";
785
+ var Fr = /* @__PURE__ */ o(({ api: e, state: t }) => ba({ api: e, state: t }), "createContext");
786
786
 
787
787
  // src/manager-api/lib/merge.ts
788
788
  import { logger as Gr } from "storybook/internal/client-logger";
@@ -829,16 +829,16 @@ var G = /* @__PURE__ */ o((e, ...t) => {
829
829
  }, "noArrayMerge");
830
830
 
831
831
  // src/manager-api/initial-state.ts
832
- var ba = /* @__PURE__ */ o((...e) => e.reduce((t, r) => G(t, r), {}), "main"), ct = ba;
832
+ var _a = /* @__PURE__ */ o((...e) => e.reduce((t, r) => G(t, r), {}), "main"), ct = _a;
833
833
 
834
834
  // src/manager-api/lib/addons.ts
835
- import { logger as Pa } from "storybook/internal/client-logger";
835
+ import { logger as Ma } from "storybook/internal/client-logger";
836
836
  import { SET_CONFIG as $r } from "storybook/internal/core-events";
837
837
  import { Addon_TypesEnum as Kr } from "storybook/internal/types";
838
838
  import { global as Ot } from "@storybook/global";
839
839
 
840
840
  // src/manager-api/lib/storybook-channel-mock.ts
841
- import { Channel as _a } from "storybook/internal/channels";
841
+ import { Channel as Pa } from "storybook/internal/channels";
842
842
  function Tt() {
843
843
  let e = {
844
844
  setHandler: /* @__PURE__ */ o(() => {
@@ -846,7 +846,7 @@ function Tt() {
846
846
  send: /* @__PURE__ */ o(() => {
847
847
  }, "send")
848
848
  };
849
- return new _a({ transport: e });
849
+ return new Pa({ transport: e });
850
850
  }
851
851
  o(Tt, "mockChannel");
852
852
 
@@ -876,7 +876,7 @@ var Lt = class {
876
876
  * @returns {void}
877
877
  */
878
878
  this.register = /* @__PURE__ */ o((t, r) => {
879
- this.loaders[t] && Pa.warn(`${t} was loaded twice, this could have bad side-effects`), this.loaders[t] = r;
879
+ this.loaders[t] && Ma.warn(`${t} was loaded twice, this could have bad side-effects`), this.loaders[t] = r;
880
880
  }, "register");
881
881
  this.loadAddons = /* @__PURE__ */ o((t) => {
882
882
  Object.values(this.loaders).forEach((r) => r(t));
@@ -906,17 +906,17 @@ var Lt = class {
906
906
  return Object.keys(this.loaders);
907
907
  }
908
908
  }, zt = "__STORYBOOK_ADDONS_MANAGER";
909
- function Ma() {
909
+ function Ca() {
910
910
  return Ot[zt] || (Ot[zt] = new Lt()), Ot[zt];
911
911
  }
912
- o(Ma, "getAddonsStore");
913
- var Ca = Ma();
912
+ o(Ca, "getAddonsStore");
913
+ var Ta = Ca();
914
914
 
915
915
  // src/manager-api/modules/addons.ts
916
916
  var Bt = {};
917
- B(Bt, {
917
+ N(Bt, {
918
918
  ensurePanel: () => Ht,
919
- init: () => Ta
919
+ init: () => Oa
920
920
  });
921
921
  import { Addon_TypesEnum as qr } from "storybook/internal/types";
922
922
  function Ht(e, t, r) {
@@ -924,7 +924,7 @@ function Ht(e, t, r) {
924
924
  return a.indexOf(t) >= 0 ? t : a.length ? a[0] : r;
925
925
  }
926
926
  o(Ht, "ensurePanel");
927
- var Ta = /* @__PURE__ */ o(({ provider: e, store: t, fullAPI: r }) => {
927
+ var Oa = /* @__PURE__ */ o(({ provider: e, store: t, fullAPI: r }) => {
928
928
  let a = {
929
929
  getElements: /* @__PURE__ */ o((n) => e.getElements(n), "getElements"),
930
930
  getSelectedPanel: /* @__PURE__ */ o(() => {
@@ -957,10 +957,10 @@ var Ta = /* @__PURE__ */ o(({ provider: e, store: t, fullAPI: r }) => {
957
957
 
958
958
  // src/manager-api/modules/channel.ts
959
959
  var Nt = {};
960
- B(Nt, {
961
- init: () => Oa
960
+ N(Nt, {
961
+ init: () => za
962
962
  });
963
- var Oa = /* @__PURE__ */ o(({ provider: e }) => ({ api: {
963
+ var za = /* @__PURE__ */ o(({ provider: e }) => ({ api: {
964
964
  getChannel: /* @__PURE__ */ o(() => e.channel, "getChannel"),
965
965
  on: /* @__PURE__ */ o((r, a) => (e.channel?.on(r, a), () => e.channel?.off(r, a)), "on"),
966
966
  off: /* @__PURE__ */ o((r, a) => e.channel?.off(r, a), "off"),
@@ -973,11 +973,11 @@ var Oa = /* @__PURE__ */ o(({ provider: e }) => ({ api: {
973
973
 
974
974
  // src/manager-api/modules/globals.ts
975
975
  var Gt = {};
976
- B(Gt, {
977
- init: () => $a
976
+ N(Gt, {
977
+ init: () => Ka
978
978
  });
979
979
  import { logger as d0 } from "storybook/internal/client-logger";
980
- import { GLOBALS_UPDATED as Fa, SET_GLOBALS as Ga, UPDATE_GLOBALS as Wa } from "storybook/internal/core-events";
980
+ import { GLOBALS_UPDATED as Ga, SET_GLOBALS as Wa, UPDATE_GLOBALS as $a } from "storybook/internal/core-events";
981
981
 
982
982
  // ../node_modules/dequal/dist/index.mjs
983
983
  var Yr = Object.prototype.hasOwnProperty;
@@ -1036,14 +1036,14 @@ function V(e, t) {
1036
1036
  o(V, "dequal");
1037
1037
 
1038
1038
  // src/manager-api/lib/events.ts
1039
- import { logger as Ua } from "storybook/internal/client-logger";
1039
+ import { logger as Fa } from "storybook/internal/client-logger";
1040
1040
 
1041
1041
  // src/manager-api/modules/refs.ts
1042
1042
  var Ft = {};
1043
- B(Ft, {
1043
+ N(Ft, {
1044
1044
  defaultStoryMapper: () => c0,
1045
1045
  getSourceType: () => Ut,
1046
- init: () => ja
1046
+ init: () => Ua
1047
1047
  });
1048
1048
  import { global as l0 } from "@storybook/global";
1049
1049
 
@@ -1084,7 +1084,7 @@ o(O, "dedent");
1084
1084
  var Xr = O;
1085
1085
 
1086
1086
  // src/manager-api/lib/stories.ts
1087
- import { sanitize as za } from "storybook/internal/csf";
1087
+ import { sanitize as La } from "storybook/internal/csf";
1088
1088
  var Dt = _t(kt(), 1);
1089
1089
 
1090
1090
  // src/manager-api/lib/intersect.ts
@@ -1092,7 +1092,7 @@ var Zr = /* @__PURE__ */ o((e, t) => !Array.isArray(e) || !Array.isArray(t) || !
1092
1092
  a) && r.push(a), r), []), "default");
1093
1093
 
1094
1094
  // src/manager-api/lib/stories.ts
1095
- var La = /\s*\/\s*/, e0 = /* @__PURE__ */ o(({
1095
+ var Ha = /\s*\/\s*/, e0 = /* @__PURE__ */ o(({
1096
1096
  globalParameters: e,
1097
1097
  kindParameters: t,
1098
1098
  stories: r
@@ -1134,7 +1134,7 @@ var La = /\s*\/\s*/, e0 = /* @__PURE__ */ o(({
1134
1134
  return r;
1135
1135
  },
1136
1136
  {}
1137
- ) }), "transformSetStoriesStoryDataToPreparedStoryIndex"), Ha = /* @__PURE__ */ o((e) => ({
1137
+ ) }), "transformSetStoriesStoryDataToPreparedStoryIndex"), Ba = /* @__PURE__ */ o((e) => ({
1138
1138
  v: 3,
1139
1139
  stories: Object.values(e.stories).reduce(
1140
1140
  (t, r) => (t[r.id] = {
@@ -1145,7 +1145,7 @@ var La = /\s*\/\s*/, e0 = /* @__PURE__ */ o(({
1145
1145
  }, t),
1146
1146
  {}
1147
1147
  )
1148
- }), "transformStoryIndexV2toV3"), Ba = /* @__PURE__ */ o((e) => {
1148
+ }), "transformStoryIndexV2toV3"), Na = /* @__PURE__ */ o((e) => {
1149
1149
  let t = Pt(Object.values(e.stories), (r) => r.title);
1150
1150
  return {
1151
1151
  v: 4,
@@ -1161,7 +1161,7 @@ var La = /\s*\/\s*/, e0 = /* @__PURE__ */ o(({
1161
1161
  {}
1162
1162
  )
1163
1163
  };
1164
- }, "transformStoryIndexV3toV4"), Na = /* @__PURE__ */ o((e) => ({
1164
+ }, "transformStoryIndexV3toV4"), Va = /* @__PURE__ */ o((e) => ({
1165
1165
  v: 5,
1166
1166
  entries: Object.values(e.entries).reduce(
1167
1167
  (t, r) => (t[r.id] = {
@@ -1174,7 +1174,7 @@ var La = /\s*\/\s*/, e0 = /* @__PURE__ */ o(({
1174
1174
  if (!e.v)
1175
1175
  throw new Error("Composition: Missing stories.json version");
1176
1176
  let s = e;
1177
- s = s.v === 2 ? Ha(s) : s, s = s.v === 3 ? Ba(s) : s, s = s.v === 4 ? Na(s) : s, s = s;
1177
+ s = s.v === 2 ? Ba(s) : s, s = s.v === 3 ? Na(s) : s, s = s.v === 4 ? Va(s) : s, s = s;
1178
1178
  let i = Object.values(s.entries).filter((v) => {
1179
1179
  let g = !0, y = n[v.id] ?? {};
1180
1180
  return Object.values(y).some(({ value: w }) => w === "status-value:error") || Object.values(a).forEach((w) => {
@@ -1183,8 +1183,8 @@ var La = /\s*\/\s*/, e0 = /* @__PURE__ */ o(({
1183
1183
  }), { sidebar: l = {} } = t.getConfig(), { showRoots: c, collapsedRoots: d = [], renderLabel: f } = l, u = typeof c < "u", h = i.reduce((v, g) => {
1184
1184
  if (r.docsMode && g.type !== "docs")
1185
1185
  return v;
1186
- let { title: y } = g, w = y.trim().split(La), S = (!u || c) && w.length > 1 ? [w.shift()] : [], E = [...S, ...w], x = E.reduce((I, P, C) => {
1187
- let A = C > 0 && I[C - 1], me = za(A ? `${A}-${P}` : P);
1186
+ let { title: y } = g, w = y.trim().split(Ha), S = (!u || c) && w.length > 1 ? [w.shift()] : [], E = [...S, ...w], x = E.reduce((I, P, C) => {
1187
+ let A = C > 0 && I[C - 1], me = La(A ? `${A}-${P}` : P);
1188
1188
  if (P.trim() === "")
1189
1189
  throw new Error(O`Invalid title ${y} ending in slash.`);
1190
1190
  if (A === me)
@@ -1263,8 +1263,8 @@ var La = /\s*\/\s*/, e0 = /* @__PURE__ */ o(({
1263
1263
  }, [])), a0 = (0, Dt.default)(1)((e) => Object.keys(e).filter((t) => ["story", "docs"].includes(e[t].type)));
1264
1264
 
1265
1265
  // src/manager-api/modules/refs.ts
1266
- var { location: Va, fetch: n0 } = l0, Ut = /* @__PURE__ */ o((e, t) => {
1267
- let { origin: r, pathname: a } = Va, { origin: n, pathname: s } = new URL(e), i = `${r + a}`.replace("/iframe.html", "").replace(/\/$/, ""),
1266
+ var { location: ka, fetch: n0 } = l0, Ut = /* @__PURE__ */ o((e, t) => {
1267
+ let { origin: r, pathname: a } = ka, { origin: n, pathname: s } = new URL(e), i = `${r + a}`.replace("/iframe.html", "").replace(/\/$/, ""),
1268
1268
  l = `${n + s}`.replace("/iframe.html", "").replace(/\/$/, "");
1269
1269
  return i === l ? ["local", l] : t || e ? ["external", l] : [null, null];
1270
1270
  }, "getSourceType"), c0 = /* @__PURE__ */ o((e, t) => ({ ...t, kind: t.kind.replace("|", "/") }), "defaultStoryMapper"), i0 = /* @__PURE__ */ o(
@@ -1285,16 +1285,16 @@ async function s0(e) {
1285
1285
  }
1286
1286
  }
1287
1287
  o(s0, "handleRequest");
1288
- var ka = /* @__PURE__ */ o((e) => {
1288
+ var Da = /* @__PURE__ */ o((e) => {
1289
1289
  let t = /https?:\/\/(.+:.+)@/, r = e, a, [, n] = e.match(t) || [];
1290
1290
  return n && (r = e.replace(`${n}@`, ""), a = btoa(`${n}`)), {
1291
1291
  url: r,
1292
1292
  authorization: a
1293
1293
  };
1294
- }, "parseUrl"), Da = /* @__PURE__ */ o((e, t, r) => {
1294
+ }, "parseUrl"), ja = /* @__PURE__ */ o((e, t, r) => {
1295
1295
  let { storyMapper: a } = r;
1296
1296
  return a ? Object.entries(e).reduce((n, [s, i]) => ({ ...n, [s]: a(t, i) }), {}) : e;
1297
- }, "map"), ja = /* @__PURE__ */ o(({ store: e, provider: t, singleStory: r, docsOptions: a = {} }, { runCheck: n = !0 } = {}) => {
1297
+ }, "map"), Ua = /* @__PURE__ */ o(({ store: e, provider: t, singleStory: r, docsOptions: a = {} }, { runCheck: n = !0 } = {}) => {
1298
1298
  let s = {
1299
1299
  findRef: /* @__PURE__ */ o((c) => {
1300
1300
  let d = s.getRefs();
@@ -1320,7 +1320,7 @@ var ka = /* @__PURE__ */ o((e) => {
1320
1320
  }, "changeRefState"),
1321
1321
  checkRef: /* @__PURE__ */ o(async (c) => {
1322
1322
  let { id: d, url: f, version: u, type: h } = c, p = h === "server-checked", m = {}, v = u ? `?version=${u}` : "", g = p ? "omit" : "in\
1323
- clude", y = ka(f), w = {
1323
+ clude", y = Da(f), w = {
1324
1324
  Accept: "application/json"
1325
1325
  };
1326
1326
  y.authorization && Object.assign(w, {
@@ -1379,7 +1379,7 @@ clude", y = ka(f), w = {
1379
1379
  return;
1380
1380
  let p, m, v, { filters: g } = e.getState(), { storyMapper: y = c0 } = t.getConfig(), w = s.getRefs()[c];
1381
1381
  (d || f) && (p = f ? t0(
1382
- Da(f, w, { storyMapper: y })
1382
+ ja(f, w, { storyMapper: y })
1383
1383
  ) : d, v = ie(d, {
1384
1384
  provider: t,
1385
1385
  docsOptions: a,
@@ -1432,12 +1432,12 @@ var z = /* @__PURE__ */ o((e, t) => {
1432
1432
  return c;
1433
1433
  // if we couldn't find the source, something risky happened, we ignore the input, and log a warning
1434
1434
  default:
1435
- return Ua.warn(`Received a ${n} frame that was not configured as a ref`), null;
1435
+ return Fa.warn(`Received a ${n} frame that was not configured as a ref`), null;
1436
1436
  }
1437
1437
  }, "getEventMetadata");
1438
1438
 
1439
1439
  // src/manager-api/modules/globals.ts
1440
- var $a = /* @__PURE__ */ o(({ store: e, fullAPI: t, provider: r }) => {
1440
+ var Ka = /* @__PURE__ */ o(({ store: e, fullAPI: t, provider: r }) => {
1441
1441
  let a = {
1442
1442
  getGlobals() {
1443
1443
  return e.getState().globals;
@@ -1452,7 +1452,7 @@ var $a = /* @__PURE__ */ o(({ store: e, fullAPI: t, provider: r }) => {
1452
1452
  return e.getState().globalTypes;
1453
1453
  },
1454
1454
  updateGlobals(i) {
1455
- r.channel?.emit(Wa, {
1455
+ r.channel?.emit($a, {
1456
1456
  globals: i,
1457
1457
  options: {
1458
1458
  target: "storybook-preview-iframe"
@@ -1477,7 +1477,7 @@ var $a = /* @__PURE__ */ o(({ store: e, fullAPI: t, provider: r }) => {
1477
1477
  V(i, d) || e.setState({ globals: i }), V(c, f) || e.setState({ userGlobals: c }), V(l, u) || e.setState({ storyGlobals: l });
1478
1478
  }, "updateGlobals");
1479
1479
  return r.channel?.on(
1480
- Fa,
1480
+ Ga,
1481
1481
  /* @__PURE__ */ o(function({ globals: l, storyGlobals: c, userGlobals: d }) {
1482
1482
  let { ref: f } = z(this, t);
1483
1483
  f ? d0.warn(
@@ -1485,7 +1485,7 @@ var $a = /* @__PURE__ */ o(({ store: e, fullAPI: t, provider: r }) => {
1485
1485
  ) : s({ globals: l, storyGlobals: c, userGlobals: d });
1486
1486
  }, "handleGlobalsUpdated")
1487
1487
  ), r.channel?.on(
1488
- Ga,
1488
+ Wa,
1489
1489
  /* @__PURE__ */ o(function({ globals: l, globalTypes: c }) {
1490
1490
  let { ref: d } = z(this, t), f = e.getState()?.globals;
1491
1491
  d ? Object.keys(l).length > 0 && d0.warn("received globals from a non-local ref. This is not currently supported.") : e.setState({ globals: l,
@@ -1499,25 +1499,25 @@ var $a = /* @__PURE__ */ o(({ store: e, fullAPI: t, provider: r }) => {
1499
1499
 
1500
1500
  // src/manager-api/modules/layout.ts
1501
1501
  var ft = {};
1502
- B(ft, {
1503
- ActiveTabs: () => u0,
1504
- defaultLayoutState: () => N,
1502
+ N(ft, {
1503
+ ActiveTabs: () => h0,
1504
+ defaultLayoutState: () => B,
1505
1505
  focusableUIElements: () => _e,
1506
- init: () => Xa
1506
+ init: () => Qa
1507
1507
  });
1508
- import { SET_CONFIG as Ka } from "storybook/internal/core-events";
1509
- import { global as qa } from "@storybook/global";
1510
- import { create as Ya } from "storybook/theming/create";
1511
- var { document: Ja } = qa, u0 = {
1508
+ import { SET_CONFIG as qa } from "storybook/internal/core-events";
1509
+ import { global as Ya } from "@storybook/global";
1510
+ import { create as Ja } from "storybook/theming/create";
1511
+ var { document: Xa } = Ya, f0 = /* @__PURE__ */ o((e) => typeof e == "function", "isFunction"), h0 = {
1512
1512
  SIDEBAR: "sidebar",
1513
1513
  CANVAS: "canvas",
1514
1514
  ADDONS: "addons"
1515
- }, N = {
1515
+ }, B = {
1516
1516
  ui: {
1517
1517
  enableShortcuts: !0
1518
1518
  },
1519
1519
  layout: {
1520
- initialActive: u0.CANVAS,
1520
+ initialActive: h0.CANVAS,
1521
1521
  showToolbar: !0,
1522
1522
  navSize: 300,
1523
1523
  bottomPanelHeight: 300,
@@ -1530,8 +1530,12 @@ var { document: Ja } = qa, u0 = {
1530
1530
  panelPosition: "bottom",
1531
1531
  showTabs: !0
1532
1532
  },
1533
+ layoutCustomisations: {
1534
+ showSidebar: void 0,
1535
+ showToolbar: void 0
1536
+ },
1533
1537
  selectedPanel: void 0,
1534
- theme: Ya()
1538
+ theme: Ja()
1535
1539
  }, _e = {
1536
1540
  storySearchField: "storybook-explorer-searchfield",
1537
1541
  storyListMenu: "storybook-explorer-menu",
@@ -1539,16 +1543,16 @@ var { document: Ja } = qa, u0 = {
1539
1543
  }, Wt = /* @__PURE__ */ o((e) => e.layout.navSize > 0, "getIsNavShown"), $t = /* @__PURE__ */ o((e) => {
1540
1544
  let { bottomPanelHeight: t, rightPanelWidth: r, panelPosition: a } = e.layout;
1541
1545
  return a === "bottom" && t > 0 || a === "right" && r > 0;
1542
- }, "getIsPanelShown"), f0 = /* @__PURE__ */ o((e) => !Wt(e) && !$t(e), "getIsFullscreen"), dt = /* @__PURE__ */ o((e) => ({
1546
+ }, "getIsPanelShown"), u0 = /* @__PURE__ */ o((e) => !Wt(e) && !$t(e), "getIsFullscreen"), dt = /* @__PURE__ */ o((e) => ({
1543
1547
  navSize: e.navSize > 0 ? e.navSize : e.recentVisibleSizes.navSize,
1544
1548
  bottomPanelHeight: e.bottomPanelHeight > 0 ? e.bottomPanelHeight : e.recentVisibleSizes.bottomPanelHeight,
1545
1549
  rightPanelWidth: e.rightPanelWidth > 0 ? e.rightPanelWidth : e.recentVisibleSizes.rightPanelWidth
1546
- }), "getRecentVisibleSizes"), Xa = /* @__PURE__ */ o(({ store: e, provider: t, singleStory: r }) => {
1550
+ }), "getRecentVisibleSizes"), Qa = /* @__PURE__ */ o(({ store: e, provider: t, singleStory: r }) => {
1547
1551
  let a = {
1548
1552
  toggleFullscreen(s) {
1549
1553
  return e.setState(
1550
1554
  (i) => {
1551
- let l = f0(i), c = typeof s == "boolean" ? s : !l;
1555
+ let l = u0(i), c = typeof s == "boolean" ? s : !l;
1552
1556
  return c === l ? { layout: i.layout } : c ? {
1553
1557
  layout: {
1554
1558
  ...i.layout,
@@ -1669,27 +1673,31 @@ var { document: Ja } = qa, u0 = {
1669
1673
  focusOnUIElement(s, i) {
1670
1674
  if (!s)
1671
1675
  return;
1672
- let l = Ja.getElementById(s);
1676
+ let l = Xa.getElementById(s);
1673
1677
  l && (l.focus(), i && l.select());
1674
1678
  },
1675
1679
  getInitialOptions() {
1676
- let { theme: s, selectedPanel: i, ...l } = t.getConfig();
1680
+ let { theme: s, selectedPanel: i, layoutCustomisations: l, ...c } = t.getConfig();
1677
1681
  return {
1678
- ...N,
1682
+ ...B,
1679
1683
  layout: {
1680
1684
  ...xe(
1681
- N.layout,
1682
- Q(l, Object.keys(N.layout))
1685
+ B.layout,
1686
+ Q(c, Object.keys(B.layout))
1683
1687
  ),
1684
1688
  ...r && { navSize: 0 }
1685
1689
  },
1686
- ui: xe(N.ui, Q(l, Object.keys(N.ui))),
1687
- selectedPanel: i || N.selectedPanel,
1688
- theme: s || N.theme
1690
+ layoutCustomisations: {
1691
+ ...B.layoutCustomisations,
1692
+ ...l ?? {}
1693
+ },
1694
+ ui: xe(B.ui, Q(c, Object.keys(B.ui))),
1695
+ selectedPanel: i || B.selectedPanel,
1696
+ theme: s || B.theme
1689
1697
  };
1690
1698
  },
1691
1699
  getIsFullscreen() {
1692
- return f0(e.getState());
1700
+ return u0(e.getState());
1693
1701
  },
1694
1702
  getIsPanelShown() {
1695
1703
  return $t(e.getState());
@@ -1697,6 +1705,21 @@ var { document: Ja } = qa, u0 = {
1697
1705
  getIsNavShown() {
1698
1706
  return Wt(e.getState());
1699
1707
  },
1708
+ getShowToolbarWithCustomisations(s) {
1709
+ let i = e.getState();
1710
+ return f0(i.layoutCustomisations.showToolbar) ? i.layoutCustomisations.showToolbar(i, s) ?? s : s;
1711
+ },
1712
+ getNavSizeWithCustomisations(s) {
1713
+ let i = e.getState();
1714
+ if (f0(i.layoutCustomisations.showSidebar)) {
1715
+ let l = i.layoutCustomisations.showSidebar(i, s !== 0);
1716
+ if (s === 0 && l === !0)
1717
+ return i.layout.recentVisibleSizes.navSize;
1718
+ if (s !== 0 && l === !1)
1719
+ return 0;
1720
+ }
1721
+ return s;
1722
+ },
1700
1723
  setOptions: /* @__PURE__ */ o((s) => {
1701
1724
  let { layout: i, ui: l, selectedPanel: c, theme: d } = e.getState();
1702
1725
  if (!s)
@@ -1718,7 +1741,7 @@ var { document: Ja } = qa, u0 = {
1718
1741
  keys(p).length && e.setState(p, { persistence: "permanent" }), H(d, h) || e.setState({ theme: h });
1719
1742
  }, "setOptions")
1720
1743
  }, n = Q(e.getState(), ["layout", "selectedPanel"]);
1721
- return t.channel?.on(Ka, () => {
1744
+ return t.channel?.on(qa, () => {
1722
1745
  a.setOptions(G(a.getInitialOptions(), n));
1723
1746
  }), {
1724
1747
  api: a,
@@ -1728,10 +1751,10 @@ var { document: Ja } = qa, u0 = {
1728
1751
 
1729
1752
  // src/manager-api/modules/notifications.ts
1730
1753
  var Kt = {};
1731
- B(Kt, {
1732
- init: () => Qa
1754
+ N(Kt, {
1755
+ init: () => Za
1733
1756
  });
1734
- var Qa = /* @__PURE__ */ o(({ store: e }) => ({ api: {
1757
+ var Za = /* @__PURE__ */ o(({ store: e }) => ({ api: {
1735
1758
  addNotification: /* @__PURE__ */ o((a) => {
1736
1759
  e.setState(({ notifications: n }) => {
1737
1760
  let [s, i] = Ue(n, (l) => l.id === a.id);
@@ -1752,10 +1775,10 @@ var Qa = /* @__PURE__ */ o(({ store: e }) => ({ api: {
1752
1775
 
1753
1776
  // src/manager-api/modules/provider.ts
1754
1777
  var qt = {};
1755
- B(qt, {
1756
- init: () => Za
1778
+ N(qt, {
1779
+ init: () => eo
1757
1780
  });
1758
- var Za = /* @__PURE__ */ o(({ provider: e, fullAPI: t }) => ({
1781
+ var eo = /* @__PURE__ */ o(({ provider: e, fullAPI: t }) => ({
1759
1782
  api: e.renderPreview ? { renderPreview: e.renderPreview } : {},
1760
1783
  state: {},
1761
1784
  init: /* @__PURE__ */ o(() => {
@@ -1765,10 +1788,10 @@ var Za = /* @__PURE__ */ o(({ provider: e, fullAPI: t }) => ({
1765
1788
 
1766
1789
  // src/manager-api/modules/settings.ts
1767
1790
  var Yt = {};
1768
- B(Yt, {
1769
- init: () => eo
1791
+ N(Yt, {
1792
+ init: () => to
1770
1793
  });
1771
- var eo = /* @__PURE__ */ o(({ store: e, navigate: t, fullAPI: r }) => ({
1794
+ var to = /* @__PURE__ */ o(({ store: e, navigate: t, fullAPI: r }) => ({
1772
1795
  state: { settings: { lastTrackedStoryId: null } },
1773
1796
  api: {
1774
1797
  closeSettings: /* @__PURE__ */ o(() => {
@@ -1799,26 +1822,26 @@ var eo = /* @__PURE__ */ o(({ store: e, navigate: t, fullAPI: r }) => ({
1799
1822
 
1800
1823
  // src/manager-api/modules/shortcuts.ts
1801
1824
  var ar = {};
1802
- B(ar, {
1825
+ N(ar, {
1803
1826
  controlOrMetaKey: () => se,
1804
1827
  defaultShortcuts: () => le,
1805
- init: () => fo,
1806
- isMacLike: () => p0,
1828
+ init: () => uo,
1829
+ isMacLike: () => m0,
1807
1830
  keys: () => rr
1808
1831
  });
1809
1832
  import {
1810
- FORCE_REMOUNT as oo,
1811
- PREVIEW_KEYDOWN as no,
1812
- STORIES_COLLAPSE_ALL as io,
1813
- STORIES_EXPAND_ALL as so
1833
+ FORCE_REMOUNT as no,
1834
+ PREVIEW_KEYDOWN as io,
1835
+ STORIES_COLLAPSE_ALL as so,
1836
+ STORIES_EXPAND_ALL as lo
1814
1837
  } from "storybook/internal/core-events";
1815
- import { global as lo } from "@storybook/global";
1838
+ import { global as co } from "@storybook/global";
1816
1839
 
1817
1840
  // src/manager-api/lib/shortcut.ts
1818
- import { global as to } from "@storybook/global";
1819
- var { navigator: Jt } = to, Xt = /* @__PURE__ */ o(() => Jt && Jt.platform ? !!Jt.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1, "isMacLike"),
1820
- Yl = /* @__PURE__ */ o(() => Xt() ? "\u2318" : "ctrl", "controlOrMetaSymbol"), Jl = /* @__PURE__ */ o(() => Xt() ? "meta" : "control", "cont\
1821
- rolOrMetaKey"), ro = /* @__PURE__ */ o(() => Xt() ? "\u2325" : "alt", "optionOrAltSymbol"), Xl = /* @__PURE__ */ o((e, t) => JSON.stringify(
1841
+ import { global as ro } from "@storybook/global";
1842
+ var { navigator: Jt } = ro, Xt = /* @__PURE__ */ o(() => Jt && Jt.platform ? !!Jt.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1, "isMacLike"),
1843
+ Jl = /* @__PURE__ */ o(() => Xt() ? "\u2318" : "ctrl", "controlOrMetaSymbol"), Xl = /* @__PURE__ */ o(() => Xt() ? "meta" : "control", "cont\
1844
+ rolOrMetaKey"), ao = /* @__PURE__ */ o(() => Xt() ? "\u2325" : "alt", "optionOrAltSymbol"), Ql = /* @__PURE__ */ o((e, t) => JSON.stringify(
1822
1845
  e) === JSON.stringify(t), "isShortcutTaken"), Qt = /* @__PURE__ */ o((e) => {
1823
1846
  if (["Meta", "Alt", "Control", "Shift"].includes(e.key))
1824
1847
  return null;
@@ -1834,14 +1857,14 @@ e) === JSON.stringify(t), "isShortcutTaken"), Qt = /* @__PURE__ */ o((e) => {
1834
1857
  }, "eventToShortcut"), Zt = /* @__PURE__ */ o((e, t) => !e || !t || (e.join("").startsWith("shift/") && e.shift(), e.length !== t.length) ? !1 :
1835
1858
  !e.find(
1836
1859
  (r, a) => Array.isArray(r) ? !r.includes(t[a]) : r !== t[a]
1837
- ), "shortcutMatchesShortcut"), Ql = /* @__PURE__ */ o((e, t) => Zt(Qt(e), t), "eventMatchesShortcut"), ao = /* @__PURE__ */ o((e) => e === "\
1838
- alt" ? ro() : e === "control" ? "\u2303" : e === "meta" ? "\u2318" : e === "shift" ? "\u21E7\u200B" : e === "Enter" || e === "Backspace" || e ===
1860
+ ), "shortcutMatchesShortcut"), Zl = /* @__PURE__ */ o((e, t) => Zt(Qt(e), t), "eventMatchesShortcut"), oo = /* @__PURE__ */ o((e) => e === "\
1861
+ alt" ? ao() : e === "control" ? "\u2303" : e === "meta" ? "\u2318" : e === "shift" ? "\u21E7\u200B" : e === "Enter" || e === "Backspace" || e ===
1839
1862
  "Esc" || e === "escape" ? "" : e === " " ? "SPACE" : e === "ArrowUp" ? "\u2191" : e === "ArrowDown" ? "\u2193" : e === "ArrowLeft" ? "\u2190" :
1840
- e === "ArrowRight" ? "\u2192" : e.toUpperCase(), "keyToSymbol"), Zl = /* @__PURE__ */ o((e) => e.map(ao).join(" "), "shortcutToHumanString");
1863
+ e === "ArrowRight" ? "\u2192" : e.toUpperCase(), "keyToSymbol"), ec = /* @__PURE__ */ o((e) => e.map(oo).join(" "), "shortcutToHumanString");
1841
1864
 
1842
1865
  // src/manager-api/modules/shortcuts.ts
1843
- var { navigator: er, document: h0 } = lo, p0 = /* @__PURE__ */ o(() => er && er.platform ? !!er.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1,
1844
- "isMacLike"), se = /* @__PURE__ */ o(() => p0() ? "meta" : "control", "controlOrMetaKey");
1866
+ var { navigator: er, document: p0 } = co, m0 = /* @__PURE__ */ o(() => er && er.platform ? !!er.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1,
1867
+ "isMacLike"), se = /* @__PURE__ */ o(() => m0() ? "meta" : "control", "controlOrMetaKey");
1845
1868
  function rr(e) {
1846
1869
  return Object.keys(e);
1847
1870
  }
@@ -1868,12 +1891,12 @@ var le = Object.freeze({
1868
1891
  expandAll: [se(), "shift", "ArrowDown"],
1869
1892
  remount: ["alt", "R"]
1870
1893
  }), tr = {};
1871
- function co(e) {
1894
+ function fo(e) {
1872
1895
  let t = e.target;
1873
1896
  return /input|textarea/i.test(t.tagName) || t.getAttribute("contenteditable") !== null;
1874
1897
  }
1875
- o(co, "focusInInput");
1876
- var fo = /* @__PURE__ */ o(({ store: e, fullAPI: t, provider: r }) => {
1898
+ o(fo, "focusInInput");
1899
+ var uo = /* @__PURE__ */ o(({ store: e, fullAPI: t, provider: r }) => {
1877
1900
  let a = {
1878
1901
  // Getting and setting shortcuts
1879
1902
  getShortcutKeys() {
@@ -1951,7 +1974,7 @@ var fo = /* @__PURE__ */ o(({ store: e, fullAPI: t, provider: r }) => {
1951
1974
  break;
1952
1975
  }
1953
1976
  case "focusIframe": {
1954
- let u = h0.getElementById("storybook-preview-iframe");
1977
+ let u = p0.getElementById("storybook-preview-iframe");
1955
1978
  if (u)
1956
1979
  try {
1957
1980
  u.contentWindow.focus();
@@ -2008,15 +2031,15 @@ var fo = /* @__PURE__ */ o(({ store: e, fullAPI: t, provider: r }) => {
2008
2031
  break;
2009
2032
  }
2010
2033
  case "collapseAll": {
2011
- t.emit(io);
2034
+ t.emit(so);
2012
2035
  break;
2013
2036
  }
2014
2037
  case "expandAll": {
2015
- t.emit(so);
2038
+ t.emit(lo);
2016
2039
  break;
2017
2040
  }
2018
2041
  case "remount": {
2019
- t.emit(oo, { storyId: f });
2042
+ t.emit(no, { storyId: f });
2020
2043
  break;
2021
2044
  }
2022
2045
  default:
@@ -2032,9 +2055,9 @@ var fo = /* @__PURE__ */ o(({ store: e, fullAPI: t, provider: r }) => {
2032
2055
  )
2033
2056
  };
2034
2057
  return { api: a, state: s, init: /* @__PURE__ */ o(() => {
2035
- h0.addEventListener("keydown", (l) => {
2036
- co(l) || a.handleKeydownEvent(l);
2037
- }), r.channel?.on(no, (l) => {
2058
+ p0.addEventListener("keydown", (l) => {
2059
+ fo(l) || a.handleKeydownEvent(l);
2060
+ }), r.channel?.on(io, (l) => {
2038
2061
  a.handleKeydownEvent(l.event);
2039
2062
  });
2040
2063
  }, "initModule") };
@@ -2042,42 +2065,42 @@ var fo = /* @__PURE__ */ o(({ store: e, fullAPI: t, provider: r }) => {
2042
2065
 
2043
2066
  // src/manager-api/modules/stories.ts
2044
2067
  var sr = {};
2045
- B(sr, {
2046
- init: () => Do
2068
+ N(sr, {
2069
+ init: () => jo
2047
2070
  });
2048
- import { logger as go } from "storybook/internal/client-logger";
2071
+ import { logger as yo } from "storybook/internal/client-logger";
2049
2072
  import {
2050
- CONFIG_ERROR as yo,
2051
- CURRENT_STORY_WAS_SET as wo,
2052
- DOCS_PREPARED as Ro,
2053
- PRELOAD_ENTRIES as So,
2054
- RESET_STORY_ARGS as Eo,
2055
- SELECT_STORY as Io,
2056
- SET_CONFIG as xo,
2057
- SET_CURRENT_STORY as Ao,
2058
- SET_FILTER as bo,
2059
- SET_INDEX as _o,
2060
- SET_STORIES as Po,
2061
- STORY_ARGS_UPDATED as Mo,
2062
- STORY_CHANGED as Co,
2063
- STORY_INDEX_INVALIDATED as To,
2064
- STORY_MISSING as Oo,
2065
- STORY_PREPARED as zo,
2066
- STORY_SPECIFIED as Lo,
2067
- UPDATE_STORY_ARGS as Ho
2073
+ CONFIG_ERROR as wo,
2074
+ CURRENT_STORY_WAS_SET as Ro,
2075
+ DOCS_PREPARED as So,
2076
+ PRELOAD_ENTRIES as Eo,
2077
+ RESET_STORY_ARGS as Io,
2078
+ SELECT_STORY as xo,
2079
+ SET_CONFIG as Ao,
2080
+ SET_CURRENT_STORY as bo,
2081
+ SET_FILTER as _o,
2082
+ SET_INDEX as Po,
2083
+ SET_STORIES as Mo,
2084
+ STORY_ARGS_UPDATED as Co,
2085
+ STORY_CHANGED as To,
2086
+ STORY_INDEX_INVALIDATED as Oo,
2087
+ STORY_MISSING as zo,
2088
+ STORY_PREPARED as Lo,
2089
+ STORY_SPECIFIED as Ho,
2090
+ UPDATE_STORY_ARGS as Bo
2068
2091
  } from "storybook/internal/core-events";
2069
- import { sanitize as y0, toId as vt } from "storybook/internal/csf";
2070
- import { global as Bo } from "@storybook/global";
2092
+ import { sanitize as w0, toId as vt } from "storybook/internal/csf";
2093
+ import { global as No } from "@storybook/global";
2071
2094
 
2072
2095
  // src/storybook-error.ts
2073
- function m0({
2096
+ function v0({
2074
2097
  code: e,
2075
2098
  category: t
2076
2099
  }) {
2077
2100
  let r = String(e).padStart(4, "0");
2078
2101
  return `SB_${t}_${r}`;
2079
2102
  }
2080
- o(m0, "parseErrorCode");
2103
+ o(v0, "parseErrorCode");
2081
2104
  var q = class e extends Error {
2082
2105
  constructor(r) {
2083
2106
  super(e.getFullMessage(r));
@@ -2094,7 +2117,7 @@ var q = class e extends Error {
2094
2117
  o(this, "StorybookError");
2095
2118
  }
2096
2119
  get fullErrorCode() {
2097
- return m0({ code: this.code, category: this.category });
2120
+ return v0({ code: this.code, category: this.category });
2098
2121
  }
2099
2122
  /** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
2100
2123
  get name() {
@@ -2109,7 +2132,7 @@ var q = class e extends Error {
2109
2132
  message: s
2110
2133
  }) {
2111
2134
  let i;
2112
- return r === !0 ? i = `https://storybook.js.org/error/${m0({ code: a, category: n })}` : typeof r == "string" ? i = r : Array.isArray(r) &&
2135
+ return r === !0 ? i = `https://storybook.js.org/error/${v0({ code: a, category: n })}` : typeof r == "string" ? i = r : Array.isArray(r) &&
2113
2136
  (i = `
2114
2137
  ${r.map((l) => ` - ${l}`).join(`
2115
2138
  `)}`), `${s}${i != null ? `
@@ -2177,14 +2200,14 @@ var pt = class extends q {
2177
2200
  };
2178
2201
 
2179
2202
  // src/shared/status-store/index.ts
2180
- var v0 = {
2203
+ var g0 = {
2181
2204
  id: "storybook/status",
2182
2205
  leader: !0,
2183
2206
  initialState: {}
2184
2207
  }, or = {
2185
2208
  SELECT: "select"
2186
2209
  };
2187
- function g0({
2210
+ function y0({
2188
2211
  universalStatusStore: e,
2189
2212
  useUniversalStore: t,
2190
2213
  environment: r
@@ -2286,13 +2309,13 @@ function g0({
2286
2309
  useStatusStore: /* @__PURE__ */ o((s) => t(e, s)[0], "useStatusStore")
2287
2310
  } : { getStatusStoreByTypeId: n, fullStatusStore: a, universalStatusStore: e };
2288
2311
  }
2289
- o(g0, "createStatusStore");
2312
+ o(y0, "createStatusStore");
2290
2313
 
2291
2314
  // src/shared/universal-store/instances.ts
2292
2315
  var nr = /* @__PURE__ */ new Map();
2293
2316
 
2294
2317
  // src/shared/universal-store/index.ts
2295
- var uo = "UNIVERSAL_STORE:", k = {
2318
+ var ho = "UNIVERSAL_STORE:", k = {
2296
2319
  PENDING: "PENDING",
2297
2320
  RESOLVED: "RESOLVED",
2298
2321
  REJECTED: "REJECTED"
@@ -2344,7 +2367,7 @@ var uo = "UNIVERSAL_STORE:", k = {
2344
2367
  "UniversalStore is not constructable - use UniversalStore.create() instead"
2345
2368
  );
2346
2369
  if (e.isInternalConstructing = !1, this.id = t.id, this.actorId = Date.now().toString(36) + Math.random().toString(36).substring(2), this.
2347
- actorType = t.leader ? e.ActorType.LEADER : e.ActorType.FOLLOWER, this.state = t.initialState, this.channelEventName = `${uo}${this.id}`,
2370
+ actorType = t.leader ? e.ActorType.LEADER : e.ActorType.FOLLOWER, this.state = t.initialState, this.channelEventName = `${ho}${this.id}`,
2348
2371
  this.debug("constructor", {
2349
2372
  options: t,
2350
2373
  environmentOverrides: r,
@@ -2707,27 +2730,27 @@ var Pe = /* @__PURE__ */ o((e, t) => {
2707
2730
  }, "useUniversalStore");
2708
2731
 
2709
2732
  // src/manager-api/stores/status.ts
2710
- var ho = g0({
2733
+ var po = y0({
2711
2734
  universalStatusStore: D.create({
2712
- ...v0,
2735
+ ...g0,
2713
2736
  leader: globalThis.CONFIG_TYPE === "PRODUCTION"
2714
2737
  }),
2715
2738
  useUniversalStore: Pe,
2716
2739
  environment: "manager"
2717
- }), { fullStatusStore: mt, getStatusStoreByTypeId: po, useStatusStore: mo, universalStatusStore: vo } = ho;
2740
+ }), { fullStatusStore: mt, getStatusStoreByTypeId: mo, useStatusStore: vo, universalStatusStore: go } = po;
2718
2741
 
2719
2742
  // src/manager-api/modules/stories.ts
2720
- var { fetch: No } = Bo, Vo = "./index.json", ko = ["enableShortcuts", "theme", "showRoots"];
2743
+ var { fetch: Vo } = No, ko = "./index.json", Do = ["enableShortcuts", "theme", "showRoots"];
2721
2744
  function ir(e) {
2722
2745
  if (!e || typeof e == "string")
2723
2746
  return e;
2724
2747
  let t = { ...e };
2725
- return ko.forEach((r) => {
2748
+ return Do.forEach((r) => {
2726
2749
  r in t && delete t[r];
2727
2750
  }), t;
2728
2751
  }
2729
2752
  o(ir, "removeRemovedOptions");
2730
- var Do = /* @__PURE__ */ o(({
2753
+ var jo = /* @__PURE__ */ o(({
2731
2754
  fullAPI: e,
2732
2755
  store: t,
2733
2756
  navigate: r,
@@ -2809,7 +2832,7 @@ var Do = /* @__PURE__ */ o(({
2809
2832
  if (g[w])
2810
2833
  l.selectStory(w, void 0, u);
2811
2834
  else {
2812
- let S = g[y0(d)];
2835
+ let S = g[w0(d)];
2813
2836
  if (S?.type === "component") {
2814
2837
  let E = S.children.find((x) => g[x].name === f);
2815
2838
  E && l.selectStory(E, void 0, u);
@@ -2820,7 +2843,7 @@ var Do = /* @__PURE__ */ o(({
2820
2843
  l.selectStory(w, void 0, u);
2821
2844
  }
2822
2845
  else {
2823
- let w = d ? g[d] || g[y0(d)] : g[y];
2846
+ let w = d ? g[d] || g[w0(d)] : g[y];
2824
2847
  if (!w)
2825
2848
  throw new Error(`Unknown id or title: '${d}'`);
2826
2849
  t.setState({
@@ -2861,7 +2884,7 @@ var Do = /* @__PURE__ */ o(({
2861
2884
  },
2862
2885
  updateStoryArgs: /* @__PURE__ */ o((d, f) => {
2863
2886
  let { id: u, refId: h } = d;
2864
- a.channel?.emit(Ho, {
2887
+ a.channel?.emit(Bo, {
2865
2888
  storyId: u,
2866
2889
  updatedArgs: f,
2867
2890
  options: { target: h }
@@ -2869,7 +2892,7 @@ var Do = /* @__PURE__ */ o(({
2869
2892
  }, "updateStoryArgs"),
2870
2893
  resetStoryArgs: /* @__PURE__ */ o((d, f) => {
2871
2894
  let { id: u, refId: h } = d;
2872
- a.channel?.emit(Eo, {
2895
+ a.channel?.emit(Io, {
2873
2896
  storyId: u,
2874
2897
  argNames: f,
2875
2898
  options: { target: h }
@@ -2877,12 +2900,12 @@ var Do = /* @__PURE__ */ o(({
2877
2900
  }, "resetStoryArgs"),
2878
2901
  fetchIndex: /* @__PURE__ */ o(async () => {
2879
2902
  try {
2880
- let d = await No(Vo);
2903
+ let d = await Vo(ko);
2881
2904
  if (d.status !== 200)
2882
2905
  throw new Error(await d.text());
2883
2906
  let f = await d.json();
2884
2907
  if (f.v < 3) {
2885
- go.warn(`Skipping story index with version v${f.v}, awaiting SET_STORIES.`);
2908
+ yo.warn(`Skipping story index with version v${f.v}, awaiting SET_STORIES.`);
2886
2909
  return;
2887
2910
  }
2888
2911
  await l.setIndex(f);
@@ -2967,11 +2990,11 @@ var Do = /* @__PURE__ */ o(({
2967
2990
  let h = await e.getRefs();
2968
2991
  Object.entries(h).forEach(([p, { internal_index: m, ...v }]) => {
2969
2992
  e.setRef(p, { ...v, storyIndex: m }, !0);
2970
- }), a.channel?.emit(bo, { id: d });
2993
+ }), a.channel?.emit(_o, { id: d });
2971
2994
  }, "experimental_setFilter")
2972
2995
  };
2973
2996
  a.channel?.on(
2974
- Lo,
2997
+ Ho,
2975
2998
  /* @__PURE__ */ o(function({
2976
2999
  storyId: f,
2977
3000
  viewMode: u
@@ -2980,23 +3003,23 @@ var Do = /* @__PURE__ */ o(({
2980
3003
  if (h === "local") {
2981
3004
  let p = t.getState(), m = p.path === "/" || p.viewMode === "story" || p.viewMode === "docs", v = p.viewMode && p.storyId, g = p.viewMode !==
2982
3005
  u || p.storyId !== f, { type: y } = p.index?.[p.storyId] || {};
2983
- m && (v && g && !(y === "root" || y === "component" || y === "group") ? a.channel?.emit(Ao, {
3006
+ m && (v && g && !(y === "root" || y === "component" || y === "group") ? a.channel?.emit(bo, {
2984
3007
  storyId: p.storyId,
2985
3008
  viewMode: p.viewMode
2986
3009
  }) : g && r(`/${u}/${f}`));
2987
3010
  }
2988
3011
  }, "handler")
2989
- ), a.channel?.on(wo, /* @__PURE__ */ o(function() {
3012
+ ), a.channel?.on(Ro, /* @__PURE__ */ o(function() {
2990
3013
  let { ref: f } = z(this, e);
2991
3014
  l.setPreviewInitialized(f);
2992
- }, "handler")), a.channel?.on(Co, /* @__PURE__ */ o(function() {
3015
+ }, "handler")), a.channel?.on(To, /* @__PURE__ */ o(function() {
2993
3016
  let { sourceType: f } = z(this, e);
2994
3017
  if (f === "local") {
2995
3018
  let u = l.getCurrentParameter("options");
2996
3019
  u && e.setOptions(ir(u));
2997
3020
  }
2998
3021
  }, "handler")), a.channel?.on(
2999
- zo,
3022
+ Lo,
3000
3023
  /* @__PURE__ */ o(function({ id: f, ...u }) {
3001
3024
  let { ref: h, sourceType: p } = z(this, e);
3002
3025
  if (l.updateStory(f, { ...u, prepared: !0 }, h), !h && !t.getState().hasCalledSetOptions) {
@@ -3013,19 +3036,19 @@ var Do = /* @__PURE__ */ o(({
3013
3036
  l.findSiblingStoryId(m, v, -1, !0)
3014
3037
  ])
3015
3038
  ).filter(Boolean);
3016
- a.channel?.emit(So, {
3039
+ a.channel?.emit(Eo, {
3017
3040
  ids: y,
3018
3041
  options: { target: g }
3019
3042
  });
3020
3043
  }
3021
3044
  }, "handler")
3022
3045
  ), a.channel?.on(
3023
- Ro,
3046
+ So,
3024
3047
  /* @__PURE__ */ o(function({ id: f, ...u }) {
3025
3048
  let { ref: h } = z(this, e);
3026
3049
  l.updateStory(f, { ...u, prepared: !0 }, h);
3027
3050
  }, "handler")
3028
- ), a.channel?.on(_o, /* @__PURE__ */ o(function(f) {
3051
+ ), a.channel?.on(Po, /* @__PURE__ */ o(function(f) {
3029
3052
  let { ref: u } = z(this, e);
3030
3053
  if (u)
3031
3054
  e.setRef(u.id, { ...u, storyIndex: f }, !0);
@@ -3034,14 +3057,14 @@ var Do = /* @__PURE__ */ o(({
3034
3057
  let h = l.getCurrentParameter("options");
3035
3058
  e.setOptions(ir(h));
3036
3059
  }
3037
- }, "handler")), a.channel?.on(Po, /* @__PURE__ */ o(function(f) {
3060
+ }, "handler")), a.channel?.on(Mo, /* @__PURE__ */ o(function(f) {
3038
3061
  let { ref: u } = z(this, e), h = f.v ? e0(f) : f.stories;
3039
3062
  if (u)
3040
3063
  e.setRef(u.id, { ...u, setStoriesData: h }, !0);
3041
3064
  else
3042
3065
  throw new Error("Cannot call SET_STORIES for local frame");
3043
3066
  }, "handler")), a.channel?.on(
3044
- Io,
3067
+ xo,
3045
3068
  /* @__PURE__ */ o(function({
3046
3069
  kind: f,
3047
3070
  title: u = f,
@@ -3054,18 +3077,18 @@ var Do = /* @__PURE__ */ o(({
3054
3077
  g ? e.selectStory(m || u, p, { ...v, ref: g.id }) : e.selectStory(m || u, p, v);
3055
3078
  }, "handler")
3056
3079
  ), a.channel?.on(
3057
- Mo,
3080
+ Co,
3058
3081
  /* @__PURE__ */ o(function({ storyId: f, args: u }) {
3059
3082
  let { ref: h } = z(this, e);
3060
3083
  l.updateStory(f, { args: u }, h);
3061
3084
  }, "handleStoryArgsUpdated")
3062
- ), a.channel?.on(yo, /* @__PURE__ */ o(function(f) {
3085
+ ), a.channel?.on(wo, /* @__PURE__ */ o(function(f) {
3063
3086
  let { ref: u } = z(this, e);
3064
3087
  l.setPreviewInitialized(u);
3065
- }, "handleConfigError")), a.channel?.on(Oo, /* @__PURE__ */ o(function(f) {
3088
+ }, "handleConfigError")), a.channel?.on(zo, /* @__PURE__ */ o(function(f) {
3066
3089
  let { ref: u } = z(this, e);
3067
3090
  l.setPreviewInitialized(u);
3068
- }, "handleConfigError")), a.channel?.on(xo, () => {
3091
+ }, "handleConfigError")), a.channel?.on(Ao, () => {
3069
3092
  let d = a.getConfig();
3070
3093
  d?.sidebar?.filters && t.setState({
3071
3094
  filters: {
@@ -3094,31 +3117,31 @@ var Do = /* @__PURE__ */ o(({
3094
3117
  filters: c?.sidebar?.filters || {}
3095
3118
  },
3096
3119
  init: /* @__PURE__ */ o(async () => {
3097
- a.channel?.on(To, () => l.fetchIndex()), await l.fetchIndex();
3120
+ a.channel?.on(Oo, () => l.fetchIndex()), await l.fetchIndex();
3098
3121
  }, "init")
3099
3122
  };
3100
3123
  }, "init");
3101
3124
 
3102
3125
  // src/manager-api/modules/url.ts
3103
3126
  var dr = {};
3104
- B(dr, {
3105
- init: () => Yo
3127
+ N(dr, {
3128
+ init: () => Jo
3106
3129
  });
3107
3130
  import {
3108
- GLOBALS_UPDATED as jo,
3109
- NAVIGATE_URL as Uo,
3110
- SET_CURRENT_STORY as Fo,
3111
- STORY_ARGS_UPDATED as Go,
3112
- UPDATE_QUERY_PARAMS as Wo
3131
+ GLOBALS_UPDATED as Uo,
3132
+ NAVIGATE_URL as Fo,
3133
+ SET_CURRENT_STORY as Go,
3134
+ STORY_ARGS_UPDATED as Wo,
3135
+ UPDATE_QUERY_PARAMS as $o
3113
3136
  } from "storybook/internal/core-events";
3114
- import { buildArgsParam as w0, queryFromLocation as $o } from "storybook/internal/router";
3115
- import { global as Ko } from "@storybook/global";
3116
- var { window: lr } = Ko, ee = /* @__PURE__ */ o((e) => {
3137
+ import { buildArgsParam as R0, queryFromLocation as Ko } from "storybook/internal/router";
3138
+ import { global as qo } from "@storybook/global";
3139
+ var { window: lr } = qo, ee = /* @__PURE__ */ o((e) => {
3117
3140
  if (e === "true" || e === "1")
3118
3141
  return !0;
3119
3142
  if (e === "false" || e === "0")
3120
3143
  return !1;
3121
- }, "parseBoolean"), cr, qo = /* @__PURE__ */ o(({
3144
+ }, "parseBoolean"), cr, Yo = /* @__PURE__ */ o(({
3122
3145
  state: { location: e, path: t, viewMode: r, storyId: a },
3123
3146
  singleStory: n
3124
3147
  }) => {
@@ -3132,9 +3155,9 @@ var { window: lr } = Ko, ee = /* @__PURE__ */ o((e) => {
3132
3155
  path: u,
3133
3156
  ...h
3134
3157
  // the rest gets passed to the iframe
3135
- } = $o(e), p, m, v;
3136
- ee(s) === !0 ? (p = 0, m = 0, v = 0) : ee(s) === !1 && (p = N.layout.navSize, m = N.layout.bottomPanelHeight, v = N.layout.rightPanelWidth),
3137
- n || (ee(l) === !0 && (p = N.layout.navSize), ee(l) === !1 && (p = 0)), ee(i) === !1 && (m = 0, v = 0);
3158
+ } = Ko(e), p, m, v;
3159
+ ee(s) === !0 ? (p = 0, m = 0, v = 0) : ee(s) === !1 && (p = B.layout.navSize, m = B.layout.bottomPanelHeight, v = B.layout.rightPanelWidth),
3160
+ n || (ee(l) === !0 && (p = B.layout.navSize), ee(l) === !1 && (p = 0)), ee(i) === !1 && (m = 0, v = 0);
3138
3161
  let g = {
3139
3162
  navSize: p,
3140
3163
  bottomPanelHeight: m,
@@ -3145,7 +3168,7 @@ var { window: lr } = Ko, ee = /* @__PURE__ */ o((e) => {
3145
3168
  enableShortcuts: ee(c)
3146
3169
  }, w = d || void 0, S = a, E = V(cr, h) ? cr : h;
3147
3170
  return cr = E, { viewMode: r, layout: g, ui: y, selectedPanel: w, location: e, path: t, customQueryParams: E, storyId: S };
3148
- }, "initialUrlSupport"), Yo = /* @__PURE__ */ o((e) => {
3171
+ }, "initialUrlSupport"), Jo = /* @__PURE__ */ o((e) => {
3149
3172
  let { store: t, navigate: r, provider: a, fullAPI: n } = e, s = /* @__PURE__ */ o((d, f = {}, u = {}) => {
3150
3173
  let h = Object.entries(f).filter(([, m]) => m).sort(([m], [v]) => m < v ? -1 : 1).map(([m, v]) => `${m}=${v}`), p = [d, ...h].join("&");
3151
3174
  return r(p, u);
@@ -3170,7 +3193,7 @@ var { window: lr } = Ko, ee = /* @__PURE__ */ o((e) => {
3170
3193
  ...f,
3171
3194
  ...Object.entries(d).reduce((p, [m, v]) => (v !== null && (p[m] = v), p), u)
3172
3195
  };
3173
- V(f, h) || (t.setState({ customQueryParams: h }), a.channel?.emit(Wo, h));
3196
+ V(f, h) || (t.setState({ customQueryParams: h }), a.channel?.emit($o, h));
3174
3197
  },
3175
3198
  applyQueryParams(d, f) {
3176
3199
  let { path: u, hash: h = "", queryParams: p } = i.getUrlState();
@@ -3186,51 +3209,51 @@ var { window: lr } = Ko, ee = /* @__PURE__ */ o((e) => {
3186
3209
  let p = n.getCurrentStoryData();
3187
3210
  if (p?.type !== "story")
3188
3211
  return;
3189
- let { args: m, initialArgs: v } = p, g = w0(v, m);
3212
+ let { args: m, initialArgs: v } = p, g = R0(v, m);
3190
3213
  s(`${d}${f}`, { ...u, args: g }, { replace: !0 }), i.setQueryParams({ args: g });
3191
3214
  }, "updateArgsParam");
3192
- a.channel?.on(Fo, () => l());
3215
+ a.channel?.on(Go, () => l());
3193
3216
  let c;
3194
- return a.channel?.on(Go, () => {
3217
+ return a.channel?.on(Wo, () => {
3195
3218
  "requestIdleCallback" in lr ? (c && lr.cancelIdleCallback(c), c = lr.requestIdleCallback(l, { timeout: 1e3 })) : (c && clearTimeout(c), setTimeout(
3196
3219
  l, 100));
3197
- }), a.channel?.on(jo, ({ userGlobals: d, initialGlobals: f }) => {
3198
- let { path: u, hash: h = "", queryParams: p } = i.getUrlState(), m = w0(f, d);
3220
+ }), a.channel?.on(Uo, ({ userGlobals: d, initialGlobals: f }) => {
3221
+ let { path: u, hash: h = "", queryParams: p } = i.getUrlState(), m = R0(f, d);
3199
3222
  s(`${u}${h}`, { ...p, globals: m }, { replace: !0 }), i.setQueryParams({ globals: m });
3200
- }), a.channel?.on(Uo, (d, f) => {
3223
+ }), a.channel?.on(Fo, (d, f) => {
3201
3224
  i.navigateUrl(d, f);
3202
3225
  }), {
3203
3226
  api: i,
3204
- state: qo(e)
3227
+ state: Yo(e)
3205
3228
  };
3206
3229
  }, "init");
3207
3230
 
3208
3231
  // src/manager-api/modules/versions.ts
3209
3232
  var ur = {};
3210
- B(ur, {
3211
- init: () => Qo
3233
+ N(ur, {
3234
+ init: () => Zo
3212
3235
  });
3213
- var E0 = _t(kt(), 1);
3236
+ var I0 = _t(kt(), 1);
3214
3237
  import { global as fr } from "@storybook/global";
3215
3238
  import j from "semver";
3216
3239
 
3217
3240
  // src/manager-api/version.ts
3218
- var R0 = "9.0.0-beta.6";
3241
+ var S0 = "9.0.0-beta.8";
3219
3242
 
3220
3243
  // src/manager-api/modules/versions.ts
3221
- var { VERSIONCHECK: Jo } = fr, S0 = (0, E0.default)(1)(() => {
3244
+ var { VERSIONCHECK: Xo } = fr, E0 = (0, I0.default)(1)(() => {
3222
3245
  try {
3223
- return { ...JSON.parse(Jo).data || {} };
3246
+ return { ...JSON.parse(Xo).data || {} };
3224
3247
  } catch {
3225
3248
  return {};
3226
3249
  }
3227
- }), Xo = /* @__PURE__ */ o((e) => e.includes("vue") ? "vue" : e, "normalizeRendererName"), Qo = /* @__PURE__ */ o(({ store: e }) => {
3250
+ }), Qo = /* @__PURE__ */ o((e) => e.includes("vue") ? "vue" : e, "normalizeRendererName"), Zo = /* @__PURE__ */ o(({ store: e }) => {
3228
3251
  let { dismissedVersionNotification: t } = e.getState(), r = {
3229
3252
  versions: {
3230
3253
  current: {
3231
- version: R0
3254
+ version: S0
3232
3255
  },
3233
- ...S0()
3256
+ ...E0()
3234
3257
  },
3235
3258
  dismissedVersionNotification: t
3236
3259
  }, a = {
@@ -3259,7 +3282,7 @@ var { VERSIONCHECK: Jo } = fr, S0 = (0, E0.default)(1)(() => {
3259
3282
  let [u, h] = s?.split("#") || [];
3260
3283
  if (u && (f += `${u}/`), l && typeof fr.STORYBOOK_RENDERER < "u") {
3261
3284
  let p = fr.STORYBOOK_RENDERER;
3262
- p && (f += `?renderer=${Xo(p)}`);
3285
+ p && (f += `?renderer=${Qo(p)}`);
3263
3286
  }
3264
3287
  return h && (f += `#${h}`), f;
3265
3288
  }, "getDocsUrl"),
@@ -3277,7 +3300,7 @@ var { VERSIONCHECK: Jo } = fr, S0 = (0, E0.default)(1)(() => {
3277
3300
  }, "versionUpdateAvailable")
3278
3301
  };
3279
3302
  return { init: /* @__PURE__ */ o(async () => {
3280
- let { versions: s = {} } = e.getState(), { latest: i, next: l } = S0();
3303
+ let { versions: s = {} } = e.getState(), { latest: i, next: l } = E0();
3281
3304
  await e.setState({
3282
3305
  versions: { ...s, latest: i, next: l }
3283
3306
  });
@@ -3286,21 +3309,21 @@ var { VERSIONCHECK: Jo } = fr, S0 = (0, E0.default)(1)(() => {
3286
3309
 
3287
3310
  // src/manager-api/modules/whatsnew.tsx
3288
3311
  var hr = {};
3289
- B(hr, {
3290
- init: () => nn
3312
+ N(hr, {
3313
+ init: () => sn
3291
3314
  });
3292
- import Zo from "react";
3315
+ import en from "react";
3293
3316
  import {
3294
- REQUEST_WHATS_NEW_DATA as en,
3295
- RESULT_WHATS_NEW_DATA as tn,
3296
- SET_WHATS_NEW_CACHE as rn,
3297
- TOGGLE_WHATS_NEW_NOTIFICATIONS as an
3317
+ REQUEST_WHATS_NEW_DATA as tn,
3318
+ RESULT_WHATS_NEW_DATA as rn,
3319
+ SET_WHATS_NEW_CACHE as an,
3320
+ TOGGLE_WHATS_NEW_NOTIFICATIONS as on
3298
3321
  } from "storybook/internal/core-events";
3299
- import { global as on } from "@storybook/global";
3322
+ import { global as nn } from "@storybook/global";
3300
3323
 
3301
3324
  // ../node_modules/@storybook/icons/dist/index.mjs
3302
3325
  import * as Me from "react";
3303
- var I0 = /* @__PURE__ */ Me.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, a) => /* @__PURE__ */ Me.createElement(
3326
+ var x0 = /* @__PURE__ */ Me.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, a) => /* @__PURE__ */ Me.createElement(
3304
3327
  "svg",
3305
3328
  {
3306
3329
  width: t,
@@ -3327,7 +3350,7 @@ var I0 = /* @__PURE__ */ Me.forwardRef(({ color: e = "currentColor", size: t = 1
3327
3350
  ));
3328
3351
 
3329
3352
  // src/manager-api/modules/whatsnew.tsx
3330
- var x0 = "whats-new", nn = /* @__PURE__ */ o(({ fullAPI: e, store: t, provider: r }) => {
3353
+ var A0 = "whats-new", sn = /* @__PURE__ */ o(({ fullAPI: e, store: t, provider: r }) => {
3331
3354
  let a = {
3332
3355
  whatsNewData: void 0
3333
3356
  };
@@ -3341,44 +3364,44 @@ var x0 = "whats-new", nn = /* @__PURE__ */ o(({ fullAPI: e, store: t, provider:
3341
3364
  },
3342
3365
  whatsNewHasBeenRead() {
3343
3366
  a.whatsNewData?.status === "SUCCESS" && (l({ lastReadPost: a.whatsNewData.url }), n({ ...a.whatsNewData, postIsRead: !0 }), e.clearNotification(
3344
- x0));
3367
+ A0));
3345
3368
  },
3346
3369
  toggleWhatsNewNotifications() {
3347
3370
  a.whatsNewData?.status === "SUCCESS" && (n({
3348
3371
  ...a.whatsNewData,
3349
3372
  disableWhatsNewNotifications: !a.whatsNewData.disableWhatsNewNotifications
3350
- }), r.channel?.emit(an, {
3373
+ }), r.channel?.emit(on, {
3351
3374
  disableWhatsNewNotifications: a.whatsNewData.disableWhatsNewNotifications
3352
3375
  }));
3353
3376
  }
3354
3377
  };
3355
3378
  function i() {
3356
- return r.channel?.emit(en), new Promise(
3379
+ return r.channel?.emit(tn), new Promise(
3357
3380
  (d) => r.channel?.once(
3358
- tn,
3381
+ rn,
3359
3382
  ({ data: f }) => d(f)
3360
3383
  )
3361
3384
  );
3362
3385
  }
3363
3386
  o(i, "getLatestWhatsNewPost");
3364
3387
  function l(d) {
3365
- r.channel?.emit(rn, d);
3388
+ r.channel?.emit(an, d);
3366
3389
  }
3367
3390
  return o(l, "setWhatsNewCache"), { init: /* @__PURE__ */ o(async () => {
3368
- if (on.CONFIG_TYPE !== "DEVELOPMENT")
3391
+ if (nn.CONFIG_TYPE !== "DEVELOPMENT")
3369
3392
  return;
3370
3393
  let d = await i();
3371
3394
  n(d);
3372
3395
  let f = e.getUrlState();
3373
3396
  !(f?.path === "/onboarding" || f.queryParams?.onboarding === "true") && d.status === "SUCCESS" && !d.disableWhatsNewNotifications && d.showNotification &&
3374
3397
  e.addNotification({
3375
- id: x0,
3398
+ id: A0,
3376
3399
  link: "/settings/whats-new",
3377
3400
  content: {
3378
3401
  headline: d.title,
3379
3402
  subHeadline: "Learn what's new in Storybook"
3380
3403
  },
3381
- icon: /* @__PURE__ */ Zo.createElement(I0, null),
3404
+ icon: /* @__PURE__ */ en.createElement(x0, null),
3382
3405
  onClear({ dismissed: h }) {
3383
3406
  h && l({ lastDismissedPost: d.url });
3384
3407
  }
@@ -3387,25 +3410,25 @@ var x0 = "whats-new", nn = /* @__PURE__ */ o(({ fullAPI: e, store: t, provider:
3387
3410
  }, "init");
3388
3411
 
3389
3412
  // src/manager-api/store.ts
3390
- var he = _t(A0(), 1);
3413
+ var he = _t(b0(), 1);
3391
3414
 
3392
3415
  // ../node_modules/telejson/dist/chunk-EAFQLD22.mjs
3393
- var sn = Object.create, b0 = Object.defineProperty, ln = Object.getOwnPropertyDescriptor, _0 = Object.getOwnPropertyNames, cn = Object.getPrototypeOf,
3394
- dn = Object.prototype.hasOwnProperty, R = /* @__PURE__ */ o((e, t) => /* @__PURE__ */ o(function() {
3395
- return t || (0, e[_0(e)[0]])((t = { exports: {} }).exports, t), t.exports;
3396
- }, "__require"), "__commonJS"), fn = /* @__PURE__ */ o((e, t, r, a) => {
3416
+ var ln = Object.create, _0 = Object.defineProperty, cn = Object.getOwnPropertyDescriptor, P0 = Object.getOwnPropertyNames, dn = Object.getPrototypeOf,
3417
+ fn = Object.prototype.hasOwnProperty, R = /* @__PURE__ */ o((e, t) => /* @__PURE__ */ o(function() {
3418
+ return t || (0, e[P0(e)[0]])((t = { exports: {} }).exports, t), t.exports;
3419
+ }, "__require"), "__commonJS"), un = /* @__PURE__ */ o((e, t, r, a) => {
3397
3420
  if (t && typeof t == "object" || typeof t == "function")
3398
- for (let n of _0(t))
3399
- !dn.call(e, n) && n !== r && b0(e, n, { get: /* @__PURE__ */ o(() => t[n], "get"), enumerable: !(a = ln(t, n)) || a.enumerable });
3421
+ for (let n of P0(t))
3422
+ !fn.call(e, n) && n !== r && _0(e, n, { get: /* @__PURE__ */ o(() => t[n], "get"), enumerable: !(a = cn(t, n)) || a.enumerable });
3400
3423
  return e;
3401
- }, "__copyProps"), wt = /* @__PURE__ */ o((e, t, r) => (r = e != null ? sn(cn(e)) : {}, fn(
3424
+ }, "__copyProps"), wt = /* @__PURE__ */ o((e, t, r) => (r = e != null ? ln(dn(e)) : {}, un(
3402
3425
  // If the importer is in node compatibility mode or this is not an ESM
3403
3426
  // file that has been converted to a CommonJS file using a Babel-
3404
3427
  // compatible transform (i.e. "__esModule" has not been set), then set
3405
3428
  // "default" to the CommonJS "module.exports" for node compatibility.
3406
- t || !e || !e.__esModule ? b0(r, "default", { value: e, enumerable: !0 }) : r,
3429
+ t || !e || !e.__esModule ? _0(r, "default", { value: e, enumerable: !0 }) : r,
3407
3430
  e
3408
- )), "__toESM"), un = [
3431
+ )), "__toESM"), hn = [
3409
3432
  "bubbles",
3410
3433
  "cancelBubble",
3411
3434
  "cancelable",
@@ -3419,45 +3442,45 @@ dn = Object.prototype.hasOwnProperty, R = /* @__PURE__ */ o((e, t) => /* @__PURE
3419
3442
  "target",
3420
3443
  "timeStamp",
3421
3444
  "type"
3422
- ], hn = ["detail"];
3423
- function P0(e) {
3424
- let t = un.filter((r) => e[r] !== void 0).reduce((r, a) => (r[a] = e[a], r), {});
3445
+ ], pn = ["detail"];
3446
+ function M0(e) {
3447
+ let t = hn.filter((r) => e[r] !== void 0).reduce((r, a) => (r[a] = e[a], r), {});
3425
3448
  if (e instanceof CustomEvent)
3426
- for (let r of hn.filter(
3449
+ for (let r of pn.filter(
3427
3450
  (a) => e[a] !== void 0
3428
3451
  ))
3429
3452
  t[r] = e[r];
3430
3453
  return t;
3431
3454
  }
3432
- o(P0, "extractEventHiddenProperties");
3455
+ o(M0, "extractEventHiddenProperties");
3433
3456
 
3434
3457
  // ../node_modules/telejson/dist/index.mjs
3435
- var L0 = R({
3458
+ var H0 = R({
3436
3459
  "node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e, t) {
3437
3460
  "use strict";
3438
3461
  t.exports = Object;
3439
3462
  }
3440
- }), pn = R({
3463
+ }), mn = R({
3441
3464
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e, t) {
3442
3465
  "use strict";
3443
3466
  t.exports = Error;
3444
3467
  }
3445
- }), mn = R({
3468
+ }), vn = R({
3446
3469
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e, t) {
3447
3470
  "use strict";
3448
3471
  t.exports = EvalError;
3449
3472
  }
3450
- }), vn = R({
3473
+ }), gn = R({
3451
3474
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e, t) {
3452
3475
  "use strict";
3453
3476
  t.exports = RangeError;
3454
3477
  }
3455
- }), gn = R({
3478
+ }), yn = R({
3456
3479
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e, t) {
3457
3480
  "use strict";
3458
3481
  t.exports = ReferenceError;
3459
3482
  }
3460
- }), yn = R({
3483
+ }), wn = R({
3461
3484
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e, t) {
3462
3485
  "use strict";
3463
3486
  t.exports = SyntaxError;
@@ -3467,57 +3490,57 @@ var L0 = R({
3467
3490
  "use strict";
3468
3491
  t.exports = TypeError;
3469
3492
  }
3470
- }), wn = R({
3493
+ }), Rn = R({
3471
3494
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e, t) {
3472
3495
  "use strict";
3473
3496
  t.exports = URIError;
3474
3497
  }
3475
- }), Rn = R({
3498
+ }), Sn = R({
3476
3499
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e, t) {
3477
3500
  "use strict";
3478
3501
  t.exports = Math.abs;
3479
3502
  }
3480
- }), Sn = R({
3503
+ }), En = R({
3481
3504
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e, t) {
3482
3505
  "use strict";
3483
3506
  t.exports = Math.floor;
3484
3507
  }
3485
- }), En = R({
3508
+ }), In = R({
3486
3509
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e, t) {
3487
3510
  "use strict";
3488
3511
  t.exports = Math.max;
3489
3512
  }
3490
- }), In = R({
3513
+ }), xn = R({
3491
3514
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e, t) {
3492
3515
  "use strict";
3493
3516
  t.exports = Math.min;
3494
3517
  }
3495
- }), xn = R({
3518
+ }), An = R({
3496
3519
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e, t) {
3497
3520
  "use strict";
3498
3521
  t.exports = Math.pow;
3499
3522
  }
3500
- }), An = R({
3523
+ }), bn = R({
3501
3524
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e, t) {
3502
3525
  "use strict";
3503
3526
  t.exports = Math.round;
3504
3527
  }
3505
- }), bn = R({
3528
+ }), _n = R({
3506
3529
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e, t) {
3507
3530
  "use strict";
3508
3531
  t.exports = Number.isNaN || /* @__PURE__ */ o(function(a) {
3509
3532
  return a !== a;
3510
3533
  }, "isNaN2");
3511
3534
  }
3512
- }), _n = R({
3535
+ }), Pn = R({
3513
3536
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e, t) {
3514
3537
  "use strict";
3515
- var r = bn();
3538
+ var r = _n();
3516
3539
  t.exports = /* @__PURE__ */ o(function(n) {
3517
3540
  return r(n) || n === 0 ? n : n < 0 ? -1 : 1;
3518
3541
  }, "sign");
3519
3542
  }
3520
- }), Pn = R({
3543
+ }), Mn = R({
3521
3544
  "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e, t) {
3522
3545
  "use strict";
3523
3546
  t.exports = Object.getOwnPropertyDescriptor;
@@ -3525,7 +3548,7 @@ var L0 = R({
3525
3548
  }), vr = R({
3526
3549
  "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e, t) {
3527
3550
  "use strict";
3528
- var r = Pn();
3551
+ var r = Mn();
3529
3552
  if (r)
3530
3553
  try {
3531
3554
  r([], "length");
@@ -3534,7 +3557,7 @@ var L0 = R({
3534
3557
  }
3535
3558
  t.exports = r;
3536
3559
  }
3537
- }), Mn = R({
3560
+ }), Cn = R({
3538
3561
  "node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e, t) {
3539
3562
  "use strict";
3540
3563
  var r = Object.defineProperty || !1;
@@ -3546,7 +3569,7 @@ var L0 = R({
3546
3569
  }
3547
3570
  t.exports = r;
3548
3571
  }
3549
- }), H0 = R({
3572
+ }), B0 = R({
3550
3573
  "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e, t) {
3551
3574
  "use strict";
3552
3575
  t.exports = /* @__PURE__ */ o(function() {
@@ -3579,27 +3602,27 @@ Symbol]")
3579
3602
  return !0;
3580
3603
  }, "hasSymbols");
3581
3604
  }
3582
- }), B0 = R({
3605
+ }), N0 = R({
3583
3606
  "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e, t) {
3584
3607
  "use strict";
3585
- var r = typeof Symbol < "u" && Symbol, a = H0();
3608
+ var r = typeof Symbol < "u" && Symbol, a = B0();
3586
3609
  t.exports = /* @__PURE__ */ o(function() {
3587
3610
  return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
3588
3611
  a();
3589
3612
  }, "hasNativeSymbols");
3590
3613
  }
3591
- }), N0 = R({
3614
+ }), V0 = R({
3592
3615
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e, t) {
3593
3616
  "use strict";
3594
3617
  t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
3595
3618
  }
3596
- }), V0 = R({
3619
+ }), k0 = R({
3597
3620
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e, t) {
3598
3621
  "use strict";
3599
- var r = L0();
3622
+ var r = H0();
3600
3623
  t.exports = r.getPrototypeOf || null;
3601
3624
  }
3602
- }), Cn = R({
3625
+ }), Tn = R({
3603
3626
  "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e, t) {
3604
3627
  "use strict";
3605
3628
  var r = "Function.prototype.bind called on incompatible ", a = Object.prototype.toString, n = Math.max, s = "[object Function]", i = /* @__PURE__ */ o(
@@ -3647,7 +3670,7 @@ Symbol]")
3647
3670
  }), Rt = R({
3648
3671
  "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e, t) {
3649
3672
  "use strict";
3650
- var r = Cn();
3673
+ var r = Tn();
3651
3674
  t.exports = Function.prototype.bind || r;
3652
3675
  }
3653
3676
  }), gr = R({
@@ -3655,36 +3678,36 @@ Symbol]")
3655
3678
  "use strict";
3656
3679
  t.exports = Function.prototype.call;
3657
3680
  }
3658
- }), k0 = R({
3681
+ }), D0 = R({
3659
3682
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e, t) {
3660
3683
  "use strict";
3661
3684
  t.exports = Function.prototype.apply;
3662
3685
  }
3663
- }), Tn = R({
3686
+ }), On = R({
3664
3687
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e, t) {
3665
3688
  "use strict";
3666
3689
  t.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
3667
3690
  }
3668
- }), On = R({
3691
+ }), zn = R({
3669
3692
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e, t) {
3670
3693
  "use strict";
3671
- var r = Rt(), a = k0(), n = gr(), s = Tn();
3694
+ var r = Rt(), a = D0(), n = gr(), s = On();
3672
3695
  t.exports = s || r.call(n, a);
3673
3696
  }
3674
- }), D0 = R({
3697
+ }), j0 = R({
3675
3698
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e, t) {
3676
3699
  "use strict";
3677
- var r = Rt(), a = mr(), n = gr(), s = On();
3700
+ var r = Rt(), a = mr(), n = gr(), s = zn();
3678
3701
  t.exports = /* @__PURE__ */ o(function(l) {
3679
3702
  if (l.length < 1 || typeof l[0] != "function")
3680
3703
  throw new a("a function is required");
3681
3704
  return s(r, n, l);
3682
3705
  }, "callBindBasic");
3683
3706
  }
3684
- }), zn = R({
3707
+ }), Ln = R({
3685
3708
  "node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e, t) {
3686
3709
  "use strict";
3687
- var r = D0(), a = vr(), n;
3710
+ var r = j0(), a = vr(), n;
3688
3711
  try {
3689
3712
  n = /** @type {{ __proto__?: typeof Array.prototype }} */
3690
3713
  [].__proto__ === Array.prototype;
@@ -3704,10 +3727,10 @@ Symbol]")
3704
3727
  }, "getDunder")
3705
3728
  ) : !1;
3706
3729
  }
3707
- }), Ln = R({
3730
+ }), Hn = R({
3708
3731
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e, t) {
3709
3732
  "use strict";
3710
- var r = N0(), a = V0(), n = zn();
3733
+ var r = V0(), a = k0(), n = Ln();
3711
3734
  t.exports = r ? /* @__PURE__ */ o(function(i) {
3712
3735
  return r(i);
3713
3736
  }, "getProto") : a ? /* @__PURE__ */ o(function(i) {
@@ -3718,22 +3741,22 @@ Symbol]")
3718
3741
  return n(i);
3719
3742
  }, "getProto") : null;
3720
3743
  }
3721
- }), j0 = R({
3744
+ }), U0 = R({
3722
3745
  "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e, t) {
3723
3746
  "use strict";
3724
3747
  var r = Function.prototype.call, a = Object.prototype.hasOwnProperty, n = Rt();
3725
3748
  t.exports = n.call(r, a);
3726
3749
  }
3727
- }), Hn = R({
3750
+ }), Bn = R({
3728
3751
  "node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e, t) {
3729
3752
  "use strict";
3730
- var r, a = L0(), n = pn(), s = mn(), i = vn(), l = gn(), c = yn(), d = mr(), f = wn(), u = Rn(), h = Sn(), p = En(), m = In(), v = xn(),
3731
- g = An(), y = _n(), w = Function, S = /* @__PURE__ */ o(function(U) {
3753
+ var r, a = H0(), n = mn(), s = vn(), i = gn(), l = yn(), c = wn(), d = mr(), f = Rn(), u = Sn(), h = En(), p = In(), m = xn(), v = An(),
3754
+ g = bn(), y = Pn(), w = Function, S = /* @__PURE__ */ o(function(U) {
3732
3755
  try {
3733
3756
  return w('"use strict"; return (' + U + ").constructor;")();
3734
3757
  } catch {
3735
3758
  }
3736
- }, "getEvalledConstructor"), E = vr(), x = Mn(), I = /* @__PURE__ */ o(function() {
3759
+ }, "getEvalledConstructor"), E = vr(), x = Cn(), I = /* @__PURE__ */ o(function() {
3737
3760
  throw new d();
3738
3761
  }, "throwTypeError"), P = E ? function() {
3739
3762
  try {
@@ -3745,7 +3768,7 @@ Symbol]")
3745
3768
  return I;
3746
3769
  }
3747
3770
  }
3748
- }() : I, C = B0()(), A = Ln(), me = V0(), la = N0(), Pr = k0(), ve = gr(), te = {}, ca = typeof Uint8Array > "u" || !A ? r : A(Uint8Array),
3771
+ }() : I, C = N0()(), A = Hn(), me = k0(), ca = V0(), Pr = D0(), ve = gr(), te = {}, da = typeof Uint8Array > "u" || !A ? r : A(Uint8Array),
3749
3772
  J = {
3750
3773
  __proto__: null,
3751
3774
  "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
@@ -3807,7 +3830,7 @@ Symbol]")
3807
3830
  "%Symbol%": C ? Symbol : r,
3808
3831
  "%SyntaxError%": c,
3809
3832
  "%ThrowTypeError%": P,
3810
- "%TypedArray%": ca,
3833
+ "%TypedArray%": da,
3811
3834
  "%TypeError%": d,
3812
3835
  "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
3813
3836
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
@@ -3828,7 +3851,7 @@ Symbol]")
3828
3851
  "%Math.pow%": v,
3829
3852
  "%Math.round%": g,
3830
3853
  "%Math.sign%": y,
3831
- "%Reflect.getPrototypeOf%": la
3854
+ "%Reflect.getPrototypeOf%": ca
3832
3855
  };
3833
3856
  if (A)
3834
3857
  try {
@@ -3836,7 +3859,7 @@ Symbol]")
3836
3859
  } catch (U) {
3837
3860
  Mr = A(A(U)), J["%Error.prototype%"] = Mr;
3838
3861
  }
3839
- var Mr, da = /* @__PURE__ */ o(function U(b) {
3862
+ var Mr, fa = /* @__PURE__ */ o(function U(b) {
3840
3863
  var M;
3841
3864
  if (b === "%AsyncFunction%")
3842
3865
  M = S("async function () {}");
@@ -3905,23 +3928,23 @@ Symbol]")
3905
3928
  "%URIErrorPrototype%": ["URIError", "prototype"],
3906
3929
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3907
3930
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3908
- }, ge = Rt(), Le = j0(), fa = ge.call(ve, Array.prototype.concat), ua = ge.call(Pr, Array.prototype.splice), Tr = ge.call(ve, String.prototype.
3909
- replace), He = ge.call(ve, String.prototype.slice), ha = ge.call(ve, RegExp.prototype.exec), pa = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
3910
- ma = /\\(\\)?/g, va = /* @__PURE__ */ o(function(b) {
3931
+ }, ge = Rt(), Le = U0(), ua = ge.call(ve, Array.prototype.concat), ha = ge.call(Pr, Array.prototype.splice), Tr = ge.call(ve, String.prototype.
3932
+ replace), He = ge.call(ve, String.prototype.slice), pa = ge.call(ve, RegExp.prototype.exec), ma = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
3933
+ va = /\\(\\)?/g, ga = /* @__PURE__ */ o(function(b) {
3911
3934
  var M = He(b, 0, 1), _ = He(b, -1);
3912
3935
  if (M === "%" && _ !== "%")
3913
3936
  throw new c("invalid intrinsic syntax, expected closing `%`");
3914
3937
  if (_ === "%" && M !== "%")
3915
3938
  throw new c("invalid intrinsic syntax, expected opening `%`");
3916
3939
  var T = [];
3917
- return Tr(b, pa, function(F, re, L, Be) {
3918
- T[T.length] = L ? Tr(Be, ma, "$1") : re || F;
3940
+ return Tr(b, ma, function(F, re, L, Be) {
3941
+ T[T.length] = L ? Tr(Be, va, "$1") : re || F;
3919
3942
  }), T;
3920
- }, "stringToPath3"), ga = /* @__PURE__ */ o(function(b, M) {
3943
+ }, "stringToPath3"), ya = /* @__PURE__ */ o(function(b, M) {
3921
3944
  var _ = b, T;
3922
3945
  if (Le(Cr, _) && (T = Cr[_], _ = "%" + T[0] + "%"), Le(J, _)) {
3923
3946
  var F = J[_];
3924
- if (F === te && (F = da(_)), typeof F > "u" && !M)
3947
+ if (F === te && (F = fa(_)), typeof F > "u" && !M)
3925
3948
  throw new d("intrinsic " + b + " exists, but is not available. Please file an issue!");
3926
3949
  return {
3927
3950
  alias: T,
@@ -3936,10 +3959,10 @@ Symbol]")
3936
3959
  throw new d("intrinsic name must be a non-empty string");
3937
3960
  if (arguments.length > 1 && typeof M != "boolean")
3938
3961
  throw new d('"allowMissing" argument must be a boolean');
3939
- if (ha(/^%?[^%]*%?$/, b) === null)
3962
+ if (pa(/^%?[^%]*%?$/, b) === null)
3940
3963
  throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3941
- var _ = va(b), T = _.length > 0 ? _[0] : "", F = ga("%" + T + "%", M), re = F.name, L = F.value, Be = !1, bt = F.alias;
3942
- bt && (T = bt[0], ua(_, fa([0, 1], bt)));
3964
+ var _ = ga(b), T = _.length > 0 ? _[0] : "", F = ya("%" + T + "%", M), re = F.name, L = F.value, Be = !1, bt = F.alias;
3965
+ bt && (T = bt[0], ha(_, ua([0, 1], bt)));
3943
3966
  for (var Ne = 1, ye = !0; Ne < _.length; Ne += 1) {
3944
3967
  var $ = _[Ne], Ve = He($, 0, 1), ke = He($, -1);
3945
3968
  if ((Ve === '"' || Ve === "'" || Ve === "`" || ke === '"' || ke === "'" || ke === "`") && Ve !== ke)
@@ -3966,7 +3989,7 @@ Symbol]")
3966
3989
  }), yr = R({
3967
3990
  "node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e, t) {
3968
3991
  "use strict";
3969
- var r = Hn(), a = D0(), n = a([r("%String.prototype.indexOf%")]);
3992
+ var r = Bn(), a = j0(), n = a([r("%String.prototype.indexOf%")]);
3970
3993
  t.exports = /* @__PURE__ */ o(function(i, l) {
3971
3994
  var c = (
3972
3995
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
@@ -3978,18 +4001,18 @@ Symbol]")
3978
4001
  ) : c;
3979
4002
  }, "callBoundIntrinsic");
3980
4003
  }
3981
- }), Bn = R({
4004
+ }), Nn = R({
3982
4005
  "node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e, t) {
3983
4006
  "use strict";
3984
- var r = H0();
4007
+ var r = B0();
3985
4008
  t.exports = /* @__PURE__ */ o(function() {
3986
4009
  return r() && !!Symbol.toStringTag;
3987
4010
  }, "hasToStringTagShams");
3988
4011
  }
3989
- }), U0 = R({
4012
+ }), F0 = R({
3990
4013
  "node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e, t) {
3991
4014
  "use strict";
3992
- var r = yr(), a = Bn()(), n = j0(), s = vr(), i;
4015
+ var r = yr(), a = Nn()(), n = U0(), s = vr(), i;
3993
4016
  a ? (l = r("RegExp.prototype.exec"), c = {}, d = /* @__PURE__ */ o(function() {
3994
4017
  throw c;
3995
4018
  }, "throwRegexMarker"), f = {
@@ -4024,7 +4047,7 @@ Symbol]")
4024
4047
  var l, c, d, f, u, h;
4025
4048
  t.exports = i;
4026
4049
  }
4027
- }), Nn = R({
4050
+ }), Vn = R({
4028
4051
  "node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e, t) {
4029
4052
  t.exports = a;
4030
4053
  var r = Object.prototype.toString;
@@ -4037,10 +4060,10 @@ Symbol]")
4037
4060
  }
4038
4061
  o(a, "isFunction3");
4039
4062
  }
4040
- }), Vn = R({
4063
+ }), kn = R({
4041
4064
  "node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e, t) {
4042
4065
  "use strict";
4043
- var r = yr(), a = U0(), n = r("RegExp.prototype.exec"), s = mr();
4066
+ var r = yr(), a = F0(), n = r("RegExp.prototype.exec"), s = mr();
4044
4067
  t.exports = /* @__PURE__ */ o(function(l) {
4045
4068
  if (!a(l))
4046
4069
  throw new s("`regex` must be a RegExp");
@@ -4049,10 +4072,10 @@ Symbol]")
4049
4072
  }, "test");
4050
4073
  }, "regexTester");
4051
4074
  }
4052
- }), kn = R({
4075
+ }), Dn = R({
4053
4076
  "node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e, t) {
4054
4077
  "use strict";
4055
- var r = yr(), a = r("Object.prototype.toString"), n = B0()(), s = Vn();
4078
+ var r = yr(), a = r("Object.prototype.toString"), n = N0()(), s = kn();
4056
4079
  n ? (i = r("Symbol.prototype.toString"), l = s(/^Symbol\(.*\)$/), c = /* @__PURE__ */ o(function(f) {
4057
4080
  return typeof f.valueOf() != "symbol" ? !1 : l(i(f));
4058
4081
  }, "isRealSymbolObject"), t.exports = /* @__PURE__ */ o(function(f) {
@@ -4070,91 +4093,91 @@ Symbol]")
4070
4093
  }, "isSymbol3");
4071
4094
  var i, l, c;
4072
4095
  }
4073
- }), Dn = wt(U0()), jn = wt(Nn()), Un = wt(kn());
4074
- function Fn(e) {
4096
+ }), jn = wt(F0()), Un = wt(Vn()), Fn = wt(Dn());
4097
+ function Gn(e) {
4075
4098
  return e != null && typeof e == "object" && Array.isArray(e) === !1;
4076
4099
  }
4077
- o(Fn, "isObject");
4078
- var Gn = typeof global == "object" && global && global.Object === Object && global, Wn = Gn, $n = typeof self == "object" && self && self.Object ===
4079
- Object && self, Kn = Wn || $n || Function("return this")(), wr = Kn, qn = wr.Symbol, ce = qn, F0 = Object.prototype, Yn = F0.hasOwnProperty,
4080
- Jn = F0.toString, Ce = ce ? ce.toStringTag : void 0;
4081
- function Xn(e) {
4082
- var t = Yn.call(e, Ce), r = e[Ce];
4100
+ o(Gn, "isObject");
4101
+ var Wn = typeof global == "object" && global && global.Object === Object && global, $n = Wn, Kn = typeof self == "object" && self && self.Object ===
4102
+ Object && self, qn = $n || Kn || Function("return this")(), wr = qn, Yn = wr.Symbol, ce = Yn, G0 = Object.prototype, Jn = G0.hasOwnProperty,
4103
+ Xn = G0.toString, Ce = ce ? ce.toStringTag : void 0;
4104
+ function Qn(e) {
4105
+ var t = Jn.call(e, Ce), r = e[Ce];
4083
4106
  try {
4084
4107
  e[Ce] = void 0;
4085
4108
  var a = !0;
4086
4109
  } catch {
4087
4110
  }
4088
- var n = Jn.call(e);
4111
+ var n = Xn.call(e);
4089
4112
  return a && (t ? e[Ce] = r : delete e[Ce]), n;
4090
4113
  }
4091
- o(Xn, "getRawTag");
4092
- var Qn = Xn, Zn = Object.prototype, e1 = Zn.toString;
4093
- function t1(e) {
4094
- return e1.call(e);
4095
- }
4096
- o(t1, "objectToString");
4097
- var r1 = t1, a1 = "[object Null]", o1 = "[object Undefined]", M0 = ce ? ce.toStringTag : void 0;
4098
- function n1(e) {
4099
- return e == null ? e === void 0 ? o1 : a1 : M0 && M0 in Object(e) ? Qn(e) : r1(e);
4114
+ o(Qn, "getRawTag");
4115
+ var Zn = Qn, e1 = Object.prototype, t1 = e1.toString;
4116
+ function r1(e) {
4117
+ return t1.call(e);
4100
4118
  }
4101
- o(n1, "baseGetTag");
4102
- var G0 = n1;
4119
+ o(r1, "objectToString");
4120
+ var a1 = r1, o1 = "[object Null]", n1 = "[object Undefined]", C0 = ce ? ce.toStringTag : void 0;
4103
4121
  function i1(e) {
4122
+ return e == null ? e === void 0 ? n1 : o1 : C0 && C0 in Object(e) ? Zn(e) : a1(e);
4123
+ }
4124
+ o(i1, "baseGetTag");
4125
+ var W0 = i1;
4126
+ function s1(e) {
4104
4127
  return e != null && typeof e == "object";
4105
4128
  }
4106
- o(i1, "isObjectLike");
4107
- var s1 = i1, l1 = "[object Symbol]";
4108
- function c1(e) {
4109
- return typeof e == "symbol" || s1(e) && G0(e) == l1;
4129
+ o(s1, "isObjectLike");
4130
+ var l1 = s1, c1 = "[object Symbol]";
4131
+ function d1(e) {
4132
+ return typeof e == "symbol" || l1(e) && W0(e) == c1;
4110
4133
  }
4111
- o(c1, "isSymbol");
4112
- var Rr = c1;
4113
- function d1(e, t) {
4134
+ o(d1, "isSymbol");
4135
+ var Rr = d1;
4136
+ function f1(e, t) {
4114
4137
  for (var r = -1, a = e == null ? 0 : e.length, n = Array(a); ++r < a; )
4115
4138
  n[r] = t(e[r], r, e);
4116
4139
  return n;
4117
4140
  }
4118
- o(d1, "arrayMap");
4119
- var f1 = d1, u1 = Array.isArray, Sr = u1, h1 = 1 / 0, C0 = ce ? ce.prototype : void 0, T0 = C0 ? C0.toString : void 0;
4120
- function W0(e) {
4141
+ o(f1, "arrayMap");
4142
+ var u1 = f1, h1 = Array.isArray, Sr = h1, p1 = 1 / 0, T0 = ce ? ce.prototype : void 0, O0 = T0 ? T0.toString : void 0;
4143
+ function $0(e) {
4121
4144
  if (typeof e == "string")
4122
4145
  return e;
4123
4146
  if (Sr(e))
4124
- return f1(e, W0) + "";
4147
+ return u1(e, $0) + "";
4125
4148
  if (Rr(e))
4126
- return T0 ? T0.call(e) : "";
4149
+ return O0 ? O0.call(e) : "";
4127
4150
  var t = e + "";
4128
- return t == "0" && 1 / e == -h1 ? "-0" : t;
4151
+ return t == "0" && 1 / e == -p1 ? "-0" : t;
4129
4152
  }
4130
- o(W0, "baseToString");
4131
- var p1 = W0;
4132
- function m1(e) {
4153
+ o($0, "baseToString");
4154
+ var m1 = $0;
4155
+ function v1(e) {
4133
4156
  var t = typeof e;
4134
4157
  return e != null && (t == "object" || t == "function");
4135
4158
  }
4136
- o(m1, "isObject2");
4137
- var $0 = m1, v1 = "[object AsyncFunction]", g1 = "[object Function]", y1 = "[object GeneratorFunction]", w1 = "[object Proxy]";
4138
- function R1(e) {
4139
- if (!$0(e))
4159
+ o(v1, "isObject2");
4160
+ var K0 = v1, g1 = "[object AsyncFunction]", y1 = "[object Function]", w1 = "[object GeneratorFunction]", R1 = "[object Proxy]";
4161
+ function S1(e) {
4162
+ if (!K0(e))
4140
4163
  return !1;
4141
- var t = G0(e);
4142
- return t == g1 || t == y1 || t == v1 || t == w1;
4164
+ var t = W0(e);
4165
+ return t == y1 || t == w1 || t == g1 || t == R1;
4143
4166
  }
4144
- o(R1, "isFunction");
4145
- var S1 = R1, E1 = wr["__core-js_shared__"], pr = E1, O0 = function() {
4167
+ o(S1, "isFunction");
4168
+ var E1 = S1, I1 = wr["__core-js_shared__"], pr = I1, z0 = function() {
4146
4169
  var e = /[^.]+$/.exec(pr && pr.keys && pr.keys.IE_PROTO || "");
4147
4170
  return e ? "Symbol(src)_1." + e : "";
4148
4171
  }();
4149
- function I1(e) {
4150
- return !!O0 && O0 in e;
4172
+ function x1(e) {
4173
+ return !!z0 && z0 in e;
4151
4174
  }
4152
- o(I1, "isMasked");
4153
- var x1 = I1, A1 = Function.prototype, b1 = A1.toString;
4154
- function _1(e) {
4175
+ o(x1, "isMasked");
4176
+ var A1 = x1, b1 = Function.prototype, _1 = b1.toString;
4177
+ function P1(e) {
4155
4178
  if (e != null) {
4156
4179
  try {
4157
- return b1.call(e);
4180
+ return _1.call(e);
4158
4181
  } catch {
4159
4182
  }
4160
4183
  try {
@@ -4164,77 +4187,77 @@ function _1(e) {
4164
4187
  }
4165
4188
  return "";
4166
4189
  }
4167
- o(_1, "toSource");
4168
- var P1 = _1, M1 = /[\\^$.*+?()[\]{}|]/g, C1 = /^\[object .+?Constructor\]$/, T1 = Function.prototype, O1 = Object.prototype, z1 = T1.toString,
4169
- L1 = O1.hasOwnProperty, H1 = RegExp(
4170
- "^" + z1.call(L1).replace(M1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
4190
+ o(P1, "toSource");
4191
+ var M1 = P1, C1 = /[\\^$.*+?()[\]{}|]/g, T1 = /^\[object .+?Constructor\]$/, O1 = Function.prototype, z1 = Object.prototype, L1 = O1.toString,
4192
+ H1 = z1.hasOwnProperty, B1 = RegExp(
4193
+ "^" + L1.call(H1).replace(C1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
4171
4194
  );
4172
- function B1(e) {
4173
- if (!$0(e) || x1(e))
4195
+ function N1(e) {
4196
+ if (!K0(e) || A1(e))
4174
4197
  return !1;
4175
- var t = S1(e) ? H1 : C1;
4176
- return t.test(P1(e));
4198
+ var t = E1(e) ? B1 : T1;
4199
+ return t.test(M1(e));
4177
4200
  }
4178
- o(B1, "baseIsNative");
4179
- var N1 = B1;
4180
- function V1(e, t) {
4201
+ o(N1, "baseIsNative");
4202
+ var V1 = N1;
4203
+ function k1(e, t) {
4181
4204
  return e?.[t];
4182
4205
  }
4183
- o(V1, "getValue");
4184
- var k1 = V1;
4185
- function D1(e, t) {
4186
- var r = k1(e, t);
4187
- return N1(r) ? r : void 0;
4188
- }
4189
- o(D1, "getNative");
4190
- var K0 = D1;
4206
+ o(k1, "getValue");
4207
+ var D1 = k1;
4191
4208
  function j1(e, t) {
4209
+ var r = D1(e, t);
4210
+ return V1(r) ? r : void 0;
4211
+ }
4212
+ o(j1, "getNative");
4213
+ var q0 = j1;
4214
+ function U1(e, t) {
4192
4215
  return e === t || e !== e && t !== t;
4193
4216
  }
4194
- o(j1, "eq");
4195
- var U1 = j1, F1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, G1 = /^\w*$/;
4196
- function W1(e, t) {
4217
+ o(U1, "eq");
4218
+ var F1 = U1, G1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, W1 = /^\w*$/;
4219
+ function $1(e, t) {
4197
4220
  if (Sr(e))
4198
4221
  return !1;
4199
4222
  var r = typeof e;
4200
- return r == "number" || r == "symbol" || r == "boolean" || e == null || Rr(e) ? !0 : G1.test(e) || !F1.test(e) || t != null && e in Object(
4223
+ return r == "number" || r == "symbol" || r == "boolean" || e == null || Rr(e) ? !0 : W1.test(e) || !G1.test(e) || t != null && e in Object(
4201
4224
  t);
4202
4225
  }
4203
- o(W1, "isKey");
4204
- var $1 = W1, K1 = K0(Object, "create"), Te = K1;
4205
- function q1() {
4226
+ o($1, "isKey");
4227
+ var K1 = $1, q1 = q0(Object, "create"), Te = q1;
4228
+ function Y1() {
4206
4229
  this.__data__ = Te ? Te(null) : {}, this.size = 0;
4207
4230
  }
4208
- o(q1, "hashClear");
4209
- var Y1 = q1;
4210
- function J1(e) {
4231
+ o(Y1, "hashClear");
4232
+ var J1 = Y1;
4233
+ function X1(e) {
4211
4234
  var t = this.has(e) && delete this.__data__[e];
4212
4235
  return this.size -= t ? 1 : 0, t;
4213
4236
  }
4214
- o(J1, "hashDelete");
4215
- var X1 = J1, Q1 = "__lodash_hash_undefined__", Z1 = Object.prototype, e5 = Z1.hasOwnProperty;
4216
- function t5(e) {
4237
+ o(X1, "hashDelete");
4238
+ var Q1 = X1, Z1 = "__lodash_hash_undefined__", e5 = Object.prototype, t5 = e5.hasOwnProperty;
4239
+ function r5(e) {
4217
4240
  var t = this.__data__;
4218
4241
  if (Te) {
4219
4242
  var r = t[e];
4220
- return r === Q1 ? void 0 : r;
4243
+ return r === Z1 ? void 0 : r;
4221
4244
  }
4222
- return e5.call(t, e) ? t[e] : void 0;
4245
+ return t5.call(t, e) ? t[e] : void 0;
4223
4246
  }
4224
- o(t5, "hashGet");
4225
- var r5 = t5, a5 = Object.prototype, o5 = a5.hasOwnProperty;
4226
- function n5(e) {
4247
+ o(r5, "hashGet");
4248
+ var a5 = r5, o5 = Object.prototype, n5 = o5.hasOwnProperty;
4249
+ function i5(e) {
4227
4250
  var t = this.__data__;
4228
- return Te ? t[e] !== void 0 : o5.call(t, e);
4251
+ return Te ? t[e] !== void 0 : n5.call(t, e);
4229
4252
  }
4230
- o(n5, "hashHas");
4231
- var i5 = n5, s5 = "__lodash_hash_undefined__";
4232
- function l5(e, t) {
4253
+ o(i5, "hashHas");
4254
+ var s5 = i5, l5 = "__lodash_hash_undefined__";
4255
+ function c5(e, t) {
4233
4256
  var r = this.__data__;
4234
- return this.size += this.has(e) ? 0 : 1, r[e] = Te && t === void 0 ? s5 : t, this;
4257
+ return this.size += this.has(e) ? 0 : 1, r[e] = Te && t === void 0 ? l5 : t, this;
4235
4258
  }
4236
- o(l5, "hashSet");
4237
- var c5 = l5;
4259
+ o(c5, "hashSet");
4260
+ var d5 = c5;
4238
4261
  function de(e) {
4239
4262
  var t = -1, r = e == null ? 0 : e.length;
4240
4263
  for (this.clear(); ++t < r; ) {
@@ -4243,51 +4266,51 @@ function de(e) {
4243
4266
  }
4244
4267
  }
4245
4268
  o(de, "Hash");
4246
- de.prototype.clear = Y1;
4247
- de.prototype.delete = X1;
4248
- de.prototype.get = r5;
4249
- de.prototype.has = i5;
4250
- de.prototype.set = c5;
4251
- var z0 = de;
4252
- function d5() {
4269
+ de.prototype.clear = J1;
4270
+ de.prototype.delete = Q1;
4271
+ de.prototype.get = a5;
4272
+ de.prototype.has = s5;
4273
+ de.prototype.set = d5;
4274
+ var L0 = de;
4275
+ function f5() {
4253
4276
  this.__data__ = [], this.size = 0;
4254
4277
  }
4255
- o(d5, "listCacheClear");
4256
- var f5 = d5;
4257
- function u5(e, t) {
4278
+ o(f5, "listCacheClear");
4279
+ var u5 = f5;
4280
+ function h5(e, t) {
4258
4281
  for (var r = e.length; r--; )
4259
- if (U1(e[r][0], t))
4282
+ if (F1(e[r][0], t))
4260
4283
  return r;
4261
4284
  return -1;
4262
4285
  }
4263
- o(u5, "assocIndexOf");
4264
- var St = u5, h5 = Array.prototype, p5 = h5.splice;
4265
- function m5(e) {
4286
+ o(h5, "assocIndexOf");
4287
+ var St = h5, p5 = Array.prototype, m5 = p5.splice;
4288
+ function v5(e) {
4266
4289
  var t = this.__data__, r = St(t, e);
4267
4290
  if (r < 0)
4268
4291
  return !1;
4269
4292
  var a = t.length - 1;
4270
- return r == a ? t.pop() : p5.call(t, r, 1), --this.size, !0;
4293
+ return r == a ? t.pop() : m5.call(t, r, 1), --this.size, !0;
4271
4294
  }
4272
- o(m5, "listCacheDelete");
4273
- var v5 = m5;
4274
- function g5(e) {
4295
+ o(v5, "listCacheDelete");
4296
+ var g5 = v5;
4297
+ function y5(e) {
4275
4298
  var t = this.__data__, r = St(t, e);
4276
4299
  return r < 0 ? void 0 : t[r][1];
4277
4300
  }
4278
- o(g5, "listCacheGet");
4279
- var y5 = g5;
4280
- function w5(e) {
4301
+ o(y5, "listCacheGet");
4302
+ var w5 = y5;
4303
+ function R5(e) {
4281
4304
  return St(this.__data__, e) > -1;
4282
4305
  }
4283
- o(w5, "listCacheHas");
4284
- var R5 = w5;
4285
- function S5(e, t) {
4306
+ o(R5, "listCacheHas");
4307
+ var S5 = R5;
4308
+ function E5(e, t) {
4286
4309
  var r = this.__data__, a = St(r, e);
4287
4310
  return a < 0 ? (++this.size, r.push([e, t])) : r[a][1] = t, this;
4288
4311
  }
4289
- o(S5, "listCacheSet");
4290
- var E5 = S5;
4312
+ o(E5, "listCacheSet");
4313
+ var I5 = E5;
4291
4314
  function fe(e) {
4292
4315
  var t = -1, r = e == null ? 0 : e.length;
4293
4316
  for (this.clear(); ++t < r; ) {
@@ -4296,55 +4319,55 @@ function fe(e) {
4296
4319
  }
4297
4320
  }
4298
4321
  o(fe, "ListCache");
4299
- fe.prototype.clear = f5;
4300
- fe.prototype.delete = v5;
4301
- fe.prototype.get = y5;
4302
- fe.prototype.has = R5;
4303
- fe.prototype.set = E5;
4304
- var I5 = fe, x5 = K0(wr, "Map"), A5 = x5;
4305
- function b5() {
4322
+ fe.prototype.clear = u5;
4323
+ fe.prototype.delete = g5;
4324
+ fe.prototype.get = w5;
4325
+ fe.prototype.has = S5;
4326
+ fe.prototype.set = I5;
4327
+ var x5 = fe, A5 = q0(wr, "Map"), b5 = A5;
4328
+ function _5() {
4306
4329
  this.size = 0, this.__data__ = {
4307
- hash: new z0(),
4308
- map: new (A5 || I5)(),
4309
- string: new z0()
4330
+ hash: new L0(),
4331
+ map: new (b5 || x5)(),
4332
+ string: new L0()
4310
4333
  };
4311
4334
  }
4312
- o(b5, "mapCacheClear");
4313
- var _5 = b5;
4314
- function P5(e) {
4335
+ o(_5, "mapCacheClear");
4336
+ var P5 = _5;
4337
+ function M5(e) {
4315
4338
  var t = typeof e;
4316
4339
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
4317
4340
  }
4318
- o(P5, "isKeyable");
4319
- var M5 = P5;
4320
- function C5(e, t) {
4341
+ o(M5, "isKeyable");
4342
+ var C5 = M5;
4343
+ function T5(e, t) {
4321
4344
  var r = e.__data__;
4322
- return M5(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
4345
+ return C5(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
4323
4346
  }
4324
- o(C5, "getMapData");
4325
- var Et = C5;
4326
- function T5(e) {
4347
+ o(T5, "getMapData");
4348
+ var Et = T5;
4349
+ function O5(e) {
4327
4350
  var t = Et(this, e).delete(e);
4328
4351
  return this.size -= t ? 1 : 0, t;
4329
4352
  }
4330
- o(T5, "mapCacheDelete");
4331
- var O5 = T5;
4332
- function z5(e) {
4353
+ o(O5, "mapCacheDelete");
4354
+ var z5 = O5;
4355
+ function L5(e) {
4333
4356
  return Et(this, e).get(e);
4334
4357
  }
4335
- o(z5, "mapCacheGet");
4336
- var L5 = z5;
4337
- function H5(e) {
4358
+ o(L5, "mapCacheGet");
4359
+ var H5 = L5;
4360
+ function B5(e) {
4338
4361
  return Et(this, e).has(e);
4339
4362
  }
4340
- o(H5, "mapCacheHas");
4341
- var B5 = H5;
4342
- function N5(e, t) {
4363
+ o(B5, "mapCacheHas");
4364
+ var N5 = B5;
4365
+ function V5(e, t) {
4343
4366
  var r = Et(this, e), a = r.size;
4344
4367
  return r.set(e, t), this.size += r.size == a ? 0 : 1, this;
4345
4368
  }
4346
- o(N5, "mapCacheSet");
4347
- var V5 = N5;
4369
+ o(V5, "mapCacheSet");
4370
+ var k5 = V5;
4348
4371
  function ue(e) {
4349
4372
  var t = -1, r = e == null ? 0 : e.length;
4350
4373
  for (this.clear(); ++t < r; ) {
@@ -4353,15 +4376,15 @@ function ue(e) {
4353
4376
  }
4354
4377
  }
4355
4378
  o(ue, "MapCache");
4356
- ue.prototype.clear = _5;
4357
- ue.prototype.delete = O5;
4358
- ue.prototype.get = L5;
4359
- ue.prototype.has = B5;
4360
- ue.prototype.set = V5;
4361
- var q0 = ue, k5 = "Expected a function";
4379
+ ue.prototype.clear = P5;
4380
+ ue.prototype.delete = z5;
4381
+ ue.prototype.get = H5;
4382
+ ue.prototype.has = N5;
4383
+ ue.prototype.set = k5;
4384
+ var Y0 = ue, D5 = "Expected a function";
4362
4385
  function Er(e, t) {
4363
4386
  if (typeof e != "function" || t != null && typeof t != "function")
4364
- throw new TypeError(k5);
4387
+ throw new TypeError(D5);
4365
4388
  var r = /* @__PURE__ */ o(function() {
4366
4389
  var a = arguments, n = t ? t.apply(this, a) : a[0], s = r.cache;
4367
4390
  if (s.has(n))
@@ -4369,63 +4392,63 @@ function Er(e, t) {
4369
4392
  var i = e.apply(this, a);
4370
4393
  return r.cache = s.set(n, i) || s, i;
4371
4394
  }, "memoized");
4372
- return r.cache = new (Er.Cache || q0)(), r;
4395
+ return r.cache = new (Er.Cache || Y0)(), r;
4373
4396
  }
4374
4397
  o(Er, "memoize");
4375
- Er.Cache = q0;
4376
- var D5 = Er, j5 = 500;
4377
- function U5(e) {
4378
- var t = D5(e, function(a) {
4379
- return r.size === j5 && r.clear(), a;
4398
+ Er.Cache = Y0;
4399
+ var j5 = Er, U5 = 500;
4400
+ function F5(e) {
4401
+ var t = j5(e, function(a) {
4402
+ return r.size === U5 && r.clear(), a;
4380
4403
  }), r = t.cache;
4381
4404
  return t;
4382
4405
  }
4383
- o(U5, "memoizeCapped");
4384
- var F5 = U5, G5 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, W5 = /\\(\\)?/g, $5 = F5(
4406
+ o(F5, "memoizeCapped");
4407
+ var G5 = F5, W5 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, $5 = /\\(\\)?/g, K5 = G5(
4385
4408
  function(e) {
4386
4409
  var t = [];
4387
- return e.charCodeAt(0) === 46 && t.push(""), e.replace(G5, function(r, a, n, s) {
4388
- t.push(n ? s.replace(W5, "$1") : a || r);
4410
+ return e.charCodeAt(0) === 46 && t.push(""), e.replace(W5, function(r, a, n, s) {
4411
+ t.push(n ? s.replace($5, "$1") : a || r);
4389
4412
  }), t;
4390
- }), K5 = $5;
4391
- function q5(e) {
4392
- return e == null ? "" : p1(e);
4413
+ }), q5 = K5;
4414
+ function Y5(e) {
4415
+ return e == null ? "" : m1(e);
4393
4416
  }
4394
- o(q5, "toString");
4395
- var Y5 = q5;
4396
- function J5(e, t) {
4397
- return Sr(e) ? e : $1(e, t) ? [e] : K5(Y5(e));
4417
+ o(Y5, "toString");
4418
+ var J5 = Y5;
4419
+ function X5(e, t) {
4420
+ return Sr(e) ? e : K1(e, t) ? [e] : q5(J5(e));
4398
4421
  }
4399
- o(J5, "castPath");
4400
- var X5 = J5, Q5 = 1 / 0;
4401
- function Z5(e) {
4422
+ o(X5, "castPath");
4423
+ var Q5 = X5, Z5 = 1 / 0;
4424
+ function ei(e) {
4402
4425
  if (typeof e == "string" || Rr(e))
4403
4426
  return e;
4404
4427
  var t = e + "";
4405
- return t == "0" && 1 / e == -Q5 ? "-0" : t;
4428
+ return t == "0" && 1 / e == -Z5 ? "-0" : t;
4406
4429
  }
4407
- o(Z5, "toKey");
4408
- var ei = Z5;
4409
- function ti(e, t) {
4410
- t = X5(t, e);
4430
+ o(ei, "toKey");
4431
+ var ti = ei;
4432
+ function ri(e, t) {
4433
+ t = Q5(t, e);
4411
4434
  for (var r = 0, a = t.length; e != null && r < a; )
4412
- e = e[ei(t[r++])];
4435
+ e = e[ti(t[r++])];
4413
4436
  return r && r == a ? e : void 0;
4414
4437
  }
4415
- o(ti, "baseGet");
4416
- var ri = ti;
4417
- function ai(e, t, r) {
4418
- var a = e == null ? void 0 : ri(e, t);
4438
+ o(ri, "baseGet");
4439
+ var ai = ri;
4440
+ function oi(e, t, r) {
4441
+ var a = e == null ? void 0 : ai(e, t);
4419
4442
  return a === void 0 ? r : a;
4420
4443
  }
4421
- o(ai, "get");
4422
- var oi = ai, Ir = Fn, ni = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, ii = /* @__PURE__ */ o((e) => e.match(/^[\[\{\"\}].*[\]\}\"]$/),
4444
+ o(oi, "get");
4445
+ var ni = oi, Ir = Gn, ii = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, si = /* @__PURE__ */ o((e) => e.match(/^[\[\{\"\}].*[\]\}\"]$/),
4423
4446
  "isJSON");
4424
- function Y0(e) {
4447
+ function J0(e) {
4425
4448
  if (!Ir(e))
4426
4449
  return e;
4427
4450
  let t = e, r = !1;
4428
- return typeof Event < "u" && e instanceof Event && (t = P0(t), r = !0), t = Object.keys(t).reduce((a, n) => {
4451
+ return typeof Event < "u" && e instanceof Event && (t = M0(t), r = !0), t = Object.keys(t).reduce((a, n) => {
4429
4452
  try {
4430
4453
  t[n] && t[n].toJSON, a[n] = t[n];
4431
4454
  } catch {
@@ -4434,8 +4457,8 @@ function Y0(e) {
4434
4457
  return a;
4435
4458
  }, {}), r ? t : e;
4436
4459
  }
4437
- o(Y0, "convertUnconventionalData");
4438
- var si = /* @__PURE__ */ o(function(t) {
4460
+ o(J0, "convertUnconventionalData");
4461
+ var li = /* @__PURE__ */ o(function(t) {
4439
4462
  let r, a, n, s;
4440
4463
  return /* @__PURE__ */ o(function(l, c) {
4441
4464
  try {
@@ -4455,12 +4478,12 @@ var si = /* @__PURE__ */ o(function(t) {
4455
4478
  if (typeof c == "bigint")
4456
4479
  return `_bigint_${c.toString()}`;
4457
4480
  if (typeof c == "string")
4458
- return ni.test(c) ? t.allowDate ? `_date_${c}` : void 0 : c;
4459
- if ((0, Dn.default)(c))
4460
- return t.allowRegExp ? `_regexp_${c.flags}|${c.source}` : void 0;
4481
+ return ii.test(c) ? t.allowDate ? `_date_${c}` : void 0 : c;
4461
4482
  if ((0, jn.default)(c))
4483
+ return t.allowRegExp ? `_regexp_${c.flags}|${c.source}` : void 0;
4484
+ if ((0, Un.default)(c))
4462
4485
  return;
4463
- if ((0, Un.default)(c)) {
4486
+ if ((0, Fn.default)(c)) {
4464
4487
  if (!t.allowSymbol)
4465
4488
  return;
4466
4489
  let u = Symbol.keyFor(c);
@@ -4506,7 +4529,7 @@ var si = /* @__PURE__ */ o(function(t) {
4506
4529
  }
4507
4530
  let f = r.get(c);
4508
4531
  if (!f) {
4509
- let u = Array.isArray(c) ? c : Y0(c);
4532
+ let u = Array.isArray(c) ? c : J0(c);
4510
4533
  return s.push(l), n.unshift(u), r.set(c, JSON.stringify(s)), c !== u && a.set(c, u), u;
4511
4534
  }
4512
4535
  return `_duplicate_${f}`;
@@ -4514,12 +4537,12 @@ var si = /* @__PURE__ */ o(function(t) {
4514
4537
  return;
4515
4538
  }
4516
4539
  }, "replace");
4517
- }, "replacer2"), li = /* @__PURE__ */ o(function(t) {
4540
+ }, "replacer2"), ci = /* @__PURE__ */ o(function(t) {
4518
4541
  let r = [], a;
4519
4542
  return /* @__PURE__ */ o(function(s, i) {
4520
4543
  if (s === "" && (a = i, r.forEach(({ target: l, container: c, replacement: d }) => {
4521
- let f = ii(d) ? JSON.parse(d) : d.split(".");
4522
- f.length === 0 ? c[l] = a : c[l] = oi(a, f);
4544
+ let f = si(d) ? JSON.parse(d) : d.split(".");
4545
+ f.length === 0 ? c[l] = a : c[l] = ni(a, f);
4523
4546
  })), s === "_constructor-name_")
4524
4547
  return i;
4525
4548
  if (Ir(i) && i.__isConvertedError__) {
@@ -4537,7 +4560,7 @@ var si = /* @__PURE__ */ o(function(t) {
4537
4560
  i === "_Infinity_" ? Number.POSITIVE_INFINITY : typeof i == "string" && i === "_NaN_" ? Number.NaN : typeof i == "string" && i.startsWith(
4538
4561
  "_bigint_") && typeof BigInt == "function" ? BigInt(i.replace("_bigint_", "")) : i;
4539
4562
  }, "revive");
4540
- }, "reviver2"), J0 = {
4563
+ }, "reviver2"), X0 = {
4541
4564
  maxDepth: 10,
4542
4565
  space: void 0,
4543
4566
  allowRegExp: !0,
@@ -4545,10 +4568,10 @@ var si = /* @__PURE__ */ o(function(t) {
4545
4568
  allowError: !0,
4546
4569
  allowUndefined: !0,
4547
4570
  allowSymbol: !0
4548
- }, X0 = /* @__PURE__ */ o((e, t = {}) => {
4549
- let r = { ...J0, ...t };
4550
- return JSON.stringify(Y0(e), si(r), t.space);
4551
- }, "stringify"), ci = /* @__PURE__ */ o(() => {
4571
+ }, Q0 = /* @__PURE__ */ o((e, t = {}) => {
4572
+ let r = { ...X0, ...t };
4573
+ return JSON.stringify(J0(e), li(r), t.space);
4574
+ }, "stringify"), di = /* @__PURE__ */ o(() => {
4552
4575
  let e = /* @__PURE__ */ new Map();
4553
4576
  return /* @__PURE__ */ o(function t(r) {
4554
4577
  Ir(r) && Object.entries(r).forEach(([a, n]) => {
@@ -4557,43 +4580,43 @@ var si = /* @__PURE__ */ o(function(t) {
4557
4580
  a === "_undefined_" ? (e.set(a, !0), r[n] = void 0) : e.get(a) || (e.set(a, !0), t(a));
4558
4581
  });
4559
4582
  }, "mutateUndefined");
4560
- }, "mutator"), Q0 = /* @__PURE__ */ o((e, t = {}) => {
4561
- let r = { ...J0, ...t }, a = JSON.parse(e, li(r));
4562
- return ci()(a), a;
4583
+ }, "mutator"), Z0 = /* @__PURE__ */ o((e, t = {}) => {
4584
+ let r = { ...X0, ...t }, a = JSON.parse(e, ci(r));
4585
+ return di()(a), a;
4563
4586
  }, "parse");
4564
4587
 
4565
4588
  // src/manager-api/lib/store-setup.ts
4566
- var Z0 = /* @__PURE__ */ o((e) => {
4589
+ var ea = /* @__PURE__ */ o((e) => {
4567
4590
  e.fn("set", function(t, r) {
4568
4591
  return e.set(
4569
4592
  // @ts-expect-error('this' implicitly has type 'any')
4570
4593
  this._area,
4571
4594
  // @ts-expect-error('this' implicitly has type 'any')
4572
4595
  this._in(t),
4573
- X0(r, { maxDepth: 50 })
4596
+ Q0(r, { maxDepth: 50 })
4574
4597
  );
4575
4598
  }), e.fn("get", function(t, r) {
4576
4599
  let a = e.get(this._area, this._in(t));
4577
- return a !== null ? Q0(a) : r || a;
4600
+ return a !== null ? Z0(a) : r || a;
4578
4601
  });
4579
4602
  }, "default");
4580
4603
 
4581
4604
  // src/manager-api/store.ts
4582
- Z0(he.default._);
4583
- var ea = "@storybook/manager/store";
4605
+ ea(he.default._);
4606
+ var ta = "@storybook/manager/store";
4584
4607
  function xr(e) {
4585
- return e.get(ea) || {};
4608
+ return e.get(ta) || {};
4586
4609
  }
4587
4610
  o(xr, "get");
4588
- function di(e, t) {
4589
- return e.set(ea, t);
4590
- }
4591
- o(di, "set");
4592
4611
  function fi(e, t) {
4612
+ return e.set(ta, t);
4613
+ }
4614
+ o(fi, "set");
4615
+ function ui(e, t) {
4593
4616
  let r = xr(e);
4594
- return di(e, { ...r, ...t });
4617
+ return fi(e, { ...r, ...t });
4595
4618
  }
4596
- o(fi, "update");
4619
+ o(ui, "update");
4597
4620
  var Oe = class {
4598
4621
  static {
4599
4622
  o(this, "Store");
@@ -4621,7 +4644,7 @@ var Oe = class {
4621
4644
  });
4622
4645
  if (i !== "none") {
4623
4646
  let f = i === "session" ? he.default.session : he.default.local;
4624
- await fi(f, c);
4647
+ await ui(f, c);
4625
4648
  }
4626
4649
  return n && n(d), d;
4627
4650
  }
@@ -4637,7 +4660,7 @@ var It = class extends Error {
4637
4660
  static {
4638
4661
  o(this, "RequestResponseError");
4639
4662
  }
4640
- }, S4 = /* @__PURE__ */ o((e, t, r, a, n = 5e3) => {
4663
+ }, E4 = /* @__PURE__ */ o((e, t, r, a, n = 5e3) => {
4641
4664
  let s;
4642
4665
  return new Promise((i, l) => {
4643
4666
  let c = {
@@ -4653,8 +4676,8 @@ var It = class extends Error {
4653
4676
  }, "experimental_requestResponse");
4654
4677
 
4655
4678
  // src/manager-api/root.tsx
4656
- var { ActiveTabs: O4 } = ft;
4657
- var At = Fr({ api: void 0, state: ct({}) }), o0 = /* @__PURE__ */ o((...e) => Wr({}, ...e), "combineParameters"), aa = class extends ui {
4679
+ var { ActiveTabs: z4 } = ft;
4680
+ var At = Fr({ api: void 0, state: ct({}) }), o0 = /* @__PURE__ */ o((...e) => Wr({}, ...e), "combineParameters"), oa = class extends hi {
4658
4681
  constructor(r) {
4659
4682
  super(r);
4660
4683
  this.api = {};
@@ -4727,63 +4750,63 @@ var At = Fr({ api: void 0, state: ct({}) }), o0 = /* @__PURE__ */ o((...e) => Wr
4727
4750
  state: this.state,
4728
4751
  api: this.api
4729
4752
  };
4730
- return /* @__PURE__ */ pe.createElement(vi, { effect: this.initModules }, /* @__PURE__ */ pe.createElement(At.Provider, { value: a }, /* @__PURE__ */ pe.
4731
- createElement(yi, null, r)));
4753
+ return /* @__PURE__ */ pe.createElement(gi, { effect: this.initModules }, /* @__PURE__ */ pe.createElement(At.Provider, { value: a }, /* @__PURE__ */ pe.
4754
+ createElement(wi, null, r)));
4732
4755
  }
4733
- }, vi = /* @__PURE__ */ o(({ children: e, effect: t }) => (pe.useEffect(t, []), e), "EffectOnMount"), gi = /* @__PURE__ */ o((e) => e, "defa\
4756
+ }, gi = /* @__PURE__ */ o(({ children: e, effect: t }) => (pe.useEffect(t, []), e), "EffectOnMount"), yi = /* @__PURE__ */ o((e) => e, "defa\
4734
4757
  ultFilter");
4735
- function yi({
4758
+ function wi({
4736
4759
  // @ts-expect-error (Converted from ts-ignore)
4737
- filter: e = gi,
4760
+ filter: e = yi,
4738
4761
  children: t
4739
4762
  }) {
4740
- let r = br(At), a = ta(t), n = ta(e);
4763
+ let r = br(At), a = ra(t), n = ra(e);
4741
4764
  if (typeof a.current != "function")
4742
- return /* @__PURE__ */ pe.createElement(hi, null, a.current);
4765
+ return /* @__PURE__ */ pe.createElement(pi, null, a.current);
4743
4766
  let s = n.current(r), i = Ar(() => [...Object.entries(s).reduce((l, c) => l.concat(c), [])], [r.state]);
4744
4767
  return Ar(() => {
4745
4768
  let l = a.current;
4746
4769
  return /* @__PURE__ */ pe.createElement(l, { ...s });
4747
4770
  }, i);
4748
4771
  }
4749
- o(yi, "ManagerConsumer");
4750
- function z4() {
4772
+ o(wi, "ManagerConsumer");
4773
+ function L4() {
4751
4774
  let { state: e } = br(At);
4752
4775
  return e;
4753
4776
  }
4754
- o(z4, "useStorybookState");
4777
+ o(L4, "useStorybookState");
4755
4778
  function Y() {
4756
4779
  let { api: e } = br(At);
4757
4780
  return e;
4758
4781
  }
4759
4782
  o(Y, "useStorybookApi");
4760
- function na(e, t) {
4783
+ function ia(e, t) {
4761
4784
  return typeof e > "u" ? t : e;
4762
4785
  }
4763
- o(na, "orDefault");
4764
- var wi = /* @__PURE__ */ o((e, t = []) => {
4786
+ o(ia, "orDefault");
4787
+ var Ri = /* @__PURE__ */ o((e, t = []) => {
4765
4788
  let r = Y();
4766
- return oa(() => (Object.entries(e).forEach(([a, n]) => r.on(a, n)), () => {
4789
+ return na(() => (Object.entries(e).forEach(([a, n]) => r.on(a, n)), () => {
4767
4790
  Object.entries(e).forEach(([a, n]) => r.off(a, n));
4768
4791
  }), t), r.emit;
4769
4792
  }, "useChannel");
4770
- function L4(e) {
4793
+ function H4(e) {
4771
4794
  return Y().isPrepared(e);
4772
4795
  }
4773
- o(L4, "useStoryPrepared");
4774
- function H4(e, t) {
4796
+ o(H4, "useStoryPrepared");
4797
+ function B4(e, t) {
4775
4798
  let a = Y().getCurrentParameter(e);
4776
- return na(a, t);
4799
+ return ia(a, t);
4777
4800
  }
4778
- o(H4, "useParameter");
4801
+ o(B4, "useParameter");
4779
4802
  globalThis.STORYBOOK_ADDON_STATE = {};
4780
4803
  var { STORYBOOK_ADDON_STATE: W } = globalThis;
4781
- function Ri(e, t) {
4782
- let r = Y(), a = r.getAddonState(e) || W[e], n = na(
4804
+ function Si(e, t) {
4805
+ let r = Y(), a = r.getAddonState(e) || W[e], n = ia(
4783
4806
  a,
4784
4807
  W[e] ? W[e] : t
4785
4808
  ), s = !1;
4786
- n === t && t !== void 0 && (W[e] = t, s = !0), oa(() => {
4809
+ n === t && t !== void 0 && (W[e] = t, s = !0), na(() => {
4787
4810
  s && r.setAddonState(e, t);
4788
4811
  }, [s]);
4789
4812
  let i = xt(
@@ -4795,15 +4818,15 @@ function Ri(e, t) {
4795
4818
  [r, e]
4796
4819
  ), l = Ar(() => {
4797
4820
  let f = {
4798
- [`${ra}-client-${e}`]: i,
4821
+ [`${aa}-client-${e}`]: i,
4799
4822
  [`${ze}-client-${e}`]: i
4800
4823
  }, u = {
4801
- [pi]: async () => {
4824
+ [mi]: async () => {
4802
4825
  let h = r.getAddonState(e);
4803
4826
  h ? (W[e] = h, r.emit(`${ze}-manager-${e}`, h)) : W[e] ? (await i(W[e]), r.emit(`${ze}-manager-${e}`, W[e])) : t !== void 0 && (await i(
4804
4827
  t), W[e] = t, r.emit(`${ze}-manager-${e}`, t));
4805
4828
  },
4806
- [mi]: () => {
4829
+ [vi]: () => {
4807
4830
  let h = r.getAddonState(e);
4808
4831
  h !== void 0 && r.emit(`${ze}-manager-${e}`, h);
4809
4832
  }
@@ -4812,22 +4835,22 @@ function Ri(e, t) {
4812
4835
  ...f,
4813
4836
  ...u
4814
4837
  };
4815
- }, [e]), c = wi(l), d = xt(
4838
+ }, [e]), c = Ri(l), d = xt(
4816
4839
  async (f, u) => {
4817
4840
  await i(f, u);
4818
4841
  let h = r.getAddonState(e);
4819
- c(`${ra}-manager-${e}`, h);
4842
+ c(`${aa}-manager-${e}`, h);
4820
4843
  },
4821
4844
  [r, c, i, e]
4822
4845
  );
4823
4846
  return [n, d];
4824
4847
  }
4825
- o(Ri, "useSharedState");
4826
- function B4(e, t) {
4827
- return Ri(e, t);
4848
+ o(Si, "useSharedState");
4849
+ function N4(e, t) {
4850
+ return Si(e, t);
4828
4851
  }
4829
- o(B4, "useAddonState");
4830
- function N4() {
4852
+ o(N4, "useAddonState");
4853
+ function V4() {
4831
4854
  let { getCurrentStoryData: e, updateStoryArgs: t, resetStoryArgs: r } = Y(), a = e(), n = a?.type === "story" ? a.args : {}, s = a?.type ===
4832
4855
  "story" ? a.initialArgs : {}, i = xt(
4833
4856
  (c) => t(a, c),
@@ -4838,30 +4861,30 @@ function N4() {
4838
4861
  );
4839
4862
  return [n, i, l, s];
4840
4863
  }
4841
- o(N4, "useArgs");
4842
- function V4() {
4864
+ o(V4, "useArgs");
4865
+ function k4() {
4843
4866
  let e = Y();
4844
4867
  return [e.getGlobals(), e.updateGlobals, e.getStoryGlobals(), e.getUserGlobals()];
4845
4868
  }
4846
- o(V4, "useGlobals");
4847
- function k4() {
4869
+ o(k4, "useGlobals");
4870
+ function D4() {
4848
4871
  return Y().getGlobalTypes();
4849
4872
  }
4850
- o(k4, "useGlobalTypes");
4851
- function Si() {
4873
+ o(D4, "useGlobalTypes");
4874
+ function Ei() {
4852
4875
  let { getCurrentStoryData: e } = Y();
4853
4876
  return e();
4854
4877
  }
4855
- o(Si, "useCurrentStory");
4856
- function D4() {
4857
- let e = Si();
4878
+ o(Ei, "useCurrentStory");
4879
+ function j4() {
4880
+ let e = Ei();
4858
4881
  return e?.type === "story" && e.argTypes || {};
4859
4882
  }
4860
- o(D4, "useArgTypes");
4861
- var j4 = Kr;
4883
+ o(j4, "useArgTypes");
4884
+ var U4 = Kr;
4862
4885
 
4863
4886
  // src/shared/universal-store/mock.ts
4864
- import { Channel as Ei } from "storybook/internal/channels";
4887
+ import { Channel as Ii } from "storybook/internal/channels";
4865
4888
  var _r = class e extends D {
4866
4889
  static {
4867
4890
  o(this, "MockUniversalStore");
@@ -4869,7 +4892,7 @@ var _r = class e extends D {
4869
4892
  constructor(t, r) {
4870
4893
  D.isInternalConstructing = !0, super(
4871
4894
  { ...t, leader: !0 },
4872
- { channel: new Ei({}), environment: D.Environment.MOCK }
4895
+ { channel: new Ii({}), environment: D.Environment.MOCK }
4873
4896
  ), D.isInternalConstructing = !1, typeof r?.fn == "function" && (this.testUtils = r, this.getState = r.fn(this.getState), this.setState =
4874
4897
  r.fn(this.setState), this.subscribe = r.fn(this.subscribe), this.onStateChange = r.fn(this.onStateChange), this.send = r.fn(this.send));
4875
4898
  }
@@ -4894,12 +4917,12 @@ var _r = class e extends D {
4894
4917
  };
4895
4918
 
4896
4919
  // src/shared/test-provider-store/index.ts
4897
- var ia = {
4920
+ var sa = {
4898
4921
  id: "storybook/test-provider",
4899
4922
  leader: !0,
4900
4923
  initialState: {}
4901
4924
  };
4902
- function sa({
4925
+ function la({
4903
4926
  universalTestProviderStore: e,
4904
4927
  useUniversalStore: t
4905
4928
  }) {
@@ -4957,63 +4980,63 @@ function sa({
4957
4980
  universalTestProviderStore: e
4958
4981
  };
4959
4982
  }
4960
- o(sa, "createTestProviderStore");
4983
+ o(la, "createTestProviderStore");
4961
4984
 
4962
4985
  // src/manager-api/stores/test-provider.ts
4963
- var Ii = sa({
4986
+ var xi = la({
4964
4987
  universalTestProviderStore: D.create({
4965
- ...ia,
4988
+ ...sa,
4966
4989
  leader: globalThis.CONFIG_TYPE === "PRODUCTION"
4967
4990
  }),
4968
4991
  useUniversalStore: Pe
4969
4992
  }), {
4970
- fullTestProviderStore: xi,
4971
- getTestProviderStoreById: Ai,
4972
- useTestProviderStore: bi,
4973
- universalTestProviderStore: _i
4974
- } = Ii;
4993
+ fullTestProviderStore: Ai,
4994
+ getTestProviderStoreById: bi,
4995
+ useTestProviderStore: _i,
4996
+ universalTestProviderStore: Pi
4997
+ } = xi;
4975
4998
  export {
4976
- O4 as ActiveTabs,
4977
- yi as Consumer,
4999
+ z4 as ActiveTabs,
5000
+ wi as Consumer,
4978
5001
  At as ManagerContext,
4979
- aa as Provider,
5002
+ oa as Provider,
4980
5003
  It as RequestResponseError,
4981
- Ca as addons,
5004
+ Ta as addons,
4982
5005
  o0 as combineParameters,
4983
- Jl as controlOrMetaKey,
4984
- Yl as controlOrMetaSymbol,
4985
- Ql as eventMatchesShortcut,
5006
+ Xl as controlOrMetaKey,
5007
+ Jl as controlOrMetaSymbol,
5008
+ Zl as eventMatchesShortcut,
4986
5009
  Qt as eventToShortcut,
4987
5010
  _r as experimental_MockUniversalStore,
4988
5011
  D as experimental_UniversalStore,
4989
- po as experimental_getStatusStore,
4990
- Ai as experimental_getTestProviderStore,
4991
- S4 as experimental_requestResponse,
4992
- mo as experimental_useStatusStore,
4993
- bi as experimental_useTestProviderStore,
5012
+ mo as experimental_getStatusStore,
5013
+ bi as experimental_getTestProviderStore,
5014
+ E4 as experimental_requestResponse,
5015
+ vo as experimental_useStatusStore,
5016
+ _i as experimental_useTestProviderStore,
4994
5017
  Pe as experimental_useUniversalStore,
4995
5018
  mt as internal_fullStatusStore,
4996
- xi as internal_fullTestProviderStore,
4997
- vo as internal_universalStatusStore,
4998
- _i as internal_universalTestProviderStore,
5019
+ Ai as internal_fullTestProviderStore,
5020
+ go as internal_universalStatusStore,
5021
+ Pi as internal_universalTestProviderStore,
4999
5022
  Xt as isMacLike,
5000
- Xl as isShortcutTaken,
5001
- ao as keyToSymbol,
5023
+ Ql as isShortcutTaken,
5024
+ oo as keyToSymbol,
5002
5025
  G as merge,
5003
5026
  Tt as mockChannel,
5004
- ro as optionOrAltSymbol,
5027
+ ao as optionOrAltSymbol,
5005
5028
  Zt as shortcutMatchesShortcut,
5006
- Zl as shortcutToHumanString,
5007
- j4 as types,
5008
- B4 as useAddonState,
5009
- D4 as useArgTypes,
5010
- N4 as useArgs,
5011
- wi as useChannel,
5012
- k4 as useGlobalTypes,
5013
- V4 as useGlobals,
5014
- H4 as useParameter,
5015
- Ri as useSharedState,
5016
- L4 as useStoryPrepared,
5029
+ ec as shortcutToHumanString,
5030
+ U4 as types,
5031
+ N4 as useAddonState,
5032
+ j4 as useArgTypes,
5033
+ V4 as useArgs,
5034
+ Ri as useChannel,
5035
+ D4 as useGlobalTypes,
5036
+ k4 as useGlobals,
5037
+ B4 as useParameter,
5038
+ Si as useSharedState,
5039
+ H4 as useStoryPrepared,
5017
5040
  Y as useStorybookApi,
5018
- z4 as useStorybookState
5041
+ L4 as useStorybookState
5019
5042
  };