@orangelogic/design-system 2.162.0 → 2.164.0

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 (285) hide show
  1. package/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
  4. package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
  5. package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
  7. package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
  8. package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
  9. package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
  10. package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
  11. package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
  12. package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
  13. package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
  14. package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
  15. package/library/chunks/Slice.BVI8rfHI.js +34 -0
  16. package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
  17. package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
  18. package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
  19. package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
  20. package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
  21. package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
  22. package/library/chunks/_baseEach.DQk0As2f.js +32 -0
  23. package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
  24. package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
  25. package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
  26. package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
  27. package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
  28. package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
  29. package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
  30. package/library/chunks/arc.xqNd6x9S.js +84 -0
  31. package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
  32. package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.0q_MQOYh.js} +691 -635
  33. package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
  34. package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
  35. package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
  36. package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
  37. package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
  38. package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
  39. package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
  40. package/library/chunks/channel.s_XjcUYI.js +5 -0
  41. package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
  42. package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
  43. package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
  44. package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
  45. package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
  46. package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
  47. package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
  48. package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
  49. package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
  50. package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
  51. package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
  52. package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
  53. package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
  54. package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.ChP9amU9.js} +2576 -2723
  55. package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
  56. package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
  57. package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
  58. package/library/chunks/constant.BQ4UJ-kW.js +12 -0
  59. package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
  60. package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
  61. package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
  62. package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
  63. package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
  64. package/library/chunks/debounce.Bv1rtE8D.js +55 -0
  65. package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
  66. package/library/chunks/descending.AD5n-tFs.js +10 -0
  67. package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
  68. package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
  69. package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
  70. package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
  71. package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
  72. package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
  73. package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.Cng07M-1.js} +7 -7
  74. package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
  75. package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
  76. package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
  77. package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
  78. package/library/chunks/flow.aZRVH3p1.js +1304 -0
  79. package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
  80. package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dw1ZKZAq.js} +160 -140
  81. package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
  82. package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
  83. package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
  84. package/library/chunks/graph.XHMI5hta.js +653 -0
  85. package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
  86. package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
  87. package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
  88. package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
  89. package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
  90. package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
  91. package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
  92. package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
  93. package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
  94. package/library/chunks/index.BDn1QW8J.js +167 -0
  95. package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
  96. package/library/chunks/index.thKLME8E.js +77 -0
  97. package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
  98. package/library/chunks/init.DjUOC4st.js +16 -0
  99. package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
  100. package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
  101. package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
  102. package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
  103. package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
  104. package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
  105. package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
  106. package/library/chunks/katex.DoRnZ_sp.js +11682 -0
  107. package/library/chunks/layout.DZcMFKol.js +1446 -0
  108. package/library/chunks/line.DP-iSN_J.js +157 -0
  109. package/library/chunks/linear.TNHhsH1m.js +215 -0
  110. package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
  111. package/library/chunks/map.DJnohTgl.js +18 -0
  112. package/library/chunks/markdown.I1AJG75v.js +4180 -0
  113. package/library/chunks/math.D2lKC7md.js +22 -0
  114. package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
  115. package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
  116. package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
  117. package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
  118. package/library/chunks/ordinal.bqVaUip-.js +61 -0
  119. package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
  120. package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
  121. package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
  122. package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
  123. package/library/chunks/position-picker.DjnhxIKF.js +4 -0
  124. package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
  125. package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
  126. package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
  127. package/library/chunks/range.DdOGybNB.js +9 -0
  128. package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
  129. package/library/chunks/sankey.BR94A-8L.js +294 -0
  130. package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
  131. package/library/chunks/select.C6_sM3Pr.js +7 -0
  132. package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
  133. package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
  134. package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
  135. package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
  136. package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
  137. package/library/chunks/step.almIqwJ6.js +51 -0
  138. package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
  139. package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
  140. package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
  141. package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
  142. package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
  143. package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
  144. package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
  145. package/library/chunks/toNumber.MuDz8DgU.js +31 -0
  146. package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
  147. package/library/chunks/{toast.TDU3wVhq.js → toast.CXEAfCvN.js} +1 -1
  148. package/library/chunks/transformation.8uLv6uwG.js +264 -0
  149. package/library/chunks/{tree.C2dPd6gt.js → tree.vn5sHbdt.js} +123 -117
  150. package/library/chunks/value.BXEGBVFV.js +44 -0
  151. package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
  152. package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
  153. package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
  154. package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
  155. package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
  156. package/library/chunks/xy.BO6U5QrZ.js +294 -0
  157. package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
  158. package/library/components/alert.js +2 -2
  159. package/library/components/am-chart.js +3 -3
  160. package/library/components/animated-image.js +2 -2
  161. package/library/components/animation.js +2 -2
  162. package/library/components/array-line-clamp.js +1 -1
  163. package/library/components/asset-link-format.js +8 -7
  164. package/library/components/atoms.js +29 -29
  165. package/library/components/audio.js +3 -3
  166. package/library/components/avatar.js +2 -2
  167. package/library/components/border-input-group.js +1 -1
  168. package/library/components/breadcrumb-item.js +1 -1
  169. package/library/components/breadcrumb.js +1 -1
  170. package/library/components/button.js +3 -3
  171. package/library/components/checkbox.js +195 -18
  172. package/library/components/color-picker.js +4 -4
  173. package/library/components/color-swatch-group.js +5 -5
  174. package/library/components/color-swatch.js +2 -2
  175. package/library/components/confirm-popover.js +3 -3
  176. package/library/components/copy-button.js +2 -2
  177. package/library/components/corner-position-input-group.js +2 -2
  178. package/library/components/cropper.js +4 -4
  179. package/library/components/date-calendar.js +1 -1
  180. package/library/components/details.js +2 -2
  181. package/library/components/dialog.js +3 -3
  182. package/library/components/diff.js +1 -1
  183. package/library/components/divider.js +1 -1
  184. package/library/components/document-viewer.js +3 -3
  185. package/library/components/dot-pagination.js +2 -2
  186. package/library/components/drawer.js +3 -3
  187. package/library/components/dropdown.js +2 -2
  188. package/library/components/dynamic-select.js +6 -6
  189. package/library/components/e-chart.js +1 -1
  190. package/library/components/element-clamp.js +2 -2
  191. package/library/components/file-on-demand.js +350 -374
  192. package/library/components/folder-select.js +5 -5
  193. package/library/components/format-time.js +2 -2
  194. package/library/components/grid-item.js +1 -1
  195. package/library/components/header.js +2 -2
  196. package/library/components/hub-connection.js +2 -2
  197. package/library/components/icon-button.js +2 -2
  198. package/library/components/icon.js +2 -2
  199. package/library/components/iframe.js +2 -2
  200. package/library/components/image-comparer.js +2 -2
  201. package/library/components/image.js +3 -3
  202. package/library/components/include.js +1 -1
  203. package/library/components/input.js +3 -3
  204. package/library/components/line-clamp.js +1 -1
  205. package/library/components/markdown.js +11 -2704
  206. package/library/components/masonry.js +76 -73
  207. package/library/components/menu-item.js +2 -2
  208. package/library/components/molecules.js +3 -3
  209. package/library/components/mutation-observer.js +1 -1
  210. package/library/components/option.js +3 -3
  211. package/library/components/organisms.js +2 -2
  212. package/library/components/padding-input-group.js +1 -1
  213. package/library/components/pagination.js +6 -6
  214. package/library/components/position-picker.js +25 -25
  215. package/library/components/qr-code.js +1 -1
  216. package/library/components/radio-button.js +1 -1
  217. package/library/components/radio-card.js +1 -1
  218. package/library/components/radio-group.js +1 -1
  219. package/library/components/radio.js +2 -2
  220. package/library/components/range.js +1 -1
  221. package/library/components/rating.js +2 -2
  222. package/library/components/resize-observer.js +1 -1
  223. package/library/components/select.js +3 -3
  224. package/library/components/shadow-input-group.js +1 -1
  225. package/library/components/share-option-list.js +2 -2
  226. package/library/components/sidebar.js +3 -3
  227. package/library/components/size-input-group.js +3 -3
  228. package/library/components/split-panel.js +1 -1
  229. package/library/components/step.js +1 -1
  230. package/library/components/stepper-wizard.js +1 -1
  231. package/library/components/stepper.js +1 -1
  232. package/library/components/switch.js +1 -1
  233. package/library/components/tab-group.js +4 -4
  234. package/library/components/tab-panel.js +1 -1
  235. package/library/components/tab.js +2 -2
  236. package/library/components/tag.js +1 -1
  237. package/library/components/textarea.js +1 -1
  238. package/library/components/timecode.js +1 -1
  239. package/library/components/tooltip.js +1 -1
  240. package/library/components/tree-item.js +4 -4
  241. package/library/components/tree.js +2 -2
  242. package/library/components/typeface.js +2 -2
  243. package/library/components/types.js +122327 -120686
  244. package/library/components/video.js +2 -2
  245. package/library/package.json +2 -1
  246. package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
  247. package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
  248. package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
  249. package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
  250. package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
  251. package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
  252. package/library/packages/events/src/events.d.ts +1 -0
  253. package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
  254. package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
  255. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
  256. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
  257. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
  258. package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
  259. package/library/packages/molecules/src/index.d.ts +1 -0
  260. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
  261. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
  262. package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
  263. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
  264. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
  265. package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
  266. package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
  267. package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
  268. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
  269. package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
  270. package/library/packages/types/src/asset-link-format.d.ts +19 -0
  271. package/library/packages/types/src/markdown-viewer.d.ts +12 -0
  272. package/library/packages/types/src/tree-item.d.ts +12 -0
  273. package/library/react-web-component.d.ts +86 -8
  274. package/library/utils.js +64 -65
  275. package/package.json +2 -1
  276. package/library/chunks/Slice.C5lVu2g_.js +0 -120
  277. package/library/chunks/_baseXor.VohG8cOH.js +0 -116
  278. package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
  279. package/library/chunks/checkbox.3i2j3PHc.js +0 -198
  280. package/library/chunks/content-builder.BU8X7I6V.js +0 -60
  281. package/library/chunks/debounce.C_J-9zJi.js +0 -82
  282. package/library/chunks/flow.hz0UDjCb.js +0 -1594
  283. package/library/chunks/index.DU0XUO4k.js +0 -176
  284. package/library/chunks/transformation.D1alV_s4.js +0 -189
  285. package/library/chunks/xy.BNgyrwGD.js +0 -333
@@ -0,0 +1,1642 @@
1
+ import { g as Xe } from "./chunk-5VM5RSS4.D0-lddDM.js";
2
+ import { g as Qe } from "./chunk-XXDRQBXY.CSOjab1V.js";
3
+ import { s as Je } from "./chunk-VR4S4FIN.BpryBs7q.js";
4
+ import { _ as k, X as Ze, G as Me, l as J, c as g1, u as $e, v as et, x as re, b as tt, s as st, n as it, a as rt, g as at, o as nt, j as ut, H as ot, J as lt, aV as ct, q as se, p as ht, aT as dt, r as pt } from "./mermaid.core.Dspbw7Ig.js";
5
+ import { f as ft } from "./chunk-32BRIVSS.BbIrVi3j.js";
6
+ import "./index.CrhRU5m8.js";
7
+ import "./transform.BuqENXeT.js";
8
+ import { p as gt } from "./purify.es.BIuh5IAZ.js";
9
+ import { c as bt } from "./channel.s_XjcUYI.js";
10
+ import { s as ie } from "./select.C6_sM3Pr.js";
11
+ var At = "flowchart-", G1, kt = (G1 = class {
12
+ // cspell:ignore funs
13
+ constructor() {
14
+ this.vertexCounter = 0, this.config = g1(), this.diagramId = "", this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = tt, this.setAccDescription = st, this.setDiagramTitle = it, this.getAccTitle = rt, this.getAccDescription = at, this.getDiagramTitle = nt, 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 = {
15
+ firstGraph: this.firstGraph.bind(this)
16
+ }, this.clear(), this.setGen("gen-2");
17
+ }
18
+ sanitizeText(i) {
19
+ return ut.sanitizeText(i, this.config);
20
+ }
21
+ sanitizeNodeLabelType(i) {
22
+ switch (i) {
23
+ case "markdown":
24
+ case "string":
25
+ case "text":
26
+ return i;
27
+ default:
28
+ return "markdown";
29
+ }
30
+ }
31
+ /**
32
+ * Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
33
+ * across multiple diagrams on the same page.
34
+ */
35
+ setDiagramId(i) {
36
+ this.diagramId = i;
37
+ }
38
+ /**
39
+ * Function to lookup domId from id in the graph definition.
40
+ * When diagramId is set, returns the prefixed version for DOM uniqueness.
41
+ *
42
+ * @param id - id of the node
43
+ */
44
+ lookUpDomId(i) {
45
+ for (const r of this.vertices.values())
46
+ if (r.id === i)
47
+ return this.diagramId ? `${this.diagramId}-${r.domId}` : r.domId;
48
+ return this.diagramId ? `${this.diagramId}-${i}` : i;
49
+ }
50
+ /**
51
+ * Function called by parser when a node definition has been found
52
+ */
53
+ addVertex(i, r, a, n, l, p, c = {}, g) {
54
+ if (!i || i.trim().length === 0)
55
+ return;
56
+ let u;
57
+ if (g !== void 0) {
58
+ let m;
59
+ g.includes(`
60
+ `) ? m = g + `
61
+ ` : m = `{
62
+ ` + g + `
63
+ }`, u = ot(m, { schema: lt });
64
+ }
65
+ const A = this.edges.find((m) => m.id === i);
66
+ if (A) {
67
+ const m = u;
68
+ m?.animate !== void 0 && (A.animate = m.animate), m?.animation !== void 0 && (A.animation = m.animation), m?.curve !== void 0 && (A.interpolate = m.curve);
69
+ return;
70
+ }
71
+ let v, b = this.vertices.get(i);
72
+ if (b === void 0 && (r === void 0 && a === void 0 && n !== void 0 && n !== null && J.warn(
73
+ `Style applied to unknown node "${i}". This may indicate a typo. The node will be created automatically.`
74
+ ), b = {
75
+ id: i,
76
+ labelType: "text",
77
+ domId: At + i + "-" + this.vertexCounter,
78
+ styles: [],
79
+ classes: []
80
+ }, this.vertices.set(i, b)), this.vertexCounter++, r !== void 0 ? (this.config = g1(), 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((m) => {
81
+ b.styles.push(m);
82
+ }), l?.forEach((m) => {
83
+ b.classes.push(m);
84
+ }), p !== void 0 && (b.dir = p), b.props === void 0 ? b.props = c : c !== void 0 && Object.assign(b.props, c), u !== void 0) {
85
+ if (u.shape) {
86
+ if (u.shape !== u.shape.toLowerCase() || u.shape.includes("_"))
87
+ throw new Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);
88
+ if (!ct(u.shape))
89
+ throw new Error(`No such shape: ${u.shape}.`);
90
+ b.type = u?.shape;
91
+ }
92
+ u?.label && (b.text = u?.label, b.labelType = this.sanitizeNodeLabelType(u?.labelType)), u?.icon && (b.icon = u?.icon, !u.label?.trim() && b.text === i && (b.text = "")), u?.form && (b.form = u?.form), u?.pos && (b.pos = u?.pos), u?.img && (b.img = u?.img, !u.label?.trim() && b.text === i && (b.text = "")), u?.constraint && (b.constraint = u.constraint), u.w && (b.assetWidth = Number(u.w)), u.h && (b.assetHeight = Number(u.h));
93
+ }
94
+ }
95
+ /**
96
+ * Function called by parser when a link/edge definition has been found
97
+ *
98
+ */
99
+ addSingleLink(i, r, a, n) {
100
+ const c = {
101
+ start: i,
102
+ end: r,
103
+ type: void 0,
104
+ text: "",
105
+ labelType: "text",
106
+ classes: [],
107
+ isUserDefinedId: !1,
108
+ interpolate: this.edges.defaultInterpolate
109
+ };
110
+ J.info("abc78 Got edge...", c);
111
+ const g = a.text;
112
+ if (g !== void 0 && (c.text = this.sanitizeText(g.text.trim()), c.text.startsWith('"') && c.text.endsWith('"') && (c.text = c.text.substring(1, c.text.length - 1)), c.labelType = this.sanitizeNodeLabelType(g.type)), a !== void 0 && (c.type = a.type, c.stroke = a.stroke, c.length = a.length > 10 ? 10 : a.length), n && !this.edges.some((u) => u.id === n))
113
+ c.id = n, c.isUserDefinedId = !0;
114
+ else {
115
+ const u = this.edges.filter((A) => A.start === c.start && A.end === c.end);
116
+ u.length === 0 ? c.id = se(c.start, c.end, { counter: 0, prefix: "L" }) : c.id = se(c.start, c.end, {
117
+ counter: u.length + 1,
118
+ prefix: "L"
119
+ });
120
+ }
121
+ if (this.edges.length < (this.config.maxEdges ?? 500))
122
+ J.info("Pushing edge..."), this.edges.push(c);
123
+ else
124
+ throw new Error(
125
+ `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
126
+
127
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
128
+ You cannot set this config via configuration inside the diagram as it is a secure config.
129
+ You have to call mermaid.initialize.`
130
+ );
131
+ }
132
+ isLinkData(i) {
133
+ return i !== null && typeof i == "object" && "id" in i && typeof i.id == "string";
134
+ }
135
+ addLink(i, r, a) {
136
+ const n = this.isLinkData(a) ? a.id.replace("@", "") : void 0;
137
+ J.info("addLink", i, r, n);
138
+ for (const l of i)
139
+ for (const p of r) {
140
+ const c = l === i[i.length - 1], g = p === r[0];
141
+ c && g ? this.addSingleLink(l, p, a, n) : this.addSingleLink(l, p, a, void 0);
142
+ }
143
+ }
144
+ /**
145
+ * Updates a link's line interpolation algorithm
146
+ */
147
+ updateLinkInterpolate(i, r) {
148
+ i.forEach((a) => {
149
+ a === "default" ? this.edges.defaultInterpolate = r : this.edges[a].interpolate = r;
150
+ });
151
+ }
152
+ /**
153
+ * Updates a link with a style
154
+ *
155
+ */
156
+ updateLink(i, r) {
157
+ i.forEach((a) => {
158
+ if (typeof a == "number" && a >= this.edges.length)
159
+ throw new Error(
160
+ `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.)`
161
+ );
162
+ 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"));
163
+ });
164
+ }
165
+ addClass(i, r) {
166
+ const a = r.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
167
+ i.split(",").forEach((n) => {
168
+ let l = this.classes.get(n);
169
+ l === void 0 && (l = { id: n, styles: [], textStyles: [] }, this.classes.set(n, l)), a?.forEach((p) => {
170
+ if (/color/.exec(p)) {
171
+ const c = p.replace("fill", "bgFill");
172
+ l.textStyles.push(c);
173
+ }
174
+ l.styles.push(p);
175
+ });
176
+ });
177
+ }
178
+ /**
179
+ * Called by parser when a graph definition is found, stores the direction of the chart.
180
+ *
181
+ */
182
+ setDirection(i) {
183
+ 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");
184
+ }
185
+ /**
186
+ * Called by parser when a special node is found, e.g. a clickable element.
187
+ *
188
+ * @param ids - Comma separated list of ids
189
+ * @param className - Class to add
190
+ */
191
+ setClass(i, r) {
192
+ for (const a of i.split(",")) {
193
+ const n = this.vertices.get(a);
194
+ n && n.classes.push(r);
195
+ const l = this.edges.find((c) => c.id === a);
196
+ l && l.classes.push(r);
197
+ const p = this.subGraphLookup.get(a);
198
+ p && p.classes.push(r);
199
+ }
200
+ }
201
+ setTooltip(i, r) {
202
+ if (r !== void 0) {
203
+ r = this.sanitizeText(r);
204
+ for (const a of i.split(","))
205
+ this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(a) : a, r);
206
+ }
207
+ }
208
+ setClickFun(i, r, a) {
209
+ if (g1().securityLevel !== "loose" || r === void 0)
210
+ return;
211
+ let n = [];
212
+ if (typeof a == "string") {
213
+ n = a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
214
+ for (let p = 0; p < n.length; p++) {
215
+ let c = n[p].trim();
216
+ c.startsWith('"') && c.endsWith('"') && (c = c.substr(1, c.length - 2)), n[p] = c;
217
+ }
218
+ }
219
+ n.length === 0 && n.push(i);
220
+ const l = this.vertices.get(i);
221
+ l && (l.haveCallback = !0, this.funs.push(() => {
222
+ const p = this.lookUpDomId(i), c = document.querySelector(`[id="${p}"]`);
223
+ c !== null && c.addEventListener(
224
+ "click",
225
+ () => {
226
+ re.runFunc(r, ...n);
227
+ },
228
+ !1
229
+ );
230
+ }));
231
+ }
232
+ /**
233
+ * Called by parser when a link is found. Adds the URL to the vertex data.
234
+ *
235
+ * @param ids - Comma separated list of ids
236
+ * @param linkStr - URL to create a link for
237
+ * @param target - Target attribute for the link
238
+ */
239
+ setLink(i, r, a) {
240
+ i.split(",").forEach((n) => {
241
+ const l = this.vertices.get(n);
242
+ l !== void 0 && (l.link = re.formatUrl(r, this.config), l.linkTarget = a);
243
+ }), this.setClass(i, "clickable");
244
+ }
245
+ getTooltip(i) {
246
+ return this.tooltips.get(i);
247
+ }
248
+ /**
249
+ * Called by parser when a click definition is found. Registers an event handler.
250
+ *
251
+ * @param ids - Comma separated list of ids
252
+ * @param functionName - Function to be called on click
253
+ * @param functionArgs - Arguments to be passed to the function
254
+ */
255
+ setClickEvent(i, r, a) {
256
+ i.split(",").forEach((n) => {
257
+ this.setClickFun(n, r, a);
258
+ }), this.setClass(i, "clickable");
259
+ }
260
+ bindFunctions(i) {
261
+ this.funs.forEach((r) => {
262
+ r(i);
263
+ });
264
+ }
265
+ getDirection() {
266
+ return this.direction?.trim();
267
+ }
268
+ /**
269
+ * Retrieval function for fetching the found nodes after parsing has completed.
270
+ *
271
+ */
272
+ getVertices() {
273
+ return this.vertices;
274
+ }
275
+ /**
276
+ * Retrieval function for fetching the found links after parsing has completed.
277
+ *
278
+ */
279
+ getEdges() {
280
+ return this.edges;
281
+ }
282
+ /**
283
+ * Retrieval function for fetching the found class definitions after parsing has completed.
284
+ *
285
+ */
286
+ getClasses() {
287
+ return this.classes;
288
+ }
289
+ setupToolTips(i) {
290
+ const r = ft();
291
+ ie(i).select("svg").selectAll("g.node").on("mouseover", (l) => {
292
+ const p = ie(l.currentTarget), c = p.attr("title");
293
+ if (c === null)
294
+ return;
295
+ const g = l.currentTarget?.getBoundingClientRect();
296
+ r.transition().duration(200).style("opacity", ".9"), r.text(p.attr("title")).style("left", window.scrollX + g.left + (g.right - g.left) / 2 + "px").style("top", window.scrollY + g.bottom + "px"), r.html(gt.sanitize(c)), p.classed("hover", !0);
297
+ }).on("mouseout", (l) => {
298
+ r.transition().duration(500).style("opacity", 0), ie(l.currentTarget).classed("hover", !1);
299
+ });
300
+ }
301
+ /**
302
+ * Clears the internal graph db so that a new graph can be parsed.
303
+ *
304
+ */
305
+ clear(i = "gen-2") {
306
+ this.vertices = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.diagramId = "", this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.subCount = 0, this.tooltips = /* @__PURE__ */ new Map(), this.firstGraphFlag = !0, this.version = i, this.config = g1(), ht();
307
+ }
308
+ setGen(i) {
309
+ this.version = i || "gen-2";
310
+ }
311
+ defaultStyle() {
312
+ return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
313
+ }
314
+ addSubGraph(i, r, a) {
315
+ let n = i.text.trim(), l = a.text;
316
+ i === a && /\s/.exec(a.text) && (n = void 0);
317
+ const c = (/* @__PURE__ */ k((S) => {
318
+ const B = { boolean: {}, number: {}, string: {} }, b1 = [];
319
+ let A1;
320
+ return { nodeList: S.filter(function(K) {
321
+ const h1 = typeof K;
322
+ return K.stmt && K.stmt === "dir" ? (A1 = K.value, !1) : K.trim() === "" ? !1 : h1 in B ? B[h1].hasOwnProperty(K) ? !1 : B[h1][K] = !0 : b1.includes(K) ? !1 : b1.push(K);
323
+ }), dir: A1 };
324
+ }, "uniq"))(r.flat()), g = c.nodeList, u = c.dir, A = u !== void 0, v = g1().flowchart ?? {}, b = u ?? (v.inheritDir ? this.getDirection() ?? g1().direction ?? void 0 : void 0);
325
+ if (this.version === "gen-1")
326
+ for (let S = 0; S < g.length; S++)
327
+ g[S] = this.lookUpDomId(g[S]);
328
+ n = n ?? "subGraph" + this.subCount, l = l || "", l = this.sanitizeText(l), this.subCount = this.subCount + 1;
329
+ const m = {
330
+ id: n,
331
+ nodes: g,
332
+ title: l.trim(),
333
+ classes: [],
334
+ dir: b,
335
+ hasExplicitDir: A,
336
+ labelType: this.sanitizeNodeLabelType(a?.type)
337
+ };
338
+ return J.info("Adding", m.id, m.nodes, m.dir), m.nodes = this.makeUniq(m, this.subGraphs).nodes, this.subGraphs.push(m), this.subGraphLookup.set(n, m), n;
339
+ }
340
+ getPosForId(i) {
341
+ for (const [r, a] of this.subGraphs.entries())
342
+ if (a.id === i)
343
+ return r;
344
+ return -1;
345
+ }
346
+ indexNodes2(i, r) {
347
+ const a = this.subGraphs[r].nodes;
348
+ if (this.secCount = this.secCount + 1, this.secCount > 2e3)
349
+ return {
350
+ result: !1,
351
+ count: 0
352
+ };
353
+ if (this.posCrossRef[this.secCount] = r, this.subGraphs[r].id === i)
354
+ return {
355
+ result: !0,
356
+ count: 0
357
+ };
358
+ let n = 0, l = 1;
359
+ for (; n < a.length; ) {
360
+ const p = this.getPosForId(a[n]);
361
+ if (p >= 0) {
362
+ const c = this.indexNodes2(i, p);
363
+ if (c.result)
364
+ return {
365
+ result: !0,
366
+ count: l + c.count
367
+ };
368
+ l = l + c.count;
369
+ }
370
+ n = n + 1;
371
+ }
372
+ return {
373
+ result: !1,
374
+ count: l
375
+ };
376
+ }
377
+ getDepthFirstPos(i) {
378
+ return this.posCrossRef[i];
379
+ }
380
+ indexNodes() {
381
+ this.secCount = -1, this.subGraphs.length > 0 && this.indexNodes2("none", this.subGraphs.length - 1);
382
+ }
383
+ getSubGraphs() {
384
+ return this.subGraphs;
385
+ }
386
+ firstGraph() {
387
+ return this.firstGraphFlag ? (this.firstGraphFlag = !1, !0) : !1;
388
+ }
389
+ destructStartLink(i) {
390
+ let r = i.trim(), a = "arrow_open";
391
+ switch (r[0]) {
392
+ case "<":
393
+ a = "arrow_point", r = r.slice(1);
394
+ break;
395
+ case "x":
396
+ a = "arrow_cross", r = r.slice(1);
397
+ break;
398
+ case "o":
399
+ a = "arrow_circle", r = r.slice(1);
400
+ break;
401
+ }
402
+ let n = "normal";
403
+ return r.includes("=") && (n = "thick"), r.includes(".") && (n = "dotted"), { type: a, stroke: n };
404
+ }
405
+ countChar(i, r) {
406
+ const a = r.length;
407
+ let n = 0;
408
+ for (let l = 0; l < a; ++l)
409
+ r[l] === i && ++n;
410
+ return n;
411
+ }
412
+ destructEndLink(i) {
413
+ const r = i.trim();
414
+ let a = r.slice(0, -1), n = "arrow_open";
415
+ switch (r.slice(-1)) {
416
+ case "x":
417
+ n = "arrow_cross", r.startsWith("x") && (n = "double_" + n, a = a.slice(1));
418
+ break;
419
+ case ">":
420
+ n = "arrow_point", r.startsWith("<") && (n = "double_" + n, a = a.slice(1));
421
+ break;
422
+ case "o":
423
+ n = "arrow_circle", r.startsWith("o") && (n = "double_" + n, a = a.slice(1));
424
+ break;
425
+ }
426
+ let l = "normal", p = a.length - 1;
427
+ a.startsWith("=") && (l = "thick"), a.startsWith("~") && (l = "invisible");
428
+ const c = this.countChar(".", a);
429
+ return c && (l = "dotted", p = c), { type: n, stroke: l, length: p };
430
+ }
431
+ destructLink(i, r) {
432
+ const a = this.destructEndLink(i);
433
+ let n;
434
+ if (r) {
435
+ if (n = this.destructStartLink(r), n.stroke !== a.stroke)
436
+ return { type: "INVALID", stroke: "INVALID" };
437
+ if (n.type === "arrow_open")
438
+ n.type = a.type;
439
+ else {
440
+ if (n.type !== a.type)
441
+ return { type: "INVALID", stroke: "INVALID" };
442
+ n.type = "double_" + n.type;
443
+ }
444
+ return n.type === "double_arrow" && (n.type = "double_arrow_point"), n.length = a.length, n;
445
+ }
446
+ return a;
447
+ }
448
+ // Todo optimizer this by caching existing nodes
449
+ exists(i, r) {
450
+ for (const a of i)
451
+ if (a.nodes.includes(r))
452
+ return !0;
453
+ return !1;
454
+ }
455
+ /**
456
+ * Deletes an id from all subgraphs
457
+ *
458
+ */
459
+ makeUniq(i, r) {
460
+ const a = [];
461
+ return i.nodes.forEach((n, l) => {
462
+ this.exists(r, n) || a.push(i.nodes[l]);
463
+ }), { nodes: a };
464
+ }
465
+ getTypeFromVertex(i) {
466
+ if (i.img)
467
+ return "imageSquare";
468
+ if (i.icon)
469
+ return i.form === "circle" ? "iconCircle" : i.form === "square" ? "iconSquare" : i.form === "rounded" ? "iconRounded" : "icon";
470
+ switch (i.type) {
471
+ case "square":
472
+ case void 0:
473
+ return "squareRect";
474
+ case "round":
475
+ return "roundedRect";
476
+ case "ellipse":
477
+ return "ellipse";
478
+ default:
479
+ return i.type;
480
+ }
481
+ }
482
+ findNode(i, r) {
483
+ return i.find((a) => a.id === r);
484
+ }
485
+ destructEdgeType(i) {
486
+ let r = "none", a = "arrow_point";
487
+ switch (i) {
488
+ case "arrow_point":
489
+ case "arrow_circle":
490
+ case "arrow_cross":
491
+ a = i;
492
+ break;
493
+ case "double_arrow_point":
494
+ case "double_arrow_circle":
495
+ case "double_arrow_cross":
496
+ r = i.replace("double_", ""), a = r;
497
+ break;
498
+ }
499
+ return { arrowTypeStart: r, arrowTypeEnd: a };
500
+ }
501
+ addNodeFromVertex(i, r, a, n, l, p) {
502
+ const c = a.get(i.id), g = n.get(i.id) ?? !1, u = this.findNode(r, i.id);
503
+ if (u)
504
+ u.cssStyles = i.styles, u.cssCompiledStyles = this.getCompiledStyles(i.classes), u.cssClasses = i.classes.join(" ");
505
+ else {
506
+ const A = {
507
+ id: i.id,
508
+ label: i.text,
509
+ labelType: i.labelType,
510
+ labelStyle: "",
511
+ parentId: c,
512
+ padding: l.flowchart?.padding || 8,
513
+ cssStyles: i.styles,
514
+ cssCompiledStyles: this.getCompiledStyles(["default", "node", ...i.classes]),
515
+ cssClasses: "default " + i.classes.join(" "),
516
+ dir: i.dir,
517
+ domId: i.domId,
518
+ look: p,
519
+ link: i.link,
520
+ linkTarget: i.linkTarget,
521
+ tooltip: this.getTooltip(i.id),
522
+ icon: i.icon,
523
+ pos: i.pos,
524
+ img: i.img,
525
+ assetWidth: i.assetWidth,
526
+ assetHeight: i.assetHeight,
527
+ constraint: i.constraint
528
+ };
529
+ g ? r.push({
530
+ ...A,
531
+ isGroup: !0,
532
+ shape: "rect"
533
+ }) : r.push({
534
+ ...A,
535
+ isGroup: !1,
536
+ shape: this.getTypeFromVertex(i)
537
+ });
538
+ }
539
+ }
540
+ getCompiledStyles(i) {
541
+ let r = [];
542
+ for (const a of i) {
543
+ const n = this.classes.get(a);
544
+ n?.styles && (r = [...r, ...n.styles ?? []].map((l) => l.trim())), n?.textStyles && (r = [...r, ...n.textStyles ?? []].map((l) => l.trim()));
545
+ }
546
+ return r;
547
+ }
548
+ getData() {
549
+ const i = g1(), r = [], a = [], n = this.getSubGraphs(), l = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map();
550
+ for (let u = n.length - 1; u >= 0; u--) {
551
+ const A = n[u];
552
+ A.nodes.length > 0 && p.set(A.id, !0);
553
+ for (const v of A.nodes)
554
+ l.set(v, A.id);
555
+ }
556
+ for (let u = n.length - 1; u >= 0; u--) {
557
+ const A = n[u];
558
+ r.push({
559
+ id: A.id,
560
+ label: A.title,
561
+ labelStyle: "",
562
+ labelType: A.labelType,
563
+ parentId: l.get(A.id),
564
+ padding: 8,
565
+ cssCompiledStyles: this.getCompiledStyles(A.classes),
566
+ cssClasses: A.classes.join(" "),
567
+ shape: "rect",
568
+ dir: A.dir === "TD" ? "TB" : A.dir,
569
+ // normalize TD→TB for dagre
570
+ explicitDir: A.hasExplicitDir,
571
+ // true only when the user wrote an explicit 'direction X' keyword
572
+ isGroup: !0,
573
+ look: i.look
574
+ });
575
+ }
576
+ this.getVertices().forEach((u) => {
577
+ this.addNodeFromVertex(u, r, l, p, i, i.look || "classic");
578
+ });
579
+ const g = this.getEdges();
580
+ return g.forEach((u, A) => {
581
+ const { arrowTypeStart: v, arrowTypeEnd: b } = this.destructEdgeType(u.type), m = [...g.defaultStyle ?? []];
582
+ u.style && m.push(...u.style);
583
+ const S = {
584
+ id: se(u.start, u.end, { counter: A, prefix: "L" }, u.id),
585
+ isUserDefinedId: u.isUserDefinedId,
586
+ start: u.start,
587
+ end: u.end,
588
+ type: u.type ?? "normal",
589
+ label: u.text,
590
+ labelType: u.labelType,
591
+ labelpos: "c",
592
+ thickness: u.stroke,
593
+ minlen: u.length,
594
+ classes: u?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
595
+ arrowTypeStart: u?.stroke === "invisible" || u?.type === "arrow_open" ? "none" : v,
596
+ arrowTypeEnd: u?.stroke === "invisible" || u?.type === "arrow_open" ? "none" : b,
597
+ arrowheadStyle: "fill: #333",
598
+ cssCompiledStyles: this.getCompiledStyles(u.classes),
599
+ labelStyle: m,
600
+ style: m,
601
+ pattern: u.stroke,
602
+ look: i.look,
603
+ animate: u.animate,
604
+ animation: u.animation,
605
+ curve: u.interpolate || this.edges.defaultInterpolate || i.flowchart?.curve
606
+ };
607
+ a.push(S);
608
+ }), { nodes: r, edges: a, other: {}, config: i };
609
+ }
610
+ defaultConfig() {
611
+ return dt.flowchart;
612
+ }
613
+ }, k(G1, "FlowDB"), G1), mt = /* @__PURE__ */ k(function(s, i) {
614
+ return i.db.getClasses();
615
+ }, "getClasses"), Dt = /* @__PURE__ */ k(async function(s, i, r, a, n) {
616
+ J.info("REF0:"), J.info("Drawing state diagram (v2)", i);
617
+ const { securityLevel: l, flowchart: p, layout: c } = g1();
618
+ a.db.setDiagramId(i), J.debug("Before getData: ");
619
+ const g = a.db.getData();
620
+ J.debug("Data: ", g);
621
+ const u = Qe(i, l), A = a.db.getDirection();
622
+ g.type = a.type, g.layoutAlgorithm = $e(c), g.layoutAlgorithm === "dagre" && c === "elk" && J.warn(
623
+ "flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."
624
+ ), g.direction = A, g.nodeSpacing = p?.nodeSpacing || 50, g.rankSpacing = p?.rankSpacing || 50, g.markers = ["point", "circle", "cross"], g.diagramId = i, J.debug("REF1:", g), await et(g, u, n);
625
+ const v = g.config.flowchart?.diagramPadding ?? 8;
626
+ re.insertTitle(
627
+ u,
628
+ "flowchartTitleText",
629
+ p?.titleTopMargin || 0,
630
+ a.db.getDiagramTitle()
631
+ ), Je(u, v, "flowchart", p?.useMaxWidth || !1);
632
+ }, "draw"), Et = {
633
+ getClasses: mt,
634
+ draw: Dt
635
+ }, ae = function() {
636
+ var s = /* @__PURE__ */ k(function(f1, h, d, f) {
637
+ for (d = d || {}, f = f1.length; f--; d[f1[f]] = h) ;
638
+ return d;
639
+ }, "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], p = [1, 13], c = [1, 14], g = [1, 15], u = [1, 16], A = [1, 23], v = [1, 25], b = [1, 26], m = [1, 27], S = [1, 50], B = [1, 49], b1 = [1, 29], A1 = [1, 30], P1 = [1, 31], K = [1, 32], h1 = [1, 33], V = [1, 45], I = [1, 47], w = [1, 43], R = [1, 48], N = [1, 44], G = [1, 51], P = [1, 46], O = [1, 52], M = [1, 53], M1 = [1, 34], U1 = [1, 35], z1 = [1, 36], W1 = [1, 37], j1 = [1, 38], d1 = [1, 58], y = [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], $ = [1, 62], e1 = [1, 61], t1 = [1, 63], E1 = [8, 9, 11, 75, 77, 78], ne = [1, 79], T1 = [1, 92], C1 = [1, 97], S1 = [1, 96], y1 = [1, 93], x1 = [1, 89], F1 = [1, 95], _1 = [1, 91], B1 = [1, 98], v1 = [1, 94], L1 = [1, 99], V1 = [1, 90], k1 = [8, 9, 10, 11, 40, 75, 77, 78], z = [8, 9, 10, 11, 40, 46, 75, 77, 78], H = [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], ue = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], I1 = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], oe = [1, 122], le = [1, 123], K1 = [1, 125], Y1 = [1, 124], ce = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], he = [1, 134], de = [1, 148], pe = [1, 149], fe = [1, 150], ge = [1, 151], be = [1, 136], Ae = [1, 138], ke = [1, 142], me = [1, 143], De = [1, 144], Ee = [1, 145], Te = [1, 146], Ce = [1, 147], Se = [1, 152], ye = [1, 153], xe = [1, 132], Fe = [1, 133], _e = [1, 140], Be = [1, 135], ve = [1, 139], Le = [1, 137], Q1 = [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], Ve = [1, 155], Ie = [1, 157], _ = [8, 9, 11], q = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], D = [1, 177], W = [1, 173], j = [1, 174], E = [1, 178], T = [1, 175], C = [1, 176], w1 = [77, 116, 119], x = [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], we = [10, 106], p1 = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], s1 = [1, 248], i1 = [1, 246], r1 = [1, 250], a1 = [1, 244], n1 = [1, 245], u1 = [1, 247], o1 = [1, 249], l1 = [1, 251], R1 = [1, 269], Re = [8, 9, 11, 106], Z = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112], J1 = {
640
+ trace: /* @__PURE__ */ k(function() {
641
+ }, "trace"),
642
+ yy: {},
643
+ 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 },
644
+ 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" },
645
+ 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]],
646
+ performAction: /* @__PURE__ */ k(function(h, d, f, o, F, e, O1) {
647
+ var t = e.length - 1;
648
+ switch (F) {
649
+ case 2:
650
+ this.$ = [];
651
+ break;
652
+ case 3:
653
+ (!Array.isArray(e[t]) || e[t].length > 0) && e[t - 1].push(e[t]), this.$ = e[t - 1];
654
+ break;
655
+ case 4:
656
+ case 183:
657
+ this.$ = e[t];
658
+ break;
659
+ case 11:
660
+ o.setDirection("TB"), this.$ = "TB";
661
+ break;
662
+ case 12:
663
+ o.setDirection(e[t - 1]), this.$ = e[t - 1];
664
+ break;
665
+ case 27:
666
+ this.$ = e[t - 1].nodes;
667
+ break;
668
+ case 28:
669
+ case 29:
670
+ case 30:
671
+ case 31:
672
+ case 32:
673
+ this.$ = [];
674
+ break;
675
+ case 33:
676
+ this.$ = o.addSubGraph(e[t - 6], e[t - 1], e[t - 4]);
677
+ break;
678
+ case 34:
679
+ this.$ = o.addSubGraph(e[t - 3], e[t - 1], e[t - 3]);
680
+ break;
681
+ case 35:
682
+ this.$ = o.addSubGraph(void 0, e[t - 1], void 0);
683
+ break;
684
+ case 37:
685
+ this.$ = e[t].trim(), o.setAccTitle(this.$);
686
+ break;
687
+ case 38:
688
+ case 39:
689
+ this.$ = e[t].trim(), o.setAccDescription(this.$);
690
+ break;
691
+ case 43:
692
+ this.$ = e[t - 1] + e[t];
693
+ break;
694
+ case 44:
695
+ this.$ = e[t];
696
+ break;
697
+ case 45:
698
+ 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) };
699
+ break;
700
+ case 46:
701
+ o.addLink(e[t - 2].stmt, e[t], e[t - 1]), this.$ = { stmt: e[t], nodes: e[t].concat(e[t - 2].nodes) };
702
+ break;
703
+ case 47:
704
+ 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) };
705
+ break;
706
+ case 48:
707
+ this.$ = { stmt: e[t - 1], nodes: e[t - 1] };
708
+ break;
709
+ case 49:
710
+ 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] };
711
+ break;
712
+ case 50:
713
+ this.$ = { stmt: e[t], nodes: e[t] };
714
+ break;
715
+ case 51:
716
+ this.$ = [e[t]];
717
+ break;
718
+ case 52:
719
+ 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]);
720
+ break;
721
+ case 53:
722
+ this.$ = e[t - 4].concat(e[t]);
723
+ break;
724
+ case 54:
725
+ this.$ = e[t];
726
+ break;
727
+ case 55:
728
+ this.$ = e[t - 2], o.setClass(e[t - 2], e[t]);
729
+ break;
730
+ case 56:
731
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "square");
732
+ break;
733
+ case 57:
734
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "doublecircle");
735
+ break;
736
+ case 58:
737
+ this.$ = e[t - 5], o.addVertex(e[t - 5], e[t - 2], "circle");
738
+ break;
739
+ case 59:
740
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "ellipse");
741
+ break;
742
+ case 60:
743
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "stadium");
744
+ break;
745
+ case 61:
746
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "subroutine");
747
+ break;
748
+ case 62:
749
+ 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]]]));
750
+ break;
751
+ case 63:
752
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "cylinder");
753
+ break;
754
+ case 64:
755
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "round");
756
+ break;
757
+ case 65:
758
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "diamond");
759
+ break;
760
+ case 66:
761
+ this.$ = e[t - 5], o.addVertex(e[t - 5], e[t - 2], "hexagon");
762
+ break;
763
+ case 67:
764
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "odd");
765
+ break;
766
+ case 68:
767
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "trapezoid");
768
+ break;
769
+ case 69:
770
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "inv_trapezoid");
771
+ break;
772
+ case 70:
773
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "lean_right");
774
+ break;
775
+ case 71:
776
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "lean_left");
777
+ break;
778
+ case 72:
779
+ this.$ = e[t], o.addVertex(e[t]);
780
+ break;
781
+ case 73:
782
+ e[t - 1].text = e[t], this.$ = e[t - 1];
783
+ break;
784
+ case 74:
785
+ case 75:
786
+ e[t - 2].text = e[t - 1], this.$ = e[t - 2];
787
+ break;
788
+ case 76:
789
+ this.$ = e[t];
790
+ break;
791
+ case 77:
792
+ var L = o.destructLink(e[t], e[t - 2]);
793
+ this.$ = { type: L.type, stroke: L.stroke, length: L.length, text: e[t - 1] };
794
+ break;
795
+ case 78:
796
+ var L = o.destructLink(e[t], e[t - 2]);
797
+ this.$ = { type: L.type, stroke: L.stroke, length: L.length, text: e[t - 1], id: e[t - 3] };
798
+ break;
799
+ case 79:
800
+ this.$ = { text: e[t], type: "text" };
801
+ break;
802
+ case 80:
803
+ this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
804
+ break;
805
+ case 81:
806
+ this.$ = { text: e[t], type: "string" };
807
+ break;
808
+ case 82:
809
+ this.$ = { text: e[t], type: "markdown" };
810
+ break;
811
+ case 83:
812
+ var L = o.destructLink(e[t]);
813
+ this.$ = { type: L.type, stroke: L.stroke, length: L.length };
814
+ break;
815
+ case 84:
816
+ var L = o.destructLink(e[t]);
817
+ this.$ = { type: L.type, stroke: L.stroke, length: L.length, id: e[t - 1] };
818
+ break;
819
+ case 85:
820
+ this.$ = e[t - 1];
821
+ break;
822
+ case 86:
823
+ this.$ = { text: e[t], type: "text" };
824
+ break;
825
+ case 87:
826
+ this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
827
+ break;
828
+ case 88:
829
+ this.$ = { text: e[t], type: "string" };
830
+ break;
831
+ case 89:
832
+ case 104:
833
+ this.$ = { text: e[t], type: "markdown" };
834
+ break;
835
+ case 101:
836
+ this.$ = { text: e[t], type: "text" };
837
+ break;
838
+ case 102:
839
+ this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
840
+ break;
841
+ case 103:
842
+ this.$ = { text: e[t], type: "text" };
843
+ break;
844
+ case 105:
845
+ this.$ = e[t - 4], o.addClass(e[t - 2], e[t]);
846
+ break;
847
+ case 106:
848
+ this.$ = e[t - 4], o.setClass(e[t - 2], e[t]);
849
+ break;
850
+ case 107:
851
+ case 115:
852
+ this.$ = e[t - 1], o.setClickEvent(e[t - 1], e[t]);
853
+ break;
854
+ case 108:
855
+ case 116:
856
+ this.$ = e[t - 3], o.setClickEvent(e[t - 3], e[t - 2]), o.setTooltip(e[t - 3], e[t]);
857
+ break;
858
+ case 109:
859
+ this.$ = e[t - 2], o.setClickEvent(e[t - 2], e[t - 1], e[t]);
860
+ break;
861
+ case 110:
862
+ this.$ = e[t - 4], o.setClickEvent(e[t - 4], e[t - 3], e[t - 2]), o.setTooltip(e[t - 4], e[t]);
863
+ break;
864
+ case 111:
865
+ this.$ = e[t - 2], o.setLink(e[t - 2], e[t]);
866
+ break;
867
+ case 112:
868
+ this.$ = e[t - 4], o.setLink(e[t - 4], e[t - 2]), o.setTooltip(e[t - 4], e[t]);
869
+ break;
870
+ case 113:
871
+ this.$ = e[t - 4], o.setLink(e[t - 4], e[t - 2], e[t]);
872
+ break;
873
+ case 114:
874
+ this.$ = e[t - 6], o.setLink(e[t - 6], e[t - 4], e[t]), o.setTooltip(e[t - 6], e[t - 2]);
875
+ break;
876
+ case 117:
877
+ this.$ = e[t - 1], o.setLink(e[t - 1], e[t]);
878
+ break;
879
+ case 118:
880
+ this.$ = e[t - 3], o.setLink(e[t - 3], e[t - 2]), o.setTooltip(e[t - 3], e[t]);
881
+ break;
882
+ case 119:
883
+ this.$ = e[t - 3], o.setLink(e[t - 3], e[t - 2], e[t]);
884
+ break;
885
+ case 120:
886
+ this.$ = e[t - 5], o.setLink(e[t - 5], e[t - 4], e[t]), o.setTooltip(e[t - 5], e[t - 2]);
887
+ break;
888
+ case 121:
889
+ this.$ = e[t - 4], o.addVertex(e[t - 2], void 0, void 0, e[t]);
890
+ break;
891
+ case 122:
892
+ this.$ = e[t - 4], o.updateLink([e[t - 2]], e[t]);
893
+ break;
894
+ case 123:
895
+ this.$ = e[t - 4], o.updateLink(e[t - 2], e[t]);
896
+ break;
897
+ case 124:
898
+ this.$ = e[t - 8], o.updateLinkInterpolate([e[t - 6]], e[t - 2]), o.updateLink([e[t - 6]], e[t]);
899
+ break;
900
+ case 125:
901
+ this.$ = e[t - 8], o.updateLinkInterpolate(e[t - 6], e[t - 2]), o.updateLink(e[t - 6], e[t]);
902
+ break;
903
+ case 126:
904
+ this.$ = e[t - 6], o.updateLinkInterpolate([e[t - 4]], e[t]);
905
+ break;
906
+ case 127:
907
+ this.$ = e[t - 6], o.updateLinkInterpolate(e[t - 4], e[t]);
908
+ break;
909
+ case 128:
910
+ case 130:
911
+ this.$ = [e[t]];
912
+ break;
913
+ case 129:
914
+ case 131:
915
+ e[t - 2].push(e[t]), this.$ = e[t - 2];
916
+ break;
917
+ case 133:
918
+ this.$ = e[t - 1] + e[t];
919
+ break;
920
+ case 181:
921
+ this.$ = e[t];
922
+ break;
923
+ case 182:
924
+ this.$ = e[t - 1] + "" + e[t];
925
+ break;
926
+ case 184:
927
+ this.$ = e[t - 1] + "" + e[t];
928
+ break;
929
+ case 185:
930
+ this.$ = { stmt: "dir", value: "TB" };
931
+ break;
932
+ case 186:
933
+ this.$ = { stmt: "dir", value: "BT" };
934
+ break;
935
+ case 187:
936
+ this.$ = { stmt: "dir", value: "RL" };
937
+ break;
938
+ case 188:
939
+ this.$ = { stmt: "dir", value: "LR" };
940
+ break;
941
+ case 189:
942
+ this.$ = { stmt: "dir", value: "TD" };
943
+ break;
944
+ }
945
+ }, "anonymous"),
946
+ 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: p, 9: c, 10: g, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: A, 33: 24, 34: v, 36: b, 38: m, 42: 28, 43: 39, 44: S, 45: 40, 47: 41, 60: B, 84: b1, 85: A1, 86: P1, 87: K, 88: h1, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M, 121: M1, 122: U1, 123: z1, 124: W1, 125: j1 }, s(n, [2, 9]), s(n, [2, 10]), s(n, [2, 11]), { 8: [1, 55], 9: [1, 56], 10: d1, 15: 54, 18: 57 }, s(y, [2, 3]), s(y, [2, 4]), s(y, [2, 5]), s(y, [2, 6]), s(y, [2, 7]), s(y, [2, 8]), { 8: $, 9: e1, 11: t1, 21: 59, 41: 60, 72: 64, 75: [1, 65], 77: [1, 67], 78: [1, 66] }, { 8: $, 9: e1, 11: t1, 21: 68 }, { 8: $, 9: e1, 11: t1, 21: 69 }, { 8: $, 9: e1, 11: t1, 21: 70 }, { 8: $, 9: e1, 11: t1, 21: 71 }, { 8: $, 9: e1, 11: t1, 21: 72 }, { 8: $, 9: e1, 10: [1, 73], 11: t1, 21: 74 }, s(y, [2, 36]), { 35: [1, 75] }, { 37: [1, 76] }, s(y, [2, 39]), s(E1, [2, 50], { 18: 77, 39: 78, 10: d1, 40: ne }), { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 10: [1, 83] }, { 14: T1, 44: C1, 60: S1, 80: [1, 87], 89: y1, 95: [1, 84], 97: [1, 85], 101: 86, 105: x1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1, 120: 88 }, s(y, [2, 185]), s(y, [2, 186]), s(y, [2, 187]), s(y, [2, 188]), s(y, [2, 189]), s(k1, [2, 51]), s(k1, [2, 54], { 46: [1, 100] }), s(z, [2, 72], { 113: 113, 29: [1, 101], 44: S, 48: [1, 102], 50: [1, 103], 52: [1, 104], 54: [1, 105], 56: [1, 106], 58: [1, 107], 60: B, 63: [1, 108], 65: [1, 109], 67: [1, 110], 68: [1, 111], 70: [1, 112], 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), s(H, [2, 181]), s(H, [2, 142]), s(H, [2, 143]), s(H, [2, 144]), s(H, [2, 145]), s(H, [2, 146]), s(H, [2, 147]), s(H, [2, 148]), s(H, [2, 149]), s(H, [2, 150]), s(H, [2, 151]), s(H, [2, 152]), s(n, [2, 12]), s(n, [2, 18]), s(n, [2, 19]), { 9: [1, 114] }, s(ue, [2, 26], { 18: 115, 10: d1 }), s(y, [2, 27]), { 42: 116, 43: 39, 44: S, 45: 40, 47: 41, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, s(y, [2, 40]), s(y, [2, 41]), s(y, [2, 42]), s(I1, [2, 76], { 73: 117, 62: [1, 119], 74: [1, 118] }), { 76: 120, 79: 121, 80: oe, 81: le, 116: K1, 119: Y1 }, { 75: [1, 126], 77: [1, 127] }, s(ce, [2, 83]), s(y, [2, 28]), s(y, [2, 29]), s(y, [2, 30]), s(y, [2, 31]), s(y, [2, 32]), { 10: he, 12: de, 14: pe, 27: fe, 28: 128, 32: ge, 44: be, 60: Ae, 75: ke, 80: [1, 130], 81: [1, 131], 83: 141, 84: me, 85: De, 86: Ee, 87: Te, 88: Ce, 89: Se, 90: ye, 91: 129, 105: xe, 109: Fe, 111: _e, 114: Be, 115: ve, 116: Le }, s(Q1, l, { 5: 154 }), s(y, [2, 37]), s(y, [2, 38]), s(E1, [2, 48], { 44: Ve }), s(E1, [2, 49], { 18: 156, 10: d1, 40: Ie }), s(k1, [2, 44]), { 44: S, 47: 158, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, { 102: [1, 159], 103: 160, 105: [1, 161] }, { 44: S, 47: 162, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, { 44: S, 47: 163, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, s(_, [2, 107], { 10: [1, 164], 96: [1, 165] }), { 80: [1, 166] }, s(_, [2, 115], { 120: 168, 10: [1, 167], 14: T1, 44: C1, 60: S1, 89: y1, 105: x1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1 }), s(_, [2, 117], { 10: [1, 169] }), s(q, [2, 183]), s(q, [2, 170]), s(q, [2, 171]), s(q, [2, 172]), s(q, [2, 173]), s(q, [2, 174]), s(q, [2, 175]), s(q, [2, 176]), s(q, [2, 177]), s(q, [2, 178]), s(q, [2, 179]), s(q, [2, 180]), { 44: S, 47: 170, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, { 30: 171, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, { 30: 179, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, { 30: 181, 50: [1, 180], 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, { 30: 182, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, { 30: 183, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, { 30: 184, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, { 109: [1, 185] }, { 30: 186, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, { 30: 187, 65: [1, 188], 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, { 30: 189, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, { 30: 190, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, { 30: 191, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, s(H, [2, 182]), s(n, [2, 20]), s(ue, [2, 25]), s(E1, [2, 46], { 39: 192, 18: 193, 10: d1, 40: ne }), s(I1, [2, 73], { 10: [1, 194] }), { 10: [1, 195] }, { 30: 196, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, { 77: [1, 197], 79: 198, 116: K1, 119: Y1 }, s(w1, [2, 79]), s(w1, [2, 81]), s(w1, [2, 82]), s(w1, [2, 168]), s(w1, [2, 169]), { 76: 199, 79: 121, 80: oe, 81: le, 116: K1, 119: Y1 }, s(ce, [2, 84]), { 8: $, 9: e1, 10: he, 11: t1, 12: de, 14: pe, 21: 201, 27: fe, 29: [1, 200], 32: ge, 44: be, 60: Ae, 75: ke, 83: 141, 84: me, 85: De, 86: Ee, 87: Te, 88: Ce, 89: Se, 90: ye, 91: 202, 105: xe, 109: Fe, 111: _e, 114: Be, 115: ve, 116: Le }, s(x, [2, 101]), s(x, [2, 103]), s(x, [2, 104]), s(x, [2, 157]), s(x, [2, 158]), s(x, [2, 159]), s(x, [2, 160]), s(x, [2, 161]), s(x, [2, 162]), s(x, [2, 163]), s(x, [2, 164]), s(x, [2, 165]), s(x, [2, 166]), s(x, [2, 167]), s(x, [2, 90]), s(x, [2, 91]), s(x, [2, 92]), s(x, [2, 93]), s(x, [2, 94]), s(x, [2, 95]), s(x, [2, 96]), s(x, [2, 97]), s(x, [2, 98]), s(x, [2, 99]), s(x, [2, 100]), { 6: 11, 7: 12, 8: p, 9: c, 10: g, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: A, 32: [1, 203], 33: 24, 34: v, 36: b, 38: m, 42: 28, 43: 39, 44: S, 45: 40, 47: 41, 60: B, 84: b1, 85: A1, 86: P1, 87: K, 88: h1, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M, 121: M1, 122: U1, 123: z1, 124: W1, 125: j1 }, { 10: d1, 18: 204 }, { 44: [1, 205] }, s(k1, [2, 43]), { 10: [1, 206], 44: S, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 113, 114: P, 115: O, 116: M }, { 10: [1, 207] }, { 10: [1, 208], 106: [1, 209] }, s(we, [2, 128]), { 10: [1, 210], 44: S, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 113, 114: P, 115: O, 116: M }, { 10: [1, 211], 44: S, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 113, 114: P, 115: O, 116: M }, { 80: [1, 212] }, s(_, [2, 109], { 10: [1, 213] }), s(_, [2, 111], { 10: [1, 214] }), { 80: [1, 215] }, s(q, [2, 184]), { 80: [1, 216], 98: [1, 217] }, s(k1, [2, 55], { 113: 113, 44: S, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), { 31: [1, 218], 67: D, 82: 219, 116: E, 117: T, 118: C }, s(p1, [2, 86]), s(p1, [2, 88]), s(p1, [2, 89]), s(p1, [2, 153]), s(p1, [2, 154]), s(p1, [2, 155]), s(p1, [2, 156]), { 49: [1, 220], 67: D, 82: 219, 116: E, 117: T, 118: C }, { 30: 221, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, { 51: [1, 222], 67: D, 82: 219, 116: E, 117: T, 118: C }, { 53: [1, 223], 67: D, 82: 219, 116: E, 117: T, 118: C }, { 55: [1, 224], 67: D, 82: 219, 116: E, 117: T, 118: C }, { 57: [1, 225], 67: D, 82: 219, 116: E, 117: T, 118: C }, { 60: [1, 226] }, { 64: [1, 227], 67: D, 82: 219, 116: E, 117: T, 118: C }, { 66: [1, 228], 67: D, 82: 219, 116: E, 117: T, 118: C }, { 30: 229, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, { 31: [1, 230], 67: D, 82: 219, 116: E, 117: T, 118: C }, { 67: D, 69: [1, 231], 71: [1, 232], 82: 219, 116: E, 117: T, 118: C }, { 67: D, 69: [1, 234], 71: [1, 233], 82: 219, 116: E, 117: T, 118: C }, s(E1, [2, 45], { 18: 156, 10: d1, 40: Ie }), s(E1, [2, 47], { 44: Ve }), s(I1, [2, 75]), s(I1, [2, 74]), { 62: [1, 235], 67: D, 82: 219, 116: E, 117: T, 118: C }, s(I1, [2, 77]), s(w1, [2, 80]), { 77: [1, 236], 79: 198, 116: K1, 119: Y1 }, { 30: 237, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, s(Q1, l, { 5: 238 }), s(x, [2, 102]), s(y, [2, 35]), { 43: 239, 44: S, 45: 40, 47: 41, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, { 10: d1, 18: 240 }, { 10: s1, 60: i1, 84: r1, 92: 241, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 252, 104: [1, 253], 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 254, 104: [1, 255], 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 105: [1, 256] }, { 10: s1, 60: i1, 84: r1, 92: 257, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 44: S, 47: 258, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, s(_, [2, 108]), { 80: [1, 259] }, { 80: [1, 260], 98: [1, 261] }, s(_, [2, 116]), s(_, [2, 118], { 10: [1, 262] }), s(_, [2, 119]), s(z, [2, 56]), s(p1, [2, 87]), s(z, [2, 57]), { 51: [1, 263], 67: D, 82: 219, 116: E, 117: T, 118: C }, s(z, [2, 64]), s(z, [2, 59]), s(z, [2, 60]), s(z, [2, 61]), { 109: [1, 264] }, s(z, [2, 63]), s(z, [2, 65]), { 66: [1, 265], 67: D, 82: 219, 116: E, 117: T, 118: C }, s(z, [2, 67]), s(z, [2, 68]), s(z, [2, 70]), s(z, [2, 69]), s(z, [2, 71]), s([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), s(I1, [2, 78]), { 31: [1, 266], 67: D, 82: 219, 116: E, 117: T, 118: C }, { 6: 11, 7: 12, 8: p, 9: c, 10: g, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: A, 32: [1, 267], 33: 24, 34: v, 36: b, 38: m, 42: 28, 43: 39, 44: S, 45: 40, 47: 41, 60: B, 84: b1, 85: A1, 86: P1, 87: K, 88: h1, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M, 121: M1, 122: U1, 123: z1, 124: W1, 125: j1 }, s(k1, [2, 53]), { 43: 268, 44: S, 45: 40, 47: 41, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, s(_, [2, 121], { 106: R1 }), s(Re, [2, 130], { 108: 270, 10: s1, 60: i1, 84: r1, 105: a1, 109: n1, 110: u1, 111: o1, 112: l1 }), s(Z, [2, 132]), s(Z, [2, 134]), s(Z, [2, 135]), s(Z, [2, 136]), s(Z, [2, 137]), s(Z, [2, 138]), s(Z, [2, 139]), s(Z, [2, 140]), s(Z, [2, 141]), s(_, [2, 122], { 106: R1 }), { 10: [1, 271] }, s(_, [2, 123], { 106: R1 }), { 10: [1, 272] }, s(we, [2, 129]), s(_, [2, 105], { 106: R1 }), s(_, [2, 106], { 113: 113, 44: S, 60: B, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), s(_, [2, 110]), s(_, [2, 112], { 10: [1, 273] }), s(_, [2, 113]), { 98: [1, 274] }, { 51: [1, 275] }, { 62: [1, 276] }, { 66: [1, 277] }, { 8: $, 9: e1, 11: t1, 21: 278 }, s(y, [2, 34]), s(k1, [2, 52]), { 10: s1, 60: i1, 84: r1, 105: a1, 107: 279, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, s(Z, [2, 133]), { 14: T1, 44: C1, 60: S1, 89: y1, 101: 280, 105: x1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1, 120: 88 }, { 14: T1, 44: C1, 60: S1, 89: y1, 101: 281, 105: x1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1, 120: 88 }, { 98: [1, 282] }, s(_, [2, 120]), s(z, [2, 58]), { 30: 283, 67: D, 80: W, 81: j, 82: 172, 116: E, 117: T, 118: C }, s(z, [2, 66]), s(Q1, l, { 5: 284 }), s(Re, [2, 131], { 108: 270, 10: s1, 60: i1, 84: r1, 105: a1, 109: n1, 110: u1, 111: o1, 112: l1 }), s(_, [2, 126], { 120: 168, 10: [1, 285], 14: T1, 44: C1, 60: S1, 89: y1, 105: x1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1 }), s(_, [2, 127], { 120: 168, 10: [1, 286], 14: T1, 44: C1, 60: S1, 89: y1, 105: x1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1 }), s(_, [2, 114]), { 31: [1, 287], 67: D, 82: 219, 116: E, 117: T, 118: C }, { 6: 11, 7: 12, 8: p, 9: c, 10: g, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: A, 32: [1, 288], 33: 24, 34: v, 36: b, 38: m, 42: 28, 43: 39, 44: S, 45: 40, 47: 41, 60: B, 84: b1, 85: A1, 86: P1, 87: K, 88: h1, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M, 121: M1, 122: U1, 123: z1, 124: W1, 125: j1 }, { 10: s1, 60: i1, 84: r1, 92: 289, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, { 10: s1, 60: i1, 84: r1, 92: 290, 105: a1, 107: 242, 108: 243, 109: n1, 110: u1, 111: o1, 112: l1 }, s(z, [2, 62]), s(y, [2, 33]), s(_, [2, 124], { 106: R1 }), s(_, [2, 125], { 106: R1 })],
947
+ defaultActions: {},
948
+ parseError: /* @__PURE__ */ k(function(h, d) {
949
+ if (d.recoverable)
950
+ this.trace(h);
951
+ else {
952
+ var f = new Error(h);
953
+ throw f.hash = d, f;
954
+ }
955
+ }, "parseError"),
956
+ parse: /* @__PURE__ */ k(function(h) {
957
+ var d = this, f = [0], o = [], F = [null], e = [], O1 = this.table, t = "", L = 0, Ne = 0, Ke = 2, Ge = 1, Ye = e.slice.call(arguments, 1), U = Object.create(this.lexer), m1 = { yy: {} };
958
+ for (var Z1 in this.yy)
959
+ Object.prototype.hasOwnProperty.call(this.yy, Z1) && (m1.yy[Z1] = this.yy[Z1]);
960
+ U.setInput(h, m1.yy), m1.yy.lexer = U, m1.yy.parser = this, typeof U.yylloc > "u" && (U.yylloc = {});
961
+ var $1 = U.yylloc;
962
+ e.push($1);
963
+ var He = U.options && U.options.ranges;
964
+ typeof m1.yy.parseError == "function" ? this.parseError = m1.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
965
+ function qe(X) {
966
+ f.length = f.length - 2 * X, F.length = F.length - X, e.length = e.length - X;
967
+ }
968
+ k(qe, "popStack");
969
+ function Pe() {
970
+ var X;
971
+ return X = o.pop() || U.lex() || Ge, typeof X != "number" && (X instanceof Array && (o = X, X = o.pop()), X = d.symbols_[X] || X), X;
972
+ }
973
+ k(Pe, "lex");
974
+ for (var Y, D1, Q, ee, N1 = {}, q1, c1, Oe, X1; ; ) {
975
+ if (D1 = f[f.length - 1], this.defaultActions[D1] ? Q = this.defaultActions[D1] : ((Y === null || typeof Y > "u") && (Y = Pe()), Q = O1[D1] && O1[D1][Y]), typeof Q > "u" || !Q.length || !Q[0]) {
976
+ var te = "";
977
+ X1 = [];
978
+ for (q1 in O1[D1])
979
+ this.terminals_[q1] && q1 > Ke && X1.push("'" + this.terminals_[q1] + "'");
980
+ U.showPosition ? te = "Parse error on line " + (L + 1) + `:
981
+ ` + U.showPosition() + `
982
+ Expecting ` + X1.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : te = "Parse error on line " + (L + 1) + ": Unexpected " + (Y == Ge ? "end of input" : "'" + (this.terminals_[Y] || Y) + "'"), this.parseError(te, {
983
+ text: U.match,
984
+ token: this.terminals_[Y] || Y,
985
+ line: U.yylineno,
986
+ loc: $1,
987
+ expected: X1
988
+ });
989
+ }
990
+ if (Q[0] instanceof Array && Q.length > 1)
991
+ throw new Error("Parse Error: multiple actions possible at state: " + D1 + ", token: " + Y);
992
+ switch (Q[0]) {
993
+ case 1:
994
+ f.push(Y), F.push(U.yytext), e.push(U.yylloc), f.push(Q[1]), Y = null, Ne = U.yyleng, t = U.yytext, L = U.yylineno, $1 = U.yylloc;
995
+ break;
996
+ case 2:
997
+ if (c1 = this.productions_[Q[1]][1], N1.$ = F[F.length - c1], N1._$ = {
998
+ first_line: e[e.length - (c1 || 1)].first_line,
999
+ last_line: e[e.length - 1].last_line,
1000
+ first_column: e[e.length - (c1 || 1)].first_column,
1001
+ last_column: e[e.length - 1].last_column
1002
+ }, He && (N1._$.range = [
1003
+ e[e.length - (c1 || 1)].range[0],
1004
+ e[e.length - 1].range[1]
1005
+ ]), ee = this.performAction.apply(N1, [
1006
+ t,
1007
+ Ne,
1008
+ L,
1009
+ m1.yy,
1010
+ Q[1],
1011
+ F,
1012
+ e
1013
+ ].concat(Ye)), typeof ee < "u")
1014
+ return ee;
1015
+ c1 && (f = f.slice(0, -1 * c1 * 2), F = F.slice(0, -1 * c1), e = e.slice(0, -1 * c1)), f.push(this.productions_[Q[1]][0]), F.push(N1.$), e.push(N1._$), Oe = O1[f[f.length - 2]][f[f.length - 1]], f.push(Oe);
1016
+ break;
1017
+ case 3:
1018
+ return !0;
1019
+ }
1020
+ }
1021
+ return !0;
1022
+ }, "parse")
1023
+ }, je = /* @__PURE__ */ function() {
1024
+ var f1 = {
1025
+ EOF: 1,
1026
+ parseError: /* @__PURE__ */ k(function(d, f) {
1027
+ if (this.yy.parser)
1028
+ this.yy.parser.parseError(d, f);
1029
+ else
1030
+ throw new Error(d);
1031
+ }, "parseError"),
1032
+ // resets the lexer, sets new input
1033
+ setInput: /* @__PURE__ */ k(function(h, d) {
1034
+ return this.yy = d || this.yy || {}, this._input = h, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1035
+ first_line: 1,
1036
+ first_column: 0,
1037
+ last_line: 1,
1038
+ last_column: 0
1039
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1040
+ }, "setInput"),
1041
+ // consumes and returns one char from the input
1042
+ input: /* @__PURE__ */ k(function() {
1043
+ var h = this._input[0];
1044
+ this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h;
1045
+ var d = h.match(/(?:\r\n?|\n).*/g);
1046
+ return d ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), h;
1047
+ }, "input"),
1048
+ // unshifts one char (or a string) into the input
1049
+ unput: /* @__PURE__ */ k(function(h) {
1050
+ var d = h.length, f = h.split(/(?:\r\n?|\n)/g);
1051
+ this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
1052
+ var o = this.match.split(/(?:\r\n?|\n)/g);
1053
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), f.length - 1 && (this.yylineno -= f.length - 1);
1054
+ var F = this.yylloc.range;
1055
+ return this.yylloc = {
1056
+ first_line: this.yylloc.first_line,
1057
+ last_line: this.yylineno + 1,
1058
+ first_column: this.yylloc.first_column,
1059
+ last_column: f ? (f.length === o.length ? this.yylloc.first_column : 0) + o[o.length - f.length].length - f[0].length : this.yylloc.first_column - d
1060
+ }, this.options.ranges && (this.yylloc.range = [F[0], F[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
1061
+ }, "unput"),
1062
+ // When called from action, caches matched text and appends it on next action
1063
+ more: /* @__PURE__ */ k(function() {
1064
+ return this._more = !0, this;
1065
+ }, "more"),
1066
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
1067
+ reject: /* @__PURE__ */ k(function() {
1068
+ if (this.options.backtrack_lexer)
1069
+ this._backtrack = !0;
1070
+ else
1071
+ 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).
1072
+ ` + this.showPosition(), {
1073
+ text: "",
1074
+ token: null,
1075
+ line: this.yylineno
1076
+ });
1077
+ return this;
1078
+ }, "reject"),
1079
+ // retain first n characters of the match
1080
+ less: /* @__PURE__ */ k(function(h) {
1081
+ this.unput(this.match.slice(h));
1082
+ }, "less"),
1083
+ // displays already matched input, i.e. for error messages
1084
+ pastInput: /* @__PURE__ */ k(function() {
1085
+ var h = this.matched.substr(0, this.matched.length - this.match.length);
1086
+ return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
1087
+ }, "pastInput"),
1088
+ // displays upcoming input, i.e. for error messages
1089
+ upcomingInput: /* @__PURE__ */ k(function() {
1090
+ var h = this.match;
1091
+ return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
1092
+ }, "upcomingInput"),
1093
+ // displays the character position where the lexing error occurred, i.e. for error messages
1094
+ showPosition: /* @__PURE__ */ k(function() {
1095
+ var h = this.pastInput(), d = new Array(h.length + 1).join("-");
1096
+ return h + this.upcomingInput() + `
1097
+ ` + d + "^";
1098
+ }, "showPosition"),
1099
+ // test the lexed token: return FALSE when not a match, otherwise return token
1100
+ test_match: /* @__PURE__ */ k(function(h, d) {
1101
+ var f, o, F;
1102
+ if (this.options.backtrack_lexer && (F = {
1103
+ yylineno: this.yylineno,
1104
+ yylloc: {
1105
+ first_line: this.yylloc.first_line,
1106
+ last_line: this.last_line,
1107
+ first_column: this.yylloc.first_column,
1108
+ last_column: this.yylloc.last_column
1109
+ },
1110
+ yytext: this.yytext,
1111
+ match: this.match,
1112
+ matches: this.matches,
1113
+ matched: this.matched,
1114
+ yyleng: this.yyleng,
1115
+ offset: this.offset,
1116
+ _more: this._more,
1117
+ _input: this._input,
1118
+ yy: this.yy,
1119
+ conditionStack: this.conditionStack.slice(0),
1120
+ done: this.done
1121
+ }, this.options.ranges && (F.yylloc.range = this.yylloc.range.slice(0))), o = h[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
1122
+ first_line: this.yylloc.last_line,
1123
+ last_line: this.yylineno + 1,
1124
+ first_column: this.yylloc.last_column,
1125
+ last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
1126
+ }, this.yytext += h[0], this.match += h[0], this.matches = h, 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(h[0].length), this.matched += h[0], f = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), f)
1127
+ return f;
1128
+ if (this._backtrack) {
1129
+ for (var e in F)
1130
+ this[e] = F[e];
1131
+ return !1;
1132
+ }
1133
+ return !1;
1134
+ }, "test_match"),
1135
+ // return next match in input
1136
+ next: /* @__PURE__ */ k(function() {
1137
+ if (this.done)
1138
+ return this.EOF;
1139
+ this._input || (this.done = !0);
1140
+ var h, d, f, o;
1141
+ this._more || (this.yytext = "", this.match = "");
1142
+ for (var F = this._currentRules(), e = 0; e < F.length; e++)
1143
+ if (f = this._input.match(this.rules[F[e]]), f && (!d || f[0].length > d[0].length)) {
1144
+ if (d = f, o = e, this.options.backtrack_lexer) {
1145
+ if (h = this.test_match(f, F[e]), h !== !1)
1146
+ return h;
1147
+ if (this._backtrack) {
1148
+ d = !1;
1149
+ continue;
1150
+ } else
1151
+ return !1;
1152
+ } else if (!this.options.flex)
1153
+ break;
1154
+ }
1155
+ return d ? (h = this.test_match(d, F[o]), h !== !1 ? h : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1156
+ ` + this.showPosition(), {
1157
+ text: "",
1158
+ token: null,
1159
+ line: this.yylineno
1160
+ });
1161
+ }, "next"),
1162
+ // return next match that has a token
1163
+ lex: /* @__PURE__ */ k(function() {
1164
+ var d = this.next();
1165
+ return d || this.lex();
1166
+ }, "lex"),
1167
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1168
+ begin: /* @__PURE__ */ k(function(d) {
1169
+ this.conditionStack.push(d);
1170
+ }, "begin"),
1171
+ // pop the previously active lexer condition state off the condition stack
1172
+ popState: /* @__PURE__ */ k(function() {
1173
+ var d = this.conditionStack.length - 1;
1174
+ return d > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1175
+ }, "popState"),
1176
+ // produce the lexer rule set which is active for the currently active lexer condition state
1177
+ _currentRules: /* @__PURE__ */ k(function() {
1178
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1179
+ }, "_currentRules"),
1180
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1181
+ topState: /* @__PURE__ */ k(function(d) {
1182
+ return d = this.conditionStack.length - 1 - Math.abs(d || 0), d >= 0 ? this.conditionStack[d] : "INITIAL";
1183
+ }, "topState"),
1184
+ // alias for begin(condition)
1185
+ pushState: /* @__PURE__ */ k(function(d) {
1186
+ this.begin(d);
1187
+ }, "pushState"),
1188
+ // return the number of states currently on the stack
1189
+ stateStackSize: /* @__PURE__ */ k(function() {
1190
+ return this.conditionStack.length;
1191
+ }, "stateStackSize"),
1192
+ options: {},
1193
+ performAction: /* @__PURE__ */ k(function(d, f, o, F) {
1194
+ switch (o) {
1195
+ case 0:
1196
+ return this.begin("acc_title"), 34;
1197
+ case 1:
1198
+ return this.popState(), "acc_title_value";
1199
+ case 2:
1200
+ return this.begin("acc_descr"), 36;
1201
+ case 3:
1202
+ return this.popState(), "acc_descr_value";
1203
+ case 4:
1204
+ this.begin("acc_descr_multiline");
1205
+ break;
1206
+ case 5:
1207
+ this.popState();
1208
+ break;
1209
+ case 6:
1210
+ return "acc_descr_multiline_value";
1211
+ case 7:
1212
+ return this.pushState("shapeData"), f.yytext = "", 40;
1213
+ case 8:
1214
+ return this.pushState("shapeDataStr"), 40;
1215
+ case 9:
1216
+ return this.popState(), 40;
1217
+ case 10:
1218
+ const e = /\n\s*/g;
1219
+ return f.yytext = f.yytext.replace(e, "<br/>"), 40;
1220
+ case 11:
1221
+ return 40;
1222
+ case 12:
1223
+ this.popState();
1224
+ break;
1225
+ case 13:
1226
+ this.begin("callbackname");
1227
+ break;
1228
+ case 14:
1229
+ this.popState();
1230
+ break;
1231
+ case 15:
1232
+ this.popState(), this.begin("callbackargs");
1233
+ break;
1234
+ case 16:
1235
+ return 95;
1236
+ case 17:
1237
+ this.popState();
1238
+ break;
1239
+ case 18:
1240
+ return 96;
1241
+ case 19:
1242
+ return "MD_STR";
1243
+ case 20:
1244
+ this.popState();
1245
+ break;
1246
+ case 21:
1247
+ this.begin("md_string");
1248
+ break;
1249
+ case 22:
1250
+ return "STR";
1251
+ case 23:
1252
+ this.popState();
1253
+ break;
1254
+ case 24:
1255
+ this.pushState("string");
1256
+ break;
1257
+ case 25:
1258
+ return 84;
1259
+ case 26:
1260
+ return 102;
1261
+ case 27:
1262
+ return 85;
1263
+ case 28:
1264
+ return 104;
1265
+ case 29:
1266
+ return 86;
1267
+ case 30:
1268
+ return 87;
1269
+ case 31:
1270
+ return 97;
1271
+ case 32:
1272
+ this.begin("click");
1273
+ break;
1274
+ case 33:
1275
+ this.popState();
1276
+ break;
1277
+ case 34:
1278
+ return 88;
1279
+ case 35:
1280
+ return d.lex.firstGraph() && this.begin("dir"), 12;
1281
+ case 36:
1282
+ return d.lex.firstGraph() && this.begin("dir"), 12;
1283
+ case 37:
1284
+ return d.lex.firstGraph() && this.begin("dir"), 12;
1285
+ case 38:
1286
+ return d.lex.firstGraph() && this.begin("dir"), 12;
1287
+ case 39:
1288
+ return 27;
1289
+ case 40:
1290
+ return 32;
1291
+ case 41:
1292
+ return 98;
1293
+ case 42:
1294
+ return 98;
1295
+ case 43:
1296
+ return 98;
1297
+ case 44:
1298
+ return 98;
1299
+ case 45:
1300
+ return this.popState(), 13;
1301
+ case 46:
1302
+ return this.popState(), 14;
1303
+ case 47:
1304
+ return this.popState(), 14;
1305
+ case 48:
1306
+ return this.popState(), 14;
1307
+ case 49:
1308
+ return this.popState(), 14;
1309
+ case 50:
1310
+ return this.popState(), 14;
1311
+ case 51:
1312
+ return this.popState(), 14;
1313
+ case 52:
1314
+ return this.popState(), 14;
1315
+ case 53:
1316
+ return this.popState(), 14;
1317
+ case 54:
1318
+ return this.popState(), 14;
1319
+ case 55:
1320
+ return this.popState(), 14;
1321
+ case 56:
1322
+ return 121;
1323
+ case 57:
1324
+ return 122;
1325
+ case 58:
1326
+ return 123;
1327
+ case 59:
1328
+ return 124;
1329
+ case 60:
1330
+ return 125;
1331
+ case 61:
1332
+ return 78;
1333
+ case 62:
1334
+ return 105;
1335
+ case 63:
1336
+ return 111;
1337
+ case 64:
1338
+ return 46;
1339
+ case 65:
1340
+ return 60;
1341
+ case 66:
1342
+ return 44;
1343
+ case 67:
1344
+ return 8;
1345
+ case 68:
1346
+ return 106;
1347
+ case 69:
1348
+ return 115;
1349
+ case 70:
1350
+ return this.popState(), 77;
1351
+ case 71:
1352
+ return this.pushState("edgeText"), 75;
1353
+ case 72:
1354
+ return 119;
1355
+ case 73:
1356
+ return this.popState(), 77;
1357
+ case 74:
1358
+ return this.pushState("thickEdgeText"), 75;
1359
+ case 75:
1360
+ return 119;
1361
+ case 76:
1362
+ return this.popState(), 77;
1363
+ case 77:
1364
+ return this.pushState("dottedEdgeText"), 75;
1365
+ case 78:
1366
+ return 119;
1367
+ case 79:
1368
+ return 77;
1369
+ case 80:
1370
+ return this.popState(), 53;
1371
+ case 81:
1372
+ return "TEXT";
1373
+ case 82:
1374
+ return this.pushState("ellipseText"), 52;
1375
+ case 83:
1376
+ return this.popState(), 55;
1377
+ case 84:
1378
+ return this.pushState("text"), 54;
1379
+ case 85:
1380
+ return this.popState(), 57;
1381
+ case 86:
1382
+ return this.pushState("text"), 56;
1383
+ case 87:
1384
+ return 58;
1385
+ case 88:
1386
+ return this.pushState("text"), 67;
1387
+ case 89:
1388
+ return this.popState(), 64;
1389
+ case 90:
1390
+ return this.pushState("text"), 63;
1391
+ case 91:
1392
+ return this.popState(), 49;
1393
+ case 92:
1394
+ return this.pushState("text"), 48;
1395
+ case 93:
1396
+ return this.popState(), 69;
1397
+ case 94:
1398
+ return this.popState(), 71;
1399
+ case 95:
1400
+ return 117;
1401
+ case 96:
1402
+ return this.pushState("trapText"), 68;
1403
+ case 97:
1404
+ return this.pushState("trapText"), 70;
1405
+ case 98:
1406
+ return 118;
1407
+ case 99:
1408
+ return 67;
1409
+ case 100:
1410
+ return 90;
1411
+ case 101:
1412
+ return "SEP";
1413
+ case 102:
1414
+ return 89;
1415
+ case 103:
1416
+ return 115;
1417
+ case 104:
1418
+ return 111;
1419
+ case 105:
1420
+ return 44;
1421
+ case 106:
1422
+ return 109;
1423
+ case 107:
1424
+ return 114;
1425
+ case 108:
1426
+ return 116;
1427
+ case 109:
1428
+ return this.popState(), 62;
1429
+ case 110:
1430
+ return this.pushState("text"), 62;
1431
+ case 111:
1432
+ return this.popState(), 51;
1433
+ case 112:
1434
+ return this.pushState("text"), 50;
1435
+ case 113:
1436
+ return this.popState(), 31;
1437
+ case 114:
1438
+ return this.pushState("text"), 29;
1439
+ case 115:
1440
+ return this.popState(), 66;
1441
+ case 116:
1442
+ return this.pushState("text"), 65;
1443
+ case 117:
1444
+ return "TEXT";
1445
+ case 118:
1446
+ return "QUOTE";
1447
+ case 119:
1448
+ return 9;
1449
+ case 120:
1450
+ return 10;
1451
+ case 121:
1452
+ return 11;
1453
+ }
1454
+ }, "anonymous"),
1455
+ 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)/, /^(?:$)/],
1456
+ 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 } }
1457
+ };
1458
+ return f1;
1459
+ }();
1460
+ J1.lexer = je;
1461
+ function H1() {
1462
+ this.yy = {};
1463
+ }
1464
+ return k(H1, "Parser"), H1.prototype = J1, J1.Parser = H1, new H1();
1465
+ }();
1466
+ ae.parser = ae;
1467
+ var Ue = ae, ze = Object.assign({}, Ue);
1468
+ ze.parse = (s) => {
1469
+ const i = s.replace(/}\s*\n/g, `}
1470
+ `);
1471
+ return Ue.parse(i);
1472
+ };
1473
+ var Tt = ze, Ct = /* @__PURE__ */ k((s, i) => {
1474
+ const r = bt, a = r(s, "r"), n = r(s, "g"), l = r(s, "b");
1475
+ return pt(a, n, l, i);
1476
+ }, "fade"), St = /* @__PURE__ */ k((s) => `.label {
1477
+ font-family: ${s.fontFamily};
1478
+ color: ${s.nodeTextColor || s.textColor};
1479
+ }
1480
+ .cluster-label text {
1481
+ fill: ${s.titleColor};
1482
+ }
1483
+ .cluster-label span {
1484
+ color: ${s.titleColor};
1485
+ }
1486
+ .cluster-label span p {
1487
+ background-color: transparent;
1488
+ }
1489
+
1490
+ .label text,span {
1491
+ fill: ${s.nodeTextColor || s.textColor};
1492
+ color: ${s.nodeTextColor || s.textColor};
1493
+ }
1494
+
1495
+ .node rect,
1496
+ .node circle,
1497
+ .node ellipse,
1498
+ .node polygon,
1499
+ .node path {
1500
+ fill: ${s.mainBkg};
1501
+ stroke: ${s.nodeBorder};
1502
+ stroke-width: ${s.strokeWidth ?? 1}px;
1503
+ }
1504
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
1505
+ text-anchor: middle;
1506
+ }
1507
+
1508
+ .node .katex path {
1509
+ fill: #000;
1510
+ stroke: #000;
1511
+ stroke-width: 1px;
1512
+ }
1513
+
1514
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
1515
+ text-align: center;
1516
+ }
1517
+ .node.clickable {
1518
+ cursor: pointer;
1519
+ }
1520
+
1521
+
1522
+ .root .anchor path {
1523
+ fill: ${s.lineColor} !important;
1524
+ stroke-width: 0;
1525
+ stroke: ${s.lineColor};
1526
+ }
1527
+
1528
+ .arrowheadPath {
1529
+ fill: ${s.arrowheadColor};
1530
+ }
1531
+
1532
+ .edgePath .path {
1533
+ stroke: ${s.lineColor};
1534
+ stroke-width: ${s.strokeWidth ?? 2}px;
1535
+ }
1536
+
1537
+ .flowchart-link {
1538
+ stroke: ${s.lineColor};
1539
+ fill: none;
1540
+ }
1541
+
1542
+ .edgeLabel {
1543
+ background-color: ${s.edgeLabelBackground};
1544
+ p {
1545
+ background-color: ${s.edgeLabelBackground};
1546
+ }
1547
+ rect {
1548
+ opacity: 0.5;
1549
+ background-color: ${s.edgeLabelBackground};
1550
+ fill: ${s.edgeLabelBackground};
1551
+ }
1552
+ text-align: center;
1553
+ }
1554
+
1555
+ /* For html labels only */
1556
+ .labelBkg {
1557
+ background-color: ${Ct(s.edgeLabelBackground, 0.5)};
1558
+ // background-color:
1559
+ }
1560
+
1561
+ .cluster rect {
1562
+ fill: ${s.clusterBkg};
1563
+ stroke: ${s.clusterBorder};
1564
+ stroke-width: 1px;
1565
+ }
1566
+
1567
+ .cluster text {
1568
+ fill: ${s.titleColor};
1569
+ }
1570
+
1571
+ .cluster span {
1572
+ color: ${s.titleColor};
1573
+ }
1574
+ /* .cluster div {
1575
+ color: ${s.titleColor};
1576
+ } */
1577
+
1578
+ div.mermaidTooltip {
1579
+ position: absolute;
1580
+ text-align: center;
1581
+ max-width: 200px;
1582
+ padding: 2px;
1583
+ font-family: ${s.fontFamily};
1584
+ font-size: 12px;
1585
+ background: ${s.tertiaryColor};
1586
+ border: 1px solid ${s.border2};
1587
+ border-radius: 2px;
1588
+ pointer-events: none;
1589
+ z-index: 100;
1590
+ }
1591
+
1592
+ .flowchartTitleText {
1593
+ text-anchor: middle;
1594
+ font-size: 18px;
1595
+ fill: ${s.textColor};
1596
+ }
1597
+
1598
+ rect.text {
1599
+ fill: none;
1600
+ stroke-width: 0;
1601
+ }
1602
+
1603
+ .icon-shape, .image-shape {
1604
+ background-color: ${s.edgeLabelBackground};
1605
+ p {
1606
+ background-color: ${s.edgeLabelBackground};
1607
+ padding: 2px;
1608
+ }
1609
+ .label rect {
1610
+ opacity: 0.5;
1611
+ background-color: ${s.edgeLabelBackground};
1612
+ fill: ${s.edgeLabelBackground};
1613
+ }
1614
+ text-align: center;
1615
+ }
1616
+ ${Xe()}
1617
+ `, "getStyles"), yt = St, We = /* @__PURE__ */ k(({
1618
+ defaultLayout: s,
1619
+ styles: i = yt
1620
+ } = {}) => ({
1621
+ parser: Tt,
1622
+ get db() {
1623
+ return new kt();
1624
+ },
1625
+ renderer: Et,
1626
+ styles: i,
1627
+ init: /* @__PURE__ */ k((r) => {
1628
+ r.flowchart || (r.flowchart = {});
1629
+ const a = Ze().layout ?? s ?? r.layout;
1630
+ a && Me({ layout: a }), r.flowchart.arrowMarkerAbsolute = r.arrowMarkerAbsolute, Me({ flowchart: { arrowMarkerAbsolute: r.arrowMarkerAbsolute } });
1631
+ }, "init")
1632
+ }), "createFlowDiagram"), xt = We();
1633
+ const Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1634
+ __proto__: null,
1635
+ createFlowDiagram: We,
1636
+ diagram: xt
1637
+ }, Symbol.toStringTag, { value: "Module" }));
1638
+ export {
1639
+ We as c,
1640
+ Gt as f,
1641
+ yt as s
1642
+ };