@putout/bundle 2.1.3 → 3.0.0

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/bundle/putout.js CHANGED
@@ -71157,23 +71157,23 @@ var lib$m = {};
71157
71157
  Object.defineProperty(lib$m, "__esModule", {
71158
71158
  value: true
71159
71159
  });
71160
- lib$m.readCodePoint = readCodePoint$2;
71161
- lib$m.readInt = readInt$2;
71162
- lib$m.readStringContents = readStringContents$2;
71163
- var _isDigit$2 = function isDigit(code) {
71160
+ lib$m.readCodePoint = readCodePoint$4;
71161
+ lib$m.readInt = readInt$4;
71162
+ lib$m.readStringContents = readStringContents$4;
71163
+ var _isDigit$4 = function isDigit(code) {
71164
71164
  return code >= 48 && code <= 57;
71165
71165
  };
71166
- const forbiddenNumericSeparatorSiblings$2 = {
71166
+ const forbiddenNumericSeparatorSiblings$4 = {
71167
71167
  decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]),
71168
71168
  hex: new Set([46, 88, 95, 120])
71169
71169
  };
71170
- const isAllowedNumericSeparatorSibling$2 = {
71170
+ const isAllowedNumericSeparatorSibling$4 = {
71171
71171
  bin: ch => ch === 48 || ch === 49,
71172
71172
  oct: ch => ch >= 48 && ch <= 55,
71173
71173
  dec: ch => ch >= 48 && ch <= 57,
71174
71174
  hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
71175
71175
  };
71176
- function readStringContents$2(type, input, pos, lineStart, curLine, errors) {
71176
+ function readStringContents$4(type, input, pos, lineStart, curLine, errors) {
71177
71177
  const initialPos = pos;
71178
71178
  const initialLineStart = lineStart;
71179
71179
  const initialCurLine = curLine;
@@ -71190,13 +71190,13 @@ function readStringContents$2(type, input, pos, lineStart, curLine, errors) {
71190
71190
  break;
71191
71191
  }
71192
71192
  const ch = input.charCodeAt(pos);
71193
- if (isStringEnd$2(type, ch, input, pos)) {
71193
+ if (isStringEnd$4(type, ch, input, pos)) {
71194
71194
  out += input.slice(chunkStart, pos);
71195
71195
  break;
71196
71196
  }
71197
71197
  if (ch === 92) {
71198
71198
  out += input.slice(chunkStart, pos);
71199
- const res = readEscapedChar$2(input, pos, lineStart, curLine, type === "template", errors);
71199
+ const res = readEscapedChar$4(input, pos, lineStart, curLine, type === "template", errors);
71200
71200
  if (res.ch === null && !firstInvalidLoc) {
71201
71201
  firstInvalidLoc = {
71202
71202
  pos,
@@ -71241,13 +71241,13 @@ function readStringContents$2(type, input, pos, lineStart, curLine, errors) {
71241
71241
  containsInvalid: !!firstInvalidLoc
71242
71242
  };
71243
71243
  }
71244
- function isStringEnd$2(type, ch, input, pos) {
71244
+ function isStringEnd$4(type, ch, input, pos) {
71245
71245
  if (type === "template") {
71246
71246
  return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123;
71247
71247
  }
71248
71248
  return ch === (type === "double" ? 34 : 39);
71249
71249
  }
71250
- function readEscapedChar$2(input, pos, lineStart, curLine, inTemplate, errors) {
71250
+ function readEscapedChar$4(input, pos, lineStart, curLine, inTemplate, errors) {
71251
71251
  const throwOnInvalid = !inTemplate;
71252
71252
  pos++;
71253
71253
  const res = ch => ({
@@ -71268,7 +71268,7 @@ function readEscapedChar$2(input, pos, lineStart, curLine, inTemplate, errors) {
71268
71268
  ({
71269
71269
  code,
71270
71270
  pos
71271
- } = readHexChar$2(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
71271
+ } = readHexChar$4(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
71272
71272
  return res(code === null ? null : String.fromCharCode(code));
71273
71273
  }
71274
71274
  case 117:
@@ -71277,7 +71277,7 @@ function readEscapedChar$2(input, pos, lineStart, curLine, inTemplate, errors) {
71277
71277
  ({
71278
71278
  code,
71279
71279
  pos
71280
- } = readCodePoint$2(input, pos, lineStart, curLine, throwOnInvalid, errors));
71280
+ } = readCodePoint$4(input, pos, lineStart, curLine, throwOnInvalid, errors));
71281
71281
  return res(code === null ? null : String.fromCodePoint(code));
71282
71282
  }
71283
71283
  case 116:
@@ -71329,13 +71329,13 @@ function readEscapedChar$2(input, pos, lineStart, curLine, inTemplate, errors) {
71329
71329
  return res(String.fromCharCode(ch));
71330
71330
  }
71331
71331
  }
71332
- function readHexChar$2(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
71332
+ function readHexChar$4(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
71333
71333
  const initialPos = pos;
71334
71334
  let n;
71335
71335
  ({
71336
71336
  n,
71337
71337
  pos
71338
- } = readInt$2(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
71338
+ } = readInt$4(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
71339
71339
  if (n === null) {
71340
71340
  if (throwOnInvalid) {
71341
71341
  errors.invalidEscapeSequence(initialPos, lineStart, curLine);
@@ -71348,10 +71348,10 @@ function readHexChar$2(input, pos, lineStart, curLine, len, forceLen, throwOnInv
71348
71348
  pos
71349
71349
  };
71350
71350
  }
71351
- function readInt$2(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
71351
+ function readInt$4(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
71352
71352
  const start = pos;
71353
- const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings$2.hex : forbiddenNumericSeparatorSiblings$2.decBinOct;
71354
- const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling$2.hex : radix === 10 ? isAllowedNumericSeparatorSibling$2.dec : radix === 8 ? isAllowedNumericSeparatorSibling$2.oct : isAllowedNumericSeparatorSibling$2.bin;
71353
+ const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings$4.hex : forbiddenNumericSeparatorSiblings$4.decBinOct;
71354
+ const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling$4.hex : radix === 10 ? isAllowedNumericSeparatorSibling$4.dec : radix === 8 ? isAllowedNumericSeparatorSibling$4.oct : isAllowedNumericSeparatorSibling$4.bin;
71355
71355
  let invalid = false;
71356
71356
  let total = 0;
71357
71357
  for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
@@ -71380,7 +71380,7 @@ function readInt$2(input, pos, lineStart, curLine, radix, len, forceLen, allowNu
71380
71380
  val = code - 97 + 10;
71381
71381
  } else if (code >= 65) {
71382
71382
  val = code - 65 + 10;
71383
- } else if (_isDigit$2(code)) {
71383
+ } else if (_isDigit$4(code)) {
71384
71384
  val = code - 48;
71385
71385
  } else {
71386
71386
  val = Infinity;
@@ -71414,7 +71414,7 @@ function readInt$2(input, pos, lineStart, curLine, radix, len, forceLen, allowNu
71414
71414
  pos
71415
71415
  };
71416
71416
  }
71417
- function readCodePoint$2(input, pos, lineStart, curLine, throwOnInvalid, errors) {
71417
+ function readCodePoint$4(input, pos, lineStart, curLine, throwOnInvalid, errors) {
71418
71418
  const ch = input.charCodeAt(pos);
71419
71419
  let code;
71420
71420
  if (ch === 123) {
@@ -71422,7 +71422,7 @@ function readCodePoint$2(input, pos, lineStart, curLine, throwOnInvalid, errors)
71422
71422
  ({
71423
71423
  code,
71424
71424
  pos
71425
- } = readHexChar$2(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
71425
+ } = readHexChar$4(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
71426
71426
  ++pos;
71427
71427
  if (code !== null && code > 0x10ffff) {
71428
71428
  if (throwOnInvalid) {
@@ -71438,7 +71438,7 @@ function readCodePoint$2(input, pos, lineStart, curLine, throwOnInvalid, errors)
71438
71438
  ({
71439
71439
  code,
71440
71440
  pos
71441
- } = readHexChar$2(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
71441
+ } = readHexChar$4(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
71442
71442
  }
71443
71443
  return {
71444
71444
  code,
@@ -74957,7 +74957,7 @@ function requireValidateNode$4 () {
74957
74957
  });
74958
74958
  validateNode$4.default = validateNode;
74959
74959
  var _validate = requireValidate$4();
74960
- var _ = requireLib$8();
74960
+ var _ = requireLib$6();
74961
74961
  function validateNode(node) {
74962
74962
  const keys = _.BUILDER_KEYS[node.type];
74963
74963
  for (const key of keys) {
@@ -76973,7 +76973,7 @@ function requireCleanJSXElementLiteralChild$4 () {
76973
76973
  });
76974
76974
  cleanJSXElementLiteralChild$4.default = cleanJSXElementLiteralChild;
76975
76975
  var _generated = requireGenerated$4();
76976
- var _ = requireLib$8();
76976
+ var _ = requireLib$6();
76977
76977
  function cleanJSXElementLiteralChild(child, args) {
76978
76978
  const lines = child.value.split(/\r\n|\n|\r/);
76979
76979
  let lastNonEmptyLine = 0;
@@ -81059,7 +81059,7 @@ function requirePrependToMemberExpression$4 () {
81059
81059
  });
81060
81060
  prependToMemberExpression$4.default = prependToMemberExpression;
81061
81061
  var _generated = requireGenerated$4();
81062
- var _ = requireLib$8();
81062
+ var _ = requireLib$6();
81063
81063
  function prependToMemberExpression(member, prepend) {
81064
81064
  if ((0, _.isSuper)(member.object)) {
81065
81065
  throw new Error("Cannot prepend node to super property access (`super.foo`).");
@@ -81411,11 +81411,11 @@ function isVar$9(node) {
81411
81411
  }) && !node[_constants$k.BLOCK_SCOPED_SYMBOL];
81412
81412
  }
81413
81413
 
81414
- var hasRequiredLib$8;
81414
+ var hasRequiredLib$6;
81415
81415
 
81416
- function requireLib$8 () {
81417
- if (hasRequiredLib$8) return lib$o;
81418
- hasRequiredLib$8 = 1;
81416
+ function requireLib$6 () {
81417
+ if (hasRequiredLib$6) return lib$o;
81418
+ hasRequiredLib$6 = 1;
81419
81419
  (function (exports) {
81420
81420
 
81421
81421
  Object.defineProperty(exports, "__esModule", {
@@ -81998,7 +81998,7 @@ visitors.isExplodedVisitor = isExplodedVisitor;
81998
81998
  visitors.merge = merge$4;
81999
81999
  visitors.verify = verify;
82000
82000
  var virtualTypes = virtualTypes$1;
82001
- var _t$p = requireLib$8();
82001
+ var _t$p = requireLib$6();
82002
82002
  const {
82003
82003
  DEPRECATED_KEYS,
82004
82004
  DEPRECATED_ALIASES: DEPRECATED_ALIASES$4,
@@ -82265,7 +82265,7 @@ Object.defineProperty(lib$l, "__esModule", {
82265
82265
  value: true
82266
82266
  });
82267
82267
  lib$l.default = splitExportDeclaration;
82268
- var _t$o = requireLib$8();
82268
+ var _t$o = requireLib$6();
82269
82269
  const {
82270
82270
  cloneNode: cloneNode$b,
82271
82271
  exportNamedDeclaration,
@@ -82383,7 +82383,7 @@ function requireRenamer () {
82383
82383
  });
82384
82384
  renamer.default = void 0;
82385
82385
  var _helperSplitExportDeclaration = lib$l;
82386
- var t = requireLib$8();
82386
+ var t = requireLib$6();
82387
82387
  var _helperEnvironmentVisitor = lib$k;
82388
82388
  var _traverseNode = requireTraverseNode();
82389
82389
  var _visitors = visitors;
@@ -84183,10 +84183,10 @@ function requireScope () {
84183
84183
  });
84184
84184
  scope.default = void 0;
84185
84185
  var _renamer = requireRenamer();
84186
- var _index = requireLib$4();
84186
+ var _index = requireLib$2();
84187
84187
  var _binding = binding;
84188
84188
  var _globals = globals;
84189
- var _t = requireLib$8();
84189
+ var _t = requireLib$6();
84190
84190
  var t = _t;
84191
84191
  var _cache = cache;
84192
84192
  var _visitors = visitors;
@@ -86791,7 +86791,7 @@ Object.defineProperty(whitespace$1, "__esModule", {
86791
86791
  value: true
86792
86792
  });
86793
86793
  whitespace$1.nodes = void 0;
86794
- var _t$n = requireLib$8();
86794
+ var _t$n = requireLib$6();
86795
86795
  const {
86796
86796
  FLIPPED_ALIAS_KEYS: FLIPPED_ALIAS_KEYS$1,
86797
86797
  isArrayExpression: isArrayExpression$6,
@@ -86959,7 +86959,7 @@ parentheses.UnaryLike = UnaryLike;
86959
86959
  parentheses.IntersectionTypeAnnotation = parentheses.UnionTypeAnnotation = UnionTypeAnnotation;
86960
86960
  parentheses.UpdateExpression = UpdateExpression$1;
86961
86961
  parentheses.AwaitExpression = parentheses.YieldExpression = YieldExpression$1;
86962
- var _t$m = requireLib$8();
86962
+ var _t$m = requireLib$6();
86963
86963
  const {
86964
86964
  isArrayTypeAnnotation: isArrayTypeAnnotation$5,
86965
86965
  isArrowFunctionExpression: isArrowFunctionExpression$6,
@@ -87243,7 +87243,7 @@ node.needsWhitespaceAfter = needsWhitespaceAfter;
87243
87243
  node.needsWhitespaceBefore = needsWhitespaceBefore;
87244
87244
  var whitespace = whitespace$1;
87245
87245
  var parens$2 = parentheses;
87246
- var _t$l = requireLib$8();
87246
+ var _t$l = requireLib$6();
87247
87247
  const {
87248
87248
  FLIPPED_ALIAS_KEYS,
87249
87249
  isCallExpression: isCallExpression$8,
@@ -87372,7 +87372,7 @@ expressions$2.UpdateExpression = UpdateExpression;
87372
87372
  expressions$2.V8IntrinsicIdentifier = V8IntrinsicIdentifier;
87373
87373
  expressions$2.YieldExpression = YieldExpression;
87374
87374
  expressions$2._shouldPrintDecoratorsBeforeExport = _shouldPrintDecoratorsBeforeExport;
87375
- var _t$k = requireLib$8();
87375
+ var _t$k = requireLib$6();
87376
87376
  var n$1 = node;
87377
87377
  const {
87378
87378
  isCallExpression: isCallExpression$7,
@@ -87671,7 +87671,7 @@ statements$4.VariableDeclaration = VariableDeclaration$1;
87671
87671
  statements$4.VariableDeclarator = VariableDeclarator;
87672
87672
  statements$4.WhileStatement = WhileStatement$1;
87673
87673
  statements$4.WithStatement = WithStatement;
87674
- var _t$j = requireLib$8();
87674
+ var _t$j = requireLib$6();
87675
87675
  const {
87676
87676
  isFor: isFor$4,
87677
87677
  isForStatement: isForStatement$5,
@@ -87938,7 +87938,7 @@ classes.ClassPrivateProperty = ClassPrivateProperty$1;
87938
87938
  classes.ClassProperty = ClassProperty$2;
87939
87939
  classes.StaticBlock = StaticBlock$1;
87940
87940
  classes._classMethodHead = _classMethodHead;
87941
- var _t$i = requireLib$8();
87941
+ var _t$i = requireLib$6();
87942
87942
  const {
87943
87943
  isExportDefaultDeclaration: isExportDefaultDeclaration$4,
87944
87944
  isExportNamedDeclaration: isExportNamedDeclaration$4
@@ -88113,7 +88113,7 @@ methods._param = _param;
88113
88113
  methods._parameters = _parameters;
88114
88114
  methods._params = _params;
88115
88115
  methods._predicate = _predicate;
88116
- var _t$h = requireLib$8();
88116
+ var _t$h = requireLib$6();
88117
88117
  const {
88118
88118
  isIdentifier: isIdentifier$k
88119
88119
  } = _t$h;
@@ -88289,7 +88289,7 @@ modules.ImportDefaultSpecifier = ImportDefaultSpecifier;
88289
88289
  modules.ImportNamespaceSpecifier = ImportNamespaceSpecifier;
88290
88290
  modules.ImportSpecifier = ImportSpecifier;
88291
88291
  modules._printAttributes = _printAttributes;
88292
- var _t$g = requireLib$8();
88292
+ var _t$g = requireLib$6();
88293
88293
  const {
88294
88294
  isClassDeclaration: isClassDeclaration$4,
88295
88295
  isExportDefaultSpecifier: isExportDefaultSpecifier$4,
@@ -88878,7 +88878,7 @@ types$l.SpreadElement = types$l.RestElement = RestElement$1;
88878
88878
  types$l.StringLiteral = StringLiteral$1;
88879
88879
  types$l.TopicReference = TopicReference;
88880
88880
  types$l.TupleExpression = TupleExpression$1;
88881
- var _t$f = requireLib$8();
88881
+ var _t$f = requireLib$6();
88882
88882
  var _jsesc = jsesc_1;
88883
88883
  const {
88884
88884
  isAssignmentPattern: isAssignmentPattern$6,
@@ -89153,7 +89153,7 @@ var flow$5 = {};
89153
89153
  exports.VoidTypeAnnotation = VoidTypeAnnotation;
89154
89154
  exports._interfaceish = _interfaceish;
89155
89155
  exports._variance = _variance;
89156
- var _t = requireLib$8();
89156
+ var _t = requireLib$6();
89157
89157
  var _modules = modules;
89158
89158
  var _types2 = types$l;
89159
89159
  const {
@@ -90790,7 +90790,7 @@ Object.defineProperty(printer, "__esModule", {
90790
90790
  printer.default = void 0;
90791
90791
  var _buffer = buffer;
90792
90792
  var n = node;
90793
- var _t$e = requireLib$8();
90793
+ var _t$e = requireLib$6();
90794
90794
  var generatorFunctions = generators;
90795
90795
  const {
90796
90796
  isFunction: isFunction$8,
@@ -91538,7 +91538,7 @@ ancestry.getStatementParent = getStatementParent;
91538
91538
  ancestry.inType = inType;
91539
91539
  ancestry.isAncestor = isAncestor;
91540
91540
  ancestry.isDescendant = isDescendant;
91541
- var _t$d = requireLib$8();
91541
+ var _t$d = requireLib$6();
91542
91542
  const {
91543
91543
  VISITOR_KEYS: VISITOR_KEYS$1
91544
91544
  } = _t$d;
@@ -91675,7 +91675,7 @@ Object.defineProperty(util, "__esModule", {
91675
91675
  value: true
91676
91676
  });
91677
91677
  util.createUnionType = createUnionType;
91678
- var _t$c = requireLib$8();
91678
+ var _t$c = requireLib$6();
91679
91679
  const {
91680
91680
  createFlowUnionType: createFlowUnionType$4,
91681
91681
  createTSUnionType: createTSUnionType$4,
@@ -91702,7 +91702,7 @@ Object.defineProperty(infererReference, "__esModule", {
91702
91702
  value: true
91703
91703
  });
91704
91704
  infererReference.default = _default$f;
91705
- var _t$b = requireLib$8();
91705
+ var _t$b = requireLib$6();
91706
91706
  var _util = util;
91707
91707
  const {
91708
91708
  BOOLEAN_NUMBER_BINARY_OPERATORS: BOOLEAN_NUMBER_BINARY_OPERATORS$4,
@@ -91882,7 +91882,7 @@ function getConditionalAnnotation(binding, path, name) {
91882
91882
  exports.UnaryExpression = UnaryExpression;
91883
91883
  exports.UpdateExpression = UpdateExpression;
91884
91884
  exports.VariableDeclarator = VariableDeclarator;
91885
- var _t = requireLib$8();
91885
+ var _t = requireLib$6();
91886
91886
  var _infererReference = infererReference;
91887
91887
  var _util = util;
91888
91888
  const {
@@ -92067,7 +92067,7 @@ inference.getTypeAnnotation = getTypeAnnotation;
92067
92067
  inference.isBaseType = isBaseType;
92068
92068
  inference.isGenericType = isGenericType;
92069
92069
  var inferers = inferers$1;
92070
- var _t$a = requireLib$8();
92070
+ var _t$a = requireLib$6();
92071
92071
  const {
92072
92072
  anyTypeAnnotation,
92073
92073
  isAnyTypeAnnotation: isAnyTypeAnnotation$4,
@@ -94544,20 +94544,20 @@ let State$2 = class State {
94544
94544
  return state;
94545
94545
  }
94546
94546
  };
94547
- var _isDigit$1 = function isDigit(code) {
94547
+ var _isDigit$3 = function isDigit(code) {
94548
94548
  return code >= 48 && code <= 57;
94549
94549
  };
94550
- const forbiddenNumericSeparatorSiblings$1 = {
94550
+ const forbiddenNumericSeparatorSiblings$3 = {
94551
94551
  decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]),
94552
94552
  hex: new Set([46, 88, 95, 120])
94553
94553
  };
94554
- const isAllowedNumericSeparatorSibling$1 = {
94554
+ const isAllowedNumericSeparatorSibling$3 = {
94555
94555
  bin: ch => ch === 48 || ch === 49,
94556
94556
  oct: ch => ch >= 48 && ch <= 55,
94557
94557
  dec: ch => ch >= 48 && ch <= 57,
94558
94558
  hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
94559
94559
  };
94560
- function readStringContents$1(type, input, pos, lineStart, curLine, errors) {
94560
+ function readStringContents$3(type, input, pos, lineStart, curLine, errors) {
94561
94561
  const initialPos = pos;
94562
94562
  const initialLineStart = lineStart;
94563
94563
  const initialCurLine = curLine;
@@ -94574,13 +94574,13 @@ function readStringContents$1(type, input, pos, lineStart, curLine, errors) {
94574
94574
  break;
94575
94575
  }
94576
94576
  const ch = input.charCodeAt(pos);
94577
- if (isStringEnd$1(type, ch, input, pos)) {
94577
+ if (isStringEnd$3(type, ch, input, pos)) {
94578
94578
  out += input.slice(chunkStart, pos);
94579
94579
  break;
94580
94580
  }
94581
94581
  if (ch === 92) {
94582
94582
  out += input.slice(chunkStart, pos);
94583
- const res = readEscapedChar$1(input, pos, lineStart, curLine, type === "template", errors);
94583
+ const res = readEscapedChar$3(input, pos, lineStart, curLine, type === "template", errors);
94584
94584
  if (res.ch === null && !firstInvalidLoc) {
94585
94585
  firstInvalidLoc = {
94586
94586
  pos,
@@ -94625,13 +94625,13 @@ function readStringContents$1(type, input, pos, lineStart, curLine, errors) {
94625
94625
  containsInvalid: !!firstInvalidLoc
94626
94626
  };
94627
94627
  }
94628
- function isStringEnd$1(type, ch, input, pos) {
94628
+ function isStringEnd$3(type, ch, input, pos) {
94629
94629
  if (type === "template") {
94630
94630
  return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123;
94631
94631
  }
94632
94632
  return ch === (type === "double" ? 34 : 39);
94633
94633
  }
94634
- function readEscapedChar$1(input, pos, lineStart, curLine, inTemplate, errors) {
94634
+ function readEscapedChar$3(input, pos, lineStart, curLine, inTemplate, errors) {
94635
94635
  const throwOnInvalid = !inTemplate;
94636
94636
  pos++;
94637
94637
  const res = ch => ({
@@ -94652,7 +94652,7 @@ function readEscapedChar$1(input, pos, lineStart, curLine, inTemplate, errors) {
94652
94652
  ({
94653
94653
  code,
94654
94654
  pos
94655
- } = readHexChar$1(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
94655
+ } = readHexChar$3(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
94656
94656
  return res(code === null ? null : String.fromCharCode(code));
94657
94657
  }
94658
94658
  case 117:
@@ -94661,7 +94661,7 @@ function readEscapedChar$1(input, pos, lineStart, curLine, inTemplate, errors) {
94661
94661
  ({
94662
94662
  code,
94663
94663
  pos
94664
- } = readCodePoint$1(input, pos, lineStart, curLine, throwOnInvalid, errors));
94664
+ } = readCodePoint$3(input, pos, lineStart, curLine, throwOnInvalid, errors));
94665
94665
  return res(code === null ? null : String.fromCodePoint(code));
94666
94666
  }
94667
94667
  case 116:
@@ -94713,13 +94713,13 @@ function readEscapedChar$1(input, pos, lineStart, curLine, inTemplate, errors) {
94713
94713
  return res(String.fromCharCode(ch));
94714
94714
  }
94715
94715
  }
94716
- function readHexChar$1(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
94716
+ function readHexChar$3(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
94717
94717
  const initialPos = pos;
94718
94718
  let n;
94719
94719
  ({
94720
94720
  n,
94721
94721
  pos
94722
- } = readInt$1(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
94722
+ } = readInt$3(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
94723
94723
  if (n === null) {
94724
94724
  if (throwOnInvalid) {
94725
94725
  errors.invalidEscapeSequence(initialPos, lineStart, curLine);
@@ -94732,10 +94732,10 @@ function readHexChar$1(input, pos, lineStart, curLine, len, forceLen, throwOnInv
94732
94732
  pos
94733
94733
  };
94734
94734
  }
94735
- function readInt$1(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
94735
+ function readInt$3(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
94736
94736
  const start = pos;
94737
- const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings$1.hex : forbiddenNumericSeparatorSiblings$1.decBinOct;
94738
- const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling$1.hex : radix === 10 ? isAllowedNumericSeparatorSibling$1.dec : radix === 8 ? isAllowedNumericSeparatorSibling$1.oct : isAllowedNumericSeparatorSibling$1.bin;
94737
+ const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings$3.hex : forbiddenNumericSeparatorSiblings$3.decBinOct;
94738
+ const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling$3.hex : radix === 10 ? isAllowedNumericSeparatorSibling$3.dec : radix === 8 ? isAllowedNumericSeparatorSibling$3.oct : isAllowedNumericSeparatorSibling$3.bin;
94739
94739
  let invalid = false;
94740
94740
  let total = 0;
94741
94741
  for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
@@ -94764,7 +94764,7 @@ function readInt$1(input, pos, lineStart, curLine, radix, len, forceLen, allowNu
94764
94764
  val = code - 97 + 10;
94765
94765
  } else if (code >= 65) {
94766
94766
  val = code - 65 + 10;
94767
- } else if (_isDigit$1(code)) {
94767
+ } else if (_isDigit$3(code)) {
94768
94768
  val = code - 48;
94769
94769
  } else {
94770
94770
  val = Infinity;
@@ -94798,7 +94798,7 @@ function readInt$1(input, pos, lineStart, curLine, radix, len, forceLen, allowNu
94798
94798
  pos
94799
94799
  };
94800
94800
  }
94801
- function readCodePoint$1(input, pos, lineStart, curLine, throwOnInvalid, errors) {
94801
+ function readCodePoint$3(input, pos, lineStart, curLine, throwOnInvalid, errors) {
94802
94802
  const ch = input.charCodeAt(pos);
94803
94803
  let code;
94804
94804
  if (ch === 123) {
@@ -94806,7 +94806,7 @@ function readCodePoint$1(input, pos, lineStart, curLine, throwOnInvalid, errors)
94806
94806
  ({
94807
94807
  code,
94808
94808
  pos
94809
- } = readHexChar$1(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
94809
+ } = readHexChar$3(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
94810
94810
  ++pos;
94811
94811
  if (code !== null && code > 0x10ffff) {
94812
94812
  if (throwOnInvalid) {
@@ -94822,7 +94822,7 @@ function readCodePoint$1(input, pos, lineStart, curLine, throwOnInvalid, errors)
94822
94822
  ({
94823
94823
  code,
94824
94824
  pos
94825
- } = readHexChar$1(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
94825
+ } = readHexChar$3(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
94826
94826
  }
94827
94827
  return {
94828
94828
  code,
@@ -95619,7 +95619,7 @@ class Tokenizer extends CommentsParser {
95619
95619
  const {
95620
95620
  n,
95621
95621
  pos
95622
- } = readInt$1(this.input, this.state.pos, this.state.lineStart, this.state.curLine, radix, len, forceLen, allowNumSeparator, this.errorHandlers_readInt, false);
95622
+ } = readInt$3(this.input, this.state.pos, this.state.lineStart, this.state.curLine, radix, len, forceLen, allowNumSeparator, this.errorHandlers_readInt, false);
95623
95623
  this.state.pos = pos;
95624
95624
  return n;
95625
95625
  }
@@ -95745,7 +95745,7 @@ class Tokenizer extends CommentsParser {
95745
95745
  const {
95746
95746
  code,
95747
95747
  pos
95748
- } = readCodePoint$1(this.input, this.state.pos, this.state.lineStart, this.state.curLine, throwOnInvalid, this.errorHandlers_readCodePoint);
95748
+ } = readCodePoint$3(this.input, this.state.pos, this.state.lineStart, this.state.curLine, throwOnInvalid, this.errorHandlers_readCodePoint);
95749
95749
  this.state.pos = pos;
95750
95750
  return code;
95751
95751
  }
@@ -95755,7 +95755,7 @@ class Tokenizer extends CommentsParser {
95755
95755
  pos,
95756
95756
  curLine,
95757
95757
  lineStart
95758
- } = readStringContents$1(quote === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string);
95758
+ } = readStringContents$3(quote === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string);
95759
95759
  this.state.pos = pos + 1;
95760
95760
  this.state.lineStart = lineStart;
95761
95761
  this.state.curLine = curLine;
@@ -95776,7 +95776,7 @@ class Tokenizer extends CommentsParser {
95776
95776
  pos,
95777
95777
  curLine,
95778
95778
  lineStart
95779
- } = readStringContents$1("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template);
95779
+ } = readStringContents$3("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template);
95780
95780
  this.state.pos = pos + 1;
95781
95781
  this.state.lineStart = lineStart;
95782
95782
  this.state.curLine = curLine;
@@ -110241,409 +110241,419 @@ function isValidIdentifier$6(name, reserved = true) {
110241
110241
 
110242
110242
  var lib$b = {};
110243
110243
 
110244
- Object.defineProperty(lib$b, "__esModule", {
110245
- value: true
110246
- });
110247
- lib$b.readCodePoint = readCodePoint;
110248
- lib$b.readInt = readInt;
110249
- lib$b.readStringContents = readStringContents;
110250
- var _isDigit = function isDigit(code) {
110251
- return code >= 48 && code <= 57;
110252
- };
110253
- const forbiddenNumericSeparatorSiblings = {
110254
- decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]),
110255
- hex: new Set([46, 88, 95, 120])
110256
- };
110257
- const isAllowedNumericSeparatorSibling = {
110258
- bin: ch => ch === 48 || ch === 49,
110259
- oct: ch => ch >= 48 && ch <= 55,
110260
- dec: ch => ch >= 48 && ch <= 57,
110261
- hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
110262
- };
110263
- function readStringContents(type, input, pos, lineStart, curLine, errors) {
110264
- const initialPos = pos;
110265
- const initialLineStart = lineStart;
110266
- const initialCurLine = curLine;
110267
- let out = "";
110268
- let firstInvalidLoc = null;
110269
- let chunkStart = pos;
110270
- const {
110271
- length
110272
- } = input;
110273
- for (;;) {
110274
- if (pos >= length) {
110275
- errors.unterminated(initialPos, initialLineStart, initialCurLine);
110276
- out += input.slice(chunkStart, pos);
110277
- break;
110278
- }
110279
- const ch = input.charCodeAt(pos);
110280
- if (isStringEnd(type, ch, input, pos)) {
110281
- out += input.slice(chunkStart, pos);
110282
- break;
110283
- }
110284
- if (ch === 92) {
110285
- out += input.slice(chunkStart, pos);
110286
- const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors);
110287
- if (res.ch === null && !firstInvalidLoc) {
110288
- firstInvalidLoc = {
110289
- pos,
110290
- lineStart,
110291
- curLine
110292
- };
110293
- } else {
110294
- out += res.ch;
110295
- }
110296
- ({
110297
- pos,
110298
- lineStart,
110299
- curLine
110300
- } = res);
110301
- chunkStart = pos;
110302
- } else if (ch === 8232 || ch === 8233) {
110303
- ++pos;
110304
- ++curLine;
110305
- lineStart = pos;
110306
- } else if (ch === 10 || ch === 13) {
110307
- if (type === "template") {
110308
- out += input.slice(chunkStart, pos) + "\n";
110309
- ++pos;
110310
- if (ch === 13 && input.charCodeAt(pos) === 10) {
110311
- ++pos;
110312
- }
110313
- ++curLine;
110314
- chunkStart = lineStart = pos;
110315
- } else {
110316
- errors.unterminated(initialPos, initialLineStart, initialCurLine);
110317
- }
110318
- } else {
110319
- ++pos;
110320
- }
110321
- }
110322
- return {
110323
- pos,
110324
- str: out,
110325
- firstInvalidLoc,
110326
- lineStart,
110327
- curLine,
110328
- containsInvalid: !!firstInvalidLoc
110329
- };
110330
- }
110331
- function isStringEnd(type, ch, input, pos) {
110332
- if (type === "template") {
110333
- return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123;
110334
- }
110335
- return ch === (type === "double" ? 34 : 39);
110336
- }
110337
- function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) {
110338
- const throwOnInvalid = !inTemplate;
110339
- pos++;
110340
- const res = ch => ({
110341
- pos,
110342
- ch,
110343
- lineStart,
110344
- curLine
110345
- });
110346
- const ch = input.charCodeAt(pos++);
110347
- switch (ch) {
110348
- case 110:
110349
- return res("\n");
110350
- case 114:
110351
- return res("\r");
110352
- case 120:
110353
- {
110354
- let code;
110355
- ({
110356
- code,
110357
- pos
110358
- } = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
110359
- return res(code === null ? null : String.fromCharCode(code));
110360
- }
110361
- case 117:
110362
- {
110363
- let code;
110364
- ({
110365
- code,
110366
- pos
110367
- } = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors));
110368
- return res(code === null ? null : String.fromCodePoint(code));
110369
- }
110370
- case 116:
110371
- return res("\t");
110372
- case 98:
110373
- return res("\b");
110374
- case 118:
110375
- return res("\u000b");
110376
- case 102:
110377
- return res("\f");
110378
- case 13:
110379
- if (input.charCodeAt(pos) === 10) {
110380
- ++pos;
110381
- }
110382
- case 10:
110383
- lineStart = pos;
110384
- ++curLine;
110385
- case 8232:
110386
- case 8233:
110387
- return res("");
110388
- case 56:
110389
- case 57:
110390
- if (inTemplate) {
110391
- return res(null);
110392
- } else {
110393
- errors.strictNumericEscape(pos - 1, lineStart, curLine);
110394
- }
110395
- default:
110396
- if (ch >= 48 && ch <= 55) {
110397
- const startPos = pos - 1;
110398
- const match = input.slice(startPos, pos + 2).match(/^[0-7]+/);
110399
- let octalStr = match[0];
110400
- let octal = parseInt(octalStr, 8);
110401
- if (octal > 255) {
110402
- octalStr = octalStr.slice(0, -1);
110403
- octal = parseInt(octalStr, 8);
110404
- }
110405
- pos += octalStr.length - 1;
110406
- const next = input.charCodeAt(pos);
110407
- if (octalStr !== "0" || next === 56 || next === 57) {
110408
- if (inTemplate) {
110409
- return res(null);
110410
- } else {
110411
- errors.strictNumericEscape(startPos, lineStart, curLine);
110412
- }
110413
- }
110414
- return res(String.fromCharCode(octal));
110415
- }
110416
- return res(String.fromCharCode(ch));
110417
- }
110418
- }
110419
- function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
110420
- const initialPos = pos;
110421
- let n;
110422
- ({
110423
- n,
110424
- pos
110425
- } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
110426
- if (n === null) {
110427
- if (throwOnInvalid) {
110428
- errors.invalidEscapeSequence(initialPos, lineStart, curLine);
110429
- } else {
110430
- pos = initialPos - 1;
110431
- }
110432
- }
110433
- return {
110434
- code: n,
110435
- pos
110436
- };
110437
- }
110438
- function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
110439
- const start = pos;
110440
- const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct;
110441
- const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin;
110442
- let invalid = false;
110443
- let total = 0;
110444
- for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
110445
- const code = input.charCodeAt(pos);
110446
- let val;
110447
- if (code === 95 && allowNumSeparator !== "bail") {
110448
- const prev = input.charCodeAt(pos - 1);
110449
- const next = input.charCodeAt(pos + 1);
110450
- if (!allowNumSeparator) {
110451
- if (bailOnError) return {
110452
- n: null,
110453
- pos
110454
- };
110455
- errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine);
110456
- } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) {
110457
- if (bailOnError) return {
110458
- n: null,
110459
- pos
110460
- };
110461
- errors.unexpectedNumericSeparator(pos, lineStart, curLine);
110462
- }
110463
- ++pos;
110464
- continue;
110465
- }
110466
- if (code >= 97) {
110467
- val = code - 97 + 10;
110468
- } else if (code >= 65) {
110469
- val = code - 65 + 10;
110470
- } else if (_isDigit(code)) {
110471
- val = code - 48;
110472
- } else {
110473
- val = Infinity;
110474
- }
110475
- if (val >= radix) {
110476
- if (val <= 9 && bailOnError) {
110477
- return {
110478
- n: null,
110479
- pos
110480
- };
110481
- } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) {
110482
- val = 0;
110483
- } else if (forceLen) {
110484
- val = 0;
110485
- invalid = true;
110486
- } else {
110487
- break;
110488
- }
110489
- }
110490
- ++pos;
110491
- total = total * radix + val;
110492
- }
110493
- if (pos === start || len != null && pos - start !== len || invalid) {
110494
- return {
110495
- n: null,
110496
- pos
110497
- };
110498
- }
110499
- return {
110500
- n: total,
110501
- pos
110502
- };
110503
- }
110504
- function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
110505
- const ch = input.charCodeAt(pos);
110506
- let code;
110507
- if (ch === 123) {
110508
- ++pos;
110509
- ({
110510
- code,
110511
- pos
110512
- } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
110513
- ++pos;
110514
- if (code !== null && code > 0x10ffff) {
110515
- if (throwOnInvalid) {
110516
- errors.invalidCodePoint(pos, lineStart, curLine);
110517
- } else {
110518
- return {
110519
- code: null,
110520
- pos
110521
- };
110522
- }
110523
- }
110524
- } else {
110525
- ({
110526
- code,
110527
- pos
110528
- } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
110529
- }
110530
- return {
110531
- code,
110532
- pos
110533
- };
110534
- }
110535
-
110536
- var constants$3 = {};
110537
-
110538
- Object.defineProperty(constants$3, "__esModule", {
110539
- value: true
110540
- });
110541
- constants$3.UPDATE_OPERATORS = constants$3.UNARY_OPERATORS = constants$3.STRING_UNARY_OPERATORS = constants$3.STATEMENT_OR_BLOCK_KEYS = constants$3.NUMBER_UNARY_OPERATORS = constants$3.NUMBER_BINARY_OPERATORS = constants$3.NOT_LOCAL_BINDING = constants$3.LOGICAL_OPERATORS = constants$3.INHERIT_KEYS = constants$3.FOR_INIT_KEYS = constants$3.FLATTENABLE_KEYS = constants$3.EQUALITY_BINARY_OPERATORS = constants$3.COMPARISON_BINARY_OPERATORS = constants$3.COMMENT_KEYS = constants$3.BOOLEAN_UNARY_OPERATORS = constants$3.BOOLEAN_NUMBER_BINARY_OPERATORS = constants$3.BOOLEAN_BINARY_OPERATORS = constants$3.BLOCK_SCOPED_SYMBOL = constants$3.BINARY_OPERATORS = constants$3.ASSIGNMENT_OPERATORS = void 0;
110542
- const STATEMENT_OR_BLOCK_KEYS$4 = ["consequent", "body", "alternate"];
110543
- constants$3.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS$4;
110544
- const FLATTENABLE_KEYS$3 = ["body", "expressions"];
110545
- constants$3.FLATTENABLE_KEYS = FLATTENABLE_KEYS$3;
110546
- const FOR_INIT_KEYS$3 = ["left", "init"];
110547
- constants$3.FOR_INIT_KEYS = FOR_INIT_KEYS$3;
110548
- const COMMENT_KEYS$3 = ["leadingComments", "trailingComments", "innerComments"];
110549
- constants$3.COMMENT_KEYS = COMMENT_KEYS$3;
110550
- const LOGICAL_OPERATORS$4 = ["||", "&&", "??"];
110551
- constants$3.LOGICAL_OPERATORS = LOGICAL_OPERATORS$4;
110552
- const UPDATE_OPERATORS$3 = ["++", "--"];
110553
- constants$3.UPDATE_OPERATORS = UPDATE_OPERATORS$3;
110554
- const BOOLEAN_NUMBER_BINARY_OPERATORS$3 = [">", "<", ">=", "<="];
110555
- constants$3.BOOLEAN_NUMBER_BINARY_OPERATORS = BOOLEAN_NUMBER_BINARY_OPERATORS$3;
110556
- const EQUALITY_BINARY_OPERATORS$3 = ["==", "===", "!=", "!=="];
110557
- constants$3.EQUALITY_BINARY_OPERATORS = EQUALITY_BINARY_OPERATORS$3;
110558
- const COMPARISON_BINARY_OPERATORS$3 = [...EQUALITY_BINARY_OPERATORS$3, "in", "instanceof"];
110559
- constants$3.COMPARISON_BINARY_OPERATORS = COMPARISON_BINARY_OPERATORS$3;
110560
- const BOOLEAN_BINARY_OPERATORS$3 = [...COMPARISON_BINARY_OPERATORS$3, ...BOOLEAN_NUMBER_BINARY_OPERATORS$3];
110561
- constants$3.BOOLEAN_BINARY_OPERATORS = BOOLEAN_BINARY_OPERATORS$3;
110562
- const NUMBER_BINARY_OPERATORS$3 = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"];
110563
- constants$3.NUMBER_BINARY_OPERATORS = NUMBER_BINARY_OPERATORS$3;
110564
- const BINARY_OPERATORS$3 = ["+", ...NUMBER_BINARY_OPERATORS$3, ...BOOLEAN_BINARY_OPERATORS$3, "|>"];
110565
- constants$3.BINARY_OPERATORS = BINARY_OPERATORS$3;
110566
- const ASSIGNMENT_OPERATORS$3 = ["=", "+=", ...NUMBER_BINARY_OPERATORS$3.map(op => op + "="), ...LOGICAL_OPERATORS$4.map(op => op + "=")];
110567
- constants$3.ASSIGNMENT_OPERATORS = ASSIGNMENT_OPERATORS$3;
110568
- const BOOLEAN_UNARY_OPERATORS$3 = ["delete", "!"];
110569
- constants$3.BOOLEAN_UNARY_OPERATORS = BOOLEAN_UNARY_OPERATORS$3;
110570
- const NUMBER_UNARY_OPERATORS$3 = ["+", "-", "~"];
110571
- constants$3.NUMBER_UNARY_OPERATORS = NUMBER_UNARY_OPERATORS$3;
110572
- const STRING_UNARY_OPERATORS$3 = ["typeof"];
110573
- constants$3.STRING_UNARY_OPERATORS = STRING_UNARY_OPERATORS$3;
110574
- const UNARY_OPERATORS$3 = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS$3, ...NUMBER_UNARY_OPERATORS$3, ...STRING_UNARY_OPERATORS$3];
110575
- constants$3.UNARY_OPERATORS = UNARY_OPERATORS$3;
110576
- const INHERIT_KEYS$3 = {
110577
- optional: ["typeAnnotation", "typeParameters", "returnType"],
110578
- force: ["start", "loc", "end"]
110579
- };
110580
- constants$3.INHERIT_KEYS = INHERIT_KEYS$3;
110581
- const BLOCK_SCOPED_SYMBOL$3 = Symbol.for("var used to be block scoped");
110582
- constants$3.BLOCK_SCOPED_SYMBOL = BLOCK_SCOPED_SYMBOL$3;
110583
- const NOT_LOCAL_BINDING$4 = Symbol.for("should not be considered a local binding");
110584
- constants$3.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING$4;
110585
-
110586
- var utils$4 = {};
110587
-
110588
- var hasRequiredUtils$3;
110244
+ var hasRequiredLib$5;
110589
110245
 
110590
- function requireUtils$3 () {
110591
- if (hasRequiredUtils$3) return utils$4;
110592
- hasRequiredUtils$3 = 1;
110246
+ function requireLib$5 () {
110247
+ if (hasRequiredLib$5) return lib$b;
110248
+ hasRequiredLib$5 = 1;
110593
110249
 
110594
- Object.defineProperty(utils$4, "__esModule", {
110250
+ Object.defineProperty(lib$b, "__esModule", {
110595
110251
  value: true
110596
110252
  });
110597
- utils$4.VISITOR_KEYS = utils$4.NODE_PARENT_VALIDATIONS = utils$4.NODE_FIELDS = utils$4.FLIPPED_ALIAS_KEYS = utils$4.DEPRECATED_KEYS = utils$4.BUILDER_KEYS = utils$4.ALIAS_KEYS = void 0;
110598
- utils$4.arrayOf = arrayOf;
110599
- utils$4.arrayOfType = arrayOfType;
110600
- utils$4.assertEach = assertEach;
110601
- utils$4.assertNodeOrValueType = assertNodeOrValueType;
110602
- utils$4.assertNodeType = assertNodeType;
110603
- utils$4.assertOneOf = assertOneOf;
110604
- utils$4.assertOptionalChainStart = assertOptionalChainStart;
110605
- utils$4.assertShape = assertShape;
110606
- utils$4.assertValueType = assertValueType;
110607
- utils$4.chain = chain;
110608
- utils$4.default = defineType;
110609
- utils$4.defineAliasedType = defineAliasedType;
110610
- utils$4.typeIs = typeIs;
110611
- utils$4.validate = validate;
110612
- utils$4.validateArrayOfType = validateArrayOfType;
110613
- utils$4.validateOptional = validateOptional;
110614
- utils$4.validateOptionalType = validateOptionalType;
110615
- utils$4.validateType = validateType;
110616
- var _is = requireIs$3();
110617
- var _validate = requireValidate$3();
110618
- const VISITOR_KEYS = {};
110619
- utils$4.VISITOR_KEYS = VISITOR_KEYS;
110620
- const ALIAS_KEYS = {};
110621
- utils$4.ALIAS_KEYS = ALIAS_KEYS;
110622
- const FLIPPED_ALIAS_KEYS = {};
110623
- utils$4.FLIPPED_ALIAS_KEYS = FLIPPED_ALIAS_KEYS;
110624
- const NODE_FIELDS = {};
110625
- utils$4.NODE_FIELDS = NODE_FIELDS;
110626
- const BUILDER_KEYS = {};
110627
- utils$4.BUILDER_KEYS = BUILDER_KEYS;
110628
- const DEPRECATED_KEYS = {};
110629
- utils$4.DEPRECATED_KEYS = DEPRECATED_KEYS;
110630
- const NODE_PARENT_VALIDATIONS = {};
110631
- utils$4.NODE_PARENT_VALIDATIONS = NODE_PARENT_VALIDATIONS;
110632
- function getType(val) {
110633
- if (Array.isArray(val)) {
110634
- return "array";
110635
- } else if (val === null) {
110636
- return "null";
110637
- } else {
110638
- return typeof val;
110253
+ lib$b.readCodePoint = readCodePoint;
110254
+ lib$b.readInt = readInt;
110255
+ lib$b.readStringContents = readStringContents;
110256
+ var _isDigit = function isDigit(code) {
110257
+ return code >= 48 && code <= 57;
110258
+ };
110259
+ const forbiddenNumericSeparatorSiblings = {
110260
+ decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]),
110261
+ hex: new Set([46, 88, 95, 120])
110262
+ };
110263
+ const isAllowedNumericSeparatorSibling = {
110264
+ bin: ch => ch === 48 || ch === 49,
110265
+ oct: ch => ch >= 48 && ch <= 55,
110266
+ dec: ch => ch >= 48 && ch <= 57,
110267
+ hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
110268
+ };
110269
+ function readStringContents(type, input, pos, lineStart, curLine, errors) {
110270
+ const initialPos = pos;
110271
+ const initialLineStart = lineStart;
110272
+ const initialCurLine = curLine;
110273
+ let out = "";
110274
+ let firstInvalidLoc = null;
110275
+ let chunkStart = pos;
110276
+ const {
110277
+ length
110278
+ } = input;
110279
+ for (;;) {
110280
+ if (pos >= length) {
110281
+ errors.unterminated(initialPos, initialLineStart, initialCurLine);
110282
+ out += input.slice(chunkStart, pos);
110283
+ break;
110284
+ }
110285
+ const ch = input.charCodeAt(pos);
110286
+ if (isStringEnd(type, ch, input, pos)) {
110287
+ out += input.slice(chunkStart, pos);
110288
+ break;
110289
+ }
110290
+ if (ch === 92) {
110291
+ out += input.slice(chunkStart, pos);
110292
+ const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors);
110293
+ if (res.ch === null && !firstInvalidLoc) {
110294
+ firstInvalidLoc = {
110295
+ pos,
110296
+ lineStart,
110297
+ curLine
110298
+ };
110299
+ } else {
110300
+ out += res.ch;
110301
+ }
110302
+ ({
110303
+ pos,
110304
+ lineStart,
110305
+ curLine
110306
+ } = res);
110307
+ chunkStart = pos;
110308
+ } else if (ch === 8232 || ch === 8233) {
110309
+ ++pos;
110310
+ ++curLine;
110311
+ lineStart = pos;
110312
+ } else if (ch === 10 || ch === 13) {
110313
+ if (type === "template") {
110314
+ out += input.slice(chunkStart, pos) + "\n";
110315
+ ++pos;
110316
+ if (ch === 13 && input.charCodeAt(pos) === 10) {
110317
+ ++pos;
110318
+ }
110319
+ ++curLine;
110320
+ chunkStart = lineStart = pos;
110321
+ } else {
110322
+ errors.unterminated(initialPos, initialLineStart, initialCurLine);
110323
+ }
110324
+ } else {
110325
+ ++pos;
110326
+ }
110639
110327
  }
110640
- }
110641
- function validate(validate) {
110642
110328
  return {
110643
- validate
110329
+ pos,
110330
+ str: out,
110331
+ firstInvalidLoc,
110332
+ lineStart,
110333
+ curLine,
110334
+ containsInvalid: !!firstInvalidLoc
110644
110335
  };
110645
110336
  }
110646
- function typeIs(typeName) {
110337
+ function isStringEnd(type, ch, input, pos) {
110338
+ if (type === "template") {
110339
+ return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123;
110340
+ }
110341
+ return ch === (type === "double" ? 34 : 39);
110342
+ }
110343
+ function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) {
110344
+ const throwOnInvalid = !inTemplate;
110345
+ pos++;
110346
+ const res = ch => ({
110347
+ pos,
110348
+ ch,
110349
+ lineStart,
110350
+ curLine
110351
+ });
110352
+ const ch = input.charCodeAt(pos++);
110353
+ switch (ch) {
110354
+ case 110:
110355
+ return res("\n");
110356
+ case 114:
110357
+ return res("\r");
110358
+ case 120:
110359
+ {
110360
+ let code;
110361
+ ({
110362
+ code,
110363
+ pos
110364
+ } = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
110365
+ return res(code === null ? null : String.fromCharCode(code));
110366
+ }
110367
+ case 117:
110368
+ {
110369
+ let code;
110370
+ ({
110371
+ code,
110372
+ pos
110373
+ } = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors));
110374
+ return res(code === null ? null : String.fromCodePoint(code));
110375
+ }
110376
+ case 116:
110377
+ return res("\t");
110378
+ case 98:
110379
+ return res("\b");
110380
+ case 118:
110381
+ return res("\u000b");
110382
+ case 102:
110383
+ return res("\f");
110384
+ case 13:
110385
+ if (input.charCodeAt(pos) === 10) {
110386
+ ++pos;
110387
+ }
110388
+ case 10:
110389
+ lineStart = pos;
110390
+ ++curLine;
110391
+ case 8232:
110392
+ case 8233:
110393
+ return res("");
110394
+ case 56:
110395
+ case 57:
110396
+ if (inTemplate) {
110397
+ return res(null);
110398
+ } else {
110399
+ errors.strictNumericEscape(pos - 1, lineStart, curLine);
110400
+ }
110401
+ default:
110402
+ if (ch >= 48 && ch <= 55) {
110403
+ const startPos = pos - 1;
110404
+ const match = input.slice(startPos, pos + 2).match(/^[0-7]+/);
110405
+ let octalStr = match[0];
110406
+ let octal = parseInt(octalStr, 8);
110407
+ if (octal > 255) {
110408
+ octalStr = octalStr.slice(0, -1);
110409
+ octal = parseInt(octalStr, 8);
110410
+ }
110411
+ pos += octalStr.length - 1;
110412
+ const next = input.charCodeAt(pos);
110413
+ if (octalStr !== "0" || next === 56 || next === 57) {
110414
+ if (inTemplate) {
110415
+ return res(null);
110416
+ } else {
110417
+ errors.strictNumericEscape(startPos, lineStart, curLine);
110418
+ }
110419
+ }
110420
+ return res(String.fromCharCode(octal));
110421
+ }
110422
+ return res(String.fromCharCode(ch));
110423
+ }
110424
+ }
110425
+ function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
110426
+ const initialPos = pos;
110427
+ let n;
110428
+ ({
110429
+ n,
110430
+ pos
110431
+ } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
110432
+ if (n === null) {
110433
+ if (throwOnInvalid) {
110434
+ errors.invalidEscapeSequence(initialPos, lineStart, curLine);
110435
+ } else {
110436
+ pos = initialPos - 1;
110437
+ }
110438
+ }
110439
+ return {
110440
+ code: n,
110441
+ pos
110442
+ };
110443
+ }
110444
+ function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
110445
+ const start = pos;
110446
+ const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct;
110447
+ const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin;
110448
+ let invalid = false;
110449
+ let total = 0;
110450
+ for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
110451
+ const code = input.charCodeAt(pos);
110452
+ let val;
110453
+ if (code === 95 && allowNumSeparator !== "bail") {
110454
+ const prev = input.charCodeAt(pos - 1);
110455
+ const next = input.charCodeAt(pos + 1);
110456
+ if (!allowNumSeparator) {
110457
+ if (bailOnError) return {
110458
+ n: null,
110459
+ pos
110460
+ };
110461
+ errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine);
110462
+ } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) {
110463
+ if (bailOnError) return {
110464
+ n: null,
110465
+ pos
110466
+ };
110467
+ errors.unexpectedNumericSeparator(pos, lineStart, curLine);
110468
+ }
110469
+ ++pos;
110470
+ continue;
110471
+ }
110472
+ if (code >= 97) {
110473
+ val = code - 97 + 10;
110474
+ } else if (code >= 65) {
110475
+ val = code - 65 + 10;
110476
+ } else if (_isDigit(code)) {
110477
+ val = code - 48;
110478
+ } else {
110479
+ val = Infinity;
110480
+ }
110481
+ if (val >= radix) {
110482
+ if (val <= 9 && bailOnError) {
110483
+ return {
110484
+ n: null,
110485
+ pos
110486
+ };
110487
+ } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) {
110488
+ val = 0;
110489
+ } else if (forceLen) {
110490
+ val = 0;
110491
+ invalid = true;
110492
+ } else {
110493
+ break;
110494
+ }
110495
+ }
110496
+ ++pos;
110497
+ total = total * radix + val;
110498
+ }
110499
+ if (pos === start || len != null && pos - start !== len || invalid) {
110500
+ return {
110501
+ n: null,
110502
+ pos
110503
+ };
110504
+ }
110505
+ return {
110506
+ n: total,
110507
+ pos
110508
+ };
110509
+ }
110510
+ function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
110511
+ const ch = input.charCodeAt(pos);
110512
+ let code;
110513
+ if (ch === 123) {
110514
+ ++pos;
110515
+ ({
110516
+ code,
110517
+ pos
110518
+ } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
110519
+ ++pos;
110520
+ if (code !== null && code > 0x10ffff) {
110521
+ if (throwOnInvalid) {
110522
+ errors.invalidCodePoint(pos, lineStart, curLine);
110523
+ } else {
110524
+ return {
110525
+ code: null,
110526
+ pos
110527
+ };
110528
+ }
110529
+ }
110530
+ } else {
110531
+ ({
110532
+ code,
110533
+ pos
110534
+ } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
110535
+ }
110536
+ return {
110537
+ code,
110538
+ pos
110539
+ };
110540
+ }
110541
+
110542
+
110543
+ return lib$b;
110544
+ }
110545
+
110546
+ var constants$3 = {};
110547
+
110548
+ Object.defineProperty(constants$3, "__esModule", {
110549
+ value: true
110550
+ });
110551
+ constants$3.UPDATE_OPERATORS = constants$3.UNARY_OPERATORS = constants$3.STRING_UNARY_OPERATORS = constants$3.STATEMENT_OR_BLOCK_KEYS = constants$3.NUMBER_UNARY_OPERATORS = constants$3.NUMBER_BINARY_OPERATORS = constants$3.NOT_LOCAL_BINDING = constants$3.LOGICAL_OPERATORS = constants$3.INHERIT_KEYS = constants$3.FOR_INIT_KEYS = constants$3.FLATTENABLE_KEYS = constants$3.EQUALITY_BINARY_OPERATORS = constants$3.COMPARISON_BINARY_OPERATORS = constants$3.COMMENT_KEYS = constants$3.BOOLEAN_UNARY_OPERATORS = constants$3.BOOLEAN_NUMBER_BINARY_OPERATORS = constants$3.BOOLEAN_BINARY_OPERATORS = constants$3.BLOCK_SCOPED_SYMBOL = constants$3.BINARY_OPERATORS = constants$3.ASSIGNMENT_OPERATORS = void 0;
110552
+ const STATEMENT_OR_BLOCK_KEYS$4 = ["consequent", "body", "alternate"];
110553
+ constants$3.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS$4;
110554
+ const FLATTENABLE_KEYS$3 = ["body", "expressions"];
110555
+ constants$3.FLATTENABLE_KEYS = FLATTENABLE_KEYS$3;
110556
+ const FOR_INIT_KEYS$3 = ["left", "init"];
110557
+ constants$3.FOR_INIT_KEYS = FOR_INIT_KEYS$3;
110558
+ const COMMENT_KEYS$3 = ["leadingComments", "trailingComments", "innerComments"];
110559
+ constants$3.COMMENT_KEYS = COMMENT_KEYS$3;
110560
+ const LOGICAL_OPERATORS$4 = ["||", "&&", "??"];
110561
+ constants$3.LOGICAL_OPERATORS = LOGICAL_OPERATORS$4;
110562
+ const UPDATE_OPERATORS$3 = ["++", "--"];
110563
+ constants$3.UPDATE_OPERATORS = UPDATE_OPERATORS$3;
110564
+ const BOOLEAN_NUMBER_BINARY_OPERATORS$3 = [">", "<", ">=", "<="];
110565
+ constants$3.BOOLEAN_NUMBER_BINARY_OPERATORS = BOOLEAN_NUMBER_BINARY_OPERATORS$3;
110566
+ const EQUALITY_BINARY_OPERATORS$3 = ["==", "===", "!=", "!=="];
110567
+ constants$3.EQUALITY_BINARY_OPERATORS = EQUALITY_BINARY_OPERATORS$3;
110568
+ const COMPARISON_BINARY_OPERATORS$3 = [...EQUALITY_BINARY_OPERATORS$3, "in", "instanceof"];
110569
+ constants$3.COMPARISON_BINARY_OPERATORS = COMPARISON_BINARY_OPERATORS$3;
110570
+ const BOOLEAN_BINARY_OPERATORS$3 = [...COMPARISON_BINARY_OPERATORS$3, ...BOOLEAN_NUMBER_BINARY_OPERATORS$3];
110571
+ constants$3.BOOLEAN_BINARY_OPERATORS = BOOLEAN_BINARY_OPERATORS$3;
110572
+ const NUMBER_BINARY_OPERATORS$3 = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"];
110573
+ constants$3.NUMBER_BINARY_OPERATORS = NUMBER_BINARY_OPERATORS$3;
110574
+ const BINARY_OPERATORS$3 = ["+", ...NUMBER_BINARY_OPERATORS$3, ...BOOLEAN_BINARY_OPERATORS$3, "|>"];
110575
+ constants$3.BINARY_OPERATORS = BINARY_OPERATORS$3;
110576
+ const ASSIGNMENT_OPERATORS$3 = ["=", "+=", ...NUMBER_BINARY_OPERATORS$3.map(op => op + "="), ...LOGICAL_OPERATORS$4.map(op => op + "=")];
110577
+ constants$3.ASSIGNMENT_OPERATORS = ASSIGNMENT_OPERATORS$3;
110578
+ const BOOLEAN_UNARY_OPERATORS$3 = ["delete", "!"];
110579
+ constants$3.BOOLEAN_UNARY_OPERATORS = BOOLEAN_UNARY_OPERATORS$3;
110580
+ const NUMBER_UNARY_OPERATORS$3 = ["+", "-", "~"];
110581
+ constants$3.NUMBER_UNARY_OPERATORS = NUMBER_UNARY_OPERATORS$3;
110582
+ const STRING_UNARY_OPERATORS$3 = ["typeof"];
110583
+ constants$3.STRING_UNARY_OPERATORS = STRING_UNARY_OPERATORS$3;
110584
+ const UNARY_OPERATORS$3 = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS$3, ...NUMBER_UNARY_OPERATORS$3, ...STRING_UNARY_OPERATORS$3];
110585
+ constants$3.UNARY_OPERATORS = UNARY_OPERATORS$3;
110586
+ const INHERIT_KEYS$3 = {
110587
+ optional: ["typeAnnotation", "typeParameters", "returnType"],
110588
+ force: ["start", "loc", "end"]
110589
+ };
110590
+ constants$3.INHERIT_KEYS = INHERIT_KEYS$3;
110591
+ const BLOCK_SCOPED_SYMBOL$3 = Symbol.for("var used to be block scoped");
110592
+ constants$3.BLOCK_SCOPED_SYMBOL = BLOCK_SCOPED_SYMBOL$3;
110593
+ const NOT_LOCAL_BINDING$4 = Symbol.for("should not be considered a local binding");
110594
+ constants$3.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING$4;
110595
+
110596
+ var utils$4 = {};
110597
+
110598
+ var hasRequiredUtils$3;
110599
+
110600
+ function requireUtils$3 () {
110601
+ if (hasRequiredUtils$3) return utils$4;
110602
+ hasRequiredUtils$3 = 1;
110603
+
110604
+ Object.defineProperty(utils$4, "__esModule", {
110605
+ value: true
110606
+ });
110607
+ utils$4.VISITOR_KEYS = utils$4.NODE_PARENT_VALIDATIONS = utils$4.NODE_FIELDS = utils$4.FLIPPED_ALIAS_KEYS = utils$4.DEPRECATED_KEYS = utils$4.BUILDER_KEYS = utils$4.ALIAS_KEYS = void 0;
110608
+ utils$4.arrayOf = arrayOf;
110609
+ utils$4.arrayOfType = arrayOfType;
110610
+ utils$4.assertEach = assertEach;
110611
+ utils$4.assertNodeOrValueType = assertNodeOrValueType;
110612
+ utils$4.assertNodeType = assertNodeType;
110613
+ utils$4.assertOneOf = assertOneOf;
110614
+ utils$4.assertOptionalChainStart = assertOptionalChainStart;
110615
+ utils$4.assertShape = assertShape;
110616
+ utils$4.assertValueType = assertValueType;
110617
+ utils$4.chain = chain;
110618
+ utils$4.default = defineType;
110619
+ utils$4.defineAliasedType = defineAliasedType;
110620
+ utils$4.typeIs = typeIs;
110621
+ utils$4.validate = validate;
110622
+ utils$4.validateArrayOfType = validateArrayOfType;
110623
+ utils$4.validateOptional = validateOptional;
110624
+ utils$4.validateOptionalType = validateOptionalType;
110625
+ utils$4.validateType = validateType;
110626
+ var _is = requireIs$3();
110627
+ var _validate = requireValidate$3();
110628
+ const VISITOR_KEYS = {};
110629
+ utils$4.VISITOR_KEYS = VISITOR_KEYS;
110630
+ const ALIAS_KEYS = {};
110631
+ utils$4.ALIAS_KEYS = ALIAS_KEYS;
110632
+ const FLIPPED_ALIAS_KEYS = {};
110633
+ utils$4.FLIPPED_ALIAS_KEYS = FLIPPED_ALIAS_KEYS;
110634
+ const NODE_FIELDS = {};
110635
+ utils$4.NODE_FIELDS = NODE_FIELDS;
110636
+ const BUILDER_KEYS = {};
110637
+ utils$4.BUILDER_KEYS = BUILDER_KEYS;
110638
+ const DEPRECATED_KEYS = {};
110639
+ utils$4.DEPRECATED_KEYS = DEPRECATED_KEYS;
110640
+ const NODE_PARENT_VALIDATIONS = {};
110641
+ utils$4.NODE_PARENT_VALIDATIONS = NODE_PARENT_VALIDATIONS;
110642
+ function getType(val) {
110643
+ if (Array.isArray(val)) {
110644
+ return "array";
110645
+ } else if (val === null) {
110646
+ return "null";
110647
+ } else {
110648
+ return typeof val;
110649
+ }
110650
+ }
110651
+ function validate(validate) {
110652
+ return {
110653
+ validate
110654
+ };
110655
+ }
110656
+ function typeIs(typeName) {
110647
110657
  return typeof typeName === "string" ? assertNodeType(typeName) : assertNodeType(...typeName);
110648
110658
  }
110649
110659
  function validateType(typeName) {
@@ -110885,7 +110895,7 @@ function requireCore$3 () {
110885
110895
  var _is = requireIs$3();
110886
110896
  var _isValidIdentifier = isValidIdentifier$7;
110887
110897
  var _helperValidatorIdentifier = lib$c;
110888
- var _helperStringParser = lib$b;
110898
+ var _helperStringParser = requireLib$5();
110889
110899
  var _constants = constants$3;
110890
110900
  var _utils = requireUtils$3();
110891
110901
  const defineType = (0, _utils.defineAliasedType)("Standardized");
@@ -114044,7 +114054,7 @@ function requireValidateNode$3 () {
114044
114054
  });
114045
114055
  validateNode$3.default = validateNode;
114046
114056
  var _validate = requireValidate$3();
114047
- var _ = requireLib$7();
114057
+ var _ = requireLib$4();
114048
114058
  function validateNode(node) {
114049
114059
  const keys = _.BUILDER_KEYS[node.type];
114050
114060
  for (const key of keys) {
@@ -116060,7 +116070,7 @@ function requireCleanJSXElementLiteralChild$3 () {
116060
116070
  });
116061
116071
  cleanJSXElementLiteralChild$3.default = cleanJSXElementLiteralChild;
116062
116072
  var _generated = requireGenerated$3();
116063
- var _ = requireLib$7();
116073
+ var _ = requireLib$4();
116064
116074
  function cleanJSXElementLiteralChild(child, args) {
116065
116075
  const lines = child.value.split(/\r\n|\n|\r/);
116066
116076
  let lastNonEmptyLine = 0;
@@ -120146,7 +120156,7 @@ function requirePrependToMemberExpression$3 () {
120146
120156
  });
120147
120157
  prependToMemberExpression$3.default = prependToMemberExpression;
120148
120158
  var _generated = requireGenerated$3();
120149
- var _ = requireLib$7();
120159
+ var _ = requireLib$4();
120150
120160
  function prependToMemberExpression(member, prepend) {
120151
120161
  if ((0, _.isSuper)(member.object)) {
120152
120162
  throw new Error("Cannot prepend node to super property access (`super.foo`).");
@@ -120498,11 +120508,11 @@ function isVar$7(node) {
120498
120508
  }) && !node[_constants$f.BLOCK_SCOPED_SYMBOL];
120499
120509
  }
120500
120510
 
120501
- var hasRequiredLib$7;
120511
+ var hasRequiredLib$4;
120502
120512
 
120503
- function requireLib$7 () {
120504
- if (hasRequiredLib$7) return lib$d;
120505
- hasRequiredLib$7 = 1;
120513
+ function requireLib$4 () {
120514
+ if (hasRequiredLib$4) return lib$d;
120515
+ hasRequiredLib$4 = 1;
120506
120516
  (function (exports) {
120507
120517
 
120508
120518
  Object.defineProperty(exports, "__esModule", {
@@ -121081,7 +121091,7 @@ Object.defineProperty(lib$e, "__esModule", {
121081
121091
  value: true
121082
121092
  });
121083
121093
  lib$e.default = hoistVariables;
121084
- var _t$9 = requireLib$7();
121094
+ var _t$9 = requireLib$4();
121085
121095
  const {
121086
121096
  assignmentExpression: assignmentExpression$2,
121087
121097
  expressionStatement: expressionStatement$3,
@@ -121140,11 +121150,11 @@ function requireReplacement () {
121140
121150
  replacement.replaceWithMultiple = replaceWithMultiple;
121141
121151
  replacement.replaceWithSourceString = replaceWithSourceString;
121142
121152
  var _codeFrame = lib$i;
121143
- var _index = requireLib$4();
121153
+ var _index = requireLib$2();
121144
121154
  var _index2 = requirePath();
121145
121155
  var _cache = cache;
121146
121156
  var _parser = lib$f;
121147
- var _t = requireLib$8();
121157
+ var _t = requireLib$6();
121148
121158
  var _helperHoistVariables = lib$e;
121149
121159
  const {
121150
121160
  FUNCTION_TYPES,
@@ -124875,420 +124885,410 @@ function isValidIdentifier$4(name, reserved = true) {
124875
124885
 
124876
124886
  var lib$6 = {};
124877
124887
 
124878
- var hasRequiredLib$6;
124888
+ Object.defineProperty(lib$6, "__esModule", {
124889
+ value: true
124890
+ });
124891
+ lib$6.readCodePoint = readCodePoint$2;
124892
+ lib$6.readInt = readInt$2;
124893
+ lib$6.readStringContents = readStringContents$2;
124894
+ var _isDigit$2 = function isDigit(code) {
124895
+ return code >= 48 && code <= 57;
124896
+ };
124897
+ const forbiddenNumericSeparatorSiblings$2 = {
124898
+ decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]),
124899
+ hex: new Set([46, 88, 95, 120])
124900
+ };
124901
+ const isAllowedNumericSeparatorSibling$2 = {
124902
+ bin: ch => ch === 48 || ch === 49,
124903
+ oct: ch => ch >= 48 && ch <= 55,
124904
+ dec: ch => ch >= 48 && ch <= 57,
124905
+ hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
124906
+ };
124907
+ function readStringContents$2(type, input, pos, lineStart, curLine, errors) {
124908
+ const initialPos = pos;
124909
+ const initialLineStart = lineStart;
124910
+ const initialCurLine = curLine;
124911
+ let out = "";
124912
+ let firstInvalidLoc = null;
124913
+ let chunkStart = pos;
124914
+ const {
124915
+ length
124916
+ } = input;
124917
+ for (;;) {
124918
+ if (pos >= length) {
124919
+ errors.unterminated(initialPos, initialLineStart, initialCurLine);
124920
+ out += input.slice(chunkStart, pos);
124921
+ break;
124922
+ }
124923
+ const ch = input.charCodeAt(pos);
124924
+ if (isStringEnd$2(type, ch, input, pos)) {
124925
+ out += input.slice(chunkStart, pos);
124926
+ break;
124927
+ }
124928
+ if (ch === 92) {
124929
+ out += input.slice(chunkStart, pos);
124930
+ const res = readEscapedChar$2(input, pos, lineStart, curLine, type === "template", errors);
124931
+ if (res.ch === null && !firstInvalidLoc) {
124932
+ firstInvalidLoc = {
124933
+ pos,
124934
+ lineStart,
124935
+ curLine
124936
+ };
124937
+ } else {
124938
+ out += res.ch;
124939
+ }
124940
+ ({
124941
+ pos,
124942
+ lineStart,
124943
+ curLine
124944
+ } = res);
124945
+ chunkStart = pos;
124946
+ } else if (ch === 8232 || ch === 8233) {
124947
+ ++pos;
124948
+ ++curLine;
124949
+ lineStart = pos;
124950
+ } else if (ch === 10 || ch === 13) {
124951
+ if (type === "template") {
124952
+ out += input.slice(chunkStart, pos) + "\n";
124953
+ ++pos;
124954
+ if (ch === 13 && input.charCodeAt(pos) === 10) {
124955
+ ++pos;
124956
+ }
124957
+ ++curLine;
124958
+ chunkStart = lineStart = pos;
124959
+ } else {
124960
+ errors.unterminated(initialPos, initialLineStart, initialCurLine);
124961
+ }
124962
+ } else {
124963
+ ++pos;
124964
+ }
124965
+ }
124966
+ return {
124967
+ pos,
124968
+ str: out,
124969
+ firstInvalidLoc,
124970
+ lineStart,
124971
+ curLine,
124972
+ containsInvalid: !!firstInvalidLoc
124973
+ };
124974
+ }
124975
+ function isStringEnd$2(type, ch, input, pos) {
124976
+ if (type === "template") {
124977
+ return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123;
124978
+ }
124979
+ return ch === (type === "double" ? 34 : 39);
124980
+ }
124981
+ function readEscapedChar$2(input, pos, lineStart, curLine, inTemplate, errors) {
124982
+ const throwOnInvalid = !inTemplate;
124983
+ pos++;
124984
+ const res = ch => ({
124985
+ pos,
124986
+ ch,
124987
+ lineStart,
124988
+ curLine
124989
+ });
124990
+ const ch = input.charCodeAt(pos++);
124991
+ switch (ch) {
124992
+ case 110:
124993
+ return res("\n");
124994
+ case 114:
124995
+ return res("\r");
124996
+ case 120:
124997
+ {
124998
+ let code;
124999
+ ({
125000
+ code,
125001
+ pos
125002
+ } = readHexChar$2(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
125003
+ return res(code === null ? null : String.fromCharCode(code));
125004
+ }
125005
+ case 117:
125006
+ {
125007
+ let code;
125008
+ ({
125009
+ code,
125010
+ pos
125011
+ } = readCodePoint$2(input, pos, lineStart, curLine, throwOnInvalid, errors));
125012
+ return res(code === null ? null : String.fromCodePoint(code));
125013
+ }
125014
+ case 116:
125015
+ return res("\t");
125016
+ case 98:
125017
+ return res("\b");
125018
+ case 118:
125019
+ return res("\u000b");
125020
+ case 102:
125021
+ return res("\f");
125022
+ case 13:
125023
+ if (input.charCodeAt(pos) === 10) {
125024
+ ++pos;
125025
+ }
125026
+ case 10:
125027
+ lineStart = pos;
125028
+ ++curLine;
125029
+ case 8232:
125030
+ case 8233:
125031
+ return res("");
125032
+ case 56:
125033
+ case 57:
125034
+ if (inTemplate) {
125035
+ return res(null);
125036
+ } else {
125037
+ errors.strictNumericEscape(pos - 1, lineStart, curLine);
125038
+ }
125039
+ default:
125040
+ if (ch >= 48 && ch <= 55) {
125041
+ const startPos = pos - 1;
125042
+ const match = input.slice(startPos, pos + 2).match(/^[0-7]+/);
125043
+ let octalStr = match[0];
125044
+ let octal = parseInt(octalStr, 8);
125045
+ if (octal > 255) {
125046
+ octalStr = octalStr.slice(0, -1);
125047
+ octal = parseInt(octalStr, 8);
125048
+ }
125049
+ pos += octalStr.length - 1;
125050
+ const next = input.charCodeAt(pos);
125051
+ if (octalStr !== "0" || next === 56 || next === 57) {
125052
+ if (inTemplate) {
125053
+ return res(null);
125054
+ } else {
125055
+ errors.strictNumericEscape(startPos, lineStart, curLine);
125056
+ }
125057
+ }
125058
+ return res(String.fromCharCode(octal));
125059
+ }
125060
+ return res(String.fromCharCode(ch));
125061
+ }
125062
+ }
125063
+ function readHexChar$2(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
125064
+ const initialPos = pos;
125065
+ let n;
125066
+ ({
125067
+ n,
125068
+ pos
125069
+ } = readInt$2(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
125070
+ if (n === null) {
125071
+ if (throwOnInvalid) {
125072
+ errors.invalidEscapeSequence(initialPos, lineStart, curLine);
125073
+ } else {
125074
+ pos = initialPos - 1;
125075
+ }
125076
+ }
125077
+ return {
125078
+ code: n,
125079
+ pos
125080
+ };
125081
+ }
125082
+ function readInt$2(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
125083
+ const start = pos;
125084
+ const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings$2.hex : forbiddenNumericSeparatorSiblings$2.decBinOct;
125085
+ const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling$2.hex : radix === 10 ? isAllowedNumericSeparatorSibling$2.dec : radix === 8 ? isAllowedNumericSeparatorSibling$2.oct : isAllowedNumericSeparatorSibling$2.bin;
125086
+ let invalid = false;
125087
+ let total = 0;
125088
+ for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
125089
+ const code = input.charCodeAt(pos);
125090
+ let val;
125091
+ if (code === 95 && allowNumSeparator !== "bail") {
125092
+ const prev = input.charCodeAt(pos - 1);
125093
+ const next = input.charCodeAt(pos + 1);
125094
+ if (!allowNumSeparator) {
125095
+ if (bailOnError) return {
125096
+ n: null,
125097
+ pos
125098
+ };
125099
+ errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine);
125100
+ } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) {
125101
+ if (bailOnError) return {
125102
+ n: null,
125103
+ pos
125104
+ };
125105
+ errors.unexpectedNumericSeparator(pos, lineStart, curLine);
125106
+ }
125107
+ ++pos;
125108
+ continue;
125109
+ }
125110
+ if (code >= 97) {
125111
+ val = code - 97 + 10;
125112
+ } else if (code >= 65) {
125113
+ val = code - 65 + 10;
125114
+ } else if (_isDigit$2(code)) {
125115
+ val = code - 48;
125116
+ } else {
125117
+ val = Infinity;
125118
+ }
125119
+ if (val >= radix) {
125120
+ if (val <= 9 && bailOnError) {
125121
+ return {
125122
+ n: null,
125123
+ pos
125124
+ };
125125
+ } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) {
125126
+ val = 0;
125127
+ } else if (forceLen) {
125128
+ val = 0;
125129
+ invalid = true;
125130
+ } else {
125131
+ break;
125132
+ }
125133
+ }
125134
+ ++pos;
125135
+ total = total * radix + val;
125136
+ }
125137
+ if (pos === start || len != null && pos - start !== len || invalid) {
125138
+ return {
125139
+ n: null,
125140
+ pos
125141
+ };
125142
+ }
125143
+ return {
125144
+ n: total,
125145
+ pos
125146
+ };
125147
+ }
125148
+ function readCodePoint$2(input, pos, lineStart, curLine, throwOnInvalid, errors) {
125149
+ const ch = input.charCodeAt(pos);
125150
+ let code;
125151
+ if (ch === 123) {
125152
+ ++pos;
125153
+ ({
125154
+ code,
125155
+ pos
125156
+ } = readHexChar$2(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
125157
+ ++pos;
125158
+ if (code !== null && code > 0x10ffff) {
125159
+ if (throwOnInvalid) {
125160
+ errors.invalidCodePoint(pos, lineStart, curLine);
125161
+ } else {
125162
+ return {
125163
+ code: null,
125164
+ pos
125165
+ };
125166
+ }
125167
+ }
125168
+ } else {
125169
+ ({
125170
+ code,
125171
+ pos
125172
+ } = readHexChar$2(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
125173
+ }
125174
+ return {
125175
+ code,
125176
+ pos
125177
+ };
125178
+ }
124879
125179
 
124880
- function requireLib$6 () {
124881
- if (hasRequiredLib$6) return lib$6;
124882
- hasRequiredLib$6 = 1;
125180
+ var constants$2 = {};
125181
+
125182
+ Object.defineProperty(constants$2, "__esModule", {
125183
+ value: true
125184
+ });
125185
+ constants$2.UPDATE_OPERATORS = constants$2.UNARY_OPERATORS = constants$2.STRING_UNARY_OPERATORS = constants$2.STATEMENT_OR_BLOCK_KEYS = constants$2.NUMBER_UNARY_OPERATORS = constants$2.NUMBER_BINARY_OPERATORS = constants$2.NOT_LOCAL_BINDING = constants$2.LOGICAL_OPERATORS = constants$2.INHERIT_KEYS = constants$2.FOR_INIT_KEYS = constants$2.FLATTENABLE_KEYS = constants$2.EQUALITY_BINARY_OPERATORS = constants$2.COMPARISON_BINARY_OPERATORS = constants$2.COMMENT_KEYS = constants$2.BOOLEAN_UNARY_OPERATORS = constants$2.BOOLEAN_NUMBER_BINARY_OPERATORS = constants$2.BOOLEAN_BINARY_OPERATORS = constants$2.BLOCK_SCOPED_SYMBOL = constants$2.BINARY_OPERATORS = constants$2.ASSIGNMENT_OPERATORS = void 0;
125186
+ const STATEMENT_OR_BLOCK_KEYS$3 = ["consequent", "body", "alternate"];
125187
+ constants$2.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS$3;
125188
+ const FLATTENABLE_KEYS$2 = ["body", "expressions"];
125189
+ constants$2.FLATTENABLE_KEYS = FLATTENABLE_KEYS$2;
125190
+ const FOR_INIT_KEYS$2 = ["left", "init"];
125191
+ constants$2.FOR_INIT_KEYS = FOR_INIT_KEYS$2;
125192
+ const COMMENT_KEYS$2 = ["leadingComments", "trailingComments", "innerComments"];
125193
+ constants$2.COMMENT_KEYS = COMMENT_KEYS$2;
125194
+ const LOGICAL_OPERATORS$3 = ["||", "&&", "??"];
125195
+ constants$2.LOGICAL_OPERATORS = LOGICAL_OPERATORS$3;
125196
+ const UPDATE_OPERATORS$2 = ["++", "--"];
125197
+ constants$2.UPDATE_OPERATORS = UPDATE_OPERATORS$2;
125198
+ const BOOLEAN_NUMBER_BINARY_OPERATORS$2 = [">", "<", ">=", "<="];
125199
+ constants$2.BOOLEAN_NUMBER_BINARY_OPERATORS = BOOLEAN_NUMBER_BINARY_OPERATORS$2;
125200
+ const EQUALITY_BINARY_OPERATORS$2 = ["==", "===", "!=", "!=="];
125201
+ constants$2.EQUALITY_BINARY_OPERATORS = EQUALITY_BINARY_OPERATORS$2;
125202
+ const COMPARISON_BINARY_OPERATORS$2 = [...EQUALITY_BINARY_OPERATORS$2, "in", "instanceof"];
125203
+ constants$2.COMPARISON_BINARY_OPERATORS = COMPARISON_BINARY_OPERATORS$2;
125204
+ const BOOLEAN_BINARY_OPERATORS$2 = [...COMPARISON_BINARY_OPERATORS$2, ...BOOLEAN_NUMBER_BINARY_OPERATORS$2];
125205
+ constants$2.BOOLEAN_BINARY_OPERATORS = BOOLEAN_BINARY_OPERATORS$2;
125206
+ const NUMBER_BINARY_OPERATORS$2 = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"];
125207
+ constants$2.NUMBER_BINARY_OPERATORS = NUMBER_BINARY_OPERATORS$2;
125208
+ const BINARY_OPERATORS$2 = ["+", ...NUMBER_BINARY_OPERATORS$2, ...BOOLEAN_BINARY_OPERATORS$2, "|>"];
125209
+ constants$2.BINARY_OPERATORS = BINARY_OPERATORS$2;
125210
+ const ASSIGNMENT_OPERATORS$2 = ["=", "+=", ...NUMBER_BINARY_OPERATORS$2.map(op => op + "="), ...LOGICAL_OPERATORS$3.map(op => op + "=")];
125211
+ constants$2.ASSIGNMENT_OPERATORS = ASSIGNMENT_OPERATORS$2;
125212
+ const BOOLEAN_UNARY_OPERATORS$2 = ["delete", "!"];
125213
+ constants$2.BOOLEAN_UNARY_OPERATORS = BOOLEAN_UNARY_OPERATORS$2;
125214
+ const NUMBER_UNARY_OPERATORS$2 = ["+", "-", "~"];
125215
+ constants$2.NUMBER_UNARY_OPERATORS = NUMBER_UNARY_OPERATORS$2;
125216
+ const STRING_UNARY_OPERATORS$2 = ["typeof"];
125217
+ constants$2.STRING_UNARY_OPERATORS = STRING_UNARY_OPERATORS$2;
125218
+ const UNARY_OPERATORS$2 = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS$2, ...NUMBER_UNARY_OPERATORS$2, ...STRING_UNARY_OPERATORS$2];
125219
+ constants$2.UNARY_OPERATORS = UNARY_OPERATORS$2;
125220
+ const INHERIT_KEYS$2 = {
125221
+ optional: ["typeAnnotation", "typeParameters", "returnType"],
125222
+ force: ["start", "loc", "end"]
125223
+ };
125224
+ constants$2.INHERIT_KEYS = INHERIT_KEYS$2;
125225
+ const BLOCK_SCOPED_SYMBOL$2 = Symbol.for("var used to be block scoped");
125226
+ constants$2.BLOCK_SCOPED_SYMBOL = BLOCK_SCOPED_SYMBOL$2;
125227
+ const NOT_LOCAL_BINDING$3 = Symbol.for("should not be considered a local binding");
125228
+ constants$2.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING$3;
125229
+
125230
+ var utils$3 = {};
124883
125231
 
124884
- Object.defineProperty(lib$6, "__esModule", {
125232
+ var hasRequiredUtils$2;
125233
+
125234
+ function requireUtils$2 () {
125235
+ if (hasRequiredUtils$2) return utils$3;
125236
+ hasRequiredUtils$2 = 1;
125237
+
125238
+ Object.defineProperty(utils$3, "__esModule", {
124885
125239
  value: true
124886
125240
  });
124887
- lib$6.readCodePoint = readCodePoint;
124888
- lib$6.readInt = readInt;
124889
- lib$6.readStringContents = readStringContents;
124890
- var _isDigit = function isDigit(code) {
124891
- return code >= 48 && code <= 57;
124892
- };
124893
- const forbiddenNumericSeparatorSiblings = {
124894
- decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]),
124895
- hex: new Set([46, 88, 95, 120])
124896
- };
124897
- const isAllowedNumericSeparatorSibling = {
124898
- bin: ch => ch === 48 || ch === 49,
124899
- oct: ch => ch >= 48 && ch <= 55,
124900
- dec: ch => ch >= 48 && ch <= 57,
124901
- hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
124902
- };
124903
- function readStringContents(type, input, pos, lineStart, curLine, errors) {
124904
- const initialPos = pos;
124905
- const initialLineStart = lineStart;
124906
- const initialCurLine = curLine;
124907
- let out = "";
124908
- let firstInvalidLoc = null;
124909
- let chunkStart = pos;
124910
- const {
124911
- length
124912
- } = input;
124913
- for (;;) {
124914
- if (pos >= length) {
124915
- errors.unterminated(initialPos, initialLineStart, initialCurLine);
124916
- out += input.slice(chunkStart, pos);
124917
- break;
124918
- }
124919
- const ch = input.charCodeAt(pos);
124920
- if (isStringEnd(type, ch, input, pos)) {
124921
- out += input.slice(chunkStart, pos);
124922
- break;
124923
- }
124924
- if (ch === 92) {
124925
- out += input.slice(chunkStart, pos);
124926
- const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors);
124927
- if (res.ch === null && !firstInvalidLoc) {
124928
- firstInvalidLoc = {
124929
- pos,
124930
- lineStart,
124931
- curLine
124932
- };
124933
- } else {
124934
- out += res.ch;
124935
- }
124936
- ({
124937
- pos,
124938
- lineStart,
124939
- curLine
124940
- } = res);
124941
- chunkStart = pos;
124942
- } else if (ch === 8232 || ch === 8233) {
124943
- ++pos;
124944
- ++curLine;
124945
- lineStart = pos;
124946
- } else if (ch === 10 || ch === 13) {
124947
- if (type === "template") {
124948
- out += input.slice(chunkStart, pos) + "\n";
124949
- ++pos;
124950
- if (ch === 13 && input.charCodeAt(pos) === 10) {
124951
- ++pos;
124952
- }
124953
- ++curLine;
124954
- chunkStart = lineStart = pos;
124955
- } else {
124956
- errors.unterminated(initialPos, initialLineStart, initialCurLine);
124957
- }
124958
- } else {
124959
- ++pos;
124960
- }
125241
+ utils$3.VISITOR_KEYS = utils$3.NODE_PARENT_VALIDATIONS = utils$3.NODE_FIELDS = utils$3.FLIPPED_ALIAS_KEYS = utils$3.DEPRECATED_KEYS = utils$3.BUILDER_KEYS = utils$3.ALIAS_KEYS = void 0;
125242
+ utils$3.arrayOf = arrayOf;
125243
+ utils$3.arrayOfType = arrayOfType;
125244
+ utils$3.assertEach = assertEach;
125245
+ utils$3.assertNodeOrValueType = assertNodeOrValueType;
125246
+ utils$3.assertNodeType = assertNodeType;
125247
+ utils$3.assertOneOf = assertOneOf;
125248
+ utils$3.assertOptionalChainStart = assertOptionalChainStart;
125249
+ utils$3.assertShape = assertShape;
125250
+ utils$3.assertValueType = assertValueType;
125251
+ utils$3.chain = chain;
125252
+ utils$3.default = defineType;
125253
+ utils$3.defineAliasedType = defineAliasedType;
125254
+ utils$3.typeIs = typeIs;
125255
+ utils$3.validate = validate;
125256
+ utils$3.validateArrayOfType = validateArrayOfType;
125257
+ utils$3.validateOptional = validateOptional;
125258
+ utils$3.validateOptionalType = validateOptionalType;
125259
+ utils$3.validateType = validateType;
125260
+ var _is = requireIs$2();
125261
+ var _validate = requireValidate$2();
125262
+ const VISITOR_KEYS = {};
125263
+ utils$3.VISITOR_KEYS = VISITOR_KEYS;
125264
+ const ALIAS_KEYS = {};
125265
+ utils$3.ALIAS_KEYS = ALIAS_KEYS;
125266
+ const FLIPPED_ALIAS_KEYS = {};
125267
+ utils$3.FLIPPED_ALIAS_KEYS = FLIPPED_ALIAS_KEYS;
125268
+ const NODE_FIELDS = {};
125269
+ utils$3.NODE_FIELDS = NODE_FIELDS;
125270
+ const BUILDER_KEYS = {};
125271
+ utils$3.BUILDER_KEYS = BUILDER_KEYS;
125272
+ const DEPRECATED_KEYS = {};
125273
+ utils$3.DEPRECATED_KEYS = DEPRECATED_KEYS;
125274
+ const NODE_PARENT_VALIDATIONS = {};
125275
+ utils$3.NODE_PARENT_VALIDATIONS = NODE_PARENT_VALIDATIONS;
125276
+ function getType(val) {
125277
+ if (Array.isArray(val)) {
125278
+ return "array";
125279
+ } else if (val === null) {
125280
+ return "null";
125281
+ } else {
125282
+ return typeof val;
124961
125283
  }
125284
+ }
125285
+ function validate(validate) {
124962
125286
  return {
124963
- pos,
124964
- str: out,
124965
- firstInvalidLoc,
124966
- lineStart,
124967
- curLine,
124968
- containsInvalid: !!firstInvalidLoc
125287
+ validate
124969
125288
  };
124970
125289
  }
124971
- function isStringEnd(type, ch, input, pos) {
124972
- if (type === "template") {
124973
- return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123;
124974
- }
124975
- return ch === (type === "double" ? 34 : 39);
124976
- }
124977
- function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) {
124978
- const throwOnInvalid = !inTemplate;
124979
- pos++;
124980
- const res = ch => ({
124981
- pos,
124982
- ch,
124983
- lineStart,
124984
- curLine
124985
- });
124986
- const ch = input.charCodeAt(pos++);
124987
- switch (ch) {
124988
- case 110:
124989
- return res("\n");
124990
- case 114:
124991
- return res("\r");
124992
- case 120:
124993
- {
124994
- let code;
124995
- ({
124996
- code,
124997
- pos
124998
- } = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
124999
- return res(code === null ? null : String.fromCharCode(code));
125000
- }
125001
- case 117:
125002
- {
125003
- let code;
125004
- ({
125005
- code,
125006
- pos
125007
- } = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors));
125008
- return res(code === null ? null : String.fromCodePoint(code));
125009
- }
125010
- case 116:
125011
- return res("\t");
125012
- case 98:
125013
- return res("\b");
125014
- case 118:
125015
- return res("\u000b");
125016
- case 102:
125017
- return res("\f");
125018
- case 13:
125019
- if (input.charCodeAt(pos) === 10) {
125020
- ++pos;
125021
- }
125022
- case 10:
125023
- lineStart = pos;
125024
- ++curLine;
125025
- case 8232:
125026
- case 8233:
125027
- return res("");
125028
- case 56:
125029
- case 57:
125030
- if (inTemplate) {
125031
- return res(null);
125032
- } else {
125033
- errors.strictNumericEscape(pos - 1, lineStart, curLine);
125034
- }
125035
- default:
125036
- if (ch >= 48 && ch <= 55) {
125037
- const startPos = pos - 1;
125038
- const match = input.slice(startPos, pos + 2).match(/^[0-7]+/);
125039
- let octalStr = match[0];
125040
- let octal = parseInt(octalStr, 8);
125041
- if (octal > 255) {
125042
- octalStr = octalStr.slice(0, -1);
125043
- octal = parseInt(octalStr, 8);
125044
- }
125045
- pos += octalStr.length - 1;
125046
- const next = input.charCodeAt(pos);
125047
- if (octalStr !== "0" || next === 56 || next === 57) {
125048
- if (inTemplate) {
125049
- return res(null);
125050
- } else {
125051
- errors.strictNumericEscape(startPos, lineStart, curLine);
125052
- }
125053
- }
125054
- return res(String.fromCharCode(octal));
125055
- }
125056
- return res(String.fromCharCode(ch));
125057
- }
125058
- }
125059
- function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
125060
- const initialPos = pos;
125061
- let n;
125062
- ({
125063
- n,
125064
- pos
125065
- } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
125066
- if (n === null) {
125067
- if (throwOnInvalid) {
125068
- errors.invalidEscapeSequence(initialPos, lineStart, curLine);
125069
- } else {
125070
- pos = initialPos - 1;
125071
- }
125072
- }
125073
- return {
125074
- code: n,
125075
- pos
125076
- };
125077
- }
125078
- function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
125079
- const start = pos;
125080
- const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct;
125081
- const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin;
125082
- let invalid = false;
125083
- let total = 0;
125084
- for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
125085
- const code = input.charCodeAt(pos);
125086
- let val;
125087
- if (code === 95 && allowNumSeparator !== "bail") {
125088
- const prev = input.charCodeAt(pos - 1);
125089
- const next = input.charCodeAt(pos + 1);
125090
- if (!allowNumSeparator) {
125091
- if (bailOnError) return {
125092
- n: null,
125093
- pos
125094
- };
125095
- errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine);
125096
- } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) {
125097
- if (bailOnError) return {
125098
- n: null,
125099
- pos
125100
- };
125101
- errors.unexpectedNumericSeparator(pos, lineStart, curLine);
125102
- }
125103
- ++pos;
125104
- continue;
125105
- }
125106
- if (code >= 97) {
125107
- val = code - 97 + 10;
125108
- } else if (code >= 65) {
125109
- val = code - 65 + 10;
125110
- } else if (_isDigit(code)) {
125111
- val = code - 48;
125112
- } else {
125113
- val = Infinity;
125114
- }
125115
- if (val >= radix) {
125116
- if (val <= 9 && bailOnError) {
125117
- return {
125118
- n: null,
125119
- pos
125120
- };
125121
- } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) {
125122
- val = 0;
125123
- } else if (forceLen) {
125124
- val = 0;
125125
- invalid = true;
125126
- } else {
125127
- break;
125128
- }
125129
- }
125130
- ++pos;
125131
- total = total * radix + val;
125132
- }
125133
- if (pos === start || len != null && pos - start !== len || invalid) {
125134
- return {
125135
- n: null,
125136
- pos
125137
- };
125138
- }
125139
- return {
125140
- n: total,
125141
- pos
125142
- };
125143
- }
125144
- function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
125145
- const ch = input.charCodeAt(pos);
125146
- let code;
125147
- if (ch === 123) {
125148
- ++pos;
125149
- ({
125150
- code,
125151
- pos
125152
- } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
125153
- ++pos;
125154
- if (code !== null && code > 0x10ffff) {
125155
- if (throwOnInvalid) {
125156
- errors.invalidCodePoint(pos, lineStart, curLine);
125157
- } else {
125158
- return {
125159
- code: null,
125160
- pos
125161
- };
125162
- }
125163
- }
125164
- } else {
125165
- ({
125166
- code,
125167
- pos
125168
- } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
125169
- }
125170
- return {
125171
- code,
125172
- pos
125173
- };
125174
- }
125175
-
125176
-
125177
- return lib$6;
125178
- }
125179
-
125180
- var constants$2 = {};
125181
-
125182
- Object.defineProperty(constants$2, "__esModule", {
125183
- value: true
125184
- });
125185
- constants$2.UPDATE_OPERATORS = constants$2.UNARY_OPERATORS = constants$2.STRING_UNARY_OPERATORS = constants$2.STATEMENT_OR_BLOCK_KEYS = constants$2.NUMBER_UNARY_OPERATORS = constants$2.NUMBER_BINARY_OPERATORS = constants$2.NOT_LOCAL_BINDING = constants$2.LOGICAL_OPERATORS = constants$2.INHERIT_KEYS = constants$2.FOR_INIT_KEYS = constants$2.FLATTENABLE_KEYS = constants$2.EQUALITY_BINARY_OPERATORS = constants$2.COMPARISON_BINARY_OPERATORS = constants$2.COMMENT_KEYS = constants$2.BOOLEAN_UNARY_OPERATORS = constants$2.BOOLEAN_NUMBER_BINARY_OPERATORS = constants$2.BOOLEAN_BINARY_OPERATORS = constants$2.BLOCK_SCOPED_SYMBOL = constants$2.BINARY_OPERATORS = constants$2.ASSIGNMENT_OPERATORS = void 0;
125186
- const STATEMENT_OR_BLOCK_KEYS$3 = ["consequent", "body", "alternate"];
125187
- constants$2.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS$3;
125188
- const FLATTENABLE_KEYS$2 = ["body", "expressions"];
125189
- constants$2.FLATTENABLE_KEYS = FLATTENABLE_KEYS$2;
125190
- const FOR_INIT_KEYS$2 = ["left", "init"];
125191
- constants$2.FOR_INIT_KEYS = FOR_INIT_KEYS$2;
125192
- const COMMENT_KEYS$2 = ["leadingComments", "trailingComments", "innerComments"];
125193
- constants$2.COMMENT_KEYS = COMMENT_KEYS$2;
125194
- const LOGICAL_OPERATORS$3 = ["||", "&&", "??"];
125195
- constants$2.LOGICAL_OPERATORS = LOGICAL_OPERATORS$3;
125196
- const UPDATE_OPERATORS$2 = ["++", "--"];
125197
- constants$2.UPDATE_OPERATORS = UPDATE_OPERATORS$2;
125198
- const BOOLEAN_NUMBER_BINARY_OPERATORS$2 = [">", "<", ">=", "<="];
125199
- constants$2.BOOLEAN_NUMBER_BINARY_OPERATORS = BOOLEAN_NUMBER_BINARY_OPERATORS$2;
125200
- const EQUALITY_BINARY_OPERATORS$2 = ["==", "===", "!=", "!=="];
125201
- constants$2.EQUALITY_BINARY_OPERATORS = EQUALITY_BINARY_OPERATORS$2;
125202
- const COMPARISON_BINARY_OPERATORS$2 = [...EQUALITY_BINARY_OPERATORS$2, "in", "instanceof"];
125203
- constants$2.COMPARISON_BINARY_OPERATORS = COMPARISON_BINARY_OPERATORS$2;
125204
- const BOOLEAN_BINARY_OPERATORS$2 = [...COMPARISON_BINARY_OPERATORS$2, ...BOOLEAN_NUMBER_BINARY_OPERATORS$2];
125205
- constants$2.BOOLEAN_BINARY_OPERATORS = BOOLEAN_BINARY_OPERATORS$2;
125206
- const NUMBER_BINARY_OPERATORS$2 = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"];
125207
- constants$2.NUMBER_BINARY_OPERATORS = NUMBER_BINARY_OPERATORS$2;
125208
- const BINARY_OPERATORS$2 = ["+", ...NUMBER_BINARY_OPERATORS$2, ...BOOLEAN_BINARY_OPERATORS$2, "|>"];
125209
- constants$2.BINARY_OPERATORS = BINARY_OPERATORS$2;
125210
- const ASSIGNMENT_OPERATORS$2 = ["=", "+=", ...NUMBER_BINARY_OPERATORS$2.map(op => op + "="), ...LOGICAL_OPERATORS$3.map(op => op + "=")];
125211
- constants$2.ASSIGNMENT_OPERATORS = ASSIGNMENT_OPERATORS$2;
125212
- const BOOLEAN_UNARY_OPERATORS$2 = ["delete", "!"];
125213
- constants$2.BOOLEAN_UNARY_OPERATORS = BOOLEAN_UNARY_OPERATORS$2;
125214
- const NUMBER_UNARY_OPERATORS$2 = ["+", "-", "~"];
125215
- constants$2.NUMBER_UNARY_OPERATORS = NUMBER_UNARY_OPERATORS$2;
125216
- const STRING_UNARY_OPERATORS$2 = ["typeof"];
125217
- constants$2.STRING_UNARY_OPERATORS = STRING_UNARY_OPERATORS$2;
125218
- const UNARY_OPERATORS$2 = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS$2, ...NUMBER_UNARY_OPERATORS$2, ...STRING_UNARY_OPERATORS$2];
125219
- constants$2.UNARY_OPERATORS = UNARY_OPERATORS$2;
125220
- const INHERIT_KEYS$2 = {
125221
- optional: ["typeAnnotation", "typeParameters", "returnType"],
125222
- force: ["start", "loc", "end"]
125223
- };
125224
- constants$2.INHERIT_KEYS = INHERIT_KEYS$2;
125225
- const BLOCK_SCOPED_SYMBOL$2 = Symbol.for("var used to be block scoped");
125226
- constants$2.BLOCK_SCOPED_SYMBOL = BLOCK_SCOPED_SYMBOL$2;
125227
- const NOT_LOCAL_BINDING$3 = Symbol.for("should not be considered a local binding");
125228
- constants$2.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING$3;
125229
-
125230
- var utils$3 = {};
125231
-
125232
- var hasRequiredUtils$2;
125233
-
125234
- function requireUtils$2 () {
125235
- if (hasRequiredUtils$2) return utils$3;
125236
- hasRequiredUtils$2 = 1;
125237
-
125238
- Object.defineProperty(utils$3, "__esModule", {
125239
- value: true
125240
- });
125241
- utils$3.VISITOR_KEYS = utils$3.NODE_PARENT_VALIDATIONS = utils$3.NODE_FIELDS = utils$3.FLIPPED_ALIAS_KEYS = utils$3.DEPRECATED_KEYS = utils$3.BUILDER_KEYS = utils$3.ALIAS_KEYS = void 0;
125242
- utils$3.arrayOf = arrayOf;
125243
- utils$3.arrayOfType = arrayOfType;
125244
- utils$3.assertEach = assertEach;
125245
- utils$3.assertNodeOrValueType = assertNodeOrValueType;
125246
- utils$3.assertNodeType = assertNodeType;
125247
- utils$3.assertOneOf = assertOneOf;
125248
- utils$3.assertOptionalChainStart = assertOptionalChainStart;
125249
- utils$3.assertShape = assertShape;
125250
- utils$3.assertValueType = assertValueType;
125251
- utils$3.chain = chain;
125252
- utils$3.default = defineType;
125253
- utils$3.defineAliasedType = defineAliasedType;
125254
- utils$3.typeIs = typeIs;
125255
- utils$3.validate = validate;
125256
- utils$3.validateArrayOfType = validateArrayOfType;
125257
- utils$3.validateOptional = validateOptional;
125258
- utils$3.validateOptionalType = validateOptionalType;
125259
- utils$3.validateType = validateType;
125260
- var _is = requireIs$2();
125261
- var _validate = requireValidate$2();
125262
- const VISITOR_KEYS = {};
125263
- utils$3.VISITOR_KEYS = VISITOR_KEYS;
125264
- const ALIAS_KEYS = {};
125265
- utils$3.ALIAS_KEYS = ALIAS_KEYS;
125266
- const FLIPPED_ALIAS_KEYS = {};
125267
- utils$3.FLIPPED_ALIAS_KEYS = FLIPPED_ALIAS_KEYS;
125268
- const NODE_FIELDS = {};
125269
- utils$3.NODE_FIELDS = NODE_FIELDS;
125270
- const BUILDER_KEYS = {};
125271
- utils$3.BUILDER_KEYS = BUILDER_KEYS;
125272
- const DEPRECATED_KEYS = {};
125273
- utils$3.DEPRECATED_KEYS = DEPRECATED_KEYS;
125274
- const NODE_PARENT_VALIDATIONS = {};
125275
- utils$3.NODE_PARENT_VALIDATIONS = NODE_PARENT_VALIDATIONS;
125276
- function getType(val) {
125277
- if (Array.isArray(val)) {
125278
- return "array";
125279
- } else if (val === null) {
125280
- return "null";
125281
- } else {
125282
- return typeof val;
125283
- }
125284
- }
125285
- function validate(validate) {
125286
- return {
125287
- validate
125288
- };
125289
- }
125290
- function typeIs(typeName) {
125291
- return typeof typeName === "string" ? assertNodeType(typeName) : assertNodeType(...typeName);
125290
+ function typeIs(typeName) {
125291
+ return typeof typeName === "string" ? assertNodeType(typeName) : assertNodeType(...typeName);
125292
125292
  }
125293
125293
  function validateType(typeName) {
125294
125294
  return validate(typeIs(typeName));
@@ -125529,7 +125529,7 @@ function requireCore$2 () {
125529
125529
  var _is = requireIs$2();
125530
125530
  var _isValidIdentifier = isValidIdentifier$5;
125531
125531
  var _helperValidatorIdentifier = lib$7;
125532
- var _helperStringParser = requireLib$6();
125532
+ var _helperStringParser = lib$6;
125533
125533
  var _constants = constants$2;
125534
125534
  var _utils = requireUtils$2();
125535
125535
  const defineType = (0, _utils.defineAliasedType)("Standardized");
@@ -128688,7 +128688,7 @@ function requireValidateNode$2 () {
128688
128688
  });
128689
128689
  validateNode$2.default = validateNode;
128690
128690
  var _validate = requireValidate$2();
128691
- var _ = requireLib$5();
128691
+ var _ = requireLib$3();
128692
128692
  function validateNode(node) {
128693
128693
  const keys = _.BUILDER_KEYS[node.type];
128694
128694
  for (const key of keys) {
@@ -130704,7 +130704,7 @@ function requireCleanJSXElementLiteralChild$2 () {
130704
130704
  });
130705
130705
  cleanJSXElementLiteralChild$2.default = cleanJSXElementLiteralChild;
130706
130706
  var _generated = requireGenerated$2();
130707
- var _ = requireLib$5();
130707
+ var _ = requireLib$3();
130708
130708
  function cleanJSXElementLiteralChild(child, args) {
130709
130709
  const lines = child.value.split(/\r\n|\n|\r/);
130710
130710
  let lastNonEmptyLine = 0;
@@ -134790,7 +134790,7 @@ function requirePrependToMemberExpression$2 () {
134790
134790
  });
134791
134791
  prependToMemberExpression$2.default = prependToMemberExpression;
134792
134792
  var _generated = requireGenerated$2();
134793
- var _ = requireLib$5();
134793
+ var _ = requireLib$3();
134794
134794
  function prependToMemberExpression(member, prepend) {
134795
134795
  if ((0, _.isSuper)(member.object)) {
134796
134796
  throw new Error("Cannot prepend node to super property access (`super.foo`).");
@@ -135142,11 +135142,11 @@ function isVar$5(node) {
135142
135142
  }) && !node[_constants$a.BLOCK_SCOPED_SYMBOL];
135143
135143
  }
135144
135144
 
135145
- var hasRequiredLib$5;
135145
+ var hasRequiredLib$3;
135146
135146
 
135147
- function requireLib$5 () {
135148
- if (hasRequiredLib$5) return lib$8;
135149
- hasRequiredLib$5 = 1;
135147
+ function requireLib$3 () {
135148
+ if (hasRequiredLib$3) return lib$8;
135149
+ hasRequiredLib$3 = 1;
135150
135150
  (function (exports) {
135151
135151
 
135152
135152
  Object.defineProperty(exports, "__esModule", {
@@ -135725,7 +135725,7 @@ Object.defineProperty(formatters$1, "__esModule", {
135725
135725
  value: true
135726
135726
  });
135727
135727
  formatters$1.statements = formatters$1.statement = formatters$1.smart = formatters$1.program = formatters$1.expression = void 0;
135728
- var _t$8 = requireLib$5();
135728
+ var _t$8 = requireLib$3();
135729
135729
  const {
135730
135730
  assertExpressionStatement: assertExpressionStatement$2
135731
135731
  } = _t$8;
@@ -135866,7 +135866,7 @@ Object.defineProperty(parse$5, "__esModule", {
135866
135866
  value: true
135867
135867
  });
135868
135868
  parse$5.default = parseAndBuildMetadata;
135869
- var _t$7 = requireLib$5();
135869
+ var _t$7 = requireLib$3();
135870
135870
  var _parser = lib$f;
135871
135871
  var _codeFrame = lib$i;
135872
135872
  const {
@@ -136025,7 +136025,7 @@ Object.defineProperty(populate, "__esModule", {
136025
136025
  value: true
136026
136026
  });
136027
136027
  populate.default = populatePlaceholders;
136028
- var _t$6 = requireLib$5();
136028
+ var _t$6 = requireLib$3();
136029
136029
  const {
136030
136030
  blockStatement: blockStatement$2,
136031
136031
  cloneNode: cloneNode$6,
@@ -136322,7 +136322,7 @@ Object.defineProperty(lib$a, "__esModule", {
136322
136322
  });
136323
136323
  lib$a.default = _default$6;
136324
136324
  var _template = lib$9;
136325
- var _t$5 = requireLib$5();
136325
+ var _t$5 = requireLib$3();
136326
136326
  const {
136327
136327
  NOT_LOCAL_BINDING: NOT_LOCAL_BINDING$2,
136328
136328
  cloneNode: cloneNode$5,
@@ -136491,7 +136491,7 @@ conversion.arrowFunctionToExpression = arrowFunctionToExpression;
136491
136491
  conversion.ensureBlock = ensureBlock$2;
136492
136492
  conversion.toComputedKey = toComputedKey$2;
136493
136493
  conversion.unwrapFunctionEnvironment = unwrapFunctionEnvironment;
136494
- var _t$4 = requireLib$8();
136494
+ var _t$4 = requireLib$6();
136495
136495
  var _helperEnvironmentVisitor = lib$k;
136496
136496
  var _helperFunctionName = lib$a;
136497
136497
  var _visitors = visitors;
@@ -136975,7 +136975,7 @@ introspection.matchesPattern = matchesPattern$5;
136975
136975
  introspection.referencesImport = referencesImport;
136976
136976
  introspection.resolve = resolve$1;
136977
136977
  introspection.willIMaybeExecuteBefore = willIMaybeExecuteBefore;
136978
- var _t$3 = requireLib$8();
136978
+ var _t$3 = requireLib$6();
136979
136979
  const {
136980
136980
  STATEMENT_OR_BLOCK_KEYS: STATEMENT_OR_BLOCK_KEYS$2,
136981
136981
  VISITOR_KEYS,
@@ -137679,7 +137679,7 @@ Object.defineProperty(hoister, "__esModule", {
137679
137679
  value: true
137680
137680
  });
137681
137681
  hoister.default = void 0;
137682
- var _t$2 = requireLib$8();
137682
+ var _t$2 = requireLib$6();
137683
137683
  var _t2 = _t$2;
137684
137684
  const {
137685
137685
  react: react$1
@@ -137865,7 +137865,7 @@ function requireModification () {
137865
137865
  var _cache = cache;
137866
137866
  var _hoister = hoister;
137867
137867
  var _index = requirePath();
137868
- var _t = requireLib$8();
137868
+ var _t = requireLib$6();
137869
137869
  const {
137870
137870
  arrowFunctionExpression,
137871
137871
  assertExpression,
@@ -138101,7 +138101,7 @@ function requireFamily () {
138101
138101
  family.getPrevSibling = getPrevSibling;
138102
138102
  family.getSibling = getSibling;
138103
138103
  var _index = requirePath();
138104
- var _t = requireLib$8();
138104
+ var _t = requireLib$6();
138105
138105
  const {
138106
138106
  getBindingIdentifiers: _getBindingIdentifiers,
138107
138107
  getOuterBindingIdentifiers: _getOuterBindingIdentifiers,
@@ -138428,7 +138428,7 @@ Object.defineProperty(comments$1, "__esModule", {
138428
138428
  comments$1.addComment = addComment$4;
138429
138429
  comments$1.addComments = addComments$4;
138430
138430
  comments$1.shareCommentsWithSiblings = shareCommentsWithSiblings;
138431
- var _t$1 = requireLib$8();
138431
+ var _t$1 = requireLib$6();
138432
138432
  const {
138433
138433
  addComment: _addComment,
138434
138434
  addComments: _addComments$2
@@ -138494,7 +138494,7 @@ virtualTypesValidator.isSpreadProperty = isSpreadProperty$2;
138494
138494
  virtualTypesValidator.isStatement = isStatement$7;
138495
138495
  virtualTypesValidator.isUser = isUser;
138496
138496
  virtualTypesValidator.isVar = isVar$4;
138497
- var _t = requireLib$8();
138497
+ var _t = requireLib$6();
138498
138498
  const {
138499
138499
  isBinding: isBinding$5,
138500
138500
  isBlockScoped: nodeIsBlockScoped,
@@ -138647,9 +138647,9 @@ function requirePath () {
138647
138647
  path.default = path.SHOULD_STOP = path.SHOULD_SKIP = path.REMOVED = void 0;
138648
138648
  var virtualTypes = virtualTypes$1;
138649
138649
  var _debug = browserExports;
138650
- var _index = requireLib$4();
138650
+ var _index = requireLib$2();
138651
138651
  var _scope = requireScope();
138652
- var _t = requireLib$8();
138652
+ var _t = requireLib$6();
138653
138653
  var t = _t;
138654
138654
  var cache$1 = cache;
138655
138655
  var _generator = lib$j;
@@ -138846,7 +138846,7 @@ function requireContext () {
138846
138846
  });
138847
138847
  context$1.default = void 0;
138848
138848
  var _path = requirePath();
138849
- var _t = requireLib$8();
138849
+ var _t = requireLib$6();
138850
138850
  const {
138851
138851
  VISITOR_KEYS
138852
138852
  } = _t;
@@ -138968,7 +138968,7 @@ function requireTraverseNode () {
138968
138968
  });
138969
138969
  traverseNode.traverseNode = traverseNode$1;
138970
138970
  var _context = requireContext();
138971
- var _t = requireLib$8();
138971
+ var _t = requireLib$6();
138972
138972
  const {
138973
138973
  VISITOR_KEYS
138974
138974
  } = _t;
@@ -139011,11 +139011,11 @@ class Hub {
139011
139011
  }
139012
139012
  hub.default = Hub;
139013
139013
 
139014
- var hasRequiredLib$4;
139014
+ var hasRequiredLib$2;
139015
139015
 
139016
- function requireLib$4 () {
139017
- if (hasRequiredLib$4) return lib$p;
139018
- hasRequiredLib$4 = 1;
139016
+ function requireLib$2 () {
139017
+ if (hasRequiredLib$2) return lib$p;
139018
+ hasRequiredLib$2 = 1;
139019
139019
  (function (exports) {
139020
139020
 
139021
139021
  Object.defineProperty(exports, "__esModule", {
@@ -139042,7 +139042,7 @@ function requireLib$4 () {
139042
139042
  exports.visitors = exports.default = void 0;
139043
139043
  var visitors$1 = visitors;
139044
139044
  exports.visitors = visitors$1;
139045
- var _t = requireLib$8();
139045
+ var _t = requireLib$6();
139046
139046
  var cache$1 = cache;
139047
139047
  var _traverseNode = requireTraverseNode();
139048
139048
  var _path = requirePath();
@@ -142313,420 +142313,410 @@ function isValidIdentifier$2(name, reserved = true) {
142313
142313
 
142314
142314
  var lib$3 = {};
142315
142315
 
142316
- var hasRequiredLib$3;
142316
+ Object.defineProperty(lib$3, "__esModule", {
142317
+ value: true
142318
+ });
142319
+ lib$3.readCodePoint = readCodePoint$1;
142320
+ lib$3.readInt = readInt$1;
142321
+ lib$3.readStringContents = readStringContents$1;
142322
+ var _isDigit$1 = function isDigit(code) {
142323
+ return code >= 48 && code <= 57;
142324
+ };
142325
+ const forbiddenNumericSeparatorSiblings$1 = {
142326
+ decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]),
142327
+ hex: new Set([46, 88, 95, 120])
142328
+ };
142329
+ const isAllowedNumericSeparatorSibling$1 = {
142330
+ bin: ch => ch === 48 || ch === 49,
142331
+ oct: ch => ch >= 48 && ch <= 55,
142332
+ dec: ch => ch >= 48 && ch <= 57,
142333
+ hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
142334
+ };
142335
+ function readStringContents$1(type, input, pos, lineStart, curLine, errors) {
142336
+ const initialPos = pos;
142337
+ const initialLineStart = lineStart;
142338
+ const initialCurLine = curLine;
142339
+ let out = "";
142340
+ let firstInvalidLoc = null;
142341
+ let chunkStart = pos;
142342
+ const {
142343
+ length
142344
+ } = input;
142345
+ for (;;) {
142346
+ if (pos >= length) {
142347
+ errors.unterminated(initialPos, initialLineStart, initialCurLine);
142348
+ out += input.slice(chunkStart, pos);
142349
+ break;
142350
+ }
142351
+ const ch = input.charCodeAt(pos);
142352
+ if (isStringEnd$1(type, ch, input, pos)) {
142353
+ out += input.slice(chunkStart, pos);
142354
+ break;
142355
+ }
142356
+ if (ch === 92) {
142357
+ out += input.slice(chunkStart, pos);
142358
+ const res = readEscapedChar$1(input, pos, lineStart, curLine, type === "template", errors);
142359
+ if (res.ch === null && !firstInvalidLoc) {
142360
+ firstInvalidLoc = {
142361
+ pos,
142362
+ lineStart,
142363
+ curLine
142364
+ };
142365
+ } else {
142366
+ out += res.ch;
142367
+ }
142368
+ ({
142369
+ pos,
142370
+ lineStart,
142371
+ curLine
142372
+ } = res);
142373
+ chunkStart = pos;
142374
+ } else if (ch === 8232 || ch === 8233) {
142375
+ ++pos;
142376
+ ++curLine;
142377
+ lineStart = pos;
142378
+ } else if (ch === 10 || ch === 13) {
142379
+ if (type === "template") {
142380
+ out += input.slice(chunkStart, pos) + "\n";
142381
+ ++pos;
142382
+ if (ch === 13 && input.charCodeAt(pos) === 10) {
142383
+ ++pos;
142384
+ }
142385
+ ++curLine;
142386
+ chunkStart = lineStart = pos;
142387
+ } else {
142388
+ errors.unterminated(initialPos, initialLineStart, initialCurLine);
142389
+ }
142390
+ } else {
142391
+ ++pos;
142392
+ }
142393
+ }
142394
+ return {
142395
+ pos,
142396
+ str: out,
142397
+ firstInvalidLoc,
142398
+ lineStart,
142399
+ curLine,
142400
+ containsInvalid: !!firstInvalidLoc
142401
+ };
142402
+ }
142403
+ function isStringEnd$1(type, ch, input, pos) {
142404
+ if (type === "template") {
142405
+ return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123;
142406
+ }
142407
+ return ch === (type === "double" ? 34 : 39);
142408
+ }
142409
+ function readEscapedChar$1(input, pos, lineStart, curLine, inTemplate, errors) {
142410
+ const throwOnInvalid = !inTemplate;
142411
+ pos++;
142412
+ const res = ch => ({
142413
+ pos,
142414
+ ch,
142415
+ lineStart,
142416
+ curLine
142417
+ });
142418
+ const ch = input.charCodeAt(pos++);
142419
+ switch (ch) {
142420
+ case 110:
142421
+ return res("\n");
142422
+ case 114:
142423
+ return res("\r");
142424
+ case 120:
142425
+ {
142426
+ let code;
142427
+ ({
142428
+ code,
142429
+ pos
142430
+ } = readHexChar$1(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
142431
+ return res(code === null ? null : String.fromCharCode(code));
142432
+ }
142433
+ case 117:
142434
+ {
142435
+ let code;
142436
+ ({
142437
+ code,
142438
+ pos
142439
+ } = readCodePoint$1(input, pos, lineStart, curLine, throwOnInvalid, errors));
142440
+ return res(code === null ? null : String.fromCodePoint(code));
142441
+ }
142442
+ case 116:
142443
+ return res("\t");
142444
+ case 98:
142445
+ return res("\b");
142446
+ case 118:
142447
+ return res("\u000b");
142448
+ case 102:
142449
+ return res("\f");
142450
+ case 13:
142451
+ if (input.charCodeAt(pos) === 10) {
142452
+ ++pos;
142453
+ }
142454
+ case 10:
142455
+ lineStart = pos;
142456
+ ++curLine;
142457
+ case 8232:
142458
+ case 8233:
142459
+ return res("");
142460
+ case 56:
142461
+ case 57:
142462
+ if (inTemplate) {
142463
+ return res(null);
142464
+ } else {
142465
+ errors.strictNumericEscape(pos - 1, lineStart, curLine);
142466
+ }
142467
+ default:
142468
+ if (ch >= 48 && ch <= 55) {
142469
+ const startPos = pos - 1;
142470
+ const match = input.slice(startPos, pos + 2).match(/^[0-7]+/);
142471
+ let octalStr = match[0];
142472
+ let octal = parseInt(octalStr, 8);
142473
+ if (octal > 255) {
142474
+ octalStr = octalStr.slice(0, -1);
142475
+ octal = parseInt(octalStr, 8);
142476
+ }
142477
+ pos += octalStr.length - 1;
142478
+ const next = input.charCodeAt(pos);
142479
+ if (octalStr !== "0" || next === 56 || next === 57) {
142480
+ if (inTemplate) {
142481
+ return res(null);
142482
+ } else {
142483
+ errors.strictNumericEscape(startPos, lineStart, curLine);
142484
+ }
142485
+ }
142486
+ return res(String.fromCharCode(octal));
142487
+ }
142488
+ return res(String.fromCharCode(ch));
142489
+ }
142490
+ }
142491
+ function readHexChar$1(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
142492
+ const initialPos = pos;
142493
+ let n;
142494
+ ({
142495
+ n,
142496
+ pos
142497
+ } = readInt$1(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
142498
+ if (n === null) {
142499
+ if (throwOnInvalid) {
142500
+ errors.invalidEscapeSequence(initialPos, lineStart, curLine);
142501
+ } else {
142502
+ pos = initialPos - 1;
142503
+ }
142504
+ }
142505
+ return {
142506
+ code: n,
142507
+ pos
142508
+ };
142509
+ }
142510
+ function readInt$1(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
142511
+ const start = pos;
142512
+ const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings$1.hex : forbiddenNumericSeparatorSiblings$1.decBinOct;
142513
+ const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling$1.hex : radix === 10 ? isAllowedNumericSeparatorSibling$1.dec : radix === 8 ? isAllowedNumericSeparatorSibling$1.oct : isAllowedNumericSeparatorSibling$1.bin;
142514
+ let invalid = false;
142515
+ let total = 0;
142516
+ for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
142517
+ const code = input.charCodeAt(pos);
142518
+ let val;
142519
+ if (code === 95 && allowNumSeparator !== "bail") {
142520
+ const prev = input.charCodeAt(pos - 1);
142521
+ const next = input.charCodeAt(pos + 1);
142522
+ if (!allowNumSeparator) {
142523
+ if (bailOnError) return {
142524
+ n: null,
142525
+ pos
142526
+ };
142527
+ errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine);
142528
+ } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) {
142529
+ if (bailOnError) return {
142530
+ n: null,
142531
+ pos
142532
+ };
142533
+ errors.unexpectedNumericSeparator(pos, lineStart, curLine);
142534
+ }
142535
+ ++pos;
142536
+ continue;
142537
+ }
142538
+ if (code >= 97) {
142539
+ val = code - 97 + 10;
142540
+ } else if (code >= 65) {
142541
+ val = code - 65 + 10;
142542
+ } else if (_isDigit$1(code)) {
142543
+ val = code - 48;
142544
+ } else {
142545
+ val = Infinity;
142546
+ }
142547
+ if (val >= radix) {
142548
+ if (val <= 9 && bailOnError) {
142549
+ return {
142550
+ n: null,
142551
+ pos
142552
+ };
142553
+ } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) {
142554
+ val = 0;
142555
+ } else if (forceLen) {
142556
+ val = 0;
142557
+ invalid = true;
142558
+ } else {
142559
+ break;
142560
+ }
142561
+ }
142562
+ ++pos;
142563
+ total = total * radix + val;
142564
+ }
142565
+ if (pos === start || len != null && pos - start !== len || invalid) {
142566
+ return {
142567
+ n: null,
142568
+ pos
142569
+ };
142570
+ }
142571
+ return {
142572
+ n: total,
142573
+ pos
142574
+ };
142575
+ }
142576
+ function readCodePoint$1(input, pos, lineStart, curLine, throwOnInvalid, errors) {
142577
+ const ch = input.charCodeAt(pos);
142578
+ let code;
142579
+ if (ch === 123) {
142580
+ ++pos;
142581
+ ({
142582
+ code,
142583
+ pos
142584
+ } = readHexChar$1(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
142585
+ ++pos;
142586
+ if (code !== null && code > 0x10ffff) {
142587
+ if (throwOnInvalid) {
142588
+ errors.invalidCodePoint(pos, lineStart, curLine);
142589
+ } else {
142590
+ return {
142591
+ code: null,
142592
+ pos
142593
+ };
142594
+ }
142595
+ }
142596
+ } else {
142597
+ ({
142598
+ code,
142599
+ pos
142600
+ } = readHexChar$1(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
142601
+ }
142602
+ return {
142603
+ code,
142604
+ pos
142605
+ };
142606
+ }
142317
142607
 
142318
- function requireLib$3 () {
142319
- if (hasRequiredLib$3) return lib$3;
142320
- hasRequiredLib$3 = 1;
142608
+ var constants$1 = {};
142609
+
142610
+ Object.defineProperty(constants$1, "__esModule", {
142611
+ value: true
142612
+ });
142613
+ constants$1.UPDATE_OPERATORS = constants$1.UNARY_OPERATORS = constants$1.STRING_UNARY_OPERATORS = constants$1.STATEMENT_OR_BLOCK_KEYS = constants$1.NUMBER_UNARY_OPERATORS = constants$1.NUMBER_BINARY_OPERATORS = constants$1.NOT_LOCAL_BINDING = constants$1.LOGICAL_OPERATORS = constants$1.INHERIT_KEYS = constants$1.FOR_INIT_KEYS = constants$1.FLATTENABLE_KEYS = constants$1.EQUALITY_BINARY_OPERATORS = constants$1.COMPARISON_BINARY_OPERATORS = constants$1.COMMENT_KEYS = constants$1.BOOLEAN_UNARY_OPERATORS = constants$1.BOOLEAN_NUMBER_BINARY_OPERATORS = constants$1.BOOLEAN_BINARY_OPERATORS = constants$1.BLOCK_SCOPED_SYMBOL = constants$1.BINARY_OPERATORS = constants$1.ASSIGNMENT_OPERATORS = void 0;
142614
+ const STATEMENT_OR_BLOCK_KEYS$1 = ["consequent", "body", "alternate"];
142615
+ constants$1.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS$1;
142616
+ const FLATTENABLE_KEYS$1 = ["body", "expressions"];
142617
+ constants$1.FLATTENABLE_KEYS = FLATTENABLE_KEYS$1;
142618
+ const FOR_INIT_KEYS$1 = ["left", "init"];
142619
+ constants$1.FOR_INIT_KEYS = FOR_INIT_KEYS$1;
142620
+ const COMMENT_KEYS$1 = ["leadingComments", "trailingComments", "innerComments"];
142621
+ constants$1.COMMENT_KEYS = COMMENT_KEYS$1;
142622
+ const LOGICAL_OPERATORS$1 = ["||", "&&", "??"];
142623
+ constants$1.LOGICAL_OPERATORS = LOGICAL_OPERATORS$1;
142624
+ const UPDATE_OPERATORS$1 = ["++", "--"];
142625
+ constants$1.UPDATE_OPERATORS = UPDATE_OPERATORS$1;
142626
+ const BOOLEAN_NUMBER_BINARY_OPERATORS$1 = [">", "<", ">=", "<="];
142627
+ constants$1.BOOLEAN_NUMBER_BINARY_OPERATORS = BOOLEAN_NUMBER_BINARY_OPERATORS$1;
142628
+ const EQUALITY_BINARY_OPERATORS$1 = ["==", "===", "!=", "!=="];
142629
+ constants$1.EQUALITY_BINARY_OPERATORS = EQUALITY_BINARY_OPERATORS$1;
142630
+ const COMPARISON_BINARY_OPERATORS$1 = [...EQUALITY_BINARY_OPERATORS$1, "in", "instanceof"];
142631
+ constants$1.COMPARISON_BINARY_OPERATORS = COMPARISON_BINARY_OPERATORS$1;
142632
+ const BOOLEAN_BINARY_OPERATORS$1 = [...COMPARISON_BINARY_OPERATORS$1, ...BOOLEAN_NUMBER_BINARY_OPERATORS$1];
142633
+ constants$1.BOOLEAN_BINARY_OPERATORS = BOOLEAN_BINARY_OPERATORS$1;
142634
+ const NUMBER_BINARY_OPERATORS$1 = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"];
142635
+ constants$1.NUMBER_BINARY_OPERATORS = NUMBER_BINARY_OPERATORS$1;
142636
+ const BINARY_OPERATORS$1 = ["+", ...NUMBER_BINARY_OPERATORS$1, ...BOOLEAN_BINARY_OPERATORS$1, "|>"];
142637
+ constants$1.BINARY_OPERATORS = BINARY_OPERATORS$1;
142638
+ const ASSIGNMENT_OPERATORS$1 = ["=", "+=", ...NUMBER_BINARY_OPERATORS$1.map(op => op + "="), ...LOGICAL_OPERATORS$1.map(op => op + "=")];
142639
+ constants$1.ASSIGNMENT_OPERATORS = ASSIGNMENT_OPERATORS$1;
142640
+ const BOOLEAN_UNARY_OPERATORS$1 = ["delete", "!"];
142641
+ constants$1.BOOLEAN_UNARY_OPERATORS = BOOLEAN_UNARY_OPERATORS$1;
142642
+ const NUMBER_UNARY_OPERATORS$1 = ["+", "-", "~"];
142643
+ constants$1.NUMBER_UNARY_OPERATORS = NUMBER_UNARY_OPERATORS$1;
142644
+ const STRING_UNARY_OPERATORS$1 = ["typeof"];
142645
+ constants$1.STRING_UNARY_OPERATORS = STRING_UNARY_OPERATORS$1;
142646
+ const UNARY_OPERATORS$1 = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS$1, ...NUMBER_UNARY_OPERATORS$1, ...STRING_UNARY_OPERATORS$1];
142647
+ constants$1.UNARY_OPERATORS = UNARY_OPERATORS$1;
142648
+ const INHERIT_KEYS$1 = {
142649
+ optional: ["typeAnnotation", "typeParameters", "returnType"],
142650
+ force: ["start", "loc", "end"]
142651
+ };
142652
+ constants$1.INHERIT_KEYS = INHERIT_KEYS$1;
142653
+ const BLOCK_SCOPED_SYMBOL$1 = Symbol.for("var used to be block scoped");
142654
+ constants$1.BLOCK_SCOPED_SYMBOL = BLOCK_SCOPED_SYMBOL$1;
142655
+ const NOT_LOCAL_BINDING$1 = Symbol.for("should not be considered a local binding");
142656
+ constants$1.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING$1;
142657
+
142658
+ var utils$2 = {};
142659
+
142660
+ var hasRequiredUtils$1;
142661
+
142662
+ function requireUtils$1 () {
142663
+ if (hasRequiredUtils$1) return utils$2;
142664
+ hasRequiredUtils$1 = 1;
142321
142665
 
142322
- Object.defineProperty(lib$3, "__esModule", {
142666
+ Object.defineProperty(utils$2, "__esModule", {
142323
142667
  value: true
142324
142668
  });
142325
- lib$3.readCodePoint = readCodePoint;
142326
- lib$3.readInt = readInt;
142327
- lib$3.readStringContents = readStringContents;
142328
- var _isDigit = function isDigit(code) {
142329
- return code >= 48 && code <= 57;
142330
- };
142331
- const forbiddenNumericSeparatorSiblings = {
142332
- decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]),
142333
- hex: new Set([46, 88, 95, 120])
142334
- };
142335
- const isAllowedNumericSeparatorSibling = {
142336
- bin: ch => ch === 48 || ch === 49,
142337
- oct: ch => ch >= 48 && ch <= 55,
142338
- dec: ch => ch >= 48 && ch <= 57,
142339
- hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
142340
- };
142341
- function readStringContents(type, input, pos, lineStart, curLine, errors) {
142342
- const initialPos = pos;
142343
- const initialLineStart = lineStart;
142344
- const initialCurLine = curLine;
142345
- let out = "";
142346
- let firstInvalidLoc = null;
142347
- let chunkStart = pos;
142348
- const {
142349
- length
142350
- } = input;
142351
- for (;;) {
142352
- if (pos >= length) {
142353
- errors.unterminated(initialPos, initialLineStart, initialCurLine);
142354
- out += input.slice(chunkStart, pos);
142355
- break;
142356
- }
142357
- const ch = input.charCodeAt(pos);
142358
- if (isStringEnd(type, ch, input, pos)) {
142359
- out += input.slice(chunkStart, pos);
142360
- break;
142361
- }
142362
- if (ch === 92) {
142363
- out += input.slice(chunkStart, pos);
142364
- const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors);
142365
- if (res.ch === null && !firstInvalidLoc) {
142366
- firstInvalidLoc = {
142367
- pos,
142368
- lineStart,
142369
- curLine
142370
- };
142371
- } else {
142372
- out += res.ch;
142373
- }
142374
- ({
142375
- pos,
142376
- lineStart,
142377
- curLine
142378
- } = res);
142379
- chunkStart = pos;
142380
- } else if (ch === 8232 || ch === 8233) {
142381
- ++pos;
142382
- ++curLine;
142383
- lineStart = pos;
142384
- } else if (ch === 10 || ch === 13) {
142385
- if (type === "template") {
142386
- out += input.slice(chunkStart, pos) + "\n";
142387
- ++pos;
142388
- if (ch === 13 && input.charCodeAt(pos) === 10) {
142389
- ++pos;
142390
- }
142391
- ++curLine;
142392
- chunkStart = lineStart = pos;
142393
- } else {
142394
- errors.unterminated(initialPos, initialLineStart, initialCurLine);
142395
- }
142396
- } else {
142397
- ++pos;
142398
- }
142669
+ utils$2.VISITOR_KEYS = utils$2.NODE_PARENT_VALIDATIONS = utils$2.NODE_FIELDS = utils$2.FLIPPED_ALIAS_KEYS = utils$2.DEPRECATED_KEYS = utils$2.BUILDER_KEYS = utils$2.ALIAS_KEYS = void 0;
142670
+ utils$2.arrayOf = arrayOf;
142671
+ utils$2.arrayOfType = arrayOfType;
142672
+ utils$2.assertEach = assertEach;
142673
+ utils$2.assertNodeOrValueType = assertNodeOrValueType;
142674
+ utils$2.assertNodeType = assertNodeType;
142675
+ utils$2.assertOneOf = assertOneOf;
142676
+ utils$2.assertOptionalChainStart = assertOptionalChainStart;
142677
+ utils$2.assertShape = assertShape;
142678
+ utils$2.assertValueType = assertValueType;
142679
+ utils$2.chain = chain;
142680
+ utils$2.default = defineType;
142681
+ utils$2.defineAliasedType = defineAliasedType;
142682
+ utils$2.typeIs = typeIs;
142683
+ utils$2.validate = validate;
142684
+ utils$2.validateArrayOfType = validateArrayOfType;
142685
+ utils$2.validateOptional = validateOptional;
142686
+ utils$2.validateOptionalType = validateOptionalType;
142687
+ utils$2.validateType = validateType;
142688
+ var _is = requireIs$1();
142689
+ var _validate = requireValidate$1();
142690
+ const VISITOR_KEYS = {};
142691
+ utils$2.VISITOR_KEYS = VISITOR_KEYS;
142692
+ const ALIAS_KEYS = {};
142693
+ utils$2.ALIAS_KEYS = ALIAS_KEYS;
142694
+ const FLIPPED_ALIAS_KEYS = {};
142695
+ utils$2.FLIPPED_ALIAS_KEYS = FLIPPED_ALIAS_KEYS;
142696
+ const NODE_FIELDS = {};
142697
+ utils$2.NODE_FIELDS = NODE_FIELDS;
142698
+ const BUILDER_KEYS = {};
142699
+ utils$2.BUILDER_KEYS = BUILDER_KEYS;
142700
+ const DEPRECATED_KEYS = {};
142701
+ utils$2.DEPRECATED_KEYS = DEPRECATED_KEYS;
142702
+ const NODE_PARENT_VALIDATIONS = {};
142703
+ utils$2.NODE_PARENT_VALIDATIONS = NODE_PARENT_VALIDATIONS;
142704
+ function getType(val) {
142705
+ if (Array.isArray(val)) {
142706
+ return "array";
142707
+ } else if (val === null) {
142708
+ return "null";
142709
+ } else {
142710
+ return typeof val;
142399
142711
  }
142712
+ }
142713
+ function validate(validate) {
142400
142714
  return {
142401
- pos,
142402
- str: out,
142403
- firstInvalidLoc,
142404
- lineStart,
142405
- curLine,
142406
- containsInvalid: !!firstInvalidLoc
142715
+ validate
142407
142716
  };
142408
142717
  }
142409
- function isStringEnd(type, ch, input, pos) {
142410
- if (type === "template") {
142411
- return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123;
142412
- }
142413
- return ch === (type === "double" ? 34 : 39);
142414
- }
142415
- function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) {
142416
- const throwOnInvalid = !inTemplate;
142417
- pos++;
142418
- const res = ch => ({
142419
- pos,
142420
- ch,
142421
- lineStart,
142422
- curLine
142423
- });
142424
- const ch = input.charCodeAt(pos++);
142425
- switch (ch) {
142426
- case 110:
142427
- return res("\n");
142428
- case 114:
142429
- return res("\r");
142430
- case 120:
142431
- {
142432
- let code;
142433
- ({
142434
- code,
142435
- pos
142436
- } = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
142437
- return res(code === null ? null : String.fromCharCode(code));
142438
- }
142439
- case 117:
142440
- {
142441
- let code;
142442
- ({
142443
- code,
142444
- pos
142445
- } = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors));
142446
- return res(code === null ? null : String.fromCodePoint(code));
142447
- }
142448
- case 116:
142449
- return res("\t");
142450
- case 98:
142451
- return res("\b");
142452
- case 118:
142453
- return res("\u000b");
142454
- case 102:
142455
- return res("\f");
142456
- case 13:
142457
- if (input.charCodeAt(pos) === 10) {
142458
- ++pos;
142459
- }
142460
- case 10:
142461
- lineStart = pos;
142462
- ++curLine;
142463
- case 8232:
142464
- case 8233:
142465
- return res("");
142466
- case 56:
142467
- case 57:
142468
- if (inTemplate) {
142469
- return res(null);
142470
- } else {
142471
- errors.strictNumericEscape(pos - 1, lineStart, curLine);
142472
- }
142473
- default:
142474
- if (ch >= 48 && ch <= 55) {
142475
- const startPos = pos - 1;
142476
- const match = input.slice(startPos, pos + 2).match(/^[0-7]+/);
142477
- let octalStr = match[0];
142478
- let octal = parseInt(octalStr, 8);
142479
- if (octal > 255) {
142480
- octalStr = octalStr.slice(0, -1);
142481
- octal = parseInt(octalStr, 8);
142482
- }
142483
- pos += octalStr.length - 1;
142484
- const next = input.charCodeAt(pos);
142485
- if (octalStr !== "0" || next === 56 || next === 57) {
142486
- if (inTemplate) {
142487
- return res(null);
142488
- } else {
142489
- errors.strictNumericEscape(startPos, lineStart, curLine);
142490
- }
142491
- }
142492
- return res(String.fromCharCode(octal));
142493
- }
142494
- return res(String.fromCharCode(ch));
142495
- }
142496
- }
142497
- function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
142498
- const initialPos = pos;
142499
- let n;
142500
- ({
142501
- n,
142502
- pos
142503
- } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
142504
- if (n === null) {
142505
- if (throwOnInvalid) {
142506
- errors.invalidEscapeSequence(initialPos, lineStart, curLine);
142507
- } else {
142508
- pos = initialPos - 1;
142509
- }
142510
- }
142511
- return {
142512
- code: n,
142513
- pos
142514
- };
142515
- }
142516
- function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
142517
- const start = pos;
142518
- const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct;
142519
- const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin;
142520
- let invalid = false;
142521
- let total = 0;
142522
- for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
142523
- const code = input.charCodeAt(pos);
142524
- let val;
142525
- if (code === 95 && allowNumSeparator !== "bail") {
142526
- const prev = input.charCodeAt(pos - 1);
142527
- const next = input.charCodeAt(pos + 1);
142528
- if (!allowNumSeparator) {
142529
- if (bailOnError) return {
142530
- n: null,
142531
- pos
142532
- };
142533
- errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine);
142534
- } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) {
142535
- if (bailOnError) return {
142536
- n: null,
142537
- pos
142538
- };
142539
- errors.unexpectedNumericSeparator(pos, lineStart, curLine);
142540
- }
142541
- ++pos;
142542
- continue;
142543
- }
142544
- if (code >= 97) {
142545
- val = code - 97 + 10;
142546
- } else if (code >= 65) {
142547
- val = code - 65 + 10;
142548
- } else if (_isDigit(code)) {
142549
- val = code - 48;
142550
- } else {
142551
- val = Infinity;
142552
- }
142553
- if (val >= radix) {
142554
- if (val <= 9 && bailOnError) {
142555
- return {
142556
- n: null,
142557
- pos
142558
- };
142559
- } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) {
142560
- val = 0;
142561
- } else if (forceLen) {
142562
- val = 0;
142563
- invalid = true;
142564
- } else {
142565
- break;
142566
- }
142567
- }
142568
- ++pos;
142569
- total = total * radix + val;
142570
- }
142571
- if (pos === start || len != null && pos - start !== len || invalid) {
142572
- return {
142573
- n: null,
142574
- pos
142575
- };
142576
- }
142577
- return {
142578
- n: total,
142579
- pos
142580
- };
142581
- }
142582
- function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
142583
- const ch = input.charCodeAt(pos);
142584
- let code;
142585
- if (ch === 123) {
142586
- ++pos;
142587
- ({
142588
- code,
142589
- pos
142590
- } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
142591
- ++pos;
142592
- if (code !== null && code > 0x10ffff) {
142593
- if (throwOnInvalid) {
142594
- errors.invalidCodePoint(pos, lineStart, curLine);
142595
- } else {
142596
- return {
142597
- code: null,
142598
- pos
142599
- };
142600
- }
142601
- }
142602
- } else {
142603
- ({
142604
- code,
142605
- pos
142606
- } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
142607
- }
142608
- return {
142609
- code,
142610
- pos
142611
- };
142612
- }
142613
-
142614
-
142615
- return lib$3;
142616
- }
142617
-
142618
- var constants$1 = {};
142619
-
142620
- Object.defineProperty(constants$1, "__esModule", {
142621
- value: true
142622
- });
142623
- constants$1.UPDATE_OPERATORS = constants$1.UNARY_OPERATORS = constants$1.STRING_UNARY_OPERATORS = constants$1.STATEMENT_OR_BLOCK_KEYS = constants$1.NUMBER_UNARY_OPERATORS = constants$1.NUMBER_BINARY_OPERATORS = constants$1.NOT_LOCAL_BINDING = constants$1.LOGICAL_OPERATORS = constants$1.INHERIT_KEYS = constants$1.FOR_INIT_KEYS = constants$1.FLATTENABLE_KEYS = constants$1.EQUALITY_BINARY_OPERATORS = constants$1.COMPARISON_BINARY_OPERATORS = constants$1.COMMENT_KEYS = constants$1.BOOLEAN_UNARY_OPERATORS = constants$1.BOOLEAN_NUMBER_BINARY_OPERATORS = constants$1.BOOLEAN_BINARY_OPERATORS = constants$1.BLOCK_SCOPED_SYMBOL = constants$1.BINARY_OPERATORS = constants$1.ASSIGNMENT_OPERATORS = void 0;
142624
- const STATEMENT_OR_BLOCK_KEYS$1 = ["consequent", "body", "alternate"];
142625
- constants$1.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS$1;
142626
- const FLATTENABLE_KEYS$1 = ["body", "expressions"];
142627
- constants$1.FLATTENABLE_KEYS = FLATTENABLE_KEYS$1;
142628
- const FOR_INIT_KEYS$1 = ["left", "init"];
142629
- constants$1.FOR_INIT_KEYS = FOR_INIT_KEYS$1;
142630
- const COMMENT_KEYS$1 = ["leadingComments", "trailingComments", "innerComments"];
142631
- constants$1.COMMENT_KEYS = COMMENT_KEYS$1;
142632
- const LOGICAL_OPERATORS$1 = ["||", "&&", "??"];
142633
- constants$1.LOGICAL_OPERATORS = LOGICAL_OPERATORS$1;
142634
- const UPDATE_OPERATORS$1 = ["++", "--"];
142635
- constants$1.UPDATE_OPERATORS = UPDATE_OPERATORS$1;
142636
- const BOOLEAN_NUMBER_BINARY_OPERATORS$1 = [">", "<", ">=", "<="];
142637
- constants$1.BOOLEAN_NUMBER_BINARY_OPERATORS = BOOLEAN_NUMBER_BINARY_OPERATORS$1;
142638
- const EQUALITY_BINARY_OPERATORS$1 = ["==", "===", "!=", "!=="];
142639
- constants$1.EQUALITY_BINARY_OPERATORS = EQUALITY_BINARY_OPERATORS$1;
142640
- const COMPARISON_BINARY_OPERATORS$1 = [...EQUALITY_BINARY_OPERATORS$1, "in", "instanceof"];
142641
- constants$1.COMPARISON_BINARY_OPERATORS = COMPARISON_BINARY_OPERATORS$1;
142642
- const BOOLEAN_BINARY_OPERATORS$1 = [...COMPARISON_BINARY_OPERATORS$1, ...BOOLEAN_NUMBER_BINARY_OPERATORS$1];
142643
- constants$1.BOOLEAN_BINARY_OPERATORS = BOOLEAN_BINARY_OPERATORS$1;
142644
- const NUMBER_BINARY_OPERATORS$1 = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"];
142645
- constants$1.NUMBER_BINARY_OPERATORS = NUMBER_BINARY_OPERATORS$1;
142646
- const BINARY_OPERATORS$1 = ["+", ...NUMBER_BINARY_OPERATORS$1, ...BOOLEAN_BINARY_OPERATORS$1, "|>"];
142647
- constants$1.BINARY_OPERATORS = BINARY_OPERATORS$1;
142648
- const ASSIGNMENT_OPERATORS$1 = ["=", "+=", ...NUMBER_BINARY_OPERATORS$1.map(op => op + "="), ...LOGICAL_OPERATORS$1.map(op => op + "=")];
142649
- constants$1.ASSIGNMENT_OPERATORS = ASSIGNMENT_OPERATORS$1;
142650
- const BOOLEAN_UNARY_OPERATORS$1 = ["delete", "!"];
142651
- constants$1.BOOLEAN_UNARY_OPERATORS = BOOLEAN_UNARY_OPERATORS$1;
142652
- const NUMBER_UNARY_OPERATORS$1 = ["+", "-", "~"];
142653
- constants$1.NUMBER_UNARY_OPERATORS = NUMBER_UNARY_OPERATORS$1;
142654
- const STRING_UNARY_OPERATORS$1 = ["typeof"];
142655
- constants$1.STRING_UNARY_OPERATORS = STRING_UNARY_OPERATORS$1;
142656
- const UNARY_OPERATORS$1 = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS$1, ...NUMBER_UNARY_OPERATORS$1, ...STRING_UNARY_OPERATORS$1];
142657
- constants$1.UNARY_OPERATORS = UNARY_OPERATORS$1;
142658
- const INHERIT_KEYS$1 = {
142659
- optional: ["typeAnnotation", "typeParameters", "returnType"],
142660
- force: ["start", "loc", "end"]
142661
- };
142662
- constants$1.INHERIT_KEYS = INHERIT_KEYS$1;
142663
- const BLOCK_SCOPED_SYMBOL$1 = Symbol.for("var used to be block scoped");
142664
- constants$1.BLOCK_SCOPED_SYMBOL = BLOCK_SCOPED_SYMBOL$1;
142665
- const NOT_LOCAL_BINDING$1 = Symbol.for("should not be considered a local binding");
142666
- constants$1.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING$1;
142667
-
142668
- var utils$2 = {};
142669
-
142670
- var hasRequiredUtils$1;
142671
-
142672
- function requireUtils$1 () {
142673
- if (hasRequiredUtils$1) return utils$2;
142674
- hasRequiredUtils$1 = 1;
142675
-
142676
- Object.defineProperty(utils$2, "__esModule", {
142677
- value: true
142678
- });
142679
- utils$2.VISITOR_KEYS = utils$2.NODE_PARENT_VALIDATIONS = utils$2.NODE_FIELDS = utils$2.FLIPPED_ALIAS_KEYS = utils$2.DEPRECATED_KEYS = utils$2.BUILDER_KEYS = utils$2.ALIAS_KEYS = void 0;
142680
- utils$2.arrayOf = arrayOf;
142681
- utils$2.arrayOfType = arrayOfType;
142682
- utils$2.assertEach = assertEach;
142683
- utils$2.assertNodeOrValueType = assertNodeOrValueType;
142684
- utils$2.assertNodeType = assertNodeType;
142685
- utils$2.assertOneOf = assertOneOf;
142686
- utils$2.assertOptionalChainStart = assertOptionalChainStart;
142687
- utils$2.assertShape = assertShape;
142688
- utils$2.assertValueType = assertValueType;
142689
- utils$2.chain = chain;
142690
- utils$2.default = defineType;
142691
- utils$2.defineAliasedType = defineAliasedType;
142692
- utils$2.typeIs = typeIs;
142693
- utils$2.validate = validate;
142694
- utils$2.validateArrayOfType = validateArrayOfType;
142695
- utils$2.validateOptional = validateOptional;
142696
- utils$2.validateOptionalType = validateOptionalType;
142697
- utils$2.validateType = validateType;
142698
- var _is = requireIs$1();
142699
- var _validate = requireValidate$1();
142700
- const VISITOR_KEYS = {};
142701
- utils$2.VISITOR_KEYS = VISITOR_KEYS;
142702
- const ALIAS_KEYS = {};
142703
- utils$2.ALIAS_KEYS = ALIAS_KEYS;
142704
- const FLIPPED_ALIAS_KEYS = {};
142705
- utils$2.FLIPPED_ALIAS_KEYS = FLIPPED_ALIAS_KEYS;
142706
- const NODE_FIELDS = {};
142707
- utils$2.NODE_FIELDS = NODE_FIELDS;
142708
- const BUILDER_KEYS = {};
142709
- utils$2.BUILDER_KEYS = BUILDER_KEYS;
142710
- const DEPRECATED_KEYS = {};
142711
- utils$2.DEPRECATED_KEYS = DEPRECATED_KEYS;
142712
- const NODE_PARENT_VALIDATIONS = {};
142713
- utils$2.NODE_PARENT_VALIDATIONS = NODE_PARENT_VALIDATIONS;
142714
- function getType(val) {
142715
- if (Array.isArray(val)) {
142716
- return "array";
142717
- } else if (val === null) {
142718
- return "null";
142719
- } else {
142720
- return typeof val;
142721
- }
142722
- }
142723
- function validate(validate) {
142724
- return {
142725
- validate
142726
- };
142727
- }
142728
- function typeIs(typeName) {
142729
- return typeof typeName === "string" ? assertNodeType(typeName) : assertNodeType(...typeName);
142718
+ function typeIs(typeName) {
142719
+ return typeof typeName === "string" ? assertNodeType(typeName) : assertNodeType(...typeName);
142730
142720
  }
142731
142721
  function validateType(typeName) {
142732
142722
  return validate(typeIs(typeName));
@@ -142967,7 +142957,7 @@ function requireCore$1 () {
142967
142957
  var _is = requireIs$1();
142968
142958
  var _isValidIdentifier = isValidIdentifier$3;
142969
142959
  var _helperValidatorIdentifier = lib$4;
142970
- var _helperStringParser = requireLib$3();
142960
+ var _helperStringParser = lib$3;
142971
142961
  var _constants = constants$1;
142972
142962
  var _utils = requireUtils$1();
142973
142963
  const defineType = (0, _utils.defineAliasedType)("Standardized");
@@ -146126,7 +146116,7 @@ function requireValidateNode$1 () {
146126
146116
  });
146127
146117
  validateNode$1.default = validateNode;
146128
146118
  var _validate = requireValidate$1();
146129
- var _ = requireLib$2();
146119
+ var _ = requireLib$1();
146130
146120
  function validateNode(node) {
146131
146121
  const keys = _.BUILDER_KEYS[node.type];
146132
146122
  for (const key of keys) {
@@ -148142,7 +148132,7 @@ function requireCleanJSXElementLiteralChild$1 () {
148142
148132
  });
148143
148133
  cleanJSXElementLiteralChild$1.default = cleanJSXElementLiteralChild;
148144
148134
  var _generated = requireGenerated$1();
148145
- var _ = requireLib$2();
148135
+ var _ = requireLib$1();
148146
148136
  function cleanJSXElementLiteralChild(child, args) {
148147
148137
  const lines = child.value.split(/\r\n|\n|\r/);
148148
148138
  let lastNonEmptyLine = 0;
@@ -152228,7 +152218,7 @@ function requirePrependToMemberExpression$1 () {
152228
152218
  });
152229
152219
  prependToMemberExpression$1.default = prependToMemberExpression;
152230
152220
  var _generated = requireGenerated$1();
152231
- var _ = requireLib$2();
152221
+ var _ = requireLib$1();
152232
152222
  function prependToMemberExpression(member, prepend) {
152233
152223
  if ((0, _.isSuper)(member.object)) {
152234
152224
  throw new Error("Cannot prepend node to super property access (`super.foo`).");
@@ -152580,11 +152570,11 @@ function isVar$2(node) {
152580
152570
  }) && !node[_constants$5.BLOCK_SCOPED_SYMBOL];
152581
152571
  }
152582
152572
 
152583
- var hasRequiredLib$2;
152573
+ var hasRequiredLib$1;
152584
152574
 
152585
- function requireLib$2 () {
152586
- if (hasRequiredLib$2) return lib$5;
152587
- hasRequiredLib$2 = 1;
152575
+ function requireLib$1 () {
152576
+ if (hasRequiredLib$1) return lib$5;
152577
+ hasRequiredLib$1 = 1;
152588
152578
  (function (exports) {
152589
152579
 
152590
152580
  Object.defineProperty(exports, "__esModule", {
@@ -153168,7 +153158,7 @@ const {
153168
153158
  isVariableDeclaration: isVariableDeclaration$2,
153169
153159
  isMemberExpression: isMemberExpression$3,
153170
153160
  isArrayExpression: isArrayExpression$2,
153171
- } = requireLib$2();
153161
+ } = requireLib$1();
153172
153162
 
153173
153163
  const isParentProgram$1 = (path) => path.parentPath?.isProgram();
153174
153164
  const isParentBlock$3 = (path) => path.parentPath.isBlockStatement();
@@ -153314,7 +153304,7 @@ maybeInsideFn$1.maybeInsideFn = (insideFn, {print, indent}) => {
153314
153304
  };
153315
153305
 
153316
153306
  const {hasTrailingComment: hasTrailingComment$1} = is$5;
153317
- const {isVariableDeclarator: isVariableDeclarator$1} = requireLib$2();
153307
+ const {isVariableDeclarator: isVariableDeclarator$1} = requireLib$1();
153318
153308
 
153319
153309
  const {markBefore: markBefore$1} = mark;
153320
153310
  const {maybeInsideFn} = maybeInsideFn$1;
@@ -153925,7 +153915,7 @@ const {
153925
153915
  isArrowFunctionExpression: isArrowFunctionExpression$2,
153926
153916
  isLogicalExpression: isLogicalExpression$1,
153927
153917
  isIfStatement: isIfStatement$1,
153928
- } = requireLib$2();
153918
+ } = requireLib$1();
153929
153919
 
153930
153920
  const {chain} = chain$1;
153931
153921
  const {satisfy: satisfy$2} = is$5;
@@ -154355,7 +154345,7 @@ const {
154355
154345
  isStringLiteral: isStringLiteral$5,
154356
154346
  isTemplateLiteral: isTemplateLiteral$3,
154357
154347
  isBinaryExpression: isBinaryExpression$1,
154358
- } = requireLib$2();
154348
+ } = requireLib$1();
154359
154349
 
154360
154350
  const isStringLike = (a) => {
154361
154351
  if (isStringLiteral$5(a))
@@ -154457,7 +154447,7 @@ const {
154457
154447
  isIdentifier: isIdentifier$8,
154458
154448
  isObjectPattern: isObjectPattern$3,
154459
154449
  isAssignmentPattern: isAssignmentPattern$1,
154460
- } = requireLib$2();
154450
+ } = requireLib$1();
154461
154451
 
154462
154452
  const {wrongShorthand} = wrongShortand;
154463
154453
 
@@ -154673,7 +154663,7 @@ parens.maybeParenClose = (path, {maybe}) => {
154673
154663
  maybe.write(isParens$3(path), ')');
154674
154664
  };
154675
154665
 
154676
- const {isObjectPattern: isObjectPattern$2} = requireLib$2();
154666
+ const {isObjectPattern: isObjectPattern$2} = requireLib$1();
154677
154667
  const {isParens: isParens$2} = parens;
154678
154668
 
154679
154669
  assignmentExpression.AssignmentExpression = {
@@ -155343,7 +155333,7 @@ const {
155343
155333
  isNullLiteral: isNullLiteral$1,
155344
155334
  isStringLiteral: isStringLiteral$4,
155345
155335
  isSpreadElement: isSpreadElement$1,
155346
- } = requireLib$2();
155336
+ } = requireLib$1();
155347
155337
 
155348
155338
  const {
155349
155339
  isStringAndMember,
@@ -155623,7 +155613,7 @@ const {
155623
155613
  const {
155624
155614
  isObjectExpression: isObjectExpression$2,
155625
155615
  isStringLiteral: isStringLiteral$3,
155626
- } = requireLib$2();
155616
+ } = requireLib$1();
155627
155617
 
155628
155618
  const isNextObject = (a) => a.getNextSibling().isObjectExpression();
155629
155619
 
@@ -156044,7 +156034,7 @@ const {
156044
156034
  ExpressionStatement: ExpressionStatement$2,
156045
156035
  Program: Program$1,
156046
156036
  isStatement: isStatement$3,
156047
- } = requireLib$2();
156037
+ } = requireLib$1();
156048
156038
 
156049
156039
  const isFn$3 = (a) => typeof a === 'function';
156050
156040
 
@@ -156305,7 +156295,7 @@ const {
156305
156295
  } = is$5;
156306
156296
 
156307
156297
  const {hasPrevNewline: hasPrevNewline$2} = mark;
156308
- const {isExportDeclaration: isExportDeclaration$3} = requireLib$2();
156298
+ const {isExportDeclaration: isExportDeclaration$3} = requireLib$1();
156309
156299
  const {maybeSpaceAfterKeyword: maybeSpaceAfterKeyword$2} = maybeSpaceAfterKeyword$3;
156310
156300
 
156311
156301
  const {isConcatenation} = concatanate$1;
@@ -156664,7 +156654,7 @@ const {
156664
156654
  const {
156665
156655
  isArrowFunctionExpression: isArrowFunctionExpression$1,
156666
156656
  isObjectMethod: isObjectMethod$1,
156667
- } = requireLib$2();
156657
+ } = requireLib$1();
156668
156658
 
156669
156659
  const {markAfter: markAfter$5} = mark;
156670
156660
  const {parseComments: parseComments$2} = comment;
@@ -157151,7 +157141,7 @@ const {
157151
157141
  } = is$5;
157152
157142
 
157153
157143
  const {markAfter: markAfter$2, isMarkedAfter} = mark;
157154
- const {isExportNamespaceSpecifier: isExportNamespaceSpecifier$1} = requireLib$2();
157144
+ const {isExportNamespaceSpecifier: isExportNamespaceSpecifier$1} = requireLib$1();
157155
157145
  const isDeclarationNewline = (path) => isMarkedAfter(path.get('declaration'));
157156
157146
  const isInsideNamespace = (path) => path.parentPath.isTSModuleBlock();
157157
157147
 
@@ -157936,7 +157926,7 @@ const {isNext: isNext$2, isNextParent} = is$5;
157936
157926
  const {
157937
157927
  isTSTypeAliasDeclaration: isTSTypeAliasDeclaration$1,
157938
157928
  isExportDeclaration: isExportDeclaration$2,
157939
- } = requireLib$2();
157929
+ } = requireLib$1();
157940
157930
 
157941
157931
  tsInterfaceDeclaration.TSInterfaceDeclaration = {
157942
157932
  print(path, {print}) {
@@ -158811,7 +158801,7 @@ function initSemantics(semantics = {}) {
158811
158801
  const {round} = Math;
158812
158802
  const fullstore = fullstore$1;
158813
158803
  const isObject$3 = (a) => a && typeof a === 'object';
158814
- const babelTraverse$2 = requireLib$4().default;
158804
+ const babelTraverse$2 = requireLib$2().default;
158815
158805
  const expressions = expressions$1;
158816
158806
  const statements = statements$1;
158817
158807
  const literals = literals$1;
@@ -162371,306 +162361,296 @@ function isValidIdentifier(name, reserved = true) {
162371
162361
 
162372
162362
  var lib = {};
162373
162363
 
162374
- var hasRequiredLib$1;
162375
-
162376
- function requireLib$1 () {
162377
- if (hasRequiredLib$1) return lib;
162378
- hasRequiredLib$1 = 1;
162379
-
162380
- Object.defineProperty(lib, "__esModule", {
162381
- value: true
162382
- });
162383
- lib.readCodePoint = readCodePoint;
162384
- lib.readInt = readInt;
162385
- lib.readStringContents = readStringContents;
162386
- var _isDigit = function isDigit(code) {
162387
- return code >= 48 && code <= 57;
162388
- };
162389
- const forbiddenNumericSeparatorSiblings = {
162390
- decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]),
162391
- hex: new Set([46, 88, 95, 120])
162392
- };
162393
- const isAllowedNumericSeparatorSibling = {
162394
- bin: ch => ch === 48 || ch === 49,
162395
- oct: ch => ch >= 48 && ch <= 55,
162396
- dec: ch => ch >= 48 && ch <= 57,
162397
- hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
162398
- };
162399
- function readStringContents(type, input, pos, lineStart, curLine, errors) {
162400
- const initialPos = pos;
162401
- const initialLineStart = lineStart;
162402
- const initialCurLine = curLine;
162403
- let out = "";
162404
- let firstInvalidLoc = null;
162405
- let chunkStart = pos;
162406
- const {
162407
- length
162408
- } = input;
162409
- for (;;) {
162410
- if (pos >= length) {
162411
- errors.unterminated(initialPos, initialLineStart, initialCurLine);
162412
- out += input.slice(chunkStart, pos);
162413
- break;
162414
- }
162415
- const ch = input.charCodeAt(pos);
162416
- if (isStringEnd(type, ch, input, pos)) {
162417
- out += input.slice(chunkStart, pos);
162418
- break;
162419
- }
162420
- if (ch === 92) {
162421
- out += input.slice(chunkStart, pos);
162422
- const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors);
162423
- if (res.ch === null && !firstInvalidLoc) {
162424
- firstInvalidLoc = {
162425
- pos,
162426
- lineStart,
162427
- curLine
162428
- };
162429
- } else {
162430
- out += res.ch;
162431
- }
162432
- ({
162433
- pos,
162434
- lineStart,
162435
- curLine
162436
- } = res);
162437
- chunkStart = pos;
162438
- } else if (ch === 8232 || ch === 8233) {
162439
- ++pos;
162440
- ++curLine;
162441
- lineStart = pos;
162442
- } else if (ch === 10 || ch === 13) {
162443
- if (type === "template") {
162444
- out += input.slice(chunkStart, pos) + "\n";
162445
- ++pos;
162446
- if (ch === 13 && input.charCodeAt(pos) === 10) {
162447
- ++pos;
162448
- }
162449
- ++curLine;
162450
- chunkStart = lineStart = pos;
162451
- } else {
162452
- errors.unterminated(initialPos, initialLineStart, initialCurLine);
162453
- }
162454
- } else {
162455
- ++pos;
162456
- }
162457
- }
162458
- return {
162459
- pos,
162460
- str: out,
162461
- firstInvalidLoc,
162462
- lineStart,
162463
- curLine,
162464
- containsInvalid: !!firstInvalidLoc
162465
- };
162466
- }
162467
- function isStringEnd(type, ch, input, pos) {
162468
- if (type === "template") {
162469
- return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123;
162470
- }
162471
- return ch === (type === "double" ? 34 : 39);
162472
- }
162473
- function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) {
162474
- const throwOnInvalid = !inTemplate;
162475
- pos++;
162476
- const res = ch => ({
162477
- pos,
162478
- ch,
162479
- lineStart,
162480
- curLine
162481
- });
162482
- const ch = input.charCodeAt(pos++);
162483
- switch (ch) {
162484
- case 110:
162485
- return res("\n");
162486
- case 114:
162487
- return res("\r");
162488
- case 120:
162489
- {
162490
- let code;
162491
- ({
162492
- code,
162493
- pos
162494
- } = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
162495
- return res(code === null ? null : String.fromCharCode(code));
162496
- }
162497
- case 117:
162498
- {
162499
- let code;
162500
- ({
162501
- code,
162502
- pos
162503
- } = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors));
162504
- return res(code === null ? null : String.fromCodePoint(code));
162505
- }
162506
- case 116:
162507
- return res("\t");
162508
- case 98:
162509
- return res("\b");
162510
- case 118:
162511
- return res("\u000b");
162512
- case 102:
162513
- return res("\f");
162514
- case 13:
162515
- if (input.charCodeAt(pos) === 10) {
162516
- ++pos;
162517
- }
162518
- case 10:
162519
- lineStart = pos;
162520
- ++curLine;
162521
- case 8232:
162522
- case 8233:
162523
- return res("");
162524
- case 56:
162525
- case 57:
162526
- if (inTemplate) {
162527
- return res(null);
162528
- } else {
162529
- errors.strictNumericEscape(pos - 1, lineStart, curLine);
162530
- }
162531
- default:
162532
- if (ch >= 48 && ch <= 55) {
162533
- const startPos = pos - 1;
162534
- const match = input.slice(startPos, pos + 2).match(/^[0-7]+/);
162535
- let octalStr = match[0];
162536
- let octal = parseInt(octalStr, 8);
162537
- if (octal > 255) {
162538
- octalStr = octalStr.slice(0, -1);
162539
- octal = parseInt(octalStr, 8);
162540
- }
162541
- pos += octalStr.length - 1;
162542
- const next = input.charCodeAt(pos);
162543
- if (octalStr !== "0" || next === 56 || next === 57) {
162544
- if (inTemplate) {
162545
- return res(null);
162546
- } else {
162547
- errors.strictNumericEscape(startPos, lineStart, curLine);
162548
- }
162549
- }
162550
- return res(String.fromCharCode(octal));
162551
- }
162552
- return res(String.fromCharCode(ch));
162553
- }
162554
- }
162555
- function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
162556
- const initialPos = pos;
162557
- let n;
162558
- ({
162559
- n,
162560
- pos
162561
- } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
162562
- if (n === null) {
162563
- if (throwOnInvalid) {
162564
- errors.invalidEscapeSequence(initialPos, lineStart, curLine);
162565
- } else {
162566
- pos = initialPos - 1;
162567
- }
162568
- }
162569
- return {
162570
- code: n,
162571
- pos
162572
- };
162573
- }
162574
- function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
162575
- const start = pos;
162576
- const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct;
162577
- const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin;
162578
- let invalid = false;
162579
- let total = 0;
162580
- for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
162581
- const code = input.charCodeAt(pos);
162582
- let val;
162583
- if (code === 95 && allowNumSeparator !== "bail") {
162584
- const prev = input.charCodeAt(pos - 1);
162585
- const next = input.charCodeAt(pos + 1);
162586
- if (!allowNumSeparator) {
162587
- if (bailOnError) return {
162588
- n: null,
162589
- pos
162590
- };
162591
- errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine);
162592
- } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) {
162593
- if (bailOnError) return {
162594
- n: null,
162595
- pos
162596
- };
162597
- errors.unexpectedNumericSeparator(pos, lineStart, curLine);
162598
- }
162599
- ++pos;
162600
- continue;
162601
- }
162602
- if (code >= 97) {
162603
- val = code - 97 + 10;
162604
- } else if (code >= 65) {
162605
- val = code - 65 + 10;
162606
- } else if (_isDigit(code)) {
162607
- val = code - 48;
162608
- } else {
162609
- val = Infinity;
162610
- }
162611
- if (val >= radix) {
162612
- if (val <= 9 && bailOnError) {
162613
- return {
162614
- n: null,
162615
- pos
162616
- };
162617
- } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) {
162618
- val = 0;
162619
- } else if (forceLen) {
162620
- val = 0;
162621
- invalid = true;
162622
- } else {
162623
- break;
162624
- }
162625
- }
162626
- ++pos;
162627
- total = total * radix + val;
162628
- }
162629
- if (pos === start || len != null && pos - start !== len || invalid) {
162630
- return {
162631
- n: null,
162632
- pos
162633
- };
162634
- }
162635
- return {
162636
- n: total,
162637
- pos
162638
- };
162639
- }
162640
- function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
162641
- const ch = input.charCodeAt(pos);
162642
- let code;
162643
- if (ch === 123) {
162644
- ++pos;
162645
- ({
162646
- code,
162647
- pos
162648
- } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
162649
- ++pos;
162650
- if (code !== null && code > 0x10ffff) {
162651
- if (throwOnInvalid) {
162652
- errors.invalidCodePoint(pos, lineStart, curLine);
162653
- } else {
162654
- return {
162655
- code: null,
162656
- pos
162657
- };
162658
- }
162659
- }
162660
- } else {
162661
- ({
162662
- code,
162663
- pos
162664
- } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
162665
- }
162666
- return {
162667
- code,
162668
- pos
162669
- };
162670
- }
162671
-
162672
-
162673
- return lib;
162364
+ Object.defineProperty(lib, "__esModule", {
162365
+ value: true
162366
+ });
162367
+ lib.readCodePoint = readCodePoint;
162368
+ lib.readInt = readInt;
162369
+ lib.readStringContents = readStringContents;
162370
+ var _isDigit = function isDigit(code) {
162371
+ return code >= 48 && code <= 57;
162372
+ };
162373
+ const forbiddenNumericSeparatorSiblings = {
162374
+ decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]),
162375
+ hex: new Set([46, 88, 95, 120])
162376
+ };
162377
+ const isAllowedNumericSeparatorSibling = {
162378
+ bin: ch => ch === 48 || ch === 49,
162379
+ oct: ch => ch >= 48 && ch <= 55,
162380
+ dec: ch => ch >= 48 && ch <= 57,
162381
+ hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
162382
+ };
162383
+ function readStringContents(type, input, pos, lineStart, curLine, errors) {
162384
+ const initialPos = pos;
162385
+ const initialLineStart = lineStart;
162386
+ const initialCurLine = curLine;
162387
+ let out = "";
162388
+ let firstInvalidLoc = null;
162389
+ let chunkStart = pos;
162390
+ const {
162391
+ length
162392
+ } = input;
162393
+ for (;;) {
162394
+ if (pos >= length) {
162395
+ errors.unterminated(initialPos, initialLineStart, initialCurLine);
162396
+ out += input.slice(chunkStart, pos);
162397
+ break;
162398
+ }
162399
+ const ch = input.charCodeAt(pos);
162400
+ if (isStringEnd(type, ch, input, pos)) {
162401
+ out += input.slice(chunkStart, pos);
162402
+ break;
162403
+ }
162404
+ if (ch === 92) {
162405
+ out += input.slice(chunkStart, pos);
162406
+ const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors);
162407
+ if (res.ch === null && !firstInvalidLoc) {
162408
+ firstInvalidLoc = {
162409
+ pos,
162410
+ lineStart,
162411
+ curLine
162412
+ };
162413
+ } else {
162414
+ out += res.ch;
162415
+ }
162416
+ ({
162417
+ pos,
162418
+ lineStart,
162419
+ curLine
162420
+ } = res);
162421
+ chunkStart = pos;
162422
+ } else if (ch === 8232 || ch === 8233) {
162423
+ ++pos;
162424
+ ++curLine;
162425
+ lineStart = pos;
162426
+ } else if (ch === 10 || ch === 13) {
162427
+ if (type === "template") {
162428
+ out += input.slice(chunkStart, pos) + "\n";
162429
+ ++pos;
162430
+ if (ch === 13 && input.charCodeAt(pos) === 10) {
162431
+ ++pos;
162432
+ }
162433
+ ++curLine;
162434
+ chunkStart = lineStart = pos;
162435
+ } else {
162436
+ errors.unterminated(initialPos, initialLineStart, initialCurLine);
162437
+ }
162438
+ } else {
162439
+ ++pos;
162440
+ }
162441
+ }
162442
+ return {
162443
+ pos,
162444
+ str: out,
162445
+ firstInvalidLoc,
162446
+ lineStart,
162447
+ curLine,
162448
+ containsInvalid: !!firstInvalidLoc
162449
+ };
162450
+ }
162451
+ function isStringEnd(type, ch, input, pos) {
162452
+ if (type === "template") {
162453
+ return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123;
162454
+ }
162455
+ return ch === (type === "double" ? 34 : 39);
162456
+ }
162457
+ function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) {
162458
+ const throwOnInvalid = !inTemplate;
162459
+ pos++;
162460
+ const res = ch => ({
162461
+ pos,
162462
+ ch,
162463
+ lineStart,
162464
+ curLine
162465
+ });
162466
+ const ch = input.charCodeAt(pos++);
162467
+ switch (ch) {
162468
+ case 110:
162469
+ return res("\n");
162470
+ case 114:
162471
+ return res("\r");
162472
+ case 120:
162473
+ {
162474
+ let code;
162475
+ ({
162476
+ code,
162477
+ pos
162478
+ } = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
162479
+ return res(code === null ? null : String.fromCharCode(code));
162480
+ }
162481
+ case 117:
162482
+ {
162483
+ let code;
162484
+ ({
162485
+ code,
162486
+ pos
162487
+ } = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors));
162488
+ return res(code === null ? null : String.fromCodePoint(code));
162489
+ }
162490
+ case 116:
162491
+ return res("\t");
162492
+ case 98:
162493
+ return res("\b");
162494
+ case 118:
162495
+ return res("\u000b");
162496
+ case 102:
162497
+ return res("\f");
162498
+ case 13:
162499
+ if (input.charCodeAt(pos) === 10) {
162500
+ ++pos;
162501
+ }
162502
+ case 10:
162503
+ lineStart = pos;
162504
+ ++curLine;
162505
+ case 8232:
162506
+ case 8233:
162507
+ return res("");
162508
+ case 56:
162509
+ case 57:
162510
+ if (inTemplate) {
162511
+ return res(null);
162512
+ } else {
162513
+ errors.strictNumericEscape(pos - 1, lineStart, curLine);
162514
+ }
162515
+ default:
162516
+ if (ch >= 48 && ch <= 55) {
162517
+ const startPos = pos - 1;
162518
+ const match = input.slice(startPos, pos + 2).match(/^[0-7]+/);
162519
+ let octalStr = match[0];
162520
+ let octal = parseInt(octalStr, 8);
162521
+ if (octal > 255) {
162522
+ octalStr = octalStr.slice(0, -1);
162523
+ octal = parseInt(octalStr, 8);
162524
+ }
162525
+ pos += octalStr.length - 1;
162526
+ const next = input.charCodeAt(pos);
162527
+ if (octalStr !== "0" || next === 56 || next === 57) {
162528
+ if (inTemplate) {
162529
+ return res(null);
162530
+ } else {
162531
+ errors.strictNumericEscape(startPos, lineStart, curLine);
162532
+ }
162533
+ }
162534
+ return res(String.fromCharCode(octal));
162535
+ }
162536
+ return res(String.fromCharCode(ch));
162537
+ }
162538
+ }
162539
+ function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
162540
+ const initialPos = pos;
162541
+ let n;
162542
+ ({
162543
+ n,
162544
+ pos
162545
+ } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
162546
+ if (n === null) {
162547
+ if (throwOnInvalid) {
162548
+ errors.invalidEscapeSequence(initialPos, lineStart, curLine);
162549
+ } else {
162550
+ pos = initialPos - 1;
162551
+ }
162552
+ }
162553
+ return {
162554
+ code: n,
162555
+ pos
162556
+ };
162557
+ }
162558
+ function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
162559
+ const start = pos;
162560
+ const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct;
162561
+ const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin;
162562
+ let invalid = false;
162563
+ let total = 0;
162564
+ for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
162565
+ const code = input.charCodeAt(pos);
162566
+ let val;
162567
+ if (code === 95 && allowNumSeparator !== "bail") {
162568
+ const prev = input.charCodeAt(pos - 1);
162569
+ const next = input.charCodeAt(pos + 1);
162570
+ if (!allowNumSeparator) {
162571
+ if (bailOnError) return {
162572
+ n: null,
162573
+ pos
162574
+ };
162575
+ errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine);
162576
+ } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) {
162577
+ if (bailOnError) return {
162578
+ n: null,
162579
+ pos
162580
+ };
162581
+ errors.unexpectedNumericSeparator(pos, lineStart, curLine);
162582
+ }
162583
+ ++pos;
162584
+ continue;
162585
+ }
162586
+ if (code >= 97) {
162587
+ val = code - 97 + 10;
162588
+ } else if (code >= 65) {
162589
+ val = code - 65 + 10;
162590
+ } else if (_isDigit(code)) {
162591
+ val = code - 48;
162592
+ } else {
162593
+ val = Infinity;
162594
+ }
162595
+ if (val >= radix) {
162596
+ if (val <= 9 && bailOnError) {
162597
+ return {
162598
+ n: null,
162599
+ pos
162600
+ };
162601
+ } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) {
162602
+ val = 0;
162603
+ } else if (forceLen) {
162604
+ val = 0;
162605
+ invalid = true;
162606
+ } else {
162607
+ break;
162608
+ }
162609
+ }
162610
+ ++pos;
162611
+ total = total * radix + val;
162612
+ }
162613
+ if (pos === start || len != null && pos - start !== len || invalid) {
162614
+ return {
162615
+ n: null,
162616
+ pos
162617
+ };
162618
+ }
162619
+ return {
162620
+ n: total,
162621
+ pos
162622
+ };
162623
+ }
162624
+ function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
162625
+ const ch = input.charCodeAt(pos);
162626
+ let code;
162627
+ if (ch === 123) {
162628
+ ++pos;
162629
+ ({
162630
+ code,
162631
+ pos
162632
+ } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
162633
+ ++pos;
162634
+ if (code !== null && code > 0x10ffff) {
162635
+ if (throwOnInvalid) {
162636
+ errors.invalidCodePoint(pos, lineStart, curLine);
162637
+ } else {
162638
+ return {
162639
+ code: null,
162640
+ pos
162641
+ };
162642
+ }
162643
+ }
162644
+ } else {
162645
+ ({
162646
+ code,
162647
+ pos
162648
+ } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
162649
+ }
162650
+ return {
162651
+ code,
162652
+ pos
162653
+ };
162674
162654
  }
162675
162655
 
162676
162656
  var constants = {};
@@ -163025,7 +163005,7 @@ function requireCore () {
163025
163005
  var _is = requireIs();
163026
163006
  var _isValidIdentifier = isValidIdentifier$1;
163027
163007
  var _helperValidatorIdentifier = lib$1;
163028
- var _helperStringParser = requireLib$1();
163008
+ var _helperStringParser = lib;
163029
163009
  var _constants = constants;
163030
163010
  var _utils = requireUtils();
163031
163011
  const defineType = (0, _utils.defineAliasedType)("Standardized");
@@ -173614,7 +173594,7 @@ var getAst = (node) => {
173614
173594
  return ast;
173615
173595
  };
173616
173596
 
173617
- const traverse$b = requireLib$4().default;
173597
+ const traverse$b = requireLib$2().default;
173618
173598
  const {
173619
173599
  isObjectExpression,
173620
173600
  isExportDeclaration,