@danielx/civet 0.5.60 → 0.5.61

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.mjs CHANGED
@@ -448,6 +448,7 @@ ${input.slice(result.pos)}
448
448
  ArgumentPart,
449
449
  BinaryOpExpression,
450
450
  BinaryOpRHS,
451
+ RHS,
451
452
  ParenthesizedAssignment,
452
453
  UnaryExpression,
453
454
  UnaryPostfix,
@@ -665,7 +666,7 @@ ${input.slice(result.pos)}
665
666
  TryExpression,
666
667
  CatchClause,
667
668
  CatchBind,
668
- Finally,
669
+ FinallyClause,
669
670
  CatchParameter,
670
671
  Condition,
671
672
  ExpressionWithIndentedApplicationSuppressed,
@@ -798,6 +799,7 @@ ${input.slice(result.pos)}
798
799
  Equals,
799
800
  Export,
800
801
  Extends,
802
+ Finally,
801
803
  For,
802
804
  From,
803
805
  Function,
@@ -932,6 +934,7 @@ ${input.slice(result.pos)}
932
934
  InlineInterfacePropertyDelimiter,
933
935
  TypeBinaryOp,
934
936
  FunctionType,
937
+ TypeArrowFunction,
935
938
  TypeArguments,
936
939
  TypeArgument,
937
940
  TypeArgumentDelimiter,
@@ -1075,41 +1078,41 @@ ${input.slice(result.pos)}
1075
1078
  var $L80 = $L("|");
1076
1079
  var $L81 = $L(";");
1077
1080
  var $L82 = $L("own");
1078
- var $L83 = $L("finally");
1079
- var $L84 = $L("break");
1080
- var $L85 = $L("continue");
1081
- var $L86 = $L("debugger");
1082
- var $L87 = $L("assert");
1083
- var $L88 = $L(":=");
1084
- var $L89 = $L(".=");
1085
- var $L90 = $L("/*");
1086
- var $L91 = $L("*/");
1087
- var $L92 = $L("\\");
1088
- var $L93 = $L("[");
1089
- var $L94 = $L("`");
1090
- var $L95 = $L("abstract");
1091
- var $L96 = $L("as");
1092
- var $L97 = $L("@");
1093
- var $L98 = $L("@@");
1094
- var $L99 = $L("async");
1095
- var $L100 = $L("await");
1096
- var $L101 = $L("by");
1097
- var $L102 = $L("case");
1098
- var $L103 = $L("catch");
1099
- var $L104 = $L("class");
1100
- var $L105 = $L("#{");
1101
- var $L106 = $L(",");
1102
- var $L107 = $L("declare");
1103
- var $L108 = $L("default");
1104
- var $L109 = $L("delete");
1105
- var $L110 = $L("do");
1106
- var $L111 = $L("..");
1107
- var $L112 = $L("...");
1108
- var $L113 = $L("::");
1109
- var $L114 = $L('"');
1110
- var $L115 = $L("else");
1111
- var $L116 = $L("export");
1112
- var $L117 = $L("extends");
1081
+ var $L83 = $L("break");
1082
+ var $L84 = $L("continue");
1083
+ var $L85 = $L("debugger");
1084
+ var $L86 = $L("assert");
1085
+ var $L87 = $L(":=");
1086
+ var $L88 = $L(".=");
1087
+ var $L89 = $L("/*");
1088
+ var $L90 = $L("*/");
1089
+ var $L91 = $L("\\");
1090
+ var $L92 = $L("[");
1091
+ var $L93 = $L("`");
1092
+ var $L94 = $L("abstract");
1093
+ var $L95 = $L("as");
1094
+ var $L96 = $L("@");
1095
+ var $L97 = $L("@@");
1096
+ var $L98 = $L("async");
1097
+ var $L99 = $L("await");
1098
+ var $L100 = $L("by");
1099
+ var $L101 = $L("case");
1100
+ var $L102 = $L("catch");
1101
+ var $L103 = $L("class");
1102
+ var $L104 = $L("#{");
1103
+ var $L105 = $L(",");
1104
+ var $L106 = $L("declare");
1105
+ var $L107 = $L("default");
1106
+ var $L108 = $L("delete");
1107
+ var $L109 = $L("do");
1108
+ var $L110 = $L("..");
1109
+ var $L111 = $L("...");
1110
+ var $L112 = $L("::");
1111
+ var $L113 = $L('"');
1112
+ var $L114 = $L("else");
1113
+ var $L115 = $L("export");
1114
+ var $L116 = $L("extends");
1115
+ var $L117 = $L("finally");
1113
1116
  var $L118 = $L("for");
1114
1117
  var $L119 = $L("from");
1115
1118
  var $L120 = $L("function");
@@ -1865,7 +1868,12 @@ ${input.slice(result.pos)}
1865
1868
  return result;
1866
1869
  }
1867
1870
  }
1868
- var BinaryOpRHS$0 = $S(__, BinaryOp, __, $C(ParenthesizedAssignment, UnaryExpression, ExpressionizedStatement));
1871
+ var BinaryOpRHS$0 = $TS($S(BinaryOp, RHS), function($skip, $loc, $0, $1, $2) {
1872
+ var op = $1;
1873
+ var rhs = $2;
1874
+ return [[], op, [], rhs];
1875
+ });
1876
+ var BinaryOpRHS$1 = $S(__, BinaryOp, $C(_, $S(EOS, __)), RHS);
1869
1877
  function BinaryOpRHS(state) {
1870
1878
  let eventData;
1871
1879
  if (state.events) {
@@ -1877,17 +1885,42 @@ ${input.slice(result.pos)}
1877
1885
  }
1878
1886
  }
1879
1887
  if (state.tokenize) {
1880
- const result = $TOKEN("BinaryOpRHS", state, BinaryOpRHS$0(state));
1888
+ const result = $TOKEN("BinaryOpRHS", state, BinaryOpRHS$0(state) || BinaryOpRHS$1(state));
1881
1889
  if (state.events)
1882
1890
  state.events.exit?.("BinaryOpRHS", state, result, eventData);
1883
1891
  return result;
1884
1892
  } else {
1885
- const result = BinaryOpRHS$0(state);
1893
+ const result = BinaryOpRHS$0(state) || BinaryOpRHS$1(state);
1886
1894
  if (state.events)
1887
1895
  state.events.exit?.("BinaryOpRHS", state, result, eventData);
1888
1896
  return result;
1889
1897
  }
1890
1898
  }
1899
+ var RHS$0 = ParenthesizedAssignment;
1900
+ var RHS$1 = UnaryExpression;
1901
+ var RHS$2 = ExpressionizedStatement;
1902
+ function RHS(state) {
1903
+ let eventData;
1904
+ if (state.events) {
1905
+ const result = state.events.enter?.("RHS", state);
1906
+ if (result) {
1907
+ if (result.cache)
1908
+ return result.cache;
1909
+ eventData = result.data;
1910
+ }
1911
+ }
1912
+ if (state.tokenize) {
1913
+ const result = $TOKEN("RHS", state, RHS$0(state) || RHS$1(state) || RHS$2(state));
1914
+ if (state.events)
1915
+ state.events.exit?.("RHS", state, result, eventData);
1916
+ return result;
1917
+ } else {
1918
+ const result = RHS$0(state) || RHS$1(state) || RHS$2(state);
1919
+ if (state.events)
1920
+ state.events.exit?.("RHS", state, result, eventData);
1921
+ return result;
1922
+ }
1923
+ }
1891
1924
  var ParenthesizedAssignment$0 = $S(InsertOpenParen, ActualAssignment, InsertCloseParen);
1892
1925
  function ParenthesizedAssignment(state) {
1893
1926
  let eventData;
@@ -9226,7 +9259,7 @@ ${input.slice(result.pos)}
9226
9259
  return result;
9227
9260
  }
9228
9261
  }
9229
- var TryStatement$0 = $TS($S(Try, BracedBlock, $E(CatchClause), $E(Finally)), function($skip, $loc, $0, $1, $2, $3, $4) {
9262
+ var TryStatement$0 = $TS($S(Try, BracedOrEmptyBlock, $E(CatchClause), $E(FinallyClause)), function($skip, $loc, $0, $1, $2, $3, $4) {
9230
9263
  var t = $1;
9231
9264
  var b = $2;
9232
9265
  var c = $3;
@@ -9294,7 +9327,7 @@ ${input.slice(result.pos)}
9294
9327
  return result;
9295
9328
  }
9296
9329
  }
9297
- var CatchClause$0 = $S(__, Catch, $E(CatchBind), BracedBlock);
9330
+ var CatchClause$0 = $S($C(Samedent, _), Catch, $E(CatchBind), $C(ThenClause, BracedOrEmptyBlock));
9298
9331
  function CatchClause(state) {
9299
9332
  let eventData;
9300
9333
  if (state.events) {
@@ -9317,8 +9350,8 @@ ${input.slice(result.pos)}
9317
9350
  return result;
9318
9351
  }
9319
9352
  }
9320
- var CatchBind$0 = $S(__, OpenParen, __, CatchParameter, __, CloseParen);
9321
- var CatchBind$1 = $S($N(EOS), $Q(TrailingComment), InsertOpenParen, CatchParameter, InsertCloseParen);
9353
+ var CatchBind$0 = $S($E(_), OpenParen, __, CatchParameter, __, CloseParen);
9354
+ var CatchBind$1 = $S(_, InsertOpenParen, CatchParameter, InsertCloseParen);
9322
9355
  function CatchBind(state) {
9323
9356
  let eventData;
9324
9357
  if (state.events) {
@@ -9341,11 +9374,11 @@ ${input.slice(result.pos)}
9341
9374
  return result;
9342
9375
  }
9343
9376
  }
9344
- var Finally$0 = $S(__, $EXPECT($L83, fail, 'Finally "finally"'), NonIdContinue, BracedBlock);
9345
- function Finally(state) {
9377
+ var FinallyClause$0 = $S($C(Samedent, _), Finally, $C(ThenClause, BracedOrEmptyBlock));
9378
+ function FinallyClause(state) {
9346
9379
  let eventData;
9347
9380
  if (state.events) {
9348
- const result = state.events.enter?.("Finally", state);
9381
+ const result = state.events.enter?.("FinallyClause", state);
9349
9382
  if (result) {
9350
9383
  if (result.cache)
9351
9384
  return result.cache;
@@ -9353,14 +9386,14 @@ ${input.slice(result.pos)}
9353
9386
  }
9354
9387
  }
9355
9388
  if (state.tokenize) {
9356
- const result = $TOKEN("Finally", state, Finally$0(state));
9389
+ const result = $TOKEN("FinallyClause", state, FinallyClause$0(state));
9357
9390
  if (state.events)
9358
- state.events.exit?.("Finally", state, result, eventData);
9391
+ state.events.exit?.("FinallyClause", state, result, eventData);
9359
9392
  return result;
9360
9393
  } else {
9361
- const result = Finally$0(state);
9394
+ const result = FinallyClause$0(state);
9362
9395
  if (state.events)
9363
- state.events.exit?.("Finally", state, result, eventData);
9396
+ state.events.exit?.("FinallyClause", state, result, eventData);
9364
9397
  return result;
9365
9398
  }
9366
9399
  }
@@ -9581,13 +9614,13 @@ ${input.slice(result.pos)}
9581
9614
  return result;
9582
9615
  }
9583
9616
  }
9584
- var KeywordStatement$0 = $T($S($EXPECT($L84, fail, 'KeywordStatement "break"'), NonIdContinue), function(value) {
9617
+ var KeywordStatement$0 = $T($S($EXPECT($L83, fail, 'KeywordStatement "break"'), NonIdContinue), function(value) {
9585
9618
  return { "type": "BreakStatement", "children": value };
9586
9619
  });
9587
- var KeywordStatement$1 = $T($S($EXPECT($L85, fail, 'KeywordStatement "continue"'), NonIdContinue), function(value) {
9620
+ var KeywordStatement$1 = $T($S($EXPECT($L84, fail, 'KeywordStatement "continue"'), NonIdContinue), function(value) {
9588
9621
  return { "type": "ContinueStatement", "children": value };
9589
9622
  });
9590
- var KeywordStatement$2 = $T($S($EXPECT($L86, fail, 'KeywordStatement "debugger"'), NonIdContinue), function(value) {
9623
+ var KeywordStatement$2 = $T($S($EXPECT($L85, fail, 'KeywordStatement "debugger"'), NonIdContinue), function(value) {
9591
9624
  return { "type": "DebuggerStatement", "children": value };
9592
9625
  });
9593
9626
  var KeywordStatement$3 = $T($S(Return, $E(MaybeNestedExpression)), function(value) {
@@ -9618,7 +9651,7 @@ ${input.slice(result.pos)}
9618
9651
  return result;
9619
9652
  }
9620
9653
  }
9621
- var DebuggerExpression$0 = $TS($S($EXPECT($L86, fail, 'DebuggerExpression "debugger"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9654
+ var DebuggerExpression$0 = $TS($S($EXPECT($L85, fail, 'DebuggerExpression "debugger"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9622
9655
  return {
9623
9656
  type: "DebuggerExpression",
9624
9657
  children: ["(()=>{", $1, "})()"]
@@ -9895,7 +9928,7 @@ ${input.slice(result.pos)}
9895
9928
  return result;
9896
9929
  }
9897
9930
  }
9898
- var ImportAssertion$0 = $S($E(_), $EXPECT($L87, fail, 'ImportAssertion "assert"'), NonIdContinue, $E(_), ObjectLiteral);
9931
+ var ImportAssertion$0 = $S($E(_), $EXPECT($L86, fail, 'ImportAssertion "assert"'), NonIdContinue, $E(_), ObjectLiteral);
9899
9932
  function ImportAssertion(state) {
9900
9933
  let eventData;
9901
9934
  if (state.events) {
@@ -10499,7 +10532,7 @@ ${input.slice(result.pos)}
10499
10532
  return result;
10500
10533
  }
10501
10534
  }
10502
- var ConstAssignment$0 = $TV($EXPECT($L88, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
10535
+ var ConstAssignment$0 = $TV($EXPECT($L87, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
10503
10536
  return { $loc, token: "=" };
10504
10537
  });
10505
10538
  function ConstAssignment(state) {
@@ -10524,7 +10557,7 @@ ${input.slice(result.pos)}
10524
10557
  return result;
10525
10558
  }
10526
10559
  }
10527
- var LetAssignment$0 = $TV($EXPECT($L89, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
10560
+ var LetAssignment$0 = $TV($EXPECT($L88, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
10528
10561
  return { $loc, token: "=" };
10529
10562
  });
10530
10563
  function LetAssignment(state) {
@@ -11763,7 +11796,7 @@ ${input.slice(result.pos)}
11763
11796
  return result;
11764
11797
  }
11765
11798
  }
11766
- var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L90, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L91, fail, 'JSMultiLineComment "*/"')), $EXPECT($R40, fail, "JSMultiLineComment /./"))), $EXPECT($L91, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
11799
+ var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L89, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L90, fail, 'JSMultiLineComment "*/"')), $EXPECT($R40, fail, "JSMultiLineComment /./"))), $EXPECT($L90, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
11767
11800
  return { $loc, token: $1 };
11768
11801
  });
11769
11802
  function JSMultiLineComment(state) {
@@ -11862,7 +11895,7 @@ ${input.slice(result.pos)}
11862
11895
  return result;
11863
11896
  }
11864
11897
  }
11865
- var InlineComment$0 = $TV($TEXT($S($EXPECT($L90, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L91, fail, 'InlineComment "*/"')), $EXPECT($R44, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L91, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
11898
+ var InlineComment$0 = $TV($TEXT($S($EXPECT($L89, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L90, fail, 'InlineComment "*/"')), $EXPECT($R44, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L90, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
11866
11899
  return { $loc, token: $1 };
11867
11900
  });
11868
11901
  function InlineComment(state) {
@@ -11961,7 +11994,7 @@ ${input.slice(result.pos)}
11961
11994
  var NonNewlineWhitespace$0 = $TR($EXPECT($R45, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
11962
11995
  return { $loc, token: $0 };
11963
11996
  });
11964
- var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L92, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
11997
+ var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L91, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
11965
11998
  return "";
11966
11999
  });
11967
12000
  function NonNewlineWhitespace(state) {
@@ -12113,7 +12146,7 @@ ${input.slice(result.pos)}
12113
12146
  }
12114
12147
  }
12115
12148
  var StatementDelimiter$0 = SemicolonDelimiter;
12116
- 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);
12149
+ var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L2, fail, 'StatementDelimiter "("'), $EXPECT($L92, fail, 'StatementDelimiter "["'), $EXPECT($L93, fail, 'StatementDelimiter "`"'), $EXPECT($L56, fail, 'StatementDelimiter "+"'), $EXPECT($L15, fail, 'StatementDelimiter "-"'), $EXPECT($L52, fail, 'StatementDelimiter "*"'), $EXPECT($L53, fail, 'StatementDelimiter "/"'), ObjectLiteral))), InsertSemicolon);
12117
12150
  var StatementDelimiter$2 = $Y(EOS);
12118
12151
  function StatementDelimiter(state) {
12119
12152
  let eventData;
@@ -12213,7 +12246,7 @@ ${input.slice(result.pos)}
12213
12246
  return result;
12214
12247
  }
12215
12248
  }
12216
- var Abstract$0 = $TV($TEXT($S($EXPECT($L95, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L8, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
12249
+ var Abstract$0 = $TV($TEXT($S($EXPECT($L94, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L8, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
12217
12250
  return { $loc, token: $1, ts: true };
12218
12251
  });
12219
12252
  function Abstract(state) {
@@ -12263,7 +12296,7 @@ ${input.slice(result.pos)}
12263
12296
  return result;
12264
12297
  }
12265
12298
  }
12266
- var As$0 = $TS($S($EXPECT($L96, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12299
+ var As$0 = $TS($S($EXPECT($L95, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12267
12300
  return { $loc, token: $1 };
12268
12301
  });
12269
12302
  function As(state) {
@@ -12288,7 +12321,7 @@ ${input.slice(result.pos)}
12288
12321
  return result;
12289
12322
  }
12290
12323
  }
12291
- var At$0 = $TV($EXPECT($L97, fail, 'At "@"'), function($skip, $loc, $0, $1) {
12324
+ var At$0 = $TV($EXPECT($L96, fail, 'At "@"'), function($skip, $loc, $0, $1) {
12292
12325
  return { $loc, token: $1 };
12293
12326
  });
12294
12327
  function At(state) {
@@ -12313,7 +12346,7 @@ ${input.slice(result.pos)}
12313
12346
  return result;
12314
12347
  }
12315
12348
  }
12316
- var AtAt$0 = $TV($EXPECT($L98, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
12349
+ var AtAt$0 = $TV($EXPECT($L97, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
12317
12350
  return { $loc, token: "@" };
12318
12351
  });
12319
12352
  function AtAt(state) {
@@ -12338,7 +12371,7 @@ ${input.slice(result.pos)}
12338
12371
  return result;
12339
12372
  }
12340
12373
  }
12341
- var Async$0 = $TS($S($EXPECT($L99, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12374
+ var Async$0 = $TS($S($EXPECT($L98, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12342
12375
  return { $loc, token: $1, type: "Async" };
12343
12376
  });
12344
12377
  function Async(state) {
@@ -12363,7 +12396,7 @@ ${input.slice(result.pos)}
12363
12396
  return result;
12364
12397
  }
12365
12398
  }
12366
- var Await$0 = $TS($S($EXPECT($L100, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12399
+ var Await$0 = $TS($S($EXPECT($L99, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12367
12400
  return { $loc, token: $1 };
12368
12401
  });
12369
12402
  function Await(state) {
@@ -12388,7 +12421,7 @@ ${input.slice(result.pos)}
12388
12421
  return result;
12389
12422
  }
12390
12423
  }
12391
- var Backtick$0 = $TV($EXPECT($L94, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
12424
+ var Backtick$0 = $TV($EXPECT($L93, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
12392
12425
  return { $loc, token: $1 };
12393
12426
  });
12394
12427
  function Backtick(state) {
@@ -12413,7 +12446,7 @@ ${input.slice(result.pos)}
12413
12446
  return result;
12414
12447
  }
12415
12448
  }
12416
- var By$0 = $TS($S($EXPECT($L101, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12449
+ var By$0 = $TS($S($EXPECT($L100, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12417
12450
  return { $loc, token: $1 };
12418
12451
  });
12419
12452
  function By(state) {
@@ -12438,7 +12471,7 @@ ${input.slice(result.pos)}
12438
12471
  return result;
12439
12472
  }
12440
12473
  }
12441
- var Case$0 = $TS($S($EXPECT($L102, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12474
+ var Case$0 = $TS($S($EXPECT($L101, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12442
12475
  return { $loc, token: $1 };
12443
12476
  });
12444
12477
  function Case(state) {
@@ -12463,7 +12496,7 @@ ${input.slice(result.pos)}
12463
12496
  return result;
12464
12497
  }
12465
12498
  }
12466
- var Catch$0 = $TS($S($EXPECT($L103, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12499
+ var Catch$0 = $TS($S($EXPECT($L102, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12467
12500
  return { $loc, token: $1 };
12468
12501
  });
12469
12502
  function Catch(state) {
@@ -12488,7 +12521,7 @@ ${input.slice(result.pos)}
12488
12521
  return result;
12489
12522
  }
12490
12523
  }
12491
- var Class$0 = $TS($S($EXPECT($L104, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12524
+ var Class$0 = $TS($S($EXPECT($L103, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12492
12525
  return { $loc, token: $1 };
12493
12526
  });
12494
12527
  function Class(state) {
@@ -12588,7 +12621,7 @@ ${input.slice(result.pos)}
12588
12621
  return result;
12589
12622
  }
12590
12623
  }
12591
- var CoffeeSubstitutionStart$0 = $TV($EXPECT($L105, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
12624
+ var CoffeeSubstitutionStart$0 = $TV($EXPECT($L104, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
12592
12625
  return { $loc, token: "${" };
12593
12626
  });
12594
12627
  function CoffeeSubstitutionStart(state) {
@@ -12638,7 +12671,7 @@ ${input.slice(result.pos)}
12638
12671
  return result;
12639
12672
  }
12640
12673
  }
12641
- var Comma$0 = $TV($EXPECT($L106, fail, 'Comma ","'), function($skip, $loc, $0, $1) {
12674
+ var Comma$0 = $TV($EXPECT($L105, fail, 'Comma ","'), function($skip, $loc, $0, $1) {
12642
12675
  return { $loc, token: $1 };
12643
12676
  });
12644
12677
  function Comma(state) {
@@ -12663,7 +12696,7 @@ ${input.slice(result.pos)}
12663
12696
  return result;
12664
12697
  }
12665
12698
  }
12666
- var ConstructorShorthand$0 = $TV($EXPECT($L97, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
12699
+ var ConstructorShorthand$0 = $TV($EXPECT($L96, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
12667
12700
  return { $loc, token: "constructor" };
12668
12701
  });
12669
12702
  function ConstructorShorthand(state) {
@@ -12688,7 +12721,7 @@ ${input.slice(result.pos)}
12688
12721
  return result;
12689
12722
  }
12690
12723
  }
12691
- var Declare$0 = $TS($S($EXPECT($L107, fail, 'Declare "declare"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12724
+ var Declare$0 = $TS($S($EXPECT($L106, fail, 'Declare "declare"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12692
12725
  return { $loc, token: $1 };
12693
12726
  });
12694
12727
  function Declare(state) {
@@ -12713,7 +12746,7 @@ ${input.slice(result.pos)}
12713
12746
  return result;
12714
12747
  }
12715
12748
  }
12716
- var Default$0 = $TS($S($EXPECT($L108, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12749
+ var Default$0 = $TS($S($EXPECT($L107, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12717
12750
  return { $loc, token: $1 };
12718
12751
  });
12719
12752
  function Default(state) {
@@ -12738,7 +12771,7 @@ ${input.slice(result.pos)}
12738
12771
  return result;
12739
12772
  }
12740
12773
  }
12741
- var Delete$0 = $TS($S($EXPECT($L109, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12774
+ var Delete$0 = $TS($S($EXPECT($L108, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12742
12775
  return { $loc, token: $1 };
12743
12776
  });
12744
12777
  function Delete(state) {
@@ -12763,7 +12796,7 @@ ${input.slice(result.pos)}
12763
12796
  return result;
12764
12797
  }
12765
12798
  }
12766
- var Do$0 = $TS($S($EXPECT($L110, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12799
+ var Do$0 = $TS($S($EXPECT($L109, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12767
12800
  return { $loc, token: $1 };
12768
12801
  });
12769
12802
  function Do(state) {
@@ -12813,7 +12846,7 @@ ${input.slice(result.pos)}
12813
12846
  return result;
12814
12847
  }
12815
12848
  }
12816
- var DotDot$0 = $TV($EXPECT($L111, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
12849
+ var DotDot$0 = $TV($EXPECT($L110, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
12817
12850
  return { $loc, token: $1 };
12818
12851
  });
12819
12852
  function DotDot(state) {
@@ -12838,7 +12871,7 @@ ${input.slice(result.pos)}
12838
12871
  return result;
12839
12872
  }
12840
12873
  }
12841
- var DotDotDot$0 = $TV($EXPECT($L112, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
12874
+ var DotDotDot$0 = $TV($EXPECT($L111, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
12842
12875
  return { $loc, token: $1 };
12843
12876
  });
12844
12877
  function DotDotDot(state) {
@@ -12863,7 +12896,7 @@ ${input.slice(result.pos)}
12863
12896
  return result;
12864
12897
  }
12865
12898
  }
12866
- var DoubleColon$0 = $TV($EXPECT($L113, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
12899
+ var DoubleColon$0 = $TV($EXPECT($L112, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
12867
12900
  return { $loc, token: $1 };
12868
12901
  });
12869
12902
  function DoubleColon(state) {
@@ -12888,7 +12921,7 @@ ${input.slice(result.pos)}
12888
12921
  return result;
12889
12922
  }
12890
12923
  }
12891
- var DoubleQuote$0 = $TV($EXPECT($L114, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
12924
+ var DoubleQuote$0 = $TV($EXPECT($L113, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
12892
12925
  return { $loc, token: $1 };
12893
12926
  });
12894
12927
  function DoubleQuote(state) {
@@ -12913,7 +12946,7 @@ ${input.slice(result.pos)}
12913
12946
  return result;
12914
12947
  }
12915
12948
  }
12916
- var Else$0 = $TS($S($EXPECT($L115, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12949
+ var Else$0 = $TS($S($EXPECT($L114, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12917
12950
  return { $loc, token: $1 };
12918
12951
  });
12919
12952
  function Else(state) {
@@ -12963,7 +12996,7 @@ ${input.slice(result.pos)}
12963
12996
  return result;
12964
12997
  }
12965
12998
  }
12966
- var Export$0 = $TS($S($EXPECT($L116, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12999
+ var Export$0 = $TS($S($EXPECT($L115, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12967
13000
  return { $loc, token: $1 };
12968
13001
  });
12969
13002
  function Export(state) {
@@ -12988,7 +13021,7 @@ ${input.slice(result.pos)}
12988
13021
  return result;
12989
13022
  }
12990
13023
  }
12991
- var Extends$0 = $TS($S($EXPECT($L117, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13024
+ var Extends$0 = $TS($S($EXPECT($L116, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12992
13025
  return { $loc, token: $1 };
12993
13026
  });
12994
13027
  function Extends(state) {
@@ -13013,6 +13046,31 @@ ${input.slice(result.pos)}
13013
13046
  return result;
13014
13047
  }
13015
13048
  }
13049
+ var Finally$0 = $TS($S($EXPECT($L117, fail, 'Finally "finally"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13050
+ return { $loc, token: $1 };
13051
+ });
13052
+ function Finally(state) {
13053
+ let eventData;
13054
+ if (state.events) {
13055
+ const result = state.events.enter?.("Finally", state);
13056
+ if (result) {
13057
+ if (result.cache)
13058
+ return result.cache;
13059
+ eventData = result.data;
13060
+ }
13061
+ }
13062
+ if (state.tokenize) {
13063
+ const result = $TOKEN("Finally", state, Finally$0(state));
13064
+ if (state.events)
13065
+ state.events.exit?.("Finally", state, result, eventData);
13066
+ return result;
13067
+ } else {
13068
+ const result = Finally$0(state);
13069
+ if (state.events)
13070
+ state.events.exit?.("Finally", state, result, eventData);
13071
+ return result;
13072
+ }
13073
+ }
13016
13074
  var For$0 = $TS($S($EXPECT($L118, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13017
13075
  return { $loc, token: $1 };
13018
13076
  });
@@ -13363,7 +13421,7 @@ ${input.slice(result.pos)}
13363
13421
  return result;
13364
13422
  }
13365
13423
  }
13366
- var OpenBracket$0 = $TV($EXPECT($L93, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
13424
+ var OpenBracket$0 = $TV($EXPECT($L92, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
13367
13425
  return { $loc, token: $1 };
13368
13426
  });
13369
13427
  function OpenBracket(state) {
@@ -13716,7 +13774,7 @@ ${input.slice(result.pos)}
13716
13774
  var Static$0 = $TS($S($EXPECT($L139, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13717
13775
  return { $loc, token: $1 };
13718
13776
  });
13719
- 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) {
13777
+ var Static$1 = $TS($S($EXPECT($L96, fail, 'Static "@"'), $N($C($EXPECT($L2, fail, 'Static "("'), $EXPECT($L96, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
13720
13778
  return { $loc, token: "static " };
13721
13779
  });
13722
13780
  function Static(state) {
@@ -16484,7 +16542,7 @@ ${input.slice(result.pos)}
16484
16542
  return result;
16485
16543
  }
16486
16544
  }
16487
- var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L117, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
16545
+ var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L116, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
16488
16546
  if ($2)
16489
16547
  return $0;
16490
16548
  return $1;
@@ -16643,7 +16701,7 @@ ${input.slice(result.pos)}
16643
16701
  return result;
16644
16702
  }
16645
16703
  }
16646
- var FunctionType$0 = $TS($S(Parameters, __, $EXPECT($L7, fail, 'FunctionType "=>"'), $E(Type)), function($skip, $loc, $0, $1, $2, $3, $4) {
16704
+ var FunctionType$0 = $TS($S(Parameters, __, TypeArrowFunction, $E(Type)), function($skip, $loc, $0, $1, $2, $3, $4) {
16647
16705
  var type = $4;
16648
16706
  if (type) {
16649
16707
  return $0;
@@ -16672,6 +16730,34 @@ ${input.slice(result.pos)}
16672
16730
  return result;
16673
16731
  }
16674
16732
  }
16733
+ var TypeArrowFunction$0 = $TV($EXPECT($L7, fail, 'TypeArrowFunction "=>"'), function($skip, $loc, $0, $1) {
16734
+ return { $loc, token: "=>" };
16735
+ });
16736
+ var TypeArrowFunction$1 = $TV($EXPECT($L20, fail, 'TypeArrowFunction "->"'), function($skip, $loc, $0, $1) {
16737
+ return { $loc, token: "=>" };
16738
+ });
16739
+ function TypeArrowFunction(state) {
16740
+ let eventData;
16741
+ if (state.events) {
16742
+ const result = state.events.enter?.("TypeArrowFunction", state);
16743
+ if (result) {
16744
+ if (result.cache)
16745
+ return result.cache;
16746
+ eventData = result.data;
16747
+ }
16748
+ }
16749
+ if (state.tokenize) {
16750
+ const result = $TOKEN("TypeArrowFunction", state, TypeArrowFunction$0(state) || TypeArrowFunction$1(state));
16751
+ if (state.events)
16752
+ state.events.exit?.("TypeArrowFunction", state, result, eventData);
16753
+ return result;
16754
+ } else {
16755
+ const result = TypeArrowFunction$0(state) || TypeArrowFunction$1(state);
16756
+ if (state.events)
16757
+ state.events.exit?.("TypeArrowFunction", state, result, eventData);
16758
+ return result;
16759
+ }
16760
+ }
16675
16761
  var TypeArguments$0 = $TS($S($EXPECT($L128, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L29, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
16676
16762
  return { ts: true, children: $0 };
16677
16763
  });
@@ -16797,7 +16883,7 @@ ${input.slice(result.pos)}
16797
16883
  return result;
16798
16884
  }
16799
16885
  }
16800
- var TypeConstraint$0 = $S(__, $EXPECT($L117, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
16886
+ var TypeConstraint$0 = $S(__, $EXPECT($L116, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
16801
16887
  function TypeConstraint(state) {
16802
16888
  let eventData;
16803
16889
  if (state.events) {
@@ -20242,7 +20328,7 @@ var parse;
20242
20328
  var uncacheable;
20243
20329
  ({ parse } = import_parser.default);
20244
20330
  ({ SourceMap: SourceMap2, base64Encode: base64Encode2 } = util_exports);
20245
- uncacheable = /* @__PURE__ */ new Set(["ActualAssignment", "ApplicationStart", "Arguments", "ArgumentsWithTrailingMemberExpressions", "ArrowFunction", "ArrowFunctionTail", "AssignmentExpression", "AssignmentExpressionTail", "BinaryOpExpression", "BinaryOpRHS", "BracedBlock", "BracedObjectLiteralContent", "BracedOrEmptyBlock", "CallExpression", "CallExpressionRest", "CoffeeCommentEnabled", "CommaDelimiter", "ConditionalExpression", "Declaration", "Debugger", "ElseClause", "Expression", "ExpressionStatement", "ExpressionWithIndentedApplicationSuppressed", "ExtendedExpression", "FatArrowBody", "FunctionDeclaration", "FunctionExpression", "HoistableDeclaration", "ImplicitArguments", "ImplicitInlineObjectPropertyDelimiter", "ImplicitNestedBlock", "IndentedApplicationAllowed", "IndentedFurther", "IndentedJSXChildExpression", "InlineObjectLiteral", "InsertIndent", "JSXChild", "JSXChildren", "JSXElement", "JSXFragment", "JSXImplicitFragment", "JSXMixedChildren", "JSXNested", "JSXNestedChildren", "JSXOptionalClosingElement", "JSXOptionalClosingFragment", "JSXTag", "LeftHandSideExpression", "MemberExpression", "MemberExpressionRest", "Nested", "NestedBindingElement", "NestedBindingElements", "NestedBlockExpression", "NestedBlockExpression", "NestedBlockStatement", "NestedBlockStatements", "NestedElement", "NestedElementList", "NestedImplicitObjectLiteral", "NestedImplicitPropertyDefinition", "NestedImplicitPropertyDefinitions", "NestedInterfaceProperty", "NestedJSXChildExpression", "NestedObject", "NestedPropertyDefinitions", "NonSuppressedTrailingMemberExpressions", "ObjectLiteral", "PopIndent", "PrimaryExpression", "PushIndent", "PushJSXOpeningElement", "PushJSXOpeningFragment", "Samedent", "ShortCircuitExpression", "SingleLineAssignmentExpression", "SingleLineComment", "SingleLineStatements", "SnugNamedProperty", "Statement", "StatementListItem", "SuppressIndentedApplication", "SuppressTrailingMemberProperty", "ThinArrowFunction", "TrackIndented", "TrailingMemberExpressions", "TrailingMemberPropertyAllowed", "TypedJSXElement", "TypedJSXFragment", "UnaryExpression", "UpdateExpression"]);
20331
+ uncacheable = /* @__PURE__ */ new Set(["ActualAssignment", "ApplicationStart", "Arguments", "ArgumentsWithTrailingMemberExpressions", "ArrowFunction", "ArrowFunctionTail", "AssignmentExpression", "AssignmentExpressionTail", "BinaryOpExpression", "BinaryOpRHS", "BracedBlock", "BracedObjectLiteralContent", "BracedOrEmptyBlock", "CallExpression", "CallExpressionRest", "CoffeeCommentEnabled", "CommaDelimiter", "ConditionalExpression", "Declaration", "Debugger", "ElseClause", "Expression", "ExpressionStatement", "ExpressionWithIndentedApplicationSuppressed", "ExtendedExpression", "FatArrowBody", "FunctionDeclaration", "FunctionExpression", "HoistableDeclaration", "ImplicitArguments", "ImplicitInlineObjectPropertyDelimiter", "ImplicitNestedBlock", "IndentedApplicationAllowed", "IndentedFurther", "IndentedJSXChildExpression", "InlineObjectLiteral", "InsertIndent", "JSXChild", "JSXChildren", "JSXElement", "JSXFragment", "JSXImplicitFragment", "JSXMixedChildren", "JSXNested", "JSXNestedChildren", "JSXOptionalClosingElement", "JSXOptionalClosingFragment", "JSXTag", "LeftHandSideExpression", "MemberExpression", "MemberExpressionRest", "Nested", "NestedBindingElement", "NestedBindingElements", "NestedBlockExpression", "NestedBlockExpression", "NestedBlockStatement", "NestedBlockStatements", "NestedElement", "NestedElementList", "NestedImplicitObjectLiteral", "NestedImplicitPropertyDefinition", "NestedImplicitPropertyDefinitions", "NestedInterfaceProperty", "NestedJSXChildExpression", "NestedObject", "NestedPropertyDefinitions", "NonSuppressedTrailingMemberExpressions", "ObjectLiteral", "PopIndent", "PrimaryExpression", "PushIndent", "PushJSXOpeningElement", "PushJSXOpeningFragment", "RHS", "Samedent", "ShortCircuitExpression", "SingleLineAssignmentExpression", "SingleLineComment", "SingleLineStatements", "SnugNamedProperty", "Statement", "StatementListItem", "SuppressIndentedApplication", "SuppressTrailingMemberProperty", "ThinArrowFunction", "TrackIndented", "TrailingMemberExpressions", "TrailingMemberPropertyAllowed", "TypedJSXElement", "TypedJSXFragment", "UnaryExpression", "UpdateExpression"]);
20246
20332
  var compile = function(src, options) {
20247
20333
  var ast, code, events, filename, ref, result, sm, srcMapJSON;
20248
20334
  if (!options) {