@danielx/civet 0.4.34 → 0.4.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +16 -17
  2. package/dist/browser.js +324 -164
  3. package/dist/main.js +324 -164
  4. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -611,6 +611,7 @@ ${input.slice(result.pos)}
611
611
  NamedProperty,
612
612
  SnugNamedProperty,
613
613
  PropertyName,
614
+ ComputedPropertyName,
614
615
  Decorator,
615
616
  Decorators,
616
617
  MethodDefinition,
@@ -704,6 +705,7 @@ ${input.slice(result.pos)}
704
705
  HoistableDeclaration,
705
706
  LexicalDeclaration,
706
707
  ConstAssignment,
708
+ LetAssignment,
707
709
  LexicalBinding,
708
710
  Initializer,
709
711
  VariableStatement,
@@ -840,6 +842,8 @@ ${input.slice(result.pos)}
840
842
  JSXAttributeName,
841
843
  JSXAttributeInitializer,
842
844
  JSXAttributeValue,
845
+ InlineJSXAttributeValue,
846
+ JSXMixedChildren,
843
847
  JSXChildren,
844
848
  JSXNestedChildren,
845
849
  JSXChild,
@@ -900,6 +904,7 @@ ${input.slice(result.pos)}
900
904
  InsertCloseBrace,
901
905
  InsertComma,
902
906
  InsertConst,
907
+ InsertLet,
903
908
  InsertReadonly,
904
909
  InsertNewline,
905
910
  InsertIndent,
@@ -1015,77 +1020,78 @@ ${input.slice(result.pos)}
1015
1020
  var $L84 = $L("import type");
1016
1021
  var $L85 = $L("default");
1017
1022
  var $L86 = $L(":=");
1018
- var $L87 = $L("/*");
1019
- var $L88 = $L("*/");
1020
- var $L89 = $L("\\");
1021
- var $L90 = $L("as");
1022
- var $L91 = $L("@");
1023
- var $L92 = $L("@@");
1024
- var $L93 = $L("async");
1025
- var $L94 = $L("await");
1026
- var $L95 = $L("`");
1027
- var $L96 = $L("by");
1028
- var $L97 = $L("case");
1029
- var $L98 = $L("catch");
1030
- var $L99 = $L("class");
1031
- var $L100 = $L("#{");
1032
- var $L101 = $L("delete");
1033
- var $L102 = $L("do");
1034
- var $L103 = $L("..");
1035
- var $L104 = $L("...");
1036
- var $L105 = $L("::");
1037
- var $L106 = $L('"');
1038
- var $L107 = $L("else");
1039
- var $L108 = $L("export");
1040
- var $L109 = $L("for");
1041
- var $L110 = $L("from");
1042
- var $L111 = $L("function");
1043
- var $L112 = $L("get");
1044
- var $L113 = $L("set");
1045
- var $L114 = $L("if");
1046
- var $L115 = $L("let");
1047
- var $L116 = $L("const");
1048
- var $L117 = $L("loop");
1049
- var $L118 = $L("new");
1050
- var $L119 = $L("{");
1051
- var $L120 = $L("[");
1052
- var $L121 = $L("(");
1053
- var $L122 = $L("return");
1054
- var $L123 = $L("'");
1055
- var $L124 = $L("static");
1056
- var $L125 = $L("${");
1057
- var $L126 = $L("switch");
1058
- var $L127 = $L("target");
1059
- var $L128 = $L("then");
1060
- var $L129 = $L("this");
1061
- var $L130 = $L("throw");
1062
- var $L131 = $L('"""');
1063
- var $L132 = $L("'''");
1064
- var $L133 = $L("///");
1065
- var $L134 = $L("```");
1066
- var $L135 = $L("try");
1067
- var $L136 = $L("typeof");
1068
- var $L137 = $L("unless");
1069
- var $L138 = $L("until");
1070
- var $L139 = $L("var");
1071
- var $L140 = $L("void");
1072
- var $L141 = $L("when");
1073
- var $L142 = $L("while");
1074
- var $L143 = $L("yield");
1075
- var $L144 = $L("/>");
1076
- var $L145 = $L("</");
1077
- var $L146 = $L("<>");
1078
- var $L147 = $L("</>");
1079
- var $L148 = $L("declare");
1080
- var $L149 = $L("type");
1081
- var $L150 = $L("interface");
1082
- var $L151 = $L("namespace");
1083
- var $L152 = $L("readonly");
1084
- var $L153 = $L("asserts");
1085
- var $L154 = $L("keyof");
1086
- var $L155 = $L("infer");
1087
- var $L156 = $L("[]");
1088
- var $L157 = $L("civet");
1023
+ var $L87 = $L("::=");
1024
+ var $L88 = $L("/*");
1025
+ var $L89 = $L("*/");
1026
+ var $L90 = $L("\\");
1027
+ var $L91 = $L("as");
1028
+ var $L92 = $L("@");
1029
+ var $L93 = $L("@@");
1030
+ var $L94 = $L("async");
1031
+ var $L95 = $L("await");
1032
+ var $L96 = $L("`");
1033
+ var $L97 = $L("by");
1034
+ var $L98 = $L("case");
1035
+ var $L99 = $L("catch");
1036
+ var $L100 = $L("class");
1037
+ var $L101 = $L("#{");
1038
+ var $L102 = $L("delete");
1039
+ var $L103 = $L("do");
1040
+ var $L104 = $L("..");
1041
+ var $L105 = $L("...");
1042
+ var $L106 = $L("::");
1043
+ var $L107 = $L('"');
1044
+ var $L108 = $L("else");
1045
+ var $L109 = $L("export");
1046
+ var $L110 = $L("for");
1047
+ var $L111 = $L("from");
1048
+ var $L112 = $L("function");
1049
+ var $L113 = $L("get");
1050
+ var $L114 = $L("set");
1051
+ var $L115 = $L("if");
1052
+ var $L116 = $L("let");
1053
+ var $L117 = $L("const");
1054
+ var $L118 = $L("loop");
1055
+ var $L119 = $L("new");
1056
+ var $L120 = $L("{");
1057
+ var $L121 = $L("[");
1058
+ var $L122 = $L("(");
1059
+ var $L123 = $L("return");
1060
+ var $L124 = $L("'");
1061
+ var $L125 = $L("static");
1062
+ var $L126 = $L("${");
1063
+ var $L127 = $L("switch");
1064
+ var $L128 = $L("target");
1065
+ var $L129 = $L("then");
1066
+ var $L130 = $L("this");
1067
+ var $L131 = $L("throw");
1068
+ var $L132 = $L('"""');
1069
+ var $L133 = $L("'''");
1070
+ var $L134 = $L("///");
1071
+ var $L135 = $L("```");
1072
+ var $L136 = $L("try");
1073
+ var $L137 = $L("typeof");
1074
+ var $L138 = $L("unless");
1075
+ var $L139 = $L("until");
1076
+ var $L140 = $L("var");
1077
+ var $L141 = $L("void");
1078
+ var $L142 = $L("when");
1079
+ var $L143 = $L("while");
1080
+ var $L144 = $L("yield");
1081
+ var $L145 = $L("/>");
1082
+ var $L146 = $L("</");
1083
+ var $L147 = $L("<>");
1084
+ var $L148 = $L("</>");
1085
+ var $L149 = $L("declare");
1086
+ var $L150 = $L("type");
1087
+ var $L151 = $L("interface");
1088
+ var $L152 = $L("namespace");
1089
+ var $L153 = $L("readonly");
1090
+ var $L154 = $L("asserts");
1091
+ var $L155 = $L("keyof");
1092
+ var $L156 = $L("infer");
1093
+ var $L157 = $L("[]");
1094
+ var $L158 = $L("civet");
1089
1095
  var $R0 = $R(new RegExp("(for|of|then|when)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
1090
1096
  var $R1 = $R(new RegExp("[&]", "suy"));
1091
1097
  var $R2 = $R(new RegExp("[!~+-]+", "suy"));
@@ -5021,12 +5027,7 @@ ${input.slice(result.pos)}
5021
5027
  var PropertyName$0 = NumericLiteral;
5022
5028
  var PropertyName$1 = StringLiteral;
5023
5029
  var PropertyName$2 = IdentifierName;
5024
- var PropertyName$3 = $TS($S(OpenBracket, ExtendedExpression, __, CloseBracket), function($skip, $loc, $0, $1, $2, $3, $4) {
5025
- return {
5026
- type: "ComputedPropertyName",
5027
- children: $0
5028
- };
5029
- });
5030
+ var PropertyName$3 = ComputedPropertyName;
5030
5031
  function PropertyName(state) {
5031
5032
  if (state.events) {
5032
5033
  const result = state.events.enter?.("PropertyName", state);
@@ -5045,6 +5046,30 @@ ${input.slice(result.pos)}
5045
5046
  return result;
5046
5047
  }
5047
5048
  }
5049
+ var ComputedPropertyName$0 = $TS($S(OpenBracket, ExtendedExpression, __, CloseBracket), function($skip, $loc, $0, $1, $2, $3, $4) {
5050
+ return {
5051
+ type: "ComputedPropertyName",
5052
+ children: $0
5053
+ };
5054
+ });
5055
+ function ComputedPropertyName(state) {
5056
+ if (state.events) {
5057
+ const result = state.events.enter?.("ComputedPropertyName", state);
5058
+ if (result)
5059
+ return result.cache;
5060
+ }
5061
+ if (state.tokenize) {
5062
+ const result = $TOKEN("ComputedPropertyName", state, ComputedPropertyName$0(state));
5063
+ if (state.events)
5064
+ state.events.exit?.("ComputedPropertyName", state, result);
5065
+ return result;
5066
+ } else {
5067
+ const result = ComputedPropertyName$0(state);
5068
+ if (state.events)
5069
+ state.events.exit?.("ComputedPropertyName", state, result);
5070
+ return result;
5071
+ }
5072
+ }
5048
5073
  var Decorator$0 = $S(AtAt, IdentifierReference, $E(Arguments));
5049
5074
  function Decorator(state) {
5050
5075
  if (state.events) {
@@ -7720,6 +7745,30 @@ ${input.slice(result.pos)}
7720
7745
  children
7721
7746
  };
7722
7747
  });
7748
+ var LexicalDeclaration$2 = $TS($S(InsertLet, $C(BindingPattern, BindingIdentifier), $E(TypeSuffix), __, LetAssignment, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
7749
+ var l = $1;
7750
+ var id = $2;
7751
+ var suffix = $3;
7752
+ var ws = $4;
7753
+ var la = $5;
7754
+ var e = $6;
7755
+ l = {
7756
+ ...l,
7757
+ $loc: {
7758
+ pos: la.$loc.pos - 1,
7759
+ length: la.$loc.length + 1
7760
+ }
7761
+ };
7762
+ let [splices, thisAssignments] = module2.gatherBindingCode(id);
7763
+ splices = splices.map((s) => [", ", s]);
7764
+ thisAssignments = thisAssignments.map((a) => [";", a]);
7765
+ const children = [l, id, suffix, ...ws, la, e, ...splices, ...thisAssignments];
7766
+ return {
7767
+ type: "Declaration",
7768
+ names: id.names,
7769
+ children
7770
+ };
7771
+ });
7723
7772
  function LexicalDeclaration(state) {
7724
7773
  if (state.events) {
7725
7774
  const result = state.events.enter?.("LexicalDeclaration", state);
@@ -7727,12 +7776,12 @@ ${input.slice(result.pos)}
7727
7776
  return result.cache;
7728
7777
  }
7729
7778
  if (state.tokenize) {
7730
- const result = $TOKEN("LexicalDeclaration", state, LexicalDeclaration$0(state) || LexicalDeclaration$1(state));
7779
+ const result = $TOKEN("LexicalDeclaration", state, LexicalDeclaration$0(state) || LexicalDeclaration$1(state) || LexicalDeclaration$2(state));
7731
7780
  if (state.events)
7732
7781
  state.events.exit?.("LexicalDeclaration", state, result);
7733
7782
  return result;
7734
7783
  } else {
7735
- const result = LexicalDeclaration$0(state) || LexicalDeclaration$1(state);
7784
+ const result = LexicalDeclaration$0(state) || LexicalDeclaration$1(state) || LexicalDeclaration$2(state);
7736
7785
  if (state.events)
7737
7786
  state.events.exit?.("LexicalDeclaration", state, result);
7738
7787
  return result;
@@ -7759,6 +7808,27 @@ ${input.slice(result.pos)}
7759
7808
  return result;
7760
7809
  }
7761
7810
  }
7811
+ var LetAssignment$0 = $TV($EXPECT($L87, fail, 'LetAssignment "::="'), function($skip, $loc, $0, $1) {
7812
+ return { $loc, token: "=" };
7813
+ });
7814
+ function LetAssignment(state) {
7815
+ if (state.events) {
7816
+ const result = state.events.enter?.("LetAssignment", state);
7817
+ if (result)
7818
+ return result.cache;
7819
+ }
7820
+ if (state.tokenize) {
7821
+ const result = $TOKEN("LetAssignment", state, LetAssignment$0(state));
7822
+ if (state.events)
7823
+ state.events.exit?.("LetAssignment", state, result);
7824
+ return result;
7825
+ } else {
7826
+ const result = LetAssignment$0(state);
7827
+ if (state.events)
7828
+ state.events.exit?.("LetAssignment", state, result);
7829
+ return result;
7830
+ }
7831
+ }
7762
7832
  var LexicalBinding$0 = $TS($S(BindingPattern, $E(TypeSuffix), Initializer), function($skip, $loc, $0, $1, $2, $3) {
7763
7833
  const children = [...$1.children];
7764
7834
  if ($2)
@@ -8743,7 +8813,7 @@ ${input.slice(result.pos)}
8743
8813
  return result;
8744
8814
  }
8745
8815
  }
8746
- var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L87, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L88, fail, 'JSMultiLineComment "*/"')), $EXPECT($R38, fail, "JSMultiLineComment /./"))), $EXPECT($L88, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
8816
+ var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L89, fail, 'JSMultiLineComment "*/"')), $EXPECT($R38, fail, "JSMultiLineComment /./"))), $EXPECT($L89, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
8747
8817
  return { $loc, token: $1 };
8748
8818
  });
8749
8819
  function JSMultiLineComment(state) {
@@ -8785,7 +8855,7 @@ ${input.slice(result.pos)}
8785
8855
  return result;
8786
8856
  }
8787
8857
  }
8788
- var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L88, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R38, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
8858
+ var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L89, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R38, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
8789
8859
  return { $loc, token: `/*${$2}*/` };
8790
8860
  });
8791
8861
  function CoffeeMultiLineComment(state) {
@@ -8825,7 +8895,7 @@ ${input.slice(result.pos)}
8825
8895
  return result;
8826
8896
  }
8827
8897
  }
8828
- var InlineComment$0 = $TV($TEXT($S($EXPECT($L87, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L88, fail, 'InlineComment "*/"')), $EXPECT($R41, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L88, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
8898
+ var InlineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L89, fail, 'InlineComment "*/"')), $EXPECT($R41, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L89, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
8829
8899
  return { $loc, token: $1 };
8830
8900
  });
8831
8901
  function InlineComment(state) {
@@ -8908,7 +8978,7 @@ ${input.slice(result.pos)}
8908
8978
  var NonNewlineWhitespace$0 = $TR($EXPECT($R42, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
8909
8979
  return { $loc, token: $0 };
8910
8980
  });
8911
- var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L89, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
8981
+ var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L90, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
8912
8982
  return "";
8913
8983
  });
8914
8984
  function NonNewlineWhitespace(state) {
@@ -9074,7 +9144,7 @@ ${input.slice(result.pos)}
9074
9144
  return result;
9075
9145
  }
9076
9146
  }
9077
- var As$0 = $TS($S($EXPECT($L90, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9147
+ var As$0 = $TS($S($EXPECT($L91, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9078
9148
  return { $loc, token: $1 };
9079
9149
  });
9080
9150
  function As(state) {
@@ -9095,7 +9165,7 @@ ${input.slice(result.pos)}
9095
9165
  return result;
9096
9166
  }
9097
9167
  }
9098
- var At$0 = $TV($EXPECT($L91, fail, 'At "@"'), function($skip, $loc, $0, $1) {
9168
+ var At$0 = $TV($EXPECT($L92, fail, 'At "@"'), function($skip, $loc, $0, $1) {
9099
9169
  return { $loc, token: $1 };
9100
9170
  });
9101
9171
  function At(state) {
@@ -9116,7 +9186,7 @@ ${input.slice(result.pos)}
9116
9186
  return result;
9117
9187
  }
9118
9188
  }
9119
- var AtAt$0 = $TV($EXPECT($L92, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
9189
+ var AtAt$0 = $TV($EXPECT($L93, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
9120
9190
  return { $loc, token: "@" };
9121
9191
  });
9122
9192
  function AtAt(state) {
@@ -9137,7 +9207,7 @@ ${input.slice(result.pos)}
9137
9207
  return result;
9138
9208
  }
9139
9209
  }
9140
- var Async$0 = $TV($EXPECT($L93, fail, 'Async "async"'), function($skip, $loc, $0, $1) {
9210
+ var Async$0 = $TV($EXPECT($L94, fail, 'Async "async"'), function($skip, $loc, $0, $1) {
9141
9211
  return { $loc, token: $1, type: "Async" };
9142
9212
  });
9143
9213
  function Async(state) {
@@ -9158,7 +9228,7 @@ ${input.slice(result.pos)}
9158
9228
  return result;
9159
9229
  }
9160
9230
  }
9161
- var Await$0 = $TS($S($EXPECT($L94, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9231
+ var Await$0 = $TS($S($EXPECT($L95, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9162
9232
  return { $loc, token: $1 };
9163
9233
  });
9164
9234
  function Await(state) {
@@ -9179,7 +9249,7 @@ ${input.slice(result.pos)}
9179
9249
  return result;
9180
9250
  }
9181
9251
  }
9182
- var Backtick$0 = $TV($EXPECT($L95, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
9252
+ var Backtick$0 = $TV($EXPECT($L96, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
9183
9253
  return { $loc, token: $1 };
9184
9254
  });
9185
9255
  function Backtick(state) {
@@ -9200,7 +9270,7 @@ ${input.slice(result.pos)}
9200
9270
  return result;
9201
9271
  }
9202
9272
  }
9203
- var By$0 = $TS($S($EXPECT($L96, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9273
+ var By$0 = $TS($S($EXPECT($L97, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9204
9274
  return { $loc, token: $1 };
9205
9275
  });
9206
9276
  function By(state) {
@@ -9221,7 +9291,7 @@ ${input.slice(result.pos)}
9221
9291
  return result;
9222
9292
  }
9223
9293
  }
9224
- var Case$0 = $TS($S($EXPECT($L97, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9294
+ var Case$0 = $TS($S($EXPECT($L98, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9225
9295
  return { $loc, token: $1 };
9226
9296
  });
9227
9297
  function Case(state) {
@@ -9242,7 +9312,7 @@ ${input.slice(result.pos)}
9242
9312
  return result;
9243
9313
  }
9244
9314
  }
9245
- var Catch$0 = $TV($EXPECT($L98, fail, 'Catch "catch"'), function($skip, $loc, $0, $1) {
9315
+ var Catch$0 = $TV($EXPECT($L99, fail, 'Catch "catch"'), function($skip, $loc, $0, $1) {
9246
9316
  return { $loc, token: $1 };
9247
9317
  });
9248
9318
  function Catch(state) {
@@ -9263,7 +9333,7 @@ ${input.slice(result.pos)}
9263
9333
  return result;
9264
9334
  }
9265
9335
  }
9266
- var Class$0 = $TV($EXPECT($L99, fail, 'Class "class"'), function($skip, $loc, $0, $1) {
9336
+ var Class$0 = $TV($EXPECT($L100, fail, 'Class "class"'), function($skip, $loc, $0, $1) {
9267
9337
  return { $loc, token: $1 };
9268
9338
  });
9269
9339
  function Class(state) {
@@ -9347,7 +9417,7 @@ ${input.slice(result.pos)}
9347
9417
  return result;
9348
9418
  }
9349
9419
  }
9350
- var CoffeeSubstitutionStart$0 = $TV($EXPECT($L100, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
9420
+ var CoffeeSubstitutionStart$0 = $TV($EXPECT($L101, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
9351
9421
  return { $loc, token: "${" };
9352
9422
  });
9353
9423
  function CoffeeSubstitutionStart(state) {
@@ -9389,7 +9459,7 @@ ${input.slice(result.pos)}
9389
9459
  return result;
9390
9460
  }
9391
9461
  }
9392
- var ConstructorShorthand$0 = $TV($EXPECT($L91, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
9462
+ var ConstructorShorthand$0 = $TV($EXPECT($L92, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
9393
9463
  return { $loc, token: "constructor" };
9394
9464
  });
9395
9465
  function ConstructorShorthand(state) {
@@ -9431,7 +9501,7 @@ ${input.slice(result.pos)}
9431
9501
  return result;
9432
9502
  }
9433
9503
  }
9434
- var Delete$0 = $TS($S($EXPECT($L101, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9504
+ var Delete$0 = $TS($S($EXPECT($L102, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9435
9505
  return { $loc, token: $1 };
9436
9506
  });
9437
9507
  function Delete(state) {
@@ -9452,7 +9522,7 @@ ${input.slice(result.pos)}
9452
9522
  return result;
9453
9523
  }
9454
9524
  }
9455
- var Do$0 = $TS($S($EXPECT($L102, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9525
+ var Do$0 = $TS($S($EXPECT($L103, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9456
9526
  return { $loc, token: $1 };
9457
9527
  });
9458
9528
  function Do(state) {
@@ -9494,7 +9564,7 @@ ${input.slice(result.pos)}
9494
9564
  return result;
9495
9565
  }
9496
9566
  }
9497
- var DotDot$0 = $TV($EXPECT($L103, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
9567
+ var DotDot$0 = $TV($EXPECT($L104, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
9498
9568
  return { $loc, token: $1 };
9499
9569
  });
9500
9570
  function DotDot(state) {
@@ -9515,7 +9585,7 @@ ${input.slice(result.pos)}
9515
9585
  return result;
9516
9586
  }
9517
9587
  }
9518
- var DotDotDot$0 = $TV($EXPECT($L104, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
9588
+ var DotDotDot$0 = $TV($EXPECT($L105, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
9519
9589
  return { $loc, token: $1 };
9520
9590
  });
9521
9591
  function DotDotDot(state) {
@@ -9536,7 +9606,7 @@ ${input.slice(result.pos)}
9536
9606
  return result;
9537
9607
  }
9538
9608
  }
9539
- var DoubleColon$0 = $TV($EXPECT($L105, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
9609
+ var DoubleColon$0 = $TV($EXPECT($L106, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
9540
9610
  return { $loc, token: $1 };
9541
9611
  });
9542
9612
  function DoubleColon(state) {
@@ -9557,7 +9627,7 @@ ${input.slice(result.pos)}
9557
9627
  return result;
9558
9628
  }
9559
9629
  }
9560
- var DoubleQuote$0 = $TV($EXPECT($L106, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
9630
+ var DoubleQuote$0 = $TV($EXPECT($L107, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
9561
9631
  return { $loc, token: $1 };
9562
9632
  });
9563
9633
  function DoubleQuote(state) {
@@ -9578,7 +9648,7 @@ ${input.slice(result.pos)}
9578
9648
  return result;
9579
9649
  }
9580
9650
  }
9581
- var Else$0 = $TV($EXPECT($L107, fail, 'Else "else"'), function($skip, $loc, $0, $1) {
9651
+ var Else$0 = $TV($EXPECT($L108, fail, 'Else "else"'), function($skip, $loc, $0, $1) {
9582
9652
  return { $loc, token: $1 };
9583
9653
  });
9584
9654
  function Else(state) {
@@ -9620,7 +9690,7 @@ ${input.slice(result.pos)}
9620
9690
  return result;
9621
9691
  }
9622
9692
  }
9623
- var Export$0 = $TS($S($EXPECT($L108, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9693
+ var Export$0 = $TS($S($EXPECT($L109, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9624
9694
  return { $loc, token: $1 };
9625
9695
  });
9626
9696
  function Export(state) {
@@ -9641,7 +9711,7 @@ ${input.slice(result.pos)}
9641
9711
  return result;
9642
9712
  }
9643
9713
  }
9644
- var For$0 = $TS($S($EXPECT($L109, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9714
+ var For$0 = $TS($S($EXPECT($L110, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9645
9715
  return { $loc, token: $1 };
9646
9716
  });
9647
9717
  function For(state) {
@@ -9662,7 +9732,7 @@ ${input.slice(result.pos)}
9662
9732
  return result;
9663
9733
  }
9664
9734
  }
9665
- var From$0 = $TS($S($EXPECT($L110, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9735
+ var From$0 = $TS($S($EXPECT($L111, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9666
9736
  return { $loc, token: $1 };
9667
9737
  });
9668
9738
  function From(state) {
@@ -9683,7 +9753,7 @@ ${input.slice(result.pos)}
9683
9753
  return result;
9684
9754
  }
9685
9755
  }
9686
- var Function$0 = $TV($EXPECT($L111, fail, 'Function "function"'), function($skip, $loc, $0, $1) {
9756
+ var Function$0 = $TV($EXPECT($L112, fail, 'Function "function"'), function($skip, $loc, $0, $1) {
9687
9757
  return { $loc, token: $1 };
9688
9758
  });
9689
9759
  function Function(state) {
@@ -9704,7 +9774,7 @@ ${input.slice(result.pos)}
9704
9774
  return result;
9705
9775
  }
9706
9776
  }
9707
- var GetOrSet$0 = $TS($S($C($EXPECT($L112, fail, 'GetOrSet "get"'), $EXPECT($L113, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9777
+ var GetOrSet$0 = $TS($S($C($EXPECT($L113, fail, 'GetOrSet "get"'), $EXPECT($L114, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9708
9778
  return { $loc, token: $1, type: "GetOrSet" };
9709
9779
  });
9710
9780
  function GetOrSet(state) {
@@ -9725,7 +9795,7 @@ ${input.slice(result.pos)}
9725
9795
  return result;
9726
9796
  }
9727
9797
  }
9728
- var If$0 = $TV($TEXT($S($EXPECT($L114, fail, 'If "if"'), $E($EXPECT($L4, fail, 'If " "')))), function($skip, $loc, $0, $1) {
9798
+ var If$0 = $TV($TEXT($S($EXPECT($L115, fail, 'If "if"'), $E($EXPECT($L4, fail, 'If " "')))), function($skip, $loc, $0, $1) {
9729
9799
  return { $loc, token: $1 };
9730
9800
  });
9731
9801
  function If(state) {
@@ -9788,7 +9858,7 @@ ${input.slice(result.pos)}
9788
9858
  return result;
9789
9859
  }
9790
9860
  }
9791
- var LetOrConst$0 = $TS($S($C($EXPECT($L115, fail, 'LetOrConst "let"'), $EXPECT($L116, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9861
+ var LetOrConst$0 = $TS($S($C($EXPECT($L116, fail, 'LetOrConst "let"'), $EXPECT($L117, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9792
9862
  return { $loc, token: $1 };
9793
9863
  });
9794
9864
  function LetOrConst(state) {
@@ -9809,7 +9879,7 @@ ${input.slice(result.pos)}
9809
9879
  return result;
9810
9880
  }
9811
9881
  }
9812
- var Loop$0 = $TS($S($EXPECT($L117, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9882
+ var Loop$0 = $TS($S($EXPECT($L118, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9813
9883
  return { $loc, token: "while(true)" };
9814
9884
  });
9815
9885
  function Loop(state) {
@@ -9830,7 +9900,7 @@ ${input.slice(result.pos)}
9830
9900
  return result;
9831
9901
  }
9832
9902
  }
9833
- var New$0 = $TS($S($EXPECT($L118, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9903
+ var New$0 = $TS($S($EXPECT($L119, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9834
9904
  return { $loc, token: $1 };
9835
9905
  });
9836
9906
  function New(state) {
@@ -9893,7 +9963,7 @@ ${input.slice(result.pos)}
9893
9963
  return result;
9894
9964
  }
9895
9965
  }
9896
- var OpenBrace$0 = $TV($EXPECT($L119, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
9966
+ var OpenBrace$0 = $TV($EXPECT($L120, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
9897
9967
  return { $loc, token: $1 };
9898
9968
  });
9899
9969
  function OpenBrace(state) {
@@ -9914,7 +9984,7 @@ ${input.slice(result.pos)}
9914
9984
  return result;
9915
9985
  }
9916
9986
  }
9917
- var OpenBracket$0 = $TV($EXPECT($L120, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
9987
+ var OpenBracket$0 = $TV($EXPECT($L121, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
9918
9988
  return { $loc, token: $1 };
9919
9989
  });
9920
9990
  function OpenBracket(state) {
@@ -9935,7 +10005,7 @@ ${input.slice(result.pos)}
9935
10005
  return result;
9936
10006
  }
9937
10007
  }
9938
- var OpenParen$0 = $TV($EXPECT($L121, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
10008
+ var OpenParen$0 = $TV($EXPECT($L122, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
9939
10009
  return { $loc, token: $1 };
9940
10010
  });
9941
10011
  function OpenParen(state) {
@@ -9977,7 +10047,7 @@ ${input.slice(result.pos)}
9977
10047
  return result;
9978
10048
  }
9979
10049
  }
9980
- var Return$0 = $TS($S($EXPECT($L122, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10050
+ var Return$0 = $TS($S($EXPECT($L123, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9981
10051
  return { $loc, token: $1 };
9982
10052
  });
9983
10053
  function Return(state) {
@@ -10019,7 +10089,7 @@ ${input.slice(result.pos)}
10019
10089
  return result;
10020
10090
  }
10021
10091
  }
10022
- var SingleQuote$0 = $TV($EXPECT($L123, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
10092
+ var SingleQuote$0 = $TV($EXPECT($L124, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
10023
10093
  return { $loc, token: $1 };
10024
10094
  });
10025
10095
  function SingleQuote(state) {
@@ -10061,10 +10131,10 @@ ${input.slice(result.pos)}
10061
10131
  return result;
10062
10132
  }
10063
10133
  }
10064
- var Static$0 = $TV($EXPECT($L124, fail, 'Static "static"'), function($skip, $loc, $0, $1) {
10134
+ var Static$0 = $TV($EXPECT($L125, fail, 'Static "static"'), function($skip, $loc, $0, $1) {
10065
10135
  return { $loc, token: $1 };
10066
10136
  });
10067
- var Static$1 = $TS($S($EXPECT($L91, fail, 'Static "@"'), $N($C($EXPECT($L121, fail, 'Static "("'), $EXPECT($L91, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
10137
+ var Static$1 = $TS($S($EXPECT($L92, fail, 'Static "@"'), $N($C($EXPECT($L122, fail, 'Static "("'), $EXPECT($L92, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
10068
10138
  return { $loc, token: "static " };
10069
10139
  });
10070
10140
  function Static(state) {
@@ -10085,7 +10155,7 @@ ${input.slice(result.pos)}
10085
10155
  return result;
10086
10156
  }
10087
10157
  }
10088
- var SubstitutionStart$0 = $TV($EXPECT($L125, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
10158
+ var SubstitutionStart$0 = $TV($EXPECT($L126, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
10089
10159
  return { $loc, token: $1 };
10090
10160
  });
10091
10161
  function SubstitutionStart(state) {
@@ -10106,7 +10176,7 @@ ${input.slice(result.pos)}
10106
10176
  return result;
10107
10177
  }
10108
10178
  }
10109
- var Switch$0 = $TS($S($EXPECT($L126, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10179
+ var Switch$0 = $TS($S($EXPECT($L127, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10110
10180
  return { $loc, token: $1 };
10111
10181
  });
10112
10182
  function Switch(state) {
@@ -10127,7 +10197,7 @@ ${input.slice(result.pos)}
10127
10197
  return result;
10128
10198
  }
10129
10199
  }
10130
- var Target$0 = $TS($S($EXPECT($L127, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10200
+ var Target$0 = $TS($S($EXPECT($L128, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10131
10201
  return { $loc, token: $1 };
10132
10202
  });
10133
10203
  function Target(state) {
@@ -10148,7 +10218,7 @@ ${input.slice(result.pos)}
10148
10218
  return result;
10149
10219
  }
10150
10220
  }
10151
- var Then$0 = $TS($S(__, $EXPECT($L128, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
10221
+ var Then$0 = $TS($S(__, $EXPECT($L129, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
10152
10222
  return { $loc, token: "" };
10153
10223
  });
10154
10224
  function Then(state) {
@@ -10169,7 +10239,7 @@ ${input.slice(result.pos)}
10169
10239
  return result;
10170
10240
  }
10171
10241
  }
10172
- var This$0 = $TS($S($EXPECT($L129, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10242
+ var This$0 = $TS($S($EXPECT($L130, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10173
10243
  return { $loc, token: $1 };
10174
10244
  });
10175
10245
  function This(state) {
@@ -10190,7 +10260,7 @@ ${input.slice(result.pos)}
10190
10260
  return result;
10191
10261
  }
10192
10262
  }
10193
- var Throw$0 = $TS($S($EXPECT($L130, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10263
+ var Throw$0 = $TS($S($EXPECT($L131, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10194
10264
  return { $loc, token: $1 };
10195
10265
  });
10196
10266
  function Throw(state) {
@@ -10211,7 +10281,7 @@ ${input.slice(result.pos)}
10211
10281
  return result;
10212
10282
  }
10213
10283
  }
10214
- var TripleDoubleQuote$0 = $TV($EXPECT($L131, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
10284
+ var TripleDoubleQuote$0 = $TV($EXPECT($L132, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
10215
10285
  return { $loc, token: "`" };
10216
10286
  });
10217
10287
  function TripleDoubleQuote(state) {
@@ -10232,7 +10302,7 @@ ${input.slice(result.pos)}
10232
10302
  return result;
10233
10303
  }
10234
10304
  }
10235
- var TripleSingleQuote$0 = $TV($EXPECT($L132, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
10305
+ var TripleSingleQuote$0 = $TV($EXPECT($L133, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
10236
10306
  return { $loc, token: "`" };
10237
10307
  });
10238
10308
  function TripleSingleQuote(state) {
@@ -10253,7 +10323,7 @@ ${input.slice(result.pos)}
10253
10323
  return result;
10254
10324
  }
10255
10325
  }
10256
- var TripleSlash$0 = $TV($EXPECT($L133, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
10326
+ var TripleSlash$0 = $TV($EXPECT($L134, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
10257
10327
  return { $loc, token: "/" };
10258
10328
  });
10259
10329
  function TripleSlash(state) {
@@ -10274,7 +10344,7 @@ ${input.slice(result.pos)}
10274
10344
  return result;
10275
10345
  }
10276
10346
  }
10277
- var TripleTick$0 = $TV($EXPECT($L134, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
10347
+ var TripleTick$0 = $TV($EXPECT($L135, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
10278
10348
  return { $loc, token: "`" };
10279
10349
  });
10280
10350
  function TripleTick(state) {
@@ -10295,7 +10365,7 @@ ${input.slice(result.pos)}
10295
10365
  return result;
10296
10366
  }
10297
10367
  }
10298
- var Try$0 = $TS($S($EXPECT($L135, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10368
+ var Try$0 = $TS($S($EXPECT($L136, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10299
10369
  return { $loc, token: $1 };
10300
10370
  });
10301
10371
  function Try(state) {
@@ -10316,7 +10386,7 @@ ${input.slice(result.pos)}
10316
10386
  return result;
10317
10387
  }
10318
10388
  }
10319
- var Typeof$0 = $TS($S($EXPECT($L136, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10389
+ var Typeof$0 = $TS($S($EXPECT($L137, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10320
10390
  return { $loc, token: $1 };
10321
10391
  });
10322
10392
  function Typeof(state) {
@@ -10337,7 +10407,7 @@ ${input.slice(result.pos)}
10337
10407
  return result;
10338
10408
  }
10339
10409
  }
10340
- var Unless$0 = $TS($S($EXPECT($L137, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10410
+ var Unless$0 = $TS($S($EXPECT($L138, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10341
10411
  return { $loc, token: $1 };
10342
10412
  });
10343
10413
  function Unless(state) {
@@ -10358,7 +10428,7 @@ ${input.slice(result.pos)}
10358
10428
  return result;
10359
10429
  }
10360
10430
  }
10361
- var Until$0 = $TS($S($EXPECT($L138, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10431
+ var Until$0 = $TS($S($EXPECT($L139, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10362
10432
  return { $loc, token: $1 };
10363
10433
  });
10364
10434
  function Until(state) {
@@ -10379,7 +10449,7 @@ ${input.slice(result.pos)}
10379
10449
  return result;
10380
10450
  }
10381
10451
  }
10382
- var Var$0 = $TS($S($EXPECT($L139, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10452
+ var Var$0 = $TS($S($EXPECT($L140, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10383
10453
  return { $loc, token: $1 };
10384
10454
  });
10385
10455
  function Var(state) {
@@ -10400,7 +10470,7 @@ ${input.slice(result.pos)}
10400
10470
  return result;
10401
10471
  }
10402
10472
  }
10403
- var Void$0 = $TS($S($EXPECT($L140, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10473
+ var Void$0 = $TS($S($EXPECT($L141, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10404
10474
  return { $loc, token: $1 };
10405
10475
  });
10406
10476
  function Void(state) {
@@ -10421,7 +10491,7 @@ ${input.slice(result.pos)}
10421
10491
  return result;
10422
10492
  }
10423
10493
  }
10424
- var When$0 = $TS($S($EXPECT($L141, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10494
+ var When$0 = $TS($S($EXPECT($L142, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10425
10495
  return { $loc, token: "case" };
10426
10496
  });
10427
10497
  function When(state) {
@@ -10442,7 +10512,7 @@ ${input.slice(result.pos)}
10442
10512
  return result;
10443
10513
  }
10444
10514
  }
10445
- var While$0 = $TS($S($EXPECT($L142, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10515
+ var While$0 = $TS($S($EXPECT($L143, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10446
10516
  return { $loc, token: $1 };
10447
10517
  });
10448
10518
  function While(state) {
@@ -10463,7 +10533,7 @@ ${input.slice(result.pos)}
10463
10533
  return result;
10464
10534
  }
10465
10535
  }
10466
- var Yield$0 = $TS($S($EXPECT($L143, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10536
+ var Yield$0 = $TS($S($EXPECT($L144, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10467
10537
  return { $loc, token: $1 };
10468
10538
  });
10469
10539
  function Yield(state) {
@@ -10490,11 +10560,10 @@ ${input.slice(result.pos)}
10490
10560
  return $skip;
10491
10561
  return $0;
10492
10562
  });
10493
- var JSXElement$2 = $TS($S(JSXOpeningElement, $Q($C(_, JSXChild)), JSXNestedChildren, InsertNewline, InsertIndent), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
10563
+ var JSXElement$2 = $TS($S(JSXOpeningElement, JSXMixedChildren, InsertNewline, InsertIndent), function($skip, $loc, $0, $1, $2, $3, $4) {
10494
10564
  var open = $1;
10495
- var c1 = $2;
10496
- var c2 = $3;
10497
- if (c1.length || c2.length) {
10565
+ var children = $2;
10566
+ if (children.length) {
10498
10567
  return [...$0, ["</", open[1], ">"]];
10499
10568
  } else {
10500
10569
  return [open.slice(0, -1), " />"];
@@ -10521,7 +10590,7 @@ ${input.slice(result.pos)}
10521
10590
  return result;
10522
10591
  }
10523
10592
  }
10524
- var JSXSelfClosingElement$0 = $S($EXPECT($L5, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($L144, fail, 'JSXSelfClosingElement "/>"'));
10593
+ var JSXSelfClosingElement$0 = $S($EXPECT($L5, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($L145, fail, 'JSXSelfClosingElement "/>"'));
10525
10594
  function JSXSelfClosingElement(state) {
10526
10595
  if (state.events) {
10527
10596
  const result = state.events.enter?.("JSXSelfClosingElement", state);
@@ -10559,7 +10628,7 @@ ${input.slice(result.pos)}
10559
10628
  return result;
10560
10629
  }
10561
10630
  }
10562
- var JSXClosingElement$0 = $S($EXPECT($L145, fail, 'JSXClosingElement "</"'), __, $TEXT(JSXElementName), __, $EXPECT($L27, fail, 'JSXClosingElement ">"'));
10631
+ var JSXClosingElement$0 = $S($EXPECT($L146, fail, 'JSXClosingElement "</"'), __, $TEXT(JSXElementName), __, $EXPECT($L27, fail, 'JSXClosingElement ">"'));
10563
10632
  function JSXClosingElement(state) {
10564
10633
  if (state.events) {
10565
10634
  const result = state.events.enter?.("JSXClosingElement", state);
@@ -10578,8 +10647,8 @@ ${input.slice(result.pos)}
10578
10647
  return result;
10579
10648
  }
10580
10649
  }
10581
- var JSXFragment$0 = $S($EXPECT($L146, fail, 'JSXFragment "<>"'), $E(JSXChildren), $EXPECT($L147, fail, 'JSXFragment "</>"'));
10582
- var JSXFragment$1 = $TS($S($EXPECT($L146, fail, 'JSXFragment "<>"'), JSXNestedChildren, InsertNewline, InsertIndent), function($skip, $loc, $0, $1, $2, $3, $4) {
10650
+ var JSXFragment$0 = $S($EXPECT($L147, fail, 'JSXFragment "<>"'), $E(JSXChildren), $EXPECT($L148, fail, 'JSXFragment "</>"'));
10651
+ var JSXFragment$1 = $TS($S($EXPECT($L147, fail, 'JSXFragment "<>"'), JSXMixedChildren, InsertNewline, InsertIndent), function($skip, $loc, $0, $1, $2, $3, $4) {
10583
10652
  return [...$0, "</>"];
10584
10653
  });
10585
10654
  function JSXFragment(state) {
@@ -10695,7 +10764,23 @@ ${input.slice(result.pos)}
10695
10764
  }
10696
10765
  return parts;
10697
10766
  });
10698
- var JSXAttribute$1 = $S(JSXAttributeName, $E(JSXAttributeInitializer));
10767
+ var JSXAttribute$1 = $TS($S(JSXAttributeName, $E(JSXAttributeInitializer)), function($skip, $loc, $0, $1, $2) {
10768
+ var name = $1;
10769
+ var value = $2;
10770
+ if (name.type === "ComputedPropertyName") {
10771
+ if (value) {
10772
+ value = value[value.length - 1];
10773
+ if (value[0]?.token === "{" && value[value.length - 1]?.token === "}") {
10774
+ value = value.slice(1, -1);
10775
+ }
10776
+ } else {
10777
+ value = "true";
10778
+ }
10779
+ return ["{...{", name, ": ", value, "}}"];
10780
+ } else {
10781
+ return $0;
10782
+ }
10783
+ });
10699
10784
  function JSXAttribute(state) {
10700
10785
  if (state.events) {
10701
10786
  const result = state.events.enter?.("JSXAttribute", state);
@@ -10715,6 +10800,7 @@ ${input.slice(result.pos)}
10715
10800
  }
10716
10801
  }
10717
10802
  var JSXAttributeName$0 = $S(JSXIdentifierName, $E($S(Colon, JSXIdentifierName)));
10803
+ var JSXAttributeName$1 = ComputedPropertyName;
10718
10804
  function JSXAttributeName(state) {
10719
10805
  if (state.events) {
10720
10806
  const result = state.events.enter?.("JSXAttributeName", state);
@@ -10722,12 +10808,12 @@ ${input.slice(result.pos)}
10722
10808
  return result.cache;
10723
10809
  }
10724
10810
  if (state.tokenize) {
10725
- const result = $TOKEN("JSXAttributeName", state, JSXAttributeName$0(state));
10811
+ const result = $TOKEN("JSXAttributeName", state, JSXAttributeName$0(state) || JSXAttributeName$1(state));
10726
10812
  if (state.events)
10727
10813
  state.events.exit?.("JSXAttributeName", state, result);
10728
10814
  return result;
10729
10815
  } else {
10730
- const result = JSXAttributeName$0(state);
10816
+ const result = JSXAttributeName$0(state) || JSXAttributeName$1(state);
10731
10817
  if (state.events)
10732
10818
  state.events.exit?.("JSXAttributeName", state, result);
10733
10819
  return result;
@@ -10757,6 +10843,7 @@ ${input.slice(result.pos)}
10757
10843
  var JSXAttributeValue$2 = $S(OpenBrace, ExtendedExpression, __, CloseBrace);
10758
10844
  var JSXAttributeValue$3 = JSXElement;
10759
10845
  var JSXAttributeValue$4 = JSXFragment;
10846
+ var JSXAttributeValue$5 = $S(InsertInlineOpenBrace, InlineJSXAttributeValue, InsertCloseBrace);
10760
10847
  function JSXAttributeValue(state) {
10761
10848
  if (state.events) {
10762
10849
  const result = state.events.enter?.("JSXAttributeValue", state);
@@ -10764,17 +10851,68 @@ ${input.slice(result.pos)}
10764
10851
  return result.cache;
10765
10852
  }
10766
10853
  if (state.tokenize) {
10767
- const result = $TOKEN("JSXAttributeValue", state, JSXAttributeValue$0(state) || JSXAttributeValue$1(state) || JSXAttributeValue$2(state) || JSXAttributeValue$3(state) || JSXAttributeValue$4(state));
10854
+ const result = $TOKEN("JSXAttributeValue", state, JSXAttributeValue$0(state) || JSXAttributeValue$1(state) || JSXAttributeValue$2(state) || JSXAttributeValue$3(state) || JSXAttributeValue$4(state) || JSXAttributeValue$5(state));
10768
10855
  if (state.events)
10769
10856
  state.events.exit?.("JSXAttributeValue", state, result);
10770
10857
  return result;
10771
10858
  } else {
10772
- const result = JSXAttributeValue$0(state) || JSXAttributeValue$1(state) || JSXAttributeValue$2(state) || JSXAttributeValue$3(state) || JSXAttributeValue$4(state);
10859
+ const result = JSXAttributeValue$0(state) || JSXAttributeValue$1(state) || JSXAttributeValue$2(state) || JSXAttributeValue$3(state) || JSXAttributeValue$4(state) || JSXAttributeValue$5(state);
10773
10860
  if (state.events)
10774
10861
  state.events.exit?.("JSXAttributeValue", state, result);
10775
10862
  return result;
10776
10863
  }
10777
10864
  }
10865
+ var InlineJSXAttributeValue$0 = NullLiteral;
10866
+ var InlineJSXAttributeValue$1 = BooleanLiteral;
10867
+ var InlineJSXAttributeValue$2 = NumericLiteral;
10868
+ var InlineJSXAttributeValue$3 = ThisLiteral;
10869
+ var InlineJSXAttributeValue$4 = ArrayLiteral;
10870
+ var InlineJSXAttributeValue$5 = BracedObjectLiteral;
10871
+ var InlineJSXAttributeValue$6 = IdentifierReference;
10872
+ var InlineJSXAttributeValue$7 = RegularExpressionLiteral;
10873
+ var InlineJSXAttributeValue$8 = TemplateLiteral;
10874
+ var InlineJSXAttributeValue$9 = ParenthesizedExpression;
10875
+ function InlineJSXAttributeValue(state) {
10876
+ if (state.events) {
10877
+ const result = state.events.enter?.("InlineJSXAttributeValue", state);
10878
+ if (result)
10879
+ return result.cache;
10880
+ }
10881
+ if (state.tokenize) {
10882
+ const result = $TOKEN("InlineJSXAttributeValue", state, InlineJSXAttributeValue$0(state) || InlineJSXAttributeValue$1(state) || InlineJSXAttributeValue$2(state) || InlineJSXAttributeValue$3(state) || InlineJSXAttributeValue$4(state) || InlineJSXAttributeValue$5(state) || InlineJSXAttributeValue$6(state) || InlineJSXAttributeValue$7(state) || InlineJSXAttributeValue$8(state) || InlineJSXAttributeValue$9(state));
10883
+ if (state.events)
10884
+ state.events.exit?.("InlineJSXAttributeValue", state, result);
10885
+ return result;
10886
+ } else {
10887
+ const result = InlineJSXAttributeValue$0(state) || InlineJSXAttributeValue$1(state) || InlineJSXAttributeValue$2(state) || InlineJSXAttributeValue$3(state) || InlineJSXAttributeValue$4(state) || InlineJSXAttributeValue$5(state) || InlineJSXAttributeValue$6(state) || InlineJSXAttributeValue$7(state) || InlineJSXAttributeValue$8(state) || InlineJSXAttributeValue$9(state);
10888
+ if (state.events)
10889
+ state.events.exit?.("InlineJSXAttributeValue", state, result);
10890
+ return result;
10891
+ }
10892
+ }
10893
+ var JSXMixedChildren$0 = $TS($S($Q($C(_, JSXChild)), JSXNestedChildren), function($skip, $loc, $0, $1, $2) {
10894
+ var c1 = $1;
10895
+ var c2 = $2;
10896
+ return c1.concat(c2);
10897
+ });
10898
+ function JSXMixedChildren(state) {
10899
+ if (state.events) {
10900
+ const result = state.events.enter?.("JSXMixedChildren", state);
10901
+ if (result)
10902
+ return result.cache;
10903
+ }
10904
+ if (state.tokenize) {
10905
+ const result = $TOKEN("JSXMixedChildren", state, JSXMixedChildren$0(state));
10906
+ if (state.events)
10907
+ state.events.exit?.("JSXMixedChildren", state, result);
10908
+ return result;
10909
+ } else {
10910
+ const result = JSXMixedChildren$0(state);
10911
+ if (state.events)
10912
+ state.events.exit?.("JSXMixedChildren", state, result);
10913
+ return result;
10914
+ }
10915
+ }
10778
10916
  var JSXChildren$0 = $Q($S(__, JSXChild));
10779
10917
  function JSXChildren(state) {
10780
10918
  if (state.events) {
@@ -10901,7 +11039,7 @@ ${input.slice(result.pos)}
10901
11039
  return result;
10902
11040
  }
10903
11041
  }
10904
- var TypeDeclarationModifier$0 = $S($EXPECT($L148, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
11042
+ var TypeDeclarationModifier$0 = $S($EXPECT($L149, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
10905
11043
  var TypeDeclarationModifier$1 = Export;
10906
11044
  function TypeDeclarationModifier(state) {
10907
11045
  if (state.events) {
@@ -10943,7 +11081,7 @@ ${input.slice(result.pos)}
10943
11081
  return result;
10944
11082
  }
10945
11083
  }
10946
- var TypeKeyword$0 = $S($EXPECT($L149, fail, 'TypeKeyword "type"'), NonIdContinue);
11084
+ var TypeKeyword$0 = $S($EXPECT($L150, fail, 'TypeKeyword "type"'), NonIdContinue);
10947
11085
  function TypeKeyword(state) {
10948
11086
  if (state.events) {
10949
11087
  const result = state.events.enter?.("TypeKeyword", state);
@@ -10962,7 +11100,7 @@ ${input.slice(result.pos)}
10962
11100
  return result;
10963
11101
  }
10964
11102
  }
10965
- var Interface$0 = $S($EXPECT($L150, fail, 'Interface "interface"'), NonIdContinue);
11103
+ var Interface$0 = $S($EXPECT($L151, fail, 'Interface "interface"'), NonIdContinue);
10966
11104
  function Interface(state) {
10967
11105
  if (state.events) {
10968
11106
  const result = state.events.enter?.("Interface", state);
@@ -10981,7 +11119,7 @@ ${input.slice(result.pos)}
10981
11119
  return result;
10982
11120
  }
10983
11121
  }
10984
- var Namespace$0 = $S($EXPECT($L151, fail, 'Namespace "namespace"'), NonIdContinue);
11122
+ var Namespace$0 = $S($EXPECT($L152, fail, 'Namespace "namespace"'), NonIdContinue);
10985
11123
  function Namespace(state) {
10986
11124
  if (state.events) {
10987
11125
  const result = state.events.enter?.("Namespace", state);
@@ -11170,7 +11308,7 @@ ${input.slice(result.pos)}
11170
11308
  return result;
11171
11309
  }
11172
11310
  }
11173
- var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R49, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L152, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R4, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
11311
+ var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R49, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L153, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R4, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
11174
11312
  function TypeIndexSignature(state) {
11175
11313
  if (state.events) {
11176
11314
  const result = state.events.enter?.("TypeIndexSignature", state);
@@ -11230,7 +11368,7 @@ ${input.slice(result.pos)}
11230
11368
  return result;
11231
11369
  }
11232
11370
  }
11233
- var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($L153, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2, $3, $4) {
11371
+ var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($L154, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2, $3, $4) {
11234
11372
  const children = [...$1, $2];
11235
11373
  if ($3)
11236
11374
  children.push($3);
@@ -11365,10 +11503,10 @@ ${input.slice(result.pos)}
11365
11503
  return result;
11366
11504
  }
11367
11505
  }
11368
- var TypeUnaryOp$0 = $EXPECT($L154, fail, 'TypeUnaryOp "keyof"');
11369
- var TypeUnaryOp$1 = $EXPECT($L136, fail, 'TypeUnaryOp "typeof"');
11370
- var TypeUnaryOp$2 = $EXPECT($L155, fail, 'TypeUnaryOp "infer"');
11371
- var TypeUnaryOp$3 = $EXPECT($L152, fail, 'TypeUnaryOp "readonly"');
11506
+ var TypeUnaryOp$0 = $EXPECT($L155, fail, 'TypeUnaryOp "keyof"');
11507
+ var TypeUnaryOp$1 = $EXPECT($L137, fail, 'TypeUnaryOp "typeof"');
11508
+ var TypeUnaryOp$2 = $EXPECT($L156, fail, 'TypeUnaryOp "infer"');
11509
+ var TypeUnaryOp$3 = $EXPECT($L153, fail, 'TypeUnaryOp "readonly"');
11372
11510
  function TypeUnaryOp(state) {
11373
11511
  if (state.events) {
11374
11512
  const result = state.events.enter?.("TypeUnaryOp", state);
@@ -11537,10 +11675,10 @@ ${input.slice(result.pos)}
11537
11675
  }
11538
11676
  var TypeLiteral$0 = Literal;
11539
11677
  var TypeLiteral$1 = TemplateLiteral;
11540
- var TypeLiteral$2 = $TV($EXPECT($L140, fail, 'TypeLiteral "void"'), function($skip, $loc, $0, $1) {
11678
+ var TypeLiteral$2 = $TV($EXPECT($L141, fail, 'TypeLiteral "void"'), function($skip, $loc, $0, $1) {
11541
11679
  return { $loc, token: "void" };
11542
11680
  });
11543
- var TypeLiteral$3 = $TV($EXPECT($L156, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
11681
+ var TypeLiteral$3 = $TV($EXPECT($L157, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
11544
11682
  return { $loc, token: "[]" };
11545
11683
  });
11546
11684
  function TypeLiteral(state) {
@@ -11753,7 +11891,7 @@ ${input.slice(result.pos)}
11753
11891
  return result;
11754
11892
  }
11755
11893
  }
11756
- var CivetPrologueContent$0 = $TS($S($EXPECT($L157, fail, 'CivetPrologueContent "civet"'), $Q(CivetOption), $EXPECT($R52, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3) {
11894
+ var CivetPrologueContent$0 = $TS($S($EXPECT($L158, fail, 'CivetPrologueContent "civet"'), $Q(CivetOption), $EXPECT($R52, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3) {
11757
11895
  var options = $2;
11758
11896
  return {
11759
11897
  type: "CivetPrologue",
@@ -11975,7 +12113,7 @@ ${input.slice(result.pos)}
11975
12113
  }
11976
12114
  }
11977
12115
  var InsertInlineOpenBrace$0 = $TV($EXPECT($L0, fail, 'InsertInlineOpenBrace ""'), function($skip, $loc, $0, $1) {
11978
- return [{ $loc, token: "{" }];
12116
+ return { $loc, token: "{" };
11979
12117
  });
11980
12118
  function InsertInlineOpenBrace(state) {
11981
12119
  if (state.events) {
@@ -12058,6 +12196,27 @@ ${input.slice(result.pos)}
12058
12196
  return result;
12059
12197
  }
12060
12198
  }
12199
+ var InsertLet$0 = $TV($EXPECT($L0, fail, 'InsertLet ""'), function($skip, $loc, $0, $1) {
12200
+ return { $loc, token: "let " };
12201
+ });
12202
+ function InsertLet(state) {
12203
+ if (state.events) {
12204
+ const result = state.events.enter?.("InsertLet", state);
12205
+ if (result)
12206
+ return result.cache;
12207
+ }
12208
+ if (state.tokenize) {
12209
+ const result = $TOKEN("InsertLet", state, InsertLet$0(state));
12210
+ if (state.events)
12211
+ state.events.exit?.("InsertLet", state, result);
12212
+ return result;
12213
+ } else {
12214
+ const result = InsertLet$0(state);
12215
+ if (state.events)
12216
+ state.events.exit?.("InsertLet", state, result);
12217
+ return result;
12218
+ }
12219
+ }
12061
12220
  var InsertReadonly$0 = $TV($EXPECT($L0, fail, 'InsertReadonly ""'), function($skip, $loc, $0, $1) {
12062
12221
  return { ts: true, children: [{ $loc, token: "readonly " }] };
12063
12222
  });
@@ -14039,6 +14198,7 @@ makeCache = function() {
14039
14198
  case "JSXChildren":
14040
14199
  case "JSXFragment":
14041
14200
  case "JSXNestedChildren":
14201
+ case "JSXMixedChildren":
14042
14202
  break;
14043
14203
  default:
14044
14204
  cache = /* @__PURE__ */ new Map();