storybook 9.0.0-alpha.12 → 9.0.0-alpha.14

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 (89) hide show
  1. package/assets/docs/addon-backgrounds.gif +0 -0
  2. package/assets/docs/highlight.png +0 -0
  3. package/dist/actions/decorator.js +46 -47
  4. package/dist/actions/index.cjs +28 -29
  5. package/dist/actions/index.d.ts +0 -3
  6. package/dist/actions/index.js +27 -28
  7. package/dist/actions/preview.cjs +22 -23
  8. package/dist/actions/preview.js +18 -19
  9. package/dist/backgrounds/index.cjs +148 -0
  10. package/dist/backgrounds/index.d.ts +91 -0
  11. package/dist/backgrounds/index.js +130 -0
  12. package/dist/backgrounds/preview.cjs +143 -0
  13. package/dist/backgrounds/preview.d.ts +54 -0
  14. package/dist/backgrounds/preview.js +127 -0
  15. package/dist/bin/index.cjs +62 -73
  16. package/dist/bin/index.js +57 -68
  17. package/dist/builder-manager/index.cjs +390 -380
  18. package/dist/builder-manager/index.js +489 -479
  19. package/dist/channels/index.cjs +1018 -948
  20. package/dist/channels/index.js +1194 -1161
  21. package/dist/cli/bin/index.cjs +225 -225
  22. package/dist/cli/bin/index.js +234 -234
  23. package/dist/cli/index.cjs +1860 -1873
  24. package/dist/cli/index.js +308 -321
  25. package/dist/common/index.cjs +2396 -2380
  26. package/dist/common/index.d.ts +0 -11
  27. package/dist/common/index.js +2604 -2588
  28. package/dist/components/index.cjs +6393 -12704
  29. package/dist/components/index.d.ts +1 -2
  30. package/dist/components/index.js +4665 -10778
  31. package/dist/core-events/index.cjs +72 -84
  32. package/dist/core-events/index.d.ts +2 -77
  33. package/dist/core-events/index.js +61 -73
  34. package/dist/core-server/index.cjs +13484 -13318
  35. package/dist/core-server/index.js +13652 -13486
  36. package/dist/core-server/presets/common-manager.js +9815 -12
  37. package/dist/core-server/presets/common-preset.cjs +2809 -3005
  38. package/dist/core-server/presets/common-preset.js +2891 -3087
  39. package/dist/docs-tools/index.cjs +626 -600
  40. package/dist/docs-tools/index.js +613 -587
  41. package/dist/highlight/index.cjs +27 -0
  42. package/dist/highlight/index.d.ts +17 -0
  43. package/dist/highlight/index.js +7 -0
  44. package/dist/highlight/preview.cjs +81 -0
  45. package/dist/highlight/preview.d.ts +54 -0
  46. package/dist/highlight/preview.js +67 -0
  47. package/dist/instrumenter/index.cjs +70 -60
  48. package/dist/instrumenter/index.d.ts +8 -7
  49. package/dist/instrumenter/index.js +98 -88
  50. package/dist/manager/globals-module-info.cjs +12 -22
  51. package/dist/manager/globals-module-info.js +2 -12
  52. package/dist/manager/globals-runtime.js +31295 -33999
  53. package/dist/manager/runtime.js +3419 -3522
  54. package/dist/manager-api/index.cjs +2521 -2445
  55. package/dist/manager-api/index.d.ts +7 -21
  56. package/dist/manager-api/index.js +2431 -2349
  57. package/dist/measure/index.cjs +474 -0
  58. package/dist/measure/index.d.ts +66 -0
  59. package/dist/measure/index.js +462 -0
  60. package/dist/measure/preview.cjs +464 -0
  61. package/dist/measure/preview.d.ts +59 -0
  62. package/dist/measure/preview.js +448 -0
  63. package/dist/outline/index.cjs +528 -0
  64. package/dist/outline/index.d.ts +66 -0
  65. package/dist/outline/index.js +500 -0
  66. package/dist/outline/preview.cjs +518 -0
  67. package/dist/outline/preview.d.ts +59 -0
  68. package/dist/outline/preview.js +486 -0
  69. package/dist/preview/runtime.js +20735 -17220
  70. package/dist/preview-api/index.cjs +1069 -1057
  71. package/dist/preview-api/index.d.ts +384 -157
  72. package/dist/preview-api/index.js +1123 -1109
  73. package/dist/server-errors.cjs +66 -67
  74. package/dist/server-errors.d.ts +0 -1
  75. package/dist/server-errors.js +68 -69
  76. package/dist/test/index.cjs +1547 -1546
  77. package/dist/test/index.js +2308 -2307
  78. package/dist/test/preview.cjs +1906 -1905
  79. package/dist/test/preview.js +1439 -1438
  80. package/dist/test/spy.cjs +65 -64
  81. package/dist/test/spy.js +59 -58
  82. package/dist/types/index.cjs +10 -10
  83. package/dist/types/index.d.ts +203 -243
  84. package/package.json +122 -17
  85. package/dist/actions/manager.js +0 -1195
  86. package/dist/component-testing/manager.js +0 -3126
  87. package/dist/controls/manager.js +0 -5593
  88. package/dist/viewport/manager.js +0 -400
  89. /package/dist/{component-testing/manager.css → core-server/presets/common-manager.css} +0 -0
@@ -1,67 +1,67 @@
1
- var mr = Object.create;
2
- var Ae = Object.defineProperty;
3
- var yr = Object.getOwnPropertyDescriptor;
4
- var fr = Object.getOwnPropertyNames;
5
- var dr = Object.getPrototypeOf, Tr = Object.prototype.hasOwnProperty;
6
- var r = (n, s) => Ae(n, "name", { value: s, configurable: !0 });
7
- var gr = (n, s) => () => (s || n((s = { exports: {} }).exports, s), s.exports);
8
- var hr = (n, s, a, p) => {
1
+ var fr = Object.create;
2
+ var Re = Object.defineProperty;
3
+ var dr = Object.getOwnPropertyDescriptor;
4
+ var Tr = Object.getOwnPropertyNames;
5
+ var gr = Object.getPrototypeOf, hr = Object.prototype.hasOwnProperty;
6
+ var r = (n, s) => Re(n, "name", { value: s, configurable: !0 });
7
+ var xr = (n, s) => () => (s || n((s = { exports: {} }).exports, s), s.exports);
8
+ var Jr = (n, s, a, p) => {
9
9
  if (s && typeof s == "object" || typeof s == "function")
10
- for (let c of fr(s))
11
- !Tr.call(n, c) && c !== a && Ae(n, c, { get: () => s[c], enumerable: !(p = yr(s, c)) || p.enumerable });
10
+ for (let c of Tr(s))
11
+ !hr.call(n, c) && c !== a && Re(n, c, { get: () => s[c], enumerable: !(p = dr(s, c)) || p.enumerable });
12
12
  return n;
13
13
  };
14
- var xr = (n, s, a) => (a = n != null ? mr(dr(n)) : {}, hr(
14
+ var wr = (n, s, a) => (a = n != null ? fr(gr(n)) : {}, Jr(
15
15
  // If the importer is in node compatibility mode or this is not an ESM
16
16
  // file that has been converted to a CommonJS file using a Babel-
17
17
  // compatible transform (i.e. "__esModule" has not been set), then set
18
18
  // "default" to the CommonJS "module.exports" for node compatibility.
19
- s || !n || !n.__esModule ? Ae(a, "default", { value: n, enumerable: !0 }) : a,
19
+ s || !n || !n.__esModule ? Re(a, "default", { value: n, enumerable: !0 }) : a,
20
20
  n
21
21
  ));
22
22
 
23
23
  // ../node_modules/jsdoc-type-pratt-parser/dist/index.js
24
- var yt = gr((me, mt) => {
24
+ var dt = xr((ye, ft) => {
25
25
  (function(n, s) {
26
- typeof me == "object" && typeof mt < "u" ? s(me) : typeof define == "function" && define.amd ? define(["exports"], s) : (n = typeof globalThis <
26
+ typeof ye == "object" && typeof ft < "u" ? s(ye) : typeof define == "function" && define.amd ? define(["exports"], s) : (n = typeof globalThis <
27
27
  "u" ? globalThis : n || self, s(n.jtpp = {}));
28
- })(me, function(n) {
28
+ })(ye, function(n) {
29
29
  "use strict";
30
30
  function s(e) {
31
31
  return e.text !== void 0 && e.text !== "" ? `'${e.type}' with value '${e.text}'` : `'${e.type}'`;
32
32
  }
33
33
  r(s, "tokenToString");
34
- let re = class re extends Error {
34
+ let ne = class ne extends Error {
35
35
  constructor(t) {
36
- super(`No parslet found for token: ${s(t)}`), this.token = t, Object.setPrototypeOf(this, re.prototype);
36
+ super(`No parslet found for token: ${s(t)}`), this.token = t, Object.setPrototypeOf(this, ne.prototype);
37
37
  }
38
38
  getToken() {
39
39
  return this.token;
40
40
  }
41
41
  };
42
- r(re, "NoParsletFoundError");
43
- let a = re, ne = class ne extends Error {
42
+ r(ne, "NoParsletFoundError");
43
+ let a = ne, oe = class oe extends Error {
44
44
  constructor(t) {
45
- super(`The parsing ended early. The next token was: ${s(t)}`), this.token = t, Object.setPrototypeOf(this, ne.prototype);
45
+ super(`The parsing ended early. The next token was: ${s(t)}`), this.token = t, Object.setPrototypeOf(this, oe.prototype);
46
46
  }
47
47
  getToken() {
48
48
  return this.token;
49
49
  }
50
50
  };
51
- r(ne, "EarlyEndOfParseError");
52
- let p = ne, oe = class oe extends Error {
51
+ r(oe, "EarlyEndOfParseError");
52
+ let p = oe, se = class se extends Error {
53
53
  constructor(t, o) {
54
54
  let i = `Unexpected type: '${t.type}'.`;
55
- o !== void 0 && (i += ` Message: ${o}`), super(i), Object.setPrototypeOf(this, oe.prototype);
55
+ o !== void 0 && (i += ` Message: ${o}`), super(i), Object.setPrototypeOf(this, se.prototype);
56
56
  }
57
57
  };
58
- r(oe, "UnexpectedTypeError");
59
- let c = oe;
58
+ r(se, "UnexpectedTypeError");
59
+ let c = se;
60
60
  function u(e) {
61
61
  return (t) => t.startsWith(e) ? { type: e, text: e } : null;
62
62
  }
63
63
  r(u, "makePunctuationRule");
64
- function y(e) {
64
+ function m(e) {
65
65
  let t = 0, o, i = e[0], l = !1;
66
66
  if (i !== "'" && i !== '"')
67
67
  return null;
@@ -76,7 +76,7 @@ var yt = gr((me, mt) => {
76
76
  throw new Error("Unterminated String");
77
77
  return e.slice(0, t);
78
78
  }
79
- r(y, "getQuoted");
79
+ r(m, "getQuoted");
80
80
  let T = /[$_\p{ID_Start}]|\\u\p{Hex_Digit}{4}|\\u\{0*(?:\p{Hex_Digit}{1,5}|10\p{Hex_Digit}{4})\}/u, g = /[$\-\p{ID_Continue}\u200C\u200D]|\\u\p{Hex_Digit}{4}|\\u\{0*(?:\p{Hex_Digit}{1,5}|10\p{Hex_Digit}{4})\}/u;
81
81
  function P(e) {
82
82
  let t = e[0];
@@ -92,11 +92,11 @@ var yt = gr((me, mt) => {
92
92
  }
93
93
  r(P, "getIdentifier");
94
94
  let b = /^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;
95
- function fe(e) {
95
+ function de(e) {
96
96
  var t, o;
97
97
  return (o = (t = b.exec(e)) === null || t === void 0 ? void 0 : t[0]) !== null && o !== void 0 ? o : null;
98
98
  }
99
- r(fe, "getNumber");
99
+ r(de, "getNumber");
100
100
  let q = /* @__PURE__ */ r((e) => {
101
101
  let t = P(e);
102
102
  return t == null ? null : {
@@ -116,23 +116,23 @@ var yt = gr((me, mt) => {
116
116
  };
117
117
  }
118
118
  r(E, "makeKeyWordRule");
119
- let z = /* @__PURE__ */ r((e) => {
120
- let t = y(e);
119
+ let X = /* @__PURE__ */ r((e) => {
120
+ let t = m(e);
121
121
  return t == null ? null : {
122
122
  type: "StringValue",
123
123
  text: t
124
124
  };
125
- }, "stringValueRule"), de = /* @__PURE__ */ r((e) => e.length > 0 ? null : {
125
+ }, "stringValueRule"), Te = /* @__PURE__ */ r((e) => e.length > 0 ? null : {
126
126
  type: "EOF",
127
127
  text: ""
128
- }, "eofRule"), Te = /* @__PURE__ */ r((e) => {
129
- let t = fe(e);
128
+ }, "eofRule"), ge = /* @__PURE__ */ r((e) => {
129
+ let t = de(e);
130
130
  return t === null ? null : {
131
131
  type: "Number",
132
132
  text: t
133
133
  };
134
- }, "numberRule"), At = [
135
- de,
134
+ }, "numberRule"), It = [
135
+ Te,
136
136
  u("=>"),
137
137
  u("("),
138
138
  u(")"),
@@ -171,10 +171,10 @@ var yt = gr((me, mt) => {
171
171
  E("import"),
172
172
  E("is"),
173
173
  E("in"),
174
- Te,
174
+ ge,
175
175
  q,
176
- z
177
- ], Rt = /^\s*\n\s*/, U = class U {
176
+ X
177
+ ], Ft = /^\s*\n\s*/, U = class U {
178
178
  static create(t) {
179
179
  let o = this.read(t);
180
180
  t = o.text;
@@ -185,12 +185,12 @@ var yt = gr((me, mt) => {
185
185
  this.text = "", this.text = t, this.previous = o, this.current = i, this.next = l;
186
186
  }
187
187
  static read(t, o = !1) {
188
- o = o || Rt.test(t), t = t.trim();
189
- for (let i of At) {
188
+ o = o || Ft.test(t), t = t.trim();
189
+ for (let i of It) {
190
190
  let l = i(t);
191
191
  if (l !== null) {
192
- let m = Object.assign(Object.assign({}, l), { startOfLine: o });
193
- return t = t.slice(m.text.length), { text: t, token: m };
192
+ let y = Object.assign(Object.assign({}, l), { startOfLine: o });
193
+ return t = t.slice(y.text.length), { text: t, token: y };
194
194
  }
195
195
  }
196
196
  throw new Error("Unexpected Token " + t);
@@ -201,7 +201,7 @@ var yt = gr((me, mt) => {
201
201
  }
202
202
  };
203
203
  r(U, "Lexer");
204
- let ge = U;
204
+ let he = U;
205
205
  function w(e) {
206
206
  if (e === void 0)
207
207
  throw new Error("Unexpected undefined");
@@ -212,21 +212,21 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
212
212
  return e;
213
213
  }
214
214
  r(w, "assertRootResult");
215
- function he(e) {
216
- return e.type === "JsdocTypeKeyValue" ? X(e) : w(e);
215
+ function xe(e) {
216
+ return e.type === "JsdocTypeKeyValue" ? H(e) : w(e);
217
217
  }
218
- r(he, "assertPlainKeyValueOrRootResult");
219
- function It(e) {
220
- return e.type === "JsdocTypeName" ? e : X(e);
218
+ r(xe, "assertPlainKeyValueOrRootResult");
219
+ function jt(e) {
220
+ return e.type === "JsdocTypeName" ? e : H(e);
221
221
  }
222
- r(It, "assertPlainKeyValueOrNameResult");
223
- function X(e) {
222
+ r(jt, "assertPlainKeyValueOrNameResult");
223
+ function H(e) {
224
224
  if (e.type !== "JsdocTypeKeyValue")
225
225
  throw new c(e);
226
226
  return e;
227
227
  }
228
- r(X, "assertPlainKeyValueResult");
229
- function Ft(e) {
228
+ r(H, "assertPlainKeyValueResult");
229
+ function Lt(e) {
230
230
  var t;
231
231
  if (e.type === "JsdocTypeVariadic") {
232
232
  if (((t = e.element) === null || t === void 0 ? void 0 : t.type) === "JsdocTypeName")
@@ -237,11 +237,11 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
237
237
  throw new c(e);
238
238
  return e;
239
239
  }
240
- r(Ft, "assertNumberOrVariadicNameResult");
241
- function xe(e) {
240
+ r(Lt, "assertNumberOrVariadicNameResult");
241
+ function Je(e) {
242
242
  return e.type === "JsdocTypeIndexSignature" || e.type === "JsdocTypeMappedType";
243
243
  }
244
- r(xe, "isSquaredProperty");
244
+ r(Je, "isSquaredProperty");
245
245
  var f;
246
246
  (function(e) {
247
247
  e[e.ALL = 0] = "ALL", e[e.PARAMETER_LIST = 1] = "PARAMETER_LIST", e[e.OBJECT = 2] = "OBJECT", e[e.KEY_VALUE = 3] = "KEY_VALUE", e[e.UNION =
@@ -250,9 +250,9 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
250
250
  e[e.FUNCTION = 13] = "FUNCTION", e[e.ARROW = 14] = "ARROW", e[e.ARRAY_BRACKETS = 15] = "ARRAY_BRACKETS", e[e.GENERIC = 16] = "GENERIC",
251
251
  e[e.NAME_PATH = 17] = "NAME_PATH", e[e.PARENTHESIS = 18] = "PARENTHESIS", e[e.SPECIAL_TYPES = 19] = "SPECIAL_TYPES";
252
252
  })(f || (f = {}));
253
- let ke = class ke {
253
+ let Ae = class Ae {
254
254
  constructor(t, o, i) {
255
- this.grammar = t, typeof o == "string" ? this._lexer = ge.create(o) : this._lexer = o, this.baseParser = i;
255
+ this.grammar = t, typeof o == "string" ? this._lexer = he.create(o) : this._lexer = o, this.baseParser = i;
256
256
  }
257
257
  get lexer() {
258
258
  return this._lexer;
@@ -314,15 +314,15 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
314
314
  this._lexer = t.lexer;
315
315
  }
316
316
  };
317
- r(ke, "Parser");
318
- let R = ke;
319
- function $e(e) {
317
+ r(Ae, "Parser");
318
+ let R = Ae;
319
+ function Ye(e) {
320
320
  return e === "EOF" || e === "|" || e === "," || e === ")" || e === ">";
321
321
  }
322
- r($e, "isQuestionMarkUnknownType");
323
- let Je = /* @__PURE__ */ r((e, t, o) => {
322
+ r(Ye, "isQuestionMarkUnknownType");
323
+ let we = /* @__PURE__ */ r((e, t, o) => {
324
324
  let i = e.lexer.current.type, l = e.lexer.next.type;
325
- return o == null && i === "?" && !$e(l) || o != null && i === "?" ? (e.consume("?"), o == null ? {
325
+ return o == null && i === "?" && !Ye(l) || o != null && i === "?" ? (e.consume("?"), o == null ? {
326
326
  type: "JsdocTypeNullable",
327
327
  element: e.parseType(f.NULLABLE),
328
328
  meta: {
@@ -338,11 +338,11 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
338
338
  }, "nullableParslet");
339
339
  function h(e) {
340
340
  let t = /* @__PURE__ */ r((o, i, l) => {
341
- let m = o.lexer.current.type, d = o.lexer.next.type;
341
+ let y = o.lexer.current.type, d = o.lexer.next.type;
342
342
  if (l === null) {
343
- if ("parsePrefix" in e && e.accept(m, d))
343
+ if ("parsePrefix" in e && e.accept(y, d))
344
344
  return e.parsePrefix(o);
345
- } else if ("parseInfix" in e && e.precedence > i && e.accept(m, d))
345
+ } else if ("parseInfix" in e && e.precedence > i && e.accept(y, d))
346
346
  return e.parseInfix(o, l);
347
347
  return null;
348
348
  }, "parslet");
@@ -351,7 +351,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
351
351
  }), t;
352
352
  }
353
353
  r(h, "composeParslet");
354
- let H = h({
354
+ let Q = h({
355
355
  name: "optionalParslet",
356
356
  accept: /* @__PURE__ */ r((e) => e === "=", "accept"),
357
357
  precedence: f.OPTIONAL,
@@ -369,7 +369,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
369
369
  position: "suffix"
370
370
  }
371
371
  }), "parseInfix")
372
- }), Q = h({
372
+ }), Z = h({
373
373
  name: "numberParslet",
374
374
  accept: /* @__PURE__ */ r((e) => e === "Number", "accept"),
375
375
  parsePrefix: /* @__PURE__ */ r((e) => {
@@ -379,7 +379,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
379
379
  value: t
380
380
  };
381
381
  }, "parsePrefix")
382
- }), jt = h({
382
+ }), Vt = h({
383
383
  name: "parenthesisParslet",
384
384
  accept: /* @__PURE__ */ r((e) => e === "(", "accept"),
385
385
  parsePrefix: /* @__PURE__ */ r((e) => {
@@ -399,9 +399,9 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
399
399
  element: w(t)
400
400
  };
401
401
  }, "parsePrefix")
402
- }), Lt = h({
402
+ }), _t = h({
403
403
  name: "specialTypesParslet",
404
- accept: /* @__PURE__ */ r((e, t) => e === "?" && $e(t) || e === "null" || e === "undefined" || e === "*", "accept"),
404
+ accept: /* @__PURE__ */ r((e, t) => e === "?" && Ye(t) || e === "null" || e === "undefined" || e === "*", "accept"),
405
405
  parsePrefix: /* @__PURE__ */ r((e) => {
406
406
  if (e.consume("null"))
407
407
  return {
@@ -421,7 +421,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
421
421
  };
422
422
  throw new Error("Unacceptable token: " + e.lexer.current.text);
423
423
  }, "parsePrefix")
424
- }), _t = h({
424
+ }), Ut = h({
425
425
  name: "notNullableParslet",
426
426
  accept: /* @__PURE__ */ r((e) => e === "!", "accept"),
427
427
  precedence: f.NULLABLE,
@@ -440,20 +440,20 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
440
440
  }
441
441
  }), "parseInfix")
442
442
  });
443
- function Vt({ allowTrailingComma: e }) {
443
+ function Bt({ allowTrailingComma: e }) {
444
444
  return h({
445
445
  name: "parameterListParslet",
446
446
  accept: /* @__PURE__ */ r((t) => t === ",", "accept"),
447
447
  precedence: f.PARAMETER_LIST,
448
448
  parseInfix: /* @__PURE__ */ r((t, o) => {
449
449
  let i = [
450
- he(o)
450
+ xe(o)
451
451
  ];
452
452
  t.consume(",");
453
453
  do
454
454
  try {
455
455
  let l = t.parseIntermediateType(f.PARAMETER_LIST);
456
- i.push(he(l));
456
+ i.push(xe(l));
457
457
  } catch (l) {
458
458
  if (e && l instanceof a)
459
459
  break;
@@ -469,8 +469,8 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
469
469
  }, "parseInfix")
470
470
  });
471
471
  }
472
- r(Vt, "createParameterListParslet");
473
- let Ut = h({
472
+ r(Bt, "createParameterListParslet");
473
+ let Ct = h({
474
474
  name: "genericParslet",
475
475
  accept: /* @__PURE__ */ r((e, t) => e === "<" || e === "." && t === "<", "accept"),
476
476
  precedence: f.GENERIC,
@@ -493,7 +493,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
493
493
  }
494
494
  };
495
495
  }, "parseInfix")
496
- }), Bt = h({
496
+ }), Mt = h({
497
497
  name: "unionParslet",
498
498
  accept: /* @__PURE__ */ r((e) => e === "|", "accept"),
499
499
  precedence: f.UNION,
@@ -508,32 +508,32 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
508
508
  elements: [w(t), ...o]
509
509
  };
510
510
  }, "parseInfix")
511
- }), we = [
512
- Je,
513
- H,
511
+ }), Pe = [
512
+ we,
514
513
  Q,
515
- jt,
516
- Lt,
514
+ Z,
515
+ Vt,
517
516
  _t,
518
- Vt({
517
+ Ut,
518
+ Bt({
519
519
  allowTrailingComma: !0
520
520
  }),
521
- Ut,
522
- Bt,
523
- H
521
+ Ct,
522
+ Mt,
523
+ Q
524
524
  ];
525
- function Z({ allowSquareBracketsOnAnyType: e, allowJsdocNamePaths: t, pathGrammar: o }) {
526
- return /* @__PURE__ */ r(function(l, m, d) {
527
- if (d == null || m >= f.NAME_PATH)
525
+ function ee({ allowSquareBracketsOnAnyType: e, allowJsdocNamePaths: t, pathGrammar: o }) {
526
+ return /* @__PURE__ */ r(function(l, y, d) {
527
+ if (d == null || y >= f.NAME_PATH)
528
528
  return null;
529
529
  let x = l.lexer.current.type, N = l.lexer.next.type;
530
530
  if (!(x === "." && N !== "<" || x === "[" && (e || d.type === "JsdocTypeName") || t && (x === "~" || x === "#")))
531
531
  return null;
532
- let O, se = !1;
533
- l.consume(".") ? O = "property" : l.consume("[") ? (O = "property-brackets", se = !0) : l.consume("~") ? O = "inner" : (l.consume("#"),
532
+ let O, ae = !1;
533
+ l.consume(".") ? O = "property" : l.consume("[") ? (O = "property-brackets", ae = !0) : l.consume("~") ? O = "inner" : (l.consume("#"),
534
534
  O = "instance");
535
- let et = o !== null ? new R(o, l.lexer, l) : l, k = et.parseIntermediateType(f.NAME_PATH);
536
- l.acceptLexerState(et);
535
+ let rt = o !== null ? new R(o, l.lexer, l) : l, k = rt.parseIntermediateType(f.NAME_PATH);
536
+ l.acceptLexerState(rt);
537
537
  let G;
538
538
  switch (k.type) {
539
539
  case "JsdocTypeName":
@@ -572,9 +572,9 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
572
572
  default:
573
573
  throw new c(k, "Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'");
574
574
  }
575
- if (se && !l.consume("]")) {
576
- let tt = l.lexer.current;
577
- throw new Error(`Unterminated square brackets. Next token is '${tt.type}' with text '${tt.text}'`);
575
+ if (ae && !l.consume("]")) {
576
+ let nt = l.lexer.current;
577
+ throw new Error(`Unterminated square brackets. Next token is '${nt.type}' with text '${nt.text}'`);
578
578
  }
579
579
  return {
580
580
  type: "JsdocTypeNamePath",
@@ -584,7 +584,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
584
584
  };
585
585
  }, "namePathParslet");
586
586
  }
587
- r(Z, "createNamePathParslet");
587
+ r(ee, "createNamePathParslet");
588
588
  function I({ allowedAdditionalTokens: e }) {
589
589
  return h({
590
590
  name: "nameParslet",
@@ -613,7 +613,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
613
613
  };
614
614
  }, "parsePrefix")
615
615
  });
616
- function ee({ pathGrammar: e, allowedTypes: t }) {
616
+ function te({ pathGrammar: e, allowedTypes: t }) {
617
617
  return h({
618
618
  name: "specialNamePathParslet",
619
619
  accept: /* @__PURE__ */ r((o) => t.includes(o), "accept"),
@@ -624,20 +624,20 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
624
624
  type: "JsdocTypeName",
625
625
  value: i
626
626
  };
627
- let l, m = o.lexer.current;
627
+ let l, y = o.lexer.current;
628
628
  if (o.consume("StringValue"))
629
629
  l = {
630
630
  type: "JsdocTypeSpecialNamePath",
631
- value: m.text.slice(1, -1),
631
+ value: y.text.slice(1, -1),
632
632
  specialType: i,
633
633
  meta: {
634
- quote: m.text[0] === "'" ? "single" : "double"
634
+ quote: y.text[0] === "'" ? "single" : "double"
635
635
  }
636
636
  };
637
637
  else {
638
638
  let N = "", S = ["Identifier", "@", "/"];
639
639
  for (; S.some((O) => o.consume(O)); )
640
- N += m.text, m = o.lexer.current;
640
+ N += y.text, y = o.lexer.current;
641
641
  l = {
642
642
  type: "JsdocTypeSpecialNamePath",
643
643
  value: N,
@@ -652,26 +652,26 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
652
652
  }, "parsePrefix")
653
653
  });
654
654
  }
655
- r(ee, "createSpecialNamePathParslet");
656
- let qe = [
655
+ r(te, "createSpecialNamePathParslet");
656
+ let We = [
657
657
  I({
658
658
  allowedAdditionalTokens: ["external", "module"]
659
659
  }),
660
660
  Y,
661
- Q,
662
- Z({
661
+ Z,
662
+ ee({
663
663
  allowSquareBracketsOnAnyType: !1,
664
664
  allowJsdocNamePaths: !0,
665
665
  pathGrammar: null
666
666
  })
667
- ], V = [
668
- ...qe,
669
- ee({
667
+ ], _ = [
668
+ ...We,
669
+ te({
670
670
  allowedTypes: ["event"],
671
- pathGrammar: qe
671
+ pathGrammar: We
672
672
  })
673
673
  ];
674
- function Pe(e) {
674
+ function be(e) {
675
675
  let t;
676
676
  if (e.type === "JsdocTypeParameterList")
677
677
  t = e.elements;
@@ -679,22 +679,22 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
679
679
  t = [e.element];
680
680
  else
681
681
  throw new c(e);
682
- return t.map((o) => he(o));
682
+ return t.map((o) => xe(o));
683
683
  }
684
- r(Pe, "getParameters");
685
- function Ct(e) {
686
- let t = Pe(e);
684
+ r(be, "getParameters");
685
+ function Kt(e) {
686
+ let t = be(e);
687
687
  if (t.some((o) => o.type === "JsdocTypeKeyValue"))
688
688
  throw new Error("No parameter should be named");
689
689
  return t;
690
690
  }
691
- r(Ct, "getUnnamedParameters");
692
- function be({ allowNamedParameters: e, allowNoReturnType: t, allowWithoutParenthesis: o, allowNewAsFunctionKeyword: i }) {
691
+ r(Kt, "getUnnamedParameters");
692
+ function Ee({ allowNamedParameters: e, allowNoReturnType: t, allowWithoutParenthesis: o, allowNewAsFunctionKeyword: i }) {
693
693
  return h({
694
694
  name: "functionParslet",
695
- accept: /* @__PURE__ */ r((l, m) => l === "function" || i && l === "new" && m === "(", "accept"),
695
+ accept: /* @__PURE__ */ r((l, y) => l === "function" || i && l === "new" && y === "(", "accept"),
696
696
  parsePrefix: /* @__PURE__ */ r((l) => {
697
- let m = l.consume("new");
697
+ let y = l.consume("new");
698
698
  l.consume("function");
699
699
  let d = l.lexer.current.type === "(";
700
700
  if (!d) {
@@ -709,15 +709,15 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
709
709
  type: "JsdocTypeFunction",
710
710
  parameters: [],
711
711
  arrow: !1,
712
- constructor: m,
712
+ constructor: y,
713
713
  parenthesis: d
714
714
  }, N = l.parseIntermediateType(f.FUNCTION);
715
715
  if (e === void 0)
716
- x.parameters = Ct(N);
716
+ x.parameters = Kt(N);
717
717
  else {
718
- if (m && N.type === "JsdocTypeFunction" && N.arrow)
718
+ if (y && N.type === "JsdocTypeFunction" && N.arrow)
719
719
  return x = N, x.constructor = !0, x;
720
- x.parameters = Pe(N);
720
+ x.parameters = be(N);
721
721
  for (let S of x.parameters)
722
722
  if (S.type === "JsdocTypeKeyValue" && !e.includes(S.key))
723
723
  throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${S.type}`);
@@ -730,8 +730,8 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
730
730
  }, "parsePrefix")
731
731
  });
732
732
  }
733
- r(be, "createFunctionParslet");
734
- function Ee({ allowPostfix: e, allowEnclosingBrackets: t }) {
733
+ r(Ee, "createFunctionParslet");
734
+ function Se({ allowPostfix: e, allowEnclosingBrackets: t }) {
735
735
  return h({
736
736
  name: "variadicParslet",
737
737
  accept: /* @__PURE__ */ r((o) => o === "...", "accept"),
@@ -776,8 +776,8 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
776
776
  }) : void 0
777
777
  });
778
778
  }
779
- r(Ee, "createVariadicParslet");
780
- let Ye = h({
779
+ r(Se, "createVariadicParslet");
780
+ let Ge = h({
781
781
  name: "symbolParslet",
782
782
  accept: /* @__PURE__ */ r((e) => e === "(", "accept"),
783
783
  precedence: f.SYMBOL,
@@ -791,12 +791,12 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
791
791
  };
792
792
  if (!e.consume(")")) {
793
793
  let i = e.parseIntermediateType(f.SYMBOL);
794
- if (o.element = Ft(i), !e.consume(")"))
794
+ if (o.element = Lt(i), !e.consume(")"))
795
795
  throw new Error("Symbol does not end after value");
796
796
  }
797
797
  return o;
798
798
  }, "parseInfix")
799
- }), We = h({
799
+ }), ze = h({
800
800
  name: "arrayBracketsParslet",
801
801
  precedence: f.ARRAY_BRACKETS,
802
802
  accept: /* @__PURE__ */ r((e, t) => e === "[" && t === "]", "accept"),
@@ -815,7 +815,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
815
815
  }
816
816
  }), "parseInfix")
817
817
  });
818
- function Se({ objectFieldGrammar: e, allowKeyTypes: t }) {
818
+ function Ne({ objectFieldGrammar: e, allowKeyTypes: t }) {
819
819
  return h({
820
820
  name: "objectParslet",
821
821
  accept: /* @__PURE__ */ r((o) => o === "{", "accept"),
@@ -829,11 +829,11 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
829
829
  elements: []
830
830
  };
831
831
  if (!o.consume("}")) {
832
- let l, m = new R(e, o.lexer, o);
832
+ let l, y = new R(e, o.lexer, o);
833
833
  for (; ; ) {
834
- m.acceptLexerState(o);
835
- let d = m.parseIntermediateType(f.OBJECT);
836
- o.acceptLexerState(m), d === void 0 && t && (d = o.parseIntermediateType(f.OBJECT));
834
+ y.acceptLexerState(o);
835
+ let d = y.parseIntermediateType(f.OBJECT);
836
+ o.acceptLexerState(y), d === void 0 && t && (d = o.parseIntermediateType(f.OBJECT));
837
837
  let x = !1;
838
838
  if (d.type === "JsdocTypeNullable" && (x = !0, d = d.element), d.type === "JsdocTypeNumber" || d.type === "JsdocTypeName" || d.
839
839
  type === "JsdocTypeStringValue") {
@@ -870,28 +870,28 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
870
870
  }, "parsePrefix")
871
871
  });
872
872
  }
873
- r(Se, "createObjectParslet");
874
- function Ne({ allowSquaredProperties: e, allowKeyTypes: t, allowReadonly: o, allowOptional: i }) {
873
+ r(Ne, "createObjectParslet");
874
+ function De({ allowSquaredProperties: e, allowKeyTypes: t, allowReadonly: o, allowOptional: i }) {
875
875
  return h({
876
876
  name: "objectFieldParslet",
877
877
  precedence: f.KEY_VALUE,
878
878
  accept: /* @__PURE__ */ r((l) => l === ":", "accept"),
879
- parseInfix: /* @__PURE__ */ r((l, m) => {
879
+ parseInfix: /* @__PURE__ */ r((l, y) => {
880
880
  var d;
881
881
  let x = !1, N = !1;
882
- i && m.type === "JsdocTypeNullable" && (x = !0, m = m.element), o && m.type === "JsdocTypeReadonlyProperty" && (N = !0, m = m.element);
882
+ i && y.type === "JsdocTypeNullable" && (x = !0, y = y.element), o && y.type === "JsdocTypeReadonlyProperty" && (N = !0, y = y.element);
883
883
  let S = (d = l.baseParser) !== null && d !== void 0 ? d : l;
884
- if (S.acceptLexerState(l), m.type === "JsdocTypeNumber" || m.type === "JsdocTypeName" || m.type === "JsdocTypeStringValue" || xe(m)) {
885
- if (xe(m) && !e)
886
- throw new c(m);
884
+ if (S.acceptLexerState(l), y.type === "JsdocTypeNumber" || y.type === "JsdocTypeName" || y.type === "JsdocTypeStringValue" || Je(y)) {
885
+ if (Je(y) && !e)
886
+ throw new c(y);
887
887
  S.consume(":");
888
888
  let O;
889
- m.type === "JsdocTypeStringValue" && (O = m.meta.quote);
890
- let se = S.parseType(f.KEY_VALUE);
889
+ y.type === "JsdocTypeStringValue" && (O = y.meta.quote);
890
+ let ae = S.parseType(f.KEY_VALUE);
891
891
  return l.acceptLexerState(S), {
892
892
  type: "JsdocTypeObjectField",
893
- key: xe(m) ? m : m.value.toString(),
894
- right: se,
893
+ key: Je(y) ? y : y.value.toString(),
894
+ right: ae,
895
895
  optional: x,
896
896
  readonly: N,
897
897
  meta: {
@@ -900,28 +900,28 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
900
900
  };
901
901
  } else {
902
902
  if (!t)
903
- throw new c(m);
903
+ throw new c(y);
904
904
  S.consume(":");
905
905
  let O = S.parseType(f.KEY_VALUE);
906
906
  return l.acceptLexerState(S), {
907
907
  type: "JsdocTypeJsdocObjectField",
908
- left: w(m),
908
+ left: w(y),
909
909
  right: O
910
910
  };
911
911
  }
912
912
  }, "parseInfix")
913
913
  });
914
914
  }
915
- r(Ne, "createObjectFieldParslet");
916
- function De({ allowOptional: e, allowVariadic: t }) {
915
+ r(De, "createObjectFieldParslet");
916
+ function Oe({ allowOptional: e, allowVariadic: t }) {
917
917
  return h({
918
918
  name: "keyValueParslet",
919
919
  precedence: f.KEY_VALUE,
920
920
  accept: /* @__PURE__ */ r((o) => o === ":", "accept"),
921
921
  parseInfix: /* @__PURE__ */ r((o, i) => {
922
- let l = !1, m = !1;
922
+ let l = !1, y = !1;
923
923
  if (e && i.type === "JsdocTypeNullable" && (l = !0, i = i.element), t && i.type === "JsdocTypeVariadic" && i.element !== void 0 &&
924
- (m = !0, i = i.element), i.type !== "JsdocTypeName")
924
+ (y = !0, i = i.element), i.type !== "JsdocTypeName")
925
925
  throw new c(i);
926
926
  o.consume(":");
927
927
  let d = o.parseType(f.KEY_VALUE);
@@ -930,100 +930,100 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
930
930
  key: i.value,
931
931
  right: d,
932
932
  optional: l,
933
- variadic: m
933
+ variadic: y
934
934
  };
935
935
  }, "parseInfix")
936
936
  });
937
937
  }
938
- r(De, "createKeyValueParslet");
939
- let Ge = [
940
- ...we,
941
- be({
938
+ r(Oe, "createKeyValueParslet");
939
+ let Xe = [
940
+ ...Pe,
941
+ Ee({
942
942
  allowWithoutParenthesis: !0,
943
943
  allowNamedParameters: ["this", "new"],
944
944
  allowNoReturnType: !0,
945
945
  allowNewAsFunctionKeyword: !1
946
946
  }),
947
947
  Y,
948
- ee({
948
+ te({
949
949
  allowedTypes: ["module", "external", "event"],
950
- pathGrammar: V
950
+ pathGrammar: _
951
951
  }),
952
- Ee({
952
+ Se({
953
953
  allowEnclosingBrackets: !0,
954
954
  allowPostfix: !0
955
955
  }),
956
956
  I({
957
957
  allowedAdditionalTokens: ["keyof"]
958
958
  }),
959
- Ye,
960
- We,
961
- Z({
959
+ Ge,
960
+ ze,
961
+ ee({
962
962
  allowSquareBracketsOnAnyType: !1,
963
963
  allowJsdocNamePaths: !0,
964
- pathGrammar: V
964
+ pathGrammar: _
965
965
  })
966
- ], Mt = [
967
- ...Ge,
968
- Se({
966
+ ], $t = [
967
+ ...Xe,
968
+ Ne({
969
969
  // jsdoc syntax allows full types as keys, so we need to pull in the full grammar here
970
970
  // we leave out the object type deliberately
971
971
  objectFieldGrammar: [
972
972
  I({
973
973
  allowedAdditionalTokens: ["module", "in"]
974
974
  }),
975
- Ne({
975
+ De({
976
976
  allowSquaredProperties: !1,
977
977
  allowKeyTypes: !0,
978
978
  allowOptional: !1,
979
979
  allowReadonly: !1
980
980
  }),
981
- ...Ge
981
+ ...Xe
982
982
  ],
983
983
  allowKeyTypes: !0
984
984
  }),
985
- De({
985
+ Oe({
986
986
  allowOptional: !0,
987
987
  allowVariadic: !0
988
988
  })
989
- ], ze = h({
989
+ ], He = h({
990
990
  name: "typeOfParslet",
991
991
  accept: /* @__PURE__ */ r((e) => e === "typeof", "accept"),
992
992
  parsePrefix: /* @__PURE__ */ r((e) => (e.consume("typeof"), {
993
993
  type: "JsdocTypeTypeof",
994
994
  element: w(e.parseType(f.KEY_OF_TYPE_OF))
995
995
  }), "parsePrefix")
996
- }), Kt = [
996
+ }), qt = [
997
997
  I({
998
998
  allowedAdditionalTokens: ["module", "keyof", "event", "external", "in"]
999
999
  }),
1000
- Je,
1001
- H,
1002
- Y,
1000
+ we,
1003
1001
  Q,
1004
- Ne({
1002
+ Y,
1003
+ Z,
1004
+ De({
1005
1005
  allowSquaredProperties: !1,
1006
1006
  allowKeyTypes: !1,
1007
1007
  allowOptional: !1,
1008
1008
  allowReadonly: !1
1009
1009
  })
1010
- ], $t = [
1011
- ...we,
1012
- Se({
1010
+ ], Yt = [
1011
+ ...Pe,
1012
+ Ne({
1013
1013
  allowKeyTypes: !1,
1014
- objectFieldGrammar: Kt
1014
+ objectFieldGrammar: qt
1015
1015
  }),
1016
1016
  I({
1017
1017
  allowedAdditionalTokens: ["event", "external", "in"]
1018
1018
  }),
1019
- ze,
1020
- be({
1019
+ He,
1020
+ Ee({
1021
1021
  allowWithoutParenthesis: !1,
1022
1022
  allowNamedParameters: ["this", "new"],
1023
1023
  allowNoReturnType: !0,
1024
1024
  allowNewAsFunctionKeyword: !1
1025
1025
  }),
1026
- Ee({
1026
+ Se({
1027
1027
  allowEnclosingBrackets: !1,
1028
1028
  allowPostfix: !1
1029
1029
  }),
@@ -1031,22 +1031,22 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1031
1031
  I({
1032
1032
  allowedAdditionalTokens: ["keyof"]
1033
1033
  }),
1034
- ee({
1034
+ te({
1035
1035
  allowedTypes: ["module"],
1036
- pathGrammar: V
1036
+ pathGrammar: _
1037
1037
  }),
1038
- Z({
1038
+ ee({
1039
1039
  allowSquareBracketsOnAnyType: !1,
1040
1040
  allowJsdocNamePaths: !0,
1041
- pathGrammar: V
1041
+ pathGrammar: _
1042
1042
  }),
1043
- De({
1043
+ Oe({
1044
1044
  allowOptional: !1,
1045
1045
  allowVariadic: !1
1046
1046
  }),
1047
- Ye
1047
+ Ge
1048
1048
  ];
1049
- function qt({ allowQuestionMark: e }) {
1049
+ function Wt({ allowQuestionMark: e }) {
1050
1050
  return h({
1051
1051
  name: "tupleParslet",
1052
1052
  accept: /* @__PURE__ */ r((t) => t === "[", "accept"),
@@ -1059,8 +1059,8 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1059
1059
  if (t.consume("]"))
1060
1060
  return o;
1061
1061
  let i = t.parseIntermediateType(f.ALL);
1062
- if (i.type === "JsdocTypeParameterList" ? i.elements[0].type === "JsdocTypeKeyValue" ? o.elements = i.elements.map(X) : o.elements =
1063
- i.elements.map(w) : i.type === "JsdocTypeKeyValue" ? o.elements = [X(i)] : o.elements = [w(i)], !t.consume("]"))
1062
+ if (i.type === "JsdocTypeParameterList" ? i.elements[0].type === "JsdocTypeKeyValue" ? o.elements = i.elements.map(H) : o.elements =
1063
+ i.elements.map(w) : i.type === "JsdocTypeKeyValue" ? o.elements = [H(i)] : o.elements = [w(i)], !t.consume("]"))
1064
1064
  throw new Error("Unterminated '['");
1065
1065
  if (!e && o.elements.some((l) => l.type === "JsdocTypeUnknown"))
1066
1066
  throw new Error("Question mark in tuple not allowed");
@@ -1068,15 +1068,15 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1068
1068
  }, "parsePrefix")
1069
1069
  });
1070
1070
  }
1071
- r(qt, "createTupleParslet");
1072
- let Yt = h({
1071
+ r(Wt, "createTupleParslet");
1072
+ let Gt = h({
1073
1073
  name: "keyOfParslet",
1074
1074
  accept: /* @__PURE__ */ r((e) => e === "keyof", "accept"),
1075
1075
  parsePrefix: /* @__PURE__ */ r((e) => (e.consume("keyof"), {
1076
1076
  type: "JsdocTypeKeyof",
1077
1077
  element: w(e.parseType(f.KEY_OF_TYPE_OF))
1078
1078
  }), "parsePrefix")
1079
- }), Wt = h({
1079
+ }), zt = h({
1080
1080
  name: "importParslet",
1081
1081
  accept: /* @__PURE__ */ r((e) => e === "import", "accept"),
1082
1082
  parsePrefix: /* @__PURE__ */ r((e) => {
@@ -1092,26 +1092,26 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1092
1092
  element: t
1093
1093
  };
1094
1094
  }, "parsePrefix")
1095
- }), Gt = h({
1095
+ }), Xt = h({
1096
1096
  name: "readonlyPropertyParslet",
1097
1097
  accept: /* @__PURE__ */ r((e) => e === "readonly", "accept"),
1098
1098
  parsePrefix: /* @__PURE__ */ r((e) => (e.consume("readonly"), {
1099
1099
  type: "JsdocTypeReadonlyProperty",
1100
1100
  element: e.parseType(f.KEY_VALUE)
1101
1101
  }), "parsePrefix")
1102
- }), zt = h({
1102
+ }), Ht = h({
1103
1103
  name: "arrowFunctionParslet",
1104
1104
  precedence: f.ARROW,
1105
1105
  accept: /* @__PURE__ */ r((e) => e === "=>", "accept"),
1106
1106
  parseInfix: /* @__PURE__ */ r((e, t) => (e.consume("=>"), {
1107
1107
  type: "JsdocTypeFunction",
1108
- parameters: Pe(t).map(It),
1108
+ parameters: be(t).map(jt),
1109
1109
  arrow: !0,
1110
1110
  constructor: !1,
1111
1111
  parenthesis: !0,
1112
1112
  returnType: e.parseType(f.OBJECT)
1113
1113
  }), "parseInfix")
1114
- }), Xt = h({
1114
+ }), Qt = h({
1115
1115
  name: "intersectionParslet",
1116
1116
  accept: /* @__PURE__ */ r((e) => e === "&", "accept"),
1117
1117
  precedence: f.INTERSECTION,
@@ -1126,7 +1126,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1126
1126
  elements: [w(t), ...o]
1127
1127
  };
1128
1128
  }, "parseInfix")
1129
- }), Ht = h({
1129
+ }), Zt = h({
1130
1130
  name: "predicateParslet",
1131
1131
  precedence: f.INFIX,
1132
1132
  accept: /* @__PURE__ */ r((e) => e === "is", "accept"),
@@ -1139,7 +1139,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1139
1139
  right: w(e.parseIntermediateType(f.INFIX))
1140
1140
  };
1141
1141
  }, "parseInfix")
1142
- }), Qt = h({
1142
+ }), er = h({
1143
1143
  name: "objectSquareBracketPropertyParslet",
1144
1144
  accept: /* @__PURE__ */ r((e) => e === "[", "accept"),
1145
1145
  parsePrefix: /* @__PURE__ */ r((e) => {
@@ -1169,88 +1169,88 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1169
1169
  throw new Error("Unterminated square brackets");
1170
1170
  return o;
1171
1171
  }, "parsePrefix")
1172
- }), Zt = [
1173
- Gt,
1172
+ }), tr = [
1173
+ Xt,
1174
1174
  I({
1175
1175
  allowedAdditionalTokens: ["module", "event", "keyof", "event", "external", "in"]
1176
1176
  }),
1177
- Je,
1178
- H,
1179
- Y,
1177
+ we,
1180
1178
  Q,
1181
- Ne({
1179
+ Y,
1180
+ Z,
1181
+ De({
1182
1182
  allowSquaredProperties: !0,
1183
1183
  allowKeyTypes: !1,
1184
1184
  allowOptional: !0,
1185
1185
  allowReadonly: !0
1186
1186
  }),
1187
- Qt
1188
- ], er = [
1189
- ...we,
1190
- Se({
1187
+ er
1188
+ ], rr = [
1189
+ ...Pe,
1190
+ Ne({
1191
1191
  allowKeyTypes: !1,
1192
- objectFieldGrammar: Zt
1192
+ objectFieldGrammar: tr
1193
1193
  }),
1194
- ze,
1195
- Yt,
1196
- Wt,
1194
+ He,
1195
+ Gt,
1196
+ zt,
1197
1197
  Y,
1198
- be({
1198
+ Ee({
1199
1199
  allowWithoutParenthesis: !0,
1200
1200
  allowNoReturnType: !1,
1201
1201
  allowNamedParameters: ["this", "new", "args"],
1202
1202
  allowNewAsFunctionKeyword: !0
1203
1203
  }),
1204
- qt({
1204
+ Wt({
1205
1205
  allowQuestionMark: !1
1206
1206
  }),
1207
- Ee({
1207
+ Se({
1208
1208
  allowEnclosingBrackets: !1,
1209
1209
  allowPostfix: !1
1210
1210
  }),
1211
1211
  I({
1212
1212
  allowedAdditionalTokens: ["event", "external", "in"]
1213
1213
  }),
1214
- ee({
1214
+ te({
1215
1215
  allowedTypes: ["module"],
1216
- pathGrammar: V
1216
+ pathGrammar: _
1217
1217
  }),
1218
- We,
1219
- zt,
1220
- Z({
1218
+ ze,
1219
+ Ht,
1220
+ ee({
1221
1221
  allowSquareBracketsOnAnyType: !0,
1222
1222
  allowJsdocNamePaths: !1,
1223
- pathGrammar: V
1223
+ pathGrammar: _
1224
1224
  }),
1225
- Xt,
1226
- Ht,
1227
- De({
1225
+ Qt,
1226
+ Zt,
1227
+ Oe({
1228
1228
  allowVariadic: !0,
1229
1229
  allowOptional: !0
1230
1230
  })
1231
1231
  ];
1232
- function Xe(e, t) {
1232
+ function Qe(e, t) {
1233
1233
  switch (t) {
1234
1234
  case "closure":
1235
- return new R($t, e).parse();
1235
+ return new R(Yt, e).parse();
1236
1236
  case "jsdoc":
1237
- return new R(Mt, e).parse();
1237
+ return new R($t, e).parse();
1238
1238
  case "typescript":
1239
- return new R(er, e).parse();
1239
+ return new R(rr, e).parse();
1240
1240
  }
1241
1241
  }
1242
- r(Xe, "parse");
1243
- function tr(e, t = ["typescript", "closure", "jsdoc"]) {
1242
+ r(Qe, "parse");
1243
+ function nr(e, t = ["typescript", "closure", "jsdoc"]) {
1244
1244
  let o;
1245
1245
  for (let i of t)
1246
1246
  try {
1247
- return Xe(e, i);
1247
+ return Qe(e, i);
1248
1248
  } catch (l) {
1249
1249
  o = l;
1250
1250
  }
1251
1251
  throw o;
1252
1252
  }
1253
- r(tr, "tryParse");
1253
+ r(nr, "tryParse");
1254
1254
  function W(e, t) {
1255
1255
  let o = e[t.type];
1256
1256
  if (o === void 0)
@@ -1262,7 +1262,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1262
1262
  throw new Error("This transform is not available. Are you trying the correct parsing mode?");
1263
1263
  }
1264
1264
  r(D, "notAvailableTransform");
1265
- function He(e) {
1265
+ function Ze(e) {
1266
1266
  let t = {
1267
1267
  params: []
1268
1268
  };
@@ -1271,11 +1271,11 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1271
1271
  push(o);
1272
1272
  return t;
1273
1273
  }
1274
- r(He, "extractSpecialParams");
1275
- function te(e, t, o) {
1274
+ r(Ze, "extractSpecialParams");
1275
+ function re(e, t, o) {
1276
1276
  return e === "prefix" ? o + t : t + o;
1277
1277
  }
1278
- r(te, "applyPosition");
1278
+ r(re, "applyPosition");
1279
1279
  function F(e, t) {
1280
1280
  switch (t) {
1281
1281
  case "double":
@@ -1287,7 +1287,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1287
1287
  }
1288
1288
  }
1289
1289
  r(F, "quote");
1290
- function Qe() {
1290
+ function et() {
1291
1291
  return {
1292
1292
  JsdocTypeParenthesis: /* @__PURE__ */ r((e, t) => `(${e.element !== void 0 ? t(e.element) : ""})`, "JsdocTypeParenthesis"),
1293
1293
  JsdocTypeKeyof: /* @__PURE__ */ r((e, t) => `keyof ${t(e.element)}`, "JsdocTypeKeyof"),
@@ -1304,7 +1304,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1304
1304
  }, "JsdocTypeFunction"),
1305
1305
  JsdocTypeName: /* @__PURE__ */ r((e) => e.value, "JsdocTypeName"),
1306
1306
  JsdocTypeTuple: /* @__PURE__ */ r((e, t) => `[${e.elements.map(t).join(", ")}]`, "JsdocTypeTuple"),
1307
- JsdocTypeVariadic: /* @__PURE__ */ r((e, t) => e.meta.position === void 0 ? "..." : te(e.meta.position, t(e.element), "..."), "Jsdoc\
1307
+ JsdocTypeVariadic: /* @__PURE__ */ r((e, t) => e.meta.position === void 0 ? "..." : re(e.meta.position, t(e.element), "..."), "Jsdoc\
1308
1308
  TypeVariadic"),
1309
1309
  JsdocTypeNamePath: /* @__PURE__ */ r((e, t) => {
1310
1310
  let o = t(e.left), i = t(e.right);
@@ -1340,13 +1340,13 @@ TypeVariadic"),
1340
1340
  return e.optional && (o += "?"), e.variadic && (o = "..." + o), e.right === void 0 ? o : o + `: ${t(e.right)}`;
1341
1341
  }, "JsdocTypeKeyValue"),
1342
1342
  JsdocTypeSpecialNamePath: /* @__PURE__ */ r((e) => `${e.specialType}:${F(e.value, e.meta.quote)}`, "JsdocTypeSpecialNamePath"),
1343
- JsdocTypeNotNullable: /* @__PURE__ */ r((e, t) => te(e.meta.position, t(e.element), "!"), "JsdocTypeNotNullable"),
1343
+ JsdocTypeNotNullable: /* @__PURE__ */ r((e, t) => re(e.meta.position, t(e.element), "!"), "JsdocTypeNotNullable"),
1344
1344
  JsdocTypeNull: /* @__PURE__ */ r(() => "null", "JsdocTypeNull"),
1345
- JsdocTypeNullable: /* @__PURE__ */ r((e, t) => te(e.meta.position, t(e.element), "?"), "JsdocTypeNullable"),
1345
+ JsdocTypeNullable: /* @__PURE__ */ r((e, t) => re(e.meta.position, t(e.element), "?"), "JsdocTypeNullable"),
1346
1346
  JsdocTypeNumber: /* @__PURE__ */ r((e) => e.value.toString(), "JsdocTypeNumber"),
1347
1347
  JsdocTypeObject: /* @__PURE__ */ r((e, t) => `{${e.elements.map(t).join((e.meta.separator === "comma" ? "," : ";") + " ")}}`, "Jsdoc\
1348
1348
  TypeObject"),
1349
- JsdocTypeOptional: /* @__PURE__ */ r((e, t) => te(e.meta.position, t(e.element), "="), "JsdocTypeOptional"),
1349
+ JsdocTypeOptional: /* @__PURE__ */ r((e, t) => re(e.meta.position, t(e.element), "="), "JsdocTypeOptional"),
1350
1350
  JsdocTypeSymbol: /* @__PURE__ */ r((e, t) => `${e.value}(${e.element !== void 0 ? t(e.element) : ""})`, "JsdocTypeSymbol"),
1351
1351
  JsdocTypeTypeof: /* @__PURE__ */ r((e, t) => `typeof ${t(e.element)}`, "JsdocTypeTypeof"),
1352
1352
  JsdocTypeUndefined: /* @__PURE__ */ r(() => "undefined", "JsdocTypeUndefined"),
@@ -1359,13 +1359,13 @@ TypeObject"),
1359
1359
  JsdocTypeMappedType: /* @__PURE__ */ r((e, t) => `[${e.key} in ${t(e.right)}]`, "JsdocTypeMappedType")
1360
1360
  };
1361
1361
  }
1362
- r(Qe, "stringifyRules");
1363
- let rr = Qe();
1364
- function nr(e) {
1365
- return W(rr, e);
1362
+ r(et, "stringifyRules");
1363
+ let or = et();
1364
+ function sr(e) {
1365
+ return W(or, e);
1366
1366
  }
1367
- r(nr, "stringify");
1368
- let or = [
1367
+ r(sr, "stringify");
1368
+ let ar = [
1369
1369
  "null",
1370
1370
  "true",
1371
1371
  "false",
@@ -1408,10 +1408,10 @@ TypeObject"),
1408
1408
  type: "NameExpression",
1409
1409
  name: e
1410
1410
  };
1411
- return or.includes(e) && (t.reservedWord = !0), t;
1411
+ return ar.includes(e) && (t.reservedWord = !0), t;
1412
1412
  }
1413
1413
  r(j, "makeName");
1414
- let sr = {
1414
+ let ir = {
1415
1415
  JsdocTypeOptional: /* @__PURE__ */ r((e, t) => {
1416
1416
  let o = t(e.element);
1417
1417
  return o.optional = !0, o;
@@ -1444,7 +1444,7 @@ TypeObject"),
1444
1444
  type: "UnknownLiteral"
1445
1445
  }), "JsdocTypeUnknown"),
1446
1446
  JsdocTypeFunction: /* @__PURE__ */ r((e, t) => {
1447
- let o = He(e), i = {
1447
+ let o = Ze(e), i = {
1448
1448
  type: "FunctionType",
1449
1449
  params: o.params.map(t)
1450
1450
  };
@@ -1520,11 +1520,11 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1520
1520
  JsdocTypeProperty: D,
1521
1521
  JsdocTypePredicate: D
1522
1522
  };
1523
- function ar(e) {
1524
- return W(sr, e);
1523
+ function pr(e) {
1524
+ return W(ir, e);
1525
1525
  }
1526
- r(ar, "catharsisTransform");
1527
- function _(e) {
1526
+ r(pr, "catharsisTransform");
1527
+ function V(e) {
1528
1528
  switch (e) {
1529
1529
  case void 0:
1530
1530
  return "none";
@@ -1534,8 +1534,8 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1534
1534
  return "double";
1535
1535
  }
1536
1536
  }
1537
- r(_, "getQuoteStyle");
1538
- function ir(e) {
1537
+ r(V, "getQuoteStyle");
1538
+ function cr(e) {
1539
1539
  switch (e) {
1540
1540
  case "inner":
1541
1541
  return "INNER_MEMBER";
@@ -1547,8 +1547,8 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1547
1547
  return "MEMBER";
1548
1548
  }
1549
1549
  }
1550
- r(ir, "getMemberType");
1551
- function Oe(e, t) {
1550
+ r(cr, "getMemberType");
1551
+ function ve(e, t) {
1552
1552
  return t.length === 2 ? {
1553
1553
  type: e,
1554
1554
  left: t[0],
@@ -1556,11 +1556,11 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1556
1556
  } : {
1557
1557
  type: e,
1558
1558
  left: t[0],
1559
- right: Oe(e, t.slice(1))
1559
+ right: ve(e, t.slice(1))
1560
1560
  };
1561
1561
  }
1562
- r(Oe, "nestResults");
1563
- let pr = {
1562
+ r(ve, "nestResults");
1563
+ let lr = {
1564
1564
  JsdocTypeOptional: /* @__PURE__ */ r((e, t) => ({
1565
1565
  type: "OPTIONAL",
1566
1566
  value: t(e.element),
@@ -1611,7 +1611,7 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1611
1611
  type: "IMPORT",
1612
1612
  path: {
1613
1613
  type: "STRING_VALUE",
1614
- quoteStyle: _(e.element.meta.quote),
1614
+ quoteStyle: V(e.element.meta.quote),
1615
1615
  string: e.element.value
1616
1616
  }
1617
1617
  }), "JsdocTypeImport"),
@@ -1623,7 +1623,7 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1623
1623
  type: "ANY"
1624
1624
  }), "JsdocTypeAny"),
1625
1625
  JsdocTypeFunction: /* @__PURE__ */ r((e, t) => {
1626
- let o = He(e), i = {
1626
+ let o = Ze(e), i = {
1627
1627
  type: e.arrow ? "ARROW" : "FUNCTION",
1628
1628
  params: o.params.map((l) => {
1629
1629
  if (l.type === "JsdocTypeKeyValue") {
@@ -1664,7 +1664,7 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1664
1664
  return {
1665
1665
  type: "RECORD_ENTRY",
1666
1666
  key: e.key,
1667
- quoteStyle: _(e.meta.quote),
1667
+ quoteStyle: V(e.meta.quote),
1668
1668
  value: null,
1669
1669
  readonly: !1
1670
1670
  };
@@ -1678,7 +1678,7 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1678
1678
  }), {
1679
1679
  type: "RECORD_ENTRY",
1680
1680
  key: e.key.toString(),
1681
- quoteStyle: _(e.meta.quote),
1681
+ quoteStyle: V(e.meta.quote),
1682
1682
  value: o,
1683
1683
  readonly: !1
1684
1684
  };
@@ -1726,29 +1726,29 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1726
1726
  type: "MODULE",
1727
1727
  value: {
1728
1728
  type: "FILE_PATH",
1729
- quoteStyle: _(e.meta.quote),
1729
+ quoteStyle: V(e.meta.quote),
1730
1730
  path: e.value
1731
1731
  }
1732
1732
  };
1733
1733
  }, "JsdocTypeSpecialNamePath"),
1734
1734
  JsdocTypeNamePath: /* @__PURE__ */ r((e, t) => {
1735
1735
  let o = !1, i, l;
1736
- e.right.type === "JsdocTypeSpecialNamePath" && e.right.specialType === "event" ? (o = !0, i = e.right.value, l = _(e.right.meta.quote)) :
1737
- (i = e.right.value, l = _(e.right.meta.quote));
1738
- let m = {
1739
- type: ir(e.pathType),
1736
+ e.right.type === "JsdocTypeSpecialNamePath" && e.right.specialType === "event" ? (o = !0, i = e.right.value, l = V(e.right.meta.quote)) :
1737
+ (i = e.right.value, l = V(e.right.meta.quote));
1738
+ let y = {
1739
+ type: cr(e.pathType),
1740
1740
  owner: t(e.left),
1741
1741
  name: i,
1742
1742
  quoteStyle: l,
1743
1743
  hasEventPrefix: o
1744
1744
  };
1745
- if (m.owner.type === "MODULE") {
1746
- let d = m.owner;
1747
- return m.owner = m.owner.value, d.value = m, d;
1745
+ if (y.owner.type === "MODULE") {
1746
+ let d = y.owner;
1747
+ return y.owner = y.owner.value, d.value = y, d;
1748
1748
  } else
1749
- return m;
1749
+ return y;
1750
1750
  }, "JsdocTypeNamePath"),
1751
- JsdocTypeUnion: /* @__PURE__ */ r((e, t) => Oe("UNION", e.elements.map(t)), "JsdocTypeUnion"),
1751
+ JsdocTypeUnion: /* @__PURE__ */ r((e, t) => ve("UNION", e.elements.map(t)), "JsdocTypeUnion"),
1752
1752
  JsdocTypeParenthesis: /* @__PURE__ */ r((e, t) => ({
1753
1753
  type: "PARENTHESIS",
1754
1754
  value: t(w(e.element))
@@ -1762,10 +1762,10 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1762
1762
  }), "JsdocTypeUnknown"),
1763
1763
  JsdocTypeStringValue: /* @__PURE__ */ r((e) => ({
1764
1764
  type: "STRING_VALUE",
1765
- quoteStyle: _(e.meta.quote),
1765
+ quoteStyle: V(e.meta.quote),
1766
1766
  string: e.value
1767
1767
  }), "JsdocTypeStringValue"),
1768
- JsdocTypeIntersection: /* @__PURE__ */ r((e, t) => Oe("INTERSECTION", e.elements.map(t)), "JsdocTypeIntersection"),
1768
+ JsdocTypeIntersection: /* @__PURE__ */ r((e, t) => ve("INTERSECTION", e.elements.map(t)), "JsdocTypeIntersection"),
1769
1769
  JsdocTypeNumber: /* @__PURE__ */ r((e) => ({
1770
1770
  type: "NUMBER_VALUE",
1771
1771
  number: e.value.toString()
@@ -1776,11 +1776,11 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1776
1776
  JsdocTypeMappedType: D,
1777
1777
  JsdocTypeIndexSignature: D
1778
1778
  };
1779
- function cr(e) {
1780
- return W(pr, e);
1779
+ function ur(e) {
1780
+ return W(lr, e);
1781
1781
  }
1782
- r(cr, "jtpTransform");
1783
- function lr() {
1782
+ r(ur, "jtpTransform");
1783
+ function mr() {
1784
1784
  return {
1785
1785
  JsdocTypeIntersection: /* @__PURE__ */ r((e, t) => ({
1786
1786
  type: "JsdocTypeIntersection",
@@ -1915,8 +1915,8 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1915
1915
  }), "JsdocTypeMappedType")
1916
1916
  };
1917
1917
  }
1918
- r(lr, "identityTransformRules");
1919
- let Ze = {
1918
+ r(mr, "identityTransformRules");
1919
+ let tt = {
1920
1920
  JsdocTypeAny: [],
1921
1921
  JsdocTypeFunction: ["parameters", "returnType"],
1922
1922
  JsdocTypeGeneric: ["left", "elements"],
@@ -1949,33 +1949,33 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1949
1949
  JsdocTypeProperty: [],
1950
1950
  JsdocTypePredicate: ["left", "right"]
1951
1951
  };
1952
- function ve(e, t, o, i, l) {
1952
+ function ke(e, t, o, i, l) {
1953
1953
  i?.(e, t, o);
1954
- let m = Ze[e.type];
1955
- for (let d of m) {
1954
+ let y = tt[e.type];
1955
+ for (let d of y) {
1956
1956
  let x = e[d];
1957
1957
  if (x !== void 0)
1958
1958
  if (Array.isArray(x))
1959
1959
  for (let N of x)
1960
- ve(N, e, d, i, l);
1960
+ ke(N, e, d, i, l);
1961
1961
  else
1962
- ve(x, e, d, i, l);
1962
+ ke(x, e, d, i, l);
1963
1963
  }
1964
1964
  l?.(e, t, o);
1965
1965
  }
1966
- r(ve, "_traverse");
1967
- function ur(e, t, o) {
1968
- ve(e, void 0, void 0, t, o);
1966
+ r(ke, "_traverse");
1967
+ function yr(e, t, o) {
1968
+ ke(e, void 0, void 0, t, o);
1969
1969
  }
1970
- r(ur, "traverse"), n.catharsisTransform = ar, n.identityTransformRules = lr, n.jtpTransform = cr, n.parse = Xe, n.stringify = nr, n.stringifyRules =
1971
- Qe, n.transform = W, n.traverse = ur, n.tryParse = tr, n.visitorKeys = Ze;
1970
+ r(yr, "traverse"), n.catharsisTransform = pr, n.identityTransformRules = mr, n.jtpTransform = ur, n.parse = Qe, n.stringify = sr, n.stringifyRules =
1971
+ et, n.transform = W, n.traverse = yr, n.tryParse = nr, n.visitorKeys = tt;
1972
1972
  });
1973
1973
  });
1974
1974
 
1975
1975
  // src/docs-tools/argTypes/convert/flow/convert.ts
1976
- import { UnknownArgTypesError as Jr } from "storybook/internal/preview-errors";
1977
- var wr = /* @__PURE__ */ r((n) => n.name === "literal", "isLiteral"), Pr = /* @__PURE__ */ r((n) => n.value.replace(/['|"]/g, ""), "toEnumOp\
1978
- tion"), br = /* @__PURE__ */ r((n) => {
1976
+ import { UnknownArgTypesError as Pr } from "storybook/internal/preview-errors";
1977
+ var br = /* @__PURE__ */ r((n) => n.name === "literal", "isLiteral"), Er = /* @__PURE__ */ r((n) => n.value.replace(/['|"]/g, ""), "toEnumOp\
1978
+ tion"), Sr = /* @__PURE__ */ r((n) => {
1979
1979
  switch (n.type) {
1980
1980
  case "function":
1981
1981
  return { name: "function" };
@@ -1988,7 +1988,7 @@ tion"), br = /* @__PURE__ */ r((n) => {
1988
1988
  value: s
1989
1989
  };
1990
1990
  default:
1991
- throw new Jr({ type: n, language: "Flow" });
1991
+ throw new Pr({ type: n, language: "Flow" });
1992
1992
  }
1993
1993
  }, "convertSig"), B = /* @__PURE__ */ r((n) => {
1994
1994
  let { name: s, raw: a } = n, p = {};
@@ -2003,9 +2003,9 @@ tion"), br = /* @__PURE__ */ r((n) => {
2003
2003
  case "Array":
2004
2004
  return { ...p, name: "array", value: n.elements.map(B) };
2005
2005
  case "signature":
2006
- return { ...p, ...br(n) };
2006
+ return { ...p, ...Sr(n) };
2007
2007
  case "union":
2008
- return n.elements?.every(wr) ? { ...p, name: "enum", value: n.elements?.map(Pr) } : { ...p, name: s, value: n.elements?.map(B) };
2008
+ return n.elements?.every(br) ? { ...p, name: "enum", value: n.elements?.map(Er) } : { ...p, name: s, value: n.elements?.map(B) };
2009
2009
  case "intersection":
2010
2010
  return { ...p, name: s, value: n.elements?.map(B) };
2011
2011
  default:
@@ -2013,30 +2013,45 @@ tion"), br = /* @__PURE__ */ r((n) => {
2013
2013
  }
2014
2014
  }, "convert");
2015
2015
 
2016
+ // ../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
2017
+ function z(n) {
2018
+ if (typeof n != "object" || n == null)
2019
+ return !1;
2020
+ if (Object.getPrototypeOf(n) === null)
2021
+ return !0;
2022
+ if (n.toString() !== "[object Object]")
2023
+ return !1;
2024
+ let s = n;
2025
+ for (; Object.getPrototypeOf(s) !== null; )
2026
+ s = Object.getPrototypeOf(s);
2027
+ return Object.getPrototypeOf(n) === s;
2028
+ }
2029
+ r(z, "isPlainObject");
2030
+
2016
2031
  // ../node_modules/es-toolkit/dist/object/mapValues.mjs
2017
- function Re(n, s) {
2032
+ function Ie(n, s) {
2018
2033
  let a = {}, p = Object.keys(n);
2019
2034
  for (let c = 0; c < p.length; c++) {
2020
- let u = p[c], y = n[u];
2021
- a[u] = s(y, u, n);
2035
+ let u = p[c], m = n[u];
2036
+ a[u] = s(m, u, n);
2022
2037
  }
2023
2038
  return a;
2024
2039
  }
2025
- r(Re, "mapValues");
2040
+ r(Ie, "mapValues");
2026
2041
 
2027
2042
  // src/docs-tools/argTypes/convert/utils.ts
2028
- var rt = /^['"]|['"]$/g, Er = /* @__PURE__ */ r((n) => n.replace(rt, ""), "trimQuotes"), Sr = /* @__PURE__ */ r((n) => rt.test(n), "includes\
2029
- Quotes"), ae = /* @__PURE__ */ r((n) => {
2030
- let s = Er(n);
2031
- return Sr(n) || Number.isNaN(Number(s)) ? s : Number(s);
2043
+ var ot = /^['"]|['"]$/g, Nr = /* @__PURE__ */ r((n) => n.replace(ot, ""), "trimQuotes"), Dr = /* @__PURE__ */ r((n) => ot.test(n), "includes\
2044
+ Quotes"), ie = /* @__PURE__ */ r((n) => {
2045
+ let s = Nr(n);
2046
+ return Dr(n) || Number.isNaN(Number(s)) ? s : Number(s);
2032
2047
  }, "parseLiteral");
2033
2048
 
2034
2049
  // src/docs-tools/argTypes/convert/proptypes/convert.ts
2035
- var Nr = /^\(.*\) => /, C = /* @__PURE__ */ r((n) => {
2050
+ var Or = /^\(.*\) => /, C = /* @__PURE__ */ r((n) => {
2036
2051
  let { name: s, raw: a, computed: p, value: c } = n, u = {};
2037
2052
  switch (typeof a < "u" && (u.raw = a), s) {
2038
2053
  case "enum": {
2039
- let T = p ? c : c.map((g) => ae(g.value));
2054
+ let T = p ? c : c.map((g) => ie(g.value));
2040
2055
  return { ...u, name: s, value: T };
2041
2056
  }
2042
2057
  case "string":
@@ -2057,8 +2072,8 @@ var Nr = /^\(.*\) => /, C = /* @__PURE__ */ r((n) => {
2057
2072
  return { ...u, name: s, value: C(c) };
2058
2073
  case "shape":
2059
2074
  case "exact":
2060
- let y = Re(c, (T) => C(T));
2061
- return { ...u, name: "object", value: y };
2075
+ let m = Ie(c, (T) => C(T));
2076
+ return { ...u, name: "object", value: m };
2062
2077
  case "union":
2063
2078
  return { ...u, name: "union", value: c.map((T) => C(T)) };
2064
2079
  case "instanceOf":
@@ -2071,15 +2086,15 @@ var Nr = /^\(.*\) => /, C = /* @__PURE__ */ r((n) => {
2071
2086
  return { ...u, name: "enum", value: P };
2072
2087
  } catch {
2073
2088
  }
2074
- let T = c ? `${s}(${c})` : s, g = Nr.test(s) ? "function" : "other";
2089
+ let T = c ? `${s}(${c})` : s, g = Or.test(s) ? "function" : "other";
2075
2090
  return { ...u, name: g, value: T };
2076
2091
  }
2077
2092
  }
2078
2093
  }, "convert");
2079
2094
 
2080
2095
  // src/docs-tools/argTypes/convert/typescript/convert.ts
2081
- import { UnknownArgTypesError as Dr } from "storybook/internal/preview-errors";
2082
- var Or = /* @__PURE__ */ r((n) => {
2096
+ import { UnknownArgTypesError as vr } from "storybook/internal/preview-errors";
2097
+ var kr = /* @__PURE__ */ r((n) => {
2083
2098
  switch (n.type) {
2084
2099
  case "function":
2085
2100
  return { name: "function" };
@@ -2092,7 +2107,7 @@ var Or = /* @__PURE__ */ r((n) => {
2092
2107
  value: s
2093
2108
  };
2094
2109
  default:
2095
- throw new Dr({ type: n, language: "Typescript" });
2110
+ throw new vr({ type: n, language: "Typescript" });
2096
2111
  }
2097
2112
  }, "convertSig"), M = /* @__PURE__ */ r((n) => {
2098
2113
  let { name: s, raw: a } = n, p = {};
@@ -2105,14 +2120,14 @@ var Or = /* @__PURE__ */ r((n) => {
2105
2120
  case "Array":
2106
2121
  return { ...p, name: "array", value: n.elements.map(M) };
2107
2122
  case "signature":
2108
- return { ...p, ...Or(n) };
2123
+ return { ...p, ...kr(n) };
2109
2124
  case "union":
2110
2125
  let c;
2111
2126
  return n.elements?.every((u) => u.name === "literal") ? c = {
2112
2127
  ...p,
2113
2128
  name: "enum",
2114
2129
  // @ts-expect-error fix types
2115
- value: n.elements?.map((u) => ae(u.value))
2130
+ value: n.elements?.map((u) => ie(u.value))
2116
2131
  } : c = { ...p, name: s, value: n.elements?.map(M) }, c;
2117
2132
  case "intersection":
2118
2133
  return { ...p, name: s, value: n.elements?.map(M) };
@@ -2122,7 +2137,7 @@ var Or = /* @__PURE__ */ r((n) => {
2122
2137
  }, "convert");
2123
2138
 
2124
2139
  // src/docs-tools/argTypes/convert/index.ts
2125
- var ie = /* @__PURE__ */ r((n) => {
2140
+ var pe = /* @__PURE__ */ r((n) => {
2126
2141
  let { type: s, tsType: a, flowType: p } = n;
2127
2142
  try {
2128
2143
  if (s != null)
@@ -2138,18 +2153,18 @@ var ie = /* @__PURE__ */ r((n) => {
2138
2153
  }, "convert");
2139
2154
 
2140
2155
  // src/docs-tools/argTypes/docgen/types.ts
2141
- var vr = /* @__PURE__ */ ((c) => (c.JAVASCRIPT = "JavaScript", c.FLOW = "Flow", c.TYPESCRIPT = "TypeScript", c.UNKNOWN = "Unknown", c))(vr ||
2156
+ var Ar = /* @__PURE__ */ ((c) => (c.JAVASCRIPT = "JavaScript", c.FLOW = "Flow", c.TYPESCRIPT = "TypeScript", c.UNKNOWN = "Unknown", c))(Ar ||
2142
2157
  {});
2143
2158
 
2144
2159
  // src/docs-tools/argTypes/docgen/utils/defaultValue.ts
2145
- var kr = ["null", "undefined"];
2160
+ var Rr = ["null", "undefined"];
2146
2161
  function K(n) {
2147
- return kr.some((s) => s === n);
2162
+ return Rr.some((s) => s === n);
2148
2163
  }
2149
2164
  r(K, "isDefaultValueBlacklisted");
2150
2165
 
2151
2166
  // src/docs-tools/argTypes/docgen/utils/string.ts
2152
- var nt = /* @__PURE__ */ r((n) => {
2167
+ var st = /* @__PURE__ */ r((n) => {
2153
2168
  if (!n)
2154
2169
  return "";
2155
2170
  if (typeof n == "string")
@@ -2158,22 +2173,22 @@ var nt = /* @__PURE__ */ r((n) => {
2158
2173
  }, "str");
2159
2174
 
2160
2175
  // src/docs-tools/argTypes/docgen/utils/docgenInfo.ts
2161
- function ot(n) {
2176
+ function at(n) {
2162
2177
  return !!n.__docgenInfo;
2163
2178
  }
2164
- r(ot, "hasDocgen");
2165
- function st(n) {
2179
+ r(at, "hasDocgen");
2180
+ function it(n) {
2166
2181
  return n != null && Object.keys(n).length > 0;
2167
2182
  }
2168
- r(st, "isValidDocgenSection");
2169
- function at(n, s) {
2170
- return ot(n) ? n.__docgenInfo[s] : null;
2183
+ r(it, "isValidDocgenSection");
2184
+ function pt(n, s) {
2185
+ return at(n) ? n.__docgenInfo[s] : null;
2171
2186
  }
2172
- r(at, "getDocgenSection");
2173
- function it(n) {
2174
- return ot(n) ? nt(n.__docgenInfo.description) : "";
2187
+ r(pt, "getDocgenSection");
2188
+ function ct(n) {
2189
+ return at(n) ? st(n.__docgenInfo.description) : "";
2175
2190
  }
2176
- r(it, "getDocgenDescription");
2191
+ r(ct, "getDocgenDescription");
2177
2192
 
2178
2193
  // ../node_modules/comment-parser/es6/primitives.js
2179
2194
  var v;
@@ -2182,79 +2197,79 @@ var v;
2182
2197
  })(v = v || (v = {}));
2183
2198
 
2184
2199
  // ../node_modules/comment-parser/es6/util.js
2185
- function Ie(n) {
2200
+ function Fe(n) {
2186
2201
  return /^\s+$/.test(n);
2187
2202
  }
2188
- r(Ie, "isSpace");
2189
- function pt(n) {
2203
+ r(Fe, "isSpace");
2204
+ function lt(n) {
2190
2205
  let s = n.match(/\r+$/);
2191
2206
  return s == null ? ["", n] : [n.slice(-s[0].length), n.slice(0, -s[0].length)];
2192
2207
  }
2193
- r(pt, "splitCR");
2208
+ r(lt, "splitCR");
2194
2209
  function A(n) {
2195
2210
  let s = n.match(/^\s+/);
2196
2211
  return s == null ? ["", n] : [n.slice(0, s[0].length), n.slice(s[0].length)];
2197
2212
  }
2198
2213
  r(A, "splitSpace");
2199
- function ct(n) {
2214
+ function ut(n) {
2200
2215
  return n.split(/\n/);
2201
2216
  }
2202
- r(ct, "splitLines");
2203
- function lt(n = {}) {
2217
+ r(ut, "splitLines");
2218
+ function mt(n = {}) {
2204
2219
  return Object.assign({ tag: "", name: "", type: "", optional: !1, description: "", problems: [], source: [] }, n);
2205
2220
  }
2206
- r(lt, "seedSpec");
2207
- function Fe(n = {}) {
2221
+ r(mt, "seedSpec");
2222
+ function je(n = {}) {
2208
2223
  return Object.assign({ start: "", delimiter: "", postDelimiter: "", tag: "", postTag: "", name: "", postName: "", type: "", postType: "", description: "",
2209
2224
  end: "", lineEnd: "" }, n);
2210
2225
  }
2211
- r(Fe, "seedTokens");
2226
+ r(je, "seedTokens");
2212
2227
 
2213
2228
  // ../node_modules/comment-parser/es6/parser/block-parser.js
2214
- var Ar = /^@\S+/;
2215
- function je({ fence: n = "```" } = {}) {
2216
- let s = Rr(n), a = /* @__PURE__ */ r((p, c) => s(p) ? !c : c, "toggleFence");
2229
+ var Ir = /^@\S+/;
2230
+ function Le({ fence: n = "```" } = {}) {
2231
+ let s = Fr(n), a = /* @__PURE__ */ r((p, c) => s(p) ? !c : c, "toggleFence");
2217
2232
  return /* @__PURE__ */ r(function(c) {
2218
- let u = [[]], y = !1;
2233
+ let u = [[]], m = !1;
2219
2234
  for (let T of c)
2220
- Ar.test(T.tokens.description) && !y ? u.push([T]) : u[u.length - 1].push(T), y = a(T.tokens.description, y);
2235
+ Ir.test(T.tokens.description) && !m ? u.push([T]) : u[u.length - 1].push(T), m = a(T.tokens.description, m);
2221
2236
  return u;
2222
2237
  }, "parseBlock");
2223
2238
  }
2224
- r(je, "getParser");
2225
- function Rr(n) {
2239
+ r(Le, "getParser");
2240
+ function Fr(n) {
2226
2241
  return typeof n == "string" ? (s) => s.split(n).length % 2 === 0 : n;
2227
2242
  }
2228
- r(Rr, "getFencer");
2243
+ r(Fr, "getFencer");
2229
2244
 
2230
2245
  // ../node_modules/comment-parser/es6/parser/source-parser.js
2231
- function Le({ startLine: n = 0, markers: s = v } = {}) {
2246
+ function Ve({ startLine: n = 0, markers: s = v } = {}) {
2232
2247
  let a = null, p = n;
2233
2248
  return /* @__PURE__ */ r(function(u) {
2234
- let y = u, T = Fe();
2235
- if ([T.lineEnd, y] = pt(y), [T.start, y] = A(y), a === null && y.startsWith(s.start) && !y.startsWith(s.nostart) && (a = [], T.delimiter =
2236
- y.slice(0, s.start.length), y = y.slice(s.start.length), [T.postDelimiter, y] = A(y)), a === null)
2249
+ let m = u, T = je();
2250
+ if ([T.lineEnd, m] = lt(m), [T.start, m] = A(m), a === null && m.startsWith(s.start) && !m.startsWith(s.nostart) && (a = [], T.delimiter =
2251
+ m.slice(0, s.start.length), m = m.slice(s.start.length), [T.postDelimiter, m] = A(m)), a === null)
2237
2252
  return p++, null;
2238
- let g = y.trimRight().endsWith(s.end);
2239
- if (T.delimiter === "" && y.startsWith(s.delim) && !y.startsWith(s.end) && (T.delimiter = s.delim, y = y.slice(s.delim.length), [T.postDelimiter,
2240
- y] = A(y)), g) {
2241
- let P = y.trimRight();
2242
- T.end = y.slice(P.length - s.end.length), y = P.slice(0, -s.end.length);
2253
+ let g = m.trimRight().endsWith(s.end);
2254
+ if (T.delimiter === "" && m.startsWith(s.delim) && !m.startsWith(s.end) && (T.delimiter = s.delim, m = m.slice(s.delim.length), [T.postDelimiter,
2255
+ m] = A(m)), g) {
2256
+ let P = m.trimRight();
2257
+ T.end = m.slice(P.length - s.end.length), m = P.slice(0, -s.end.length);
2243
2258
  }
2244
- if (T.description = y, a.push({ number: p, source: u, tokens: T }), p++, g) {
2259
+ if (T.description = m, a.push({ number: p, source: u, tokens: T }), p++, g) {
2245
2260
  let P = a.slice();
2246
2261
  return a = null, P;
2247
2262
  }
2248
2263
  return null;
2249
2264
  }, "parseSource");
2250
2265
  }
2251
- r(Le, "getParser");
2266
+ r(Ve, "getParser");
2252
2267
 
2253
2268
  // ../node_modules/comment-parser/es6/parser/spec-parser.js
2254
2269
  function _e({ tokenizers: n }) {
2255
2270
  return /* @__PURE__ */ r(function(a) {
2256
2271
  var p;
2257
- let c = lt({ source: a });
2272
+ let c = mt({ source: a });
2258
2273
  for (let u of n)
2259
2274
  if (c = u(c), !((p = c.problems[c.problems.length - 1]) === null || p === void 0) && p.critical)
2260
2275
  break;
@@ -2264,7 +2279,7 @@ function _e({ tokenizers: n }) {
2264
2279
  r(_e, "getParser");
2265
2280
 
2266
2281
  // ../node_modules/comment-parser/es6/parser/tokenizers/tag.js
2267
- function pe() {
2282
+ function ce() {
2268
2283
  return (n) => {
2269
2284
  let { tokens: s } = n.source[0], a = s.description.match(/\s*(@(\S+))(\s*)/);
2270
2285
  return a === null ? (n.problems.push({
@@ -2275,11 +2290,11 @@ function pe() {
2275
2290
  }), n) : (s.tag = a[1], s.postTag = a[3], s.description = s.description.slice(a[0].length), n.tag = a[2], n);
2276
2291
  };
2277
2292
  }
2278
- r(pe, "tagTokenizer");
2293
+ r(ce, "tagTokenizer");
2279
2294
 
2280
2295
  // ../node_modules/comment-parser/es6/parser/tokenizers/type.js
2281
- function ce(n = "compact") {
2282
- let s = Fr(n);
2296
+ function le(n = "compact") {
2297
+ let s = Lr(n);
2283
2298
  return (a) => {
2284
2299
  let p = 0, c = [];
2285
2300
  for (let [T, { tokens: g }] of a.source.entries()) {
@@ -2299,34 +2314,34 @@ function ce(n = "compact") {
2299
2314
  line: a.source[0].number,
2300
2315
  critical: !0
2301
2316
  }), a;
2302
- let u = [], y = c[0][0].postDelimiter.length;
2317
+ let u = [], m = c[0][0].postDelimiter.length;
2303
2318
  for (let [T, [g, P]] of c.entries())
2304
- g.type = P, T > 0 && (g.type = g.postDelimiter.slice(y) + P, g.postDelimiter = g.postDelimiter.slice(0, y)), [g.postType, g.description] =
2319
+ g.type = P, T > 0 && (g.type = g.postDelimiter.slice(m) + P, g.postDelimiter = g.postDelimiter.slice(0, m)), [g.postType, g.description] =
2305
2320
  A(g.description.slice(P.length)), u.push(g.type);
2306
2321
  return u[0] = u[0].slice(1), u[u.length - 1] = u[u.length - 1].slice(0, -1), a.type = s(u), a;
2307
2322
  };
2308
2323
  }
2309
- r(ce, "typeTokenizer");
2310
- var Ir = /* @__PURE__ */ r((n) => n.trim(), "trim");
2311
- function Fr(n) {
2312
- return n === "compact" ? (s) => s.map(Ir).join("") : n === "preserve" ? (s) => s.join(`
2324
+ r(le, "typeTokenizer");
2325
+ var jr = /* @__PURE__ */ r((n) => n.trim(), "trim");
2326
+ function Lr(n) {
2327
+ return n === "compact" ? (s) => s.map(jr).join("") : n === "preserve" ? (s) => s.join(`
2313
2328
  `) : n;
2314
2329
  }
2315
- r(Fr, "getJoiner");
2330
+ r(Lr, "getJoiner");
2316
2331
 
2317
2332
  // ../node_modules/comment-parser/es6/parser/tokenizers/name.js
2318
- var jr = /* @__PURE__ */ r((n) => n && n.startsWith('"') && n.endsWith('"'), "isQuoted");
2319
- function le() {
2333
+ var Vr = /* @__PURE__ */ r((n) => n && n.startsWith('"') && n.endsWith('"'), "isQuoted");
2334
+ function ue() {
2320
2335
  let n = /* @__PURE__ */ r((s, { tokens: a }, p) => a.type === "" ? s : p, "typeEnd");
2321
2336
  return (s) => {
2322
2337
  let { tokens: a } = s.source[s.source.reduce(n, 0)], p = a.description.trimLeft(), c = p.split('"');
2323
2338
  if (c.length > 1 && c[0] === "" && c.length % 2 === 1)
2324
2339
  return s.name = c[1], a.name = `"${c[1]}"`, [a.postName, a.description] = A(p.slice(a.name.length)), s;
2325
- let u = 0, y = "", T = !1, g;
2340
+ let u = 0, m = "", T = !1, g;
2326
2341
  for (let b of p) {
2327
- if (u === 0 && Ie(b))
2342
+ if (u === 0 && Fe(b))
2328
2343
  break;
2329
- b === "[" && u++, b === "]" && u--, y += b;
2344
+ b === "[" && u++, b === "]" && u--, m += b;
2330
2345
  }
2331
2346
  if (u !== 0)
2332
2347
  return s.problems.push({
@@ -2335,11 +2350,11 @@ function le() {
2335
2350
  line: s.source[0].number,
2336
2351
  critical: !0
2337
2352
  }), s;
2338
- let P = y;
2339
- if (y[0] === "[" && y[y.length - 1] === "]") {
2340
- T = !0, y = y.slice(1, -1);
2341
- let b = y.split("=");
2342
- if (y = b[0].trim(), b[1] !== void 0 && (g = b.slice(1).join("=").trim()), y === "")
2353
+ let P = m;
2354
+ if (m[0] === "[" && m[m.length - 1] === "]") {
2355
+ T = !0, m = m.slice(1, -1);
2356
+ let b = m.split("=");
2357
+ if (m = b[0].trim(), b[1] !== void 0 && (g = b.slice(1).join("=").trim()), m === "")
2343
2358
  return s.problems.push({
2344
2359
  code: "spec:name:empty-name",
2345
2360
  message: "empty name",
@@ -2353,7 +2368,7 @@ function le() {
2353
2368
  line: s.source[0].number,
2354
2369
  critical: !0
2355
2370
  }), s;
2356
- if (!jr(g) && /=(?!>)/.test(g))
2371
+ if (!Vr(g) && /=(?!>)/.test(g))
2357
2372
  return s.problems.push({
2358
2373
  code: "spec:name:invalid-default",
2359
2374
  message: "invalid default value syntax",
@@ -2361,82 +2376,82 @@ function le() {
2361
2376
  critical: !0
2362
2377
  }), s;
2363
2378
  }
2364
- return s.optional = T, s.name = y, a.name = P, g !== void 0 && (s.default = g), [a.postName, a.description] = A(p.slice(a.name.length)),
2379
+ return s.optional = T, s.name = m, a.name = P, g !== void 0 && (s.default = g), [a.postName, a.description] = A(p.slice(a.name.length)),
2365
2380
  s;
2366
2381
  };
2367
2382
  }
2368
- r(le, "nameTokenizer");
2383
+ r(ue, "nameTokenizer");
2369
2384
 
2370
2385
  // ../node_modules/comment-parser/es6/parser/tokenizers/description.js
2371
- function ue(n = "compact", s = v) {
2372
- let a = Ve(n);
2386
+ function me(n = "compact", s = v) {
2387
+ let a = Ue(n);
2373
2388
  return (p) => (p.description = a(p.source, s), p);
2374
2389
  }
2375
- r(ue, "descriptionTokenizer");
2376
- function Ve(n) {
2377
- return n === "compact" ? Lr : n === "preserve" ? Ur : n;
2390
+ r(me, "descriptionTokenizer");
2391
+ function Ue(n) {
2392
+ return n === "compact" ? _r : n === "preserve" ? Cr : n;
2378
2393
  }
2379
- r(Ve, "getJoiner");
2380
- function Lr(n, s = v) {
2394
+ r(Ue, "getJoiner");
2395
+ function _r(n, s = v) {
2381
2396
  return n.map(({ tokens: { description: a } }) => a.trim()).filter((a) => a !== "").join(" ");
2382
2397
  }
2383
- r(Lr, "compactJoiner");
2384
- var _r = /* @__PURE__ */ r((n, { tokens: s }, a) => s.type === "" ? n : a, "lineNo"), Vr = /* @__PURE__ */ r(({ tokens: n }) => (n.delimiter ===
2398
+ r(_r, "compactJoiner");
2399
+ var Ur = /* @__PURE__ */ r((n, { tokens: s }, a) => s.type === "" ? n : a, "lineNo"), Br = /* @__PURE__ */ r(({ tokens: n }) => (n.delimiter ===
2385
2400
  "" ? n.start : n.postDelimiter.slice(1)) + n.description, "getDescription");
2386
- function Ur(n, s = v) {
2401
+ function Cr(n, s = v) {
2387
2402
  if (n.length === 0)
2388
2403
  return "";
2389
2404
  n[0].tokens.description === "" && n[0].tokens.delimiter === s.start && (n = n.slice(1));
2390
2405
  let a = n[n.length - 1];
2391
- return a !== void 0 && a.tokens.description === "" && a.tokens.end.endsWith(s.end) && (n = n.slice(0, -1)), n = n.slice(n.reduce(_r, 0)), n.
2392
- map(Vr).join(`
2406
+ return a !== void 0 && a.tokens.description === "" && a.tokens.end.endsWith(s.end) && (n = n.slice(0, -1)), n = n.slice(n.reduce(Ur, 0)), n.
2407
+ map(Br).join(`
2393
2408
  `);
2394
2409
  }
2395
- r(Ur, "preserveJoiner");
2410
+ r(Cr, "preserveJoiner");
2396
2411
 
2397
2412
  // ../node_modules/comment-parser/es6/parser/index.js
2398
- function Ue({ startLine: n = 0, fence: s = "```", spacing: a = "compact", markers: p = v, tokenizers: c = [
2399
- pe(),
2400
- ce(a),
2401
- le(),
2402
- ue(a)
2413
+ function Be({ startLine: n = 0, fence: s = "```", spacing: a = "compact", markers: p = v, tokenizers: c = [
2414
+ ce(),
2415
+ le(a),
2416
+ ue(),
2417
+ me(a)
2403
2418
  ] } = {}) {
2404
2419
  if (n < 0 || n % 1 > 0)
2405
2420
  throw new Error("Invalid startLine");
2406
- let u = Le({ startLine: n, markers: p }), y = je({ fence: s }), T = _e({ tokenizers: c }), g = Ve(a);
2421
+ let u = Ve({ startLine: n, markers: p }), m = Le({ fence: s }), T = _e({ tokenizers: c }), g = Ue(a);
2407
2422
  return function(P) {
2408
2423
  let b = [];
2409
- for (let fe of ct(P)) {
2410
- let q = u(fe);
2424
+ for (let de of ut(P)) {
2425
+ let q = u(de);
2411
2426
  if (q === null)
2412
2427
  continue;
2413
- let E = y(q), z = E.slice(1).map(T);
2428
+ let E = m(q), X = E.slice(1).map(T);
2414
2429
  b.push({
2415
2430
  description: g(E[0], p),
2416
- tags: z,
2431
+ tags: X,
2417
2432
  source: q,
2418
- problems: z.reduce((de, Te) => de.concat(Te.problems), [])
2433
+ problems: X.reduce((Te, ge) => Te.concat(ge.problems), [])
2419
2434
  });
2420
2435
  }
2421
2436
  return b;
2422
2437
  };
2423
2438
  }
2424
- r(Ue, "getParser");
2439
+ r(Be, "getParser");
2425
2440
 
2426
2441
  // ../node_modules/comment-parser/es6/stringifier/index.js
2427
- function Br(n) {
2442
+ function Mr(n) {
2428
2443
  return n.start + n.delimiter + n.postDelimiter + n.tag + n.postTag + n.type + n.postType + n.name + n.postName + n.description + n.end + n.
2429
2444
  lineEnd;
2430
2445
  }
2431
- r(Br, "join");
2432
- function Be() {
2433
- return (n) => n.source.map(({ tokens: s }) => Br(s)).join(`
2446
+ r(Mr, "join");
2447
+ function Ce() {
2448
+ return (n) => n.source.map(({ tokens: s }) => Mr(s)).join(`
2434
2449
  `);
2435
2450
  }
2436
- r(Be, "getStringifier");
2451
+ r(Ce, "getStringifier");
2437
2452
 
2438
2453
  // ../node_modules/comment-parser/es6/stringifier/inspect.js
2439
- var Cr = {
2454
+ var Kr = {
2440
2455
  line: 0,
2441
2456
  start: 0,
2442
2457
  delimiter: 0,
@@ -2451,43 +2466,43 @@ var Cr = {
2451
2466
  end: 0,
2452
2467
  lineEnd: 0
2453
2468
  };
2454
- var Ko = Object.keys(Cr);
2469
+ var Wo = Object.keys(Kr);
2455
2470
 
2456
2471
  // ../node_modules/comment-parser/es6/index.js
2457
- function ut(n, s = {}) {
2458
- return Ue(s)(n);
2472
+ function yt(n, s = {}) {
2473
+ return Be(s)(n);
2459
2474
  }
2460
- r(ut, "parse");
2461
- var ls = Be();
2475
+ r(yt, "parse");
2476
+ var fs = Ce();
2462
2477
 
2463
2478
  // src/docs-tools/argTypes/jsdocParser.ts
2464
- var $ = xr(yt(), 1);
2465
- function Mr(n) {
2479
+ var $ = wr(dt(), 1);
2480
+ function $r(n) {
2466
2481
  return n != null && n.includes("@");
2467
2482
  }
2468
- r(Mr, "containsJsDoc");
2469
- function Kr(n) {
2483
+ r($r, "containsJsDoc");
2484
+ function qr(n) {
2470
2485
  let p = `/**
2471
2486
  ` + (n ?? "").split(`
2472
2487
  `).map((u) => ` * ${u}`).join(`
2473
2488
  `) + `
2474
- */`, c = ut(p, {
2489
+ */`, c = yt(p, {
2475
2490
  spacing: "preserve"
2476
2491
  });
2477
2492
  if (!c || c.length === 0)
2478
2493
  throw new Error("Cannot parse JSDoc tags.");
2479
2494
  return c[0];
2480
2495
  }
2481
- r(Kr, "parse");
2482
- var $r = {
2496
+ r(qr, "parse");
2497
+ var Yr = {
2483
2498
  tags: ["param", "arg", "argument", "returns", "ignore", "deprecated"]
2484
- }, ft = /* @__PURE__ */ r((n, s = $r) => {
2485
- if (!Mr(n))
2499
+ }, Tt = /* @__PURE__ */ r((n, s = Yr) => {
2500
+ if (!$r(n))
2486
2501
  return {
2487
2502
  includesJsDoc: !1,
2488
2503
  ignore: !1
2489
2504
  };
2490
- let a = Kr(n), p = qr(a, s.tags);
2505
+ let a = qr(n), p = Wr(a, s.tags);
2491
2506
  return p.ignore ? {
2492
2507
  includesJsDoc: !0,
2493
2508
  ignore: !0
@@ -2499,7 +2514,7 @@ var $r = {
2499
2514
  extractedTags: p
2500
2515
  };
2501
2516
  }, "parseJsDoc");
2502
- function qr(n, s) {
2517
+ function Wr(n, s) {
2503
2518
  let a = {
2504
2519
  params: null,
2505
2520
  deprecated: null,
@@ -2517,17 +2532,17 @@ function qr(n, s) {
2517
2532
  case "param":
2518
2533
  case "arg":
2519
2534
  case "argument": {
2520
- let c = Wr(p);
2535
+ let c = zr(p);
2521
2536
  c != null && (a.params == null && (a.params = []), a.params.push(c));
2522
2537
  break;
2523
2538
  }
2524
2539
  case "deprecated": {
2525
- let c = Gr(p);
2540
+ let c = Xr(p);
2526
2541
  c != null && (a.deprecated = c);
2527
2542
  break;
2528
2543
  }
2529
2544
  case "returns": {
2530
- let c = zr(p);
2545
+ let c = Hr(p);
2531
2546
  c != null && (a.returns = c);
2532
2547
  break;
2533
2548
  }
@@ -2536,148 +2551,148 @@ function qr(n, s) {
2536
2551
  }
2537
2552
  return a;
2538
2553
  }
2539
- r(qr, "extractJsDocTags");
2540
- function Yr(n) {
2554
+ r(Wr, "extractJsDocTags");
2555
+ function Gr(n) {
2541
2556
  return n.replace(/[\.-]$/, "");
2542
2557
  }
2543
- r(Yr, "normaliseParamName");
2544
- function Wr(n) {
2558
+ r(Gr, "normaliseParamName");
2559
+ function zr(n) {
2545
2560
  if (!n.name || n.name === "-")
2546
2561
  return null;
2547
- let s = gt(n.type);
2562
+ let s = xt(n.type);
2548
2563
  return {
2549
2564
  name: n.name,
2550
2565
  type: s,
2551
- description: Tt(n.description),
2552
- getPrettyName: /* @__PURE__ */ r(() => Yr(n.name), "getPrettyName"),
2553
- getTypeName: /* @__PURE__ */ r(() => s ? ht(s) : null, "getTypeName")
2566
+ description: ht(n.description),
2567
+ getPrettyName: /* @__PURE__ */ r(() => Gr(n.name), "getPrettyName"),
2568
+ getTypeName: /* @__PURE__ */ r(() => s ? Jt(s) : null, "getTypeName")
2554
2569
  };
2555
2570
  }
2556
- r(Wr, "extractParam");
2557
- function Gr(n) {
2558
- return n.name ? dt(n.name, n.description) : null;
2571
+ r(zr, "extractParam");
2572
+ function Xr(n) {
2573
+ return n.name ? gt(n.name, n.description) : null;
2559
2574
  }
2560
- r(Gr, "extractDeprecated");
2561
- function dt(n, s) {
2575
+ r(Xr, "extractDeprecated");
2576
+ function gt(n, s) {
2562
2577
  let a = n === "" ? s : `${n} ${s}`;
2563
- return Tt(a);
2578
+ return ht(a);
2564
2579
  }
2565
- r(dt, "joinNameAndDescription");
2566
- function Tt(n) {
2580
+ r(gt, "joinNameAndDescription");
2581
+ function ht(n) {
2567
2582
  let s = n.replace(/^- /g, "").trim();
2568
2583
  return s === "" ? null : s;
2569
2584
  }
2570
- r(Tt, "normaliseDescription");
2571
- function zr(n) {
2572
- let s = gt(n.type);
2585
+ r(ht, "normaliseDescription");
2586
+ function Hr(n) {
2587
+ let s = xt(n.type);
2573
2588
  return s ? {
2574
2589
  type: s,
2575
- description: dt(n.name, n.description),
2576
- getTypeName: /* @__PURE__ */ r(() => ht(s), "getTypeName")
2590
+ description: gt(n.name, n.description),
2591
+ getTypeName: /* @__PURE__ */ r(() => Jt(s), "getTypeName")
2577
2592
  } : null;
2578
2593
  }
2579
- r(zr, "extractReturns");
2580
- var L = (0, $.stringifyRules)(), Xr = L.JsdocTypeObject;
2594
+ r(Hr, "extractReturns");
2595
+ var L = (0, $.stringifyRules)(), Qr = L.JsdocTypeObject;
2581
2596
  L.JsdocTypeAny = () => "any";
2582
- L.JsdocTypeObject = (n, s) => `(${Xr(n, s)})`;
2597
+ L.JsdocTypeObject = (n, s) => `(${Qr(n, s)})`;
2583
2598
  L.JsdocTypeOptional = (n, s) => s(n.element);
2584
2599
  L.JsdocTypeNullable = (n, s) => s(n.element);
2585
2600
  L.JsdocTypeNotNullable = (n, s) => s(n.element);
2586
2601
  L.JsdocTypeUnion = (n, s) => n.elements.map(s).join("|");
2587
- function gt(n) {
2602
+ function xt(n) {
2588
2603
  try {
2589
2604
  return (0, $.parse)(n, "typescript");
2590
2605
  } catch {
2591
2606
  return null;
2592
2607
  }
2593
2608
  }
2594
- r(gt, "extractType");
2595
- function ht(n) {
2609
+ r(xt, "extractType");
2610
+ function Jt(n) {
2596
2611
  return (0, $.transform)(L, n);
2597
2612
  }
2598
- r(ht, "extractTypeName");
2613
+ r(Jt, "extractTypeName");
2599
2614
 
2600
2615
  // src/docs-tools/argTypes/utils.ts
2601
- var xs = 90, Js = 50;
2602
- function Me(n) {
2616
+ var bs = 90, Es = 50;
2617
+ function Ke(n) {
2603
2618
  return n.length > 90;
2604
2619
  }
2605
- r(Me, "isTooLongForTypeSummary");
2606
- function xt(n) {
2620
+ r(Ke, "isTooLongForTypeSummary");
2621
+ function wt(n) {
2607
2622
  return n.length > 50;
2608
2623
  }
2609
- r(xt, "isTooLongForDefaultValueSummary");
2624
+ r(wt, "isTooLongForDefaultValueSummary");
2610
2625
  function J(n, s) {
2611
2626
  return n === s ? { summary: n } : { summary: n, detail: s };
2612
2627
  }
2613
2628
  r(J, "createSummaryValue");
2614
- var ws = /* @__PURE__ */ r((n) => n.replace(/\\r\\n/g, "\\n"), "normalizeNewlines");
2629
+ var Ss = /* @__PURE__ */ r((n) => n.replace(/\\r\\n/g, "\\n"), "normalizeNewlines");
2615
2630
 
2616
2631
  // src/docs-tools/argTypes/docgen/flow/createDefaultValue.ts
2617
- function Jt(n, s) {
2632
+ function Pt(n, s) {
2618
2633
  if (n != null) {
2619
2634
  let { value: a } = n;
2620
2635
  if (!K(a))
2621
- return xt(a) ? J(s?.name, a) : J(a);
2636
+ return wt(a) ? J(s?.name, a) : J(a);
2622
2637
  }
2623
2638
  return null;
2624
2639
  }
2625
- r(Jt, "createDefaultValue");
2640
+ r(Pt, "createDefaultValue");
2626
2641
 
2627
2642
  // src/docs-tools/argTypes/docgen/flow/createType.ts
2628
- function wt({ name: n, value: s, elements: a, raw: p }) {
2629
- return s ?? (a != null ? a.map(wt).join(" | ") : p ?? n);
2643
+ function bt({ name: n, value: s, elements: a, raw: p }) {
2644
+ return s ?? (a != null ? a.map(bt).join(" | ") : p ?? n);
2630
2645
  }
2631
- r(wt, "generateUnionElement");
2632
- function Hr({ name: n, raw: s, elements: a }) {
2633
- return a != null ? J(a.map(wt).join(" | ")) : s != null ? J(s.replace(/^\|\s*/, "")) : J(n);
2646
+ r(bt, "generateUnionElement");
2647
+ function Zr({ name: n, raw: s, elements: a }) {
2648
+ return a != null ? J(a.map(bt).join(" | ")) : s != null ? J(s.replace(/^\|\s*/, "")) : J(n);
2634
2649
  }
2635
- r(Hr, "generateUnion");
2636
- function Qr({ type: n, raw: s }) {
2650
+ r(Zr, "generateUnion");
2651
+ function en({ type: n, raw: s }) {
2637
2652
  return s != null ? J(s) : J(n);
2638
2653
  }
2639
- r(Qr, "generateFuncSignature");
2640
- function Zr({ type: n, raw: s }) {
2641
- return s != null ? Me(s) ? J(n, s) : J(s) : J(n);
2654
+ r(en, "generateFuncSignature");
2655
+ function tn({ type: n, raw: s }) {
2656
+ return s != null ? Ke(s) ? J(n, s) : J(s) : J(n);
2642
2657
  }
2643
- r(Zr, "generateObjectSignature");
2644
- function en(n) {
2658
+ r(tn, "generateObjectSignature");
2659
+ function rn(n) {
2645
2660
  let { type: s } = n;
2646
- return s === "object" ? Zr(n) : Qr(n);
2661
+ return s === "object" ? tn(n) : en(n);
2647
2662
  }
2648
- r(en, "generateSignature");
2649
- function tn({ name: n, raw: s }) {
2650
- return s != null ? Me(s) ? J(n, s) : J(s) : J(n);
2663
+ r(rn, "generateSignature");
2664
+ function nn({ name: n, raw: s }) {
2665
+ return s != null ? Ke(s) ? J(n, s) : J(s) : J(n);
2651
2666
  }
2652
- r(tn, "generateDefault");
2653
- function Pt(n) {
2667
+ r(nn, "generateDefault");
2668
+ function Et(n) {
2654
2669
  if (n == null)
2655
2670
  return null;
2656
2671
  switch (n.name) {
2657
2672
  case "union":
2658
- return Hr(n);
2673
+ return Zr(n);
2659
2674
  case "signature":
2660
- return en(n);
2675
+ return rn(n);
2661
2676
  default:
2662
- return tn(n);
2677
+ return nn(n);
2663
2678
  }
2664
2679
  }
2665
- r(Pt, "createType");
2680
+ r(Et, "createType");
2666
2681
 
2667
2682
  // src/docs-tools/argTypes/docgen/flow/createPropDef.ts
2668
- var bt = /* @__PURE__ */ r((n, s) => {
2683
+ var St = /* @__PURE__ */ r((n, s) => {
2669
2684
  let { flowType: a, description: p, required: c, defaultValue: u } = s;
2670
2685
  return {
2671
2686
  name: n,
2672
- type: Pt(a),
2687
+ type: Et(a),
2673
2688
  required: c,
2674
2689
  description: p,
2675
- defaultValue: Jt(u ?? null, a ?? null)
2690
+ defaultValue: Pt(u ?? null, a ?? null)
2676
2691
  };
2677
2692
  }, "createFlowPropDef");
2678
2693
 
2679
2694
  // src/docs-tools/argTypes/docgen/typeScript/createDefaultValue.ts
2680
- function Et({ defaultValue: n }) {
2695
+ function Nt({ defaultValue: n }) {
2681
2696
  if (n != null) {
2682
2697
  let { value: s } = n;
2683
2698
  if (!K(s))
@@ -2685,10 +2700,10 @@ function Et({ defaultValue: n }) {
2685
2700
  }
2686
2701
  return null;
2687
2702
  }
2688
- r(Et, "createDefaultValue");
2703
+ r(Nt, "createDefaultValue");
2689
2704
 
2690
2705
  // src/docs-tools/argTypes/docgen/typeScript/createType.ts
2691
- function St({ tsType: n, required: s }) {
2706
+ function Dt({ tsType: n, required: s }) {
2692
2707
  if (n == null)
2693
2708
  return null;
2694
2709
  let a = n.name;
@@ -2696,57 +2711,57 @@ function St({ tsType: n, required: s }) {
2696
2711
  ["Array", "Record", "signature"].includes(n.name) ? n.raw : a
2697
2712
  );
2698
2713
  }
2699
- r(St, "createType");
2714
+ r(Dt, "createType");
2700
2715
 
2701
2716
  // src/docs-tools/argTypes/docgen/typeScript/createPropDef.ts
2702
- var Nt = /* @__PURE__ */ r((n, s) => {
2717
+ var Ot = /* @__PURE__ */ r((n, s) => {
2703
2718
  let { description: a, required: p } = s;
2704
2719
  return {
2705
2720
  name: n,
2706
- type: St(s),
2721
+ type: Dt(s),
2707
2722
  required: p,
2708
2723
  description: a,
2709
- defaultValue: Et(s)
2724
+ defaultValue: Nt(s)
2710
2725
  };
2711
2726
  }, "createTsPropDef");
2712
2727
 
2713
2728
  // src/docs-tools/argTypes/docgen/createPropDef.ts
2714
- function rn(n) {
2729
+ function on(n) {
2715
2730
  return n != null ? J(n.name) : null;
2716
2731
  }
2717
- r(rn, "createType");
2718
- function nn(n) {
2732
+ r(on, "createType");
2733
+ function sn(n) {
2719
2734
  let { computed: s, func: a } = n;
2720
2735
  return typeof s > "u" && typeof a > "u";
2721
2736
  }
2722
- r(nn, "isReactDocgenTypescript");
2723
- function on(n) {
2737
+ r(sn, "isReactDocgenTypescript");
2738
+ function an(n) {
2724
2739
  return n ? n.name === "string" ? !0 : n.name === "enum" ? Array.isArray(n.value) && n.value.every(
2725
2740
  ({ value: s }) => typeof s == "string" && s[0] === '"' && s[s.length - 1] === '"'
2726
2741
  ) : !1 : !1;
2727
2742
  }
2728
- r(on, "isStringValued");
2729
- function sn(n, s) {
2743
+ r(an, "isStringValued");
2744
+ function pn(n, s) {
2730
2745
  if (n != null) {
2731
2746
  let { value: a } = n;
2732
2747
  if (!K(a))
2733
- return nn(n) && on(s) ? J(JSON.stringify(a)) : J(a);
2748
+ return sn(n) && an(s) ? J(JSON.stringify(a)) : J(a);
2734
2749
  }
2735
2750
  return null;
2736
2751
  }
2737
- r(sn, "createDefaultValue");
2738
- function Dt(n, s, a) {
2752
+ r(pn, "createDefaultValue");
2753
+ function vt(n, s, a) {
2739
2754
  let { description: p, required: c, defaultValue: u } = a;
2740
2755
  return {
2741
2756
  name: n,
2742
- type: rn(s),
2757
+ type: on(s),
2743
2758
  required: c,
2744
2759
  description: p,
2745
- defaultValue: sn(u, s)
2760
+ defaultValue: pn(u, s)
2746
2761
  };
2747
2762
  }
2748
- r(Dt, "createBasicPropDef");
2749
- function ye(n, s) {
2763
+ r(vt, "createBasicPropDef");
2764
+ function fe(n, s) {
2750
2765
  if (s?.includesJsDoc) {
2751
2766
  let { description: a, extractedTags: p } = s;
2752
2767
  a != null && (n.description = s.description);
@@ -2763,36 +2778,36 @@ function ye(n, s) {
2763
2778
  }
2764
2779
  return n;
2765
2780
  }
2766
- r(ye, "applyJsDocResult");
2767
- var an = /* @__PURE__ */ r((n, s, a) => {
2768
- let p = Dt(n, s.type, s);
2769
- return p.sbType = ie(s), ye(p, a);
2770
- }, "javaScriptFactory"), pn = /* @__PURE__ */ r((n, s, a) => {
2771
- let p = Nt(n, s);
2772
- return p.sbType = ie(s), ye(p, a);
2773
- }, "tsFactory"), cn = /* @__PURE__ */ r((n, s, a) => {
2774
- let p = bt(n, s);
2775
- return p.sbType = ie(s), ye(p, a);
2776
- }, "flowFactory"), ln = /* @__PURE__ */ r((n, s, a) => {
2777
- let p = Dt(n, { name: "unknown" }, s);
2778
- return ye(p, a);
2779
- }, "unknownFactory"), Ke = /* @__PURE__ */ r((n) => {
2781
+ r(fe, "applyJsDocResult");
2782
+ var cn = /* @__PURE__ */ r((n, s, a) => {
2783
+ let p = vt(n, s.type, s);
2784
+ return p.sbType = pe(s), fe(p, a);
2785
+ }, "javaScriptFactory"), ln = /* @__PURE__ */ r((n, s, a) => {
2786
+ let p = Ot(n, s);
2787
+ return p.sbType = pe(s), fe(p, a);
2788
+ }, "tsFactory"), un = /* @__PURE__ */ r((n, s, a) => {
2789
+ let p = St(n, s);
2790
+ return p.sbType = pe(s), fe(p, a);
2791
+ }, "flowFactory"), mn = /* @__PURE__ */ r((n, s, a) => {
2792
+ let p = vt(n, { name: "unknown" }, s);
2793
+ return fe(p, a);
2794
+ }, "unknownFactory"), $e = /* @__PURE__ */ r((n) => {
2780
2795
  switch (n) {
2781
2796
  case "JavaScript":
2782
- return an;
2797
+ return cn;
2783
2798
  case "TypeScript":
2784
- return pn;
2799
+ return ln;
2785
2800
  case "Flow":
2786
- return cn;
2801
+ return un;
2787
2802
  default:
2788
- return ln;
2803
+ return mn;
2789
2804
  }
2790
2805
  }, "getPropDefFactory");
2791
2806
 
2792
2807
  // src/docs-tools/argTypes/docgen/extractDocgenProps.ts
2793
- var Ot = /* @__PURE__ */ r((n) => n.type != null ? "JavaScript" : n.flowType != null ? "Flow" : n.tsType != null ? "TypeScript" : "Unknown",
2794
- "getTypeSystem"), un = /* @__PURE__ */ r((n) => {
2795
- let s = Ot(n[0]), a = Ke(s);
2808
+ var kt = /* @__PURE__ */ r((n) => n.type != null ? "JavaScript" : n.flowType != null ? "Flow" : n.tsType != null ? "TypeScript" : "Unknown",
2809
+ "getTypeSystem"), yn = /* @__PURE__ */ r((n) => {
2810
+ let s = kt(n[0]), a = $e(s);
2796
2811
  return n.map((p) => {
2797
2812
  let c = p;
2798
2813
  return p.type?.elements && (c = {
@@ -2801,20 +2816,20 @@ var Ot = /* @__PURE__ */ r((n) => n.type != null ? "JavaScript" : n.flowType !=
2801
2816
  ...p.type,
2802
2817
  value: p.type.elements
2803
2818
  }
2804
- }), vt(c.name, c, s, a);
2819
+ }), At(c.name, c, s, a);
2805
2820
  });
2806
- }, "extractComponentSectionArray"), mn = /* @__PURE__ */ r((n) => {
2807
- let s = Object.keys(n), a = Ot(n[s[0]]), p = Ke(a);
2821
+ }, "extractComponentSectionArray"), fn = /* @__PURE__ */ r((n) => {
2822
+ let s = Object.keys(n), a = kt(n[s[0]]), p = $e(a);
2808
2823
  return s.map((c) => {
2809
2824
  let u = n[c];
2810
- return u != null ? vt(c, u, a, p) : null;
2825
+ return u != null ? At(c, u, a, p) : null;
2811
2826
  }).filter(Boolean);
2812
- }, "extractComponentSectionObject"), ra = /* @__PURE__ */ r((n, s) => {
2813
- let a = at(n, s);
2814
- return st(a) ? Array.isArray(a) ? un(a) : mn(a) : [];
2827
+ }, "extractComponentSectionObject"), aa = /* @__PURE__ */ r((n, s) => {
2828
+ let a = pt(n, s);
2829
+ return it(a) ? Array.isArray(a) ? yn(a) : fn(a) : [];
2815
2830
  }, "extractComponentProps");
2816
- function vt(n, s, a, p) {
2817
- let c = ft(s.description);
2831
+ function At(n, s, a, p) {
2832
+ let c = Tt(s.description);
2818
2833
  return c.includesJsDoc && c.ignore ? null : {
2819
2834
  propDef: p(n, s, c),
2820
2835
  jsDocTags: c.extractedTags,
@@ -2822,55 +2837,66 @@ function vt(n, s, a, p) {
2822
2837
  typeSystem: a
2823
2838
  };
2824
2839
  }
2825
- r(vt, "extractProp");
2826
- function na(n) {
2827
- return n != null ? it(n) : "";
2840
+ r(At, "extractProp");
2841
+ function ia(n) {
2842
+ return n != null ? ct(n) : "";
2828
2843
  }
2829
- r(na, "extractComponentDescription");
2844
+ r(ia, "extractComponentDescription");
2845
+
2846
+ // src/preview-api/modules/store/parameters.ts
2847
+ var qe = /* @__PURE__ */ r((...n) => {
2848
+ let s = {}, a = n.filter(Boolean), p = a.reduce((c, u) => (Object.entries(u).forEach(([m, T]) => {
2849
+ let g = c[m];
2850
+ Array.isArray(T) || typeof g > "u" ? c[m] = T : z(T) && z(g) ? s[m] = !0 : typeof T < "u" && (c[m] = T);
2851
+ }), c), {});
2852
+ return Object.keys(s).forEach((c) => {
2853
+ let u = a.filter(Boolean).map((m) => m[c]).filter((m) => typeof m < "u");
2854
+ u.every((m) => z(m)) ? p[c] = qe(...u) : p[c] = u[u.length - 1];
2855
+ }), p;
2856
+ }, "combineParameters");
2830
2857
 
2831
2858
  // src/docs-tools/argTypes/enhanceArgTypes.ts
2832
- import { combineParameters as yn } from "storybook/preview-api";
2833
- var ia = /* @__PURE__ */ r((n) => {
2859
+ var fa = /* @__PURE__ */ r((n) => {
2834
2860
  let {
2835
2861
  component: s,
2836
2862
  argTypes: a,
2837
2863
  parameters: { docs: p = {} }
2838
2864
  } = n, { extractArgTypes: c } = p, u = c && s ? c(s) : {};
2839
- return u ? yn(u, a) : a;
2865
+ return u ? qe(u, a) : a;
2840
2866
  }, "enhanceArgTypes");
2841
2867
 
2842
2868
  // src/docs-tools/shared.ts
2843
- var kt = "storybook/docs", la = `${kt}/panel`, ua = "docs", ma = `${kt}/snippet-rendered`, fn = /* @__PURE__ */ ((p) => (p.AUTO = "auto", p.
2844
- CODE = "code", p.DYNAMIC = "dynamic", p))(fn || {});
2869
+ var Rt = "storybook/docs", ga = `${Rt}/panel`, ha = "docs", xa = `${Rt}/snippet-rendered`, dn = /* @__PURE__ */ ((p) => (p.AUTO = "auto", p.
2870
+ CODE = "code", p.DYNAMIC = "dynamic", p))(dn || {});
2845
2871
 
2846
2872
  // src/docs-tools/hasDocsOrControls.ts
2847
- var dn = /(addons\/|addon-|addon-essentials\/)(docs|controls)/, fa = /* @__PURE__ */ r((n) => n.presetsList?.some((s) => dn.test(s.name)), "\
2873
+ var Tn = /(addons\/|addon-|addon-essentials\/)(docs|controls)/, wa = /* @__PURE__ */ r((n) => n.presetsList?.some((s) => Tn.test(s.name)), "\
2848
2874
  hasDocsOrControls");
2849
2875
  export {
2850
- kt as ADDON_ID,
2851
- Js as MAX_DEFAULT_VALUE_SUMMARY_LENGTH,
2852
- xs as MAX_TYPE_SUMMARY_LENGTH,
2853
- la as PANEL_ID,
2854
- ua as PARAM_KEY,
2855
- ma as SNIPPET_RENDERED,
2856
- fn as SourceType,
2857
- vr as TypeSystem,
2858
- ie as convert,
2876
+ Rt as ADDON_ID,
2877
+ Es as MAX_DEFAULT_VALUE_SUMMARY_LENGTH,
2878
+ bs as MAX_TYPE_SUMMARY_LENGTH,
2879
+ ga as PANEL_ID,
2880
+ ha as PARAM_KEY,
2881
+ xa as SNIPPET_RENDERED,
2882
+ dn as SourceType,
2883
+ Ar as TypeSystem,
2884
+ pe as convert,
2859
2885
  J as createSummaryValue,
2860
- ia as enhanceArgTypes,
2861
- na as extractComponentDescription,
2862
- ra as extractComponentProps,
2863
- un as extractComponentSectionArray,
2864
- mn as extractComponentSectionObject,
2865
- it as getDocgenDescription,
2866
- at as getDocgenSection,
2867
- ot as hasDocgen,
2868
- fa as hasDocsOrControls,
2886
+ fa as enhanceArgTypes,
2887
+ ia as extractComponentDescription,
2888
+ aa as extractComponentProps,
2889
+ yn as extractComponentSectionArray,
2890
+ fn as extractComponentSectionObject,
2891
+ ct as getDocgenDescription,
2892
+ pt as getDocgenSection,
2893
+ at as hasDocgen,
2894
+ wa as hasDocsOrControls,
2869
2895
  K as isDefaultValueBlacklisted,
2870
- xt as isTooLongForDefaultValueSummary,
2871
- Me as isTooLongForTypeSummary,
2872
- st as isValidDocgenSection,
2873
- ws as normalizeNewlines,
2874
- ft as parseJsDoc,
2875
- nt as str
2896
+ wt as isTooLongForDefaultValueSummary,
2897
+ Ke as isTooLongForTypeSummary,
2898
+ it as isValidDocgenSection,
2899
+ Ss as normalizeNewlines,
2900
+ Tt as parseJsDoc,
2901
+ st as str
2876
2902
  };