@danielx/civet 0.5.48 → 0.5.50

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/main.js CHANGED
@@ -761,6 +761,7 @@ ${input.slice(result.pos)}
761
761
  CoffeeSubstitutionStart,
762
762
  Colon,
763
763
  ConstructorShorthand,
764
+ Declare,
764
765
  Default,
765
766
  Delete,
766
767
  Do,
@@ -864,8 +865,9 @@ ${input.slice(result.pos)}
864
865
  IndentedJSXChildExpression,
865
866
  NestedJSXChildExpression,
866
867
  TypeDeclaration,
867
- TypeDeclarationModifier,
868
868
  TypeDeclarationRest,
869
+ TypeLexicalDeclaration,
870
+ TypeDeclarationBinding,
869
871
  InterfaceExtendsClause,
870
872
  InterfaceExtendsTarget,
871
873
  TypeKeyword,
@@ -875,6 +877,7 @@ ${input.slice(result.pos)}
875
877
  NestedInterfaceProperties,
876
878
  NestedInterfaceProperty,
877
879
  InterfaceProperty,
880
+ BasicInterfaceProperty,
878
881
  InterfacePropertyDelimiter,
879
882
  NamespaceBlock,
880
883
  NestedTypeDeclarations,
@@ -898,6 +901,9 @@ ${input.slice(result.pos)}
898
901
  NestedType,
899
902
  TypeConditional,
900
903
  TypeLiteral,
904
+ InlineInterfaceLiteral,
905
+ InlineBasicInterfaceProperty,
906
+ InlineInterfacePropertyDelimiter,
901
907
  TypeBinaryOp,
902
908
  FunctionType,
903
909
  TypeArguments,
@@ -1042,82 +1048,82 @@ ${input.slice(result.pos)}
1042
1048
  var $L83 = $L("continue");
1043
1049
  var $L84 = $L("debugger");
1044
1050
  var $L85 = $L("assert");
1045
- var $L86 = $L("default");
1046
- var $L87 = $L(":=");
1047
- var $L88 = $L(".=");
1048
- var $L89 = $L("/*");
1049
- var $L90 = $L("*/");
1050
- var $L91 = $L("\\");
1051
- var $L92 = $L("abstract");
1052
- var $L93 = $L("as");
1053
- var $L94 = $L("@");
1054
- var $L95 = $L("@@");
1055
- var $L96 = $L("async");
1056
- var $L97 = $L("await");
1057
- var $L98 = $L("`");
1058
- var $L99 = $L("by");
1059
- var $L100 = $L("case");
1060
- var $L101 = $L("catch");
1061
- var $L102 = $L("class");
1062
- var $L103 = $L("#{");
1063
- var $L104 = $L("delete");
1064
- var $L105 = $L("do");
1065
- var $L106 = $L("..");
1066
- var $L107 = $L("...");
1067
- var $L108 = $L("::");
1068
- var $L109 = $L('"');
1069
- var $L110 = $L("else");
1070
- var $L111 = $L("export");
1071
- var $L112 = $L("extends");
1072
- var $L113 = $L("for");
1073
- var $L114 = $L("from");
1074
- var $L115 = $L("function");
1075
- var $L116 = $L("get");
1076
- var $L117 = $L("set");
1077
- var $L118 = $L("if");
1078
- var $L119 = $L("let");
1079
- var $L120 = $L("const");
1080
- var $L121 = $L("loop");
1081
- var $L122 = $L("new");
1082
- var $L123 = $L("<");
1083
- var $L124 = $L("{");
1084
- var $L125 = $L("[");
1085
- var $L126 = $L("(");
1086
- var $L127 = $L("public");
1087
- var $L128 = $L("private");
1088
- var $L129 = $L("protected");
1089
- var $L130 = $L("|>");
1090
- var $L131 = $L("readonly");
1091
- var $L132 = $L("return");
1092
- var $L133 = $L("satisfies");
1093
- var $L134 = $L("'");
1094
- var $L135 = $L("static");
1095
- var $L136 = $L("${");
1096
- var $L137 = $L("switch");
1097
- var $L138 = $L("target");
1098
- var $L139 = $L("then");
1099
- var $L140 = $L("this");
1100
- var $L141 = $L("throw");
1101
- var $L142 = $L('"""');
1102
- var $L143 = $L("'''");
1103
- var $L144 = $L("///");
1104
- var $L145 = $L("```");
1105
- var $L146 = $L("try");
1106
- var $L147 = $L("typeof");
1107
- var $L148 = $L("unless");
1108
- var $L149 = $L("until");
1109
- var $L150 = $L("var");
1110
- var $L151 = $L("void");
1111
- var $L152 = $L("when");
1112
- var $L153 = $L("while");
1113
- var $L154 = $L("yield");
1114
- var $L155 = $L("/>");
1115
- var $L156 = $L("</");
1116
- var $L157 = $L("<>");
1117
- var $L158 = $L("</>");
1118
- var $L159 = $L("<!--");
1119
- var $L160 = $L("-->");
1120
- var $L161 = $L("declare");
1051
+ var $L86 = $L(":=");
1052
+ var $L87 = $L(".=");
1053
+ var $L88 = $L("/*");
1054
+ var $L89 = $L("*/");
1055
+ var $L90 = $L("\\");
1056
+ var $L91 = $L("abstract");
1057
+ var $L92 = $L("as");
1058
+ var $L93 = $L("@");
1059
+ var $L94 = $L("@@");
1060
+ var $L95 = $L("async");
1061
+ var $L96 = $L("await");
1062
+ var $L97 = $L("`");
1063
+ var $L98 = $L("by");
1064
+ var $L99 = $L("case");
1065
+ var $L100 = $L("catch");
1066
+ var $L101 = $L("class");
1067
+ var $L102 = $L("#{");
1068
+ var $L103 = $L("declare");
1069
+ var $L104 = $L("default");
1070
+ var $L105 = $L("delete");
1071
+ var $L106 = $L("do");
1072
+ var $L107 = $L("..");
1073
+ var $L108 = $L("...");
1074
+ var $L109 = $L("::");
1075
+ var $L110 = $L('"');
1076
+ var $L111 = $L("else");
1077
+ var $L112 = $L("export");
1078
+ var $L113 = $L("extends");
1079
+ var $L114 = $L("for");
1080
+ var $L115 = $L("from");
1081
+ var $L116 = $L("function");
1082
+ var $L117 = $L("get");
1083
+ var $L118 = $L("set");
1084
+ var $L119 = $L("if");
1085
+ var $L120 = $L("let");
1086
+ var $L121 = $L("const");
1087
+ var $L122 = $L("loop");
1088
+ var $L123 = $L("new");
1089
+ var $L124 = $L("<");
1090
+ var $L125 = $L("{");
1091
+ var $L126 = $L("[");
1092
+ var $L127 = $L("(");
1093
+ var $L128 = $L("public");
1094
+ var $L129 = $L("private");
1095
+ var $L130 = $L("protected");
1096
+ var $L131 = $L("|>");
1097
+ var $L132 = $L("readonly");
1098
+ var $L133 = $L("return");
1099
+ var $L134 = $L("satisfies");
1100
+ var $L135 = $L("'");
1101
+ var $L136 = $L("static");
1102
+ var $L137 = $L("${");
1103
+ var $L138 = $L("switch");
1104
+ var $L139 = $L("target");
1105
+ var $L140 = $L("then");
1106
+ var $L141 = $L("this");
1107
+ var $L142 = $L("throw");
1108
+ var $L143 = $L('"""');
1109
+ var $L144 = $L("'''");
1110
+ var $L145 = $L("///");
1111
+ var $L146 = $L("```");
1112
+ var $L147 = $L("try");
1113
+ var $L148 = $L("typeof");
1114
+ var $L149 = $L("unless");
1115
+ var $L150 = $L("until");
1116
+ var $L151 = $L("var");
1117
+ var $L152 = $L("void");
1118
+ var $L153 = $L("when");
1119
+ var $L154 = $L("while");
1120
+ var $L155 = $L("yield");
1121
+ var $L156 = $L("/>");
1122
+ var $L157 = $L("</");
1123
+ var $L158 = $L("<>");
1124
+ var $L159 = $L("</>");
1125
+ var $L160 = $L("<!--");
1126
+ var $L161 = $L("-->");
1121
1127
  var $L162 = $L("type");
1122
1128
  var $L163 = $L("interface");
1123
1129
  var $L164 = $L("namespace");
@@ -2923,7 +2929,9 @@ ${input.slice(result.pos)}
2923
2929
  return result;
2924
2930
  }
2925
2931
  }
2926
- var AccessModifier$0 = $TS($S($C(Public, Private, Protected), __), function($skip, $loc, $0, $1, $2) {
2932
+ var AccessModifier$0 = $TS($S($E($S($C(Public, Private, Protected), __)), $E($S(Readonly, __))), function($skip, $loc, $0, $1, $2) {
2933
+ if (!($1 || $2))
2934
+ return $skip;
2927
2935
  return {
2928
2936
  ts: true,
2929
2937
  children: $0
@@ -6586,17 +6594,27 @@ ${input.slice(result.pos)}
6586
6594
  return {
6587
6595
  $loc,
6588
6596
  token: "instanceof",
6589
- special: true
6597
+ special: true,
6598
+ negated: true
6590
6599
  };
6591
6600
  });
6592
6601
  var BinaryOpSymbol$29 = $TV($C($S($N(CoffeeOfEnabled), $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L68, fail, 'BinaryOpSymbol "of"'), NonIdContinue)), function($skip, $loc, $0, $1) {
6593
6602
  return {
6594
6603
  $loc,
6595
6604
  token: "in",
6605
+ special: true,
6606
+ negated: true
6607
+ };
6608
+ });
6609
+ var BinaryOpSymbol$30 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
6610
+ return {
6611
+ method: "includes",
6612
+ relational: true,
6613
+ reversed: true,
6596
6614
  special: true
6597
6615
  };
6598
6616
  });
6599
- var BinaryOpSymbol$30 = $TV($C($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue)), function($skip, $loc, $0, $1) {
6617
+ var BinaryOpSymbol$31 = $TS($S(CoffeeOfEnabled, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
6600
6618
  return {
6601
6619
  call: [module2.getRef("indexOf"), ".call"],
6602
6620
  relational: true,
@@ -6605,7 +6623,16 @@ ${input.slice(result.pos)}
6605
6623
  special: true
6606
6624
  };
6607
6625
  });
6608
- var BinaryOpSymbol$31 = $TV($C($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue)), function($skip, $loc, $0, $1) {
6626
+ var BinaryOpSymbol$32 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
6627
+ return {
6628
+ method: "includes",
6629
+ relational: true,
6630
+ reversed: true,
6631
+ special: true,
6632
+ negated: true
6633
+ };
6634
+ });
6635
+ var BinaryOpSymbol$33 = $TS($S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
6609
6636
  return {
6610
6637
  call: [module2.getRef("indexOf"), ".call"],
6611
6638
  relational: true,
@@ -6614,18 +6641,18 @@ ${input.slice(result.pos)}
6614
6641
  special: true
6615
6642
  };
6616
6643
  });
6617
- var BinaryOpSymbol$32 = $T($S($N(CoffeeNotEnabled), $EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue), function(value) {
6644
+ var BinaryOpSymbol$34 = $T($S($N(CoffeeNotEnabled), $EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue), function(value) {
6618
6645
  return "!==";
6619
6646
  });
6620
- var BinaryOpSymbol$33 = $T($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue), function(value) {
6647
+ var BinaryOpSymbol$35 = $T($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue), function(value) {
6621
6648
  return "===";
6622
6649
  });
6623
- var BinaryOpSymbol$34 = $TS($S($EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
6650
+ var BinaryOpSymbol$36 = $TS($S($EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
6624
6651
  return $1;
6625
6652
  });
6626
- var BinaryOpSymbol$35 = $EXPECT($L76, fail, 'BinaryOpSymbol "&"');
6627
- var BinaryOpSymbol$36 = $EXPECT($L77, fail, 'BinaryOpSymbol "^"');
6628
- var BinaryOpSymbol$37 = $EXPECT($L78, fail, 'BinaryOpSymbol "|"');
6653
+ var BinaryOpSymbol$37 = $EXPECT($L76, fail, 'BinaryOpSymbol "&"');
6654
+ var BinaryOpSymbol$38 = $EXPECT($L77, fail, 'BinaryOpSymbol "^"');
6655
+ var BinaryOpSymbol$39 = $EXPECT($L78, fail, 'BinaryOpSymbol "|"');
6629
6656
  function BinaryOpSymbol(state) {
6630
6657
  let eventData;
6631
6658
  if (state.events) {
@@ -6637,12 +6664,12 @@ ${input.slice(result.pos)}
6637
6664
  }
6638
6665
  }
6639
6666
  if (state.tokenize) {
6640
- const result = $TOKEN("BinaryOpSymbol", state, BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state));
6667
+ const result = $TOKEN("BinaryOpSymbol", state, BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state) || BinaryOpSymbol$38(state) || BinaryOpSymbol$39(state));
6641
6668
  if (state.events)
6642
6669
  state.events.exit?.("BinaryOpSymbol", state, result, eventData);
6643
6670
  return result;
6644
6671
  } else {
6645
- const result = BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state);
6672
+ const result = BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state) || BinaryOpSymbol$38(state) || BinaryOpSymbol$39(state);
6646
6673
  if (state.events)
6647
6674
  state.events.exit?.("BinaryOpSymbol", state, result, eventData);
6648
6675
  return result;
@@ -9190,7 +9217,7 @@ ${input.slice(result.pos)}
9190
9217
  return result;
9191
9218
  }
9192
9219
  }
9193
- var ExportDeclaration$0 = $S(Export, __, $EXPECT($L86, fail, 'ExportDeclaration "default"'), NonIdContinue, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression));
9220
+ var ExportDeclaration$0 = $S(Export, __, Default, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression));
9194
9221
  var ExportDeclaration$1 = $TS($S(Export, __, ExportFromClause, __, FromClause), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
9195
9222
  if (!$3.ts)
9196
9223
  return $0;
@@ -9352,7 +9379,7 @@ ${input.slice(result.pos)}
9352
9379
  return result;
9353
9380
  }
9354
9381
  }
9355
- var ImplicitExportSpecifier$0 = $S($N($EXPECT($L86, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), $C($Y($S(__, From)), ImplicitInlineObjectPropertyDelimiter));
9382
+ var ImplicitExportSpecifier$0 = $S($N(Default), ModuleExportName, $E($S(__, As, __, ModuleExportName)), $C($Y($S(__, From)), ImplicitInlineObjectPropertyDelimiter));
9356
9383
  function ImplicitExportSpecifier(state) {
9357
9384
  let eventData;
9358
9385
  if (state.events) {
@@ -9523,7 +9550,7 @@ ${input.slice(result.pos)}
9523
9550
  return result;
9524
9551
  }
9525
9552
  }
9526
- var ConstAssignment$0 = $TV($EXPECT($L87, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
9553
+ var ConstAssignment$0 = $TV($EXPECT($L86, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
9527
9554
  return { $loc, token: "=" };
9528
9555
  });
9529
9556
  function ConstAssignment(state) {
@@ -9548,7 +9575,7 @@ ${input.slice(result.pos)}
9548
9575
  return result;
9549
9576
  }
9550
9577
  }
9551
- var LetAssignment$0 = $TV($EXPECT($L88, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
9578
+ var LetAssignment$0 = $TV($EXPECT($L87, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
9552
9579
  return { $loc, token: "=" };
9553
9580
  });
9554
9581
  function LetAssignment(state) {
@@ -10722,7 +10749,7 @@ ${input.slice(result.pos)}
10722
10749
  return result;
10723
10750
  }
10724
10751
  }
10725
- var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L89, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L90, fail, 'JSMultiLineComment "*/"')), $EXPECT($R39, fail, "JSMultiLineComment /./"))), $EXPECT($L90, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
10752
+ var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L89, fail, 'JSMultiLineComment "*/"')), $EXPECT($R39, fail, "JSMultiLineComment /./"))), $EXPECT($L89, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
10726
10753
  return { $loc, token: $1 };
10727
10754
  });
10728
10755
  function JSMultiLineComment(state) {
@@ -10772,7 +10799,7 @@ ${input.slice(result.pos)}
10772
10799
  return result;
10773
10800
  }
10774
10801
  }
10775
- var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L90, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R39, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
10802
+ var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L89, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R39, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
10776
10803
  return { $loc, token: `/*${$2}*/` };
10777
10804
  });
10778
10805
  function CoffeeMultiLineComment(state) {
@@ -10820,7 +10847,7 @@ ${input.slice(result.pos)}
10820
10847
  return result;
10821
10848
  }
10822
10849
  }
10823
- var InlineComment$0 = $TV($TEXT($S($EXPECT($L89, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L90, fail, 'InlineComment "*/"')), $EXPECT($R42, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L90, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
10850
+ var InlineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L89, fail, 'InlineComment "*/"')), $EXPECT($R42, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L89, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
10824
10851
  return { $loc, token: $1 };
10825
10852
  });
10826
10853
  function InlineComment(state) {
@@ -10919,7 +10946,7 @@ ${input.slice(result.pos)}
10919
10946
  var NonNewlineWhitespace$0 = $TR($EXPECT($R43, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
10920
10947
  return { $loc, token: $0 };
10921
10948
  });
10922
- var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L91, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
10949
+ var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L90, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
10923
10950
  return "";
10924
10951
  });
10925
10952
  function NonNewlineWhitespace(state) {
@@ -11146,7 +11173,7 @@ ${input.slice(result.pos)}
11146
11173
  return result;
11147
11174
  }
11148
11175
  }
11149
- var Abstract$0 = $TV($TEXT($S($EXPECT($L92, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L6, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
11176
+ var Abstract$0 = $TV($TEXT($S($EXPECT($L91, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L6, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
11150
11177
  return { $loc, token: $1, ts: true };
11151
11178
  });
11152
11179
  function Abstract(state) {
@@ -11196,7 +11223,7 @@ ${input.slice(result.pos)}
11196
11223
  return result;
11197
11224
  }
11198
11225
  }
11199
- var As$0 = $TS($S($EXPECT($L93, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11226
+ var As$0 = $TS($S($EXPECT($L92, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11200
11227
  return { $loc, token: $1 };
11201
11228
  });
11202
11229
  function As(state) {
@@ -11221,7 +11248,7 @@ ${input.slice(result.pos)}
11221
11248
  return result;
11222
11249
  }
11223
11250
  }
11224
- var At$0 = $TV($EXPECT($L94, fail, 'At "@"'), function($skip, $loc, $0, $1) {
11251
+ var At$0 = $TV($EXPECT($L93, fail, 'At "@"'), function($skip, $loc, $0, $1) {
11225
11252
  return { $loc, token: $1 };
11226
11253
  });
11227
11254
  function At(state) {
@@ -11246,7 +11273,7 @@ ${input.slice(result.pos)}
11246
11273
  return result;
11247
11274
  }
11248
11275
  }
11249
- var AtAt$0 = $TV($EXPECT($L95, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
11276
+ var AtAt$0 = $TV($EXPECT($L94, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
11250
11277
  return { $loc, token: "@" };
11251
11278
  });
11252
11279
  function AtAt(state) {
@@ -11271,7 +11298,7 @@ ${input.slice(result.pos)}
11271
11298
  return result;
11272
11299
  }
11273
11300
  }
11274
- var Async$0 = $TS($S($EXPECT($L96, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11301
+ var Async$0 = $TS($S($EXPECT($L95, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11275
11302
  return { $loc, token: $1, type: "Async" };
11276
11303
  });
11277
11304
  function Async(state) {
@@ -11296,7 +11323,7 @@ ${input.slice(result.pos)}
11296
11323
  return result;
11297
11324
  }
11298
11325
  }
11299
- var Await$0 = $TS($S($EXPECT($L97, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11326
+ var Await$0 = $TS($S($EXPECT($L96, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11300
11327
  return { $loc, token: $1 };
11301
11328
  });
11302
11329
  function Await(state) {
@@ -11321,7 +11348,7 @@ ${input.slice(result.pos)}
11321
11348
  return result;
11322
11349
  }
11323
11350
  }
11324
- var Backtick$0 = $TV($EXPECT($L98, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
11351
+ var Backtick$0 = $TV($EXPECT($L97, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
11325
11352
  return { $loc, token: $1 };
11326
11353
  });
11327
11354
  function Backtick(state) {
@@ -11346,7 +11373,7 @@ ${input.slice(result.pos)}
11346
11373
  return result;
11347
11374
  }
11348
11375
  }
11349
- var By$0 = $TS($S($EXPECT($L99, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11376
+ var By$0 = $TS($S($EXPECT($L98, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11350
11377
  return { $loc, token: $1 };
11351
11378
  });
11352
11379
  function By(state) {
@@ -11371,7 +11398,7 @@ ${input.slice(result.pos)}
11371
11398
  return result;
11372
11399
  }
11373
11400
  }
11374
- var Case$0 = $TS($S($EXPECT($L100, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11401
+ var Case$0 = $TS($S($EXPECT($L99, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11375
11402
  return { $loc, token: $1 };
11376
11403
  });
11377
11404
  function Case(state) {
@@ -11396,7 +11423,7 @@ ${input.slice(result.pos)}
11396
11423
  return result;
11397
11424
  }
11398
11425
  }
11399
- var Catch$0 = $TS($S($EXPECT($L101, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11426
+ var Catch$0 = $TS($S($EXPECT($L100, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11400
11427
  return { $loc, token: $1 };
11401
11428
  });
11402
11429
  function Catch(state) {
@@ -11421,7 +11448,7 @@ ${input.slice(result.pos)}
11421
11448
  return result;
11422
11449
  }
11423
11450
  }
11424
- var Class$0 = $TS($S($EXPECT($L102, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11451
+ var Class$0 = $TS($S($EXPECT($L101, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11425
11452
  return { $loc, token: $1 };
11426
11453
  });
11427
11454
  function Class(state) {
@@ -11521,7 +11548,7 @@ ${input.slice(result.pos)}
11521
11548
  return result;
11522
11549
  }
11523
11550
  }
11524
- var CoffeeSubstitutionStart$0 = $TV($EXPECT($L103, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
11551
+ var CoffeeSubstitutionStart$0 = $TV($EXPECT($L102, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
11525
11552
  return { $loc, token: "${" };
11526
11553
  });
11527
11554
  function CoffeeSubstitutionStart(state) {
@@ -11571,7 +11598,7 @@ ${input.slice(result.pos)}
11571
11598
  return result;
11572
11599
  }
11573
11600
  }
11574
- var ConstructorShorthand$0 = $TV($EXPECT($L94, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
11601
+ var ConstructorShorthand$0 = $TV($EXPECT($L93, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
11575
11602
  return { $loc, token: "constructor" };
11576
11603
  });
11577
11604
  function ConstructorShorthand(state) {
@@ -11596,7 +11623,32 @@ ${input.slice(result.pos)}
11596
11623
  return result;
11597
11624
  }
11598
11625
  }
11599
- var Default$0 = $TS($S($EXPECT($L86, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11626
+ var Declare$0 = $TS($S($EXPECT($L103, fail, 'Declare "declare"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11627
+ return { $loc, token: $1 };
11628
+ });
11629
+ function Declare(state) {
11630
+ let eventData;
11631
+ if (state.events) {
11632
+ const result = state.events.enter?.("Declare", state);
11633
+ if (result) {
11634
+ if (result.cache)
11635
+ return result.cache;
11636
+ eventData = result.data;
11637
+ }
11638
+ }
11639
+ if (state.tokenize) {
11640
+ const result = $TOKEN("Declare", state, Declare$0(state));
11641
+ if (state.events)
11642
+ state.events.exit?.("Declare", state, result, eventData);
11643
+ return result;
11644
+ } else {
11645
+ const result = Declare$0(state);
11646
+ if (state.events)
11647
+ state.events.exit?.("Declare", state, result, eventData);
11648
+ return result;
11649
+ }
11650
+ }
11651
+ var Default$0 = $TS($S($EXPECT($L104, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11600
11652
  return { $loc, token: $1 };
11601
11653
  });
11602
11654
  function Default(state) {
@@ -11621,7 +11673,7 @@ ${input.slice(result.pos)}
11621
11673
  return result;
11622
11674
  }
11623
11675
  }
11624
- var Delete$0 = $TS($S($EXPECT($L104, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11676
+ var Delete$0 = $TS($S($EXPECT($L105, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11625
11677
  return { $loc, token: $1 };
11626
11678
  });
11627
11679
  function Delete(state) {
@@ -11646,7 +11698,7 @@ ${input.slice(result.pos)}
11646
11698
  return result;
11647
11699
  }
11648
11700
  }
11649
- var Do$0 = $TS($S($EXPECT($L105, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11701
+ var Do$0 = $TS($S($EXPECT($L106, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11650
11702
  return { $loc, token: $1 };
11651
11703
  });
11652
11704
  function Do(state) {
@@ -11696,7 +11748,7 @@ ${input.slice(result.pos)}
11696
11748
  return result;
11697
11749
  }
11698
11750
  }
11699
- var DotDot$0 = $TV($EXPECT($L106, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
11751
+ var DotDot$0 = $TV($EXPECT($L107, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
11700
11752
  return { $loc, token: $1 };
11701
11753
  });
11702
11754
  function DotDot(state) {
@@ -11721,7 +11773,7 @@ ${input.slice(result.pos)}
11721
11773
  return result;
11722
11774
  }
11723
11775
  }
11724
- var DotDotDot$0 = $TV($EXPECT($L107, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
11776
+ var DotDotDot$0 = $TV($EXPECT($L108, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
11725
11777
  return { $loc, token: $1 };
11726
11778
  });
11727
11779
  function DotDotDot(state) {
@@ -11746,7 +11798,7 @@ ${input.slice(result.pos)}
11746
11798
  return result;
11747
11799
  }
11748
11800
  }
11749
- var DoubleColon$0 = $TV($EXPECT($L108, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
11801
+ var DoubleColon$0 = $TV($EXPECT($L109, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
11750
11802
  return { $loc, token: $1 };
11751
11803
  });
11752
11804
  function DoubleColon(state) {
@@ -11771,7 +11823,7 @@ ${input.slice(result.pos)}
11771
11823
  return result;
11772
11824
  }
11773
11825
  }
11774
- var DoubleQuote$0 = $TV($EXPECT($L109, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
11826
+ var DoubleQuote$0 = $TV($EXPECT($L110, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
11775
11827
  return { $loc, token: $1 };
11776
11828
  });
11777
11829
  function DoubleQuote(state) {
@@ -11796,7 +11848,7 @@ ${input.slice(result.pos)}
11796
11848
  return result;
11797
11849
  }
11798
11850
  }
11799
- var Else$0 = $TS($S($EXPECT($L110, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11851
+ var Else$0 = $TS($S($EXPECT($L111, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11800
11852
  return { $loc, token: $1 };
11801
11853
  });
11802
11854
  function Else(state) {
@@ -11846,7 +11898,7 @@ ${input.slice(result.pos)}
11846
11898
  return result;
11847
11899
  }
11848
11900
  }
11849
- var Export$0 = $TS($S($EXPECT($L111, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11901
+ var Export$0 = $TS($S($EXPECT($L112, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11850
11902
  return { $loc, token: $1 };
11851
11903
  });
11852
11904
  function Export(state) {
@@ -11871,7 +11923,7 @@ ${input.slice(result.pos)}
11871
11923
  return result;
11872
11924
  }
11873
11925
  }
11874
- var Extends$0 = $TS($S($EXPECT($L112, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11926
+ var Extends$0 = $TS($S($EXPECT($L113, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11875
11927
  return { $loc, token: $1 };
11876
11928
  });
11877
11929
  function Extends(state) {
@@ -11896,7 +11948,7 @@ ${input.slice(result.pos)}
11896
11948
  return result;
11897
11949
  }
11898
11950
  }
11899
- var For$0 = $TS($S($EXPECT($L113, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11951
+ var For$0 = $TS($S($EXPECT($L114, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11900
11952
  return { $loc, token: $1 };
11901
11953
  });
11902
11954
  function For(state) {
@@ -11921,7 +11973,7 @@ ${input.slice(result.pos)}
11921
11973
  return result;
11922
11974
  }
11923
11975
  }
11924
- var From$0 = $TS($S($EXPECT($L114, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11976
+ var From$0 = $TS($S($EXPECT($L115, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11925
11977
  return { $loc, token: $1 };
11926
11978
  });
11927
11979
  function From(state) {
@@ -11946,7 +11998,7 @@ ${input.slice(result.pos)}
11946
11998
  return result;
11947
11999
  }
11948
12000
  }
11949
- var Function$0 = $TS($S($EXPECT($L115, fail, 'Function "function"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12001
+ var Function$0 = $TS($S($EXPECT($L116, fail, 'Function "function"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11950
12002
  return { $loc, token: $1 };
11951
12003
  });
11952
12004
  function Function(state) {
@@ -11971,7 +12023,7 @@ ${input.slice(result.pos)}
11971
12023
  return result;
11972
12024
  }
11973
12025
  }
11974
- var GetOrSet$0 = $TS($S($C($EXPECT($L116, fail, 'GetOrSet "get"'), $EXPECT($L117, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12026
+ var GetOrSet$0 = $TS($S($C($EXPECT($L117, fail, 'GetOrSet "get"'), $EXPECT($L118, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11975
12027
  return { $loc, token: $1, type: "GetOrSet" };
11976
12028
  });
11977
12029
  function GetOrSet(state) {
@@ -11996,7 +12048,7 @@ ${input.slice(result.pos)}
11996
12048
  return result;
11997
12049
  }
11998
12050
  }
11999
- var If$0 = $TV($TEXT($S($EXPECT($L118, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L6, fail, 'If " "')))), function($skip, $loc, $0, $1) {
12051
+ var If$0 = $TV($TEXT($S($EXPECT($L119, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L6, fail, 'If " "')))), function($skip, $loc, $0, $1) {
12000
12052
  return { $loc, token: $1 };
12001
12053
  });
12002
12054
  function If(state) {
@@ -12071,7 +12123,7 @@ ${input.slice(result.pos)}
12071
12123
  return result;
12072
12124
  }
12073
12125
  }
12074
- var LetOrConst$0 = $TS($S($C($EXPECT($L119, fail, 'LetOrConst "let"'), $EXPECT($L120, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12126
+ var LetOrConst$0 = $TS($S($C($EXPECT($L120, fail, 'LetOrConst "let"'), $EXPECT($L121, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12075
12127
  return { $loc, token: $1 };
12076
12128
  });
12077
12129
  function LetOrConst(state) {
@@ -12096,7 +12148,7 @@ ${input.slice(result.pos)}
12096
12148
  return result;
12097
12149
  }
12098
12150
  }
12099
- var Loop$0 = $TS($S($EXPECT($L121, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12151
+ var Loop$0 = $TS($S($EXPECT($L122, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12100
12152
  return { $loc, token: "while(true)" };
12101
12153
  });
12102
12154
  function Loop(state) {
@@ -12121,7 +12173,7 @@ ${input.slice(result.pos)}
12121
12173
  return result;
12122
12174
  }
12123
12175
  }
12124
- var New$0 = $TS($S($EXPECT($L122, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12176
+ var New$0 = $TS($S($EXPECT($L123, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12125
12177
  return { $loc, token: $1 };
12126
12178
  });
12127
12179
  function New(state) {
@@ -12196,7 +12248,7 @@ ${input.slice(result.pos)}
12196
12248
  return result;
12197
12249
  }
12198
12250
  }
12199
- var OpenAngleBracket$0 = $TV($EXPECT($L123, fail, 'OpenAngleBracket "<"'), function($skip, $loc, $0, $1) {
12251
+ var OpenAngleBracket$0 = $TV($EXPECT($L124, fail, 'OpenAngleBracket "<"'), function($skip, $loc, $0, $1) {
12200
12252
  return { $loc, token: $1 };
12201
12253
  });
12202
12254
  function OpenAngleBracket(state) {
@@ -12221,7 +12273,7 @@ ${input.slice(result.pos)}
12221
12273
  return result;
12222
12274
  }
12223
12275
  }
12224
- var OpenBrace$0 = $TV($EXPECT($L124, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
12276
+ var OpenBrace$0 = $TV($EXPECT($L125, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
12225
12277
  return { $loc, token: $1 };
12226
12278
  });
12227
12279
  function OpenBrace(state) {
@@ -12246,7 +12298,7 @@ ${input.slice(result.pos)}
12246
12298
  return result;
12247
12299
  }
12248
12300
  }
12249
- var OpenBracket$0 = $TV($EXPECT($L125, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
12301
+ var OpenBracket$0 = $TV($EXPECT($L126, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
12250
12302
  return { $loc, token: $1 };
12251
12303
  });
12252
12304
  function OpenBracket(state) {
@@ -12271,7 +12323,7 @@ ${input.slice(result.pos)}
12271
12323
  return result;
12272
12324
  }
12273
12325
  }
12274
- var OpenParen$0 = $TV($EXPECT($L126, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
12326
+ var OpenParen$0 = $TV($EXPECT($L127, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
12275
12327
  return { $loc, token: $1 };
12276
12328
  });
12277
12329
  function OpenParen(state) {
@@ -12296,7 +12348,7 @@ ${input.slice(result.pos)}
12296
12348
  return result;
12297
12349
  }
12298
12350
  }
12299
- var Public$0 = $TS($S($EXPECT($L127, fail, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12351
+ var Public$0 = $TS($S($EXPECT($L128, fail, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12300
12352
  return { $loc, token: $1 };
12301
12353
  });
12302
12354
  function Public(state) {
@@ -12321,7 +12373,7 @@ ${input.slice(result.pos)}
12321
12373
  return result;
12322
12374
  }
12323
12375
  }
12324
- var Private$0 = $TS($S($EXPECT($L128, fail, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12376
+ var Private$0 = $TS($S($EXPECT($L129, fail, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12325
12377
  return { $loc, token: $1 };
12326
12378
  });
12327
12379
  function Private(state) {
@@ -12346,7 +12398,7 @@ ${input.slice(result.pos)}
12346
12398
  return result;
12347
12399
  }
12348
12400
  }
12349
- var Protected$0 = $TS($S($EXPECT($L129, fail, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12401
+ var Protected$0 = $TS($S($EXPECT($L130, fail, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12350
12402
  return { $loc, token: $1 };
12351
12403
  });
12352
12404
  function Protected(state) {
@@ -12371,7 +12423,7 @@ ${input.slice(result.pos)}
12371
12423
  return result;
12372
12424
  }
12373
12425
  }
12374
- var Pipe$0 = $TV($EXPECT($L130, fail, 'Pipe "|>"'), function($skip, $loc, $0, $1) {
12426
+ var Pipe$0 = $TV($EXPECT($L131, fail, 'Pipe "|>"'), function($skip, $loc, $0, $1) {
12375
12427
  return { $loc, token: $1 };
12376
12428
  });
12377
12429
  function Pipe(state) {
@@ -12421,7 +12473,7 @@ ${input.slice(result.pos)}
12421
12473
  return result;
12422
12474
  }
12423
12475
  }
12424
- var Readonly$0 = $TS($S($EXPECT($L131, fail, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12476
+ var Readonly$0 = $TS($S($EXPECT($L132, fail, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12425
12477
  return { $loc, token: $1, ts: true };
12426
12478
  });
12427
12479
  function Readonly(state) {
@@ -12446,7 +12498,7 @@ ${input.slice(result.pos)}
12446
12498
  return result;
12447
12499
  }
12448
12500
  }
12449
- var Return$0 = $TS($S($EXPECT($L132, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12501
+ var Return$0 = $TS($S($EXPECT($L133, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12450
12502
  return { $loc, token: $1 };
12451
12503
  });
12452
12504
  function Return(state) {
@@ -12471,7 +12523,7 @@ ${input.slice(result.pos)}
12471
12523
  return result;
12472
12524
  }
12473
12525
  }
12474
- var Satisfies$0 = $TS($S($EXPECT($L133, fail, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12526
+ var Satisfies$0 = $TS($S($EXPECT($L134, fail, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12475
12527
  return { $loc, token: $1 };
12476
12528
  });
12477
12529
  function Satisfies(state) {
@@ -12521,7 +12573,7 @@ ${input.slice(result.pos)}
12521
12573
  return result;
12522
12574
  }
12523
12575
  }
12524
- var SingleQuote$0 = $TV($EXPECT($L134, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
12576
+ var SingleQuote$0 = $TV($EXPECT($L135, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
12525
12577
  return { $loc, token: $1 };
12526
12578
  });
12527
12579
  function SingleQuote(state) {
@@ -12571,10 +12623,10 @@ ${input.slice(result.pos)}
12571
12623
  return result;
12572
12624
  }
12573
12625
  }
12574
- var Static$0 = $TS($S($EXPECT($L135, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12626
+ var Static$0 = $TS($S($EXPECT($L136, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12575
12627
  return { $loc, token: $1 };
12576
12628
  });
12577
- var Static$1 = $TS($S($EXPECT($L94, fail, 'Static "@"'), $N($C($EXPECT($L126, fail, 'Static "("'), $EXPECT($L94, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
12629
+ var Static$1 = $TS($S($EXPECT($L93, fail, 'Static "@"'), $N($C($EXPECT($L127, fail, 'Static "("'), $EXPECT($L93, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
12578
12630
  return { $loc, token: "static " };
12579
12631
  });
12580
12632
  function Static(state) {
@@ -12599,7 +12651,7 @@ ${input.slice(result.pos)}
12599
12651
  return result;
12600
12652
  }
12601
12653
  }
12602
- var SubstitutionStart$0 = $TV($EXPECT($L136, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
12654
+ var SubstitutionStart$0 = $TV($EXPECT($L137, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
12603
12655
  return { $loc, token: $1 };
12604
12656
  });
12605
12657
  function SubstitutionStart(state) {
@@ -12624,7 +12676,7 @@ ${input.slice(result.pos)}
12624
12676
  return result;
12625
12677
  }
12626
12678
  }
12627
- var Switch$0 = $TS($S($EXPECT($L137, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12679
+ var Switch$0 = $TS($S($EXPECT($L138, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12628
12680
  return { $loc, token: $1 };
12629
12681
  });
12630
12682
  function Switch(state) {
@@ -12649,7 +12701,7 @@ ${input.slice(result.pos)}
12649
12701
  return result;
12650
12702
  }
12651
12703
  }
12652
- var Target$0 = $TS($S($EXPECT($L138, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12704
+ var Target$0 = $TS($S($EXPECT($L139, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12653
12705
  return { $loc, token: $1 };
12654
12706
  });
12655
12707
  function Target(state) {
@@ -12674,7 +12726,7 @@ ${input.slice(result.pos)}
12674
12726
  return result;
12675
12727
  }
12676
12728
  }
12677
- var Then$0 = $TS($S(__, $EXPECT($L139, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
12729
+ var Then$0 = $TS($S(__, $EXPECT($L140, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
12678
12730
  return { $loc, token: "" };
12679
12731
  });
12680
12732
  function Then(state) {
@@ -12699,7 +12751,7 @@ ${input.slice(result.pos)}
12699
12751
  return result;
12700
12752
  }
12701
12753
  }
12702
- var This$0 = $TS($S($EXPECT($L140, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12754
+ var This$0 = $TS($S($EXPECT($L141, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12703
12755
  return { $loc, token: $1 };
12704
12756
  });
12705
12757
  function This(state) {
@@ -12724,7 +12776,7 @@ ${input.slice(result.pos)}
12724
12776
  return result;
12725
12777
  }
12726
12778
  }
12727
- var Throw$0 = $TS($S($EXPECT($L141, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12779
+ var Throw$0 = $TS($S($EXPECT($L142, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12728
12780
  return { $loc, token: $1 };
12729
12781
  });
12730
12782
  function Throw(state) {
@@ -12749,7 +12801,7 @@ ${input.slice(result.pos)}
12749
12801
  return result;
12750
12802
  }
12751
12803
  }
12752
- var TripleDoubleQuote$0 = $TV($EXPECT($L142, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
12804
+ var TripleDoubleQuote$0 = $TV($EXPECT($L143, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
12753
12805
  return { $loc, token: "`" };
12754
12806
  });
12755
12807
  function TripleDoubleQuote(state) {
@@ -12774,7 +12826,7 @@ ${input.slice(result.pos)}
12774
12826
  return result;
12775
12827
  }
12776
12828
  }
12777
- var TripleSingleQuote$0 = $TV($EXPECT($L143, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
12829
+ var TripleSingleQuote$0 = $TV($EXPECT($L144, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
12778
12830
  return { $loc, token: "`" };
12779
12831
  });
12780
12832
  function TripleSingleQuote(state) {
@@ -12799,7 +12851,7 @@ ${input.slice(result.pos)}
12799
12851
  return result;
12800
12852
  }
12801
12853
  }
12802
- var TripleSlash$0 = $TV($EXPECT($L144, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
12854
+ var TripleSlash$0 = $TV($EXPECT($L145, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
12803
12855
  return { $loc, token: "/" };
12804
12856
  });
12805
12857
  function TripleSlash(state) {
@@ -12824,7 +12876,7 @@ ${input.slice(result.pos)}
12824
12876
  return result;
12825
12877
  }
12826
12878
  }
12827
- var TripleTick$0 = $TV($EXPECT($L145, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
12879
+ var TripleTick$0 = $TV($EXPECT($L146, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
12828
12880
  return { $loc, token: "`" };
12829
12881
  });
12830
12882
  function TripleTick(state) {
@@ -12849,7 +12901,7 @@ ${input.slice(result.pos)}
12849
12901
  return result;
12850
12902
  }
12851
12903
  }
12852
- var Try$0 = $TS($S($EXPECT($L146, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12904
+ var Try$0 = $TS($S($EXPECT($L147, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12853
12905
  return { $loc, token: $1 };
12854
12906
  });
12855
12907
  function Try(state) {
@@ -12874,7 +12926,7 @@ ${input.slice(result.pos)}
12874
12926
  return result;
12875
12927
  }
12876
12928
  }
12877
- var Typeof$0 = $TS($S($EXPECT($L147, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12929
+ var Typeof$0 = $TS($S($EXPECT($L148, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12878
12930
  return { $loc, token: $1 };
12879
12931
  });
12880
12932
  function Typeof(state) {
@@ -12899,7 +12951,7 @@ ${input.slice(result.pos)}
12899
12951
  return result;
12900
12952
  }
12901
12953
  }
12902
- var Unless$0 = $TS($S($EXPECT($L148, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12954
+ var Unless$0 = $TS($S($EXPECT($L149, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12903
12955
  return { $loc, token: $1 };
12904
12956
  });
12905
12957
  function Unless(state) {
@@ -12924,7 +12976,7 @@ ${input.slice(result.pos)}
12924
12976
  return result;
12925
12977
  }
12926
12978
  }
12927
- var Until$0 = $TS($S($EXPECT($L149, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12979
+ var Until$0 = $TS($S($EXPECT($L150, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12928
12980
  return { $loc, token: $1 };
12929
12981
  });
12930
12982
  function Until(state) {
@@ -12949,7 +13001,7 @@ ${input.slice(result.pos)}
12949
13001
  return result;
12950
13002
  }
12951
13003
  }
12952
- var Var$0 = $TS($S($EXPECT($L150, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13004
+ var Var$0 = $TS($S($EXPECT($L151, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12953
13005
  return { $loc, token: $1 };
12954
13006
  });
12955
13007
  function Var(state) {
@@ -12974,7 +13026,7 @@ ${input.slice(result.pos)}
12974
13026
  return result;
12975
13027
  }
12976
13028
  }
12977
- var Void$0 = $TS($S($EXPECT($L151, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13029
+ var Void$0 = $TS($S($EXPECT($L152, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12978
13030
  return { $loc, token: $1 };
12979
13031
  });
12980
13032
  function Void(state) {
@@ -12999,7 +13051,7 @@ ${input.slice(result.pos)}
12999
13051
  return result;
13000
13052
  }
13001
13053
  }
13002
- var When$0 = $TS($S($EXPECT($L152, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13054
+ var When$0 = $TS($S($EXPECT($L153, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13003
13055
  return { $loc, token: "case" };
13004
13056
  });
13005
13057
  function When(state) {
@@ -13024,7 +13076,7 @@ ${input.slice(result.pos)}
13024
13076
  return result;
13025
13077
  }
13026
13078
  }
13027
- var While$0 = $TS($S($EXPECT($L153, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13079
+ var While$0 = $TS($S($EXPECT($L154, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13028
13080
  return { $loc, token: $1 };
13029
13081
  });
13030
13082
  function While(state) {
@@ -13049,7 +13101,7 @@ ${input.slice(result.pos)}
13049
13101
  return result;
13050
13102
  }
13051
13103
  }
13052
- var Yield$0 = $TS($S($EXPECT($L154, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13104
+ var Yield$0 = $TS($S($EXPECT($L155, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13053
13105
  return { $loc, token: $1 };
13054
13106
  });
13055
13107
  function Yield(state) {
@@ -13195,7 +13247,7 @@ ${input.slice(result.pos)}
13195
13247
  return result;
13196
13248
  }
13197
13249
  }
13198
- var JSXSelfClosingElement$0 = $TS($S($EXPECT($L123, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L155, fail, 'JSXSelfClosingElement "/>"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
13250
+ var JSXSelfClosingElement$0 = $TS($S($EXPECT($L124, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L156, fail, 'JSXSelfClosingElement "/>"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
13199
13251
  return { type: "JSXElement", children: $0, tag: $2 };
13200
13252
  });
13201
13253
  function JSXSelfClosingElement(state) {
@@ -13246,7 +13298,7 @@ ${input.slice(result.pos)}
13246
13298
  return result;
13247
13299
  }
13248
13300
  }
13249
- var JSXOpeningElement$0 = $S($EXPECT($L123, fail, 'JSXOpeningElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L27, fail, 'JSXOpeningElement ">"'));
13301
+ var JSXOpeningElement$0 = $S($EXPECT($L124, fail, 'JSXOpeningElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L27, fail, 'JSXOpeningElement ">"'));
13250
13302
  function JSXOpeningElement(state) {
13251
13303
  let eventData;
13252
13304
  if (state.events) {
@@ -13298,7 +13350,7 @@ ${input.slice(result.pos)}
13298
13350
  return result;
13299
13351
  }
13300
13352
  }
13301
- var JSXClosingElement$0 = $S($EXPECT($L156, fail, 'JSXClosingElement "</"'), $E(Whitespace), $TEXT(JSXElementName), $E(Whitespace), $EXPECT($L27, fail, 'JSXClosingElement ">"'));
13353
+ var JSXClosingElement$0 = $S($EXPECT($L157, fail, 'JSXClosingElement "</"'), $E(Whitespace), $TEXT(JSXElementName), $E(Whitespace), $EXPECT($L27, fail, 'JSXClosingElement ">"'));
13302
13354
  function JSXClosingElement(state) {
13303
13355
  let eventData;
13304
13356
  if (state.events) {
@@ -13337,7 +13389,7 @@ ${input.slice(result.pos)}
13337
13389
  ];
13338
13390
  return { type: "JSXFragment", children: parts, jsxChildren: children.jsxChildren };
13339
13391
  });
13340
- var JSXFragment$1 = $TS($S(CoffeeJSXEnabled, $EXPECT($L157, fail, 'JSXFragment "<>"'), $E(JSXChildren), $E(Whitespace), JSXClosingFragment), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
13392
+ var JSXFragment$1 = $TS($S(CoffeeJSXEnabled, $EXPECT($L158, fail, 'JSXFragment "<>"'), $E(JSXChildren), $E(Whitespace), JSXClosingFragment), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
13341
13393
  var children = $3;
13342
13394
  $0 = $0.slice(1);
13343
13395
  return {
@@ -13368,7 +13420,7 @@ ${input.slice(result.pos)}
13368
13420
  return result;
13369
13421
  }
13370
13422
  }
13371
- var PushJSXOpeningFragment$0 = $TV($EXPECT($L157, fail, 'PushJSXOpeningFragment "<>"'), function($skip, $loc, $0, $1) {
13423
+ var PushJSXOpeningFragment$0 = $TV($EXPECT($L158, fail, 'PushJSXOpeningFragment "<>"'), function($skip, $loc, $0, $1) {
13372
13424
  module2.JSXTagStack.push("");
13373
13425
  return $1;
13374
13426
  });
@@ -13422,7 +13474,7 @@ ${input.slice(result.pos)}
13422
13474
  return result;
13423
13475
  }
13424
13476
  }
13425
- var JSXClosingFragment$0 = $EXPECT($L158, fail, 'JSXClosingFragment "</>"');
13477
+ var JSXClosingFragment$0 = $EXPECT($L159, fail, 'JSXClosingFragment "</>"');
13426
13478
  function JSXClosingFragment(state) {
13427
13479
  let eventData;
13428
13480
  if (state.events) {
@@ -14299,7 +14351,7 @@ ${input.slice(result.pos)}
14299
14351
  return result;
14300
14352
  }
14301
14353
  }
14302
- var JSXComment$0 = $TS($S($EXPECT($L159, fail, 'JSXComment "<!--"'), JSXCommentContent, $EXPECT($L160, fail, 'JSXComment "-->"')), function($skip, $loc, $0, $1, $2, $3) {
14354
+ var JSXComment$0 = $TS($S($EXPECT($L160, fail, 'JSXComment "<!--"'), JSXCommentContent, $EXPECT($L161, fail, 'JSXComment "-->"')), function($skip, $loc, $0, $1, $2, $3) {
14303
14355
  return ["{/*", $2, "*/}"];
14304
14356
  });
14305
14357
  function JSXComment(state) {
@@ -14451,7 +14503,10 @@ ${input.slice(result.pos)}
14451
14503
  return result;
14452
14504
  }
14453
14505
  }
14454
- var TypeDeclaration$0 = $T($S($Q($S(TypeDeclarationModifier, $Q(TrailingComment))), TypeDeclarationRest), function(value) {
14506
+ var TypeDeclaration$0 = $T($S($E($S(Export, $E(_))), $S(Declare, $E(_)), TypeLexicalDeclaration), function(value) {
14507
+ return { "ts": true, "children": value };
14508
+ });
14509
+ var TypeDeclaration$1 = $T($S($E($S(Export, $E(_))), $E($S(Declare, $E(_))), TypeDeclarationRest), function(value) {
14455
14510
  return { "ts": true, "children": value };
14456
14511
  });
14457
14512
  function TypeDeclaration(state) {
@@ -14465,23 +14520,48 @@ ${input.slice(result.pos)}
14465
14520
  }
14466
14521
  }
14467
14522
  if (state.tokenize) {
14468
- const result = $TOKEN("TypeDeclaration", state, TypeDeclaration$0(state));
14523
+ const result = $TOKEN("TypeDeclaration", state, TypeDeclaration$0(state) || TypeDeclaration$1(state));
14469
14524
  if (state.events)
14470
14525
  state.events.exit?.("TypeDeclaration", state, result, eventData);
14471
14526
  return result;
14472
14527
  } else {
14473
- const result = TypeDeclaration$0(state);
14528
+ const result = TypeDeclaration$0(state) || TypeDeclaration$1(state);
14474
14529
  if (state.events)
14475
14530
  state.events.exit?.("TypeDeclaration", state, result, eventData);
14476
14531
  return result;
14477
14532
  }
14478
14533
  }
14479
- var TypeDeclarationModifier$0 = $S($EXPECT($L161, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
14480
- var TypeDeclarationModifier$1 = Export;
14481
- function TypeDeclarationModifier(state) {
14534
+ var TypeDeclarationRest$0 = $S(TypeKeyword, $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, Equals, $C($S($E(_), Type), $S(__, Type)));
14535
+ var TypeDeclarationRest$1 = $S(Interface, $Q(TrailingComment), IdentifierName, $E(TypeParameters), $E(InterfaceExtendsClause), InterfaceBlock);
14536
+ var TypeDeclarationRest$2 = $S(Namespace, $Q(TrailingComment), IdentifierName, NamespaceBlock);
14537
+ var TypeDeclarationRest$3 = FunctionSignature;
14538
+ function TypeDeclarationRest(state) {
14539
+ let eventData;
14540
+ if (state.events) {
14541
+ const result = state.events.enter?.("TypeDeclarationRest", state);
14542
+ if (result) {
14543
+ if (result.cache)
14544
+ return result.cache;
14545
+ eventData = result.data;
14546
+ }
14547
+ }
14548
+ if (state.tokenize) {
14549
+ const result = $TOKEN("TypeDeclarationRest", state, TypeDeclarationRest$0(state) || TypeDeclarationRest$1(state) || TypeDeclarationRest$2(state) || TypeDeclarationRest$3(state));
14550
+ if (state.events)
14551
+ state.events.exit?.("TypeDeclarationRest", state, result, eventData);
14552
+ return result;
14553
+ } else {
14554
+ const result = TypeDeclarationRest$0(state) || TypeDeclarationRest$1(state) || TypeDeclarationRest$2(state) || TypeDeclarationRest$3(state);
14555
+ if (state.events)
14556
+ state.events.exit?.("TypeDeclarationRest", state, result, eventData);
14557
+ return result;
14558
+ }
14559
+ }
14560
+ var TypeLexicalDeclaration$0 = $S(__, $N(Namespace), LetOrConst, TypeDeclarationBinding, $Q($S(CommaDelimiter, __, TypeDeclarationBinding)));
14561
+ function TypeLexicalDeclaration(state) {
14482
14562
  let eventData;
14483
14563
  if (state.events) {
14484
- const result = state.events.enter?.("TypeDeclarationModifier", state);
14564
+ const result = state.events.enter?.("TypeLexicalDeclaration", state);
14485
14565
  if (result) {
14486
14566
  if (result.cache)
14487
14567
  return result.cache;
@@ -14489,25 +14569,22 @@ ${input.slice(result.pos)}
14489
14569
  }
14490
14570
  }
14491
14571
  if (state.tokenize) {
14492
- const result = $TOKEN("TypeDeclarationModifier", state, TypeDeclarationModifier$0(state) || TypeDeclarationModifier$1(state));
14572
+ const result = $TOKEN("TypeLexicalDeclaration", state, TypeLexicalDeclaration$0(state));
14493
14573
  if (state.events)
14494
- state.events.exit?.("TypeDeclarationModifier", state, result, eventData);
14574
+ state.events.exit?.("TypeLexicalDeclaration", state, result, eventData);
14495
14575
  return result;
14496
14576
  } else {
14497
- const result = TypeDeclarationModifier$0(state) || TypeDeclarationModifier$1(state);
14577
+ const result = TypeLexicalDeclaration$0(state);
14498
14578
  if (state.events)
14499
- state.events.exit?.("TypeDeclarationModifier", state, result, eventData);
14579
+ state.events.exit?.("TypeLexicalDeclaration", state, result, eventData);
14500
14580
  return result;
14501
14581
  }
14502
14582
  }
14503
- var TypeDeclarationRest$0 = $S(TypeKeyword, $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, Equals, __, Type);
14504
- var TypeDeclarationRest$1 = $S(Interface, $Q(TrailingComment), IdentifierName, $E(TypeParameters), $E(InterfaceExtendsClause), InterfaceBlock);
14505
- var TypeDeclarationRest$2 = $S(Namespace, $Q(TrailingComment), IdentifierName, NamespaceBlock);
14506
- var TypeDeclarationRest$3 = FunctionSignature;
14507
- function TypeDeclarationRest(state) {
14583
+ var TypeDeclarationBinding$0 = $S($C(BindingPattern, BindingIdentifier), $E(TypeSuffix));
14584
+ function TypeDeclarationBinding(state) {
14508
14585
  let eventData;
14509
14586
  if (state.events) {
14510
- const result = state.events.enter?.("TypeDeclarationRest", state);
14587
+ const result = state.events.enter?.("TypeDeclarationBinding", state);
14511
14588
  if (result) {
14512
14589
  if (result.cache)
14513
14590
  return result.cache;
@@ -14515,14 +14592,14 @@ ${input.slice(result.pos)}
14515
14592
  }
14516
14593
  }
14517
14594
  if (state.tokenize) {
14518
- const result = $TOKEN("TypeDeclarationRest", state, TypeDeclarationRest$0(state) || TypeDeclarationRest$1(state) || TypeDeclarationRest$2(state) || TypeDeclarationRest$3(state));
14595
+ const result = $TOKEN("TypeDeclarationBinding", state, TypeDeclarationBinding$0(state));
14519
14596
  if (state.events)
14520
- state.events.exit?.("TypeDeclarationRest", state, result, eventData);
14597
+ state.events.exit?.("TypeDeclarationBinding", state, result, eventData);
14521
14598
  return result;
14522
14599
  } else {
14523
- const result = TypeDeclarationRest$0(state) || TypeDeclarationRest$1(state) || TypeDeclarationRest$2(state) || TypeDeclarationRest$3(state);
14600
+ const result = TypeDeclarationBinding$0(state);
14524
14601
  if (state.events)
14525
- state.events.exit?.("TypeDeclarationRest", state, result, eventData);
14602
+ state.events.exit?.("TypeDeclarationBinding", state, result, eventData);
14526
14603
  return result;
14527
14604
  }
14528
14605
  }
@@ -14717,7 +14794,7 @@ ${input.slice(result.pos)}
14717
14794
  return result;
14718
14795
  }
14719
14796
  }
14720
- var InterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), TypeSuffix, InterfacePropertyDelimiter);
14797
+ var InterfaceProperty$0 = BasicInterfaceProperty;
14721
14798
  var InterfaceProperty$1 = $S(NonEmptyParameters, TypeSuffix, InterfacePropertyDelimiter);
14722
14799
  var InterfaceProperty$2 = $S(MethodSignature, InterfacePropertyDelimiter);
14723
14800
  function InterfaceProperty(state) {
@@ -14742,6 +14819,29 @@ ${input.slice(result.pos)}
14742
14819
  return result;
14743
14820
  }
14744
14821
  }
14822
+ var BasicInterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), TypeSuffix, InterfacePropertyDelimiter);
14823
+ function BasicInterfaceProperty(state) {
14824
+ let eventData;
14825
+ if (state.events) {
14826
+ const result = state.events.enter?.("BasicInterfaceProperty", state);
14827
+ if (result) {
14828
+ if (result.cache)
14829
+ return result.cache;
14830
+ eventData = result.data;
14831
+ }
14832
+ }
14833
+ if (state.tokenize) {
14834
+ const result = $TOKEN("BasicInterfaceProperty", state, BasicInterfaceProperty$0(state));
14835
+ if (state.events)
14836
+ state.events.exit?.("BasicInterfaceProperty", state, result, eventData);
14837
+ return result;
14838
+ } else {
14839
+ const result = BasicInterfaceProperty$0(state);
14840
+ if (state.events)
14841
+ state.events.exit?.("BasicInterfaceProperty", state, result, eventData);
14842
+ return result;
14843
+ }
14844
+ }
14745
14845
  var InterfacePropertyDelimiter$0 = $S($Q(_), $C(Semicolon, Comma));
14746
14846
  var InterfacePropertyDelimiter$1 = $Y($S(__, CloseBrace));
14747
14847
  var InterfacePropertyDelimiter$2 = $Y(EOS);
@@ -14843,7 +14943,7 @@ ${input.slice(result.pos)}
14843
14943
  return result;
14844
14944
  }
14845
14945
  }
14846
- var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R50, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L131, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R51, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
14946
+ var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R50, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L132, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R51, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
14847
14947
  function TypeIndexSignature(state) {
14848
14948
  let eventData;
14849
14949
  if (state.events) {
@@ -15075,9 +15175,9 @@ ${input.slice(result.pos)}
15075
15175
  }
15076
15176
  }
15077
15177
  var TypeUnaryOp$0 = $S($EXPECT($L166, fail, 'TypeUnaryOp "keyof"'), NonIdContinue);
15078
- var TypeUnaryOp$1 = $S($EXPECT($L147, fail, 'TypeUnaryOp "typeof"'), NonIdContinue);
15178
+ var TypeUnaryOp$1 = $S($EXPECT($L148, fail, 'TypeUnaryOp "typeof"'), NonIdContinue);
15079
15179
  var TypeUnaryOp$2 = $S($EXPECT($L167, fail, 'TypeUnaryOp "infer"'), NonIdContinue);
15080
- var TypeUnaryOp$3 = $S($EXPECT($L131, fail, 'TypeUnaryOp "readonly"'), NonIdContinue);
15180
+ var TypeUnaryOp$3 = $S($EXPECT($L132, fail, 'TypeUnaryOp "readonly"'), NonIdContinue);
15081
15181
  function TypeUnaryOp(state) {
15082
15182
  let eventData;
15083
15183
  if (state.events) {
@@ -15124,12 +15224,13 @@ ${input.slice(result.pos)}
15124
15224
  }
15125
15225
  }
15126
15226
  var TypePrimary$0 = InterfaceBlock;
15127
- var TypePrimary$1 = $S(__, OpenParen, Type, __, CloseParen);
15128
- var TypePrimary$2 = $S($E(_), TypeTuple);
15129
- var TypePrimary$3 = $S($E(_), ImportType);
15130
- var TypePrimary$4 = $S($E(_), FunctionType);
15227
+ var TypePrimary$1 = $S($E(_), FunctionType);
15228
+ var TypePrimary$2 = $S($E(_), InlineInterfaceLiteral);
15229
+ var TypePrimary$3 = $S($E(_), TypeTuple);
15230
+ var TypePrimary$4 = $S($E(_), ImportType);
15131
15231
  var TypePrimary$5 = $S($E(_), TypeLiteral);
15132
15232
  var TypePrimary$6 = $S($E(_), IdentifierName, $Q($S(Dot, IdentifierName)), $E(TypeArguments));
15233
+ var TypePrimary$7 = $S(__, OpenParen, Type, __, CloseParen);
15133
15234
  function TypePrimary(state) {
15134
15235
  let eventData;
15135
15236
  if (state.events) {
@@ -15141,12 +15242,12 @@ ${input.slice(result.pos)}
15141
15242
  }
15142
15243
  }
15143
15244
  if (state.tokenize) {
15144
- const result = $TOKEN("TypePrimary", state, TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state));
15245
+ const result = $TOKEN("TypePrimary", state, TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state) || TypePrimary$7(state));
15145
15246
  if (state.events)
15146
15247
  state.events.exit?.("TypePrimary", state, result, eventData);
15147
15248
  return result;
15148
15249
  } else {
15149
- const result = TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state);
15250
+ const result = TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state) || TypePrimary$7(state);
15150
15251
  if (state.events)
15151
15252
  state.events.exit?.("TypePrimary", state, result, eventData);
15152
15253
  return result;
@@ -15274,7 +15375,7 @@ ${input.slice(result.pos)}
15274
15375
  return result;
15275
15376
  }
15276
15377
  }
15277
- var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L112, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
15378
+ var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L113, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
15278
15379
  if ($2)
15279
15380
  return $0;
15280
15381
  return $1;
@@ -15303,7 +15404,7 @@ ${input.slice(result.pos)}
15303
15404
  }
15304
15405
  var TypeLiteral$0 = Literal;
15305
15406
  var TypeLiteral$1 = TemplateLiteral;
15306
- var TypeLiteral$2 = $TS($S($EXPECT($L151, fail, 'TypeLiteral "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15407
+ var TypeLiteral$2 = $TS($S($EXPECT($L152, fail, 'TypeLiteral "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15307
15408
  return { $loc, token: "void" };
15308
15409
  });
15309
15410
  var TypeLiteral$3 = $TV($EXPECT($L168, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
@@ -15331,6 +15432,80 @@ ${input.slice(result.pos)}
15331
15432
  return result;
15332
15433
  }
15333
15434
  }
15435
+ var InlineInterfaceLiteral$0 = $S(InsertInlineOpenBrace, InlineBasicInterfaceProperty, $Q($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertCloseBrace);
15436
+ function InlineInterfaceLiteral(state) {
15437
+ let eventData;
15438
+ if (state.events) {
15439
+ const result = state.events.enter?.("InlineInterfaceLiteral", state);
15440
+ if (result) {
15441
+ if (result.cache)
15442
+ return result.cache;
15443
+ eventData = result.data;
15444
+ }
15445
+ }
15446
+ if (state.tokenize) {
15447
+ const result = $TOKEN("InlineInterfaceLiteral", state, InlineInterfaceLiteral$0(state));
15448
+ if (state.events)
15449
+ state.events.exit?.("InlineInterfaceLiteral", state, result, eventData);
15450
+ return result;
15451
+ } else {
15452
+ const result = InlineInterfaceLiteral$0(state);
15453
+ if (state.events)
15454
+ state.events.exit?.("InlineInterfaceLiteral", state, result, eventData);
15455
+ return result;
15456
+ }
15457
+ }
15458
+ var InlineBasicInterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), $E(QuestionMark), Colon, Type, InlineInterfacePropertyDelimiter);
15459
+ function InlineBasicInterfaceProperty(state) {
15460
+ let eventData;
15461
+ if (state.events) {
15462
+ const result = state.events.enter?.("InlineBasicInterfaceProperty", state);
15463
+ if (result) {
15464
+ if (result.cache)
15465
+ return result.cache;
15466
+ eventData = result.data;
15467
+ }
15468
+ }
15469
+ if (state.tokenize) {
15470
+ const result = $TOKEN("InlineBasicInterfaceProperty", state, InlineBasicInterfaceProperty$0(state));
15471
+ if (state.events)
15472
+ state.events.exit?.("InlineBasicInterfaceProperty", state, result, eventData);
15473
+ return result;
15474
+ } else {
15475
+ const result = InlineBasicInterfaceProperty$0(state);
15476
+ if (state.events)
15477
+ state.events.exit?.("InlineBasicInterfaceProperty", state, result, eventData);
15478
+ return result;
15479
+ }
15480
+ }
15481
+ var InlineInterfacePropertyDelimiter$0 = $C($S($E(_), Semicolon), CommaDelimiter);
15482
+ var InlineInterfacePropertyDelimiter$1 = $T($S($Y($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertComma), function(value) {
15483
+ return value[1];
15484
+ });
15485
+ var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L29, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L15, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L28, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L17, fail, 'InlineInterfacePropertyDelimiter "}"'))));
15486
+ var InlineInterfacePropertyDelimiter$3 = $Y(EOS);
15487
+ function InlineInterfacePropertyDelimiter(state) {
15488
+ let eventData;
15489
+ if (state.events) {
15490
+ const result = state.events.enter?.("InlineInterfacePropertyDelimiter", state);
15491
+ if (result) {
15492
+ if (result.cache)
15493
+ return result.cache;
15494
+ eventData = result.data;
15495
+ }
15496
+ }
15497
+ if (state.tokenize) {
15498
+ const result = $TOKEN("InlineInterfacePropertyDelimiter", state, InlineInterfacePropertyDelimiter$0(state) || InlineInterfacePropertyDelimiter$1(state) || InlineInterfacePropertyDelimiter$2(state) || InlineInterfacePropertyDelimiter$3(state));
15499
+ if (state.events)
15500
+ state.events.exit?.("InlineInterfacePropertyDelimiter", state, result, eventData);
15501
+ return result;
15502
+ } else {
15503
+ const result = InlineInterfacePropertyDelimiter$0(state) || InlineInterfacePropertyDelimiter$1(state) || InlineInterfacePropertyDelimiter$2(state) || InlineInterfacePropertyDelimiter$3(state);
15504
+ if (state.events)
15505
+ state.events.exit?.("InlineInterfacePropertyDelimiter", state, result, eventData);
15506
+ return result;
15507
+ }
15508
+ }
15334
15509
  var TypeBinaryOp$0 = $TV($EXPECT($L78, fail, 'TypeBinaryOp "|"'), function($skip, $loc, $0, $1) {
15335
15510
  return { $loc, token: "|" };
15336
15511
  });
@@ -15388,7 +15563,7 @@ ${input.slice(result.pos)}
15388
15563
  return result;
15389
15564
  }
15390
15565
  }
15391
- var TypeArguments$0 = $TS($S($EXPECT($L123, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L27, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
15566
+ var TypeArguments$0 = $TS($S($EXPECT($L124, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L27, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
15392
15567
  return { ts: true, children: $0 };
15393
15568
  });
15394
15569
  function TypeArguments(state) {
@@ -15459,7 +15634,7 @@ ${input.slice(result.pos)}
15459
15634
  return result;
15460
15635
  }
15461
15636
  }
15462
- var TypeParameters$0 = $TS($S(__, $EXPECT($L123, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L27, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
15637
+ var TypeParameters$0 = $TS($S(__, $EXPECT($L124, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L27, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
15463
15638
  var parameters = $3;
15464
15639
  return {
15465
15640
  type: "TypeParameters",
@@ -15513,7 +15688,7 @@ ${input.slice(result.pos)}
15513
15688
  return result;
15514
15689
  }
15515
15690
  }
15516
- var TypeConstraint$0 = $S(__, $EXPECT($L112, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
15691
+ var TypeConstraint$0 = $S(__, $EXPECT($L113, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
15517
15692
  function TypeConstraint(state) {
15518
15693
  let eventData;
15519
15694
  if (state.events) {
@@ -17141,11 +17316,21 @@ ${input.slice(result.pos)}
17141
17316
  } else {
17142
17317
  children = [wsOp, op2.call, "(", a, ",", wsB, b, ")", op2.suffix];
17143
17318
  }
17144
- } else if (op2.token === "instanceof" || op2.token === "in") {
17145
- children = ["!(", a, wsOp, op2, wsB, b, ")"];
17319
+ } else if (op2.method) {
17320
+ wsOp = module2.insertTrimmingSpace(wsOp, "");
17321
+ wsB = module2.insertTrimmingSpace(wsB, "");
17322
+ if (op2.reversed) {
17323
+ children = [wsB, b, wsOp, ".", op2.method, "(", a, ")"];
17324
+ } else {
17325
+ children = [a, wsOp, ".", op2.method, "(", wsB, b, ")"];
17326
+ }
17327
+ } else if (op2.token) {
17328
+ children = ["(", a, wsOp, op2, wsB, b, ")"];
17146
17329
  } else {
17147
17330
  throw new Error("Unknown operator: " + JSON.stringify(op2));
17148
17331
  }
17332
+ if (op2.negated)
17333
+ children.unshift("!");
17149
17334
  expandedOps.splice(i - 2, 5, {
17150
17335
  children
17151
17336
  });