@codragraph/cli 2.1.6 → 2.2.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/dist/cli/graphpack.d.ts +48 -0
- package/dist/cli/graphpack.js +217 -0
- package/dist/cli/index.js +72 -0
- package/dist/cli/tool.d.ts +1 -0
- package/dist/cli/tool.js +111 -2
- package/dist/core/graphpack/index.d.ts +14 -0
- package/dist/core/graphpack/index.js +474 -0
- package/dist/core/graphpack/types.d.ts +129 -0
- package/dist/core/graphpack/types.js +4 -0
- package/dist/core/semantic/relationships.d.ts +36 -0
- package/dist/core/semantic/relationships.js +261 -0
- package/dist/mcp/local/local-backend.js +42 -0
- package/dist/mcp/resources.js +125 -0
- package/dist/mcp/tools.js +105 -0
- package/dist/server/api.js +112 -0
- package/dist/web/assets/agent-CQNZQ-hg.js +1139 -0
- package/dist/web/assets/{architectureDiagram-UL44E2DR-DFSpa3Hb.js → architectureDiagram-UL44E2DR-B5_goS_i.js} +1 -1
- package/dist/web/assets/{blockDiagram-7IZFK4PR-DlFaxH1b.js → blockDiagram-7IZFK4PR-D7ZAlDyv.js} +1 -1
- package/dist/web/assets/{c4Diagram-Y2BXMSZH-BjJ_Yrim.js → c4Diagram-Y2BXMSZH-Djcgm_54.js} +1 -1
- package/dist/web/assets/{chunk-3SSMPTDK-KGZSzG3Y.js → chunk-3SSMPTDK-Cv2Zy2FO.js} +1 -1
- package/dist/web/assets/{chunk-6764PJDD-p1sGJgVm.js → chunk-6764PJDD-Cppb-jH-.js} +1 -1
- package/dist/web/assets/{chunk-AZZRMDJM-DIDkQA4V.js → chunk-AZZRMDJM-BHlLC7p3.js} +1 -1
- package/dist/web/assets/{chunk-JQRUD6KW-DAwg-yCU.js → chunk-JQRUD6KW-3F8Zg-1N.js} +1 -1
- package/dist/web/assets/{chunk-KRXBNO2N-ChVO_XdS.js → chunk-KRXBNO2N-C0mbN9a7.js} +1 -1
- package/dist/web/assets/{chunk-LCXTWHL2-DGYdb_Eh.js → chunk-LCXTWHL2-BoiuJpIF.js} +1 -1
- package/dist/web/assets/{chunk-LII3EMHJ-Bzh9SNgD.js → chunk-LII3EMHJ-Dqq0Qguw.js} +1 -1
- package/dist/web/assets/{chunk-RG4AUYOV-Bcl7U_IV.js → chunk-RG4AUYOV-Bl5F_gDs.js} +1 -1
- package/dist/web/assets/{chunk-T5OCTHI4-CZYMg5sc.js → chunk-T5OCTHI4-B2tIcggA.js} +1 -1
- package/dist/web/assets/{chunk-W44A43WB-REOI67PN.js → chunk-W44A43WB-BHe37iN7.js} +1 -1
- package/dist/web/assets/{chunk-ZXARS5L4-BfFdV1tf.js → chunk-ZXARS5L4-wcrIaQvY.js} +1 -1
- package/dist/web/assets/classDiagram-KGZ6W3CR-IbI6v_24.js +1 -0
- package/dist/web/assets/classDiagram-v2-72OJOZXJ-IbI6v_24.js +1 -0
- package/dist/web/assets/{cose-bilkent-UX7MHV2Q-D6vANJGG.js → cose-bilkent-UX7MHV2Q-BWr7v0Wr.js} +1 -1
- package/dist/web/assets/{dagre-ND4H6XIP-BiHe5Lal.js → dagre-ND4H6XIP-De5LIh1B.js} +1 -1
- package/dist/web/assets/{diagram-3NCE3AQN-CEutBCOW.js → diagram-3NCE3AQN-Dd22FSHy.js} +1 -1
- package/dist/web/assets/{diagram-GF46GFSD-CZns6HPQ.js → diagram-GF46GFSD-Cev3THY8.js} +1 -1
- package/dist/web/assets/{diagram-HNR7UZ2L-Vz8fE5of.js → diagram-HNR7UZ2L-D8Z8RQGs.js} +1 -1
- package/dist/web/assets/{diagram-QXG6HAR7-D60HKZ_y.js → diagram-QXG6HAR7-B8VOJOiE.js} +1 -1
- package/dist/web/assets/{diagram-WEQXMOUZ-vGAf1p3E.js → diagram-WEQXMOUZ-va1bLoMD.js} +1 -1
- package/dist/web/assets/{erDiagram-L5TCEMPS-DZaplJA6.js → erDiagram-L5TCEMPS-B3_9uAoP.js} +1 -1
- package/dist/web/assets/{flowDiagram-H6V6AXG4-BqUqeAsI.js → flowDiagram-H6V6AXG4-98m6maI1.js} +1 -1
- package/dist/web/assets/{ganttDiagram-JCBTUEKG-XEB6H-0G.js → ganttDiagram-JCBTUEKG-vE2nzETb.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-S2ZK5IYY-7G50u1Cd.js → gitGraphDiagram-S2ZK5IYY-DKc8uUg_.js} +1 -1
- package/dist/web/assets/index-BAhe1HSk.css +1 -0
- package/dist/web/assets/{index-B5WxtMpv.js → index-VTKdaklA.js} +230 -230
- package/dist/web/assets/{infoDiagram-3YFTVSEB-Cut_rzaf.js → infoDiagram-3YFTVSEB-DYP-Srzx.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-BNXS4ZKH-B4DGfGi3.js → ishikawaDiagram-BNXS4ZKH-QZnkpmmb.js} +1 -1
- package/dist/web/assets/{journeyDiagram-M6C3CM3L-BBFhsL3E.js → journeyDiagram-M6C3CM3L-B5ojIuqu.js} +1 -1
- package/dist/web/assets/{kanban-definition-75IXJCU3-DarGRyn3.js → kanban-definition-75IXJCU3-BJA8liRR.js} +1 -1
- package/dist/web/assets/{katex-K3KEBU37-W5XTYMhr.js → katex-K3KEBU37-DUqZiCRL.js} +1 -1
- package/dist/web/assets/{mindmap-definition-2TDM6QVE-BgeczIJM.js → mindmap-definition-2TDM6QVE-BQj5yylD.js} +1 -1
- package/dist/web/assets/{pieDiagram-CU6KROY3-Kkoo-Noq.js → pieDiagram-CU6KROY3-4eSrPiQz.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-VICAPDV7-CDQFeRWN.js → quadrantDiagram-VICAPDV7-PzxN8j55.js} +1 -1
- package/dist/web/assets/{requirementDiagram-JXO7QTGE-Cz9-XnkA.js → requirementDiagram-JXO7QTGE-CtplTc5y.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-URQDO5SZ-CU26z0n7.js → sankeyDiagram-URQDO5SZ-CoSgvkxv.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-VS2MUI6T-OGK1FLOt.js → sequenceDiagram-VS2MUI6T-D7ygyXvJ.js} +1 -1
- package/dist/web/assets/{stateDiagram-7D4R322I-DJ9brq0U.js → stateDiagram-7D4R322I-v01gvwji.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-36443NZ5-DFD2b8_x.js +1 -0
- package/dist/web/assets/{timeline-definition-O6YCAMPW-XZvnjqTT.js → timeline-definition-O6YCAMPW-CTI3M65J.js} +1 -1
- package/dist/web/assets/{vennDiagram-MWXL3ELB-CJUssEjA.js → vennDiagram-MWXL3ELB-RnB0XMP7.js} +1 -1
- package/dist/web/assets/{wardley-L42UT6IY-5TKZOOLJ-DZr11zBG.js → wardley-L42UT6IY-5TKZOOLJ-C-ZcgEBb.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-CUQ6CDDI-C276iqrN.js → wardleyDiagram-CUQ6CDDI-EwRi4kwo.js} +1 -1
- package/dist/web/assets/{xychartDiagram-N2JHSOCM-B9-uCZyP.js → xychartDiagram-N2JHSOCM-DA38II6y.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +2 -2
- package/dist/web/assets/__vite-browser-external-BIHI7g3E.js +0 -1
- package/dist/web/assets/agent-DcdaQnmu.js +0 -1104
- package/dist/web/assets/classDiagram-KGZ6W3CR-B-qkKMYi.js +0 -1
- package/dist/web/assets/classDiagram-v2-72OJOZXJ-B-qkKMYi.js +0 -1
- package/dist/web/assets/index-CT0GtFLZ.css +0 -1
- package/dist/web/assets/stateDiagram-v2-36443NZ5-DhJ4Ky-7.js +0 -1
package/dist/web/assets/{infoDiagram-3YFTVSEB-Cut_rzaf.js → infoDiagram-3YFTVSEB-DYP-Srzx.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d}from"./wardley-L42UT6IY-5TKZOOLJ-
|
|
1
|
+
import{d}from"./wardley-L42UT6IY-5TKZOOLJ-C-ZcgEBb.js";import{m as e,p as s,a7 as n,b as o}from"./index-VTKdaklA.js";var p={parse:e(async r=>{let a=await d("info",r);s.debug(a)},"parse")},m={version:"11.15.0"},g=e(()=>m.version,"getVersion"),v={getVersion:g},f=e((r,a,i)=>{s.debug(`rendering info diagram
|
|
2
2
|
`+r);let t=n(a);o(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${i}`)},"draw"),l={draw:f},c={parser:p,db:v,renderer:l};export{c as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as h,q as ot,a8 as yt,a7 as dt,aM as pt,u as gt,C as ft,n as st,s as kt,e as mt,a as wt,l as xt,o as bt,b as _t}from"./index-
|
|
1
|
+
import{m as h,q as ot,a8 as yt,a7 as dt,aM as pt,u as gt,C as ft,n as st,s as kt,e as mt,a as wt,l as xt,o as bt,b as _t}from"./index-VTKdaklA.js";var et=function(){var i=h(function(v,t,e,l){for(e=e||{},l=v.length;l--;e[v[l]]=t);return e},"o"),o=[1,4],a=[1,14],n=[1,12],s=[1,13],u=[6,7,8],g=[1,20],c=[1,18],y=[1,19],p=[6,7,11],m=[1,6,13,14],f=[1,23],$=[1,24],_=[1,6,7,11,13,14],B={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:h(function(v,t,e,l,d,r,k){var w=r.length-1;switch(d){case 6:case 7:return l;case 15:l.addNode(r[w-1].length,r[w].trim());break;case 16:l.addNode(0,r[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:o},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:o},{6:a,7:[1,10],9:9,12:11,13:n,14:s},i(u,[2,3]),{1:[2,2]},i(u,[2,4]),i(u,[2,5]),{1:[2,6],6:a,12:15,13:n,14:s},{6:a,9:16,12:11,13:n,14:s},{6:g,7:c,10:17,11:y},i(p,[2,18],{14:[1,21]}),i(p,[2,16]),i(p,[2,17]),{6:g,7:c,10:22,11:y},{1:[2,7],6:a,12:15,13:n,14:s},i(m,[2,14],{7:f,11:$}),i(_,[2,8]),i(_,[2,9]),i(_,[2,10]),i(p,[2,15]),i(m,[2,13],{7:f,11:$}),i(_,[2,11]),i(_,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:h(function(v,t){if(t.recoverable)this.trace(v);else{var e=new Error(v);throw e.hash=t,e}},"parseError"),parse:h(function(v){var t=this,e=[0],l=[],d=[null],r=[],k=this.table,w="",b=0,C=0,S=0,M=2,P=1,F=r.slice.call(arguments,1),x=Object.create(this.lexer),W={yy:{}};for(var I in this.yy)Object.prototype.hasOwnProperty.call(this.yy,I)&&(W.yy[I]=this.yy[I]);x.setInput(v,W.yy),W.yy.lexer=x,W.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var T=x.yylloc;r.push(T);var z=x.options&&x.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(N){e.length=e.length-2*N,d.length=d.length-N,r.length=r.length-N}h(Z,"popStack");function G(){var N;return N=l.pop()||x.lex()||P,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=t.symbols_[N]||N),N}h(G,"lex");for(var E,Q,O,D,Rt,J,j={},U,R,it,q;;){if(O=e[e.length-1],this.defaultActions[O]?D=this.defaultActions[O]:((E===null||typeof E>"u")&&(E=G()),D=k[O]&&k[O][E]),typeof D>"u"||!D.length||!D[0]){var V="";q=[];for(U in k[O])this.terminals_[U]&&U>M&&q.push("'"+this.terminals_[U]+"'");x.showPosition?V="Parse error on line "+(b+1)+`:
|
|
2
2
|
`+x.showPosition()+`
|
|
3
3
|
Expecting `+q.join(", ")+", got '"+(this.terminals_[E]||E)+"'":V="Parse error on line "+(b+1)+": Unexpected "+(E==P?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(V,{text:x.match,token:this.terminals_[E]||E,line:x.yylineno,loc:T,expected:q})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+E);switch(D[0]){case 1:e.push(E),d.push(x.yytext),r.push(x.yylloc),e.push(D[1]),E=null,Q?(E=Q,Q=null):(C=x.yyleng,w=x.yytext,b=x.yylineno,T=x.yylloc,S>0);break;case 2:if(R=this.productions_[D[1]][1],j.$=d[d.length-R],j._$={first_line:r[r.length-(R||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(R||1)].first_column,last_column:r[r.length-1].last_column},z&&(j._$.range=[r[r.length-(R||1)].range[0],r[r.length-1].range[1]]),J=this.performAction.apply(j,[w,C,b,W.yy,D[1],d,r].concat(F)),typeof J<"u")return J;R&&(e=e.slice(0,-1*R*2),d=d.slice(0,-1*R),r=r.slice(0,-1*R)),e.push(this.productions_[D[1]][0]),d.push(j.$),r.push(j._$),it=k[e[e.length-2]][e[e.length-1]],e.push(it);break;case 3:return!0}}return!0},"parse")},A=function(){var v={EOF:1,parseError:h(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw new Error(t)},"parseError"),setInput:h(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:h(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(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:h(function(t){var e=t.length,l=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var r=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:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:h(function(t){this.unput(this.match.slice(t))},"less"),pastInput:h(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
package/dist/web/assets/{journeyDiagram-M6C3CM3L-BBFhsL3E.js → journeyDiagram-M6C3CM3L-B5ojIuqu.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as mt}from"./chunk-AZZRMDJM-
|
|
1
|
+
import{o as mt}from"./chunk-AZZRMDJM-BHlLC7p3.js";import{g as xt,u as ot,f as kt,x as _t}from"./chunk-LII3EMHJ-Dqq0Qguw.js";import{a as bt,l as wt,s as $t,e as vt,o as St,n as Mt,m as s,q as L,i as W,b as Et,u as Tt,a9 as it}from"./index-VTKdaklA.js";var Z=function(){var e=s(function(d,i,n,y){for(n=n||{},y=d.length;y--;n[d[y]]=i);return n},"o"),t=[6,8,10,11,12,14,16,17,18],o=[1,9],p=[1,10],r=[1,11],l=[1,12],c=[1,13],h=[1,14],f={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(d,i,n,y,u,a,k){var x=a.length-1;switch(u){case 1:return a[x-1];case 2:this.$=[];break;case 3:a[x-1].push(a[x]),this.$=a[x-1];break;case 4:case 5:this.$=a[x];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(a[x].substr(6)),this.$=a[x].substr(6);break;case 9:this.$=a[x].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=a[x].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(a[x].substr(8)),this.$=a[x].substr(8);break;case 13:y.addTask(a[x-1],a[x]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:o,12:p,14:r,16:l,17:c,18:h},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:o,12:p,14:r,16:l,17:c,18:h},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:s(function(d,i){if(i.recoverable)this.trace(d);else{var n=new Error(d);throw n.hash=i,n}},"parseError"),parse:s(function(d){var i=this,n=[0],y=[],u=[null],a=[],k=this.table,x="",C=0,P=0,pt=0,yt=2,H=1,dt=a.slice.call(arguments,1),_=Object.create(this.lexer),A={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(A.yy[z]=this.yy[z]);_.setInput(d,A.yy),A.yy.lexer=_,A.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var q=_.yylloc;a.push(q);var ft=_.options&&_.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gt(w){n.length=n.length-2*w,u.length=u.length-w,a.length=a.length-w}s(gt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||H,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=i.symbols_[w]||w),w}s(tt,"lex");for(var b,Y,I,$,Zt,G,j={},V,M,et,N;;){if(I=n[n.length-1],this.defaultActions[I]?$=this.defaultActions[I]:((b===null||typeof b>"u")&&(b=tt()),$=k[I]&&k[I][b]),typeof $>"u"||!$.length||!$[0]){var U="";N=[];for(V in k[I])this.terminals_[V]&&V>yt&&N.push("'"+this.terminals_[V]+"'");_.showPosition?U="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+N.join(", ")+", got '"+(this.terminals_[b]||b)+"'":U="Parse error on line "+(C+1)+": Unexpected "+(b==H?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(U,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:q,expected:N})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+b);switch($[0]){case 1:n.push(b),u.push(_.yytext),a.push(_.yylloc),n.push($[1]),b=null,Y?(b=Y,Y=null):(P=_.yyleng,x=_.yytext,C=_.yylineno,q=_.yylloc,pt>0);break;case 2:if(M=this.productions_[$[1]][1],j.$=u[u.length-M],j._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},ft&&(j._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),G=this.performAction.apply(j,[x,P,C,A.yy,$[1],u,a].concat(dt)),typeof G<"u")return G;M&&(n=n.slice(0,-1*M*2),u=u.slice(0,-1*M),a=a.slice(0,-1*M)),n.push(this.productions_[$[1]][0]),u.push(j.$),a.push(j._$),et=k[n[n.length-2]][n[n.length-1]],n.push(et);break;case 3:return!0}}return!0},"parse")},m=function(){var d={EOF:1,parseError:s(function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},"parseError"),setInput:s(function(i,n){return this.yy=n||this.yy||{},this._input=i,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:s(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:s(function(i){var n=i.length,y=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var a=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:y?(y.length===u.length?this.yylloc.first_column:0)+u[u.length-y.length].length-y[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(i){this.unput(this.match.slice(i))},"less"),pastInput:s(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as o,p as te,q as W,a7 as fe,av as me,aw as be,ax as Ee,as as ke,E as J,d as U,A as _e,r as Se,ap as Ne,aq as le,ar as ce}from"./index-
|
|
1
|
+
import{m as o,p as te,q as W,a7 as fe,av as me,aw as be,ax as Ee,as as ke,E as J,d as U,A as _e,r as Se,ap as Ne,aq as le,ar as ce}from"./index-VTKdaklA.js";import{o as xe}from"./chunk-AZZRMDJM-BHlLC7p3.js";var Z=function(){var i=o(function(_,e,n,a){for(n=n||{},a=_.length;a--;n[_[a]]=e);return n},"o"),g=[1,4],d=[1,13],r=[1,12],u=[1,15],p=[1,16],k=[1,20],c=[1,19],D=[6,7,8],w=[1,26],O=[1,24],v=[1,25],s=[6,7,11],T=[1,31],C=[6,7,11,24],F=[1,6,13,16,17,20,23],M=[1,35],H=[1,36],I=[1,6,7,11,13,16,17,20,23],G=[1,38],y={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(_,e,n,a,h,t,b){var l=t.length-1;switch(h){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[l-1].id),a.addNode(t[l-2].length,t[l-1].id,t[l-1].descr,t[l-1].type,t[l]);break;case 16:a.getLogger().info("Node: ",t[l].id),a.addNode(t[l-1].length,t[l].id,t[l].descr,t[l].type);break;case 17:a.getLogger().trace("Icon: ",t[l]),a.decorateNode({icon:t[l]});break;case 18:case 23:a.decorateNode({class:t[l]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[l-1].id),a.addNode(0,t[l-1].id,t[l-1].descr,t[l-1].type,t[l]);break;case 21:a.getLogger().trace("Node: ",t[l].id),a.addNode(0,t[l].id,t[l].descr,t[l].type);break;case 22:a.decorateNode({icon:t[l]});break;case 27:a.getLogger().trace("node found ..",t[l-2]),this.$={id:t[l-1],descr:t[l-1],type:a.getType(t[l-2],t[l])};break;case 28:this.$={id:t[l],descr:t[l],type:0};break;case 29:a.getLogger().trace("node found ..",t[l-3]),this.$={id:t[l-3],descr:t[l-1],type:a.getType(t[l-2],t[l])};break;case 30:this.$=t[l-1]+t[l];break;case 31:this.$=t[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:u,17:p,18:17,19:18,20:k,23:c},i(D,[2,3]),{1:[2,2]},i(D,[2,4]),i(D,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:u,17:p,18:17,19:18,20:k,23:c},{6:d,9:22,12:11,13:r,14:14,16:u,17:p,18:17,19:18,20:k,23:c},{6:w,7:O,10:23,11:v},i(s,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:k,23:c}),i(s,[2,19]),i(s,[2,21],{15:30,24:T}),i(s,[2,22]),i(s,[2,23]),i(C,[2,25]),i(C,[2,26]),i(C,[2,28],{20:[1,32]}),{21:[1,33]},{6:w,7:O,10:34,11:v},{1:[2,7],6:d,12:21,13:r,14:14,16:u,17:p,18:17,19:18,20:k,23:c},i(F,[2,14],{7:M,11:H}),i(I,[2,8]),i(I,[2,9]),i(I,[2,10]),i(s,[2,16],{15:37,24:T}),i(s,[2,17]),i(s,[2,18]),i(s,[2,20],{24:G}),i(C,[2,31]),{21:[1,39]},{22:[1,40]},i(F,[2,13],{7:M,11:H}),i(I,[2,11]),i(I,[2,12]),i(s,[2,15],{24:G}),i(C,[2,30]),{22:[1,41]},i(C,[2,27]),i(C,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(_,e){if(e.recoverable)this.trace(_);else{var n=new Error(_);throw n.hash=e,n}},"parseError"),parse:o(function(_){var e=this,n=[0],a=[],h=[null],t=[],b=this.table,l="",K=0,ne=0,ge=0,ue=2,re=1,de=t.slice.call(arguments,1),m=Object.create(this.lexer),R={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(R.yy[q]=this.yy[q]);m.setInput(_,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Q=m.yylloc;t.push(Q);var pe=m.options&&m.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ye(S){n.length=n.length-2*S,h.length=h.length-S,t.length=t.length-S}o(ye,"popStack");function ae(){var S;return S=a.pop()||m.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=e.symbols_[S]||S),S}o(ae,"lex");for(var E,V,P,x,We,X,B={},j,A,oe,z;;){if(P=n[n.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ae()),x=b[P]&&b[P][E]),typeof x>"u"||!x.length||!x[0]){var Y="";z=[];for(j in b[P])this.terminals_[j]&&j>ue&&z.push("'"+this.terminals_[j]+"'");m.showPosition?Y="Parse error on line "+(K+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Y="Parse error on line "+(K+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Y,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:Q,expected:z})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(x[0]){case 1:n.push(E),h.push(m.yytext),t.push(m.yylloc),n.push(x[1]),E=null,V?(E=V,V=null):(ne=m.yyleng,l=m.yytext,K=m.yylineno,Q=m.yylloc,ge>0);break;case 2:if(A=this.productions_[x[1]][1],B.$=h[h.length-A],B._$={first_line:t[t.length-(A||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(A||1)].first_column,last_column:t[t.length-1].last_column},pe&&(B._$.range=[t[t.length-(A||1)].range[0],t[t.length-1].range[1]]),X=this.performAction.apply(B,[l,ne,K,R.yy,x[1],h,t].concat(de)),typeof X<"u")return X;A&&(n=n.slice(0,-1*A*2),h=h.slice(0,-1*A),t=t.slice(0,-1*A)),n.push(this.productions_[x[1]][0]),h.push(B.$),t.push(B._$),oe=b[n[n.length-2]][n[n.length-1]],n.push(oe);break;case 3:return!0}}return!0},"parse")},$=function(){var _={EOF:1,parseError:o(function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},"parseError"),setInput:o(function(e,n){return this.yy=n||this.yy||{},this._input=e,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:o(function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var n=e.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:o(function(e){var n=e.length,a=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var t=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:a?(a.length===h.length?this.yylloc.first_column:0)+h[h.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(e){this.unput(this.match.slice(e))},"less"),pastInput:o(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var e=this.pastInput(),n=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as p}from"./index-
|
|
1
|
+
import{m as p}from"./index-VTKdaklA.js";var _e,ce=(_e=class{constructor(e,r,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=a}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new _e(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}},p(_e,"SourceLocation"),_e),je,ye=(je=class{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new je(r,ce.range(this,e))}},p(je,"Token"),je),Ze,M=(Ze=class{constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+e,i,o,l=r&&r.loc;if(l&&l.start<=l.end){var h=l.lexer.input;i=l.start,o=l.end,i===h.length?a+=" at end of input: ":a+=" at position "+(i+1)+": ";var c=h.slice(i,o).replace(/[^]/g,"$&̲"),f;i>15?f="…"+h.slice(i-15,i):f=h.slice(0,i);var b;o+15<h.length?b=h.slice(o,o+15)+"…":b=h.slice(o),a+=f+c+b}var x=new Error(a);return x.name="ParseError",x.__proto__=Ze.prototype,x.position=i,i!=null&&o!=null&&(x.length=o-i),x.rawMessage=e,x}},p(Ze,"ParseError"),Ze);M.prototype.__proto__=Error.prototype;var U1=p(function(t,e){return t===void 0?e:t},"deflt"),W1=/([A-Z])/g,$1=p(function(t){return t.replace(W1,"-$1").toLowerCase()},"hyphenate"),X1={"&":"&",">":">","<":"<",'"':""","'":"'"},Y1=/[&><"']/g;function Pr(t){return String(t).replace(Y1,e=>X1[e])}p(Pr,"escape");var Vr=p(function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},"getBaseElem"),_1=p(function(t){var e=Vr(t);return e.type==="mathord"||e.type==="textord"||e.type==="atom"},"isCharacterBox"),j1=p(function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},"assert"),Z1=p(function(t){var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},"protocolFromUrl"),G={deflt:U1,escape:Pr,hyphenate:$1,getBaseElem:Vr,isCharacterBox:_1,protocolFromUrl:Z1},K0={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:p(t=>"#"+t,"cliProcessor")},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:p((t,e)=>(e.push(t),e),"cliProcessor")},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:p(t=>Math.max(0,t),"processor"),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:p(t=>Math.max(0,t),"processor"),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:p(t=>Math.max(0,t),"processor"),cli:"-e, --max-expand <n>",cliProcessor:p(t=>t==="Infinity"?1/0:parseInt(t),"cliProcessor")},globalGroup:{type:"boolean",cli:!1}};function Gr(t){if(t.default)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}p(Gr,"getDefaultValue");var n0,Gt=(n0=class{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r in K0)if(K0.hasOwnProperty(r)){var a=K0[r];this[r]=e[r]!==void 0?a.processor?a.processor(e[r]):e[r]:Gr(a)}}reportNonstrict(e,r,a){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,a)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new M("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),a);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,a){var i=this.strict;if(typeof i=="function")try{i=i(e,r,a)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var r=G.protocolFromUrl(e.url);if(r==null)return!1;e.protocol=r}var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}},p(n0,"Settings"),n0),o0,Le=(o0=class{constructor(e,r,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=a}sup(){return we[K1[this.id]]}sub(){return we[J1[this.id]]}fracNum(){return we[Q1[this.id]]}fracDen(){return we[ea[this.id]]}cramp(){return we[ta[this.id]]}text(){return we[ra[this.id]]}isTight(){return this.size>=2}},p(o0,"Style"),o0),Ut=0,et=1,i0=2,Ee=3,T0=4,de=5,w0=6,ie=7,we=[new Le(Ut,0,!1),new Le(et,0,!0),new Le(i0,1,!1),new Le(Ee,1,!0),new Le(T0,2,!1),new Le(de,2,!0),new Le(w0,3,!1),new Le(ie,3,!0)],K1=[T0,de,T0,de,w0,ie,w0,ie],J1=[de,de,de,de,ie,ie,ie,ie],Q1=[i0,Ee,T0,de,w0,ie,w0,ie],ea=[Ee,Ee,de,de,ie,ie,ie,ie],ta=[et,et,Ee,Ee,de,de,ie,ie],ra=[Ut,et,i0,Ee,i0,Ee,i0,Ee],I={DISPLAY:we[Ut],TEXT:we[i0],SCRIPT:we[T0],SCRIPTSCRIPT:we[w0]},Tt=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Ur(t){for(var e=0;e<Tt.length;e++)for(var r=Tt[e],a=0;a<r.blocks.length;a++){var i=r.blocks[a];if(t>=i[0]&&t<=i[1])return r.name}return null}p(Ur,"scriptFromCodepoint");var J0=[];Tt.forEach(t=>t.blocks.forEach(e=>J0.push(...e)));function Wt(t){for(var e=0;e<J0.length;e+=2)if(t>=J0[e]&&t<=J0[e+1])return!0;return!1}p(Wt,"supportedCodepoint");var a0=80,aa=p(function(t,e){return"M95,"+(622+t+e)+`
|
|
2
2
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
3
3
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
4
4
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as ge}from"./chunk-6764PJDD-
|
|
1
|
+
import{m as ge}from"./chunk-6764PJDD-Cppb-jH-.js";import{y as ue}from"./chunk-ZXARS5L4-wcrIaQvY.js";import{m as h,p as C,M as pe,j as ye,I as me,E as H,q as P,d as j,au as fe,ap as be,aq as _e,ar as ke}from"./index-VTKdaklA.js";var K=function(){var t=h(function(D,n,r,a){for(r=r||{},a=D.length;a--;r[D[a]]=n);return r},"o"),e=[1,4],o=[1,13],l=[1,12],i=[1,15],c=[1,16],u=[1,20],f=[1,19],p=[6,7,8],x=[1,26],L=[1,24],I=[1,25],_=[6,7,11],y=[1,6,13,15,16,19,22],A=[1,33],Q=[1,34],B=[1,6,7,11,13,15,16,19,22],z={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:h(function(D,n,r,a,d,s,E){var g=s.length-1;switch(d){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",s[g].id),a.addNode(s[g-1].length,s[g].id,s[g].descr,s[g].type);break;case 16:a.getLogger().trace("Icon: ",s[g]),a.decorateNode({icon:s[g]});break;case 17:case 21:a.decorateNode({class:s[g]});break;case 18:a.getLogger().trace("SPACELIST");break;case 19:a.getLogger().trace("Node: ",s[g].id),a.addNode(0,s[g].id,s[g].descr,s[g].type);break;case 20:a.decorateNode({icon:s[g]});break;case 25:a.getLogger().trace("node found ..",s[g-2]),this.$={id:s[g-1],descr:s[g-1],type:a.getType(s[g-2],s[g])};break;case 26:this.$={id:s[g],descr:s[g],type:a.nodeType.DEFAULT};break;case 27:a.getLogger().trace("node found ..",s[g-3]),this.$={id:s[g-3],descr:s[g-1],type:a.getType(s[g-2],s[g])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:o,7:[1,10],9:9,12:11,13:l,14:14,15:i,16:c,17:17,18:18,19:u,22:f},t(p,[2,3]),{1:[2,2]},t(p,[2,4]),t(p,[2,5]),{1:[2,6],6:o,12:21,13:l,14:14,15:i,16:c,17:17,18:18,19:u,22:f},{6:o,9:22,12:11,13:l,14:14,15:i,16:c,17:17,18:18,19:u,22:f},{6:x,7:L,10:23,11:I},t(_,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:f}),t(_,[2,18]),t(_,[2,19]),t(_,[2,20]),t(_,[2,21]),t(_,[2,23]),t(_,[2,24]),t(_,[2,26],{19:[1,30]}),{20:[1,31]},{6:x,7:L,10:32,11:I},{1:[2,7],6:o,12:21,13:l,14:14,15:i,16:c,17:17,18:18,19:u,22:f},t(y,[2,14],{7:A,11:Q}),t(B,[2,8]),t(B,[2,9]),t(B,[2,10]),t(_,[2,15]),t(_,[2,16]),t(_,[2,17]),{20:[1,35]},{21:[1,36]},t(y,[2,13],{7:A,11:Q}),t(B,[2,11]),t(B,[2,12]),{21:[1,37]},t(_,[2,25]),t(_,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:h(function(D,n){if(n.recoverable)this.trace(D);else{var r=new Error(D);throw r.hash=n,r}},"parseError"),parse:h(function(D){var n=this,r=[0],a=[],d=[null],s=[],E=this.table,g="",U=0,Y=0,ae=0,ce=2,Z=1,le=s.slice.call(arguments,1),m=Object.create(this.lexer),T={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(T.yy[W]=this.yy[W]);m.setInput(D,T.yy),T.yy.lexer=m,T.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var q=m.yylloc;s.push(q);var he=m.options&&m.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function de(S){r.length=r.length-2*S,d.length=d.length-S,s.length=s.length-S}h(de,"popStack");function ee(){var S;return S=a.pop()||m.lex()||Z,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}h(ee,"lex");for(var k,V,w,N,$e,X,$={},F,v,te,G;;){if(w=r[r.length-1],this.defaultActions[w]?N=this.defaultActions[w]:((k===null||typeof k>"u")&&(k=ee()),N=E[w]&&E[w][k]),typeof N>"u"||!N.length||!N[0]){var J="";G=[];for(F in E[w])this.terminals_[F]&&F>ce&&G.push("'"+this.terminals_[F]+"'");m.showPosition?J="Parse error on line "+(U+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+G.join(", ")+", got '"+(this.terminals_[k]||k)+"'":J="Parse error on line "+(U+1)+": Unexpected "+(k==Z?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(J,{text:m.match,token:this.terminals_[k]||k,line:m.yylineno,loc:q,expected:G})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+k);switch(N[0]){case 1:r.push(k),d.push(m.yytext),s.push(m.yylloc),r.push(N[1]),k=null,V?(k=V,V=null):(Y=m.yyleng,g=m.yytext,U=m.yylineno,q=m.yylloc,ae>0);break;case 2:if(v=this.productions_[N[1]][1],$.$=d[d.length-v],$._$={first_line:s[s.length-(v||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(v||1)].first_column,last_column:s[s.length-1].last_column},he&&($._$.range=[s[s.length-(v||1)].range[0],s[s.length-1].range[1]]),X=this.performAction.apply($,[g,Y,U,T.yy,N[1],d,s].concat(le)),typeof X<"u")return X;v&&(r=r.slice(0,-1*v*2),d=d.slice(0,-1*v),s=s.slice(0,-1*v)),r.push(this.productions_[N[1]][0]),d.push($.$),s.push($._$),te=E[r[r.length-2]][r[r.length-1]],r.push(te);break;case 3:return!0}}return!0},"parse")},re=function(){var D={EOF:1,parseError:h(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:h(function(n,r){return this.yy=r||this.yy||{},this._input=n,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:h(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:h(function(n){var r=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var s=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:a?(a.length===d.length?this.yylloc.first_column:0)+d[d.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:h(function(n){this.unput(this.match.slice(n))},"less"),pastInput:h(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as U}from"./chunk-JQRUD6KW-
|
|
1
|
+
import{c as U}from"./chunk-JQRUD6KW-3F8Zg-1N.js";import{d as X}from"./wardley-L42UT6IY-5TKZOOLJ-C-ZcgEBb.js";import{a as Z,l as _,s as ee,e as te,o as ae,n as ie,m as l,p as $,q as le,L as re,a7 as se,a8 as oe,a9 as L,aa as ne,b as de,u as pe,ab as ce,E as ue}from"./index-VTKdaklA.js";var ge=ue.pie,v={sections:new Map,showData:!1},h=v.sections,y=v.showData,he=structuredClone(ge),me=l(()=>structuredClone(he),"getConfig"),fe=l(()=>{h=new Map,y=v.showData,pe()},"clear"),xe=l(({label:e,value:a})=>{if(a<0)throw new Error(`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);h.has(e)||(h.set(e,a),$.debug(`added new section: ${e}, with value: ${a}`))},"addSection"),we=l(()=>h,"getSections"),Se=l(e=>{y=e},"setShowData"),$e=l(()=>y,"getShowData"),W={getConfig:me,clear:fe,setDiagramTitle:ie,getDiagramTitle:ae,setAccTitle:te,getAccTitle:ee,setAccDescription:_,getAccDescription:Z,addSection:xe,getSections:we,setShowData:Se,getShowData:$e},ve=l((e,a)=>{U(e,a),a.setShowData(e.showData),e.sections.map(a.addSection)},"populateDb"),ye={parse:l(async e=>{let a=await X("pie",e);$.debug(a),ve(a,W)},"parse")},Te=l(e=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${e.pieStrokeColor};
|
|
4
4
|
stroke-width : ${e.pieStrokeWidth};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{l as ke,a as Fe,o as ae,n as Pe,s as Ce,e as ve,m as l,q as It,p as St,i as Et,b as Le,u as Ee,E as D,Z as ie,d as De,ac as ze}from"./index-
|
|
1
|
+
import{l as ke,a as Fe,o as ae,n as Pe,s as Ce,e as ve,m as l,q as It,p as St,i as Et,b as Le,u as Ee,E as D,Z as ie,d as De,ac as ze}from"./index-VTKdaklA.js";var Dt=function(){var t=l(function(Q,s,c,o){for(c=c||{},o=Q.length;o--;c[Q[o]]=s);return c},"o"),n=[1,3],d=[1,4],u=[1,5],h=[1,6],f=[1,7],g=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],b=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],T=[2,36],p=[1,37],y=[1,36],A=[1,38],m=[1,35],x=[1,43],q=[1,41],_=[1,45],Z=[1,14],K=[1,23],pt=[1,18],ut=[1,19],dt=[1,20],xt=[1,21],ft=[1,22],gt=[1,24],i=[1,25],wt=[1,26],Nt=[1,27],Bt=[1,28],Rt=[1,29],W=[1,32],O=[1,33],k=[1,34],F=[1,39],P=[1,40],C=[1,42],v=[1,44],H=[1,63],M=[1,62],L=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],$t=[1,66],Ut=[1,67],Wt=[1,68],Ot=[1,69],Qt=[1,70],Xt=[1,71],Ht=[1,72],Mt=[1,73],Yt=[1,74],Zt=[1,75],Kt=[1,76],jt=[1,77],N=[4,5,6,7,8,9,10,11,12,13,14,15,18],G=[1,91],V=[1,92],tt=[1,93],et=[1,100],it=[1,94],at=[1,97],nt=[1,95],st=[1,96],rt=[1,98],lt=[1,99],_t=[1,103],Jt=[10,55,56,57],$=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:l(function(Q,s,c,o,S,e,B){var r=e.length-1;switch(S){case 23:this.$=e[r];break;case 24:this.$=e[r-1]+""+e[r];break;case 26:this.$=e[r-1]+e[r];break;case 27:this.$=[e[r].trim()];break;case 28:e[r-2].push(e[r].trim()),this.$=e[r-2];break;case 29:this.$=e[r-4],o.addClass(e[r-2],e[r]);break;case 37:this.$=[];break;case 42:this.$=e[r].trim(),o.setDiagramTitle(this.$);break;case 43:this.$=e[r].trim(),o.setAccTitle(this.$);break;case 44:case 45:this.$=e[r].trim(),o.setAccDescription(this.$);break;case 46:o.addSection(e[r].substr(8)),this.$=e[r].substr(8);break;case 47:o.addPoint(e[r-3],"",e[r-1],e[r],[]);break;case 48:o.addPoint(e[r-4],e[r-3],e[r-1],e[r],[]);break;case 49:o.addPoint(e[r-4],"",e[r-2],e[r-1],e[r]);break;case 50:o.addPoint(e[r-5],e[r-4],e[r-2],e[r-1],e[r]);break;case 51:o.setXAxisLeftText(e[r-2]),o.setXAxisRightText(e[r]);break;case 52:e[r-1].text+=" ⟶ ",o.setXAxisLeftText(e[r-1]);break;case 53:o.setXAxisLeftText(e[r]);break;case 54:o.setYAxisBottomText(e[r-2]),o.setYAxisTopText(e[r]);break;case 55:e[r-1].text+=" ⟶ ",o.setYAxisBottomText(e[r-1]);break;case 56:o.setYAxisBottomText(e[r]);break;case 57:o.setQuadrant1Text(e[r]);break;case 58:o.setQuadrant2Text(e[r]);break;case 59:o.setQuadrant3Text(e[r]);break;case 60:o.setQuadrant4Text(e[r]);break;case 64:this.$={text:e[r],type:"text"};break;case 65:this.$={text:e[r-1].text+""+e[r],type:e[r-1].type};break;case 66:this.$={text:e[r],type:"text"};break;case 67:this.$={text:e[r],type:"markdown"};break;case 68:this.$=e[r];break;case 69:this.$=e[r-1]+""+e[r];break}},"anonymous"),table:[{18:n,26:1,27:2,28:d,55:u,56:h,57:f},{1:[3]},{18:n,26:8,27:2,28:d,55:u,56:h,57:f},{18:n,26:9,27:2,28:d,55:u,56:h,57:f},t(g,[2,33],{29:10}),t(b,[2,61]),t(b,[2,62]),t(b,[2,63]),{1:[2,30]},{1:[2,31]},t(a,T,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:p,5:y,10:A,12:m,13:x,14:q,15:_,18:Z,25:K,35:pt,37:ut,39:dt,41:xt,42:ft,48:gt,50:i,51:wt,52:Nt,53:Bt,54:Rt,60:W,61:O,63:k,64:F,65:P,66:C,67:v}),t(g,[2,34]),{27:46,55:u,56:h,57:f},t(a,[2,37]),t(a,T,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:p,5:y,10:A,12:m,13:x,14:q,15:_,18:Z,25:K,35:pt,37:ut,39:dt,41:xt,42:ft,48:gt,50:i,51:wt,52:Nt,53:Bt,54:Rt,60:W,61:O,63:k,64:F,65:P,66:C,67:v}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:p,5:y,10:A,12:m,13:x,14:q,15:_,43:52,58:31,60:W,61:O,63:k,64:F,65:P,66:C,67:v},{4:p,5:y,10:A,12:m,13:x,14:q,15:_,43:53,58:31,60:W,61:O,63:k,64:F,65:P,66:C,67:v},{4:p,5:y,10:A,12:m,13:x,14:q,15:_,43:54,58:31,60:W,61:O,63:k,64:F,65:P,66:C,67:v},{4:p,5:y,10:A,12:m,13:x,14:q,15:_,43:55,58:31,60:W,61:O,63:k,64:F,65:P,66:C,67:v},{4:p,5:y,10:A,12:m,13:x,14:q,15:_,43:56,58:31,60:W,61:O,63:k,64:F,65:P,66:C,67:v},{4:p,5:y,10:A,12:m,13:x,14:q,15:_,43:57,58:31,60:W,61:O,63:k,64:F,65:P,66:C,67:v},{4:p,5:y,8:H,10:A,12:m,13:x,14:q,15:_,18:M,44:[1,58],47:[1,59],58:61,59:60,63:k,64:F,65:P,66:C,67:v},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(L,[2,81]),t(g,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:$t,5:Ut,6:Wt,7:Ot,8:Qt,9:Xt,10:Ht,11:Mt,12:Yt,13:Zt,14:Kt,15:jt,21:64},t(a,[2,53],{59:60,58:61,4:p,5:y,8:H,10:A,12:m,13:x,14:q,15:_,18:M,49:[1,78],63:k,64:F,65:P,66:C,67:v}),t(a,[2,56],{59:60,58:61,4:p,5:y,8:H,10:A,12:m,13:x,14:q,15:_,18:M,49:[1,79],63:k,64:F,65:P,66:C,67:v}),t(a,[2,57],{59:60,58:61,4:p,5:y,8:H,10:A,12:m,13:x,14:q,15:_,18:M,63:k,64:F,65:P,66:C,67:v}),t(a,[2,58],{59:60,58:61,4:p,5:y,8:H,10:A,12:m,13:x,14:q,15:_,18:M,63:k,64:F,65:P,66:C,67:v}),t(a,[2,59],{59:60,58:61,4:p,5:y,8:H,10:A,12:m,13:x,14:q,15:_,18:M,63:k,64:F,65:P,66:C,67:v}),t(a,[2,60],{59:60,58:61,4:p,5:y,8:H,10:A,12:m,13:x,14:q,15:_,18:M,63:k,64:F,65:P,66:C,67:v}),{45:[1,80]},{44:[1,81]},t(L,[2,65]),t(L,[2,82]),t(L,[2,83]),t(L,[2,84]),{3:83,4:$t,5:Ut,6:Wt,7:Ot,8:Qt,9:Xt,10:Ht,11:Mt,12:Yt,13:Zt,14:Kt,15:jt,18:[1,82]},t(N,[2,23]),t(N,[2,1]),t(N,[2,2]),t(N,[2,3]),t(N,[2,4]),t(N,[2,5]),t(N,[2,6]),t(N,[2,7]),t(N,[2,8]),t(N,[2,9]),t(N,[2,10]),t(N,[2,11]),t(N,[2,12]),t(a,[2,52],{58:31,43:84,4:p,5:y,10:A,12:m,13:x,14:q,15:_,60:W,61:O,63:k,64:F,65:P,66:C,67:v}),t(a,[2,55],{58:31,43:85,4:p,5:y,10:A,12:m,13:x,14:q,15:_,60:W,61:O,63:k,64:F,65:P,66:C,67:v}),{46:[1,86]},{45:[1,87]},{4:G,5:V,6:tt,8:et,11:it,13:at,16:90,17:nt,18:st,19:rt,20:lt,22:89,23:88},t(N,[2,24]),t(a,[2,51],{59:60,58:61,4:p,5:y,8:H,10:A,12:m,13:x,14:q,15:_,18:M,63:k,64:F,65:P,66:C,67:v}),t(a,[2,54],{59:60,58:61,4:p,5:y,8:H,10:A,12:m,13:x,14:q,15:_,18:M,63:k,64:F,65:P,66:C,67:v}),t(a,[2,47],{22:89,16:90,23:101,4:G,5:V,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:lt}),{46:[1,102]},t(a,[2,29],{10:_t}),t(Jt,[2,27],{16:104,4:G,5:V,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:lt}),t($,[2,25]),t($,[2,13]),t($,[2,14]),t($,[2,15]),t($,[2,16]),t($,[2,17]),t($,[2,18]),t($,[2,19]),t($,[2,20]),t($,[2,21]),t($,[2,22]),t(a,[2,49],{10:_t}),t(a,[2,48],{22:89,16:90,23:105,4:G,5:V,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:lt}),{4:G,5:V,6:tt,8:et,11:it,13:at,16:90,17:nt,18:st,19:rt,20:lt,22:106},t($,[2,26]),t(a,[2,50],{10:_t}),t(Jt,[2,28],{16:104,4:G,5:V,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:lt})],defaultActions:{8:[2,30],9:[2,31]},parseError:l(function(Q,s){if(s.recoverable)this.trace(Q);else{var c=new Error(Q);throw c.hash=s,c}},"parseError"),parse:l(function(Q){var s=this,c=[0],o=[],S=[null],e=[],B=this.table,r="",Tt=0,Gt=0,qe=0,Ae=2,Vt=1,Se=e.slice.call(arguments,1),E=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);E.setInput(Q,j.yy),j.yy.lexer=E,j.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Pt=E.yylloc;e.push(Pt);var be=E.options&&E.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){c.length=c.length-2*R,S.length=S.length-R,e.length=e.length-R}l(_e,"popStack");function te(){var R;return R=o.pop()||E.lex()||Vt,typeof R!="number"&&(R instanceof Array&&(o=R,R=o.pop()),R=s.symbols_[R]||R),R}l(te,"lex");for(var I,Ct,J,U,We,vt,ot={},mt,Y,ee,qt;;){if(J=c[c.length-1],this.defaultActions[J]?U=this.defaultActions[J]:((I===null||typeof I>"u")&&(I=te()),U=B[J]&&B[J][I]),typeof U>"u"||!U.length||!U[0]){var Lt="";qt=[];for(mt in B[J])this.terminals_[mt]&&mt>Ae&&qt.push("'"+this.terminals_[mt]+"'");E.showPosition?Lt="Parse error on line "+(Tt+1)+`:
|
|
2
2
|
`+E.showPosition()+`
|
|
3
3
|
Expecting `+qt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Lt="Parse error on line "+(Tt+1)+": Unexpected "+(I==Vt?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Lt,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:Pt,expected:qt})}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+I);switch(U[0]){case 1:c.push(I),S.push(E.yytext),e.push(E.yylloc),c.push(U[1]),I=null,Ct?(I=Ct,Ct=null):(Gt=E.yyleng,r=E.yytext,Tt=E.yylineno,Pt=E.yylloc,qe>0);break;case 2:if(Y=this.productions_[U[1]][1],ot.$=S[S.length-Y],ot._$={first_line:e[e.length-(Y||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(Y||1)].first_column,last_column:e[e.length-1].last_column},be&&(ot._$.range=[e[e.length-(Y||1)].range[0],e[e.length-1].range[1]]),vt=this.performAction.apply(ot,[r,Gt,Tt,j.yy,U[1],S,e].concat(Se)),typeof vt<"u")return vt;Y&&(c=c.slice(0,-1*Y*2),S=S.slice(0,-1*Y),e=e.slice(0,-1*Y)),c.push(this.productions_[U[1]][0]),S.push(ot.$),e.push(ot._$),ee=B[c[c.length-2]][c[c.length-1]],c.push(ee);break;case 3:return!0}}return!0},"parse")},me=function(){var Q={EOF:1,parseError:l(function(s,c){if(this.yy.parser)this.yy.parser.parseError(s,c);else throw new Error(s)},"parseError"),setInput:l(function(s,c){return this.yy=c||this.yy||{},this._input=s,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:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var c=s.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var c=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var S=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var e=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:o?(o.length===S.length?this.yylloc.first_column:0)+S[S.length-o.length].length-o[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),c=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as ze}from"./chunk-6764PJDD-p1sGJgVm.js";import{y as Ze}from"./chunk-ZXARS5L4-BfFdV1tf.js";import{m,I as Be,e as Je,s as et,l as tt,a as st,n as it,o as rt,q as Ne,p as qe,u as nt,y as at,M as lt,j as ot,k as ct}from"./index-B5WxtMpv.js";var Ce=function(){var e=m(function(F,i,n,s){for(n=n||{},s=F.length;s--;n[F[s]]=i);return n},"o"),r=[1,3],h=[1,4],c=[1,5],o=[1,6],l=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],d=[1,22],E=[2,7],u=[1,26],y=[1,27],b=[1,28],k=[1,29],C=[1,33],A=[1,34],L=[1,35],v=[1,36],$=[1,37],x=[1,38],O=[1,24],M=[1,31],w=[1,32],D=[1,30],R=[1,39],g=[1,40],f=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],V=[1,61],z=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],pe=[27,29],Le=[1,70],ve=[1,71],$e=[1,72],xe=[1,73],Oe=[1,74],Me=[1,75],we=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],oe=[1,91],ce=[1,92],de=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],De=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],N=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],ye=[1,114],me=[1,115],_e={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(F,i,n,s,p,t,I){var a=t.length-1;switch(p){case 4:this.$=t[a].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[a].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[a-3],t[a-4]);break;case 22:s.addRequirement(t[a-5],t[a-6]),s.setClass([t[a-5]],t[a-3]);break;case 23:s.setNewReqId(t[a-2]);break;case 24:s.setNewReqText(t[a-2]);break;case 25:s.setNewReqRisk(t[a-2]);break;case 26:s.setNewReqVerifyMethod(t[a-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[a-3]);break;case 43:s.addElement(t[a-5]),s.setClass([t[a-5]],t[a-3]);break;case 44:s.setNewElementType(t[a-2]);break;case 45:s.setNewElementDocRef(t[a-2]);break;case 48:s.addRelationship(t[a-2],t[a],t[a-4]);break;case 49:s.addRelationship(t[a-2],t[a-4],t[a]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[a-2],s.defineClass(t[a-1],t[a]);break;case 58:s.setClass(t[a-1],t[a]);break;case 59:s.setClass([t[a-2]],t[a]);break;case 60:case 62:this.$=[t[a]];break;case 61:case 63:this.$=t[a-2].concat([t[a]]);break;case 64:this.$=t[a-2],s.setCssStyle(t[a-1],t[a]);break;case 65:this.$=[t[a]];break;case 66:t[a-2].push(t[a]),this.$=t[a-2];break;case 68:this.$=t[a-1]+t[a];break}},"anonymous"),table:[{3:1,4:2,6:r,9:h,11:c,13:o},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:h,11:c,13:o},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(l,[2,6]),{3:12,4:2,6:r,9:h,11:c,13:o},{1:[2,2]},{4:17,5:d,7:13,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},e(l,[2,4]),e(l,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:d,7:42,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:43,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:44,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:45,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:46,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:47,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:48,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:49,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:50,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(f,[2,17]),e(f,[2,18]),e(f,[2,19]),e(f,[2,20]),{30:60,33:62,75:V,89:R,90:g},{30:63,33:62,75:V,89:R,90:g},{30:64,33:62,75:V,89:R,90:g},e(z,[2,29]),e(z,[2,30]),e(z,[2,31]),e(z,[2,32]),e(z,[2,33]),e(z,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(pe,[2,79]),e(pe,[2,80]),{27:[1,67],29:[1,68]},e(pe,[2,85]),e(pe,[2,86]),{62:69,65:Le,66:ve,67:$e,68:xe,69:Oe,70:Me,71:we},{62:77,65:Le,66:ve,67:$e,68:xe,69:Oe,70:Me,71:we},{30:78,33:62,75:V,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce},e(de,[2,60]),e(de,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce},{30:94,33:62,75:V,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:V,89:R,90:g},{5:[1,97]},{30:98,33:62,75:V,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(f,[2,59],{76:U}),e(f,[2,64],{76:De}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce}),e(N,[2,67]),e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(f,[2,57],{76:De}),e(f,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:ye,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce},e(de,[2,61]),e(de,[2,63]),e(N,[2,68]),e(f,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(f,[2,28]),{5:[1,127]},e(f,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:ye,59:me},e(f,[2,47]),{5:[1,131]},e(f,[2,48]),e(f,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(f,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(f,[2,46]),{5:he,40:ue,56:152,57:ye,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(f,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(f,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:ye,59:me},{5:he,40:ue,56:164,57:ye,59:me},e(f,[2,23]),e(f,[2,24]),e(f,[2,25]),e(f,[2,26]),e(f,[2,44]),e(f,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(F,i){if(i.recoverable)this.trace(F);else{var n=new Error(F);throw n.hash=i,n}},"parseError"),parse:m(function(F){var i=this,n=[0],s=[],p=[null],t=[],I=this.table,a="",fe=0,Pe=0,Ke=0,We=2,Ve=1,je=t.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);_.setInput(F,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Se=_.yylloc;t.push(Se);var Ge=_.options&&_.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xe(T){n.length=n.length-2*T,p.length=p.length-T,t.length=t.length-T}m(Xe,"popStack");function Ue(){var T;return T=s.pop()||_.lex()||Ve,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=i.symbols_[T]||T),T}m(Ue,"lex");for(var S,Ie,X,q,Et,Te,Z={},Re,P,Ye,ge;;){if(X=n[n.length-1],this.defaultActions[X]?q=this.defaultActions[X]:((S===null||typeof S>"u")&&(S=Ue()),q=I[X]&&I[X][S]),typeof q>"u"||!q.length||!q[0]){var ke="";ge=[];for(Re in I[X])this.terminals_[Re]&&Re>We&&ge.push("'"+this.terminals_[Re]+"'");_.showPosition?ke="Parse error on line "+(fe+1)+`:
|
|
1
|
+
import{m as ze}from"./chunk-6764PJDD-Cppb-jH-.js";import{y as Ze}from"./chunk-ZXARS5L4-wcrIaQvY.js";import{m,I as Be,e as Je,s as et,l as tt,a as st,n as it,o as rt,q as Ne,p as qe,u as nt,y as at,M as lt,j as ot,k as ct}from"./index-VTKdaklA.js";var Ce=function(){var e=m(function(F,i,n,s){for(n=n||{},s=F.length;s--;n[F[s]]=i);return n},"o"),r=[1,3],h=[1,4],c=[1,5],o=[1,6],l=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],d=[1,22],E=[2,7],u=[1,26],y=[1,27],b=[1,28],k=[1,29],C=[1,33],A=[1,34],L=[1,35],v=[1,36],$=[1,37],x=[1,38],O=[1,24],M=[1,31],w=[1,32],D=[1,30],R=[1,39],g=[1,40],f=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],V=[1,61],z=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],pe=[27,29],Le=[1,70],ve=[1,71],$e=[1,72],xe=[1,73],Oe=[1,74],Me=[1,75],we=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],oe=[1,91],ce=[1,92],de=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],De=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],N=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],ye=[1,114],me=[1,115],_e={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(F,i,n,s,p,t,I){var a=t.length-1;switch(p){case 4:this.$=t[a].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[a].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[a-3],t[a-4]);break;case 22:s.addRequirement(t[a-5],t[a-6]),s.setClass([t[a-5]],t[a-3]);break;case 23:s.setNewReqId(t[a-2]);break;case 24:s.setNewReqText(t[a-2]);break;case 25:s.setNewReqRisk(t[a-2]);break;case 26:s.setNewReqVerifyMethod(t[a-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[a-3]);break;case 43:s.addElement(t[a-5]),s.setClass([t[a-5]],t[a-3]);break;case 44:s.setNewElementType(t[a-2]);break;case 45:s.setNewElementDocRef(t[a-2]);break;case 48:s.addRelationship(t[a-2],t[a],t[a-4]);break;case 49:s.addRelationship(t[a-2],t[a-4],t[a]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[a-2],s.defineClass(t[a-1],t[a]);break;case 58:s.setClass(t[a-1],t[a]);break;case 59:s.setClass([t[a-2]],t[a]);break;case 60:case 62:this.$=[t[a]];break;case 61:case 63:this.$=t[a-2].concat([t[a]]);break;case 64:this.$=t[a-2],s.setCssStyle(t[a-1],t[a]);break;case 65:this.$=[t[a]];break;case 66:t[a-2].push(t[a]),this.$=t[a-2];break;case 68:this.$=t[a-1]+t[a];break}},"anonymous"),table:[{3:1,4:2,6:r,9:h,11:c,13:o},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:h,11:c,13:o},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(l,[2,6]),{3:12,4:2,6:r,9:h,11:c,13:o},{1:[2,2]},{4:17,5:d,7:13,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},e(l,[2,4]),e(l,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:d,7:42,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:43,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:44,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:45,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:46,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:47,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:48,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:49,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{4:17,5:d,7:50,8:E,9:h,11:c,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:y,23:b,24:k,25:23,33:25,41:C,42:A,43:L,44:v,45:$,46:x,54:O,72:M,74:w,77:D,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(f,[2,17]),e(f,[2,18]),e(f,[2,19]),e(f,[2,20]),{30:60,33:62,75:V,89:R,90:g},{30:63,33:62,75:V,89:R,90:g},{30:64,33:62,75:V,89:R,90:g},e(z,[2,29]),e(z,[2,30]),e(z,[2,31]),e(z,[2,32]),e(z,[2,33]),e(z,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(pe,[2,79]),e(pe,[2,80]),{27:[1,67],29:[1,68]},e(pe,[2,85]),e(pe,[2,86]),{62:69,65:Le,66:ve,67:$e,68:xe,69:Oe,70:Me,71:we},{62:77,65:Le,66:ve,67:$e,68:xe,69:Oe,70:Me,71:we},{30:78,33:62,75:V,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce},e(de,[2,60]),e(de,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce},{30:94,33:62,75:V,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:V,89:R,90:g},{5:[1,97]},{30:98,33:62,75:V,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(f,[2,59],{76:U}),e(f,[2,64],{76:De}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce}),e(N,[2,67]),e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(f,[2,57],{76:De}),e(f,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:ye,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce},e(de,[2,61]),e(de,[2,63]),e(N,[2,68]),e(f,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(f,[2,28]),{5:[1,127]},e(f,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:ye,59:me},e(f,[2,47]),{5:[1,131]},e(f,[2,48]),e(f,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(f,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(f,[2,46]),{5:he,40:ue,56:152,57:ye,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(f,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(f,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:ye,59:me},{5:he,40:ue,56:164,57:ye,59:me},e(f,[2,23]),e(f,[2,24]),e(f,[2,25]),e(f,[2,26]),e(f,[2,44]),e(f,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(F,i){if(i.recoverable)this.trace(F);else{var n=new Error(F);throw n.hash=i,n}},"parseError"),parse:m(function(F){var i=this,n=[0],s=[],p=[null],t=[],I=this.table,a="",fe=0,Pe=0,Ke=0,We=2,Ve=1,je=t.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);_.setInput(F,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Se=_.yylloc;t.push(Se);var Ge=_.options&&_.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xe(T){n.length=n.length-2*T,p.length=p.length-T,t.length=t.length-T}m(Xe,"popStack");function Ue(){var T;return T=s.pop()||_.lex()||Ve,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=i.symbols_[T]||T),T}m(Ue,"lex");for(var S,Ie,X,q,Et,Te,Z={},Re,P,Ye,ge;;){if(X=n[n.length-1],this.defaultActions[X]?q=this.defaultActions[X]:((S===null||typeof S>"u")&&(S=Ue()),q=I[X]&&I[X][S]),typeof q>"u"||!q.length||!q[0]){var ke="";ge=[];for(Re in I[X])this.terminals_[Re]&&Re>We&&ge.push("'"+this.terminals_[Re]+"'");_.showPosition?ke="Parse error on line "+(fe+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+ge.join(", ")+", got '"+(this.terminals_[S]||S)+"'":ke="Parse error on line "+(fe+1)+": Unexpected "+(S==Ve?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(ke,{text:_.match,token:this.terminals_[S]||S,line:_.yylineno,loc:Se,expected:ge})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+X+", token: "+S);switch(q[0]){case 1:n.push(S),p.push(_.yytext),t.push(_.yylloc),n.push(q[1]),S=null,Ie?(S=Ie,Ie=null):(Pe=_.yyleng,a=_.yytext,fe=_.yylineno,Se=_.yylloc,Ke>0);break;case 2:if(P=this.productions_[q[1]][1],Z.$=p[p.length-P],Z._$={first_line:t[t.length-(P||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(P||1)].first_column,last_column:t[t.length-1].last_column},Ge&&(Z._$.range=[t[t.length-(P||1)].range[0],t[t.length-1].range[1]]),Te=this.performAction.apply(Z,[a,Pe,fe,G.yy,q[1],p,t].concat(je)),typeof Te<"u")return Te;P&&(n=n.slice(0,-1*P*2),p=p.slice(0,-1*P),t=t.slice(0,-1*P)),n.push(this.productions_[q[1]][0]),p.push(Z.$),t.push(Z._$),Ye=I[n[n.length-2]][n[n.length-1]],n.push(Ye);break;case 3:return!0}}return!0},"parse")},He=function(){var F={EOF:1,parseError:m(function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},"parseError"),setInput:m(function(i,n){return this.yy=n||this.yy||{},this._input=i,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:m(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:m(function(i){var n=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var t=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:s?(s.length===p.length?this.yylloc.first_column:0)+p[p.length-s.length].length-s[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:m(function(i){this.unput(this.match.slice(i))},"less"),pastInput:m(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
package/dist/web/assets/{sankeyDiagram-URQDO5SZ-CU26z0n7.js → sankeyDiagram-URQDO5SZ-CoSgvkxv.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as jt,o as zt,l as Bt,a as Ft,e as Wt,s as qt,m as i,q as dt,w as Ut,i as Y,aa as Vt,as as Gt,u as Ht,C as Rt,ay as Qt}from"./index-
|
|
1
|
+
import{n as jt,o as zt,l as Bt,a as Ft,e as Wt,s as qt,m as i,q as dt,w as Ut,i as Y,aa as Vt,as as Gt,u as Ht,C as Rt,ay as Qt}from"./index-VTKdaklA.js";var st=function(){var t=i(function(x,s,h,d){for(h=h||{},d=x.length;d--;h[x[d]]=s);return h},"o"),r=[1,9],o=[1,10],u=[1,5,10,12],c={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:i(function(x,s,h,d,k,g,w){var _=g.length-1;switch(k){case 7:let L=d.findOrCreateNode(g[_-4].trim().replaceAll('""','"')),A=d.findOrCreateNode(g[_-2].trim().replaceAll('""','"')),I=parseFloat(g[_].trim());d.addLink(L,A,I);break;case 8:case 9:case 11:this.$=g[_];break;case 10:this.$=g[_-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:r,20:o},{1:[2,6],7:11,10:[1,12]},t(o,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(u,[2,8]),t(u,[2,9]),{19:[1,16]},t(u,[2,11]),{1:[2,1]},{1:[2,5]},t(o,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:r,20:o},{15:18,16:7,17:8,18:r,20:o},{18:[1,19]},t(o,[2,3]),{12:[1,20]},t(u,[2,10]),{15:21,16:7,17:8,18:r,20:o},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:i(function(x,s){if(s.recoverable)this.trace(x);else{var h=new Error(x);throw h.hash=s,h}},"parseError"),parse:i(function(x){var s=this,h=[0],d=[],k=[null],g=[],w=this.table,_="",L=0,A=0,I=0,O=2,M=1,j=g.slice.call(arguments,1),v=Object.create(this.lexer),N={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(N.yy[W]=this.yy[W]);v.setInput(x,N.yy),N.yy.lexer=v,N.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var z=v.yylloc;g.push(z);var C=v.options&&v.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function q(E){h.length=h.length-2*E,k.length=k.length-E,g.length=g.length-E}i(q,"popStack");function B(){var E;return E=d.pop()||v.lex()||M,typeof E!="number"&&(E instanceof Array&&(d=E,E=d.pop()),E=s.symbols_[E]||E),E}i(B,"lex");for(var S,$,T,e,y,n,l={},a,m,b,D;;){if(T=h[h.length-1],this.defaultActions[T]?e=this.defaultActions[T]:((S===null||typeof S>"u")&&(S=B()),e=w[T]&&w[T][S]),typeof e>"u"||!e.length||!e[0]){var P="";D=[];for(a in w[T])this.terminals_[a]&&a>O&&D.push("'"+this.terminals_[a]+"'");v.showPosition?P="Parse error on line "+(L+1)+`:
|
|
2
2
|
`+v.showPosition()+`
|
|
3
3
|
Expecting `+D.join(", ")+", got '"+(this.terminals_[S]||S)+"'":P="Parse error on line "+(L+1)+": Unexpected "+(S==M?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(P,{text:v.match,token:this.terminals_[S]||S,line:v.yylineno,loc:z,expected:D})}if(e[0]instanceof Array&&e.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+S);switch(e[0]){case 1:h.push(S),k.push(v.yytext),g.push(v.yylloc),h.push(e[1]),S=null,$?(S=$,$=null):(A=v.yyleng,_=v.yytext,L=v.yylineno,z=v.yylloc,I>0);break;case 2:if(m=this.productions_[e[1]][1],l.$=k[k.length-m],l._$={first_line:g[g.length-(m||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(m||1)].first_column,last_column:g[g.length-1].last_column},C&&(l._$.range=[g[g.length-(m||1)].range[0],g[g.length-1].range[1]]),n=this.performAction.apply(l,[_,A,L,N.yy,e[1],k,g].concat(j)),typeof n<"u")return n;m&&(h=h.slice(0,-1*m*2),k=k.slice(0,-1*m),g=g.slice(0,-1*m)),h.push(this.productions_[e[1]][0]),k.push(l.$),g.push(l._$),b=w[h[h.length-2]][h[h.length-1]],h.push(b);break;case 3:return!0}}return!0},"parse")},f=function(){var x={EOF:1,parseError:i(function(s,h){if(this.yy.parser)this.yy.parser.parseError(s,h);else throw new Error(s)},"parseError"),setInput:i(function(s,h){return this.yy=h||this.yy||{},this._input=s,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:i(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var h=s.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:i(function(s){var h=s.length,d=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var k=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var g=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:d?(d.length===k.length?this.yylloc.first_column:0)+k[k.length-d.length].length-d[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(s){this.unput(this.match.slice(s))},"less"),pastInput:i(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var s=this.pastInput(),h=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as aa}from"./chunk-T5OCTHI4-CZYMg5sc.js";import{m as O,h as ra,q as Q,i as vt,p as it,b as ia,D as sa,C as D,e as ke,l as na,n as oa,s as la,a as ca,o as da,A as ha,r as pa,u as Ta,d as Bt,k as G,ag as J,ah as wt,f as Ea,g as ga,a8 as ve,ai as ua,I as $t,aj as ya,ak as Be}from"./index-B5WxtMpv.js";import{g as Oa,G as ae,u as pt,x as _a,h as re,E as ie}from"./chunk-LII3EMHJ-Bzh9SNgD.js";var Qt=function(){var e=O(function(ht,S,A,b){for(A=A||{},b=ht.length;b--;A[ht[b]]=S);return A},"o"),t=[1,2],r=[1,3],a=[1,4],s=[2,4],n=[1,9],i=[1,11],l=[1,12],E=[1,14],h=[1,15],c=[1,17],_=[1,18],g=[1,19],m=[1,25],T=[1,26],u=[1,27],y=[1,28],x=[1,29],f=[1,30],R=[1,31],P=[1,32],w=[1,33],N=[1,34],Y=[1,35],C=[1,36],B=[1,37],z=[1,38],$=[1,39],U=[1,40],X=[1,42],H=[1,43],st=[1,44],tt=[1,45],nt=[1,46],V=[1,47],M=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],At=[1,74],L=[1,80],k=[1,81],et=[1,82],at=[1,83],F=[1,84],se=[1,85],ne=[1,86],oe=[1,87],le=[1,88],ce=[1,89],de=[1,90],he=[1,91],pe=[1,92],Te=[1,93],Ee=[1,94],ge=[1,95],ue=[1,96],ye=[1,97],Oe=[1,98],_e=[1,99],be=[1,100],xe=[1,101],Ie=[1,102],fe=[1,103],me=[1,104],Re=[1,105],Le=[2,78],Nt=[4,5,17,51,53,54],Pt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Ne=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],qt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Ht=[5,52],K=[70,71,72,73],lt=[1,151],zt={trace:O(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:O(function(ht,S,A,b,W,o,rt){var p=o.length-1;switch(W){case 3:return b.apply(o[p]),o[p];case 4:case 10:this.$=[];break;case 5:case 11:o[p-1].push(o[p]),this.$=o[p-1];break;case 6:case 7:case 12:case 13:this.$=o[p];break;case 8:case 9:case 14:this.$=[];break;case 16:o[p].type="createParticipant",this.$=o[p];break;case 17:o[p-1].unshift({type:"boxStart",boxData:b.parseBoxData(o[p-2])}),o[p-1].push({type:"boxEnd",boxText:o[p-2]}),this.$=o[p-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[p-2]),sequenceIndexStep:Number(o[p-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:o[p-1].actor};break;case 24:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:o[p-1].actor};break;case 30:b.setDiagramTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 31:b.setDiagramTitle(o[p].substring(7)),this.$=o[p].substring(7);break;case 32:this.$=o[p].trim(),b.setAccTitle(this.$);break;case 33:case 34:this.$=o[p].trim(),b.setAccDescription(this.$);break;case 35:o[p-1].unshift({type:"loopStart",loopText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.LOOP_START}),o[p-1].push({type:"loopEnd",loopText:o[p-2],signalType:b.LINETYPE.LOOP_END}),this.$=o[p-1];break;case 36:o[p-1].unshift({type:"rectStart",color:b.parseMessage(o[p-2]),signalType:b.LINETYPE.RECT_START}),o[p-1].push({type:"rectEnd",color:b.parseMessage(o[p-2]),signalType:b.LINETYPE.RECT_END}),this.$=o[p-1];break;case 37:o[p-1].unshift({type:"optStart",optText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.OPT_START}),o[p-1].push({type:"optEnd",optText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.OPT_END}),this.$=o[p-1];break;case 38:o[p-1].unshift({type:"altStart",altText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.ALT_START}),o[p-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=o[p-1];break;case 39:o[p-1].unshift({type:"parStart",parText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.PAR_START}),o[p-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=o[p-1];break;case 40:o[p-1].unshift({type:"parStart",parText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.PAR_OVER_START}),o[p-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=o[p-1];break;case 41:o[p-1].unshift({type:"criticalStart",criticalText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.CRITICAL_START}),o[p-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=o[p-1];break;case 42:o[p-1].unshift({type:"breakStart",breakText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.BREAK_START}),o[p-1].push({type:"breakEnd",optText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.BREAK_END}),this.$=o[p-1];break;case 44:this.$=o[p-3].concat([{type:"option",optionText:b.parseMessage(o[p-1]),signalType:b.LINETYPE.CRITICAL_OPTION},o[p]]);break;case 46:this.$=o[p-3].concat([{type:"and",parText:b.parseMessage(o[p-1]),signalType:b.LINETYPE.PAR_AND},o[p]]);break;case 48:this.$=o[p-3].concat([{type:"else",altText:b.parseMessage(o[p-1]),signalType:b.LINETYPE.ALT_ELSE},o[p]]);break;case 49:o[p-3].draw="participant",o[p-3].type="addParticipant",o[p-3].description=b.parseMessage(o[p-1]),this.$=o[p-3];break;case 50:o[p-1].draw="participant",o[p-1].type="addParticipant",this.$=o[p-1];break;case 51:o[p-3].draw="actor",o[p-3].type="addParticipant",o[p-3].description=b.parseMessage(o[p-1]),this.$=o[p-3];break;case 52:case 57:o[p-1].draw="actor",o[p-1].type="addParticipant",this.$=o[p-1];break;case 53:o[p-1].type="destroyParticipant",this.$=o[p-1];break;case 54:o[p-3].draw="participant",o[p-3].type="addParticipant",o[p-3].description=b.parseMessage(o[p-1]),this.$=o[p-3];break;case 55:o[p-1].draw="participant",o[p-1].type="addParticipant",this.$=o[p-1];break;case 56:o[p-3].draw="actor",o[p-3].type="addParticipant",o[p-3].description=b.parseMessage(o[p-1]),this.$=o[p-3];break;case 58:this.$=[o[p-1],{type:"addNote",placement:o[p-2],actor:o[p-1].actor,text:o[p]}];break;case 59:o[p-2]=[].concat(o[p-1],o[p-1]).slice(0,2),o[p-2][0]=o[p-2][0].actor,o[p-2][1]=o[p-2][1].actor,this.$=[o[p-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:o[p-2].slice(0,2),text:o[p]}];break;case 60:this.$=[o[p-1],{type:"addLinks",actor:o[p-1].actor,text:o[p]}];break;case 61:this.$=[o[p-1],{type:"addALink",actor:o[p-1].actor,text:o[p]}];break;case 62:this.$=[o[p-1],{type:"addProperties",actor:o[p-1].actor,text:o[p]}];break;case 63:this.$=[o[p-1],{type:"addDetails",actor:o[p-1].actor,text:o[p]}];break;case 66:this.$=[o[p-2],o[p]];break;case 67:this.$=o[p];break;case 68:this.$=b.PLACEMENT.LEFTOF;break;case 69:this.$=b.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[p-4],o[p-1],{type:"addMessage",from:o[p-4].actor,to:o[p-1].actor,signalType:o[p-3],msg:o[p],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:o[p-1].actor}];break;case 71:this.$=[o[p-4],o[p-1],{type:"addMessage",from:o[p-4].actor,to:o[p-1].actor,signalType:o[p-3],msg:o[p]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:o[p-4].actor}];break;case 72:this.$=[o[p-4],o[p-1],{type:"addMessage",from:o[p-4].actor,to:o[p-1].actor,signalType:o[p-3],msg:o[p],activate:!0,centralConnection:b.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:b.LINETYPE.CENTRAL_CONNECTION,actor:o[p-1].actor}];break;case 73:this.$=[o[p-4],o[p-1],{type:"addMessage",from:o[p-4].actor,to:o[p-1].actor,signalType:o[p-2],msg:o[p],activate:!1,centralConnection:b.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:b.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[p-4].actor}];break;case 74:this.$=[o[p-5],o[p-1],{type:"addMessage",from:o[p-5].actor,to:o[p-1].actor,signalType:o[p-3],msg:o[p],activate:!0,centralConnection:b.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:b.LINETYPE.CENTRAL_CONNECTION,actor:o[p-1].actor},{type:"centralConnectionReverse",signalType:b.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[p-5].actor}];break;case 75:this.$=[o[p-3],o[p-1],{type:"addMessage",from:o[p-3].actor,to:o[p-1].actor,signalType:o[p-2],msg:o[p]}];break;case 76:this.$={type:"addParticipant",actor:o[p-1],config:o[p]};break;case 77:this.$=o[p-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[p]};break;case 79:this.$=b.LINETYPE.SOLID_OPEN;break;case 80:this.$=b.LINETYPE.DOTTED_OPEN;break;case 81:this.$=b.LINETYPE.SOLID;break;case 82:this.$=b.LINETYPE.SOLID_TOP;break;case 83:this.$=b.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=b.LINETYPE.STICK_TOP;break;case 85:this.$=b.LINETYPE.STICK_BOTTOM;break;case 86:this.$=b.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=b.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=b.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=b.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=b.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=b.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=b.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=b.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=b.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=b.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=b.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=b.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=b.LINETYPE.DOTTED;break;case 100:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=b.LINETYPE.SOLID_CROSS;break;case 102:this.$=b.LINETYPE.DOTTED_CROSS;break;case 103:this.$=b.LINETYPE.SOLID_POINT;break;case 104:this.$=b.LINETYPE.DOTTED_POINT;break;case 105:this.$=b.parseMessage(o[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},e(M,[2,5]),{9:48,13:13,14:E,15:h,18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},e(M,[2,7]),e(M,[2,8]),e(M,[2,9]),e(M,[2,15]),{13:49,51:z,53:$,54:U},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:V},{23:56,73:V},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(M,[2,30]),e(M,[2,31]),{33:[1,62]},{35:[1,63]},e(M,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:At},{23:75,55:76,73:At},{23:77,73:V},{69:78,72:[1,79],78:L,79:k,80:et,81:at,82:F,83:se,84:ne,85:oe,86:le,87:ce,88:de,89:he,90:pe,91:Te,92:Ee,93:ge,94:ue,95:ye,96:Oe,97:_e,98:be,99:xe,100:Ie,101:fe,102:me,103:Re},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:V},{23:111,73:V},{23:112,73:V},{23:113,73:V},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Le),e(M,[2,6]),e(M,[2,16]),e(Nt,[2,10],{11:114}),e(M,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(M,[2,22]),{5:[1,118]},{5:[1,119]},e(M,[2,25]),e(M,[2,26]),e(M,[2,27]),e(M,[2,28]),e(M,[2,29]),e(M,[2,32]),e(M,[2,33]),e(Pt,s,{7:120}),e(Pt,s,{7:121}),e(Pt,s,{7:122}),e(Ne,s,{41:123,7:124}),e(qt,s,{43:125,7:126}),e(qt,s,{7:126,43:127}),e(Se,s,{46:128,7:129}),e(Pt,s,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Ht,Le,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:V},{69:146,78:L,79:k,80:et,81:at,82:F,83:se,84:ne,85:oe,86:le,87:ce,88:de,89:he,90:pe,91:Te,92:Ee,93:ge,94:ue,95:ye,96:Oe,97:_e,98:be,99:xe,100:Ie,101:fe,102:me,103:Re},e(K,[2,79]),e(K,[2,80]),e(K,[2,81]),e(K,[2,82]),e(K,[2,83]),e(K,[2,84]),e(K,[2,85]),e(K,[2,86]),e(K,[2,87]),e(K,[2,88]),e(K,[2,89]),e(K,[2,90]),e(K,[2,91]),e(K,[2,92]),e(K,[2,93]),e(K,[2,94]),e(K,[2,95]),e(K,[2,96]),e(K,[2,97]),e(K,[2,98]),e(K,[2,99]),e(K,[2,100]),e(K,[2,101]),e(K,[2,102]),e(K,[2,103]),e(K,[2,104]),{23:147,73:V},{23:149,60:148,73:V},{73:[2,68]},{73:[2,69]},{58:150,104:lt},{58:152,104:lt},{58:153,104:lt},{58:154,104:lt},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:z,53:$,54:U},{5:[1,160]},e(M,[2,20]),e(M,[2,21]),e(M,[2,23]),e(M,[2,24]),{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[1,161],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[1,162],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[1,163],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{17:[1,164]},{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[2,47],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,50:[1,165],51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{17:[1,166]},{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[2,45],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,49:[1,167],51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{17:[1,168]},{17:[1,169]},{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[2,43],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,48:[1,170],51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[1,171],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{16:[1,172]},e(M,[2,50]),{16:[1,173]},e(M,[2,55]),e(Ht,[2,76]),{76:[1,174]},{16:[1,175]},e(M,[2,52]),{16:[1,176]},e(M,[2,57]),e(M,[2,53]),{23:177,73:V},{23:178,73:V},{23:179,73:V},{58:180,104:lt},{23:181,72:[1,182],73:V},{58:183,104:lt},{58:184,104:lt},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(M,[2,17]),e(Nt,[2,11]),{13:186,51:z,53:$,54:U},e(Nt,[2,13]),e(Nt,[2,14]),e(M,[2,19]),e(M,[2,35]),e(M,[2,36]),e(M,[2,37]),e(M,[2,38]),{16:[1,187]},e(M,[2,39]),{16:[1,188]},e(M,[2,40]),e(M,[2,41]),{16:[1,189]},e(M,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:lt},{58:196,104:lt},{58:197,104:lt},{5:[2,75]},{58:198,104:lt},{23:199,73:V},{5:[2,58]},{5:[2,59]},{23:200,73:V},e(Nt,[2,12]),e(Ne,s,{7:124,41:201}),e(qt,s,{7:126,43:202}),e(Se,s,{7:129,46:203}),e(M,[2,49]),e(M,[2,54]),e(Ht,[2,77]),e(M,[2,51]),e(M,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:lt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:O(function(ht,S){if(S.recoverable)this.trace(ht);else{var A=new Error(ht);throw A.hash=S,A}},"parseError"),parse:O(function(ht){var S=this,A=[0],b=[],W=[null],o=[],rt=this.table,p="",kt=0,we=0,Je=0,Ze=2,Ae=1,Qe=o.slice.call(arguments,1),j=Object.create(this.lexer),Ot={yy:{}};for(var Ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ut)&&(Ot.yy[Ut]=this.yy[Ut]);j.setInput(ht,Ot.yy),Ot.yy.lexer=j,Ot.yy.parser=this,typeof j.yylloc>"u"&&(j.yylloc={});var jt=j.yylloc;o.push(jt);var ta=j.options&&j.options.ranges;typeof Ot.yy.parseError=="function"?this.parseError=Ot.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ea(ot){A.length=A.length-2*ot,W.length=W.length-ot,o.length=o.length-ot}O(ea,"popStack");function Pe(){var ot;return ot=b.pop()||j.lex()||Ae,typeof ot!="number"&&(ot instanceof Array&&(b=ot,ot=b.pop()),ot=S.symbols_[ot]||ot),ot}O(Pe,"lex");for(var Z,Gt,_t,ct,Tr,Xt,ft={},Mt,Tt,De,Ct;;){if(_t=A[A.length-1],this.defaultActions[_t]?ct=this.defaultActions[_t]:((Z===null||typeof Z>"u")&&(Z=Pe()),ct=rt[_t]&&rt[_t][Z]),typeof ct>"u"||!ct.length||!ct[0]){var Jt="";Ct=[];for(Mt in rt[_t])this.terminals_[Mt]&&Mt>Ze&&Ct.push("'"+this.terminals_[Mt]+"'");j.showPosition?Jt="Parse error on line "+(kt+1)+`:
|
|
1
|
+
import{s as aa}from"./chunk-T5OCTHI4-B2tIcggA.js";import{m as O,h as ra,q as Q,i as vt,p as it,b as ia,D as sa,C as D,e as ke,l as na,n as oa,s as la,a as ca,o as da,A as ha,r as pa,u as Ta,d as Bt,k as G,ag as J,ah as wt,f as Ea,g as ga,a8 as ve,ai as ua,I as $t,aj as ya,ak as Be}from"./index-VTKdaklA.js";import{g as Oa,G as ae,u as pt,x as _a,h as re,E as ie}from"./chunk-LII3EMHJ-Dqq0Qguw.js";var Qt=function(){var e=O(function(ht,S,A,b){for(A=A||{},b=ht.length;b--;A[ht[b]]=S);return A},"o"),t=[1,2],r=[1,3],a=[1,4],s=[2,4],n=[1,9],i=[1,11],l=[1,12],E=[1,14],h=[1,15],c=[1,17],_=[1,18],g=[1,19],m=[1,25],T=[1,26],u=[1,27],y=[1,28],x=[1,29],f=[1,30],R=[1,31],P=[1,32],w=[1,33],N=[1,34],Y=[1,35],C=[1,36],B=[1,37],z=[1,38],$=[1,39],U=[1,40],X=[1,42],H=[1,43],st=[1,44],tt=[1,45],nt=[1,46],V=[1,47],M=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],At=[1,74],L=[1,80],k=[1,81],et=[1,82],at=[1,83],F=[1,84],se=[1,85],ne=[1,86],oe=[1,87],le=[1,88],ce=[1,89],de=[1,90],he=[1,91],pe=[1,92],Te=[1,93],Ee=[1,94],ge=[1,95],ue=[1,96],ye=[1,97],Oe=[1,98],_e=[1,99],be=[1,100],xe=[1,101],Ie=[1,102],fe=[1,103],me=[1,104],Re=[1,105],Le=[2,78],Nt=[4,5,17,51,53,54],Pt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Ne=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],qt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Ht=[5,52],K=[70,71,72,73],lt=[1,151],zt={trace:O(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:O(function(ht,S,A,b,W,o,rt){var p=o.length-1;switch(W){case 3:return b.apply(o[p]),o[p];case 4:case 10:this.$=[];break;case 5:case 11:o[p-1].push(o[p]),this.$=o[p-1];break;case 6:case 7:case 12:case 13:this.$=o[p];break;case 8:case 9:case 14:this.$=[];break;case 16:o[p].type="createParticipant",this.$=o[p];break;case 17:o[p-1].unshift({type:"boxStart",boxData:b.parseBoxData(o[p-2])}),o[p-1].push({type:"boxEnd",boxText:o[p-2]}),this.$=o[p-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[p-2]),sequenceIndexStep:Number(o[p-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:o[p-1].actor};break;case 24:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:o[p-1].actor};break;case 30:b.setDiagramTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 31:b.setDiagramTitle(o[p].substring(7)),this.$=o[p].substring(7);break;case 32:this.$=o[p].trim(),b.setAccTitle(this.$);break;case 33:case 34:this.$=o[p].trim(),b.setAccDescription(this.$);break;case 35:o[p-1].unshift({type:"loopStart",loopText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.LOOP_START}),o[p-1].push({type:"loopEnd",loopText:o[p-2],signalType:b.LINETYPE.LOOP_END}),this.$=o[p-1];break;case 36:o[p-1].unshift({type:"rectStart",color:b.parseMessage(o[p-2]),signalType:b.LINETYPE.RECT_START}),o[p-1].push({type:"rectEnd",color:b.parseMessage(o[p-2]),signalType:b.LINETYPE.RECT_END}),this.$=o[p-1];break;case 37:o[p-1].unshift({type:"optStart",optText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.OPT_START}),o[p-1].push({type:"optEnd",optText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.OPT_END}),this.$=o[p-1];break;case 38:o[p-1].unshift({type:"altStart",altText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.ALT_START}),o[p-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=o[p-1];break;case 39:o[p-1].unshift({type:"parStart",parText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.PAR_START}),o[p-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=o[p-1];break;case 40:o[p-1].unshift({type:"parStart",parText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.PAR_OVER_START}),o[p-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=o[p-1];break;case 41:o[p-1].unshift({type:"criticalStart",criticalText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.CRITICAL_START}),o[p-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=o[p-1];break;case 42:o[p-1].unshift({type:"breakStart",breakText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.BREAK_START}),o[p-1].push({type:"breakEnd",optText:b.parseMessage(o[p-2]),signalType:b.LINETYPE.BREAK_END}),this.$=o[p-1];break;case 44:this.$=o[p-3].concat([{type:"option",optionText:b.parseMessage(o[p-1]),signalType:b.LINETYPE.CRITICAL_OPTION},o[p]]);break;case 46:this.$=o[p-3].concat([{type:"and",parText:b.parseMessage(o[p-1]),signalType:b.LINETYPE.PAR_AND},o[p]]);break;case 48:this.$=o[p-3].concat([{type:"else",altText:b.parseMessage(o[p-1]),signalType:b.LINETYPE.ALT_ELSE},o[p]]);break;case 49:o[p-3].draw="participant",o[p-3].type="addParticipant",o[p-3].description=b.parseMessage(o[p-1]),this.$=o[p-3];break;case 50:o[p-1].draw="participant",o[p-1].type="addParticipant",this.$=o[p-1];break;case 51:o[p-3].draw="actor",o[p-3].type="addParticipant",o[p-3].description=b.parseMessage(o[p-1]),this.$=o[p-3];break;case 52:case 57:o[p-1].draw="actor",o[p-1].type="addParticipant",this.$=o[p-1];break;case 53:o[p-1].type="destroyParticipant",this.$=o[p-1];break;case 54:o[p-3].draw="participant",o[p-3].type="addParticipant",o[p-3].description=b.parseMessage(o[p-1]),this.$=o[p-3];break;case 55:o[p-1].draw="participant",o[p-1].type="addParticipant",this.$=o[p-1];break;case 56:o[p-3].draw="actor",o[p-3].type="addParticipant",o[p-3].description=b.parseMessage(o[p-1]),this.$=o[p-3];break;case 58:this.$=[o[p-1],{type:"addNote",placement:o[p-2],actor:o[p-1].actor,text:o[p]}];break;case 59:o[p-2]=[].concat(o[p-1],o[p-1]).slice(0,2),o[p-2][0]=o[p-2][0].actor,o[p-2][1]=o[p-2][1].actor,this.$=[o[p-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:o[p-2].slice(0,2),text:o[p]}];break;case 60:this.$=[o[p-1],{type:"addLinks",actor:o[p-1].actor,text:o[p]}];break;case 61:this.$=[o[p-1],{type:"addALink",actor:o[p-1].actor,text:o[p]}];break;case 62:this.$=[o[p-1],{type:"addProperties",actor:o[p-1].actor,text:o[p]}];break;case 63:this.$=[o[p-1],{type:"addDetails",actor:o[p-1].actor,text:o[p]}];break;case 66:this.$=[o[p-2],o[p]];break;case 67:this.$=o[p];break;case 68:this.$=b.PLACEMENT.LEFTOF;break;case 69:this.$=b.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[p-4],o[p-1],{type:"addMessage",from:o[p-4].actor,to:o[p-1].actor,signalType:o[p-3],msg:o[p],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:o[p-1].actor}];break;case 71:this.$=[o[p-4],o[p-1],{type:"addMessage",from:o[p-4].actor,to:o[p-1].actor,signalType:o[p-3],msg:o[p]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:o[p-4].actor}];break;case 72:this.$=[o[p-4],o[p-1],{type:"addMessage",from:o[p-4].actor,to:o[p-1].actor,signalType:o[p-3],msg:o[p],activate:!0,centralConnection:b.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:b.LINETYPE.CENTRAL_CONNECTION,actor:o[p-1].actor}];break;case 73:this.$=[o[p-4],o[p-1],{type:"addMessage",from:o[p-4].actor,to:o[p-1].actor,signalType:o[p-2],msg:o[p],activate:!1,centralConnection:b.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:b.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[p-4].actor}];break;case 74:this.$=[o[p-5],o[p-1],{type:"addMessage",from:o[p-5].actor,to:o[p-1].actor,signalType:o[p-3],msg:o[p],activate:!0,centralConnection:b.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:b.LINETYPE.CENTRAL_CONNECTION,actor:o[p-1].actor},{type:"centralConnectionReverse",signalType:b.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[p-5].actor}];break;case 75:this.$=[o[p-3],o[p-1],{type:"addMessage",from:o[p-3].actor,to:o[p-1].actor,signalType:o[p-2],msg:o[p]}];break;case 76:this.$={type:"addParticipant",actor:o[p-1],config:o[p]};break;case 77:this.$=o[p-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[p]};break;case 79:this.$=b.LINETYPE.SOLID_OPEN;break;case 80:this.$=b.LINETYPE.DOTTED_OPEN;break;case 81:this.$=b.LINETYPE.SOLID;break;case 82:this.$=b.LINETYPE.SOLID_TOP;break;case 83:this.$=b.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=b.LINETYPE.STICK_TOP;break;case 85:this.$=b.LINETYPE.STICK_BOTTOM;break;case 86:this.$=b.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=b.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=b.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=b.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=b.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=b.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=b.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=b.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=b.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=b.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=b.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=b.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=b.LINETYPE.DOTTED;break;case 100:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=b.LINETYPE.SOLID_CROSS;break;case 102:this.$=b.LINETYPE.DOTTED_CROSS;break;case 103:this.$=b.LINETYPE.SOLID_POINT;break;case 104:this.$=b.LINETYPE.DOTTED_POINT;break;case 105:this.$=b.parseMessage(o[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},e(M,[2,5]),{9:48,13:13,14:E,15:h,18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},e(M,[2,7]),e(M,[2,8]),e(M,[2,9]),e(M,[2,15]),{13:49,51:z,53:$,54:U},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:V},{23:56,73:V},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(M,[2,30]),e(M,[2,31]),{33:[1,62]},{35:[1,63]},e(M,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:At},{23:75,55:76,73:At},{23:77,73:V},{69:78,72:[1,79],78:L,79:k,80:et,81:at,82:F,83:se,84:ne,85:oe,86:le,87:ce,88:de,89:he,90:pe,91:Te,92:Ee,93:ge,94:ue,95:ye,96:Oe,97:_e,98:be,99:xe,100:Ie,101:fe,102:me,103:Re},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:V},{23:111,73:V},{23:112,73:V},{23:113,73:V},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Le),e(M,[2,6]),e(M,[2,16]),e(Nt,[2,10],{11:114}),e(M,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(M,[2,22]),{5:[1,118]},{5:[1,119]},e(M,[2,25]),e(M,[2,26]),e(M,[2,27]),e(M,[2,28]),e(M,[2,29]),e(M,[2,32]),e(M,[2,33]),e(Pt,s,{7:120}),e(Pt,s,{7:121}),e(Pt,s,{7:122}),e(Ne,s,{41:123,7:124}),e(qt,s,{43:125,7:126}),e(qt,s,{7:126,43:127}),e(Se,s,{46:128,7:129}),e(Pt,s,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Ht,Le,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:V},{69:146,78:L,79:k,80:et,81:at,82:F,83:se,84:ne,85:oe,86:le,87:ce,88:de,89:he,90:pe,91:Te,92:Ee,93:ge,94:ue,95:ye,96:Oe,97:_e,98:be,99:xe,100:Ie,101:fe,102:me,103:Re},e(K,[2,79]),e(K,[2,80]),e(K,[2,81]),e(K,[2,82]),e(K,[2,83]),e(K,[2,84]),e(K,[2,85]),e(K,[2,86]),e(K,[2,87]),e(K,[2,88]),e(K,[2,89]),e(K,[2,90]),e(K,[2,91]),e(K,[2,92]),e(K,[2,93]),e(K,[2,94]),e(K,[2,95]),e(K,[2,96]),e(K,[2,97]),e(K,[2,98]),e(K,[2,99]),e(K,[2,100]),e(K,[2,101]),e(K,[2,102]),e(K,[2,103]),e(K,[2,104]),{23:147,73:V},{23:149,60:148,73:V},{73:[2,68]},{73:[2,69]},{58:150,104:lt},{58:152,104:lt},{58:153,104:lt},{58:154,104:lt},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:z,53:$,54:U},{5:[1,160]},e(M,[2,20]),e(M,[2,21]),e(M,[2,23]),e(M,[2,24]),{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[1,161],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[1,162],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[1,163],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{17:[1,164]},{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[2,47],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,50:[1,165],51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{17:[1,166]},{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[2,45],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,49:[1,167],51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{17:[1,168]},{17:[1,169]},{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[2,43],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,48:[1,170],51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{4:n,5:i,8:8,9:10,10:l,13:13,14:E,15:h,17:[1,171],18:16,19:c,22:_,23:41,24:g,25:20,26:21,27:22,28:23,29:24,30:m,31:T,32:u,34:y,36:x,37:f,38:R,39:P,40:w,42:N,44:Y,45:C,47:B,51:z,53:$,54:U,56:X,61:H,62:st,63:tt,64:nt,73:V},{16:[1,172]},e(M,[2,50]),{16:[1,173]},e(M,[2,55]),e(Ht,[2,76]),{76:[1,174]},{16:[1,175]},e(M,[2,52]),{16:[1,176]},e(M,[2,57]),e(M,[2,53]),{23:177,73:V},{23:178,73:V},{23:179,73:V},{58:180,104:lt},{23:181,72:[1,182],73:V},{58:183,104:lt},{58:184,104:lt},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(M,[2,17]),e(Nt,[2,11]),{13:186,51:z,53:$,54:U},e(Nt,[2,13]),e(Nt,[2,14]),e(M,[2,19]),e(M,[2,35]),e(M,[2,36]),e(M,[2,37]),e(M,[2,38]),{16:[1,187]},e(M,[2,39]),{16:[1,188]},e(M,[2,40]),e(M,[2,41]),{16:[1,189]},e(M,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:lt},{58:196,104:lt},{58:197,104:lt},{5:[2,75]},{58:198,104:lt},{23:199,73:V},{5:[2,58]},{5:[2,59]},{23:200,73:V},e(Nt,[2,12]),e(Ne,s,{7:124,41:201}),e(qt,s,{7:126,43:202}),e(Se,s,{7:129,46:203}),e(M,[2,49]),e(M,[2,54]),e(Ht,[2,77]),e(M,[2,51]),e(M,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:lt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:O(function(ht,S){if(S.recoverable)this.trace(ht);else{var A=new Error(ht);throw A.hash=S,A}},"parseError"),parse:O(function(ht){var S=this,A=[0],b=[],W=[null],o=[],rt=this.table,p="",kt=0,we=0,Je=0,Ze=2,Ae=1,Qe=o.slice.call(arguments,1),j=Object.create(this.lexer),Ot={yy:{}};for(var Ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ut)&&(Ot.yy[Ut]=this.yy[Ut]);j.setInput(ht,Ot.yy),Ot.yy.lexer=j,Ot.yy.parser=this,typeof j.yylloc>"u"&&(j.yylloc={});var jt=j.yylloc;o.push(jt);var ta=j.options&&j.options.ranges;typeof Ot.yy.parseError=="function"?this.parseError=Ot.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ea(ot){A.length=A.length-2*ot,W.length=W.length-ot,o.length=o.length-ot}O(ea,"popStack");function Pe(){var ot;return ot=b.pop()||j.lex()||Ae,typeof ot!="number"&&(ot instanceof Array&&(b=ot,ot=b.pop()),ot=S.symbols_[ot]||ot),ot}O(Pe,"lex");for(var Z,Gt,_t,ct,Tr,Xt,ft={},Mt,Tt,De,Ct;;){if(_t=A[A.length-1],this.defaultActions[_t]?ct=this.defaultActions[_t]:((Z===null||typeof Z>"u")&&(Z=Pe()),ct=rt[_t]&&rt[_t][Z]),typeof ct>"u"||!ct.length||!ct[0]){var Jt="";Ct=[];for(Mt in rt[_t])this.terminals_[Mt]&&Mt>Ze&&Ct.push("'"+this.terminals_[Mt]+"'");j.showPosition?Jt="Parse error on line "+(kt+1)+`:
|
|
2
2
|
`+j.showPosition()+`
|
|
3
3
|
Expecting `+Ct.join(", ")+", got '"+(this.terminals_[Z]||Z)+"'":Jt="Parse error on line "+(kt+1)+": Unexpected "+(Z==Ae?"end of input":"'"+(this.terminals_[Z]||Z)+"'"),this.parseError(Jt,{text:j.match,token:this.terminals_[Z]||Z,line:j.yylineno,loc:jt,expected:Ct})}if(ct[0]instanceof Array&&ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_t+", token: "+Z);switch(ct[0]){case 1:A.push(Z),W.push(j.yytext),o.push(j.yylloc),A.push(ct[1]),Z=null,Gt?(Z=Gt,Gt=null):(we=j.yyleng,p=j.yytext,kt=j.yylineno,jt=j.yylloc,Je>0);break;case 2:if(Tt=this.productions_[ct[1]][1],ft.$=W[W.length-Tt],ft._$={first_line:o[o.length-(Tt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(Tt||1)].first_column,last_column:o[o.length-1].last_column},ta&&(ft._$.range=[o[o.length-(Tt||1)].range[0],o[o.length-1].range[1]]),Xt=this.performAction.apply(ft,[p,we,kt,Ot.yy,ct[1],W,o].concat(Qe)),typeof Xt<"u")return Xt;Tt&&(A=A.slice(0,-1*Tt*2),W=W.slice(0,-1*Tt),o=o.slice(0,-1*Tt)),A.push(this.productions_[ct[1]][0]),W.push(ft.$),o.push(ft._$),De=rt[A[A.length-2]][A[A.length-1]],A.push(De);break;case 3:return!0}}return!0},"parse")},Xe=function(){var ht={EOF:1,parseError:O(function(S,A){if(this.yy.parser)this.yy.parser.parseError(S,A);else throw new Error(S)},"parseError"),setInput:O(function(S,A){return this.yy=A||this.yy||{},this._input=S,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:O(function(){var S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var A=S.match(/(?:\r\n?|\n).*/g);return A?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},"input"),unput:O(function(S){var A=S.length,b=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var W=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var o=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:b?(b.length===W.length?this.yylloc.first_column:0)+W[W.length-b.length].length-b[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:O(function(){return this._more=!0,this},"more"),reject:O(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:O(function(S){this.unput(this.match.slice(S))},"less"),pastInput:O(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:O(function(){var S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:O(function(){var S=this.pastInput(),A=new Array(S.length+1).join("-");return S+this.upcomingInput()+`
|
package/dist/web/assets/{stateDiagram-7D4R322I-DJ9brq0U.js → stateDiagram-7D4R322I-v01gvwji.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as G,Y as C,_ as v}from"./chunk-LCXTWHL2-DGYdb_Eh.js";import{f as O}from"./chunk-KRXBNO2N-ChVO_XdS.js";import{H as P}from"./chunk-W44A43WB-REOI67PN.js";import"./chunk-6764PJDD-p1sGJgVm.js";import"./chunk-ZXARS5L4-BfFdV1tf.js";import{m as y,q as t,i as H,p as k,b as R,C as T,af as U,am as I,aj as W,k as Y}from"./index-B5WxtMpv.js";var $=y(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),j=y(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),q=y((e,i)=>{let o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),s=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",s.width+2*t().state.padding).attr("height",s.height+2*t().state.padding).attr("rx",t().state.radius),o},"drawSimpleState"),F=y((e,i)=>{let o=y(function(g,c,b){let m=g.append("tspan").attr("x",2*t().state.padding).text(c);b||m.attr("dy",t().state.textHeight)},"addTspan"),s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),d=s.height,h=e.append("text").attr("x",t().state.padding).attr("y",d+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description"),x=!0,a=!0;i.descriptions.forEach(function(g){x||(o(h,g,a),a=!1),x=!1});let n=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+d+t().state.dividerMargin/2).attr("y2",t().state.padding+d+t().state.dividerMargin/2).attr("class","descr-divider"),u=h.node().getBBox(),l=Math.max(u.width,s.width);return n.attr("x2",l+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",l+2*t().state.padding).attr("height",u.height+d+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),J=y((e,i,o)=>{let s=t().state.padding,d=2*t().state.padding,h=e.node().getBBox(),x=h.width,a=h.x,n=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),u=n.node().getBBox().width+d,l=Math.max(u,x);l===x&&(l=l+d);let g,c=e.node().getBBox();i.doc,g=a-s,u>x&&(g=(x-l)/2+s),Math.abs(a-c.x)<s&&u>x&&(g=a-(u-x)/2);let b=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",g).attr("y",b).attr("class",o?"alt-composit":"composit").attr("width",l).attr("height",c.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),n.attr("x",g+s),u<=x&&n.attr("x",a+(l-d)/2-u/2+s),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",l).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",l).attr("height",c.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),_=y(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),X=y((e,i)=>{let o=t().state.forkWidth,s=t().state.forkHeight;if(i.parentId){let d=o;o=s,s=d}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",s).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),Z=y((e,i,o,s)=>{let d=0,h=s.append("text");h.style("text-anchor","start"),h.attr("class","noteText");let x=e.replace(/\r\n/g,"<br/>");x=x.replace(/\n/g,"<br/>");let a=x.split(T.lineBreakRegex),n=1.25*t().state.noteMargin;for(let u of a){let l=u.trim();if(l.length>0){let g=h.append("tspan");if(g.text(l),n===0){let c=g.node().getBBox();n+=c.height}d+=n,g.attr("x",i+t().state.noteMargin),g.attr("y",o+d+1.25*t().state.noteMargin)}}return{textWidth:h.node().getBBox().width,textHeight:d}},"_drawLongText"),K=y((e,i)=>{i.attr("class","state-note");let o=i.append("rect").attr("x",0).attr("y",t().state.padding),s=i.append("g"),{textWidth:d,textHeight:h}=Z(e,0,0,s);return o.attr("height",h+2*t().state.noteMargin),o.attr("width",d+t().state.noteMargin*2),o},"drawNote"),D=y(function(e,i){let o=i.id,s={id:o,label:i.id,width:0,height:0},d=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&$(d),i.type==="end"&&_(d),(i.type==="fork"||i.type==="join")&&X(d,i),i.type==="note"&&K(i.note.text,d),i.type==="divider"&&j(d),i.type==="default"&&i.descriptions.length===0&&q(d,i),i.type==="default"&&i.descriptions.length>0&&F(d,i);let h=d.node().getBBox();return s.width=h.width+2*t().state.padding,s.height=h.height+2*t().state.padding,s},"drawState"),A=0,Q=y(function(e,i,o){let s=y(function(n){switch(n){case v.relationType.AGGREGATION:return"aggregation";case v.relationType.EXTENSION:return"extension";case v.relationType.COMPOSITION:return"composition";case v.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(n=>!Number.isNaN(n.y));let d=i.points,h=U().x(function(n){return n.x}).y(function(n){return n.y}).curve(I),x=e.append("path").attr("d",h(d)).attr("id","edge"+A).attr("class","transition"),a="";if(t().state.arrowMarkerAbsolute&&(a=W(!0)),x.attr("marker-end","url("+a+"#"+s(v.relationType.DEPENDENCY)+"End)"),o.title!==void 0){let n=e.append("g").attr("class","stateLabel"),{x:u,y:l}=Y.calcLabelPosition(i.points),g=T.getRows(o.title),c=0,b=[],m=0,E=0;for(let r=0;r<=g.length;r++){let f=n.append("text").attr("text-anchor","middle").text(g[r]).attr("x",u).attr("y",l+c),p=f.node().getBBox();m=Math.max(m,p.width),E=Math.min(E,p.x),k.info(p.x,u,l+c),c===0&&(c=f.node().getBBox().height,k.info("Title height",c,l)),b.push(f)}let N=c*g.length;if(g.length>1){let r=(g.length-1)*c*.5;b.forEach((f,p)=>f.attr("y",l+p*c-r)),N=c*g.length}let M=n.node().getBBox();n.insert("rect",":first-child").attr("class","box").attr("x",u-m/2-t().state.padding/2).attr("y",l-N/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",N+t().state.padding),k.info(M)}A++},"drawEdge"),w,z={},V=y(function(){},"setConf"),tt=y(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),et=y(function(e,i,o,s){w=t().state;let d=t().securityLevel,h;d==="sandbox"&&(h=H("#i"+i));let x=d==="sandbox"?H(h.nodes()[0].contentDocument.body):H("body"),a=d==="sandbox"?h.nodes()[0].contentDocument:document;k.debug("Rendering diagram "+e);let n=x.select(`[id='${i}']`);tt(n);let u=s.db.getRootDoc(),l=n.append("g").attr("id",i+"-root");L(u,l,void 0,!1,x,a,s);let g=w.padding,c=n.node().getBBox(),b=c.width+g*2,m=c.height+g*2,E=b*1.75;R(n,m,E,w.useMaxWidth),n.attr("viewBox",`${c.x-w.padding} ${c.y-w.padding} `+b+" "+m)},"draw"),at=y(e=>e?e.length*w.fontSizeFactor:1,"getLabelWidth"),L=y((e,i,o,s,d,h,x)=>{let a=new P({compound:!0,multigraph:!0}),n,u=!0;for(n=0;n<e.length;n++)if(e[n].stmt==="relation"){u=!1;break}o?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:u?1:w.edgeLengthFactor,nodeSep:u?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:u?1:w.edgeLengthFactor,nodeSep:u?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});let l=x.db.getStates(),g=x.db.getRelations(),c=Object.keys(l),b=!0;for(let r of c){let f=l[r];o&&(f.parentId=o);let p;if(f.doc){let S=i.append("g").attr("id",f.id).attr("class","stateGroup");if(p=L(f.doc,S,f.id,!s,d,h,x),b){S=J(S,f,s);let B=S.node().getBBox();p.width=B.width,p.height=B.height+w.padding/2,z[f.id]={y:w.compositTitleSize}}}else p=D(i,f,a);if(f.note){let S={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},B=D(i,S,a);f.note.position==="left of"?(a.setNode(p.id+"-note",B),a.setNode(p.id,p)):(a.setNode(p.id,p),a.setNode(p.id+"-note",B)),a.setParent(p.id,p.id+"-group"),a.setParent(p.id+"-note",p.id+"-group")}else a.setNode(p.id,p)}k.debug("Count=",a.nodeCount(),a);let m=0;g.forEach(function(r){m++,k.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:at(r.title),height:w.labelHeight*T.getRows(r.title).length,labelpos:"c"},"id"+m)}),O(a),k.debug("Graph after layout",a.nodes());let E=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(k.warn("Node "+r+": "+JSON.stringify(a.node(r))),d.select("#"+E.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(z[r]?z[r].y:0)-a.node(r).height/2)+" )"),d.select("#"+E.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),h.querySelectorAll("#"+E.id+" #"+r+" .divider").forEach(f=>{let p=f.parentElement,S=0,B=0;p&&(p.parentElement&&(S=p.parentElement.getBBox().width),B=parseInt(p.getAttribute("data-x-shift"),10),Number.isNaN(B)&&(B=0)),f.setAttribute("x1",0-B+8),f.setAttribute("x2",S-B-8)})):k.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let N=E.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(k.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),Q(i,a.edge(r),a.edge(r).relation))}),N=E.getBBox();let M={id:o||"root",label:o||"root",width:0,height:0};return M.width=N.width+2*w.padding,M.height=N.height+2*w.padding,k.debug("Doc rendered",M,a),M},"renderDoc"),it={setConf:V,draw:et},pt={parser:C,get db(){return new v(1)},renderer:it,styles:G,init:y(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{pt as diagram};
|
|
1
|
+
import{g as G,Y as C,_ as v}from"./chunk-LCXTWHL2-BoiuJpIF.js";import{f as O}from"./chunk-KRXBNO2N-C0mbN9a7.js";import{H as P}from"./chunk-W44A43WB-BHe37iN7.js";import"./chunk-6764PJDD-Cppb-jH-.js";import"./chunk-ZXARS5L4-wcrIaQvY.js";import{m as y,q as t,i as H,p as k,b as R,C as T,af as U,am as I,aj as W,k as Y}from"./index-VTKdaklA.js";var $=y(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),j=y(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),q=y((e,i)=>{let o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),s=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",s.width+2*t().state.padding).attr("height",s.height+2*t().state.padding).attr("rx",t().state.radius),o},"drawSimpleState"),F=y((e,i)=>{let o=y(function(g,c,b){let m=g.append("tspan").attr("x",2*t().state.padding).text(c);b||m.attr("dy",t().state.textHeight)},"addTspan"),s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),d=s.height,h=e.append("text").attr("x",t().state.padding).attr("y",d+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description"),x=!0,a=!0;i.descriptions.forEach(function(g){x||(o(h,g,a),a=!1),x=!1});let n=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+d+t().state.dividerMargin/2).attr("y2",t().state.padding+d+t().state.dividerMargin/2).attr("class","descr-divider"),u=h.node().getBBox(),l=Math.max(u.width,s.width);return n.attr("x2",l+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",l+2*t().state.padding).attr("height",u.height+d+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),J=y((e,i,o)=>{let s=t().state.padding,d=2*t().state.padding,h=e.node().getBBox(),x=h.width,a=h.x,n=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),u=n.node().getBBox().width+d,l=Math.max(u,x);l===x&&(l=l+d);let g,c=e.node().getBBox();i.doc,g=a-s,u>x&&(g=(x-l)/2+s),Math.abs(a-c.x)<s&&u>x&&(g=a-(u-x)/2);let b=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",g).attr("y",b).attr("class",o?"alt-composit":"composit").attr("width",l).attr("height",c.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),n.attr("x",g+s),u<=x&&n.attr("x",a+(l-d)/2-u/2+s),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",l).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",l).attr("height",c.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),_=y(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),X=y((e,i)=>{let o=t().state.forkWidth,s=t().state.forkHeight;if(i.parentId){let d=o;o=s,s=d}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",s).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),Z=y((e,i,o,s)=>{let d=0,h=s.append("text");h.style("text-anchor","start"),h.attr("class","noteText");let x=e.replace(/\r\n/g,"<br/>");x=x.replace(/\n/g,"<br/>");let a=x.split(T.lineBreakRegex),n=1.25*t().state.noteMargin;for(let u of a){let l=u.trim();if(l.length>0){let g=h.append("tspan");if(g.text(l),n===0){let c=g.node().getBBox();n+=c.height}d+=n,g.attr("x",i+t().state.noteMargin),g.attr("y",o+d+1.25*t().state.noteMargin)}}return{textWidth:h.node().getBBox().width,textHeight:d}},"_drawLongText"),K=y((e,i)=>{i.attr("class","state-note");let o=i.append("rect").attr("x",0).attr("y",t().state.padding),s=i.append("g"),{textWidth:d,textHeight:h}=Z(e,0,0,s);return o.attr("height",h+2*t().state.noteMargin),o.attr("width",d+t().state.noteMargin*2),o},"drawNote"),D=y(function(e,i){let o=i.id,s={id:o,label:i.id,width:0,height:0},d=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&$(d),i.type==="end"&&_(d),(i.type==="fork"||i.type==="join")&&X(d,i),i.type==="note"&&K(i.note.text,d),i.type==="divider"&&j(d),i.type==="default"&&i.descriptions.length===0&&q(d,i),i.type==="default"&&i.descriptions.length>0&&F(d,i);let h=d.node().getBBox();return s.width=h.width+2*t().state.padding,s.height=h.height+2*t().state.padding,s},"drawState"),A=0,Q=y(function(e,i,o){let s=y(function(n){switch(n){case v.relationType.AGGREGATION:return"aggregation";case v.relationType.EXTENSION:return"extension";case v.relationType.COMPOSITION:return"composition";case v.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(n=>!Number.isNaN(n.y));let d=i.points,h=U().x(function(n){return n.x}).y(function(n){return n.y}).curve(I),x=e.append("path").attr("d",h(d)).attr("id","edge"+A).attr("class","transition"),a="";if(t().state.arrowMarkerAbsolute&&(a=W(!0)),x.attr("marker-end","url("+a+"#"+s(v.relationType.DEPENDENCY)+"End)"),o.title!==void 0){let n=e.append("g").attr("class","stateLabel"),{x:u,y:l}=Y.calcLabelPosition(i.points),g=T.getRows(o.title),c=0,b=[],m=0,E=0;for(let r=0;r<=g.length;r++){let f=n.append("text").attr("text-anchor","middle").text(g[r]).attr("x",u).attr("y",l+c),p=f.node().getBBox();m=Math.max(m,p.width),E=Math.min(E,p.x),k.info(p.x,u,l+c),c===0&&(c=f.node().getBBox().height,k.info("Title height",c,l)),b.push(f)}let N=c*g.length;if(g.length>1){let r=(g.length-1)*c*.5;b.forEach((f,p)=>f.attr("y",l+p*c-r)),N=c*g.length}let M=n.node().getBBox();n.insert("rect",":first-child").attr("class","box").attr("x",u-m/2-t().state.padding/2).attr("y",l-N/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",N+t().state.padding),k.info(M)}A++},"drawEdge"),w,z={},V=y(function(){},"setConf"),tt=y(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),et=y(function(e,i,o,s){w=t().state;let d=t().securityLevel,h;d==="sandbox"&&(h=H("#i"+i));let x=d==="sandbox"?H(h.nodes()[0].contentDocument.body):H("body"),a=d==="sandbox"?h.nodes()[0].contentDocument:document;k.debug("Rendering diagram "+e);let n=x.select(`[id='${i}']`);tt(n);let u=s.db.getRootDoc(),l=n.append("g").attr("id",i+"-root");L(u,l,void 0,!1,x,a,s);let g=w.padding,c=n.node().getBBox(),b=c.width+g*2,m=c.height+g*2,E=b*1.75;R(n,m,E,w.useMaxWidth),n.attr("viewBox",`${c.x-w.padding} ${c.y-w.padding} `+b+" "+m)},"draw"),at=y(e=>e?e.length*w.fontSizeFactor:1,"getLabelWidth"),L=y((e,i,o,s,d,h,x)=>{let a=new P({compound:!0,multigraph:!0}),n,u=!0;for(n=0;n<e.length;n++)if(e[n].stmt==="relation"){u=!1;break}o?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:u?1:w.edgeLengthFactor,nodeSep:u?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:u?1:w.edgeLengthFactor,nodeSep:u?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});let l=x.db.getStates(),g=x.db.getRelations(),c=Object.keys(l),b=!0;for(let r of c){let f=l[r];o&&(f.parentId=o);let p;if(f.doc){let S=i.append("g").attr("id",f.id).attr("class","stateGroup");if(p=L(f.doc,S,f.id,!s,d,h,x),b){S=J(S,f,s);let B=S.node().getBBox();p.width=B.width,p.height=B.height+w.padding/2,z[f.id]={y:w.compositTitleSize}}}else p=D(i,f,a);if(f.note){let S={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},B=D(i,S,a);f.note.position==="left of"?(a.setNode(p.id+"-note",B),a.setNode(p.id,p)):(a.setNode(p.id,p),a.setNode(p.id+"-note",B)),a.setParent(p.id,p.id+"-group"),a.setParent(p.id+"-note",p.id+"-group")}else a.setNode(p.id,p)}k.debug("Count=",a.nodeCount(),a);let m=0;g.forEach(function(r){m++,k.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:at(r.title),height:w.labelHeight*T.getRows(r.title).length,labelpos:"c"},"id"+m)}),O(a),k.debug("Graph after layout",a.nodes());let E=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(k.warn("Node "+r+": "+JSON.stringify(a.node(r))),d.select("#"+E.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(z[r]?z[r].y:0)-a.node(r).height/2)+" )"),d.select("#"+E.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),h.querySelectorAll("#"+E.id+" #"+r+" .divider").forEach(f=>{let p=f.parentElement,S=0,B=0;p&&(p.parentElement&&(S=p.parentElement.getBBox().width),B=parseInt(p.getAttribute("data-x-shift"),10),Number.isNaN(B)&&(B=0)),f.setAttribute("x1",0-B+8),f.setAttribute("x2",S-B-8)})):k.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let N=E.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(k.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),Q(i,a.edge(r),a.edge(r).relation))}),N=E.getBBox();let M={id:o||"root",label:o||"root",width:0,height:0};return M.width=N.width+2*w.padding,M.height=N.height+2*w.padding,k.debug("Doc rendered",M,a),M},"renderDoc"),it={setConf:V,draw:et},pt={parser:C,get db(){return new v(1)},renderer:it,styles:G,init:y(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{pt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e,q as t,Y as a,_ as s}from"./chunk-LCXTWHL2-BoiuJpIF.js";import"./chunk-6764PJDD-Cppb-jH-.js";import"./chunk-ZXARS5L4-wcrIaQvY.js";import{m as o}from"./index-VTKdaklA.js";var g={parser:a,get db(){return new s(2)},renderer:t,styles:e,init:o(r=>{r.state||(r.state={}),r.state.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{g as diagram};
|