cc-viewer 1.6.183 → 1.6.192
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/assets/App-DuGHwadX.js +31 -0
- package/dist/assets/{AppHeader-Dc7WvorH.css → AppHeader-D8MCV07q.css} +3 -3
- package/dist/assets/AppHeader.module-CozRDKfP.js +573 -0
- package/dist/assets/Mobile-Bab634xx.js +10 -0
- package/dist/assets/_baseUniq-DJPPdHyT.js +1 -0
- package/dist/assets/arc-DZ3Bjq-l.js +1 -0
- package/dist/assets/architectureDiagram-Q4EWVU46-xy0J2lr0.js +36 -0
- package/dist/assets/blockDiagram-DXYQGD6D-CoUm8UC5.js +132 -0
- package/dist/assets/c4Diagram-AHTNJAMY-CFHX4Dfx.js +10 -0
- package/dist/assets/channel-G3S1FOvm.js +1 -0
- package/dist/assets/chunk-4BX2VUAB-CiktxOyY.js +1 -0
- package/dist/assets/chunk-4TB4RGXK-DHl7ZlQV.js +206 -0
- package/dist/assets/chunk-55IACEB6-DcgWxDD5.js +1 -0
- package/dist/assets/chunk-EDXVE4YY-DeUzWpQx.js +1 -0
- package/dist/assets/{chunk-FMBD7UC4-Bb0LARSp.js → chunk-FMBD7UC4-BCaKpugk.js} +2 -2
- package/dist/assets/chunk-OYMX7WX6-DKMEMbG9.js +231 -0
- package/dist/assets/chunk-QZHKN3VN-BREApeQ-.js +1 -0
- package/dist/assets/chunk-YZCP3GAM-BYW1PNda.js +1 -0
- package/dist/assets/classDiagram-6PBFFD2Q-B0-7EUsz.js +1 -0
- package/dist/assets/classDiagram-v2-HSJHXN6E-B0-7EUsz.js +1 -0
- package/dist/assets/clone-CX_D5SrR.js +1 -0
- package/dist/assets/cose-bilkent-S5V4N54A-DpwiMCiq.js +1 -0
- package/dist/assets/cytoscape.esm-BMgRe88L.js +331 -0
- package/dist/assets/dagre-KV5264BT-Dc7qbya2.js +4 -0
- package/dist/assets/defaultLocale-CcTwRAjA.js +1 -0
- package/dist/assets/diagram-5BDNPKRD-v7FsHeLQ.js +10 -0
- package/dist/assets/diagram-G4DWMVQ6-BhKNBlcE.js +24 -0
- package/dist/assets/diagram-MMDJMWI5-C-3cRdzG.js +43 -0
- package/dist/assets/diagram-TYMM5635-HfNcJIfT.js +24 -0
- package/dist/assets/erDiagram-SMLLAGMA-Ckj0dkk7.js +85 -0
- package/dist/assets/flowDiagram-DWJPFMVM-yf315tJr.js +162 -0
- package/dist/assets/ganttDiagram-T4ZO3ILL-Ch2bINVC.js +292 -0
- package/dist/assets/gitGraphDiagram-UUTBAWPF-CesdgsJi.js +106 -0
- package/dist/assets/graph-CRpmapJV.js +1 -0
- package/dist/assets/html2canvas.esm-B8c0f9Wq.js +22 -0
- package/dist/assets/index-DJ0iGKLy.js +2 -0
- package/dist/assets/infoDiagram-42DDH7IO-CuD16P9Y.js +2 -0
- package/dist/assets/init-C7FSzFHJ.js +1 -0
- package/dist/assets/ishikawaDiagram-UXIWVN3A-4y8aG54G.js +70 -0
- package/dist/assets/journeyDiagram-VCZTEJTY-B6TtR2Zk.js +139 -0
- package/dist/assets/kanban-definition-6JOO6SKY-DTcNHYUS.js +89 -0
- package/dist/assets/katex-CJRKSY_b.js +257 -0
- package/dist/assets/layout-CX5hpkD2.js +1 -0
- package/dist/assets/linear-tWlC-NXc.js +1 -0
- package/dist/assets/mermaid.core-DNvsWVDx.js +308 -0
- package/dist/assets/min-CDExe3RN.js +1 -0
- package/dist/assets/mindmap-definition-QFDTVHPH-CW0yNQcb.js +96 -0
- package/dist/assets/ordinal-aRyHI6gl.js +1 -0
- package/dist/assets/pieDiagram-DEJITSTG-DNrnOqmz.js +30 -0
- package/dist/assets/quadrantDiagram-34T5L4WZ-Cl176vnh.js +7 -0
- package/dist/assets/requirementDiagram-MS252O5E-DKp3A5f_.js +84 -0
- package/dist/assets/sankeyDiagram-XADWPNL6-BMV0lAz8.js +10 -0
- package/dist/assets/sequenceDiagram-FGHM5R23-CQ4preep.js +157 -0
- package/dist/assets/stateDiagram-FHFEXIEX-BKqYYN8H.js +1 -0
- package/dist/assets/stateDiagram-v2-QKLJ7IA2-C1W1ECmZ.js +1 -0
- package/dist/assets/timeline-definition-GMOUNBTQ-4kgeuumv.js +120 -0
- package/dist/assets/vendor-antd-Dk5s46Ag.js +406 -0
- package/dist/assets/vendor-codemirror-DxvDOrio.js +46 -0
- package/dist/assets/vendor-highlight-DVwgAdJY.js +3 -0
- package/dist/assets/vendor-markdown-DO-Ppp4f.js +60 -0
- package/dist/assets/vendor-qrcode-hI5wlAgK.js +9 -0
- package/dist/assets/vendor-virtuoso-HW77kTCh.js +1 -0
- package/dist/assets/vendor-xterm-D2cUrYEx.js +140 -0
- package/dist/assets/vennDiagram-DHZGUBPP-CqBcUIdK.js +34 -0
- package/dist/assets/wardley-RL74JXVD-CbEnkKx8.js +162 -0
- package/dist/assets/wardleyDiagram-NUSXRM2D-BJrjkZMg.js +20 -0
- package/dist/assets/xychartDiagram-5P7HB3ND-D8aBEz8e.js +7 -0
- package/dist/index.html +3 -3
- package/package.json +1 -1
- package/server.js +13 -4
- package/dist/assets/App-BHfyP8-J.js +0 -31
- package/dist/assets/AppHeader.module-W_78JZt9.js +0 -573
- package/dist/assets/Mobile-ca5EOMpN.js +0 -10
- package/dist/assets/_baseUniq-DYSZB4Xx.js +0 -1
- package/dist/assets/arc-BChSP8hM.js +0 -1
- package/dist/assets/architectureDiagram-Q4EWVU46-vlr5Q6DQ.js +0 -36
- package/dist/assets/blockDiagram-DXYQGD6D-4C3Amh2i.js +0 -132
- package/dist/assets/c4Diagram-AHTNJAMY-wI0efLSs.js +0 -10
- package/dist/assets/channel-d8DITadq.js +0 -1
- package/dist/assets/chunk-4BX2VUAB-BX9brpDB.js +0 -1
- package/dist/assets/chunk-4TB4RGXK-DvFQ-X9V.js +0 -206
- package/dist/assets/chunk-55IACEB6-BNmYjPNf.js +0 -1
- package/dist/assets/chunk-EDXVE4YY-BNvDPqBE.js +0 -1
- package/dist/assets/chunk-OYMX7WX6-BwlvIpeD.js +0 -231
- package/dist/assets/chunk-QZHKN3VN-BS6RK8_X.js +0 -1
- package/dist/assets/chunk-YZCP3GAM-oOqmydQz.js +0 -1
- package/dist/assets/classDiagram-6PBFFD2Q-B1oRrMCc.js +0 -1
- package/dist/assets/classDiagram-v2-HSJHXN6E-B1oRrMCc.js +0 -1
- package/dist/assets/clone-BrNOd7Lq.js +0 -1
- package/dist/assets/cose-bilkent-S5V4N54A-CamsIqkY.js +0 -1
- package/dist/assets/cytoscape.esm-DxGcaOPV.js +0 -331
- package/dist/assets/dagre-KV5264BT-CPAWWiBh.js +0 -4
- package/dist/assets/defaultLocale-DX6XiGOO.js +0 -1
- package/dist/assets/diagram-5BDNPKRD-D6TmzGhl.js +0 -10
- package/dist/assets/diagram-G4DWMVQ6-DDuJnMCL.js +0 -24
- package/dist/assets/diagram-MMDJMWI5-CQWhvrpz.js +0 -43
- package/dist/assets/diagram-TYMM5635-CEDj3w_h.js +0 -24
- package/dist/assets/erDiagram-SMLLAGMA-B_eQqha6.js +0 -85
- package/dist/assets/flowDiagram-DWJPFMVM-B985i3uQ.js +0 -162
- package/dist/assets/ganttDiagram-T4ZO3ILL-DKp62vr3.js +0 -292
- package/dist/assets/gitGraphDiagram-UUTBAWPF-Cc1gyz1Q.js +0 -106
- package/dist/assets/graph-C-1-3bsA.js +0 -1
- package/dist/assets/html2canvas.esm-QH1iLAAe.js +0 -22
- package/dist/assets/index-LH2WLu05.js +0 -2
- package/dist/assets/infoDiagram-42DDH7IO-DqXaAHZz.js +0 -2
- package/dist/assets/init-Gi6I4Gst.js +0 -1
- package/dist/assets/ishikawaDiagram-UXIWVN3A-zdUdDJX2.js +0 -70
- package/dist/assets/journeyDiagram-VCZTEJTY-ip5SzODy.js +0 -139
- package/dist/assets/kanban-definition-6JOO6SKY-D5EYh6AP.js +0 -89
- package/dist/assets/katex-DkKDou_j.js +0 -257
- package/dist/assets/layout-Cjq8AL8G.js +0 -1
- package/dist/assets/linear-U0KsEJ2u.js +0 -1
- package/dist/assets/mermaid.core-CT-5crLN.js +0 -308
- package/dist/assets/min-C7G6pq26.js +0 -1
- package/dist/assets/mindmap-definition-QFDTVHPH-CIzhFOw1.js +0 -96
- package/dist/assets/ordinal-Cboi1Yqb.js +0 -1
- package/dist/assets/pieDiagram-DEJITSTG-Cp1Zd1MQ.js +0 -30
- package/dist/assets/quadrantDiagram-34T5L4WZ-Cp31xM90.js +0 -7
- package/dist/assets/requirementDiagram-MS252O5E-Dbg_eQqB.js +0 -84
- package/dist/assets/sankeyDiagram-XADWPNL6-CMrzwpwC.js +0 -10
- package/dist/assets/sequenceDiagram-FGHM5R23-KJegoBnN.js +0 -157
- package/dist/assets/stateDiagram-FHFEXIEX-BDWprYzE.js +0 -1
- package/dist/assets/stateDiagram-v2-QKLJ7IA2-CCUmB0qI.js +0 -1
- package/dist/assets/timeline-definition-GMOUNBTQ-BOWeG5LY.js +0 -120
- package/dist/assets/vendor-antd-CtdKd5xs.js +0 -406
- package/dist/assets/vendor-codemirror-CdXaVX4e.js +0 -46
- package/dist/assets/vendor-highlight-D4ATuRwX.js +0 -3
- package/dist/assets/vendor-markdown-CO-jRjTB.js +0 -60
- package/dist/assets/vendor-qrcode-D05RfzwB.js +0 -9
- package/dist/assets/vendor-virtuoso-BhnFrbmh.js +0 -1
- package/dist/assets/vendor-xterm-DWMOrwSy.js +0 -140
- package/dist/assets/vennDiagram-DHZGUBPP-B6mLodPk.js +0 -34
- package/dist/assets/wardley-RL74JXVD-CovHs24Z.js +0 -162
- package/dist/assets/wardleyDiagram-NUSXRM2D-CBg_VXF7.js +0 -20
- package/dist/assets/xychartDiagram-5P7HB3ND-BRxgk_oX.js +0 -7
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{g as getNoteRect,d as drawRect}from"./chunk-YZCP3GAM-BYW1PNda.js";import{s as setAccDescription,g as getAccDescription,a as getAccTitle,b as setAccTitle,_ as __name,c as getConfig2,d as select,l as log,e as configureSvgSize,f as assignWithDepth_default,h as calculateTextWidth,i as sanitizeText,j as distExports,w as wrapLabel,k as common_default,m as calculateTextHeight}from"./mermaid.core-DNvsWVDx.js";import"./index-DJ0iGKLy.js";import"./vendor-codemirror-DxvDOrio.js";import"./vendor-antd-Dk5s46Ag.js";import"./vendor-markdown-DO-Ppp4f.js";var parser=(function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[1,24],$V1=[1,25],$V2=[1,26],$V3=[1,27],$V4=[1,28],$V5=[1,63],$V6=[1,64],$V7=[1,65],$V8=[1,66],$V9=[1,67],$Va=[1,68],$Vb=[1,69],$Vc=[1,29],$Vd=[1,30],$Ve=[1,31],$Vf=[1,32],$Vg=[1,33],$Vh=[1,34],$Vi=[1,35],$Vj=[1,36],$Vk=[1,37],$Vl=[1,38],$Vm=[1,39],$Vn=[1,40],$Vo=[1,41],$Vp=[1,42],$Vq=[1,43],$Vr=[1,44],$Vs=[1,45],$Vt=[1,46],$Vu=[1,47],$Vv=[1,48],$Vw=[1,50],$Vx=[1,51],$Vy=[1,52],$Vz=[1,53],$VA=[1,54],$VB=[1,55],$VC=[1,56],$VD=[1,57],$VE=[1,58],$VF=[1,59],$VG=[1,60],$VH=[14,42],$VI=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],$VJ=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],$VK=[1,82],$VL=[1,83],$VM=[1,84],$VN=[1,85],$VO=[12,14,42],$VP=[12,14,33,42],$VQ=[12,14,33,42,76,77,79,80],$VR=[12,33],$VS=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],parser2={trace:__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 3:yy.setDirection("TB");break;case 4:yy.setDirection("BT");break;case 5:yy.setDirection("RL");break;case 6:yy.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:yy.setC4Type($$[$0-3]);break;case 19:yy.setTitle($$[$0].substring(6)),this.$=$$[$0].substring(6);break;case 20:yy.setAccDescription($$[$0].substring(15)),this.$=$$[$0].substring(15);break;case 21:this.$=$$[$0].trim(),yy.setTitle(this.$);break;case 22:case 23:this.$=$$[$0].trim(),yy.setAccDescription(this.$);break;case 28:$$[$0].splice(2,0,"ENTERPRISE"),yy.addPersonOrSystemBoundary(...$$[$0]),this.$=$$[$0];break;case 29:$$[$0].splice(2,0,"SYSTEM"),yy.addPersonOrSystemBoundary(...$$[$0]),this.$=$$[$0];break;case 30:yy.addPersonOrSystemBoundary(...$$[$0]),this.$=$$[$0];break;case 31:$$[$0].splice(2,0,"CONTAINER"),yy.addContainerBoundary(...$$[$0]),this.$=$$[$0];break;case 32:yy.addDeploymentNode("node",...$$[$0]),this.$=$$[$0];break;case 33:yy.addDeploymentNode("nodeL",...$$[$0]),this.$=$$[$0];break;case 34:yy.addDeploymentNode("nodeR",...$$[$0]),this.$=$$[$0];break;case 35:yy.popBoundaryParseStack();break;case 39:yy.addPersonOrSystem("person",...$$[$0]),this.$=$$[$0];break;case 40:yy.addPersonOrSystem("external_person",...$$[$0]),this.$=$$[$0];break;case 41:yy.addPersonOrSystem("system",...$$[$0]),this.$=$$[$0];break;case 42:yy.addPersonOrSystem("system_db",...$$[$0]),this.$=$$[$0];break;case 43:yy.addPersonOrSystem("system_queue",...$$[$0]),this.$=$$[$0];break;case 44:yy.addPersonOrSystem("external_system",...$$[$0]),this.$=$$[$0];break;case 45:yy.addPersonOrSystem("external_system_db",...$$[$0]),this.$=$$[$0];break;case 46:yy.addPersonOrSystem("external_system_queue",...$$[$0]),this.$=$$[$0];break;case 47:yy.addContainer("container",...$$[$0]),this.$=$$[$0];break;case 48:yy.addContainer("container_db",...$$[$0]),this.$=$$[$0];break;case 49:yy.addContainer("container_queue",...$$[$0]),this.$=$$[$0];break;case 50:yy.addContainer("external_container",...$$[$0]),this.$=$$[$0];break;case 51:yy.addContainer("external_container_db",...$$[$0]),this.$=$$[$0];break;case 52:yy.addContainer("external_container_queue",...$$[$0]),this.$=$$[$0];break;case 53:yy.addComponent("component",...$$[$0]),this.$=$$[$0];break;case 54:yy.addComponent("component_db",...$$[$0]),this.$=$$[$0];break;case 55:yy.addComponent("component_queue",...$$[$0]),this.$=$$[$0];break;case 56:yy.addComponent("external_component",...$$[$0]),this.$=$$[$0];break;case 57:yy.addComponent("external_component_db",...$$[$0]),this.$=$$[$0];break;case 58:yy.addComponent("external_component_queue",...$$[$0]),this.$=$$[$0];break;case 60:yy.addRel("rel",...$$[$0]),this.$=$$[$0];break;case 61:yy.addRel("birel",...$$[$0]),this.$=$$[$0];break;case 62:yy.addRel("rel_u",...$$[$0]),this.$=$$[$0];break;case 63:yy.addRel("rel_d",...$$[$0]),this.$=$$[$0];break;case 64:yy.addRel("rel_l",...$$[$0]),this.$=$$[$0];break;case 65:yy.addRel("rel_r",...$$[$0]),this.$=$$[$0];break;case 66:yy.addRel("rel_b",...$$[$0]),this.$=$$[$0];break;case 67:$$[$0].splice(0,1),yy.addRel("rel",...$$[$0]),this.$=$$[$0];break;case 68:yy.updateElStyle("update_el_style",...$$[$0]),this.$=$$[$0];break;case 69:yy.updateRelStyle("update_rel_style",...$$[$0]),this.$=$$[$0];break;case 70:yy.updateLayoutConfig("update_layout_config",...$$[$0]),this.$=$$[$0];break;case 71:this.$=[$$[$0]];break;case 72:$$[$0].unshift($$[$0-1]),this.$=$$[$0];break;case 73:case 75:this.$=$$[$0].trim();break;case 74:let kv={};kv[$$[$0-1].trim()]=$$[$0].trim(),this.$=kv;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:$V0,23:$V1,24:$V2,26:$V3,28:$V4,29:49,30:61,32:62,34:$V5,36:$V6,37:$V7,38:$V8,39:$V9,40:$Va,41:$Vb,43:23,44:$Vc,45:$Vd,46:$Ve,47:$Vf,48:$Vg,49:$Vh,50:$Vi,51:$Vj,52:$Vk,53:$Vl,54:$Vm,55:$Vn,56:$Vo,57:$Vp,58:$Vq,59:$Vr,60:$Vs,61:$Vt,62:$Vu,63:$Vv,64:$Vw,65:$Vx,66:$Vy,67:$Vz,68:$VA,69:$VB,70:$VC,71:$VD,72:$VE,73:$VF,74:$VG},{13:70,19:20,20:21,21:22,22:$V0,23:$V1,24:$V2,26:$V3,28:$V4,29:49,30:61,32:62,34:$V5,36:$V6,37:$V7,38:$V8,39:$V9,40:$Va,41:$Vb,43:23,44:$Vc,45:$Vd,46:$Ve,47:$Vf,48:$Vg,49:$Vh,50:$Vi,51:$Vj,52:$Vk,53:$Vl,54:$Vm,55:$Vn,56:$Vo,57:$Vp,58:$Vq,59:$Vr,60:$Vs,61:$Vt,62:$Vu,63:$Vv,64:$Vw,65:$Vx,66:$Vy,67:$Vz,68:$VA,69:$VB,70:$VC,71:$VD,72:$VE,73:$VF,74:$VG},{13:71,19:20,20:21,21:22,22:$V0,23:$V1,24:$V2,26:$V3,28:$V4,29:49,30:61,32:62,34:$V5,36:$V6,37:$V7,38:$V8,39:$V9,40:$Va,41:$Vb,43:23,44:$Vc,45:$Vd,46:$Ve,47:$Vf,48:$Vg,49:$Vh,50:$Vi,51:$Vj,52:$Vk,53:$Vl,54:$Vm,55:$Vn,56:$Vo,57:$Vp,58:$Vq,59:$Vr,60:$Vs,61:$Vt,62:$Vu,63:$Vv,64:$Vw,65:$Vx,66:$Vy,67:$Vz,68:$VA,69:$VB,70:$VC,71:$VD,72:$VE,73:$VF,74:$VG},{13:72,19:20,20:21,21:22,22:$V0,23:$V1,24:$V2,26:$V3,28:$V4,29:49,30:61,32:62,34:$V5,36:$V6,37:$V7,38:$V8,39:$V9,40:$Va,41:$Vb,43:23,44:$Vc,45:$Vd,46:$Ve,47:$Vf,48:$Vg,49:$Vh,50:$Vi,51:$Vj,52:$Vk,53:$Vl,54:$Vm,55:$Vn,56:$Vo,57:$Vp,58:$Vq,59:$Vr,60:$Vs,61:$Vt,62:$Vu,63:$Vv,64:$Vw,65:$Vx,66:$Vy,67:$Vz,68:$VA,69:$VB,70:$VC,71:$VD,72:$VE,73:$VF,74:$VG},{13:73,19:20,20:21,21:22,22:$V0,23:$V1,24:$V2,26:$V3,28:$V4,29:49,30:61,32:62,34:$V5,36:$V6,37:$V7,38:$V8,39:$V9,40:$Va,41:$Vb,43:23,44:$Vc,45:$Vd,46:$Ve,47:$Vf,48:$Vg,49:$Vh,50:$Vi,51:$Vj,52:$Vk,53:$Vl,54:$Vm,55:$Vn,56:$Vo,57:$Vp,58:$Vq,59:$Vr,60:$Vs,61:$Vt,62:$Vu,63:$Vv,64:$Vw,65:$Vx,66:$Vy,67:$Vz,68:$VA,69:$VB,70:$VC,71:$VD,72:$VE,73:$VF,74:$VG},{14:[1,74]},o($VH,[2,13],{43:23,29:49,30:61,32:62,20:75,34:$V5,36:$V6,37:$V7,38:$V8,39:$V9,40:$Va,41:$Vb,44:$Vc,45:$Vd,46:$Ve,47:$Vf,48:$Vg,49:$Vh,50:$Vi,51:$Vj,52:$Vk,53:$Vl,54:$Vm,55:$Vn,56:$Vo,57:$Vp,58:$Vq,59:$Vr,60:$Vs,61:$Vt,62:$Vu,63:$Vv,64:$Vw,65:$Vx,66:$Vy,67:$Vz,68:$VA,69:$VB,70:$VC,71:$VD,72:$VE,73:$VF,74:$VG}),o($VH,[2,14]),o($VI,[2,16],{12:[1,76]}),o($VH,[2,36],{12:[1,77]}),o($VJ,[2,19]),o($VJ,[2,20]),{25:[1,78]},{27:[1,79]},o($VJ,[2,23]),{35:80,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:86,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:87,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:88,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:89,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:90,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:91,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:92,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:93,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:94,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:95,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:96,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:97,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:98,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:99,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:100,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:101,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:102,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:103,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:104,75:81,76:$VK,77:$VL,79:$VM,80:$VN},o($VO,[2,59]),{35:105,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:106,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:107,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:108,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:109,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:110,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:111,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:112,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:113,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:114,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:115,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{20:116,29:49,30:61,32:62,34:$V5,36:$V6,37:$V7,38:$V8,39:$V9,40:$Va,41:$Vb,43:23,44:$Vc,45:$Vd,46:$Ve,47:$Vf,48:$Vg,49:$Vh,50:$Vi,51:$Vj,52:$Vk,53:$Vl,54:$Vm,55:$Vn,56:$Vo,57:$Vp,58:$Vq,59:$Vr,60:$Vs,61:$Vt,62:$Vu,63:$Vv,64:$Vw,65:$Vx,66:$Vy,67:$Vz,68:$VA,69:$VB,70:$VC,71:$VD,72:$VE,73:$VF,74:$VG},{12:[1,118],33:[1,117]},{35:119,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:120,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:121,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:122,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:123,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:124,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{35:125,75:81,76:$VK,77:$VL,79:$VM,80:$VN},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},o($VH,[2,15]),o($VI,[2,17],{21:22,19:130,22:$V0,23:$V1,24:$V2,26:$V3,28:$V4}),o($VH,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:$V0,23:$V1,24:$V2,26:$V3,28:$V4,34:$V5,36:$V6,37:$V7,38:$V8,39:$V9,40:$Va,41:$Vb,44:$Vc,45:$Vd,46:$Ve,47:$Vf,48:$Vg,49:$Vh,50:$Vi,51:$Vj,52:$Vk,53:$Vl,54:$Vm,55:$Vn,56:$Vo,57:$Vp,58:$Vq,59:$Vr,60:$Vs,61:$Vt,62:$Vu,63:$Vv,64:$Vw,65:$Vx,66:$Vy,67:$Vz,68:$VA,69:$VB,70:$VC,71:$VD,72:$VE,73:$VF,74:$VG}),o($VJ,[2,21]),o($VJ,[2,22]),o($VO,[2,39]),o($VP,[2,71],{75:81,35:132,76:$VK,77:$VL,79:$VM,80:$VN}),o($VQ,[2,73]),{78:[1,133]},o($VQ,[2,75]),o($VQ,[2,76]),o($VO,[2,40]),o($VO,[2,41]),o($VO,[2,42]),o($VO,[2,43]),o($VO,[2,44]),o($VO,[2,45]),o($VO,[2,46]),o($VO,[2,47]),o($VO,[2,48]),o($VO,[2,49]),o($VO,[2,50]),o($VO,[2,51]),o($VO,[2,52]),o($VO,[2,53]),o($VO,[2,54]),o($VO,[2,55]),o($VO,[2,56]),o($VO,[2,57]),o($VO,[2,58]),o($VO,[2,60]),o($VO,[2,61]),o($VO,[2,62]),o($VO,[2,63]),o($VO,[2,64]),o($VO,[2,65]),o($VO,[2,66]),o($VO,[2,67]),o($VO,[2,68]),o($VO,[2,69]),o($VO,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},o($VR,[2,28]),o($VR,[2,29]),o($VR,[2,30]),o($VR,[2,31]),o($VR,[2,32]),o($VR,[2,33]),o($VR,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},o($VI,[2,18]),o($VH,[2,38]),o($VP,[2,72]),o($VQ,[2,74]),o($VO,[2,24]),o($VO,[2,35]),o($VS,[2,25]),o($VS,[2,26],{12:[1,138]}),o($VS,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:__name(function(str,hash){if(hash.recoverable)this.trace(str);else{var error=new Error(str);throw error.hash=hash,error}},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,TERROR=2,EOF=1,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,typeof lexer2.yylloc>"u"&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;typeof sharedState.yy.parseError=="function"?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function popStack(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n}__name(popStack,"popStack");function lex(){var token;return token=tstack.pop()||lexer2.lex()||EOF,typeof token!="number"&&(token instanceof Array&&(tstack=token,token=tstack.pop()),token=self.symbols_[token]||token),token}__name(lex,"lex");for(var symbol,state,action,r,yyval={},p,len,newState,expected;;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:((symbol===null||typeof symbol>"u")&&(symbol=lex()),action=table[state]&&table[state][symbol]),typeof action>"u"||!action.length||!action[0]){var errStr="";expected=[];for(p in table[state])this.terminals_[p]&&p>TERROR&&expected.push("'"+this.terminals_[p]+"'");lexer2.showPosition?errStr="Parse error on line "+(yylineno+1)+`:
|
|
2
|
+
`+lexer2.showPosition()+`
|
|
3
|
+
Expecting `+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":errStr="Parse error on line "+(yylineno+1)+": Unexpected "+(symbol==EOF?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args)),typeof r<"u")return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=(function(){var lexer2={EOF:1,parseError:__name(function(str,hash){if(this.yy.parser)this.yy.parser.parseError(str,hash);else throw new Error(str)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,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:__name(function(){var ch=this._input[0];this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch;var lines=ch.match(/(?:\r\n?|\n).*/g);return lines?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=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),lines.length-1&&(this.yylineno-=lines.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__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:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c2=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+`
|
|
5
|
+
`+c2+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={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&&(backup.yylloc.range=this.yylloc.range.slice(0))),lines=match[0].match(/(?:\r\n?|\n).*/g),lines&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,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(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var token,match,tempMatch,index;this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if(tempMatch=this._input.match(this.rules[rules[i]]),tempMatch&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(token=this.test_match(tempMatch,rules[i]),token!==!1)return token;if(this._backtrack){match=!1;continue}else return!1}else if(!this.options.flex)break}return match?(token=this.test_match(match,rules[index]),token!==!1?token:!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:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__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:__name(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return lexer2})();parser2.lexer=lexer;function Parser(){this.yy={}}return __name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser})();parser.parser=parser;var c4Diagram_default=parser,c4ShapeArray=[],boundaryParseStack=[""],currentBoundaryParse="global",parentBoundaryParse="",boundaries=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],rels=[],title="",wrapEnabled=!1,c4ShapeInRow=4,c4BoundaryInRow=2,c4Type,getC4Type=__name(function(){return c4Type},"getC4Type"),setC4Type=__name(function(c4TypeParam){c4Type=sanitizeText(c4TypeParam,getConfig2())},"setC4Type"),addRel=__name(function(type,from,to,label,techn,descr,sprite,tags,link){if(type==null||from===void 0||from===null||to===void 0||to===null||label===void 0||label===null)return;let rel={};const old=rels.find(rel2=>rel2.from===from&&rel2.to===to);if(old?rel=old:rels.push(rel),rel.type=type,rel.from=from,rel.to=to,rel.label={text:label},techn==null)rel.techn={text:""};else if(typeof techn=="object"){let[key,value]=Object.entries(techn)[0];rel[key]={text:value}}else rel.techn={text:techn};if(descr==null)rel.descr={text:""};else if(typeof descr=="object"){let[key,value]=Object.entries(descr)[0];rel[key]={text:value}}else rel.descr={text:descr};if(typeof sprite=="object"){let[key,value]=Object.entries(sprite)[0];rel[key]=value}else rel.sprite=sprite;if(typeof tags=="object"){let[key,value]=Object.entries(tags)[0];rel[key]=value}else rel.tags=tags;if(typeof link=="object"){let[key,value]=Object.entries(link)[0];rel[key]=value}else rel.link=link;rel.wrap=autoWrap()},"addRel"),addPersonOrSystem=__name(function(typeC4Shape,alias,label,descr,sprite,tags,link){if(alias===null||label===null)return;let personOrSystem={};const old=c4ShapeArray.find(personOrSystem2=>personOrSystem2.alias===alias);if(old&&alias===old.alias?personOrSystem=old:(personOrSystem.alias=alias,c4ShapeArray.push(personOrSystem)),label==null?personOrSystem.label={text:""}:personOrSystem.label={text:label},descr==null)personOrSystem.descr={text:""};else if(typeof descr=="object"){let[key,value]=Object.entries(descr)[0];personOrSystem[key]={text:value}}else personOrSystem.descr={text:descr};if(typeof sprite=="object"){let[key,value]=Object.entries(sprite)[0];personOrSystem[key]=value}else personOrSystem.sprite=sprite;if(typeof tags=="object"){let[key,value]=Object.entries(tags)[0];personOrSystem[key]=value}else personOrSystem.tags=tags;if(typeof link=="object"){let[key,value]=Object.entries(link)[0];personOrSystem[key]=value}else personOrSystem.link=link;personOrSystem.typeC4Shape={text:typeC4Shape},personOrSystem.parentBoundary=currentBoundaryParse,personOrSystem.wrap=autoWrap()},"addPersonOrSystem"),addContainer=__name(function(typeC4Shape,alias,label,techn,descr,sprite,tags,link){if(alias===null||label===null)return;let container={};const old=c4ShapeArray.find(container2=>container2.alias===alias);if(old&&alias===old.alias?container=old:(container.alias=alias,c4ShapeArray.push(container)),label==null?container.label={text:""}:container.label={text:label},techn==null)container.techn={text:""};else if(typeof techn=="object"){let[key,value]=Object.entries(techn)[0];container[key]={text:value}}else container.techn={text:techn};if(descr==null)container.descr={text:""};else if(typeof descr=="object"){let[key,value]=Object.entries(descr)[0];container[key]={text:value}}else container.descr={text:descr};if(typeof sprite=="object"){let[key,value]=Object.entries(sprite)[0];container[key]=value}else container.sprite=sprite;if(typeof tags=="object"){let[key,value]=Object.entries(tags)[0];container[key]=value}else container.tags=tags;if(typeof link=="object"){let[key,value]=Object.entries(link)[0];container[key]=value}else container.link=link;container.wrap=autoWrap(),container.typeC4Shape={text:typeC4Shape},container.parentBoundary=currentBoundaryParse},"addContainer"),addComponent=__name(function(typeC4Shape,alias,label,techn,descr,sprite,tags,link){if(alias===null||label===null)return;let component={};const old=c4ShapeArray.find(component2=>component2.alias===alias);if(old&&alias===old.alias?component=old:(component.alias=alias,c4ShapeArray.push(component)),label==null?component.label={text:""}:component.label={text:label},techn==null)component.techn={text:""};else if(typeof techn=="object"){let[key,value]=Object.entries(techn)[0];component[key]={text:value}}else component.techn={text:techn};if(descr==null)component.descr={text:""};else if(typeof descr=="object"){let[key,value]=Object.entries(descr)[0];component[key]={text:value}}else component.descr={text:descr};if(typeof sprite=="object"){let[key,value]=Object.entries(sprite)[0];component[key]=value}else component.sprite=sprite;if(typeof tags=="object"){let[key,value]=Object.entries(tags)[0];component[key]=value}else component.tags=tags;if(typeof link=="object"){let[key,value]=Object.entries(link)[0];component[key]=value}else component.link=link;component.wrap=autoWrap(),component.typeC4Shape={text:typeC4Shape},component.parentBoundary=currentBoundaryParse},"addComponent"),addPersonOrSystemBoundary=__name(function(alias,label,type,tags,link){if(alias===null||label===null)return;let boundary={};const old=boundaries.find(boundary2=>boundary2.alias===alias);if(old&&alias===old.alias?boundary=old:(boundary.alias=alias,boundaries.push(boundary)),label==null?boundary.label={text:""}:boundary.label={text:label},type==null)boundary.type={text:"system"};else if(typeof type=="object"){let[key,value]=Object.entries(type)[0];boundary[key]={text:value}}else boundary.type={text:type};if(typeof tags=="object"){let[key,value]=Object.entries(tags)[0];boundary[key]=value}else boundary.tags=tags;if(typeof link=="object"){let[key,value]=Object.entries(link)[0];boundary[key]=value}else boundary.link=link;boundary.parentBoundary=currentBoundaryParse,boundary.wrap=autoWrap(),parentBoundaryParse=currentBoundaryParse,currentBoundaryParse=alias,boundaryParseStack.push(parentBoundaryParse)},"addPersonOrSystemBoundary"),addContainerBoundary=__name(function(alias,label,type,tags,link){if(alias===null||label===null)return;let boundary={};const old=boundaries.find(boundary2=>boundary2.alias===alias);if(old&&alias===old.alias?boundary=old:(boundary.alias=alias,boundaries.push(boundary)),label==null?boundary.label={text:""}:boundary.label={text:label},type==null)boundary.type={text:"container"};else if(typeof type=="object"){let[key,value]=Object.entries(type)[0];boundary[key]={text:value}}else boundary.type={text:type};if(typeof tags=="object"){let[key,value]=Object.entries(tags)[0];boundary[key]=value}else boundary.tags=tags;if(typeof link=="object"){let[key,value]=Object.entries(link)[0];boundary[key]=value}else boundary.link=link;boundary.parentBoundary=currentBoundaryParse,boundary.wrap=autoWrap(),parentBoundaryParse=currentBoundaryParse,currentBoundaryParse=alias,boundaryParseStack.push(parentBoundaryParse)},"addContainerBoundary"),addDeploymentNode=__name(function(nodeType,alias,label,type,descr,sprite,tags,link){if(alias===null||label===null)return;let boundary={};const old=boundaries.find(boundary2=>boundary2.alias===alias);if(old&&alias===old.alias?boundary=old:(boundary.alias=alias,boundaries.push(boundary)),label==null?boundary.label={text:""}:boundary.label={text:label},type==null)boundary.type={text:"node"};else if(typeof type=="object"){let[key,value]=Object.entries(type)[0];boundary[key]={text:value}}else boundary.type={text:type};if(descr==null)boundary.descr={text:""};else if(typeof descr=="object"){let[key,value]=Object.entries(descr)[0];boundary[key]={text:value}}else boundary.descr={text:descr};if(typeof tags=="object"){let[key,value]=Object.entries(tags)[0];boundary[key]=value}else boundary.tags=tags;if(typeof link=="object"){let[key,value]=Object.entries(link)[0];boundary[key]=value}else boundary.link=link;boundary.nodeType=nodeType,boundary.parentBoundary=currentBoundaryParse,boundary.wrap=autoWrap(),parentBoundaryParse=currentBoundaryParse,currentBoundaryParse=alias,boundaryParseStack.push(parentBoundaryParse)},"addDeploymentNode"),popBoundaryParseStack=__name(function(){currentBoundaryParse=parentBoundaryParse,boundaryParseStack.pop(),parentBoundaryParse=boundaryParseStack.pop(),boundaryParseStack.push(parentBoundaryParse)},"popBoundaryParseStack"),updateElStyle=__name(function(typeC4Shape,elementName,bgColor,fontColor,borderColor,shadowing,shape,sprite,techn,legendText,legendSprite){let old=c4ShapeArray.find(element=>element.alias===elementName);if(!(old===void 0&&(old=boundaries.find(element=>element.alias===elementName),old===void 0))){if(bgColor!=null)if(typeof bgColor=="object"){let[key,value]=Object.entries(bgColor)[0];old[key]=value}else old.bgColor=bgColor;if(fontColor!=null)if(typeof fontColor=="object"){let[key,value]=Object.entries(fontColor)[0];old[key]=value}else old.fontColor=fontColor;if(borderColor!=null)if(typeof borderColor=="object"){let[key,value]=Object.entries(borderColor)[0];old[key]=value}else old.borderColor=borderColor;if(shadowing!=null)if(typeof shadowing=="object"){let[key,value]=Object.entries(shadowing)[0];old[key]=value}else old.shadowing=shadowing;if(shape!=null)if(typeof shape=="object"){let[key,value]=Object.entries(shape)[0];old[key]=value}else old.shape=shape;if(sprite!=null)if(typeof sprite=="object"){let[key,value]=Object.entries(sprite)[0];old[key]=value}else old.sprite=sprite;if(techn!=null)if(typeof techn=="object"){let[key,value]=Object.entries(techn)[0];old[key]=value}else old.techn=techn;if(legendText!=null)if(typeof legendText=="object"){let[key,value]=Object.entries(legendText)[0];old[key]=value}else old.legendText=legendText;if(legendSprite!=null)if(typeof legendSprite=="object"){let[key,value]=Object.entries(legendSprite)[0];old[key]=value}else old.legendSprite=legendSprite}},"updateElStyle"),updateRelStyle=__name(function(typeC4Shape,from,to,textColor,lineColor,offsetX,offsetY){const old=rels.find(rel=>rel.from===from&&rel.to===to);if(old!==void 0){if(textColor!=null)if(typeof textColor=="object"){let[key,value]=Object.entries(textColor)[0];old[key]=value}else old.textColor=textColor;if(lineColor!=null)if(typeof lineColor=="object"){let[key,value]=Object.entries(lineColor)[0];old[key]=value}else old.lineColor=lineColor;if(offsetX!=null)if(typeof offsetX=="object"){let[key,value]=Object.entries(offsetX)[0];old[key]=parseInt(value)}else old.offsetX=parseInt(offsetX);if(offsetY!=null)if(typeof offsetY=="object"){let[key,value]=Object.entries(offsetY)[0];old[key]=parseInt(value)}else old.offsetY=parseInt(offsetY)}},"updateRelStyle"),updateLayoutConfig=__name(function(typeC4Shape,c4ShapeInRowParam,c4BoundaryInRowParam){let c4ShapeInRowValue=c4ShapeInRow,c4BoundaryInRowValue=c4BoundaryInRow;if(typeof c4ShapeInRowParam=="object"){const value=Object.values(c4ShapeInRowParam)[0];c4ShapeInRowValue=parseInt(value)}else c4ShapeInRowValue=parseInt(c4ShapeInRowParam);if(typeof c4BoundaryInRowParam=="object"){const value=Object.values(c4BoundaryInRowParam)[0];c4BoundaryInRowValue=parseInt(value)}else c4BoundaryInRowValue=parseInt(c4BoundaryInRowParam);c4ShapeInRowValue>=1&&(c4ShapeInRow=c4ShapeInRowValue),c4BoundaryInRowValue>=1&&(c4BoundaryInRow=c4BoundaryInRowValue)},"updateLayoutConfig"),getC4ShapeInRow=__name(function(){return c4ShapeInRow},"getC4ShapeInRow"),getC4BoundaryInRow=__name(function(){return c4BoundaryInRow},"getC4BoundaryInRow"),getCurrentBoundaryParse=__name(function(){return currentBoundaryParse},"getCurrentBoundaryParse"),getParentBoundaryParse=__name(function(){return parentBoundaryParse},"getParentBoundaryParse"),getC4ShapeArray=__name(function(parentBoundary){return parentBoundary==null?c4ShapeArray:c4ShapeArray.filter(personOrSystem=>personOrSystem.parentBoundary===parentBoundary)},"getC4ShapeArray"),getC4Shape=__name(function(alias){return c4ShapeArray.find(personOrSystem=>personOrSystem.alias===alias)},"getC4Shape"),getC4ShapeKeys=__name(function(parentBoundary){return Object.keys(getC4ShapeArray(parentBoundary))},"getC4ShapeKeys"),getBoundaries=__name(function(parentBoundary){return parentBoundary==null?boundaries:boundaries.filter(boundary=>boundary.parentBoundary===parentBoundary)},"getBoundaries"),getBoundarys=getBoundaries,getRels=__name(function(){return rels},"getRels"),getTitle=__name(function(){return title},"getTitle"),setWrap=__name(function(wrapSetting){wrapEnabled=wrapSetting},"setWrap"),autoWrap=__name(function(){return wrapEnabled},"autoWrap"),clear=__name(function(){c4ShapeArray=[],boundaries=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],parentBoundaryParse="",currentBoundaryParse="global",boundaryParseStack=[""],rels=[],boundaryParseStack=[""],title="",wrapEnabled=!1,c4ShapeInRow=4,c4BoundaryInRow=2},"clear"),LINETYPE={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},ARROWTYPE={FILLED:0,OPEN:1},PLACEMENT={LEFTOF:0,RIGHTOF:1,OVER:2},setTitle=__name(function(txt){title=sanitizeText(txt,getConfig2())},"setTitle"),c4Db_default={addPersonOrSystem,addPersonOrSystemBoundary,addContainer,addContainerBoundary,addComponent,addDeploymentNode,popBoundaryParseStack,addRel,updateElStyle,updateRelStyle,updateLayoutConfig,autoWrap,setWrap,getC4ShapeArray,getC4Shape,getC4ShapeKeys,getBoundaries,getBoundarys,getCurrentBoundaryParse,getParentBoundaryParse,getRels,getTitle,getC4Type,getC4ShapeInRow,getC4BoundaryInRow,setAccTitle,getAccTitle,getAccDescription,setAccDescription,getConfig:__name(()=>getConfig2().c4,"getConfig"),clear,LINETYPE,ARROWTYPE,PLACEMENT,setTitle,setC4Type},drawRect2=__name(function(elem,rectData){return drawRect(elem,rectData)},"drawRect"),drawImage=__name(function(elem,width,height,x,y,link){const imageElem=elem.append("image");imageElem.attr("width",width),imageElem.attr("height",height),imageElem.attr("x",x),imageElem.attr("y",y);let sanitizedLink=link.startsWith("data:image/png;base64")?link:distExports.sanitizeUrl(link);imageElem.attr("xlink:href",sanitizedLink)},"drawImage"),drawRels=__name((elem,rels2,conf2,diagramId)=>{const relsElem=elem.append("g");let i=0;for(let rel of rels2){let textColor=rel.textColor?rel.textColor:"#444444",strokeColor=rel.lineColor?rel.lineColor:"#444444",offsetX=rel.offsetX?parseInt(rel.offsetX):0,offsetY=rel.offsetY?parseInt(rel.offsetY):0,url="";if(i===0){let line=relsElem.append("line");line.attr("x1",rel.startPoint.x),line.attr("y1",rel.startPoint.y),line.attr("x2",rel.endPoint.x),line.attr("y2",rel.endPoint.y),line.attr("stroke-width","1"),line.attr("stroke",strokeColor),line.style("fill","none"),rel.type!=="rel_b"&&line.attr("marker-end","url("+url+"#"+diagramId+"-arrowhead)"),(rel.type==="birel"||rel.type==="rel_b")&&line.attr("marker-start","url("+url+"#"+diagramId+"-arrowend)"),i=-1}else{let line=relsElem.append("path");line.attr("fill","none").attr("stroke-width","1").attr("stroke",strokeColor).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",rel.startPoint.x).replaceAll("starty",rel.startPoint.y).replaceAll("controlx",rel.startPoint.x+(rel.endPoint.x-rel.startPoint.x)/2-(rel.endPoint.x-rel.startPoint.x)/4).replaceAll("controly",rel.startPoint.y+(rel.endPoint.y-rel.startPoint.y)/2).replaceAll("stopx",rel.endPoint.x).replaceAll("stopy",rel.endPoint.y)),rel.type!=="rel_b"&&line.attr("marker-end","url("+url+"#"+diagramId+"-arrowhead)"),(rel.type==="birel"||rel.type==="rel_b")&&line.attr("marker-start","url("+url+"#"+diagramId+"-arrowend)")}let messageConf=conf2.messageFont();_drawTextCandidateFunc(conf2)(rel.label.text,relsElem,Math.min(rel.startPoint.x,rel.endPoint.x)+Math.abs(rel.endPoint.x-rel.startPoint.x)/2+offsetX,Math.min(rel.startPoint.y,rel.endPoint.y)+Math.abs(rel.endPoint.y-rel.startPoint.y)/2+offsetY,rel.label.width,rel.label.height,{fill:textColor},messageConf),rel.techn&&rel.techn.text!==""&&(messageConf=conf2.messageFont(),_drawTextCandidateFunc(conf2)("["+rel.techn.text+"]",relsElem,Math.min(rel.startPoint.x,rel.endPoint.x)+Math.abs(rel.endPoint.x-rel.startPoint.x)/2+offsetX,Math.min(rel.startPoint.y,rel.endPoint.y)+Math.abs(rel.endPoint.y-rel.startPoint.y)/2+conf2.messageFontSize+5+offsetY,Math.max(rel.label.width,rel.techn.width),rel.techn.height,{fill:textColor,"font-style":"italic"},messageConf))}},"drawRels"),drawBoundary=__name(function(elem,boundary,conf2){const boundaryElem=elem.append("g");let fillColor=boundary.bgColor?boundary.bgColor:"none",strokeColor=boundary.borderColor?boundary.borderColor:"#444444",fontColor=boundary.fontColor?boundary.fontColor:"black",attrsValue={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};boundary.nodeType&&(attrsValue={"stroke-width":1});let rectData={x:boundary.x,y:boundary.y,fill:fillColor,stroke:strokeColor,width:boundary.width,height:boundary.height,rx:2.5,ry:2.5,attrs:attrsValue};drawRect2(boundaryElem,rectData);let boundaryConf=conf2.boundaryFont();boundaryConf.fontWeight="bold",boundaryConf.fontSize=boundaryConf.fontSize+2,boundaryConf.fontColor=fontColor,_drawTextCandidateFunc(conf2)(boundary.label.text,boundaryElem,boundary.x,boundary.y+boundary.label.Y,boundary.width,boundary.height,{fill:"#444444"},boundaryConf),boundary.type&&boundary.type.text!==""&&(boundaryConf=conf2.boundaryFont(),boundaryConf.fontColor=fontColor,_drawTextCandidateFunc(conf2)(boundary.type.text,boundaryElem,boundary.x,boundary.y+boundary.type.Y,boundary.width,boundary.height,{fill:"#444444"},boundaryConf)),boundary.descr&&boundary.descr.text!==""&&(boundaryConf=conf2.boundaryFont(),boundaryConf.fontSize=boundaryConf.fontSize-2,boundaryConf.fontColor=fontColor,_drawTextCandidateFunc(conf2)(boundary.descr.text,boundaryElem,boundary.x,boundary.y+boundary.descr.Y,boundary.width,boundary.height,{fill:"#444444"},boundaryConf))},"drawBoundary"),drawC4Shape=__name(function(elem,c4Shape,conf2){var _a3;let fillColor=c4Shape.bgColor?c4Shape.bgColor:conf2[c4Shape.typeC4Shape.text+"_bg_color"],strokeColor=c4Shape.borderColor?c4Shape.borderColor:conf2[c4Shape.typeC4Shape.text+"_border_color"],fontColor=c4Shape.fontColor?c4Shape.fontColor:"#FFFFFF",personImg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(c4Shape.typeC4Shape.text){case"person":personImg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":personImg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const c4ShapeElem=elem.append("g");c4ShapeElem.attr("class","person-man");const rect=getNoteRect();switch(c4Shape.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":rect.x=c4Shape.x,rect.y=c4Shape.y,rect.fill=fillColor,rect.width=c4Shape.width,rect.height=c4Shape.height,rect.stroke=strokeColor,rect.rx=2.5,rect.ry=2.5,rect.attrs={"stroke-width":.5},drawRect2(c4ShapeElem,rect);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":c4ShapeElem.append("path").attr("fill",fillColor).attr("stroke-width","0.5").attr("stroke",strokeColor).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",c4Shape.x).replaceAll("starty",c4Shape.y).replaceAll("half",c4Shape.width/2).replaceAll("height",c4Shape.height)),c4ShapeElem.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",strokeColor).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",c4Shape.x).replaceAll("starty",c4Shape.y).replaceAll("half",c4Shape.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":c4ShapeElem.append("path").attr("fill",fillColor).attr("stroke-width","0.5").attr("stroke",strokeColor).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",c4Shape.x).replaceAll("starty",c4Shape.y).replaceAll("width",c4Shape.width).replaceAll("half",c4Shape.height/2)),c4ShapeElem.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",strokeColor).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",c4Shape.x+c4Shape.width).replaceAll("starty",c4Shape.y).replaceAll("half",c4Shape.height/2));break}let c4ShapeFontConf=getC4ShapeFont(conf2,c4Shape.typeC4Shape.text);switch(c4ShapeElem.append("text").attr("fill",fontColor).attr("font-family",c4ShapeFontConf.fontFamily).attr("font-size",c4ShapeFontConf.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",c4Shape.typeC4Shape.width).attr("x",c4Shape.x+c4Shape.width/2-c4Shape.typeC4Shape.width/2).attr("y",c4Shape.y+c4Shape.typeC4Shape.Y).text("<<"+c4Shape.typeC4Shape.text+">>"),c4Shape.typeC4Shape.text){case"person":case"external_person":drawImage(c4ShapeElem,48,48,c4Shape.x+c4Shape.width/2-24,c4Shape.y+c4Shape.image.Y,personImg);break}let textFontConf=conf2[c4Shape.typeC4Shape.text+"Font"]();return textFontConf.fontWeight="bold",textFontConf.fontSize=textFontConf.fontSize+2,textFontConf.fontColor=fontColor,_drawTextCandidateFunc(conf2)(c4Shape.label.text,c4ShapeElem,c4Shape.x,c4Shape.y+c4Shape.label.Y,c4Shape.width,c4Shape.height,{fill:fontColor},textFontConf),textFontConf=conf2[c4Shape.typeC4Shape.text+"Font"](),textFontConf.fontColor=fontColor,c4Shape.techn&&((_a3=c4Shape.techn)==null?void 0:_a3.text)!==""?_drawTextCandidateFunc(conf2)(c4Shape.techn.text,c4ShapeElem,c4Shape.x,c4Shape.y+c4Shape.techn.Y,c4Shape.width,c4Shape.height,{fill:fontColor,"font-style":"italic"},textFontConf):c4Shape.type&&c4Shape.type.text!==""&&_drawTextCandidateFunc(conf2)(c4Shape.type.text,c4ShapeElem,c4Shape.x,c4Shape.y+c4Shape.type.Y,c4Shape.width,c4Shape.height,{fill:fontColor,"font-style":"italic"},textFontConf),c4Shape.descr&&c4Shape.descr.text!==""&&(textFontConf=conf2.personFont(),textFontConf.fontColor=fontColor,_drawTextCandidateFunc(conf2)(c4Shape.descr.text,c4ShapeElem,c4Shape.x,c4Shape.y+c4Shape.descr.Y,c4Shape.width,c4Shape.height,{fill:fontColor},textFontConf)),c4Shape.height},"drawC4Shape"),insertDatabaseIcon=__name(function(elem,id){elem.append("defs").append("symbol").attr("id",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"),insertComputerIcon=__name(function(elem,id){elem.append("defs").append("symbol").attr("id",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"),insertClockIcon=__name(function(elem,id){elem.append("defs").append("symbol").attr("id",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"),insertArrowHead=__name(function(elem,id){elem.append("defs").append("marker").attr("id",id+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),insertArrowEnd=__name(function(elem,id){elem.append("defs").append("marker").attr("id",id+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),insertArrowFilledHead=__name(function(elem,id){elem.append("defs").append("marker").attr("id",id+"-filled-head").attr("refX",18).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"),insertArrowCrossHead=__name(function(elem,id){const marker=elem.append("defs").append("marker").attr("id",id+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);marker.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),marker.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),getC4ShapeFont=__name((cnf,typeC4Shape)=>({fontFamily:cnf[typeC4Shape+"FontFamily"],fontSize:cnf[typeC4Shape+"FontSize"],fontWeight:cnf[typeC4Shape+"FontWeight"]}),"getC4ShapeFont"),_drawTextCandidateFunc=(function(){function byText(content,g,x,y,width,height,textAttrs){const text=g.append("text").attr("x",x+width/2).attr("y",y+height/2+5).style("text-anchor","middle").text(content);_setTextAttrs(text,textAttrs)}__name(byText,"byText");function byTspan(content,g,x,y,width,height,textAttrs,conf2){const{fontSize,fontFamily,fontWeight}=conf2,lines=content.split(common_default.lineBreakRegex);for(let i=0;i<lines.length;i++){const dy=i*fontSize-fontSize*(lines.length-1)/2,text=g.append("text").attr("x",x+width/2).attr("y",y).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",fontSize).style("font-weight",fontWeight).style("font-family",fontFamily);text.append("tspan").attr("dy",dy).text(lines[i]).attr("alignment-baseline","mathematical"),_setTextAttrs(text,textAttrs)}}__name(byTspan,"byTspan");function byFo(content,g,x,y,width,height,textAttrs,conf2){const s=g.append("switch"),text=s.append("foreignObject").attr("x",x).attr("y",y).attr("width",width).attr("height",height).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");text.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(content),byTspan(content,s,x,y,width,height,textAttrs,conf2),_setTextAttrs(text,textAttrs)}__name(byFo,"byFo");function _setTextAttrs(toText,fromTextAttrsDict){for(const key in fromTextAttrsDict)fromTextAttrsDict.hasOwnProperty(key)&&toText.attr(key,fromTextAttrsDict[key])}return __name(_setTextAttrs,"_setTextAttrs"),function(conf2){return conf2.textPlacement==="fo"?byFo:conf2.textPlacement==="old"?byText:byTspan}})(),svgDraw_default={drawRect:drawRect2,drawBoundary,drawC4Shape,drawRels,drawImage,insertArrowHead,insertArrowEnd,insertArrowFilledHead,insertArrowCrossHead,insertDatabaseIcon,insertComputerIcon,insertClockIcon},globalBoundaryMaxX=0,globalBoundaryMaxY=0,c4ShapeInRow2=4,c4BoundaryInRow2=2;parser.yy=c4Db_default;var conf={},_a,Bounds=(_a=class{constructor(diagObj){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,setConf(diagObj.db.getConfig())}setData(startx,stopx,starty,stopy){this.nextData.startx=this.data.startx=startx,this.nextData.stopx=this.data.stopx=stopx,this.nextData.starty=this.data.starty=starty,this.nextData.stopy=this.data.stopy=stopy}updateVal(obj,key,val,fun){obj[key]===void 0?obj[key]=val:obj[key]=fun(val,obj[key])}insert(c4Shape){this.nextData.cnt=this.nextData.cnt+1;let _startx=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+c4Shape.margin:this.nextData.stopx+c4Shape.margin*2,_stopx=_startx+c4Shape.width,_starty=this.nextData.starty+c4Shape.margin*2,_stopy=_starty+c4Shape.height;(_startx>=this.data.widthLimit||_stopx>=this.data.widthLimit||this.nextData.cnt>c4ShapeInRow2)&&(_startx=this.nextData.startx+c4Shape.margin+conf.nextLinePaddingX,_starty=this.nextData.stopy+c4Shape.margin*2,this.nextData.stopx=_stopx=_startx+c4Shape.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=_stopy=_starty+c4Shape.height,this.nextData.cnt=1),c4Shape.x=_startx,c4Shape.y=_starty,this.updateVal(this.data,"startx",_startx,Math.min),this.updateVal(this.data,"starty",_starty,Math.min),this.updateVal(this.data,"stopx",_stopx,Math.max),this.updateVal(this.data,"stopy",_stopy,Math.max),this.updateVal(this.nextData,"startx",_startx,Math.min),this.updateVal(this.nextData,"starty",_starty,Math.min),this.updateVal(this.nextData,"stopx",_stopx,Math.max),this.updateVal(this.nextData,"stopy",_stopy,Math.max)}init(diagObj){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},setConf(diagObj.db.getConfig())}bumpLastMargin(margin){this.data.stopx+=margin,this.data.stopy+=margin}},__name(_a,"Bounds"),_a),setConf=__name(function(cnf){assignWithDepth_default(conf,cnf),cnf.fontFamily&&(conf.personFontFamily=conf.systemFontFamily=conf.messageFontFamily=cnf.fontFamily),cnf.fontSize&&(conf.personFontSize=conf.systemFontSize=conf.messageFontSize=cnf.fontSize),cnf.fontWeight&&(conf.personFontWeight=conf.systemFontWeight=conf.messageFontWeight=cnf.fontWeight)},"setConf"),c4ShapeFont=__name((cnf,typeC4Shape)=>({fontFamily:cnf[typeC4Shape+"FontFamily"],fontSize:cnf[typeC4Shape+"FontSize"],fontWeight:cnf[typeC4Shape+"FontWeight"]}),"c4ShapeFont"),boundaryFont=__name(cnf=>({fontFamily:cnf.boundaryFontFamily,fontSize:cnf.boundaryFontSize,fontWeight:cnf.boundaryFontWeight}),"boundaryFont"),messageFont=__name(cnf=>({fontFamily:cnf.messageFontFamily,fontSize:cnf.messageFontSize,fontWeight:cnf.messageFontWeight}),"messageFont");function calcC4ShapeTextWH(textType,c4Shape,c4ShapeTextWrap,textConf,textLimitWidth){if(!c4Shape[textType].width)if(c4ShapeTextWrap)c4Shape[textType].text=wrapLabel(c4Shape[textType].text,textLimitWidth,textConf),c4Shape[textType].textLines=c4Shape[textType].text.split(common_default.lineBreakRegex).length,c4Shape[textType].width=textLimitWidth,c4Shape[textType].height=calculateTextHeight(c4Shape[textType].text,textConf);else{let lines=c4Shape[textType].text.split(common_default.lineBreakRegex);c4Shape[textType].textLines=lines.length;let lineHeight=0;c4Shape[textType].height=0,c4Shape[textType].width=0;for(const line of lines)c4Shape[textType].width=Math.max(calculateTextWidth(line,textConf),c4Shape[textType].width),lineHeight=calculateTextHeight(line,textConf),c4Shape[textType].height=c4Shape[textType].height+lineHeight}}__name(calcC4ShapeTextWH,"calcC4ShapeTextWH");var drawBoundary2=__name(function(diagram2,boundary,bounds){boundary.x=bounds.data.startx,boundary.y=bounds.data.starty,boundary.width=bounds.data.stopx-bounds.data.startx,boundary.height=bounds.data.stopy-bounds.data.starty,boundary.label.y=conf.c4ShapeMargin-35;let boundaryTextWrap=boundary.wrap&&conf.wrap,boundaryLabelConf=boundaryFont(conf);boundaryLabelConf.fontSize=boundaryLabelConf.fontSize+2,boundaryLabelConf.fontWeight="bold";let textLimitWidth=calculateTextWidth(boundary.label.text,boundaryLabelConf);calcC4ShapeTextWH("label",boundary,boundaryTextWrap,boundaryLabelConf,textLimitWidth),svgDraw_default.drawBoundary(diagram2,boundary,conf)},"drawBoundary"),drawC4ShapeArray=__name(function(currentBounds,diagram2,c4ShapeArray2,c4ShapeKeys){let Y=0;for(const c4ShapeKey of c4ShapeKeys){Y=0;const c4Shape=c4ShapeArray2[c4ShapeKey];let c4ShapeTypeConf=c4ShapeFont(conf,c4Shape.typeC4Shape.text);switch(c4ShapeTypeConf.fontSize=c4ShapeTypeConf.fontSize-2,c4Shape.typeC4Shape.width=calculateTextWidth("«"+c4Shape.typeC4Shape.text+"»",c4ShapeTypeConf),c4Shape.typeC4Shape.height=c4ShapeTypeConf.fontSize+2,c4Shape.typeC4Shape.Y=conf.c4ShapePadding,Y=c4Shape.typeC4Shape.Y+c4Shape.typeC4Shape.height-4,c4Shape.image={width:0,height:0,Y:0},c4Shape.typeC4Shape.text){case"person":case"external_person":c4Shape.image.width=48,c4Shape.image.height=48,c4Shape.image.Y=Y,Y=c4Shape.image.Y+c4Shape.image.height;break}c4Shape.sprite&&(c4Shape.image.width=48,c4Shape.image.height=48,c4Shape.image.Y=Y,Y=c4Shape.image.Y+c4Shape.image.height);let c4ShapeTextWrap=c4Shape.wrap&&conf.wrap,textLimitWidth=conf.width-conf.c4ShapePadding*2,c4ShapeLabelConf=c4ShapeFont(conf,c4Shape.typeC4Shape.text);if(c4ShapeLabelConf.fontSize=c4ShapeLabelConf.fontSize+2,c4ShapeLabelConf.fontWeight="bold",calcC4ShapeTextWH("label",c4Shape,c4ShapeTextWrap,c4ShapeLabelConf,textLimitWidth),c4Shape.label.Y=Y+8,Y=c4Shape.label.Y+c4Shape.label.height,c4Shape.type&&c4Shape.type.text!==""){c4Shape.type.text="["+c4Shape.type.text+"]";let c4ShapeTypeConf2=c4ShapeFont(conf,c4Shape.typeC4Shape.text);calcC4ShapeTextWH("type",c4Shape,c4ShapeTextWrap,c4ShapeTypeConf2,textLimitWidth),c4Shape.type.Y=Y+5,Y=c4Shape.type.Y+c4Shape.type.height}else if(c4Shape.techn&&c4Shape.techn.text!==""){c4Shape.techn.text="["+c4Shape.techn.text+"]";let c4ShapeTechnConf=c4ShapeFont(conf,c4Shape.techn.text);calcC4ShapeTextWH("techn",c4Shape,c4ShapeTextWrap,c4ShapeTechnConf,textLimitWidth),c4Shape.techn.Y=Y+5,Y=c4Shape.techn.Y+c4Shape.techn.height}let rectHeight=Y,rectWidth=c4Shape.label.width;if(c4Shape.descr&&c4Shape.descr.text!==""){let c4ShapeDescrConf=c4ShapeFont(conf,c4Shape.typeC4Shape.text);calcC4ShapeTextWH("descr",c4Shape,c4ShapeTextWrap,c4ShapeDescrConf,textLimitWidth),c4Shape.descr.Y=Y+20,Y=c4Shape.descr.Y+c4Shape.descr.height,rectWidth=Math.max(c4Shape.label.width,c4Shape.descr.width),rectHeight=Y-c4Shape.descr.textLines*5}rectWidth=rectWidth+conf.c4ShapePadding,c4Shape.width=Math.max(c4Shape.width||conf.width,rectWidth,conf.width),c4Shape.height=Math.max(c4Shape.height||conf.height,rectHeight,conf.height),c4Shape.margin=c4Shape.margin||conf.c4ShapeMargin,currentBounds.insert(c4Shape),svgDraw_default.drawC4Shape(diagram2,c4Shape,conf)}currentBounds.bumpLastMargin(conf.c4ShapeMargin)},"drawC4ShapeArray"),_a2,Point=(_a2=class{constructor(x,y){this.x=x,this.y=y}},__name(_a2,"Point"),_a2),getIntersectPoint=__name(function(fromNode,endPoint){let x1=fromNode.x,y1=fromNode.y,x2=endPoint.x,y2=endPoint.y,fromCenterX=x1+fromNode.width/2,fromCenterY=y1+fromNode.height/2,dx=Math.abs(x1-x2),dy=Math.abs(y1-y2),tanDYX=dy/dx,fromDYX=fromNode.height/fromNode.width,returnPoint=null;return y1==y2&&x1<x2?returnPoint=new Point(x1+fromNode.width,fromCenterY):y1==y2&&x1>x2?returnPoint=new Point(x1,fromCenterY):x1==x2&&y1<y2?returnPoint=new Point(fromCenterX,y1+fromNode.height):x1==x2&&y1>y2&&(returnPoint=new Point(fromCenterX,y1)),x1>x2&&y1<y2?fromDYX>=tanDYX?returnPoint=new Point(x1,fromCenterY+tanDYX*fromNode.width/2):returnPoint=new Point(fromCenterX-dx/dy*fromNode.height/2,y1+fromNode.height):x1<x2&&y1<y2?fromDYX>=tanDYX?returnPoint=new Point(x1+fromNode.width,fromCenterY+tanDYX*fromNode.width/2):returnPoint=new Point(fromCenterX+dx/dy*fromNode.height/2,y1+fromNode.height):x1<x2&&y1>y2?fromDYX>=tanDYX?returnPoint=new Point(x1+fromNode.width,fromCenterY-tanDYX*fromNode.width/2):returnPoint=new Point(fromCenterX+fromNode.height/2*dx/dy,y1):x1>x2&&y1>y2&&(fromDYX>=tanDYX?returnPoint=new Point(x1,fromCenterY-fromNode.width/2*tanDYX):returnPoint=new Point(fromCenterX-fromNode.height/2*dx/dy,y1)),returnPoint},"getIntersectPoint"),getIntersectPoints=__name(function(fromNode,endNode){let endIntersectPoint={x:0,y:0};endIntersectPoint.x=endNode.x+endNode.width/2,endIntersectPoint.y=endNode.y+endNode.height/2;let startPoint=getIntersectPoint(fromNode,endIntersectPoint);endIntersectPoint.x=fromNode.x+fromNode.width/2,endIntersectPoint.y=fromNode.y+fromNode.height/2;let endPoint=getIntersectPoint(endNode,endIntersectPoint);return{startPoint,endPoint}},"getIntersectPoints"),drawRels2=__name(function(diagram2,rels2,getC4ShapeObj,diagObj,diagramId){let i=0;for(let rel of rels2){i=i+1;let relTextWrap=rel.wrap&&conf.wrap,relConf=messageFont(conf);diagObj.db.getC4Type()==="C4Dynamic"&&(rel.label.text=i+": "+rel.label.text);let textLimitWidth=calculateTextWidth(rel.label.text,relConf);calcC4ShapeTextWH("label",rel,relTextWrap,relConf,textLimitWidth),rel.techn&&rel.techn.text!==""&&(textLimitWidth=calculateTextWidth(rel.techn.text,relConf),calcC4ShapeTextWH("techn",rel,relTextWrap,relConf,textLimitWidth)),rel.descr&&rel.descr.text!==""&&(textLimitWidth=calculateTextWidth(rel.descr.text,relConf),calcC4ShapeTextWH("descr",rel,relTextWrap,relConf,textLimitWidth));let fromNode=getC4ShapeObj(rel.from),endNode=getC4ShapeObj(rel.to),points=getIntersectPoints(fromNode,endNode);rel.startPoint=points.startPoint,rel.endPoint=points.endPoint}svgDraw_default.drawRels(diagram2,rels2,conf,diagramId)},"drawRels");function drawInsideBoundary(diagram2,parentBoundaryAlias,parentBounds,currentBoundaries,diagObj){let currentBounds=new Bounds(diagObj);currentBounds.data.widthLimit=parentBounds.data.widthLimit/Math.min(c4BoundaryInRow2,currentBoundaries.length);for(let[i,currentBoundary]of currentBoundaries.entries()){let Y=0;currentBoundary.image={width:0,height:0,Y:0},currentBoundary.sprite&&(currentBoundary.image.width=48,currentBoundary.image.height=48,currentBoundary.image.Y=Y,Y=currentBoundary.image.Y+currentBoundary.image.height);let currentBoundaryTextWrap=currentBoundary.wrap&&conf.wrap,currentBoundaryLabelConf=boundaryFont(conf);if(currentBoundaryLabelConf.fontSize=currentBoundaryLabelConf.fontSize+2,currentBoundaryLabelConf.fontWeight="bold",calcC4ShapeTextWH("label",currentBoundary,currentBoundaryTextWrap,currentBoundaryLabelConf,currentBounds.data.widthLimit),currentBoundary.label.Y=Y+8,Y=currentBoundary.label.Y+currentBoundary.label.height,currentBoundary.type&¤tBoundary.type.text!==""){currentBoundary.type.text="["+currentBoundary.type.text+"]";let currentBoundaryTypeConf=boundaryFont(conf);calcC4ShapeTextWH("type",currentBoundary,currentBoundaryTextWrap,currentBoundaryTypeConf,currentBounds.data.widthLimit),currentBoundary.type.Y=Y+5,Y=currentBoundary.type.Y+currentBoundary.type.height}if(currentBoundary.descr&¤tBoundary.descr.text!==""){let currentBoundaryDescrConf=boundaryFont(conf);currentBoundaryDescrConf.fontSize=currentBoundaryDescrConf.fontSize-2,calcC4ShapeTextWH("descr",currentBoundary,currentBoundaryTextWrap,currentBoundaryDescrConf,currentBounds.data.widthLimit),currentBoundary.descr.Y=Y+20,Y=currentBoundary.descr.Y+currentBoundary.descr.height}if(i==0||i%c4BoundaryInRow2===0){let _x=parentBounds.data.startx+conf.diagramMarginX,_y=parentBounds.data.stopy+conf.diagramMarginY+Y;currentBounds.setData(_x,_x,_y,_y)}else{let _x=currentBounds.data.stopx!==currentBounds.data.startx?currentBounds.data.stopx+conf.diagramMarginX:currentBounds.data.startx,_y=currentBounds.data.starty;currentBounds.setData(_x,_x,_y,_y)}currentBounds.name=currentBoundary.alias;let currentPersonOrSystemArray=diagObj.db.getC4ShapeArray(currentBoundary.alias),currentPersonOrSystemKeys=diagObj.db.getC4ShapeKeys(currentBoundary.alias);currentPersonOrSystemKeys.length>0&&drawC4ShapeArray(currentBounds,diagram2,currentPersonOrSystemArray,currentPersonOrSystemKeys),parentBoundaryAlias=currentBoundary.alias;let nextCurrentBoundaries=diagObj.db.getBoundaries(parentBoundaryAlias);nextCurrentBoundaries.length>0&&drawInsideBoundary(diagram2,parentBoundaryAlias,currentBounds,nextCurrentBoundaries,diagObj),currentBoundary.alias!=="global"&&drawBoundary2(diagram2,currentBoundary,currentBounds),parentBounds.data.stopy=Math.max(currentBounds.data.stopy+conf.c4ShapeMargin,parentBounds.data.stopy),parentBounds.data.stopx=Math.max(currentBounds.data.stopx+conf.c4ShapeMargin,parentBounds.data.stopx),globalBoundaryMaxX=Math.max(globalBoundaryMaxX,parentBounds.data.stopx),globalBoundaryMaxY=Math.max(globalBoundaryMaxY,parentBounds.data.stopy)}}__name(drawInsideBoundary,"drawInsideBoundary");var draw=__name(function(_text,id,_version,diagObj){conf=getConfig2().c4;const securityLevel=getConfig2().securityLevel;let sandboxElement;securityLevel==="sandbox"&&(sandboxElement=select("#i"+id));const root=securityLevel==="sandbox"?select(sandboxElement.nodes()[0].contentDocument.body):select("body");let db=diagObj.db;diagObj.db.setWrap(conf.wrap),c4ShapeInRow2=db.getC4ShapeInRow(),c4BoundaryInRow2=db.getC4BoundaryInRow(),log.debug(`C:${JSON.stringify(conf,null,2)}`);const diagram2=securityLevel==="sandbox"?root.select(`[id="${id}"]`):select(`[id="${id}"]`);svgDraw_default.insertComputerIcon(diagram2,id),svgDraw_default.insertDatabaseIcon(diagram2,id),svgDraw_default.insertClockIcon(diagram2,id);let screenBounds=new Bounds(diagObj);screenBounds.setData(conf.diagramMarginX,conf.diagramMarginX,conf.diagramMarginY,conf.diagramMarginY),screenBounds.data.widthLimit=screen.availWidth,globalBoundaryMaxX=conf.diagramMarginX,globalBoundaryMaxY=conf.diagramMarginY;const title2=diagObj.db.getTitle();let currentBoundaries=diagObj.db.getBoundaries("");drawInsideBoundary(diagram2,"",screenBounds,currentBoundaries,diagObj),svgDraw_default.insertArrowHead(diagram2,id),svgDraw_default.insertArrowEnd(diagram2,id),svgDraw_default.insertArrowCrossHead(diagram2,id),svgDraw_default.insertArrowFilledHead(diagram2,id),drawRels2(diagram2,diagObj.db.getRels(),diagObj.db.getC4Shape,diagObj,id),screenBounds.data.stopx=globalBoundaryMaxX,screenBounds.data.stopy=globalBoundaryMaxY;const box=screenBounds.data;let height=box.stopy-box.starty+2*conf.diagramMarginY;const width=box.stopx-box.startx+2*conf.diagramMarginX;title2&&diagram2.append("text").text(title2).attr("x",(box.stopx-box.startx)/2-4*conf.diagramMarginX).attr("y",box.starty+conf.diagramMarginY),configureSvgSize(diagram2,height,width,conf.useMaxWidth);const extraVertForTitle=title2?60:0;diagram2.attr("viewBox",box.startx-conf.diagramMarginX+" -"+(conf.diagramMarginY+extraVertForTitle)+" "+width+" "+(height+extraVertForTitle)),log.debug("models:",box)},"draw"),c4Renderer_default={drawPersonOrSystemArray:drawC4ShapeArray,drawBoundary:drawBoundary2,setConf,draw},getStyles=__name(options=>`.person {
|
|
7
|
+
stroke: ${options.personBorder};
|
|
8
|
+
fill: ${options.personBkg};
|
|
9
|
+
}
|
|
10
|
+
`,"getStyles"),styles_default=getStyles,diagram={parser:c4Diagram_default,db:c4Db_default,renderer:c4Renderer_default,styles:styles_default,init:__name(({c4,wrap})=>{c4Renderer_default.setConf(c4),c4Db_default.setWrap(wrap)},"init")};export{diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ap as Utils,aq as Color}from"./mermaid.core-DNvsWVDx.js";const channel=(color,channel2)=>Utils.lang.round(Color.parse(color)[channel2]);export{channel as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as __name}from"./mermaid.core-DNvsWVDx.js";function populateCommonDb(ast,db){var _a,_b,_c;ast.accDescr&&((_a=db.setAccDescription)==null||_a.call(db,ast.accDescr)),ast.accTitle&&((_b=db.setAccTitle)==null||_b.call(db,ast.accTitle)),ast.title&&((_c=db.setDiagramTitle)==null||_c.call(db,ast.title))}__name(populateCommonDb,"populateCommonDb");export{populateCommonDb as p};
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import{g as getIconStyles}from"./chunk-FMBD7UC4-BCaKpugk.js";import{c as createTooltip}from"./chunk-YZCP3GAM-BYW1PNda.js";import{g as getDiagramElement}from"./chunk-55IACEB6-DcgWxDD5.js";import{s as setupViewPortForSVG}from"./chunk-EDXVE4YY-DeUzWpQx.js";import{_ as __name,l as log,c as getConfig2,o as getRegisteredLayoutAlgorithm,r as render,u as utils_default,d as select,b as setAccTitle,a as getAccTitle,s as setAccDescription,g as getAccDescription,p as setDiagramTitle,q as getDiagramTitle,k as common_default,y as clear,x as getEdgeId,i as sanitizeText,P as parseGenericTypes}from"./mermaid.core-DNvsWVDx.js";import{p as purify}from"./vendor-markdown-DO-Ppp4f.js";var parser=(function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[1,18],$V1=[1,19],$V2=[1,20],$V3=[1,41],$V4=[1,26],$V5=[1,42],$V6=[1,24],$V7=[1,25],$V8=[1,32],$V9=[1,33],$Va=[1,34],$Vb=[1,45],$Vc=[1,35],$Vd=[1,36],$Ve=[1,37],$Vf=[1,38],$Vg=[1,27],$Vh=[1,28],$Vi=[1,29],$Vj=[1,30],$Vk=[1,31],$Vl=[1,44],$Vm=[1,46],$Vn=[1,43],$Vo=[1,47],$Vp=[1,9],$Vq=[1,8,9],$Vr=[1,58],$Vs=[1,59],$Vt=[1,60],$Vu=[1,61],$Vv=[1,62],$Vw=[1,63],$Vx=[1,64],$Vy=[1,8,9,41],$Vz=[1,77],$VA=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],$VB=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],$VC=[13,60,86,100,102,103],$VD=[13,60,73,74,86,100,102,103],$VE=[13,60,68,69,70,71,72,86,100,102,103],$VF=[1,102],$VG=[1,120],$VH=[1,116],$VI=[1,112],$VJ=[1,118],$VK=[1,113],$VL=[1,114],$VM=[1,115],$VN=[1,117],$VO=[1,119],$VP=[22,50,60,61,82,86,87,88,89,90],$VQ=[1,8,9,39,41,44,46],$VR=[1,8,9,22],$VS=[1,150],$VT=[1,8,9,61],$VU=[1,8,9,22,50,60,61,82,86,87,88,89,90],parser2={trace:__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 8:this.$=$$[$0-1];break;case 9:case 10:case 13:case 15:this.$=$$[$0];break;case 11:case 14:this.$=$$[$0-2]+"."+$$[$0];break;case 12:case 16:this.$=$$[$0-1]+$$[$0];break;case 17:case 18:this.$=$$[$0-1]+"~"+$$[$0]+"~";break;case 19:yy.addRelation($$[$0]);break;case 20:$$[$0-1].title=yy.cleanupLabel($$[$0]),yy.addRelation($$[$0-1]);break;case 31:this.$=$$[$0].trim(),yy.setAccTitle(this.$);break;case 32:case 33:this.$=$$[$0].trim(),yy.setAccDescription(this.$);break;case 34:yy.addClassesToNamespace($$[$0-3],$$[$0-1][0],$$[$0-1][1]);break;case 35:yy.addClassesToNamespace($$[$0-4],$$[$0-1][0],$$[$0-1][1]);break;case 36:this.$=$$[$0],yy.addNamespace($$[$0]);break;case 37:this.$=[[$$[$0]],[]];break;case 38:this.$=[[$$[$0-1]],[]];break;case 39:$$[$0][0].unshift($$[$0-2]),this.$=$$[$0];break;case 40:this.$=[[],[$$[$0]]];break;case 41:this.$=[[],[$$[$0-1]]];break;case 42:$$[$0][1].unshift($$[$0-2]),this.$=$$[$0];break;case 44:yy.setCssClass($$[$0-2],$$[$0]);break;case 45:yy.addMembers($$[$0-3],$$[$0-1]);break;case 47:yy.setCssClass($$[$0-5],$$[$0-3]),yy.addMembers($$[$0-5],$$[$0-1]);break;case 48:yy.addAnnotation($$[$0-3],$$[$0-1]);break;case 49:yy.addAnnotation($$[$0-6],$$[$0-4]),yy.addMembers($$[$0-6],$$[$0-1]);break;case 50:yy.addAnnotation($$[$0-5],$$[$0-3]);break;case 51:this.$=$$[$0],yy.addClass($$[$0]);break;case 52:this.$=$$[$0-1],yy.addClass($$[$0-1]),yy.setClassLabel($$[$0-1],$$[$0]);break;case 56:yy.addAnnotation($$[$0],$$[$0-2]);break;case 57:case 70:this.$=[$$[$0]];break;case 58:$$[$0].push($$[$0-1]),this.$=$$[$0];break;case 59:break;case 60:yy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));break;case 61:break;case 62:break;case 63:this.$={id1:$$[$0-2],id2:$$[$0],relation:$$[$0-1],relationTitle1:"none",relationTitle2:"none"};break;case 64:this.$={id1:$$[$0-3],id2:$$[$0],relation:$$[$0-1],relationTitle1:$$[$0-2],relationTitle2:"none"};break;case 65:this.$={id1:$$[$0-3],id2:$$[$0],relation:$$[$0-2],relationTitle1:"none",relationTitle2:$$[$0-1]};break;case 66:this.$={id1:$$[$0-4],id2:$$[$0],relation:$$[$0-2],relationTitle1:$$[$0-3],relationTitle2:$$[$0-1]};break;case 67:this.$=yy.addNote($$[$0],$$[$0-1]);break;case 68:this.$=yy.addNote($$[$0]);break;case 69:this.$=$$[$0-2],yy.defineClass($$[$0-1],$$[$0]);break;case 71:this.$=$$[$0-2].concat([$$[$0]]);break;case 72:yy.setDirection("TB");break;case 73:yy.setDirection("BT");break;case 74:yy.setDirection("RL");break;case 75:yy.setDirection("LR");break;case 76:this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]};break;case 77:this.$={type1:"none",type2:$$[$0],lineType:$$[$0-1]};break;case 78:this.$={type1:$$[$0-1],type2:"none",lineType:$$[$0]};break;case 79:this.$={type1:"none",type2:"none",lineType:$$[$0]};break;case 80:this.$=yy.relationType.AGGREGATION;break;case 81:this.$=yy.relationType.EXTENSION;break;case 82:this.$=yy.relationType.COMPOSITION;break;case 83:this.$=yy.relationType.DEPENDENCY;break;case 84:this.$=yy.relationType.LOLLIPOP;break;case 85:this.$=yy.lineType.LINE;break;case 86:this.$=yy.lineType.DOTTED_LINE;break;case 87:case 93:this.$=$$[$0-2],yy.setClickEvent($$[$0-1],$$[$0]);break;case 88:case 94:this.$=$$[$0-3],yy.setClickEvent($$[$0-2],$$[$0-1]),yy.setTooltip($$[$0-2],$$[$0]);break;case 89:this.$=$$[$0-2],yy.setLink($$[$0-1],$$[$0]);break;case 90:this.$=$$[$0-3],yy.setLink($$[$0-2],$$[$0-1],$$[$0]);break;case 91:this.$=$$[$0-3],yy.setLink($$[$0-2],$$[$0-1]),yy.setTooltip($$[$0-2],$$[$0]);break;case 92:this.$=$$[$0-4],yy.setLink($$[$0-3],$$[$0-2],$$[$0]),yy.setTooltip($$[$0-3],$$[$0-1]);break;case 95:this.$=$$[$0-3],yy.setClickEvent($$[$0-2],$$[$0-1],$$[$0]);break;case 96:this.$=$$[$0-4],yy.setClickEvent($$[$0-3],$$[$0-2],$$[$0-1]),yy.setTooltip($$[$0-3],$$[$0]);break;case 97:this.$=$$[$0-3],yy.setLink($$[$0-2],$$[$0]);break;case 98:this.$=$$[$0-4],yy.setLink($$[$0-3],$$[$0-1],$$[$0]);break;case 99:this.$=$$[$0-4],yy.setLink($$[$0-3],$$[$0-1]),yy.setTooltip($$[$0-3],$$[$0]);break;case 100:this.$=$$[$0-5],yy.setLink($$[$0-4],$$[$0-2],$$[$0]),yy.setTooltip($$[$0-4],$$[$0-1]);break;case 101:this.$=$$[$0-2],yy.setCssStyle($$[$0-1],$$[$0]);break;case 102:yy.setCssClass($$[$0-1],$$[$0]);break;case 103:this.$=[$$[$0]];break;case 104:$$[$0-2].push($$[$0]),this.$=$$[$0-2];break;case 106:this.$=$$[$0-1]+$$[$0];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:$V0,35:$V1,37:$V2,38:22,42:$V3,43:23,46:$V4,48:$V5,51:$V6,52:$V7,54:$V8,56:$V9,57:$Va,60:$Vb,62:$Vc,63:$Vd,64:$Ve,65:$Vf,75:$Vg,76:$Vh,78:$Vi,82:$Vj,83:$Vk,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},o($Vp,[2,5],{8:[1,48]}),{8:[1,49]},o($Vq,[2,19],{22:[1,50]}),o($Vq,[2,21]),o($Vq,[2,22]),o($Vq,[2,23]),o($Vq,[2,24]),o($Vq,[2,25]),o($Vq,[2,26]),o($Vq,[2,27]),o($Vq,[2,28]),o($Vq,[2,29]),o($Vq,[2,30]),{34:[1,51]},{36:[1,52]},o($Vq,[2,33]),o($Vq,[2,59],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:$Vr,69:$Vs,70:$Vt,71:$Vu,72:$Vv,73:$Vw,74:$Vx}),{39:[1,65]},o($Vy,[2,43],{39:[1,67],44:[1,66],46:[1,68]}),o($Vq,[2,61]),o($Vq,[2,62]),{16:69,60:$Vb,86:$Vl,100:$Vm,102:$Vn},{16:39,17:40,19:70,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{16:39,17:40,19:71,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{16:39,17:40,19:72,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{13:$Vz,55:76},{58:78,60:[1,79]},o($Vq,[2,72]),o($Vq,[2,73]),o($Vq,[2,74]),o($Vq,[2,75]),o($VA,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo}),o($VA,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{16:39,17:40,19:87,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($VB,[2,129]),o($VB,[2,130]),o($VB,[2,131]),o($VB,[2,132]),o([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,133]),o($Vp,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:$V0,35:$V1,37:$V2,42:$V3,46:$V4,48:$V5,51:$V6,52:$V7,54:$V8,56:$V9,57:$Va,60:$Vb,62:$Vc,63:$Vd,64:$Ve,65:$Vf,75:$Vg,76:$Vh,78:$Vi,82:$Vj,83:$Vk,86:$Vl,100:$Vm,102:$Vn,103:$Vo}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:$V0,35:$V1,37:$V2,38:22,42:$V3,43:23,46:$V4,48:$V5,51:$V6,52:$V7,54:$V8,56:$V9,57:$Va,60:$Vb,62:$Vc,63:$Vd,64:$Ve,65:$Vf,75:$Vg,76:$Vh,78:$Vi,82:$Vj,83:$Vk,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($Vq,[2,20]),o($Vq,[2,31]),o($Vq,[2,32]),{13:[1,91],16:39,17:40,19:90,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{53:92,66:56,67:57,68:$Vr,69:$Vs,70:$Vt,71:$Vu,72:$Vv,73:$Vw,74:$Vx},o($Vq,[2,60]),{67:93,73:$Vw,74:$Vx},o($VC,[2,79],{66:94,68:$Vr,69:$Vs,70:$Vt,71:$Vu,72:$Vv}),o($VD,[2,80]),o($VD,[2,81]),o($VD,[2,82]),o($VD,[2,83]),o($VD,[2,84]),o($VE,[2,85]),o($VE,[2,86]),{8:[1,96],24:97,30:98,40:95,43:23,48:$V5,54:$V8,56:$V9},{16:99,60:$Vb,86:$Vl,100:$Vm,102:$Vn},{41:[1,101],45:100,51:$VF},{16:103,60:$Vb,86:$Vl,100:$Vm,102:$Vn},{47:[1,104]},{13:[1,105]},{13:[1,106]},{79:[1,107],81:[1,108]},{22:$VG,50:$VH,59:109,60:$VI,82:$VJ,84:110,85:111,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO},{60:[1,121]},{13:$Vz,55:122},o($Vy,[2,68]),o($Vy,[2,134]),{22:$VG,50:$VH,59:123,60:$VI,61:[1,124],82:$VJ,84:110,85:111,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO},o($VP,[2,70]),{16:39,17:40,19:125,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($VA,[2,16]),o($VA,[2,17]),o($VA,[2,18]),{39:[2,36]},{15:127,16:85,17:86,18:[1,126],39:[2,9],60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{39:[2,10]},o($VQ,[2,51],{11:128,12:[1,129]}),o($Vp,[2,7]),{9:[1,130]},o($VR,[2,63]),{16:39,17:40,19:131,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{13:[1,133],16:39,17:40,19:132,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($VC,[2,78],{66:134,68:$Vr,69:$Vs,70:$Vt,71:$Vu,72:$Vv}),o($VC,[2,77]),{41:[1,135]},{24:97,30:98,40:136,43:23,48:$V5,54:$V8,56:$V9},{8:[1,137],41:[2,37]},{8:[1,138],41:[2,40]},o($Vy,[2,44],{39:[1,139]}),{41:[1,140]},o($Vy,[2,46]),{41:[2,57],45:141,51:$VF},{47:[1,142]},{16:39,17:40,19:143,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($Vq,[2,87],{13:[1,144]}),o($Vq,[2,89],{13:[1,146],77:[1,145]}),o($Vq,[2,93],{13:[1,147],80:[1,148]}),{13:[1,149]},o($Vq,[2,101],{61:$VS}),o($VT,[2,103],{85:151,22:$VG,50:$VH,60:$VI,82:$VJ,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO}),o($VU,[2,105]),o($VU,[2,107]),o($VU,[2,108]),o($VU,[2,109]),o($VU,[2,110]),o($VU,[2,111]),o($VU,[2,112]),o($VU,[2,113]),o($VU,[2,114]),o($VU,[2,115]),o($Vq,[2,102]),o($Vy,[2,67]),o($Vq,[2,69],{61:$VS}),{60:[1,152]},o($VA,[2,14]),{15:153,16:85,17:86,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},{39:[2,12]},o($VQ,[2,52]),{13:[1,154]},{1:[2,4]},o($VR,[2,65]),o($VR,[2,64]),{16:39,17:40,19:155,60:$Vb,86:$Vl,100:$Vm,102:$Vn,103:$Vo},o($VC,[2,76]),o($Vq,[2,34]),{41:[1,156]},{24:97,30:98,40:157,41:[2,38],43:23,48:$V5,54:$V8,56:$V9},{24:97,30:98,40:158,41:[2,41],43:23,48:$V5,54:$V8,56:$V9},{45:159,51:$VF},o($Vy,[2,45]),{41:[2,58]},o($Vy,[2,48],{39:[1,160]}),o($Vq,[2,56]),o($Vq,[2,88]),o($Vq,[2,90]),o($Vq,[2,91],{77:[1,161]}),o($Vq,[2,94]),o($Vq,[2,95],{13:[1,162]}),o($Vq,[2,97],{13:[1,164],77:[1,163]}),{22:$VG,50:$VH,60:$VI,82:$VJ,84:165,85:111,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO},o($VU,[2,106]),o($VP,[2,71]),{39:[2,11]},{14:[1,166]},o($VR,[2,66]),o($Vq,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,167]},{41:[1,169],45:168,51:$VF},o($Vq,[2,92]),o($Vq,[2,96]),o($Vq,[2,98]),o($Vq,[2,99],{77:[1,170]}),o($VT,[2,104],{85:151,22:$VG,50:$VH,60:$VI,82:$VJ,86:$VK,87:$VL,88:$VM,89:$VN,90:$VO}),o($VQ,[2,8]),o($Vy,[2,47]),{41:[1,171]},o($Vy,[2,50]),o($Vq,[2,100]),o($Vy,[2,49])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],84:[2,36],86:[2,10],127:[2,12],130:[2,4],141:[2,58],153:[2,11],157:[2,39],158:[2,42]},parseError:__name(function(str,hash){if(hash.recoverable)this.trace(str);else{var error=new Error(str);throw error.hash=hash,error}},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,TERROR=2,EOF=1,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,typeof lexer2.yylloc>"u"&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;typeof sharedState.yy.parseError=="function"?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function popStack(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n}__name(popStack,"popStack");function lex(){var token;return token=tstack.pop()||lexer2.lex()||EOF,typeof token!="number"&&(token instanceof Array&&(tstack=token,token=tstack.pop()),token=self.symbols_[token]||token),token}__name(lex,"lex");for(var symbol,state,action,r,yyval={},p,len,newState,expected;;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:((symbol===null||typeof symbol>"u")&&(symbol=lex()),action=table[state]&&table[state][symbol]),typeof action>"u"||!action.length||!action[0]){var errStr="";expected=[];for(p in table[state])this.terminals_[p]&&p>TERROR&&expected.push("'"+this.terminals_[p]+"'");lexer2.showPosition?errStr="Parse error on line "+(yylineno+1)+`:
|
|
2
|
+
`+lexer2.showPosition()+`
|
|
3
|
+
Expecting `+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":errStr="Parse error on line "+(yylineno+1)+": Unexpected "+(symbol==EOF?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args)),typeof r<"u")return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=(function(){var lexer2={EOF:1,parseError:__name(function(str,hash){if(this.yy.parser)this.yy.parser.parseError(str,hash);else throw new Error(str)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,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:__name(function(){var ch=this._input[0];this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch;var lines=ch.match(/(?:\r\n?|\n).*/g);return lines?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=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),lines.length-1&&(this.yylineno-=lines.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__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:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+`
|
|
5
|
+
`+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={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&&(backup.yylloc.range=this.yylloc.range.slice(0))),lines=match[0].match(/(?:\r\n?|\n).*/g),lines&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,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(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var token,match,tempMatch,index;this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if(tempMatch=this._input.match(this.rules[rules[i]]),tempMatch&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(token=this.test_match(tempMatch,rules[i]),token!==!1)return token;if(this._backtrack){match=!1;continue}else return!1}else if(!this.options.flex)break}return match?(token=this.test_match(match,rules[index]),token!==!1?token:!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:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__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:__name(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:return this.popState(),41;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),48;case 39:return this.popState(),8;case 40:break;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 43:return this.popState(),41;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 46;case 56:return 47;case 57:return 81;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:return 77;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 69;case 69:return 69;case 70:return 71;case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:return 89;case 85:return 89;case 86:return 90;case 87:return"EQUALS";case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:return 50;case 96:return 50;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}};return lexer2})();parser2.lexer=lexer;function Parser(){this.yy={}}return __name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser})();parser.parser=parser;var classDiagram_default=parser,visibilityValues=["#","+","~","-",""],_a,ClassMember=(_a=class{constructor(input,memberType){this.memberType=memberType,this.visibility="",this.classifier="",this.text="";const sanitizedInput=sanitizeText(input,getConfig2());this.parseMember(sanitizedInput)}getDisplayDetails(){let displayText=this.visibility+parseGenericTypes(this.id);this.memberType==="method"&&(displayText+=`(${parseGenericTypes(this.parameters.trim())})`,this.returnType&&(displayText+=" : "+parseGenericTypes(this.returnType))),displayText=displayText.trim();const cssStyle=this.parseClassifier();return{displayText,cssStyle}}parseMember(input){let potentialClassifier="";if(this.memberType==="method"){const match=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(input);if(match){const detectedVisibility=match[1]?match[1].trim():"";if(visibilityValues.includes(detectedVisibility)&&(this.visibility=detectedVisibility),this.id=match[2],this.parameters=match[3]?match[3].trim():"",potentialClassifier=match[4]?match[4].trim():"",this.returnType=match[5]?match[5].trim():"",potentialClassifier===""){const lastChar=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(lastChar)&&(potentialClassifier=lastChar,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const length=input.length,firstChar=input.substring(0,1),lastChar=input.substring(length-1);visibilityValues.includes(firstChar)&&(this.visibility=firstChar),/[$*]/.exec(lastChar)&&(potentialClassifier=lastChar),this.id=input.substring(this.visibility===""?0:1,potentialClassifier===""?length:length-1)}this.classifier=potentialClassifier,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const combinedText=`${this.visibility?"\\"+this.visibility:""}${parseGenericTypes(this.id)}${this.memberType==="method"?`(${parseGenericTypes(this.parameters)})${this.returnType?" : "+parseGenericTypes(this.returnType):""}`:""}`;this.text=combinedText.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},__name(_a,"ClassMember"),_a),MERMAID_DOM_ID_PREFIX="classId-",classCounter=0,sanitizeText2=__name(txt=>common_default.sanitizeText(txt,getConfig2()),"sanitizeText"),_a2,ClassDB=(_a2=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=__name(element=>{const tooltipElem=createTooltip();select(element).select("svg").selectAll("g").filter(function(){return select(this).attr("title")!==null}).on("mouseover",event=>{const el=select(event.currentTarget),title=el.attr("title");if(!title)return;const rect=event.currentTarget.getBoundingClientRect();tooltipElem.transition().duration(200).style("opacity",".9"),tooltipElem.html(purify.sanitize(title)).style("left",`${window.scrollX+rect.left+rect.width/2}px`).style("top",`${window.scrollY+rect.bottom+4}px`),el.classed("hover",!0)}).on("mouseout",event=>{tooltipElem.transition().duration(500).style("opacity",0),select(event.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=setAccTitle,this.getAccTitle=getAccTitle,this.setAccDescription=setAccDescription,this.getAccDescription=getAccDescription,this.setDiagramTitle=setDiagramTitle,this.getDiagramTitle=getDiagramTitle,this.getConfig=__name(()=>getConfig2().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(_id){const id=common_default.sanitizeText(_id,getConfig2());let genericType="",className=id;if(id.indexOf("~")>0){const split=id.split("~");className=sanitizeText2(split[0]),genericType=sanitizeText2(split[1])}return{className,type:genericType}}setClassLabel(_id,label){const id=common_default.sanitizeText(_id,getConfig2());label&&(label=sanitizeText2(label));const{className}=this.splitClassNameAndType(id);this.classes.get(className).label=label,this.classes.get(className).text=`${label}${this.classes.get(className).type?`<${this.classes.get(className).type}>`:""}`}addClass(_id){const id=common_default.sanitizeText(_id,getConfig2()),{className,type}=this.splitClassNameAndType(id);if(this.classes.has(className))return;const name=common_default.sanitizeText(className,getConfig2());this.classes.set(name,{id:name,type,label:name,text:`${name}${type?`<${type}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:MERMAID_DOM_ID_PREFIX+name+"-"+classCounter}),classCounter++}addInterface(label,classId){const classInterface={id:`interface${this.interfaces.length}`,label,classId};this.interfaces.push(classInterface)}setDiagramId(svgElementId){this.diagramId=svgElementId}lookUpDomId(_id){const id=common_default.sanitizeText(_id,getConfig2());if(this.classes.has(id)){const domId=this.classes.get(id).domId;return this.diagramId?`${this.diagramId}-${domId}`:domId}throw new Error("Class not found: "+id)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.direction="TB",clear()}getClass(id){return this.classes.get(id)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(id){const key=typeof id=="number"?`note${id}`:id;return this.notes.get(key)}getNotes(){return this.notes}addRelation(classRelation){log.debug("Adding relation: "+JSON.stringify(classRelation));const invalidTypes=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];classRelation.relation.type1===this.relationType.LOLLIPOP&&!invalidTypes.includes(classRelation.relation.type2)?(this.addClass(classRelation.id2),this.addInterface(classRelation.id1,classRelation.id2),classRelation.id1=`interface${this.interfaces.length-1}`):classRelation.relation.type2===this.relationType.LOLLIPOP&&!invalidTypes.includes(classRelation.relation.type1)?(this.addClass(classRelation.id1),this.addInterface(classRelation.id2,classRelation.id1),classRelation.id2=`interface${this.interfaces.length-1}`):(this.addClass(classRelation.id1),this.addClass(classRelation.id2)),classRelation.id1=this.splitClassNameAndType(classRelation.id1).className,classRelation.id2=this.splitClassNameAndType(classRelation.id2).className,classRelation.relationTitle1=common_default.sanitizeText(classRelation.relationTitle1.trim(),getConfig2()),classRelation.relationTitle2=common_default.sanitizeText(classRelation.relationTitle2.trim(),getConfig2()),this.relations.push(classRelation)}addAnnotation(className,annotation){const validatedClassName=this.splitClassNameAndType(className).className;this.classes.get(validatedClassName).annotations.push(annotation)}addMember(className,member){this.addClass(className);const validatedClassName=this.splitClassNameAndType(className).className,theClass=this.classes.get(validatedClassName);if(typeof member=="string"){const memberString=member.trim();memberString.startsWith("<<")&&memberString.endsWith(">>")?theClass.annotations.push(sanitizeText2(memberString.substring(2,memberString.length-2))):memberString.indexOf(")")>0?theClass.methods.push(new ClassMember(memberString,"method")):memberString&&theClass.members.push(new ClassMember(memberString,"attribute"))}}addMembers(className,members){Array.isArray(members)&&(members.reverse(),members.forEach(member=>this.addMember(className,member)))}addNote(text,className){const index=this.notes.size,note={id:`note${index}`,class:className,text,index};return this.notes.set(note.id,note),note.id}cleanupLabel(label){return label.startsWith(":")&&(label=label.substring(1)),sanitizeText2(label.trim())}setCssClass(ids,className){ids.split(",").forEach(_id=>{let id=_id;/\d/.exec(_id[0])&&(id=MERMAID_DOM_ID_PREFIX+id);const classNode=this.classes.get(id);classNode&&(classNode.cssClasses+=" "+className)})}defineClass(ids,style){for(const id of ids){let styleClass=this.styleClasses.get(id);styleClass===void 0&&(styleClass={id,styles:[],textStyles:[]},this.styleClasses.set(id,styleClass)),style&&style.forEach(s=>{if(/color/.exec(s)){const newStyle=s.replace("fill","bgFill");styleClass.textStyles.push(newStyle)}styleClass.styles.push(s)}),this.classes.forEach(value=>{value.cssClasses.includes(id)&&value.styles.push(...style.flatMap(s=>s.split(",")))})}}setTooltip(ids,tooltip){ids.split(",").forEach(id=>{tooltip!==void 0&&(this.classes.get(id).tooltip=sanitizeText2(tooltip))})}getTooltip(id,namespace){return namespace&&this.namespaces.has(namespace)?this.namespaces.get(namespace).classes.get(id).tooltip:this.classes.get(id).tooltip}setLink(ids,linkStr,target){const config=getConfig2();ids.split(",").forEach(_id=>{let id=_id;/\d/.exec(_id[0])&&(id=MERMAID_DOM_ID_PREFIX+id);const theClass=this.classes.get(id);theClass&&(theClass.link=utils_default.formatUrl(linkStr,config),config.securityLevel==="sandbox"?theClass.linkTarget="_top":typeof target=="string"?theClass.linkTarget=sanitizeText2(target):theClass.linkTarget="_blank")}),this.setCssClass(ids,"clickable")}setClickEvent(ids,functionName,functionArgs){ids.split(",").forEach(id=>{this.setClickFunc(id,functionName,functionArgs),this.classes.get(id).haveCallback=!0}),this.setCssClass(ids,"clickable")}setClickFunc(_domId,functionName,functionArgs){const domId=common_default.sanitizeText(_domId,getConfig2());if(getConfig2().securityLevel!=="loose"||functionName===void 0)return;const id=domId;if(this.classes.has(id)){let argList=[];if(typeof functionArgs=="string"){argList=functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let i=0;i<argList.length;i++){let item=argList[i].trim();item.startsWith('"')&&item.endsWith('"')&&(item=item.substr(1,item.length-2)),argList[i]=item}}argList.length===0&&argList.push(id),this.functions.push(()=>{const elemId=this.lookUpDomId(id),elem=document.querySelector(`[id="${elemId}"]`);elem!==null&&elem.addEventListener("click",()=>{utils_default.runFunc(functionName,...argList)},!1)})}}bindFunctions(element){this.functions.forEach(fun=>{fun(element)})}escapeHtml(str){return str.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(dir){this.direction=dir}addNamespace(id){this.namespaces.has(id)||(this.namespaces.set(id,{id,classes:new Map,notes:new Map,children:new Map,domId:MERMAID_DOM_ID_PREFIX+id+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(name){return this.namespaces.get(name)}getNamespaces(){return this.namespaces}addClassesToNamespace(id,classNames,noteNames){if(this.namespaces.has(id)){for(const name of classNames){const{className}=this.splitClassNameAndType(name),classNode=this.getClass(className);classNode.parent=id,this.namespaces.get(id).classes.set(className,classNode)}for(const noteName of noteNames){const noteNode=this.getNote(noteName);noteNode.parent=id,this.namespaces.get(id).notes.set(noteName,noteNode)}}}setCssStyle(id,styles){const thisClass=this.classes.get(id);if(!(!styles||!thisClass))for(const s of styles)s.includes(",")?thisClass.styles.push(...s.split(",")):thisClass.styles.push(s)}getArrowMarker(type){let marker;switch(type){case 0:marker="aggregation";break;case 1:marker="extension";break;case 2:marker="composition";break;case 3:marker="dependency";break;case 4:marker="lollipop";break;default:marker="none"}return marker}getData(){var _a3;const nodes=[],edges=[],config=getConfig2();for(const namespace of this.namespaces.values()){const node={id:namespace.id,label:namespace.id,isGroup:!0,padding:config.class.padding??16,shape:"rect",cssStyles:[],look:config.look};nodes.push(node)}for(const classNode of this.classes.values()){const node={...classNode,type:void 0,isGroup:!1,parentId:classNode.parent,look:config.look};nodes.push(node)}for(const note of this.notes.values()){const noteNode={id:note.id,label:note.text,isGroup:!1,shape:"note",padding:config.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${config.themeVariables.noteBkgColor}`,`stroke: ${config.themeVariables.noteBorderColor}`],look:config.look,parentId:note.parent,labelType:"markdown"};nodes.push(noteNode);const noteClassId=(_a3=this.classes.get(note.class))==null?void 0:_a3.id;if(noteClassId){const edge={id:`edgeNote${note.index}`,start:note.id,end:noteClassId,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:config.look};edges.push(edge)}}for(const _interface of this.interfaces){const interfaceNode={id:_interface.id,label:_interface.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:config.look};nodes.push(interfaceNode)}let cnt=0;for(const classRelation of this.relations){cnt++;const edge={id:getEdgeId(classRelation.id1,classRelation.id2,{prefix:"id",counter:cnt}),start:classRelation.id1,end:classRelation.id2,type:"normal",label:classRelation.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(classRelation.relation.type1),arrowTypeEnd:this.getArrowMarker(classRelation.relation.type2),startLabelRight:classRelation.relationTitle1==="none"?"":classRelation.relationTitle1,endLabelLeft:classRelation.relationTitle2==="none"?"":classRelation.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:classRelation.style||"",pattern:classRelation.relation.lineType==1?"dashed":"solid",look:config.look,labelType:"markdown"};edges.push(edge)}return{nodes,edges,other:{},config,direction:this.getDirection()}}},__name(_a2,"ClassDB"),_a2),getStyles=__name(options=>`g.classGroup text {
|
|
7
|
+
fill: ${options.nodeBorder||options.classText};
|
|
8
|
+
stroke: none;
|
|
9
|
+
font-family: ${options.fontFamily};
|
|
10
|
+
font-size: 10px;
|
|
11
|
+
|
|
12
|
+
.title {
|
|
13
|
+
font-weight: bolder;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.cluster-label text {
|
|
19
|
+
fill: ${options.titleColor};
|
|
20
|
+
}
|
|
21
|
+
.cluster-label span {
|
|
22
|
+
color: ${options.titleColor};
|
|
23
|
+
}
|
|
24
|
+
.cluster-label span p {
|
|
25
|
+
background-color: transparent;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.cluster rect {
|
|
29
|
+
fill: ${options.clusterBkg};
|
|
30
|
+
stroke: ${options.clusterBorder};
|
|
31
|
+
stroke-width: 1px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cluster text {
|
|
35
|
+
fill: ${options.titleColor};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.cluster span {
|
|
39
|
+
color: ${options.titleColor};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.nodeLabel, .edgeLabel {
|
|
43
|
+
color: ${options.classText};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.noteLabel .nodeLabel, .noteLabel .edgeLabel {
|
|
47
|
+
color: ${options.noteTextColor};
|
|
48
|
+
}
|
|
49
|
+
.edgeLabel .label rect {
|
|
50
|
+
fill: ${options.mainBkg};
|
|
51
|
+
}
|
|
52
|
+
.label text {
|
|
53
|
+
fill: ${options.classText};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.labelBkg {
|
|
57
|
+
background: ${options.mainBkg};
|
|
58
|
+
}
|
|
59
|
+
.edgeLabel .label span {
|
|
60
|
+
background: ${options.mainBkg};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.classTitle {
|
|
64
|
+
font-weight: bolder;
|
|
65
|
+
}
|
|
66
|
+
.node rect,
|
|
67
|
+
.node circle,
|
|
68
|
+
.node ellipse,
|
|
69
|
+
.node polygon,
|
|
70
|
+
.node path {
|
|
71
|
+
fill: ${options.mainBkg};
|
|
72
|
+
stroke: ${options.nodeBorder};
|
|
73
|
+
stroke-width: ${options.strokeWidth};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
.divider {
|
|
78
|
+
stroke: ${options.nodeBorder};
|
|
79
|
+
stroke-width: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
g.clickable {
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
g.classGroup rect {
|
|
87
|
+
fill: ${options.mainBkg};
|
|
88
|
+
stroke: ${options.nodeBorder};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
g.classGroup line {
|
|
92
|
+
stroke: ${options.nodeBorder};
|
|
93
|
+
stroke-width: 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.classLabel .box {
|
|
97
|
+
stroke: none;
|
|
98
|
+
stroke-width: 0;
|
|
99
|
+
fill: ${options.mainBkg};
|
|
100
|
+
opacity: 0.5;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.classLabel .label {
|
|
104
|
+
fill: ${options.nodeBorder};
|
|
105
|
+
font-size: 10px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.relation {
|
|
109
|
+
stroke: ${options.lineColor};
|
|
110
|
+
stroke-width: ${options.strokeWidth};
|
|
111
|
+
fill: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.dashed-line{
|
|
115
|
+
stroke-dasharray: 3;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.dotted-line{
|
|
119
|
+
stroke-dasharray: 1 2;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
[id$="-compositionStart"], .composition {
|
|
123
|
+
fill: ${options.lineColor} !important;
|
|
124
|
+
stroke: ${options.lineColor} !important;
|
|
125
|
+
stroke-width: 1;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[id$="-compositionEnd"], .composition {
|
|
129
|
+
fill: ${options.lineColor} !important;
|
|
130
|
+
stroke: ${options.lineColor} !important;
|
|
131
|
+
stroke-width: 1;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[id$="-dependencyStart"], .dependency {
|
|
135
|
+
fill: ${options.lineColor} !important;
|
|
136
|
+
stroke: ${options.lineColor} !important;
|
|
137
|
+
stroke-width: 1;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
[id$="-dependencyEnd"], .dependency {
|
|
141
|
+
fill: ${options.lineColor} !important;
|
|
142
|
+
stroke: ${options.lineColor} !important;
|
|
143
|
+
stroke-width: 1;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[id$="-extensionStart"], .extension {
|
|
147
|
+
fill: transparent !important;
|
|
148
|
+
stroke: ${options.lineColor} !important;
|
|
149
|
+
stroke-width: 1;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[id$="-extensionEnd"], .extension {
|
|
153
|
+
fill: transparent !important;
|
|
154
|
+
stroke: ${options.lineColor} !important;
|
|
155
|
+
stroke-width: 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
[id$="-aggregationStart"], .aggregation {
|
|
159
|
+
fill: transparent !important;
|
|
160
|
+
stroke: ${options.lineColor} !important;
|
|
161
|
+
stroke-width: 1;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[id$="-aggregationEnd"], .aggregation {
|
|
165
|
+
fill: transparent !important;
|
|
166
|
+
stroke: ${options.lineColor} !important;
|
|
167
|
+
stroke-width: 1;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
[id$="-lollipopStart"], .lollipop {
|
|
171
|
+
fill: ${options.mainBkg} !important;
|
|
172
|
+
stroke: ${options.lineColor} !important;
|
|
173
|
+
stroke-width: 1;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
[id$="-lollipopEnd"], .lollipop {
|
|
177
|
+
fill: ${options.mainBkg} !important;
|
|
178
|
+
stroke: ${options.lineColor} !important;
|
|
179
|
+
stroke-width: 1;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.edgeTerminals {
|
|
183
|
+
font-size: 11px;
|
|
184
|
+
line-height: initial;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.classTitleText {
|
|
188
|
+
text-anchor: middle;
|
|
189
|
+
font-size: 18px;
|
|
190
|
+
fill: ${options.textColor};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.edgeLabel[data-look="neo"] {
|
|
194
|
+
background-color: ${options.edgeLabelBackground};
|
|
195
|
+
p {
|
|
196
|
+
background-color: ${options.edgeLabelBackground};
|
|
197
|
+
}
|
|
198
|
+
rect {
|
|
199
|
+
opacity: 0.5;
|
|
200
|
+
background-color: ${options.edgeLabelBackground};
|
|
201
|
+
fill: ${options.edgeLabelBackground};
|
|
202
|
+
}
|
|
203
|
+
text-align: center;
|
|
204
|
+
}
|
|
205
|
+
${getIconStyles()}
|
|
206
|
+
`,"getStyles"),styles_default=getStyles,getDir=__name((parsedItem,defaultDir="TB")=>{if(!parsedItem.doc)return defaultDir;let dir=defaultDir;for(const parsedItemDoc of parsedItem.doc)parsedItemDoc.stmt==="dir"&&(dir=parsedItemDoc.value);return dir},"getDir"),getClasses=__name(function(text,diagramObj){return diagramObj.db.getClasses()},"getClasses"),draw=__name(async function(text,id,_version,diag){log.info("REF0:"),log.info("Drawing class diagram (v3)",id);const{securityLevel,state:conf,layout}=getConfig2();diag.db.setDiagramId(id);const data4Layout=diag.db.getData(),svg=getDiagramElement(id,securityLevel);data4Layout.type=diag.type,data4Layout.layoutAlgorithm=getRegisteredLayoutAlgorithm(layout),data4Layout.nodeSpacing=(conf==null?void 0:conf.nodeSpacing)||50,data4Layout.rankSpacing=(conf==null?void 0:conf.rankSpacing)||50,data4Layout.markers=["aggregation","extension","composition","dependency","lollipop"],data4Layout.diagramId=id,await render(data4Layout,svg);const padding=8;utils_default.insertTitle(svg,"classDiagramTitleText",(conf==null?void 0:conf.titleTopMargin)??25,diag.db.getDiagramTitle()),setupViewPortForSVG(svg,padding,"classDiagram",(conf==null?void 0:conf.useMaxWidth)??!0)},"draw"),classRenderer_v3_unified_default={getClasses,draw,getDir};export{ClassDB as C,classDiagram_default as a,classRenderer_v3_unified_default as c,styles_default as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as __name,d as select}from"./mermaid.core-DNvsWVDx.js";var getDiagramElement=__name((id,securityLevel)=>{let sandboxElement;return securityLevel==="sandbox"&&(sandboxElement=select("#i"+id)),(securityLevel==="sandbox"?select(sandboxElement.nodes()[0].contentDocument.body):select("body")).select(`[id="${id}"]`)},"getDiagramElement");export{getDiagramElement as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as __name,e as configureSvgSize,l as log}from"./mermaid.core-DNvsWVDx.js";var setupViewPortForSVG=__name((svg,padding,cssDiagram,useMaxWidth)=>{svg.attr("class",cssDiagram);const{width,height,x,y}=calculateDimensionsWithPadding(svg,padding);configureSvgSize(svg,height,width,useMaxWidth);const viewBox=createViewBox(x,y,width,height,padding);svg.attr("viewBox",viewBox),log.debug(`viewBox configured: ${viewBox} with padding: ${padding}`)},"setupViewPortForSVG"),calculateDimensionsWithPadding=__name((svg,padding)=>{var _a;const bounds=((_a=svg.node())==null?void 0:_a.getBBox())||{width:0,height:0,x:0,y:0};return{width:bounds.width+padding*2,height:bounds.height+padding*2,x:bounds.x,y:bounds.y}},"calculateDimensionsWithPadding"),createViewBox=__name((x,y,width,height,padding)=>`${x-padding} ${y-padding} ${width} ${height}`,"createViewBox");export{setupViewPortForSVG as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as
|
|
1
|
+
import{_ as __name}from"./mermaid.core-DNvsWVDx.js";var getIconStyles=__name(()=>`
|
|
2
2
|
/* Font Awesome icon styling - consolidated */
|
|
3
3
|
.label-icon {
|
|
4
4
|
display: inline-block;
|
|
@@ -12,4 +12,4 @@ import{_ as e}from"./mermaid.core-CT-5crLN.js";var l=e(()=>`
|
|
|
12
12
|
stroke: revert;
|
|
13
13
|
stroke-width: revert;
|
|
14
14
|
}
|
|
15
|
-
`,"getIconStyles");export{
|
|
15
|
+
`,"getIconStyles");export{getIconStyles as g};
|