@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
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const et=require("./chunk-OMD6QJNC-RjSGzdd8.cjs"),ae=require("./chunk-FHKO5MBM-DXqhRcMm.cjs"),a=require("./index-BA07EijG.cjs");var Pt=function(){var e=a.__name(function(nt,b,w,L){for(w=w||{},L=nt.length;L--;w[nt[L]]=b);return w},"o"),t=[1,2],l=[1,3],s=[1,4],i=[2,4],n=[1,9],o=[1,11],d=[1,13],p=[1,14],r=[1,16],f=[1,17],T=[1,18],g=[1,24],x=[1,25],y=[1,26],v=[1,27],P=[1,28],D=[1,29],N=[1,30],O=[1,31],R=[1,32],Y=[1,33],F=[1,34],K=[1,35],Q=[1,36],W=[1,37],q=[1,38],V=[1,39],S=[1,41],U=[1,42],z=[1,43],G=[1,44],Z=[1,45],k=[1,46],_=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],I=[4,5,16,50,52,53],X=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],$=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Mt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],at=[68,69,70],it=[1,122],bt={trace:a.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:a.__name(function(b,w,L,E,M,h,ft){var u=h.length-1;switch(M){case 3:return E.apply(h[u]),h[u];case 4:case 9:this.$=[];break;case 5:case 10:h[u-1].push(h[u]),this.$=h[u-1];break;case 6:case 7:case 11:case 12:this.$=h[u];break;case 8:case 13:this.$=[];break;case 15:h[u].type="createParticipant",this.$=h[u];break;case 16:h[u-1].unshift({type:"boxStart",boxData:E.parseBoxData(h[u-2])}),h[u-1].push({type:"boxEnd",boxText:h[u-2]}),this.$=h[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[u-2]),sequenceIndexStep:Number(h[u-1]),sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:E.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:h[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:h[u-1].actor};break;case 29:E.setDiagramTitle(h[u].substring(6)),this.$=h[u].substring(6);break;case 30:E.setDiagramTitle(h[u].substring(7)),this.$=h[u].substring(7);break;case 31:this.$=h[u].trim(),E.setAccTitle(this.$);break;case 32:case 33:this.$=h[u].trim(),E.setAccDescription(this.$);break;case 34:h[u-1].unshift({type:"loopStart",loopText:E.parseMessage(h[u-2]),signalType:E.LINETYPE.LOOP_START}),h[u-1].push({type:"loopEnd",loopText:h[u-2],signalType:E.LINETYPE.LOOP_END}),this.$=h[u-1];break;case 35:h[u-1].unshift({type:"rectStart",color:E.parseMessage(h[u-2]),signalType:E.LINETYPE.RECT_START}),h[u-1].push({type:"rectEnd",color:E.parseMessage(h[u-2]),signalType:E.LINETYPE.RECT_END}),this.$=h[u-1];break;case 36:h[u-1].unshift({type:"optStart",optText:E.parseMessage(h[u-2]),signalType:E.LINETYPE.OPT_START}),h[u-1].push({type:"optEnd",optText:E.parseMessage(h[u-2]),signalType:E.LINETYPE.OPT_END}),this.$=h[u-1];break;case 37:h[u-1].unshift({type:"altStart",altText:E.parseMessage(h[u-2]),signalType:E.LINETYPE.ALT_START}),h[u-1].push({type:"altEnd",signalType:E.LINETYPE.ALT_END}),this.$=h[u-1];break;case 38:h[u-1].unshift({type:"parStart",parText:E.parseMessage(h[u-2]),signalType:E.LINETYPE.PAR_START}),h[u-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=h[u-1];break;case 39:h[u-1].unshift({type:"parStart",parText:E.parseMessage(h[u-2]),signalType:E.LINETYPE.PAR_OVER_START}),h[u-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=h[u-1];break;case 40:h[u-1].unshift({type:"criticalStart",criticalText:E.parseMessage(h[u-2]),signalType:E.LINETYPE.CRITICAL_START}),h[u-1].push({type:"criticalEnd",signalType:E.LINETYPE.CRITICAL_END}),this.$=h[u-1];break;case 41:h[u-1].unshift({type:"breakStart",breakText:E.parseMessage(h[u-2]),signalType:E.LINETYPE.BREAK_START}),h[u-1].push({type:"breakEnd",optText:E.parseMessage(h[u-2]),signalType:E.LINETYPE.BREAK_END}),this.$=h[u-1];break;case 43:this.$=h[u-3].concat([{type:"option",optionText:E.parseMessage(h[u-1]),signalType:E.LINETYPE.CRITICAL_OPTION},h[u]]);break;case 45:this.$=h[u-3].concat([{type:"and",parText:E.parseMessage(h[u-1]),signalType:E.LINETYPE.PAR_AND},h[u]]);break;case 47:this.$=h[u-3].concat([{type:"else",altText:E.parseMessage(h[u-1]),signalType:E.LINETYPE.ALT_ELSE},h[u]]);break;case 48:h[u-3].draw="participant",h[u-3].type="addParticipant",h[u-3].description=E.parseMessage(h[u-1]),this.$=h[u-3];break;case 49:h[u-1].draw="participant",h[u-1].type="addParticipant",this.$=h[u-1];break;case 50:h[u-3].draw="actor",h[u-3].type="addParticipant",h[u-3].description=E.parseMessage(h[u-1]),this.$=h[u-3];break;case 51:h[u-1].draw="actor",h[u-1].type="addParticipant",this.$=h[u-1];break;case 52:h[u-1].type="destroyParticipant",this.$=h[u-1];break;case 53:this.$=[h[u-1],{type:"addNote",placement:h[u-2],actor:h[u-1].actor,text:h[u]}];break;case 54:h[u-2]=[].concat(h[u-1],h[u-1]).slice(0,2),h[u-2][0]=h[u-2][0].actor,h[u-2][1]=h[u-2][1].actor,this.$=[h[u-1],{type:"addNote",placement:E.PLACEMENT.OVER,actor:h[u-2].slice(0,2),text:h[u]}];break;case 55:this.$=[h[u-1],{type:"addLinks",actor:h[u-1].actor,text:h[u]}];break;case 56:this.$=[h[u-1],{type:"addALink",actor:h[u-1].actor,text:h[u]}];break;case 57:this.$=[h[u-1],{type:"addProperties",actor:h[u-1].actor,text:h[u]}];break;case 58:this.$=[h[u-1],{type:"addDetails",actor:h[u-1].actor,text:h[u]}];break;case 61:this.$=[h[u-2],h[u]];break;case 62:this.$=h[u];break;case 63:this.$=E.PLACEMENT.LEFTOF;break;case 64:this.$=E.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[u-4],h[u-1],{type:"addMessage",from:h[u-4].actor,to:h[u-1].actor,signalType:h[u-3],msg:h[u],activate:!0},{type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:h[u-1].actor}];break;case 66:this.$=[h[u-4],h[u-1],{type:"addMessage",from:h[u-4].actor,to:h[u-1].actor,signalType:h[u-3],msg:h[u]},{type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:h[u-4].actor}];break;case 67:this.$=[h[u-3],h[u-1],{type:"addMessage",from:h[u-3].actor,to:h[u-1].actor,signalType:h[u-2],msg:h[u]}];break;case 68:this.$={type:"addParticipant",actor:h[u]};break;case 69:this.$=E.LINETYPE.SOLID_OPEN;break;case 70:this.$=E.LINETYPE.DOTTED_OPEN;break;case 71:this.$=E.LINETYPE.SOLID;break;case 72:this.$=E.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=E.LINETYPE.DOTTED;break;case 74:this.$=E.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=E.LINETYPE.SOLID_CROSS;break;case 76:this.$=E.LINETYPE.DOTTED_CROSS;break;case 77:this.$=E.LINETYPE.SOLID_POINT;break;case 78:this.$=E.LINETYPE.DOTTED_POINT;break;case 79:this.$=E.parseMessage(h[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:l,6:s},{1:[3]},{3:5,4:t,5:l,6:s},{3:6,4:t,5:l,6:s},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:o,8:8,9:10,12:12,13:d,14:p,17:15,18:r,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:O,39:R,41:Y,43:F,44:K,46:Q,50:W,52:q,53:V,54:S,59:U,60:z,61:G,62:Z,70:k},e(_,[2,5]),{9:47,12:12,13:d,14:p,17:15,18:r,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:O,39:R,41:Y,43:F,44:K,46:Q,50:W,52:q,53:V,54:S,59:U,60:z,61:G,62:Z,70:k},e(_,[2,7]),e(_,[2,8]),e(_,[2,14]),{12:48,50:W,52:q,53:V},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:k},{22:55,70:k},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(_,[2,29]),e(_,[2,30]),{32:[1,61]},{34:[1,62]},e(_,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:k},{22:72,70:k},{22:73,70:k},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:k},{22:90,70:k},{22:91,70:k},{22:92,70:k},e([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),e(_,[2,6]),e(_,[2,15]),e(I,[2,9],{10:93}),e(_,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},e(_,[2,21]),{5:[1,97]},{5:[1,98]},e(_,[2,24]),e(_,[2,25]),e(_,[2,26]),e(_,[2,27]),e(_,[2,28]),e(_,[2,31]),e(_,[2,32]),e(X,i,{7:99}),e(X,i,{7:100}),e(X,i,{7:101}),e($,i,{40:102,7:103}),e(A,i,{42:104,7:105}),e(A,i,{7:105,42:106}),e(Mt,i,{45:107,7:108}),e(X,i,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:k},e(at,[2,69]),e(at,[2,70]),e(at,[2,71]),e(at,[2,72]),e(at,[2,73]),e(at,[2,74]),e(at,[2,75]),e(at,[2,76]),e(at,[2,77]),e(at,[2,78]),{22:118,70:k},{22:120,58:119,70:k},{70:[2,63]},{70:[2,64]},{56:121,81:it},{56:123,81:it},{56:124,81:it},{56:125,81:it},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:W,52:q,53:V},{5:[1,131]},e(_,[2,19]),e(_,[2,20]),e(_,[2,22]),e(_,[2,23]),{4:n,5:o,8:8,9:10,12:12,13:d,14:p,16:[1,132],17:15,18:r,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:O,39:R,41:Y,43:F,44:K,46:Q,50:W,52:q,53:V,54:S,59:U,60:z,61:G,62:Z,70:k},{4:n,5:o,8:8,9:10,12:12,13:d,14:p,16:[1,133],17:15,18:r,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:O,39:R,41:Y,43:F,44:K,46:Q,50:W,52:q,53:V,54:S,59:U,60:z,61:G,62:Z,70:k},{4:n,5:o,8:8,9:10,12:12,13:d,14:p,16:[1,134],17:15,18:r,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:O,39:R,41:Y,43:F,44:K,46:Q,50:W,52:q,53:V,54:S,59:U,60:z,61:G,62:Z,70:k},{16:[1,135]},{4:n,5:o,8:8,9:10,12:12,13:d,14:p,16:[2,46],17:15,18:r,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:O,39:R,41:Y,43:F,44:K,46:Q,49:[1,136],50:W,52:q,53:V,54:S,59:U,60:z,61:G,62:Z,70:k},{16:[1,137]},{4:n,5:o,8:8,9:10,12:12,13:d,14:p,16:[2,44],17:15,18:r,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:O,39:R,41:Y,43:F,44:K,46:Q,48:[1,138],50:W,52:q,53:V,54:S,59:U,60:z,61:G,62:Z,70:k},{16:[1,139]},{16:[1,140]},{4:n,5:o,8:8,9:10,12:12,13:d,14:p,16:[2,42],17:15,18:r,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:O,39:R,41:Y,43:F,44:K,46:Q,47:[1,141],50:W,52:q,53:V,54:S,59:U,60:z,61:G,62:Z,70:k},{4:n,5:o,8:8,9:10,12:12,13:d,14:p,16:[1,142],17:15,18:r,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:O,39:R,41:Y,43:F,44:K,46:Q,50:W,52:q,53:V,54:S,59:U,60:z,61:G,62:Z,70:k},{15:[1,143]},e(_,[2,49]),{15:[1,144]},e(_,[2,51]),e(_,[2,52]),{22:145,70:k},{22:146,70:k},{56:147,81:it},{56:148,81:it},{56:149,81:it},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},e(_,[2,16]),e(I,[2,10]),{12:151,50:W,52:q,53:V},e(I,[2,12]),e(I,[2,13]),e(_,[2,18]),e(_,[2,34]),e(_,[2,35]),e(_,[2,36]),e(_,[2,37]),{15:[1,152]},e(_,[2,38]),{15:[1,153]},e(_,[2,39]),e(_,[2,40]),{15:[1,154]},e(_,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:it},{56:158,81:it},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:k},e(I,[2,11]),e($,i,{7:103,40:160}),e(A,i,{7:105,42:161}),e(Mt,i,{7:108,45:162}),e(_,[2,48]),e(_,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:a.__name(function(b,w){if(w.recoverable)this.trace(b);else{var L=new Error(b);throw L.hash=w,L}},"parseError"),parse:a.__name(function(b){var w=this,L=[0],E=[],M=[null],h=[],ft=this.table,u="",xt=0,Rt=0,jt=2,Dt=1,$t=h.slice.call(arguments,1),B=Object.create(this.lexer),ot={yy:{}};for(var wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wt)&&(ot.yy[wt]=this.yy[wt]);B.setInput(b,ot.yy),ot.yy.lexer=B,ot.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var vt=B.yylloc;h.push(vt);var te=B.options&&B.options.ranges;typeof ot.yy.parseError=="function"?this.parseError=ot.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ee(J){L.length=L.length-2*J,M.length=M.length-J,h.length=h.length-J}a.__name(ee,"popStack");function Ct(){var J;return J=E.pop()||B.lex()||Dt,typeof J!="number"&&(J instanceof Array&&(E=J,J=E.pop()),J=w.symbols_[J]||J),J}a.__name(Ct,"lex");for(var H,ct,j,It,dt={},_t,rt,Ot,Tt;;){if(ct=L[L.length-1],this.defaultActions[ct]?j=this.defaultActions[ct]:((H===null||typeof H>"u")&&(H=Ct()),j=ft[ct]&&ft[ct][H]),typeof j>"u"||!j.length||!j[0]){var Lt="";Tt=[];for(_t in ft[ct])this.terminals_[_t]&&_t>jt&&Tt.push("'"+this.terminals_[_t]+"'");B.showPosition?Lt="Parse error on line "+(xt+1)+`:
|
|
2
|
-
`+B.showPosition()+`
|
|
3
|
-
Expecting `+Tt.join(", ")+", got '"+(this.terminals_[H]||H)+"'":Lt="Parse error on line "+(xt+1)+": Unexpected "+(H==Dt?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(Lt,{text:B.match,token:this.terminals_[H]||H,line:B.yylineno,loc:vt,expected:Tt})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ct+", token: "+H);switch(j[0]){case 1:L.push(H),M.push(B.yytext),h.push(B.yylloc),L.push(j[1]),H=null,Rt=B.yyleng,u=B.yytext,xt=B.yylineno,vt=B.yylloc;break;case 2:if(rt=this.productions_[j[1]][1],dt.$=M[M.length-rt],dt._$={first_line:h[h.length-(rt||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(rt||1)].first_column,last_column:h[h.length-1].last_column},te&&(dt._$.range=[h[h.length-(rt||1)].range[0],h[h.length-1].range[1]]),It=this.performAction.apply(dt,[u,Rt,xt,ot.yy,j[1],M,h].concat($t)),typeof It<"u")return It;rt&&(L=L.slice(0,-1*rt*2),M=M.slice(0,-1*rt),h=h.slice(0,-1*rt)),L.push(this.productions_[j[1]][0]),M.push(dt.$),h.push(dt._$),Ot=ft[L[L.length-2]][L[L.length-1]],L.push(Ot);break;case 3:return!0}}return!0},"parse")},Zt=function(){var nt={EOF:1,parseError:a.__name(function(w,L){if(this.yy.parser)this.yy.parser.parseError(w,L);else throw new Error(w)},"parseError"),setInput:a.__name(function(b,w){return this.yy=w||this.yy||{},this._input=b,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:a.__name(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var w=b.match(/(?:\r\n?|\n).*/g);return w?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:a.__name(function(b){var w=b.length,L=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var E=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var 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:L?(L.length===E.length?this.yylloc.first_column:0)+E[E.length-L.length].length-L[0].length:this.yylloc.first_column-w},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-w]),this.yyleng=this.yytext.length,this},"unput"),more:a.__name(function(){return this._more=!0,this},"more"),reject:a.__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:a.__name(function(b){this.unput(this.match.slice(b))},"less"),pastInput:a.__name(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a.__name(function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a.__name(function(){var b=this.pastInput(),w=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|
5
|
-
`+w+"^"},"showPosition"),test_match:a.__name(function(b,w){var L,E,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))),E=b[0].match(/(?:\r\n?|\n).*/g),E&&(this.yylineno+=E.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:E?E[E.length-1].length-E[E.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,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(b[0].length),this.matched+=b[0],L=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),L)return L;if(this._backtrack){for(var h in M)this[h]=M[h];return!1}return!1},"test_match"),next:a.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,w,L,E;this._more||(this.yytext="",this.match="");for(var M=this._currentRules(),h=0;h<M.length;h++)if(L=this._input.match(this.rules[M[h]]),L&&(!w||L[0].length>w[0].length)){if(w=L,E=h,this.options.backtrack_lexer){if(b=this.test_match(L,M[h]),b!==!1)return b;if(this._backtrack){w=!1;continue}else return!1}else if(!this.options.flex)break}return w?(b=this.test_match(w,M[E]),b!==!1?b:!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:a.__name(function(){var w=this.next();return w||this.lex()},"lex"),begin:a.__name(function(w){this.conditionStack.push(w)},"begin"),popState:a.__name(function(){var w=this.conditionStack.length-1;return w>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a.__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:a.__name(function(w){return w=this.conditionStack.length-1-Math.abs(w||0),w>=0?this.conditionStack[w]:"INITIAL"},"topState"),pushState:a.__name(function(w){this.begin(w)},"pushState"),stateStackSize:a.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a.__name(function(w,L,E,M){switch(E){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return L.yytext=L.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return L.yytext=L.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 75;case 56:return 76;case 57:return 71;case 58:return 72;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 80;case 63:return 81;case 64:return 81;case 65:return 68;case 66:return 69;case 67:return 5;case 68:return"INVALID"}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^<\->\->:\n,;]+?([\-]*[^<\->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68],inclusive:!0}}};return nt}();bt.lexer=Zt;function mt(){this.yy={}}return a.__name(mt,"Parser"),mt.prototype=bt,bt.Parser=mt,new mt}();Pt.parser=Pt;var se=Pt,ie={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34},re={FILLED:0,OPEN:1},ne={LEFTOF:0,RIGHTOF:1,OVER:2},ut,oe=(ut=class{constructor(){this.state=new ae.ImperativeState(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=a.setAccTitle,this.setAccDescription=a.setAccDescription,this.setDiagramTitle=a.setDiagramTitle,this.getAccTitle=a.getAccTitle,this.getAccDescription=a.getAccDescription,this.getDiagramTitle=a.getDiagramTitle,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(a.getConfig2().wrap),this.LINETYPE=ie,this.ARROWTYPE=re,this.PLACEMENT=ne}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,l,s,i){let n=this.state.records.currentBox;const o=this.state.records.actors.get(t);if(o){if(this.state.records.currentBox&&o.box&&this.state.records.currentBox!==o.box)throw new Error(`A same participant should only be defined in one Box: ${o.name} can't be in '${o.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(n=o.box?o.box:this.state.records.currentBox,o.box=n,o&&l===o.name&&s==null)return}if(s?.text==null&&(s={text:l,type:i}),(i==null||s.text==null)&&(s={text:l,type:i}),this.state.records.actors.set(t,{box:n,name:l,description:s.text,wrap:s.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:i??"participant"}),this.state.records.prevActor){const d=this.state.records.actors.get(this.state.records.prevActor);d&&(d.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let l,s=0;if(!t)return 0;for(l=0;l<this.state.records.messages.length;l++)this.state.records.messages[l].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[l].from===t&&s++,this.state.records.messages[l].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[l].from===t&&s--;return s}addMessage(t,l,s,i){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:l,message:s.text,wrap:s.wrap??this.autoWrap(),answer:i})}addSignal(t,l,s,i,n=!1){if(i===this.LINETYPE.ACTIVE_END&&this.activationCount(t??"")<1){const d=new Error("Trying to inactivate an inactive participant ("+t+")");throw d.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},d}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:l,message:s?.text??"",wrap:s?.wrap??this.autoWrap(),type:i,activate:n}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(t===void 0)return{};t=t.trim();const l=/^:?wrap:/.exec(t)!==null?!0:/^:?nowrap:/.exec(t)!==null?!1:void 0;return{cleanedText:(l===void 0?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:l}}autoWrap(){return this.state.records.wrapEnabled!==void 0?this.state.records.wrapEnabled:a.getConfig2().sequence?.wrap??!1}clear(){this.state.reset(),a.clear()}parseMessage(t){const l=t.trim(),{wrap:s,cleanedText:i}=this.extractWrap(l),n={text:i,wrap:s};return a.log.debug(`parseMessage: ${JSON.stringify(n)}`),n}parseBoxData(t){const l=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t);let s=l?.[1]?l[1].trim():"transparent",i=l?.[2]?l[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",s)||(s="transparent",i=t.trim());else{const d=new Option().style;d.color=s,d.color!==s&&(s="transparent",i=t.trim())}const{wrap:n,cleanedText:o}=this.extractWrap(i);return{text:o?a.sanitizeText(o,a.getConfig2()):void 0,color:s,wrap:n}}addNote(t,l,s){const i={actor:t,placement:l,message:s.text,wrap:s.wrap??this.autoWrap()},n=[].concat(t,t);this.state.records.notes.push(i),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:n[0],to:n[1],message:s.text,wrap:s.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:l})}addLinks(t,l){const s=this.getActor(t);try{let i=a.sanitizeText(l.text,a.getConfig2());i=i.replace(/=/g,"="),i=i.replace(/&/g,"&");const n=JSON.parse(i);this.insertLinks(s,n)}catch(i){a.log.error("error while parsing actor link text",i)}}addALink(t,l){const s=this.getActor(t);try{const i={};let n=a.sanitizeText(l.text,a.getConfig2());const o=n.indexOf("@");n=n.replace(/=/g,"="),n=n.replace(/&/g,"&");const d=n.slice(0,o-1).trim(),p=n.slice(o+1).trim();i[d]=p,this.insertLinks(s,i)}catch(i){a.log.error("error while parsing actor link text",i)}}insertLinks(t,l){if(t.links==null)t.links=l;else for(const s in l)t.links[s]=l[s]}addProperties(t,l){const s=this.getActor(t);try{const i=a.sanitizeText(l.text,a.getConfig2()),n=JSON.parse(i);this.insertProperties(s,n)}catch(i){a.log.error("error while parsing actor properties text",i)}}insertProperties(t,l){if(t.properties==null)t.properties=l;else for(const s in l)t.properties[s]=l[s]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,l){const s=this.getActor(t),i=document.getElementById(l.text);try{const n=i.innerHTML,o=JSON.parse(n);o.properties&&this.insertProperties(s,o.properties),o.links&&this.insertLinks(s,o.links)}catch(n){a.log.error("error while parsing actor details text",n)}}getActorProperty(t,l){if(t?.properties!==void 0)return t.properties[l]}apply(t){if(Array.isArray(t))t.forEach(l=>{this.apply(l)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated){if(t.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"altStart":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":a.setAccTitle(t.text);break;case"parStart":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break}}getConfig(){return a.getConfig2().sequence}},a.__name(ut,"SequenceDB"),ut),ce=a.__name(e=>`.actor {
|
|
7
|
-
stroke: ${e.actorBorder};
|
|
8
|
-
fill: ${e.actorBkg};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
text.actor > tspan {
|
|
12
|
-
fill: ${e.actorTextColor};
|
|
13
|
-
stroke: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.actor-line {
|
|
17
|
-
stroke: ${e.actorLineColor};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.messageLine0 {
|
|
21
|
-
stroke-width: 1.5;
|
|
22
|
-
stroke-dasharray: none;
|
|
23
|
-
stroke: ${e.signalColor};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.messageLine1 {
|
|
27
|
-
stroke-width: 1.5;
|
|
28
|
-
stroke-dasharray: 2, 2;
|
|
29
|
-
stroke: ${e.signalColor};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
#arrowhead path {
|
|
33
|
-
fill: ${e.signalColor};
|
|
34
|
-
stroke: ${e.signalColor};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.sequenceNumber {
|
|
38
|
-
fill: ${e.sequenceNumberColor};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
#sequencenumber {
|
|
42
|
-
fill: ${e.signalColor};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
#crosshead path {
|
|
46
|
-
fill: ${e.signalColor};
|
|
47
|
-
stroke: ${e.signalColor};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.messageText {
|
|
51
|
-
fill: ${e.signalTextColor};
|
|
52
|
-
stroke: none;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.labelBox {
|
|
56
|
-
stroke: ${e.labelBoxBorderColor};
|
|
57
|
-
fill: ${e.labelBoxBkgColor};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.labelText, .labelText > tspan {
|
|
61
|
-
fill: ${e.labelTextColor};
|
|
62
|
-
stroke: none;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.loopText, .loopText > tspan {
|
|
66
|
-
fill: ${e.loopTextColor};
|
|
67
|
-
stroke: none;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.loopLine {
|
|
71
|
-
stroke-width: 2px;
|
|
72
|
-
stroke-dasharray: 2, 2;
|
|
73
|
-
stroke: ${e.labelBoxBorderColor};
|
|
74
|
-
fill: ${e.labelBoxBorderColor};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.note {
|
|
78
|
-
//stroke: #decc93;
|
|
79
|
-
stroke: ${e.noteBorderColor};
|
|
80
|
-
fill: ${e.noteBkgColor};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.noteText, .noteText > tspan {
|
|
84
|
-
fill: ${e.noteTextColor};
|
|
85
|
-
stroke: none;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.activation0 {
|
|
89
|
-
fill: ${e.activationBkgColor};
|
|
90
|
-
stroke: ${e.activationBorderColor};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.activation1 {
|
|
94
|
-
fill: ${e.activationBkgColor};
|
|
95
|
-
stroke: ${e.activationBorderColor};
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.activation2 {
|
|
99
|
-
fill: ${e.activationBkgColor};
|
|
100
|
-
stroke: ${e.activationBorderColor};
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.actorPopupMenu {
|
|
104
|
-
position: absolute;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.actorPopupMenuPanel {
|
|
108
|
-
position: absolute;
|
|
109
|
-
fill: ${e.actorBkg};
|
|
110
|
-
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
111
|
-
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
|
|
112
|
-
}
|
|
113
|
-
.actor-man line {
|
|
114
|
-
stroke: ${e.actorBorder};
|
|
115
|
-
fill: ${e.actorBkg};
|
|
116
|
-
}
|
|
117
|
-
.actor-man circle, line {
|
|
118
|
-
stroke: ${e.actorBorder};
|
|
119
|
-
fill: ${e.actorBkg};
|
|
120
|
-
stroke-width: 2px;
|
|
121
|
-
}
|
|
122
|
-
`,"getStyles"),le=ce,lt=18*2,Yt="actor-top",Ft="actor-bottom",he="actor-box",Bt="actor-man",Nt=a.__name(function(e,t){return et.drawRect(e,t)},"drawRect"),de=a.__name(function(e,t,l,s,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};const n=t.links,o=t.actorCnt,d=t.rectData;var p="none";i&&(p="block !important");const r=e.append("g");r.attr("id","actor"+o+"_popup"),r.attr("class","actorPopupMenu"),r.attr("display",p);var f="";d.class!==void 0&&(f=" "+d.class);let T=d.width>l?d.width:l;const g=r.append("rect");if(g.attr("class","actorPopupMenuPanel"+f),g.attr("x",d.x),g.attr("y",d.height),g.attr("fill",d.fill),g.attr("stroke",d.stroke),g.attr("width",T),g.attr("height",d.height),g.attr("rx",d.rx),g.attr("ry",d.ry),n!=null){var x=20;for(let P in n){var y=r.append("a"),v=a.distExports.sanitizeUrl(n[P]);y.attr("xlink:href",v),y.attr("target","_blank"),Ae(s)(P,y,d.x+10,d.height+x,T,20,{class:"actor"},s),x+=30}}return g.attr("height",x),{height:d.height+x,width:T}},"drawPopup"),pe=a.__name(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),Et=a.__name(async function(e,t,l=null){let s=e.append("foreignObject");const i=await a.renderKatexSanitized(t.text,a.getConfig()),o=s.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(s.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),t.class==="noteText"){const d=e.node().firstChild;d.setAttribute("height",o.height+2*t.textMargin);const p=d.getBBox();s.attr("x",Math.round(p.x+p.width/2-o.width/2)).attr("y",Math.round(p.y+p.height/2-o.height/2))}else if(l){let{startx:d,stopx:p,starty:r}=l;if(d>p){const f=d;d=p,p=f}s.attr("x",Math.round(d+Math.abs(d-p)/2-o.width/2)),t.class==="loopText"?s.attr("y",Math.round(r)):s.attr("y",Math.round(r-o.height))}return[s]},"drawKatex"),gt=a.__name(function(e,t){let l=0,s=0;const i=t.text.split(a.common_default.lineBreakRegex),[n,o]=a.parseFontSize(t.fontSize);let d=[],p=0,r=a.__name(()=>t.y,"yfunc");if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case"top":case"start":r=a.__name(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":r=a.__name(()=>Math.round(t.y+(l+s+t.textMargin)/2),"yfunc");break;case"bottom":case"end":r=a.__name(()=>Math.round(t.y+(l+s+2*t.textMargin)-t.textMargin),"yfunc");break}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle";break}for(let[f,T]of i.entries()){t.textMargin!==void 0&&t.textMargin===0&&n!==void 0&&(p=f*n);const g=e.append("text");g.attr("x",t.x),g.attr("y",r()),t.anchor!==void 0&&g.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),t.fontFamily!==void 0&&g.style("font-family",t.fontFamily),o!==void 0&&g.style("font-size",o),t.fontWeight!==void 0&&g.style("font-weight",t.fontWeight),t.fill!==void 0&&g.attr("fill",t.fill),t.class!==void 0&&g.attr("class",t.class),t.dy!==void 0?g.attr("dy",t.dy):p!==0&&g.attr("dy",p);const x=T||a.ZERO_WIDTH_SPACE;if(t.tspan){const y=g.append("tspan");y.attr("x",t.x),t.fill!==void 0&&y.attr("fill",t.fill),y.text(x)}else g.text(x);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(s+=(g._groups||g)[0][0].getBBox().height,l=s),d.push(g)}return d},"drawText"),Wt=a.__name(function(e,t){function l(i,n,o,d,p){return i+","+n+" "+(i+o)+","+n+" "+(i+o)+","+(n+d-p)+" "+(i+o-p*1.2)+","+(n+d)+" "+i+","+(n+d)}a.__name(l,"genPoints");const s=e.append("polygon");return s.attr("points",l(t.x,t.y,t.width,t.height,7)),s.attr("class","labelBox"),t.y=t.y+t.height/2,gt(e,t),s},"drawLabel"),st=-1,qt=a.__name((e,t,l,s)=>{e.select&&l.forEach(i=>{const n=t.get(i),o=e.select("#actor"+n.actorCnt);!s.mirrorActors&&n.stopy?o.attr("y2",n.stopy+n.height/2):s.mirrorActors&&o.attr("y2",n.stopy)})},"fixLifeLineHeights"),ue=a.__name(function(e,t,l,s){const i=s?t.stopy:t.starty,n=t.x+t.width/2,o=i+t.height,d=e.append("g").lower();var p=d;s||(st++,Object.keys(t.links||{}).length&&!l.forceMenus&&p.attr("onclick",pe(`actor${st}_popup`)).attr("cursor","pointer"),p.append("line").attr("id","actor"+st).attr("x1",n).attr("y1",o).attr("x2",n).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),p=d.append("g"),t.actorCnt=st,t.links!=null&&p.attr("id","root-"+st));const r=et.getNoteRect();var f="actor";t.properties?.class?f=t.properties.class:r.fill="#eaeaea",s?f+=` ${Ft}`:f+=` ${Yt}`,r.x=t.x,r.y=i,r.width=t.width,r.height=t.height,r.class=f,r.rx=3,r.ry=3,r.name=t.name;const T=Nt(p,r);if(t.rectData=r,t.properties?.icon){const x=t.properties.icon.trim();x.charAt(0)==="@"?et.drawEmbeddedImage(p,r.x+r.width-20,r.y+10,x.substr(1)):et.drawImage(p,r.x+r.width-20,r.y+10,x)}St(l,a.hasKatex(t.description))(t.description,p,r.x,r.y,r.width,r.height,{class:`actor ${he}`},l);let g=t.height;if(T.node){const x=T.node().getBBox();t.height=x.height,g=x.height}return g},"drawActorTypeParticipant"),ge=a.__name(function(e,t,l,s){const i=s?t.stopy:t.starty,n=t.x+t.width/2,o=i+80,d=e.append("g").lower();s||(st++,d.append("line").attr("id","actor"+st).attr("x1",n).attr("y1",o).attr("x2",n).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=st);const p=e.append("g");let r=Bt;s?r+=` ${Ft}`:r+=` ${Yt}`,p.attr("class",r),p.attr("name",t.name);const f=et.getNoteRect();f.x=t.x,f.y=i,f.fill="#eaeaea",f.width=t.width,f.height=t.height,f.class="actor",f.rx=3,f.ry=3,p.append("line").attr("id","actor-man-torso"+st).attr("x1",n).attr("y1",i+25).attr("x2",n).attr("y2",i+45),p.append("line").attr("id","actor-man-arms"+st).attr("x1",n-lt/2).attr("y1",i+33).attr("x2",n+lt/2).attr("y2",i+33),p.append("line").attr("x1",n-lt/2).attr("y1",i+60).attr("x2",n).attr("y2",i+45),p.append("line").attr("x1",n).attr("y1",i+45).attr("x2",n+lt/2-2).attr("y2",i+60);const T=p.append("circle");T.attr("cx",t.x+t.width/2),T.attr("cy",i+10),T.attr("r",15),T.attr("width",t.width),T.attr("height",t.height);const g=p.node().getBBox();return t.height=g.height,St(l,a.hasKatex(t.description))(t.description,p,f.x,f.y+35,f.width,f.height,{class:`actor ${Bt}`},l),t.height},"drawActorTypeActor"),fe=a.__name(async function(e,t,l,s){switch(t.type){case"actor":return await ge(e,t,l,s);case"participant":return await ue(e,t,l,s)}},"drawActor"),me=a.__name(function(e,t,l){const i=e.append("g");zt(i,t),t.name&&St(l)(t.name,i,t.x,t.y+l.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},l),i.lower()},"drawBox"),xe=a.__name(function(e){return e.append("g")},"anchorElement"),_e=a.__name(function(e,t,l,s,i){const n=et.getNoteRect(),o=t.anchored;n.x=t.startx,n.y=t.starty,n.class="activation"+i%3,n.width=t.stopx-t.startx,n.height=l-t.starty,Nt(o,n)},"drawActivation"),Te=a.__name(async function(e,t,l,s){const{boxMargin:i,boxTextMargin:n,labelBoxHeight:o,labelBoxWidth:d,messageFontFamily:p,messageFontSize:r,messageFontWeight:f}=s,T=e.append("g"),g=a.__name(function(v,P,D,N){return T.append("line").attr("x1",v).attr("y1",P).attr("x2",D).attr("y2",N).attr("class","loopLine")},"drawLoopLine");g(t.startx,t.starty,t.stopx,t.starty),g(t.stopx,t.starty,t.stopx,t.stopy),g(t.startx,t.stopy,t.stopx,t.stopy),g(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(v){g(t.startx,v.y,t.stopx,v.y).style("stroke-dasharray","3, 3")});let x=et.getTextObj();x.text=l,x.x=t.startx,x.y=t.starty,x.fontFamily=p,x.fontSize=r,x.fontWeight=f,x.anchor="middle",x.valign="middle",x.tspan=!1,x.width=d||50,x.height=o||20,x.textMargin=n,x.class="labelText",Wt(T,x),x=Ht(),x.text=t.title,x.x=t.startx+d/2+(t.stopx-t.startx)/2,x.y=t.starty+i+n,x.anchor="middle",x.valign="middle",x.textMargin=n,x.class="loopText",x.fontFamily=p,x.fontSize=r,x.fontWeight=f,x.wrap=!0;let y=a.hasKatex(x.text)?await Et(T,x,t):gt(T,x);if(t.sectionTitles!==void 0){for(const[v,P]of Object.entries(t.sectionTitles))if(P.message){x.text=P.message,x.x=t.startx+(t.stopx-t.startx)/2,x.y=t.sections[v].y+i+n,x.class="loopText",x.anchor="middle",x.valign="middle",x.tspan=!1,x.fontFamily=p,x.fontSize=r,x.fontWeight=f,x.wrap=t.wrap,a.hasKatex(x.text)?(t.starty=t.sections[v].y,await Et(T,x,t)):gt(T,x);let D=Math.round(y.map(N=>(N._groups||N)[0][0].getBBox().height).reduce((N,O)=>N+O));t.sections[v].height+=D-(i+n)}}return t.height=Math.round(t.stopy-t.starty),T},"drawLoop"),zt=a.__name(function(e,t){et.drawBackgroundRect(e,t)},"drawBackgroundRect"),Ee=a.__name(function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),ye=a.__name(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),be=a.__name(function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),we=a.__name(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),ve=a.__name(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),Ie=a.__name(function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),Le=a.__name(function(e){e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),Ht=a.__name(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),Pe=a.__name(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),St=function(){function e(n,o,d,p,r,f,T){const g=o.append("text").attr("x",d+r/2).attr("y",p+f/2+5).style("text-anchor","middle").text(n);i(g,T)}a.__name(e,"byText");function t(n,o,d,p,r,f,T,g){const{actorFontSize:x,actorFontFamily:y,actorFontWeight:v}=g,[P,D]=a.parseFontSize(x),N=n.split(a.common_default.lineBreakRegex);for(let O=0;O<N.length;O++){const R=O*P-P*(N.length-1)/2,Y=o.append("text").attr("x",d+r/2).attr("y",p).style("text-anchor","middle").style("font-size",D).style("font-weight",v).style("font-family",y);Y.append("tspan").attr("x",d+r/2).attr("dy",R).text(N[O]),Y.attr("y",p+f/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(Y,T)}}a.__name(t,"byTspan");function l(n,o,d,p,r,f,T,g){const x=o.append("switch"),v=x.append("foreignObject").attr("x",d).attr("y",p).attr("width",r).attr("height",f).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");v.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),t(n,x,d,p,r,f,T,g),i(v,T)}a.__name(l,"byFo");async function s(n,o,d,p,r,f,T,g){const x=await a.calculateMathMLDimensions(n,a.getConfig()),y=o.append("switch"),P=y.append("foreignObject").attr("x",d+r/2-x.width/2).attr("y",p+f/2-x.height/2).attr("width",x.width).attr("height",x.height).append("xhtml:div").style("height","100%").style("width","100%");P.append("div").style("text-align","center").style("vertical-align","middle").html(await a.renderKatexSanitized(n,a.getConfig())),t(n,y,d,p,r,f,T,g),i(P,T)}a.__name(s,"byKatex");function i(n,o){for(const d in o)o.hasOwnProperty(d)&&n.attr(d,o[d])}return a.__name(i,"_setTextAttrs"),function(n,o=!1){return o?s:n.textPlacement==="fo"?l:n.textPlacement==="old"?e:t}}(),Ae=function(){function e(i,n,o,d,p,r,f){const T=n.append("text").attr("x",o).attr("y",d).style("text-anchor","start").text(i);s(T,f)}a.__name(e,"byText");function t(i,n,o,d,p,r,f,T){const{actorFontSize:g,actorFontFamily:x,actorFontWeight:y}=T,v=i.split(a.common_default.lineBreakRegex);for(let P=0;P<v.length;P++){const D=P*g-g*(v.length-1)/2,N=n.append("text").attr("x",o).attr("y",d).style("text-anchor","start").style("font-size",g).style("font-weight",y).style("font-family",x);N.append("tspan").attr("x",o).attr("dy",D).text(v[P]),N.attr("y",d+r/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(N,f)}}a.__name(t,"byTspan");function l(i,n,o,d,p,r,f,T){const g=n.append("switch"),y=g.append("foreignObject").attr("x",o).attr("y",d).attr("width",p).attr("height",r).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");y.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),t(i,g,o,d,p,r,f,T),s(y,f)}a.__name(l,"byFo");function s(i,n){for(const o in n)n.hasOwnProperty(o)&&i.attr(o,n[o])}return a.__name(s,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?l:i.textPlacement==="old"?e:t}}(),C={drawRect:Nt,drawText:gt,drawLabel:Wt,drawActor:fe,drawBox:me,drawPopup:de,anchorElement:xe,drawActivation:_e,drawLoop:Te,drawBackgroundRect:zt,insertArrowHead:we,insertArrowFilledHead:ve,insertSequenceNumber:Ie,insertArrowCrossHead:Le,insertDatabaseIcon:Ee,insertComputerIcon:ye,insertClockIcon:be,getTextObj:Ht,getNoteRect:Pe,fixLifeLineHeights:qt,sanitizeUrl:a.distExports.sanitizeUrl},c={},m={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:a.__name(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(e=>e.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},"getHeight"),clear:a.__name(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:a.__name(function(e){this.boxes.push(e)},"addBox"),addActor:a.__name(function(e){this.actors.push(e)},"addActor"),addLoop:a.__name(function(e){this.loops.push(e)},"addLoop"),addMessage:a.__name(function(e){this.messages.push(e)},"addMessage"),addNote:a.__name(function(e){this.notes.push(e)},"addNote"),lastActor:a.__name(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:a.__name(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:a.__name(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:a.__name(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:a.__name(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,Gt(a.getConfig2())},"init"),updateVal:a.__name(function(e,t,l,s){e[t]===void 0?e[t]=l:e[t]=s(l,e[t])},"updateVal"),updateBounds:a.__name(function(e,t,l,s){const i=this;let n=0;function o(d){return a.__name(function(r){n++;const f=i.sequenceItems.length-n+1;i.updateVal(r,"starty",t-f*c.boxMargin,Math.min),i.updateVal(r,"stopy",s+f*c.boxMargin,Math.max),i.updateVal(m.data,"startx",e-f*c.boxMargin,Math.min),i.updateVal(m.data,"stopx",l+f*c.boxMargin,Math.max),d!=="activation"&&(i.updateVal(r,"startx",e-f*c.boxMargin,Math.min),i.updateVal(r,"stopx",l+f*c.boxMargin,Math.max),i.updateVal(m.data,"starty",t-f*c.boxMargin,Math.min),i.updateVal(m.data,"stopy",s+f*c.boxMargin,Math.max))},"updateItemBounds")}a.__name(o,"updateFn"),this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},"updateBounds"),insert:a.__name(function(e,t,l,s){const i=a.common_default.getMin(e,l),n=a.common_default.getMax(e,l),o=a.common_default.getMin(t,s),d=a.common_default.getMax(t,s);this.updateVal(m.data,"startx",i,Math.min),this.updateVal(m.data,"starty",o,Math.min),this.updateVal(m.data,"stopx",n,Math.max),this.updateVal(m.data,"stopy",d,Math.max),this.updateBounds(i,o,n,d)},"insert"),newActivation:a.__name(function(e,t,l){const s=l.get(e.from),i=yt(e.from).length||0,n=s.x+s.width/2+(i-1)*c.activationWidth/2;this.activations.push({startx:n,starty:this.verticalPos+2,stopx:n+c.activationWidth,stopy:void 0,actor:e.from,anchored:C.anchorElement(t)})},"newActivation"),endActivation:a.__name(function(e){const t=this.activations.map(function(l){return l.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:a.__name(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},"createLoop"),newLoop:a.__name(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},"newLoop"),endLoop:a.__name(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:a.__name(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:a.__name(function(e){const t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:m.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:a.__name(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:a.__name(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:a.__name(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=a.common_default.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:a.__name(function(){return this.verticalPos},"getVerticalPos"),getBounds:a.__name(function(){return{bounds:this.data,models:this.models}},"getBounds")},ke=a.__name(async function(e,t){m.bumpVerticalPos(c.boxMargin),t.height=c.boxMargin,t.starty=m.getVerticalPos();const l=et.getNoteRect();l.x=t.startx,l.y=t.starty,l.width=t.width||c.width,l.class="note";const s=e.append("g"),i=C.drawRect(s,l),n=et.getTextObj();n.x=t.startx,n.y=t.starty,n.width=l.width,n.dy="1em",n.text=t.message,n.class="noteText",n.fontFamily=c.noteFontFamily,n.fontSize=c.noteFontSize,n.fontWeight=c.noteFontWeight,n.anchor=c.noteAlign,n.textMargin=c.noteMargin,n.valign="center";const o=a.hasKatex(n.text)?await Et(s,n):gt(s,n),d=Math.round(o.map(p=>(p._groups||p)[0][0].getBBox().height).reduce((p,r)=>p+r));i.attr("height",d+2*c.noteMargin),t.height+=d+2*c.noteMargin,m.bumpVerticalPos(d+2*c.noteMargin),t.stopy=t.starty+d+2*c.noteMargin,t.stopx=t.startx+l.width,m.insert(t.startx,t.starty,t.stopx,t.stopy),m.models.addNote(t)},"drawNote"),ht=a.__name(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),pt=a.__name(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),At=a.__name(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont");async function Kt(e,t){m.bumpVerticalPos(10);const{startx:l,stopx:s,message:i}=t,n=a.common_default.splitBreaks(i).length,o=a.hasKatex(i),d=o?await a.calculateMathMLDimensions(i,a.getConfig2()):a.utils_default.calculateTextDimensions(i,ht(c));if(!o){const T=d.height/n;t.height+=T,m.bumpVerticalPos(T)}let p,r=d.height-10;const f=d.width;if(l===s){p=m.getVerticalPos()+r,c.rightAngles||(r+=c.boxMargin,p=m.getVerticalPos()+r),r+=30;const T=a.common_default.getMax(f/2,c.width/2);m.insert(l-T,m.getVerticalPos()-10+r,s+T,m.getVerticalPos()+30+r)}else r+=c.boxMargin,p=m.getVerticalPos()+r,m.insert(l,p-10,s,p);return m.bumpVerticalPos(r),t.height+=r,t.stopy=t.starty+t.height,m.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),p}a.__name(Kt,"boundMessage");var Ne=a.__name(async function(e,t,l,s){const{startx:i,stopx:n,starty:o,message:d,type:p,sequenceIndex:r,sequenceVisible:f}=t,T=a.utils_default.calculateTextDimensions(d,ht(c)),g=et.getTextObj();g.x=i,g.y=o+10,g.width=n-i,g.class="messageText",g.dy="1em",g.text=d,g.fontFamily=c.messageFontFamily,g.fontSize=c.messageFontSize,g.fontWeight=c.messageFontWeight,g.anchor=c.messageAlign,g.valign="center",g.textMargin=c.wrapPadding,g.tspan=!1,a.hasKatex(g.text)?await Et(e,g,{startx:i,stopx:n,starty:l}):gt(e,g);const x=T.width;let y;i===n?c.rightAngles?y=e.append("path").attr("d",`M ${i},${l} H ${i+a.common_default.getMax(c.width/2,x/2)} V ${l+25} H ${i}`):y=e.append("path").attr("d","M "+i+","+l+" C "+(i+60)+","+(l-10)+" "+(i+60)+","+(l+30)+" "+i+","+(l+20)):(y=e.append("line"),y.attr("x1",i),y.attr("y1",l),y.attr("x2",n),y.attr("y2",l)),p===s.db.LINETYPE.DOTTED||p===s.db.LINETYPE.DOTTED_CROSS||p===s.db.LINETYPE.DOTTED_POINT||p===s.db.LINETYPE.DOTTED_OPEN||p===s.db.LINETYPE.BIDIRECTIONAL_DOTTED?(y.style("stroke-dasharray","3, 3"),y.attr("class","messageLine1")):y.attr("class","messageLine0");let v="";c.arrowMarkerAbsolute&&(v=a.getUrl(!0)),y.attr("stroke-width",2),y.attr("stroke","none"),y.style("fill","none"),(p===s.db.LINETYPE.SOLID||p===s.db.LINETYPE.DOTTED)&&y.attr("marker-end","url("+v+"#arrowhead)"),(p===s.db.LINETYPE.BIDIRECTIONAL_SOLID||p===s.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(y.attr("marker-start","url("+v+"#arrowhead)"),y.attr("marker-end","url("+v+"#arrowhead)")),(p===s.db.LINETYPE.SOLID_POINT||p===s.db.LINETYPE.DOTTED_POINT)&&y.attr("marker-end","url("+v+"#filled-head)"),(p===s.db.LINETYPE.SOLID_CROSS||p===s.db.LINETYPE.DOTTED_CROSS)&&y.attr("marker-end","url("+v+"#crosshead)"),(f||c.showSequenceNumbers)&&((p===s.db.LINETYPE.BIDIRECTIONAL_SOLID||p===s.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(i<n?y.attr("x1",i+2*6):y.attr("x1",i+6)),e.append("line").attr("x1",i).attr("y1",l).attr("x2",i).attr("y2",l).attr("stroke-width",0).attr("marker-start","url("+v+"#sequencenumber)"),e.append("text").attr("x",i).attr("y",l+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(r))},"drawMessage"),Se=a.__name(function(e,t,l,s,i,n,o){let d=0,p=0,r,f=0;for(const T of s){const g=t.get(T),x=g.box;r&&r!=x&&(o||m.models.addBox(r),p+=c.boxMargin+r.margin),x&&x!=r&&(o||(x.x=d+p,x.y=i),p+=x.margin),g.width=g.width||c.width,g.height=a.common_default.getMax(g.height||c.height,c.height),g.margin=g.margin||c.actorMargin,f=a.common_default.getMax(f,g.height),l.get(g.name)&&(p+=g.width/2),g.x=d+p,g.starty=m.getVerticalPos(),m.insert(g.x,i,g.x+g.width,g.height),d+=g.width+p,g.box&&(g.box.width=d+x.margin-g.box.x),p=g.margin,r=g.box,m.models.addActor(g)}r&&!o&&m.models.addBox(r),m.bumpVerticalPos(f)},"addActorRenderingData"),kt=a.__name(async function(e,t,l,s){if(s){let i=0;m.bumpVerticalPos(c.boxMargin*2);for(const n of l){const o=t.get(n);o.stopy||(o.stopy=m.getVerticalPos());const d=await C.drawActor(e,o,c,!0);i=a.common_default.getMax(i,d)}m.bumpVerticalPos(i+c.boxMargin)}else for(const i of l){const n=t.get(i);await C.drawActor(e,n,c,!1)}},"drawActors"),Ut=a.__name(function(e,t,l,s){let i=0,n=0;for(const o of l){const d=t.get(o),p=Re(d),r=C.drawPopup(e,d,p,c,c.forceMenus,s);r.height>i&&(i=r.height),r.width+d.x>n&&(n=r.width+d.x)}return{maxHeight:i,maxWidth:n}},"drawActorsPopup"),Gt=a.__name(function(e){a.assignWithDepth_default(c,e),e.fontFamily&&(c.actorFontFamily=c.noteFontFamily=c.messageFontFamily=e.fontFamily),e.fontSize&&(c.actorFontSize=c.noteFontSize=c.messageFontSize=e.fontSize),e.fontWeight&&(c.actorFontWeight=c.noteFontWeight=c.messageFontWeight=e.fontWeight)},"setConf"),yt=a.__name(function(e){return m.activations.filter(function(t){return t.actor===e})},"actorActivations"),Vt=a.__name(function(e,t){const l=t.get(e),s=yt(e),i=s.reduce(function(o,d){return a.common_default.getMin(o,d.startx)},l.x+l.width/2-1),n=s.reduce(function(o,d){return a.common_default.getMax(o,d.stopx)},l.x+l.width/2+1);return[i,n]},"activationBounds");function tt(e,t,l,s,i){m.bumpVerticalPos(l);let n=s;if(t.id&&t.message&&e[t.id]){const o=e[t.id].width,d=ht(c);t.message=a.utils_default.wrapLabel(`[${t.message}]`,o-2*c.wrapPadding,d),t.width=o,t.wrap=!0;const p=a.utils_default.calculateTextDimensions(t.message,d),r=a.common_default.getMax(p.height,c.labelBoxHeight);n=s+r,a.log.debug(`${r} - ${t.message}`)}i(t),m.bumpVerticalPos(n)}a.__name(tt,"adjustLoopHeightForWrap");function Xt(e,t,l,s,i,n,o){function d(r,f){r.x<i.get(e.from).x?(m.insert(t.stopx-f,t.starty,t.startx,t.stopy+r.height/2+c.noteMargin),t.stopx=t.stopx+f):(m.insert(t.startx,t.starty,t.stopx+f,t.stopy+r.height/2+c.noteMargin),t.stopx=t.stopx-f)}a.__name(d,"receiverAdjustment");function p(r,f){r.x<i.get(e.to).x?(m.insert(t.startx-f,t.starty,t.stopx,t.stopy+r.height/2+c.noteMargin),t.startx=t.startx+f):(m.insert(t.stopx,t.starty,t.startx+f,t.stopy+r.height/2+c.noteMargin),t.startx=t.startx-f)}if(a.__name(p,"senderAdjustment"),n.get(e.to)==s){const r=i.get(e.to),f=r.type=="actor"?lt/2+3:r.width/2+3;d(r,f),r.starty=l-r.height/2,m.bumpVerticalPos(r.height/2)}else if(o.get(e.from)==s){const r=i.get(e.from);if(c.mirrorActors){const f=r.type=="actor"?lt/2:r.width/2;p(r,f)}r.stopy=l-r.height/2,m.bumpVerticalPos(r.height/2)}else if(o.get(e.to)==s){const r=i.get(e.to);if(c.mirrorActors){const f=r.type=="actor"?lt/2+3:r.width/2+3;d(r,f)}r.stopy=l-r.height/2,m.bumpVerticalPos(r.height/2)}}a.__name(Xt,"adjustCreatedDestroyedData");var Me=a.__name(async function(e,t,l,s){const{securityLevel:i,sequence:n}=a.getConfig2();c=n;let o;i==="sandbox"&&(o=a.select("#i"+t));const d=i==="sandbox"?a.select(o.nodes()[0].contentDocument.body):a.select("body"),p=i==="sandbox"?o.nodes()[0].contentDocument:document;m.init(),a.log.debug(s.db);const r=i==="sandbox"?d.select(`[id="${t}"]`):a.select(`[id="${t}"]`),f=s.db.getActors(),T=s.db.getCreatedActors(),g=s.db.getDestroyedActors(),x=s.db.getBoxes();let y=s.db.getActorKeys();const v=s.db.getMessages(),P=s.db.getDiagramTitle(),D=s.db.hasAtLeastOneBox(),N=s.db.hasAtLeastOneBoxWithTitle(),O=await Jt(f,v,s);if(c.height=await Qt(f,O,x),C.insertComputerIcon(r),C.insertDatabaseIcon(r),C.insertClockIcon(r),D&&(m.bumpVerticalPos(c.boxMargin),N&&m.bumpVerticalPos(x[0].textMaxHeight)),c.hideUnusedParticipants===!0){const _=new Set;v.forEach(I=>{_.add(I.from),_.add(I.to)}),y=y.filter(I=>_.has(I))}Se(r,f,T,y,0,v,!1);const R=await Oe(v,f,O,s);C.insertArrowHead(r),C.insertArrowCrossHead(r),C.insertArrowFilledHead(r),C.insertSequenceNumber(r);function Y(_,I){const X=m.endActivation(_);X.starty+18>I&&(X.starty=I-6,I+=12),C.drawActivation(r,X,I,c,yt(_.from).length),m.insert(X.startx,I-10,X.stopx,I)}a.__name(Y,"activeEnd");let F=1,K=1;const Q=[],W=[];let q=0;for(const _ of v){let I,X,$;switch(_.type){case s.db.LINETYPE.NOTE:m.resetVerticalPos(),X=_.noteModel,await ke(r,X);break;case s.db.LINETYPE.ACTIVE_START:m.newActivation(_,r,f);break;case s.db.LINETYPE.ACTIVE_END:Y(_,m.getVerticalPos());break;case s.db.LINETYPE.LOOP_START:tt(R,_,c.boxMargin,c.boxMargin+c.boxTextMargin,A=>m.newLoop(A));break;case s.db.LINETYPE.LOOP_END:I=m.endLoop(),await C.drawLoop(r,I,"loop",c),m.bumpVerticalPos(I.stopy-m.getVerticalPos()),m.models.addLoop(I);break;case s.db.LINETYPE.RECT_START:tt(R,_,c.boxMargin,c.boxMargin,A=>m.newLoop(void 0,A.message));break;case s.db.LINETYPE.RECT_END:I=m.endLoop(),W.push(I),m.models.addLoop(I),m.bumpVerticalPos(I.stopy-m.getVerticalPos());break;case s.db.LINETYPE.OPT_START:tt(R,_,c.boxMargin,c.boxMargin+c.boxTextMargin,A=>m.newLoop(A));break;case s.db.LINETYPE.OPT_END:I=m.endLoop(),await C.drawLoop(r,I,"opt",c),m.bumpVerticalPos(I.stopy-m.getVerticalPos()),m.models.addLoop(I);break;case s.db.LINETYPE.ALT_START:tt(R,_,c.boxMargin,c.boxMargin+c.boxTextMargin,A=>m.newLoop(A));break;case s.db.LINETYPE.ALT_ELSE:tt(R,_,c.boxMargin+c.boxTextMargin,c.boxMargin,A=>m.addSectionToLoop(A));break;case s.db.LINETYPE.ALT_END:I=m.endLoop(),await C.drawLoop(r,I,"alt",c),m.bumpVerticalPos(I.stopy-m.getVerticalPos()),m.models.addLoop(I);break;case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:tt(R,_,c.boxMargin,c.boxMargin+c.boxTextMargin,A=>m.newLoop(A)),m.saveVerticalPos();break;case s.db.LINETYPE.PAR_AND:tt(R,_,c.boxMargin+c.boxTextMargin,c.boxMargin,A=>m.addSectionToLoop(A));break;case s.db.LINETYPE.PAR_END:I=m.endLoop(),await C.drawLoop(r,I,"par",c),m.bumpVerticalPos(I.stopy-m.getVerticalPos()),m.models.addLoop(I);break;case s.db.LINETYPE.AUTONUMBER:F=_.message.start||F,K=_.message.step||K,_.message.visible?s.db.enableSequenceNumbers():s.db.disableSequenceNumbers();break;case s.db.LINETYPE.CRITICAL_START:tt(R,_,c.boxMargin,c.boxMargin+c.boxTextMargin,A=>m.newLoop(A));break;case s.db.LINETYPE.CRITICAL_OPTION:tt(R,_,c.boxMargin+c.boxTextMargin,c.boxMargin,A=>m.addSectionToLoop(A));break;case s.db.LINETYPE.CRITICAL_END:I=m.endLoop(),await C.drawLoop(r,I,"critical",c),m.bumpVerticalPos(I.stopy-m.getVerticalPos()),m.models.addLoop(I);break;case s.db.LINETYPE.BREAK_START:tt(R,_,c.boxMargin,c.boxMargin+c.boxTextMargin,A=>m.newLoop(A));break;case s.db.LINETYPE.BREAK_END:I=m.endLoop(),await C.drawLoop(r,I,"break",c),m.bumpVerticalPos(I.stopy-m.getVerticalPos()),m.models.addLoop(I);break;default:try{$=_.msgModel,$.starty=m.getVerticalPos(),$.sequenceIndex=F,$.sequenceVisible=s.db.showSequenceNumbers();const A=await Kt(r,$);Xt(_,$,A,q,f,T,g),Q.push({messageModel:$,lineStartY:A}),m.models.addMessage($)}catch(A){a.log.error("error while drawing message",A)}}[s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.SOLID,s.db.LINETYPE.DOTTED,s.db.LINETYPE.SOLID_CROSS,s.db.LINETYPE.DOTTED_CROSS,s.db.LINETYPE.SOLID_POINT,s.db.LINETYPE.DOTTED_POINT,s.db.LINETYPE.BIDIRECTIONAL_SOLID,s.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(_.type)&&(F=F+K),q++}a.log.debug("createdActors",T),a.log.debug("destroyedActors",g),await kt(r,f,y,!1);for(const _ of Q)await Ne(r,_.messageModel,_.lineStartY,s);c.mirrorActors&&await kt(r,f,y,!0),W.forEach(_=>C.drawBackgroundRect(r,_)),qt(r,f,y,c);for(const _ of m.models.boxes)_.height=m.getVerticalPos()-_.y,m.insert(_.x,_.y,_.x+_.width,_.height),_.startx=_.x,_.starty=_.y,_.stopx=_.startx+_.width,_.stopy=_.starty+_.height,_.stroke="rgb(0,0,0, 0.5)",C.drawBox(r,_,c);D&&m.bumpVerticalPos(c.boxMargin);const V=Ut(r,f,y,p),{bounds:S}=m.getBounds();S.startx===void 0&&(S.startx=0),S.starty===void 0&&(S.starty=0),S.stopx===void 0&&(S.stopx=0),S.stopy===void 0&&(S.stopy=0);let U=S.stopy-S.starty;U<V.maxHeight&&(U=V.maxHeight);let z=U+2*c.diagramMarginY;c.mirrorActors&&(z=z-c.boxMargin+c.bottomMarginAdj);let G=S.stopx-S.startx;G<V.maxWidth&&(G=V.maxWidth);const Z=G+2*c.diagramMarginX;P&&r.append("text").text(P).attr("x",(S.stopx-S.startx)/2-2*c.diagramMarginX).attr("y",-25),a.configureSvgSize(r,z,Z,c.useMaxWidth);const k=P?40:0;r.attr("viewBox",S.startx-c.diagramMarginX+" -"+(c.diagramMarginY+k)+" "+Z+" "+(z+k)),a.log.debug("models:",m.models)},"draw");async function Jt(e,t,l){const s={};for(const i of t)if(e.get(i.to)&&e.get(i.from)){const n=e.get(i.to);if(i.placement===l.db.PLACEMENT.LEFTOF&&!n.prevActor||i.placement===l.db.PLACEMENT.RIGHTOF&&!n.nextActor)continue;const o=i.placement!==void 0,d=!o,p=o?pt(c):ht(c),r=i.wrap?a.utils_default.wrapLabel(i.message,c.width-2*c.wrapPadding,p):i.message,T=(a.hasKatex(r)?await a.calculateMathMLDimensions(i.message,a.getConfig2()):a.utils_default.calculateTextDimensions(r,p)).width+2*c.wrapPadding;d&&i.from===n.nextActor?s[i.to]=a.common_default.getMax(s[i.to]||0,T):d&&i.from===n.prevActor?s[i.from]=a.common_default.getMax(s[i.from]||0,T):d&&i.from===i.to?(s[i.from]=a.common_default.getMax(s[i.from]||0,T/2),s[i.to]=a.common_default.getMax(s[i.to]||0,T/2)):i.placement===l.db.PLACEMENT.RIGHTOF?s[i.from]=a.common_default.getMax(s[i.from]||0,T):i.placement===l.db.PLACEMENT.LEFTOF?s[n.prevActor]=a.common_default.getMax(s[n.prevActor]||0,T):i.placement===l.db.PLACEMENT.OVER&&(n.prevActor&&(s[n.prevActor]=a.common_default.getMax(s[n.prevActor]||0,T/2)),n.nextActor&&(s[i.from]=a.common_default.getMax(s[i.from]||0,T/2)))}return a.log.debug("maxMessageWidthPerActor:",s),s}a.__name(Jt,"getMaxMessageWidthPerActor");var Re=a.__name(function(e){let t=0;const l=At(c);for(const s in e.links){const n=a.utils_default.calculateTextDimensions(s,l).width+2*c.wrapPadding+2*c.boxMargin;t<n&&(t=n)}return t},"getRequiredPopupWidth");async function Qt(e,t,l){let s=0;for(const n of e.keys()){const o=e.get(n);o.wrap&&(o.description=a.utils_default.wrapLabel(o.description,c.width-2*c.wrapPadding,At(c)));const d=a.hasKatex(o.description)?await a.calculateMathMLDimensions(o.description,a.getConfig2()):a.utils_default.calculateTextDimensions(o.description,At(c));o.width=o.wrap?c.width:a.common_default.getMax(c.width,d.width+2*c.wrapPadding),o.height=o.wrap?a.common_default.getMax(d.height,c.height):c.height,s=a.common_default.getMax(s,o.height)}for(const n in t){const o=e.get(n);if(!o)continue;const d=e.get(o.nextActor);if(!d){const T=t[n]+c.actorMargin-o.width/2;o.margin=a.common_default.getMax(T,c.actorMargin);continue}const r=t[n]+c.actorMargin-o.width/2-d.width/2;o.margin=a.common_default.getMax(r,c.actorMargin)}let i=0;return l.forEach(n=>{const o=ht(c);let d=n.actorKeys.reduce((f,T)=>f+=e.get(T).width+(e.get(T).margin||0),0);d-=2*c.boxTextMargin,n.wrap&&(n.name=a.utils_default.wrapLabel(n.name,d-2*c.wrapPadding,o));const p=a.utils_default.calculateTextDimensions(n.name,o);i=a.common_default.getMax(p.height,i);const r=a.common_default.getMax(d,p.width+2*c.wrapPadding);if(n.margin=c.boxTextMargin,d<r){const f=(r-d)/2;n.margin+=f}}),l.forEach(n=>n.textMaxHeight=i),a.common_default.getMax(s,c.height)}a.__name(Qt,"calculateActorMargins");var De=a.__name(async function(e,t,l){const s=t.get(e.from),i=t.get(e.to),n=s.x,o=i.x,d=e.wrap&&e.message;let p=a.hasKatex(e.message)?await a.calculateMathMLDimensions(e.message,a.getConfig2()):a.utils_default.calculateTextDimensions(d?a.utils_default.wrapLabel(e.message,c.width,pt(c)):e.message,pt(c));const r={width:d?c.width:a.common_default.getMax(c.width,p.width+2*c.noteMargin),height:0,startx:s.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===l.db.PLACEMENT.RIGHTOF?(r.width=d?a.common_default.getMax(c.width,p.width):a.common_default.getMax(s.width/2+i.width/2,p.width+2*c.noteMargin),r.startx=n+(s.width+c.actorMargin)/2):e.placement===l.db.PLACEMENT.LEFTOF?(r.width=d?a.common_default.getMax(c.width,p.width+2*c.noteMargin):a.common_default.getMax(s.width/2+i.width/2,p.width+2*c.noteMargin),r.startx=n-r.width+(s.width-c.actorMargin)/2):e.to===e.from?(p=a.utils_default.calculateTextDimensions(d?a.utils_default.wrapLabel(e.message,a.common_default.getMax(c.width,s.width),pt(c)):e.message,pt(c)),r.width=d?a.common_default.getMax(c.width,s.width):a.common_default.getMax(s.width,c.width,p.width+2*c.noteMargin),r.startx=n+(s.width-r.width)/2):(r.width=Math.abs(n+s.width/2-(o+i.width/2))+c.actorMargin,r.startx=n<o?n+s.width/2-c.actorMargin/2:o+i.width/2-c.actorMargin/2),d&&(r.message=a.utils_default.wrapLabel(e.message,r.width-2*c.wrapPadding,pt(c))),a.log.debug(`NM:[${r.startx},${r.stopx},${r.starty},${r.stopy}:${r.width},${r.height}=${e.message}]`),r},"buildNoteModel"),Ce=a.__name(function(e,t,l){if(![l.db.LINETYPE.SOLID_OPEN,l.db.LINETYPE.DOTTED_OPEN,l.db.LINETYPE.SOLID,l.db.LINETYPE.DOTTED,l.db.LINETYPE.SOLID_CROSS,l.db.LINETYPE.DOTTED_CROSS,l.db.LINETYPE.SOLID_POINT,l.db.LINETYPE.DOTTED_POINT,l.db.LINETYPE.BIDIRECTIONAL_SOLID,l.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type))return{};const[s,i]=Vt(e.from,t),[n,o]=Vt(e.to,t),d=s<=n;let p=d?i:s,r=d?n:o;const f=Math.abs(n-o)>2,T=a.__name(v=>d?-v:v,"adjustValue");e.from===e.to?r=p:(e.activate&&!f&&(r+=T(c.activationWidth/2-1)),[l.db.LINETYPE.SOLID_OPEN,l.db.LINETYPE.DOTTED_OPEN].includes(e.type)||(r+=T(3)),[l.db.LINETYPE.BIDIRECTIONAL_SOLID,l.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(p-=T(3)));const g=[s,i,n,o],x=Math.abs(p-r);e.wrap&&e.message&&(e.message=a.utils_default.wrapLabel(e.message,a.common_default.getMax(x+2*c.wrapPadding,c.width),ht(c)));const y=a.utils_default.calculateTextDimensions(e.message,ht(c));return{width:a.common_default.getMax(e.wrap?0:y.width+2*c.wrapPadding,x+2*c.wrapPadding,c.width),height:0,startx:p,stopx:r,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,g),toBounds:Math.max.apply(null,g)}},"buildMessageModel"),Oe=a.__name(async function(e,t,l,s){const i={},n=[];let o,d,p;for(const r of e){switch(r.type){case s.db.LINETYPE.LOOP_START:case s.db.LINETYPE.ALT_START:case s.db.LINETYPE.OPT_START:case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:case s.db.LINETYPE.CRITICAL_START:case s.db.LINETYPE.BREAK_START:n.push({id:r.id,msg:r.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case s.db.LINETYPE.ALT_ELSE:case s.db.LINETYPE.PAR_AND:case s.db.LINETYPE.CRITICAL_OPTION:r.message&&(o=n.pop(),i[o.id]=o,i[r.id]=o,n.push(o));break;case s.db.LINETYPE.LOOP_END:case s.db.LINETYPE.ALT_END:case s.db.LINETYPE.OPT_END:case s.db.LINETYPE.PAR_END:case s.db.LINETYPE.CRITICAL_END:case s.db.LINETYPE.BREAK_END:o=n.pop(),i[o.id]=o;break;case s.db.LINETYPE.ACTIVE_START:{const T=t.get(r.from?r.from:r.to.actor),g=yt(r.from?r.from:r.to.actor).length,x=T.x+T.width/2+(g-1)*c.activationWidth/2,y={startx:x,stopx:x+c.activationWidth,actor:r.from,enabled:!0};m.activations.push(y)}break;case s.db.LINETYPE.ACTIVE_END:{const T=m.activations.map(g=>g.actor).lastIndexOf(r.from);m.activations.splice(T,1).splice(0,1)}break}r.placement!==void 0?(d=await De(r,t,s),r.noteModel=d,n.forEach(T=>{o=T,o.from=a.common_default.getMin(o.from,d.startx),o.to=a.common_default.getMax(o.to,d.startx+d.width),o.width=a.common_default.getMax(o.width,Math.abs(o.from-o.to))-c.labelBoxWidth})):(p=Ce(r,t,s),r.msgModel=p,p.startx&&p.stopx&&n.length>0&&n.forEach(T=>{if(o=T,p.startx===p.stopx){const g=t.get(r.from),x=t.get(r.to);o.from=a.common_default.getMin(g.x-p.width/2,g.x-g.width/2,o.from),o.to=a.common_default.getMax(x.x+p.width/2,x.x+g.width/2,o.to),o.width=a.common_default.getMax(o.width,Math.abs(o.to-o.from))-c.labelBoxWidth}else o.from=a.common_default.getMin(p.startx,o.from),o.to=a.common_default.getMax(p.stopx,o.to),o.width=a.common_default.getMax(o.width,p.width)-c.labelBoxWidth}))}return m.activations=[],a.log.debug("Loop type widths:",i),i},"calculateLoopBounds"),Be={bounds:m,drawActors:kt,drawActorsPopup:Ut,setConf:Gt,draw:Me},Ve={parser:se,get db(){return new oe},renderer:Be,styles:le,init:a.__name(e=>{e.sequence||(e.sequence={}),e.wrap&&(e.sequence.wrap=e.wrap,a.setConfig2({sequence:{wrap:e.wrap}}))},"init")};exports.diagram=Ve;
|