@sme.up/ketchup2 2.0.0-SNAPSHOT-20250908152453 → 2.0.0-SNAPSHOT-20250909094906
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_basePickBy-Bq-OHVlJ.js → _basePickBy-Do84EYM_.js} +23 -23
- package/dist/{_basePickBy-DNewzgl9.cjs → _basePickBy-jbGD0zVt.cjs} +1 -1
- package/dist/{_baseUniq-DUO9awf7.js → _baseUniq-ChWtQCAg.js} +40 -40
- package/dist/{_baseUniq-CQ7AOjch.cjs → _baseUniq-QOx9ZFk8.cjs} +1 -1
- package/dist/{arc-H_1C-9yW.cjs → arc-BIKBJW81.cjs} +1 -1
- package/dist/{arc-BC6Mnh_l.js → arc-ChfU56Id.js} +1 -1
- package/dist/{architecture-O4VJ6CD3-Bfi1Y3W3.cjs → architecture-O4VJ6CD3-3YFJqJ0Z.cjs} +1 -1
- package/dist/{architecture-O4VJ6CD3-B2_zBkXA.js → architecture-O4VJ6CD3-BUnL0V-N.js} +1 -1
- package/dist/{architectureDiagram-KFL7JDKH-Dzqraep6.js → architectureDiagram-W76B3OCA-CBK4zgfT.js} +132 -132
- package/dist/{architectureDiagram-KFL7JDKH-DOaG_WZV.cjs → architectureDiagram-W76B3OCA-CZqalw5r.cjs} +1 -1
- package/dist/{blockDiagram-ZYB65J3Q-BF5gB3wI.js → blockDiagram-QIGZ2CNN-D-oSz2sZ.js} +5 -5
- package/dist/{blockDiagram-ZYB65J3Q-0TfXbzbL.cjs → blockDiagram-QIGZ2CNN-GTeJnx7A.cjs} +4 -4
- package/dist/{c4Diagram-AAMF2YG6-CZutQWdQ.js → c4Diagram-FPNF74CW-ARWMN1wL.js} +2 -2
- package/dist/{c4Diagram-AAMF2YG6-BUdDUCAg.cjs → c4Diagram-FPNF74CW-CTzfs_2H.cjs} +4 -4
- package/dist/channel-B4Pxd4YX.cjs +1 -0
- package/dist/channel-DioWzi4t.js +5 -0
- package/dist/{chunk-ANTBXLJU-BdaEgFx7.js → chunk-4BX2VUAB-B3NOuiDi.js} +1 -1
- package/dist/{chunk-ANTBXLJU-DqW7nBC-.cjs → chunk-4BX2VUAB-CseI-Vvw.cjs} +1 -1
- package/dist/{chunk-WVR4S24B-Chw9GJ4r.cjs → chunk-55IACEB6-DWsrLxcl.cjs} +1 -1
- package/dist/{chunk-WVR4S24B-DkA4uS4H.js → chunk-55IACEB6-J1JahOGA.js} +1 -1
- package/dist/{chunk-GLLZNHP4-BA8r1pFP.cjs → chunk-FMBD7UC4-CM5L8bW6.cjs} +1 -1
- package/dist/{chunk-GLLZNHP4-DiiaqYXe.js → chunk-FMBD7UC4-CZgAaUUx.js} +1 -1
- package/dist/{chunk-JBRWN2VN-BaREAv8H.js → chunk-K7UQS3LO-BT7hVqcS.js} +176 -176
- package/dist/chunk-K7UQS3LO-CtzkJjTw.cjs +165 -0
- package/dist/{chunk-NRVI72HA-DLE8wk3-.js → chunk-QN33PNHL-DfPMtcCm.js} +1 -1
- package/dist/{chunk-NRVI72HA-DRmCDH9L.cjs → chunk-QN33PNHL-Djjr-gFo.cjs} +1 -1
- package/dist/{chunk-FHKO5MBM-DXqhRcMm.cjs → chunk-QZHKN3VN-D80R1Bnw.cjs} +1 -1
- package/dist/{chunk-FHKO5MBM-CzQq96F_.js → chunk-QZHKN3VN-DiLRWGZ4.js} +1 -1
- package/dist/{chunk-LXBSTHXV-DFifdLZK.js → chunk-TVAH2DTR-BUlQxrvQ.js} +3 -3
- package/dist/{chunk-LXBSTHXV-B0scQvN2.cjs → chunk-TVAH2DTR-OscPged-.cjs} +3 -3
- package/dist/{chunk-OMD6QJNC-BYvyUH2d.js → chunk-TZMSLE5B-BFDfGKmV.js} +1 -1
- package/dist/{chunk-OMD6QJNC-RjSGzdd8.cjs → chunk-TZMSLE5B-C4Bupww9.cjs} +1 -1
- package/dist/{classDiagram-v2-QTMF73CY-CAtFVXFw.js → classDiagram-KNZD7YFC-D2lEcWc2.js} +2 -2
- package/dist/{classDiagram-3BZAVTQC-BOmQDPcS.cjs → classDiagram-KNZD7YFC-DU5lVeNU.cjs} +1 -1
- package/dist/{classDiagram-3BZAVTQC-CAtFVXFw.js → classDiagram-v2-RKCZMP56-D2lEcWc2.js} +2 -2
- package/dist/{classDiagram-v2-QTMF73CY-BOmQDPcS.cjs → classDiagram-v2-RKCZMP56-DU5lVeNU.cjs} +1 -1
- package/dist/{clone-B-bAOLls.js → clone-BIRPLFeu.js} +1 -1
- package/dist/clone-Yz3NuvEr.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-BWGKRiDx.js +2608 -0
- package/dist/cose-bilkent-S5V4N54A-DL456FIj.cjs +1 -0
- package/dist/{dagre-2BBEFEWP-BCS301Dq.cjs → dagre-5GWH7T2D-N31ttJV3.cjs} +1 -1
- package/dist/{dagre-2BBEFEWP-CLTO8d-K.js → dagre-5GWH7T2D-gZxGoa1q.js} +108 -108
- package/dist/{diagram-4IRLE6MV-Cz4wPwXi.js → diagram-N5W7TBWH-BdTxNJib.js} +23 -23
- package/dist/{diagram-4IRLE6MV-_WYVJBfL.cjs → diagram-N5W7TBWH-Drncbwhp.cjs} +2 -2
- package/dist/{diagram-RP2FKANI-C_dWK3j7.cjs → diagram-QEK2KX5R-RjWKQ2ED.cjs} +4 -4
- package/dist/{diagram-RP2FKANI-CXmRNmBu.js → diagram-QEK2KX5R-WZI40S3K.js} +15 -15
- package/dist/{diagram-GUPCWM2R-CH-4x3WD.js → diagram-S2PKOQOG-B9JzzA2t.js} +10 -10
- package/dist/{diagram-GUPCWM2R-O4fOIHyx.cjs → diagram-S2PKOQOG-BNCnAE-c.cjs} +1 -1
- package/dist/{erDiagram-HZWUO2LU-uRisj4mV.cjs → erDiagram-AWTI2OKA-CC7O9cWw.cjs} +4 -4
- package/dist/{erDiagram-HZWUO2LU-Dqt1BE2C.js → erDiagram-AWTI2OKA-CHFxr-_a.js} +4 -4
- package/dist/{flowDiagram-THRYKUMA-C-r5MZds.js → flowDiagram-PVAE7QVJ-BqSE3m5u.js} +5 -5
- package/dist/{flowDiagram-THRYKUMA-bRWo210y.cjs → flowDiagram-PVAE7QVJ-HeYvgtJE.cjs} +7 -7
- package/dist/{ganttDiagram-WV7ZQ7D5-BVe9Yi12.js → ganttDiagram-OWAHRB6G-BP1W4LwQ.js} +57 -57
- package/dist/{ganttDiagram-WV7ZQ7D5-Dh9UR52T.cjs → ganttDiagram-OWAHRB6G-Cd3cccSw.cjs} +1 -1
- package/dist/{gitGraph-ZV4HHKMB-Bwp8pNLp.js → gitGraph-ZV4HHKMB-C3MJKIFJ.js} +1 -1
- package/dist/{gitGraph-ZV4HHKMB-rHh_4sTF.cjs → gitGraph-ZV4HHKMB-jdm9JJYB.cjs} +1 -1
- package/dist/{gitGraphDiagram-OJR772UL-BNm74Q9n.js → gitGraphDiagram-NY62KEGX-CAuDLddf.js} +4 -4
- package/dist/{gitGraphDiagram-OJR772UL-Bq60AaCq.cjs → gitGraphDiagram-NY62KEGX-MeKzzURg.cjs} +4 -4
- package/dist/{graph-BrGj_Gfv.cjs → graph-D6Um4HxB.cjs} +1 -1
- package/dist/{graph-CMnK4YO3.js → graph-Vhpd_PNV.js} +4 -4
- package/dist/index-DizklrOW.cjs +301 -0
- package/dist/{index-VJw3klPt.js → index-JAUwzcHq.js} +10075 -9464
- package/dist/info-63CPKGFF-BADmngvb.js +5 -0
- package/dist/{info-63CPKGFF-0H7FGkBP.cjs → info-63CPKGFF-CVwGg7sm.cjs} +1 -1
- package/dist/{infoDiagram-DDUCL6P7-Cf77NdxY.js → infoDiagram-STP46IZ2-BCtb4AJp.js} +2 -2
- package/dist/{infoDiagram-DDUCL6P7-DjqD8eRi.cjs → infoDiagram-STP46IZ2-TvwZFY0I.cjs} +1 -1
- package/dist/{journeyDiagram-FFXJYRFH-DtxrMVYZ.cjs → journeyDiagram-BIP6EPQ6-BpcOCeFx.cjs} +4 -4
- package/dist/{journeyDiagram-FFXJYRFH-C7_bJR3c.js → journeyDiagram-BIP6EPQ6-CyCYA5CK.js} +4 -4
- package/dist/{kanban-definition-KOZQBZVT-Bo9dRDl_.js → kanban-definition-6OIFK2YF-4YIBsMQL.js} +24 -24
- package/dist/{kanban-definition-KOZQBZVT-Bel-f3_i.cjs → kanban-definition-6OIFK2YF-__0ex79Z.cjs} +5 -5
- package/dist/ketchup2.cjs.js +1 -1
- package/dist/ketchup2.es.js +9 -9
- package/dist/{layout-Bt4IJcSa.cjs → layout-4fomnJM7.cjs} +1 -1
- package/dist/{layout-kUC11kUc.js → layout-DtdTzvka.js} +32 -32
- package/dist/{linear-BDcEY_LY.js → linear-BFBJjwEz.js} +12 -12
- package/dist/{linear-50cMYwZQ.cjs → linear-DqF6L3Zm.cjs} +1 -1
- package/dist/{mermaid-parser.core-Bxkmx2-5.cjs → mermaid-parser.core-CySFdxC3.cjs} +2 -2
- package/dist/{mermaid-parser.core-BnvQOoyE.js → mermaid-parser.core-DX0wl6-K.js} +11 -11
- package/dist/mindmap-definition-Q6HEUPPD-DS17jgrc.cjs +68 -0
- package/dist/mindmap-definition-Q6HEUPPD-xX1MDaCF.js +755 -0
- package/dist/{packet-HUATNLJX-DaHhWwAU.js → packet-HUATNLJX-BYVUpbG6.js} +1 -1
- package/dist/{packet-HUATNLJX-6TXP1bqK.cjs → packet-HUATNLJX-Cg3sBc6j.cjs} +1 -1
- package/dist/pie-WTHONI2E-8_e9e1PJ.js +5 -0
- package/dist/{pie-WTHONI2E-AzeewyiY.cjs → pie-WTHONI2E-aHt6d3si.cjs} +1 -1
- package/dist/{pieDiagram-DBDJKBY4-DBzbWAu9.js → pieDiagram-ADFJNKIX-B8i8yWnV.js} +25 -25
- package/dist/{pieDiagram-DBDJKBY4-W8GACAWO.cjs → pieDiagram-ADFJNKIX-DT0Ws9pS.cjs} +3 -3
- package/dist/{quadrantDiagram-YPSRARAO-mnX6YljL.js → quadrantDiagram-LMRXKWRM-BhJb9RD_.js} +2 -2
- package/dist/{quadrantDiagram-YPSRARAO-BjYPzvUJ.cjs → quadrantDiagram-LMRXKWRM-DtGKIjme.cjs} +1 -1
- package/dist/{radar-NJJJXTRR-BocemfZ8.cjs → radar-NJJJXTRR-BAYIFlfJ.cjs} +1 -1
- package/dist/radar-NJJJXTRR-zWC19E7g.js +5 -0
- package/dist/{requirementDiagram-EGVEC5DT-Bimu3sL7.cjs → requirementDiagram-4UW4RH46-CVZ_dXqx.cjs} +4 -4
- package/dist/{requirementDiagram-EGVEC5DT-B9Bwf2ay.js → requirementDiagram-4UW4RH46-DAI3Uiz3.js} +3 -3
- package/dist/{sankeyDiagram-HRAUVNP4-DzXnX0Ga.js → sankeyDiagram-GR3RE2ED-BXuYlJUa.js} +1 -1
- package/dist/{sankeyDiagram-HRAUVNP4-DJiyVYTm.cjs → sankeyDiagram-GR3RE2ED-DKDgKlXn.cjs} +1 -1
- package/dist/sequenceDiagram-C3RYC4MD-CIIj5p5i.cjs +145 -0
- package/dist/sequenceDiagram-C3RYC4MD-DW6rFBHn.js +2511 -0
- package/dist/{stateDiagram-UUKSUZ4H-DNsbUQC8.cjs → stateDiagram-KXAO66HF-DHLO3kOk.cjs} +1 -1
- package/dist/{stateDiagram-UUKSUZ4H-BfB7OKY5.js → stateDiagram-KXAO66HF-ZTmYAzzc.js} +4 -4
- package/dist/{stateDiagram-v2-EYPG3UTE-k2P5SO6h.cjs → stateDiagram-v2-UMBNRL4Z-1TzBIAjq.cjs} +1 -1
- package/dist/{stateDiagram-v2-EYPG3UTE-CrbgZXhp.js → stateDiagram-v2-UMBNRL4Z-8NUwdmML.js} +2 -2
- package/dist/{timeline-definition-3HZDQTIS-CJz-ObCi.cjs → timeline-definition-XQNQX7LJ-CtFKMZOO.cjs} +1 -1
- package/dist/{timeline-definition-3HZDQTIS-TVmN8Z80.js → timeline-definition-XQNQX7LJ-D4fALhvp.js} +2 -2
- package/dist/{treemap-75Q7IDZK-MVFNLG-W.cjs → treemap-75Q7IDZK-DH4yrCnW.cjs} +1 -1
- package/dist/{treemap-75Q7IDZK-CbpJhl6F.js → treemap-75Q7IDZK-tSdwGttm.js} +1 -1
- package/dist/{xychartDiagram-FDP5SA34-QzZvVH2o.js → xychartDiagram-6GGTOJPD-CRUaY0o_.js} +2 -2
- package/dist/{xychartDiagram-FDP5SA34-kb-QmiwQ.cjs → xychartDiagram-6GGTOJPD-vmeOyvTD.cjs} +1 -1
- package/package.json +13 -13
- package/dist/channel-D7-lFnTD.js +0 -5
- package/dist/channel-DveM5GOL.cjs +0 -1
- package/dist/chunk-JBRWN2VN-4oDxplqY.cjs +0 -165
- package/dist/clone-C0dQSPFZ.cjs +0 -1
- package/dist/index-BA07EijG.cjs +0 -266
- package/dist/info-63CPKGFF-CV7HrEKO.js +0 -5
- package/dist/mindmap-definition-LNHGMQRG-CVh0vQd5.js +0 -3230
- package/dist/mindmap-definition-LNHGMQRG-qQmqPKl8.cjs +0 -95
- package/dist/pie-WTHONI2E-Cq9zrqsG.js +0 -5
- package/dist/radar-NJJJXTRR-Yz9jsEDT.js +0 -5
- package/dist/sequenceDiagram-4MX5Z3NR-DHUCnBgG.cjs +0 -122
- package/dist/sequenceDiagram-4MX5Z3NR-DuaMVfG7.js +0 -2281
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";const Xe=require("./chunk-FMBD7UC4-CM5L8bW6.cjs"),qe=require("./chunk-55IACEB6-DWsrLxcl.cjs"),He=require("./chunk-QN33PNHL-Djjr-gFo.cjs"),n=require("./index-DizklrOW.cjs");var Le=function(){var s=n.__name(function(x,c,h,p){for(h=h||{},p=x.length;p--;h[x[p]]=c);return h},"o"),i=[1,18],a=[1,19],l=[1,20],o=[1,41],r=[1,42],A=[1,26],f=[1,24],g=[1,25],D=[1,32],N=[1,33],ce=[1,34],C=[1,45],he=[1,35],de=[1,36],pe=[1,37],Ae=[1,38],fe=[1,27],me=[1,28],ge=[1,29],Ce=[1,30],be=[1,31],b=[1,44],y=[1,46],E=[1,43],_=[1,47],ye=[1,9],d=[1,8,9],J=[1,58],Z=[1,59],$=[1,60],ee=[1,61],te=[1,62],Ee=[1,63],_e=[1,64],R=[1,8,9,41],xe=[1,76],w=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],se=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ie=[13,60,86,100,102,103],G=[13,60,73,74,86,100,102,103],ve=[13,60,68,69,70,71,72,86,100,102,103],Te=[1,100],U=[1,117],z=[1,113],K=[1,109],Y=[1,115],Q=[1,110],W=[1,111],j=[1,112],X=[1,114],q=[1,116],Ie=[22,48,60,61,82,86,87,88,89,90],ke=[1,8,9,39,41,44],ae=[1,8,9,22],Oe=[1,145],we=[1,8,9,61],S=[1,8,9,22,48,60,61,82,86,87,88,89,90],De={trace:n.__name(function(){},"trace"),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,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:n.__name(function(c,h,p,u,m,e,H){var t=e.length-1;switch(m){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:u.addRelation(e[t]);break;case 20:e[t-1].title=u.cleanupLabel(e[t]),u.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),u.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),u.setAccDescription(this.$);break;case 34:u.addClassesToNamespace(e[t-3],e[t-1]);break;case 35:u.addClassesToNamespace(e[t-4],e[t-1]);break;case 36:this.$=e[t],u.addNamespace(e[t]);break;case 37:this.$=[e[t]];break;case 38:this.$=[e[t-1]];break;case 39:e[t].unshift(e[t-2]),this.$=e[t];break;case 41:u.setCssClass(e[t-2],e[t]);break;case 42:u.addMembers(e[t-3],e[t-1]);break;case 44:u.setCssClass(e[t-5],e[t-3]),u.addMembers(e[t-5],e[t-1]);break;case 45:this.$=e[t],u.addClass(e[t]);break;case 46:this.$=e[t-1],u.addClass(e[t-1]),u.setClassLabel(e[t-1],e[t]);break;case 50:u.addAnnotation(e[t],e[t-2]);break;case 51:case 64:this.$=[e[t]];break;case 52:e[t].push(e[t-1]),this.$=e[t];break;case 53:break;case 54:u.addMember(e[t-1],u.cleanupLabel(e[t]));break;case 55:break;case 56:break;case 57:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 59:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 60:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 61:u.addNote(e[t],e[t-1]);break;case 62:u.addNote(e[t]);break;case 63:this.$=e[t-2],u.defineClass(e[t-1],e[t]);break;case 65:this.$=e[t-2].concat([e[t]]);break;case 66:u.setDirection("TB");break;case 67:u.setDirection("BT");break;case 68:u.setDirection("RL");break;case 69:u.setDirection("LR");break;case 70:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 71:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 72:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 73:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 74:this.$=u.relationType.AGGREGATION;break;case 75:this.$=u.relationType.EXTENSION;break;case 76:this.$=u.relationType.COMPOSITION;break;case 77:this.$=u.relationType.DEPENDENCY;break;case 78:this.$=u.relationType.LOLLIPOP;break;case 79:this.$=u.lineType.LINE;break;case 80:this.$=u.lineType.DOTTED_LINE;break;case 81:case 87:this.$=e[t-2],u.setClickEvent(e[t-1],e[t]);break;case 82:case 88:this.$=e[t-3],u.setClickEvent(e[t-2],e[t-1]),u.setTooltip(e[t-2],e[t]);break;case 83:this.$=e[t-2],u.setLink(e[t-1],e[t]);break;case 84:this.$=e[t-3],u.setLink(e[t-2],e[t-1],e[t]);break;case 85:this.$=e[t-3],u.setLink(e[t-2],e[t-1]),u.setTooltip(e[t-2],e[t]);break;case 86:this.$=e[t-4],u.setLink(e[t-3],e[t-2],e[t]),u.setTooltip(e[t-3],e[t-1]);break;case 89:this.$=e[t-3],u.setClickEvent(e[t-2],e[t-1],e[t]);break;case 90:this.$=e[t-4],u.setClickEvent(e[t-3],e[t-2],e[t-1]),u.setTooltip(e[t-3],e[t]);break;case 91:this.$=e[t-3],u.setLink(e[t-2],e[t]);break;case 92:this.$=e[t-4],u.setLink(e[t-3],e[t-1],e[t]);break;case 93:this.$=e[t-4],u.setLink(e[t-3],e[t-1]),u.setTooltip(e[t-3],e[t]);break;case 94:this.$=e[t-5],u.setLink(e[t-4],e[t-2],e[t]),u.setTooltip(e[t-4],e[t-1]);break;case 95:this.$=e[t-2],u.setCssStyle(e[t-1],e[t]);break;case 96:u.setCssClass(e[t-1],e[t]);break;case 97:this.$=[e[t]];break;case 98:e[t-2].push(e[t]),this.$=e[t-2];break;case 100:this.$=e[t-1]+e[t];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:o,43:23,46:r,49:A,51:f,52:g,54:D,56:N,57:ce,60:C,62:he,63:de,64:pe,65:Ae,75:fe,76:me,78:ge,82:Ce,83:be,86:b,100:y,102:E,103:_},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(ye,[2,5],{8:[1,48]}),{8:[1,49]},s(d,[2,19],{22:[1,50]}),s(d,[2,21]),s(d,[2,22]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),{34:[1,51]},{36:[1,52]},s(d,[2,33]),s(d,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:J,69:Z,70:$,71:ee,72:te,73:Ee,74:_e}),{39:[1,65]},s(R,[2,40],{39:[1,67],44:[1,66]}),s(d,[2,55]),s(d,[2,56]),{16:68,60:C,86:b,100:y,102:E},{16:39,17:40,19:69,60:C,86:b,100:y,102:E,103:_},{16:39,17:40,19:70,60:C,86:b,100:y,102:E,103:_},{16:39,17:40,19:71,60:C,86:b,100:y,102:E,103:_},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:C,86:b,100:y,102:E,103:_},{13:xe,55:75},{58:77,60:[1,78]},s(d,[2,66]),s(d,[2,67]),s(d,[2,68]),s(d,[2,69]),s(w,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:C,86:b,100:y,102:E,103:_}),s(w,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:C,86:b,100:y,102:E,103:_},{16:39,17:40,19:86,60:C,86:b,100:y,102:E,103:_},s(se,[2,123]),s(se,[2,124]),s(se,[2,125]),s(se,[2,126]),s([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),s(ye,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:a,37:l,42:o,46:r,49:A,51:f,52:g,54:D,56:N,57:ce,60:C,62:he,63:de,64:pe,65:Ae,75:fe,76:me,78:ge,82:Ce,83:be,86:b,100:y,102:E,103:_}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:o,43:23,46:r,49:A,51:f,52:g,54:D,56:N,57:ce,60:C,62:he,63:de,64:pe,65:Ae,75:fe,76:me,78:ge,82:Ce,83:be,86:b,100:y,102:E,103:_},s(d,[2,20]),s(d,[2,31]),s(d,[2,32]),{13:[1,90],16:39,17:40,19:89,60:C,86:b,100:y,102:E,103:_},{53:91,66:56,67:57,68:J,69:Z,70:$,71:ee,72:te,73:Ee,74:_e},s(d,[2,54]),{67:92,73:Ee,74:_e},s(ie,[2,73],{66:93,68:J,69:Z,70:$,71:ee,72:te}),s(G,[2,74]),s(G,[2,75]),s(G,[2,76]),s(G,[2,77]),s(G,[2,78]),s(ve,[2,79]),s(ve,[2,80]),{8:[1,95],24:96,40:94,43:23,46:r},{16:97,60:C,86:b,100:y,102:E},{41:[1,99],45:98,51:Te},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:U,48:z,59:106,60:K,82:Y,84:107,85:108,86:Q,87:W,88:j,89:X,90:q},{60:[1,118]},{13:xe,55:119},s(d,[2,62]),s(d,[2,128]),{22:U,48:z,59:120,60:K,61:[1,121],82:Y,84:107,85:108,86:Q,87:W,88:j,89:X,90:q},s(Ie,[2,64]),{16:39,17:40,19:122,60:C,86:b,100:y,102:E,103:_},s(w,[2,16]),s(w,[2,17]),s(w,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:C,86:b,100:y,102:E,103:_},{39:[2,10]},s(ke,[2,45],{11:125,12:[1,126]}),s(ye,[2,7]),{9:[1,127]},s(ae,[2,57]),{16:39,17:40,19:128,60:C,86:b,100:y,102:E,103:_},{13:[1,130],16:39,17:40,19:129,60:C,86:b,100:y,102:E,103:_},s(ie,[2,72],{66:131,68:J,69:Z,70:$,71:ee,72:te}),s(ie,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:r},{8:[1,134],41:[2,37]},s(R,[2,41],{39:[1,135]}),{41:[1,136]},s(R,[2,43]),{41:[2,51],45:137,51:Te},{16:39,17:40,19:138,60:C,86:b,100:y,102:E,103:_},s(d,[2,81],{13:[1,139]}),s(d,[2,83],{13:[1,141],77:[1,140]}),s(d,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},s(d,[2,95],{61:Oe}),s(we,[2,97],{85:146,22:U,48:z,60:K,82:Y,86:Q,87:W,88:j,89:X,90:q}),s(S,[2,99]),s(S,[2,101]),s(S,[2,102]),s(S,[2,103]),s(S,[2,104]),s(S,[2,105]),s(S,[2,106]),s(S,[2,107]),s(S,[2,108]),s(S,[2,109]),s(d,[2,96]),s(d,[2,61]),s(d,[2,63],{61:Oe}),{60:[1,147]},s(w,[2,14]),{15:148,16:84,17:85,60:C,86:b,100:y,102:E,103:_},{39:[2,12]},s(ke,[2,46]),{13:[1,149]},{1:[2,4]},s(ae,[2,59]),s(ae,[2,58]),{16:39,17:40,19:150,60:C,86:b,100:y,102:E,103:_},s(ie,[2,70]),s(d,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:r},{45:153,51:Te},s(R,[2,42]),{41:[2,52]},s(d,[2,50]),s(d,[2,82]),s(d,[2,84]),s(d,[2,85],{77:[1,154]}),s(d,[2,88]),s(d,[2,89],{13:[1,155]}),s(d,[2,91],{13:[1,157],77:[1,156]}),{22:U,48:z,60:K,82:Y,84:158,85:108,86:Q,87:W,88:j,89:X,90:q},s(S,[2,100]),s(Ie,[2,65]),{39:[2,11]},{14:[1,159]},s(ae,[2,60]),s(d,[2,35]),{41:[2,39]},{41:[1,160]},s(d,[2,86]),s(d,[2,90]),s(d,[2,92]),s(d,[2,93],{77:[1,161]}),s(we,[2,98],{85:146,22:U,48:z,60:K,82:Y,86:Q,87:W,88:j,89:X,90:q}),s(ke,[2,8]),s(R,[2,44]),s(d,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:n.__name(function(c,h){if(h.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=h,p}},"parseError"),parse:n.__name(function(c){var h=this,p=[0],u=[],m=[null],e=[],H=this.table,t="",re=0,Ve=0,Ye=2,Pe=1,Qe=e.slice.call(arguments,1),T=Object.create(this.lexer),v={yy:{}};for(var Fe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Fe)&&(v.yy[Fe]=this.yy[Fe]);T.setInput(c,v.yy),v.yy.lexer=T,v.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var Be=T.yylloc;e.push(Be);var We=T.options&&T.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(F){p.length=p.length-2*F,m.length=m.length-F,e.length=e.length-F}n.__name(je,"popStack");function Me(){var F;return F=u.pop()||T.lex()||Pe,typeof F!="number"&&(F instanceof Array&&(u=F,F=u.pop()),F=h.symbols_[F]||F),F}n.__name(Me,"lex");for(var k,I,B,Se,V={},ue,L,Re,le;;){if(I=p[p.length-1],this.defaultActions[I]?B=this.defaultActions[I]:((k===null||typeof k>"u")&&(k=Me()),B=H[I]&&H[I][k]),typeof B>"u"||!B.length||!B[0]){var Ne="";le=[];for(ue in H[I])this.terminals_[ue]&&ue>Ye&&le.push("'"+this.terminals_[ue]+"'");T.showPosition?Ne="Parse error on line "+(re+1)+`:
|
|
2
|
+
`+T.showPosition()+`
|
|
3
|
+
Expecting `+le.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Ne="Parse error on line "+(re+1)+": Unexpected "+(k==Pe?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Ne,{text:T.match,token:this.terminals_[k]||k,line:T.yylineno,loc:Be,expected:le})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+k);switch(B[0]){case 1:p.push(k),m.push(T.yytext),e.push(T.yylloc),p.push(B[1]),k=null,Ve=T.yyleng,t=T.yytext,re=T.yylineno,Be=T.yylloc;break;case 2:if(L=this.productions_[B[1]][1],V.$=m[m.length-L],V._$={first_line:e[e.length-(L||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(L||1)].first_column,last_column:e[e.length-1].last_column},We&&(V._$.range=[e[e.length-(L||1)].range[0],e[e.length-1].range[1]]),Se=this.performAction.apply(V,[t,Ve,re,v.yy,B[1],m,e].concat(Qe)),typeof Se<"u")return Se;L&&(p=p.slice(0,-1*L*2),m=m.slice(0,-1*L),e=e.slice(0,-1*L)),p.push(this.productions_[B[1]][0]),m.push(V.$),e.push(V._$),Re=H[p[p.length-2]][p[p.length-1]],p.push(Re);break;case 3:return!0}}return!0},"parse")},Ke=function(){var x={EOF:1,parseError:n.__name(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),setInput:n.__name(function(c,h){return this.yy=h||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var h=c.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:n.__name(function(c){var h=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var m=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:p?(p.length===u.length?this.yylloc.first_column:0)+u[u.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(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
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(c){this.unput(this.match.slice(c))},"less"),pastInput:n.__name(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var c=this.pastInput(),h=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
|
|
5
|
+
`+h+"^"},"showPosition"),test_match:n.__name(function(c,h){var p,u,m;if(this.options.backtrack_lexer&&(m={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&&(m.yylloc.range=this.yylloc.range.slice(0))),u=c[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,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(c[0].length),this.matched+=c[0],p=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var e in m)this[e]=m[e];return!1}return!1},"test_match"),next:n.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,h,p,u;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),e=0;e<m.length;e++)if(p=this._input.match(this.rules[m[e]]),p&&(!h||p[0].length>h[0].length)){if(h=p,u=e,this.options.backtrack_lexer){if(c=this.test_match(p,m[e]),c!==!1)return c;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(c=this.test_match(h,m[u]),c!==!1?c:!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})},"next"),lex:n.__name(function(){var h=this.next();return h||this.lex()},"lex"),begin:n.__name(function(h){this.conditionStack.push(h)},"begin"),popState:n.__name(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:n.__name(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:n.__name(function(h){this.begin(h)},"pushState"),stateStackSize:n.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:n.__name(function(h,p,u,m){switch(u){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;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 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:return this.popState(),41;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),46;case 39:return this.popState(),8;case 40:break;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 43:return this.popState(),41;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 49;case 56:return 50;case 57:return 81;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:return 77;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 69;case 69:return 69;case 70:return 71;case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:return 89;case 85:return 89;case 86:return 90;case 87:return"EQUALS";case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:return 48;case 96:return 48;case 97:return 9}},"anonymous"),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)/,/^(?:classDef\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,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,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,97],inclusive:!0}}};return x}();De.lexer=Ke;function ne(){this.yy={}}return n.__name(ne,"Parser"),ne.prototype=De,De.Parser=ne,new ne}();Le.parser=Le;var Je=Le,Ge=["#","+","~","-",""],P,Ue=(P=class{constructor(i,a){this.memberType=a,this.visibility="",this.classifier="",this.text="";const l=n.sanitizeText(i,n.getConfig2());this.parseMember(l)}getDisplayDetails(){let i=this.visibility+n.parseGenericTypes(this.id);this.memberType==="method"&&(i+=`(${n.parseGenericTypes(this.parameters.trim())})`,this.returnType&&(i+=" : "+n.parseGenericTypes(this.returnType))),i=i.trim();const a=this.parseClassifier();return{displayText:i,cssStyle:a}}parseMember(i){let a="";if(this.memberType==="method"){const r=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);if(r){const A=r[1]?r[1].trim():"";if(Ge.includes(A)&&(this.visibility=A),this.id=r[2],this.parameters=r[3]?r[3].trim():"",a=r[4]?r[4].trim():"",this.returnType=r[5]?r[5].trim():"",a===""){const f=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(f)&&(a=f,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const o=i.length,r=i.substring(0,1),A=i.substring(o-1);Ge.includes(r)&&(this.visibility=r),/[$*]/.exec(A)&&(a=A),this.id=i.substring(this.visibility===""?0:1,a===""?o:o-1)}this.classifier=a,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const l=`${this.visibility?"\\"+this.visibility:""}${n.parseGenericTypes(this.id)}${this.memberType==="method"?`(${n.parseGenericTypes(this.parameters)})${this.returnType?" : "+n.parseGenericTypes(this.returnType):""}`:""}`;this.text=l.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},n.__name(P,"ClassMember"),P),oe="classId-",ze=0,O=n.__name(s=>n.common_default.sanitizeText(s,n.getConfig2()),"sanitizeText"),M,Ze=(M=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=[],this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=n.__name(i=>{let a=n.select(".mermaidTooltip");(a._groups||a)[0][0]===null&&(a=n.select("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),n.select(i).select("svg").selectAll("g.node").on("mouseover",r=>{const A=n.select(r.currentTarget);if(A.attr("title")===null)return;const g=this.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.text(A.attr("title")).style("left",window.scrollX+g.left+(g.right-g.left)/2+"px").style("top",window.scrollY+g.top-14+document.body.scrollTop+"px"),a.html(a.html().replace(/<br\/>/g,"<br/>")),A.classed("hover",!0)}).on("mouseout",r=>{a.transition().duration(500).style("opacity",0),n.select(r.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=n.setAccTitle,this.getAccTitle=n.getAccTitle,this.setAccDescription=n.setAccDescription,this.getAccDescription=n.getAccDescription,this.setDiagramTitle=n.setDiagramTitle,this.getDiagramTitle=n.getDiagramTitle,this.getConfig=n.__name(()=>n.getConfig2().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(i){const a=n.common_default.sanitizeText(i,n.getConfig2());let l="",o=a;if(a.indexOf("~")>0){const r=a.split("~");o=O(r[0]),l=O(r[1])}return{className:o,type:l}}setClassLabel(i,a){const l=n.common_default.sanitizeText(i,n.getConfig2());a&&(a=O(a));const{className:o}=this.splitClassNameAndType(l);this.classes.get(o).label=a,this.classes.get(o).text=`${a}${this.classes.get(o).type?`<${this.classes.get(o).type}>`:""}`}addClass(i){const a=n.common_default.sanitizeText(i,n.getConfig2()),{className:l,type:o}=this.splitClassNameAndType(a);if(this.classes.has(l))return;const r=n.common_default.sanitizeText(l,n.getConfig2());this.classes.set(r,{id:r,type:o,label:r,text:`${r}${o?`<${o}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:oe+r+"-"+ze}),ze++}addInterface(i,a){const l={id:`interface${this.interfaces.length}`,label:i,classId:a};this.interfaces.push(l)}lookUpDomId(i){const a=n.common_default.sanitizeText(i,n.getConfig2());if(this.classes.has(a))return this.classes.get(a).domId;throw new Error("Class not found: "+a)}clear(){this.relations=[],this.classes=new Map,this.notes=[],this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.direction="TB",n.clear()}getClass(i){return this.classes.get(i)}getClasses(){return this.classes}getRelations(){return this.relations}getNotes(){return this.notes}addRelation(i){n.log.debug("Adding relation: "+JSON.stringify(i));const a=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];i.relation.type1===this.relationType.LOLLIPOP&&!a.includes(i.relation.type2)?(this.addClass(i.id2),this.addInterface(i.id1,i.id2),i.id1=`interface${this.interfaces.length-1}`):i.relation.type2===this.relationType.LOLLIPOP&&!a.includes(i.relation.type1)?(this.addClass(i.id1),this.addInterface(i.id2,i.id1),i.id2=`interface${this.interfaces.length-1}`):(this.addClass(i.id1),this.addClass(i.id2)),i.id1=this.splitClassNameAndType(i.id1).className,i.id2=this.splitClassNameAndType(i.id2).className,i.relationTitle1=n.common_default.sanitizeText(i.relationTitle1.trim(),n.getConfig2()),i.relationTitle2=n.common_default.sanitizeText(i.relationTitle2.trim(),n.getConfig2()),this.relations.push(i)}addAnnotation(i,a){const l=this.splitClassNameAndType(i).className;this.classes.get(l).annotations.push(a)}addMember(i,a){this.addClass(i);const l=this.splitClassNameAndType(i).className,o=this.classes.get(l);if(typeof a=="string"){const r=a.trim();r.startsWith("<<")&&r.endsWith(">>")?o.annotations.push(O(r.substring(2,r.length-2))):r.indexOf(")")>0?o.methods.push(new Ue(r,"method")):r&&o.members.push(new Ue(r,"attribute"))}}addMembers(i,a){Array.isArray(a)&&(a.reverse(),a.forEach(l=>this.addMember(i,l)))}addNote(i,a){const l={id:`note${this.notes.length}`,class:a,text:i};this.notes.push(l)}cleanupLabel(i){return i.startsWith(":")&&(i=i.substring(1)),O(i.trim())}setCssClass(i,a){i.split(",").forEach(l=>{let o=l;/\d/.exec(l[0])&&(o=oe+o);const r=this.classes.get(o);r&&(r.cssClasses+=" "+a)})}defineClass(i,a){for(const l of i){let o=this.styleClasses.get(l);o===void 0&&(o={id:l,styles:[],textStyles:[]},this.styleClasses.set(l,o)),a&&a.forEach(r=>{if(/color/.exec(r)){const A=r.replace("fill","bgFill");o.textStyles.push(A)}o.styles.push(r)}),this.classes.forEach(r=>{r.cssClasses.includes(l)&&r.styles.push(...a.flatMap(A=>A.split(",")))})}}setTooltip(i,a){i.split(",").forEach(l=>{a!==void 0&&(this.classes.get(l).tooltip=O(a))})}getTooltip(i,a){return a&&this.namespaces.has(a)?this.namespaces.get(a).classes.get(i).tooltip:this.classes.get(i).tooltip}setLink(i,a,l){const o=n.getConfig2();i.split(",").forEach(r=>{let A=r;/\d/.exec(r[0])&&(A=oe+A);const f=this.classes.get(A);f&&(f.link=n.utils_default.formatUrl(a,o),o.securityLevel==="sandbox"?f.linkTarget="_top":typeof l=="string"?f.linkTarget=O(l):f.linkTarget="_blank")}),this.setCssClass(i,"clickable")}setClickEvent(i,a,l){i.split(",").forEach(o=>{this.setClickFunc(o,a,l),this.classes.get(o).haveCallback=!0}),this.setCssClass(i,"clickable")}setClickFunc(i,a,l){const o=n.common_default.sanitizeText(i,n.getConfig2());if(n.getConfig2().securityLevel!=="loose"||a===void 0)return;const A=o;if(this.classes.has(A)){const f=this.lookUpDomId(A);let g=[];if(typeof l=="string"){g=l.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let D=0;D<g.length;D++){let N=g[D].trim();N.startsWith('"')&&N.endsWith('"')&&(N=N.substr(1,N.length-2)),g[D]=N}}g.length===0&&g.push(f),this.functions.push(()=>{const D=document.querySelector(`[id="${f}"]`);D!==null&&D.addEventListener("click",()=>{n.utils_default.runFunc(a,...g)},!1)})}}bindFunctions(i){this.functions.forEach(a=>{a(i)})}getDirection(){return this.direction}setDirection(i){this.direction=i}addNamespace(i){this.namespaces.has(i)||(this.namespaces.set(i,{id:i,classes:new Map,children:{},domId:oe+i+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(i){return this.namespaces.get(i)}getNamespaces(){return this.namespaces}addClassesToNamespace(i,a){if(this.namespaces.has(i))for(const l of a){const{className:o}=this.splitClassNameAndType(l);this.classes.get(o).parent=i,this.namespaces.get(i).classes.set(o,this.classes.get(o))}}setCssStyle(i,a){const l=this.classes.get(i);if(!(!a||!l))for(const o of a)o.includes(",")?l.styles.push(...o.split(",")):l.styles.push(o)}getArrowMarker(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}getData(){const i=[],a=[],l=n.getConfig2();for(const r of this.namespaces.keys()){const A=this.namespaces.get(r);if(A){const f={id:A.id,label:A.id,isGroup:!0,padding:l.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:l.look};i.push(f)}}for(const r of this.classes.keys()){const A=this.classes.get(r);if(A){const f=A;f.parentId=A.parent,f.look=l.look,i.push(f)}}let o=0;for(const r of this.notes){o++;const A={id:r.id,label:r.text,isGroup:!1,shape:"note",padding:l.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${l.themeVariables.noteBkgColor}`,`stroke: ${l.themeVariables.noteBorderColor}`],look:l.look};i.push(A);const f=this.classes.get(r.class)?.id??"";if(f){const g={id:`edgeNote${o}`,start:r.id,end:f,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:l.look};a.push(g)}}for(const r of this.interfaces){const A={id:r.id,label:r.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:l.look};i.push(A)}o=0;for(const r of this.relations){o++;const A={id:n.getEdgeId(r.id1,r.id2,{prefix:"id",counter:o}),start:r.id1,end:r.id2,type:"normal",label:r.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(r.relation.type1),arrowTypeEnd:this.getArrowMarker(r.relation.type2),startLabelRight:r.relationTitle1==="none"?"":r.relationTitle1,endLabelLeft:r.relationTitle2==="none"?"":r.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:r.style||"",pattern:r.relation.lineType==1?"dashed":"solid",look:l.look};a.push(A)}return{nodes:i,edges:a,other:{},config:l,direction:this.getDirection()}}},n.__name(M,"ClassDB"),M),$e=n.__name(s=>`g.classGroup text {
|
|
7
|
+
fill: ${s.nodeBorder||s.classText};
|
|
8
|
+
stroke: none;
|
|
9
|
+
font-family: ${s.fontFamily};
|
|
10
|
+
font-size: 10px;
|
|
11
|
+
|
|
12
|
+
.title {
|
|
13
|
+
font-weight: bolder;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.nodeLabel, .edgeLabel {
|
|
19
|
+
color: ${s.classText};
|
|
20
|
+
}
|
|
21
|
+
.edgeLabel .label rect {
|
|
22
|
+
fill: ${s.mainBkg};
|
|
23
|
+
}
|
|
24
|
+
.label text {
|
|
25
|
+
fill: ${s.classText};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.labelBkg {
|
|
29
|
+
background: ${s.mainBkg};
|
|
30
|
+
}
|
|
31
|
+
.edgeLabel .label span {
|
|
32
|
+
background: ${s.mainBkg};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.classTitle {
|
|
36
|
+
font-weight: bolder;
|
|
37
|
+
}
|
|
38
|
+
.node rect,
|
|
39
|
+
.node circle,
|
|
40
|
+
.node ellipse,
|
|
41
|
+
.node polygon,
|
|
42
|
+
.node path {
|
|
43
|
+
fill: ${s.mainBkg};
|
|
44
|
+
stroke: ${s.nodeBorder};
|
|
45
|
+
stroke-width: 1px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
.divider {
|
|
50
|
+
stroke: ${s.nodeBorder};
|
|
51
|
+
stroke-width: 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
g.clickable {
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
g.classGroup rect {
|
|
59
|
+
fill: ${s.mainBkg};
|
|
60
|
+
stroke: ${s.nodeBorder};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
g.classGroup line {
|
|
64
|
+
stroke: ${s.nodeBorder};
|
|
65
|
+
stroke-width: 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.classLabel .box {
|
|
69
|
+
stroke: none;
|
|
70
|
+
stroke-width: 0;
|
|
71
|
+
fill: ${s.mainBkg};
|
|
72
|
+
opacity: 0.5;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.classLabel .label {
|
|
76
|
+
fill: ${s.nodeBorder};
|
|
77
|
+
font-size: 10px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.relation {
|
|
81
|
+
stroke: ${s.lineColor};
|
|
82
|
+
stroke-width: 1;
|
|
83
|
+
fill: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.dashed-line{
|
|
87
|
+
stroke-dasharray: 3;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.dotted-line{
|
|
91
|
+
stroke-dasharray: 1 2;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
#compositionStart, .composition {
|
|
95
|
+
fill: ${s.lineColor} !important;
|
|
96
|
+
stroke: ${s.lineColor} !important;
|
|
97
|
+
stroke-width: 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
#compositionEnd, .composition {
|
|
101
|
+
fill: ${s.lineColor} !important;
|
|
102
|
+
stroke: ${s.lineColor} !important;
|
|
103
|
+
stroke-width: 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
#dependencyStart, .dependency {
|
|
107
|
+
fill: ${s.lineColor} !important;
|
|
108
|
+
stroke: ${s.lineColor} !important;
|
|
109
|
+
stroke-width: 1;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
#dependencyStart, .dependency {
|
|
113
|
+
fill: ${s.lineColor} !important;
|
|
114
|
+
stroke: ${s.lineColor} !important;
|
|
115
|
+
stroke-width: 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
#extensionStart, .extension {
|
|
119
|
+
fill: transparent !important;
|
|
120
|
+
stroke: ${s.lineColor} !important;
|
|
121
|
+
stroke-width: 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
#extensionEnd, .extension {
|
|
125
|
+
fill: transparent !important;
|
|
126
|
+
stroke: ${s.lineColor} !important;
|
|
127
|
+
stroke-width: 1;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
#aggregationStart, .aggregation {
|
|
131
|
+
fill: transparent !important;
|
|
132
|
+
stroke: ${s.lineColor} !important;
|
|
133
|
+
stroke-width: 1;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
#aggregationEnd, .aggregation {
|
|
137
|
+
fill: transparent !important;
|
|
138
|
+
stroke: ${s.lineColor} !important;
|
|
139
|
+
stroke-width: 1;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
#lollipopStart, .lollipop {
|
|
143
|
+
fill: ${s.mainBkg} !important;
|
|
144
|
+
stroke: ${s.lineColor} !important;
|
|
145
|
+
stroke-width: 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
#lollipopEnd, .lollipop {
|
|
149
|
+
fill: ${s.mainBkg} !important;
|
|
150
|
+
stroke: ${s.lineColor} !important;
|
|
151
|
+
stroke-width: 1;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.edgeTerminals {
|
|
155
|
+
font-size: 11px;
|
|
156
|
+
line-height: initial;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.classTitleText {
|
|
160
|
+
text-anchor: middle;
|
|
161
|
+
font-size: 18px;
|
|
162
|
+
fill: ${s.textColor};
|
|
163
|
+
}
|
|
164
|
+
${Xe.getIconStyles()}
|
|
165
|
+
`,"getStyles"),et=$e,tt=n.__name((s,i="TB")=>{if(!s.doc)return i;let a=i;for(const l of s.doc)l.stmt==="dir"&&(a=l.value);return a},"getDir"),st=n.__name(function(s,i){return i.db.getClasses()},"getClasses"),it=n.__name(async function(s,i,a,l){n.log.info("REF0:"),n.log.info("Drawing class diagram (v3)",i);const{securityLevel:o,state:r,layout:A}=n.getConfig2(),f=l.db.getData(),g=qe.getDiagramElement(i,o);f.type=l.type,f.layoutAlgorithm=n.getRegisteredLayoutAlgorithm(A),f.nodeSpacing=r?.nodeSpacing||50,f.rankSpacing=r?.rankSpacing||50,f.markers=["aggregation","extension","composition","dependency","lollipop"],f.diagramId=i,await n.render(f,g);const D=8;n.utils_default.insertTitle(g,"classDiagramTitleText",r?.titleTopMargin??25,l.db.getDiagramTitle()),He.setupViewPortForSVG(g,D,"classDiagram",r?.useMaxWidth??!0)},"draw"),at={getClasses:st,draw:it,getDir:tt};exports.ClassDB=Ze;exports.classDiagram_default=Je;exports.classRenderer_v3_unified_default=at;exports.styles_default=et;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./index-
|
|
1
|
+
"use strict";const r=require("./index-DizklrOW.cjs");var u=r.__name((e,t,i,n)=>{e.attr("class",i);const{width:o,height:h,x:c,y:s}=w(e,t);r.configureSvgSize(e,h,o,n);const a=x(c,s,o,h,t);e.attr("viewBox",a),r.log.debug(`viewBox configured: ${a} with padding: ${t}`)},"setupViewPortForSVG"),w=r.__name((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),x=r.__name((e,t,i,n,o)=>`${e-o} ${t-o} ${i} ${n}`,"createViewBox");exports.setupViewPortForSVG=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./index-
|
|
1
|
+
"use strict";const e=require("./index-DizklrOW.cjs");var t,s=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},e.__name(t,"ImperativeState"),t);exports.ImperativeState=s;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as te } from "./chunk-
|
|
2
|
-
import { s as ee } from "./chunk-
|
|
3
|
-
import { _ as u, l as b, c as w, r as se, u as ie, a as re, b as ae, g as ne, s as oe, p as le, q as ce, T as he, k as U, y as ue } from "./index-
|
|
1
|
+
import { g as te } from "./chunk-55IACEB6-J1JahOGA.js";
|
|
2
|
+
import { s as ee } from "./chunk-QN33PNHL-DfPMtcCm.js";
|
|
3
|
+
import { _ as u, l as b, c as w, r as se, u as ie, a as re, b as ae, g as ne, s as oe, p as le, q as ce, T as he, k as U, y as ue } from "./index-JAUwzcHq.js";
|
|
4
4
|
var vt = function() {
|
|
5
5
|
var t = /* @__PURE__ */ u(function(Y, o, c, n) {
|
|
6
6
|
for (c = c || {}, n = Y.length; n--; c[Y[n]] = o) ;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";const Jt=require("./chunk-
|
|
1
|
+
"use strict";const Jt=require("./chunk-55IACEB6-DWsrLxcl.cjs"),Qt=require("./chunk-QN33PNHL-Djjr-gFo.cjs"),s=require("./index-DizklrOW.cjs");var bt=function(){var t=s.__name(function(P,l,h,o){for(h=h||{},o=P.length;o--;h[P[o]]=l);return h},"o"),e=[1,2],i=[1,3],n=[1,4],a=[2,4],u=[1,9],d=[1,11],S=[1,16],f=[1,17],y=[1,18],T=[1,19],E=[1,33],C=[1,20],k=[1,21],p=[1,22],D=[1,23],R=[1,24],x=[1,26],O=[1,27],L=[1,28],w=[1,29],Z=[1,30],tt=[1,31],et=[1,32],st=[1,35],it=[1,36],rt=[1,37],at=[1,38],M=[1,34],_=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],nt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],vt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],pt={trace:s.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement: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:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"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,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],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:s.__name(function(l,h,o,g,m,r,z){var c=r.length-1;switch(m){case 3:return g.setRootDoc(r[c]),r[c];case 4:this.$=[];break;case 5:r[c]!="nl"&&(r[c-1].push(r[c]),this.$=r[c-1]);break;case 6:case 7:this.$=r[c];break;case 8:this.$="nl";break;case 12:this.$=r[c];break;case 13:const K=r[c-1];K.description=g.trimColon(r[c]),this.$=K;break;case 14:this.$={stmt:"relation",state1:r[c-2],state2:r[c]};break;case 15:const St=g.trimColon(r[c]);this.$={stmt:"relation",state1:r[c-3],state2:r[c-1],description:St};break;case 19:this.$={stmt:"state",id:r[c-3],type:"default",description:"",doc:r[c-1]};break;case 20:var Y=r[c],U=r[c-2].trim();if(r[c].match(":")){var lt=r[c].split(":");Y=lt[0],U=[U,lt[1]]}this.$={stmt:"state",id:Y,type:"default",description:U};break;case 21:this.$={stmt:"state",id:r[c-3],type:"default",description:r[c-5],doc:r[c-1]};break;case 22:this.$={stmt:"state",id:r[c],type:"fork"};break;case 23:this.$={stmt:"state",id:r[c],type:"join"};break;case 24:this.$={stmt:"state",id:r[c],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[c-1].trim(),note:{position:r[c-2].trim(),text:r[c].trim()}};break;case 29:this.$=r[c].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=r[c].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[c-3],url:r[c-2],tooltip:r[c-1]};break;case 33:this.$={stmt:"click",id:r[c-3],url:r[c-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[c-1].trim(),classes:r[c].trim()};break;case 36:this.$={stmt:"style",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 37:this.$={stmt:"applyClass",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:i,6:n},{1:[3]},{3:5,4:e,5:i,6:n},{3:6,4:e,5:i,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:u,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:y,22:T,24:E,25:C,26:k,27:p,28:D,29:R,32:25,33:x,35:O,37:L,38:w,41:Z,45:tt,48:et,51:st,52:it,53:rt,54:at,57:M},t(_,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:f,19:y,22:T,24:E,25:C,26:k,27:p,28:D,29:R,32:25,33:x,35:O,37:L,38:w,41:Z,45:tt,48:et,51:st,52:it,53:rt,54:at,57:M},t(_,[2,7]),t(_,[2,8]),t(_,[2,9]),t(_,[2,10]),t(_,[2,11]),t(_,[2,12],{14:[1,40],15:[1,41]}),t(_,[2,16]),{18:[1,42]},t(_,[2,18],{20:[1,43]}),{23:[1,44]},t(_,[2,22]),t(_,[2,23]),t(_,[2,24]),t(_,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(_,[2,28]),{34:[1,49]},{36:[1,50]},t(_,[2,31]),{13:51,24:E,57:M},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(nt,[2,44],{58:[1,56]}),t(nt,[2,45],{58:[1,57]}),t(_,[2,38]),t(_,[2,39]),t(_,[2,40]),t(_,[2,41]),t(_,[2,6]),t(_,[2,13]),{13:58,24:E,57:M},t(_,[2,17]),t(vt,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(_,[2,29]),t(_,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(_,[2,14],{14:[1,71]}),{4:u,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:y,21:[1,72],22:T,24:E,25:C,26:k,27:p,28:D,29:R,32:25,33:x,35:O,37:L,38:w,41:Z,45:tt,48:et,51:st,52:it,53:rt,54:at,57:M},t(_,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(_,[2,34]),t(_,[2,35]),t(_,[2,36]),t(_,[2,37]),t(nt,[2,46]),t(nt,[2,47]),t(_,[2,15]),t(_,[2,19]),t(vt,a,{7:78}),t(_,[2,26]),t(_,[2,27]),{5:[1,79]},{5:[1,80]},{4:u,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:y,21:[1,81],22:T,24:E,25:C,26:k,27:p,28:D,29:R,32:25,33:x,35:O,37:L,38:w,41:Z,45:tt,48:et,51:st,52:it,53:rt,54:at,57:M},t(_,[2,32]),t(_,[2,33]),t(_,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:s.__name(function(l,h){if(h.recoverable)this.trace(l);else{var o=new Error(l);throw o.hash=h,o}},"parseError"),parse:s.__name(function(l){var h=this,o=[0],g=[],m=[null],r=[],z=this.table,c="",Y=0,U=0,lt=2,K=1,St=r.slice.call(arguments,1),b=Object.create(this.lexer),B={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(B.yy[_t]=this.yy[_t]);b.setInput(l,B.yy),B.yy.lexer=b,B.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var gt=b.yylloc;r.push(gt);var Xt=b.options&&b.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qt(I){o.length=o.length-2*I,m.length=m.length-I,r.length=r.length-I}s.__name(qt,"popStack");function Ct(){var I;return I=g.pop()||b.lex()||K,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=h.symbols_[I]||I),I}s.__name(Ct,"lex");for(var A,G,N,yt,j={},ct,$,At,ht;;){if(G=o[o.length-1],this.defaultActions[G]?N=this.defaultActions[G]:((A===null||typeof A>"u")&&(A=Ct()),N=z[G]&&z[G][A]),typeof N>"u"||!N.length||!N[0]){var mt="";ht=[];for(ct in z[G])this.terminals_[ct]&&ct>lt&&ht.push("'"+this.terminals_[ct]+"'");b.showPosition?mt="Parse error on line "+(Y+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
|
-
Expecting `+ht.join(", ")+", got '"+(this.terminals_[A]||A)+"'":mt="Parse error on line "+(Y+1)+": Unexpected "+(A==K?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(mt,{text:b.match,token:this.terminals_[A]||A,line:b.yylineno,loc:gt,expected:ht})}if(
|
|
3
|
+
Expecting `+ht.join(", ")+", got '"+(this.terminals_[A]||A)+"'":mt="Parse error on line "+(Y+1)+": Unexpected "+(A==K?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(mt,{text:b.match,token:this.terminals_[A]||A,line:b.yylineno,loc:gt,expected:ht})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+A);switch(N[0]){case 1:o.push(A),m.push(b.yytext),r.push(b.yylloc),o.push(N[1]),A=null,U=b.yyleng,c=b.yytext,Y=b.yylineno,gt=b.yylloc;break;case 2:if($=this.productions_[N[1]][1],j.$=m[m.length-$],j._$={first_line:r[r.length-($||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-($||1)].first_column,last_column:r[r.length-1].last_column},Xt&&(j._$.range=[r[r.length-($||1)].range[0],r[r.length-1].range[1]]),yt=this.performAction.apply(j,[c,U,Y,B.yy,N[1],m,r].concat(St)),typeof yt<"u")return yt;$&&(o=o.slice(0,-1*$*2),m=m.slice(0,-1*$),r=r.slice(0,-1*$)),o.push(this.productions_[N[1]][0]),m.push(j.$),r.push(j._$),At=z[o[o.length-2]][o[o.length-1]],o.push(At);break;case 3:return!0}}return!0},"parse")},Kt=function(){var P={EOF:1,parseError:s.__name(function(h,o){if(this.yy.parser)this.yy.parser.parseError(h,o);else throw new Error(h)},"parseError"),setInput:s.__name(function(l,h){return this.yy=h||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s.__name(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var h=l.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:s.__name(function(l){var h=l.length,o=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var g=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 m=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===g.length?this.yylloc.first_column:0)+g[g.length-o.length].length-o[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:s.__name(function(){return this._more=!0,this},"more"),reject:s.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s.__name(function(l){this.unput(this.match.slice(l))},"less"),pastInput:s.__name(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s.__name(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s.__name(function(){var l=this.pastInput(),h=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
5
5
|
`+h+"^"},"showPosition"),test_match:s.__name(function(l,h){var o,g,m;if(this.options.backtrack_lexer&&(m={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&&(m.yylloc.range=this.yylloc.range.slice(0))),g=l[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,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(l[0].length),this.matched+=l[0],o=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var r in m)this[r]=m[r];return!1}return!1},"test_match"),next:s.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,h,o,g;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),r=0;r<m.length;r++)if(o=this._input.match(this.rules[m[r]]),o&&(!h||o[0].length>h[0].length)){if(h=o,g=r,this.options.backtrack_lexer){if(l=this.test_match(o,m[r]),l!==!1)return l;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(l=this.test_match(h,m[g]),l!==!1?l:!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})},"next"),lex:s.__name(function(){var h=this.next();return h||this.lex()},"lex"),begin:s.__name(function(h){this.conditionStack.push(h)},"begin"),popState:s.__name(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s.__name(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:s.__name(function(h){this.begin(h)},"pushState"),stateStackSize:s.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s.__name(function(h,o,g,m){switch(g){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:break;case 9:break;case 10:return 5;case 11:break;case 12:break;case 13:break;case 14:break;case 15:return this.pushState("SCALE"),17;case 16:return 18;case 17:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 23:this.popState();break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 35:return this.pushState("SCALE"),17;case 36:return 18;case 37:this.popState();break;case 38:this.pushState("STATE");break;case 39:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),25;case 40:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),26;case 41:return this.popState(),o.yytext=o.yytext.slice(0,-10).trim(),27;case 42:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),25;case 43:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),26;case 44:return this.popState(),o.yytext=o.yytext.slice(0,-10).trim(),27;case 45:return 51;case 46:return 52;case 47:return 53;case 48:return 54;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:return this.popState(),"ID";case 52:this.popState();break;case 53:return"STATE_DESCR";case 54:return 19;case 55:this.popState();break;case 56:return this.popState(),this.pushState("struct"),20;case 57:break;case 58:return this.popState(),21;case 59:break;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 65:break;case 66:return"NOTE_TEXT";case 67:return this.popState(),"ID";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),o.yytext=o.yytext.substr(2).trim(),31;case 70:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),31;case 71:return 6;case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return o.yytext=o.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 80:return 5;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?: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,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/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:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}};return P}();pt.lexer=Kt;function ot(){this.yy={}}return s.__name(ot,"Parser"),ot.prototype=pt,pt.Parser=ot,new ot}();bt.parser=bt;var Zt=bt,te="TB",$t="TB",xt="dir",W="state",H="root",Dt="relation",ee="classDef",se="style",ie="applyClass",J="default",Pt="divider",Ft="fill:none",Yt="fill: #333",Bt="c",Gt="text",Vt="normal",Tt="rect",Et="rectWithTitle",re="stateStart",ae="stateEnd",Lt="divider",It="roundedWithTitle",ne="note",oe="noteGroup",Q="statediagram",le="state",ce=`${Q}-${le}`,Mt="transition",he="note",ue="note-edge",de=`${Mt} ${ue}`,fe=`${Q}-${he}`,pe="cluster",Se=`${Q}-${pe}`,_e="cluster-alt",ge=`${Q}-${_e}`,Ut="parent",jt="note",ye="state",kt="----",me=`${kt}${jt}`,Rt=`${kt}${Ut}`,Ht=s.__name((t,e=$t)=>{if(!t.doc)return e;let i=e;for(const n of t.doc)n.stmt==="dir"&&(i=n.value);return i},"getDir"),Te=s.__name(function(t,e){return e.db.getClasses()},"getClasses"),Ee=s.__name(async function(t,e,i,n){s.log.info("REF0:"),s.log.info("Drawing state diagram (v2)",e);const{securityLevel:a,state:u,layout:d}=s.getConfig2();n.db.extract(n.db.getRootDocV2());const S=n.db.getData(),f=Jt.getDiagramElement(e,a);S.type=n.type,S.layoutAlgorithm=d,S.nodeSpacing=u?.nodeSpacing||50,S.rankSpacing=u?.rankSpacing||50,S.markers=["barb"],S.diagramId=e,await s.render(S,f);const y=8;try{(typeof n.db.getLinks=="function"?n.db.getLinks():new Map).forEach((E,C)=>{const k=typeof C=="string"?C:typeof C?.id=="string"?C.id:"";if(!k){s.log.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(C));return}const p=f.node()?.querySelectorAll("g");let D;if(p?.forEach(L=>{L.textContent?.trim()===k&&(D=L)}),!D){s.log.warn("⚠️ Could not find node matching text:",k);return}const R=D.parentNode;if(!R){s.log.warn("⚠️ Node has no parent, cannot wrap:",k);return}const x=document.createElementNS("http://www.w3.org/2000/svg","a"),N=E.url.replace(/^"+|"+$/g,"");if(x.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",N),x.setAttribute("target","_blank"),E.tooltip){const L=E.tooltip.replace(/^"+|"+$/g,"");x.setAttribute("title",L)}R.replaceChild(x,D),x.appendChild(D),s.log.info("🔗 Wrapped node in <a> tag for:",k,E.url)})}catch(T){s.log.error("❌ Error injecting clickable links:",T)}s.utils_default.insertTitle(f,"statediagramTitleText",u?.titleTopMargin??25,n.db.getDiagramTitle()),Qt.setupViewPortForSVG(f,y,Q,u?.useMaxWidth??!0)},"draw"),be={getClasses:Te,draw:Ee,getDir:Ht},dt=new Map,F=0;function ft(t="",e=0,i="",n=kt){const a=i!==null&&i.length>0?`${n}${i}`:"";return`${ye}-${t}${a}-${e}`}s.__name(ft,"stateDomId");var De=s.__name((t,e,i,n,a,u,d,S)=>{s.log.trace("items",e),e.forEach(f=>{switch(f.stmt){case W:q(t,f,i,n,a,u,d,S);break;case J:q(t,f,i,n,a,u,d,S);break;case Dt:{q(t,f.state1,i,n,a,u,d,S),q(t,f.state2,i,n,a,u,d,S);const y={id:"edge"+F,start:f.state1.id,end:f.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Ft,labelStyle:"",label:s.common_default.sanitizeText(f.description??"",s.getConfig2()),arrowheadStyle:Yt,labelpos:Bt,labelType:Gt,thickness:Vt,classes:Mt,look:d};a.push(y),F++}break}})},"setupDoc"),Ot=s.__name((t,e=$t)=>{let i=e;if(t.doc)for(const n of t.doc)n.stmt==="dir"&&(i=n.value);return i},"getDir");function X(t,e,i){if(!e.id||e.id==="</join></fork>"||e.id==="</choice>")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(a=>{const u=i.get(a);u&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...u.styles])}));const n=t.find(a=>a.id===e.id);n?Object.assign(n,e):t.push(e)}s.__name(X,"insertOrUpdateNode");function Wt(t){return t?.classes?.join(" ")??""}s.__name(Wt,"getClassesFromDbInfo");function zt(t){return t?.styles??[]}s.__name(zt,"getStylesFromDbInfo");var q=s.__name((t,e,i,n,a,u,d,S)=>{const f=e.id,y=i.get(f),T=Wt(y),E=zt(y),C=s.getConfig2();if(s.log.info("dataFetcher parsedItem",e,y,E),f!=="root"){let k=Tt;e.start===!0?k=re:e.start===!1&&(k=ae),e.type!==J&&(k=e.type),dt.get(f)||dt.set(f,{id:f,shape:k,description:s.common_default.sanitizeText(f,C),cssClasses:`${T} ${ce}`,cssStyles:E});const p=dt.get(f);e.description&&(Array.isArray(p.description)?(p.shape=Et,p.description.push(e.description)):p.description?.length&&p.description.length>0?(p.shape=Et,p.description===f?p.description=[e.description]:p.description=[p.description,e.description]):(p.shape=Tt,p.description=e.description),p.description=s.common_default.sanitizeTextOrArray(p.description,C)),p.description?.length===1&&p.shape===Et&&(p.type==="group"?p.shape=It:p.shape=Tt),!p.type&&e.doc&&(s.log.info("Setting cluster for XCX",f,Ot(e)),p.type="group",p.isGroup=!0,p.dir=Ot(e),p.shape=e.type===Pt?Lt:It,p.cssClasses=`${p.cssClasses} ${Se} ${u?ge:""}`);const D={labelStyle:"",shape:p.shape,label:p.description,cssClasses:p.cssClasses,cssCompiledStyles:[],cssStyles:p.cssStyles,id:f,dir:p.dir,domId:ft(f,F),type:p.type,isGroup:p.type==="group",padding:8,rx:10,ry:10,look:d};if(D.shape===Lt&&(D.label=""),t&&t.id!=="root"&&(s.log.trace("Setting node ",f," to be child of its parent ",t.id),D.parentId=t.id),D.centerLabel=!0,e.note){const R={labelStyle:"",shape:ne,label:e.note.text,cssClasses:fe,cssStyles:[],cssCompiledStyles:[],id:f+me+"-"+F,domId:ft(f,F,jt),type:p.type,isGroup:p.type==="group",padding:C.flowchart?.padding,look:d,position:e.note.position},x=f+Rt,N={labelStyle:"",shape:oe,label:e.note.text,cssClasses:p.cssClasses,cssStyles:[],id:f+Rt,domId:ft(f,F,Ut),type:"group",isGroup:!0,padding:16,look:d,position:e.note.position};F++,N.id=x,R.parentId=x,X(n,N,S),X(n,R,S),X(n,D,S);let L=f,w=R.id;e.note.position==="left of"&&(L=R.id,w=f),a.push({id:L+"-"+w,start:L,end:w,arrowhead:"none",arrowTypeEnd:"",style:Ft,labelStyle:"",classes:de,arrowheadStyle:Yt,labelpos:Bt,labelType:Gt,thickness:Vt,look:d})}else X(n,D,S)}e.doc&&(s.log.trace("Adding nodes children "),De(e,e.doc,i,n,a,!u,d,S))},"dataFetcher"),ke=s.__name(()=>{dt.clear(),F=0},"reset"),v={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},Nt=s.__name(()=>new Map,"newClassesList"),wt=s.__name(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),ut=s.__name(t=>JSON.parse(JSON.stringify(t)),"clone"),V,ve=(V=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Nt(),this.documents={root:wt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=s.getAccTitle,this.setAccTitle=s.setAccTitle,this.getAccDescription=s.getAccDescription,this.setAccDescription=s.setAccDescription,this.setDiagramTitle=s.setDiagramTitle,this.getDiagramTitle=s.getDiagramTitle,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(e){this.clear(!0);for(const a of Array.isArray(e)?e:e.doc)switch(a.stmt){case W:this.addState(a.id.trim(),a.type,a.doc,a.description,a.note);break;case Dt:this.addRelation(a.state1,a.state2,a.description);break;case ee:this.addStyleClass(a.id.trim(),a.classes);break;case se:this.handleStyleDef(a);break;case ie:this.setCssClass(a.id.trim(),a.styleClass);break;case"click":this.addLink(a.id,a.url,a.tooltip);break}const i=this.getStates(),n=s.getConfig2();ke(),q(void 0,this.getRootDocV2(),i,this.nodes,this.edges,!0,n.look,this.classes);for(const a of this.nodes)if(Array.isArray(a.label)){if(a.description=a.label.slice(1),a.isGroup&&a.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${a.id}]`);a.label=a.label[0]}}handleStyleDef(e){const i=e.id.trim().split(","),n=e.styleClass.split(",");for(const a of i){let u=this.getState(a);if(!u){const d=a.trim();this.addState(d),u=this.getState(d)}u&&(u.styles=n.map(d=>d.replace(/;/g,"")?.trim()))}}setRootDoc(e){s.log.info("Setting root doc",e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,i,n){if(i.stmt===Dt){this.docTranslator(e,i.state1,!0),this.docTranslator(e,i.state2,!1);return}if(i.stmt===W&&(i.id===v.START_NODE?(i.id=e.id+(n?"_start":"_end"),i.start=n):i.id=i.id.trim()),i.stmt!==H&&i.stmt!==W||!i.doc)return;const a=[];let u=[];for(const d of i.doc)if(d.type===Pt){const S=ut(d);S.doc=ut(u),a.push(S),u=[]}else u.push(d);if(a.length>0&&u.length>0){const d={stmt:W,id:s.generateId(),type:"divider",doc:ut(u)};a.push(ut(d)),i.doc=a}i.doc.forEach(d=>this.docTranslator(i,d,!0))}getRootDocV2(){return this.docTranslator({id:H,stmt:H},{id:H,stmt:H,doc:this.rootDoc},!0),{id:H,doc:this.rootDoc}}addState(e,i=J,n=void 0,a=void 0,u=void 0,d=void 0,S=void 0,f=void 0){const y=e?.trim();if(!this.currentDocument.states.has(y))s.log.info("Adding state ",y,a),this.currentDocument.states.set(y,{stmt:W,id:y,descriptions:[],type:i,doc:n,note:u,classes:[],styles:[],textStyles:[]});else{const T=this.currentDocument.states.get(y);if(!T)throw new Error(`State not found: ${y}`);T.doc||(T.doc=n),T.type||(T.type=i)}if(a&&(s.log.info("Setting state description",y,a),(Array.isArray(a)?a:[a]).forEach(E=>this.addDescription(y,E.trim()))),u){const T=this.currentDocument.states.get(y);if(!T)throw new Error(`State not found: ${y}`);T.note=u,T.note.text=s.common_default.sanitizeText(T.note.text,s.getConfig2())}d&&(s.log.info("Setting state classes",y,d),(Array.isArray(d)?d:[d]).forEach(E=>this.setCssClass(y,E.trim()))),S&&(s.log.info("Setting state styles",y,S),(Array.isArray(S)?S:[S]).forEach(E=>this.setStyle(y,E.trim()))),f&&(s.log.info("Setting state styles",y,S),(Array.isArray(f)?f:[f]).forEach(E=>this.setTextStyle(y,E.trim())))}clear(e){this.nodes=[],this.edges=[],this.documents={root:wt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Nt(),e||(this.links=new Map,s.clear())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){s.log.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,i,n){this.links.set(e,{url:i,tooltip:n}),s.log.warn("Adding link",e,i,n)}getLinks(){return this.links}startIdIfNeeded(e=""){return e===v.START_NODE?(this.startEndCount++,`${v.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e="",i=J){return e===v.START_NODE?v.START_TYPE:i}endIdIfNeeded(e=""){return e===v.END_NODE?(this.startEndCount++,`${v.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e="",i=J){return e===v.END_NODE?v.END_TYPE:i}addRelationObjs(e,i,n=""){const a=this.startIdIfNeeded(e.id.trim()),u=this.startTypeIfNeeded(e.id.trim(),e.type),d=this.startIdIfNeeded(i.id.trim()),S=this.startTypeIfNeeded(i.id.trim(),i.type);this.addState(a,u,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(d,S,i.doc,i.description,i.note,i.classes,i.styles,i.textStyles),this.currentDocument.relations.push({id1:a,id2:d,relationTitle:s.common_default.sanitizeText(n,s.getConfig2())})}addRelation(e,i,n){if(typeof e=="object"&&typeof i=="object")this.addRelationObjs(e,i,n);else if(typeof e=="string"&&typeof i=="string"){const a=this.startIdIfNeeded(e.trim()),u=this.startTypeIfNeeded(e),d=this.endIdIfNeeded(i.trim()),S=this.endTypeIfNeeded(i);this.addState(a,u),this.addState(d,S),this.currentDocument.relations.push({id1:a,id2:d,relationTitle:n?s.common_default.sanitizeText(n,s.getConfig2()):void 0})}}addDescription(e,i){const n=this.currentDocument.states.get(e),a=i.startsWith(":")?i.replace(":","").trim():i;n?.descriptions?.push(s.common_default.sanitizeText(a,s.getConfig2()))}cleanupLabel(e){return e.startsWith(":")?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,i=""){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});const n=this.classes.get(e);i&&n&&i.split(v.STYLECLASS_SEP).forEach(a=>{const u=a.replace(/([^;]*);/,"$1").trim();if(RegExp(v.COLOR_KEYWORD).exec(a)){const S=u.replace(v.FILL_KEYWORD,v.BG_FILL).replace(v.COLOR_KEYWORD,v.FILL_KEYWORD);n.textStyles.push(S)}n.styles.push(u)})}getClasses(){return this.classes}setCssClass(e,i){e.split(",").forEach(n=>{let a=this.getState(n);if(!a){const u=n.trim();this.addState(u),a=this.getState(u)}a?.classes?.push(i)})}setStyle(e,i){this.getState(e)?.styles?.push(i)}setTextStyle(e,i){this.getState(e)?.textStyles?.push(i)}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===xt)}getDirection(){return this.getDirectionStatement()?.value??te}setDirection(e){const i=this.getDirectionStatement();i?i.value=e:this.rootDoc.unshift({stmt:xt,value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){const e=s.getConfig2();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:Ht(this.getRootDocV2())}}getConfig(){return s.getConfig2().state}},s.__name(V,"StateDB"),V.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},V),Ce=s.__name(t=>`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s.__name(function(){var h=this.next();return h||this.lex()},"lex"),begin:s.__name(function(h){this.conditionStack.push(h)},"begin"),popState:s.__name(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s.__name(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:s.__name(function(h){this.begin(h)},"pushState"),stateStackSize:s.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s.__name(function(h,o,g,m){switch(g){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:break;case 9:break;case 10:return 5;case 11:break;case 12:break;case 13:break;case 14:break;case 15:return this.pushState("SCALE"),17;case 16:return 18;case 17:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 23:this.popState();break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 35:return this.pushState("SCALE"),17;case 36:return 18;case 37:this.popState();break;case 38:this.pushState("STATE");break;case 39:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),25;case 40:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),26;case 41:return this.popState(),o.yytext=o.yytext.slice(0,-10).trim(),27;case 42:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),25;case 43:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),26;case 44:return this.popState(),o.yytext=o.yytext.slice(0,-10).trim(),27;case 45:return 51;case 46:return 52;case 47:return 53;case 48:return 54;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:return this.popState(),"ID";case 52:this.popState();break;case 53:return"STATE_DESCR";case 54:return 19;case 55:this.popState();break;case 56:return this.popState(),this.pushState("struct"),20;case 57:break;case 58:return this.popState(),21;case 59:break;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 65:break;case 66:return"NOTE_TEXT";case 67:return this.popState(),"ID";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),o.yytext=o.yytext.substr(2).trim(),31;case 70:return this.popState(),o.yytext=o.yytext.slice(0,-8).trim(),31;case 71:return 6;case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return o.yytext=o.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 80:return 5;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?: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,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/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:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}};return P}();pt.lexer=Kt;function ot(){this.yy={}}return s.__name(ot,"Parser"),ot.prototype=pt,pt.Parser=ot,new ot}();bt.parser=bt;var Zt=bt,te="TB",$t="TB",xt="dir",W="state",H="root",Dt="relation",ee="classDef",se="style",ie="applyClass",J="default",Pt="divider",Ft="fill:none",Yt="fill: #333",Bt="c",Gt="text",Vt="normal",Tt="rect",Et="rectWithTitle",re="stateStart",ae="stateEnd",Lt="divider",It="roundedWithTitle",ne="note",oe="noteGroup",Q="statediagram",le="state",ce=`${Q}-${le}`,Mt="transition",he="note",ue="note-edge",de=`${Mt} ${ue}`,fe=`${Q}-${he}`,pe="cluster",Se=`${Q}-${pe}`,_e="cluster-alt",ge=`${Q}-${_e}`,Ut="parent",jt="note",ye="state",kt="----",me=`${kt}${jt}`,Rt=`${kt}${Ut}`,Ht=s.__name((t,e=$t)=>{if(!t.doc)return e;let i=e;for(const n of t.doc)n.stmt==="dir"&&(i=n.value);return i},"getDir"),Te=s.__name(function(t,e){return e.db.getClasses()},"getClasses"),Ee=s.__name(async function(t,e,i,n){s.log.info("REF0:"),s.log.info("Drawing state diagram (v2)",e);const{securityLevel:a,state:u,layout:d}=s.getConfig2();n.db.extract(n.db.getRootDocV2());const S=n.db.getData(),f=Jt.getDiagramElement(e,a);S.type=n.type,S.layoutAlgorithm=d,S.nodeSpacing=u?.nodeSpacing||50,S.rankSpacing=u?.rankSpacing||50,S.markers=["barb"],S.diagramId=e,await s.render(S,f);const y=8;try{(typeof n.db.getLinks=="function"?n.db.getLinks():new Map).forEach((E,C)=>{const k=typeof C=="string"?C:typeof C?.id=="string"?C.id:"";if(!k){s.log.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(C));return}const p=f.node()?.querySelectorAll("g");let D;if(p?.forEach(L=>{L.textContent?.trim()===k&&(D=L)}),!D){s.log.warn("⚠️ Could not find node matching text:",k);return}const R=D.parentNode;if(!R){s.log.warn("⚠️ Node has no parent, cannot wrap:",k);return}const x=document.createElementNS("http://www.w3.org/2000/svg","a"),O=E.url.replace(/^"+|"+$/g,"");if(x.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",O),x.setAttribute("target","_blank"),E.tooltip){const L=E.tooltip.replace(/^"+|"+$/g,"");x.setAttribute("title",L)}R.replaceChild(x,D),x.appendChild(D),s.log.info("🔗 Wrapped node in <a> tag for:",k,E.url)})}catch(T){s.log.error("❌ Error injecting clickable links:",T)}s.utils_default.insertTitle(f,"statediagramTitleText",u?.titleTopMargin??25,n.db.getDiagramTitle()),Qt.setupViewPortForSVG(f,y,Q,u?.useMaxWidth??!0)},"draw"),be={getClasses:Te,draw:Ee,getDir:Ht},dt=new Map,F=0;function ft(t="",e=0,i="",n=kt){const a=i!==null&&i.length>0?`${n}${i}`:"";return`${ye}-${t}${a}-${e}`}s.__name(ft,"stateDomId");var De=s.__name((t,e,i,n,a,u,d,S)=>{s.log.trace("items",e),e.forEach(f=>{switch(f.stmt){case W:q(t,f,i,n,a,u,d,S);break;case J:q(t,f,i,n,a,u,d,S);break;case Dt:{q(t,f.state1,i,n,a,u,d,S),q(t,f.state2,i,n,a,u,d,S);const y={id:"edge"+F,start:f.state1.id,end:f.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Ft,labelStyle:"",label:s.common_default.sanitizeText(f.description??"",s.getConfig2()),arrowheadStyle:Yt,labelpos:Bt,labelType:Gt,thickness:Vt,classes:Mt,look:d};a.push(y),F++}break}})},"setupDoc"),Nt=s.__name((t,e=$t)=>{let i=e;if(t.doc)for(const n of t.doc)n.stmt==="dir"&&(i=n.value);return i},"getDir");function X(t,e,i){if(!e.id||e.id==="</join></fork>"||e.id==="</choice>")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(a=>{const u=i.get(a);u&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...u.styles])}));const n=t.find(a=>a.id===e.id);n?Object.assign(n,e):t.push(e)}s.__name(X,"insertOrUpdateNode");function Wt(t){return t?.classes?.join(" ")??""}s.__name(Wt,"getClassesFromDbInfo");function zt(t){return t?.styles??[]}s.__name(zt,"getStylesFromDbInfo");var q=s.__name((t,e,i,n,a,u,d,S)=>{const f=e.id,y=i.get(f),T=Wt(y),E=zt(y),C=s.getConfig2();if(s.log.info("dataFetcher parsedItem",e,y,E),f!=="root"){let k=Tt;e.start===!0?k=re:e.start===!1&&(k=ae),e.type!==J&&(k=e.type),dt.get(f)||dt.set(f,{id:f,shape:k,description:s.common_default.sanitizeText(f,C),cssClasses:`${T} ${ce}`,cssStyles:E});const p=dt.get(f);e.description&&(Array.isArray(p.description)?(p.shape=Et,p.description.push(e.description)):p.description?.length&&p.description.length>0?(p.shape=Et,p.description===f?p.description=[e.description]:p.description=[p.description,e.description]):(p.shape=Tt,p.description=e.description),p.description=s.common_default.sanitizeTextOrArray(p.description,C)),p.description?.length===1&&p.shape===Et&&(p.type==="group"?p.shape=It:p.shape=Tt),!p.type&&e.doc&&(s.log.info("Setting cluster for XCX",f,Nt(e)),p.type="group",p.isGroup=!0,p.dir=Nt(e),p.shape=e.type===Pt?Lt:It,p.cssClasses=`${p.cssClasses} ${Se} ${u?ge:""}`);const D={labelStyle:"",shape:p.shape,label:p.description,cssClasses:p.cssClasses,cssCompiledStyles:[],cssStyles:p.cssStyles,id:f,dir:p.dir,domId:ft(f,F),type:p.type,isGroup:p.type==="group",padding:8,rx:10,ry:10,look:d};if(D.shape===Lt&&(D.label=""),t&&t.id!=="root"&&(s.log.trace("Setting node ",f," to be child of its parent ",t.id),D.parentId=t.id),D.centerLabel=!0,e.note){const R={labelStyle:"",shape:ne,label:e.note.text,cssClasses:fe,cssStyles:[],cssCompiledStyles:[],id:f+me+"-"+F,domId:ft(f,F,jt),type:p.type,isGroup:p.type==="group",padding:C.flowchart?.padding,look:d,position:e.note.position},x=f+Rt,O={labelStyle:"",shape:oe,label:e.note.text,cssClasses:p.cssClasses,cssStyles:[],id:f+Rt,domId:ft(f,F,Ut),type:"group",isGroup:!0,padding:16,look:d,position:e.note.position};F++,O.id=x,R.parentId=x,X(n,O,S),X(n,R,S),X(n,D,S);let L=f,w=R.id;e.note.position==="left of"&&(L=R.id,w=f),a.push({id:L+"-"+w,start:L,end:w,arrowhead:"none",arrowTypeEnd:"",style:Ft,labelStyle:"",classes:de,arrowheadStyle:Yt,labelpos:Bt,labelType:Gt,thickness:Vt,look:d})}else X(n,D,S)}e.doc&&(s.log.trace("Adding nodes children "),De(e,e.doc,i,n,a,!u,d,S))},"dataFetcher"),ke=s.__name(()=>{dt.clear(),F=0},"reset"),v={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},Ot=s.__name(()=>new Map,"newClassesList"),wt=s.__name(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),ut=s.__name(t=>JSON.parse(JSON.stringify(t)),"clone"),V,ve=(V=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Ot(),this.documents={root:wt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=s.getAccTitle,this.setAccTitle=s.setAccTitle,this.getAccDescription=s.getAccDescription,this.setAccDescription=s.setAccDescription,this.setDiagramTitle=s.setDiagramTitle,this.getDiagramTitle=s.getDiagramTitle,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(e){this.clear(!0);for(const a of Array.isArray(e)?e:e.doc)switch(a.stmt){case W:this.addState(a.id.trim(),a.type,a.doc,a.description,a.note);break;case Dt:this.addRelation(a.state1,a.state2,a.description);break;case ee:this.addStyleClass(a.id.trim(),a.classes);break;case se:this.handleStyleDef(a);break;case ie:this.setCssClass(a.id.trim(),a.styleClass);break;case"click":this.addLink(a.id,a.url,a.tooltip);break}const i=this.getStates(),n=s.getConfig2();ke(),q(void 0,this.getRootDocV2(),i,this.nodes,this.edges,!0,n.look,this.classes);for(const a of this.nodes)if(Array.isArray(a.label)){if(a.description=a.label.slice(1),a.isGroup&&a.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${a.id}]`);a.label=a.label[0]}}handleStyleDef(e){const i=e.id.trim().split(","),n=e.styleClass.split(",");for(const a of i){let u=this.getState(a);if(!u){const d=a.trim();this.addState(d),u=this.getState(d)}u&&(u.styles=n.map(d=>d.replace(/;/g,"")?.trim()))}}setRootDoc(e){s.log.info("Setting root doc",e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,i,n){if(i.stmt===Dt){this.docTranslator(e,i.state1,!0),this.docTranslator(e,i.state2,!1);return}if(i.stmt===W&&(i.id===v.START_NODE?(i.id=e.id+(n?"_start":"_end"),i.start=n):i.id=i.id.trim()),i.stmt!==H&&i.stmt!==W||!i.doc)return;const a=[];let u=[];for(const d of i.doc)if(d.type===Pt){const S=ut(d);S.doc=ut(u),a.push(S),u=[]}else u.push(d);if(a.length>0&&u.length>0){const d={stmt:W,id:s.generateId(),type:"divider",doc:ut(u)};a.push(ut(d)),i.doc=a}i.doc.forEach(d=>this.docTranslator(i,d,!0))}getRootDocV2(){return this.docTranslator({id:H,stmt:H},{id:H,stmt:H,doc:this.rootDoc},!0),{id:H,doc:this.rootDoc}}addState(e,i=J,n=void 0,a=void 0,u=void 0,d=void 0,S=void 0,f=void 0){const y=e?.trim();if(!this.currentDocument.states.has(y))s.log.info("Adding state ",y,a),this.currentDocument.states.set(y,{stmt:W,id:y,descriptions:[],type:i,doc:n,note:u,classes:[],styles:[],textStyles:[]});else{const T=this.currentDocument.states.get(y);if(!T)throw new Error(`State not found: ${y}`);T.doc||(T.doc=n),T.type||(T.type=i)}if(a&&(s.log.info("Setting state description",y,a),(Array.isArray(a)?a:[a]).forEach(E=>this.addDescription(y,E.trim()))),u){const T=this.currentDocument.states.get(y);if(!T)throw new Error(`State not found: ${y}`);T.note=u,T.note.text=s.common_default.sanitizeText(T.note.text,s.getConfig2())}d&&(s.log.info("Setting state classes",y,d),(Array.isArray(d)?d:[d]).forEach(E=>this.setCssClass(y,E.trim()))),S&&(s.log.info("Setting state styles",y,S),(Array.isArray(S)?S:[S]).forEach(E=>this.setStyle(y,E.trim()))),f&&(s.log.info("Setting state styles",y,S),(Array.isArray(f)?f:[f]).forEach(E=>this.setTextStyle(y,E.trim())))}clear(e){this.nodes=[],this.edges=[],this.documents={root:wt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Ot(),e||(this.links=new Map,s.clear())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){s.log.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,i,n){this.links.set(e,{url:i,tooltip:n}),s.log.warn("Adding link",e,i,n)}getLinks(){return this.links}startIdIfNeeded(e=""){return e===v.START_NODE?(this.startEndCount++,`${v.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e="",i=J){return e===v.START_NODE?v.START_TYPE:i}endIdIfNeeded(e=""){return e===v.END_NODE?(this.startEndCount++,`${v.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e="",i=J){return e===v.END_NODE?v.END_TYPE:i}addRelationObjs(e,i,n=""){const a=this.startIdIfNeeded(e.id.trim()),u=this.startTypeIfNeeded(e.id.trim(),e.type),d=this.startIdIfNeeded(i.id.trim()),S=this.startTypeIfNeeded(i.id.trim(),i.type);this.addState(a,u,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(d,S,i.doc,i.description,i.note,i.classes,i.styles,i.textStyles),this.currentDocument.relations.push({id1:a,id2:d,relationTitle:s.common_default.sanitizeText(n,s.getConfig2())})}addRelation(e,i,n){if(typeof e=="object"&&typeof i=="object")this.addRelationObjs(e,i,n);else if(typeof e=="string"&&typeof i=="string"){const a=this.startIdIfNeeded(e.trim()),u=this.startTypeIfNeeded(e),d=this.endIdIfNeeded(i.trim()),S=this.endTypeIfNeeded(i);this.addState(a,u),this.addState(d,S),this.currentDocument.relations.push({id1:a,id2:d,relationTitle:n?s.common_default.sanitizeText(n,s.getConfig2()):void 0})}}addDescription(e,i){const n=this.currentDocument.states.get(e),a=i.startsWith(":")?i.replace(":","").trim():i;n?.descriptions?.push(s.common_default.sanitizeText(a,s.getConfig2()))}cleanupLabel(e){return e.startsWith(":")?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,i=""){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});const n=this.classes.get(e);i&&n&&i.split(v.STYLECLASS_SEP).forEach(a=>{const u=a.replace(/([^;]*);/,"$1").trim();if(RegExp(v.COLOR_KEYWORD).exec(a)){const S=u.replace(v.FILL_KEYWORD,v.BG_FILL).replace(v.COLOR_KEYWORD,v.FILL_KEYWORD);n.textStyles.push(S)}n.styles.push(u)})}getClasses(){return this.classes}setCssClass(e,i){e.split(",").forEach(n=>{let a=this.getState(n);if(!a){const u=n.trim();this.addState(u),a=this.getState(u)}a?.classes?.push(i)})}setStyle(e,i){this.getState(e)?.styles?.push(i)}setTextStyle(e,i){this.getState(e)?.textStyles?.push(i)}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===xt)}getDirection(){return this.getDirectionStatement()?.value??te}setDirection(e){const i=this.getDirectionStatement();i?i.value=e:this.rootDoc.unshift({stmt:xt,value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){const e=s.getConfig2();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:Ht(this.getRootDocV2())}}getConfig(){return s.getConfig2().state}},s.__name(V,"StateDB"),V.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},V),Ce=s.__name(t=>`
|
|
7
7
|
defs #statediagram-barbEnd {
|
|
8
8
|
fill: ${t.transitionColor};
|
|
9
9
|
stroke: ${t.transitionColor};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as n, U as o, j as l } from "./index-
|
|
1
|
+
import { _ as n, U as o, j as l } from "./index-JAUwzcHq.js";
|
|
2
2
|
var x = /* @__PURE__ */ n((s, t) => {
|
|
3
3
|
const e = s.append("rect");
|
|
4
4
|
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./index-
|
|
1
|
+
"use strict";const s=require("./index-DizklrOW.cjs");var d=s.__name((a,t)=>{const e=a.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),c=s.__name((a,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};d(a,e).lower()},"drawBackgroundRect"),l=s.__name((a,t)=>{const e=t.text.replace(s.lineBreakRegex," "),r=a.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},"drawText"),x=s.__name((a,t,e,r)=>{const n=a.append("image");n.attr("x",t),n.attr("y",e);const i=s.distExports.sanitizeUrl(r);n.attr("xlink:href",i)},"drawImage"),o=s.__name((a,t,e,r)=>{const n=a.append("use");n.attr("x",t),n.attr("y",e);const i=s.distExports.sanitizeUrl(r);n.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),m=s.__name(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),g=s.__name(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");exports.drawBackgroundRect=c;exports.drawEmbeddedImage=o;exports.drawImage=x;exports.drawRect=d;exports.drawText=l;exports.getNoteRect=m;exports.getTextObj=g;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as r, c as s, a as e, C as t } from "./chunk-
|
|
2
|
-
import { _ as l } from "./index-
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-K7UQS3LO-BT7hVqcS.js";
|
|
2
|
+
import { _ as l } from "./index-JAUwzcHq.js";
|
|
3
3
|
var d = {
|
|
4
4
|
parser: e,
|
|
5
5
|
get db() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-K7UQS3LO-CtzkJjTw.cjs"),a=require("./index-DizklrOW.cjs");var s={parser:r.classDiagram_default,get db(){return new r.ClassDB},renderer:r.classRenderer_v3_unified_default,styles:r.styles_default,init:a.__name(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as r, c as s, a as e, C as t } from "./chunk-
|
|
2
|
-
import { _ as l } from "./index-
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-K7UQS3LO-BT7hVqcS.js";
|
|
2
|
+
import { _ as l } from "./index-JAUwzcHq.js";
|
|
3
3
|
var d = {
|
|
4
4
|
parser: e,
|
|
5
5
|
get db() {
|
package/dist/{classDiagram-v2-QTMF73CY-BOmQDPcS.cjs → classDiagram-v2-RKCZMP56-DU5lVeNU.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-K7UQS3LO-CtzkJjTw.cjs"),a=require("./index-DizklrOW.cjs");var s={parser:r.classDiagram_default,get db(){return new r.ClassDB},renderer:r.classRenderer_v3_unified_default,styles:r.styles_default,init:a.__name(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./_baseUniq-QOx9ZFk8.cjs");var r=4;function c(e){return n.baseClone(e,r)}exports.clone=c;
|