@theruansilva/omp-web 2.0.1 → 2.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 (209) hide show
  1. package/dist/cli.js +83 -3
  2. package/dist/cli.js.map +1 -1
  3. package/dist/client/assets/CodeViewer-B61IQaP0.js +4 -0
  4. package/dist/client/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  5. package/dist/client/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  6. package/dist/client/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  7. package/dist/client/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  8. package/dist/client/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  9. package/dist/client/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  10. package/dist/client/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  11. package/dist/client/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  12. package/dist/client/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  13. package/dist/client/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  14. package/dist/client/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  15. package/dist/client/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  16. package/dist/client/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  17. package/dist/client/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  18. package/dist/client/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  19. package/dist/client/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  20. package/dist/client/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  21. package/dist/client/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  22. package/dist/client/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  23. package/dist/client/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  24. package/dist/client/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  25. package/dist/client/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  26. package/dist/client/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  27. package/dist/client/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  28. package/dist/client/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  29. package/dist/client/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  30. package/dist/client/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  31. package/dist/client/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  32. package/dist/client/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  33. package/dist/client/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  34. package/dist/client/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  35. package/dist/client/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  36. package/dist/client/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  37. package/dist/client/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  38. package/dist/client/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  39. package/dist/client/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  40. package/dist/client/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  41. package/dist/client/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  42. package/dist/client/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  43. package/dist/client/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  44. package/dist/client/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  45. package/dist/client/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  46. package/dist/client/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  47. package/dist/client/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  48. package/dist/client/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  49. package/dist/client/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  50. package/dist/client/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  51. package/dist/client/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  52. package/dist/client/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  53. package/dist/client/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  54. package/dist/client/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  55. package/dist/client/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  56. package/dist/client/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  57. package/dist/client/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  58. package/dist/client/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  59. package/dist/client/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  60. package/dist/client/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  61. package/dist/client/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  62. package/dist/client/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  63. package/dist/client/assets/{TerminalPanel-Cb2CgFtQ.js → TerminalPanel-BcxMZQKk.js} +8 -8
  64. package/dist/client/assets/{UnifiedDiffViewer-Db5Yxwri.js → UnifiedDiffViewer-BnFQlZDg.js} +2 -2
  65. package/dist/client/assets/abnfDiagram-O67JEVCF-BCWHgm_-.js +1 -0
  66. package/dist/client/assets/arc-BUpZciy9.js +1 -0
  67. package/dist/client/assets/architectureDiagram-NJMV4G6O-CVWCwiqh.js +36 -0
  68. package/dist/client/assets/blockDiagram-BEXU5L5S-W5WSJa_J.js +140 -0
  69. package/dist/client/assets/c4Diagram-YGBWAQC7-BWpacECA.js +38 -0
  70. package/dist/client/assets/channel-ChkqWR3Z.js +1 -0
  71. package/dist/client/assets/chunk-2Q5K7J3B-D0TV4T28.js +1 -0
  72. package/dist/client/assets/chunk-3FUC2YCW-BlkJ2B9v.js +2 -0
  73. package/dist/client/assets/chunk-5VM5RSS4-LRh3HbZr.js +15 -0
  74. package/dist/client/assets/chunk-GTNCS2PH-CBiTovUf.js +88 -0
  75. package/dist/client/assets/chunk-GWA4HPMP-Dnu3R9yI.js +1 -0
  76. package/dist/client/assets/chunk-JWPE2WC7-C2yjQs6c.js +1 -0
  77. package/dist/client/assets/chunk-NETBCI7D-Dxos4L3P.js +1 -0
  78. package/dist/client/assets/chunk-WEXAMYUT-DrLvxPom.js +1 -0
  79. package/dist/client/assets/chunk-XXDRQBXY-Cub_nego.js +1 -0
  80. package/dist/client/assets/classDiagram-v2-NBCMYWYE-CIe2lhk7.js +217 -0
  81. package/dist/client/assets/cose-bilkent-JH36ORCC-DOGZoTZg.js +1 -0
  82. package/dist/client/assets/cynefin-OW5HDTMX-DXF0a63d.js +166 -0
  83. package/dist/client/assets/cynefinDiagram-VND7K2PF-C_Qmhc8V.js +62 -0
  84. package/dist/client/assets/cytoscape.esm-BB4DxJjf.js +321 -0
  85. package/dist/client/assets/dagre-6A5THRUB-CEhDrD4X.js +4 -0
  86. package/dist/client/assets/defaultLocale-DX6XiGOO.js +1 -0
  87. package/dist/client/assets/diagram-22UHCM2B-CgN81sDZ.js +200 -0
  88. package/dist/client/assets/diagram-3UASUU5V-Dk1gOSew.js +24 -0
  89. package/dist/client/assets/diagram-ATOU4E4O-C_tcqhr3.js +3 -0
  90. package/dist/client/assets/diagram-CDSNMT55-Dj-WM3vk.js +30 -0
  91. package/dist/client/assets/diagram-MLGK6HIB-CDowox_d.js +24 -0
  92. package/dist/client/assets/diagram-MPIPVDR6-CaThzNCZ.js +41 -0
  93. package/dist/client/assets/ebnfDiagram-ZINNZB2B-BZbLdwcz.js +1 -0
  94. package/dist/client/assets/elk-276RUBZZ-DGku1nk-.js +27 -0
  95. package/dist/client/assets/erDiagram-OPXOYQCR-D0nJ53i7.js +99 -0
  96. package/dist/client/assets/flowDiagram-KWPJA3E3-DeB8-O7Y.js +213 -0
  97. package/dist/client/assets/ganttDiagram-FUAMR5RP-CBcW8sXy.js +292 -0
  98. package/dist/client/assets/gitGraphDiagram-X574FWY7-CC-b8FLq.js +106 -0
  99. package/dist/client/assets/graph-D8UmR1vK.js +1 -0
  100. package/dist/client/assets/index-CyN73uMY.js +5664 -0
  101. package/dist/client/assets/{index-DGBYb2j9.css → index-DSGiUJZL.css} +1 -1
  102. package/dist/client/assets/infoDiagram-VRGFBTTK-DL3QMN01.js +2 -0
  103. package/dist/client/assets/init-Gi6I4Gst.js +1 -0
  104. package/dist/client/assets/ishikawaDiagram-OU5B5YK6-Brt56LtP.js +70 -0
  105. package/dist/client/assets/journeyDiagram-ZHPQQLJL-Df8VwbDr.js +139 -0
  106. package/dist/client/assets/kanban-definition-PNTS6WVX-cVbdWfVg.js +89 -0
  107. package/dist/client/assets/katex-HP8lGamR.js +257 -0
  108. package/dist/client/assets/linear-DugbH7BO.js +1 -0
  109. package/dist/client/assets/mindmap-definition-NLK3R4M7-BDqwqJMJ.js +96 -0
  110. package/dist/client/assets/ordinal-Cboi1Yqb.js +1 -0
  111. package/dist/client/assets/pegDiagram-GJSIUBJH-w6CrSKt0.js +1 -0
  112. package/dist/client/assets/pieDiagram-5QR66LMP-D0utByOI.js +39 -0
  113. package/dist/client/assets/quadrantDiagram-O4NWA36T-DIAIplx2.js +7 -0
  114. package/dist/client/assets/railroadDiagram-XR7U4H2S-BX9P-jy7.js +1 -0
  115. package/dist/client/assets/requirementDiagram-PLB6GJNP-C55JlmRI.js +84 -0
  116. package/dist/client/assets/sankeyDiagram-IPEJSGJF-VeHnKI-a.js +40 -0
  117. package/dist/client/assets/sequenceDiagram-PO4LG4MO-CTUoXviF.js +169 -0
  118. package/dist/client/assets/sizeCapture-INFHLROL-DBKjJDUZ.js +1 -0
  119. package/dist/client/assets/stateDiagram-v2-GCMORJYK-DzonJh3D.js +291 -0
  120. package/dist/client/assets/swimlanes-2SLR337P-Cnsd5mvJ.js +1 -0
  121. package/dist/client/assets/swimlanesDiagram-TC7HE7FX-iyBCc4Xc.js +8 -0
  122. package/dist/client/assets/timeline-definition-EJHVYXUP-C9nhaxck.js +120 -0
  123. package/dist/client/assets/usecaseDiagram-POWQR4AR-jfXBWSzR.js +370 -0
  124. package/dist/client/assets/vendor-editor-core-D-5q2tVX.js +49 -0
  125. package/dist/client/assets/vendor-editor-languages-B6WRt0aC.js +26 -0
  126. package/dist/client/assets/vennDiagram-UO4OBE2U-BigR6haV.js +34 -0
  127. package/dist/client/assets/wardleyDiagram-VNRHLVJA-BXJexKTM.js +78 -0
  128. package/dist/client/assets/xychartDiagram-PMCCYNJV-HL5cuxsZ.js +7 -0
  129. package/dist/client/index.html +4 -4
  130. package/dist/config.js +11 -12
  131. package/dist/config.js.map +1 -1
  132. package/dist/omp-web-plugins/mcps/mcpsLogic.js +78 -0
  133. package/dist/omp-web-plugins/mcps/mcpsPanelElement.js +417 -0
  134. package/dist/omp-web-plugins/mcps/omp-web-plugin.js +45 -0
  135. package/dist/omp-web-plugins/mcps/package.json +9 -0
  136. package/dist/omp-web-plugins/mcps/types.js +2 -0
  137. package/dist/plugin-api.d.ts +1 -0
  138. package/dist/server/app.js +24 -1
  139. package/dist/server/app.js.map +1 -1
  140. package/dist/server/configRoutes.js +6 -0
  141. package/dist/server/configRoutes.js.map +1 -1
  142. package/dist/server/index.js +0 -0
  143. package/dist/server/machines/machineService.js +3 -0
  144. package/dist/server/machines/machineService.js.map +1 -1
  145. package/dist/server/mcpRoutes.js +73 -0
  146. package/dist/server/mcpRoutes.js.map +1 -0
  147. package/dist/server/push/PushNotificationService.js +16 -3
  148. package/dist/server/push/PushNotificationService.js.map +1 -1
  149. package/dist/server/security.js +172 -0
  150. package/dist/server/security.js.map +1 -0
  151. package/dist/server/sessiond/sessionProxyRoutes.js +11 -5
  152. package/dist/server/sessiond/sessionProxyRoutes.js.map +1 -1
  153. package/dist/server/sessiond.js +28 -1
  154. package/dist/server/sessiond.js.map +1 -1
  155. package/dist/server/sessions/piAgentSession.js +2 -1
  156. package/dist/server/sessions/piAgentSession.js.map +1 -1
  157. package/dist/server/sessions/piSessionService.js +168 -16
  158. package/dist/server/sessions/piSessionService.js.map +1 -1
  159. package/dist/server/sessions/schedulePrompt/scheduler.js +17 -13
  160. package/dist/server/sessions/schedulePrompt/scheduler.js.map +1 -1
  161. package/dist/server/sessions/schedulePrompt/tool.js +13 -1
  162. package/dist/server/sessions/schedulePrompt/tool.js.map +1 -1
  163. package/dist/server/sessions/sessionEventMapper.js +36 -2
  164. package/dist/server/sessions/sessionEventMapper.js.map +1 -1
  165. package/dist/server/sessions/sessionRoutes.js +3 -0
  166. package/dist/server/sessions/sessionRoutes.js.map +1 -1
  167. package/dist/server/workspaceExplorerRoutes.js +16 -9
  168. package/dist/server/workspaceExplorerRoutes.js.map +1 -1
  169. package/dist/server/workspaces/fileContentService.js +9 -4
  170. package/dist/server/workspaces/fileContentService.js.map +1 -1
  171. package/dist/server/workspaces/imagePreviewService.js +63 -13
  172. package/dist/server/workspaces/imagePreviewService.js.map +1 -1
  173. package/dist/shared/apiTypes.d.ts +18 -1
  174. package/dist/shared/federatedRoutes.js +2 -0
  175. package/dist/shared/federatedRoutes.js.map +1 -1
  176. package/docs/config.md +16 -1
  177. package/package.json +5 -1
  178. package/dist/client/assets/CodeViewer-Mp4aTsTY.js +0 -4
  179. package/dist/client/assets/index-Df4Ex27j.js +0 -4427
  180. package/dist/client/assets/vendor-editor-core-D9EJm1dE.js +0 -10
  181. package/dist/client/assets/vendor-editor-languages-N6dcxgRO.js +0 -26
  182. package/dist/client-react/assets/index-BQ6zLLfz.js +0 -51
  183. package/dist/client-react/assets/index-Befs78HG.css +0 -1
  184. package/dist/client-react/index.html +0 -16
  185. package/dist/docker/piWebDockerCommandPlan.js +0 -211
  186. package/dist/docker/piWebDockerCommandPlan.js.map +0 -1
  187. package/dist/pi-web-plugins/info/package.json +0 -9
  188. package/dist/pi-web-plugins/info/pi-web-plugin.js +0 -51
  189. package/dist/pi-web-plugins/schedule-prompts/package.json +0 -9
  190. package/dist/pi-web-plugins/schedule-prompts/pi-web-plugin.js +0 -43
  191. package/dist/pi-web-plugins/schedule-prompts/schedulePromptsPanelElement.js +0 -226
  192. package/dist/pi-web-plugins/schedule-prompts/types.js +0 -2
  193. package/dist/pi-web-plugins/updates/package.json +0 -9
  194. package/dist/pi-web-plugins/updates/pi-web-plugin.js +0 -173
  195. package/dist/pi-web-plugins/updates/updatesLogic.js +0 -97
  196. package/dist/piWebVersionReport.js +0 -225
  197. package/dist/piWebVersionReport.js.map +0 -1
  198. package/dist/server/diagnostics/nodePtySpawnHelper.js +0 -130
  199. package/dist/server/diagnostics/nodePtySpawnHelper.js.map +0 -1
  200. package/dist/server/piWebPluginService.js +0 -283
  201. package/dist/server/piWebPluginService.js.map +0 -1
  202. package/dist/server/piWebStatus.js +0 -602
  203. package/dist/server/piWebStatus.js.map +0 -1
  204. package/dist/server/piWebStatusCache.js +0 -32
  205. package/dist/server/piWebStatusCache.js.map +0 -1
  206. package/dist/server/workspaces/projectPiWebConfig.js +0 -61
  207. package/dist/server/workspaces/projectPiWebConfig.js.map +0 -1
  208. package/dist/shared/piWebStatusParsing.js +0 -102
  209. package/dist/shared/piWebStatusParsing.js.map +0 -1
@@ -0,0 +1,99 @@
1
+ import{g as Ut}from"./chunk-XXDRQBXY-Cub_nego.js";import{s as Kt}from"./chunk-WEXAMYUT-DrLvxPom.js";import{_ as f,H as Tt,b as Zt,a as jt,s as qt,g as Wt,q as Ht,t as Qt,c as tt,l as F,m as Xt,A as Jt,y as $t,C as te,D as ee,E as se,I as ie,G as re,K as ne,p as ae,r as oe,k as ce,u as le}from"./index-CyN73uMY.js";import{c as he}from"./channel-ChkqWR3Z.js";import"./vendor-editor-core-D-5q2tVX.js";import"./vendor-editor-languages-B6WRt0aC.js";var Ct=(function(){var s=f(function(G,a,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=a);return l},"o"),n=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],q=[43,51,53,54,55,74,75],W=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],nt=[1,101],at=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(a,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(n,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(n,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(q,[2,77]),s(q,[2,78]),s(q,[2,79]),s(q,[2,80]),s(q,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:W,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:W,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:W,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:nt,53:at,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:W,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:W,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:nt,53:at,76:ot},{15:127,43:V,44:M},{13:128,43:nt,53:at,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:nt,53:at,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(a,l){if(l.recoverable)this.trace(a);else{var d=new Error(a);throw d.hash=l,d}},"parseError"),parse:f(function(a){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(a,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
2
+ `+m.showPosition()+`
3
+ Expecting `+ut.join(", ")+", got '"+(this.terminals_[E]||E)+"'":St="Parse error on line "+(lt+1)+": Unexpected "+(E==Lt?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(St,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:mt,expected:ut})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(T[0]){case 1:d.push(E),_.push(m.yytext),t.push(m.yylloc),d.push(T[1]),E=null,Dt=m.yyleng,e=m.yytext,lt=m.yylineno,mt=m.yylloc;break;case 2:if(R=this.productions_[T[1]][1],U.$=_[_.length-R],U._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Pt&&(U._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),Et=this.performAction.apply(U,[e,Dt,lt,Y.yy,T[1],_,t].concat(Yt)),typeof Et<"u")return Et;R&&(d=d.slice(0,-1*R*2),_=_.slice(0,-1*R),t=t.slice(0,-1*R)),d.push(this.productions_[T[1]][0]),_.push(U.$),t.push(U._$),Vt=$[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},Gt=(function(){var G={EOF:1,parseError:f(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),setInput:f(function(a,l){return this.yy=l||this.yy||{},this._input=a,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:f(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var l=a.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:f(function(a){var l=a.length,d=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;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),d.length-1&&(this.yylineno-=d.length-1);var _=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:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(a){this.unput(this.match.slice(a))},"less"),pastInput:f(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var a=this.pastInput(),l=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
5
+ `+l+"^"},"showPosition"),test_match:f(function(a,l){var d,i,_;if(this.options.backtrack_lexer&&(_={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&&(_.yylloc.range=this.yylloc.range.slice(0))),i=a[0].match(/(?:\r\n?|\n).*/g),i&&(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+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],d=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var t in _)this[t]=_[t];return!1}return!1},"test_match"),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,l,d,i;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),t=0;t<_.length;t++)if(d=this._input.match(this.rules[_[t]]),d&&(!l||d[0].length>l[0].length)){if(l=d,i=t,this.options.backtrack_lexer){if(a=this.test_match(d,_[t]),a!==!1)return a;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(a=this.test_match(l,_[i]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:f(function(){var l=this.next();return l||this.lex()},"lex"),begin:f(function(l){this.conditionStack.push(l)},"begin"),popState:f(function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:f(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:f(function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},"topState"),pushState:f(function(l){this.begin(l)},"pushState"),stateStackSize:f(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:f(function(l,d,i,_){switch(i){case 0:return this.begin("acc_title"),23;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),25;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin("block_bq");break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;case 32:return d.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;case 36:return this.popState(),9;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin("style"),41;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return d.yytext[0];case 82:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,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,75,76,77,80,81,82],inclusive:!0}}};return G})();_t.lexer=Gt;function ct(){this.yy={}}return f(ct,"Parser"),ct.prototype=_t,_t.Parser=ct,new ct})();Ct.parser=Ct;var ue=Ct,K,de=(K=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=Zt,this.getAccTitle=jt,this.setAccDescription=qt,this.getAccDescription=Wt,this.setDiagramTitle=Ht,this.getDiagramTitle=Qt,this.getConfig=f(()=>tt().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}addEntity(n,o=""){return this.entities.has(n)?!this.entities.get(n)?.alias&&o&&(this.entities.get(n).alias=o,F.info(`Add alias '${o}' to entity '${n}'`)):(this.entities.set(n,{id:`entity-${n}-${this.entities.size}`,label:n,attributes:[],alias:o,shape:"erBox",look:tt().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),F.info("Added new entity :",n)),this.entities.get(n)}getEntity(n){return this.entities.get(n)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(n,o){const c=this.addEntity(n);let r;for(r=o.length-1;r>=0;r--)o[r].keys||(o[r].keys=[]),o[r].comment||(o[r].comment=""),c.attributes.push(o[r]),F.debug("Added attribute ",o[r].name)}addRelationship(n,o,c,r){let u;if(this.subGraphLookup.has(n))u=n;else{const k=this.addEntity(n);if(!k)return;u=k.id}let y;if(this.subGraphLookup.has(c))y=c;else{const k=this.addEntity(c);if(!k)return;y=k.id}const g={entityA:u,roleA:o,entityB:y,relSpec:r};this.relationships.push(g),F.debug("Added new relationship :",g)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(n){this.direction=n}getCompiledStyles(n){let o=[];for(const c of n){const r=this.classes.get(c);r?.styles&&(o=[...o,...r.styles??[]].map(u=>u.trim())),r?.textStyles&&(o=[...o,...r.textStyles??[]].map(u=>u.trim()))}return o}addCssStyles(n,o){for(const c of n){const r=this.entities.get(c),u=this.subGraphLookup.get(c);if(o){if(r)for(const y of o)r.cssStyles.push(y);if(u){u.cssStyles||(u.cssStyles=[]);for(const y of o)u.cssStyles.push(y)}}}}addClass(n,o){n.forEach(c=>{let r=this.classes.get(c);r===void 0&&(r={id:c,styles:[],textStyles:[]},this.classes.set(c,r)),o&&o.forEach(function(u){if(/color/.exec(u)){const y=u.replace("fill","bgFill");r.textStyles.push(y)}r.styles.push(u)})})}addSubGraph(n,o,c){let r=n.text.trim(),u=c.text;const g=f(b=>{const A=new Set;let v;return{nodeList:b.filter(N=>{if(N?.stmt)return N.stmt==="dir"&&(v=N.value),!1;if(typeof N!="string")return!1;const I=N.trim();return!I||A.has(I)?!1:(A.add(I),!0)}),dir:v}},"uniq")(o.flat()),k=g.nodeList,C=g.dir;r=r??"subGraph"+this.subCount,u=u||"",u=this.sanitizeText(u),this.subCount=this.subCount+1;const p={id:r,nodes:k,title:u.trim(),classes:[],cssStyles:[],dir:C,labelType:this.sanitizeNodeLabelType(c?.type)};return F.info("Adding",p.id,p.nodes,p.dir),p.nodes=this.makeUniq(p,this.subGraphs).nodes,this.subGraphs.push(p),this.subGraphLookup.set(r,p),r}getSubGraphs(){return this.subGraphs}setClass(n,o){for(const c of n){const r=this.entities.get(c);if(r)for(const y of o)r.cssClasses+=" "+y;const u=this.subGraphLookup.get(c);if(u)for(const y of o)u.classes.push(y)}}subgraphNodeCache(n){const o=new Set;for(const c of n)for(const r of c.nodes)o.add(r);return o}makeUniq(n,o){const c=this.subgraphNodeCache(o),r=[];return n.nodes.forEach((u,y)=>{c.has(u)?F.warn(`Entity '${u}' already belongs to another subgraph and will be ignored`):r.push(n.nodes[y])}),{nodes:r}}sanitizeText(n){return Xt.sanitizeText(n,tt())}sanitizeNodeLabelType(n){switch(n){case"markdown":case"string":case"text":return n;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,Jt()}getData(){const n=[],o=[],c=tt(),r=this.getSubGraphs(),u=new Map,y=new Map;for(let p=r.length-1;p>=0;p--){const b=r[p];b.nodes.length>0&&y.set(b.id,!0);for(const A of b.nodes)u.set(A,b.id)}for(let p=r.length-1;p>=0;p--){const b=r[p];n.push({id:b.id,label:b.title,labelStyle:"",labelType:b.labelType,parentId:u.get(b.id),padding:8,cssCompiledStyles:this.getCompiledStyles(b.classes),cssStyles:b.cssStyles,cssClasses:b.classes.join(" "),shape:"rect",dir:b.dir,isGroup:!0,look:c.look})}const g=new Set(r.map(p=>p.id));let k=0;for(const p of this.entities.keys()){if(g.has(p))continue;const b=this.entities.get(p);b&&(b.cssCompiledStyles=this.getCompiledStyles(b.cssClasses.split(" ")),b.colorIndex=k++,n.push({...b,parentId:u.get(p),isGroup:!1}))}let C=0;for(const p of this.relationships){const b={id:$t(p.entityA,p.entityB,{prefix:"id",counter:C++}),type:"normal",curve:"basis",start:p.entityA,end:p.entityB,label:p.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:p.relSpec.cardB.toLowerCase(),arrowTypeEnd:p.relSpec.cardA.toLowerCase(),pattern:p.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:c.look,labelType:"markdown"};o.push(b)}return{nodes:n,edges:o,other:{},config:c,direction:this.direction}}},f(K,"ErDB"),K),Bt={};ne(Bt,{draw:()=>pe});var pe=f(async function(s,n,o,c){F.info("REF0:"),F.info("Drawing er diagram (unified)",n);const{securityLevel:r,er:u,layout:y}=tt(),g=c.db.getData(),k=Ut(n,r);g.type=c.type,g.layoutAlgorithm=ae(y),g.config.flowchart.nodeSpacing=u?.nodeSpacing||140,g.config.flowchart.rankSpacing=u?.rankSpacing||80,g.direction=c.db.getDirection();const{config:C}=g,{look:p}=C;p==="neo"?g.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:g.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],g.diagramId=n,await oe(g,k);const b=k.selectAll('[id*="-background"]');Array.from(b).length>0&&b.each(function(){const v=ce(this),N=v.attr("id").replace("-background",""),I=k.select(`#${CSS.escape(N)}`);if(!I.empty()){const x=I.attr("transform");v.attr("transform",x)}});const A=8;le.insertTitle(k,"erDiagramTitleText",u?.titleTopMargin??25,c.db.getDiagramTitle()),Kt(k,A,"erDiagram",u?.useMaxWidth??!0)},"draw"),Mt=f((s,n)=>{const o=he,c=o(s,"r"),r=o(s,"g"),u=o(s,"b");return re(c,r,u,n)},"fade"),fe=f(s=>{const{theme:n,bkgColorArray:o,borderColorArray:c}=s;if(!te(n,c))return"";const r=ee(s.look),u=se(o);let y="";for(let g=0;g<ie(c);g++){const k=c[g],C=u?`fill: ${o[g%o.length]};`:"";y+=`
7
+
8
+ [data-look="${r}"][data-color-id="color-${g}"].node path {
9
+ stroke: ${k};
10
+ ${C}
11
+ }
12
+
13
+ [data-look="${r}"][data-color-id="color-${g}"].node rect {
14
+ stroke: ${k};
15
+ ${C}
16
+ }
17
+ `}return y},"genColor"),be=f(s=>{const{look:n,theme:o,erEdgeLabelBackground:c,strokeWidth:r}=s;return`
18
+ ${fe(s)}
19
+ .entityBox {
20
+ fill: ${s.mainBkg};
21
+ stroke: ${s.nodeBorder};
22
+ }
23
+
24
+ .relationshipLabelBox {
25
+ fill: ${s.tertiaryColor};
26
+ opacity: 0.7;
27
+ background-color: ${s.tertiaryColor};
28
+ rect {
29
+ opacity: 0.5;
30
+ }
31
+ }
32
+
33
+ .labelBkg {
34
+ background-color: ${Tt.has(o)&&c?c:Mt(s.tertiaryColor,.5)};
35
+ }
36
+
37
+ .edgeLabel {
38
+ background-color: ${Tt.has(o)&&c?c:s.edgeLabelBackground};
39
+ }
40
+ .edgeLabel .label rect {
41
+ fill: ${Tt.has(o)&&c?c:s.edgeLabelBackground};
42
+ }
43
+ .edgeLabel .label text {
44
+ fill: ${s.textColor};
45
+ }
46
+
47
+ .edgeLabel .label {
48
+ fill: ${s.nodeBorder};
49
+ font-size: 14px;
50
+ }
51
+
52
+ .label {
53
+ font-family: ${s.fontFamily};
54
+ color: ${s.nodeTextColor||s.textColor};
55
+ }
56
+
57
+ .edge-pattern-dashed {
58
+ stroke-dasharray: 8,8;
59
+ }
60
+
61
+ .node rect,
62
+ .node circle,
63
+ .node ellipse,
64
+ .node polygon
65
+ {
66
+ fill: ${s.mainBkg};
67
+ stroke: ${s.nodeBorder};
68
+ stroke-width: ${n==="neo"?r:"1px"};
69
+ }
70
+
71
+ .relationshipLine {
72
+ stroke: ${s.lineColor};
73
+ stroke-width: ${n==="neo"?r:"1px"};
74
+ fill: none;
75
+ }
76
+
77
+ .marker {
78
+ fill: none !important;
79
+ stroke: ${s.lineColor} !important;
80
+ stroke-width: 1;
81
+ }
82
+ [data-look=neo].labelBkg {
83
+ background-color: ${Mt(s.tertiaryColor,.5)};
84
+ }
85
+
86
+ .cluster rect {
87
+ fill: ${s.clusterBkg??s.mainBkg};
88
+ stroke: ${s.clusterBorder??s.nodeBorder};
89
+ stroke-width: 1px;
90
+ }
91
+
92
+ .cluster text {
93
+ fill: ${s.titleColor??s.textColor};
94
+ }
95
+
96
+ .cluster-label text {
97
+ fill: ${s.titleColor??s.textColor};
98
+ }
99
+ `},"getStyles"),ge=be,Te={parser:ue,get db(){return new de},renderer:Bt,styles:ge};export{Te as diagram};
@@ -0,0 +1,213 @@
1
+ import{g as qt}from"./chunk-5VM5RSS4-LRh3HbZr.js";import{g as Xt}from"./chunk-XXDRQBXY-Cub_nego.js";import{s as Qt}from"./chunk-WEXAMYUT-DrLvxPom.js";import{_ as C,o as Jt,l as te,c as ke,p as Zt,r as $t,u as rt,b as e1,s as t1,q as s1,a as i1,g as r1,t as a1,m as n1,v as u1,J as o1,x as l1,y as st,k as it,z as c1,A as h1,B as d1,C as p1,D as f1,E as g1,F as b1,G as k1}from"./index-CyN73uMY.js";import{c as A1}from"./chunk-GWA4HPMP-Dnu3R9yI.js";import{c as m1}from"./channel-ChkqWR3Z.js";var C1="flowchart-",Pe,D1=(Pe=class{constructor(){this.vertexCounter=0,this.config=ke(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=e1,this.setAccDescription=t1,this.setDiagramTitle=s1,this.getAccTitle=i1,this.getAccDescription=r1,this.getDiagramTitle=a1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return n1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,a,n,l,g,u={},m){if(!i||i.trim().length===0)return;let h;if(m!==void 0){let A;m.includes(`
2
+ `)?A=m+`
3
+ `:A=`{
4
+ `+m+`
5
+ }`,h=u1(A,{schema:o1})}const y=this.subGraphLookup.get(i);if(y&&h){y.metadata={...y.metadata,...h};return}const v=this.edges.find(A=>A.id===i);if(v){const A=h;A?.animate!==void 0&&(v.animate=A.animate),A?.animation!==void 0&&(v.animation=A.animation),A?.curve!==void 0&&(v.interpolate=A.curve);return}let V,b=this.vertices.get(i);if(b===void 0&&(r===void 0&&a===void 0&&n!==void 0&&n!==null&&te.warn(`Style applied to unknown node "${i}". This may indicate a typo. The node will be created automatically.`),b={id:i,labelType:"text",domId:C1+i+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(i,b)),this.vertexCounter++,r!==void 0?(this.config=ke(),V=this.sanitizeText(r.text.trim()),b.labelType=r.type,V.startsWith('"')&&V.endsWith('"')&&(V=V.substring(1,V.length-1)),b.text=V):b.text===void 0&&(b.text=i),a!==void 0&&(b.type=a),n?.forEach(A=>{b.styles.push(A)}),l?.forEach(A=>{b.classes.push(A)}),g!==void 0&&(b.dir=g),b.props===void 0?b.props=u:u!==void 0&&Object.assign(b.props,u),h!==void 0){if(h.shape){if(h.shape!==h.shape.toLowerCase()||h.shape.includes("_"))throw new Error(`No such shape: ${h.shape}. Shape names should be lowercase.`);if(!l1(h.shape))throw new Error(`No such shape: ${h.shape}.`);b.type=h?.shape}h?.label&&(b.text=h?.label,b.labelType=this.sanitizeNodeLabelType(h?.labelType)),h?.icon&&(b.icon=h?.icon,!h.label?.trim()&&b.text===i&&(b.text="")),h?.form&&(b.form=h?.form),h?.pos&&(b.pos=h?.pos),h?.img&&(b.img=h?.img,!h.label?.trim()&&b.text===i&&(b.text="")),h?.constraint&&(b.constraint=h.constraint),h.w&&(b.assetWidth=Number(h.w)),h.h&&(b.assetHeight=Number(h.h))}}addSingleLink(i,r,a,n){const u={start:i,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};te.info("abc78 Got edge...",u);const m=a.text;if(m!==void 0&&(u.text=this.sanitizeText(m.text.trim()),u.text.startsWith('"')&&u.text.endsWith('"')&&(u.text=u.text.substring(1,u.text.length-1)),u.labelType=this.sanitizeNodeLabelType(m.type)),a!==void 0&&(u.type=a.type,u.stroke=a.stroke,u.length=a.length>10?10:a.length),n&&!this.edges.some(h=>h.id===n))u.id=n,u.isUserDefinedId=!0;else{const h=this.edges.filter(y=>y.start===u.start&&y.end===u.end);h.length===0?u.id=st(u.start,u.end,{counter:0,prefix:"L"}):u.id=st(u.start,u.end,{counter:h.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))te.info("Pushing edge..."),this.edges.push(u);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
6
+
7
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
8
+ You cannot set this config via configuration inside the diagram as it is a secure config.
9
+ You have to call mermaid.initialize.`)}isLinkData(i){return i!==null&&typeof i=="object"&&"id"in i&&typeof i.id=="string"}addLink(i,r,a){const n=this.isLinkData(a)?a.id.replace("@",""):void 0;te.info("addLink",i,r,n);for(const l of i)for(const g of r){const u=l===i[i.length-1],m=g===r[0];u&&m?this.addSingleLink(l,g,a,n):this.addSingleLink(l,g,a,void 0)}}updateLinkInterpolate(i,r){i.forEach(a=>{a==="default"?this.edges.defaultInterpolate=r:this.edges[a].interpolate=r})}updateLink(i,r){i.forEach(a=>{if(typeof a=="number"&&a>=this.edges.length)throw new Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);a==="default"?this.edges.defaultStyle=r:(this.edges[a].style=r,(this.edges[a]?.style?.length??0)>0&&!this.edges[a]?.style?.some(n=>n?.startsWith("fill"))&&this.edges[a]?.style?.push("fill:none"))})}addClass(i,r){const a=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");i.split(",").forEach(n=>{let l=this.classes.get(n);l===void 0&&(l={id:n,styles:[],textStyles:[]},this.classes.set(n,l)),a?.forEach(g=>{if(/color/.exec(g)){const u=g.replace("fill","bgFill");l.textStyles.push(u)}l.styles.push(g)})})}setDirection(i){this.direction=i.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(i,r){for(const a of i.split(",")){const n=this.vertices.get(a);n&&n.classes.push(r);const l=this.edges.find(u=>u.id===a);l&&l.classes.push(r);const g=this.subGraphLookup.get(a);g&&g.classes.push(r)}}setTooltip(i,r){if(r!==void 0){r=this.sanitizeText(r);for(const a of i.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(a):a,r)}}setClickFun(i,r,a){if(ke().securityLevel!=="loose"||r===void 0)return;let n=[];if(typeof a=="string"){n=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let g=0;g<n.length;g++){let u=n[g].trim();u.startsWith('"')&&u.endsWith('"')&&(u=u.substr(1,u.length-2)),n[g]=u}}n.length===0&&n.push(i);const l=this.vertices.get(i);l&&(l.haveCallback=!0,this.funs.push(()=>{const g=this.lookUpDomId(i),u=document.querySelector(`[id="${g}"]`);u!==null&&u.addEventListener("click",()=>{rt.runFunc(r,...n)},!1)}))}setLink(i,r,a){i.split(",").forEach(n=>{const l=this.vertices.get(n);l!==void 0&&(l.link=rt.formatUrl(r,this.config),l.linkTarget=a)}),this.setClass(i,"clickable")}getTooltip(i){return this.tooltips.get(i)}setClickEvent(i,r,a){i.split(",").forEach(n=>{this.setClickFun(n,r,a)}),this.setClass(i,"clickable")}bindFunctions(i){this.funs.forEach(r=>{r(i)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(i){const r=A1();it(i).select("svg").selectAll("g.node").on("mouseover",l=>{const g=it(l.currentTarget),u=g.attr("title");if(u===null)return;const m=l.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(g.attr("title")).style("left",window.scrollX+m.left+(m.right-m.left)/2+"px").style("top",window.scrollY+m.bottom+"px"),r.html(c1.sanitize(u)),g.classed("hover",!0)}).on("mouseout",l=>{r.transition().duration(500).style("opacity",0),it(l.currentTarget).classed("hover",!1)})}clear(i="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=i,this.config=ke(),h1()}setGen(i){this.version=i||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(i,r,a){let n=i.text.trim(),l=a.text;i===a&&/\s/.exec(a.text)&&(n=void 0);const u=C(V=>{const b={boolean:{},number:{},string:{}},A=[];let x;return{nodeList:V.filter(function(j){const c=typeof j;return j.stmt&&j.stmt==="dir"?(x=j.value,!1):j.trim()===""?!1:c in b?b[c].hasOwnProperty(j)?!1:b[c][j]=!0:A.includes(j)?!1:A.push(j)}),dir:x}},"uniq")(r.flat()),m=u.nodeList;let h=u.dir;const y=ke().flowchart??{};if(h=h??(y.inheritDir?this.getDirection()??ke().direction??void 0:void 0),this.version==="gen-1")for(let V=0;V<m.length;V++)m[V]=this.lookUpDomId(m[V]);n=n??"subGraph"+this.subCount,l=l||"",l=this.sanitizeText(l),this.subCount=this.subCount+1;const v={id:n,nodes:m,title:l.trim(),classes:[],dir:h,labelType:this.sanitizeNodeLabelType(a?.type)};return te.info("Adding",v.id,v.nodes,v.dir),v.nodes=this.makeUniq(v,this.subGraphs).nodes,this.subGraphs.push(v),this.subGraphLookup.set(n,v),n}getPosForId(i){for(const[r,a]of this.subGraphs.entries())if(a.id===i)return r;return-1}indexNodes2(i,r){const a=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===i)return{result:!0,count:0};let n=0,l=1;for(;n<a.length;){const g=this.getPosForId(a[n]);if(g>=0){const u=this.indexNodes2(i,g);if(u.result)return{result:!0,count:l+u.count};l=l+u.count}n=n+1}return{result:!1,count:l}}getDepthFirstPos(i){return this.posCrossRef[i]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(i){let r=i.trim(),a="arrow_open";switch(r[0]){case"<":a="arrow_point",r=r.slice(1);break;case"x":a="arrow_cross",r=r.slice(1);break;case"o":a="arrow_circle",r=r.slice(1);break}let n="normal";return r.includes("=")&&(n="thick"),r.includes(".")&&(n="dotted"),{type:a,stroke:n}}countChar(i,r){const a=r.length;let n=0;for(let l=0;l<a;++l)r[l]===i&&++n;return n}destructEndLink(i){const r=i.trim();let a=r.slice(0,-1),n="arrow_open";switch(r.slice(-1)){case"x":n="arrow_cross",r.startsWith("x")&&(n="double_"+n,a=a.slice(1));break;case">":n="arrow_point",r.startsWith("<")&&(n="double_"+n,a=a.slice(1));break;case"o":n="arrow_circle",r.startsWith("o")&&(n="double_"+n,a=a.slice(1));break}let l="normal",g=a.length-1;a.startsWith("=")&&(l="thick"),a.startsWith("~")&&(l="invisible");const u=this.countChar(".",a);return u&&(l="dotted",g=u),{type:n,stroke:l,length:g}}destructLink(i,r){const a=this.destructEndLink(i);let n;if(r){if(n=this.destructStartLink(r),n.stroke!==a.stroke)return{type:"INVALID",stroke:"INVALID"};if(n.type==="arrow_open")n.type=a.type;else{if(n.type!==a.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return n.type==="double_arrow"&&(n.type="double_arrow_point"),n.length=a.length,n}return a}exists(i,r){for(const a of i)if(a.nodes.includes(r))return!0;return!1}makeUniq(i,r){const a=[];return i.nodes.forEach((n,l)=>{this.exists(r,n)||a.push(i.nodes[l])}),{nodes:a}}getTypeFromVertex(i){if(i.img)return"imageSquare";if(i.icon)return i.form==="circle"?"iconCircle":i.form==="square"?"iconSquare":i.form==="rounded"?"iconRounded":"icon";switch(i.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return i.type}}findNode(i,r){return i.find(a=>a.id===r)}destructEdgeType(i){let r="none",a="arrow_point";switch(i){case"arrow_point":case"arrow_circle":case"arrow_cross":a=i;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=i.replace("double_",""),a=r;break}return{arrowTypeStart:r,arrowTypeEnd:a}}addNodeFromVertex(i,r,a,n,l,g){const u=a.get(i.id),m=n.get(i.id)??!1,h=this.findNode(r,i.id);if(h)h.cssStyles=i.styles,h.cssCompiledStyles=this.getCompiledStyles(i.classes),h.cssClasses=i.classes.join(" ");else{const y={id:i.id,label:i.text,labelType:i.labelType,labelStyle:"",parentId:u,padding:l.flowchart?.padding||8,cssStyles:i.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...i.classes]),cssClasses:"default "+i.classes.join(" "),dir:i.dir,domId:i.domId,look:g,link:i.link,linkTarget:i.linkTarget,tooltip:this.getTooltip(i.id),icon:i.icon,pos:i.pos,img:i.img,assetWidth:i.assetWidth,assetHeight:i.assetHeight,constraint:i.constraint};m?r.push({...y,isGroup:!0,shape:"rect"}):r.push({...y,isGroup:!1,shape:this.getTypeFromVertex(i),minWidth:l.flowchart?.minNodeWidth})}}getCompiledStyles(i){let r=[];for(const a of i){const n=this.classes.get(a);n?.styles&&(r=[...r,...n.styles??[]].map(l=>l.trim())),n?.textStyles&&(r=[...r,...n.textStyles??[]].map(l=>l.trim()))}return r}getData(){const i=ke(),r=[],a=[],n=this.getSubGraphs(),l=new Map,g=new Map,u=new Map;for(const c of n)for(const f of c.nodes)this.subGraphLookup.has(f)&&u.set(f,c.id);const m=new Map,h=new Map;for(const c of n){const f=u.get(c.id);f!==void 0&&h.set(f,[...h.get(f)??[],c.id])}let y=0;const v=C(c=>{m.set(c,y++);for(const f of h.get(c)??[])v(f)},"walk");for(const c of n)u.has(c.id)||v(c.id);const V=C(c=>this.subGraphLookup.get(c)?.metadata?.view==="collapsed","isCollapsed"),b=C(c=>{let f;const q=new Set;let F=c;for(;F!==void 0&&!q.has(F);)q.add(F),V(F)&&(f=F),F=u.get(F);return f},"outermostCollapsed"),A=new Set,x=new Map;for(const c of n){const f=b(c.id);if(f!==void 0){c.id!==f&&(A.add(c.id),x.set(c.id,f));for(const q of c.nodes)q!==f&&(A.add(q),x.set(q,f))}}for(let c=n.length-1;c>=0;c--){const f=n[c];if(!A.has(f.id)){f.nodes.length>0&&g.set(f.id,!0);for(const q of f.nodes)l.set(q,f.id)}}for(let c=n.length-1;c>=0;c--){const f=n[c];A.has(f.id)||(f.metadata?.view==="collapsed"?r.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:l.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:"collapsedGroup",dir:f.dir,isGroup:!1,look:i.look,colorIndex:m.get(f.id)}):r.push({id:f.id,label:f.title,labelStyle:"",labelType:f.labelType,parentId:l.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:"rect",dir:f.dir,isGroup:!0,look:i.look,colorIndex:m.get(f.id),metadata:f.metadata}))}this.getVertices().forEach(c=>{A.has(c.id)||this.addNodeFromVertex(c,r,l,g,i,i.look||"classic")});const j=this.getEdges();return j.forEach((c,f)=>{const{arrowTypeStart:q,arrowTypeEnd:F}=this.destructEdgeType(c.type),I=[...j.defaultStyle??[]],R=x.get(c.start)??c.start,N=x.get(c.end)??c.end;if(R===N&&(x.has(c.start)||x.has(c.end)))return;c.style&&I.push(...c.style);const G={id:st(R,N,{counter:f,prefix:"L"},c.id),isUserDefinedId:c.isUserDefinedId,start:R,end:N,type:c.type??"normal",label:c.text,labelType:c.labelType,labelpos:"c",thickness:c.stroke,minlen:c.length,classes:c?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:c?.stroke==="invisible"||c?.type==="arrow_open"?"none":q,arrowTypeEnd:c?.stroke==="invisible"||c?.type==="arrow_open"?"none":F,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(c.classes),labelStyle:I,style:I,pattern:c.stroke,look:i.look,animate:c.animate,animation:c.animation,curve:c.interpolate||this.edges.defaultInterpolate||i.flowchart?.curve};a.push(G)}),{nodes:r,edges:a,other:{},config:i}}defaultConfig(){return d1.flowchart}},C(Pe,"FlowDB"),Pe),T1=C(function(s,i){return i.db.getClasses()},"getClasses"),S1=C(async function(s,i,r,a){te.info("REF0:"),te.info("Drawing state diagram (v2)",i);const{securityLevel:n,flowchart:l,layout:g}=ke();a.db.setDiagramId(i),te.debug("Before getData: ");const u=a.db.getData();te.debug("Data: ",u);const m=Xt(i,n),h=a.db.getDirection();u.type=a.type,u.layoutAlgorithm=Zt(g),u.direction=h,u.nodeSpacing=l?.nodeSpacing||50,u.rankSpacing=l?.rankSpacing||50,u.markers=["point","circle","cross"],u.diagramId=i,te.debug("REF1:",u),await $t(u,m);const y=u.config.flowchart?.diagramPadding??8;rt.insertTitle(m,"flowchartTitleText",l?.titleTopMargin||0,a.db.getDiagramTitle()),Qt(m,y,"flowchart",l?.useMaxWidth||!1)},"draw"),E1={getClasses:T1,draw:S1},at=(function(){var s=C(function(be,d,p,k){for(p=p||{},k=be.length;k--;p[be[k]]=d);return p},"o"),i=[1,4],r=[1,3],a=[1,5],n=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],l=[2,2],g=[1,13],u=[1,14],m=[1,15],h=[1,16],y=[1,23],v=[1,25],V=[1,26],b=[1,27],A=[1,50],x=[1,49],De=[1,29],j=[1,30],c=[1,31],f=[1,32],q=[1,33],F=[1,45],I=[1,47],R=[1,43],N=[1,48],G=[1,44],O=[1,51],M=[1,46],U=[1,52],W=[1,53],Me=[1,34],Ue=[1,35],We=[1,36],ze=[1,37],je=[1,38],fe=[1,58],_=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],se=[1,62],ie=[1,61],re=[1,63],Te=[8,9,11,75,77,78],nt=[1,79],Se=[1,92],Ee=[1,97],ye=[1,96],xe=[1,93],Fe=[1,89],_e=[1,95],Be=[1,91],ve=[1,98],Le=[1,94],Ve=[1,99],we=[1,90],Ae=[8,9,10,11,40,75,77,78],K=[8,9,10,11,40,46,75,77,78],Q=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ut=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Ie=[44,60,89,102,105,106,109,111,114,115,116],ot=[1,122],lt=[1,123],Ke=[1,125],Ye=[1,124],ct=[44,60,62,74,89,102,105,106,109,111,114,115,116],ht=[1,134],dt=[1,148],pt=[1,149],ft=[1,150],gt=[1,151],bt=[1,136],kt=[1,138],At=[1,142],mt=[1,143],Ct=[1,144],Dt=[1,145],Tt=[1,146],St=[1,147],Et=[1,152],yt=[1,153],xt=[1,132],Ft=[1,133],_t=[1,140],Bt=[1,135],vt=[1,139],Lt=[1,137],Qe=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Vt=[1,155],wt=[1,157],w=[8,9,11],J=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],D=[1,177],Y=[1,173],H=[1,174],T=[1,178],S=[1,175],E=[1,176],Re=[77,116,119],B=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],It=[10,106],ge=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ae=[1,248],ne=[1,246],ue=[1,250],oe=[1,244],le=[1,245],ce=[1,247],he=[1,249],de=[1,251],Ne=[1,269],Rt=[8,9,11,106],ee=[8,9,10,11,60,84,105,106,109,110,111,112],Je={trace:C(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:C(function(d,p,k,o,L,e,Oe){var t=e.length-1;switch(L){case 2:this.$=[];break;case 3:(!Array.isArray(e[t])||e[t].length>0)&&e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 183:this.$=e[t];break;case 11:o.setDirection("TB"),this.$="TB";break;case 12:o.setDirection(e[t-1]),this.$=e[t-1];break;case 27:this.$=e[t-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=o.addSubGraph(e[t-6],e[t-1],e[t-4]);break;case 34:this.$=o.addSubGraph(e[t-3],e[t-1],e[t-3]);break;case 35:this.$=o.addSubGraph(void 0,e[t-1],void 0);break;case 37:this.$=e[t].trim(),o.setAccTitle(this.$);break;case 38:case 39:this.$=e[t].trim(),o.setAccDescription(this.$);break;case 43:this.$=e[t-1]+e[t];break;case 44:this.$=e[t];break;case 45:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t]),o.addLink(e[t-3].stmt,e[t-1],e[t-2]),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 46:o.addLink(e[t-2].stmt,e[t],e[t-1]),this.$={stmt:e[t],nodes:e[t].concat(e[t-2].nodes)};break;case 47:o.addLink(e[t-3].stmt,e[t-1],e[t-2]),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 48:this.$={stmt:e[t-1],nodes:e[t-1]};break;case 49:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t]),this.$={stmt:e[t-1],nodes:e[t-1],shapeData:e[t]};break;case 50:this.$={stmt:e[t],nodes:e[t]};break;case 51:this.$=[e[t]];break;case 52:o.addVertex(e[t-5][e[t-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t-4]),this.$=e[t-5].concat(e[t]);break;case 53:this.$=e[t-4].concat(e[t]);break;case 54:this.$=e[t];break;case 55:this.$=e[t-2],o.setClass(e[t-2],e[t]);break;case 56:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"square");break;case 57:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"doublecircle");break;case 58:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"circle");break;case 59:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"ellipse");break;case 60:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"stadium");break;case 61:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"subroutine");break;case 62:this.$=e[t-7],o.addVertex(e[t-7],e[t-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[t-5],e[t-3]]]));break;case 63:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"cylinder");break;case 64:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"round");break;case 65:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"diamond");break;case 66:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"hexagon");break;case 67:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"odd");break;case 68:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"trapezoid");break;case 69:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"inv_trapezoid");break;case 70:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_right");break;case 71:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_left");break;case 72:this.$=e[t],o.addVertex(e[t]);break;case 73:e[t-1].text=e[t],this.$=e[t-1];break;case 74:case 75:e[t-2].text=e[t-1],this.$=e[t-2];break;case 76:this.$=e[t];break;case 77:var P=o.destructLink(e[t],e[t-2]);this.$={type:P.type,stroke:P.stroke,length:P.length,text:e[t-1]};break;case 78:var P=o.destructLink(e[t],e[t-2]);this.$={type:P.type,stroke:P.stroke,length:P.length,text:e[t-1],id:e[t-3]};break;case 79:this.$={text:e[t],type:"text"};break;case 80:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 81:this.$={text:e[t],type:"string"};break;case 82:this.$={text:e[t],type:"markdown"};break;case 83:var P=o.destructLink(e[t]);this.$={type:P.type,stroke:P.stroke,length:P.length};break;case 84:var P=o.destructLink(e[t]);this.$={type:P.type,stroke:P.stroke,length:P.length,id:e[t-1]};break;case 85:this.$=e[t-1];break;case 86:this.$={text:e[t],type:"text"};break;case 87:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 88:this.$={text:e[t],type:"string"};break;case 89:case 104:this.$={text:e[t],type:"markdown"};break;case 101:this.$={text:e[t],type:"text"};break;case 102:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 103:this.$={text:e[t],type:"text"};break;case 105:this.$=e[t-4],o.addClass(e[t-2],e[t]);break;case 106:this.$=e[t-4],o.setClass(e[t-2],e[t]);break;case 107:case 115:this.$=e[t-1],o.setClickEvent(e[t-1],e[t]);break;case 108:case 116:this.$=e[t-3],o.setClickEvent(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 109:this.$=e[t-2],o.setClickEvent(e[t-2],e[t-1],e[t]);break;case 110:this.$=e[t-4],o.setClickEvent(e[t-4],e[t-3],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 111:this.$=e[t-2],o.setLink(e[t-2],e[t]);break;case 112:this.$=e[t-4],o.setLink(e[t-4],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 113:this.$=e[t-4],o.setLink(e[t-4],e[t-2],e[t]);break;case 114:this.$=e[t-6],o.setLink(e[t-6],e[t-4],e[t]),o.setTooltip(e[t-6],e[t-2]);break;case 117:this.$=e[t-1],o.setLink(e[t-1],e[t]);break;case 118:this.$=e[t-3],o.setLink(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 119:this.$=e[t-3],o.setLink(e[t-3],e[t-2],e[t]);break;case 120:this.$=e[t-5],o.setLink(e[t-5],e[t-4],e[t]),o.setTooltip(e[t-5],e[t-2]);break;case 121:this.$=e[t-4],o.addVertex(e[t-2],void 0,void 0,e[t]);break;case 122:this.$=e[t-4],o.updateLink([e[t-2]],e[t]);break;case 123:this.$=e[t-4],o.updateLink(e[t-2],e[t]);break;case 124:this.$=e[t-8],o.updateLinkInterpolate([e[t-6]],e[t-2]),o.updateLink([e[t-6]],e[t]);break;case 125:this.$=e[t-8],o.updateLinkInterpolate(e[t-6],e[t-2]),o.updateLink(e[t-6],e[t]);break;case 126:this.$=e[t-6],o.updateLinkInterpolate([e[t-4]],e[t]);break;case 127:this.$=e[t-6],o.updateLinkInterpolate(e[t-4],e[t]);break;case 128:case 130:this.$=[e[t]];break;case 129:case 131:e[t-2].push(e[t]),this.$=e[t-2];break;case 133:this.$=e[t-1]+e[t];break;case 181:this.$=e[t];break;case 182:this.$=e[t-1]+""+e[t];break;case 184:this.$=e[t-1]+""+e[t];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:a},{1:[3]},s(n,l,{5:6}),{4:7,9:i,10:r,12:a},{4:8,9:i,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:g,9:u,10:m,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:y,33:24,34:v,36:V,38:b,42:28,43:39,44:A,45:40,47:41,60:x,84:De,85:j,86:c,87:f,88:q,89:F,102:I,105:R,106:N,109:G,111:O,113:42,114:M,115:U,116:W,121:Me,122:Ue,123:We,124:ze,125:je},s(n,[2,9]),s(n,[2,10]),s(n,[2,11]),{8:[1,55],9:[1,56],10:fe,15:54,18:57},s(_,[2,3]),s(_,[2,4]),s(_,[2,5]),s(_,[2,6]),s(_,[2,7]),s(_,[2,8]),{8:se,9:ie,11:re,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:se,9:ie,11:re,21:68},{8:se,9:ie,11:re,21:69},{8:se,9:ie,11:re,21:70},{8:se,9:ie,11:re,21:71},{8:se,9:ie,11:re,21:72},{8:se,9:ie,10:[1,73],11:re,21:74},s(_,[2,36]),{35:[1,75]},{37:[1,76]},s(_,[2,39]),s(Te,[2,50],{18:77,39:78,10:fe,40:nt}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Se,44:Ee,60:ye,80:[1,87],89:xe,95:[1,84],97:[1,85],101:86,105:Fe,106:_e,109:Be,111:ve,114:Le,115:Ve,116:we,120:88},s(_,[2,185]),s(_,[2,186]),s(_,[2,187]),s(_,[2,188]),s(_,[2,189]),s(Ae,[2,51]),s(Ae,[2,54],{46:[1,100]}),s(K,[2,72],{113:113,29:[1,101],44:A,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:x,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:F,102:I,105:R,106:N,109:G,111:O,114:M,115:U,116:W}),s(Q,[2,181]),s(Q,[2,142]),s(Q,[2,143]),s(Q,[2,144]),s(Q,[2,145]),s(Q,[2,146]),s(Q,[2,147]),s(Q,[2,148]),s(Q,[2,149]),s(Q,[2,150]),s(Q,[2,151]),s(Q,[2,152]),s(n,[2,12]),s(n,[2,18]),s(n,[2,19]),{9:[1,114]},s(ut,[2,26],{18:115,10:fe}),s(_,[2,27]),{42:116,43:39,44:A,45:40,47:41,60:x,89:F,102:I,105:R,106:N,109:G,111:O,113:42,114:M,115:U,116:W},s(_,[2,40]),s(_,[2,41]),s(_,[2,42]),s(Ie,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ot,81:lt,116:Ke,119:Ye},{75:[1,126],77:[1,127]},s(ct,[2,83]),s(_,[2,28]),s(_,[2,29]),s(_,[2,30]),s(_,[2,31]),s(_,[2,32]),{10:ht,12:dt,14:pt,27:ft,28:128,32:gt,44:bt,60:kt,75:At,80:[1,130],81:[1,131],83:141,84:mt,85:Ct,86:Dt,87:Tt,88:St,89:Et,90:yt,91:129,105:xt,109:Ft,111:_t,114:Bt,115:vt,116:Lt},s(Qe,l,{5:154}),s(_,[2,37]),s(_,[2,38]),s(Te,[2,48],{44:Vt}),s(Te,[2,49],{18:156,10:fe,40:wt}),s(Ae,[2,44]),{44:A,47:158,60:x,89:F,102:I,105:R,106:N,109:G,111:O,113:42,114:M,115:U,116:W},{102:[1,159],103:160,105:[1,161]},{44:A,47:162,60:x,89:F,102:I,105:R,106:N,109:G,111:O,113:42,114:M,115:U,116:W},{44:A,47:163,60:x,89:F,102:I,105:R,106:N,109:G,111:O,113:42,114:M,115:U,116:W},s(w,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},s(w,[2,115],{120:168,10:[1,167],14:Se,44:Ee,60:ye,89:xe,105:Fe,106:_e,109:Be,111:ve,114:Le,115:Ve,116:we}),s(w,[2,117],{10:[1,169]}),s(J,[2,183]),s(J,[2,170]),s(J,[2,171]),s(J,[2,172]),s(J,[2,173]),s(J,[2,174]),s(J,[2,175]),s(J,[2,176]),s(J,[2,177]),s(J,[2,178]),s(J,[2,179]),s(J,[2,180]),{44:A,47:170,60:x,89:F,102:I,105:R,106:N,109:G,111:O,113:42,114:M,115:U,116:W},{30:171,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},{30:179,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},{30:181,50:[1,180],67:D,80:Y,81:H,82:172,116:T,117:S,118:E},{30:182,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},{30:183,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},{30:184,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},{109:[1,185]},{30:186,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},{30:187,65:[1,188],67:D,80:Y,81:H,82:172,116:T,117:S,118:E},{30:189,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},{30:190,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},{30:191,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},s(Q,[2,182]),s(n,[2,20]),s(ut,[2,25]),s(Te,[2,46],{39:192,18:193,10:fe,40:nt}),s(Ie,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},{77:[1,197],79:198,116:Ke,119:Ye},s(Re,[2,79]),s(Re,[2,81]),s(Re,[2,82]),s(Re,[2,168]),s(Re,[2,169]),{76:199,79:121,80:ot,81:lt,116:Ke,119:Ye},s(ct,[2,84]),{8:se,9:ie,10:ht,11:re,12:dt,14:pt,21:201,27:ft,29:[1,200],32:gt,44:bt,60:kt,75:At,83:141,84:mt,85:Ct,86:Dt,87:Tt,88:St,89:Et,90:yt,91:202,105:xt,109:Ft,111:_t,114:Bt,115:vt,116:Lt},s(B,[2,101]),s(B,[2,103]),s(B,[2,104]),s(B,[2,157]),s(B,[2,158]),s(B,[2,159]),s(B,[2,160]),s(B,[2,161]),s(B,[2,162]),s(B,[2,163]),s(B,[2,164]),s(B,[2,165]),s(B,[2,166]),s(B,[2,167]),s(B,[2,90]),s(B,[2,91]),s(B,[2,92]),s(B,[2,93]),s(B,[2,94]),s(B,[2,95]),s(B,[2,96]),s(B,[2,97]),s(B,[2,98]),s(B,[2,99]),s(B,[2,100]),{6:11,7:12,8:g,9:u,10:m,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,203],33:24,34:v,36:V,38:b,42:28,43:39,44:A,45:40,47:41,60:x,84:De,85:j,86:c,87:f,88:q,89:F,102:I,105:R,106:N,109:G,111:O,113:42,114:M,115:U,116:W,121:Me,122:Ue,123:We,124:ze,125:je},{10:fe,18:204},{44:[1,205]},s(Ae,[2,43]),{10:[1,206],44:A,60:x,89:F,102:I,105:R,106:N,109:G,111:O,113:113,114:M,115:U,116:W},{10:[1,207]},{10:[1,208],106:[1,209]},s(It,[2,128]),{10:[1,210],44:A,60:x,89:F,102:I,105:R,106:N,109:G,111:O,113:113,114:M,115:U,116:W},{10:[1,211],44:A,60:x,89:F,102:I,105:R,106:N,109:G,111:O,113:113,114:M,115:U,116:W},{80:[1,212]},s(w,[2,109],{10:[1,213]}),s(w,[2,111],{10:[1,214]}),{80:[1,215]},s(J,[2,184]),{80:[1,216],98:[1,217]},s(Ae,[2,55],{113:113,44:A,60:x,89:F,102:I,105:R,106:N,109:G,111:O,114:M,115:U,116:W}),{31:[1,218],67:D,82:219,116:T,117:S,118:E},s(ge,[2,86]),s(ge,[2,88]),s(ge,[2,89]),s(ge,[2,153]),s(ge,[2,154]),s(ge,[2,155]),s(ge,[2,156]),{49:[1,220],67:D,82:219,116:T,117:S,118:E},{30:221,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},{51:[1,222],67:D,82:219,116:T,117:S,118:E},{53:[1,223],67:D,82:219,116:T,117:S,118:E},{55:[1,224],67:D,82:219,116:T,117:S,118:E},{57:[1,225],67:D,82:219,116:T,117:S,118:E},{60:[1,226]},{64:[1,227],67:D,82:219,116:T,117:S,118:E},{66:[1,228],67:D,82:219,116:T,117:S,118:E},{30:229,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},{31:[1,230],67:D,82:219,116:T,117:S,118:E},{67:D,69:[1,231],71:[1,232],82:219,116:T,117:S,118:E},{67:D,69:[1,234],71:[1,233],82:219,116:T,117:S,118:E},s(Te,[2,45],{18:156,10:fe,40:wt}),s(Te,[2,47],{44:Vt}),s(Ie,[2,75]),s(Ie,[2,74]),{62:[1,235],67:D,82:219,116:T,117:S,118:E},s(Ie,[2,77]),s(Re,[2,80]),{77:[1,236],79:198,116:Ke,119:Ye},{30:237,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},s(Qe,l,{5:238}),s(B,[2,102]),s(_,[2,35]),{43:239,44:A,45:40,47:41,60:x,89:F,102:I,105:R,106:N,109:G,111:O,113:42,114:M,115:U,116:W},{10:fe,18:240},{10:ae,60:ne,84:ue,92:241,105:oe,107:242,108:243,109:le,110:ce,111:he,112:de},{10:ae,60:ne,84:ue,92:252,104:[1,253],105:oe,107:242,108:243,109:le,110:ce,111:he,112:de},{10:ae,60:ne,84:ue,92:254,104:[1,255],105:oe,107:242,108:243,109:le,110:ce,111:he,112:de},{105:[1,256]},{10:ae,60:ne,84:ue,92:257,105:oe,107:242,108:243,109:le,110:ce,111:he,112:de},{44:A,47:258,60:x,89:F,102:I,105:R,106:N,109:G,111:O,113:42,114:M,115:U,116:W},s(w,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},s(w,[2,116]),s(w,[2,118],{10:[1,262]}),s(w,[2,119]),s(K,[2,56]),s(ge,[2,87]),s(K,[2,57]),{51:[1,263],67:D,82:219,116:T,117:S,118:E},s(K,[2,64]),s(K,[2,59]),s(K,[2,60]),s(K,[2,61]),{109:[1,264]},s(K,[2,63]),s(K,[2,65]),{66:[1,265],67:D,82:219,116:T,117:S,118:E},s(K,[2,67]),s(K,[2,68]),s(K,[2,70]),s(K,[2,69]),s(K,[2,71]),s([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),s(Ie,[2,78]),{31:[1,266],67:D,82:219,116:T,117:S,118:E},{6:11,7:12,8:g,9:u,10:m,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,267],33:24,34:v,36:V,38:b,42:28,43:39,44:A,45:40,47:41,60:x,84:De,85:j,86:c,87:f,88:q,89:F,102:I,105:R,106:N,109:G,111:O,113:42,114:M,115:U,116:W,121:Me,122:Ue,123:We,124:ze,125:je},s(Ae,[2,53]),{43:268,44:A,45:40,47:41,60:x,89:F,102:I,105:R,106:N,109:G,111:O,113:42,114:M,115:U,116:W},s(w,[2,121],{106:Ne}),s(Rt,[2,130],{108:270,10:ae,60:ne,84:ue,105:oe,109:le,110:ce,111:he,112:de}),s(ee,[2,132]),s(ee,[2,134]),s(ee,[2,135]),s(ee,[2,136]),s(ee,[2,137]),s(ee,[2,138]),s(ee,[2,139]),s(ee,[2,140]),s(ee,[2,141]),s(w,[2,122],{106:Ne}),{10:[1,271]},s(w,[2,123],{106:Ne}),{10:[1,272]},s(It,[2,129]),s(w,[2,105],{106:Ne}),s(w,[2,106],{113:113,44:A,60:x,89:F,102:I,105:R,106:N,109:G,111:O,114:M,115:U,116:W}),s(w,[2,110]),s(w,[2,112],{10:[1,273]}),s(w,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:se,9:ie,11:re,21:278},s(_,[2,34]),s(Ae,[2,52]),{10:ae,60:ne,84:ue,105:oe,107:279,108:243,109:le,110:ce,111:he,112:de},s(ee,[2,133]),{14:Se,44:Ee,60:ye,89:xe,101:280,105:Fe,106:_e,109:Be,111:ve,114:Le,115:Ve,116:we,120:88},{14:Se,44:Ee,60:ye,89:xe,101:281,105:Fe,106:_e,109:Be,111:ve,114:Le,115:Ve,116:we,120:88},{98:[1,282]},s(w,[2,120]),s(K,[2,58]),{30:283,67:D,80:Y,81:H,82:172,116:T,117:S,118:E},s(K,[2,66]),s(Qe,l,{5:284}),s(Rt,[2,131],{108:270,10:ae,60:ne,84:ue,105:oe,109:le,110:ce,111:he,112:de}),s(w,[2,126],{120:168,10:[1,285],14:Se,44:Ee,60:ye,89:xe,105:Fe,106:_e,109:Be,111:ve,114:Le,115:Ve,116:we}),s(w,[2,127],{120:168,10:[1,286],14:Se,44:Ee,60:ye,89:xe,105:Fe,106:_e,109:Be,111:ve,114:Le,115:Ve,116:we}),s(w,[2,114]),{31:[1,287],67:D,82:219,116:T,117:S,118:E},{6:11,7:12,8:g,9:u,10:m,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,288],33:24,34:v,36:V,38:b,42:28,43:39,44:A,45:40,47:41,60:x,84:De,85:j,86:c,87:f,88:q,89:F,102:I,105:R,106:N,109:G,111:O,113:42,114:M,115:U,116:W,121:Me,122:Ue,123:We,124:ze,125:je},{10:ae,60:ne,84:ue,92:289,105:oe,107:242,108:243,109:le,110:ce,111:he,112:de},{10:ae,60:ne,84:ue,92:290,105:oe,107:242,108:243,109:le,110:ce,111:he,112:de},s(K,[2,62]),s(_,[2,33]),s(w,[2,124],{106:Ne}),s(w,[2,125],{106:Ne})],defaultActions:{},parseError:C(function(d,p){if(p.recoverable)this.trace(d);else{var k=new Error(d);throw k.hash=p,k}},"parseError"),parse:C(function(d){var p=this,k=[0],o=[],L=[null],e=[],Oe=this.table,t="",P=0,Nt=0,jt=2,Gt=1,Kt=e.slice.call(arguments,1),z=Object.create(this.lexer),me={yy:{}};for(var Ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ze)&&(me.yy[Ze]=this.yy[Ze]);z.setInput(d,me.yy),me.yy.lexer=z,me.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var $e=z.yylloc;e.push($e);var Yt=z.options&&z.options.ranges;typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ht(Z){k.length=k.length-2*Z,L.length=L.length-Z,e.length=e.length-Z}C(Ht,"popStack");function Pt(){var Z;return Z=o.pop()||z.lex()||Gt,typeof Z!="number"&&(Z instanceof Array&&(o=Z,Z=o.pop()),Z=p.symbols_[Z]||Z),Z}C(Pt,"lex");for(var X,Ce,$,et,Ge={},qe,pe,Ot,Xe;;){if(Ce=k[k.length-1],this.defaultActions[Ce]?$=this.defaultActions[Ce]:((X===null||typeof X>"u")&&(X=Pt()),$=Oe[Ce]&&Oe[Ce][X]),typeof $>"u"||!$.length||!$[0]){var tt="";Xe=[];for(qe in Oe[Ce])this.terminals_[qe]&&qe>jt&&Xe.push("'"+this.terminals_[qe]+"'");z.showPosition?tt="Parse error on line "+(P+1)+`:
10
+ `+z.showPosition()+`
11
+ Expecting `+Xe.join(", ")+", got '"+(this.terminals_[X]||X)+"'":tt="Parse error on line "+(P+1)+": Unexpected "+(X==Gt?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(tt,{text:z.match,token:this.terminals_[X]||X,line:z.yylineno,loc:$e,expected:Xe})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ce+", token: "+X);switch($[0]){case 1:k.push(X),L.push(z.yytext),e.push(z.yylloc),k.push($[1]),X=null,Nt=z.yyleng,t=z.yytext,P=z.yylineno,$e=z.yylloc;break;case 2:if(pe=this.productions_[$[1]][1],Ge.$=L[L.length-pe],Ge._$={first_line:e[e.length-(pe||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(pe||1)].first_column,last_column:e[e.length-1].last_column},Yt&&(Ge._$.range=[e[e.length-(pe||1)].range[0],e[e.length-1].range[1]]),et=this.performAction.apply(Ge,[t,Nt,P,me.yy,$[1],L,e].concat(Kt)),typeof et<"u")return et;pe&&(k=k.slice(0,-1*pe*2),L=L.slice(0,-1*pe),e=e.slice(0,-1*pe)),k.push(this.productions_[$[1]][0]),L.push(Ge.$),e.push(Ge._$),Ot=Oe[k[k.length-2]][k[k.length-1]],k.push(Ot);break;case 3:return!0}}return!0},"parse")},zt=(function(){var be={EOF:1,parseError:C(function(p,k){if(this.yy.parser)this.yy.parser.parseError(p,k);else throw new Error(p)},"parseError"),setInput:C(function(d,p){return this.yy=p||this.yy||{},this._input=d,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:C(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var p=d.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},"input"),unput:C(function(d){var p=d.length,k=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var o=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),k.length-1&&(this.yylineno-=k.length-1);var L=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:k?(k.length===o.length?this.yylloc.first_column:0)+o[o.length-k.length].length-k[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[L[0],L[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:C(function(){return this._more=!0,this},"more"),reject:C(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:C(function(d){this.unput(this.match.slice(d))},"less"),pastInput:C(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:C(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:C(function(){var d=this.pastInput(),p=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
13
+ `+p+"^"},"showPosition"),test_match:C(function(d,p){var k,o,L;if(this.options.backtrack_lexer&&(L={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&&(L.yylloc.range=this.yylloc.range.slice(0))),o=d[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,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(d[0].length),this.matched+=d[0],k=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),k)return k;if(this._backtrack){for(var e in L)this[e]=L[e];return!1}return!1},"test_match"),next:C(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var d,p,k,o;this._more||(this.yytext="",this.match="");for(var L=this._currentRules(),e=0;e<L.length;e++)if(k=this._input.match(this.rules[L[e]]),k&&(!p||k[0].length>p[0].length)){if(p=k,o=e,this.options.backtrack_lexer){if(d=this.test_match(k,L[e]),d!==!1)return d;if(this._backtrack){p=!1;continue}else return!1}else if(!this.options.flex)break}return p?(d=this.test_match(p,L[o]),d!==!1?d:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
14
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:C(function(){var p=this.next();return p||this.lex()},"lex"),begin:C(function(p){this.conditionStack.push(p)},"begin"),popState:C(function(){var p=this.conditionStack.length-1;return p>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:C(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:C(function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},"topState"),pushState:C(function(p){this.begin(p)},"pushState"),stateStackSize:C(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:C(function(p,k,o,L){switch(o){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),k.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const e=/\n\s*/g;return k.yytext=k.yytext.replace(e,"<br/>"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return p.lex.firstGraph()&&this.begin("dir"),12;case 36:return p.lex.firstGraph()&&this.begin("dir"),12;case 37:return p.lex.firstGraph()&&this.begin("dir"),12;case 38:return p.lex.firstGraph()&&this.begin("dir"),12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;case 71:return this.pushState("edgeText"),75;case 72:return 119;case 73:return this.popState(),77;case 74:return this.pushState("thickEdgeText"),75;case 75:return 119;case 76:return this.popState(),77;case 77:return this.pushState("dottedEdgeText"),75;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;case 83:return this.popState(),55;case 84:return this.pushState("text"),54;case 85:return this.popState(),57;case 86:return this.pushState("text"),56;case 87:return 58;case 88:return this.pushState("text"),67;case 89:return this.popState(),64;case 90:return this.pushState("text"),63;case 91:return this.popState(),49;case 92:return this.pushState("text"),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState("trapText"),68;case 97:return this.pushState("trapText"),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState("text"),62;case 111:return this.popState(),51;case 112:return this.pushState("text"),50;case 113:return this.popState(),31;case 114:return this.pushState("text"),29;case 115:return this.popState(),66;case 116:return this.pushState("text"),65;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-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])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return be})();Je.lexer=zt;function He(){this.yy={}}return C(He,"Parser"),He.prototype=Je,Je.Parser=He,new He})();at.parser=at;var Mt=at,Ut=Object.assign({},Mt);Ut.parse=s=>{const i=s.replace(/}\s*\n/g,`}
15
+ `);return Mt.parse(i)};var y1=Ut,x1=C(s=>{const{theme:i,bkgColorArray:r,borderColorArray:a}=s;if(!p1(i,a))return"";const n=f1(s.look),l=g1(r);let g="";for(let u=0;u<b1(s.THEME_COLOR_LIMIT,a);u++){const m=a[u%a.length],h=l?`fill: ${r[u%r.length]};`:"",y=`[data-look="${n}"][data-color-id="color-${u}"]`,v=C(b=>`${y}.node ${b}, ${y}.rough-node ${b}`,"collapsedRule"),V=C(b=>`${y}.swimlane.cluster .swimlane-title${b}, ${y}.swimlane.cluster .swimlane-body${b}`,"laneRule");g+=`
16
+
17
+ ${y}.cluster:not(.swimlane) rect {
18
+ stroke: ${m};
19
+ ${h}
20
+ }
21
+
22
+ ${y}.cluster:not(.swimlane) path {
23
+ stroke: ${m};
24
+ ${h}
25
+ }
26
+
27
+ /* Lane, classic and neo. */
28
+ ${y}.swimlane.cluster rect.swimlane-title,
29
+ ${y}.swimlane.cluster rect.swimlane-body {
30
+ stroke: ${m};
31
+ ${h}
32
+ }
33
+
34
+ /* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */
35
+ ${V(" path:nth-of-type(2)")} {
36
+ stroke: ${m};
37
+ }
38
+ ${l?`
39
+ /* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */
40
+ ${V(" path:first-of-type")} {
41
+ stroke: ${r[u%r.length]};
42
+ }
43
+ `:""}
44
+ ${v(".collapsed-group")},
45
+ ${v(".collapsed-group path")} {
46
+ stroke: ${m};
47
+ ${h}
48
+ }
49
+
50
+ /* The ellipsis dots and the separator take clusterBorder further down, so without
51
+ these the container is palette-coloured while its own markers are not. */
52
+ ${v(".collapsed-indicator")} {
53
+ fill: ${m};
54
+ }
55
+
56
+ ${v(".collapsed-separator")} {
57
+ stroke: ${m};
58
+ }
59
+ `}return g},"genColor"),F1=C((s,i)=>{const r=m1,a=r(s,"r"),n=r(s,"g"),l=r(s,"b");return k1(a,n,l,i)},"fade"),_1=C(s=>`${x1(s)}
60
+ .label {
61
+ font-family: ${s.fontFamily};
62
+ color: ${s.nodeTextColor||s.textColor};
63
+ }
64
+ .cluster-label text {
65
+ fill: ${s.titleColor};
66
+ }
67
+ .cluster-label span {
68
+ color: ${s.titleColor};
69
+ }
70
+ .cluster-label span p {
71
+ background-color: transparent;
72
+ }
73
+
74
+ .label text,span {
75
+ fill: ${s.nodeTextColor||s.textColor};
76
+ color: ${s.nodeTextColor||s.textColor};
77
+ }
78
+
79
+ .node rect,
80
+ .node circle,
81
+ .node ellipse,
82
+ .node polygon,
83
+ .node path {
84
+ fill: ${s.mainBkg};
85
+ stroke: ${s.nodeBorder};
86
+ stroke-width: ${s.strokeWidth??1}px;
87
+ }
88
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
89
+ text-anchor: middle;
90
+ }
91
+
92
+ .node .katex path {
93
+ fill: #000;
94
+ stroke: #000;
95
+ stroke-width: 1px;
96
+ }
97
+
98
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
99
+ text-align: center;
100
+ }
101
+ .node.clickable {
102
+ cursor: pointer;
103
+ }
104
+
105
+
106
+ .root .anchor path {
107
+ fill: ${s.lineColor} !important;
108
+ stroke-width: 0;
109
+ stroke: ${s.lineColor};
110
+ }
111
+
112
+ .arrowheadPath {
113
+ fill: ${s.arrowheadColor};
114
+ }
115
+
116
+ .edgePaths .path {
117
+ stroke: ${s.lineColor};
118
+ stroke-width: ${s.strokeWidth??2}px;
119
+ }
120
+
121
+ .flowchart-link {
122
+ stroke: ${s.lineColor};
123
+ fill: none;
124
+ }
125
+
126
+ .edgeLabel {
127
+ background-color: ${s.edgeLabelBackground};
128
+ p {
129
+ background-color: ${s.edgeLabelBackground};
130
+ }
131
+ rect {
132
+ opacity: 0.5;
133
+ background-color: ${s.edgeLabelBackground};
134
+ fill: ${s.edgeLabelBackground};
135
+ }
136
+ text-align: center;
137
+ }
138
+
139
+ /* For html labels only */
140
+ .labelBkg {
141
+ background-color: ${F1(s.edgeLabelBackground,.5)};
142
+ // background-color:
143
+ }
144
+
145
+ .cluster rect {
146
+ fill: ${s.clusterBkg};
147
+ stroke: ${s.clusterBorder};
148
+ stroke-width: 1px;
149
+ }
150
+
151
+ .cluster text {
152
+ fill: ${s.titleColor};
153
+ }
154
+
155
+ .cluster span {
156
+ color: ${s.titleColor};
157
+ }
158
+ /* .cluster div {
159
+ color: ${s.titleColor};
160
+ } */
161
+
162
+ /* Collapsed subgraph node (@{ view: collapsed }) */
163
+ .node .collapsed-indicator {
164
+ fill: ${s.clusterBorder};
165
+ stroke: none;
166
+ opacity: 0.6;
167
+ }
168
+
169
+ .node .collapsed-separator {
170
+ stroke: ${s.clusterBorder};
171
+ stroke-width: 0.75px;
172
+ }
173
+
174
+ div.mermaidTooltip {
175
+ position: absolute;
176
+ text-align: center;
177
+ max-width: 200px;
178
+ padding: 2px;
179
+ font-family: ${s.fontFamily};
180
+ font-size: 12px;
181
+ background: ${s.tertiaryColor};
182
+ border: 1px solid ${s.border2};
183
+ border-radius: 2px;
184
+ pointer-events: none;
185
+ z-index: 100;
186
+ }
187
+
188
+ .flowchartTitleText {
189
+ text-anchor: middle;
190
+ font-size: 18px;
191
+ fill: ${s.textColor};
192
+ }
193
+
194
+ rect.text {
195
+ fill: none;
196
+ stroke-width: 0;
197
+ }
198
+
199
+ .icon-shape, .image-shape {
200
+ background-color: ${s.edgeLabelBackground};
201
+ p {
202
+ background-color: ${s.edgeLabelBackground};
203
+ padding: 2px;
204
+ }
205
+ .label rect {
206
+ opacity: 0.5;
207
+ background-color: ${s.edgeLabelBackground};
208
+ fill: ${s.edgeLabelBackground};
209
+ }
210
+ text-align: center;
211
+ }
212
+ ${qt()}
213
+ `,"getStyles"),B1=_1,Wt=C(({styles:s=B1}={})=>({parser:y1,get db(){return new D1},renderer:E1,styles:s,init:C(i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,Jt({flowchart:{arrowMarkerAbsolute:i.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),v1=Wt();const G1=Object.freeze(Object.defineProperty({__proto__:null,createFlowDiagram:Wt,diagram:v1},Symbol.toStringTag,{value:"Module"}));export{Wt as c,G1 as f,B1 as s};