@zenuml/core 3.31.1 → 3.32.0

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/zenuml.js CHANGED
@@ -12,7 +12,7 @@
12
12
  `,n)),n.context===null||n.context.hasEmptyPath()){if(n.context===null||n.context.isEmpty())return i.add(n),!0;i.add(new h3({state:n.state,context:D2.EMPTY},n)),s=!0}if(n.context!==null&&!n.context.isEmpty()){for(let L=0;L<n.context.length;L++)if(n.context.getReturnState(L)!==D2.EMPTY_RETURN_STATE){const a=n.context.getParent(L),c=this.atn.states[n.context.getReturnState(L)];l=new h3({state:c,context:a},n),s=this.closure(e,l,i,s,r,o)}}return s}n.state.epsilonOnlyTransitions||(!s||!n.passedThroughNonGreedyDecision)&&i.add(n);for(let L=0;L<n.state.transitions.length;L++){const a=n.state.transitions[L];l=this.getEpsilonTarget(e,n,a,i,r,o),l!==null&&(s=this.closure(e,l,i,s,r,o))}return s}getEpsilonTarget(e,n,i,s,r,o){let l=null;if(i.serializationType===u2.RULE){const L=j1.create(n.context,i.followState.stateNumber);l=new h3({state:i.target,context:L},n)}else{if(i.serializationType===u2.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(i.serializationType===u2.PREDICATE)C1.debug&&console.log("EVAL rule "+i.ruleIndex+":"+i.predIndex),s.hasSemanticContext=!0,this.evaluatePredicate(e,i.ruleIndex,i.predIndex,r)&&(l=new h3({state:i.target},n));else if(i.serializationType===u2.ACTION)if(n.context===null||n.context.hasEmptyPath()){const L=u0.append(n.lexerActionExecutor,this.atn.lexerActions[i.actionIndex]);l=new h3({state:i.target,lexerActionExecutor:L},n)}else l=new h3({state:i.target},n);else i.serializationType===u2.EPSILON?l=new h3({state:i.target},n):(i.serializationType===u2.ATOM||i.serializationType===u2.RANGE||i.serializationType===u2.SET)&&o&&i.matches(K.EOF,0,q1.MAX_CHAR_VALUE)&&(l=new h3({state:i.target},n))}return l}evaluatePredicate(e,n,i,s){if(this.recog===null)return!0;if(!s)return this.recog.sempred(null,n,i);const r=this.column,o=this.line,l=e.index,L=e.mark();try{return this.consume(e),this.recog.sempred(null,n,i)}finally{this.column=r,this.line=o,e.seek(l),e.release(L)}}captureSimState(e,n,i){e.index=n.index,e.line=this.line,e.column=this.column,e.dfaState=i}addDFAEdge(e,n,i,s){if(i===void 0&&(i=null),s===void 0&&(s=null),i===null&&s!==null){const r=s.hasSemanticContext;if(s.hasSemanticContext=!1,i=this.addDFAState(s),r)return i}return n<C1.MIN_DFA_EDGE||n>C1.MAX_DFA_EDGE||(C1.debug&&console.log("EDGE "+e+" -> "+i+" upon "+n),e.edges===null&&(e.edges=[]),e.edges[n-C1.MIN_DFA_EDGE]=i),i}addDFAState(e){const n=new k4(null,e);let i=null;for(let l=0;l<e.items.length;l++){const L=e.items[l];if(L.state instanceof G1){i=L;break}}i!==null&&(n.isAcceptState=!0,n.lexerActionExecutor=i.lexerActionExecutor,n.prediction=this.atn.ruleToTokenType[i.state.ruleIndex]);const s=this.decisionToDFA[this.mode],r=s.states.get(n);if(r!==null)return r;const o=n;return o.stateNumber=s.states.length,e.setReadonly(!0),o.configs=e,s.states.add(o),o}getDFA(e){return this.decisionToDFA[e]}getText(e){return e.getText(this.startIndex,e.index-1)}consume(e){e.LA(1)===`
13
13
  `.charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,e.consume()}getTokenName(e){return e===-1?"EOF":"'"+String.fromCharCode(e)+"'"}}C1.debug=!1,C1.dfa_debug=!1,C1.MIN_DFA_EDGE=0,C1.MAX_DFA_EDGE=127;class Mo{constructor(e,n){this.alt=n,this.pred=e}toString(){return"("+this.pred+", "+this.alt+")"}}class Kf{constructor(){this.data={}}get(e){return this.data["k-"+e]||null}set(e,n){this.data["k-"+e]=n}values(){return Object.keys(this.data).filter(e=>e.startsWith("k-")).map(e=>this.data[e],this)}}const t1={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(t,e){if(t1.allConfigsInRuleStopStates(e))return!0;if(t===t1.SLL&&e.hasSemanticContext){const i=new K1;for(let s=0;s<e.items.length;s++){let r=e.items[s];r=new f1({semanticContext:q2.NONE},r),i.add(r)}e=i}const n=t1.getConflictingAltSubsets(e);return t1.hasConflictingAltSet(n)&&!t1.hasStateAssociatedWithOneAlt(e)},hasConfigInRuleStopState:function(t){for(let e=0;e<t.items.length;e++)if(t.items[e].state instanceof G1)return!0;return!1},allConfigsInRuleStopStates:function(t){for(let e=0;e<t.items.length;e++)if(!(t.items[e].state instanceof G1))return!1;return!0},resolvesToJustOneViableAlt:function(t){return t1.getSingleViableAlt(t)},allSubsetsConflict:function(t){return!t1.hasNonConflictingAltSet(t)},hasNonConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(t[e].length===1)return!0;return!1},hasConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(t[e].length>1)return!0;return!1},allSubsetsEqual:function(t){let e=null;for(let n=0;n<t.length;n++){const i=t[n];if(e===null)e=i;else if(i!==e)return!1}return!0},getUniqueAlt:function(t){const e=t1.getAlts(t);return e.length===1?e.minValue():a1.INVALID_ALT_NUMBER},getAlts:function(t){const e=new l4;return t.map(function(n){e.or(n)}),e},getConflictingAltSubsets:function(t){const e=new s5;return e.hashFunction=function(n){y3.hashStuff(n.state.stateNumber,n.context)},e.equalsFunction=function(n,i){return n.state.stateNumber===i.state.stateNumber&&n.context.equals(i.context)},t.items.map(function(n){let i=e.get(n);i===null&&(i=new l4,e.set(n,i)),i.add(n.alt)}),e.getValues()},getStateToAltMap:function(t){const e=new Kf;return t.items.map(function(n){let i=e.get(n.state);i===null&&(i=new l4,e.set(n.state,i)),i.add(n.alt)}),e},hasStateAssociatedWithOneAlt:function(t){const e=t1.getStateToAltMap(t).values();for(let n=0;n<e.length;n++)if(e[n].length===1)return!0;return!1},getSingleViableAlt:function(t){let e=null;for(let n=0;n<t.length;n++){const s=t[n].minValue();if(e===null)e=s;else if(e!==s)return a1.INVALID_ALT_NUMBER}return e}};class $e extends G4{constructor(e,n,i,s,r,o){o=o||e._ctx,s=s||e.getCurrentToken(),i=i||e.getCurrentToken(),n=n||e.getInputStream(),super({message:"",recognizer:e,input:n,ctx:o}),this.deadEndConfigs=r,this.startToken=i,this.offendingToken=s}}class Yf{constructor(e){this.defaultMapCtor=e||s5,this.cacheMap=new this.defaultMapCtor}get(e,n){const i=this.cacheMap.get(e)||null;return i===null?null:i.get(n)||null}set(e,n,i){let s=this.cacheMap.get(e)||null;s===null&&(s=new this.defaultMapCtor,this.cacheMap.set(e,s)),s.set(n,i)}}class Qf extends L4{constructor(e,n,i,s){super(n,s),this.parser=e,this.decisionToDFA=i,this.predictionMode=t1.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this.debug=!1,this.debug_closure=!1,this.debug_add=!1,this.debug_list_atn_decisions=!1,this.dfa_debug=!1,this.retry_debug=!1}reset(){}adaptivePredict(e,n,i){(this.debug||this.debug_list_atn_decisions)&&console.log("adaptivePredict decision "+n+" exec LA(1)=="+this.getLookaheadName(e)+" line "+e.LT(1).line+":"+e.LT(1).column),this._input=e,this._startIndex=e.index,this._outerContext=i;const s=this.decisionToDFA[n];this._dfa=s;const r=e.mark(),o=e.index;try{let l;if(s.precedenceDfa?l=s.getPrecedenceStartState(this.parser.getPrecedence()):l=s.s0,l===null){i===null&&(i=l0.EMPTY),(this.debug||this.debug_list_atn_decisions)&&console.log("predictATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+i.toString(this.parser.ruleNames));const a=!1;let c=this.computeStartState(s.atnStartState,l0.EMPTY,a);s.precedenceDfa?(s.s0.configs=c,c=this.applyPrecedenceFilter(c),l=this.addDFAState(s,new k4(null,c)),s.setPrecedenceStartState(this.parser.getPrecedence(),l)):(l=this.addDFAState(s,new k4(null,c)),s.s0=l)}const L=this.execATN(s,l,e,o,i);return this.debug&&console.log("DFA after predictATN: "+s.toString(this.parser.literalNames,this.parser.symbolicNames)),L}finally{this._dfa=null,this.mergeCache=null,e.seek(o),e.release(r)}}execATN(e,n,i,s,r){(this.debug||this.debug_list_atn_decisions)&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(i)+" line "+i.LT(1).line+":"+i.LT(1).column);let o,l=n;this.debug&&console.log("s0 = "+n);let L=i.LA(1);for(;;){let a=this.getExistingTargetState(l,L);if(a===null&&(a=this.computeTargetState(e,l,L)),a===L4.ERROR){const c=this.noViableAlt(i,r,l.configs,s);if(i.seek(s),o=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(l.configs,r),o!==a1.INVALID_ALT_NUMBER)return o;throw c}if(a.requiresFullContext&&this.predictionMode!==t1.SLL){let c=null;if(a.predicates!==null){this.debug&&console.log("DFA state has preds in DFA sim LL failover");const d=i.index;if(d!==s&&i.seek(s),c=this.evalSemanticContext(a.predicates,r,!0),c.length===1)return this.debug&&console.log("Full LL avoided"),c.minValue();d!==s&&i.seek(d)}this.dfa_debug&&console.log("ctx sensitive state "+r+" in "+a);const C=!0,u=this.computeStartState(e.atnStartState,r,C);return this.reportAttemptingFullContext(e,c,a.configs,s,i.index),o=this.execATNWithFullContext(e,a,u,i,s,r),o}if(a.isAcceptState){if(a.predicates===null)return a.prediction;const c=i.index;i.seek(s);const C=this.evalSemanticContext(a.predicates,r,!0);if(C.length===0)throw this.noViableAlt(i,r,a.configs,s);return C.length===1||this.reportAmbiguity(e,a,s,c,!1,C,a.configs),C.minValue()}l=a,L!==K.EOF&&(i.consume(),L=i.LA(1))}}getExistingTargetState(e,n){const i=e.edges;return i===null?null:i[n+1]||null}computeTargetState(e,n,i){const s=this.computeReachSet(n.configs,i,!1);if(s===null)return this.addDFAEdge(e,n,i,L4.ERROR),L4.ERROR;let r=new k4(null,s);const o=this.getUniqueAlt(s);if(this.debug){const l=t1.getConflictingAltSubsets(s);console.log("SLL altSubSets="+V4(l)+", configs="+s+", predict="+o+", allSubsetsConflict="+t1.allSubsetsConflict(l)+", conflictingAlts="+this.getConflictingAlts(s))}return o!==a1.INVALID_ALT_NUMBER?(r.isAcceptState=!0,r.configs.uniqueAlt=o,r.prediction=o):t1.hasSLLConflictTerminatingPrediction(this.predictionMode,s)&&(r.configs.conflictingAlts=this.getConflictingAlts(s),r.requiresFullContext=!0,r.isAcceptState=!0,r.prediction=r.configs.conflictingAlts.minValue()),r.isAcceptState&&r.configs.hasSemanticContext&&(this.predicateDFAState(r,this.atn.getDecisionState(e.decision)),r.predicates!==null&&(r.prediction=a1.INVALID_ALT_NUMBER)),r=this.addDFAEdge(e,n,i,r),r}predicateDFAState(e,n){const i=n.transitions.length,s=this.getConflictingAltsOrUniqueAlt(e.configs),r=this.getPredsForAmbigAlts(s,e.configs,i);r!==null?(e.predicates=this.getPredicatePredictions(s,r),e.prediction=a1.INVALID_ALT_NUMBER):e.prediction=s.minValue()}execATNWithFullContext(e,n,i,s,r,o){(this.debug||this.debug_list_atn_decisions)&&console.log("execATNWithFullContext "+i);const l=!0;let L=!1,a,c=i;s.seek(r);let C=s.LA(1),u=-1;for(;;){if(a=this.computeReachSet(c,C,l),a===null){const f=this.noViableAlt(s,o,c,r);s.seek(r);const m=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(c,o);if(m!==a1.INVALID_ALT_NUMBER)return m;throw f}const d=t1.getConflictingAltSubsets(a);if(this.debug&&console.log("LL altSubSets="+d+", predict="+t1.getUniqueAlt(d)+", resolvesToJustOneViableAlt="+t1.resolvesToJustOneViableAlt(d)),a.uniqueAlt=this.getUniqueAlt(a),a.uniqueAlt!==a1.INVALID_ALT_NUMBER){u=a.uniqueAlt;break}else if(this.predictionMode!==t1.LL_EXACT_AMBIG_DETECTION){if(u=t1.resolvesToJustOneViableAlt(d),u!==a1.INVALID_ALT_NUMBER)break}else if(t1.allSubsetsConflict(d)&&t1.allSubsetsEqual(d)){L=!0,u=t1.getSingleViableAlt(d);break}c=a,C!==K.EOF&&(s.consume(),C=s.LA(1))}return a.uniqueAlt!==a1.INVALID_ALT_NUMBER?(this.reportContextSensitivity(e,u,a,r,s.index),u):(this.reportAmbiguity(e,n,r,s.index,L,null,a),u)}computeReachSet(e,n,i){this.debug&&console.log("in computeReachSet, starting closure: "+e),this.mergeCache===null&&(this.mergeCache=new Yf);const s=new K1(i);let r=null;for(let l=0;l<e.items.length;l++){const L=e.items[l];if(this.debug&&console.log("testing "+this.getTokenName(n)+" at "+L),L.state instanceof G1){(i||n===K.EOF)&&(r===null&&(r=[]),r.push(L),this.debug_add&&console.log("added "+L+" to skippedStopStates"));continue}for(let a=0;a<L.state.transitions.length;a++){const c=L.state.transitions[a],C=this.getReachableTarget(c,n);if(C!==null){const u=new f1({state:C},L);s.add(u,this.mergeCache),this.debug_add&&console.log("added "+u+" to intermediate")}}}let o=null;if(r===null&&n!==K.EOF&&(s.items.length===1||this.getUniqueAlt(s)!==a1.INVALID_ALT_NUMBER)&&(o=s),o===null){o=new K1(i);const l=new R3,L=n===K.EOF;for(let a=0;a<s.items.length;a++)this.closure(s.items[a],o,l,!1,i,L)}if(n===K.EOF&&(o=this.removeAllConfigsNotInRuleStopState(o,o===s)),r!==null&&(!i||!t1.hasConfigInRuleStopState(o)))for(let l=0;l<r.length;l++)o.add(r[l],this.mergeCache);return o.items.length===0?null:o}removeAllConfigsNotInRuleStopState(e,n){if(t1.allConfigsInRuleStopStates(e))return e;const i=new K1(e.fullCtx);for(let s=0;s<e.items.length;s++){const r=e.items[s];if(r.state instanceof G1){i.add(r,this.mergeCache);continue}if(n&&r.state.epsilonOnlyTransitions&&this.atn.nextTokens(r.state).contains(K.EPSILON)){const l=this.atn.ruleToStopState[r.state.ruleIndex];i.add(new f1({state:l},r),this.mergeCache)}}return i}computeStartState(e,n,i){const s=Re(this.atn,n),r=new K1(i);for(let o=0;o<e.transitions.length;o++){const l=e.transitions[o].target,L=new f1({state:l,alt:o+1,context:s},null),a=new R3;this.closure(L,r,a,!0,i,!1)}return r}applyPrecedenceFilter(e){let n;const i=[],s=new K1(e.fullCtx);for(let r=0;r<e.items.length;r++){if(n=e.items[r],n.alt!==1)continue;const o=n.semanticContext.evalPrecedence(this.parser,this._outerContext);o!==null&&(i[n.state.stateNumber]=n.context,o!==n.semanticContext?s.add(new f1({semanticContext:o},n),this.mergeCache):s.add(n,this.mergeCache))}for(let r=0;r<e.items.length;r++)if(n=e.items[r],n.alt!==1){if(!n.precedenceFilterSuppressed){const o=i[n.state.stateNumber]||null;if(o!==null&&o.equals(n.context))continue}s.add(n,this.mergeCache)}return s}getReachableTarget(e,n){return e.matches(n,0,this.atn.maxTokenType)?e.target:null}getPredsForAmbigAlts(e,n,i){let s=[];for(let o=0;o<n.items.length;o++){const l=n.items[o];e.has(l.alt)&&(s[l.alt]=q2.orContext(s[l.alt]||null,l.semanticContext))}let r=0;for(let o=1;o<i+1;o++){const l=s[o]||null;l===null?s[o]=q2.NONE:l!==q2.NONE&&(r+=1)}return r===0&&(s=null),this.debug&&console.log("getPredsForAmbigAlts result "+V4(s)),s}getPredicatePredictions(e,n){const i=[];let s=!1;for(let r=1;r<n.length;r++){const o=n[r];e!==null&&e.has(r)&&i.push(new Mo(o,r)),o!==q2.NONE&&(s=!0)}return s?i:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(e,n){const i=this.splitAccordingToSemanticValidity(e,n),s=i[0],r=i[1];let o=this.getAltThatFinishedDecisionEntryRule(s);return o!==a1.INVALID_ALT_NUMBER||r.items.length>0&&(o=this.getAltThatFinishedDecisionEntryRule(r),o!==a1.INVALID_ALT_NUMBER)?o:a1.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(e){const n=[];for(let i=0;i<e.items.length;i++){const s=e.items[i];(s.reachesIntoOuterContext>0||s.state instanceof G1&&s.context.hasEmptyPath())&&n.indexOf(s.alt)<0&&n.push(s.alt)}return n.length===0?a1.INVALID_ALT_NUMBER:Math.min.apply(null,n)}splitAccordingToSemanticValidity(e,n){const i=new K1(e.fullCtx),s=new K1(e.fullCtx);for(let r=0;r<e.items.length;r++){const o=e.items[r];o.semanticContext!==q2.NONE?o.semanticContext.evaluate(this.parser,n)?i.add(o):s.add(o):i.add(o)}return[i,s]}evalSemanticContext(e,n,i){const s=new l4;for(let r=0;r<e.length;r++){const o=e[r];if(o.pred===q2.NONE){if(s.add(o.alt),!i)break;continue}const l=o.pred.evaluate(this.parser,n);if((this.debug||this.dfa_debug)&&console.log("eval pred "+o+"="+l),l&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+o.alt),s.add(o.alt),!i))break}return s}closure(e,n,i,s,r,o){this.closureCheckingStopState(e,n,i,s,r,0,o)}closureCheckingStopState(e,n,i,s,r,o,l){if((this.debug||this.debug_closure)&&(console.log("closure("+e.toString(this.parser,!0)+")"),e.reachesIntoOuterContext>50))throw"problem";if(e.state instanceof G1)if(e.context.isEmpty())if(r){n.add(e,this.mergeCache);return}else this.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex));else{for(let L=0;L<e.context.length;L++){if(e.context.getReturnState(L)===D2.EMPTY_RETURN_STATE){if(r){n.add(new f1({state:e.state,context:D2.EMPTY},e),this.mergeCache);continue}else this.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),this.closure_(e,n,i,s,r,o,l);continue}const a=this.atn.states[e.context.getReturnState(L)],c=e.context.getParent(L),C={state:a,alt:e.alt,context:c,semanticContext:e.semanticContext},u=new f1(C,null);u.reachesIntoOuterContext=e.reachesIntoOuterContext,this.closureCheckingStopState(u,n,i,s,r,o-1,l)}return}this.closure_(e,n,i,s,r,o,l)}closure_(e,n,i,s,r,o,l){const L=e.state;L.epsilonOnlyTransitions||n.add(e,this.mergeCache);for(let a=0;a<L.transitions.length;a++){if(a===0&&this.canDropLoopEntryEdgeInLeftRecursiveRule(e))continue;const c=L.transitions[a],C=s&&!(c instanceof mo),u=this.getEpsilonTarget(e,c,C,o===0,r,l);if(u!==null){let d=o;if(e.state instanceof G1){if(this._dfa!==null&&this._dfa.precedenceDfa&&c.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(u.precedenceFilterSuppressed=!0),u.reachesIntoOuterContext+=1,i.add(u)!==u)continue;n.dipsIntoOuterContext=!0,d-=1,this.debug&&console.log("dips into outer ctx: "+u)}else{if(!c.isEpsilon&&i.add(u)!==u)continue;c instanceof B8&&d>=0&&(d+=1)}this.closureCheckingStopState(u,n,i,C,r,d,l)}}}canDropLoopEntryEdgeInLeftRecursiveRule(e){const n=e.state;if(n.stateType!==f2.STAR_LOOP_ENTRY||n.stateType!==f2.STAR_LOOP_ENTRY||!n.isPrecedenceDecision||e.context.isEmpty()||e.context.hasEmptyPath())return!1;const i=e.context.length;for(let l=0;l<i;l++)if(this.atn.states[e.context.getReturnState(l)].ruleIndex!==n.ruleIndex)return!1;const r=n.transitions[0].target.endState.stateNumber,o=this.atn.states[r];for(let l=0;l<i;l++){const L=e.context.getReturnState(l),a=this.atn.states[L];if(a.transitions.length!==1||!a.transitions[0].isEpsilon)return!1;const c=a.transitions[0].target;if(!(a.stateType===f2.BLOCK_END&&c===n)&&a!==o&&c!==o&&!(c.stateType===f2.BLOCK_END&&c.transitions.length===1&&c.transitions[0].isEpsilon&&c.transitions[0].target===n))return!1}return!0}getRuleName(e){return this.parser!==null&&e>=0?this.parser.ruleNames[e]:"<rule "+e+">"}getEpsilonTarget(e,n,i,s,r,o){switch(n.serializationType){case u2.RULE:return this.ruleTransition(e,n);case u2.PRECEDENCE:return this.precedenceTransition(e,n,i,s,r);case u2.PREDICATE:return this.predTransition(e,n,i,s,r);case u2.ACTION:return this.actionTransition(e,n);case u2.EPSILON:return new f1({state:n.target},e);case u2.ATOM:case u2.RANGE:case u2.SET:return o&&n.matches(K.EOF,0,1)?new f1({state:n.target},e):null;default:return null}}actionTransition(e,n){if(this.debug){const i=n.actionIndex===-1?65535:n.actionIndex;console.log("ACTION edge "+n.ruleIndex+":"+i)}return new f1({state:n.target},e)}precedenceTransition(e,n,i,s,r){this.debug&&(console.log("PRED (collectPredicates="+i+") "+n.precedence+">=_p, ctx dependent=true"),this.parser!==null&&console.log("context surrounding pred is "+V4(this.parser.getRuleInvocationStack())));let o=null;if(i&&s)if(r){const l=this._input.index;this._input.seek(this._startIndex);const L=n.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(l),L&&(o=new f1({state:n.target},e))}else{const l=q2.andContext(e.semanticContext,n.getPredicate());o=new f1({state:n.target,semanticContext:l},e)}else o=new f1({state:n.target},e);return this.debug&&console.log("config from pred transition="+o),o}predTransition(e,n,i,s,r){this.debug&&(console.log("PRED (collectPredicates="+i+") "+n.ruleIndex+":"+n.predIndex+", ctx dependent="+n.isCtxDependent),this.parser!==null&&console.log("context surrounding pred is "+V4(this.parser.getRuleInvocationStack())));let o=null;if(i&&(n.isCtxDependent&&s||!n.isCtxDependent))if(r){const l=this._input.index;this._input.seek(this._startIndex);const L=n.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(l),L&&(o=new f1({state:n.target},e))}else{const l=q2.andContext(e.semanticContext,n.getPredicate());o=new f1({state:n.target,semanticContext:l},e)}else o=new f1({state:n.target},e);return this.debug&&console.log("config from pred transition="+o),o}ruleTransition(e,n){this.debug&&console.log("CALL rule "+this.getRuleName(n.target.ruleIndex)+", ctx="+e.context);const i=n.followState,s=j1.create(e.context,i.stateNumber);return new f1({state:n.target,context:s},e)}getConflictingAlts(e){const n=t1.getConflictingAltSubsets(e);return t1.getAlts(n)}getConflictingAltsOrUniqueAlt(e){let n=null;return e.uniqueAlt!==a1.INVALID_ALT_NUMBER?(n=new l4,n.add(e.uniqueAlt)):n=e.conflictingAlts,n}getTokenName(e){if(e===K.EOF)return"EOF";if(this.parser!==null&&this.parser.literalNames!==null)if(e>=this.parser.literalNames.length&&e>=this.parser.symbolicNames.length)console.log(""+e+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens());else return(this.parser.literalNames[e]||this.parser.symbolicNames[e])+"<"+e+">";return""+e}getLookaheadName(e){return this.getTokenName(e.LA(1))}dumpDeadEndConfigs(e){console.log("dead end configs: ");const n=e.getDeadEndConfigs();for(let i=0;i<n.length;i++){const s=n[i];let r="no edges";if(s.state.transitions.length>0){const o=s.state.transitions[0];o instanceof $8?r="Atom "+this.getTokenName(o.label):o instanceof _e&&(r=(o instanceof ve?"~":"")+"Set "+o.set)}console.error(s.toString(this.parser,!0)+":"+r)}}noViableAlt(e,n,i,s){return new $e(this.parser,e,e.get(s),e.LT(1),i,n)}getUniqueAlt(e){let n=a1.INVALID_ALT_NUMBER;for(let i=0;i<e.items.length;i++){const s=e.items[i];if(n===a1.INVALID_ALT_NUMBER)n=s.alt;else if(s.alt!==n)return a1.INVALID_ALT_NUMBER}return n}addDFAEdge(e,n,i,s){if(this.debug&&console.log("EDGE "+n+" -> "+s+" upon "+this.getTokenName(i)),s===null)return null;if(s=this.addDFAState(e,s),n===null||i<-1||i>this.atn.maxTokenType)return s;if(n.edges===null&&(n.edges=[]),n.edges[i+1]=s,this.debug){const r=this.parser===null?null:this.parser.literalNames,o=this.parser===null?null:this.parser.symbolicNames;console.log(`DFA=
14
14
  `+e.toString(r,o))}return s}addDFAState(e,n){if(n===L4.ERROR)return n;const i=e.states.get(n);return i!==null?i:(n.stateNumber=e.states.length,n.configs.readOnly||(n.configs.optimizeConfigs(this),n.configs.setReadonly(!0)),e.states.add(n),this.debug&&console.log("adding new DFA state: "+n),n)}reportAttemptingFullContext(e,n,i,s,r){if(this.debug||this.retry_debug){const o=new K2(s,r+1);console.log("reportAttemptingFullContext decision="+e.decision+":"+i+", input="+this.parser.getTokenStream().getText(o))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,e,s,r,n,i)}reportContextSensitivity(e,n,i,s,r){if(this.debug||this.retry_debug){const o=new K2(s,r+1);console.log("reportContextSensitivity decision="+e.decision+":"+i+", input="+this.parser.getTokenStream().getText(o))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,e,s,r,n,i)}reportAmbiguity(e,n,i,s,r,o,l){if(this.debug||this.retry_debug){const L=new K2(i,s+1);console.log("reportAmbiguity "+o+":"+l+", input="+this.parser.getTokenStream().getText(L))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,e,i,s,r,o,l)}}const Xf={ATN:a1,ATNDeserializer:xo,LexerATNSimulator:C1,ParserATNSimulator:Qf,PredictionMode:t1};class He{constructor(e,n,i){this.dfa=e,this.literalNames=n||[],this.symbolicNames=i||[]}toString(){if(this.dfa.s0===null)return null;let e="";const n=this.dfa.sortedStates();for(let i=0;i<n.length;i++){const s=n[i];if(s.edges!==null){const r=s.edges.length;for(let o=0;o<r;o++){const l=s.edges[o]||null;l!==null&&l.stateNumber!==2147483647&&(e=e.concat(this.getStateString(s)),e=e.concat("-"),e=e.concat(this.getEdgeLabel(o)),e=e.concat("->"),e=e.concat(this.getStateString(l)),e=e.concat(`
15
- `))}}}return e.length===0?null:e}getEdgeLabel(e){return e===0?"EOF":this.literalNames!==null||this.symbolicNames!==null?this.literalNames[e-1]||this.symbolicNames[e-1]:String.fromCharCode(e-1)}getStateString(e){const n=(e.isAcceptState?":":"")+"s"+e.stateNumber+(e.requiresFullContext?"^":"");return e.isAcceptState?e.predicates!==null?n+"=>"+V4(e.predicates):n+"=>"+e.prediction.toString():n}}class yo extends He{constructor(e){super(e,null)}getEdgeLabel(e){return"'"+String.fromCharCode(e)+"'"}}class Jf{constructor(e,n){if(n===void 0&&(n=0),this.atnStartState=e,this.decision=n,this._states=new R3,this.s0=null,this.precedenceDfa=!1,e instanceof M9&&e.isPrecedenceDecision){this.precedenceDfa=!0;const i=new k4(null,new K1);i.edges=[],i.isAcceptState=!1,i.requiresFullContext=!1,this.s0=i}}getPrecedenceStartState(e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return e<0||e>=this.s0.edges.length?null:this.s0.edges[e]||null}setPrecedenceStartState(e,n){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";e<0||(this.s0.edges[e]=n)}setPrecedenceDfa(e){if(this.precedenceDfa!==e){if(this._states=new R3,e){const n=new k4(null,new K1);n.edges=[],n.isAcceptState=!1,n.requiresFullContext=!1,this.s0=n}else this.s0=null;this.precedenceDfa=e}}sortedStates(){return this._states.values().sort(function(n,i){return n.stateNumber-i.stateNumber})}toString(e,n){return e=e||null,n=n||null,this.s0===null?"":new He(this,e,n).toString()}toLexerString(){return this.s0===null?"":new yo(this).toString()}get states(){return this._states}}const eg={DFA:Jf,DFASerializer:He,LexerDFASerializer:yo,PredPrediction:Mo};class Ro{visitTerminal(e){}visitErrorNode(e){}enterEveryRule(e){}exitEveryRule(e){}}class tg{visit(e){return Array.isArray(e)?e.map(function(n){return n.accept(this)},this):e.accept(this)}visitChildren(e){return e.children?this.visit(e.children):null}visitTerminal(e){}visitErrorNode(e){}}class Ve{walk(e,n){if(n instanceof U8||n.isErrorNode!==void 0&&n.isErrorNode())e.visitErrorNode(n);else if(n instanceof R4)e.visitTerminal(n);else{this.enterRule(e,n);for(let s=0;s<n.getChildCount();s++){const r=n.getChild(s);this.walk(e,r)}this.exitRule(e,n)}}enterRule(e,n){const i=n.getRuleContext();e.enterEveryRule(i),i.enterRule(e)}exitRule(e,n){const i=n.getRuleContext();i.exitRule(e),e.exitEveryRule(i)}}Ve.DEFAULT=new Ve;const ng={Trees:r4,RuleNode:z8,ErrorNode:U8,TerminalNode:R4,ParseTreeListener:Ro,ParseTreeVisitor:tg,ParseTreeWalker:Ve};class L5 extends G4{constructor(e){super({message:"",recognizer:e,input:e.getInputStream(),ctx:e._ctx}),this.offendingToken=e.getCurrentToken()}}class Ao extends G4{constructor(e,n,i){super({message:ig(n,i||null),recognizer:e,input:e.getInputStream(),ctx:e._ctx});const r=e._interp.atn.states[e.state].transitions[0];r instanceof wo?(this.ruleIndex=r.ruleIndex,this.predicateIndex=r.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=n,this.offendingToken=e.getCurrentToken()}}function ig(t,e){return e!==null?e:"failed predicate: {"+t+"}?"}class sg extends j8{constructor(e){super(),e=e||!0,this.exactOnly=e}reportAmbiguity(e,n,i,s,r,o,l){if(this.exactOnly&&!r)return;const L="reportAmbiguity d="+this.getDecisionDescription(e,n)+": ambigAlts="+this.getConflictingAlts(o,l)+", input='"+e.getTokenStream().getText(new K2(i,s))+"'";e.notifyErrorListeners(L)}reportAttemptingFullContext(e,n,i,s,r,o){const l="reportAttemptingFullContext d="+this.getDecisionDescription(e,n)+", input='"+e.getTokenStream().getText(new K2(i,s))+"'";e.notifyErrorListeners(l)}reportContextSensitivity(e,n,i,s,r,o){const l="reportContextSensitivity d="+this.getDecisionDescription(e,n)+", input='"+e.getTokenStream().getText(new K2(i,s))+"'";e.notifyErrorListeners(l)}getDecisionDescription(e,n){const i=n.decision,s=n.atnStartState.ruleIndex,r=e.ruleNames;if(s<0||s>=r.length)return""+i;const o=r[s]||null;return o===null||o.length===0?""+i:`${i} (${o})`}getConflictingAlts(e,n){if(e!==null)return e;const i=new l4;for(let s=0;s<n.items.length;s++)i.add(n.items[s].alt);return`{${i.values().join(", ")}}`}}class Ge extends Error{constructor(){super(),Error.captureStackTrace(this,Ge)}}class rg{reset(e){}recoverInline(e){}recover(e,n){}sync(e){}inErrorRecoveryMode(e){}reportError(e){}}class je extends rg{constructor(){super(),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this.nextTokensContext=null,this.nextTokenState=0}reset(e){this.endErrorCondition(e)}beginErrorCondition(e){this.errorRecoveryMode=!0}inErrorRecoveryMode(e){return this.errorRecoveryMode}endErrorCondition(e){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}reportMatch(e){this.endErrorCondition(e)}reportError(e,n){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),n instanceof $e?this.reportNoViableAlternative(e,n):n instanceof L5?this.reportInputMismatch(e,n):n instanceof Ao?this.reportFailedPredicate(e,n):(console.log("unknown recognition error type: "+n.constructor.name),console.log(n.stack),e.notifyErrorListeners(n.getOffendingToken(),n.getMessage(),n)))}recover(e,n){this.lastErrorIndex===e.getInputStream().index&&this.lastErrorStates!==null&&this.lastErrorStates.indexOf(e.state)>=0&&e.consume(),this.lastErrorIndex=e._input.index,this.lastErrorStates===null&&(this.lastErrorStates=[]),this.lastErrorStates.push(e.state);const i=this.getErrorRecoverySet(e);this.consumeUntil(e,i)}sync(e){if(this.inErrorRecoveryMode(e))return;const n=e._interp.atn.states[e.state],i=e.getTokenStream().LA(1),s=e.atn.nextTokens(n);if(s.contains(i)){this.nextTokensContext=null,this.nextTokenState=f2.INVALID_STATE_NUMBER;return}else if(s.contains(K.EPSILON)){this.nextTokensContext===null&&(this.nextTokensContext=e._ctx,this.nextTokensState=e._stateNumber);return}switch(n.stateType){case f2.BLOCK_START:case f2.STAR_BLOCK_START:case f2.PLUS_BLOCK_START:case f2.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(e)!==null)return;throw new L5(e);case f2.PLUS_LOOP_BACK:case f2.STAR_LOOP_BACK:{this.reportUnwantedToken(e);const r=new F3;r.addSet(e.getExpectedTokens());const o=r.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,o)}break}}reportNoViableAlternative(e,n){const i=e.getTokenStream();let s;i!==null?n.startToken.type===K.EOF?s="<EOF>":s=i.getText(new K2(n.startToken.tokenIndex,n.offendingToken.tokenIndex)):s="<unknown input>";const r="no viable alternative at input "+this.escapeWSAndQuote(s);e.notifyErrorListeners(r,n.offendingToken,n)}reportInputMismatch(e,n){const i="mismatched input "+this.getTokenErrorDisplay(n.offendingToken)+" expecting "+n.getExpectedTokens().toString(e.literalNames,e.symbolicNames);e.notifyErrorListeners(i,n.offendingToken,n)}reportFailedPredicate(e,n){const s="rule "+e.ruleNames[e._ctx.ruleIndex]+" "+n.message;e.notifyErrorListeners(s,n.offendingToken,n)}reportUnwantedToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const n=e.getCurrentToken(),i=this.getTokenErrorDisplay(n),s=this.getExpectedTokens(e),r="extraneous input "+i+" expecting "+s.toString(e.literalNames,e.symbolicNames);e.notifyErrorListeners(r,n,null)}reportMissingToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const n=e.getCurrentToken(),s="missing "+this.getExpectedTokens(e).toString(e.literalNames,e.symbolicNames)+" at "+this.getTokenErrorDisplay(n);e.notifyErrorListeners(s,n,null)}recoverInline(e){const n=this.singleTokenDeletion(e);if(n!==null)return e.consume(),n;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw new L5(e)}singleTokenInsertion(e){const n=e.getTokenStream().LA(1),i=e._interp.atn,r=i.states[e.state].transitions[0].target;return i.nextTokens(r,e._ctx).contains(n)?(this.reportMissingToken(e),!0):!1}singleTokenDeletion(e){const n=e.getTokenStream().LA(2);if(this.getExpectedTokens(e).contains(n)){this.reportUnwantedToken(e),e.consume();const s=e.getCurrentToken();return this.reportMatch(e),s}else return null}getMissingSymbol(e){const n=e.getCurrentToken(),s=this.getExpectedTokens(e).first();let r;s===K.EOF?r="<missing EOF>":r="<missing "+e.literalNames[s]+">";let o=n;const l=e.getTokenStream().LT(-1);return o.type===K.EOF&&l!==null&&(o=l),e.getTokenFactory().create(o.source,s,r,K.DEFAULT_CHANNEL,-1,-1,o.line,o.column)}getExpectedTokens(e){return e.getExpectedTokens()}getTokenErrorDisplay(e){if(e===null)return"<no token>";let n=e.text;return n===null&&(e.type===K.EOF?n="<EOF>":n="<"+e.type+">"),this.escapeWSAndQuote(n)}escapeWSAndQuote(e){return e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/\t/g,"\\t"),"'"+e+"'"}getErrorRecoverySet(e){const n=e._interp.atn;let i=e._ctx;const s=new F3;for(;i!==null&&i.invokingState>=0;){const o=n.states[i.invokingState].transitions[0],l=n.nextTokens(o.followState);s.addSet(l),i=i.parentCtx}return s.removeOne(K.EPSILON),s}consumeUntil(e,n){let i=e.getTokenStream().LA(1);for(;i!==K.EOF&&!n.contains(i);)e.consume(),i=e.getTokenStream().LA(1)}}class og extends je{constructor(){super()}recover(e,n){let i=e._ctx;for(;i!==null;)i.exception=n,i=i.parentCtx;throw new Ge(n)}recoverInline(e){this.recover(e,new L5(e))}sync(e){}}const lg={RecognitionException:G4,NoViableAltException:$e,LexerNoViableAltException:We,InputMismatchException:L5,FailedPredicateException:Ao,DiagnosticErrorListener:sg,BailErrorStrategy:og,DefaultErrorStrategy:je,ErrorListener:j8};class R9{constructor(e,n){if(this.name="<empty>",this.strdata=e,this.decodeToUnicodeCodePoints=n||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(let i=0;i<this.strdata.length;){const s=this.strdata.codePointAt(i);this.data.push(s),i+=s<=65535?1:2}else{this.data=new Array(this.strdata.length);for(let i=0;i<this.strdata.length;i++){const s=this.strdata.charCodeAt(i);this.data[i]=s}}this._size=this.data.length}reset(){this._index=0}consume(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}LA(e){if(e===0)return 0;e<0&&(e+=1);const n=this._index+e-1;return n<0||n>=this._size?K.EOF:this.data[n]}LT(e){return this.LA(e)}mark(){return-1}release(e){}seek(e){if(e<=this._index){this._index=e;return}this._index=Math.min(e,this._size)}getText(e,n){if(n>=this._size&&(n=this._size-1),e>=this._size)return"";if(this.decodeToUnicodeCodePoints){let i="";for(let s=e;s<=n;s++)i+=String.fromCodePoint(this.data[s]);return i}else return this.strdata.slice(e,n+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}const qe={},Lg={fromString:function(t){return new R9(t,!0)},fromBlob:function(t,e,n,i){const s=new window.FileReader;s.onload=function(r){const o=new R9(r.target.result,!0);n(o)},s.onerror=i,s.readAsText(t,e)},fromBuffer:function(t,e){return new R9(t.toString(e),!0)},fromPath:function(t,e,n){qe.readFile(t,e,function(i,s){let r=null;s!==null&&(r=new R9(s,!0)),n(i,r)})},fromPathSync:function(t,e){const n=qe.readFileSync(t,e);return new R9(n,!0)}};class ag extends R9{constructor(e,n){const i=qe.readFileSync(e,"utf8");super(i,n),this.fileName=e}}class cg{}class Cg extends cg{constructor(e){super(),this.tokenSource=e,this.tokens=[],this.index=-1,this.fetchedEOF=!1}mark(){return 0}release(e){}reset(){this.seek(0)}seek(e){this.lazyInit(),this.index=this.adjustSeekIndex(e)}get(e){return this.lazyInit(),this.tokens[e]}consume(){let e=!1;if(this.index>=0?this.fetchedEOF?e=this.index<this.tokens.length-1:e=this.index<this.tokens.length:e=!1,!e&&this.LA(1)===K.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}sync(e){const n=e-this.tokens.length+1;return n>0?this.fetch(n)>=n:!0}fetch(e){if(this.fetchedEOF)return 0;for(let n=0;n<e;n++){const i=this.tokenSource.nextToken();if(i.tokenIndex=this.tokens.length,this.tokens.push(i),i.type===K.EOF)return this.fetchedEOF=!0,n+1}return e}getTokens(e,n,i){if(i===void 0&&(i=null),e<0||n<0)return null;this.lazyInit();const s=[];n>=this.tokens.length&&(n=this.tokens.length-1);for(let r=e;r<n;r++){const o=this.tokens[r];if(o.type===K.EOF)break;(i===null||i.contains(o.type))&&s.push(o)}return s}LA(e){return this.LT(e).type}LB(e){return this.index-e<0?null:this.tokens[this.index-e]}LT(e){if(this.lazyInit(),e===0)return null;if(e<0)return this.LB(-e);const n=this.index+e-1;return this.sync(n),n>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[n]}adjustSeekIndex(e){return e}lazyInit(){this.index===-1&&this.setup()}setup(){this.sync(0),this.index=this.adjustSeekIndex(0)}setTokenSource(e){this.tokenSource=e,this.tokens=[],this.index=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,n){if(this.sync(e),e>=this.tokens.length)return-1;let i=this.tokens[e];for(;i.channel!==this.channel;){if(i.type===K.EOF)return-1;e+=1,this.sync(e),i=this.tokens[e]}return e}previousTokenOnChannel(e,n){for(;e>=0&&this.tokens[e].channel!==n;)e-=1;return e}getHiddenTokensToRight(e,n){if(n===void 0&&(n=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw""+e+" not in 0.."+this.tokens.length-1;const i=this.nextTokenOnChannel(e+1,q1.DEFAULT_TOKEN_CHANNEL),s=e+1,r=i===-1?this.tokens.length-1:i;return this.filterForChannel(s,r,n)}getHiddenTokensToLeft(e,n){if(n===void 0&&(n=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw""+e+" not in 0.."+this.tokens.length-1;const i=this.previousTokenOnChannel(e-1,q1.DEFAULT_TOKEN_CHANNEL);if(i===e-1)return null;const s=i+1,r=e-1;return this.filterForChannel(s,r,n)}filterForChannel(e,n,i){const s=[];for(let r=e;r<n+1;r++){const o=this.tokens[r];i===-1?o.channel!==q1.DEFAULT_TOKEN_CHANNEL&&s.push(o):o.channel===i&&s.push(o)}return s.length===0?null:s}getSourceName(){return this.tokenSource.getSourceName()}getText(e){this.lazyInit(),this.fill(),e==null&&(e=new K2(0,this.tokens.length-1));let n=e.start;n instanceof K&&(n=n.tokenIndex);let i=e.stop;if(i instanceof K&&(i=i.tokenIndex),n===null||i===null||n<0||i<0)return"";i>=this.tokens.length&&(i=this.tokens.length-1);let s="";for(let r=n;r<i+1;r++){const o=this.tokens[r];if(o.type===K.EOF)break;s=s+o.text}return s}fill(){for(this.lazyInit();this.fetch(1e3)===1e3;);}}class ug extends Cg{constructor(e,n){super(e),this.channel=n===void 0?K.DEFAULT_CHANNEL:n}adjustSeekIndex(e){return this.nextTokenOnChannel(e,this.channel)}LB(e){if(e===0||this.index-e<0)return null;let n=this.index,i=1;for(;i<=e;)n=this.previousTokenOnChannel(n-1,this.channel),i+=1;return n<0?null:this.tokens[n]}LT(e){if(this.lazyInit(),e===0)return null;if(e<0)return this.LB(-e);let n=this.index,i=1;for(;i<e;)this.sync(n+1)&&(n=this.nextTokenOnChannel(n+1,this.channel)),i+=1;return this.tokens[n]}getNumberOfOnChannelTokens(){let e=0;this.fill();for(let n=0;n<this.tokens.length;n++){const i=this.tokens[n];if(i.channel===this.channel&&(e+=1),i.type===K.EOF)break}return e}}class hg extends Ro{constructor(e){super(),this.parser=e}enterEveryRule(e){console.log("enter "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}visitTerminal(e){console.log("consume "+e.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}exitEveryRule(e){console.log("exit "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}let ko=class extends q8{constructor(e){super(),this._input=null,this._errHandler=new je,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(e)}reset(){this._input!==null&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),this._interp!==null&&this._interp.reset()}match(e){let n=this.getCurrentToken();return n.type===e?(this._errHandler.reportMatch(this),this.consume()):(n=this._errHandler.recoverInline(this),this.buildParseTrees&&n.tokenIndex===-1&&this._ctx.addErrorNode(n)),n}matchWildcard(){let e=this.getCurrentToken();return e.type>0?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&e.tokenIndex===-1&&this._ctx.addErrorNode(e)),e}getParseListeners(){return this._parseListeners||[]}addParseListener(e){if(e===null)throw"listener";this._parseListeners===null&&(this._parseListeners=[]),this._parseListeners.push(e)}removeParseListener(e){if(this._parseListeners!==null){const n=this._parseListeners.indexOf(e);n>=0&&this._parseListeners.splice(n,1),this._parseListeners.length===0&&(this._parseListeners=null)}}removeParseListeners(){this._parseListeners=null}triggerEnterRuleEvent(){if(this._parseListeners!==null){const e=this._ctx;this._parseListeners.forEach(function(n){n.enterEveryRule(e),e.enterRule(n)})}}triggerExitRuleEvent(){if(this._parseListeners!==null){const e=this._ctx;this._parseListeners.slice(0).reverse().forEach(function(n){e.exitRule(n),n.exitEveryRule(e)})}}getTokenFactory(){return this._input.tokenSource._factory}setTokenFactory(e){this._input.tokenSource._factory=e}getATNWithBypassAlts(){const e=this.getSerializedATN();if(e===null)throw"The current parser does not support an ATN with bypass alternatives.";let n=this.bypassAltsAtnCache[e];if(n===null){const i=new o5;i.generateRuleBypassTransitions=!0,n=new xo(i).deserialize(e),this.bypassAltsAtnCache[e]=n}return n}getInputStream(){return this.getTokenStream()}setInputStream(e){this.setTokenStream(e)}getTokenStream(){return this._input}setTokenStream(e){this._input=null,this.reset(),this._input=e}getCurrentToken(){return this._input.LT(1)}notifyErrorListeners(e,n,i){n=n||null,i=i||null,n===null&&(n=this.getCurrentToken()),this._syntaxErrors+=1;const s=n.line,r=n.column;this.getErrorListenerDispatch().syntaxError(this,n,s,r,e,i)}consume(){const e=this.getCurrentToken();e.type!==K.EOF&&this.getInputStream().consume();const n=this._parseListeners!==null&&this._parseListeners.length>0;if(this.buildParseTrees||n){let i;this._errHandler.inErrorRecoveryMode(this)?i=this._ctx.addErrorNode(e):i=this._ctx.addTokenNode(e),i.invokingState=this.state,n&&this._parseListeners.forEach(function(s){i instanceof U8||i.isErrorNode!==void 0&&i.isErrorNode()?s.visitErrorNode(i):i instanceof R4&&s.visitTerminal(i)})}return e}addContextToParseTree(){this._ctx.parentCtx!==null&&this._ctx.parentCtx.addChild(this._ctx)}enterRule(e,n,i){this.state=n,this._ctx=e,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}enterOuterAlt(e,n){e.setAltNumber(n),this.buildParseTrees&&this._ctx!==e&&this._ctx.parentCtx!==null&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(e)),this._ctx=e}getPrecedence(){return this._precedenceStack.length===0?-1:this._precedenceStack[this._precedenceStack.length-1]}enterRecursionRule(e,n,i,s){this.state=n,this._precedenceStack.push(s),this._ctx=e,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(e,n,i){const s=this._ctx;s.parentCtx=e,s.invokingState=n,s.stop=this._input.LT(-1),this._ctx=e,this._ctx.start=s.start,this.buildParseTrees&&this._ctx.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(e){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);const n=this._ctx,i=this.getParseListeners();if(i!==null&&i.length>0)for(;this._ctx!==e;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=e;n.parentCtx=e,this.buildParseTrees&&e!==null&&e.addChild(n)}getInvokingContext(e){let n=this._ctx;for(;n!==null;){if(n.ruleIndex===e)return n;n=n.parentCtx}return null}precpred(e,n){return n>=this._precedenceStack[this._precedenceStack.length-1]}inContext(e){return!1}isExpectedToken(e){const n=this._interp.atn;let i=this._ctx;const s=n.states[this.state];let r=n.nextTokens(s);if(r.contains(e))return!0;if(!r.contains(K.EPSILON))return!1;for(;i!==null&&i.invokingState>=0&&r.contains(K.EPSILON);){const l=n.states[i.invokingState].transitions[0];if(r=n.nextTokens(l.followState),r.contains(e))return!0;i=i.parentCtx}return!!(r.contains(K.EPSILON)&&e===K.EOF)}getExpectedTokens(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}getExpectedTokensWithinCurrentRule(){const e=this._interp.atn,n=e.states[this.state];return e.nextTokens(n)}getRuleIndex(e){const n=this.getRuleIndexMap()[e];return n!==null?n:-1}getRuleInvocationStack(e){e=e||null,e===null&&(e=this._ctx);const n=[];for(;e!==null;){const i=e.ruleIndex;i<0?n.push("n/a"):n.push(this.ruleNames[i]),e=e.parentCtx}return n}getDFAStrings(){return this._interp.decisionToDFA.toString()}dumpDFA(){let e=!1;for(let n=0;n<this._interp.decisionToDFA.length;n++){const i=this._interp.decisionToDFA[n];i.states.length>0&&(e&&console.log(),this.printer.println("Decision "+i.decision+":"),this.printer.print(i.toString(this.literalNames,this.symbolicNames)),e=!0)}}getSourceName(){return this._input.sourceName}setTrace(e){e?(this._tracer!==null&&this.removeParseListener(this._tracer),this._tracer=new hg(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}};ko.bypassAltsAtnCache={};class dg{constructor(){this.cache=new s5}add(e){if(e===D2.EMPTY)return D2.EMPTY;const n=this.cache.get(e)||null;return n!==null?n:(this.cache.set(e,e),e)}get(e){return this.cache.get(e)||null}get length(){return this.cache.length}}class Zo extends R4{constructor(e){super(),this.parentCtx=null,this.symbol=e}getChild(e){return null}getSymbol(){return this.symbol}getParent(){return this.parentCtx}getPayload(){return this.symbol}getSourceInterval(){if(this.symbol===null)return K2.INVALID_INTERVAL;const e=this.symbol.tokenIndex;return new K2(e,e)}getChildCount(){return 0}accept(e){return e.visitTerminal(this)}getText(){return this.symbol.text}toString(){return this.symbol.type===K.EOF?"<EOF>":this.symbol.text}}class To extends Zo{constructor(e){super(e)}isErrorNode(){return!0}accept(e){return e.visitErrorNode(this)}}let bo=class extends l0{constructor(e,n){e=e||null,n=n||null,super(e,n),this.ruleIndex=-1,this.children=null,this.start=null,this.stop=null,this.exception=null}copyFrom(e){this.parentCtx=e.parentCtx,this.invokingState=e.invokingState,this.children=null,this.start=e.start,this.stop=e.stop,e.children&&(this.children=[],e.children.map(function(n){n instanceof To&&(this.children.push(n),n.parentCtx=this)},this))}enterRule(e){}exitRule(e){}addChild(e){return this.children===null&&(this.children=[]),this.children.push(e),e}removeLastChild(){this.children!==null&&this.children.pop()}addTokenNode(e){const n=new Zo(e);return this.addChild(n),n.parentCtx=this,n}addErrorNode(e){const n=new To(e);return this.addChild(n),n.parentCtx=this,n}getChild(e,n){if(n=n||null,this.children===null||e<0||e>=this.children.length)return null;if(n===null)return this.children[e];for(let i=0;i<this.children.length;i++){const s=this.children[i];if(s instanceof n){if(e===0)return s;e-=1}}return null}getToken(e,n){if(this.children===null||n<0||n>=this.children.length)return null;for(let i=0;i<this.children.length;i++){const s=this.children[i];if(s instanceof R4&&s.symbol.type===e){if(n===0)return s;n-=1}}return null}getTokens(e){if(this.children===null)return[];{const n=[];for(let i=0;i<this.children.length;i++){const s=this.children[i];s instanceof R4&&s.symbol.type===e&&n.push(s)}return n}}getTypedRuleContext(e,n){return this.getChild(n,e)}getTypedRuleContexts(e){if(this.children===null)return[];{const n=[];for(let i=0;i<this.children.length;i++){const s=this.children[i];s instanceof e&&n.push(s)}return n}}getChildCount(){return this.children===null?0:this.children.length}getSourceInterval(){return this.start===null||this.stop===null?K2.INVALID_INTERVAL:new K2(this.start.tokenIndex,this.stop.tokenIndex)}};l0.EMPTY=new bo;const Z={atn:Xf,dfa:eg,tree:ng,error:lg,Token:K,CommonToken:y9,CharStreams:Lg,InputStream:R9,FileStream:ag,CommonTokenStream:ug,Lexer:q1,Parser:ko,PredictionContextCache:dg,ParserRuleContext:bo,Interval:K2,IntervalSet:F3,LL1Analyzer:L0,Utils:{arrayToString:V4}},fg=[4,0,70,570,6,-1,6,-1,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,8,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,11,1,11,4,11,215,8,11,11,11,12,11,216,1,12,1,12,1,12,1,13,1,13,1,13,1,14,1,14,1,14,1,15,1,15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,18,1,19,1,19,1,19,1,20,1,20,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,3,36,287,8,36,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,3,39,323,8,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,3,46,371,8,46,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,3,53,417,8,53,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,3,54,445,8,54,1,55,1,55,5,55,449,8,55,10,55,12,55,452,9,55,1,56,1,56,1,57,1,57,5,57,458,8,57,10,57,12,57,461,9,57,1,58,4,58,464,8,58,11,58,12,58,465,1,59,1,59,1,60,4,60,471,8,60,11,60,12,60,472,1,61,4,61,476,8,61,11,61,12,61,477,1,61,1,61,5,61,482,8,61,10,61,12,61,485,9,61,1,61,1,61,4,61,489,8,61,11,61,12,61,490,3,61,493,8,61,1,62,1,62,1,62,3,62,498,8,62,1,63,1,63,3,63,502,8,63,1,63,1,63,1,64,1,64,1,64,1,64,5,64,510,8,64,10,64,12,64,513,9,64,1,64,3,64,516,8,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,5,66,526,8,66,10,66,12,66,529,9,66,1,66,1,66,1,66,1,66,1,67,1,67,1,68,1,68,5,68,539,8,68,10,68,12,68,542,9,68,1,68,1,68,1,68,1,68,5,68,548,8,68,10,68,12,68,551,9,68,1,69,4,69,554,8,69,11,69,12,69,555,1,70,1,70,1,70,1,70,1,71,4,71,563,8,71,11,71,12,71,564,1,72,1,72,1,72,1,72,1,527,0,73,3,1,5,2,7,3,9,4,11,5,13,6,15,7,17,8,19,9,21,10,23,0,25,11,27,12,29,13,31,14,33,15,35,16,37,17,39,18,41,19,43,20,45,21,47,22,49,23,51,24,53,25,55,26,57,27,59,28,61,29,63,30,65,31,67,32,69,33,71,34,73,35,75,36,77,37,79,38,81,39,83,40,85,41,87,42,89,43,91,44,93,45,95,46,97,47,99,48,101,49,103,50,105,51,107,52,109,53,111,54,113,55,115,56,117,57,119,0,121,0,123,58,125,59,127,60,129,61,131,62,133,63,135,64,137,65,139,66,141,67,143,68,145,69,147,70,3,0,1,2,8,2,0,9,9,32,32,3,0,48,57,65,70,97,102,4,0,48,57,65,90,95,95,97,122,3,0,65,90,95,95,97,122,2,0,65,90,97,122,1,0,48,57,3,0,10,10,13,13,34,34,2,0,10,10,13,13,593,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,1,141,1,0,0,0,1,143,1,0,0,0,2,145,1,0,0,0,2,147,1,0,0,0,3,149,1,0,0,0,5,153,1,0,0,0,7,161,1,0,0,0,9,172,1,0,0,0,11,181,1,0,0,0,13,189,1,0,0,0,15,197,1,0,0,0,17,201,1,0,0,0,19,204,1,0,0,0,21,207,1,0,0,0,23,210,1,0,0,0,25,212,1,0,0,0,27,218,1,0,0,0,29,221,1,0,0,0,31,224,1,0,0,0,33,227,1,0,0,0,35,230,1,0,0,0,37,232,1,0,0,0,39,234,1,0,0,0,41,237,1,0,0,0,43,240,1,0,0,0,45,242,1,0,0,0,47,244,1,0,0,0,49,246,1,0,0,0,51,248,1,0,0,0,53,250,1,0,0,0,55,252,1,0,0,0,57,254,1,0,0,0,59,256,1,0,0,0,61,258,1,0,0,0,63,260,1,0,0,0,65,262,1,0,0,0,67,264,1,0,0,0,69,266,1,0,0,0,71,268,1,0,0,0,73,273,1,0,0,0,75,286,1,0,0,0,77,288,1,0,0,0,79,291,1,0,0,0,81,322,1,0,0,0,83,324,1,0,0,0,85,331,1,0,0,0,87,335,1,0,0,0,89,339,1,0,0,0,91,345,1,0,0,0,93,349,1,0,0,0,95,370,1,0,0,0,97,372,1,0,0,0,99,376,1,0,0,0,101,379,1,0,0,0,103,383,1,0,0,0,105,389,1,0,0,0,107,397,1,0,0,0,109,416,1,0,0,0,111,444,1,0,0,0,113,446,1,0,0,0,115,453,1,0,0,0,117,455,1,0,0,0,119,463,1,0,0,0,121,467,1,0,0,0,123,470,1,0,0,0,125,492,1,0,0,0,127,494,1,0,0,0,129,501,1,0,0,0,131,505,1,0,0,0,133,517,1,0,0,0,135,521,1,0,0,0,137,534,1,0,0,0,139,536,1,0,0,0,141,553,1,0,0,0,143,557,1,0,0,0,145,562,1,0,0,0,147,566,1,0,0,0,149,150,7,0,0,0,150,151,1,0,0,0,151,152,6,0,0,0,152,4,1,0,0,0,153,154,5,99,0,0,154,155,5,111,0,0,155,156,5,110,0,0,156,157,5,115,0,0,157,158,5,116,0,0,158,159,1,0,0,0,159,160,6,1,1,0,160,6,1,0,0,0,161,162,5,114,0,0,162,163,5,101,0,0,163,164,5,97,0,0,164,165,5,100,0,0,165,166,5,111,0,0,166,167,5,110,0,0,167,168,5,108,0,0,168,169,5,121,0,0,169,170,1,0,0,0,170,171,6,2,1,0,171,8,1,0,0,0,172,173,5,115,0,0,173,174,5,116,0,0,174,175,5,97,0,0,175,176,5,116,0,0,176,177,5,105,0,0,177,178,5,99,0,0,178,179,1,0,0,0,179,180,6,3,1,0,180,10,1,0,0,0,181,182,5,97,0,0,182,183,5,119,0,0,183,184,5,97,0,0,184,185,5,105,0,0,185,186,5,116,0,0,186,187,1,0,0,0,187,188,6,4,1,0,188,12,1,0,0,0,189,190,5,116,0,0,190,191,5,105,0,0,191,192,5,116,0,0,192,193,5,108,0,0,193,194,5,101,0,0,194,195,1,0,0,0,195,196,6,5,2,0,196,14,1,0,0,0,197,198,5,58,0,0,198,199,1,0,0,0,199,200,6,6,3,0,200,16,1,0,0,0,201,202,5,60,0,0,202,203,5,60,0,0,203,18,1,0,0,0,204,205,5,62,0,0,205,206,5,62,0,0,206,20,1,0,0,0,207,208,5,45,0,0,208,209,5,62,0,0,209,22,1,0,0,0,210,211,7,1,0,0,211,24,1,0,0,0,212,214,5,35,0,0,213,215,3,23,10,0,214,213,1,0,0,0,215,216,1,0,0,0,216,214,1,0,0,0,216,217,1,0,0,0,217,26,1,0,0,0,218,219,5,124,0,0,219,220,5,124,0,0,220,28,1,0,0,0,221,222,5,38,0,0,222,223,5,38,0,0,223,30,1,0,0,0,224,225,5,61,0,0,225,226,5,61,0,0,226,32,1,0,0,0,227,228,5,33,0,0,228,229,5,61,0,0,229,34,1,0,0,0,230,231,5,62,0,0,231,36,1,0,0,0,232,233,5,60,0,0,233,38,1,0,0,0,234,235,5,62,0,0,235,236,5,61,0,0,236,40,1,0,0,0,237,238,5,60,0,0,238,239,5,61,0,0,239,42,1,0,0,0,240,241,5,43,0,0,241,44,1,0,0,0,242,243,5,45,0,0,243,46,1,0,0,0,244,245,5,42,0,0,245,48,1,0,0,0,246,247,5,47,0,0,247,50,1,0,0,0,248,249,5,37,0,0,249,52,1,0,0,0,250,251,5,94,0,0,251,54,1,0,0,0,252,253,5,33,0,0,253,56,1,0,0,0,254,255,5,59,0,0,255,58,1,0,0,0,256,257,5,44,0,0,257,60,1,0,0,0,258,259,5,61,0,0,259,62,1,0,0,0,260,261,5,40,0,0,261,64,1,0,0,0,262,263,5,41,0,0,263,66,1,0,0,0,264,265,5,123,0,0,265,68,1,0,0,0,266,267,5,125,0,0,267,70,1,0,0,0,268,269,5,116,0,0,269,270,5,114,0,0,270,271,5,117,0,0,271,272,5,101,0,0,272,72,1,0,0,0,273,274,5,102,0,0,274,275,5,97,0,0,275,276,5,108,0,0,276,277,5,115,0,0,277,278,5,101,0,0,278,74,1,0,0,0,279,280,5,110,0,0,280,281,5,105,0,0,281,287,5,108,0,0,282,283,5,110,0,0,283,284,5,117,0,0,284,285,5,108,0,0,285,287,5,108,0,0,286,279,1,0,0,0,286,282,1,0,0,0,287,76,1,0,0,0,288,289,5,105,0,0,289,290,5,102,0,0,290,78,1,0,0,0,291,292,5,101,0,0,292,293,5,108,0,0,293,294,5,115,0,0,294,295,5,101,0,0,295,80,1,0,0,0,296,297,5,119,0,0,297,298,5,104,0,0,298,299,5,105,0,0,299,300,5,108,0,0,300,323,5,101,0,0,301,302,5,102,0,0,302,303,5,111,0,0,303,323,5,114,0,0,304,305,5,102,0,0,305,306,5,111,0,0,306,307,5,114,0,0,307,308,5,101,0,0,308,309,5,97,0,0,309,310,5,99,0,0,310,323,5,104,0,0,311,312,5,102,0,0,312,313,5,111,0,0,313,314,5,114,0,0,314,315,5,69,0,0,315,316,5,97,0,0,316,317,5,99,0,0,317,323,5,104,0,0,318,319,5,108,0,0,319,320,5,111,0,0,320,321,5,111,0,0,321,323,5,112,0,0,322,296,1,0,0,0,322,301,1,0,0,0,322,304,1,0,0,0,322,311,1,0,0,0,322,318,1,0,0,0,323,82,1,0,0,0,324,325,5,114,0,0,325,326,5,101,0,0,326,327,5,116,0,0,327,328,5,117,0,0,328,329,5,114,0,0,329,330,5,110,0,0,330,84,1,0,0,0,331,332,5,110,0,0,332,333,5,101,0,0,333,334,5,119,0,0,334,86,1,0,0,0,335,336,5,112,0,0,336,337,5,97,0,0,337,338,5,114,0,0,338,88,1,0,0,0,339,340,5,103,0,0,340,341,5,114,0,0,341,342,5,111,0,0,342,343,5,117,0,0,343,344,5,112,0,0,344,90,1,0,0,0,345,346,5,111,0,0,346,347,5,112,0,0,347,348,5,116,0,0,348,92,1,0,0,0,349,350,5,99,0,0,350,351,5,114,0,0,351,352,5,105,0,0,352,353,5,116,0,0,353,354,5,105,0,0,354,355,5,99,0,0,355,356,5,97,0,0,356,357,5,108,0,0,357,94,1,0,0,0,358,359,5,115,0,0,359,360,5,101,0,0,360,361,5,99,0,0,361,362,5,116,0,0,362,363,5,105,0,0,363,364,5,111,0,0,364,371,5,110,0,0,365,366,5,102,0,0,366,367,5,114,0,0,367,368,5,97,0,0,368,369,5,109,0,0,369,371,5,101,0,0,370,358,1,0,0,0,370,365,1,0,0,0,371,96,1,0,0,0,372,373,5,114,0,0,373,374,5,101,0,0,374,375,5,102,0,0,375,98,1,0,0,0,376,377,5,97,0,0,377,378,5,115,0,0,378,100,1,0,0,0,379,380,5,116,0,0,380,381,5,114,0,0,381,382,5,121,0,0,382,102,1,0,0,0,383,384,5,99,0,0,384,385,5,97,0,0,385,386,5,116,0,0,386,387,5,99,0,0,387,388,5,104,0,0,388,104,1,0,0,0,389,390,5,102,0,0,390,391,5,105,0,0,391,392,5,110,0,0,392,393,5,97,0,0,393,394,5,108,0,0,394,395,5,108,0,0,395,396,5,121,0,0,396,106,1,0,0,0,397,398,5,105,0,0,398,399,5,110,0,0,399,108,1,0,0,0,400,401,5,64,0,0,401,402,5,83,0,0,402,403,5,116,0,0,403,404,5,97,0,0,404,405,5,114,0,0,405,406,5,116,0,0,406,407,5,101,0,0,407,417,5,114,0,0,408,409,5,64,0,0,409,410,5,115,0,0,410,411,5,116,0,0,411,412,5,97,0,0,412,413,5,114,0,0,413,414,5,116,0,0,414,415,5,101,0,0,415,417,5,114,0,0,416,400,1,0,0,0,416,408,1,0,0,0,417,110,1,0,0,0,418,419,5,64,0,0,419,420,5,82,0,0,420,421,5,101,0,0,421,422,5,116,0,0,422,423,5,117,0,0,423,424,5,114,0,0,424,445,5,110,0,0,425,426,5,64,0,0,426,427,5,114,0,0,427,428,5,101,0,0,428,429,5,116,0,0,429,430,5,117,0,0,430,431,5,114,0,0,431,445,5,110,0,0,432,433,5,64,0,0,433,434,5,82,0,0,434,435,5,101,0,0,435,436,5,112,0,0,436,437,5,108,0,0,437,445,5,121,0,0,438,439,5,64,0,0,439,440,5,114,0,0,440,441,5,101,0,0,441,442,5,112,0,0,442,443,5,108,0,0,443,445,5,121,0,0,444,418,1,0,0,0,444,425,1,0,0,0,444,432,1,0,0,0,444,438,1,0,0,0,445,112,1,0,0,0,446,450,5,64,0,0,447,449,7,2,0,0,448,447,1,0,0,0,449,452,1,0,0,0,450,448,1,0,0,0,450,451,1,0,0,0,451,114,1,0,0,0,452,450,1,0,0,0,453,454,5,46,0,0,454,116,1,0,0,0,455,459,7,3,0,0,456,458,7,2,0,0,457,456,1,0,0,0,458,461,1,0,0,0,459,457,1,0,0,0,459,460,1,0,0,0,460,118,1,0,0,0,461,459,1,0,0,0,462,464,7,4,0,0,463,462,1,0,0,0,464,465,1,0,0,0,465,463,1,0,0,0,465,466,1,0,0,0,466,120,1,0,0,0,467,468,7,5,0,0,468,122,1,0,0,0,469,471,3,121,59,0,470,469,1,0,0,0,471,472,1,0,0,0,472,470,1,0,0,0,472,473,1,0,0,0,473,124,1,0,0,0,474,476,3,121,59,0,475,474,1,0,0,0,476,477,1,0,0,0,477,475,1,0,0,0,477,478,1,0,0,0,478,479,1,0,0,0,479,483,5,46,0,0,480,482,3,121,59,0,481,480,1,0,0,0,482,485,1,0,0,0,483,481,1,0,0,0,483,484,1,0,0,0,484,493,1,0,0,0,485,483,1,0,0,0,486,488,5,46,0,0,487,489,3,121,59,0,488,487,1,0,0,0,489,490,1,0,0,0,490,488,1,0,0,0,490,491,1,0,0,0,491,493,1,0,0,0,492,475,1,0,0,0,492,486,1,0,0,0,493,126,1,0,0,0,494,497,5,36,0,0,495,498,3,123,60,0,496,498,3,125,61,0,497,495,1,0,0,0,497,496,1,0,0,0,498,128,1,0,0,0,499,502,3,123,60,0,500,502,3,125,61,0,501,499,1,0,0,0,501,500,1,0,0,0,502,503,1,0,0,0,503,504,3,119,58,0,504,130,1,0,0,0,505,511,5,34,0,0,506,510,8,6,0,0,507,508,5,34,0,0,508,510,5,34,0,0,509,506,1,0,0,0,509,507,1,0,0,0,510,513,1,0,0,0,511,509,1,0,0,0,511,512,1,0,0,0,512,515,1,0,0,0,513,511,1,0,0,0,514,516,7,6,0,0,515,514,1,0,0,0,515,516,1,0,0,0,516,132,1,0,0,0,517,518,7,7,0,0,518,519,1,0,0,0,519,520,6,65,0,0,520,134,1,0,0,0,521,522,5,47,0,0,522,523,5,47,0,0,523,527,1,0,0,0,524,526,9,0,0,0,525,524,1,0,0,0,526,529,1,0,0,0,527,528,1,0,0,0,527,525,1,0,0,0,528,530,1,0,0,0,529,527,1,0,0,0,530,531,5,10,0,0,531,532,1,0,0,0,532,533,6,66,4,0,533,136,1,0,0,0,534,535,9,0,0,0,535,138,1,0,0,0,536,540,4,68,0,0,537,539,3,3,0,0,538,537,1,0,0,0,539,542,1,0,0,0,540,538,1,0,0,0,540,541,1,0,0,0,541,543,1,0,0,0,542,540,1,0,0,0,543,544,5,61,0,0,544,545,5,61,0,0,545,549,1,0,0,0,546,548,8,7,0,0,547,546,1,0,0,0,548,551,1,0,0,0,549,547,1,0,0,0,549,550,1,0,0,0,550,140,1,0,0,0,551,549,1,0,0,0,552,554,8,7,0,0,553,552,1,0,0,0,554,555,1,0,0,0,555,553,1,0,0,0,555,556,1,0,0,0,556,142,1,0,0,0,557,558,7,7,0,0,558,559,1,0,0,0,559,560,6,70,5,0,560,144,1,0,0,0,561,563,8,7,0,0,562,561,1,0,0,0,563,564,1,0,0,0,564,562,1,0,0,0,564,565,1,0,0,0,565,146,1,0,0,0,566,567,7,7,0,0,567,568,1,0,0,0,568,569,6,72,5,0,569,148,1,0,0,0,27,0,1,2,216,286,322,370,416,444,450,459,465,472,477,483,490,492,497,501,509,511,515,527,540,549,555,564,6,0,1,0,0,3,0,5,2,0,5,1,0,0,2,0,4,0,0],Ke=new Z.atn.ATNDeserializer().deserialize(fg),gg=Ke.decisionToState.map((t,e)=>new Z.dfa.DFA(t,e));class X extends Z.Lexer{constructor(e){super(e),this._interp=new Z.atn.LexerATNSimulator(this,Ke,gg,new Z.PredictionContextCache)}get atn(){return Ke}}j2(X,"grammarFileName","sequenceLexer.g4"),j2(X,"channelNames",["DEFAULT_TOKEN_CHANNEL","HIDDEN","COMMENT_CHANNEL","MODIFIER_CHANNEL"]),j2(X,"modeNames",["DEFAULT_MODE","EVENT","TITLE_MODE"]),j2(X,"literalNames",[null,null,"'const'","'readonly'","'static'","'await'","'title'","':'","'<<'","'>>'","'->'",null,"'||'","'&&'","'=='","'!='","'>'","'<'","'>='","'<='","'+'","'-'","'*'","'/'","'%'","'^'","'!'","';'","','","'='","'('","')'","'{'","'}'","'true'","'false'",null,"'if'","'else'",null,"'return'","'new'","'par'","'group'","'opt'","'critical'",null,"'ref'","'as'","'try'","'catch'","'finally'","'in'",null,null,null,"'.'"]),j2(X,"symbolicNames",[null,"WS","CONSTANT","READONLY","STATIC","AWAIT","TITLE","COL","SOPEN","SCLOSE","ARROW","COLOR","OR","AND","EQ","NEQ","GT","LT","GTEQ","LTEQ","PLUS","MINUS","MULT","DIV","MOD","POW","NOT","SCOL","COMMA","ASSIGN","OPAR","CPAR","OBRACE","CBRACE","TRUE","FALSE","NIL","IF","ELSE","WHILE","RETURN","NEW","PAR","GROUP","OPT","CRITICAL","SECTION","REF","AS","TRY","CATCH","FINALLY","IN","STARTER_LXR","ANNOTATION_RET","ANNOTATION","DOT","ID","INT","FLOAT","MONEY","NUMBER_UNIT","STRING","CR","COMMENT","OTHER","DIVIDER","EVENT_PAYLOAD_LXR","EVENT_END","TITLE_CONTENT","TITLE_END"]),j2(X,"ruleNames",["WS","CONSTANT","READONLY","STATIC","AWAIT","TITLE","COL","SOPEN","SCLOSE","ARROW","HEX","COLOR","OR","AND","EQ","NEQ","GT","LT","GTEQ","LTEQ","PLUS","MINUS","MULT","DIV","MOD","POW","NOT","SCOL","COMMA","ASSIGN","OPAR","CPAR","OBRACE","CBRACE","TRUE","FALSE","NIL","IF","ELSE","WHILE","RETURN","NEW","PAR","GROUP","OPT","CRITICAL","SECTION","REF","AS","TRY","CATCH","FINALLY","IN","STARTER_LXR","ANNOTATION_RET","ANNOTATION","DOT","ID","UNIT","DIGIT","INT","FLOAT","MONEY","NUMBER_UNIT","STRING","CR","COMMENT","OTHER","DIVIDER","EVENT_PAYLOAD_LXR","EVENT_END","TITLE_CONTENT","TITLE_END"]),X.EOF=Z.Token.EOF,X.WS=1,X.CONSTANT=2,X.READONLY=3,X.STATIC=4,X.AWAIT=5,X.TITLE=6,X.COL=7,X.SOPEN=8,X.SCLOSE=9,X.ARROW=10,X.COLOR=11,X.OR=12,X.AND=13,X.EQ=14,X.NEQ=15,X.GT=16,X.LT=17,X.GTEQ=18,X.LTEQ=19,X.PLUS=20,X.MINUS=21,X.MULT=22,X.DIV=23,X.MOD=24,X.POW=25,X.NOT=26,X.SCOL=27,X.COMMA=28,X.ASSIGN=29,X.OPAR=30,X.CPAR=31,X.OBRACE=32,X.CBRACE=33,X.TRUE=34,X.FALSE=35,X.NIL=36,X.IF=37,X.ELSE=38,X.WHILE=39,X.RETURN=40,X.NEW=41,X.PAR=42,X.GROUP=43,X.OPT=44,X.CRITICAL=45,X.SECTION=46,X.REF=47,X.AS=48,X.TRY=49,X.CATCH=50,X.FINALLY=51,X.IN=52,X.STARTER_LXR=53,X.ANNOTATION_RET=54,X.ANNOTATION=55,X.DOT=56,X.ID=57,X.INT=58,X.FLOAT=59,X.MONEY=60,X.NUMBER_UNIT=61,X.STRING=62,X.CR=63,X.COMMENT=64,X.OTHER=65,X.DIVIDER=66,X.EVENT_PAYLOAD_LXR=67,X.EVENT_END=68,X.TITLE_CONTENT=69,X.TITLE_END=70,X.COMMENT_CHANNEL=2,X.MODIFIER_CHANNEL=3,X.EVENT=1,X.TITLE_MODE=2,X.prototype.sempred=function(t,e,n){switch(e){case 68:return this.DIVIDER_sempred(t,n);default:throw"No registered predicate for:"+e}},X.prototype.DIVIDER_sempred=function(t,e){switch(e){case 0:return this.column===0;default:throw"No predicate with index:"+e}};class T extends Z.tree.ParseTreeListener{enterProg(e){}exitProg(e){}enterTitle(e){}exitTitle(e){}enterHead(e){}exitHead(e){}enterGroup(e){}exitGroup(e){}enterStarterExp(e){}exitStarterExp(e){}enterStarter(e){}exitStarter(e){}enterParticipant(e){}exitParticipant(e){}enterStereotype(e){}exitStereotype(e){}enterLabel(e){}exitLabel(e){}enterParticipantType(e){}exitParticipantType(e){}enterName(e){}exitName(e){}enterWidth(e){}exitWidth(e){}enterBlock(e){}exitBlock(e){}enterRet(e){}exitRet(e){}enterDivider(e){}exitDivider(e){}enterDividerNote(e){}exitDividerNote(e){}enterStat(e){}exitStat(e){}enterPar(e){}exitPar(e){}enterOpt(e){}exitOpt(e){}enterCritical(e){}exitCritical(e){}enterSection(e){}exitSection(e){}enterCreation(e){}exitCreation(e){}enterRef(e){}exitRef(e){}enterCreationBody(e){}exitCreationBody(e){}enterMessage(e){}exitMessage(e){}enterMessageBody(e){}exitMessageBody(e){}enterFunc(e){}exitFunc(e){}enterFrom(e){}exitFrom(e){}enterTo(e){}exitTo(e){}enterSignature(e){}exitSignature(e){}enterInvocation(e){}exitInvocation(e){}enterAssignment(e){}exitAssignment(e){}enterAsyncMessage(e){}exitAsyncMessage(e){}enterContent(e){}exitContent(e){}enterConstruct(e){}exitConstruct(e){}enterType(e){}exitType(e){}enterAssignee(e){}exitAssignee(e){}enterMethodName(e){}exitMethodName(e){}enterParameters(e){}exitParameters(e){}enterParameter(e){}exitParameter(e){}enterDeclaration(e){}exitDeclaration(e){}enterTcf(e){}exitTcf(e){}enterTryBlock(e){}exitTryBlock(e){}enterCatchBlock(e){}exitCatchBlock(e){}enterFinallyBlock(e){}exitFinallyBlock(e){}enterAlt(e){}exitAlt(e){}enterIfBlock(e){}exitIfBlock(e){}enterElseIfBlock(e){}exitElseIfBlock(e){}enterElseBlock(e){}exitElseBlock(e){}enterBraceBlock(e){}exitBraceBlock(e){}enterLoop(e){}exitLoop(e){}enterAssignmentExpr(e){}exitAssignmentExpr(e){}enterFuncExpr(e){}exitFuncExpr(e){}enterAtomExpr(e){}exitAtomExpr(e){}enterOrExpr(e){}exitOrExpr(e){}enterAdditiveExpr(e){}exitAdditiveExpr(e){}enterRelationalExpr(e){}exitRelationalExpr(e){}enterPlusExpr(e){}exitPlusExpr(e){}enterNotExpr(e){}exitNotExpr(e){}enterUnaryMinusExpr(e){}exitUnaryMinusExpr(e){}enterCreationExpr(e){}exitCreationExpr(e){}enterParenthesizedExpr(e){}exitParenthesizedExpr(e){}enterMultiplicationExpr(e){}exitMultiplicationExpr(e){}enterEqualityExpr(e){}exitEqualityExpr(e){}enterAndExpr(e){}exitAndExpr(e){}enterNumberAtom(e){}exitNumberAtom(e){}enterNumberUnitAtom(e){}exitNumberUnitAtom(e){}enterMoneyAtom(e){}exitMoneyAtom(e){}enterBooleanAtom(e){}exitBooleanAtom(e){}enterIdAtom(e){}exitIdAtom(e){}enterStringAtom(e){}exitStringAtom(e){}enterNilAtom(e){}exitNilAtom(e){}enterParExpr(e){}exitParExpr(e){}enterCondition(e){}exitCondition(e){}enterInExpr(e){}exitInExpr(e){}}const pg=[4,1,70,608,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,1,0,3,0,114,8,0,1,0,1,0,3,0,118,8,0,1,0,1,0,1,0,1,0,3,0,124,8,0,1,0,3,0,127,8,0,1,0,1,0,1,0,3,0,132,8,0,1,1,1,1,3,1,136,8,1,1,1,3,1,139,8,1,1,2,1,2,4,2,143,8,2,11,2,12,2,144,1,2,1,2,5,2,149,8,2,10,2,12,2,152,9,2,1,2,3,2,155,8,2,1,3,1,3,3,3,159,8,3,1,3,1,3,5,3,163,8,3,10,3,12,3,166,9,3,1,3,1,3,1,3,3,3,171,8,3,1,3,1,3,1,3,3,3,176,8,3,3,3,178,8,3,1,4,1,4,1,4,3,4,183,8,4,1,4,3,4,186,8,4,1,4,3,4,189,8,4,1,5,1,5,1,6,3,6,194,8,6,1,6,3,6,197,8,6,1,6,1,6,3,6,201,8,6,1,6,3,6,204,8,6,1,6,3,6,207,8,6,1,6,1,6,3,6,211,8,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,3,7,220,8,7,1,7,1,7,3,7,224,8,7,3,7,226,8,7,1,8,1,8,1,8,3,8,231,8,8,1,9,1,9,1,10,1,10,1,11,1,11,1,12,4,12,240,8,12,11,12,12,12,241,1,13,1,13,3,13,246,8,13,1,13,3,13,249,8,13,1,13,1,13,1,13,3,13,254,8,13,3,13,256,8,13,1,14,1,14,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,3,16,273,8,16,1,16,1,16,1,16,1,16,1,16,3,16,280,8,16,1,17,1,17,1,17,3,17,285,8,17,1,18,1,18,1,18,3,18,290,8,18,1,19,1,19,1,19,3,19,295,8,19,1,19,3,19,298,8,19,1,19,1,19,3,19,302,8,19,1,20,1,20,1,20,3,20,307,8,20,1,20,3,20,310,8,20,1,20,1,20,1,20,3,20,315,8,20,1,21,1,21,1,21,3,21,320,8,21,1,22,1,22,1,22,1,22,1,22,5,22,327,8,22,10,22,12,22,330,9,22,5,22,332,8,22,10,22,12,22,335,9,22,1,22,1,22,3,22,339,8,22,1,23,3,23,342,8,23,1,23,1,23,1,23,1,23,3,23,348,8,23,1,23,3,23,351,8,23,1,23,3,23,354,8,23,1,23,3,23,357,8,23,1,24,1,24,1,24,3,24,362,8,24,1,25,3,25,365,8,25,1,25,1,25,1,25,3,25,370,8,25,1,25,1,25,1,25,3,25,375,8,25,1,25,1,25,1,25,1,25,1,25,3,25,382,8,25,1,25,1,25,1,25,3,25,387,8,25,1,26,1,26,1,26,5,26,392,8,26,10,26,12,26,395,9,26,1,27,1,27,1,28,1,28,1,29,1,29,3,29,403,8,29,1,30,1,30,3,30,407,8,30,1,30,1,30,1,31,3,31,412,8,31,1,31,1,31,1,31,1,32,1,32,1,32,3,32,420,8,32,1,32,1,32,1,32,3,32,425,8,32,1,32,1,32,1,32,3,32,430,8,32,3,32,432,8,32,1,33,1,33,1,34,1,34,1,35,1,35,1,36,1,36,1,36,1,36,5,36,444,8,36,10,36,12,36,447,9,36,1,36,3,36,450,8,36,1,37,1,37,1,38,1,38,1,38,5,38,457,8,38,10,38,12,38,460,9,38,1,38,3,38,463,8,38,1,39,1,39,3,39,467,8,39,1,40,1,40,1,40,1,41,1,41,5,41,474,8,41,10,41,12,41,477,9,41,1,41,3,41,480,8,41,1,42,1,42,1,42,1,43,1,43,3,43,487,8,43,1,43,1,43,1,44,1,44,1,44,1,45,1,45,5,45,496,8,45,10,45,12,45,499,9,45,1,45,3,45,502,8,45,1,46,1,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,3,49,518,8,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,3,50,529,8,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,540,8,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,551,8,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,5,51,574,8,51,10,51,12,51,577,9,51,1,52,1,52,1,52,1,52,1,52,1,52,1,52,3,52,586,8,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,3,53,597,8,53,1,54,1,54,1,54,3,54,602,8,54,1,55,1,55,1,55,1,55,1,55,0,1,102,56,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,0,10,2,0,57,57,62,62,2,0,8,8,17,17,2,0,9,9,16,16,2,0,10,10,21,21,1,0,22,24,1,0,20,21,1,0,16,19,1,0,14,15,1,0,58,59,1,0,34,35,678,0,131,1,0,0,0,2,133,1,0,0,0,4,154,1,0,0,0,6,177,1,0,0,0,8,188,1,0,0,0,10,190,1,0,0,0,12,210,1,0,0,0,14,225,1,0,0,0,16,230,1,0,0,0,18,232,1,0,0,0,20,234,1,0,0,0,22,236,1,0,0,0,24,239,1,0,0,0,26,255,1,0,0,0,28,257,1,0,0,0,30,259,1,0,0,0,32,279,1,0,0,0,34,284,1,0,0,0,36,289,1,0,0,0,38,301,1,0,0,0,40,314,1,0,0,0,42,316,1,0,0,0,44,321,1,0,0,0,46,356,1,0,0,0,48,358,1,0,0,0,50,386,1,0,0,0,52,388,1,0,0,0,54,396,1,0,0,0,56,398,1,0,0,0,58,400,1,0,0,0,60,404,1,0,0,0,62,411,1,0,0,0,64,431,1,0,0,0,66,433,1,0,0,0,68,435,1,0,0,0,70,437,1,0,0,0,72,449,1,0,0,0,74,451,1,0,0,0,76,453,1,0,0,0,78,466,1,0,0,0,80,468,1,0,0,0,82,471,1,0,0,0,84,481,1,0,0,0,86,484,1,0,0,0,88,490,1,0,0,0,90,493,1,0,0,0,92,503,1,0,0,0,94,507,1,0,0,0,96,512,1,0,0,0,98,515,1,0,0,0,100,528,1,0,0,0,102,550,1,0,0,0,104,585,1,0,0,0,106,596,1,0,0,0,108,601,1,0,0,0,110,603,1,0,0,0,112,114,3,2,1,0,113,112,1,0,0,0,113,114,1,0,0,0,114,115,1,0,0,0,115,132,5,0,0,1,116,118,3,2,1,0,117,116,1,0,0,0,117,118,1,0,0,0,118,119,1,0,0,0,119,120,3,4,2,0,120,121,5,0,0,1,121,132,1,0,0,0,122,124,3,2,1,0,123,122,1,0,0,0,123,124,1,0,0,0,124,126,1,0,0,0,125,127,3,4,2,0,126,125,1,0,0,0,126,127,1,0,0,0,127,128,1,0,0,0,128,129,3,24,12,0,129,130,5,0,0,1,130,132,1,0,0,0,131,113,1,0,0,0,131,117,1,0,0,0,131,123,1,0,0,0,132,1,1,0,0,0,133,135,5,6,0,0,134,136,5,69,0,0,135,134,1,0,0,0,135,136,1,0,0,0,136,138,1,0,0,0,137,139,5,70,0,0,138,137,1,0,0,0,138,139,1,0,0,0,139,3,1,0,0,0,140,143,3,6,3,0,141,143,3,12,6,0,142,140,1,0,0,0,142,141,1,0,0,0,143,144,1,0,0,0,144,142,1,0,0,0,144,145,1,0,0,0,145,155,1,0,0,0,146,149,3,6,3,0,147,149,3,12,6,0,148,146,1,0,0,0,148,147,1,0,0,0,149,152,1,0,0,0,150,148,1,0,0,0,150,151,1,0,0,0,151,153,1,0,0,0,152,150,1,0,0,0,153,155,3,8,4,0,154,142,1,0,0,0,154,150,1,0,0,0,155,5,1,0,0,0,156,158,5,43,0,0,157,159,3,20,10,0,158,157,1,0,0,0,158,159,1,0,0,0,159,160,1,0,0,0,160,164,5,32,0,0,161,163,3,12,6,0,162,161,1,0,0,0,163,166,1,0,0,0,164,162,1,0,0,0,164,165,1,0,0,0,165,167,1,0,0,0,166,164,1,0,0,0,167,178,5,33,0,0,168,170,5,43,0,0,169,171,3,20,10,0,170,169,1,0,0,0,170,171,1,0,0,0,171,172,1,0,0,0,172,178,5,32,0,0,173,175,5,43,0,0,174,176,3,20,10,0,175,174,1,0,0,0,175,176,1,0,0,0,176,178,1,0,0,0,177,156,1,0,0,0,177,168,1,0,0,0,177,173,1,0,0,0,178,7,1,0,0,0,179,185,5,53,0,0,180,182,5,30,0,0,181,183,3,10,5,0,182,181,1,0,0,0,182,183,1,0,0,0,183,184,1,0,0,0,184,186,5,31,0,0,185,180,1,0,0,0,185,186,1,0,0,0,186,189,1,0,0,0,187,189,5,55,0,0,188,179,1,0,0,0,188,187,1,0,0,0,189,9,1,0,0,0,190,191,7,0,0,0,191,11,1,0,0,0,192,194,3,18,9,0,193,192,1,0,0,0,193,194,1,0,0,0,194,196,1,0,0,0,195,197,3,14,7,0,196,195,1,0,0,0,196,197,1,0,0,0,197,198,1,0,0,0,198,200,3,20,10,0,199,201,3,22,11,0,200,199,1,0,0,0,200,201,1,0,0,0,201,203,1,0,0,0,202,204,3,16,8,0,203,202,1,0,0,0,203,204,1,0,0,0,204,206,1,0,0,0,205,207,5,11,0,0,206,205,1,0,0,0,206,207,1,0,0,0,207,211,1,0,0,0,208,211,3,14,7,0,209,211,3,18,9,0,210,193,1,0,0,0,210,208,1,0,0,0,210,209,1,0,0,0,211,13,1,0,0,0,212,213,5,8,0,0,213,214,3,20,10,0,214,215,5,9,0,0,215,226,1,0,0,0,216,217,5,8,0,0,217,219,3,20,10,0,218,220,5,16,0,0,219,218,1,0,0,0,219,220,1,0,0,0,220,226,1,0,0,0,221,223,7,1,0,0,222,224,7,2,0,0,223,222,1,0,0,0,223,224,1,0,0,0,224,226,1,0,0,0,225,212,1,0,0,0,225,216,1,0,0,0,225,221,1,0,0,0,226,15,1,0,0,0,227,228,5,48,0,0,228,231,3,20,10,0,229,231,5,48,0,0,230,227,1,0,0,0,230,229,1,0,0,0,231,17,1,0,0,0,232,233,5,55,0,0,233,19,1,0,0,0,234,235,7,0,0,0,235,21,1,0,0,0,236,237,5,58,0,0,237,23,1,0,0,0,238,240,3,32,16,0,239,238,1,0,0,0,240,241,1,0,0,0,241,239,1,0,0,0,241,242,1,0,0,0,242,25,1,0,0,0,243,245,5,40,0,0,244,246,3,102,51,0,245,244,1,0,0,0,245,246,1,0,0,0,246,248,1,0,0,0,247,249,5,27,0,0,248,247,1,0,0,0,248,249,1,0,0,0,249,256,1,0,0,0,250,251,5,54,0,0,251,253,3,64,32,0,252,254,5,68,0,0,253,252,1,0,0,0,253,254,1,0,0,0,254,256,1,0,0,0,255,243,1,0,0,0,255,250,1,0,0,0,256,27,1,0,0,0,257,258,3,30,15,0,258,29,1,0,0,0,259,260,5,66,0,0,260,31,1,0,0,0,261,280,3,90,45,0,262,280,3,34,17,0,263,280,3,36,18,0,264,280,3,38,19,0,265,280,3,40,20,0,266,280,3,44,22,0,267,280,3,100,50,0,268,280,3,42,21,0,269,280,3,48,24,0,270,272,3,64,32,0,271,273,5,68,0,0,272,271,1,0,0,0,272,273,1,0,0,0,273,280,1,0,0,0,274,280,3,26,13,0,275,280,3,28,14,0,276,280,3,82,41,0,277,278,5,65,0,0,278,280,6,16,-1,0,279,261,1,0,0,0,279,262,1,0,0,0,279,263,1,0,0,0,279,264,1,0,0,0,279,265,1,0,0,0,279,266,1,0,0,0,279,267,1,0,0,0,279,268,1,0,0,0,279,269,1,0,0,0,279,270,1,0,0,0,279,274,1,0,0,0,279,275,1,0,0,0,279,276,1,0,0,0,279,277,1,0,0,0,280,33,1,0,0,0,281,282,5,42,0,0,282,285,3,98,49,0,283,285,5,42,0,0,284,281,1,0,0,0,284,283,1,0,0,0,285,35,1,0,0,0,286,287,5,44,0,0,287,290,3,98,49,0,288,290,5,44,0,0,289,286,1,0,0,0,289,288,1,0,0,0,290,37,1,0,0,0,291,297,5,45,0,0,292,294,5,30,0,0,293,295,3,104,52,0,294,293,1,0,0,0,294,295,1,0,0,0,295,296,1,0,0,0,296,298,5,31,0,0,297,292,1,0,0,0,297,298,1,0,0,0,298,299,1,0,0,0,299,302,3,98,49,0,300,302,5,45,0,0,301,291,1,0,0,0,301,300,1,0,0,0,302,39,1,0,0,0,303,309,5,46,0,0,304,306,5,30,0,0,305,307,3,104,52,0,306,305,1,0,0,0,306,307,1,0,0,0,307,308,1,0,0,0,308,310,5,31,0,0,309,304,1,0,0,0,309,310,1,0,0,0,310,311,1,0,0,0,311,315,3,98,49,0,312,315,3,98,49,0,313,315,5,46,0,0,314,303,1,0,0,0,314,312,1,0,0,0,314,313,1,0,0,0,315,41,1,0,0,0,316,319,3,46,23,0,317,320,5,27,0,0,318,320,3,98,49,0,319,317,1,0,0,0,319,318,1,0,0,0,319,320,1,0,0,0,320,43,1,0,0,0,321,322,5,47,0,0,322,323,5,30,0,0,323,333,3,20,10,0,324,328,5,28,0,0,325,327,3,20,10,0,326,325,1,0,0,0,327,330,1,0,0,0,328,326,1,0,0,0,328,329,1,0,0,0,329,332,1,0,0,0,330,328,1,0,0,0,331,324,1,0,0,0,332,335,1,0,0,0,333,331,1,0,0,0,333,334,1,0,0,0,334,336,1,0,0,0,335,333,1,0,0,0,336,338,5,31,0,0,337,339,5,27,0,0,338,337,1,0,0,0,338,339,1,0,0,0,339,45,1,0,0,0,340,342,3,62,31,0,341,340,1,0,0,0,341,342,1,0,0,0,342,343,1,0,0,0,343,344,5,41,0,0,344,350,3,68,34,0,345,347,5,30,0,0,346,348,3,76,38,0,347,346,1,0,0,0,347,348,1,0,0,0,348,349,1,0,0,0,349,351,5,31,0,0,350,345,1,0,0,0,350,351,1,0,0,0,351,357,1,0,0,0,352,354,3,62,31,0,353,352,1,0,0,0,353,354,1,0,0,0,354,355,1,0,0,0,355,357,5,41,0,0,356,341,1,0,0,0,356,353,1,0,0,0,357,47,1,0,0,0,358,361,3,50,25,0,359,362,5,27,0,0,360,362,3,98,49,0,361,359,1,0,0,0,361,360,1,0,0,0,361,362,1,0,0,0,362,49,1,0,0,0,363,365,3,62,31,0,364,363,1,0,0,0,364,365,1,0,0,0,365,374,1,0,0,0,366,367,3,54,27,0,367,368,5,10,0,0,368,370,1,0,0,0,369,366,1,0,0,0,369,370,1,0,0,0,370,371,1,0,0,0,371,372,3,56,28,0,372,373,5,56,0,0,373,375,1,0,0,0,374,369,1,0,0,0,374,375,1,0,0,0,375,376,1,0,0,0,376,387,3,52,26,0,377,387,3,62,31,0,378,379,3,54,27,0,379,380,5,10,0,0,380,382,1,0,0,0,381,378,1,0,0,0,381,382,1,0,0,0,382,383,1,0,0,0,383,384,3,56,28,0,384,385,5,56,0,0,385,387,1,0,0,0,386,364,1,0,0,0,386,377,1,0,0,0,386,381,1,0,0,0,387,51,1,0,0,0,388,393,3,58,29,0,389,390,5,56,0,0,390,392,3,58,29,0,391,389,1,0,0,0,392,395,1,0,0,0,393,391,1,0,0,0,393,394,1,0,0,0,394,53,1,0,0,0,395,393,1,0,0,0,396,397,7,0,0,0,397,55,1,0,0,0,398,399,7,0,0,0,399,57,1,0,0,0,400,402,3,74,37,0,401,403,3,60,30,0,402,401,1,0,0,0,402,403,1,0,0,0,403,59,1,0,0,0,404,406,5,30,0,0,405,407,3,76,38,0,406,405,1,0,0,0,406,407,1,0,0,0,407,408,1,0,0,0,408,409,5,31,0,0,409,61,1,0,0,0,410,412,3,70,35,0,411,410,1,0,0,0,411,412,1,0,0,0,412,413,1,0,0,0,413,414,3,72,36,0,414,415,5,29,0,0,415,63,1,0,0,0,416,417,3,54,27,0,417,418,5,10,0,0,418,420,1,0,0,0,419,416,1,0,0,0,419,420,1,0,0,0,420,421,1,0,0,0,421,422,3,56,28,0,422,424,5,7,0,0,423,425,3,66,33,0,424,423,1,0,0,0,424,425,1,0,0,0,425,432,1,0,0,0,426,427,3,54,27,0,427,429,7,3,0,0,428,430,3,56,28,0,429,428,1,0,0,0,429,430,1,0,0,0,430,432,1,0,0,0,431,419,1,0,0,0,431,426,1,0,0,0,432,65,1,0,0,0,433,434,5,67,0,0,434,67,1,0,0,0,435,436,7,0,0,0,436,69,1,0,0,0,437,438,7,0,0,0,438,71,1,0,0,0,439,450,3,104,52,0,440,445,5,57,0,0,441,442,5,28,0,0,442,444,5,57,0,0,443,441,1,0,0,0,444,447,1,0,0,0,445,443,1,0,0,0,445,446,1,0,0,0,446,450,1,0,0,0,447,445,1,0,0,0,448,450,5,62,0,0,449,439,1,0,0,0,449,440,1,0,0,0,449,448,1,0,0,0,450,73,1,0,0,0,451,452,7,0,0,0,452,75,1,0,0,0,453,458,3,78,39,0,454,455,5,28,0,0,455,457,3,78,39,0,456,454,1,0,0,0,457,460,1,0,0,0,458,456,1,0,0,0,458,459,1,0,0,0,459,462,1,0,0,0,460,458,1,0,0,0,461,463,5,28,0,0,462,461,1,0,0,0,462,463,1,0,0,0,463,77,1,0,0,0,464,467,3,80,40,0,465,467,3,102,51,0,466,464,1,0,0,0,466,465,1,0,0,0,467,79,1,0,0,0,468,469,3,70,35,0,469,470,5,57,0,0,470,81,1,0,0,0,471,475,3,84,42,0,472,474,3,86,43,0,473,472,1,0,0,0,474,477,1,0,0,0,475,473,1,0,0,0,475,476,1,0,0,0,476,479,1,0,0,0,477,475,1,0,0,0,478,480,3,88,44,0,479,478,1,0,0,0,479,480,1,0,0,0,480,83,1,0,0,0,481,482,5,49,0,0,482,483,3,98,49,0,483,85,1,0,0,0,484,486,5,50,0,0,485,487,3,60,30,0,486,485,1,0,0,0,486,487,1,0,0,0,487,488,1,0,0,0,488,489,3,98,49,0,489,87,1,0,0,0,490,491,5,51,0,0,491,492,3,98,49,0,492,89,1,0,0,0,493,497,3,92,46,0,494,496,3,94,47,0,495,494,1,0,0,0,496,499,1,0,0,0,497,495,1,0,0,0,497,498,1,0,0,0,498,501,1,0,0,0,499,497,1,0,0,0,500,502,3,96,48,0,501,500,1,0,0,0,501,502,1,0,0,0,502,91,1,0,0,0,503,504,5,37,0,0,504,505,3,106,53,0,505,506,3,98,49,0,506,93,1,0,0,0,507,508,5,38,0,0,508,509,5,37,0,0,509,510,3,106,53,0,510,511,3,98,49,0,511,95,1,0,0,0,512,513,5,38,0,0,513,514,3,98,49,0,514,97,1,0,0,0,515,517,5,32,0,0,516,518,3,24,12,0,517,516,1,0,0,0,517,518,1,0,0,0,518,519,1,0,0,0,519,520,5,33,0,0,520,99,1,0,0,0,521,522,5,39,0,0,522,523,3,106,53,0,523,524,3,98,49,0,524,529,1,0,0,0,525,526,5,39,0,0,526,529,3,106,53,0,527,529,5,39,0,0,528,521,1,0,0,0,528,525,1,0,0,0,528,527,1,0,0,0,529,101,1,0,0,0,530,531,6,51,-1,0,531,551,3,104,52,0,532,533,5,21,0,0,533,551,3,102,51,13,534,535,5,26,0,0,535,551,3,102,51,12,536,537,3,56,28,0,537,538,5,56,0,0,538,540,1,0,0,0,539,536,1,0,0,0,539,540,1,0,0,0,540,541,1,0,0,0,541,551,3,52,26,0,542,551,3,42,21,0,543,544,5,30,0,0,544,545,3,102,51,0,545,546,5,31,0,0,546,551,1,0,0,0,547,548,3,62,31,0,548,549,3,102,51,1,549,551,1,0,0,0,550,530,1,0,0,0,550,532,1,0,0,0,550,534,1,0,0,0,550,539,1,0,0,0,550,542,1,0,0,0,550,543,1,0,0,0,550,547,1,0,0,0,551,575,1,0,0,0,552,553,10,11,0,0,553,554,7,4,0,0,554,574,3,102,51,12,555,556,10,10,0,0,556,557,7,5,0,0,557,574,3,102,51,11,558,559,10,9,0,0,559,560,7,6,0,0,560,574,3,102,51,10,561,562,10,8,0,0,562,563,7,7,0,0,563,574,3,102,51,9,564,565,10,7,0,0,565,566,5,13,0,0,566,574,3,102,51,8,567,568,10,6,0,0,568,569,5,12,0,0,569,574,3,102,51,7,570,571,10,5,0,0,571,572,5,20,0,0,572,574,3,102,51,6,573,552,1,0,0,0,573,555,1,0,0,0,573,558,1,0,0,0,573,561,1,0,0,0,573,564,1,0,0,0,573,567,1,0,0,0,573,570,1,0,0,0,574,577,1,0,0,0,575,573,1,0,0,0,575,576,1,0,0,0,576,103,1,0,0,0,577,575,1,0,0,0,578,586,7,8,0,0,579,586,5,61,0,0,580,586,5,60,0,0,581,586,7,9,0,0,582,586,5,57,0,0,583,586,5,62,0,0,584,586,5,36,0,0,585,578,1,0,0,0,585,579,1,0,0,0,585,580,1,0,0,0,585,581,1,0,0,0,585,582,1,0,0,0,585,583,1,0,0,0,585,584,1,0,0,0,586,105,1,0,0,0,587,588,5,30,0,0,588,589,3,108,54,0,589,590,5,31,0,0,590,597,1,0,0,0,591,592,5,30,0,0,592,597,3,108,54,0,593,594,5,30,0,0,594,597,5,31,0,0,595,597,5,30,0,0,596,587,1,0,0,0,596,591,1,0,0,0,596,593,1,0,0,0,596,595,1,0,0,0,597,107,1,0,0,0,598,602,3,104,52,0,599,602,3,102,51,0,600,602,3,110,55,0,601,598,1,0,0,0,601,599,1,0,0,0,601,600,1,0,0,0,602,109,1,0,0,0,603,604,5,57,0,0,604,605,5,52,0,0,605,606,5,57,0,0,606,111,1,0,0,0,87,113,117,123,126,131,135,138,142,144,148,150,154,158,164,170,175,177,182,185,188,193,196,200,203,206,210,219,223,225,230,241,245,248,253,255,272,279,284,289,294,297,301,306,309,314,319,328,333,338,341,347,350,353,356,361,364,369,374,381,386,393,402,406,411,419,424,429,431,445,449,458,462,466,475,479,486,497,501,517,528,539,550,573,575,585,596,601],Ye=new Z.atn.ATNDeserializer().deserialize(pg),mg=Ye.decisionToState.map((t,e)=>new Z.dfa.DFA(t,e)),wg=new Z.PredictionContextCache,A=class A extends Z.Parser{constructor(e){super(e),this._interp=new Z.atn.ParserATNSimulator(this,Ye,mg,wg),this.ruleNames=A.ruleNames,this.literalNames=A.literalNames,this.symbolicNames=A.symbolicNames}get atn(){return Ye}sempred(e,n,i){switch(n){case 51:return this.expr_sempred(e,i);default:throw"No predicate with index:"+n}}expr_sempred(e,n){switch(n){case 0:return this.precpred(this._ctx,11);case 1:return this.precpred(this._ctx,10);case 2:return this.precpred(this._ctx,9);case 3:return this.precpred(this._ctx,8);case 4:return this.precpred(this._ctx,7);case 5:return this.precpred(this._ctx,6);case 6:return this.precpred(this._ctx,5);default:throw"No predicate with index:"+n}}prog(){let e=new So(this,this._ctx,this.state);this.enterRule(e,0,A.RULE_prog);var n=0;try{this.state=131,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,4,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=113,this._errHandler.sync(this),n=this._input.LA(1),n===6&&(this.state=112,this.title()),this.state=115,this.match(A.EOF);break;case 2:this.enterOuterAlt(e,2),this.state=117,this._errHandler.sync(this),n=this._input.LA(1),n===6&&(this.state=116,this.title()),this.state=119,this.head(),this.state=120,this.match(A.EOF);break;case 3:this.enterOuterAlt(e,3),this.state=123,this._errHandler.sync(this),n=this._input.LA(1),n===6&&(this.state=122,this.title()),this.state=126,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,3,this._ctx);i===1&&(this.state=125,this.head()),this.state=128,this.block(),this.state=129,this.match(A.EOF);break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}title(){let e=new Qe(this,this._ctx,this.state);this.enterRule(e,2,A.RULE_title);var n=0;try{this.enterOuterAlt(e,1),this.state=133,this.match(A.TITLE),this.state=135,this._errHandler.sync(this),n=this._input.LA(1),n===69&&(this.state=134,this.match(A.TITLE_CONTENT)),this.state=138,this._errHandler.sync(this),n=this._input.LA(1),n===70&&(this.state=137,this.match(A.TITLE_END))}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}head(){let e=new Xe(this,this._ctx,this.state);this.enterRule(e,4,A.RULE_head);try{this.state=154,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,11,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=142,this._errHandler.sync(this);var i=1;do{switch(i){case 1:switch(this.state=142,this._errHandler.sync(this),this._input.LA(1)){case 43:this.state=140,this.group();break;case 8:case 17:case 55:case 57:case 62:this.state=141,this.participant();break;default:throw new Z.error.NoViableAltException(this)}break;default:throw new Z.error.NoViableAltException(this)}this.state=144,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,8,this._ctx)}while(i!=2&&i!=Z.atn.ATN.INVALID_ALT_NUMBER);break;case 2:this.enterOuterAlt(e,2),this.state=150,this._errHandler.sync(this);for(var i=this._interp.adaptivePredict(this._input,10,this._ctx);i!=2&&i!=Z.atn.ATN.INVALID_ALT_NUMBER;){if(i===1)switch(this.state=148,this._errHandler.sync(this),this._input.LA(1)){case 43:this.state=146,this.group();break;case 8:case 17:case 55:case 57:case 62:this.state=147,this.participant();break;default:throw new Z.error.NoViableAltException(this)}this.state=152,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,10,this._ctx)}this.state=153,this.starterExp();break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}group(){let e=new K8(this,this._ctx,this.state);this.enterRule(e,6,A.RULE_group);var n=0;try{this.state=177,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,16,this._ctx);switch(i){case 1:for(this.enterOuterAlt(e,1),this.state=156,this.match(A.GROUP),this.state=158,this._errHandler.sync(this),n=this._input.LA(1),(n===57||n===62)&&(this.state=157,this.name()),this.state=160,this.match(A.OBRACE),this.state=164,this._errHandler.sync(this),n=this._input.LA(1);n===8||n===17||!(n-55&-32)&&1<<n-55&133;)this.state=161,this.participant(),this.state=166,this._errHandler.sync(this),n=this._input.LA(1);this.state=167,this.match(A.CBRACE);break;case 2:this.enterOuterAlt(e,2),this.state=168,this.match(A.GROUP),this.state=170,this._errHandler.sync(this),n=this._input.LA(1),(n===57||n===62)&&(this.state=169,this.name()),this.state=172,this.match(A.OBRACE);break;case 3:this.enterOuterAlt(e,3),this.state=173,this.match(A.GROUP),this.state=175,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,15,this._ctx);i===1&&(this.state=174,this.name());break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}starterExp(){let e=new Je(this,this._ctx,this.state);this.enterRule(e,8,A.RULE_starterExp);var n=0;try{switch(this.state=188,this._errHandler.sync(this),this._input.LA(1)){case 53:this.enterOuterAlt(e,1),this.state=179,this.match(A.STARTER_LXR),this.state=185,this._errHandler.sync(this),n=this._input.LA(1),n===30&&(this.state=180,this.match(A.OPAR),this.state=182,this._errHandler.sync(this),n=this._input.LA(1),(n===57||n===62)&&(this.state=181,this.starter()),this.state=184,this.match(A.CPAR));break;case 55:this.enterOuterAlt(e,2),this.state=187,this.match(A.ANNOTATION);break;default:throw new Z.error.NoViableAltException(this)}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}starter(){let e=new et(this,this._ctx,this.state);this.enterRule(e,10,A.RULE_starter);var n=0;try{this.enterOuterAlt(e,1),this.state=190,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}participant(){let e=new h0(this,this._ctx,this.state);this.enterRule(e,12,A.RULE_participant);var n=0;try{this.state=210,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,25,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=193,this._errHandler.sync(this),n=this._input.LA(1),n===55&&(this.state=192,this.participantType()),this.state=196,this._errHandler.sync(this),n=this._input.LA(1),(n===8||n===17)&&(this.state=195,this.stereotype()),this.state=198,this.name(),this.state=200,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,22,this._ctx);i===1&&(this.state=199,this.width()),this.state=203,this._errHandler.sync(this),n=this._input.LA(1),n===48&&(this.state=202,this.label()),this.state=206,this._errHandler.sync(this),n=this._input.LA(1),n===11&&(this.state=205,this.match(A.COLOR));break;case 2:this.enterOuterAlt(e,2),this.state=208,this.stereotype();break;case 3:this.enterOuterAlt(e,3),this.state=209,this.participantType();break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}stereotype(){let e=new tt(this,this._ctx,this.state);this.enterRule(e,14,A.RULE_stereotype);var n=0;try{this.state=225,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,28,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=212,this.match(A.SOPEN),this.state=213,this.name(),this.state=214,this.match(A.SCLOSE);break;case 2:this.enterOuterAlt(e,2),this.state=216,this.match(A.SOPEN),this.state=217,this.name(),this.state=219,this._errHandler.sync(this),n=this._input.LA(1),n===16&&(this.state=218,this.match(A.GT));break;case 3:this.enterOuterAlt(e,3),this.state=221,n=this._input.LA(1),n===8||n===17?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=223,this._errHandler.sync(this),n=this._input.LA(1),(n===9||n===16)&&(this.state=222,n=this._input.LA(1),n===9||n===16?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this));break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}label(){let e=new nt(this,this._ctx,this.state);this.enterRule(e,16,A.RULE_label);try{this.state=230,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,29,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=227,this.match(A.AS),this.state=228,this.name();break;case 2:this.enterOuterAlt(e,2),this.state=229,this.match(A.AS);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}participantType(){let e=new it(this,this._ctx,this.state);this.enterRule(e,18,A.RULE_participantType);try{this.enterOuterAlt(e,1),this.state=232,this.match(A.ANNOTATION)}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}name(){let e=new j4(this,this._ctx,this.state);this.enterRule(e,20,A.RULE_name);var n=0;try{this.enterOuterAlt(e,1),this.state=234,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}width(){let e=new st(this,this._ctx,this.state);this.enterRule(e,22,A.RULE_width);try{this.enterOuterAlt(e,1),this.state=236,this.match(A.INT)}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}block(){let e=new Y8(this,this._ctx,this.state);this.enterRule(e,24,A.RULE_block);var n=0;try{this.enterOuterAlt(e,1),this.state=239,this._errHandler.sync(this),n=this._input.LA(1);do this.state=238,this.stat(),this.state=241,this._errHandler.sync(this),n=this._input.LA(1);while(!(n-32&-32)&&1<<n-32&2118318013||n===65||n===66)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}ret(){let e=new rt(this,this._ctx,this.state);this.enterRule(e,26,A.RULE_ret);var n=0;try{switch(this.state=255,this._errHandler.sync(this),this._input.LA(1)){case 40:this.enterOuterAlt(e,1),this.state=243,this.match(A.RETURN),this.state=245,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,31,this._ctx);i===1&&(this.state=244,this.expr(0)),this.state=248,this._errHandler.sync(this),n=this._input.LA(1),n===27&&(this.state=247,this.match(A.SCOL));break;case 54:this.enterOuterAlt(e,2),this.state=250,this.match(A.ANNOTATION_RET),this.state=251,this.asyncMessage(),this.state=253,this._errHandler.sync(this),n=this._input.LA(1),n===68&&(this.state=252,this.match(A.EVENT_END));break;default:throw new Z.error.NoViableAltException(this)}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}divider(){let e=new ot(this,this._ctx,this.state);this.enterRule(e,28,A.RULE_divider);try{this.enterOuterAlt(e,1),this.state=257,this.dividerNote()}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}dividerNote(){let e=new lt(this,this._ctx,this.state);this.enterRule(e,30,A.RULE_dividerNote);try{this.enterOuterAlt(e,1),this.state=259,this.match(A.DIVIDER)}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}stat(){let e=new Q8(this,this._ctx,this.state);this.enterRule(e,32,A.RULE_stat);var n=0;try{this.state=279,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,36,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=261,this.alt();break;case 2:this.enterOuterAlt(e,2),this.state=262,this.par();break;case 3:this.enterOuterAlt(e,3),this.state=263,this.opt();break;case 4:this.enterOuterAlt(e,4),this.state=264,this.critical();break;case 5:this.enterOuterAlt(e,5),this.state=265,this.section();break;case 6:this.enterOuterAlt(e,6),this.state=266,this.ref();break;case 7:this.enterOuterAlt(e,7),this.state=267,this.loop();break;case 8:this.enterOuterAlt(e,8),this.state=268,this.creation();break;case 9:this.enterOuterAlt(e,9),this.state=269,this.message();break;case 10:this.enterOuterAlt(e,10),this.state=270,this.asyncMessage(),this.state=272,this._errHandler.sync(this),n=this._input.LA(1),n===68&&(this.state=271,this.match(A.EVENT_END));break;case 11:this.enterOuterAlt(e,11),this.state=274,this.ret();break;case 12:this.enterOuterAlt(e,12),this.state=275,this.divider();break;case 13:this.enterOuterAlt(e,13),this.state=276,this.tcf();break;case 14:this.enterOuterAlt(e,14),this.state=277,e._OTHER=this.match(A.OTHER),console.log("unknown char: "+(e._OTHER===null?null:e._OTHER.text));break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}par(){let e=new Lt(this,this._ctx,this.state);this.enterRule(e,34,A.RULE_par);try{this.state=284,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,37,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=281,this.match(A.PAR),this.state=282,this.braceBlock();break;case 2:this.enterOuterAlt(e,2),this.state=283,this.match(A.PAR);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}opt(){let e=new at(this,this._ctx,this.state);this.enterRule(e,36,A.RULE_opt);try{this.state=289,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,38,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=286,this.match(A.OPT),this.state=287,this.braceBlock();break;case 2:this.enterOuterAlt(e,2),this.state=288,this.match(A.OPT);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}critical(){let e=new ct(this,this._ctx,this.state);this.enterRule(e,38,A.RULE_critical);var n=0;try{this.state=301,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,41,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=291,this.match(A.CRITICAL),this.state=297,this._errHandler.sync(this),n=this._input.LA(1),n===30&&(this.state=292,this.match(A.OPAR),this.state=294,this._errHandler.sync(this),n=this._input.LA(1),!(n-34&-32)&&1<<n-34&528482311&&(this.state=293,this.atom()),this.state=296,this.match(A.CPAR)),this.state=299,this.braceBlock();break;case 2:this.enterOuterAlt(e,2),this.state=300,this.match(A.CRITICAL);break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}section(){let e=new Ct(this,this._ctx,this.state);this.enterRule(e,40,A.RULE_section);var n=0;try{this.state=314,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,44,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=303,this.match(A.SECTION),this.state=309,this._errHandler.sync(this),n=this._input.LA(1),n===30&&(this.state=304,this.match(A.OPAR),this.state=306,this._errHandler.sync(this),n=this._input.LA(1),!(n-34&-32)&&1<<n-34&528482311&&(this.state=305,this.atom()),this.state=308,this.match(A.CPAR)),this.state=311,this.braceBlock();break;case 2:this.enterOuterAlt(e,2),this.state=312,this.braceBlock();break;case 3:this.enterOuterAlt(e,3),this.state=313,this.match(A.SECTION);break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}creation(){let e=new X8(this,this._ctx,this.state);this.enterRule(e,42,A.RULE_creation);try{this.enterOuterAlt(e,1),this.state=316,this.creationBody(),this.state=319,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,45,this._ctx);n===1?(this.state=317,this.match(A.SCOL)):n===2&&(this.state=318,this.braceBlock())}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}ref(){let e=new ut(this,this._ctx,this.state);this.enterRule(e,44,A.RULE_ref);var n=0;try{for(this.enterOuterAlt(e,1),this.state=321,this.match(A.REF),this.state=322,this.match(A.OPAR),this.state=323,this.name(),this.state=333,this._errHandler.sync(this),n=this._input.LA(1);n===28;){for(this.state=324,this.match(A.COMMA),this.state=328,this._errHandler.sync(this),n=this._input.LA(1);n===57||n===62;)this.state=325,this.name(),this.state=330,this._errHandler.sync(this),n=this._input.LA(1);this.state=335,this._errHandler.sync(this),n=this._input.LA(1)}this.state=336,this.match(A.CPAR),this.state=338,this._errHandler.sync(this),n=this._input.LA(1),n===27&&(this.state=337,this.match(A.SCOL))}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}creationBody(){let e=new ht(this,this._ctx,this.state);this.enterRule(e,46,A.RULE_creationBody);var n=0;try{this.state=356,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,53,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=341,this._errHandler.sync(this),n=this._input.LA(1),!(n-34&-32)&&1<<n-34&528482311&&(this.state=340,this.assignment()),this.state=343,this.match(A.NEW),this.state=344,this.construct(),this.state=350,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,51,this._ctx);i===1&&(this.state=345,this.match(A.OPAR),this.state=347,this._errHandler.sync(this),n=this._input.LA(1),(!(n&-32)&&1<<n&1142947840||!(n-34&-32)&&1<<n-34&528482439)&&(this.state=346,this.parameters()),this.state=349,this.match(A.CPAR));break;case 2:this.enterOuterAlt(e,2),this.state=353,this._errHandler.sync(this),n=this._input.LA(1),!(n-34&-32)&&1<<n-34&528482311&&(this.state=352,this.assignment()),this.state=355,this.match(A.NEW);break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}message(){let e=new dt(this,this._ctx,this.state);this.enterRule(e,48,A.RULE_message);try{this.enterOuterAlt(e,1),this.state=358,this.messageBody(),this.state=361,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,54,this._ctx);n===1?(this.state=359,this.match(A.SCOL)):n===2&&(this.state=360,this.braceBlock())}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}messageBody(){let e=new ft(this,this._ctx,this.state);this.enterRule(e,50,A.RULE_messageBody);try{this.state=386,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,59,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=364,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,55,this._ctx);n===1&&(this.state=363,this.assignment()),this.state=374,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,57,this._ctx);if(n===1){this.state=369,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,56,this._ctx);n===1&&(this.state=366,this.from(),this.state=367,this.match(A.ARROW)),this.state=371,this.to(),this.state=372,this.match(A.DOT)}this.state=376,this.func();break;case 2:this.enterOuterAlt(e,2),this.state=377,this.assignment();break;case 3:this.enterOuterAlt(e,3),this.state=381,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,58,this._ctx);n===1&&(this.state=378,this.from(),this.state=379,this.match(A.ARROW)),this.state=383,this.to(),this.state=384,this.match(A.DOT);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}func(){let e=new J8(this,this._ctx,this.state);this.enterRule(e,52,A.RULE_func);try{this.enterOuterAlt(e,1),this.state=388,this.signature(),this.state=393,this._errHandler.sync(this);for(var n=this._interp.adaptivePredict(this._input,60,this._ctx);n!=2&&n!=Z.atn.ATN.INVALID_ALT_NUMBER;)n===1&&(this.state=389,this.match(A.DOT),this.state=390,this.signature()),this.state=395,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,60,this._ctx)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}from(){let e=new e7(this,this._ctx,this.state);this.enterRule(e,54,A.RULE_from);var n=0;try{this.enterOuterAlt(e,1),this.state=396,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}to(){let e=new a5(this,this._ctx,this.state);this.enterRule(e,56,A.RULE_to);var n=0;try{this.enterOuterAlt(e,1),this.state=398,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}signature(){let e=new t7(this,this._ctx,this.state);this.enterRule(e,58,A.RULE_signature);try{this.enterOuterAlt(e,1),this.state=400,this.methodName(),this.state=402,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,61,this._ctx);n===1&&(this.state=401,this.invocation())}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}invocation(){let e=new n7(this,this._ctx,this.state);this.enterRule(e,60,A.RULE_invocation);var n=0;try{this.enterOuterAlt(e,1),this.state=404,this.match(A.OPAR),this.state=406,this._errHandler.sync(this),n=this._input.LA(1),(!(n&-32)&&1<<n&1142947840||!(n-34&-32)&&1<<n-34&528482439)&&(this.state=405,this.parameters()),this.state=408,this.match(A.CPAR)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}assignment(){let e=new c5(this,this._ctx,this.state);this.enterRule(e,62,A.RULE_assignment);try{this.enterOuterAlt(e,1),this.state=411,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,63,this._ctx);n===1&&(this.state=410,this.type()),this.state=413,this.assignee(),this.state=414,this.match(A.ASSIGN)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}asyncMessage(){let e=new i7(this,this._ctx,this.state);this.enterRule(e,64,A.RULE_asyncMessage);var n=0;try{this.state=431,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,67,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=419,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,64,this._ctx);i===1&&(this.state=416,this.from(),this.state=417,this.match(A.ARROW)),this.state=421,this.to(),this.state=422,this.match(A.COL),this.state=424,this._errHandler.sync(this),n=this._input.LA(1),n===67&&(this.state=423,this.content());break;case 2:this.enterOuterAlt(e,2),this.state=426,this.from(),this.state=427,n=this._input.LA(1),n===10||n===21?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=429,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,66,this._ctx);i===1&&(this.state=428,this.to());break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}content(){let e=new gt(this,this._ctx,this.state);this.enterRule(e,66,A.RULE_content);try{this.enterOuterAlt(e,1),this.state=433,this.match(A.EVENT_PAYLOAD_LXR)}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}construct(){let e=new pt(this,this._ctx,this.state);this.enterRule(e,68,A.RULE_construct);var n=0;try{this.enterOuterAlt(e,1),this.state=435,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}type(){let e=new s7(this,this._ctx,this.state);this.enterRule(e,70,A.RULE_type);var n=0;try{this.enterOuterAlt(e,1),this.state=437,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}assignee(){let e=new mt(this,this._ctx,this.state);this.enterRule(e,72,A.RULE_assignee);var n=0;try{this.state=449,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,69,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=439,this.atom();break;case 2:for(this.enterOuterAlt(e,2),this.state=440,this.match(A.ID),this.state=445,this._errHandler.sync(this),n=this._input.LA(1);n===28;)this.state=441,this.match(A.COMMA),this.state=442,this.match(A.ID),this.state=447,this._errHandler.sync(this),n=this._input.LA(1);break;case 3:this.enterOuterAlt(e,3),this.state=448,this.match(A.STRING);break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}methodName(){let e=new wt(this,this._ctx,this.state);this.enterRule(e,74,A.RULE_methodName);var n=0;try{this.enterOuterAlt(e,1),this.state=451,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}parameters(){let e=new r7(this,this._ctx,this.state);this.enterRule(e,76,A.RULE_parameters);var n=0;try{this.enterOuterAlt(e,1),this.state=453,this.parameter(),this.state=458,this._errHandler.sync(this);for(var i=this._interp.adaptivePredict(this._input,70,this._ctx);i!=2&&i!=Z.atn.ATN.INVALID_ALT_NUMBER;)i===1&&(this.state=454,this.match(A.COMMA),this.state=455,this.parameter()),this.state=460,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,70,this._ctx);this.state=462,this._errHandler.sync(this),n=this._input.LA(1),n===28&&(this.state=461,this.match(A.COMMA))}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}parameter(){let e=new o7(this,this._ctx,this.state);this.enterRule(e,78,A.RULE_parameter);try{this.state=466,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,72,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=464,this.declaration();break;case 2:this.enterOuterAlt(e,2),this.state=465,this.expr(0);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}declaration(){let e=new xt(this,this._ctx,this.state);this.enterRule(e,80,A.RULE_declaration);try{this.enterOuterAlt(e,1),this.state=468,this.type(),this.state=469,this.match(A.ID)}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}tcf(){let e=new _t(this,this._ctx,this.state);this.enterRule(e,82,A.RULE_tcf);var n=0;try{for(this.enterOuterAlt(e,1),this.state=471,this.tryBlock(),this.state=475,this._errHandler.sync(this),n=this._input.LA(1);n===50;)this.state=472,this.catchBlock(),this.state=477,this._errHandler.sync(this),n=this._input.LA(1);this.state=479,this._errHandler.sync(this),n=this._input.LA(1),n===51&&(this.state=478,this.finallyBlock())}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}tryBlock(){let e=new vt(this,this._ctx,this.state);this.enterRule(e,84,A.RULE_tryBlock);try{this.enterOuterAlt(e,1),this.state=481,this.match(A.TRY),this.state=482,this.braceBlock()}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}catchBlock(){let e=new l7(this,this._ctx,this.state);this.enterRule(e,86,A.RULE_catchBlock);var n=0;try{this.enterOuterAlt(e,1),this.state=484,this.match(A.CATCH),this.state=486,this._errHandler.sync(this),n=this._input.LA(1),n===30&&(this.state=485,this.invocation()),this.state=488,this.braceBlock()}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}finallyBlock(){let e=new Mt(this,this._ctx,this.state);this.enterRule(e,88,A.RULE_finallyBlock);try{this.enterOuterAlt(e,1),this.state=490,this.match(A.FINALLY),this.state=491,this.braceBlock()}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}alt(){let e=new yt(this,this._ctx,this.state);this.enterRule(e,90,A.RULE_alt);var n=0;try{this.enterOuterAlt(e,1),this.state=493,this.ifBlock(),this.state=497,this._errHandler.sync(this);for(var i=this._interp.adaptivePredict(this._input,76,this._ctx);i!=2&&i!=Z.atn.ATN.INVALID_ALT_NUMBER;)i===1&&(this.state=494,this.elseIfBlock()),this.state=499,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,76,this._ctx);this.state=501,this._errHandler.sync(this),n=this._input.LA(1),n===38&&(this.state=500,this.elseBlock())}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}ifBlock(){let e=new Rt(this,this._ctx,this.state);this.enterRule(e,92,A.RULE_ifBlock);try{this.enterOuterAlt(e,1),this.state=503,this.match(A.IF),this.state=504,this.parExpr(),this.state=505,this.braceBlock()}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}elseIfBlock(){let e=new L7(this,this._ctx,this.state);this.enterRule(e,94,A.RULE_elseIfBlock);try{this.enterOuterAlt(e,1),this.state=507,this.match(A.ELSE),this.state=508,this.match(A.IF),this.state=509,this.parExpr(),this.state=510,this.braceBlock()}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}elseBlock(){let e=new At(this,this._ctx,this.state);this.enterRule(e,96,A.RULE_elseBlock);try{this.enterOuterAlt(e,1),this.state=512,this.match(A.ELSE),this.state=513,this.braceBlock()}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}braceBlock(){let e=new Y1(this,this._ctx,this.state);this.enterRule(e,98,A.RULE_braceBlock);var n=0;try{this.enterOuterAlt(e,1),this.state=515,this.match(A.OBRACE),this.state=517,this._errHandler.sync(this),n=this._input.LA(1),(!(n-32&-32)&&1<<n-32&2118318013||n===65||n===66)&&(this.state=516,this.block()),this.state=519,this.match(A.CBRACE)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}loop(){let e=new kt(this,this._ctx,this.state);this.enterRule(e,100,A.RULE_loop);try{this.state=528,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,79,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=521,this.match(A.WHILE),this.state=522,this.parExpr(),this.state=523,this.braceBlock();break;case 2:this.enterOuterAlt(e,2),this.state=525,this.match(A.WHILE),this.state=526,this.parExpr();break;case 3:this.enterOuterAlt(e,3),this.state=527,this.match(A.WHILE);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}expr(e){e===void 0&&(e=0);const n=this._ctx,i=this.state;let s=new b2(this,this._ctx,i),r=s;const o=102;this.enterRecursionRule(s,102,A.RULE_expr,e);var l=0;try{this.enterOuterAlt(s,1),this.state=550,this._errHandler.sync(this);var L=this._interp.adaptivePredict(this._input,81,this._ctx);switch(L){case 1:s=new Fo(this,s),this._ctx=s,r=s,this.state=531,this.atom();break;case 2:s=new zo(this,s),this._ctx=s,r=s,this.state=532,this.match(A.MINUS),this.state=533,this.expr(13);break;case 3:s=new Bo(this,s),this._ctx=s,r=s,this.state=534,this.match(A.NOT),this.state=535,this.expr(12);break;case 4:s=new Io(this,s),this._ctx=s,r=s,this.state=539,this._errHandler.sync(this);var L=this._interp.adaptivePredict(this._input,80,this._ctx);L===1&&(this.state=536,this.to(),this.state=537,this.match(A.DOT)),this.state=541,this.func();break;case 5:s=new Uo(this,s),this._ctx=s,r=s,this.state=542,this.creation();break;case 6:s=new Wo(this,s),this._ctx=s,r=s,this.state=543,this.match(A.OPAR),this.state=544,this.expr(0),this.state=545,this.match(A.CPAR);break;case 7:s=new Eo(this,s),this._ctx=s,r=s,this.state=547,this.assignment(),this.state=548,this.expr(1);break}this._ctx.stop=this._input.LT(-1),this.state=575,this._errHandler.sync(this);for(var a=this._interp.adaptivePredict(this._input,83,this._ctx);a!=2&&a!=Z.atn.ATN.INVALID_ALT_NUMBER;){if(a===1){this._parseListeners!==null&&this.triggerExitRuleEvent(),r=s,this.state=573,this._errHandler.sync(this);var L=this._interp.adaptivePredict(this._input,82,this._ctx);switch(L){case 1:if(s=new $o(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=552,!this.precpred(this._ctx,11))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 11)");this.state=553,s.op=this._input.LT(1),l=this._input.LA(1),!(l&-32)&&1<<l&29360128?(this._errHandler.reportMatch(this),this.consume()):s.op=this._errHandler.recoverInline(this),this.state=554,this.expr(12);break;case 2:if(s=new No(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=555,!this.precpred(this._ctx,10))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 10)");this.state=556,s.op=this._input.LT(1),l=this._input.LA(1),l===20||l===21?(this._errHandler.reportMatch(this),this.consume()):s.op=this._errHandler.recoverInline(this),this.state=557,this.expr(11);break;case 3:if(s=new Do(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=558,!this.precpred(this._ctx,9))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 9)");this.state=559,s.op=this._input.LT(1),l=this._input.LA(1),!(l&-32)&&1<<l&983040?(this._errHandler.reportMatch(this),this.consume()):s.op=this._errHandler.recoverInline(this),this.state=560,this.expr(10);break;case 4:if(s=new Ho(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=561,!this.precpred(this._ctx,8))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 8)");this.state=562,s.op=this._input.LT(1),l=this._input.LA(1),l===14||l===15?(this._errHandler.reportMatch(this),this.consume()):s.op=this._errHandler.recoverInline(this),this.state=563,this.expr(9);break;case 5:if(s=new Vo(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=564,!this.precpred(this._ctx,7))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 7)");this.state=565,this.match(A.AND),this.state=566,this.expr(8);break;case 6:if(s=new Oo(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=567,!this.precpred(this._ctx,6))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 6)");this.state=568,this.match(A.OR),this.state=569,this.expr(7);break;case 7:if(s=new Po(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=570,!this.precpred(this._ctx,5))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 5)");this.state=571,this.match(A.PLUS),this.state=572,this.expr(6);break}}this.state=577,this._errHandler.sync(this),a=this._interp.adaptivePredict(this._input,83,this._ctx)}}catch(c){if(c instanceof Z.error.RecognitionException)s.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.unrollRecursionContexts(n)}return s}atom(){let e=new d3(this,this._ctx,this.state);this.enterRule(e,104,A.RULE_atom);var n=0;try{switch(this.state=585,this._errHandler.sync(this),this._input.LA(1)){case 58:case 59:e=new Qo(this,e),this.enterOuterAlt(e,1),this.state=578,n=this._input.LA(1),n===58||n===59?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this);break;case 61:e=new Xo(this,e),this.enterOuterAlt(e,2),this.state=579,this.match(A.NUMBER_UNIT);break;case 60:e=new qo(this,e),this.enterOuterAlt(e,3),this.state=580,this.match(A.MONEY);break;case 34:case 35:e=new Go(this,e),this.enterOuterAlt(e,4),this.state=581,n=this._input.LA(1),n===34||n===35?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this);break;case 57:e=new jo(this,e),this.enterOuterAlt(e,5),this.state=582,this.match(A.ID);break;case 62:e=new Ko(this,e),this.enterOuterAlt(e,6),this.state=583,this.match(A.STRING);break;case 36:e=new Yo(this,e),this.enterOuterAlt(e,7),this.state=584,this.match(A.NIL);break;default:throw new Z.error.NoViableAltException(this)}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}parExpr(){let e=new C5(this,this._ctx,this.state);this.enterRule(e,106,A.RULE_parExpr);try{this.state=596,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,85,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=587,this.match(A.OPAR),this.state=588,this.condition(),this.state=589,this.match(A.CPAR);break;case 2:this.enterOuterAlt(e,2),this.state=591,this.match(A.OPAR),this.state=592,this.condition();break;case 3:this.enterOuterAlt(e,3),this.state=593,this.match(A.OPAR),this.state=594,this.match(A.CPAR);break;case 4:this.enterOuterAlt(e,4),this.state=595,this.match(A.OPAR);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}condition(){let e=new Zt(this,this._ctx,this.state);this.enterRule(e,108,A.RULE_condition);try{this.state=601,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,86,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=598,this.atom();break;case 2:this.enterOuterAlt(e,2),this.state=599,this.expr(0);break;case 3:this.enterOuterAlt(e,3),this.state=600,this.inExpr();break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}inExpr(){let e=new Tt(this,this._ctx,this.state);this.enterRule(e,110,A.RULE_inExpr);try{this.enterOuterAlt(e,1),this.state=603,this.match(A.ID),this.state=604,this.match(A.IN),this.state=605,this.match(A.ID)}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}};j2(A,"grammarFileName","java-escape"),j2(A,"literalNames",[null,null,"'const'","'readonly'","'static'","'await'","'title'","':'","'<<'","'>>'","'->'",null,"'||'","'&&'","'=='","'!='","'>'","'<'","'>='","'<='","'+'","'-'","'*'","'/'","'%'","'^'","'!'","';'","','","'='","'('","')'","'{'","'}'","'true'","'false'",null,"'if'","'else'",null,"'return'","'new'","'par'","'group'","'opt'","'critical'",null,"'ref'","'as'","'try'","'catch'","'finally'","'in'",null,null,null,"'.'"]),j2(A,"symbolicNames",[null,"WS","CONSTANT","READONLY","STATIC","AWAIT","TITLE","COL","SOPEN","SCLOSE","ARROW","COLOR","OR","AND","EQ","NEQ","GT","LT","GTEQ","LTEQ","PLUS","MINUS","MULT","DIV","MOD","POW","NOT","SCOL","COMMA","ASSIGN","OPAR","CPAR","OBRACE","CBRACE","TRUE","FALSE","NIL","IF","ELSE","WHILE","RETURN","NEW","PAR","GROUP","OPT","CRITICAL","SECTION","REF","AS","TRY","CATCH","FINALLY","IN","STARTER_LXR","ANNOTATION_RET","ANNOTATION","DOT","ID","INT","FLOAT","MONEY","NUMBER_UNIT","STRING","CR","COMMENT","OTHER","DIVIDER","EVENT_PAYLOAD_LXR","EVENT_END","TITLE_CONTENT","TITLE_END"]),j2(A,"ruleNames",["prog","title","head","group","starterExp","starter","participant","stereotype","label","participantType","name","width","block","ret","divider","dividerNote","stat","par","opt","critical","section","creation","ref","creationBody","message","messageBody","func","from","to","signature","invocation","assignment","asyncMessage","content","construct","type","assignee","methodName","parameters","parameter","declaration","tcf","tryBlock","catchBlock","finallyBlock","alt","ifBlock","elseIfBlock","elseBlock","braceBlock","loop","expr","atom","parExpr","condition","inExpr"]);let h=A;h.EOF=Z.Token.EOF,h.WS=1,h.CONSTANT=2,h.READONLY=3,h.STATIC=4,h.AWAIT=5,h.TITLE=6,h.COL=7,h.SOPEN=8,h.SCLOSE=9,h.ARROW=10,h.COLOR=11,h.OR=12,h.AND=13,h.EQ=14,h.NEQ=15,h.GT=16,h.LT=17,h.GTEQ=18,h.LTEQ=19,h.PLUS=20,h.MINUS=21,h.MULT=22,h.DIV=23,h.MOD=24,h.POW=25,h.NOT=26,h.SCOL=27,h.COMMA=28,h.ASSIGN=29,h.OPAR=30,h.CPAR=31,h.OBRACE=32,h.CBRACE=33,h.TRUE=34,h.FALSE=35,h.NIL=36,h.IF=37,h.ELSE=38,h.WHILE=39,h.RETURN=40,h.NEW=41,h.PAR=42,h.GROUP=43,h.OPT=44,h.CRITICAL=45,h.SECTION=46,h.REF=47,h.AS=48,h.TRY=49,h.CATCH=50,h.FINALLY=51,h.IN=52,h.STARTER_LXR=53,h.ANNOTATION_RET=54,h.ANNOTATION=55,h.DOT=56,h.ID=57,h.INT=58,h.FLOAT=59,h.MONEY=60,h.NUMBER_UNIT=61,h.STRING=62,h.CR=63,h.COMMENT=64,h.OTHER=65,h.DIVIDER=66,h.EVENT_PAYLOAD_LXR=67,h.EVENT_END=68,h.TITLE_CONTENT=69,h.TITLE_END=70,h.RULE_prog=0,h.RULE_title=1,h.RULE_head=2,h.RULE_group=3,h.RULE_starterExp=4,h.RULE_starter=5,h.RULE_participant=6,h.RULE_stereotype=7,h.RULE_label=8,h.RULE_participantType=9,h.RULE_name=10,h.RULE_width=11,h.RULE_block=12,h.RULE_ret=13,h.RULE_divider=14,h.RULE_dividerNote=15,h.RULE_stat=16,h.RULE_par=17,h.RULE_opt=18,h.RULE_critical=19,h.RULE_section=20,h.RULE_creation=21,h.RULE_ref=22,h.RULE_creationBody=23,h.RULE_message=24,h.RULE_messageBody=25,h.RULE_func=26,h.RULE_from=27,h.RULE_to=28,h.RULE_signature=29,h.RULE_invocation=30,h.RULE_assignment=31,h.RULE_asyncMessage=32,h.RULE_content=33,h.RULE_construct=34,h.RULE_type=35,h.RULE_assignee=36,h.RULE_methodName=37,h.RULE_parameters=38,h.RULE_parameter=39,h.RULE_declaration=40,h.RULE_tcf=41,h.RULE_tryBlock=42,h.RULE_catchBlock=43,h.RULE_finallyBlock=44,h.RULE_alt=45,h.RULE_ifBlock=46,h.RULE_elseIfBlock=47,h.RULE_elseBlock=48,h.RULE_braceBlock=49,h.RULE_loop=50,h.RULE_expr=51,h.RULE_atom=52,h.RULE_parExpr=53,h.RULE_condition=54,h.RULE_inExpr=55;let So=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_prog}EOF(){return this.getToken(h.EOF,0)}title(){return this.getTypedRuleContext(Qe,0)}head(){return this.getTypedRuleContext(Xe,0)}block(){return this.getTypedRuleContext(Y8,0)}enterRule(e){e instanceof T&&e.enterProg(this)}exitRule(e){e instanceof T&&e.exitProg(this)}},Qe=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_title}TITLE(){return this.getToken(h.TITLE,0)}TITLE_CONTENT(){return this.getToken(h.TITLE_CONTENT,0)}TITLE_END(){return this.getToken(h.TITLE_END,0)}enterRule(e){e instanceof T&&e.enterTitle(this)}exitRule(e){e instanceof T&&e.exitTitle(this)}};class Xe extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"group",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(K8):this.getTypedRuleContext(K8,n)});j2(this,"participant",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(h0):this.getTypedRuleContext(h0,n)});this.parser=n,this.ruleIndex=h.RULE_head}starterExp(){return this.getTypedRuleContext(Je,0)}enterRule(n){n instanceof T&&n.enterHead(this)}exitRule(n){n instanceof T&&n.exitHead(this)}}let K8=class extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"participant",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(h0):this.getTypedRuleContext(h0,n)});this.parser=n,this.ruleIndex=h.RULE_group}GROUP(){return this.getToken(h.GROUP,0)}OBRACE(){return this.getToken(h.OBRACE,0)}CBRACE(){return this.getToken(h.CBRACE,0)}name(){return this.getTypedRuleContext(j4,0)}enterRule(n){n instanceof T&&n.enterGroup(this)}exitRule(n){n instanceof T&&n.exitGroup(this)}};class Je extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_starterExp}STARTER_LXR(){return this.getToken(h.STARTER_LXR,0)}OPAR(){return this.getToken(h.OPAR,0)}CPAR(){return this.getToken(h.CPAR,0)}starter(){return this.getTypedRuleContext(et,0)}ANNOTATION(){return this.getToken(h.ANNOTATION,0)}enterRule(e){e instanceof T&&e.enterStarterExp(this)}exitRule(e){e instanceof T&&e.exitStarterExp(this)}}class et extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_starter}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterStarter(this)}exitRule(e){e instanceof T&&e.exitStarter(this)}}let h0=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_participant}name(){return this.getTypedRuleContext(j4,0)}participantType(){return this.getTypedRuleContext(it,0)}stereotype(){return this.getTypedRuleContext(tt,0)}width(){return this.getTypedRuleContext(st,0)}label(){return this.getTypedRuleContext(nt,0)}COLOR(){return this.getToken(h.COLOR,0)}enterRule(e){e instanceof T&&e.enterParticipant(this)}exitRule(e){e instanceof T&&e.exitParticipant(this)}};class tt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_stereotype}SOPEN(){return this.getToken(h.SOPEN,0)}name(){return this.getTypedRuleContext(j4,0)}SCLOSE(){return this.getToken(h.SCLOSE,0)}GT(){return this.getToken(h.GT,0)}LT(){return this.getToken(h.LT,0)}enterRule(e){e instanceof T&&e.enterStereotype(this)}exitRule(e){e instanceof T&&e.exitStereotype(this)}}class nt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_label}AS(){return this.getToken(h.AS,0)}name(){return this.getTypedRuleContext(j4,0)}enterRule(e){e instanceof T&&e.enterLabel(this)}exitRule(e){e instanceof T&&e.exitLabel(this)}}class it extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_participantType}ANNOTATION(){return this.getToken(h.ANNOTATION,0)}enterRule(e){e instanceof T&&e.enterParticipantType(this)}exitRule(e){e instanceof T&&e.exitParticipantType(this)}}class j4 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_name}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterName(this)}exitRule(e){e instanceof T&&e.exitName(this)}}class st extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_width}INT(){return this.getToken(h.INT,0)}enterRule(e){e instanceof T&&e.enterWidth(this)}exitRule(e){e instanceof T&&e.exitWidth(this)}}class Y8 extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"stat",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(Q8):this.getTypedRuleContext(Q8,n)});this.parser=n,this.ruleIndex=h.RULE_block}enterRule(n){n instanceof T&&n.enterBlock(this)}exitRule(n){n instanceof T&&n.exitBlock(this)}}let rt=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_ret}RETURN(){return this.getToken(h.RETURN,0)}expr(){return this.getTypedRuleContext(b2,0)}SCOL(){return this.getToken(h.SCOL,0)}ANNOTATION_RET(){return this.getToken(h.ANNOTATION_RET,0)}asyncMessage(){return this.getTypedRuleContext(i7,0)}EVENT_END(){return this.getToken(h.EVENT_END,0)}enterRule(e){e instanceof T&&e.enterRet(this)}exitRule(e){e instanceof T&&e.exitRet(this)}},ot=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_divider}dividerNote(){return this.getTypedRuleContext(lt,0)}enterRule(e){e instanceof T&&e.enterDivider(this)}exitRule(e){e instanceof T&&e.exitDivider(this)}};class lt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_dividerNote}DIVIDER(){return this.getToken(h.DIVIDER,0)}enterRule(e){e instanceof T&&e.enterDividerNote(this)}exitRule(e){e instanceof T&&e.exitDividerNote(this)}}let Q8=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_stat,this._OTHER=null}alt(){return this.getTypedRuleContext(yt,0)}par(){return this.getTypedRuleContext(Lt,0)}opt(){return this.getTypedRuleContext(at,0)}critical(){return this.getTypedRuleContext(ct,0)}section(){return this.getTypedRuleContext(Ct,0)}ref(){return this.getTypedRuleContext(ut,0)}loop(){return this.getTypedRuleContext(kt,0)}creation(){return this.getTypedRuleContext(X8,0)}message(){return this.getTypedRuleContext(dt,0)}asyncMessage(){return this.getTypedRuleContext(i7,0)}EVENT_END(){return this.getToken(h.EVENT_END,0)}ret(){return this.getTypedRuleContext(rt,0)}divider(){return this.getTypedRuleContext(ot,0)}tcf(){return this.getTypedRuleContext(_t,0)}OTHER(){return this.getToken(h.OTHER,0)}enterRule(e){e instanceof T&&e.enterStat(this)}exitRule(e){e instanceof T&&e.exitStat(this)}};class Lt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_par}PAR(){return this.getToken(h.PAR,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterPar(this)}exitRule(e){e instanceof T&&e.exitPar(this)}}class at extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_opt}OPT(){return this.getToken(h.OPT,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterOpt(this)}exitRule(e){e instanceof T&&e.exitOpt(this)}}class ct extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_critical}CRITICAL(){return this.getToken(h.CRITICAL,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}OPAR(){return this.getToken(h.OPAR,0)}CPAR(){return this.getToken(h.CPAR,0)}atom(){return this.getTypedRuleContext(d3,0)}enterRule(e){e instanceof T&&e.enterCritical(this)}exitRule(e){e instanceof T&&e.exitCritical(this)}}class Ct extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_section}SECTION(){return this.getToken(h.SECTION,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}OPAR(){return this.getToken(h.OPAR,0)}CPAR(){return this.getToken(h.CPAR,0)}atom(){return this.getTypedRuleContext(d3,0)}enterRule(e){e instanceof T&&e.enterSection(this)}exitRule(e){e instanceof T&&e.exitSection(this)}}let X8=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_creation}creationBody(){return this.getTypedRuleContext(ht,0)}SCOL(){return this.getToken(h.SCOL,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterCreation(this)}exitRule(e){e instanceof T&&e.exitCreation(this)}},ut=class extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"name",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(j4):this.getTypedRuleContext(j4,n)});j2(this,"COMMA",function(n){return n===void 0&&(n=null),n===null?this.getTokens(h.COMMA):this.getToken(h.COMMA,n)});this.parser=n,this.ruleIndex=h.RULE_ref}REF(){return this.getToken(h.REF,0)}OPAR(){return this.getToken(h.OPAR,0)}CPAR(){return this.getToken(h.CPAR,0)}SCOL(){return this.getToken(h.SCOL,0)}enterRule(n){n instanceof T&&n.enterRef(this)}exitRule(n){n instanceof T&&n.exitRef(this)}};class ht extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_creationBody}NEW(){return this.getToken(h.NEW,0)}construct(){return this.getTypedRuleContext(pt,0)}assignment(){return this.getTypedRuleContext(c5,0)}OPAR(){return this.getToken(h.OPAR,0)}CPAR(){return this.getToken(h.CPAR,0)}parameters(){return this.getTypedRuleContext(r7,0)}enterRule(e){e instanceof T&&e.enterCreationBody(this)}exitRule(e){e instanceof T&&e.exitCreationBody(this)}}let dt=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_message}messageBody(){return this.getTypedRuleContext(ft,0)}SCOL(){return this.getToken(h.SCOL,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterMessage(this)}exitRule(e){e instanceof T&&e.exitMessage(this)}};class ft extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_messageBody}func(){return this.getTypedRuleContext(J8,0)}assignment(){return this.getTypedRuleContext(c5,0)}to(){return this.getTypedRuleContext(a5,0)}DOT(){return this.getToken(h.DOT,0)}from(){return this.getTypedRuleContext(e7,0)}ARROW(){return this.getToken(h.ARROW,0)}enterRule(e){e instanceof T&&e.enterMessageBody(this)}exitRule(e){e instanceof T&&e.exitMessageBody(this)}}class J8 extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"signature",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(t7):this.getTypedRuleContext(t7,n)});j2(this,"DOT",function(n){return n===void 0&&(n=null),n===null?this.getTokens(h.DOT):this.getToken(h.DOT,n)});this.parser=n,this.ruleIndex=h.RULE_func}enterRule(n){n instanceof T&&n.enterFunc(this)}exitRule(n){n instanceof T&&n.exitFunc(this)}}class e7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_from}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterFrom(this)}exitRule(e){e instanceof T&&e.exitFrom(this)}}class a5 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_to}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterTo(this)}exitRule(e){e instanceof T&&e.exitTo(this)}}class t7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_signature}methodName(){return this.getTypedRuleContext(wt,0)}invocation(){return this.getTypedRuleContext(n7,0)}enterRule(e){e instanceof T&&e.enterSignature(this)}exitRule(e){e instanceof T&&e.exitSignature(this)}}class n7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_invocation}OPAR(){return this.getToken(h.OPAR,0)}CPAR(){return this.getToken(h.CPAR,0)}parameters(){return this.getTypedRuleContext(r7,0)}enterRule(e){e instanceof T&&e.enterInvocation(this)}exitRule(e){e instanceof T&&e.exitInvocation(this)}}class c5 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_assignment}assignee(){return this.getTypedRuleContext(mt,0)}ASSIGN(){return this.getToken(h.ASSIGN,0)}type(){return this.getTypedRuleContext(s7,0)}enterRule(e){e instanceof T&&e.enterAssignment(this)}exitRule(e){e instanceof T&&e.exitAssignment(this)}}let i7=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_asyncMessage}to(){return this.getTypedRuleContext(a5,0)}COL(){return this.getToken(h.COL,0)}from(){return this.getTypedRuleContext(e7,0)}ARROW(){return this.getToken(h.ARROW,0)}content(){return this.getTypedRuleContext(gt,0)}MINUS(){return this.getToken(h.MINUS,0)}enterRule(e){e instanceof T&&e.enterAsyncMessage(this)}exitRule(e){e instanceof T&&e.exitAsyncMessage(this)}};class gt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_content}EVENT_PAYLOAD_LXR(){return this.getToken(h.EVENT_PAYLOAD_LXR,0)}enterRule(e){e instanceof T&&e.enterContent(this)}exitRule(e){e instanceof T&&e.exitContent(this)}}class pt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_construct}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterConstruct(this)}exitRule(e){e instanceof T&&e.exitConstruct(this)}}class s7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_type}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterType(this)}exitRule(e){e instanceof T&&e.exitType(this)}}class mt extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"ID",function(n){return n===void 0&&(n=null),n===null?this.getTokens(h.ID):this.getToken(h.ID,n)});j2(this,"COMMA",function(n){return n===void 0&&(n=null),n===null?this.getTokens(h.COMMA):this.getToken(h.COMMA,n)});this.parser=n,this.ruleIndex=h.RULE_assignee}atom(){return this.getTypedRuleContext(d3,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(n){n instanceof T&&n.enterAssignee(this)}exitRule(n){n instanceof T&&n.exitAssignee(this)}}class wt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_methodName}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterMethodName(this)}exitRule(e){e instanceof T&&e.exitMethodName(this)}}class r7 extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"parameter",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(o7):this.getTypedRuleContext(o7,n)});j2(this,"COMMA",function(n){return n===void 0&&(n=null),n===null?this.getTokens(h.COMMA):this.getToken(h.COMMA,n)});this.parser=n,this.ruleIndex=h.RULE_parameters}enterRule(n){n instanceof T&&n.enterParameters(this)}exitRule(n){n instanceof T&&n.exitParameters(this)}}class o7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_parameter}declaration(){return this.getTypedRuleContext(xt,0)}expr(){return this.getTypedRuleContext(b2,0)}enterRule(e){e instanceof T&&e.enterParameter(this)}exitRule(e){e instanceof T&&e.exitParameter(this)}}class xt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_declaration}type(){return this.getTypedRuleContext(s7,0)}ID(){return this.getToken(h.ID,0)}enterRule(e){e instanceof T&&e.enterDeclaration(this)}exitRule(e){e instanceof T&&e.exitDeclaration(this)}}class _t extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"catchBlock",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(l7):this.getTypedRuleContext(l7,n)});this.parser=n,this.ruleIndex=h.RULE_tcf}tryBlock(){return this.getTypedRuleContext(vt,0)}finallyBlock(){return this.getTypedRuleContext(Mt,0)}enterRule(n){n instanceof T&&n.enterTcf(this)}exitRule(n){n instanceof T&&n.exitTcf(this)}}class vt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_tryBlock}TRY(){return this.getToken(h.TRY,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterTryBlock(this)}exitRule(e){e instanceof T&&e.exitTryBlock(this)}}class l7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_catchBlock}CATCH(){return this.getToken(h.CATCH,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}invocation(){return this.getTypedRuleContext(n7,0)}enterRule(e){e instanceof T&&e.enterCatchBlock(this)}exitRule(e){e instanceof T&&e.exitCatchBlock(this)}}class Mt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_finallyBlock}FINALLY(){return this.getToken(h.FINALLY,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterFinallyBlock(this)}exitRule(e){e instanceof T&&e.exitFinallyBlock(this)}}class yt extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"elseIfBlock",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(L7):this.getTypedRuleContext(L7,n)});this.parser=n,this.ruleIndex=h.RULE_alt}ifBlock(){return this.getTypedRuleContext(Rt,0)}elseBlock(){return this.getTypedRuleContext(At,0)}enterRule(n){n instanceof T&&n.enterAlt(this)}exitRule(n){n instanceof T&&n.exitAlt(this)}}let Rt=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_ifBlock}IF(){return this.getToken(h.IF,0)}parExpr(){return this.getTypedRuleContext(C5,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterIfBlock(this)}exitRule(e){e instanceof T&&e.exitIfBlock(this)}};class L7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_elseIfBlock}ELSE(){return this.getToken(h.ELSE,0)}IF(){return this.getToken(h.IF,0)}parExpr(){return this.getTypedRuleContext(C5,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterElseIfBlock(this)}exitRule(e){e instanceof T&&e.exitElseIfBlock(this)}}class At extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_elseBlock}ELSE(){return this.getToken(h.ELSE,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterElseBlock(this)}exitRule(e){e instanceof T&&e.exitElseBlock(this)}}class Y1 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_braceBlock}OBRACE(){return this.getToken(h.OBRACE,0)}CBRACE(){return this.getToken(h.CBRACE,0)}block(){return this.getTypedRuleContext(Y8,0)}enterRule(e){e instanceof T&&e.enterBraceBlock(this)}exitRule(e){e instanceof T&&e.exitBraceBlock(this)}}let kt=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_loop}WHILE(){return this.getToken(h.WHILE,0)}parExpr(){return this.getTypedRuleContext(C5,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterLoop(this)}exitRule(e){e instanceof T&&e.exitLoop(this)}};class b2 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_expr}copyFrom(e){super.copyFrom(e)}}class Eo extends b2{constructor(e,n){super(e),super.copyFrom(n)}assignment(){return this.getTypedRuleContext(c5,0)}expr(){return this.getTypedRuleContext(b2,0)}enterRule(e){e instanceof T&&e.enterAssignmentExpr(this)}exitRule(e){e instanceof T&&e.exitAssignmentExpr(this)}}h.AssignmentExprContext=Eo;class Io extends b2{constructor(e,n){super(e),super.copyFrom(n)}func(){return this.getTypedRuleContext(J8,0)}to(){return this.getTypedRuleContext(a5,0)}DOT(){return this.getToken(h.DOT,0)}enterRule(e){e instanceof T&&e.enterFuncExpr(this)}exitRule(e){e instanceof T&&e.exitFuncExpr(this)}}h.FuncExprContext=Io;class Fo extends b2{constructor(e,n){super(e),super.copyFrom(n)}atom(){return this.getTypedRuleContext(d3,0)}enterRule(e){e instanceof T&&e.enterAtomExpr(this)}exitRule(e){e instanceof T&&e.exitAtomExpr(this)}}h.AtomExprContext=Fo;class Oo extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});super.copyFrom(i)}OR(){return this.getToken(h.OR,0)}enterRule(n){n instanceof T&&n.enterOrExpr(this)}exitRule(n){n instanceof T&&n.exitOrExpr(this)}}h.OrExprContext=Oo;class No extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});this.op=null,super.copyFrom(i)}PLUS(){return this.getToken(h.PLUS,0)}MINUS(){return this.getToken(h.MINUS,0)}enterRule(n){n instanceof T&&n.enterAdditiveExpr(this)}exitRule(n){n instanceof T&&n.exitAdditiveExpr(this)}}h.AdditiveExprContext=No;class Do extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});this.op=null,super.copyFrom(i)}LTEQ(){return this.getToken(h.LTEQ,0)}GTEQ(){return this.getToken(h.GTEQ,0)}LT(){return this.getToken(h.LT,0)}GT(){return this.getToken(h.GT,0)}enterRule(n){n instanceof T&&n.enterRelationalExpr(this)}exitRule(n){n instanceof T&&n.exitRelationalExpr(this)}}h.RelationalExprContext=Do;class Po extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});super.copyFrom(i)}PLUS(){return this.getToken(h.PLUS,0)}enterRule(n){n instanceof T&&n.enterPlusExpr(this)}exitRule(n){n instanceof T&&n.exitPlusExpr(this)}}h.PlusExprContext=Po;class Bo extends b2{constructor(e,n){super(e),super.copyFrom(n)}NOT(){return this.getToken(h.NOT,0)}expr(){return this.getTypedRuleContext(b2,0)}enterRule(e){e instanceof T&&e.enterNotExpr(this)}exitRule(e){e instanceof T&&e.exitNotExpr(this)}}h.NotExprContext=Bo;class zo extends b2{constructor(e,n){super(e),super.copyFrom(n)}MINUS(){return this.getToken(h.MINUS,0)}expr(){return this.getTypedRuleContext(b2,0)}enterRule(e){e instanceof T&&e.enterUnaryMinusExpr(this)}exitRule(e){e instanceof T&&e.exitUnaryMinusExpr(this)}}h.UnaryMinusExprContext=zo;class Uo extends b2{constructor(e,n){super(e),super.copyFrom(n)}creation(){return this.getTypedRuleContext(X8,0)}enterRule(e){e instanceof T&&e.enterCreationExpr(this)}exitRule(e){e instanceof T&&e.exitCreationExpr(this)}}h.CreationExprContext=Uo;class Wo extends b2{constructor(e,n){super(e),super.copyFrom(n)}OPAR(){return this.getToken(h.OPAR,0)}expr(){return this.getTypedRuleContext(b2,0)}CPAR(){return this.getToken(h.CPAR,0)}enterRule(e){e instanceof T&&e.enterParenthesizedExpr(this)}exitRule(e){e instanceof T&&e.exitParenthesizedExpr(this)}}h.ParenthesizedExprContext=Wo;class $o extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});this.op=null,super.copyFrom(i)}MULT(){return this.getToken(h.MULT,0)}DIV(){return this.getToken(h.DIV,0)}MOD(){return this.getToken(h.MOD,0)}enterRule(n){n instanceof T&&n.enterMultiplicationExpr(this)}exitRule(n){n instanceof T&&n.exitMultiplicationExpr(this)}}h.MultiplicationExprContext=$o;class Ho extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});this.op=null,super.copyFrom(i)}EQ(){return this.getToken(h.EQ,0)}NEQ(){return this.getToken(h.NEQ,0)}enterRule(n){n instanceof T&&n.enterEqualityExpr(this)}exitRule(n){n instanceof T&&n.exitEqualityExpr(this)}}h.EqualityExprContext=Ho;class Vo extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});super.copyFrom(i)}AND(){return this.getToken(h.AND,0)}enterRule(n){n instanceof T&&n.enterAndExpr(this)}exitRule(n){n instanceof T&&n.exitAndExpr(this)}}h.AndExprContext=Vo;class d3 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_atom}copyFrom(e){super.copyFrom(e)}}class Go extends d3{constructor(e,n){super(e),super.copyFrom(n)}TRUE(){return this.getToken(h.TRUE,0)}FALSE(){return this.getToken(h.FALSE,0)}enterRule(e){e instanceof T&&e.enterBooleanAtom(this)}exitRule(e){e instanceof T&&e.exitBooleanAtom(this)}}h.BooleanAtomContext=Go;class jo extends d3{constructor(e,n){super(e),super.copyFrom(n)}ID(){return this.getToken(h.ID,0)}enterRule(e){e instanceof T&&e.enterIdAtom(this)}exitRule(e){e instanceof T&&e.exitIdAtom(this)}}h.IdAtomContext=jo;class qo extends d3{constructor(e,n){super(e),super.copyFrom(n)}MONEY(){return this.getToken(h.MONEY,0)}enterRule(e){e instanceof T&&e.enterMoneyAtom(this)}exitRule(e){e instanceof T&&e.exitMoneyAtom(this)}}h.MoneyAtomContext=qo;class Ko extends d3{constructor(e,n){super(e),super.copyFrom(n)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterStringAtom(this)}exitRule(e){e instanceof T&&e.exitStringAtom(this)}}h.StringAtomContext=Ko;class Yo extends d3{constructor(e,n){super(e),super.copyFrom(n)}NIL(){return this.getToken(h.NIL,0)}enterRule(e){e instanceof T&&e.enterNilAtom(this)}exitRule(e){e instanceof T&&e.exitNilAtom(this)}}h.NilAtomContext=Yo;class Qo extends d3{constructor(e,n){super(e),super.copyFrom(n)}INT(){return this.getToken(h.INT,0)}FLOAT(){return this.getToken(h.FLOAT,0)}enterRule(e){e instanceof T&&e.enterNumberAtom(this)}exitRule(e){e instanceof T&&e.exitNumberAtom(this)}}h.NumberAtomContext=Qo;class Xo extends d3{constructor(e,n){super(e),super.copyFrom(n)}NUMBER_UNIT(){return this.getToken(h.NUMBER_UNIT,0)}enterRule(e){e instanceof T&&e.enterNumberUnitAtom(this)}exitRule(e){e instanceof T&&e.exitNumberUnitAtom(this)}}h.NumberUnitAtomContext=Xo;class C5 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_parExpr}OPAR(){return this.getToken(h.OPAR,0)}condition(){return this.getTypedRuleContext(Zt,0)}CPAR(){return this.getToken(h.CPAR,0)}enterRule(e){e instanceof T&&e.enterParExpr(this)}exitRule(e){e instanceof T&&e.exitParExpr(this)}}class Zt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_condition}atom(){return this.getTypedRuleContext(d3,0)}expr(){return this.getTypedRuleContext(b2,0)}inExpr(){return this.getTypedRuleContext(Tt,0)}enterRule(e){e instanceof T&&e.enterCondition(this)}exitRule(e){e instanceof T&&e.exitCondition(this)}}class Tt extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"ID",function(n){return n===void 0&&(n=null),n===null?this.getTokens(h.ID):this.getToken(h.ID,n)});this.parser=n,this.ruleIndex=h.RULE_inExpr}IN(){return this.getToken(h.IN,0)}enterRule(n){n instanceof T&&n.enterInExpr(this)}exitRule(n){n instanceof T&&n.exitInExpr(this)}}h.ProgContext=So,h.TitleContext=Qe,h.HeadContext=Xe,h.GroupContext=K8,h.StarterExpContext=Je,h.StarterContext=et,h.ParticipantContext=h0,h.StereotypeContext=tt,h.LabelContext=nt,h.ParticipantTypeContext=it,h.NameContext=j4,h.WidthContext=st,h.BlockContext=Y8,h.RetContext=rt,h.DividerContext=ot,h.DividerNoteContext=lt,h.StatContext=Q8,h.ParContext=Lt,h.OptContext=at,h.CriticalContext=ct,h.SectionContext=Ct,h.CreationContext=X8,h.RefContext=ut,h.CreationBodyContext=ht,h.MessageContext=dt,h.MessageBodyContext=ft,h.FuncContext=J8,h.FromContext=e7,h.ToContext=a5,h.SignatureContext=t7,h.InvocationContext=n7,h.AssignmentContext=c5,h.AsyncMessageContext=i7,h.ContentContext=gt,h.ConstructContext=pt,h.TypeContext=s7,h.AssigneeContext=mt,h.MethodNameContext=wt,h.ParametersContext=r7,h.ParameterContext=o7,h.DeclarationContext=xt,h.TcfContext=_t,h.TryBlockContext=vt,h.CatchBlockContext=l7,h.FinallyBlockContext=Mt,h.AltContext=yt,h.IfBlockContext=Rt,h.ElseIfBlockContext=L7,h.ElseBlockContext=At,h.BraceBlockContext=Y1,h.LoopContext=kt,h.ExprContext=b2,h.AtomContext=d3,h.ParExprContext=C5,h.ConditionContext=Zt,h.InExprContext=Tt;const Jo={name:"",color:void 0,comment:void 0,explicit:void 0,groupId:void 0,isStarter:void 0,label:void 0,stereotype:void 0,type:void 0,width:void 0,assignee:void 0,positions:new Set,assigneePositions:new Set};let xg=class{constructor(e,n){this.positions=new Set,this.assigneePositions=new Set,this.name=e,this.mergeOptions(n)}mergeOptions(e){const{stereotype:n,width:i,groupId:s,label:r,explicit:o,isStarter:l,type:L,color:a,comment:c,assignee:C}=e;this.stereotype||(this.stereotype=n),this.width||(this.width=i),this.groupId||(this.groupId=s),this.explicit||(this.explicit=o),this.isStarter||(this.isStarter=l),this.label||(this.label=r),this.type||(this.type=L),this.color||(this.color=a),this.comment||(this.comment=c),this.assignee||(this.assignee=C)}AddPosition(e){this.positions.add(e)}ToValue(){return{name:this.name,stereotype:this.stereotype,width:this.width,groupId:this.groupId,explicit:this.explicit,isStarter:this.isStarter,label:this.label,type:this.type,color:this.color,comment:this.comment,assignee:this.assignee,positions:this.positions,assigneePositions:this.assigneePositions}}},_g=class{constructor(){this.participants=new Map}Add(e,n={}){if(!e)throw new Error("Participant name is required");let i=this.Get(e);i?i==null||i.mergeOptions(n):(i=new xg(e,n),this.participants.set(e,i));const{position:s,assigneePosition:r}=n;s&&i.AddPosition(s),r&&i.assigneePositions.add(r)}ImplicitArray(){return this.Array().filter(e=>{var n;return!((n=this.Get(e.name))!=null&&n.explicit)})}Array(){return Array.from(this.participants.entries()).map(e=>e[1])}Names(){return Array.from(this.participants.keys())}First(){return this.participants.values().next().value}Get(e){return this.participants.get(e)}Size(){return this.participants.size}Starter(){for(const e of this.participants.values())if(e.isStarter)return e}GetPositions(e){var n;return(n=this.participants.get(e))==null?void 0:n.positions}GetAssigneePositions(e){var n;return(n=this.participants.get(e))==null?void 0:n.assigneePositions}},f3,A9=!1,bt;const D1=new T,vg=function(t){var d,f,m,_,p,g;if(A9)return;const e=(d=t==null?void 0:t.participantType())==null?void 0:d.getFormattedText().replace("@",""),n=((f=t==null?void 0:t.name())==null?void 0:f.getFormattedText())||"Missing `Participant`",i=(_=(m=t.stereotype())==null?void 0:m.name())==null?void 0:_.getFormattedText(),s=t.width&&t.width()&&Number.parseInt(t.width().getText())||void 0,r=t.label&&t.label(),o=(p=r==null?void 0:r.name())==null?void 0:p.getFormattedText(),l=!0,L=(g=t.COLOR())==null?void 0:g.getText(),a=t.getComment(),c=t.name();let C,u;if(r){const w=r.name();w&&(C=w.start.start,u=w.stop.stop+1)}else c&&(C=c.start.start,u=c.stop.stop+1);f3.Add(n,{isStarter:!1,type:e,stereotype:i,width:s,groupId:bt,label:o,explicit:l,color:L,comment:a,position:[C,u]})};D1.enterParticipant=vg;const el=function(t){if(A9)return;let e=t.getFormattedText();const n=f3.Get(e);if(n!=null&&n.label)f3.Add(e,{isStarter:!1});else if(n!=null&&n.assignee){const s=[t.start.start+n.assignee.length+2,t.stop.stop],r=[t.start.start+1,t.start.start+n.assignee.length+1];f3.Add(e,{isStarter:!1,position:s,assigneePosition:r})}else f3.Add(e,{isStarter:!1,position:[t.start.start,t.stop.stop+1]})};D1.enterFrom=el,D1.enterTo=el,D1.enterStarter=function(t){let e=t.getFormattedText();f3.Add(e,{isStarter:!0,position:[t.start.start,t.stop.stop+1]})},D1.enterCreation=function(t){var s;if(A9)return;const e=t.Owner(),n=(s=t==null?void 0:t.creationBody())==null?void 0:s.construct(),i=f3.Get(e);if(n&&!(i!=null&&i.label)){const r=t.Assignee(),o=t.AssigneePosition();f3.Add(e,{isStarter:!1,position:[n.start.start,n.stop.stop+1],assignee:r,assigneePosition:o})}else f3.Add(e,{isStarter:!1})},D1.enterRef=function(t){t.Participants().forEach(e=>{f3.Add(e.getText(),{isStarter:!1,position:[e.start.start,e.stop.stop+1]})})},D1.enterParameters=function(){A9=!0},D1.exitParameters=function(){A9=!1},D1.enterCondition=function(){A9=!0},D1.exitCondition=function(){A9=!1},D1.enterGroup=function(t){var e;bt=(e=t.name())==null?void 0:e.getFormattedText()},D1.exitGroup=function(){bt=void 0},D1.enterRet=function(t){if(t.asyncMessage())return;const e=t.From();e&&f3.Add(e);const n=t.ReturnTo();n&&f3.Add(n)};const Mg=Z.tree.ParseTreeWalker.DEFAULT;D1.getParticipants=function(t){return f3=new _g,Mg.walk(this,t),f3};const yg=Z.tree.ParseTreeWalker.DEFAULT;let Q1=new T,g1=0,P1=0;Q1.enterTcf=function(){g1++},Q1.enterOpt=function(){g1++},Q1.enterPar=function(){g1++},Q1.enterAlt=function(){g1++},Q1.enterLoop=function(){g1++},Q1.enterSection=function(){g1++},Q1.enterCritical=function(){g1++},Q1.exitTcf=function(){P1=Math.max(P1,g1),g1--},Q1.exitOpt=function(){P1=Math.max(P1,g1),g1--},Q1.exitPar=function(){P1=Math.max(P1,g1),g1--},Q1.exitAlt=function(){P1=Math.max(P1,g1),g1--},Q1.exitLoop=function(){P1=Math.max(P1,g1),g1--},Q1.exitSection=function(){P1=Math.max(P1,g1),g1--},Q1.exitCritical=function(){P1=Math.max(P1,g1),g1--},Q1.depth=function(t){return function(e){return g1=0,P1=0,e.children.map(function(n){yg.walk(t,n)}),P1}};const Rg=h.TitleContext;Rg.prototype.content=function(){return this.children.length<2?"":this.children[1].getText().trim()};const tl=h,St=tl.CreationContext;St.prototype.Body=St.prototype.creationBody,St.prototype.isCurrent=function(t){return nl.bind(this)(t)};const Et=tl.MessageContext;Et.prototype.Body=Et.prototype.messageBody,Et.prototype.isCurrent=function(t){return nl.bind(this)(t)};function nl(t){try{if(t==null)return!1;const e=this.start.start,n=this.Body().stop.stop+1;return t>=e&&t<=n}catch{return!1}}const a7=h,d0=a7.CreationContext,It=a7.MessageContext,il=a7.AsyncMessageContext,sl=a7.RetContext;d0.prototype.Assignee=function(){var t,e,n;return(n=(e=(t=this.creationBody())==null?void 0:t.assignment())==null?void 0:e.assignee())==null?void 0:n.getFormattedText()},d0.prototype.AssigneePosition=function(){var e,n;const t=(n=(e=this.creationBody())==null?void 0:e.assignment())==null?void 0:n.assignee();if(t)return[t.start.start,t.stop.stop+1]},d0.prototype.Constructor=function(){var t,e;return(e=(t=this.creationBody())==null?void 0:t.construct())==null?void 0:e.getFormattedText()},d0.prototype.To=function(){return this.Constructor()},d0.prototype.Owner=function(){if(!this.Constructor())return"Missing Constructor";const t=this.Assignee(),e=this.Constructor();return t?`${t}:${e}`:e},It.prototype.To=function(){var t,e;return(e=(t=this.messageBody())==null?void 0:t.to())==null?void 0:e.getFormattedText()},It.prototype.Owner=function(){return this.To()||Ft(this.parentCtx)};function Ft(t){for(;t;){if(t instanceof d0||t instanceof It)return t.Owner();t=t.parentCtx}}il.prototype.To=function(){var t;return(t=this.to())==null?void 0:t.getFormattedText()},il.prototype.Owner=function(){return this.To()||Ft(this.parentCtx)},sl.prototype.To=function(){return this.ReturnTo()},sl.prototype.Owner=function(){return this.To()||Ft(this.parentCtx)};const Ag=h.ProgContext;Ag.prototype.Starter=function(){var t,e,n;return(n=(e=(t=this.head())==null?void 0:t.starterExp())==null?void 0:e.starter())==null?void 0:n.getFormattedText()};const c7=h,kg=c7.RetContext,rl=c7.ProgContext,ol=c7.MessageContext,Zg=c7.CreationContext;kg.prototype.ReturnTo=function(){var i,s;const n=this.parentCtx.parentCtx.parentCtx;if(n instanceof rl)return n.Starter();{let r=n;for(;r&&!(r instanceof ol)&&!(r instanceof Zg);){if(r instanceof rl)return r.Starter();r=r.parentCtx}return r instanceof ol&&((s=(i=r.messageBody())==null?void 0:i.from())==null?void 0:s.getFormattedText())||r.ClosestAncestorStat().Origin()}};const ll=h.RefContext;ll.prototype.Content=function(){return this.name()[0]},ll.prototype.Participants=function(){return this.name().slice(1)??[]};const Tg=Z.ParserRuleContext,Ll=h.StatContext,Ot=h.ProgContext,bg=h.MessageContext,Sg=h.CreationContext;Tg.prototype.Origin=function(){let t=this.parentCtx;for(;t&&!(t instanceof Ll||t instanceof Ot);)t=this.parentCtx;return t.Origin()},Ll.prototype.Origin=function(){let t=this.parentCtx;for(;t;){if(t instanceof Ot)return t.Starter();if(t instanceof bg||t instanceof Sg){const e=t.Owner();if(e)return e}t=t.parentCtx}},Ot.prototype.Origin=function(){return this.Starter()};const Eg=h.DividerContext;Eg.prototype.Note=function(){var e;const t=(e=this.dividerNote())==null?void 0:e.getFormattedText().trim();if(!t.startsWith("=="))throw new Error("Divider note must start with ==");return t==null?void 0:t.replace(/^=+|=+$/g,"")};const Ig=h.MessageContext,Fg=h.AsyncMessageContext,al=h.CreationContext,Og=h.RetContext;Ig.prototype.SignatureText=function(){var t,e,n;return((n=(e=(t=this.messageBody())==null?void 0:t.func())==null?void 0:e.signature())==null?void 0:n.map(i=>i==null?void 0:i.getFormattedText()).join("."))??""},Fg.prototype.SignatureText=function(){var t;return((t=this.content())==null?void 0:t.getFormattedText())??""},al.prototype.SignatureText=function(){var n;const t=this.creationBody().parameters();return`«${((n=t==null?void 0:t.parameter())==null?void 0:n.length)>0?t.getFormattedText():"create"}»`},al.prototype.isParamValid=function(){var t,e;return(((e=(t=this.creationBody().parameters())==null?void 0:t.parameter())==null?void 0:e.length)??0)>0},Og.prototype.SignatureText=function(){var t,e,n;return((e=(t=this.asyncMessage())==null?void 0:t.content())==null?void 0:e.getFormattedText())??((n=this.expr())==null?void 0:n.getFormattedText())??""};const C7=h,cl=C7.MessageContext,Ng=C7.CreationContext,Dg=C7.IfBlockContext,Pg=C7.LoopContext;class Bg{constructor(e,n){if(n&&!e)throw new Error("assignee must be defined if type is defined");this.assignee=e||"",this.type=n||""}getText(){return[this.assignee,this.type].filter(Boolean).join(":")}}cl.prototype.Assignment=function(){var i,s;const t=this.messageBody().assignment(),e=(i=t==null?void 0:t.assignee())==null?void 0:i.getFormattedText(),n=(s=t==null?void 0:t.type())==null?void 0:s.getFormattedText();if(e)return new Bg(e,n)},cl.prototype.Statements=function(){var t,e;return((e=(t=this.braceBlock())==null?void 0:t.block())==null?void 0:e.stat())||[]},Ng.prototype.Statements=function(){var t,e;return((e=(t=this.braceBlock())==null?void 0:t.block())==null?void 0:e.stat())||[]},Dg.prototype.Statements=function(){var t,e;return((e=(t=this.braceBlock())==null?void 0:t.block())==null?void 0:e.stat())||[]},Pg.prototype.Statements=function(){var t,e;return((e=(t=this.braceBlock())==null?void 0:t.block())==null?void 0:e.stat())||[]};const u5=h,zg=u5.CreationContext,Ug=u5.StatContext,Cl=u5.MessageContext,ul=u5.AsyncMessageContext,Wg=u5.RetContext;zg.prototype.From=function(){if(this.parentCtx instanceof Ug)return this.ClosestAncestorStat().Origin()},Cl.prototype.ProvidedFrom=function(){var t,e;return(e=(t=this.messageBody())==null?void 0:t.from())==null?void 0:e.getFormattedText()},Cl.prototype.From=function(){return this.ProvidedFrom()||this.ClosestAncestorStat().Origin()},ul.prototype.ProvidedFrom=function(){var t;return(t=this.from())==null?void 0:t.getFormattedText()},ul.prototype.From=function(){return this.ProvidedFrom()||this.ClosestAncestorStat().Origin()},Wg.prototype.From=function(){return this.ClosestAncestorStat().Origin()},Z.ParserRuleContext.prototype.Key=function(){return`${this.start.start}:${this.stop.stop}`};const hl=h,dl=hl.StatContext;Z.ParserRuleContext.prototype.ClosestAncestorStat=function(){let t=this;for(;!(t instanceof dl);)t=t.parentCtx;if(t instanceof dl)return t},Z.ParserRuleContext.prototype.ClosestAncestorBlock=function(){var e;const t=(e=this.ClosestAncestorStat())==null?void 0:e.parentCtx;if(t instanceof hl.BlockContext)return t;console.warn("Cannot find closest ancestor block for context:",this)},Z.ParserRuleContext.prototype.getAncestors=function(t){let e=this;const n=[];for(;e;)(!t||t(e))&&n.push(e),e=e.parentCtx;return n};function $g(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,i){return e.apply(this,arguments)};case 3:return function(n,i,s){return e.apply(this,arguments)};case 4:return function(n,i,s,r){return e.apply(this,arguments)};case 5:return function(n,i,s,r,o){return e.apply(this,arguments)};case 6:return function(n,i,s,r,o,l){return e.apply(this,arguments)};case 7:return function(n,i,s,r,o,l,L){return e.apply(this,arguments)};case 8:return function(n,i,s,r,o,l,L,a){return e.apply(this,arguments)};case 9:return function(n,i,s,r,o,l,L,a,c){return e.apply(this,arguments)};case 10:return function(n,i,s,r,o,l,L,a,c,C){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var fl=$g;function Hg(t,e){return function(){return e.call(this,t.apply(this,arguments))}}var Vg=Hg;function Gg(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}var Nt=Gg,jg=Nt;function qg(t){return function e(n){return arguments.length===0||jg(n)?e:t.apply(this,arguments)}}var u7=qg,Dt=u7,h5=Nt;function Kg(t){return function e(n,i){switch(arguments.length){case 0:return e;case 1:return h5(n)?e:Dt(function(s){return t(n,s)});default:return h5(n)&&h5(i)?e:h5(n)?Dt(function(s){return t(s,i)}):h5(i)?Dt(function(s){return t(n,s)}):t(n,i)}}}var gl=Kg,h7=u7,f0=gl,T1=Nt;function Yg(t){return function e(n,i,s){switch(arguments.length){case 0:return e;case 1:return T1(n)?e:f0(function(r,o){return t(n,r,o)});case 2:return T1(n)&&T1(i)?e:T1(n)?f0(function(r,o){return t(r,i,o)}):T1(i)?f0(function(r,o){return t(n,r,o)}):h7(function(r){return t(n,i,r)});default:return T1(n)&&T1(i)&&T1(s)?e:T1(n)&&T1(i)?f0(function(r,o){return t(r,o,s)}):T1(n)&&T1(s)?f0(function(r,o){return t(r,i,o)}):T1(i)&&T1(s)?f0(function(r,o){return t(n,r,o)}):T1(n)?h7(function(r){return t(r,i,s)}):T1(i)?h7(function(r){return t(n,r,s)}):T1(s)?h7(function(r){return t(n,i,r)}):t(n,i,s)}}}var Pt=Yg,pl=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Qg(t){return Object.prototype.toString.call(t)==="[object String]"}var Xg=Qg,Jg=u7,ep=pl,tp=Xg,np=Jg(function(e){return ep(e)?!0:!e||typeof e!="object"||tp(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),ip=np,sp=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function rp(t){return new sp(t)}var op=rp,lp=fl,Lp=gl,ap=Lp(function(e,n){return lp(e.length,function(){return e.apply(n,arguments)})}),cp=ap,Cp=ip,up=op,hp=cp;function dp(t,e,n){for(var i=0,s=n.length;i<s;){if(e=t["@@transducer/step"](e,n[i]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}i+=1}return t["@@transducer/result"](e)}function ml(t,e,n){for(var i=n.next();!i.done;){if(e=t["@@transducer/step"](e,i.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}i=n.next()}return t["@@transducer/result"](e)}function wl(t,e,n,i){return t["@@transducer/result"](n[i](hp(t["@@transducer/step"],t),e))}var xl=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function fp(t,e,n){if(typeof t=="function"&&(t=up(t)),Cp(n))return dp(t,e,n);if(typeof n["fantasy-land/reduce"]=="function")return wl(t,e,n,"fantasy-land/reduce");if(n[xl]!=null)return ml(t,e,n[xl]());if(typeof n.next=="function")return ml(t,e,n);if(typeof n.reduce=="function")return wl(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var gp=fp,pp=Pt,mp=gp,wp=pp(mp),xp=wp,_p=pl;function vp(t,e){return function(){var n=arguments.length;if(n===0)return e();var i=arguments[n-1];return _p(i)||typeof i[t]!="function"?e.apply(this,arguments):i[t].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}var _l=vp,Mp=_l,yp=Pt,Rp=yp(Mp("slice",function(e,n,i){return Array.prototype.slice.call(i,e,n)})),Ap=Rp,kp=_l,Zp=u7,Tp=Ap,bp=Zp(kp("tail",Tp(1,1/0))),Sp=bp,Ep=fl,Ip=Vg,Fp=xp,Op=Sp;function Np(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Ep(arguments[0].length,Fp(Ip,arguments[0],Op(arguments)))}var Dp=Np;const Pp=F1(Dp);var Bp=Pt,zp=Bp(function(e,n,i){return i.replace(e,n)}),Up=zp;const g0=F1(Up),Wp=g0(/[\n\r]/g," "),$p=g0(/\s+/g," "),Hp=g0(/\s*([,;.])\s*/g,"$1"),Vp=g0(/\s*(\()\s*|\s*(\))/g,"$1$2"),Gp=g0(/\s+$/g,""),jp=g0(/^"(.*)"$/,"$1"),vl=Pp(Wp,$p,Hp,Vp,Gp,jp),Bt=(t,e)=>{let n=e;for(t[n]===`
15
+ `))}}}return e.length===0?null:e}getEdgeLabel(e){return e===0?"EOF":this.literalNames!==null||this.symbolicNames!==null?this.literalNames[e-1]||this.symbolicNames[e-1]:String.fromCharCode(e-1)}getStateString(e){const n=(e.isAcceptState?":":"")+"s"+e.stateNumber+(e.requiresFullContext?"^":"");return e.isAcceptState?e.predicates!==null?n+"=>"+V4(e.predicates):n+"=>"+e.prediction.toString():n}}class yo extends He{constructor(e){super(e,null)}getEdgeLabel(e){return"'"+String.fromCharCode(e)+"'"}}class Jf{constructor(e,n){if(n===void 0&&(n=0),this.atnStartState=e,this.decision=n,this._states=new R3,this.s0=null,this.precedenceDfa=!1,e instanceof M9&&e.isPrecedenceDecision){this.precedenceDfa=!0;const i=new k4(null,new K1);i.edges=[],i.isAcceptState=!1,i.requiresFullContext=!1,this.s0=i}}getPrecedenceStartState(e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return e<0||e>=this.s0.edges.length?null:this.s0.edges[e]||null}setPrecedenceStartState(e,n){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";e<0||(this.s0.edges[e]=n)}setPrecedenceDfa(e){if(this.precedenceDfa!==e){if(this._states=new R3,e){const n=new k4(null,new K1);n.edges=[],n.isAcceptState=!1,n.requiresFullContext=!1,this.s0=n}else this.s0=null;this.precedenceDfa=e}}sortedStates(){return this._states.values().sort(function(n,i){return n.stateNumber-i.stateNumber})}toString(e,n){return e=e||null,n=n||null,this.s0===null?"":new He(this,e,n).toString()}toLexerString(){return this.s0===null?"":new yo(this).toString()}get states(){return this._states}}const eg={DFA:Jf,DFASerializer:He,LexerDFASerializer:yo,PredPrediction:Mo};class Ro{visitTerminal(e){}visitErrorNode(e){}enterEveryRule(e){}exitEveryRule(e){}}class tg{visit(e){return Array.isArray(e)?e.map(function(n){return n.accept(this)},this):e.accept(this)}visitChildren(e){return e.children?this.visit(e.children):null}visitTerminal(e){}visitErrorNode(e){}}class Ve{walk(e,n){if(n instanceof U8||n.isErrorNode!==void 0&&n.isErrorNode())e.visitErrorNode(n);else if(n instanceof R4)e.visitTerminal(n);else{this.enterRule(e,n);for(let s=0;s<n.getChildCount();s++){const r=n.getChild(s);this.walk(e,r)}this.exitRule(e,n)}}enterRule(e,n){const i=n.getRuleContext();e.enterEveryRule(i),i.enterRule(e)}exitRule(e,n){const i=n.getRuleContext();i.exitRule(e),e.exitEveryRule(i)}}Ve.DEFAULT=new Ve;const ng={Trees:r4,RuleNode:z8,ErrorNode:U8,TerminalNode:R4,ParseTreeListener:Ro,ParseTreeVisitor:tg,ParseTreeWalker:Ve};class L5 extends G4{constructor(e){super({message:"",recognizer:e,input:e.getInputStream(),ctx:e._ctx}),this.offendingToken=e.getCurrentToken()}}class Ao extends G4{constructor(e,n,i){super({message:ig(n,i||null),recognizer:e,input:e.getInputStream(),ctx:e._ctx});const r=e._interp.atn.states[e.state].transitions[0];r instanceof wo?(this.ruleIndex=r.ruleIndex,this.predicateIndex=r.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=n,this.offendingToken=e.getCurrentToken()}}function ig(t,e){return e!==null?e:"failed predicate: {"+t+"}?"}class sg extends j8{constructor(e){super(),e=e||!0,this.exactOnly=e}reportAmbiguity(e,n,i,s,r,o,l){if(this.exactOnly&&!r)return;const L="reportAmbiguity d="+this.getDecisionDescription(e,n)+": ambigAlts="+this.getConflictingAlts(o,l)+", input='"+e.getTokenStream().getText(new K2(i,s))+"'";e.notifyErrorListeners(L)}reportAttemptingFullContext(e,n,i,s,r,o){const l="reportAttemptingFullContext d="+this.getDecisionDescription(e,n)+", input='"+e.getTokenStream().getText(new K2(i,s))+"'";e.notifyErrorListeners(l)}reportContextSensitivity(e,n,i,s,r,o){const l="reportContextSensitivity d="+this.getDecisionDescription(e,n)+", input='"+e.getTokenStream().getText(new K2(i,s))+"'";e.notifyErrorListeners(l)}getDecisionDescription(e,n){const i=n.decision,s=n.atnStartState.ruleIndex,r=e.ruleNames;if(s<0||s>=r.length)return""+i;const o=r[s]||null;return o===null||o.length===0?""+i:`${i} (${o})`}getConflictingAlts(e,n){if(e!==null)return e;const i=new l4;for(let s=0;s<n.items.length;s++)i.add(n.items[s].alt);return`{${i.values().join(", ")}}`}}class Ge extends Error{constructor(){super(),Error.captureStackTrace(this,Ge)}}class rg{reset(e){}recoverInline(e){}recover(e,n){}sync(e){}inErrorRecoveryMode(e){}reportError(e){}}class je extends rg{constructor(){super(),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this.nextTokensContext=null,this.nextTokenState=0}reset(e){this.endErrorCondition(e)}beginErrorCondition(e){this.errorRecoveryMode=!0}inErrorRecoveryMode(e){return this.errorRecoveryMode}endErrorCondition(e){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}reportMatch(e){this.endErrorCondition(e)}reportError(e,n){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),n instanceof $e?this.reportNoViableAlternative(e,n):n instanceof L5?this.reportInputMismatch(e,n):n instanceof Ao?this.reportFailedPredicate(e,n):(console.log("unknown recognition error type: "+n.constructor.name),console.log(n.stack),e.notifyErrorListeners(n.getOffendingToken(),n.getMessage(),n)))}recover(e,n){this.lastErrorIndex===e.getInputStream().index&&this.lastErrorStates!==null&&this.lastErrorStates.indexOf(e.state)>=0&&e.consume(),this.lastErrorIndex=e._input.index,this.lastErrorStates===null&&(this.lastErrorStates=[]),this.lastErrorStates.push(e.state);const i=this.getErrorRecoverySet(e);this.consumeUntil(e,i)}sync(e){if(this.inErrorRecoveryMode(e))return;const n=e._interp.atn.states[e.state],i=e.getTokenStream().LA(1),s=e.atn.nextTokens(n);if(s.contains(i)){this.nextTokensContext=null,this.nextTokenState=f2.INVALID_STATE_NUMBER;return}else if(s.contains(K.EPSILON)){this.nextTokensContext===null&&(this.nextTokensContext=e._ctx,this.nextTokensState=e._stateNumber);return}switch(n.stateType){case f2.BLOCK_START:case f2.STAR_BLOCK_START:case f2.PLUS_BLOCK_START:case f2.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(e)!==null)return;throw new L5(e);case f2.PLUS_LOOP_BACK:case f2.STAR_LOOP_BACK:{this.reportUnwantedToken(e);const r=new F3;r.addSet(e.getExpectedTokens());const o=r.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,o)}break}}reportNoViableAlternative(e,n){const i=e.getTokenStream();let s;i!==null?n.startToken.type===K.EOF?s="<EOF>":s=i.getText(new K2(n.startToken.tokenIndex,n.offendingToken.tokenIndex)):s="<unknown input>";const r="no viable alternative at input "+this.escapeWSAndQuote(s);e.notifyErrorListeners(r,n.offendingToken,n)}reportInputMismatch(e,n){const i="mismatched input "+this.getTokenErrorDisplay(n.offendingToken)+" expecting "+n.getExpectedTokens().toString(e.literalNames,e.symbolicNames);e.notifyErrorListeners(i,n.offendingToken,n)}reportFailedPredicate(e,n){const s="rule "+e.ruleNames[e._ctx.ruleIndex]+" "+n.message;e.notifyErrorListeners(s,n.offendingToken,n)}reportUnwantedToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const n=e.getCurrentToken(),i=this.getTokenErrorDisplay(n),s=this.getExpectedTokens(e),r="extraneous input "+i+" expecting "+s.toString(e.literalNames,e.symbolicNames);e.notifyErrorListeners(r,n,null)}reportMissingToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const n=e.getCurrentToken(),s="missing "+this.getExpectedTokens(e).toString(e.literalNames,e.symbolicNames)+" at "+this.getTokenErrorDisplay(n);e.notifyErrorListeners(s,n,null)}recoverInline(e){const n=this.singleTokenDeletion(e);if(n!==null)return e.consume(),n;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw new L5(e)}singleTokenInsertion(e){const n=e.getTokenStream().LA(1),i=e._interp.atn,r=i.states[e.state].transitions[0].target;return i.nextTokens(r,e._ctx).contains(n)?(this.reportMissingToken(e),!0):!1}singleTokenDeletion(e){const n=e.getTokenStream().LA(2);if(this.getExpectedTokens(e).contains(n)){this.reportUnwantedToken(e),e.consume();const s=e.getCurrentToken();return this.reportMatch(e),s}else return null}getMissingSymbol(e){const n=e.getCurrentToken(),s=this.getExpectedTokens(e).first();let r;s===K.EOF?r="<missing EOF>":r="<missing "+e.literalNames[s]+">";let o=n;const l=e.getTokenStream().LT(-1);return o.type===K.EOF&&l!==null&&(o=l),e.getTokenFactory().create(o.source,s,r,K.DEFAULT_CHANNEL,-1,-1,o.line,o.column)}getExpectedTokens(e){return e.getExpectedTokens()}getTokenErrorDisplay(e){if(e===null)return"<no token>";let n=e.text;return n===null&&(e.type===K.EOF?n="<EOF>":n="<"+e.type+">"),this.escapeWSAndQuote(n)}escapeWSAndQuote(e){return e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/\t/g,"\\t"),"'"+e+"'"}getErrorRecoverySet(e){const n=e._interp.atn;let i=e._ctx;const s=new F3;for(;i!==null&&i.invokingState>=0;){const o=n.states[i.invokingState].transitions[0],l=n.nextTokens(o.followState);s.addSet(l),i=i.parentCtx}return s.removeOne(K.EPSILON),s}consumeUntil(e,n){let i=e.getTokenStream().LA(1);for(;i!==K.EOF&&!n.contains(i);)e.consume(),i=e.getTokenStream().LA(1)}}class og extends je{constructor(){super()}recover(e,n){let i=e._ctx;for(;i!==null;)i.exception=n,i=i.parentCtx;throw new Ge(n)}recoverInline(e){this.recover(e,new L5(e))}sync(e){}}const lg={RecognitionException:G4,NoViableAltException:$e,LexerNoViableAltException:We,InputMismatchException:L5,FailedPredicateException:Ao,DiagnosticErrorListener:sg,BailErrorStrategy:og,DefaultErrorStrategy:je,ErrorListener:j8};class R9{constructor(e,n){if(this.name="<empty>",this.strdata=e,this.decodeToUnicodeCodePoints=n||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(let i=0;i<this.strdata.length;){const s=this.strdata.codePointAt(i);this.data.push(s),i+=s<=65535?1:2}else{this.data=new Array(this.strdata.length);for(let i=0;i<this.strdata.length;i++){const s=this.strdata.charCodeAt(i);this.data[i]=s}}this._size=this.data.length}reset(){this._index=0}consume(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}LA(e){if(e===0)return 0;e<0&&(e+=1);const n=this._index+e-1;return n<0||n>=this._size?K.EOF:this.data[n]}LT(e){return this.LA(e)}mark(){return-1}release(e){}seek(e){if(e<=this._index){this._index=e;return}this._index=Math.min(e,this._size)}getText(e,n){if(n>=this._size&&(n=this._size-1),e>=this._size)return"";if(this.decodeToUnicodeCodePoints){let i="";for(let s=e;s<=n;s++)i+=String.fromCodePoint(this.data[s]);return i}else return this.strdata.slice(e,n+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}const qe={},Lg={fromString:function(t){return new R9(t,!0)},fromBlob:function(t,e,n,i){const s=new window.FileReader;s.onload=function(r){const o=new R9(r.target.result,!0);n(o)},s.onerror=i,s.readAsText(t,e)},fromBuffer:function(t,e){return new R9(t.toString(e),!0)},fromPath:function(t,e,n){qe.readFile(t,e,function(i,s){let r=null;s!==null&&(r=new R9(s,!0)),n(i,r)})},fromPathSync:function(t,e){const n=qe.readFileSync(t,e);return new R9(n,!0)}};class ag extends R9{constructor(e,n){const i=qe.readFileSync(e,"utf8");super(i,n),this.fileName=e}}class cg{}class Cg extends cg{constructor(e){super(),this.tokenSource=e,this.tokens=[],this.index=-1,this.fetchedEOF=!1}mark(){return 0}release(e){}reset(){this.seek(0)}seek(e){this.lazyInit(),this.index=this.adjustSeekIndex(e)}get(e){return this.lazyInit(),this.tokens[e]}consume(){let e=!1;if(this.index>=0?this.fetchedEOF?e=this.index<this.tokens.length-1:e=this.index<this.tokens.length:e=!1,!e&&this.LA(1)===K.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}sync(e){const n=e-this.tokens.length+1;return n>0?this.fetch(n)>=n:!0}fetch(e){if(this.fetchedEOF)return 0;for(let n=0;n<e;n++){const i=this.tokenSource.nextToken();if(i.tokenIndex=this.tokens.length,this.tokens.push(i),i.type===K.EOF)return this.fetchedEOF=!0,n+1}return e}getTokens(e,n,i){if(i===void 0&&(i=null),e<0||n<0)return null;this.lazyInit();const s=[];n>=this.tokens.length&&(n=this.tokens.length-1);for(let r=e;r<n;r++){const o=this.tokens[r];if(o.type===K.EOF)break;(i===null||i.contains(o.type))&&s.push(o)}return s}LA(e){return this.LT(e).type}LB(e){return this.index-e<0?null:this.tokens[this.index-e]}LT(e){if(this.lazyInit(),e===0)return null;if(e<0)return this.LB(-e);const n=this.index+e-1;return this.sync(n),n>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[n]}adjustSeekIndex(e){return e}lazyInit(){this.index===-1&&this.setup()}setup(){this.sync(0),this.index=this.adjustSeekIndex(0)}setTokenSource(e){this.tokenSource=e,this.tokens=[],this.index=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,n){if(this.sync(e),e>=this.tokens.length)return-1;let i=this.tokens[e];for(;i.channel!==this.channel;){if(i.type===K.EOF)return-1;e+=1,this.sync(e),i=this.tokens[e]}return e}previousTokenOnChannel(e,n){for(;e>=0&&this.tokens[e].channel!==n;)e-=1;return e}getHiddenTokensToRight(e,n){if(n===void 0&&(n=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw""+e+" not in 0.."+this.tokens.length-1;const i=this.nextTokenOnChannel(e+1,q1.DEFAULT_TOKEN_CHANNEL),s=e+1,r=i===-1?this.tokens.length-1:i;return this.filterForChannel(s,r,n)}getHiddenTokensToLeft(e,n){if(n===void 0&&(n=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw""+e+" not in 0.."+this.tokens.length-1;const i=this.previousTokenOnChannel(e-1,q1.DEFAULT_TOKEN_CHANNEL);if(i===e-1)return null;const s=i+1,r=e-1;return this.filterForChannel(s,r,n)}filterForChannel(e,n,i){const s=[];for(let r=e;r<n+1;r++){const o=this.tokens[r];i===-1?o.channel!==q1.DEFAULT_TOKEN_CHANNEL&&s.push(o):o.channel===i&&s.push(o)}return s.length===0?null:s}getSourceName(){return this.tokenSource.getSourceName()}getText(e){this.lazyInit(),this.fill(),e==null&&(e=new K2(0,this.tokens.length-1));let n=e.start;n instanceof K&&(n=n.tokenIndex);let i=e.stop;if(i instanceof K&&(i=i.tokenIndex),n===null||i===null||n<0||i<0)return"";i>=this.tokens.length&&(i=this.tokens.length-1);let s="";for(let r=n;r<i+1;r++){const o=this.tokens[r];if(o.type===K.EOF)break;s=s+o.text}return s}fill(){for(this.lazyInit();this.fetch(1e3)===1e3;);}}class ug extends Cg{constructor(e,n){super(e),this.channel=n===void 0?K.DEFAULT_CHANNEL:n}adjustSeekIndex(e){return this.nextTokenOnChannel(e,this.channel)}LB(e){if(e===0||this.index-e<0)return null;let n=this.index,i=1;for(;i<=e;)n=this.previousTokenOnChannel(n-1,this.channel),i+=1;return n<0?null:this.tokens[n]}LT(e){if(this.lazyInit(),e===0)return null;if(e<0)return this.LB(-e);let n=this.index,i=1;for(;i<e;)this.sync(n+1)&&(n=this.nextTokenOnChannel(n+1,this.channel)),i+=1;return this.tokens[n]}getNumberOfOnChannelTokens(){let e=0;this.fill();for(let n=0;n<this.tokens.length;n++){const i=this.tokens[n];if(i.channel===this.channel&&(e+=1),i.type===K.EOF)break}return e}}class hg extends Ro{constructor(e){super(),this.parser=e}enterEveryRule(e){console.log("enter "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}visitTerminal(e){console.log("consume "+e.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}exitEveryRule(e){console.log("exit "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}let ko=class extends q8{constructor(e){super(),this._input=null,this._errHandler=new je,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(e)}reset(){this._input!==null&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),this._interp!==null&&this._interp.reset()}match(e){let n=this.getCurrentToken();return n.type===e?(this._errHandler.reportMatch(this),this.consume()):(n=this._errHandler.recoverInline(this),this.buildParseTrees&&n.tokenIndex===-1&&this._ctx.addErrorNode(n)),n}matchWildcard(){let e=this.getCurrentToken();return e.type>0?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&e.tokenIndex===-1&&this._ctx.addErrorNode(e)),e}getParseListeners(){return this._parseListeners||[]}addParseListener(e){if(e===null)throw"listener";this._parseListeners===null&&(this._parseListeners=[]),this._parseListeners.push(e)}removeParseListener(e){if(this._parseListeners!==null){const n=this._parseListeners.indexOf(e);n>=0&&this._parseListeners.splice(n,1),this._parseListeners.length===0&&(this._parseListeners=null)}}removeParseListeners(){this._parseListeners=null}triggerEnterRuleEvent(){if(this._parseListeners!==null){const e=this._ctx;this._parseListeners.forEach(function(n){n.enterEveryRule(e),e.enterRule(n)})}}triggerExitRuleEvent(){if(this._parseListeners!==null){const e=this._ctx;this._parseListeners.slice(0).reverse().forEach(function(n){e.exitRule(n),n.exitEveryRule(e)})}}getTokenFactory(){return this._input.tokenSource._factory}setTokenFactory(e){this._input.tokenSource._factory=e}getATNWithBypassAlts(){const e=this.getSerializedATN();if(e===null)throw"The current parser does not support an ATN with bypass alternatives.";let n=this.bypassAltsAtnCache[e];if(n===null){const i=new o5;i.generateRuleBypassTransitions=!0,n=new xo(i).deserialize(e),this.bypassAltsAtnCache[e]=n}return n}getInputStream(){return this.getTokenStream()}setInputStream(e){this.setTokenStream(e)}getTokenStream(){return this._input}setTokenStream(e){this._input=null,this.reset(),this._input=e}getCurrentToken(){return this._input.LT(1)}notifyErrorListeners(e,n,i){n=n||null,i=i||null,n===null&&(n=this.getCurrentToken()),this._syntaxErrors+=1;const s=n.line,r=n.column;this.getErrorListenerDispatch().syntaxError(this,n,s,r,e,i)}consume(){const e=this.getCurrentToken();e.type!==K.EOF&&this.getInputStream().consume();const n=this._parseListeners!==null&&this._parseListeners.length>0;if(this.buildParseTrees||n){let i;this._errHandler.inErrorRecoveryMode(this)?i=this._ctx.addErrorNode(e):i=this._ctx.addTokenNode(e),i.invokingState=this.state,n&&this._parseListeners.forEach(function(s){i instanceof U8||i.isErrorNode!==void 0&&i.isErrorNode()?s.visitErrorNode(i):i instanceof R4&&s.visitTerminal(i)})}return e}addContextToParseTree(){this._ctx.parentCtx!==null&&this._ctx.parentCtx.addChild(this._ctx)}enterRule(e,n,i){this.state=n,this._ctx=e,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}enterOuterAlt(e,n){e.setAltNumber(n),this.buildParseTrees&&this._ctx!==e&&this._ctx.parentCtx!==null&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(e)),this._ctx=e}getPrecedence(){return this._precedenceStack.length===0?-1:this._precedenceStack[this._precedenceStack.length-1]}enterRecursionRule(e,n,i,s){this.state=n,this._precedenceStack.push(s),this._ctx=e,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(e,n,i){const s=this._ctx;s.parentCtx=e,s.invokingState=n,s.stop=this._input.LT(-1),this._ctx=e,this._ctx.start=s.start,this.buildParseTrees&&this._ctx.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(e){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);const n=this._ctx,i=this.getParseListeners();if(i!==null&&i.length>0)for(;this._ctx!==e;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=e;n.parentCtx=e,this.buildParseTrees&&e!==null&&e.addChild(n)}getInvokingContext(e){let n=this._ctx;for(;n!==null;){if(n.ruleIndex===e)return n;n=n.parentCtx}return null}precpred(e,n){return n>=this._precedenceStack[this._precedenceStack.length-1]}inContext(e){return!1}isExpectedToken(e){const n=this._interp.atn;let i=this._ctx;const s=n.states[this.state];let r=n.nextTokens(s);if(r.contains(e))return!0;if(!r.contains(K.EPSILON))return!1;for(;i!==null&&i.invokingState>=0&&r.contains(K.EPSILON);){const l=n.states[i.invokingState].transitions[0];if(r=n.nextTokens(l.followState),r.contains(e))return!0;i=i.parentCtx}return!!(r.contains(K.EPSILON)&&e===K.EOF)}getExpectedTokens(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}getExpectedTokensWithinCurrentRule(){const e=this._interp.atn,n=e.states[this.state];return e.nextTokens(n)}getRuleIndex(e){const n=this.getRuleIndexMap()[e];return n!==null?n:-1}getRuleInvocationStack(e){e=e||null,e===null&&(e=this._ctx);const n=[];for(;e!==null;){const i=e.ruleIndex;i<0?n.push("n/a"):n.push(this.ruleNames[i]),e=e.parentCtx}return n}getDFAStrings(){return this._interp.decisionToDFA.toString()}dumpDFA(){let e=!1;for(let n=0;n<this._interp.decisionToDFA.length;n++){const i=this._interp.decisionToDFA[n];i.states.length>0&&(e&&console.log(),this.printer.println("Decision "+i.decision+":"),this.printer.print(i.toString(this.literalNames,this.symbolicNames)),e=!0)}}getSourceName(){return this._input.sourceName}setTrace(e){e?(this._tracer!==null&&this.removeParseListener(this._tracer),this._tracer=new hg(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}};ko.bypassAltsAtnCache={};class dg{constructor(){this.cache=new s5}add(e){if(e===D2.EMPTY)return D2.EMPTY;const n=this.cache.get(e)||null;return n!==null?n:(this.cache.set(e,e),e)}get(e){return this.cache.get(e)||null}get length(){return this.cache.length}}class Zo extends R4{constructor(e){super(),this.parentCtx=null,this.symbol=e}getChild(e){return null}getSymbol(){return this.symbol}getParent(){return this.parentCtx}getPayload(){return this.symbol}getSourceInterval(){if(this.symbol===null)return K2.INVALID_INTERVAL;const e=this.symbol.tokenIndex;return new K2(e,e)}getChildCount(){return 0}accept(e){return e.visitTerminal(this)}getText(){return this.symbol.text}toString(){return this.symbol.type===K.EOF?"<EOF>":this.symbol.text}}class To extends Zo{constructor(e){super(e)}isErrorNode(){return!0}accept(e){return e.visitErrorNode(this)}}let bo=class extends l0{constructor(e,n){e=e||null,n=n||null,super(e,n),this.ruleIndex=-1,this.children=null,this.start=null,this.stop=null,this.exception=null}copyFrom(e){this.parentCtx=e.parentCtx,this.invokingState=e.invokingState,this.children=null,this.start=e.start,this.stop=e.stop,e.children&&(this.children=[],e.children.map(function(n){n instanceof To&&(this.children.push(n),n.parentCtx=this)},this))}enterRule(e){}exitRule(e){}addChild(e){return this.children===null&&(this.children=[]),this.children.push(e),e}removeLastChild(){this.children!==null&&this.children.pop()}addTokenNode(e){const n=new Zo(e);return this.addChild(n),n.parentCtx=this,n}addErrorNode(e){const n=new To(e);return this.addChild(n),n.parentCtx=this,n}getChild(e,n){if(n=n||null,this.children===null||e<0||e>=this.children.length)return null;if(n===null)return this.children[e];for(let i=0;i<this.children.length;i++){const s=this.children[i];if(s instanceof n){if(e===0)return s;e-=1}}return null}getToken(e,n){if(this.children===null||n<0||n>=this.children.length)return null;for(let i=0;i<this.children.length;i++){const s=this.children[i];if(s instanceof R4&&s.symbol.type===e){if(n===0)return s;n-=1}}return null}getTokens(e){if(this.children===null)return[];{const n=[];for(let i=0;i<this.children.length;i++){const s=this.children[i];s instanceof R4&&s.symbol.type===e&&n.push(s)}return n}}getTypedRuleContext(e,n){return this.getChild(n,e)}getTypedRuleContexts(e){if(this.children===null)return[];{const n=[];for(let i=0;i<this.children.length;i++){const s=this.children[i];s instanceof e&&n.push(s)}return n}}getChildCount(){return this.children===null?0:this.children.length}getSourceInterval(){return this.start===null||this.stop===null?K2.INVALID_INTERVAL:new K2(this.start.tokenIndex,this.stop.tokenIndex)}};l0.EMPTY=new bo;const Z={atn:Xf,dfa:eg,tree:ng,error:lg,Token:K,CommonToken:y9,CharStreams:Lg,InputStream:R9,FileStream:ag,CommonTokenStream:ug,Lexer:q1,Parser:ko,PredictionContextCache:dg,ParserRuleContext:bo,Interval:K2,IntervalSet:F3,LL1Analyzer:L0,Utils:{arrayToString:V4}},fg=[4,0,70,570,6,-1,6,-1,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,8,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,11,1,11,4,11,215,8,11,11,11,12,11,216,1,12,1,12,1,12,1,13,1,13,1,13,1,14,1,14,1,14,1,15,1,15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,18,1,19,1,19,1,19,1,20,1,20,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,3,36,287,8,36,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,3,39,323,8,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,3,46,371,8,46,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,3,53,417,8,53,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,3,54,445,8,54,1,55,1,55,5,55,449,8,55,10,55,12,55,452,9,55,1,56,1,56,1,57,1,57,5,57,458,8,57,10,57,12,57,461,9,57,1,58,4,58,464,8,58,11,58,12,58,465,1,59,1,59,1,60,4,60,471,8,60,11,60,12,60,472,1,61,4,61,476,8,61,11,61,12,61,477,1,61,1,61,5,61,482,8,61,10,61,12,61,485,9,61,1,61,1,61,4,61,489,8,61,11,61,12,61,490,3,61,493,8,61,1,62,1,62,1,62,3,62,498,8,62,1,63,1,63,3,63,502,8,63,1,63,1,63,1,64,1,64,1,64,1,64,5,64,510,8,64,10,64,12,64,513,9,64,1,64,3,64,516,8,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,5,66,526,8,66,10,66,12,66,529,9,66,1,66,1,66,1,66,1,66,1,67,1,67,1,68,1,68,5,68,539,8,68,10,68,12,68,542,9,68,1,68,1,68,1,68,1,68,5,68,548,8,68,10,68,12,68,551,9,68,1,69,4,69,554,8,69,11,69,12,69,555,1,70,1,70,1,70,1,70,1,71,4,71,563,8,71,11,71,12,71,564,1,72,1,72,1,72,1,72,1,527,0,73,3,1,5,2,7,3,9,4,11,5,13,6,15,7,17,8,19,9,21,10,23,0,25,11,27,12,29,13,31,14,33,15,35,16,37,17,39,18,41,19,43,20,45,21,47,22,49,23,51,24,53,25,55,26,57,27,59,28,61,29,63,30,65,31,67,32,69,33,71,34,73,35,75,36,77,37,79,38,81,39,83,40,85,41,87,42,89,43,91,44,93,45,95,46,97,47,99,48,101,49,103,50,105,51,107,52,109,53,111,54,113,55,115,56,117,57,119,0,121,0,123,58,125,59,127,60,129,61,131,62,133,63,135,64,137,65,139,66,141,67,143,68,145,69,147,70,3,0,1,2,8,2,0,9,9,32,32,3,0,48,57,65,70,97,102,4,0,48,57,65,90,95,95,97,122,3,0,65,90,95,95,97,122,2,0,65,90,97,122,1,0,48,57,3,0,10,10,13,13,34,34,2,0,10,10,13,13,593,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,1,141,1,0,0,0,1,143,1,0,0,0,2,145,1,0,0,0,2,147,1,0,0,0,3,149,1,0,0,0,5,153,1,0,0,0,7,161,1,0,0,0,9,172,1,0,0,0,11,181,1,0,0,0,13,189,1,0,0,0,15,197,1,0,0,0,17,201,1,0,0,0,19,204,1,0,0,0,21,207,1,0,0,0,23,210,1,0,0,0,25,212,1,0,0,0,27,218,1,0,0,0,29,221,1,0,0,0,31,224,1,0,0,0,33,227,1,0,0,0,35,230,1,0,0,0,37,232,1,0,0,0,39,234,1,0,0,0,41,237,1,0,0,0,43,240,1,0,0,0,45,242,1,0,0,0,47,244,1,0,0,0,49,246,1,0,0,0,51,248,1,0,0,0,53,250,1,0,0,0,55,252,1,0,0,0,57,254,1,0,0,0,59,256,1,0,0,0,61,258,1,0,0,0,63,260,1,0,0,0,65,262,1,0,0,0,67,264,1,0,0,0,69,266,1,0,0,0,71,268,1,0,0,0,73,273,1,0,0,0,75,286,1,0,0,0,77,288,1,0,0,0,79,291,1,0,0,0,81,322,1,0,0,0,83,324,1,0,0,0,85,331,1,0,0,0,87,335,1,0,0,0,89,339,1,0,0,0,91,345,1,0,0,0,93,349,1,0,0,0,95,370,1,0,0,0,97,372,1,0,0,0,99,376,1,0,0,0,101,379,1,0,0,0,103,383,1,0,0,0,105,389,1,0,0,0,107,397,1,0,0,0,109,416,1,0,0,0,111,444,1,0,0,0,113,446,1,0,0,0,115,453,1,0,0,0,117,455,1,0,0,0,119,463,1,0,0,0,121,467,1,0,0,0,123,470,1,0,0,0,125,492,1,0,0,0,127,494,1,0,0,0,129,501,1,0,0,0,131,505,1,0,0,0,133,517,1,0,0,0,135,521,1,0,0,0,137,534,1,0,0,0,139,536,1,0,0,0,141,553,1,0,0,0,143,557,1,0,0,0,145,562,1,0,0,0,147,566,1,0,0,0,149,150,7,0,0,0,150,151,1,0,0,0,151,152,6,0,0,0,152,4,1,0,0,0,153,154,5,99,0,0,154,155,5,111,0,0,155,156,5,110,0,0,156,157,5,115,0,0,157,158,5,116,0,0,158,159,1,0,0,0,159,160,6,1,1,0,160,6,1,0,0,0,161,162,5,114,0,0,162,163,5,101,0,0,163,164,5,97,0,0,164,165,5,100,0,0,165,166,5,111,0,0,166,167,5,110,0,0,167,168,5,108,0,0,168,169,5,121,0,0,169,170,1,0,0,0,170,171,6,2,1,0,171,8,1,0,0,0,172,173,5,115,0,0,173,174,5,116,0,0,174,175,5,97,0,0,175,176,5,116,0,0,176,177,5,105,0,0,177,178,5,99,0,0,178,179,1,0,0,0,179,180,6,3,1,0,180,10,1,0,0,0,181,182,5,97,0,0,182,183,5,119,0,0,183,184,5,97,0,0,184,185,5,105,0,0,185,186,5,116,0,0,186,187,1,0,0,0,187,188,6,4,1,0,188,12,1,0,0,0,189,190,5,116,0,0,190,191,5,105,0,0,191,192,5,116,0,0,192,193,5,108,0,0,193,194,5,101,0,0,194,195,1,0,0,0,195,196,6,5,2,0,196,14,1,0,0,0,197,198,5,58,0,0,198,199,1,0,0,0,199,200,6,6,3,0,200,16,1,0,0,0,201,202,5,60,0,0,202,203,5,60,0,0,203,18,1,0,0,0,204,205,5,62,0,0,205,206,5,62,0,0,206,20,1,0,0,0,207,208,5,45,0,0,208,209,5,62,0,0,209,22,1,0,0,0,210,211,7,1,0,0,211,24,1,0,0,0,212,214,5,35,0,0,213,215,3,23,10,0,214,213,1,0,0,0,215,216,1,0,0,0,216,214,1,0,0,0,216,217,1,0,0,0,217,26,1,0,0,0,218,219,5,124,0,0,219,220,5,124,0,0,220,28,1,0,0,0,221,222,5,38,0,0,222,223,5,38,0,0,223,30,1,0,0,0,224,225,5,61,0,0,225,226,5,61,0,0,226,32,1,0,0,0,227,228,5,33,0,0,228,229,5,61,0,0,229,34,1,0,0,0,230,231,5,62,0,0,231,36,1,0,0,0,232,233,5,60,0,0,233,38,1,0,0,0,234,235,5,62,0,0,235,236,5,61,0,0,236,40,1,0,0,0,237,238,5,60,0,0,238,239,5,61,0,0,239,42,1,0,0,0,240,241,5,43,0,0,241,44,1,0,0,0,242,243,5,45,0,0,243,46,1,0,0,0,244,245,5,42,0,0,245,48,1,0,0,0,246,247,5,47,0,0,247,50,1,0,0,0,248,249,5,37,0,0,249,52,1,0,0,0,250,251,5,94,0,0,251,54,1,0,0,0,252,253,5,33,0,0,253,56,1,0,0,0,254,255,5,59,0,0,255,58,1,0,0,0,256,257,5,44,0,0,257,60,1,0,0,0,258,259,5,61,0,0,259,62,1,0,0,0,260,261,5,40,0,0,261,64,1,0,0,0,262,263,5,41,0,0,263,66,1,0,0,0,264,265,5,123,0,0,265,68,1,0,0,0,266,267,5,125,0,0,267,70,1,0,0,0,268,269,5,116,0,0,269,270,5,114,0,0,270,271,5,117,0,0,271,272,5,101,0,0,272,72,1,0,0,0,273,274,5,102,0,0,274,275,5,97,0,0,275,276,5,108,0,0,276,277,5,115,0,0,277,278,5,101,0,0,278,74,1,0,0,0,279,280,5,110,0,0,280,281,5,105,0,0,281,287,5,108,0,0,282,283,5,110,0,0,283,284,5,117,0,0,284,285,5,108,0,0,285,287,5,108,0,0,286,279,1,0,0,0,286,282,1,0,0,0,287,76,1,0,0,0,288,289,5,105,0,0,289,290,5,102,0,0,290,78,1,0,0,0,291,292,5,101,0,0,292,293,5,108,0,0,293,294,5,115,0,0,294,295,5,101,0,0,295,80,1,0,0,0,296,297,5,119,0,0,297,298,5,104,0,0,298,299,5,105,0,0,299,300,5,108,0,0,300,323,5,101,0,0,301,302,5,102,0,0,302,303,5,111,0,0,303,323,5,114,0,0,304,305,5,102,0,0,305,306,5,111,0,0,306,307,5,114,0,0,307,308,5,101,0,0,308,309,5,97,0,0,309,310,5,99,0,0,310,323,5,104,0,0,311,312,5,102,0,0,312,313,5,111,0,0,313,314,5,114,0,0,314,315,5,69,0,0,315,316,5,97,0,0,316,317,5,99,0,0,317,323,5,104,0,0,318,319,5,108,0,0,319,320,5,111,0,0,320,321,5,111,0,0,321,323,5,112,0,0,322,296,1,0,0,0,322,301,1,0,0,0,322,304,1,0,0,0,322,311,1,0,0,0,322,318,1,0,0,0,323,82,1,0,0,0,324,325,5,114,0,0,325,326,5,101,0,0,326,327,5,116,0,0,327,328,5,117,0,0,328,329,5,114,0,0,329,330,5,110,0,0,330,84,1,0,0,0,331,332,5,110,0,0,332,333,5,101,0,0,333,334,5,119,0,0,334,86,1,0,0,0,335,336,5,112,0,0,336,337,5,97,0,0,337,338,5,114,0,0,338,88,1,0,0,0,339,340,5,103,0,0,340,341,5,114,0,0,341,342,5,111,0,0,342,343,5,117,0,0,343,344,5,112,0,0,344,90,1,0,0,0,345,346,5,111,0,0,346,347,5,112,0,0,347,348,5,116,0,0,348,92,1,0,0,0,349,350,5,99,0,0,350,351,5,114,0,0,351,352,5,105,0,0,352,353,5,116,0,0,353,354,5,105,0,0,354,355,5,99,0,0,355,356,5,97,0,0,356,357,5,108,0,0,357,94,1,0,0,0,358,359,5,115,0,0,359,360,5,101,0,0,360,361,5,99,0,0,361,362,5,116,0,0,362,363,5,105,0,0,363,364,5,111,0,0,364,371,5,110,0,0,365,366,5,102,0,0,366,367,5,114,0,0,367,368,5,97,0,0,368,369,5,109,0,0,369,371,5,101,0,0,370,358,1,0,0,0,370,365,1,0,0,0,371,96,1,0,0,0,372,373,5,114,0,0,373,374,5,101,0,0,374,375,5,102,0,0,375,98,1,0,0,0,376,377,5,97,0,0,377,378,5,115,0,0,378,100,1,0,0,0,379,380,5,116,0,0,380,381,5,114,0,0,381,382,5,121,0,0,382,102,1,0,0,0,383,384,5,99,0,0,384,385,5,97,0,0,385,386,5,116,0,0,386,387,5,99,0,0,387,388,5,104,0,0,388,104,1,0,0,0,389,390,5,102,0,0,390,391,5,105,0,0,391,392,5,110,0,0,392,393,5,97,0,0,393,394,5,108,0,0,394,395,5,108,0,0,395,396,5,121,0,0,396,106,1,0,0,0,397,398,5,105,0,0,398,399,5,110,0,0,399,108,1,0,0,0,400,401,5,64,0,0,401,402,5,83,0,0,402,403,5,116,0,0,403,404,5,97,0,0,404,405,5,114,0,0,405,406,5,116,0,0,406,407,5,101,0,0,407,417,5,114,0,0,408,409,5,64,0,0,409,410,5,115,0,0,410,411,5,116,0,0,411,412,5,97,0,0,412,413,5,114,0,0,413,414,5,116,0,0,414,415,5,101,0,0,415,417,5,114,0,0,416,400,1,0,0,0,416,408,1,0,0,0,417,110,1,0,0,0,418,419,5,64,0,0,419,420,5,82,0,0,420,421,5,101,0,0,421,422,5,116,0,0,422,423,5,117,0,0,423,424,5,114,0,0,424,445,5,110,0,0,425,426,5,64,0,0,426,427,5,114,0,0,427,428,5,101,0,0,428,429,5,116,0,0,429,430,5,117,0,0,430,431,5,114,0,0,431,445,5,110,0,0,432,433,5,64,0,0,433,434,5,82,0,0,434,435,5,101,0,0,435,436,5,112,0,0,436,437,5,108,0,0,437,445,5,121,0,0,438,439,5,64,0,0,439,440,5,114,0,0,440,441,5,101,0,0,441,442,5,112,0,0,442,443,5,108,0,0,443,445,5,121,0,0,444,418,1,0,0,0,444,425,1,0,0,0,444,432,1,0,0,0,444,438,1,0,0,0,445,112,1,0,0,0,446,450,5,64,0,0,447,449,7,2,0,0,448,447,1,0,0,0,449,452,1,0,0,0,450,448,1,0,0,0,450,451,1,0,0,0,451,114,1,0,0,0,452,450,1,0,0,0,453,454,5,46,0,0,454,116,1,0,0,0,455,459,7,3,0,0,456,458,7,2,0,0,457,456,1,0,0,0,458,461,1,0,0,0,459,457,1,0,0,0,459,460,1,0,0,0,460,118,1,0,0,0,461,459,1,0,0,0,462,464,7,4,0,0,463,462,1,0,0,0,464,465,1,0,0,0,465,463,1,0,0,0,465,466,1,0,0,0,466,120,1,0,0,0,467,468,7,5,0,0,468,122,1,0,0,0,469,471,3,121,59,0,470,469,1,0,0,0,471,472,1,0,0,0,472,470,1,0,0,0,472,473,1,0,0,0,473,124,1,0,0,0,474,476,3,121,59,0,475,474,1,0,0,0,476,477,1,0,0,0,477,475,1,0,0,0,477,478,1,0,0,0,478,479,1,0,0,0,479,483,5,46,0,0,480,482,3,121,59,0,481,480,1,0,0,0,482,485,1,0,0,0,483,481,1,0,0,0,483,484,1,0,0,0,484,493,1,0,0,0,485,483,1,0,0,0,486,488,5,46,0,0,487,489,3,121,59,0,488,487,1,0,0,0,489,490,1,0,0,0,490,488,1,0,0,0,490,491,1,0,0,0,491,493,1,0,0,0,492,475,1,0,0,0,492,486,1,0,0,0,493,126,1,0,0,0,494,497,5,36,0,0,495,498,3,123,60,0,496,498,3,125,61,0,497,495,1,0,0,0,497,496,1,0,0,0,498,128,1,0,0,0,499,502,3,123,60,0,500,502,3,125,61,0,501,499,1,0,0,0,501,500,1,0,0,0,502,503,1,0,0,0,503,504,3,119,58,0,504,130,1,0,0,0,505,511,5,34,0,0,506,510,8,6,0,0,507,508,5,34,0,0,508,510,5,34,0,0,509,506,1,0,0,0,509,507,1,0,0,0,510,513,1,0,0,0,511,509,1,0,0,0,511,512,1,0,0,0,512,515,1,0,0,0,513,511,1,0,0,0,514,516,7,6,0,0,515,514,1,0,0,0,515,516,1,0,0,0,516,132,1,0,0,0,517,518,7,7,0,0,518,519,1,0,0,0,519,520,6,65,0,0,520,134,1,0,0,0,521,522,5,47,0,0,522,523,5,47,0,0,523,527,1,0,0,0,524,526,9,0,0,0,525,524,1,0,0,0,526,529,1,0,0,0,527,528,1,0,0,0,527,525,1,0,0,0,528,530,1,0,0,0,529,527,1,0,0,0,530,531,5,10,0,0,531,532,1,0,0,0,532,533,6,66,4,0,533,136,1,0,0,0,534,535,9,0,0,0,535,138,1,0,0,0,536,540,4,68,0,0,537,539,3,3,0,0,538,537,1,0,0,0,539,542,1,0,0,0,540,538,1,0,0,0,540,541,1,0,0,0,541,543,1,0,0,0,542,540,1,0,0,0,543,544,5,61,0,0,544,545,5,61,0,0,545,549,1,0,0,0,546,548,8,7,0,0,547,546,1,0,0,0,548,551,1,0,0,0,549,547,1,0,0,0,549,550,1,0,0,0,550,140,1,0,0,0,551,549,1,0,0,0,552,554,8,7,0,0,553,552,1,0,0,0,554,555,1,0,0,0,555,553,1,0,0,0,555,556,1,0,0,0,556,142,1,0,0,0,557,558,7,7,0,0,558,559,1,0,0,0,559,560,6,70,5,0,560,144,1,0,0,0,561,563,8,7,0,0,562,561,1,0,0,0,563,564,1,0,0,0,564,562,1,0,0,0,564,565,1,0,0,0,565,146,1,0,0,0,566,567,7,7,0,0,567,568,1,0,0,0,568,569,6,72,5,0,569,148,1,0,0,0,27,0,1,2,216,286,322,370,416,444,450,459,465,472,477,483,490,492,497,501,509,511,515,527,540,549,555,564,6,0,1,0,0,3,0,5,2,0,5,1,0,0,2,0,4,0,0],Ke=new Z.atn.ATNDeserializer().deserialize(fg),gg=Ke.decisionToState.map((t,e)=>new Z.dfa.DFA(t,e));class X extends Z.Lexer{constructor(e){super(e),this._interp=new Z.atn.LexerATNSimulator(this,Ke,gg,new Z.PredictionContextCache)}get atn(){return Ke}}j2(X,"grammarFileName","sequenceLexer.g4"),j2(X,"channelNames",["DEFAULT_TOKEN_CHANNEL","HIDDEN","COMMENT_CHANNEL","MODIFIER_CHANNEL"]),j2(X,"modeNames",["DEFAULT_MODE","EVENT","TITLE_MODE"]),j2(X,"literalNames",[null,null,"'const'","'readonly'","'static'","'await'","'title'","':'","'<<'","'>>'","'->'",null,"'||'","'&&'","'=='","'!='","'>'","'<'","'>='","'<='","'+'","'-'","'*'","'/'","'%'","'^'","'!'","';'","','","'='","'('","')'","'{'","'}'","'true'","'false'",null,"'if'","'else'",null,"'return'","'new'","'par'","'group'","'opt'","'critical'",null,"'ref'","'as'","'try'","'catch'","'finally'","'in'",null,null,null,"'.'"]),j2(X,"symbolicNames",[null,"WS","CONSTANT","READONLY","STATIC","AWAIT","TITLE","COL","SOPEN","SCLOSE","ARROW","COLOR","OR","AND","EQ","NEQ","GT","LT","GTEQ","LTEQ","PLUS","MINUS","MULT","DIV","MOD","POW","NOT","SCOL","COMMA","ASSIGN","OPAR","CPAR","OBRACE","CBRACE","TRUE","FALSE","NIL","IF","ELSE","WHILE","RETURN","NEW","PAR","GROUP","OPT","CRITICAL","SECTION","REF","AS","TRY","CATCH","FINALLY","IN","STARTER_LXR","ANNOTATION_RET","ANNOTATION","DOT","ID","INT","FLOAT","MONEY","NUMBER_UNIT","STRING","CR","COMMENT","OTHER","DIVIDER","EVENT_PAYLOAD_LXR","EVENT_END","TITLE_CONTENT","TITLE_END"]),j2(X,"ruleNames",["WS","CONSTANT","READONLY","STATIC","AWAIT","TITLE","COL","SOPEN","SCLOSE","ARROW","HEX","COLOR","OR","AND","EQ","NEQ","GT","LT","GTEQ","LTEQ","PLUS","MINUS","MULT","DIV","MOD","POW","NOT","SCOL","COMMA","ASSIGN","OPAR","CPAR","OBRACE","CBRACE","TRUE","FALSE","NIL","IF","ELSE","WHILE","RETURN","NEW","PAR","GROUP","OPT","CRITICAL","SECTION","REF","AS","TRY","CATCH","FINALLY","IN","STARTER_LXR","ANNOTATION_RET","ANNOTATION","DOT","ID","UNIT","DIGIT","INT","FLOAT","MONEY","NUMBER_UNIT","STRING","CR","COMMENT","OTHER","DIVIDER","EVENT_PAYLOAD_LXR","EVENT_END","TITLE_CONTENT","TITLE_END"]),X.EOF=Z.Token.EOF,X.WS=1,X.CONSTANT=2,X.READONLY=3,X.STATIC=4,X.AWAIT=5,X.TITLE=6,X.COL=7,X.SOPEN=8,X.SCLOSE=9,X.ARROW=10,X.COLOR=11,X.OR=12,X.AND=13,X.EQ=14,X.NEQ=15,X.GT=16,X.LT=17,X.GTEQ=18,X.LTEQ=19,X.PLUS=20,X.MINUS=21,X.MULT=22,X.DIV=23,X.MOD=24,X.POW=25,X.NOT=26,X.SCOL=27,X.COMMA=28,X.ASSIGN=29,X.OPAR=30,X.CPAR=31,X.OBRACE=32,X.CBRACE=33,X.TRUE=34,X.FALSE=35,X.NIL=36,X.IF=37,X.ELSE=38,X.WHILE=39,X.RETURN=40,X.NEW=41,X.PAR=42,X.GROUP=43,X.OPT=44,X.CRITICAL=45,X.SECTION=46,X.REF=47,X.AS=48,X.TRY=49,X.CATCH=50,X.FINALLY=51,X.IN=52,X.STARTER_LXR=53,X.ANNOTATION_RET=54,X.ANNOTATION=55,X.DOT=56,X.ID=57,X.INT=58,X.FLOAT=59,X.MONEY=60,X.NUMBER_UNIT=61,X.STRING=62,X.CR=63,X.COMMENT=64,X.OTHER=65,X.DIVIDER=66,X.EVENT_PAYLOAD_LXR=67,X.EVENT_END=68,X.TITLE_CONTENT=69,X.TITLE_END=70,X.COMMENT_CHANNEL=2,X.MODIFIER_CHANNEL=3,X.EVENT=1,X.TITLE_MODE=2,X.prototype.sempred=function(t,e,n){switch(e){case 68:return this.DIVIDER_sempred(t,n);default:throw"No registered predicate for:"+e}},X.prototype.DIVIDER_sempred=function(t,e){switch(e){case 0:return this.column===0;default:throw"No predicate with index:"+e}};class T extends Z.tree.ParseTreeListener{enterProg(e){}exitProg(e){}enterTitle(e){}exitTitle(e){}enterHead(e){}exitHead(e){}enterGroup(e){}exitGroup(e){}enterStarterExp(e){}exitStarterExp(e){}enterStarter(e){}exitStarter(e){}enterParticipant(e){}exitParticipant(e){}enterStereotype(e){}exitStereotype(e){}enterLabel(e){}exitLabel(e){}enterParticipantType(e){}exitParticipantType(e){}enterName(e){}exitName(e){}enterWidth(e){}exitWidth(e){}enterBlock(e){}exitBlock(e){}enterRet(e){}exitRet(e){}enterDivider(e){}exitDivider(e){}enterDividerNote(e){}exitDividerNote(e){}enterStat(e){}exitStat(e){}enterPar(e){}exitPar(e){}enterOpt(e){}exitOpt(e){}enterCritical(e){}exitCritical(e){}enterSection(e){}exitSection(e){}enterCreation(e){}exitCreation(e){}enterRef(e){}exitRef(e){}enterCreationBody(e){}exitCreationBody(e){}enterMessage(e){}exitMessage(e){}enterMessageBody(e){}exitMessageBody(e){}enterFunc(e){}exitFunc(e){}enterFrom(e){}exitFrom(e){}enterTo(e){}exitTo(e){}enterSignature(e){}exitSignature(e){}enterInvocation(e){}exitInvocation(e){}enterAssignment(e){}exitAssignment(e){}enterAsyncMessage(e){}exitAsyncMessage(e){}enterContent(e){}exitContent(e){}enterConstruct(e){}exitConstruct(e){}enterType(e){}exitType(e){}enterAssignee(e){}exitAssignee(e){}enterMethodName(e){}exitMethodName(e){}enterParameters(e){}exitParameters(e){}enterParameter(e){}exitParameter(e){}enterDeclaration(e){}exitDeclaration(e){}enterTcf(e){}exitTcf(e){}enterTryBlock(e){}exitTryBlock(e){}enterCatchBlock(e){}exitCatchBlock(e){}enterFinallyBlock(e){}exitFinallyBlock(e){}enterAlt(e){}exitAlt(e){}enterIfBlock(e){}exitIfBlock(e){}enterElseIfBlock(e){}exitElseIfBlock(e){}enterElseBlock(e){}exitElseBlock(e){}enterBraceBlock(e){}exitBraceBlock(e){}enterLoop(e){}exitLoop(e){}enterAssignmentExpr(e){}exitAssignmentExpr(e){}enterFuncExpr(e){}exitFuncExpr(e){}enterAtomExpr(e){}exitAtomExpr(e){}enterOrExpr(e){}exitOrExpr(e){}enterAdditiveExpr(e){}exitAdditiveExpr(e){}enterRelationalExpr(e){}exitRelationalExpr(e){}enterPlusExpr(e){}exitPlusExpr(e){}enterNotExpr(e){}exitNotExpr(e){}enterUnaryMinusExpr(e){}exitUnaryMinusExpr(e){}enterCreationExpr(e){}exitCreationExpr(e){}enterParenthesizedExpr(e){}exitParenthesizedExpr(e){}enterMultiplicationExpr(e){}exitMultiplicationExpr(e){}enterEqualityExpr(e){}exitEqualityExpr(e){}enterAndExpr(e){}exitAndExpr(e){}enterNumberAtom(e){}exitNumberAtom(e){}enterNumberUnitAtom(e){}exitNumberUnitAtom(e){}enterMoneyAtom(e){}exitMoneyAtom(e){}enterBooleanAtom(e){}exitBooleanAtom(e){}enterIdAtom(e){}exitIdAtom(e){}enterStringAtom(e){}exitStringAtom(e){}enterNilAtom(e){}exitNilAtom(e){}enterParExpr(e){}exitParExpr(e){}enterCondition(e){}exitCondition(e){}enterInExpr(e){}exitInExpr(e){}}const pg=[4,1,70,609,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,1,0,3,0,114,8,0,1,0,1,0,3,0,118,8,0,1,0,1,0,1,0,1,0,3,0,124,8,0,1,0,3,0,127,8,0,1,0,1,0,1,0,3,0,132,8,0,1,1,1,1,3,1,136,8,1,1,1,3,1,139,8,1,1,2,1,2,4,2,143,8,2,11,2,12,2,144,1,2,1,2,5,2,149,8,2,10,2,12,2,152,9,2,1,2,3,2,155,8,2,1,3,1,3,3,3,159,8,3,1,3,1,3,5,3,163,8,3,10,3,12,3,166,9,3,1,3,1,3,1,3,3,3,171,8,3,1,3,1,3,1,3,3,3,176,8,3,3,3,178,8,3,1,4,1,4,1,4,3,4,183,8,4,1,4,3,4,186,8,4,1,4,3,4,189,8,4,1,5,1,5,1,6,3,6,194,8,6,1,6,3,6,197,8,6,1,6,1,6,3,6,201,8,6,1,6,3,6,204,8,6,1,6,3,6,207,8,6,1,6,1,6,3,6,211,8,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,3,7,220,8,7,1,7,1,7,3,7,224,8,7,3,7,226,8,7,1,8,1,8,1,8,3,8,231,8,8,1,9,1,9,1,10,1,10,1,11,1,11,1,12,4,12,240,8,12,11,12,12,12,241,1,13,1,13,3,13,246,8,13,1,13,3,13,249,8,13,1,13,1,13,1,13,3,13,254,8,13,3,13,256,8,13,1,14,1,14,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,3,16,273,8,16,1,16,1,16,1,16,1,16,1,16,3,16,280,8,16,1,17,1,17,1,17,3,17,285,8,17,1,18,1,18,1,18,3,18,290,8,18,1,19,1,19,1,19,3,19,295,8,19,1,19,3,19,298,8,19,1,19,1,19,3,19,302,8,19,1,20,1,20,1,20,3,20,307,8,20,1,20,3,20,310,8,20,1,20,1,20,1,20,3,20,315,8,20,1,21,1,21,1,21,3,21,320,8,21,1,22,1,22,1,22,1,22,1,22,5,22,327,8,22,10,22,12,22,330,9,22,5,22,332,8,22,10,22,12,22,335,9,22,1,22,1,22,3,22,339,8,22,1,23,3,23,342,8,23,1,23,1,23,1,23,1,23,3,23,348,8,23,1,23,3,23,351,8,23,1,23,3,23,354,8,23,1,23,3,23,357,8,23,1,24,1,24,1,24,3,24,362,8,24,1,25,3,25,365,8,25,1,25,1,25,1,25,3,25,370,8,25,1,25,1,25,1,25,3,25,375,8,25,1,25,1,25,1,25,1,25,1,25,3,25,382,8,25,1,25,1,25,1,25,3,25,387,8,25,1,26,1,26,1,26,5,26,392,8,26,10,26,12,26,395,9,26,1,27,1,27,1,28,1,28,1,29,1,29,3,29,403,8,29,1,30,1,30,3,30,407,8,30,1,30,1,30,1,31,3,31,412,8,31,1,31,1,31,1,31,1,32,1,32,1,32,3,32,420,8,32,1,32,1,32,1,32,3,32,425,8,32,1,32,1,32,1,32,3,32,430,8,32,3,32,432,8,32,1,33,1,33,1,34,1,34,1,35,1,35,1,36,1,36,1,36,1,36,5,36,444,8,36,10,36,12,36,447,9,36,1,36,1,36,3,36,451,8,36,1,37,1,37,1,38,1,38,1,38,5,38,458,8,38,10,38,12,38,461,9,38,1,38,3,38,464,8,38,1,39,1,39,3,39,468,8,39,1,40,1,40,1,40,1,41,1,41,5,41,475,8,41,10,41,12,41,478,9,41,1,41,3,41,481,8,41,1,42,1,42,1,42,1,43,1,43,3,43,488,8,43,1,43,1,43,1,44,1,44,1,44,1,45,1,45,5,45,497,8,45,10,45,12,45,500,9,45,1,45,3,45,503,8,45,1,46,1,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,3,49,519,8,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,3,50,530,8,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,541,8,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,552,8,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,5,51,575,8,51,10,51,12,51,578,9,51,1,52,1,52,1,52,1,52,1,52,1,52,1,52,3,52,587,8,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,3,53,598,8,53,1,54,1,54,1,54,3,54,603,8,54,1,55,1,55,1,55,1,55,1,55,0,1,102,56,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,0,10,2,0,57,57,62,62,2,0,8,8,17,17,2,0,9,9,16,16,2,0,10,10,21,21,1,0,22,24,1,0,20,21,1,0,16,19,1,0,14,15,1,0,58,59,1,0,34,35,680,0,131,1,0,0,0,2,133,1,0,0,0,4,154,1,0,0,0,6,177,1,0,0,0,8,188,1,0,0,0,10,190,1,0,0,0,12,210,1,0,0,0,14,225,1,0,0,0,16,230,1,0,0,0,18,232,1,0,0,0,20,234,1,0,0,0,22,236,1,0,0,0,24,239,1,0,0,0,26,255,1,0,0,0,28,257,1,0,0,0,30,259,1,0,0,0,32,279,1,0,0,0,34,284,1,0,0,0,36,289,1,0,0,0,38,301,1,0,0,0,40,314,1,0,0,0,42,316,1,0,0,0,44,321,1,0,0,0,46,356,1,0,0,0,48,358,1,0,0,0,50,386,1,0,0,0,52,388,1,0,0,0,54,396,1,0,0,0,56,398,1,0,0,0,58,400,1,0,0,0,60,404,1,0,0,0,62,411,1,0,0,0,64,431,1,0,0,0,66,433,1,0,0,0,68,435,1,0,0,0,70,437,1,0,0,0,72,450,1,0,0,0,74,452,1,0,0,0,76,454,1,0,0,0,78,467,1,0,0,0,80,469,1,0,0,0,82,472,1,0,0,0,84,482,1,0,0,0,86,485,1,0,0,0,88,491,1,0,0,0,90,494,1,0,0,0,92,504,1,0,0,0,94,508,1,0,0,0,96,513,1,0,0,0,98,516,1,0,0,0,100,529,1,0,0,0,102,551,1,0,0,0,104,586,1,0,0,0,106,597,1,0,0,0,108,602,1,0,0,0,110,604,1,0,0,0,112,114,3,2,1,0,113,112,1,0,0,0,113,114,1,0,0,0,114,115,1,0,0,0,115,132,5,0,0,1,116,118,3,2,1,0,117,116,1,0,0,0,117,118,1,0,0,0,118,119,1,0,0,0,119,120,3,4,2,0,120,121,5,0,0,1,121,132,1,0,0,0,122,124,3,2,1,0,123,122,1,0,0,0,123,124,1,0,0,0,124,126,1,0,0,0,125,127,3,4,2,0,126,125,1,0,0,0,126,127,1,0,0,0,127,128,1,0,0,0,128,129,3,24,12,0,129,130,5,0,0,1,130,132,1,0,0,0,131,113,1,0,0,0,131,117,1,0,0,0,131,123,1,0,0,0,132,1,1,0,0,0,133,135,5,6,0,0,134,136,5,69,0,0,135,134,1,0,0,0,135,136,1,0,0,0,136,138,1,0,0,0,137,139,5,70,0,0,138,137,1,0,0,0,138,139,1,0,0,0,139,3,1,0,0,0,140,143,3,6,3,0,141,143,3,12,6,0,142,140,1,0,0,0,142,141,1,0,0,0,143,144,1,0,0,0,144,142,1,0,0,0,144,145,1,0,0,0,145,155,1,0,0,0,146,149,3,6,3,0,147,149,3,12,6,0,148,146,1,0,0,0,148,147,1,0,0,0,149,152,1,0,0,0,150,148,1,0,0,0,150,151,1,0,0,0,151,153,1,0,0,0,152,150,1,0,0,0,153,155,3,8,4,0,154,142,1,0,0,0,154,150,1,0,0,0,155,5,1,0,0,0,156,158,5,43,0,0,157,159,3,20,10,0,158,157,1,0,0,0,158,159,1,0,0,0,159,160,1,0,0,0,160,164,5,32,0,0,161,163,3,12,6,0,162,161,1,0,0,0,163,166,1,0,0,0,164,162,1,0,0,0,164,165,1,0,0,0,165,167,1,0,0,0,166,164,1,0,0,0,167,178,5,33,0,0,168,170,5,43,0,0,169,171,3,20,10,0,170,169,1,0,0,0,170,171,1,0,0,0,171,172,1,0,0,0,172,178,5,32,0,0,173,175,5,43,0,0,174,176,3,20,10,0,175,174,1,0,0,0,175,176,1,0,0,0,176,178,1,0,0,0,177,156,1,0,0,0,177,168,1,0,0,0,177,173,1,0,0,0,178,7,1,0,0,0,179,185,5,53,0,0,180,182,5,30,0,0,181,183,3,10,5,0,182,181,1,0,0,0,182,183,1,0,0,0,183,184,1,0,0,0,184,186,5,31,0,0,185,180,1,0,0,0,185,186,1,0,0,0,186,189,1,0,0,0,187,189,5,55,0,0,188,179,1,0,0,0,188,187,1,0,0,0,189,9,1,0,0,0,190,191,7,0,0,0,191,11,1,0,0,0,192,194,3,18,9,0,193,192,1,0,0,0,193,194,1,0,0,0,194,196,1,0,0,0,195,197,3,14,7,0,196,195,1,0,0,0,196,197,1,0,0,0,197,198,1,0,0,0,198,200,3,20,10,0,199,201,3,22,11,0,200,199,1,0,0,0,200,201,1,0,0,0,201,203,1,0,0,0,202,204,3,16,8,0,203,202,1,0,0,0,203,204,1,0,0,0,204,206,1,0,0,0,205,207,5,11,0,0,206,205,1,0,0,0,206,207,1,0,0,0,207,211,1,0,0,0,208,211,3,14,7,0,209,211,3,18,9,0,210,193,1,0,0,0,210,208,1,0,0,0,210,209,1,0,0,0,211,13,1,0,0,0,212,213,5,8,0,0,213,214,3,20,10,0,214,215,5,9,0,0,215,226,1,0,0,0,216,217,5,8,0,0,217,219,3,20,10,0,218,220,5,16,0,0,219,218,1,0,0,0,219,220,1,0,0,0,220,226,1,0,0,0,221,223,7,1,0,0,222,224,7,2,0,0,223,222,1,0,0,0,223,224,1,0,0,0,224,226,1,0,0,0,225,212,1,0,0,0,225,216,1,0,0,0,225,221,1,0,0,0,226,15,1,0,0,0,227,228,5,48,0,0,228,231,3,20,10,0,229,231,5,48,0,0,230,227,1,0,0,0,230,229,1,0,0,0,231,17,1,0,0,0,232,233,5,55,0,0,233,19,1,0,0,0,234,235,7,0,0,0,235,21,1,0,0,0,236,237,5,58,0,0,237,23,1,0,0,0,238,240,3,32,16,0,239,238,1,0,0,0,240,241,1,0,0,0,241,239,1,0,0,0,241,242,1,0,0,0,242,25,1,0,0,0,243,245,5,40,0,0,244,246,3,102,51,0,245,244,1,0,0,0,245,246,1,0,0,0,246,248,1,0,0,0,247,249,5,27,0,0,248,247,1,0,0,0,248,249,1,0,0,0,249,256,1,0,0,0,250,251,5,54,0,0,251,253,3,64,32,0,252,254,5,68,0,0,253,252,1,0,0,0,253,254,1,0,0,0,254,256,1,0,0,0,255,243,1,0,0,0,255,250,1,0,0,0,256,27,1,0,0,0,257,258,3,30,15,0,258,29,1,0,0,0,259,260,5,66,0,0,260,31,1,0,0,0,261,280,3,90,45,0,262,280,3,34,17,0,263,280,3,36,18,0,264,280,3,38,19,0,265,280,3,40,20,0,266,280,3,44,22,0,267,280,3,100,50,0,268,280,3,42,21,0,269,280,3,48,24,0,270,272,3,64,32,0,271,273,5,68,0,0,272,271,1,0,0,0,272,273,1,0,0,0,273,280,1,0,0,0,274,280,3,26,13,0,275,280,3,28,14,0,276,280,3,82,41,0,277,278,5,65,0,0,278,280,6,16,-1,0,279,261,1,0,0,0,279,262,1,0,0,0,279,263,1,0,0,0,279,264,1,0,0,0,279,265,1,0,0,0,279,266,1,0,0,0,279,267,1,0,0,0,279,268,1,0,0,0,279,269,1,0,0,0,279,270,1,0,0,0,279,274,1,0,0,0,279,275,1,0,0,0,279,276,1,0,0,0,279,277,1,0,0,0,280,33,1,0,0,0,281,282,5,42,0,0,282,285,3,98,49,0,283,285,5,42,0,0,284,281,1,0,0,0,284,283,1,0,0,0,285,35,1,0,0,0,286,287,5,44,0,0,287,290,3,98,49,0,288,290,5,44,0,0,289,286,1,0,0,0,289,288,1,0,0,0,290,37,1,0,0,0,291,297,5,45,0,0,292,294,5,30,0,0,293,295,3,104,52,0,294,293,1,0,0,0,294,295,1,0,0,0,295,296,1,0,0,0,296,298,5,31,0,0,297,292,1,0,0,0,297,298,1,0,0,0,298,299,1,0,0,0,299,302,3,98,49,0,300,302,5,45,0,0,301,291,1,0,0,0,301,300,1,0,0,0,302,39,1,0,0,0,303,309,5,46,0,0,304,306,5,30,0,0,305,307,3,104,52,0,306,305,1,0,0,0,306,307,1,0,0,0,307,308,1,0,0,0,308,310,5,31,0,0,309,304,1,0,0,0,309,310,1,0,0,0,310,311,1,0,0,0,311,315,3,98,49,0,312,315,3,98,49,0,313,315,5,46,0,0,314,303,1,0,0,0,314,312,1,0,0,0,314,313,1,0,0,0,315,41,1,0,0,0,316,319,3,46,23,0,317,320,5,27,0,0,318,320,3,98,49,0,319,317,1,0,0,0,319,318,1,0,0,0,319,320,1,0,0,0,320,43,1,0,0,0,321,322,5,47,0,0,322,323,5,30,0,0,323,333,3,20,10,0,324,328,5,28,0,0,325,327,3,20,10,0,326,325,1,0,0,0,327,330,1,0,0,0,328,326,1,0,0,0,328,329,1,0,0,0,329,332,1,0,0,0,330,328,1,0,0,0,331,324,1,0,0,0,332,335,1,0,0,0,333,331,1,0,0,0,333,334,1,0,0,0,334,336,1,0,0,0,335,333,1,0,0,0,336,338,5,31,0,0,337,339,5,27,0,0,338,337,1,0,0,0,338,339,1,0,0,0,339,45,1,0,0,0,340,342,3,62,31,0,341,340,1,0,0,0,341,342,1,0,0,0,342,343,1,0,0,0,343,344,5,41,0,0,344,350,3,68,34,0,345,347,5,30,0,0,346,348,3,76,38,0,347,346,1,0,0,0,347,348,1,0,0,0,348,349,1,0,0,0,349,351,5,31,0,0,350,345,1,0,0,0,350,351,1,0,0,0,351,357,1,0,0,0,352,354,3,62,31,0,353,352,1,0,0,0,353,354,1,0,0,0,354,355,1,0,0,0,355,357,5,41,0,0,356,341,1,0,0,0,356,353,1,0,0,0,357,47,1,0,0,0,358,361,3,50,25,0,359,362,5,27,0,0,360,362,3,98,49,0,361,359,1,0,0,0,361,360,1,0,0,0,361,362,1,0,0,0,362,49,1,0,0,0,363,365,3,62,31,0,364,363,1,0,0,0,364,365,1,0,0,0,365,374,1,0,0,0,366,367,3,54,27,0,367,368,5,10,0,0,368,370,1,0,0,0,369,366,1,0,0,0,369,370,1,0,0,0,370,371,1,0,0,0,371,372,3,56,28,0,372,373,5,56,0,0,373,375,1,0,0,0,374,369,1,0,0,0,374,375,1,0,0,0,375,376,1,0,0,0,376,387,3,52,26,0,377,387,3,62,31,0,378,379,3,54,27,0,379,380,5,10,0,0,380,382,1,0,0,0,381,378,1,0,0,0,381,382,1,0,0,0,382,383,1,0,0,0,383,384,3,56,28,0,384,385,5,56,0,0,385,387,1,0,0,0,386,364,1,0,0,0,386,377,1,0,0,0,386,381,1,0,0,0,387,51,1,0,0,0,388,393,3,58,29,0,389,390,5,56,0,0,390,392,3,58,29,0,391,389,1,0,0,0,392,395,1,0,0,0,393,391,1,0,0,0,393,394,1,0,0,0,394,53,1,0,0,0,395,393,1,0,0,0,396,397,7,0,0,0,397,55,1,0,0,0,398,399,7,0,0,0,399,57,1,0,0,0,400,402,3,74,37,0,401,403,3,60,30,0,402,401,1,0,0,0,402,403,1,0,0,0,403,59,1,0,0,0,404,406,5,30,0,0,405,407,3,76,38,0,406,405,1,0,0,0,406,407,1,0,0,0,407,408,1,0,0,0,408,409,5,31,0,0,409,61,1,0,0,0,410,412,3,70,35,0,411,410,1,0,0,0,411,412,1,0,0,0,412,413,1,0,0,0,413,414,3,72,36,0,414,415,5,29,0,0,415,63,1,0,0,0,416,417,3,54,27,0,417,418,5,10,0,0,418,420,1,0,0,0,419,416,1,0,0,0,419,420,1,0,0,0,420,421,1,0,0,0,421,422,3,56,28,0,422,424,5,7,0,0,423,425,3,66,33,0,424,423,1,0,0,0,424,425,1,0,0,0,425,432,1,0,0,0,426,427,3,54,27,0,427,429,7,3,0,0,428,430,3,56,28,0,429,428,1,0,0,0,429,430,1,0,0,0,430,432,1,0,0,0,431,419,1,0,0,0,431,426,1,0,0,0,432,65,1,0,0,0,433,434,5,67,0,0,434,67,1,0,0,0,435,436,7,0,0,0,436,69,1,0,0,0,437,438,7,0,0,0,438,71,1,0,0,0,439,451,3,104,52,0,440,445,5,57,0,0,441,442,5,28,0,0,442,444,5,57,0,0,443,441,1,0,0,0,444,447,1,0,0,0,445,443,1,0,0,0,445,446,1,0,0,0,446,451,1,0,0,0,447,445,1,0,0,0,448,451,5,62,0,0,449,451,5,41,0,0,450,439,1,0,0,0,450,440,1,0,0,0,450,448,1,0,0,0,450,449,1,0,0,0,451,73,1,0,0,0,452,453,7,0,0,0,453,75,1,0,0,0,454,459,3,78,39,0,455,456,5,28,0,0,456,458,3,78,39,0,457,455,1,0,0,0,458,461,1,0,0,0,459,457,1,0,0,0,459,460,1,0,0,0,460,463,1,0,0,0,461,459,1,0,0,0,462,464,5,28,0,0,463,462,1,0,0,0,463,464,1,0,0,0,464,77,1,0,0,0,465,468,3,80,40,0,466,468,3,102,51,0,467,465,1,0,0,0,467,466,1,0,0,0,468,79,1,0,0,0,469,470,3,70,35,0,470,471,5,57,0,0,471,81,1,0,0,0,472,476,3,84,42,0,473,475,3,86,43,0,474,473,1,0,0,0,475,478,1,0,0,0,476,474,1,0,0,0,476,477,1,0,0,0,477,480,1,0,0,0,478,476,1,0,0,0,479,481,3,88,44,0,480,479,1,0,0,0,480,481,1,0,0,0,481,83,1,0,0,0,482,483,5,49,0,0,483,484,3,98,49,0,484,85,1,0,0,0,485,487,5,50,0,0,486,488,3,60,30,0,487,486,1,0,0,0,487,488,1,0,0,0,488,489,1,0,0,0,489,490,3,98,49,0,490,87,1,0,0,0,491,492,5,51,0,0,492,493,3,98,49,0,493,89,1,0,0,0,494,498,3,92,46,0,495,497,3,94,47,0,496,495,1,0,0,0,497,500,1,0,0,0,498,496,1,0,0,0,498,499,1,0,0,0,499,502,1,0,0,0,500,498,1,0,0,0,501,503,3,96,48,0,502,501,1,0,0,0,502,503,1,0,0,0,503,91,1,0,0,0,504,505,5,37,0,0,505,506,3,106,53,0,506,507,3,98,49,0,507,93,1,0,0,0,508,509,5,38,0,0,509,510,5,37,0,0,510,511,3,106,53,0,511,512,3,98,49,0,512,95,1,0,0,0,513,514,5,38,0,0,514,515,3,98,49,0,515,97,1,0,0,0,516,518,5,32,0,0,517,519,3,24,12,0,518,517,1,0,0,0,518,519,1,0,0,0,519,520,1,0,0,0,520,521,5,33,0,0,521,99,1,0,0,0,522,523,5,39,0,0,523,524,3,106,53,0,524,525,3,98,49,0,525,530,1,0,0,0,526,527,5,39,0,0,527,530,3,106,53,0,528,530,5,39,0,0,529,522,1,0,0,0,529,526,1,0,0,0,529,528,1,0,0,0,530,101,1,0,0,0,531,532,6,51,-1,0,532,552,3,104,52,0,533,534,5,21,0,0,534,552,3,102,51,13,535,536,5,26,0,0,536,552,3,102,51,12,537,538,3,56,28,0,538,539,5,56,0,0,539,541,1,0,0,0,540,537,1,0,0,0,540,541,1,0,0,0,541,542,1,0,0,0,542,552,3,52,26,0,543,552,3,42,21,0,544,545,5,30,0,0,545,546,3,102,51,0,546,547,5,31,0,0,547,552,1,0,0,0,548,549,3,62,31,0,549,550,3,102,51,1,550,552,1,0,0,0,551,531,1,0,0,0,551,533,1,0,0,0,551,535,1,0,0,0,551,540,1,0,0,0,551,543,1,0,0,0,551,544,1,0,0,0,551,548,1,0,0,0,552,576,1,0,0,0,553,554,10,11,0,0,554,555,7,4,0,0,555,575,3,102,51,12,556,557,10,10,0,0,557,558,7,5,0,0,558,575,3,102,51,11,559,560,10,9,0,0,560,561,7,6,0,0,561,575,3,102,51,10,562,563,10,8,0,0,563,564,7,7,0,0,564,575,3,102,51,9,565,566,10,7,0,0,566,567,5,13,0,0,567,575,3,102,51,8,568,569,10,6,0,0,569,570,5,12,0,0,570,575,3,102,51,7,571,572,10,5,0,0,572,573,5,20,0,0,573,575,3,102,51,6,574,553,1,0,0,0,574,556,1,0,0,0,574,559,1,0,0,0,574,562,1,0,0,0,574,565,1,0,0,0,574,568,1,0,0,0,574,571,1,0,0,0,575,578,1,0,0,0,576,574,1,0,0,0,576,577,1,0,0,0,577,103,1,0,0,0,578,576,1,0,0,0,579,587,7,8,0,0,580,587,5,61,0,0,581,587,5,60,0,0,582,587,7,9,0,0,583,587,5,57,0,0,584,587,5,62,0,0,585,587,5,36,0,0,586,579,1,0,0,0,586,580,1,0,0,0,586,581,1,0,0,0,586,582,1,0,0,0,586,583,1,0,0,0,586,584,1,0,0,0,586,585,1,0,0,0,587,105,1,0,0,0,588,589,5,30,0,0,589,590,3,108,54,0,590,591,5,31,0,0,591,598,1,0,0,0,592,593,5,30,0,0,593,598,3,108,54,0,594,595,5,30,0,0,595,598,5,31,0,0,596,598,5,30,0,0,597,588,1,0,0,0,597,592,1,0,0,0,597,594,1,0,0,0,597,596,1,0,0,0,598,107,1,0,0,0,599,603,3,104,52,0,600,603,3,102,51,0,601,603,3,110,55,0,602,599,1,0,0,0,602,600,1,0,0,0,602,601,1,0,0,0,603,109,1,0,0,0,604,605,5,57,0,0,605,606,5,52,0,0,606,607,5,57,0,0,607,111,1,0,0,0,87,113,117,123,126,131,135,138,142,144,148,150,154,158,164,170,175,177,182,185,188,193,196,200,203,206,210,219,223,225,230,241,245,248,253,255,272,279,284,289,294,297,301,306,309,314,319,328,333,338,341,347,350,353,356,361,364,369,374,381,386,393,402,406,411,419,424,429,431,445,450,459,463,467,476,480,487,498,502,518,529,540,551,574,576,586,597,602],Ye=new Z.atn.ATNDeserializer().deserialize(pg),mg=Ye.decisionToState.map((t,e)=>new Z.dfa.DFA(t,e)),wg=new Z.PredictionContextCache,A=class A extends Z.Parser{constructor(e){super(e),this._interp=new Z.atn.ParserATNSimulator(this,Ye,mg,wg),this.ruleNames=A.ruleNames,this.literalNames=A.literalNames,this.symbolicNames=A.symbolicNames}get atn(){return Ye}sempred(e,n,i){switch(n){case 51:return this.expr_sempred(e,i);default:throw"No predicate with index:"+n}}expr_sempred(e,n){switch(n){case 0:return this.precpred(this._ctx,11);case 1:return this.precpred(this._ctx,10);case 2:return this.precpred(this._ctx,9);case 3:return this.precpred(this._ctx,8);case 4:return this.precpred(this._ctx,7);case 5:return this.precpred(this._ctx,6);case 6:return this.precpred(this._ctx,5);default:throw"No predicate with index:"+n}}prog(){let e=new So(this,this._ctx,this.state);this.enterRule(e,0,A.RULE_prog);var n=0;try{this.state=131,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,4,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=113,this._errHandler.sync(this),n=this._input.LA(1),n===6&&(this.state=112,this.title()),this.state=115,this.match(A.EOF);break;case 2:this.enterOuterAlt(e,2),this.state=117,this._errHandler.sync(this),n=this._input.LA(1),n===6&&(this.state=116,this.title()),this.state=119,this.head(),this.state=120,this.match(A.EOF);break;case 3:this.enterOuterAlt(e,3),this.state=123,this._errHandler.sync(this),n=this._input.LA(1),n===6&&(this.state=122,this.title()),this.state=126,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,3,this._ctx);i===1&&(this.state=125,this.head()),this.state=128,this.block(),this.state=129,this.match(A.EOF);break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}title(){let e=new Qe(this,this._ctx,this.state);this.enterRule(e,2,A.RULE_title);var n=0;try{this.enterOuterAlt(e,1),this.state=133,this.match(A.TITLE),this.state=135,this._errHandler.sync(this),n=this._input.LA(1),n===69&&(this.state=134,this.match(A.TITLE_CONTENT)),this.state=138,this._errHandler.sync(this),n=this._input.LA(1),n===70&&(this.state=137,this.match(A.TITLE_END))}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}head(){let e=new Xe(this,this._ctx,this.state);this.enterRule(e,4,A.RULE_head);try{this.state=154,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,11,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=142,this._errHandler.sync(this);var i=1;do{switch(i){case 1:switch(this.state=142,this._errHandler.sync(this),this._input.LA(1)){case 43:this.state=140,this.group();break;case 8:case 17:case 55:case 57:case 62:this.state=141,this.participant();break;default:throw new Z.error.NoViableAltException(this)}break;default:throw new Z.error.NoViableAltException(this)}this.state=144,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,8,this._ctx)}while(i!=2&&i!=Z.atn.ATN.INVALID_ALT_NUMBER);break;case 2:this.enterOuterAlt(e,2),this.state=150,this._errHandler.sync(this);for(var i=this._interp.adaptivePredict(this._input,10,this._ctx);i!=2&&i!=Z.atn.ATN.INVALID_ALT_NUMBER;){if(i===1)switch(this.state=148,this._errHandler.sync(this),this._input.LA(1)){case 43:this.state=146,this.group();break;case 8:case 17:case 55:case 57:case 62:this.state=147,this.participant();break;default:throw new Z.error.NoViableAltException(this)}this.state=152,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,10,this._ctx)}this.state=153,this.starterExp();break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}group(){let e=new K8(this,this._ctx,this.state);this.enterRule(e,6,A.RULE_group);var n=0;try{this.state=177,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,16,this._ctx);switch(i){case 1:for(this.enterOuterAlt(e,1),this.state=156,this.match(A.GROUP),this.state=158,this._errHandler.sync(this),n=this._input.LA(1),(n===57||n===62)&&(this.state=157,this.name()),this.state=160,this.match(A.OBRACE),this.state=164,this._errHandler.sync(this),n=this._input.LA(1);n===8||n===17||!(n-55&-32)&&1<<n-55&133;)this.state=161,this.participant(),this.state=166,this._errHandler.sync(this),n=this._input.LA(1);this.state=167,this.match(A.CBRACE);break;case 2:this.enterOuterAlt(e,2),this.state=168,this.match(A.GROUP),this.state=170,this._errHandler.sync(this),n=this._input.LA(1),(n===57||n===62)&&(this.state=169,this.name()),this.state=172,this.match(A.OBRACE);break;case 3:this.enterOuterAlt(e,3),this.state=173,this.match(A.GROUP),this.state=175,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,15,this._ctx);i===1&&(this.state=174,this.name());break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}starterExp(){let e=new Je(this,this._ctx,this.state);this.enterRule(e,8,A.RULE_starterExp);var n=0;try{switch(this.state=188,this._errHandler.sync(this),this._input.LA(1)){case 53:this.enterOuterAlt(e,1),this.state=179,this.match(A.STARTER_LXR),this.state=185,this._errHandler.sync(this),n=this._input.LA(1),n===30&&(this.state=180,this.match(A.OPAR),this.state=182,this._errHandler.sync(this),n=this._input.LA(1),(n===57||n===62)&&(this.state=181,this.starter()),this.state=184,this.match(A.CPAR));break;case 55:this.enterOuterAlt(e,2),this.state=187,this.match(A.ANNOTATION);break;default:throw new Z.error.NoViableAltException(this)}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}starter(){let e=new et(this,this._ctx,this.state);this.enterRule(e,10,A.RULE_starter);var n=0;try{this.enterOuterAlt(e,1),this.state=190,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}participant(){let e=new h0(this,this._ctx,this.state);this.enterRule(e,12,A.RULE_participant);var n=0;try{this.state=210,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,25,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=193,this._errHandler.sync(this),n=this._input.LA(1),n===55&&(this.state=192,this.participantType()),this.state=196,this._errHandler.sync(this),n=this._input.LA(1),(n===8||n===17)&&(this.state=195,this.stereotype()),this.state=198,this.name(),this.state=200,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,22,this._ctx);i===1&&(this.state=199,this.width()),this.state=203,this._errHandler.sync(this),n=this._input.LA(1),n===48&&(this.state=202,this.label()),this.state=206,this._errHandler.sync(this),n=this._input.LA(1),n===11&&(this.state=205,this.match(A.COLOR));break;case 2:this.enterOuterAlt(e,2),this.state=208,this.stereotype();break;case 3:this.enterOuterAlt(e,3),this.state=209,this.participantType();break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}stereotype(){let e=new tt(this,this._ctx,this.state);this.enterRule(e,14,A.RULE_stereotype);var n=0;try{this.state=225,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,28,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=212,this.match(A.SOPEN),this.state=213,this.name(),this.state=214,this.match(A.SCLOSE);break;case 2:this.enterOuterAlt(e,2),this.state=216,this.match(A.SOPEN),this.state=217,this.name(),this.state=219,this._errHandler.sync(this),n=this._input.LA(1),n===16&&(this.state=218,this.match(A.GT));break;case 3:this.enterOuterAlt(e,3),this.state=221,n=this._input.LA(1),n===8||n===17?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=223,this._errHandler.sync(this),n=this._input.LA(1),(n===9||n===16)&&(this.state=222,n=this._input.LA(1),n===9||n===16?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this));break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}label(){let e=new nt(this,this._ctx,this.state);this.enterRule(e,16,A.RULE_label);try{this.state=230,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,29,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=227,this.match(A.AS),this.state=228,this.name();break;case 2:this.enterOuterAlt(e,2),this.state=229,this.match(A.AS);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}participantType(){let e=new it(this,this._ctx,this.state);this.enterRule(e,18,A.RULE_participantType);try{this.enterOuterAlt(e,1),this.state=232,this.match(A.ANNOTATION)}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}name(){let e=new j4(this,this._ctx,this.state);this.enterRule(e,20,A.RULE_name);var n=0;try{this.enterOuterAlt(e,1),this.state=234,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}width(){let e=new st(this,this._ctx,this.state);this.enterRule(e,22,A.RULE_width);try{this.enterOuterAlt(e,1),this.state=236,this.match(A.INT)}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}block(){let e=new Y8(this,this._ctx,this.state);this.enterRule(e,24,A.RULE_block);var n=0;try{this.enterOuterAlt(e,1),this.state=239,this._errHandler.sync(this),n=this._input.LA(1);do this.state=238,this.stat(),this.state=241,this._errHandler.sync(this),n=this._input.LA(1);while(!(n-32&-32)&&1<<n-32&2118318013||n===65||n===66)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}ret(){let e=new rt(this,this._ctx,this.state);this.enterRule(e,26,A.RULE_ret);var n=0;try{switch(this.state=255,this._errHandler.sync(this),this._input.LA(1)){case 40:this.enterOuterAlt(e,1),this.state=243,this.match(A.RETURN),this.state=245,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,31,this._ctx);i===1&&(this.state=244,this.expr(0)),this.state=248,this._errHandler.sync(this),n=this._input.LA(1),n===27&&(this.state=247,this.match(A.SCOL));break;case 54:this.enterOuterAlt(e,2),this.state=250,this.match(A.ANNOTATION_RET),this.state=251,this.asyncMessage(),this.state=253,this._errHandler.sync(this),n=this._input.LA(1),n===68&&(this.state=252,this.match(A.EVENT_END));break;default:throw new Z.error.NoViableAltException(this)}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}divider(){let e=new ot(this,this._ctx,this.state);this.enterRule(e,28,A.RULE_divider);try{this.enterOuterAlt(e,1),this.state=257,this.dividerNote()}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}dividerNote(){let e=new lt(this,this._ctx,this.state);this.enterRule(e,30,A.RULE_dividerNote);try{this.enterOuterAlt(e,1),this.state=259,this.match(A.DIVIDER)}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}stat(){let e=new Q8(this,this._ctx,this.state);this.enterRule(e,32,A.RULE_stat);var n=0;try{this.state=279,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,36,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=261,this.alt();break;case 2:this.enterOuterAlt(e,2),this.state=262,this.par();break;case 3:this.enterOuterAlt(e,3),this.state=263,this.opt();break;case 4:this.enterOuterAlt(e,4),this.state=264,this.critical();break;case 5:this.enterOuterAlt(e,5),this.state=265,this.section();break;case 6:this.enterOuterAlt(e,6),this.state=266,this.ref();break;case 7:this.enterOuterAlt(e,7),this.state=267,this.loop();break;case 8:this.enterOuterAlt(e,8),this.state=268,this.creation();break;case 9:this.enterOuterAlt(e,9),this.state=269,this.message();break;case 10:this.enterOuterAlt(e,10),this.state=270,this.asyncMessage(),this.state=272,this._errHandler.sync(this),n=this._input.LA(1),n===68&&(this.state=271,this.match(A.EVENT_END));break;case 11:this.enterOuterAlt(e,11),this.state=274,this.ret();break;case 12:this.enterOuterAlt(e,12),this.state=275,this.divider();break;case 13:this.enterOuterAlt(e,13),this.state=276,this.tcf();break;case 14:this.enterOuterAlt(e,14),this.state=277,e._OTHER=this.match(A.OTHER),console.log("unknown char: "+(e._OTHER===null?null:e._OTHER.text));break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}par(){let e=new Lt(this,this._ctx,this.state);this.enterRule(e,34,A.RULE_par);try{this.state=284,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,37,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=281,this.match(A.PAR),this.state=282,this.braceBlock();break;case 2:this.enterOuterAlt(e,2),this.state=283,this.match(A.PAR);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}opt(){let e=new at(this,this._ctx,this.state);this.enterRule(e,36,A.RULE_opt);try{this.state=289,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,38,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=286,this.match(A.OPT),this.state=287,this.braceBlock();break;case 2:this.enterOuterAlt(e,2),this.state=288,this.match(A.OPT);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}critical(){let e=new ct(this,this._ctx,this.state);this.enterRule(e,38,A.RULE_critical);var n=0;try{this.state=301,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,41,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=291,this.match(A.CRITICAL),this.state=297,this._errHandler.sync(this),n=this._input.LA(1),n===30&&(this.state=292,this.match(A.OPAR),this.state=294,this._errHandler.sync(this),n=this._input.LA(1),!(n-34&-32)&&1<<n-34&528482311&&(this.state=293,this.atom()),this.state=296,this.match(A.CPAR)),this.state=299,this.braceBlock();break;case 2:this.enterOuterAlt(e,2),this.state=300,this.match(A.CRITICAL);break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}section(){let e=new Ct(this,this._ctx,this.state);this.enterRule(e,40,A.RULE_section);var n=0;try{this.state=314,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,44,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=303,this.match(A.SECTION),this.state=309,this._errHandler.sync(this),n=this._input.LA(1),n===30&&(this.state=304,this.match(A.OPAR),this.state=306,this._errHandler.sync(this),n=this._input.LA(1),!(n-34&-32)&&1<<n-34&528482311&&(this.state=305,this.atom()),this.state=308,this.match(A.CPAR)),this.state=311,this.braceBlock();break;case 2:this.enterOuterAlt(e,2),this.state=312,this.braceBlock();break;case 3:this.enterOuterAlt(e,3),this.state=313,this.match(A.SECTION);break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}creation(){let e=new X8(this,this._ctx,this.state);this.enterRule(e,42,A.RULE_creation);try{this.enterOuterAlt(e,1),this.state=316,this.creationBody(),this.state=319,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,45,this._ctx);n===1?(this.state=317,this.match(A.SCOL)):n===2&&(this.state=318,this.braceBlock())}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}ref(){let e=new ut(this,this._ctx,this.state);this.enterRule(e,44,A.RULE_ref);var n=0;try{for(this.enterOuterAlt(e,1),this.state=321,this.match(A.REF),this.state=322,this.match(A.OPAR),this.state=323,this.name(),this.state=333,this._errHandler.sync(this),n=this._input.LA(1);n===28;){for(this.state=324,this.match(A.COMMA),this.state=328,this._errHandler.sync(this),n=this._input.LA(1);n===57||n===62;)this.state=325,this.name(),this.state=330,this._errHandler.sync(this),n=this._input.LA(1);this.state=335,this._errHandler.sync(this),n=this._input.LA(1)}this.state=336,this.match(A.CPAR),this.state=338,this._errHandler.sync(this),n=this._input.LA(1),n===27&&(this.state=337,this.match(A.SCOL))}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}creationBody(){let e=new ht(this,this._ctx,this.state);this.enterRule(e,46,A.RULE_creationBody);var n=0;try{this.state=356,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,53,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=341,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,49,this._ctx);i===1&&(this.state=340,this.assignment()),this.state=343,this.match(A.NEW),this.state=344,this.construct(),this.state=350,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,51,this._ctx);i===1&&(this.state=345,this.match(A.OPAR),this.state=347,this._errHandler.sync(this),n=this._input.LA(1),(!(n&-32)&&1<<n&1142947840||!(n-34&-32)&&1<<n-34&528482439)&&(this.state=346,this.parameters()),this.state=349,this.match(A.CPAR));break;case 2:this.enterOuterAlt(e,2),this.state=353,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,52,this._ctx);i===1&&(this.state=352,this.assignment()),this.state=355,this.match(A.NEW);break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}message(){let e=new dt(this,this._ctx,this.state);this.enterRule(e,48,A.RULE_message);try{this.enterOuterAlt(e,1),this.state=358,this.messageBody(),this.state=361,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,54,this._ctx);n===1?(this.state=359,this.match(A.SCOL)):n===2&&(this.state=360,this.braceBlock())}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}messageBody(){let e=new ft(this,this._ctx,this.state);this.enterRule(e,50,A.RULE_messageBody);try{this.state=386,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,59,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=364,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,55,this._ctx);n===1&&(this.state=363,this.assignment()),this.state=374,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,57,this._ctx);if(n===1){this.state=369,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,56,this._ctx);n===1&&(this.state=366,this.from(),this.state=367,this.match(A.ARROW)),this.state=371,this.to(),this.state=372,this.match(A.DOT)}this.state=376,this.func();break;case 2:this.enterOuterAlt(e,2),this.state=377,this.assignment();break;case 3:this.enterOuterAlt(e,3),this.state=381,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,58,this._ctx);n===1&&(this.state=378,this.from(),this.state=379,this.match(A.ARROW)),this.state=383,this.to(),this.state=384,this.match(A.DOT);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}func(){let e=new J8(this,this._ctx,this.state);this.enterRule(e,52,A.RULE_func);try{this.enterOuterAlt(e,1),this.state=388,this.signature(),this.state=393,this._errHandler.sync(this);for(var n=this._interp.adaptivePredict(this._input,60,this._ctx);n!=2&&n!=Z.atn.ATN.INVALID_ALT_NUMBER;)n===1&&(this.state=389,this.match(A.DOT),this.state=390,this.signature()),this.state=395,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,60,this._ctx)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}from(){let e=new e7(this,this._ctx,this.state);this.enterRule(e,54,A.RULE_from);var n=0;try{this.enterOuterAlt(e,1),this.state=396,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}to(){let e=new a5(this,this._ctx,this.state);this.enterRule(e,56,A.RULE_to);var n=0;try{this.enterOuterAlt(e,1),this.state=398,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}signature(){let e=new t7(this,this._ctx,this.state);this.enterRule(e,58,A.RULE_signature);try{this.enterOuterAlt(e,1),this.state=400,this.methodName(),this.state=402,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,61,this._ctx);n===1&&(this.state=401,this.invocation())}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}invocation(){let e=new n7(this,this._ctx,this.state);this.enterRule(e,60,A.RULE_invocation);var n=0;try{this.enterOuterAlt(e,1),this.state=404,this.match(A.OPAR),this.state=406,this._errHandler.sync(this),n=this._input.LA(1),(!(n&-32)&&1<<n&1142947840||!(n-34&-32)&&1<<n-34&528482439)&&(this.state=405,this.parameters()),this.state=408,this.match(A.CPAR)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}assignment(){let e=new c5(this,this._ctx,this.state);this.enterRule(e,62,A.RULE_assignment);try{this.enterOuterAlt(e,1),this.state=411,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,63,this._ctx);n===1&&(this.state=410,this.type()),this.state=413,this.assignee(),this.state=414,this.match(A.ASSIGN)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}asyncMessage(){let e=new i7(this,this._ctx,this.state);this.enterRule(e,64,A.RULE_asyncMessage);var n=0;try{this.state=431,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,67,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=419,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,64,this._ctx);i===1&&(this.state=416,this.from(),this.state=417,this.match(A.ARROW)),this.state=421,this.to(),this.state=422,this.match(A.COL),this.state=424,this._errHandler.sync(this),n=this._input.LA(1),n===67&&(this.state=423,this.content());break;case 2:this.enterOuterAlt(e,2),this.state=426,this.from(),this.state=427,n=this._input.LA(1),n===10||n===21?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=429,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,66,this._ctx);i===1&&(this.state=428,this.to());break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}content(){let e=new gt(this,this._ctx,this.state);this.enterRule(e,66,A.RULE_content);try{this.enterOuterAlt(e,1),this.state=433,this.match(A.EVENT_PAYLOAD_LXR)}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}construct(){let e=new pt(this,this._ctx,this.state);this.enterRule(e,68,A.RULE_construct);var n=0;try{this.enterOuterAlt(e,1),this.state=435,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}type(){let e=new s7(this,this._ctx,this.state);this.enterRule(e,70,A.RULE_type);var n=0;try{this.enterOuterAlt(e,1),this.state=437,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}assignee(){let e=new mt(this,this._ctx,this.state);this.enterRule(e,72,A.RULE_assignee);var n=0;try{this.state=450,this._errHandler.sync(this);var i=this._interp.adaptivePredict(this._input,69,this._ctx);switch(i){case 1:this.enterOuterAlt(e,1),this.state=439,this.atom();break;case 2:for(this.enterOuterAlt(e,2),this.state=440,this.match(A.ID),this.state=445,this._errHandler.sync(this),n=this._input.LA(1);n===28;)this.state=441,this.match(A.COMMA),this.state=442,this.match(A.ID),this.state=447,this._errHandler.sync(this),n=this._input.LA(1);break;case 3:this.enterOuterAlt(e,3),this.state=448,this.match(A.STRING);break;case 4:this.enterOuterAlt(e,4),this.state=449,this.match(A.NEW);break}}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}methodName(){let e=new wt(this,this._ctx,this.state);this.enterRule(e,74,A.RULE_methodName);var n=0;try{this.enterOuterAlt(e,1),this.state=452,n=this._input.LA(1),n===57||n===62?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}parameters(){let e=new r7(this,this._ctx,this.state);this.enterRule(e,76,A.RULE_parameters);var n=0;try{this.enterOuterAlt(e,1),this.state=454,this.parameter(),this.state=459,this._errHandler.sync(this);for(var i=this._interp.adaptivePredict(this._input,70,this._ctx);i!=2&&i!=Z.atn.ATN.INVALID_ALT_NUMBER;)i===1&&(this.state=455,this.match(A.COMMA),this.state=456,this.parameter()),this.state=461,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,70,this._ctx);this.state=463,this._errHandler.sync(this),n=this._input.LA(1),n===28&&(this.state=462,this.match(A.COMMA))}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}parameter(){let e=new o7(this,this._ctx,this.state);this.enterRule(e,78,A.RULE_parameter);try{this.state=467,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,72,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=465,this.declaration();break;case 2:this.enterOuterAlt(e,2),this.state=466,this.expr(0);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}declaration(){let e=new xt(this,this._ctx,this.state);this.enterRule(e,80,A.RULE_declaration);try{this.enterOuterAlt(e,1),this.state=469,this.type(),this.state=470,this.match(A.ID)}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}tcf(){let e=new _t(this,this._ctx,this.state);this.enterRule(e,82,A.RULE_tcf);var n=0;try{for(this.enterOuterAlt(e,1),this.state=472,this.tryBlock(),this.state=476,this._errHandler.sync(this),n=this._input.LA(1);n===50;)this.state=473,this.catchBlock(),this.state=478,this._errHandler.sync(this),n=this._input.LA(1);this.state=480,this._errHandler.sync(this),n=this._input.LA(1),n===51&&(this.state=479,this.finallyBlock())}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}tryBlock(){let e=new vt(this,this._ctx,this.state);this.enterRule(e,84,A.RULE_tryBlock);try{this.enterOuterAlt(e,1),this.state=482,this.match(A.TRY),this.state=483,this.braceBlock()}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}catchBlock(){let e=new l7(this,this._ctx,this.state);this.enterRule(e,86,A.RULE_catchBlock);var n=0;try{this.enterOuterAlt(e,1),this.state=485,this.match(A.CATCH),this.state=487,this._errHandler.sync(this),n=this._input.LA(1),n===30&&(this.state=486,this.invocation()),this.state=489,this.braceBlock()}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}finallyBlock(){let e=new Mt(this,this._ctx,this.state);this.enterRule(e,88,A.RULE_finallyBlock);try{this.enterOuterAlt(e,1),this.state=491,this.match(A.FINALLY),this.state=492,this.braceBlock()}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}alt(){let e=new yt(this,this._ctx,this.state);this.enterRule(e,90,A.RULE_alt);var n=0;try{this.enterOuterAlt(e,1),this.state=494,this.ifBlock(),this.state=498,this._errHandler.sync(this);for(var i=this._interp.adaptivePredict(this._input,76,this._ctx);i!=2&&i!=Z.atn.ATN.INVALID_ALT_NUMBER;)i===1&&(this.state=495,this.elseIfBlock()),this.state=500,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,76,this._ctx);this.state=502,this._errHandler.sync(this),n=this._input.LA(1),n===38&&(this.state=501,this.elseBlock())}catch(s){if(s instanceof Z.error.RecognitionException)e.exception=s,this._errHandler.reportError(this,s),this._errHandler.recover(this,s);else throw s}finally{this.exitRule()}return e}ifBlock(){let e=new Rt(this,this._ctx,this.state);this.enterRule(e,92,A.RULE_ifBlock);try{this.enterOuterAlt(e,1),this.state=504,this.match(A.IF),this.state=505,this.parExpr(),this.state=506,this.braceBlock()}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}elseIfBlock(){let e=new L7(this,this._ctx,this.state);this.enterRule(e,94,A.RULE_elseIfBlock);try{this.enterOuterAlt(e,1),this.state=508,this.match(A.ELSE),this.state=509,this.match(A.IF),this.state=510,this.parExpr(),this.state=511,this.braceBlock()}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}elseBlock(){let e=new At(this,this._ctx,this.state);this.enterRule(e,96,A.RULE_elseBlock);try{this.enterOuterAlt(e,1),this.state=513,this.match(A.ELSE),this.state=514,this.braceBlock()}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}braceBlock(){let e=new Y1(this,this._ctx,this.state);this.enterRule(e,98,A.RULE_braceBlock);var n=0;try{this.enterOuterAlt(e,1),this.state=516,this.match(A.OBRACE),this.state=518,this._errHandler.sync(this),n=this._input.LA(1),(!(n-32&-32)&&1<<n-32&2118318013||n===65||n===66)&&(this.state=517,this.block()),this.state=520,this.match(A.CBRACE)}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}loop(){let e=new kt(this,this._ctx,this.state);this.enterRule(e,100,A.RULE_loop);try{this.state=529,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,79,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=522,this.match(A.WHILE),this.state=523,this.parExpr(),this.state=524,this.braceBlock();break;case 2:this.enterOuterAlt(e,2),this.state=526,this.match(A.WHILE),this.state=527,this.parExpr();break;case 3:this.enterOuterAlt(e,3),this.state=528,this.match(A.WHILE);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}expr(e){e===void 0&&(e=0);const n=this._ctx,i=this.state;let s=new b2(this,this._ctx,i),r=s;const o=102;this.enterRecursionRule(s,102,A.RULE_expr,e);var l=0;try{this.enterOuterAlt(s,1),this.state=551,this._errHandler.sync(this);var L=this._interp.adaptivePredict(this._input,81,this._ctx);switch(L){case 1:s=new Fo(this,s),this._ctx=s,r=s,this.state=532,this.atom();break;case 2:s=new zo(this,s),this._ctx=s,r=s,this.state=533,this.match(A.MINUS),this.state=534,this.expr(13);break;case 3:s=new Bo(this,s),this._ctx=s,r=s,this.state=535,this.match(A.NOT),this.state=536,this.expr(12);break;case 4:s=new Io(this,s),this._ctx=s,r=s,this.state=540,this._errHandler.sync(this);var L=this._interp.adaptivePredict(this._input,80,this._ctx);L===1&&(this.state=537,this.to(),this.state=538,this.match(A.DOT)),this.state=542,this.func();break;case 5:s=new Uo(this,s),this._ctx=s,r=s,this.state=543,this.creation();break;case 6:s=new Wo(this,s),this._ctx=s,r=s,this.state=544,this.match(A.OPAR),this.state=545,this.expr(0),this.state=546,this.match(A.CPAR);break;case 7:s=new Eo(this,s),this._ctx=s,r=s,this.state=548,this.assignment(),this.state=549,this.expr(1);break}this._ctx.stop=this._input.LT(-1),this.state=576,this._errHandler.sync(this);for(var a=this._interp.adaptivePredict(this._input,83,this._ctx);a!=2&&a!=Z.atn.ATN.INVALID_ALT_NUMBER;){if(a===1){this._parseListeners!==null&&this.triggerExitRuleEvent(),r=s,this.state=574,this._errHandler.sync(this);var L=this._interp.adaptivePredict(this._input,82,this._ctx);switch(L){case 1:if(s=new $o(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=553,!this.precpred(this._ctx,11))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 11)");this.state=554,s.op=this._input.LT(1),l=this._input.LA(1),!(l&-32)&&1<<l&29360128?(this._errHandler.reportMatch(this),this.consume()):s.op=this._errHandler.recoverInline(this),this.state=555,this.expr(12);break;case 2:if(s=new No(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=556,!this.precpred(this._ctx,10))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 10)");this.state=557,s.op=this._input.LT(1),l=this._input.LA(1),l===20||l===21?(this._errHandler.reportMatch(this),this.consume()):s.op=this._errHandler.recoverInline(this),this.state=558,this.expr(11);break;case 3:if(s=new Do(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=559,!this.precpred(this._ctx,9))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 9)");this.state=560,s.op=this._input.LT(1),l=this._input.LA(1),!(l&-32)&&1<<l&983040?(this._errHandler.reportMatch(this),this.consume()):s.op=this._errHandler.recoverInline(this),this.state=561,this.expr(10);break;case 4:if(s=new Ho(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=562,!this.precpred(this._ctx,8))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 8)");this.state=563,s.op=this._input.LT(1),l=this._input.LA(1),l===14||l===15?(this._errHandler.reportMatch(this),this.consume()):s.op=this._errHandler.recoverInline(this),this.state=564,this.expr(9);break;case 5:if(s=new Vo(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=565,!this.precpred(this._ctx,7))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 7)");this.state=566,this.match(A.AND),this.state=567,this.expr(8);break;case 6:if(s=new Oo(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=568,!this.precpred(this._ctx,6))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 6)");this.state=569,this.match(A.OR),this.state=570,this.expr(7);break;case 7:if(s=new Po(this,new b2(this,n,i)),this.pushNewRecursionContext(s,o,A.RULE_expr),this.state=571,!this.precpred(this._ctx,5))throw new Z.error.FailedPredicateException(this,"this.precpred(this._ctx, 5)");this.state=572,this.match(A.PLUS),this.state=573,this.expr(6);break}}this.state=578,this._errHandler.sync(this),a=this._interp.adaptivePredict(this._input,83,this._ctx)}}catch(c){if(c instanceof Z.error.RecognitionException)s.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.unrollRecursionContexts(n)}return s}atom(){let e=new d3(this,this._ctx,this.state);this.enterRule(e,104,A.RULE_atom);var n=0;try{switch(this.state=586,this._errHandler.sync(this),this._input.LA(1)){case 58:case 59:e=new Qo(this,e),this.enterOuterAlt(e,1),this.state=579,n=this._input.LA(1),n===58||n===59?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this);break;case 61:e=new Xo(this,e),this.enterOuterAlt(e,2),this.state=580,this.match(A.NUMBER_UNIT);break;case 60:e=new qo(this,e),this.enterOuterAlt(e,3),this.state=581,this.match(A.MONEY);break;case 34:case 35:e=new Go(this,e),this.enterOuterAlt(e,4),this.state=582,n=this._input.LA(1),n===34||n===35?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this);break;case 57:e=new jo(this,e),this.enterOuterAlt(e,5),this.state=583,this.match(A.ID);break;case 62:e=new Ko(this,e),this.enterOuterAlt(e,6),this.state=584,this.match(A.STRING);break;case 36:e=new Yo(this,e),this.enterOuterAlt(e,7),this.state=585,this.match(A.NIL);break;default:throw new Z.error.NoViableAltException(this)}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}parExpr(){let e=new C5(this,this._ctx,this.state);this.enterRule(e,106,A.RULE_parExpr);try{this.state=597,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,85,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=588,this.match(A.OPAR),this.state=589,this.condition(),this.state=590,this.match(A.CPAR);break;case 2:this.enterOuterAlt(e,2),this.state=592,this.match(A.OPAR),this.state=593,this.condition();break;case 3:this.enterOuterAlt(e,3),this.state=594,this.match(A.OPAR),this.state=595,this.match(A.CPAR);break;case 4:this.enterOuterAlt(e,4),this.state=596,this.match(A.OPAR);break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}condition(){let e=new Zt(this,this._ctx,this.state);this.enterRule(e,108,A.RULE_condition);try{this.state=602,this._errHandler.sync(this);var n=this._interp.adaptivePredict(this._input,86,this._ctx);switch(n){case 1:this.enterOuterAlt(e,1),this.state=599,this.atom();break;case 2:this.enterOuterAlt(e,2),this.state=600,this.expr(0);break;case 3:this.enterOuterAlt(e,3),this.state=601,this.inExpr();break}}catch(i){if(i instanceof Z.error.RecognitionException)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}inExpr(){let e=new Tt(this,this._ctx,this.state);this.enterRule(e,110,A.RULE_inExpr);try{this.enterOuterAlt(e,1),this.state=604,this.match(A.ID),this.state=605,this.match(A.IN),this.state=606,this.match(A.ID)}catch(n){if(n instanceof Z.error.RecognitionException)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}};j2(A,"grammarFileName","java-escape"),j2(A,"literalNames",[null,null,"'const'","'readonly'","'static'","'await'","'title'","':'","'<<'","'>>'","'->'",null,"'||'","'&&'","'=='","'!='","'>'","'<'","'>='","'<='","'+'","'-'","'*'","'/'","'%'","'^'","'!'","';'","','","'='","'('","')'","'{'","'}'","'true'","'false'",null,"'if'","'else'",null,"'return'","'new'","'par'","'group'","'opt'","'critical'",null,"'ref'","'as'","'try'","'catch'","'finally'","'in'",null,null,null,"'.'"]),j2(A,"symbolicNames",[null,"WS","CONSTANT","READONLY","STATIC","AWAIT","TITLE","COL","SOPEN","SCLOSE","ARROW","COLOR","OR","AND","EQ","NEQ","GT","LT","GTEQ","LTEQ","PLUS","MINUS","MULT","DIV","MOD","POW","NOT","SCOL","COMMA","ASSIGN","OPAR","CPAR","OBRACE","CBRACE","TRUE","FALSE","NIL","IF","ELSE","WHILE","RETURN","NEW","PAR","GROUP","OPT","CRITICAL","SECTION","REF","AS","TRY","CATCH","FINALLY","IN","STARTER_LXR","ANNOTATION_RET","ANNOTATION","DOT","ID","INT","FLOAT","MONEY","NUMBER_UNIT","STRING","CR","COMMENT","OTHER","DIVIDER","EVENT_PAYLOAD_LXR","EVENT_END","TITLE_CONTENT","TITLE_END"]),j2(A,"ruleNames",["prog","title","head","group","starterExp","starter","participant","stereotype","label","participantType","name","width","block","ret","divider","dividerNote","stat","par","opt","critical","section","creation","ref","creationBody","message","messageBody","func","from","to","signature","invocation","assignment","asyncMessage","content","construct","type","assignee","methodName","parameters","parameter","declaration","tcf","tryBlock","catchBlock","finallyBlock","alt","ifBlock","elseIfBlock","elseBlock","braceBlock","loop","expr","atom","parExpr","condition","inExpr"]);let h=A;h.EOF=Z.Token.EOF,h.WS=1,h.CONSTANT=2,h.READONLY=3,h.STATIC=4,h.AWAIT=5,h.TITLE=6,h.COL=7,h.SOPEN=8,h.SCLOSE=9,h.ARROW=10,h.COLOR=11,h.OR=12,h.AND=13,h.EQ=14,h.NEQ=15,h.GT=16,h.LT=17,h.GTEQ=18,h.LTEQ=19,h.PLUS=20,h.MINUS=21,h.MULT=22,h.DIV=23,h.MOD=24,h.POW=25,h.NOT=26,h.SCOL=27,h.COMMA=28,h.ASSIGN=29,h.OPAR=30,h.CPAR=31,h.OBRACE=32,h.CBRACE=33,h.TRUE=34,h.FALSE=35,h.NIL=36,h.IF=37,h.ELSE=38,h.WHILE=39,h.RETURN=40,h.NEW=41,h.PAR=42,h.GROUP=43,h.OPT=44,h.CRITICAL=45,h.SECTION=46,h.REF=47,h.AS=48,h.TRY=49,h.CATCH=50,h.FINALLY=51,h.IN=52,h.STARTER_LXR=53,h.ANNOTATION_RET=54,h.ANNOTATION=55,h.DOT=56,h.ID=57,h.INT=58,h.FLOAT=59,h.MONEY=60,h.NUMBER_UNIT=61,h.STRING=62,h.CR=63,h.COMMENT=64,h.OTHER=65,h.DIVIDER=66,h.EVENT_PAYLOAD_LXR=67,h.EVENT_END=68,h.TITLE_CONTENT=69,h.TITLE_END=70,h.RULE_prog=0,h.RULE_title=1,h.RULE_head=2,h.RULE_group=3,h.RULE_starterExp=4,h.RULE_starter=5,h.RULE_participant=6,h.RULE_stereotype=7,h.RULE_label=8,h.RULE_participantType=9,h.RULE_name=10,h.RULE_width=11,h.RULE_block=12,h.RULE_ret=13,h.RULE_divider=14,h.RULE_dividerNote=15,h.RULE_stat=16,h.RULE_par=17,h.RULE_opt=18,h.RULE_critical=19,h.RULE_section=20,h.RULE_creation=21,h.RULE_ref=22,h.RULE_creationBody=23,h.RULE_message=24,h.RULE_messageBody=25,h.RULE_func=26,h.RULE_from=27,h.RULE_to=28,h.RULE_signature=29,h.RULE_invocation=30,h.RULE_assignment=31,h.RULE_asyncMessage=32,h.RULE_content=33,h.RULE_construct=34,h.RULE_type=35,h.RULE_assignee=36,h.RULE_methodName=37,h.RULE_parameters=38,h.RULE_parameter=39,h.RULE_declaration=40,h.RULE_tcf=41,h.RULE_tryBlock=42,h.RULE_catchBlock=43,h.RULE_finallyBlock=44,h.RULE_alt=45,h.RULE_ifBlock=46,h.RULE_elseIfBlock=47,h.RULE_elseBlock=48,h.RULE_braceBlock=49,h.RULE_loop=50,h.RULE_expr=51,h.RULE_atom=52,h.RULE_parExpr=53,h.RULE_condition=54,h.RULE_inExpr=55;let So=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_prog}EOF(){return this.getToken(h.EOF,0)}title(){return this.getTypedRuleContext(Qe,0)}head(){return this.getTypedRuleContext(Xe,0)}block(){return this.getTypedRuleContext(Y8,0)}enterRule(e){e instanceof T&&e.enterProg(this)}exitRule(e){e instanceof T&&e.exitProg(this)}},Qe=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_title}TITLE(){return this.getToken(h.TITLE,0)}TITLE_CONTENT(){return this.getToken(h.TITLE_CONTENT,0)}TITLE_END(){return this.getToken(h.TITLE_END,0)}enterRule(e){e instanceof T&&e.enterTitle(this)}exitRule(e){e instanceof T&&e.exitTitle(this)}};class Xe extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"group",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(K8):this.getTypedRuleContext(K8,n)});j2(this,"participant",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(h0):this.getTypedRuleContext(h0,n)});this.parser=n,this.ruleIndex=h.RULE_head}starterExp(){return this.getTypedRuleContext(Je,0)}enterRule(n){n instanceof T&&n.enterHead(this)}exitRule(n){n instanceof T&&n.exitHead(this)}}let K8=class extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"participant",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(h0):this.getTypedRuleContext(h0,n)});this.parser=n,this.ruleIndex=h.RULE_group}GROUP(){return this.getToken(h.GROUP,0)}OBRACE(){return this.getToken(h.OBRACE,0)}CBRACE(){return this.getToken(h.CBRACE,0)}name(){return this.getTypedRuleContext(j4,0)}enterRule(n){n instanceof T&&n.enterGroup(this)}exitRule(n){n instanceof T&&n.exitGroup(this)}};class Je extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_starterExp}STARTER_LXR(){return this.getToken(h.STARTER_LXR,0)}OPAR(){return this.getToken(h.OPAR,0)}CPAR(){return this.getToken(h.CPAR,0)}starter(){return this.getTypedRuleContext(et,0)}ANNOTATION(){return this.getToken(h.ANNOTATION,0)}enterRule(e){e instanceof T&&e.enterStarterExp(this)}exitRule(e){e instanceof T&&e.exitStarterExp(this)}}class et extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_starter}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterStarter(this)}exitRule(e){e instanceof T&&e.exitStarter(this)}}let h0=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_participant}name(){return this.getTypedRuleContext(j4,0)}participantType(){return this.getTypedRuleContext(it,0)}stereotype(){return this.getTypedRuleContext(tt,0)}width(){return this.getTypedRuleContext(st,0)}label(){return this.getTypedRuleContext(nt,0)}COLOR(){return this.getToken(h.COLOR,0)}enterRule(e){e instanceof T&&e.enterParticipant(this)}exitRule(e){e instanceof T&&e.exitParticipant(this)}};class tt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_stereotype}SOPEN(){return this.getToken(h.SOPEN,0)}name(){return this.getTypedRuleContext(j4,0)}SCLOSE(){return this.getToken(h.SCLOSE,0)}GT(){return this.getToken(h.GT,0)}LT(){return this.getToken(h.LT,0)}enterRule(e){e instanceof T&&e.enterStereotype(this)}exitRule(e){e instanceof T&&e.exitStereotype(this)}}class nt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_label}AS(){return this.getToken(h.AS,0)}name(){return this.getTypedRuleContext(j4,0)}enterRule(e){e instanceof T&&e.enterLabel(this)}exitRule(e){e instanceof T&&e.exitLabel(this)}}class it extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_participantType}ANNOTATION(){return this.getToken(h.ANNOTATION,0)}enterRule(e){e instanceof T&&e.enterParticipantType(this)}exitRule(e){e instanceof T&&e.exitParticipantType(this)}}class j4 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_name}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterName(this)}exitRule(e){e instanceof T&&e.exitName(this)}}class st extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_width}INT(){return this.getToken(h.INT,0)}enterRule(e){e instanceof T&&e.enterWidth(this)}exitRule(e){e instanceof T&&e.exitWidth(this)}}class Y8 extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"stat",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(Q8):this.getTypedRuleContext(Q8,n)});this.parser=n,this.ruleIndex=h.RULE_block}enterRule(n){n instanceof T&&n.enterBlock(this)}exitRule(n){n instanceof T&&n.exitBlock(this)}}let rt=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_ret}RETURN(){return this.getToken(h.RETURN,0)}expr(){return this.getTypedRuleContext(b2,0)}SCOL(){return this.getToken(h.SCOL,0)}ANNOTATION_RET(){return this.getToken(h.ANNOTATION_RET,0)}asyncMessage(){return this.getTypedRuleContext(i7,0)}EVENT_END(){return this.getToken(h.EVENT_END,0)}enterRule(e){e instanceof T&&e.enterRet(this)}exitRule(e){e instanceof T&&e.exitRet(this)}},ot=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_divider}dividerNote(){return this.getTypedRuleContext(lt,0)}enterRule(e){e instanceof T&&e.enterDivider(this)}exitRule(e){e instanceof T&&e.exitDivider(this)}};class lt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_dividerNote}DIVIDER(){return this.getToken(h.DIVIDER,0)}enterRule(e){e instanceof T&&e.enterDividerNote(this)}exitRule(e){e instanceof T&&e.exitDividerNote(this)}}let Q8=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_stat,this._OTHER=null}alt(){return this.getTypedRuleContext(yt,0)}par(){return this.getTypedRuleContext(Lt,0)}opt(){return this.getTypedRuleContext(at,0)}critical(){return this.getTypedRuleContext(ct,0)}section(){return this.getTypedRuleContext(Ct,0)}ref(){return this.getTypedRuleContext(ut,0)}loop(){return this.getTypedRuleContext(kt,0)}creation(){return this.getTypedRuleContext(X8,0)}message(){return this.getTypedRuleContext(dt,0)}asyncMessage(){return this.getTypedRuleContext(i7,0)}EVENT_END(){return this.getToken(h.EVENT_END,0)}ret(){return this.getTypedRuleContext(rt,0)}divider(){return this.getTypedRuleContext(ot,0)}tcf(){return this.getTypedRuleContext(_t,0)}OTHER(){return this.getToken(h.OTHER,0)}enterRule(e){e instanceof T&&e.enterStat(this)}exitRule(e){e instanceof T&&e.exitStat(this)}};class Lt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_par}PAR(){return this.getToken(h.PAR,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterPar(this)}exitRule(e){e instanceof T&&e.exitPar(this)}}class at extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_opt}OPT(){return this.getToken(h.OPT,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterOpt(this)}exitRule(e){e instanceof T&&e.exitOpt(this)}}class ct extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_critical}CRITICAL(){return this.getToken(h.CRITICAL,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}OPAR(){return this.getToken(h.OPAR,0)}CPAR(){return this.getToken(h.CPAR,0)}atom(){return this.getTypedRuleContext(d3,0)}enterRule(e){e instanceof T&&e.enterCritical(this)}exitRule(e){e instanceof T&&e.exitCritical(this)}}class Ct extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_section}SECTION(){return this.getToken(h.SECTION,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}OPAR(){return this.getToken(h.OPAR,0)}CPAR(){return this.getToken(h.CPAR,0)}atom(){return this.getTypedRuleContext(d3,0)}enterRule(e){e instanceof T&&e.enterSection(this)}exitRule(e){e instanceof T&&e.exitSection(this)}}let X8=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_creation}creationBody(){return this.getTypedRuleContext(ht,0)}SCOL(){return this.getToken(h.SCOL,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterCreation(this)}exitRule(e){e instanceof T&&e.exitCreation(this)}},ut=class extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"name",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(j4):this.getTypedRuleContext(j4,n)});j2(this,"COMMA",function(n){return n===void 0&&(n=null),n===null?this.getTokens(h.COMMA):this.getToken(h.COMMA,n)});this.parser=n,this.ruleIndex=h.RULE_ref}REF(){return this.getToken(h.REF,0)}OPAR(){return this.getToken(h.OPAR,0)}CPAR(){return this.getToken(h.CPAR,0)}SCOL(){return this.getToken(h.SCOL,0)}enterRule(n){n instanceof T&&n.enterRef(this)}exitRule(n){n instanceof T&&n.exitRef(this)}};class ht extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_creationBody}NEW(){return this.getToken(h.NEW,0)}construct(){return this.getTypedRuleContext(pt,0)}assignment(){return this.getTypedRuleContext(c5,0)}OPAR(){return this.getToken(h.OPAR,0)}CPAR(){return this.getToken(h.CPAR,0)}parameters(){return this.getTypedRuleContext(r7,0)}enterRule(e){e instanceof T&&e.enterCreationBody(this)}exitRule(e){e instanceof T&&e.exitCreationBody(this)}}let dt=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_message}messageBody(){return this.getTypedRuleContext(ft,0)}SCOL(){return this.getToken(h.SCOL,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterMessage(this)}exitRule(e){e instanceof T&&e.exitMessage(this)}};class ft extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_messageBody}func(){return this.getTypedRuleContext(J8,0)}assignment(){return this.getTypedRuleContext(c5,0)}to(){return this.getTypedRuleContext(a5,0)}DOT(){return this.getToken(h.DOT,0)}from(){return this.getTypedRuleContext(e7,0)}ARROW(){return this.getToken(h.ARROW,0)}enterRule(e){e instanceof T&&e.enterMessageBody(this)}exitRule(e){e instanceof T&&e.exitMessageBody(this)}}class J8 extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"signature",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(t7):this.getTypedRuleContext(t7,n)});j2(this,"DOT",function(n){return n===void 0&&(n=null),n===null?this.getTokens(h.DOT):this.getToken(h.DOT,n)});this.parser=n,this.ruleIndex=h.RULE_func}enterRule(n){n instanceof T&&n.enterFunc(this)}exitRule(n){n instanceof T&&n.exitFunc(this)}}class e7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_from}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterFrom(this)}exitRule(e){e instanceof T&&e.exitFrom(this)}}class a5 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_to}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterTo(this)}exitRule(e){e instanceof T&&e.exitTo(this)}}class t7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_signature}methodName(){return this.getTypedRuleContext(wt,0)}invocation(){return this.getTypedRuleContext(n7,0)}enterRule(e){e instanceof T&&e.enterSignature(this)}exitRule(e){e instanceof T&&e.exitSignature(this)}}class n7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_invocation}OPAR(){return this.getToken(h.OPAR,0)}CPAR(){return this.getToken(h.CPAR,0)}parameters(){return this.getTypedRuleContext(r7,0)}enterRule(e){e instanceof T&&e.enterInvocation(this)}exitRule(e){e instanceof T&&e.exitInvocation(this)}}class c5 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_assignment}assignee(){return this.getTypedRuleContext(mt,0)}ASSIGN(){return this.getToken(h.ASSIGN,0)}type(){return this.getTypedRuleContext(s7,0)}enterRule(e){e instanceof T&&e.enterAssignment(this)}exitRule(e){e instanceof T&&e.exitAssignment(this)}}let i7=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_asyncMessage}to(){return this.getTypedRuleContext(a5,0)}COL(){return this.getToken(h.COL,0)}from(){return this.getTypedRuleContext(e7,0)}ARROW(){return this.getToken(h.ARROW,0)}content(){return this.getTypedRuleContext(gt,0)}MINUS(){return this.getToken(h.MINUS,0)}enterRule(e){e instanceof T&&e.enterAsyncMessage(this)}exitRule(e){e instanceof T&&e.exitAsyncMessage(this)}};class gt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_content}EVENT_PAYLOAD_LXR(){return this.getToken(h.EVENT_PAYLOAD_LXR,0)}enterRule(e){e instanceof T&&e.enterContent(this)}exitRule(e){e instanceof T&&e.exitContent(this)}}class pt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_construct}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterConstruct(this)}exitRule(e){e instanceof T&&e.exitConstruct(this)}}class s7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_type}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterType(this)}exitRule(e){e instanceof T&&e.exitType(this)}}class mt extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"ID",function(n){return n===void 0&&(n=null),n===null?this.getTokens(h.ID):this.getToken(h.ID,n)});j2(this,"COMMA",function(n){return n===void 0&&(n=null),n===null?this.getTokens(h.COMMA):this.getToken(h.COMMA,n)});this.parser=n,this.ruleIndex=h.RULE_assignee}atom(){return this.getTypedRuleContext(d3,0)}STRING(){return this.getToken(h.STRING,0)}NEW(){return this.getToken(h.NEW,0)}enterRule(n){n instanceof T&&n.enterAssignee(this)}exitRule(n){n instanceof T&&n.exitAssignee(this)}}class wt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_methodName}ID(){return this.getToken(h.ID,0)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterMethodName(this)}exitRule(e){e instanceof T&&e.exitMethodName(this)}}class r7 extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"parameter",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(o7):this.getTypedRuleContext(o7,n)});j2(this,"COMMA",function(n){return n===void 0&&(n=null),n===null?this.getTokens(h.COMMA):this.getToken(h.COMMA,n)});this.parser=n,this.ruleIndex=h.RULE_parameters}enterRule(n){n instanceof T&&n.enterParameters(this)}exitRule(n){n instanceof T&&n.exitParameters(this)}}class o7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_parameter}declaration(){return this.getTypedRuleContext(xt,0)}expr(){return this.getTypedRuleContext(b2,0)}enterRule(e){e instanceof T&&e.enterParameter(this)}exitRule(e){e instanceof T&&e.exitParameter(this)}}class xt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_declaration}type(){return this.getTypedRuleContext(s7,0)}ID(){return this.getToken(h.ID,0)}enterRule(e){e instanceof T&&e.enterDeclaration(this)}exitRule(e){e instanceof T&&e.exitDeclaration(this)}}class _t extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"catchBlock",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(l7):this.getTypedRuleContext(l7,n)});this.parser=n,this.ruleIndex=h.RULE_tcf}tryBlock(){return this.getTypedRuleContext(vt,0)}finallyBlock(){return this.getTypedRuleContext(Mt,0)}enterRule(n){n instanceof T&&n.enterTcf(this)}exitRule(n){n instanceof T&&n.exitTcf(this)}}class vt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_tryBlock}TRY(){return this.getToken(h.TRY,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterTryBlock(this)}exitRule(e){e instanceof T&&e.exitTryBlock(this)}}class l7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_catchBlock}CATCH(){return this.getToken(h.CATCH,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}invocation(){return this.getTypedRuleContext(n7,0)}enterRule(e){e instanceof T&&e.enterCatchBlock(this)}exitRule(e){e instanceof T&&e.exitCatchBlock(this)}}class Mt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_finallyBlock}FINALLY(){return this.getToken(h.FINALLY,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterFinallyBlock(this)}exitRule(e){e instanceof T&&e.exitFinallyBlock(this)}}class yt extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"elseIfBlock",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(L7):this.getTypedRuleContext(L7,n)});this.parser=n,this.ruleIndex=h.RULE_alt}ifBlock(){return this.getTypedRuleContext(Rt,0)}elseBlock(){return this.getTypedRuleContext(At,0)}enterRule(n){n instanceof T&&n.enterAlt(this)}exitRule(n){n instanceof T&&n.exitAlt(this)}}let Rt=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_ifBlock}IF(){return this.getToken(h.IF,0)}parExpr(){return this.getTypedRuleContext(C5,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterIfBlock(this)}exitRule(e){e instanceof T&&e.exitIfBlock(this)}};class L7 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_elseIfBlock}ELSE(){return this.getToken(h.ELSE,0)}IF(){return this.getToken(h.IF,0)}parExpr(){return this.getTypedRuleContext(C5,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterElseIfBlock(this)}exitRule(e){e instanceof T&&e.exitElseIfBlock(this)}}class At extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_elseBlock}ELSE(){return this.getToken(h.ELSE,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterElseBlock(this)}exitRule(e){e instanceof T&&e.exitElseBlock(this)}}class Y1 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_braceBlock}OBRACE(){return this.getToken(h.OBRACE,0)}CBRACE(){return this.getToken(h.CBRACE,0)}block(){return this.getTypedRuleContext(Y8,0)}enterRule(e){e instanceof T&&e.enterBraceBlock(this)}exitRule(e){e instanceof T&&e.exitBraceBlock(this)}}let kt=class extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_loop}WHILE(){return this.getToken(h.WHILE,0)}parExpr(){return this.getTypedRuleContext(C5,0)}braceBlock(){return this.getTypedRuleContext(Y1,0)}enterRule(e){e instanceof T&&e.enterLoop(this)}exitRule(e){e instanceof T&&e.exitLoop(this)}};class b2 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_expr}copyFrom(e){super.copyFrom(e)}}class Eo extends b2{constructor(e,n){super(e),super.copyFrom(n)}assignment(){return this.getTypedRuleContext(c5,0)}expr(){return this.getTypedRuleContext(b2,0)}enterRule(e){e instanceof T&&e.enterAssignmentExpr(this)}exitRule(e){e instanceof T&&e.exitAssignmentExpr(this)}}h.AssignmentExprContext=Eo;class Io extends b2{constructor(e,n){super(e),super.copyFrom(n)}func(){return this.getTypedRuleContext(J8,0)}to(){return this.getTypedRuleContext(a5,0)}DOT(){return this.getToken(h.DOT,0)}enterRule(e){e instanceof T&&e.enterFuncExpr(this)}exitRule(e){e instanceof T&&e.exitFuncExpr(this)}}h.FuncExprContext=Io;class Fo extends b2{constructor(e,n){super(e),super.copyFrom(n)}atom(){return this.getTypedRuleContext(d3,0)}enterRule(e){e instanceof T&&e.enterAtomExpr(this)}exitRule(e){e instanceof T&&e.exitAtomExpr(this)}}h.AtomExprContext=Fo;class Oo extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});super.copyFrom(i)}OR(){return this.getToken(h.OR,0)}enterRule(n){n instanceof T&&n.enterOrExpr(this)}exitRule(n){n instanceof T&&n.exitOrExpr(this)}}h.OrExprContext=Oo;class No extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});this.op=null,super.copyFrom(i)}PLUS(){return this.getToken(h.PLUS,0)}MINUS(){return this.getToken(h.MINUS,0)}enterRule(n){n instanceof T&&n.enterAdditiveExpr(this)}exitRule(n){n instanceof T&&n.exitAdditiveExpr(this)}}h.AdditiveExprContext=No;class Do extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});this.op=null,super.copyFrom(i)}LTEQ(){return this.getToken(h.LTEQ,0)}GTEQ(){return this.getToken(h.GTEQ,0)}LT(){return this.getToken(h.LT,0)}GT(){return this.getToken(h.GT,0)}enterRule(n){n instanceof T&&n.enterRelationalExpr(this)}exitRule(n){n instanceof T&&n.exitRelationalExpr(this)}}h.RelationalExprContext=Do;class Po extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});super.copyFrom(i)}PLUS(){return this.getToken(h.PLUS,0)}enterRule(n){n instanceof T&&n.enterPlusExpr(this)}exitRule(n){n instanceof T&&n.exitPlusExpr(this)}}h.PlusExprContext=Po;class Bo extends b2{constructor(e,n){super(e),super.copyFrom(n)}NOT(){return this.getToken(h.NOT,0)}expr(){return this.getTypedRuleContext(b2,0)}enterRule(e){e instanceof T&&e.enterNotExpr(this)}exitRule(e){e instanceof T&&e.exitNotExpr(this)}}h.NotExprContext=Bo;class zo extends b2{constructor(e,n){super(e),super.copyFrom(n)}MINUS(){return this.getToken(h.MINUS,0)}expr(){return this.getTypedRuleContext(b2,0)}enterRule(e){e instanceof T&&e.enterUnaryMinusExpr(this)}exitRule(e){e instanceof T&&e.exitUnaryMinusExpr(this)}}h.UnaryMinusExprContext=zo;class Uo extends b2{constructor(e,n){super(e),super.copyFrom(n)}creation(){return this.getTypedRuleContext(X8,0)}enterRule(e){e instanceof T&&e.enterCreationExpr(this)}exitRule(e){e instanceof T&&e.exitCreationExpr(this)}}h.CreationExprContext=Uo;class Wo extends b2{constructor(e,n){super(e),super.copyFrom(n)}OPAR(){return this.getToken(h.OPAR,0)}expr(){return this.getTypedRuleContext(b2,0)}CPAR(){return this.getToken(h.CPAR,0)}enterRule(e){e instanceof T&&e.enterParenthesizedExpr(this)}exitRule(e){e instanceof T&&e.exitParenthesizedExpr(this)}}h.ParenthesizedExprContext=Wo;class $o extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});this.op=null,super.copyFrom(i)}MULT(){return this.getToken(h.MULT,0)}DIV(){return this.getToken(h.DIV,0)}MOD(){return this.getToken(h.MOD,0)}enterRule(n){n instanceof T&&n.enterMultiplicationExpr(this)}exitRule(n){n instanceof T&&n.exitMultiplicationExpr(this)}}h.MultiplicationExprContext=$o;class Ho extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});this.op=null,super.copyFrom(i)}EQ(){return this.getToken(h.EQ,0)}NEQ(){return this.getToken(h.NEQ,0)}enterRule(n){n instanceof T&&n.enterEqualityExpr(this)}exitRule(n){n instanceof T&&n.exitEqualityExpr(this)}}h.EqualityExprContext=Ho;class Vo extends b2{constructor(n,i){super(n);j2(this,"expr",function(n){return n===void 0&&(n=null),n===null?this.getTypedRuleContexts(b2):this.getTypedRuleContext(b2,n)});super.copyFrom(i)}AND(){return this.getToken(h.AND,0)}enterRule(n){n instanceof T&&n.enterAndExpr(this)}exitRule(n){n instanceof T&&n.exitAndExpr(this)}}h.AndExprContext=Vo;class d3 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_atom}copyFrom(e){super.copyFrom(e)}}class Go extends d3{constructor(e,n){super(e),super.copyFrom(n)}TRUE(){return this.getToken(h.TRUE,0)}FALSE(){return this.getToken(h.FALSE,0)}enterRule(e){e instanceof T&&e.enterBooleanAtom(this)}exitRule(e){e instanceof T&&e.exitBooleanAtom(this)}}h.BooleanAtomContext=Go;class jo extends d3{constructor(e,n){super(e),super.copyFrom(n)}ID(){return this.getToken(h.ID,0)}enterRule(e){e instanceof T&&e.enterIdAtom(this)}exitRule(e){e instanceof T&&e.exitIdAtom(this)}}h.IdAtomContext=jo;class qo extends d3{constructor(e,n){super(e),super.copyFrom(n)}MONEY(){return this.getToken(h.MONEY,0)}enterRule(e){e instanceof T&&e.enterMoneyAtom(this)}exitRule(e){e instanceof T&&e.exitMoneyAtom(this)}}h.MoneyAtomContext=qo;class Ko extends d3{constructor(e,n){super(e),super.copyFrom(n)}STRING(){return this.getToken(h.STRING,0)}enterRule(e){e instanceof T&&e.enterStringAtom(this)}exitRule(e){e instanceof T&&e.exitStringAtom(this)}}h.StringAtomContext=Ko;class Yo extends d3{constructor(e,n){super(e),super.copyFrom(n)}NIL(){return this.getToken(h.NIL,0)}enterRule(e){e instanceof T&&e.enterNilAtom(this)}exitRule(e){e instanceof T&&e.exitNilAtom(this)}}h.NilAtomContext=Yo;class Qo extends d3{constructor(e,n){super(e),super.copyFrom(n)}INT(){return this.getToken(h.INT,0)}FLOAT(){return this.getToken(h.FLOAT,0)}enterRule(e){e instanceof T&&e.enterNumberAtom(this)}exitRule(e){e instanceof T&&e.exitNumberAtom(this)}}h.NumberAtomContext=Qo;class Xo extends d3{constructor(e,n){super(e),super.copyFrom(n)}NUMBER_UNIT(){return this.getToken(h.NUMBER_UNIT,0)}enterRule(e){e instanceof T&&e.enterNumberUnitAtom(this)}exitRule(e){e instanceof T&&e.exitNumberUnitAtom(this)}}h.NumberUnitAtomContext=Xo;class C5 extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_parExpr}OPAR(){return this.getToken(h.OPAR,0)}condition(){return this.getTypedRuleContext(Zt,0)}CPAR(){return this.getToken(h.CPAR,0)}enterRule(e){e instanceof T&&e.enterParExpr(this)}exitRule(e){e instanceof T&&e.exitParExpr(this)}}class Zt extends Z.ParserRuleContext{constructor(e,n,i){n===void 0&&(n=null),i==null&&(i=-1),super(n,i),this.parser=e,this.ruleIndex=h.RULE_condition}atom(){return this.getTypedRuleContext(d3,0)}expr(){return this.getTypedRuleContext(b2,0)}inExpr(){return this.getTypedRuleContext(Tt,0)}enterRule(e){e instanceof T&&e.enterCondition(this)}exitRule(e){e instanceof T&&e.exitCondition(this)}}class Tt extends Z.ParserRuleContext{constructor(n,i,s){i===void 0&&(i=null),s==null&&(s=-1);super(i,s);j2(this,"ID",function(n){return n===void 0&&(n=null),n===null?this.getTokens(h.ID):this.getToken(h.ID,n)});this.parser=n,this.ruleIndex=h.RULE_inExpr}IN(){return this.getToken(h.IN,0)}enterRule(n){n instanceof T&&n.enterInExpr(this)}exitRule(n){n instanceof T&&n.exitInExpr(this)}}h.ProgContext=So,h.TitleContext=Qe,h.HeadContext=Xe,h.GroupContext=K8,h.StarterExpContext=Je,h.StarterContext=et,h.ParticipantContext=h0,h.StereotypeContext=tt,h.LabelContext=nt,h.ParticipantTypeContext=it,h.NameContext=j4,h.WidthContext=st,h.BlockContext=Y8,h.RetContext=rt,h.DividerContext=ot,h.DividerNoteContext=lt,h.StatContext=Q8,h.ParContext=Lt,h.OptContext=at,h.CriticalContext=ct,h.SectionContext=Ct,h.CreationContext=X8,h.RefContext=ut,h.CreationBodyContext=ht,h.MessageContext=dt,h.MessageBodyContext=ft,h.FuncContext=J8,h.FromContext=e7,h.ToContext=a5,h.SignatureContext=t7,h.InvocationContext=n7,h.AssignmentContext=c5,h.AsyncMessageContext=i7,h.ContentContext=gt,h.ConstructContext=pt,h.TypeContext=s7,h.AssigneeContext=mt,h.MethodNameContext=wt,h.ParametersContext=r7,h.ParameterContext=o7,h.DeclarationContext=xt,h.TcfContext=_t,h.TryBlockContext=vt,h.CatchBlockContext=l7,h.FinallyBlockContext=Mt,h.AltContext=yt,h.IfBlockContext=Rt,h.ElseIfBlockContext=L7,h.ElseBlockContext=At,h.BraceBlockContext=Y1,h.LoopContext=kt,h.ExprContext=b2,h.AtomContext=d3,h.ParExprContext=C5,h.ConditionContext=Zt,h.InExprContext=Tt;const Jo={name:"",color:void 0,comment:void 0,explicit:void 0,groupId:void 0,isStarter:void 0,label:void 0,stereotype:void 0,type:void 0,width:void 0,assignee:void 0,positions:new Set,assigneePositions:new Set};let xg=class{constructor(e,n){this.positions=new Set,this.assigneePositions=new Set,this.name=e,this.mergeOptions(n)}mergeOptions(e){const{stereotype:n,width:i,groupId:s,label:r,explicit:o,isStarter:l,type:L,color:a,comment:c,assignee:C}=e;this.stereotype||(this.stereotype=n),this.width||(this.width=i),this.groupId||(this.groupId=s),this.explicit||(this.explicit=o),this.isStarter||(this.isStarter=l),this.label||(this.label=r),this.type||(this.type=L),this.color||(this.color=a),this.comment||(this.comment=c),this.assignee||(this.assignee=C)}AddPosition(e){this.positions.add(e)}ToValue(){return{name:this.name,stereotype:this.stereotype,width:this.width,groupId:this.groupId,explicit:this.explicit,isStarter:this.isStarter,label:this.label,type:this.type,color:this.color,comment:this.comment,assignee:this.assignee,positions:this.positions,assigneePositions:this.assigneePositions}}},_g=class{constructor(){this.participants=new Map}Add(e,n={}){if(!e)throw new Error("Participant name is required");let i=this.Get(e);i?i==null||i.mergeOptions(n):(i=new xg(e,n),this.participants.set(e,i));const{position:s,assigneePosition:r}=n;s&&i.AddPosition(s),r&&i.assigneePositions.add(r)}ImplicitArray(){return this.Array().filter(e=>{var n;return!((n=this.Get(e.name))!=null&&n.explicit)})}Array(){return Array.from(this.participants.entries()).map(e=>e[1])}Names(){return Array.from(this.participants.keys())}First(){return this.participants.values().next().value}Get(e){return this.participants.get(e)}Size(){return this.participants.size}Starter(){for(const e of this.participants.values())if(e.isStarter)return e}GetPositions(e){var n;return(n=this.participants.get(e))==null?void 0:n.positions}GetAssigneePositions(e){var n;return(n=this.participants.get(e))==null?void 0:n.assigneePositions}},f3,A9=!1,bt;const D1=new T,vg=function(t){var d,f,m,_,p,g;if(A9)return;const e=(d=t==null?void 0:t.participantType())==null?void 0:d.getFormattedText().replace("@",""),n=((f=t==null?void 0:t.name())==null?void 0:f.getFormattedText())||"Missing `Participant`",i=(_=(m=t.stereotype())==null?void 0:m.name())==null?void 0:_.getFormattedText(),s=t.width&&t.width()&&Number.parseInt(t.width().getText())||void 0,r=t.label&&t.label(),o=(p=r==null?void 0:r.name())==null?void 0:p.getFormattedText(),l=!0,L=(g=t.COLOR())==null?void 0:g.getText(),a=t.getComment(),c=t.name();let C,u;if(r){const w=r.name();w&&(C=w.start.start,u=w.stop.stop+1)}else c&&(C=c.start.start,u=c.stop.stop+1);f3.Add(n,{isStarter:!1,type:e,stereotype:i,width:s,groupId:bt,label:o,explicit:l,color:L,comment:a,position:[C,u]})};D1.enterParticipant=vg;const el=function(t){if(A9)return;let e=t.getFormattedText();const n=f3.Get(e);if(n!=null&&n.label)f3.Add(e,{isStarter:!1});else if(n!=null&&n.assignee){const s=[t.start.start+n.assignee.length+2,t.stop.stop],r=[t.start.start+1,t.start.start+n.assignee.length+1];f3.Add(e,{isStarter:!1,position:s,assigneePosition:r})}else f3.Add(e,{isStarter:!1,position:[t.start.start,t.stop.stop+1]})};D1.enterFrom=el,D1.enterTo=el,D1.enterStarter=function(t){let e=t.getFormattedText();f3.Add(e,{isStarter:!0,position:[t.start.start,t.stop.stop+1]})},D1.enterCreation=function(t){var s;if(A9)return;const e=t.Owner(),n=(s=t==null?void 0:t.creationBody())==null?void 0:s.construct(),i=f3.Get(e);if(n&&!(i!=null&&i.label)){const r=t.Assignee(),o=t.AssigneePosition();f3.Add(e,{isStarter:!1,position:[n.start.start,n.stop.stop+1],assignee:r,assigneePosition:o})}else f3.Add(e,{isStarter:!1})},D1.enterRef=function(t){t.Participants().forEach(e=>{f3.Add(e.getText(),{isStarter:!1,position:[e.start.start,e.stop.stop+1]})})},D1.enterParameters=function(){A9=!0},D1.exitParameters=function(){A9=!1},D1.enterCondition=function(){A9=!0},D1.exitCondition=function(){A9=!1},D1.enterGroup=function(t){var e;bt=(e=t.name())==null?void 0:e.getFormattedText()},D1.exitGroup=function(){bt=void 0},D1.enterRet=function(t){if(t.asyncMessage())return;const e=t.From();e&&f3.Add(e);const n=t.ReturnTo();n&&f3.Add(n)};const Mg=Z.tree.ParseTreeWalker.DEFAULT;D1.getParticipants=function(t){return f3=new _g,Mg.walk(this,t),f3};const yg=Z.tree.ParseTreeWalker.DEFAULT;let Q1=new T,g1=0,P1=0;Q1.enterTcf=function(){g1++},Q1.enterOpt=function(){g1++},Q1.enterPar=function(){g1++},Q1.enterAlt=function(){g1++},Q1.enterLoop=function(){g1++},Q1.enterSection=function(){g1++},Q1.enterCritical=function(){g1++},Q1.exitTcf=function(){P1=Math.max(P1,g1),g1--},Q1.exitOpt=function(){P1=Math.max(P1,g1),g1--},Q1.exitPar=function(){P1=Math.max(P1,g1),g1--},Q1.exitAlt=function(){P1=Math.max(P1,g1),g1--},Q1.exitLoop=function(){P1=Math.max(P1,g1),g1--},Q1.exitSection=function(){P1=Math.max(P1,g1),g1--},Q1.exitCritical=function(){P1=Math.max(P1,g1),g1--},Q1.depth=function(t){return function(e){return g1=0,P1=0,e.children.map(function(n){yg.walk(t,n)}),P1}};const Rg=h.TitleContext;Rg.prototype.content=function(){return this.children.length<2?"":this.children[1].getText().trim()};const tl=h,St=tl.CreationContext;St.prototype.Body=St.prototype.creationBody,St.prototype.isCurrent=function(t){return nl.bind(this)(t)};const Et=tl.MessageContext;Et.prototype.Body=Et.prototype.messageBody,Et.prototype.isCurrent=function(t){return nl.bind(this)(t)};function nl(t){try{if(t==null)return!1;const e=this.start.start,n=this.Body().stop.stop+1;return t>=e&&t<=n}catch{return!1}}const a7=h,d0=a7.CreationContext,It=a7.MessageContext,il=a7.AsyncMessageContext,sl=a7.RetContext;d0.prototype.Assignee=function(){var t,e,n;return(n=(e=(t=this.creationBody())==null?void 0:t.assignment())==null?void 0:e.assignee())==null?void 0:n.getFormattedText()},d0.prototype.AssigneePosition=function(){var e,n;const t=(n=(e=this.creationBody())==null?void 0:e.assignment())==null?void 0:n.assignee();if(t)return[t.start.start,t.stop.stop+1]},d0.prototype.Constructor=function(){var t,e;return(e=(t=this.creationBody())==null?void 0:t.construct())==null?void 0:e.getFormattedText()},d0.prototype.To=function(){return this.Constructor()},d0.prototype.Owner=function(){if(!this.Constructor())return"Missing Constructor";const t=this.Assignee(),e=this.Constructor();return t?`${t}:${e}`:e},It.prototype.To=function(){var t,e;return(e=(t=this.messageBody())==null?void 0:t.to())==null?void 0:e.getFormattedText()},It.prototype.Owner=function(){return this.To()||Ft(this.parentCtx)};function Ft(t){for(;t;){if(t instanceof d0||t instanceof It)return t.Owner();t=t.parentCtx}}il.prototype.To=function(){var t;return(t=this.to())==null?void 0:t.getFormattedText()},il.prototype.Owner=function(){return this.To()||Ft(this.parentCtx)},sl.prototype.To=function(){return this.ReturnTo()},sl.prototype.Owner=function(){return this.To()||Ft(this.parentCtx)};const Ag=h.ProgContext;Ag.prototype.Starter=function(){var t,e,n;return(n=(e=(t=this.head())==null?void 0:t.starterExp())==null?void 0:e.starter())==null?void 0:n.getFormattedText()};const c7=h,kg=c7.RetContext,rl=c7.ProgContext,ol=c7.MessageContext,Zg=c7.CreationContext;kg.prototype.ReturnTo=function(){var i,s;const n=this.parentCtx.parentCtx.parentCtx;if(n instanceof rl)return n.Starter();{let r=n;for(;r&&!(r instanceof ol)&&!(r instanceof Zg);){if(r instanceof rl)return r.Starter();r=r.parentCtx}return r instanceof ol&&((s=(i=r.messageBody())==null?void 0:i.from())==null?void 0:s.getFormattedText())||r.ClosestAncestorStat().Origin()}};const ll=h.RefContext;ll.prototype.Content=function(){return this.name()[0]},ll.prototype.Participants=function(){return this.name().slice(1)??[]};const Tg=Z.ParserRuleContext,Ll=h.StatContext,Ot=h.ProgContext,bg=h.MessageContext,Sg=h.CreationContext;Tg.prototype.Origin=function(){let t=this.parentCtx;for(;t&&!(t instanceof Ll||t instanceof Ot);)t=this.parentCtx;return t.Origin()},Ll.prototype.Origin=function(){let t=this.parentCtx;for(;t;){if(t instanceof Ot)return t.Starter();if(t instanceof bg||t instanceof Sg){const e=t.Owner();if(e)return e}t=t.parentCtx}},Ot.prototype.Origin=function(){return this.Starter()};const Eg=h.DividerContext;Eg.prototype.Note=function(){var e;const t=(e=this.dividerNote())==null?void 0:e.getFormattedText().trim();if(!t.startsWith("=="))throw new Error("Divider note must start with ==");return t==null?void 0:t.replace(/^=+|=+$/g,"")};const Ig=h.MessageContext,Fg=h.AsyncMessageContext,al=h.CreationContext,Og=h.RetContext;Ig.prototype.SignatureText=function(){var t,e,n;return((n=(e=(t=this.messageBody())==null?void 0:t.func())==null?void 0:e.signature())==null?void 0:n.map(i=>i==null?void 0:i.getFormattedText()).join("."))??""},Fg.prototype.SignatureText=function(){var t;return((t=this.content())==null?void 0:t.getFormattedText())??""},al.prototype.SignatureText=function(){var n;const t=this.creationBody().parameters();return`«${((n=t==null?void 0:t.parameter())==null?void 0:n.length)>0?t.getFormattedText():"create"}»`},al.prototype.isParamValid=function(){var t,e;return(((e=(t=this.creationBody().parameters())==null?void 0:t.parameter())==null?void 0:e.length)??0)>0},Og.prototype.SignatureText=function(){var t,e,n;return((e=(t=this.asyncMessage())==null?void 0:t.content())==null?void 0:e.getFormattedText())??((n=this.expr())==null?void 0:n.getFormattedText())??""};const C7=h,cl=C7.MessageContext,Ng=C7.CreationContext,Dg=C7.IfBlockContext,Pg=C7.LoopContext;class Bg{constructor(e,n){if(n&&!e)throw new Error("assignee must be defined if type is defined");this.assignee=e||"",this.type=n||""}getText(){return[this.assignee,this.type].filter(Boolean).join(":")}}cl.prototype.Assignment=function(){var i,s;const t=this.messageBody().assignment(),e=(i=t==null?void 0:t.assignee())==null?void 0:i.getFormattedText(),n=(s=t==null?void 0:t.type())==null?void 0:s.getFormattedText();if(e)return new Bg(e,n)},cl.prototype.Statements=function(){var t,e;return((e=(t=this.braceBlock())==null?void 0:t.block())==null?void 0:e.stat())||[]},Ng.prototype.Statements=function(){var t,e;return((e=(t=this.braceBlock())==null?void 0:t.block())==null?void 0:e.stat())||[]},Dg.prototype.Statements=function(){var t,e;return((e=(t=this.braceBlock())==null?void 0:t.block())==null?void 0:e.stat())||[]},Pg.prototype.Statements=function(){var t,e;return((e=(t=this.braceBlock())==null?void 0:t.block())==null?void 0:e.stat())||[]};const u5=h,zg=u5.CreationContext,Ug=u5.StatContext,Cl=u5.MessageContext,ul=u5.AsyncMessageContext,Wg=u5.RetContext;zg.prototype.From=function(){if(this.parentCtx instanceof Ug)return this.ClosestAncestorStat().Origin()},Cl.prototype.ProvidedFrom=function(){var t,e;return(e=(t=this.messageBody())==null?void 0:t.from())==null?void 0:e.getFormattedText()},Cl.prototype.From=function(){return this.ProvidedFrom()||this.ClosestAncestorStat().Origin()},ul.prototype.ProvidedFrom=function(){var t;return(t=this.from())==null?void 0:t.getFormattedText()},ul.prototype.From=function(){return this.ProvidedFrom()||this.ClosestAncestorStat().Origin()},Wg.prototype.From=function(){return this.ClosestAncestorStat().Origin()},Z.ParserRuleContext.prototype.Key=function(){return`${this.start.start}:${this.stop.stop}`};const hl=h,dl=hl.StatContext;Z.ParserRuleContext.prototype.ClosestAncestorStat=function(){let t=this;for(;!(t instanceof dl);)t=t.parentCtx;if(t instanceof dl)return t},Z.ParserRuleContext.prototype.ClosestAncestorBlock=function(){var e;const t=(e=this.ClosestAncestorStat())==null?void 0:e.parentCtx;if(t instanceof hl.BlockContext)return t;console.warn("Cannot find closest ancestor block for context:",this)},Z.ParserRuleContext.prototype.getAncestors=function(t){let e=this;const n=[];for(;e;)(!t||t(e))&&n.push(e),e=e.parentCtx;return n};function $g(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,i){return e.apply(this,arguments)};case 3:return function(n,i,s){return e.apply(this,arguments)};case 4:return function(n,i,s,r){return e.apply(this,arguments)};case 5:return function(n,i,s,r,o){return e.apply(this,arguments)};case 6:return function(n,i,s,r,o,l){return e.apply(this,arguments)};case 7:return function(n,i,s,r,o,l,L){return e.apply(this,arguments)};case 8:return function(n,i,s,r,o,l,L,a){return e.apply(this,arguments)};case 9:return function(n,i,s,r,o,l,L,a,c){return e.apply(this,arguments)};case 10:return function(n,i,s,r,o,l,L,a,c,C){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var fl=$g;function Hg(t,e){return function(){return e.call(this,t.apply(this,arguments))}}var Vg=Hg;function Gg(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}var Nt=Gg,jg=Nt;function qg(t){return function e(n){return arguments.length===0||jg(n)?e:t.apply(this,arguments)}}var u7=qg,Dt=u7,h5=Nt;function Kg(t){return function e(n,i){switch(arguments.length){case 0:return e;case 1:return h5(n)?e:Dt(function(s){return t(n,s)});default:return h5(n)&&h5(i)?e:h5(n)?Dt(function(s){return t(s,i)}):h5(i)?Dt(function(s){return t(n,s)}):t(n,i)}}}var gl=Kg,h7=u7,f0=gl,T1=Nt;function Yg(t){return function e(n,i,s){switch(arguments.length){case 0:return e;case 1:return T1(n)?e:f0(function(r,o){return t(n,r,o)});case 2:return T1(n)&&T1(i)?e:T1(n)?f0(function(r,o){return t(r,i,o)}):T1(i)?f0(function(r,o){return t(n,r,o)}):h7(function(r){return t(n,i,r)});default:return T1(n)&&T1(i)&&T1(s)?e:T1(n)&&T1(i)?f0(function(r,o){return t(r,o,s)}):T1(n)&&T1(s)?f0(function(r,o){return t(r,i,o)}):T1(i)&&T1(s)?f0(function(r,o){return t(n,r,o)}):T1(n)?h7(function(r){return t(r,i,s)}):T1(i)?h7(function(r){return t(n,r,s)}):T1(s)?h7(function(r){return t(n,i,r)}):t(n,i,s)}}}var Pt=Yg,pl=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Qg(t){return Object.prototype.toString.call(t)==="[object String]"}var Xg=Qg,Jg=u7,ep=pl,tp=Xg,np=Jg(function(e){return ep(e)?!0:!e||typeof e!="object"||tp(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),ip=np,sp=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function rp(t){return new sp(t)}var op=rp,lp=fl,Lp=gl,ap=Lp(function(e,n){return lp(e.length,function(){return e.apply(n,arguments)})}),cp=ap,Cp=ip,up=op,hp=cp;function dp(t,e,n){for(var i=0,s=n.length;i<s;){if(e=t["@@transducer/step"](e,n[i]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}i+=1}return t["@@transducer/result"](e)}function ml(t,e,n){for(var i=n.next();!i.done;){if(e=t["@@transducer/step"](e,i.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}i=n.next()}return t["@@transducer/result"](e)}function wl(t,e,n,i){return t["@@transducer/result"](n[i](hp(t["@@transducer/step"],t),e))}var xl=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function fp(t,e,n){if(typeof t=="function"&&(t=up(t)),Cp(n))return dp(t,e,n);if(typeof n["fantasy-land/reduce"]=="function")return wl(t,e,n,"fantasy-land/reduce");if(n[xl]!=null)return ml(t,e,n[xl]());if(typeof n.next=="function")return ml(t,e,n);if(typeof n.reduce=="function")return wl(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var gp=fp,pp=Pt,mp=gp,wp=pp(mp),xp=wp,_p=pl;function vp(t,e){return function(){var n=arguments.length;if(n===0)return e();var i=arguments[n-1];return _p(i)||typeof i[t]!="function"?e.apply(this,arguments):i[t].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}var _l=vp,Mp=_l,yp=Pt,Rp=yp(Mp("slice",function(e,n,i){return Array.prototype.slice.call(i,e,n)})),Ap=Rp,kp=_l,Zp=u7,Tp=Ap,bp=Zp(kp("tail",Tp(1,1/0))),Sp=bp,Ep=fl,Ip=Vg,Fp=xp,Op=Sp;function Np(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Ep(arguments[0].length,Fp(Ip,arguments[0],Op(arguments)))}var Dp=Np;const Pp=F1(Dp);var Bp=Pt,zp=Bp(function(e,n,i){return i.replace(e,n)}),Up=zp;const g0=F1(Up),Wp=g0(/[\n\r]/g," "),$p=g0(/\s+/g," "),Hp=g0(/\s*([,;.])\s*/g,"$1"),Vp=g0(/\s*(\()\s*|\s*(\))/g,"$1$2"),Gp=g0(/\s+$/g,""),jp=g0(/^"(.*)"$/,"$1"),vl=Pp(Wp,$p,Hp,Vp,Gp,jp),Bt=(t,e)=>{let n=e;for(t[n]===`
16
16
  `&&n--;n>=0;){if(t[n]===`
17
17
  `)return n+1;n--}return 0},Ml=(t,e)=>{const n=Bt(t,e);if(n===0)return 0;let i=n-2;for(;i>=0;){if(t[i]===`
18
18
  `)return i+1;i--}return 0},qp=(t,e)=>{const n=Bt(t,e);if(n===0)return"";const i=Ml(t,e);return t.slice(i,n)};class Kp extends Z.error.ErrorListener{syntaxError(e,n,i,s,r){}}function Yp(t){const e=new Z.InputStream(t),n=new X(e),i=new Z.CommonTokenStream(n),s=new h(i);return s.addErrorListener(new Kp),s._syntaxErrors?null:s.prog()}Z.ParserRuleContext.prototype.getFormattedText=function(){const t=this.parser.getTokenStream().getText(this.getSourceInterval());return vl(t)},Z.ParserRuleContext.prototype.getComment=function(){let t=this.start.tokenIndex,e=X.channelNames.indexOf("COMMENT_CHANNEL");this.constructor.name==="BraceBlockContext"&&(t=this.stop.tokenIndex);let n=this.parser.getTokenStream().getHiddenTokensToLeft(t,e);return n&&n.map(i=>i.text.substring(2)).join("")},Z.ParserRuleContext.prototype.returnedValue=function(){return this.braceBlock().block().ret().value()};const Qp=Yp,yl=h.GroupContext,Rl=h.ParticipantContext,d5=function(t){return D1.getParticipants(t)};var d7=(t=>(t[t.MessageContent=0]="MessageContent",t[t.ParticipantName=1]="ParticipantName",t))(d7||{});let zt={};const Al={},Ut=t=>{if(t!=null){const e=zt[t]??Al[t];return e!==void 0?e:null}return null},Wt=(t,e,n=!1)=>{zt[t]=e,n&&(Al[t]=e)},kl=()=>{zt={}};function Xp(t,e){const n=`WidthProviderOnBrowser_${t}_${e}`,i=Ut(n);if(i!=null)return i;let s=document.querySelector(".textarea-hidden-div");if(!s){const o=document.createElement("div");o.className="textarea-hidden-div ",o.style.fontSize=e===d7.MessageContent?"0.875rem":"1rem",o.style.fontFamily="Helvetica, Verdana, serif",o.style.display="inline",o.style.whiteSpace="nowrap",o.style.visibility="hidden",o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.overflow="hidden",o.style.width="0px",o.style.paddingLeft="0px",o.style.paddingRight="0px",o.style.margin="0px",o.style.border="0px",document.body.appendChild(o),s=o}s.textContent=t;const r=s.scrollWidth;return Wt(n,r,!0),r}const Zl=10,Tl=100,Jp=20,em=10,bl=15,f5=(bl-1)/2,tm=80,Sl=70,El=1;var p0=(t=>(t[t.SyncMessage=0]="SyncMessage",t[t.AsyncMessage=1]="AsyncMessage",t[t.CreationMessage=2]="CreationMessage",t[t.ReturnMessage=3]="ReturnMessage",t))(p0||{});class nm extends T{constructor(){super(...arguments),this.isBlind=!1,this.ownableMessages=[],this.enterMessage=e=>this._addOwnedMessage(p0.SyncMessage)(e),this.enterAsyncMessage=e=>this._addOwnedMessage(p0.AsyncMessage)(e),this.enterCreation=e=>this._addOwnedMessage(p0.CreationMessage)(e),this.enterRet=e=>{e.asyncMessage()||this._addOwnedMessage(p0.ReturnMessage)(e)},this._addOwnedMessage=e=>n=>{if(this.isBlind)return;const i=n.From(),s=n==null?void 0:n.Owner();let r=n==null?void 0:n.SignatureText();if(i===s&&n.Assignment){const o=n.Assignment();o&&(r=`${o.getText()} = ${r}`)}this.ownableMessages.push({from:i,signature:r,type:e,to:s})}}enterParameters(){this.isBlind=!0}exitParameters(){this.isBlind=!1}result(){return this.ownableMessages}}function f7(t){const e=Z.tree.ParseTreeWalker.DEFAULT,n=new nm;return e.walk(n,t),n.result()}const X1="_STARTER_";let im=class{constructor(e,n,i,s){this.name=e,this.left=n,this.label=i,this.type=s}getDisplayName(){return this.label||this.name}hasIcon(){return this.type!==void 0}};function sm(t){const e=D1.getParticipants(t),n=Array.from(e.participants.entries()),i=f7(t),s=i.length===0&&n.length===0,r=i.some(l=>!l.from);return(s||r)&&n.unshift([X1,{...Jo,name:X1,isStarter:!0}]),n.map((l,L,a)=>{const c=l[1],C=L>0?a[L-1][1].name:"";return new im(c.name,C,c.label,c.type)})}function g7(t,e){return{position:t,velocity:e}}function Il(t,e){return g7(t.position+e.position,t.velocity+e.velocity)}const Fl=Math.sqrt(Number.EPSILON);function rm(t,e){const n=t.position-e.position;return n<-Fl||Math.abs(n)<=Fl&&t.velocity<e.velocity}function om(){return{delta:1/0,dualLessThan:function(t,e){const n=rm(t,e);return n&&([t,e]=[e,t]),t.velocity<e.velocity&&(this.delta=Math.min(this.delta,(t.position-e.position)/(e.velocity-t.velocity))),n}}}function lm(t,e){const n=Array();for(let i=0;i<t;i++){n.push([]);for(let s=0;s<i;s++)e[s][i]>0&&n[i].push({i:s,length:g7(e[s][i],0)})}return n}function Lm(t,e){const n=om();let i=g7(0,0);const s=[];for(let r=0;r<t.length;r++){let o=null;r>0&&(i=Il(i,e[r-1]));for(const l of t[r]){const L=Il(s[l.i].maximum,l.length);n.dualLessThan(i,L)&&(o=l.i,i=L)}s.push({argument:o,maximum:i})}return[n.delta,s]}function am(t,e,n){let i=t.length-1;for(;i>0;){const s=t[i].argument;s!==null?i=s:(i--,n[i].velocity=0)}}function cm(t,e){for(let n=0;n<t.length;n++)t[n].position+=t[n].velocity*e}function Cm(t){const e=[];for(const n of t)e.push(n.maximum.position);return e}function um(t){const e=t.length,n=lm(e,t),i=[];for(let s=1;s<e;s++)i.push(g7(0,1));for(;;){const[s,r]=Lm(n,i);if(s==1/0)return Cm(r);r[e-1].maximum.velocity>0?am(r,n,i):cm(i,s)}}class hm{constructor(e,n){this.m=[],kl(),this.participantModels=sm(e),this.ownableMessages=f7(e),this.widthProvider=n,this.walkThrough()}orderedParticipantNames(){return this.participantModels.map(e=>e.name)}getPosition(e){if(!e)return 0;if(!this.getParticipantModel(e))return console.error(`Participant ${e} not found`),0;const i=`getPosition_${e}`,s=Ut(i);if(s!=null)return s;const r=this.participantModels.findIndex(L=>L.name===e),l=this.getParticipantGap(this.participantModels[0])+um(this.m)[r];return Wt(i,l),console.debug(`Position of ${e} is ${l}`),l}walkThrough(){this.withParticipantGaps(this.participantModels),this.withMessageGaps(this.ownableMessages,this.participantModels)}half(e){const n=this.getParticipantModel(e);return n?this._getParticipantWidth(n)/2:0}left(e){return this.getPosition(e)-this.half(e)}right(e){return this.getPosition(e)+this.half(e)}getWidth(){const e=this.participantModels[this.participantModels.length-1].name,n=this.getPosition(e)+this.half(e);return Math.max(n,200)}distance(e,n){return this.getPosition(n)-this.getPosition(e)}getMessageWidth(e){const n=this.half(e.to);let i=this.widthProvider(e.signature,d7.MessageContent);return e.type===p0.CreationMessage&&(i+=n),i}withMessageGaps(e,n){for(const i of e){i.from||(i.from=X1);const s=n.findIndex(L=>L.name===i.from),r=n.findIndex(L=>L.name===i.to);if(s===-1||r===-1){console.warn(`Participant ${i.from} or ${i.to} not found`);continue}const o=Math.min(s,r),l=Math.max(s,r);try{const L=this.getMessageWidth(i);this.m[o][l]=Math.max(L+em+bl,this.m[o][l])}catch{console.warn(`Could not set message gap between ${i.from} and ${i.to}`)}}}withParticipantGaps(e){this.m=e.map((n,i)=>e.map((s,r)=>r-i===1?this.getParticipantGap(s):0))}getParticipantGap(e){return this.half(e.left)+this.half(e.name)}getParticipantModel(e){return this.participantModels.find(n=>n.name===e)}_getParticipantWidth(e){const n=`getParticipantWidth_${e.name}`,i=Ut(n);if(i!=null)return i;const r=e.hasIcon()?40:0,o=this.widthProvider(e.getDisplayName(),d7.ParticipantName),l=Math.max(o+r,tm)+Jp;return Wt(n,l),console.debug(`Width of ${e.name} is ${l}; labelWidth: ${o}`),l}}var J1=(t=>(t.Static="static",t.Dynamic="dynamic",t))(J1||{});const Ol=()=>({state:{code:"",theme:"theme-default",enableScopedTheming:!1,themeIconDot:!!localStorage.getItem(`${location.hostname}-zenuml-theme-icon-dot`),enableMultiTheme:!0,scale:1,selected:[],cursor:null,showTips:!1,mode:"dynamic",numbering:!!localStorage.getItem(`${location.hostname}-zenuml-numbering`),stickyOffset:0,diagramElement:null,onElementClick:t=>{console.log("Element clicked",t)},onMessageClick:()=>{},onContentChange:()=>{},onThemeChange:()=>{},onEventEmit:()=>{}},getters:{code:t=>t.code,rootContext:t=>Qp(t.code),title:(t,e)=>{var n,i;return(i=(n=e.rootContext)==null?void 0:n.title())==null?void 0:i.content()},participants:(t,e)=>d5(e.rootContext),coordinates:(t,e)=>new hm(e.rootContext,Xp),centerOf:(t,e)=>n=>{if(!n)return console.error("[@zenuml/core] centerOf: entity is undefined"),0;try{return e.coordinates.getPosition(n)||0}catch(i){return console.error(i),0}},GroupContext:()=>yl,ParticipantContext:()=>Rl,cursor:t=>t.cursor,distance:(t,e)=>(n,i)=>e.centerOf(n)-e.centerOf(i),distance2:(t,e)=>(n,i)=>!n||!i?0:e.centerOf(i)-e.centerOf(n),onElementClick:t=>t.onElementClick,onMessageClick:t=>t.onMessageClick,diagramElement:t=>t.diagramElement,onContentChange:t=>t.onContentChange,onThemeChange:t=>t.onThemeChange,onEventEmit:t=>t.onEventEmit},mutations:{code:function(t,e){t.code=e},setScale:function(t,e){t.scale=e},onSelect:function(t,e){t.selected.includes(e)?t.selected=t.selected.filter(n=>n!==e):t.selected.push(e)},cursor:function(t,e){t.cursor=e},toggleNumbering(t,e){e?localStorage.setItem(`${location.hostname}-zenuml-numbering`,"1"):localStorage.setItem(`${location.hostname}-zenuml-numbering`,""),t.numbering=e},setTheme:function(t,e){var n;t.theme=e,(n=t.onThemeChange)==null||n.call(t,{theme:e,scoped:!!t.enableScopedTheming})},setThemeIconDot:function(t,e){localStorage.setItem(`${location.hostname}-zenuml-theme-icon-dot`,e?"1":""),t.themeIconDot=e},setEnableScopedTheming:function(t,e){var n;t.enableScopedTheming=e,(n=t.onThemeChange)==null||n.call(t,{theme:t.theme,scoped:e})},eventEmit:function(t,e){var n;(n=t.onEventEmit)==null||n.call(t,e.event,e.data)},onEventEmit:function(t,e){t.onEventEmit=e},onMessageClick:function(t,e){t.onMessageClick=e},onContentChange:function(t,e){t.onContentChange=e},onThemeChange:function(t,e){t.onThemeChange=e},diagramElement:function(t,e){t.diagramElement=e}},actions:{updateCode:function({commit:t},e){if(typeof e=="string")throw Error("You are using a old version of vue-sequence. New version requires {code, cursor}.");e.code!==this.state.code&&t("code",e.code)}},strict:!1}),dm={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},fm=[v("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m12 8 8 4-8 4-8-4 8-4Z"},null,-1)];function Nl(t,e){return b(),U("svg",dm,fm)}const gm=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Nl},render:Nl},Symbol.toStringTag,{value:"Module"})),pm={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","aria-hidden":"true",viewBox:"0 0 24 24"},mm=[v("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 18 6M6 6l12 12"},null,-1)];function Dl(t,e){return b(),U("svg",pm,mm)}const wm=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Dl},render:Dl},Symbol.toStringTag,{value:"Module"})),xm={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round",viewBox:"0 0 24 24"},_m=[v("path",{d:"m14 10 7-7M20 10h-6V4M3 21l7-7M4 14h6v6"},null,-1)];function Pl(t,e){return b(),U("svg",xm,_m)}const vm=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Pl},render:Pl},Symbol.toStringTag,{value:"Module"})),Mm={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},ym=[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},[v("path",{d:"M3 17.3V21h3.7","data-name":"Right"}),v("path",{d:"m10 14-6.2 6.2M14 10l6.2-6.2"}),v("path",{d:"M21 6.7V3h-3.7","data-name":"Right"})],-1)];function Bl(t,e){return b(),U("svg",Mm,ym)}const Rm=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Bl},render:Bl},Symbol.toStringTag,{value:"Module"})),Am={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},km=[v("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m12 5 7 7-7 7-7-7 7-7ZM12 9v4M12 15v.5"},null,-1)];function zl(t,e){return b(),U("svg",Am,km)}const Zm=Object.freeze(Object.defineProperty({__proto__:null,default:{render:zl},render:zl},Symbol.toStringTag,{value:"Module"})),Tm={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},bm=[v("path",{d:"M6 3v12"},null,-1),v("circle",{cx:"18",cy:"6",r:"3"},null,-1),v("circle",{cx:"6",cy:"18",r:"3"},null,-1),v("path",{d:"M18 9a9 9 0 0 1-9 9"},null,-1)];function Ul(t,e){return b(),U("svg",Tm,bm)}const Sm=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Ul},render:Ul},Symbol.toStringTag,{value:"Module"})),Em={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 1024 1024"},Im=[v("path",{d:"m960 101.84-896.002.002c-35.344 0-64 28.656-64 64v576c0 35.36 28.656 64 64 64h160c20.496 0 32-26.32 32-31.984v-.016c0-5.824-10.88-32.416-32-32.416h-120.96c-21.376 0-38.72-17.344-38.72-38.72V206.002c0-21.391 17.328-38.72 38.72-38.72l818.272-1.007c21.376 0 38.72 17.328 38.72 38.72V702.69c0 21.376-17.344 38.72-38.72 38.72H518.142l75.984-68.912c9.344-8.944 12.369-23.408 3.025-32.336l-5.472-8.064c-9.376-8.945-24.496-8.945-33.84 0L428.111 750.53c-.192.16-.368.224-.528.368l-8.48 8.096c-4.672 4.431-7.008 10.335-6.976 16.223-.032 5.904 2.288 11.777 6.977 16.288l8.48 8.096c.16.16.368.192.528.336L555.84 915.44c9.344 8.944 24.464 8.944 33.84 0l5.472-8.065c9.344-8.944 6.32-23.44-3.025-32.368l-77.135-69.168H960c35.343 0 64-28.64 64-64v-576c0-35.344-28.657-64-64-64z"},null,-1)];function Wl(t,e){return b(),U("svg",Em,Im)}const Fm=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Wl},render:Wl},Symbol.toStringTag,{value:"Module"})),Om={xmlns:"http://www.w3.org/2000/svg",width:"30",height:"24",class:"arrow text-skin-message-arrow"},Nm=[v("path",{d:"M0 2h28v13H14",class:"line stroke-current fill-none stroke-2"},null,-1),v("path",{d:"M18 9 8 15l10 6",class:"head stroke-current fill-current stroke-2"},null,-1)];function $l(t,e){return b(),U("svg",Om,Nm)}const Dm=Object.freeze(Object.defineProperty({__proto__:null,default:{render:$l},render:$l},Symbol.toStringTag,{value:"Module"})),Pm={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",viewBox:"0 0 20 20"},Bm=[v("circle",{cx:"10",cy:"10",r:"10",fill:"#000","fill-opacity":".1"},null,-1)];function Hl(t,e){return b(),U("svg",Pm,Bm)}const zm=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Hl},render:Hl},Symbol.toStringTag,{value:"Module"})),Um={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 100 100"},Wm=[v("path",{fill:"#000",d:"M21.886 32.09V67H17.66V36.523h-.204l-8.523 5.659v-4.296l8.727-5.795h4.227Zm11.662 35.126a2.338 2.338 0 0 1-1.714-.715 2.338 2.338 0 0 1-.715-1.714c0-.666.239-1.237.715-1.714a2.338 2.338 0 0 1 1.714-.715c.666 0 1.237.238 1.714.715.477.477.715 1.048.715 1.714 0 .44-.112.846-.337 1.214a2.52 2.52 0 0 1-.877.891c-.36.216-.765.324-1.215.324Zm8.24-.216v-2.557l9.603-10.511a66.703 66.703 0 0 0 2.784-3.21c.73-.919 1.269-1.78 1.62-2.586a6.26 6.26 0 0 0 .54-2.556c0-1.023-.247-1.909-.74-2.657-.482-.748-1.145-1.326-1.988-1.733-.843-.407-1.79-.61-2.841-.61-1.117 0-2.093.232-2.926.696a4.792 4.792 0 0 0-1.918 1.917c-.445.824-.667 1.79-.667 2.898h-3.353c0-1.705.393-3.2 1.18-4.489a8.192 8.192 0 0 1 3.21-3.011c1.363-.72 2.892-1.08 4.588-1.08 1.704 0 3.215.36 4.53 1.08 1.317.72 2.35 1.69 3.098 2.912.748 1.221 1.122 2.58 1.122 4.077 0 1.07-.195 2.116-.583 3.139-.379 1.013-1.041 2.145-1.988 3.395-.938 1.24-2.24 2.755-3.907 4.545l-6.534 6.989v.227h13.523V67H41.789Zm26.444.216a2.338 2.338 0 0 1-1.714-.715 2.338 2.338 0 0 1-.715-1.714c0-.666.238-1.237.715-1.714a2.338 2.338 0 0 1 1.714-.715c.666 0 1.237.238 1.714.715.477.477.715 1.048.715 1.714 0 .44-.113.846-.338 1.214a2.52 2.52 0 0 1-.877.891c-.36.216-.764.324-1.214.324Zm15.502.102c-1.5 0-2.837-.257-4.012-.772-1.166-.516-2.094-1.232-2.784-2.148-.682-.924-1.053-1.996-1.113-3.216h2.863c.06.75.318 1.398.773 1.943.454.538 1.05.954 1.784 1.25.735.296 1.55.443 2.443.443 1 0 1.887-.174 2.66-.522.772-.349 1.378-.834 1.817-1.455.44-.621.66-1.341.66-2.16 0-.855-.213-1.609-.637-2.26-.424-.66-1.045-1.175-1.863-1.546-.819-.371-1.819-.557-3-.557H81.46v-2.5h1.864c.924 0 1.734-.166 2.431-.5.705-.333 1.254-.803 1.648-1.409.402-.606.602-1.318.602-2.136 0-.788-.174-1.474-.522-2.057a3.575 3.575 0 0 0-1.478-1.364c-.628-.325-1.37-.488-2.227-.488-.803 0-1.56.147-2.273.443a4.234 4.234 0 0 0-1.727 1.261c-.447.546-.69 1.205-.727 1.977h-2.727c.045-1.22.412-2.287 1.102-3.204.69-.924 1.59-1.644 2.704-2.16 1.122-.514 2.353-.772 3.694-.772 1.439 0 2.674.292 3.704.875 1.03.576 1.822 1.337 2.375 2.284.553.947.83 1.97.83 3.068 0 1.311-.345 2.428-1.034 3.353-.682.924-1.61 1.564-2.785 1.92v.182c1.47.242 2.618.867 3.444 1.875.825 1 1.238 2.239 1.238 3.716 0 1.265-.344 2.401-1.034 3.409-.682 1-1.613 1.788-2.795 2.364-1.182.575-2.527.863-4.034.863Z"},null,-1),v("path",{fill:"#000",d:"M21.886 32.09h1v-1h-1v1Zm0 34.91v1h1v-1h-1Zm-4.227 0h-1v1h1v-1Zm0-30.477h1v-1h-1v1Zm-.204 0v-1h-.302l-.252.167.553.833Zm-8.523 5.659h-1v1.864l1.553-1.031-.553-.833Zm0-4.296-.553-.833-.447.297v.536h1Zm8.727-5.795v-1h-.302l-.251.167.553.833Zm3.227 0V67h2V32.09h-2Zm1 33.909H17.66v2h4.227v-2Zm-3.227 1V36.523h-2V67h2Zm-1-31.477h-.204v2h.204v-2Zm-.758.167L8.38 41.349l1.106 1.666 8.523-5.66L16.9 35.69Zm-6.97 6.492v-4.296h-2v4.296h2Zm-.446-3.463 8.727-5.795-1.106-1.666-8.727 5.795 1.106 1.666Zm8.174-5.628h4.227v-2H17.66v2ZM31.834 66.5l.708-.707-.708.707Zm0-3.428-.707-.707.707.707Zm3.428 0 .707-.707-.707.707Zm.378 2.928-.854-.52-.005.008-.004.007.863.505Zm-.877.891.514.858.006-.004-.52-.854Zm-1.215-.676a1.34 1.34 0 0 1-1.006-.422l-1.415 1.414a3.337 3.337 0 0 0 2.421 1.008v-2Zm-1.006-.422a1.34 1.34 0 0 1-.423-1.007h-2c0 .935.347 1.76 1.008 2.42l1.415-1.413Zm-.423-1.007c0-.397.13-.715.423-1.007l-1.415-1.414a3.337 3.337 0 0 0-1.008 2.42h2Zm.423-1.007a1.34 1.34 0 0 1 1.006-.422v-2c-.934 0-1.759.346-2.42 1.008l1.414 1.414Zm1.006-.422c.397 0 .715.13 1.007.422l1.414-1.414a3.337 3.337 0 0 0-2.42-1.008v2Zm1.007.422c.292.292.422.61.422 1.007h2c0-.935-.346-1.76-1.008-2.421l-1.414 1.414Zm.422 1.007c0 .261-.064.485-.19.694l1.707 1.041a3.288 3.288 0 0 0 .483-1.735h-2Zm-.2.71a1.52 1.52 0 0 1-.535.541l1.041 1.708c.509-.31.92-.726 1.22-1.24l-1.726-1.01Zm-.529.538a1.317 1.317 0 0 1-.7.18v2c.618 0 1.203-.15 1.73-.466l-1.03-1.714Zm7.54.965h-1v1h1v-1Zm0-2.557-.738-.674-.261.286v.388h1Zm9.603-10.511-.738-.675.738.675Zm2.784-3.21.78.625.003-.004-.783-.621Zm1.62-2.586-.915-.404-.003.005.917.4Zm-.2-5.213-.84.543.005.007.836-.55Zm-1.988-1.733.435-.9-.435.9Zm-5.767.086.483.875.003-.002-.486-.873Zm-1.918 1.917-.875-.483-.005.008.88.475Zm-.667 2.898v1h1v-1h-1Zm-3.353 0h-1v1h1v-1Zm1.18-4.489.853.521-.854-.52Zm3.21-3.011-.467-.885-.003.002.47.883Zm9.119 0 .48-.877-.48.877Zm3.096 2.912-.852.522.852-.522Zm.54 7.216-.935-.355-.002.005.937.35Zm-1.988 3.395-.797-.604h-.001l.798.604Zm-3.907 4.545.73.683.002-.001-.732-.682Zm-6.534 6.989-.73-.683-.27.288v.395h1Zm0 .227h-1v1h1v-1Zm13.523 0h1v-1h-1v1Zm0 3.125v1h1v-1h-1Zm-17.352 0v-2.557h-2V67h2Zm-.262-1.882 9.602-10.512-1.476-1.349L41.05 63.77l1.477 1.349Zm9.602-10.511a67.671 67.671 0 0 0 2.826-3.26l-1.56-1.251a65.769 65.769 0 0 1-2.742 3.16l1.476 1.351Zm2.83-3.264c.766-.965 1.358-1.901 1.752-2.808l-1.834-.798c-.306.704-.793 1.491-1.485 2.363l1.566 1.243Zm1.75-2.803a7.259 7.259 0 0 0 .625-2.96h-2c0 .75-.15 1.465-.454 2.152l1.83.809Zm.625-2.96c0-1.19-.289-2.273-.903-3.206l-1.67 1.1c.37.562.573 1.25.573 2.106h2Zm-.898-3.2a5.792 5.792 0 0 0-2.394-2.09l-.87 1.8c.686.332 1.205.79 1.583 1.376l1.68-1.085Zm-2.394-2.09c-.994-.48-2.093-.71-3.276-.71v2c.92 0 1.715.177 2.406.51l.87-1.8Zm-3.276-.71c-1.258 0-2.407.262-3.413.822l.973 1.747c.661-.368 1.463-.57 2.44-.57v-2Zm-3.41.82a5.791 5.791 0 0 0-2.31 2.31l1.752.966a3.792 3.792 0 0 1 1.525-1.525l-.966-1.751Zm-2.314 2.318c-.537.994-.787 2.13-.787 3.373h2c0-.973.194-1.77.547-2.422l-1.76-.951Zm.213 2.373h-3.353v2h3.353v-2Zm-2.353 1c0-1.545.355-2.856 1.033-3.968l-1.707-1.042c-.894 1.465-1.326 3.146-1.326 5.01h2Zm1.033-3.968a7.193 7.193 0 0 1 2.826-2.65l-.939-1.765a9.192 9.192 0 0 0-3.594 3.373l1.707 1.042Zm2.823-2.648c1.206-.636 2.573-.964 4.122-.964v-2c-1.842 0-3.534.393-5.055 1.195l.933 1.77Zm4.122-.964c1.56 0 2.901.328 4.051.957l.96-1.755c-1.483-.81-3.162-1.202-5.011-1.202v2Zm4.051.957c1.17.64 2.071 1.492 2.724 2.557l1.705-1.044c-.843-1.378-2.007-2.468-3.47-3.267l-.959 1.754Zm2.724 2.557c.647 1.057.975 2.234.975 3.555h2c0-1.672-.421-3.213-1.27-4.6l-1.705 1.045Zm.975 3.555c0 .946-.172 1.872-.518 2.784l1.87.71c.43-1.134.648-2.3.648-3.494h-2Zm-.52 2.789c-.333.891-.936 1.937-1.849 3.14l1.595 1.209c.981-1.296 1.704-2.514 2.128-3.65l-1.873-.7Zm-1.85 3.142c-.908 1.202-2.185 2.69-3.84 4.467l1.464 1.363c1.679-1.803 3.006-3.346 3.972-4.624l-1.595-1.206Zm-3.838 4.465-6.534 6.989 1.46 1.366 6.535-6.989-1.461-1.366Zm-6.804 7.672v.227h2v-.227h-2Zm1 1.227h13.523v-2H46.618v2Zm12.523-1V67h2v-3.125h-2Zm1 2.125H41.789v2H60.14v-2Zm6.377.5.707-.706-.707.707Zm0-3.427-.707-.707.707.707Zm3.428 0 .707-.707-.707.707Zm.377 2.928-.853-.52-.005.008-.005.007.864.505Zm-.877.891.515.858.006-.004-.52-.854Zm-1.214-.676a1.34 1.34 0 0 1-1.007-.422l-1.414 1.414a3.337 3.337 0 0 0 2.42 1.008v-2Zm-1.007-.422a1.34 1.34 0 0 1-.422-1.007h-2c0 .935.346 1.76 1.008 2.42l1.414-1.413Zm-.422-1.007c0-.397.13-.715.422-1.007l-1.414-1.414a3.337 3.337 0 0 0-1.008 2.42h2Zm.422-1.007a1.34 1.34 0 0 1 1.007-.422v-2c-.935 0-1.76.346-2.421 1.008l1.414 1.414Zm1.007-.422c.397 0 .715.13 1.007.422l1.414-1.414a3.337 3.337 0 0 0-2.421-1.008v2Zm1.007.422c.291.292.422.61.422 1.007h2c0-.935-.347-1.76-1.008-2.421l-1.414 1.414Zm.422 1.007c0 .261-.064.485-.191.694l1.707 1.041a3.288 3.288 0 0 0 .484-1.735h-2Zm-.2.71a1.52 1.52 0 0 1-.535.541l1.041 1.708a3.52 3.52 0 0 0 1.22-1.24l-1.727-1.01Zm-.53.538a1.317 1.317 0 0 1-.7.18v2c.618 0 1.203-.15 1.73-.466l-1.03-1.714Zm10.791.51-.404.915.003.001.401-.915Zm-2.784-2.147-.805.593.006.008.8-.601Zm-1.113-3.216v-1h-1.051l.052 1.05.999-.05Zm2.863 0 .997-.08-.074-.92h-.923v1Zm.773 1.943-.768.64.004.005.764-.645Zm1.784 1.25-.373.928.373-.928Zm6.92-1.534-.816-.578.816.578Zm.023-4.42-.84.54.002.005.838-.546Zm-1.863-1.546-.414.91.414-.91Zm-4.864-.557h-1v1h1v-1Zm0-2.5v-1h-1v1h1Zm4.295-.5-.427-.904-.004.002.431.902Zm1.648-1.409-.834-.552-.004.007.838.545Zm.08-4.193.858-.513-.858.513Zm-1.478-1.364-.46.888.005.002.455-.89Zm-4.5-.045.379.925.005-.002-.384-.923Zm-1.727 1.261.774.634.004-.005-.778-.629Zm-.727 1.977v1h.952l.047-.95-1-.05Zm-2.727 0-1-.037-.038 1.037h1.038v-1Zm1.102-3.204.8.601.001-.003-.801-.598Zm2.704-2.16-.417-.908-.002.001.42.908Zm7.398.103-.493.87.005.003.488-.873Zm2.375 2.284-.863.505.863-.505Zm-.204 6.42-.802-.597-.003.004.805.594Zm-2.785 1.921-.29-.957-.71.215v.742h1Zm0 .182h-1v.849l.838.138.162-.987Zm3.444 1.875-.774.634.003.003.77-.637Zm.204 7.125-.825-.565-.001.002.826.563Zm-2.795 2.364.438.898-.438-.898Zm-4.034-.137c-1.385 0-2.582-.237-3.61-.688l-.803 1.831c1.32.58 2.798.857 4.413.857v-2Zm-3.608-.687c-1.028-.454-1.813-1.07-2.389-1.834l-1.598 1.202c.803 1.068 1.874 1.885 3.18 2.461l.807-1.83Zm-2.383-1.827c-.558-.756-.868-1.636-.92-2.672l-1.997.1c.07 1.403.501 2.667 1.308 3.76l1.609-1.188Zm-1.918-1.622h2.863v-2h-2.863v2Zm1.867-.92c.076.943.406 1.79 1 2.503l1.537-1.28c-.314-.377-.499-.826-.544-1.384l-1.993.161Zm1.005 2.508c.572.678 1.308 1.184 2.175 1.533l.746-1.856c-.603-.242-1.056-.569-1.393-.968l-1.528 1.291Zm2.175 1.533c.868.349 1.81.515 2.816.515v-2c-.782 0-1.468-.129-2.07-.37l-.746 1.855Zm2.816.515c1.117 0 2.147-.195 3.07-.611l-.822-1.823c-.622.28-1.364.434-2.248.434v2Zm3.07-.611c.917-.413 1.67-1.006 2.224-1.789l-1.633-1.155c-.325.46-.784.837-1.413 1.12l.822 1.824Zm2.224-1.789c.568-.803.843-1.728.843-2.736h-2c0 .628-.165 1.142-.476 1.581l1.633 1.155Zm.843-2.736c0-1.03-.258-1.977-.799-2.807l-1.676 1.091c.308.473.475 1.033.475 1.716h2Zm-.796-2.803c-.543-.843-1.324-1.476-2.291-1.915l-.827 1.822c.67.303 1.13.701 1.436 1.176l1.682-1.083Zm-2.291-1.915c-.982-.445-2.132-.646-3.413-.646v2c1.082 0 1.932.17 2.586.468l.827-1.822Zm-3.413-.646H81.46v2h1.864v-2Zm-.864 1v-2.5h-2v2.5h2Zm-1-1.5h1.864v-2H81.46v2Zm1.864 0c1.044 0 2.007-.188 2.863-.598l-.863-1.804c-.538.258-1.197.402-2 .402v2Zm2.86-.596c.858-.406 1.555-.994 2.058-1.768l-1.677-1.09c-.285.439-.687.79-1.237 1.05l.855 1.808Zm2.053-1.76c.523-.79.768-1.7.768-2.69h-2c0 .648-.156 1.163-.436 1.585l1.668 1.104Zm.768-2.69c0-.938-.209-1.807-.664-2.569l-1.717 1.026c.242.405.381.907.381 1.544h2Zm-.664-2.569a4.575 4.575 0 0 0-1.88-1.74l-.911 1.78c.478.244.827.572 1.074.986l1.717-1.026Zm-1.876-1.739c-.797-.413-1.704-.6-2.687-.6v2c.73 0 1.308.138 1.767.376l.92-1.776Zm-2.687-.6a6.87 6.87 0 0 0-2.656.52l.767 1.846a4.87 4.87 0 0 1 1.89-.366v-2Zm-2.65.517A5.232 5.232 0 0 0 79 46.94l1.556 1.257a3.234 3.234 0 0 1 1.328-.965l-.757-1.85Zm-2.123 1.553c-.596.728-.906 1.598-.953 2.563l1.998.097c.028-.58.204-1.029.502-1.392l-1.547-1.268Zm.046 1.611h-2.727v2h2.727v-2Zm-1.728 1.038c.038-1.03.343-1.898.902-2.641l-1.598-1.202c-.82 1.09-1.25 2.358-1.303 3.768l1.999.075Zm.904-2.644c.584-.782 1.35-1.4 2.323-1.85l-.84-1.815c-1.254.58-2.29 1.403-3.086 2.469l1.603 1.196Zm2.32-1.849c.98-.45 2.067-.68 3.277-.68v-2c-1.473 0-2.848.283-4.111.863l.835 1.817Zm3.277-.68c1.303 0 2.36.263 3.211.744l.986-1.74c-1.21-.685-2.622-1.005-4.197-1.005v2Zm3.216.747c.887.496 1.544 1.135 2 1.916l1.727-1.01c-.65-1.112-1.577-1.996-2.751-2.652l-.976 1.746Zm2 1.916a4.98 4.98 0 0 1 .693 2.563h2a6.98 6.98 0 0 0-.966-3.572l-1.727 1.008Zm.693 2.563c0 1.126-.293 2.026-.836 2.755l1.603 1.196c.836-1.12 1.233-2.455 1.233-3.95h-2Zm-.84 2.759c-.544.739-1.286 1.259-2.269 1.557l.58 1.914c1.366-.414 2.48-1.174 3.3-2.284l-1.61-1.187Zm-2.979 2.514v.182h2v-.182h-2Zm.838 1.169c1.266.208 2.182.729 2.832 1.522l1.547-1.268c-1.002-1.222-2.381-1.952-4.054-2.228l-.325 1.974Zm2.835 1.525c.657.796 1.01 1.8 1.01 3.079h2c0-1.676-.474-3.149-1.468-4.353l-1.542 1.274Zm1.01 3.079c0 1.071-.289 2.01-.86 2.844l1.65 1.13c.808-1.18 1.21-2.515 1.21-3.974h-2Zm-.861 2.846c-.575.844-1.368 1.521-2.407 2.028l.876 1.797c1.324-.645 2.395-1.543 3.183-2.699l-1.652-1.126Zm-2.407 2.028c-1.027.5-2.218.762-3.596.762v2c1.637 0 3.135-.313 4.472-.965l-.876-1.797Z"},null,-1)];function Vl(t,e){return b(),U("svg",Um,Wm)}const $m=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Vl},render:Vl},Symbol.toStringTag,{value:"Module"})),Hm={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Vm=[v("circle",{cx:"12",cy:"12",r:"7",stroke:"currentColor","stroke-dasharray":"3 2","stroke-linecap":"round","stroke-width":"1.5"},null,-1)];function Gl(t,e){return b(),U("svg",Hm,Vm)}const Gm=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Gl},render:Gl},Symbol.toStringTag,{value:"Module"})),jm={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},qm=[v("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M5 10h14M5 14h14"},null,-1)];function jl(t,e){return b(),U("svg",jm,qm)}const Km=Object.freeze(Object.defineProperty({__proto__:null,default:{render:jl},render:jl},Symbol.toStringTag,{value:"Module"})),Ym={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 214.27 214.27"},Qm=[v("path",{d:"M196.926 55.171c-.11-5.785-.215-11.25-.215-16.537a7.5 7.5 0 0 0-7.5-7.5c-32.075 0-56.496-9.218-76.852-29.01a7.498 7.498 0 0 0-10.457 0c-20.354 19.792-44.771 29.01-76.844 29.01a7.5 7.5 0 0 0-7.5 7.5c0 5.288-.104 10.755-.215 16.541-1.028 53.836-2.436 127.567 87.331 158.682a7.495 7.495 0 0 0 4.912 0c89.774-31.116 88.368-104.849 87.34-158.686zm-89.795 143.641c-76.987-27.967-75.823-89.232-74.79-143.351.062-3.248.122-6.396.164-9.482 30.04-1.268 54.062-10.371 74.626-28.285 20.566 17.914 44.592 27.018 74.634 28.285.042 3.085.102 6.231.164 9.477 1.032 54.121 2.195 115.388-74.798 143.356z"},null,-1),v("path",{d:"m132.958 81.082-36.199 36.197-15.447-15.447a7.501 7.501 0 0 0-10.606 10.607l20.75 20.75a7.477 7.477 0 0 0 5.303 2.196 7.477 7.477 0 0 0 5.303-2.196l41.501-41.5a7.498 7.498 0 0 0 .001-10.606 7.5 7.5 0 0 0-10.606-.001z"},null,-1)];function ql(t,e){return b(),U("svg",Ym,Qm)}const Xm=Object.freeze(Object.defineProperty({__proto__:null,default:{render:ql},render:ql},Symbol.toStringTag,{value:"Module"})),Jm={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},ew=[v("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M10 6h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8M10 6l-4 6 4 6"},null,-1)];function Kl(t,e){return b(),U("svg",Jm,ew)}const tw=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Kl},render:Kl},Symbol.toStringTag,{value:"Module"})),nw={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 15 15"},iw=[v("path",{fill:"currentColor","fill-rule":"evenodd",d:"M2 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM2 5v5h11V5H2Zm0-1a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H2Zm-.5 10a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM4 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM3.5 14a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM6 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM5.5 14a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM8 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM7.5 14a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM10 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM9.5 14a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM12 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM11.5 14a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM14 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM13.5 14a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z","clip-rule":"evenodd"},null,-1)];function Yl(t,e){return b(),U("svg",nw,iw)}const sw=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Yl},render:Yl},Symbol.toStringTag,{value:"Module"})),rw={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",viewBox:"0 0 20 20"},ow=[v("circle",{cx:"10",cy:"10",r:"10",fill:"#4f8cf7","fill-opacity":".2",class:"text-base"},null,-1),v("path",{stroke:"#4f8cf7","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m6 10 3 3 5-5"},null,-1)];function Ql(t,e){return b(),U("svg",rw,ow)}const lw=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Ql},render:Ql},Symbol.toStringTag,{value:"Module"})),Lw={xmlns:"http://www.w3.org/2000/svg",class:"grayscale h-4 w-4",viewBox:"0 0 1024 1024"},aw=[v("path",{fill:"currentColor",d:"M42.667 512C42.667 251.733 251.733 42.667 512 42.667s469.333 187.733 469.333 422.4c0 72.533-29.866 145.066-81.066 200.533-51.2 51.2-123.734 81.067-200.534 81.067H614.4c-12.8 0-25.6 12.8-29.867 25.6 0 8.533 4.267 17.066 8.534 21.333 21.333 21.333 29.866 46.933 29.866 76.8 0 64-51.2 110.933-115.2 115.2-256-4.267-465.066-213.333-465.066-473.6zM128 512c0 213.333 170.667 384 384 384 17.067 0 29.867-12.8 29.867-29.867 0-4.266 0-8.533-4.267-12.8l-4.267-4.266c-17.066-21.334-25.6-46.934-29.866-76.8 0-64 51.2-110.934 115.2-110.934H704c51.2 0 102.4-21.333 136.533-55.466 38.4-38.4 55.467-85.334 55.467-136.534C896 281.6 725.333 128 512 128S128 298.667 128 512zm593.067 21.333c-21.334-21.333-25.6-51.2-17.067-76.8 12.8-25.6 38.4-42.666 64-42.666 38.4 0 68.267 34.133 72.533 72.533 0 29.867-17.066 55.467-42.666 64-8.534 4.267-17.067 4.267-25.6 4.267-17.067 0-38.4-8.534-51.2-21.334zm-520.534 0c-21.333-21.333-25.6-51.2-17.066-76.8 12.8-25.6 38.4-42.666 64-42.666 38.4 0 68.266 34.133 72.533 72.533 0 29.867-17.067 55.467-42.667 64-8.533 4.267-17.066 4.267-25.6 4.267-21.333 0-38.4-8.534-51.2-21.334zM580.267 345.6c-21.334-21.333-25.6-51.2-17.067-76.8 12.8-25.6 38.4-42.667 64-42.667 38.4 0 68.267 34.134 72.533 72.534 0 29.866-17.066 55.466-42.666 64-8.534 4.266-17.067 4.266-25.6 4.266-21.334 0-38.4-8.533-51.2-21.333zm-238.934 0c-17.066-21.333-25.6-51.2-12.8-76.8 12.8-25.6 38.4-42.667 64-42.667 38.4 0 68.267 34.134 72.534 72.534 0 29.866-17.067 55.466-42.667 64l-29.867 4.266c-17.066 0-34.133-8.533-51.2-21.333z"},null,-1)];function Xl(t,e){return b(),U("svg",Lw,aw)}const cw=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Xl},render:Xl},Symbol.toStringTag,{value:"Module"})),Cw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},uw=[v("path",{fill:"currentColor",d:"M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512zm0-938.667C276.352 85.333 85.333 276.352 85.333 512S276.352 938.667 512 938.667 938.667 747.648 938.667 512A426.667 426.667 0 0 0 512 85.333zM512 768a42.667 42.667 0 0 1-42.368-42.667V469.76a42.368 42.368 0 1 1 84.693 0v255.573A42.41 42.41 0 0 1 512 768zm0-426.667a42.325 42.325 0 1 1-.085-84.65 42.325 42.325 0 0 1 .085 84.65zm42.325-42.666z"},null,-1)];function Jl(t,e){return b(),U("svg",Cw,uw)}const hw=Object.freeze(Object.defineProperty({__proto__:null,default:{render:Jl},render:Jl},Symbol.toStringTag,{value:"Module"})),dw={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",width:"24",height:"24",baseProfile:"full",viewBox:"0 0 76 76"},fw=[v("path",{fill:"currentColor",d:"M26 22h1v5h-1a5 5 0 0 0-5 5v14a5 5 0 0 0 5 5h1v-4l6.75 6.5L27 60v-4h-1c-5.523 0-10-4.477-10-10V32c0-5.523 4.477-10 10-10Zm7 5h26v5H33v-5Zm3 8h23v5H36v-5Zm-3 8h26v5H33v-5Z"},null,-1)];function eL(t,e){return b(),U("svg",dw,fw)}const gw=Object.freeze(Object.defineProperty({__proto__:null,default:{render:eL},render:eL},Symbol.toStringTag,{value:"Module"})),pw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mw=[v("path",{fill:"currentColor",d:"M945.067 898.133 755.2 708.267c55.467-64 87.467-149.334 87.467-241.067 0-204.8-168.534-373.333-373.334-373.333S96 264.533 96 469.333s168.533 373.334 373.333 373.334c91.734 0 174.934-34.134 241.067-87.467l189.867 189.867c6.4 6.4 14.933 8.533 23.466 8.533s17.067-2.133 23.467-8.533c8.533-12.8 8.533-34.134-2.133-46.934zM469.333 778.667C298.667 778.667 160 640 160 469.333S298.667 160 469.333 160s309.334 138.667 309.334 309.333S640 778.667 469.333 778.667z"},null,-1),v("path",{fill:"currentColor",d:"M597.333 437.333h-96v-96c0-17.066-14.933-32-32-32s-32 14.934-32 32v96h-96c-17.066 0-32 14.934-32 32s14.934 32 32 32h96v96c0 17.067 14.934 32 32 32s32-14.933 32-32v-96h96c17.067 0 32-14.933 32-32s-14.933-32-32-32z"},null,-1)];function tL(t,e){return b(),U("svg",pw,mw)}const ww=Object.freeze(Object.defineProperty({__proto__:null,default:{render:tL},render:tL},Symbol.toStringTag,{value:"Module"})),xw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_w=[v("path",{fill:"currentColor",d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"},null,-1),v("path",{fill:"currentColor",d:"M921 867 775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"},null,-1)];function nL(t,e){return b(),U("svg",xw,_w)}const vw=Object.freeze(Object.defineProperty({__proto__:null,default:{render:nL},render:nL},Symbol.toStringTag,{value:"Module"})),e3={__name:"Icon",props:{name:{type:String,required:!0},iconClass:{type:String,required:!1}},setup(t){const e=t,n=Object.assign({"./icons/alt-fragment.svg":gm,"./icons/close.svg":wm,"./icons/collapse-expanded.svg":vm,"./icons/collapse-unexpanded.svg":Rm,"./icons/critical-fragment.svg":Zm,"./icons/debug.svg":Sm,"./icons/loop-fragment.svg":Fm,"./icons/message-arrow.svg":Dm,"./icons/non-selected-cycle.svg":zm,"./icons/numbering.svg":$m,"./icons/opt-fragment.svg":Gm,"./icons/par-fragment.svg":Km,"./icons/privacy.svg":Xm,"./icons/ref-fragment.svg":tw,"./icons/section-fragment.svg":sw,"./icons/selected-cycle.svg":lw,"./icons/theme.svg":cw,"./icons/tip.svg":hw,"./icons/try-catch-fragment.svg":gw,"./icons/zoom-in.svg":ww,"./icons/zoom-out.svg":vw}),i=I(()=>{var r;const s=`./icons/${e.name}.svg`;return(r=n[s])==null?void 0:r.default});return(s,r)=>(b(),U("span",{class:M2(["flex items-center justify-center",t.iconClass]),onClick:r[0]||(r[0]=o=>s.$emit("icon-click"))},[(b(),Z2(m8(N(i))))],2))}},_z="",Y2=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},Mw={name:"Privacy",components:{Icon:e3}},yw={class:"privacy tooltip bottom whitespace-normal flex items-center","data-tooltip":"We (the vendor) do not have access to your data. The diagram is generated in this browser."};function Rw(t,e,n,i,s,r){const o=r2("Icon");return b(),U("div",null,[v("div",yw,[B(o,{name:"privacy","icon-class":"fill-current h-6 w-6 m-auto"})])])}const Aw=Y2(Mw,[["render",Rw],["__scopeId","data-v-3e7c8bd7"]]),kw={name:"DiagramTitle",props:["context"],computed:{title:function(){var t;return(t=this.context)==null?void 0:t.content()}}},Zw={class:"title text-skin-title text-base font-semibold"};function Tw(t,e,n,i,s,r){return b(),U("div",Zw,h1(r.title),1)}const bw=Y2(kw,[["render",Tw]]);class Sw{constructor(){this.events={}}on(e,n){this.events[e]||(this.events[e]=new Set),console.debug(`Event ${e} ${n} added`),console.debug(this.events),this.events[e].add(n)}off(e,n){var i;console.debug(`Event ${e} ${n} removed`),console.debug(this.events),(i=this.events[e])==null||i.delete(n)}emit(e,n){const i=this.events[e];i&&i.forEach(s=>s(n))}}const p7=new Sw;function Ew(t,e,n,i){const s={label:JSON.stringify(e),action:n,category:i};t.commit("eventEmit",{event:"trackEvent",data:s}),p7.emit("trackEvent",s)}var iL={exports:{}},Iw={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},sL={exports:{}},Fw=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},Ow=Fw,Nw=Array.prototype.concat,Dw=Array.prototype.slice,rL=sL.exports=function(e){for(var n=[],i=0,s=e.length;i<s;i++){var r=e[i];Ow(r)?n=Nw.call(n,Dw.call(r)):n.push(r)}return n};rL.wrap=function(t){return function(){return t(rL(arguments))}};var Pw=sL.exports,m7=Iw,g5=Pw,oL={};for(var $t in m7)m7.hasOwnProperty($t)&&(oL[m7[$t]]=$t);var A3=iL.exports={to:{},get:{}};A3.get=function(t){var e=t.substring(0,3).toLowerCase(),n,i;switch(e){case"hsl":n=A3.get.hsl(t),i="hsl";break;case"hwb":n=A3.get.hwb(t),i="hwb";break;default:n=A3.get.rgb(t),i="rgb";break}return n?{model:i,value:n}:null},A3.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,s=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=/(\D+)/,o=[0,0,0,1],l,L,a;if(l=t.match(n)){for(a=l[2],l=l[1],L=0;L<3;L++){var c=L*2;o[L]=parseInt(l.slice(c,c+2),16)}a&&(o[3]=parseInt(a,16)/255)}else if(l=t.match(e)){for(l=l[1],a=l[3],L=0;L<3;L++)o[L]=parseInt(l[L]+l[L],16);a&&(o[3]=parseInt(a+a,16)/255)}else if(l=t.match(i)){for(L=0;L<3;L++)o[L]=parseInt(l[L+1],0);l[4]&&(o[3]=parseFloat(l[4]))}else if(l=t.match(s)){for(L=0;L<3;L++)o[L]=Math.round(parseFloat(l[L+1])*2.55);l[4]&&(o[3]=parseFloat(l[4]))}else return(l=t.match(r))?l[1]==="transparent"?[0,0,0,0]:(o=m7[l[1]],o?(o[3]=1,o):null):null;for(L=0;L<3;L++)o[L]=q4(o[L],0,255);return o[3]=q4(o[3],0,1),o},A3.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),s=(parseFloat(n[1])+360)%360,r=q4(parseFloat(n[2]),0,100),o=q4(parseFloat(n[3]),0,100),l=q4(isNaN(i)?1:i,0,1);return[s,r,o,l]}return null},A3.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),s=(parseFloat(n[1])%360+360)%360,r=q4(parseFloat(n[2]),0,100),o=q4(parseFloat(n[3]),0,100),l=q4(isNaN(i)?1:i,0,1);return[s,r,o,l]}return null},A3.to.hex=function(){var t=g5(arguments);return"#"+w7(t[0])+w7(t[1])+w7(t[2])+(t[3]<1?w7(Math.round(t[3]*255)):"")},A3.to.rgb=function(){var t=g5(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},A3.to.rgb.percent=function(){var t=g5(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+i+"%)":"rgba("+e+"%, "+n+"%, "+i+"%, "+t[3]+")"},A3.to.hsl=function(){var t=g5(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},A3.to.hwb=function(){var t=g5(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},A3.to.keyword=function(t){return oL[t.slice(0,3)]};function q4(t,e,n){return Math.min(Math.max(e,t),n)}function w7(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var Bw=iL.exports;const lL=F1(Bw);function zw(t){const e=lL.get.rgb(t),[n,i,s]=e;return(n*299+i*587+s*114)/1e3}function Uw(t){const e=lL.get.rgb(t),[n,i,s]=e;return`rgb(${n}, ${i}, ${s})`}const Ww=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -3183,7 +3183,7 @@
3183
3183
  <path d="M15.027 20.771h-12.881c-0.484-1.541-0.724-3.151-0.719-4.771 0-1.667 0.24-3.265 0.719-4.771h21.147c2.64-0.011 4.781 2.131 4.776 4.771 0.015 2.625-2.109 4.765-4.735 4.771zM14.427 22.375h-11.692c1.229 2.823 3.265 5.224 5.853 6.907 2.589 1.719 5.636 2.636 8.745 2.625 5.531 0 10.375-2.828 13.24-7.068-1.521-1.573-3.609-2.469-5.803-2.479zM24.771 9.64c2.271 0 4.333-0.957 5.803-2.468-3.24-4.828-8.855-7.511-14.652-7-5.791 0.516-10.848 4.14-13.187 9.468z"/>
3184
3184
  </svg>`,auth0:`<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
3185
3185
  <svg width="800px" height="800px" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="none"><path fill="#000000" d="M12.549 1h-4.55l1.407 4.38h4.548l-3.68 2.61 1.406 4.405c2.37-1.725 3.143-4.336 2.274-7.016L12.55 1zM2.045 5.38h4.55L8 1H3.45L2.045 5.38c-.868 2.68-.094 5.29 2.275 7.015L5.725 7.99l-3.68-2.612zm2.275 7.015L8 15l3.68-2.605L8 9.745l-3.68 2.65z"/></svg>`,redis:`<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
3186
- <svg fill="#000000" width="800px" height="800px" viewBox="0 -2 28 28" xmlns="http://www.w3.org/2000/svg"><path d="m27.994 14.729c-.012.267-.365.566-1.091.945-1.495.778-9.236 3.967-10.883 4.821-.589.419-1.324.67-2.116.67-.641 0-1.243-.164-1.768-.452l.019.01c-1.304-.622-9.539-3.95-11.023-4.659-.741-.35-1.119-.653-1.132-.933v2.83c0 .282.39.583 1.132.933 1.484.709 9.722 4.037 11.023 4.659.504.277 1.105.44 1.744.44.795 0 1.531-.252 2.132-.681l-.011.008c1.647-.859 9.388-4.041 10.883-4.821.76-.396 1.096-.7 1.096-.982s0-2.791 0-2.791z"/><path d="m27.992 10.115c-.013.267-.365.565-1.09.944-1.495.778-9.236 3.967-10.883 4.821-.59.421-1.326.672-2.121.672-.639 0-1.24-.163-1.763-.449l.019.01c-1.304-.627-9.539-3.955-11.023-4.664-.741-.35-1.119-.653-1.132-.933v2.83c0 .282.39.583 1.132.933 1.484.709 9.721 4.037 11.023 4.659.506.278 1.108.442 1.749.442.793 0 1.527-.251 2.128-.677l-.011.008c1.647-.859 9.388-4.043 10.883-4.821.76-.397 1.096-.7 1.096-.984s0-2.791 0-2.791z"/><path d="m27.992 5.329c.014-.285-.358-.534-1.107-.81-1.451-.533-9.152-3.596-10.624-4.136-.528-.242-1.144-.383-1.794-.383-.734 0-1.426.18-2.035.498l.024-.012c-1.731.622-9.924 3.835-11.381 4.405-.729.287-1.086.552-1.073.834v2.83c0 .282.39.583 1.132.933 1.484.709 9.721 4.038 11.023 4.66.504.277 1.105.439 1.744.439.795 0 1.531-.252 2.133-.68l-.011.008c1.647-.859 9.388-4.043 10.883-4.821.76-.397 1.096-.7 1.096-.984s0-2.791 0-2.791h-.009zm-17.967 2.684 6.488-.996-1.96 2.874zm14.351-2.588-4.253 1.68-3.835-1.523 4.246-1.679 3.838 1.517zm-11.265-2.785-.628-1.157 1.958.765 1.846-.604-.499 1.196 1.881.7-2.426.252-.543 1.311-.879-1.457-2.8-.252 2.091-.754zm-4.827 1.632c1.916 0 3.467.602 3.467 1.344s-1.559 1.344-3.467 1.344-3.474-.603-3.474-1.344 1.553-1.344 3.474-1.344z"/></svg>`};function ML(){const t=a2(0),e=a2(0),n=()=>{t.value=document.documentElement.scrollTop,e.value=document.documentElement.scrollLeft};return J2(()=>{n(),document.addEventListener("scroll",n)}),_1(()=>{document.removeEventListener("scroll",n)}),[t,e]}const jt=10,ek=1,yL=20;function tk(){let t=document.getElementById("zenuml-intersection-detector-container"),e=Array.from(document.getElementsByClassName("zenuml-intersection-detector"));return t&&e.length===jt?{detectorContainer:t,detectors:e}:(t=document.createElement("div"),t.id="zenuml-intersection-detector-container",Object.assign(t.style,{position:"absolute",top:"0",left:"0",opacity:"0",pointerEvents:"none"}),e=new Array(jt).fill(0).map(()=>{const n=document.createElement("div");return n.className="zenuml-intersection-detector",Object.assign(n.style,{position:"absolute",top:"0",left:"0",width:"100%"}),t==null||t.appendChild(n),n}),document.body.appendChild(t),{detectorContainer:t,detectors:e})}function RL(){const t=a2(0);let e;return J2(()=>{const{detectorContainer:n,detectors:i}=tk(),s=document.documentElement.scrollHeight-yL,r=document.documentElement.scrollWidth-yL;n.style.height=s+"px",n.style.width=r+"px";const o=Math.ceil(document.documentElement.scrollHeight/jt),l=[...Array(o+1).keys()].map(L=>L/o).filter(L=>L>=0&&L<=1);i.forEach((L,a)=>{L.style.top=a*o+"px",L.style.height=o+"px"}),e=new IntersectionObserver(([L])=>{(L.intersectionRect.top-L.boundingClientRect.top>ek||L.target===i[0])&&(t.value=L.intersectionRect.top)},{threshold:l}),i.forEach(L=>{e.observe(L)})}),_1(()=>{e==null||e.disconnect()}),t}function qt(t){let e=0,n=t;for(;n;)e+=n.offsetTop,n=n.offsetParent;return e}const p5=/[!@#$%^&*()+-,.?''":{}|<>/\s]/,x7=t=>{const e=a2(!1);function n(l){e.value=l}async function i(l){l.preventDefault(),l.stopPropagation(),n(!0),await _4();const L=document.createRange();if(!l.target)return;L.selectNodeContents(l.target),L.collapse(!1);const a=window.getSelection();a&&(a==null||a.removeAllRanges(),a==null||a.addRange(L))}async function s(l){await _4(),e.value&&(n(!1),t(l))}function r(l){l.key==="Enter"&&(l.preventDefault(),l.stopPropagation())}function o(l){(l.key==="Enter"||l.key==="Escape"||l.key==="Tab")&&(n(!1),t(l))}return{editing:e,handleDblClick:i,handleBlur:s,handleKeydown:r,handleKeyup:o}},nk={class:"flex items-center justify-center"},ik=["contenteditable"],sk=v("span",null,":",-1),rk=["contenteditable"],ok=G2({__name:"ParticipantLabel",props:{labelText:null,labelPositions:null,assignee:null,assigneePositions:null},setup(t){const e=t,n=["Missing Constructor","ZenUML"],{labelText:i,labelPositions:s,assigneePositions:r}=l9(e),o=I3(),l=I(()=>o.state.mode),L=I(()=>o.getters.code),a=I(()=>o.getters.onContentChange||(()=>{}));function c(f){o.dispatch("updateCode",{code:f}),a.value(f)}function C(f){return function(m){m.preventDefault(),m.stopPropagation();const _=m.target;if(!(_ instanceof HTMLElement))return;let p=_.innerText.trim()??"";if(p===""||p===i.value){_.innerText=i.value;return}if(p.includes(" ")&&(p=p.replace(/\s+/g," ")),p5.test(p)&&(p=p.replace(/"/g,""),p=`"${p}"`,p5.lastIndex=0),!f||f.length===0)return;let g=L.value;for(const w of f){const[y,k]=w;g=g.slice(0,y)+p+g.slice(k)}c(g)}}const u=x7(C((s==null?void 0:s.value)??[])),d=x7(C((r==null?void 0:r.value)??[]));return(f,m)=>(b(),U("div",nk,[t.assignee?(b(),U(B2,{key:0},[v("label",{title:"Double click to edit",class:M2(["name px-1 leading-4 cursor-text right hover:text-skin-message-hover hover:bg-skin-message-hover",{"py-1 cursor-text":N(d).editing}]),contenteditable:N(d).editing&&N(l)===N(J1).Dynamic,onDblclick:m[0]||(m[0]=(..._)=>N(d).handleDblClick&&N(d).handleDblClick(..._)),onBlur:m[1]||(m[1]=(..._)=>N(d).handleBlur&&N(d).handleBlur(..._)),onKeyup:m[2]||(m[2]=(..._)=>N(d).handleKeyup&&N(d).handleKeyup(..._)),onKeydown:m[3]||(m[3]=(..._)=>N(d).handleKeydown&&N(d).handleKeydown(..._))},h1(t.assignee),43,ik),sk],64)):x2("",!0),v("label",{title:"Double click to edit",class:M2(["name px-1 leading-4 cursor-text right hover:text-skin-message-hover hover:bg-skin-message-hover",{"py-1 cursor-text":N(u).editing}]),contenteditable:N(u).editing&&N(l)===N(J1).Dynamic&&n.indexOf(N(i))===-1,onDblclick:m[4]||(m[4]=(..._)=>N(u).handleDblClick&&N(u).handleDblClick(..._)),onBlur:m[5]||(m[5]=(..._)=>N(u).handleBlur&&N(u).handleBlur(..._)),onKeyup:m[6]||(m[6]=(..._)=>N(u).handleKeyup&&N(u).handleKeyup(..._)),onKeydown:m[7]||(m[7]=(..._)=>N(u).handleKeydown&&N(u).handleKeydown(..._))},h1(N(i)),43,rk)]))}}),lk=10,Lk={name:"Participant",components:{ParticipantLabel:ok},setup(t){const e=I3(),n=a2(null);if(e.state.mode===J1.Static)return{translate:0,participant:n};const i=I(()=>{const L=e.getters.participants.GetPositions(t.entity.name);return Array.from(L??[]).sort((c,C)=>C[0]-c[0])}),s=I(()=>{const L=e.getters.participants.GetAssigneePositions(t.entity.name);return Array.from(L??[]).sort((c,C)=>C[0]-c[0])}),r=RL(),[o]=ML();return{translate:I(()=>{var u;const L=t.offsetTop2||0;let a=r.value+o.value;r.value>lk&&(e!=null&&e.state.stickyOffset)&&(a+=e==null?void 0:e.state.stickyOffset);const c=((u=e==null?void 0:e.state.diagramElement)==null?void 0:u.clientHeight)||0,C=e!=null&&e.state.diagramElement?qt(e==null?void 0:e.state.diagramElement):0;return a<L+C?0:Math.min(a-C,c-Sl)-L}),participant:n,labelPositions:i,assigneePositions:s}},props:{entity:{type:Object,required:!0},offsetTop2:{type:Number,default:0}},data(){return{color:void 0}},mounted(){this.updateFontColor()},updated(){this.updateFontColor()},computed:{isDefaultStarter(){return this.entity.name===X1},selected(){return this.$store.state.selected.includes(this.entity.name)},stereotype(){return this.entity.stereotype},labelText(){return this.entity.assignee?this.entity.name.split(":")[1]:this.entity.label||this.entity.name},comment(){return this.entity.comment},icon(){var t;return this.isDefaultStarter?Gt.actor:Gt[(t=this.entity.type)==null?void 0:t.toLowerCase()]},backgroundColor(){try{return this.entity.color?this.entity.color&&Uw(this.entity.color):void 0}catch{return}}},methods:{onSelect(){this.$store.commit("onSelect",this.entity.name)},updateFontColor(){if(!this.entity.color){this.color=void 0;return}let t=window.getComputedStyle(this.$refs.participant).getPropertyValue("background-color");if(!t){this.color=void 0;return}let e=zw(t);this.color=e>128?"#000":"#fff"}}},ak={class:"flex items-center justify-center"},ck=["innerHTML","aria-description"],Ck={key:1,class:"h-5 group flex flex-col justify-center"},uk={key:0,class:"interface leading-4"};function hk(t,e,n,i,s,r){const o=r2("ParticipantLabel");return b(),U("div",{class:M2(["participant bg-skin-participant shadow-participant border-skin-participant text-skin-participant rounded text-base leading-4 flex flex-col justify-center z-10 h-10 top-8",{selected:r.selected}]),ref:"participant",style:v2({backgroundColor:r.isDefaultStarter?void 0:r.backgroundColor,color:r.isDefaultStarter?void 0:s.color,transform:`translateY(${i.translate}px)`}),onClick:e[0]||(e[0]=(...l)=>r.onSelect&&r.onSelect(...l))},[v("div",ak,[r.icon?(b(),U("div",{key:0,innerHTML:r.icon,class:"h-6 w-6 mr-1 flex-shrink-0 [&>svg]:w-full [&>svg]:h-full","aria-description":`icon for ${n.entity.name}`},null,8,ck)):x2("",!0),r.isDefaultStarter?x2("",!0):(b(),U("div",Ck,[r.stereotype?(b(),U("label",uk,"«"+h1(r.stereotype)+"»",1)):x2("",!0),B(o,{labelText:r.labelText,labelPositions:i.labelPositions,assignee:n.entity.assignee,assigneePositions:i.assigneePositions},null,8,["labelText","labelPositions","assignee","assigneePositions"])]))])],6)}const AL=Y2(Lk,[["render",hk]]),CW="",m5=V5.child({name:"LifeLine"}),dk={name:"life-line",components:{Participant:AL},props:["entity","context","groupLeft","inGroup","renderParticipants","renderLifeLine"],data:()=>({translateX:0,top:24}),computed:{...M3(["centerOf"]),...D8(["scale"]),debug(){return!!localStorage.zenumlDebug},left(){return this.centerOf(this.entity.name)-(this.groupLeft||0)}},mounted(){m5.debug(`LifeLine mounted for ${this.entity.name}`),this.$nextTick(()=>{this.setTop(),m5.debug(`nextTick after updated for ${this.entity.name}`)}),p7.on("participant_set_top",()=>this.$nextTick(()=>this.setTop()))},updated(){m5.debug(`updated for ${this.entity.name}`),this.$nextTick(()=>{this.setTop(),m5.debug(`nextTick after updated for ${this.entity.name}`)})},methods:{onSelect(){this.$store.commit("onSelect",this.entity.name)},setTop(){var s;const t=this.entity.name.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g,"\\$1"),e=this.$store.getters.diagramElement,n=e==null?void 0:e.querySelector(`[data-to="${t}"]`),i=(n==null?void 0:n.offsetParent)!=null;if(n&&((s=n.attributes["data-type"])==null?void 0:s.value)==="creation"&&i){m5.debug(`First message to ${this.entity.name} is creation`);const r=this.$el.getBoundingClientRect().y,o=n.getBoundingClientRect().y;this.top=(o-r)/this.scale}}}},fk=["id","entity-type"],gk={key:1,class:"line w0 mx-auto flex-grow w-px"};function pk(t,e,n,i,s,r){var l;const o=r2("participant");return b(),U("div",{id:n.entity.name,"entity-type":(l=n.entity.type)==null?void 0:l.toLowerCase(),class:M2(["lifeline absolute flex flex-col h-full",{"transform -translate-x-1/2":n.renderParticipants}]),style:v2({paddingTop:t.top+"px",left:r.left+"px"})},[n.renderParticipants?(b(),Z2(o,{key:0,entity:n.entity,offsetTop2:t.top},null,8,["entity","offsetTop2"])):x2("",!0),n.renderLifeLine?(b(),U("div",gk)):x2("",!0)],14,fk)}const kL=Y2(dk,[["render",pk],["__scopeId","data-v-f23e44f2"]]),ZL=2,mk={name:"lifeline-group",props:["context","renderParticipants","renderLifeLine"],computed:{...M3(["coordinates"]),name(){var t,e;return(e=(t=this.context)==null?void 0:t.name())==null?void 0:e.getFormattedText()},left(){const t=this.entities[0].name;return this.coordinates.left(t)+ZL},right(){const t=this.entities.slice(0).pop().name;return this.coordinates.right(t)-ZL},entities(){return d5(this.context).Array()}},methods:{},components:{LifeLine:kL}},wk={key:0,class:"z-10 absolute flex items-center justify-center w-full bg-skin-frame"},xk={class:"font-semibold text-skin-lifeline-group-name"},_k={class:"lifeline-group relative flex-grow"};function vk(t,e,n,i,s,r){const o=r2("life-line");return r.entities.length>0?(b(),U("div",{key:0,class:M2(["lifeline-group-container absolute flex flex-col flex-grow h-full",{"outline-dashed outline-skin-primary":n.renderLifeLine}]),style:v2({left:`${r.left}px`,width:`${r.right-r.left}px`})},[n.renderParticipants&&r.name?(b(),U("div",wk,[v("span",xk,h1(r.name),1)])):x2("",!0),v("div",_k,[(b(!0),U(B2,null,B3(r.entities,l=>(b(),Z2(o,{inGroup:"true",key:l.name,ref_for:!0,ref:l.name,entity:l,"group-left":r.left,"render-life-line":n.renderLifeLine,renderParticipants:n.renderParticipants},null,8,["entity","group-left","render-life-line","renderParticipants"]))),128))])],6)):x2("",!0)}const Mk=Y2(mk,[["render",vk]]),TL=V5.child({name:"LifeLineLayer"}),yk=70,Rk=10,Ak={name:"life-line-layer",props:["context","renderParticipants","renderLifeLine","leftGap"],setup(){const e=I3(),n=I(()=>e.state.mode);if(n.value===J1.static)return{translate:0,RenderMode:J1,mode:n};const i=RL(),[s]=ML();return{translate:I(()=>{var a;let o=i.value+s.value;i.value>Rk&&(e!=null&&e.state.stickyOffset)&&(o+=e==null?void 0:e.state.stickyOffset);const l=((a=e==null?void 0:e.state.diagramElement)==null?void 0:a.clientHeight)||0,L=e!=null&&e.state.diagramElement?qt(e==null?void 0:e.state.diagramElement):0;return o<=0+L?0:Math.min(o-L,l-yk)-0}),RenderMode:J1,mode:n}},computed:{...M3(["coordinates","participants","GroupContext","ParticipantContext","centerOf"]),participantNames(){return this.participants.Names()},debug(){return!!localStorage.zenumlDebug},starterParticipant(){const t=this.coordinates.orderedParticipantNames();return t.length===0?null:t[0]===X1?{...Jo,name:X1,explicit:!1,isStarter:!0}:null},starterOnTheLeft(){var t;return!!this.starterParticipant&&!((t=this.starterParticipant)!=null&&t.explicit)},implicitParticipants(){return this.participants.ImplicitArray()},explicitGroupAndParticipants(){var t;return(t=this.context)==null?void 0:t.children.filter(e=>{const n=e instanceof yl,i=e instanceof Rl;return n||i})}},methods:{...so(["increaseGeneration"]),getParticipantEntity(t){return d5(t).First()}},updated(){TL.debug("LifeLineLayer updated")},mounted(){TL.debug("LifeLineLayer mounted")},components:{LifeLine:kL,LifeLineGroup:Mk}},kk=["data-participant-names"],Zk={class:"z-lifeline-container relative grow"};function Tk(t,e,n,i,s,r){const o=r2("life-line"),l=r2("life-line-group");return b(),U("div",{class:"life-line-layer lifeline-layer z-30 absolute h-full flex flex-col top-0 pt-2","data-participant-names":r.participantNames,style:v2({"min-width":i.mode===i.RenderMode.Dynamic?"200px":"auto",width:`calc(100% - ${n.leftGap}px)`,pointerEvents:n.renderParticipants?"none":"all"})},[v("div",Zk,[r.starterOnTheLeft?(b(),Z2(o,{key:0,entity:r.starterParticipant,class:"starter",renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["entity","renderParticipants","renderLifeLine"])):x2("",!0),(b(!0),U(B2,null,B3(r.explicitGroupAndParticipants,(L,a)=>(b(),U(B2,null,[L instanceof t.GroupContext?(b(),Z2(l,{key:a,context:L,renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["context","renderParticipants","renderLifeLine"])):x2("",!0),L instanceof t.ParticipantContext?(b(),Z2(o,{key:a,entity:r.getParticipantEntity(L),renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["entity","renderParticipants","renderLifeLine"])):x2("",!0)],64))),256)),(b(!0),U(B2,null,B3(r.implicitParticipants,L=>(b(),Z2(o,{key:L.name,entity:L,renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["entity","renderParticipants","renderLifeLine"]))),128))])],12,kk)}const Kt=Y2(Ak,[["render",Tk]]),bk={class:"message-layer relative z-30 pt-24 pb-10"},bL=G2({__name:"MessageLayer",props:{context:null},setup(t){const e=W0(()=>Promise.resolve().then(()=>iB)),n=V5.child({name:"MessageLayer"}),i=I3(),s=I(()=>i.getters.centerOf),r=I(()=>i.getters.rootContext),o=I(()=>s.value(l.value)+1),l=I(()=>{const L=f7(r.value);return L.length===0?X1:L[0].from||X1});return J2(()=>{n.debug("MessageLayer mounted")}),V0(()=>{n.debug("MessageLayer updated")}),(L,a)=>{const c=r2("block");return b(),U("div",bk,[B(c,{context:t.context,style:v2({"padding-left":N(o)+"px"}),origin:N(l)},null,8,["context","style","origin"]),B(N(e))])}}}),uW="";function _7(t){return[t.Origin()||X1,...d5(t).Names()]}const Sk=Z.tree.ParseTreeWalker.DEFAULT;class Yt extends T{constructor(e){super(),this.frameRoot=null,this.parents=[],this._orderedParticipants=e}getLocalParticipants(e){return[e.Origin()||X1,...d5(e).ImplicitArray().map(n=>n.name)]}getLeft(e){const n=_7(e);return this._orderedParticipants.find(i=>n.includes(i))||""}getRight(e){return this._orderedParticipants.slice().reverse().find(n=>_7(e).includes(n))||""}enterFragment(e,n){var s;const i={type:n,left:this.getLeft(e),right:this.getRight(e),children:[]};this.frameRoot||(this.frameRoot=i),this.parents.length>0&&((s=this.parents[this.parents.length-1].children)==null||s.push(i)),this.parents.push(i)}exitFragment(){this.parents.pop()}enterTcf(e){this.enterFragment(e,"tcf")}enterOpt(e){this.enterFragment(e,"opt")}enterPar(e){this.enterFragment(e,"par")}enterAlt(e){this.enterFragment(e,"alt")}enterLoop(e){this.enterFragment(e,"loop")}enterSection(e){this.enterFragment(e,"section")}enterCritical(e){this.enterFragment(e,"critical")}enterRef(e){this.enterFragment(e,"ref")}exitTcf(){this.exitFragment()}exitOpt(){this.exitFragment()}exitPar(){this.exitFragment()}exitAlt(){this.exitFragment()}exitLoop(){this.exitFragment()}exitSection(){this.exitFragment()}exitCritical(){this.exitFragment()}exitRef(){this.exitFragment()}getFrame(e){return e.children.map(n=>{Sk.walk(this,n)}),this.frameRoot}}function Qt(t,e){if(!t.children||t.children.length===0)return 1;let n=0;for(const i of t.children)e==="LEFT"&&i.left!==t.left||e==="RIGHT"&&i.right!==t.right||(n=Math.max(n,Qt(i,e)));return n+1}function Xt(t){return t?{type:t.type,left:Zl*Qt(t,"LEFT"),right:Zl*Qt(t,"RIGHT")}:{left:0,right:0}}function SL(t,e){const n=e.orderedParticipantNames(),i=_7(t),s=n.find(C=>i.includes(C))||"",r=n.slice().reverse().find(C=>i.includes(C))||"",l=new Yt(n).getFrame(t),L=Xt(l),a=Ek(t,r,e),c=e.distance(s,r)+e.half(s)+e.half(r);return Math.max(c,Tl)+L.left+L.right+a}function Ek(t,e,n){const s=f7(t).filter(r=>r.from===r.to).map(r=>n.getMessageWidth(r)-n.distance(r.from||X1,e)-n.half(e));return Math.max.apply(null,[0,...s])}const Jt=G2({__name:"SeqDiagram",setup(t){const e=I3(),n=I(()=>e.state.theme),i=I(()=>e.state.mode),s=I(()=>e.getters.rootContext),r=I(()=>e.getters.coordinates),o=I(()=>SL(s.value,r.value)-l.value),l=I(()=>{const a=r.value.orderedParticipantNames(),C=new Yt(a).getFrame(s.value);return C?Xt(C).left:0}),L=a2(null);return e.commit("diagramElement",L),(a,c)=>(b(),U("div",{class:M2(["zenuml sequence-diagram relative box-border text-left overflow-visible px-2.5",N(n)]),ref_key:"diagramRef",ref:L},[v("div",{style:v2({paddingLeft:`${N(l)}px`}),class:"relative z-container"},[N(i)===N(J1).Dynamic?(b(),U(B2,{key:0},[B(Kt,{leftGap:N(l),context:N(s).head(),renderParticipants:!1,renderLifeLine:!0},null,8,["leftGap","context"]),B(bL,{context:N(s).block(),style:v2({width:`${N(o)}px`})},null,8,["context","style"]),B(Kt,{leftGap:N(l),context:N(s).head(),renderParticipants:!0,renderLifeLine:!1},null,8,["leftGap","context"])],64)):x2("",!0),N(i)===N(J1).Static?(b(),U(B2,{key:1},[B(Kt,{leftGap:N(l),context:N(s).head(),renderParticipants:!0,renderLifeLine:!0},null,8,["leftGap","context"]),B(bL,{context:N(s).block(),style:v2({width:`${N(o)}px`})},null,8,["context","style"])],64)):x2("",!0)],4)],2))}}),hW="",Ik={name:"IconList",props:["types"],computed:{},methods:{icon(t){return Gt[t==null?void 0:t.toLowerCase()]}}},Fk={role:"list",class:"mt-3 grid grid-cols-4 gap-5 sm:gap-6 sm:grid-cols-6 lg:grid-cols-8"},Ok={class:"h-12 flex items-center justify-center bg-gray-50 text-sm font-medium rounded-t-md"},Nk=["innerHTML","alt"],Dk={class:"flex items-center justify-center border-t border-r border-b border-gray-200 bg-white rounded-b-md"},Pk={class:"px-2 py-2 text-xs"},Bk={class:"text-gray-900 font-medium hover:text-gray-600"};function zk(t,e,n,i,s,r){return b(),U("ul",Fk,[(b(!0),U(B2,null,B3(n.types,o=>(b(),U("li",{key:o,class:"col-span-1 flex flex-col shadow-sm rounded-md"},[v("div",Ok,[r.icon?(b(),U("i",{key:0,innerHTML:r.icon(o),class:"object-contain h-8 w-8 m-auto [&>svg]:w-full [&>svg]:h-full",alt:`icon for ${o}`},null,8,Nk)):x2("",!0)]),v("div",Dk,[v("div",Pk,[v("span",Bk,"@"+h1(o),1)])])]))),128))])}const Uk={name:"TipsDialog",components:{Icon:e3,IconList:Y2(Ik,[["render",zk]])},computed:{standardTypes(){return["Actor","Boundary","Control","Database","Entity"]},awsServices(){return["CloudWatch","CloudFront","Cognito","DynamoDB","EBS","EC2","ECS","EFS","ElastiCache","ElasticBeantalk","ElasticFileSystem","Glacier","IAM","Kinesis","Lambda","LightSail","RDS","Redshift","S3","SNS","SQS","Sagemaker","VPC"]},azureServices(){return["AzureActiveDirectory","AzureBackup","AzureCDN","AzureDataFactory","AzureDevOps","AzureFunction","AzureSQL","CosmosDB","LogicApps","VirtualMachine"]},googleServices(){return["BigTable","BigQuery","CloudCDN","CloudDNS","CloudInterconnect","CloudLoadBalancing","CloudSQL","CloudStorage","DataLab","DataProc","GoogleIAM","GoogleSecurity","GoogleVPC","PubSub","SecurityScanner","StackDriver","VisionAPI"]}},methods:{closeTipsDialog(){var t;this.$store.state.showTips=!1;try{(t=this.$gtag)==null||t.event("close",{event_category:"help",event_label:"tips dialog"})}catch(e){console.error(e)}}}},Wk={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block"},$k=v("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":"true"},null,-1),Hk=v("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1),Vk={class:"z-40 inline-block align-bottom bg-white rounded-lg px-4 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:p-2"},Gk={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},jk=v("h3",{class:"text-xl leading-6 font-medium text-gray-900 inline-block"}," ZenUML Tips ",-1),qk=v("span",{class:"sr-only"},"Close menu",-1),Kk={class:"relative bg-white pb-32 mt-4 overflow-hidden"},Yk={class:"relative"},Qk={class:"lg:mx-auto lg:max-w-11/12 lg:px-8"},Xk=Z8(`<div class="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1"><div><div class="px-4 max-w-full mx-auto sm:px-6 lg:max-w-none lg:mx-0"><h2 class="mt-4 mb-4 text-lg leading-6 font-medium text-gray-900"> Declare Participants </h2><pre class="text-xs w-full bg-gray-50 text-gray-600 p-2 rounded-lg"><code>// Define a Starter (optional)
3186
+ <svg fill="#000000" width="800px" height="800px" viewBox="0 -2 28 28" xmlns="http://www.w3.org/2000/svg"><path d="m27.994 14.729c-.012.267-.365.566-1.091.945-1.495.778-9.236 3.967-10.883 4.821-.589.419-1.324.67-2.116.67-.641 0-1.243-.164-1.768-.452l.019.01c-1.304-.622-9.539-3.95-11.023-4.659-.741-.35-1.119-.653-1.132-.933v2.83c0 .282.39.583 1.132.933 1.484.709 9.722 4.037 11.023 4.659.504.277 1.105.44 1.744.44.795 0 1.531-.252 2.132-.681l-.011.008c1.647-.859 9.388-4.041 10.883-4.821.76-.396 1.096-.7 1.096-.982s0-2.791 0-2.791z"/><path d="m27.992 10.115c-.013.267-.365.565-1.09.944-1.495.778-9.236 3.967-10.883 4.821-.59.421-1.326.672-2.121.672-.639 0-1.24-.163-1.763-.449l.019.01c-1.304-.627-9.539-3.955-11.023-4.664-.741-.35-1.119-.653-1.132-.933v2.83c0 .282.39.583 1.132.933 1.484.709 9.721 4.037 11.023 4.659.506.278 1.108.442 1.749.442.793 0 1.527-.251 2.128-.677l-.011.008c1.647-.859 9.388-4.043 10.883-4.821.76-.397 1.096-.7 1.096-.984s0-2.791 0-2.791z"/><path d="m27.992 5.329c.014-.285-.358-.534-1.107-.81-1.451-.533-9.152-3.596-10.624-4.136-.528-.242-1.144-.383-1.794-.383-.734 0-1.426.18-2.035.498l.024-.012c-1.731.622-9.924 3.835-11.381 4.405-.729.287-1.086.552-1.073.834v2.83c0 .282.39.583 1.132.933 1.484.709 9.721 4.038 11.023 4.66.504.277 1.105.439 1.744.439.795 0 1.531-.252 2.133-.68l-.011.008c1.647-.859 9.388-4.043 10.883-4.821.76-.397 1.096-.7 1.096-.984s0-2.791 0-2.791h-.009zm-17.967 2.684 6.488-.996-1.96 2.874zm14.351-2.588-4.253 1.68-3.835-1.523 4.246-1.679 3.838 1.517zm-11.265-2.785-.628-1.157 1.958.765 1.846-.604-.499 1.196 1.881.7-2.426.252-.543 1.311-.879-1.457-2.8-.252 2.091-.754zm-4.827 1.632c1.916 0 3.467.602 3.467 1.344s-1.559 1.344-3.467 1.344-3.474-.603-3.474-1.344 1.553-1.344 3.474-1.344z"/></svg>`};function ML(){const t=a2(0),e=a2(0),n=()=>{t.value=document.documentElement.scrollTop,e.value=document.documentElement.scrollLeft};return J2(()=>{n(),document.addEventListener("scroll",n)}),_1(()=>{document.removeEventListener("scroll",n)}),[t,e]}const jt=10,ek=1,yL=20;function tk(){let t=document.getElementById("zenuml-intersection-detector-container"),e=Array.from(document.getElementsByClassName("zenuml-intersection-detector"));return t&&e.length===jt?{detectorContainer:t,detectors:e}:(t=document.createElement("div"),t.id="zenuml-intersection-detector-container",Object.assign(t.style,{position:"absolute",top:"0",left:"0",opacity:"0",pointerEvents:"none"}),e=new Array(jt).fill(0).map(()=>{const n=document.createElement("div");return n.className="zenuml-intersection-detector",Object.assign(n.style,{position:"absolute",top:"0",left:"0",width:"100%"}),t==null||t.appendChild(n),n}),document.body.appendChild(t),{detectorContainer:t,detectors:e})}function RL(){const t=a2(0);let e;return J2(()=>{const{detectorContainer:n,detectors:i}=tk(),s=document.documentElement.scrollHeight-yL,r=document.documentElement.scrollWidth-yL;n.style.height=s+"px",n.style.width=r+"px";const o=Math.ceil(document.documentElement.scrollHeight/jt),l=[...Array(o+1).keys()].map(L=>L/o).filter(L=>L>=0&&L<=1);i.forEach((L,a)=>{L.style.top=a*o+"px",L.style.height=o+"px"}),e=new IntersectionObserver(([L])=>{(L.intersectionRect.top-L.boundingClientRect.top>ek||L.target===i[0])&&(t.value=L.intersectionRect.top)},{threshold:l}),i.forEach(L=>{e.observe(L)})}),_1(()=>{e==null||e.disconnect()}),t}function qt(t){let e=0,n=t;for(;n;)e+=n.offsetTop,n=n.offsetParent;return e}const p5=/[!@#$%^&*()+-,.?''":{}|<>/\s]/,x7=t=>{const e=a2(!1);function n(l){e.value=l}async function i(l){l.preventDefault(),l.stopPropagation(),n(!0),await _4();const L=document.createRange();if(!l.target)return;L.selectNodeContents(l.target),L.collapse(!1);const a=window.getSelection();a&&(a==null||a.removeAllRanges(),a==null||a.addRange(L))}async function s(l){await _4(),e.value&&(n(!1),t(l))}function r(l){l.key==="Enter"&&(l.preventDefault(),l.stopPropagation())}function o(l){(l.key==="Enter"||l.key==="Escape"||l.key==="Tab")&&(n(!1),t(l))}return{editing:e,handleDblClick:i,handleBlur:s,handleKeydown:r,handleKeyup:o}},nk={class:"flex items-center justify-center"},ik=["contenteditable"],sk=v("span",null,":",-1),rk=["contenteditable"],ok=G2({__name:"ParticipantLabel",props:{labelText:null,labelPositions:null,assignee:null,assigneePositions:null},setup(t){const e=t,n=["Missing Constructor","ZenUML"],{labelText:i,labelPositions:s,assigneePositions:r}=l9(e),o=I3(),l=I(()=>o.state.mode),L=I(()=>o.getters.code),a=I(()=>o.getters.onContentChange||(()=>{}));function c(f){o.dispatch("updateCode",{code:f}),a.value(f)}function C(f){return function(m){m.preventDefault(),m.stopPropagation();const _=m.target;if(!(_ instanceof HTMLElement))return;let p=_.innerText.trim()??"";if(p===""||p===i.value){_.innerText=i.value;return}if(p.includes(" ")&&(p=p.replace(/\s+/g," ")),p5.test(p)&&(p=p.replace(/"/g,""),p=`"${p}"`,p5.lastIndex=0),!f||f.length===0)return;let g=L.value;for(const w of f){const[y,k]=w;g=g.slice(0,y)+p+g.slice(k)}c(g)}}const u=x7(C((s==null?void 0:s.value)??[])),d=x7(C((r==null?void 0:r.value)??[]));return(f,m)=>(b(),U("div",nk,[t.assignee?(b(),U(B2,{key:0},[v("label",{title:"Double click to edit",class:M2(["name px-1 leading-4 cursor-text right hover:text-skin-message-hover hover:bg-skin-message-hover",{"py-1 cursor-text":N(d).editing}]),contenteditable:N(d).editing&&N(l)===N(J1).Dynamic,onDblclick:m[0]||(m[0]=(..._)=>N(d).handleDblClick&&N(d).handleDblClick(..._)),onBlur:m[1]||(m[1]=(..._)=>N(d).handleBlur&&N(d).handleBlur(..._)),onKeyup:m[2]||(m[2]=(..._)=>N(d).handleKeyup&&N(d).handleKeyup(..._)),onKeydown:m[3]||(m[3]=(..._)=>N(d).handleKeydown&&N(d).handleKeydown(..._))},h1(t.assignee),43,ik),sk],64)):x2("",!0),v("label",{title:"Double click to edit",class:M2(["name px-1 leading-4 cursor-text right hover:text-skin-message-hover hover:bg-skin-message-hover",{"py-1 cursor-text":N(u).editing}]),contenteditable:N(u).editing&&N(l)===N(J1).Dynamic&&n.indexOf(N(i))===-1,onDblclick:m[4]||(m[4]=(..._)=>N(u).handleDblClick&&N(u).handleDblClick(..._)),onBlur:m[5]||(m[5]=(..._)=>N(u).handleBlur&&N(u).handleBlur(..._)),onKeyup:m[6]||(m[6]=(..._)=>N(u).handleKeyup&&N(u).handleKeyup(..._)),onKeydown:m[7]||(m[7]=(..._)=>N(u).handleKeydown&&N(u).handleKeydown(..._))},h1(N(i)),43,rk)]))}}),lk=10,Lk={name:"Participant",components:{ParticipantLabel:ok},setup(t){const e=I3(),n=a2(null);if(e.state.mode===J1.Static)return{stickyVerticalOffset:0,participant:n};const i=I(()=>{const L=e.getters.participants.GetPositions(t.entity.name);return Array.from(L??[]).sort((c,C)=>C[0]-c[0])}),s=I(()=>{const L=e.getters.participants.GetAssigneePositions(t.entity.name);return Array.from(L??[]).sort((c,C)=>C[0]-c[0])}),r=RL(),[o]=ML();return{stickyVerticalOffset:I(()=>{var u;const L=t.offsetTop2||0;let a=r.value+o.value;r.value>lk&&(e!=null&&e.state.stickyOffset)&&(a+=e==null?void 0:e.state.stickyOffset);const c=((u=e==null?void 0:e.state.diagramElement)==null?void 0:u.clientHeight)||0,C=e!=null&&e.state.diagramElement?qt(e==null?void 0:e.state.diagramElement):0;return a<L+C?0:Math.min(a-C,c-Sl-50)-L}),participant:n,labelPositions:i,assigneePositions:s}},props:{entity:{type:Object,required:!0},offsetTop2:{type:Number,default:0}},data(){return{color:void 0}},mounted(){this.updateFontColor()},updated(){this.updateFontColor()},computed:{isDefaultStarter(){return this.entity.name===X1},selected(){return this.$store.state.selected.includes(this.entity.name)},stereotype(){return this.entity.stereotype},labelText(){return this.entity.assignee?this.entity.name.split(":")[1]:this.entity.label||this.entity.name},comment(){return this.entity.comment},icon(){var t;return this.isDefaultStarter?Gt.actor:Gt[(t=this.entity.type)==null?void 0:t.toLowerCase()]},backgroundColor(){try{return this.entity.color?this.entity.color&&Uw(this.entity.color):void 0}catch{return}}},methods:{onSelect(){this.$store.commit("onSelect",this.entity.name)},updateFontColor(){if(!this.entity.color){this.color=void 0;return}let t=window.getComputedStyle(this.$refs.participant).getPropertyValue("background-color");if(!t){this.color=void 0;return}let e=zw(t);this.color=e>128?"#000":"#fff"}}},ak={class:"flex items-center justify-center"},ck=["innerHTML","aria-description"],Ck={key:1,class:"h-5 group flex flex-col justify-center"},uk={key:0,class:"interface leading-4"};function hk(t,e,n,i,s,r){const o=r2("ParticipantLabel");return b(),U("div",{class:M2(["participant bg-skin-participant shadow-participant border-skin-participant text-skin-participant rounded text-base leading-4 flex flex-col justify-center z-10 h-10 top-8",{selected:r.selected}]),ref:"participant",style:v2({backgroundColor:r.isDefaultStarter?void 0:r.backgroundColor,color:r.isDefaultStarter?void 0:s.color,transform:`translateY(${i.stickyVerticalOffset}px)`}),onClick:e[0]||(e[0]=(...l)=>r.onSelect&&r.onSelect(...l))},[v("div",ak,[r.icon?(b(),U("div",{key:0,innerHTML:r.icon,class:"h-6 w-6 mr-1 flex-shrink-0 [&>svg]:w-full [&>svg]:h-full","aria-description":`icon for ${n.entity.name}`},null,8,ck)):x2("",!0),r.isDefaultStarter?x2("",!0):(b(),U("div",Ck,[r.stereotype?(b(),U("label",uk,"«"+h1(r.stereotype)+"»",1)):x2("",!0),B(o,{labelText:r.labelText,labelPositions:i.labelPositions,assignee:n.entity.assignee,assigneePositions:i.assigneePositions},null,8,["labelText","labelPositions","assignee","assigneePositions"])]))])],6)}const AL=Y2(Lk,[["render",hk]]),CW="",m5=V5.child({name:"LifeLine"}),dk={name:"life-line",components:{Participant:AL},props:["entity","context","groupLeft","inGroup","renderParticipants","renderLifeLine"],data:()=>({translateX:0,top:24}),computed:{...M3(["centerOf"]),...D8(["scale"]),debug(){return!!localStorage.zenumlDebug},left(){return this.centerOf(this.entity.name)-(this.groupLeft||0)}},mounted(){m5.debug(`LifeLine mounted for ${this.entity.name}`),this.$nextTick(()=>{this.setTop(),m5.debug(`nextTick after updated for ${this.entity.name}`)}),p7.on("participant_set_top",()=>this.$nextTick(()=>this.setTop()))},updated(){m5.debug(`updated for ${this.entity.name}`),this.$nextTick(()=>{this.setTop(),m5.debug(`nextTick after updated for ${this.entity.name}`)})},methods:{onSelect(){this.$store.commit("onSelect",this.entity.name)},setTop(){var s;const t=this.entity.name.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g,"\\$1"),e=this.$store.getters.diagramElement,n=e==null?void 0:e.querySelector(`[data-to="${t}"]`),i=(n==null?void 0:n.offsetParent)!=null;if(n&&((s=n.attributes["data-type"])==null?void 0:s.value)==="creation"&&i){m5.debug(`First message to ${this.entity.name} is creation`);const r=this.$el.getBoundingClientRect().y,o=n.getBoundingClientRect().y;this.top=(o-r)/this.scale}}}},fk=["id","entity-type"],gk={key:1,class:"line w0 mx-auto flex-grow w-px"};function pk(t,e,n,i,s,r){var l;const o=r2("participant");return b(),U("div",{id:n.entity.name,"entity-type":(l=n.entity.type)==null?void 0:l.toLowerCase(),class:M2(["lifeline absolute flex flex-col h-full",{"transform -translate-x-1/2":n.renderParticipants}]),style:v2({paddingTop:t.top+"px",left:r.left+"px"})},[n.renderParticipants?(b(),Z2(o,{key:0,entity:n.entity,offsetTop2:t.top},null,8,["entity","offsetTop2"])):x2("",!0),n.renderLifeLine?(b(),U("div",gk)):x2("",!0)],14,fk)}const kL=Y2(dk,[["render",pk],["__scopeId","data-v-f23e44f2"]]),ZL=2,mk={name:"lifeline-group",props:["context","renderParticipants","renderLifeLine"],computed:{...M3(["coordinates"]),name(){var t,e;return(e=(t=this.context)==null?void 0:t.name())==null?void 0:e.getFormattedText()},left(){const t=this.entities[0].name;return this.coordinates.left(t)+ZL},right(){const t=this.entities.slice(0).pop().name;return this.coordinates.right(t)-ZL},entities(){return d5(this.context).Array()}},methods:{},components:{LifeLine:kL}},wk={key:0,class:"z-10 absolute flex items-center justify-center w-full bg-skin-frame"},xk={class:"font-semibold text-skin-lifeline-group-name"},_k={class:"lifeline-group relative flex-grow"};function vk(t,e,n,i,s,r){const o=r2("life-line");return r.entities.length>0?(b(),U("div",{key:0,class:M2(["lifeline-group-container absolute flex flex-col flex-grow h-full",{"outline-dashed outline-skin-primary":n.renderLifeLine}]),style:v2({left:`${r.left}px`,width:`${r.right-r.left}px`})},[n.renderParticipants&&r.name?(b(),U("div",wk,[v("span",xk,h1(r.name),1)])):x2("",!0),v("div",_k,[(b(!0),U(B2,null,B3(r.entities,l=>(b(),Z2(o,{inGroup:"true",key:l.name,ref_for:!0,ref:l.name,entity:l,"group-left":r.left,"render-life-line":n.renderLifeLine,renderParticipants:n.renderParticipants},null,8,["entity","group-left","render-life-line","renderParticipants"]))),128))])],6)):x2("",!0)}const Mk=Y2(mk,[["render",vk]]),TL=V5.child({name:"LifeLineLayer"}),yk=70,Rk=10,Ak={name:"life-line-layer",props:["context","renderParticipants","renderLifeLine","leftGap"],setup(){const e=I3(),n=I(()=>e.state.mode);if(n.value===J1.static)return{translate:0,RenderMode:J1,mode:n};const i=RL(),[s]=ML();return{translate:I(()=>{var a;let o=i.value+s.value;i.value>Rk&&(e!=null&&e.state.stickyOffset)&&(o+=e==null?void 0:e.state.stickyOffset);const l=((a=e==null?void 0:e.state.diagramElement)==null?void 0:a.clientHeight)||0,L=e!=null&&e.state.diagramElement?qt(e==null?void 0:e.state.diagramElement):0;return o<=0+L?0:Math.min(o-L,l-yk)-0}),RenderMode:J1,mode:n}},computed:{...M3(["coordinates","participants","GroupContext","ParticipantContext","centerOf"]),participantNames(){return this.participants.Names()},debug(){return!!localStorage.zenumlDebug},starterParticipant(){const t=this.coordinates.orderedParticipantNames();return t.length===0?null:t[0]===X1?{...Jo,name:X1,explicit:!1,isStarter:!0}:null},starterOnTheLeft(){var t;return!!this.starterParticipant&&!((t=this.starterParticipant)!=null&&t.explicit)},implicitParticipants(){return this.participants.ImplicitArray()},explicitGroupAndParticipants(){var t;return(t=this.context)==null?void 0:t.children.filter(e=>{const n=e instanceof yl,i=e instanceof Rl;return n||i})}},methods:{...so(["increaseGeneration"]),getParticipantEntity(t){return d5(t).First()}},updated(){TL.debug("LifeLineLayer updated")},mounted(){TL.debug("LifeLineLayer mounted")},components:{LifeLine:kL,LifeLineGroup:Mk}},kk=["data-participant-names"],Zk={class:"z-lifeline-container relative grow"};function Tk(t,e,n,i,s,r){const o=r2("life-line"),l=r2("life-line-group");return b(),U("div",{class:"life-line-layer lifeline-layer z-30 absolute h-full flex flex-col top-0 pt-2","data-participant-names":r.participantNames,style:v2({"min-width":i.mode===i.RenderMode.Dynamic?"200px":"auto",width:`calc(100% - ${n.leftGap}px)`,pointerEvents:n.renderParticipants?"none":"all"})},[v("div",Zk,[r.starterOnTheLeft?(b(),Z2(o,{key:0,entity:r.starterParticipant,class:"starter",renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["entity","renderParticipants","renderLifeLine"])):x2("",!0),(b(!0),U(B2,null,B3(r.explicitGroupAndParticipants,(L,a)=>(b(),U(B2,null,[L instanceof t.GroupContext?(b(),Z2(l,{key:a,context:L,renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["context","renderParticipants","renderLifeLine"])):x2("",!0),L instanceof t.ParticipantContext?(b(),Z2(o,{key:a,entity:r.getParticipantEntity(L),renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["entity","renderParticipants","renderLifeLine"])):x2("",!0)],64))),256)),(b(!0),U(B2,null,B3(r.implicitParticipants,L=>(b(),Z2(o,{key:L.name,entity:L,renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["entity","renderParticipants","renderLifeLine"]))),128))])],12,kk)}const Kt=Y2(Ak,[["render",Tk]]),bk={class:"message-layer relative z-30 pt-24 pb-10"},bL=G2({__name:"MessageLayer",props:{context:null},setup(t){const e=W0(()=>Promise.resolve().then(()=>iB)),n=V5.child({name:"MessageLayer"}),i=I3(),s=I(()=>i.getters.centerOf),r=I(()=>i.getters.rootContext),o=I(()=>s.value(l.value)+1),l=I(()=>{const L=f7(r.value);return L.length===0?X1:L[0].from||X1});return J2(()=>{n.debug("MessageLayer mounted")}),V0(()=>{n.debug("MessageLayer updated")}),(L,a)=>{const c=r2("block");return b(),U("div",bk,[B(c,{context:t.context,style:v2({"padding-left":N(o)+"px"}),origin:N(l)},null,8,["context","style","origin"]),B(N(e))])}}}),uW="";function _7(t){return[t.Origin()||X1,...d5(t).Names()]}const Sk=Z.tree.ParseTreeWalker.DEFAULT;class Yt extends T{constructor(e){super(),this.frameRoot=null,this.parents=[],this._orderedParticipants=e}getLocalParticipants(e){return[e.Origin()||X1,...d5(e).ImplicitArray().map(n=>n.name)]}getLeft(e){const n=_7(e);return this._orderedParticipants.find(i=>n.includes(i))||""}getRight(e){return this._orderedParticipants.slice().reverse().find(n=>_7(e).includes(n))||""}enterFragment(e,n){var s;const i={type:n,left:this.getLeft(e),right:this.getRight(e),children:[]};this.frameRoot||(this.frameRoot=i),this.parents.length>0&&((s=this.parents[this.parents.length-1].children)==null||s.push(i)),this.parents.push(i)}exitFragment(){this.parents.pop()}enterTcf(e){this.enterFragment(e,"tcf")}enterOpt(e){this.enterFragment(e,"opt")}enterPar(e){this.enterFragment(e,"par")}enterAlt(e){this.enterFragment(e,"alt")}enterLoop(e){this.enterFragment(e,"loop")}enterSection(e){this.enterFragment(e,"section")}enterCritical(e){this.enterFragment(e,"critical")}enterRef(e){this.enterFragment(e,"ref")}exitTcf(){this.exitFragment()}exitOpt(){this.exitFragment()}exitPar(){this.exitFragment()}exitAlt(){this.exitFragment()}exitLoop(){this.exitFragment()}exitSection(){this.exitFragment()}exitCritical(){this.exitFragment()}exitRef(){this.exitFragment()}getFrame(e){return e.children.map(n=>{Sk.walk(this,n)}),this.frameRoot}}function Qt(t,e){if(!t.children||t.children.length===0)return 1;let n=0;for(const i of t.children)e==="LEFT"&&i.left!==t.left||e==="RIGHT"&&i.right!==t.right||(n=Math.max(n,Qt(i,e)));return n+1}function Xt(t){return t?{type:t.type,left:Zl*Qt(t,"LEFT"),right:Zl*Qt(t,"RIGHT")}:{left:0,right:0}}function SL(t,e){const n=e.orderedParticipantNames(),i=_7(t),s=n.find(C=>i.includes(C))||"",r=n.slice().reverse().find(C=>i.includes(C))||"",l=new Yt(n).getFrame(t),L=Xt(l),a=Ek(t,r,e),c=e.distance(s,r)+e.half(s)+e.half(r);return Math.max(c,Tl)+L.left+L.right+a}function Ek(t,e,n){const s=f7(t).filter(r=>r.from===r.to).map(r=>n.getMessageWidth(r)-n.distance(r.from||X1,e)-n.half(e));return Math.max.apply(null,[0,...s])}const Jt=G2({__name:"SeqDiagram",setup(t){const e=I3(),n=I(()=>e.state.theme),i=I(()=>e.state.mode),s=I(()=>e.getters.rootContext),r=I(()=>e.getters.coordinates),o=I(()=>SL(s.value,r.value)-l.value),l=I(()=>{const a=r.value.orderedParticipantNames(),C=new Yt(a).getFrame(s.value);return C?Xt(C).left:0}),L=a2(null);return e.commit("diagramElement",L),(a,c)=>(b(),U("div",{class:M2(["zenuml sequence-diagram relative box-border text-left overflow-visible px-2.5",N(n)]),ref_key:"diagramRef",ref:L},[v("div",{style:v2({paddingLeft:`${N(l)}px`}),class:"relative z-container"},[N(i)===N(J1).Dynamic?(b(),U(B2,{key:0},[B(Kt,{leftGap:N(l),context:N(s).head(),renderParticipants:!1,renderLifeLine:!0},null,8,["leftGap","context"]),B(bL,{context:N(s).block(),style:v2({width:`${N(o)}px`})},null,8,["context","style"]),B(Kt,{leftGap:N(l),context:N(s).head(),renderParticipants:!0,renderLifeLine:!1},null,8,["leftGap","context"])],64)):x2("",!0),N(i)===N(J1).Static?(b(),U(B2,{key:1},[B(Kt,{leftGap:N(l),context:N(s).head(),renderParticipants:!0,renderLifeLine:!0},null,8,["leftGap","context"]),B(bL,{context:N(s).block(),style:v2({width:`${N(o)}px`})},null,8,["context","style"])],64)):x2("",!0)],4)],2))}}),hW="",Ik={name:"IconList",props:["types"],computed:{},methods:{icon(t){return Gt[t==null?void 0:t.toLowerCase()]}}},Fk={role:"list",class:"mt-3 grid grid-cols-4 gap-5 sm:gap-6 sm:grid-cols-6 lg:grid-cols-8"},Ok={class:"h-12 flex items-center justify-center bg-gray-50 text-sm font-medium rounded-t-md"},Nk=["innerHTML","alt"],Dk={class:"flex items-center justify-center border-t border-r border-b border-gray-200 bg-white rounded-b-md"},Pk={class:"px-2 py-2 text-xs"},Bk={class:"text-gray-900 font-medium hover:text-gray-600"};function zk(t,e,n,i,s,r){return b(),U("ul",Fk,[(b(!0),U(B2,null,B3(n.types,o=>(b(),U("li",{key:o,class:"col-span-1 flex flex-col shadow-sm rounded-md"},[v("div",Ok,[r.icon?(b(),U("i",{key:0,innerHTML:r.icon(o),class:"object-contain h-8 w-8 m-auto [&>svg]:w-full [&>svg]:h-full",alt:`icon for ${o}`},null,8,Nk)):x2("",!0)]),v("div",Dk,[v("div",Pk,[v("span",Bk,"@"+h1(o),1)])])]))),128))])}const Uk={name:"TipsDialog",components:{Icon:e3,IconList:Y2(Ik,[["render",zk]])},computed:{standardTypes(){return["Actor","Boundary","Control","Database","Entity"]},awsServices(){return["CloudWatch","CloudFront","Cognito","DynamoDB","EBS","EC2","ECS","EFS","ElastiCache","ElasticBeantalk","ElasticFileSystem","Glacier","IAM","Kinesis","Lambda","LightSail","RDS","Redshift","S3","SNS","SQS","Sagemaker","VPC"]},azureServices(){return["AzureActiveDirectory","AzureBackup","AzureCDN","AzureDataFactory","AzureDevOps","AzureFunction","AzureSQL","CosmosDB","LogicApps","VirtualMachine"]},googleServices(){return["BigTable","BigQuery","CloudCDN","CloudDNS","CloudInterconnect","CloudLoadBalancing","CloudSQL","CloudStorage","DataLab","DataProc","GoogleIAM","GoogleSecurity","GoogleVPC","PubSub","SecurityScanner","StackDriver","VisionAPI"]}},methods:{closeTipsDialog(){var t;this.$store.state.showTips=!1;try{(t=this.$gtag)==null||t.event("close",{event_category:"help",event_label:"tips dialog"})}catch(e){console.error(e)}}}},Wk={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block"},$k=v("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":"true"},null,-1),Hk=v("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1),Vk={class:"z-40 inline-block align-bottom bg-white rounded-lg px-4 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:p-2"},Gk={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},jk=v("h3",{class:"text-xl leading-6 font-medium text-gray-900 inline-block"}," ZenUML Tips ",-1),qk=v("span",{class:"sr-only"},"Close menu",-1),Kk={class:"relative bg-white pb-32 mt-4 overflow-hidden"},Yk={class:"relative"},Qk={class:"lg:mx-auto lg:max-w-11/12 lg:px-8"},Xk=Z8(`<div class="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1"><div><div class="px-4 max-w-full mx-auto sm:px-6 lg:max-w-none lg:mx-0"><h2 class="mt-4 mb-4 text-lg leading-6 font-medium text-gray-900"> Declare Participants </h2><pre class="text-xs w-full bg-gray-50 text-gray-600 p-2 rounded-lg"><code>// Define a Starter (optional)
3187
3187
  @Starter(A)
3188
3188
 
3189
3189
  // Show icons
@@ -3303,7 +3303,7 @@ A.method() {
3303
3303
  <line x1="13" y1="16.75" x2="31" y2="16.75" stroke="#34D399" stroke-width="0.5"/>
3304
3304
  <line x1="13" y1="30.75" x2="51" y2="30.75" stroke="#34D399" stroke-width="0.5"/>
3305
3305
  </svg>
3306
- `,wW="",Ib={key:0,class:"dot"},Fb=v("div",{class:"fixed inset-0 bg-black bg-opacity-25"},null,-1),Ob={class:"fixed inset-0 overflow-y-auto"},Nb={class:"flex min-h-full items-center justify-center p-4 text-center"},Db={class:"px-6"},Pb=v("p",{class:"text-gray-500 text-sm"},"Customize your UI theme",-1),Bb={class:"mt-4 ml-[-0.5rem] px-2 max-h-72 overflow-y-auto"},zb={class:"pb-4"},Ub={class:"space-y-2"},Wb={class:"flex w-full items-center justify-between"},$b={class:"flex items-center text-sm text-gray-900"},Hb=["innerHTML"],Vb={class:"pt-6 px-6 border-t flex items-center gap-2"},Gb=["checked"],jb=v("label",{for:"scopeTheming",class:"select-none"},"Apply to this diagram only",-1),qb={__name:"ThemeSelect",setup(t){const e=a2(!1),n=[{name:"Legacy",id:"theme-default",icon:Tb},{name:"Clear Light",id:"theme-clean-light",icon:bb},{name:"Clear Dark",id:"theme-clean-dark",icon:Sb},{name:"Neon Dark",id:"theme-neon",icon:Eb}],i=I3(),s=I(()=>i.state.theme||n[0].id),r=I(()=>i.state.enableScopedTheming||!1),o=a2(i.state.themeIconDot),l=()=>{e.value=!1,C("theme-close-modal")},L=()=>{e.value=!0,o.value=!0,i.commit("setThemeIconDot",!0),C("theme-open-modal")},a=u=>{i.commit("setTheme",u),C("theme-select")},c=u=>{i.commit("setEnableScopedTheming",u),C("theme-enable-scoped")},C=u=>{Ew(i,{theme:s.value,enableScopedTheming:r.value},u,"sequence")};return(u,d)=>(b(),U(B2,null,[v("button",{type:"button",class:"flex items-center icon-container",onClick:L},[B(e3,{name:"theme"}),o.value?x2("",!0):(b(),U("span",Ib))]),B(N(vn),{appear:"",show:e.value,as:"template"},{default:l3(()=>[B(N(db),{as:"div",onClose:l,class:"relative z-10"},{default:l3(()=>[B(N(I7),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:l3(()=>[Fb],void 0,!0),_:1}),v("div",Ob,[v("div",Nb,[B(N(I7),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:l3(()=>[B(N(fb),{class:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white py-6 text-left align-middle shadow-xl transition-all"},{default:l3(()=>[v("div",Db,[B(N(gb),{as:"h3",class:"text-lg font-semibold leading-6 text-gray-900"},{default:l3(()=>[t4(" Theme ")],void 0,!0),_:1}),Pb,v("div",Bb,[v("div",zb,[B(N(wb),{"model-value":N(s),"onUpdate:modelValue":a},{default:l3(()=>[B(N(pa),{class:"sr-only"},{default:l3(()=>[t4("Server size")],void 0,!0),_:1}),v("div",Ub,[(b(),U(B2,null,B3(n,f=>B(N(_b),{as:"template",key:f.id,value:f.id},{default:l3(({checked:m})=>[v("div",{class:M2([[m?"border-2 text-gray-900 border-primary":"border-2 border-transparent"],"relative flex items-center cursor-pointer rounded-lg px-4 py-3 shadow-md"])},[v("div",Wb,[v("div",$b,[m?(b(),Z2(e3,{key:0,name:"selected-cycle","icon-class":"h-5 w-5 fill-none"})):(b(),Z2(e3,{key:1,name:"non-selected-cycle","icon-class":"h-5 w-5"})),B(N(pa),{as:"p",class:M2(["text-gray-900","font-medium ml-2"])},{default:l3(()=>[t4(h1(f.name),1)],void 0,!0),_:2},1032,["class"])])]),v("span",{class:"inline-block w-20 border rounded-md overflow-hidden",innerHTML:f.icon},null,8,Hb)],2)]),_:2},1032,["value"])),64))])],void 0,!0),_:1},8,["model-value"])])])]),v("div",Vb,[v("input",{type:"checkbox",id:"scopeTheming",checked:N(r),onChange:d[0]||(d[0]=f=>c(f.target.checked))},null,40,Gb),jb])],void 0,!0),_:1})],void 0,!0),_:1})])])],void 0,!0),_:1})],void 0,!0),_:1},8,["show"])],64))}},Kb={name:"DiagramFrame",setup(){return{RenderMode:J1}},computed:{...D8(["showTips","scale","theme","numbering","enableMultiTheme","mode"]),...M3(["rootContext"]),title(){var t;return this.rootContext||console.error("`rootContext` is empty. Please make sure `store` is properly configured."),(t=this.rootContext)==null?void 0:t.title()}},mounted(){this.$el.__vue__=this},methods:{...so(["setScale","toggleNumbering"]),showTipsDialog(){var t;this.$store.state.showTips=!0;try{(t=this.$gtag)==null||t.event("view",{event_category:"help",event_label:"tips dialog"})}catch(e){console.error(e)}},toPng(){return fT(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},toSvg(){return GL(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},toBlob(){return pT(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},toJpeg(){return gT(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},zoomIn(){const t=Math.min(1,this.scale+.1);this.setScale(t)},zoomOut(){this.setScale(this.scale-.1)},setTheme(t){this.theme=t},setStyle(t){const e="zenuml-style";let n=document.getElementById(e);n||(n=document.createElement("style"),n.id=e,document.head.append(n)),n.textContent=t},setRemoteCss(t){const e=new URL(t).hostname;if(e==="https://github.com"||e==="https://githubusercontent.com"){fetch(t.replace("github.com","raw.githubusercontent.com").replace("blob/","")).then(s=>s.text()).then(s=>{this.setStyle(s)});return}const n="zenuml-remote-css";let i=document.getElementById(n);i||(i=document.createElement("link"),i.id=n,i.rel="stylesheet",document.head.append(i)),i.href=t}},components:{Icon:e3,Debug:RT,WidthProvider:RZ,TipsDialog:oZ,DiagramTitle:bw,SeqDiagram:Jt,Privacy:Aw,ThemeSelect:qb}},Yb={class:"frame text-skin-base bg-skin-frame border-skin-frame relative m-1 origin-top-left whitespace-nowrap border rounded"},Qb={ref:"content"},Xb={class:"header text-skin-title bg-skin-title border-skin-frame border-b p-1 flex justify-between rounded-t"},Jb={class:"left hide-export"},eS={class:"right flex-grow flex justify-between"},tS={key:0,class:"fixed z-40 inset-0 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},nS={class:"footer rounded text-skin-control bg-skin-title px-4 py-1 flex justify-between items-center gap-3"},iS={class:"flex items-center gap-3 color-base"},sS={class:"flex items-center"},rS=["checked"],oS={for:"order-display",title:"Numbering the diagram",class:"select-none"},lS={class:"zoom-controls flex hide-export gap-1"},LS={class:"w-12 block text-center"},aS=v("a",{target:"_blank",href:"https://zenuml.com",class:"brand text-xs hover:underline"},"ZenUML.com",-1);function cS(t,e,n,i,s,r){const o=r2("debug"),l=r2("diagram-title"),L=r2("privacy"),a=r2("TipsDialog"),c=r2("seq-diagram"),C=r2("Icon"),u=r2("ThemeSelect"),d=r2("width-provider");return b(),U("div",{ref:"export",class:M2(["zenuml p-1 bg-skin-canvas",t.theme]),style:{display:"inline-block"}},[B(o),v("div",Yb,[v("div",Qb,[v("div",Xb,[v("div",Jb,[N6(t.$slots,"default")]),v("div",eS,[B(l,{context:r.title},null,8,["context"]),B(L,{class:"hide-export flex items-center"})])]),v("div",null,[t.showTips?(b(),U("div",tS,[B(a)])):x2("",!0)]),B(c,{ref:"diagram",style:v2({transform:`scale(${t.scale})`}),class:"origin-top-left"},null,8,["style"])],512),v("div",nS,[t.mode===i.RenderMode.Dynamic?(b(),U(B2,{key:0},[v("div",iS,[v("button",{class:"bottom-1 flex items-center left-1 hide-export",onClick:e[0]||(e[0]=f=>r.showTipsDialog())},[B(C,{name:"tip","icon-class":"filter grayscale w-4 h-4"})]),t.enableMultiTheme?(b(),Z2(u,{key:0})):x2("",!0),v("div",sS,[v("input",{type:"checkbox",id:"order-display",class:"mr-1",checked:t.numbering,onInput:e[1]||(e[1]=f=>t.toggleNumbering(!t.numbering))},null,40,rS),v("label",oS,[B(C,{name:"numbering","icon-class":"w-6 h-6"})])])]),v("div",lS,[v("button",{class:"zoom-in",onClick:e[2]||(e[2]=f=>r.zoomIn())},[B(C,{name:"zoom-in","icon-class":"w-4 h-4"})]),v("label",LS,h1(Number(t.scale*100).toFixed(0))+"%",1),v("button",{class:"zoom-out",onClick:e[3]||(e[3]=f=>r.zoomOut())},[B(C,{name:"zoom-out","icon-class":"w-4 h-4"})])]),aS],64)):x2("",!0)]),B(d)])],2)}const _a=Y2(Kb,[["render",cS]]),CS="3.31.1",xW="",_W="",vW="",MW="",yW="",RW="",AW="",kW="";function va(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let w0=va();function uS(t){w0=t}const hS=/[&<>"']/,dS=/[&<>"']/g,fS=/[<>"']|&(?!#?\w+;)/,gS=/[<>"']|&(?!#?\w+;)/g,pS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ma=t=>pS[t];function R1(t,e){if(e){if(hS.test(t))return t.replace(dS,Ma)}else if(fS.test(t))return t.replace(gS,Ma);return t}const mS=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ya(t){return t.replace(mS,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const wS=/(^|[^\[])\^/g;function n1(t,e){t=t.source||t,e=e||"";const n={replace:(i,s)=>(s=s.source||s,s=s.replace(wS,"$1"),t=t.replace(i,s),n),getRegex:()=>new RegExp(t,e)};return n}const xS=/[^\w:]/g,_S=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ra(t,e,n){if(t){let i;try{i=decodeURIComponent(ya(n)).replace(xS,"").toLowerCase()}catch{return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}e&&!_S.test(n)&&(n=RS(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const F7={},vS=/^[^:]+:\/*[^/]*$/,MS=/^([^:]+:)[\s\S]*$/,yS=/^([^:]+:\/*[^/]*)[\s\S]*$/;function RS(t,e){F7[" "+t]||(vS.test(t)?F7[" "+t]=t+"/":F7[" "+t]=N7(t,"/",!0)),t=F7[" "+t];const n=t.indexOf(":")===-1;return e.substring(0,2)==="//"?n?e:t.replace(MS,"$1")+e:e.charAt(0)==="/"?n?e:t.replace(yS,"$1")+e:t+e}const O7={exec:function(){}};function W3(t){let e=1,n,i;for(;e<arguments.length;e++){n=arguments[e];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}function Aa(t,e){const n=t.replace(/\|/g,(r,o,l)=>{let L=!1,a=o;for(;--a>=0&&l[a]==="\\";)L=!L;return L?"|":" |"}),i=n.split(/ \|/);let s=0;if(i[0].trim()||i.shift(),i[i.length-1].trim()||i.pop(),i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(/\\\|/g,"|");return i}function N7(t,e,n){const i=t.length;if(i===0)return"";let s=0;for(;s<i;){const r=t.charAt(i-s-1);if(r===e&&!n)s++;else if(r!==e&&n)s++;else break}return t.substr(0,i-s)}function AS(t,e){if(t.indexOf(e[1])===-1)return-1;const n=t.length;let i=0,s=0;for(;s<n;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return-1}function ka(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Za(t,e){if(e<1)return"";let n="";for(;e>1;)e&1&&(n+=t),e>>=1,t+=t;return n+t}function Ta(t,e,n,i){const s=e.href,r=e.title?R1(e.title):null,o=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){i.state.inLink=!0;const l={type:"link",raw:n,href:s,title:r,text:o,tokens:i.inlineTokens(o,[])};return i.state.inLink=!1,l}else return{type:"image",raw:n,href:s,title:r,text:R1(o)}}function kS(t,e){const n=t.match(/^(\s+)(?:```)/);if(n===null)return e;const i=n[1];return e.split(`
3306
+ `,wW="",Ib={key:0,class:"dot"},Fb=v("div",{class:"fixed inset-0 bg-black bg-opacity-25"},null,-1),Ob={class:"fixed inset-0 overflow-y-auto"},Nb={class:"flex min-h-full items-center justify-center p-4 text-center"},Db={class:"px-6"},Pb=v("p",{class:"text-gray-500 text-sm"},"Customize your UI theme",-1),Bb={class:"mt-4 ml-[-0.5rem] px-2 max-h-72 overflow-y-auto"},zb={class:"pb-4"},Ub={class:"space-y-2"},Wb={class:"flex w-full items-center justify-between"},$b={class:"flex items-center text-sm text-gray-900"},Hb=["innerHTML"],Vb={class:"pt-6 px-6 border-t flex items-center gap-2"},Gb=["checked"],jb=v("label",{for:"scopeTheming",class:"select-none"},"Apply to this diagram only",-1),qb={__name:"ThemeSelect",setup(t){const e=a2(!1),n=[{name:"Legacy",id:"theme-default",icon:Tb},{name:"Clear Light",id:"theme-clean-light",icon:bb},{name:"Clear Dark",id:"theme-clean-dark",icon:Sb},{name:"Neon Dark",id:"theme-neon",icon:Eb}],i=I3(),s=I(()=>i.state.theme||n[0].id),r=I(()=>i.state.enableScopedTheming||!1),o=a2(i.state.themeIconDot),l=()=>{e.value=!1,C("theme-close-modal")},L=()=>{e.value=!0,o.value=!0,i.commit("setThemeIconDot",!0),C("theme-open-modal")},a=u=>{i.commit("setTheme",u),C("theme-select")},c=u=>{i.commit("setEnableScopedTheming",u),C("theme-enable-scoped")},C=u=>{Ew(i,{theme:s.value,enableScopedTheming:r.value},u,"sequence")};return(u,d)=>(b(),U(B2,null,[v("button",{type:"button",class:"flex items-center icon-container",onClick:L},[B(e3,{name:"theme"}),o.value?x2("",!0):(b(),U("span",Ib))]),B(N(vn),{appear:"",show:e.value,as:"template"},{default:l3(()=>[B(N(db),{as:"div",onClose:l,class:"relative z-10"},{default:l3(()=>[B(N(I7),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:l3(()=>[Fb],void 0,!0),_:1}),v("div",Ob,[v("div",Nb,[B(N(I7),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:l3(()=>[B(N(fb),{class:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white py-6 text-left align-middle shadow-xl transition-all"},{default:l3(()=>[v("div",Db,[B(N(gb),{as:"h3",class:"text-lg font-semibold leading-6 text-gray-900"},{default:l3(()=>[t4(" Theme ")],void 0,!0),_:1}),Pb,v("div",Bb,[v("div",zb,[B(N(wb),{"model-value":N(s),"onUpdate:modelValue":a},{default:l3(()=>[B(N(pa),{class:"sr-only"},{default:l3(()=>[t4("Server size")],void 0,!0),_:1}),v("div",Ub,[(b(),U(B2,null,B3(n,f=>B(N(_b),{as:"template",key:f.id,value:f.id},{default:l3(({checked:m})=>[v("div",{class:M2([[m?"border-2 text-gray-900 border-primary":"border-2 border-transparent"],"relative flex items-center cursor-pointer rounded-lg px-4 py-3 shadow-md"])},[v("div",Wb,[v("div",$b,[m?(b(),Z2(e3,{key:0,name:"selected-cycle","icon-class":"h-5 w-5 fill-none"})):(b(),Z2(e3,{key:1,name:"non-selected-cycle","icon-class":"h-5 w-5"})),B(N(pa),{as:"p",class:M2(["text-gray-900","font-medium ml-2"])},{default:l3(()=>[t4(h1(f.name),1)],void 0,!0),_:2},1032,["class"])])]),v("span",{class:"inline-block w-20 border rounded-md overflow-hidden",innerHTML:f.icon},null,8,Hb)],2)]),_:2},1032,["value"])),64))])],void 0,!0),_:1},8,["model-value"])])])]),v("div",Vb,[v("input",{type:"checkbox",id:"scopeTheming",checked:N(r),onChange:d[0]||(d[0]=f=>c(f.target.checked))},null,40,Gb),jb])],void 0,!0),_:1})],void 0,!0),_:1})])])],void 0,!0),_:1})],void 0,!0),_:1},8,["show"])],64))}},Kb={name:"DiagramFrame",setup(){return{RenderMode:J1}},computed:{...D8(["showTips","scale","theme","numbering","enableMultiTheme","mode"]),...M3(["rootContext"]),title(){var t;return this.rootContext||console.error("`rootContext` is empty. Please make sure `store` is properly configured."),(t=this.rootContext)==null?void 0:t.title()}},mounted(){this.$el.__vue__=this},methods:{...so(["setScale","toggleNumbering"]),showTipsDialog(){var t;this.$store.state.showTips=!0;try{(t=this.$gtag)==null||t.event("view",{event_category:"help",event_label:"tips dialog"})}catch(e){console.error(e)}},toPng(){return fT(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},toSvg(){return GL(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},toBlob(){return pT(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},toJpeg(){return gT(this.$refs.export,{backgroundColor:"white",filter:t=>{var e;return!((e=t==null?void 0:t.classList)!=null&&e.contains("hide-export"))}})},zoomIn(){const t=Math.min(1,this.scale+.1);this.setScale(t)},zoomOut(){this.setScale(this.scale-.1)},setTheme(t){this.theme=t},setStyle(t){const e="zenuml-style";let n=document.getElementById(e);n||(n=document.createElement("style"),n.id=e,document.head.append(n)),n.textContent=t},setRemoteCss(t){const e=new URL(t).hostname;if(e==="https://github.com"||e==="https://githubusercontent.com"){fetch(t.replace("github.com","raw.githubusercontent.com").replace("blob/","")).then(s=>s.text()).then(s=>{this.setStyle(s)});return}const n="zenuml-remote-css";let i=document.getElementById(n);i||(i=document.createElement("link"),i.id=n,i.rel="stylesheet",document.head.append(i)),i.href=t}},components:{Icon:e3,Debug:RT,WidthProvider:RZ,TipsDialog:oZ,DiagramTitle:bw,SeqDiagram:Jt,Privacy:Aw,ThemeSelect:qb}},Yb={class:"frame text-skin-base bg-skin-frame border-skin-frame relative m-1 origin-top-left whitespace-nowrap border rounded"},Qb={ref:"content"},Xb={class:"header text-skin-title bg-skin-title border-skin-frame border-b p-1 flex justify-between rounded-t"},Jb={class:"left hide-export"},eS={class:"right flex-grow flex justify-between"},tS={key:0,class:"fixed z-40 inset-0 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},nS={class:"footer rounded text-skin-control bg-skin-title px-4 py-1 flex justify-between items-center gap-3"},iS={class:"flex items-center gap-3 color-base"},sS={class:"flex items-center"},rS=["checked"],oS={for:"order-display",title:"Numbering the diagram",class:"select-none"},lS={class:"zoom-controls flex hide-export gap-1"},LS={class:"w-12 block text-center"},aS=v("a",{target:"_blank",href:"https://zenuml.com",class:"brand text-xs hover:underline"},"ZenUML.com",-1);function cS(t,e,n,i,s,r){const o=r2("debug"),l=r2("diagram-title"),L=r2("privacy"),a=r2("TipsDialog"),c=r2("seq-diagram"),C=r2("Icon"),u=r2("ThemeSelect"),d=r2("width-provider");return b(),U("div",{ref:"export",class:M2(["zenuml p-1 bg-skin-canvas",t.theme]),style:{display:"inline-block"}},[B(o),v("div",Yb,[v("div",Qb,[v("div",Xb,[v("div",Jb,[N6(t.$slots,"default")]),v("div",eS,[B(l,{context:r.title},null,8,["context"]),B(L,{class:"hide-export flex items-center"})])]),v("div",null,[t.showTips?(b(),U("div",tS,[B(a)])):x2("",!0)]),B(c,{ref:"diagram",style:v2({transform:`scale(${t.scale})`}),class:"origin-top-left"},null,8,["style"])],512),v("div",nS,[t.mode===i.RenderMode.Dynamic?(b(),U(B2,{key:0},[v("div",iS,[v("button",{class:"bottom-1 flex items-center left-1 hide-export",onClick:e[0]||(e[0]=f=>r.showTipsDialog())},[B(C,{name:"tip","icon-class":"filter grayscale w-4 h-4"})]),t.enableMultiTheme?(b(),Z2(u,{key:0})):x2("",!0),v("div",sS,[v("input",{type:"checkbox",id:"order-display",class:"mr-1",checked:t.numbering,onInput:e[1]||(e[1]=f=>t.toggleNumbering(!t.numbering))},null,40,rS),v("label",oS,[B(C,{name:"numbering","icon-class":"w-6 h-6"})])])]),v("div",lS,[v("button",{class:"zoom-in",onClick:e[2]||(e[2]=f=>r.zoomIn())},[B(C,{name:"zoom-in","icon-class":"w-4 h-4"})]),v("label",LS,h1(Number(t.scale*100).toFixed(0))+"%",1),v("button",{class:"zoom-out",onClick:e[3]||(e[3]=f=>r.zoomOut())},[B(C,{name:"zoom-out","icon-class":"w-4 h-4"})])]),aS],64)):x2("",!0)]),B(d)])],2)}const _a=Y2(Kb,[["render",cS]]),CS="3.32.0",xW="",_W="",vW="",MW="",yW="",RW="",AW="",kW="";function va(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let w0=va();function uS(t){w0=t}const hS=/[&<>"']/,dS=/[&<>"']/g,fS=/[<>"']|&(?!#?\w+;)/,gS=/[<>"']|&(?!#?\w+;)/g,pS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ma=t=>pS[t];function R1(t,e){if(e){if(hS.test(t))return t.replace(dS,Ma)}else if(fS.test(t))return t.replace(gS,Ma);return t}const mS=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ya(t){return t.replace(mS,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const wS=/(^|[^\[])\^/g;function n1(t,e){t=t.source||t,e=e||"";const n={replace:(i,s)=>(s=s.source||s,s=s.replace(wS,"$1"),t=t.replace(i,s),n),getRegex:()=>new RegExp(t,e)};return n}const xS=/[^\w:]/g,_S=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ra(t,e,n){if(t){let i;try{i=decodeURIComponent(ya(n)).replace(xS,"").toLowerCase()}catch{return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}e&&!_S.test(n)&&(n=RS(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const F7={},vS=/^[^:]+:\/*[^/]*$/,MS=/^([^:]+:)[\s\S]*$/,yS=/^([^:]+:\/*[^/]*)[\s\S]*$/;function RS(t,e){F7[" "+t]||(vS.test(t)?F7[" "+t]=t+"/":F7[" "+t]=N7(t,"/",!0)),t=F7[" "+t];const n=t.indexOf(":")===-1;return e.substring(0,2)==="//"?n?e:t.replace(MS,"$1")+e:e.charAt(0)==="/"?n?e:t.replace(yS,"$1")+e:t+e}const O7={exec:function(){}};function W3(t){let e=1,n,i;for(;e<arguments.length;e++){n=arguments[e];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}function Aa(t,e){const n=t.replace(/\|/g,(r,o,l)=>{let L=!1,a=o;for(;--a>=0&&l[a]==="\\";)L=!L;return L?"|":" |"}),i=n.split(/ \|/);let s=0;if(i[0].trim()||i.shift(),i[i.length-1].trim()||i.pop(),i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(/\\\|/g,"|");return i}function N7(t,e,n){const i=t.length;if(i===0)return"";let s=0;for(;s<i;){const r=t.charAt(i-s-1);if(r===e&&!n)s++;else if(r!==e&&n)s++;else break}return t.substr(0,i-s)}function AS(t,e){if(t.indexOf(e[1])===-1)return-1;const n=t.length;let i=0,s=0;for(;s<n;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])i++;else if(t[s]===e[1]&&(i--,i<0))return s;return-1}function ka(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Za(t,e){if(e<1)return"";let n="";for(;e>1;)e&1&&(n+=t),e>>=1,t+=t;return n+t}function Ta(t,e,n,i){const s=e.href,r=e.title?R1(e.title):null,o=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){i.state.inLink=!0;const l={type:"link",raw:n,href:s,title:r,text:o,tokens:i.inlineTokens(o,[])};return i.state.inLink=!1,l}else return{type:"image",raw:n,href:s,title:r,text:R1(o)}}function kS(t,e){const n=t.match(/^(\s+)(?:```)/);if(n===null)return e;const i=n[1];return e.split(`
3307
3307
  `).map(s=>{const r=s.match(/^\s+/);if(r===null)return s;const[o]=r;return o.length>=i.length?s.slice(i.length):s}).join(`
3308
3308
  `)}class Mn{constructor(e){this.options=e||w0}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const i=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:N7(i,`
3309
3309
  `)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const i=n[0],s=kS(i,n[3]||"");return{type:"code",raw:i,lang:n[2]?n[2].trim():n[2],text:s}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let i=n[2].trim();if(/#$/.test(i)){const r=N7(i,"#");(this.options.pedantic||!r||/ $/.test(r))&&(i=r.trim())}const s={type:"heading",raw:n[0],depth:n[1].length,text:i,tokens:[]};return this.lexer.inline(s.text,s.tokens),s}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){const i=n[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:n[0],tokens:this.lexer.blockTokens(i,[]),text:i}}}list(e){let n=this.rules.block.list.exec(e);if(n){let i,s,r,o,l,L,a,c,C,u,d,f,m=n[1].trim();const _=m.length>1,p={type:"list",raw:"",ordered:_,start:_?+m.slice(0,-1):"",loose:!1,items:[]};m=_?`\\d{1,9}\\${m.slice(-1)}`:`\\${m}`,this.options.pedantic&&(m=_?m:"[*+-]");const g=new RegExp(`^( {0,3}${m})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,!(!(n=g.exec(e))||this.rules.block.hr.test(e)));){if(i=n[0],e=e.substring(i.length),c=n[2].split(`