`);for(var[r,{detector:n}]of Object.entries(Kt))if(n(t,e))return r;throw new Xt("No diagram type detected matching given configuration for text: "+t)},"detectType"),Qt=Ae((...t)=>{for(var{id:e,detector:r,loader:n}of t)Jt(e,r,n)},"registerLazyLoadedDiagrams"),Jt=Ae((t,e,r)=>{Kt[t]&&R.warn(`Detectorwithkey${t}alreadyexists.Overwriting.`),Kt[t]={detector:e,loader:r},R.debug(`Detectorwithkey${t}added`+(r?" with loader":""))},"addDetector"),te=Ae(t=>Kt[t].loader,"getDiagramLoader")}),jr=t(()=>{function B(){this.yy={}}var t=Ae(function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},"o"),e=[1,24],r=[1,25],F=[1,26],$=[1,27],z=[1,28],n=[1,63],i=[1,64],a=[1,65],s=[1,66],o=[1,67],l=[1,68],h=[1,69],u=[1,29],d=[1,30],p=[1,31],g=[1,32],f=[1,33],m=[1,34],y=[1,35],v=[1,36],x=[1,37],b=[1,38],w=[1,39],k=[1,40],T=[1,41],_=[1,42],E=[1,43],C=[1,44],S=[1,45],A=[1,46],L=[1,47],N=[1,48],I=[1,50],U=[1,51],G=[1,52],q=[1,53],j=[1,54],Y=[1,55],H=[1,56],W=[1,57],V=[1,58],X=[1,59],K=[1,60],Z=[14,42],Q=[14,34,36,37,38,39,40,41,42,44,45,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,72,73,74],J=[12,14,34,36,37,38,39,40,41,42,44,45,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,72,73,74],M=[1,82],R=[1,83],D=[1,84],O=[1,85],P=[12,14,42],tt=[12,14,33,42],et=[12,14,33,42,76,77,79,80],rt=[12,33],nt=[34,36,37,38,39,40,41,44,45,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,72,73,74],e={trace:Ae(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
pleasereportwhatinputcausedthisbug`);return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:i}}hl.hasOwnProperty(e[0])&&!pa[this.mode][e[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+e[0]+'" used in math mode',t),e=hl[e[0]]+e.slice(1));var r=Xo.exec(e);if(r&&("i"===(e=e.substring(0,r.index))?e="ı":"j"===e&&(e="ȷ")),pa[this.mode][e]){this.settings.strict&&"math"===this.mode&&0<=Na.indexOf(e)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+e[0]+'" used in math mode',t);var n=pa[this.mode][e].group,i=ci.range(t),a=ua.hasOwnProperty(n)?{type:"atom",mode:this.mode,family:n,loc:i,text:e}:{type:n,mode:this.mode,loc:i,text:e}}else{if(!(128<=e.charCodeAt(0)))return null;this.settings.strict&&(Bn(e.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+e[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+e[0]+'" ('+e.charCodeAt(0)+")",t)),a={type:"textord",mode:"text",loc:ci.range(t),text:e}}if(this.consume(),r)for(var s=0;s<r[0].length;s++){var o=r[0][s];if(!cl[o])throw new X("Unknown accent ' "+o+"'",t);var l=cl[o][this.mode]||cl[o].text;if(!l)throw new X("Accent "+o+" unsupported in "+this.mode+" mode",t);a={type:"accent",mode:this.mode,loc:ci.range(t),label:l,isStretchy:!1,isShifty:!0,base:a}}return a}}).endOfExpression=["}","\\endgroup","\\end","\\right","&"],dl=Ae(function(t,e){if(!("string"==typeof t||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");delete(t=new ul(t,e)).gullet.macros.current["\\df@tag"];var r=t.parse();if(delete t.gullet.macros.current["\\current@color"],delete t.gullet.macros.current["\\color"],t.gullet.macros.get("\\df@tag")){if(!e.displayMode)throw new X("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:t.subparse([new hi("\\df@tag")])}]}return r},"parseTree"),m=Ae(function(t,e,r){e.textContent="",t=ml(t,r).toNode(),e.appendChild(t)},"render"),typeof document<"u"&&"CSS1Compat"!==document.compatMode&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),m=Ae(function(){throw new X("KaTeX doesn't work in quirks mode.")},"render")),pl=Ae(function(t,e){return ml(t,e).toMarkup()},"renderToString"),gl=Ae(function(t,e){return e=new vi(e),dl(t,e)},"generateParseTree"),fl=Ae(function(t,e,r){if(!r.throwOnError&&t instanceof X)return(e=Z.makeSpan(["katex-error"],[new oa(e)])).setAttribute("title",t.toString()),e.setAttribute("style","color:"+r.errorColor),e;throw t},"renderError"),ml=Ae(function(t,e){e=new vi(e);try{var r=dl(t,e);return Ts(r,t,e)}catch(r){return fl(r,t,e)}},"renderToDomTree"),y=Ae(function(t,e){e=new vi(e);try{var r=dl(t,e);return _s(r,t,e)}catch(r){return fl(r,t,e)}},"renderToHTMLTree"),yl={version:"0.16.11",render:m,renderToString:pl,ParseError:X,SETTINGS_SCHEMA:yi,__parse:gl,__renderToDomTree:ml,__renderToHTMLTree:y,__setFontMetrics:Fn,__defineSymbol:o,__defineFunction:l,__defineMacro:h,__domTree:{Span:na,Anchor:ia,SymbolNode:oa,SvgNode:la,PathNode:ca,LineNode:ha}}});function xl(){let e="data-temp-href-target";bl.default.addHook("beforeSanitizeAttributes",t=>{"A"===t.tagName&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),bl.default.addHook("afterSanitizeAttributes",t=>{"A"===t.tagName&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),"_blank"===t.getAttribute("target"))&&t.setAttribute("rel","noopener")})}var bl,wl,kl,Tl,_l,El,Cl,Sl,Al,Ll,Nl,Il,Ml,Rl,Dl,Ol,Pl,Bl,Fl,$l,zl,Ul,Gl,ql,jl,L,Yl,Hl,Wl,Vl,Xl,Kl,Zl,Ql,Jl=t(()=>{bl=et(Mn(),1),wl=/<br\s*\/?>/gi,kl=Ae(t=>t?Il(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Tl=(()=>{let t=!1;return()=>{t||(xl(),t=!0)}})(),Ae(xl,"setupDompurifyHooks"),_l=Ae(t=>(Tl(),bl.default.sanitize(t)),"removeScript"),El=Ae((t,e)=>(!1!==e.flowchart?.htmlLabels&&("antiscript"===(
`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),R.debug(`Detectingdiagramdirective${null!==e?" type:"+e:""}basedonthetext:`+t);for(var n,i,a,s=[];null!==(n=Wt.exec(t));)n.index===Wt.lastIndex&&Wt.lastIndex++,(n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e))&&(i=n[1]||n[2],a=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null,s.push({type:i,args:a}));return 0===s.length?{type:t,args:null}:1===s.length?s[0]:s}catch(r){return R.error(`ERROR:${r.message}-Unabletoparsedirectivetype:'${e}'basedonthetext:'${t}'`),{type:void 0,args:null}}},"detectDirective"),S8=Ae(function(t){return t.replace(Wt,"")},"removeDirectives"),A8=Ae(function(t,e){for(var[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray"),Ae(l8,"interpolateToCurve"),Ae(c8,"formatUrl"),L8=Ae((e,...t)=>{let r=e.split("."),n=r.length-1,i=r[n],a=window;for(let t=0;t<n;t++)if(!(a=a[r[t]]))return void R.error(`Functionname:${e}notfoundinwindow`);a[i](...t)},"runFunc"),Ae(h8,"distance"),Ae(u8,"traverseEdge"),Ae(d8,"calcLabelPosition"),N8=Ae((t,e=2)=>(e=Math.pow(10,e),Math.round(t*e)/e),"roundNumber"),I8=Ae((t,e)=>{let r,n=e;for(var i of t){if(r){var a=h8(i,r);if(a<n)n-=a;else{if((a=n/a)<=0)return r;if(1<=a)return{x:i.x,y:i.y};if(0<a&&a<1)return{x:N8((1-a)*r.x+a*i.x,5),y:N8((1-a)*r.y+a*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),M8=Ae((t,e,r)=>{R.info("our points "+JSON.stringify(e)),e[0]!==r&&(e=e.reverse());var r=I8(e,25),t=t?10:5,n=Math.atan2(e[0].y-r.y,e[0].x-r.x),i={x:0,y:0};return i.x=Math.sin(n)*t+(e[0].x+r.x)/2,i.y=-Math.cos(n)*t+(e[0].y+r.y)/2,i},"calcCardinalityPosition"),Ae(p8,"calcTerminalLabelPosition"),Ae(g8,"getStylesFromArray"),R8=0,D8=Ae(()=>(R8++,"id-"+Math.random().toString(36).substr(2,12)+"-"+R8),"generateId"),Ae(f8,"makeRandomHex"),O8=Ae(t=>f8(t.length),"random"),P8=Ae(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),B8=Ae(function(t,e){var r=e.text.replace(L.lineBreakRegex," "),[,n]=Y8(e.fontSize);return(t=t.append("text")).attr("x",e.x),t.attr("y",e.y),t.style("text-anchor",e.anchor),t.style("font-family",e.fontFamily),t.style("font-size",n),t.style("font-weight",e.fontWeight),t.attr("fill",e.fill),void 0!==e.class&&t.attr("class",e.class),(n=t.append("tspan")).attr("x",e.x+2*e.textMargin),n.attr("fill",e.fill),n.text(r),t},"drawSimpleText"),F8=Ew((t,s,o)=>{if(!t||(o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},o),L.lineBreakRegex.test(t)))return t;let l=t.split(" ").filter(Boolean),c=[],h="";return l.forEach((t,e)=>{var r,n,i=y8(t+" ",o),a=y8(h,o);h=s<i?({hyphenatedStrings:r,remainingWord:n}=$8(t,s,"-",o),c.push(h,...r),n):s<=a+i?(c.push(h),t):[h,t].filter(Boolean).join(" "),e+1===l.length&&c.push(h)}),c.filter(t=>""!==t).join(o.joinWith)},(t,e,r)=>""+t+e+r.fontSize+r.fontWeight+r.fontFamily+r.joinWith),$8=Ew((t,n,i="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);let s=[...t],o=[],l="";return s.forEach((t,e)=>{var r,t=""+l+t;l=y8(t,a)>=n?(e+=1,e=s.length===e,r=t+i,o.push(e?t:r),""):t}),{hyphenatedStrings:o,remainingWord:l}},(t,e,r="-",n)=>""+t+e+r+n.fontSize+n.fontWeight+n.fontFamily),Ae(m8,"calculateTextHeight"),Ae(y8,"calculateTextWidth"),z8=Ew((t,e)=>{var{fontSize:e=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};var[,i]=Y8(e),e=["sans-serif",r],a=t.split(L.lineBreakRegex),s=[];if(!(r=O("body")).remove)return{width:0,height:0,lineHeight:0};var o,l=r.append("svg");for(o of e){var c,h={width:0,height:0,lineHeight:0};for(c of a){var u=P8();if(u.text=c||k8,0===(u=((u=B8(l,u).style("font-size",i).style("font-weight",n).style("font-family",o))._groups||u)[0][0].getBBox()).width&&0===u.height)throw new Error("svg element not in render tree");h.width=Math.round(Math.max(h.width,u.width)),u=Math.round(u.height),h.height+=u,h.lineHeight=Math.round(Math.max(h.lineHeight,u))}s.push(h)}return l.remove(),s[isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHei
`):[],n={type:"table",raw:i[0],header:[],align:[],rows:[]};if(e.length===t.length){for(var a of t)/^ *-+: *$/.test(a)?n.align.push("right"):/^ *:-+: *$/.test(a)?n.align.push("center"):/^ *:-+ *$/.test(a)?n.align.push("left"):n.align.push(null);for(let t=0;t<e.length;t++)n.header.push({text:e[t],tokens:this.lexer.inline(e[t]),header:!0,align:n.align[t]});for(var s of r)n.rows.push(N_(s,n.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:n.align[e]})));return n}}}lheading(t){if(t=this.rules.block.lheading.exec(t))return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(t){var e;if(t=this.rules.block.paragraph.exec(t))return e=t[1].charAt(t[1].length-1)===`
`+this.renderer.text(t);a+=i?this.renderer.paragraph({type:"paragraph",raw:e,text:e,tokens:[{type:"text",raw:e,text:e}]}):e;continue}default:var l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}return a}parseInline(e,r){r=r||this.renderer;let n="";for(let t=0;t<e.length;t++){var i=e[t];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){var a=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==a||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=a||"";continue}}var s=i;switch(s.type){case"escape":n+=r.text(s);break;case"html":n+=r.html(s);break;case"link":n+=r.link(s);break;case"image":n+=r.image(s);break;case"strong":n+=r.strong(s);break;case"em":n+=r.em(s);break;case"codespan":n+=r.codespan(s);break;case"br":n+=r.br(s);break;case"del":n+=r.del(s);break;case"text":n+=r.text(s);break;default:var o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}return n}},vE=class{static{Ae(this,"_Hooks")}options;constructor(t){this.options=t||P_}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}},xE=class{static{Ae(this,"Marked")}defaults=__();options=this.setOptions;parse=this.#e(gE.lex,yE.parse);parseInline=this.#e(gE.lexInline,yE.parseInline);Parser=yE;Renderer=fE;TextRenderer=mE;Lexer=gE;Tokenizer=H_;Hooks=vE;constructor(...t){this.use(...t)}walkTokens(t,r){let n=[];for(var i of t)switch(n=n.concat(r.call(this,i)),i.type){case"table":var e,a,s=i;for(e of s.header)n=n.concat(this.walkTokens(e.tokens,r));for(a of s.rows)for(var o of a)n=n.concat(this.walkTokens(o.tokens,r));break;case"list":s=i,n=n.concat(this.walkTokens(s.items,r));break;default:{let e=i;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(t=>{t=e[t].flat(1/0),n=n.concat(this.walkTokens(t,r))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,r)))}}return n}use(...t){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(e=>{var t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let r=i.renderers[n.name];r?i.renderers[n.name]=function(...t){var e=n.renderer.apply(this,t);return!1===e?r.apply(this,t):e}:i.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||"block"!==n.level&&"inline"!==n.level)throw new Error("extension level must be 'block' or 'inline'");var t=i[n.level];t?t.unshift(n.tokenizer):i[n.level]=[n.tokenizer],n.start&&("block"===n.level?i.startBlock?i.startBlock.push(n.start):i.startBlock=[n.start]:"inline"===n.level&&(i.startInline?i.startInline.push(n.start):i.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(i.childTokens[n.name]=n.childTokens)}),t.extensions=i),e.renderer){let i=this.defaults.renderer||new fE(this.defaults);for(var a in e.renderer){if(!(a in i))throw new Error(`renderer'${a}'doesnotexist`);if(!["options","parser"].includes(a)){let t=a,r=e.renderer[t],n=(e.useNewRenderer||(r=this.#t(r,t,i)),i[t]);i[t]=(...t)=>{var e=r.apply(i,t);return(!1===e?n.apply(i,t):e)||""}}}t.renderer=i}if(e.tokenizer){let i=this.defaults.tokenizer||new H_(this.defaults);for(var s in e.tokenizer){if(!(s in i))throw new Error(`tokenizer'${s}'doesnotexist`);if(!["options","rules","lexer"].includes(s)){let t=s,r=e.tokenizer[t],n=i[t];i[t]=(...t)=>{var e=r.apply(i,t);return!1===e?n.apply(i,t):e}}}t.tokenizer=i}if(e.hooks){let i=this.defaults.hooks||new vE;for(var o in e.hooks){if(!(o in i))throw new Error(`hook'${o}'doesnotexist`);if("options"!==o){let t=o,r=e.hooks[t],n=i[t];vE.passThroughHooks.has(o)?i[t]=t=>this.defaults.async?Promise.resolve(r.call(i,t)).then(t=>n.call(i,t)):(t=r.call(i,t),n.call(i,t)):i[t]=(...t)=>{var e=r.apply(i,t);return!1===e?n.apply(i,t):e}}}t.hooks=i}if(e.walkTokens){
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return NE(t,e)}function NE(t,e,r=[],n=[]){if(0===t.length)return 0<n.length&&r.push(n),0<r.length?r:[];let i="";" "===t[0].content&&(i=" ",t.shift());var a=t.shift()??{content:" ",type:"normal"},s=[...n];return""!==i&&s.push({content:i,type:"normal"}),s.push(a),e(s)?NE(t,e,r,s):(0<n.length?(r.push(n),t.unshift(a)):a.content&&([s,n]=SE(e,a),r.push([s]),n.content)&&t.unshift(n),NE(t,e,r))}var IE=t(()=>{Ae(CE,"splitTextToChars"),Ae(SE,"splitWordToFitWidth"),Ae(AE,"splitWordToFitWidthRecursion"),Ae(LE,"splitLineToFitWidth"),Ae(NE,"splitLineToFitWidthRecursion")});function ME(t,e){e&&t.attr("style",e)}async function RE(t,e,r,n,i=!1){(t=t.append("foreignObject")).attr("width",10*r+"px"),t.attr("height",10*r+"px");let a=t.append("xhtml:div"),s=e.label;e.label&&Gl(e.label)&&(s=await jl(e.label.replace(L.lineBreakRegex,`
`),D()));var o=e.isNode?"nodeLabel":"edgeLabel",l=a.append("span");return l.html(s),ME(l,e.labelStyle),l.attr("class",o+" "+n),ME(a,e.labelStyle),a.style("display","table-cell"),a.style("white-space","nowrap"),a.style("line-height","1.5"),a.style("max-width",r+"px"),a.style("text-align","center"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&a.attr("class","labelBkg"),(l=a.node().getBoundingClientRect()).width===r&&(a.style("display","table"),a.style("white-space","break-spaces"),a.style("width",r+"px"),l=a.node().getBoundingClientRect()),t.node()}function DE(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function OE(t,e,r){return FE(e=DE(t=t.append("text"),1,e),r),r=e.node().getComputedTextLength(),t.remove(),r}function PE(t,e,r){return FE(e=DE(t=t.append("text"),1,e),[{content:r,type:"normal"}]),(r=e.node()?.getBoundingClientRect())&&t.remove(),r}function BE(e,t,r,n=!1){let i=t.append("g"),a=i.insert("rect").attr("class","background").attr("style","stroke: none"),s=i.append("text").attr("y","-10.1"),o=0;for(var l of r){var c,h=Ae(t=>OE(i,1.1,t)<=e,"checkWidth");for(c of h(l)?[l]:LE(l,h))FE(DE(s,o,1.1),c),o++}return(n?(t=s.node().getBBox(),a.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),i):s).node()}function FE(n,t){n.text(""),t.forEach((t,e)=>{var r=n.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===e?r.text(t.content):r.text(" "+t.content)})}function $E(t){return t.replace(/fa[bklrs]?:fa-[\w-]+/g,t=>`<iclass='${t.replace(":"," ")}'></i>`)}var zE,UE=t(()=>{fh(),Jl(),Z3(),e(),EE(),K8(),IE(),Ae(ME,"applyStyle"),Ae(RE,"addHtmlSpan"),Ae(DE,"createTspan"),Ae(OE,"computeWidthOfText"),Ae(PE,"computeDimensionOfText"),Ae(BE,"createFormattedText"),Ae(FE,"updateTextContentAndStyles"),Ae($E,"replaceIconSubstring"),zE=Ae(async(t,e="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,isNode:s=!0,width:o=200,addSvgBackground:l=!1}={},c)=>(R.debug("XYZ createText",e,r,n,i,a,s,"addSvgBackground: ",l),a?(n=_E(e,c),a=$E(V8(n)),n=e.replace(/\\\\/g,"\\"),RE(t,{isNode:s,label:Gl(e)?n:a,labelStyle:r.replace("fill:","color:")},o,i,l)):(n=BE(o,t,TE(e.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),c),!!e&&l),s?(a=(r=/stroke:/.exec(r)?r.replace("stroke:","lineColor:"):r).replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),O(n).attr("style",a)):(i=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:"),O(n).select("rect").attr("style",i.replace(/background:/g,"fill:")),o=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),O(n).select("text").attr("style",o)),n)),"createText")});functionGE(t){return(t=t.map((t,e)=>(0===e?"M":"L")+t.x+","+t.y)).push("Z"),t.join(" ")}functionqE(e,t,r,n,i,a){vars=[],o=r-e,l=2*Math.PI/(o/a),c=t+(n-t)/2;for(lett=0;t<=50;t++){varh=e+t/50*o,u=c+i*Math.sin(l*(h-e));s.push({x:h,y:u})}returns}functionjE(e,r,n,i,t,a){vars=[],o=t*Math.PI/180,l=(a*Math.PI/180-o)/(i-1);for(lett=0;t<i;t++){varc=o+t*l,h=e+n*Math.cos(c),c=r+n*Math.sin(c);s.push({x:-h,y:-c})}returns}varYE,HE,WE,VE,i=t(()=>{UE(),fh(),Z3(),Ln(),Jl(),K8(),YE=Ae(async(t,e,r)=>{letn,i=e.useHtmlLabels||Rl(D()?.htmlLabels),a=(n=r||"node default",t.insert("g").attr("class",n).attr("id",e.domId||e.id)),s=a.insert("g").attr("class","label").attr("style",b8(e.labelStyle)),o,l=(o=void0===e.label?"":"string"==typeofe.label?e.label:e.label[0],awaitzE(s,Cl(V8(o),D()),{useHtmlLabels:i,width:e.width||D().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img})),c=l.getBBox(),h=(e?.padding??0)/2;if(i){varr=l.children[0],t=O(l),u=r.getElementsByTagName("img");if(u){letn=""===o.replace(/<img[^>]*>/g,"").trim();awaitPromise.all([...u].map(r=>newPromise(e=>{functiont(){v
`,e-1))}function IN(t,e,r){var n,i,a,s,o,l,c,h=t.kind,u=t.result,d=t.input.charCodeAt(t.position);if(pN(d)||gN(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d||(63===d||45===d)&&(pN(n=t.input.charCodeAt(t.position+1))||r&&gN(n)))return!1;for(t.kind="scalar",t.result="",i=a=t.position,s=!1;0!==d;){if(58===d){if(pN(n=t.input.charCodeAt(t.position+1))||r&&gN(n))break}else if(35===d){if(pN(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&LN(t)||r&&gN(d))break;if(uN(d)){if(o=t.line,l=t.lineStart,c=t.lineIndent,AN(t,!1,-1),e<=t.lineIndent){s=!0,d=t.input.charCodeAt(t.position);continue}t.position=a,t.line=o,t.lineStart=l,t.lineIndent=c;break}}s&&(_N(t,i,a,!1),NN(t,t.line-o),i=a=t.position,s=!1),dN(d)||(a=t.position+1),d=t.input.charCodeAt(++t.position)}return _N(t,i,a,!1),!!t.result||(t.kind=h,t.result=u,!1)}function MN(t,e){var r,n,i=t.input.charCodeAt(t.position);if(39!==i)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(i=t.input.charCodeAt(t.position));)if(39===i){if(_N(t,r,t.position,!0),39!==(i=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,n=t.position}else uN(i)?(_N(t,r,n,!0),NN(t,AN(t,!1,e)),r=n=t.position):t.position===t.lineStart&&LN(t)?kN(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);kN(t,"unexpected end of the stream within a single quoted scalar")}function RN(t,e){var r,n,i,a,s,o=t.input.charCodeAt(t.position);if(34!==o)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(o=t.input.charCodeAt(t.position));){if(34===o)return _N(t,r,t.position,!0),t.position++,!0;if(92===o){if(_N(t,r,t.position,!0),uN(o=t.input.charCodeAt(++t.position)))AN(t,!1,e);else if(o<256&&aM[o])t.result+=sM[o],t.position++;else if(0<(s=mN(o))){for(i=s,a=0;0<i;i--)0<=(s=fN(o=t.input.charCodeAt(++t.position)))?a=(a<<4)+s:kN(t,"expected hexadecimal character");t.result+=xN(a),t.position++}else kN(t,"unknown escape sequence");r=n=t.position}else uN(o)?(_N(t,r,n,!0),NN(t,AN(t,!1,e)),r=n=t.position):t.position===t.lineStart&&LN(t)?kN(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}kN(t,"unexpected end of the stream within a double quoted scalar")}function DN(t,e){var r,n,i,a,s,o,l,c,h,u,d,p=!0,g=t.tag,f=t.anchor,m=Object.create(null),y=t.input.charCodeAt(t.position);if(91===y)c=!(s=93),a=[];else{if(123!==y)return!1;s=125,c=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),y=t.input.charCodeAt(++t.position);0!==y;){if(AN(t,!0,e),(y=t.input.charCodeAt(t.position))===s)return t.position++,t.tag=g,t.anchor=f,t.kind=c?"mapping":"sequence",t.result=a,!0;p?44===y&&kN(t,"expected the node content, but found ','"):kN(t,"missed comma between flow collection entries"),d=null,o=l=!1,63===y&&pN(t.input.charCodeAt(t.position+1))&&(o=l=!0,t.position++,AN(t,!0,e)),r=t.line,n=t.lineStart,i=t.position,UN(t,e,WI,!1,!0),u=t.tag,h=t.result,AN(t,!0,e),y=t.input.charCodeAt(t.position),!l&&t.line!==r||58!==y||(o=!0,y=t.input.charCodeAt(++t.position),AN(t,!0,e),UN(t,e,WI,!1,!0),d=t.result),c?CN(t,a,m,u,h,d,r,n,i):o?a.push(CN(t,null,m,u,h,d,r,n,i)):a.push(h),AN(t,!0,e),44===(y=t.input.charCodeAt(t.position))?(p=!0,y=t.input.charCodeAt(++t.position)):p=!1}kN(t,"unexpected end of the stream within a flow collection")}function ON(t,e){var r,n,i,a=ZI,s=!1,o=!1,l=e,c=0,h=!1,u=t.input.charCodeAt(t.position);if(124===u)n=!1;else{if(62!==u)return!1;n=!0}for(t.kind="scalar",t.result="";0!==u;)if(43===(u=t.input.charCodeAt(++t.position))||45===u)ZI===a?a=43===u?JI:QI:kN(t,"repeat of a chomping mode identifier");else{if(!(0<=(i=yN(u))))break;0===i?kN(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?kN(t,"repeat of an indentation width identifier"):(l=e+i-1,o=!0)}if(dN(u)){for(;dN(u=t.input.charCodeAt(++t.position)););if(35===u)for(;!uN(u=t.input.charCodeAt(++t.position))&&0!==u;);}for(;0!==u;){for(SN(t),t.lineIndent=0,u=t.input.charCodeAt(t.position);(!o||t.lineIndent<l)&&32===u;)t.lineIndent++,u=t.input.charCodeAt(+
`,s?1+c:c),o=s=!0,c=0,r=t.position;!uN(u)&&0!==u;)u=t.input.charCodeAt(++t.position);_N(t,r,t.position,!1)}}return!0}function PN(t,e){var r,n,i=t.tag,a=t.anchor,s=[],o=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),n=t.input.charCodeAt(t.position);0!==n&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,kN(t,"tab characters must not be used in indentation")),45===n)&&pN(t.input.charCodeAt(t.position+1));)if(o=!0,t.position++,AN(t,!0,-1)&&t.lineIndent<=e)s.push(null),n=t.input.charCodeAt(t.position);else if(r=t.line,UN(t,e,XI,!1,!0),s.push(t.result),AN(t,!0,-1),n=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==n)kN(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!o&&(t.tag=i,t.anchor=a,t.kind="sequence",t.result=s,!0)}function BN(t,e,r){var n,i,a,s,o,l,c,h=t.tag,u=t.anchor,d={},p=Object.create(null),g=null,f=null,m=null,y=!1,v=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),c=t.input.charCodeAt(t.position);0!==c;){if(y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,kN(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),a=t.line,63!==c&&58!==c||!pN(n)){if(s=t.line,o=t.lineStart,l=t.position,!UN(t,r,VI,!1,!0))break;if(t.line===a){for(c=t.input.charCodeAt(t.position);dN(c);)c=t.input.charCodeAt(++t.position);if(58===c)pN(c=t.input.charCodeAt(++t.position))||kN(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(CN(t,d,p,g,f,null,s,o,l),g=f=m=null),i=y=!(v=!0),g=t.tag,f=t.result;else{if(!v)return t.tag=h,t.anchor=u,!0;kN(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return t.tag=h,t.anchor=u,!0;kN(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(CN(t,d,p,g,f,null,s,o,l),g=f=m=null),i=y=v=!0):y?i=!(y=!1):kN(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,c=n;if((t.line===a||t.lineIndent>e)&&(y&&(s=t.line,o=t.lineStart,l=t.position),UN(t,e,KI,!0,i)&&(y?f=t.result:m=t.result),y||(CN(t,d,p,g,f,m,s,o,l),g=f=m=null),AN(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==c)kN(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&CN(t,d,p,g,f,null,s,o,l),v&&(t.tag=h,t.anchor=u,t.kind="mapping",t.result=d),v}function FN(t){var e,r,n,i=!1,a=!1,s=t.input.charCodeAt(t.position);if(33!==s)return!1;if(null!==t.tag&&kN(t,"duplication of a tag property"),60===(s=t.input.charCodeAt(++t.position))?(i=!0,s=t.input.charCodeAt(++t.position)):33===s?(a=!0,r="!!",s=t.input.charCodeAt(++t.position)):r="!",e=t.position,i){for(;0!==(s=t.input.charCodeAt(++t.position))&&62!==s;);t.position<t.length?(n=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):kN(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!pN(s);)33===s&&(a?kN(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),nM.test(r)||kN(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),rM.test(n)&&kN(t,"tag suffix cannot contain flow indicator characters")}n&&!iM.test(n)&&kN(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{kN(t,"tag name is malformed: "+n)}return i?t.tag=n:HI.call(t.tagMap,r)?t.tag=t.tagMap[r]+n:"!"===r?t.tag="!"+n:"!!"===r?t.tag="tag:yaml.org,2002:"+n:kN(t,'undeclared tag handle "'+r+'"'),!0}function $N(t){var e,r=t.input.charCodeAt(t.position);if(38!==r)return!1;for(null!==t.anchor&&kN(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!pN(r)&&!gN(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&kN(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function zN(t){var e,r=t.input.charCodeAt(t.position);if(42!==r)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!pN(
`),65279===t.charCodeAt(0))?t.slice(1):t,e);for(-1!==(e=t.indexOf("\0"))&&(r.position=e,kN(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)GN(r);return r.documents}function jN(t,e,r){null!==e&&"object"==typeof e&&"u"<typeof r&&(r=e,e=null);var n=qN(t,r);if("function"!=typeof e)return n;for(var i=0,a=n.length;i<a;i+=1)e(n[i])}function YN(t,e){if(0!==(t=qN(t,e)).length){if(1===t.length)return t[0];throw new _I("expected a single document in the stream, but found more")}}function HN(t,e){var r,n,i,a,s,o,l;if(null===e)return{};for(r={},i=0,a=(n=Object.keys(e)).length;i<a;i+=1)s=n[i],o=String(e[s]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=t.compiledTypeMap.fallback[s])&&uM.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}function WN(t){var e,r,n=t.toString(16).toUpperCase();if(t<=255)e="x",r=2;else if(t<=65535)e="u",r=4;else{if(!(t<=4294967295))throw new _I("code point within a string may not be greater than 0xFFFFFFFF");e="U",r=8}return"\\"+e+TI.repeat("0",r-n.length)+n}function VN(t){this.schema=t.schema||YI,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=TI.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=HN(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?yM:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function XN(t,e){for(var r,n,i=TI.repeat(" ",e),a=0,s="",o=t.length;a<o;)a=-1===(r=t.indexOf(`
`+t.slice(s+1):o+=t.slice(a),o.slice(1)}function dI(t){for(var e,r,n="",i=0;i<t.length;65536<=e?i+=2:i++)e=iI(t,i),!(r=gM[e])&&JN(e)?(n+=t[i],65536<=e&&(n+=t[i+1])):n+=r||WN(e);return n}function pI(t,e,r){for(var n,i="",a=t.tag,s=0,o=r.length;s<o;s+=1)n=r[s],t.replacer&&(n=t.replacer.call(r,String(s),n)),(vI(t,e,n,!1,!1)||"u"<typeof n&&vI(t,e,null,!1,!1))&&(""!==i&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=a,t.dump="["+i+"]"}function gI(t,e,r,n){for(var i,a="",s=t.tag,o=0,l=r.length;o<l;o+=1)i=r[o],t.replacer&&(i=t.replacer.call(r,String(o),i)),(vI(t,e+1,i,!0,!0,!1,!0)||"u"<typeof i&&vI(t,e+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=KN(t,e)),t.dump&&pM===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=s,t.dump=a||"[]"}function fI(t,e,r){for(var n,i,a,s="",o=t.tag,l=Object.keys(r),c=0,h=l.length;c<h;c+=1)(a="")!==s&&(a+=", "),t.condenseFlow&&(a+='"'),i=r[n=l[c]],t.replacer&&(i=t.replacer.call(r,n,i)),vI(t,e,n,!1,!1)&&(1024<t.dump.length&&(a+="? "),a+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),vI(t,e,i,!1,!1))&&(s+=a+=t.dump);t.tag=o,t.dump="{"+s+"}"}function mI(t,e,r,n){var i,a,s,o,l,c="",h=t.tag,u=Object.keys(r);if(!0===t.sortKeys)u.sort();else if("function"==typeof t.sortKeys)u.sort(t.sortKeys);else if(t.sortKeys)throw new _I("sortKeys must be a boolean or a function");for(i=0,a=u.length;i<a;i+=1)l="",n&&""===c||(l+=KN(t,e)),s=r[o=u[i]],t.replacer&&(s=t.replacer.call(r,o,s)),vI(t,e+1,o,!0,!0,!0)&&((o=null!==t.tag&&"?"!==t.tag||t.dump&&1024<t.dump.length)&&(t.dump&&pM===t.dump.charCodeAt(0)?l+="?":l+="? "),l+=t.dump,o&&(l+=KN(t,e)),vI(t,e+1,s,!0,o))&&(t.dump&&pM===t.dump.charCodeAt(0)?l+=":":l+=": ",c+=l+=t.dump);t.tag=h,t.dump=c||"{}"}function yI(t,e,r){for(var n,i,a,s=r?t.explicitTypes:t.implicitTypes,o=0,l=s.length;o<l;o+=1)if(((i=s[o]).instanceOf||i.predicate)&&(!i.instanceOf||"object"==typeof e&&e instanceof i.instanceOf)&&(!i.predicate||i.predicate(e))){if(r?i.multi&&i.representName?t.tag=i.representName(e):t.tag=i.tag:t.tag="?",i.represent){if(a=t.styleMap[i.tag]||i.defaultStyle,"[object Function]"===hM.call(i.represent))n=i.represent(e,a);else{if(!uM.call(i.represent,a))throw new _I("!<"+i.tag+'> tag resolver accepts not "'+a+'" style');n=i.represent[a](e,a)}t.dump=n}return!0}return!1}function vI(t,e,r,n,i,a,s){t.tag=null,t.dump=r,yI(t,r,!1)||yI(t,r,!0);var o,l,c=hM.call(t.dump),h=n,u=(n=n&&(t.flowLevel<0||t.flowLevel>e),"[object Object]"===c||"[object Array]"===c);if(u&&(l=-1!==(o=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||l||2!==t.indent&&0<e)&&(i=!1),l&&t.usedDuplicates[o])t.dump="*ref_"+o;else{if(u&&l&&!t.usedDuplicates[o]&&(t.usedDuplicates[o]=!0),"[object Object]"===c)n&&0!==Object.keys(t.dump).length?(mI(t,e,t.dump,i),l&&(t.dump="&ref_"+o+t.dump)):(fI(t,e,t.dump),l&&(t.dump="&ref_"+o+" "+t.dump));else if("[object Array]"===c)n&&0!==t.dump.length?(t.noArrayIndent&&!s&&0<e?gI(t,e-1,t.dump,i):gI(t,e,t.dump,i),l&&(t.dump="&ref_"+o+t.dump)):(pI(t,e,t.dump),l&&(t.dump="&ref_"+o+" "+t.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(t.skipInvalid)return!1;throw new _I("unacceptable kind of an object to dump "+c)}"?"!==t.tag&&oI(t,t.dump,e,a,h)}null!==t.tag&&"?"!==t.tag&&(r=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),r="!"===t.tag[0]?"!"+r:"tag:yaml.org,2002:"===r.slice(0,18)?"!!"+r.slice(18):"!<"+r+">",t.dump=r+" "+t.dump)}return!0}function xI(t,e){var r,n,i=[],a=[];for(bI(t,i,a),r=0,n=a.length;r<n;r+=1)e.duplicates.push(i[a[r]]);e.usedDuplicates=new Array(n)}function bI(t,e,r){var n,i,a;if(null!==t&&"object"==typeof t)if(-1!==(i=e.indexOf(t)))-1===r.indexOf(i)&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,a=t.length;i<a;i+=1)bI(t[i],e,r);else for(i=0,a=(n=Object.keys(t)).length;i<a;i+=1)bI(t[n[i]],e,r)}function wI(t,e){return(e=new VN(e=e||{})).noRefs||xI(t,e),e.replacer&&(t=e.replacer.call({"":t},"",t)),vI(e,0,t,!0,!0)?e.dump+`
`:""}function kI(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var TI,_I,EI,CI,SI,AI,LI,NI,II,MI,RI,DI,OI,PI,BI,FI,$I,zI,UI,GI,qI,jI,YI,HI,WI,VI,XI,KI,ZI,QI,JI,tM,eM,rM,nM,iM,aM,sM,oM,lM,cM,hM,uM,dM,pM,gM,fM,mM,yM,vM,xM,bM,wM,kM,TM,_M,EM=t(()=>{for(Ae(vL,"isNothing"),Ae(xL,"isObject"),Ae(bL,"toArray"),Ae(wL,"extend"),Ae(kL,"repeat"),Ae(TL,"isNegativeZero"),TI={isNothing:vL,isObject:xL,toArray:bL,repeat:kL,isNegativeZero:TL,extend:wL},Ae(_L,"formatError"),Ae(EL,"YAMLException$1"),((EL.prototype=Object.create(Error.prototype)).constructor=EL).prototype.toString=Ae(function(t){return this.name+": "+_L(this,t)},"toString"),_I=EL,Ae(CL,"getLine"),Ae(SL,"padStart"),Ae(AL,"makeSnippet"),EI=AL,CI=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],SI=["scalar","sequence","mapping"],Ae(LL,"compileStyleAliases"),Ae(NL,"Type$1"),AI=NL,Ae(IL,"compileList"),Ae(ML,"compileMap"),Ae(RL,"Schema$1"),RL.prototype.extend=Ae(function(t){var e=[],r=[];if(t instanceof AI)r.push(t);else if(Array.isArray(t))r=r.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new _I("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit))}return e.forEach(function(t){if(!(t instanceof AI))throw new _I("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new _I("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new _I("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof AI))throw new _I("Specified list of YAML types (or a single Type object) contains a non-Type object.")}),(t=Object.create(RL.prototype)).implicit=(this.implicit||[]).concat(e),t.explicit=(this.explicit||[]).concat(r),t.compiledImplicit=IL(t,"implicit"),t.compiledExplicit=IL(t,"explicit"),t.compiledTypeMap=ML(t.compiledImplicit,t.compiledExplicit),t},"extend"),II=RL,cM=new AI("tag:yaml.org,2002:str",{kind:"scalar",construct:Ae(function(t){return null!==t?t:""},"construct")}),DI=new AI("tag:yaml.org,2002:seq",{kind:"sequence",construct:Ae(function(t){return null!==t?t:[]},"construct")}),OI=new AI("tag:yaml.org,2002:map",{kind:"mapping",construct:Ae(function(t){return null!==t?t:{}},"construct")}),II=new II({explicit:[cM,DI,OI]}),Ae(DL,"resolveYamlNull"),Ae(OL,"constructYamlNull"),Ae(PL,"isNull"),cM=new AI("tag:yaml.org,2002:null",{kind:"scalar",resolve:DL,construct:OL,predicate:PL,represent:{canonical:Ae(function(){return"~"},"canonical"),lowercase:Ae(function(){return"null"},"lowercase"),uppercase:Ae(function(){return"NULL"},"uppercase"),camelcase:Ae(function(){return"Null"},"camelcase"),empty:Ae(function(){return""},"empty")},defaultStyle:"lowercase"}),Ae(BL,"resolveYamlBoolean"),Ae(FL,"constructYamlBoolean"),Ae($L,"isBoolean"),DI=new AI("tag:yaml.org,2002:bool",{kind:"scalar",resolve:BL,construct:FL,predicate:$L,represent:{lowercase:Ae(function(t){return t?"true":"false"},"lowercase"),uppercase:Ae(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:Ae(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),Ae(zL,"isHexCode"),Ae(UL,"isOctCode"),Ae(GL,"isDecCode"),Ae(qL,"resolveYamlInteger"),Ae(jL,"constructYamlInteger"),Ae(YL,"isInteger"),OI=new AI("tag:yaml.org,2002:int",{kind:"scalar",resolve:qL,construct:jL,predicate:YL,represent:{binary:Ae(function(t){return 0<=t?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:Ae(function(t){return 0<=t?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:Ae(function(t){return t.toString(10)},"decimal"),hexadecimal:Ae(function(t){return 0<=t?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecima
\r`,Ae(tN,"resolveYamlBinary"),Ae(eN,"constructYamlBinary"),Ae(rN,"representYamlBinary"),Ae(nN,"isBinary"),BI=new AI("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tN,construct:eN,predicate:nN,represent:rN}),FI=Object.prototype.hasOwnProperty,$I=Object.prototype.toString,Ae(iN,"resolveYamlOmap"),Ae(aN,"constructYamlOmap"),zI=new AI("tag:yaml.org,2002:omap",{kind:"sequence",resolve:iN,construct:aN}),UI=Object.prototype.toString,Ae(sN,"resolveYamlPairs"),Ae(oN,"constructYamlPairs"),GI=new AI("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:sN,construct:oN}),qI=Object.prototype.hasOwnProperty,Ae(lN,"resolveYamlSet"),Ae(cN,"constructYamlSet"),jI=new AI("tag:yaml.org,2002:set",{kind:"mapping",resolve:lN,construct:cN}),YI=cM.extend({implicit:[DI,OI],explicit:[BI,zI,GI,jI]}),HI=Object.prototype.hasOwnProperty,KI=4,ZI=WI=1,QI=VI=2,JI=XI=3,tM=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,eM=/[\x85\u2028\u2029]/,rM=/[,\[\]\{\}]/,nM=/^(?:!|!!|![a-z\-]+!)$/i,iM=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,Ae(hN,"_class"),Ae(uN,"is_EOL"),Ae(dN,"is_WHITE_SPACE"),Ae(pN,"is_WS_OR_EOL"),Ae(gN,"is_FLOW_INDICATOR"),Ae(fN,"fromHexCode"),Ae(mN,"escapedHexLen"),Ae(yN,"fromDecimalCode"),Ae(vN,"simpleEscapeSequence"),Ae(xN,"charFromCodepoint"),aM=new Array(256),sM=new Array(256),oM=0;oM<256;oM++)aM[oM]=vN(oM)?1:0,sM[oM]=vN(oM);Ae(bN,"State$1"),Ae(wN,"generateError"),Ae(kN,"throwError"),Ae(TN,"throwWarning"),lM={YAML:Ae(function(t,e,r){var n,i;null!==t.version&&kN(t,"duplication of %YAML directive"),1!==r.length&&kN(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&kN(t,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),i=parseInt(i[2],10),1!==n&&kN(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=i<2,1!==i&&2!==i&&TN(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:Ae(function(t,e,r){var n;2!==r.length&&kN(t,"TAG directive accepts exactly two arguments"),n=r[1],nM.test(r=r[0])||kN(t,"ill-formed tag handle (first argument) of the TAG directive"),HI.call(t.tagMap,r)&&kN(t,'there is a previously declared suffix for "'+r+'" tag handle'),iM.test(n)||kN(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{kN(t,"tag prefix is malformed: "+n)}t.tagMap[r]=n},"handleTagDirective")},Ae(_N,"captureSegment"),Ae(EN,"mergeMappings"),Ae(CN,"storeMappingPair"),Ae(SN,"readLineBreak"),Ae(AN,"skipSeparationSpace"),Ae(LN,"testDocumentSeparator"),Ae(NN,"writeFoldedLines"),Ae(IN,"readPlainScalar"),Ae(MN,"readSingleQuotedScalar"),Ae(RN,"readDoubleQuotedScalar"),Ae(DN,"readFlowCollection"),Ae(ON,"readBlockScalar"),Ae(PN,"readBlockSequence"),Ae(BN,"readBlockMapping"),Ae(FN,"readTagProperty"),Ae($N,"readAnchorProperty"),Ae(zN,"readAlias"),Ae(UN,"composeNode"),Ae(GN,"readDocument"),Ae(qN,"loadDocuments"),Ae(jN,"loadAll$1"),Ae(YN,"load$1"),cM={loadAll:jN,load:YN},hM=Object.prototype.toString,uM=Object.prototype.hasOwnProperty,dM=65279,pM=10,gM={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},fM=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],mM=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/,Ae(HN,"compileStyleMap"),Ae(WN,"encodeHex"),yM=2,Ae(VN,"State"),Ae(XN,"indentString"),Ae(KN,"generateNextLine"),Ae(ZN,"testImplicitResolving"),Ae(QN,"isWhitespace"),Ae(JN,"isPrintable"),Ae(tI,"isNsCharOrWhitespace"),Ae(eI,"isPlainSafe"),Ae(rI,"isPlainSafeFirst"),Ae(nI,"isPlainSafeLast"),Ae(iI,"codePointAt"),Ae(aI,"needIndentIndicator"),vM=1,xM=2,bM=3,wM=4,kM=5,Ae(sI,"chooseScalarStyle"),Ae(oI,"writeScalar"),Ae(lI,"blockHeader"),Ae(cI,"dropEndingNewline"),Ae(hI,"foldString"),Ae(uI,"foldLine"),Ae(dI,"escapeString"),Ae(pI,"writeFlowSequence"),Ae(gI,"writeBlockSequence"),Ae(fI,"writeFlowMapping"),Ae(mI,"writeBlockMapping"),Ae(yI,"detectType"),Ae(vI,"writeNode"),Ae(xI,"getDuplicate
`)?c+`
`:`{
`+c+`
}`,(n=_M(i,{schema:TM})).shape){if(n.shape!==n.shape.toLowerCase()||n.shape.includes("_"))throw new Error(`Nosuchshape:${n.shape}.Shapenamesshouldbelowercase.`);if(!pL(n.shape))throw new Error(`Nosuchshape:${n.shape}.`);e.type=n?.shape}n?.label&&(e.text=n?.label),n?.icon&&(e.icon=n?.icon,!n.label?.trim())&&e.text===r&&(e.text=""),n?.form&&(e.form=n?.form),n?.pos&&(e.pos=n?.pos),n?.img&&(e.img=n?.img,!n.label?.trim())&&e.text===r&&(e.text=""),n?.constraint&&(e.constraint=n.constraint),n.w&&(e.assetWidth=Number(n.w)),n.h&&(e.assetHeight=Number(n.h))}}},"addVertex"),qM=Ae(function(t,e,r){if(R.info("abc78 Got edge...",t={start:t,end:e,type:void 0,text:"",labelType:"text"}),void 0!==(e=r.text)&&(t.text=zM(e.text.trim()),t.text.startsWith('"')&&t.text.endsWith('"')&&(t.text=t.text.substring(1,t.text.length-1)),t.labelType=e.type),void 0!==r&&(t.type=r.type,t.stroke=r.stroke,t.length=10<r.length?10:r.length),!(NM.length<(AM.maxEdges??500)))throw new Error(`Edgelimitexceeded.${NM.length}edgesfound,butthelimitis${AM.maxEdges}.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},F={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:KJ(this.popChar())}}}characterClass(){let t=[],e=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),e=!0);this.isClassAtom();){var r=this.classAtom();if(r.type,ett(r)&&this.isRangeDash()){this.consumeChar("-");var n=this.classAtom();if(n.type,ett(n)){if(n.value<r.value)throw Error("Range out of order in character class");t.push({from:r.value,to:n.value})}else ZJ(r.value,t),t.push(KJ("-")),ZJ(n.value,t)}else ZJ(r.value,t)}return this.consumeChar("]"),{type:"Set",complement:e,value:t}}classAtom(){switch(this.peekChar()){case"]":case`
FordetailsSee:https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`)):(e=frt(t.PATTERN,i.ensureOptimizations),JG(e)&&(m=!1),v(e,t=>{Zrt(r,t,f[n])})):(i.ensureOptimizations&&yet(`${Trt} TokenType: <${t.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
FordetailsSee:https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),m=!1);return r},[])}),{emptyGroups:g,patternIdxToConfig:f,charCodeToPatternIdxToConfig:y,hasCustom:n,canBeOptimized:m}}function Srt(t,e){let r=[],n=Lrt(t);r=r.concat(n.errors);var i=(t=Nrt(n.valid)).valid;return r=(r=(r=(r=(r=r.concat(t.errors)).concat(Art(i))).concat(Prt(i))).concat(Brt(i,e))).concat(Frt(i))}function Art(t){let e=[],r=GU(t,t=>iq(t[tnt]));return e=(e=(e=(e=(e=e.concat(Irt(r))).concat(Rrt(r))).concat(Drt(r))).concat(Ort(r))).concat(Mrt(r))}function Lrt(t){var e=GU(t,t=>!IG(t,tnt));return{errors:x(e,t=>({message:"Token Type: ->"+t.name+"<- missing static 'PATTERN' property",type:Snt.MISSING_PATTERN,tokenTypes:[t]})),valid:uU(t,e)}}function Nrt(t){var e=GU(t,t=>(t=t[tnt],!(iq(t)||E5(t)||IG(t,"exec")||DG(t))));return{errors:x(e,t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Snt.INVALID_PATTERN,tokenTypes:[t]})),valid:uU(t,e)}}function Irt(t){class n extends ctt{static{Ae(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(t){this.found=!0}}return t=GU(t,t=>{t=t.PATTERN;try{var e=hrt(t),r=new n;return r.visit(e),r.found}catch{return ant.test(t.source)}}),x(t,t=>({message:`Unexpected RegExp Anchor Error:
Seechevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORSfordetails.`,type:Snt.EOI_ANCHOR_FOUND,tokenTypes:[t]}))}function Mrt(t){return t=GU(t,t=>t.PATTERN.test("")),x(t,t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' must not match an empty string",type:Snt.EMPTY_MATCH_PATTERN,tokenTypes:[t]}))}function Rrt(t){class n extends ctt{static{Ae(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(t){this.found=!0}}return t=GU(t,t=>{t=t.PATTERN;try{var e=hrt(t),r=new n;return r.visit(e),r.found}catch{return snt.test(t.source)}}),x(t,t=>({message:`UnexpectedRegExpAnchorError:
Seehttps://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Snt.SOI_ANCHOR_FOUND,tokenTypes:[t]}))}function Drt(t){return t=GU(t,t=>(t=t[tnt])instanceof RegExp&&(t.multiline||t.global)),x(t,t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Snt.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[t]}))}function Ort(t){let n=[],e=x(t,r=>Pj(t,(t,e)=>(r.PATTERN.source!==e.PATTERN.source||jG(n,e)||e.PATTERN===Lnt.NA||(n.push(e),t.push(e)),t),[]));e=e$(e);var r=GU(e,t=>1<t.length);return x(r,t=>{var e=x(t,t=>t.name);return{message:`The same RegExp pattern ->${eG(t).PATTERN}<-has been used in all of the following Token Types: ${e.join(", ")} <-`,type:Snt.DUPLICATE_PATTERNS_FOUND,tokenTypes:t}})}function Prt(t){return t=GU(t,t=>!!IG(t,"GROUP")&&(t=t.GROUP)!==Lnt.SKIPPED&&t!==Lnt.NA&&!DG(t)),x(t,t=>({message:"Token Type: ->"+t.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Snt.INVALID_GROUP_TYPE_FOUND,tokenTypes:[t]}))}function Brt(t,e){return t=GU(t,t=>void 0!==t.PUSH_MODE&&!jG(e,t.PUSH_MODE)),x(t,t=>({message:`Token Type: ->${t.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${t.PUSH_MODE}<-which does not exist`,type:Snt.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[t]}))}function Frt(t){let a=[],e=Pj(t,(t,e,r)=>{var n=e.PATTERN;return n!==Lnt.NA&&(DG(n)?t.push({str:n,idx:r,tokenType:e}):iq(n)&&zrt(n)&&t.push({str:n.source,idx:r,tokenType:e})),t},[]);return v(t,(n,i)=>{v(e,({str:t,idx:e,tokenType:r})=>{i<e&&$rt(t,n.PATTERN)&&(e=`Token: ->${r.name}<- can never be matched.
Seehttps://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`,a.push({message:e,type:Snt.UNREACHABLE_PATTERN,tokenTypes:[n,r]}))})}),a}function $rt(t,e){var r;if(iq(e))return null!==(r=e.exec(t))&&0===r.index;if(E5(e))return e(t,0,[],{});if(IG(e,"exec"))return e.exec(t,0,[],{});if("string"==typeof e)return e===t;throw Error("non exhaustive match")}function zrt(e){return void 0===ZU([".","\\","[","]","|","^","$","(",")","?","*","+","{"],t=>-1!==e.source.indexOf(t))}function Urt(t){var e=t.ignoreCase?"i":"";return new RegExp(`^(?:${t.source})`,e)}function Grt(t){var e=t.ignoreCase?"iy":"y";return new RegExp(""+t.source,e)}function qrt(t,e,r){let i=[];return IG(t,ent)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+ent+`> property in its definition
`,type:Snt.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),IG(t,rnt)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+rnt+`>propertyinitsdefinition
FordetailsSee:https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(e.issue===Snt.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
`+t)}tokenizeInternal(i,P){let t,a,e,r,n,s,o,l,c,h,B,u,d,F,p,g=i,$=g.length,f=0,m=0,z=this.hasCustom?0:Math.floor(i.length/10),y=new Array(z),v=[],x=this.trackStartLines?1:void 0,b=this.trackStartLines?1:void 0,w=Yrt(this.emptyGroups),U=this.trackStartLines,k=this.config.lineTerminatorsPattern,T=0,_=[],E=[],C=[],G=[];Object.freeze(G);let S;function A(){return _}function L(t){return t=Qrt(t),void 0===(t=E[t])?G:t}Ae(A,"getPossiblePatternsSlow"),Ae(L,"getPossiblePatternsOptimized");var q=Ae(t=>{var e;1===C.length&&void 0===t.tokenType.PUSH_MODE?(e=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(t),v.push({offset:t.startOffset,line:t.startLine,column:t.startColumn,length:t.image.length,message:e})):(C.pop(),t=fU(C),_=this.patternIdxToConfig[t],E=this.charCodeToPatternIdxToConfig[t],T=_.length,e=this.canModeBeOptimized[t]&&!1===this.config.safeMode,S=E&&e?L:A)},"pop_mode");function N(t){C.push(t),E=this.charCodeToPatternIdxToConfig[t],_=this.patternIdxToConfig[t],T=_.length,T=_.length,t=this.canModeBeOptimized[t]&&!1===this.config.safeMode,S=E&&t?L:A}Ae(N,"push_mode"),N.call(this,P);let I,j=this.config.recoveryEnabled;for(;f<$;){s=null;var Y=g.charCodeAt(f),H=S(Y),W=H.length;for(t=0;t<W;t++){var M=(I=H[t]).pattern,V=(o=null,I.short);if(!1!==V?Y===V&&(s=M):!0===I.isCustom?null!==(p=M.exec(g,f,y,w))?(s=p[0],void 0!==p.payload&&(o=p.payload)):s=null:(this.updateLastIndex(M,f),s=this.match(M,i,f)),null!==s){if(void 0!==(n=I.longerAlt)){var X=n.length;for(e=0;e<X;e++){var R=_[n[e]],D=R.pattern;if(!(l=null)===R.isCustom?null!==(p=D.exec(g,f,y,w))?(r=p[0],void 0!==p.payload&&(l=p.payload)):r=null:(this.updateLastIndex(D,f),r=this.match(D,i,f)),r&&r.length>s.length){s=r,o=l,I=R;break}}}break}}if(null!==s){if(c=s.length,void 0!==(h=I.group)&&(B=I.tokenTypeIdx,u=this.createTokenInstance(s,f,B,I.tokenType,x,b,c),this.handlePayload(u,o),!1===h?m=this.addToken(y,m,u):w[h].push(u)),i=this.chopInput(i,c),f+=c,b=this.computeNewColumn(b,c),!0===U&&!0===I.canLineTerminator){let t=0,e,r;for(k.lastIndex=0;!0===(e=k.test(s))&&(r=k.lastIndex-1,t++),!0===e;);0!==t&&(x+=t,b=c-r,this.updateTokenEndLineColumnLocation(u,h,r,t,x,b,c))}this.handleModes(I,q,N,u)}else{let t=f,e=x,r=b,n=!1===j;for(;!1===n&&f<$;)for(i=this.chopInput(i,1),f++,a=0;a<T;a++){var O=_[a],K=O.pattern,Z=O.short;if(!1!==Z?g.charCodeAt(f)===Z&&(n=!0):n=!0===O.isCustom?null!==K.exec(g,f,y,w):(this.updateLastIndex(K,f),null!==K.exec(i)),!0===n)break}if(d=f-t,b=this.computeNewColumn(b,d),F=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(g,t,d,e,r),v.push({offset:t,line:e,column:r,length:d,message:F}),!1===j)break}}return this.hasCustom||(y.length=m),{tokens:y,groups:w,errors:v}}handleModes(t,e,r,n){var i;!0===t.pop?(i=t.push,e(n),void 0!==i&&r.call(this,i)):void 0!==t.push&&r.call(this,t.push)}chopInput(t,e){return t.substring(e)}updateLastIndex(t,e){t.lastIndex=e}updateTokenEndLineColumnLocation(t,e,r,n,i,a,s){void 0!==e&&(r=(e=r===s-1)?-1:0,1===n&&1==e||(t.endLine=i+r,t.endColumn=a-1-r))}computeNewColumn(t,e){return t+e}createOffsetOnlyToken(t,e,r,n){return{image:t,startOffset:e,tokenTypeIdx:r,tokenType:n}}createStartOnlyToken(t,e,r,n,i,a){return{image:t,startOffset:e,startLine:i,startColumn:a,tokenTypeIdx:r,tokenType:n}}createFullToken(t,e,r,n,i,a,s){return{image:t,startOffset:e,endOffset:e+s-1,startLine:i,endLine:i,startColumn:a,endColumn:a+s-1,tokenTypeIdx:r,tokenType:n}}addTokenUsingPush(t,e,r){return t.push(r),e}addTokenUsingMemberAccess(t,e,r){return t[e]=r,++e}handlePayloadNoCustom(t,e){}handlePayloadWithCustom(t,e){null!==e&&(t.payload=e)}matchWithTest(t,e,r){return!0===t.test(e)?e.substring(r,t.lastIndex):null}matchWithExec(t,e){return null!==(t=t.exec(e))?t[0]:null}}).SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",Lnt.NA=/NOT_APPLICABLE/});function Rnt(t){return Dnt(t)?t.LABEL:t.name}function Dnt(t){return DG(t.LABEL)&&""!==t.LABEL}function Ont(t){return Pnt(t)}function Pnt(t){var e=t.patter
See:https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return IG(t,znt)&&(r.CATEGORIES=t[znt]),pnt([r]),IG(t,Unt)&&(r.LABEL=t[Unt]),IG(t,Gnt)&&(r.GROUP=t[Gnt]),IG(t,jnt)&&(r.POP_MODE=t[jnt]),IG(t,qnt)&&(r.PUSH_MODE=t[qnt]),IG(t,Ynt)&&(r.LONGER_ALT=t[Ynt]),IG(t,Hnt)&&(r.LINE_BREAKS=t[Hnt]),IG(t,Wnt)&&(r.START_CHARS_HINT=t[Wnt]),r}function Bnt(t,e,r,n,i,a,s,o){return{image:e,startOffset:r,endOffset:n,startLine:i,endLine:a,startColumn:s,endColumn:o,tokenTypeIdx:t.tokenTypeIdx,tokenType:t}}function Fnt(t,e){return unt(t,e)}var $nt,znt,Unt,Gnt,qnt,jnt,Ynt,Hnt,Wnt,Vnt,Xnt,Knt,Znt,Qnt=t(()=>{_Y(),Mnt(),Nnt(),Ae(Rnt,"tokenLabel"),Ae(Dnt,"hasTokenLabel"),$nt="parent",znt="categories",Unt="label",Gnt="group",qnt="push_mode",jnt="pop_mode",Ynt="longer_alt",Hnt="line_breaks",Wnt="start_chars_hint",Ae(Ont,"createToken"),Ae(Pnt,"createTokenInternal"),pnt([Vnt=Ont({name:"EOF",pattern:Lnt.NA})]),Ae(Bnt,"createTokenInstance"),Ae(Fnt,"tokenMatcher")}),Jnt=t(()=>{Qnt(),_Y(),Xet(),Xnt={buildMismatchTokenMessage({expected:t,actual:e}){return`Expecting ${Dnt(t)?`--> ${Rnt(t)} <--`:`token of type --> ${t.name} <--`} but found --> '${e.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:t}){return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage({expectedPathsPerAlt:t,actual:e,customUserDescription:r}){var n="Expecting: ",e=`
butfound:'`+eG(e).image+"'";returnr?n+r+e:n+`expecting at least one iteration which starts with one of these possible Token sequences::
<${x(t,t=>`[${x(t,t=>Rnt(t)).join(",")}]`).join(" ,")}>`+e}},Object.freeze(Xnt),Knt={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<-
insidetoplevelrule:->`+t.name+"<-"}},Znt={buildDuplicateFoundError(t,e){function r(t){return t instanceof zet?t.terminalType.name:t instanceof Iet?t.nonTerminalName:""}Ae(r,"getExtraProductionArgument");let n=t.name,i=eG(e),a=i.idx,s=Wet(i),o=r(i),l=0<a,c=`->${s}${l?a:""}<-${o?`with argument: ->${o}<-`:""}
ForFurtherdetails.`)}if(Kk(t))this.tokensMap=Pj(t,(t,e)=>(t[e.name]=e,t),{});else if(IG(t,"modes")&&PU(UP(zG(t.modes)),Tnt))e=UP(zG(t.modes)),e=cY(e),this.tokensMap=Pj(e,(t,e)=>(t[e.name]=e,t),{});else{if(!k5(t))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=XF(t)}this.tokensMap.EOF=Vnt,e=IG(t,"modes")?UP(zG(t.modes)):zG(t),t=PU(e,t=>JG(t.categoryMatches)),this.tokenMatcher=t?dnt:unt,pnt(zG(this.tokensMap))}defineRule(r,n,t){if(this.selfAnalysisDone)throw Error(`Grammarrule<${r}>maynotbedefinedafterthe'performSelfAnalysis'methodhasbeencalled'
Idxvaluemustbeanonenegativevaluesmallerthan`+(rst+1))).KNOWN_RECORDER_ERROR=!0,t}var est,rst,nst,ist,ast,sst,ost,lst=t(()=>{_Y(),Xet(),Mnt(),Nnt(),Qnt(),xst(),yat(),est={description:"This Object indicates the Parser is during Recording Phase"},Object.freeze(est),rst=Math.pow(2,8)-1,pnt([nst=Ont({name:"RECORDING_PHASE_TOKEN",pattern:Lnt.NA})]),ist=Bnt(nst,`ThisITokenindicatestheParserisinRecordingPhase
See:https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1),Object.freeze(ist),ast={name:`This CSTNode indicates the Parser is in Recording Phase
`))})}constructor(t,e){if(this.definitionErrors=[],this.selfAnalysisDone=!1,this.initErrorHandler(e),this.initLexerAdapter(),this.initLooksAhead(e),this.initRecognizerEngine(t,e),this.initRecoverable(e),this.initTreeBuilder(e),this.initContentAssist(),this.initGastRecorder(e),this.initPerformanceTracer(e),IG(e,"ignoredIssues"))throw new Error(`The<ignoredIssues>IParserConfigpropertyhasbeendeprecated.
`}var ddt,pdt,gdt,fdt,mdt,ydt,vdt,xdt,bdt,wdt,kdt,Tdt,_dt,Edt,Cdt,Sdt=t(()=>{kct(),Stt(),Uht(),Ae(Wut,"parseJSDoc"),Ae(Vut,"isJSDoc"),Ae(Xut,"getLines"),ddt=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,pdt=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu,Ae(Kut,"tokenize"),Ae(Zut,"buildInlineTokens"),gdt=/\S/,fdt=/\s*$/,Ae(Qut,"skipWhitespace"),Ae(Jut,"lastCharacter"),Ae(tdt,"parseJSDocComment"),Ae(edt,"parseJSDocElement"),Ae(rdt,"appendEmptyLine"),Ae(ndt,"parseJSDocText"),Ae(idt,"parseJSDocInline"),Ae(adt,"parseJSDocTag"),Ae(sdt,"parseJSDocLine"),Ae(odt,"normalizeOptions"),Ae(ldt,"normalizeOption"),mdt=class{static{Ae(this,"JSDocCommentImpl")}constructor(t,e){this.elements=t,this.range=e}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(t=>"name"in t)}toString(){let t="";for(var e of this.elements)0===t.length?t=e.toString():(e=e.toString(),t+=udt(t)+e);return t.trim()}toMarkdown(t){let e="";for(var r of this.elements)0===e.length?e=r.toMarkdown(t):(r=r.toMarkdown(t),e+=udt(e)+r);return e.trim()}},ydt=class{static{Ae(this,"JSDocTagImpl")}constructor(t,e,r,n){this.name=t,this.content=e,this.inline=r,this.range=n}toString(){let t="@"+this.name,e=this.content.toString();return 1===this.content.inlines.length?t=t+" "+e:1<this.content.inlines.length&&(t=t+`
${s.x+10},`+(y+m+2)).attr("transform","translate(12,12) rotate(45, "+s.x+","+o+")"),p.attr("cx",s.x+2).attr("cy",y).attr("transform","translate(12,12) rotate(45, "+s.x+","+o+")"),d.attr("x",s.x+5).attr("y",y+3).attr("transform","translate(14,14) rotate(45, "+s.x+","+o+")"))}}},"drawCommitTags"),G1t=Ae(t=>{switch(t.customType??t.type){case zpt.NORMAL:return"commit-normal";case zpt.REVERSE:return"commit-reverse";case zpt.HIGHLIGHT:return"commit-highlight";case zpt.MERGE:return"commit-merge";case zpt.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),q1t=Ae((t,e,r,n)=>{var i,a={x:0,y:0};return 0<t.parents.length?(i=M1t(t.parents))?(i=n.get(i)??a,"TB"===e?i.y+40:"BT"===e?(n.get(t.id)??a).y-40:i.x+40):0:"TB"===e?30:"BT"===e?(n.get(t.id)??a).y-40:0},"calculatePosition"),j1t=Ae((t,e,r)=>{var r="BT"===L1t&&r?e:e+10,e="TB"===L1t||"BT"===L1t?r:_1t.get(t.branch)?.pos,n="TB"===L1t||"BT"===L1t?_1t.get(t.branch)?.pos:r;if(void 0===n||void 0===e)throw new Error("Position were undefined for commit "+t.id);return{x:n,y:e,posWithOffset:r}},"getCommitPosition"),Y1t=Ae((t,a,s)=>{if(!T1t)throw new Error("GitGraph config not found");let o=t.append("g").attr("class","commit-bullets"),l=t.append("g").attr("class","commit-labels"),c="TB"===L1t||"BT"===L1t?30:0,e=[...a.keys()],h=T1t?.parallelCommits??!1,r=Ae((t,e)=>(t=a.get(t)?.seq,e=a.get(e)?.seq,void 0!==t&&void 0!==e?t-e:0),"sortKeys"),n=e.sort(r);"BT"===L1t&&(h&&D1t(n,a,c),n=n.reverse()),n.forEach(t=>{var e=a.get(t);if(!e)throw new Error("Commit not found for key "+t);h&&(c=q1t(e,L1t,c,E1t));var r,n,i,t=j1t(e,c,h);s&&(r=G1t(e),n=e.customType??e.type,i=_1t.get(e.branch)?.index??0,$1t(o,e,t,r,i,n),z1t(l,e,t,c),U1t(l,e,t,c)),"TB"===L1t||"BT"===L1t?E1t.set(e.id,{x:t.x,y:t.posWithOffset}):E1t.set(e.id,{x:t.posWithOffset,y:t.y}),(c="BT"===L1t&&h?c+40:c+40+10)>A1t&&(A1t=c)})},"drawCommits"),H1t=Ae((e,r,t,n,i)=>{let a=(("TB"===L1t||"BT"===L1t?t.x<n.x:t.y<n.y)?r:e).branch,s=Ae(t=>t.branch===a,"isOnBranchToGetCurve"),o=Ae(t=>t.seq>e.seq&&t.seq<r.seq,"isBetweenCommits");return[...i.values()].some(t=>o(t)&&s(t))},"shouldRerouteArrow"),W1t=Ae((t,e,r=0)=>{let n=t+Math.abs(t-e)/2,i;return 5<r?n:S1t.every(t=>10<=Math.abs(t-n))?(S1t.push(n),n):(i=Math.abs(t-e),W1t(t,e-i/5,r+1))},"findLane"),V1t=Ae((t,e,r,n)=>{var i,a=E1t.get(e.id),s=E1t.get(r.id);if(void 0===a||void 0===s)throw new Error(`Commitpositionsnotfoundforcommits${e.id}and`+r.id);let o=H1t(e,r,a,s,n),l="",c="",h=0,u=0,d=_1t.get(r.branch)?.index;r.type===zpt.MERGE&&e.id!==r.parents[0]&&(d=_1t.get(e.branch)?.index);let p;if(o?(l="A 10 10, 0, 0, 0,",c="A 10 10, 0, 0, 1,",h=10,u=10,n=a.y<s.y?W1t(a.y,s.y):W1t(s.y,a.y),i=a.x<s.x?W1t(a.x,s.x):W1t(s.x,a.x),p="TB"===L1t?a.x<s.x?`M${a.x}${a.y}L${i-h}${a.y}${c}${i}${a.y+u}L${i}${s.y-h}${l}${i+u}${s.y}L${s.x}`+s.y:(d=_1t.get(e.branch)?.index,`M${a.x}${a.y}L${i+h}${a.y}${l}${i}${a.y+u}L${i}${s.y-h}${c}${i-u}${s.y}L${s.x}`+s.y):"BT"===L1t?a.x<s.x?`M${a.x}${a.y}L${i-h}${a.y}${l}${i}${a.y-u}L${i}${s.y+h}${c}${i+u}${s.y}L${s.x}`+s.y:(d=_1t.get(e.branch)?.index,`M${a.x}${a.y}L${i+h}${a.y}${c}${i}${a.y-u}L${i}${s.y+h}${l}${i-u}${s.y}L${s.x}`+s.y):a.y<s.y?`M${a.x}${a.y}L${a.x}${n-h}${l}${a.x+u}${n}L${s.x-h}${n}${c}${s.x}${n+u}L${s.x}`+s.y:(d=_1t.get(e.branch)?.index,`M${a.x}${a.y}L${a.x}${n+h}${c}${a.x+u}${n}L${s.x-h}${n}${l}${s.x}${n-u}L${s.x}`+s.y)):(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,"TB"===L1t?(a.x<s.x&&(p=r.type===zpt.MERGE&&e.id!==r.parents[0]?`M${a.x}${a.y}L${a.x}${s.y-h}${l}${a.x+u}${s.y}L${s.x}`+s.y:`M${a.x}${a.y}L${s.x-h}${a.y}${c}${s.x}${a.y+u}L${s.x}`+s.y),a.x>s.x&&(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,p=r.type===zpt.MERGE&&e.id!==r.parents[0]?`M${a.x}${a.y}L${a.x}${s.y-h}${c}${a.x-u}${s.y}L${s.x}`+s.y:`M${a.x}${a.y}L${s.x+h}${a.y}${l}${s.x}${a.y+u}L${s.x}`+s.y),a.x===s.x&&(p=`M${a.x}${a.y}L${s.x}`+s.y)):"BT"===L1t?(a.x<s.x&&(p=r.type===zpt.MERGE&&e.id!==r.parents[0]
`,"id:",e,r),!T1t)throw new Error("GitGraph config not found");let s=T1t.rotateCommitLabel??!1,i=n.db,o=(C1t=i.getCommits(),t=i.getBranchesAsObjArray(),L1t=i.getDirection(),O(`[id="${e}"]`)),l=0;t.forEach((t,e)=>{var r=I1t(t.name),n=o.append("g"),i=n.insert("g").attr("class","branchLabel"),a=i.insert("g").attr("class","label branch-label"),r=(a.node()?.appendChild(r),r.getBBox());l=Z1t(t.name,l,e,r,s),a.remove(),i.remove(),n.remove()}),Y1t(o,C1t,!1),T1t.showBranches&&K1t(o,t),X1t(o,C1t),Y1t(o,C1t,!0),H8.insertTitle(o,"gitTitleText",T1t.titleTopMargin??0,i.getDiagramTitle()),xc(void 0,o,T1t.diagramPadding,T1t.useMaxWidth)},"draw"),J1t={draw:Q1t}}),agt=t(()=>{tgt=Ae(e=>`
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},s={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},B={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
}`,(e=_M(i,{schema:TM})).shape&&(e.shape!==e.shape.toLowerCase()||e.shape.includes("_")))throw new Error(`Nosuchshape:${e.shape}.Shapenamesshouldbelowercase.`);e?.shape&&"kanbanItem"===e.shape&&(n.shape=e?.shape),e?.label&&(n.label=e?.label),e?.icon&&(n.icon=e?.icon),e?.assigned&&(n.assigned=e?.assigned),e?.ticket&&(n.ticket=e?.ticket),e?.priority&&(n.priority=e?.priority)}(r=ZNt(t))?n.parentId=r.id||"kbn"+VNt++:WNt.push(n),HNt.push(n)},"addNode"),eIt={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},rIt=Ae((t,e)=>{switch(R.debug("In get type",t,e),t){case"[":return eIt.RECT;case"(":return")"===e?eIt.ROUNDED_RECT:eIt.CLOUD;case"((":return eIt.CIRCLE;case")":return eIt.CLOUD;case"))":return eIt.BANG;case"{{":return eIt.HEXAGON;default:return eIt.DEFAULT}},"getType"),nIt=Ae((t,e)=>{XNt[t]=e},"setElementForId"),iIt=Ae(t=>{var e,r;t&&(e=D(),r=HNt[HNt.length-1],t.icon&&(r.icon=Cl(t.icon,e)),t.class)&&(r.cssClasses=Cl(t.class,e))},"decorateNode"),aIt=Ae(t=>{switch(t){case eIt.DEFAULT:return"no-border";case eIt.RECT:return"rect";case eIt.ROUNDED_RECT:return"rounded-rect";case eIt.CIRCLE:return"circle";case eIt.CLOUD:return"cloud";case eIt.BANG:return"bang";case eIt.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),sIt=Ae(()=>R,"getLogger"),oIt=Ae(t=>XNt[t],"getElementById"),lIt={clear:KNt,addNode:tIt,getSections:QNt,getData:JNt,nodeType:eIt,getType:rIt,setElementForId:nIt,decorateNode:iIt,type2Str:aIt,getLogger:sIt,getElementById:oIt}}),yIt=t(()=>{fh(),e(),smt(),tc(),Ln(),YR(),OD(),cIt=Ae(async(t,e,r,n)=>{R.debug(`Renderingkanbandiagram
`+t);var i,a=n.db.getData(),s=D(),o=(s.htmlLabels=!1,(t=Jft(e)).append("g")),l=(o.attr("class","sections"),t.append("g"));l.attr("class","items");let c=a.nodes.filter(t=>t.isGroup),h=0,u=[],d=25;for(i of c){var p=s?.kanban?.sectionWidth||200,p=(h+=1,i.x=p*h+10*(h-1)/2,i.width=p,i.y=0,i.height=3*p,i.rx=5,i.ry=5,i.cssClasses=i.cssClasses+" section-"+h,await zR(o,i));d=Math.max(d,p?.labelBBox?.height),u.push(p)}let g=0;for(let i of c){var f,m=u[g];g+=1;let t=s?.kanban?.sectionWidth||200,e=3*-t/2+d,r=e,n=a.nodes.filter(t=>t.parentId===i.id);for(f of n){if(f.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");f.x=i.x,f.width=t-15;var y=(await LD(l,f,{config:s})).node().getBBox();f.y=r+y.height/2,await RD(f),r=f.y+y.height/2+5}var m=m.cluster.select("rect"),v=Math.max(r-e+30,50)+(d-25);m.attr("height",v)}Vl(void 0,t,s.mindmap?.padding??vr.kanban.padding,s.mindmap?.useMaxWidth??vr.kanban.useMaxWidth)},"draw"),hIt={draw:cIt}}),vIt=t(()=>{xn(),uIt=Ae(r=>{let e="";for(let t=0;t<r.THEME_COLOR_LIMIT;t++)r["lineColor"+t]=r["lineColor"+t]||r["cScaleInv"+t],qe(r["lineColor"+t])?r["lineColor"+t]=We(r["lineColor"+t],20):r["lineColor"+t]=Xe(r["lineColor"+t],20);var n=Ae((t,e)=>(r.darkMode?Xe:We)(t,e),"adjuster");for(let t=0;t<r.THEME_COLOR_LIMIT;t++){var i=""+(17-3*t);e+=`
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},d={EOF:1,parseError:Ae(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:Ae(function(t,e){return this.yy=e||this.yy||{},this._input=t,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},"setInput"),input:Ae(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:Ae(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:Ae(function(){return this._more=!0,this},"more"),reject:Ae(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:Ae(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:Ae(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.