@danielx/civet 0.4.22 → 0.4.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.js CHANGED
@@ -528,6 +528,8 @@ ${input.slice(result.pos)}
528
528
  NamedProperty,
529
529
  SnugNamedProperty,
530
530
  PropertyName,
531
+ Decorator,
532
+ Decorators,
531
533
  MethodDefinition,
532
534
  MethodModifier,
533
535
  MethodSignature,
@@ -610,6 +612,7 @@ ${input.slice(result.pos)}
610
612
  UnquotedSpecifier,
611
613
  ImportedBinding,
612
614
  ExportDeclaration,
615
+ ExportVarDec,
613
616
  ExportFromClause,
614
617
  NamedExports,
615
618
  ExportSpecifier,
@@ -677,6 +680,7 @@ ${input.slice(result.pos)}
677
680
  Ampersand,
678
681
  As,
679
682
  At,
683
+ AtAt,
680
684
  Async,
681
685
  Await,
682
686
  Backtick,
@@ -817,6 +821,7 @@ ${input.slice(result.pos)}
817
821
  InsertSpace,
818
822
  InsertDot,
819
823
  InsertBreak,
824
+ InsertVar,
820
825
  CoffeeBinaryExistentialEnabled,
821
826
  CoffeeBooleansEnabled,
822
827
  CoffeeClassesEnabled,
@@ -929,73 +934,72 @@ ${input.slice(result.pos)}
929
934
  var $L88 = $L("\\");
930
935
  var $L89 = $L("as");
931
936
  var $L90 = $L("@");
932
- var $L91 = $L("async");
933
- var $L92 = $L("await");
934
- var $L93 = $L("`");
935
- var $L94 = $L("by");
936
- var $L95 = $L("case");
937
- var $L96 = $L("catch");
938
- var $L97 = $L("class");
939
- var $L98 = $L("#{");
940
- var $L99 = $L("delete");
941
- var $L100 = $L("do");
942
- var $L101 = $L("..");
943
- var $L102 = $L("...");
944
- var $L103 = $L("::");
945
- var $L104 = $L('"');
946
- var $L105 = $L("else");
947
- var $L106 = $L("export");
948
- var $L107 = $L("for");
949
- var $L108 = $L("from");
950
- var $L109 = $L("function");
951
- var $L110 = $L("get");
952
- var $L111 = $L("set");
953
- var $L112 = $L("if");
954
- var $L113 = $L("let");
955
- var $L114 = $L("const");
956
- var $L115 = $L("loop");
957
- var $L116 = $L("new");
958
- var $L117 = $L("{");
959
- var $L118 = $L("[");
960
- var $L119 = $L("(");
961
- var $L120 = $L("return");
962
- var $L121 = $L("'");
963
- var $L122 = $L("static");
964
- var $L123 = $L("${");
965
- var $L124 = $L("switch");
966
- var $L125 = $L("target");
967
- var $L126 = $L("then");
968
- var $L127 = $L("this");
969
- var $L128 = $L("throw");
970
- var $L129 = $L('"""');
971
- var $L130 = $L("'''");
972
- var $L131 = $L("///");
973
- var $L132 = $L("```");
974
- var $L133 = $L("try");
975
- var $L134 = $L("typeof");
976
- var $L135 = $L("unless");
977
- var $L136 = $L("until");
978
- var $L137 = $L("var");
979
- var $L138 = $L("void");
980
- var $L139 = $L("when");
981
- var $L140 = $L("while");
982
- var $L141 = $L("yield");
983
- var $L142 = $L("/>");
984
- var $L143 = $L("</");
985
- var $L144 = $L("<>");
986
- var $L145 = $L("</>");
987
- var $L146 = $L("declare");
988
- var $L147 = $L("type");
989
- var $L148 = $L("interface");
990
- var $L149 = $L("namespace");
991
- var $L150 = $L("readonly");
992
- var $L151 = $L("asserts");
993
- var $L152 = $L("keyof");
994
- var $L153 = $L("infer");
995
- var $L154 = $L("[]");
996
- var $L155 = $L("civet");
997
- var $L156 = $L(" ");
998
- var $L157 = $L(" ");
937
+ var $L91 = $L("@@");
938
+ var $L92 = $L("async");
939
+ var $L93 = $L("await");
940
+ var $L94 = $L("`");
941
+ var $L95 = $L("by");
942
+ var $L96 = $L("case");
943
+ var $L97 = $L("catch");
944
+ var $L98 = $L("class");
945
+ var $L99 = $L("#{");
946
+ var $L100 = $L("delete");
947
+ var $L101 = $L("do");
948
+ var $L102 = $L("..");
949
+ var $L103 = $L("...");
950
+ var $L104 = $L("::");
951
+ var $L105 = $L('"');
952
+ var $L106 = $L("else");
953
+ var $L107 = $L("export");
954
+ var $L108 = $L("for");
955
+ var $L109 = $L("from");
956
+ var $L110 = $L("function");
957
+ var $L111 = $L("get");
958
+ var $L112 = $L("set");
959
+ var $L113 = $L("if");
960
+ var $L114 = $L("let");
961
+ var $L115 = $L("const");
962
+ var $L116 = $L("loop");
963
+ var $L117 = $L("new");
964
+ var $L118 = $L("{");
965
+ var $L119 = $L("[");
966
+ var $L120 = $L("(");
967
+ var $L121 = $L("return");
968
+ var $L122 = $L("'");
969
+ var $L123 = $L("static");
970
+ var $L124 = $L("${");
971
+ var $L125 = $L("switch");
972
+ var $L126 = $L("target");
973
+ var $L127 = $L("then");
974
+ var $L128 = $L("this");
975
+ var $L129 = $L("throw");
976
+ var $L130 = $L('"""');
977
+ var $L131 = $L("'''");
978
+ var $L132 = $L("///");
979
+ var $L133 = $L("```");
980
+ var $L134 = $L("try");
981
+ var $L135 = $L("typeof");
982
+ var $L136 = $L("unless");
983
+ var $L137 = $L("until");
984
+ var $L138 = $L("var");
985
+ var $L139 = $L("void");
986
+ var $L140 = $L("when");
987
+ var $L141 = $L("while");
988
+ var $L142 = $L("yield");
989
+ var $L143 = $L("/>");
990
+ var $L144 = $L("</");
991
+ var $L145 = $L("<>");
992
+ var $L146 = $L("</>");
993
+ var $L147 = $L("declare");
994
+ var $L148 = $L("type");
995
+ var $L149 = $L("interface");
996
+ var $L150 = $L("namespace");
997
+ var $L151 = $L("readonly");
998
+ var $L152 = $L("asserts");
999
+ var $L153 = $L("keyof");
1000
+ var $L154 = $L("infer");
1001
+ var $L155 = $L("[]");
1002
+ var $L156 = $L("civet");
999
1003
  var $R0 = $R(new RegExp("(for|of|then|when)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
1000
1004
  var $R1 = $R(new RegExp("[&]", "suy"));
1001
1005
  var $R2 = $R(new RegExp("[!~+-]+", "suy"));
@@ -1048,8 +1052,9 @@ ${input.slice(result.pos)}
1048
1052
  var $R49 = $R(new RegExp("#![^\\r\\n]*", "suy"));
1049
1053
  var $R50 = $R(new RegExp("[\\t ]*", "suy"));
1050
1054
  var $R51 = $R(new RegExp("[\\s]*", "suy"));
1051
- var $R52 = $R(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)", "suy"));
1055
+ var $R52 = $R(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?", "suy"));
1052
1056
  var $R53 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
1057
+ var $R54 = $R(new RegExp("[ \\t]*", "suy"));
1053
1058
  var Program$0 = $TS($S(Reset, Init, __, $Q(TopLevelStatement), __), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
1054
1059
  var statements = $4;
1055
1060
  module.processProgram(statements);
@@ -1983,7 +1988,7 @@ ${input.slice(result.pos)}
1983
1988
  return result;
1984
1989
  }
1985
1990
  }
1986
- var ClassExpression$0 = $S(Class, $E(BindingIdentifier), $E($S(__, ClassHeritage)), ClassBody);
1991
+ var ClassExpression$0 = $S($E(Decorators), Class, $E(BindingIdentifier), $E($S(__, ClassHeritage)), ClassBody);
1987
1992
  function ClassExpression(state) {
1988
1993
  if (state.events) {
1989
1994
  const result = state.events.enter?.("ClassExpression", state);
@@ -2108,8 +2113,9 @@ ${input.slice(result.pos)}
2108
2113
  return result;
2109
2114
  }
2110
2115
  }
2111
- var ClassElement$0 = $S($E($S(Static, $Q(TrailingComment))), $C(MethodDefinition, FieldDefinition));
2112
- var ClassElement$1 = $S(Static, BracedBlock);
2116
+ var ClassElement$0 = MethodDefinition;
2117
+ var ClassElement$1 = $S($E($S(Static, $Q(TrailingComment))), $C(MethodDefinition, FieldDefinition));
2118
+ var ClassElement$2 = $S(Static, BracedBlock);
2113
2119
  function ClassElement(state) {
2114
2120
  if (state.events) {
2115
2121
  const result = state.events.enter?.("ClassElement", state);
@@ -2117,12 +2123,12 @@ ${input.slice(result.pos)}
2117
2123
  return result.cache;
2118
2124
  }
2119
2125
  if (state.tokenize) {
2120
- const result = $TOKEN("ClassElement", state, ClassElement$0(state) || ClassElement$1(state));
2126
+ const result = $TOKEN("ClassElement", state, ClassElement$0(state) || ClassElement$1(state) || ClassElement$2(state));
2121
2127
  if (state.events)
2122
2128
  state.events.exit?.("ClassElement", state, result);
2123
2129
  return result;
2124
2130
  } else {
2125
- const result = ClassElement$0(state) || ClassElement$1(state);
2131
+ const result = ClassElement$0(state) || ClassElement$1(state) || ClassElement$2(state);
2126
2132
  if (state.events)
2127
2133
  state.events.exit?.("ClassElement", state, result);
2128
2134
  return result;
@@ -2307,6 +2313,7 @@ ${input.slice(result.pos)}
2307
2313
  }
2308
2314
  }
2309
2315
  var AdditionalReservedWords$0 = $R$0($EXPECT($R0, fail, "AdditionalReservedWords /(for|of|then|when)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
2316
+ var AdditionalReservedWords$1 = AtAt;
2310
2317
  function AdditionalReservedWords(state) {
2311
2318
  if (state.events) {
2312
2319
  const result = state.events.enter?.("AdditionalReservedWords", state);
@@ -2314,12 +2321,12 @@ ${input.slice(result.pos)}
2314
2321
  return result.cache;
2315
2322
  }
2316
2323
  if (state.tokenize) {
2317
- const result = $TOKEN("AdditionalReservedWords", state, AdditionalReservedWords$0(state));
2324
+ const result = $TOKEN("AdditionalReservedWords", state, AdditionalReservedWords$0(state) || AdditionalReservedWords$1(state));
2318
2325
  if (state.events)
2319
2326
  state.events.exit?.("AdditionalReservedWords", state, result);
2320
2327
  return result;
2321
2328
  } else {
2322
- const result = AdditionalReservedWords$0(state);
2329
+ const result = AdditionalReservedWords$0(state) || AdditionalReservedWords$1(state);
2323
2330
  if (state.events)
2324
2331
  state.events.exit?.("AdditionalReservedWords", state, result);
2325
2332
  return result;
@@ -4800,12 +4807,53 @@ ${input.slice(result.pos)}
4800
4807
  return result;
4801
4808
  }
4802
4809
  }
4803
- var MethodDefinition$0 = $TS($S(MethodSignature, BracedBlock), function($skip, $loc, $0, $1, $2) {
4804
- var sig = $1;
4805
- var block = $2;
4810
+ var Decorator$0 = $S(AtAt, IdentifierReference, $E(Arguments));
4811
+ function Decorator(state) {
4812
+ if (state.events) {
4813
+ const result = state.events.enter?.("Decorator", state);
4814
+ if (result)
4815
+ return result.cache;
4816
+ }
4817
+ if (state.tokenize) {
4818
+ const result = $TOKEN("Decorator", state, Decorator$0(state));
4819
+ if (state.events)
4820
+ state.events.exit?.("Decorator", state, result);
4821
+ return result;
4822
+ } else {
4823
+ const result = Decorator$0(state);
4824
+ if (state.events)
4825
+ state.events.exit?.("Decorator", state, result);
4826
+ return result;
4827
+ }
4828
+ }
4829
+ var Decorators$0 = $S($P($S(__, Decorator)), __);
4830
+ function Decorators(state) {
4831
+ if (state.events) {
4832
+ const result = state.events.enter?.("Decorators", state);
4833
+ if (result)
4834
+ return result.cache;
4835
+ }
4836
+ if (state.tokenize) {
4837
+ const result = $TOKEN("Decorators", state, Decorators$0(state));
4838
+ if (state.events)
4839
+ state.events.exit?.("Decorators", state, result);
4840
+ return result;
4841
+ } else {
4842
+ const result = Decorators$0(state);
4843
+ if (state.events)
4844
+ state.events.exit?.("Decorators", state, result);
4845
+ return result;
4846
+ }
4847
+ }
4848
+ var MethodDefinition$0 = $TS($S($E(Decorators), MethodSignature, BracedBlock), function($skip, $loc, $0, $1, $2, $3) {
4849
+ var signature = $2;
4850
+ var block = $3;
4806
4851
  return {
4807
4852
  type: "MethodDefinition",
4808
- children: $0
4853
+ children: $0,
4854
+ signature,
4855
+ block,
4856
+ parameters: signature.parameters
4809
4857
  };
4810
4858
  });
4811
4859
  function MethodDefinition(state) {
@@ -4849,15 +4897,18 @@ ${input.slice(result.pos)}
4849
4897
  }
4850
4898
  }
4851
4899
  var MethodSignature$0 = $TS($S(ConstructorShorthand, NonEmptyParameters), function($skip, $loc, $0, $1, $2) {
4900
+ var parameters = $2;
4852
4901
  return {
4853
4902
  type: "MethodSignature",
4854
4903
  children: $0,
4855
4904
  name: $1.token,
4856
- returnType: void 0
4905
+ returnType: void 0,
4906
+ parameters
4857
4907
  };
4858
4908
  });
4859
4909
  var MethodSignature$1 = $TS($S($E(MethodModifier), ClassElementName, $Q(_), NonEmptyParameters, $E(ReturnTypeSuffix)), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
4860
4910
  var name = $2;
4911
+ var parameters = $4;
4861
4912
  var suffix = $5;
4862
4913
  if (name.name) {
4863
4914
  name = name.name;
@@ -4869,7 +4920,8 @@ ${input.slice(result.pos)}
4869
4920
  children: $0,
4870
4921
  name,
4871
4922
  modifier: $1?.[0]?.token,
4872
- returnType: void 0
4923
+ returnType: void 0,
4924
+ parameters
4873
4925
  };
4874
4926
  });
4875
4927
  function MethodSignature(state) {
@@ -7204,7 +7256,7 @@ ${input.slice(result.pos)}
7204
7256
  }
7205
7257
  var ExportDeclaration$0 = $S(Export, __, $EXPECT($L84, fail, 'ExportDeclaration "default"'), NonIdContinue, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression));
7206
7258
  var ExportDeclaration$1 = $S(Export, __, ExportFromClause, __, FromClause);
7207
- var ExportDeclaration$2 = $S(Export, __, $C(Declaration, NamedExports, VariableStatement));
7259
+ var ExportDeclaration$2 = $S(Export, __, $C(Declaration, NamedExports, VariableStatement, ExportVarDec));
7208
7260
  function ExportDeclaration(state) {
7209
7261
  if (state.events) {
7210
7262
  const result = state.events.enter?.("ExportDeclaration", state);
@@ -7223,6 +7275,25 @@ ${input.slice(result.pos)}
7223
7275
  return result;
7224
7276
  }
7225
7277
  }
7278
+ var ExportVarDec$0 = $S(InsertVar, VariableDeclarationList);
7279
+ function ExportVarDec(state) {
7280
+ if (state.events) {
7281
+ const result = state.events.enter?.("ExportVarDec", state);
7282
+ if (result)
7283
+ return result.cache;
7284
+ }
7285
+ if (state.tokenize) {
7286
+ const result = $TOKEN("ExportVarDec", state, ExportVarDec$0(state));
7287
+ if (state.events)
7288
+ state.events.exit?.("ExportVarDec", state, result);
7289
+ return result;
7290
+ } else {
7291
+ const result = ExportVarDec$0(state);
7292
+ if (state.events)
7293
+ state.events.exit?.("ExportVarDec", state, result);
7294
+ return result;
7295
+ }
7296
+ }
7226
7297
  var ExportFromClause$0 = $S(Star, $E($S(__, As, __, ModuleExportName)));
7227
7298
  var ExportFromClause$1 = NamedExports;
7228
7299
  function ExportFromClause(state) {
@@ -7286,7 +7357,7 @@ ${input.slice(result.pos)}
7286
7357
  return result;
7287
7358
  }
7288
7359
  }
7289
- var ImplicitExportSpecifier$0 = $S($N($EXPECT($L84, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), ImplicitInlineObjectPropertyDelimiter);
7360
+ var ImplicitExportSpecifier$0 = $S($N($EXPECT($L84, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), $C($Y($S(__, From)), ImplicitInlineObjectPropertyDelimiter));
7290
7361
  function ImplicitExportSpecifier(state) {
7291
7362
  if (state.events) {
7292
7363
  const result = state.events.enter?.("ImplicitExportSpecifier", state);
@@ -8796,7 +8867,28 @@ ${input.slice(result.pos)}
8796
8867
  return result;
8797
8868
  }
8798
8869
  }
8799
- var Async$0 = $TV($EXPECT($L91, fail, 'Async "async"'), function($skip, $loc, $0, $1) {
8870
+ var AtAt$0 = $TV($EXPECT($L91, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
8871
+ return { $loc, token: "@" };
8872
+ });
8873
+ function AtAt(state) {
8874
+ if (state.events) {
8875
+ const result = state.events.enter?.("AtAt", state);
8876
+ if (result)
8877
+ return result.cache;
8878
+ }
8879
+ if (state.tokenize) {
8880
+ const result = $TOKEN("AtAt", state, AtAt$0(state));
8881
+ if (state.events)
8882
+ state.events.exit?.("AtAt", state, result);
8883
+ return result;
8884
+ } else {
8885
+ const result = AtAt$0(state);
8886
+ if (state.events)
8887
+ state.events.exit?.("AtAt", state, result);
8888
+ return result;
8889
+ }
8890
+ }
8891
+ var Async$0 = $TV($EXPECT($L92, fail, 'Async "async"'), function($skip, $loc, $0, $1) {
8800
8892
  return { $loc, token: $1 };
8801
8893
  });
8802
8894
  function Async(state) {
@@ -8817,7 +8909,7 @@ ${input.slice(result.pos)}
8817
8909
  return result;
8818
8910
  }
8819
8911
  }
8820
- var Await$0 = $TS($S($EXPECT($L92, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
8912
+ var Await$0 = $TS($S($EXPECT($L93, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
8821
8913
  return { $loc, token: $1 };
8822
8914
  });
8823
8915
  function Await(state) {
@@ -8838,7 +8930,7 @@ ${input.slice(result.pos)}
8838
8930
  return result;
8839
8931
  }
8840
8932
  }
8841
- var Backtick$0 = $TV($EXPECT($L93, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
8933
+ var Backtick$0 = $TV($EXPECT($L94, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
8842
8934
  return { $loc, token: $1 };
8843
8935
  });
8844
8936
  function Backtick(state) {
@@ -8859,7 +8951,7 @@ ${input.slice(result.pos)}
8859
8951
  return result;
8860
8952
  }
8861
8953
  }
8862
- var By$0 = $TS($S($EXPECT($L94, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
8954
+ var By$0 = $TS($S($EXPECT($L95, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
8863
8955
  return { $loc, token: $1 };
8864
8956
  });
8865
8957
  function By(state) {
@@ -8880,7 +8972,7 @@ ${input.slice(result.pos)}
8880
8972
  return result;
8881
8973
  }
8882
8974
  }
8883
- var Case$0 = $TS($S($EXPECT($L95, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
8975
+ var Case$0 = $TS($S($EXPECT($L96, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
8884
8976
  return { $loc, token: $1 };
8885
8977
  });
8886
8978
  function Case(state) {
@@ -8901,7 +8993,7 @@ ${input.slice(result.pos)}
8901
8993
  return result;
8902
8994
  }
8903
8995
  }
8904
- var Catch$0 = $TV($EXPECT($L96, fail, 'Catch "catch"'), function($skip, $loc, $0, $1) {
8996
+ var Catch$0 = $TV($EXPECT($L97, fail, 'Catch "catch"'), function($skip, $loc, $0, $1) {
8905
8997
  return { $loc, token: $1 };
8906
8998
  });
8907
8999
  function Catch(state) {
@@ -8922,7 +9014,7 @@ ${input.slice(result.pos)}
8922
9014
  return result;
8923
9015
  }
8924
9016
  }
8925
- var Class$0 = $TV($EXPECT($L97, fail, 'Class "class"'), function($skip, $loc, $0, $1) {
9017
+ var Class$0 = $TV($EXPECT($L98, fail, 'Class "class"'), function($skip, $loc, $0, $1) {
8926
9018
  return { $loc, token: $1 };
8927
9019
  });
8928
9020
  function Class(state) {
@@ -9006,7 +9098,7 @@ ${input.slice(result.pos)}
9006
9098
  return result;
9007
9099
  }
9008
9100
  }
9009
- var CoffeeSubstitutionStart$0 = $TV($EXPECT($L98, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
9101
+ var CoffeeSubstitutionStart$0 = $TV($EXPECT($L99, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
9010
9102
  return { $loc, token: "${" };
9011
9103
  });
9012
9104
  function CoffeeSubstitutionStart(state) {
@@ -9090,7 +9182,7 @@ ${input.slice(result.pos)}
9090
9182
  return result;
9091
9183
  }
9092
9184
  }
9093
- var Delete$0 = $TS($S($EXPECT($L99, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9185
+ var Delete$0 = $TS($S($EXPECT($L100, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9094
9186
  return { $loc, token: $1 };
9095
9187
  });
9096
9188
  function Delete(state) {
@@ -9111,7 +9203,7 @@ ${input.slice(result.pos)}
9111
9203
  return result;
9112
9204
  }
9113
9205
  }
9114
- var Do$0 = $TS($S($EXPECT($L100, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9206
+ var Do$0 = $TS($S($EXPECT($L101, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9115
9207
  return { $loc, token: $1 };
9116
9208
  });
9117
9209
  function Do(state) {
@@ -9153,7 +9245,7 @@ ${input.slice(result.pos)}
9153
9245
  return result;
9154
9246
  }
9155
9247
  }
9156
- var DotDot$0 = $TV($EXPECT($L101, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
9248
+ var DotDot$0 = $TV($EXPECT($L102, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
9157
9249
  return { $loc, token: $1 };
9158
9250
  });
9159
9251
  function DotDot(state) {
@@ -9174,7 +9266,7 @@ ${input.slice(result.pos)}
9174
9266
  return result;
9175
9267
  }
9176
9268
  }
9177
- var DotDotDot$0 = $TV($EXPECT($L102, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
9269
+ var DotDotDot$0 = $TV($EXPECT($L103, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
9178
9270
  return { $loc, token: $1 };
9179
9271
  });
9180
9272
  function DotDotDot(state) {
@@ -9195,7 +9287,7 @@ ${input.slice(result.pos)}
9195
9287
  return result;
9196
9288
  }
9197
9289
  }
9198
- var DoubleColon$0 = $TV($EXPECT($L103, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
9290
+ var DoubleColon$0 = $TV($EXPECT($L104, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
9199
9291
  return { $loc, token: $1 };
9200
9292
  });
9201
9293
  function DoubleColon(state) {
@@ -9216,7 +9308,7 @@ ${input.slice(result.pos)}
9216
9308
  return result;
9217
9309
  }
9218
9310
  }
9219
- var DoubleQuote$0 = $TV($EXPECT($L104, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
9311
+ var DoubleQuote$0 = $TV($EXPECT($L105, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
9220
9312
  return { $loc, token: $1 };
9221
9313
  });
9222
9314
  function DoubleQuote(state) {
@@ -9237,7 +9329,7 @@ ${input.slice(result.pos)}
9237
9329
  return result;
9238
9330
  }
9239
9331
  }
9240
- var Else$0 = $TV($EXPECT($L105, fail, 'Else "else"'), function($skip, $loc, $0, $1) {
9332
+ var Else$0 = $TV($EXPECT($L106, fail, 'Else "else"'), function($skip, $loc, $0, $1) {
9241
9333
  return { $loc, token: $1 };
9242
9334
  });
9243
9335
  function Else(state) {
@@ -9279,7 +9371,7 @@ ${input.slice(result.pos)}
9279
9371
  return result;
9280
9372
  }
9281
9373
  }
9282
- var Export$0 = $TS($S($EXPECT($L106, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9374
+ var Export$0 = $TS($S($EXPECT($L107, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9283
9375
  return { $loc, token: $1 };
9284
9376
  });
9285
9377
  function Export(state) {
@@ -9300,7 +9392,7 @@ ${input.slice(result.pos)}
9300
9392
  return result;
9301
9393
  }
9302
9394
  }
9303
- var For$0 = $TS($S($EXPECT($L107, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9395
+ var For$0 = $TS($S($EXPECT($L108, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9304
9396
  return { $loc, token: $1 };
9305
9397
  });
9306
9398
  function For(state) {
@@ -9321,7 +9413,7 @@ ${input.slice(result.pos)}
9321
9413
  return result;
9322
9414
  }
9323
9415
  }
9324
- var From$0 = $TS($S($EXPECT($L108, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9416
+ var From$0 = $TS($S($EXPECT($L109, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9325
9417
  return { $loc, token: $1 };
9326
9418
  });
9327
9419
  function From(state) {
@@ -9342,7 +9434,7 @@ ${input.slice(result.pos)}
9342
9434
  return result;
9343
9435
  }
9344
9436
  }
9345
- var Function$0 = $TV($EXPECT($L109, fail, 'Function "function"'), function($skip, $loc, $0, $1) {
9437
+ var Function$0 = $TV($EXPECT($L110, fail, 'Function "function"'), function($skip, $loc, $0, $1) {
9346
9438
  return { $loc, token: $1 };
9347
9439
  });
9348
9440
  function Function(state) {
@@ -9363,7 +9455,7 @@ ${input.slice(result.pos)}
9363
9455
  return result;
9364
9456
  }
9365
9457
  }
9366
- var GetOrSet$0 = $TS($S($C($EXPECT($L110, fail, 'GetOrSet "get"'), $EXPECT($L111, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9458
+ var GetOrSet$0 = $TS($S($C($EXPECT($L111, fail, 'GetOrSet "get"'), $EXPECT($L112, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9367
9459
  return { $loc, token: $1 };
9368
9460
  });
9369
9461
  function GetOrSet(state) {
@@ -9384,7 +9476,7 @@ ${input.slice(result.pos)}
9384
9476
  return result;
9385
9477
  }
9386
9478
  }
9387
- var If$0 = $TV($TEXT($S($EXPECT($L112, fail, 'If "if"'), $E($EXPECT($L4, fail, 'If " "')))), function($skip, $loc, $0, $1) {
9479
+ var If$0 = $TV($TEXT($S($EXPECT($L113, fail, 'If "if"'), $E($EXPECT($L4, fail, 'If " "')))), function($skip, $loc, $0, $1) {
9388
9480
  return { $loc, token: $1 };
9389
9481
  });
9390
9482
  function If(state) {
@@ -9447,7 +9539,7 @@ ${input.slice(result.pos)}
9447
9539
  return result;
9448
9540
  }
9449
9541
  }
9450
- var LetOrConst$0 = $TS($S($C($EXPECT($L113, fail, 'LetOrConst "let"'), $EXPECT($L114, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9542
+ var LetOrConst$0 = $TS($S($C($EXPECT($L114, fail, 'LetOrConst "let"'), $EXPECT($L115, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9451
9543
  return { $loc, token: $1 };
9452
9544
  });
9453
9545
  function LetOrConst(state) {
@@ -9468,7 +9560,7 @@ ${input.slice(result.pos)}
9468
9560
  return result;
9469
9561
  }
9470
9562
  }
9471
- var Loop$0 = $TS($S($EXPECT($L115, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9563
+ var Loop$0 = $TS($S($EXPECT($L116, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9472
9564
  return { $loc, token: "while(true)" };
9473
9565
  });
9474
9566
  function Loop(state) {
@@ -9489,7 +9581,7 @@ ${input.slice(result.pos)}
9489
9581
  return result;
9490
9582
  }
9491
9583
  }
9492
- var New$0 = $TS($S($EXPECT($L116, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9584
+ var New$0 = $TS($S($EXPECT($L117, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9493
9585
  return { $loc, token: $1 };
9494
9586
  });
9495
9587
  function New(state) {
@@ -9552,7 +9644,7 @@ ${input.slice(result.pos)}
9552
9644
  return result;
9553
9645
  }
9554
9646
  }
9555
- var OpenBrace$0 = $TV($EXPECT($L117, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
9647
+ var OpenBrace$0 = $TV($EXPECT($L118, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
9556
9648
  return { $loc, token: $1 };
9557
9649
  });
9558
9650
  function OpenBrace(state) {
@@ -9573,7 +9665,7 @@ ${input.slice(result.pos)}
9573
9665
  return result;
9574
9666
  }
9575
9667
  }
9576
- var OpenBracket$0 = $TV($EXPECT($L118, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
9668
+ var OpenBracket$0 = $TV($EXPECT($L119, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
9577
9669
  return { $loc, token: $1 };
9578
9670
  });
9579
9671
  function OpenBracket(state) {
@@ -9594,7 +9686,7 @@ ${input.slice(result.pos)}
9594
9686
  return result;
9595
9687
  }
9596
9688
  }
9597
- var OpenParen$0 = $TV($EXPECT($L119, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
9689
+ var OpenParen$0 = $TV($EXPECT($L120, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
9598
9690
  return { $loc, token: $1 };
9599
9691
  });
9600
9692
  function OpenParen(state) {
@@ -9636,7 +9728,7 @@ ${input.slice(result.pos)}
9636
9728
  return result;
9637
9729
  }
9638
9730
  }
9639
- var Return$0 = $TS($S($EXPECT($L120, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9731
+ var Return$0 = $TS($S($EXPECT($L121, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9640
9732
  return { $loc, token: $1 };
9641
9733
  });
9642
9734
  function Return(state) {
@@ -9678,7 +9770,7 @@ ${input.slice(result.pos)}
9678
9770
  return result;
9679
9771
  }
9680
9772
  }
9681
- var SingleQuote$0 = $TV($EXPECT($L121, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
9773
+ var SingleQuote$0 = $TV($EXPECT($L122, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
9682
9774
  return { $loc, token: $1 };
9683
9775
  });
9684
9776
  function SingleQuote(state) {
@@ -9720,10 +9812,10 @@ ${input.slice(result.pos)}
9720
9812
  return result;
9721
9813
  }
9722
9814
  }
9723
- var Static$0 = $TV($EXPECT($L122, fail, 'Static "static"'), function($skip, $loc, $0, $1) {
9815
+ var Static$0 = $TV($EXPECT($L123, fail, 'Static "static"'), function($skip, $loc, $0, $1) {
9724
9816
  return { $loc, token: $1 };
9725
9817
  });
9726
- var Static$1 = $TS($S($EXPECT($L90, fail, 'Static "@"'), $N($EXPECT($L119, fail, 'Static "("'))), function($skip, $loc, $0, $1, $2) {
9818
+ var Static$1 = $TS($S($EXPECT($L90, fail, 'Static "@"'), $N($C($EXPECT($L120, fail, 'Static "("'), $EXPECT($L90, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
9727
9819
  return { $loc, token: "static " };
9728
9820
  });
9729
9821
  function Static(state) {
@@ -9744,7 +9836,7 @@ ${input.slice(result.pos)}
9744
9836
  return result;
9745
9837
  }
9746
9838
  }
9747
- var SubstitutionStart$0 = $TV($EXPECT($L123, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
9839
+ var SubstitutionStart$0 = $TV($EXPECT($L124, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
9748
9840
  return { $loc, token: $1 };
9749
9841
  });
9750
9842
  function SubstitutionStart(state) {
@@ -9765,7 +9857,7 @@ ${input.slice(result.pos)}
9765
9857
  return result;
9766
9858
  }
9767
9859
  }
9768
- var Switch$0 = $TS($S($EXPECT($L124, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9860
+ var Switch$0 = $TS($S($EXPECT($L125, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9769
9861
  return { $loc, token: $1 };
9770
9862
  });
9771
9863
  function Switch(state) {
@@ -9786,7 +9878,7 @@ ${input.slice(result.pos)}
9786
9878
  return result;
9787
9879
  }
9788
9880
  }
9789
- var Target$0 = $TS($S($EXPECT($L125, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9881
+ var Target$0 = $TS($S($EXPECT($L126, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9790
9882
  return { $loc, token: $1 };
9791
9883
  });
9792
9884
  function Target(state) {
@@ -9807,7 +9899,7 @@ ${input.slice(result.pos)}
9807
9899
  return result;
9808
9900
  }
9809
9901
  }
9810
- var Then$0 = $TS($S(__, $EXPECT($L126, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
9902
+ var Then$0 = $TS($S(__, $EXPECT($L127, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
9811
9903
  return { $loc, token: "" };
9812
9904
  });
9813
9905
  function Then(state) {
@@ -9828,7 +9920,7 @@ ${input.slice(result.pos)}
9828
9920
  return result;
9829
9921
  }
9830
9922
  }
9831
- var This$0 = $TS($S($EXPECT($L127, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9923
+ var This$0 = $TS($S($EXPECT($L128, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9832
9924
  return { $loc, token: $1 };
9833
9925
  });
9834
9926
  function This(state) {
@@ -9849,7 +9941,7 @@ ${input.slice(result.pos)}
9849
9941
  return result;
9850
9942
  }
9851
9943
  }
9852
- var Throw$0 = $TS($S($EXPECT($L128, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9944
+ var Throw$0 = $TS($S($EXPECT($L129, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9853
9945
  return { $loc, token: $1 };
9854
9946
  });
9855
9947
  function Throw(state) {
@@ -9870,7 +9962,7 @@ ${input.slice(result.pos)}
9870
9962
  return result;
9871
9963
  }
9872
9964
  }
9873
- var TripleDoubleQuote$0 = $TV($EXPECT($L129, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
9965
+ var TripleDoubleQuote$0 = $TV($EXPECT($L130, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
9874
9966
  return { $loc, token: "`" };
9875
9967
  });
9876
9968
  function TripleDoubleQuote(state) {
@@ -9891,7 +9983,7 @@ ${input.slice(result.pos)}
9891
9983
  return result;
9892
9984
  }
9893
9985
  }
9894
- var TripleSingleQuote$0 = $TV($EXPECT($L130, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
9986
+ var TripleSingleQuote$0 = $TV($EXPECT($L131, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
9895
9987
  return { $loc, token: "`" };
9896
9988
  });
9897
9989
  function TripleSingleQuote(state) {
@@ -9912,7 +10004,7 @@ ${input.slice(result.pos)}
9912
10004
  return result;
9913
10005
  }
9914
10006
  }
9915
- var TripleSlash$0 = $TV($EXPECT($L131, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
10007
+ var TripleSlash$0 = $TV($EXPECT($L132, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
9916
10008
  return { $loc, token: "/" };
9917
10009
  });
9918
10010
  function TripleSlash(state) {
@@ -9933,7 +10025,7 @@ ${input.slice(result.pos)}
9933
10025
  return result;
9934
10026
  }
9935
10027
  }
9936
- var TripleTick$0 = $TV($EXPECT($L132, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
10028
+ var TripleTick$0 = $TV($EXPECT($L133, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
9937
10029
  return { $loc, token: "`" };
9938
10030
  });
9939
10031
  function TripleTick(state) {
@@ -9954,7 +10046,7 @@ ${input.slice(result.pos)}
9954
10046
  return result;
9955
10047
  }
9956
10048
  }
9957
- var Try$0 = $TS($S($EXPECT($L133, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10049
+ var Try$0 = $TS($S($EXPECT($L134, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9958
10050
  return { $loc, token: $1 };
9959
10051
  });
9960
10052
  function Try(state) {
@@ -9975,7 +10067,7 @@ ${input.slice(result.pos)}
9975
10067
  return result;
9976
10068
  }
9977
10069
  }
9978
- var Typeof$0 = $TS($S($EXPECT($L134, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10070
+ var Typeof$0 = $TS($S($EXPECT($L135, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9979
10071
  return { $loc, token: $1 };
9980
10072
  });
9981
10073
  function Typeof(state) {
@@ -9996,7 +10088,7 @@ ${input.slice(result.pos)}
9996
10088
  return result;
9997
10089
  }
9998
10090
  }
9999
- var Unless$0 = $TS($S($EXPECT($L135, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10091
+ var Unless$0 = $TS($S($EXPECT($L136, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10000
10092
  return { $loc, token: $1 };
10001
10093
  });
10002
10094
  function Unless(state) {
@@ -10017,7 +10109,7 @@ ${input.slice(result.pos)}
10017
10109
  return result;
10018
10110
  }
10019
10111
  }
10020
- var Until$0 = $TS($S($EXPECT($L136, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10112
+ var Until$0 = $TS($S($EXPECT($L137, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10021
10113
  return { $loc, token: $1 };
10022
10114
  });
10023
10115
  function Until(state) {
@@ -10038,7 +10130,7 @@ ${input.slice(result.pos)}
10038
10130
  return result;
10039
10131
  }
10040
10132
  }
10041
- var Var$0 = $TS($S($EXPECT($L137, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10133
+ var Var$0 = $TS($S($EXPECT($L138, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10042
10134
  return { $loc, token: $1 };
10043
10135
  });
10044
10136
  function Var(state) {
@@ -10059,7 +10151,7 @@ ${input.slice(result.pos)}
10059
10151
  return result;
10060
10152
  }
10061
10153
  }
10062
- var Void$0 = $TS($S($EXPECT($L138, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10154
+ var Void$0 = $TS($S($EXPECT($L139, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10063
10155
  return { $loc, token: $1 };
10064
10156
  });
10065
10157
  function Void(state) {
@@ -10080,7 +10172,7 @@ ${input.slice(result.pos)}
10080
10172
  return result;
10081
10173
  }
10082
10174
  }
10083
- var When$0 = $TS($S($EXPECT($L139, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10175
+ var When$0 = $TS($S($EXPECT($L140, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10084
10176
  return { $loc, token: "case" };
10085
10177
  });
10086
10178
  function When(state) {
@@ -10101,7 +10193,7 @@ ${input.slice(result.pos)}
10101
10193
  return result;
10102
10194
  }
10103
10195
  }
10104
- var While$0 = $TS($S($EXPECT($L140, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10196
+ var While$0 = $TS($S($EXPECT($L141, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10105
10197
  return { $loc, token: $1 };
10106
10198
  });
10107
10199
  function While(state) {
@@ -10122,7 +10214,7 @@ ${input.slice(result.pos)}
10122
10214
  return result;
10123
10215
  }
10124
10216
  }
10125
- var Yield$0 = $TS($S($EXPECT($L141, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10217
+ var Yield$0 = $TS($S($EXPECT($L142, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10126
10218
  return { $loc, token: $1 };
10127
10219
  });
10128
10220
  function Yield(state) {
@@ -10168,7 +10260,7 @@ ${input.slice(result.pos)}
10168
10260
  return result;
10169
10261
  }
10170
10262
  }
10171
- var JSXSelfClosingElement$0 = $S($EXPECT($L5, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($L142, fail, 'JSXSelfClosingElement "/>"'));
10263
+ var JSXSelfClosingElement$0 = $S($EXPECT($L5, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($L143, fail, 'JSXSelfClosingElement "/>"'));
10172
10264
  function JSXSelfClosingElement(state) {
10173
10265
  if (state.events) {
10174
10266
  const result = state.events.enter?.("JSXSelfClosingElement", state);
@@ -10206,7 +10298,7 @@ ${input.slice(result.pos)}
10206
10298
  return result;
10207
10299
  }
10208
10300
  }
10209
- var JSXClosingElement$0 = $S($EXPECT($L143, fail, 'JSXClosingElement "</"'), __, $TEXT(JSXElementName), __, $EXPECT($L25, fail, 'JSXClosingElement ">"'));
10301
+ var JSXClosingElement$0 = $S($EXPECT($L144, fail, 'JSXClosingElement "</"'), __, $TEXT(JSXElementName), __, $EXPECT($L25, fail, 'JSXClosingElement ">"'));
10210
10302
  function JSXClosingElement(state) {
10211
10303
  if (state.events) {
10212
10304
  const result = state.events.enter?.("JSXClosingElement", state);
@@ -10225,7 +10317,7 @@ ${input.slice(result.pos)}
10225
10317
  return result;
10226
10318
  }
10227
10319
  }
10228
- var JSXFragment$0 = $S($EXPECT($L144, fail, 'JSXFragment "<>"'), $E(JSXChildren), $EXPECT($L145, fail, 'JSXFragment "</>"'));
10320
+ var JSXFragment$0 = $S($EXPECT($L145, fail, 'JSXFragment "<>"'), $E(JSXChildren), $EXPECT($L146, fail, 'JSXFragment "</>"'));
10229
10321
  function JSXFragment(state) {
10230
10322
  if (state.events) {
10231
10323
  const result = state.events.enter?.("JSXFragment", state);
@@ -10482,7 +10574,7 @@ ${input.slice(result.pos)}
10482
10574
  return result;
10483
10575
  }
10484
10576
  }
10485
- var TypeDeclarationModifier$0 = $S($EXPECT($L146, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
10577
+ var TypeDeclarationModifier$0 = $S($EXPECT($L147, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
10486
10578
  var TypeDeclarationModifier$1 = Export;
10487
10579
  function TypeDeclarationModifier(state) {
10488
10580
  if (state.events) {
@@ -10524,7 +10616,7 @@ ${input.slice(result.pos)}
10524
10616
  return result;
10525
10617
  }
10526
10618
  }
10527
- var TypeKeyword$0 = $S($EXPECT($L147, fail, 'TypeKeyword "type"'), NonIdContinue);
10619
+ var TypeKeyword$0 = $S($EXPECT($L148, fail, 'TypeKeyword "type"'), NonIdContinue);
10528
10620
  function TypeKeyword(state) {
10529
10621
  if (state.events) {
10530
10622
  const result = state.events.enter?.("TypeKeyword", state);
@@ -10543,7 +10635,7 @@ ${input.slice(result.pos)}
10543
10635
  return result;
10544
10636
  }
10545
10637
  }
10546
- var Interface$0 = $S($EXPECT($L148, fail, 'Interface "interface"'), NonIdContinue);
10638
+ var Interface$0 = $S($EXPECT($L149, fail, 'Interface "interface"'), NonIdContinue);
10547
10639
  function Interface(state) {
10548
10640
  if (state.events) {
10549
10641
  const result = state.events.enter?.("Interface", state);
@@ -10562,7 +10654,7 @@ ${input.slice(result.pos)}
10562
10654
  return result;
10563
10655
  }
10564
10656
  }
10565
- var Namespace$0 = $S($EXPECT($L149, fail, 'Namespace "namespace"'), NonIdContinue);
10657
+ var Namespace$0 = $S($EXPECT($L150, fail, 'Namespace "namespace"'), NonIdContinue);
10566
10658
  function Namespace(state) {
10567
10659
  if (state.events) {
10568
10660
  const result = state.events.enter?.("Namespace", state);
@@ -10751,7 +10843,7 @@ ${input.slice(result.pos)}
10751
10843
  return result;
10752
10844
  }
10753
10845
  }
10754
- var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R47, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L150, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R48, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
10846
+ var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R47, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L151, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R48, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
10755
10847
  function TypeIndexSignature(state) {
10756
10848
  if (state.events) {
10757
10849
  const result = state.events.enter?.("TypeIndexSignature", state);
@@ -10811,7 +10903,7 @@ ${input.slice(result.pos)}
10811
10903
  return result;
10812
10904
  }
10813
10905
  }
10814
- var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($L151, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2, $3, $4) {
10906
+ var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($L152, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2, $3, $4) {
10815
10907
  const children = [...$1, $2];
10816
10908
  if ($3)
10817
10909
  children.push($3);
@@ -10946,9 +11038,9 @@ ${input.slice(result.pos)}
10946
11038
  return result;
10947
11039
  }
10948
11040
  }
10949
- var TypeUnaryOp$0 = $EXPECT($L152, fail, 'TypeUnaryOp "keyof"');
10950
- var TypeUnaryOp$1 = $EXPECT($L134, fail, 'TypeUnaryOp "typeof"');
10951
- var TypeUnaryOp$2 = $EXPECT($L153, fail, 'TypeUnaryOp "infer"');
11041
+ var TypeUnaryOp$0 = $EXPECT($L153, fail, 'TypeUnaryOp "keyof"');
11042
+ var TypeUnaryOp$1 = $EXPECT($L135, fail, 'TypeUnaryOp "typeof"');
11043
+ var TypeUnaryOp$2 = $EXPECT($L154, fail, 'TypeUnaryOp "infer"');
10952
11044
  function TypeUnaryOp(state) {
10953
11045
  if (state.events) {
10954
11046
  const result = state.events.enter?.("TypeUnaryOp", state);
@@ -11116,10 +11208,10 @@ ${input.slice(result.pos)}
11116
11208
  }
11117
11209
  }
11118
11210
  var TypeLiteral$0 = Literal;
11119
- var TypeLiteral$1 = $TV($EXPECT($L138, fail, 'TypeLiteral "void"'), function($skip, $loc, $0, $1) {
11211
+ var TypeLiteral$1 = $TV($EXPECT($L139, fail, 'TypeLiteral "void"'), function($skip, $loc, $0, $1) {
11120
11212
  return { $loc, token: "void" };
11121
11213
  });
11122
- var TypeLiteral$2 = $TV($EXPECT($L154, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
11214
+ var TypeLiteral$2 = $TV($EXPECT($L155, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
11123
11215
  return { $loc, token: "[]" };
11124
11216
  });
11125
11217
  function TypeLiteral(state) {
@@ -11332,7 +11424,7 @@ ${input.slice(result.pos)}
11332
11424
  return result;
11333
11425
  }
11334
11426
  }
11335
- var CivetPrologueContent$0 = $TS($S($EXPECT($L155, fail, 'CivetPrologueContent "civet"'), $Q(CivetOption), $EXPECT($R51, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3) {
11427
+ var CivetPrologueContent$0 = $TS($S($EXPECT($L156, fail, 'CivetPrologueContent "civet"'), $Q(CivetOption), $EXPECT($R51, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3) {
11336
11428
  var options = $2;
11337
11429
  return {
11338
11430
  type: "CivetPrologue",
@@ -11358,13 +11450,18 @@ ${input.slice(result.pos)}
11358
11450
  return result;
11359
11451
  }
11360
11452
  }
11361
- var CivetOption$0 = $TR($EXPECT($R52, fail, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
11453
+ var CivetOption$0 = $TR($EXPECT($R52, fail, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
11362
11454
  const optionName = $2.replace(/-+([a-z]?)/g, (_2, l) => {
11363
11455
  if (l)
11364
11456
  return l.toUpperCase();
11365
11457
  return "";
11366
11458
  });
11367
- const value = $1 === "-" ? false : true;
11459
+ let value = $3 ? $4 : $1 === "-" ? false : true;
11460
+ if (optionName === "tab") {
11461
+ value = parseFloat(value);
11462
+ if (isNaN(value))
11463
+ value = 0;
11464
+ }
11368
11465
  return [optionName, value];
11369
11466
  });
11370
11467
  function CivetOption(state) {
@@ -11737,6 +11834,27 @@ ${input.slice(result.pos)}
11737
11834
  return result;
11738
11835
  }
11739
11836
  }
11837
+ var InsertVar$0 = $TV($EXPECT($L0, fail, 'InsertVar ""'), function($skip, $loc, $0, $1) {
11838
+ return { $loc, token: "var " };
11839
+ });
11840
+ function InsertVar(state) {
11841
+ if (state.events) {
11842
+ const result = state.events.enter?.("InsertVar", state);
11843
+ if (result)
11844
+ return result.cache;
11845
+ }
11846
+ if (state.tokenize) {
11847
+ const result = $TOKEN("InsertVar", state, InsertVar$0(state));
11848
+ if (state.events)
11849
+ state.events.exit?.("InsertVar", state, result);
11850
+ return result;
11851
+ } else {
11852
+ const result = InsertVar$0(state);
11853
+ if (state.events)
11854
+ state.events.exit?.("InsertVar", state, result);
11855
+ return result;
11856
+ }
11857
+ }
11740
11858
  var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeBinaryExistentialEnabled ""'), function($skip, $loc, $0, $1) {
11741
11859
  if (module.config.coffeeBinaryExistential)
11742
11860
  return;
@@ -12020,7 +12138,8 @@ ${input.slice(result.pos)}
12020
12138
  coffeeLineContinuation: false,
12021
12139
  coffeeNot: false,
12022
12140
  coffeeOf: false,
12023
- implicitReturns: true
12141
+ implicitReturns: true,
12142
+ tab: void 0
12024
12143
  };
12025
12144
  let indexOfRef, hasPropRef, spliceRef;
12026
12145
  const asAny = {
@@ -12632,11 +12751,11 @@ ${input.slice(result.pos)}
12632
12751
  });
12633
12752
  gatherRecursiveAll(statements, (n) => n.type === "MethodDefinition").forEach((f) => {
12634
12753
  processParams(f);
12635
- const { children: [sig, block] } = f;
12754
+ const { signature, block } = f;
12636
12755
  if (module.config.implicitReturns) {
12637
- const isConstructor = sig.name === "constructor";
12638
- const isVoid = sig.returnType === "void";
12639
- const isSet = sig.modifier === "set";
12756
+ const isConstructor = signature.name === "constructor";
12757
+ const isVoid = signature.returnType === "void";
12758
+ const isSet = signature.modifier === "set";
12640
12759
  if (!isConstructor && !isSet && !isVoid) {
12641
12760
  insertReturn(block);
12642
12761
  }
@@ -12893,11 +13012,18 @@ ${input.slice(result.pos)}
12893
13012
  return result;
12894
13013
  }
12895
13014
  }
12896
- var Indent$0 = $TV($Q($C($EXPECT($L156, fail, 'Indent " "'), $EXPECT($L157, fail, 'Indent "\\\\t"'))), function($skip, $loc, $0, $1) {
12897
- const level = $1.length;
13015
+ var Indent$0 = $TR($EXPECT($R54, fail, "Indent /[ \\t]*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
13016
+ let level;
13017
+ if (module.config.tab) {
13018
+ const tabs = $0.match(/\t/g);
13019
+ const numTabs = tabs ? tabs.length : 0;
13020
+ level = numTabs * module.config.tab + ($0.length - numTabs);
13021
+ } else {
13022
+ level = $0.length;
13023
+ }
12898
13024
  return {
12899
13025
  $loc,
12900
- token: $1.join(""),
13026
+ token: $0,
12901
13027
  level
12902
13028
  };
12903
13029
  });