@lancc/cmark 1.1.0 → 1.2.1

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.
Files changed (139) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/LICENSE +21 -21
  3. package/README.md +54 -82
  4. package/assets/abnfDiagram-WEYOIA3C-CKV_7Upb.js +1 -0
  5. package/assets/architectureDiagram-ZHVYKT53-BvLudDvk.js +1 -0
  6. package/assets/blockDiagram-RJAE7QA3--gzkMGi2.js +1 -0
  7. package/assets/c4Diagram-XDPPPE54-ByfRiJGR.js +1 -0
  8. package/assets/chunk-2E7WHVMD-TfbC_dmh.js +1 -0
  9. package/assets/chunk-2Q5K7J3B-0YJgChVo.js +1 -0
  10. package/assets/chunk-4EMNKR2T-DHoYW7g5.js +1 -0
  11. package/assets/chunk-55XCU76K-Cq25Yw_G.js +1 -0
  12. package/assets/chunk-5VM5RSS4-CJaRXFHK.js +1 -0
  13. package/assets/chunk-JWPE2WC7-BP2iXBhe.js +1 -0
  14. package/assets/chunk-VQ5W62QI-B95zur4F.js +1 -0
  15. package/assets/chunk-XXDRQBXY-Ct0MhvQo.js +1 -0
  16. package/assets/chunk-ZCHMQSOR-C5VhW-wL.js +2 -0
  17. package/assets/classDiagram-v2-4MYWR3UA-C1G-Vkj0.js +1 -0
  18. package/assets/cose-bilkent-JH36ORCC-qIQoIBv0.js +1 -0
  19. package/assets/cynefin-EF2NZ3EQ-CR1E3YiZ.js +1 -0
  20. package/assets/cynefinDiagram-WF24UDRP-DaJFvZ3b.js +1 -0
  21. package/assets/cytoscape.esm-SjxgSg6I.js +9 -0
  22. package/assets/dagre-NK4GIZVX-BFRQhpii.js +1 -0
  23. package/assets/diagram-CBK3MWTC-DlueL6XZ.js +1 -0
  24. package/assets/diagram-I5XIIV2D-bITyafYX.js +1 -0
  25. package/assets/diagram-ODIL2UCW-Dlb4hg_-.js +1 -0
  26. package/assets/diagram-PFBEJUXE-CRfen0O7.js +1 -0
  27. package/assets/diagram-RJA3I4VV-CK-FlhGV.js +1 -0
  28. package/assets/diagram-TYUNFSNR-DmgVsxqa.js +1 -0
  29. package/assets/ebnfDiagram-V4P3TTPT-B9KGI9eQ.js +1 -0
  30. package/assets/echarts-CytsvCdp.js +25 -0
  31. package/assets/elk-QONTBCTQ-VgDftvsU.js +1 -0
  32. package/assets/erDiagram-KYQIGQAA-DkpP7sS4.js +1 -0
  33. package/assets/flowDiagram-IUGLLWBU-CRXa9Kxy.js +1 -0
  34. package/assets/ganttDiagram-R7GPNTJY-Cu2I55Wb.js +1 -0
  35. package/assets/gitGraphDiagram-PDYL7XHY-CwSo663I.js +1 -0
  36. package/assets/graph-Dz7AM1Q5.js +1 -0
  37. package/assets/index-BJ-NdQc4.js +100 -0
  38. package/assets/index-eB_q_VA3.css +1 -0
  39. package/assets/infoDiagram-MVDRKAX5-D3Qknzuo.js +1 -0
  40. package/assets/ishikawaDiagram-HPEHV2GE-9qYT75tk.js +1 -0
  41. package/assets/journeyDiagram-BOSHW7O7-DeSrJg9o.js +1 -0
  42. package/assets/kanban-definition-FNSA4HC5-DINkB6G7.js +1 -0
  43. package/assets/katex-DN8cTsI3.js +1 -0
  44. package/assets/markdown-S2mWvoE-.js +5 -0
  45. package/assets/mermaid-T_6Ze_cT.js +7 -0
  46. package/assets/mindmap-definition-6OY57UG3-DW5hqiAe.js +1 -0
  47. package/assets/pegDiagram-ECIUJNBX-BWy_tkzy.js +1 -0
  48. package/assets/pieDiagram-GNMPY74T-CniJbr6l.js +1 -0
  49. package/assets/quadrantDiagram-D57K4MC3-BVnDJkCv.js +1 -0
  50. package/assets/railroadDiagram-Y72NRBL7-BNKZpJJb.js +1 -0
  51. package/assets/requirementDiagram-EQYSW5RA-BETipHj0.js +1 -0
  52. package/assets/sankeyDiagram-SY24JHO5-ByEYqT7T.js +1 -0
  53. package/assets/sequenceDiagram-BLEHNHQU-BqCJ2tKG.js +1 -0
  54. package/assets/sizeCapture-INFHLROL-DlhrWFj-.js +1 -0
  55. package/assets/stateDiagram-v2-A6IESKWZ-DJUBWLTP.js +1 -0
  56. package/assets/swimlanes-B3ENRKFQ-D7k7tF5U.js +1 -0
  57. package/assets/swimlanesDiagram-AYQRV4AK-DoQBgB9o.js +1 -0
  58. package/assets/timeline-definition-JXYKGLGB-BCNhwnn6.js +1 -0
  59. package/assets/usecaseDiagram-WPOLBNNX-DRa_Rgl3.js +1 -0
  60. package/assets/vennDiagram-Q3Y3IDCW-Ba2eaO68.js +1 -0
  61. package/assets/wardleyDiagram-IVAIDKWA-W_i9vzY-.js +1 -0
  62. package/assets/xychartDiagram-4URNHDU4-ByfaGjvc.js +1 -0
  63. package/export-file/github-markdown.css +549 -549
  64. package/export-file/index.html +32 -32
  65. package/index.html +4 -4
  66. package/logo.png +0 -0
  67. package/package.json +1 -1
  68. package/plugin.json +8 -218
  69. package/preload/branch-bar.js +44 -2
  70. package/preload/export-css.js +59 -0
  71. package/preload/git-panel.js +102 -23
  72. package/preload/git-service.js +99 -6
  73. package/preload/host.js +130 -0
  74. package/preload/remote-setup.js +425 -0
  75. package/preload/remote-wizard.js +330 -0
  76. package/preload/rename-note.js +4 -5
  77. package/preload/services.js +6 -15
  78. package/preload/settings-panel.js +468 -356
  79. package/preload/ws-prefs.js +55 -0
  80. package/preload.js +291 -6
  81. package/assets/abnfDiagram-WEYOIA3C-BgXsTF7a.js +0 -1
  82. package/assets/architectureDiagram-ZHVYKT53-BsCWa_qC.js +0 -36
  83. package/assets/blockDiagram-RJAE7QA3-wbIxEiYN.js +0 -140
  84. package/assets/c4Diagram-XDPPPE54-5zdyxFvA.js +0 -38
  85. package/assets/chunk-2E7WHVMD-F85Lca-i.js +0 -88
  86. package/assets/chunk-2Q5K7J3B-CjpAZ0OI.js +0 -1
  87. package/assets/chunk-4EMNKR2T-C8Kbh83c.js +0 -1
  88. package/assets/chunk-55XCU76K-BINcFiLN.js +0 -1
  89. package/assets/chunk-5VM5RSS4-Diy5h2LS.js +0 -15
  90. package/assets/chunk-JWPE2WC7-BXnjDdh1.js +0 -1
  91. package/assets/chunk-VQ5W62QI-BM7ZZo1I.js +0 -1
  92. package/assets/chunk-XXDRQBXY-CW8CjB1w.js +0 -1
  93. package/assets/chunk-ZCHMQSOR-C7ATz1L1.js +0 -2
  94. package/assets/classDiagram-v2-4MYWR3UA-CMoqNk-b.js +0 -217
  95. package/assets/cose-bilkent-JH36ORCC-6rqR5iJk.js +0 -1
  96. package/assets/cynefin-EF2NZ3EQ-DypLIJxl.js +0 -141
  97. package/assets/cynefinDiagram-WF24UDRP-8b2CEBlR.js +0 -62
  98. package/assets/cytoscape.esm-CjX6Hyah.js +0 -331
  99. package/assets/dagre-NK4GIZVX-Dv6vuUbR.js +0 -4
  100. package/assets/diagram-CBK3MWTC-DJgMDeYd.js +0 -24
  101. package/assets/diagram-I5XIIV2D-BB9cMoRW.js +0 -24
  102. package/assets/diagram-ODIL2UCW-BVcRtsdy.js +0 -30
  103. package/assets/diagram-PFBEJUXE-BbGSOtJx.js +0 -3
  104. package/assets/diagram-RJA3I4VV-CzkY_8Fo.js +0 -41
  105. package/assets/diagram-TYUNFSNR-YTl5QdfL.js +0 -200
  106. package/assets/ebnfDiagram-V4P3TTPT-COVjPAjE.js +0 -1
  107. package/assets/echarts-BAPDkhe3.js +0 -61
  108. package/assets/elk-QONTBCTQ-DHsjY8Z_.js +0 -27
  109. package/assets/erDiagram-KYQIGQAA-CUAbTUl1.js +0 -99
  110. package/assets/flowDiagram-IUGLLWBU-CWsiqTQC.js +0 -213
  111. package/assets/ganttDiagram-R7GPNTJY-DetBW0Wm.js +0 -292
  112. package/assets/gitGraphDiagram-PDYL7XHY-ByrdgJmw.js +0 -106
  113. package/assets/graph-D8UmR1vK.js +0 -1
  114. package/assets/index-BLONSItV.css +0 -1
  115. package/assets/index-Cz6qaZbV.js +0 -744
  116. package/assets/infoDiagram-MVDRKAX5-BM48fjhU.js +0 -2
  117. package/assets/ishikawaDiagram-HPEHV2GE-DtHYywHZ.js +0 -70
  118. package/assets/journeyDiagram-BOSHW7O7-DJ1LiRh3.js +0 -139
  119. package/assets/kanban-definition-FNSA4HC5-DPPt8pwJ.js +0 -89
  120. package/assets/katex-CQL9J12G.js +0 -257
  121. package/assets/markdown-DVehI1Sg.js +0 -314
  122. package/assets/mermaid-C_q9pug0.js +0 -312
  123. package/assets/mindmap-definition-6OY57UG3-zbqYOEY6.js +0 -98
  124. package/assets/pegDiagram-ECIUJNBX-e7QG7TMq.js +0 -1
  125. package/assets/pieDiagram-GNMPY74T-Duf6YP0N.js +0 -39
  126. package/assets/quadrantDiagram-D57K4MC3-B2eYoUUy.js +0 -7
  127. package/assets/railroadDiagram-Y72NRBL7-BWCzPcI_.js +0 -1
  128. package/assets/requirementDiagram-EQYSW5RA-HhPMEqB1.js +0 -84
  129. package/assets/sankeyDiagram-SY24JHO5-CMUTwFBB.js +0 -40
  130. package/assets/sequenceDiagram-BLEHNHQU-C9wR2ll7.js +0 -169
  131. package/assets/sizeCapture-INFHLROL-DXfz37S6.js +0 -1
  132. package/assets/stateDiagram-v2-A6IESKWZ-D_gtonhE.js +0 -291
  133. package/assets/swimlanes-B3ENRKFQ-DdJOuuMV.js +0 -1
  134. package/assets/swimlanesDiagram-AYQRV4AK-BWt3HxHV.js +0 -8
  135. package/assets/timeline-definition-JXYKGLGB-DQsdwJe-.js +0 -120
  136. package/assets/usecaseDiagram-WPOLBNNX-DTRyFq7d.js +0 -370
  137. package/assets/vennDiagram-Q3Y3IDCW-dihYszm0.js +0 -34
  138. package/assets/wardleyDiagram-IVAIDKWA-BoPpgYfK.js +0 -78
  139. package/assets/xychartDiagram-4URNHDU4-DoLjYxeB.js +0 -7
@@ -0,0 +1 @@
1
+ import{d as t}from"./chunk-55XCU76K-Cq25Yw_G.js";import{s as e,g as n,a as s,b as a,_ as r,c as i,l as o,d as l,e as h,i as u,f as d,h as p,j as y,k as _,w as b,m as f,n as g}from"./mermaid-T_6Ze_cT.js";import"./markdown-S2mWvoE-.js";var m=function(){var t=r(function(t,e,n,s){for(n=n||{},s=t.length;s--;n[t[s]]=e);return n},"o"),e=[1,24],n=[1,25],s=[1,26],a=[1,27],i=[1,28],o=[1,63],l=[1,64],h=[1,65],u=[1,66],d=[1,67],p=[1,68],y=[1,69],_=[1,29],b=[1,30],f=[1,31],g=[1,32],m=[1,33],x=[1,34],E=[1,35],S=[1,36],C=[1,37],T=[1,38],k=[1,39],w=[1,40],O=[1,41],R=[1,42],v=[1,43],P=[1,44],N=[1,45],D=[1,46],A=[1,47],L=[1,48],I=[1,50],M=[1,51],$=[1,52],B=[1,53],j=[1,54],Y=[1,55],U=[1,56],F=[1,57],z=[1,58],X=[1,59],W=[1,60],q=[14,42],Q=[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],H=[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],V=[1,82],K=[1,83],G=[1,84],Z=[1,85],J=[12,14,42],tt=[12,14,33,42],et=[12,14,33,42,76,77,79,80],nt=[12,33],st=[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],at={trace:r(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:r(function(t,e,n,s,a,r,i){var o=r.length-1;switch(a){case 3:s.setDirection("TB");break;case 4:s.setDirection("BT");break;case 5:s.setDirection("RL");break;case 6:s.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:s.setC4Type(r[o-3]);break;case 19:s.setTitle(r[o].substring(6)),this.$=r[o].substring(6);break;case 20:s.setAccDescription(r[o].substring(15)),this.$=r[o].substring(15);break;case 21:this.$=r[o].trim(),s.setTitle(this.$);break;case 22:case 23:this.$=r[o].trim(),s.setAccDescription(this.$);break;case 28:r[o].splice(2,0,"ENTERPRISE"),s.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 29:r[o].splice(2,0,"SYSTEM"),s.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 30:s.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 31:r[o].splice(2,0,"CONTAINER"),s.addContainerBoundary(...r[o]),this.$=r[o];break;case 32:s.addDeploymentNode("node",...r[o]),this.$=r[o];break;case 33:s.addDeploymentNode("nodeL",...r[o]),this.$=r[o];break;case 34:s.addDeploymentNode("nodeR",...r[o]),this.$=r[o];break;case 35:s.popBoundaryParseStack();break;case 39:s.addPersonOrSystem("person",...r[o]),this.$=r[o];break;case 40:s.addPersonOrSystem("external_person",...r[o]),this.$=r[o];break;case 41:s.addPersonOrSystem("system",...r[o]),this.$=r[o];break;case 42:s.addPersonOrSystem("system_db",...r[o]),this.$=r[o];break;case 43:s.addPersonOrSystem("system_queue",...r[o]),this.$=r[o];break;case 44:s.addPersonOrSystem("external_system",...r[o]),this.$=r[o];break;case 45:s.addPersonOrSystem("external_system_db",...r[o]),this.$=r[o];break;case 46:s.addPersonOrSystem("external_system_queue",...r[o]),this.$=r[o];break;case 47:s.addContainer("container",...r[o]),this.$=r[o];break;case 48:s.addContainer("container_db",...r[o]),this.$=r[o];break;case 49:s.addContainer("container_queue",...r[o]),this.$=r[o];break;case 50:s.addContainer("external_container",...r[o]),this.$=r[o];break;case 51:s.addContainer("external_container_db",...r[o]),this.$=r[o];break;case 52:s.addContainer("external_container_queue",...r[o]),this.$=r[o];break;case 53:s.addComponent("component",...r[o]),this.$=r[o];break;case 54:s.addComponent("component_db",...r[o]),this.$=r[o];break;case 55:s.addComponent("component_queue",...r[o]),this.$=r[o];break;case 56:s.addComponent("external_component",...r[o]),this.$=r[o];break;case 57:s.addComponent("external_component_db",...r[o]),this.$=r[o];break;case 58:s.addComponent("external_component_queue",...r[o]),this.$=r[o];break;case 60:s.addRel("rel",...r[o]),this.$=r[o];break;case 61:s.addRel("birel",...r[o]),this.$=r[o];break;case 62:s.addRel("rel_u",...r[o]),this.$=r[o];break;case 63:s.addRel("rel_d",...r[o]),this.$=r[o];break;case 64:s.addRel("rel_l",...r[o]),this.$=r[o];break;case 65:s.addRel("rel_r",...r[o]),this.$=r[o];break;case 66:s.addRel("rel_b",...r[o]),this.$=r[o];break;case 67:r[o].splice(0,1),s.addRel("rel",...r[o]),this.$=r[o];break;case 68:s.updateElStyle("update_el_style",...r[o]),this.$=r[o];break;case 69:s.updateRelStyle("update_rel_style",...r[o]),this.$=r[o];break;case 70:s.updateLayoutConfig("update_layout_config",...r[o]),this.$=r[o];break;case 71:this.$=[r[o]];break;case 72:r[o].unshift(r[o-1]),this.$=r[o];break;case 73:case 75:this.$=r[o].trim();break;case 74:let t={};t[r[o-1].trim()]=r[o].trim(),this.$=t;break;case 76:this.$=""}},"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:e,23:n,24:s,26:a,28:i,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:y,43:23,44:_,45:b,46:f,47:g,48:m,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W},{13:70,19:20,20:21,21:22,22:e,23:n,24:s,26:a,28:i,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:y,43:23,44:_,45:b,46:f,47:g,48:m,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W},{13:71,19:20,20:21,21:22,22:e,23:n,24:s,26:a,28:i,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:y,43:23,44:_,45:b,46:f,47:g,48:m,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W},{13:72,19:20,20:21,21:22,22:e,23:n,24:s,26:a,28:i,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:y,43:23,44:_,45:b,46:f,47:g,48:m,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W},{13:73,19:20,20:21,21:22,22:e,23:n,24:s,26:a,28:i,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:y,43:23,44:_,45:b,46:f,47:g,48:m,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W},{14:[1,74]},t(q,[2,13],{43:23,29:49,30:61,32:62,20:75,34:o,36:l,37:h,38:u,39:d,40:p,41:y,44:_,45:b,46:f,47:g,48:m,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W}),t(q,[2,14]),t(Q,[2,16],{12:[1,76]}),t(q,[2,36],{12:[1,77]}),t(H,[2,19]),t(H,[2,20]),{25:[1,78]},{27:[1,79]},t(H,[2,23]),{35:80,75:81,76:V,77:K,79:G,80:Z},{35:86,75:81,76:V,77:K,79:G,80:Z},{35:87,75:81,76:V,77:K,79:G,80:Z},{35:88,75:81,76:V,77:K,79:G,80:Z},{35:89,75:81,76:V,77:K,79:G,80:Z},{35:90,75:81,76:V,77:K,79:G,80:Z},{35:91,75:81,76:V,77:K,79:G,80:Z},{35:92,75:81,76:V,77:K,79:G,80:Z},{35:93,75:81,76:V,77:K,79:G,80:Z},{35:94,75:81,76:V,77:K,79:G,80:Z},{35:95,75:81,76:V,77:K,79:G,80:Z},{35:96,75:81,76:V,77:K,79:G,80:Z},{35:97,75:81,76:V,77:K,79:G,80:Z},{35:98,75:81,76:V,77:K,79:G,80:Z},{35:99,75:81,76:V,77:K,79:G,80:Z},{35:100,75:81,76:V,77:K,79:G,80:Z},{35:101,75:81,76:V,77:K,79:G,80:Z},{35:102,75:81,76:V,77:K,79:G,80:Z},{35:103,75:81,76:V,77:K,79:G,80:Z},{35:104,75:81,76:V,77:K,79:G,80:Z},t(J,[2,59]),{35:105,75:81,76:V,77:K,79:G,80:Z},{35:106,75:81,76:V,77:K,79:G,80:Z},{35:107,75:81,76:V,77:K,79:G,80:Z},{35:108,75:81,76:V,77:K,79:G,80:Z},{35:109,75:81,76:V,77:K,79:G,80:Z},{35:110,75:81,76:V,77:K,79:G,80:Z},{35:111,75:81,76:V,77:K,79:G,80:Z},{35:112,75:81,76:V,77:K,79:G,80:Z},{35:113,75:81,76:V,77:K,79:G,80:Z},{35:114,75:81,76:V,77:K,79:G,80:Z},{35:115,75:81,76:V,77:K,79:G,80:Z},{20:116,29:49,30:61,32:62,34:o,36:l,37:h,38:u,39:d,40:p,41:y,43:23,44:_,45:b,46:f,47:g,48:m,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W},{12:[1,118],33:[1,117]},{35:119,75:81,76:V,77:K,79:G,80:Z},{35:120,75:81,76:V,77:K,79:G,80:Z},{35:121,75:81,76:V,77:K,79:G,80:Z},{35:122,75:81,76:V,77:K,79:G,80:Z},{35:123,75:81,76:V,77:K,79:G,80:Z},{35:124,75:81,76:V,77:K,79:G,80:Z},{35:125,75:81,76:V,77:K,79:G,80:Z},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(q,[2,15]),t(Q,[2,17],{21:22,19:130,22:e,23:n,24:s,26:a,28:i}),t(q,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:n,24:s,26:a,28:i,34:o,36:l,37:h,38:u,39:d,40:p,41:y,44:_,45:b,46:f,47:g,48:m,49:x,50:E,51:S,52:C,53:T,54:k,55:w,56:O,57:R,58:v,59:P,60:N,61:D,62:A,63:L,64:I,65:M,66:$,67:B,68:j,69:Y,70:U,71:F,72:z,73:X,74:W}),t(H,[2,21]),t(H,[2,22]),t(J,[2,39]),t(tt,[2,71],{75:81,35:132,76:V,77:K,79:G,80:Z}),t(et,[2,73]),{78:[1,133]},t(et,[2,75]),t(et,[2,76]),t(J,[2,40]),t(J,[2,41]),t(J,[2,42]),t(J,[2,43]),t(J,[2,44]),t(J,[2,45]),t(J,[2,46]),t(J,[2,47]),t(J,[2,48]),t(J,[2,49]),t(J,[2,50]),t(J,[2,51]),t(J,[2,52]),t(J,[2,53]),t(J,[2,54]),t(J,[2,55]),t(J,[2,56]),t(J,[2,57]),t(J,[2,58]),t(J,[2,60]),t(J,[2,61]),t(J,[2,62]),t(J,[2,63]),t(J,[2,64]),t(J,[2,65]),t(J,[2,66]),t(J,[2,67]),t(J,[2,68]),t(J,[2,69]),t(J,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(nt,[2,28]),t(nt,[2,29]),t(nt,[2,30]),t(nt,[2,31]),t(nt,[2,32]),t(nt,[2,33]),t(nt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Q,[2,18]),t(q,[2,38]),t(tt,[2,72]),t(et,[2,74]),t(J,[2,24]),t(J,[2,35]),t(st,[2,25]),t(st,[2,26],{12:[1,138]}),t(st,[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:r(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:r(function(t){var e=this,n=[0],s=[],a=[null],i=[],o=this.table,l="",c=0,h=0,u=i.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p.yy[y]=this.yy[y]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var _=d.yylloc;i.push(_);var b=d.options&&d.options.ranges;function f(){var t;return"number"!=typeof(t=s.pop()||d.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,r(function(t){n.length=n.length-2*t,a.length=a.length-t,i.length=i.length-t},"popStack"),r(f,"lex");for(var g,m,x,E,S,C,T,k,w={};;){if(m=n[n.length-1],this.defaultActions[m]?x=this.defaultActions[m]:(null==g&&(g=f()),x=o[m]&&o[m][g]),void 0===x||!x.length||!x[0]){var O="";for(S in k=[],o[m])this.terminals_[S]&&S>2&&k.push("'"+this.terminals_[S]+"'");O=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(O,{text:d.match,token:this.terminals_[g]||g,line:d.yylineno,loc:_,expected:k})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+g);switch(x[0]){case 1:n.push(g),a.push(d.yytext),i.push(d.yylloc),n.push(x[1]),g=null,h=d.yyleng,l=d.yytext,c=d.yylineno,_=d.yylloc;break;case 2:if(C=this.productions_[x[1]][1],w.$=a[a.length-C],w._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},b&&(w._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),void 0!==(E=this.performAction.apply(w,[l,h,c,p.yy,x[1],a,i].concat(u))))return E;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(w.$),i.push(w._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0},"parse")},rt=function(){return{EOF:1,parseError:r(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:r(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:r(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:r(function(t){this.unput(this.match.slice(t))},"less"),pastInput:r(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:r(function(t,e){var n,s,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in a)this[r]=a[r];return!1}return!1},"test_match"),next:r(function(){if(this.done)return this.EOF;var t,e,n,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),r=0;r<a.length;r++)if((n=this._input.match(this.rules[a[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,s=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,a[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:r(function(){var t=this.next();return t||this.lex()},"lex"),begin:r(function(t){this.conditionStack.push(t)},"begin"),popState:r(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:r(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:r(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:r(function(t){this.begin(t)},"pushState"),stateStackSize:r(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:r(function(t,e,n,s){switch(n){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:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;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: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:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58: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:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80: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 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}}}}();function it(){this.yy={}}return at.lexer=rt,r(it,"Parser"),it.prototype=at,at.Parser=it,new it}();m.parser=m;var x,E=m,S=r(t=>i()[t],"getRequiredConfig"),C=new Set(["label","descr","techn","type"]),T=r((t,e)=>{for(const[n,s]of Object.entries(e))if(void 0!==s)if("object"==typeof s){const[e,n]=Object.entries(s)[0];t[e]=C.has(e)?{text:n}:n}else t[n]=s},"assignAttributes"),k=r(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),w=[],O=[""],R="global",v="",P=[k()],N=[],D="",A=!1,L=4,I=2,M=r(function(){return x},"getC4Type"),$=r(function(t){const e=y(t,i());x=e},"setC4Type"),B=r(function(t,e,n,s,a,r,i,o,l){if(null==t||null==e||null==n||null==s)return;let c={};const h=N.find(t=>t.from===e&&t.to===n);if(h?c=h:N.push(c),c.type=t,c.from=e,c.to=n,c.label={text:s},null==a)c.techn??={text:""};else if("object"==typeof a){const[t,e]=Object.entries(a)[0];c[t]=C.has(t)?{text:e}:e}else c.techn={text:a};if(null==r)c.descr??={text:""};else if("object"==typeof r){const[t,e]=Object.entries(r)[0];c[t]=C.has(t)?{text:e}:e}else c.descr={text:r};T(c,{sprite:i,tags:o,link:l}),c.wrap=ot()},"addRel"),j=r(function(t,e,n,s,a,r,i){if(null===e||null===n)return;let o={};const l=w.find(t=>t.alias===e);if(l&&e===l.alias?o=l:(o.alias=e,w.push(o)),o.label=null==n?{text:""}:{text:n},null==s)o.descr??={text:""};else if("object"==typeof s){const[t,e]=Object.entries(s)[0];o[t]=C.has(t)?{text:e}:e}else o.descr={text:s};T(o,{sprite:a,tags:r,link:i}),o.typeC4Shape={text:t},o.parentBoundary=R,o.wrap=ot()},"addPersonOrSystem"),Y=r(function(t,e,n,s,a,r,i,o){if(null===e||null===n)return;let l={};const c=w.find(t=>t.alias===e);if(c&&e===c.alias?l=c:(l.alias=e,w.push(l)),l.label=null==n?{text:""}:{text:n},null==s)l.techn??={text:""};else if("object"==typeof s){const[t,e]=Object.entries(s)[0];l[t]=C.has(t)?{text:e}:e}else l.techn={text:s};if(null==a)l.descr??={text:""};else if("object"==typeof a){const[t,e]=Object.entries(a)[0];l[t]=C.has(t)?{text:e}:e}else l.descr={text:a};T(l,{sprite:r,tags:i,link:o}),l.wrap=ot(),l.typeC4Shape={text:t},l.parentBoundary=R},"addContainer"),U=r(function(t,e,n,s,a,r,i,o){if(null===e||null===n)return;let l={};const c=w.find(t=>t.alias===e);if(c&&e===c.alias?l=c:(l.alias=e,w.push(l)),l.label=null==n?{text:""}:{text:n},null==s)l.techn??={text:""};else if("object"==typeof s){const[t,e]=Object.entries(s)[0];l[t]=C.has(t)?{text:e}:e}else l.techn={text:s};if(null==a)l.descr??={text:""};else if("object"==typeof a){const[t,e]=Object.entries(a)[0];l[t]=C.has(t)?{text:e}:e}else l.descr={text:a};T(l,{sprite:r,tags:i,link:o}),l.wrap=ot(),l.typeC4Shape={text:t},l.parentBoundary=R},"addComponent"),F=r(function(t,e,n,s,a){if(null===t||null===e)return;let r={};const i=P.find(e=>e.alias===t);if(i&&t===i.alias?r=i:(r.alias=t,P.push(r)),r.label=null==e?{text:""}:{text:e},null==n)r.type={text:"system"};else if("object"==typeof n){const[t,e]=Object.entries(n)[0];r[t]=C.has(t)?{text:e}:e}else r.type={text:n};T(r,{tags:s,link:a}),r.parentBoundary=R,r.wrap=ot(),v=R,R=t,O.push(v)},"addPersonOrSystemBoundary"),z=r(function(t,e,n,s,a){if(null===t||null===e)return;let r={};const i=P.find(e=>e.alias===t);if(i&&t===i.alias?r=i:(r.alias=t,P.push(r)),r.label=null==e?{text:""}:{text:e},null==n)r.type={text:"container"};else if("object"==typeof n){const[t,e]=Object.entries(n)[0];r[t]=C.has(t)?{text:e}:e}else r.type={text:n};T(r,{tags:s,link:a}),r.parentBoundary=R,r.wrap=ot(),v=R,R=t,O.push(v)},"addContainerBoundary"),X=r(function(t,e,n,s,a,r,i,o){if(null===e||null===n)return;let l={};const c=P.find(t=>t.alias===e);if(c&&e===c.alias?l=c:(l.alias=e,P.push(l)),l.label=null==n?{text:""}:{text:n},null==s)l.type={text:"node"};else if("object"==typeof s){const[t,e]=Object.entries(s)[0];l[t]=C.has(t)?{text:e}:e}else l.type={text:s};if(null==a)l.descr??={text:""};else if("object"==typeof a){const[t,e]=Object.entries(a)[0];l[t]=C.has(t)?{text:e}:e}else l.descr={text:a};T(l,{tags:i,link:o}),l.nodeType=t,l.parentBoundary=R,l.wrap=ot(),v=R,R=e,O.push(v)},"addDeploymentNode"),W=r(function(){R=v,O.pop(),v=O.pop(),O.push(v)},"popBoundaryParseStack"),q=r(function(t,e,n,s,a,r,i,o,l,c,h){let u=w.find(t=>t.alias===e);if(void 0!==u||(u=P.find(t=>t.alias===e),void 0!==u)){if(null!=n)if("object"==typeof n){const[t,e]=Object.entries(n)[0];u[t]=e}else u.bgColor=n;if(null!=s)if("object"==typeof s){const[t,e]=Object.entries(s)[0];u[t]=e}else u.fontColor=s;if(null!=a)if("object"==typeof a){const[t,e]=Object.entries(a)[0];u[t]=e}else u.borderColor=a;if(null!=r)if("object"==typeof r){const[t,e]=Object.entries(r)[0];u[t]=e}else u.shadowing=r;if(null!=i)if("object"==typeof i){const[t,e]=Object.entries(i)[0];u[t]=e}else u.shape=i;if(null!=o)if("object"==typeof o){const[t,e]=Object.entries(o)[0];u[t]=e}else u.sprite=o;if(null!=l)if("object"==typeof l){const[t,e]=Object.entries(l)[0];u[t]=e}else u.techn=l;if(null!=c)if("object"==typeof c){const[t,e]=Object.entries(c)[0];u[t]=e}else u.legendText=c;if(null!=h)if("object"==typeof h){const[t,e]=Object.entries(h)[0];u[t]=e}else u.legendSprite=h}},"updateElStyle"),Q=r(function(t,e,n,s,a,r,i){const o=N.find(t=>t.from===e&&t.to===n);if(void 0!==o){if(null!=s)if("object"==typeof s){const[t,e]=Object.entries(s)[0];o[t]=e}else o.textColor=s;if(null!=a)if("object"==typeof a){const[t,e]=Object.entries(a)[0];o[t]=e}else o.lineColor=a;if(null!=r)if("object"==typeof r){const[t,e]=Object.entries(r)[0];o[t]=parseInt(e)}else o.offsetX=parseInt(r);if(null!=i)if("object"==typeof i){const[t,e]=Object.entries(i)[0];o[t]=parseInt(e)}else o.offsetY=parseInt(i)}},"updateRelStyle"),H=r(function(t,e,n){let s=L,a=I;if("object"==typeof e){const t=Object.values(e)[0];s=parseInt(t)}else s=parseInt(e);if("object"==typeof n){const t=Object.values(n)[0];a=parseInt(t)}else a=parseInt(n);s>=1&&(L=s),a>=1&&(I=a)},"updateLayoutConfig"),V=r(function(){return L},"getC4ShapeInRow"),K=r(function(){return I},"getC4BoundaryInRow"),G=r(function(){return R},"getCurrentBoundaryParse"),Z=r(function(){return v},"getParentBoundaryParse"),J=r(function(t){return null==t?w:w.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),tt=r(function(t){return w.find(e=>e.alias===t)??P.find(e=>e.alias===t)},"getC4Shape"),et=r(function(t){return Object.keys(J(t))},"getC4ShapeKeys"),nt=r(function(t){return null==t?P:P.filter(e=>e.parentBoundary===t)},"getBoundaries"),st=nt,at=r(function(){return N},"getRels"),rt=r(function(){return D},"getTitle"),it=r(function(t){A=t},"setWrap"),ot=r(function(){return A},"autoWrap"),lt=r(function(){w=[],P=[k()],v="",R="global",O=[""],N=[],O=[""],D="",A=!1,L=4,I=2},"clear"),ct=r(function(t){const e=y(t,i());D=e},"setTitle"),ht={addPersonOrSystem:j,addPersonOrSystemBoundary:F,addContainer:Y,addContainerBoundary:z,addComponent:U,addDeploymentNode:X,popBoundaryParseStack:W,addRel:B,updateElStyle:q,updateRelStyle:Q,updateLayoutConfig:H,autoWrap:ot,setWrap:it,getC4ShapeArray:J,getC4Shape:tt,getC4ShapeKeys:et,getBoundaries:nt,getBoundarys:st,getCurrentBoundaryParse:G,getParentBoundaryParse:Z,getRels:at,getTitle:rt,getC4Type:M,getC4ShapeInRow:V,getC4BoundaryInRow:K,setAccTitle:a,getAccTitle:s,getAccDescription:n,setAccDescription:e,getConfig:r(()=>S("c4"),"getConfig"),clear:lt,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:ct,setC4Type:$},ut=r(function(e,n){return t(e,n)},"drawRect"),dt=r((t,e,n,s)=>{const a=t.append("g");let r=0;for(const i of e){const t=i.textColor?i.textColor:"#444444",e=i.lineColor?i.lineColor:"#444444",o=i.offsetX?parseInt(String(i.offsetX)):0,l=i.offsetY?parseInt(String(i.offsetY)):0,c="";if(0===r){const t=a.append("line");t.attr("x1",i.startPoint.x),t.attr("y1",i.startPoint.y),t.attr("x2",i.endPoint.x),t.attr("y2",i.endPoint.y),t.attr("stroke-width","1"),t.attr("stroke",e),t.style("fill","none"),"rel_b"!==i.type&&t.attr("marker-end","url("+c+"#"+s+"-arrowhead)"),"birel"!==i.type&&"rel_b"!==i.type||t.attr("marker-start","url("+c+"#"+s+"-arrowend)"),r=-1}else{const t=a.append("path");t.attr("fill","none").attr("stroke-width","1").attr("stroke",e).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),"rel_b"!==i.type&&t.attr("marker-end","url("+c+"#"+s+"-arrowhead)"),"birel"!==i.type&&"rel_b"!==i.type||t.attr("marker-start","url("+c+"#"+s+"-arrowend)")}const h=i.label.width;let u=n.messageFont();Et(n)(i.label.text,a,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+o,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+l,h,i.label.height,{fill:t},u),i.techn&&""!==i.techn.text&&(u=n.messageFont(),Et(n)("["+i.techn.text+"]",a,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+o,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+n.messageFontSize+5+l,Math.max(h,i.techn.width),i.techn.height,{fill:t,"font-style":"italic"},u))}},"drawRels"),pt=r(function(t,e,n){const s=t.append("g"),a=e.bgColor?e.bgColor:"none",r=e.borderColor?e.borderColor:"#444444",i=e.fontColor?e.fontColor:"black";let o={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(o={"stroke-width":1});const l={x:e.x,y:e.y,fill:a,stroke:r,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:o};ut(s,l);let c=n.boundaryFont();c.fontWeight="bold",c.fontSize=c.fontSize+2,c.fontColor=i,Et(n)(e.label.text,s,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},c),e.type&&""!==e.type.text&&(c=n.boundaryFont(),c.fontColor=i,Et(n)(e.type.text,s,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},c)),e.descr&&""!==e.descr.text&&(c=n.boundaryFont(),c.fontSize=c.fontSize-2,c.fontColor=i,Et(n)(e.descr.text,s,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},c))},"drawBoundary"),yt=r(function(t,e){t.append("defs").append("symbol").attr("id",e+"-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"),_t=r(function(t,e){t.append("defs").append("symbol").attr("id",e+"-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"),bt=r(function(t,e){t.append("defs").append("symbol").attr("id",e+"-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"),ft=r(function(t,e){t.append("defs").append("marker").attr("id",e+"-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"),gt=r(function(t,e){t.append("defs").append("marker").attr("id",e+"-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"),mt=r(function(t,e){t.append("defs").append("marker").attr("id",e+"-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"),xt=r(function(t,e){const n=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);n.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"),n.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"),Et=function(){function t(t,e,n,a,r,i,o){s(e.append("text").attr("x",n+r/2).attr("y",a+i/2+5).style("text-anchor","middle").text(t),o)}function e(t,e,n,a,r,i,o,l){const{fontSize:c,fontFamily:h,fontWeight:u}=l,d=t.split(f.lineBreakRegex);for(let p=0;p<d.length;p++){const t=p*c-c*(d.length-1)/2,i=e.append("text").attr("x",n+r/2).attr("y",a).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",c).style("font-weight",u).style("font-family",h);i.append("tspan").attr("dy",t).text(d[p]).attr("alignment-baseline","mathematical"),s(i,o)}}function n(t,n,a,r,i,o,l,c){const h=n.append("switch"),u=h.append("foreignObject").attr("x",a).attr("y",r).attr("width",i).attr("height",o).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,a,r,i,0,l,c),s(u,l)}function s(t,e){for(const n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return r(t,"byText"),r(e,"byTspan"),r(n,"byFo"),r(s,"_setTextAttrs"),function(s){return"fo"===s.textPlacement?n:"old"===s.textPlacement?t:e}}(),St={drawRect:ut,drawBoundary:pt,drawRels:dt,insertArrowHead:ft,insertArrowEnd:gt,insertArrowFilledHead:mt,insertArrowCrossHead:xt,insertDatabaseIcon:yt,insertComputerIcon:_t,insertClockIcon:bt},Ct=r((t,e)=>{if("sandbox"===e){const e=_("#i"+t),n=e.node()?.contentDocument;if(!n)throw new Error(`Sandbox iframe #i${t} is missing its content document`);return{root:_(n.body),doc:n}}return{root:_("body"),doc:document}},"getDiagramRoot"),Tt=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),kt=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),wt={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},Ot=r(t=>t?wt[t.toLowerCase()]:void 0,"keywordShape"),Rt=r(t=>{const e=Ot(t.shape)??Ot(t.sprite);if(e)return e;if(t.tags)for(const s of t.tags.split(",")){const t=Ot(s.trim());if(t)return t}const n=t.typeC4Shape.text;return"person"===n||"external_person"===n?"person":kt.has(n)?"cylinder":Tt.has(n)?"h-cyl":"rounded"},"resolveNodeShape"),vt={person:"Person",system:"Software System",container:"Container",component:"Component"},Pt=r(t=>{const e=t.replace(/^external_/,"").replace(/_(db|queue)$/,"");return vt[e]??e.replace(/_/g," ")},"stereotypeLabel"),Nt=r(t=>t.startsWith("external_"),"isExternal"),Dt=r(t=>{const e=Pt(t.typeC4Shape.text);return t.techn?.text?`[${e}: ${t.techn.text}]`:`[${e}]`},"stereotypeText"),At=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap(t=>[t,`external_${t}`]),Lt=new Set(At),It=r(t=>Lt.has(t),"isC4ElementType"),Mt=r((t,e)=>{const n=t.typeC4Shape.text,s=t.bgColor??(It(n)&&e[`${n}_bg_color`]),a=t.borderColor??(It(n)&&e[`${n}_border_color`]),r=[];return s&&r.push(`fill:${s}`),a&&r.push(`stroke:${a}`),r.push(`color:${t.fontColor??"#FFFFFF"}`),r},"elementCssStyles"),$t=r((t,e,n,s,a)=>{const r=t.typeC4Shape.text,i=["c4-shape",`c4-${r}`];Nt(r)&&i.push("c4-external");const o=Rt(t),l=Mt(t,e);return"rounded"!==o&&"fr-rect"!==o||l.push("rx:12px","ry:12px"),{id:t.alias,label:t.label.text,stereotype:Dt(t),description:t.descr?.text?[t.descr.text]:void 0,labelType:"string",isGroup:!1,shape:o,cssClasses:i.join(" "),cssStyles:l,padding:n,look:s,useHtmlLabels:!1,width:a}},"buildC4Node"),Bt=0,jt=0,Yt=4,Ut=2;m.yy=ht;var Ft={},zt=class{static{r(this,"Bounds")}constructor(t){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,Xt(t.db.getConfig())}setData(t,e,n,s){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=s}updateVal(t,e,n,s){void 0===t[e]?t[e]=n:t[e]=s(n,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;const e=this.nextData.stopx,n=this.data.widthLimit;let s=this.nextData.startx===this.nextData.stopx?e+t.margin:e+2*t.margin,a=s+t.width,r=this.nextData.starty+2*t.margin,i=r+t.height;(s>=n||a>=n||this.nextData.cnt>Yt)&&(s=this.nextData.startx+t.margin+Ft.nextLinePaddingX,r=this.nextData.stopy+2*t.margin,this.nextData.stopx=a=s+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=r+t.height,this.nextData.cnt=1),t.x=s,t.y=r,this.updateVal(this.data,"startx",s,Math.min),this.updateVal(this.data,"starty",r,Math.min),this.updateVal(this.data,"stopx",a,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",s,Math.min),this.updateVal(this.nextData,"starty",r,Math.min),this.updateVal(this.nextData,"stopx",a,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){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},Xt(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},Xt=r(function(t){h(Ft,t),t?.fontFamily&&(Ft.personFontFamily=Ft.systemFontFamily=Ft.messageFontFamily=t.fontFamily),t?.fontSize&&(Ft.personFontSize=Ft.systemFontSize=Ft.messageFontSize=t.fontSize),t?.fontWeight&&(Ft.personFontWeight=Ft.systemFontWeight=Ft.messageFontWeight=t.fontWeight)},"setConf"),Wt=r(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),qt=r(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function Qt(t,e,n,s,a){const r=e[t];if(!r.width)if(n)r.text=b(r.text,a,s),r.textLines=r.text.split(f.lineBreakRegex).length,r.width=a,r.height=g(r.text,s);else{const t=r.text.split(f.lineBreakRegex);r.textLines=t.length;let e=0;r.height=0,r.width=0;for(const n of t)r.width=Math.max(d(n,s),r.width),e=g(n,s),r.height=r.height+e}return r}r(Qt,"calcC4ShapeTextWH");var Ht=r(function(t,e,n){const s=n.data.startx,a=n.data.starty;e.x=s,e.y=a,e.width=n.data.stopx-s,e.height=n.data.stopy-a,e.intersect=t=>u.rect({x:e.x+e.width/2,y:e.y+e.height/2,width:e.width,height:e.height},t),e.label.y=Ft.c4ShapeMargin-35;const r=e.wrap&&Ft.wrap,i=Wt(Ft);i.fontSize=i.fontSize+2,i.fontWeight="bold";const o=d(e.label.text,i);Qt("label",e,r,i,o),St.drawBoundary(t,e,Ft)},"drawBoundary"),Vt=r(async function(t,e,n,s){const a=i(),o=a.look??"classic",l={config:a},c=e.attr("id")??"",h=s.map(t=>n[Number(t)]),u=r(t=>{const e=t.shape?p[t.shape]:void 0;if(!e)throw new Error(`C4: no shape handler for "${t.shape}"`);return e},"shapeHandlerFor");await Promise.all(h.map(async t=>{const n=$t(t,Ft,Ft.c4ShapePadding,o,Ft.width);n.domId=`${c}-${n.id}`;const s=await u(n)(e,n,l);t.width=n.width??Ft.width,t.height=n.height??Ft.height,t.margin=Ft.c4ShapeMargin,s.remove()}));for(const r of h)t.insert(r);await Promise.all(h.map(async t=>{const n=$t(t,Ft,Ft.c4ShapePadding,o,Ft.width);n.domId=`${c}-${n.id}`,n.x=t.x+t.width/2,n.y=t.y+t.height/2;const s=e.append("g").attr("transform",`translate(${t.x+t.width/2}, ${t.y+t.height/2})`);await u(n)(s,n,l),t.intersect=n.intersect})),t.bumpLastMargin(Ft.c4ShapeMargin)},"drawC4ShapeArray"),Kt=class{static{r(this,"Point")}constructor(t,e){this.x=t,this.y=e}},Gt=r(function(t,e){if(!t.intersect)throw new Error(`C4 element "${t.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);const{x:n,y:s}=t.intersect(e);return new Kt(n,s)},"getIntersectPoint"),Zt=r(function(t,e){const n={x:0,y:0};n.x=e.x+e.width/2,n.y=e.y+e.height/2;const s=Gt(t,n);n.x=t.x+t.width/2,n.y=t.y+t.height/2;return{startPoint:s,endPoint:Gt(e,n)}},"getIntersectPoints"),Jt=r(function(t,e,n,s,a){const r=s.db.getC4Type();let i=0;for(const o of e){i+=1;const t=o.wrap&&Ft.wrap,e=qt(Ft);"C4Dynamic"===r&&(o.label.text=i+": "+o.label.text);let s=d(o.label.text,e);Qt("label",o,t,e,s),o.techn&&""!==o.techn.text&&(s=d(o.techn.text,e),Qt("techn",o,t,e,s)),o.descr&&""!==o.descr.text&&(s=d(o.descr.text,e),Qt("descr",o,t,e,s));const a=n(o.from),l=n(o.to);if(!a||!l)throw new Error(`C4 rel "${o.from}" -> "${o.to}" references an unknown shape or boundary`);const c=Zt(a,l);if(!c.startPoint||!c.endPoint)throw new Error(`Could not calculate intersection points for rel "${o.from}" -> "${o.to}"`);o.startPoint=c.startPoint,o.endPoint=c.endPoint}St.drawRels(t,e,Ft,a)},"drawRels");async function te(t,e,n,s,a){const r=a.db,i=new zt(a);i.data.widthLimit=n.data.widthLimit/Math.min(Ut,s.length);for(const[o,l]of s.entries()){let s=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=s,s=l.image.Y+l.image.height);const c=l.wrap&&Ft.wrap,h=Wt(Ft);h.fontSize=h.fontSize+2,h.fontWeight="bold";const u=Qt("label",l,c,h,i.data.widthLimit);if(u.Y=s+8,s=u.Y+u.height,l.type&&""!==l.type.text){l.type.text="["+l.type.text+"]";const t=Qt("type",l,c,Wt(Ft),i.data.widthLimit);t.Y=s+5,s=t.Y+t.height}if(l.descr&&""!==l.descr.text){const t=Wt(Ft);t.fontSize=t.fontSize-2;const e=Qt("descr",l,c,t,i.data.widthLimit);e.Y=s+20,s=e.Y+e.height}if(0==o||o%Ut===0){const t=n.data.startx+Ft.diagramMarginX,e=n.data.stopy+Ft.diagramMarginY+s;i.setData(t,t,e,e)}else{const t=i.data.stopx!==i.data.startx?i.data.stopx+Ft.diagramMarginX:i.data.startx,e=i.data.starty;i.setData(t,t,e,e)}i.name=l.alias;const d=r.getC4ShapeArray(l.alias),p=r.getC4ShapeKeys(l.alias);p.length>0&&await Vt(i,t,d,p),e=l.alias;const y=r.getBoundaries(e);y.length>0&&await te(t,e,i,y,a),"global"!==l.alias&&Ht(t,l,i),n.data.stopy=Math.max(i.data.stopy+Ft.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(i.data.stopx+Ft.c4ShapeMargin,n.data.stopx),Bt=Math.max(Bt,n.data.stopx),jt=Math.max(jt,n.data.stopy)}}r(te,"drawInsideBoundary");var ee={drawPersonOrSystemArray:Vt,drawBoundary:Ht,setConf:Xt,draw:r(async function(t,e,n,s){Ft=S("c4");const a=i().securityLevel,{root:r}=Ct(e,a),c=s.db;c.setWrap(Ft.wrap),Yt=c.getC4ShapeInRow(),Ut=c.getC4BoundaryInRow(),o.debug(`C:${JSON.stringify(Ft,null,2)}`);const h=r.select(`[id="${e}"]`);St.insertComputerIcon(h,e),St.insertDatabaseIcon(h,e),St.insertClockIcon(h,e);const u=new zt(s);u.setData(Ft.diagramMarginX,Ft.diagramMarginX,Ft.diagramMarginY,Ft.diagramMarginY),u.data.widthLimit=screen.availWidth,Bt=Ft.diagramMarginX,jt=Ft.diagramMarginY;const d=c.getTitle(),p=c.getBoundaries("");await te(h,"",u,p,s),St.insertArrowHead(h,e),St.insertArrowEnd(h,e),St.insertArrowCrossHead(h,e),St.insertArrowFilledHead(h,e),Jt(h,c.getRels(),c.getC4Shape,s,e),u.data.stopx=Bt,u.data.stopy=jt;const y=u.data,_=y.startx,b=y.starty,f=jt-b+2*Ft.diagramMarginY,g=Bt-_,m=g+2*Ft.diagramMarginX;d&&h.append("text").text(d).attr("x",g/2-4*Ft.diagramMarginX).attr("y",b+Ft.diagramMarginY),l(h,f,m,Ft.useMaxWidth);const x=d?60:0;h.attr("viewBox",_-Ft.diagramMarginX+" -"+(Ft.diagramMarginY+x)+" "+m+" "+(f+x)),o.debug("models:",y)},"draw")},ne=r(()=>{const t=i().c4??{},e=new CSSStyleSheet;for(const n of At){const s=e.cssRules[e.insertRule(`.c4-shape.c4-${n} .label {}`,e.cssRules.length)],a=t[`${n}FontFamily`],r=t[`${n}FontSize`],i=t[`${n}FontWeight`];a&&s.style.setProperty("font-family",a),r&&s.style.setProperty("font-size","number"==typeof r?`${r}px`:r),i&&s.style.setProperty("font-weight",String(i))}return[...e.cssRules].filter(t=>t.style.length>0).map(t=>` ${t.cssText}`).join("\n")},"elementFontStyles"),se={parser:E,db:ht,renderer:ee,styles:r(t=>`.person {\n stroke: ${t.personBorder};\n fill: ${t.personBkg};\n }\n${ne()}\n\n /* The element font colour is set inline per element (default white); the\n label text takes it via currentColor. */\n .c4-shape .label,\n .c4-shape .label text {\n color: inherit;\n fill: currentColor;\n }\n /* Structurizr typography: bold name, smaller stereotype/type and description lines. */\n .c4-shape .label .c4-name {\n font-weight: bold;\n }\n .c4-shape .label .c4-type {\n font-size: 0.75em;\n }\n .c4-shape .label .c4-descr {\n font-size: 0.82em;\n }\n .c4-shape .basic,\n .c4-shape rect,\n .c4-shape path,\n .c4-shape circle,\n .c4-shape ellipse,\n .c4-shape line {\n stroke-width: 2px;\n }\n`,"getStyles"),init:r(({c4:t,wrap:e})=>{ee.setConf(t),ht.setWrap(e)},"init")};export{se as diagram};
@@ -0,0 +1 @@
1
+ import{_ as e,l as t,Q as n,L as r,z as i,W as a,d as o,j as l,c as s}from"./mermaid-T_6Ze_cT.js";var d="",m="",c="",h=[],p=new Map,u=e(e=>l(e,s()),"sanitizeText"),g=e(e=>{switch(e.type){case"terminal":return{...e,value:u(e.value)};case"nonterminal":return{...e,name:u(e.name)};case"sequence":return{...e,elements:e.elements.map(g)};case"choice":return{...e,alternatives:e.alternatives.map(g)};case"optional":return{...e,element:g(e.element)};case"repetition":return{...e,element:g(e.element),separator:e.separator?g(e.separator):void 0};case"special":return{...e,text:u(e.text)}}},"sanitizeAstNode"),T=e(()=>{d="",m="",c="",h.length=0,p.clear(),i(),t.debug("[Railroad] Database cleared")},"clear"),f=e(e=>{d=u(e),t.debug("[Railroad] Title set:",e)},"setTitle"),x=e(()=>d,"getTitle"),w={clear:T,setTitle:f,getTitle:x,addRule:e(e=>{const n={...e,name:u(e.name),definition:g(e.definition),comment:e.comment?u(e.comment):void 0};t.debug("[Railroad] Adding rule:",n.name),p.has(n.name)&&t.warn(`[Railroad] Rule '${n.name}' is already defined. Overwriting.`),h.push(n),p.set(n.name,n)},"addRule"),getRules:e(()=>h,"getRules"),getRule:e(e=>p.get(e),"getRule"),setAccTitle:e(e=>{m=u(e).replace(/^\s+/g,""),t.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),getAccTitle:e(()=>m,"getAccTitle"),setAccDescription:e(e=>{c=u(e).replace(/\n\s+/g,"\n"),t.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),getAccDescription:e(()=>c,"getAccDescription"),setDiagramTitle:f,getDiagramTitle:x},k={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},C=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,F=/^[\w "',.-]+$/,S=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),$=e(e=>!!e&&Object.keys(e).every(e=>"railroad"===e||S.has(e)),"isRailroadStyleOptions"),y=e(e=>e?"railroad"in e&&e.railroad?e.railroad:$(e)?e:{}:{},"extractRailroadOverrides"),b=e(e=>{if(!e||$(e))return{};const{railroad:t,svgId:n,theme:r,look:i,...a}=e;return a},"extractThemeOverrides"),R=e((e,t)=>{if("string"!=typeof e)return t;const n=e.trim();return C.test(n)?n:t},"sanitizeColorValue"),v=e((e,t)=>{if("string"!=typeof e)return t;const n=e.trim();return F.test(n)?n:t},"sanitizeFontFamilyValue"),z=e((e,t)=>{const n="number"==typeof e?e:"string"==typeof e?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:t},"sanitizeNumberValue"),N=e(e=>{const t="number"==typeof e?e:"string"==typeof e?Number.parseFloat(e):Number.NaN;return Number.isFinite(t)&&t>0?t:void 0},"parseThemeFontSize"),M=e(e=>{const t=v(e.fontFamily,k.fontFamily),n=N(e.fontSize)??k.fontSize;return{...k,fontFamily:t,fontSize:n,terminalFill:R(e.secondBkg??e.secondaryColor,k.terminalFill),terminalStroke:R(e.secondaryBorderColor??e.lineColor,k.terminalStroke),terminalTextColor:R(e.secondaryTextColor??e.textColor,k.terminalTextColor),nonTerminalFill:R(e.mainBkg??e.background,k.nonTerminalFill),nonTerminalStroke:R(e.primaryBorderColor??e.lineColor,k.nonTerminalStroke),nonTerminalTextColor:R(e.primaryTextColor??e.textColor,k.nonTerminalTextColor),lineColor:R(e.lineColor,k.lineColor),markerFill:R(e.lineColor,k.markerFill),commentFill:R(e.labelBackground??e.tertiaryColor,k.commentFill),commentStroke:R(e.tertiaryBorderColor??e.lineColor,k.commentStroke),commentTextColor:R(e.tertiaryTextColor??e.textColor,k.commentTextColor),specialFill:R(e.tertiaryColor??e.secondaryColor,k.specialFill),specialStroke:R(e.tertiaryBorderColor??e.secondaryBorderColor,k.specialStroke),ruleNameColor:R(e.titleColor??e.textColor,k.ruleNameColor)}},"buildThemeDefaults"),A=e(e=>{const t=r(),n={...a(),...t.themeVariables??{},...b(e)},i=M(n),o={...t.railroad??{},...y(e)};return{compactMode:o.compactMode??i.compactMode,padding:z(o.padding,i.padding),verticalSeparation:z(o.verticalSeparation,i.verticalSeparation),horizontalSeparation:z(o.horizontalSeparation,i.horizontalSeparation),arcRadius:z(o.arcRadius,i.arcRadius),fontSize:z(o.fontSize,i.fontSize),fontFamily:v(o.fontFamily,i.fontFamily),terminalFill:R(o.terminalFill,i.terminalFill),terminalStroke:R(o.terminalStroke,i.terminalStroke),terminalTextColor:R(o.terminalTextColor,i.terminalTextColor),nonTerminalFill:R(o.nonTerminalFill,i.nonTerminalFill),nonTerminalStroke:R(o.nonTerminalStroke,i.nonTerminalStroke),nonTerminalTextColor:R(o.nonTerminalTextColor,i.nonTerminalTextColor),lineColor:R(o.lineColor,i.lineColor),strokeWidth:z(o.strokeWidth,i.strokeWidth),markerFill:R(o.markerFill,i.markerFill),commentFill:R(o.commentFill,i.commentFill),commentStroke:R(o.commentStroke,i.commentStroke),commentTextColor:R(o.commentTextColor,i.commentTextColor),specialFill:R(o.specialFill,i.specialFill),specialStroke:R(o.specialStroke,i.specialStroke),ruleNameColor:R(o.ruleNameColor,i.ruleNameColor),showMarkers:o.showMarkers??i.showMarkers,markerRadius:z(o.markerRadius,i.markerRadius)}},"buildRailroadStyleOptions"),B=e(e=>{const{fontFamily:t,fontSize:n,terminalFill:r,terminalStroke:i,terminalTextColor:a,nonTerminalFill:o,nonTerminalStroke:l,nonTerminalTextColor:s,lineColor:d,strokeWidth:m,markerFill:c,commentFill:h,commentStroke:p,commentTextColor:u,specialFill:g,specialStroke:T,ruleNameColor:f}=A(e);return`\n .railroad-diagram {\n font-family: ${t};\n font-size: ${n}px;\n }\n\n .railroad-terminal rect {\n fill: ${r};\n stroke: ${i};\n stroke-width: ${m}px;\n }\n\n .railroad-terminal text {\n fill: ${a};\n font-family: ${t};\n font-size: ${n}px;\n text-anchor: middle;\n dominant-baseline: middle;\n }\n\n .railroad-nonterminal rect {\n fill: ${o};\n stroke: ${l};\n stroke-width: ${m}px;\n }\n\n .railroad-nonterminal text {\n fill: ${s};\n font-family: ${t};\n font-size: ${n}px;\n text-anchor: middle;\n dominant-baseline: middle;\n }\n\n .railroad-line {\n stroke: ${d};\n stroke-width: ${m}px;\n fill: none;\n }\n\n .railroad-start circle,\n .railroad-end circle {\n fill: ${c};\n }\n\n .railroad-comment ellipse {\n fill: ${h};\n stroke: ${p};\n stroke-width: ${m}px;\n }\n\n .railroad-comment text {\n fill: ${u};\n font-style: italic;\n font-family: ${t};\n font-size: ${n}px;\n text-anchor: middle;\n dominant-baseline: middle;\n }\n\n .railroad-special rect {\n fill: ${g};\n stroke: ${T};\n stroke-width: ${m}px;\n stroke-dasharray: 5,3;\n }\n\n .railroad-special text {\n fill: ${s};\n font-family: ${t};\n font-size: ${n}px;\n text-anchor: middle;\n dominant-baseline: middle;\n }\n\n .railroad-rule-name {\n font-weight: bold;\n fill: ${f};\n font-family: ${t};\n font-size: ${n}px;\n }\n\n .railroad-group {\n /* Grouping container, no specific styles */\n }\n`},"getStyles"),E=class{constructor(){this.d=""}static{e(this,"PathBuilder")}moveTo(e,t){return this.d+=`M ${e} ${t} `,this}lineTo(e,t){return this.d+=`L ${e} ${t} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,t,n,r,i,a,o){return this.d+=`A ${e} ${t} ${n} ${r?1:0} ${i?1:0} ${a} ${o} `,this}build(){return this.d.trim()}},D=class{constructor(e,t=A()){this.textCache=new Map,this.svg=e,this.config=t}static{e(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);const t=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),n=t.node().getBBox(),r={width:n.width,height:n.height};return t.remove(),this.textCache.set(e,r),r}renderTerminal(e,t){const n=this.measureText(t),r=n.width+2*this.config.padding,i=n.height+2*this.config.padding,a=e.append("g").attr("class","railroad-terminal");return a.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",i).attr("rx",10).attr("ry",10),a.append("text").attr("x",r/2).attr("y",i/2).text(t),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderNonTerminal(e,t){const n=this.measureText(t),r=n.width+2*this.config.padding,i=n.height+2*this.config.padding,a=e.append("g").attr("class","railroad-nonterminal");return a.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",i),a.append("text").attr("x",r/2).attr("y",i/2).text(t),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderSequence(e,t){const n=t.map(t=>this.renderExpression(e,t));let r=0,i=0,a=0;for(const s of n)r+=s.dimensions.width,i=Math.max(i,s.dimensions.up),a=Math.max(a,s.dimensions.down);r+=(n.length-1)*this.config.horizontalSeparation;const o=e.append("g").attr("class","railroad-sequence");let l=0;for(let s=0;s<n.length;s++){const e=n[s],t=i-e.dimensions.up;if(o.node().appendChild(e.element).setAttribute("transform",`translate(${l}, ${t})`),s<n.length-1){const t=l+e.dimensions.width,n=t+this.config.horizontalSeparation,r=i;o.append("path").attr("class","railroad-line").attr("d",(new E).moveTo(t,r).lineTo(n,r).build())}l+=e.dimensions.width+this.config.horizontalSeparation}return{element:o.node(),dimensions:{width:r,height:i+a,up:i,down:a}}}renderChoice(e,t){const n=t.map(t=>this.renderExpression(e,t));let r=0,i=0;for(const m of n)r=Math.max(r,m.dimensions.width),i+=m.dimensions.height;i+=(n.length-1)*this.config.verticalSeparation;const a=this.config.arcRadius,o=r+4*a,l=e.append("g").attr("class","railroad-choice");let s=0;const d=i/2;for(const m of n){const e=s,t=e+m.dimensions.up,n=2*a+(r-m.dimensions.width)/2;l.node().appendChild(m.element).setAttribute("transform",`translate(${n}, ${e})`);const i=new E,c=t>d;t===d?i.moveTo(0,d).lineTo(n,t):i.moveTo(0,d).arcTo(a,a,0,!1,c,a,d+(c?a:-a)).lineTo(a,t-(c?a:-a)).arcTo(a,a,0,!1,!c,2*a,t).lineTo(n,t),l.append("path").attr("class","railroad-line").attr("d",i.build());const h=new E,p=n+m.dimensions.width,u=o-2*a;t===d?h.moveTo(p,t).lineTo(o,d):h.moveTo(p,t).lineTo(u,t).arcTo(a,a,0,!1,!c,o-a,t+(c?-a:a)).lineTo(o-a,d+(c?a:-a)).arcTo(a,a,0,!1,c,o,d),l.append("path").attr("class","railroad-line").attr("d",h.build()),s+=m.dimensions.height+this.config.verticalSeparation}return{element:l.node(),dimensions:{width:o,height:i,up:d,down:i-d}}}renderOptional(e,t){const n=this.renderExpression(e,t),r=this.config.arcRadius,i=2*r,a=n.dimensions.width+4*r,o=n.dimensions.height+i,l=e.append("g").attr("class","railroad-optional"),s=2*r,d=i;l.node().appendChild(n.element).setAttribute("transform",`translate(${s}, ${d})`);const m=d+n.dimensions.up,c=(new E).moveTo(0,m).lineTo(2*r,m);l.append("path").attr("class","railroad-line").attr("d",c.build());const h=(new E).moveTo(s+n.dimensions.width,m).lineTo(a,m);l.append("path").attr("class","railroad-line").attr("d",h.build());const p=(new E).moveTo(0,m).arcTo(r,r,0,!1,!1,r,m-r).lineTo(r,r).arcTo(r,r,0,!1,!0,2*r,0).lineTo(a-2*r,0).arcTo(r,r,0,!1,!0,a-r,r).lineTo(a-r,m-r).arcTo(r,r,0,!1,!1,a,m);return l.append("path").attr("class","railroad-line").attr("d",p.build()),{element:l.node(),dimensions:{width:a,height:o,up:m,down:o-m}}}renderRepetition(e,t,n){const r=this.renderExpression(e,t),i=this.config.arcRadius,a=2*i,o=r.dimensions.width+4*i,l=0===n,s=r.dimensions.height+a+(l?a:0),d=e.append("g").attr("class","railroad-repetition"),m=2*i,c=l?a:0;d.node().appendChild(r.element).setAttribute("transform",`translate(${m}, ${c})`);const h=c+r.dimensions.up;d.append("path").attr("class","railroad-line").attr("d",(new E).moveTo(0,h).lineTo(2*i,h).build()),d.append("path").attr("class","railroad-line").attr("d",(new E).moveTo(m+r.dimensions.width,h).lineTo(o,h).build());const p=c+r.dimensions.height+i,u=(new E).moveTo(m+r.dimensions.width,h).arcTo(i,i,0,!1,!0,m+r.dimensions.width+i,h+i).lineTo(m+r.dimensions.width+i,p).arcTo(i,i,0,!1,!0,m+r.dimensions.width,p+i).lineTo(2*i,p+i).arcTo(i,i,0,!1,!0,i,p).lineTo(i,h+i).arcTo(i,i,0,!1,!0,2*i,h);if(d.append("path").attr("class","railroad-line").attr("d",u.build()),l){const e=(new E).moveTo(0,h).arcTo(i,i,0,!1,!1,i,h-i).lineTo(i,i).arcTo(i,i,0,!1,!0,2*i,0).lineTo(o-2*i,0).arcTo(i,i,0,!1,!0,o-i,i).lineTo(o-i,h-i).arcTo(i,i,0,!1,!1,o,h);d.append("path").attr("class","railroad-line").attr("d",e.build())}return{element:d.node(),dimensions:{width:o,height:s,up:h,down:s-h}}}renderSpecial(e,t){const n=this.measureText("? "+t+" ?"),r=n.width+2*this.config.padding,i=n.height+2*this.config.padding,a=e.append("g").attr("class","railroad-special");return a.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",i),a.append("text").attr("x",r/2).attr("y",i/2).text("? "+t+" ?"),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderExpression(e,t){switch(t.type){case"terminal":return this.renderTerminal(e,t.value);case"nonterminal":return this.renderNonTerminal(e,t.name);case"sequence":return this.renderSequence(e,t.elements);case"choice":return this.renderChoice(e,t.alternatives);case"optional":return this.renderOptional(e,t.element);case"repetition":return this.renderRepetition(e,t.element,t.min);case"special":return this.renderSpecial(e,t.text);default:throw new Error(`Unknown node type: ${t.type}`)}}renderRule(e,t){const n=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${t})`),r=e.name+" =",i=this.measureText(r).width+20,a=i+20,o=n.append("g"),l=this.renderExpression(o,e.definition),s=Math.max(20,l.dimensions.up),d=s-l.dimensions.up;o.attr("transform",`translate(${a}, ${d})`);n.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",s).text(r);n.append("g").attr("class","railroad-start").append("circle").attr("cx",i).attr("cy",s).attr("r",this.config.markerRadius);return n.append("g").attr("class","railroad-end").append("circle").attr("cx",a+l.dimensions.width+10).attr("cy",s).attr("r",this.config.markerRadius),n.append("path").attr("class","railroad-line").attr("d",(new E).moveTo(i+this.config.markerRadius,s).lineTo(a,s).build()),n.append("path").attr("class","railroad-line").attr("d",(new E).moveTo(a+l.dimensions.width,s).lineTo(a+l.dimensions.width+10-this.config.markerRadius,s).build()),{height:Math.max(40,d+l.dimensions.height+2*this.config.padding),width:a+l.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let t=this.config.padding,n=0;for(const r of e){const e=this.renderRule(r,t);t+=e.height+this.config.verticalSeparation,n=Math.max(n,e.width)}return{width:n+2*this.config.padding,height:t+this.config.padding}}},O=e((e,t,n)=>{o(e,t.height,t.width,n),e.attr("viewBox",`0 0 ${t.width} ${t.height}`)},"configureRailroadSvgSize"),W={draw:e((e,i,a)=>{t.debug("[Railroad] Rendering diagram\n"+e);try{const e=n(i);e.attr("class","railroad-diagram");const a=r().railroad,o=a?.useMaxWidth??!0,l=w.getRules();if(t.debug(`[Railroad] Rendering ${l.length} rules`),0===l.length)return t.warn("[Railroad] No rules to render"),void O(e,{height:100,width:200},o);const s=new D(e,A()).renderDiagram(l);O(e,s,o),t.debug("[Railroad] Render complete")}catch(o){throw t.error("[Railroad] Render error:",o),o}},"draw")};export{w as d,B as g,W as r};
@@ -0,0 +1 @@
1
+ import{_ as t}from"./mermaid-T_6Ze_cT.js";var i=class{constructor(t){this.init=t,this.records=this.init()}static{t(this,"ImperativeState")}reset(){this.records=this.init()}};export{i as I};
@@ -0,0 +1 @@
1
+ import{ax as t,_ as n}from"./mermaid-T_6Ze_cT.js";var e=1e-5,o=1e-6;function r(t){const n=[];for(let e=0;e<t.length-1;e++)n.push({a:t[e],b:t[e+1]});return n}function s(t,n,e,r){const s=n.x-t.x,u=n.y-t.y,i=r.x-e.x,a=r.y-e.y,c=s*a-u*i;if(0===c)return null;const f=e.x-t.x,l=e.y-t.y,p=(f*a-l*i)/c,d=(f*u-l*s)/c;return p<=o||p>=.999999||d<=o||d>=.999999?null:{point:{x:t.x+p*s,y:t.y+p*u},tA:p,tB:d}}function u(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}function i(t,n,e){if("rounded"!==t.curve)return!1;const o=t.points,r=o[n],s=o[n+1];if(!r||!s)return!1;const u=Math.hypot(s.x-r.x,s.y-r.y),i=e*u,a=n>0?h(o[n-1],r,s,5):null;if(a&&i<a.cutLen)return!0;const c=n+2<o.length?h(r,s,o[n+2],5):null;return null!==c&&u-i<c.cutLen}function a(t){const n=[];for(let e=0;e<t.length;e++){const o=t[e],a=r(o.points);for(let c=e+1;c<t.length;c++){const e=t[c],f=r(e.points);for(const[t,r]of a.entries())for(const[a,c]of f.entries()){const f=s(r.a,r.b,c.a,c.b);if(!f)continue;if(i(o,t,f.tA)||i(e,a,f.tB))continue;const l=u(r);!!(l!==u(c))&&l?n.push({jumpEdgeId:o.id,otherEdgeId:e.id,segIndex:t,t:f.tA,point:f.point}):n.push({jumpEdgeId:e.id,otherEdgeId:o.id,segIndex:a,t:f.tB,point:f.point})}}}return n}function c(t){const n=Math.round(1e3*t)/1e3;return Number.isInteger(n),`${n}`}function f(t){return`${c(t.x)},${c(t.y)}`}function l(t){const n=t.b.x-t.a.x,e=t.b.y-t.a.y;return Math.abs(n)>=Math.abs(e)?n>=0?1:0:e>=0?1:0}function p(n,e){if(n.length<2)return n.map(t=>({...t}));const o=n.map(t=>({...t})),r=e.arrowTypeStart&&t[e.arrowTypeStart];if(r){const t=n[0],e=n[1],s=Math.atan2(e.y-t.y,e.x-t.x);o[0].x=t.x+r*Math.cos(s),o[0].y=t.y+r*Math.sin(s)}const s=e.arrowTypeEnd&&t[e.arrowTypeEnd];if(s){const t=n.length,e=n[t-2],r=n[t-1],u=Math.atan2(r.y-e.y,r.x-e.x);o[t-1].x=r.x-s*Math.cos(u),o[t-1].y=r.y-s*Math.sin(u)}return o}function d(t,n,e,o,r){const s=t.point.x,u=t.point.y,i={x:s-n*t.r,y:u-e*t.r},a={x:s+n*t.r,y:u+e*t.r},l=[`L${f(i)}`];return"arc"===r?l.push(`A${c(t.r)},${c(t.r)} 0 0 ${o} ${f(a)}`):l.push(`M${f(a)}`),l}function h(t,n,o,r){const s=n.x-t.x,u=n.y-t.y,i=o.x-n.x,a=o.y-n.y,c=Math.hypot(s,u),f=Math.hypot(i,a);if(c<e||f<e)return null;const l=s/c,p=u/c,d=i/f,h=a/f,y=l*d+p*h,g=Math.max(-1,Math.min(1,y)),x=Math.acos(g);if(x<e||Math.abs(Math.PI-x)<e)return null;const M=Math.min(r/Math.sin(x/2),c/2,f/2);return{startX:n.x-l*M,startY:n.y-p*M,endX:n.x+d*M,endY:n.y+h*M,ctrlX:n.x,ctrlY:n.y,cutLen:M}}function y(t,n,e){const o=t.points;if(o.length<2)return"";const s=p(o,t),u="rounded"===t.curve,i=r(s),a=new Map;for(const r of n){const t=i[r.segIndex];if(!t)continue;const n=Math.hypot(t.b.x-t.a.x,t.b.y-t.a.y),o=a.get(r.segIndex)??[];o.push({t:r.t,point:r.point,d:r.t*n,r:e.jumpRadius}),a.set(r.segIndex,o)}const y=[`M${f(s[0])}`];for(let r=0;r<i.length;r++){const t=i[r],n=Math.hypot(t.b.x-t.a.x,t.b.y-t.a.y),o=0===n?0:(t.b.x-t.a.x)/n,p=0===n?0:(t.b.y-t.a.y)/n,g=l(t);let x=0;if(u&&r>0){const t=h(s[r-1],s[r],s[r+1]??s[r],5);t&&(x=t.cutLen)}let M=n,b=null;u&&r<i.length-1&&(b=h(s[r],s[r+1],s[r+2]??s[r+1],5),b&&(M=n-b.cutLen));const m=.6*e.jumpRadius,$=[...a.get(r)??[]].sort((t,n)=>t.t-n.t).filter(t=>{const n=Math.min(t.d-x,M-t.d)-2;return t.r=Math.min(t.r,n),t.r>=m});for(let e=0;e<$.length-1;e++){const t=$[e+1].d-$[e].d;if($[e].r+$[e+1].r>t){const n=t/2;$[e].r=Math.min($[e].r,n),$[e+1].r=Math.min($[e+1].r,n)}}for(const r of $)r.r<m||y.push(...d(r,o,p,g,e.jumpStyle));u&&b?(y.push(`L${c(b.startX)},${c(b.startY)}`),y.push(`Q${c(b.ctrlX)},${c(b.ctrlY)} ${c(b.endX)},${c(b.endY)}`)):y.push(`L${f(t.b)}`)}return y.join(" ")}function g(t){return/^[\d\s+,.LMelm-]*$/.test(t)}function x(t){return!t||("linear"===t||"rounded"===t||"step"===t||"stepBefore"===t||"stepAfter"===t)}function M(t){if(!t)return null;try{const n="function"==typeof atob?atob(t):Buffer.from(t,"base64").toString(),e=JSON.parse(n);if(!Array.isArray(e))return null;const o=[];for(const t of e)t&&"number"==typeof t.x&&"number"==typeof t.y&&o.push({x:t.x,y:t.y});return o.length>=2?o:null}catch{return null}}function b(t,n,e){if(!e.enabled)return;const o=t.node();if(!o)return;const r=new Map;for(const a of n)r.set(a.id,a);const s=new Map;for(const a of o.querySelectorAll("path[data-id]")){const t=a.getAttribute("data-id");null===t||s.has(t)||s.set(t,a)}const u=[];for(const a of n){const t=s.get(a.id);if(!t)continue;const n=M(t.getAttribute("data-points"))??a.points;u.push({...a,points:n})}const i=a(u);if(0===i.length)return;const c=new Map;for(const a of i){const t=c.get(a.jumpEdgeId)??[];t.push(a),c.set(a.jumpEdgeId,t)}for(const a of u){const t=c.get(a.id);if(!t||0===t.length)continue;const n=r.get(a.id),o=n?.curve;if(void 0!==o&&!x(o))continue;const u=s.get(a.id);if(!u)continue;if(void 0===o){if(!g(u.getAttribute("d")??""))continue}const i=u.getAttribute("style")??"",f=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(i),l=f?Number.parseFloat(f[1]):null,p=f?Number.parseFloat(f[2]):null,d=y(a,t,e);if(u.setAttribute("d",d),null!==l&&null!==p&&"function"==typeof u.getTotalLength){const t=u.getTotalLength(),n=`0 ${l} ${Math.max(0,t-l-p)} ${p}`,e=i.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${n};`).replace(/;\s*;+/g,";");u.setAttribute("style",e)}}}n(r,"buildSegmentList"),n(s,"segmentIntersection"),n(u,"isHorizontalSeg"),n(i,"crossingSitsInRoundedCorner"),n(a,"findEdgeIntersections"),n(c,"fmt"),n(f,"pointToString"),n(l,"getArcSweepFlag"),n(p,"applyMarkerOffsets"),n(d,"emitJump"),n(h,"computeRoundedCorner"),n(y,"rewriteEdgePath"),n(g,"isStraightPath"),n(x,"curveSupportsLineHops"),n(M,"decodeDataPoints"),n(b,"applyLineJumpsToSvg");export{b as a};
@@ -0,0 +1 @@
1
+ import{_ as t,k as a,a7 as r,$ as e}from"./mermaid-T_6Ze_cT.js";var s=t((t,a)=>{const r=t.append("rect");if(r.attr("x",a.x),r.attr("y",a.y),r.attr("fill",a.fill),r.attr("stroke",a.stroke),r.attr("width",a.width),r.attr("height",a.height),a.name&&r.attr("name",a.name),a.rx&&r.attr("rx",a.rx),a.ry&&r.attr("ry",a.ry),void 0!==a.attrs)for(const e in a.attrs)r.attr(e,a.attrs[e]);return a.class&&r.attr("class",a.class),r},"drawRect"),n=t((t,a)=>{const r={x:a.startx,y:a.starty,width:a.stopx-a.startx,height:a.stopy-a.starty,fill:a.fill,stroke:a.stroke,class:"rect"};s(t,r).lower()},"drawBackgroundRect"),i=t((t,a)=>{const e=a.text.replace(r," "),s=t.append("text");s.attr("x",a.x),s.attr("y",a.y),s.attr("class","legend"),s.style("text-anchor",a.anchor),a.class&&s.attr("class",a.class);const n=s.append("tspan");return n.attr("x",a.x+2*a.textMargin),n.text(e),s},"drawText"),l=t((t,a,r,s)=>{const n=t.append("image");n.attr("x",a),n.attr("y",r);const i=e.sanitizeUrl(s);n.attr("xlink:href",i)},"drawImage"),o=t((t,a,r,s)=>{const n=t.append("use");n.attr("x",a),n.attr("y",r);const i=e.sanitizeUrl(s);n.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),x=t(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),d=t(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),c=t(()=>{let t=a(".mermaidTooltip");return t.empty()&&(t=a("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip");export{n as a,x as b,c,s as d,o as e,l as f,d as g,i as h};
@@ -0,0 +1 @@
1
+ import{_ as n}from"./mermaid-T_6Ze_cT.js";var e=n(()=>"\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n","getIconStyles");export{e as g};
@@ -0,0 +1 @@
1
+ import{_ as c}from"./mermaid-T_6Ze_cT.js";function t(c,t){c.accDescr&&t.setAccDescription?.(c.accDescr),c.accTitle&&t.setAccTitle?.(c.accTitle),c.title&&t.setDiagramTitle?.(c.title)}c(t,"populateCommonDb");export{t as p};
@@ -0,0 +1 @@
1
+ import{_ as t,d as i,l as e}from"./mermaid-T_6Ze_cT.js";var o=t((t,o,s,d)=>{t.attr("class",s);const{width:r,height:n,x:g,y:w}=a(t,o);i(t,n,r,d);const x=h(g,w,r,n,o);t.attr("viewBox",x),e.debug(`viewBox configured: ${x} with padding: ${o}`)},"setupViewPortForSVG"),a=t((t,i)=>{const e=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:e.width+2*i,height:e.height+2*i,x:e.x,y:e.y}},"calculateDimensionsWithPadding"),h=t((t,i,e,o,a)=>`${t-a} ${i-a} ${e} ${o}`,"createViewBox");export{o as s};
@@ -0,0 +1 @@
1
+ import{_ as e,k as o}from"./mermaid-T_6Ze_cT.js";var t=e((e,t)=>{let a;"sandbox"===t&&(a=o("#i"+e));return o("sandbox"===t?a.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)},"getDiagramElement");export{t as g};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./sizeCapture-INFHLROL-DlhrWFj-.js","./mermaid-T_6Ze_cT.js","./markdown-S2mWvoE-.js"])))=>i.map(i=>d[i]);
2
+ import{_ as e,l as t,ah as n,ae as a,ay as r,az as s,aA as o,af as i,ad as d,ai as c,aB as l,aC as g,aj as u,c as f,aD as h,L as p,aE as w,aF as m,aG as b,aH as y,u as v}from"./mermaid-T_6Ze_cT.js";import{G as L}from"./graph-Dz7AM1Q5.js";function C(e,{edgePathsClass:t="edges edgePaths"}={}){const n=e.insert("g").attr("class","root");return{clusters:n.insert("g").attr("class","clusters"),edgePaths:n.insert("g").attr("class",t),edgeLabels:n.insert("g").attr("class","edgeLabels"),nodes:n.insert("g").attr("class","nodes"),rootGroups:n}}async function E(e,t,n){if(t.label){const{shapeSvg:a,bbox:r}=await y(e,void 0===n?t:{...t,width:n});t.labelBBox={width:r.width,height:r.height},a.remove()}else t.labelBBox={width:0,height:0}}async function N(e,t,n){const r=await a(e,t,n),s=r.node()?.getBBox()??{width:0,height:0};return t.width=s.width,t.height=s.height,r}function x(e,t,n){let a=e;const r=new Set;for(;a;){if(a.dir)return a.dir;if(!a.parentId||r.has(a.parentId))break;r.add(a.parentId),a=t.get(a.parentId)}return n}async function I(e,t,n={}){const a=new L({multigraph:!0,compound:!0}),r=[...t.edges],s=f(),o=C(e),{edgeLabels:i,nodes:d}=o,c=new Map,g=new Map(t.nodes.map(e=>[e.id,e])),p=t.direction,w=null!=e.node();await Promise.all(t.nodes.map(async e=>{if(e.isGroup){if(w){const t=n.unwrapGroupLabels&&"markdown"!==e.labelType;await E(d,e,t?Number.POSITIVE_INFINITY:void 0)}a.setNode(e.id,{...e})}else{if(w){const t=await N(d,e,{config:s,dir:x(e,g,p)});c.set(e.id,t)}a.setNode(e.id,{...e})}}));for(const f of r){w&&l(f)&&await u(i,f),a.setEdge(f.start,f.end,{...f},f.id);t.edges.some(e=>e.id===f.id)||t.edges.push(f)}if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:n}=await h(async()=>{const{captureNodeSizes:e}=await(import("./sizeCapture-INFHLROL-DlhrWFj-.js"));return{captureNodeSizes:e}},__vite__mapDeps([0,1,2]),import.meta.url);n(e,t)}return{graph:a,groups:o,nodeElements:c}}e(C,"createLayoutElementGroups"),e(E,"measureGroupLabel"),e(N,"insertMeasuredNode"),e(x,"resolveNodeDir"),e(I,"createGraphWithElements");var D=new Map,S=new Map,k=new Map,R=e(()=>{S.clear(),k.clear(),D.clear()},"clear"),P=e((e,n)=>{const a=S.get(n)||[];return t.trace("In isDescendant",n," ",e," = ",a.includes(e)),a.includes(e)},"isDescendant"),T=e((e,n)=>{const a=S.get(n)||[];return t.info("Descendants of ",n," is ",a),t.info("Edge is ",e),e.v!==n&&e.w!==n&&(a?a.includes(e.v)||P(e.v,n)||P(e.w,n)||a.includes(e.w):(t.debug("Tilt, ",n,",not in descendants"),!1))},"edgeInCluster"),B=e((e,n,a,r)=>{t.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),t.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(s=>{if(n.children(s).length>0)B(s,n,a,r);else{const o=n.node(s);t.info("cp ",s," to ",r," with parent ",e),a.setNode(s,o),r!==n.parent(s)&&(t.debug("Setting parent",s,n.parent(s)),a.setParent(s,n.parent(s))),e!==r&&s!==e?(t.debug("Setting parent",s,e),a.setParent(s,e)):(t.info("In copy ",e,"root",r,"data",n.node(e),r),t.debug("Not Setting parent for node=",s,"cluster!==rootId",e!==r,"node!==clusterId",s!==e));const i=n.edges(s);t.debug("Copying Edges",i),i.forEach(s=>{t.info("Edge",s);const o=n.edge(s.v,s.w,s.name);t.info("Edge data",o,r);try{T(s,r)?(t.info("Copying as ",s.v,s.w,o,s.name),a.setEdge(s.v,s.w,o,s.name),t.info("newGraph edges ",a.edges(),a.edge(a.edges()[0]))):t.info("Skipping copy of edge ",s.v,"--\x3e",s.w," rootId: ",r," clusterId:",e)}catch(i){t.error(i)}})}t.debug("Removing node",s),n.removeNode(s)})},"copy"),G=e((e,t)=>{const n=t.children(e);let a=[...n];for(const r of n)k.set(r,e),a=[...a,...G(r,t)];return a},"extractDescendants"),X=e((e,t,n)=>{const a=e.edges().filter(e=>e.v===t||e.w===t),r=e.edges().filter(e=>e.v===n||e.w===n),s=a.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=r.map(e=>({v:e.v,w:e.w}));return s.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},"findCommonEdges"),M=e((e,n,a)=>{const r=n.children(e);if(t.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const t of r){const e=M(t,n,a),r=X(n,a,e);if(e){if(!(r.length>0))return e;s=e}}return s},"findNonClusterChild"),_=e(e=>D.has(e)&&D.get(e).externalConnections&&D.has(e)?D.get(e).id:e,"getAnchorId"),O=e((e,n)=>{if(!e||n>10)t.debug("Opting out, no graph ");else{t.debug("Opting in, graph "),e.nodes().forEach(function(n){e.children(n).length>0&&(t.debug("Cluster identified",n," Replacement id in edges: ",M(n,e,n)),S.set(n,G(n,e)),D.set(n,{id:M(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const a=e.children(n),r=e.edges();a.length>0?(t.debug("Cluster identified",n,S),r.forEach(e=>{P(e.v,n)^P(e.w,n)&&(t.debug("Edge: ",e," leaves cluster ",n),t.debug("Descendants of XXX ",n,": ",S.get(n)),D.get(n).externalConnections=!0)})):t.debug("Not a cluster ",n,S)});for(let t of D.keys()){const n=D.get(t).id,a=e.parent(n);a!==t&&D.has(a)&&!D.get(a).externalConnections&&(D.get(t).id=a);const r=e.edges().some(e=>e.v===t);if(n&&D.get(t)?.externalConnections&&r&&z(e,n,t)){const a=$(e,t,e.parent(n));a&&(D.get(t).id=a)}}e.edges().forEach(function(n){const a=e.edge(n);t.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),t.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let r=n.v,s=n.w;if(t.debug("Fix XXX",D,"ids:",n.v,n.w,"Translating: ",D.get(n.v)," --- ",D.get(n.w)),D.get(n.v)||D.get(n.w)){if(t.debug("Fixing and trying - removing XXX",n.v,n.w,n.name),r=_(n.v),s=_(n.w),e.removeEdge(n.v,n.w,n.name),r!==n.v){const t=e.parent(r);D.get(t).externalConnections=!0,a.fromCluster=n.v}if(s!==n.w){const t=e.parent(s);D.get(t).externalConnections=!0,a.toCluster=n.w}t.debug("Fix Replacing with XXX",r,s,n.name),e.setEdge(r,s,a,n.name)}}),A(e,0),t.trace(D)}},"adjustClustersAndEdges"),A=e((e,n)=>{if(n>10)return void t.error("Bailing out");let a=e.nodes(),r=!1;for(const t of a){const n=e.children(t);r=r||n.length>0}if(r){t.debug("Nodes = ",a,n);for(const r of a)if(t.debug("Extracting node",r,D,D.has(r)&&!D.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",n),D.has(r))if(!D.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){t.debug("Cluster without external connections, without a parent and with children",r,n);let a="TB"===e.graph().rankdir?"LR":"TB";D.get(r)?.clusterData?.dir&&(a=D.get(r).clusterData.dir,t.debug("Fixing dir",D.get(r).clusterData.dir,a));const s=new L({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});B(r,e,s,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:D.get(r).clusterData,label:D.get(r).label,graph:s})}else t.debug("Cluster ** ",r," **not meeting the criteria !externalConnections:",!D.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),n),t.debug(D);else t.debug("Not a cluster",r,n);a=e.nodes(),t.debug("New list of nodes",a);for(const r of a){const a=e.node(r);t.debug(" Now next level",r,a),a?.clusterNode&&A(a.graph,n+1)}}else t.debug("Done, no node has children",e.nodes())},"extractor"),F=e((e,t)=>{if(0===t.length)return[];let n=Object.assign([],t);return t.forEach(t=>{const a=e.children(t),r=F(e,a);n=[...n,...r]}),n},"sorter"),j=e(e=>F(e,e.children()),"sortNodesByHierarchy"),z=e((e,t,n)=>{let a=e.parent(t);for(;a&&a!==n;){const t=D.get(a);if(t&&!t.externalConnections)return!0;a=e.parent(a)}return!1},"isNodeInExtractableCluster"),$=e((e,t,n)=>{const a=e.children(t)??[];for(const r of a){if(r===n||P(r,n))continue;const a=M(r,e,t);if(a&&!z(e,a,t))return a}return null},"findSafeAnchorNode");function H({prepareLayout:t,measureLayout:a,runLayoutCore:r,paintLayout:s,afterPaint:o,paintOptions:i}){const d=a??J;return e(async function(e,a,c,l){const g=a.select("g");(c?.insertMarkers??n)(g,e.markers,e.type,e.diagramId),W();const u={element:g,helpers:c,options:l};u.preparedLayout=await(t?.(e,u));const f=await d(e,u),h=await r(e,u),p={...u,measure:f};s?await s(e,p,h):await V(e,p,i),await(o?.(e,p,h))},"render")}function W(){r(),s(),o(),R()}async function J(e,{element:t},n){return await I(t,e,n)}async function V(e,t,n={}){const{measure:a}=t,{groups:r}=a;for(const o of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(o,t)||await Y(r,o,t,n);const s=K(e.nodes);for(const o of e.edges)Q(o,n)||await U(r,o,s,e,n,t)}async function Y(e,t,n,a){t.clusterNode?i(t):q(t,n,a)?await d(e.clusters,t):i(t)}function q(e,t,n){return!0===e.isGroup&&(n.isCluster?.(e,t)??!0)}function K(e){const t=new Map;for(const n of e)n?.id&&t.set(n.id,n);return t}function Q(e,t){return e.isLayoutOnly||Boolean(t.skipEdge?.(e))}async function U(e,t,n,a,r,s){const o=c(e.edgePaths,{...t},r.clusterDb??new Map,a.type,Z(t.start,t,n,s,r),Z(t.end,t,n,s,r),a.diagramId,ee(t,r),a.layoutAlgorithm);l(t)&&(g.has(t.id)||await u(e.edgeLabels,t),te(t,o))}function Z(e,t,n,a,r){return r.getEdgeNode?.(e,t,a)??(e?n.get(e)??{}:{})}function ee(e,t){return"function"==typeof t.skipIntersect?t.skipIntersect(e):t.skipIntersect??!1}function te(e,t){const n=t?.updatedPath??t?.originalPath,a=p(),{subGraphTitleTotalMargin:r}=w({flowchart:a.flowchart??{}});if(e.label){const n=g.get(e.id),{x:a,y:s}=m(e,t);n.attr("transform",`translate(${a}, ${s+r/2})`)}for(const[s,o]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(o){const{x:t,y:a}=ae(e,s,n);b.get(e.id)[s].attr("transform",`translate(${t}, ${a})`)}}e(H,"createCommonLayoutRenderer"),e(W,"clearLayoutRenderState"),e(J,"defaultMeasureLayout"),e(V,"paintLayoutData"),e(Y,"paintLayoutNode"),e(q,"shouldPaintAsCluster"),e(K,"buildNodeLookup"),e(Q,"shouldSkipPaintEdge"),e(U,"paintLayoutEdge"),e(Z,"getRenderedNode"),e(ee,"shouldSkipIntersect"),e(te,"positionRenderedEdgeLabel");var ne={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function ae(e,t,n){const a=e.terminalLabelCenters?.[t];if(a)return{...a};if(!n)return{x:e.x,y:e.y};const r=t.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return v.calcTerminalLabelPosition(r?10:0,ne[t],n)}e(ae,"terminalLabelTranslate");export{O as a,C as b,H as c,J as d,D as e,M as f,N as i,j as s};
@@ -0,0 +1 @@
1
+ import{g as t}from"./chunk-5VM5RSS4-CJaRXFHK.js";import{g as e}from"./chunk-XXDRQBXY-Ct0MhvQo.js";import{s}from"./chunk-VQ5W62QI-B95zur4F.js";import{_ as i,l as n,c as a,p as r,r as u,u as l,k as o,b as c,a as h,s as p,g as d,q as A,t as y,m,z as g,y as C,B as b,C as k,D as E,E as f,j as T,a5 as F}from"./mermaid-T_6Ze_cT.js";import{c as D}from"./chunk-55XCU76K-Cq25Yw_G.js";import{p as B}from"./markdown-S2mWvoE-.js";var _=function(){var t=i(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,18],s=[1,19],n=[1,20],a=[1,41],r=[1,26],u=[1,42],l=[1,24],o=[1,25],c=[1,32],h=[1,33],p=[1,34],d=[1,45],A=[1,35],y=[1,36],m=[1,37],g=[1,38],C=[1,27],b=[1,28],k=[1,29],E=[1,30],f=[1,31],T=[1,44],F=[1,46],D=[1,43],B=[1,47],_=[1,9],$=[1,8,9],S=[1,58],N=[1,59],L=[1,60],x=[1,61],I=[1,62],v=[1,63],O=[1,64],w=[1,8,9,41],R=[1,77],M=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],P=[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],G=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],z=[13,60,68,69,70,71,72,86,100,102,103],K=[1,103],j=[1,121],Y=[1,117],Q=[1,113],W=[1,119],X=[1,114],H=[1,115],q=[1,116],V=[1,118],J=[1,120],Z=[22,50,60,61,82,86,87,88,89,90],tt=[1,128],et=[12,39],st=[1,8,9,39,41,44,46],it=[1,8,9,22],nt=[1,153],at=[1,8,9,61],rt=[1,8,9,22,50,60,61,82,86,87,88,89,90],ut={trace:i(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],[38,3],[40,1],[40,2],[40,3],[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:i(function(t,e,s,i,n,a,r){var u=a.length-1;switch(n){case 8:this.$=a[u-1];break;case 9:case 10:case 13:case 15:case 46:this.$=a[u];break;case 11:case 14:this.$=a[u-2]+"."+a[u];break;case 12:case 16:case 110:this.$=a[u-1]+a[u];break;case 17:case 18:this.$=a[u-1]+"~"+a[u]+"~";break;case 19:i.addRelation(a[u]);break;case 20:a[u-1].title=i.cleanupLabel(a[u]),i.addRelation(a[u-1]);break;case 31:this.$=a[u].trim(),i.setAccTitle(this.$);break;case 32:case 33:this.$=a[u].trim(),i.setAccDescription(this.$);break;case 34:i.addClassesToNamespace(a[u-3],a[u-1][0],a[u-1][1]),i.popNamespace();break;case 35:i.addClassesToNamespace(a[u-4],a[u-1][0],a[u-1][1]),i.popNamespace();break;case 36:this.$=i.addNamespace(a[u]);break;case 37:this.$=i.addNamespace(a[u-1],a[u]);break;case 38:this.$=[[a[u]],[]];break;case 39:this.$=[[a[u-1]],[]];break;case 40:a[u][0].unshift(a[u-2]),this.$=a[u];break;case 41:this.$=[[],[a[u]]];break;case 42:this.$=[[],[a[u-1]]];break;case 43:a[u][1].unshift(a[u-2]),this.$=a[u];break;case 44:case 45:this.$=[[],[]];break;case 48:i.setCssClass(a[u-2],a[u]);break;case 49:i.addMembers(a[u-3],a[u-1]);break;case 51:i.setCssClass(a[u-5],a[u-3]),i.addMembers(a[u-5],a[u-1]);break;case 52:i.addAnnotation(a[u-3],a[u-1]);break;case 53:i.addAnnotation(a[u-6],a[u-4]),i.addMembers(a[u-6],a[u-1]);break;case 54:i.addAnnotation(a[u-5],a[u-3]);break;case 55:this.$=a[u],i.addClass(a[u]);break;case 56:this.$=a[u-1],i.addClass(a[u-1]),i.setClassLabel(a[u-1],a[u]);break;case 60:i.addAnnotation(a[u],a[u-2]);break;case 61:case 74:case 107:this.$=[a[u]];break;case 62:a[u].push(a[u-1]),this.$=a[u];break;case 63:case 65:case 66:break;case 64:i.addMember(a[u-1],i.cleanupLabel(a[u]));break;case 67:this.$={id1:a[u-2],id2:a[u],relation:a[u-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:a[u-3],id2:a[u],relation:a[u-1],relationTitle1:a[u-2],relationTitle2:"none"};break;case 69:this.$={id1:a[u-3],id2:a[u],relation:a[u-2],relationTitle1:"none",relationTitle2:a[u-1]};break;case 70:this.$={id1:a[u-4],id2:a[u],relation:a[u-2],relationTitle1:a[u-3],relationTitle2:a[u-1]};break;case 71:this.$=i.addNote(a[u],a[u-1]);break;case 72:this.$=i.addNote(a[u]);break;case 73:this.$=a[u-2],i.defineClass(a[u-1],a[u]);break;case 75:this.$=a[u-2].concat([a[u]]);break;case 76:i.setDirection("TB");break;case 77:i.setDirection("BT");break;case 78:i.setDirection("RL");break;case 79:i.setDirection("LR");break;case 80:this.$={type1:a[u-2],type2:a[u],lineType:a[u-1]};break;case 81:this.$={type1:"none",type2:a[u],lineType:a[u-1]};break;case 82:this.$={type1:a[u-1],type2:"none",lineType:a[u]};break;case 83:this.$={type1:"none",type2:"none",lineType:a[u]};break;case 84:this.$=i.relationType.AGGREGATION;break;case 85:this.$=i.relationType.EXTENSION;break;case 86:this.$=i.relationType.COMPOSITION;break;case 87:this.$=i.relationType.DEPENDENCY;break;case 88:this.$=i.relationType.LOLLIPOP;break;case 89:this.$=i.lineType.LINE;break;case 90:this.$=i.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[u-2],i.setClickEvent(a[u-1],a[u]);break;case 92:case 98:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 93:this.$=a[u-2],i.setLink(a[u-1],a[u]);break;case 94:this.$=a[u-3],i.setLink(a[u-2],a[u-1],a[u]);break;case 95:this.$=a[u-3],i.setLink(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 96:this.$=a[u-4],i.setLink(a[u-3],a[u-2],a[u]),i.setTooltip(a[u-3],a[u-1]);break;case 99:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1],a[u]);break;case 100:this.$=a[u-4],i.setClickEvent(a[u-3],a[u-2],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 101:this.$=a[u-3],i.setLink(a[u-2],a[u]);break;case 102:this.$=a[u-4],i.setLink(a[u-3],a[u-1],a[u]);break;case 103:this.$=a[u-4],i.setLink(a[u-3],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 104:this.$=a[u-5],i.setLink(a[u-4],a[u-2],a[u]),i.setTooltip(a[u-4],a[u-1]);break;case 105:this.$=a[u-2],i.setCssStyle(a[u-1],a[u]);break;case 106:i.setCssClass(a[u-1],a[u]);break;case 108:a[u-2].push(a[u]),this.$=a[u-2]}},"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:e,35:s,37:n,38:22,42:a,43:23,46:r,48:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:y,64:m,65:g,75:C,76:b,78:k,82:E,83:f,86:T,100:F,102:D,103:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(_,[2,5],{8:[1,48]}),{8:[1,49]},t($,[2,19],{22:[1,50]}),t($,[2,21]),t($,[2,22]),t($,[2,23]),t($,[2,24]),t($,[2,25]),t($,[2,26]),t($,[2,27]),t($,[2,28]),t($,[2,29]),t($,[2,30]),{34:[1,51]},{36:[1,52]},t($,[2,33]),t($,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:S,69:N,70:L,71:x,72:I,73:v,74:O}),{39:[1,65]},t(w,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t($,[2,65]),t($,[2,66]),{16:69,60:d,86:T,100:F,102:D},{16:39,17:40,19:70,60:d,86:T,100:F,102:D,103:B},{16:39,17:40,19:71,60:d,86:T,100:F,102:D,103:B},{16:39,17:40,19:72,60:d,86:T,100:F,102:D,103:B},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:d,86:T,100:F,102:D,103:B},{13:R,55:76},{58:78,60:[1,79]},t($,[2,76]),t($,[2,77]),t($,[2,78]),t($,[2,79]),t(M,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:d,86:T,100:F,102:D,103:B}),t(M,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:d,86:T,100:F,102:D,103:B},{16:39,17:40,19:87,60:d,86:T,100:F,102:D,103:B},t(P,[2,133]),t(P,[2,134]),t(P,[2,135]),t(P,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(_,[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:e,35:s,37:n,42:a,46:r,48:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:y,64:m,65:g,75:C,76:b,78:k,82:E,83:f,86:T,100:F,102:D,103:B}),{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:e,35:s,37:n,38:22,42:a,43:23,46:r,48:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:y,64:m,65:g,75:C,76:b,78:k,82:E,83:f,86:T,100:F,102:D,103:B},t($,[2,20]),t($,[2,31]),t($,[2,32]),{13:[1,91],16:39,17:40,19:90,60:d,86:T,100:F,102:D,103:B},{53:92,66:56,67:57,68:S,69:N,70:L,71:x,72:I,73:v,74:O},t($,[2,64]),{67:93,73:v,74:O},t(G,[2,83],{66:94,68:S,69:N,70:L,71:x,72:I}),t(U,[2,84]),t(U,[2,85]),t(U,[2,86]),t(U,[2,87]),t(U,[2,88]),t(z,[2,89]),t(z,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:a,43:23,48:u,54:c,56:h},{16:100,60:d,86:T,100:F,102:D},{41:[1,102],45:101,51:K},{16:104,60:d,86:T,100:F,102:D},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:j,50:Y,59:110,60:Q,82:W,84:111,85:112,86:X,87:H,88:q,89:V,90:J},{60:[1,122]},{13:R,55:123},t(w,[2,72]),t(w,[2,138]),{22:j,50:Y,59:124,60:Q,61:[1,125],82:W,84:111,85:112,86:X,87:H,88:q,89:V,90:J},t(Z,[2,74]),{16:39,17:40,19:126,60:d,86:T,100:F,102:D,103:B},t(M,[2,16]),t(M,[2,17]),t(M,[2,18]),{11:127,12:tt,39:[2,36]},t(et,[2,9],{16:85,17:86,15:130,18:[1,129],60:d,86:T,100:F,102:D,103:B}),t(et,[2,10]),t(st,[2,55],{11:131,12:tt}),t(_,[2,7]),{9:[1,132]},t(it,[2,67]),{16:39,17:40,19:133,60:d,86:T,100:F,102:D,103:B},{13:[1,135],16:39,17:40,19:134,60:d,86:T,100:F,102:D,103:B},t(G,[2,82],{66:136,68:S,69:N,70:L,71:x,72:I}),t(G,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:a,43:23,48:u,54:c,56:h},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(w,[2,48],{39:[1,142]}),{41:[1,143]},t(w,[2,50]),{41:[2,61],45:144,51:K},{47:[1,145]},{16:39,17:40,19:146,60:d,86:T,100:F,102:D,103:B},t($,[2,91],{13:[1,147]}),t($,[2,93],{13:[1,149],77:[1,148]}),t($,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t($,[2,105],{61:nt}),t(at,[2,107],{85:154,22:j,50:Y,60:Q,82:W,86:X,87:H,88:q,89:V,90:J}),t(rt,[2,109]),t(rt,[2,111]),t(rt,[2,112]),t(rt,[2,113]),t(rt,[2,114]),t(rt,[2,115]),t(rt,[2,116]),t(rt,[2,117]),t(rt,[2,118]),t(rt,[2,119]),t($,[2,106]),t(w,[2,71]),t($,[2,73],{61:nt}),{60:[1,155]},t(M,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:d,86:T,100:F,102:D,103:B},t(et,[2,12]),t(st,[2,56]),{1:[2,4]},t(it,[2,69]),t(it,[2,68]),{16:39,17:40,19:158,60:d,86:T,100:F,102:D,103:B},t(G,[2,80]),t(w,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:a,43:23,48:u,54:c,56:h},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:a,43:23,48:u,54:c,56:h},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:a,43:23,48:u,54:c,56:h},{45:163,51:K},t(w,[2,49]),{41:[2,62]},t(w,[2,52],{39:[1,164]}),t($,[2,60]),t($,[2,92]),t($,[2,94]),t($,[2,95],{77:[1,165]}),t($,[2,98]),t($,[2,99],{13:[1,166]}),t($,[2,101],{13:[1,168],77:[1,167]}),{22:j,50:Y,60:Q,82:W,84:169,85:112,86:X,87:H,88:q,89:V,90:J},t(rt,[2,110]),t(Z,[2,75]),{14:[1,170]},t(et,[2,11]),t(it,[2,70]),t(w,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:K},t($,[2,96]),t($,[2,100]),t($,[2,102]),t($,[2,103],{77:[1,174]}),t(at,[2,108],{85:154,22:j,50:Y,60:Q,82:W,86:X,87:H,88:q,89:V,90:J}),t(st,[2,8]),t(w,[2,51]),{41:[1,175]},t(w,[2,54]),t($,[2,104]),t(w,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:i(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:i(function(t){var e=this,s=[0],n=[],a=[null],r=[],u=this.table,l="",o=0,c=0,h=r.slice.call(arguments,1),p=Object.create(this.lexer),d={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(d.yy[A]=this.yy[A]);p.setInput(t,d.yy),d.yy.lexer=p,d.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;r.push(y);var m=p.options&&p.options.ranges;function g(){var t;return"number"!=typeof(t=n.pop()||p.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i(function(t){s.length=s.length-2*t,a.length=a.length-t,r.length=r.length-t},"popStack"),i(g,"lex");for(var C,b,k,E,f,T,F,D,B={};;){if(b=s[s.length-1],this.defaultActions[b]?k=this.defaultActions[b]:(null==C&&(C=g()),k=u[b]&&u[b][C]),void 0===k||!k.length||!k[0]){var _="";for(f in D=[],u[b])this.terminals_[f]&&f>2&&D.push("'"+this.terminals_[f]+"'");_=p.showPosition?"Parse error on line "+(o+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[C]||C)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==C?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(_,{text:p.match,token:this.terminals_[C]||C,line:p.yylineno,loc:y,expected:D})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+C);switch(k[0]){case 1:s.push(C),a.push(p.yytext),r.push(p.yylloc),s.push(k[1]),C=null,c=p.yyleng,l=p.yytext,o=p.yylineno,y=p.yylloc;break;case 2:if(T=this.productions_[k[1]][1],B.$=a[a.length-T],B._$={first_line:r[r.length-(T||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(T||1)].first_column,last_column:r[r.length-1].last_column},m&&(B._$.range=[r[r.length-(T||1)].range[0],r[r.length-1].range[1]]),void 0!==(E=this.performAction.apply(B,[l,c,o,d.yy,k[1],a,r].concat(h))))return E;T&&(s=s.slice(0,-1*T*2),a=a.slice(0,-1*T),r=r.slice(0,-1*T)),s.push(this.productions_[k[1]][0]),a.push(B.$),r.push(B._$),F=u[s[s.length-2]][s[s.length-1]],s.push(F);break;case 3:return!0}}return!0},"parse")},lt=function(){return{EOF:1,parseError:i(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:i(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:i(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var a in n)this[a]=n[a];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((s=this._input.match(this.rules[n[a]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var t=this.next();return t||this.lex()},"lex"),begin:i(function(t){this.conditionStack.push(t)},"begin"),popState:i(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(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:i(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i(function(t){this.begin(t)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i(function(t,e,s,i){switch(s){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:case 14:case 31:case 37:case 41:case 48: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:case 19:case 22:case 24:case 59:case 62:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 36:return 8;case 15:case 16:return 7;case 17:case 38:case 46:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 23:return 80;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:case 40:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:this.popState(),this.less(0);break;case 34:case 44:return this.popState(),41;case 35:case 45:return"EOF_IN_STRUCT";case 39:return this.begin("class"),48;case 42:return this.popState(),this.popState(),41;case 43:return this.begin("class-body"),39;case 47:return"OPEN_IN_STRUCT";case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:case 66:case 67:case 68:return 77;case 69:case 70:return 69;case 71:case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:case 86:return 89;case 87:return 90;case 88:case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:case 97:return 50;case 98: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,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,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,98],inclusive:!0}}}}();function ot(){this.yy={}}return ut.lexer=lt,i(ot,"Parser"),ot.prototype=ut,ut.Parser=ot,new ot}();_.parser=_;var $=_,S=["#","+","~","-",""],N=class{static{i(this,"ClassMember")}constructor(t,e){this.memberType=e,this.visibility="",this.classifier="",this.text="";const s=T(t,a());this.parseMember(s)}getDisplayDetails(){let t=this.visibility+F(this.id);"method"===this.memberType&&(t+=`(${F(this.parameters.trim())})`,this.returnType&&(t+=" : "+F(this.returnType))),t=t.trim();return{displayText:t,cssStyle:this.parseClassifier()}}parseMember(t){let e="";if("method"===this.memberType){const s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(s){const t=s[1]?s[1].trim():"";if(S.includes(t)&&(this.visibility=t),this.id=s[2],this.parameters=s[3]?s[3].trim():"",e=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",""===e){const t=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(t)&&(e=t,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const s=t.length,i=t.substring(0,1),n=t.substring(s-1);S.includes(i)&&(this.visibility=i),/[$*]/.exec(n)&&(e=n),this.id=t.substring(""===this.visibility?0:1,""===e?s:s-1)}this.classifier=e,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const s=`${this.visibility?"\\"+this.visibility:""}${F(this.id)}${"method"===this.memberType?`(${F(this.parameters)})${this.returnType?" : "+F(this.returnType):""}`:""}`;this.text=s.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},L="classId-",x=0,I=i(t=>m.sanitizeText(t,a()),"sanitizeText"),v=class t{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.namespaceStack=[],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=i(t=>{const e=D();o(t).select("svg").selectAll("g").filter(function(){return null!==o(this).attr("title")}).on("mouseover",t=>{const s=o(t.currentTarget),i=s.attr("title");if(!i)return;const n=t.currentTarget.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(B.sanitize(i)).style("left",`${window.scrollX+n.left+n.width/2}px`).style("top",`${window.scrollY+n.bottom+4}px`),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0),o(t.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=c,this.getAccTitle=h,this.setAccDescription=p,this.getAccDescription=d,this.setDiagramTitle=A,this.getDiagramTitle=y,this.getConfig=i(()=>a().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.popNamespace=this.popNamespace.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)}static{i(this,"ClassDB")}splitClassNameAndType(t){const e=m.sanitizeText(t,a());let s="",i=e;if(e.indexOf("~")>0){const t=e.split("~");i=I(t[0]),s=I(t[1])}return{className:i,type:s}}setClassLabel(t,e){const s=m.sanitizeText(t,a());e&&(e=I(e));const{className:i}=this.splitClassNameAndType(s);this.classes.get(i).label=e,this.classes.get(i).text=`${e}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(t){const e=m.sanitizeText(t,a()),{className:s,type:i}=this.splitClassNameAndType(e);if(this.classes.has(s))return;const n=m.sanitizeText(s,a());this.classes.set(n,{id:n,type:i,label:n,text:`${n}${i?`&lt;${i}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:L+n+"-"+x}),x++}addInterface(t,e){const s={id:`interface${this.interfaces.length}`,label:t,classId:e};this.interfaces.push(s)}setDiagramId(t){this.diagramId=t}lookUpDomId(t){const e=m.sanitizeText(t,a());if(this.classes.has(e)){const t=this.classes.get(e).domId;return this.diagramId?`${this.diagramId}-${t}`:t}throw new Error("Class not found: "+e)}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.namespaceStack=[],this.diagramId="",this.direction="TB",g()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(t){const e="number"==typeof t?`note${t}`:t;return this.notes.get(e)}getNotes(){return this.notes}addRelation(t){n.debug("Adding relation: "+JSON.stringify(t));const e=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1!==this.relationType.LOLLIPOP||e.includes(t.relation.type2)?t.relation.type2!==this.relationType.LOLLIPOP||e.includes(t.relation.type1)?(this.addClass(t.id1),this.addClass(t.id2)):(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2="interface"+(this.interfaces.length-1)):(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1="interface"+(this.interfaces.length-1)),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=m.sanitizeText(t.relationTitle1.trim(),a()),t.relationTitle2=m.sanitizeText(t.relationTitle2.trim(),a()),this.relations.push(t)}addAnnotation(t,e){const s=this.splitClassNameAndType(t).className;this.classes.get(s).annotations.push(e)}addMember(t,e){this.addClass(t);const s=this.splitClassNameAndType(t).className,i=this.classes.get(s);if("string"==typeof e){const t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push(I(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(new N(t,"method")):t&&i.members.push(new N(t,"attribute"))}}addMembers(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(e=>this.addMember(t,e)))}addNote(t,e){const s=this.notes.size,i={id:`note${s}`,class:e,text:t,index:s};return this.notes.set(i.id,i),i.id}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),I(t.trim())}setCssClass(t,e){t.split(",").forEach(t=>{let s=t;/\d/.exec(t[0])&&(s=L+s),s=this.splitClassNameAndType(s).className;const i=this.classes.get(s);i&&(i.cssClasses+=" "+e)})}defineClass(t,e){for(const s of t){let t=this.styleClasses.get(s);void 0===t&&(t={id:s,styles:[],textStyles:[]},this.styleClasses.set(s,t)),e&&e.forEach(e=>{if(/color/.exec(e)){const s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)}),this.classes.forEach(t=>{t.cssClasses.includes(s)&&t.styles.push(...e.flatMap(t=>t.split(",")))})}}setTooltip(t,e){t.split(",").forEach(t=>{if(void 0!==e){const s=this.splitClassNameAndType(t).className,i=this.classes.get(s);i&&(i.tooltip=I(e))}})}getTooltip(t,e){return e&&this.namespaces.has(e)?this.namespaces.get(e).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,e,s){const i=a();t.split(",").forEach(t=>{let n=t;/\d/.exec(t[0])&&(n=L+n),n=this.splitClassNameAndType(n).className;const a=this.classes.get(n);a&&(a.link=l.formatUrl(e,i),"sandbox"===i.securityLevel?a.linkTarget="_top":a.linkTarget="string"==typeof s?I(s):"_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,e,s){t.split(",").forEach(t=>{this.setClickFunc(t,e,s);const i=this.splitClassNameAndType(t).className,n=this.classes.get(i);n&&(n.haveCallback=!0)}),this.setCssClass(t,"clickable")}setClickFunc(t,e,s){const i=m.sanitizeText(t,a());if("loose"!==a().securityLevel)return;if(void 0===e)return;const n=this.splitClassNameAndType(i).className;if(this.classes.has(n)){let t=[];if("string"==typeof s){t=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<t.length;e++){let s=t[e].trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),t[e]=s}}0===t.length&&t.push(n),this.functions.push(()=>{const s=this.lookUpDomId(n),i=document.querySelector(`[id="${s}"]`);null!==i&&i.addEventListener("click",()=>{l.runFunc(e,...t)},!1)})}}bindFunctions(t){this.functions.forEach(e=>{e(t)})}escapeHtml(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(t){this.direction=t}static resolveQualifiedId(t,e){const s=e.at(-1);return s?`${s}.${t}`:t}static getAncestorIds(t){const e=t.split("."),s=new Array(e.length);s[0]=e[0];for(let i=1;i<e.length;i++)s[i]=`${s[i-1]}.${e[i]}`;return s}createNamespaceNode(t,e,s,i=!1){return{id:t,label:e,classes:new Map,notes:new Map,children:new Map,domId:L+t+"-"+this.namespaceCounter++,parent:s,explicit:i}}linkParentChild(t,e){const s=this.namespaces.get(t),i=this.namespaces.get(e);s&&i&&(s.children.has(e)||s.children.set(e,i),i.parent??=t)}addNamespace(e,s){const i=t.resolveQualifiedId(e,this.namespaceStack);if(this.namespaceStack.push(i),this.namespaces.has(i)){const t=this.namespaces.get(i);return t.explicit=!0,s&&(t.label=s),i}const n=i.split("."),a=t.getAncestorIds(i);for(let t=0;t<a.length;t++){const e=a[t],i=t>0?a[t-1]:void 0,r=t===a.length-1,u=r&&s?s:n[t];this.namespaces.has(e)?r&&(this.namespaces.get(e).explicit=!0):this.namespaces.set(e,this.createNamespaceNode(e,u,i,r)),i&&this.linkParentChild(i,e)}return i}popNamespace(){this.namespaceStack.pop()}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,e,s){if(this.namespaces.has(t)){for(const s of e){const{className:e}=this.splitClassNameAndType(s),i=this.getClass(e);i.parent=t,this.namespaces.get(t).classes.set(e,i)}for(const e of s){const s=this.getNote(e);s.parent=t,this.namespaces.get(t).notes.set(e,s)}}}setCssStyle(t,e){const s=this.classes.get(t);if(e&&s)for(const i of e)i.includes(",")?s.styles.push(...i.split(",")):s.styles.push(i)}getArrowMarker(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}resolveExplicitAncestor(t){let e=t;for(;e;){const t=this.namespaces.get(e);if(!t)return;if(t.explicit)return e;e=t.parent}}getData(){const t=[],e=[],s=a(),i=s.class?.hierarchicalNamespaces??!0;for(const a of this.namespaces.values()){if(!i&&!a.explicit)continue;const e={id:a.id,label:i?a.label:a.id,isGroup:!0,padding:s.class.padding??16,shape:"rect",cssStyles:[],look:s.look,parentId:i?a.parent:void 0};t.push(e)}let n=0;for(const a of this.classes.values()){const e=i?a.parent:this.resolveExplicitAncestor(a.parent),r={...a,type:void 0,isGroup:!1,parentId:e,look:s.look,colorIndex:n++};t.push(r)}for(const a of this.notes.values()){const n=i?a.parent:this.resolveExplicitAncestor(a.parent),r={id:a.id,label:a.text,isGroup:!1,shape:"note",padding:s.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${s.themeVariables.noteBkgColor}`,`stroke: ${s.themeVariables.noteBorderColor}`],look:s.look,parentId:n,labelType:"markdown"};t.push(r);const u=this.classes.get(a.class)?.id;if(u){const t={id:`edgeNote${a.index}`,start:a.id,end:u,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:s.look};e.push(t)}}for(const a of this.interfaces){const e={id:a.id,label:a.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:s.look};t.push(e)}let r=0;for(const a of this.relations){r++;const t={id:C(a.id1,a.id2,{prefix:"id",counter:r}),start:a.id1,end:a.id2,type:"normal",label:a.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(a.relation.type1),arrowTypeEnd:this.getArrowMarker(a.relation.type2),startLabelRight:"none"===a.relationTitle1?"":a.relationTitle1,endLabelLeft:"none"===a.relationTitle2?"":a.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:a.style||"",pattern:1==a.relation.lineType?"dashed":"solid",look:s.look,labelType:"markdown"};e.push(t)}return{nodes:t,edges:e,other:{},config:s,direction:this.getDirection()}}},O=i(t=>{const{theme:e,bkgColorArray:s,borderColorArray:i}=t;if(!b(e,i))return"";const n=k(t.look),a=E(s);let r="";for(let u=0;u<f(t.THEME_COLOR_LIMIT,i);u++){const t=i[u%i.length];r+=`\n\n [data-look="${n}"][data-color-id="color-${u}"].node .outer-path path {\n stroke: ${t};\n ${a?`fill: ${s[u%s.length]};`:""}\n }\n\n [data-look="${n}"][data-color-id="color-${u}"].node .divider path {\n stroke: ${t};\n }\n `}return r},"genColor"),w=i(e=>`${O(e)}\n g.classGroup text {\n fill: ${e.nodeBorder||e.classText};\n stroke: none;\n font-family: ${e.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n\n.nodeLabel, .edgeLabel {\n color: ${e.classText};\n}\n\n.noteLabel .nodeLabel, .noteLabel .edgeLabel {\n color: ${e.noteTextColor};\n}\n.edgeLabel .label rect {\n fill: ${e.mainBkg};\n}\n.label text {\n fill: ${e.classText};\n}\n\n.labelBkg {\n background: ${e.mainBkg};\n}\n.edgeLabel .label span {\n background: ${e.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: ${e.strokeWidth};\n }\n\n\n.divider {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${e.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${e.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${e.lineColor};\n stroke-width: ${e.strokeWidth};\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n[id$="-compositionStart"], .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-compositionEnd"], .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyStart"], .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyEnd"], .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionStart"], .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionEnd"], .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationStart"], .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationEnd"], .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopStart"], .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopEnd"], .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n}\n\n.edgeLabel[data-look="neo"] {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n}\n ${t()}\n`,"getStyles"),R=i((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const i of t.doc)"dir"===i.stmt&&(s=i.value);return s},"getDir"),M={getClasses:i(function(t,e){return e.db.getClasses()},"getClasses"),draw:i(async function(t,i,o,c){n.info("REF0:"),n.info("Drawing class diagram (v3)",i);const{securityLevel:h,state:p,layout:d}=a();c.db.setDiagramId(i);const A=c.db.getData(),y=e(i,h);A.type=c.type,A.layoutAlgorithm=r(d),A.nodeSpacing=p?.nodeSpacing||50,A.rankSpacing=p?.rankSpacing||50,A.markers=["aggregation","extension","composition","dependency","lollipop"],A.diagramId=i,await u(A,y);l.insertTitle(y,"classDiagramTitleText",p?.titleTopMargin??25,c.db.getDiagramTitle()),s(y,8,"classDiagram",p?.useMaxWidth??!0)},"draw"),getDir:R},P={parser:$,get db(){return new v},renderer:M,styles:w,init:i(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{P as diagram};