@storybook/react 10.5.0-alpha.6 → 10.5.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/preset.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_swx3ow7zp9i from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_swx3ow7zp9i from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_swx3ow7zp9i from "node:module";
1
+ import CJS_COMPAT_NODE_URL_rn37c00uhd from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_rn37c00uhd from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_rn37c00uhd from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_swx3ow7zp9i.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_swx3ow7zp9i.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_swx3ow7zp9i.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_rn37c00uhd.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_rn37c00uhd.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_rn37c00uhd.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -20,11 +20,20 @@ var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof
20
20
  if (typeof require < "u") return require.apply(this, arguments);
21
21
  throw Error('Dynamic require of "' + x + '" is not supported');
22
22
  });
23
- var __esm = (fn, res) => function() {
24
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
23
+ var __esm = (fn, res, err) => function() {
24
+ if (err) throw err[0];
25
+ try {
26
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
27
+ } catch (e) {
28
+ throw err = [e], e;
29
+ }
25
30
  };
26
31
  var __commonJS = (cb, mod) => function() {
27
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
32
+ try {
33
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
34
+ } catch (e) {
35
+ throw mod = 0, e;
36
+ }
28
37
  };
29
38
  var __export = (target, all) => {
30
39
  for (var name in all)
@@ -57,10 +66,10 @@ var require_estraverse = __commonJS({
57
66
  return ret;
58
67
  }
59
68
  function upperBound(array, func) {
60
- var diff, len, i, current2;
61
- for (len = array.length, i = 0; len; )
62
- diff = len >>> 1, current2 = i + diff, func(array[current2]) ? len = diff : (i = current2 + 1, len -= diff + 1);
63
- return i;
69
+ var diff, len, i2, current2;
70
+ for (len = array.length, i2 = 0; len; )
71
+ diff = len >>> 1, current2 = i2 + diff, func(array[current2]) ? len = diff : (i2 = current2 + 1, len -= diff + 1);
72
+ return i2;
64
73
  }
65
74
  Syntax = {
66
75
  AssignmentExpression: "AssignmentExpression",
@@ -241,7 +250,7 @@ var require_estraverse = __commonJS({
241
250
  function Controller() {
242
251
  }
243
252
  Controller.prototype.path = function() {
244
- var i, iz, j, jz, result, element;
253
+ var i2, iz, j, jz, result, element;
245
254
  function addToPath(result2, path6) {
246
255
  if (Array.isArray(path6))
247
256
  for (j = 0, jz = path6.length; j < jz; ++j)
@@ -251,16 +260,16 @@ var require_estraverse = __commonJS({
251
260
  }
252
261
  if (!this.__current.path)
253
262
  return null;
254
- for (result = [], i = 2, iz = this.__leavelist.length; i < iz; ++i)
255
- element = this.__leavelist[i], addToPath(result, element.path);
263
+ for (result = [], i2 = 2, iz = this.__leavelist.length; i2 < iz; ++i2)
264
+ element = this.__leavelist[i2], addToPath(result, element.path);
256
265
  return addToPath(result, this.__current.path), result;
257
266
  }, Controller.prototype.type = function() {
258
267
  var node = this.current();
259
268
  return node.type || this.__current.wrap;
260
269
  }, Controller.prototype.parents = function() {
261
- var i, iz, result;
262
- for (result = [], i = 1, iz = this.__leavelist.length; i < iz; ++i)
263
- result.push(this.__leavelist[i].node);
270
+ var i2, iz, result;
271
+ for (result = [], i2 = 1, iz = this.__leavelist.length; i2 < iz; ++i2)
272
+ result.push(this.__leavelist[i2].node);
264
273
  return result;
265
274
  }, Controller.prototype.current = function() {
266
275
  return this.__current.node;
@@ -285,8 +294,8 @@ var require_estraverse = __commonJS({
285
294
  return (nodeType === Syntax.ObjectExpression || nodeType === Syntax.ObjectPattern) && key === "properties";
286
295
  }
287
296
  function candidateExistsInLeaveList(leavelist, candidate) {
288
- for (var i = leavelist.length - 1; i >= 0; --i)
289
- if (leavelist[i].node === candidate)
297
+ for (var i2 = leavelist.length - 1; i2 >= 0; --i2)
298
+ if (leavelist[i2].node === candidate)
290
299
  return !0;
291
300
  return !1;
292
301
  }
@@ -332,10 +341,10 @@ var require_estraverse = __commonJS({
332
341
  }, Controller.prototype.replace = function(root, visitor) {
333
342
  var worklist, leavelist, node, nodeType, target, element, current2, current22, candidates, candidate, sentinel, outer, key;
334
343
  function removeElem(element2) {
335
- var i, key2, nextElem, parent;
344
+ var i2, key2, nextElem, parent;
336
345
  if (element2.ref.remove()) {
337
- for (key2 = element2.ref.key, parent = element2.ref.parent, i = worklist.length; i--; )
338
- if (nextElem = worklist[i], nextElem.ref && nextElem.ref.parent === parent) {
346
+ for (key2 = element2.ref.key, parent = element2.ref.parent, i2 = worklist.length; i2--; )
347
+ if (nextElem = worklist[i2], nextElem.ref && nextElem.ref.parent === parent) {
339
348
  if (nextElem.ref.key < key2)
340
349
  break;
341
350
  --nextElem.ref.key;
@@ -391,19 +400,19 @@ var require_estraverse = __commonJS({
391
400
  }), comment.extendedRange = [comment.range[0], comment.range[1]], target !== tokens.length && (comment.extendedRange[1] = tokens[target].range[0]), target -= 1, target >= 0 && (comment.extendedRange[0] = tokens[target].range[1]), comment;
392
401
  }
393
402
  function attachComments(tree, providedComments, tokens) {
394
- var comments = [], comment, len, i, cursor;
403
+ var comments = [], comment, len, i2, cursor;
395
404
  if (!tree.range)
396
405
  throw new Error("attachComments needs range information");
397
406
  if (!tokens.length) {
398
407
  if (providedComments.length) {
399
- for (i = 0, len = providedComments.length; i < len; i += 1)
400
- comment = deepCopy(providedComments[i]), comment.extendedRange = [0, tree.range[0]], comments.push(comment);
408
+ for (i2 = 0, len = providedComments.length; i2 < len; i2 += 1)
409
+ comment = deepCopy(providedComments[i2]), comment.extendedRange = [0, tree.range[0]], comments.push(comment);
401
410
  tree.leadingComments = comments;
402
411
  }
403
412
  return tree;
404
413
  }
405
- for (i = 0, len = providedComments.length; i < len; i += 1)
406
- comments.push(extendCommentRange(deepCopy(providedComments[i]), tokens));
414
+ for (i2 = 0, len = providedComments.length; i2 < len; i2 += 1)
415
+ comments.push(extendCommentRange(deepCopy(providedComments[i2]), tokens));
407
416
  return cursor = 0, traverse(tree, {
408
417
  enter: function(node) {
409
418
  for (var comment2; cursor < comments.length && (comment2 = comments[cursor], !(comment2.extendedRange[1] > node.range[0])); )
@@ -690,11 +699,11 @@ var require_keyword = __commonJS({
690
699
  return id === "eval" || id === "arguments";
691
700
  }
692
701
  function isIdentifierNameES5(id) {
693
- var i, iz, ch;
702
+ var i2, iz, ch;
694
703
  if (id.length === 0 || (ch = id.charCodeAt(0), !code.isIdentifierStartES5(ch)))
695
704
  return !1;
696
- for (i = 1, iz = id.length; i < iz; ++i)
697
- if (ch = id.charCodeAt(i), !code.isIdentifierPartES5(ch))
705
+ for (i2 = 1, iz = id.length; i2 < iz; ++i2)
706
+ if (ch = id.charCodeAt(i2), !code.isIdentifierPartES5(ch))
698
707
  return !1;
699
708
  return !0;
700
709
  }
@@ -702,12 +711,12 @@ var require_keyword = __commonJS({
702
711
  return (lead - 55296) * 1024 + (trail - 56320) + 65536;
703
712
  }
704
713
  function isIdentifierNameES6(id) {
705
- var i, iz, ch, lowCh, check;
714
+ var i2, iz, ch, lowCh, check;
706
715
  if (id.length === 0)
707
716
  return !1;
708
- for (check = code.isIdentifierStartES6, i = 0, iz = id.length; i < iz; ++i) {
709
- if (ch = id.charCodeAt(i), 55296 <= ch && ch <= 56319) {
710
- if (++i, i >= iz || (lowCh = id.charCodeAt(i), !(56320 <= lowCh && lowCh <= 57343)))
717
+ for (check = code.isIdentifierStartES6, i2 = 0, iz = id.length; i2 < iz; ++i2) {
718
+ if (ch = id.charCodeAt(i2), 55296 <= ch && ch <= 56319) {
719
+ if (++i2, i2 >= iz || (lowCh = id.charCodeAt(i2), !(56320 <= lowCh && lowCh <= 57343)))
711
720
  return !1;
712
721
  ch = decodeUtf16(ch, lowCh);
713
722
  }
@@ -831,8 +840,8 @@ var require_util = __commonJS({
831
840
  return aPath;
832
841
  path5 = url.path;
833
842
  }
834
- for (var isAbsolute4 = exports.isAbsolute(path5), parts = path5.split(/\/+/), part, up3 = 0, i = parts.length - 1; i >= 0; i--)
835
- part = parts[i], part === "." ? parts.splice(i, 1) : part === ".." ? up3++ : up3 > 0 && (part === "" ? (parts.splice(i + 1, up3), up3 = 0) : (parts.splice(i, 2), up3--));
843
+ for (var isAbsolute4 = exports.isAbsolute(path5), parts = path5.split(/\/+/), part, up3 = 0, i2 = parts.length - 1; i2 >= 0; i2--)
844
+ part = parts[i2], part === "." ? parts.splice(i2, 1) : part === ".." ? up3++ : up3 > 0 && (part === "" ? (parts.splice(i2 + 1, up3), up3 = 0) : (parts.splice(i2, 2), up3--));
836
845
  return path5 = parts.join("/"), path5 === "" && (path5 = isAbsolute4 ? "/" : "."), url ? (url.path = path5, urlGenerate(url)) : path5;
837
846
  }
838
847
  exports.normalize = normalize2;
@@ -884,8 +893,8 @@ var require_util = __commonJS({
884
893
  var length = s.length;
885
894
  if (length < 9 || s.charCodeAt(length - 1) !== 95 || s.charCodeAt(length - 2) !== 95 || s.charCodeAt(length - 3) !== 111 || s.charCodeAt(length - 4) !== 116 || s.charCodeAt(length - 5) !== 111 || s.charCodeAt(length - 6) !== 114 || s.charCodeAt(length - 7) !== 112 || s.charCodeAt(length - 8) !== 95 || s.charCodeAt(length - 9) !== 95)
886
895
  return !1;
887
- for (var i = length - 10; i >= 0; i--)
888
- if (s.charCodeAt(i) !== 36)
896
+ for (var i2 = length - 10; i2 >= 0; i2--)
897
+ if (s.charCodeAt(i2) !== 36)
889
898
  return !1;
890
899
  return !0;
891
900
  }
@@ -936,8 +945,8 @@ var require_array_set = __commonJS({
936
945
  this._array = [], this._set = hasNativeMap ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
937
946
  }
938
947
  ArraySet.fromArray = function(aArray, aAllowDuplicates) {
939
- for (var set = new ArraySet(), i = 0, len = aArray.length; i < len; i++)
940
- set.add(aArray[i], aAllowDuplicates);
948
+ for (var set = new ArraySet(), i2 = 0, len = aArray.length; i2 < len; i2++)
949
+ set.add(aArray[i2], aAllowDuplicates);
941
950
  return set;
942
951
  };
943
952
  ArraySet.prototype.size = function() {
@@ -1093,12 +1102,12 @@ var require_source_map_generator = __commonJS({
1093
1102
  }
1094
1103
  };
1095
1104
  SourceMapGenerator.prototype._serializeMappings = function() {
1096
- for (var previousGeneratedColumn = 0, previousGeneratedLine = 1, previousOriginalColumn = 0, previousOriginalLine = 0, previousName = 0, previousSource = 0, result = "", next, mapping, nameIdx, sourceIdx, mappings = this._mappings.toArray(), i = 0, len = mappings.length; i < len; i++) {
1097
- if (mapping = mappings[i], next = "", mapping.generatedLine !== previousGeneratedLine)
1105
+ for (var previousGeneratedColumn = 0, previousGeneratedLine = 1, previousOriginalColumn = 0, previousOriginalLine = 0, previousName = 0, previousSource = 0, result = "", next, mapping, nameIdx, sourceIdx, mappings = this._mappings.toArray(), i2 = 0, len = mappings.length; i2 < len; i2++) {
1106
+ if (mapping = mappings[i2], next = "", mapping.generatedLine !== previousGeneratedLine)
1098
1107
  for (previousGeneratedColumn = 0; mapping.generatedLine !== previousGeneratedLine; )
1099
1108
  next += ";", previousGeneratedLine++;
1100
- else if (i > 0) {
1101
- if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1]))
1109
+ else if (i2 > 0) {
1110
+ if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i2 - 1]))
1102
1111
  continue;
1103
1112
  next += ",";
1104
1113
  }
@@ -1172,12 +1181,12 @@ var require_quick_sort = __commonJS({
1172
1181
  }
1173
1182
  function doQuickSort(ary, comparator, p, r) {
1174
1183
  if (p < r) {
1175
- var pivotIndex = randomIntInRange(p, r), i = p - 1;
1184
+ var pivotIndex = randomIntInRange(p, r), i2 = p - 1;
1176
1185
  swap(ary, pivotIndex, r);
1177
1186
  for (var pivot = ary[r], j = p; j < r; j++)
1178
- comparator(ary[j], pivot) <= 0 && (i += 1, swap(ary, i, j));
1179
- swap(ary, i + 1, j);
1180
- var q = i + 1;
1187
+ comparator(ary[j], pivot) <= 0 && (i2 += 1, swap(ary, i2, j));
1188
+ swap(ary, i2 + 1, j);
1189
+ var q = i2 + 1;
1181
1190
  doQuickSort(ary, comparator, p, q - 1), doQuickSort(ary, comparator, q + 1, r);
1182
1191
  }
1183
1192
  }
@@ -1305,10 +1314,10 @@ var require_source_map_consumer = __commonJS({
1305
1314
  var relativeSource = aSource;
1306
1315
  if (this.sourceRoot != null && (relativeSource = util.relative(this.sourceRoot, relativeSource)), this._sources.has(relativeSource))
1307
1316
  return this._sources.indexOf(relativeSource);
1308
- var i;
1309
- for (i = 0; i < this._absoluteSources.length; ++i)
1310
- if (this._absoluteSources[i] == aSource)
1311
- return i;
1317
+ var i2;
1318
+ for (i2 = 0; i2 < this._absoluteSources.length; ++i2)
1319
+ if (this._absoluteSources[i2] == aSource)
1320
+ return i2;
1312
1321
  return -1;
1313
1322
  };
1314
1323
  BasicSourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
@@ -1319,8 +1328,8 @@ var require_source_map_consumer = __commonJS({
1319
1328
  ), smc.file = aSourceMap._file, smc._sourceMapURL = aSourceMapURL, smc._absoluteSources = smc._sources.toArray().map(function(s) {
1320
1329
  return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
1321
1330
  });
1322
- for (var generatedMappings = aSourceMap._mappings.toArray().slice(), destGeneratedMappings = smc.__generatedMappings = [], destOriginalMappings = smc.__originalMappings = [], i = 0, length = generatedMappings.length; i < length; i++) {
1323
- var srcMapping = generatedMappings[i], destMapping = new Mapping();
1331
+ for (var generatedMappings = aSourceMap._mappings.toArray().slice(), destGeneratedMappings = smc.__generatedMappings = [], destOriginalMappings = smc.__originalMappings = [], i2 = 0, length = generatedMappings.length; i2 < length; i2++) {
1332
+ var srcMapping = generatedMappings[i2], destMapping = new Mapping();
1324
1333
  destMapping.generatedLine = srcMapping.generatedLine, destMapping.generatedColumn = srcMapping.generatedColumn, srcMapping.source && (destMapping.source = sources.indexOf(srcMapping.source), destMapping.originalLine = srcMapping.originalLine, destMapping.originalColumn = srcMapping.originalColumn, srcMapping.name && (destMapping.name = names.indexOf(srcMapping.name)), destOriginalMappings.push(destMapping)), destGeneratedMappings.push(destMapping);
1325
1334
  }
1326
1335
  return quickSort(smc.__originalMappings, util.compareByOriginalPositions), smc;
@@ -1505,9 +1514,9 @@ var require_source_map_consumer = __commonJS({
1505
1514
  IndexedSourceMapConsumer.prototype._version = 3;
1506
1515
  Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", {
1507
1516
  get: function() {
1508
- for (var sources = [], i = 0; i < this._sections.length; i++)
1509
- for (var j = 0; j < this._sections[i].consumer.sources.length; j++)
1510
- sources.push(this._sections[i].consumer.sources[j]);
1517
+ for (var sources = [], i2 = 0; i2 < this._sections.length; i2++)
1518
+ for (var j = 0; j < this._sections[i2].consumer.sources.length; j++)
1519
+ sources.push(this._sections[i2].consumer.sources[j]);
1511
1520
  return sources;
1512
1521
  }
1513
1522
  });
@@ -1540,8 +1549,8 @@ var require_source_map_consumer = __commonJS({
1540
1549
  });
1541
1550
  };
1542
1551
  IndexedSourceMapConsumer.prototype.sourceContentFor = function(aSource, nullOnMissing) {
1543
- for (var i = 0; i < this._sections.length; i++) {
1544
- var section = this._sections[i], content = section.consumer.sourceContentFor(aSource, !0);
1552
+ for (var i2 = 0; i2 < this._sections.length; i2++) {
1553
+ var section = this._sections[i2], content = section.consumer.sourceContentFor(aSource, !0);
1545
1554
  if (content)
1546
1555
  return content;
1547
1556
  }
@@ -1550,8 +1559,8 @@ var require_source_map_consumer = __commonJS({
1550
1559
  throw new Error('"' + aSource + '" is not in the SourceMap.');
1551
1560
  };
1552
1561
  IndexedSourceMapConsumer.prototype.generatedPositionFor = function(aArgs) {
1553
- for (var i = 0; i < this._sections.length; i++) {
1554
- var section = this._sections[i];
1562
+ for (var i2 = 0; i2 < this._sections.length; i2++) {
1563
+ var section = this._sections[i2];
1555
1564
  if (section.consumer._findSourceIndex(util.getArg(aArgs, "source")) !== -1) {
1556
1565
  var generatedPosition = section.consumer.generatedPositionFor(aArgs);
1557
1566
  if (generatedPosition) {
@@ -1570,8 +1579,8 @@ var require_source_map_consumer = __commonJS({
1570
1579
  };
1571
1580
  IndexedSourceMapConsumer.prototype._parseMappings = function(aStr, aSourceRoot) {
1572
1581
  this.__generatedMappings = [], this.__originalMappings = [];
1573
- for (var i = 0; i < this._sections.length; i++)
1574
- for (var section = this._sections[i], sectionMappings = section.consumer._generatedMappings, j = 0; j < sectionMappings.length; j++) {
1582
+ for (var i2 = 0; i2 < this._sections.length; i2++)
1583
+ for (var section = this._sections[i2], sectionMappings = section.consumer._generatedMappings, j = 0; j < sectionMappings.length; j++) {
1575
1584
  var mapping = sectionMappings[j], source = section.consumer._sources.at(mapping.source);
1576
1585
  source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL), this._sources.add(source), source = this._sources.indexOf(source);
1577
1586
  var name = null;
@@ -1657,8 +1666,8 @@ var require_source_node = __commonJS({
1657
1666
  };
1658
1667
  SourceNode.prototype.prepend = function(aChunk) {
1659
1668
  if (Array.isArray(aChunk))
1660
- for (var i = aChunk.length - 1; i >= 0; i--)
1661
- this.prepend(aChunk[i]);
1669
+ for (var i2 = aChunk.length - 1; i2 >= 0; i2--)
1670
+ this.prepend(aChunk[i2]);
1662
1671
  else if (aChunk[isSourceNode] || typeof aChunk == "string")
1663
1672
  this.children.unshift(aChunk);
1664
1673
  else
@@ -1668,8 +1677,8 @@ var require_source_node = __commonJS({
1668
1677
  return this;
1669
1678
  };
1670
1679
  SourceNode.prototype.walk = function(aFn) {
1671
- for (var chunk, i = 0, len = this.children.length; i < len; i++)
1672
- chunk = this.children[i], chunk[isSourceNode] ? chunk.walk(aFn) : chunk !== "" && aFn(chunk, {
1680
+ for (var chunk, i2 = 0, len = this.children.length; i2 < len; i2++)
1681
+ chunk = this.children[i2], chunk[isSourceNode] ? chunk.walk(aFn) : chunk !== "" && aFn(chunk, {
1673
1682
  source: this.source,
1674
1683
  line: this.line,
1675
1684
  column: this.column,
@@ -1677,11 +1686,11 @@ var require_source_node = __commonJS({
1677
1686
  });
1678
1687
  };
1679
1688
  SourceNode.prototype.join = function(aSep) {
1680
- var newChildren, i, len = this.children.length;
1689
+ var newChildren, i2, len = this.children.length;
1681
1690
  if (len > 0) {
1682
- for (newChildren = [], i = 0; i < len - 1; i++)
1683
- newChildren.push(this.children[i]), newChildren.push(aSep);
1684
- newChildren.push(this.children[i]), this.children = newChildren;
1691
+ for (newChildren = [], i2 = 0; i2 < len - 1; i2++)
1692
+ newChildren.push(this.children[i2]), newChildren.push(aSep);
1693
+ newChildren.push(this.children[i2]), this.children = newChildren;
1685
1694
  }
1686
1695
  return this;
1687
1696
  };
@@ -1693,10 +1702,10 @@ var require_source_node = __commonJS({
1693
1702
  this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
1694
1703
  };
1695
1704
  SourceNode.prototype.walkSourceContents = function(aFn) {
1696
- for (var i = 0, len = this.children.length; i < len; i++)
1697
- this.children[i][isSourceNode] && this.children[i].walkSourceContents(aFn);
1698
- for (var sources = Object.keys(this.sourceContents), i = 0, len = sources.length; i < len; i++)
1699
- aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
1705
+ for (var i2 = 0, len = this.children.length; i2 < len; i2++)
1706
+ this.children[i2][isSourceNode] && this.children[i2].walkSourceContents(aFn);
1707
+ for (var sources = Object.keys(this.sourceContents), i2 = 0, len = sources.length; i2 < len; i2++)
1708
+ aFn(util.fromSetString(sources[i2]), this.sourceContents[sources[i2]]);
1700
1709
  };
1701
1710
  SourceNode.prototype.toString = function() {
1702
1711
  var str = "";
@@ -1982,12 +1991,12 @@ var require_escodegen = __commonJS({
1982
1991
  return (ch & -2) === 8232 ? (previousIsBackslash ? "u" : "\\u") + (ch === 8232 ? "2028" : "2029") : ch === 10 || ch === 13 ? (previousIsBackslash ? "" : "\\") + (ch === 10 ? "n" : "r") : String.fromCharCode(ch);
1983
1992
  }
1984
1993
  function generateRegExp(reg) {
1985
- var match, result, flags, i, iz, ch, characterInBrack, previousIsBackslash;
1994
+ var match, result, flags, i2, iz, ch, characterInBrack, previousIsBackslash;
1986
1995
  if (result = reg.toString(), reg.source) {
1987
1996
  if (match = result.match(/\/([^/]*)$/), !match)
1988
1997
  return result;
1989
- for (flags = match[1], result = "", characterInBrack = !1, previousIsBackslash = !1, i = 0, iz = reg.source.length; i < iz; ++i)
1990
- ch = reg.source.charCodeAt(i), previousIsBackslash ? (result += escapeRegExpCharacter(ch, previousIsBackslash), previousIsBackslash = !1) : (characterInBrack ? ch === 93 && (characterInBrack = !1) : ch === 47 ? result += "\\" : ch === 91 && (characterInBrack = !0), result += escapeRegExpCharacter(ch, previousIsBackslash), previousIsBackslash = ch === 92);
1998
+ for (flags = match[1], result = "", characterInBrack = !1, previousIsBackslash = !1, i2 = 0, iz = reg.source.length; i2 < iz; ++i2)
1999
+ ch = reg.source.charCodeAt(i2), previousIsBackslash ? (result += escapeRegExpCharacter(ch, previousIsBackslash), previousIsBackslash = !1) : (characterInBrack ? ch === 93 && (characterInBrack = !1) : ch === 47 ? result += "\\" : ch === 91 && (characterInBrack = !0), result += escapeRegExpCharacter(ch, previousIsBackslash), previousIsBackslash = ch === 92);
1991
2000
  return "/" + result + "/" + flags;
1992
2001
  }
1993
2002
  return result;
@@ -2010,21 +2019,21 @@ var require_escodegen = __commonJS({
2010
2019
  throw new Error("Incorrectly classified character");
2011
2020
  }
2012
2021
  function escapeDirective(str) {
2013
- var i, iz, code, quote;
2014
- for (quote = quotes === "double" ? '"' : "'", i = 0, iz = str.length; i < iz; ++i)
2015
- if (code = str.charCodeAt(i), code === 39) {
2022
+ var i2, iz, code, quote;
2023
+ for (quote = quotes === "double" ? '"' : "'", i2 = 0, iz = str.length; i2 < iz; ++i2)
2024
+ if (code = str.charCodeAt(i2), code === 39) {
2016
2025
  quote = '"';
2017
2026
  break;
2018
2027
  } else if (code === 34) {
2019
2028
  quote = "'";
2020
2029
  break;
2021
- } else code === 92 && ++i;
2030
+ } else code === 92 && ++i2;
2022
2031
  return quote + str + quote;
2023
2032
  }
2024
2033
  function escapeString(str) {
2025
- var result = "", i, len, code, singleQuotes = 0, doubleQuotes = 0, single, quote;
2026
- for (i = 0, len = str.length; i < len; ++i) {
2027
- if (code = str.charCodeAt(i), code === 39)
2034
+ var result = "", i2, len, code, singleQuotes = 0, doubleQuotes = 0, single, quote;
2035
+ for (i2 = 0, len = str.length; i2 < len; ++i2) {
2036
+ if (code = str.charCodeAt(i2), code === 39)
2028
2037
  ++singleQuotes;
2029
2038
  else if (code === 34)
2030
2039
  ++doubleQuotes;
@@ -2034,21 +2043,21 @@ var require_escodegen = __commonJS({
2034
2043
  result += escapeDisallowedCharacter(code);
2035
2044
  continue;
2036
2045
  } else if (!esutils.code.isIdentifierPartES5(code) && (json && code < 32 || !json && !escapeless && (code < 32 || code > 126))) {
2037
- result += escapeAllowedCharacter(code, str.charCodeAt(i + 1));
2046
+ result += escapeAllowedCharacter(code, str.charCodeAt(i2 + 1));
2038
2047
  continue;
2039
2048
  }
2040
2049
  result += String.fromCharCode(code);
2041
2050
  }
2042
2051
  if (single = !(quotes === "double" || quotes === "auto" && doubleQuotes < singleQuotes), quote = single ? "'" : '"', !(single ? singleQuotes : doubleQuotes))
2043
2052
  return quote + result + quote;
2044
- for (str = result, result = quote, i = 0, len = str.length; i < len; ++i)
2045
- code = str.charCodeAt(i), (code === 39 && single || code === 34 && !single) && (result += "\\"), result += String.fromCharCode(code);
2053
+ for (str = result, result = quote, i2 = 0, len = str.length; i2 < len; ++i2)
2054
+ code = str.charCodeAt(i2), (code === 39 && single || code === 34 && !single) && (result += "\\"), result += String.fromCharCode(code);
2046
2055
  return result + quote;
2047
2056
  }
2048
2057
  function flattenToString(arr) {
2049
- var i, iz, elem, result = "";
2050
- for (i = 0, iz = arr.length; i < iz; ++i)
2051
- elem = arr[i], result += Array.isArray(elem) ? flattenToString(elem) : elem;
2058
+ var i2, iz, elem, result = "";
2059
+ for (i2 = 0, iz = arr.length; i2 < iz; ++i2)
2060
+ elem = arr[i2], result += Array.isArray(elem) ? flattenToString(elem) : elem;
2052
2061
  return result;
2053
2062
  }
2054
2063
  function toSourceNodeWhenNeeded(generated, node) {
@@ -2076,20 +2085,20 @@ var require_escodegen = __commonJS({
2076
2085
  previousBase = base2, base2 += indent2, fn(base2), base2 = previousBase;
2077
2086
  }
2078
2087
  function calculateSpaces(str) {
2079
- var i;
2080
- for (i = str.length - 1; i >= 0 && !esutils.code.isLineTerminator(str.charCodeAt(i)); --i)
2088
+ var i2;
2089
+ for (i2 = str.length - 1; i2 >= 0 && !esutils.code.isLineTerminator(str.charCodeAt(i2)); --i2)
2081
2090
  ;
2082
- return str.length - 1 - i;
2091
+ return str.length - 1 - i2;
2083
2092
  }
2084
2093
  function adjustMultilineComment(value, specialBase) {
2085
- var array, i, len, line, j, spaces, previousBase, sn;
2086
- for (array = value.split(/\r\n|[\r\n]/), spaces = Number.MAX_VALUE, i = 1, len = array.length; i < len; ++i) {
2087
- for (line = array[i], j = 0; j < line.length && esutils.code.isWhiteSpace(line.charCodeAt(j)); )
2094
+ var array, i2, len, line, j, spaces, previousBase, sn;
2095
+ for (array = value.split(/\r\n|[\r\n]/), spaces = Number.MAX_VALUE, i2 = 1, len = array.length; i2 < len; ++i2) {
2096
+ for (line = array[i2], j = 0; j < line.length && esutils.code.isWhiteSpace(line.charCodeAt(j)); )
2088
2097
  ++j;
2089
2098
  spaces > j && (spaces = j);
2090
2099
  }
2091
- for (typeof specialBase < "u" ? (previousBase = base2, array[1][spaces] === "*" && (specialBase += " "), base2 = specialBase) : (spaces & 1 && --spaces, previousBase = base2), i = 1, len = array.length; i < len; ++i)
2092
- sn = toSourceNodeWhenNeeded(addIndent(array[i].slice(spaces))), array[i] = sourceMap ? sn.join("") : sn;
2100
+ for (typeof specialBase < "u" ? (previousBase = base2, array[1][spaces] === "*" && (specialBase += " "), base2 = specialBase) : (spaces & 1 && --spaces, previousBase = base2), i2 = 1, len = array.length; i2 < len; ++i2)
2101
+ sn = toSourceNodeWhenNeeded(addIndent(array[i2].slice(spaces))), array[i2] = sourceMap ? sn.join("") : sn;
2093
2102
  return base2 = previousBase, array.join(`
2094
2103
  `);
2095
2104
  }
@@ -2104,20 +2113,20 @@ var require_escodegen = __commonJS({
2104
2113
  return extra.format.indent.adjustMultilineComment && /[\n\r]/.test(comment.value) ? adjustMultilineComment("/*" + comment.value + "*/", specialBase) : "/*" + comment.value + "*/";
2105
2114
  }
2106
2115
  function addComments(stmt, result) {
2107
- var i, len, comment, save, tailingToStatement, specialBase, fragment, extRange, range, prevRange, prefix, infix, suffix, count;
2116
+ var i2, len, comment, save, tailingToStatement, specialBase, fragment, extRange, range, prevRange, prefix, infix, suffix, count;
2108
2117
  if (stmt.leadingComments && stmt.leadingComments.length > 0) {
2109
2118
  if (save = result, preserveBlankLines) {
2110
2119
  for (comment = stmt.leadingComments[0], result = [], extRange = comment.extendedRange, range = comment.range, prefix = sourceCode.substring(extRange[0], range[0]), count = (prefix.match(/\n/g) || []).length, count > 0 ? (result.push(stringRepeat(`
2111
- `, count)), result.push(addIndent(generateComment(comment)))) : (result.push(prefix), result.push(generateComment(comment))), prevRange = range, i = 1, len = stmt.leadingComments.length; i < len; i++)
2112
- comment = stmt.leadingComments[i], range = comment.range, infix = sourceCode.substring(prevRange[1], range[0]), count = (infix.match(/\n/g) || []).length, result.push(stringRepeat(`
2120
+ `, count)), result.push(addIndent(generateComment(comment)))) : (result.push(prefix), result.push(generateComment(comment))), prevRange = range, i2 = 1, len = stmt.leadingComments.length; i2 < len; i2++)
2121
+ comment = stmt.leadingComments[i2], range = comment.range, infix = sourceCode.substring(prevRange[1], range[0]), count = (infix.match(/\n/g) || []).length, result.push(stringRepeat(`
2113
2122
  `, count)), result.push(addIndent(generateComment(comment))), prevRange = range;
2114
2123
  suffix = sourceCode.substring(range[1], extRange[1]), count = (suffix.match(/\n/g) || []).length, result.push(stringRepeat(`
2115
2124
  `, count));
2116
2125
  } else
2117
2126
  for (comment = stmt.leadingComments[0], result = [], safeConcatenation && stmt.type === Syntax.Program && stmt.body.length === 0 && result.push(`
2118
2127
  `), result.push(generateComment(comment)), endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()) || result.push(`
2119
- `), i = 1, len = stmt.leadingComments.length; i < len; ++i)
2120
- comment = stmt.leadingComments[i], fragment = [generateComment(comment)], endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString()) || fragment.push(`
2128
+ `), i2 = 1, len = stmt.leadingComments.length; i2 < len; ++i2)
2129
+ comment = stmt.leadingComments[i2], fragment = [generateComment(comment)], endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString()) || fragment.push(`
2121
2130
  `), result.push(addIndent(fragment));
2122
2131
  result.push(addIndent(save));
2123
2132
  }
@@ -2126,8 +2135,8 @@ var require_escodegen = __commonJS({
2126
2135
  comment = stmt.trailingComments[0], extRange = comment.extendedRange, range = comment.range, prefix = sourceCode.substring(extRange[0], range[0]), count = (prefix.match(/\n/g) || []).length, count > 0 ? (result.push(stringRepeat(`
2127
2136
  `, count)), result.push(addIndent(generateComment(comment)))) : (result.push(prefix), result.push(generateComment(comment)));
2128
2137
  else
2129
- for (tailingToStatement = !endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()), specialBase = stringRepeat(" ", calculateSpaces(toSourceNodeWhenNeeded([base2, result, indent2]).toString())), i = 0, len = stmt.trailingComments.length; i < len; ++i)
2130
- comment = stmt.trailingComments[i], tailingToStatement ? (i === 0 ? result = [result, indent2] : result = [result, specialBase], result.push(generateComment(comment, specialBase))) : result = [result, addIndent(generateComment(comment))], i !== len - 1 && !endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()) && (result = [result, `
2138
+ for (tailingToStatement = !endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()), specialBase = stringRepeat(" ", calculateSpaces(toSourceNodeWhenNeeded([base2, result, indent2]).toString())), i2 = 0, len = stmt.trailingComments.length; i2 < len; ++i2)
2139
+ comment = stmt.trailingComments[i2], tailingToStatement ? (i2 === 0 ? result = [result, indent2] : result = [result, specialBase], result.push(generateComment(comment, specialBase))) : result = [result, addIndent(generateComment(comment))], i2 !== len - 1 && !endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()) && (result = [result, `
2131
2140
  `]);
2132
2141
  return result;
2133
2142
  }
@@ -2143,9 +2152,9 @@ var require_escodegen = __commonJS({
2143
2152
  return current2 < should ? ["(", text, ")"] : text;
2144
2153
  }
2145
2154
  function generateVerbatimString(string) {
2146
- var i, iz, result;
2147
- for (result = string.split(/\r\n|\n/), i = 1, iz = result.length; i < iz; i++)
2148
- result[i] = newline + base2 + result[i];
2155
+ var i2, iz, result;
2156
+ for (result = string.split(/\r\n|\n/), i2 = 1, iz = result.length; i2 < iz; i2++)
2157
+ result[i2] = newline + base2 + result[i2];
2149
2158
  return result;
2150
2159
  }
2151
2160
  function generateVerbatim(expr, precedence) {
@@ -2183,12 +2192,12 @@ var require_escodegen = __commonJS({
2183
2192
  CodeGenerator.prototype.generatePattern = function(node, precedence, flags) {
2184
2193
  return node.type === Syntax.Identifier ? generateIdentifier(node) : this.generateExpression(node, precedence, flags);
2185
2194
  }, CodeGenerator.prototype.generateFunctionParams = function(node) {
2186
- var i, iz, result, hasDefault;
2195
+ var i2, iz, result, hasDefault;
2187
2196
  if (hasDefault = !1, node.type === Syntax.ArrowFunctionExpression && !node.rest && (!node.defaults || node.defaults.length === 0) && node.params.length === 1 && node.params[0].type === Syntax.Identifier)
2188
2197
  result = [generateAsyncPrefix(node, !0), generateIdentifier(node.params[0])];
2189
2198
  else {
2190
- for (result = node.type === Syntax.ArrowFunctionExpression ? [generateAsyncPrefix(node, !1)] : [], result.push("("), node.defaults && (hasDefault = !0), i = 0, iz = node.params.length; i < iz; ++i)
2191
- hasDefault && node.defaults[i] ? result.push(this.generateAssignment(node.params[i], node.defaults[i], "=", Precedence.Assignment, E_TTT)) : result.push(this.generatePattern(node.params[i], Precedence.Assignment, E_TTT)), i + 1 < iz && result.push("," + space);
2199
+ for (result = node.type === Syntax.ArrowFunctionExpression ? [generateAsyncPrefix(node, !1)] : [], result.push("("), node.defaults && (hasDefault = !0), i2 = 0, iz = node.params.length; i2 < iz; ++i2)
2200
+ hasDefault && node.defaults[i2] ? result.push(this.generateAssignment(node.params[i2], node.defaults[i2], "=", Precedence.Assignment, E_TTT)) : result.push(this.generatePattern(node.params[i2], Precedence.Assignment, E_TTT)), i2 + 1 < iz && result.push("," + space);
2192
2201
  node.rest && (node.params.length && result.push("," + space), result.push("..."), result.push(generateIdentifier(node.rest))), result.push(")");
2193
2202
  }
2194
2203
  return result;
@@ -2226,10 +2235,10 @@ var require_escodegen = __commonJS({
2226
2235
  return withIndent(function() {
2227
2236
  stmt.body.length === 0 && preserveBlankLines && (range = stmt.range, range[1] - range[0] > 2 && (content = sourceCode.substring(range[0] + 1, range[1] - 1), content[0] === `
2228
2237
  ` && (result = ["{"]), result.push(content)));
2229
- var i, iz, fragment, bodyFlags;
2230
- for (bodyFlags = S_TFFF, flags & F_FUNC_BODY && (bodyFlags |= F_DIRECTIVE_CTX), i = 0, iz = stmt.body.length; i < iz; ++i)
2231
- preserveBlankLines && (i === 0 && (stmt.body[0].leadingComments && (range = stmt.body[0].leadingComments[0].extendedRange, content = sourceCode.substring(range[0], range[1]), content[0] === `
2232
- ` && (result = ["{"])), stmt.body[0].leadingComments || generateBlankLines(stmt.range[0], stmt.body[0].range[0], result)), i > 0 && !stmt.body[i - 1].trailingComments && !stmt.body[i].leadingComments && generateBlankLines(stmt.body[i - 1].range[1], stmt.body[i].range[0], result)), i === iz - 1 && (bodyFlags |= F_SEMICOLON_OPT), stmt.body[i].leadingComments && preserveBlankLines ? fragment = that.generateStatement(stmt.body[i], bodyFlags) : fragment = addIndent(that.generateStatement(stmt.body[i], bodyFlags)), result.push(fragment), endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString()) || preserveBlankLines && i < iz - 1 && stmt.body[i + 1].leadingComments || result.push(newline), preserveBlankLines && i === iz - 1 && (stmt.body[i].trailingComments || generateBlankLines(stmt.body[i].range[1], stmt.range[1], result));
2238
+ var i2, iz, fragment, bodyFlags;
2239
+ for (bodyFlags = S_TFFF, flags & F_FUNC_BODY && (bodyFlags |= F_DIRECTIVE_CTX), i2 = 0, iz = stmt.body.length; i2 < iz; ++i2)
2240
+ preserveBlankLines && (i2 === 0 && (stmt.body[0].leadingComments && (range = stmt.body[0].leadingComments[0].extendedRange, content = sourceCode.substring(range[0], range[1]), content[0] === `
2241
+ ` && (result = ["{"])), stmt.body[0].leadingComments || generateBlankLines(stmt.range[0], stmt.body[0].range[0], result)), i2 > 0 && !stmt.body[i2 - 1].trailingComments && !stmt.body[i2].leadingComments && generateBlankLines(stmt.body[i2 - 1].range[1], stmt.body[i2].range[0], result)), i2 === iz - 1 && (bodyFlags |= F_SEMICOLON_OPT), stmt.body[i2].leadingComments && preserveBlankLines ? fragment = that.generateStatement(stmt.body[i2], bodyFlags) : fragment = addIndent(that.generateStatement(stmt.body[i2], bodyFlags)), result.push(fragment), endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString()) || preserveBlankLines && i2 < iz - 1 && stmt.body[i2 + 1].leadingComments || result.push(newline), preserveBlankLines && i2 === iz - 1 && (stmt.body[i2].trailingComments || generateBlankLines(stmt.body[i2].range[1], stmt.range[1], result));
2233
2242
  }), result.push(addIndent("}")), result;
2234
2243
  },
2235
2244
  BreakStatement: function(stmt, flags) {
@@ -2241,9 +2250,9 @@ var require_escodegen = __commonJS({
2241
2250
  ClassBody: function(stmt, flags) {
2242
2251
  var result = ["{", newline], that = this;
2243
2252
  return withIndent(function(indent3) {
2244
- var i, iz;
2245
- for (i = 0, iz = stmt.body.length; i < iz; ++i)
2246
- result.push(indent3), result.push(that.generateExpression(stmt.body[i], Precedence.Sequence, E_TTT)), i + 1 < iz && result.push(newline);
2253
+ var i2, iz;
2254
+ for (i2 = 0, iz = stmt.body.length; i2 < iz; ++i2)
2255
+ result.push(indent3), result.push(that.generateExpression(stmt.body[i2], Precedence.Sequence, E_TTT)), i2 + 1 < iz && result.push(newline);
2247
2256
  }), endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()) || result.push(newline), result.push(base2), result.push("}"), result;
2248
2257
  },
2249
2258
  ClassDeclaration: function(stmt, flags) {
@@ -2285,9 +2294,9 @@ var require_escodegen = __commonJS({
2285
2294
  ExportNamedDeclaration: function(stmt, flags) {
2286
2295
  var result = ["export"], bodyFlags, that = this;
2287
2296
  return bodyFlags = flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF, stmt.declaration ? join7(result, this.generateStatement(stmt.declaration, bodyFlags)) : (stmt.specifiers && (stmt.specifiers.length === 0 ? result = join7(result, "{" + space + "}") : stmt.specifiers[0].type === Syntax.ExportBatchSpecifier ? result = join7(result, this.generateExpression(stmt.specifiers[0], Precedence.Sequence, E_TTT)) : (result = join7(result, "{"), withIndent(function(indent3) {
2288
- var i, iz;
2289
- for (result.push(newline), i = 0, iz = stmt.specifiers.length; i < iz; ++i)
2290
- result.push(indent3), result.push(that.generateExpression(stmt.specifiers[i], Precedence.Sequence, E_TTT)), i + 1 < iz && result.push("," + newline);
2297
+ var i2, iz;
2298
+ for (result.push(newline), i2 = 0, iz = stmt.specifiers.length; i2 < iz; ++i2)
2299
+ result.push(indent3), result.push(that.generateExpression(stmt.specifiers[i2], Precedence.Sequence, E_TTT)), i2 + 1 < iz && result.push("," + newline);
2291
2300
  }), endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()) || result.push(newline), result.push(base2 + "}")), stmt.source ? result = join7(result, [
2292
2301
  "from" + space,
2293
2302
  // ModuleSpecifier
@@ -2316,12 +2325,12 @@ var require_escodegen = __commonJS({
2316
2325
  return fragment2.slice(0, 8) !== "function" ? !1 : (code = fragment2.charCodeAt(8), code === 40 || esutils.code.isWhiteSpace(code) || code === 42 || esutils.code.isLineTerminator(code));
2317
2326
  }
2318
2327
  function isAsyncPrefixed(fragment2) {
2319
- var code, i, iz;
2328
+ var code, i2, iz;
2320
2329
  if (fragment2.slice(0, 5) !== "async" || !esutils.code.isWhiteSpace(fragment2.charCodeAt(5)))
2321
2330
  return !1;
2322
- for (i = 6, iz = fragment2.length; i < iz && esutils.code.isWhiteSpace(fragment2.charCodeAt(i)); ++i)
2331
+ for (i2 = 6, iz = fragment2.length; i2 < iz && esutils.code.isWhiteSpace(fragment2.charCodeAt(i2)); ++i2)
2323
2332
  ;
2324
- return i === iz || fragment2.slice(i, i + 8) !== "function" ? !1 : (code = fragment2.charCodeAt(i + 8), code === 40 || esutils.code.isWhiteSpace(code) || code === 42 || esutils.code.isLineTerminator(code));
2333
+ return i2 === iz || fragment2.slice(i2, i2 + 8) !== "function" ? !1 : (code = fragment2.charCodeAt(i2 + 8), code === 40 || esutils.code.isWhiteSpace(code) || code === 42 || esutils.code.isLineTerminator(code));
2325
2334
  }
2326
2335
  return result = [this.generateExpression(stmt.expression, Precedence.Sequence, E_TTT)], fragment = toSourceNodeWhenNeeded(result).toString(), fragment.charCodeAt(0) === 123 || // ObjectExpression
2327
2336
  isClassPrefixed(fragment) || isFunctionPrefixed(fragment) || isAsyncPrefixed(fragment) || directive && flags & F_DIRECTIVE_CTX && stmt.expression.type === Syntax.Literal && typeof stmt.expression.value == "string" ? result = ["(", result, ")" + this.semicolon(flags)] : result.push(this.semicolon(flags)), result;
@@ -2342,9 +2351,9 @@ var require_escodegen = __commonJS({
2342
2351
  space,
2343
2352
  this.generateExpression(stmt.specifiers[cursor], Precedence.Sequence, E_TTT)
2344
2353
  ]) : (result.push(space + "{"), stmt.specifiers.length - cursor === 1 ? (result.push(space), result.push(this.generateExpression(stmt.specifiers[cursor], Precedence.Sequence, E_TTT)), result.push(space + "}" + space)) : (withIndent(function(indent3) {
2345
- var i, iz;
2346
- for (result.push(newline), i = cursor, iz = stmt.specifiers.length; i < iz; ++i)
2347
- result.push(indent3), result.push(that.generateExpression(stmt.specifiers[i], Precedence.Sequence, E_TTT)), i + 1 < iz && result.push("," + newline);
2354
+ var i2, iz;
2355
+ for (result.push(newline), i2 = cursor, iz = stmt.specifiers.length; i2 < iz; ++i2)
2356
+ result.push(indent3), result.push(that.generateExpression(stmt.specifiers[i2], Precedence.Sequence, E_TTT)), i2 + 1 < iz && result.push("," + newline);
2348
2357
  }), endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()) || result.push(newline), result.push(base2 + "}" + space)))), result = join7(result, [
2349
2358
  "from" + space,
2350
2359
  // ModuleSpecifier
@@ -2363,12 +2372,12 @@ var require_escodegen = __commonJS({
2363
2372
  ] : this.generatePattern(stmt.id, Precedence.Assignment, itemFlags);
2364
2373
  },
2365
2374
  VariableDeclaration: function(stmt, flags) {
2366
- var result, i, iz, node, bodyFlags, that = this;
2375
+ var result, i2, iz, node, bodyFlags, that = this;
2367
2376
  result = [stmt.kind], bodyFlags = flags & F_ALLOW_IN ? S_TFFF : S_FFFF;
2368
2377
  function block() {
2369
2378
  for (node = stmt.declarations[0], extra.comment && node.leadingComments ? (result.push(`
2370
- `), result.push(addIndent(that.generateStatement(node, bodyFlags)))) : (result.push(noEmptySpace()), result.push(that.generateStatement(node, bodyFlags))), i = 1, iz = stmt.declarations.length; i < iz; ++i)
2371
- node = stmt.declarations[i], extra.comment && node.leadingComments ? (result.push("," + newline), result.push(addIndent(that.generateStatement(node, bodyFlags)))) : (result.push("," + space), result.push(that.generateStatement(node, bodyFlags)));
2379
+ `), result.push(addIndent(that.generateStatement(node, bodyFlags)))) : (result.push(noEmptySpace()), result.push(that.generateStatement(node, bodyFlags))), i2 = 1, iz = stmt.declarations.length; i2 < iz; ++i2)
2380
+ node = stmt.declarations[i2], extra.comment && node.leadingComments ? (result.push("," + newline), result.push(addIndent(that.generateStatement(node, bodyFlags)))) : (result.push("," + space), result.push(that.generateStatement(node, bodyFlags)));
2372
2381
  }
2373
2382
  return stmt.declarations.length > 1 ? withIndent(block) : block(), result.push(this.semicolon(flags)), result;
2374
2383
  },
@@ -2379,24 +2388,24 @@ var require_escodegen = __commonJS({
2379
2388
  ), this.semicolon(flags)];
2380
2389
  },
2381
2390
  TryStatement: function(stmt, flags) {
2382
- var result, i, iz, guardedHandlers;
2391
+ var result, i2, iz, guardedHandlers;
2383
2392
  if (result = ["try", this.maybeBlock(stmt.block, S_TFFF)], result = this.maybeBlockSuffix(stmt.block, result), stmt.handlers)
2384
- for (i = 0, iz = stmt.handlers.length; i < iz; ++i)
2385
- result = join7(result, this.generateStatement(stmt.handlers[i], S_TFFF)), (stmt.finalizer || i + 1 !== iz) && (result = this.maybeBlockSuffix(stmt.handlers[i].body, result));
2393
+ for (i2 = 0, iz = stmt.handlers.length; i2 < iz; ++i2)
2394
+ result = join7(result, this.generateStatement(stmt.handlers[i2], S_TFFF)), (stmt.finalizer || i2 + 1 !== iz) && (result = this.maybeBlockSuffix(stmt.handlers[i2].body, result));
2386
2395
  else {
2387
- for (guardedHandlers = stmt.guardedHandlers || [], i = 0, iz = guardedHandlers.length; i < iz; ++i)
2388
- result = join7(result, this.generateStatement(guardedHandlers[i], S_TFFF)), (stmt.finalizer || i + 1 !== iz) && (result = this.maybeBlockSuffix(guardedHandlers[i].body, result));
2396
+ for (guardedHandlers = stmt.guardedHandlers || [], i2 = 0, iz = guardedHandlers.length; i2 < iz; ++i2)
2397
+ result = join7(result, this.generateStatement(guardedHandlers[i2], S_TFFF)), (stmt.finalizer || i2 + 1 !== iz) && (result = this.maybeBlockSuffix(guardedHandlers[i2].body, result));
2389
2398
  if (stmt.handler)
2390
2399
  if (Array.isArray(stmt.handler))
2391
- for (i = 0, iz = stmt.handler.length; i < iz; ++i)
2392
- result = join7(result, this.generateStatement(stmt.handler[i], S_TFFF)), (stmt.finalizer || i + 1 !== iz) && (result = this.maybeBlockSuffix(stmt.handler[i].body, result));
2400
+ for (i2 = 0, iz = stmt.handler.length; i2 < iz; ++i2)
2401
+ result = join7(result, this.generateStatement(stmt.handler[i2], S_TFFF)), (stmt.finalizer || i2 + 1 !== iz) && (result = this.maybeBlockSuffix(stmt.handler[i2].body, result));
2393
2402
  else
2394
2403
  result = join7(result, this.generateStatement(stmt.handler, S_TFFF)), stmt.finalizer && (result = this.maybeBlockSuffix(stmt.handler.body, result));
2395
2404
  }
2396
2405
  return stmt.finalizer && (result = join7(result, ["finally", this.maybeBlock(stmt.finalizer, S_TFFF)])), result;
2397
2406
  },
2398
2407
  SwitchStatement: function(stmt, flags) {
2399
- var result, fragment, i, iz, bodyFlags, that = this;
2408
+ var result, fragment, i2, iz, bodyFlags, that = this;
2400
2409
  if (withIndent(function() {
2401
2410
  result = [
2402
2411
  "switch" + space + "(",
@@ -2404,18 +2413,18 @@ var require_escodegen = __commonJS({
2404
2413
  ")" + space + "{" + newline
2405
2414
  ];
2406
2415
  }), stmt.cases)
2407
- for (bodyFlags = S_TFFF, i = 0, iz = stmt.cases.length; i < iz; ++i)
2408
- i === iz - 1 && (bodyFlags |= F_SEMICOLON_OPT), fragment = addIndent(this.generateStatement(stmt.cases[i], bodyFlags)), result.push(fragment), endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString()) || result.push(newline);
2416
+ for (bodyFlags = S_TFFF, i2 = 0, iz = stmt.cases.length; i2 < iz; ++i2)
2417
+ i2 === iz - 1 && (bodyFlags |= F_SEMICOLON_OPT), fragment = addIndent(this.generateStatement(stmt.cases[i2], bodyFlags)), result.push(fragment), endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString()) || result.push(newline);
2409
2418
  return result.push(addIndent("}")), result;
2410
2419
  },
2411
2420
  SwitchCase: function(stmt, flags) {
2412
- var result, fragment, i, iz, bodyFlags, that = this;
2421
+ var result, fragment, i2, iz, bodyFlags, that = this;
2413
2422
  return withIndent(function() {
2414
2423
  for (stmt.test ? result = [
2415
2424
  join7("case", that.generateExpression(stmt.test, Precedence.Sequence, E_TTT)),
2416
2425
  ":"
2417
- ] : result = ["default:"], i = 0, iz = stmt.consequent.length, iz && stmt.consequent[0].type === Syntax.BlockStatement && (fragment = that.maybeBlock(stmt.consequent[0], S_TFFF), result.push(fragment), i = 1), i !== iz && !endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()) && result.push(newline), bodyFlags = S_TFFF; i < iz; ++i)
2418
- i === iz - 1 && flags & F_SEMICOLON_OPT && (bodyFlags |= F_SEMICOLON_OPT), fragment = addIndent(that.generateStatement(stmt.consequent[i], bodyFlags)), result.push(fragment), i + 1 !== iz && !endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString()) && result.push(newline);
2426
+ ] : result = ["default:"], i2 = 0, iz = stmt.consequent.length, iz && stmt.consequent[0].type === Syntax.BlockStatement && (fragment = that.maybeBlock(stmt.consequent[0], S_TFFF), result.push(fragment), i2 = 1), i2 !== iz && !endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()) && result.push(newline), bodyFlags = S_TFFF; i2 < iz; ++i2)
2427
+ i2 === iz - 1 && flags & F_SEMICOLON_OPT && (bodyFlags |= F_SEMICOLON_OPT), fragment = addIndent(that.generateStatement(stmt.consequent[i2], bodyFlags)), result.push(fragment), i2 + 1 !== iz && !endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString()) && result.push(newline);
2419
2428
  }), result;
2420
2429
  },
2421
2430
  IfStatement: function(stmt, flags) {
@@ -2444,10 +2453,10 @@ var require_escodegen = __commonJS({
2444
2453
  return [stmt.label.name + ":", this.maybeBlock(stmt.body, flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF)];
2445
2454
  },
2446
2455
  Program: function(stmt, flags) {
2447
- var result, fragment, i, iz, bodyFlags;
2456
+ var result, fragment, i2, iz, bodyFlags;
2448
2457
  for (iz = stmt.body.length, result = [safeConcatenation && iz > 0 ? `
2449
- ` : ""], bodyFlags = S_TFTF, i = 0; i < iz; ++i)
2450
- !safeConcatenation && i === iz - 1 && (bodyFlags |= F_SEMICOLON_OPT), preserveBlankLines && (i === 0 && (stmt.body[0].leadingComments || generateBlankLines(stmt.range[0], stmt.body[i].range[0], result)), i > 0 && !stmt.body[i - 1].trailingComments && !stmt.body[i].leadingComments && generateBlankLines(stmt.body[i - 1].range[1], stmt.body[i].range[0], result)), fragment = addIndent(this.generateStatement(stmt.body[i], bodyFlags)), result.push(fragment), i + 1 < iz && !endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString()) && (preserveBlankLines && stmt.body[i + 1].leadingComments || result.push(newline)), preserveBlankLines && i === iz - 1 && (stmt.body[i].trailingComments || generateBlankLines(stmt.body[i].range[1], stmt.range[1], result));
2458
+ ` : ""], bodyFlags = S_TFTF, i2 = 0; i2 < iz; ++i2)
2459
+ !safeConcatenation && i2 === iz - 1 && (bodyFlags |= F_SEMICOLON_OPT), preserveBlankLines && (i2 === 0 && (stmt.body[0].leadingComments || generateBlankLines(stmt.range[0], stmt.body[i2].range[0], result)), i2 > 0 && !stmt.body[i2 - 1].trailingComments && !stmt.body[i2].leadingComments && generateBlankLines(stmt.body[i2 - 1].range[1], stmt.body[i2].range[0], result)), fragment = addIndent(this.generateStatement(stmt.body[i2], bodyFlags)), result.push(fragment), i2 + 1 < iz && !endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString()) && (preserveBlankLines && stmt.body[i2 + 1].leadingComments || result.push(newline)), preserveBlankLines && i2 === iz - 1 && (stmt.body[i2].trailingComments || generateBlankLines(stmt.body[i2].range[1], stmt.range[1], result));
2451
2460
  return result;
2452
2461
  },
2453
2462
  FunctionDeclaration: function(stmt, flags) {
@@ -2487,9 +2496,9 @@ var require_escodegen = __commonJS({
2487
2496
  }
2488
2497
  }, merge(CodeGenerator.prototype, CodeGenerator.Statement), CodeGenerator.Expression = {
2489
2498
  SequenceExpression: function(expr, precedence, flags) {
2490
- var result, i, iz;
2491
- for (Precedence.Sequence < precedence && (flags |= F_ALLOW_IN), result = [], i = 0, iz = expr.expressions.length; i < iz; ++i)
2492
- result.push(this.generateExpression(expr.expressions[i], Precedence.Assignment, flags)), i + 1 < iz && result.push("," + space);
2499
+ var result, i2, iz;
2500
+ for (Precedence.Sequence < precedence && (flags |= F_ALLOW_IN), result = [], i2 = 0, iz = expr.expressions.length; i2 < iz; ++i2)
2501
+ result.push(this.generateExpression(expr.expressions[i2], Precedence.Assignment, flags)), i2 + 1 < iz && result.push("," + space);
2493
2502
  return parenthesize(result, Precedence.Sequence, precedence);
2494
2503
  },
2495
2504
  AssignmentExpression: function(expr, precedence, flags) {
@@ -2519,9 +2528,9 @@ var require_escodegen = __commonJS({
2519
2528
  return currentPrecedence = BinaryPrecedence[expr.operator], leftPrecedence = expr.operator === "**" ? Precedence.Postfix : currentPrecedence, rightPrecedence = expr.operator === "**" ? currentPrecedence : currentPrecedence + 1, currentPrecedence < precedence && (flags |= F_ALLOW_IN), fragment = this.generateExpression(expr.left, leftPrecedence, flags), leftSource = fragment.toString(), leftSource.charCodeAt(leftSource.length - 1) === 47 && esutils.code.isIdentifierPartES5(expr.operator.charCodeAt(0)) ? result = [fragment, noEmptySpace(), expr.operator] : result = join7(fragment, expr.operator), fragment = this.generateExpression(expr.right, rightPrecedence, flags), expr.operator === "/" && fragment.toString().charAt(0) === "/" || expr.operator.slice(-1) === "<" && fragment.toString().slice(0, 3) === "!--" ? (result.push(noEmptySpace()), result.push(fragment)) : result = join7(result, fragment), expr.operator === "in" && !(flags & F_ALLOW_IN) ? ["(", result, ")"] : (expr.operator === "||" || expr.operator === "&&") && flags & F_FOUND_COALESCE ? ["(", result, ")"] : parenthesize(result, currentPrecedence, precedence);
2520
2529
  },
2521
2530
  CallExpression: function(expr, precedence, flags) {
2522
- var result, i, iz;
2523
- for (result = [this.generateExpression(expr.callee, Precedence.Call, E_TTF)], expr.optional && result.push("?."), result.push("("), i = 0, iz = expr.arguments.length; i < iz; ++i)
2524
- result.push(this.generateExpression(expr.arguments[i], Precedence.Assignment, E_TTT)), i + 1 < iz && result.push("," + space);
2531
+ var result, i2, iz;
2532
+ for (result = [this.generateExpression(expr.callee, Precedence.Call, E_TTF)], expr.optional && result.push("?."), result.push("("), i2 = 0, iz = expr.arguments.length; i2 < iz; ++i2)
2533
+ result.push(this.generateExpression(expr.arguments[i2], Precedence.Assignment, E_TTT)), i2 + 1 < iz && result.push("," + space);
2525
2534
  return result.push(")"), flags & F_ALLOW_CALL ? parenthesize(result, Precedence.Call, precedence) : ["(", result, ")"];
2526
2535
  },
2527
2536
  ChainExpression: function(expr, precedence, flags) {
@@ -2530,13 +2539,13 @@ var require_escodegen = __commonJS({
2530
2539
  return parenthesize(result, Precedence.OptionalChaining, precedence);
2531
2540
  },
2532
2541
  NewExpression: function(expr, precedence, flags) {
2533
- var result, length, i, iz, itemFlags;
2542
+ var result, length, i2, iz, itemFlags;
2534
2543
  if (length = expr.arguments.length, itemFlags = flags & F_ALLOW_UNPARATH_NEW && !parentheses && length === 0 ? E_TFT : E_TFF, result = join7(
2535
2544
  "new",
2536
2545
  this.generateExpression(expr.callee, Precedence.New, itemFlags)
2537
2546
  ), !(flags & F_ALLOW_UNPARATH_NEW) || parentheses || length > 0) {
2538
- for (result.push("("), i = 0, iz = length; i < iz; ++i)
2539
- result.push(this.generateExpression(expr.arguments[i], Precedence.Assignment, E_TTT)), i + 1 < iz && result.push("," + space);
2547
+ for (result.push("("), i2 = 0, iz = length; i2 < iz; ++i2)
2548
+ result.push(this.generateExpression(expr.arguments[i2], Precedence.Assignment, E_TTT)), i2 + 1 < iz && result.push("," + space);
2540
2549
  result.push(")");
2541
2550
  }
2542
2551
  return parenthesize(result, Precedence.New, precedence);
@@ -2597,9 +2606,9 @@ var require_escodegen = __commonJS({
2597
2606
  ArrayExpression: function(expr, precedence, flags, isPattern) {
2598
2607
  var result, multiline, that = this;
2599
2608
  return expr.elements.length ? (multiline = isPattern ? !1 : expr.elements.length > 1, result = ["[", multiline ? newline : ""], withIndent(function(indent3) {
2600
- var i, iz;
2601
- for (i = 0, iz = expr.elements.length; i < iz; ++i)
2602
- expr.elements[i] ? (result.push(multiline ? indent3 : ""), result.push(that.generateExpression(expr.elements[i], Precedence.Assignment, E_TTT))) : (multiline && result.push(indent3), i + 1 === iz && result.push(",")), i + 1 < iz && result.push("," + (multiline ? newline : space));
2609
+ var i2, iz;
2610
+ for (i2 = 0, iz = expr.elements.length; i2 < iz; ++i2)
2611
+ expr.elements[i2] ? (result.push(multiline ? indent3 : ""), result.push(that.generateExpression(expr.elements[i2], Precedence.Assignment, E_TTT))) : (multiline && result.push(indent3), i2 + 1 === iz && result.push(",")), i2 + 1 < iz && result.push("," + (multiline ? newline : space));
2603
2612
  }), multiline && !endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()) && result.push(newline), result.push(multiline ? base2 : ""), result.push("]"), result) : "[]";
2604
2613
  },
2605
2614
  RestElement: function(expr, precedence, flags) {
@@ -2641,31 +2650,31 @@ var require_escodegen = __commonJS({
2641
2650
  return expr.properties.length ? (multiline = expr.properties.length > 1, withIndent(function() {
2642
2651
  fragment = that.generateExpression(expr.properties[0], Precedence.Sequence, E_TTT);
2643
2652
  }), !multiline && !hasLineTerminator(toSourceNodeWhenNeeded(fragment).toString()) ? ["{", space, fragment, space, "}"] : (withIndent(function(indent3) {
2644
- var i, iz;
2653
+ var i2, iz;
2645
2654
  if (result = ["{", newline, indent3, fragment], multiline)
2646
- for (result.push("," + newline), i = 1, iz = expr.properties.length; i < iz; ++i)
2647
- result.push(indent3), result.push(that.generateExpression(expr.properties[i], Precedence.Sequence, E_TTT)), i + 1 < iz && result.push("," + newline);
2655
+ for (result.push("," + newline), i2 = 1, iz = expr.properties.length; i2 < iz; ++i2)
2656
+ result.push(indent3), result.push(that.generateExpression(expr.properties[i2], Precedence.Sequence, E_TTT)), i2 + 1 < iz && result.push("," + newline);
2648
2657
  }), endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()) || result.push(newline), result.push(base2), result.push("}"), result)) : "{}";
2649
2658
  },
2650
2659
  AssignmentPattern: function(expr, precedence, flags) {
2651
2660
  return this.generateAssignment(expr.left, expr.right, "=", precedence, flags);
2652
2661
  },
2653
2662
  ObjectPattern: function(expr, precedence, flags) {
2654
- var result, i, iz, multiline, property, that = this;
2663
+ var result, i2, iz, multiline, property, that = this;
2655
2664
  if (!expr.properties.length)
2656
2665
  return "{}";
2657
2666
  if (multiline = !1, expr.properties.length === 1)
2658
2667
  property = expr.properties[0], property.type === Syntax.Property && property.value.type !== Syntax.Identifier && (multiline = !0);
2659
2668
  else
2660
- for (i = 0, iz = expr.properties.length; i < iz; ++i)
2661
- if (property = expr.properties[i], property.type === Syntax.Property && !property.shorthand) {
2669
+ for (i2 = 0, iz = expr.properties.length; i2 < iz; ++i2)
2670
+ if (property = expr.properties[i2], property.type === Syntax.Property && !property.shorthand) {
2662
2671
  multiline = !0;
2663
2672
  break;
2664
2673
  }
2665
2674
  return result = ["{", multiline ? newline : ""], withIndent(function(indent3) {
2666
- var i2, iz2;
2667
- for (i2 = 0, iz2 = expr.properties.length; i2 < iz2; ++i2)
2668
- result.push(multiline ? indent3 : ""), result.push(that.generateExpression(expr.properties[i2], Precedence.Sequence, E_TTT)), i2 + 1 < iz2 && result.push("," + (multiline ? newline : space));
2675
+ var i3, iz2;
2676
+ for (i3 = 0, iz2 = expr.properties.length; i3 < iz2; ++i3)
2677
+ result.push(multiline ? indent3 : ""), result.push(that.generateExpression(expr.properties[i3], Precedence.Sequence, E_TTT)), i3 + 1 < iz2 && result.push("," + (multiline ? newline : space));
2669
2678
  }), multiline && !endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()) && result.push(newline), result.push(multiline ? base2 : ""), result.push("}"), result;
2670
2679
  },
2671
2680
  ThisExpression: function(expr, precedence, flags) {
@@ -2706,10 +2715,10 @@ var require_escodegen = __commonJS({
2706
2715
  return this.ComprehensionExpression(expr, precedence, flags);
2707
2716
  },
2708
2717
  ComprehensionExpression: function(expr, precedence, flags) {
2709
- var result, i, iz, fragment, that = this;
2718
+ var result, i2, iz, fragment, that = this;
2710
2719
  return result = expr.type === Syntax.GeneratorExpression ? ["("] : ["["], extra.moz.comprehensionExpressionStartsWithAssignment && (fragment = this.generateExpression(expr.body, Precedence.Assignment, E_TTT), result.push(fragment)), expr.blocks && withIndent(function() {
2711
- for (i = 0, iz = expr.blocks.length; i < iz; ++i)
2712
- fragment = that.generateExpression(expr.blocks[i], Precedence.Sequence, E_TTT), i > 0 || extra.moz.comprehensionExpressionStartsWithAssignment ? result = join7(result, fragment) : result.push(fragment);
2720
+ for (i2 = 0, iz = expr.blocks.length; i2 < iz; ++i2)
2721
+ fragment = that.generateExpression(expr.blocks[i2], Precedence.Sequence, E_TTT), i2 > 0 || extra.moz.comprehensionExpressionStartsWithAssignment ? result = join7(result, fragment) : result.push(fragment);
2713
2722
  }), expr.filter && (result = join7(result, "if" + space), fragment = this.generateExpression(expr.filter, Precedence.Sequence, E_TTT), result = join7(result, ["(", fragment, ")"])), extra.moz.comprehensionExpressionStartsWithAssignment || (fragment = this.generateExpression(expr.body, Precedence.Assignment, E_TTT), result = join7(result, fragment)), result.push(expr.type === Syntax.GeneratorExpression ? ")" : "]"), result;
2714
2723
  },
2715
2724
  ComprehensionBlock: function(expr, precedence, flags) {
@@ -2739,9 +2748,9 @@ var require_escodegen = __commonJS({
2739
2748
  return expr.value.raw;
2740
2749
  },
2741
2750
  TemplateLiteral: function(expr, precedence, flags) {
2742
- var result, i, iz;
2743
- for (result = ["`"], i = 0, iz = expr.quasis.length; i < iz; ++i)
2744
- result.push(this.generateExpression(expr.quasis[i], Precedence.Primary, E_TTT)), i + 1 < iz && (result.push("${" + space), result.push(this.generateExpression(expr.expressions[i], Precedence.Sequence, E_TTT)), result.push(space + "}"));
2751
+ var result, i2, iz;
2752
+ for (result = ["`"], i2 = 0, iz = expr.quasis.length; i2 < iz; ++i2)
2753
+ result.push(this.generateExpression(expr.quasis[i2], Precedence.Primary, E_TTT)), i2 + 1 < iz && (result.push("${" + space), result.push(this.generateExpression(expr.expressions[i2], Precedence.Sequence, E_TTT)), result.push(space + "}"));
2745
2754
  return result.push("`"), result;
2746
2755
  },
2747
2756
  ModuleSpecifier: function(expr, precedence, flags) {
@@ -2825,14 +2834,14 @@ var require_dist = __commonJS({
2825
2834
  }
2826
2835
  strings[0] = strings[0].replace(/^\r?\n/, "");
2827
2836
  var string = strings[0];
2828
- return values.forEach(function(value, i) {
2837
+ return values.forEach(function(value, i2) {
2829
2838
  var endentations = string.match(/(?:^|\n)( *)$/), endentation = endentations ? endentations[1] : "", indentedValue = value;
2830
2839
  typeof value == "string" && value.includes(`
2831
2840
  `) && (indentedValue = String(value).split(`
2832
- `).map(function(str, i2) {
2833
- return i2 === 0 ? str : "" + endentation + str;
2841
+ `).map(function(str, i3) {
2842
+ return i3 === 0 ? str : "" + endentation + str;
2834
2843
  }).join(`
2835
- `)), string += indentedValue + strings[i + 1];
2844
+ `)), string += indentedValue + strings[i2 + 1];
2836
2845
  }), string;
2837
2846
  }
2838
2847
  exports.dedent = dedent3;
@@ -2867,10 +2876,10 @@ __export(acorn_exports, {
2867
2876
  version: () => version
2868
2877
  });
2869
2878
  function isInAstralSet(code, set) {
2870
- for (var pos = 65536, i = 0; i < set.length; i += 2) {
2871
- if (pos += set[i], pos > code)
2879
+ for (var pos = 65536, i2 = 0; i2 < set.length; i2 += 2) {
2880
+ if (pos += set[i2], pos > code)
2872
2881
  return !1;
2873
- if (pos += set[i + 1], pos >= code)
2882
+ if (pos += set[i2 + 1], pos >= code)
2874
2883
  return !0;
2875
2884
  }
2876
2885
  return !1;
@@ -2892,10 +2901,10 @@ function isNewLine(code) {
2892
2901
  }
2893
2902
  function nextLineBreak(code, from, end) {
2894
2903
  end === void 0 && (end = code.length);
2895
- for (var i = from; i < end; i++) {
2896
- var next = code.charCodeAt(i);
2904
+ for (var i2 = from; i2 < end; i2++) {
2905
+ var next = code.charCodeAt(i2);
2897
2906
  if (isNewLine(next))
2898
- return i < end - 1 && next === 13 && code.charCodeAt(i + 1) === 10 ? i + 2 : i + 1;
2907
+ return i2 < end - 1 && next === 13 && code.charCodeAt(i2 + 1) === 10 ? i2 + 2 : i2 + 1;
2899
2908
  }
2900
2909
  return -1;
2901
2910
  }
@@ -2957,13 +2966,13 @@ function isPrivateFieldAccess(node) {
2957
2966
  function finishNodeAt(node, type, pos, loc) {
2958
2967
  return node.type = type, node.end = pos, this.options.locations && (node.loc.end = loc), this.options.ranges && (node.range[1] = pos), node;
2959
2968
  }
2960
- function buildUnicodeData(ecmaVersion) {
2961
- var d = data[ecmaVersion] = {
2962
- binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + " " + unicodeGeneralCategoryValues),
2963
- binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion]),
2969
+ function buildUnicodeData(ecmaVersion2) {
2970
+ var d = data[ecmaVersion2] = {
2971
+ binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion2] + " " + unicodeGeneralCategoryValues),
2972
+ binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion2]),
2964
2973
  nonBinary: {
2965
2974
  General_Category: wordsRegexp(unicodeGeneralCategoryValues),
2966
- Script: wordsRegexp(unicodeScriptValues[ecmaVersion])
2975
+ Script: wordsRegexp(unicodeScriptValues[ecmaVersion2])
2967
2976
  }
2968
2977
  };
2969
2978
  d.nonBinary.Script_Extensions = d.nonBinary.Script, d.nonBinary.gc = d.nonBinary.General_Category, d.nonBinary.sc = d.nonBinary.Script, d.nonBinary.scx = d.nonBinary.Script_Extensions;
@@ -3281,8 +3290,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3281
3290
  return (this.currentVarScope().flags & SCOPE_ASYNC) > 0;
3282
3291
  };
3283
3292
  prototypeAccessors.canAwait.get = function() {
3284
- for (var i = this.scopeStack.length - 1; i >= 0; i--) {
3285
- var ref2 = this.scopeStack[i], flags = ref2.flags;
3293
+ for (var i2 = this.scopeStack.length - 1; i2 >= 0; i2--) {
3294
+ var ref2 = this.scopeStack[i2], flags = ref2.flags;
3286
3295
  if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT))
3287
3296
  return !1;
3288
3297
  if (flags & SCOPE_FUNCTION)
@@ -3301,8 +3310,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3301
3310
  return this.treatFunctionsAsVarInScope(this.currentScope());
3302
3311
  };
3303
3312
  prototypeAccessors.allowNewDotTarget.get = function() {
3304
- for (var i = this.scopeStack.length - 1; i >= 0; i--) {
3305
- var ref2 = this.scopeStack[i], flags = ref2.flags;
3313
+ for (var i2 = this.scopeStack.length - 1; i2 >= 0; i2--) {
3314
+ var ref2 = this.scopeStack[i2], flags = ref2.flags;
3306
3315
  if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT) || flags & SCOPE_FUNCTION && !(flags & SCOPE_ARROW))
3307
3316
  return !0;
3308
3317
  }
@@ -3313,8 +3322,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3313
3322
  };
3314
3323
  Parser.extend = function() {
3315
3324
  for (var plugins = [], len = arguments.length; len--; ) plugins[len] = arguments[len];
3316
- for (var cls = this, i = 0; i < plugins.length; i++)
3317
- cls = plugins[i](cls);
3325
+ for (var cls = this, i2 = 0; i2 < plugins.length; i2++)
3326
+ cls = plugins[i2](cls);
3318
3327
  return cls;
3319
3328
  };
3320
3329
  Parser.parse = function(input, options) {
@@ -3409,8 +3418,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3409
3418
  node.body.push(stmt);
3410
3419
  }
3411
3420
  if (this.inModule)
3412
- for (var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1) {
3413
- var name = list[i];
3421
+ for (var i2 = 0, list2 = Object.keys(this.undefinedExports); i2 < list2.length; i2 += 1) {
3422
+ var name = list2[i2];
3414
3423
  this.raiseRecoverable(this.undefinedExports[name].start, "Export '" + name + "' is not defined");
3415
3424
  }
3416
3425
  return this.adaptDirectivePrologue(node.body), this.next(), node.sourceType = this.options.sourceType, this.finishNode(node, "Program");
@@ -3539,12 +3548,12 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3539
3548
  pp$8.parseBreakContinueStatement = function(node, keyword) {
3540
3549
  var isBreak = keyword === "break";
3541
3550
  this.next(), this.eat(types$1.semi) || this.insertSemicolon() ? node.label = null : this.type !== types$1.name ? this.unexpected() : (node.label = this.parseIdent(), this.semicolon());
3542
- for (var i = 0; i < this.labels.length; ++i) {
3543
- var lab = this.labels[i];
3551
+ for (var i2 = 0; i2 < this.labels.length; ++i2) {
3552
+ var lab = this.labels[i2];
3544
3553
  if ((node.label == null || lab.name === node.label.name) && (lab.kind != null && (isBreak || lab.kind === "loop") || node.label && isBreak))
3545
3554
  break;
3546
3555
  }
3547
- return i === this.labels.length && this.raise(node.start, "Unsyntactic " + keyword), this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement");
3556
+ return i2 === this.labels.length && this.raise(node.start, "Unsyntactic " + keyword), this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement");
3548
3557
  };
3549
3558
  pp$8.parseDebuggerStatement = function(node) {
3550
3559
  return this.next(), this.semicolon(), this.finishNode(node, "DebuggerStatement");
@@ -3620,12 +3629,12 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3620
3629
  return this.next(), this.finishNode(node, "EmptyStatement");
3621
3630
  };
3622
3631
  pp$8.parseLabeledStatement = function(node, maybeName, expr, context) {
3623
- for (var i$1 = 0, list = this.labels; i$1 < list.length; i$1 += 1) {
3624
- var label = list[i$1];
3632
+ for (var i$1 = 0, list2 = this.labels; i$1 < list2.length; i$1 += 1) {
3633
+ var label = list2[i$1];
3625
3634
  label.name === maybeName && this.raise(expr.start, "Label '" + maybeName + "' is already declared");
3626
3635
  }
3627
- for (var kind = this.type.isLoop ? "loop" : this.type === types$1._switch ? "switch" : null, i = this.labels.length - 1; i >= 0; i--) {
3628
- var label$1 = this.labels[i];
3636
+ for (var kind = this.type.isLoop ? "loop" : this.type === types$1._switch ? "switch" : null, i2 = this.labels.length - 1; i2 >= 0; i2--) {
3637
+ var label$1 = this.labels[i2];
3629
3638
  if (label$1.statementStart === node.start)
3630
3639
  label$1.statementStart = this.start, label$1.kind = kind;
3631
3640
  else
@@ -3687,17 +3696,17 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3687
3696
  pp$8.parseClassElement = function(constructorAllowsSuper) {
3688
3697
  if (this.eat(types$1.semi))
3689
3698
  return null;
3690
- var ecmaVersion = this.options.ecmaVersion, node = this.startNode(), keyName = "", isGenerator = !1, isAsync = !1, kind = "method", isStatic = !1;
3699
+ var ecmaVersion2 = this.options.ecmaVersion, node = this.startNode(), keyName = "", isGenerator = !1, isAsync = !1, kind = "method", isStatic = !1;
3691
3700
  if (this.eatContextual("static")) {
3692
- if (ecmaVersion >= 13 && this.eat(types$1.braceL))
3701
+ if (ecmaVersion2 >= 13 && this.eat(types$1.braceL))
3693
3702
  return this.parseClassStaticBlock(node), node;
3694
3703
  this.isClassElementNameStart() || this.type === types$1.star ? isStatic = !0 : keyName = "static";
3695
3704
  }
3696
- if (node.static = isStatic, !keyName && ecmaVersion >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon() ? isAsync = !0 : keyName = "async"), !keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types$1.star) && (isGenerator = !0), !keyName && !isAsync && !isGenerator) {
3705
+ if (node.static = isStatic, !keyName && ecmaVersion2 >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon() ? isAsync = !0 : keyName = "async"), !keyName && (ecmaVersion2 >= 9 || !isAsync) && this.eat(types$1.star) && (isGenerator = !0), !keyName && !isAsync && !isGenerator) {
3697
3706
  var lastValue = this.value;
3698
3707
  (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? kind = lastValue : keyName = lastValue);
3699
3708
  }
3700
- if (keyName ? (node.computed = !1, node.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), node.key.name = keyName, this.finishNode(node.key, "Identifier")) : this.parseClassElementName(node), ecmaVersion < 13 || this.type === types$1.parenL || kind !== "method" || isGenerator || isAsync) {
3709
+ if (keyName ? (node.computed = !1, node.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), node.key.name = keyName, this.finishNode(node.key, "Identifier")) : this.parseClassElementName(node), ecmaVersion2 < 13 || this.type === types$1.parenL || kind !== "method" || isGenerator || isAsync) {
3701
3710
  var isConstructor = !node.static && checkKeyName(node, "constructor"), allowsDirectSuper = isConstructor && constructorAllowsSuper;
3702
3711
  isConstructor && kind !== "method" && this.raise(node.key.start, "Constructor can't have get/set modifier"), node.kind = isConstructor ? "constructor" : kind, this.parseClassMethod(node, isGenerator, isAsync, allowsDirectSuper);
3703
3712
  } else
@@ -3741,8 +3750,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3741
3750
  pp$8.exitClassBody = function() {
3742
3751
  var ref2 = this.privateNameStack.pop(), declared = ref2.declared, used = ref2.used;
3743
3752
  if (this.options.checkPrivateFields)
3744
- for (var len = this.privateNameStack.length, parent = len === 0 ? null : this.privateNameStack[len - 1], i = 0; i < used.length; ++i) {
3745
- var id = used[i];
3753
+ for (var len = this.privateNameStack.length, parent = len === 0 ? null : this.privateNameStack[len - 1], i2 = 0; i2 < used.length; ++i2) {
3754
+ var id = used[i2];
3746
3755
  hasOwn(declared, id.name) || (parent ? parent.used.push(id) : this.raiseRecoverable(id.start, "Private field '#" + id.name + "' must be declared in an enclosing class"));
3747
3756
  }
3748
3757
  };
@@ -3760,8 +3769,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3760
3769
  if (node.declaration = null, node.specifiers = this.parseExportSpecifiers(exports), this.eatContextual("from"))
3761
3770
  this.type !== types$1.string && this.unexpected(), node.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (node.attributes = this.parseWithClause());
3762
3771
  else {
3763
- for (var i = 0, list = node.specifiers; i < list.length; i += 1) {
3764
- var spec = list[i];
3772
+ for (var i2 = 0, list2 = node.specifiers; i2 < list2.length; i2 += 1) {
3773
+ var spec = list2[i2];
3765
3774
  this.checkUnreserved(spec.local), this.checkLocalExport(spec.local), spec.local.type === "Literal" && this.raise(spec.local.start, "A string literal cannot be used as an exported binding without `from`.");
3766
3775
  }
3767
3776
  node.source = null, this.options.ecmaVersion >= 16 && (node.attributes = []);
@@ -3794,8 +3803,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3794
3803
  if (type === "Identifier")
3795
3804
  this.checkExport(exports, pat, pat.start);
3796
3805
  else if (type === "ObjectPattern")
3797
- for (var i = 0, list = pat.properties; i < list.length; i += 1) {
3798
- var prop = list[i];
3806
+ for (var i2 = 0, list2 = pat.properties; i2 < list2.length; i2 += 1) {
3807
+ var prop = list2[i2];
3799
3808
  this.checkPatternExport(exports, prop);
3800
3809
  }
3801
3810
  else if (type === "ArrayPattern")
@@ -3807,8 +3816,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3807
3816
  };
3808
3817
  pp$8.checkVariableExport = function(exports, decls) {
3809
3818
  if (exports)
3810
- for (var i = 0, list = decls; i < list.length; i += 1) {
3811
- var decl = list[i];
3819
+ for (var i2 = 0, list2 = decls; i2 < list2.length; i2 += 1) {
3820
+ var decl = list2[i2];
3812
3821
  this.checkPatternExport(exports, decl.id);
3813
3822
  }
3814
3823
  };
@@ -3891,8 +3900,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3891
3900
  return this.parseIdent(!0);
3892
3901
  };
3893
3902
  pp$8.adaptDirectivePrologue = function(statements) {
3894
- for (var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i)
3895
- statements[i].directive = statements[i].expression.raw.slice(1, -1);
3903
+ for (var i2 = 0; i2 < statements.length && this.isDirectiveCandidate(statements[i2]); ++i2)
3904
+ statements[i2].directive = statements[i2].expression.raw.slice(1, -1);
3896
3905
  };
3897
3906
  pp$8.isDirectiveCandidate = function(statement) {
3898
3907
  return this.options.ecmaVersion >= 5 && statement.type === "ExpressionStatement" && statement.expression.type === "Literal" && typeof statement.expression.value == "string" && // Reject parenthesized strings.
@@ -3912,8 +3921,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3912
3921
  break;
3913
3922
  case "ObjectExpression":
3914
3923
  node.type = "ObjectPattern", refDestructuringErrors && this.checkPatternErrors(refDestructuringErrors, !0);
3915
- for (var i = 0, list = node.properties; i < list.length; i += 1) {
3916
- var prop = list[i];
3924
+ for (var i2 = 0, list2 = node.properties; i2 < list2.length; i2 += 1) {
3925
+ var prop = list2[i2];
3917
3926
  this.toAssignable(prop, isBinding), prop.type === "RestElement" && (prop.argument.type === "ArrayPattern" || prop.argument.type === "ObjectPattern") && this.raise(prop.argument.start, "Unexpected token");
3918
3927
  }
3919
3928
  break;
@@ -3945,8 +3954,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
3945
3954
  return node;
3946
3955
  };
3947
3956
  pp$7.toAssignableList = function(exprList, isBinding) {
3948
- for (var end = exprList.length, i = 0; i < end; i++) {
3949
- var elt = exprList[i];
3957
+ for (var end = exprList.length, i2 = 0; i2 < end; i2++) {
3958
+ var elt = exprList[i2];
3950
3959
  elt && this.toAssignable(elt, isBinding);
3951
3960
  }
3952
3961
  if (end) {
@@ -4025,8 +4034,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
4025
4034
  pp$7.checkLValPattern = function(expr, bindingType, checkClashes) {
4026
4035
  switch (bindingType === void 0 && (bindingType = BIND_NONE), expr.type) {
4027
4036
  case "ObjectPattern":
4028
- for (var i = 0, list = expr.properties; i < list.length; i += 1) {
4029
- var prop = list[i];
4037
+ for (var i2 = 0, list2 = expr.properties; i2 < list2.length; i2 += 1) {
4038
+ var prop = list2[i2];
4030
4039
  this.checkLValInnerPattern(prop, bindingType, checkClashes);
4031
4040
  }
4032
4041
  break;
@@ -4082,8 +4091,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
4082
4091
  return parent === types.f_expr || parent === types.f_stat ? !0 : prevType === types$1.colon && (parent === types.b_stat || parent === types.b_expr) ? !parent.isExpr : prevType === types$1._return || prevType === types$1.name && this.exprAllowed ? lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) : prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow ? !0 : prevType === types$1.braceL ? parent === types.b_stat : prevType === types$1._var || prevType === types$1._const || prevType === types$1.name ? !1 : !this.exprAllowed;
4083
4092
  };
4084
4093
  pp$6.inGeneratorContext = function() {
4085
- for (var i = this.context.length - 1; i >= 1; i--) {
4086
- var context = this.context[i];
4094
+ for (var i2 = this.context.length - 1; i2 >= 1; i2--) {
4095
+ var context = this.context[i2];
4087
4096
  if (context.token === "function")
4088
4097
  return context.generator;
4089
4098
  }
@@ -4530,16 +4539,16 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
4530
4539
  this.exitScope();
4531
4540
  };
4532
4541
  pp$5.isSimpleParamList = function(params) {
4533
- for (var i = 0, list = params; i < list.length; i += 1) {
4534
- var param = list[i];
4542
+ for (var i2 = 0, list2 = params; i2 < list2.length; i2 += 1) {
4543
+ var param = list2[i2];
4535
4544
  if (param.type !== "Identifier")
4536
4545
  return !1;
4537
4546
  }
4538
4547
  return !0;
4539
4548
  };
4540
4549
  pp$5.checkParams = function(node, allowDuplicates) {
4541
- for (var nameHash = /* @__PURE__ */ Object.create(null), i = 0, list = node.params; i < list.length; i += 1) {
4542
- var param = list[i];
4550
+ for (var nameHash = /* @__PURE__ */ Object.create(null), i2 = 0, list2 = node.params; i2 < list2.length; i2 += 1) {
4551
+ var param = list2[i2];
4543
4552
  this.checkLValInnerPattern(param, BIND_VAR, allowDuplicates ? null : nameHash);
4544
4553
  }
4545
4554
  };
@@ -4619,8 +4628,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
4619
4628
  var scope$2 = this.currentScope();
4620
4629
  this.treatFunctionsAsVar ? redeclared = scope$2.lexical.indexOf(name) > -1 : redeclared = scope$2.lexical.indexOf(name) > -1 || scope$2.var.indexOf(name) > -1, scope$2.functions.push(name);
4621
4630
  } else
4622
- for (var i = this.scopeStack.length - 1; i >= 0; --i) {
4623
- var scope$3 = this.scopeStack[i];
4631
+ for (var i2 = this.scopeStack.length - 1; i2 >= 0; --i2) {
4632
+ var scope$3 = this.scopeStack[i2];
4624
4633
  if (scope$3.lexical.indexOf(name) > -1 && !(scope$3.flags & SCOPE_SIMPLE_CATCH && scope$3.lexical[0] === name) || !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name) > -1) {
4625
4634
  redeclared = !0;
4626
4635
  break;
@@ -4637,15 +4646,15 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
4637
4646
  return this.scopeStack[this.scopeStack.length - 1];
4638
4647
  };
4639
4648
  pp$3.currentVarScope = function() {
4640
- for (var i = this.scopeStack.length - 1; ; i--) {
4641
- var scope = this.scopeStack[i];
4649
+ for (var i2 = this.scopeStack.length - 1; ; i2--) {
4650
+ var scope = this.scopeStack[i2];
4642
4651
  if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK))
4643
4652
  return scope;
4644
4653
  }
4645
4654
  };
4646
4655
  pp$3.currentThisScope = function() {
4647
- for (var i = this.scopeStack.length - 1; ; i--) {
4648
- var scope = this.scopeStack[i];
4656
+ for (var i2 = this.scopeStack.length - 1; ; i2--) {
4657
+ var scope = this.scopeStack[i2];
4649
4658
  if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK) && !(scope.flags & SCOPE_ARROW))
4650
4659
  return scope;
4651
4660
  }
@@ -4718,24 +4727,24 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
4718
4727
  RegExpValidationState.prototype.raise = function(message) {
4719
4728
  this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
4720
4729
  };
4721
- RegExpValidationState.prototype.at = function(i, forceU) {
4730
+ RegExpValidationState.prototype.at = function(i2, forceU) {
4722
4731
  forceU === void 0 && (forceU = !1);
4723
4732
  var s = this.source, l = s.length;
4724
- if (i >= l)
4733
+ if (i2 >= l)
4725
4734
  return -1;
4726
- var c = s.charCodeAt(i);
4727
- if (!(forceU || this.switchU) || c <= 55295 || c >= 57344 || i + 1 >= l)
4735
+ var c = s.charCodeAt(i2);
4736
+ if (!(forceU || this.switchU) || c <= 55295 || c >= 57344 || i2 + 1 >= l)
4728
4737
  return c;
4729
- var next = s.charCodeAt(i + 1);
4738
+ var next = s.charCodeAt(i2 + 1);
4730
4739
  return next >= 56320 && next <= 57343 ? (c << 10) + next - 56613888 : c;
4731
4740
  };
4732
- RegExpValidationState.prototype.nextIndex = function(i, forceU) {
4741
+ RegExpValidationState.prototype.nextIndex = function(i2, forceU) {
4733
4742
  forceU === void 0 && (forceU = !1);
4734
4743
  var s = this.source, l = s.length;
4735
- if (i >= l)
4744
+ if (i2 >= l)
4736
4745
  return l;
4737
- var c = s.charCodeAt(i), next;
4738
- return !(forceU || this.switchU) || c <= 55295 || c >= 57344 || i + 1 >= l || (next = s.charCodeAt(i + 1)) < 56320 || next > 57343 ? i + 1 : i + 2;
4746
+ var c = s.charCodeAt(i2), next;
4747
+ return !(forceU || this.switchU) || c <= 55295 || c >= 57344 || i2 + 1 >= l || (next = s.charCodeAt(i2 + 1)) < 56320 || next > 57343 ? i2 + 1 : i2 + 2;
4739
4748
  };
4740
4749
  RegExpValidationState.prototype.current = function(forceU) {
4741
4750
  return forceU === void 0 && (forceU = !1), this.at(this.pos, forceU);
@@ -4751,8 +4760,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
4751
4760
  };
4752
4761
  RegExpValidationState.prototype.eatChars = function(chs, forceU) {
4753
4762
  forceU === void 0 && (forceU = !1);
4754
- for (var pos = this.pos, i = 0, list = chs; i < list.length; i += 1) {
4755
- var ch = list[i], current2 = this.at(pos, forceU);
4763
+ for (var pos = this.pos, i2 = 0, list2 = chs; i2 < list2.length; i2 += 1) {
4764
+ var ch = list2[i2], current2 = this.at(pos, forceU);
4756
4765
  if (current2 === -1 || current2 !== ch)
4757
4766
  return !1;
4758
4767
  pos = this.nextIndex(pos, forceU);
@@ -4760,9 +4769,9 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
4760
4769
  return this.pos = pos, !0;
4761
4770
  };
4762
4771
  pp$1.validateRegExpFlags = function(state) {
4763
- for (var validFlags = state.validFlags, flags = state.flags, u = !1, v = !1, i = 0; i < flags.length; i++) {
4764
- var flag = flags.charAt(i);
4765
- validFlags.indexOf(flag) === -1 && this.raise(state.start, "Invalid regular expression flag"), flags.indexOf(flag, i + 1) > -1 && this.raise(state.start, "Duplicate regular expression flag"), flag === "u" && (u = !0), flag === "v" && (v = !0);
4772
+ for (var validFlags = state.validFlags, flags = state.flags, u = !1, v = !1, i2 = 0; i2 < flags.length; i2++) {
4773
+ var flag = flags.charAt(i2);
4774
+ validFlags.indexOf(flag) === -1 && this.raise(state.start, "Invalid regular expression flag"), flags.indexOf(flag, i2 + 1) > -1 && this.raise(state.start, "Duplicate regular expression flag"), flag === "u" && (u = !0), flag === "v" && (v = !0);
4766
4775
  }
4767
4776
  this.options.ecmaVersion >= 15 && u && v && this.raise(state.start, "Invalid regular expression flag");
4768
4777
  };
@@ -4780,8 +4789,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
4780
4789
  125
4781
4790
  /* } */
4782
4791
  )) && state.raise("Lone quantifier brackets")), state.maxBackReference > state.numCapturingParens && state.raise("Invalid escape");
4783
- for (var i = 0, list = state.backReferenceNames; i < list.length; i += 1) {
4784
- var name = list[i];
4792
+ for (var i2 = 0, list2 = state.backReferenceNames; i2 < list2.length; i2 += 1) {
4793
+ var name = list2[i2];
4785
4794
  state.groupNames[name] || state.raise("Invalid named capture referenced");
4786
4795
  }
4787
4796
  };
@@ -4924,9 +4933,9 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
4924
4933
  /* - */
4925
4934
  );
4926
4935
  if (addModifiers || hasHyphen) {
4927
- for (var i = 0; i < addModifiers.length; i++) {
4928
- var modifier = addModifiers.charAt(i);
4929
- addModifiers.indexOf(modifier, i + 1) > -1 && state.raise("Duplicate regular expression modifiers");
4936
+ for (var i2 = 0; i2 < addModifiers.length; i2++) {
4937
+ var modifier = addModifiers.charAt(i2);
4938
+ addModifiers.indexOf(modifier, i2 + 1) > -1 && state.raise("Duplicate regular expression modifiers");
4930
4939
  }
4931
4940
  if (hasHyphen) {
4932
4941
  var removeModifiers = this.regexp_eatModifiers(state);
@@ -5004,8 +5013,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
5004
5013
  var trackDisjunction = this.options.ecmaVersion >= 16, known = state.groupNames[state.lastStringValue];
5005
5014
  if (known)
5006
5015
  if (trackDisjunction)
5007
- for (var i = 0, list = known; i < list.length; i += 1) {
5008
- var altID = list[i];
5016
+ for (var i2 = 0, list2 = known; i2 < list2.length; i2 += 1) {
5017
+ var altID = list2[i2];
5009
5018
  altID.separatedFrom(state.branchID) || state.raise("Duplicate capture group name");
5010
5019
  }
5011
5020
  else
@@ -5464,7 +5473,7 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
5464
5473
  pp$1.regexp_eatFixedHexDigits = function(state, length) {
5465
5474
  var start = state.pos;
5466
5475
  state.lastIntValue = 0;
5467
- for (var i = 0; i < length; ++i) {
5476
+ for (var i2 = 0; i2 < length; ++i2) {
5468
5477
  var ch = state.current();
5469
5478
  if (!isHexDigit(ch))
5470
5479
  return state.pos = start, !1;
@@ -5621,8 +5630,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
5621
5630
  return next === 61 ? this.finishOp(types$1.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : code === 61 && next === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(types$1.arrow)) : this.finishOp(code === 61 ? types$1.eq : types$1.prefix, 1);
5622
5631
  };
5623
5632
  pp.readToken_question = function() {
5624
- var ecmaVersion = this.options.ecmaVersion;
5625
- if (ecmaVersion >= 11) {
5633
+ var ecmaVersion2 = this.options.ecmaVersion;
5634
+ if (ecmaVersion2 >= 11) {
5626
5635
  var next = this.input.charCodeAt(this.pos + 1);
5627
5636
  if (next === 46) {
5628
5637
  var next2 = this.input.charCodeAt(this.pos + 2);
@@ -5630,7 +5639,7 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
5630
5639
  return this.finishOp(types$1.questionDot, 2);
5631
5640
  }
5632
5641
  if (next === 63) {
5633
- if (ecmaVersion >= 12) {
5642
+ if (ecmaVersion2 >= 12) {
5634
5643
  var next2$1 = this.input.charCodeAt(this.pos + 2);
5635
5644
  if (next2$1 === 61)
5636
5645
  return this.finishOp(types$1.assign, 3);
@@ -5641,8 +5650,8 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
5641
5650
  return this.finishOp(types$1.question, 1);
5642
5651
  };
5643
5652
  pp.readToken_numberSign = function() {
5644
- var ecmaVersion = this.options.ecmaVersion, code = 35;
5645
- if (ecmaVersion >= 13 && (++this.pos, code = this.fullCharCodeAtPos(), isIdentifierStart(code, !0) || code === 92))
5653
+ var ecmaVersion2 = this.options.ecmaVersion, code = 35;
5654
+ if (ecmaVersion2 >= 13 && (++this.pos, code = this.fullCharCodeAtPos(), isIdentifierStart(code, !0) || code === 92))
5646
5655
  return this.finishToken(types$1.privateId, this.readWord1());
5647
5656
  this.raise(this.pos, "Unexpected character '" + codePointToString(code) + "'");
5648
5657
  };
@@ -5768,10 +5777,10 @@ var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars,
5768
5777
  return this.finishToken(types$1.regexp, { pattern, flags, value });
5769
5778
  };
5770
5779
  pp.readInt = function(radix, len, maybeLegacyOctalNumericLiteral) {
5771
- for (var allowSeparators = this.options.ecmaVersion >= 12 && len === void 0, isLegacyOctalNumericLiteral = maybeLegacyOctalNumericLiteral && this.input.charCodeAt(this.pos) === 48, start = this.pos, total = 0, lastCode = 0, i = 0, e = len ?? 1 / 0; i < e; ++i, ++this.pos) {
5780
+ for (var allowSeparators = this.options.ecmaVersion >= 12 && len === void 0, isLegacyOctalNumericLiteral = maybeLegacyOctalNumericLiteral && this.input.charCodeAt(this.pos) === 48, start = this.pos, total = 0, lastCode = 0, i2 = 0, e = len ?? 1 / 0; i2 < e; ++i2, ++this.pos) {
5772
5781
  var code = this.input.charCodeAt(this.pos), val = void 0;
5773
5782
  if (allowSeparators && code === 95) {
5774
- isLegacyOctalNumericLiteral && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), lastCode === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), i === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), lastCode = code;
5783
+ isLegacyOctalNumericLiteral && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), lastCode === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), i2 === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), lastCode = code;
5775
5784
  continue;
5776
5785
  }
5777
5786
  if (code >= 97 ? val = code - 97 + 10 : code >= 65 ? val = code - 65 + 10 : code >= 48 && code <= 57 ? val = code - 48 : val = 1 / 0, val >= radix)
@@ -6644,8 +6653,8 @@ var require_walk = __commonJS({
6644
6653
  }
6645
6654
  var base2 = {};
6646
6655
  base2.Program = base2.BlockStatement = function(node, st, c) {
6647
- for (var i = 0, list = node.body; i < list.length; i += 1) {
6648
- var stmt = list[i];
6656
+ for (var i2 = 0, list2 = node.body; i2 < list2.length; i2 += 1) {
6657
+ var stmt = list2[i2];
6649
6658
  c(stmt, st, "Statement");
6650
6659
  }
6651
6660
  }, base2.Statement = skipThrough, base2.EmptyStatement = ignore, base2.ExpressionStatement = base2.ParenthesizedExpression = base2.ChainExpression = function(node, st, c) {
@@ -6661,15 +6670,15 @@ var require_walk = __commonJS({
6661
6670
  for (var i$1 = 0, list$1 = node.cases; i$1 < list$1.length; i$1 += 1) {
6662
6671
  var cs = list$1[i$1];
6663
6672
  cs.test && c(cs.test, st, "Expression");
6664
- for (var i = 0, list = cs.consequent; i < list.length; i += 1) {
6665
- var cons = list[i];
6673
+ for (var i2 = 0, list2 = cs.consequent; i2 < list2.length; i2 += 1) {
6674
+ var cons = list2[i2];
6666
6675
  c(cons, st, "Statement");
6667
6676
  }
6668
6677
  }
6669
6678
  }, base2.SwitchCase = function(node, st, c) {
6670
6679
  node.test && c(node.test, st, "Expression");
6671
- for (var i = 0, list = node.consequent; i < list.length; i += 1) {
6672
- var cons = list[i];
6680
+ for (var i2 = 0, list2 = node.consequent; i2 < list2.length; i2 += 1) {
6681
+ var cons = list2[i2];
6673
6682
  c(cons, st, "Statement");
6674
6683
  }
6675
6684
  }, base2.ReturnStatement = base2.YieldExpression = base2.AwaitExpression = function(node, st, c) {
@@ -6691,16 +6700,16 @@ var require_walk = __commonJS({
6691
6700
  }, base2.DebuggerStatement = ignore, base2.FunctionDeclaration = function(node, st, c) {
6692
6701
  return c(node, st, "Function");
6693
6702
  }, base2.VariableDeclaration = function(node, st, c) {
6694
- for (var i = 0, list = node.declarations; i < list.length; i += 1) {
6695
- var decl = list[i];
6703
+ for (var i2 = 0, list2 = node.declarations; i2 < list2.length; i2 += 1) {
6704
+ var decl = list2[i2];
6696
6705
  c(decl, st);
6697
6706
  }
6698
6707
  }, base2.VariableDeclarator = function(node, st, c) {
6699
6708
  c(node.id, st, "Pattern"), node.init && c(node.init, st, "Expression");
6700
6709
  }, base2.Function = function(node, st, c) {
6701
6710
  node.id && c(node.id, st, "Pattern");
6702
- for (var i = 0, list = node.params; i < list.length; i += 1) {
6703
- var param = list[i];
6711
+ for (var i2 = 0, list2 = node.params; i2 < list2.length; i2 += 1) {
6712
+ var param = list2[i2];
6704
6713
  c(param, st, "Pattern");
6705
6714
  }
6706
6715
  c(node.body, st, node.expression ? "Expression" : "Statement");
@@ -6709,33 +6718,33 @@ var require_walk = __commonJS({
6709
6718
  }, base2.VariablePattern = ignore, base2.MemberPattern = skipThrough, base2.RestElement = function(node, st, c) {
6710
6719
  return c(node.argument, st, "Pattern");
6711
6720
  }, base2.ArrayPattern = function(node, st, c) {
6712
- for (var i = 0, list = node.elements; i < list.length; i += 1) {
6713
- var elt = list[i];
6721
+ for (var i2 = 0, list2 = node.elements; i2 < list2.length; i2 += 1) {
6722
+ var elt = list2[i2];
6714
6723
  elt && c(elt, st, "Pattern");
6715
6724
  }
6716
6725
  }, base2.ObjectPattern = function(node, st, c) {
6717
- for (var i = 0, list = node.properties; i < list.length; i += 1) {
6718
- var prop = list[i];
6726
+ for (var i2 = 0, list2 = node.properties; i2 < list2.length; i2 += 1) {
6727
+ var prop = list2[i2];
6719
6728
  prop.type === "Property" ? (prop.computed && c(prop.key, st, "Expression"), c(prop.value, st, "Pattern")) : prop.type === "RestElement" && c(prop.argument, st, "Pattern");
6720
6729
  }
6721
6730
  }, base2.Expression = skipThrough, base2.ThisExpression = base2.Super = base2.MetaProperty = ignore, base2.ArrayExpression = function(node, st, c) {
6722
- for (var i = 0, list = node.elements; i < list.length; i += 1) {
6723
- var elt = list[i];
6731
+ for (var i2 = 0, list2 = node.elements; i2 < list2.length; i2 += 1) {
6732
+ var elt = list2[i2];
6724
6733
  elt && c(elt, st, "Expression");
6725
6734
  }
6726
6735
  }, base2.ObjectExpression = function(node, st, c) {
6727
- for (var i = 0, list = node.properties; i < list.length; i += 1) {
6728
- var prop = list[i];
6736
+ for (var i2 = 0, list2 = node.properties; i2 < list2.length; i2 += 1) {
6737
+ var prop = list2[i2];
6729
6738
  c(prop, st);
6730
6739
  }
6731
6740
  }, base2.FunctionExpression = base2.ArrowFunctionExpression = base2.FunctionDeclaration, base2.SequenceExpression = function(node, st, c) {
6732
- for (var i = 0, list = node.expressions; i < list.length; i += 1) {
6733
- var expr = list[i];
6741
+ for (var i2 = 0, list2 = node.expressions; i2 < list2.length; i2 += 1) {
6742
+ var expr = list2[i2];
6734
6743
  c(expr, st, "Expression");
6735
6744
  }
6736
6745
  }, base2.TemplateLiteral = function(node, st, c) {
6737
- for (var i = 0, list = node.quasis; i < list.length; i += 1) {
6738
- var quasi = list[i];
6746
+ for (var i2 = 0, list2 = node.quasis; i2 < list2.length; i2 += 1) {
6747
+ var quasi = list2[i2];
6739
6748
  c(quasi, st);
6740
6749
  }
6741
6750
  for (var i$1 = 0, list$1 = node.expressions; i$1 < list$1.length; i$1 += 1) {
@@ -6752,8 +6761,8 @@ var require_walk = __commonJS({
6752
6761
  c(node.test, st, "Expression"), c(node.consequent, st, "Expression"), c(node.alternate, st, "Expression");
6753
6762
  }, base2.NewExpression = base2.CallExpression = function(node, st, c) {
6754
6763
  if (c(node.callee, st, "Expression"), node.arguments)
6755
- for (var i = 0, list = node.arguments; i < list.length; i += 1) {
6756
- var arg = list[i];
6764
+ for (var i2 = 0, list2 = node.arguments; i2 < list2.length; i2 += 1) {
6765
+ var arg = list2[i2];
6757
6766
  c(arg, st, "Expression");
6758
6767
  }
6759
6768
  }, base2.MemberExpression = function(node, st, c) {
@@ -6763,8 +6772,8 @@ var require_walk = __commonJS({
6763
6772
  }, base2.ExportAllDeclaration = function(node, st, c) {
6764
6773
  node.exported && c(node.exported, st), c(node.source, st, "Expression");
6765
6774
  }, base2.ImportDeclaration = function(node, st, c) {
6766
- for (var i = 0, list = node.specifiers; i < list.length; i += 1) {
6767
- var spec = list[i];
6775
+ for (var i2 = 0, list2 = node.specifiers; i2 < list2.length; i2 += 1) {
6776
+ var spec = list2[i2];
6768
6777
  c(spec, st);
6769
6778
  }
6770
6779
  c(node.source, st, "Expression");
@@ -6777,8 +6786,8 @@ var require_walk = __commonJS({
6777
6786
  }, base2.Class = function(node, st, c) {
6778
6787
  node.id && c(node.id, st, "Pattern"), node.superClass && c(node.superClass, st, "Expression"), c(node.body, st);
6779
6788
  }, base2.ClassBody = function(node, st, c) {
6780
- for (var i = 0, list = node.body; i < list.length; i += 1) {
6781
- var elt = list[i];
6789
+ for (var i2 = 0, list2 = node.body; i2 < list2.length; i2 += 1) {
6790
+ var elt = list2[i2];
6782
6791
  c(elt, st);
6783
6792
  }
6784
6793
  }, base2.MethodDefinition = base2.Property = function(node, st, c) {
@@ -6928,16 +6937,16 @@ var require_dist2 = __commonJS({
6928
6937
  "use strict";
6929
6938
  var __assign = exports && exports.__assign || function() {
6930
6939
  return __assign = Object.assign || function(t6) {
6931
- for (var s, i = 1, n = arguments.length; i < n; i++) {
6932
- s = arguments[i];
6940
+ for (var s, i2 = 1, n = arguments.length; i2 < n; i2++) {
6941
+ s = arguments[i2];
6933
6942
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && (t6[p] = s[p]);
6934
6943
  }
6935
6944
  return t6;
6936
6945
  }, __assign.apply(this, arguments);
6937
6946
  }, __spreadArrays = exports && exports.__spreadArrays || function() {
6938
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
6939
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
6940
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
6947
+ for (var s = 0, i2 = 0, il = arguments.length; i2 < il; i2++) s += arguments[i2].length;
6948
+ for (var r = Array(s), k = 0, i2 = 0; i2 < il; i2++)
6949
+ for (var a = arguments[i2], j = 0, jl = a.length; j < jl; j++, k++)
6941
6950
  r[k] = a[j];
6942
6951
  return r;
6943
6952
  };
@@ -6991,9 +7000,9 @@ var require_dist2 = __commonJS({
6991
7000
  if (input.length === 0)
6992
7001
  return "[]";
6993
7002
  seen.push(input);
6994
- var ret = "[" + tokens.newLine + input.map(function(el, i) {
6995
- var eol = input.length - 1 === i ? tokens.newLine : "," + tokens.newLineOrSpace, value = prettyPrint2(el, combinedOptions, pad + combinedOptions.indent);
6996
- return combinedOptions.transform && (value = combinedOptions.transform(input, i, value)), tokens.indent + value + eol;
7003
+ var ret = "[" + tokens.newLine + input.map(function(el, i2) {
7004
+ var eol = input.length - 1 === i2 ? tokens.newLine : "," + tokens.newLineOrSpace, value = prettyPrint2(el, combinedOptions, pad + combinedOptions.indent);
7005
+ return combinedOptions.transform && (value = combinedOptions.transform(input, i2, value)), tokens.indent + value + eol;
6997
7006
  }).join("") + tokens.pad + "]";
6998
7007
  return seen.pop(), expandWhiteSpace(ret);
6999
7008
  }
@@ -7004,8 +7013,8 @@ var require_dist2 = __commonJS({
7004
7013
  })), objKeys_1.length === 0)
7005
7014
  return "{}";
7006
7015
  seen.push(input);
7007
- var ret = "{" + tokens.newLine + objKeys_1.map(function(el, i) {
7008
- var eol = objKeys_1.length - 1 === i ? tokens.newLine : "," + tokens.newLineOrSpace, isSymbol2 = typeof el == "symbol", isClassic = !isSymbol2 && /^[a-z$_][a-z$_0-9]*$/i.test(el.toString()), key = isSymbol2 || isClassic ? el : prettyPrint2(el, combinedOptions), value = prettyPrint2(input[el], combinedOptions, pad + combinedOptions.indent);
7016
+ var ret = "{" + tokens.newLine + objKeys_1.map(function(el, i2) {
7017
+ var eol = objKeys_1.length - 1 === i2 ? tokens.newLine : "," + tokens.newLineOrSpace, isSymbol2 = typeof el == "symbol", isClassic = !isSymbol2 && /^[a-z$_][a-z$_0-9]*$/i.test(el.toString()), key = isSymbol2 || isClassic ? el : prettyPrint2(el, combinedOptions), value = prettyPrint2(input[el], combinedOptions, pad + combinedOptions.indent);
7009
7018
  return combinedOptions.transform && (value = combinedOptions.transform(input, el, value)), tokens.indent + String(key) + ": " + value + eol;
7010
7019
  }).join("") + tokens.pad + "}";
7011
7020
  return seen.pop(), expandWhiteSpace(ret);
@@ -7023,8 +7032,8 @@ var require_dist2 = __commonJS({
7023
7032
  var require_react_is_production_min = __commonJS({
7024
7033
  "../../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
7025
7034
  "use strict";
7026
- var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t6 = Symbol.for("react.offscreen"), u;
7027
- u = Symbol.for("react.module.reference");
7035
+ var b = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), e = /* @__PURE__ */ Symbol.for("react.strict_mode"), f = /* @__PURE__ */ Symbol.for("react.profiler"), g = /* @__PURE__ */ Symbol.for("react.provider"), h = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.server_context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), m = /* @__PURE__ */ Symbol.for("react.suspense"), n = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), q = /* @__PURE__ */ Symbol.for("react.lazy"), t6 = /* @__PURE__ */ Symbol.for("react.offscreen"), u;
7036
+ u = /* @__PURE__ */ Symbol.for("react.module.reference");
7028
7037
  function v(a) {
7029
7038
  if (typeof a == "object" && a !== null) {
7030
7039
  var r = a.$$typeof;
@@ -7122,8 +7131,8 @@ var require_react_is_development = __commonJS({
7122
7131
  "use strict";
7123
7132
  process.env.NODE_ENV !== "production" && (function() {
7124
7133
  "use strict";
7125
- var enableScopeAPI = !1, enableCacheElement = !1, enableTransitionTracing = !1, enableLegacyHidden = !1, enableDebugTracing = !1, REACT_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_MODULE_REFERENCE;
7126
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
7134
+ var enableScopeAPI = !1, enableCacheElement = !1, enableTransitionTracing = !1, enableLegacyHidden = !1, enableDebugTracing = !1, REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = /* @__PURE__ */ Symbol.for("react.provider"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_SERVER_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.server_context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = /* @__PURE__ */ Symbol.for("react.offscreen"), REACT_MODULE_REFERENCE;
7135
+ REACT_MODULE_REFERENCE = /* @__PURE__ */ Symbol.for("react.module.reference");
7127
7136
  function isValidElementType(type) {
7128
7137
  return !!(typeof type == "string" || typeof type == "function" || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing || typeof type == "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
7129
7138
  // types supported by any Flight configuration anywhere since
@@ -7512,8 +7521,8 @@ var require_parse = __commonJS({
7512
7521
  let value = holder[name];
7513
7522
  if (value != null && typeof value == "object")
7514
7523
  if (Array.isArray(value))
7515
- for (let i = 0; i < value.length; i++) {
7516
- let key2 = String(i), replacement = internalize(value, key2, reviver);
7524
+ for (let i2 = 0; i2 < value.length; i2++) {
7525
+ let key2 = String(i2), replacement = internalize(value, key2, reviver);
7517
7526
  replacement === void 0 ? delete value[key2] : Object.defineProperty(value, key2, {
7518
7527
  value: replacement,
7519
7528
  writable: !0,
@@ -8221,15 +8230,15 @@ var require_stringify = __commonJS({
8221
8230
  "\u2028": "\\u2028",
8222
8231
  "\u2029": "\\u2029"
8223
8232
  }, product = "";
8224
- for (let i = 0; i < value2.length; i++) {
8225
- let c = value2[i];
8233
+ for (let i2 = 0; i2 < value2.length; i2++) {
8234
+ let c = value2[i2];
8226
8235
  switch (c) {
8227
8236
  case "'":
8228
8237
  case '"':
8229
8238
  quotes[c]++, product += c;
8230
8239
  continue;
8231
8240
  case "\0":
8232
- if (util.isDigit(value2[i + 1])) {
8241
+ if (util.isDigit(value2[i2 + 1])) {
8233
8242
  product += "\\x00";
8234
8243
  continue;
8235
8244
  }
@@ -8285,8 +8294,8 @@ var require_stringify = __commonJS({
8285
8294
  let firstChar = String.fromCodePoint(key.codePointAt(0));
8286
8295
  if (!util.isIdStartChar(firstChar))
8287
8296
  return quoteString(key, !0);
8288
- for (let i = firstChar.length; i < key.length; i++)
8289
- if (!util.isIdContinueChar(String.fromCodePoint(key.codePointAt(i))))
8297
+ for (let i2 = firstChar.length; i2 < key.length; i2++)
8298
+ if (!util.isIdContinueChar(String.fromCodePoint(key.codePointAt(i2))))
8290
8299
  return quoteString(key, !0);
8291
8300
  return key;
8292
8301
  }
@@ -8297,8 +8306,8 @@ var require_stringify = __commonJS({
8297
8306
  let stepback = indent2;
8298
8307
  indent2 = indent2 + gap;
8299
8308
  let partial = [];
8300
- for (let i = 0; i < value2.length; i++) {
8301
- let propertyString = serializeProperty(String(i), value2);
8309
+ for (let i2 = 0; i2 < value2.length; i2++) {
8310
+ let propertyString = serializeProperty(String(i2), value2);
8302
8311
  partial.push(propertyString !== void 0 ? propertyString : "null");
8303
8312
  }
8304
8313
  let final;
@@ -8348,8 +8357,8 @@ var require_tsconfig_loader = __commonJS({
8348
8357
  "use strict";
8349
8358
  var __assign = exports && exports.__assign || function() {
8350
8359
  return __assign = Object.assign || function(t6) {
8351
- for (var s, i = 1, n = arguments.length; i < n; i++) {
8352
- s = arguments[i];
8360
+ for (var s, i2 = 1, n = arguments.length; i2 < n; i2++) {
8361
+ s = arguments[i2];
8353
8362
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && (t6[p] = s[p]);
8354
8363
  }
8355
8364
  return t6;
@@ -8536,8 +8545,8 @@ var require_minimist = __commonJS({
8536
8545
  return flags.allBools && /^--[^=]+$/.test(arg2) || flags.strings[key2] || flags.bools[key2] || aliases[key2];
8537
8546
  }
8538
8547
  function setKey(obj, keys, value2) {
8539
- for (var o = obj, i2 = 0; i2 < keys.length - 1; i2++) {
8540
- var key2 = keys[i2];
8548
+ for (var o = obj, i3 = 0; i3 < keys.length - 1; i3++) {
8549
+ var key2 = keys[i3];
8541
8550
  if (isConstructorOrProto(o, key2))
8542
8551
  return;
8543
8552
  o[key2] === void 0 && (o[key2] = {}), (o[key2] === Object.prototype || o[key2] === Number.prototype || o[key2] === String.prototype) && (o[key2] = {}), o[key2] === Array.prototype && (o[key2] = []), o = o[key2];
@@ -8558,8 +8567,8 @@ var require_minimist = __commonJS({
8558
8567
  });
8559
8568
  var notFlags = [];
8560
8569
  args.indexOf("--") !== -1 && (notFlags = args.slice(args.indexOf("--") + 1), args = args.slice(0, args.indexOf("--")));
8561
- for (var i = 0; i < args.length; i++) {
8562
- var arg = args[i], key, next;
8570
+ for (var i2 = 0; i2 < args.length; i2++) {
8571
+ var arg = args[i2], key, next;
8563
8572
  if (/^--.+=/.test(arg)) {
8564
8573
  var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
8565
8574
  key = m[1];
@@ -8568,7 +8577,7 @@ var require_minimist = __commonJS({
8568
8577
  } else if (/^--no-.+/.test(arg))
8569
8578
  key = arg.match(/^--no-(.+)/)[1], setArg(key, !1, arg);
8570
8579
  else if (/^--.+/.test(arg))
8571
- key = arg.match(/^--(.+)/)[1], next = args[i + 1], next !== void 0 && !/^(-|--)[^-]/.test(next) && !flags.bools[key] && !flags.allBools && (!aliases[key] || !aliasIsBoolean(key)) ? (setArg(key, next, arg), i += 1) : /^(true|false)$/.test(next) ? (setArg(key, next === "true", arg), i += 1) : setArg(key, flags.strings[key] ? "" : !0, arg);
8580
+ key = arg.match(/^--(.+)/)[1], next = args[i2 + 1], next !== void 0 && !/^(-|--)[^-]/.test(next) && !flags.bools[key] && !flags.allBools && (!aliases[key] || !aliasIsBoolean(key)) ? (setArg(key, next, arg), i2 += 1) : /^(true|false)$/.test(next) ? (setArg(key, next === "true", arg), i2 += 1) : setArg(key, flags.strings[key] ? "" : !0, arg);
8572
8581
  else if (/^-[^-]+/.test(arg)) {
8573
8582
  for (var letters = arg.slice(1, -1).split(""), broken = !1, j = 0; j < letters.length; j++) {
8574
8583
  if (next = arg.slice(j + 2), next === "-") {
@@ -8589,9 +8598,9 @@ var require_minimist = __commonJS({
8589
8598
  } else
8590
8599
  setArg(letters[j], flags.strings[letters[j]] ? "" : !0, arg);
8591
8600
  }
8592
- key = arg.slice(-1)[0], !broken && key !== "-" && (args[i + 1] && !/^(-|--)[^-]/.test(args[i + 1]) && !flags.bools[key] && (!aliases[key] || !aliasIsBoolean(key)) ? (setArg(key, args[i + 1], arg), i += 1) : args[i + 1] && /^(true|false)$/.test(args[i + 1]) ? (setArg(key, args[i + 1] === "true", arg), i += 1) : setArg(key, flags.strings[key] ? "" : !0, arg));
8601
+ key = arg.slice(-1)[0], !broken && key !== "-" && (args[i2 + 1] && !/^(-|--)[^-]/.test(args[i2 + 1]) && !flags.bools[key] && (!aliases[key] || !aliasIsBoolean(key)) ? (setArg(key, args[i2 + 1], arg), i2 += 1) : args[i2 + 1] && /^(true|false)$/.test(args[i2 + 1]) ? (setArg(key, args[i2 + 1] === "true", arg), i2 += 1) : setArg(key, flags.strings[key] ? "" : !0, arg));
8593
8602
  } else if ((!flags.unknownFn || flags.unknownFn(arg) !== !1) && argv._.push(flags.strings._ || !isNumber(arg) ? arg : Number(arg)), opts.stopEarly) {
8594
- argv._.push.apply(argv._, args.slice(i + 1));
8603
+ argv._.push.apply(argv._, args.slice(i2 + 1));
8595
8604
  break;
8596
8605
  }
8597
8606
  }
@@ -8611,8 +8620,8 @@ var require_register = __commonJS({
8611
8620
  "../../../node_modules/tsconfig-paths/lib/register.js"(exports) {
8612
8621
  "use strict";
8613
8622
  var __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {
8614
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++)
8615
- (ar || !(i in from)) && (ar || (ar = Array.prototype.slice.call(from, 0, i)), ar[i] = from[i]);
8623
+ if (pack || arguments.length === 2) for (var i2 = 0, l = from.length, ar; i2 < l; i2++)
8624
+ (ar || !(i2 in from)) && (ar || (ar = Array.prototype.slice.call(from, 0, i2)), ar[i2] = from[i2]);
8616
8625
  return to.concat(ar || Array.prototype.slice.call(from));
8617
8626
  };
8618
8627
  Object.defineProperty(exports, "__esModule", { value: !0 });
@@ -8732,21 +8741,31 @@ var require_homedir = __commonJS({
8732
8741
  var os = __require("os");
8733
8742
  module.exports = os.homedir || function() {
8734
8743
  var home = process.env.HOME, user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
8735
- return process.platform === "win32" ? process.env.USERPROFILE || process.env.HOMEDRIVE + process.env.HOMEPATH || home || null : process.platform === "darwin" ? home || (user ? "/Users/" + user : null) : process.platform === "linux" ? home || (process.getuid() === 0 ? "/root" : user ? "/home/" + user : null) : home || null;
8744
+ return process.platform === "win32" ? process.env.USERPROFILE || process.env.HOMEDRIVE && process.env.HOMEPATH && process.env.HOMEDRIVE + process.env.HOMEPATH || home || null : process.platform === "darwin" ? home || (user ? "/Users/" + user : null) : process.platform === "linux" ? home || (process.getuid() === 0 ? "/root" : user ? "/home/" + user : null) : home || null;
8736
8745
  };
8737
8746
  }
8738
8747
  });
8739
8748
 
8749
+ // ../../../node_modules/es-errors/index.js
8750
+ var require_es_errors = __commonJS({
8751
+ "../../../node_modules/es-errors/index.js"(exports, module) {
8752
+ "use strict";
8753
+ module.exports = Error;
8754
+ }
8755
+ });
8756
+
8740
8757
  // ../../../node_modules/resolve/lib/caller.js
8741
8758
  var require_caller = __commonJS({
8742
8759
  "../../../node_modules/resolve/lib/caller.js"(exports, module) {
8760
+ "use strict";
8761
+ var $Error = require_es_errors();
8743
8762
  module.exports = function() {
8744
- var origPrepareStackTrace = Error.prepareStackTrace;
8745
- Error.prepareStackTrace = function(_, stack2) {
8763
+ var origPrepareStackTrace = $Error.prepareStackTrace;
8764
+ $Error.prepareStackTrace = function(_, stack2) {
8746
8765
  return stack2;
8747
8766
  };
8748
- var stack = new Error().stack;
8749
- return Error.prepareStackTrace = origPrepareStackTrace, stack[2].getFileName();
8767
+ var stack = new $Error().stack;
8768
+ return $Error.prepareStackTrace = origPrepareStackTrace, stack[2].getFileName();
8750
8769
  };
8751
8770
  }
8752
8771
  });
@@ -8804,7 +8823,8 @@ var require_path_parse = __commonJS({
8804
8823
  // ../../../node_modules/resolve/lib/node-modules-paths.js
8805
8824
  var require_node_modules_paths = __commonJS({
8806
8825
  "../../../node_modules/resolve/lib/node-modules-paths.js"(exports, module) {
8807
- var path5 = __require("path"), parse8 = path5.parse || require_path_parse(), driveLetterRegex = /^([A-Za-z]:)/, uncPathRegex = /^\\\\/, getNodeModulesDirs = function(absoluteStart, modules) {
8826
+ var path5 = __require("path"), parse8 = path5.parse || require_path_parse(), driveLetterRegex = /^([A-Za-z]:)/, uncPathRegex = /^\\\\/;
8827
+ function getNodeModulesDirs(absoluteStart, modules) {
8808
8828
  var prefix = "/";
8809
8829
  driveLetterRegex.test(absoluteStart) ? prefix = "" : uncPathRegex.test(absoluteStart) && (prefix = "\\\\");
8810
8830
  for (var paths = [absoluteStart], parsed = parse8(absoluteStart); parsed.dir !== paths[paths.length - 1]; )
@@ -8814,7 +8834,7 @@ var require_node_modules_paths = __commonJS({
8814
8834
  return path5.resolve(prefix, aPath, moduleDir);
8815
8835
  }));
8816
8836
  }, []);
8817
- };
8837
+ }
8818
8838
  module.exports = function(start, opts, request) {
8819
8839
  var modules = opts && opts.moduleDirectory ? [].concat(opts.moduleDirectory) : ["node_modules"];
8820
8840
  if (opts && typeof opts.paths == "function")
@@ -8858,9 +8878,9 @@ var require_normalize_options = __commonJS({
8858
8878
  let packagePath = path5.dirname(manifestPath), unqualifiedPath = typeof parts[2] < "u" ? path5.join(packagePath, parts[2]) : packagePath;
8859
8879
  return { packagePath, unqualifiedPath };
8860
8880
  }, runPnpResolutionOnArray = (request, paths2) => {
8861
- for (let i = 0; i < paths2.length; i++) {
8862
- let resolution = runPnpResolution(request, paths2[i]);
8863
- if (resolution || i === paths2.length - 1)
8881
+ for (let i2 = 0; i2 < paths2.length; i2++) {
8882
+ let resolution = runPnpResolution(request, paths2[i2]);
8883
+ if (resolution || i2 === paths2.length - 1)
8864
8884
  return resolution;
8865
8885
  }
8866
8886
  return null;
@@ -8893,18 +8913,18 @@ var require_implementation = __commonJS({
8893
8913
  "../../../node_modules/function-bind/implementation.js"(exports, module) {
8894
8914
  "use strict";
8895
8915
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr = Object.prototype.toString, max = Math.max, funcType = "[object Function]", concatty = function(a, b) {
8896
- for (var arr = [], i = 0; i < a.length; i += 1)
8897
- arr[i] = a[i];
8916
+ for (var arr = [], i2 = 0; i2 < a.length; i2 += 1)
8917
+ arr[i2] = a[i2];
8898
8918
  for (var j = 0; j < b.length; j += 1)
8899
8919
  arr[j + a.length] = b[j];
8900
8920
  return arr;
8901
8921
  }, slicy = function(arrLike, offset2) {
8902
- for (var arr = [], i = offset2 || 0, j = 0; i < arrLike.length; i += 1, j += 1)
8903
- arr[j] = arrLike[i];
8922
+ for (var arr = [], i2 = offset2 || 0, j = 0; i2 < arrLike.length; i2 += 1, j += 1)
8923
+ arr[j] = arrLike[i2];
8904
8924
  return arr;
8905
8925
  }, joiny = function(arr, joiner) {
8906
- for (var str = "", i = 0; i < arr.length; i += 1)
8907
- str += arr[i], i + 1 < arr.length && (str += joiner);
8926
+ for (var str = "", i2 = 0; i2 < arr.length; i2 += 1)
8927
+ str += arr[i2], i2 + 1 < arr.length && (str += joiner);
8908
8928
  return str;
8909
8929
  };
8910
8930
  module.exports = function(that) {
@@ -8923,8 +8943,8 @@ var require_implementation = __commonJS({
8923
8943
  that,
8924
8944
  concatty(args, arguments)
8925
8945
  );
8926
- }, boundLength = max(0, target.length - args.length), boundArgs = [], i = 0; i < boundLength; i++)
8927
- boundArgs[i] = "$" + i;
8946
+ }, boundLength = max(0, target.length - args.length), boundArgs = [], i2 = 0; i2 < boundLength; i2++)
8947
+ boundArgs[i2] = "$" + i2;
8928
8948
  if (bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder), target.prototype) {
8929
8949
  var Empty = function() {
8930
8950
  };
@@ -9127,8 +9147,8 @@ var require_is_core_module = __commonJS({
9127
9147
  "use strict";
9128
9148
  var hasOwn2 = require_hasown();
9129
9149
  function specifierIncluded(current2, specifier) {
9130
- for (var nodeParts = current2.split("."), parts = specifier.split(" "), op = parts.length > 1 ? parts[0] : "=", versionParts = (parts.length > 1 ? parts[1] : parts[0]).split("."), i = 0; i < 3; ++i) {
9131
- var cur = parseInt(nodeParts[i] || 0, 10), ver = parseInt(versionParts[i] || 0, 10);
9150
+ for (var nodeParts = current2.split("."), parts = specifier.split(" "), op = parts.length > 1 ? parts[0] : "=", versionParts = (parts.length > 1 ? parts[1] : parts[0]).split("."), i2 = 0; i2 < 3; ++i2) {
9151
+ var cur = parseInt(nodeParts[i2] || 0, 10), ver = parseInt(versionParts[i2] || 0, 10);
9132
9152
  if (cur !== ver)
9133
9153
  return op === "<" ? cur < ver : op === ">=" ? cur >= ver : !1;
9134
9154
  }
@@ -9138,8 +9158,8 @@ var require_is_core_module = __commonJS({
9138
9158
  var specifiers = range.split(/ ?&& ?/);
9139
9159
  if (specifiers.length === 0)
9140
9160
  return !1;
9141
- for (var i = 0; i < specifiers.length; ++i)
9142
- if (!specifierIncluded(current2, specifiers[i]))
9161
+ for (var i2 = 0; i2 < specifiers.length; ++i2)
9162
+ if (!specifierIncluded(current2, specifiers[i2]))
9143
9163
  return !1;
9144
9164
  return !0;
9145
9165
  }
@@ -9150,8 +9170,8 @@ var require_is_core_module = __commonJS({
9150
9170
  if (typeof current2 != "string")
9151
9171
  throw new TypeError(typeof nodeVersion > "u" ? "Unable to determine current node version" : "If provided, a valid node version is required");
9152
9172
  if (specifierValue && typeof specifierValue == "object") {
9153
- for (var i = 0; i < specifierValue.length; ++i)
9154
- if (matchesRange(current2, specifierValue[i]))
9173
+ for (var i2 = 0; i2 < specifierValue.length; ++i2)
9174
+ if (matchesRange(current2, specifierValue[i2]))
9155
9175
  return !0;
9156
9176
  return !1;
9157
9177
  }
@@ -9164,15 +9184,25 @@ var require_is_core_module = __commonJS({
9164
9184
  }
9165
9185
  });
9166
9186
 
9187
+ // ../../../node_modules/es-errors/type.js
9188
+ var require_type = __commonJS({
9189
+ "../../../node_modules/es-errors/type.js"(exports, module) {
9190
+ "use strict";
9191
+ module.exports = TypeError;
9192
+ }
9193
+ });
9194
+
9167
9195
  // ../../../node_modules/resolve/lib/async.js
9168
9196
  var require_async = __commonJS({
9169
9197
  "../../../node_modules/resolve/lib/async.js"(exports, module) {
9170
- var fs = __require("fs"), getHomedir = require_homedir(), path5 = __require("path"), caller = require_caller(), nodeModulesPaths = require_node_modules_paths(), normalizeOptions = require_normalize_options(), isCore = require_is_core_module(), realpathFS = process.platform !== "win32" && fs.realpath && typeof fs.realpath.native == "function" ? fs.realpath.native : fs.realpath, relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/, windowsDriveRegex = /^\w:[/\\]*$/, nodeModulesRegex = /[/\\]node_modules[/\\]*$/, homedir = getHomedir(), defaultPaths = function() {
9171
- return [
9198
+ var fs = __require("fs"), getHomedir = require_homedir(), path5 = __require("path"), caller = require_caller(), nodeModulesPaths = require_node_modules_paths(), normalizeOptions = require_normalize_options(), isCore = require_is_core_module(), $Error = require_es_errors(), $TypeError = require_type(), realpathFS = process.platform !== "win32" && fs.realpath && typeof fs.realpath.native == "function" ? fs.realpath.native : fs.realpath, relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/, windowsDriveRegex = /^\w:[/\\]*$/, nodeModulesRegex = /[/\\]node_modules[/\\]*$/, homedir = getHomedir();
9199
+ function defaultPaths() {
9200
+ return homedir ? [
9172
9201
  path5.join(homedir, ".node_modules"),
9173
9202
  path5.join(homedir, ".node_libraries")
9174
- ];
9175
- }, defaultIsFile = function(file, cb) {
9203
+ ] : [];
9204
+ }
9205
+ var defaultIsFile = function(file, cb) {
9176
9206
  fs.stat(file, function(err, stat) {
9177
9207
  return err ? err.code === "ENOENT" || err.code === "ENOTDIR" ? cb(null, !1) : cb(err) : cb(null, stat.isFile() || stat.isFIFO());
9178
9208
  });
@@ -9184,9 +9214,11 @@ var require_async = __commonJS({
9184
9214
  realpathFS(x, function(realpathErr, realPath) {
9185
9215
  realpathErr && realpathErr.code !== "ENOENT" ? cb(realpathErr) : cb(null, realpathErr ? x : realPath);
9186
9216
  });
9187
- }, maybeRealpath = function(realpath, x, opts, cb) {
9217
+ };
9218
+ function maybeRealpath(realpath, x, opts, cb) {
9188
9219
  opts && opts.preserveSymlinks === !1 ? realpath(x, cb) : cb(null, x);
9189
- }, defaultReadPackage = function(readFile, pkgfile, cb) {
9220
+ }
9221
+ function defaultReadPackage(readFile, pkgfile, cb) {
9190
9222
  readFile(pkgfile, function(readFileErr, body) {
9191
9223
  if (readFileErr) cb(readFileErr);
9192
9224
  else
@@ -9197,15 +9229,16 @@ var require_async = __commonJS({
9197
9229
  cb(null);
9198
9230
  }
9199
9231
  });
9200
- }, getPackageCandidates = function(x, start, opts) {
9201
- for (var dirs = nodeModulesPaths(start, opts, x), i = 0; i < dirs.length; i++)
9202
- dirs[i] = path5.join(dirs[i], x);
9232
+ }
9233
+ function getPackageCandidates(x, start, opts) {
9234
+ for (var dirs = nodeModulesPaths(start, opts, x), i2 = 0; i2 < dirs.length; i2++)
9235
+ dirs[i2] = path5.join(dirs[i2], x);
9203
9236
  return dirs;
9204
- };
9237
+ }
9205
9238
  module.exports = function(x, options, callback) {
9206
9239
  var cb = callback, opts = options;
9207
9240
  if (typeof options == "function" && (cb = opts, opts = {}), typeof x != "string") {
9208
- var err = new TypeError("Path must be a string.");
9241
+ var err = new $TypeError("Path must be a string.");
9209
9242
  return process.nextTick(function() {
9210
9243
  cb(err);
9211
9244
  });
@@ -9213,7 +9246,7 @@ var require_async = __commonJS({
9213
9246
  opts = normalizeOptions(x, opts);
9214
9247
  var isFile2 = opts.isFile || defaultIsFile, isDirectory = opts.isDirectory || defaultIsDir, readFile = opts.readFile || fs.readFile, realpath = opts.realpath || defaultRealpath, readPackage = opts.readPackage || defaultReadPackage;
9215
9248
  if (opts.readFile && opts.readPackage) {
9216
- var conflictErr = new TypeError("`readFile` and `readPackage` are mutually exclusive.");
9249
+ var conflictErr = new $TypeError("`readFile` and `readPackage` are mutually exclusive.");
9217
9250
  return process.nextTick(function() {
9218
9251
  cb(conflictErr);
9219
9252
  });
@@ -9243,7 +9276,7 @@ var require_async = __commonJS({
9243
9276
  return maybeRealpath(realpath, n, opts, function(err3, realN) {
9244
9277
  err3 ? cb(err3) : cb(null, realN, pkg);
9245
9278
  });
9246
- var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'");
9279
+ var moduleError = new $Error("Cannot find module '" + x + "' from '" + parent + "'");
9247
9280
  moduleError.code = "MODULE_NOT_FOUND", cb(moduleError);
9248
9281
  }
9249
9282
  });
@@ -9257,7 +9290,7 @@ var require_async = __commonJS({
9257
9290
  err4 ? cb(err4) : cb(null, realD, pkg2);
9258
9291
  });
9259
9292
  else {
9260
- var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'");
9293
+ var moduleError = new $Error("Cannot find module '" + x + "' from '" + parent + "'");
9261
9294
  moduleError.code = "MODULE_NOT_FOUND", cb(moduleError);
9262
9295
  }
9263
9296
  });
@@ -9276,7 +9309,7 @@ var require_async = __commonJS({
9276
9309
  if (dir && pkg && opts.pathFilter) {
9277
9310
  var rfile = path5.relative(dir, file), rel = rfile.slice(0, rfile.length - exts2[0].length), r = opts.pathFilter(pkg, x3, rel);
9278
9311
  if (r) return load(
9279
- [""].concat(extensions.slice()),
9312
+ [""].concat(extensions),
9280
9313
  path5.resolve(dir, r),
9281
9314
  pkg
9282
9315
  );
@@ -9298,7 +9331,8 @@ var require_async = __commonJS({
9298
9331
  isFile2(pkgfile, function(err2, ex) {
9299
9332
  if (!ex) return loadpkg(path5.dirname(dir), cb2);
9300
9333
  readPackage(readFile, pkgfile, function(err3, pkgParam) {
9301
- err3 && cb2(err3);
9334
+ if (err3)
9335
+ return cb2(err3);
9302
9336
  var pkg = pkgParam;
9303
9337
  pkg && opts.packageFilter && (pkg = opts.packageFilter(pkg, pkgfile)), cb2(null, pkg, dir);
9304
9338
  });
@@ -9318,7 +9352,7 @@ var require_async = __commonJS({
9318
9352
  var pkg = pkgParam;
9319
9353
  if (pkg && opts.packageFilter && (pkg = opts.packageFilter(pkg, pkgfile)), pkg && pkg.main) {
9320
9354
  if (typeof pkg.main != "string") {
9321
- var mainError = new TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string");
9355
+ var mainError = new $TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string");
9322
9356
  return mainError.code = "INVALID_PACKAGE_MAIN", cb2(mainError);
9323
9357
  }
9324
9358
  (pkg.main === "." || pkg.main === "./") && (pkg.main = "index"), loadAsFile(path5.resolve(x2, pkg.main), pkg, function(err4, m, pkg2) {
@@ -9565,12 +9599,14 @@ var require_is_core = __commonJS({
9565
9599
  // ../../../node_modules/resolve/lib/sync.js
9566
9600
  var require_sync = __commonJS({
9567
9601
  "../../../node_modules/resolve/lib/sync.js"(exports, module) {
9568
- var isCore = require_is_core_module(), fs = __require("fs"), path5 = __require("path"), getHomedir = require_homedir(), caller = require_caller(), nodeModulesPaths = require_node_modules_paths(), normalizeOptions = require_normalize_options(), realpathFS = process.platform !== "win32" && fs.realpathSync && typeof fs.realpathSync.native == "function" ? fs.realpathSync.native : fs.realpathSync, relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/, windowsDriveRegex = /^\w:[/\\]*$/, nodeModulesRegex = /[/\\]node_modules[/\\]*$/, homedir = getHomedir(), defaultPaths = function() {
9569
- return [
9602
+ var isCore = require_is_core_module(), fs = __require("fs"), path5 = __require("path"), $Error = require_es_errors(), $TypeError = require_type(), getHomedir = require_homedir(), caller = require_caller(), nodeModulesPaths = require_node_modules_paths(), normalizeOptions = require_normalize_options(), realpathFS = process.platform !== "win32" && fs.realpathSync && typeof fs.realpathSync.native == "function" ? fs.realpathSync.native : fs.realpathSync, relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/, windowsDriveRegex = /^\w:[/\\]*$/, nodeModulesRegex = /[/\\]node_modules[/\\]*$/, homedir = getHomedir();
9603
+ function defaultPaths() {
9604
+ return homedir ? [
9570
9605
  path5.join(homedir, ".node_modules"),
9571
9606
  path5.join(homedir, ".node_libraries")
9572
- ];
9573
- }, defaultIsFile = function(file) {
9607
+ ] : [];
9608
+ }
9609
+ var defaultIsFile = function(file) {
9574
9610
  try {
9575
9611
  var stat = fs.statSync(file, { throwIfNoEntry: !1 });
9576
9612
  } catch (e) {
@@ -9594,26 +9630,29 @@ var require_sync = __commonJS({
9594
9630
  throw realpathErr;
9595
9631
  }
9596
9632
  return x;
9597
- }, maybeRealpathSync = function(realpathSync, x, opts) {
9633
+ };
9634
+ function maybeRealpathSync(realpathSync, x, opts) {
9598
9635
  return opts && opts.preserveSymlinks === !1 ? realpathSync(x) : x;
9599
- }, defaultReadPackageSync = function(readFileSync2, pkgfile) {
9636
+ }
9637
+ function defaultReadPackageSync(readFileSync2, pkgfile) {
9600
9638
  var body = readFileSync2(pkgfile);
9601
9639
  try {
9602
9640
  var pkg = JSON.parse(body);
9603
9641
  return pkg;
9604
9642
  } catch {
9605
9643
  }
9606
- }, getPackageCandidates = function(x, start, opts) {
9607
- for (var dirs = nodeModulesPaths(start, opts, x), i = 0; i < dirs.length; i++)
9608
- dirs[i] = path5.join(dirs[i], x);
9644
+ }
9645
+ function getPackageCandidates(x, start, opts) {
9646
+ for (var dirs = nodeModulesPaths(start, opts, x), i2 = 0; i2 < dirs.length; i2++)
9647
+ dirs[i2] = path5.join(dirs[i2], x);
9609
9648
  return dirs;
9610
- };
9649
+ }
9611
9650
  module.exports = function(x, options) {
9612
9651
  if (typeof x != "string")
9613
- throw new TypeError("Path must be a string.");
9652
+ throw new $TypeError("Path must be a string.");
9614
9653
  var opts = normalizeOptions(x, options), isFile2 = opts.isFile || defaultIsFile, readFileSync2 = opts.readFileSync || fs.readFileSync, isDirectory = opts.isDirectory || defaultIsDir, realpathSync = opts.realpathSync || defaultRealpathSync, readPackageSync = opts.readPackageSync || defaultReadPackageSync;
9615
9654
  if (opts.readFileSync && opts.readPackageSync)
9616
- throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
9655
+ throw new $TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
9617
9656
  var packageIterator = opts.packageIterator, extensions = opts.extensions || [".js"], includeCoreModules = opts.includeCoreModules !== !1, basedir = opts.basedir || path5.dirname(caller()), parent = opts.filename || basedir;
9618
9657
  opts.paths = opts.paths || defaultPaths();
9619
9658
  var absoluteStart = maybeRealpathSync(realpathSync, path5.resolve(basedir), opts);
@@ -9628,7 +9667,7 @@ var require_sync = __commonJS({
9628
9667
  var n = loadNodeModulesSync(x, absoluteStart);
9629
9668
  if (n) return maybeRealpathSync(realpathSync, n, opts);
9630
9669
  }
9631
- var err = new Error("Cannot find module '" + x + "' from '" + parent + "'");
9670
+ var err = new $Error("Cannot find module '" + x + "' from '" + parent + "'");
9632
9671
  throw err.code = "MODULE_NOT_FOUND", err;
9633
9672
  function loadAsFileSync(x2) {
9634
9673
  var pkg = loadpkg(path5.dirname(x2));
@@ -9638,8 +9677,8 @@ var require_sync = __commonJS({
9638
9677
  }
9639
9678
  if (isFile2(x2))
9640
9679
  return x2;
9641
- for (var i = 0; i < extensions.length; i++) {
9642
- var file = x2 + extensions[i];
9680
+ for (var i2 = 0; i2 < extensions.length; i2++) {
9681
+ var file = x2 + extensions[i2];
9643
9682
  if (isFile2(file))
9644
9683
  return file;
9645
9684
  }
@@ -9670,7 +9709,7 @@ var require_sync = __commonJS({
9670
9709
  x2
9671
9710
  )), pkg && pkg.main) {
9672
9711
  if (typeof pkg.main != "string") {
9673
- var mainError = new TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string");
9712
+ var mainError = new $TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string");
9674
9713
  throw mainError.code = "INVALID_PACKAGE_MAIN", mainError;
9675
9714
  }
9676
9715
  (pkg.main === "." || pkg.main === "./") && (pkg.main = "index");
@@ -9688,8 +9727,8 @@ var require_sync = __commonJS({
9688
9727
  function loadNodeModulesSync(x2, start) {
9689
9728
  for (var thunk = function() {
9690
9729
  return getPackageCandidates(x2, start, opts);
9691
- }, dirs = packageIterator ? packageIterator(x2, start, thunk, opts) : thunk(), i = 0; i < dirs.length; i++) {
9692
- var dir = dirs[i];
9730
+ }, dirs = packageIterator ? packageIterator(x2, start, thunk, opts) : thunk(), i2 = 0; i2 < dirs.length; i2++) {
9731
+ var dir = dirs[i2];
9693
9732
  if (isDirectory(path5.dirname(dir))) {
9694
9733
  var m2 = loadAsFileSync(dir);
9695
9734
  if (m2) return m2;
@@ -9747,10 +9786,10 @@ var require_translateOffset = __commonJS({
9747
9786
  var warned = !1;
9748
9787
  function translateOffset(start, fromOffsets, toOffsets, fromLengths, toLengths = fromLengths, preferEnd = !1) {
9749
9788
  if (!fromOffsets.every((value, index) => index === 0 || fromOffsets[index - 1] <= value)) {
9750
- for (let i = 0; i < fromOffsets.length; i++) {
9751
- let fromOffset = fromOffsets[i], fromLength = fromLengths[i];
9789
+ for (let i2 = 0; i2 < fromOffsets.length; i2++) {
9790
+ let fromOffset = fromOffsets[i2], fromLength = fromLengths[i2];
9752
9791
  if (start >= fromOffset && start <= fromOffset + fromLength) {
9753
- let toLength = toLengths[i], toOffset = toOffsets[i], rangeOffset, relativePos = start - fromOffset;
9792
+ let toLength = toLengths[i2], toOffset = toOffsets[i2], rangeOffset, relativePos = start - fromOffset;
9754
9793
  return preferEnd && toLength > fromLength && relativePos === fromLength ? rangeOffset = toLength : rangeOffset = Math.min(relativePos, toLength), toOffset + rangeOffset;
9755
9794
  }
9756
9795
  }
@@ -9795,8 +9834,8 @@ var require_sourceMap = __commonJS({
9795
9834
  if (memo.offsets.length === 0)
9796
9835
  return;
9797
9836
  let { low: start, high: end } = (0, binarySearch_1.binarySearch)(memo.offsets, offset2), skip = /* @__PURE__ */ new Set(), toRange = fromRange === "sourceOffsets" ? "generatedOffsets" : "sourceOffsets";
9798
- for (let i = start; i <= end; i++)
9799
- for (let mapping of memo.mappings[i]) {
9837
+ for (let i2 = start; i2 <= end; i2++)
9838
+ for (let mapping of memo.mappings[i2]) {
9800
9839
  if (skip.has(mapping) || (skip.add(mapping), filter && !filter(mapping.data)))
9801
9840
  continue;
9802
9841
  let mapped = (0, translateOffset_1.translateOffset)(offset2, mapping[fromRange], mapping[toRange], getLengths(mapping, fromRange), getLengths(mapping, toRange), preferEnd);
@@ -9827,14 +9866,14 @@ var require_sourceMap = __commonJS({
9827
9866
  createMemo(key) {
9828
9867
  let offsetsSet = /* @__PURE__ */ new Set();
9829
9868
  for (let mapping of this.mappings)
9830
- for (let i = 0; i < mapping[key].length; i++)
9831
- offsetsSet.add(mapping[key][i]), offsetsSet.add(mapping[key][i] + getLengths(mapping, key)[i]);
9869
+ for (let i2 = 0; i2 < mapping[key].length; i2++)
9870
+ offsetsSet.add(mapping[key][i2]), offsetsSet.add(mapping[key][i2] + getLengths(mapping, key)[i2]);
9832
9871
  let offsets = [...offsetsSet].sort((a, b) => a - b), mappings = offsets.map(() => /* @__PURE__ */ new Set());
9833
9872
  for (let mapping of this.mappings)
9834
- for (let i = 0; i < mapping[key].length; i++) {
9835
- let startIndex = (0, binarySearch_1.binarySearch)(offsets, mapping[key][i]).match, endIndex = (0, binarySearch_1.binarySearch)(offsets, mapping[key][i] + getLengths(mapping, key)[i]).match;
9836
- for (let i2 = startIndex; i2 <= endIndex; i2++)
9837
- mappings[i2].add(mapping);
9873
+ for (let i2 = 0; i2 < mapping[key].length; i2++) {
9874
+ let startIndex = (0, binarySearch_1.binarySearch)(offsets, mapping[key][i2]).match, endIndex = (0, binarySearch_1.binarySearch)(offsets, mapping[key][i2] + getLengths(mapping, key)[i2]).match;
9875
+ for (let i3 = startIndex; i3 <= endIndex; i3++)
9876
+ mappings[i3].add(mapping);
9838
9877
  }
9839
9878
  return { offsets, mappings };
9840
9879
  }
@@ -10572,9 +10611,9 @@ var require_transform = __commonJS({
10572
10611
  fileName && textSpan && (changesPerFile[fileName] ?? (changesPerFile[fileName] = [])).push({ ...c, span: textSpan });
10573
10612
  });
10574
10613
  else {
10575
- let list = changesPerFile[fileChanges.fileName] ?? (changesPerFile[fileChanges.fileName] = []);
10614
+ let list2 = changesPerFile[fileChanges.fileName] ?? (changesPerFile[fileChanges.fileName] = []);
10576
10615
  fileChanges.textChanges.forEach((c) => {
10577
- list.push(c);
10616
+ list2.push(c);
10578
10617
  }), fileChanges.isNewFile && newFiles.add(fileChanges.fileName);
10579
10618
  }
10580
10619
  }
@@ -10739,8 +10778,8 @@ var require_proxyCreateProgram = __commonJS({
10739
10778
  var language_core_1 = require_language_core(), common_1 = require_common(), resolveModuleName_1 = require_resolveModuleName(), decorateProgram_1 = require_decorateProgram(), utils_1 = require_utils3(), arrayEqual = (a, b) => {
10740
10779
  if (a.length !== b.length)
10741
10780
  return !1;
10742
- for (let i = 0; i < a.length; i++)
10743
- if (a[i] !== b[i])
10781
+ for (let i2 = 0; i2 < a.length; i2++)
10782
+ if (a[i2] !== b[i2])
10744
10783
  return !1;
10745
10784
  return !0;
10746
10785
  }, objectEqual = (a, b) => {
@@ -11117,8 +11156,8 @@ var require_proxyLanguageService = __commonJS({
11117
11156
  let displayPartsStrs = /* @__PURE__ */ new Set([displayPartsToString(infos[0].displayParts)]), documentationStrs = /* @__PURE__ */ new Set([displayPartsToString(infos[0].documentation)]), tagsStrs = /* @__PURE__ */ new Set();
11118
11157
  for (let tag of infos[0].tags ?? [])
11119
11158
  tagsStrs.add(tag.name + "__volar__" + displayPartsToString(tag.text));
11120
- for (let i = 1; i < infos.length; i++) {
11121
- let { displayParts, documentation, tags } = infos[i];
11159
+ for (let i2 = 1; i2 < infos.length; i2++) {
11160
+ let { displayParts, documentation, tags } = infos[i2];
11122
11161
  displayParts?.length && !displayPartsStrs.has(displayPartsToString(displayParts)) && (displayPartsStrs.add(displayPartsToString(displayParts)), combine.displayParts ??= [], combine.displayParts.push({ ...displayParts[0], text: `
11123
11162
 
11124
11163
  ` + displayParts[0].text }), combine.displayParts.push(...displayParts.slice(1))), documentation?.length && !documentationStrs.has(displayPartsToString(documentation)) && (documentationStrs.add(displayPartsToString(documentation)), combine.documentation ??= [], combine.documentation.push({ ...documentation[0], text: `
@@ -11273,9 +11312,9 @@ var require_proxyLanguageService = __commonJS({
11273
11312
  endOfLineState: 0
11274
11313
  };
11275
11314
  let mappingOffset = (0, transform_1.getMappingOffset)(language, serviceScript), start = mapped.start + mappingOffset, end = mapped.end + mappingOffset, result = getEncodedSemanticClassifications2(targetScript.id, { start, length: end - start }, format3), spans = [];
11276
- for (let i = 0; i < result.spans.length; i += 3)
11277
- for (let [_, sourceStart, sourceEnd] of (0, transform_1.toSourceRanges)(sourceScript, language, serviceScript, result.spans[i], result.spans[i] + result.spans[i + 1], !1, language_core_1.isSemanticTokensEnabled)) {
11278
- spans.push(sourceStart, sourceEnd - sourceStart, result.spans[i + 2]);
11315
+ for (let i2 = 0; i2 < result.spans.length; i2 += 3)
11316
+ for (let [_, sourceStart, sourceEnd] of (0, transform_1.toSourceRanges)(sourceScript, language, serviceScript, result.spans[i2], result.spans[i2] + result.spans[i2 + 1], !1, language_core_1.isSemanticTokensEnabled)) {
11317
+ spans.push(sourceStart, sourceEnd - sourceStart, result.spans[i2 + 2]);
11279
11318
  break;
11280
11319
  }
11281
11320
  return result.spans = spans, result;
@@ -11497,33 +11536,33 @@ var require_path_browserify = __commonJS({
11497
11536
  throw new TypeError("Path must be a string. Received " + JSON.stringify(path5));
11498
11537
  }
11499
11538
  function normalizeStringPosix(path5, allowAboveRoot) {
11500
- for (var res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, code, i = 0; i <= path5.length; ++i) {
11501
- if (i < path5.length)
11502
- code = path5.charCodeAt(i);
11539
+ for (var res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, code, i2 = 0; i2 <= path5.length; ++i2) {
11540
+ if (i2 < path5.length)
11541
+ code = path5.charCodeAt(i2);
11503
11542
  else {
11504
11543
  if (code === 47)
11505
11544
  break;
11506
11545
  code = 47;
11507
11546
  }
11508
11547
  if (code === 47) {
11509
- if (!(lastSlash === i - 1 || dots === 1))
11510
- if (lastSlash !== i - 1 && dots === 2) {
11548
+ if (!(lastSlash === i2 - 1 || dots === 1))
11549
+ if (lastSlash !== i2 - 1 && dots === 2) {
11511
11550
  if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 || res.charCodeAt(res.length - 2) !== 46) {
11512
11551
  if (res.length > 2) {
11513
11552
  var lastSlashIndex = res.lastIndexOf("/");
11514
11553
  if (lastSlashIndex !== res.length - 1) {
11515
- lastSlashIndex === -1 ? (res = "", lastSegmentLength = 0) : (res = res.slice(0, lastSlashIndex), lastSegmentLength = res.length - 1 - res.lastIndexOf("/")), lastSlash = i, dots = 0;
11554
+ lastSlashIndex === -1 ? (res = "", lastSegmentLength = 0) : (res = res.slice(0, lastSlashIndex), lastSegmentLength = res.length - 1 - res.lastIndexOf("/")), lastSlash = i2, dots = 0;
11516
11555
  continue;
11517
11556
  }
11518
11557
  } else if (res.length === 2 || res.length === 1) {
11519
- res = "", lastSegmentLength = 0, lastSlash = i, dots = 0;
11558
+ res = "", lastSegmentLength = 0, lastSlash = i2, dots = 0;
11520
11559
  continue;
11521
11560
  }
11522
11561
  }
11523
11562
  allowAboveRoot && (res.length > 0 ? res += "/.." : res = "..", lastSegmentLength = 2);
11524
11563
  } else
11525
- res.length > 0 ? res += "/" + path5.slice(lastSlash + 1, i) : res = path5.slice(lastSlash + 1, i), lastSegmentLength = i - lastSlash - 1;
11526
- lastSlash = i, dots = 0;
11564
+ res.length > 0 ? res += "/" + path5.slice(lastSlash + 1, i2) : res = path5.slice(lastSlash + 1, i2), lastSegmentLength = i2 - lastSlash - 1;
11565
+ lastSlash = i2, dots = 0;
11527
11566
  } else code === 46 && dots !== -1 ? ++dots : dots = -1;
11528
11567
  }
11529
11568
  return res;
@@ -11535,9 +11574,9 @@ var require_path_browserify = __commonJS({
11535
11574
  var posix = {
11536
11575
  // path.resolve([from ...], to)
11537
11576
  resolve: function() {
11538
- for (var resolvedPath = "", resolvedAbsolute = !1, cwd2, i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
11577
+ for (var resolvedPath = "", resolvedAbsolute = !1, cwd2, i2 = arguments.length - 1; i2 >= -1 && !resolvedAbsolute; i2--) {
11539
11578
  var path5;
11540
- i >= 0 ? path5 = arguments[i] : (cwd2 === void 0 && (cwd2 = process.cwd()), path5 = cwd2), assertPath(path5), path5.length !== 0 && (resolvedPath = path5 + "/" + resolvedPath, resolvedAbsolute = path5.charCodeAt(0) === 47);
11579
+ i2 >= 0 ? path5 = arguments[i2] : (cwd2 === void 0 && (cwd2 = process.cwd()), path5 = cwd2), assertPath(path5), path5.length !== 0 && (resolvedPath = path5 + "/" + resolvedPath, resolvedAbsolute = path5.charCodeAt(0) === 47);
11541
11580
  }
11542
11581
  return resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute), resolvedAbsolute ? resolvedPath.length > 0 ? "/" + resolvedPath : "/" : resolvedPath.length > 0 ? resolvedPath : ".";
11543
11582
  },
@@ -11552,8 +11591,8 @@ var require_path_browserify = __commonJS({
11552
11591
  join: function() {
11553
11592
  if (arguments.length === 0)
11554
11593
  return ".";
11555
- for (var joined, i = 0; i < arguments.length; ++i) {
11556
- var arg = arguments[i];
11594
+ for (var joined, i2 = 0; i2 < arguments.length; ++i2) {
11595
+ var arg = arguments[i2];
11557
11596
  assertPath(arg), arg.length > 0 && (joined === void 0 ? joined = arg : joined += "/" + arg);
11558
11597
  }
11559
11598
  return joined === void 0 ? "." : posix.normalize(joined);
@@ -11564,24 +11603,24 @@ var require_path_browserify = __commonJS({
11564
11603
  ;
11565
11604
  for (var fromEnd = from.length, fromLen = fromEnd - fromStart, toStart = 1; toStart < to.length && to.charCodeAt(toStart) === 47; ++toStart)
11566
11605
  ;
11567
- for (var toEnd = to.length, toLen = toEnd - toStart, length = fromLen < toLen ? fromLen : toLen, lastCommonSep = -1, i = 0; i <= length; ++i) {
11568
- if (i === length) {
11606
+ for (var toEnd = to.length, toLen = toEnd - toStart, length = fromLen < toLen ? fromLen : toLen, lastCommonSep = -1, i2 = 0; i2 <= length; ++i2) {
11607
+ if (i2 === length) {
11569
11608
  if (toLen > length) {
11570
- if (to.charCodeAt(toStart + i) === 47)
11571
- return to.slice(toStart + i + 1);
11572
- if (i === 0)
11573
- return to.slice(toStart + i);
11574
- } else fromLen > length && (from.charCodeAt(fromStart + i) === 47 ? lastCommonSep = i : i === 0 && (lastCommonSep = 0));
11609
+ if (to.charCodeAt(toStart + i2) === 47)
11610
+ return to.slice(toStart + i2 + 1);
11611
+ if (i2 === 0)
11612
+ return to.slice(toStart + i2);
11613
+ } else fromLen > length && (from.charCodeAt(fromStart + i2) === 47 ? lastCommonSep = i2 : i2 === 0 && (lastCommonSep = 0));
11575
11614
  break;
11576
11615
  }
11577
- var fromCode = from.charCodeAt(fromStart + i), toCode = to.charCodeAt(toStart + i);
11616
+ var fromCode = from.charCodeAt(fromStart + i2), toCode = to.charCodeAt(toStart + i2);
11578
11617
  if (fromCode !== toCode)
11579
11618
  break;
11580
- fromCode === 47 && (lastCommonSep = i);
11619
+ fromCode === 47 && (lastCommonSep = i2);
11581
11620
  }
11582
11621
  var out = "";
11583
- for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i)
11584
- (i === fromEnd || from.charCodeAt(i) === 47) && (out.length === 0 ? out += ".." : out += "/..");
11622
+ for (i2 = fromStart + lastCommonSep + 1; i2 <= fromEnd; ++i2)
11623
+ (i2 === fromEnd || from.charCodeAt(i2) === 47) && (out.length === 0 ? out += ".." : out += "/..");
11585
11624
  return out.length > 0 ? out + to.slice(toStart + lastCommonSep) : (toStart += lastCommonSep, to.charCodeAt(toStart) === 47 && ++toStart, to.slice(toStart));
11586
11625
  },
11587
11626
  _makeLong: function(path5) {
@@ -11589,10 +11628,10 @@ var require_path_browserify = __commonJS({
11589
11628
  },
11590
11629
  dirname: function(path5) {
11591
11630
  if (assertPath(path5), path5.length === 0) return ".";
11592
- for (var code = path5.charCodeAt(0), hasRoot = code === 47, end = -1, matchedSlash = !0, i = path5.length - 1; i >= 1; --i)
11593
- if (code = path5.charCodeAt(i), code === 47) {
11631
+ for (var code = path5.charCodeAt(0), hasRoot = code === 47, end = -1, matchedSlash = !0, i2 = path5.length - 1; i2 >= 1; --i2)
11632
+ if (code = path5.charCodeAt(i2), code === 47) {
11594
11633
  if (!matchedSlash) {
11595
- end = i;
11634
+ end = i2;
11596
11635
  break;
11597
11636
  }
11598
11637
  } else
@@ -11602,44 +11641,44 @@ var require_path_browserify = __commonJS({
11602
11641
  basename: function(path5, ext) {
11603
11642
  if (ext !== void 0 && typeof ext != "string") throw new TypeError('"ext" argument must be a string');
11604
11643
  assertPath(path5);
11605
- var start = 0, end = -1, matchedSlash = !0, i;
11644
+ var start = 0, end = -1, matchedSlash = !0, i2;
11606
11645
  if (ext !== void 0 && ext.length > 0 && ext.length <= path5.length) {
11607
11646
  if (ext.length === path5.length && ext === path5) return "";
11608
11647
  var extIdx = ext.length - 1, firstNonSlashEnd = -1;
11609
- for (i = path5.length - 1; i >= 0; --i) {
11610
- var code = path5.charCodeAt(i);
11648
+ for (i2 = path5.length - 1; i2 >= 0; --i2) {
11649
+ var code = path5.charCodeAt(i2);
11611
11650
  if (code === 47) {
11612
11651
  if (!matchedSlash) {
11613
- start = i + 1;
11652
+ start = i2 + 1;
11614
11653
  break;
11615
11654
  }
11616
11655
  } else
11617
- firstNonSlashEnd === -1 && (matchedSlash = !1, firstNonSlashEnd = i + 1), extIdx >= 0 && (code === ext.charCodeAt(extIdx) ? --extIdx === -1 && (end = i) : (extIdx = -1, end = firstNonSlashEnd));
11656
+ firstNonSlashEnd === -1 && (matchedSlash = !1, firstNonSlashEnd = i2 + 1), extIdx >= 0 && (code === ext.charCodeAt(extIdx) ? --extIdx === -1 && (end = i2) : (extIdx = -1, end = firstNonSlashEnd));
11618
11657
  }
11619
11658
  return start === end ? end = firstNonSlashEnd : end === -1 && (end = path5.length), path5.slice(start, end);
11620
11659
  } else {
11621
- for (i = path5.length - 1; i >= 0; --i)
11622
- if (path5.charCodeAt(i) === 47) {
11660
+ for (i2 = path5.length - 1; i2 >= 0; --i2)
11661
+ if (path5.charCodeAt(i2) === 47) {
11623
11662
  if (!matchedSlash) {
11624
- start = i + 1;
11663
+ start = i2 + 1;
11625
11664
  break;
11626
11665
  }
11627
- } else end === -1 && (matchedSlash = !1, end = i + 1);
11666
+ } else end === -1 && (matchedSlash = !1, end = i2 + 1);
11628
11667
  return end === -1 ? "" : path5.slice(start, end);
11629
11668
  }
11630
11669
  },
11631
11670
  extname: function(path5) {
11632
11671
  assertPath(path5);
11633
- for (var startDot = -1, startPart = 0, end = -1, matchedSlash = !0, preDotState = 0, i = path5.length - 1; i >= 0; --i) {
11634
- var code = path5.charCodeAt(i);
11672
+ for (var startDot = -1, startPart = 0, end = -1, matchedSlash = !0, preDotState = 0, i2 = path5.length - 1; i2 >= 0; --i2) {
11673
+ var code = path5.charCodeAt(i2);
11635
11674
  if (code === 47) {
11636
11675
  if (!matchedSlash) {
11637
- startPart = i + 1;
11676
+ startPart = i2 + 1;
11638
11677
  break;
11639
11678
  }
11640
11679
  continue;
11641
11680
  }
11642
- end === -1 && (matchedSlash = !1, end = i + 1), code === 46 ? startDot === -1 ? startDot = i : preDotState !== 1 && (preDotState = 1) : startDot !== -1 && (preDotState = -1);
11681
+ end === -1 && (matchedSlash = !1, end = i2 + 1), code === 46 ? startDot === -1 ? startDot = i2 : preDotState !== 1 && (preDotState = 1) : startDot !== -1 && (preDotState = -1);
11643
11682
  }
11644
11683
  return startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
11645
11684
  preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
@@ -11656,15 +11695,15 @@ var require_path_browserify = __commonJS({
11656
11695
  if (path5.length === 0) return ret;
11657
11696
  var code = path5.charCodeAt(0), isAbsolute4 = code === 47, start;
11658
11697
  isAbsolute4 ? (ret.root = "/", start = 1) : start = 0;
11659
- for (var startDot = -1, startPart = 0, end = -1, matchedSlash = !0, i = path5.length - 1, preDotState = 0; i >= start; --i) {
11660
- if (code = path5.charCodeAt(i), code === 47) {
11698
+ for (var startDot = -1, startPart = 0, end = -1, matchedSlash = !0, i2 = path5.length - 1, preDotState = 0; i2 >= start; --i2) {
11699
+ if (code = path5.charCodeAt(i2), code === 47) {
11661
11700
  if (!matchedSlash) {
11662
- startPart = i + 1;
11701
+ startPart = i2 + 1;
11663
11702
  break;
11664
11703
  }
11665
11704
  continue;
11666
11705
  }
11667
- end === -1 && (matchedSlash = !1, end = i + 1), code === 46 ? startDot === -1 ? startDot = i : preDotState !== 1 && (preDotState = 1) : startDot !== -1 && (preDotState = -1);
11706
+ end === -1 && (matchedSlash = !1, end = i2 + 1), code === 46 ? startDot === -1 ? startDot = i2 : preDotState !== 1 && (preDotState = 1) : startDot !== -1 && (preDotState = -1);
11668
11707
  }
11669
11708
  return startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
11670
11709
  preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
@@ -11815,8 +11854,8 @@ var require_createProject = __commonJS({
11815
11854
  for (let fileName of tsFileNamesSet) {
11816
11855
  tsFileRegistry.set(fileName, !0);
11817
11856
  let parts = fileName.split("/");
11818
- for (let i = 1; i < parts.length; i++) {
11819
- let dirName = parts.slice(0, i).join("/");
11857
+ for (let i2 = 1; i2 < parts.length; i2++) {
11858
+ let dirName = parts.slice(0, i2).join("/");
11820
11859
  tsFileDirRegistry.set(dirName, !0);
11821
11860
  }
11822
11861
  }
@@ -11877,7 +11916,7 @@ var require_umd = __commonJS({
11877
11916
  if (typeof t8 != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(t8));
11878
11917
  }
11879
11918
  function r2(t8, e3) {
11880
- for (var r3, n3 = "", i = 0, o = -1, s = 0, a = 0; a <= t8.length; ++a) {
11919
+ for (var r3, n3 = "", i2 = 0, o = -1, s = 0, a = 0; a <= t8.length; ++a) {
11881
11920
  if (a < t8.length) r3 = t8.charCodeAt(a);
11882
11921
  else {
11883
11922
  if (r3 === 47) break;
@@ -11885,78 +11924,78 @@ var require_umd = __commonJS({
11885
11924
  }
11886
11925
  if (r3 === 47) {
11887
11926
  if (!(o === a - 1 || s === 1)) if (o !== a - 1 && s === 2) {
11888
- if (n3.length < 2 || i !== 2 || n3.charCodeAt(n3.length - 1) !== 46 || n3.charCodeAt(n3.length - 2) !== 46) {
11927
+ if (n3.length < 2 || i2 !== 2 || n3.charCodeAt(n3.length - 1) !== 46 || n3.charCodeAt(n3.length - 2) !== 46) {
11889
11928
  if (n3.length > 2) {
11890
11929
  var h = n3.lastIndexOf("/");
11891
11930
  if (h !== n3.length - 1) {
11892
- h === -1 ? (n3 = "", i = 0) : i = (n3 = n3.slice(0, h)).length - 1 - n3.lastIndexOf("/"), o = a, s = 0;
11931
+ h === -1 ? (n3 = "", i2 = 0) : i2 = (n3 = n3.slice(0, h)).length - 1 - n3.lastIndexOf("/"), o = a, s = 0;
11893
11932
  continue;
11894
11933
  }
11895
11934
  } else if (n3.length === 2 || n3.length === 1) {
11896
- n3 = "", i = 0, o = a, s = 0;
11935
+ n3 = "", i2 = 0, o = a, s = 0;
11897
11936
  continue;
11898
11937
  }
11899
11938
  }
11900
- e3 && (n3.length > 0 ? n3 += "/.." : n3 = "..", i = 2);
11901
- } else n3.length > 0 ? n3 += "/" + t8.slice(o + 1, a) : n3 = t8.slice(o + 1, a), i = a - o - 1;
11939
+ e3 && (n3.length > 0 ? n3 += "/.." : n3 = "..", i2 = 2);
11940
+ } else n3.length > 0 ? n3 += "/" + t8.slice(o + 1, a) : n3 = t8.slice(o + 1, a), i2 = a - o - 1;
11902
11941
  o = a, s = 0;
11903
11942
  } else r3 === 46 && s !== -1 ? ++s : s = -1;
11904
11943
  }
11905
11944
  return n3;
11906
11945
  }
11907
11946
  var n2 = { resolve: function() {
11908
- for (var t8, n3 = "", i = !1, o = arguments.length - 1; o >= -1 && !i; o--) {
11947
+ for (var t8, n3 = "", i2 = !1, o = arguments.length - 1; o >= -1 && !i2; o--) {
11909
11948
  var s;
11910
- o >= 0 ? s = arguments[o] : (t8 === void 0 && (t8 = process.cwd()), s = t8), e2(s), s.length !== 0 && (n3 = s + "/" + n3, i = s.charCodeAt(0) === 47);
11949
+ o >= 0 ? s = arguments[o] : (t8 === void 0 && (t8 = process.cwd()), s = t8), e2(s), s.length !== 0 && (n3 = s + "/" + n3, i2 = s.charCodeAt(0) === 47);
11911
11950
  }
11912
- return n3 = r2(n3, !i), i ? n3.length > 0 ? "/" + n3 : "/" : n3.length > 0 ? n3 : ".";
11951
+ return n3 = r2(n3, !i2), i2 ? n3.length > 0 ? "/" + n3 : "/" : n3.length > 0 ? n3 : ".";
11913
11952
  }, normalize: function(t8) {
11914
11953
  if (e2(t8), t8.length === 0) return ".";
11915
- var n3 = t8.charCodeAt(0) === 47, i = t8.charCodeAt(t8.length - 1) === 47;
11916
- return (t8 = r2(t8, !n3)).length !== 0 || n3 || (t8 = "."), t8.length > 0 && i && (t8 += "/"), n3 ? "/" + t8 : t8;
11954
+ var n3 = t8.charCodeAt(0) === 47, i2 = t8.charCodeAt(t8.length - 1) === 47;
11955
+ return (t8 = r2(t8, !n3)).length !== 0 || n3 || (t8 = "."), t8.length > 0 && i2 && (t8 += "/"), n3 ? "/" + t8 : t8;
11917
11956
  }, isAbsolute: function(t8) {
11918
11957
  return e2(t8), t8.length > 0 && t8.charCodeAt(0) === 47;
11919
11958
  }, join: function() {
11920
11959
  if (arguments.length === 0) return ".";
11921
11960
  for (var t8, r3 = 0; r3 < arguments.length; ++r3) {
11922
- var i = arguments[r3];
11923
- e2(i), i.length > 0 && (t8 === void 0 ? t8 = i : t8 += "/" + i);
11961
+ var i2 = arguments[r3];
11962
+ e2(i2), i2.length > 0 && (t8 === void 0 ? t8 = i2 : t8 += "/" + i2);
11924
11963
  }
11925
11964
  return t8 === void 0 ? "." : n2.normalize(t8);
11926
11965
  }, relative: function(t8, r3) {
11927
11966
  if (e2(t8), e2(r3), t8 === r3 || (t8 = n2.resolve(t8)) === (r3 = n2.resolve(r3))) return "";
11928
- for (var i = 1; i < t8.length && t8.charCodeAt(i) === 47; ++i) ;
11929
- for (var o = t8.length, s = o - i, a = 1; a < r3.length && r3.charCodeAt(a) === 47; ++a) ;
11967
+ for (var i2 = 1; i2 < t8.length && t8.charCodeAt(i2) === 47; ++i2) ;
11968
+ for (var o = t8.length, s = o - i2, a = 1; a < r3.length && r3.charCodeAt(a) === 47; ++a) ;
11930
11969
  for (var h = r3.length - a, c = s < h ? s : h, f = -1, u = 0; u <= c; ++u) {
11931
11970
  if (u === c) {
11932
11971
  if (h > c) {
11933
11972
  if (r3.charCodeAt(a + u) === 47) return r3.slice(a + u + 1);
11934
11973
  if (u === 0) return r3.slice(a + u);
11935
- } else s > c && (t8.charCodeAt(i + u) === 47 ? f = u : u === 0 && (f = 0));
11974
+ } else s > c && (t8.charCodeAt(i2 + u) === 47 ? f = u : u === 0 && (f = 0));
11936
11975
  break;
11937
11976
  }
11938
- var l = t8.charCodeAt(i + u);
11977
+ var l = t8.charCodeAt(i2 + u);
11939
11978
  if (l !== r3.charCodeAt(a + u)) break;
11940
11979
  l === 47 && (f = u);
11941
11980
  }
11942
11981
  var d = "";
11943
- for (u = i + f + 1; u <= o; ++u) u !== o && t8.charCodeAt(u) !== 47 || (d.length === 0 ? d += ".." : d += "/..");
11982
+ for (u = i2 + f + 1; u <= o; ++u) u !== o && t8.charCodeAt(u) !== 47 || (d.length === 0 ? d += ".." : d += "/..");
11944
11983
  return d.length > 0 ? d + r3.slice(a + f) : (a += f, r3.charCodeAt(a) === 47 && ++a, r3.slice(a));
11945
11984
  }, _makeLong: function(t8) {
11946
11985
  return t8;
11947
11986
  }, dirname: function(t8) {
11948
11987
  if (e2(t8), t8.length === 0) return ".";
11949
- for (var r3 = t8.charCodeAt(0), n3 = r3 === 47, i = -1, o = !0, s = t8.length - 1; s >= 1; --s) if ((r3 = t8.charCodeAt(s)) === 47) {
11988
+ for (var r3 = t8.charCodeAt(0), n3 = r3 === 47, i2 = -1, o = !0, s = t8.length - 1; s >= 1; --s) if ((r3 = t8.charCodeAt(s)) === 47) {
11950
11989
  if (!o) {
11951
- i = s;
11990
+ i2 = s;
11952
11991
  break;
11953
11992
  }
11954
11993
  } else o = !1;
11955
- return i === -1 ? n3 ? "/" : "." : n3 && i === 1 ? "//" : t8.slice(0, i);
11994
+ return i2 === -1 ? n3 ? "/" : "." : n3 && i2 === 1 ? "//" : t8.slice(0, i2);
11956
11995
  }, basename: function(t8, r3) {
11957
11996
  if (r3 !== void 0 && typeof r3 != "string") throw new TypeError('"ext" argument must be a string');
11958
11997
  e2(t8);
11959
- var n3, i = 0, o = -1, s = !0;
11998
+ var n3, i2 = 0, o = -1, s = !0;
11960
11999
  if (r3 !== void 0 && r3.length > 0 && r3.length <= t8.length) {
11961
12000
  if (r3.length === t8.length && r3 === t8) return "";
11962
12001
  var a = r3.length - 1, h = -1;
@@ -11964,31 +12003,31 @@ var require_umd = __commonJS({
11964
12003
  var c = t8.charCodeAt(n3);
11965
12004
  if (c === 47) {
11966
12005
  if (!s) {
11967
- i = n3 + 1;
12006
+ i2 = n3 + 1;
11968
12007
  break;
11969
12008
  }
11970
12009
  } else h === -1 && (s = !1, h = n3 + 1), a >= 0 && (c === r3.charCodeAt(a) ? --a == -1 && (o = n3) : (a = -1, o = h));
11971
12010
  }
11972
- return i === o ? o = h : o === -1 && (o = t8.length), t8.slice(i, o);
12011
+ return i2 === o ? o = h : o === -1 && (o = t8.length), t8.slice(i2, o);
11973
12012
  }
11974
12013
  for (n3 = t8.length - 1; n3 >= 0; --n3) if (t8.charCodeAt(n3) === 47) {
11975
12014
  if (!s) {
11976
- i = n3 + 1;
12015
+ i2 = n3 + 1;
11977
12016
  break;
11978
12017
  }
11979
12018
  } else o === -1 && (s = !1, o = n3 + 1);
11980
- return o === -1 ? "" : t8.slice(i, o);
12019
+ return o === -1 ? "" : t8.slice(i2, o);
11981
12020
  }, extname: function(t8) {
11982
12021
  e2(t8);
11983
- for (var r3 = -1, n3 = 0, i = -1, o = !0, s = 0, a = t8.length - 1; a >= 0; --a) {
12022
+ for (var r3 = -1, n3 = 0, i2 = -1, o = !0, s = 0, a = t8.length - 1; a >= 0; --a) {
11984
12023
  var h = t8.charCodeAt(a);
11985
- if (h !== 47) i === -1 && (o = !1, i = a + 1), h === 46 ? r3 === -1 ? r3 = a : s !== 1 && (s = 1) : r3 !== -1 && (s = -1);
12024
+ if (h !== 47) i2 === -1 && (o = !1, i2 = a + 1), h === 46 ? r3 === -1 ? r3 = a : s !== 1 && (s = 1) : r3 !== -1 && (s = -1);
11986
12025
  else if (!o) {
11987
12026
  n3 = a + 1;
11988
12027
  break;
11989
12028
  }
11990
12029
  }
11991
- return r3 === -1 || i === -1 || s === 0 || s === 1 && r3 === i - 1 && r3 === n3 + 1 ? "" : t8.slice(r3, i);
12030
+ return r3 === -1 || i2 === -1 || s === 0 || s === 1 && r3 === i2 - 1 && r3 === n3 + 1 ? "" : t8.slice(r3, i2);
11992
12031
  }, format: function(t8) {
11993
12032
  if (t8 === null || typeof t8 != "object") throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t8);
11994
12033
  return (function(t9, e3) {
@@ -11999,9 +12038,9 @@ var require_umd = __commonJS({
11999
12038
  e2(t8);
12000
12039
  var r3 = { root: "", dir: "", base: "", ext: "", name: "" };
12001
12040
  if (t8.length === 0) return r3;
12002
- var n3, i = t8.charCodeAt(0), o = i === 47;
12041
+ var n3, i2 = t8.charCodeAt(0), o = i2 === 47;
12003
12042
  o ? (r3.root = "/", n3 = 1) : n3 = 0;
12004
- for (var s = -1, a = 0, h = -1, c = !0, f = t8.length - 1, u = 0; f >= n3; --f) if ((i = t8.charCodeAt(f)) !== 47) h === -1 && (c = !1, h = f + 1), i === 46 ? s === -1 ? s = f : u !== 1 && (u = 1) : s !== -1 && (u = -1);
12043
+ for (var s = -1, a = 0, h = -1, c = !0, f = t8.length - 1, u = 0; f >= n3; --f) if ((i2 = t8.charCodeAt(f)) !== 47) h === -1 && (c = !1, h = f + 1), i2 === 46 ? s === -1 ? s = f : u !== 1 && (u = 1) : s !== -1 && (u = -1);
12005
12044
  else if (!c) {
12006
12045
  a = f + 1;
12007
12046
  break;
@@ -12017,10 +12056,10 @@ var require_umd = __commonJS({
12017
12056
  }
12018
12057
  }, 231: (t7, e2, r2) => {
12019
12058
  Object.defineProperty(e2, "__esModule", { value: !0 }), e2.uriToFsPath = e2.URI = void 0;
12020
- let n2 = r2(70), i = /^\w[\w\d+.-]*$/, o = /^\//, s = /^\/\//;
12059
+ let n2 = r2(70), i2 = /^\w[\w\d+.-]*$/, o = /^\//, s = /^\/\//;
12021
12060
  function a(t8, e3) {
12022
12061
  if (!t8.scheme && e3) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t8.authority}", path: "${t8.path}", query: "${t8.query}", fragment: "${t8.fragment}"}`);
12023
- if (t8.scheme && !i.test(t8.scheme)) throw new Error("[UriError]: Scheme contains illegal characters.");
12062
+ if (t8.scheme && !i2.test(t8.scheme)) throw new Error("[UriError]: Scheme contains illegal characters.");
12024
12063
  if (t8.path) {
12025
12064
  if (t8.authority) {
12026
12065
  if (!o.test(t8.path)) throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character');
@@ -12037,7 +12076,7 @@ var require_umd = __commonJS({
12037
12076
  path;
12038
12077
  query;
12039
12078
  fragment;
12040
- constructor(t8, e3, r3, n3, i2, o2 = !1) {
12079
+ constructor(t8, e3, r3, n3, i3, o2 = !1) {
12041
12080
  typeof t8 == "object" ? (this.scheme = t8.scheme || h, this.authority = t8.authority || h, this.path = t8.path || h, this.query = t8.query || h, this.fragment = t8.fragment || h) : (this.scheme = /* @__PURE__ */ (function(t9, e4) {
12042
12081
  return t9 || e4 ? t9 : "file";
12043
12082
  })(t8, o2), this.authority = e3 || h, this.path = (function(t9, e4) {
@@ -12048,15 +12087,15 @@ var require_umd = __commonJS({
12048
12087
  e4 ? e4[0] !== c && (e4 = c + e4) : e4 = c;
12049
12088
  }
12050
12089
  return e4;
12051
- })(this.scheme, r3 || h), this.query = n3 || h, this.fragment = i2 || h, a(this, o2));
12090
+ })(this.scheme, r3 || h), this.query = n3 || h, this.fragment = i3 || h, a(this, o2));
12052
12091
  }
12053
12092
  get fsPath() {
12054
12093
  return v(this, !1);
12055
12094
  }
12056
12095
  with(t8) {
12057
12096
  if (!t8) return this;
12058
- let { scheme: e3, authority: r3, path: n3, query: i2, fragment: o2 } = t8;
12059
- return e3 === void 0 ? e3 = this.scheme : e3 === null && (e3 = h), r3 === void 0 ? r3 = this.authority : r3 === null && (r3 = h), n3 === void 0 ? n3 = this.path : n3 === null && (n3 = h), i2 === void 0 ? i2 = this.query : i2 === null && (i2 = h), o2 === void 0 ? o2 = this.fragment : o2 === null && (o2 = h), e3 === this.scheme && r3 === this.authority && n3 === this.path && i2 === this.query && o2 === this.fragment ? this : new d(e3, r3, n3, i2, o2);
12097
+ let { scheme: e3, authority: r3, path: n3, query: i3, fragment: o2 } = t8;
12098
+ return e3 === void 0 ? e3 = this.scheme : e3 === null && (e3 = h), r3 === void 0 ? r3 = this.authority : r3 === null && (r3 = h), n3 === void 0 ? n3 = this.path : n3 === null && (n3 = h), i3 === void 0 ? i3 = this.query : i3 === null && (i3 = h), o2 === void 0 ? o2 = this.fragment : o2 === null && (o2 = h), e3 === this.scheme && r3 === this.authority && n3 === this.path && i3 === this.query && o2 === this.fragment ? this : new d(e3, r3, n3, i3, o2);
12060
12099
  }
12061
12100
  static parse(t8, e3 = !1) {
12062
12101
  let r3 = f.exec(t8);
@@ -12109,17 +12148,17 @@ var require_umd = __commonJS({
12109
12148
  }
12110
12149
  let p = { 58: "%3A", 47: "%2F", 63: "%3F", 35: "%23", 91: "%5B", 93: "%5D", 64: "%40", 33: "%21", 36: "%24", 38: "%26", 39: "%27", 40: "%28", 41: "%29", 42: "%2A", 43: "%2B", 44: "%2C", 59: "%3B", 61: "%3D", 32: "%20" };
12111
12150
  function g(t8, e3, r3) {
12112
- let n3, i2 = -1;
12151
+ let n3, i3 = -1;
12113
12152
  for (let o2 = 0; o2 < t8.length; o2++) {
12114
12153
  let s2 = t8.charCodeAt(o2);
12115
- if (s2 >= 97 && s2 <= 122 || s2 >= 65 && s2 <= 90 || s2 >= 48 && s2 <= 57 || s2 === 45 || s2 === 46 || s2 === 95 || s2 === 126 || e3 && s2 === 47 || r3 && s2 === 91 || r3 && s2 === 93 || r3 && s2 === 58) i2 !== -1 && (n3 += encodeURIComponent(t8.substring(i2, o2)), i2 = -1), n3 !== void 0 && (n3 += t8.charAt(o2));
12154
+ if (s2 >= 97 && s2 <= 122 || s2 >= 65 && s2 <= 90 || s2 >= 48 && s2 <= 57 || s2 === 45 || s2 === 46 || s2 === 95 || s2 === 126 || e3 && s2 === 47 || r3 && s2 === 91 || r3 && s2 === 93 || r3 && s2 === 58) i3 !== -1 && (n3 += encodeURIComponent(t8.substring(i3, o2)), i3 = -1), n3 !== void 0 && (n3 += t8.charAt(o2));
12116
12155
  else {
12117
12156
  n3 === void 0 && (n3 = t8.substr(0, o2));
12118
12157
  let e4 = p[s2];
12119
- e4 !== void 0 ? (i2 !== -1 && (n3 += encodeURIComponent(t8.substring(i2, o2)), i2 = -1), n3 += e4) : i2 === -1 && (i2 = o2);
12158
+ e4 !== void 0 ? (i3 !== -1 && (n3 += encodeURIComponent(t8.substring(i3, o2)), i3 = -1), n3 += e4) : i3 === -1 && (i3 = o2);
12120
12159
  }
12121
12160
  }
12122
- return i2 !== -1 && (n3 += encodeURIComponent(t8.substring(i2))), n3 !== void 0 ? n3 : t8;
12161
+ return i3 !== -1 && (n3 += encodeURIComponent(t8.substring(i3))), n3 !== void 0 ? n3 : t8;
12123
12162
  }
12124
12163
  function m(t8) {
12125
12164
  let e3;
@@ -12134,8 +12173,8 @@ var require_umd = __commonJS({
12134
12173
  return r3 = t8.authority && t8.path.length > 1 && t8.scheme === "file" ? `//${t8.authority}${t8.path}` : t8.path.charCodeAt(0) === 47 && (t8.path.charCodeAt(1) >= 65 && t8.path.charCodeAt(1) <= 90 || t8.path.charCodeAt(1) >= 97 && t8.path.charCodeAt(1) <= 122) && t8.path.charCodeAt(2) === 58 ? e3 ? t8.path.substr(1) : t8.path[1].toLowerCase() + t8.path.substr(2) : t8.path, n2.isWindows && (r3 = r3.replace(/\//g, "\\")), r3;
12135
12174
  }
12136
12175
  function y(t8, e3) {
12137
- let r3 = e3 ? m : g, n3 = "", { scheme: i2, authority: o2, path: s2, query: a2, fragment: h2 } = t8;
12138
- if (i2 && (n3 += i2, n3 += ":"), (o2 || i2 === "file") && (n3 += c, n3 += c), o2) {
12176
+ let r3 = e3 ? m : g, n3 = "", { scheme: i3, authority: o2, path: s2, query: a2, fragment: h2 } = t8;
12177
+ if (i3 && (n3 += i3, n3 += ":"), (o2 || i3 === "file") && (n3 += c, n3 += c), o2) {
12139
12178
  let t9 = o2.indexOf("@");
12140
12179
  if (t9 !== -1) {
12141
12180
  let e4 = o2.substr(0, t9);
@@ -12170,13 +12209,13 @@ var require_umd = __commonJS({
12170
12209
  }, 552: function(t7, e2, r2) {
12171
12210
  var n2 = this && this.__createBinding || (Object.create ? function(t8, e3, r3, n3) {
12172
12211
  n3 === void 0 && (n3 = r3);
12173
- var i2 = Object.getOwnPropertyDescriptor(e3, r3);
12174
- i2 && !("get" in i2 ? !e3.__esModule : i2.writable || i2.configurable) || (i2 = { enumerable: !0, get: function() {
12212
+ var i3 = Object.getOwnPropertyDescriptor(e3, r3);
12213
+ i3 && !("get" in i3 ? !e3.__esModule : i3.writable || i3.configurable) || (i3 = { enumerable: !0, get: function() {
12175
12214
  return e3[r3];
12176
- } }), Object.defineProperty(t8, n3, i2);
12215
+ } }), Object.defineProperty(t8, n3, i3);
12177
12216
  } : function(t8, e3, r3, n3) {
12178
12217
  n3 === void 0 && (n3 = r3), t8[n3] = e3[r3];
12179
- }), i = this && this.__setModuleDefault || (Object.create ? function(t8, e3) {
12218
+ }), i2 = this && this.__setModuleDefault || (Object.create ? function(t8, e3) {
12180
12219
  Object.defineProperty(t8, "default", { enumerable: !0, value: e3 });
12181
12220
  } : function(t8, e3) {
12182
12221
  t8.default = e3;
@@ -12184,7 +12223,7 @@ var require_umd = __commonJS({
12184
12223
  if (t8 && t8.__esModule) return t8;
12185
12224
  var e3 = {};
12186
12225
  if (t8 != null) for (var r3 in t8) r3 !== "default" && Object.prototype.hasOwnProperty.call(t8, r3) && n2(e3, t8, r3);
12187
- return i(e3, t8), e3;
12226
+ return i2(e3, t8), e3;
12188
12227
  };
12189
12228
  Object.defineProperty(e2, "__esModule", { value: !0 }), e2.Utils = void 0;
12190
12229
  let s = o(r2(975)), a = s.posix || s, h = "/";
@@ -12195,8 +12234,8 @@ var require_umd = __commonJS({
12195
12234
  }, t8.resolvePath = function(t9, ...e3) {
12196
12235
  let r3 = t9.path, n3 = !1;
12197
12236
  r3[0] !== h && (r3 = h + r3, n3 = !0);
12198
- let i2 = a.resolve(r3, ...e3);
12199
- return n3 && i2[0] === h && !t9.authority && (i2 = i2.substring(1)), t9.with({ path: i2 });
12237
+ let i3 = a.resolve(r3, ...e3);
12238
+ return n3 && i3[0] === h && !t9.authority && (i3 = i3.substring(1)), t9.with({ path: i3 });
12200
12239
  }, t8.dirname = function(t9) {
12201
12240
  if (t9.path.length === 0 || t9.path === h) return t9;
12202
12241
  let e3 = a.dirname(t9.path);
@@ -12209,8 +12248,8 @@ var require_umd = __commonJS({
12209
12248
  })(c || (e2.Utils = c = {}));
12210
12249
  } }, e = {};
12211
12250
  function r(n2) {
12212
- var i = e[n2];
12213
- if (i !== void 0) return i.exports;
12251
+ var i2 = e[n2];
12252
+ if (i2 !== void 0) return i2.exports;
12214
12253
  var o = e[n2] = { exports: {} };
12215
12254
  return t6[n2].call(o.exports, o, o.exports, r), o.exports;
12216
12255
  }
@@ -12222,9 +12261,9 @@ var require_umd = __commonJS({
12222
12261
  Object.defineProperty(t7, "URI", { enumerable: !0, get: function() {
12223
12262
  return e2.URI;
12224
12263
  } });
12225
- let i = r(552);
12264
+ let i2 = r(552);
12226
12265
  Object.defineProperty(t7, "Utils", { enumerable: !0, get: function() {
12227
- return i.Utils;
12266
+ return i2.Utils;
12228
12267
  } });
12229
12268
  })(), n;
12230
12269
  })()));
@@ -12257,8 +12296,8 @@ var require_core4 = __commonJS({
12257
12296
  var emptyArray = [];
12258
12297
  function every(array, callback) {
12259
12298
  if (array) {
12260
- for (let i = 0; i < array.length; i++)
12261
- if (!callback(array[i], i))
12299
+ for (let i2 = 0; i2 < array.length; i2++)
12300
+ if (!callback(array[i2], i2))
12262
12301
  return !1;
12263
12302
  }
12264
12303
  return !0;
@@ -12266,9 +12305,9 @@ var require_core4 = __commonJS({
12266
12305
  function findIndex(array, predicate, startIndex) {
12267
12306
  if (array === void 0)
12268
12307
  return -1;
12269
- for (let i = startIndex ?? 0; i < array.length; i++)
12270
- if (predicate(array[i], i))
12271
- return i;
12308
+ for (let i2 = startIndex ?? 0; i2 < array.length; i2++)
12309
+ if (predicate(array[i2], i2))
12310
+ return i2;
12272
12311
  return -1;
12273
12312
  }
12274
12313
  function contains(array, value, equalityComparer = equateValues) {
@@ -12280,17 +12319,17 @@ var require_core4 = __commonJS({
12280
12319
  return !1;
12281
12320
  }
12282
12321
  function indexOfAnyCharCode(text, charCodes, start) {
12283
- for (let i = start || 0; i < text.length; i++)
12284
- if (contains(charCodes, text.charCodeAt(i)))
12285
- return i;
12322
+ for (let i2 = start || 0; i2 < text.length; i2++)
12323
+ if (contains(charCodes, text.charCodeAt(i2)))
12324
+ return i2;
12286
12325
  return -1;
12287
12326
  }
12288
12327
  function map(array, f) {
12289
12328
  let result;
12290
12329
  if (array) {
12291
12330
  result = [];
12292
- for (let i = 0; i < array.length; i++)
12293
- result.push(f(array[i], i));
12331
+ for (let i2 = 0; i2 < array.length; i2++)
12332
+ result.push(f(array[i2], i2));
12294
12333
  }
12295
12334
  return result;
12296
12335
  }
@@ -12303,8 +12342,8 @@ var require_core4 = __commonJS({
12303
12342
  function flatMap(array, mapfn) {
12304
12343
  let result;
12305
12344
  if (array)
12306
- for (let i = 0; i < array.length; i++) {
12307
- let v = mapfn(array[i], i);
12345
+ for (let i2 = 0; i2 < array.length; i2++) {
12346
+ let v = mapfn(array[i2], i2);
12308
12347
  v && (isArray2(v) ? result = addRange(result, v) : result = append(result, v));
12309
12348
  }
12310
12349
  return result || emptyArray;
@@ -12331,8 +12370,8 @@ var require_core4 = __commonJS({
12331
12370
  if (to === void 0)
12332
12371
  return from.slice(start, end);
12333
12372
  start = start === void 0 ? 0 : toOffset(from, start), end = end === void 0 ? from.length : toOffset(from, end);
12334
- for (let i = start; i < end && i < from.length; i++)
12335
- from[i] !== void 0 && to.push(from[i]);
12373
+ for (let i2 = start; i2 < end && i2 < from.length; i2++)
12374
+ from[i2] !== void 0 && to.push(from[i2]);
12336
12375
  return to;
12337
12376
  }
12338
12377
  function sort(array, comparer) {
@@ -12540,8 +12579,8 @@ var require_path = __commonJS({
12540
12579
  if (!(0, core_1.some)(components))
12541
12580
  return [];
12542
12581
  let reduced = [components[0]];
12543
- for (let i = 1; i < components.length; i++) {
12544
- let component = components[i];
12582
+ for (let i2 = 1; i2 < components.length; i2++) {
12583
+ let component = components[i2];
12545
12584
  if (component && component !== ".") {
12546
12585
  if (component === "..") {
12547
12586
  if (reduced.length > 1) {
@@ -12591,8 +12630,8 @@ var require_path = __commonJS({
12591
12630
  if (childComponents.length < parentComponents.length)
12592
12631
  return !1;
12593
12632
  let componentEqualityComparer = ignoreCase ? core_1.equateStringsCaseInsensitive : core_1.equateStringsCaseSensitive;
12594
- for (let i = 0; i < parentComponents.length; i++)
12595
- if (!(i === 0 ? core_1.equateStringsCaseInsensitive : componentEqualityComparer)(parentComponents[i], childComponents[i]))
12633
+ for (let i2 = 0; i2 < parentComponents.length; i2++)
12634
+ if (!(i2 === 0 ? core_1.equateStringsCaseInsensitive : componentEqualityComparer)(parentComponents[i2], childComponents[i2]))
12596
12635
  return !1;
12597
12636
  return !0;
12598
12637
  }
@@ -12965,8 +13004,8 @@ var require_createSys = __commonJS({
12965
13004
  for (; lastDirPath !== currentDirPath; )
12966
13005
  lastDirPath = currentDirPath, dirNames.push(currentDirName), currentDirPath = path5.dirname(currentDirPath), currentDirName = path5.basename(currentDirPath);
12967
13006
  let currentDir = root;
12968
- for (let i = dirNames.length - 1; i >= 0; i--) {
12969
- let nextDirName = dirNames[i];
13007
+ for (let i2 = dirNames.length - 1; i2 >= 0; i2--) {
13008
+ let nextDirName = dirNames[i2];
12970
13009
  currentDir = getDirFromDir(currentDir, nextDirName), markExists && !currentDir.exists && (currentDir.exists = !0, version2++);
12971
13010
  }
12972
13011
  return currentDir;
@@ -13289,7 +13328,7 @@ import {
13289
13328
  } from "storybook/internal/docs-tools";
13290
13329
 
13291
13330
  // src/docs/lib/componentTypes.ts
13292
- var isMemo = (component) => component.$$typeof === Symbol.for("react.memo");
13331
+ var isMemo = (component) => component.$$typeof === /* @__PURE__ */ Symbol.for("react.memo");
13293
13332
 
13294
13333
  // src/docs/lib/defaultValues/createDefaultValue.ts
13295
13334
  import {
@@ -13480,14 +13519,9 @@ function parse5(value) {
13480
13519
  };
13481
13520
  if (ast.body[0] != null) {
13482
13521
  let rootNode = ast.body[0];
13483
- switch (rootNode.type) {
13484
- case "ExpressionStatement": {
13485
- let expressionResult = parseExpression(rootNode.expression);
13486
- expressionResult != null && (parsingResult = expressionResult);
13487
- break;
13488
- }
13489
- default:
13490
- break;
13522
+ if (rootNode.type === "ExpressionStatement") {
13523
+ let expressionResult = parseExpression(rootNode.expression);
13524
+ expressionResult != null && (parsingResult = expressionResult);
13491
13525
  }
13492
13526
  }
13493
13527
  return parsingResult;
@@ -13690,15 +13724,15 @@ function _toPrimitive(t6, r) {
13690
13724
  if (typeof t6 != "object" || !t6) return t6;
13691
13725
  var e = t6[Symbol.toPrimitive];
13692
13726
  if (e !== void 0) {
13693
- var i = e.call(t6, r || "default");
13694
- if (typeof i != "object") return i;
13727
+ var i2 = e.call(t6, r || "default");
13728
+ if (typeof i2 != "object") return i2;
13695
13729
  throw new TypeError("@@toPrimitive must return a primitive value.");
13696
13730
  }
13697
13731
  return (r === "string" ? String : Number)(t6);
13698
13732
  }
13699
13733
  function _toPropertyKey(t6) {
13700
- var i = _toPrimitive(t6, "string");
13701
- return typeof i == "symbol" ? i : i + "";
13734
+ var i2 = _toPrimitive(t6, "string");
13735
+ return typeof i2 == "symbol" ? i2 : i2 + "";
13702
13736
  }
13703
13737
  function _typeof(o) {
13704
13738
  "@babel/helpers - typeof";
@@ -14581,9 +14615,9 @@ function typeTokenizer(spacing = "compact") {
14581
14615
  let join7 = getJoiner(spacing);
14582
14616
  return (spec) => {
14583
14617
  let curlies = 0, lines = [];
14584
- for (let [i, { tokens }] of spec.source.entries()) {
14618
+ for (let [i2, { tokens }] of spec.source.entries()) {
14585
14619
  let type = "";
14586
- if (i === 0 && tokens.description[0] !== "{")
14620
+ if (i2 === 0 && tokens.description[0] !== "{")
14587
14621
  return spec;
14588
14622
  for (let ch of tokens.description)
14589
14623
  if (ch === "{" && curlies++, ch === "}" && curlies--, type += ch, curlies === 0)
@@ -14599,8 +14633,8 @@ function typeTokenizer(spacing = "compact") {
14599
14633
  critical: !0
14600
14634
  }), spec;
14601
14635
  let parts = [], offset2 = lines[0][0].postDelimiter.length;
14602
- for (let [i, [tokens, type]] of lines.entries())
14603
- tokens.type = type, i > 0 && (tokens.type = tokens.postDelimiter.slice(offset2) + type, tokens.postDelimiter = tokens.postDelimiter.slice(0, offset2)), [tokens.postType, tokens.description] = splitSpace(tokens.description.slice(type.length)), parts.push(tokens.type);
14636
+ for (let [i2, [tokens, type]] of lines.entries())
14637
+ tokens.type = type, i2 > 0 && (tokens.type = tokens.postDelimiter.slice(offset2) + type, tokens.postDelimiter = tokens.postDelimiter.slice(0, offset2)), [tokens.postType, tokens.description] = splitSpace(tokens.description.slice(type.length)), parts.push(tokens.type);
14604
14638
  return parts[0] = parts[0].slice(1), parts[parts.length - 1] = parts[parts.length - 1].slice(0, -1), spec.type = join7(parts), spec;
14605
14639
  };
14606
14640
  }
@@ -14613,7 +14647,7 @@ function getJoiner(spacing) {
14613
14647
  // ../../../node_modules/comment-parser/es6/parser/tokenizers/name.js
14614
14648
  var isQuoted = (s) => s && s.startsWith('"') && s.endsWith('"');
14615
14649
  function nameTokenizer() {
14616
- let typeEnd = (num, { tokens }, i) => tokens.type === "" ? num : i;
14650
+ let typeEnd = (num, { tokens }, i2) => tokens.type === "" ? num : i2;
14617
14651
  return (spec) => {
14618
14652
  let { tokens } = spec.source[spec.source.reduce(typeEnd, 0)], source = tokens.description.trimLeft(), quotedGroups = source.split('"');
14619
14653
  if (quotedGroups.length > 1 && quotedGroups[0] === "" && quotedGroups.length % 2 === 1)
@@ -14672,7 +14706,7 @@ function getJoiner2(spacing) {
14672
14706
  function compactJoiner(lines, markers = Markers) {
14673
14707
  return lines.map(({ tokens: { description } }) => description.trim()).filter((description) => description !== "").join(" ");
14674
14708
  }
14675
- var lineNo = (num, { tokens }, i) => tokens.type === "" ? num : i, getDescription = ({ tokens }) => (tokens.delimiter === "" ? tokens.start : tokens.postDelimiter.slice(1)) + tokens.description;
14709
+ var lineNo = (num, { tokens }, i2) => tokens.type === "" ? num : i2, getDescription = ({ tokens }) => (tokens.delimiter === "" ? tokens.start : tokens.postDelimiter.slice(1)) + tokens.description;
14676
14710
  function preserveJoiner(lines, markers = Markers) {
14677
14711
  if (lines.length === 0)
14678
14712
  return "";
@@ -14744,7 +14778,7 @@ function parse6(source, options = {}) {
14744
14778
  var stringify = getStringifier();
14745
14779
 
14746
14780
  // src/componentManifest/utils.ts
14747
- import { readFileSync } from "node:fs";
14781
+ import { readFileSync, statSync as statSync2 } from "node:fs";
14748
14782
  import { getProjectRoot, resolveImport } from "storybook/internal/common";
14749
14783
  import { logger } from "storybook/internal/node-logger";
14750
14784
 
@@ -14793,7 +14827,7 @@ function invariant(condition, message) {
14793
14827
  if (!condition)
14794
14828
  throw new Error((typeof message == "function" ? message() : message) ?? "Invariant failed");
14795
14829
  }
14796
- var memoStore = /* @__PURE__ */ new WeakMap(), asyncMemoStore = /* @__PURE__ */ new WeakMap(), cached = (fn, opts = {}) => {
14830
+ var memoStore = /* @__PURE__ */ new WeakMap(), asyncMemoStore = /* @__PURE__ */ new WeakMap(), textFileCache = /* @__PURE__ */ new Map(), cached = (fn, opts = {}) => {
14797
14831
  let keyOf2 = opts.key ?? ((...args) => {
14798
14832
  try {
14799
14833
  return JSON.stringify(args);
@@ -14828,11 +14862,22 @@ var memoStore = /* @__PURE__ */ new WeakMap(), asyncMemoStore = /* @__PURE__ */
14828
14862
  return store.set(k, pending), pending;
14829
14863
  };
14830
14864
  }, invalidateCache = () => {
14831
- memoStore = /* @__PURE__ */ new WeakMap(), asyncMemoStore = /* @__PURE__ */ new WeakMap();
14832
- }, cachedReadFileSync = cached(readFileSync, { name: "cachedReadFile" }), cachedReadTextFileSync = cached(
14833
- (filePath) => readFileSync(filePath, "utf-8"),
14834
- { name: "cachedReadTextFile" }
14835
- ), cachedFindUp = cached(up2, { name: "findUp" }), cachedResolveImport = cached(resolveImport, {
14865
+ memoStore = /* @__PURE__ */ new WeakMap(), asyncMemoStore = /* @__PURE__ */ new WeakMap(), textFileCache = /* @__PURE__ */ new Map();
14866
+ }, cachedReadFileSync = cached(readFileSync, { name: "cachedReadFile" }), cachedReadTextFileSync = (filePath) => {
14867
+ let mtimeMs;
14868
+ try {
14869
+ mtimeMs = statSync2(filePath).mtimeMs;
14870
+ } catch {
14871
+ mtimeMs = void 0;
14872
+ }
14873
+ if (mtimeMs !== void 0) {
14874
+ let entry = textFileCache.get(filePath);
14875
+ if (entry && entry.mtimeMs === mtimeMs)
14876
+ return entry.content;
14877
+ }
14878
+ let content = readFileSync(filePath, "utf-8");
14879
+ return mtimeMs !== void 0 && textFileCache.set(filePath, { mtimeMs, content }), content;
14880
+ }, cachedFindUp = cached(up2, { name: "findUp" }), cachedResolveImport = cached(resolveImport, {
14836
14881
  name: "resolveImport"
14837
14882
  }), TSCONFIG_CANDIDATES = ["tsconfig.json", "tsconfig.base.json", "tsconfig.app.json"], findTsconfigPath = cached(
14838
14883
  (cwd2) => {
@@ -14850,9 +14895,9 @@ var memoStore = /* @__PURE__ */ new WeakMap(), asyncMemoStore = /* @__PURE__ */
14850
14895
  function extractJSDocInfo(jsdocComment) {
14851
14896
  let jsDoc = ["/**", ...jsdocComment.split(`
14852
14897
  `).map((line) => ` * ${line}`), " */"].join(`
14853
- `), parsed = parse6(jsDoc);
14898
+ `), description = parse6(jsDoc, { spacing: "preserve" })[0].description, parsed = parse6(jsDoc, { spacing: "compact" });
14854
14899
  return {
14855
- description: parsed[0].description,
14900
+ description,
14856
14901
  tags: Object.fromEntries(
14857
14902
  Object.entries(groupBy(parsed[0].tags, (it) => it.tag)).map(([key, tags]) => [
14858
14903
  key,
@@ -16267,26 +16312,41 @@ function createSubcomponentDocgen({
16267
16312
  })
16268
16313
  };
16269
16314
  }
16270
- function buildReactComponentDocgenFromResolved({
16315
+ function buildStoryDocsFromResolved({
16271
16316
  entry,
16272
16317
  storyPath,
16273
16318
  storyFilePath,
16274
- storyFile,
16275
16319
  csf,
16276
16320
  componentName,
16277
16321
  component,
16278
16322
  allComponents,
16279
- subcomponents,
16280
- docgenEngine,
16281
16323
  filterStoryIds
16282
16324
  }) {
16283
16325
  let id = getComponentIdFromEntry(entry), title = entry.title.split("/").at(-1).replace(/\s+/g, ""), packageName = getPackageInfo(component?.path, storyPath), fallbackImport = getFallbackImport(packageName, componentName), imports = getImports({ components: allComponents, packageName }).join(`
16284
- `).trim() || fallbackImport, stories = extractStorySnippets(csf, component?.componentName, filterStoryIds), base2 = {
16326
+ `).trim() || fallbackImport, storyEntries = extractStorySnippets(csf, component?.componentName, filterStoryIds);
16327
+ return {
16328
+ id,
16329
+ name: componentName ?? title,
16330
+ path: storyFilePath,
16331
+ ...imports ? { import: imports } : {},
16332
+ stories: Object.fromEntries(storyEntries.map((story) => [story.id, story]))
16333
+ };
16334
+ }
16335
+ function buildComponentDocgenFromResolved({
16336
+ entry,
16337
+ storyPath,
16338
+ storyFilePath,
16339
+ storyFile,
16340
+ csf,
16341
+ componentName,
16342
+ component,
16343
+ subcomponents,
16344
+ docgenEngine
16345
+ }) {
16346
+ let id = getComponentIdFromEntry(entry), title = entry.title.split("/").at(-1).replace(/\s+/g, ""), packageName = getPackageInfo(component?.path, storyPath), base2 = {
16285
16347
  id,
16286
16348
  name: componentName ?? title,
16287
16349
  path: storyFilePath,
16288
- stories,
16289
- import: imports || void 0,
16290
16350
  jsDocTags: {}
16291
16351
  }, {
16292
16352
  reactDocgen,
@@ -16336,7 +16396,6 @@ ${storyFile}`
16336
16396
  ...base2,
16337
16397
  description,
16338
16398
  summary,
16339
- import: imports || void 0,
16340
16399
  reactDocgen,
16341
16400
  reactDocgenTypescript,
16342
16401
  reactComponentMeta,
@@ -16345,6 +16404,46 @@ ${storyFile}`
16345
16404
  error: docgenError
16346
16405
  };
16347
16406
  }
16407
+ function buildReactComponentDocgenFromResolved({
16408
+ entry,
16409
+ storyPath,
16410
+ storyFilePath,
16411
+ storyFile,
16412
+ csf,
16413
+ componentName,
16414
+ component,
16415
+ allComponents,
16416
+ subcomponents,
16417
+ docgenEngine,
16418
+ filterStoryIds
16419
+ }) {
16420
+ let storyDocs = buildStoryDocsFromResolved({
16421
+ entry,
16422
+ storyPath,
16423
+ storyFilePath,
16424
+ csf,
16425
+ componentName,
16426
+ component,
16427
+ allComponents,
16428
+ filterStoryIds
16429
+ });
16430
+ return {
16431
+ ...buildComponentDocgenFromResolved({
16432
+ entry,
16433
+ storyPath,
16434
+ storyFilePath,
16435
+ storyFile,
16436
+ csf,
16437
+ componentName,
16438
+ component,
16439
+ subcomponents,
16440
+ docgenEngine
16441
+ }),
16442
+ // Legacy inline manifests keep CSF-ordered arrays; story-docs open-service payloads use Records.
16443
+ stories: Object.values(storyDocs.stories),
16444
+ ...storyDocs.import ? { import: storyDocs.import } : {}
16445
+ };
16446
+ }
16348
16447
 
16349
16448
  // src/componentManifest/componentMetaManagerSingleton.ts
16350
16449
  import { logger as logger8 } from "storybook/internal/node-logger";
@@ -16628,7 +16727,12 @@ function serializeType(typescript, checker, type, isRequired, depth = 0) {
16628
16727
  if (type.isUnion()) {
16629
16728
  let nonUndefinedTypes = type.types.filter(
16630
16729
  (t6) => !(t6.getFlags() & typescript.TypeFlags.Undefined)
16631
- ), literalMembers = nonUndefinedTypes.filter(isLiteralType);
16730
+ ), booleanLiterals = nonUndefinedTypes.filter(
16731
+ (t6) => t6.getFlags() & typescript.TypeFlags.BooleanLiteral
16732
+ );
16733
+ if (booleanLiterals.length === 2 && booleanLiterals.length === nonUndefinedTypes.length)
16734
+ return { name: "boolean" };
16735
+ let literalMembers = nonUndefinedTypes.filter(isLiteralType);
16632
16736
  if (literalMembers.length > 0 && literalMembers.length === nonUndefinedTypes.length)
16633
16737
  return {
16634
16738
  name: "enum",
@@ -16892,7 +16996,7 @@ function serializeComponentDoc(typescript, checker, {
16892
16996
  seen.set(name, prop);
16893
16997
  else if (!isDegraded) {
16894
16998
  let existingType = checker.getTypeOfSymbolAtLocation(existing, contextNode);
16895
- (!!(existingType.getFlags() & typescript.TypeFlags.Never) || !!(existingType.getFlags() & typescript.TypeFlags.Undefined)) && seen.set(name, prop);
16999
+ (existingType.getFlags() & typescript.TypeFlags.Never || existingType.getFlags() & typescript.TypeFlags.Undefined) && seen.set(name, prop);
16896
17000
  }
16897
17001
  }
16898
17002
  allMemberPropSets.push(memberPropNames);
@@ -17382,8 +17486,8 @@ var rootTsConfigNames = ["tsconfig.json", "jsconfig.json"], DEFAULT_INFERRED_OPT
17382
17486
  let chains = getReferencesChains(project.getCommandLine(), rootTsConfig, []);
17383
17487
  chains = chains.reverse();
17384
17488
  for (let chain of chains)
17385
- for (let i = chain.length - 1; i >= 0; i--) {
17386
- let tsconfig = chain[i];
17489
+ for (let i2 = chain.length - 1; i2 >= 0; i2--) {
17490
+ let tsconfig = chain[i2];
17387
17491
  if (!checked.has(tsconfig) && (checked.add(tsconfig), match(tsconfig)))
17388
17492
  return tsconfig;
17389
17493
  }
@@ -17741,7 +17845,8 @@ var manifests = async (existingManifests = {}, options) => {
17741
17845
  import { recast as recast3, types as t5 } from "storybook/internal/babel";
17742
17846
  import { getPrettier } from "storybook/internal/common";
17743
17847
  var enrichCsf = async (input, options) => {
17744
- if ((await options.presets.apply("features")).experimentalCodeExamples)
17848
+ let features = await options.presets.apply("features");
17849
+ if (!(!features.experimentalCodeExamples || features.experimentalDocgenServer))
17745
17850
  return async (csf, csfSource) => {
17746
17851
  let promises = Object.keys(csf._stories).map(async (key) => {
17747
17852
  if (!csfSource._meta?.component)
@@ -17815,6 +17920,25 @@ import { STORY_FILE_TEST_REGEXP, getStoryImportPathFromEntry as getStoryImportPa
17815
17920
 
17816
17921
  // src/docgen/buildDocgen.ts
17817
17922
  import { getStoryImportPathFromEntry as getStoryImportPathFromEntry2 } from "storybook/internal/common";
17923
+ function extractArgTypesFromComponentMeta(componentMeta) {
17924
+ return componentMeta ? extractArgTypes({ __docgenInfo: componentMeta }) ?? void 0 : void 0;
17925
+ }
17926
+ function addArgTypesFromComponentMeta(payload) {
17927
+ let argTypes = extractArgTypesFromComponentMeta(payload.reactComponentMeta), subcomponents = payload.subcomponents ? Object.fromEntries(
17928
+ Object.entries(payload.subcomponents).map(([name, subcomponent]) => [
17929
+ name,
17930
+ {
17931
+ ...subcomponent,
17932
+ argTypes: extractArgTypesFromComponentMeta(subcomponent.reactComponentMeta)
17933
+ }
17934
+ ])
17935
+ ) : void 0;
17936
+ return {
17937
+ ...payload,
17938
+ ...argTypes ? { argTypes } : {},
17939
+ ...subcomponents ? { subcomponents } : {}
17940
+ };
17941
+ }
17818
17942
  async function buildDocgenPayload(input, context) {
17819
17943
  let storyFilePath = getStoryImportPathFromEntry2(input.entry);
17820
17944
  if (!storyFilePath)
@@ -17830,13 +17954,14 @@ async function buildDocgenPayload(input, context) {
17830
17954
  } catch {
17831
17955
  return;
17832
17956
  }
17833
- let { csf, componentName, component, allComponents, subcomponents, storyFile } = resolved, usableSubcomponents = subcomponents.filter(
17957
+ let { csf, componentName, component, subcomponents, storyFile } = resolved, usableSubcomponents = subcomponents.filter(
17834
17958
  (sub) => sub.component !== void 0
17835
17959
  ), storyRefs = [
17836
17960
  ...component ? [{ storyPath, component }] : [],
17837
17961
  ...usableSubcomponents.map((sub) => ({ storyPath, component: sub.component }))
17838
17962
  ];
17839
- return storyRefs.length > 0 && context.componentMetaManager.batchExtract(storyRefs), buildReactComponentDocgenFromResolved({
17963
+ storyRefs.length > 0 && context.componentMetaManager.batchExtract(storyRefs);
17964
+ let componentDocgen = buildComponentDocgenFromResolved({
17840
17965
  entry: input.entry,
17841
17966
  storyPath,
17842
17967
  storyFilePath,
@@ -17844,10 +17969,10 @@ async function buildDocgenPayload(input, context) {
17844
17969
  csf,
17845
17970
  componentName,
17846
17971
  component,
17847
- allComponents,
17848
17972
  subcomponents,
17849
17973
  docgenEngine: "react-component-meta"
17850
17974
  });
17975
+ return addArgTypesFromComponentMeta(componentDocgen);
17851
17976
  }
17852
17977
 
17853
17978
  // src/docgen/preset.ts
@@ -17871,6 +17996,55 @@ var experimental_docgenProvider = async (nextDocgen, options) => {
17871
17996
  };
17872
17997
  };
17873
17998
 
17999
+ // src/docgen/story-docs-preset.ts
18000
+ import { STORY_FILE_TEST_REGEXP as STORY_FILE_TEST_REGEXP2, getStoryImportPathFromEntry as getStoryImportPathFromEntry5 } from "storybook/internal/common";
18001
+
18002
+ // src/docgen/build-story-docs.ts
18003
+ import { getStoryImportPathFromEntry as getStoryImportPathFromEntry4 } from "storybook/internal/common";
18004
+ async function buildStoryDocsPayload(input, context) {
18005
+ let storyFilePath = getStoryImportPathFromEntry4(input.entry);
18006
+ if (!storyFilePath)
18007
+ return;
18008
+ let storyPath = (context.resolvePath ?? ((importPath) => path.join(process.cwd(), importPath)))(storyFilePath), resolved;
18009
+ try {
18010
+ resolved = await resolveStoryFileComponents({
18011
+ storyPath,
18012
+ title: input.entry.title,
18013
+ typescriptOptions: context.typescriptOptions,
18014
+ docgenEngine: "react-component-meta"
18015
+ });
18016
+ } catch {
18017
+ return;
18018
+ }
18019
+ let { csf, componentName, component, allComponents } = resolved;
18020
+ return buildStoryDocsFromResolved({
18021
+ entry: input.entry,
18022
+ storyPath,
18023
+ storyFilePath,
18024
+ csf,
18025
+ componentName,
18026
+ component,
18027
+ allComponents
18028
+ });
18029
+ }
18030
+
18031
+ // src/docgen/story-docs-preset.ts
18032
+ var experimental_storyDocsProvider = async (nextStoryDocs, options) => {
18033
+ let typescriptOptionsPromise = options.presets?.apply(
18034
+ "typescript",
18035
+ {}
18036
+ ) ?? Promise.resolve({});
18037
+ return async (input) => {
18038
+ let storyImportPath = getStoryImportPathFromEntry5(input.entry);
18039
+ if (!storyImportPath || !STORY_FILE_TEST_REGEXP2.test(storyImportPath))
18040
+ return nextStoryDocs(input);
18041
+ let ours = await buildStoryDocsPayload(input, {
18042
+ typescriptOptions: await typescriptOptionsPromise
18043
+ });
18044
+ return ours ? { ...await nextStoryDocs(input), ...ours } : nextStoryDocs(input);
18045
+ };
18046
+ };
18047
+
17874
18048
  // src/preset.ts
17875
18049
  var addons = [
17876
18050
  import.meta.resolve("@storybook/react-dom-shim/preset")
@@ -17927,6 +18101,7 @@ export {
17927
18101
  experimental_docgenProvider,
17928
18102
  enrichCsf as experimental_enrichCsf,
17929
18103
  manifests as experimental_manifests,
18104
+ experimental_storyDocsProvider,
17930
18105
  internal_getArgTypesData,
17931
18106
  optimizeViteDeps,
17932
18107
  previewAnnotations,