@danielx/civet 0.5.58 → 0.5.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.js CHANGED
@@ -612,7 +612,9 @@ ${input.slice(result.pos)}
612
612
  MethodSignature,
613
613
  ClassElementName,
614
614
  PrivateIdentifier,
615
+ WAssignmentOp,
615
616
  AssignmentOp,
617
+ OperatorAssignmentOp,
616
618
  AssignmentOpSymbol,
617
619
  CoffeeWordAssignmentOp,
618
620
  BinaryOp,
@@ -994,34 +996,34 @@ ${input.slice(result.pos)}
994
996
  Nested
995
997
  });
996
998
  var $L0 = $L("/ ");
997
- var $L1 = $L("(");
998
- var $L2 = $L("?");
999
- var $L3 = $L(".");
1000
- var $L4 = $L("++");
1001
- var $L5 = $L("--");
1002
- var $L6 = $L("=>");
1003
- var $L7 = $L(" ");
1004
- var $L8 = $L("implements");
1005
- var $L9 = $L("<:");
1006
- var $L10 = $L("#");
1007
- var $L11 = $L("super");
1008
- var $L12 = $L("import");
1009
- var $L13 = $L("!");
1010
- var $L14 = $L("-");
1011
- var $L15 = $L("super[");
1012
- var $L16 = $L("import.meta");
1013
- var $L17 = $L("");
1014
- var $L18 = $L(")");
1015
- var $L19 = $L("->");
1016
- var $L20 = $L("}");
1017
- var $L21 = $L("null");
1018
- var $L22 = $L("true");
1019
- var $L23 = $L("false");
1020
- var $L24 = $L("yes");
1021
- var $L25 = $L("on");
1022
- var $L26 = $L("no");
1023
- var $L27 = $L("off");
1024
- var $L28 = $L("=");
999
+ var $L1 = $L("=");
1000
+ var $L2 = $L("(");
1001
+ var $L3 = $L("?");
1002
+ var $L4 = $L(".");
1003
+ var $L5 = $L("++");
1004
+ var $L6 = $L("--");
1005
+ var $L7 = $L("=>");
1006
+ var $L8 = $L(" ");
1007
+ var $L9 = $L("implements");
1008
+ var $L10 = $L("<:");
1009
+ var $L11 = $L("#");
1010
+ var $L12 = $L("super");
1011
+ var $L13 = $L("import");
1012
+ var $L14 = $L("!");
1013
+ var $L15 = $L("-");
1014
+ var $L16 = $L("super[");
1015
+ var $L17 = $L("import.meta");
1016
+ var $L18 = $L("");
1017
+ var $L19 = $L(")");
1018
+ var $L20 = $L("->");
1019
+ var $L21 = $L("}");
1020
+ var $L22 = $L("null");
1021
+ var $L23 = $L("true");
1022
+ var $L24 = $L("false");
1023
+ var $L25 = $L("yes");
1024
+ var $L26 = $L("on");
1025
+ var $L27 = $L("no");
1026
+ var $L28 = $L("off");
1025
1027
  var $L29 = $L(">");
1026
1028
  var $L30 = $L("]");
1027
1029
  var $L31 = $L(":");
@@ -1550,7 +1552,8 @@ ${input.slice(result.pos)}
1550
1552
  var ForbiddenImplicitCalls$0 = $R$0($EXPECT($R0, fail, "ForbiddenImplicitCalls /(as|for|of|satisfies|then|when|implements)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
1551
1553
  var ForbiddenImplicitCalls$1 = $EXPECT($L0, fail, 'ForbiddenImplicitCalls "/ "');
1552
1554
  var ForbiddenImplicitCalls$2 = AtAt;
1553
- var ForbiddenImplicitCalls$3 = $TS($S(Identifier, $N($EXPECT($L1, fail, 'ForbiddenImplicitCalls "("'))), function($skip, $loc, $0, $1, $2) {
1555
+ var ForbiddenImplicitCalls$3 = $S(Identifier, $EXPECT($L1, fail, 'ForbiddenImplicitCalls "="'), Whitespace);
1556
+ var ForbiddenImplicitCalls$4 = $TS($S(Identifier, $N($EXPECT($L2, fail, 'ForbiddenImplicitCalls "("'))), function($skip, $loc, $0, $1, $2) {
1554
1557
  if (module.operators.has($1.name))
1555
1558
  return $1;
1556
1559
  return $skip;
@@ -1566,12 +1569,12 @@ ${input.slice(result.pos)}
1566
1569
  }
1567
1570
  }
1568
1571
  if (state.tokenize) {
1569
- const result = $TOKEN("ForbiddenImplicitCalls", state, ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state));
1572
+ const result = $TOKEN("ForbiddenImplicitCalls", state, ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state) || ForbiddenImplicitCalls$4(state));
1570
1573
  if (state.events)
1571
1574
  state.events.exit?.("ForbiddenImplicitCalls", state, result, eventData);
1572
1575
  return result;
1573
1576
  } else {
1574
- const result = ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state);
1577
+ const result = ForbiddenImplicitCalls$0(state) || ForbiddenImplicitCalls$1(state) || ForbiddenImplicitCalls$2(state) || ForbiddenImplicitCalls$3(state) || ForbiddenImplicitCalls$4(state);
1575
1578
  if (state.events)
1576
1579
  state.events.exit?.("ForbiddenImplicitCalls", state, result, eventData);
1577
1580
  return result;
@@ -1608,7 +1611,7 @@ ${input.slice(result.pos)}
1608
1611
  return result;
1609
1612
  }
1610
1613
  }
1611
- var TrailingMemberExpressions$0 = $TS($S($Q(MemberExpressionRest), $Q($S($C(Samedent, IndentedFurther), $Y($S($E($EXPECT($L2, fail, 'TrailingMemberExpressions "?"')), $EXPECT($L3, fail, 'TrailingMemberExpressions "."'), $N($EXPECT($R1, fail, "TrailingMemberExpressions /[0-9]/")))), MemberExpressionRest))), function($skip, $loc, $0, $1, $2) {
1614
+ var TrailingMemberExpressions$0 = $TS($S($Q(MemberExpressionRest), $Q($S($C(Samedent, IndentedFurther), $Y($S($E($EXPECT($L3, fail, 'TrailingMemberExpressions "?"')), $EXPECT($L4, fail, 'TrailingMemberExpressions "."'), $N($EXPECT($R1, fail, "TrailingMemberExpressions /[0-9]/")))), MemberExpressionRest))), function($skip, $loc, $0, $1, $2) {
1612
1615
  return $1.concat($2);
1613
1616
  });
1614
1617
  function TrailingMemberExpressions(state) {
@@ -2002,7 +2005,7 @@ ${input.slice(result.pos)}
2002
2005
  return result;
2003
2006
  }
2004
2007
  }
2005
- var UpdateExpressionSymbol$0 = $TV($C($EXPECT($L4, fail, 'UpdateExpressionSymbol "++"'), $EXPECT($L5, fail, 'UpdateExpressionSymbol "--"')), function($skip, $loc, $0, $1) {
2008
+ var UpdateExpressionSymbol$0 = $TV($C($EXPECT($L5, fail, 'UpdateExpressionSymbol "++"'), $EXPECT($L6, fail, 'UpdateExpressionSymbol "--"')), function($skip, $loc, $0, $1) {
2006
2009
  return { $loc, token: $1 };
2007
2010
  });
2008
2011
  function UpdateExpressionSymbol(state) {
@@ -2138,7 +2141,9 @@ ${input.slice(result.pos)}
2138
2141
  return result;
2139
2142
  }
2140
2143
  }
2141
- var ActualAssignment$0 = $TS($S($P($S(__, LeftHandSideExpression, __, AssignmentOp)), ExtendedExpression), function($skip, $loc, $0, $1, $2) {
2144
+ var ActualAssignment$0 = $TS($S($P($S(__, LeftHandSideExpression, WAssignmentOp)), ExtendedExpression), function($skip, $loc, $0, $1, $2) {
2145
+ $1 = $1.map((x) => [x[0], x[1], ...x[2]]);
2146
+ $0 = [$1, $2];
2142
2147
  return {
2143
2148
  type: "AssignmentExpression",
2144
2149
  children: $0,
@@ -2281,7 +2286,7 @@ ${input.slice(result.pos)}
2281
2286
  return result;
2282
2287
  }
2283
2288
  }
2284
- var FatArrow$0 = $TS($S(__, $EXPECT($L6, fail, 'FatArrow "=>"')), function($skip, $loc, $0, $1, $2) {
2289
+ var FatArrow$0 = $TS($S(__, $EXPECT($L7, fail, 'FatArrow "=>"')), function($skip, $loc, $0, $1, $2) {
2285
2290
  var ws = $1;
2286
2291
  if (!ws.length)
2287
2292
  return " =>";
@@ -2364,7 +2369,7 @@ ${input.slice(result.pos)}
2364
2369
  }
2365
2370
  }
2366
2371
  var TernaryRest$0 = NestedTernaryRest;
2367
- var TernaryRest$1 = $TS($S($N(CoffeeBinaryExistentialEnabled), $Y($EXPECT($L7, fail, 'TernaryRest " "')), $Q(TrailingComment), QuestionMark, ExtendedExpression, __, Colon, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
2372
+ var TernaryRest$1 = $TS($S($N(CoffeeBinaryExistentialEnabled), $Y($EXPECT($L8, fail, 'TernaryRest " "')), $Q(TrailingComment), QuestionMark, ExtendedExpression, __, Colon, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
2368
2373
  return $0.slice(2);
2369
2374
  });
2370
2375
  function TernaryRest(state) {
@@ -2724,7 +2729,7 @@ ${input.slice(result.pos)}
2724
2729
  return result;
2725
2730
  }
2726
2731
  }
2727
- var ExtendsToken$0 = $TS($S(Loc, __, OpenAngleBracket, $E($EXPECT($L7, fail, 'ExtendsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
2732
+ var ExtendsToken$0 = $TS($S(Loc, __, OpenAngleBracket, $E($EXPECT($L8, fail, 'ExtendsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
2728
2733
  var l = $1;
2729
2734
  var ws = $2;
2730
2735
  var lt = $3;
@@ -2818,7 +2823,7 @@ ${input.slice(result.pos)}
2818
2823
  return result;
2819
2824
  }
2820
2825
  }
2821
- var ImplementsToken$0 = $TS($S(Loc, __, ImplementsShorthand, $E($EXPECT($L7, fail, 'ImplementsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
2826
+ var ImplementsToken$0 = $TS($S(Loc, __, ImplementsShorthand, $E($EXPECT($L8, fail, 'ImplementsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
2822
2827
  var l = $1;
2823
2828
  var ws = $2;
2824
2829
  var token = $3;
@@ -2828,7 +2833,7 @@ ${input.slice(result.pos)}
2828
2833
  }
2829
2834
  return { children };
2830
2835
  });
2831
- var ImplementsToken$1 = $TS($S(__, $EXPECT($L8, fail, 'ImplementsToken "implements"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
2836
+ var ImplementsToken$1 = $TS($S(__, $EXPECT($L9, fail, 'ImplementsToken "implements"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
2832
2837
  $2 = { $loc, token: $2 };
2833
2838
  return [$1, $2];
2834
2839
  });
@@ -2854,7 +2859,7 @@ ${input.slice(result.pos)}
2854
2859
  return result;
2855
2860
  }
2856
2861
  }
2857
- var ImplementsShorthand$0 = $TV($EXPECT($L9, fail, 'ImplementsShorthand "<:"'), function($skip, $loc, $0, $1) {
2862
+ var ImplementsShorthand$0 = $TV($EXPECT($L10, fail, 'ImplementsShorthand "<:"'), function($skip, $loc, $0, $1) {
2858
2863
  return { $loc, token: "implements " };
2859
2864
  });
2860
2865
  function ImplementsShorthand(state) {
@@ -3105,7 +3110,7 @@ ${input.slice(result.pos)}
3105
3110
  }
3106
3111
  }
3107
3112
  var ThisLiteral$0 = This;
3108
- var ThisLiteral$1 = $TS($S(AtThis, $TEXT($S($E($EXPECT($L10, fail, 'ThisLiteral "#"')), IdentifierName))), function($skip, $loc, $0, $1, $2) {
3113
+ var ThisLiteral$1 = $TS($S(AtThis, $TEXT($S($E($EXPECT($L11, fail, 'ThisLiteral "#"')), IdentifierName))), function($skip, $loc, $0, $1, $2) {
3109
3114
  var at = $1;
3110
3115
  var id = $2;
3111
3116
  return [at, ".", id];
@@ -3159,7 +3164,7 @@ ${input.slice(result.pos)}
3159
3164
  return result;
3160
3165
  }
3161
3166
  }
3162
- var LeftHandSideExpression$0 = $TS($S($Q($S(New, $N($EXPECT($L3, fail, 'LeftHandSideExpression "."')), __)), CallExpression), function($skip, $loc, $0, $1, $2) {
3167
+ var LeftHandSideExpression$0 = $TS($S($Q($S(New, $N($EXPECT($L4, fail, 'LeftHandSideExpression "."')), __)), CallExpression), function($skip, $loc, $0, $1, $2) {
3163
3168
  if ($1.length)
3164
3169
  return $0;
3165
3170
  return $2;
@@ -3186,14 +3191,14 @@ ${input.slice(result.pos)}
3186
3191
  return result;
3187
3192
  }
3188
3193
  }
3189
- var CallExpression$0 = $TS($S($EXPECT($L11, fail, 'CallExpression "super"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
3194
+ var CallExpression$0 = $TS($S($EXPECT($L12, fail, 'CallExpression "super"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
3190
3195
  var rest = $3;
3191
3196
  return {
3192
3197
  type: "CallExpression",
3193
3198
  children: [$1, ...$2, ...rest.flat()]
3194
3199
  };
3195
3200
  });
3196
- var CallExpression$1 = $TS($S($EXPECT($L12, fail, 'CallExpression "import"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
3201
+ var CallExpression$1 = $TS($S($EXPECT($L13, fail, 'CallExpression "import"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
3197
3202
  var rest = $3;
3198
3203
  return {
3199
3204
  type: "CallExpression",
@@ -3292,7 +3297,7 @@ ${input.slice(result.pos)}
3292
3297
  return result;
3293
3298
  }
3294
3299
  }
3295
- var NonNullAssertion$0 = $T($EXPECT($L13, fail, 'NonNullAssertion "!"'), function(value) {
3300
+ var NonNullAssertion$0 = $T($EXPECT($L14, fail, 'NonNullAssertion "!"'), function(value) {
3296
3301
  return { "type": "NonNullAssertion", "ts": true, "children": value };
3297
3302
  });
3298
3303
  function NonNullAssertion(state) {
@@ -3431,7 +3436,7 @@ ${input.slice(result.pos)}
3431
3436
  ]
3432
3437
  };
3433
3438
  });
3434
- var MemberBracketContent$3 = $TS($S(Dot, $EXPECT($L14, fail, 'MemberBracketContent "-"'), IntegerLiteral), function($skip, $loc, $0, $1, $2, $3) {
3439
+ var MemberBracketContent$3 = $TS($S(Dot, $EXPECT($L15, fail, 'MemberBracketContent "-"'), IntegerLiteral), function($skip, $loc, $0, $1, $2, $3) {
3435
3440
  var dot = $1;
3436
3441
  var neg = $2;
3437
3442
  var num = $3;
@@ -3573,8 +3578,8 @@ ${input.slice(result.pos)}
3573
3578
  return result;
3574
3579
  }
3575
3580
  }
3576
- var SuperProperty$0 = $S($EXPECT($L15, fail, 'SuperProperty "super["'), ExtendedExpression, __, CloseBracket);
3577
- var SuperProperty$1 = $S($EXPECT($L11, fail, 'SuperProperty "super"'), $N($C(QuestionMark, NonNullAssertion)), PropertyAccess);
3581
+ var SuperProperty$0 = $S($EXPECT($L16, fail, 'SuperProperty "super["'), ExtendedExpression, __, CloseBracket);
3582
+ var SuperProperty$1 = $S($EXPECT($L12, fail, 'SuperProperty "super"'), $N($C(QuestionMark, NonNullAssertion)), PropertyAccess);
3578
3583
  function SuperProperty(state) {
3579
3584
  let eventData;
3580
3585
  if (state.events) {
@@ -3598,7 +3603,7 @@ ${input.slice(result.pos)}
3598
3603
  }
3599
3604
  }
3600
3605
  var MetaProperty$0 = $S(New, Dot, Target);
3601
- var MetaProperty$1 = $TS($S($EXPECT($L16, fail, 'MetaProperty "import.meta"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3606
+ var MetaProperty$1 = $TS($S($EXPECT($L17, fail, 'MetaProperty "import.meta"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3602
3607
  return { $loc, token: $1 };
3603
3608
  });
3604
3609
  function MetaProperty(state) {
@@ -3624,7 +3629,7 @@ ${input.slice(result.pos)}
3624
3629
  }
3625
3630
  }
3626
3631
  var Parameters$0 = NonEmptyParameters;
3627
- var Parameters$1 = $TV($EXPECT($L17, fail, 'Parameters ""'), function($skip, $loc, $0, $1) {
3632
+ var Parameters$1 = $TV($EXPECT($L18, fail, 'Parameters ""'), function($skip, $loc, $0, $1) {
3628
3633
  return {
3629
3634
  type: "Parameters",
3630
3635
  children: [{ $loc, token: "()" }],
@@ -3785,7 +3790,7 @@ ${input.slice(result.pos)}
3785
3790
  }
3786
3791
  }
3787
3792
  var ParameterElementDelimiter$0 = $S($Q(_), Comma);
3788
- var ParameterElementDelimiter$1 = $Y($S(__, $EXPECT($L18, fail, 'ParameterElementDelimiter ")"')));
3793
+ var ParameterElementDelimiter$1 = $Y($S(__, $EXPECT($L19, fail, 'ParameterElementDelimiter ")"')));
3789
3794
  var ParameterElementDelimiter$2 = $T($S($Y(EOS), InsertComma), function(value) {
3790
3795
  return value[1];
3791
3796
  });
@@ -4395,7 +4400,7 @@ ${input.slice(result.pos)}
4395
4400
  children: $0
4396
4401
  };
4397
4402
  });
4398
- var BindingElement$2 = $TV($EXPECT($L17, fail, 'BindingElement ""'), function($skip, $loc, $0, $1) {
4403
+ var BindingElement$2 = $TV($EXPECT($L18, fail, 'BindingElement ""'), function($skip, $loc, $0, $1) {
4399
4404
  return {
4400
4405
  type: "ElisionElement",
4401
4406
  children: [],
@@ -4466,7 +4471,7 @@ ${input.slice(result.pos)}
4466
4471
  return result;
4467
4472
  }
4468
4473
  }
4469
- var EmptyBindingPattern$0 = $TV($EXPECT($L17, fail, 'EmptyBindingPattern ""'), function($skip, $loc, $0, $1) {
4474
+ var EmptyBindingPattern$0 = $TV($EXPECT($L18, fail, 'EmptyBindingPattern ""'), function($skip, $loc, $0, $1) {
4470
4475
  const ref = {
4471
4476
  type: "Ref",
4472
4477
  base: "ref",
@@ -4942,7 +4947,7 @@ ${input.slice(result.pos)}
4942
4947
  children: [ws, binding]
4943
4948
  };
4944
4949
  });
4945
- var MatchingElement$3 = $TV($EXPECT($L17, fail, 'MatchingElement ""'), function($skip, $loc, $0, $1) {
4950
+ var MatchingElement$3 = $TV($EXPECT($L18, fail, 'MatchingElement ""'), function($skip, $loc, $0, $1) {
4946
4951
  return {
4947
4952
  type: "ElisionElement",
4948
4953
  children: [],
@@ -5330,7 +5335,7 @@ ${input.slice(result.pos)}
5330
5335
  return result;
5331
5336
  }
5332
5337
  }
5333
- var Arrow$0 = $TV($EXPECT($L19, fail, 'Arrow "->"'), function($skip, $loc, $0, $1) {
5338
+ var Arrow$0 = $TV($EXPECT($L20, fail, 'Arrow "->"'), function($skip, $loc, $0, $1) {
5334
5339
  return { $loc, token: $1 };
5335
5340
  });
5336
5341
  function Arrow(state) {
@@ -5540,7 +5545,7 @@ ${input.slice(result.pos)}
5540
5545
  return result;
5541
5546
  }
5542
5547
  }
5543
- var EmptyBareBlock$0 = $TV($EXPECT($L17, fail, 'EmptyBareBlock ""'), function($skip, $loc, $0, $1) {
5548
+ var EmptyBareBlock$0 = $TV($EXPECT($L18, fail, 'EmptyBareBlock ""'), function($skip, $loc, $0, $1) {
5544
5549
  const expressions = [];
5545
5550
  return {
5546
5551
  type: "BlockStatement",
@@ -5669,7 +5674,7 @@ ${input.slice(result.pos)}
5669
5674
  children: [$1, expressions]
5670
5675
  };
5671
5676
  });
5672
- var BracedContent$2 = $TV($Y($S(__, $EXPECT($L20, fail, 'BracedContent "}"'))), function($skip, $loc, $0, $1) {
5677
+ var BracedContent$2 = $TV($Y($S(__, $EXPECT($L21, fail, 'BracedContent "}"'))), function($skip, $loc, $0, $1) {
5673
5678
  const expressions = [];
5674
5679
  return {
5675
5680
  type: "BlockStatement",
@@ -5814,7 +5819,7 @@ ${input.slice(result.pos)}
5814
5819
  return result;
5815
5820
  }
5816
5821
  }
5817
- var NullLiteral$0 = $TS($S($EXPECT($L21, fail, 'NullLiteral "null"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5822
+ var NullLiteral$0 = $TS($S($EXPECT($L22, fail, 'NullLiteral "null"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5818
5823
  return { $loc, token: $1 };
5819
5824
  });
5820
5825
  function NullLiteral(state) {
@@ -5842,7 +5847,7 @@ ${input.slice(result.pos)}
5842
5847
  var BooleanLiteral$0 = $T($S(CoffeeBooleansEnabled, CoffeeScriptBooleanLiteral), function(value) {
5843
5848
  return value[1];
5844
5849
  });
5845
- var BooleanLiteral$1 = $TS($S($C($EXPECT($L22, fail, 'BooleanLiteral "true"'), $EXPECT($L23, fail, 'BooleanLiteral "false"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5850
+ var BooleanLiteral$1 = $TS($S($C($EXPECT($L23, fail, 'BooleanLiteral "true"'), $EXPECT($L24, fail, 'BooleanLiteral "false"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5846
5851
  return { $loc, token: $1 };
5847
5852
  });
5848
5853
  function BooleanLiteral(state) {
@@ -5867,10 +5872,10 @@ ${input.slice(result.pos)}
5867
5872
  return result;
5868
5873
  }
5869
5874
  }
5870
- var CoffeeScriptBooleanLiteral$0 = $TS($S($C($EXPECT($L24, fail, 'CoffeeScriptBooleanLiteral "yes"'), $EXPECT($L25, fail, 'CoffeeScriptBooleanLiteral "on"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5875
+ var CoffeeScriptBooleanLiteral$0 = $TS($S($C($EXPECT($L25, fail, 'CoffeeScriptBooleanLiteral "yes"'), $EXPECT($L26, fail, 'CoffeeScriptBooleanLiteral "on"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5871
5876
  return { $loc, token: "true" };
5872
5877
  });
5873
- var CoffeeScriptBooleanLiteral$1 = $TS($S($C($EXPECT($L26, fail, 'CoffeeScriptBooleanLiteral "no"'), $EXPECT($L27, fail, 'CoffeeScriptBooleanLiteral "off"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5878
+ var CoffeeScriptBooleanLiteral$1 = $TS($S($C($EXPECT($L27, fail, 'CoffeeScriptBooleanLiteral "no"'), $EXPECT($L28, fail, 'CoffeeScriptBooleanLiteral "off"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
5874
5879
  return { $loc, token: "false" };
5875
5880
  });
5876
5881
  function CoffeeScriptBooleanLiteral(state) {
@@ -5976,7 +5981,7 @@ ${input.slice(result.pos)}
5976
5981
  return result;
5977
5982
  }
5978
5983
  }
5979
- var UpcomingAssignment$0 = $Y($S(__, $EXPECT($L28, fail, 'UpcomingAssignment "="'), $N($C($EXPECT($L28, fail, 'UpcomingAssignment "="'), $EXPECT($L29, fail, 'UpcomingAssignment ">"')))));
5984
+ var UpcomingAssignment$0 = $Y($S(__, $EXPECT($L1, fail, 'UpcomingAssignment "="'), $N($C($EXPECT($L1, fail, 'UpcomingAssignment "="'), $EXPECT($L29, fail, 'UpcomingAssignment ">"')))));
5980
5985
  function UpcomingAssignment(state) {
5981
5986
  let eventData;
5982
5987
  if (state.events) {
@@ -6674,7 +6679,7 @@ ${input.slice(result.pos)}
6674
6679
  var ImplicitInlineObjectPropertyDelimiter$1 = $T($S($Y($S($C(Samedent, $Q(_)), NamedProperty)), InsertComma), function(value) {
6675
6680
  return value[1];
6676
6681
  });
6677
- var ImplicitInlineObjectPropertyDelimiter$2 = $T($Y($S(__, $C($EXPECT($L31, fail, 'ImplicitInlineObjectPropertyDelimiter ":"'), $EXPECT($L18, fail, 'ImplicitInlineObjectPropertyDelimiter ")"'), $EXPECT($L30, fail, 'ImplicitInlineObjectPropertyDelimiter "]"'), $EXPECT($L20, fail, 'ImplicitInlineObjectPropertyDelimiter "}"'), ReservedWord))), function(value) {
6682
+ var ImplicitInlineObjectPropertyDelimiter$2 = $T($Y($S(__, $C($EXPECT($L31, fail, 'ImplicitInlineObjectPropertyDelimiter ":"'), $EXPECT($L19, fail, 'ImplicitInlineObjectPropertyDelimiter ")"'), $EXPECT($L30, fail, 'ImplicitInlineObjectPropertyDelimiter "]"'), $EXPECT($L21, fail, 'ImplicitInlineObjectPropertyDelimiter "}"'), ReservedWord))), function(value) {
6678
6683
  return "";
6679
6684
  });
6680
6685
  var ImplicitInlineObjectPropertyDelimiter$3 = $T($Y(EOS), function(value) {
@@ -6703,7 +6708,7 @@ ${input.slice(result.pos)}
6703
6708
  }
6704
6709
  }
6705
6710
  var ObjectPropertyDelimiter$0 = $S($Q(_), Comma);
6706
- var ObjectPropertyDelimiter$1 = $Y($S(__, $EXPECT($L20, fail, 'ObjectPropertyDelimiter "}"')));
6711
+ var ObjectPropertyDelimiter$1 = $Y($S(__, $EXPECT($L21, fail, 'ObjectPropertyDelimiter "}"')));
6707
6712
  var ObjectPropertyDelimiter$2 = $T($S($Y(EOS), InsertComma), function(value) {
6708
6713
  return value[1];
6709
6714
  });
@@ -6978,7 +6983,7 @@ ${input.slice(result.pos)}
6978
6983
  expression
6979
6984
  };
6980
6985
  });
6981
- var ComputedPropertyName$2 = $TS($S(InsertOpenBracket, $EXPECT($L14, fail, 'ComputedPropertyName "-"'), NumericLiteral, InsertCloseBracket), function($skip, $loc, $0, $1, $2, $3, $4) {
6986
+ var ComputedPropertyName$2 = $TS($S(InsertOpenBracket, $EXPECT($L15, fail, 'ComputedPropertyName "-"'), NumericLiteral, InsertCloseBracket), function($skip, $loc, $0, $1, $2, $3, $4) {
6982
6987
  return {
6983
6988
  type: "ComputedPropertyName",
6984
6989
  children: $0
@@ -7196,7 +7201,7 @@ ${input.slice(result.pos)}
7196
7201
  return result;
7197
7202
  }
7198
7203
  }
7199
- var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($L10, fail, 'PrivateIdentifier "#"'), IdentifierName)), function($skip, $loc, $0, $1) {
7204
+ var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($L11, fail, 'PrivateIdentifier "#"'), IdentifierName)), function($skip, $loc, $0, $1) {
7200
7205
  return {
7201
7206
  type: "Identifier",
7202
7207
  name: $0,
@@ -7229,6 +7234,30 @@ ${input.slice(result.pos)}
7229
7234
  return result;
7230
7235
  }
7231
7236
  }
7237
+ var WAssignmentOp$0 = $S(__, AssignmentOp);
7238
+ var WAssignmentOp$1 = $S(_, OperatorAssignmentOp);
7239
+ function WAssignmentOp(state) {
7240
+ let eventData;
7241
+ if (state.events) {
7242
+ const result = state.events.enter?.("WAssignmentOp", state);
7243
+ if (result) {
7244
+ if (result.cache)
7245
+ return result.cache;
7246
+ eventData = result.data;
7247
+ }
7248
+ }
7249
+ if (state.tokenize) {
7250
+ const result = $TOKEN("WAssignmentOp", state, WAssignmentOp$0(state) || WAssignmentOp$1(state));
7251
+ if (state.events)
7252
+ state.events.exit?.("WAssignmentOp", state, result, eventData);
7253
+ return result;
7254
+ } else {
7255
+ const result = WAssignmentOp$0(state) || WAssignmentOp$1(state);
7256
+ if (state.events)
7257
+ state.events.exit?.("WAssignmentOp", state, result, eventData);
7258
+ return result;
7259
+ }
7260
+ }
7232
7261
  var AssignmentOp$0 = $TS($S(AssignmentOpSymbol, $Q(TrailingComment)), function($skip, $loc, $0, $1, $2) {
7233
7262
  if ($2.length) {
7234
7263
  return {
@@ -7260,6 +7289,35 @@ ${input.slice(result.pos)}
7260
7289
  return result;
7261
7290
  }
7262
7291
  }
7292
+ var OperatorAssignmentOp$0 = $TS($S(Identifier, $EXPECT($L1, fail, 'OperatorAssignmentOp "="'), $Y(Whitespace), $Q(TrailingComment)), function($skip, $loc, $0, $1, $2, $3, $4) {
7293
+ return {
7294
+ special: true,
7295
+ call: $1,
7296
+ children: [$2, ...$4]
7297
+ };
7298
+ });
7299
+ function OperatorAssignmentOp(state) {
7300
+ let eventData;
7301
+ if (state.events) {
7302
+ const result = state.events.enter?.("OperatorAssignmentOp", state);
7303
+ if (result) {
7304
+ if (result.cache)
7305
+ return result.cache;
7306
+ eventData = result.data;
7307
+ }
7308
+ }
7309
+ if (state.tokenize) {
7310
+ const result = $TOKEN("OperatorAssignmentOp", state, OperatorAssignmentOp$0(state));
7311
+ if (state.events)
7312
+ state.events.exit?.("OperatorAssignmentOp", state, result, eventData);
7313
+ return result;
7314
+ } else {
7315
+ const result = OperatorAssignmentOp$0(state);
7316
+ if (state.events)
7317
+ state.events.exit?.("OperatorAssignmentOp", state, result, eventData);
7318
+ return result;
7319
+ }
7320
+ }
7263
7321
  var AssignmentOpSymbol$0 = $EXPECT($L32, fail, 'AssignmentOpSymbol "**="');
7264
7322
  var AssignmentOpSymbol$1 = $EXPECT($L33, fail, 'AssignmentOpSymbol "*="');
7265
7323
  var AssignmentOpSymbol$2 = $EXPECT($L34, fail, 'AssignmentOpSymbol "/="');
@@ -7278,7 +7336,7 @@ ${input.slice(result.pos)}
7278
7336
  var AssignmentOpSymbol$15 = $T($EXPECT($L47, fail, 'AssignmentOpSymbol "?="'), function(value) {
7279
7337
  return "??=";
7280
7338
  });
7281
- var AssignmentOpSymbol$16 = $T($S($EXPECT($L28, fail, 'AssignmentOpSymbol "="'), $N($EXPECT($L28, fail, 'AssignmentOpSymbol "="'))), function(value) {
7339
+ var AssignmentOpSymbol$16 = $T($S($EXPECT($L1, fail, 'AssignmentOpSymbol "="'), $N($EXPECT($L1, fail, 'AssignmentOpSymbol "="'))), function(value) {
7282
7340
  return value[0];
7283
7341
  });
7284
7342
  var AssignmentOpSymbol$17 = $T($S(CoffeeWordAssignmentOp), function(value) {
@@ -7391,7 +7449,7 @@ ${input.slice(result.pos)}
7391
7449
  });
7392
7450
  var BinaryOpSymbol$4 = $EXPECT($L55, fail, 'BinaryOpSymbol "%"');
7393
7451
  var BinaryOpSymbol$5 = $EXPECT($L56, fail, 'BinaryOpSymbol "+"');
7394
- var BinaryOpSymbol$6 = $EXPECT($L14, fail, 'BinaryOpSymbol "-"');
7452
+ var BinaryOpSymbol$6 = $EXPECT($L15, fail, 'BinaryOpSymbol "-"');
7395
7453
  var BinaryOpSymbol$7 = $EXPECT($L57, fail, 'BinaryOpSymbol "<="');
7396
7454
  var BinaryOpSymbol$8 = $EXPECT($L58, fail, 'BinaryOpSymbol ">="');
7397
7455
  var BinaryOpSymbol$9 = $TV($EXPECT($L59, fail, 'BinaryOpSymbol "<?"'), function($skip, $loc, $0, $1) {
@@ -7447,7 +7505,7 @@ ${input.slice(result.pos)}
7447
7505
  });
7448
7506
  var BinaryOpSymbol$25 = $EXPECT($L73, fail, 'BinaryOpSymbol "||"');
7449
7507
  var BinaryOpSymbol$26 = $EXPECT($L74, fail, 'BinaryOpSymbol "??"');
7450
- var BinaryOpSymbol$27 = $T($S(CoffeeBinaryExistentialEnabled, $EXPECT($L2, fail, 'BinaryOpSymbol "?"')), function(value) {
7508
+ var BinaryOpSymbol$27 = $T($S(CoffeeBinaryExistentialEnabled, $EXPECT($L3, fail, 'BinaryOpSymbol "?"')), function(value) {
7451
7509
  return "??";
7452
7510
  });
7453
7511
  var BinaryOpSymbol$28 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
@@ -7730,7 +7788,7 @@ ${input.slice(result.pos)}
7730
7788
  return result;
7731
7789
  }
7732
7790
  }
7733
- var BlockStatement$0 = $T($S(ExplicitBlock, $N($S(__, $EXPECT($L28, fail, 'BlockStatement "="')))), function(value) {
7791
+ var BlockStatement$0 = $T($S(ExplicitBlock, $N($S(__, $EXPECT($L1, fail, 'BlockStatement "="')))), function(value) {
7734
7792
  return value[0];
7735
7793
  });
7736
7794
  function BlockStatement(state) {
@@ -9146,7 +9204,7 @@ ${input.slice(result.pos)}
9146
9204
  }
9147
9205
  }
9148
9206
  var ImpliedColon$0 = $S(__, Colon);
9149
- var ImpliedColon$1 = $TV($EXPECT($L17, fail, 'ImpliedColon ""'), function($skip, $loc, $0, $1) {
9207
+ var ImpliedColon$1 = $TV($EXPECT($L18, fail, 'ImpliedColon ""'), function($skip, $loc, $0, $1) {
9150
9208
  return { $loc, token: ":" };
9151
9209
  });
9152
9210
  function ImpliedColon(state) {
@@ -9333,7 +9391,7 @@ ${input.slice(result.pos)}
9333
9391
  return result;
9334
9392
  }
9335
9393
  }
9336
- var Condition$0 = $T($S(ParenthesizedExpression, $N($S($Q(TrailingComment), $C(BinaryOp, AssignmentOp, Dot, QuestionMark)))), function(value) {
9394
+ var Condition$0 = $T($S(ParenthesizedExpression, $N($S($Q(TrailingComment), $C(BinaryOp, AssignmentOp, Dot, QuestionMark))), $N($S(_, OperatorAssignmentOp))), function(value) {
9337
9395
  return value[0];
9338
9396
  });
9339
9397
  var Condition$1 = $TS($S(InsertOpenParen, ExpressionWithIndentedApplicationSuppressed, InsertCloseParen), function($skip, $loc, $0, $1, $2, $3) {
@@ -9400,7 +9458,7 @@ ${input.slice(result.pos)}
9400
9458
  return result;
9401
9459
  }
9402
9460
  }
9403
- var SuppressIndentedApplication$0 = $TV($EXPECT($L17, fail, 'SuppressIndentedApplication ""'), function($skip, $loc, $0, $1) {
9461
+ var SuppressIndentedApplication$0 = $TV($EXPECT($L18, fail, 'SuppressIndentedApplication ""'), function($skip, $loc, $0, $1) {
9404
9462
  module.suppressIndentedApplication = true;
9405
9463
  });
9406
9464
  function SuppressIndentedApplication(state) {
@@ -9425,7 +9483,7 @@ ${input.slice(result.pos)}
9425
9483
  return result;
9426
9484
  }
9427
9485
  }
9428
- var IndentedApplicationAllowed$0 = $TV($EXPECT($L17, fail, 'IndentedApplicationAllowed ""'), function($skip, $loc, $0, $1) {
9486
+ var IndentedApplicationAllowed$0 = $TV($EXPECT($L18, fail, 'IndentedApplicationAllowed ""'), function($skip, $loc, $0, $1) {
9429
9487
  if (module.suppressIndentedApplication)
9430
9488
  return $skip;
9431
9489
  return;
@@ -9452,7 +9510,7 @@ ${input.slice(result.pos)}
9452
9510
  return result;
9453
9511
  }
9454
9512
  }
9455
- var SuppressTrailingMemberProperty$0 = $TV($EXPECT($L17, fail, 'SuppressTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
9513
+ var SuppressTrailingMemberProperty$0 = $TV($EXPECT($L18, fail, 'SuppressTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
9456
9514
  module.suppressTrailingMemberProperty.push(true);
9457
9515
  });
9458
9516
  function SuppressTrailingMemberProperty(state) {
@@ -9477,7 +9535,7 @@ ${input.slice(result.pos)}
9477
9535
  return result;
9478
9536
  }
9479
9537
  }
9480
- var TrailingMemberPropertyAllowed$0 = $TV($EXPECT($L17, fail, 'TrailingMemberPropertyAllowed ""'), function($skip, $loc, $0, $1) {
9538
+ var TrailingMemberPropertyAllowed$0 = $TV($EXPECT($L18, fail, 'TrailingMemberPropertyAllowed ""'), function($skip, $loc, $0, $1) {
9481
9539
  if (module.trailingMemberPropertySuppressed)
9482
9540
  return $skip;
9483
9541
  });
@@ -9691,7 +9749,7 @@ ${input.slice(result.pos)}
9691
9749
  return result;
9692
9750
  }
9693
9751
  }
9694
- var ImpliedImport$0 = $TV($EXPECT($L17, fail, 'ImpliedImport ""'), function($skip, $loc, $0, $1) {
9752
+ var ImpliedImport$0 = $TV($EXPECT($L18, fail, 'ImpliedImport ""'), function($skip, $loc, $0, $1) {
9695
9753
  return { $loc, token: "import " };
9696
9754
  });
9697
9755
  function ImpliedImport(state) {
@@ -9943,7 +10001,7 @@ ${input.slice(result.pos)}
9943
10001
  }
9944
10002
  }
9945
10003
  var ImportAsToken$0 = $S(__, As);
9946
- var ImportAsToken$1 = $TS($S(Loc, __, Colon, $E($EXPECT($L7, fail, 'ImportAsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
10004
+ var ImportAsToken$1 = $TS($S(Loc, __, Colon, $E($EXPECT($L8, fail, 'ImportAsToken " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
9947
10005
  var l = $1;
9948
10006
  var ws = $2;
9949
10007
  var c = $3;
@@ -10005,6 +10063,8 @@ ${input.slice(result.pos)}
10005
10063
  }
10006
10064
  }
10007
10065
  var ModuleSpecifier$0 = $TS($S(UnprocessedModuleSpecifier), function($skip, $loc, $0, $1) {
10066
+ if (!module.config.rewriteTsImports)
10067
+ return $1;
10008
10068
  const { token } = $1;
10009
10069
  return { $loc, token: token.replace(/\.([mc])?ts(['"])$/, ".$1js$2") };
10010
10070
  });
@@ -12056,7 +12116,7 @@ ${input.slice(result.pos)}
12056
12116
  }
12057
12117
  }
12058
12118
  var StatementDelimiter$0 = SemicolonDelimiter;
12059
- var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L1, fail, 'StatementDelimiter "("'), $EXPECT($L93, fail, 'StatementDelimiter "["'), $EXPECT($L94, fail, 'StatementDelimiter "`"'), $EXPECT($L56, fail, 'StatementDelimiter "+"'), $EXPECT($L14, fail, 'StatementDelimiter "-"'), $EXPECT($L52, fail, 'StatementDelimiter "*"'), $EXPECT($L53, fail, 'StatementDelimiter "/"'), ObjectLiteral))), InsertSemicolon);
12119
+ var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L2, fail, 'StatementDelimiter "("'), $EXPECT($L93, fail, 'StatementDelimiter "["'), $EXPECT($L94, fail, 'StatementDelimiter "`"'), $EXPECT($L56, fail, 'StatementDelimiter "+"'), $EXPECT($L15, fail, 'StatementDelimiter "-"'), $EXPECT($L52, fail, 'StatementDelimiter "*"'), $EXPECT($L53, fail, 'StatementDelimiter "/"'), ObjectLiteral))), InsertSemicolon);
12060
12120
  var StatementDelimiter$2 = $Y(EOS);
12061
12121
  function StatementDelimiter(state) {
12062
12122
  let eventData;
@@ -12131,7 +12191,7 @@ ${input.slice(result.pos)}
12131
12191
  return result;
12132
12192
  }
12133
12193
  }
12134
- var Loc$0 = $TV($EXPECT($L17, fail, 'Loc ""'), function($skip, $loc, $0, $1) {
12194
+ var Loc$0 = $TV($EXPECT($L18, fail, 'Loc ""'), function($skip, $loc, $0, $1) {
12135
12195
  return { $loc, token: "" };
12136
12196
  });
12137
12197
  function Loc(state) {
@@ -12156,7 +12216,7 @@ ${input.slice(result.pos)}
12156
12216
  return result;
12157
12217
  }
12158
12218
  }
12159
- var Abstract$0 = $TV($TEXT($S($EXPECT($L95, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L7, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
12219
+ var Abstract$0 = $TV($TEXT($S($EXPECT($L95, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L8, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
12160
12220
  return { $loc, token: $1, ts: true };
12161
12221
  });
12162
12222
  function Abstract(state) {
@@ -12456,7 +12516,7 @@ ${input.slice(result.pos)}
12456
12516
  return result;
12457
12517
  }
12458
12518
  }
12459
- var CloseBrace$0 = $TV($EXPECT($L20, fail, 'CloseBrace "}"'), function($skip, $loc, $0, $1) {
12519
+ var CloseBrace$0 = $TV($EXPECT($L21, fail, 'CloseBrace "}"'), function($skip, $loc, $0, $1) {
12460
12520
  return { $loc, token: $1 };
12461
12521
  });
12462
12522
  function CloseBrace(state) {
@@ -12506,7 +12566,7 @@ ${input.slice(result.pos)}
12506
12566
  return result;
12507
12567
  }
12508
12568
  }
12509
- var CloseParen$0 = $TV($EXPECT($L18, fail, 'CloseParen ")"'), function($skip, $loc, $0, $1) {
12569
+ var CloseParen$0 = $TV($EXPECT($L19, fail, 'CloseParen ")"'), function($skip, $loc, $0, $1) {
12510
12570
  return { $loc, token: $1 };
12511
12571
  });
12512
12572
  function CloseParen(state) {
@@ -12731,7 +12791,7 @@ ${input.slice(result.pos)}
12731
12791
  return result;
12732
12792
  }
12733
12793
  }
12734
- var Dot$0 = $TV($EXPECT($L3, fail, 'Dot "."'), function($skip, $loc, $0, $1) {
12794
+ var Dot$0 = $TV($EXPECT($L4, fail, 'Dot "."'), function($skip, $loc, $0, $1) {
12735
12795
  return { $loc, token: $1 };
12736
12796
  });
12737
12797
  function Dot(state) {
@@ -12881,7 +12941,7 @@ ${input.slice(result.pos)}
12881
12941
  return result;
12882
12942
  }
12883
12943
  }
12884
- var Equals$0 = $TV($EXPECT($L28, fail, 'Equals "="'), function($skip, $loc, $0, $1) {
12944
+ var Equals$0 = $TV($EXPECT($L1, fail, 'Equals "="'), function($skip, $loc, $0, $1) {
12885
12945
  return { $loc, token: $1 };
12886
12946
  });
12887
12947
  function Equals(state) {
@@ -13056,7 +13116,7 @@ ${input.slice(result.pos)}
13056
13116
  return result;
13057
13117
  }
13058
13118
  }
13059
- var If$0 = $TV($TEXT($S($EXPECT($L123, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L7, fail, 'If " "')))), function($skip, $loc, $0, $1) {
13119
+ var If$0 = $TV($TEXT($S($EXPECT($L123, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L8, fail, 'If " "')))), function($skip, $loc, $0, $1) {
13060
13120
  return { $loc, token: $1 };
13061
13121
  });
13062
13122
  function If(state) {
@@ -13081,7 +13141,7 @@ ${input.slice(result.pos)}
13081
13141
  return result;
13082
13142
  }
13083
13143
  }
13084
- var Import$0 = $TS($S($EXPECT($L12, fail, 'Import "import"'), $Y($EXPECT($R47, fail, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
13144
+ var Import$0 = $TS($S($EXPECT($L13, fail, 'Import "import"'), $Y($EXPECT($R47, fail, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
13085
13145
  return { $loc, token: $1 };
13086
13146
  });
13087
13147
  function Import(state) {
@@ -13206,7 +13266,7 @@ ${input.slice(result.pos)}
13206
13266
  return result;
13207
13267
  }
13208
13268
  }
13209
- var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($L50, fail, 'Not "not"'), NonIdContinue, $E($EXPECT($L7, fail, 'Not " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
13269
+ var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($L50, fail, 'Not "not"'), NonIdContinue, $E($EXPECT($L8, fail, 'Not " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
13210
13270
  return { $loc, token: "!" };
13211
13271
  });
13212
13272
  function Not(state) {
@@ -13331,7 +13391,7 @@ ${input.slice(result.pos)}
13331
13391
  return result;
13332
13392
  }
13333
13393
  }
13334
- var OpenParen$0 = $TV($EXPECT($L1, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
13394
+ var OpenParen$0 = $TV($EXPECT($L2, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
13335
13395
  return { $loc, token: $1 };
13336
13396
  });
13337
13397
  function OpenParen(state) {
@@ -13481,7 +13541,7 @@ ${input.slice(result.pos)}
13481
13541
  return result;
13482
13542
  }
13483
13543
  }
13484
- var QuestionMark$0 = $TV($EXPECT($L2, fail, 'QuestionMark "?"'), function($skip, $loc, $0, $1) {
13544
+ var QuestionMark$0 = $TV($EXPECT($L3, fail, 'QuestionMark "?"'), function($skip, $loc, $0, $1) {
13485
13545
  return { $loc, token: $1 };
13486
13546
  });
13487
13547
  function QuestionMark(state) {
@@ -13659,7 +13719,7 @@ ${input.slice(result.pos)}
13659
13719
  var Static$0 = $TS($S($EXPECT($L139, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13660
13720
  return { $loc, token: $1 };
13661
13721
  });
13662
- var Static$1 = $TS($S($EXPECT($L97, fail, 'Static "@"'), $N($C($EXPECT($L1, fail, 'Static "("'), $EXPECT($L97, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
13722
+ var Static$1 = $TS($S($EXPECT($L97, fail, 'Static "@"'), $N($C($EXPECT($L2, fail, 'Static "("'), $EXPECT($L97, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
13663
13723
  return { $loc, token: "static " };
13664
13724
  });
13665
13725
  function Static(state) {
@@ -14360,7 +14420,7 @@ ${input.slice(result.pos)}
14360
14420
  return $skip;
14361
14421
  return $0;
14362
14422
  });
14363
- var JSXOptionalClosingElement$1 = $EXPECT($L17, fail, 'JSXOptionalClosingElement ""');
14423
+ var JSXOptionalClosingElement$1 = $EXPECT($L18, fail, 'JSXOptionalClosingElement ""');
14364
14424
  function JSXOptionalClosingElement(state) {
14365
14425
  let eventData;
14366
14426
  if (state.events) {
@@ -14484,7 +14544,7 @@ ${input.slice(result.pos)}
14484
14544
  return $skip;
14485
14545
  return $0;
14486
14546
  });
14487
- var JSXOptionalClosingFragment$1 = $EXPECT($L17, fail, 'JSXOptionalClosingFragment ""');
14547
+ var JSXOptionalClosingFragment$1 = $EXPECT($L18, fail, 'JSXOptionalClosingFragment ""');
14488
14548
  function JSXOptionalClosingFragment(state) {
14489
14549
  let eventData;
14490
14550
  if (state.events) {
@@ -14732,7 +14792,7 @@ ${input.slice(result.pos)}
14732
14792
  }
14733
14793
  });
14734
14794
  var JSXAttribute$2 = $S(InsertInlineOpenBrace, DotDotDot, InlineJSXAttributeValue, InsertCloseBrace, $Y(JSXAttributeSpace));
14735
- var JSXAttribute$3 = $TS($S($EXPECT($L10, fail, 'JSXAttribute "#"'), JSXShorthandString), function($skip, $loc, $0, $1, $2) {
14795
+ var JSXAttribute$3 = $TS($S($EXPECT($L11, fail, 'JSXAttribute "#"'), JSXShorthandString), function($skip, $loc, $0, $1, $2) {
14736
14796
  return [" ", "id=", $2];
14737
14797
  });
14738
14798
  var JSXAttribute$4 = $TS($S(Dot, JSXShorthandString), function($skip, $loc, $0, $1, $2) {
@@ -14928,7 +14988,7 @@ ${input.slice(result.pos)}
14928
14988
  return result;
14929
14989
  }
14930
14990
  }
14931
- var InlineJSXBinaryOpRHS$0 = $TS($S($N($EXPECT($R51, fail, "InlineJSXBinaryOpRHS /[<>]/")), BinaryOp, $C(ParenthesizedAssignment, InlineJSXUnaryExpression)), function($skip, $loc, $0, $1, $2, $3) {
14991
+ var InlineJSXBinaryOpRHS$0 = $TS($S($N($EXPECT($R51, fail, "InlineJSXBinaryOpRHS /[<>]/")), BinaryOp, InlineJSXUnaryExpression), function($skip, $loc, $0, $1, $2, $3) {
14932
14992
  var op = $2;
14933
14993
  var rhs = $3;
14934
14994
  return [[], op, [], rhs];
@@ -15059,8 +15119,8 @@ ${input.slice(result.pos)}
15059
15119
  return result;
15060
15120
  }
15061
15121
  }
15062
- var InlineJSXCallExpression$0 = $S($EXPECT($L11, fail, 'InlineJSXCallExpression "super"'), ExplicitArguments);
15063
- var InlineJSXCallExpression$1 = $S($EXPECT($L12, fail, 'InlineJSXCallExpression "import"'), OpenParen, ExtendedExpression, __, CloseParen);
15122
+ var InlineJSXCallExpression$0 = $S($EXPECT($L12, fail, 'InlineJSXCallExpression "super"'), ExplicitArguments);
15123
+ var InlineJSXCallExpression$1 = $S($EXPECT($L13, fail, 'InlineJSXCallExpression "import"'), OpenParen, ExtendedExpression, __, CloseParen);
15064
15124
  var InlineJSXCallExpression$2 = $TS($S(InlineJSXMemberExpression, $Q(InlineJSXCallExpressionRest)), function($skip, $loc, $0, $1, $2) {
15065
15125
  if ($2.length)
15066
15126
  return $0;
@@ -15274,7 +15334,7 @@ ${input.slice(result.pos)}
15274
15334
  }
15275
15335
  return $skip;
15276
15336
  });
15277
- var JSXNestedChildren$1 = $TV($Y($C(JSXEOS, $EXPECT($L20, fail, 'JSXNestedChildren "}"'), JSXClosingElement, JSXClosingFragment)), function($skip, $loc, $0, $1) {
15337
+ var JSXNestedChildren$1 = $TV($Y($C(JSXEOS, $EXPECT($L21, fail, 'JSXNestedChildren "}"'), JSXClosingElement, JSXClosingFragment)), function($skip, $loc, $0, $1) {
15278
15338
  return { children: [], jsxChildren: [] };
15279
15339
  });
15280
15340
  function JSXNestedChildren(state) {
@@ -16305,8 +16365,8 @@ ${input.slice(result.pos)}
16305
16365
  return result;
16306
16366
  }
16307
16367
  }
16308
- var ImportType$0 = $S($EXPECT($L12, fail, 'ImportType "import"'), OpenParen, __, StringLiteral, __, CloseParen, $E($S(Dot, IdentifierName)), $E(TypeArguments));
16309
- var ImportType$1 = $S($EXPECT($L12, fail, 'ImportType "import"'), InsertOpenParen, Trimmed_, StringLiteral, InsertCloseParen);
16368
+ var ImportType$0 = $S($EXPECT($L13, fail, 'ImportType "import"'), OpenParen, __, StringLiteral, __, CloseParen, $E($S(Dot, IdentifierName)), $E(TypeArguments));
16369
+ var ImportType$1 = $S($EXPECT($L13, fail, 'ImportType "import"'), InsertOpenParen, Trimmed_, StringLiteral, InsertCloseParen);
16310
16370
  function ImportType(state) {
16311
16371
  let eventData;
16312
16372
  if (state.events) {
@@ -16534,7 +16594,7 @@ ${input.slice(result.pos)}
16534
16594
  var InlineInterfacePropertyDelimiter$1 = $T($S($Y($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertComma), function(value) {
16535
16595
  return value[1];
16536
16596
  });
16537
- var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L31, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L18, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L30, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L20, fail, 'InlineInterfacePropertyDelimiter "}"'))));
16597
+ var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L31, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L19, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L30, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L21, fail, 'InlineInterfacePropertyDelimiter "}"'))));
16538
16598
  var InlineInterfacePropertyDelimiter$3 = $Y(EOS);
16539
16599
  function InlineInterfacePropertyDelimiter(state) {
16540
16600
  let eventData;
@@ -16586,7 +16646,7 @@ ${input.slice(result.pos)}
16586
16646
  return result;
16587
16647
  }
16588
16648
  }
16589
- var FunctionType$0 = $TS($S(Parameters, __, $EXPECT($L6, fail, 'FunctionType "=>"'), $E(Type)), function($skip, $loc, $0, $1, $2, $3, $4) {
16649
+ var FunctionType$0 = $TS($S(Parameters, __, $EXPECT($L7, fail, 'FunctionType "=>"'), $E(Type)), function($skip, $loc, $0, $1, $2, $3, $4) {
16590
16650
  var type = $4;
16591
16651
  if (type) {
16592
16652
  return $0;
@@ -16763,7 +16823,7 @@ ${input.slice(result.pos)}
16763
16823
  return result;
16764
16824
  }
16765
16825
  }
16766
- var TypeInitializer$0 = $S(__, $EXPECT($L28, fail, 'TypeInitializer "="'), Type);
16826
+ var TypeInitializer$0 = $S(__, $EXPECT($L1, fail, 'TypeInitializer "="'), Type);
16767
16827
  function TypeInitializer(state) {
16768
16828
  let eventData;
16769
16829
  if (state.events) {
@@ -17052,7 +17112,7 @@ ${input.slice(result.pos)}
17052
17112
  return result;
17053
17113
  }
17054
17114
  }
17055
- var Debugger$0 = $TV($EXPECT($L17, fail, 'Debugger ""'), function($skip, $loc, $0, $1) {
17115
+ var Debugger$0 = $TV($EXPECT($L18, fail, 'Debugger ""'), function($skip, $loc, $0, $1) {
17056
17116
  debugger;
17057
17117
  });
17058
17118
  function Debugger(state) {
@@ -17077,7 +17137,7 @@ ${input.slice(result.pos)}
17077
17137
  return result;
17078
17138
  }
17079
17139
  }
17080
- var InsertSemicolon$0 = $TV($EXPECT($L17, fail, 'InsertSemicolon ""'), function($skip, $loc, $0, $1) {
17140
+ var InsertSemicolon$0 = $TV($EXPECT($L18, fail, 'InsertSemicolon ""'), function($skip, $loc, $0, $1) {
17081
17141
  return { $loc, token: ";" };
17082
17142
  });
17083
17143
  function InsertSemicolon(state) {
@@ -17102,7 +17162,7 @@ ${input.slice(result.pos)}
17102
17162
  return result;
17103
17163
  }
17104
17164
  }
17105
- var InsertOpenParen$0 = $TV($EXPECT($L17, fail, 'InsertOpenParen ""'), function($skip, $loc, $0, $1) {
17165
+ var InsertOpenParen$0 = $TV($EXPECT($L18, fail, 'InsertOpenParen ""'), function($skip, $loc, $0, $1) {
17106
17166
  return { $loc, token: "(" };
17107
17167
  });
17108
17168
  function InsertOpenParen(state) {
@@ -17127,7 +17187,7 @@ ${input.slice(result.pos)}
17127
17187
  return result;
17128
17188
  }
17129
17189
  }
17130
- var InsertCloseParen$0 = $TV($EXPECT($L17, fail, 'InsertCloseParen ""'), function($skip, $loc, $0, $1) {
17190
+ var InsertCloseParen$0 = $TV($EXPECT($L18, fail, 'InsertCloseParen ""'), function($skip, $loc, $0, $1) {
17131
17191
  return { $loc, token: ")" };
17132
17192
  });
17133
17193
  function InsertCloseParen(state) {
@@ -17152,7 +17212,7 @@ ${input.slice(result.pos)}
17152
17212
  return result;
17153
17213
  }
17154
17214
  }
17155
- var InsertOpenBrace$0 = $TV($EXPECT($L17, fail, 'InsertOpenBrace ""'), function($skip, $loc, $0, $1) {
17215
+ var InsertOpenBrace$0 = $TV($EXPECT($L18, fail, 'InsertOpenBrace ""'), function($skip, $loc, $0, $1) {
17156
17216
  return [{ $loc, token: " " }, { $loc, token: "{" }];
17157
17217
  });
17158
17218
  function InsertOpenBrace(state) {
@@ -17177,7 +17237,7 @@ ${input.slice(result.pos)}
17177
17237
  return result;
17178
17238
  }
17179
17239
  }
17180
- var InsertInlineOpenBrace$0 = $TV($EXPECT($L17, fail, 'InsertInlineOpenBrace ""'), function($skip, $loc, $0, $1) {
17240
+ var InsertInlineOpenBrace$0 = $TV($EXPECT($L18, fail, 'InsertInlineOpenBrace ""'), function($skip, $loc, $0, $1) {
17181
17241
  return { $loc, token: "{" };
17182
17242
  });
17183
17243
  function InsertInlineOpenBrace(state) {
@@ -17202,7 +17262,7 @@ ${input.slice(result.pos)}
17202
17262
  return result;
17203
17263
  }
17204
17264
  }
17205
- var InsertCloseBrace$0 = $TV($EXPECT($L17, fail, 'InsertCloseBrace ""'), function($skip, $loc, $0, $1) {
17265
+ var InsertCloseBrace$0 = $TV($EXPECT($L18, fail, 'InsertCloseBrace ""'), function($skip, $loc, $0, $1) {
17206
17266
  return { $loc, token: "}" };
17207
17267
  });
17208
17268
  function InsertCloseBrace(state) {
@@ -17227,7 +17287,7 @@ ${input.slice(result.pos)}
17227
17287
  return result;
17228
17288
  }
17229
17289
  }
17230
- var InsertOpenBracket$0 = $TV($EXPECT($L17, fail, 'InsertOpenBracket ""'), function($skip, $loc, $0, $1) {
17290
+ var InsertOpenBracket$0 = $TV($EXPECT($L18, fail, 'InsertOpenBracket ""'), function($skip, $loc, $0, $1) {
17231
17291
  return { $loc, token: "[" };
17232
17292
  });
17233
17293
  function InsertOpenBracket(state) {
@@ -17252,7 +17312,7 @@ ${input.slice(result.pos)}
17252
17312
  return result;
17253
17313
  }
17254
17314
  }
17255
- var InsertCloseBracket$0 = $TV($EXPECT($L17, fail, 'InsertCloseBracket ""'), function($skip, $loc, $0, $1) {
17315
+ var InsertCloseBracket$0 = $TV($EXPECT($L18, fail, 'InsertCloseBracket ""'), function($skip, $loc, $0, $1) {
17256
17316
  return { $loc, token: "]" };
17257
17317
  });
17258
17318
  function InsertCloseBracket(state) {
@@ -17277,7 +17337,7 @@ ${input.slice(result.pos)}
17277
17337
  return result;
17278
17338
  }
17279
17339
  }
17280
- var InsertComma$0 = $TV($EXPECT($L17, fail, 'InsertComma ""'), function($skip, $loc, $0, $1) {
17340
+ var InsertComma$0 = $TV($EXPECT($L18, fail, 'InsertComma ""'), function($skip, $loc, $0, $1) {
17281
17341
  return { $loc, token: "," };
17282
17342
  });
17283
17343
  function InsertComma(state) {
@@ -17302,7 +17362,7 @@ ${input.slice(result.pos)}
17302
17362
  return result;
17303
17363
  }
17304
17364
  }
17305
- var InsertConst$0 = $TV($EXPECT($L17, fail, 'InsertConst ""'), function($skip, $loc, $0, $1) {
17365
+ var InsertConst$0 = $TV($EXPECT($L18, fail, 'InsertConst ""'), function($skip, $loc, $0, $1) {
17306
17366
  return { $loc, token: "const " };
17307
17367
  });
17308
17368
  function InsertConst(state) {
@@ -17327,7 +17387,7 @@ ${input.slice(result.pos)}
17327
17387
  return result;
17328
17388
  }
17329
17389
  }
17330
- var InsertLet$0 = $TV($EXPECT($L17, fail, 'InsertLet ""'), function($skip, $loc, $0, $1) {
17390
+ var InsertLet$0 = $TV($EXPECT($L18, fail, 'InsertLet ""'), function($skip, $loc, $0, $1) {
17331
17391
  return { $loc, token: "let " };
17332
17392
  });
17333
17393
  function InsertLet(state) {
@@ -17352,7 +17412,7 @@ ${input.slice(result.pos)}
17352
17412
  return result;
17353
17413
  }
17354
17414
  }
17355
- var InsertReadonly$0 = $TV($EXPECT($L17, fail, 'InsertReadonly ""'), function($skip, $loc, $0, $1) {
17415
+ var InsertReadonly$0 = $TV($EXPECT($L18, fail, 'InsertReadonly ""'), function($skip, $loc, $0, $1) {
17356
17416
  return { ts: true, children: [{ $loc, token: "readonly " }] };
17357
17417
  });
17358
17418
  function InsertReadonly(state) {
@@ -17377,7 +17437,7 @@ ${input.slice(result.pos)}
17377
17437
  return result;
17378
17438
  }
17379
17439
  }
17380
- var InsertNewline$0 = $TV($EXPECT($L17, fail, 'InsertNewline ""'), function($skip, $loc, $0, $1) {
17440
+ var InsertNewline$0 = $TV($EXPECT($L18, fail, 'InsertNewline ""'), function($skip, $loc, $0, $1) {
17381
17441
  return "\n";
17382
17442
  });
17383
17443
  function InsertNewline(state) {
@@ -17402,7 +17462,7 @@ ${input.slice(result.pos)}
17402
17462
  return result;
17403
17463
  }
17404
17464
  }
17405
- var InsertIndent$0 = $TV($EXPECT($L17, fail, 'InsertIndent ""'), function($skip, $loc, $0, $1) {
17465
+ var InsertIndent$0 = $TV($EXPECT($L18, fail, 'InsertIndent ""'), function($skip, $loc, $0, $1) {
17406
17466
  return module.currentIndent.token;
17407
17467
  });
17408
17468
  function InsertIndent(state) {
@@ -17427,7 +17487,7 @@ ${input.slice(result.pos)}
17427
17487
  return result;
17428
17488
  }
17429
17489
  }
17430
- var InsertSpace$0 = $TV($EXPECT($L17, fail, 'InsertSpace ""'), function($skip, $loc, $0, $1) {
17490
+ var InsertSpace$0 = $TV($EXPECT($L18, fail, 'InsertSpace ""'), function($skip, $loc, $0, $1) {
17431
17491
  return { $loc, token: " " };
17432
17492
  });
17433
17493
  function InsertSpace(state) {
@@ -17452,7 +17512,7 @@ ${input.slice(result.pos)}
17452
17512
  return result;
17453
17513
  }
17454
17514
  }
17455
- var InsertDot$0 = $TV($EXPECT($L17, fail, 'InsertDot ""'), function($skip, $loc, $0, $1) {
17515
+ var InsertDot$0 = $TV($EXPECT($L18, fail, 'InsertDot ""'), function($skip, $loc, $0, $1) {
17456
17516
  return { $loc, token: "." };
17457
17517
  });
17458
17518
  function InsertDot(state) {
@@ -17477,7 +17537,7 @@ ${input.slice(result.pos)}
17477
17537
  return result;
17478
17538
  }
17479
17539
  }
17480
- var InsertBreak$0 = $TV($EXPECT($L17, fail, 'InsertBreak ""'), function($skip, $loc, $0, $1) {
17540
+ var InsertBreak$0 = $TV($EXPECT($L18, fail, 'InsertBreak ""'), function($skip, $loc, $0, $1) {
17481
17541
  return { $loc, token: ";break;" };
17482
17542
  });
17483
17543
  function InsertBreak(state) {
@@ -17502,7 +17562,7 @@ ${input.slice(result.pos)}
17502
17562
  return result;
17503
17563
  }
17504
17564
  }
17505
- var InsertVar$0 = $TV($EXPECT($L17, fail, 'InsertVar ""'), function($skip, $loc, $0, $1) {
17565
+ var InsertVar$0 = $TV($EXPECT($L18, fail, 'InsertVar ""'), function($skip, $loc, $0, $1) {
17506
17566
  return { $loc, token: "var " };
17507
17567
  });
17508
17568
  function InsertVar(state) {
@@ -17527,7 +17587,7 @@ ${input.slice(result.pos)}
17527
17587
  return result;
17528
17588
  }
17529
17589
  }
17530
- var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeBinaryExistentialEnabled ""'), function($skip, $loc, $0, $1) {
17590
+ var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeBinaryExistentialEnabled ""'), function($skip, $loc, $0, $1) {
17531
17591
  if (module.config.coffeeBinaryExistential)
17532
17592
  return;
17533
17593
  return $skip;
@@ -17554,7 +17614,7 @@ ${input.slice(result.pos)}
17554
17614
  return result;
17555
17615
  }
17556
17616
  }
17557
- var CoffeeBooleansEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeBooleansEnabled ""'), function($skip, $loc, $0, $1) {
17617
+ var CoffeeBooleansEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeBooleansEnabled ""'), function($skip, $loc, $0, $1) {
17558
17618
  if (module.config.coffeeBooleans)
17559
17619
  return;
17560
17620
  return $skip;
@@ -17581,7 +17641,7 @@ ${input.slice(result.pos)}
17581
17641
  return result;
17582
17642
  }
17583
17643
  }
17584
- var CoffeeClassesEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeClassesEnabled ""'), function($skip, $loc, $0, $1) {
17644
+ var CoffeeClassesEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeClassesEnabled ""'), function($skip, $loc, $0, $1) {
17585
17645
  if (module.config.coffeeClasses)
17586
17646
  return;
17587
17647
  return $skip;
@@ -17608,7 +17668,7 @@ ${input.slice(result.pos)}
17608
17668
  return result;
17609
17669
  }
17610
17670
  }
17611
- var CoffeeCommentEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeCommentEnabled ""'), function($skip, $loc, $0, $1) {
17671
+ var CoffeeCommentEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeCommentEnabled ""'), function($skip, $loc, $0, $1) {
17612
17672
  if (module.config.coffeeComment)
17613
17673
  return;
17614
17674
  return $skip;
@@ -17635,7 +17695,7 @@ ${input.slice(result.pos)}
17635
17695
  return result;
17636
17696
  }
17637
17697
  }
17638
- var CoffeeDoEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeDoEnabled ""'), function($skip, $loc, $0, $1) {
17698
+ var CoffeeDoEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeDoEnabled ""'), function($skip, $loc, $0, $1) {
17639
17699
  if (module.config.coffeeDo)
17640
17700
  return;
17641
17701
  return $skip;
@@ -17662,7 +17722,7 @@ ${input.slice(result.pos)}
17662
17722
  return result;
17663
17723
  }
17664
17724
  }
17665
- var CoffeeForLoopsEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeForLoopsEnabled ""'), function($skip, $loc, $0, $1) {
17725
+ var CoffeeForLoopsEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeForLoopsEnabled ""'), function($skip, $loc, $0, $1) {
17666
17726
  if (module.config.coffeeForLoops)
17667
17727
  return;
17668
17728
  return $skip;
@@ -17689,7 +17749,7 @@ ${input.slice(result.pos)}
17689
17749
  return result;
17690
17750
  }
17691
17751
  }
17692
- var CoffeeInterpolationEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeInterpolationEnabled ""'), function($skip, $loc, $0, $1) {
17752
+ var CoffeeInterpolationEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeInterpolationEnabled ""'), function($skip, $loc, $0, $1) {
17693
17753
  if (module.config.coffeeInterpolation)
17694
17754
  return;
17695
17755
  return $skip;
@@ -17716,7 +17776,7 @@ ${input.slice(result.pos)}
17716
17776
  return result;
17717
17777
  }
17718
17778
  }
17719
- var CoffeeIsntEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeIsntEnabled ""'), function($skip, $loc, $0, $1) {
17779
+ var CoffeeIsntEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeIsntEnabled ""'), function($skip, $loc, $0, $1) {
17720
17780
  if (module.config.coffeeIsnt)
17721
17781
  return;
17722
17782
  return $skip;
@@ -17743,7 +17803,7 @@ ${input.slice(result.pos)}
17743
17803
  return result;
17744
17804
  }
17745
17805
  }
17746
- var CoffeeJSXEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeJSXEnabled ""'), function($skip, $loc, $0, $1) {
17806
+ var CoffeeJSXEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeJSXEnabled ""'), function($skip, $loc, $0, $1) {
17747
17807
  if (module.config.coffeeJSX)
17748
17808
  return;
17749
17809
  return $skip;
@@ -17770,7 +17830,7 @@ ${input.slice(result.pos)}
17770
17830
  return result;
17771
17831
  }
17772
17832
  }
17773
- var CoffeeLineContinuationEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeLineContinuationEnabled ""'), function($skip, $loc, $0, $1) {
17833
+ var CoffeeLineContinuationEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeLineContinuationEnabled ""'), function($skip, $loc, $0, $1) {
17774
17834
  if (module.config.coffeeLineContinuation)
17775
17835
  return;
17776
17836
  return $skip;
@@ -17797,7 +17857,7 @@ ${input.slice(result.pos)}
17797
17857
  return result;
17798
17858
  }
17799
17859
  }
17800
- var CoffeeNotEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeNotEnabled ""'), function($skip, $loc, $0, $1) {
17860
+ var CoffeeNotEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeNotEnabled ""'), function($skip, $loc, $0, $1) {
17801
17861
  if (module.config.coffeeNot)
17802
17862
  return;
17803
17863
  return $skip;
@@ -17824,7 +17884,7 @@ ${input.slice(result.pos)}
17824
17884
  return result;
17825
17885
  }
17826
17886
  }
17827
- var CoffeeOfEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeeOfEnabled ""'), function($skip, $loc, $0, $1) {
17887
+ var CoffeeOfEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeeOfEnabled ""'), function($skip, $loc, $0, $1) {
17828
17888
  if (module.config.coffeeOf)
17829
17889
  return;
17830
17890
  return $skip;
@@ -17851,7 +17911,7 @@ ${input.slice(result.pos)}
17851
17911
  return result;
17852
17912
  }
17853
17913
  }
17854
- var CoffeePrototypeEnabled$0 = $TV($EXPECT($L17, fail, 'CoffeePrototypeEnabled ""'), function($skip, $loc, $0, $1) {
17914
+ var CoffeePrototypeEnabled$0 = $TV($EXPECT($L18, fail, 'CoffeePrototypeEnabled ""'), function($skip, $loc, $0, $1) {
17855
17915
  if (module.config.coffeePrototype)
17856
17916
  return;
17857
17917
  return $skip;
@@ -17878,7 +17938,7 @@ ${input.slice(result.pos)}
17878
17938
  return result;
17879
17939
  }
17880
17940
  }
17881
- var ObjectIsEnabled$0 = $TV($EXPECT($L17, fail, 'ObjectIsEnabled ""'), function($skip, $loc, $0, $1) {
17941
+ var ObjectIsEnabled$0 = $TV($EXPECT($L18, fail, 'ObjectIsEnabled ""'), function($skip, $loc, $0, $1) {
17882
17942
  if (module.config.objectIs)
17883
17943
  return;
17884
17944
  return $skip;
@@ -17905,7 +17965,7 @@ ${input.slice(result.pos)}
17905
17965
  return result;
17906
17966
  }
17907
17967
  }
17908
- var Reset$0 = $TV($EXPECT($L17, fail, 'Reset ""'), function($skip, $loc, $0, $1) {
17968
+ var Reset$0 = $TV($EXPECT($L18, fail, 'Reset ""'), function($skip, $loc, $0, $1) {
17909
17969
  module.indentLevels = [{
17910
17970
  level: 0,
17911
17971
  token: ""
@@ -17958,6 +18018,7 @@ ${input.slice(result.pos)}
17958
18018
  react: false,
17959
18019
  solid: false,
17960
18020
  client: false,
18021
+ rewriteTsImports: true,
17961
18022
  server: false,
17962
18023
  tab: void 0,
17963
18024
  verbose: false
@@ -18116,6 +18177,12 @@ ${input.slice(result.pos)}
18116
18177
  }
18117
18178
  }
18118
18179
  };
18180
+ Object.defineProperty(module.config, "deno", {
18181
+ set(b) {
18182
+ module.config.rewriteTsImports = !b;
18183
+ }
18184
+ });
18185
+ module.config.deno = typeof Deno !== "undefined";
18119
18186
  Object.defineProperty(module.config, "coffeeCompat", {
18120
18187
  set(b) {
18121
18188
  for (const option of [
@@ -18176,7 +18243,7 @@ ${input.slice(result.pos)}
18176
18243
  return result;
18177
18244
  }
18178
18245
  }
18179
- var Init$0 = $TS($S($E(Shebang), $Q(DirectivePrologue), $EXPECT($L17, fail, 'Init ""')), function($skip, $loc, $0, $1, $2, $3) {
18246
+ var Init$0 = $TS($S($E(Shebang), $Q(DirectivePrologue), $EXPECT($L18, fail, 'Init ""')), function($skip, $loc, $0, $1, $2, $3) {
18180
18247
  var directives = $2;
18181
18248
  directives.forEach((directive) => {
18182
18249
  if (directive.type === "CivetPrologue") {
@@ -18911,6 +18978,15 @@ ${input.slice(result.pos)}
18911
18978
  function processAssignments(statements) {
18912
18979
  gatherRecursiveAll(statements, (n) => n.type === "AssignmentExpression" && n.names === null).forEach((exp) => {
18913
18980
  let { lhs: $12, exp: $22 } = exp, tail = [], i = 0, len = $12.length;
18981
+ if ($12.some((left) => left[left.length - 1].special)) {
18982
+ if ($12.length !== 1) {
18983
+ throw new Error("Only one assignment with id= is allowed");
18984
+ }
18985
+ const [, lhs, , op] = $12[0];
18986
+ const { call } = op;
18987
+ op[op.length - 1] = "=";
18988
+ $22 = [call, "(", lhs, ", ", $22, ")"];
18989
+ }
18914
18990
  let wrapped = false;
18915
18991
  while (i < len) {
18916
18992
  const lastAssignment = $12[i++];
@@ -19677,7 +19753,7 @@ ${input.slice(result.pos)}
19677
19753
  return result;
19678
19754
  }
19679
19755
  }
19680
- var PopIndent$0 = $TV($EXPECT($L17, fail, 'PopIndent ""'), function($skip, $loc, $0, $1) {
19756
+ var PopIndent$0 = $TV($EXPECT($L18, fail, 'PopIndent ""'), function($skip, $loc, $0, $1) {
19681
19757
  if (module.config.verbose) {
19682
19758
  console.log("popping indent", module.indentLevels[module.indentLevels.length - 1], "->", module.indentLevels[module.indentLevels.length - 2]);
19683
19759
  }