@vunk/plus 1.10.1 → 1.10.2

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 (296) hide show
  1. package/components/bubble-list/index.css +0 -22
  2. package/components/bubble-list/index.mjs +413 -9
  3. package/components/drawer/index.mjs +1 -1
  4. package/components/index3.mjs +20 -79450
  5. package/components/xgplayer/index.mjs +2 -16357
  6. package/index.css +0 -22
  7. package/package.json +1 -1
  8. package/components/_baseUniq-BXtq6_NW.mjs +0 -239
  9. package/components/abap-B7h4dtBh.mjs +0 -6
  10. package/components/actionscript-3-Bmm7RA3Y.mjs +0 -6
  11. package/components/ada-BZS802Se.mjs +0 -6
  12. package/components/andromeeda-CrngpmZk.mjs +0 -3
  13. package/components/apache-D4roVlsU.mjs +0 -6
  14. package/components/apex-D6mfw0H5.mjs +0 -6
  15. package/components/apl-DDK-VObo.mjs +0 -18
  16. package/components/applescript-C43Knf0G.mjs +0 -6
  17. package/components/ara-DRBH84ND.mjs +0 -6
  18. package/components/arc-Js_tyW10.mjs +0 -131
  19. package/components/architecture-O4VJ6CD3-ZoZ2IAk2.mjs +0 -15
  20. package/components/architectureDiagram-SUXI7LT5-kyYGGrHN.mjs +0 -8678
  21. package/components/asm-3tg4MVib.mjs +0 -6
  22. package/components/astro-v4FYbRud.mjs +0 -19
  23. package/components/aurora-x-wJ4-eM2h.mjs +0 -3
  24. package/components/awk-ChreaG-G.mjs +0 -6
  25. package/components/ayu-dark-BEKp3oqs.mjs +0 -3
  26. package/components/ballerina-B0yt0TYU.mjs +0 -6
  27. package/components/batch-Ce_EX3Sx.mjs +0 -14
  28. package/components/beancount-BRIsdQEB.mjs +0 -6
  29. package/components/berry-Brv4WWdL.mjs +0 -14
  30. package/components/bibtex-BLeFwAes.mjs +0 -6
  31. package/components/bicep-BVrgfErX.mjs +0 -6
  32. package/components/blade-By3Sw_Ex.mjs +0 -22
  33. package/components/blockDiagram-6J76NXCF-IAr4zDV3.mjs +0 -3610
  34. package/components/c-C4VtT7JA.mjs +0 -6
  35. package/components/c4Diagram-6F6E4RAY-Dv27rXcJ.mjs +0 -2492
  36. package/components/catppuccin-frappe-zLMNRRUx.mjs +0 -3
  37. package/components/catppuccin-latte-CdF5jC3c.mjs +0 -3
  38. package/components/catppuccin-macchiato-DyjXeyRt.mjs +0 -3
  39. package/components/catppuccin-mocha-66IdYxR8.mjs +0 -3
  40. package/components/cdc-30ktANo3.mjs +0 -14
  41. package/components/channel-BBZy6zOT.mjs +0 -7
  42. package/components/chunk-353BL4L5-Dn_Y_Yna.mjs +0 -17
  43. package/components/chunk-67H74DCK-Br5U8bfD.mjs +0 -102
  44. package/components/chunk-AACKK3MU-DH_MKxca.mjs +0 -17
  45. package/components/chunk-BFAMUDN2-DHLCoYMN.mjs +0 -13
  46. package/components/chunk-E2GYISFI-DQPHyyga.mjs +0 -19
  47. package/components/chunk-OW32GOEJ-CQOSE6Bn.mjs +0 -1924
  48. package/components/chunk-SKB7J2MH-BlwHRDiW.mjs +0 -25
  49. package/components/chunk-SZ463SBG-DEp8buKJ.mjs +0 -1823
  50. package/components/clarity-6uBl6Vpb.mjs +0 -6
  51. package/components/classDiagram-M3E45YP4-D0ySDe-v.mjs +0 -32
  52. package/components/classDiagram-v2-YAWTLIQI-D0ySDe-v.mjs +0 -32
  53. package/components/clojure-COBRmwo8.mjs +0 -14
  54. package/components/clone-CEJtuQzg.mjs +0 -8
  55. package/components/cmake-CDfQILeU.mjs +0 -6
  56. package/components/cobol-BOOIiISO.mjs +0 -13
  57. package/components/coffee-DO_RGoZp.mjs +0 -9
  58. package/components/cpp-DAK8ktHO.mjs +0 -25
  59. package/components/crystal-CBGbbyVp.mjs +0 -19
  60. package/components/cs-h3ksD6-P.mjs +0 -14
  61. package/components/css-BtVcDqlU.mjs +0 -6
  62. package/components/cue-BFSVLV6N.mjs +0 -6
  63. package/components/cypher-Dl2CXoXF.mjs +0 -14
  64. package/components/cytoscape.esm-BojS1z60.mjs +0 -30216
  65. package/components/d-9qSZPw74.mjs +0 -6
  66. package/components/dagre-JOIXM2OF-5zx0JY2T.mjs +0 -707
  67. package/components/dark-plus-DmZ1Dzd4.mjs +0 -3
  68. package/components/dart-CCSsOg9l.mjs +0 -6
  69. package/components/dax-CvsmLV-B.mjs +0 -6
  70. package/components/defaultLocale-DVr69WTU.mjs +0 -202
  71. package/components/diagram-5UYTHUR4-C19nyAKc.mjs +0 -215
  72. package/components/diagram-VMROVX33-DkGwo-hj.mjs +0 -861
  73. package/components/diagram-ZTM2IBQH-CBgHCu9L.mjs +0 -317
  74. package/components/diff-BEdzuHlE.mjs +0 -6
  75. package/components/dockerfile-B3DP334t.mjs +0 -14
  76. package/components/dracula-B8-AVrwI.mjs +0 -3
  77. package/components/dracula-soft-BHeefow7.mjs +0 -3
  78. package/components/dream-maker-CNLQpoF-.mjs +0 -6
  79. package/components/elixir-0rTCSSfp.mjs +0 -11
  80. package/components/elm-BhwiZPvf.mjs +0 -10
  81. package/components/erDiagram-3M52JZNH-cttdAJXW.mjs +0 -1169
  82. package/components/erb-Lra8TlYM.mjs +0 -27
  83. package/components/erlang-D2NNgvtR.mjs +0 -17
  84. package/components/everforest-dark-Cg1xdODP.mjs +0 -3
  85. package/components/everforest-light-BmTD3bxe.mjs +0 -3
  86. package/components/fish-BU5HSdZy.mjs +0 -6
  87. package/components/flowDiagram-KYDEHFYC-9HpsqDdB.mjs +0 -2345
  88. package/components/fs-CdBSddpF.mjs +0 -17
  89. package/components/ganttDiagram-EK5VF46D-8QB3ofs6.mjs +0 -3497
  90. package/components/gdresource-CAbkn6H_.mjs +0 -11
  91. package/components/gdscript-Be_cubqt.mjs +0 -6
  92. package/components/gdshader-BEzE4j_3.mjs +0 -6
  93. package/components/gherkin-xCNF9gh8.mjs +0 -6
  94. package/components/git-commit-PP9xCApN.mjs +0 -9
  95. package/components/git-rebase-DqdGofLo.mjs +0 -9
  96. package/components/gitGraph-ZV4HHKMB-BSmtVGRu.mjs +0 -15
  97. package/components/gitGraphDiagram-GW3U2K7C-DNzc0Vx_.mjs +0 -1227
  98. package/components/github-dark-O22yVQaY.mjs +0 -3
  99. package/components/github-dark-default-DB2Hkvqn.mjs +0 -3
  100. package/components/github-dark-dimmed-CMZ_OfqC.mjs +0 -3
  101. package/components/github-dark-high-contrast-DmxWVmCU.mjs +0 -3
  102. package/components/github-light-BTbR9xVK.mjs +0 -3
  103. package/components/github-light-default-DWEonwFe.mjs +0 -3
  104. package/components/github-light-high-contrast-WJ_cPDts.mjs +0 -3
  105. package/components/glimmer-js-BkPYTyD4.mjs +0 -23
  106. package/components/glsl-CGsiYPcu.mjs +0 -9
  107. package/components/gnuplot-tV8vezdE.mjs +0 -6
  108. package/components/go-CBmVHZBz.mjs +0 -6
  109. package/components/graph-3zJxsO-i.mjs +0 -425
  110. package/components/graphql-D4pgneW3.mjs +0 -15
  111. package/components/groovy-Bn4MhXgW.mjs +0 -6
  112. package/components/gruvbox-dark-hard-C89wZ4s3.mjs +0 -3
  113. package/components/gruvbox-dark-medium-swz85q_b.mjs +0 -3
  114. package/components/gruvbox-dark-soft-BYHBHQJW.mjs +0 -3
  115. package/components/gruvbox-light-hard-DEF_ZxYZ.mjs +0 -3
  116. package/components/gruvbox-light-medium-ziUMnHJx.mjs +0 -3
  117. package/components/gruvbox-light-soft-Cuwp0tsB.mjs +0 -3
  118. package/components/gts-d3WsqAZM.mjs +0 -23
  119. package/components/hack-CwaBuF5l.mjs +0 -13
  120. package/components/haml-gLijj4rW.mjs +0 -11
  121. package/components/hbs-CFi5SpI3.mjs +0 -23
  122. package/components/hcl-axoq0Ycu.mjs +0 -6
  123. package/components/hjson-I7LcauIB.mjs +0 -6
  124. package/components/hlsl-TRzjajlb.mjs +0 -6
  125. package/components/houston-CF_ws8Cq.mjs +0 -3
  126. package/components/hs-DXSGqUFF.mjs +0 -14
  127. package/components/html-CLq-n30c.mjs +0 -11
  128. package/components/html-derivative-C8POX8SL.mjs +0 -9
  129. package/components/http-BYUKZ6kX.mjs +0 -20
  130. package/components/imba-C4923lSV.mjs +0 -6
  131. package/components/index4.mjs +0 -78
  132. package/components/info-63CPKGFF-C8sYWczU.mjs +0 -15
  133. package/components/infoDiagram-LHK5PUON-C-vFFPTf.mjs +0 -44
  134. package/components/init-ZxktEp_H.mjs +0 -15
  135. package/components/java-BfXh-0uJ.mjs +0 -6
  136. package/components/jinja-html-BmW4v_vu.mjs +0 -11
  137. package/components/jison-C9kAT_Oj.mjs +0 -9
  138. package/components/journeyDiagram-EWQZEKCU-BJrw4-AG.mjs +0 -1264
  139. package/components/js-CN_xSsjU.mjs +0 -14
  140. package/components/json-TjWBGEk1.mjs +0 -6
  141. package/components/json5-DCGCKrmX.mjs +0 -6
  142. package/components/jsonc-DLVLp8id.mjs +0 -6
  143. package/components/jsonl-B-R_pDGg.mjs +0 -6
  144. package/components/jsonnet-Cs8BnnC6.mjs +0 -6
  145. package/components/jssm-D_YBQ_cM.mjs +0 -14
  146. package/components/jsx-BPmvoin2.mjs +0 -6
  147. package/components/julia-C-JjBobP.mjs +0 -19
  148. package/components/kanagawa-dragon-DU8n2NNT.mjs +0 -3
  149. package/components/kanagawa-lotus-Byd0CDet.mjs +0 -3
  150. package/components/kanagawa-wave-DExoagcR.mjs +0 -3
  151. package/components/kanban-definition-ZSS6B67P-BptAnqU-.mjs +0 -1059
  152. package/components/kotlin-BM2ZNTMh.mjs +0 -6
  153. package/components/kusto-D9MF7CZf.mjs +0 -14
  154. package/components/laserwave-DF03wMlf.mjs +0 -3
  155. package/components/latex-BsqkLZB_.mjs +0 -10
  156. package/components/layout-sGZIJplX.mjs +0 -2043
  157. package/components/less-BAzLMJNR.mjs +0 -6
  158. package/components/light-plus-DS08Xg5J.mjs +0 -3
  159. package/components/linear-DqgVh5FN.mjs +0 -336
  160. package/components/liquid-f2VHt0dg.mjs +0 -15
  161. package/components/lisp-DAq1kaby.mjs +0 -6
  162. package/components/logo-D9l7oEJ8.mjs +0 -6
  163. package/components/lua-CH3ttzl_.mjs +0 -9
  164. package/components/makefile-D2qLe7q0.mjs +0 -14
  165. package/components/marko-DwRyI_--.mjs +0 -15
  166. package/components/material-theme-B8B2U48Q.mjs +0 -3
  167. package/components/material-theme-darker-BV0iY_T3.mjs +0 -3
  168. package/components/material-theme-lighter-DrzybSTF.mjs +0 -3
  169. package/components/material-theme-ocean-BRPLVReX.mjs +0 -3
  170. package/components/material-theme-palenight-DSJwsR_D.mjs +0 -3
  171. package/components/matlab-7XHduepk.mjs +0 -6
  172. package/components/md-BIvDPr-W.mjs +0 -14
  173. package/components/mdc-Rx6hWSHn.mjs +0 -16
  174. package/components/mdx-D5wExp-O.mjs +0 -6
  175. package/components/mermaid-CUjtoYEe.mjs +0 -6
  176. package/components/mermaid-parser.core-CH9ryA1K.mjs +0 -16987
  177. package/components/mermaid.core-CAqkCmS1.mjs +0 -20977
  178. package/components/min-BngCxx8g.mjs +0 -109
  179. package/components/min-dark-BNaN9fWk.mjs +0 -3
  180. package/components/min-light-CMrjentn.mjs +0 -3
  181. package/components/mindmap-definition-6CBA2TL7-Cp_EeEsh.mjs +0 -5856
  182. package/components/mojo-CrbF881p.mjs +0 -6
  183. package/components/monokai-DelygWXa.mjs +0 -3
  184. package/components/narrat-DOwkIbBe.mjs +0 -14
  185. package/components/nf-DHfvJ2gH.mjs +0 -14
  186. package/components/nginx-B_jWsywZ.mjs +0 -10
  187. package/components/night-owl-DSS199ra.mjs +0 -3
  188. package/components/nim-yzbnZKJd.mjs +0 -22
  189. package/components/nix--3K2gyjg.mjs +0 -6
  190. package/components/nord-CvDbBq5M.mjs +0 -3
  191. package/components/objective-c-DkOBZg1J.mjs +0 -14
  192. package/components/objective-cpp-DEoN9Fe5.mjs +0 -6
  193. package/components/ocaml-B1kfGk9Y.mjs +0 -6
  194. package/components/one-dark-pro-CsMf0BoJ.mjs +0 -3
  195. package/components/one-light-BwwAsfsj.mjs +0 -3
  196. package/components/ordinal-DSZU4PqD.mjs +0 -76
  197. package/components/packet-HUATNLJX-bfFWFja0.mjs +0 -15
  198. package/components/pascal-CU8Kjkr_.mjs +0 -6
  199. package/components/perl-FH6su6vZ.mjs +0 -18
  200. package/components/php-Dnl1TfYH.mjs +0 -20
  201. package/components/pie-WTHONI2E-QPrWs3SR.mjs +0 -15
  202. package/components/pieDiagram-NIOCPIFQ-C46Y_4C6.mjs +0 -250
  203. package/components/plastic-BjwMpBc0.mjs +0 -3
  204. package/components/plsql-B3Na24V4.mjs +0 -6
  205. package/components/poimandres-ChWyhPrn.mjs +0 -3
  206. package/components/postcss-kj1IbjVd.mjs +0 -6
  207. package/components/powerquery-B-e1fO-k.mjs +0 -6
  208. package/components/prisma-bmxcSDxq.mjs +0 -6
  209. package/components/prolog-BT9GCzqD.mjs +0 -6
  210. package/components/properties-D6yKO1eW.mjs +0 -14
  211. package/components/proto-BIXM0k1a.mjs +0 -6
  212. package/components/ps1-aFyNx8UH.mjs +0 -18
  213. package/components/pug-BrOx0bSt.mjs +0 -21
  214. package/components/puppet-N15G4Usj.mjs +0 -6
  215. package/components/purescript-DrwsEYNH.mjs +0 -6
  216. package/components/python-D2s92fRP.mjs +0 -14
  217. package/components/ql-DTm-NCRo.mjs +0 -14
  218. package/components/quadrantDiagram-2OG54O6I-Dgf6d6F_.mjs +0 -1349
  219. package/components/r-oprfD2-9.mjs +0 -6
  220. package/components/radar-NJJJXTRR-BnUCJhQL.mjs +0 -15
  221. package/components/raku-xArQd_rF.mjs +0 -14
  222. package/components/razor-BoXCAbWQ.mjs +0 -13
  223. package/components/red-DByOl5N0.mjs +0 -3
  224. package/components/reg-CULnG2WX.mjs +0 -6
  225. package/components/rel-CHRwzjd4.mjs +0 -6
  226. package/components/requirementDiagram-QOLK2EJ7-CSF6N7HA.mjs +0 -1173
  227. package/components/riscv-BNQ9cVpw.mjs +0 -6
  228. package/components/rose-pine-LL9gXmP2.mjs +0 -3
  229. package/components/rose-pine-dawn-CH9zdisO.mjs +0 -3
  230. package/components/rose-pine-moon-B1oKSfEJ.mjs +0 -3
  231. package/components/rst-bEtD1v7N.mjs +0 -36
  232. package/components/ruby-BmfBy6EV.mjs +0 -44
  233. package/components/rust-Bf_fdNdL.mjs +0 -14
  234. package/components/sankeyDiagram-4UZDY2LN-BAHB7dMS.mjs +0 -1201
  235. package/components/sas-BLBgC3TA.mjs +0 -9
  236. package/components/sass-BheygBdF.mjs +0 -6
  237. package/components/scala-B-_7vFVn.mjs +0 -6
  238. package/components/scheme-BSHdPinv.mjs +0 -6
  239. package/components/scss-Dq-LbI_c.mjs +0 -9
  240. package/components/sequenceDiagram-SKLFT4DO-10gLJ50N.mjs +0 -3424
  241. package/components/shaderlab-BOQRTiQi.mjs +0 -17
  242. package/components/shellsession-Cu3c0QAc.mjs +0 -17
  243. package/components/slack-dark-BEe10hxO.mjs +0 -3
  244. package/components/slack-ochin-BKmu9pBc.mjs +0 -3
  245. package/components/smalltalk-qxcGy4fT.mjs +0 -6
  246. package/components/snazzy-light-Dcvd-ZyI.mjs +0 -3
  247. package/components/solarized-dark-BBl5y5sR.mjs +0 -3
  248. package/components/solarized-light-DW9b_AY8.mjs +0 -3
  249. package/components/solidity-CewKZgp-.mjs +0 -6
  250. package/components/sparql-DswowMAp.mjs +0 -9
  251. package/components/splunk-gK6Iw_P9.mjs +0 -14
  252. package/components/sql-DzUuSofg.mjs +0 -6
  253. package/components/ssh-config-Bk_I5wDR.mjs +0 -6
  254. package/components/stata-Dl7wDdBE.mjs +0 -9
  255. package/components/stateDiagram-MI5ZYTHO-D6p6nCaj.mjs +0 -461
  256. package/components/stateDiagram-v2-5AN5P6BG-DaN5hC-t.mjs +0 -31
  257. package/components/stylus-qRNkxrFU.mjs +0 -14
  258. package/components/svelte-B9qv3vkS.mjs +0 -15
  259. package/components/swift-BRQRsam8.mjs +0 -6
  260. package/components/synthwave-84-CoUef9sh.mjs +0 -3
  261. package/components/system-verilog-BcESSvRn.mjs +0 -6
  262. package/components/tasl-DfOr2qHi.mjs +0 -6
  263. package/components/tcl-CTsc4-t7.mjs +0 -6
  264. package/components/tex-CumJx1zu.mjs +0 -9
  265. package/components/timeline-definition-MYPXXCX6-gLqnWxDu.mjs +0 -1236
  266. package/components/tokyo-night-DjtLpAEY.mjs +0 -3
  267. package/components/toml-vHPzWDj6.mjs +0 -6
  268. package/components/treemap-75Q7IDZK-B2atdfMH.mjs +0 -15
  269. package/components/tsx-CmGGo4Hm.mjs +0 -6
  270. package/components/turtle-BnC7StHY.mjs +0 -6
  271. package/components/twig-0XKNpXN1.mjs +0 -35
  272. package/components/typescript-CgxwwAuC.mjs +0 -14
  273. package/components/v-Bmdjo9cy.mjs +0 -6
  274. package/components/vb-DuF6ZenW.mjs +0 -14
  275. package/components/verilog-CCb_iTfF.mjs +0 -6
  276. package/components/vesper-4Q1cEwPL.mjs +0 -3
  277. package/components/vhdl-DMqk4T2s.mjs +0 -6
  278. package/components/vimscript-aKp9YbYm.mjs +0 -18
  279. package/components/vitesse-black-BqNLki8b.mjs +0 -3
  280. package/components/vitesse-dark-jJ32WhwH.mjs +0 -3
  281. package/components/vitesse-light-476zM4e6.mjs +0 -3
  282. package/components/vue-DVNNTw2l.mjs +0 -40
  283. package/components/vue-html-Cr5wciIP.mjs +0 -16
  284. package/components/vyper-DYedWgAE.mjs +0 -14
  285. package/components/wasm-BBh6f151.mjs +0 -6
  286. package/components/wasm-DDgzZJey.mjs +0 -7
  287. package/components/wenyan-BdqozpMZ.mjs +0 -6
  288. package/components/wgsl-Vo-hHVWH.mjs +0 -6
  289. package/components/wolfram-CRmjUoI4.mjs +0 -6
  290. package/components/xml-BMzZeaqs.mjs +0 -9
  291. package/components/xsl-CAhvzxWv.mjs +0 -10
  292. package/components/xychartDiagram-H2YORKM3-Whqa4ezL.mjs +0 -1895
  293. package/components/yml-BhSrWWMS.mjs +0 -14
  294. package/components/zenscript-DFINJL6j.mjs +0 -6
  295. package/components/zig-CS4FMAZp.mjs +0 -6
  296. package/components/zsh-hcK4TBd7.mjs +0 -26
@@ -1,2345 +0,0 @@
1
- import { g as getIconStyles } from './chunk-E2GYISFI-DQPHyyga.mjs';
2
- import { _ as __name, o as setConfig2, c as getConfig2, b as setAccTitle, s as setAccDescription, q as setDiagramTitle, a as getAccTitle, g as getAccDescription, t as getDiagramTitle, k as common_default, v as load, J as JSON_SCHEMA, x as isValidShape, l as log, y as getEdgeId, u as utils_default, d as select, z as clear$2, A as defaultConfig2, p as getRegisteredLayoutAlgorithm, r as render$1, B as rgba$1 } from './mermaid.core-CAqkCmS1.mjs';
3
- import { g as getDiagramElement } from './chunk-BFAMUDN2-DHLCoYMN.mjs';
4
- import { s as setupViewPortForSVG } from './chunk-SKB7J2MH-BlwHRDiW.mjs';
5
- import { c as channel } from './channel-BBZy6zOT.mjs';
6
- import './index3.mjs';
7
- import 'vue';
8
- import '@vunk/plus/components/bubble-templates';
9
- import 'element-plus';
10
- import './index4.mjs';
11
- import '@vueuse/core';
12
- import '@vunk/plus/components/scrollbar';
13
- import './_plugin-vue_export-helper.mjs';
14
- import '@vunk/shared/function';
15
- import '@vunk/plus/components/agent-chat-provider';
16
-
17
- var _a;
18
- var MERMAID_DOM_ID_PREFIX = "flowchart-";
19
- var FlowDB = (_a = class {
20
- // cspell:ignore funs
21
- constructor() {
22
- this.vertexCounter = 0;
23
- this.config = getConfig2();
24
- this.vertices = /* @__PURE__ */ new Map();
25
- this.edges = [];
26
- this.classes = /* @__PURE__ */ new Map();
27
- this.subGraphs = [];
28
- this.subGraphLookup = /* @__PURE__ */ new Map();
29
- this.tooltips = /* @__PURE__ */ new Map();
30
- this.subCount = 0;
31
- this.firstGraphFlag = true;
32
- this.secCount = -1;
33
- this.posCrossRef = [];
34
- this.funs = [];
35
- this.setAccTitle = setAccTitle;
36
- this.setAccDescription = setAccDescription;
37
- this.setDiagramTitle = setDiagramTitle;
38
- this.getAccTitle = getAccTitle;
39
- this.getAccDescription = getAccDescription;
40
- this.getDiagramTitle = getDiagramTitle;
41
- this.funs.push(this.setupToolTips.bind(this));
42
- this.addVertex = this.addVertex.bind(this);
43
- this.firstGraph = this.firstGraph.bind(this);
44
- this.setDirection = this.setDirection.bind(this);
45
- this.addSubGraph = this.addSubGraph.bind(this);
46
- this.addLink = this.addLink.bind(this);
47
- this.setLink = this.setLink.bind(this);
48
- this.updateLink = this.updateLink.bind(this);
49
- this.addClass = this.addClass.bind(this);
50
- this.setClass = this.setClass.bind(this);
51
- this.destructLink = this.destructLink.bind(this);
52
- this.setClickEvent = this.setClickEvent.bind(this);
53
- this.setTooltip = this.setTooltip.bind(this);
54
- this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this);
55
- this.setClickFun = this.setClickFun.bind(this);
56
- this.bindFunctions = this.bindFunctions.bind(this);
57
- this.lex = {
58
- firstGraph: this.firstGraph.bind(this)
59
- };
60
- this.clear();
61
- this.setGen("gen-2");
62
- }
63
- sanitizeText(txt) {
64
- return common_default.sanitizeText(txt, this.config);
65
- }
66
- /**
67
- * Function to lookup domId from id in the graph definition.
68
- *
69
- * @param id - id of the node
70
- */
71
- lookUpDomId(id) {
72
- for (const vertex of this.vertices.values()) {
73
- if (vertex.id === id) {
74
- return vertex.domId;
75
- }
76
- }
77
- return id;
78
- }
79
- /**
80
- * Function called by parser when a node definition has been found
81
- */
82
- addVertex(id, textObj, type, style, classes, dir, props = {}, metadata) {
83
- var _a2, _b;
84
- if (!id || id.trim().length === 0) {
85
- return;
86
- }
87
- let doc;
88
- if (metadata !== void 0) {
89
- let yamlData;
90
- if (!metadata.includes("\n")) {
91
- yamlData = "{\n" + metadata + "\n}";
92
- } else {
93
- yamlData = metadata + "\n";
94
- }
95
- doc = load(yamlData, { schema: JSON_SCHEMA });
96
- }
97
- const edge = this.edges.find((e) => e.id === id);
98
- if (edge) {
99
- const edgeDoc = doc;
100
- if ((edgeDoc == null ? void 0 : edgeDoc.animate) !== void 0) {
101
- edge.animate = edgeDoc.animate;
102
- }
103
- if ((edgeDoc == null ? void 0 : edgeDoc.animation) !== void 0) {
104
- edge.animation = edgeDoc.animation;
105
- }
106
- return;
107
- }
108
- let txt;
109
- let vertex = this.vertices.get(id);
110
- if (vertex === void 0) {
111
- vertex = {
112
- id,
113
- labelType: "text",
114
- domId: MERMAID_DOM_ID_PREFIX + id + "-" + this.vertexCounter,
115
- styles: [],
116
- classes: []
117
- };
118
- this.vertices.set(id, vertex);
119
- }
120
- this.vertexCounter++;
121
- if (textObj !== void 0) {
122
- this.config = getConfig2();
123
- txt = this.sanitizeText(textObj.text.trim());
124
- vertex.labelType = textObj.type;
125
- if (txt.startsWith('"') && txt.endsWith('"')) {
126
- txt = txt.substring(1, txt.length - 1);
127
- }
128
- vertex.text = txt;
129
- } else {
130
- if (vertex.text === void 0) {
131
- vertex.text = id;
132
- }
133
- }
134
- if (type !== void 0) {
135
- vertex.type = type;
136
- }
137
- if (style !== void 0 && style !== null) {
138
- style.forEach((s) => {
139
- vertex.styles.push(s);
140
- });
141
- }
142
- if (classes !== void 0 && classes !== null) {
143
- classes.forEach((s) => {
144
- vertex.classes.push(s);
145
- });
146
- }
147
- if (dir !== void 0) {
148
- vertex.dir = dir;
149
- }
150
- if (vertex.props === void 0) {
151
- vertex.props = props;
152
- } else if (props !== void 0) {
153
- Object.assign(vertex.props, props);
154
- }
155
- if (doc !== void 0) {
156
- if (doc.shape) {
157
- if (doc.shape !== doc.shape.toLowerCase() || doc.shape.includes("_")) {
158
- throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);
159
- } else if (!isValidShape(doc.shape)) {
160
- throw new Error(`No such shape: ${doc.shape}.`);
161
- }
162
- vertex.type = doc == null ? void 0 : doc.shape;
163
- }
164
- if (doc == null ? void 0 : doc.label) {
165
- vertex.text = doc == null ? void 0 : doc.label;
166
- }
167
- if (doc == null ? void 0 : doc.icon) {
168
- vertex.icon = doc == null ? void 0 : doc.icon;
169
- if (!((_a2 = doc.label) == null ? void 0 : _a2.trim()) && vertex.text === id) {
170
- vertex.text = "";
171
- }
172
- }
173
- if (doc == null ? void 0 : doc.form) {
174
- vertex.form = doc == null ? void 0 : doc.form;
175
- }
176
- if (doc == null ? void 0 : doc.pos) {
177
- vertex.pos = doc == null ? void 0 : doc.pos;
178
- }
179
- if (doc == null ? void 0 : doc.img) {
180
- vertex.img = doc == null ? void 0 : doc.img;
181
- if (!((_b = doc.label) == null ? void 0 : _b.trim()) && vertex.text === id) {
182
- vertex.text = "";
183
- }
184
- }
185
- if (doc == null ? void 0 : doc.constraint) {
186
- vertex.constraint = doc.constraint;
187
- }
188
- if (doc.w) {
189
- vertex.assetWidth = Number(doc.w);
190
- }
191
- if (doc.h) {
192
- vertex.assetHeight = Number(doc.h);
193
- }
194
- }
195
- }
196
- /**
197
- * Function called by parser when a link/edge definition has been found
198
- *
199
- */
200
- addSingleLink(_start, _end, type, id) {
201
- const start = _start;
202
- const end = _end;
203
- const edge = {
204
- start,
205
- end,
206
- type: void 0,
207
- text: "",
208
- labelType: "text",
209
- classes: [],
210
- isUserDefinedId: false,
211
- interpolate: this.edges.defaultInterpolate
212
- };
213
- log.info("abc78 Got edge...", edge);
214
- const linkTextObj = type.text;
215
- if (linkTextObj !== void 0) {
216
- edge.text = this.sanitizeText(linkTextObj.text.trim());
217
- if (edge.text.startsWith('"') && edge.text.endsWith('"')) {
218
- edge.text = edge.text.substring(1, edge.text.length - 1);
219
- }
220
- edge.labelType = linkTextObj.type;
221
- }
222
- if (type !== void 0) {
223
- edge.type = type.type;
224
- edge.stroke = type.stroke;
225
- edge.length = type.length > 10 ? 10 : type.length;
226
- }
227
- if (id && !this.edges.some((e) => e.id === id)) {
228
- edge.id = id;
229
- edge.isUserDefinedId = true;
230
- } else {
231
- const existingLinks = this.edges.filter((e) => e.start === edge.start && e.end === edge.end);
232
- if (existingLinks.length === 0) {
233
- edge.id = getEdgeId(edge.start, edge.end, { counter: 0, prefix: "L" });
234
- } else {
235
- edge.id = getEdgeId(edge.start, edge.end, {
236
- counter: existingLinks.length + 1,
237
- prefix: "L"
238
- });
239
- }
240
- }
241
- if (this.edges.length < (this.config.maxEdges ?? 500)) {
242
- log.info("Pushing edge...");
243
- this.edges.push(edge);
244
- } else {
245
- throw new Error(
246
- `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
247
-
248
- Initialize mermaid with maxEdges set to a higher number to allow more edges.
249
- You cannot set this config via configuration inside the diagram as it is a secure config.
250
- You have to call mermaid.initialize.`
251
- );
252
- }
253
- }
254
- isLinkData(value) {
255
- return value !== null && typeof value === "object" && "id" in value && typeof value.id === "string";
256
- }
257
- addLink(_start, _end, linkData) {
258
- const id = this.isLinkData(linkData) ? linkData.id.replace("@", "") : void 0;
259
- log.info("addLink", _start, _end, id);
260
- for (const start of _start) {
261
- for (const end of _end) {
262
- const isLastStart = start === _start[_start.length - 1];
263
- const isFirstEnd = end === _end[0];
264
- if (isLastStart && isFirstEnd) {
265
- this.addSingleLink(start, end, linkData, id);
266
- } else {
267
- this.addSingleLink(start, end, linkData, void 0);
268
- }
269
- }
270
- }
271
- }
272
- /**
273
- * Updates a link's line interpolation algorithm
274
- */
275
- updateLinkInterpolate(positions, interpolate) {
276
- positions.forEach((pos) => {
277
- if (pos === "default") {
278
- this.edges.defaultInterpolate = interpolate;
279
- } else {
280
- this.edges[pos].interpolate = interpolate;
281
- }
282
- });
283
- }
284
- /**
285
- * Updates a link with a style
286
- *
287
- */
288
- updateLink(positions, style) {
289
- positions.forEach((pos) => {
290
- var _a2, _b, _c, _d, _e, _f;
291
- if (typeof pos === "number" && pos >= this.edges.length) {
292
- throw new Error(
293
- `The index ${pos} 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.)`
294
- );
295
- }
296
- if (pos === "default") {
297
- this.edges.defaultStyle = style;
298
- } else {
299
- this.edges[pos].style = style;
300
- if ((((_b = (_a2 = this.edges[pos]) == null ? void 0 : _a2.style) == null ? void 0 : _b.length) ?? 0) > 0 && !((_d = (_c = this.edges[pos]) == null ? void 0 : _c.style) == null ? void 0 : _d.some((s) => s == null ? void 0 : s.startsWith("fill")))) {
301
- (_f = (_e = this.edges[pos]) == null ? void 0 : _e.style) == null ? void 0 : _f.push("fill:none");
302
- }
303
- }
304
- });
305
- }
306
- addClass(ids, _style) {
307
- const style = _style.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
308
- ids.split(",").forEach((id) => {
309
- let classNode = this.classes.get(id);
310
- if (classNode === void 0) {
311
- classNode = { id, styles: [], textStyles: [] };
312
- this.classes.set(id, classNode);
313
- }
314
- if (style !== void 0 && style !== null) {
315
- style.forEach((s) => {
316
- if (/color/.exec(s)) {
317
- const newStyle = s.replace("fill", "bgFill");
318
- classNode.textStyles.push(newStyle);
319
- }
320
- classNode.styles.push(s);
321
- });
322
- }
323
- });
324
- }
325
- /**
326
- * Called by parser when a graph definition is found, stores the direction of the chart.
327
- *
328
- */
329
- setDirection(dir) {
330
- this.direction = dir;
331
- if (/.*</.exec(this.direction)) {
332
- this.direction = "RL";
333
- }
334
- if (/.*\^/.exec(this.direction)) {
335
- this.direction = "BT";
336
- }
337
- if (/.*>/.exec(this.direction)) {
338
- this.direction = "LR";
339
- }
340
- if (/.*v/.exec(this.direction)) {
341
- this.direction = "TB";
342
- }
343
- if (this.direction === "TD") {
344
- this.direction = "TB";
345
- }
346
- }
347
- /**
348
- * Called by parser when a special node is found, e.g. a clickable element.
349
- *
350
- * @param ids - Comma separated list of ids
351
- * @param className - Class to add
352
- */
353
- setClass(ids, className) {
354
- for (const id of ids.split(",")) {
355
- const vertex = this.vertices.get(id);
356
- if (vertex) {
357
- vertex.classes.push(className);
358
- }
359
- const edge = this.edges.find((e) => e.id === id);
360
- if (edge) {
361
- edge.classes.push(className);
362
- }
363
- const subGraph = this.subGraphLookup.get(id);
364
- if (subGraph) {
365
- subGraph.classes.push(className);
366
- }
367
- }
368
- }
369
- setTooltip(ids, tooltip) {
370
- if (tooltip === void 0) {
371
- return;
372
- }
373
- tooltip = this.sanitizeText(tooltip);
374
- for (const id of ids.split(",")) {
375
- this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(id) : id, tooltip);
376
- }
377
- }
378
- setClickFun(id, functionName, functionArgs) {
379
- const domId = this.lookUpDomId(id);
380
- if (getConfig2().securityLevel !== "loose") {
381
- return;
382
- }
383
- if (functionName === void 0) {
384
- return;
385
- }
386
- let argList = [];
387
- if (typeof functionArgs === "string") {
388
- argList = functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
389
- for (let i = 0; i < argList.length; i++) {
390
- let item = argList[i].trim();
391
- if (item.startsWith('"') && item.endsWith('"')) {
392
- item = item.substr(1, item.length - 2);
393
- }
394
- argList[i] = item;
395
- }
396
- }
397
- if (argList.length === 0) {
398
- argList.push(id);
399
- }
400
- const vertex = this.vertices.get(id);
401
- if (vertex) {
402
- vertex.haveCallback = true;
403
- this.funs.push(() => {
404
- const elem = document.querySelector(`[id="${domId}"]`);
405
- if (elem !== null) {
406
- elem.addEventListener(
407
- "click",
408
- () => {
409
- utils_default.runFunc(functionName, ...argList);
410
- },
411
- false
412
- );
413
- }
414
- });
415
- }
416
- }
417
- /**
418
- * Called by parser when a link is found. Adds the URL to the vertex data.
419
- *
420
- * @param ids - Comma separated list of ids
421
- * @param linkStr - URL to create a link for
422
- * @param target - Target attribute for the link
423
- */
424
- setLink(ids, linkStr, target) {
425
- ids.split(",").forEach((id) => {
426
- const vertex = this.vertices.get(id);
427
- if (vertex !== void 0) {
428
- vertex.link = utils_default.formatUrl(linkStr, this.config);
429
- vertex.linkTarget = target;
430
- }
431
- });
432
- this.setClass(ids, "clickable");
433
- }
434
- getTooltip(id) {
435
- return this.tooltips.get(id);
436
- }
437
- /**
438
- * Called by parser when a click definition is found. Registers an event handler.
439
- *
440
- * @param ids - Comma separated list of ids
441
- * @param functionName - Function to be called on click
442
- * @param functionArgs - Arguments to be passed to the function
443
- */
444
- setClickEvent(ids, functionName, functionArgs) {
445
- ids.split(",").forEach((id) => {
446
- this.setClickFun(id, functionName, functionArgs);
447
- });
448
- this.setClass(ids, "clickable");
449
- }
450
- bindFunctions(element) {
451
- this.funs.forEach((fun) => {
452
- fun(element);
453
- });
454
- }
455
- getDirection() {
456
- var _a2;
457
- return (_a2 = this.direction) == null ? void 0 : _a2.trim();
458
- }
459
- /**
460
- * Retrieval function for fetching the found nodes after parsing has completed.
461
- *
462
- */
463
- getVertices() {
464
- return this.vertices;
465
- }
466
- /**
467
- * Retrieval function for fetching the found links after parsing has completed.
468
- *
469
- */
470
- getEdges() {
471
- return this.edges;
472
- }
473
- /**
474
- * Retrieval function for fetching the found class definitions after parsing has completed.
475
- *
476
- */
477
- getClasses() {
478
- return this.classes;
479
- }
480
- setupToolTips(element) {
481
- let tooltipElem = select(".mermaidTooltip");
482
- if ((tooltipElem._groups || tooltipElem)[0][0] === null) {
483
- tooltipElem = select("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0);
484
- }
485
- const svg = select(element).select("svg");
486
- const nodes = svg.selectAll("g.node");
487
- nodes.on("mouseover", (e) => {
488
- var _a2;
489
- const el = select(e.currentTarget);
490
- const title = el.attr("title");
491
- if (title === null) {
492
- return;
493
- }
494
- const rect = (_a2 = e.currentTarget) == null ? void 0 : _a2.getBoundingClientRect();
495
- tooltipElem.transition().duration(200).style("opacity", ".9");
496
- tooltipElem.text(el.attr("title")).style("left", window.scrollX + rect.left + (rect.right - rect.left) / 2 + "px").style("top", window.scrollY + rect.bottom + "px");
497
- tooltipElem.html(tooltipElem.html().replace(/&lt;br\/&gt;/g, "<br/>"));
498
- el.classed("hover", true);
499
- }).on("mouseout", (e) => {
500
- tooltipElem.transition().duration(500).style("opacity", 0);
501
- const el = select(e.currentTarget);
502
- el.classed("hover", false);
503
- });
504
- }
505
- /**
506
- * Clears the internal graph db so that a new graph can be parsed.
507
- *
508
- */
509
- clear(ver = "gen-2") {
510
- this.vertices = /* @__PURE__ */ new Map();
511
- this.classes = /* @__PURE__ */ new Map();
512
- this.edges = [];
513
- this.funs = [this.setupToolTips.bind(this)];
514
- this.subGraphs = [];
515
- this.subGraphLookup = /* @__PURE__ */ new Map();
516
- this.subCount = 0;
517
- this.tooltips = /* @__PURE__ */ new Map();
518
- this.firstGraphFlag = true;
519
- this.version = ver;
520
- this.config = getConfig2();
521
- clear$2();
522
- }
523
- setGen(ver) {
524
- this.version = ver || "gen-2";
525
- }
526
- defaultStyle() {
527
- return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
528
- }
529
- addSubGraph(_id, list, _title) {
530
- let id = _id.text.trim();
531
- let title = _title.text;
532
- if (_id === _title && /\s/.exec(_title.text)) {
533
- id = void 0;
534
- }
535
- const uniq = /* @__PURE__ */ __name((a) => {
536
- const prims = { boolean: {}, number: {}, string: {} };
537
- const objs = [];
538
- let dir2;
539
- const nodeList2 = a.filter(function(item) {
540
- const type = typeof item;
541
- if (item.stmt && item.stmt === "dir") {
542
- dir2 = item.value;
543
- return false;
544
- }
545
- if (item.trim() === "") {
546
- return false;
547
- }
548
- if (type in prims) {
549
- return prims[type].hasOwnProperty(item) ? false : prims[type][item] = true;
550
- } else {
551
- return objs.includes(item) ? false : objs.push(item);
552
- }
553
- });
554
- return { nodeList: nodeList2, dir: dir2 };
555
- }, "uniq");
556
- const result = uniq(list.flat());
557
- const nodeList = result.nodeList;
558
- let dir = result.dir;
559
- const flowchartConfig = getConfig2().flowchart ?? {};
560
- dir = dir ?? (flowchartConfig.inheritDir ? this.getDirection() ?? getConfig2().direction ?? void 0 : void 0);
561
- if (this.version === "gen-1") {
562
- for (let i = 0; i < nodeList.length; i++) {
563
- nodeList[i] = this.lookUpDomId(nodeList[i]);
564
- }
565
- }
566
- id = id ?? "subGraph" + this.subCount;
567
- title = title || "";
568
- title = this.sanitizeText(title);
569
- this.subCount = this.subCount + 1;
570
- const subGraph = {
571
- id,
572
- nodes: nodeList,
573
- title: title.trim(),
574
- classes: [],
575
- dir,
576
- labelType: _title.type
577
- };
578
- log.info("Adding", subGraph.id, subGraph.nodes, subGraph.dir);
579
- subGraph.nodes = this.makeUniq(subGraph, this.subGraphs).nodes;
580
- this.subGraphs.push(subGraph);
581
- this.subGraphLookup.set(id, subGraph);
582
- return id;
583
- }
584
- getPosForId(id) {
585
- for (const [i, subGraph] of this.subGraphs.entries()) {
586
- if (subGraph.id === id) {
587
- return i;
588
- }
589
- }
590
- return -1;
591
- }
592
- indexNodes2(id, pos) {
593
- const nodes = this.subGraphs[pos].nodes;
594
- this.secCount = this.secCount + 1;
595
- if (this.secCount > 2e3) {
596
- return {
597
- result: false,
598
- count: 0
599
- };
600
- }
601
- this.posCrossRef[this.secCount] = pos;
602
- if (this.subGraphs[pos].id === id) {
603
- return {
604
- result: true,
605
- count: 0
606
- };
607
- }
608
- let count = 0;
609
- let posCount = 1;
610
- while (count < nodes.length) {
611
- const childPos = this.getPosForId(nodes[count]);
612
- if (childPos >= 0) {
613
- const res = this.indexNodes2(id, childPos);
614
- if (res.result) {
615
- return {
616
- result: true,
617
- count: posCount + res.count
618
- };
619
- } else {
620
- posCount = posCount + res.count;
621
- }
622
- }
623
- count = count + 1;
624
- }
625
- return {
626
- result: false,
627
- count: posCount
628
- };
629
- }
630
- getDepthFirstPos(pos) {
631
- return this.posCrossRef[pos];
632
- }
633
- indexNodes() {
634
- this.secCount = -1;
635
- if (this.subGraphs.length > 0) {
636
- this.indexNodes2("none", this.subGraphs.length - 1);
637
- }
638
- }
639
- getSubGraphs() {
640
- return this.subGraphs;
641
- }
642
- firstGraph() {
643
- if (this.firstGraphFlag) {
644
- this.firstGraphFlag = false;
645
- return true;
646
- }
647
- return false;
648
- }
649
- destructStartLink(_str) {
650
- let str = _str.trim();
651
- let type = "arrow_open";
652
- switch (str[0]) {
653
- case "<":
654
- type = "arrow_point";
655
- str = str.slice(1);
656
- break;
657
- case "x":
658
- type = "arrow_cross";
659
- str = str.slice(1);
660
- break;
661
- case "o":
662
- type = "arrow_circle";
663
- str = str.slice(1);
664
- break;
665
- }
666
- let stroke = "normal";
667
- if (str.includes("=")) {
668
- stroke = "thick";
669
- }
670
- if (str.includes(".")) {
671
- stroke = "dotted";
672
- }
673
- return { type, stroke };
674
- }
675
- countChar(char, str) {
676
- const length = str.length;
677
- let count = 0;
678
- for (let i = 0; i < length; ++i) {
679
- if (str[i] === char) {
680
- ++count;
681
- }
682
- }
683
- return count;
684
- }
685
- destructEndLink(_str) {
686
- const str = _str.trim();
687
- let line = str.slice(0, -1);
688
- let type = "arrow_open";
689
- switch (str.slice(-1)) {
690
- case "x":
691
- type = "arrow_cross";
692
- if (str.startsWith("x")) {
693
- type = "double_" + type;
694
- line = line.slice(1);
695
- }
696
- break;
697
- case ">":
698
- type = "arrow_point";
699
- if (str.startsWith("<")) {
700
- type = "double_" + type;
701
- line = line.slice(1);
702
- }
703
- break;
704
- case "o":
705
- type = "arrow_circle";
706
- if (str.startsWith("o")) {
707
- type = "double_" + type;
708
- line = line.slice(1);
709
- }
710
- break;
711
- }
712
- let stroke = "normal";
713
- let length = line.length - 1;
714
- if (line.startsWith("=")) {
715
- stroke = "thick";
716
- }
717
- if (line.startsWith("~")) {
718
- stroke = "invisible";
719
- }
720
- const dots = this.countChar(".", line);
721
- if (dots) {
722
- stroke = "dotted";
723
- length = dots;
724
- }
725
- return { type, stroke, length };
726
- }
727
- destructLink(_str, _startStr) {
728
- const info = this.destructEndLink(_str);
729
- let startInfo;
730
- if (_startStr) {
731
- startInfo = this.destructStartLink(_startStr);
732
- if (startInfo.stroke !== info.stroke) {
733
- return { type: "INVALID", stroke: "INVALID" };
734
- }
735
- if (startInfo.type === "arrow_open") {
736
- startInfo.type = info.type;
737
- } else {
738
- if (startInfo.type !== info.type) {
739
- return { type: "INVALID", stroke: "INVALID" };
740
- }
741
- startInfo.type = "double_" + startInfo.type;
742
- }
743
- if (startInfo.type === "double_arrow") {
744
- startInfo.type = "double_arrow_point";
745
- }
746
- startInfo.length = info.length;
747
- return startInfo;
748
- }
749
- return info;
750
- }
751
- // Todo optimizer this by caching existing nodes
752
- exists(allSgs, _id) {
753
- for (const sg of allSgs) {
754
- if (sg.nodes.includes(_id)) {
755
- return true;
756
- }
757
- }
758
- return false;
759
- }
760
- /**
761
- * Deletes an id from all subgraphs
762
- *
763
- */
764
- makeUniq(sg, allSubgraphs) {
765
- const res = [];
766
- sg.nodes.forEach((_id, pos) => {
767
- if (!this.exists(allSubgraphs, _id)) {
768
- res.push(sg.nodes[pos]);
769
- }
770
- });
771
- return { nodes: res };
772
- }
773
- getTypeFromVertex(vertex) {
774
- if (vertex.img) {
775
- return "imageSquare";
776
- }
777
- if (vertex.icon) {
778
- if (vertex.form === "circle") {
779
- return "iconCircle";
780
- }
781
- if (vertex.form === "square") {
782
- return "iconSquare";
783
- }
784
- if (vertex.form === "rounded") {
785
- return "iconRounded";
786
- }
787
- return "icon";
788
- }
789
- switch (vertex.type) {
790
- case "square":
791
- case void 0:
792
- return "squareRect";
793
- case "round":
794
- return "roundedRect";
795
- case "ellipse":
796
- return "ellipse";
797
- default:
798
- return vertex.type;
799
- }
800
- }
801
- findNode(nodes, id) {
802
- return nodes.find((node) => node.id === id);
803
- }
804
- destructEdgeType(type) {
805
- let arrowTypeStart = "none";
806
- let arrowTypeEnd = "arrow_point";
807
- switch (type) {
808
- case "arrow_point":
809
- case "arrow_circle":
810
- case "arrow_cross":
811
- arrowTypeEnd = type;
812
- break;
813
- case "double_arrow_point":
814
- case "double_arrow_circle":
815
- case "double_arrow_cross":
816
- arrowTypeStart = type.replace("double_", "");
817
- arrowTypeEnd = arrowTypeStart;
818
- break;
819
- }
820
- return { arrowTypeStart, arrowTypeEnd };
821
- }
822
- addNodeFromVertex(vertex, nodes, parentDB, subGraphDB, config, look) {
823
- var _a2;
824
- const parentId = parentDB.get(vertex.id);
825
- const isGroup = subGraphDB.get(vertex.id) ?? false;
826
- const node = this.findNode(nodes, vertex.id);
827
- if (node) {
828
- node.cssStyles = vertex.styles;
829
- node.cssCompiledStyles = this.getCompiledStyles(vertex.classes);
830
- node.cssClasses = vertex.classes.join(" ");
831
- } else {
832
- const baseNode = {
833
- id: vertex.id,
834
- label: vertex.text,
835
- labelStyle: "",
836
- parentId,
837
- padding: ((_a2 = config.flowchart) == null ? void 0 : _a2.padding) || 8,
838
- cssStyles: vertex.styles,
839
- cssCompiledStyles: this.getCompiledStyles(["default", "node", ...vertex.classes]),
840
- cssClasses: "default " + vertex.classes.join(" "),
841
- dir: vertex.dir,
842
- domId: vertex.domId,
843
- look,
844
- link: vertex.link,
845
- linkTarget: vertex.linkTarget,
846
- tooltip: this.getTooltip(vertex.id),
847
- icon: vertex.icon,
848
- pos: vertex.pos,
849
- img: vertex.img,
850
- assetWidth: vertex.assetWidth,
851
- assetHeight: vertex.assetHeight,
852
- constraint: vertex.constraint
853
- };
854
- if (isGroup) {
855
- nodes.push({
856
- ...baseNode,
857
- isGroup: true,
858
- shape: "rect"
859
- });
860
- } else {
861
- nodes.push({
862
- ...baseNode,
863
- isGroup: false,
864
- shape: this.getTypeFromVertex(vertex)
865
- });
866
- }
867
- }
868
- }
869
- getCompiledStyles(classDefs) {
870
- let compiledStyles = [];
871
- for (const customClass of classDefs) {
872
- const cssClass = this.classes.get(customClass);
873
- if (cssClass == null ? void 0 : cssClass.styles) {
874
- compiledStyles = [...compiledStyles, ...cssClass.styles ?? []].map((s) => s.trim());
875
- }
876
- if (cssClass == null ? void 0 : cssClass.textStyles) {
877
- compiledStyles = [...compiledStyles, ...cssClass.textStyles ?? []].map((s) => s.trim());
878
- }
879
- }
880
- return compiledStyles;
881
- }
882
- getData() {
883
- const config = getConfig2();
884
- const nodes = [];
885
- const edges = [];
886
- const subGraphs = this.getSubGraphs();
887
- const parentDB = /* @__PURE__ */ new Map();
888
- const subGraphDB = /* @__PURE__ */ new Map();
889
- for (let i = subGraphs.length - 1; i >= 0; i--) {
890
- const subGraph = subGraphs[i];
891
- if (subGraph.nodes.length > 0) {
892
- subGraphDB.set(subGraph.id, true);
893
- }
894
- for (const id of subGraph.nodes) {
895
- parentDB.set(id, subGraph.id);
896
- }
897
- }
898
- for (let i = subGraphs.length - 1; i >= 0; i--) {
899
- const subGraph = subGraphs[i];
900
- nodes.push({
901
- id: subGraph.id,
902
- label: subGraph.title,
903
- labelStyle: "",
904
- parentId: parentDB.get(subGraph.id),
905
- padding: 8,
906
- cssCompiledStyles: this.getCompiledStyles(subGraph.classes),
907
- cssClasses: subGraph.classes.join(" "),
908
- shape: "rect",
909
- dir: subGraph.dir,
910
- isGroup: true,
911
- look: config.look
912
- });
913
- }
914
- const n = this.getVertices();
915
- n.forEach((vertex) => {
916
- this.addNodeFromVertex(vertex, nodes, parentDB, subGraphDB, config, config.look || "classic");
917
- });
918
- const e = this.getEdges();
919
- e.forEach((rawEdge, index) => {
920
- var _a2;
921
- const { arrowTypeStart, arrowTypeEnd } = this.destructEdgeType(rawEdge.type);
922
- const styles = [...e.defaultStyle ?? []];
923
- if (rawEdge.style) {
924
- styles.push(...rawEdge.style);
925
- }
926
- const edge = {
927
- id: getEdgeId(rawEdge.start, rawEdge.end, { counter: index, prefix: "L" }, rawEdge.id),
928
- isUserDefinedId: rawEdge.isUserDefinedId,
929
- start: rawEdge.start,
930
- end: rawEdge.end,
931
- type: rawEdge.type ?? "normal",
932
- label: rawEdge.text,
933
- labelpos: "c",
934
- thickness: rawEdge.stroke,
935
- minlen: rawEdge.length,
936
- classes: (rawEdge == null ? void 0 : rawEdge.stroke) === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
937
- arrowTypeStart: (rawEdge == null ? void 0 : rawEdge.stroke) === "invisible" || (rawEdge == null ? void 0 : rawEdge.type) === "arrow_open" ? "none" : arrowTypeStart,
938
- arrowTypeEnd: (rawEdge == null ? void 0 : rawEdge.stroke) === "invisible" || (rawEdge == null ? void 0 : rawEdge.type) === "arrow_open" ? "none" : arrowTypeEnd,
939
- arrowheadStyle: "fill: #333",
940
- cssCompiledStyles: this.getCompiledStyles(rawEdge.classes),
941
- labelStyle: styles,
942
- style: styles,
943
- pattern: rawEdge.stroke,
944
- look: config.look,
945
- animate: rawEdge.animate,
946
- animation: rawEdge.animation,
947
- curve: rawEdge.interpolate || this.edges.defaultInterpolate || ((_a2 = config.flowchart) == null ? void 0 : _a2.curve)
948
- };
949
- edges.push(edge);
950
- });
951
- return { nodes, edges, other: {}, config };
952
- }
953
- defaultConfig() {
954
- return defaultConfig2.flowchart;
955
- }
956
- }, __name(_a, "FlowDB"), _a);
957
- var getClasses = /* @__PURE__ */ __name(function(text, diagramObj) {
958
- return diagramObj.db.getClasses();
959
- }, "getClasses");
960
- var draw = /* @__PURE__ */ __name(async function(text, id, _version, diag) {
961
- var _a2;
962
- log.info("REF0:");
963
- log.info("Drawing state diagram (v2)", id);
964
- const { securityLevel, flowchart: conf, layout } = getConfig2();
965
- let sandboxElement;
966
- if (securityLevel === "sandbox") {
967
- sandboxElement = select("#i" + id);
968
- }
969
- const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
970
- log.debug("Before getData: ");
971
- const data4Layout = diag.db.getData();
972
- log.debug("Data: ", data4Layout);
973
- const svg = getDiagramElement(id, securityLevel);
974
- const direction = diag.db.getDirection();
975
- data4Layout.type = diag.type;
976
- data4Layout.layoutAlgorithm = getRegisteredLayoutAlgorithm(layout);
977
- if (data4Layout.layoutAlgorithm === "dagre" && layout === "elk") {
978
- log.warn(
979
- "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."
980
- );
981
- }
982
- data4Layout.direction = direction;
983
- data4Layout.nodeSpacing = (conf == null ? void 0 : conf.nodeSpacing) || 50;
984
- data4Layout.rankSpacing = (conf == null ? void 0 : conf.rankSpacing) || 50;
985
- data4Layout.markers = ["point", "circle", "cross"];
986
- data4Layout.diagramId = id;
987
- log.debug("REF1:", data4Layout);
988
- await render$1(data4Layout, svg);
989
- const padding = ((_a2 = data4Layout.config.flowchart) == null ? void 0 : _a2.diagramPadding) ?? 8;
990
- utils_default.insertTitle(
991
- svg,
992
- "flowchartTitleText",
993
- (conf == null ? void 0 : conf.titleTopMargin) || 0,
994
- diag.db.getDiagramTitle()
995
- );
996
- setupViewPortForSVG(svg, padding, "flowchart", (conf == null ? void 0 : conf.useMaxWidth) || false);
997
- for (const vertex of data4Layout.nodes) {
998
- const node = select(`#${id} [id="${vertex.id}"]`);
999
- if (!node || !vertex.link) {
1000
- continue;
1001
- }
1002
- const link = doc.createElementNS("http://www.w3.org/2000/svg", "a");
1003
- link.setAttributeNS("http://www.w3.org/2000/svg", "class", vertex.cssClasses);
1004
- link.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener");
1005
- if (securityLevel === "sandbox") {
1006
- link.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top");
1007
- } else if (vertex.linkTarget) {
1008
- link.setAttributeNS("http://www.w3.org/2000/svg", "target", vertex.linkTarget);
1009
- }
1010
- const linkNode = node.insert(function() {
1011
- return link;
1012
- }, ":first-child");
1013
- const shape = node.select(".label-container");
1014
- if (shape) {
1015
- linkNode.append(function() {
1016
- return shape.node();
1017
- });
1018
- }
1019
- const label = node.select(".label");
1020
- if (label) {
1021
- linkNode.append(function() {
1022
- return label.node();
1023
- });
1024
- }
1025
- }
1026
- }, "draw");
1027
- var flowRenderer_v3_unified_default = {
1028
- getClasses,
1029
- draw
1030
- };
1031
- var parser = function() {
1032
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
1033
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
1034
- return o2;
1035
- }, "o"), $V0 = [1, 4], $V1 = [1, 3], $V2 = [1, 5], $V3 = [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], $V4 = [2, 2], $V5 = [1, 13], $V6 = [1, 14], $V7 = [1, 15], $V8 = [1, 16], $V9 = [1, 23], $Va = [1, 25], $Vb = [1, 26], $Vc = [1, 27], $Vd = [1, 49], $Ve = [1, 48], $Vf = [1, 29], $Vg = [1, 30], $Vh = [1, 31], $Vi = [1, 32], $Vj = [1, 33], $Vk = [1, 44], $Vl = [1, 46], $Vm = [1, 42], $Vn = [1, 47], $Vo = [1, 43], $Vp = [1, 50], $Vq = [1, 45], $Vr = [1, 51], $Vs = [1, 52], $Vt = [1, 34], $Vu = [1, 35], $Vv = [1, 36], $Vw = [1, 37], $Vx = [1, 57], $Vy = [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], $Vz = [1, 61], $VA = [1, 60], $VB = [1, 62], $VC = [8, 9, 11, 75, 77, 78], $VD = [1, 78], $VE = [1, 91], $VF = [1, 96], $VG = [1, 95], $VH = [1, 92], $VI = [1, 88], $VJ = [1, 94], $VK = [1, 90], $VL = [1, 97], $VM = [1, 93], $VN = [1, 98], $VO = [1, 89], $VP = [8, 9, 10, 11, 40, 75, 77, 78], $VQ = [8, 9, 10, 11, 40, 46, 75, 77, 78], $VR = [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], $VS = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], $VT = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], $VU = [1, 121], $VV = [1, 122], $VW = [1, 124], $VX = [1, 123], $VY = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], $VZ = [1, 133], $V_ = [1, 147], $V$ = [1, 148], $V01 = [1, 149], $V11 = [1, 150], $V21 = [1, 135], $V31 = [1, 137], $V41 = [1, 141], $V51 = [1, 142], $V61 = [1, 143], $V71 = [1, 144], $V81 = [1, 145], $V91 = [1, 146], $Va1 = [1, 151], $Vb1 = [1, 152], $Vc1 = [1, 131], $Vd1 = [1, 132], $Ve1 = [1, 139], $Vf1 = [1, 134], $Vg1 = [1, 138], $Vh1 = [1, 136], $Vi1 = [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], $Vj1 = [1, 154], $Vk1 = [1, 156], $Vl1 = [8, 9, 11], $Vm1 = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], $Vn1 = [1, 176], $Vo1 = [1, 172], $Vp1 = [1, 173], $Vq1 = [1, 177], $Vr1 = [1, 174], $Vs1 = [1, 175], $Vt1 = [77, 116, 119], $Vu1 = [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], $Vv1 = [10, 106], $Vw1 = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], $Vx1 = [1, 247], $Vy1 = [1, 245], $Vz1 = [1, 249], $VA1 = [1, 243], $VB1 = [1, 244], $VC1 = [1, 246], $VD1 = [1, 248], $VE1 = [1, 250], $VF1 = [1, 268], $VG1 = [8, 9, 11, 106], $VH1 = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112];
1036
- var parser2 = {
1037
- trace: /* @__PURE__ */ __name(function trace() {
1038
- }, "trace"),
1039
- yy: {},
1040
- 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, "$accept": 0, "$end": 1 },
1041
- 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" },
1042
- 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]],
1043
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
1044
- var $0 = $$.length - 1;
1045
- switch (yystate) {
1046
- case 2:
1047
- this.$ = [];
1048
- break;
1049
- case 3:
1050
- if (!Array.isArray($$[$0]) || $$[$0].length > 0) {
1051
- $$[$0 - 1].push($$[$0]);
1052
- }
1053
- this.$ = $$[$0 - 1];
1054
- break;
1055
- case 4:
1056
- case 183:
1057
- this.$ = $$[$0];
1058
- break;
1059
- case 11:
1060
- yy.setDirection("TB");
1061
- this.$ = "TB";
1062
- break;
1063
- case 12:
1064
- yy.setDirection($$[$0 - 1]);
1065
- this.$ = $$[$0 - 1];
1066
- break;
1067
- case 27:
1068
- this.$ = $$[$0 - 1].nodes;
1069
- break;
1070
- case 28:
1071
- case 29:
1072
- case 30:
1073
- case 31:
1074
- case 32:
1075
- this.$ = [];
1076
- break;
1077
- case 33:
1078
- this.$ = yy.addSubGraph($$[$0 - 6], $$[$0 - 1], $$[$0 - 4]);
1079
- break;
1080
- case 34:
1081
- this.$ = yy.addSubGraph($$[$0 - 3], $$[$0 - 1], $$[$0 - 3]);
1082
- break;
1083
- case 35:
1084
- this.$ = yy.addSubGraph(void 0, $$[$0 - 1], void 0);
1085
- break;
1086
- case 37:
1087
- this.$ = $$[$0].trim();
1088
- yy.setAccTitle(this.$);
1089
- break;
1090
- case 38:
1091
- case 39:
1092
- this.$ = $$[$0].trim();
1093
- yy.setAccDescription(this.$);
1094
- break;
1095
- case 43:
1096
- this.$ = $$[$0 - 1] + $$[$0];
1097
- break;
1098
- case 44:
1099
- this.$ = $$[$0];
1100
- break;
1101
- case 45:
1102
- yy.addVertex($$[$0 - 1][$$[$0 - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0]);
1103
- yy.addLink($$[$0 - 3].stmt, $$[$0 - 1], $$[$0 - 2]);
1104
- this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1].concat($$[$0 - 3].nodes) };
1105
- break;
1106
- case 46:
1107
- yy.addLink($$[$0 - 2].stmt, $$[$0], $$[$0 - 1]);
1108
- this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0 - 2].nodes) };
1109
- break;
1110
- case 47:
1111
- yy.addLink($$[$0 - 3].stmt, $$[$0 - 1], $$[$0 - 2]);
1112
- this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1].concat($$[$0 - 3].nodes) };
1113
- break;
1114
- case 48:
1115
- this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1] };
1116
- break;
1117
- case 49:
1118
- yy.addVertex($$[$0 - 1][$$[$0 - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0]);
1119
- this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1], shapeData: $$[$0] };
1120
- break;
1121
- case 50:
1122
- this.$ = { stmt: $$[$0], nodes: $$[$0] };
1123
- break;
1124
- case 51:
1125
- this.$ = [$$[$0]];
1126
- break;
1127
- case 52:
1128
- yy.addVertex($$[$0 - 5][$$[$0 - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0 - 4]);
1129
- this.$ = $$[$0 - 5].concat($$[$0]);
1130
- break;
1131
- case 53:
1132
- this.$ = $$[$0 - 4].concat($$[$0]);
1133
- break;
1134
- case 54:
1135
- this.$ = $$[$0];
1136
- break;
1137
- case 55:
1138
- this.$ = $$[$0 - 2];
1139
- yy.setClass($$[$0 - 2], $$[$0]);
1140
- break;
1141
- case 56:
1142
- this.$ = $$[$0 - 3];
1143
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "square");
1144
- break;
1145
- case 57:
1146
- this.$ = $$[$0 - 3];
1147
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "doublecircle");
1148
- break;
1149
- case 58:
1150
- this.$ = $$[$0 - 5];
1151
- yy.addVertex($$[$0 - 5], $$[$0 - 2], "circle");
1152
- break;
1153
- case 59:
1154
- this.$ = $$[$0 - 3];
1155
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "ellipse");
1156
- break;
1157
- case 60:
1158
- this.$ = $$[$0 - 3];
1159
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "stadium");
1160
- break;
1161
- case 61:
1162
- this.$ = $$[$0 - 3];
1163
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "subroutine");
1164
- break;
1165
- case 62:
1166
- this.$ = $$[$0 - 7];
1167
- yy.addVertex($$[$0 - 7], $$[$0 - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[$$[$0 - 5], $$[$0 - 3]]]));
1168
- break;
1169
- case 63:
1170
- this.$ = $$[$0 - 3];
1171
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "cylinder");
1172
- break;
1173
- case 64:
1174
- this.$ = $$[$0 - 3];
1175
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "round");
1176
- break;
1177
- case 65:
1178
- this.$ = $$[$0 - 3];
1179
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "diamond");
1180
- break;
1181
- case 66:
1182
- this.$ = $$[$0 - 5];
1183
- yy.addVertex($$[$0 - 5], $$[$0 - 2], "hexagon");
1184
- break;
1185
- case 67:
1186
- this.$ = $$[$0 - 3];
1187
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "odd");
1188
- break;
1189
- case 68:
1190
- this.$ = $$[$0 - 3];
1191
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "trapezoid");
1192
- break;
1193
- case 69:
1194
- this.$ = $$[$0 - 3];
1195
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "inv_trapezoid");
1196
- break;
1197
- case 70:
1198
- this.$ = $$[$0 - 3];
1199
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "lean_right");
1200
- break;
1201
- case 71:
1202
- this.$ = $$[$0 - 3];
1203
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "lean_left");
1204
- break;
1205
- case 72:
1206
- this.$ = $$[$0];
1207
- yy.addVertex($$[$0]);
1208
- break;
1209
- case 73:
1210
- $$[$0 - 1].text = $$[$0];
1211
- this.$ = $$[$0 - 1];
1212
- break;
1213
- case 74:
1214
- case 75:
1215
- $$[$0 - 2].text = $$[$0 - 1];
1216
- this.$ = $$[$0 - 2];
1217
- break;
1218
- case 76:
1219
- this.$ = $$[$0];
1220
- break;
1221
- case 77:
1222
- var inf = yy.destructLink($$[$0], $$[$0 - 2]);
1223
- this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "text": $$[$0 - 1] };
1224
- break;
1225
- case 78:
1226
- var inf = yy.destructLink($$[$0], $$[$0 - 2]);
1227
- this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "text": $$[$0 - 1], "id": $$[$0 - 3] };
1228
- break;
1229
- case 79:
1230
- this.$ = { text: $$[$0], type: "text" };
1231
- break;
1232
- case 80:
1233
- this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1234
- break;
1235
- case 81:
1236
- this.$ = { text: $$[$0], type: "string" };
1237
- break;
1238
- case 82:
1239
- this.$ = { text: $$[$0], type: "markdown" };
1240
- break;
1241
- case 83:
1242
- var inf = yy.destructLink($$[$0]);
1243
- this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length };
1244
- break;
1245
- case 84:
1246
- var inf = yy.destructLink($$[$0]);
1247
- this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "id": $$[$0 - 1] };
1248
- break;
1249
- case 85:
1250
- this.$ = $$[$0 - 1];
1251
- break;
1252
- case 86:
1253
- this.$ = { text: $$[$0], type: "text" };
1254
- break;
1255
- case 87:
1256
- this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1257
- break;
1258
- case 88:
1259
- this.$ = { text: $$[$0], type: "string" };
1260
- break;
1261
- case 89:
1262
- case 104:
1263
- this.$ = { text: $$[$0], type: "markdown" };
1264
- break;
1265
- case 101:
1266
- this.$ = { text: $$[$0], type: "text" };
1267
- break;
1268
- case 102:
1269
- this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1270
- break;
1271
- case 103:
1272
- this.$ = { text: $$[$0], type: "text" };
1273
- break;
1274
- case 105:
1275
- this.$ = $$[$0 - 4];
1276
- yy.addClass($$[$0 - 2], $$[$0]);
1277
- break;
1278
- case 106:
1279
- this.$ = $$[$0 - 4];
1280
- yy.setClass($$[$0 - 2], $$[$0]);
1281
- break;
1282
- case 107:
1283
- case 115:
1284
- this.$ = $$[$0 - 1];
1285
- yy.setClickEvent($$[$0 - 1], $$[$0]);
1286
- break;
1287
- case 108:
1288
- case 116:
1289
- this.$ = $$[$0 - 3];
1290
- yy.setClickEvent($$[$0 - 3], $$[$0 - 2]);
1291
- yy.setTooltip($$[$0 - 3], $$[$0]);
1292
- break;
1293
- case 109:
1294
- this.$ = $$[$0 - 2];
1295
- yy.setClickEvent($$[$0 - 2], $$[$0 - 1], $$[$0]);
1296
- break;
1297
- case 110:
1298
- this.$ = $$[$0 - 4];
1299
- yy.setClickEvent($$[$0 - 4], $$[$0 - 3], $$[$0 - 2]);
1300
- yy.setTooltip($$[$0 - 4], $$[$0]);
1301
- break;
1302
- case 111:
1303
- this.$ = $$[$0 - 2];
1304
- yy.setLink($$[$0 - 2], $$[$0]);
1305
- break;
1306
- case 112:
1307
- this.$ = $$[$0 - 4];
1308
- yy.setLink($$[$0 - 4], $$[$0 - 2]);
1309
- yy.setTooltip($$[$0 - 4], $$[$0]);
1310
- break;
1311
- case 113:
1312
- this.$ = $$[$0 - 4];
1313
- yy.setLink($$[$0 - 4], $$[$0 - 2], $$[$0]);
1314
- break;
1315
- case 114:
1316
- this.$ = $$[$0 - 6];
1317
- yy.setLink($$[$0 - 6], $$[$0 - 4], $$[$0]);
1318
- yy.setTooltip($$[$0 - 6], $$[$0 - 2]);
1319
- break;
1320
- case 117:
1321
- this.$ = $$[$0 - 1];
1322
- yy.setLink($$[$0 - 1], $$[$0]);
1323
- break;
1324
- case 118:
1325
- this.$ = $$[$0 - 3];
1326
- yy.setLink($$[$0 - 3], $$[$0 - 2]);
1327
- yy.setTooltip($$[$0 - 3], $$[$0]);
1328
- break;
1329
- case 119:
1330
- this.$ = $$[$0 - 3];
1331
- yy.setLink($$[$0 - 3], $$[$0 - 2], $$[$0]);
1332
- break;
1333
- case 120:
1334
- this.$ = $$[$0 - 5];
1335
- yy.setLink($$[$0 - 5], $$[$0 - 4], $$[$0]);
1336
- yy.setTooltip($$[$0 - 5], $$[$0 - 2]);
1337
- break;
1338
- case 121:
1339
- this.$ = $$[$0 - 4];
1340
- yy.addVertex($$[$0 - 2], void 0, void 0, $$[$0]);
1341
- break;
1342
- case 122:
1343
- this.$ = $$[$0 - 4];
1344
- yy.updateLink([$$[$0 - 2]], $$[$0]);
1345
- break;
1346
- case 123:
1347
- this.$ = $$[$0 - 4];
1348
- yy.updateLink($$[$0 - 2], $$[$0]);
1349
- break;
1350
- case 124:
1351
- this.$ = $$[$0 - 8];
1352
- yy.updateLinkInterpolate([$$[$0 - 6]], $$[$0 - 2]);
1353
- yy.updateLink([$$[$0 - 6]], $$[$0]);
1354
- break;
1355
- case 125:
1356
- this.$ = $$[$0 - 8];
1357
- yy.updateLinkInterpolate($$[$0 - 6], $$[$0 - 2]);
1358
- yy.updateLink($$[$0 - 6], $$[$0]);
1359
- break;
1360
- case 126:
1361
- this.$ = $$[$0 - 6];
1362
- yy.updateLinkInterpolate([$$[$0 - 4]], $$[$0]);
1363
- break;
1364
- case 127:
1365
- this.$ = $$[$0 - 6];
1366
- yy.updateLinkInterpolate($$[$0 - 4], $$[$0]);
1367
- break;
1368
- case 128:
1369
- case 130:
1370
- this.$ = [$$[$0]];
1371
- break;
1372
- case 129:
1373
- case 131:
1374
- $$[$0 - 2].push($$[$0]);
1375
- this.$ = $$[$0 - 2];
1376
- break;
1377
- case 133:
1378
- this.$ = $$[$0 - 1] + $$[$0];
1379
- break;
1380
- case 181:
1381
- this.$ = $$[$0];
1382
- break;
1383
- case 182:
1384
- this.$ = $$[$0 - 1] + "" + $$[$0];
1385
- break;
1386
- case 184:
1387
- this.$ = $$[$0 - 1] + "" + $$[$0];
1388
- break;
1389
- case 185:
1390
- this.$ = { stmt: "dir", value: "TB" };
1391
- break;
1392
- case 186:
1393
- this.$ = { stmt: "dir", value: "BT" };
1394
- break;
1395
- case 187:
1396
- this.$ = { stmt: "dir", value: "RL" };
1397
- break;
1398
- case 188:
1399
- this.$ = { stmt: "dir", value: "LR" };
1400
- break;
1401
- }
1402
- }, "anonymous"),
1403
- table: [{ 3: 1, 4: 2, 9: $V0, 10: $V1, 12: $V2 }, { 1: [3] }, o($V3, $V4, { 5: 6 }), { 4: 7, 9: $V0, 10: $V1, 12: $V2 }, { 4: 8, 9: $V0, 10: $V1, 12: $V2 }, { 13: [1, 9], 14: [1, 10] }, { 1: [2, 1], 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw }, o($V3, [2, 9]), o($V3, [2, 10]), o($V3, [2, 11]), { 8: [1, 54], 9: [1, 55], 10: $Vx, 15: 53, 18: 56 }, o($Vy, [2, 3]), o($Vy, [2, 4]), o($Vy, [2, 5]), o($Vy, [2, 6]), o($Vy, [2, 7]), o($Vy, [2, 8]), { 8: $Vz, 9: $VA, 11: $VB, 21: 58, 41: 59, 72: 63, 75: [1, 64], 77: [1, 66], 78: [1, 65] }, { 8: $Vz, 9: $VA, 11: $VB, 21: 67 }, { 8: $Vz, 9: $VA, 11: $VB, 21: 68 }, { 8: $Vz, 9: $VA, 11: $VB, 21: 69 }, { 8: $Vz, 9: $VA, 11: $VB, 21: 70 }, { 8: $Vz, 9: $VA, 11: $VB, 21: 71 }, { 8: $Vz, 9: $VA, 10: [1, 72], 11: $VB, 21: 73 }, o($Vy, [2, 36]), { 35: [1, 74] }, { 37: [1, 75] }, o($Vy, [2, 39]), o($VC, [2, 50], { 18: 76, 39: 77, 10: $Vx, 40: $VD }), { 10: [1, 79] }, { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 14: $VE, 44: $VF, 60: $VG, 80: [1, 86], 89: $VH, 95: [1, 83], 97: [1, 84], 101: 85, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO, 120: 87 }, o($Vy, [2, 185]), o($Vy, [2, 186]), o($Vy, [2, 187]), o($Vy, [2, 188]), o($VP, [2, 51]), o($VP, [2, 54], { 46: [1, 99] }), o($VQ, [2, 72], { 113: 112, 29: [1, 100], 44: $Vd, 48: [1, 101], 50: [1, 102], 52: [1, 103], 54: [1, 104], 56: [1, 105], 58: [1, 106], 60: $Ve, 63: [1, 107], 65: [1, 108], 67: [1, 109], 68: [1, 110], 70: [1, 111], 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 114: $Vq, 115: $Vr, 116: $Vs }), o($VR, [2, 181]), o($VR, [2, 142]), o($VR, [2, 143]), o($VR, [2, 144]), o($VR, [2, 145]), o($VR, [2, 146]), o($VR, [2, 147]), o($VR, [2, 148]), o($VR, [2, 149]), o($VR, [2, 150]), o($VR, [2, 151]), o($VR, [2, 152]), o($V3, [2, 12]), o($V3, [2, 18]), o($V3, [2, 19]), { 9: [1, 113] }, o($VS, [2, 26], { 18: 114, 10: $Vx }), o($Vy, [2, 27]), { 42: 115, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vy, [2, 40]), o($Vy, [2, 41]), o($Vy, [2, 42]), o($VT, [2, 76], { 73: 116, 62: [1, 118], 74: [1, 117] }), { 76: 119, 79: 120, 80: $VU, 81: $VV, 116: $VW, 119: $VX }, { 75: [1, 125], 77: [1, 126] }, o($VY, [2, 83]), o($Vy, [2, 28]), o($Vy, [2, 29]), o($Vy, [2, 30]), o($Vy, [2, 31]), o($Vy, [2, 32]), { 10: $VZ, 12: $V_, 14: $V$, 27: $V01, 28: 127, 32: $V11, 44: $V21, 60: $V31, 75: $V41, 80: [1, 129], 81: [1, 130], 83: 140, 84: $V51, 85: $V61, 86: $V71, 87: $V81, 88: $V91, 89: $Va1, 90: $Vb1, 91: 128, 105: $Vc1, 109: $Vd1, 111: $Ve1, 114: $Vf1, 115: $Vg1, 116: $Vh1 }, o($Vi1, $V4, { 5: 153 }), o($Vy, [2, 37]), o($Vy, [2, 38]), o($VC, [2, 48], { 44: $Vj1 }), o($VC, [2, 49], { 18: 155, 10: $Vx, 40: $Vk1 }), o($VP, [2, 44]), { 44: $Vd, 47: 157, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, { 102: [1, 158], 103: 159, 105: [1, 160] }, { 44: $Vd, 47: 161, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, { 44: $Vd, 47: 162, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vl1, [2, 107], { 10: [1, 163], 96: [1, 164] }), { 80: [1, 165] }, o($Vl1, [2, 115], { 120: 167, 10: [1, 166], 14: $VE, 44: $VF, 60: $VG, 89: $VH, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO }), o($Vl1, [2, 117], { 10: [1, 168] }), o($Vm1, [2, 183]), o($Vm1, [2, 170]), o($Vm1, [2, 171]), o($Vm1, [2, 172]), o($Vm1, [2, 173]), o($Vm1, [2, 174]), o($Vm1, [2, 175]), o($Vm1, [2, 176]), o($Vm1, [2, 177]), o($Vm1, [2, 178]), o($Vm1, [2, 179]), o($Vm1, [2, 180]), { 44: $Vd, 47: 169, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, { 30: 170, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 178, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 180, 50: [1, 179], 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 181, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 182, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 183, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 109: [1, 184] }, { 30: 185, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 186, 65: [1, 187], 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 188, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 189, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 190, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VR, [2, 182]), o($V3, [2, 20]), o($VS, [2, 25]), o($VC, [2, 46], { 39: 191, 18: 192, 10: $Vx, 40: $VD }), o($VT, [2, 73], { 10: [1, 193] }), { 10: [1, 194] }, { 30: 195, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 77: [1, 196], 79: 197, 116: $VW, 119: $VX }, o($Vt1, [2, 79]), o($Vt1, [2, 81]), o($Vt1, [2, 82]), o($Vt1, [2, 168]), o($Vt1, [2, 169]), { 76: 198, 79: 120, 80: $VU, 81: $VV, 116: $VW, 119: $VX }, o($VY, [2, 84]), { 8: $Vz, 9: $VA, 10: $VZ, 11: $VB, 12: $V_, 14: $V$, 21: 200, 27: $V01, 29: [1, 199], 32: $V11, 44: $V21, 60: $V31, 75: $V41, 83: 140, 84: $V51, 85: $V61, 86: $V71, 87: $V81, 88: $V91, 89: $Va1, 90: $Vb1, 91: 201, 105: $Vc1, 109: $Vd1, 111: $Ve1, 114: $Vf1, 115: $Vg1, 116: $Vh1 }, o($Vu1, [2, 101]), o($Vu1, [2, 103]), o($Vu1, [2, 104]), o($Vu1, [2, 157]), o($Vu1, [2, 158]), o($Vu1, [2, 159]), o($Vu1, [2, 160]), o($Vu1, [2, 161]), o($Vu1, [2, 162]), o($Vu1, [2, 163]), o($Vu1, [2, 164]), o($Vu1, [2, 165]), o($Vu1, [2, 166]), o($Vu1, [2, 167]), o($Vu1, [2, 90]), o($Vu1, [2, 91]), o($Vu1, [2, 92]), o($Vu1, [2, 93]), o($Vu1, [2, 94]), o($Vu1, [2, 95]), o($Vu1, [2, 96]), o($Vu1, [2, 97]), o($Vu1, [2, 98]), o($Vu1, [2, 99]), o($Vu1, [2, 100]), { 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 32: [1, 202], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw }, { 10: $Vx, 18: 203 }, { 44: [1, 204] }, o($VP, [2, 43]), { 10: [1, 205], 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 112, 114: $Vq, 115: $Vr, 116: $Vs }, { 10: [1, 206] }, { 10: [1, 207], 106: [1, 208] }, o($Vv1, [2, 128]), { 10: [1, 209], 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 112, 114: $Vq, 115: $Vr, 116: $Vs }, { 10: [1, 210], 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 112, 114: $Vq, 115: $Vr, 116: $Vs }, { 80: [1, 211] }, o($Vl1, [2, 109], { 10: [1, 212] }), o($Vl1, [2, 111], { 10: [1, 213] }), { 80: [1, 214] }, o($Vm1, [2, 184]), { 80: [1, 215], 98: [1, 216] }, o($VP, [2, 55], { 113: 112, 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 114: $Vq, 115: $Vr, 116: $Vs }), { 31: [1, 217], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($Vw1, [2, 86]), o($Vw1, [2, 88]), o($Vw1, [2, 89]), o($Vw1, [2, 153]), o($Vw1, [2, 154]), o($Vw1, [2, 155]), o($Vw1, [2, 156]), { 49: [1, 219], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 220, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 51: [1, 221], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 53: [1, 222], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 55: [1, 223], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 57: [1, 224], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 60: [1, 225] }, { 64: [1, 226], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 66: [1, 227], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 228, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 31: [1, 229], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 67: $Vn1, 69: [1, 230], 71: [1, 231], 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 67: $Vn1, 69: [1, 233], 71: [1, 232], 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VC, [2, 45], { 18: 155, 10: $Vx, 40: $Vk1 }), o($VC, [2, 47], { 44: $Vj1 }), o($VT, [2, 75]), o($VT, [2, 74]), { 62: [1, 234], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VT, [2, 77]), o($Vt1, [2, 80]), { 77: [1, 235], 79: 197, 116: $VW, 119: $VX }, { 30: 236, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($Vi1, $V4, { 5: 237 }), o($Vu1, [2, 102]), o($Vy, [2, 35]), { 43: 238, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, { 10: $Vx, 18: 239 }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 240, 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 251, 104: [1, 252], 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 253, 104: [1, 254], 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 105: [1, 255] }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 256, 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 44: $Vd, 47: 257, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vl1, [2, 108]), { 80: [1, 258] }, { 80: [1, 259], 98: [1, 260] }, o($Vl1, [2, 116]), o($Vl1, [2, 118], { 10: [1, 261] }), o($Vl1, [2, 119]), o($VQ, [2, 56]), o($Vw1, [2, 87]), o($VQ, [2, 57]), { 51: [1, 262], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VQ, [2, 64]), o($VQ, [2, 59]), o($VQ, [2, 60]), o($VQ, [2, 61]), { 109: [1, 263] }, o($VQ, [2, 63]), o($VQ, [2, 65]), { 66: [1, 264], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VQ, [2, 67]), o($VQ, [2, 68]), o($VQ, [2, 70]), o($VQ, [2, 69]), o($VQ, [2, 71]), o([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), o($VT, [2, 78]), { 31: [1, 265], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 32: [1, 266], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw }, o($VP, [2, 53]), { 43: 267, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vl1, [2, 121], { 106: $VF1 }), o($VG1, [2, 130], { 108: 269, 10: $Vx1, 60: $Vy1, 84: $Vz1, 105: $VA1, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }), o($VH1, [2, 132]), o($VH1, [2, 134]), o($VH1, [2, 135]), o($VH1, [2, 136]), o($VH1, [2, 137]), o($VH1, [2, 138]), o($VH1, [2, 139]), o($VH1, [2, 140]), o($VH1, [2, 141]), o($Vl1, [2, 122], { 106: $VF1 }), { 10: [1, 270] }, o($Vl1, [2, 123], { 106: $VF1 }), { 10: [1, 271] }, o($Vv1, [2, 129]), o($Vl1, [2, 105], { 106: $VF1 }), o($Vl1, [2, 106], { 113: 112, 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 114: $Vq, 115: $Vr, 116: $Vs }), o($Vl1, [2, 110]), o($Vl1, [2, 112], { 10: [1, 272] }), o($Vl1, [2, 113]), { 98: [1, 273] }, { 51: [1, 274] }, { 62: [1, 275] }, { 66: [1, 276] }, { 8: $Vz, 9: $VA, 11: $VB, 21: 277 }, o($Vy, [2, 34]), o($VP, [2, 52]), { 10: $Vx1, 60: $Vy1, 84: $Vz1, 105: $VA1, 107: 278, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, o($VH1, [2, 133]), { 14: $VE, 44: $VF, 60: $VG, 89: $VH, 101: 279, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO, 120: 87 }, { 14: $VE, 44: $VF, 60: $VG, 89: $VH, 101: 280, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO, 120: 87 }, { 98: [1, 281] }, o($Vl1, [2, 120]), o($VQ, [2, 58]), { 30: 282, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VQ, [2, 66]), o($Vi1, $V4, { 5: 283 }), o($VG1, [2, 131], { 108: 269, 10: $Vx1, 60: $Vy1, 84: $Vz1, 105: $VA1, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }), o($Vl1, [2, 126], { 120: 167, 10: [1, 284], 14: $VE, 44: $VF, 60: $VG, 89: $VH, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO }), o($Vl1, [2, 127], { 120: 167, 10: [1, 285], 14: $VE, 44: $VF, 60: $VG, 89: $VH, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO }), o($Vl1, [2, 114]), { 31: [1, 286], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 32: [1, 287], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 288, 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 289, 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, o($VQ, [2, 62]), o($Vy, [2, 33]), o($Vl1, [2, 124], { 106: $VF1 }), o($Vl1, [2, 125], { 106: $VF1 })],
1404
- defaultActions: {},
1405
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
1406
- if (hash.recoverable) {
1407
- this.trace(str);
1408
- } else {
1409
- var error = new Error(str);
1410
- error.hash = hash;
1411
- throw error;
1412
- }
1413
- }, "parseError"),
1414
- parse: /* @__PURE__ */ __name(function parse(input) {
1415
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
1416
- var args = lstack.slice.call(arguments, 1);
1417
- var lexer2 = Object.create(this.lexer);
1418
- var sharedState = { yy: {} };
1419
- for (var k in this.yy) {
1420
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
1421
- sharedState.yy[k] = this.yy[k];
1422
- }
1423
- }
1424
- lexer2.setInput(input, sharedState.yy);
1425
- sharedState.yy.lexer = lexer2;
1426
- sharedState.yy.parser = this;
1427
- if (typeof lexer2.yylloc == "undefined") {
1428
- lexer2.yylloc = {};
1429
- }
1430
- var yyloc = lexer2.yylloc;
1431
- lstack.push(yyloc);
1432
- var ranges = lexer2.options && lexer2.options.ranges;
1433
- if (typeof sharedState.yy.parseError === "function") {
1434
- this.parseError = sharedState.yy.parseError;
1435
- } else {
1436
- this.parseError = Object.getPrototypeOf(this).parseError;
1437
- }
1438
- function popStack(n) {
1439
- stack.length = stack.length - 2 * n;
1440
- vstack.length = vstack.length - n;
1441
- lstack.length = lstack.length - n;
1442
- }
1443
- __name(popStack, "popStack");
1444
- function lex() {
1445
- var token;
1446
- token = tstack.pop() || lexer2.lex() || EOF;
1447
- if (typeof token !== "number") {
1448
- if (token instanceof Array) {
1449
- tstack = token;
1450
- token = tstack.pop();
1451
- }
1452
- token = self.symbols_[token] || token;
1453
- }
1454
- return token;
1455
- }
1456
- __name(lex, "lex");
1457
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
1458
- while (true) {
1459
- state = stack[stack.length - 1];
1460
- if (this.defaultActions[state]) {
1461
- action = this.defaultActions[state];
1462
- } else {
1463
- if (symbol === null || typeof symbol == "undefined") {
1464
- symbol = lex();
1465
- }
1466
- action = table[state] && table[state][symbol];
1467
- }
1468
- if (typeof action === "undefined" || !action.length || !action[0]) {
1469
- var errStr = "";
1470
- expected = [];
1471
- for (p in table[state]) {
1472
- if (this.terminals_[p] && p > TERROR) {
1473
- expected.push("'" + this.terminals_[p] + "'");
1474
- }
1475
- }
1476
- if (lexer2.showPosition) {
1477
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
1478
- } else {
1479
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
1480
- }
1481
- this.parseError(errStr, {
1482
- text: lexer2.match,
1483
- token: this.terminals_[symbol] || symbol,
1484
- line: lexer2.yylineno,
1485
- loc: yyloc,
1486
- expected
1487
- });
1488
- }
1489
- if (action[0] instanceof Array && action.length > 1) {
1490
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
1491
- }
1492
- switch (action[0]) {
1493
- case 1:
1494
- stack.push(symbol);
1495
- vstack.push(lexer2.yytext);
1496
- lstack.push(lexer2.yylloc);
1497
- stack.push(action[1]);
1498
- symbol = null;
1499
- {
1500
- yyleng = lexer2.yyleng;
1501
- yytext = lexer2.yytext;
1502
- yylineno = lexer2.yylineno;
1503
- yyloc = lexer2.yylloc;
1504
- }
1505
- break;
1506
- case 2:
1507
- len = this.productions_[action[1]][1];
1508
- yyval.$ = vstack[vstack.length - len];
1509
- yyval._$ = {
1510
- first_line: lstack[lstack.length - (len || 1)].first_line,
1511
- last_line: lstack[lstack.length - 1].last_line,
1512
- first_column: lstack[lstack.length - (len || 1)].first_column,
1513
- last_column: lstack[lstack.length - 1].last_column
1514
- };
1515
- if (ranges) {
1516
- yyval._$.range = [
1517
- lstack[lstack.length - (len || 1)].range[0],
1518
- lstack[lstack.length - 1].range[1]
1519
- ];
1520
- }
1521
- r = this.performAction.apply(yyval, [
1522
- yytext,
1523
- yyleng,
1524
- yylineno,
1525
- sharedState.yy,
1526
- action[1],
1527
- vstack,
1528
- lstack
1529
- ].concat(args));
1530
- if (typeof r !== "undefined") {
1531
- return r;
1532
- }
1533
- if (len) {
1534
- stack = stack.slice(0, -1 * len * 2);
1535
- vstack = vstack.slice(0, -1 * len);
1536
- lstack = lstack.slice(0, -1 * len);
1537
- }
1538
- stack.push(this.productions_[action[1]][0]);
1539
- vstack.push(yyval.$);
1540
- lstack.push(yyval._$);
1541
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
1542
- stack.push(newState);
1543
- break;
1544
- case 3:
1545
- return true;
1546
- }
1547
- }
1548
- return true;
1549
- }, "parse")
1550
- };
1551
- var lexer = /* @__PURE__ */ function() {
1552
- var lexer2 = {
1553
- EOF: 1,
1554
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
1555
- if (this.yy.parser) {
1556
- this.yy.parser.parseError(str, hash);
1557
- } else {
1558
- throw new Error(str);
1559
- }
1560
- }, "parseError"),
1561
- // resets the lexer, sets new input
1562
- setInput: /* @__PURE__ */ __name(function(input, yy) {
1563
- this.yy = yy || this.yy || {};
1564
- this._input = input;
1565
- this._more = this._backtrack = this.done = false;
1566
- this.yylineno = this.yyleng = 0;
1567
- this.yytext = this.matched = this.match = "";
1568
- this.conditionStack = ["INITIAL"];
1569
- this.yylloc = {
1570
- first_line: 1,
1571
- first_column: 0,
1572
- last_line: 1,
1573
- last_column: 0
1574
- };
1575
- if (this.options.ranges) {
1576
- this.yylloc.range = [0, 0];
1577
- }
1578
- this.offset = 0;
1579
- return this;
1580
- }, "setInput"),
1581
- // consumes and returns one char from the input
1582
- input: /* @__PURE__ */ __name(function() {
1583
- var ch = this._input[0];
1584
- this.yytext += ch;
1585
- this.yyleng++;
1586
- this.offset++;
1587
- this.match += ch;
1588
- this.matched += ch;
1589
- var lines = ch.match(/(?:\r\n?|\n).*/g);
1590
- if (lines) {
1591
- this.yylineno++;
1592
- this.yylloc.last_line++;
1593
- } else {
1594
- this.yylloc.last_column++;
1595
- }
1596
- if (this.options.ranges) {
1597
- this.yylloc.range[1]++;
1598
- }
1599
- this._input = this._input.slice(1);
1600
- return ch;
1601
- }, "input"),
1602
- // unshifts one char (or a string) into the input
1603
- unput: /* @__PURE__ */ __name(function(ch) {
1604
- var len = ch.length;
1605
- var lines = ch.split(/(?:\r\n?|\n)/g);
1606
- this._input = ch + this._input;
1607
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
1608
- this.offset -= len;
1609
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
1610
- this.match = this.match.substr(0, this.match.length - 1);
1611
- this.matched = this.matched.substr(0, this.matched.length - 1);
1612
- if (lines.length - 1) {
1613
- this.yylineno -= lines.length - 1;
1614
- }
1615
- var r = this.yylloc.range;
1616
- this.yylloc = {
1617
- first_line: this.yylloc.first_line,
1618
- last_line: this.yylineno + 1,
1619
- first_column: this.yylloc.first_column,
1620
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
1621
- };
1622
- if (this.options.ranges) {
1623
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
1624
- }
1625
- this.yyleng = this.yytext.length;
1626
- return this;
1627
- }, "unput"),
1628
- // When called from action, caches matched text and appends it on next action
1629
- more: /* @__PURE__ */ __name(function() {
1630
- this._more = true;
1631
- return this;
1632
- }, "more"),
1633
- // 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.
1634
- reject: /* @__PURE__ */ __name(function() {
1635
- if (this.options.backtrack_lexer) {
1636
- this._backtrack = true;
1637
- } else {
1638
- 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).\n" + this.showPosition(), {
1639
- text: "",
1640
- token: null,
1641
- line: this.yylineno
1642
- });
1643
- }
1644
- return this;
1645
- }, "reject"),
1646
- // retain first n characters of the match
1647
- less: /* @__PURE__ */ __name(function(n) {
1648
- this.unput(this.match.slice(n));
1649
- }, "less"),
1650
- // displays already matched input, i.e. for error messages
1651
- pastInput: /* @__PURE__ */ __name(function() {
1652
- var past = this.matched.substr(0, this.matched.length - this.match.length);
1653
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
1654
- }, "pastInput"),
1655
- // displays upcoming input, i.e. for error messages
1656
- upcomingInput: /* @__PURE__ */ __name(function() {
1657
- var next = this.match;
1658
- if (next.length < 20) {
1659
- next += this._input.substr(0, 20 - next.length);
1660
- }
1661
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
1662
- }, "upcomingInput"),
1663
- // displays the character position where the lexing error occurred, i.e. for error messages
1664
- showPosition: /* @__PURE__ */ __name(function() {
1665
- var pre = this.pastInput();
1666
- var c = new Array(pre.length + 1).join("-");
1667
- return pre + this.upcomingInput() + "\n" + c + "^";
1668
- }, "showPosition"),
1669
- // test the lexed token: return FALSE when not a match, otherwise return token
1670
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
1671
- var token, lines, backup;
1672
- if (this.options.backtrack_lexer) {
1673
- backup = {
1674
- yylineno: this.yylineno,
1675
- yylloc: {
1676
- first_line: this.yylloc.first_line,
1677
- last_line: this.last_line,
1678
- first_column: this.yylloc.first_column,
1679
- last_column: this.yylloc.last_column
1680
- },
1681
- yytext: this.yytext,
1682
- match: this.match,
1683
- matches: this.matches,
1684
- matched: this.matched,
1685
- yyleng: this.yyleng,
1686
- offset: this.offset,
1687
- _more: this._more,
1688
- _input: this._input,
1689
- yy: this.yy,
1690
- conditionStack: this.conditionStack.slice(0),
1691
- done: this.done
1692
- };
1693
- if (this.options.ranges) {
1694
- backup.yylloc.range = this.yylloc.range.slice(0);
1695
- }
1696
- }
1697
- lines = match[0].match(/(?:\r\n?|\n).*/g);
1698
- if (lines) {
1699
- this.yylineno += lines.length;
1700
- }
1701
- this.yylloc = {
1702
- first_line: this.yylloc.last_line,
1703
- last_line: this.yylineno + 1,
1704
- first_column: this.yylloc.last_column,
1705
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
1706
- };
1707
- this.yytext += match[0];
1708
- this.match += match[0];
1709
- this.matches = match;
1710
- this.yyleng = this.yytext.length;
1711
- if (this.options.ranges) {
1712
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
1713
- }
1714
- this._more = false;
1715
- this._backtrack = false;
1716
- this._input = this._input.slice(match[0].length);
1717
- this.matched += match[0];
1718
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
1719
- if (this.done && this._input) {
1720
- this.done = false;
1721
- }
1722
- if (token) {
1723
- return token;
1724
- } else if (this._backtrack) {
1725
- for (var k in backup) {
1726
- this[k] = backup[k];
1727
- }
1728
- return false;
1729
- }
1730
- return false;
1731
- }, "test_match"),
1732
- // return next match in input
1733
- next: /* @__PURE__ */ __name(function() {
1734
- if (this.done) {
1735
- return this.EOF;
1736
- }
1737
- if (!this._input) {
1738
- this.done = true;
1739
- }
1740
- var token, match, tempMatch, index;
1741
- if (!this._more) {
1742
- this.yytext = "";
1743
- this.match = "";
1744
- }
1745
- var rules = this._currentRules();
1746
- for (var i = 0; i < rules.length; i++) {
1747
- tempMatch = this._input.match(this.rules[rules[i]]);
1748
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
1749
- match = tempMatch;
1750
- index = i;
1751
- if (this.options.backtrack_lexer) {
1752
- token = this.test_match(tempMatch, rules[i]);
1753
- if (token !== false) {
1754
- return token;
1755
- } else if (this._backtrack) {
1756
- match = false;
1757
- continue;
1758
- } else {
1759
- return false;
1760
- }
1761
- } else if (!this.options.flex) {
1762
- break;
1763
- }
1764
- }
1765
- }
1766
- if (match) {
1767
- token = this.test_match(match, rules[index]);
1768
- if (token !== false) {
1769
- return token;
1770
- }
1771
- return false;
1772
- }
1773
- if (this._input === "") {
1774
- return this.EOF;
1775
- } else {
1776
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1777
- text: "",
1778
- token: null,
1779
- line: this.yylineno
1780
- });
1781
- }
1782
- }, "next"),
1783
- // return next match that has a token
1784
- lex: /* @__PURE__ */ __name(function lex() {
1785
- var r = this.next();
1786
- if (r) {
1787
- return r;
1788
- } else {
1789
- return this.lex();
1790
- }
1791
- }, "lex"),
1792
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1793
- begin: /* @__PURE__ */ __name(function begin(condition) {
1794
- this.conditionStack.push(condition);
1795
- }, "begin"),
1796
- // pop the previously active lexer condition state off the condition stack
1797
- popState: /* @__PURE__ */ __name(function popState() {
1798
- var n = this.conditionStack.length - 1;
1799
- if (n > 0) {
1800
- return this.conditionStack.pop();
1801
- } else {
1802
- return this.conditionStack[0];
1803
- }
1804
- }, "popState"),
1805
- // produce the lexer rule set which is active for the currently active lexer condition state
1806
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
1807
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
1808
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
1809
- } else {
1810
- return this.conditions["INITIAL"].rules;
1811
- }
1812
- }, "_currentRules"),
1813
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1814
- topState: /* @__PURE__ */ __name(function topState(n) {
1815
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
1816
- if (n >= 0) {
1817
- return this.conditionStack[n];
1818
- } else {
1819
- return "INITIAL";
1820
- }
1821
- }, "topState"),
1822
- // alias for begin(condition)
1823
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
1824
- this.begin(condition);
1825
- }, "pushState"),
1826
- // return the number of states currently on the stack
1827
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
1828
- return this.conditionStack.length;
1829
- }, "stateStackSize"),
1830
- options: {},
1831
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
1832
- switch ($avoiding_name_collisions) {
1833
- case 0:
1834
- this.begin("acc_title");
1835
- return 34;
1836
- case 1:
1837
- this.popState();
1838
- return "acc_title_value";
1839
- case 2:
1840
- this.begin("acc_descr");
1841
- return 36;
1842
- case 3:
1843
- this.popState();
1844
- return "acc_descr_value";
1845
- case 4:
1846
- this.begin("acc_descr_multiline");
1847
- break;
1848
- case 5:
1849
- this.popState();
1850
- break;
1851
- case 6:
1852
- return "acc_descr_multiline_value";
1853
- case 7:
1854
- this.pushState("shapeData");
1855
- yy_.yytext = "";
1856
- return 40;
1857
- case 8:
1858
- this.pushState("shapeDataStr");
1859
- return 40;
1860
- case 9:
1861
- this.popState();
1862
- return 40;
1863
- case 10:
1864
- const re = /\n\s*/g;
1865
- yy_.yytext = yy_.yytext.replace(re, "<br/>");
1866
- return 40;
1867
- case 11:
1868
- return 40;
1869
- case 12:
1870
- this.popState();
1871
- break;
1872
- case 13:
1873
- this.begin("callbackname");
1874
- break;
1875
- case 14:
1876
- this.popState();
1877
- break;
1878
- case 15:
1879
- this.popState();
1880
- this.begin("callbackargs");
1881
- break;
1882
- case 16:
1883
- return 95;
1884
- case 17:
1885
- this.popState();
1886
- break;
1887
- case 18:
1888
- return 96;
1889
- case 19:
1890
- return "MD_STR";
1891
- case 20:
1892
- this.popState();
1893
- break;
1894
- case 21:
1895
- this.begin("md_string");
1896
- break;
1897
- case 22:
1898
- return "STR";
1899
- case 23:
1900
- this.popState();
1901
- break;
1902
- case 24:
1903
- this.pushState("string");
1904
- break;
1905
- case 25:
1906
- return 84;
1907
- case 26:
1908
- return 102;
1909
- case 27:
1910
- return 85;
1911
- case 28:
1912
- return 104;
1913
- case 29:
1914
- return 86;
1915
- case 30:
1916
- return 87;
1917
- case 31:
1918
- return 97;
1919
- case 32:
1920
- this.begin("click");
1921
- break;
1922
- case 33:
1923
- this.popState();
1924
- break;
1925
- case 34:
1926
- return 88;
1927
- case 35:
1928
- if (yy.lex.firstGraph()) {
1929
- this.begin("dir");
1930
- }
1931
- return 12;
1932
- case 36:
1933
- if (yy.lex.firstGraph()) {
1934
- this.begin("dir");
1935
- }
1936
- return 12;
1937
- case 37:
1938
- if (yy.lex.firstGraph()) {
1939
- this.begin("dir");
1940
- }
1941
- return 12;
1942
- case 38:
1943
- return 27;
1944
- case 39:
1945
- return 32;
1946
- case 40:
1947
- return 98;
1948
- case 41:
1949
- return 98;
1950
- case 42:
1951
- return 98;
1952
- case 43:
1953
- return 98;
1954
- case 44:
1955
- this.popState();
1956
- return 13;
1957
- case 45:
1958
- this.popState();
1959
- return 14;
1960
- case 46:
1961
- this.popState();
1962
- return 14;
1963
- case 47:
1964
- this.popState();
1965
- return 14;
1966
- case 48:
1967
- this.popState();
1968
- return 14;
1969
- case 49:
1970
- this.popState();
1971
- return 14;
1972
- case 50:
1973
- this.popState();
1974
- return 14;
1975
- case 51:
1976
- this.popState();
1977
- return 14;
1978
- case 52:
1979
- this.popState();
1980
- return 14;
1981
- case 53:
1982
- this.popState();
1983
- return 14;
1984
- case 54:
1985
- this.popState();
1986
- return 14;
1987
- case 55:
1988
- return 121;
1989
- case 56:
1990
- return 122;
1991
- case 57:
1992
- return 123;
1993
- case 58:
1994
- return 124;
1995
- case 59:
1996
- return 78;
1997
- case 60:
1998
- return 105;
1999
- case 61:
2000
- return 111;
2001
- case 62:
2002
- return 46;
2003
- case 63:
2004
- return 60;
2005
- case 64:
2006
- return 44;
2007
- case 65:
2008
- return 8;
2009
- case 66:
2010
- return 106;
2011
- case 67:
2012
- return 115;
2013
- case 68:
2014
- this.popState();
2015
- return 77;
2016
- case 69:
2017
- this.pushState("edgeText");
2018
- return 75;
2019
- case 70:
2020
- return 119;
2021
- case 71:
2022
- this.popState();
2023
- return 77;
2024
- case 72:
2025
- this.pushState("thickEdgeText");
2026
- return 75;
2027
- case 73:
2028
- return 119;
2029
- case 74:
2030
- this.popState();
2031
- return 77;
2032
- case 75:
2033
- this.pushState("dottedEdgeText");
2034
- return 75;
2035
- case 76:
2036
- return 119;
2037
- case 77:
2038
- return 77;
2039
- case 78:
2040
- this.popState();
2041
- return 53;
2042
- case 79:
2043
- return "TEXT";
2044
- case 80:
2045
- this.pushState("ellipseText");
2046
- return 52;
2047
- case 81:
2048
- this.popState();
2049
- return 55;
2050
- case 82:
2051
- this.pushState("text");
2052
- return 54;
2053
- case 83:
2054
- this.popState();
2055
- return 57;
2056
- case 84:
2057
- this.pushState("text");
2058
- return 56;
2059
- case 85:
2060
- return 58;
2061
- case 86:
2062
- this.pushState("text");
2063
- return 67;
2064
- case 87:
2065
- this.popState();
2066
- return 64;
2067
- case 88:
2068
- this.pushState("text");
2069
- return 63;
2070
- case 89:
2071
- this.popState();
2072
- return 49;
2073
- case 90:
2074
- this.pushState("text");
2075
- return 48;
2076
- case 91:
2077
- this.popState();
2078
- return 69;
2079
- case 92:
2080
- this.popState();
2081
- return 71;
2082
- case 93:
2083
- return 117;
2084
- case 94:
2085
- this.pushState("trapText");
2086
- return 68;
2087
- case 95:
2088
- this.pushState("trapText");
2089
- return 70;
2090
- case 96:
2091
- return 118;
2092
- case 97:
2093
- return 67;
2094
- case 98:
2095
- return 90;
2096
- case 99:
2097
- return "SEP";
2098
- case 100:
2099
- return 89;
2100
- case 101:
2101
- return 115;
2102
- case 102:
2103
- return 111;
2104
- case 103:
2105
- return 44;
2106
- case 104:
2107
- return 109;
2108
- case 105:
2109
- return 114;
2110
- case 106:
2111
- return 116;
2112
- case 107:
2113
- this.popState();
2114
- return 62;
2115
- case 108:
2116
- this.pushState("text");
2117
- return 62;
2118
- case 109:
2119
- this.popState();
2120
- return 51;
2121
- case 110:
2122
- this.pushState("text");
2123
- return 50;
2124
- case 111:
2125
- this.popState();
2126
- return 31;
2127
- case 112:
2128
- this.pushState("text");
2129
- return 29;
2130
- case 113:
2131
- this.popState();
2132
- return 66;
2133
- case 114:
2134
- this.pushState("text");
2135
- return 65;
2136
- case 115:
2137
- return "TEXT";
2138
- case 116:
2139
- return "QUOTE";
2140
- case 117:
2141
- return 9;
2142
- case 118:
2143
- return 10;
2144
- case 119:
2145
- return 11;
2146
- }
2147
- }, "anonymous"),
2148
- 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)/, /^(?: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]*)/, /^(?:[^\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)/, /^(?:$)/],
2149
- conditions: { "shapeDataEndBracket": { "rules": [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "shapeDataStr": { "rules": [9, 10, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "shapeData": { "rules": [8, 11, 12, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "callbackargs": { "rules": [17, 18, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "callbackname": { "rules": [14, 15, 16, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "href": { "rules": [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "click": { "rules": [21, 24, 33, 34, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "dottedEdgeText": { "rules": [21, 24, 74, 76, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "thickEdgeText": { "rules": [21, 24, 71, 73, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "edgeText": { "rules": [21, 24, 68, 70, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "trapText": { "rules": [21, 24, 77, 80, 82, 84, 88, 90, 91, 92, 93, 94, 95, 108, 110, 112, 114], "inclusive": false }, "ellipseText": { "rules": [21, 24, 77, 78, 79, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "text": { "rules": [21, 24, 77, 80, 81, 82, 83, 84, 87, 88, 89, 90, 94, 95, 107, 108, 109, 110, 111, 112, 113, 114, 115], "inclusive": false }, "vertex": { "rules": [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "dir": { "rules": [21, 24, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "acc_descr_multiline": { "rules": [5, 6, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "acc_descr": { "rules": [3, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "acc_title": { "rules": [1, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "md_string": { "rules": [19, 20, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "string": { "rules": [21, 22, 23, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "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, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 74, 75, 77, 80, 82, 84, 85, 86, 88, 90, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 108, 110, 112, 114, 116, 117, 118, 119], "inclusive": true } }
2150
- };
2151
- return lexer2;
2152
- }();
2153
- parser2.lexer = lexer;
2154
- function Parser() {
2155
- this.yy = {};
2156
- }
2157
- __name(Parser, "Parser");
2158
- Parser.prototype = parser2;
2159
- parser2.Parser = Parser;
2160
- return new Parser();
2161
- }();
2162
- parser.parser = parser;
2163
- var flow_default = parser;
2164
- var newParser = Object.assign({}, flow_default);
2165
- newParser.parse = (src) => {
2166
- const newSrc = src.replace(/}\s*\n/g, "}\n");
2167
- return flow_default.parse(newSrc);
2168
- };
2169
- var flowParser_default = newParser;
2170
- var fade = /* @__PURE__ */ __name((color, opacity) => {
2171
- const channel2 = channel;
2172
- const r = channel2(color, "r");
2173
- const g = channel2(color, "g");
2174
- const b = channel2(color, "b");
2175
- return rgba$1(r, g, b, opacity);
2176
- }, "fade");
2177
- var getStyles = /* @__PURE__ */ __name((options) => `.label {
2178
- font-family: ${options.fontFamily};
2179
- color: ${options.nodeTextColor || options.textColor};
2180
- }
2181
- .cluster-label text {
2182
- fill: ${options.titleColor};
2183
- }
2184
- .cluster-label span {
2185
- color: ${options.titleColor};
2186
- }
2187
- .cluster-label span p {
2188
- background-color: transparent;
2189
- }
2190
-
2191
- .label text,span {
2192
- fill: ${options.nodeTextColor || options.textColor};
2193
- color: ${options.nodeTextColor || options.textColor};
2194
- }
2195
-
2196
- .node rect,
2197
- .node circle,
2198
- .node ellipse,
2199
- .node polygon,
2200
- .node path {
2201
- fill: ${options.mainBkg};
2202
- stroke: ${options.nodeBorder};
2203
- stroke-width: 1px;
2204
- }
2205
- .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
2206
- text-anchor: middle;
2207
- }
2208
- // .flowchart-label .text-outer-tspan {
2209
- // text-anchor: middle;
2210
- // }
2211
- // .flowchart-label .text-inner-tspan {
2212
- // text-anchor: start;
2213
- // }
2214
-
2215
- .node .katex path {
2216
- fill: #000;
2217
- stroke: #000;
2218
- stroke-width: 1px;
2219
- }
2220
-
2221
- .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
2222
- text-align: center;
2223
- }
2224
- .node.clickable {
2225
- cursor: pointer;
2226
- }
2227
-
2228
-
2229
- .root .anchor path {
2230
- fill: ${options.lineColor} !important;
2231
- stroke-width: 0;
2232
- stroke: ${options.lineColor};
2233
- }
2234
-
2235
- .arrowheadPath {
2236
- fill: ${options.arrowheadColor};
2237
- }
2238
-
2239
- .edgePath .path {
2240
- stroke: ${options.lineColor};
2241
- stroke-width: 2.0px;
2242
- }
2243
-
2244
- .flowchart-link {
2245
- stroke: ${options.lineColor};
2246
- fill: none;
2247
- }
2248
-
2249
- .edgeLabel {
2250
- background-color: ${options.edgeLabelBackground};
2251
- p {
2252
- background-color: ${options.edgeLabelBackground};
2253
- }
2254
- rect {
2255
- opacity: 0.5;
2256
- background-color: ${options.edgeLabelBackground};
2257
- fill: ${options.edgeLabelBackground};
2258
- }
2259
- text-align: center;
2260
- }
2261
-
2262
- /* For html labels only */
2263
- .labelBkg {
2264
- background-color: ${fade(options.edgeLabelBackground, 0.5)};
2265
- // background-color:
2266
- }
2267
-
2268
- .cluster rect {
2269
- fill: ${options.clusterBkg};
2270
- stroke: ${options.clusterBorder};
2271
- stroke-width: 1px;
2272
- }
2273
-
2274
- .cluster text {
2275
- fill: ${options.titleColor};
2276
- }
2277
-
2278
- .cluster span {
2279
- color: ${options.titleColor};
2280
- }
2281
- /* .cluster div {
2282
- color: ${options.titleColor};
2283
- } */
2284
-
2285
- div.mermaidTooltip {
2286
- position: absolute;
2287
- text-align: center;
2288
- max-width: 200px;
2289
- padding: 2px;
2290
- font-family: ${options.fontFamily};
2291
- font-size: 12px;
2292
- background: ${options.tertiaryColor};
2293
- border: 1px solid ${options.border2};
2294
- border-radius: 2px;
2295
- pointer-events: none;
2296
- z-index: 100;
2297
- }
2298
-
2299
- .flowchartTitleText {
2300
- text-anchor: middle;
2301
- font-size: 18px;
2302
- fill: ${options.textColor};
2303
- }
2304
-
2305
- rect.text {
2306
- fill: none;
2307
- stroke-width: 0;
2308
- }
2309
-
2310
- .icon-shape, .image-shape {
2311
- background-color: ${options.edgeLabelBackground};
2312
- p {
2313
- background-color: ${options.edgeLabelBackground};
2314
- padding: 2px;
2315
- }
2316
- rect {
2317
- opacity: 0.5;
2318
- background-color: ${options.edgeLabelBackground};
2319
- fill: ${options.edgeLabelBackground};
2320
- }
2321
- text-align: center;
2322
- }
2323
- ${getIconStyles()}
2324
- `, "getStyles");
2325
- var styles_default = getStyles;
2326
- var diagram = {
2327
- parser: flowParser_default,
2328
- get db() {
2329
- return new FlowDB();
2330
- },
2331
- renderer: flowRenderer_v3_unified_default,
2332
- styles: styles_default,
2333
- init: /* @__PURE__ */ __name((cnf) => {
2334
- if (!cnf.flowchart) {
2335
- cnf.flowchart = {};
2336
- }
2337
- if (cnf.layout) {
2338
- setConfig2({ layout: cnf.layout });
2339
- }
2340
- cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
2341
- setConfig2({ flowchart: { arrowMarkerAbsolute: cnf.arrowMarkerAbsolute } });
2342
- }, "init")
2343
- };
2344
-
2345
- export { diagram };