@danielx/civet 0.4.21 → 0.4.22

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
@@ -400,6 +400,7 @@ ${input.slice(result.pos)}
400
400
  Expression,
401
401
  Arguments,
402
402
  ApplicationStart,
403
+ IndentedApplicationAllowed,
403
404
  ArgumentsWithTrailingCallExpressions,
404
405
  ArgumentList,
405
406
  NestedArgumentList,
@@ -458,6 +459,7 @@ ${input.slice(result.pos)}
458
459
  ParameterElement,
459
460
  ParameterElementDelimiter,
460
461
  BindingIdentifier,
462
+ AtIdentifierRef,
461
463
  BindingPattern,
462
464
  ObjectBindingPattern,
463
465
  ObjectBindingPatternContent,
@@ -587,6 +589,8 @@ ${input.slice(result.pos)}
587
589
  Finally,
588
590
  CatchParameter,
589
591
  Condition,
592
+ ExpressionWithIndentedApplicationSuppressed,
593
+ SuppressIndentedApplication,
590
594
  ExpressionStatement,
591
595
  KeywordStatement,
592
596
  DebuggerExpression,
@@ -608,6 +612,7 @@ ${input.slice(result.pos)}
608
612
  ExportFromClause,
609
613
  NamedExports,
610
614
  ExportSpecifier,
615
+ ImplicitExportSpecifier,
611
616
  Declaration,
612
617
  HoistableDeclaration,
613
618
  LexicalDeclaration,
@@ -802,6 +807,7 @@ ${input.slice(result.pos)}
802
807
  InsertOpenParen,
803
808
  InsertCloseParen,
804
809
  InsertOpenBrace,
810
+ InsertInlineOpenBrace,
805
811
  InsertCloseBrace,
806
812
  InsertConst,
807
813
  InsertReadonly,
@@ -831,20 +837,20 @@ ${input.slice(result.pos)}
831
837
  PopIndent,
832
838
  Nested
833
839
  });
834
- var $L0 = $L("++");
835
- var $L1 = $L("--");
836
- var $L2 = $L("=>");
837
- var $L3 = $L(" ");
838
- var $L4 = $L("<");
839
- var $L5 = $L("extends");
840
- var $L6 = $L("#");
841
- var $L7 = $L(".");
842
- var $L8 = $L("super");
843
- var $L9 = $L("import");
844
- var $L10 = $L("!");
845
- var $L11 = $L("super[");
846
- var $L12 = $L("import.meta");
847
- var $L13 = $L("");
840
+ var $L0 = $L("");
841
+ var $L1 = $L("++");
842
+ var $L2 = $L("--");
843
+ var $L3 = $L("=>");
844
+ var $L4 = $L(" ");
845
+ var $L5 = $L("<");
846
+ var $L6 = $L("extends");
847
+ var $L7 = $L("#");
848
+ var $L8 = $L(".");
849
+ var $L9 = $L("super");
850
+ var $L10 = $L("import");
851
+ var $L11 = $L("!");
852
+ var $L12 = $L("super[");
853
+ var $L13 = $L("import.meta");
848
854
  var $L14 = $L(")");
849
855
  var $L15 = $L("->");
850
856
  var $L16 = $L("null");
@@ -1022,26 +1028,27 @@ ${input.slice(result.pos)}
1022
1028
  var $R30 = $R(new RegExp("(?:on|off|yes|no)(?!\\p{ID_Continue})", "suy"));
1023
1029
  var $R31 = $R(new RegExp("(?:isnt)(?!\\p{ID_Continue})", "suy"));
1024
1030
  var $R32 = $R(new RegExp("(?:by)(?!\\p{ID_Continue})", "suy"));
1025
- var $R33 = $R(new RegExp("(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|null|or|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy"));
1026
- var $R34 = $R(new RegExp("\\/\\/(?!\\/)[^\\r\\n]*", "suy"));
1027
- var $R35 = $R(new RegExp(".", "suy"));
1028
- var $R36 = $R(new RegExp("#(?!##(?!#))([^\\r\\n]*)", "suy"));
1029
- var $R37 = $R(new RegExp("###(?!#)", "suy"));
1030
- var $R38 = $R(new RegExp("[^\\r\\n]", "suy"));
1031
- var $R39 = $R(new RegExp("[ \\t]+", "suy"));
1032
- var $R40 = $R(new RegExp("(?!\\p{ID_Continue})", "suy"));
1033
- var $R41 = $R(new RegExp("\\s", "suy"));
1034
- var $R42 = $R(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy"));
1035
- var $R43 = $R(new RegExp('"[^"]*"', "suy"));
1036
- var $R44 = $R(new RegExp("'[^']*'", "suy"));
1037
- var $R45 = $R(new RegExp("[^{}<>]+", "suy"));
1038
- var $R46 = $R(new RegExp("[+-]?", "suy"));
1039
- var $R47 = $R(new RegExp("[+-]", "suy"));
1040
- var $R48 = $R(new RegExp("#![^\\r\\n]*", "suy"));
1041
- var $R49 = $R(new RegExp("[\\t ]*", "suy"));
1042
- var $R50 = $R(new RegExp("[\\s]*", "suy"));
1043
- var $R51 = $R(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)", "suy"));
1044
- var $R52 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
1031
+ var $R33 = $R(new RegExp("(?:of)(?!\\p{ID_Continue})", "suy"));
1032
+ var $R34 = $R(new RegExp("(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|null|or|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy"));
1033
+ var $R35 = $R(new RegExp("\\/\\/(?!\\/)[^\\r\\n]*", "suy"));
1034
+ var $R36 = $R(new RegExp(".", "suy"));
1035
+ var $R37 = $R(new RegExp("#(?!##(?!#))([^\\r\\n]*)", "suy"));
1036
+ var $R38 = $R(new RegExp("###(?!#)", "suy"));
1037
+ var $R39 = $R(new RegExp("[^\\r\\n]", "suy"));
1038
+ var $R40 = $R(new RegExp("[ \\t]+", "suy"));
1039
+ var $R41 = $R(new RegExp("(?!\\p{ID_Continue})", "suy"));
1040
+ var $R42 = $R(new RegExp("\\s", "suy"));
1041
+ var $R43 = $R(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy"));
1042
+ var $R44 = $R(new RegExp('"[^"]*"', "suy"));
1043
+ var $R45 = $R(new RegExp("'[^']*'", "suy"));
1044
+ var $R46 = $R(new RegExp("[^{}<>]+", "suy"));
1045
+ var $R47 = $R(new RegExp("[+-]?", "suy"));
1046
+ var $R48 = $R(new RegExp("[+-]", "suy"));
1047
+ var $R49 = $R(new RegExp("#![^\\r\\n]*", "suy"));
1048
+ var $R50 = $R(new RegExp("[\\t ]*", "suy"));
1049
+ var $R51 = $R(new RegExp("[\\s]*", "suy"));
1050
+ var $R52 = $R(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)", "suy"));
1051
+ var $R53 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
1045
1052
  var Program$0 = $TS($S(Reset, Init, __, $Q(TopLevelStatement), __), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
1046
1053
  var statements = $4;
1047
1054
  module2.processProgram(statements);
@@ -1188,7 +1195,7 @@ ${input.slice(result.pos)}
1188
1195
  return result;
1189
1196
  }
1190
1197
  }
1191
- var ApplicationStart$0 = $Y(NestedImplicitObjectLiteral);
1198
+ var ApplicationStart$0 = $S(IndentedApplicationAllowed, $Y(NestedImplicitObjectLiteral));
1192
1199
  var ApplicationStart$1 = $S($N(EOS), $Y($S($P(_), $N(AdditionalReservedWords))));
1193
1200
  function ApplicationStart(state) {
1194
1201
  if (state.events) {
@@ -1208,6 +1215,29 @@ ${input.slice(result.pos)}
1208
1215
  return result;
1209
1216
  }
1210
1217
  }
1218
+ var IndentedApplicationAllowed$0 = $TV($EXPECT($L0, fail, 'IndentedApplicationAllowed ""'), function($skip, $loc, $0, $1) {
1219
+ if (module2.suppressIndentedApplication)
1220
+ return $skip;
1221
+ return;
1222
+ });
1223
+ function IndentedApplicationAllowed(state) {
1224
+ if (state.events) {
1225
+ const result = state.events.enter?.("IndentedApplicationAllowed", state);
1226
+ if (result)
1227
+ return result.cache;
1228
+ }
1229
+ if (state.tokenize) {
1230
+ const result = $TOKEN("IndentedApplicationAllowed", state, IndentedApplicationAllowed$0(state));
1231
+ if (state.events)
1232
+ state.events.exit?.("IndentedApplicationAllowed", state, result);
1233
+ return result;
1234
+ } else {
1235
+ const result = IndentedApplicationAllowed$0(state);
1236
+ if (state.events)
1237
+ state.events.exit?.("IndentedApplicationAllowed", state, result);
1238
+ return result;
1239
+ }
1240
+ }
1211
1241
  var ArgumentsWithTrailingCallExpressions$0 = $S(Arguments, $Q($S(Samedent, $N(Backtick), CallExpressionRest)));
1212
1242
  function ArgumentsWithTrailingCallExpressions(state) {
1213
1243
  if (state.events) {
@@ -1540,7 +1570,7 @@ ${input.slice(result.pos)}
1540
1570
  return result;
1541
1571
  }
1542
1572
  }
1543
- var UpdateExpressionSymbol$0 = $TV($C($EXPECT($L0, fail, 'UpdateExpressionSymbol "++"'), $EXPECT($L1, fail, 'UpdateExpressionSymbol "--"')), function($skip, $loc, $0, $1) {
1573
+ var UpdateExpressionSymbol$0 = $TV($C($EXPECT($L1, fail, 'UpdateExpressionSymbol "++"'), $EXPECT($L2, fail, 'UpdateExpressionSymbol "--"')), function($skip, $loc, $0, $1) {
1544
1574
  return { $loc, token: $1 };
1545
1575
  });
1546
1576
  function UpdateExpressionSymbol(state) {
@@ -1739,7 +1769,7 @@ ${input.slice(result.pos)}
1739
1769
  return result;
1740
1770
  }
1741
1771
  }
1742
- var FatArrow$0 = $TS($S(__, $EXPECT($L2, fail, 'FatArrow "=>"')), function($skip, $loc, $0, $1, $2) {
1772
+ var FatArrow$0 = $TS($S(__, $EXPECT($L3, fail, 'FatArrow "=>"')), function($skip, $loc, $0, $1, $2) {
1743
1773
  var ws = $1;
1744
1774
  if (!ws.length)
1745
1775
  return " =>";
@@ -1810,7 +1840,7 @@ ${input.slice(result.pos)}
1810
1840
  }
1811
1841
  }
1812
1842
  var TernaryRest$0 = NestedTernaryRest;
1813
- var TernaryRest$1 = $TS($S($N(CoffeeBinaryExistentialEnabled), $Y($EXPECT($L3, fail, 'TernaryRest " "')), $Q(TrailingComment), QuestionMark, ExtendedExpression, __, Colon, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
1843
+ var TernaryRest$1 = $TS($S($N(CoffeeBinaryExistentialEnabled), $Y($EXPECT($L4, fail, 'TernaryRest " "')), $Q(TrailingComment), QuestionMark, ExtendedExpression, __, Colon, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
1814
1844
  return $0.slice(2);
1815
1845
  });
1816
1846
  function TernaryRest(state) {
@@ -1990,10 +2020,10 @@ ${input.slice(result.pos)}
1990
2020
  return result;
1991
2021
  }
1992
2022
  }
1993
- var ExtendsToken$0 = $TV($EXPECT($L4, fail, 'ExtendsToken "<"'), function($skip, $loc, $0, $1) {
2023
+ var ExtendsToken$0 = $TV($EXPECT($L5, fail, 'ExtendsToken "<"'), function($skip, $loc, $0, $1) {
1994
2024
  return { $loc, token: "extends" };
1995
2025
  });
1996
- var ExtendsToken$1 = $TV($EXPECT($L5, fail, 'ExtendsToken "extends"'), function($skip, $loc, $0, $1) {
2026
+ var ExtendsToken$1 = $TV($EXPECT($L6, fail, 'ExtendsToken "extends"'), function($skip, $loc, $0, $1) {
1997
2027
  return { $loc, token: $1 };
1998
2028
  });
1999
2029
  function ExtendsToken(state) {
@@ -2015,7 +2045,7 @@ ${input.slice(result.pos)}
2015
2045
  }
2016
2046
  }
2017
2047
  var ClassBody$0 = $S(__, OpenBrace, $E(NestedClassElements), __, CloseBrace);
2018
- var ClassBody$1 = $S(InsertOpenBrace, NestedClassElements, InsertNewline, InsertIndent, InsertCloseBrace);
2048
+ var ClassBody$1 = $S(InsertOpenBrace, $E(NestedClassElements), InsertNewline, InsertIndent, InsertCloseBrace);
2019
2049
  function ClassBody(state) {
2020
2050
  if (state.events) {
2021
2051
  const result = state.events.enter?.("ClassBody", state);
@@ -2139,7 +2169,7 @@ ${input.slice(result.pos)}
2139
2169
  }
2140
2170
  }
2141
2171
  var ThisLiteral$0 = This;
2142
- var ThisLiteral$1 = $TS($S(At, $TEXT($S($E($EXPECT($L6, fail, 'ThisLiteral "#"')), IdentifierName))), function($skip, $loc, $0, $1, $2) {
2172
+ var ThisLiteral$1 = $TS($S(At, $TEXT($S($E($EXPECT($L7, fail, 'ThisLiteral "#"')), IdentifierName))), function($skip, $loc, $0, $1, $2) {
2143
2173
  var t = $1;
2144
2174
  var id = $2;
2145
2175
  return [{ ...t, token: "this." }, id];
@@ -2166,7 +2196,7 @@ ${input.slice(result.pos)}
2166
2196
  return result;
2167
2197
  }
2168
2198
  }
2169
- var LeftHandSideExpression$0 = $TS($S($Q($S(New, $N($EXPECT($L7, fail, 'LeftHandSideExpression "."')), __)), CallExpression), function($skip, $loc, $0, $1, $2) {
2199
+ var LeftHandSideExpression$0 = $TS($S($Q($S(New, $N($EXPECT($L8, fail, 'LeftHandSideExpression "."')), __)), CallExpression), function($skip, $loc, $0, $1, $2) {
2170
2200
  if ($1.length)
2171
2201
  return $0;
2172
2202
  return $2;
@@ -2189,8 +2219,8 @@ ${input.slice(result.pos)}
2189
2219
  return result;
2190
2220
  }
2191
2221
  }
2192
- var CallExpression$0 = $S($EXPECT($L8, fail, 'CallExpression "super"'), ArgumentsWithTrailingCallExpressions);
2193
- var CallExpression$1 = $S($EXPECT($L9, fail, 'CallExpression "import"'), __, OpenParen, ExtendedExpression, __, CloseParen);
2222
+ var CallExpression$0 = $S($EXPECT($L9, fail, 'CallExpression "super"'), ArgumentsWithTrailingCallExpressions);
2223
+ var CallExpression$1 = $S($EXPECT($L10, fail, 'CallExpression "import"'), __, OpenParen, ExtendedExpression, __, CloseParen);
2194
2224
  var CallExpression$2 = $TS($S(MemberExpression, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2) {
2195
2225
  if ($2.length)
2196
2226
  return $0;
@@ -2254,7 +2284,7 @@ ${input.slice(result.pos)}
2254
2284
  return result;
2255
2285
  }
2256
2286
  }
2257
- var NonNullAssertion$0 = $T($EXPECT($L10, fail, 'NonNullAssertion "!"'), function(value) {
2287
+ var NonNullAssertion$0 = $T($EXPECT($L11, fail, 'NonNullAssertion "!"'), function(value) {
2258
2288
  return { "ts": true, "children": value };
2259
2289
  });
2260
2290
  function NonNullAssertion(state) {
@@ -2494,7 +2524,7 @@ ${input.slice(result.pos)}
2494
2524
  return result;
2495
2525
  }
2496
2526
  }
2497
- var SuperProperty$0 = $S($EXPECT($L11, fail, 'SuperProperty "super["'), ExtendedExpression, __, CloseBracket);
2527
+ var SuperProperty$0 = $S($EXPECT($L12, fail, 'SuperProperty "super["'), ExtendedExpression, __, CloseBracket);
2498
2528
  function SuperProperty(state) {
2499
2529
  if (state.events) {
2500
2530
  const result = state.events.enter?.("SuperProperty", state);
@@ -2514,7 +2544,7 @@ ${input.slice(result.pos)}
2514
2544
  }
2515
2545
  }
2516
2546
  var MetaProperty$0 = $S(New, Dot, Target);
2517
- var MetaProperty$1 = $TV($EXPECT($L12, fail, 'MetaProperty "import.meta"'), function($skip, $loc, $0, $1) {
2547
+ var MetaProperty$1 = $TV($EXPECT($L13, fail, 'MetaProperty "import.meta"'), function($skip, $loc, $0, $1) {
2518
2548
  return { $loc, token: $1 };
2519
2549
  });
2520
2550
  function MetaProperty(state) {
@@ -2536,7 +2566,7 @@ ${input.slice(result.pos)}
2536
2566
  }
2537
2567
  }
2538
2568
  var Parameters$0 = NonEmptyParameters;
2539
- var Parameters$1 = $TV($EXPECT($L13, fail, 'Parameters ""'), function($skip, $loc, $0, $1) {
2569
+ var Parameters$1 = $TV($EXPECT($L0, fail, 'Parameters ""'), function($skip, $loc, $0, $1) {
2540
2570
  return {
2541
2571
  type: "Parameters",
2542
2572
  children: [{ $loc, token: "()" }],
@@ -2697,21 +2727,18 @@ ${input.slice(result.pos)}
2697
2727
  return result;
2698
2728
  }
2699
2729
  }
2700
- var BindingIdentifier$0 = $TS($S(__, $E(At), Identifier), function($skip, $loc, $0, $1, $2, $3) {
2730
+ var BindingIdentifier$0 = $TS($S(__, At, AtIdentifierRef), function($skip, $loc, $0, $1, $2, $3) {
2701
2731
  var ws = $1;
2702
- var at = $2;
2703
- var id = $3;
2704
- if (at) {
2705
- const ref = {
2706
- type: "Ref",
2707
- base: id.name
2708
- };
2709
- return {
2710
- type: "AtBinding",
2711
- children: [...ws, ref],
2712
- ref
2713
- };
2714
- }
2732
+ var ref = $3;
2733
+ return {
2734
+ type: "AtBinding",
2735
+ children: [...ws, ref],
2736
+ ref
2737
+ };
2738
+ });
2739
+ var BindingIdentifier$1 = $TS($S(__, Identifier), function($skip, $loc, $0, $1, $2) {
2740
+ var ws = $1;
2741
+ var id = $2;
2715
2742
  return {
2716
2743
  ...id,
2717
2744
  children: [...ws, ...id.children]
@@ -2724,17 +2751,51 @@ ${input.slice(result.pos)}
2724
2751
  return result.cache;
2725
2752
  }
2726
2753
  if (state.tokenize) {
2727
- const result = $TOKEN("BindingIdentifier", state, BindingIdentifier$0(state));
2754
+ const result = $TOKEN("BindingIdentifier", state, BindingIdentifier$0(state) || BindingIdentifier$1(state));
2728
2755
  if (state.events)
2729
2756
  state.events.exit?.("BindingIdentifier", state, result);
2730
2757
  return result;
2731
2758
  } else {
2732
- const result = BindingIdentifier$0(state);
2759
+ const result = BindingIdentifier$0(state) || BindingIdentifier$1(state);
2733
2760
  if (state.events)
2734
2761
  state.events.exit?.("BindingIdentifier", state, result);
2735
2762
  return result;
2736
2763
  }
2737
2764
  }
2765
+ var AtIdentifierRef$0 = $TV(ReservedWord, function($skip, $loc, $0, $1) {
2766
+ var r = $0;
2767
+ return {
2768
+ type: "Ref",
2769
+ base: `_${r}`,
2770
+ id: r
2771
+ };
2772
+ });
2773
+ var AtIdentifierRef$1 = $TV(IdentifierName, function($skip, $loc, $0, $1) {
2774
+ var id = $0;
2775
+ return {
2776
+ type: "Ref",
2777
+ base: id.name,
2778
+ id: id.name
2779
+ };
2780
+ });
2781
+ function AtIdentifierRef(state) {
2782
+ if (state.events) {
2783
+ const result = state.events.enter?.("AtIdentifierRef", state);
2784
+ if (result)
2785
+ return result.cache;
2786
+ }
2787
+ if (state.tokenize) {
2788
+ const result = $TOKEN("AtIdentifierRef", state, AtIdentifierRef$0(state) || AtIdentifierRef$1(state));
2789
+ if (state.events)
2790
+ state.events.exit?.("AtIdentifierRef", state, result);
2791
+ return result;
2792
+ } else {
2793
+ const result = AtIdentifierRef$0(state) || AtIdentifierRef$1(state);
2794
+ if (state.events)
2795
+ state.events.exit?.("AtIdentifierRef", state, result);
2796
+ return result;
2797
+ }
2798
+ }
2738
2799
  var BindingPattern$0 = $TS($S(__, ObjectBindingPattern), function($skip, $loc, $0, $1, $2) {
2739
2800
  var p = $2;
2740
2801
  return {
@@ -3226,8 +3287,12 @@ ${input.slice(result.pos)}
3226
3287
  return result;
3227
3288
  }
3228
3289
  }
3229
- var EmptyBindingPattern$0 = $TV($EXPECT($L13, fail, 'EmptyBindingPattern ""'), function($skip, $loc, $0, $1) {
3230
- const ref = { type: "Ref", base: "ref" };
3290
+ var EmptyBindingPattern$0 = $TV($EXPECT($L0, fail, 'EmptyBindingPattern ""'), function($skip, $loc, $0, $1) {
3291
+ const ref = {
3292
+ type: "Ref",
3293
+ base: "ref",
3294
+ id: "ref"
3295
+ };
3231
3296
  return {
3232
3297
  type: "EmptyBinding",
3233
3298
  children: [ref],
@@ -4172,7 +4237,7 @@ ${input.slice(result.pos)}
4172
4237
  return result;
4173
4238
  }
4174
4239
  }
4175
- var ArrayElementDelimiter$0 = $S($Q(_), Comma);
4240
+ var ArrayElementDelimiter$0 = $S(__, Comma);
4176
4241
  var ArrayElementDelimiter$1 = $Y($S(__, $EXPECT($L26, fail, 'ArrayElementDelimiter "]"')));
4177
4242
  var ArrayElementDelimiter$2 = $TV($Y(EOS), function($skip, $loc, $0, $1) {
4178
4243
  return { $loc, token: "," };
@@ -4230,7 +4295,7 @@ ${input.slice(result.pos)}
4230
4295
  return result;
4231
4296
  }
4232
4297
  }
4233
- var ElementListRest$0 = $S($S(__, Comma, __), ArrayElementExpression);
4298
+ var ElementListRest$0 = $S($S(__, Comma), ArrayElementExpression);
4234
4299
  function ElementListRest(state) {
4235
4300
  if (state.events) {
4236
4301
  const result = state.events.enter?.("ElementListRest", state);
@@ -4257,6 +4322,7 @@ ${input.slice(result.pos)}
4257
4322
  exp = {
4258
4323
  type: "Ref",
4259
4324
  base: "ref",
4325
+ id: "ref",
4260
4326
  names: []
4261
4327
  };
4262
4328
  }
@@ -4514,10 +4580,10 @@ ${input.slice(result.pos)}
4514
4580
  return result;
4515
4581
  }
4516
4582
  }
4517
- var InlineObjectLiteral$0 = $TS($S(InsertOpenBrace, SnugNamedProperty, ImplicitInlineObjectPropertyDelimiter, $Q($S(NamedProperty, ImplicitInlineObjectPropertyDelimiter)), InsertCloseBrace), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
4583
+ var InlineObjectLiteral$0 = $TS($S(InsertInlineOpenBrace, SnugNamedProperty, ImplicitInlineObjectPropertyDelimiter, $Q($S(NamedProperty, ImplicitInlineObjectPropertyDelimiter)), InsertCloseBrace), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
4518
4584
  var open = $1;
4519
4585
  var close = $5;
4520
- return [open[1], $2, $3, ...$4, close];
4586
+ return [open, $2, $3, ...$4, close];
4521
4587
  });
4522
4588
  function InlineObjectLiteral(state) {
4523
4589
  if (state.events) {
@@ -4843,7 +4909,7 @@ ${input.slice(result.pos)}
4843
4909
  return result;
4844
4910
  }
4845
4911
  }
4846
- var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($L6, fail, 'PrivateIdentifier "#"'), IdentifierName)), function($skip, $loc, $0, $1) {
4912
+ var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($L7, fail, 'PrivateIdentifier "#"'), IdentifierName)), function($skip, $loc, $0, $1) {
4847
4913
  return {
4848
4914
  type: "Identifier",
4849
4915
  name: $0,
@@ -4995,7 +5061,7 @@ ${input.slice(result.pos)}
4995
5061
  var BinaryOpSymbol$6 = $EXPECT($L53, fail, 'BinaryOpSymbol "<="');
4996
5062
  var BinaryOpSymbol$7 = $EXPECT($L54, fail, 'BinaryOpSymbol ">="');
4997
5063
  var BinaryOpSymbol$8 = $EXPECT($L55, fail, 'BinaryOpSymbol "<<"');
4998
- var BinaryOpSymbol$9 = $EXPECT($L4, fail, 'BinaryOpSymbol "<"');
5064
+ var BinaryOpSymbol$9 = $EXPECT($L5, fail, 'BinaryOpSymbol "<"');
4999
5065
  var BinaryOpSymbol$10 = $EXPECT($L56, fail, 'BinaryOpSymbol ">>>"');
5000
5066
  var BinaryOpSymbol$11 = $EXPECT($L57, fail, 'BinaryOpSymbol ">>"');
5001
5067
  var BinaryOpSymbol$12 = $EXPECT($L25, fail, 'BinaryOpSymbol ">"');
@@ -5044,26 +5110,33 @@ ${input.slice(result.pos)}
5044
5110
  special: true
5045
5111
  };
5046
5112
  });
5047
- var BinaryOpSymbol$28 = $TS($S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
5113
+ var BinaryOpSymbol$28 = $TS($S(CoffeeNotEnabled, $EXPECT($L72, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L66, fail, 'BinaryOpSymbol "of"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
5114
+ return {
5115
+ $loc,
5116
+ token: "in",
5117
+ special: true
5118
+ };
5119
+ });
5120
+ var BinaryOpSymbol$29 = $TS($S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
5048
5121
  return {
5049
5122
  ref: module2.getIndexOfRef(),
5050
5123
  suffix: " >= 0",
5051
5124
  special: true
5052
5125
  };
5053
5126
  });
5054
- var BinaryOpSymbol$29 = $TS($S(CoffeeOfEnabled, $EXPECT($L72, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
5127
+ var BinaryOpSymbol$30 = $TS($S(CoffeeOfEnabled, $EXPECT($L72, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
5055
5128
  return {
5056
5129
  ref: module2.getIndexOfRef(),
5057
5130
  suffix: " < 0",
5058
5131
  special: true
5059
5132
  };
5060
5133
  });
5061
- var BinaryOpSymbol$30 = $TS($S($EXPECT($L73, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5134
+ var BinaryOpSymbol$31 = $TS($S($EXPECT($L73, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5062
5135
  return $1;
5063
5136
  });
5064
- var BinaryOpSymbol$31 = $EXPECT($L74, fail, 'BinaryOpSymbol "&"');
5065
- var BinaryOpSymbol$32 = $EXPECT($L75, fail, 'BinaryOpSymbol "^"');
5066
- var BinaryOpSymbol$33 = $EXPECT($L76, fail, 'BinaryOpSymbol "|"');
5137
+ var BinaryOpSymbol$32 = $EXPECT($L74, fail, 'BinaryOpSymbol "&"');
5138
+ var BinaryOpSymbol$33 = $EXPECT($L75, fail, 'BinaryOpSymbol "^"');
5139
+ var BinaryOpSymbol$34 = $EXPECT($L76, fail, 'BinaryOpSymbol "|"');
5067
5140
  function BinaryOpSymbol(state) {
5068
5141
  if (state.events) {
5069
5142
  const result = state.events.enter?.("BinaryOpSymbol", state);
@@ -5071,12 +5144,12 @@ ${input.slice(result.pos)}
5071
5144
  return result.cache;
5072
5145
  }
5073
5146
  if (state.tokenize) {
5074
- 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));
5147
+ 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));
5075
5148
  if (state.events)
5076
5149
  state.events.exit?.("BinaryOpSymbol", state, result);
5077
5150
  return result;
5078
5151
  } else {
5079
- 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);
5152
+ 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);
5080
5153
  if (state.events)
5081
5154
  state.events.exit?.("BinaryOpSymbol", state, result);
5082
5155
  return result;
@@ -5871,11 +5944,13 @@ ${input.slice(result.pos)}
5871
5944
  } else if (kind.token === "in") {
5872
5945
  const counterRef = {
5873
5946
  type: "Ref",
5874
- base: "i"
5947
+ base: "i",
5948
+ id: "i"
5875
5949
  };
5876
5950
  const lenRef = {
5877
5951
  type: "Ref",
5878
- base: "len"
5952
+ base: "len",
5953
+ id: "len"
5879
5954
  };
5880
5955
  let expRef;
5881
5956
  switch (exp.type) {
@@ -5893,7 +5968,8 @@ ${input.slice(result.pos)}
5893
5968
  } else {
5894
5969
  stepRef = {
5895
5970
  type: "Ref",
5896
- base: "step"
5971
+ base: "step",
5972
+ id: "step"
5897
5973
  };
5898
5974
  }
5899
5975
  }
@@ -5905,7 +5981,8 @@ ${input.slice(result.pos)}
5905
5981
  } else {
5906
5982
  startRef = {
5907
5983
  type: "Ref",
5908
- base: "ref"
5984
+ base: "ref",
5985
+ id: "ref"
5909
5986
  };
5910
5987
  }
5911
5988
  if (end.type === "Literal") {
@@ -5915,7 +5992,8 @@ ${input.slice(result.pos)}
5915
5992
  } else {
5916
5993
  endRef = {
5917
5994
  type: "Ref",
5918
- base: "ref"
5995
+ base: "ref",
5996
+ id: "ref"
5919
5997
  };
5920
5998
  }
5921
5999
  const startRefDec = startRef !== start ? [startRef, " = ", start, ", "] : [];
@@ -5933,45 +6011,65 @@ ${input.slice(result.pos)}
5933
6011
  names: varRef2.names
5934
6012
  }]);
5935
6013
  const counterPart = inclusive ? [counterRef, " <= ", endRef, " : ", counterRef, " >= ", endRef] : [counterRef, " < ", endRef, " : ", counterRef, " > ", endRef];
5936
- const condition = stepRef ? [stepRef, " !== 0 && (", stepRef, " > 0 ? ", ...counterPart, ")"] : ["asc ? ", ...counterPart];
5937
- const increment = stepRef ? [varRef2, " = ", counterRef, " += ", stepRef] : [varRef2, " = asc ? ++", counterRef, " : --", counterRef];
6014
+ const condition2 = stepRef ? [stepRef, " !== 0 && (", stepRef, " > 0 ? ", ...counterPart, ")"] : ["asc ? ", ...counterPart];
6015
+ const increment2 = stepRef ? [varRef2, " = ", counterRef, " += ", stepRef] : [varRef2, " = asc ? ++", counterRef, " : --", counterRef];
5938
6016
  return {
5939
6017
  declaration,
5940
- children: [$1, open, declaration, "; ", ...condition, "; ", ...increment, close],
6018
+ children: [$1, open, declaration, "; ", ...condition2, "; ", ...increment2, close],
5941
6019
  blockPrefix
5942
6020
  };
5943
6021
  }
5944
6022
  default:
5945
6023
  expRef = {
5946
6024
  type: "Ref",
5947
- base: "ref"
6025
+ base: "ref",
6026
+ id: "ref"
5948
6027
  };
5949
6028
  }
5950
- if (step) {
5951
- throw new Error("by clause not yet implement in non-range for in loops");
5952
- }
5953
6029
  const varRef = declaration;
5954
- const expRefDec = expRef !== exp ? [expRef, " = ", module2.insertTrimmingSpace(exp, ""), ", "] : [];
5955
- declaration = {
5956
- type: "Declaration",
5957
- children: ["let ", ...expRefDec, counterRef, " = 0, ", lenRef, " = ", expRef, ".length"],
5958
- names: []
5959
- };
5960
- let indexAssignment;
5961
- let assignmentNames = [...varRef.names];
6030
+ let increment = "++", indexAssignment, assignmentNames = [...varRef.names];
5962
6031
  if (index) {
5963
6032
  index = module2.insertTrimmingSpace(index, "");
5964
6033
  indexAssignment = [index, "="];
5965
6034
  assignmentNames.push(...index.names);
5966
6035
  }
6036
+ const expRefDec = expRef !== exp ? [expRef, " = ", module2.insertTrimmingSpace(exp, ""), ", "] : [];
5967
6037
  blockPrefix.push([indent, {
5968
6038
  type: "AssignmentExpression",
5969
6039
  children: [varRef, " = ", expRef, "[", indexAssignment, counterRef, "]\n"],
5970
6040
  names: assignmentNames
5971
6041
  }]);
6042
+ declaration = {
6043
+ type: "Declaration",
6044
+ children: ["let ", ...expRefDec, counterRef, " = 0, ", lenRef, " = ", expRef, ".length"],
6045
+ names: []
6046
+ };
6047
+ let condition = [counterRef, " < ", lenRef, "; "];
6048
+ if (step) {
6049
+ let [stepWs, , stepExp] = step;
6050
+ stepWs = module2.insertTrimmingSpace(stepWs, "");
6051
+ if (stepExp.type === "Literal") {
6052
+ increment = [" +=", ...stepWs, stepExp];
6053
+ if (stepExp.raw[0] === "-") {
6054
+ declaration = {
6055
+ type: "Declaration",
6056
+ children: ["let ", ...expRefDec, counterRef, " = ", expRef, ".length - 1"],
6057
+ names: []
6058
+ };
6059
+ condition = [counterRef, " >= 0; "];
6060
+ }
6061
+ } else {
6062
+ throw new Error("TODO: Support non-literal step in CoffeeScript for loops");
6063
+ }
6064
+ return {
6065
+ declaration,
6066
+ children: [$1, open, declaration, "; ", ...condition, counterRef, increment, close],
6067
+ blockPrefix
6068
+ };
6069
+ }
5972
6070
  return {
5973
6071
  declaration,
5974
- children: [$1, open, declaration, "; ", counterRef, " < ", lenRef, "; ", counterRef, "++", close],
6072
+ children: [$1, open, declaration, "; ", ...condition, counterRef, increment, close],
5975
6073
  blockPrefix
5976
6074
  };
5977
6075
  }
@@ -6066,14 +6164,14 @@ ${input.slice(result.pos)}
6066
6164
  children: $0
6067
6165
  };
6068
6166
  });
6069
- var ForStatementParameters$2 = $TS($S($E($S(Await, __)), OpenParen, __, ForInOfDeclaration, __, $C(In, Of), ExtendedExpression, __, CloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
6167
+ var ForStatementParameters$2 = $TS($S($E($S(Await, __)), OpenParen, __, ForInOfDeclaration, __, $C(In, Of), ExpressionWithIndentedApplicationSuppressed, __, CloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
6070
6168
  var declaration = $4;
6071
6169
  return {
6072
6170
  declaration,
6073
6171
  children: $0
6074
6172
  };
6075
6173
  });
6076
- var ForStatementParameters$3 = $TS($S($E($S(Await, __)), InsertOpenParen, ForInOfDeclaration, __, $C(In, Of), ExtendedExpression, InsertCloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7) {
6174
+ var ForStatementParameters$3 = $TS($S($E($S(Await, __)), InsertOpenParen, ForInOfDeclaration, __, $C(In, Of), ExpressionWithIndentedApplicationSuppressed, InsertCloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7) {
6077
6175
  var declaration = $3;
6078
6176
  return {
6079
6177
  declaration,
@@ -6418,7 +6516,7 @@ ${input.slice(result.pos)}
6418
6516
  return result;
6419
6517
  }
6420
6518
  }
6421
- var CaseExpressionList$0 = $TS($S($S($Q(_), ExtendedExpression, ImpliedColon), $Q($S(__, Comma, ExtendedExpression, ImpliedColon))), function($skip, $loc, $0, $1, $2) {
6519
+ var CaseExpressionList$0 = $TS($S($S($Q(_), ExpressionWithIndentedApplicationSuppressed, ImpliedColon), $Q($S(__, Comma, ExpressionWithIndentedApplicationSuppressed, ImpliedColon))), function($skip, $loc, $0, $1, $2) {
6422
6520
  const result = $2.map(([ws, _comma, exp, col]) => {
6423
6521
  exp = module2.insertTrimmingSpace(exp, "");
6424
6522
  if (ws.length)
@@ -6446,7 +6544,7 @@ ${input.slice(result.pos)}
6446
6544
  return result;
6447
6545
  }
6448
6546
  }
6449
- var NoExpressions$0 = $T($EXPECT($L13, fail, 'NoExpressions ""'), function(value) {
6547
+ var NoExpressions$0 = $T($EXPECT($L0, fail, 'NoExpressions ""'), function(value) {
6450
6548
  return [];
6451
6549
  });
6452
6550
  function NoExpressions(state) {
@@ -6468,7 +6566,7 @@ ${input.slice(result.pos)}
6468
6566
  }
6469
6567
  }
6470
6568
  var ImpliedColon$0 = $S(__, Colon);
6471
- var ImpliedColon$1 = $TV($EXPECT($L13, fail, 'ImpliedColon ""'), function($skip, $loc, $0, $1) {
6569
+ var ImpliedColon$1 = $TV($EXPECT($L0, fail, 'ImpliedColon ""'), function($skip, $loc, $0, $1) {
6472
6570
  return { $loc, token: ":" };
6473
6571
  });
6474
6572
  function ImpliedColon(state) {
@@ -6604,7 +6702,7 @@ ${input.slice(result.pos)}
6604
6702
  var Condition$0 = $T($S(ParenthesizedExpression, $N($S($Q(TrailingComment), $C(BinaryOp, AssignmentOp, Dot, QuestionMark)))), function(value) {
6605
6703
  return value[0];
6606
6704
  });
6607
- var Condition$1 = $TS($S(InsertOpenParen, ExtendedExpression, InsertCloseParen), function($skip, $loc, $0, $1, $2, $3) {
6705
+ var Condition$1 = $TS($S(InsertOpenParen, ExpressionWithIndentedApplicationSuppressed, InsertCloseParen), function($skip, $loc, $0, $1, $2, $3) {
6608
6706
  var open = $1;
6609
6707
  var exp = $2;
6610
6708
  var close = $3;
@@ -6633,6 +6731,52 @@ ${input.slice(result.pos)}
6633
6731
  return result;
6634
6732
  }
6635
6733
  }
6734
+ var ExpressionWithIndentedApplicationSuppressed$0 = $TS($S(SuppressIndentedApplication, $E(ExtendedExpression)), function($skip, $loc, $0, $1, $2) {
6735
+ var exp = $2;
6736
+ module2.suppressIndentedApplication = false;
6737
+ if (exp)
6738
+ return exp;
6739
+ return $skip;
6740
+ });
6741
+ function ExpressionWithIndentedApplicationSuppressed(state) {
6742
+ if (state.events) {
6743
+ const result = state.events.enter?.("ExpressionWithIndentedApplicationSuppressed", state);
6744
+ if (result)
6745
+ return result.cache;
6746
+ }
6747
+ if (state.tokenize) {
6748
+ const result = $TOKEN("ExpressionWithIndentedApplicationSuppressed", state, ExpressionWithIndentedApplicationSuppressed$0(state));
6749
+ if (state.events)
6750
+ state.events.exit?.("ExpressionWithIndentedApplicationSuppressed", state, result);
6751
+ return result;
6752
+ } else {
6753
+ const result = ExpressionWithIndentedApplicationSuppressed$0(state);
6754
+ if (state.events)
6755
+ state.events.exit?.("ExpressionWithIndentedApplicationSuppressed", state, result);
6756
+ return result;
6757
+ }
6758
+ }
6759
+ var SuppressIndentedApplication$0 = $TV($EXPECT($L0, fail, 'SuppressIndentedApplication ""'), function($skip, $loc, $0, $1) {
6760
+ module2.suppressIndentedApplication = true;
6761
+ });
6762
+ function SuppressIndentedApplication(state) {
6763
+ if (state.events) {
6764
+ const result = state.events.enter?.("SuppressIndentedApplication", state);
6765
+ if (result)
6766
+ return result.cache;
6767
+ }
6768
+ if (state.tokenize) {
6769
+ const result = $TOKEN("SuppressIndentedApplication", state, SuppressIndentedApplication$0(state));
6770
+ if (state.events)
6771
+ state.events.exit?.("SuppressIndentedApplication", state, result);
6772
+ return result;
6773
+ } else {
6774
+ const result = SuppressIndentedApplication$0(state);
6775
+ if (state.events)
6776
+ state.events.exit?.("SuppressIndentedApplication", state, result);
6777
+ return result;
6778
+ }
6779
+ }
6636
6780
  var ExpressionStatement$0 = Expression;
6637
6781
  function ExpressionStatement(state) {
6638
6782
  if (state.events) {
@@ -6733,7 +6877,7 @@ ${input.slice(result.pos)}
6733
6877
  return result;
6734
6878
  }
6735
6879
  }
6736
- var MaybeNestedExpression$0 = $TS($S($N(EOS), AssignmentExpression), function($skip, $loc, $0, $1, $2) {
6880
+ var MaybeNestedExpression$0 = $TS($S($N(EOS), ExtendedExpression), function($skip, $loc, $0, $1, $2) {
6737
6881
  return $2;
6738
6882
  });
6739
6883
  var MaybeNestedExpression$1 = $T($S($Y(EOS), ObjectLiteral), function(value) {
@@ -6791,7 +6935,7 @@ ${input.slice(result.pos)}
6791
6935
  return result;
6792
6936
  }
6793
6937
  }
6794
- var ImpliedImport$0 = $TV($EXPECT($L13, fail, 'ImpliedImport ""'), function($skip, $loc, $0, $1) {
6938
+ var ImpliedImport$0 = $TV($EXPECT($L0, fail, 'ImpliedImport ""'), function($skip, $loc, $0, $1) {
6795
6939
  return { $loc, token: "import " };
6796
6940
  });
6797
6941
  function ImpliedImport(state) {
@@ -7059,7 +7203,7 @@ ${input.slice(result.pos)}
7059
7203
  }
7060
7204
  var ExportDeclaration$0 = $S(Export, __, $EXPECT($L84, fail, 'ExportDeclaration "default"'), NonIdContinue, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression));
7061
7205
  var ExportDeclaration$1 = $S(Export, __, ExportFromClause, __, FromClause);
7062
- var ExportDeclaration$2 = $S(Export, __, $C(NamedExports, VariableStatement, Declaration));
7206
+ var ExportDeclaration$2 = $S(Export, __, $C(Declaration, NamedExports, VariableStatement));
7063
7207
  function ExportDeclaration(state) {
7064
7208
  if (state.events) {
7065
7209
  const result = state.events.enter?.("ExportDeclaration", state);
@@ -7099,6 +7243,11 @@ ${input.slice(result.pos)}
7099
7243
  }
7100
7244
  }
7101
7245
  var NamedExports$0 = $S(OpenBrace, $Q(ExportSpecifier), $E($S(__, Comma)), __, CloseBrace);
7246
+ var NamedExports$1 = $TS($S(InsertInlineOpenBrace, ImplicitExportSpecifier, $Q($S(_, ImplicitExportSpecifier)), InsertCloseBrace), function($skip, $loc, $0, $1, $2, $3, $4) {
7247
+ var open = $1;
7248
+ var close = $4;
7249
+ return [open, $2, ...$3, close];
7250
+ });
7102
7251
  function NamedExports(state) {
7103
7252
  if (state.events) {
7104
7253
  const result = state.events.enter?.("NamedExports", state);
@@ -7106,12 +7255,12 @@ ${input.slice(result.pos)}
7106
7255
  return result.cache;
7107
7256
  }
7108
7257
  if (state.tokenize) {
7109
- const result = $TOKEN("NamedExports", state, NamedExports$0(state));
7258
+ const result = $TOKEN("NamedExports", state, NamedExports$0(state) || NamedExports$1(state));
7110
7259
  if (state.events)
7111
7260
  state.events.exit?.("NamedExports", state, result);
7112
7261
  return result;
7113
7262
  } else {
7114
- const result = NamedExports$0(state);
7263
+ const result = NamedExports$0(state) || NamedExports$1(state);
7115
7264
  if (state.events)
7116
7265
  state.events.exit?.("NamedExports", state, result);
7117
7266
  return result;
@@ -7136,6 +7285,25 @@ ${input.slice(result.pos)}
7136
7285
  return result;
7137
7286
  }
7138
7287
  }
7288
+ var ImplicitExportSpecifier$0 = $S($N($EXPECT($L84, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), ImplicitInlineObjectPropertyDelimiter);
7289
+ function ImplicitExportSpecifier(state) {
7290
+ if (state.events) {
7291
+ const result = state.events.enter?.("ImplicitExportSpecifier", state);
7292
+ if (result)
7293
+ return result.cache;
7294
+ }
7295
+ if (state.tokenize) {
7296
+ const result = $TOKEN("ImplicitExportSpecifier", state, ImplicitExportSpecifier$0(state));
7297
+ if (state.events)
7298
+ state.events.exit?.("ImplicitExportSpecifier", state, result);
7299
+ return result;
7300
+ } else {
7301
+ const result = ImplicitExportSpecifier$0(state);
7302
+ if (state.events)
7303
+ state.events.exit?.("ImplicitExportSpecifier", state, result);
7304
+ return result;
7305
+ }
7306
+ }
7139
7307
  var Declaration$0 = HoistableDeclaration;
7140
7308
  var Declaration$1 = ClassDeclaration;
7141
7309
  var Declaration$2 = LexicalDeclaration;
@@ -8152,7 +8320,8 @@ ${input.slice(result.pos)}
8152
8320
  var ReservedWord$0 = $S(CoffeeBooleansEnabled, $R$0($EXPECT($R30, fail, "ReservedWord /(?:on|off|yes|no)(?!\\p{ID_Continue})/")));
8153
8321
  var ReservedWord$1 = $S(CoffeeIsntEnabled, $R$0($EXPECT($R31, fail, "ReservedWord /(?:isnt)(?!\\p{ID_Continue})/")));
8154
8322
  var ReservedWord$2 = $S(CoffeeForLoopsEnabled, $R$0($EXPECT($R32, fail, "ReservedWord /(?:by)(?!\\p{ID_Continue})/")));
8155
- var ReservedWord$3 = $R$0($EXPECT($R33, fail, "ReservedWord /(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|null|or|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})/"));
8323
+ var ReservedWord$3 = $S(CoffeeOfEnabled, $R$0($EXPECT($R33, fail, "ReservedWord /(?:of)(?!\\p{ID_Continue})/")));
8324
+ var ReservedWord$4 = $R$0($EXPECT($R34, fail, "ReservedWord /(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|null|or|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})/"));
8156
8325
  function ReservedWord(state) {
8157
8326
  if (state.events) {
8158
8327
  const result = state.events.enter?.("ReservedWord", state);
@@ -8160,12 +8329,12 @@ ${input.slice(result.pos)}
8160
8329
  return result.cache;
8161
8330
  }
8162
8331
  if (state.tokenize) {
8163
- const result = $TOKEN("ReservedWord", state, ReservedWord$0(state) || ReservedWord$1(state) || ReservedWord$2(state) || ReservedWord$3(state));
8332
+ const result = $TOKEN("ReservedWord", state, ReservedWord$0(state) || ReservedWord$1(state) || ReservedWord$2(state) || ReservedWord$3(state) || ReservedWord$4(state));
8164
8333
  if (state.events)
8165
8334
  state.events.exit?.("ReservedWord", state, result);
8166
8335
  return result;
8167
8336
  } else {
8168
- const result = ReservedWord$0(state) || ReservedWord$1(state) || ReservedWord$2(state) || ReservedWord$3(state);
8337
+ const result = ReservedWord$0(state) || ReservedWord$1(state) || ReservedWord$2(state) || ReservedWord$3(state) || ReservedWord$4(state);
8169
8338
  if (state.events)
8170
8339
  state.events.exit?.("ReservedWord", state, result);
8171
8340
  return result;
@@ -8211,7 +8380,7 @@ ${input.slice(result.pos)}
8211
8380
  return result;
8212
8381
  }
8213
8382
  }
8214
- var JSSingleLineComment$0 = $TR($EXPECT($R34, fail, "JSSingleLineComment /\\/\\/(?!\\/)[^\\r\\n]*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
8383
+ var JSSingleLineComment$0 = $TR($EXPECT($R35, fail, "JSSingleLineComment /\\/\\/(?!\\/)[^\\r\\n]*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
8215
8384
  return { $loc, token: $0 };
8216
8385
  });
8217
8386
  function JSSingleLineComment(state) {
@@ -8252,7 +8421,7 @@ ${input.slice(result.pos)}
8252
8421
  return result;
8253
8422
  }
8254
8423
  }
8255
- var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L86, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L87, fail, 'JSMultiLineComment "*/"')), $EXPECT($R35, fail, "JSMultiLineComment /./"))), $EXPECT($L87, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
8424
+ var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L86, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L87, fail, 'JSMultiLineComment "*/"')), $EXPECT($R36, fail, "JSMultiLineComment /./"))), $EXPECT($L87, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
8256
8425
  return { $loc, token: $1 };
8257
8426
  });
8258
8427
  function JSMultiLineComment(state) {
@@ -8273,7 +8442,7 @@ ${input.slice(result.pos)}
8273
8442
  return result;
8274
8443
  }
8275
8444
  }
8276
- var CoffeeSingleLineComment$0 = $TR($EXPECT($R36, fail, "CoffeeSingleLineComment /#(?!##(?!#))([^\\r\\n]*)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
8445
+ var CoffeeSingleLineComment$0 = $TR($EXPECT($R37, fail, "CoffeeSingleLineComment /#(?!##(?!#))([^\\r\\n]*)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
8277
8446
  return { $loc, token: `//${$1}` };
8278
8447
  });
8279
8448
  function CoffeeSingleLineComment(state) {
@@ -8294,7 +8463,7 @@ ${input.slice(result.pos)}
8294
8463
  return result;
8295
8464
  }
8296
8465
  }
8297
- var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L87, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R35, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
8466
+ var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L87, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R36, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
8298
8467
  return { $loc, token: `/*${$2}*/` };
8299
8468
  });
8300
8469
  function CoffeeMultiLineComment(state) {
@@ -8315,7 +8484,7 @@ ${input.slice(result.pos)}
8315
8484
  return result;
8316
8485
  }
8317
8486
  }
8318
- var CoffeeHereCommentStart$0 = $R$0($EXPECT($R37, fail, "CoffeeHereCommentStart /###(?!#)/"));
8487
+ var CoffeeHereCommentStart$0 = $R$0($EXPECT($R38, fail, "CoffeeHereCommentStart /###(?!#)/"));
8319
8488
  function CoffeeHereCommentStart(state) {
8320
8489
  if (state.events) {
8321
8490
  const result = state.events.enter?.("CoffeeHereCommentStart", state);
@@ -8334,7 +8503,7 @@ ${input.slice(result.pos)}
8334
8503
  return result;
8335
8504
  }
8336
8505
  }
8337
- var InlineComment$0 = $TV($TEXT($S($EXPECT($L86, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L87, fail, 'InlineComment "*/"')), $EXPECT($R38, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L87, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
8506
+ var InlineComment$0 = $TV($TEXT($S($EXPECT($L86, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L87, fail, 'InlineComment "*/"')), $EXPECT($R39, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L87, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
8338
8507
  return { $loc, token: $1 };
8339
8508
  });
8340
8509
  function InlineComment(state) {
@@ -8414,7 +8583,7 @@ ${input.slice(result.pos)}
8414
8583
  return result;
8415
8584
  }
8416
8585
  }
8417
- var NonNewlineWhitespace$0 = $TR($EXPECT($R39, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
8586
+ var NonNewlineWhitespace$0 = $TR($EXPECT($R40, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
8418
8587
  return { $loc, token: $0 };
8419
8588
  });
8420
8589
  var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L88, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
@@ -8523,7 +8692,7 @@ ${input.slice(result.pos)}
8523
8692
  return result;
8524
8693
  }
8525
8694
  }
8526
- var NonIdContinue$0 = $R$0($EXPECT($R40, fail, "NonIdContinue /(?!\\p{ID_Continue})/"));
8695
+ var NonIdContinue$0 = $R$0($EXPECT($R41, fail, "NonIdContinue /(?!\\p{ID_Continue})/"));
8527
8696
  function NonIdContinue(state) {
8528
8697
  if (state.events) {
8529
8698
  const result = state.events.enter?.("NonIdContinue", state);
@@ -8542,7 +8711,7 @@ ${input.slice(result.pos)}
8542
8711
  return result;
8543
8712
  }
8544
8713
  }
8545
- var Loc$0 = $TV($EXPECT($L13, fail, 'Loc ""'), function($skip, $loc, $0, $1) {
8714
+ var Loc$0 = $TV($EXPECT($L0, fail, 'Loc ""'), function($skip, $loc, $0, $1) {
8546
8715
  return { $loc, token: "" };
8547
8716
  });
8548
8717
  function Loc(state) {
@@ -8962,7 +9131,7 @@ ${input.slice(result.pos)}
8962
9131
  return result;
8963
9132
  }
8964
9133
  }
8965
- var Dot$0 = $TV($EXPECT($L7, fail, 'Dot "."'), function($skip, $loc, $0, $1) {
9134
+ var Dot$0 = $TV($EXPECT($L8, fail, 'Dot "."'), function($skip, $loc, $0, $1) {
8966
9135
  return { $loc, token: $1 };
8967
9136
  });
8968
9137
  function Dot(state) {
@@ -9214,7 +9383,7 @@ ${input.slice(result.pos)}
9214
9383
  return result;
9215
9384
  }
9216
9385
  }
9217
- var If$0 = $TV($TEXT($S($EXPECT($L112, fail, 'If "if"'), $E($EXPECT($L3, fail, 'If " "')))), function($skip, $loc, $0, $1) {
9386
+ var If$0 = $TV($TEXT($S($EXPECT($L112, fail, 'If "if"'), $E($EXPECT($L4, fail, 'If " "')))), function($skip, $loc, $0, $1) {
9218
9387
  return { $loc, token: $1 };
9219
9388
  });
9220
9389
  function If(state) {
@@ -9235,7 +9404,7 @@ ${input.slice(result.pos)}
9235
9404
  return result;
9236
9405
  }
9237
9406
  }
9238
- var Import$0 = $TS($S($EXPECT($L9, fail, 'Import "import"'), $Y($EXPECT($R41, fail, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
9407
+ var Import$0 = $TS($S($EXPECT($L10, fail, 'Import "import"'), $Y($EXPECT($R42, fail, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
9239
9408
  return { $loc, token: $1 };
9240
9409
  });
9241
9410
  function Import(state) {
@@ -9277,7 +9446,7 @@ ${input.slice(result.pos)}
9277
9446
  return result;
9278
9447
  }
9279
9448
  }
9280
- var LetOrConst$0 = $TV($C($EXPECT($L113, fail, 'LetOrConst "let"'), $EXPECT($L114, fail, 'LetOrConst "const"')), function($skip, $loc, $0, $1) {
9449
+ var LetOrConst$0 = $TS($S($C($EXPECT($L113, fail, 'LetOrConst "let"'), $EXPECT($L114, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9281
9450
  return { $loc, token: $1 };
9282
9451
  });
9283
9452
  function LetOrConst(state) {
@@ -9319,7 +9488,7 @@ ${input.slice(result.pos)}
9319
9488
  return result;
9320
9489
  }
9321
9490
  }
9322
- var New$0 = $TV($EXPECT($L116, fail, 'New "new"'), function($skip, $loc, $0, $1) {
9491
+ var New$0 = $TS($S($EXPECT($L116, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9323
9492
  return { $loc, token: $1 };
9324
9493
  });
9325
9494
  function New(state) {
@@ -9340,7 +9509,7 @@ ${input.slice(result.pos)}
9340
9509
  return result;
9341
9510
  }
9342
9511
  }
9343
- var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($L72, fail, 'Not "not"'), NonIdContinue, $E($EXPECT($L3, fail, 'Not " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
9512
+ var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($L72, fail, 'Not "not"'), NonIdContinue, $E($EXPECT($L4, fail, 'Not " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
9344
9513
  return { $loc, token: "!" };
9345
9514
  });
9346
9515
  function Not(state) {
@@ -9616,7 +9785,7 @@ ${input.slice(result.pos)}
9616
9785
  return result;
9617
9786
  }
9618
9787
  }
9619
- var Target$0 = $TV($EXPECT($L125, fail, 'Target "target"'), function($skip, $loc, $0, $1) {
9788
+ var Target$0 = $TS($S($EXPECT($L125, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9620
9789
  return { $loc, token: $1 };
9621
9790
  });
9622
9791
  function Target(state) {
@@ -9784,7 +9953,7 @@ ${input.slice(result.pos)}
9784
9953
  return result;
9785
9954
  }
9786
9955
  }
9787
- var Try$0 = $TV($EXPECT($L133, fail, 'Try "try"'), function($skip, $loc, $0, $1) {
9956
+ var Try$0 = $TS($S($EXPECT($L133, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9788
9957
  return { $loc, token: $1 };
9789
9958
  });
9790
9959
  function Try(state) {
@@ -9826,7 +9995,7 @@ ${input.slice(result.pos)}
9826
9995
  return result;
9827
9996
  }
9828
9997
  }
9829
- var Unless$0 = $TV($EXPECT($L135, fail, 'Unless "unless"'), function($skip, $loc, $0, $1) {
9998
+ var Unless$0 = $TS($S($EXPECT($L135, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9830
9999
  return { $loc, token: $1 };
9831
10000
  });
9832
10001
  function Unless(state) {
@@ -9868,7 +10037,7 @@ ${input.slice(result.pos)}
9868
10037
  return result;
9869
10038
  }
9870
10039
  }
9871
- var Var$0 = $TV($EXPECT($L137, fail, 'Var "var"'), function($skip, $loc, $0, $1) {
10040
+ var Var$0 = $TS($S($EXPECT($L137, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9872
10041
  return { $loc, token: $1 };
9873
10042
  });
9874
10043
  function Var(state) {
@@ -9998,7 +10167,7 @@ ${input.slice(result.pos)}
9998
10167
  return result;
9999
10168
  }
10000
10169
  }
10001
- var JSXSelfClosingElement$0 = $S($EXPECT($L4, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($L142, fail, 'JSXSelfClosingElement "/>"'));
10170
+ var JSXSelfClosingElement$0 = $S($EXPECT($L5, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($L142, fail, 'JSXSelfClosingElement "/>"'));
10002
10171
  function JSXSelfClosingElement(state) {
10003
10172
  if (state.events) {
10004
10173
  const result = state.events.enter?.("JSXSelfClosingElement", state);
@@ -10017,7 +10186,7 @@ ${input.slice(result.pos)}
10017
10186
  return result;
10018
10187
  }
10019
10188
  }
10020
- var JSXOpeningElement$0 = $S($EXPECT($L4, fail, 'JSXOpeningElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($L25, fail, 'JSXOpeningElement ">"'));
10189
+ var JSXOpeningElement$0 = $S($EXPECT($L5, fail, 'JSXOpeningElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($L25, fail, 'JSXOpeningElement ">"'));
10021
10190
  function JSXOpeningElement(state) {
10022
10191
  if (state.events) {
10023
10192
  const result = state.events.enter?.("JSXOpeningElement", state);
@@ -10093,7 +10262,7 @@ ${input.slice(result.pos)}
10093
10262
  return result;
10094
10263
  }
10095
10264
  }
10096
- var JSXIdentifierName$0 = $R$0($EXPECT($R42, fail, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
10265
+ var JSXIdentifierName$0 = $R$0($EXPECT($R43, fail, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
10097
10266
  function JSXIdentifierName(state) {
10098
10267
  if (state.events) {
10099
10268
  const result = state.events.enter?.("JSXIdentifierName", state);
@@ -10189,8 +10358,8 @@ ${input.slice(result.pos)}
10189
10358
  return result;
10190
10359
  }
10191
10360
  }
10192
- var JSXAttributeValue$0 = $R$0($EXPECT($R43, fail, 'JSXAttributeValue /"[^"]*"/'));
10193
- var JSXAttributeValue$1 = $R$0($EXPECT($R44, fail, "JSXAttributeValue /'[^']*'/"));
10361
+ var JSXAttributeValue$0 = $R$0($EXPECT($R44, fail, 'JSXAttributeValue /"[^"]*"/'));
10362
+ var JSXAttributeValue$1 = $R$0($EXPECT($R45, fail, "JSXAttributeValue /'[^']*'/"));
10194
10363
  var JSXAttributeValue$2 = $S(OpenBrace, ExtendedExpression, __, CloseBrace);
10195
10364
  var JSXAttributeValue$3 = JSXElement;
10196
10365
  var JSXAttributeValue$4 = JSXFragment;
@@ -10253,7 +10422,7 @@ ${input.slice(result.pos)}
10253
10422
  return result;
10254
10423
  }
10255
10424
  }
10256
- var JSXText$0 = $R$0($EXPECT($R45, fail, "JSXText /[^{}<>]+/"));
10425
+ var JSXText$0 = $R$0($EXPECT($R46, fail, "JSXText /[^{}<>]+/"));
10257
10426
  function JSXText(state) {
10258
10427
  if (state.events) {
10259
10428
  const result = state.events.enter?.("JSXText", state);
@@ -10581,7 +10750,7 @@ ${input.slice(result.pos)}
10581
10750
  return result;
10582
10751
  }
10583
10752
  }
10584
- var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R46, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L150, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R47, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
10753
+ 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)));
10585
10754
  function TypeIndexSignature(state) {
10586
10755
  if (state.events) {
10587
10756
  const result = state.events.enter?.("TypeIndexSignature", state);
@@ -10922,7 +11091,7 @@ ${input.slice(result.pos)}
10922
11091
  return result;
10923
11092
  }
10924
11093
  }
10925
- var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L5, fail, 'TypeConditional "extends"'), Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
11094
+ var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L6, fail, 'TypeConditional "extends"'), Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
10926
11095
  if ($2)
10927
11096
  return $0;
10928
11097
  return $1;
@@ -10994,7 +11163,7 @@ ${input.slice(result.pos)}
10994
11163
  return result;
10995
11164
  }
10996
11165
  }
10997
- var FunctionType$0 = $S(Parameters, __, $EXPECT($L2, fail, 'FunctionType "=>"'), Type);
11166
+ var FunctionType$0 = $S(Parameters, __, $EXPECT($L3, fail, 'FunctionType "=>"'), Type);
10998
11167
  function FunctionType(state) {
10999
11168
  if (state.events) {
11000
11169
  const result = state.events.enter?.("FunctionType", state);
@@ -11013,7 +11182,7 @@ ${input.slice(result.pos)}
11013
11182
  return result;
11014
11183
  }
11015
11184
  }
11016
- var TypeArguments$0 = $S(__, $EXPECT($L4, fail, 'TypeArguments "<"'), __, Type, $Q($S(__, Comma, __, Type)), $E($S(__, Comma)), __, $EXPECT($L25, fail, 'TypeArguments ">"'));
11185
+ var TypeArguments$0 = $S(__, $EXPECT($L5, fail, 'TypeArguments "<"'), __, Type, $Q($S(__, Comma, __, Type)), $E($S(__, Comma)), __, $EXPECT($L25, fail, 'TypeArguments ">"'));
11017
11186
  function TypeArguments(state) {
11018
11187
  if (state.events) {
11019
11188
  const result = state.events.enter?.("TypeArguments", state);
@@ -11032,7 +11201,7 @@ ${input.slice(result.pos)}
11032
11201
  return result;
11033
11202
  }
11034
11203
  }
11035
- var TypeParameters$0 = $TS($S(__, $EXPECT($L4, fail, 'TypeParameters "<"'), __, Type, $Q($S(__, Comma, __, Type)), $E($S(__, Comma)), __, $EXPECT($L25, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
11204
+ var TypeParameters$0 = $TS($S(__, $EXPECT($L5, fail, 'TypeParameters "<"'), __, Type, $Q($S(__, Comma, __, Type)), $E($S(__, Comma)), __, $EXPECT($L25, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
11036
11205
  return { ts: true, children: $0 };
11037
11206
  });
11038
11207
  function TypeParameters(state) {
@@ -11072,7 +11241,7 @@ ${input.slice(result.pos)}
11072
11241
  return result;
11073
11242
  }
11074
11243
  }
11075
- var TypeConstraint$0 = $S(__, $EXPECT($L5, fail, 'TypeConstraint "extends"'), Type);
11244
+ var TypeConstraint$0 = $S(__, $EXPECT($L6, fail, 'TypeConstraint "extends"'), Type);
11076
11245
  function TypeConstraint(state) {
11077
11246
  if (state.events) {
11078
11247
  const result = state.events.enter?.("TypeConstraint", state);
@@ -11117,7 +11286,7 @@ ${input.slice(result.pos)}
11117
11286
  return result;
11118
11287
  }
11119
11288
  }
11120
- var Shebang$0 = $S($R$0($EXPECT($R48, fail, "Shebang /#![^\\r\\n]*/")), EOL);
11289
+ var Shebang$0 = $S($R$0($EXPECT($R49, fail, "Shebang /#![^\\r\\n]*/")), EOL);
11121
11290
  function Shebang(state) {
11122
11291
  if (state.events) {
11123
11292
  const result = state.events.enter?.("Shebang", state);
@@ -11136,11 +11305,11 @@ ${input.slice(result.pos)}
11136
11305
  return result;
11137
11306
  }
11138
11307
  }
11139
- var CivetPrologue$0 = $T($S($EXPECT($R49, fail, "CivetPrologue /[\\t ]*/"), DoubleQuote, CivetPrologueContent, DoubleQuote, $TEXT(StatementDelimiter), EOS), function(value) {
11308
+ var CivetPrologue$0 = $T($S($EXPECT($R50, fail, "CivetPrologue /[\\t ]*/"), DoubleQuote, CivetPrologueContent, DoubleQuote, $TEXT(StatementDelimiter), EOS), function(value) {
11140
11309
  var content = value[2];
11141
11310
  return content;
11142
11311
  });
11143
- var CivetPrologue$1 = $T($S($EXPECT($R49, fail, "CivetPrologue /[\\t ]*/"), SingleQuote, CivetPrologueContent, SingleQuote, $TEXT(StatementDelimiter), EOS), function(value) {
11312
+ var CivetPrologue$1 = $T($S($EXPECT($R50, fail, "CivetPrologue /[\\t ]*/"), SingleQuote, CivetPrologueContent, SingleQuote, $TEXT(StatementDelimiter), EOS), function(value) {
11144
11313
  var content = value[2];
11145
11314
  return content;
11146
11315
  });
@@ -11162,7 +11331,7 @@ ${input.slice(result.pos)}
11162
11331
  return result;
11163
11332
  }
11164
11333
  }
11165
- var CivetPrologueContent$0 = $TS($S($EXPECT($L155, fail, 'CivetPrologueContent "civet"'), $Q(CivetOption), $EXPECT($R50, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3) {
11334
+ var CivetPrologueContent$0 = $TS($S($EXPECT($L155, fail, 'CivetPrologueContent "civet"'), $Q(CivetOption), $EXPECT($R51, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3) {
11166
11335
  var options = $2;
11167
11336
  return {
11168
11337
  type: "CivetPrologue",
@@ -11188,7 +11357,7 @@ ${input.slice(result.pos)}
11188
11357
  return result;
11189
11358
  }
11190
11359
  }
11191
- var CivetOption$0 = $TR($EXPECT($R51, fail, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
11360
+ 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) {
11192
11361
  const optionName = $2.replace(/-+([a-z]?)/g, (_2, l) => {
11193
11362
  if (l)
11194
11363
  return l.toUpperCase();
@@ -11215,7 +11384,7 @@ ${input.slice(result.pos)}
11215
11384
  return result;
11216
11385
  }
11217
11386
  }
11218
- var UnknownPrologue$0 = $S($R$0($EXPECT($R49, fail, "UnknownPrologue /[\\t ]*/")), BasicStringLiteral, $TEXT(StatementDelimiter), EOS);
11387
+ var UnknownPrologue$0 = $S($R$0($EXPECT($R50, fail, "UnknownPrologue /[\\t ]*/")), BasicStringLiteral, $TEXT(StatementDelimiter), EOS);
11219
11388
  function UnknownPrologue(state) {
11220
11389
  if (state.events) {
11221
11390
  const result = state.events.enter?.("UnknownPrologue", state);
@@ -11273,7 +11442,7 @@ ${input.slice(result.pos)}
11273
11442
  return result;
11274
11443
  }
11275
11444
  }
11276
- var EOL$0 = $TR($EXPECT($R52, fail, "EOL /\\r\\n|\\n|\\r|$/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
11445
+ var EOL$0 = $TR($EXPECT($R53, fail, "EOL /\\r\\n|\\n|\\r|$/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
11277
11446
  return { $loc, token: $0 };
11278
11447
  });
11279
11448
  function EOL(state) {
@@ -11294,7 +11463,7 @@ ${input.slice(result.pos)}
11294
11463
  return result;
11295
11464
  }
11296
11465
  }
11297
- var Debugger$0 = $TV($EXPECT($L13, fail, 'Debugger ""'), function($skip, $loc, $0, $1) {
11466
+ var Debugger$0 = $TV($EXPECT($L0, fail, 'Debugger ""'), function($skip, $loc, $0, $1) {
11298
11467
  debugger;
11299
11468
  });
11300
11469
  function Debugger(state) {
@@ -11315,7 +11484,7 @@ ${input.slice(result.pos)}
11315
11484
  return result;
11316
11485
  }
11317
11486
  }
11318
- var InsertOpenParen$0 = $TV($EXPECT($L13, fail, 'InsertOpenParen ""'), function($skip, $loc, $0, $1) {
11487
+ var InsertOpenParen$0 = $TV($EXPECT($L0, fail, 'InsertOpenParen ""'), function($skip, $loc, $0, $1) {
11319
11488
  return { $loc, token: "(" };
11320
11489
  });
11321
11490
  function InsertOpenParen(state) {
@@ -11336,7 +11505,7 @@ ${input.slice(result.pos)}
11336
11505
  return result;
11337
11506
  }
11338
11507
  }
11339
- var InsertCloseParen$0 = $TV($EXPECT($L13, fail, 'InsertCloseParen ""'), function($skip, $loc, $0, $1) {
11508
+ var InsertCloseParen$0 = $TV($EXPECT($L0, fail, 'InsertCloseParen ""'), function($skip, $loc, $0, $1) {
11340
11509
  return { $loc, token: ")" };
11341
11510
  });
11342
11511
  function InsertCloseParen(state) {
@@ -11357,7 +11526,7 @@ ${input.slice(result.pos)}
11357
11526
  return result;
11358
11527
  }
11359
11528
  }
11360
- var InsertOpenBrace$0 = $TV($EXPECT($L13, fail, 'InsertOpenBrace ""'), function($skip, $loc, $0, $1) {
11529
+ var InsertOpenBrace$0 = $TV($EXPECT($L0, fail, 'InsertOpenBrace ""'), function($skip, $loc, $0, $1) {
11361
11530
  return [{ $loc, token: " " }, { $loc, token: "{" }];
11362
11531
  });
11363
11532
  function InsertOpenBrace(state) {
@@ -11378,7 +11547,28 @@ ${input.slice(result.pos)}
11378
11547
  return result;
11379
11548
  }
11380
11549
  }
11381
- var InsertCloseBrace$0 = $TV($EXPECT($L13, fail, 'InsertCloseBrace ""'), function($skip, $loc, $0, $1) {
11550
+ var InsertInlineOpenBrace$0 = $TV($EXPECT($L0, fail, 'InsertInlineOpenBrace ""'), function($skip, $loc, $0, $1) {
11551
+ return [{ $loc, token: "{" }];
11552
+ });
11553
+ function InsertInlineOpenBrace(state) {
11554
+ if (state.events) {
11555
+ const result = state.events.enter?.("InsertInlineOpenBrace", state);
11556
+ if (result)
11557
+ return result.cache;
11558
+ }
11559
+ if (state.tokenize) {
11560
+ const result = $TOKEN("InsertInlineOpenBrace", state, InsertInlineOpenBrace$0(state));
11561
+ if (state.events)
11562
+ state.events.exit?.("InsertInlineOpenBrace", state, result);
11563
+ return result;
11564
+ } else {
11565
+ const result = InsertInlineOpenBrace$0(state);
11566
+ if (state.events)
11567
+ state.events.exit?.("InsertInlineOpenBrace", state, result);
11568
+ return result;
11569
+ }
11570
+ }
11571
+ var InsertCloseBrace$0 = $TV($EXPECT($L0, fail, 'InsertCloseBrace ""'), function($skip, $loc, $0, $1) {
11382
11572
  return { $loc, token: "}" };
11383
11573
  });
11384
11574
  function InsertCloseBrace(state) {
@@ -11399,7 +11589,7 @@ ${input.slice(result.pos)}
11399
11589
  return result;
11400
11590
  }
11401
11591
  }
11402
- var InsertConst$0 = $TV($EXPECT($L13, fail, 'InsertConst ""'), function($skip, $loc, $0, $1) {
11592
+ var InsertConst$0 = $TV($EXPECT($L0, fail, 'InsertConst ""'), function($skip, $loc, $0, $1) {
11403
11593
  return { $loc, token: "const " };
11404
11594
  });
11405
11595
  function InsertConst(state) {
@@ -11420,7 +11610,7 @@ ${input.slice(result.pos)}
11420
11610
  return result;
11421
11611
  }
11422
11612
  }
11423
- var InsertReadonly$0 = $TV($EXPECT($L13, fail, 'InsertReadonly ""'), function($skip, $loc, $0, $1) {
11613
+ var InsertReadonly$0 = $TV($EXPECT($L0, fail, 'InsertReadonly ""'), function($skip, $loc, $0, $1) {
11424
11614
  return { ts: true, children: [{ $loc, token: "readonly " }] };
11425
11615
  });
11426
11616
  function InsertReadonly(state) {
@@ -11441,7 +11631,7 @@ ${input.slice(result.pos)}
11441
11631
  return result;
11442
11632
  }
11443
11633
  }
11444
- var InsertNewline$0 = $TV($EXPECT($L13, fail, 'InsertNewline ""'), function($skip, $loc, $0, $1) {
11634
+ var InsertNewline$0 = $TV($EXPECT($L0, fail, 'InsertNewline ""'), function($skip, $loc, $0, $1) {
11445
11635
  return "\n";
11446
11636
  });
11447
11637
  function InsertNewline(state) {
@@ -11462,7 +11652,7 @@ ${input.slice(result.pos)}
11462
11652
  return result;
11463
11653
  }
11464
11654
  }
11465
- var InsertIndent$0 = $TV($EXPECT($L13, fail, 'InsertIndent ""'), function($skip, $loc, $0, $1) {
11655
+ var InsertIndent$0 = $TV($EXPECT($L0, fail, 'InsertIndent ""'), function($skip, $loc, $0, $1) {
11466
11656
  return module2.currentIndent.token;
11467
11657
  });
11468
11658
  function InsertIndent(state) {
@@ -11483,7 +11673,7 @@ ${input.slice(result.pos)}
11483
11673
  return result;
11484
11674
  }
11485
11675
  }
11486
- var InsertSpace$0 = $TV($EXPECT($L13, fail, 'InsertSpace ""'), function($skip, $loc, $0, $1) {
11676
+ var InsertSpace$0 = $TV($EXPECT($L0, fail, 'InsertSpace ""'), function($skip, $loc, $0, $1) {
11487
11677
  return { $loc, token: " " };
11488
11678
  });
11489
11679
  function InsertSpace(state) {
@@ -11504,7 +11694,7 @@ ${input.slice(result.pos)}
11504
11694
  return result;
11505
11695
  }
11506
11696
  }
11507
- var InsertDot$0 = $TV($EXPECT($L13, fail, 'InsertDot ""'), function($skip, $loc, $0, $1) {
11697
+ var InsertDot$0 = $TV($EXPECT($L0, fail, 'InsertDot ""'), function($skip, $loc, $0, $1) {
11508
11698
  return { $loc, token: "." };
11509
11699
  });
11510
11700
  function InsertDot(state) {
@@ -11525,7 +11715,7 @@ ${input.slice(result.pos)}
11525
11715
  return result;
11526
11716
  }
11527
11717
  }
11528
- var InsertBreak$0 = $TV($EXPECT($L13, fail, 'InsertBreak ""'), function($skip, $loc, $0, $1) {
11718
+ var InsertBreak$0 = $TV($EXPECT($L0, fail, 'InsertBreak ""'), function($skip, $loc, $0, $1) {
11529
11719
  return { $loc, token: ";break;" };
11530
11720
  });
11531
11721
  function InsertBreak(state) {
@@ -11546,7 +11736,7 @@ ${input.slice(result.pos)}
11546
11736
  return result;
11547
11737
  }
11548
11738
  }
11549
- var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($L13, fail, 'CoffeeBinaryExistentialEnabled ""'), function($skip, $loc, $0, $1) {
11739
+ var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeBinaryExistentialEnabled ""'), function($skip, $loc, $0, $1) {
11550
11740
  if (module2.config.coffeeBinaryExistential)
11551
11741
  return;
11552
11742
  return $skip;
@@ -11569,7 +11759,7 @@ ${input.slice(result.pos)}
11569
11759
  return result;
11570
11760
  }
11571
11761
  }
11572
- var CoffeeBooleansEnabled$0 = $TV($EXPECT($L13, fail, 'CoffeeBooleansEnabled ""'), function($skip, $loc, $0, $1) {
11762
+ var CoffeeBooleansEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeBooleansEnabled ""'), function($skip, $loc, $0, $1) {
11573
11763
  if (module2.config.coffeeBooleans)
11574
11764
  return;
11575
11765
  return $skip;
@@ -11592,7 +11782,7 @@ ${input.slice(result.pos)}
11592
11782
  return result;
11593
11783
  }
11594
11784
  }
11595
- var CoffeeClassesEnabled$0 = $TV($EXPECT($L13, fail, 'CoffeeClassesEnabled ""'), function($skip, $loc, $0, $1) {
11785
+ var CoffeeClassesEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeClassesEnabled ""'), function($skip, $loc, $0, $1) {
11596
11786
  if (module2.config.coffeeClasses)
11597
11787
  return;
11598
11788
  return $skip;
@@ -11615,7 +11805,7 @@ ${input.slice(result.pos)}
11615
11805
  return result;
11616
11806
  }
11617
11807
  }
11618
- var CoffeeCommentEnabled$0 = $TV($EXPECT($L13, fail, 'CoffeeCommentEnabled ""'), function($skip, $loc, $0, $1) {
11808
+ var CoffeeCommentEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeCommentEnabled ""'), function($skip, $loc, $0, $1) {
11619
11809
  if (module2.config.coffeeComment)
11620
11810
  return;
11621
11811
  return $skip;
@@ -11638,7 +11828,7 @@ ${input.slice(result.pos)}
11638
11828
  return result;
11639
11829
  }
11640
11830
  }
11641
- var CoffeeDoEnabled$0 = $TV($EXPECT($L13, fail, 'CoffeeDoEnabled ""'), function($skip, $loc, $0, $1) {
11831
+ var CoffeeDoEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeDoEnabled ""'), function($skip, $loc, $0, $1) {
11642
11832
  if (module2.config.coffeeDo)
11643
11833
  return;
11644
11834
  return $skip;
@@ -11661,7 +11851,7 @@ ${input.slice(result.pos)}
11661
11851
  return result;
11662
11852
  }
11663
11853
  }
11664
- var CoffeeForLoopsEnabled$0 = $TV($EXPECT($L13, fail, 'CoffeeForLoopsEnabled ""'), function($skip, $loc, $0, $1) {
11854
+ var CoffeeForLoopsEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeForLoopsEnabled ""'), function($skip, $loc, $0, $1) {
11665
11855
  if (module2.config.coffeeForLoops)
11666
11856
  return;
11667
11857
  return $skip;
@@ -11684,7 +11874,7 @@ ${input.slice(result.pos)}
11684
11874
  return result;
11685
11875
  }
11686
11876
  }
11687
- var CoffeeInterpolationEnabled$0 = $TV($EXPECT($L13, fail, 'CoffeeInterpolationEnabled ""'), function($skip, $loc, $0, $1) {
11877
+ var CoffeeInterpolationEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeInterpolationEnabled ""'), function($skip, $loc, $0, $1) {
11688
11878
  if (module2.config.coffeeInterpolation)
11689
11879
  return;
11690
11880
  return $skip;
@@ -11707,7 +11897,7 @@ ${input.slice(result.pos)}
11707
11897
  return result;
11708
11898
  }
11709
11899
  }
11710
- var CoffeeIsntEnabled$0 = $TV($EXPECT($L13, fail, 'CoffeeIsntEnabled ""'), function($skip, $loc, $0, $1) {
11900
+ var CoffeeIsntEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeIsntEnabled ""'), function($skip, $loc, $0, $1) {
11711
11901
  if (module2.config.coffeeIsnt)
11712
11902
  return;
11713
11903
  return $skip;
@@ -11730,7 +11920,7 @@ ${input.slice(result.pos)}
11730
11920
  return result;
11731
11921
  }
11732
11922
  }
11733
- var CoffeeLineContinuationEnabled$0 = $TV($EXPECT($L13, fail, 'CoffeeLineContinuationEnabled ""'), function($skip, $loc, $0, $1) {
11923
+ var CoffeeLineContinuationEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeLineContinuationEnabled ""'), function($skip, $loc, $0, $1) {
11734
11924
  if (module2.config.coffeeLineContinuation)
11735
11925
  return;
11736
11926
  return $skip;
@@ -11753,7 +11943,7 @@ ${input.slice(result.pos)}
11753
11943
  return result;
11754
11944
  }
11755
11945
  }
11756
- var CoffeeNotEnabled$0 = $TV($EXPECT($L13, fail, 'CoffeeNotEnabled ""'), function($skip, $loc, $0, $1) {
11946
+ var CoffeeNotEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeNotEnabled ""'), function($skip, $loc, $0, $1) {
11757
11947
  if (module2.config.coffeeNot)
11758
11948
  return;
11759
11949
  return $skip;
@@ -11776,7 +11966,7 @@ ${input.slice(result.pos)}
11776
11966
  return result;
11777
11967
  }
11778
11968
  }
11779
- var CoffeeOfEnabled$0 = $TV($EXPECT($L13, fail, 'CoffeeOfEnabled ""'), function($skip, $loc, $0, $1) {
11969
+ var CoffeeOfEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeOfEnabled ""'), function($skip, $loc, $0, $1) {
11780
11970
  if (module2.config.coffeeOf)
11781
11971
  return;
11782
11972
  return $skip;
@@ -11799,7 +11989,7 @@ ${input.slice(result.pos)}
11799
11989
  return result;
11800
11990
  }
11801
11991
  }
11802
- var Reset$0 = $TV($EXPECT($L13, fail, 'Reset ""'), function($skip, $loc, $0, $1) {
11992
+ var Reset$0 = $TV($EXPECT($L0, fail, 'Reset ""'), function($skip, $loc, $0, $1) {
11803
11993
  module2.indentLevels = [{
11804
11994
  level: 0,
11805
11995
  token: ""
@@ -11842,7 +12032,8 @@ ${input.slice(result.pos)}
11842
12032
  return spliceRef;
11843
12033
  spliceRef = {
11844
12034
  type: "Ref",
11845
- base: "splice"
12035
+ base: "splice",
12036
+ id: "splice"
11846
12037
  };
11847
12038
  return spliceRef;
11848
12039
  };
@@ -11851,7 +12042,8 @@ ${input.slice(result.pos)}
11851
12042
  return indexOfRef;
11852
12043
  indexOfRef = {
11853
12044
  type: "Ref",
11854
- base: "indexOf"
12045
+ base: "indexOf",
12046
+ id: "indexOf"
11855
12047
  };
11856
12048
  const typeSuffix = {
11857
12049
  ts: true,
@@ -11865,7 +12057,8 @@ ${input.slice(result.pos)}
11865
12057
  return hasPropRef;
11866
12058
  hasPropRef = {
11867
12059
  type: "Ref",
11868
- base: "hasProp"
12060
+ base: "hasProp",
12061
+ id: "hasProp"
11869
12062
  };
11870
12063
  const typeSuffix = {
11871
12064
  ts: true,
@@ -11929,7 +12122,7 @@ ${input.slice(result.pos)}
11929
12122
  return result;
11930
12123
  }
11931
12124
  }
11932
- var Init$0 = $TS($S($E(Shebang), $Q(DirectivePrologue), $EXPECT($L13, fail, 'Init ""')), function($skip, $loc, $0, $1, $2, $3) {
12125
+ var Init$0 = $TS($S($E(Shebang), $Q(DirectivePrologue), $EXPECT($L0, fail, 'Init ""')), function($skip, $loc, $0, $1, $2, $3) {
11933
12126
  var directives = $2;
11934
12127
  directives.forEach((directive) => {
11935
12128
  if (directive.type === "CivetPrologue") {
@@ -11976,7 +12169,8 @@ ${input.slice(result.pos)}
11976
12169
  function expressionizeIteration(exp) {
11977
12170
  const resultsRef = {
11978
12171
  type: "Ref",
11979
- base: "results"
12172
+ base: "results",
12173
+ id: "results"
11980
12174
  };
11981
12175
  insertPush(exp.block, resultsRef);
11982
12176
  exp.children = ["(", resultsRef, "=>{", ...exp.children, "; return ", resultsRef, "})([])"];
@@ -11984,7 +12178,8 @@ ${input.slice(result.pos)}
11984
12178
  function wrapIterationReturningResults(statement, outerRef) {
11985
12179
  const resultsRef = {
11986
12180
  type: "Ref",
11987
- base: "results"
12181
+ base: "results",
12182
+ id: "results"
11988
12183
  };
11989
12184
  const declaration = {
11990
12185
  type: "Declaration",
@@ -12069,7 +12264,8 @@ ${input.slice(result.pos)}
12069
12264
  return;
12070
12265
  case "TryStatement":
12071
12266
  insertPush(exp.children[1], ref);
12072
- insertPush(exp.children[2][3], ref);
12267
+ if (exp.children[2])
12268
+ insertPush(exp.children[2][2], ref);
12073
12269
  return;
12074
12270
  }
12075
12271
  node.splice(1, 0, ref, ".push(");
@@ -12144,7 +12340,8 @@ ${input.slice(result.pos)}
12144
12340
  return;
12145
12341
  case "TryStatement":
12146
12342
  insertReturn(exp.children[1]);
12147
- insertReturn(exp.children[2][3]);
12343
+ if (exp.children[2])
12344
+ insertReturn(exp.children[2][3]);
12148
12345
  return;
12149
12346
  }
12150
12347
  node.splice(1, 0, "return ");
@@ -12171,7 +12368,7 @@ ${input.slice(result.pos)}
12171
12368
  wsOp = module2.insertTrimmingSpace(wsOp, "");
12172
12369
  wsB = module2.insertTrimmingSpace(wsB, "");
12173
12370
  children = [wsOp, op2.ref, ".call(", wsB, b, ", ", a, ")", op2.suffix];
12174
- } else if (op2.token === "instanceof") {
12371
+ } else if (op2.token === "instanceof" || op2.token === "in") {
12175
12372
  children = ["!(", a, wsOp, op2, wsB, b, ")"];
12176
12373
  } else {
12177
12374
  throw new Error("Unknown operator: " + JSON.stringify(op2));
@@ -12408,7 +12605,7 @@ ${input.slice(result.pos)}
12408
12605
  const atBinding = binding.children[0];
12409
12606
  atBinding.children.pop();
12410
12607
  atBinding.type = void 0;
12411
- binding.children.unshift(ref.base, ": this.", ref.base);
12608
+ binding.children.unshift(ref.id, ": this.", ref.base);
12412
12609
  binding.type = "Property";
12413
12610
  binding.ref = void 0;
12414
12611
  return;
@@ -12662,8 +12859,8 @@ ${input.slice(result.pos)}
12662
12859
  function insertRestSplices(s, p, thisAssignments2) {
12663
12860
  gatherRecursiveAll(s, (n) => n.blockPrefix || n.type === "AtBinding").forEach((n) => {
12664
12861
  if (n.type === "AtBinding") {
12665
- const { ref } = n, { base: name } = ref;
12666
- thisAssignments2.push([`this.${name} = `, ref]);
12862
+ const { ref } = n, { id } = ref;
12863
+ thisAssignments2.push([`this.${id} = `, ref]);
12667
12864
  return;
12668
12865
  }
12669
12866
  const { blockPrefix } = n;
@@ -12820,7 +13017,7 @@ ${input.slice(result.pos)}
12820
13017
  return result;
12821
13018
  }
12822
13019
  }
12823
- var PopIndent$0 = $TV($EXPECT($L13, fail, 'PopIndent ""'), function($skip, $loc, $0, $1) {
13020
+ var PopIndent$0 = $TV($EXPECT($L0, fail, 'PopIndent ""'), function($skip, $loc, $0, $1) {
12824
13021
  if (module2.verbose) {
12825
13022
  console.log("popping indent", module2.indentLevels[module2.indentLevels.length - 1], "->", module2.indentLevels[module2.indentLevels.length - 2]);
12826
13023
  }
@@ -13382,6 +13579,9 @@ makeCache = function() {
13382
13579
  case "NestedImplicitPropertyDefinitions":
13383
13580
  case "NestedBlockStatement":
13384
13581
  case "NestedInterfaceProperty":
13582
+ case "IndentedApplicationAllowed":
13583
+ case "ExpressionWithIndentedApplicationSuppressed":
13584
+ case "SuppressIndentedApplication":
13385
13585
  case "AssignmentExpressionTail":
13386
13586
  case "AssignmentExpression":
13387
13587
  case "ExtendedExpression":