storybook 10.1.0-alpha.9 → 10.1.0-beta.1

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 (198) hide show
  1. package/dist/_browser-chunks/Color-FTG7SQDA.js +1097 -0
  2. package/dist/_browser-chunks/WithTooltip-LMROHDUP.js +1651 -0
  3. package/dist/_browser-chunks/chunk-2FRVAXCZ.js +7 -0
  4. package/dist/_browser-chunks/{chunk-FDWKXLBI.js → chunk-2XZMBGTA.js} +44 -109
  5. package/dist/_browser-chunks/chunk-3IAH5M2U.js +171 -0
  6. package/dist/_browser-chunks/chunk-3OXGAGBE.js +779 -0
  7. package/dist/_browser-chunks/{chunk-TMDZCWME.js → chunk-3PJE6VLG.js} +1 -3
  8. package/dist/_browser-chunks/{chunk-VAMFPZY3.js → chunk-45UGUKRX.js} +2 -7
  9. package/dist/_browser-chunks/chunk-6XWLIJQL.js +11 -0
  10. package/dist/_browser-chunks/{chunk-MM7DTO55.js → chunk-A242L54C.js} +10 -16
  11. package/dist/_browser-chunks/chunk-AIOS4NGK.js +252 -0
  12. package/dist/_browser-chunks/chunk-AS2HQEYC.js +14 -0
  13. package/dist/_browser-chunks/chunk-AXG2BOBL.js +836 -0
  14. package/dist/_browser-chunks/{chunk-MH6AXFXB.js → chunk-CHUV5WSW.js} +0 -5
  15. package/dist/_browser-chunks/chunk-EUVGDK4H.js +93 -0
  16. package/dist/_browser-chunks/chunk-EZSQOHRI.js +18 -0
  17. package/dist/_browser-chunks/{chunk-CADGRH3P.js → chunk-FNXWN6IK.js} +3 -8
  18. package/dist/_browser-chunks/chunk-FQ7SLVLR.js +66 -0
  19. package/dist/_browser-chunks/chunk-GFLS4VP3.js +64 -0
  20. package/dist/_browser-chunks/chunk-GFY5R5EY.js +47 -0
  21. package/dist/_browser-chunks/{chunk-L2D73C6Z.js → chunk-H6XK3RSC.js} +13 -21
  22. package/dist/_browser-chunks/chunk-IPA5A322.js +71 -0
  23. package/dist/_browser-chunks/chunk-JP7NCOJX.js +37 -0
  24. package/dist/_browser-chunks/chunk-KJHJLCBK.js +11 -0
  25. package/dist/_browser-chunks/{chunk-OWPZQM2D.js → chunk-L4RMQ7D7.js} +60 -110
  26. package/dist/_browser-chunks/chunk-P4F4UVXX.js +951 -0
  27. package/dist/_browser-chunks/{chunk-AB7OOPUX.js → chunk-QKODTO7K.js} +0 -5
  28. package/dist/_browser-chunks/chunk-RP5RXKFU.js +2491 -0
  29. package/dist/_browser-chunks/chunk-SL75JR6Y.js +9 -0
  30. package/dist/_browser-chunks/chunk-SS2NHR7W.js +2969 -0
  31. package/dist/_browser-chunks/chunk-UD6FQLAF.js +1481 -0
  32. package/dist/_browser-chunks/chunk-VYJQ7RU5.js +2853 -0
  33. package/dist/_browser-chunks/chunk-WJYERY3R.js +136 -0
  34. package/dist/_browser-chunks/chunk-XJNX76GA.js +85 -0
  35. package/dist/_browser-chunks/{chunk-F4Q6SGTB.js → chunk-YKE5S47A.js} +177 -399
  36. package/dist/_browser-chunks/{chunk-SN4J4IQ3.js → chunk-ZUWEVLDX.js} +1 -7
  37. package/dist/_browser-chunks/{formatter-OMEEQ6HG.js → formatter-QJ4M4OGQ.js} +4 -9
  38. package/dist/_browser-chunks/{syntaxhighlighter-CAVLW7PM.js → syntaxhighlighter-IQDEPFLK.js} +704 -1848
  39. package/dist/_node-chunks/{builder-manager-SM3UWERX.js → builder-manager-FTVC2JL7.js} +510 -1019
  40. package/dist/_node-chunks/camelcase-3SMT5WKC.js +37 -0
  41. package/dist/_node-chunks/chunk-2OVULPK3.js +54 -0
  42. package/dist/_node-chunks/chunk-3JJPSDXI.js +3043 -0
  43. package/dist/_node-chunks/chunk-54NMJ4II.js +1564 -0
  44. package/dist/_node-chunks/chunk-5V4A6MSI.js +943 -0
  45. package/dist/_node-chunks/chunk-6DEMT5VX.js +299 -0
  46. package/dist/_node-chunks/{chunk-HHSTA6QS.js → chunk-6L7FFBOW.js} +8 -10
  47. package/dist/_node-chunks/chunk-6ULDIDXV.js +46662 -0
  48. package/dist/_node-chunks/chunk-AREL5IXS.js +603 -0
  49. package/dist/_node-chunks/chunk-DWA53E73.js +23 -0
  50. package/dist/_node-chunks/chunk-FNYKBULZ.js +765 -0
  51. package/dist/_node-chunks/chunk-IUYZQKSX.js +70 -0
  52. package/dist/_node-chunks/{chunk-F6EFOEC7.js → chunk-K673CX4Q.js} +469 -983
  53. package/dist/_node-chunks/chunk-KJAFCNZ3.js +61 -0
  54. package/dist/_node-chunks/chunk-N3BJOOY5.js +78 -0
  55. package/dist/_node-chunks/{chunk-EBUEXRH5.js → chunk-O5FMCQHP.js} +116 -276
  56. package/dist/_node-chunks/chunk-RIKQZHV3.js +29 -0
  57. package/dist/_node-chunks/chunk-RURZIE3W.js +3780 -0
  58. package/dist/_node-chunks/chunk-RVII4SK6.js +919 -0
  59. package/dist/_node-chunks/chunk-S3PBHOVC.js +6024 -0
  60. package/dist/_node-chunks/chunk-SQSFX47N.js +61 -0
  61. package/dist/_node-chunks/{chunk-SGM3ZCCT.js → chunk-TURUTKVH.js} +292 -688
  62. package/dist/_node-chunks/chunk-VRICJPXY.js +72 -0
  63. package/dist/_node-chunks/chunk-WIWWMCEU.js +119 -0
  64. package/dist/_node-chunks/{chunk-ATDHMMIZ.js → chunk-XGNRK7QB.js} +15 -24
  65. package/dist/_node-chunks/chunk-Y2FOTPAE.js +4523 -0
  66. package/dist/_node-chunks/{chunk-GHIBZRKD.js → chunk-Y4UYN72K.js} +8133 -8887
  67. package/dist/_node-chunks/chunk-Z4BMBA5L.js +18 -0
  68. package/dist/_node-chunks/chunk-ZMCJS2GU.js +20 -0
  69. package/dist/_node-chunks/dist-TZLZ3T6L.js +121 -0
  70. package/dist/_node-chunks/globby-22GFCZQD.js +3452 -0
  71. package/dist/_node-chunks/lib-37NQ4ZIJ.js +366 -0
  72. package/dist/_node-chunks/mdx-N42X6CFJ-2TRB7OEH.js +14329 -0
  73. package/dist/_node-chunks/p-limit-UD7TYFDW.js +116 -0
  74. package/dist/actions/decorator.js +21 -42
  75. package/dist/actions/index.js +3 -3
  76. package/dist/babel/index.d.ts +671 -335
  77. package/dist/babel/index.js +10 -11
  78. package/dist/bin/core.js +602 -1549
  79. package/dist/bin/dispatcher.js +36 -36
  80. package/dist/bin/loader.js +24 -38
  81. package/dist/channels/index.js +98 -234
  82. package/dist/cli/index.d.ts +1479 -133
  83. package/dist/cli/index.js +30 -8540
  84. package/dist/client-logger/index.js +31 -61
  85. package/dist/common/index.d.ts +139 -62
  86. package/dist/common/index.js +66 -51
  87. package/dist/components/index.d.ts +575 -273
  88. package/dist/components/index.js +14863 -4313
  89. package/dist/core-events/index.js +2 -66
  90. package/dist/core-server/index.d.ts +3 -2
  91. package/dist/core-server/index.js +2911 -8519
  92. package/dist/core-server/presets/common-manager.css +2 -2
  93. package/dist/core-server/presets/common-manager.js +2521 -5233
  94. package/dist/core-server/presets/common-override-preset.js +31 -60
  95. package/dist/core-server/presets/common-preset.js +663 -962
  96. package/dist/csf/index.js +534 -1179
  97. package/dist/csf-tools/index.js +9 -9
  98. package/dist/docs-tools/index.js +6 -6
  99. package/dist/highlight/index.js +2 -2
  100. package/dist/instrumenter/index.js +199 -415
  101. package/dist/manager/globals-runtime.js +59044 -67141
  102. package/dist/manager/globals.js +2 -3
  103. package/dist/manager/manager-stores.d.ts +1 -0
  104. package/dist/manager/manager-stores.js +23 -0
  105. package/dist/manager/runtime.js +11569 -10953
  106. package/dist/manager-api/index.d.ts +1813 -2
  107. package/dist/manager-api/index.js +1348 -2401
  108. package/dist/manager-errors.d.ts +9 -0
  109. package/dist/manager-errors.js +3 -3
  110. package/dist/mocking-utils/index.d.ts +1126 -0
  111. package/dist/mocking-utils/index.js +1181 -0
  112. package/dist/node-logger/index.d.ts +192 -24
  113. package/dist/node-logger/index.js +23 -4471
  114. package/dist/preview/globals.js +2 -3
  115. package/dist/preview/runtime.js +10799 -22393
  116. package/dist/preview-api/index.d.ts +1 -1
  117. package/dist/preview-api/index.js +13 -13
  118. package/dist/preview-errors.d.ts +9 -0
  119. package/dist/preview-errors.js +4 -4
  120. package/dist/router/index.js +347 -899
  121. package/dist/server-errors.d.ts +34 -1
  122. package/dist/server-errors.js +17 -10
  123. package/dist/telemetry/index.d.ts +24 -3
  124. package/dist/telemetry/index.js +25 -24
  125. package/dist/test/index.js +6131 -11916
  126. package/dist/theming/create.d.ts +1 -0
  127. package/dist/theming/create.js +4 -4
  128. package/dist/theming/index.d.ts +3366 -2599
  129. package/dist/theming/index.js +501 -1091
  130. package/dist/types/index.d.ts +72 -8
  131. package/dist/types/index.js +27 -12
  132. package/dist/viewport/index.js +3 -3
  133. package/package.json +26 -17
  134. package/dist/_browser-chunks/Color-7ZNS6F6B.js +0 -1676
  135. package/dist/_browser-chunks/WithTooltip-SK46ZJ2J.js +0 -13
  136. package/dist/_browser-chunks/chunk-6A7OIVEL.js +0 -66
  137. package/dist/_browser-chunks/chunk-B4A3ADP3.js +0 -3816
  138. package/dist/_browser-chunks/chunk-BOOOPFZF.js +0 -2335
  139. package/dist/_browser-chunks/chunk-FSBVR7H5.js +0 -106
  140. package/dist/_browser-chunks/chunk-FUOHXXZT.js +0 -23
  141. package/dist/_browser-chunks/chunk-GTKOCWCT.js +0 -17
  142. package/dist/_browser-chunks/chunk-HHW4FUMO.js +0 -12
  143. package/dist/_browser-chunks/chunk-JVSKG4YS.js +0 -4052
  144. package/dist/_browser-chunks/chunk-LASUB7TL.js +0 -76
  145. package/dist/_browser-chunks/chunk-LYCSRYYR.js +0 -101
  146. package/dist/_browser-chunks/chunk-NVV6MIOE.js +0 -243
  147. package/dist/_browser-chunks/chunk-OBXWFEPB.js +0 -852
  148. package/dist/_browser-chunks/chunk-OPCDBBL3.js +0 -48
  149. package/dist/_browser-chunks/chunk-PB6FZ3WE.js +0 -130
  150. package/dist/_browser-chunks/chunk-RNE2IUTB.js +0 -1300
  151. package/dist/_browser-chunks/chunk-RW5PKMWM.js +0 -4182
  152. package/dist/_browser-chunks/chunk-SYS437NN.js +0 -122
  153. package/dist/_browser-chunks/chunk-U46RQHA4.js +0 -12
  154. package/dist/_browser-chunks/chunk-UTNZYD2N.js +0 -311
  155. package/dist/_browser-chunks/chunk-VUAFL5XK.js +0 -20
  156. package/dist/_browser-chunks/chunk-XDGMHOV7.js +0 -2197
  157. package/dist/_browser-chunks/chunk-XW6KSYKF.js +0 -16
  158. package/dist/_browser-chunks/chunk-Y3M7TW6K.js +0 -1041
  159. package/dist/_browser-chunks/chunk-ZNRFDIVA.js +0 -233
  160. package/dist/_node-chunks/camelcase-H5QSGQLK.js +0 -18
  161. package/dist/_node-chunks/chunk-3THWHQOC.js +0 -61
  162. package/dist/_node-chunks/chunk-45YUOLTU.js +0 -69
  163. package/dist/_node-chunks/chunk-4QSNCPAU.js +0 -64656
  164. package/dist/_node-chunks/chunk-744PQSOU.js +0 -79
  165. package/dist/_node-chunks/chunk-74Z2U7QG.js +0 -1544
  166. package/dist/_node-chunks/chunk-7MB7TFPO.js +0 -1198
  167. package/dist/_node-chunks/chunk-A7GS4RFT.js +0 -697
  168. package/dist/_node-chunks/chunk-BIA3A5UM.js +0 -61
  169. package/dist/_node-chunks/chunk-C5G7CLWX.js +0 -1657
  170. package/dist/_node-chunks/chunk-DLFUKMYJ.js +0 -1531
  171. package/dist/_node-chunks/chunk-EMRGRXKT.js +0 -111
  172. package/dist/_node-chunks/chunk-EX46EHHY.js +0 -420
  173. package/dist/_node-chunks/chunk-F76QKNOJ.js +0 -304
  174. package/dist/_node-chunks/chunk-HDCRUTEF.js +0 -220
  175. package/dist/_node-chunks/chunk-HUYAOIPH.js +0 -90
  176. package/dist/_node-chunks/chunk-IBJZQZJC.js +0 -101
  177. package/dist/_node-chunks/chunk-KZN2RDDT.js +0 -6712
  178. package/dist/_node-chunks/chunk-LYUNFU3F.js +0 -4741
  179. package/dist/_node-chunks/chunk-N44SIS6K.js +0 -28
  180. package/dist/_node-chunks/chunk-NILZM6KR.js +0 -18
  181. package/dist/_node-chunks/chunk-PC4ZRP6W.js +0 -34
  182. package/dist/_node-chunks/chunk-TJNGOQUH.js +0 -4272
  183. package/dist/_node-chunks/chunk-UBSYLHIL.js +0 -1250
  184. package/dist/_node-chunks/chunk-UTCLXPOC.js +0 -1518
  185. package/dist/_node-chunks/chunk-WOXXODXP.js +0 -5029
  186. package/dist/_node-chunks/chunk-XC4MEUA6.js +0 -1586
  187. package/dist/_node-chunks/chunk-YRXXMKRR.js +0 -2256
  188. package/dist/_node-chunks/dist-SL73W244.js +0 -175
  189. package/dist/_node-chunks/globby-ZSHAUQZ5.js +0 -5222
  190. package/dist/_node-chunks/lib-U2VIPUTI.js +0 -518
  191. package/dist/_node-chunks/mdx-N42X6CFJ-ZLHD33JK.js +0 -22017
  192. package/dist/_node-chunks/p-limit-K5BS5MSV.js +0 -168
  193. package/dist/_node-chunks/plugin-5PD4YIUH.js +0 -129
  194. package/dist/_node-chunks/plugin-MONDT2WL.js +0 -159
  195. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-EUZJRG3W.js +0 -69102
  196. package/dist/_node-chunks/webpack-mock-plugin-T4LDXEHE.js +0 -124
  197. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +0 -36
  198. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +0 -33
@@ -224,9 +224,7 @@ var INITIAL_VIEWPORTS = {
224
224
  },
225
225
  type: "mobile"
226
226
  }
227
- };
228
- var DEFAULT_VIEWPORT = "responsive";
229
- var MINIMAL_VIEWPORTS = {
227
+ }, DEFAULT_VIEWPORT = "responsive", MINIMAL_VIEWPORTS = {
230
228
  mobile1: {
231
229
  name: "Small mobile",
232
230
  styles: {
@@ -1,18 +1,13 @@
1
- import {
2
- __name
3
- } from "./chunk-MM7DTO55.js";
4
-
5
1
  // ../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
6
2
  function _objectWithoutPropertiesLoose(r, e) {
7
- if (null == r) return {};
3
+ if (r == null) return {};
8
4
  var t = {};
9
5
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
10
- if (-1 !== e.indexOf(n)) continue;
6
+ if (e.indexOf(n) !== -1) continue;
11
7
  t[n] = r[n];
12
8
  }
13
9
  return t;
14
10
  }
15
- __name(_objectWithoutPropertiesLoose, "_objectWithoutPropertiesLoose");
16
11
 
17
12
  export {
18
13
  _objectWithoutPropertiesLoose
@@ -0,0 +1,11 @@
1
+ // src/actions/constants.ts
2
+ var PARAM_KEY = "actions", ADDON_ID = "storybook/actions", PANEL_ID = `${ADDON_ID}/panel`, EVENT_ID = `${ADDON_ID}/action-event`, CLEAR_ID = `${ADDON_ID}/action-clear`, CYCLIC_KEY = "$___storybook.isCyclic";
3
+
4
+ export {
5
+ PARAM_KEY,
6
+ ADDON_ID,
7
+ PANEL_ID,
8
+ EVENT_ID,
9
+ CLEAR_ID,
10
+ CYCLIC_KEY
11
+ };
@@ -2,28 +2,23 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
7
+ get: (a, b) => (typeof require < "u" ? require : a)[b]
10
8
  }) : x)(function(x) {
11
- if (typeof require !== "undefined") return require.apply(this, arguments);
9
+ if (typeof require < "u") return require.apply(this, arguments);
12
10
  throw Error('Dynamic require of "' + x + '" is not supported');
13
11
  });
14
- var __commonJS = (cb, mod) => function __require2() {
12
+ var __commonJS = (cb, mod) => function() {
15
13
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
14
  };
17
15
  var __export = (target, all) => {
18
16
  for (var name in all)
19
- __defProp(target, name, { get: all[name], enumerable: true });
20
- };
21
- var __copyProps = (to, from, except, desc) => {
22
- if (from && typeof from === "object" || typeof from === "function") {
17
+ __defProp(target, name, { get: all[name], enumerable: !0 });
18
+ }, __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from == "object" || typeof from == "function")
23
20
  for (let key of __getOwnPropNames(from))
24
- if (!__hasOwnProp.call(to, key) && key !== except)
25
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
26
- }
21
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
22
  return to;
28
23
  };
29
24
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
@@ -31,12 +26,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
26
  // file that has been converted to a CommonJS file using a Babel-
32
27
  // compatible transform (i.e. "__esModule" has not been set), then set
33
28
  // "default" to the CommonJS "module.exports" for node compatibility.
34
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
35
30
  mod
36
31
  ));
37
32
 
38
33
  export {
39
- __name,
40
34
  __require,
41
35
  __commonJS,
42
36
  __export,
@@ -0,0 +1,252 @@
1
+ import {
2
+ argumentsTag,
3
+ arrayBufferTag,
4
+ arrayTag,
5
+ booleanTag,
6
+ dataViewTag,
7
+ dateTag,
8
+ float32ArrayTag,
9
+ float64ArrayTag,
10
+ getSymbols,
11
+ getTag,
12
+ int16ArrayTag,
13
+ int32ArrayTag,
14
+ int8ArrayTag,
15
+ isPlainObject,
16
+ isPrimitive,
17
+ isTypedArray,
18
+ mapTag,
19
+ numberTag,
20
+ objectTag,
21
+ regexpTag,
22
+ setTag,
23
+ stringTag,
24
+ symbolTag,
25
+ uint16ArrayTag,
26
+ uint32ArrayTag,
27
+ uint8ArrayTag,
28
+ uint8ClampedArrayTag
29
+ } from "./chunk-GFLS4VP3.js";
30
+
31
+ // ../node_modules/es-toolkit/dist/object/mapValues.mjs
32
+ function mapValues(object, getNewValue) {
33
+ let result = {}, keys = Object.keys(object);
34
+ for (let i = 0; i < keys.length; i++) {
35
+ let key = keys[i], value = object[key];
36
+ result[key] = getNewValue(value, key, object);
37
+ }
38
+ return result;
39
+ }
40
+
41
+ // ../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
42
+ function isUnsafeProperty(key) {
43
+ return key === "__proto__";
44
+ }
45
+
46
+ // ../node_modules/es-toolkit/dist/object/mergeWith.mjs
47
+ function mergeWith(target, source, merge2) {
48
+ let sourceKeys = Object.keys(source);
49
+ for (let i = 0; i < sourceKeys.length; i++) {
50
+ let key = sourceKeys[i];
51
+ if (isUnsafeProperty(key))
52
+ continue;
53
+ let sourceValue = source[key], targetValue = target[key], merged = merge2(targetValue, sourceValue, key, target, source);
54
+ merged !== void 0 ? target[key] = merged : Array.isArray(sourceValue) ? Array.isArray(targetValue) ? target[key] = mergeWith(targetValue, sourceValue, merge2) : target[key] = mergeWith([], sourceValue, merge2) : isPlainObject(sourceValue) ? isPlainObject(targetValue) ? target[key] = mergeWith(targetValue, sourceValue, merge2) : target[key] = mergeWith({}, sourceValue, merge2) : (targetValue === void 0 || sourceValue !== void 0) && (target[key] = sourceValue);
55
+ }
56
+ return target;
57
+ }
58
+
59
+ // ../node_modules/es-toolkit/dist/object/pick.mjs
60
+ function pick(obj, keys) {
61
+ let result = {};
62
+ for (let i = 0; i < keys.length; i++) {
63
+ let key = keys[i];
64
+ Object.hasOwn(obj, key) && (result[key] = obj[key]);
65
+ }
66
+ return result;
67
+ }
68
+
69
+ // ../node_modules/es-toolkit/dist/object/pickBy.mjs
70
+ function pickBy(obj, shouldPick) {
71
+ let result = {}, keys = Object.keys(obj);
72
+ for (let i = 0; i < keys.length; i++) {
73
+ let key = keys[i], value = obj[key];
74
+ shouldPick(value, key) && (result[key] = value);
75
+ }
76
+ return result;
77
+ }
78
+
79
+ // ../node_modules/es-toolkit/dist/object/clone.mjs
80
+ function clone(obj) {
81
+ if (isPrimitive(obj))
82
+ return obj;
83
+ if (Array.isArray(obj) || isTypedArray(obj) || obj instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && obj instanceof SharedArrayBuffer)
84
+ return obj.slice(0);
85
+ let prototype = Object.getPrototypeOf(obj), Constructor = prototype.constructor;
86
+ if (obj instanceof Date || obj instanceof Map || obj instanceof Set)
87
+ return new Constructor(obj);
88
+ if (obj instanceof RegExp) {
89
+ let newRegExp = new Constructor(obj);
90
+ return newRegExp.lastIndex = obj.lastIndex, newRegExp;
91
+ }
92
+ if (obj instanceof DataView)
93
+ return new Constructor(obj.buffer.slice(0));
94
+ if (obj instanceof Error) {
95
+ let newError = new Constructor(obj.message);
96
+ return newError.stack = obj.stack, newError.name = obj.name, newError.cause = obj.cause, newError;
97
+ }
98
+ if (typeof File < "u" && obj instanceof File)
99
+ return new Constructor([obj], obj.name, { type: obj.type, lastModified: obj.lastModified });
100
+ if (typeof obj == "object") {
101
+ let newObject = Object.create(prototype);
102
+ return Object.assign(newObject, obj);
103
+ }
104
+ return obj;
105
+ }
106
+
107
+ // ../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
108
+ function cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = /* @__PURE__ */ new Map(), cloneValue = void 0) {
109
+ let cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);
110
+ if (cloned !== void 0)
111
+ return cloned;
112
+ if (isPrimitive(valueToClone))
113
+ return valueToClone;
114
+ if (stack.has(valueToClone))
115
+ return stack.get(valueToClone);
116
+ if (Array.isArray(valueToClone)) {
117
+ let result = new Array(valueToClone.length);
118
+ stack.set(valueToClone, result);
119
+ for (let i = 0; i < valueToClone.length; i++)
120
+ result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);
121
+ return Object.hasOwn(valueToClone, "index") && (result.index = valueToClone.index), Object.hasOwn(valueToClone, "input") && (result.input = valueToClone.input), result;
122
+ }
123
+ if (valueToClone instanceof Date)
124
+ return new Date(valueToClone.getTime());
125
+ if (valueToClone instanceof RegExp) {
126
+ let result = new RegExp(valueToClone.source, valueToClone.flags);
127
+ return result.lastIndex = valueToClone.lastIndex, result;
128
+ }
129
+ if (valueToClone instanceof Map) {
130
+ let result = /* @__PURE__ */ new Map();
131
+ stack.set(valueToClone, result);
132
+ for (let [key, value] of valueToClone)
133
+ result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue));
134
+ return result;
135
+ }
136
+ if (valueToClone instanceof Set) {
137
+ let result = /* @__PURE__ */ new Set();
138
+ stack.set(valueToClone, result);
139
+ for (let value of valueToClone)
140
+ result.add(cloneDeepWithImpl(value, void 0, objectToClone, stack, cloneValue));
141
+ return result;
142
+ }
143
+ if (typeof Buffer < "u" && Buffer.isBuffer(valueToClone))
144
+ return valueToClone.subarray();
145
+ if (isTypedArray(valueToClone)) {
146
+ let result = new (Object.getPrototypeOf(valueToClone)).constructor(valueToClone.length);
147
+ stack.set(valueToClone, result);
148
+ for (let i = 0; i < valueToClone.length; i++)
149
+ result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);
150
+ return result;
151
+ }
152
+ if (valueToClone instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && valueToClone instanceof SharedArrayBuffer)
153
+ return valueToClone.slice(0);
154
+ if (valueToClone instanceof DataView) {
155
+ let result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength);
156
+ return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
157
+ }
158
+ if (typeof File < "u" && valueToClone instanceof File) {
159
+ let result = new File([valueToClone], valueToClone.name, {
160
+ type: valueToClone.type
161
+ });
162
+ return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
163
+ }
164
+ if (typeof Blob < "u" && valueToClone instanceof Blob) {
165
+ let result = new Blob([valueToClone], { type: valueToClone.type });
166
+ return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
167
+ }
168
+ if (valueToClone instanceof Error) {
169
+ let result = new valueToClone.constructor();
170
+ return stack.set(valueToClone, result), result.message = valueToClone.message, result.name = valueToClone.name, result.stack = valueToClone.stack, result.cause = valueToClone.cause, copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
171
+ }
172
+ if (valueToClone instanceof Boolean) {
173
+ let result = new Boolean(valueToClone.valueOf());
174
+ return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
175
+ }
176
+ if (valueToClone instanceof Number) {
177
+ let result = new Number(valueToClone.valueOf());
178
+ return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
179
+ }
180
+ if (valueToClone instanceof String) {
181
+ let result = new String(valueToClone.valueOf());
182
+ return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
183
+ }
184
+ if (typeof valueToClone == "object" && isCloneableObject(valueToClone)) {
185
+ let result = Object.create(Object.getPrototypeOf(valueToClone));
186
+ return stack.set(valueToClone, result), copyProperties(result, valueToClone, objectToClone, stack, cloneValue), result;
187
+ }
188
+ return valueToClone;
189
+ }
190
+ function copyProperties(target, source, objectToClone = target, stack, cloneValue) {
191
+ let keys = [...Object.keys(source), ...getSymbols(source)];
192
+ for (let i = 0; i < keys.length; i++) {
193
+ let key = keys[i], descriptor = Object.getOwnPropertyDescriptor(target, key);
194
+ (descriptor == null || descriptor.writable) && (target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue));
195
+ }
196
+ }
197
+ function isCloneableObject(object) {
198
+ switch (getTag(object)) {
199
+ case argumentsTag:
200
+ case arrayTag:
201
+ case arrayBufferTag:
202
+ case dataViewTag:
203
+ case booleanTag:
204
+ case dateTag:
205
+ case float32ArrayTag:
206
+ case float64ArrayTag:
207
+ case int8ArrayTag:
208
+ case int16ArrayTag:
209
+ case int32ArrayTag:
210
+ case mapTag:
211
+ case numberTag:
212
+ case objectTag:
213
+ case regexpTag:
214
+ case setTag:
215
+ case stringTag:
216
+ case symbolTag:
217
+ case uint8ArrayTag:
218
+ case uint8ClampedArrayTag:
219
+ case uint16ArrayTag:
220
+ case uint32ArrayTag:
221
+ return !0;
222
+ default:
223
+ return !1;
224
+ }
225
+ }
226
+
227
+ // ../node_modules/es-toolkit/dist/object/cloneDeep.mjs
228
+ function cloneDeep(obj) {
229
+ return cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), void 0);
230
+ }
231
+
232
+ // ../node_modules/es-toolkit/dist/string/words.mjs
233
+ var CASE_SPLIT_PATTERN = new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+", "gu");
234
+
235
+ // ../node_modules/es-toolkit/dist/object/toMerged.mjs
236
+ function toMerged(target, source) {
237
+ return mergeWith(clone(target), source, function mergeRecursively(targetValue, sourceValue) {
238
+ if (Array.isArray(sourceValue))
239
+ return Array.isArray(targetValue) ? mergeWith(clone(targetValue), sourceValue, mergeRecursively) : mergeWith([], sourceValue, mergeRecursively);
240
+ if (isPlainObject(sourceValue))
241
+ return isPlainObject(targetValue) ? mergeWith(clone(targetValue), sourceValue, mergeRecursively) : mergeWith({}, sourceValue, mergeRecursively);
242
+ });
243
+ }
244
+
245
+ export {
246
+ cloneDeep,
247
+ mapValues,
248
+ mergeWith,
249
+ pick,
250
+ pickBy,
251
+ toMerged
252
+ };
@@ -0,0 +1,14 @@
1
+ // ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
2
+ var isProduction = process.env.NODE_ENV === "production", prefix = "Invariant failed";
3
+ function invariant(condition, message) {
4
+ if (!condition) {
5
+ if (isProduction)
6
+ throw new Error(prefix);
7
+ var provided = typeof message == "function" ? message() : message, value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
8
+ throw new Error(value);
9
+ }
10
+ }
11
+
12
+ export {
13
+ invariant
14
+ };