@wix/create-headless-site 0.0.25 → 0.0.26

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/build/index.js CHANGED
@@ -1119,9 +1119,9 @@ var require_is_ci = __commonJS({
1119
1119
  }
1120
1120
  });
1121
1121
 
1122
- // ../../node_modules/signal-exit/signals.js
1122
+ // ../../node_modules/ink/node_modules/signal-exit/signals.js
1123
1123
  var require_signals = __commonJS({
1124
- "../../node_modules/signal-exit/signals.js"(exports, module2) {
1124
+ "../../node_modules/ink/node_modules/signal-exit/signals.js"(exports, module2) {
1125
1125
  "use strict";
1126
1126
  init_esm_shims();
1127
1127
  module2.exports = [
@@ -1158,9 +1158,9 @@ var require_signals = __commonJS({
1158
1158
  }
1159
1159
  });
1160
1160
 
1161
- // ../../node_modules/signal-exit/index.js
1161
+ // ../../node_modules/ink/node_modules/signal-exit/index.js
1162
1162
  var require_signal_exit = __commonJS({
1163
- "../../node_modules/signal-exit/index.js"(exports, module2) {
1163
+ "../../node_modules/ink/node_modules/signal-exit/index.js"(exports, module2) {
1164
1164
  "use strict";
1165
1165
  init_esm_shims();
1166
1166
  var process30 = global.process;
@@ -48090,6 +48090,7 @@ var require_lib2 = __commonJS({
48090
48090
  IncompatibleRegExpUVFlags: "The 'u' and 'v' regular expression flags cannot be enabled at the same time.",
48091
48091
  InvalidBigIntLiteral: "Invalid BigIntLiteral.",
48092
48092
  InvalidCodePoint: "Code point out of bounds.",
48093
+ InvalidCoverDiscardElement: "'void' must be followed by an expression when not used in a binding position.",
48093
48094
  InvalidCoverInitializedName: "Invalid shorthand property initializer.",
48094
48095
  InvalidDecimal: "Invalid decimal.",
48095
48096
  InvalidDigit: ({
@@ -48206,7 +48207,8 @@ var require_lib2 = __commonJS({
48206
48207
  unexpected
48207
48208
  }) => `Unexpected token${unexpected ? ` '${unexpected}'.` : ""}${expected ? `, expected "${expected}"` : ""}`,
48208
48209
  UnexpectedTokenUnaryExponentiation: "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",
48209
- UnexpectedUsingDeclaration: "Using declaration cannot appear in the top level when source type is `script`.",
48210
+ UnexpectedUsingDeclaration: "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",
48211
+ UnexpectedVoidPattern: "Unexpected void binding.",
48210
48212
  UnsupportedBind: "Binding should be performed on object property.",
48211
48213
  UnsupportedDecoratorExport: "A decorated export must export a class declaration.",
48212
48214
  UnsupportedDefaultExport: "Only expressions, functions or classes are allowed as the `default` export.",
@@ -48227,6 +48229,8 @@ var require_lib2 = __commonJS({
48227
48229
  VarRedeclaration: ({
48228
48230
  identifierName
48229
48231
  }) => `Identifier '${identifierName}' has already been declared.`,
48232
+ VoidPatternCatchClauseParam: "A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",
48233
+ VoidPatternInitializer: "A void binding may not have an initializer.",
48230
48234
  YieldBindingIdentifier: "Can not use 'yield' as identifier inside a generator.",
48231
48235
  YieldInParameter: "Yield expression is not allowed in formal parameters.",
48232
48236
  YieldNotInGeneratorFunction: "'yield' is only allowed within generator functions.",
@@ -48245,6 +48249,12 @@ var require_lib2 = __commonJS({
48245
48249
  StrictOctalLiteral: "Legacy octal literals are not allowed in strict mode.",
48246
48250
  StrictWith: "'with' in strict mode."
48247
48251
  };
48252
+ var ParseExpressionErrors = {
48253
+ ParseExpressionEmptyInput: "Unexpected parseExpression() input: The input is empty or contains only comments.",
48254
+ ParseExpressionExpectsEOF: ({
48255
+ unexpected
48256
+ }) => `Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(unexpected)}\`.`
48257
+ };
48248
48258
  var UnparenthesizedPipeBodyDescriptions = /* @__PURE__ */ new Set(["ArrowFunctionExpression", "AssignmentExpression", "ConditionalExpression", "YieldExpression"]);
48249
48259
  var PipelineOperatorErrors = Object.assign({
48250
48260
  PipeBodyIsTighter: "Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",
@@ -48357,7 +48367,7 @@ var require_lib2 = __commonJS({
48357
48367
  }
48358
48368
  return ParseErrorConstructors;
48359
48369
  }
48360
- var Errors = Object.assign({}, ParseErrorEnum(ModuleErrors), ParseErrorEnum(StandardErrors), ParseErrorEnum(StrictModeErrors), ParseErrorEnum`pipelineOperator`(PipelineOperatorErrors));
48370
+ var Errors = Object.assign({}, ParseErrorEnum(ModuleErrors), ParseErrorEnum(StandardErrors), ParseErrorEnum(StrictModeErrors), ParseErrorEnum(ParseExpressionErrors), ParseErrorEnum`pipelineOperator`(PipelineOperatorErrors));
48361
48371
  function createDefaultOptions() {
48362
48372
  return {
48363
48373
  sourceType: "script",
@@ -48373,7 +48383,7 @@ var require_lib2 = __commonJS({
48373
48383
  allowUndeclaredExports: false,
48374
48384
  allowYieldOutsideFunction: false,
48375
48385
  plugins: [],
48376
- strictMode: null,
48386
+ strictMode: void 0,
48377
48387
  ranges: false,
48378
48388
  tokens: false,
48379
48389
  createImportExpressions: false,
@@ -48405,6 +48415,17 @@ var require_lib2 = __commonJS({
48405
48415
  throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");
48406
48416
  }
48407
48417
  }
48418
+ if (options.sourceType === "commonjs") {
48419
+ if (opts.allowAwaitOutsideFunction != null) {
48420
+ throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");
48421
+ }
48422
+ if (opts.allowReturnOutsideFunction != null) {
48423
+ throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");
48424
+ }
48425
+ if (opts.allowNewTargetOutsideFunction != null) {
48426
+ throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.");
48427
+ }
48428
+ }
48408
48429
  return options;
48409
48430
  }
48410
48431
  var {
@@ -48552,7 +48573,6 @@ var require_lib2 = __commonJS({
48552
48573
  }
48553
48574
  convertPrivateNameToPrivateIdentifier(node) {
48554
48575
  const name = super.getPrivateNameSV(node);
48555
- node = node;
48556
48576
  delete node.id;
48557
48577
  node.name = name;
48558
48578
  return this.castNodeTo(node, "PrivateIdentifier");
@@ -48667,8 +48687,8 @@ var require_lib2 = __commonJS({
48667
48687
  node.kind = "init";
48668
48688
  return this.finishNode(node, "Property");
48669
48689
  }
48670
- isValidLVal(type, isUnparenthesizedInAssign, binding) {
48671
- return type === "Property" ? "value" : super.isValidLVal(type, isUnparenthesizedInAssign, binding);
48690
+ isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding) {
48691
+ return type === "Property" ? "value" : super.isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding);
48672
48692
  }
48673
48693
  isAssignable(node, isBinding) {
48674
48694
  if (node != null && this.isObjectProperty(node)) {
@@ -48702,11 +48722,14 @@ var require_lib2 = __commonJS({
48702
48722
  finishCallExpression(unfinished, optional) {
48703
48723
  const node = super.finishCallExpression(unfinished, optional);
48704
48724
  if (node.callee.type === "Import") {
48705
- var _ref, _ref2;
48725
+ var _ref;
48706
48726
  this.castNodeTo(node, "ImportExpression");
48707
48727
  node.source = node.arguments[0];
48708
48728
  node.options = (_ref = node.arguments[1]) != null ? _ref : null;
48709
- node.attributes = (_ref2 = node.arguments[1]) != null ? _ref2 : null;
48729
+ {
48730
+ var _ref2;
48731
+ node.attributes = (_ref2 = node.arguments[1]) != null ? _ref2 : null;
48732
+ }
48710
48733
  delete node.arguments;
48711
48734
  delete node.callee;
48712
48735
  } else if (node.type === "OptionalCallExpression") {
@@ -49274,7 +49297,7 @@ var require_lib2 = __commonJS({
49274
49297
  startsExpr
49275
49298
  }),
49276
49299
  placeholder: createToken("%%", {
49277
- startsExpr: true
49300
+ startsExpr
49278
49301
  }),
49279
49302
  string: createToken("string", {
49280
49303
  startsExpr
@@ -49297,10 +49320,10 @@ var require_lib2 = __commonJS({
49297
49320
  eof: createToken("eof"),
49298
49321
  jsxName: createToken("jsxName"),
49299
49322
  jsxText: createToken("jsxText", {
49300
- beforeExpr: true
49323
+ beforeExpr
49301
49324
  }),
49302
49325
  jsxTagStart: createToken("jsxTagStart", {
49303
- startsExpr: true
49326
+ startsExpr
49304
49327
  }),
49305
49328
  jsxTagEnd: createToken("jsxTagEnd")
49306
49329
  };
@@ -49382,13 +49405,13 @@ var require_lib2 = __commonJS({
49382
49405
  context2.push(types.j_expr, types.j_oTag);
49383
49406
  };
49384
49407
  }
49385
- var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
49386
- var nonASCIIidentifierChars = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
49408
+ var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
49409
+ var nonASCIIidentifierChars = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
49387
49410
  var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
49388
49411
  var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
49389
49412
  nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
49390
- var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
49391
- var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
49413
+ var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489];
49414
+ var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
49392
49415
  function isInAstralSet(code2, set) {
49393
49416
  let pos = 65536;
49394
49417
  for (let i2 = 0, length = set.length; i2 < length; i2 += 2) {
@@ -49480,6 +49503,9 @@ var require_lib2 = __commonJS({
49480
49503
  get allowDirectSuper() {
49481
49504
  return (this.currentThisScopeFlags() & 32) > 0;
49482
49505
  }
49506
+ get allowNewTarget() {
49507
+ return (this.currentThisScopeFlags() & 512) > 0;
49508
+ }
49483
49509
  get inClass() {
49484
49510
  return (this.currentThisScopeFlags() & 64) > 0;
49485
49511
  }
@@ -49495,7 +49521,7 @@ var require_lib2 = __commonJS({
49495
49521
  if (flags & 128) {
49496
49522
  return true;
49497
49523
  }
49498
- if (flags & (387 | 64)) {
49524
+ if (flags & (1667 | 64)) {
49499
49525
  return false;
49500
49526
  }
49501
49527
  }
@@ -49503,6 +49529,9 @@ var require_lib2 = __commonJS({
49503
49529
  get inNonArrowFunction() {
49504
49530
  return (this.currentThisScopeFlags() & 2) > 0;
49505
49531
  }
49532
+ get inBareCaseStatement() {
49533
+ return (this.currentScope().flags & 256) > 0;
49534
+ }
49506
49535
  get treatFunctionsAsVar() {
49507
49536
  return this.treatFunctionsAsVarInScope(this.currentScope());
49508
49537
  }
@@ -49542,7 +49571,7 @@ var require_lib2 = __commonJS({
49542
49571
  this.checkRedeclarationInScope(scope, name, bindingType, loc);
49543
49572
  scope.names.set(name, (scope.names.get(name) || 0) | 1);
49544
49573
  this.maybeExportDefined(scope, name);
49545
- if (scope.flags & 387) break;
49574
+ if (scope.flags & 1667) break;
49546
49575
  }
49547
49576
  }
49548
49577
  if (this.parser.inModule && scope.flags & 1) {
@@ -49566,7 +49595,7 @@ var require_lib2 = __commonJS({
49566
49595
  if (bindingType & 8) {
49567
49596
  return scope.names.has(name);
49568
49597
  }
49569
- const type = scope.names.get(name);
49598
+ const type = scope.names.get(name) || 0;
49570
49599
  if (bindingType & 16) {
49571
49600
  return (type & 2) > 0 || !this.treatFunctionsAsVarInScope(scope) && (type & 1) > 0;
49572
49601
  }
@@ -49589,7 +49618,7 @@ var require_lib2 = __commonJS({
49589
49618
  const {
49590
49619
  flags
49591
49620
  } = this.scopeStack[i2];
49592
- if (flags & 387) {
49621
+ if (flags & 1667) {
49593
49622
  return flags;
49594
49623
  }
49595
49624
  }
@@ -49599,7 +49628,7 @@ var require_lib2 = __commonJS({
49599
49628
  const {
49600
49629
  flags
49601
49630
  } = this.scopeStack[i2];
49602
- if (flags & (387 | 64) && !(flags & 4)) {
49631
+ if (flags & (1667 | 64) && !(flags & 4)) {
49603
49632
  return flags;
49604
49633
  }
49605
49634
  }
@@ -49882,9 +49911,8 @@ var require_lib2 = __commonJS({
49882
49911
  return this.flowParseDeclareInterface(node);
49883
49912
  } else if (this.match(82)) {
49884
49913
  return this.flowParseDeclareExportDeclaration(node, insideModule);
49885
- } else {
49886
- this.unexpected();
49887
49914
  }
49915
+ throw this.unexpected();
49888
49916
  }
49889
49917
  flowParseDeclareVariable(node) {
49890
49918
  this.next();
@@ -49904,18 +49932,17 @@ var require_lib2 = __commonJS({
49904
49932
  const body = bodyNode.body = [];
49905
49933
  this.expect(5);
49906
49934
  while (!this.match(8)) {
49907
- let bodyNode2 = this.startNode();
49935
+ const bodyNode2 = this.startNode();
49908
49936
  if (this.match(83)) {
49909
49937
  this.next();
49910
49938
  if (!this.isContextual(130) && !this.match(87)) {
49911
49939
  this.raise(FlowErrors.InvalidNonTypeImportInDeclareModule, this.state.lastTokStartLoc);
49912
49940
  }
49913
- super.parseImport(bodyNode2);
49941
+ body.push(super.parseImport(bodyNode2));
49914
49942
  } else {
49915
49943
  this.expectContextual(125, FlowErrors.UnsupportedStatementInDeclareModule);
49916
- bodyNode2 = this.flowParseDeclare(bodyNode2, true);
49944
+ body.push(this.flowParseDeclare(bodyNode2, true));
49917
49945
  }
49918
- body.push(bodyNode2);
49919
49946
  }
49920
49947
  this.scope.exit();
49921
49948
  this.expect(8);
@@ -49976,7 +50003,7 @@ var require_lib2 = __commonJS({
49976
50003
  }
49977
50004
  }
49978
50005
  }
49979
- this.unexpected();
50006
+ throw this.unexpected();
49980
50007
  }
49981
50008
  flowParseDeclareModuleExports(node) {
49982
50009
  this.next();
@@ -50184,7 +50211,7 @@ var require_lib2 = __commonJS({
50184
50211
  return this.finishNode(node, "TypeParameterInstantiation");
50185
50212
  }
50186
50213
  flowParseTypeParameterInstantiationCallOrNew() {
50187
- if (this.reScan_lt() !== 47) return;
50214
+ if (this.reScan_lt() !== 47) return null;
50188
50215
  const node = this.startNode();
50189
50216
  const oldInType = this.state.inType;
50190
50217
  node.params = [];
@@ -50678,8 +50705,7 @@ var require_lib2 = __commonJS({
50678
50705
  }
50679
50706
  throw this.raise(FlowErrors.UnexpectedSubtractionOperand, this.state.startLoc);
50680
50707
  }
50681
- this.unexpected();
50682
- return;
50708
+ throw this.unexpected();
50683
50709
  case 135:
50684
50710
  return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation");
50685
50711
  case 136:
@@ -50710,7 +50736,7 @@ var require_lib2 = __commonJS({
50710
50736
  return this.flowIdentToTypeAnnotation(startLoc, node, this.parseIdentifier());
50711
50737
  }
50712
50738
  }
50713
- this.unexpected();
50739
+ throw this.unexpected();
50714
50740
  }
50715
50741
  flowParsePostfixType() {
50716
50742
  const startLoc = this.state.startLoc;
@@ -50996,7 +51022,7 @@ var require_lib2 = __commonJS({
50996
51022
  finishArrowValidation(node) {
50997
51023
  var _node$extra;
50998
51024
  this.toAssignableList(node.params, (_node$extra = node.extra) == null ? void 0 : _node$extra.trailingCommaLoc, false);
50999
- this.scope.enter(2 | 4);
51025
+ this.scope.enter(514 | 4);
51000
51026
  super.checkParams(node, false, true);
51001
51027
  this.scope.exit();
51002
51028
  }
@@ -51171,15 +51197,15 @@ var require_lib2 = __commonJS({
51171
51197
  }
51172
51198
  return exprList;
51173
51199
  }
51174
- parseArrayLike(close2, canBePattern, isTuple, refExpressionErrors) {
51175
- const node = super.parseArrayLike(close2, canBePattern, isTuple, refExpressionErrors);
51176
- if (canBePattern && !this.state.maybeInArrowParameters) {
51200
+ parseArrayLike(close2, isTuple, refExpressionErrors) {
51201
+ const node = super.parseArrayLike(close2, isTuple, refExpressionErrors);
51202
+ if (refExpressionErrors != null && !this.state.maybeInArrowParameters) {
51177
51203
  this.toReferencedList(node.elements);
51178
51204
  }
51179
51205
  return node;
51180
51206
  }
51181
- isValidLVal(type, isParenthesized, binding) {
51182
- return type === "TypeCastExpression" || super.isValidLVal(type, isParenthesized, binding);
51207
+ isValidLVal(type, disallowCallExpression, isParenthesized, binding) {
51208
+ return type === "TypeCastExpression" || super.isValidLVal(type, disallowCallExpression, isParenthesized, binding);
51183
51209
  }
51184
51210
  parseClassProperty(node) {
51185
51211
  if (this.match(14)) {
@@ -51539,7 +51565,7 @@ var require_lib2 = __commonJS({
51539
51565
  this.next();
51540
51566
  const node = this.startNodeAt(startLoc);
51541
51567
  node.callee = base;
51542
- node.arguments = super.parseCallExpressionArguments(11);
51568
+ node.arguments = super.parseCallExpressionArguments();
51543
51569
  base = this.finishNode(node, "CallExpression");
51544
51570
  } else if (base.type === "Identifier" && base.name === "async" && this.match(47)) {
51545
51571
  const state = this.state.clone();
@@ -51571,7 +51597,7 @@ var require_lib2 = __commonJS({
51571
51597
  node.callee = base;
51572
51598
  node.typeArguments = this.flowParseTypeParameterInstantiationInExpression();
51573
51599
  this.expect(10);
51574
- node.arguments = this.parseCallExpressionArguments(11);
51600
+ node.arguments = this.parseCallExpressionArguments();
51575
51601
  node.optional = true;
51576
51602
  return this.finishCallExpression(node, true);
51577
51603
  } else if (!noCalls && this.shouldParseTypes() && (this.match(47) || this.match(51))) {
@@ -51580,7 +51606,7 @@ var require_lib2 = __commonJS({
51580
51606
  const result = this.tryParse(() => {
51581
51607
  node.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew();
51582
51608
  this.expect(10);
51583
- node.arguments = super.parseCallExpressionArguments(11);
51609
+ node.arguments = super.parseCallExpressionArguments();
51584
51610
  if (subscriptState.optionalChainMember) {
51585
51611
  node.optional = false;
51586
51612
  }
@@ -52770,14 +52796,14 @@ var require_lib2 = __commonJS({
52770
52796
  return new TypeScriptScope(flags);
52771
52797
  }
52772
52798
  enter(flags) {
52773
- if (flags === 256) {
52799
+ if (flags === 1024) {
52774
52800
  this.importsStack.push(/* @__PURE__ */ new Set());
52775
52801
  }
52776
52802
  super.enter(flags);
52777
52803
  }
52778
52804
  exit() {
52779
52805
  const flags = super.exit();
52780
- if (flags === 256) {
52806
+ if (flags === 1024) {
52781
52807
  this.importsStack.pop();
52782
52808
  }
52783
52809
  return flags;
@@ -53018,10 +53044,8 @@ var require_lib2 = __commonJS({
53018
53044
  setLeadingComments(commentWS.trailingNode, comments);
53019
53045
  }
53020
53046
  } else {
53021
- const {
53022
- containingNode: node,
53023
- start: commentStart
53024
- } = commentWS;
53047
+ const node = commentWS.containingNode;
53048
+ const commentStart = commentWS.start;
53025
53049
  if (this.input.charCodeAt(this.offsetToSourcePos(commentStart) - 1) === 44) {
53026
53050
  switch (node.type) {
53027
53051
  case "ObjectExpression":
@@ -54793,9 +54817,8 @@ var require_lib2 = __commonJS({
54793
54817
  return this.state.type === token2 && !this.state.containsEsc;
54794
54818
  }
54795
54819
  isUnparsedContextual(nameStart, name) {
54796
- const nameEnd = nameStart + name.length;
54797
- if (this.input.slice(nameStart, nameEnd) === name) {
54798
- const nextCh = this.input.charCodeAt(nameEnd);
54820
+ if (this.input.startsWith(name, nameStart)) {
54821
+ const nextCh = this.input.charCodeAt(nameStart + name.length);
54799
54822
  return !(isIdentifierChar(nextCh) || (nextCh & 64512) === 55296);
54800
54823
  }
54801
54824
  return false;
@@ -54898,9 +54921,10 @@ var require_lib2 = __commonJS({
54898
54921
  shorthandAssignLoc,
54899
54922
  doubleProtoLoc,
54900
54923
  privateKeyLoc,
54901
- optionalParametersLoc
54924
+ optionalParametersLoc,
54925
+ voidPatternLoc
54902
54926
  } = refExpressionErrors;
54903
- const hasErrors = !!shorthandAssignLoc || !!doubleProtoLoc || !!optionalParametersLoc || !!privateKeyLoc;
54927
+ const hasErrors = !!shorthandAssignLoc || !!doubleProtoLoc || !!optionalParametersLoc || !!privateKeyLoc || !!voidPatternLoc;
54904
54928
  if (!andThrow) {
54905
54929
  return hasErrors;
54906
54930
  }
@@ -54916,6 +54940,9 @@ var require_lib2 = __commonJS({
54916
54940
  if (optionalParametersLoc != null) {
54917
54941
  this.unexpected(optionalParametersLoc);
54918
54942
  }
54943
+ if (voidPatternLoc != null) {
54944
+ this.raise(Errors.InvalidCoverDiscardElement, voidPatternLoc);
54945
+ }
54919
54946
  }
54920
54947
  isLiteralPropertyName() {
54921
54948
  return tokenIsLiteralPropertyName(this.state.type);
@@ -54963,14 +54990,22 @@ var require_lib2 = __commonJS({
54963
54990
  }
54964
54991
  enterInitialScopes() {
54965
54992
  let paramFlags = 0;
54966
- if (this.inModule) {
54993
+ if (this.inModule || this.optionFlags & 1) {
54967
54994
  paramFlags |= 2;
54968
54995
  }
54969
54996
  if (this.optionFlags & 32) {
54970
54997
  paramFlags |= 1;
54971
54998
  }
54972
- this.scope.enter(1);
54999
+ const isCommonJS = !this.inModule && this.options.sourceType === "commonjs";
55000
+ if (isCommonJS || this.optionFlags & 2) {
55001
+ paramFlags |= 4;
55002
+ }
54973
55003
  this.prodParam.enter(paramFlags);
55004
+ let scopeFlags = isCommonJS ? 514 : 1;
55005
+ if (this.optionFlags & 4) {
55006
+ scopeFlags |= 512;
55007
+ }
55008
+ this.scope.enter(scopeFlags);
54974
55009
  }
54975
55010
  checkDestructuringPrivate(refExpressionErrors) {
54976
55011
  const {
@@ -54987,6 +55022,7 @@ var require_lib2 = __commonJS({
54987
55022
  this.doubleProtoLoc = null;
54988
55023
  this.privateKeyLoc = null;
54989
55024
  this.optionalParametersLoc = null;
55025
+ this.voidPatternLoc = null;
54990
55026
  }
54991
55027
  };
54992
55028
  var Node2 = class {
@@ -55105,7 +55141,7 @@ var require_lib2 = __commonJS({
55105
55141
  if (isLHS) {
55106
55142
  if (parenthesized.type === "Identifier") {
55107
55143
  this.expressionScope.recordArrowParameterBindingError(Errors.InvalidParenthesizedAssignment, node);
55108
- } else if (parenthesized.type !== "MemberExpression" && !this.isOptionalMemberExpression(parenthesized)) {
55144
+ } else if (parenthesized.type !== "CallExpression" && parenthesized.type !== "MemberExpression" && !this.isOptionalMemberExpression(parenthesized)) {
55109
55145
  this.raise(Errors.InvalidParenthesizedAssignment, node);
55110
55146
  }
55111
55147
  } else {
@@ -55118,6 +55154,7 @@ var require_lib2 = __commonJS({
55118
55154
  case "ArrayPattern":
55119
55155
  case "AssignmentPattern":
55120
55156
  case "RestElement":
55157
+ case "VoidPattern":
55121
55158
  break;
55122
55159
  case "ObjectExpression":
55123
55160
  this.castNodeTo(node, "ObjectPattern");
@@ -55155,6 +55192,9 @@ var require_lib2 = __commonJS({
55155
55192
  }
55156
55193
  this.castNodeTo(node, "AssignmentPattern");
55157
55194
  delete node.operator;
55195
+ if (node.left.type === "VoidPattern") {
55196
+ this.raise(Errors.VoidPatternInitializer, node.left);
55197
+ }
55158
55198
  this.toAssignable(node.left, isLHS);
55159
55199
  break;
55160
55200
  case "ParenthesizedExpression":
@@ -55210,6 +55250,7 @@ var require_lib2 = __commonJS({
55210
55250
  case "ArrayPattern":
55211
55251
  case "AssignmentPattern":
55212
55252
  case "RestElement":
55253
+ case "VoidPattern":
55213
55254
  return true;
55214
55255
  case "ObjectExpression": {
55215
55256
  const last = node.properties.length - 1;
@@ -55254,7 +55295,11 @@ var require_lib2 = __commonJS({
55254
55295
  parseRestBinding() {
55255
55296
  const node = this.startNode();
55256
55297
  this.next();
55257
- node.argument = this.parseBindingAtom();
55298
+ const argument = this.parseBindingAtom();
55299
+ if (argument.type === "VoidPattern") {
55300
+ this.raise(Errors.UnexpectedVoidPattern, argument);
55301
+ }
55302
+ node.argument = argument;
55258
55303
  return this.finishNode(node, "RestElement");
55259
55304
  }
55260
55305
  parseBindingAtom() {
@@ -55267,6 +55312,8 @@ var require_lib2 = __commonJS({
55267
55312
  }
55268
55313
  case 5:
55269
55314
  return this.parseObjectLike(8, true);
55315
+ case 88:
55316
+ return this.parseVoidPattern(null);
55270
55317
  }
55271
55318
  return this.parseIdentifier();
55272
55319
  }
@@ -55311,7 +55358,12 @@ var require_lib2 = __commonJS({
55311
55358
  }
55312
55359
  parseBindingRestProperty(prop) {
55313
55360
  this.next();
55314
- prop.argument = this.parseIdentifier();
55361
+ if (this.hasPlugin("discardBinding") && this.match(88)) {
55362
+ prop.argument = this.parseVoidPattern(null);
55363
+ this.raise(Errors.UnexpectedVoidPattern, prop.argument);
55364
+ } else {
55365
+ prop.argument = this.parseIdentifier();
55366
+ }
55315
55367
  this.checkCommaAfterRest(125);
55316
55368
  return this.finishNode(prop, "RestElement");
55317
55369
  }
@@ -55354,11 +55406,14 @@ var require_lib2 = __commonJS({
55354
55406
  left = left != null ? left : this.parseBindingAtom();
55355
55407
  if (!this.eat(29)) return left;
55356
55408
  const node = this.startNodeAt(startLoc);
55409
+ if (left.type === "VoidPattern") {
55410
+ this.raise(Errors.VoidPatternInitializer, left);
55411
+ }
55357
55412
  node.left = left;
55358
55413
  node.right = this.parseMaybeAssignAllowIn();
55359
55414
  return this.finishNode(node, "AssignmentPattern");
55360
55415
  }
55361
- isValidLVal(type, isUnparenthesizedInAssign, binding) {
55416
+ isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding) {
55362
55417
  switch (type) {
55363
55418
  case "AssignmentPattern":
55364
55419
  return "left";
@@ -55372,13 +55427,19 @@ var require_lib2 = __commonJS({
55372
55427
  return "elements";
55373
55428
  case "ObjectPattern":
55374
55429
  return "properties";
55430
+ case "VoidPattern":
55431
+ return true;
55432
+ case "CallExpression":
55433
+ if (!disallowCallExpression && !this.state.strict && this.optionFlags & 8192) {
55434
+ return true;
55435
+ }
55375
55436
  }
55376
55437
  return false;
55377
55438
  }
55378
55439
  isOptionalMemberExpression(expression) {
55379
55440
  return expression.type === "OptionalMemberExpression";
55380
55441
  }
55381
- checkLVal(expression, ancestor, binding = 64, checkClashes = false, strictModeChanged = false, hasParenthesizedAncestor = false) {
55442
+ checkLVal(expression, ancestor, binding = 64, checkClashes = false, strictModeChanged = false, hasParenthesizedAncestor = false, disallowCallExpression = false) {
55382
55443
  var _expression$extra;
55383
55444
  const type = expression.type;
55384
55445
  if (this.isObjectMethod(expression)) return;
@@ -55410,8 +55471,12 @@ var require_lib2 = __commonJS({
55410
55471
  }
55411
55472
  }
55412
55473
  return;
55474
+ } else if (type === "VoidPattern" && ancestor.type === "CatchClause") {
55475
+ this.raise(Errors.VoidPatternCatchClauseParam, expression);
55413
55476
  }
55414
- const validity = this.isValidLVal(type, !(hasParenthesizedAncestor || (_expression$extra = expression.extra) != null && _expression$extra.parenthesized) && ancestor.type === "AssignmentExpression", binding);
55477
+ const unwrappedExpression = unwrapParenthesizedExpression(expression);
55478
+ disallowCallExpression || (disallowCallExpression = unwrappedExpression.type === "CallExpression" && (unwrappedExpression.callee.type === "Import" || unwrappedExpression.callee.type === "Super"));
55479
+ const validity = this.isValidLVal(type, disallowCallExpression, !(hasParenthesizedAncestor || (_expression$extra = expression.extra) != null && _expression$extra.parenthesized) && ancestor.type === "AssignmentExpression", binding);
55415
55480
  if (validity === true) return;
55416
55481
  if (validity === false) {
55417
55482
  const ParseErrorClass = binding === 64 ? Errors.InvalidLhs : Errors.InvalidLhsBinding;
@@ -55434,11 +55499,11 @@ var require_lib2 = __commonJS({
55434
55499
  if (Array.isArray(val)) {
55435
55500
  for (const child of val) {
55436
55501
  if (child) {
55437
- this.checkLVal(child, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression);
55502
+ this.checkLVal(child, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression, true);
55438
55503
  }
55439
55504
  }
55440
55505
  } else if (val) {
55441
- this.checkLVal(val, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression);
55506
+ this.checkLVal(val, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression, disallowCallExpression);
55442
55507
  }
55443
55508
  }
55444
55509
  checkIdentifier(at, bindingType, strictModeChanged = false) {
@@ -55486,6 +55551,7 @@ var require_lib2 = __commonJS({
55486
55551
  return true;
55487
55552
  }
55488
55553
  };
55554
+ var keywordAndTSRelationalOperator = /in(?:stanceof)?|as|satisfies/y;
55489
55555
  function nonNull(x) {
55490
55556
  if (x == null) {
55491
55557
  throw new Error(`Unexpected ${x} value.`);
@@ -55544,6 +55610,7 @@ var require_lib2 = __commonJS({
55544
55610
  InvalidHeritageClauseType: ({
55545
55611
  token: token2
55546
55612
  }) => `'${token2}' list can only include identifiers or qualified-names with optional type arguments.`,
55613
+ InvalidModifierOnAwaitUsingDeclaration: (modifier) => `'${modifier}' modifier cannot appear on an await using declaration.`,
55547
55614
  InvalidModifierOnTypeMember: ({
55548
55615
  modifier
55549
55616
  }) => `'${modifier}' modifier cannot appear on a type member.`,
@@ -55553,6 +55620,7 @@ var require_lib2 = __commonJS({
55553
55620
  InvalidModifierOnTypeParameterPositions: ({
55554
55621
  modifier
55555
55622
  }) => `'${modifier}' modifier can only appear on a type parameter of a class, interface or type alias.`,
55623
+ InvalidModifierOnUsingDeclaration: (modifier) => `'${modifier}' modifier cannot appear on a using declaration.`,
55556
55624
  InvalidModifiersOrder: ({
55557
55625
  orderedModifiers
55558
55626
  }) => `'${orderedModifiers[0]}' modifier must precede '${orderedModifiers[1]}' modifier.`,
@@ -55591,7 +55659,8 @@ var require_lib2 = __commonJS({
55591
55659
  UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.",
55592
55660
  UnsupportedSignatureParameterKind: ({
55593
55661
  type
55594
- }) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${type}.`
55662
+ }) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${type}.`,
55663
+ UsingDeclarationInAmbientContext: (kind) => `'${kind}' declarations are not allowed in ambient contexts.`
55595
55664
  });
55596
55665
  function keywordTypeFromName(value2) {
55597
55666
  switch (value2) {
@@ -55866,6 +55935,7 @@ var require_lib2 = __commonJS({
55866
55935
  this.expect(14);
55867
55936
  withProperty.value = this.tsParseImportTypeWithPropertyValue();
55868
55937
  node.properties = [this.finishObjectProperty(withProperty)];
55938
+ this.eat(12);
55869
55939
  this.expect(8);
55870
55940
  return this.finishNode(node, "ObjectExpression");
55871
55941
  }
@@ -56368,7 +56438,7 @@ var require_lib2 = __commonJS({
56368
56438
  }
56369
56439
  }
56370
56440
  }
56371
- this.unexpected();
56441
+ throw this.unexpected();
56372
56442
  }
56373
56443
  tsParseArrayTypeOrHigher() {
56374
56444
  const {
@@ -56605,7 +56675,7 @@ var require_lib2 = __commonJS({
56605
56675
  return this.finishNode(node, "TSConditionalType");
56606
56676
  }
56607
56677
  isAbstractConstructorSignature() {
56608
- return this.isContextual(124) && this.lookahead().type === 77;
56678
+ return this.isContextual(124) && this.isLookaheadContextual("new");
56609
56679
  }
56610
56680
  tsParseNonConditionalType() {
56611
56681
  if (this.tsIsStartOfFunctionType()) {
@@ -56676,7 +56746,7 @@ var require_lib2 = __commonJS({
56676
56746
  node.typeAnnotation = this.tsInType(() => {
56677
56747
  node.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers);
56678
56748
  this.expect(29);
56679
- if (this.isContextual(114) && this.lookahead().type !== 16) {
56749
+ if (this.isContextual(114) && this.lookaheadCharCode() !== 46) {
56680
56750
  const node2 = this.startNode();
56681
56751
  this.next();
56682
56752
  return this.finishNode(node2, "TSIntrinsicKeyword");
@@ -56789,7 +56859,7 @@ var require_lib2 = __commonJS({
56789
56859
  this.tsParseModuleOrNamespaceDeclaration(inner, true);
56790
56860
  node.body = inner;
56791
56861
  } else {
56792
- this.scope.enter(256);
56862
+ this.scope.enter(1024);
56793
56863
  this.prodParam.enter(0);
56794
56864
  node.body = this.tsParseModuleBlock();
56795
56865
  this.prodParam.exit();
@@ -56811,7 +56881,7 @@ var require_lib2 = __commonJS({
56811
56881
  this.unexpected();
56812
56882
  }
56813
56883
  if (this.match(5)) {
56814
- this.scope.enter(256);
56884
+ this.scope.enter(1024);
56815
56885
  this.prodParam.enter(0);
56816
56886
  node.body = this.tsParseModuleBlock();
56817
56887
  this.prodParam.exit();
@@ -56874,94 +56944,79 @@ var require_lib2 = __commonJS({
56874
56944
  }
56875
56945
  this.state = state;
56876
56946
  }
56877
- tsTryParseDeclare(nany) {
56947
+ tsTryParseDeclare(node) {
56878
56948
  if (this.isLineTerminator()) {
56879
56949
  return;
56880
56950
  }
56881
- let startType = this.state.type;
56882
- let kind;
56883
- if (this.isContextual(100)) {
56884
- startType = 74;
56885
- kind = "let";
56886
- }
56951
+ const startType = this.state.type;
56887
56952
  return this.tsInAmbientContext(() => {
56888
56953
  switch (startType) {
56889
56954
  case 68:
56890
- nany.declare = true;
56891
- return super.parseFunctionStatement(nany, false, false);
56955
+ node.declare = true;
56956
+ return super.parseFunctionStatement(node, false, false);
56892
56957
  case 80:
56893
- nany.declare = true;
56894
- return this.parseClass(nany, true, false);
56958
+ node.declare = true;
56959
+ return this.parseClass(node, true, false);
56895
56960
  case 126:
56896
- return this.tsParseEnumDeclaration(nany, {
56961
+ return this.tsParseEnumDeclaration(node, {
56897
56962
  declare: true
56898
56963
  });
56899
56964
  case 112:
56900
- return this.tsParseAmbientExternalModuleDeclaration(nany);
56965
+ return this.tsParseAmbientExternalModuleDeclaration(node);
56966
+ case 100:
56967
+ if (this.state.containsEsc) {
56968
+ return;
56969
+ }
56901
56970
  case 75:
56902
56971
  case 74:
56903
56972
  if (!this.match(75) || !this.isLookaheadContextual("enum")) {
56904
- nany.declare = true;
56905
- return this.parseVarStatement(nany, kind || this.state.value, true);
56973
+ node.declare = true;
56974
+ return this.parseVarStatement(node, this.state.value, true);
56906
56975
  }
56907
56976
  this.expect(75);
56908
- return this.tsParseEnumDeclaration(nany, {
56977
+ return this.tsParseEnumDeclaration(node, {
56909
56978
  const: true,
56910
56979
  declare: true
56911
56980
  });
56981
+ case 107:
56982
+ if (this.isUsing()) {
56983
+ this.raise(TSErrors.InvalidModifierOnUsingDeclaration, this.state.startLoc, "declare");
56984
+ node.declare = true;
56985
+ return this.parseVarStatement(node, "using", true);
56986
+ }
56987
+ break;
56988
+ case 96:
56989
+ if (this.isAwaitUsing()) {
56990
+ this.raise(TSErrors.InvalidModifierOnAwaitUsingDeclaration, this.state.startLoc, "declare");
56991
+ node.declare = true;
56992
+ this.next();
56993
+ return this.parseVarStatement(node, "await using", true);
56994
+ }
56995
+ break;
56912
56996
  case 129: {
56913
- const result = this.tsParseInterfaceDeclaration(nany, {
56997
+ const result = this.tsParseInterfaceDeclaration(node, {
56914
56998
  declare: true
56915
56999
  });
56916
57000
  if (result) return result;
56917
57001
  }
56918
57002
  default:
56919
57003
  if (tokenIsIdentifier(startType)) {
56920
- return this.tsParseDeclaration(nany, this.state.value, true, null);
57004
+ return this.tsParseDeclaration(node, this.state.type, true, null);
56921
57005
  }
56922
57006
  }
56923
57007
  });
56924
57008
  }
56925
57009
  tsTryParseExportDeclaration() {
56926
- return this.tsParseDeclaration(this.startNode(), this.state.value, true, null);
56927
- }
56928
- tsParseExpressionStatement(node, expr, decorators) {
56929
- switch (expr.name) {
56930
- case "declare": {
56931
- const declaration = this.tsTryParseDeclare(node);
56932
- if (declaration) {
56933
- declaration.declare = true;
56934
- }
56935
- return declaration;
56936
- }
56937
- case "global":
56938
- if (this.match(5)) {
56939
- this.scope.enter(256);
56940
- this.prodParam.enter(0);
56941
- const mod = node;
56942
- mod.kind = "global";
56943
- {
56944
- node.global = true;
56945
- }
56946
- mod.id = expr;
56947
- mod.body = this.tsParseModuleBlock();
56948
- this.scope.exit();
56949
- this.prodParam.exit();
56950
- return this.finishNode(mod, "TSModuleDeclaration");
56951
- }
56952
- break;
56953
- default:
56954
- return this.tsParseDeclaration(node, expr.name, false, decorators);
56955
- }
57010
+ return this.tsParseDeclaration(this.startNode(), this.state.type, true, null);
56956
57011
  }
56957
- tsParseDeclaration(node, value2, next, decorators) {
56958
- switch (value2) {
56959
- case "abstract":
57012
+ tsParseDeclaration(node, type, next, decorators) {
57013
+ switch (type) {
57014
+ case 124:
56960
57015
  if (this.tsCheckLineTerminator(next) && (this.match(80) || tokenIsIdentifier(this.state.type))) {
56961
57016
  return this.tsParseAbstractDeclaration(node, decorators);
56962
57017
  }
56963
57018
  break;
56964
- case "module":
57019
+ case 127:
56965
57020
  if (this.tsCheckLineTerminator(next)) {
56966
57021
  if (this.match(134)) {
56967
57022
  return this.tsParseAmbientExternalModuleDeclaration(node);
@@ -56971,13 +57026,13 @@ var require_lib2 = __commonJS({
56971
57026
  }
56972
57027
  }
56973
57028
  break;
56974
- case "namespace":
57029
+ case 128:
56975
57030
  if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) {
56976
57031
  node.kind = "namespace";
56977
57032
  return this.tsParseModuleOrNamespaceDeclaration(node);
56978
57033
  }
56979
57034
  break;
56980
- case "type":
57035
+ case 130:
56981
57036
  if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) {
56982
57037
  return this.tsParseTypeAliasDeclaration(node);
56983
57038
  }
@@ -57118,8 +57173,8 @@ var require_lib2 = __commonJS({
57118
57173
  this.tsCheckForInvalidTypeCasts(exprList);
57119
57174
  return exprList;
57120
57175
  }
57121
- parseArrayLike(close2, canBePattern, isTuple, refExpressionErrors) {
57122
- const node = super.parseArrayLike(close2, canBePattern, isTuple, refExpressionErrors);
57176
+ parseArrayLike(close2, isTuple, refExpressionErrors) {
57177
+ const node = super.parseArrayLike(close2, isTuple, refExpressionErrors);
57123
57178
  if (node.type === "ArrayExpression") {
57124
57179
  this.tsCheckForInvalidTypeCasts(node.elements);
57125
57180
  }
@@ -57148,6 +57203,7 @@ var require_lib2 = __commonJS({
57148
57203
  if (!noCalls && this.atPossibleAsyncArrow(base)) {
57149
57204
  const asyncArrowFn = this.tsTryParseGenericAsyncArrowFunction(startLoc);
57150
57205
  if (asyncArrowFn) {
57206
+ state.stop = true;
57151
57207
  return asyncArrowFn;
57152
57208
  }
57153
57209
  }
@@ -57167,7 +57223,7 @@ var require_lib2 = __commonJS({
57167
57223
  if (!noCalls && this.eat(10)) {
57168
57224
  const node2 = this.startNodeAt(startLoc);
57169
57225
  node2.callee = base;
57170
- node2.arguments = this.parseCallExpressionArguments(11);
57226
+ node2.arguments = this.parseCallExpressionArguments();
57171
57227
  this.tsCheckForInvalidTypeCasts(node2.arguments);
57172
57228
  {
57173
57229
  node2.typeParameters = typeArguments;
@@ -57325,7 +57381,7 @@ var require_lib2 = __commonJS({
57325
57381
  }
57326
57382
  }
57327
57383
  isAbstractClass() {
57328
- return this.isContextual(124) && this.lookahead().type === 80;
57384
+ return this.isContextual(124) && this.isLookaheadContextual("class");
57329
57385
  }
57330
57386
  parseExportDefaultExpression() {
57331
57387
  if (this.isAbstractClass()) {
@@ -57346,6 +57402,10 @@ var require_lib2 = __commonJS({
57346
57402
  } = this.state;
57347
57403
  const declaration = super.parseVarStatement(node, kind, allowMissingInitializer || isAmbientContext);
57348
57404
  if (!isAmbientContext) return declaration;
57405
+ if (!node.declare && (kind === "using" || kind === "await using")) {
57406
+ this.raiseOverwrite(TSErrors.UsingDeclarationInAmbientContext, node, kind);
57407
+ return declaration;
57408
+ }
57349
57409
  for (const {
57350
57410
  id,
57351
57411
  init: init3
@@ -57360,19 +57420,78 @@ var require_lib2 = __commonJS({
57360
57420
  return declaration;
57361
57421
  }
57362
57422
  parseStatementContent(flags, decorators) {
57363
- if (this.match(75) && this.isLookaheadContextual("enum")) {
57364
- const node = this.startNode();
57365
- this.expect(75);
57366
- return this.tsParseEnumDeclaration(node, {
57367
- const: true
57368
- });
57369
- }
57370
- if (this.isContextual(126)) {
57371
- return this.tsParseEnumDeclaration(this.startNode());
57372
- }
57373
- if (this.isContextual(129)) {
57374
- const result = this.tsParseInterfaceDeclaration(this.startNode());
57375
- if (result) return result;
57423
+ if (!this.state.containsEsc) {
57424
+ switch (this.state.type) {
57425
+ case 75: {
57426
+ if (this.isLookaheadContextual("enum")) {
57427
+ const node = this.startNode();
57428
+ this.expect(75);
57429
+ return this.tsParseEnumDeclaration(node, {
57430
+ const: true
57431
+ });
57432
+ }
57433
+ break;
57434
+ }
57435
+ case 124:
57436
+ case 125: {
57437
+ if (this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()) {
57438
+ const token2 = this.state.type;
57439
+ const node = this.startNode();
57440
+ this.next();
57441
+ const declaration = token2 === 125 ? this.tsTryParseDeclare(node) : this.tsParseAbstractDeclaration(node, decorators);
57442
+ if (declaration) {
57443
+ if (token2 === 125) {
57444
+ declaration.declare = true;
57445
+ }
57446
+ return declaration;
57447
+ } else {
57448
+ node.expression = this.createIdentifier(this.startNodeAt(node.loc.start), token2 === 125 ? "declare" : "abstract");
57449
+ this.semicolon(false);
57450
+ return this.finishNode(node, "ExpressionStatement");
57451
+ }
57452
+ }
57453
+ break;
57454
+ }
57455
+ case 126:
57456
+ return this.tsParseEnumDeclaration(this.startNode());
57457
+ case 112: {
57458
+ const nextCh = this.lookaheadCharCode();
57459
+ if (nextCh === 123) {
57460
+ const node = this.startNode();
57461
+ return this.tsParseAmbientExternalModuleDeclaration(node);
57462
+ }
57463
+ break;
57464
+ }
57465
+ case 129: {
57466
+ const result = this.tsParseInterfaceDeclaration(this.startNode());
57467
+ if (result) return result;
57468
+ break;
57469
+ }
57470
+ case 127: {
57471
+ if (this.nextTokenIsIdentifierOrStringLiteralOnSameLine()) {
57472
+ const node = this.startNode();
57473
+ this.next();
57474
+ return this.tsParseDeclaration(node, 127, false, decorators);
57475
+ }
57476
+ break;
57477
+ }
57478
+ case 128: {
57479
+ if (this.nextTokenIsIdentifierOnSameLine()) {
57480
+ const node = this.startNode();
57481
+ this.next();
57482
+ return this.tsParseDeclaration(node, 128, false, decorators);
57483
+ }
57484
+ break;
57485
+ }
57486
+ case 130: {
57487
+ if (this.nextTokenIsIdentifierOnSameLine()) {
57488
+ const node = this.startNode();
57489
+ this.next();
57490
+ return this.tsParseTypeAliasDeclaration(node);
57491
+ }
57492
+ break;
57493
+ }
57494
+ }
57376
57495
  }
57377
57496
  return super.parseStatementContent(flags, decorators);
57378
57497
  }
@@ -57456,10 +57575,6 @@ var require_lib2 = __commonJS({
57456
57575
  this.raise(TSErrors.ClassMethodHasDeclare, methodOrProp);
57457
57576
  }
57458
57577
  }
57459
- parseExpressionStatement(node, expr, decorators) {
57460
- const decl = expr.type === "Identifier" ? this.tsParseExpressionStatement(node, expr, decorators) : void 0;
57461
- return decl || super.parseExpressionStatement(node, expr, decorators);
57462
- }
57463
57578
  shouldParseExportDeclaration() {
57464
57579
  if (this.tsIsDeclarationStart()) return true;
57465
57580
  return super.shouldParseExportDeclaration();
@@ -57784,7 +57899,7 @@ var require_lib2 = __commonJS({
57784
57899
  super.checkToRestConversion(node, allowPattern);
57785
57900
  }
57786
57901
  }
57787
- isValidLVal(type, isUnparenthesizedInAssign, binding) {
57902
+ isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding) {
57788
57903
  switch (type) {
57789
57904
  case "TSTypeCastExpression":
57790
57905
  return true;
@@ -57797,7 +57912,7 @@ var require_lib2 = __commonJS({
57797
57912
  case "TSTypeAssertion":
57798
57913
  return (binding !== 64 || !isUnparenthesizedInAssign) && ["expression", true];
57799
57914
  default:
57800
- return super.isValidLVal(type, isUnparenthesizedInAssign, binding);
57915
+ return super.isValidLVal(type, disallowCallExpression, isUnparenthesizedInAssign, binding);
57801
57916
  }
57802
57917
  }
57803
57918
  parseBindingAtom() {
@@ -57959,10 +58074,11 @@ var require_lib2 = __commonJS({
57959
58074
  node.abstract = true;
57960
58075
  this.raise(TSErrors.NonClassMethodPropertyHasAbstractModifier, node);
57961
58076
  return this.tsParseInterfaceDeclaration(node);
58077
+ } else {
58078
+ return null;
57962
58079
  }
57963
- } else {
57964
- this.unexpected(null, 80);
57965
58080
  }
58081
+ throw this.unexpected(null, 80);
57966
58082
  }
57967
58083
  parseMethod(node, isGenerator, isAsync2, isConstructor, allowDirectSuper, type, inClassScope) {
57968
58084
  const method = super.parseMethod(node, isGenerator, isAsync2, isConstructor, allowDirectSuper, type, inClassScope);
@@ -58072,7 +58188,7 @@ var require_lib2 = __commonJS({
58072
58188
  }
58073
58189
  }
58074
58190
  fillOptionalPropertiesForTSESLint(node) {
58075
- var _node$directive, _node$decorators, _node$optional, _node$typeAnnotation, _node$accessibility, _node$decorators2, _node$override, _node$readonly, _node$static, _node$declare, _node$returnType, _node$typeParameters, _node$optional2, _node$optional3, _node$accessibility2, _node$readonly2, _node$static2, _node$declare2, _node$definite, _node$readonly3, _node$typeAnnotation2, _node$accessibility3, _node$decorators3, _node$override2, _node$optional4, _node$id, _node$abstract, _node$declare3, _node$decorators4, _node$implements, _node$superTypeArgume, _node$typeParameters2, _node$declare4, _node$definite2, _node$const, _node$declare5, _node$computed, _node$qualifier, _node$options, _node$declare6, _node$extends, _node$declare7, _node$global, _node$const2, _node$in, _node$out;
58191
+ var _node$directive, _node$decorators, _node$optional, _node$typeAnnotation, _node$accessibility, _node$decorators2, _node$override, _node$readonly, _node$static, _node$declare, _node$returnType, _node$typeParameters, _node$optional2, _node$optional3, _node$accessibility2, _node$readonly2, _node$static2, _node$declare2, _node$definite, _node$readonly3, _node$typeAnnotation2, _node$accessibility3, _node$decorators3, _node$override2, _node$optional4, _node$id, _node$abstract, _node$declare3, _node$decorators4, _node$implements, _node$superTypeArgume, _node$typeParameters2, _node$declare4, _node$definite2, _node$const, _node$declare5, _node$computed, _node$qualifier, _node$options, _node$declare6, _node$extends, _node$optional5, _node$readonly4, _node$declare7, _node$global, _node$const2, _node$in, _node$out;
58076
58192
  switch (node.type) {
58077
58193
  case "ExpressionStatement":
58078
58194
  (_node$directive = node.directive) != null ? _node$directive : node.directive = void 0;
@@ -58163,6 +58279,10 @@ var require_lib2 = __commonJS({
58163
58279
  (_node$declare6 = node.declare) != null ? _node$declare6 : node.declare = false;
58164
58280
  (_node$extends = node.extends) != null ? _node$extends : node.extends = [];
58165
58281
  return;
58282
+ case "TSMappedType":
58283
+ (_node$optional5 = node.optional) != null ? _node$optional5 : node.optional = false;
58284
+ (_node$readonly4 = node.readonly) != null ? _node$readonly4 : node.readonly = void 0;
58285
+ return;
58166
58286
  case "TSModuleDeclaration":
58167
58287
  (_node$declare7 = node.declare) != null ? _node$declare7 : node.declare = false;
58168
58288
  (_node$global = node.global) != null ? _node$global : node.global = node.kind === "global";
@@ -58174,6 +58294,32 @@ var require_lib2 = __commonJS({
58174
58294
  return;
58175
58295
  }
58176
58296
  }
58297
+ chStartsBindingIdentifierAndNotRelationalOperator(ch, pos) {
58298
+ if (isIdentifierStart(ch)) {
58299
+ keywordAndTSRelationalOperator.lastIndex = pos;
58300
+ if (keywordAndTSRelationalOperator.test(this.input)) {
58301
+ const endCh = this.codePointAtPos(keywordAndTSRelationalOperator.lastIndex);
58302
+ if (!isIdentifierChar(endCh) && endCh !== 92) {
58303
+ return false;
58304
+ }
58305
+ }
58306
+ return true;
58307
+ } else if (ch === 92) {
58308
+ return true;
58309
+ } else {
58310
+ return false;
58311
+ }
58312
+ }
58313
+ nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine() {
58314
+ const next = this.nextTokenInLineStart();
58315
+ const nextCh = this.codePointAtPos(next);
58316
+ return this.chStartsBindingIdentifierAndNotRelationalOperator(nextCh, next);
58317
+ }
58318
+ nextTokenIsIdentifierOrStringLiteralOnSameLine() {
58319
+ const next = this.nextTokenInLineStart();
58320
+ const nextCh = this.codePointAtPos(next);
58321
+ return this.chStartsBindingIdentifier(nextCh, next) || nextCh === 34 || nextCh === 39;
58322
+ }
58177
58323
  };
58178
58324
  function isPossiblyLiteralEnum(expression) {
58179
58325
  if (expression.type !== "MemberExpression") return false;
@@ -58302,8 +58448,8 @@ var require_lib2 = __commonJS({
58302
58448
  parseBindingAtom() {
58303
58449
  return this.parsePlaceholder("Pattern") || super.parseBindingAtom();
58304
58450
  }
58305
- isValidLVal(type, isParenthesized, binding) {
58306
- return type === "Placeholder" || super.isValidLVal(type, isParenthesized, binding);
58451
+ isValidLVal(type, disallowCallExpression, isParenthesized, binding) {
58452
+ return type === "Placeholder" || super.isValidLVal(type, disallowCallExpression, isParenthesized, binding);
58307
58453
  }
58308
58454
  toAssignable(node, isLHS) {
58309
58455
  if (node && node.type === "Placeholder" && node.expectedNode === "Expression") {
@@ -58316,8 +58462,8 @@ var require_lib2 = __commonJS({
58316
58462
  if (super.chStartsBindingIdentifier(ch, pos)) {
58317
58463
  return true;
58318
58464
  }
58319
- const nextToken = this.lookahead();
58320
- if (nextToken.type === 133) {
58465
+ const next = this.nextTokenStart();
58466
+ if (this.input.charCodeAt(next) === 37 && this.input.charCodeAt(next + 1) === 37) {
58321
58467
  return true;
58322
58468
  }
58323
58469
  return false;
@@ -58557,6 +58703,9 @@ var require_lib2 = __commonJS({
58557
58703
  if (pluginsMap.has("optionalChainingAssign") && pluginsMap.get("optionalChainingAssign").version !== "2023-07") {
58558
58704
  throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");
58559
58705
  }
58706
+ if (pluginsMap.has("discardBinding") && pluginsMap.get("discardBinding").syntaxType !== "void") {
58707
+ throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");
58708
+ }
58560
58709
  }
58561
58710
  var mixinPlugins = {
58562
58711
  estree,
@@ -58598,9 +58747,14 @@ var require_lib2 = __commonJS({
58598
58747
  getExpression() {
58599
58748
  this.enterInitialScopes();
58600
58749
  this.nextToken();
58750
+ if (this.match(140)) {
58751
+ throw this.raise(Errors.ParseExpressionEmptyInput, this.state.startLoc);
58752
+ }
58601
58753
  const expr = this.parseExpression();
58602
58754
  if (!this.match(140)) {
58603
- this.unexpected();
58755
+ throw this.raise(Errors.ParseExpressionExpectsEOF, this.state.startLoc, {
58756
+ unexpected: this.input.codePointAt(this.state.start)
58757
+ });
58604
58758
  }
58605
58759
  this.finalizeRemainingComments();
58606
58760
  expr.comments = this.comments;
@@ -58687,12 +58841,15 @@ var require_lib2 = __commonJS({
58687
58841
  this.checkDestructuringPrivate(refExpressionErrors);
58688
58842
  refExpressionErrors.privateKeyLoc = null;
58689
58843
  }
58844
+ if (refExpressionErrors.voidPatternLoc != null && refExpressionErrors.voidPatternLoc.index >= startIndex) {
58845
+ refExpressionErrors.voidPatternLoc = null;
58846
+ }
58690
58847
  } else {
58691
58848
  node.left = left;
58692
58849
  }
58693
58850
  this.next();
58694
58851
  node.right = this.parseMaybeAssign();
58695
- this.checkLVal(left, this.finishNode(node, "AssignmentExpression"));
58852
+ this.checkLVal(left, this.finishNode(node, "AssignmentExpression"), void 0, void 0, void 0, void 0, operator === "||=" || operator === "&&=" || operator === "??=");
58696
58853
  return node;
58697
58854
  } else if (ownExpressionErrors) {
58698
58855
  this.checkExpressionErrors(refExpressionErrors, true);
@@ -59015,9 +59172,9 @@ var require_lib2 = __commonJS({
59015
59172
  node.optional = optional;
59016
59173
  }
59017
59174
  if (optional) {
59018
- node.arguments = this.parseCallExpressionArguments(11);
59175
+ node.arguments = this.parseCallExpressionArguments();
59019
59176
  } else {
59020
- node.arguments = this.parseCallExpressionArguments(11, base.type !== "Super", node, refExpressionErrors);
59177
+ node.arguments = this.parseCallExpressionArguments(base.type !== "Super", node, refExpressionErrors);
59021
59178
  }
59022
59179
  let finishedNode = this.finishCallExpression(node, optionalChainMember);
59023
59180
  if (maybeAsyncArrow && this.shouldParseAsyncArrow() && !optional) {
@@ -59065,17 +59222,17 @@ var require_lib2 = __commonJS({
59065
59222
  }
59066
59223
  return this.finishNode(node, optional ? "OptionalCallExpression" : "CallExpression");
59067
59224
  }
59068
- parseCallExpressionArguments(close2, allowPlaceholder, nodeForExtra, refExpressionErrors) {
59225
+ parseCallExpressionArguments(allowPlaceholder, nodeForExtra, refExpressionErrors) {
59069
59226
  const elts = [];
59070
59227
  let first = true;
59071
59228
  const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
59072
59229
  this.state.inFSharpPipelineDirectBody = false;
59073
- while (!this.eat(close2)) {
59230
+ while (!this.eat(11)) {
59074
59231
  if (first) {
59075
59232
  first = false;
59076
59233
  } else {
59077
59234
  this.expect(12);
59078
- if (this.match(close2)) {
59235
+ if (this.match(11)) {
59079
59236
  if (nodeForExtra) {
59080
59237
  this.addTrailingCommaExtraToNode(nodeForExtra);
59081
59238
  }
@@ -59083,7 +59240,7 @@ var require_lib2 = __commonJS({
59083
59240
  break;
59084
59241
  }
59085
59242
  }
59086
- elts.push(this.parseExprListItem(false, refExpressionErrors, allowPlaceholder));
59243
+ elts.push(this.parseExprListItem(11, false, refExpressionErrors, allowPlaceholder));
59087
59244
  }
59088
59245
  this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
59089
59246
  return elts;
@@ -59162,7 +59319,7 @@ var require_lib2 = __commonJS({
59162
59319
  return this.parseParenAndDistinguishExpression(canBeArrow);
59163
59320
  }
59164
59321
  case 0: {
59165
- return this.parseArrayLike(3, true, false, refExpressionErrors);
59322
+ return this.parseArrayLike(3, false, refExpressionErrors);
59166
59323
  }
59167
59324
  case 5: {
59168
59325
  return this.parseObjectLike(8, false, false, refExpressionErrors);
@@ -59212,24 +59369,21 @@ var require_lib2 = __commonJS({
59212
59369
  if (pipeProposal) {
59213
59370
  return this.parseTopicReference(pipeProposal);
59214
59371
  }
59215
- this.unexpected();
59216
- break;
59372
+ throw this.unexpected();
59217
59373
  }
59218
59374
  case 47: {
59219
59375
  const lookaheadCh = this.input.codePointAt(this.nextTokenStart());
59220
59376
  if (isIdentifierStart(lookaheadCh) || lookaheadCh === 62) {
59221
- this.expectOnePlugin(["jsx", "flow", "typescript"]);
59222
- } else {
59223
- this.unexpected();
59377
+ throw this.expectOnePlugin(["jsx", "flow", "typescript"]);
59224
59378
  }
59225
- break;
59379
+ throw this.unexpected();
59226
59380
  }
59227
59381
  default:
59228
59382
  {
59229
59383
  if (type === 137) {
59230
59384
  return this.parseDecimalLiteral(this.state.value);
59231
59385
  } else if (type === 2 || type === 1) {
59232
- return this.parseArrayLike(this.state.type === 2 ? 4 : 3, false, true);
59386
+ return this.parseArrayLike(this.state.type === 2 ? 4 : 3, true);
59233
59387
  } else if (type === 6 || type === 7) {
59234
59388
  return this.parseObjectLike(this.state.type === 6 ? 9 : 8, false, true);
59235
59389
  }
@@ -59266,7 +59420,7 @@ var require_lib2 = __commonJS({
59266
59420
  }
59267
59421
  return id;
59268
59422
  } else {
59269
- this.unexpected();
59423
+ throw this.unexpected();
59270
59424
  }
59271
59425
  }
59272
59426
  }
@@ -59279,9 +59433,8 @@ var require_lib2 = __commonJS({
59279
59433
  this.state.end--;
59280
59434
  this.state.endLoc = createPositionWithColumnOffset(this.state.endLoc, -1);
59281
59435
  return this.parseTopicReference(pipeProposal);
59282
- } else {
59283
- this.unexpected();
59284
59436
  }
59437
+ throw this.unexpected();
59285
59438
  }
59286
59439
  parseTopicReference(pipeProposal) {
59287
59440
  const node = this.startNode();
@@ -59356,10 +59509,18 @@ var require_lib2 = __commonJS({
59356
59509
  parseSuper() {
59357
59510
  const node = this.startNode();
59358
59511
  this.next();
59359
- if (this.match(10) && !this.scope.allowDirectSuper && !(this.optionFlags & 16)) {
59360
- this.raise(Errors.SuperNotAllowed, node);
59361
- } else if (!this.scope.allowSuper && !(this.optionFlags & 16)) {
59362
- this.raise(Errors.UnexpectedSuper, node);
59512
+ if (this.match(10) && !this.scope.allowDirectSuper) {
59513
+ {
59514
+ if (!(this.optionFlags & 16)) {
59515
+ this.raise(Errors.SuperNotAllowed, node);
59516
+ }
59517
+ }
59518
+ } else if (!this.scope.allowSuper) {
59519
+ {
59520
+ if (!(this.optionFlags & 16)) {
59521
+ this.raise(Errors.UnexpectedSuper, node);
59522
+ }
59523
+ }
59363
59524
  }
59364
59525
  if (!this.match(10) && !this.match(0) && !this.match(16)) {
59365
59526
  this.raise(Errors.UnsupportedSuper, node);
@@ -59438,7 +59599,9 @@ var require_lib2 = __commonJS({
59438
59599
  return this.parseLiteral(value2, "NumericLiteral");
59439
59600
  }
59440
59601
  parseBigIntLiteral(value2) {
59441
- return this.parseLiteral(value2, "BigIntLiteral");
59602
+ {
59603
+ return this.parseLiteral(value2, "BigIntLiteral");
59604
+ }
59442
59605
  }
59443
59606
  parseDecimalLiteral(value2) {
59444
59607
  return this.parseLiteral(value2, "DecimalLiteral");
@@ -59495,7 +59658,7 @@ var require_lib2 = __commonJS({
59495
59658
  break;
59496
59659
  }
59497
59660
  } else {
59498
- exprList.push(this.parseMaybeAssignAllowIn(refExpressionErrors, this.parseParenItem));
59661
+ exprList.push(this.parseMaybeAssignAllowInOrVoidPattern(11, refExpressionErrors, this.parseParenItem));
59499
59662
  }
59500
59663
  }
59501
59664
  const innerEndLoc = this.state.lastTokEndLoc;
@@ -59557,7 +59720,7 @@ var require_lib2 = __commonJS({
59557
59720
  const meta = this.createIdentifier(this.startNodeAtNode(node), "new");
59558
59721
  this.next();
59559
59722
  const metaProp = this.parseMetaProperty(node, meta, "target");
59560
- if (!this.scope.inNonArrowFunction && !this.scope.inClass && !(this.optionFlags & 4)) {
59723
+ if (!this.scope.allowNewTarget) {
59561
59724
  this.raise(Errors.UnexpectedNewTarget, metaProp);
59562
59725
  }
59563
59726
  return metaProp;
@@ -59772,7 +59935,7 @@ var require_lib2 = __commonJS({
59772
59935
  parseObjectProperty(prop, startLoc, isPattern, refExpressionErrors) {
59773
59936
  prop.shorthand = false;
59774
59937
  if (this.eat(14)) {
59775
- prop.value = isPattern ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowIn(refExpressionErrors);
59938
+ prop.value = isPattern ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowInOrVoidPattern(8, refExpressionErrors);
59776
59939
  return this.finishObjectProperty(prop);
59777
59940
  }
59778
59941
  if (!prop.computed && prop.key.type === "Identifier") {
@@ -59862,7 +60025,7 @@ var require_lib2 = __commonJS({
59862
60025
  parseMethod(node, isGenerator, isAsync2, isConstructor, allowDirectSuper, type, inClassScope = false) {
59863
60026
  this.initFunction(node, isAsync2);
59864
60027
  node.generator = isGenerator;
59865
- this.scope.enter(2 | 16 | (inClassScope ? 64 : 0) | (allowDirectSuper ? 32 : 0));
60028
+ this.scope.enter(514 | 16 | (inClassScope ? 576 : 0) | (allowDirectSuper ? 32 : 0));
59866
60029
  this.prodParam.enter(functionFlags(isAsync2, node.generator));
59867
60030
  this.parseFunctionParams(node, isConstructor);
59868
60031
  const finishedNode = this.parseFunctionBodyAndFinish(node, type, true);
@@ -59870,7 +60033,7 @@ var require_lib2 = __commonJS({
59870
60033
  this.scope.exit();
59871
60034
  return finishedNode;
59872
60035
  }
59873
- parseArrayLike(close2, canBePattern, isTuple, refExpressionErrors) {
60036
+ parseArrayLike(close2, isTuple, refExpressionErrors) {
59874
60037
  if (isTuple) {
59875
60038
  this.expectPlugin("recordAndTuple");
59876
60039
  }
@@ -59883,7 +60046,7 @@ var require_lib2 = __commonJS({
59883
60046
  return this.finishNode(node, isTuple ? "TupleExpression" : "ArrayExpression");
59884
60047
  }
59885
60048
  parseArrowExpression(node, params, isAsync2, trailingCommaLoc) {
59886
- this.scope.enter(2 | 4);
60049
+ this.scope.enter(514 | 4);
59887
60050
  let flags = functionFlags(isAsync2, false);
59888
60051
  if (!this.match(5) && this.prodParam.hasIn) {
59889
60052
  flags |= 8;
@@ -59971,11 +60134,11 @@ var require_lib2 = __commonJS({
59971
60134
  break;
59972
60135
  }
59973
60136
  }
59974
- elts.push(this.parseExprListItem(allowEmpty, refExpressionErrors));
60137
+ elts.push(this.parseExprListItem(close2, allowEmpty, refExpressionErrors));
59975
60138
  }
59976
60139
  return elts;
59977
60140
  }
59978
- parseExprListItem(allowEmpty, refExpressionErrors, allowPlaceholder) {
60141
+ parseExprListItem(close2, allowEmpty, refExpressionErrors, allowPlaceholder) {
59979
60142
  let elt;
59980
60143
  if (this.match(12)) {
59981
60144
  if (!allowEmpty) {
@@ -59996,7 +60159,7 @@ var require_lib2 = __commonJS({
59996
60159
  this.next();
59997
60160
  elt = this.finishNode(node, "ArgumentPlaceholder");
59998
60161
  } else {
59999
- elt = this.parseMaybeAssignAllowIn(refExpressionErrors, this.parseParenItem);
60162
+ elt = this.parseMaybeAssignAllowInOrVoidPattern(close2, refExpressionErrors, this.parseParenItem);
60000
60163
  }
60001
60164
  return elt;
60002
60165
  }
@@ -60079,7 +60242,7 @@ var require_lib2 = __commonJS({
60079
60242
  }
60080
60243
  }
60081
60244
  recordAwaitIfAllowed() {
60082
- const isAwaitAllowed = this.prodParam.hasAwait || this.optionFlags & 1 && !this.scope.inFunction;
60245
+ const isAwaitAllowed = this.prodParam.hasAwait;
60083
60246
  if (isAwaitAllowed && !this.scope.inFunction) {
60084
60247
  this.state.hasTopLevelAwait = true;
60085
60248
  }
@@ -60298,6 +60461,24 @@ var require_lib2 = __commonJS({
60298
60461
  }
60299
60462
  return this.finishNode(node, "ModuleExpression");
60300
60463
  }
60464
+ parseVoidPattern(refExpressionErrors) {
60465
+ this.expectPlugin("discardBinding");
60466
+ const node = this.startNode();
60467
+ if (refExpressionErrors != null) {
60468
+ refExpressionErrors.voidPatternLoc = this.state.startLoc;
60469
+ }
60470
+ this.next();
60471
+ return this.finishNode(node, "VoidPattern");
60472
+ }
60473
+ parseMaybeAssignAllowInOrVoidPattern(close2, refExpressionErrors, afterLeftParse) {
60474
+ if (refExpressionErrors != null && this.match(88)) {
60475
+ const nextCode = this.lookaheadCharCode();
60476
+ if (nextCode === 44 || nextCode === (close2 === 3 ? 93 : close2 === 8 ? 125 : 41) || nextCode === 61) {
60477
+ return this.parseMaybeDefault(this.state.startLoc, this.parseVoidPattern(refExpressionErrors));
60478
+ }
60479
+ }
60480
+ return this.parseMaybeAssignAllowIn(refExpressionErrors, afterLeftParse);
60481
+ }
60301
60482
  parsePropertyNamePrefixOperator(prop) {
60302
60483
  }
60303
60484
  };
@@ -60418,14 +60599,14 @@ var require_lib2 = __commonJS({
60418
60599
  }
60419
60600
  var StatementParser = class extends ExpressionParser {
60420
60601
  parseTopLevel(file, program3) {
60421
- file.program = this.parseProgram(program3);
60602
+ file.program = this.parseProgram(program3, 140, this.options.sourceType === "module" ? "module" : "script");
60422
60603
  file.comments = this.comments;
60423
60604
  if (this.optionFlags & 256) {
60424
60605
  file.tokens = babel7CompatTokens(this.tokens, this.input, this.startIndex);
60425
60606
  }
60426
60607
  return this.finishNode(file, "File");
60427
60608
  }
60428
- parseProgram(program3, end = 140, sourceType = this.options.sourceType) {
60609
+ parseProgram(program3, end, sourceType) {
60429
60610
  program3.sourceType = sourceType;
60430
60611
  program3.interpreter = this.parseInterpreterDirective();
60431
60612
  this.parseBlockBody(program3, true, true, end);
@@ -60475,6 +60656,48 @@ var require_lib2 = __commonJS({
60475
60656
  }
60476
60657
  return this.hasFollowingBindingAtom();
60477
60658
  }
60659
+ isUsing() {
60660
+ if (!this.isContextual(107)) {
60661
+ return false;
60662
+ }
60663
+ return this.nextTokenIsIdentifierOnSameLine();
60664
+ }
60665
+ isForUsing() {
60666
+ if (!this.isContextual(107)) {
60667
+ return false;
60668
+ }
60669
+ const next = this.nextTokenInLineStart();
60670
+ const nextCh = this.codePointAtPos(next);
60671
+ if (this.isUnparsedContextual(next, "of")) {
60672
+ const nextCharAfterOf = this.lookaheadCharCodeSince(next + 2);
60673
+ if (nextCharAfterOf !== 61 && nextCharAfterOf !== 58 && nextCharAfterOf !== 59) {
60674
+ return false;
60675
+ }
60676
+ }
60677
+ if (this.chStartsBindingIdentifier(nextCh, next) || this.isUnparsedContextual(next, "void")) {
60678
+ return true;
60679
+ }
60680
+ return false;
60681
+ }
60682
+ nextTokenIsIdentifierOnSameLine() {
60683
+ const next = this.nextTokenInLineStart();
60684
+ const nextCh = this.codePointAtPos(next);
60685
+ return this.chStartsBindingIdentifier(nextCh, next);
60686
+ }
60687
+ isAwaitUsing() {
60688
+ if (!this.isContextual(96)) {
60689
+ return false;
60690
+ }
60691
+ let next = this.nextTokenInLineStart();
60692
+ if (this.isUnparsedContextual(next, "using")) {
60693
+ next = this.nextTokenInLineStartSince(next + 5);
60694
+ const nextCh = this.codePointAtPos(next);
60695
+ if (this.chStartsBindingIdentifier(nextCh, next)) {
60696
+ return true;
60697
+ }
60698
+ }
60699
+ return false;
60700
+ }
60478
60701
  chStartsBindingIdentifier(ch, pos) {
60479
60702
  if (isIdentifierStart(ch)) {
60480
60703
  keywordRelationalOperator.lastIndex = pos;
@@ -60504,35 +60727,8 @@ var require_lib2 = __commonJS({
60504
60727
  const nextCh = this.codePointAtPos(next);
60505
60728
  return nextCh === 123 || this.chStartsBindingIdentifier(nextCh, next);
60506
60729
  }
60507
- allowsForUsing() {
60508
- const {
60509
- type,
60510
- containsEsc,
60511
- end
60512
- } = this.lookahead();
60513
- if (type === 102 && !containsEsc) {
60514
- const nextCharAfterOf = this.lookaheadCharCodeSince(end);
60515
- if (nextCharAfterOf !== 61 && nextCharAfterOf !== 58 && nextCharAfterOf !== 59) {
60516
- return false;
60517
- }
60518
- }
60519
- if (tokenIsIdentifier(type) && !this.hasFollowingLineBreak()) {
60520
- this.expectPlugin("explicitResourceManagement");
60521
- return true;
60522
- }
60523
- return false;
60524
- }
60525
- startsAwaitUsing() {
60526
- let next = this.nextTokenInLineStart();
60527
- if (this.isUnparsedContextual(next, "using")) {
60528
- next = this.nextTokenInLineStartSince(next + 5);
60529
- const nextCh = this.codePointAtPos(next);
60530
- if (this.chStartsBindingIdentifier(nextCh, next)) {
60531
- this.expectPlugin("explicitResourceManagement");
60532
- return true;
60533
- }
60534
- }
60535
- return false;
60730
+ allowsUsing() {
60731
+ return (this.scope.inModule || !this.scope.inTopLevel) && !this.scope.inBareCaseStatement;
60536
60732
  }
60537
60733
  parseModuleItem() {
60538
60734
  return this.parseStatementLike(1 | 2 | 4 | 8);
@@ -60597,11 +60793,13 @@ var require_lib2 = __commonJS({
60597
60793
  case 73:
60598
60794
  return this.parseTryStatement(node);
60599
60795
  case 96:
60600
- if (!this.state.containsEsc && this.startsAwaitUsing()) {
60601
- if (!this.recordAwaitIfAllowed()) {
60602
- this.raise(Errors.AwaitUsingNotInAsyncContext, node);
60796
+ if (this.isAwaitUsing()) {
60797
+ if (!this.allowsUsing()) {
60798
+ this.raise(Errors.UnexpectedUsingDeclaration, node);
60603
60799
  } else if (!allowDeclaration) {
60604
60800
  this.raise(Errors.UnexpectedLexicalDeclaration, node);
60801
+ } else if (!this.recordAwaitIfAllowed()) {
60802
+ this.raise(Errors.AwaitUsingNotInAsyncContext, node);
60605
60803
  }
60606
60804
  this.next();
60607
60805
  return this.parseVarStatement(node, "await using");
@@ -60611,8 +60809,7 @@ var require_lib2 = __commonJS({
60611
60809
  if (this.state.containsEsc || !this.hasInLineFollowingBindingIdentifierOrBrace()) {
60612
60810
  break;
60613
60811
  }
60614
- this.expectPlugin("explicitResourceManagement");
60615
- if (!this.scope.inModule && this.scope.inTopLevel) {
60812
+ if (!this.allowsUsing()) {
60616
60813
  this.raise(Errors.UnexpectedUsingDeclaration, this.state.startLoc);
60617
60814
  } else if (!allowDeclaration) {
60618
60815
  this.raise(Errors.UnexpectedLexicalDeclaration, this.state.startLoc);
@@ -60774,7 +60971,7 @@ var require_lib2 = __commonJS({
60774
60971
  if (this.eat(10)) {
60775
60972
  const node = this.startNodeAt(startLoc);
60776
60973
  node.callee = expr;
60777
- node.arguments = this.parseCallExpressionArguments(11);
60974
+ node.arguments = this.parseCallExpressionArguments();
60778
60975
  this.toReferencedList(node.arguments);
60779
60976
  return this.finishNode(node, "CallExpression");
60780
60977
  }
@@ -60848,8 +61045,8 @@ var require_lib2 = __commonJS({
60848
61045
  }
60849
61046
  const startsWithLet = this.isContextual(100);
60850
61047
  {
60851
- const startsWithAwaitUsing = this.isContextual(96) && this.startsAwaitUsing();
60852
- const starsWithUsingDeclaration = startsWithAwaitUsing || this.isContextual(107) && this.allowsForUsing();
61048
+ const startsWithAwaitUsing = this.isAwaitUsing();
61049
+ const starsWithUsingDeclaration = startsWithAwaitUsing || this.isForUsing();
60853
61050
  const isLetOrUsing = startsWithLet && this.hasFollowingBindingAtom() || starsWithUsingDeclaration;
60854
61051
  if (this.match(74) || this.match(75) || isLetOrUsing) {
60855
61052
  const initNode = this.startNode();
@@ -60919,7 +61116,7 @@ var require_lib2 = __commonJS({
60919
61116
  return this.finishNode(node, "IfStatement");
60920
61117
  }
60921
61118
  parseReturnStatement(node) {
60922
- if (!this.prodParam.hasReturn && !(this.optionFlags & 2)) {
61119
+ if (!this.prodParam.hasReturn) {
60923
61120
  this.raise(Errors.IllegalReturn, this.state.startLoc);
60924
61121
  }
60925
61122
  this.next();
@@ -60937,7 +61134,7 @@ var require_lib2 = __commonJS({
60937
61134
  const cases = node.cases = [];
60938
61135
  this.expect(5);
60939
61136
  this.state.labels.push(switchLabel);
60940
- this.scope.enter(0);
61137
+ this.scope.enter(256);
60941
61138
  let cur;
60942
61139
  for (let sawDefault; !this.match(8); ) {
60943
61140
  if (this.match(61) || this.match(65)) {
@@ -61191,6 +61388,10 @@ var require_lib2 = __commonJS({
61191
61388
  if (id.type === "ArrayPattern" || id.type === "ObjectPattern") {
61192
61389
  this.raise(Errors.UsingDeclarationHasBindingPattern, id.loc.start);
61193
61390
  }
61391
+ } else {
61392
+ if (id.type === "VoidPattern") {
61393
+ this.raise(Errors.UnexpectedVoidPattern, id.loc.start);
61394
+ }
61194
61395
  }
61195
61396
  this.checkLVal(id, {
61196
61397
  type: "VariableDeclarator"
@@ -61218,7 +61419,7 @@ var require_lib2 = __commonJS({
61218
61419
  }
61219
61420
  const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
61220
61421
  this.state.maybeInArrowParameters = false;
61221
- this.scope.enter(2);
61422
+ this.scope.enter(514);
61222
61423
  this.prodParam.enter(functionFlags(isAsync2, node.generator));
61223
61424
  if (!isDeclaration) {
61224
61425
  node.id = this.parseFunctionId();
@@ -61471,7 +61672,7 @@ var require_lib2 = __commonJS({
61471
61672
  }
61472
61673
  parseClassStaticBlock(classBody, member) {
61473
61674
  var _member$decorators;
61474
- this.scope.enter(64 | 128 | 16);
61675
+ this.scope.enter(576 | 128 | 16);
61475
61676
  const oldLabels = this.state.labels;
61476
61677
  this.state.labels = [];
61477
61678
  this.prodParam.enter(0);
@@ -61536,7 +61737,7 @@ var require_lib2 = __commonJS({
61536
61737
  return this.finishNode(node, "ClassAccessorProperty");
61537
61738
  }
61538
61739
  parseInitializer(node) {
61539
- this.scope.enter(64 | 16);
61740
+ this.scope.enter(576 | 16);
61540
61741
  this.expressionScope.enter(newExpressionScope());
61541
61742
  this.prodParam.enter(0);
61542
61743
  node.value = this.eat(29) ? this.parseMaybeAssignAllowIn() : null;
@@ -61620,7 +61821,7 @@ var require_lib2 = __commonJS({
61620
61821
  this.sawUnambiguousESM = true;
61621
61822
  return this.finishNode(node2, "ExportDefaultDeclaration");
61622
61823
  }
61623
- this.unexpected(null, 5);
61824
+ throw this.unexpected(null, 5);
61624
61825
  }
61625
61826
  eatExportStar(node) {
61626
61827
  return this.eat(55);
@@ -61703,7 +61904,7 @@ var require_lib2 = __commonJS({
61703
61904
  }
61704
61905
  return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(false), this.startNode()), true, true);
61705
61906
  }
61706
- if (this.match(75) || this.match(74) || this.isLet()) {
61907
+ if (this.match(75) || this.match(74) || this.isLet() || this.isUsing() || this.isAwaitUsing()) {
61707
61908
  throw this.raise(Errors.UnsupportedDefaultExport, this.state.startLoc);
61708
61909
  }
61709
61910
  const res = this.parseMaybeAssignAllowIn();
@@ -61726,10 +61927,9 @@ var require_lib2 = __commonJS({
61726
61927
  return false;
61727
61928
  }
61728
61929
  if ((type === 130 || type === 129) && !this.state.containsEsc) {
61729
- const {
61730
- type: nextType
61731
- } = this.lookahead();
61732
- if (tokenIsIdentifier(nextType) && nextType !== 98 || nextType === 5) {
61930
+ const next2 = this.nextTokenStart();
61931
+ const nextChar = this.input.charCodeAt(next2);
61932
+ if (nextChar === 123 || this.chStartsBindingIdentifier(nextChar, next2) && !this.input.startsWith("from", next2)) {
61733
61933
  this.expectOnePlugin(["flow", "typescript"]);
61734
61934
  return false;
61735
61935
  }
@@ -61772,11 +61972,11 @@ var require_lib2 = __commonJS({
61772
61972
  return true;
61773
61973
  }
61774
61974
  }
61775
- if (this.isContextual(107)) {
61975
+ if (this.isUsing()) {
61776
61976
  this.raise(Errors.UsingDeclarationExport, this.state.startLoc);
61777
61977
  return true;
61778
61978
  }
61779
- if (this.isContextual(96) && this.startsAwaitUsing()) {
61979
+ if (this.isAwaitUsing()) {
61780
61980
  this.raise(Errors.UsingDeclarationExport, this.state.startLoc);
61781
61981
  return true;
61782
61982
  }
@@ -62213,54 +62413,54 @@ var require_lib2 = __commonJS({
62213
62413
  };
62214
62414
  var Parser2 = class extends StatementParser {
62215
62415
  constructor(options, input, pluginsMap) {
62216
- options = getOptions2(options);
62217
- super(options, input);
62218
- this.options = options;
62416
+ const normalizedOptions = getOptions2(options);
62417
+ super(normalizedOptions, input);
62418
+ this.options = normalizedOptions;
62219
62419
  this.initializeScopes();
62220
62420
  this.plugins = pluginsMap;
62221
- this.filename = options.sourceFilename;
62222
- this.startIndex = options.startIndex;
62421
+ this.filename = normalizedOptions.sourceFilename;
62422
+ this.startIndex = normalizedOptions.startIndex;
62223
62423
  let optionFlags = 0;
62224
- if (options.allowAwaitOutsideFunction) {
62424
+ if (normalizedOptions.allowAwaitOutsideFunction) {
62225
62425
  optionFlags |= 1;
62226
62426
  }
62227
- if (options.allowReturnOutsideFunction) {
62427
+ if (normalizedOptions.allowReturnOutsideFunction) {
62228
62428
  optionFlags |= 2;
62229
62429
  }
62230
- if (options.allowImportExportEverywhere) {
62430
+ if (normalizedOptions.allowImportExportEverywhere) {
62231
62431
  optionFlags |= 8;
62232
62432
  }
62233
- if (options.allowSuperOutsideMethod) {
62433
+ if (normalizedOptions.allowSuperOutsideMethod) {
62234
62434
  optionFlags |= 16;
62235
62435
  }
62236
- if (options.allowUndeclaredExports) {
62436
+ if (normalizedOptions.allowUndeclaredExports) {
62237
62437
  optionFlags |= 64;
62238
62438
  }
62239
- if (options.allowNewTargetOutsideFunction) {
62439
+ if (normalizedOptions.allowNewTargetOutsideFunction) {
62240
62440
  optionFlags |= 4;
62241
62441
  }
62242
- if (options.allowYieldOutsideFunction) {
62442
+ if (normalizedOptions.allowYieldOutsideFunction) {
62243
62443
  optionFlags |= 32;
62244
62444
  }
62245
- if (options.ranges) {
62445
+ if (normalizedOptions.ranges) {
62246
62446
  optionFlags |= 128;
62247
62447
  }
62248
- if (options.tokens) {
62448
+ if (normalizedOptions.tokens) {
62249
62449
  optionFlags |= 256;
62250
62450
  }
62251
- if (options.createImportExpressions) {
62451
+ if (normalizedOptions.createImportExpressions) {
62252
62452
  optionFlags |= 512;
62253
62453
  }
62254
- if (options.createParenthesizedExpressions) {
62454
+ if (normalizedOptions.createParenthesizedExpressions) {
62255
62455
  optionFlags |= 1024;
62256
62456
  }
62257
- if (options.errorRecovery) {
62457
+ if (normalizedOptions.errorRecovery) {
62258
62458
  optionFlags |= 2048;
62259
62459
  }
62260
- if (options.attachComment) {
62460
+ if (normalizedOptions.attachComment) {
62261
62461
  optionFlags |= 4096;
62262
62462
  }
62263
- if (options.annexB) {
62463
+ if (normalizedOptions.annexB) {
62264
62464
  optionFlags |= 8192;
62265
62465
  }
62266
62466
  this.optionFlags = optionFlags;
@@ -62274,10 +62474,10 @@ var require_lib2 = __commonJS({
62274
62474
  const program3 = this.startNode();
62275
62475
  this.nextToken();
62276
62476
  file.errors = null;
62277
- this.parseTopLevel(file, program3);
62278
- file.errors = this.state.errors;
62279
- file.comments.length = this.state.commentsLen;
62280
- return file;
62477
+ const result = this.parseTopLevel(file, program3);
62478
+ result.errors = this.state.errors;
62479
+ result.comments.length = this.state.commentsLen;
62480
+ return result;
62281
62481
  }
62282
62482
  };
62283
62483
  function parse4(input, options) {
@@ -95167,16 +95367,16 @@ function wixCliCliError(params) {
95167
95367
  var package_default = {
95168
95368
  name: "@wix/create-headless-site",
95169
95369
  description: "Headless site creation wizard",
95170
- version: "0.0.25",
95370
+ version: "0.0.26",
95171
95371
  bin: "bin/index.cjs",
95172
95372
  devDependencies: {
95173
95373
  "@commander-js/extra-typings": "^13.0.0",
95174
95374
  "@types/react": "^18.3.3",
95175
95375
  "@types/semver": "^7.5.8",
95176
95376
  "@types/validate-npm-package-name": "^4.0.2",
95177
- "@wix/ambassador-funnel-projects-v1-project": "^1.0.15",
95377
+ "@wix/ambassador-funnel-projects-v1-project": "^1.0.16",
95178
95378
  "@wix/backend-as-a-service-client": "workspace:*",
95179
- "@wix/bi-logger-dev-tools-data": "^1.125.0",
95379
+ "@wix/bi-logger-dev-tools-data": "^1.127.0",
95180
95380
  "@wix/cli-astro-definitions": "workspace:*",
95181
95381
  "@wix/cli-auth": "workspace:*",
95182
95382
  "@wix/cli-core-definitions": "workspace:*",
@@ -95930,10 +96130,10 @@ var normalizeStdio = (options) => {
95930
96130
  init_esm_shims();
95931
96131
  import os6 from "node:os";
95932
96132
 
95933
- // ../../node_modules/execa/node_modules/signal-exit/dist/mjs/index.js
96133
+ // ../../node_modules/signal-exit/dist/mjs/index.js
95934
96134
  init_esm_shims();
95935
96135
 
95936
- // ../../node_modules/execa/node_modules/signal-exit/dist/mjs/signals.js
96136
+ // ../../node_modules/signal-exit/dist/mjs/signals.js
95937
96137
  init_esm_shims();
95938
96138
  var signals = [];
95939
96139
  signals.push("SIGHUP", "SIGINT", "SIGTERM");
@@ -95958,7 +96158,7 @@ if (process.platform === "linux") {
95958
96158
  signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
95959
96159
  }
95960
96160
 
95961
- // ../../node_modules/execa/node_modules/signal-exit/dist/mjs/index.js
96161
+ // ../../node_modules/signal-exit/dist/mjs/index.js
95962
96162
  var processOk = (process30) => !!process30 && typeof process30 === "object" && typeof process30.removeListener === "function" && typeof process30.emit === "function" && typeof process30.reallyExit === "function" && typeof process30.listeners === "function" && typeof process30.kill === "function" && typeof process30.pid === "number" && typeof process30.on === "function";
95963
96163
  var kExitEmitter = Symbol.for("signal-exit emitter");
95964
96164
  var global2 = globalThis;
@@ -98781,6 +98981,12 @@ function resolveWixDevcenterAppsV1AppsServiceUrl(opts) {
98781
98981
  srcPath: "/apps-service",
98782
98982
  destPath: ""
98783
98983
  }
98984
+ ],
98985
+ "vibe._base_domain_": [
98986
+ {
98987
+ srcPath: "/_api/apps-service",
98988
+ destPath: ""
98989
+ }
98784
98990
  ]
98785
98991
  };
98786
98992
  return resolveUrl(Object.assign(opts, { domainToMappings }));
@@ -107136,7 +107342,7 @@ init_esm_shims();
107136
107342
  var import_react108 = __toESM(require_react(), 1);
107137
107343
  var import_variant35 = __toESM(require_lib(), 1);
107138
107344
 
107139
- // ../cli-astro-definitions/src/index.ts
107345
+ // ../cli-astro-definitions/src/definitions.ts
107140
107346
  init_esm_shims();
107141
107347
  import { join as join11 } from "node:path";
107142
107348
  var import_variant32 = __toESM(require_lib(), 1);
@@ -107190,8 +107396,8 @@ var deploymentTopologySchema = zod_default.record(
107190
107396
  function getEnvFilePath(projectFolder) {
107191
107397
  return join11(projectFolder, ENV_FILE_NAME);
107192
107398
  }
107193
- function getExtensionPath(projectFolder, extensionPath) {
107194
- return join11(projectFolder, "src", "extensions", extensionPath);
107399
+ function getExtensionDir(projectFolder) {
107400
+ return join11(projectFolder, "src", "extensions");
107195
107401
  }
107196
107402
  var PlatformType = (0, import_variant32.variant)({
107197
107403
  Site: {},
@@ -116571,7 +116777,7 @@ async function addFilesFromTemplate(projectFolder, templateId, packageManager, r
116571
116777
  await componentGenerator({
116572
116778
  template: join16(templateExtensionRoot, template),
116573
116779
  projectFolder,
116574
- cwd: getExtensionPath(projectFolder, uniqueDir),
116780
+ cwd: join16(getExtensionDir(projectFolder), uniqueDir),
116575
116781
  data: {
116576
116782
  randomUUID: () => randomUUID3(),
116577
116783
  dir: uniqueDir
@@ -116581,7 +116787,7 @@ async function addFilesFromTemplate(projectFolder, templateId, packageManager, r
116581
116787
  }
116582
116788
  async function getUniqueExtensionPath(projectFolder, extensionPath, suffix) {
116583
116789
  const uniqueExtensionPath = suffix ? `${extensionPath}${suffix}` : extensionPath;
116584
- const path8 = getExtensionPath(projectFolder, uniqueExtensionPath);
116790
+ const path8 = join16(getExtensionDir(projectFolder), uniqueExtensionPath);
116585
116791
  if (!await pathExists(path8)) {
116586
116792
  return uniqueExtensionPath;
116587
116793
  }