UNPKG

vue-mermaid-string

Version:

A Vue.js component that turns a Mermaid string into a diagram.

11 lines 1.12 MB
var Lib=function(K3){"use strict";/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var X_={1362:(M,N,f)=>{M=f.nmd(M);var m=function(){var d=function(Yt,Jt,at,ne){for(at=at||{},ne=Yt.length;ne--;at[Yt[ne]]=Jt);return at},_=[1,6],y=[1,7],k=[1,8],C=[1,9],S=[1,12],I=[1,11],L=[1,15,24],Y=[1,19],W=[1,31],H=[1,34],V=[1,32],X=[1,33],J=[1,35],lt=[1,36],et=[1,37],_t=[1,38],dt=[1,41],At=[1,42],st=[1,43],K=[1,44],mt=[15,24],St=[1,56],Rt=[1,57],ft=[1,58],vt=[1,59],$t=[1,60],jt=[1,61],ye=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],pe=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],de=[7,8,9,10,15,18,22,24],Ot=[47,77,78,79,80],Zt=[47,54,55,77,78,79,80],se=[47,50,51,52,53,77,78,79,80],ue=[15,24,31],ge=[1,93],Bt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,CLASS_DIAGRAM:22,statements:23,EOF:24,statement:25,className:26,alphaNumToken:27,classLiteralName:28,GENERICTYPE:29,relationStatement:30,LABEL:31,classStatement:32,methodStatement:33,annotationStatement:34,clickStatement:35,cssClassStatement:36,CLASS:37,STYLE_SEPARATOR:38,STRUCT_START:39,members:40,STRUCT_STOP:41,ANNOTATION_START:42,ANNOTATION_END:43,MEMBER:44,SEPARATOR:45,relation:46,STR:47,relationType:48,lineType:49,AGGREGATION:50,EXTENSION:51,COMPOSITION:52,DEPENDENCY:53,LINE:54,DOTTED_LINE:55,CALLBACK:56,LINK:57,LINK_TARGET:58,CLICK:59,CALLBACK_NAME:60,CALLBACK_ARGS:61,HREF:62,CSSCLASS:63,commentToken:64,textToken:65,graphCodeTokens:66,textNoTagsToken:67,TAGSTART:68,TAGEND:69,"==":70,"--":71,PCT:72,DEFAULT:73,SPACE:74,MINUS:75,keywords:76,UNICODE_TEXT:77,NUM:78,ALPHA:79,BQUOTE_STR:80,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"CLASS_DIAGRAM",24:"EOF",29:"GENERICTYPE",31:"LABEL",37:"CLASS",38:"STYLE_SEPARATOR",39:"STRUCT_START",41:"STRUCT_STOP",42:"ANNOTATION_START",43:"ANNOTATION_END",44:"MEMBER",45:"SEPARATOR",47:"STR",50:"AGGREGATION",51:"EXTENSION",52:"COMPOSITION",53:"DEPENDENCY",54:"LINE",55:"DOTTED_LINE",56:"CALLBACK",57:"LINK",58:"LINK_TARGET",59:"CLICK",60:"CALLBACK_NAME",61:"CALLBACK_ARGS",62:"HREF",63:"CSSCLASS",66:"graphCodeTokens",68:"TAGSTART",69:"TAGEND",70:"==",71:"--",72:"PCT",73:"DEFAULT",74:"SPACE",75:"MINUS",76:"keywords",77:"UNICODE_TEXT",78:"NUM",79:"ALPHA",80:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[23,1],[23,2],[23,3],[26,1],[26,1],[26,2],[26,2],[26,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[32,2],[32,4],[32,5],[32,7],[34,4],[40,1],[40,2],[33,1],[33,2],[33,1],[33,1],[30,3],[30,4],[30,4],[30,5],[46,3],[46,2],[46,2],[46,1],[48,1],[48,1],[48,1],[48,1],[49,1],[49,1],[35,3],[35,4],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[36,3],[64,1],[64,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[67,1],[67,1],[67,1],[67,1],[27,1],[27,1],[27,1],[28,1]],performAction:function(Yt,Jt,at,ne,Nt,Gt,qt){var Dt=Gt.length-1;switch(Nt){case 4:ne.setDirection("TB");break;case 5:ne.setDirection("BT");break;case 6:ne.setDirection("RL");break;case 7:ne.setDirection("LR");break;case 11:ne.parseDirective("%%{","open_directive");break;case 12:ne.parseDirective(Gt[Dt],"type_directive");break;case 13:Gt[Dt]=Gt[Dt].trim().replace(/'/g,'"'),ne.parseDirective(Gt[Dt],"arg_directive");break;case 14:ne.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=Gt[Dt];break;case 21:this.$=Gt[Dt-1]+Gt[Dt];break;case 22:case 23:this.$=Gt[Dt-1]+"~"+Gt[Dt];break;case 24:ne.addRelation(Gt[Dt]);break;case 25:Gt[Dt-1].title=ne.cleanupLabel(Gt[Dt]),ne.addRelation(Gt[Dt-1]);break;case 33:ne.addClass(Gt[Dt]);break;case 34:ne.addClass(Gt[Dt-2]),ne.setCssClass(Gt[Dt-2],Gt[Dt]);break;case 35:ne.addClass(Gt[Dt-3]),ne.addMembers(Gt[Dt-3],Gt[Dt-1]);break;case 36:ne.addClass(Gt[Dt-5]),ne.setCssClass(Gt[Dt-5],Gt[Dt-3]),ne.addMembers(Gt[Dt-5],Gt[Dt-1]);break;case 37:ne.addAnnotation(Gt[Dt],Gt[Dt-2]);break;case 38:this.$=[Gt[Dt]];break;case 39:Gt[Dt].push(Gt[Dt-1]),this.$=Gt[Dt];break;case 40:case 42:case 43:break;case 41:ne.addMember(Gt[Dt-1],ne.cleanupLabel(Gt[Dt]));break;case 44:this.$={id1:Gt[Dt-2],id2:Gt[Dt],relation:Gt[Dt-1],relationTitle1:"none",relationTitle2:"none"};break;case 45:this.$={id1:Gt[Dt-3],id2:Gt[Dt],relation:Gt[Dt-1],relationTitle1:Gt[Dt-2],relationTitle2:"none"};break;case 46:this.$={id1:Gt[Dt-3],id2:Gt[Dt],relation:Gt[Dt-2],relationTitle1:"none",relationTitle2:Gt[Dt-1]};break;case 47:this.$={id1:Gt[Dt-4],id2:Gt[Dt],relation:Gt[Dt-2],relationTitle1:Gt[Dt-3],relationTitle2:Gt[Dt-1]};break;case 48:this.$={type1:Gt[Dt-2],type2:Gt[Dt],lineType:Gt[Dt-1]};break;case 49:this.$={type1:"none",type2:Gt[Dt],lineType:Gt[Dt-1]};break;case 50:this.$={type1:Gt[Dt-1],type2:"none",lineType:Gt[Dt]};break;case 51:this.$={type1:"none",type2:"none",lineType:Gt[Dt]};break;case 52:this.$=ne.relationType.AGGREGATION;break;case 53:this.$=ne.relationType.EXTENSION;break;case 54:this.$=ne.relationType.COMPOSITION;break;case 55:this.$=ne.relationType.DEPENDENCY;break;case 56:this.$=ne.lineType.LINE;break;case 57:this.$=ne.lineType.DOTTED_LINE;break;case 58:case 64:this.$=Gt[Dt-2],ne.setClickEvent(Gt[Dt-1],Gt[Dt]);break;case 59:case 65:this.$=Gt[Dt-3],ne.setClickEvent(Gt[Dt-2],Gt[Dt-1]),ne.setTooltip(Gt[Dt-2],Gt[Dt]);break;case 60:case 68:this.$=Gt[Dt-2],ne.setLink(Gt[Dt-1],Gt[Dt]);break;case 61:case 69:this.$=Gt[Dt-3],ne.setLink(Gt[Dt-2],Gt[Dt-1],Gt[Dt]);break;case 62:case 70:this.$=Gt[Dt-3],ne.setLink(Gt[Dt-2],Gt[Dt-1]),ne.setTooltip(Gt[Dt-2],Gt[Dt]);break;case 63:case 71:this.$=Gt[Dt-4],ne.setLink(Gt[Dt-3],Gt[Dt-2],Gt[Dt]),ne.setTooltip(Gt[Dt-3],Gt[Dt-1]);break;case 66:this.$=Gt[Dt-3],ne.setClickEvent(Gt[Dt-2],Gt[Dt-1],Gt[Dt]);break;case 67:this.$=Gt[Dt-4],ne.setClickEvent(Gt[Dt-3],Gt[Dt-2],Gt[Dt-1]),ne.setTooltip(Gt[Dt-3],Gt[Dt]);break;case 72:ne.setCssClass(Gt[Dt-1],Gt[Dt])}},table:[{3:1,4:2,5:3,6:4,7:_,8:y,9:k,10:C,11:5,12:10,18:S,22:I},{1:[3]},{1:[2,1]},{1:[2,2]},{3:13,4:2,5:3,6:4,7:_,8:y,9:k,10:C,11:5,12:10,18:S,22:I},{1:[2,8]},d(L,[2,4]),d(L,[2,5]),d(L,[2,6]),d(L,[2,7]),{13:14,19:[1,15]},{15:[1,16]},{19:[2,11]},{1:[2,3]},{14:17,16:[1,18],21:Y},d([16,21],[2,12]),{5:29,6:28,7:_,8:y,9:k,10:C,12:10,18:S,23:20,25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:W,42:H,44:V,45:X,56:J,57:lt,59:et,63:_t,77:dt,78:At,79:st,80:K},{15:[1,45]},{17:46,20:[1,47]},{15:[2,14]},{24:[1,48]},{15:[1,49],24:[2,16]},d(mt,[2,24],{31:[1,50]}),d(mt,[2,26]),d(mt,[2,27]),d(mt,[2,28]),d(mt,[2,29]),d(mt,[2,30]),d(mt,[2,31]),d(mt,[2,32]),d(mt,[2,40],{46:51,48:54,49:55,31:[1,53],47:[1,52],50:St,51:Rt,52:ft,53:vt,54:$t,55:jt}),{26:62,27:39,28:40,77:dt,78:At,79:st,80:K},d(mt,[2,42]),d(mt,[2,43]),{27:63,77:dt,78:At,79:st},{26:64,27:39,28:40,77:dt,78:At,79:st,80:K},{26:65,27:39,28:40,77:dt,78:At,79:st,80:K},{26:66,27:39,28:40,77:dt,78:At,79:st,80:K},{47:[1,67]},d(ye,[2,19],{27:39,28:40,26:68,29:[1,69],77:dt,78:At,79:st,80:K}),d(ye,[2,20],{29:[1,70]}),d(pe,[2,86]),d(pe,[2,87]),d(pe,[2,88]),d([15,24,29,31,38,39,47,50,51,52,53,54,55,60,62],[2,89]),d(de,[2,9]),{14:71,21:Y},{21:[2,13]},{1:[2,15]},{5:29,6:28,7:_,8:y,9:k,10:C,12:10,18:S,23:72,24:[2,17],25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:W,42:H,44:V,45:X,56:J,57:lt,59:et,63:_t,77:dt,78:At,79:st,80:K},d(mt,[2,25]),{26:73,27:39,28:40,47:[1,74],77:dt,78:At,79:st,80:K},{46:75,48:54,49:55,50:St,51:Rt,52:ft,53:vt,54:$t,55:jt},d(mt,[2,41]),{49:76,54:$t,55:jt},d(Ot,[2,51],{48:77,50:St,51:Rt,52:ft,53:vt}),d(Zt,[2,52]),d(Zt,[2,53]),d(Zt,[2,54]),d(Zt,[2,55]),d(se,[2,56]),d(se,[2,57]),d(mt,[2,33],{38:[1,78],39:[1,79]}),{43:[1,80]},{47:[1,81]},{47:[1,82]},{60:[1,83],62:[1,84]},{27:85,77:dt,78:At,79:st},d(ye,[2,21]),d(ye,[2,22]),d(ye,[2,23]),{15:[1,86]},{24:[2,18]},d(ue,[2,44]),{26:87,27:39,28:40,77:dt,78:At,79:st,80:K},{26:88,27:39,28:40,47:[1,89],77:dt,78:At,79:st,80:K},d(Ot,[2,50],{48:90,50:St,51:Rt,52:ft,53:vt}),d(Ot,[2,49]),{27:91,77:dt,78:At,79:st},{40:92,44:ge},{26:94,27:39,28:40,77:dt,78:At,79:st,80:K},d(mt,[2,58],{47:[1,95]}),d(mt,[2,60],{47:[1,97],58:[1,96]}),d(mt,[2,64],{47:[1,98],61:[1,99]}),d(mt,[2,68],{47:[1,101],58:[1,100]}),d(mt,[2,72]),d(de,[2,10]),d(ue,[2,46]),d(ue,[2,45]),{26:102,27:39,28:40,77:dt,78:At,79:st,80:K},d(Ot,[2,48]),d(mt,[2,34],{39:[1,103]}),{41:[1,104]},{40:105,41:[2,38],44:ge},d(mt,[2,37]),d(mt,[2,59]),d(mt,[2,61]),d(mt,[2,62],{58:[1,106]}),d(mt,[2,65]),d(mt,[2,66],{47:[1,107]}),d(mt,[2,69]),d(mt,[2,70],{58:[1,108]}),d(ue,[2,47]),{40:109,44:ge},d(mt,[2,35]),{41:[2,39]},d(mt,[2,63]),d(mt,[2,67]),d(mt,[2,71]),{41:[1,110]},d(mt,[2,36])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],12:[2,11],13:[2,3],19:[2,14],47:[2,13],48:[2,15],72:[2,18],105:[2,39]},parseError:function(Yt,Jt){if(!Jt.recoverable){var at=new Error(Yt);throw at.hash=Jt,at}this.trace(Yt)},parse:function(Yt){var Jt=this,at=[0],ne=[],Nt=[null],Gt=[],qt=this.table,Dt="",ae=0,Je=0,me=0,Ne=2,un=1,Ge=Gt.slice.call(arguments,1),Be=Object.create(this.lexer),Ce={yy:{}};for(var tn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tn)&&(Ce.yy[tn]=this.yy[tn]);Be.setInput(Yt,Ce.yy),Ce.yy.lexer=Be,Ce.yy.parser=this,Be.yylloc===void 0&&(Be.yylloc={});var Ye=Be.yylloc;Gt.push(Ye);var Xe=Be.options&&Be.options.ranges;function Ze(){var kn;return typeof(kn=ne.pop()||Be.lex()||un)!="number"&&(kn instanceof Array&&(kn=(ne=kn).pop()),kn=Jt.symbols_[kn]||kn),kn}typeof Ce.yy.parseError=="function"?this.parseError=Ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Oe,Pn,Ae,rn,yn,Nr,mn,Qn,sn,dn={};;){if(Ae=at[at.length-1],this.defaultActions[Ae]?rn=this.defaultActions[Ae]:(Oe==null&&(Oe=Ze()),rn=qt[Ae]&&qt[Ae][Oe]),rn===void 0||!rn.length||!rn[0]){var Qe="";for(Nr in sn=[],qt[Ae])this.terminals_[Nr]&&Nr>Ne&&sn.push("'"+this.terminals_[Nr]+"'");Qe=Be.showPosition?"Parse error on line "+(ae+1)+`: `+Be.showPosition()+` Expecting `+sn.join(", ")+", got '"+(this.terminals_[Oe]||Oe)+"'":"Parse error on line "+(ae+1)+": Unexpected "+(Oe==un?"end of input":"'"+(this.terminals_[Oe]||Oe)+"'"),this.parseError(Qe,{text:Be.match,token:this.terminals_[Oe]||Oe,line:Be.yylineno,loc:Ye,expected:sn})}if(rn[0]instanceof Array&&rn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ae+", token: "+Oe);switch(rn[0]){case 1:at.push(Oe),Nt.push(Be.yytext),Gt.push(Be.yylloc),at.push(rn[1]),Oe=null,Pn?(Oe=Pn,Pn=null):(Je=Be.yyleng,Dt=Be.yytext,ae=Be.yylineno,Ye=Be.yylloc,me>0);break;case 2:if(mn=this.productions_[rn[1]][1],dn.$=Nt[Nt.length-mn],dn._$={first_line:Gt[Gt.length-(mn||1)].first_line,last_line:Gt[Gt.length-1].last_line,first_column:Gt[Gt.length-(mn||1)].first_column,last_column:Gt[Gt.length-1].last_column},Xe&&(dn._$.range=[Gt[Gt.length-(mn||1)].range[0],Gt[Gt.length-1].range[1]]),(yn=this.performAction.apply(dn,[Dt,Je,ae,Ce.yy,rn[1],Nt,Gt].concat(Ge)))!==void 0)return yn;mn&&(at=at.slice(0,-1*mn*2),Nt=Nt.slice(0,-1*mn),Gt=Gt.slice(0,-1*mn)),at.push(this.productions_[rn[1]][0]),Nt.push(dn.$),Gt.push(dn._$),Qn=qt[at[at.length-2]][at[at.length-1]],at.push(Qn);break;case 3:return!0}}return!0}},He={EOF:1,parseError:function(Yt,Jt){if(!this.yy.parser)throw new Error(Yt);this.yy.parser.parseError(Yt,Jt)},setInput:function(Yt,Jt){return this.yy=Jt||this.yy||{},this._input=Yt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Yt=this._input[0];return this.yytext+=Yt,this.yyleng++,this.offset++,this.match+=Yt,this.matched+=Yt,Yt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Yt},unput:function(Yt){var Jt=Yt.length,at=Yt.split(/(?:\r\n?|\n)/g);this._input=Yt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Jt),this.offset-=Jt;var ne=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),at.length-1&&(this.yylineno-=at.length-1);var Nt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:at?(at.length===ne.length?this.yylloc.first_column:0)+ne[ne.length-at.length].length-at[0].length:this.yylloc.first_column-Jt},this.options.ranges&&(this.yylloc.range=[Nt[0],Nt[0]+this.yyleng-Jt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Yt){this.unput(this.match.slice(Yt))},pastInput:function(){var Yt=this.matched.substr(0,this.matched.length-this.match.length);return(Yt.length>20?"...":"")+Yt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Yt=this.match;return Yt.length<20&&(Yt+=this._input.substr(0,20-Yt.length)),(Yt.substr(0,20)+(Yt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Yt=this.pastInput(),Jt=new Array(Yt.length+1).join("-");return Yt+this.upcomingInput()+` `+Jt+"^"},test_match:function(Yt,Jt){var at,ne,Nt;if(this.options.backtrack_lexer&&(Nt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Nt.yylloc.range=this.yylloc.range.slice(0))),(ne=Yt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ne.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ne?ne[ne.length-1].length-ne[ne.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Yt[0].length},this.yytext+=Yt[0],this.match+=Yt[0],this.matches=Yt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Yt[0].length),this.matched+=Yt[0],at=this.performAction.call(this,this.yy,this,Jt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),at)return at;if(this._backtrack){for(var Gt in Nt)this[Gt]=Nt[Gt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Yt,Jt,at,ne;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Nt=this._currentRules(),Gt=0;Gt<Nt.length;Gt++)if((at=this._input.match(this.rules[Nt[Gt]]))&&(!Jt||at[0].length>Jt[0].length)){if(Jt=at,ne=Gt,this.options.backtrack_lexer){if((Yt=this.test_match(at,Nt[Gt]))!==!1)return Yt;if(this._backtrack){Jt=!1;continue}return!1}if(!this.options.flex)break}return Jt?(Yt=this.test_match(Jt,Nt[ne]))!==!1&&Yt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Yt){this.conditionStack.push(Yt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Yt){return(Yt=this.conditionStack.length-1-Math.abs(Yt||0))>=0?this.conditionStack[Yt]:"INITIAL"},pushState:function(Yt){this.begin(Yt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Yt,Jt,at,ne){switch(at){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:case 10:case 12:case 19:break;case 11:return 15;case 13:case 14:return 22;case 15:return this.begin("struct"),39;case 16:return"EOF_IN_STRUCT";case 17:return"OPEN_IN_STRUCT";case 18:return this.popState(),41;case 20:return"MEMBER";case 21:return 37;case 22:return 63;case 23:return 56;case 24:return 57;case 25:return 59;case 26:return 42;case 27:return 43;case 28:this.begin("generic");break;case 29:case 32:case 35:case 38:case 41:case 44:this.popState();break;case 30:return"GENERICTYPE";case 31:this.begin("string");break;case 33:return"STR";case 34:this.begin("bqstring");break;case 36:return"BQUOTE_STR";case 37:this.begin("href");break;case 39:return 62;case 40:this.begin("callback_name");break;case 42:this.popState(),this.begin("callback_args");break;case 43:return 60;case 45:return 61;case 46:case 47:case 48:case 49:return 58;case 50:case 51:return 51;case 52:case 53:return 53;case 54:return 52;case 55:return 50;case 56:return 54;case 57:return 55;case 58:return 31;case 59:return 38;case 60:return 75;case 61:return"DOT";case 62:return"PLUS";case 63:return 72;case 64:case 65:return"EQUALS";case 66:return 79;case 67:return"PUNCTUATION";case 68:return 78;case 69:return 77;case 70:return 74;case 71:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[44,45],inclusive:!1},callback_name:{rules:[41,42,43],inclusive:!1},href:{rules:[38,39],inclusive:!1},struct:{rules:[16,17,18,19,20],inclusive:!1},generic:{rules:[29,30],inclusive:!1},bqstring:{rules:[35,36],inclusive:!1},string:{rules:[32,33],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,13,14,15,21,22,23,24,25,26,27,28,31,34,37,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71],inclusive:!0}}};function le(){this.yy={}}return Bt.lexer=He,le.prototype=Bt,Bt.Parser=le,new le}();N.parser=m,N.Parser=m.Parser,N.parse=function(){return m.parse.apply(m,arguments)},N.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var _=f(8218).readFileSync(f(6470).normalize(d[1]),"utf8");return N.parser.parse(_)},f.c[f.s]===M&&N.main(process.argv.slice(1))},5890:(M,N,f)=>{M=f.nmd(M);var m=function(){var d=function(st,K,mt,St){for(mt=mt||{},St=st.length;St--;mt[st[St]]=K);return mt},_=[1,2],y=[1,5],k=[6,9,11,23,41],C=[1,17],S=[1,20],I=[1,25],L=[1,26],Y=[1,27],W=[1,28],H=[1,37],V=[23,38,39],X=[4,6,9,11,23,41],J=[34,35,36,37],lt=[22,29],et=[1,55],_t={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,ALPHANUM:23,attribute:24,attributeType:25,attributeName:26,attributeKeyType:27,attributeComment:28,ATTRIBUTE_WORD:29,ATTRIBUTE_KEY:30,COMMENT:31,cardinality:32,relType:33,ZERO_OR_ONE:34,ZERO_OR_MORE:35,ONE_OR_MORE:36,ONLY_ONE:37,NON_IDENTIFYING:38,IDENTIFYING:39,WORD:40,open_directive:41,type_directive:42,arg_directive:43,close_directive:44,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"ALPHANUM",29:"ATTRIBUTE_WORD",30:"ATTRIBUTE_KEY",31:"COMMENT",34:"ZERO_OR_ONE",35:"ZERO_OR_MORE",36:"ONE_OR_MORE",37:"ONLY_ONE",38:"NON_IDENTIFYING",39:"IDENTIFYING",40:"WORD",41:"open_directive",42:"type_directive",43:"arg_directive",44:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[17,1],[21,1],[21,2],[24,2],[24,3],[24,3],[24,4],[25,1],[26,1],[27,1],[28,1],[18,3],[32,1],[32,1],[32,1],[32,1],[33,1],[33,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(st,K,mt,St,Rt,ft,vt){var $t=ft.length-1;switch(Rt){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:ft[$t-1].push(ft[$t]),this.$=ft[$t-1];break;case 5:case 6:case 16:case 23:case 24:case 25:case 35:this.$=ft[$t];break;case 12:St.addEntity(ft[$t-4]),St.addEntity(ft[$t-2]),St.addRelationship(ft[$t-4],ft[$t],ft[$t-2],ft[$t-3]);break;case 13:St.addEntity(ft[$t-3]),St.addAttributes(ft[$t-3],ft[$t-1]);break;case 14:St.addEntity(ft[$t-2]);break;case 15:St.addEntity(ft[$t]);break;case 17:this.$=[ft[$t]];break;case 18:ft[$t].push(ft[$t-1]),this.$=ft[$t];break;case 19:this.$={attributeType:ft[$t-1],attributeName:ft[$t]};break;case 20:this.$={attributeType:ft[$t-2],attributeName:ft[$t-1],attributeKeyType:ft[$t]};break;case 21:this.$={attributeType:ft[$t-2],attributeName:ft[$t-1],attributeComment:ft[$t]};break;case 22:this.$={attributeType:ft[$t-3],attributeName:ft[$t-2],attributeKeyType:ft[$t-1],attributeComment:ft[$t]};break;case 26:case 34:this.$=ft[$t].replace(/"/g,"");break;case 27:this.$={cardA:ft[$t],relType:ft[$t-1],cardB:ft[$t-2]};break;case 28:this.$=St.Cardinality.ZERO_OR_ONE;break;case 29:this.$=St.Cardinality.ZERO_OR_MORE;break;case 30:this.$=St.Cardinality.ONE_OR_MORE;break;case 31:this.$=St.Cardinality.ONLY_ONE;break;case 32:this.$=St.Identification.NON_IDENTIFYING;break;case 33:this.$=St.Identification.IDENTIFYING;break;case 36:St.parseDirective("%%{","open_directive");break;case 37:St.parseDirective(ft[$t],"type_directive");break;case 38:ft[$t]=ft[$t].trim().replace(/'/g,'"'),St.parseDirective(ft[$t],"arg_directive");break;case 39:St.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:_,7:3,12:4,41:y},{1:[3]},d(k,[2,3],{5:6}),{3:7,4:_,7:3,12:4,41:y},{13:8,42:[1,9]},{42:[2,36]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:C,41:y},{1:[2,2]},{14:18,15:[1,19],44:S},d([15,44],[2,37]),d(k,[2,8],{1:[2,1]}),d(k,[2,4]),{7:15,10:21,12:4,17:16,23:C,41:y},d(k,[2,6]),d(k,[2,7]),d(k,[2,11]),d(k,[2,15],{18:22,32:24,20:[1,23],34:I,35:L,36:Y,37:W}),d([6,9,11,15,20,23,34,35,36,37,41],[2,16]),{11:[1,29]},{16:30,43:[1,31]},{11:[2,39]},d(k,[2,5]),{17:32,23:C},{21:33,22:[1,34],24:35,25:36,29:H},{33:38,38:[1,39],39:[1,40]},d(V,[2,28]),d(V,[2,29]),d(V,[2,30]),d(V,[2,31]),d(X,[2,9]),{14:41,44:S},{44:[2,38]},{15:[1,42]},{22:[1,43]},d(k,[2,14]),{21:44,22:[2,17],24:35,25:36,29:H},{26:45,29:[1,46]},{29:[2,23]},{32:47,34:I,35:L,36:Y,37:W},d(J,[2,32]),d(J,[2,33]),{11:[1,48]},{19:49,23:[1,51],40:[1,50]},d(k,[2,13]),{22:[2,18]},d(lt,[2,19],{27:52,28:53,30:[1,54],31:et}),d([22,29,30,31],[2,24]),{23:[2,27]},d(X,[2,10]),d(k,[2,12]),d(k,[2,34]),d(k,[2,35]),d(lt,[2,20],{28:56,31:et}),d(lt,[2,21]),d([22,29,31],[2,25]),d(lt,[2,26]),d(lt,[2,22])],defaultActions:{5:[2,36],7:[2,2],20:[2,39],31:[2,38],37:[2,23],44:[2,18],47:[2,27]},parseError:function(st,K){if(!K.recoverable){var mt=new Error(st);throw mt.hash=K,mt}this.trace(st)},parse:function(st){var K=this,mt=[0],St=[],Rt=[null],ft=[],vt=this.table,$t="",jt=0,ye=0,pe=0,de=2,Ot=1,Zt=ft.slice.call(arguments,1),se=Object.create(this.lexer),ue={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(ue.yy[ge]=this.yy[ge]);se.setInput(st,ue.yy),ue.yy.lexer=se,ue.yy.parser=this,se.yylloc===void 0&&(se.yylloc={});var Bt=se.yylloc;ft.push(Bt);var He=se.options&&se.options.ranges;function le(){var Ne;return typeof(Ne=St.pop()||se.lex()||Ot)!="number"&&(Ne instanceof Array&&(Ne=(St=Ne).pop()),Ne=K.symbols_[Ne]||Ne),Ne}typeof ue.yy.parseError=="function"?this.parseError=ue.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Yt,Jt,at,ne,Nt,Gt,qt,Dt,ae,Je={};;){if(at=mt[mt.length-1],this.defaultActions[at]?ne=this.defaultActions[at]:(Yt==null&&(Yt=le()),ne=vt[at]&&vt[at][Yt]),ne===void 0||!ne.length||!ne[0]){var me="";for(Gt in ae=[],vt[at])this.terminals_[Gt]&&Gt>de&&ae.push("'"+this.terminals_[Gt]+"'");me=se.showPosition?"Parse error on line "+(jt+1)+`: `+se.showPosition()+` Expecting `+ae.join(", ")+", got '"+(this.terminals_[Yt]||Yt)+"'":"Parse error on line "+(jt+1)+": Unexpected "+(Yt==Ot?"end of input":"'"+(this.terminals_[Yt]||Yt)+"'"),this.parseError(me,{text:se.match,token:this.terminals_[Yt]||Yt,line:se.yylineno,loc:Bt,expected:ae})}if(ne[0]instanceof Array&&ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+at+", token: "+Yt);switch(ne[0]){case 1:mt.push(Yt),Rt.push(se.yytext),ft.push(se.yylloc),mt.push(ne[1]),Yt=null,Jt?(Yt=Jt,Jt=null):(ye=se.yyleng,$t=se.yytext,jt=se.yylineno,Bt=se.yylloc,pe>0);break;case 2:if(qt=this.productions_[ne[1]][1],Je.$=Rt[Rt.length-qt],Je._$={first_line:ft[ft.length-(qt||1)].first_line,last_line:ft[ft.length-1].last_line,first_column:ft[ft.length-(qt||1)].first_column,last_column:ft[ft.length-1].last_column},He&&(Je._$.range=[ft[ft.length-(qt||1)].range[0],ft[ft.length-1].range[1]]),(Nt=this.performAction.apply(Je,[$t,ye,jt,ue.yy,ne[1],Rt,ft].concat(Zt)))!==void 0)return Nt;qt&&(mt=mt.slice(0,-1*qt*2),Rt=Rt.slice(0,-1*qt),ft=ft.slice(0,-1*qt)),mt.push(this.productions_[ne[1]][0]),Rt.push(Je.$),ft.push(Je._$),Dt=vt[mt[mt.length-2]][mt[mt.length-1]],mt.push(Dt);break;case 3:return!0}}return!0}},dt={EOF:1,parseError:function(st,K){if(!this.yy.parser)throw new Error(st);this.yy.parser.parseError(st,K)},setInput:function(st,K){return this.yy=K||this.yy||{},this._input=st,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var st=this._input[0];return this.yytext+=st,this.yyleng++,this.offset++,this.match+=st,this.matched+=st,st.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),st},unput:function(st){var K=st.length,mt=st.split(/(?:\r\n?|\n)/g);this._input=st+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-K),this.offset-=K;var St=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),mt.length-1&&(this.yylineno-=mt.length-1);var Rt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:mt?(mt.length===St.length?this.yylloc.first_column:0)+St[St.length-mt.length].length-mt[0].length:this.yylloc.first_column-K},this.options.ranges&&(this.yylloc.range=[Rt[0],Rt[0]+this.yyleng-K]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(st){this.unput(this.match.slice(st))},pastInput:function(){var st=this.matched.substr(0,this.matched.length-this.match.length);return(st.length>20?"...":"")+st.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var st=this.match;return st.length<20&&(st+=this._input.substr(0,20-st.length)),(st.substr(0,20)+(st.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var st=this.pastInput(),K=new Array(st.length+1).join("-");return st+this.upcomingInput()+` `+K+"^"},test_match:function(st,K){var mt,St,Rt;if(this.options.backtrack_lexer&&(Rt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Rt.yylloc.range=this.yylloc.range.slice(0))),(St=st[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=St.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:St?St[St.length-1].length-St[St.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+st[0].length},this.yytext+=st[0],this.match+=st[0],this.matches=st,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(st[0].length),this.matched+=st[0],mt=this.performAction.call(this,this.yy,this,K,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),mt)return mt;if(this._backtrack){for(var ft in Rt)this[ft]=Rt[ft];return!1}return!1},next:function(){if(this.done)return this.EOF;var st,K,mt,St;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Rt=this._currentRules(),ft=0;ft<Rt.length;ft++)if((mt=this._input.match(this.rules[Rt[ft]]))&&(!K||mt[0].length>K[0].length)){if(K=mt,St=ft,this.options.backtrack_lexer){if((st=this.test_match(mt,Rt[ft]))!==!1)return st;if(this._backtrack){K=!1;continue}return!1}if(!this.options.flex)break}return K?(st=this.test_match(K,Rt[St]))!==!1&&st:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(st){this.conditionStack.push(st)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(st){return(st=this.conditionStack.length-1-Math.abs(st||0))>=0?this.conditionStack[st]:"INITIAL"},pushState:function(st){this.begin(st)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(st,K,mt,St){switch(mt){case 0:return this.begin("open_directive"),41;case 1:return this.begin("type_directive"),42;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),44;case 4:return 43;case 5:case 6:case 8:case 13:case 17:break;case 7:return 11;case 9:return 9;case 10:return 40;case 11:return 4;case 12:return this.begin("block"),20;case 14:return 30;case 15:return 29;case 16:return 31;case 18:return this.popState(),22;case 19:case 32:return K.yytext[0];case 20:case 24:return 34;case 21:case 25:return 35;case 22:case 26:return 36;case 23:return 37;case 27:case 29:case 30:return 38;case 28:return 39;case 31:return 23;case 33:return 6}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:(?:PK)|(?:FK))/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},block:{rules:[13,14,15,16,17,18,19],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,20,21,22,23,24,25,26,27,28,29,30,31,32,33],inclusive:!0}}};function At(){this.yy={}}return _t.lexer=dt,At.prototype=_t,_t.Parser=At,new At}();N.parser=m,N.Parser=m.Parser,N.parse=function(){return m.parse.apply(m,arguments)},N.main=function(d){d[1]||(console.log("Usage: "+d[0]+" FILE"),process.exit(1));var _=f(8009).readFileSync(f(6470).normalize(d[1]),"utf8");return N.parser.parse(_)},f.c[f.s]===M&&N.main(process.argv.slice(1))},3602:(M,N,f)=>{M=f.nmd(M);var m=function(){var d=function(an,$n,En,Le){for(En=En||{},Le=an.length;Le--;En[an[Le]]=$n);return En},_=[1,9],y=[1,7],k=[1,6],C=[1,8],S=[1,20,21,22,23,38,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],I=[2,10],L=[1,20],Y=[1,21],W=[1,22],H=[1,23],V=[1,30],X=[1,59],J=[1,45],lt=[1,49],et=[1,33],_t=[1,34],dt=[1,35],At=[1,36],st=[1,37],K=[1,53],mt=[1,60],St=[1,48],Rt=[1,50],ft=[1,52],vt=[1,56],$t=[1,57],jt=[1,38],ye=[1,39],pe=[1,40],de=[1,41],Ot=[1,58],Zt=[1,47],se=[1,51],ue=[1,54],ge=[1,55],Bt=[1,46],He=[1,63],le=[1,68],Yt=[1,20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],Jt=[1,72],at=[1,71],ne=[1,73],Nt=[20,21,23,74,75],Gt=[1,94],qt=[1,99],Dt=[1,102],ae=[1,103],Je=[1,96],me=[1,101],Ne=[1,104],un=[1,97],Ge=[1,109],Be=[1,108],Ce=[1,98],tn=[1,100],Ye=[1,105],Xe=[1,106],Ze=[1,107],Oe=[1,110],Pn=[20,21,22,23,74,75],Ae=[20,21,22,23,48,74,75],rn=[20,21,22,23,40,47,48,50,52,54,56,58,59,60,62,64,66,67,69,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],yn=[20,21,23],Nr=[20,21,23,47,59,60,74,75,84,88,98,99,102,104,105,115,116,117,118,119,120],mn=[1,12,20,21,22,23,24,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],Qn=[47,59,60,84,88,98,99,102,104,105,115,116,117,118,119,120],sn=[1,143],dn=[1,151],Qe=[1,152],kn=[1,153],_n=[1,154],jn=[1,138],Yn=[1,139],Er=[1,135],xn=[1,146],Un=[1,147],Rn=[1,148],qn=[1,149],Hn=[1,150],Kn=[1,155],Sn=[1,156],Bn=[1,141],cn=[1,144],Fn=[1,140],gn=[1,137],ri=[20,21,22,23,38,42,47,59,60,79,80,81,82,83,84,88,98,99,102,104,105,111,112,113,114,115,116,117,118,119,120],dr=[1,159],Li=[20,21,22,23,26,47,59,60,84,98,99,102,104,105,115,116,117,118,119,120],Ln=[20,21,22,23,24,26,38,40,41,42,47,51,53,55,57,59,60,61,63,65,66,68,70,74,75,79,80,81,82,83,84,85,88,98,99,102,104,105,106,107,115,116,117,118,119,120],wo=[12,21,22,24],ua=[22,99],ii=[1,242],Dr=[1,237],Lr=[1,238],$r=[1,246],Zr=[1,243],Cr=[1,240],Qr=[1,239],Or=[1,241],ki=[1,244],oi=[1,245],er=[1,247],qr=[1,265],la=[20,21,23,99],Kr=[20,21,22,23,59,60,79,95,98,99,102,103,104,105,106],ha={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,link:44,node:45,vertex:46,AMP:47,STYLE_SEPARATOR:48,idString:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,ALPHA:59,COLON:60,PIPE:61,CYLINDERSTART:62,CYLINDEREND:63,DIAMOND_START:64,DIAMOND_STOP:65,TAGEND:66,TRAPSTART:67,TRAPEND:68,INVTRAPSTART:69,INVTRAPEND:70,linkStatement:71,arrowText:72,TESTSTR:73,START_LINK:74,LINK:75,textToken:76,STR:77,keywords:78,STYLE:79,LINKSTYLE:80,CLASSDEF:81,CLASS:82,CLICK:83,DOWN:84,UP:85,textNoTags:86,textNoTagsToken:87,DEFAULT:88,stylesOpt:89,alphaNum:90,CALLBACKNAME:91,CALLBACKARGS:92,HREF:93,LINK_TARGET:94,HEX:95,numList:96,INTERPOLATE:97,NUM:98,COMMA:99,style:100,styleComponent:101,MINUS:102,UNIT:103,BRKT:104,DOT:105,PCT:106,TAGSTART:107,alphaNumToken:108,idStringToken:109,alphaNumStatement:110,direction_tb:111,direction_bt:112,direction_rl:113,direction_lr:114,PUNCTUATION:115,UNICODE_TEXT:116,PLUS:117,EQUALS:118,MULT:119,UNDERSCORE:120,graphCodeTokens:121,ARROW_CROSS:122,ARROW_POINT:123,ARROW_CIRCLE:124,ARROW_OPEN:125,QUOTE:126,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",47:"AMP",48:"STYLE_SEPARATOR",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"ALPHA",60:"COLON",61:"PIPE",62:"CYLINDERSTART",63:"CYLINDEREND",64:"DIAMOND_START",65:"DIAMOND_STOP",66:"TAGEND",67:"TRAPSTART",68:"TRAPEND",69:"INVTRAPSTART",70:"INVTRAPEND",73:"TESTSTR",74:"START_LINK",75:"LINK",77:"STR",79:"STYLE",80:"LINKSTYLE",81:"CLASSDEF",82:"CLASS",83:"CLICK",84:"DOWN",85:"UP",88:"DEFAULT",91:"CALLBACKNAME",92:"CALLBACKARGS",93:"HREF",94:"LINK_TARGET",95:"HEX",97:"INTERPOLATE",98:"NUM",99:"COMMA",102:"MINUS",103:"UNIT",104:"BRKT",105:"DOT",106:"PCT",107:"TAGSTART",111:"direction_tb",112:"direction_bt",113:"direction_rl",114:"direction_lr",115:"PUNCTUATION",116:"UNICODE_TEXT",117:"PLUS",118:"EQUALS",119:"MULT",120:"UNDERSCORE",122:"ARROW_CROSS",123:"ARROW_POINT",124:"ARROW_CIRCLE",125:"ARROW_OPEN",126:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[45,1],[45,5],[45,3],[46,4],[46,6],[46,4],[46,4],[46,4],[46,8],[46,4],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,1],[44,2],[44,3],[44,3],[44,1],[44,3],[71,1],[72,3],[39,1],[39,2],[39,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[86,1],[86,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[96,1],[96,3],[89,1],[89,3],[100,1],[100,2],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[101,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[87,1],[87,1],[87,1],[87,1],[49,1],[49,2],[90,1],[90,2],[110,1],[110,1],[110,1],[110,1],[43,1],[43,1],[43,1],[43,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[109,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1]],performAction:function(an,$n,En,Le,Wn,pt,Wr){var Qt=pt.length-1;switch(Wn){case 5:Le.parseDirective("%%{","open_directive");break;case 6:Le.parseDirective(pt[Qt],"type_directive");break;case 7:pt[Qt]=pt[Qt].trim().replace(/'/g,'"'),Le.parseDirective(pt[Qt],"arg_directive");break;case 8:Le.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:pt[Qt]!==[]&&pt[Qt-1].push(pt[Qt]),this.$=pt[Qt-1];break;case 12:case 78:case 80:case 92:case 148:case 150:case 151:case 74:case 146:this.$=pt[Qt];break;case 19:Le.setDirection("TB"),this.$="TB";break;case 20:Le.setDirection(pt[Qt-1]),this.$=pt[Qt-1];break;case 35:this.$=pt[Qt-1].nodes;break;case 41:this.$=Le.addSubGraph(pt[Qt-6],pt[Qt-1],pt[Qt-4]);break;case 42:this.$=Le.addSubGraph(pt[Qt-3],pt[Qt-1],pt[Qt-3]);break;case 43:this.$=Le.addSubGraph(void 0,pt[Qt-1],void 0);break;case 48:Le.addLink(pt[Qt-2].stmt,pt[Qt],pt[Qt-1]),this.$={stmt:pt[Qt],nodes:pt[Qt].concat(pt[Qt-2].nodes)};break;case 49:Le.addLink(pt[Qt-3].stmt,pt[Qt-1],pt[Qt-2]),this.$={stmt:pt[Qt-1],nodes:pt[Qt-1].concat(pt[Qt-3].nodes)};break;case 50:this.$={stmt:pt[Qt-1],nodes:pt[Qt-1]};break;case 51:this.$={stmt:pt[Qt],nodes:pt[Qt]};break;case 52:case 119:case 121:this.$=[pt[Qt]];break;case 53:this.$=pt[Qt-4].concat(pt[Qt]);break;case 54:this.$=[pt[Qt-2]],Le.setClass(pt[Qt-2],pt[Qt]);break;case 55:this.$=pt[Qt-3],Le.addVertex(pt[Qt-3],pt[Qt-1],"square");break;case 56:this.$=pt[Qt-5],Le.addVertex(pt[Qt-5],pt[Qt-2],"circle");break;case 57:this.$=pt[Qt-3],Le.addVertex(pt[Qt-3],pt[Qt-1],"ellipse");break;case 58:this.$=pt[Qt-3],Le.addVertex(pt[Qt-3],pt[Qt-1],"stadium");break;case 59:this.$=pt[Qt-3],Le.addVertex(pt[Qt-3],pt[Qt-1],"subroutine");break;case 60:this.$=pt[Qt-7],Le.addVertex(pt[Qt-7],pt[Qt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[pt[Qt-5],pt[Qt-3]]]));break;case 61:this.$=pt[Qt-3],Le.addVertex(pt[Qt-3],pt[Qt-1],"cylinder");break;case 62:this.$=pt[Qt-3],Le.addVertex(pt[Qt-3],pt[Qt-1],"round");break;case 63:this.$=pt[Qt-3],Le.addVertex(pt[Qt-3],pt[Qt-1],"diamond");break;case 64:this.$=pt[Qt-5],Le.addVertex(pt[Qt-5],pt[Qt-2],"hexagon");break;case 65:this.$=pt[Qt-3],Le.addVertex(pt[Qt-3],pt[Qt-1],"odd");break;case 66:this.$=pt[Qt-3],Le.addVertex(pt[Qt-3],pt[Qt-1],"trapezoid");break;case 67:this.$=pt[Qt-3],Le.addVertex(pt[Qt-3],pt[Qt-1],"inv_trapezoid");break;case 68:this.$=pt[Qt-3],Le.addVertex(pt[Qt-3],pt[Qt-1],"lean_right");break;case 69:this.$=pt[Qt-3],Le.addVertex(pt[Qt-3],pt[Qt-1],"lean_left");break;case 70:this.$=pt[Qt],Le.addVertex(pt[Qt]);break;case 71:pt[Qt-1].text=pt[Qt],this.$=pt[Qt-1];break;case 72:case 73:pt[Qt-2].text=pt[Qt-1],this.$=pt[Qt-2];break;case 75:var Ti=Le.destructLink(pt[Qt],pt[Qt-2]);this.$={type:Ti.type,stroke:Ti.stroke,length:Ti.length,text:pt[Qt-1]};break;case 76:Ti=Le.destructLink(pt[Qt]),this.$={type:Ti.type,stroke:Ti.stroke,length:Ti.length};break;case 77:this.$=pt[Qt-1];break;case 79:case 93:case 149:case 147:this.$=pt[Qt-1]+""+pt[Qt];break;case 94:case 95:this.$=pt[Qt-4],Le.addClass(pt[Qt-2],pt[Qt]);break;case 96:this.$=pt[Qt-4],Le.setClass(pt[Qt-2],pt[Qt]);break;case 97:case 105:this.$=pt[Qt-1],Le.setClickEvent(pt[Qt-1],pt[Qt]);break;case 98:case 106:this.$=pt[Qt-3],Le.setClickEvent(pt[Qt-3],pt[Qt-2]),Le.setTooltip(pt[Qt-3],pt[Qt]);break;case 99:this.$=pt[Qt-2],Le.setClickEvent(pt[Qt-2],pt[Qt-1],pt[Qt]);break;case 100:this.$=pt[Qt-4],Le.setClickEvent(pt[Qt-4],pt[Qt-3],pt[Qt-2]),Le.setTooltip(pt[Qt-4],pt[Qt]);break;case 101:case 107:this.$=pt[Qt-1],Le.setLink(pt[Qt-1],pt[Qt]);break;case 102:case 108:this.$=pt[Qt-3],Le.setLink(pt[Qt-3],pt[Qt-2]),Le.setTooltip(pt[Qt-3],pt[Qt]);break;case 103:case 109:this.$=pt[Qt-3],Le.setLink(pt[Qt-3],pt[Qt-2],pt[Qt]);break;case 104:case 110:this.$=pt[Qt-5],Le.setLink(pt[Qt-5],pt[Qt-4],pt[Qt]),Le.setTooltip(pt[Qt-5],pt[Qt-2]);break;case 111:this.$=pt[Qt-4],Le.addVertex(pt[Qt-2],void 0,void 0,pt[Qt]);break;case 112:case 114:this.$=pt[Qt-4],Le.updateLink(pt[Qt-2],pt[Qt]);break;case 113:this.$=pt[Qt-4],Le.updateLink([pt[Qt-2]],pt[Qt]);break;case 115:this.$=pt[Qt-8],Le.updateLinkInterpolate([pt[Qt-6]],pt[Qt-2]),Le.updateLink([pt[Qt-6]],pt[Qt]);break;case 116:this.$=pt[Qt-8],Le.updateLinkInterpolate(pt[Qt-6],pt[Qt-2]),Le.updateLink(pt[Qt-6],pt[Qt]);break;case 117:this.$=pt[Qt-6],Le.updateLinkInterpolate([pt[Qt-4]],pt[Qt]);break;case 118:this.$=pt[Qt-6],Le.updateLinkInterpolate(pt[Qt-4],pt[Qt]);break;case 120:case 122:pt[Qt-2].push(pt[Qt]),this.$=pt[Qt-2];break;case 124:this.$=pt[Qt-1]+pt[Qt];break;case 152:this.$="v";break;case 153:this.$="-";break;case 154:this.$={stmt:"dir",value:"TB"};break;case 155:this.$={stmt:"dir",value:"BT"};break;case 156:this.$={stmt:"dir",value:"RL"};break;case 157:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:_,16:4,21:y,22:k,24:C},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:_,16:4,21:y,22:k,24:C},d(S,I,{17:11}),{7:12,13:[1,13]},{16:14,21:y,22:k,24:C},{16:15,21:y,22:k,24:C},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:L,21:Y,22:W,23:H,32:24,33:25,34:26,35:27,36:28,37:29,38:V,43:31,45:32,46:42,47:X,49:43,59:J,60:lt,79:et,80:_t,81:dt,82:At,83:st,84:K,88:mt,98:St,99:Rt,102:ft,104:vt,105:$t,109:44,111:jt,112:ye,113:pe,114:de,115:Ot,116:Zt,117:se,118:ue,119:ge,120:Bt},{8:61,10:[1,62],15:He},d([10,15],[2,6]),d(S,[2,17]),d(S,[2,18]),d(S,[2,19]),{20:[1,65],21:[1,66],22:le,27:64,30:67},d(Yt,[2,11]),d(Yt,[2,12]),d(Yt,[2,13]),d(Yt,[2,14]),d(Yt,[2,15]),d(Yt,[2,16]),{9:69,20:Jt,