@zenuml/core 4.10.1 → 4.10.3

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.
@@ -1,5 +1,5 @@
1
1
  import h from "antlr4";
2
- const M0 = [
2
+ const g0 = [
3
3
  4,
4
4
  0,
5
5
  80,
@@ -12070,7 +12070,7 @@ const M0 = [
12070
12070
  4,
12071
12071
  0,
12072
12072
  0
12073
- ], Z = new h.atn.ATNDeserializer().deserialize(M0), B0 = Z.decisionToState.map((r, t) => new h.dfa.DFA(r, t));
12073
+ ], tt = new h.atn.ATNDeserializer().deserialize(g0), O0 = tt.decisionToState.map((r, t) => new h.dfa.DFA(r, t));
12074
12074
  class a extends h.Lexer {
12075
12075
  static grammarFileName = "sequenceLexer.g4";
12076
12076
  static channelNames = [
@@ -12318,21 +12318,21 @@ class a extends h.Lexer {
12318
12318
  "TITLE_END"
12319
12319
  ];
12320
12320
  constructor(t) {
12321
- super(t), this._interp = new h.atn.LexerATNSimulator(this, Z, B0, new h.PredictionContextCache()), this.isTitle = function() {
12321
+ super(t), this._interp = new h.atn.LexerATNSimulator(this, tt, O0, new h.PredictionContextCache()), this.isTitle = function() {
12322
12322
  const e = this._tokenStartCharIndex;
12323
12323
  if (this._input.getText(0, e - 1).replace(/\/\/[^\n]*(?:\n|$)/g, "").trim().length) return !1;
12324
- const n = 32, c = 9, u = -1, x = 46, C = 61, A = 40;
12325
- let T = 1, _ = this._input.LA(T);
12326
- for (; _ === n || _ === c; )
12327
- ++T, _ = this._input.LA(T);
12328
- return _ === u || _ !== x && _ !== C && _ !== A;
12324
+ const n = 32, c = 9, x = -1, d = 46, A = 61, m = 40;
12325
+ let _ = 1, C = this._input.LA(_);
12326
+ for (; C === n || C === c; )
12327
+ ++_, C = this._input.LA(_);
12328
+ return C === x || C !== d && C !== A && C !== m;
12329
12329
  }, this.isNameStartAhead = function() {
12330
12330
  const e = this._input.LA(1);
12331
12331
  return e !== -1 && /[\p{L}_]/u.test(String.fromCodePoint(e));
12332
12332
  };
12333
12333
  }
12334
12334
  get atn() {
12335
- return Z;
12335
+ return tt;
12336
12336
  }
12337
12337
  }
12338
12338
  a.EOF = h.Token.EOF;
@@ -12964,7 +12964,7 @@ class o extends h.tree.ParseTreeListener {
12964
12964
  exitTextExpr(t) {
12965
12965
  }
12966
12966
  }
12967
- const D0 = [
12967
+ const I0 = [
12968
12968
  4,
12969
12969
  1,
12970
12970
  81,
@@ -19094,7 +19094,7 @@ const D0 = [
19094
19094
  640,
19095
19095
  647,
19096
19096
  656
19097
- ], q = new h.atn.ATNDeserializer().deserialize(D0), P0 = q.decisionToState.map((r, t) => new h.dfa.DFA(r, t)), k0 = new h.PredictionContextCache();
19097
+ ], et = new h.atn.ATNDeserializer().deserialize(I0), H0 = et.decisionToState.map((r, t) => new h.dfa.DFA(r, t)), U0 = new h.PredictionContextCache();
19098
19098
  class i extends h.Parser {
19099
19099
  static grammarFileName = "java-escape";
19100
19100
  static literalNames = [
@@ -19309,10 +19309,10 @@ class i extends h.Parser {
19309
19309
  "textExpr"
19310
19310
  ];
19311
19311
  constructor(t) {
19312
- super(t), this._interp = new h.atn.ParserATNSimulator(this, q, P0, k0), this.ruleNames = i.ruleNames, this.literalNames = i.literalNames, this.symbolicNames = i.symbolicNames;
19312
+ super(t), this._interp = new h.atn.ParserATNSimulator(this, et, H0, U0), this.ruleNames = i.ruleNames, this.literalNames = i.literalNames, this.symbolicNames = i.symbolicNames;
19313
19313
  }
19314
19314
  get atn() {
19315
- return q;
19315
+ return et;
19316
19316
  }
19317
19317
  sempred(t, e, s) {
19318
19318
  switch (e) {
@@ -19529,7 +19529,7 @@ class i extends h.Parser {
19529
19529
  return t;
19530
19530
  }
19531
19531
  participant() {
19532
- let t = new N(this, this._ctx, this.state);
19532
+ let t = new g(this, this._ctx, this.state);
19533
19533
  this.enterRule(t, 12, i.RULE_participant);
19534
19534
  var e = 0;
19535
19535
  try {
@@ -19626,7 +19626,7 @@ class i extends h.Parser {
19626
19626
  return t;
19627
19627
  }
19628
19628
  name() {
19629
- let t = new d(this, this._ctx, this.state);
19629
+ let t = new f(this, this._ctx, this.state);
19630
19630
  this.enterRule(t, 20, i.RULE_name);
19631
19631
  var e = 0;
19632
19632
  try {
@@ -19657,7 +19657,7 @@ class i extends h.Parser {
19657
19657
  return t;
19658
19658
  }
19659
19659
  emoji() {
19660
- let t = new L(this, this._ctx, this.state);
19660
+ let t = new N(this, this._ctx, this.state);
19661
19661
  this.enterRule(t, 24, i.RULE_emoji);
19662
19662
  try {
19663
19663
  switch (this.state = 249, this._errHandler.sync(this), this._input.LA(1)) {
@@ -19777,7 +19777,7 @@ class i extends h.Parser {
19777
19777
  return t;
19778
19778
  }
19779
19779
  dividerNote() {
19780
- let t = new pt(this, this._ctx, this.state);
19780
+ let t = new dt(this, this._ctx, this.state);
19781
19781
  this.enterRule(t, 34, i.RULE_dividerNote);
19782
19782
  try {
19783
19783
  this.enterOuterAlt(t, 1), this.state = 290, this.match(i.DIVIDER);
@@ -19850,7 +19850,7 @@ class i extends h.Parser {
19850
19850
  return t;
19851
19851
  }
19852
19852
  par() {
19853
- let t = new dt(this, this._ctx, this.state);
19853
+ let t = new pt(this, this._ctx, this.state);
19854
19854
  this.enterRule(t, 38, i.RULE_par);
19855
19855
  var e = 0;
19856
19856
  try {
@@ -19953,7 +19953,7 @@ class i extends h.Parser {
19953
19953
  return t;
19954
19954
  }
19955
19955
  creation() {
19956
- let t = new v(this, this._ctx, this.state);
19956
+ let t = new S(this, this._ctx, this.state);
19957
19957
  this.enterRule(t, 46, i.RULE_creation);
19958
19958
  try {
19959
19959
  this.enterOuterAlt(t, 1), this.state = 347, this.creationBody(), this.state = 350, this._errHandler.sync(this);
@@ -20074,7 +20074,7 @@ class i extends h.Parser {
20074
20074
  return t;
20075
20075
  }
20076
20076
  fromTo() {
20077
- let t = new yt(this, this._ctx, this.state);
20077
+ let t = new mt(this, this._ctx, this.state);
20078
20078
  this.enterRule(t, 56, i.RULE_fromTo);
20079
20079
  try {
20080
20080
  this.enterOuterAlt(t, 1), this.state = 412, this._errHandler.sync(this);
@@ -20091,7 +20091,7 @@ class i extends h.Parser {
20091
20091
  return t;
20092
20092
  }
20093
20093
  func() {
20094
- let t = new S(this, this._ctx, this.state);
20094
+ let t = new W(this, this._ctx, this.state);
20095
20095
  this.enterRule(t, 58, i.RULE_func);
20096
20096
  try {
20097
20097
  this.enterOuterAlt(t, 1), this.state = 417, this.signature(), this.state = 422, this._errHandler.sync(this);
@@ -20108,7 +20108,7 @@ class i extends h.Parser {
20108
20108
  return t;
20109
20109
  }
20110
20110
  from() {
20111
- let t = new H(this, this._ctx, this.state);
20111
+ let t = new U(this, this._ctx, this.state);
20112
20112
  this.enterRule(t, 60, i.RULE_from);
20113
20113
  var e = 0;
20114
20114
  try {
@@ -20124,7 +20124,7 @@ class i extends h.Parser {
20124
20124
  return t;
20125
20125
  }
20126
20126
  to() {
20127
- let t = new g(this, this._ctx, this.state);
20127
+ let t = new O(this, this._ctx, this.state);
20128
20128
  this.enterRule(t, 62, i.RULE_to);
20129
20129
  var e = 0;
20130
20130
  try {
@@ -20157,7 +20157,7 @@ class i extends h.Parser {
20157
20157
  return t;
20158
20158
  }
20159
20159
  invocation() {
20160
- let t = new W(this, this._ctx, this.state);
20160
+ let t = new V(this, this._ctx, this.state);
20161
20161
  this.enterRule(t, 66, i.RULE_invocation);
20162
20162
  var e = 0;
20163
20163
  try {
@@ -20173,7 +20173,7 @@ class i extends h.Parser {
20173
20173
  return t;
20174
20174
  }
20175
20175
  assignment() {
20176
- let t = new U(this, this._ctx, this.state);
20176
+ let t = new w(this, this._ctx, this.state);
20177
20177
  this.enterRule(t, 68, i.RULE_assignment);
20178
20178
  try {
20179
20179
  this.enterOuterAlt(t, 1), this.state = 446, this._errHandler.sync(this);
@@ -20190,7 +20190,7 @@ class i extends h.Parser {
20190
20190
  return t;
20191
20191
  }
20192
20192
  asyncMessage() {
20193
- let t = new V(this, this._ctx, this.state);
20193
+ let t = new $(this, this._ctx, this.state);
20194
20194
  this.enterRule(t, 70, i.RULE_asyncMessage);
20195
20195
  var e = 0;
20196
20196
  try {
@@ -20219,7 +20219,7 @@ class i extends h.Parser {
20219
20219
  return t;
20220
20220
  }
20221
20221
  content() {
20222
- let t = new $(this, this._ctx, this.state);
20222
+ let t = new Y(this, this._ctx, this.state);
20223
20223
  this.enterRule(t, 72, i.RULE_content);
20224
20224
  try {
20225
20225
  this.enterOuterAlt(t, 1), this.state = 468, this.match(i.EVENT_PAYLOAD_LXR);
@@ -20234,7 +20234,7 @@ class i extends h.Parser {
20234
20234
  return t;
20235
20235
  }
20236
20236
  construct() {
20237
- let t = new mt(this, this._ctx, this.state);
20237
+ let t = new yt(this, this._ctx, this.state);
20238
20238
  this.enterRule(t, 74, i.RULE_construct);
20239
20239
  try {
20240
20240
  this.enterOuterAlt(t, 1), this.state = 470, this.name();
@@ -20249,7 +20249,7 @@ class i extends h.Parser {
20249
20249
  return t;
20250
20250
  }
20251
20251
  type() {
20252
- let t = new Y(this, this._ctx, this.state);
20252
+ let t = new j(this, this._ctx, this.state);
20253
20253
  this.enterRule(t, 76, i.RULE_type);
20254
20254
  try {
20255
20255
  this.enterOuterAlt(t, 1), this.state = 472, this.name();
@@ -20527,7 +20527,7 @@ class i extends h.Parser {
20527
20527
  return t;
20528
20528
  }
20529
20529
  braceBlock() {
20530
- let t = new f(this, this._ctx, this.state);
20530
+ let t = new R(this, this._ctx, this.state);
20531
20531
  this.enterRule(t, 106, i.RULE_braceBlock);
20532
20532
  var e = 0;
20533
20533
  try {
@@ -20564,13 +20564,13 @@ class i extends h.Parser {
20564
20564
  t === void 0 && (t = 0);
20565
20565
  const e = this._ctx, s = this.state;
20566
20566
  let n = new l(this, this._ctx, s), c = n;
20567
- const u = 110;
20567
+ const x = 110;
20568
20568
  this.enterRecursionRule(n, 110, i.RULE_expr, t);
20569
- var x = 0;
20569
+ var d = 0;
20570
20570
  try {
20571
20571
  this.enterOuterAlt(n, 1), this.state = 597, this._errHandler.sync(this);
20572
- var C = this._interp.adaptivePredict(this._input, 95, this._ctx);
20573
- switch (C) {
20572
+ var A = this._interp.adaptivePredict(this._input, 95, this._ctx);
20573
+ switch (A) {
20574
20574
  case 1:
20575
20575
  n = new Kt(this, n), this._ctx = n, c = n, this.state = 578, this.atom();
20576
20576
  break;
@@ -20581,9 +20581,9 @@ class i extends h.Parser {
20581
20581
  n = new qt(this, n), this._ctx = n, c = n, this.state = 581, this.match(i.NOT), this.state = 582, this.expr(12);
20582
20582
  break;
20583
20583
  case 4:
20584
- n = new jt(this, n), this._ctx = n, c = n, this.state = 586, this._errHandler.sync(this);
20585
- var C = this._interp.adaptivePredict(this._input, 94, this._ctx);
20586
- C === 1 && (this.state = 583, this.to(), this.state = 584, this.match(i.DOT)), this.state = 588, this.func();
20584
+ n = new Qt(this, n), this._ctx = n, c = n, this.state = 586, this._errHandler.sync(this);
20585
+ var A = this._interp.adaptivePredict(this._input, 94, this._ctx);
20586
+ A === 1 && (this.state = 583, this.to(), this.state = 584, this.match(i.DOT)), this.state = 588, this.func();
20587
20587
  break;
20588
20588
  case 5:
20589
20589
  n = new e0(this, n), this._ctx = n, c = n, this.state = 589, this.creation();
@@ -20592,66 +20592,66 @@ class i extends h.Parser {
20592
20592
  n = new i0(this, n), this._ctx = n, c = n, this.state = 590, this.match(i.OPAR), this.state = 591, this.expr(0), this.state = 592, this.match(i.CPAR);
20593
20593
  break;
20594
20594
  case 7:
20595
- n = new Qt(this, n), this._ctx = n, c = n, this.state = 594, this.assignment(), this.state = 595, this.expr(1);
20595
+ n = new jt(this, n), this._ctx = n, c = n, this.state = 594, this.assignment(), this.state = 595, this.expr(1);
20596
20596
  break;
20597
20597
  }
20598
20598
  this._ctx.stop = this._input.LT(-1), this.state = 622, this._errHandler.sync(this);
20599
- for (var A = this._interp.adaptivePredict(this._input, 97, this._ctx); A != 2 && A != h.atn.ATN.INVALID_ALT_NUMBER; ) {
20600
- if (A === 1) {
20599
+ for (var m = this._interp.adaptivePredict(this._input, 97, this._ctx); m != 2 && m != h.atn.ATN.INVALID_ALT_NUMBER; ) {
20600
+ if (m === 1) {
20601
20601
  this._parseListeners !== null && this.triggerExitRuleEvent(), c = n, this.state = 620, this._errHandler.sync(this);
20602
- var C = this._interp.adaptivePredict(this._input, 96, this._ctx);
20603
- switch (C) {
20602
+ var A = this._interp.adaptivePredict(this._input, 96, this._ctx);
20603
+ switch (A) {
20604
20604
  case 1:
20605
- if (n = new s0(this, new l(this, e, s)), this.pushNewRecursionContext(n, u, i.RULE_expr), this.state = 599, !this.precpred(this._ctx, 11))
20605
+ if (n = new s0(this, new l(this, e, s)), this.pushNewRecursionContext(n, x, i.RULE_expr), this.state = 599, !this.precpred(this._ctx, 11))
20606
20606
  throw new h.error.FailedPredicateException(this, "this.precpred(this._ctx, 11)");
20607
- this.state = 600, n.op = this._input.LT(1), x = this._input.LA(1), (x & -32) == 0 && (1 << x & 234881024) !== 0 ? (this._errHandler.reportMatch(this), this.consume()) : n.op = this._errHandler.recoverInline(this), this.state = 601, this.expr(12);
20607
+ this.state = 600, n.op = this._input.LT(1), d = this._input.LA(1), (d & -32) == 0 && (1 << d & 234881024) !== 0 ? (this._errHandler.reportMatch(this), this.consume()) : n.op = this._errHandler.recoverInline(this), this.state = 601, this.expr(12);
20608
20608
  break;
20609
20609
  case 2:
20610
- if (n = new Xt(this, new l(this, e, s)), this.pushNewRecursionContext(n, u, i.RULE_expr), this.state = 602, !this.precpred(this._ctx, 10))
20610
+ if (n = new Xt(this, new l(this, e, s)), this.pushNewRecursionContext(n, x, i.RULE_expr), this.state = 602, !this.precpred(this._ctx, 10))
20611
20611
  throw new h.error.FailedPredicateException(this, "this.precpred(this._ctx, 10)");
20612
- this.state = 603, n.op = this._input.LT(1), x = this._input.LA(1), x === 23 || x === 24 ? (this._errHandler.reportMatch(this), this.consume()) : n.op = this._errHandler.recoverInline(this), this.state = 604, this.expr(11);
20612
+ this.state = 603, n.op = this._input.LT(1), d = this._input.LA(1), d === 23 || d === 24 ? (this._errHandler.reportMatch(this), this.consume()) : n.op = this._errHandler.recoverInline(this), this.state = 604, this.expr(11);
20613
20613
  break;
20614
20614
  case 3:
20615
- if (n = new Jt(this, new l(this, e, s)), this.pushNewRecursionContext(n, u, i.RULE_expr), this.state = 605, !this.precpred(this._ctx, 9))
20615
+ if (n = new Jt(this, new l(this, e, s)), this.pushNewRecursionContext(n, x, i.RULE_expr), this.state = 605, !this.precpred(this._ctx, 9))
20616
20616
  throw new h.error.FailedPredicateException(this, "this.precpred(this._ctx, 9)");
20617
- this.state = 606, n.op = this._input.LT(1), x = this._input.LA(1), (x & -32) == 0 && (1 << x & 7864320) !== 0 ? (this._errHandler.reportMatch(this), this.consume()) : n.op = this._errHandler.recoverInline(this), this.state = 607, this.expr(10);
20617
+ this.state = 606, n.op = this._input.LT(1), d = this._input.LA(1), (d & -32) == 0 && (1 << d & 7864320) !== 0 ? (this._errHandler.reportMatch(this), this.consume()) : n.op = this._errHandler.recoverInline(this), this.state = 607, this.expr(10);
20618
20618
  break;
20619
20619
  case 4:
20620
- if (n = new r0(this, new l(this, e, s)), this.pushNewRecursionContext(n, u, i.RULE_expr), this.state = 608, !this.precpred(this._ctx, 8))
20620
+ if (n = new r0(this, new l(this, e, s)), this.pushNewRecursionContext(n, x, i.RULE_expr), this.state = 608, !this.precpred(this._ctx, 8))
20621
20621
  throw new h.error.FailedPredicateException(this, "this.precpred(this._ctx, 8)");
20622
- this.state = 609, n.op = this._input.LT(1), x = this._input.LA(1), x === 17 || x === 18 ? (this._errHandler.reportMatch(this), this.consume()) : n.op = this._errHandler.recoverInline(this), this.state = 610, this.expr(9);
20622
+ this.state = 609, n.op = this._input.LT(1), d = this._input.LA(1), d === 17 || d === 18 ? (this._errHandler.reportMatch(this), this.consume()) : n.op = this._errHandler.recoverInline(this), this.state = 610, this.expr(9);
20623
20623
  break;
20624
20624
  case 5:
20625
- if (n = new n0(this, new l(this, e, s)), this.pushNewRecursionContext(n, u, i.RULE_expr), this.state = 611, !this.precpred(this._ctx, 7))
20625
+ if (n = new n0(this, new l(this, e, s)), this.pushNewRecursionContext(n, x, i.RULE_expr), this.state = 611, !this.precpred(this._ctx, 7))
20626
20626
  throw new h.error.FailedPredicateException(this, "this.precpred(this._ctx, 7)");
20627
20627
  this.state = 612, this.match(i.AND), this.state = 613, this.expr(8);
20628
20628
  break;
20629
20629
  case 6:
20630
- if (n = new zt(this, new l(this, e, s)), this.pushNewRecursionContext(n, u, i.RULE_expr), this.state = 614, !this.precpred(this._ctx, 6))
20630
+ if (n = new zt(this, new l(this, e, s)), this.pushNewRecursionContext(n, x, i.RULE_expr), this.state = 614, !this.precpred(this._ctx, 6))
20631
20631
  throw new h.error.FailedPredicateException(this, "this.precpred(this._ctx, 6)");
20632
20632
  this.state = 615, this.match(i.OR), this.state = 616, this.expr(7);
20633
20633
  break;
20634
20634
  case 7:
20635
- if (n = new Zt(this, new l(this, e, s)), this.pushNewRecursionContext(n, u, i.RULE_expr), this.state = 617, !this.precpred(this._ctx, 5))
20635
+ if (n = new Zt(this, new l(this, e, s)), this.pushNewRecursionContext(n, x, i.RULE_expr), this.state = 617, !this.precpred(this._ctx, 5))
20636
20636
  throw new h.error.FailedPredicateException(this, "this.precpred(this._ctx, 5)");
20637
20637
  this.state = 618, this.match(i.PLUS), this.state = 619, this.expr(6);
20638
20638
  break;
20639
20639
  }
20640
20640
  }
20641
- this.state = 624, this._errHandler.sync(this), A = this._interp.adaptivePredict(this._input, 97, this._ctx);
20641
+ this.state = 624, this._errHandler.sync(this), m = this._interp.adaptivePredict(this._input, 97, this._ctx);
20642
20642
  }
20643
- } catch (T) {
20644
- if (T instanceof h.error.RecognitionException)
20645
- n.exception = T, this._errHandler.reportError(this, T), this._errHandler.recover(this, T);
20643
+ } catch (_) {
20644
+ if (_ instanceof h.error.RecognitionException)
20645
+ n.exception = _, this._errHandler.reportError(this, _), this._errHandler.recover(this, _);
20646
20646
  else
20647
- throw T;
20647
+ throw _;
20648
20648
  } finally {
20649
20649
  this.unrollRecursionContexts(e);
20650
20650
  }
20651
20651
  return n;
20652
20652
  }
20653
20653
  atom() {
20654
- let t = new R(this, this._ctx, this.state);
20654
+ let t = new E(this, this._ctx, this.state);
20655
20655
  this.enterRule(t, 112, i.RULE_atom);
20656
20656
  var e = 0;
20657
20657
  try {
@@ -20674,7 +20674,7 @@ class i extends h.Parser {
20674
20674
  t = new o0(this, t), this.enterOuterAlt(t, 5), this.state = 629, this.match(i.ID);
20675
20675
  break;
20676
20676
  case 67:
20677
- t = new p0(this, t), this.enterOuterAlt(t, 6), this.state = 630, this.match(i.DIGIT_LEADING_NAME);
20677
+ t = new d0(this, t), this.enterOuterAlt(t, 6), this.state = 630, this.match(i.DIGIT_LEADING_NAME);
20678
20678
  break;
20679
20679
  case 68:
20680
20680
  case 69:
@@ -20956,7 +20956,8 @@ let Yt = class extends h.ParserRuleContext {
20956
20956
  exitRule(t) {
20957
20957
  t instanceof o && t.exitProg(this);
20958
20958
  }
20959
- }, it = class extends h.ParserRuleContext {
20959
+ };
20960
+ class it extends h.ParserRuleContext {
20960
20961
  constructor(t, e, s) {
20961
20962
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_title;
20962
20963
  }
@@ -20975,7 +20976,7 @@ let Yt = class extends h.ParserRuleContext {
20975
20976
  exitRule(t) {
20976
20977
  t instanceof o && t.exitTitle(this);
20977
20978
  }
20978
- };
20979
+ }
20979
20980
  class st extends h.ParserRuleContext {
20980
20981
  constructor(t, e, s) {
20981
20982
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_head;
@@ -20984,7 +20985,7 @@ class st extends h.ParserRuleContext {
20984
20985
  return t === void 0 && (t = null), t === null ? this.getTypedRuleContexts(B) : this.getTypedRuleContext(B, t);
20985
20986
  };
20986
20987
  participant = function(t) {
20987
- return t === void 0 && (t = null), t === null ? this.getTypedRuleContexts(N) : this.getTypedRuleContext(N, t);
20988
+ return t === void 0 && (t = null), t === null ? this.getTypedRuleContexts(g) : this.getTypedRuleContext(g, t);
20988
20989
  };
20989
20990
  starterExp() {
20990
20991
  return this.getTypedRuleContext(rt, 0);
@@ -21004,13 +21005,13 @@ class B extends h.ParserRuleContext {
21004
21005
  return this.getToken(i.GROUP, 0);
21005
21006
  }
21006
21007
  name() {
21007
- return this.getTypedRuleContext(d, 0);
21008
+ return this.getTypedRuleContext(f, 0);
21008
21009
  }
21009
21010
  OBRACE() {
21010
21011
  return this.getToken(i.OBRACE, 0);
21011
21012
  }
21012
21013
  participant = function(t) {
21013
- return t === void 0 && (t = null), t === null ? this.getTypedRuleContexts(N) : this.getTypedRuleContext(N, t);
21014
+ return t === void 0 && (t = null), t === null ? this.getTypedRuleContexts(g) : this.getTypedRuleContext(g, t);
21014
21015
  };
21015
21016
  CBRACE() {
21016
21017
  return this.getToken(i.CBRACE, 0);
@@ -21053,7 +21054,7 @@ class nt extends h.ParserRuleContext {
21053
21054
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_starter;
21054
21055
  }
21055
21056
  name() {
21056
- return this.getTypedRuleContext(d, 0);
21057
+ return this.getTypedRuleContext(f, 0);
21057
21058
  }
21058
21059
  enterRule(t) {
21059
21060
  t instanceof o && t.enterStarter(this);
@@ -21062,12 +21063,12 @@ class nt extends h.ParserRuleContext {
21062
21063
  t instanceof o && t.exitStarter(this);
21063
21064
  }
21064
21065
  }
21065
- class N extends h.ParserRuleContext {
21066
+ class g extends h.ParserRuleContext {
21066
21067
  constructor(t, e, s) {
21067
21068
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_participant;
21068
21069
  }
21069
21070
  name() {
21070
- return this.getTypedRuleContext(d, 0);
21071
+ return this.getTypedRuleContext(f, 0);
21071
21072
  }
21072
21073
  participantType() {
21073
21074
  return this.getTypedRuleContext(at, 0);
@@ -21076,7 +21077,7 @@ class N extends h.ParserRuleContext {
21076
21077
  return this.getTypedRuleContext(ht, 0);
21077
21078
  }
21078
21079
  emoji() {
21079
- return this.getTypedRuleContext(L, 0);
21080
+ return this.getTypedRuleContext(N, 0);
21080
21081
  }
21081
21082
  width() {
21082
21083
  return this.getTypedRuleContext(ct, 0);
@@ -21102,7 +21103,7 @@ class ht extends h.ParserRuleContext {
21102
21103
  return this.getToken(i.SOPEN, 0);
21103
21104
  }
21104
21105
  name() {
21105
- return this.getTypedRuleContext(d, 0);
21106
+ return this.getTypedRuleContext(f, 0);
21106
21107
  }
21107
21108
  SCLOSE() {
21108
21109
  return this.getToken(i.SCLOSE, 0);
@@ -21128,7 +21129,7 @@ class ot extends h.ParserRuleContext {
21128
21129
  return this.getToken(i.AS, 0);
21129
21130
  }
21130
21131
  name() {
21131
- return this.getTypedRuleContext(d, 0);
21132
+ return this.getTypedRuleContext(f, 0);
21132
21133
  }
21133
21134
  enterRule(t) {
21134
21135
  t instanceof o && t.enterLabel(this);
@@ -21151,7 +21152,7 @@ class at extends h.ParserRuleContext {
21151
21152
  t instanceof o && t.exitParticipantType(this);
21152
21153
  }
21153
21154
  }
21154
- class d extends h.ParserRuleContext {
21155
+ class f extends h.ParserRuleContext {
21155
21156
  constructor(t, e, s) {
21156
21157
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_name;
21157
21158
  }
@@ -21188,7 +21189,7 @@ class ct extends h.ParserRuleContext {
21188
21189
  t instanceof o && t.exitWidth(this);
21189
21190
  }
21190
21191
  }
21191
- class L extends h.ParserRuleContext {
21192
+ class N extends h.ParserRuleContext {
21192
21193
  constructor(t, e, s) {
21193
21194
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_emoji;
21194
21195
  }
@@ -21196,7 +21197,7 @@ class L extends h.ParserRuleContext {
21196
21197
  return this.getToken(i.LBRACKET, 0);
21197
21198
  }
21198
21199
  name() {
21199
- return this.getTypedRuleContext(d, 0);
21200
+ return this.getTypedRuleContext(f, 0);
21200
21201
  }
21201
21202
  RBRACKET() {
21202
21203
  return this.getToken(i.RBRACKET, 0);
@@ -21225,7 +21226,7 @@ class G extends h.ParserRuleContext {
21225
21226
  t instanceof o && t.exitBlock(this);
21226
21227
  }
21227
21228
  }
21228
- let lt = class extends h.ParserRuleContext {
21229
+ class lt extends h.ParserRuleContext {
21229
21230
  constructor(t, e, s) {
21230
21231
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_ret;
21231
21232
  }
@@ -21242,7 +21243,7 @@ let lt = class extends h.ParserRuleContext {
21242
21243
  return this.getToken(i.ANNOTATION_RET, 0);
21243
21244
  }
21244
21245
  asyncMessage() {
21245
- return this.getTypedRuleContext(V, 0);
21246
+ return this.getTypedRuleContext($, 0);
21246
21247
  }
21247
21248
  EVENT_END() {
21248
21249
  return this.getToken(i.EVENT_END, 0);
@@ -21256,24 +21257,25 @@ let lt = class extends h.ParserRuleContext {
21256
21257
  exitRule(t) {
21257
21258
  t instanceof o && t.exitRet(this);
21258
21259
  }
21259
- }, ut = class extends h.ParserRuleContext {
21260
+ }
21261
+ let ut = class extends h.ParserRuleContext {
21260
21262
  constructor(t, e, s) {
21261
21263
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_returnAsyncMessage;
21262
21264
  }
21263
21265
  from() {
21264
- return this.getTypedRuleContext(H, 0);
21266
+ return this.getTypedRuleContext(U, 0);
21265
21267
  }
21266
21268
  RETURN_ARROW() {
21267
21269
  return this.getToken(i.RETURN_ARROW, 0);
21268
21270
  }
21269
21271
  to() {
21270
- return this.getTypedRuleContext(g, 0);
21272
+ return this.getTypedRuleContext(O, 0);
21271
21273
  }
21272
21274
  COL() {
21273
21275
  return this.getToken(i.COL, 0);
21274
21276
  }
21275
21277
  content() {
21276
- return this.getTypedRuleContext($, 0);
21278
+ return this.getTypedRuleContext(Y, 0);
21277
21279
  }
21278
21280
  enterRule(t) {
21279
21281
  t instanceof o && t.enterReturnAsyncMessage(this);
@@ -21286,7 +21288,7 @@ let lt = class extends h.ParserRuleContext {
21286
21288
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_divider;
21287
21289
  }
21288
21290
  dividerNote() {
21289
- return this.getTypedRuleContext(pt, 0);
21291
+ return this.getTypedRuleContext(dt, 0);
21290
21292
  }
21291
21293
  enterRule(t) {
21292
21294
  t instanceof o && t.enterDivider(this);
@@ -21295,7 +21297,7 @@ let lt = class extends h.ParserRuleContext {
21295
21297
  t instanceof o && t.exitDivider(this);
21296
21298
  }
21297
21299
  };
21298
- class pt extends h.ParserRuleContext {
21300
+ class dt extends h.ParserRuleContext {
21299
21301
  constructor(t, e, s) {
21300
21302
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_dividerNote;
21301
21303
  }
@@ -21317,7 +21319,7 @@ let D = class extends h.ParserRuleContext {
21317
21319
  return this.getTypedRuleContext(wt, 0);
21318
21320
  }
21319
21321
  par() {
21320
- return this.getTypedRuleContext(dt, 0);
21322
+ return this.getTypedRuleContext(pt, 0);
21321
21323
  }
21322
21324
  opt() {
21323
21325
  return this.getTypedRuleContext(ft, 0);
@@ -21335,13 +21337,13 @@ let D = class extends h.ParserRuleContext {
21335
21337
  return this.getTypedRuleContext(Dt, 0);
21336
21338
  }
21337
21339
  creation() {
21338
- return this.getTypedRuleContext(v, 0);
21340
+ return this.getTypedRuleContext(S, 0);
21339
21341
  }
21340
21342
  message() {
21341
21343
  return this.getTypedRuleContext(Ct, 0);
21342
21344
  }
21343
21345
  asyncMessage() {
21344
- return this.getTypedRuleContext(V, 0);
21346
+ return this.getTypedRuleContext($, 0);
21345
21347
  }
21346
21348
  EVENT_END() {
21347
21349
  return this.getToken(i.EVENT_END, 0);
@@ -21362,7 +21364,7 @@ let D = class extends h.ParserRuleContext {
21362
21364
  t instanceof o && t.exitStat(this);
21363
21365
  }
21364
21366
  };
21365
- class dt extends h.ParserRuleContext {
21367
+ class pt extends h.ParserRuleContext {
21366
21368
  constructor(t, e, s) {
21367
21369
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_par;
21368
21370
  }
@@ -21370,7 +21372,7 @@ class dt extends h.ParserRuleContext {
21370
21372
  return this.getToken(i.PAR, 0);
21371
21373
  }
21372
21374
  braceBlock() {
21373
- return this.getTypedRuleContext(f, 0);
21375
+ return this.getTypedRuleContext(R, 0);
21374
21376
  }
21375
21377
  parExpr() {
21376
21378
  return this.getTypedRuleContext(y, 0);
@@ -21390,7 +21392,7 @@ class ft extends h.ParserRuleContext {
21390
21392
  return this.getToken(i.OPT, 0);
21391
21393
  }
21392
21394
  braceBlock() {
21393
- return this.getTypedRuleContext(f, 0);
21395
+ return this.getTypedRuleContext(R, 0);
21394
21396
  }
21395
21397
  parExpr() {
21396
21398
  return this.getTypedRuleContext(y, 0);
@@ -21410,7 +21412,7 @@ class Rt extends h.ParserRuleContext {
21410
21412
  return this.getToken(i.CRITICAL, 0);
21411
21413
  }
21412
21414
  braceBlock() {
21413
- return this.getTypedRuleContext(f, 0);
21415
+ return this.getTypedRuleContext(R, 0);
21414
21416
  }
21415
21417
  parExpr() {
21416
21418
  return this.getTypedRuleContext(y, 0);
@@ -21430,7 +21432,7 @@ class Et extends h.ParserRuleContext {
21430
21432
  return this.getToken(i.SECTION, 0);
21431
21433
  }
21432
21434
  braceBlock() {
21433
- return this.getTypedRuleContext(f, 0);
21435
+ return this.getTypedRuleContext(R, 0);
21434
21436
  }
21435
21437
  OPAR() {
21436
21438
  return this.getToken(i.OPAR, 0);
@@ -21439,7 +21441,7 @@ class Et extends h.ParserRuleContext {
21439
21441
  return this.getToken(i.CPAR, 0);
21440
21442
  }
21441
21443
  atom() {
21442
- return this.getTypedRuleContext(R, 0);
21444
+ return this.getTypedRuleContext(E, 0);
21443
21445
  }
21444
21446
  enterRule(t) {
21445
21447
  t instanceof o && t.enterSection(this);
@@ -21448,7 +21450,7 @@ class Et extends h.ParserRuleContext {
21448
21450
  t instanceof o && t.exitSection(this);
21449
21451
  }
21450
21452
  }
21451
- let v = class extends h.ParserRuleContext {
21453
+ let S = class extends h.ParserRuleContext {
21452
21454
  constructor(t, e, s) {
21453
21455
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_creation;
21454
21456
  }
@@ -21459,7 +21461,7 @@ let v = class extends h.ParserRuleContext {
21459
21461
  return this.getToken(i.SCOL, 0);
21460
21462
  }
21461
21463
  braceBlock() {
21462
- return this.getTypedRuleContext(f, 0);
21464
+ return this.getTypedRuleContext(R, 0);
21463
21465
  }
21464
21466
  enterRule(t) {
21465
21467
  t instanceof o && t.enterCreation(this);
@@ -21481,7 +21483,7 @@ let v = class extends h.ParserRuleContext {
21481
21483
  return this.getToken(i.CPAR, 0);
21482
21484
  }
21483
21485
  name = function(t) {
21484
- return t === void 0 && (t = null), t === null ? this.getTypedRuleContexts(d) : this.getTypedRuleContext(d, t);
21486
+ return t === void 0 && (t = null), t === null ? this.getTypedRuleContexts(f) : this.getTypedRuleContext(f, t);
21485
21487
  };
21486
21488
  SCOL() {
21487
21489
  return this.getToken(i.SCOL, 0);
@@ -21504,10 +21506,10 @@ class _t extends h.ParserRuleContext {
21504
21506
  return this.getToken(i.NEW, 0);
21505
21507
  }
21506
21508
  construct() {
21507
- return this.getTypedRuleContext(mt, 0);
21509
+ return this.getTypedRuleContext(yt, 0);
21508
21510
  }
21509
21511
  assignment() {
21510
- return this.getTypedRuleContext(U, 0);
21512
+ return this.getTypedRuleContext(w, 0);
21511
21513
  }
21512
21514
  OPAR() {
21513
21515
  return this.getToken(i.OPAR, 0);
@@ -21536,7 +21538,7 @@ let Ct = class extends h.ParserRuleContext {
21536
21538
  return this.getToken(i.SCOL, 0);
21537
21539
  }
21538
21540
  braceBlock() {
21539
- return this.getTypedRuleContext(f, 0);
21541
+ return this.getTypedRuleContext(R, 0);
21540
21542
  }
21541
21543
  enterRule(t) {
21542
21544
  t instanceof o && t.enterMessage(this);
@@ -21550,13 +21552,13 @@ class At extends h.ParserRuleContext {
21550
21552
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_messageBody;
21551
21553
  }
21552
21554
  assignment() {
21553
- return this.getTypedRuleContext(U, 0);
21555
+ return this.getTypedRuleContext(w, 0);
21554
21556
  }
21555
21557
  fromTo() {
21556
- return this.getTypedRuleContext(yt, 0);
21558
+ return this.getTypedRuleContext(mt, 0);
21557
21559
  }
21558
21560
  func() {
21559
- return this.getTypedRuleContext(S, 0);
21561
+ return this.getTypedRuleContext(W, 0);
21560
21562
  }
21561
21563
  enterRule(t) {
21562
21564
  t instanceof o && t.enterMessageBody(this);
@@ -21565,18 +21567,18 @@ class At extends h.ParserRuleContext {
21565
21567
  t instanceof o && t.exitMessageBody(this);
21566
21568
  }
21567
21569
  }
21568
- class yt extends h.ParserRuleContext {
21570
+ class mt extends h.ParserRuleContext {
21569
21571
  constructor(t, e, s) {
21570
21572
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_fromTo;
21571
21573
  }
21572
21574
  to() {
21573
- return this.getTypedRuleContext(g, 0);
21575
+ return this.getTypedRuleContext(O, 0);
21574
21576
  }
21575
21577
  DOT() {
21576
21578
  return this.getToken(i.DOT, 0);
21577
21579
  }
21578
21580
  from() {
21579
- return this.getTypedRuleContext(H, 0);
21581
+ return this.getTypedRuleContext(U, 0);
21580
21582
  }
21581
21583
  ARROW() {
21582
21584
  return this.getToken(i.ARROW, 0);
@@ -21588,7 +21590,7 @@ class yt extends h.ParserRuleContext {
21588
21590
  t instanceof o && t.exitFromTo(this);
21589
21591
  }
21590
21592
  }
21591
- class S extends h.ParserRuleContext {
21593
+ class W extends h.ParserRuleContext {
21592
21594
  constructor(t, e, s) {
21593
21595
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_func;
21594
21596
  }
@@ -21605,15 +21607,15 @@ class S extends h.ParserRuleContext {
21605
21607
  t instanceof o && t.exitFunc(this);
21606
21608
  }
21607
21609
  }
21608
- class H extends h.ParserRuleContext {
21610
+ class U extends h.ParserRuleContext {
21609
21611
  constructor(t, e, s) {
21610
21612
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_from;
21611
21613
  }
21612
21614
  name() {
21613
- return this.getTypedRuleContext(d, 0);
21615
+ return this.getTypedRuleContext(f, 0);
21614
21616
  }
21615
21617
  emoji() {
21616
- return this.getTypedRuleContext(L, 0);
21618
+ return this.getTypedRuleContext(N, 0);
21617
21619
  }
21618
21620
  enterRule(t) {
21619
21621
  t instanceof o && t.enterFrom(this);
@@ -21622,15 +21624,15 @@ class H extends h.ParserRuleContext {
21622
21624
  t instanceof o && t.exitFrom(this);
21623
21625
  }
21624
21626
  }
21625
- class g extends h.ParserRuleContext {
21627
+ class O extends h.ParserRuleContext {
21626
21628
  constructor(t, e, s) {
21627
21629
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_to;
21628
21630
  }
21629
21631
  name() {
21630
- return this.getTypedRuleContext(d, 0);
21632
+ return this.getTypedRuleContext(f, 0);
21631
21633
  }
21632
21634
  emoji() {
21633
- return this.getTypedRuleContext(L, 0);
21635
+ return this.getTypedRuleContext(N, 0);
21634
21636
  }
21635
21637
  enterRule(t) {
21636
21638
  t instanceof o && t.enterTo(this);
@@ -21647,7 +21649,7 @@ class P extends h.ParserRuleContext {
21647
21649
  return this.getTypedRuleContext(Nt, 0);
21648
21650
  }
21649
21651
  invocation() {
21650
- return this.getTypedRuleContext(W, 0);
21652
+ return this.getTypedRuleContext(V, 0);
21651
21653
  }
21652
21654
  enterRule(t) {
21653
21655
  t instanceof o && t.enterSignature(this);
@@ -21656,7 +21658,7 @@ class P extends h.ParserRuleContext {
21656
21658
  t instanceof o && t.exitSignature(this);
21657
21659
  }
21658
21660
  }
21659
- class W extends h.ParserRuleContext {
21661
+ class V extends h.ParserRuleContext {
21660
21662
  constructor(t, e, s) {
21661
21663
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_invocation;
21662
21664
  }
@@ -21676,7 +21678,7 @@ class W extends h.ParserRuleContext {
21676
21678
  t instanceof o && t.exitInvocation(this);
21677
21679
  }
21678
21680
  }
21679
- class U extends h.ParserRuleContext {
21681
+ class w extends h.ParserRuleContext {
21680
21682
  constructor(t, e, s) {
21681
21683
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_assignment;
21682
21684
  }
@@ -21687,7 +21689,7 @@ class U extends h.ParserRuleContext {
21687
21689
  return this.getToken(i.ASSIGN, 0);
21688
21690
  }
21689
21691
  type() {
21690
- return this.getTypedRuleContext(Y, 0);
21692
+ return this.getTypedRuleContext(j, 0);
21691
21693
  }
21692
21694
  enterRule(t) {
21693
21695
  t instanceof o && t.enterAssignment(this);
@@ -21696,24 +21698,24 @@ class U extends h.ParserRuleContext {
21696
21698
  t instanceof o && t.exitAssignment(this);
21697
21699
  }
21698
21700
  }
21699
- let V = class extends h.ParserRuleContext {
21701
+ let $ = class extends h.ParserRuleContext {
21700
21702
  constructor(t, e, s) {
21701
21703
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_asyncMessage;
21702
21704
  }
21703
21705
  to() {
21704
- return this.getTypedRuleContext(g, 0);
21706
+ return this.getTypedRuleContext(O, 0);
21705
21707
  }
21706
21708
  COL() {
21707
21709
  return this.getToken(i.COL, 0);
21708
21710
  }
21709
21711
  from() {
21710
- return this.getTypedRuleContext(H, 0);
21712
+ return this.getTypedRuleContext(U, 0);
21711
21713
  }
21712
21714
  ARROW() {
21713
21715
  return this.getToken(i.ARROW, 0);
21714
21716
  }
21715
21717
  content() {
21716
- return this.getTypedRuleContext($, 0);
21718
+ return this.getTypedRuleContext(Y, 0);
21717
21719
  }
21718
21720
  MINUS() {
21719
21721
  return this.getToken(i.MINUS, 0);
@@ -21725,7 +21727,7 @@ let V = class extends h.ParserRuleContext {
21725
21727
  t instanceof o && t.exitAsyncMessage(this);
21726
21728
  }
21727
21729
  };
21728
- class $ extends h.ParserRuleContext {
21730
+ class Y extends h.ParserRuleContext {
21729
21731
  constructor(t, e, s) {
21730
21732
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_content;
21731
21733
  }
@@ -21739,12 +21741,12 @@ class $ extends h.ParserRuleContext {
21739
21741
  t instanceof o && t.exitContent(this);
21740
21742
  }
21741
21743
  }
21742
- class mt extends h.ParserRuleContext {
21744
+ class yt extends h.ParserRuleContext {
21743
21745
  constructor(t, e, s) {
21744
21746
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_construct;
21745
21747
  }
21746
21748
  name() {
21747
- return this.getTypedRuleContext(d, 0);
21749
+ return this.getTypedRuleContext(f, 0);
21748
21750
  }
21749
21751
  enterRule(t) {
21750
21752
  t instanceof o && t.enterConstruct(this);
@@ -21753,12 +21755,12 @@ class mt extends h.ParserRuleContext {
21753
21755
  t instanceof o && t.exitConstruct(this);
21754
21756
  }
21755
21757
  }
21756
- class Y extends h.ParserRuleContext {
21758
+ class j extends h.ParserRuleContext {
21757
21759
  constructor(t, e, s) {
21758
21760
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_type;
21759
21761
  }
21760
21762
  name() {
21761
- return this.getTypedRuleContext(d, 0);
21763
+ return this.getTypedRuleContext(f, 0);
21762
21764
  }
21763
21765
  enterRule(t) {
21764
21766
  t instanceof o && t.enterType(this);
@@ -21772,7 +21774,7 @@ class Lt extends h.ParserRuleContext {
21772
21774
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_assignee;
21773
21775
  }
21774
21776
  atom() {
21775
- return this.getTypedRuleContext(R, 0);
21777
+ return this.getTypedRuleContext(E, 0);
21776
21778
  }
21777
21779
  ID = function(t) {
21778
21780
  return t === void 0 && (t = null), t === null ? this.getTokens(i.ID) : this.getToken(i.ID, t);
@@ -21804,10 +21806,10 @@ class Nt extends h.ParserRuleContext {
21804
21806
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_methodName;
21805
21807
  }
21806
21808
  name() {
21807
- return this.getTypedRuleContext(d, 0);
21809
+ return this.getTypedRuleContext(f, 0);
21808
21810
  }
21809
21811
  emoji() {
21810
- return this.getTypedRuleContext(L, 0);
21812
+ return this.getTypedRuleContext(N, 0);
21811
21813
  }
21812
21814
  enterRule(t) {
21813
21815
  t instanceof o && t.enterMethodName(this);
@@ -21816,7 +21818,7 @@ class Nt extends h.ParserRuleContext {
21816
21818
  t instanceof o && t.exitMethodName(this);
21817
21819
  }
21818
21820
  }
21819
- let Q = class extends h.ParserRuleContext {
21821
+ class Q extends h.ParserRuleContext {
21820
21822
  constructor(t, e, s) {
21821
21823
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_parameters;
21822
21824
  }
@@ -21832,7 +21834,7 @@ let Q = class extends h.ParserRuleContext {
21832
21834
  exitRule(t) {
21833
21835
  t instanceof o && t.exitParameters(this);
21834
21836
  }
21835
- };
21837
+ }
21836
21838
  class k extends h.ParserRuleContext {
21837
21839
  constructor(t, e, s) {
21838
21840
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_parameter;
@@ -21881,7 +21883,7 @@ class Ot extends h.ParserRuleContext {
21881
21883
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_declaration;
21882
21884
  }
21883
21885
  type() {
21884
- return this.getTypedRuleContext(Y, 0);
21886
+ return this.getTypedRuleContext(j, 0);
21885
21887
  }
21886
21888
  ID() {
21887
21889
  return this.getToken(i.ID, 0);
@@ -21924,7 +21926,7 @@ class Ht extends h.ParserRuleContext {
21924
21926
  return this.getToken(i.TRY, 0);
21925
21927
  }
21926
21928
  braceBlock() {
21927
- return this.getTypedRuleContext(f, 0);
21929
+ return this.getTypedRuleContext(R, 0);
21928
21930
  }
21929
21931
  enterRule(t) {
21930
21932
  t instanceof o && t.enterTryBlock(this);
@@ -21941,10 +21943,10 @@ class b extends h.ParserRuleContext {
21941
21943
  return this.getToken(i.CATCH, 0);
21942
21944
  }
21943
21945
  braceBlock() {
21944
- return this.getTypedRuleContext(f, 0);
21946
+ return this.getTypedRuleContext(R, 0);
21945
21947
  }
21946
21948
  invocation() {
21947
- return this.getTypedRuleContext(W, 0);
21949
+ return this.getTypedRuleContext(V, 0);
21948
21950
  }
21949
21951
  enterRule(t) {
21950
21952
  t instanceof o && t.enterCatchBlock(this);
@@ -21961,7 +21963,7 @@ class Ut extends h.ParserRuleContext {
21961
21963
  return this.getToken(i.FINALLY, 0);
21962
21964
  }
21963
21965
  braceBlock() {
21964
- return this.getTypedRuleContext(f, 0);
21966
+ return this.getTypedRuleContext(R, 0);
21965
21967
  }
21966
21968
  enterRule(t) {
21967
21969
  t instanceof o && t.enterFinallyBlock(this);
@@ -22001,7 +22003,7 @@ let Mt = class extends h.ParserRuleContext {
22001
22003
  return this.getTypedRuleContext(y, 0);
22002
22004
  }
22003
22005
  braceBlock() {
22004
- return this.getTypedRuleContext(f, 0);
22006
+ return this.getTypedRuleContext(R, 0);
22005
22007
  }
22006
22008
  enterRule(t) {
22007
22009
  t instanceof o && t.enterIfBlock(this);
@@ -22024,7 +22026,7 @@ class F extends h.ParserRuleContext {
22024
22026
  return this.getTypedRuleContext(y, 0);
22025
22027
  }
22026
22028
  braceBlock() {
22027
- return this.getTypedRuleContext(f, 0);
22029
+ return this.getTypedRuleContext(R, 0);
22028
22030
  }
22029
22031
  enterRule(t) {
22030
22032
  t instanceof o && t.enterElseIfBlock(this);
@@ -22041,7 +22043,7 @@ class Bt extends h.ParserRuleContext {
22041
22043
  return this.getToken(i.ELSE, 0);
22042
22044
  }
22043
22045
  braceBlock() {
22044
- return this.getTypedRuleContext(f, 0);
22046
+ return this.getTypedRuleContext(R, 0);
22045
22047
  }
22046
22048
  enterRule(t) {
22047
22049
  t instanceof o && t.enterElseBlock(this);
@@ -22050,7 +22052,7 @@ class Bt extends h.ParserRuleContext {
22050
22052
  t instanceof o && t.exitElseBlock(this);
22051
22053
  }
22052
22054
  }
22053
- class f extends h.ParserRuleContext {
22055
+ class R extends h.ParserRuleContext {
22054
22056
  constructor(t, e, s) {
22055
22057
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_braceBlock;
22056
22058
  }
@@ -22081,7 +22083,7 @@ let Dt = class extends h.ParserRuleContext {
22081
22083
  return this.getTypedRuleContext(y, 0);
22082
22084
  }
22083
22085
  braceBlock() {
22084
- return this.getTypedRuleContext(f, 0);
22086
+ return this.getTypedRuleContext(R, 0);
22085
22087
  }
22086
22088
  enterRule(t) {
22087
22089
  t instanceof o && t.enterLoop(this);
@@ -22098,12 +22100,12 @@ class l extends h.ParserRuleContext {
22098
22100
  super.copyFrom(t);
22099
22101
  }
22100
22102
  }
22101
- class Qt extends l {
22103
+ class jt extends l {
22102
22104
  constructor(t, e) {
22103
22105
  super(t), super.copyFrom(e);
22104
22106
  }
22105
22107
  assignment() {
22106
- return this.getTypedRuleContext(U, 0);
22108
+ return this.getTypedRuleContext(w, 0);
22107
22109
  }
22108
22110
  expr() {
22109
22111
  return this.getTypedRuleContext(l, 0);
@@ -22115,16 +22117,16 @@ class Qt extends l {
22115
22117
  t instanceof o && t.exitAssignmentExpr(this);
22116
22118
  }
22117
22119
  }
22118
- i.AssignmentExprContext = Qt;
22119
- class jt extends l {
22120
+ i.AssignmentExprContext = jt;
22121
+ class Qt extends l {
22120
22122
  constructor(t, e) {
22121
22123
  super(t), super.copyFrom(e);
22122
22124
  }
22123
22125
  func() {
22124
- return this.getTypedRuleContext(S, 0);
22126
+ return this.getTypedRuleContext(W, 0);
22125
22127
  }
22126
22128
  to() {
22127
- return this.getTypedRuleContext(g, 0);
22129
+ return this.getTypedRuleContext(O, 0);
22128
22130
  }
22129
22131
  DOT() {
22130
22132
  return this.getToken(i.DOT, 0);
@@ -22136,13 +22138,13 @@ class jt extends l {
22136
22138
  t instanceof o && t.exitFuncExpr(this);
22137
22139
  }
22138
22140
  }
22139
- i.FuncExprContext = jt;
22141
+ i.FuncExprContext = Qt;
22140
22142
  class Kt extends l {
22141
22143
  constructor(t, e) {
22142
22144
  super(t), super.copyFrom(e);
22143
22145
  }
22144
22146
  atom() {
22145
- return this.getTypedRuleContext(R, 0);
22147
+ return this.getTypedRuleContext(E, 0);
22146
22148
  }
22147
22149
  enterRule(t) {
22148
22150
  t instanceof o && t.enterAtomExpr(this);
@@ -22277,7 +22279,7 @@ class e0 extends l {
22277
22279
  super(t), super.copyFrom(e);
22278
22280
  }
22279
22281
  creation() {
22280
- return this.getTypedRuleContext(v, 0);
22282
+ return this.getTypedRuleContext(S, 0);
22281
22283
  }
22282
22284
  enterRule(t) {
22283
22285
  t instanceof o && t.enterCreationExpr(this);
@@ -22371,7 +22373,7 @@ class n0 extends l {
22371
22373
  }
22372
22374
  }
22373
22375
  i.AndExprContext = n0;
22374
- class R extends h.ParserRuleContext {
22376
+ class E extends h.ParserRuleContext {
22375
22377
  constructor(t, e, s) {
22376
22378
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_atom;
22377
22379
  }
@@ -22379,7 +22381,7 @@ class R extends h.ParserRuleContext {
22379
22381
  super.copyFrom(t);
22380
22382
  }
22381
22383
  }
22382
- class h0 extends R {
22384
+ class h0 extends E {
22383
22385
  constructor(t, e) {
22384
22386
  super(t), super.copyFrom(e);
22385
22387
  }
@@ -22397,7 +22399,7 @@ class h0 extends R {
22397
22399
  }
22398
22400
  }
22399
22401
  i.BooleanAtomContext = h0;
22400
- class o0 extends R {
22402
+ class o0 extends E {
22401
22403
  constructor(t, e) {
22402
22404
  super(t), super.copyFrom(e);
22403
22405
  }
@@ -22412,7 +22414,7 @@ class o0 extends R {
22412
22414
  }
22413
22415
  }
22414
22416
  i.IdAtomContext = o0;
22415
- class a0 extends R {
22417
+ class a0 extends E {
22416
22418
  constructor(t, e) {
22417
22419
  super(t), super.copyFrom(e);
22418
22420
  }
@@ -22427,7 +22429,7 @@ class a0 extends R {
22427
22429
  }
22428
22430
  }
22429
22431
  i.MoneyAtomContext = a0;
22430
- class c0 extends R {
22432
+ class c0 extends E {
22431
22433
  constructor(t, e) {
22432
22434
  super(t), super.copyFrom(e);
22433
22435
  }
@@ -22445,7 +22447,7 @@ class c0 extends R {
22445
22447
  }
22446
22448
  }
22447
22449
  i.StringAtomContext = c0;
22448
- class l0 extends R {
22450
+ class l0 extends E {
22449
22451
  constructor(t, e) {
22450
22452
  super(t), super.copyFrom(e);
22451
22453
  }
@@ -22460,7 +22462,7 @@ class l0 extends R {
22460
22462
  }
22461
22463
  }
22462
22464
  i.NilAtomContext = l0;
22463
- class u0 extends R {
22465
+ class u0 extends E {
22464
22466
  constructor(t, e) {
22465
22467
  super(t), super.copyFrom(e);
22466
22468
  }
@@ -22478,7 +22480,7 @@ class u0 extends R {
22478
22480
  }
22479
22481
  }
22480
22482
  i.NumberAtomContext = u0;
22481
- class x0 extends R {
22483
+ class x0 extends E {
22482
22484
  constructor(t, e) {
22483
22485
  super(t), super.copyFrom(e);
22484
22486
  }
@@ -22493,7 +22495,7 @@ class x0 extends R {
22493
22495
  }
22494
22496
  }
22495
22497
  i.NumberUnitAtomContext = x0;
22496
- class p0 extends R {
22498
+ class d0 extends E {
22497
22499
  constructor(t, e) {
22498
22500
  super(t), super.copyFrom(e);
22499
22501
  }
@@ -22507,7 +22509,7 @@ class p0 extends R {
22507
22509
  t instanceof o && t.exitDigitLeadingNameAtom(this);
22508
22510
  }
22509
22511
  }
22510
- i.DigitLeadingNameAtomContext = p0;
22512
+ i.DigitLeadingNameAtomContext = d0;
22511
22513
  class y extends h.ParserRuleContext {
22512
22514
  constructor(t, e, s) {
22513
22515
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_parExpr;
@@ -22533,7 +22535,7 @@ class Pt extends h.ParserRuleContext {
22533
22535
  e === void 0 && (e = null), s == null && (s = -1), super(e, s), this.parser = t, this.ruleIndex = i.RULE_condition;
22534
22536
  }
22535
22537
  atom() {
22536
- return this.getTypedRuleContext(R, 0);
22538
+ return this.getTypedRuleContext(E, 0);
22537
22539
  }
22538
22540
  expr() {
22539
22541
  return this.getTypedRuleContext(l, 0);
@@ -22545,7 +22547,7 @@ class Pt extends h.ParserRuleContext {
22545
22547
  return this.getTypedRuleContext(bt, 0);
22546
22548
  }
22547
22549
  emoji() {
22548
- return this.getTypedRuleContext(L, 0);
22550
+ return this.getTypedRuleContext(N, 0);
22549
22551
  }
22550
22552
  enterRule(t) {
22551
22553
  t instanceof o && t.enterCondition(this);
@@ -22606,39 +22608,39 @@ i.HeadContext = st;
22606
22608
  i.GroupContext = B;
22607
22609
  i.StarterExpContext = rt;
22608
22610
  i.StarterContext = nt;
22609
- i.ParticipantContext = N;
22611
+ i.ParticipantContext = g;
22610
22612
  i.StereotypeContext = ht;
22611
22613
  i.LabelContext = ot;
22612
22614
  i.ParticipantTypeContext = at;
22613
- i.NameContext = d;
22615
+ i.NameContext = f;
22614
22616
  i.WidthContext = ct;
22615
- i.EmojiContext = L;
22617
+ i.EmojiContext = N;
22616
22618
  i.BlockContext = G;
22617
22619
  i.RetContext = lt;
22618
22620
  i.ReturnAsyncMessageContext = ut;
22619
22621
  i.DividerContext = xt;
22620
- i.DividerNoteContext = pt;
22622
+ i.DividerNoteContext = dt;
22621
22623
  i.StatContext = D;
22622
- i.ParContext = dt;
22624
+ i.ParContext = pt;
22623
22625
  i.OptContext = ft;
22624
22626
  i.CriticalContext = Rt;
22625
22627
  i.SectionContext = Et;
22626
- i.CreationContext = v;
22628
+ i.CreationContext = S;
22627
22629
  i.RefContext = Tt;
22628
22630
  i.CreationBodyContext = _t;
22629
22631
  i.MessageContext = Ct;
22630
22632
  i.MessageBodyContext = At;
22631
- i.FromToContext = yt;
22632
- i.FuncContext = S;
22633
- i.FromContext = H;
22634
- i.ToContext = g;
22633
+ i.FromToContext = mt;
22634
+ i.FuncContext = W;
22635
+ i.FromContext = U;
22636
+ i.ToContext = O;
22635
22637
  i.SignatureContext = P;
22636
- i.InvocationContext = W;
22637
- i.AssignmentContext = U;
22638
- i.AsyncMessageContext = V;
22639
- i.ContentContext = $;
22640
- i.ConstructContext = mt;
22641
- i.TypeContext = Y;
22638
+ i.InvocationContext = V;
22639
+ i.AssignmentContext = w;
22640
+ i.AsyncMessageContext = $;
22641
+ i.ContentContext = Y;
22642
+ i.ConstructContext = yt;
22643
+ i.TypeContext = j;
22642
22644
  i.AssigneeContext = Lt;
22643
22645
  i.MethodNameContext = Nt;
22644
22646
  i.ParametersContext = Q;
@@ -22653,15 +22655,15 @@ i.AltContext = wt;
22653
22655
  i.IfBlockContext = Mt;
22654
22656
  i.ElseIfBlockContext = F;
22655
22657
  i.ElseBlockContext = Bt;
22656
- i.BraceBlockContext = f;
22658
+ i.BraceBlockContext = R;
22657
22659
  i.LoopContext = Dt;
22658
22660
  i.ExprContext = l;
22659
- i.AtomContext = R;
22661
+ i.AtomContext = E;
22660
22662
  i.ParExprContext = y;
22661
22663
  i.ConditionContext = Pt;
22662
22664
  i.InExprContext = kt;
22663
22665
  i.TextExprContext = bt;
22664
- class b0 {
22666
+ class w0 {
22665
22667
  name;
22666
22668
  // Fields the renderer-facing ParticipantView (ir/contract.ts) exposes are
22667
22669
  // public; they were already fully exposed via ToValue(), so the previous
@@ -22689,15 +22691,15 @@ class b0 {
22689
22691
  width: s,
22690
22692
  groupId: n,
22691
22693
  label: c,
22692
- explicit: u,
22693
- isStarter: x,
22694
- type: C,
22695
- color: A,
22696
- comment: T,
22697
- assignee: _,
22698
- emoji: I
22694
+ explicit: x,
22695
+ isStarter: d,
22696
+ type: A,
22697
+ color: m,
22698
+ comment: _,
22699
+ assignee: C,
22700
+ emoji: H
22699
22701
  } = t;
22700
- this.stereotype ||= e, this.width ||= s, this.groupId ||= n, this.explicit ||= u, this.isStarter ||= x, this.label ||= c, this.type ||= C, this.color ||= A, this.comment ||= T, this.assignee ||= _, this.emoji ||= I;
22702
+ this.stereotype ||= e, this.width ||= s, this.groupId ||= n, this.explicit ||= x, this.isStarter ||= d, this.label ||= c, this.type ||= A, this.color ||= m, this.comment ||= _, this.assignee ||= C, this.emoji ||= H;
22701
22703
  }
22702
22704
  AddPosition(t) {
22703
22705
  this.positions.add(t);
@@ -22727,7 +22729,7 @@ class St {
22727
22729
  if (!t)
22728
22730
  throw new Error("Participant name is required");
22729
22731
  let s = this.Get(t);
22730
- s ? s?.mergeOptions(e) : (s = new b0(t, e), this.participants.set(t, s));
22732
+ s ? s?.mergeOptions(e) : (s = new w0(t, e), this.participants.set(t, s));
22731
22733
  const { position: n, assigneePosition: c } = e;
22732
22734
  n && s.AddPosition(n), c && s.assigneePositions.add(c);
22733
22735
  }
@@ -22765,15 +22767,15 @@ class St {
22765
22767
  return this.participants.get(t)?.assigneePositions;
22766
22768
  }
22767
22769
  }
22768
- let p, m = 0, Ft;
22769
- const E = new o(), F0 = function(r) {
22770
- if (m) return;
22771
- const t = r?.participantType()?.getFormattedText().replace("@", ""), e = r?.name()?.getFormattedText() || "Missing `Participant`", s = r.stereotype()?.name()?.getFormattedText(), n = r.emoji?.()?.name?.()?.getFormattedText(), c = r.width && r.width() && Number.parseInt(r.width().getText()) || void 0, u = r.label && r.label(), x = u?.name()?.getFormattedText(), C = !0, A = r.COLOR()?.getText(), T = r.getComment(), _ = r.name();
22772
- let I, z;
22773
- if (u) {
22774
- const X = u.name();
22775
- X && (I = X.start.start, z = X.stop.stop + 1);
22776
- } else _ && (I = _.start.start, z = _.stop.stop + 1);
22770
+ let p, L = 0, Ft;
22771
+ const T = new o(), M0 = function(r) {
22772
+ if (L) return;
22773
+ const t = r?.participantType()?.getFormattedText().replace("@", ""), e = r?.name()?.getFormattedText() || "Missing `Participant`", s = r.stereotype()?.name()?.getFormattedText(), n = r.emoji?.()?.name?.()?.getFormattedText(), c = r.width && r.width() && Number.parseInt(r.width().getText()) || void 0, x = r.label && r.label(), d = x?.name()?.getFormattedText(), A = !0, m = r.COLOR()?.getText(), _ = r.getComment(), C = r.name();
22774
+ let H, J;
22775
+ if (x) {
22776
+ const Z = x.name();
22777
+ Z && (H = Z.start.start, J = Z.stop.stop + 1);
22778
+ } else C && (H = C.start.start, J = C.stop.stop + 1);
22777
22779
  p.Add(e, {
22778
22780
  isStarter: !1,
22779
22781
  type: t,
@@ -22781,22 +22783,22 @@ const E = new o(), F0 = function(r) {
22781
22783
  emoji: n,
22782
22784
  width: c,
22783
22785
  groupId: Ft,
22784
- label: x,
22785
- explicit: C,
22786
- color: A,
22787
- comment: T,
22788
- position: [I, z]
22786
+ label: d,
22787
+ explicit: A,
22788
+ color: m,
22789
+ comment: _,
22790
+ // `start`/`end` stay undefined when neither a label nor a name node exists.
22791
+ position: [H, J]
22789
22792
  });
22790
22793
  };
22791
- E.enterParticipant = F0;
22792
- const d0 = function(r) {
22793
- if (m) return;
22794
- let t = r.name?.()?.getFormattedText() || r.getFormattedText();
22795
- const e = r.emoji?.()?.name?.()?.getFormattedText(), s = p.Get(t);
22794
+ T.enterParticipant = M0;
22795
+ const p0 = function(r) {
22796
+ if (L) return;
22797
+ const t = r.name?.()?.getFormattedText() || r.getFormattedText(), e = r.emoji?.()?.name?.()?.getFormattedText(), s = p.Get(t);
22796
22798
  if (s?.label)
22797
22799
  p.Add(t, { isStarter: !1, emoji: e });
22798
22800
  else if (s?.assignee) {
22799
- const c = [r.start.start + s.assignee.length + 2, r.stop.stop], u = [
22801
+ const c = [r.start.start + s.assignee.length + 2, r.stop.stop], x = [
22800
22802
  r.start.start + 1,
22801
22803
  r.start.start + s.assignee.length + 1
22802
22804
  ];
@@ -22804,7 +22806,7 @@ const d0 = function(r) {
22804
22806
  isStarter: !1,
22805
22807
  emoji: e,
22806
22808
  position: c,
22807
- assigneePosition: u
22809
+ assigneePosition: x
22808
22810
  });
22809
22811
  } else
22810
22812
  p.Add(t, {
@@ -22813,17 +22815,17 @@ const d0 = function(r) {
22813
22815
  position: [r.start.start, r.stop.stop + 1]
22814
22816
  });
22815
22817
  };
22816
- E.enterFrom = d0;
22817
- E.enterTo = d0;
22818
- E.enterStarter = function(r) {
22819
- let t = r.getFormattedText();
22818
+ T.enterFrom = p0;
22819
+ T.enterTo = p0;
22820
+ T.enterStarter = function(r) {
22821
+ const t = r.getFormattedText();
22820
22822
  p.Add(t, {
22821
22823
  isStarter: !0,
22822
22824
  position: [r.start.start, r.stop.stop + 1]
22823
22825
  });
22824
22826
  };
22825
- E.enterCreation = function(r) {
22826
- if (m) return;
22827
+ T.enterCreation = function(r) {
22828
+ if (L) return;
22827
22829
  const t = r.Owner(), e = r?.creationBody()?.construct(), s = p.Get(t);
22828
22830
  if (e && !s?.label) {
22829
22831
  const n = r.Assignee(), c = r.AssigneePosition();
@@ -22838,7 +22840,7 @@ E.enterCreation = function(r) {
22838
22840
  isStarter: !1
22839
22841
  });
22840
22842
  };
22841
- E.enterRef = function(r) {
22843
+ T.enterRef = function(r) {
22842
22844
  r.Participants().forEach((t) => {
22843
22845
  p.Add(t.getText(), {
22844
22846
  isStarter: !1,
@@ -22846,25 +22848,25 @@ E.enterRef = function(r) {
22846
22848
  });
22847
22849
  });
22848
22850
  };
22849
- E.enterParameters = function() {
22850
- m++;
22851
+ T.enterParameters = function() {
22852
+ L++;
22851
22853
  };
22852
- E.exitParameters = function() {
22853
- m--;
22854
+ T.exitParameters = function() {
22855
+ L--;
22854
22856
  };
22855
- E.enterCondition = function() {
22856
- m++;
22857
+ T.enterCondition = function() {
22858
+ L++;
22857
22859
  };
22858
- E.exitCondition = function() {
22859
- m--;
22860
+ T.exitCondition = function() {
22861
+ L--;
22860
22862
  };
22861
- E.enterGroup = function(r) {
22863
+ T.enterGroup = function(r) {
22862
22864
  Ft = r.name()?.getFormattedText();
22863
22865
  };
22864
- E.exitGroup = function() {
22866
+ T.exitGroup = function() {
22865
22867
  Ft = void 0;
22866
22868
  };
22867
- E.enterRet = function(r) {
22869
+ T.enterRet = function(r) {
22868
22870
  if (r.asyncMessage())
22869
22871
  return;
22870
22872
  const t = r.From();
@@ -22872,27 +22874,37 @@ E.enterRet = function(r) {
22872
22874
  const e = r.ReturnTo();
22873
22875
  e && p.Add(e);
22874
22876
  };
22875
- const G0 = h.tree.ParseTreeWalker.DEFAULT, Wt = /* @__PURE__ */ new WeakMap();
22876
- E.getParticipants = function(r) {
22877
+ const B0 = h.tree.ParseTreeWalker.DEFAULT, Wt = /* @__PURE__ */ new WeakMap();
22878
+ T.getParticipants = function(r) {
22877
22879
  if (!r) return new St();
22878
22880
  const t = Wt.get(r);
22879
- return t || (p = new St(), m = 0, G0.walk(this, r), Wt.set(r, p), p);
22880
- };
22881
- const v0 = i, S0 = v0.TitleContext;
22882
- S0.prototype.content = function() {
22883
- return this.children.length < 2 ? "" : this.children[1].getText().trim();
22881
+ return t || (p = new St(), L = 0, B0.walk(this, r), Wt.set(r, p), p);
22884
22882
  };
22885
- const f0 = i, tt = f0.CreationContext;
22886
- tt.prototype.Body = tt.prototype.creationBody;
22887
- tt.prototype.isCurrent = function(r) {
22888
- return R0.bind(this)(r);
22889
- };
22890
- const et = f0.MessageContext;
22891
- et.prototype.Body = et.prototype.messageBody;
22892
- et.prototype.isCurrent = function(r) {
22893
- return R0.bind(this)(r);
22894
- };
22895
- function R0(r) {
22883
+ function u(r, t) {
22884
+ const e = r.prototype;
22885
+ for (const s of Object.keys(t))
22886
+ e[s] = t[s];
22887
+ }
22888
+ const D0 = i;
22889
+ u(D0.TitleContext, {
22890
+ content() {
22891
+ return this.children.length < 2 ? "" : this.children[1].getText().trim();
22892
+ }
22893
+ });
22894
+ const v = i;
22895
+ u(v.CreationContext, {
22896
+ Body: v.CreationContext.prototype.creationBody,
22897
+ isCurrent(r) {
22898
+ return f0.bind(this)(r);
22899
+ }
22900
+ });
22901
+ u(v.MessageContext, {
22902
+ Body: v.MessageContext.prototype.messageBody,
22903
+ isCurrent(r) {
22904
+ return f0.bind(this)(r);
22905
+ }
22906
+ });
22907
+ function f0(r) {
22896
22908
  try {
22897
22909
  if (r == null) return !1;
22898
22910
  const t = this.start.start, e = this.Body().stop.stop + 1;
@@ -22901,119 +22913,150 @@ function R0(r) {
22901
22913
  return !1;
22902
22914
  }
22903
22915
  }
22904
- const w = i, M = w.CreationContext, Gt = w.MessageContext, E0 = w.AsyncMessageContext, T0 = w.ReturnAsyncMessageContext, _0 = w.RetContext;
22905
- M.prototype.Assignee = function() {
22906
- return this.creationBody()?.assignment()?.assignee()?.getFormattedText();
22907
- };
22908
- M.prototype.AssigneePosition = function() {
22909
- const r = this.creationBody()?.assignment()?.assignee();
22910
- if (r)
22911
- return [r.start.start, r.stop.stop + 1];
22912
- };
22913
- M.prototype.Constructor = function() {
22914
- return this.creationBody()?.construct()?.getFormattedText();
22915
- };
22916
- M.prototype.Owner = function() {
22917
- if (!this.Constructor())
22918
- return "Missing Constructor";
22919
- const r = this.Assignee(), t = this.Constructor();
22920
- return r ? `${r}:${t}` : t;
22921
- };
22922
- Gt.prototype.To = function() {
22923
- const r = this.messageBody()?.fromTo()?.to();
22924
- return r?.name?.()?.getFormattedText() || r?.getFormattedText();
22925
- };
22926
- function W0(r) {
22916
+ const M = i, R0 = M.CreationContext, vt = M.MessageContext, E0 = M.AsyncMessageContext, T0 = M.ReturnAsyncMessageContext, _0 = M.RetContext;
22917
+ u(R0, {
22918
+ Assignee() {
22919
+ return this.creationBody()?.assignment()?.assignee()?.getFormattedText();
22920
+ },
22921
+ AssigneePosition() {
22922
+ const r = this.creationBody()?.assignment()?.assignee();
22923
+ if (r)
22924
+ return [r.start.start, r.stop.stop + 1];
22925
+ },
22926
+ Constructor() {
22927
+ return this.creationBody()?.construct()?.getFormattedText();
22928
+ },
22929
+ Owner() {
22930
+ if (!this.Constructor())
22931
+ return "Missing Constructor";
22932
+ const r = this.Assignee(), t = this.Constructor();
22933
+ return r ? `${r}:${t}` : t;
22934
+ }
22935
+ });
22936
+ u(vt, {
22937
+ To() {
22938
+ const r = this.messageBody()?.fromTo()?.to();
22939
+ return r?.name?.()?.getFormattedText() || r?.getFormattedText();
22940
+ }
22941
+ });
22942
+ function P0(r) {
22927
22943
  for (; r; ) {
22928
- if (r instanceof M || r instanceof Gt)
22944
+ if (r instanceof R0 || r instanceof vt)
22929
22945
  return r.Owner();
22930
22946
  r = r.parentCtx;
22931
22947
  }
22932
22948
  }
22933
- function V0() {
22934
- return this.To() || W0(this.parentCtx);
22949
+ function K() {
22950
+ return this.To() || P0(this.parentCtx);
22935
22951
  }
22936
- [
22937
- Gt,
22938
- E0,
22939
- T0,
22940
- _0
22941
- ].forEach((r) => {
22942
- r.prototype.Owner = V0;
22952
+ u(vt, {
22953
+ Owner: K
22954
+ });
22955
+ u(E0, {
22956
+ Owner: K
22957
+ });
22958
+ u(T0, {
22959
+ Owner: K
22960
+ });
22961
+ u(_0, {
22962
+ Owner: K
22943
22963
  });
22944
22964
  function C0() {
22945
22965
  const r = this.to();
22946
22966
  return r?.name?.()?.getFormattedText() || r?.getFormattedText();
22947
22967
  }
22948
- E0.prototype.To = C0;
22949
- T0.prototype.To = C0;
22950
- _0.prototype.To = function() {
22951
- return this.ReturnTo();
22952
- };
22953
- const $0 = i.ProgContext;
22954
- $0.prototype.Starter = function() {
22955
- return this.head()?.starterExp()?.starter()?.getFormattedText();
22956
- };
22957
- const j = i, A0 = j.RetContext, Vt = j.ProgContext, $t = j.MessageContext, Y0 = j.CreationContext;
22958
- A0.prototype.Signature = function() {
22959
- return this.asyncMessage()?.content()?.getFormattedText() || this.returnAsyncMessage()?.content()?.getFormattedText() || this.expr()?.getFormattedText();
22960
- };
22961
- A0.prototype.ReturnTo = function() {
22962
- const r = this.asyncMessage()?.to() || this.returnAsyncMessage()?.to(), t = r?.name?.()?.getFormattedText() || r?.getFormattedText();
22963
- if (t)
22964
- return t;
22965
- const n = this.parentCtx.parentCtx.parentCtx;
22966
- if (n instanceof Vt)
22967
- return n.Starter();
22968
- {
22969
- let c = n;
22970
- for (; c && !(c instanceof $t) && !(c instanceof Y0); ) {
22971
- if (c instanceof Vt)
22972
- return c.Starter();
22973
- c = c.parentCtx;
22968
+ u(E0, {
22969
+ To: C0
22970
+ });
22971
+ u(T0, {
22972
+ To: C0
22973
+ });
22974
+ u(_0, {
22975
+ To() {
22976
+ return this.ReturnTo();
22977
+ }
22978
+ });
22979
+ u(i.ProgContext, {
22980
+ Starter() {
22981
+ return this.head()?.starterExp()?.starter()?.getFormattedText?.();
22982
+ }
22983
+ });
22984
+ const z = i, Vt = z.ProgContext, $t = z.MessageContext, k0 = z.CreationContext;
22985
+ u(z.RetContext, {
22986
+ Signature() {
22987
+ return this.asyncMessage()?.content()?.getFormattedText() || this.returnAsyncMessage()?.content()?.getFormattedText() || this.expr()?.getFormattedText();
22988
+ },
22989
+ ReturnTo() {
22990
+ const r = this.asyncMessage()?.to() || this.returnAsyncMessage()?.to(), t = r?.name?.()?.getFormattedText() || r?.getFormattedText();
22991
+ if (t)
22992
+ return t;
22993
+ const n = this.parentCtx.parentCtx.parentCtx;
22994
+ if (n instanceof Vt)
22995
+ return n.Starter();
22996
+ {
22997
+ let c = n;
22998
+ for (; c && !(c instanceof $t) && !(c instanceof k0); ) {
22999
+ if (c instanceof Vt)
23000
+ return c.Starter();
23001
+ c = c.parentCtx;
23002
+ }
23003
+ if (c instanceof $t) {
23004
+ const x = c;
23005
+ return x.messageBody()?.fromTo()?.from()?.name?.()?.getFormattedText() || x.messageBody()?.fromTo()?.from()?.getFormattedText() || x.ClosestAncestorStat().Origin();
23006
+ }
23007
+ return c.ClosestAncestorStat().Origin();
22974
23008
  }
22975
- return c instanceof $t && (c.messageBody()?.fromTo()?.from()?.name?.()?.getFormattedText() || c.messageBody()?.fromTo()?.from()?.getFormattedText()) || c.ClosestAncestorStat().Origin();
22976
23009
  }
22977
- };
22978
- const Q0 = i, y0 = Q0.RefContext;
22979
- function j0(r) {
23010
+ });
23011
+ const b0 = i, F0 = b0.RefContext;
23012
+ function v0(r) {
22980
23013
  return !r || !r.start || !r.stop ? !0 : r.stop.tokenIndex < r.start.tokenIndex;
22981
23014
  }
22982
- y0.prototype.Content = function() {
22983
- const r = this.name()[0];
22984
- return j0(r) ? void 0 : r;
22985
- };
22986
- y0.prototype.Participants = function() {
22987
- return this.name().slice(1) ?? [];
22988
- };
22989
- const K0 = h.ParserRuleContext, z0 = i.StatContext, m0 = i.ProgContext, X0 = i.MessageContext, J0 = i.CreationContext;
22990
- K0.prototype.Origin = function() {
22991
- return this.ClosestAncestorStat()?.Origin();
22992
- };
22993
- z0.prototype.Origin = function() {
22994
- let r = this.parentCtx;
22995
- for (; r; ) {
22996
- if (r instanceof m0)
22997
- return r.Starter();
22998
- if (r instanceof X0 || r instanceof J0) {
22999
- const t = r.Owner();
23000
- if (t)
23001
- return t;
23015
+ u(F0, {
23016
+ Content() {
23017
+ const r = this.name()[0];
23018
+ return v0(r) ? void 0 : r;
23019
+ },
23020
+ Participants() {
23021
+ return this.name().slice(1) ?? [];
23022
+ }
23023
+ });
23024
+ const A0 = i.ProgContext, G0 = i.MessageContext, S0 = i.CreationContext;
23025
+ u(h.ParserRuleContext, {
23026
+ Origin() {
23027
+ return this.ClosestAncestorStat()?.Origin();
23028
+ }
23029
+ });
23030
+ u(i.StatContext, {
23031
+ Origin() {
23032
+ let r = this.parentCtx;
23033
+ for (; r; ) {
23034
+ if (r instanceof A0)
23035
+ return r.Starter();
23036
+ if (r instanceof G0 || r instanceof S0) {
23037
+ const t = r.Owner();
23038
+ if (t)
23039
+ return t;
23040
+ }
23041
+ r = r.parentCtx;
23002
23042
  }
23003
- r = r.parentCtx;
23004
23043
  }
23005
- };
23006
- m0.prototype.Origin = function() {
23007
- return this.Starter();
23008
- };
23009
- const Z0 = i, q0 = Z0.DividerContext;
23010
- q0.prototype.Note = function() {
23011
- const r = this.dividerNote()?.getFormattedText().trim();
23012
- if (!r.startsWith("=="))
23013
- throw new Error("Divider note must start with ==");
23014
- return r?.replace(/^=+|=+$/g, "");
23015
- };
23016
- function te(r) {
23044
+ });
23045
+ u(A0, {
23046
+ Origin() {
23047
+ return this.Starter();
23048
+ }
23049
+ });
23050
+ const W0 = i, V0 = W0.DividerContext;
23051
+ u(V0, {
23052
+ Note() {
23053
+ const r = this.dividerNote()?.getFormattedText().trim();
23054
+ if (!r.startsWith("=="))
23055
+ throw new Error("Divider note must start with ==");
23056
+ return r?.replace(/^=+|=+$/g, "");
23057
+ }
23058
+ });
23059
+ function $0(r) {
23017
23060
  if (r.namedParameter?.()) {
23018
23061
  const e = r.namedParameter();
23019
23062
  if (e) {
@@ -23029,35 +23072,49 @@ function te(r) {
23029
23072
  const t = r.expr?.();
23030
23073
  return t ? t.getFormattedText() : r.getFormattedText();
23031
23074
  }
23032
- function L0(r) {
23033
- return r.map(te).join(",");
23075
+ function m0(r) {
23076
+ return r.map($0).join(",");
23034
23077
  }
23035
- const ee = i.MessageContext, ie = i.ParametersContext, se = i.AsyncMessageContext, N0 = i.CreationContext, re = i.RetContext, ne = i.ReturnAsyncMessageContext;
23036
- ee.prototype.SignatureText = function() {
23037
- return this.messageBody()?.func()?.signature()?.map((r) => r?.getFormattedText()).join(".") ?? "";
23038
- };
23039
- se.prototype.SignatureText = function() {
23040
- return this.content()?.getFormattedText() ?? "";
23041
- };
23042
- N0.prototype.ParametersText = function() {
23043
- const r = this.creationBody().parameters();
23044
- return r?.parameter()?.length > 0 ? L0(r.parameter()) : "";
23045
- };
23046
- N0.prototype.SignatureText = function() {
23047
- return `«${this.ParametersText() || "create"}»`;
23048
- };
23049
- re.prototype.SignatureText = function() {
23050
- return this.asyncMessage()?.content()?.getFormattedText() ?? this.returnAsyncMessage()?.content()?.getFormattedText() ?? this.expr()?.getFormattedText() ?? "";
23051
- };
23052
- ne.prototype.SignatureText = function() {
23053
- return this.content()?.getFormattedText() ?? "";
23054
- };
23055
- ie.prototype.getFormattedText = function() {
23056
- const r = this.parameter();
23057
- return !r || r.length === 0 ? "" : L0(r);
23058
- };
23059
- const g0 = i, he = g0.MessageContext, oe = g0.CreationContext;
23060
- class ae {
23078
+ u(i.MessageContext, {
23079
+ SignatureText() {
23080
+ return this.messageBody()?.func()?.signature()?.map((r) => r?.getFormattedText()).join(".") ?? "";
23081
+ }
23082
+ });
23083
+ u(i.AsyncMessageContext, {
23084
+ SignatureText() {
23085
+ return this.content()?.getFormattedText() ?? "";
23086
+ }
23087
+ });
23088
+ u(i.CreationContext, {
23089
+ ParametersText() {
23090
+ const r = this.creationBody().parameters();
23091
+ return r?.parameter()?.length > 0 ? m0(r.parameter()) : "";
23092
+ },
23093
+ SignatureText() {
23094
+ return `«${this.ParametersText() || "create"}»`;
23095
+ }
23096
+ });
23097
+ u(i.RetContext, {
23098
+ SignatureText() {
23099
+ return this.asyncMessage()?.content()?.getFormattedText() ?? this.returnAsyncMessage()?.content()?.getFormattedText() ?? this.expr()?.getFormattedText() ?? "";
23100
+ }
23101
+ });
23102
+ u(
23103
+ i.ReturnAsyncMessageContext,
23104
+ {
23105
+ SignatureText() {
23106
+ return this.content()?.getFormattedText() ?? "";
23107
+ }
23108
+ }
23109
+ );
23110
+ u(i.ParametersContext, {
23111
+ getFormattedText() {
23112
+ const r = this.parameter();
23113
+ return !r || r.length === 0 ? "" : m0(r);
23114
+ }
23115
+ });
23116
+ const y0 = i, Y0 = y0.MessageContext, j0 = y0.CreationContext;
23117
+ class Q0 {
23061
23118
  assignee;
23062
23119
  type;
23063
23120
  labelPosition;
@@ -23072,80 +23129,110 @@ class ae {
23072
23129
  return [this.assignee, this.type].filter(Boolean).join(":");
23073
23130
  }
23074
23131
  }
23075
- function O0(r) {
23132
+ function L0(r) {
23076
23133
  if (!r)
23077
23134
  return;
23078
- const t = r?.assignee()?.getFormattedText(), e = r?.type()?.getFormattedText(), s = r?.assignee(), n = s ? [s.start.start, s.stop.stop] : [-1, -1], c = r?.type(), u = c ? [c.start.start, c.stop.stop] : [-1, -1];
23135
+ const t = r?.assignee()?.getFormattedText(), e = r?.type()?.getFormattedText(), s = r?.assignee(), n = s ? [s.start.start, s.stop.stop] : [-1, -1], c = r?.type(), x = c ? [c.start.start, c.stop.stop] : [-1, -1];
23079
23136
  if (t)
23080
- return new ae(t, e, n, u);
23137
+ return new Q0(t, e, n, x);
23081
23138
  }
23082
- he.prototype.Assignment = function() {
23083
- return O0(this.messageBody().assignment());
23084
- };
23085
- oe.prototype.Assignment = function() {
23086
- return O0(this.creationBody()?.assignment());
23087
- };
23088
- const K = i, ce = K.MessageContext, le = K.CreationContext, ue = K.IfBlockContext, xe = K.LoopContext;
23089
- ce.prototype.Statements = function() {
23090
- return this.braceBlock()?.block()?.stat() || [];
23091
- };
23092
- le.prototype.Statements = function() {
23093
- return this.braceBlock()?.block()?.stat() || [];
23094
- };
23095
- ue.prototype.Statements = function() {
23096
- return this.braceBlock()?.block()?.stat() || [];
23097
- };
23098
- xe.prototype.Statements = function() {
23099
- return this.braceBlock()?.block()?.stat() || [];
23100
- };
23101
- const O = i, pe = O.StatContext, de = O.CreationContext, I0 = O.MessageContext, H0 = O.AsyncMessageContext, U0 = O.ReturnAsyncMessageContext, fe = O.RetContext;
23102
- de.prototype.From = function() {
23103
- if (this.parentCtx instanceof pe)
23104
- return this.ClosestAncestorStat()?.Origin();
23105
- };
23106
- function vt() {
23139
+ u(Y0, {
23140
+ Assignment() {
23141
+ return L0(this.messageBody().assignment());
23142
+ }
23143
+ });
23144
+ u(j0, {
23145
+ Assignment() {
23146
+ return L0(this.creationBody()?.assignment());
23147
+ }
23148
+ });
23149
+ const X = i, K0 = X.MessageContext, z0 = X.CreationContext, X0 = X.IfBlockContext, J0 = X.LoopContext;
23150
+ u(K0, {
23151
+ Statements() {
23152
+ return this.braceBlock()?.block()?.stat() || [];
23153
+ }
23154
+ });
23155
+ u(z0, {
23156
+ Statements() {
23157
+ return this.braceBlock()?.block()?.stat() || [];
23158
+ }
23159
+ });
23160
+ u(X0, {
23161
+ Statements() {
23162
+ return this.braceBlock()?.block()?.stat() || [];
23163
+ }
23164
+ });
23165
+ u(J0, {
23166
+ Statements() {
23167
+ return this.braceBlock()?.block()?.stat() || [];
23168
+ }
23169
+ });
23170
+ const I = i, Z0 = I.StatContext;
23171
+ u(I.CreationContext, {
23172
+ From() {
23173
+ if (this.parentCtx instanceof Z0)
23174
+ return this.ClosestAncestorStat()?.Origin();
23175
+ }
23176
+ });
23177
+ function Gt() {
23107
23178
  return this.ProvidedFrom() || this.ClosestAncestorStat()?.Origin();
23108
23179
  }
23109
- I0.prototype.ProvidedFrom = function() {
23110
- const r = this.messageBody()?.fromTo?.()?.from?.();
23111
- return r?.name?.()?.getFormattedText?.() || r?.getFormattedText?.();
23112
- };
23113
- I0.prototype.From = vt;
23114
- function w0() {
23180
+ u(I.MessageContext, {
23181
+ ProvidedFrom() {
23182
+ const r = this.messageBody()?.fromTo?.()?.from?.();
23183
+ return r?.name?.()?.getFormattedText?.() || r?.getFormattedText?.();
23184
+ },
23185
+ From: Gt
23186
+ });
23187
+ function N0() {
23115
23188
  const r = this.from();
23116
23189
  return r?.name?.()?.getFormattedText?.() || r?.getFormattedText?.();
23117
23190
  }
23118
- H0.prototype.ProvidedFrom = w0;
23119
- H0.prototype.From = vt;
23120
- U0.prototype.ProvidedFrom = w0;
23121
- U0.prototype.From = vt;
23122
- fe.prototype.From = function() {
23123
- return this.asyncMessage()?.From?.() || this.returnAsyncMessage()?.From?.() || this.ClosestAncestorStat()?.Origin();
23124
- };
23125
- const Re = i, J = Re.StatContext, Ee = h.ParserRuleContext;
23126
- Ee.prototype.ClosestAncestorStat = function() {
23127
- if (this instanceof J)
23128
- return this;
23129
- let r = this.parentCtx;
23130
- for (; r && !(r instanceof J); )
23131
- r = r.parentCtx;
23132
- if (r instanceof J)
23133
- return r;
23134
- };
23135
- h.ParserRuleContext.prototype.getAncestors = function(r) {
23136
- const t = [];
23137
- (!r || r(this)) && t.push(this);
23138
- let e = this.parentCtx;
23139
- for (; e; )
23140
- (!r || r(e)) && t.push(e), e = e.parentCtx;
23141
- return t;
23142
- };
23143
- const Te = (r) => r.replace(/[\n\r]/g, " ").replace(/\s+/g, " ").replace(/\s*([,;.])\s*/g, "$1").replace(/\s*(\()\s*|\s*(\))/g, "$1$2").replace(/\s+$/g, "").replace(/^"(.*)"$/, "$1");
23144
- class Pe extends h.error.ErrorListener {
23191
+ u(I.AsyncMessageContext, {
23192
+ ProvidedFrom: N0,
23193
+ From: Gt
23194
+ });
23195
+ u(
23196
+ I.ReturnAsyncMessageContext,
23197
+ {
23198
+ ProvidedFrom: N0,
23199
+ From: Gt
23200
+ }
23201
+ );
23202
+ u(I.RetContext, {
23203
+ From() {
23204
+ return this.asyncMessage()?.From?.() || this.returnAsyncMessage()?.From?.() || this.ClosestAncestorStat()?.Origin();
23205
+ }
23206
+ });
23207
+ const q0 = i, q = q0.StatContext;
23208
+ u(h.ParserRuleContext, {
23209
+ ClosestAncestorStat() {
23210
+ if (this instanceof q)
23211
+ return this;
23212
+ let r = this.parentCtx;
23213
+ for (; r && !(r instanceof q); )
23214
+ r = r.parentCtx;
23215
+ if (r instanceof q)
23216
+ return r;
23217
+ }
23218
+ });
23219
+ u(h.ParserRuleContext, {
23220
+ getAncestors(r) {
23221
+ const t = [];
23222
+ (!r || r(this)) && t.push(this);
23223
+ let e = this.parentCtx;
23224
+ for (; e; )
23225
+ (!r || r(e)) && t.push(e), e = e.parentCtx;
23226
+ return t;
23227
+ }
23228
+ });
23229
+ const te = (r) => r.replace(/[\n\r]/g, " ").replace(/\s+/g, " ").replace(/\s*([,;.])\s*/g, "$1").replace(/\s*(\()\s*|\s*(\))/g, "$1$2").replace(/\s+$/g, "").replace(/^"(.*)"$/, "$1");
23230
+ class pe extends h.error.ErrorListener {
23145
23231
  syntaxError(t, e, s, n, c) {
23146
23232
  }
23147
23233
  }
23148
- class _e extends h.error.ErrorListener {
23234
+ class ee extends h.error.ErrorListener {
23235
+ errorDetails;
23149
23236
  constructor() {
23150
23237
  super(), this.errorDetails = [];
23151
23238
  }
@@ -23153,19 +23240,24 @@ class _e extends h.error.ErrorListener {
23153
23240
  this.errorDetails.push({ line: s, column: n, msg: c });
23154
23241
  }
23155
23242
  }
23156
- h.ParserRuleContext.prototype.getFormattedText = function() {
23157
- const r = this.parser.getTokenStream().getText(this.getSourceInterval());
23158
- return Te(r);
23159
- };
23160
- h.ParserRuleContext.prototype.getComment = function() {
23161
- let r = this.start.tokenIndex, t = a.channelNames.indexOf("COMMENT_CHANNEL");
23162
- this.constructor.name === "BraceBlockContext" && (r = this.stop.tokenIndex);
23163
- let e = this.parser.getTokenStream().getHiddenTokensToLeft(r, t);
23164
- return e && e.map((s) => s.text.substring(2)).join(`
23243
+ u(h.ParserRuleContext, {
23244
+ getFormattedText() {
23245
+ const r = this.parser.getTokenStream().getText(this.getSourceInterval());
23246
+ return te(r);
23247
+ },
23248
+ // Comment is where users have the most flexibility. The parser should make minimal assumptions about
23249
+ // the content and the style including change of line, indentation, etc.
23250
+ getComment() {
23251
+ let r = this.start.tokenIndex;
23252
+ const t = a.channelNames.indexOf("COMMENT_CHANNEL");
23253
+ this.constructor.name === "BraceBlockContext" && (r = this.stop.tokenIndex);
23254
+ const e = this.parser.getTokenStream().getHiddenTokensToLeft(r, t);
23255
+ return e && e.map((s) => s.text.substring(2)).join(`
23165
23256
  `);
23166
- };
23167
- function Ce(r) {
23168
- const t = new _e(), e = new h.InputStream(r), s = new a(e);
23257
+ }
23258
+ });
23259
+ function ie(r) {
23260
+ const t = new ee(), e = new h.InputStream(r), s = new a(e);
23169
23261
  s.removeErrorListeners(), s.addErrorListener(t);
23170
23262
  const n = new h.CommonTokenStream(s), c = new i(n);
23171
23263
  return c.removeErrorListeners(), c.addErrorListener(t), {
@@ -23174,8 +23266,8 @@ function Ce(r) {
23174
23266
  errorDetails: t.errorDetails
23175
23267
  };
23176
23268
  }
23177
- function ke(r) {
23178
- const { pass: t, errorDetails: e } = Ce(r);
23269
+ function fe(r) {
23270
+ const { pass: t, errorDetails: e } = ie(r);
23179
23271
  return { pass: t, errorDetails: e };
23180
23272
  }
23181
23273
  i.ProgContext;
@@ -23183,7 +23275,7 @@ i.GroupContext;
23183
23275
  i.ParticipantContext;
23184
23276
  i.ProgContext, i.GroupContext, i.ParticipantContext;
23185
23277
  export {
23186
- Ce as parse,
23187
- ke as validate
23278
+ ie as parse,
23279
+ fe as validate
23188
23280
  };
23189
23281
  //# sourceMappingURL=index.mjs.map