orbitchat 1.0.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/assets/api-BHF9IxKN.js +1 -0
- package/dist/assets/api-DvBZwzfV.js +2 -0
- package/dist/assets/arc-CVHSP1cu-Bj3hxGRV.js +1 -0
- package/dist/assets/{blockDiagram-c4efeb88-CLLcV2XJ-DrD4ayJu.js → blockDiagram-c4efeb88-BF2cqC5E-C5ugV9-s.js} +8 -8
- package/dist/assets/{c4Diagram-c83219d4-Bq976NrW-BV_rnR6p.js → c4Diagram-c83219d4-D9AJbzWz-BWb1Tk8y.js} +4 -4
- package/dist/assets/channel-BYhLgIow-BPTRMgNI.js +1 -0
- package/dist/assets/{classDiagram-beda092f-7G8Y9ObP-CH57K0jF.js → classDiagram-beda092f-B88VjdUG-BWR-XkYO.js} +2 -2
- package/dist/assets/{classDiagram-v2-2358418a-CYz_KHej-5hqoInAi.js → classDiagram-v2-2358418a-BPyGCNOs-CnRIvvFY.js} +2 -2
- package/dist/assets/clone-C0MdfhAf-_B1M49Tw.js +1 -0
- package/dist/assets/{createText-1719965b-Cbn6MBZp-XsqLbIiK.js → createText-1719965b-D5GExXUl-CSo0puOR.js} +2 -2
- package/dist/assets/edges-96097737-BnGLzlID--RpsQPpU.js +4 -0
- package/dist/assets/{erDiagram-0228fc6a-Bj5SeSQq-Du4HJ7EM.js → erDiagram-0228fc6a-DNX6_tUA-CBfeRoEX.js} +4 -4
- package/dist/assets/{flowDb-c6c81e3f-CaVKc_SB-DrTIEZFc.js → flowDb-c6c81e3f-DFROkPpA-DoF7w60g.js} +3 -3
- package/dist/assets/{flowDiagram-50d868cf-BcT1Qv7E-CsJ_vN_G.js → flowDiagram-50d868cf-Cmwizbui-DAWL0Ten.js} +3 -3
- package/dist/assets/flowDiagram-v2-4f6560a1-LfQOA08G-ByM7AhyC.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-CIF5zs_e-IScfridg.js → flowchart-elk-definition-6af322e1-CNwLXR6A-Bz6YKMuz.js} +1 -1
- package/dist/assets/{ganttDiagram-a2739b55-wX4z0bcl-DKnBLRKZ.js → ganttDiagram-a2739b55-7uphPAFV-BFKc01uq.js} +3 -3
- package/dist/assets/{gitGraphDiagram-82fe8481-BTMrrqSM-C1_T-Jao.js → gitGraphDiagram-82fe8481-DRDypp_x-Cc3_bbqa.js} +5 -5
- package/dist/assets/{graph-Bc6U-Oet-gn_NOzSF.js → graph-CvRY9YIM-BVZjlKfa.js} +1 -1
- package/dist/assets/index-5325376f-D7k5u-pg-D5Cux9AW.js +1 -0
- package/dist/assets/index-CV3ovvq1.js +983 -0
- package/dist/assets/index-CfrvHiM_.css +1 -0
- package/dist/assets/{infoDiagram-8eee0895-CGdieI3d-BOq7AhxS.js → infoDiagram-8eee0895-BcQBWTwp-Cuo1RYtb.js} +3 -3
- package/dist/assets/{journeyDiagram-c64418c1-D741T7Vx-zUVhhaKS.js → journeyDiagram-c64418c1-CN5eh0M6-CFlv0ZW_.js} +3 -3
- package/dist/assets/layout-DSZZaifl-B9Eg6v4O.js +1 -0
- package/dist/assets/{mindmap-definition-8da855dc-DYXCEYTW-D_fIMrLV.js → mindmap-definition-8da855dc-BIK1yn9--2Uavet_P.js} +1 -1
- package/dist/assets/{pieDiagram-a8764435-56nwm0bs-DTnCV95P.js → pieDiagram-a8764435-ikNRxsHY-J8pKwIba.js} +5 -5
- package/dist/assets/{quadrantDiagram-1e28029f-BPDrTwrc-DicCIIki.js → quadrantDiagram-1e28029f-jvSP5gnQ-IfKQkanh.js} +4 -4
- package/dist/assets/{requirementDiagram-08caed73-ErOyM087-SPZTC23e.js → requirementDiagram-08caed73-FO_Z83qK-vBJAFnIP.js} +5 -5
- package/dist/assets/{sankeyDiagram-a04cb91d-Dr_h6k2R-DhJ4tdyk.js → sankeyDiagram-a04cb91d-DN0iWjES-CD7wN8jh.js} +4 -4
- package/dist/assets/{sequenceDiagram-c5b8d532-wtK0ihCE-BD-cDC5n.js → sequenceDiagram-c5b8d532-CGsjpH84-C-ZWXP1Q.js} +1 -1
- package/dist/assets/{stateDiagram-1ecb1508-D6rDYnWS-c_ctmkZ_.js → stateDiagram-1ecb1508-zuhKSs9y-BTHnrZrL.js} +1 -1
- package/dist/assets/stateDiagram-v2-c2b004d7-CNnNRi3z-DT3KwZcD.js +1 -0
- package/dist/assets/{styles-b4e223ce-CPkoRhK8-CgAfNf4E.js → styles-b4e223ce-BOk_k5Y1-PKPDqdqx.js} +3 -3
- package/dist/assets/{styles-ca3715f6-FCD4s0nN-Cy3cKH3y.js → styles-ca3715f6-g0iC1zjD-CPChcZri.js} +4 -4
- package/dist/assets/{styles-d45a18b0-7fTS_K4G-Du8DKTsM.js → styles-d45a18b0-VfGWd52Q-D7qD0x-3.js} +3 -3
- package/dist/assets/{svgDrawCommon-b86b1483-C9ebAubK-op7yWowN.js → svgDrawCommon-b86b1483-BnVJ45aa-CErmScK_.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-C-TPmIif-DYaLLGuG.js → timeline-definition-faaaa080-BpDBXry4-8Fh7Xq3v.js} +4 -4
- package/dist/assets/{xychartDiagram-f5964ef8-Dy6Sev6Z-CqHdrjzq.js → xychartDiagram-f5964ef8-CvN7DIQW-_wuj7Zir.js} +4 -4
- package/dist/index.html +2 -2
- package/package.json +3 -3
- package/dist/assets/api-Bn87pbYA.js +0 -2
- package/dist/assets/api-C-IKCaMw.js +0 -2
- package/dist/assets/arc-hH97QygY-C1Juzx9w.js +0 -1
- package/dist/assets/channel-CSC8iKVS-BaizB9iP.js +0 -1
- package/dist/assets/clone-vCPXKFeo-CYuGboSt.js +0 -1
- package/dist/assets/edges-96097737-XAH6P1yX-B8qB4lY4.js +0 -4
- package/dist/assets/flowDiagram-v2-4f6560a1-B0fti9Da-Cid3wfD1.js +0 -1
- package/dist/assets/index-5325376f-DCLsNwAa-Cr5uvBNL.js +0 -1
- package/dist/assets/index-BkwMgBH1.js +0 -966
- package/dist/assets/index-Cdetzrl0.css +0 -1
- package/dist/assets/layout-BtHnec7v-DlBdTUOD.js +0 -1
- package/dist/assets/stateDiagram-v2-c2b004d7-K0flL3uN-ZhpcioZ4.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as Ee,o as we,a as Zt,X as at,l as ve,u as _e,i as ke,P as Pt,O as K,e as Gt,c as Pe,N as Le,U as v,M as It,n as Ie,r as C,am as Et,an as nt,ad as te,ao as Me,H as ee,ak as Ct}from"./index-BkwMgBH1.js";import{x as Ne,g as qt,l as Ae,p as Mt,y as Oe,h as Se}from"./svgDrawCommon-b86b1483-C9ebAubK-op7yWowN.js";var Yt=function(){var t=function(st,T,_,f){for(_=_||{},f=st.length;f--;_[st[f]]=T);return _},e=[1,2],c=[1,3],a=[1,4],i=[2,4],s=[1,9],l=[1,11],n=[1,13],h=[1,14],r=[1,16],u=[1,17],b=[1,18],g=[1,24],y=[1,25],w=[1,26],k=[1,27],L=[1,28],R=[1,29],N=[1,30],$=[1,31],O=[1,32],F=[1,33],q=[1,34],X=[1,35],G=[1,36],W=[1,37],z=[1,38],B=[1,39],V=[1,41],J=[1,42],H=[1,43],Q=[1,44],tt=[1,45],M=[1,46],m=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],Z=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],I=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Ut=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],pt=[68,69,70],ct=[1,120],At={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",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",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,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],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(st,T,_,f,A,d,U){var p=d.length-1;switch(A){case 3:return f.apply(d[p]),d[p];case 4:case 9:this.$=[];break;case 5:case 10:d[p-1].push(d[p]),this.$=d[p-1];break;case 6:case 7:case 11:case 12:this.$=d[p];break;case 8:case 13:this.$=[];break;case 15:d[p].type="createParticipant",this.$=d[p];break;case 16:d[p-1].unshift({type:"boxStart",boxData:f.parseBoxData(d[p-2])}),d[p-1].push({type:"boxEnd",boxText:d[p-2]}),this.$=d[p-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(d[p-2]),sequenceIndexStep:Number(d[p-1]),sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(d[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:f.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:d[p-1]};break;case 23:this.$={type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:d[p-1]};break;case 29:f.setDiagramTitle(d[p].substring(6)),this.$=d[p].substring(6);break;case 30:f.setDiagramTitle(d[p].substring(7)),this.$=d[p].substring(7);break;case 31:this.$=d[p].trim(),f.setAccTitle(this.$);break;case 32:case 33:this.$=d[p].trim(),f.setAccDescription(this.$);break;case 34:d[p-1].unshift({type:"loopStart",loopText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.LOOP_START}),d[p-1].push({type:"loopEnd",loopText:d[p-2],signalType:f.LINETYPE.LOOP_END}),this.$=d[p-1];break;case 35:d[p-1].unshift({type:"rectStart",color:f.parseMessage(d[p-2]),signalType:f.LINETYPE.RECT_START}),d[p-1].push({type:"rectEnd",color:f.parseMessage(d[p-2]),signalType:f.LINETYPE.RECT_END}),this.$=d[p-1];break;case 36:d[p-1].unshift({type:"optStart",optText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.OPT_START}),d[p-1].push({type:"optEnd",optText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.OPT_END}),this.$=d[p-1];break;case 37:d[p-1].unshift({type:"altStart",altText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.ALT_START}),d[p-1].push({type:"altEnd",signalType:f.LINETYPE.ALT_END}),this.$=d[p-1];break;case 38:d[p-1].unshift({type:"parStart",parText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.PAR_START}),d[p-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=d[p-1];break;case 39:d[p-1].unshift({type:"parStart",parText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.PAR_OVER_START}),d[p-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=d[p-1];break;case 40:d[p-1].unshift({type:"criticalStart",criticalText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.CRITICAL_START}),d[p-1].push({type:"criticalEnd",signalType:f.LINETYPE.CRITICAL_END}),this.$=d[p-1];break;case 41:d[p-1].unshift({type:"breakStart",breakText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.BREAK_START}),d[p-1].push({type:"breakEnd",optText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.BREAK_END}),this.$=d[p-1];break;case 43:this.$=d[p-3].concat([{type:"option",optionText:f.parseMessage(d[p-1]),signalType:f.LINETYPE.CRITICAL_OPTION},d[p]]);break;case 45:this.$=d[p-3].concat([{type:"and",parText:f.parseMessage(d[p-1]),signalType:f.LINETYPE.PAR_AND},d[p]]);break;case 47:this.$=d[p-3].concat([{type:"else",altText:f.parseMessage(d[p-1]),signalType:f.LINETYPE.ALT_ELSE},d[p]]);break;case 48:d[p-3].draw="participant",d[p-3].type="addParticipant",d[p-3].description=f.parseMessage(d[p-1]),this.$=d[p-3];break;case 49:d[p-1].draw="participant",d[p-1].type="addParticipant",this.$=d[p-1];break;case 50:d[p-3].draw="actor",d[p-3].type="addParticipant",d[p-3].description=f.parseMessage(d[p-1]),this.$=d[p-3];break;case 51:d[p-1].draw="actor",d[p-1].type="addParticipant",this.$=d[p-1];break;case 52:d[p-1].type="destroyParticipant",this.$=d[p-1];break;case 53:this.$=[d[p-1],{type:"addNote",placement:d[p-2],actor:d[p-1].actor,text:d[p]}];break;case 54:d[p-2]=[].concat(d[p-1],d[p-1]).slice(0,2),d[p-2][0]=d[p-2][0].actor,d[p-2][1]=d[p-2][1].actor,this.$=[d[p-1],{type:"addNote",placement:f.PLACEMENT.OVER,actor:d[p-2].slice(0,2),text:d[p]}];break;case 55:this.$=[d[p-1],{type:"addLinks",actor:d[p-1].actor,text:d[p]}];break;case 56:this.$=[d[p-1],{type:"addALink",actor:d[p-1].actor,text:d[p]}];break;case 57:this.$=[d[p-1],{type:"addProperties",actor:d[p-1].actor,text:d[p]}];break;case 58:this.$=[d[p-1],{type:"addDetails",actor:d[p-1].actor,text:d[p]}];break;case 61:this.$=[d[p-2],d[p]];break;case 62:this.$=d[p];break;case 63:this.$=f.PLACEMENT.LEFTOF;break;case 64:this.$=f.PLACEMENT.RIGHTOF;break;case 65:this.$=[d[p-4],d[p-1],{type:"addMessage",from:d[p-4].actor,to:d[p-1].actor,signalType:d[p-3],msg:d[p],activate:!0},{type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:d[p-1]}];break;case 66:this.$=[d[p-4],d[p-1],{type:"addMessage",from:d[p-4].actor,to:d[p-1].actor,signalType:d[p-3],msg:d[p]},{type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:d[p-4]}];break;case 67:this.$=[d[p-3],d[p-1],{type:"addMessage",from:d[p-3].actor,to:d[p-1].actor,signalType:d[p-2],msg:d[p]}];break;case 68:this.$={type:"addParticipant",actor:d[p]};break;case 69:this.$=f.LINETYPE.SOLID_OPEN;break;case 70:this.$=f.LINETYPE.DOTTED_OPEN;break;case 71:this.$=f.LINETYPE.SOLID;break;case 72:this.$=f.LINETYPE.DOTTED;break;case 73:this.$=f.LINETYPE.SOLID_CROSS;break;case 74:this.$=f.LINETYPE.DOTTED_CROSS;break;case 75:this.$=f.LINETYPE.SOLID_POINT;break;case 76:this.$=f.LINETYPE.DOTTED_POINT;break;case 77:this.$=f.parseMessage(d[p].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:a},{1:[3]},{3:5,4:e,5:c,6:a},{3:6,4:e,5:c,6:a},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:l,8:8,9:10,12:12,13:n,14:h,17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},t(m,[2,5]),{9:47,12:12,13:n,14:h,17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},t(m,[2,7]),t(m,[2,8]),t(m,[2,14]),{12:48,50:W,52:z,53:B},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:M},{22:55,70:M},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(m,[2,29]),t(m,[2,30]),{32:[1,61]},{34:[1,62]},t(m,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:M},{22:72,70:M},{22:73,70:M},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:M},{22:88,70:M},{22:89,70:M},{22:90,70:M},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(m,[2,6]),t(m,[2,15]),t(P,[2,9],{10:91}),t(m,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(m,[2,21]),{5:[1,95]},{5:[1,96]},t(m,[2,24]),t(m,[2,25]),t(m,[2,26]),t(m,[2,27]),t(m,[2,28]),t(m,[2,31]),t(m,[2,32]),t(Z,i,{7:97}),t(Z,i,{7:98}),t(Z,i,{7:99}),t(rt,i,{40:100,7:101}),t(I,i,{42:102,7:103}),t(I,i,{7:103,42:104}),t(Ut,i,{45:105,7:106}),t(Z,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:M},t(pt,[2,69]),t(pt,[2,70]),t(pt,[2,71]),t(pt,[2,72]),t(pt,[2,73]),t(pt,[2,74]),t(pt,[2,75]),t(pt,[2,76]),{22:116,70:M},{22:118,58:117,70:M},{70:[2,63]},{70:[2,64]},{56:119,79:ct},{56:121,79:ct},{56:122,79:ct},{56:123,79:ct},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:W,52:z,53:B},{5:[1,129]},t(m,[2,19]),t(m,[2,20]),t(m,[2,22]),t(m,[2,23]),{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,130],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,131],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,132],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{16:[1,133]},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[2,46],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,49:[1,134],50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{16:[1,135]},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[2,44],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,48:[1,136],50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{16:[1,137]},{16:[1,138]},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[2,42],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,47:[1,139],50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,140],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{15:[1,141]},t(m,[2,49]),{15:[1,142]},t(m,[2,51]),t(m,[2,52]),{22:143,70:M},{22:144,70:M},{56:145,79:ct},{56:146,79:ct},{56:147,79:ct},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(m,[2,16]),t(P,[2,10]),{12:149,50:W,52:z,53:B},t(P,[2,12]),t(P,[2,13]),t(m,[2,18]),t(m,[2,34]),t(m,[2,35]),t(m,[2,36]),t(m,[2,37]),{15:[1,150]},t(m,[2,38]),{15:[1,151]},t(m,[2,39]),t(m,[2,40]),{15:[1,152]},t(m,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ct},{56:156,79:ct},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:M},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(I,i,{7:103,42:159}),t(Ut,i,{7:106,45:160}),t(m,[2,48]),t(m,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(st,T){if(T.recoverable)this.trace(st);else{var _=new Error(st);throw _.hash=T,_}},parse:function(st){var T=this,_=[0],f=[],A=[null],d=[],U=this.table,p="",vt=0,jt=0,me=2,Kt=1,fe=d.slice.call(arguments,1),Y=Object.create(this.lexer),ht={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(ht.yy[St]=this.yy[St]);Y.setInput(st,ht.yy),ht.yy.lexer=Y,ht.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;d.push(Dt);var be=Y.options&&Y.options.ranges;typeof ht.yy.parseError=="function"?this.parseError=ht.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(){var dt;return dt=f.pop()||Y.lex()||Kt,typeof dt!="number"&&(dt instanceof Array&&(f=dt,dt=f.pop()),dt=T.symbols_[dt]||dt),dt}for(var j,gt,et,Rt,mt={},_t,lt,Xt,kt;;){if(gt=_[_.length-1],this.defaultActions[gt]?et=this.defaultActions[gt]:((j===null||typeof j>"u")&&(j=Te()),et=U[gt]&&U[gt][j]),typeof et>"u"||!et.length||!et[0]){var $t="";kt=[];for(_t in U[gt])this.terminals_[_t]&&_t>me&&kt.push("'"+this.terminals_[_t]+"'");Y.showPosition?$t="Parse error on line "+(vt+1)+`:
|
|
1
|
+
import{x as Ee,v as we,b as Zt,g as at,w as ve,j as _e,y as ke,P as Pt,O as K,f as Gt,V as Pe,R as Le,l as v,q as It,m as Ie,i as C,am as Et,an as nt,ad as te,ao as Me,n as ee,ak as Ct}from"./index-CV3ovvq1.js";import{x as Ne,g as qt,l as Ae,p as Mt,y as Oe,h as Se}from"./svgDrawCommon-b86b1483-BnVJ45aa-CErmScK_.js";var Yt=function(){var t=function(st,T,_,f){for(_=_||{},f=st.length;f--;_[st[f]]=T);return _},e=[1,2],c=[1,3],a=[1,4],i=[2,4],s=[1,9],l=[1,11],n=[1,13],h=[1,14],r=[1,16],u=[1,17],b=[1,18],g=[1,24],y=[1,25],w=[1,26],k=[1,27],L=[1,28],R=[1,29],N=[1,30],$=[1,31],O=[1,32],F=[1,33],q=[1,34],X=[1,35],G=[1,36],W=[1,37],z=[1,38],B=[1,39],V=[1,41],J=[1,42],H=[1,43],Q=[1,44],tt=[1,45],M=[1,46],m=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],Z=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],I=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Ut=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],pt=[68,69,70],ct=[1,120],At={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",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",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,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],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(st,T,_,f,A,d,U){var p=d.length-1;switch(A){case 3:return f.apply(d[p]),d[p];case 4:case 9:this.$=[];break;case 5:case 10:d[p-1].push(d[p]),this.$=d[p-1];break;case 6:case 7:case 11:case 12:this.$=d[p];break;case 8:case 13:this.$=[];break;case 15:d[p].type="createParticipant",this.$=d[p];break;case 16:d[p-1].unshift({type:"boxStart",boxData:f.parseBoxData(d[p-2])}),d[p-1].push({type:"boxEnd",boxText:d[p-2]}),this.$=d[p-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(d[p-2]),sequenceIndexStep:Number(d[p-1]),sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(d[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:f.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:d[p-1]};break;case 23:this.$={type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:d[p-1]};break;case 29:f.setDiagramTitle(d[p].substring(6)),this.$=d[p].substring(6);break;case 30:f.setDiagramTitle(d[p].substring(7)),this.$=d[p].substring(7);break;case 31:this.$=d[p].trim(),f.setAccTitle(this.$);break;case 32:case 33:this.$=d[p].trim(),f.setAccDescription(this.$);break;case 34:d[p-1].unshift({type:"loopStart",loopText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.LOOP_START}),d[p-1].push({type:"loopEnd",loopText:d[p-2],signalType:f.LINETYPE.LOOP_END}),this.$=d[p-1];break;case 35:d[p-1].unshift({type:"rectStart",color:f.parseMessage(d[p-2]),signalType:f.LINETYPE.RECT_START}),d[p-1].push({type:"rectEnd",color:f.parseMessage(d[p-2]),signalType:f.LINETYPE.RECT_END}),this.$=d[p-1];break;case 36:d[p-1].unshift({type:"optStart",optText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.OPT_START}),d[p-1].push({type:"optEnd",optText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.OPT_END}),this.$=d[p-1];break;case 37:d[p-1].unshift({type:"altStart",altText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.ALT_START}),d[p-1].push({type:"altEnd",signalType:f.LINETYPE.ALT_END}),this.$=d[p-1];break;case 38:d[p-1].unshift({type:"parStart",parText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.PAR_START}),d[p-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=d[p-1];break;case 39:d[p-1].unshift({type:"parStart",parText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.PAR_OVER_START}),d[p-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=d[p-1];break;case 40:d[p-1].unshift({type:"criticalStart",criticalText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.CRITICAL_START}),d[p-1].push({type:"criticalEnd",signalType:f.LINETYPE.CRITICAL_END}),this.$=d[p-1];break;case 41:d[p-1].unshift({type:"breakStart",breakText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.BREAK_START}),d[p-1].push({type:"breakEnd",optText:f.parseMessage(d[p-2]),signalType:f.LINETYPE.BREAK_END}),this.$=d[p-1];break;case 43:this.$=d[p-3].concat([{type:"option",optionText:f.parseMessage(d[p-1]),signalType:f.LINETYPE.CRITICAL_OPTION},d[p]]);break;case 45:this.$=d[p-3].concat([{type:"and",parText:f.parseMessage(d[p-1]),signalType:f.LINETYPE.PAR_AND},d[p]]);break;case 47:this.$=d[p-3].concat([{type:"else",altText:f.parseMessage(d[p-1]),signalType:f.LINETYPE.ALT_ELSE},d[p]]);break;case 48:d[p-3].draw="participant",d[p-3].type="addParticipant",d[p-3].description=f.parseMessage(d[p-1]),this.$=d[p-3];break;case 49:d[p-1].draw="participant",d[p-1].type="addParticipant",this.$=d[p-1];break;case 50:d[p-3].draw="actor",d[p-3].type="addParticipant",d[p-3].description=f.parseMessage(d[p-1]),this.$=d[p-3];break;case 51:d[p-1].draw="actor",d[p-1].type="addParticipant",this.$=d[p-1];break;case 52:d[p-1].type="destroyParticipant",this.$=d[p-1];break;case 53:this.$=[d[p-1],{type:"addNote",placement:d[p-2],actor:d[p-1].actor,text:d[p]}];break;case 54:d[p-2]=[].concat(d[p-1],d[p-1]).slice(0,2),d[p-2][0]=d[p-2][0].actor,d[p-2][1]=d[p-2][1].actor,this.$=[d[p-1],{type:"addNote",placement:f.PLACEMENT.OVER,actor:d[p-2].slice(0,2),text:d[p]}];break;case 55:this.$=[d[p-1],{type:"addLinks",actor:d[p-1].actor,text:d[p]}];break;case 56:this.$=[d[p-1],{type:"addALink",actor:d[p-1].actor,text:d[p]}];break;case 57:this.$=[d[p-1],{type:"addProperties",actor:d[p-1].actor,text:d[p]}];break;case 58:this.$=[d[p-1],{type:"addDetails",actor:d[p-1].actor,text:d[p]}];break;case 61:this.$=[d[p-2],d[p]];break;case 62:this.$=d[p];break;case 63:this.$=f.PLACEMENT.LEFTOF;break;case 64:this.$=f.PLACEMENT.RIGHTOF;break;case 65:this.$=[d[p-4],d[p-1],{type:"addMessage",from:d[p-4].actor,to:d[p-1].actor,signalType:d[p-3],msg:d[p],activate:!0},{type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:d[p-1]}];break;case 66:this.$=[d[p-4],d[p-1],{type:"addMessage",from:d[p-4].actor,to:d[p-1].actor,signalType:d[p-3],msg:d[p]},{type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:d[p-4]}];break;case 67:this.$=[d[p-3],d[p-1],{type:"addMessage",from:d[p-3].actor,to:d[p-1].actor,signalType:d[p-2],msg:d[p]}];break;case 68:this.$={type:"addParticipant",actor:d[p]};break;case 69:this.$=f.LINETYPE.SOLID_OPEN;break;case 70:this.$=f.LINETYPE.DOTTED_OPEN;break;case 71:this.$=f.LINETYPE.SOLID;break;case 72:this.$=f.LINETYPE.DOTTED;break;case 73:this.$=f.LINETYPE.SOLID_CROSS;break;case 74:this.$=f.LINETYPE.DOTTED_CROSS;break;case 75:this.$=f.LINETYPE.SOLID_POINT;break;case 76:this.$=f.LINETYPE.DOTTED_POINT;break;case 77:this.$=f.parseMessage(d[p].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:a},{1:[3]},{3:5,4:e,5:c,6:a},{3:6,4:e,5:c,6:a},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:l,8:8,9:10,12:12,13:n,14:h,17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},t(m,[2,5]),{9:47,12:12,13:n,14:h,17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},t(m,[2,7]),t(m,[2,8]),t(m,[2,14]),{12:48,50:W,52:z,53:B},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:M},{22:55,70:M},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(m,[2,29]),t(m,[2,30]),{32:[1,61]},{34:[1,62]},t(m,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:M},{22:72,70:M},{22:73,70:M},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:M},{22:88,70:M},{22:89,70:M},{22:90,70:M},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(m,[2,6]),t(m,[2,15]),t(P,[2,9],{10:91}),t(m,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(m,[2,21]),{5:[1,95]},{5:[1,96]},t(m,[2,24]),t(m,[2,25]),t(m,[2,26]),t(m,[2,27]),t(m,[2,28]),t(m,[2,31]),t(m,[2,32]),t(Z,i,{7:97}),t(Z,i,{7:98}),t(Z,i,{7:99}),t(rt,i,{40:100,7:101}),t(I,i,{42:102,7:103}),t(I,i,{7:103,42:104}),t(Ut,i,{45:105,7:106}),t(Z,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:M},t(pt,[2,69]),t(pt,[2,70]),t(pt,[2,71]),t(pt,[2,72]),t(pt,[2,73]),t(pt,[2,74]),t(pt,[2,75]),t(pt,[2,76]),{22:116,70:M},{22:118,58:117,70:M},{70:[2,63]},{70:[2,64]},{56:119,79:ct},{56:121,79:ct},{56:122,79:ct},{56:123,79:ct},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:W,52:z,53:B},{5:[1,129]},t(m,[2,19]),t(m,[2,20]),t(m,[2,22]),t(m,[2,23]),{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,130],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,131],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,132],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{16:[1,133]},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[2,46],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,49:[1,134],50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{16:[1,135]},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[2,44],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,48:[1,136],50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{16:[1,137]},{16:[1,138]},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[2,42],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,47:[1,139],50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{4:s,5:l,8:8,9:10,12:12,13:n,14:h,16:[1,140],17:15,18:r,21:u,22:40,23:b,24:19,25:20,26:21,27:22,28:23,29:g,30:y,31:w,33:k,35:L,36:R,37:N,38:$,39:O,41:F,43:q,44:X,46:G,50:W,52:z,53:B,54:V,59:J,60:H,61:Q,62:tt,70:M},{15:[1,141]},t(m,[2,49]),{15:[1,142]},t(m,[2,51]),t(m,[2,52]),{22:143,70:M},{22:144,70:M},{56:145,79:ct},{56:146,79:ct},{56:147,79:ct},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(m,[2,16]),t(P,[2,10]),{12:149,50:W,52:z,53:B},t(P,[2,12]),t(P,[2,13]),t(m,[2,18]),t(m,[2,34]),t(m,[2,35]),t(m,[2,36]),t(m,[2,37]),{15:[1,150]},t(m,[2,38]),{15:[1,151]},t(m,[2,39]),t(m,[2,40]),{15:[1,152]},t(m,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ct},{56:156,79:ct},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:M},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(I,i,{7:103,42:159}),t(Ut,i,{7:106,45:160}),t(m,[2,48]),t(m,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(st,T){if(T.recoverable)this.trace(st);else{var _=new Error(st);throw _.hash=T,_}},parse:function(st){var T=this,_=[0],f=[],A=[null],d=[],U=this.table,p="",vt=0,jt=0,me=2,Kt=1,fe=d.slice.call(arguments,1),Y=Object.create(this.lexer),ht={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(ht.yy[St]=this.yy[St]);Y.setInput(st,ht.yy),ht.yy.lexer=Y,ht.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;d.push(Dt);var be=Y.options&&Y.options.ranges;typeof ht.yy.parseError=="function"?this.parseError=ht.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Te(){var dt;return dt=f.pop()||Y.lex()||Kt,typeof dt!="number"&&(dt instanceof Array&&(f=dt,dt=f.pop()),dt=T.symbols_[dt]||dt),dt}for(var j,gt,et,Rt,mt={},_t,lt,Xt,kt;;){if(gt=_[_.length-1],this.defaultActions[gt]?et=this.defaultActions[gt]:((j===null||typeof j>"u")&&(j=Te()),et=U[gt]&&U[gt][j]),typeof et>"u"||!et.length||!et[0]){var $t="";kt=[];for(_t in U[gt])this.terminals_[_t]&&_t>me&&kt.push("'"+this.terminals_[_t]+"'");Y.showPosition?$t="Parse error on line "+(vt+1)+`:
|
|
2
2
|
`+Y.showPosition()+`
|
|
3
3
|
Expecting `+kt.join(", ")+", got '"+(this.terminals_[j]||j)+"'":$t="Parse error on line "+(vt+1)+": Unexpected "+(j==Kt?"end of input":"'"+(this.terminals_[j]||j)+"'"),this.parseError($t,{text:Y.match,token:this.terminals_[j]||j,line:Y.yylineno,loc:Dt,expected:kt})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+gt+", token: "+j);switch(et[0]){case 1:_.push(j),A.push(Y.yytext),d.push(Y.yylloc),_.push(et[1]),j=null,jt=Y.yyleng,p=Y.yytext,vt=Y.yylineno,Dt=Y.yylloc;break;case 2:if(lt=this.productions_[et[1]][1],mt.$=A[A.length-lt],mt._$={first_line:d[d.length-(lt||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(lt||1)].first_column,last_column:d[d.length-1].last_column},be&&(mt._$.range=[d[d.length-(lt||1)].range[0],d[d.length-1].range[1]]),Rt=this.performAction.apply(mt,[p,jt,vt,ht.yy,et[1],A,d].concat(fe)),typeof Rt<"u")return Rt;lt&&(_=_.slice(0,-1*lt*2),A=A.slice(0,-1*lt),d=d.slice(0,-1*lt)),_.push(this.productions_[et[1]][0]),A.push(mt.$),d.push(mt._$),Xt=U[_[_.length-2]][_[_.length-1]],_.push(Xt);break;case 3:return!0}}return!0}},ye=function(){var st={EOF:1,parseError:function(T,_){if(this.yy.parser)this.yy.parser.parseError(T,_);else throw new Error(T)},setInput:function(T,_){return this.yy=_||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},input:function(){var T=this._input[0];this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T;var _=T.match(/(?:\r\n?|\n).*/g);return _?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),T},unput:function(T){var _=T.length,f=T.split(/(?:\r\n?|\n)/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_),this.offset-=_;var A=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),f.length-1&&(this.yylineno-=f.length-1);var d=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:f?(f.length===A.length?this.yylloc.first_column:0)+A[A.length-f.length].length-f[0].length:this.yylloc.first_column-_},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-_]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(T){this.unput(this.match.slice(T))},pastInput:function(){var T=this.matched.substr(0,this.matched.length-this.match.length);return(T.length>20?"...":"")+T.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var T=this.pastInput(),_=new Array(T.length+1).join("-");return T+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as O,v as N,D as T}from"./styles-ca3715f6-FCD4s0nN-Cy3cKH3y.js";import{X as t,P as S,O as k,c as G,U as z,b as L,p as P,r as U}from"./index-BkwMgBH1.js";import{K as R}from"./graph-Bc6U-Oet-gn_NOzSF.js";import{A as I}from"./layout-BtHnec7v-DlBdTUOD.js";const C=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),W=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),X=(e,r)=>{const g=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(r.id),s=g.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),g},J=(e,r)=>{const g=function(o,u,B){const w=o.append("tspan").attr("x",2*t().state.padding).text(u);B||w.attr("dy",t().state.textHeight)},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(r.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");let l=!0,a=!0;r.descriptions.forEach(function(o){l||(g(h,o,a),a=!1),l=!1});const 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"),x=h.node().getBBox(),p=Math.max(x.width,s.width);return n.attr("x2",p+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",p+2*t().state.padding).attr("height",x.height+d+2*t().state.padding).attr("rx",t().state.radius),e},Y=(e,r,g)=>{const s=t().state.padding,d=2*t().state.padding,h=e.node().getBBox(),l=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(r.id),x=n.node().getBBox().width+d;let p=Math.max(x,l);p===l&&(p=p+d);let o;const u=e.node().getBBox();r.doc,o=a-s,x>l&&(o=(l-p)/2+s),Math.abs(a-u.x)<s&&x>l&&(o=a-(x-l)/2);const B=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",B).attr("class",g?"alt-composit":"composit").attr("width",p).attr("height",u.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),n.attr("x",o+s),x<=l&&n.attr("x",a+(p-d)/2-x/2+s),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",p).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",p).attr("height",u.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},j=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)),F=(e,r)=>{let g=t().state.forkWidth,s=t().state.forkHeight;if(r.parentId){let d=g;g=s,s=d}return e.append("rect").style("stroke","black").style("fill","black").attr("width",g).attr("height",s).attr("x",t().state.padding).attr("y",t().state.padding)},K=(e,r,g,s)=>{let d=0;const h=s.append("text");h.style("text-anchor","start"),h.attr("class","noteText");let l=e.replace(/\r\n/g,"<br/>");l=l.replace(/\n/g,"<br/>");const a=l.split(z.lineBreakRegex);let n=1.25*t().state.noteMargin;for(const x of a){const p=x.trim();if(p.length>0){const o=h.append("tspan");if(o.text(p),n===0){const u=o.node().getBBox();n+=u.height}d+=n,o.attr("x",r+t().state.noteMargin),o.attr("y",g+d+1.25*t().state.noteMargin)}}return{textWidth:h.node().getBBox().width,textHeight:d}},$=(e,r)=>{r.attr("class","state-note");const g=r.append("rect").attr("x",0).attr("y",t().state.padding),s=r.append("g"),{textWidth:d,textHeight:h}=K(e,0,0,s);return g.attr("height",h+2*t().state.noteMargin),g.attr("width",d+t().state.noteMargin*2),g},H=function(e,r){const g=r.id,s={id:g,label:r.id,width:0,height:0},d=e.append("g").attr("id",g).attr("class","stateGroup");r.type==="start"&&C(d),r.type==="end"&&j(d),(r.type==="fork"||r.type==="join")&&F(d,r),r.type==="note"&&$(r.note.text,d),r.type==="divider"&&W(d),r.type==="default"&&r.descriptions.length===0&&X(d,r),r.type==="default"&&r.descriptions.length>0&&J(d,r);const h=d.node().getBBox();return s.width=h.width+2*t().state.padding,s.height=h.height+2*t().state.padding,s};let A=0;const q=function(e,r,g){const s=function(n){switch(n){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};r.points=r.points.filter(n=>!Number.isNaN(n.y));const d=r.points,h=L().x(function(n){return n.x}).y(function(n){return n.y}).curve(P),l=e.append("path").attr("d",h(d)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),l.attr("marker-end","url("+a+"#"+s(N.relationType.DEPENDENCY)+"End)"),g.title!==void 0){const n=e.append("g").attr("class","stateLabel"),{x,y:p}=U.calcLabelPosition(r.points),o=z.getRows(g.title);let u=0;const B=[];let w=0,M=0;for(let f=0;f<=o.length;f++){const c=n.append("text").attr("text-anchor","middle").text(o[f]).attr("x",x).attr("y",p+u),y=c.node().getBBox();w=Math.max(w,y.width),M=Math.min(M,y.x),k.info(y.x,x,p+u),u===0&&(u=c.node().getBBox().height,k.info("Title height",u,p)),B.push(c)}let E=u*o.length;if(o.length>1){const f=(o.length-1)*u*.5;B.forEach((c,y)=>c.attr("y",p+y*u-f)),E=u*o.length}const i=n.node().getBBox();n.insert("rect",":first-child").attr("class","box").attr("x",x-w/2-t().state.padding/2).attr("y",p-E/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",E+t().state.padding),k.info(i)}A++};let m;const v={},Z=function(){},Q=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")},V=function(e,r,g,s){m=t().state;const d=t().securityLevel;let h;d==="sandbox"&&(h=S("#i"+r));const l=d==="sandbox"?S(h.nodes()[0].contentDocument.body):S("body"),a=d==="sandbox"?h.nodes()[0].contentDocument:document;k.debug("Rendering diagram "+e);const n=l.select(`[id='${r}']`);Q(n);const x=s.db.getRootDoc();D(x,n,void 0,!1,l,a,s);const p=m.padding,o=n.node().getBBox(),u=o.width+p*2,B=o.height+p*2,w=u*1.75;G(n,B,w,m.useMaxWidth),n.attr("viewBox",`${o.x-m.padding} ${o.y-m.padding} `+u+" "+B)},_=e=>e?e.length*m.fontSizeFactor:1,D=(e,r,g,s,d,h,l)=>{const a=new R({compound:!0,multigraph:!0});let n,x=!0;for(n=0;n<e.length;n++)if(e[n].stmt==="relation"){x=!1;break}g?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:x?1:m.edgeLengthFactor,nodeSep:x?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:x?1:m.edgeLengthFactor,nodeSep:x?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}}),l.db.extract(e);const p=l.db.getStates(),o=l.db.getRelations(),u=Object.keys(p);for(const i of u){const f=p[i];g&&(f.parentId=g);let c;if(f.doc){let y=r.append("g").attr("id",f.id).attr("class","stateGroup");c=D(f.doc,y,f.id,!s,d,h,l);{y=Y(y,f,s);let b=y.node().getBBox();c.width=b.width,c.height=b.height+m.padding/2,v[f.id]={y:m.compositTitleSize}}}else c=H(r,f);if(f.note){const y={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},b=H(r,y);f.note.position==="left of"?(a.setNode(c.id+"-note",b),a.setNode(c.id,c)):(a.setNode(c.id,c),a.setNode(c.id+"-note",b)),a.setParent(c.id,c.id+"-group"),a.setParent(c.id+"-note",c.id+"-group")}else a.setNode(c.id,c)}k.debug("Count=",a.nodeCount(),a);let B=0;o.forEach(function(i){B++,k.debug("Setting edge",i),a.setEdge(i.id1,i.id2,{relation:i,width:_(i.title),height:m.labelHeight*z.getRows(i.title).length,labelpos:"c"},"id"+B)}),I(a),k.debug("Graph after layout",a.nodes());const w=r.node();a.nodes().forEach(function(i){i!==void 0&&a.node(i)!==void 0?(k.warn("Node "+i+": "+JSON.stringify(a.node(i))),d.select("#"+w.id+" #"+i).attr("transform","translate("+(a.node(i).x-a.node(i).width/2)+","+(a.node(i).y+(v[i]?v[i].y:0)-a.node(i).height/2)+" )"),d.select("#"+w.id+" #"+i).attr("data-x-shift",a.node(i).x-a.node(i).width/2),h.querySelectorAll("#"+w.id+" #"+i+" .divider").forEach(f=>{const c=f.parentElement;let y=0,b=0;c&&(c.parentElement&&(y=c.parentElement.getBBox().width),b=parseInt(c.getAttribute("data-x-shift"),10),Number.isNaN(b)&&(b=0)),f.setAttribute("x1",0-b+8),f.setAttribute("x2",y-b-8)})):k.debug("No Node "+i+": "+JSON.stringify(a.node(i)))});let M=w.getBBox();a.edges().forEach(function(i){i!==void 0&&a.edge(i)!==void 0&&(k.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(a.edge(i))),q(r,a.edge(i),a.edge(i).relation))}),M=w.getBBox();const E={id:g||"root",label:g||"root",width:0,height:0};return E.width=M.width+2*m.padding,E.height=M.height+2*m.padding,k.debug("Doc rendered",E,a),E},tt={setConf:Z,draw:V},dt={parser:T,db:N,renderer:tt,styles:O,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{dt as diagram};
|
|
1
|
+
import{A as O,v as N,D as T}from"./styles-ca3715f6-g0iC1zjD-CPChcZri.js";import{g as t,P as S,O as k,V as G,l as z,c as L,o as P,i as U}from"./index-CV3ovvq1.js";import{K as I}from"./graph-CvRY9YIM-BVZjlKfa.js";import{A as R}from"./layout-DSZZaifl-B9Eg6v4O.js";const C=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),F=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),W=(e,r)=>{const g=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(r.id),s=g.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),g},J=(e,r)=>{const g=function(o,u,B){const w=o.append("tspan").attr("x",2*t().state.padding).text(u);B||w.attr("dy",t().state.textHeight)},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(r.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");let l=!0,a=!0;r.descriptions.forEach(function(o){l||(g(h,o,a),a=!1),l=!1});const 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"),x=h.node().getBBox(),p=Math.max(x.width,s.width);return n.attr("x2",p+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",p+2*t().state.padding).attr("height",x.height+d+2*t().state.padding).attr("rx",t().state.radius),e},Y=(e,r,g)=>{const s=t().state.padding,d=2*t().state.padding,h=e.node().getBBox(),l=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(r.id),x=n.node().getBBox().width+d;let p=Math.max(x,l);p===l&&(p=p+d);let o;const u=e.node().getBBox();r.doc,o=a-s,x>l&&(o=(l-p)/2+s),Math.abs(a-u.x)<s&&x>l&&(o=a-(x-l)/2);const B=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",B).attr("class",g?"alt-composit":"composit").attr("width",p).attr("height",u.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),n.attr("x",o+s),x<=l&&n.attr("x",a+(p-d)/2-x/2+s),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",p).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",p).attr("height",u.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},j=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)),K=(e,r)=>{let g=t().state.forkWidth,s=t().state.forkHeight;if(r.parentId){let d=g;g=s,s=d}return e.append("rect").style("stroke","black").style("fill","black").attr("width",g).attr("height",s).attr("x",t().state.padding).attr("y",t().state.padding)},V=(e,r,g,s)=>{let d=0;const h=s.append("text");h.style("text-anchor","start"),h.attr("class","noteText");let l=e.replace(/\r\n/g,"<br/>");l=l.replace(/\n/g,"<br/>");const a=l.split(z.lineBreakRegex);let n=1.25*t().state.noteMargin;for(const x of a){const p=x.trim();if(p.length>0){const o=h.append("tspan");if(o.text(p),n===0){const u=o.node().getBBox();n+=u.height}d+=n,o.attr("x",r+t().state.noteMargin),o.attr("y",g+d+1.25*t().state.noteMargin)}}return{textWidth:h.node().getBBox().width,textHeight:d}},X=(e,r)=>{r.attr("class","state-note");const g=r.append("rect").attr("x",0).attr("y",t().state.padding),s=r.append("g"),{textWidth:d,textHeight:h}=V(e,0,0,s);return g.attr("height",h+2*t().state.noteMargin),g.attr("width",d+t().state.noteMargin*2),g},H=function(e,r){const g=r.id,s={id:g,label:r.id,width:0,height:0},d=e.append("g").attr("id",g).attr("class","stateGroup");r.type==="start"&&C(d),r.type==="end"&&j(d),(r.type==="fork"||r.type==="join")&&K(d,r),r.type==="note"&&X(r.note.text,d),r.type==="divider"&&F(d),r.type==="default"&&r.descriptions.length===0&&W(d,r),r.type==="default"&&r.descriptions.length>0&&J(d,r);const h=d.node().getBBox();return s.width=h.width+2*t().state.padding,s.height=h.height+2*t().state.padding,s};let A=0;const $=function(e,r,g){const s=function(n){switch(n){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};r.points=r.points.filter(n=>!Number.isNaN(n.y));const d=r.points,h=L().x(function(n){return n.x}).y(function(n){return n.y}).curve(P),l=e.append("path").attr("d",h(d)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),l.attr("marker-end","url("+a+"#"+s(N.relationType.DEPENDENCY)+"End)"),g.title!==void 0){const n=e.append("g").attr("class","stateLabel"),{x,y:p}=U.calcLabelPosition(r.points),o=z.getRows(g.title);let u=0;const B=[];let w=0,M=0;for(let f=0;f<=o.length;f++){const c=n.append("text").attr("text-anchor","middle").text(o[f]).attr("x",x).attr("y",p+u),y=c.node().getBBox();w=Math.max(w,y.width),M=Math.min(M,y.x),k.info(y.x,x,p+u),u===0&&(u=c.node().getBBox().height,k.info("Title height",u,p)),B.push(c)}let E=u*o.length;if(o.length>1){const f=(o.length-1)*u*.5;B.forEach((c,y)=>c.attr("y",p+y*u-f)),E=u*o.length}const i=n.node().getBBox();n.insert("rect",":first-child").attr("class","box").attr("x",x-w/2-t().state.padding/2).attr("y",p-E/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",E+t().state.padding),k.info(i)}A++};let m;const v={},q=function(){},Z=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")},Q=function(e,r,g,s){m=t().state;const d=t().securityLevel;let h;d==="sandbox"&&(h=S("#i"+r));const l=d==="sandbox"?S(h.nodes()[0].contentDocument.body):S("body"),a=d==="sandbox"?h.nodes()[0].contentDocument:document;k.debug("Rendering diagram "+e);const n=l.select(`[id='${r}']`);Z(n);const x=s.db.getRootDoc();D(x,n,void 0,!1,l,a,s);const p=m.padding,o=n.node().getBBox(),u=o.width+p*2,B=o.height+p*2,w=u*1.75;G(n,B,w,m.useMaxWidth),n.attr("viewBox",`${o.x-m.padding} ${o.y-m.padding} `+u+" "+B)},_=e=>e?e.length*m.fontSizeFactor:1,D=(e,r,g,s,d,h,l)=>{const a=new I({compound:!0,multigraph:!0});let n,x=!0;for(n=0;n<e.length;n++)if(e[n].stmt==="relation"){x=!1;break}g?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:x?1:m.edgeLengthFactor,nodeSep:x?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:x?1:m.edgeLengthFactor,nodeSep:x?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}}),l.db.extract(e);const p=l.db.getStates(),o=l.db.getRelations(),u=Object.keys(p);for(const i of u){const f=p[i];g&&(f.parentId=g);let c;if(f.doc){let y=r.append("g").attr("id",f.id).attr("class","stateGroup");c=D(f.doc,y,f.id,!s,d,h,l);{y=Y(y,f,s);let b=y.node().getBBox();c.width=b.width,c.height=b.height+m.padding/2,v[f.id]={y:m.compositTitleSize}}}else c=H(r,f);if(f.note){const y={descriptions:[],id:f.id+"-note",note:f.note,type:"note"},b=H(r,y);f.note.position==="left of"?(a.setNode(c.id+"-note",b),a.setNode(c.id,c)):(a.setNode(c.id,c),a.setNode(c.id+"-note",b)),a.setParent(c.id,c.id+"-group"),a.setParent(c.id+"-note",c.id+"-group")}else a.setNode(c.id,c)}k.debug("Count=",a.nodeCount(),a);let B=0;o.forEach(function(i){B++,k.debug("Setting edge",i),a.setEdge(i.id1,i.id2,{relation:i,width:_(i.title),height:m.labelHeight*z.getRows(i.title).length,labelpos:"c"},"id"+B)}),R(a),k.debug("Graph after layout",a.nodes());const w=r.node();a.nodes().forEach(function(i){i!==void 0&&a.node(i)!==void 0?(k.warn("Node "+i+": "+JSON.stringify(a.node(i))),d.select("#"+w.id+" #"+i).attr("transform","translate("+(a.node(i).x-a.node(i).width/2)+","+(a.node(i).y+(v[i]?v[i].y:0)-a.node(i).height/2)+" )"),d.select("#"+w.id+" #"+i).attr("data-x-shift",a.node(i).x-a.node(i).width/2),h.querySelectorAll("#"+w.id+" #"+i+" .divider").forEach(f=>{const c=f.parentElement;let y=0,b=0;c&&(c.parentElement&&(y=c.parentElement.getBBox().width),b=parseInt(c.getAttribute("data-x-shift"),10),Number.isNaN(b)&&(b=0)),f.setAttribute("x1",0-b+8),f.setAttribute("x2",y-b-8)})):k.debug("No Node "+i+": "+JSON.stringify(a.node(i)))});let M=w.getBBox();a.edges().forEach(function(i){i!==void 0&&a.edge(i)!==void 0&&(k.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(a.edge(i))),$(r,a.edge(i),a.edge(i).relation))}),M=w.getBBox();const E={id:g||"root",label:g||"root",width:0,height:0};return E.width=M.width+2*m.padding,E.height=M.height+2*m.padding,k.debug("Doc rendered",E,a),E},tt={setConf:q,draw:Q},dt={parser:T,db:N,renderer:tt,styles:O,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{dt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as Y,v as _,D as F,C as H,E as I,t as Q,I as X,_ as Z}from"./styles-ca3715f6-g0iC1zjD-CPChcZri.js";import{K as tt}from"./graph-CvRY9YIM-BVZjlKfa.js";import{O as p,g as S,P as A,i as et,V as st,l as B}from"./index-CV3ovvq1.js";import{b as ot}from"./index-5325376f-D7k5u-pg-D5Cux9AW.js";import"./layout-DSZZaifl-B9Eg6v4O.js";import"./clone-C0MdfhAf-_B1M49Tw.js";import"./edges-96097737-BnGLzlID--RpsQPpU.js";import"./createText-1719965b-D5GExXUl-CSo0puOR.js";const w="rect",k="rectWithTitle",at="start",it="end",rt="divider",nt="roundedWithTitle",dt="note",lt="noteGroup",h="statediagram",ct="state",pt=`${h}-${ct}`,L="transition",bt="note",gt="note-edge",ut=`${L} ${gt}`,ht=`${h}-${bt}`,yt="cluster",ft=`${h}-${yt}`,$t="cluster-alt",mt=`${h}-${$t}`,M="parent",W="note",xt="state",V="----",wt=`${V}${W}`,z=`${V}${M}`,j="fill:none",G="fill: #333",K="c",q="text",J="normal";let T={},c=0;const Tt=function(t){const a=Object.keys(t);for(const e of a)t[e]},St=function(t,a){return a.db.extract(a.db.getRootDocV2()),a.db.getClasses()};function Dt(t){return t==null?"":t.classes?t.classes.join(" "):""}function v(t="",a=0,e="",i=V){const r=e!==null&&e.length>0?`${i}${e}`:"";return`${xt}-${t}${r}-${a}`}const x=(t,a,e,i,r,n)=>{const s=e.id,y=Dt(i[s]);if(s!=="root"){let g=w;e.start===!0&&(g=at),e.start===!1&&(g=it),e.type!==I&&(g=e.type),T[s]||(T[s]={id:s,shape:g,description:B.sanitizeText(s,S()),classes:`${y} ${pt}`});const o=T[s];e.description&&(Array.isArray(o.description)?(o.shape=k,o.description.push(e.description)):o.description.length>0?(o.shape=k,o.description===s?o.description=[e.description]:o.description=[o.description,e.description]):(o.shape=w,o.description=e.description),o.description=B.sanitizeTextOrArray(o.description,S())),o.description.length===1&&o.shape===k&&(o.shape=w),!o.type&&e.doc&&(p.info("Setting cluster for ",s,E(e)),o.type="group",o.dir=E(e),o.shape=e.type===Q?rt:nt,o.classes=o.classes+" "+ft+" "+(n?mt:""));const u={labelStyle:"",shape:o.shape,labelText:o.description,classes:o.classes,style:"",id:s,dir:o.dir,domId:v(s,c),type:o.type,padding:15};if(u.centerLabel=!0,e.note){const d={labelStyle:"",shape:dt,labelText:e.note.text,classes:ht,style:"",id:s+wt+"-"+c,domId:v(s,c,W),type:o.type,padding:15},l={labelStyle:"",shape:lt,labelText:e.note.text,classes:o.classes,style:"",id:s+z,domId:v(s,c,M),type:"group",padding:0};c++;const f=s+z;t.setNode(f,l),t.setNode(d.id,d),t.setNode(s,u),t.setParent(s,f),t.setParent(d.id,f);let b=s,$=d.id;e.note.position==="left of"&&(b=d.id,$=s),t.setEdge(b,$,{arrowhead:"none",arrowType:"",style:j,labelStyle:"",classes:ut,arrowheadStyle:G,labelpos:K,labelType:q,thickness:J})}else t.setNode(s,u)}a&&a.id!=="root"&&(p.trace("Setting node ",s," to be child of its parent ",a.id),t.setParent(s,a.id)),e.doc&&(p.trace("Adding nodes children "),At(t,e,e.doc,i,r,!n))},At=(t,a,e,i,r,n)=>{p.trace("items",e),e.forEach(s=>{switch(s.stmt){case Z:x(t,a,s,i,r,n);break;case I:x(t,a,s,i,r,n);break;case X:{x(t,a,s.state1,i,r,n),x(t,a,s.state2,i,r,n);const y={id:"edge"+c,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:j,labelStyle:"",label:B.sanitizeText(s.description,S()),arrowheadStyle:G,labelpos:K,labelType:q,thickness:J,classes:L};t.setEdge(s.state1.id,s.state2.id,y,c),c++}break}})},E=(t,a=H)=>{let e=a;if(t.doc)for(let i=0;i<t.doc.length;i++){const r=t.doc[i];r.stmt==="dir"&&(e=r.value)}return e},kt=async function(t,a,e,i){p.info("Drawing state diagram (v2)",a),T={},i.db.getDirection();const{securityLevel:r,state:n}=S(),s=n.nodeSpacing||50,y=n.rankSpacing||50;p.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),p.info(i.db.getRootDocV2());const g=i.db.getStates(),o=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:E(i.db.getRootDocV2()),nodesep:s,ranksep:y,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});x(o,void 0,i.db.getRootDocV2(),g,i.db,!0);let u;r==="sandbox"&&(u=A("#i"+a));const d=r==="sandbox"?A(u.nodes()[0].contentDocument.body):A("body"),l=d.select(`[id="${a}"]`),f=d.select("#"+a+" g");await ot(f,o,["barb"],h,a);const b=8;et.insertTitle(l,"statediagramTitleText",n.titleTopMargin,i.db.getDiagramTitle());const $=l.node().getBBox(),C=$.width+b*2,R=$.height+b*2;l.attr("class",h);const N=l.node().getBBox();st(l,R,C,n.useMaxWidth);const O=`${N.x-b} ${N.y-b} ${C} ${R}`;p.debug(`viewBox ${O}`),l.attr("viewBox",O);const U=document.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const D of U){const P=D.getBBox(),m=document.createElementNS("http://www.w3.org/2000/svg",w);m.setAttribute("rx",0),m.setAttribute("ry",0),m.setAttribute("width",P.width),m.setAttribute("height",P.height),D.insertBefore(m,D.firstChild)}},vt={setConf:Tt,getClasses:St,draw:kt},_t={parser:F,db:_,renderer:vt,styles:Y,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,_.clear()}};export{_t as diagram};
|
package/dist/assets/{styles-b4e223ce-CPkoRhK8-CgAfNf4E.js → styles-b4e223ce-BOk_k5Y1-PKPDqdqx.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{u as ut,l as nt,X as g,o as rt,s as at,i as lt,a as ot,U as L,r as qe,O as ct,n as ht,M as At,q as Ie,P as G}from"./index-BkwMgBH1.js";var xe=function(){var e=function(S,n,o,i){for(o=o||{},i=S.length;i--;o[S[i]]=n);return o},u=[1,17],r=[1,18],a=[1,19],c=[1,39],p=[1,40],m=[1,25],B=[1,23],D=[1,24],Ae=[1,31],pe=[1,32],de=[1,33],ye=[1,34],Ee=[1,35],fe=[1,36],Ce=[1,26],me=[1,27],be=[1,28],ke=[1,29],d=[1,43],Fe=[1,30],y=[1,42],E=[1,44],f=[1,41],b=[1,45],ge=[1,9],l=[1,8,9],z=[1,56],K=[1,57],Y=[1,58],X=[1,59],j=[1,60],Te=[1,61],Be=[1,62],Q=[1,8,9,39],Me=[1,74],P=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],H=[13,74,80,95,97,98],M=[13,64,65,74,80,95,97,98],Ge=[13,59,60,61,62,63,74,80,95,97,98],De=[1,93],W=[1,110],J=[1,108],V=[1,102],Z=[1,103],ee=[1,104],te=[1,105],se=[1,106],ie=[1,107],ue=[1,109],_e=[1,8,9,37,39,42],ne=[1,8,9,21],Ue=[1,8,9,78],_=[1,8,9,21,73,74,78,80,81,82,83,84,85],Se={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(S,n,o,i,h,t,k){var s=t.length-1;switch(h){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:i.addRelation(t[s]);break;case 17:t[s-1].title=i.cleanupLabel(t[s]),i.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),i.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),i.setAccDescription(this.$);break;case 30:i.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:i.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],i.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:i.setCssClass(t[s-2],t[s]);break;case 38:i.addMembers(t[s-3],t[s-1]);break;case 39:i.setCssClass(t[s-5],t[s-3]),i.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],i.addClass(t[s]);break;case 41:this.$=t[s-1],i.addClass(t[s-1]),i.setClassLabel(t[s-1],t[s]);break;case 42:i.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:i.addMember(t[s-1],i.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:i.addNote(t[s],t[s-1]);break;case 54:i.addNote(t[s]);break;case 55:i.setDirection("TB");break;case 56:i.setDirection("BT");break;case 57:i.setDirection("RL");break;case 58:i.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=i.relationType.AGGREGATION;break;case 64:this.$=i.relationType.EXTENSION;break;case 65:this.$=i.relationType.COMPOSITION;break;case 66:this.$=i.relationType.DEPENDENCY;break;case 67:this.$=i.relationType.LOLLIPOP;break;case 68:this.$=i.lineType.LINE;break;case 69:this.$=i.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],i.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],i.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],i.setLink(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],i.setLink(t[s-3],t[s-2],t[s]),i.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],i.setClickEvent(t[s-3],t[s-2],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],i.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],i.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],i.setLink(t[s-3],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],i.setLink(t[s-4],t[s-2],t[s]),i.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],i.setCssStyle(t[s-1],t[s]);break;case 85:i.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:u,33:r,35:a,36:21,40:c,41:22,44:p,45:m,47:B,48:D,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ge,[2,5],{8:[1,46]}),{8:[1,47]},e(l,[2,16],{21:[1,48]}),e(l,[2,18]),e(l,[2,19]),e(l,[2,20]),e(l,[2,21]),e(l,[2,22]),e(l,[2,23]),e(l,[2,24]),e(l,[2,25]),e(l,[2,26]),{32:[1,49]},{34:[1,50]},e(l,[2,29]),e(l,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:z,60:K,61:Y,62:X,63:j,64:Te,65:Be}),{37:[1,63]},e(Q,[2,36],{37:[1,65],42:[1,64]}),e(l,[2,47]),e(l,[2,48]),{16:66,74:d,80:y,95:E,97:f},{16:37,17:67,18:38,74:d,80:y,95:E,97:f,98:b},{16:37,17:68,18:38,74:d,80:y,95:E,97:f,98:b},{16:37,17:69,18:38,74:d,80:y,95:E,97:f,98:b},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:y,95:E,97:f,98:b},{13:Me,51:73},e(l,[2,55]),e(l,[2,56]),e(l,[2,57]),e(l,[2,58]),e(P,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:y,95:E,97:f,98:b}),e(P,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:y,95:E,97:f},{16:37,17:80,18:38,74:d,80:y,95:E,97:f,98:b},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ge,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:u,33:r,35:a,40:c,44:p,45:m,47:B,48:D,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:u,33:r,35:a,36:21,40:c,41:22,44:p,45:m,47:B,48:D,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b},e(l,[2,17]),e(l,[2,27]),e(l,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:y,95:E,97:f,98:b},{49:85,57:54,58:55,59:z,60:K,61:Y,62:X,63:j,64:Te,65:Be},e(l,[2,46]),{58:86,64:Te,65:Be},e(H,[2,62],{57:87,59:z,60:K,61:Y,62:X,63:j}),e(M,[2,63]),e(M,[2,64]),e(M,[2,65]),e(M,[2,66]),e(M,[2,67]),e(Ge,[2,68]),e(Ge,[2,69]),{8:[1,89],23:90,38:88,41:22,44:p},{16:91,74:d,80:y,95:E,97:f},{43:92,47:De},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:W,73:J,74:V,75:99,77:100,79:101,80:Z,81:ee,82:te,83:se,84:ie,85:ue},{74:[1,111]},{13:Me,51:112},e(l,[2,54]),e(l,[2,117]),e(P,[2,13]),e(P,[2,14]),e(P,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:y,95:E,97:f},e(_e,[2,40],{11:114,12:[1,115]}),e(ge,[2,7]),{9:[1,116]},e(ne,[2,49]),{16:37,17:117,18:38,74:d,80:y,95:E,97:f,98:b},{13:[1,119],16:37,17:118,18:38,74:d,80:y,95:E,97:f,98:b},e(H,[2,61],{57:120,59:z,60:K,61:Y,62:X,63:j}),e(H,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:p},{8:[1,123],39:[2,33]},e(Q,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:De},{16:37,17:127,18:38,74:d,80:y,95:E,97:f,98:b},e(l,[2,70],{13:[1,128]}),e(l,[2,72],{13:[1,130],68:[1,129]}),e(l,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(l,[2,84],{78:[1,134]}),e(Ue,[2,86],{79:135,21:W,73:J,74:V,80:Z,81:ee,82:te,83:se,84:ie,85:ue}),e(_,[2,88]),e(_,[2,90]),e(_,[2,91]),e(_,[2,92]),e(_,[2,93]),e(_,[2,94]),e(_,[2,95]),e(_,[2,96]),e(_,[2,97]),e(_,[2,98]),e(l,[2,85]),e(l,[2,53]),{37:[2,10]},e(_e,[2,41]),{13:[1,136]},{1:[2,4]},e(ne,[2,51]),e(ne,[2,50]),{16:37,17:137,18:38,74:d,80:y,95:E,97:f,98:b},e(H,[2,59]),e(l,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:p},{43:140,47:De},e(Q,[2,38]),{39:[2,44]},e(l,[2,42]),e(l,[2,71]),e(l,[2,73]),e(l,[2,74],{68:[1,141]}),e(l,[2,77]),e(l,[2,78],{13:[1,142]}),e(l,[2,80],{13:[1,144],68:[1,143]}),{21:W,73:J,74:V,77:145,79:101,80:Z,81:ee,82:te,83:se,84:ie,85:ue},e(_,[2,89]),{14:[1,146]},e(ne,[2,52]),e(l,[2,31]),{39:[2,35]},{39:[1,147]},e(l,[2,75]),e(l,[2,79]),e(l,[2,81]),e(l,[2,82],{68:[1,148]}),e(Ue,[2,87],{79:135,21:W,73:J,74:V,80:Z,81:ee,82:te,83:se,84:ie,85:ue}),e(_e,[2,8]),e(Q,[2,39]),e(l,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(S,n){if(n.recoverable)this.trace(S);else{var o=new Error(S);throw o.hash=n,o}},parse:function(S){var n=this,o=[0],i=[],h=[null],t=[],k=this.table,s="",re=0,ze=0,et=2,Ke=1,tt=t.slice.call(arguments,1),C=Object.create(this.lexer),v={yy:{}};for(var $e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$e)&&(v.yy[$e]=this.yy[$e]);C.setInput(S,v.yy),v.yy.lexer=C,v.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var Le=C.yylloc;t.push(Le);var st=C.options&&C.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var $;return $=i.pop()||C.lex()||Ke,typeof $!="number"&&($ instanceof Array&&(i=$,$=i.pop()),$=n.symbols_[$]||$),$}for(var F,I,T,Oe,w={},ae,N,Ye,le;;){if(I=o[o.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((F===null||typeof F>"u")&&(F=it()),T=k[I]&&k[I][F]),typeof T>"u"||!T.length||!T[0]){var ve="";le=[];for(ae in k[I])this.terminals_[ae]&&ae>et&&le.push("'"+this.terminals_[ae]+"'");C.showPosition?ve="Parse error on line "+(re+1)+`:
|
|
1
|
+
import{j as ut,w as nt,g as F,v as rt,x as at,y as lt,b as ot,l as L,i as We,O as ct,m as ht,q as At,W as xe,P as G}from"./index-CV3ovvq1.js";var Ie=function(){var e=function(S,n,o,i){for(o=o||{},i=S.length;i--;o[S[i]]=n);return o},u=[1,17],r=[1,18],a=[1,19],c=[1,39],p=[1,40],m=[1,25],B=[1,23],D=[1,24],Ae=[1,31],pe=[1,32],de=[1,33],ye=[1,34],Ee=[1,35],fe=[1,36],Ce=[1,26],me=[1,27],be=[1,28],ke=[1,29],d=[1,43],ge=[1,30],y=[1,42],E=[1,44],f=[1,41],b=[1,45],Fe=[1,9],l=[1,8,9],z=[1,56],K=[1,57],Y=[1,58],j=[1,59],Q=[1,60],Te=[1,61],Be=[1,62],X=[1,8,9,39],Me=[1,74],P=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],W=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],q=[13,74,80,95,97,98],M=[13,64,65,74,80,95,97,98],Ge=[13,59,60,61,62,63,74,80,95,97,98],De=[1,93],H=[1,110],J=[1,108],V=[1,102],Z=[1,103],ee=[1,104],te=[1,105],se=[1,106],ie=[1,107],ue=[1,109],_e=[1,8,9,37,39,42],ne=[1,8,9,21],Ue=[1,8,9,78],_=[1,8,9,21,73,74,78,80,81,82,83,84,85],Se={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(S,n,o,i,h,t,k){var s=t.length-1;switch(h){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:i.addRelation(t[s]);break;case 17:t[s-1].title=i.cleanupLabel(t[s]),i.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),i.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),i.setAccDescription(this.$);break;case 30:i.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:i.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],i.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:i.setCssClass(t[s-2],t[s]);break;case 38:i.addMembers(t[s-3],t[s-1]);break;case 39:i.setCssClass(t[s-5],t[s-3]),i.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],i.addClass(t[s]);break;case 41:this.$=t[s-1],i.addClass(t[s-1]),i.setClassLabel(t[s-1],t[s]);break;case 42:i.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:i.addMember(t[s-1],i.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:i.addNote(t[s],t[s-1]);break;case 54:i.addNote(t[s]);break;case 55:i.setDirection("TB");break;case 56:i.setDirection("BT");break;case 57:i.setDirection("RL");break;case 58:i.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=i.relationType.AGGREGATION;break;case 64:this.$=i.relationType.EXTENSION;break;case 65:this.$=i.relationType.COMPOSITION;break;case 66:this.$=i.relationType.DEPENDENCY;break;case 67:this.$=i.relationType.LOLLIPOP;break;case 68:this.$=i.lineType.LINE;break;case 69:this.$=i.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],i.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],i.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],i.setLink(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],i.setLink(t[s-3],t[s-2],t[s]),i.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],i.setClickEvent(t[s-3],t[s-2],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],i.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],i.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],i.setLink(t[s-3],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],i.setLink(t[s-4],t[s-2],t[s]),i.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],i.setCssStyle(t[s-1],t[s]);break;case 85:i.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:u,33:r,35:a,36:21,40:c,41:22,44:p,45:m,47:B,48:D,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:ge,80:y,95:E,97:f,98:b},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(Fe,[2,5],{8:[1,46]}),{8:[1,47]},e(l,[2,16],{21:[1,48]}),e(l,[2,18]),e(l,[2,19]),e(l,[2,20]),e(l,[2,21]),e(l,[2,22]),e(l,[2,23]),e(l,[2,24]),e(l,[2,25]),e(l,[2,26]),{32:[1,49]},{34:[1,50]},e(l,[2,29]),e(l,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:z,60:K,61:Y,62:j,63:Q,64:Te,65:Be}),{37:[1,63]},e(X,[2,36],{37:[1,65],42:[1,64]}),e(l,[2,47]),e(l,[2,48]),{16:66,74:d,80:y,95:E,97:f},{16:37,17:67,18:38,74:d,80:y,95:E,97:f,98:b},{16:37,17:68,18:38,74:d,80:y,95:E,97:f,98:b},{16:37,17:69,18:38,74:d,80:y,95:E,97:f,98:b},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:y,95:E,97:f,98:b},{13:Me,51:73},e(l,[2,55]),e(l,[2,56]),e(l,[2,57]),e(l,[2,58]),e(P,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:y,95:E,97:f,98:b}),e(P,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:y,95:E,97:f},{16:37,17:80,18:38,74:d,80:y,95:E,97:f,98:b},e(W,[2,112]),e(W,[2,113]),e(W,[2,114]),e(W,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(Fe,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:u,33:r,35:a,40:c,44:p,45:m,47:B,48:D,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:ge,80:y,95:E,97:f,98:b}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:u,33:r,35:a,36:21,40:c,41:22,44:p,45:m,47:B,48:D,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:ge,80:y,95:E,97:f,98:b},e(l,[2,17]),e(l,[2,27]),e(l,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:y,95:E,97:f,98:b},{49:85,57:54,58:55,59:z,60:K,61:Y,62:j,63:Q,64:Te,65:Be},e(l,[2,46]),{58:86,64:Te,65:Be},e(q,[2,62],{57:87,59:z,60:K,61:Y,62:j,63:Q}),e(M,[2,63]),e(M,[2,64]),e(M,[2,65]),e(M,[2,66]),e(M,[2,67]),e(Ge,[2,68]),e(Ge,[2,69]),{8:[1,89],23:90,38:88,41:22,44:p},{16:91,74:d,80:y,95:E,97:f},{43:92,47:De},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:H,73:J,74:V,75:99,77:100,79:101,80:Z,81:ee,82:te,83:se,84:ie,85:ue},{74:[1,111]},{13:Me,51:112},e(l,[2,54]),e(l,[2,117]),e(P,[2,13]),e(P,[2,14]),e(P,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:y,95:E,97:f},e(_e,[2,40],{11:114,12:[1,115]}),e(Fe,[2,7]),{9:[1,116]},e(ne,[2,49]),{16:37,17:117,18:38,74:d,80:y,95:E,97:f,98:b},{13:[1,119],16:37,17:118,18:38,74:d,80:y,95:E,97:f,98:b},e(q,[2,61],{57:120,59:z,60:K,61:Y,62:j,63:Q}),e(q,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:p},{8:[1,123],39:[2,33]},e(X,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:De},{16:37,17:127,18:38,74:d,80:y,95:E,97:f,98:b},e(l,[2,70],{13:[1,128]}),e(l,[2,72],{13:[1,130],68:[1,129]}),e(l,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(l,[2,84],{78:[1,134]}),e(Ue,[2,86],{79:135,21:H,73:J,74:V,80:Z,81:ee,82:te,83:se,84:ie,85:ue}),e(_,[2,88]),e(_,[2,90]),e(_,[2,91]),e(_,[2,92]),e(_,[2,93]),e(_,[2,94]),e(_,[2,95]),e(_,[2,96]),e(_,[2,97]),e(_,[2,98]),e(l,[2,85]),e(l,[2,53]),{37:[2,10]},e(_e,[2,41]),{13:[1,136]},{1:[2,4]},e(ne,[2,51]),e(ne,[2,50]),{16:37,17:137,18:38,74:d,80:y,95:E,97:f,98:b},e(q,[2,59]),e(l,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:p},{43:140,47:De},e(X,[2,38]),{39:[2,44]},e(l,[2,42]),e(l,[2,71]),e(l,[2,73]),e(l,[2,74],{68:[1,141]}),e(l,[2,77]),e(l,[2,78],{13:[1,142]}),e(l,[2,80],{13:[1,144],68:[1,143]}),{21:H,73:J,74:V,77:145,79:101,80:Z,81:ee,82:te,83:se,84:ie,85:ue},e(_,[2,89]),{14:[1,146]},e(ne,[2,52]),e(l,[2,31]),{39:[2,35]},{39:[1,147]},e(l,[2,75]),e(l,[2,79]),e(l,[2,81]),e(l,[2,82],{68:[1,148]}),e(Ue,[2,87],{79:135,21:H,73:J,74:V,80:Z,81:ee,82:te,83:se,84:ie,85:ue}),e(_e,[2,8]),e(X,[2,39]),e(l,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(S,n){if(n.recoverable)this.trace(S);else{var o=new Error(S);throw o.hash=n,o}},parse:function(S){var n=this,o=[0],i=[],h=[null],t=[],k=this.table,s="",re=0,ze=0,et=2,Ke=1,tt=t.slice.call(arguments,1),C=Object.create(this.lexer),O={yy:{}};for(var $e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$e)&&(O.yy[$e]=this.yy[$e]);C.setInput(S,O.yy),O.yy.lexer=C,O.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var Le=C.yylloc;t.push(Le);var st=C.options&&C.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var $;return $=i.pop()||C.lex()||Ke,typeof $!="number"&&($ instanceof Array&&(i=$,$=i.pop()),$=n.symbols_[$]||$),$}for(var g,x,T,ve,w={},ae,N,Ye,le;;){if(x=o[o.length-1],this.defaultActions[x]?T=this.defaultActions[x]:((g===null||typeof g>"u")&&(g=it()),T=k[x]&&k[x][g]),typeof T>"u"||!T.length||!T[0]){var Oe="";le=[];for(ae in k[x])this.terminals_[ae]&&ae>et&&le.push("'"+this.terminals_[ae]+"'");C.showPosition?Oe="Parse error on line "+(re+1)+`:
|
|
2
2
|
`+C.showPosition()+`
|
|
3
|
-
Expecting `+le.join(", ")+", got '"+(this.terminals_[
|
|
3
|
+
Expecting `+le.join(", ")+", got '"+(this.terminals_[g]||g)+"'":Oe="Parse error on line "+(re+1)+": Unexpected "+(g==Ke?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(Oe,{text:C.match,token:this.terminals_[g]||g,line:C.yylineno,loc:Le,expected:le})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+g);switch(T[0]){case 1:o.push(g),h.push(C.yytext),t.push(C.yylloc),o.push(T[1]),g=null,ze=C.yyleng,s=C.yytext,re=C.yylineno,Le=C.yylloc;break;case 2:if(N=this.productions_[T[1]][1],w.$=h[h.length-N],w._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},st&&(w._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),ve=this.performAction.apply(w,[s,ze,re,O.yy,T[1],h,t].concat(tt)),typeof ve<"u")return ve;N&&(o=o.slice(0,-1*N*2),h=h.slice(0,-1*N),t=t.slice(0,-1*N)),o.push(this.productions_[T[1]][0]),h.push(w.$),t.push(w._$),Ye=k[o[o.length-2]][o[o.length-1]],o.push(Ye);break;case 3:return!0}}return!0}},Ze=function(){var S={EOF:1,parseError:function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},setInput:function(n,o){return this.yy=o||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},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var o=n.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var o=n.length,i=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;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),i.length-1&&(this.yylineno-=i.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:i?(i.length===h.length?this.yylloc.first_column:0)+h[h.length-i.length].length-i[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var n=this.pastInput(),o=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
5
5
|
`+o+"^"},test_match:function(n,o){var i,h,t;if(this.options.backtrack_lexer&&(t={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(t.yylloc.range=this.yylloc.range.slice(0))),h=n[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],i=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var k in t)this[k]=t[k];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,o,i,h;this._more||(this.yytext="",this.match="");for(var t=this._currentRules(),k=0;k<t.length;k++)if(i=this._input.match(this.rules[t[k]]),i&&(!o||i[0].length>o[0].length)){if(o=i,h=k,this.options.backtrack_lexer){if(n=this.test_match(i,t[k]),n!==!1)return n;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(n=this.test_match(o,t[h]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(n,o,i,h){switch(i){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],inclusive:!0}}};return S}();Se.lexer=Ze;function Ne(){this.yy={}}return Ne.prototype=Se,Se.Parser=Ne,new Ne}();xe.parser=xe;const Ut=xe,Xe=["#","+","~","-",""];class je{constructor(u,r){this.memberType=r,this.visibility="",this.classifier="";const a=At(u,g());this.parseMember(a)}getDisplayDetails(){let u=this.visibility+Ie(this.id);this.memberType==="method"&&(u+=`(${Ie(this.parameters.trim())})`,this.returnType&&(u+=" : "+Ie(this.returnType))),u=u.trim();const r=this.parseClassifier();return{displayText:u,cssStyle:r}}parseMember(u){let r="";if(this.memberType==="method"){const a=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,c=u.match(a);if(c){const p=c[1]?c[1].trim():"";if(Xe.includes(p)&&(this.visibility=p),this.id=c[2].trim(),this.parameters=c[3]?c[3].trim():"",r=c[4]?c[4].trim():"",this.returnType=c[5]?c[5].trim():"",r===""){const m=this.returnType.substring(this.returnType.length-1);m.match(/[$*]/)&&(r=m,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const a=u.length,c=u.substring(0,1),p=u.substring(a-1);Xe.includes(c)&&(this.visibility=c),p.match(/[$*]/)&&(r=p),this.id=u.substring(this.visibility===""?0:1,r===""?a:a-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const he="classId-";let we=[],A={},oe=[],Qe=0,O={},Re=0,U=[];const x=e=>L.sanitizeText(e,g()),R=function(e){const u=L.sanitizeText(e,g());let r="",a=u;if(u.indexOf("~")>0){const c=u.split("~");a=x(c[0]),r=x(c[1])}return{className:a,type:r}},pt=function(e,u){const r=L.sanitizeText(e,g());u&&(u=x(u));const{className:a}=R(r);A[a].label=u},ce=function(e){const u=L.sanitizeText(e,g()),{className:r,type:a}=R(u);if(Object.hasOwn(A,r))return;const c=L.sanitizeText(r,g());A[c]={id:c,type:a,label:c,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:he+c+"-"+Qe},Qe++},He=function(e){const u=L.sanitizeText(e,g());if(u in A)return A[u].domId;throw new Error("Class not found: "+u)},dt=function(){we=[],A={},oe=[],U=[],U.push(Je),O={},Re=0,ht()},yt=function(e){return A[e]},Et=function(){return A},ft=function(){return we},Ct=function(){return oe},mt=function(e){ct.debug("Adding relation: "+JSON.stringify(e)),ce(e.id1),ce(e.id2),e.id1=R(e.id1).className,e.id2=R(e.id2).className,e.relationTitle1=L.sanitizeText(e.relationTitle1.trim(),g()),e.relationTitle2=L.sanitizeText(e.relationTitle2.trim(),g()),we.push(e)},bt=function(e,u){const r=R(e).className;A[r].annotations.push(u)},We=function(e,u){ce(e);const r=R(e).className,a=A[r];if(typeof u=="string"){const c=u.trim();c.startsWith("<<")&&c.endsWith(">>")?a.annotations.push(x(c.substring(2,c.length-2))):c.indexOf(")")>0?a.methods.push(new je(c,"method")):c&&a.members.push(new je(c,"attribute"))}},kt=function(e,u){Array.isArray(u)&&(u.reverse(),u.forEach(r=>We(e,r)))},Ft=function(e,u){const r={id:`note${oe.length}`,class:u,text:e};oe.push(r)},gt=function(e){return e.startsWith(":")&&(e=e.substring(1)),x(e.trim())},Pe=function(e,u){e.split(",").forEach(function(r){let a=r;r[0].match(/\d/)&&(a=he+a),A[a]!==void 0&&A[a].cssClasses.push(u)})},Tt=function(e,u){e.split(",").forEach(function(r){u!==void 0&&(A[r].tooltip=x(u))})},Bt=function(e,u){return u?O[u].classes[e].tooltip:A[e].tooltip},Dt=function(e,u,r){const a=g();e.split(",").forEach(function(c){let p=c;c[0].match(/\d/)&&(p=he+p),A[p]!==void 0&&(A[p].link=qe.formatUrl(u,a),a.securityLevel==="sandbox"?A[p].linkTarget="_top":typeof r=="string"?A[p].linkTarget=x(r):A[p].linkTarget="_blank")}),Pe(e,"clickable")},_t=function(e,u,r){e.split(",").forEach(function(a){St(a,u,r),A[a].haveCallback=!0}),Pe(e,"clickable")},St=function(e,u,r){const a=L.sanitizeText(e,g());if(g().securityLevel!=="loose"||u===void 0)return;const c=a;if(A[c]!==void 0){const p=He(c);let m=[];if(typeof r=="string"){m=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let B=0;B<m.length;B++){let D=m[B].trim();D.charAt(0)==='"'&&D.charAt(D.length-1)==='"'&&(D=D.substr(1,D.length-2)),m[B]=D}}m.length===0&&m.push(p),U.push(function(){const B=document.querySelector(`[id="${p}"]`);B!==null&&B.addEventListener("click",function(){qe.runFunc(u,...m)},!1)})}},Nt=function(e){U.forEach(function(u){u(e)})},$t={LINE:0,DOTTED_LINE:1},Lt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},Je=function(e){let u=G(".mermaidTooltip");(u._groups||u)[0][0]===null&&(u=G("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),G(e).select("svg").selectAll("g.node").on("mouseover",function(){const r=G(this);if(r.attr("title")===null)return;const a=this.getBoundingClientRect();u.transition().duration(200).style("opacity",".9"),u.text(r.attr("title")).style("left",window.scrollX+a.left+(a.right-a.left)/2+"px").style("top",window.scrollY+a.top-14+document.body.scrollTop+"px"),u.html(u.html().replace(/<br\/>/g,"<br/>")),r.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),G(this).classed("hover",!1)})};U.push(Je);let Ve="TB";const Ot=()=>Ve,vt=e=>{Ve=e},It=function(e){O[e]===void 0&&(O[e]={id:e,classes:{},children:{},domId:he+e+"-"+Re},Re++)},xt=function(e){return O[e]},Rt=function(){return O},wt=function(e,u){if(O[e]!==void 0)for(const r of u){const{className:a}=R(r);A[a].parent=e,O[e].classes[a]=A[a]}},Pt=function(e,u){const r=A[e];if(!(!u||!r))for(const a of u)a.includes(",")?r.styles.push(...a.split(",")):r.styles.push(a)},zt={setAccTitle:ot,getAccTitle:lt,getAccDescription:at,setAccDescription:rt,getConfig:()=>g().class,addClass:ce,bindFunctions:Nt,clear:dt,getClass:yt,getClasses:Et,getNotes:Ct,addAnnotation:bt,addNote:Ft,getRelations:ft,addRelation:mt,getDirection:Ot,setDirection:vt,addMember:We,addMembers:kt,cleanupLabel:gt,lineType:$t,relationType:Lt,setClickEvent:_t,setCssClass:Pe,setLink:Dt,getTooltip:Bt,setTooltip:Tt,lookUpDomId:He,setDiagramTitle:nt,getDiagramTitle:ut,setClassLabel:pt,addNamespace:It,addClassesToNamespace:wt,getNamespace:xt,getNamespaces:Rt,setCssStyle:Pt},Mt=e=>`g.classGroup text {
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(n,o,i,h){switch(i){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],inclusive:!0}}};return S}();Se.lexer=Ze;function Ne(){this.yy={}}return Ne.prototype=Se,Se.Parser=Ne,new Ne}();Ie.parser=Ie;const Ut=Ie,je=["#","+","~","-",""];class Qe{constructor(u,r){this.memberType=r,this.visibility="",this.classifier="";const a=At(u,F());this.parseMember(a)}getDisplayDetails(){let u=this.visibility+xe(this.id);this.memberType==="method"&&(u+=`(${xe(this.parameters.trim())})`,this.returnType&&(u+=" : "+xe(this.returnType))),u=u.trim();const r=this.parseClassifier();return{displayText:u,cssStyle:r}}parseMember(u){let r="";if(this.memberType==="method"){const a=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,c=u.match(a);if(c){const p=c[1]?c[1].trim():"";if(je.includes(p)&&(this.visibility=p),this.id=c[2].trim(),this.parameters=c[3]?c[3].trim():"",r=c[4]?c[4].trim():"",this.returnType=c[5]?c[5].trim():"",r===""){const m=this.returnType.substring(this.returnType.length-1);m.match(/[$*]/)&&(r=m,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const a=u.length,c=u.substring(0,1),p=u.substring(a-1);je.includes(c)&&(this.visibility=c),p.match(/[$*]/)&&(r=p),this.id=u.substring(this.visibility===""?0:1,r===""?a:a-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const he="classId-";let we=[],A={},oe=[],Xe=0,v={},Re=0,U=[];const I=e=>L.sanitizeText(e,F()),R=function(e){const u=L.sanitizeText(e,F());let r="",a=u;if(u.indexOf("~")>0){const c=u.split("~");a=I(c[0]),r=I(c[1])}return{className:a,type:r}},pt=function(e,u){const r=L.sanitizeText(e,F());u&&(u=I(u));const{className:a}=R(r);A[a].label=u},ce=function(e){const u=L.sanitizeText(e,F()),{className:r,type:a}=R(u);if(Object.hasOwn(A,r))return;const c=L.sanitizeText(r,F());A[c]={id:c,type:a,label:c,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:he+c+"-"+Xe},Xe++},qe=function(e){const u=L.sanitizeText(e,F());if(u in A)return A[u].domId;throw new Error("Class not found: "+u)},dt=function(){we=[],A={},oe=[],U=[],U.push(Je),v={},Re=0,ht()},yt=function(e){return A[e]},Et=function(){return A},ft=function(){return we},Ct=function(){return oe},mt=function(e){ct.debug("Adding relation: "+JSON.stringify(e)),ce(e.id1),ce(e.id2),e.id1=R(e.id1).className,e.id2=R(e.id2).className,e.relationTitle1=L.sanitizeText(e.relationTitle1.trim(),F()),e.relationTitle2=L.sanitizeText(e.relationTitle2.trim(),F()),we.push(e)},bt=function(e,u){const r=R(e).className;A[r].annotations.push(u)},He=function(e,u){ce(e);const r=R(e).className,a=A[r];if(typeof u=="string"){const c=u.trim();c.startsWith("<<")&&c.endsWith(">>")?a.annotations.push(I(c.substring(2,c.length-2))):c.indexOf(")")>0?a.methods.push(new Qe(c,"method")):c&&a.members.push(new Qe(c,"attribute"))}},kt=function(e,u){Array.isArray(u)&&(u.reverse(),u.forEach(r=>He(e,r)))},gt=function(e,u){const r={id:`note${oe.length}`,class:u,text:e};oe.push(r)},Ft=function(e){return e.startsWith(":")&&(e=e.substring(1)),I(e.trim())},Pe=function(e,u){e.split(",").forEach(function(r){let a=r;r[0].match(/\d/)&&(a=he+a),A[a]!==void 0&&A[a].cssClasses.push(u)})},Tt=function(e,u){e.split(",").forEach(function(r){u!==void 0&&(A[r].tooltip=I(u))})},Bt=function(e,u){return u?v[u].classes[e].tooltip:A[e].tooltip},Dt=function(e,u,r){const a=F();e.split(",").forEach(function(c){let p=c;c[0].match(/\d/)&&(p=he+p),A[p]!==void 0&&(A[p].link=We.formatUrl(u,a),a.securityLevel==="sandbox"?A[p].linkTarget="_top":typeof r=="string"?A[p].linkTarget=I(r):A[p].linkTarget="_blank")}),Pe(e,"clickable")},_t=function(e,u,r){e.split(",").forEach(function(a){St(a,u,r),A[a].haveCallback=!0}),Pe(e,"clickable")},St=function(e,u,r){const a=L.sanitizeText(e,F());if(F().securityLevel!=="loose"||u===void 0)return;const c=a;if(A[c]!==void 0){const p=qe(c);let m=[];if(typeof r=="string"){m=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let B=0;B<m.length;B++){let D=m[B].trim();D.charAt(0)==='"'&&D.charAt(D.length-1)==='"'&&(D=D.substr(1,D.length-2)),m[B]=D}}m.length===0&&m.push(p),U.push(function(){const B=document.querySelector(`[id="${p}"]`);B!==null&&B.addEventListener("click",function(){We.runFunc(u,...m)},!1)})}},Nt=function(e){U.forEach(function(u){u(e)})},$t={LINE:0,DOTTED_LINE:1},Lt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},Je=function(e){let u=G(".mermaidTooltip");(u._groups||u)[0][0]===null&&(u=G("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),G(e).select("svg").selectAll("g.node").on("mouseover",function(){const r=G(this);if(r.attr("title")===null)return;const a=this.getBoundingClientRect();u.transition().duration(200).style("opacity",".9"),u.text(r.attr("title")).style("left",window.scrollX+a.left+(a.right-a.left)/2+"px").style("top",window.scrollY+a.top-14+document.body.scrollTop+"px"),u.html(u.html().replace(/<br\/>/g,"<br/>")),r.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),G(this).classed("hover",!1)})};U.push(Je);let Ve="TB";const vt=()=>Ve,Ot=e=>{Ve=e},xt=function(e){v[e]===void 0&&(v[e]={id:e,classes:{},children:{},domId:he+e+"-"+Re},Re++)},It=function(e){return v[e]},Rt=function(){return v},wt=function(e,u){if(v[e]!==void 0)for(const r of u){const{className:a}=R(r);A[a].parent=e,v[e].classes[a]=A[a]}},Pt=function(e,u){const r=A[e];if(!(!u||!r))for(const a of u)a.includes(",")?r.styles.push(...a.split(",")):r.styles.push(a)},zt={setAccTitle:ot,getAccTitle:lt,getAccDescription:at,setAccDescription:rt,getConfig:()=>F().class,addClass:ce,bindFunctions:Nt,clear:dt,getClass:yt,getClasses:Et,getNotes:Ct,addAnnotation:bt,addNote:gt,getRelations:ft,addRelation:mt,getDirection:vt,setDirection:Ot,addMember:He,addMembers:kt,cleanupLabel:Ft,lineType:$t,relationType:Lt,setClickEvent:_t,setCssClass:Pe,setLink:Dt,getTooltip:Bt,setTooltip:Tt,lookUpDomId:qe,setDiagramTitle:nt,getDiagramTitle:ut,setClassLabel:pt,addNamespace:xt,addClassesToNamespace:wt,getNamespace:It,getNamespaces:Rt,setCssStyle:Pt},Mt=e=>`g.classGroup text {
|
|
7
7
|
fill: ${e.nodeBorder||e.classText};
|
|
8
8
|
stroke: none;
|
|
9
9
|
font-family: ${e.fontFamily};
|
package/dist/assets/{styles-ca3715f6-FCD4s0nN-Cy3cKH3y.js → styles-ca3715f6-g0iC1zjD-CPChcZri.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as Ut,w as zt,v as Ht,x as Mt,b as Xt,y as Jt,g as F,l as lt,O as v,m as Kt,ap as Vt}from"./index-CV3ovvq1.js";var mt=function(){var t=function(T,i,r,o){for(r=r||{},o=T.length;o--;r[T[o]]=i);return r},s=[1,2],n=[1,3],c=[1,4],p=[2,4],d=[1,9],y=[1,11],b=[1,15],u=[1,16],_=[1,17],G=[1,18],O=[1,30],j=[1,19],Y=[1,20],U=[1,21],z=[1,22],H=[1,23],M=[1,25],X=[1,26],J=[1,27],K=[1,28],V=[1,29],W=[1,32],q=[1,33],Q=[1,34],Z=[1,35],R=[1,31],l=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],tt=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],xt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ct={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(T,i,r,o,h,e,g){var a=e.length-1;switch(h){case 3:return o.setRootDoc(e[a]),e[a];case 4:this.$=[];break;case 5:e[a]!="nl"&&(e[a-1].push(e[a]),this.$=e[a-1]);break;case 6:case 7:this.$=e[a];break;case 8:this.$="nl";break;case 11:this.$=e[a];break;case 12:const B=e[a-1];B.description=o.trimColon(e[a]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[a-2],state2:e[a]};break;case 14:const ut=o.trimColon(e[a]);this.$={stmt:"relation",state1:e[a-3],state2:e[a-1],description:ut};break;case 18:this.$={stmt:"state",id:e[a-3],type:"default",description:"",doc:e[a-1]};break;case 19:var $=e[a],I=e[a-2].trim();if(e[a].match(":")){var et=e[a].split(":");$=et[0],I=[I,et[1]]}this.$={stmt:"state",id:$,type:"default",description:I};break;case 20:this.$={stmt:"state",id:e[a-3],type:"default",description:e[a-5],doc:e[a-1]};break;case 21:this.$={stmt:"state",id:e[a],type:"fork"};break;case 22:this.$={stmt:"state",id:e[a],type:"join"};break;case 23:this.$={stmt:"state",id:e[a],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[a-1].trim(),note:{position:e[a-2].trim(),text:e[a].trim()}};break;case 28:this.$=e[a].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[a].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[a-1].trim(),classes:e[a].trim()};break;case 33:this.$={stmt:"applyClass",id:e[a-1].trim(),styleClass:e[a].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[a].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[a-2].trim(),classes:[e[a].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[a-2].trim(),classes:[e[a].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:n,6:c},{1:[3]},{3:5,4:s,5:n,6:c},{3:6,4:s,5:n,6:c},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],p,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,21:G,23:O,24:j,25:Y,26:U,27:z,28:H,31:24,32:M,34:X,36:J,37:K,41:V,44:W,45:q,46:Q,47:Z,50:R},t(l,[2,5]),{9:36,10:12,11:13,12:14,15:b,16:u,18:_,21:G,23:O,24:j,25:Y,26:U,27:z,28:H,31:24,32:M,34:X,36:J,37:K,41:V,44:W,45:q,46:Q,47:Z,50:R},t(l,[2,7]),t(l,[2,8]),t(l,[2,9]),t(l,[2,10]),t(l,[2,11],{13:[1,37],14:[1,38]}),t(l,[2,15]),{17:[1,39]},t(l,[2,17],{19:[1,40]}),{22:[1,41]},t(l,[2,21]),t(l,[2,22]),t(l,[2,23]),t(l,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(l,[2,27]),{33:[1,46]},{35:[1,47]},t(l,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(tt,[2,40],{51:[1,51]}),t(tt,[2,41],{51:[1,52]}),t(l,[2,34]),t(l,[2,35]),t(l,[2,36]),t(l,[2,37]),t(l,[2,6]),t(l,[2,12]),{12:53,23:O,50:R},t(l,[2,16]),t(xt,p,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(l,[2,28]),t(l,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(l,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,20:[1,64],21:G,23:O,24:j,25:Y,26:U,27:z,28:H,31:24,32:M,34:X,36:J,37:K,41:V,44:W,45:q,46:Q,47:Z,50:R},t(l,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(l,[2,31]),t(l,[2,32]),t(l,[2,33]),t(tt,[2,42]),t(tt,[2,43]),t(l,[2,14]),t(l,[2,18]),t(xt,p,{7:68}),t(l,[2,25]),t(l,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,20:[1,69],21:G,23:O,24:j,25:Y,26:U,27:z,28:H,31:24,32:M,34:X,36:J,37:K,41:V,44:W,45:q,46:Q,47:Z,50:R},t(l,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(T,i){if(i.recoverable)this.trace(T);else{var r=new Error(T);throw r.hash=i,r}},parse:function(T){var i=this,r=[0],o=[],h=[null],e=[],g=this.table,a="",$=0,I=0,et=2,B=1,ut=e.slice.call(arguments,1),f=Object.create(this.lexer),C={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(C.yy[dt]=this.yy[dt]);f.setInput(T,C.yy),C.yy.lexer=f,C.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var pt=f.yylloc;e.push(pt);var jt=f.options&&f.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Yt(){var x;return x=o.pop()||f.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=i.symbols_[x]||x),x}for(var S,D,k,yt,L={},st,E,vt,it;;){if(D=r[r.length-1],this.defaultActions[D]?k=this.defaultActions[D]:((S===null||typeof S>"u")&&(S=Yt()),k=g[D]&&g[D][S]),typeof k>"u"||!k.length||!k[0]){var ft="";it=[];for(st in g[D])this.terminals_[st]&&st>et&&it.push("'"+this.terminals_[st]+"'");f.showPosition?ft="Parse error on line "+($+1)+`:
|
|
2
2
|
`+f.showPosition()+`
|
|
3
|
-
Expecting `+it.join(", ")+", got '"+(this.terminals_[S]||S)+"'":ft="Parse error on line "+(
|
|
3
|
+
Expecting `+it.join(", ")+", got '"+(this.terminals_[S]||S)+"'":ft="Parse error on line "+($+1)+": Unexpected "+(S==B?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(ft,{text:f.match,token:this.terminals_[S]||S,line:f.yylineno,loc:pt,expected:it})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+S);switch(k[0]){case 1:r.push(S),h.push(f.yytext),e.push(f.yylloc),r.push(k[1]),S=null,I=f.yyleng,a=f.yytext,$=f.yylineno,pt=f.yylloc;break;case 2:if(E=this.productions_[k[1]][1],L.$=h[h.length-E],L._$={first_line:e[e.length-(E||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(E||1)].first_column,last_column:e[e.length-1].last_column},jt&&(L._$.range=[e[e.length-(E||1)].range[0],e[e.length-1].range[1]]),yt=this.performAction.apply(L,[a,I,$,C.yy,k[1],h,e].concat(ut)),typeof yt<"u")return yt;E&&(r=r.slice(0,-1*E*2),h=h.slice(0,-1*E),e=e.slice(0,-1*E)),r.push(this.productions_[k[1]][0]),h.push(L.$),e.push(L._$),vt=g[r[r.length-2]][r[r.length-1]],r.push(vt);break;case 3:return!0}}return!0}},Gt=function(){var T={EOF:1,parseError:function(i,r){if(this.yy.parser)this.yy.parser.parseError(i,r);else throw new Error(i)},setInput:function(i,r){return this.yy=r||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},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.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),i},unput:function(i){var r=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;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),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===h.length?this.yylloc.first_column:0)+h[h.length-o.length].length-o[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
5
|
`+r+"^"},test_match:function(i,r){var o,h,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),h=i[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],o=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var g in e)this[g]=e[g];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,o,h;this._more||(this.yytext="",this.match="");for(var e=this._currentRules(),g=0;g<e.length;g++)if(o=this._input.match(this.rules[e[g]]),o&&(!r||o[0].length>r[0].length)){if(r=o,h=g,this.options.backtrack_lexer){if(i=this.test_match(o,e[g]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,e[h]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,r,o,h){switch(o){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),r.yytext=r.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),r.yytext=r.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),r.yytext=r.yytext.substr(2).trim(),30;case 64:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return r.yytext=r.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return T}();ct.lexer=Gt;function ht(){this.yy={}}return ht.prototype=ct,ct.Parser=ht,new ht}();mt.parser=mt;const xe=mt,Wt="LR",$e="TB",gt="state",Dt="relation",qt="classDef",Qt="applyClass",Tt="default",Zt="divider",bt="[*]",It="start",Lt=bt,Ot="end",Ct="color",vt="fill",te="bgFill",ee=",";function Rt(){return{}}let Bt=Wt,at=[],N=Rt();const Nt=()=>({relations:[],states:{},documents:{}});let ot={root:Nt()},m=ot.root,w=0,At=0;const se={LINE:0,DOTTED_LINE:1},ie={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},rt=t=>JSON.parse(JSON.stringify(t)),re=t=>{$.info("Setting root doc",t),at=t},ne=()=>at,nt=(t,s,n)=>{if(s.stmt===Dt)nt(t,s.state1,!0),nt(t,s.state2,!1);else if(s.stmt===gt&&(s.id==="[*]"?(s.id=n?t.id+"_start":t.id+"_end",s.start=n):s.id=s.id.trim()),s.doc){const c=[];let p=[],d;for(d=0;d<s.doc.length;d++)if(s.doc[d].type===Zt){const y=rt(s.doc[d]);y.doc=rt(p),c.push(y),p=[]}else p.push(s.doc[d]);if(c.length>0&&p.length>0){const y={stmt:gt,id:Vt(),type:"divider",doc:rt(p)};c.push(rt(y)),s.doc=c}s.doc.forEach(y=>nt(s,y,!0))}},ae=()=>(nt({id:"root"},{id:"root",doc:at},!0),{id:"root",doc:at}),oe=t=>{let s;t.doc?s=t.doc:s=t,$.info(s),wt(!0),$.info("Extract",s),s.forEach(n=>{switch(n.stmt){case gt:D(n.id.trim(),n.type,n.doc,n.description,n.note,n.classes,n.styles,n.textStyles);break;case Dt:Pt(n.state1,n.state2,n.description);break;case qt:Ft(n.id.trim(),n.classes);break;case Qt:Et(n.id.trim(),n.styleClass);break}})},D=function(t,s=Tt,n=null,c=null,p=null,d=null,y=null,b=null){const u=t==null?void 0:t.trim();m.states[u]===void 0?($.info("Adding state ",u,c),m.states[u]={id:u,descriptions:[],type:s,doc:n,note:p,classes:[],styles:[],textStyles:[]}):(m.states[u].doc||(m.states[u].doc=n),m.states[u].type||(m.states[u].type=s)),c&&($.info("Setting state description",u,c),typeof c=="string"&&kt(u,c.trim()),typeof c=="object"&&c.forEach(_=>kt(u,_.trim()))),p&&(m.states[u].note=p,m.states[u].note.text=lt.sanitizeText(m.states[u].note.text,F())),d&&($.info("Setting state classes",u,d),(typeof d=="string"?[d]:d).forEach(_=>Et(u,_.trim()))),y&&($.info("Setting state styles",u,y),(typeof y=="string"?[y]:y).forEach(_=>ge(u,_.trim()))),b&&($.info("Setting state styles",u,y),(typeof b=="string"?[b]:b).forEach(_=>Se(u,_.trim())))},wt=function(t){ot={root:Nt()},m=ot.root,w=0,N=Rt(),t||Kt()},P=function(t){return m.states[t]},le=function(){return m.states},ce=function(){$.info("Documents = ",ot)},he=function(){return m.relations};function St(t=""){let s=t;return t===bt&&(w++,s=`${It}${w}`),s}function _t(t="",s=Tt){return t===bt?It:s}function ue(t=""){let s=t;return t===Lt&&(w++,s=`${Ot}${w}`),s}function de(t="",s=Tt){return t===Lt?Ot:s}function pe(t,s,n){let c=St(t.id.trim()),p=_t(t.id.trim(),t.type),d=St(s.id.trim()),y=_t(s.id.trim(),s.type);D(c,p,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),D(d,y,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),m.relations.push({id1:c,id2:d,relationTitle:lt.sanitizeText(n,F())})}const Pt=function(t,s,n){if(typeof t=="object")pe(t,s,n);else{const c=St(t.trim()),p=_t(t),d=ue(s.trim()),y=de(s);D(c,p),D(d,y),m.relations.push({id1:c,id2:d,title:lt.sanitizeText(n,F())})}},kt=function(t,s){const n=m.states[t],c=s.startsWith(":")?s.replace(":","").trim():s;n.descriptions.push(lt.sanitizeText(c,F()))},ye=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},fe=()=>(At++,"divider-id-"+At),Ft=function(t,s=""){N[t]===void 0&&(N[t]={id:t,styles:[],textStyles:[]});const n=N[t];s!=null&&s.split(ee).forEach(c=>{const p=c.replace(/([^;]*);/,"$1").trim();if(c.match(Ct)){const d=p.replace(vt,te).replace(Ct,vt);n.textStyles.push(d)}n.styles.push(p)})},me=function(){return N},Et=function(t,s){t.split(",").forEach(function(n){let c=P(n);if(c===void 0){const p=n.trim();D(p),c=P(p)}c.classes.push(s)})},ge=function(t,s){const n=P(t);n!==void 0&&n.textStyles.push(s)},Se=function(t,s){const n=P(t);n!==void 0&&n.textStyles.push(s)},_e=()=>Bt,ke=t=>{Bt=t},Te=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),Ce={getConfig:()=>F().state,addState:D,clear:wt,getState:P,getStates:le,getRelations:he,getClasses:me,getDirection:_e,addRelation:Pt,getDividerId:fe,setDirection:ke,cleanupLabel:ye,lineType:se,relationType:ie,logDocuments:ce,getRootDoc:ne,setRootDoc:re,getRootDocV2:ae,extract:oe,trimColon:Te,getAccTitle:Jt,setAccTitle:Mt,getAccDescription:Ht,setAccDescription:Xt,addStyleClass:Ft,setCssClass:Et,addDescription:kt,setDiagramTitle:zt,getDiagramTitle:Yt},be=t=>`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,r,o,h){switch(o){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),r.yytext=r.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),r.yytext=r.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),r.yytext=r.yytext.substr(2).trim(),30;case 64:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return r.yytext=r.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return T}();ct.lexer=Gt;function ht(){this.yy={}}return ht.prototype=ct,ct.Parser=ht,new ht}();mt.parser=mt;const xe=mt,Wt="LR",ve="TB",gt="state",At="relation",qt="classDef",Qt="applyClass",Tt="default",Zt="divider",bt="[*]",It="start",Lt=bt,Ot="end",$t="color",Ct="fill",te="bgFill",ee=",";function Rt(){return{}}let Bt=Wt,at=[],N=Rt();const Nt=()=>({relations:[],states:{},documents:{}});let ot={root:Nt()},m=ot.root,w=0,Dt=0;const se={LINE:0,DOTTED_LINE:1},ie={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},rt=t=>JSON.parse(JSON.stringify(t)),re=t=>{v.info("Setting root doc",t),at=t},ne=()=>at,nt=(t,s,n)=>{if(s.stmt===At)nt(t,s.state1,!0),nt(t,s.state2,!1);else if(s.stmt===gt&&(s.id==="[*]"?(s.id=n?t.id+"_start":t.id+"_end",s.start=n):s.id=s.id.trim()),s.doc){const c=[];let p=[],d;for(d=0;d<s.doc.length;d++)if(s.doc[d].type===Zt){const y=rt(s.doc[d]);y.doc=rt(p),c.push(y),p=[]}else p.push(s.doc[d]);if(c.length>0&&p.length>0){const y={stmt:gt,id:Vt(),type:"divider",doc:rt(p)};c.push(rt(y)),s.doc=c}s.doc.forEach(y=>nt(s,y,!0))}},ae=()=>(nt({id:"root"},{id:"root",doc:at},!0),{id:"root",doc:at}),oe=t=>{let s;t.doc?s=t.doc:s=t,v.info(s),wt(!0),v.info("Extract",s),s.forEach(n=>{switch(n.stmt){case gt:A(n.id.trim(),n.type,n.doc,n.description,n.note,n.classes,n.styles,n.textStyles);break;case At:Pt(n.state1,n.state2,n.description);break;case qt:Ft(n.id.trim(),n.classes);break;case Qt:Et(n.id.trim(),n.styleClass);break}})},A=function(t,s=Tt,n=null,c=null,p=null,d=null,y=null,b=null){const u=t==null?void 0:t.trim();m.states[u]===void 0?(v.info("Adding state ",u,c),m.states[u]={id:u,descriptions:[],type:s,doc:n,note:p,classes:[],styles:[],textStyles:[]}):(m.states[u].doc||(m.states[u].doc=n),m.states[u].type||(m.states[u].type=s)),c&&(v.info("Setting state description",u,c),typeof c=="string"&&kt(u,c.trim()),typeof c=="object"&&c.forEach(_=>kt(u,_.trim()))),p&&(m.states[u].note=p,m.states[u].note.text=lt.sanitizeText(m.states[u].note.text,F())),d&&(v.info("Setting state classes",u,d),(typeof d=="string"?[d]:d).forEach(_=>Et(u,_.trim()))),y&&(v.info("Setting state styles",u,y),(typeof y=="string"?[y]:y).forEach(_=>ge(u,_.trim()))),b&&(v.info("Setting state styles",u,y),(typeof b=="string"?[b]:b).forEach(_=>Se(u,_.trim())))},wt=function(t){ot={root:Nt()},m=ot.root,w=0,N=Rt(),t||Kt()},P=function(t){return m.states[t]},le=function(){return m.states},ce=function(){v.info("Documents = ",ot)},he=function(){return m.relations};function St(t=""){let s=t;return t===bt&&(w++,s=`${It}${w}`),s}function _t(t="",s=Tt){return t===bt?It:s}function ue(t=""){let s=t;return t===Lt&&(w++,s=`${Ot}${w}`),s}function de(t="",s=Tt){return t===Lt?Ot:s}function pe(t,s,n){let c=St(t.id.trim()),p=_t(t.id.trim(),t.type),d=St(s.id.trim()),y=_t(s.id.trim(),s.type);A(c,p,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),A(d,y,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),m.relations.push({id1:c,id2:d,relationTitle:lt.sanitizeText(n,F())})}const Pt=function(t,s,n){if(typeof t=="object")pe(t,s,n);else{const c=St(t.trim()),p=_t(t),d=ue(s.trim()),y=de(s);A(c,p),A(d,y),m.relations.push({id1:c,id2:d,title:lt.sanitizeText(n,F())})}},kt=function(t,s){const n=m.states[t],c=s.startsWith(":")?s.replace(":","").trim():s;n.descriptions.push(lt.sanitizeText(c,F()))},ye=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},fe=()=>(Dt++,"divider-id-"+Dt),Ft=function(t,s=""){N[t]===void 0&&(N[t]={id:t,styles:[],textStyles:[]});const n=N[t];s!=null&&s.split(ee).forEach(c=>{const p=c.replace(/([^;]*);/,"$1").trim();if(c.match($t)){const d=p.replace(Ct,te).replace($t,Ct);n.textStyles.push(d)}n.styles.push(p)})},me=function(){return N},Et=function(t,s){t.split(",").forEach(function(n){let c=P(n);if(c===void 0){const p=n.trim();A(p),c=P(p)}c.classes.push(s)})},ge=function(t,s){const n=P(t);n!==void 0&&n.textStyles.push(s)},Se=function(t,s){const n=P(t);n!==void 0&&n.textStyles.push(s)},_e=()=>Bt,ke=t=>{Bt=t},Te=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),$e={getConfig:()=>F().state,addState:A,clear:wt,getState:P,getStates:le,getRelations:he,getClasses:me,getDirection:_e,addRelation:Pt,getDividerId:fe,setDirection:ke,cleanupLabel:ye,lineType:se,relationType:ie,logDocuments:ce,getRootDoc:ne,setRootDoc:re,getRootDocV2:ae,extract:oe,trimColon:Te,getAccTitle:Jt,setAccTitle:Xt,getAccDescription:Mt,setAccDescription:Ht,addStyleClass:Ft,setCssClass:Et,addDescription:kt,setDiagramTitle:zt,getDiagramTitle:Ut},be=t=>`
|
|
7
7
|
defs #statediagram-barbEnd {
|
|
8
8
|
fill: ${t.transitionColor};
|
|
9
9
|
stroke: ${t.transitionColor};
|
|
@@ -204,4 +204,4 @@ g.stateGroup line {
|
|
|
204
204
|
font-size: 18px;
|
|
205
205
|
fill: ${t.textColor};
|
|
206
206
|
}
|
|
207
|
-
`,
|
|
207
|
+
`,Ce=be;export{Ce as A,ve as C,xe as D,Tt as E,At as I,gt as _,Zt as t,$e as v};
|
package/dist/assets/{styles-d45a18b0-7fTS_K4G-Du8DKTsM.js → styles-d45a18b0-VfGWd52Q-D7qD0x-3.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`),v()),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+y+" "+f,o.setEdge(n.start,n.end,t,l)}},re=function(e,o){return o.db.getClasses()},oe=async function(e,o,c,l){g.info("Drawing flowchart");let i=l.db.getDirection();i===void 0&&(i="TD");const{securityLevel:p,flowchart:u}=v(),n=u.nodeSpacing||50,b=u.rankSpacing||50;let r;p==="sandbox"&&(r=_("#i"+o));const y=p==="sandbox"?_(r.nodes()[0].contentDocument.body):_("body"),f=p==="sandbox"?r.nodes()[0].contentDocument:document,t=new
|
|
1
|
+
import{r as q,O as g,g as v,P as _,i as R,h as V,a as A,k as C,Y as E,n as j,l as I,p as F,E as z,d as G,M as K,e as U,t as Y}from"./index-CV3ovvq1.js";import{K as W}from"./graph-CvRY9YIM-BVZjlKfa.js";import{b as X}from"./index-5325376f-D7k5u-pg-D5Cux9AW.js";import{t as Z}from"./channel-BYhLgIow-BPTRMgNI.js";function H(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([K(e)],G)}function de(e,o){return!!e.children(o).length}function pe(e){return B(e.v)+":"+B(e.w)+":"+B(e.name)}var J=/:/g;function B(e){return e?String(e).replace(J,"\\:"):""}function Q(e,o){o&&e.attr("style",o)}function be(e,o,c){o&&e.attr("class",o).attr("class",c+" "+e.attr("class"))}function we(e,o){var c=o.graph();if(U(c)){var l=c.transition;if(Y(l))return l(e)}return e}function ee(e,o){var c=e.append("foreignObject").attr("width","100000"),l=c.append("xhtml:div");l.attr("xmlns","http://www.w3.org/1999/xhtml");var i=o.label;switch(typeof i){case"function":l.insert(i);break;case"object":l.insert(function(){return i});break;default:l.html(i)}Q(l,o.labelStyle),l.style("display","inline-block"),l.style("white-space","nowrap");var p=l.node().getBoundingClientRect();return c.attr("width",p.width).attr("height",p.height),c}const O={},te=function(e){const o=Object.keys(e);for(const c of o)O[c]=e[c]},P=async function(e,o,c,l,i,p){const u=l.select(`[id="${c}"]`),n=Object.keys(e);for(const b of n){const r=e[b];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const f=A(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(F(v().flowchart.htmlLabels))s=ee(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",f.labelStyle.replace("color:","fill:"));const T=t.split(I.lineBreakRegex);for(const $ of T){const d=i.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.setAttribute("dy","1em"),d.setAttribute("x","1"),d.textContent=$,k.appendChild(d)}s=k}let w=0,a="";switch(r.type){case"round":w=5,a="rect";break;case"square":a="rect";break;case"diamond":a="question";break;case"hexagon":a="hexagon";break;case"odd":a="rect_left_inv_arrow";break;case"lean_right":a="lean_right";break;case"lean_left":a="lean_left";break;case"trapezoid":a="trapezoid";break;case"inv_trapezoid":a="inv_trapezoid";break;case"odd_right":a="rect_left_inv_arrow";break;case"circle":a="circle";break;case"ellipse":a="ellipse";break;case"stadium":a="stadium";break;case"subroutine":a="subroutine";break;case"cylinder":a="cylinder";break;case"group":a="rect";break;case"doublecircle":a="doublecircle";break;default:a="rect"}const S=await j(t,v());o.setNode(r.id,{labelStyle:f.labelStyle,shape:a,labelText:S,labelType:r.labelType,rx:w,ry:w,class:y,style:f.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:p.db.getTooltip(r.id)||"",domId:p.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:v().flowchart.padding}),g.info("setNode",{labelStyle:f.labelStyle,labelType:r.labelType,shape:a,labelText:S,rx:w,ry:w,class:y,style:f.style,id:r.id,domId:p.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:v().flowchart.padding})}},M=async function(e,o,c){g.info("abc78 edges = ",e);let l=0,i={},p,u;if(e.defaultStyle!==void 0){const n=A(e.defaultStyle);p=n.style,u=n.labelStyle}for(const n of e){l++;const b="L-"+n.start+"-"+n.end;i[b]===void 0?(i[b]=0,g.info("abc78 new entry",b,i[b])):(i[b]++,g.info("abc78 new entry",b,i[b]));let r=b+"-"+i[b];g.info("abc78 new link id to be used is",b,r,i[b]);const y="LS-"+n.start,f="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",w="";switch(n.stroke){case"normal":s="fill:none;",p!==void 0&&(s=p),u!==void 0&&(w=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const a=A(n.style);s=a.style,w=a.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=w,n.interpolate!==void 0?t.curve=C(n.interpolate,E):e.defaultInterpolate!==void 0?t.curve=C(e.defaultInterpolate,E):t.curve=C(O.curve,E),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await j(n.text.replace(I.lineBreakRegex,`
|
|
2
|
+
`),v()),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+y+" "+f,o.setEdge(n.start,n.end,t,l)}},re=function(e,o){return o.db.getClasses()},oe=async function(e,o,c,l){g.info("Drawing flowchart");let i=l.db.getDirection();i===void 0&&(i="TD");const{securityLevel:p,flowchart:u}=v(),n=u.nodeSpacing||50,b=u.rankSpacing||50;let r;p==="sandbox"&&(r=_("#i"+o));const y=p==="sandbox"?_(r.nodes()[0].contentDocument.body):_("body"),f=p==="sandbox"?r.nodes()[0].contentDocument:document,t=new W({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:b,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const w=l.db.getSubGraphs();g.info("Subgraphs - ",w);for(let d=w.length-1;d>=0;d--)s=w[d],g.info("Subgraph - ",s),l.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const a=l.db.getVertices(),S=l.db.getEdges();g.info("Edges",S);let k=0;for(k=w.length-1;k>=0;k--){s=w[k],H("cluster").append("text");for(let d=0;d<s.nodes.length;d++)g.info("Setting up subgraphs",s.nodes[d],s.id),t.setParent(s.nodes[d],s.id)}await P(a,t,o,y,f,l),await M(S,t);const T=y.select(`[id="${o}"]`),$=y.select("#"+o+" g");if(await X($,t,["point","circle","cross"],"flowchart",o),R.insertTitle(T,"flowchartTitleText",u.titleTopMargin,l.db.getDiagramTitle()),V(t,T,u.diagramPadding,u.useMaxWidth),l.db.indexNodes("subGraph"+k),!u.htmlLabels){const d=f.querySelectorAll('[id="'+o+'"] .edgeLabel .label');for(const x of d){const m=x.getBBox(),h=f.createElementNS("http://www.w3.org/2000/svg","rect");h.setAttribute("rx",0),h.setAttribute("ry",0),h.setAttribute("width",m.width),h.setAttribute("height",m.height),x.insertBefore(h,x.firstChild)}}Object.keys(a).forEach(function(d){const x=a[d];if(x.link){const m=_("#"+o+' [id="'+d+'"]');if(m){const h=f.createElementNS("http://www.w3.org/2000/svg","a");h.setAttributeNS("http://www.w3.org/2000/svg","class",x.classes.join(" ")),h.setAttributeNS("http://www.w3.org/2000/svg","href",x.link),h.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),p==="sandbox"?h.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):x.linkTarget&&h.setAttributeNS("http://www.w3.org/2000/svg","target",x.linkTarget);const L=m.insert(function(){return h},":first-child"),N=m.select(".label-container");N&&L.append(function(){return N.node()});const D=m.select(".label");D&&L.append(function(){return D.node()})}}})},ue={setConf:te,addVertices:P,addEdges:M,getClasses:re,draw:oe},le=(e,o)=>{const c=Z,l=c(e,"r"),i=c(e,"g"),p=c(e,"b");return q(l,i,p,o)},ae=e=>`.label {
|
|
3
3
|
font-family: ${e.fontFamily};
|
|
4
4
|
color: ${e.nodeTextColor||e.textColor};
|
|
5
5
|
}
|
|
@@ -113,4 +113,4 @@ import{d as R,O as g,X as v,P as _,r as q,Q as F,v as E,h as C,j as B,H as P,U a
|
|
|
113
113
|
font-size: 18px;
|
|
114
114
|
fill: ${e.textColor};
|
|
115
115
|
}
|
|
116
|
-
`,fe=ae;export{
|
|
116
|
+
`,fe=ae;export{H as Z,pe as b,Q as e,be as f,fe as h,de as p,ee as t,we as u,ue as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aH as o,
|
|
1
|
+
import{aH as o,f as i}from"./index-CV3ovvq1.js";const x=(e,t)=>{const r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx!==void 0&&r.attr("rx",t.rx),t.ry!==void 0&&r.attr("ry",t.ry),t.attrs!==void 0)for(const a in t.attrs)r.attr(a,t.attrs[a]);return t.class!==void 0&&r.attr("class",t.class),r},c=(e,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(e,r).lower()},h=(e,t)=>{const r=t.text.replace(o," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),a},y=(e,t,r,a)=>{const s=e.append("image");s.attr("x",t),s.attr("y",r);const n=i.sanitizeUrl(a);s.attr("xlink:href",n)},p=(e,t,r,a)=>{const s=e.append("use");s.attr("x",t),s.attr("y",r);const n=i.sanitizeUrl(a);s.attr("xlink:href",`#${n}`)},d=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),f=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{h as d,f as g,y as h,x as l,d as p,c as x,p as y};
|