storybook 10.2.0-alpha.1 → 10.2.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/_browser-chunks/Color-E5XDEOX4.js +484 -0
  2. package/dist/_browser-chunks/{WithTooltip-IO6J4KBT.js → WithTooltip-65CFNBJE.js} +70 -70
  3. package/dist/_browser-chunks/{chunk-45UGUKRX.js → chunk-242VQQM5.js} +1 -1
  4. package/dist/_browser-chunks/chunk-2NDLAB5X.js +363 -0
  5. package/dist/_browser-chunks/{chunk-JP7NCOJX.js → chunk-3LY4VQVK.js} +1 -1
  6. package/dist/_browser-chunks/{chunk-XJNX76GA.js → chunk-54PNNATT.js} +3 -20
  7. package/dist/_browser-chunks/{chunk-VYJQ7RU5.js → chunk-6QKNWBQB.js} +17 -17
  8. package/dist/_browser-chunks/chunk-CLSHX4VX.js +4140 -0
  9. package/dist/_browser-chunks/{chunk-2XZMBGTA.js → chunk-DOSERVNW.js} +1 -1
  10. package/dist/_browser-chunks/chunk-HPYUT3WS.js +199 -0
  11. package/dist/_browser-chunks/{chunk-BRX2HXH7.js → chunk-IH6QJILI.js} +1 -1
  12. package/dist/_browser-chunks/{chunk-AS2HQEYC.js → chunk-IWQGIXJS.js} +1 -1
  13. package/dist/_browser-chunks/{chunk-UD6FQLAF.js → chunk-JK6U3MQW.js} +3 -3
  14. package/dist/_browser-chunks/{chunk-CHUV5WSW.js → chunk-LE2LTDW3.js} +1 -1
  15. package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
  16. package/dist/_browser-chunks/{chunk-RP5RXKFU.js → chunk-Q5RYDXT3.js} +38 -30
  17. package/dist/_browser-chunks/{chunk-AXG2BOBL.js → chunk-S6TK43XQ.js} +10 -10
  18. package/dist/_browser-chunks/{chunk-H6XK3RSC.js → chunk-UAYGIC3L.js} +6 -6
  19. package/dist/_browser-chunks/{chunk-YKE5S47A.js → chunk-V2VKKSMQ.js} +18 -18
  20. package/dist/_browser-chunks/chunk-VIJ7SQRO.js +568 -0
  21. package/dist/_browser-chunks/chunk-XCZK5QUJ.js +0 -0
  22. package/dist/_browser-chunks/{chunk-3OXGAGBE.js → chunk-XLJZ7AOP.js} +14 -14
  23. package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-Y6HZAT53.js} +10 -12
  24. package/dist/_browser-chunks/{chunk-P4F4UVXX.js → chunk-YKABRMAI.js} +15 -15
  25. package/dist/_browser-chunks/{chunk-WJYERY3R.js → chunk-ZCFV7BZB.js} +2 -2
  26. package/dist/_browser-chunks/{formatter-QJ4M4OGQ.js → formatter-EIJCOSYU.js} +2 -2
  27. package/dist/_browser-chunks/{syntaxhighlighter-IQDEPFLK.js → syntaxhighlighter-ED5Y7EFY.js} +119 -119
  28. package/dist/_node-chunks/{builder-manager-LXL5N6M5.js → builder-manager-U6SN6ZED.js} +22 -22
  29. package/dist/_node-chunks/{camelcase-64II7H4U.js → camelcase-GLXVGCEV.js} +8 -8
  30. package/dist/_node-chunks/{chunk-KMTK5W6O.js → chunk-2IFACTU4.js} +19 -19
  31. package/dist/_node-chunks/{chunk-5NWCBUGD.js → chunk-4VZME5CV.js} +6 -6
  32. package/dist/_node-chunks/{chunk-PGFQADZC.js → chunk-5SCVRD6U.js} +7 -7
  33. package/dist/_node-chunks/{chunk-VFTNRF5X.js → chunk-5ZGZ22PV.js} +17 -17
  34. package/dist/_node-chunks/{chunk-LEDV47V2.js → chunk-6RXAFKLM.js} +15 -15
  35. package/dist/_node-chunks/chunk-6WHPDWFA.js +61 -0
  36. package/dist/_node-chunks/chunk-B6AJKALV.js +20 -0
  37. package/dist/_node-chunks/{chunk-5GNBLJKS.js → chunk-C2G5ML5F.js} +8 -8
  38. package/dist/_node-chunks/chunk-CFCZ5PKC.js +18 -0
  39. package/dist/_node-chunks/{chunk-ET4VMMZG.js → chunk-DO56XDMZ.js} +10 -10
  40. package/dist/_node-chunks/{chunk-SR5ZYD7K.js → chunk-E6CKDKNL.js} +8 -8
  41. package/dist/_node-chunks/{chunk-77APSTTM.js → chunk-H4BZRGVO.js} +8 -8
  42. package/dist/_node-chunks/{chunk-TX77W2KY.js → chunk-HGYHQF7Z.js} +597 -593
  43. package/dist/_node-chunks/{chunk-4EZYJUAC.js → chunk-HKTRFCJD.js} +10 -10
  44. package/dist/_node-chunks/{chunk-KXDU466E.js → chunk-HYH2IT7K.js} +31 -31
  45. package/dist/_node-chunks/{chunk-R3WYNAT5.js → chunk-IKSK6CEY.js} +6 -6
  46. package/dist/_node-chunks/{chunk-VR5LMO3F.js → chunk-KP6H4S3L.js} +9 -9
  47. package/dist/_node-chunks/{chunk-JYMZJCZ7.js → chunk-LHBDNMEP.js} +66 -72
  48. package/dist/_node-chunks/{chunk-ZI2RAI3I.js → chunk-MUWHX7GN.js} +6 -6
  49. package/dist/_node-chunks/{chunk-AJUO2ZU3.js → chunk-N3O3HJMU.js} +9 -9
  50. package/dist/_node-chunks/{chunk-FTR6MHOX.js → chunk-NKUDIVPF.js} +619 -148
  51. package/dist/_node-chunks/chunk-O5OIO47U.js +23 -0
  52. package/dist/_node-chunks/{chunk-GYZQMMTN.js → chunk-Q27GKV7Y.js} +9 -9
  53. package/dist/_node-chunks/{chunk-4BQMSZKI.js → chunk-Q47IIVLL.js} +165 -191
  54. package/dist/_node-chunks/{chunk-F7377GT2.js → chunk-SM7QXYN4.js} +48 -32
  55. package/dist/_node-chunks/{chunk-CLNMK7MP.js → chunk-VKFEIIOF.js} +249 -240
  56. package/dist/_node-chunks/{chunk-TP6ICLTL.js → chunk-XYVZIRZC.js} +6 -6
  57. package/dist/_node-chunks/{chunk-GOOBGRAV.js → chunk-YPCGEC3N.js} +165 -21
  58. package/dist/_node-chunks/{dist-HGQ5R6JU.js → dist-GGDI7EVD.js} +10 -10
  59. package/dist/_node-chunks/{globby-5XJTXKUJ.js → globby-DY2UCDKN.js} +154 -154
  60. package/dist/_node-chunks/{lib-XNLTS2RI.js → lib-PFKECSVA.js} +16 -16
  61. package/dist/_node-chunks/{mdx-N42X6CFJ-7WF3QWVO.js → mdx-N42X6CFJ-OPAAI5WZ.js} +11 -11
  62. package/dist/_node-chunks/{p-limit-RBKYTJKF.js → p-limit-PMYE6ZFC.js} +8 -8
  63. package/dist/babel/index.js +10 -10
  64. package/dist/bin/core.js +40 -34
  65. package/dist/bin/dispatcher.js +11 -11
  66. package/dist/bin/loader.js +14 -11
  67. package/dist/channels/index.js +3 -3
  68. package/dist/cli/index.d.ts +2 -1
  69. package/dist/cli/index.js +18 -18
  70. package/dist/common/index.d.ts +25 -18
  71. package/dist/common/index.js +19 -19
  72. package/dist/components/index.d.ts +9 -2
  73. package/dist/components/index.js +327 -311
  74. package/dist/core-server/index.js +127 -127
  75. package/dist/core-server/presets/common-manager.css +2 -2
  76. package/dist/core-server/presets/common-manager.js +43 -38
  77. package/dist/core-server/presets/common-override-preset.js +9 -9
  78. package/dist/core-server/presets/common-preset.js +4390 -173
  79. package/dist/csf/index.js +39 -35
  80. package/dist/csf-tools/index.js +9 -9
  81. package/dist/docs-tools/index.js +6 -5
  82. package/dist/instrumenter/index.js +1 -1
  83. package/dist/manager/globals-runtime.js +21087 -14648
  84. package/dist/manager/runtime.js +148 -132
  85. package/dist/manager-api/index.js +31 -22
  86. package/dist/mocking-utils/index.js +14 -14
  87. package/dist/node-logger/index.d.ts +3 -3
  88. package/dist/node-logger/index.js +9 -9
  89. package/dist/preview/runtime.js +22291 -15810
  90. package/dist/preview-api/index.js +12 -11
  91. package/dist/preview-errors.js +2 -2
  92. package/dist/router/index.js +12 -13
  93. package/dist/server-errors.js +11 -11
  94. package/dist/telemetry/index.d.ts +1 -1
  95. package/dist/telemetry/index.js +23 -23
  96. package/dist/test/index.js +3237 -1653
  97. package/dist/theming/create.js +3 -3
  98. package/dist/theming/index.js +38 -38
  99. package/dist/types/index.d.ts +3 -1
  100. package/package.json +2 -8
  101. package/dist/_browser-chunks/Color-TNPFN3FC.js +0 -1097
  102. package/dist/_browser-chunks/chunk-3IAH5M2U.js +0 -171
  103. package/dist/_browser-chunks/chunk-AIOS4NGK.js +0 -252
  104. package/dist/_browser-chunks/chunk-EZSQOHRI.js +0 -18
  105. package/dist/_browser-chunks/chunk-GFLS4VP3.js +0 -64
  106. package/dist/_browser-chunks/chunk-QKODTO7K.js +0 -7
  107. package/dist/_node-chunks/chunk-COQ27OZ3.js +0 -61
  108. package/dist/_node-chunks/chunk-MC2R4DSD.js +0 -20
  109. package/dist/_node-chunks/chunk-NEENMS4J.js +0 -18
  110. package/dist/_node-chunks/chunk-XEPVDCRL.js +0 -23
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-FQ7SLVLR.js";
4
4
  import {
5
5
  dedent
6
- } from "./chunk-JP7NCOJX.js";
6
+ } from "./chunk-3LY4VQVK.js";
7
7
 
8
8
  // src/preview-errors.ts
9
9
  var Category = /* @__PURE__ */ ((Category2) => (Category2.BLOCKS = "BLOCKS", Category2.DOCS_TOOLS = "DOCS-TOOLS", Category2.PREVIEW_CLIENT_LOGGER = "PREVIEW_CLIENT-LOGGER", Category2.PREVIEW_CHANNELS = "PREVIEW_CHANNELS", Category2.PREVIEW_CORE_EVENTS = "PREVIEW_CORE-EVENTS", Category2.PREVIEW_INSTRUMENTER = "PREVIEW_INSTRUMENTER", Category2.PREVIEW_API = "PREVIEW_API", Category2.PREVIEW_REACT_DOM_SHIM = "PREVIEW_REACT-DOM-SHIM", Category2.PREVIEW_ROUTER = "PREVIEW_ROUTER", Category2.PREVIEW_THEMING = "PREVIEW_THEMING", Category2.RENDERER_HTML = "RENDERER_HTML", Category2.RENDERER_PREACT = "RENDERER_PREACT", Category2.RENDERER_REACT = "RENDERER_REACT", Category2.RENDERER_SERVER = "RENDERER_SERVER", Category2.RENDERER_SVELTE = "RENDERER_SVELTE", Category2.RENDERER_VUE = "RENDERER_VUE", Category2.RENDERER_VUE3 = "RENDERER_VUE3", Category2.RENDERER_WEB_COMPONENTS = "RENDERER_WEB-COMPONENTS", Category2.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", Category2.ADDON_VITEST = "ADDON_VITEST", Category2.ADDON_A11Y = "ADDON_A11Y", Category2))(Category || {}), MissingStoryAfterHmrError = class extends StorybookError {
@@ -0,0 +1,199 @@
1
+ // ../../node_modules/es-toolkit/dist/function/debounce.mjs
2
+ function debounce(func, debounceMs, { signal, edges } = {}) {
3
+ let pendingThis, pendingArgs = null, leading = edges != null && edges.includes("leading"), trailing = edges == null || edges.includes("trailing"), invoke = () => {
4
+ pendingArgs !== null && (func.apply(pendingThis, pendingArgs), pendingThis = void 0, pendingArgs = null);
5
+ }, onTimerEnd = () => {
6
+ trailing && invoke(), cancel();
7
+ }, timeoutId = null, schedule = () => {
8
+ timeoutId != null && clearTimeout(timeoutId), timeoutId = setTimeout(() => {
9
+ timeoutId = null, onTimerEnd();
10
+ }, debounceMs);
11
+ }, cancelTimer = () => {
12
+ timeoutId !== null && (clearTimeout(timeoutId), timeoutId = null);
13
+ }, cancel = () => {
14
+ cancelTimer(), pendingThis = void 0, pendingArgs = null;
15
+ }, flush = () => {
16
+ cancelTimer(), invoke();
17
+ }, debounced = function(...args) {
18
+ if (signal?.aborted)
19
+ return;
20
+ pendingThis = this, pendingArgs = args;
21
+ let isFirstCall = timeoutId == null;
22
+ schedule(), leading && isFirstCall && invoke();
23
+ };
24
+ return debounced.schedule = schedule, debounced.cancel = cancel, debounced.flush = flush, signal?.addEventListener("abort", cancel, { once: !0 }), debounced;
25
+ }
26
+
27
+ // ../../node_modules/es-toolkit/dist/function/partial.mjs
28
+ function partial(func, ...partialArgs) {
29
+ return partialImpl(func, placeholderSymbol, ...partialArgs);
30
+ }
31
+ function partialImpl(func, placeholder, ...partialArgs) {
32
+ let partialed = function(...providedArgs) {
33
+ let providedArgsIndex = 0, substitutedArgs = partialArgs.slice().map((arg) => arg === placeholder ? providedArgs[providedArgsIndex++] : arg), remainingArgs = providedArgs.slice(providedArgsIndex);
34
+ return func.apply(this, substitutedArgs.concat(remainingArgs));
35
+ };
36
+ return func.prototype && (partialed.prototype = Object.create(func.prototype)), partialed;
37
+ }
38
+ var placeholderSymbol = Symbol("partial.placeholder");
39
+ partial.placeholder = placeholderSymbol;
40
+
41
+ // ../../node_modules/es-toolkit/dist/function/partialRight.mjs
42
+ function partialRight(func, ...partialArgs) {
43
+ return partialRightImpl(func, placeholderSymbol2, ...partialArgs);
44
+ }
45
+ function partialRightImpl(func, placeholder, ...partialArgs) {
46
+ let partialedRight = function(...providedArgs) {
47
+ let placeholderLength = partialArgs.filter((arg) => arg === placeholder).length, rangeLength = Math.max(providedArgs.length - placeholderLength, 0), remainingArgs = providedArgs.slice(0, rangeLength), providedArgsIndex = rangeLength, substitutedArgs = partialArgs.slice().map((arg) => arg === placeholder ? providedArgs[providedArgsIndex++] : arg);
48
+ return func.apply(this, remainingArgs.concat(substitutedArgs));
49
+ };
50
+ return func.prototype && (partialedRight.prototype = Object.create(func.prototype)), partialedRight;
51
+ }
52
+ var placeholderSymbol2 = Symbol("partialRight.placeholder");
53
+ partialRight.placeholder = placeholderSymbol2;
54
+
55
+ // ../../node_modules/es-toolkit/dist/function/asyncNoop.mjs
56
+ async function asyncNoop() {
57
+ }
58
+
59
+ // ../../node_modules/es-toolkit/dist/function/identity.mjs
60
+ function identity(x) {
61
+ return x;
62
+ }
63
+
64
+ // ../../node_modules/es-toolkit/dist/function/memoize.mjs
65
+ function memoize(fn, options = {}) {
66
+ let { cache = /* @__PURE__ */ new Map(), getCacheKey } = options, memoizedFn = function(arg) {
67
+ let key = getCacheKey ? getCacheKey(arg) : arg;
68
+ if (cache.has(key))
69
+ return cache.get(key);
70
+ let result = fn.call(this, arg);
71
+ return cache.set(key, result), result;
72
+ };
73
+ return memoizedFn.cache = cache, memoizedFn;
74
+ }
75
+
76
+ // ../../node_modules/es-toolkit/dist/function/once.mjs
77
+ function once(func) {
78
+ let called = !1, cache;
79
+ return function(...args) {
80
+ return called || (called = !0, cache = func(...args)), cache;
81
+ };
82
+ }
83
+
84
+ // ../../node_modules/es-toolkit/dist/error/AbortError.mjs
85
+ var AbortError = class extends Error {
86
+ constructor(message = "The operation was aborted") {
87
+ super(message), this.name = "AbortError";
88
+ }
89
+ };
90
+
91
+ // ../../node_modules/es-toolkit/dist/promise/delay.mjs
92
+ function delay(ms, { signal } = {}) {
93
+ return new Promise((resolve, reject) => {
94
+ let abortError = () => {
95
+ reject(new AbortError());
96
+ }, abortHandler = () => {
97
+ clearTimeout(timeoutId), abortError();
98
+ };
99
+ if (signal?.aborted)
100
+ return abortError();
101
+ let timeoutId = setTimeout(() => {
102
+ signal?.removeEventListener("abort", abortHandler), resolve();
103
+ }, ms);
104
+ signal?.addEventListener("abort", abortHandler, { once: !0 });
105
+ });
106
+ }
107
+
108
+ // ../../node_modules/es-toolkit/dist/function/retry.mjs
109
+ var DEFAULT_DELAY = 0, DEFAULT_RETRIES = Number.POSITIVE_INFINITY;
110
+ async function retry(func, _options) {
111
+ let delay$1, retries, signal;
112
+ typeof _options == "number" ? (delay$1 = DEFAULT_DELAY, retries = _options, signal = void 0) : (delay$1 = _options?.delay ?? DEFAULT_DELAY, retries = _options?.retries ?? DEFAULT_RETRIES, signal = _options?.signal);
113
+ let error;
114
+ for (let attempts = 0; attempts < retries; attempts++) {
115
+ if (signal?.aborted)
116
+ throw error ?? new Error("The retry operation was aborted due to an abort signal.");
117
+ try {
118
+ return await func();
119
+ } catch (err) {
120
+ error = err;
121
+ let currentDelay = typeof delay$1 == "function" ? delay$1(attempts) : delay$1;
122
+ await delay(currentDelay);
123
+ }
124
+ }
125
+ throw error;
126
+ }
127
+
128
+ // ../../node_modules/es-toolkit/dist/function/ary.mjs
129
+ function ary(func, n) {
130
+ return function(...args) {
131
+ return func.apply(this, args.slice(0, n));
132
+ };
133
+ }
134
+
135
+ // ../../node_modules/es-toolkit/dist/function/unary.mjs
136
+ function unary(func) {
137
+ return ary(func, 1);
138
+ }
139
+
140
+ // ../../node_modules/es-toolkit/dist/function/negate.mjs
141
+ function negate(func) {
142
+ return ((...args) => !func(...args));
143
+ }
144
+
145
+ // ../../node_modules/es-toolkit/dist/function/flow.mjs
146
+ function flow(...funcs) {
147
+ return function(...args) {
148
+ let result = funcs.length ? funcs[0].apply(this, args) : args[0];
149
+ for (let i = 1; i < funcs.length; i++)
150
+ result = funcs[i].call(this, result);
151
+ return result;
152
+ };
153
+ }
154
+
155
+ // ../../node_modules/es-toolkit/dist/function/flowRight.mjs
156
+ function flowRight(...funcs) {
157
+ return flow(...funcs.reverse());
158
+ }
159
+
160
+ // ../../node_modules/es-toolkit/dist/function/rest.mjs
161
+ function rest(func, startIndex = func.length - 1) {
162
+ return function(...args) {
163
+ let rest2 = args.slice(startIndex), params = args.slice(0, startIndex);
164
+ for (; params.length < startIndex; )
165
+ params.push(void 0);
166
+ return func.apply(this, [...params, rest2]);
167
+ };
168
+ }
169
+
170
+ // ../../node_modules/es-toolkit/dist/function/after.mjs
171
+ function after(n, func) {
172
+ if (!Number.isInteger(n) || n < 0)
173
+ throw new Error("n must be a non-negative integer.");
174
+ let counter = 0;
175
+ return (...args) => {
176
+ if (++counter >= n)
177
+ return func(...args);
178
+ };
179
+ }
180
+
181
+ export {
182
+ partialImpl,
183
+ partialRightImpl,
184
+ AbortError,
185
+ asyncNoop,
186
+ identity,
187
+ memoize,
188
+ once,
189
+ delay,
190
+ retry,
191
+ ary,
192
+ unary,
193
+ negate,
194
+ debounce,
195
+ flow,
196
+ flowRight,
197
+ rest,
198
+ after
199
+ };
@@ -2,7 +2,7 @@ import {
2
2
  curriedDarken$1,
3
3
  curriedLighten$1,
4
4
  rgba
5
- } from "./chunk-AXG2BOBL.js";
5
+ } from "./chunk-S6TK43XQ.js";
6
6
 
7
7
  // src/theming/base.ts
8
8
  var color = {
@@ -1,4 +1,4 @@
1
- // ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
1
+ // ../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
2
2
  var isProduction = process.env.NODE_ENV === "production", prefix = "Invariant failed";
3
3
  function invariant(condition, message) {
4
4
  if (!condition) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dedent
3
- } from "./chunk-JP7NCOJX.js";
3
+ } from "./chunk-3LY4VQVK.js";
4
4
 
5
5
  // src/shared/universal-store/instances.ts
6
6
  var instances = /* @__PURE__ */ new Map();
@@ -368,7 +368,7 @@ _UniversalStore.InternalEventType = {
368
368
  _UniversalStore.isInternalConstructing = !1, _UniversalStore.setupPreparationPromise();
369
369
  var UniversalStore = _UniversalStore;
370
370
 
371
- // ../node_modules/telejson/dist/chunk-EAFQLD22.mjs
371
+ // ../../node_modules/telejson/dist/chunk-EAFQLD22.mjs
372
372
  var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJS = (cb, mod) => function() {
373
373
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
374
374
  }, __copyProps = (to, from, except, desc) => {
@@ -408,7 +408,7 @@ function extractEventHiddenProperties(event) {
408
408
  return rebuildEvent;
409
409
  }
410
410
 
411
- // ../node_modules/telejson/dist/index.mjs
411
+ // ../../node_modules/telejson/dist/index.mjs
412
412
  var require_es_object_atoms = __commonJS({
413
413
  "node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports, module) {
414
414
  "use strict";
@@ -1,4 +1,4 @@
1
- // ../node_modules/@babel/runtime/helpers/esm/extends.js
1
+ // ../../node_modules/@babel/runtime/helpers/esm/extends.js
2
2
  function _extends() {
3
3
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
4
4
  for (var e = 1; e < arguments.length; e++) {
@@ -0,0 +1,7 @@
1
+ // ../../node_modules/es-toolkit/dist/function/noop.mjs
2
+ function noop() {
3
+ }
4
+
5
+ export {
6
+ noop
7
+ };
@@ -1,4 +1,4 @@
1
- // ../node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
1
+ // ../../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
2
2
  var f = {
3
3
  reset: [0, 0],
4
4
  bold: [1, 22, "\x1B[22m\x1B[1m"],
@@ -80,10 +80,10 @@ function p(n = !1) {
80
80
  return u;
81
81
  }
82
82
 
83
- // ../node_modules/tinyrainbow/dist/browser.js
83
+ // ../../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/browser.js
84
84
  var s = p();
85
85
 
86
- // ../node_modules/@vitest/pretty-format/dist/index.js
86
+ // ../../node_modules/@vitest/utils/node_modules/@vitest/pretty-format/dist/index.js
87
87
  function _mergeNamespaces(n, m2) {
88
88
  return m2.forEach(function(e) {
89
89
  e && typeof e != "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
@@ -883,7 +883,7 @@ var plugins = {
883
883
  Error: ErrorPlugin
884
884
  };
885
885
 
886
- // ../node_modules/loupe/lib/helpers.js
886
+ // ../../node_modules/loupe/lib/helpers.js
887
887
  var ansiColors = {
888
888
  bold: ["1", "22"],
889
889
  dim: ["2", "22"],
@@ -999,7 +999,7 @@ function inspectProperty([key, value], options) {
999
999
  return options.truncate -= 2, typeof key == "string" ? key = quoteComplexKey(key) : typeof key != "number" && (key = `[${options.inspect(key, options)}]`), options.truncate -= key.length, value = options.inspect(value, options), `${key}: ${value}`;
1000
1000
  }
1001
1001
 
1002
- // ../node_modules/loupe/lib/array.js
1002
+ // ../../node_modules/loupe/lib/array.js
1003
1003
  function inspectArray(array, options) {
1004
1004
  let nonIndexProperties = Object.keys(array).slice(array.length);
1005
1005
  if (!array.length && !nonIndexProperties.length)
@@ -1011,7 +1011,7 @@ function inspectArray(array, options) {
1011
1011
  return nonIndexProperties.length && (propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty)), `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
1012
1012
  }
1013
1013
 
1014
- // ../node_modules/loupe/lib/typedarray.js
1014
+ // ../../node_modules/loupe/lib/typedarray.js
1015
1015
  var getArrayName = (array) => typeof Buffer == "function" && array instanceof Buffer ? "Buffer" : array[Symbol.toStringTag] ? array[Symbol.toStringTag] : array.constructor.name;
1016
1016
  function inspectTypedArray(array, options) {
1017
1017
  let name = getArrayName(array);
@@ -1032,7 +1032,7 @@ function inspectTypedArray(array, options) {
1032
1032
  return nonIndexProperties.length && (propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty)), `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
1033
1033
  }
1034
1034
 
1035
- // ../node_modules/loupe/lib/date.js
1035
+ // ../../node_modules/loupe/lib/date.js
1036
1036
  function inspectDate(dateObject, options) {
1037
1037
  let stringRepresentation = dateObject.toJSON();
1038
1038
  if (stringRepresentation === null)
@@ -1041,13 +1041,13 @@ function inspectDate(dateObject, options) {
1041
1041
  return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
1042
1042
  }
1043
1043
 
1044
- // ../node_modules/loupe/lib/function.js
1044
+ // ../../node_modules/loupe/lib/function.js
1045
1045
  function inspectFunction(func, options) {
1046
1046
  let functionType = func[Symbol.toStringTag] || "Function", name = func.name;
1047
1047
  return name ? options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special") : options.stylize(`[${functionType}]`, "special");
1048
1048
  }
1049
1049
 
1050
- // ../node_modules/loupe/lib/map.js
1050
+ // ../../node_modules/loupe/lib/map.js
1051
1051
  function inspectMapEntry([key, value], options) {
1052
1052
  return options.truncate -= 4, key = options.inspect(key, options), options.truncate -= key.length, value = options.inspect(value, options), `${key} => ${value}`;
1053
1053
  }
@@ -1061,25 +1061,25 @@ function inspectMap(map, options) {
1061
1061
  return map.size === 0 ? "Map{}" : (options.truncate -= 7, `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`);
1062
1062
  }
1063
1063
 
1064
- // ../node_modules/loupe/lib/number.js
1064
+ // ../../node_modules/loupe/lib/number.js
1065
1065
  var isNaN = Number.isNaN || ((i) => i !== i);
1066
1066
  function inspectNumber(number, options) {
1067
1067
  return isNaN(number) ? options.stylize("NaN", "number") : number === 1 / 0 ? options.stylize("Infinity", "number") : number === -1 / 0 ? options.stylize("-Infinity", "number") : number === 0 ? options.stylize(1 / number === 1 / 0 ? "+0" : "-0", "number") : options.stylize(truncate(String(number), options.truncate), "number");
1068
1068
  }
1069
1069
 
1070
- // ../node_modules/loupe/lib/bigint.js
1070
+ // ../../node_modules/loupe/lib/bigint.js
1071
1071
  function inspectBigInt(number, options) {
1072
1072
  let nums = truncate(number.toString(), options.truncate - 1);
1073
1073
  return nums !== truncator && (nums += "n"), options.stylize(nums, "bigint");
1074
1074
  }
1075
1075
 
1076
- // ../node_modules/loupe/lib/regexp.js
1076
+ // ../../node_modules/loupe/lib/regexp.js
1077
1077
  function inspectRegExp(value, options) {
1078
1078
  let flags = value.toString().split("/")[2], sourceLength = options.truncate - (2 + flags.length), source = value.source;
1079
1079
  return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
1080
1080
  }
1081
1081
 
1082
- // ../node_modules/loupe/lib/set.js
1082
+ // ../../node_modules/loupe/lib/set.js
1083
1083
  function arrayFromSet(set) {
1084
1084
  let values = [];
1085
1085
  return set.forEach((value) => {
@@ -1090,7 +1090,7 @@ function inspectSet(set, options) {
1090
1090
  return set.size === 0 ? "Set{}" : (options.truncate -= 7, `Set{ ${inspectList(arrayFromSet(set), options)} }`);
1091
1091
  }
1092
1092
 
1093
- // ../node_modules/loupe/lib/string.js
1093
+ // ../../node_modules/loupe/lib/string.js
1094
1094
  var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g"), escapeCharacters = {
1095
1095
  "\b": "\\b",
1096
1096
  " ": "\\t",
@@ -1107,15 +1107,24 @@ function inspectString(string, options) {
1107
1107
  return stringEscapeChars.test(string) && (string = string.replace(stringEscapeChars, escape)), options.stylize(`'${truncate(string, options.truncate - 2)}'`, "string");
1108
1108
  }
1109
1109
 
1110
- // ../node_modules/loupe/lib/symbol.js
1110
+ // ../../node_modules/loupe/lib/symbol.js
1111
1111
  function inspectSymbol(value) {
1112
1112
  return "description" in Symbol.prototype ? value.description ? `Symbol(${value.description})` : "Symbol()" : value.toString();
1113
1113
  }
1114
1114
 
1115
- // ../node_modules/loupe/lib/promise.js
1116
- var getPromiseValue = () => "Promise{\u2026}", promise_default = getPromiseValue;
1115
+ // ../../node_modules/loupe/lib/promise.js
1116
+ var getPromiseValue = () => "Promise{\u2026}";
1117
+ try {
1118
+ let { getPromiseDetails, kPending, kRejected } = process.binding("util");
1119
+ Array.isArray(getPromiseDetails(Promise.resolve())) && (getPromiseValue = (value, options) => {
1120
+ let [state, innerValue] = getPromiseDetails(value);
1121
+ return state === kPending ? "Promise{<pending>}" : `Promise${state === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
1122
+ });
1123
+ } catch {
1124
+ }
1125
+ var promise_default = getPromiseValue;
1117
1126
 
1118
- // ../node_modules/loupe/lib/object.js
1127
+ // ../../node_modules/loupe/lib/object.js
1119
1128
  function inspectObject(object, options) {
1120
1129
  let properties = Object.getOwnPropertyNames(object), symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
1121
1130
  if (properties.length === 0 && symbols.length === 0)
@@ -1129,19 +1138,19 @@ function inspectObject(object, options) {
1129
1138
  return propertyContents && symbolContents && (sep = ", "), `{ ${propertyContents}${sep}${symbolContents} }`;
1130
1139
  }
1131
1140
 
1132
- // ../node_modules/loupe/lib/class.js
1141
+ // ../../node_modules/loupe/lib/class.js
1133
1142
  var toStringTag = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
1134
1143
  function inspectClass(value, options) {
1135
1144
  let name = "";
1136
1145
  return toStringTag && toStringTag in value && (name = value[toStringTag]), name = name || value.constructor.name, (!name || name === "_class") && (name = "<Anonymous Class>"), options.truncate -= name.length, `${name}${inspectObject(value, options)}`;
1137
1146
  }
1138
1147
 
1139
- // ../node_modules/loupe/lib/arguments.js
1148
+ // ../../node_modules/loupe/lib/arguments.js
1140
1149
  function inspectArguments(args, options) {
1141
1150
  return args.length === 0 ? "Arguments[]" : (options.truncate -= 13, `Arguments[ ${inspectList(args, options)} ]`);
1142
1151
  }
1143
1152
 
1144
- // ../node_modules/loupe/lib/error.js
1153
+ // ../../node_modules/loupe/lib/error.js
1145
1154
  var errorKeys = [
1146
1155
  "stack",
1147
1156
  "line",
@@ -1166,7 +1175,7 @@ function inspectObject2(error, options) {
1166
1175
  return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
1167
1176
  }
1168
1177
 
1169
- // ../node_modules/loupe/lib/html.js
1178
+ // ../../node_modules/loupe/lib/html.js
1170
1179
  function inspectAttribute([key, value], options) {
1171
1180
  return options.truncate -= 3, value ? `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}` : `${options.stylize(String(key), "yellow")}`;
1172
1181
  }
@@ -1193,7 +1202,7 @@ function inspectHTML(element, options) {
1193
1202
  return children && children.length > truncate2 && (children = `${truncator}(${element.children.length})`), `${head}${propertyContents}${headClose}${children}${tail}`;
1194
1203
  }
1195
1204
 
1196
- // ../node_modules/loupe/lib/index.js
1205
+ // ../../node_modules/loupe/lib/index.js
1197
1206
  var symbolsSupported = typeof Symbol == "function" && typeof Symbol.for == "function", chaiInspect = symbolsSupported ? Symbol.for("chai/inspect") : "@@chai/inspect", nodeInspect = Symbol.for("nodejs.util.inspect.custom"), constructorMap = /* @__PURE__ */ new WeakMap(), stringTagMap = {}, baseTypesMap = {
1198
1207
  undefined: (value, options) => options.stylize("undefined", "undefined"),
1199
1208
  null: (value, options) => options.stylize("null", "null"),
@@ -1235,13 +1244,13 @@ var symbolsSupported = typeof Symbol == "function" && typeof Symbol.for == "func
1235
1244
  Error: inspectObject2,
1236
1245
  HTMLCollection: inspectNodeCollection,
1237
1246
  NodeList: inspectNodeCollection
1238
- }, inspectCustom = (value, options, type, inspectFn) => chaiInspect in value && typeof value[chaiInspect] == "function" ? value[chaiInspect](options) : nodeInspect in value && typeof value[nodeInspect] == "function" ? value[nodeInspect](options.depth, options, inspectFn) : "inspect" in value && typeof value.inspect == "function" ? value.inspect(options.depth, options) : "constructor" in value && constructorMap.has(value.constructor) ? constructorMap.get(value.constructor)(value, options) : stringTagMap[type] ? stringTagMap[type](value, options) : "", toString2 = Object.prototype.toString;
1247
+ }, inspectCustom = (value, options, type) => chaiInspect in value && typeof value[chaiInspect] == "function" ? value[chaiInspect](options) : nodeInspect in value && typeof value[nodeInspect] == "function" ? value[nodeInspect](options.depth, options) : "inspect" in value && typeof value.inspect == "function" ? value.inspect(options.depth, options) : "constructor" in value && constructorMap.has(value.constructor) ? constructorMap.get(value.constructor)(value, options) : stringTagMap[type] ? stringTagMap[type](value, options) : "", toString2 = Object.prototype.toString;
1239
1248
  function inspect(value, opts = {}) {
1240
1249
  let options = normaliseOptions(opts, inspect), { customInspect } = options, type = value === null ? "null" : typeof value;
1241
1250
  if (type === "object" && (type = toString2.call(value).slice(8, -1)), type in baseTypesMap)
1242
1251
  return baseTypesMap[type](value, options);
1243
1252
  if (customInspect && value) {
1244
- let output = inspectCustom(value, options, type, inspect);
1253
+ let output = inspectCustom(value, options, type);
1245
1254
  if (output)
1246
1255
  return typeof output == "string" ? output : inspect(output, options);
1247
1256
  }
@@ -1249,7 +1258,7 @@ function inspect(value, opts = {}) {
1249
1258
  return proto === Object.prototype || proto === null ? inspectObject(value, options) : value && typeof HTMLElement == "function" && value instanceof HTMLElement ? inspectHTML(value, options) : "constructor" in value ? value.constructor !== Object ? inspectClass(value, options) : inspectObject(value, options) : value === Object(value) ? inspectObject(value, options) : options.stylize(String(value), type);
1250
1259
  }
1251
1260
 
1252
- // ../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
1261
+ // ../../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
1253
1262
  var { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins, PLUGINS = [
1254
1263
  ReactTestComponent,
1255
1264
  ReactElement,
@@ -1348,7 +1357,7 @@ function getDefaultExportFromCjs2(x) {
1348
1357
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
1349
1358
  }
1350
1359
 
1351
- // ../node_modules/@vitest/utils/dist/helpers.js
1360
+ // ../../node_modules/@vitest/utils/dist/helpers.js
1352
1361
  function assertTypes(value, name, types) {
1353
1362
  let receivedType = typeof value;
1354
1363
  if (!types.includes(receivedType))
@@ -1414,7 +1423,7 @@ function clone(val, seen, options = defaultCloneOptions) {
1414
1423
  function noop() {
1415
1424
  }
1416
1425
 
1417
- // ../node_modules/@vitest/utils/dist/diff.js
1426
+ // ../../node_modules/@vitest/utils/dist/diff.js
1418
1427
  var DIFF_DELETE = -1, DIFF_INSERT = 1, DIFF_EQUAL = 0, Diff = class {
1419
1428
  0;
1420
1429
  1;
@@ -2381,7 +2390,7 @@ function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff2) {
2381
2390
  return diffs.reduce((reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff2 ? s.inverse(diff2[1]) : diff2[1] : ""), "");
2382
2391
  }
2383
2392
 
2384
- // ../node_modules/@vitest/utils/dist/error.js
2393
+ // ../../node_modules/@vitest/utils/dist/error.js
2385
2394
  var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@", IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
2386
2395
  function isImmutable(v) {
2387
2396
  return v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]);
@@ -2478,7 +2487,6 @@ Inner error message: ${err?.message}`));
2478
2487
  }
2479
2488
 
2480
2489
  export {
2481
- s,
2482
2490
  stringify,
2483
2491
  getDefaultExportFromCjs2 as getDefaultExportFromCjs,
2484
2492
  assertTypes,
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  _extends
3
- } from "./chunk-CHUV5WSW.js";
3
+ } from "./chunk-LE2LTDW3.js";
4
4
 
5
- // ../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
5
+ // ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
6
6
  function _assertThisInitialized(e) {
7
7
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8
8
  return e;
9
9
  }
10
10
 
11
- // ../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
11
+ // ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
12
12
  function _setPrototypeOf(t, e) {
13
13
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
14
14
  return t2.__proto__ = e2, t2;
15
15
  }, _setPrototypeOf(t, e);
16
16
  }
17
17
 
18
- // ../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
18
+ // ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
19
19
  function _inheritsLoose(t, o) {
20
20
  t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
21
21
  }
22
22
 
23
- // ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
23
+ // ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
24
24
  function _getPrototypeOf(t) {
25
25
  return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
26
26
  return t2.__proto__ || Object.getPrototypeOf(t2);
27
27
  }, _getPrototypeOf(t);
28
28
  }
29
29
 
30
- // ../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
30
+ // ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
31
31
  function _isNativeFunction(t) {
32
32
  try {
33
33
  return Function.toString.call(t).indexOf("[native code]") !== -1;
@@ -36,7 +36,7 @@ function _isNativeFunction(t) {
36
36
  }
37
37
  }
38
38
 
39
- // ../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
39
+ // ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
40
40
  function _isNativeReflectConstruct() {
41
41
  try {
42
42
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
@@ -48,7 +48,7 @@ function _isNativeReflectConstruct() {
48
48
  })();
49
49
  }
50
50
 
51
- // ../node_modules/@babel/runtime/helpers/esm/construct.js
51
+ // ../../node_modules/@babel/runtime/helpers/esm/construct.js
52
52
  function _construct(t, e, r) {
53
53
  if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
54
54
  var o = [null];
@@ -57,7 +57,7 @@ function _construct(t, e, r) {
57
57
  return r && _setPrototypeOf(p, r.prototype), p;
58
58
  }
59
59
 
60
- // ../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
60
+ // ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
61
61
  function _wrapNativeSuper(t) {
62
62
  var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
63
63
  return _wrapNativeSuper = function(t2) {
@@ -81,7 +81,7 @@ function _wrapNativeSuper(t) {
81
81
  }, _wrapNativeSuper(t);
82
82
  }
83
83
 
84
- // ../node_modules/polished/dist/polished.esm.js
84
+ // ../../node_modules/polished/dist/polished.esm.js
85
85
  var ERRORS = {
86
86
  1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
87
87
 
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  _objectWithoutPropertiesLoose
3
- } from "./chunk-45UGUKRX.js";
3
+ } from "./chunk-242VQQM5.js";
4
4
 
5
- // ../node_modules/@babel/runtime/helpers/esm/typeof.js
5
+ // ../../node_modules/@babel/runtime/helpers/esm/typeof.js
6
6
  function _typeof(o) {
7
7
  "@babel/helpers - typeof";
8
8
  return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
@@ -12,7 +12,7 @@ function _typeof(o) {
12
12
  }, _typeof(o);
13
13
  }
14
14
 
15
- // ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
15
+ // ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
16
16
  function toPrimitive(t, r) {
17
17
  if (_typeof(t) != "object" || !t) return t;
18
18
  var e = t[Symbol.toPrimitive];
@@ -24,13 +24,13 @@ function toPrimitive(t, r) {
24
24
  return (r === "string" ? String : Number)(t);
25
25
  }
26
26
 
27
- // ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
27
+ // ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
28
28
  function toPropertyKey(t) {
29
29
  var i = toPrimitive(t, "string");
30
30
  return _typeof(i) == "symbol" ? i : i + "";
31
31
  }
32
32
 
33
- // ../node_modules/@babel/runtime/helpers/esm/defineProperty.js
33
+ // ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
34
34
  function _defineProperty(e, r, t) {
35
35
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
36
36
  value: t,
@@ -40,7 +40,7 @@ function _defineProperty(e, r, t) {
40
40
  }) : e[r] = t, e;
41
41
  }
42
42
 
43
- // ../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
43
+ // ../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
44
44
  function _objectWithoutProperties(e, t) {
45
45
  if (e == null) return {};
46
46
  var o, r, i = _objectWithoutPropertiesLoose(e, t);