storybook 10.1.0-alpha.10 → 10.1.0-alpha.12

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 (192) 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-3IAH5M2U.js +171 -0
  5. package/dist/_browser-chunks/chunk-3OXGAGBE.js +779 -0
  6. package/dist/_browser-chunks/{chunk-TMDZCWME.js → chunk-3PJE6VLG.js} +1 -3
  7. package/dist/_browser-chunks/{chunk-VAMFPZY3.js → chunk-45UGUKRX.js} +2 -7
  8. package/dist/_browser-chunks/chunk-6XWLIJQL.js +11 -0
  9. package/dist/_browser-chunks/{chunk-FDWKXLBI.js → chunk-74YHFU5B.js} +44 -109
  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-BE2DAXKJ.js +2966 -0
  15. package/dist/_browser-chunks/{chunk-MH6AXFXB.js → chunk-CHUV5WSW.js} +0 -5
  16. package/dist/_browser-chunks/chunk-EBHB6RPS.js +61 -0
  17. package/dist/_browser-chunks/chunk-EUVGDK4H.js +93 -0
  18. package/dist/_browser-chunks/chunk-EZSQOHRI.js +18 -0
  19. package/dist/_browser-chunks/{chunk-CADGRH3P.js → chunk-FNXWN6IK.js} +3 -8
  20. package/dist/_browser-chunks/chunk-GFLS4VP3.js +64 -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-QMY4G4R2.js → chunk-L4RMQ7D7.js} +17 -64
  26. package/dist/_browser-chunks/{chunk-AB7OOPUX.js → chunk-QKODTO7K.js} +0 -5
  27. package/dist/_browser-chunks/chunk-RP5RXKFU.js +2491 -0
  28. package/dist/_browser-chunks/chunk-SL75JR6Y.js +9 -0
  29. package/dist/_browser-chunks/chunk-UD6FQLAF.js +1481 -0
  30. package/dist/_browser-chunks/chunk-VYJQ7RU5.js +2853 -0
  31. package/dist/_browser-chunks/chunk-WJYERY3R.js +136 -0
  32. package/dist/_browser-chunks/chunk-WXP2XJ3O.js +950 -0
  33. package/dist/_browser-chunks/chunk-X3DUQ5RA.js +47 -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-RJZASWHL.js → syntaxhighlighter-WKBQ5RC7.js} +704 -1848
  39. package/dist/_node-chunks/{builder-manager-HA7CYFCK.js → builder-manager-YUOHSIUB.js} +475 -1013
  40. package/dist/_node-chunks/camelcase-JREIL7NV.js +18 -0
  41. package/dist/_node-chunks/{chunk-RMHAL25C.js → chunk-2D2IODUU.js} +88 -228
  42. package/dist/_node-chunks/chunk-2DMESZFJ.js +943 -0
  43. package/dist/_node-chunks/chunk-4FT2DHGE.js +3009 -0
  44. package/dist/_node-chunks/chunk-5HV3B5OP.js +45571 -0
  45. package/dist/_node-chunks/{chunk-OVXB5GGT.js → chunk-5KLIDWFN.js} +292 -688
  46. package/dist/_node-chunks/chunk-A4APXFQ2.js +759 -0
  47. package/dist/_node-chunks/chunk-B6JWY6PC.js +37 -0
  48. package/dist/_node-chunks/chunk-CZ5GHJCC.js +603 -0
  49. package/dist/_node-chunks/chunk-DUXPWBOK.js +61 -0
  50. package/dist/_node-chunks/chunk-DWXTZT3D.js +58 -0
  51. package/dist/_node-chunks/chunk-E5FJS66Z.js +20 -0
  52. package/dist/_node-chunks/chunk-EZWWR7AR.js +936 -0
  53. package/dist/_node-chunks/chunk-FDXFVHIL.js +1114 -0
  54. package/dist/_node-chunks/{chunk-F3XOPI6H.js → chunk-FZLRAH4N.js} +469 -983
  55. package/dist/_node-chunks/chunk-HZG65SU3.js +34 -0
  56. package/dist/_node-chunks/chunk-IXVYNBMD.js +18 -0
  57. package/dist/_node-chunks/chunk-JARUEMEP.js +4523 -0
  58. package/dist/_node-chunks/chunk-LIH7MTP7.js +3214 -0
  59. package/dist/_node-chunks/chunk-N5GIRUP5.js +1047 -0
  60. package/dist/_node-chunks/{chunk-X4XU27M6.js → chunk-NAOYEL54.js} +15 -24
  61. package/dist/_node-chunks/chunk-O5DA7YLO.js +3171 -0
  62. package/dist/_node-chunks/chunk-OP3INKUD.js +54 -0
  63. package/dist/_node-chunks/chunk-QCO2ZM7F.js +209 -0
  64. package/dist/_node-chunks/chunk-QYQIZBS6.js +26 -0
  65. package/dist/_node-chunks/chunk-SEMIAAWG.js +1564 -0
  66. package/dist/_node-chunks/chunk-TS2UUH2J.js +301 -0
  67. package/dist/_node-chunks/chunk-WA6KZQZ2.js +119 -0
  68. package/dist/_node-chunks/{chunk-ZHSCUGNP.js → chunk-WFLWJO24.js} +3799 -7849
  69. package/dist/_node-chunks/chunk-WUXQMQCB.js +72 -0
  70. package/dist/_node-chunks/{chunk-VPR5IBMG.js → chunk-XXPJ7XR3.js} +8 -10
  71. package/dist/_node-chunks/chunk-Y4E6IGQF.js +61 -0
  72. package/dist/_node-chunks/chunk-ZL3AFKRX.js +1029 -0
  73. package/dist/_node-chunks/chunk-ZXSD6L3S.js +756 -0
  74. package/dist/_node-chunks/dist-DS2B5A3J.js +121 -0
  75. package/dist/_node-chunks/globby-6THB7HVX.js +3452 -0
  76. package/dist/_node-chunks/lib-5NKX4YGG.js +366 -0
  77. package/dist/_node-chunks/mdx-N42X6CFJ-ZLT3QOFF.js +14329 -0
  78. package/dist/_node-chunks/p-limit-PDMWNG7W.js +116 -0
  79. package/dist/_node-chunks/plugin-6XMWOGPO.js +123 -0
  80. package/dist/_node-chunks/{plugin-6ZPCS4LI.js → plugin-LTOXVT6A.js} +36 -56
  81. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-2SFE5LQS.js +46582 -0
  82. package/dist/_node-chunks/webpack-mock-plugin-CX5J2U56.js +92 -0
  83. package/dist/actions/decorator.js +21 -42
  84. package/dist/actions/index.js +3 -3
  85. package/dist/babel/index.d.ts +671 -335
  86. package/dist/babel/index.js +11 -11
  87. package/dist/bin/core.js +592 -1546
  88. package/dist/bin/dispatcher.js +26 -37
  89. package/dist/bin/loader.js +23 -34
  90. package/dist/channels/index.js +98 -234
  91. package/dist/cli/index.js +1951 -5308
  92. package/dist/client-logger/index.js +31 -61
  93. package/dist/common/index.js +20 -20
  94. package/dist/components/index.js +4211 -8586
  95. package/dist/core-events/index.js +2 -66
  96. package/dist/core-server/index.js +3054 -7290
  97. package/dist/core-server/presets/common-manager.css +2 -2
  98. package/dist/core-server/presets/common-manager.js +1806 -3427
  99. package/dist/core-server/presets/common-override-preset.js +31 -60
  100. package/dist/core-server/presets/common-preset.js +434 -924
  101. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +15 -19
  102. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +12 -17
  103. package/dist/csf/index.js +534 -1179
  104. package/dist/csf-tools/index.js +9 -9
  105. package/dist/docs-tools/index.js +6 -6
  106. package/dist/highlight/index.js +2 -2
  107. package/dist/instrumenter/index.js +199 -415
  108. package/dist/manager/globals-runtime.js +24150 -47364
  109. package/dist/manager/globals.js +2 -3
  110. package/dist/manager/runtime.js +3961 -8373
  111. package/dist/manager-api/index.js +1231 -2425
  112. package/dist/manager-errors.d.ts +3 -0
  113. package/dist/manager-errors.js +3 -3
  114. package/dist/node-logger/index.js +1253 -2601
  115. package/dist/preview/globals.js +2 -3
  116. package/dist/preview/runtime.js +10364 -21990
  117. package/dist/preview-api/index.d.ts +67 -68
  118. package/dist/preview-api/index.js +13 -13
  119. package/dist/preview-errors.d.ts +3 -0
  120. package/dist/preview-errors.js +4 -4
  121. package/dist/router/index.js +347 -899
  122. package/dist/server-errors.d.ts +3 -0
  123. package/dist/server-errors.js +10 -10
  124. package/dist/telemetry/index.js +24 -24
  125. package/dist/test/index.js +5860 -11645
  126. package/dist/theming/create.js +4 -4
  127. package/dist/theming/index.d.ts +3363 -2597
  128. package/dist/theming/index.js +490 -1086
  129. package/dist/types/index.js +2 -11
  130. package/dist/viewport/index.js +3 -3
  131. package/package.json +5 -5
  132. package/dist/_browser-chunks/Color-FQNEU7YS.js +0 -1695
  133. package/dist/_browser-chunks/WithTooltip-6NHN2GXF.js +0 -2343
  134. package/dist/_browser-chunks/chunk-6A7OIVEL.js +0 -66
  135. package/dist/_browser-chunks/chunk-AW46NMGV.js +0 -1308
  136. package/dist/_browser-chunks/chunk-B4A3ADP3.js +0 -3816
  137. package/dist/_browser-chunks/chunk-FSBVR7H5.js +0 -106
  138. package/dist/_browser-chunks/chunk-FUOHXXZT.js +0 -23
  139. package/dist/_browser-chunks/chunk-GTKOCWCT.js +0 -17
  140. package/dist/_browser-chunks/chunk-HHW4FUMO.js +0 -12
  141. package/dist/_browser-chunks/chunk-JVSKG4YS.js +0 -4052
  142. package/dist/_browser-chunks/chunk-LASUB7TL.js +0 -76
  143. package/dist/_browser-chunks/chunk-LYCSRYYR.js +0 -101
  144. package/dist/_browser-chunks/chunk-NVV6MIOE.js +0 -243
  145. package/dist/_browser-chunks/chunk-OBXWFEPB.js +0 -852
  146. package/dist/_browser-chunks/chunk-OPCDBBL3.js +0 -48
  147. package/dist/_browser-chunks/chunk-PB6FZ3WE.js +0 -130
  148. package/dist/_browser-chunks/chunk-RW5PKMWM.js +0 -4182
  149. package/dist/_browser-chunks/chunk-SYS437NN.js +0 -122
  150. package/dist/_browser-chunks/chunk-U46RQHA4.js +0 -12
  151. package/dist/_browser-chunks/chunk-UTNZYD2N.js +0 -311
  152. package/dist/_browser-chunks/chunk-VUAFL5XK.js +0 -20
  153. package/dist/_browser-chunks/chunk-XDGMHOV7.js +0 -2197
  154. package/dist/_browser-chunks/chunk-XW6KSYKF.js +0 -16
  155. package/dist/_browser-chunks/chunk-Y3M7TW6K.js +0 -1041
  156. package/dist/_browser-chunks/chunk-ZNRFDIVA.js +0 -233
  157. package/dist/_node-chunks/camelcase-QALD4XFE.js +0 -18
  158. package/dist/_node-chunks/chunk-2XY53ALL.js +0 -420
  159. package/dist/_node-chunks/chunk-3CBQMG2A.js +0 -6712
  160. package/dist/_node-chunks/chunk-3WDAPZYQ.js +0 -28
  161. package/dist/_node-chunks/chunk-4ZB555EJ.js +0 -697
  162. package/dist/_node-chunks/chunk-52DXKXY3.js +0 -4272
  163. package/dist/_node-chunks/chunk-5OVB4A6F.js +0 -69
  164. package/dist/_node-chunks/chunk-AGHGNXGH.js +0 -18
  165. package/dist/_node-chunks/chunk-B23X5ZCK.js +0 -1531
  166. package/dist/_node-chunks/chunk-B2DAHWJK.js +0 -220
  167. package/dist/_node-chunks/chunk-CC4PW5MJ.js +0 -34
  168. package/dist/_node-chunks/chunk-D7NIZELR.js +0 -2256
  169. package/dist/_node-chunks/chunk-DO5Q3H4L.js +0 -1250
  170. package/dist/_node-chunks/chunk-ECK7WVFX.js +0 -304
  171. package/dist/_node-chunks/chunk-EUH3NHXA.js +0 -79
  172. package/dist/_node-chunks/chunk-FOQHPHCV.js +0 -1657
  173. package/dist/_node-chunks/chunk-G6EL47NS.js +0 -111
  174. package/dist/_node-chunks/chunk-GFLS4TJB.js +0 -90
  175. package/dist/_node-chunks/chunk-J3XZKWHE.js +0 -1586
  176. package/dist/_node-chunks/chunk-LE63EHJ5.js +0 -1518
  177. package/dist/_node-chunks/chunk-M47XA42S.js +0 -4741
  178. package/dist/_node-chunks/chunk-OOI74AL3.js +0 -61
  179. package/dist/_node-chunks/chunk-PRJHT3GJ.js +0 -61
  180. package/dist/_node-chunks/chunk-Q52PVUSU.js +0 -101
  181. package/dist/_node-chunks/chunk-SDCF5RNN.js +0 -1198
  182. package/dist/_node-chunks/chunk-UJ5SJ23M.js +0 -5029
  183. package/dist/_node-chunks/chunk-UPHK4ETU.js +0 -64658
  184. package/dist/_node-chunks/chunk-V7VURIPB.js +0 -1544
  185. package/dist/_node-chunks/dist-6TXHNR5C.js +0 -175
  186. package/dist/_node-chunks/globby-PBTV6PX6.js +0 -5222
  187. package/dist/_node-chunks/lib-4RTDZVGX.js +0 -518
  188. package/dist/_node-chunks/mdx-N42X6CFJ-COWEH7KR.js +0 -22017
  189. package/dist/_node-chunks/p-limit-PBVZQOFY.js +0 -168
  190. package/dist/_node-chunks/plugin-EOZKYZAG.js +0 -159
  191. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-35HMSMR5.js +0 -69102
  192. package/dist/_node-chunks/webpack-mock-plugin-GT3MA5E2.js +0 -124
@@ -1,1041 +0,0 @@
1
- import {
2
- __commonJS,
3
- __name
4
- } from "./chunk-MM7DTO55.js";
5
-
6
- // ../node_modules/picoquery/lib/string-util.js
7
- var require_string_util = __commonJS({
8
- "../node_modules/picoquery/lib/string-util.js"(exports) {
9
- "use strict";
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.encodeString = encodeString;
12
- var hexTable = Array.from({ length: 256 }, (_, i) => "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase());
13
- var noEscape = new Int8Array([
14
- 0,
15
- 0,
16
- 0,
17
- 0,
18
- 0,
19
- 0,
20
- 0,
21
- 0,
22
- 0,
23
- 0,
24
- 0,
25
- 0,
26
- 0,
27
- 0,
28
- 0,
29
- 0,
30
- 0,
31
- 0,
32
- 0,
33
- 0,
34
- 0,
35
- 0,
36
- 0,
37
- 0,
38
- 0,
39
- 0,
40
- 0,
41
- 0,
42
- 0,
43
- 0,
44
- 0,
45
- 0,
46
- 0,
47
- 1,
48
- 0,
49
- 0,
50
- 0,
51
- 0,
52
- 0,
53
- 1,
54
- 1,
55
- 1,
56
- 1,
57
- 0,
58
- 0,
59
- 1,
60
- 1,
61
- 0,
62
- 1,
63
- 1,
64
- 1,
65
- 1,
66
- 1,
67
- 1,
68
- 1,
69
- 1,
70
- 1,
71
- 1,
72
- 0,
73
- 0,
74
- 0,
75
- 0,
76
- 0,
77
- 0,
78
- 0,
79
- 1,
80
- 1,
81
- 1,
82
- 1,
83
- 1,
84
- 1,
85
- 1,
86
- 1,
87
- 1,
88
- 1,
89
- 1,
90
- 1,
91
- 1,
92
- 1,
93
- 1,
94
- 1,
95
- 1,
96
- 1,
97
- 1,
98
- 1,
99
- 1,
100
- 1,
101
- 1,
102
- 1,
103
- 1,
104
- 1,
105
- 0,
106
- 0,
107
- 0,
108
- 0,
109
- 1,
110
- 0,
111
- 1,
112
- 1,
113
- 1,
114
- 1,
115
- 1,
116
- 1,
117
- 1,
118
- 1,
119
- 1,
120
- 1,
121
- 1,
122
- 1,
123
- 1,
124
- 1,
125
- 1,
126
- 1,
127
- 1,
128
- 1,
129
- 1,
130
- 1,
131
- 1,
132
- 1,
133
- 1,
134
- 1,
135
- 1,
136
- 1,
137
- 0,
138
- 0,
139
- 0,
140
- 1,
141
- 0
142
- ]);
143
- function encodeString(str) {
144
- const len = str.length;
145
- if (len === 0) {
146
- return "";
147
- }
148
- let out = "";
149
- let lastPos = 0;
150
- let i = 0;
151
- outer: for (; i < len; i++) {
152
- let c = str.charCodeAt(i);
153
- while (c < 128) {
154
- if (noEscape[c] !== 1) {
155
- if (lastPos < i)
156
- out += str.slice(lastPos, i);
157
- lastPos = i + 1;
158
- out += hexTable[c];
159
- }
160
- if (++i === len)
161
- break outer;
162
- c = str.charCodeAt(i);
163
- }
164
- if (lastPos < i)
165
- out += str.slice(lastPos, i);
166
- if (c < 2048) {
167
- lastPos = i + 1;
168
- out += hexTable[192 | c >> 6] + hexTable[128 | c & 63];
169
- continue;
170
- }
171
- if (c < 55296 || c >= 57344) {
172
- lastPos = i + 1;
173
- out += hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
174
- continue;
175
- }
176
- ++i;
177
- if (i >= len) {
178
- throw new Error("URI malformed");
179
- }
180
- const c2 = str.charCodeAt(i) & 1023;
181
- lastPos = i + 1;
182
- c = 65536 + ((c & 1023) << 10 | c2);
183
- out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
184
- }
185
- if (lastPos === 0)
186
- return str;
187
- if (lastPos < len)
188
- return out + str.slice(lastPos);
189
- return out;
190
- }
191
- __name(encodeString, "encodeString");
192
- }
193
- });
194
-
195
- // ../node_modules/picoquery/lib/shared.js
196
- var require_shared = __commonJS({
197
- "../node_modules/picoquery/lib/shared.js"(exports) {
198
- "use strict";
199
- Object.defineProperty(exports, "__esModule", { value: true });
200
- exports.defaultOptions = exports.defaultShouldSerializeObject = exports.defaultValueSerializer = void 0;
201
- var string_util_js_1 = require_string_util();
202
- var defaultValueSerializer = /* @__PURE__ */ __name((value) => {
203
- switch (typeof value) {
204
- case "string":
205
- return (0, string_util_js_1.encodeString)(value);
206
- case "bigint":
207
- case "boolean":
208
- return "" + value;
209
- case "number":
210
- if (Number.isFinite(value)) {
211
- return value < 1e21 ? "" + value : (0, string_util_js_1.encodeString)("" + value);
212
- }
213
- break;
214
- }
215
- if (value instanceof Date) {
216
- return (0, string_util_js_1.encodeString)(value.toISOString());
217
- }
218
- return "";
219
- }, "defaultValueSerializer");
220
- exports.defaultValueSerializer = defaultValueSerializer;
221
- var defaultShouldSerializeObject = /* @__PURE__ */ __name((val) => {
222
- return val instanceof Date;
223
- }, "defaultShouldSerializeObject");
224
- exports.defaultShouldSerializeObject = defaultShouldSerializeObject;
225
- var identityFunc = /* @__PURE__ */ __name((v) => v, "identityFunc");
226
- exports.defaultOptions = {
227
- nesting: true,
228
- nestingSyntax: "dot",
229
- arrayRepeat: false,
230
- arrayRepeatSyntax: "repeat",
231
- delimiter: 38,
232
- valueDeserializer: identityFunc,
233
- valueSerializer: exports.defaultValueSerializer,
234
- keyDeserializer: identityFunc,
235
- shouldSerializeObject: exports.defaultShouldSerializeObject
236
- };
237
- }
238
- });
239
-
240
- // ../node_modules/picoquery/lib/object-util.js
241
- var require_object_util = __commonJS({
242
- "../node_modules/picoquery/lib/object-util.js"(exports) {
243
- "use strict";
244
- Object.defineProperty(exports, "__esModule", { value: true });
245
- exports.getDeepObject = getDeepObject;
246
- exports.stringifyObject = stringifyObject;
247
- var shared_js_1 = require_shared();
248
- var string_util_js_1 = require_string_util();
249
- function isPrototypeKey(value) {
250
- return value === "__proto__" || value === "constructor" || value === "prototype";
251
- }
252
- __name(isPrototypeKey, "isPrototypeKey");
253
- function getDeepObject(obj, key, nextKey, forceObject, forceArray) {
254
- if (isPrototypeKey(key))
255
- return obj;
256
- const currObj = obj[key];
257
- if (typeof currObj === "object" && currObj !== null) {
258
- return currObj;
259
- }
260
- if (!forceObject && (forceArray || typeof nextKey === "number" || typeof nextKey === "string" && nextKey * 0 === 0 && nextKey.indexOf(".") === -1)) {
261
- return obj[key] = [];
262
- }
263
- return obj[key] = {};
264
- }
265
- __name(getDeepObject, "getDeepObject");
266
- var MAX_DEPTH = 20;
267
- var strBracketPair = "[]";
268
- var strBracketLeft = "[";
269
- var strBracketRight = "]";
270
- var strDot = ".";
271
- function stringifyObject(obj, options, depth = 0, parentKey, isProbableArray) {
272
- const { nestingSyntax = shared_js_1.defaultOptions.nestingSyntax, arrayRepeat = shared_js_1.defaultOptions.arrayRepeat, arrayRepeatSyntax = shared_js_1.defaultOptions.arrayRepeatSyntax, nesting = shared_js_1.defaultOptions.nesting, delimiter = shared_js_1.defaultOptions.delimiter, valueSerializer = shared_js_1.defaultOptions.valueSerializer, shouldSerializeObject = shared_js_1.defaultOptions.shouldSerializeObject } = options;
273
- const strDelimiter = typeof delimiter === "number" ? String.fromCharCode(delimiter) : delimiter;
274
- const useArrayRepeatKey = isProbableArray === true && arrayRepeat;
275
- const shouldUseDot = nestingSyntax === "dot" || nestingSyntax === "js" && !isProbableArray;
276
- if (depth > MAX_DEPTH) {
277
- return "";
278
- }
279
- let result = "";
280
- let firstKey = true;
281
- let valueIsProbableArray = false;
282
- for (const key in obj) {
283
- const value = obj[key];
284
- if (value === void 0) {
285
- continue;
286
- }
287
- let path;
288
- if (parentKey) {
289
- path = parentKey;
290
- if (useArrayRepeatKey) {
291
- if (arrayRepeatSyntax === "bracket") {
292
- path += strBracketPair;
293
- }
294
- } else if (shouldUseDot) {
295
- path += strDot;
296
- path += key;
297
- } else {
298
- path += strBracketLeft;
299
- path += key;
300
- path += strBracketRight;
301
- }
302
- } else {
303
- path = key;
304
- }
305
- if (!firstKey) {
306
- result += strDelimiter;
307
- }
308
- if (typeof value === "object" && value !== null && !shouldSerializeObject(value)) {
309
- valueIsProbableArray = value.pop !== void 0;
310
- if (nesting || arrayRepeat && valueIsProbableArray) {
311
- result += stringifyObject(value, options, depth + 1, path, valueIsProbableArray);
312
- }
313
- } else {
314
- result += (0, string_util_js_1.encodeString)(path);
315
- result += "=";
316
- result += valueSerializer(value, key);
317
- }
318
- if (firstKey) {
319
- firstKey = false;
320
- }
321
- }
322
- return result;
323
- }
324
- __name(stringifyObject, "stringifyObject");
325
- }
326
- });
327
-
328
- // ../node_modules/picoquery/lib/decode-uri-component.js
329
- var require_decode_uri_component = __commonJS({
330
- "../node_modules/picoquery/lib/decode-uri-component.js"(exports) {
331
- "use strict";
332
- Object.defineProperty(exports, "__esModule", { value: true });
333
- exports.decodeURIComponent = decodeURIComponent;
334
- var UTF8_ACCEPT = 12;
335
- var UTF8_REJECT = 0;
336
- var UTF8_DATA = [
337
- // The first part of the table maps bytes to character to a transition.
338
- 0,
339
- 0,
340
- 0,
341
- 0,
342
- 0,
343
- 0,
344
- 0,
345
- 0,
346
- 0,
347
- 0,
348
- 0,
349
- 0,
350
- 0,
351
- 0,
352
- 0,
353
- 0,
354
- 0,
355
- 0,
356
- 0,
357
- 0,
358
- 0,
359
- 0,
360
- 0,
361
- 0,
362
- 0,
363
- 0,
364
- 0,
365
- 0,
366
- 0,
367
- 0,
368
- 0,
369
- 0,
370
- 0,
371
- 0,
372
- 0,
373
- 0,
374
- 0,
375
- 0,
376
- 0,
377
- 0,
378
- 0,
379
- 0,
380
- 0,
381
- 0,
382
- 0,
383
- 0,
384
- 0,
385
- 0,
386
- 0,
387
- 0,
388
- 0,
389
- 0,
390
- 0,
391
- 0,
392
- 0,
393
- 0,
394
- 0,
395
- 0,
396
- 0,
397
- 0,
398
- 0,
399
- 0,
400
- 0,
401
- 0,
402
- 0,
403
- 0,
404
- 0,
405
- 0,
406
- 0,
407
- 0,
408
- 0,
409
- 0,
410
- 0,
411
- 0,
412
- 0,
413
- 0,
414
- 0,
415
- 0,
416
- 0,
417
- 0,
418
- 0,
419
- 0,
420
- 0,
421
- 0,
422
- 0,
423
- 0,
424
- 0,
425
- 0,
426
- 0,
427
- 0,
428
- 0,
429
- 0,
430
- 0,
431
- 0,
432
- 0,
433
- 0,
434
- 0,
435
- 0,
436
- 0,
437
- 0,
438
- 0,
439
- 0,
440
- 0,
441
- 0,
442
- 0,
443
- 0,
444
- 0,
445
- 0,
446
- 0,
447
- 0,
448
- 0,
449
- 0,
450
- 0,
451
- 0,
452
- 0,
453
- 0,
454
- 0,
455
- 0,
456
- 0,
457
- 0,
458
- 0,
459
- 0,
460
- 0,
461
- 0,
462
- 0,
463
- 0,
464
- 0,
465
- 0,
466
- 1,
467
- 1,
468
- 1,
469
- 1,
470
- 1,
471
- 1,
472
- 1,
473
- 1,
474
- 1,
475
- 1,
476
- 1,
477
- 1,
478
- 1,
479
- 1,
480
- 1,
481
- 1,
482
- 2,
483
- 2,
484
- 2,
485
- 2,
486
- 2,
487
- 2,
488
- 2,
489
- 2,
490
- 2,
491
- 2,
492
- 2,
493
- 2,
494
- 2,
495
- 2,
496
- 2,
497
- 2,
498
- 3,
499
- 3,
500
- 3,
501
- 3,
502
- 3,
503
- 3,
504
- 3,
505
- 3,
506
- 3,
507
- 3,
508
- 3,
509
- 3,
510
- 3,
511
- 3,
512
- 3,
513
- 3,
514
- 3,
515
- 3,
516
- 3,
517
- 3,
518
- 3,
519
- 3,
520
- 3,
521
- 3,
522
- 3,
523
- 3,
524
- 3,
525
- 3,
526
- 3,
527
- 3,
528
- 3,
529
- 3,
530
- 4,
531
- 4,
532
- 5,
533
- 5,
534
- 5,
535
- 5,
536
- 5,
537
- 5,
538
- 5,
539
- 5,
540
- 5,
541
- 5,
542
- 5,
543
- 5,
544
- 5,
545
- 5,
546
- 5,
547
- 5,
548
- 5,
549
- 5,
550
- 5,
551
- 5,
552
- 5,
553
- 5,
554
- 5,
555
- 5,
556
- 5,
557
- 5,
558
- 5,
559
- 5,
560
- 5,
561
- 5,
562
- 6,
563
- 7,
564
- 7,
565
- 7,
566
- 7,
567
- 7,
568
- 7,
569
- 7,
570
- 7,
571
- 7,
572
- 7,
573
- 7,
574
- 7,
575
- 8,
576
- 7,
577
- 7,
578
- 10,
579
- 9,
580
- 9,
581
- 9,
582
- 11,
583
- 4,
584
- 4,
585
- 4,
586
- 4,
587
- 4,
588
- 4,
589
- 4,
590
- 4,
591
- 4,
592
- 4,
593
- 4,
594
- // The second part of the table maps a state to a new state when adding a
595
- // transition.
596
- 0,
597
- 0,
598
- 0,
599
- 0,
600
- 0,
601
- 0,
602
- 0,
603
- 0,
604
- 0,
605
- 0,
606
- 0,
607
- 0,
608
- 12,
609
- 0,
610
- 0,
611
- 0,
612
- 0,
613
- 24,
614
- 36,
615
- 48,
616
- 60,
617
- 72,
618
- 84,
619
- 96,
620
- 0,
621
- 12,
622
- 12,
623
- 12,
624
- 0,
625
- 0,
626
- 0,
627
- 0,
628
- 0,
629
- 0,
630
- 0,
631
- 0,
632
- 0,
633
- 0,
634
- 0,
635
- 24,
636
- 0,
637
- 0,
638
- 0,
639
- 0,
640
- 0,
641
- 0,
642
- 0,
643
- 0,
644
- 0,
645
- 24,
646
- 24,
647
- 24,
648
- 0,
649
- 0,
650
- 0,
651
- 0,
652
- 0,
653
- 0,
654
- 0,
655
- 0,
656
- 0,
657
- 24,
658
- 24,
659
- 0,
660
- 0,
661
- 0,
662
- 0,
663
- 0,
664
- 0,
665
- 0,
666
- 0,
667
- 0,
668
- 0,
669
- 48,
670
- 48,
671
- 48,
672
- 0,
673
- 0,
674
- 0,
675
- 0,
676
- 0,
677
- 0,
678
- 0,
679
- 0,
680
- 0,
681
- 0,
682
- 48,
683
- 48,
684
- 0,
685
- 0,
686
- 0,
687
- 0,
688
- 0,
689
- 0,
690
- 0,
691
- 0,
692
- 0,
693
- 48,
694
- 0,
695
- 0,
696
- 0,
697
- 0,
698
- 0,
699
- 0,
700
- 0,
701
- 0,
702
- 0,
703
- 0,
704
- // The third part maps the current transition to a mask that needs to apply
705
- // to the byte.
706
- 127,
707
- 63,
708
- 63,
709
- 63,
710
- 0,
711
- 31,
712
- 15,
713
- 15,
714
- 15,
715
- 7,
716
- 7,
717
- 7
718
- ];
719
- function decodeURIComponent(uri) {
720
- let percentPosition = uri.indexOf("%");
721
- if (percentPosition === -1) {
722
- return uri;
723
- }
724
- const length = uri.length;
725
- let decoded = "";
726
- let last = 0;
727
- let codepoint = 0;
728
- let startOfOctets = percentPosition;
729
- let state = UTF8_ACCEPT;
730
- while (percentPosition > -1 && percentPosition < length) {
731
- const high = hexCodeToInt(uri[percentPosition + 1], 4);
732
- const low = hexCodeToInt(uri[percentPosition + 2], 0);
733
- const byte = high | low;
734
- const type = UTF8_DATA[byte];
735
- state = UTF8_DATA[256 + state + type];
736
- codepoint = codepoint << 6 | byte & UTF8_DATA[364 + type];
737
- if (state === UTF8_ACCEPT) {
738
- decoded += uri.slice(last, startOfOctets);
739
- decoded += codepoint <= 65535 ? String.fromCharCode(codepoint) : String.fromCharCode(55232 + (codepoint >> 10), 56320 + (codepoint & 1023));
740
- codepoint = 0;
741
- last = percentPosition + 3;
742
- percentPosition = startOfOctets = uri.indexOf("%", last);
743
- } else if (state === UTF8_REJECT) {
744
- return null;
745
- } else {
746
- percentPosition += 3;
747
- if (percentPosition < length && uri.charCodeAt(percentPosition) === 37)
748
- continue;
749
- return null;
750
- }
751
- }
752
- return decoded + uri.slice(last);
753
- }
754
- __name(decodeURIComponent, "decodeURIComponent");
755
- var HEX = {
756
- "0": 0,
757
- "1": 1,
758
- "2": 2,
759
- "3": 3,
760
- "4": 4,
761
- "5": 5,
762
- "6": 6,
763
- "7": 7,
764
- "8": 8,
765
- "9": 9,
766
- a: 10,
767
- A: 10,
768
- b: 11,
769
- B: 11,
770
- c: 12,
771
- C: 12,
772
- d: 13,
773
- D: 13,
774
- e: 14,
775
- E: 14,
776
- f: 15,
777
- F: 15
778
- };
779
- function hexCodeToInt(c, shift) {
780
- const i = HEX[c];
781
- return i === void 0 ? 255 : i << shift;
782
- }
783
- __name(hexCodeToInt, "hexCodeToInt");
784
- }
785
- });
786
-
787
- // ../node_modules/picoquery/lib/parse.js
788
- var require_parse = __commonJS({
789
- "../node_modules/picoquery/lib/parse.js"(exports) {
790
- "use strict";
791
- Object.defineProperty(exports, "__esModule", { value: true });
792
- exports.numberValueDeserializer = exports.numberKeyDeserializer = void 0;
793
- exports.parse = parse;
794
- var object_util_js_1 = require_object_util();
795
- var shared_js_1 = require_shared();
796
- var decode_uri_component_js_1 = require_decode_uri_component();
797
- var numberKeyDeserializer = /* @__PURE__ */ __name((key) => {
798
- const asNumber = Number(key);
799
- if (!Number.isNaN(asNumber)) {
800
- return asNumber;
801
- }
802
- return key;
803
- }, "numberKeyDeserializer");
804
- exports.numberKeyDeserializer = numberKeyDeserializer;
805
- var numberValueDeserializer = /* @__PURE__ */ __name((value) => {
806
- const asNumber = Number(value);
807
- if (!Number.isNaN(asNumber)) {
808
- return asNumber;
809
- }
810
- return value;
811
- }, "numberValueDeserializer");
812
- exports.numberValueDeserializer = numberValueDeserializer;
813
- var regexPlus = /\+/g;
814
- var Empty = /* @__PURE__ */ __name(function() {
815
- }, "Empty");
816
- Empty.prototype = /* @__PURE__ */ Object.create(null);
817
- function computeKeySlice(input, startIndex, endIndex, keyHasPlus, shouldDecodeKey) {
818
- let chunk = input.substring(startIndex, endIndex);
819
- if (keyHasPlus) {
820
- chunk = chunk.replace(regexPlus, " ");
821
- }
822
- if (shouldDecodeKey) {
823
- chunk = (0, decode_uri_component_js_1.decodeURIComponent)(chunk) || chunk;
824
- }
825
- return chunk;
826
- }
827
- __name(computeKeySlice, "computeKeySlice");
828
- function parse(input, options) {
829
- const { valueDeserializer = shared_js_1.defaultOptions.valueDeserializer, keyDeserializer = shared_js_1.defaultOptions.keyDeserializer, arrayRepeatSyntax = shared_js_1.defaultOptions.arrayRepeatSyntax, nesting = shared_js_1.defaultOptions.nesting, arrayRepeat = shared_js_1.defaultOptions.arrayRepeat, nestingSyntax = shared_js_1.defaultOptions.nestingSyntax, delimiter = shared_js_1.defaultOptions.delimiter } = options ?? {};
830
- const charDelimiter = typeof delimiter === "string" ? delimiter.charCodeAt(0) : delimiter;
831
- const isJsNestingSyntax = nestingSyntax === "js";
832
- const result = new Empty();
833
- if (typeof input !== "string") {
834
- return result;
835
- }
836
- const inputLength = input.length;
837
- let value = "";
838
- let startingIndex = -1;
839
- let equalityIndex = -1;
840
- let keySeparatorIndex = -1;
841
- let currentObj = result;
842
- let lastKey = void 0;
843
- let currentKey = "";
844
- let keyChunk = "";
845
- let shouldDecodeKey = false;
846
- let shouldDecodeValue = false;
847
- let keyHasPlus = false;
848
- let valueHasPlus = false;
849
- let keyIsDot = false;
850
- let hasBothKeyValuePair = false;
851
- let c = 0;
852
- let arrayRepeatBracketIndex = -1;
853
- let prevIndex = -1;
854
- let prevChar = -1;
855
- for (let i = 0; i < inputLength + 1; i++) {
856
- c = i !== inputLength ? input.charCodeAt(i) : charDelimiter;
857
- if (c === charDelimiter) {
858
- hasBothKeyValuePair = equalityIndex > startingIndex;
859
- if (!hasBothKeyValuePair) {
860
- equalityIndex = i;
861
- }
862
- if (keySeparatorIndex !== equalityIndex - 1) {
863
- keyChunk = computeKeySlice(input, keySeparatorIndex + 1, arrayRepeatBracketIndex > -1 ? arrayRepeatBracketIndex : equalityIndex, keyHasPlus, shouldDecodeKey);
864
- currentKey = keyDeserializer(keyChunk);
865
- if (lastKey !== void 0) {
866
- currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax && keyIsDot, void 0);
867
- }
868
- }
869
- if (hasBothKeyValuePair || currentKey !== "") {
870
- if (hasBothKeyValuePair) {
871
- value = input.slice(equalityIndex + 1, i);
872
- if (valueHasPlus) {
873
- value = value.replace(regexPlus, " ");
874
- }
875
- if (shouldDecodeValue) {
876
- value = (0, decode_uri_component_js_1.decodeURIComponent)(value) || value;
877
- }
878
- }
879
- const newValue = valueDeserializer(value, currentKey);
880
- if (arrayRepeat) {
881
- const currentValue = currentObj[currentKey];
882
- if (currentValue === void 0) {
883
- if (arrayRepeatBracketIndex > -1) {
884
- currentObj[currentKey] = [newValue];
885
- } else {
886
- currentObj[currentKey] = newValue;
887
- }
888
- } else if (currentValue.pop) {
889
- currentValue.push(newValue);
890
- } else {
891
- currentObj[currentKey] = [currentValue, newValue];
892
- }
893
- } else
894
- currentObj[currentKey] = newValue;
895
- }
896
- value = "";
897
- startingIndex = i;
898
- equalityIndex = i;
899
- shouldDecodeKey = false;
900
- shouldDecodeValue = false;
901
- keyHasPlus = false;
902
- valueHasPlus = false;
903
- keyIsDot = false;
904
- arrayRepeatBracketIndex = -1;
905
- keySeparatorIndex = i;
906
- currentObj = result;
907
- lastKey = void 0;
908
- currentKey = "";
909
- } else if (c === 93) {
910
- if (arrayRepeat && arrayRepeatSyntax === "bracket") {
911
- if (prevChar === 91) {
912
- arrayRepeatBracketIndex = prevIndex;
913
- }
914
- }
915
- if (nesting && (nestingSyntax === "index" || isJsNestingSyntax) && equalityIndex <= startingIndex) {
916
- if (keySeparatorIndex !== prevIndex) {
917
- keyChunk = computeKeySlice(input, keySeparatorIndex + 1, i, keyHasPlus, shouldDecodeKey);
918
- currentKey = keyDeserializer(keyChunk);
919
- if (lastKey !== void 0) {
920
- currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, void 0, void 0);
921
- }
922
- lastKey = currentKey;
923
- keyHasPlus = false;
924
- shouldDecodeKey = false;
925
- }
926
- keySeparatorIndex = i;
927
- keyIsDot = false;
928
- }
929
- } else if (c === 46) {
930
- if (nesting && (nestingSyntax === "dot" || isJsNestingSyntax) && equalityIndex <= startingIndex) {
931
- if (keySeparatorIndex !== prevIndex) {
932
- keyChunk = computeKeySlice(input, keySeparatorIndex + 1, i, keyHasPlus, shouldDecodeKey);
933
- currentKey = keyDeserializer(keyChunk);
934
- if (lastKey !== void 0) {
935
- currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax);
936
- }
937
- lastKey = currentKey;
938
- keyHasPlus = false;
939
- shouldDecodeKey = false;
940
- }
941
- keyIsDot = true;
942
- keySeparatorIndex = i;
943
- }
944
- } else if (c === 91) {
945
- if (nesting && (nestingSyntax === "index" || isJsNestingSyntax) && equalityIndex <= startingIndex) {
946
- if (keySeparatorIndex !== prevIndex) {
947
- keyChunk = computeKeySlice(input, keySeparatorIndex + 1, i, keyHasPlus, shouldDecodeKey);
948
- currentKey = keyDeserializer(keyChunk);
949
- if (isJsNestingSyntax && lastKey !== void 0) {
950
- currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax);
951
- }
952
- lastKey = currentKey;
953
- keyHasPlus = false;
954
- shouldDecodeKey = false;
955
- keyIsDot = false;
956
- }
957
- keySeparatorIndex = i;
958
- }
959
- } else if (c === 61) {
960
- if (equalityIndex <= startingIndex) {
961
- equalityIndex = i;
962
- } else {
963
- shouldDecodeValue = true;
964
- }
965
- } else if (c === 43) {
966
- if (equalityIndex > startingIndex) {
967
- valueHasPlus = true;
968
- } else {
969
- keyHasPlus = true;
970
- }
971
- } else if (c === 37) {
972
- if (equalityIndex > startingIndex) {
973
- shouldDecodeValue = true;
974
- } else {
975
- shouldDecodeKey = true;
976
- }
977
- }
978
- prevIndex = i;
979
- prevChar = c;
980
- }
981
- return result;
982
- }
983
- __name(parse, "parse");
984
- }
985
- });
986
-
987
- // ../node_modules/picoquery/lib/stringify.js
988
- var require_stringify = __commonJS({
989
- "../node_modules/picoquery/lib/stringify.js"(exports) {
990
- "use strict";
991
- Object.defineProperty(exports, "__esModule", { value: true });
992
- exports.stringify = stringify;
993
- var object_util_js_1 = require_object_util();
994
- function stringify(input, options) {
995
- if (input === null || typeof input !== "object") {
996
- return "";
997
- }
998
- const optionsObj = options ?? {};
999
- return (0, object_util_js_1.stringifyObject)(input, optionsObj);
1000
- }
1001
- __name(stringify, "stringify");
1002
- }
1003
- });
1004
-
1005
- // ../node_modules/picoquery/lib/main.js
1006
- var require_main = __commonJS({
1007
- "../node_modules/picoquery/lib/main.js"(exports) {
1008
- "use strict";
1009
- var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
1010
- if (k2 === void 0) k2 = k;
1011
- var desc = Object.getOwnPropertyDescriptor(m, k);
1012
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1013
- desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
1014
- return m[k];
1015
- }, "get") };
1016
- }
1017
- Object.defineProperty(o, k2, desc);
1018
- } : function(o, m, k, k2) {
1019
- if (k2 === void 0) k2 = k;
1020
- o[k2] = m[k];
1021
- });
1022
- var __exportStar = exports && exports.__exportStar || function(m, exports2) {
1023
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
1024
- };
1025
- Object.defineProperty(exports, "__esModule", { value: true });
1026
- exports.stringify = exports.parse = void 0;
1027
- var parse_js_1 = require_parse();
1028
- Object.defineProperty(exports, "parse", { enumerable: true, get: /* @__PURE__ */ __name(function() {
1029
- return parse_js_1.parse;
1030
- }, "get") });
1031
- var stringify_js_1 = require_stringify();
1032
- Object.defineProperty(exports, "stringify", { enumerable: true, get: /* @__PURE__ */ __name(function() {
1033
- return stringify_js_1.stringify;
1034
- }, "get") });
1035
- __exportStar(require_shared(), exports);
1036
- }
1037
- });
1038
-
1039
- export {
1040
- require_main
1041
- };