@foris/avocado-not-front 1.11.7-beta.4 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (342) hide show
  1. package/dist/abap-Y8Dl9g_6-Y8Dl9g_6.js +6 -0
  2. package/dist/actionscript-3-DZzbMeqX-DZzbMeqX.js +6 -0
  3. package/dist/ada-vP6ak0IW-vP6ak0IW.js +6 -0
  4. package/dist/andromeeda-BIpZ7gaU-BIpZ7gaU.js +4 -0
  5. package/dist/angular-html-DPB4Rf0C-1_1_4tyh.js +34 -0
  6. package/dist/angular-ts-CeqPwKaz-ohSx1G-R.js +24 -0
  7. package/dist/apache-BUjz-sD2-BUjz-sD2.js +6 -0
  8. package/dist/apex-oLhhs58q-oLhhs58q.js +6 -0
  9. package/dist/apl-Bfz1rp5e-DI6exAvT.js +17 -0
  10. package/dist/applescript-BPx7YFFu-BPx7YFFu.js +6 -0
  11. package/dist/ara-Z2fSOxSw-Z2fSOxSw.js +6 -0
  12. package/dist/arc-DHSZg76Q-C6o4oFmD.js +85 -0
  13. package/dist/architectureDiagram-VXUJARFQ-Cp8vugxX-9O3-degh.js +4672 -0
  14. package/dist/asciidoc-B-pCoB3G-B-pCoB3G.js +6 -0
  15. package/dist/asm-BTWLY5ym-BTWLY5ym.js +6 -0
  16. package/dist/astro-CFFExE8Q-D857V_mk.js +18 -0
  17. package/dist/aurora-x-BwoVEUWZ-BwoVEUWZ.js +4 -0
  18. package/dist/avocado-not-front.es.js +8 -2167
  19. package/dist/avocado-not-front.umd.js +4642 -3
  20. package/dist/awk-Fb0P9dkn-Fb0P9dkn.js +6 -0
  21. package/dist/ayu-dark-CxPZkpb2-CxPZkpb2.js +4 -0
  22. package/dist/ballerina-oZK-YekG-oZK-YekG.js +6 -0
  23. package/dist/bat-0FvbqU9S-0FvbqU9S.js +6 -0
  24. package/dist/beancount-DqJEb89h-DqJEb89h.js +6 -0
  25. package/dist/berry-DODBq_Ff-DODBq_Ff.js +6 -0
  26. package/dist/bibtex-EULQRLY5-EULQRLY5.js +6 -0
  27. package/dist/bicep-BorU73w0-BorU73w0.js +6 -0
  28. package/dist/blade-DRRSiTQz-DuQj1Sqy.js +21 -0
  29. package/dist/blockDiagram-VD42YOAC-B4cTulr6-CNlYtTjf.js +2407 -0
  30. package/dist/bsl-NkNNwerW-DeWv6DbE.js +8 -0
  31. package/dist/c-eeMepfLm-eeMepfLm.js +6 -0
  32. package/dist/c4Diagram-YG6GDRKO-B8--s8xx-CZw1PsLU.js +1585 -0
  33. package/dist/cadence-02UX7mW8-02UX7mW8.js +6 -0
  34. package/dist/cairo-DM6WF2e3-BLxuUSuB.js +8 -0
  35. package/dist/catppuccin-frappe-D3cH2rXe-D3cH2rXe.js +4 -0
  36. package/dist/catppuccin-latte-C0LRGUW4-C0LRGUW4.js +4 -0
  37. package/dist/catppuccin-macchiato-c5wQ11TT-c5wQ11TT.js +4 -0
  38. package/dist/catppuccin-mocha-WMD6Qvya-WMD6Qvya.js +4 -0
  39. package/dist/channel-Cqk_cOiy-72hMZ_v0.js +5 -0
  40. package/dist/chunk-4BX2VUAB-Cb-wAjVN-DlY_dtbp.js +9 -0
  41. package/dist/chunk-55IACEB6-QFXfbMHG-AnxyrPT-.js +8 -0
  42. package/dist/chunk-B4BG7PRW-CFs53zrP-DB12fnkn.js +1375 -0
  43. package/dist/chunk-DI55MBZ5-CKjAOeh7-D98MsfUL.js +1383 -0
  44. package/dist/chunk-FMBD7UC4-B29MtLTn-tjtGIWPm.js +19 -0
  45. package/dist/chunk-QN33PNHL-5bU-bM6A-vK9OZVa6.js +20 -0
  46. package/dist/chunk-QZHKN3VN-B_Q6cMrq-78n0e61s.js +15 -0
  47. package/dist/chunk-TZMSLE5B-DlULRafu-BlGLxuE_.js +64 -0
  48. package/dist/clarity-PKm5CwqM-PKm5CwqM.js +6 -0
  49. package/dist/classDiagram-2ON5EDUG-DJmXfcVi-CF8YlvOv.js +22 -0
  50. package/dist/classDiagram-v2-WZHVMYZB-DJmXfcVi-CF8YlvOv.js +22 -0
  51. package/dist/clojure-CXJfHrL3-CXJfHrL3.js +6 -0
  52. package/dist/cmake-BJz8BOTU-BJz8BOTU.js +6 -0
  53. package/dist/cobol-DYTFdEK1-1eoMdnt0.js +12 -0
  54. package/dist/code-block-QI2IAROF-C_F85uim-MNaL7yo9.js +2805 -0
  55. package/dist/codeowners-Bt9yU6NX-Bt9yU6NX.js +6 -0
  56. package/dist/codeql-DHkodjjI-DHkodjjI.js +6 -0
  57. package/dist/coffee-DGBR_nr_-Cu5d6u6p.js +8 -0
  58. package/dist/common-lisp-EVqT9Zhp-EVqT9Zhp.js +6 -0
  59. package/dist/coq-B0L9upzn-B0L9upzn.js +6 -0
  60. package/dist/cose-bilkent-S5V4N54A-N3jM_XQd-BbbJbKzj.js +2612 -0
  61. package/dist/cpp-ZFnOq6fV-CkUSzFY-.js +19 -0
  62. package/dist/crystal-CRJyc4G--B_7jzPPy.js +18 -0
  63. package/dist/csharp-C7yUs7-w-C7yUs7-w.js +6 -0
  64. package/dist/css-CECN5uSL-CECN5uSL.js +6 -0
  65. package/dist/csv-CmYOceLb-DlI6xKnA.js +6 -0
  66. package/dist/cue-ZzumE7IT-ZzumE7IT.js +6 -0
  67. package/dist/cypher-jpdmjtA6-jpdmjtA6.js +6 -0
  68. package/dist/cytoscape.esm-ClN43hhW-Dh4GqQxb.js +18836 -0
  69. package/dist/d-CBagWSwH-CBagWSwH.js +6 -0
  70. package/dist/dagre-6UL2VRFP-CJdrtgOu-CLaqjT6l.js +451 -0
  71. package/dist/dark-plus-pUHDTVV0-pUHDTVV0.js +4 -0
  72. package/dist/dart-6ObCrKr9-6ObCrKr9.js +6 -0
  73. package/dist/dax-CcDT-8dH-CcDT-8dH.js +6 -0
  74. package/dist/defaultLocale-DcQU6Vee-C62bXCQv.js +177 -0
  75. package/dist/desktop-B93p9R9O-B93p9R9O.js +6 -0
  76. package/dist/diagram-PSM6KHXK-DSaDqHvO-DVH1Sew6.js +544 -0
  77. package/dist/diagram-QEK2KX5R-BbxboH_--DYDmO4S1.js +224 -0
  78. package/dist/diagram-S2PKOQOG-DWsCb5He--yPVUK-A.js +146 -0
  79. package/dist/diff-BxzP2J8R-BxzP2J8R.js +6 -0
  80. package/dist/docker-CsHqm9tx-CsHqm9tx.js +6 -0
  81. package/dist/dotenv-BMjVjUL1-BMjVjUL1.js +6 -0
  82. package/dist/dracula-BtZx2Kac-BtZx2Kac.js +4 -0
  83. package/dist/dracula-soft-BKa-aqBv-BKa-aqBv.js +4 -0
  84. package/dist/dream-maker-PAx17jaB-PAx17jaB.js +6 -0
  85. package/dist/edge-B882-fmN-CXsL8OuZ.js +14 -0
  86. package/dist/elixir-DRzNHQCz-EnC5QsDh.js +10 -0
  87. package/dist/elm-DZPAA5Qn-BCPZo0aa.js +9 -0
  88. package/dist/emacs-lisp-Cfxdx5D--Cfxdx5D-.js +6 -0
  89. package/dist/erDiagram-Q2GNP2WA-Bl0uHx93-Cm6cgw10.js +844 -0
  90. package/dist/erb-DB1DqdBc-CnAEHkSC.js +27 -0
  91. package/dist/erlang-DNcDT8Hi-Cs3llSSi.js +8 -0
  92. package/dist/everforest-dark-DMCBqXCK-DMCBqXCK.js +4 -0
  93. package/dist/everforest-light-BbXl82Em-BbXl82Em.js +4 -0
  94. package/dist/fennel-N4WcXuKx-N4WcXuKx.js +6 -0
  95. package/dist/fish-BTDEUgqH-BTDEUgqH.js +6 -0
  96. package/dist/flowDiagram-NV44I4VS-Dq0mXT8f-BL0sk42H.js +1631 -0
  97. package/dist/fluent-BMXUxfv1-BMXUxfv1.js +6 -0
  98. package/dist/fortran-fixed-form-DUsA-VGo-CYX4aMfD.js +8 -0
  99. package/dist/fortran-free-form-DPIT_jbP-DPIT_jbP.js +6 -0
  100. package/dist/fsharp-CYOiIVNx-D3KYyprZ.js +8 -0
  101. package/dist/ganttDiagram-JELNMOA3-Dj1adndm-BODWVm5T.js +2702 -0
  102. package/dist/gdresource-BwtMIoBm-DVtwhfL2.js +10 -0
  103. package/dist/gdscript-BifyeYhI-BifyeYhI.js +6 -0
  104. package/dist/gdshader-Bk8fF6yr-Bk8fF6yr.js +6 -0
  105. package/dist/genie-DzUvd7U9-DzUvd7U9.js +6 -0
  106. package/dist/gherkin-DHRaV0YP-DHRaV0YP.js +6 -0
  107. package/dist/git-commit-Bd32YZ0K-D9qSjMiw.js +8 -0
  108. package/dist/git-rebase-ZWUFO_T4-uqUGWt5o.js +8 -0
  109. package/dist/gitGraphDiagram-NY62KEGX-DIFZugA1-BsIE257G.js +715 -0
  110. package/dist/github-dark-DenFmJkN-DenFmJkN.js +4 -0
  111. package/dist/github-dark-default-BJPUVz4H-BJPUVz4H.js +4 -0
  112. package/dist/github-dark-dimmed-DUshB20C-DUshB20C.js +4 -0
  113. package/dist/github-dark-high-contrast-D3aGCnF8-D3aGCnF8.js +4 -0
  114. package/dist/github-light-JYsPkUQd-JYsPkUQd.js +4 -0
  115. package/dist/github-light-default-D99KPAby-D99KPAby.js +4 -0
  116. package/dist/github-light-high-contrast-BbmZE-Mp-BbmZE-Mp.js +4 -0
  117. package/dist/gleam-Bv284lvN-Bv284lvN.js +6 -0
  118. package/dist/glimmer-js-DkxNrfPT-Dr8vv_dk.js +14 -0
  119. package/dist/glimmer-ts-D6YZEmK_-CeJS1lkt.js +14 -0
  120. package/dist/glsl-CkUcVZNK-D6P60Alb.js +8 -0
  121. package/dist/gnuplot-yPG9-sE_-yPG9-sE_.js +6 -0
  122. package/dist/go-ChxJuLYK-ChxJuLYK.js +6 -0
  123. package/dist/graph-DB2UxkYH-Bs-uwV4G.js +1190 -0
  124. package/dist/graphql-CBu2ehBn-B9KpeKh4.js +14 -0
  125. package/dist/groovy-CJQTphOW-CJQTphOW.js +6 -0
  126. package/dist/gruvbox-dark-hard-C5HOtKIh-C5HOtKIh.js +4 -0
  127. package/dist/gruvbox-dark-medium-FVgwJHuz-FVgwJHuz.js +4 -0
  128. package/dist/gruvbox-dark-soft-B46F314v-B46F314v.js +4 -0
  129. package/dist/gruvbox-light-hard-CJD38wDZ-CJD38wDZ.js +4 -0
  130. package/dist/gruvbox-light-medium-BlIhMYTA-BlIhMYTA.js +4 -0
  131. package/dist/gruvbox-light-soft-DoPHyLVZ-DoPHyLVZ.js +4 -0
  132. package/dist/hack-DVWgrvc2-CFszvyOs.js +12 -0
  133. package/dist/haml-NZLVzu_R-6sAynSNG.js +10 -0
  134. package/dist/handlebars-mxStpSE7-C1GOcwW1.js +14 -0
  135. package/dist/haskell-WeIwNIP6-WeIwNIP6.js +6 -0
  136. package/dist/haxe-TztHsm5T-TztHsm5T.js +6 -0
  137. package/dist/hcl-D438OF-I-D438OF-I.js +6 -0
  138. package/dist/hjson-DYBUbqOl-DYBUbqOl.js +6 -0
  139. package/dist/hlsl-Bk8TCZNL-Bk8TCZNL.js +6 -0
  140. package/dist/hooks/useAction.d.ts +3 -3
  141. package/dist/houston-BDYrDoDW-BDYrDoDW.js +4 -0
  142. package/dist/html-B50bmoVb-BJ3eCZKL.js +10 -0
  143. package/dist/html-derivative-ByyNxAP5-BxLhKRHw.js +10 -0
  144. package/dist/http-BVIWqb92-CjnDmEd8.js +19 -0
  145. package/dist/hurl-B8OTiYoQ-DoRwHSAy.js +17 -0
  146. package/dist/hxml-GbqSQCLa-BnvJylRx.js +8 -0
  147. package/dist/hy-Brt5EZ7--Brt5EZ7-.js +6 -0
  148. package/dist/imba-CimUv-Uh-CimUv-Uh.js +6 -0
  149. package/dist/infoDiagram-WHAUD3N6-DPjzRs82-ChgGSBbk.js +27 -0
  150. package/dist/ini-BZIuRIvJ-BZIuRIvJ.js +6 -0
  151. package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
  152. package/dist/java-DY6VlHhP-DY6VlHhP.js +6 -0
  153. package/dist/javascript-C25yR2R2-C25yR2R2.js +6 -0
  154. package/dist/jinja-CI-LSgSv-BEWEZ83m.js +13 -0
  155. package/dist/jison-DdreslRX-DzaoIrEq.js +8 -0
  156. package/dist/journeyDiagram-XKPGCS4Q-DLrlPVyq-DYzqQ6Qu.js +840 -0
  157. package/dist/json-DxJze_jm-DxJze_jm.js +6 -0
  158. package/dist/json5-BT4Fjg39-BT4Fjg39.js +6 -0
  159. package/dist/jsonc-CHjZD8gR-CHjZD8gR.js +6 -0
  160. package/dist/jsonl-BGuvDmy9-BGuvDmy9.js +6 -0
  161. package/dist/jsonnet-Bx2cfsXg-Bx2cfsXg.js +6 -0
  162. package/dist/jssm-BcADi6EI-BcADi6EI.js +6 -0
  163. package/dist/jsx-BtKADgXT-BtKADgXT.js +6 -0
  164. package/dist/julia-ll8P6QXy-CifMye9u.js +19 -0
  165. package/dist/kanagawa-dragon-CiKur4Hl-CiKur4Hl.js +4 -0
  166. package/dist/kanagawa-lotus-BKu-smKu-BKu-smKu.js +4 -0
  167. package/dist/kanagawa-wave-CQwozSzG-CQwozSzG.js +4 -0
  168. package/dist/kanban-definition-3W4ZIXB7-BTI5yGHx-Bz8MmnxI.js +724 -0
  169. package/dist/katex.min-l0sNRNKZ-l0sNRNKZ.js +1 -0
  170. package/dist/kdl-BNOv9TC3-0Q4F1UAs.js +6 -0
  171. package/dist/kotlin-ByBMgTeR-ByBMgTeR.js +6 -0
  172. package/dist/kusto-VWFLl2T0-VWFLl2T0.js +6 -0
  173. package/dist/laserwave-6a00oqik-6a00oqik.js +4 -0
  174. package/dist/latex-DF20280u-RMy1LUrW.js +9 -0
  175. package/dist/layout-Q6wQN5dr-BC95Y2G0.js +1727 -0
  176. package/dist/lean-D5yRrexI-D5yRrexI.js +6 -0
  177. package/dist/less-B1GLI2Di-B1GLI2Di.js +6 -0
  178. package/dist/light-plus-CZuVqSLX-CZuVqSLX.js +4 -0
  179. package/dist/linear-UL3ZZUJv-CWZvrkAD.js +277 -0
  180. package/dist/liquid-CHzkx3jT-G75tv0iE.js +14 -0
  181. package/dist/llvm-co1rIKs3-co1rIKs3.js +6 -0
  182. package/dist/log-Al8wyEFV-Al8wyEFV.js +6 -0
  183. package/dist/logo-DBa4JDzV-DBa4JDzV.js +6 -0
  184. package/dist/lua-kX5WP_P5-DxLUTRud.js +8 -0
  185. package/dist/luau-DtBSxLyz-DtBSxLyz.js +6 -0
  186. package/dist/make-CsMclxtr-CsMclxtr.js +6 -0
  187. package/dist/markdown-CrScaQ96-CrScaQ96.js +6 -0
  188. package/dist/marko-ls0Jg2j8-BHrfxEh0.js +14 -0
  189. package/dist/material-theme-D6KBX41T-D6KBX41T.js +4 -0
  190. package/dist/material-theme-darker-CkRroheE-CkRroheE.js +4 -0
  191. package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +4 -0
  192. package/dist/material-theme-ocean-ClGX14Ja-ClGX14Ja.js +4 -0
  193. package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +4 -0
  194. package/dist/matlab-BOAaUVP0-BOAaUVP0.js +6 -0
  195. package/dist/mdc-DIP5_jeM-Cff0amyo.js +15 -0
  196. package/dist/mdx-BOhZZUJ8-BOhZZUJ8.js +6 -0
  197. package/dist/mermaid-B0ixDHKN-B0ixDHKN.js +6 -0
  198. package/dist/mermaid-NA5CF7SZ-BDJrKfjz-Cq0tva8U.js +140994 -0
  199. package/dist/mermaid.core-Cpfp0NBU-DQS-fLaZ.js +14401 -0
  200. package/dist/min-dark-C7ak0t6c-C7ak0t6c.js +4 -0
  201. package/dist/min-light-CKFxVcPp-CKFxVcPp.js +4 -0
  202. package/dist/mindmap-definition-VGOIOE7T-B6ovfeib-CXlRkpn9.js +790 -0
  203. package/dist/mipsasm-CTx18fBl-CTx18fBl.js +6 -0
  204. package/dist/mojo-BD611d7o-BD611d7o.js +6 -0
  205. package/dist/monokai-C1KBYcO0-C1KBYcO0.js +4 -0
  206. package/dist/move-F-dICmj2-F-dICmj2.js +6 -0
  207. package/dist/narrat-DmhDCBs--DmhDCBs-.js +6 -0
  208. package/dist/nextflow-DmSVRGjG-DmSVRGjG.js +6 -0
  209. package/dist/nginx-COxS3qoU-CvZmIOfz.js +9 -0
  210. package/dist/night-owl-Bm2rzalh-Bm2rzalh.js +4 -0
  211. package/dist/nim-CCwXZLHG-CVhjPGL5.js +21 -0
  212. package/dist/nix-BZK5F767-BZK5F767.js +9 -0
  213. package/dist/nord-CC5OiUXg-CC5OiUXg.js +4 -0
  214. package/dist/nushell-D8j3dhT--D8j3dhT-.js +6 -0
  215. package/dist/objective-c-Itk8tzmv-Itk8tzmv.js +6 -0
  216. package/dist/objective-cpp-DGt5UKRO-DGt5UKRO.js +6 -0
  217. package/dist/ocaml-eSVK32Eg-eSVK32Eg.js +6 -0
  218. package/dist/one-dark-pro-DTA3VF0_-DTA3VF0_.js +4 -0
  219. package/dist/one-light-D9sNaUtq-D9sNaUtq.js +4 -0
  220. package/dist/openscad-Sp5uZ6f2-Sp5uZ6f2.js +6 -0
  221. package/dist/ordinal-MUacOSdK-B1MUT0BL.js +65 -0
  222. package/dist/pascal-xy8pJNns-xy8pJNns.js +6 -0
  223. package/dist/perl-NvKK8p2P-DbsmNmLT.js +17 -0
  224. package/dist/php-CK5hNnT0-DEpqLZ_n.js +19 -0
  225. package/dist/pieDiagram-ADFJNKIX-Bn24elWA-iGwy_4tX.js +166 -0
  226. package/dist/pkl-C-zSNmaA-C-zSNmaA.js +6 -0
  227. package/dist/plastic-CSTz3KZp-CSTz3KZp.js +4 -0
  228. package/dist/plsql-pVbGZfOv-pVbGZfOv.js +6 -0
  229. package/dist/po-BNfHvqmm-BNfHvqmm.js +6 -0
  230. package/dist/poimandres-C-VADXHD-C-VADXHD.js +4 -0
  231. package/dist/polar-CAZahv3u-CAZahv3u.js +6 -0
  232. package/dist/postcss-05aHdL-n-05aHdL-n.js +6 -0
  233. package/dist/powerquery-DI9HkTvs-DI9HkTvs.js +6 -0
  234. package/dist/powershell-Clc4ydu--Clc4ydu-.js +6 -0
  235. package/dist/prisma-FZjmVtSl-FZjmVtSl.js +6 -0
  236. package/dist/prolog-C5-yg4TO-C5-yg4TO.js +6 -0
  237. package/dist/proto-MmCPeFAD-MmCPeFAD.js +6 -0
  238. package/dist/pug-XOw9Q1Ho-BO4tUzTj.js +12 -0
  239. package/dist/puppet-CUJHmnxV-CUJHmnxV.js +6 -0
  240. package/dist/purescript-rUfGld-4-rUfGld-4.js +6 -0
  241. package/dist/python-BFNSHbwJ-BFNSHbwJ.js +6 -0
  242. package/dist/qml-rTNXsquU-DeTe0b4l.js +8 -0
  243. package/dist/qmldir-BInDYbpo-BInDYbpo.js +6 -0
  244. package/dist/qss-AeJTysr_-AeJTysr_.js +6 -0
  245. package/dist/quadrantDiagram-AYHSOK5B-CsbmyLll-CFP8fgtI.js +1030 -0
  246. package/dist/r-Bm0uF0U2-Bm0uF0U2.js +6 -0
  247. package/dist/racket-B83wSAja-B83wSAja.js +6 -0
  248. package/dist/raku-nEQ4ZJJ7-nEQ4ZJJ7.js +6 -0
  249. package/dist/razor-CoqPuKQU-DUBs-Qe6.js +12 -0
  250. package/dist/red-7y8PH7HH-7y8PH7HH.js +4 -0
  251. package/dist/reg-m_s_Kiip-m_s_Kiip.js +6 -0
  252. package/dist/regexp-BazyLpPg-BazyLpPg.js +6 -0
  253. package/dist/rel-BcRfyd6Q-BcRfyd6Q.js +6 -0
  254. package/dist/requirementDiagram-UZGBJVZJ--9rfbKaz-CC8EZoyz.js +854 -0
  255. package/dist/riscv-Ce8MAQLP-Ce8MAQLP.js +6 -0
  256. package/dist/rose-pine-BKc3yVeu-BKc3yVeu.js +4 -0
  257. package/dist/rose-pine-dawn-BulJcPZT-BulJcPZT.js +4 -0
  258. package/dist/rose-pine-moon-j6jiXKV8-j6jiXKV8.js +4 -0
  259. package/dist/rosmsg-Cz0w1km8-Cz0w1km8.js +6 -0
  260. package/dist/rst-AoEjemIj-Dr7TcJwd.js +36 -0
  261. package/dist/ruby-CGSl8JoB-D4hDjzwe.js +36 -0
  262. package/dist/rust-CLzF9zIN-CLzF9zIN.js +6 -0
  263. package/dist/sankeyDiagram-TZEHDZUN-Cp2id-3k-DhByp8vU.js +830 -0
  264. package/dist/sas-fpEvgATw-D9dNv8Ej.js +8 -0
  265. package/dist/sass-DxHp5rTx-DxHp5rTx.js +6 -0
  266. package/dist/scala-D4grkFkl-D4grkFkl.js +6 -0
  267. package/dist/scheme-BCRWuEm4-BCRWuEm4.js +6 -0
  268. package/dist/scss-B1FaCqwR-DbNEJJFR.js +8 -0
  269. package/dist/sdbl-B7T8abf4-B7T8abf4.js +6 -0
  270. package/dist/sequenceDiagram-WL72ISMW-Bdoz1Co7-DcFuWrLs.js +2526 -0
  271. package/dist/services/axios/useFetchAndLoad.d.ts +1 -1
  272. package/dist/shaderlab-Cr62-Wb4-D_jbKjpl.js +8 -0
  273. package/dist/shellscript-InADTalH-InADTalH.js +6 -0
  274. package/dist/shellsession-DiDJNQdy-BGvYrs9g.js +8 -0
  275. package/dist/slack-dark-i7wN4OET-i7wN4OET.js +4 -0
  276. package/dist/slack-ochin-ndHf0LoP-ndHf0LoP.js +4 -0
  277. package/dist/smalltalk-BlI1_OkM-BlI1_OkM.js +6 -0
  278. package/dist/snazzy-light-BlSJXAu4-BlSJXAu4.js +4 -0
  279. package/dist/solarized-dark-UTmkh7lw-UTmkh7lw.js +4 -0
  280. package/dist/solarized-light-BheCkDPT-BheCkDPT.js +4 -0
  281. package/dist/solidity-DUWnFhS6-DUWnFhS6.js +6 -0
  282. package/dist/soy-YPoZ1G2p-C1q7UQeu.js +10 -0
  283. package/dist/sparql-B0KWFEri-CqC-y0Su.js +8 -0
  284. package/dist/splunk-CRXR8A9s-CRXR8A9s.js +6 -0
  285. package/dist/sql-Cn_v3PB0-Cn_v3PB0.js +6 -0
  286. package/dist/ssh-config-DP-hNVbF-DP-hNVbF.js +6 -0
  287. package/dist/stata-B8c5fTjX-Bf3brRPV.js +8 -0
  288. package/dist/stateDiagram-FKZM4ZOC-BLHxjrc8-FBnBvaVW.js +268 -0
  289. package/dist/stateDiagram-v2-4FDKWEC3-CbxCwS8b-B_Pfgmu4.js +21 -0
  290. package/dist/style.css +1 -1
  291. package/dist/stylus-CyKEU1Ej-CyKEU1Ej.js +6 -0
  292. package/dist/svelte-5UasyOg7-e8KUCojE.js +14 -0
  293. package/dist/swift-9UzSvamq-9UzSvamq.js +6 -0
  294. package/dist/synthwave-84-NU3C_KFZ-NU3C_KFZ.js +4 -0
  295. package/dist/system-verilog-BCm7smPJ-BCm7smPJ.js +6 -0
  296. package/dist/systemd-C-4qm6XH-C-4qm6XH.js +6 -0
  297. package/dist/talonscript-CFF3LF_O-CvtCkGGO.js +6 -0
  298. package/dist/tasl-Cg_WBUAe-Cg_WBUAe.js +6 -0
  299. package/dist/tcl-DN7buRTF-DN7buRTF.js +6 -0
  300. package/dist/templ-peLZIM2D-DkTUdVi-.js +12 -0
  301. package/dist/terraform-DGvcn9zM-DGvcn9zM.js +6 -0
  302. package/dist/tex-DpOayVob-BjP51rYh.js +8 -0
  303. package/dist/timeline-definition-IT6M3QCI-s3Wsbz6h-DfdfMl2Q.js +805 -0
  304. package/dist/tokyo-night-DP4TmcQl-DP4TmcQl.js +4 -0
  305. package/dist/toml-DY62mUL_-DY62mUL_.js +6 -0
  306. package/dist/treemap-KMMF4GRG-D_L55G0b-CANAYd5X.js +15006 -0
  307. package/dist/ts-tags-CWmBp2js-DrKIoTCJ.js +43 -0
  308. package/dist/tsv-BtvSkaG0-BtvSkaG0.js +6 -0
  309. package/dist/tsx-B8rCNbgL-B8rCNbgL.js +6 -0
  310. package/dist/turtle-_H59FV7D-_H59FV7D.js +6 -0
  311. package/dist/twig-Cpoho6oi-CQE9XWXP.js +35 -0
  312. package/dist/typescript-RycA9KXf-RycA9KXf.js +6 -0
  313. package/dist/typespec-DWqp-kUU-DWqp-kUU.js +6 -0
  314. package/dist/typst-D_1QKWns-D_1QKWns.js +6 -0
  315. package/dist/v-BPCNiyYe-BPCNiyYe.js +6 -0
  316. package/dist/vala-uxaPR7d1-uxaPR7d1.js +6 -0
  317. package/dist/vb-D8_c5-KN-D8_c5-KN.js +6 -0
  318. package/dist/verilog-B-bybjPF-B-bybjPF.js +6 -0
  319. package/dist/vesper-BckBta1U-BckBta1U.js +4 -0
  320. package/dist/vhdl-CUlNa8ac-CUlNa8ac.js +6 -0
  321. package/dist/viml-DsfA-sWm-DsfA-sWm.js +6 -0
  322. package/dist/vitesse-black-BoGvW84i-BoGvW84i.js +4 -0
  323. package/dist/vitesse-dark-Cym-eLtO-Cym-eLtO.js +4 -0
  324. package/dist/vitesse-light-CcmG315c-CcmG315c.js +4 -0
  325. package/dist/vue-DmFKWfEU-DXvRBLDJ.js +31 -0
  326. package/dist/vue-html-BB2aI7Yc-e0S8MQFq.js +15 -0
  327. package/dist/vue-vine-CznNap4x-DAbzn77p.js +24 -0
  328. package/dist/vyper-CPQuu50u-CPQuu50u.js +6 -0
  329. package/dist/wasm-BBXxrAl7-BBXxrAl7.js +6 -0
  330. package/dist/wasm-DQxwEHae-DQxwEHae.js +7 -0
  331. package/dist/wenyan-pbVjoM9_-pbVjoM9_.js +6 -0
  332. package/dist/wgsl-DY4iK1q1-DY4iK1q1.js +6 -0
  333. package/dist/wikitext-Z-MoUasO-Z-MoUasO.js +6 -0
  334. package/dist/wit-CQMQOlTg-CQMQOlTg.js +6 -0
  335. package/dist/wolfram-Dz4KXISs-Dz4KXISs.js +6 -0
  336. package/dist/xml-C2J0sS9M-IZlib8U3.js +8 -0
  337. package/dist/xsl-CbTBIiv3-CgleMmCH.js +9 -0
  338. package/dist/xychartDiagram-PRI3JC2R-D3ejwy7u-CFsnZXTL.js +1345 -0
  339. package/dist/yaml-DaO7k5B1-DaO7k5B1.js +6 -0
  340. package/dist/zenscript-CxBjpf9c-CxBjpf9c.js +6 -0
  341. package/dist/zig-Vm0PO9wB-Vm0PO9wB.js +6 -0
  342. package/package.json +25 -42
@@ -0,0 +1,1383 @@
1
+ import { g as Qt } from "./chunk-55IACEB6-QFXfbMHG-AnxyrPT-.js";
2
+ import { d as te } from "./chunk-QN33PNHL-5bU-bM6A-vK9OZVa6.js";
3
+ import { _ as d, g as ee, s as se, b as ie, c as re, o as ne, p as ae, d as P, l as T, ab as oe, e as K, v as le, A as ce, u as he } from "./mermaid.core-Cpfp0NBU-DQS-fLaZ.js";
4
+ var Dt = function() {
5
+ var t = /* @__PURE__ */ d(function(B, r, n, y) {
6
+ for (n = n || {}, y = B.length; y--; n[B[y]] = r)
7
+ ;
8
+ return n;
9
+ }, "o"), e = [1, 2], a = [1, 3], s = [1, 4], c = [2, 4], o = [1, 9], g = [1, 11], m = [1, 16], u = [1, 17], f = [1, 18], E = [1, 19], S = [1, 33], O = [1, 20], A = [1, 21], R = [1, 22], D = [1, 23], I = [1, 24], h = [1, 26], C = [1, 27], v = [1, 28], w = [1, 29], M = [1, 30], Y = [1, 31], G = [1, 32], it = [1, 35], rt = [1, 36], nt = [1, 37], at = [1, 38], V = [1, 34], p = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], ot = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 39, 40, 41, 45, 48, 51, 52, 53, 54, 57], $t = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], St = {
10
+ trace: /* @__PURE__ */ d(function() {
11
+ }, "trace"),
12
+ yy: {},
13
+ symbols_: { error: 2, start: 3, SPACE: 4, NL: 5, SD: 6, document: 7, line: 8, statement: 9, classDefStatement: 10, styleStatement: 11, cssClassStatement: 12, idStatement: 13, DESCR: 14, "-->": 15, HIDE_EMPTY: 16, scale: 17, WIDTH: 18, COMPOSIT_STATE: 19, STRUCT_START: 20, STRUCT_STOP: 21, STATE_DESCR: 22, AS: 23, ID: 24, FORK: 25, JOIN: 26, CHOICE: 27, CONCURRENT: 28, note: 29, notePosition: 30, NOTE_TEXT: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, CLICK: 38, STRING: 39, HREF: 40, classDef: 41, CLASSDEF_ID: 42, CLASSDEF_STYLEOPTS: 43, DEFAULT: 44, style: 45, STYLE_IDS: 46, STYLEDEF_STYLEOPTS: 47, class: 48, CLASSENTITY_IDS: 49, STYLECLASS: 50, direction_tb: 51, direction_bt: 52, direction_rl: 53, direction_lr: 54, eol: 55, ";": 56, EDGE_STATE: 57, STYLE_SEPARATOR: 58, left_of: 59, right_of: 60, $accept: 0, $end: 1 },
14
+ terminals_: { 2: "error", 4: "SPACE", 5: "NL", 6: "SD", 14: "DESCR", 15: "-->", 16: "HIDE_EMPTY", 17: "scale", 18: "WIDTH", 19: "COMPOSIT_STATE", 20: "STRUCT_START", 21: "STRUCT_STOP", 22: "STATE_DESCR", 23: "AS", 24: "ID", 25: "FORK", 26: "JOIN", 27: "CHOICE", 28: "CONCURRENT", 29: "note", 31: "NOTE_TEXT", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 38: "CLICK", 39: "STRING", 40: "HREF", 41: "classDef", 42: "CLASSDEF_ID", 43: "CLASSDEF_STYLEOPTS", 44: "DEFAULT", 45: "style", 46: "STYLE_IDS", 47: "STYLEDEF_STYLEOPTS", 48: "class", 49: "CLASSENTITY_IDS", 50: "STYLECLASS", 51: "direction_tb", 52: "direction_bt", 53: "direction_rl", 54: "direction_lr", 56: ";", 57: "EDGE_STATE", 58: "STYLE_SEPARATOR", 59: "left_of", 60: "right_of" },
15
+ productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 3], [9, 4], [9, 1], [9, 2], [9, 1], [9, 4], [9, 3], [9, 6], [9, 1], [9, 1], [9, 1], [9, 1], [9, 4], [9, 4], [9, 1], [9, 2], [9, 2], [9, 1], [9, 5], [9, 5], [10, 3], [10, 3], [11, 3], [12, 3], [32, 1], [32, 1], [32, 1], [32, 1], [55, 1], [55, 1], [13, 1], [13, 1], [13, 3], [13, 3], [30, 1], [30, 1]],
16
+ performAction: /* @__PURE__ */ d(function(B, r, n, y, _, i, x) {
17
+ var l = i.length - 1;
18
+ switch (_) {
19
+ case 3:
20
+ return y.setRootDoc(i[l]), i[l];
21
+ case 4:
22
+ this.$ = [];
23
+ break;
24
+ case 5:
25
+ i[l] != "nl" && (i[l - 1].push(i[l]), this.$ = i[l - 1]);
26
+ break;
27
+ case 6:
28
+ case 7:
29
+ this.$ = i[l];
30
+ break;
31
+ case 8:
32
+ this.$ = "nl";
33
+ break;
34
+ case 12:
35
+ this.$ = i[l];
36
+ break;
37
+ case 13:
38
+ const Z = i[l - 1];
39
+ Z.description = y.trimColon(i[l]), this.$ = Z;
40
+ break;
41
+ case 14:
42
+ this.$ = { stmt: "relation", state1: i[l - 2], state2: i[l] };
43
+ break;
44
+ case 15:
45
+ const ft = y.trimColon(i[l]);
46
+ this.$ = { stmt: "relation", state1: i[l - 3], state2: i[l - 1], description: ft };
47
+ break;
48
+ case 19:
49
+ this.$ = { stmt: "state", id: i[l - 3], type: "default", description: "", doc: i[l - 1] };
50
+ break;
51
+ case 20:
52
+ var z = i[l], J = i[l - 2].trim();
53
+ if (i[l].match(":")) {
54
+ var ct = i[l].split(":");
55
+ z = ct[0], J = [J, ct[1]];
56
+ }
57
+ this.$ = { stmt: "state", id: z, type: "default", description: J };
58
+ break;
59
+ case 21:
60
+ this.$ = { stmt: "state", id: i[l - 3], type: "default", description: i[l - 5], doc: i[l - 1] };
61
+ break;
62
+ case 22:
63
+ this.$ = { stmt: "state", id: i[l], type: "fork" };
64
+ break;
65
+ case 23:
66
+ this.$ = { stmt: "state", id: i[l], type: "join" };
67
+ break;
68
+ case 24:
69
+ this.$ = { stmt: "state", id: i[l], type: "choice" };
70
+ break;
71
+ case 25:
72
+ this.$ = { stmt: "state", id: y.getDividerId(), type: "divider" };
73
+ break;
74
+ case 26:
75
+ this.$ = { stmt: "state", id: i[l - 1].trim(), note: { position: i[l - 2].trim(), text: i[l].trim() } };
76
+ break;
77
+ case 29:
78
+ this.$ = i[l].trim(), y.setAccTitle(this.$);
79
+ break;
80
+ case 30:
81
+ case 31:
82
+ this.$ = i[l].trim(), y.setAccDescription(this.$);
83
+ break;
84
+ case 32:
85
+ this.$ = {
86
+ stmt: "click",
87
+ id: i[l - 3],
88
+ url: i[l - 2],
89
+ tooltip: i[l - 1]
90
+ };
91
+ break;
92
+ case 33:
93
+ this.$ = {
94
+ stmt: "click",
95
+ id: i[l - 3],
96
+ url: i[l - 1],
97
+ tooltip: ""
98
+ };
99
+ break;
100
+ case 34:
101
+ case 35:
102
+ this.$ = { stmt: "classDef", id: i[l - 1].trim(), classes: i[l].trim() };
103
+ break;
104
+ case 36:
105
+ this.$ = { stmt: "style", id: i[l - 1].trim(), styleClass: i[l].trim() };
106
+ break;
107
+ case 37:
108
+ this.$ = { stmt: "applyClass", id: i[l - 1].trim(), styleClass: i[l].trim() };
109
+ break;
110
+ case 38:
111
+ y.setDirection("TB"), this.$ = { stmt: "dir", value: "TB" };
112
+ break;
113
+ case 39:
114
+ y.setDirection("BT"), this.$ = { stmt: "dir", value: "BT" };
115
+ break;
116
+ case 40:
117
+ y.setDirection("RL"), this.$ = { stmt: "dir", value: "RL" };
118
+ break;
119
+ case 41:
120
+ y.setDirection("LR"), this.$ = { stmt: "dir", value: "LR" };
121
+ break;
122
+ case 44:
123
+ case 45:
124
+ this.$ = { stmt: "state", id: i[l].trim(), type: "default", description: "" };
125
+ break;
126
+ case 46:
127
+ this.$ = { stmt: "state", id: i[l - 2].trim(), classes: [i[l].trim()], type: "default", description: "" };
128
+ break;
129
+ case 47:
130
+ this.$ = { stmt: "state", id: i[l - 2].trim(), classes: [i[l].trim()], type: "default", description: "" };
131
+ break;
132
+ }
133
+ }, "anonymous"),
134
+ table: [{ 3: 1, 4: e, 5: a, 6: s }, { 1: [3] }, { 3: 5, 4: e, 5: a, 6: s }, { 3: 6, 4: e, 5: a, 6: s }, t([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], c, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: o, 5: g, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: f, 22: E, 24: S, 25: O, 26: A, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: nt, 54: at, 57: V }, t(p, [2, 5]), { 9: 39, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: f, 22: E, 24: S, 25: O, 26: A, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: nt, 54: at, 57: V }, t(p, [2, 7]), t(p, [2, 8]), t(p, [2, 9]), t(p, [2, 10]), t(p, [2, 11]), t(p, [2, 12], { 14: [1, 40], 15: [1, 41] }), t(p, [2, 16]), { 18: [1, 42] }, t(p, [2, 18], { 20: [1, 43] }), { 23: [1, 44] }, t(p, [2, 22]), t(p, [2, 23]), t(p, [2, 24]), t(p, [2, 25]), { 30: 45, 31: [1, 46], 59: [1, 47], 60: [1, 48] }, t(p, [2, 28]), { 34: [1, 49] }, { 36: [1, 50] }, t(p, [2, 31]), { 13: 51, 24: S, 57: V }, { 42: [1, 52], 44: [1, 53] }, { 46: [1, 54] }, { 49: [1, 55] }, t(ot, [2, 44], { 58: [1, 56] }), t(ot, [2, 45], { 58: [1, 57] }), t(p, [2, 38]), t(p, [2, 39]), t(p, [2, 40]), t(p, [2, 41]), t(p, [2, 6]), t(p, [2, 13]), { 13: 58, 24: S, 57: V }, t(p, [2, 17]), t($t, c, { 7: 59 }), { 24: [1, 60] }, { 24: [1, 61] }, { 23: [1, 62] }, { 24: [2, 48] }, { 24: [2, 49] }, t(p, [2, 29]), t(p, [2, 30]), { 39: [1, 63], 40: [1, 64] }, { 43: [1, 65] }, { 43: [1, 66] }, { 47: [1, 67] }, { 50: [1, 68] }, { 24: [1, 69] }, { 24: [1, 70] }, t(p, [2, 14], { 14: [1, 71] }), { 4: o, 5: g, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: f, 21: [1, 72], 22: E, 24: S, 25: O, 26: A, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: nt, 54: at, 57: V }, t(p, [2, 20], { 20: [1, 73] }), { 31: [1, 74] }, { 24: [1, 75] }, { 39: [1, 76] }, { 39: [1, 77] }, t(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), t(p, [2, 37]), t(ot, [2, 46]), t(ot, [2, 47]), t(p, [2, 15]), t(p, [2, 19]), t($t, c, { 7: 78 }), t(p, [2, 26]), t(p, [2, 27]), { 5: [1, 79] }, { 5: [1, 80] }, { 4: o, 5: g, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: u, 19: f, 21: [1, 81], 22: E, 24: S, 25: O, 26: A, 27: R, 28: D, 29: I, 32: 25, 33: h, 35: C, 37: v, 38: w, 41: M, 45: Y, 48: G, 51: it, 52: rt, 53: nt, 54: at, 57: V }, t(p, [2, 32]), t(p, [2, 33]), t(p, [2, 21])],
135
+ defaultActions: { 5: [2, 1], 6: [2, 2], 47: [2, 48], 48: [2, 49] },
136
+ parseError: /* @__PURE__ */ d(function(B, r) {
137
+ if (r.recoverable)
138
+ this.trace(B);
139
+ else {
140
+ var n = new Error(B);
141
+ throw n.hash = r, n;
142
+ }
143
+ }, "parseError"),
144
+ parse: /* @__PURE__ */ d(function(B) {
145
+ var r = this, n = [0], y = [], _ = [null], i = [], x = this.table, l = "", z = 0, J = 0, ct = 2, Z = 1, ft = i.slice.call(arguments, 1), b = Object.create(this.lexer), U = { yy: {} };
146
+ for (var mt in this.yy)
147
+ Object.prototype.hasOwnProperty.call(this.yy, mt) && (U.yy[mt] = this.yy[mt]);
148
+ b.setInput(B, U.yy), U.yy.lexer = b, U.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
149
+ var _t = b.yylloc;
150
+ i.push(_t);
151
+ var Ht = b.options && b.options.ranges;
152
+ typeof U.yy.parseError == "function" ? this.parseError = U.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
153
+ function Zt(L) {
154
+ n.length = n.length - 2 * L, _.length = _.length - L, i.length = i.length - L;
155
+ }
156
+ d(Zt, "popStack");
157
+ function Ct() {
158
+ var L;
159
+ return L = y.pop() || b.lex() || Z, typeof L != "number" && (L instanceof Array && (y = L, L = y.pop()), L = r.symbols_[L] || L), L;
160
+ }
161
+ d(Ct, "lex");
162
+ for (var $, W, N, Tt, X = {}, ht, F, Lt, dt; ; ) {
163
+ if (W = n[n.length - 1], this.defaultActions[W] ? N = this.defaultActions[W] : (($ === null || typeof $ > "u") && ($ = Ct()), N = x[W] && x[W][$]), typeof N > "u" || !N.length || !N[0]) {
164
+ var bt = "";
165
+ dt = [];
166
+ for (ht in x[W])
167
+ this.terminals_[ht] && ht > ct && dt.push("'" + this.terminals_[ht] + "'");
168
+ b.showPosition ? bt = "Parse error on line " + (z + 1) + `:
169
+ ` + b.showPosition() + `
170
+ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : bt = "Parse error on line " + (z + 1) + ": Unexpected " + ($ == Z ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(bt, {
171
+ text: b.match,
172
+ token: this.terminals_[$] || $,
173
+ line: b.yylineno,
174
+ loc: _t,
175
+ expected: dt
176
+ });
177
+ }
178
+ if (N[0] instanceof Array && N.length > 1)
179
+ throw new Error("Parse Error: multiple actions possible at state: " + W + ", token: " + $);
180
+ switch (N[0]) {
181
+ case 1:
182
+ n.push($), _.push(b.yytext), i.push(b.yylloc), n.push(N[1]), $ = null, J = b.yyleng, l = b.yytext, z = b.yylineno, _t = b.yylloc;
183
+ break;
184
+ case 2:
185
+ if (F = this.productions_[N[1]][1], X.$ = _[_.length - F], X._$ = {
186
+ first_line: i[i.length - (F || 1)].first_line,
187
+ last_line: i[i.length - 1].last_line,
188
+ first_column: i[i.length - (F || 1)].first_column,
189
+ last_column: i[i.length - 1].last_column
190
+ }, Ht && (X._$.range = [
191
+ i[i.length - (F || 1)].range[0],
192
+ i[i.length - 1].range[1]
193
+ ]), Tt = this.performAction.apply(X, [
194
+ l,
195
+ J,
196
+ z,
197
+ U.yy,
198
+ N[1],
199
+ _,
200
+ i
201
+ ].concat(ft)), typeof Tt < "u")
202
+ return Tt;
203
+ F && (n = n.slice(0, -1 * F * 2), _ = _.slice(0, -1 * F), i = i.slice(0, -1 * F)), n.push(this.productions_[N[1]][0]), _.push(X.$), i.push(X._$), Lt = x[n[n.length - 2]][n[n.length - 1]], n.push(Lt);
204
+ break;
205
+ case 3:
206
+ return !0;
207
+ }
208
+ }
209
+ return !0;
210
+ }, "parse")
211
+ }, qt = /* @__PURE__ */ function() {
212
+ var B = {
213
+ EOF: 1,
214
+ parseError: /* @__PURE__ */ d(function(r, n) {
215
+ if (this.yy.parser)
216
+ this.yy.parser.parseError(r, n);
217
+ else
218
+ throw new Error(r);
219
+ }, "parseError"),
220
+ // resets the lexer, sets new input
221
+ setInput: /* @__PURE__ */ d(function(r, n) {
222
+ return this.yy = n || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
223
+ first_line: 1,
224
+ first_column: 0,
225
+ last_line: 1,
226
+ last_column: 0
227
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
228
+ }, "setInput"),
229
+ // consumes and returns one char from the input
230
+ input: /* @__PURE__ */ d(function() {
231
+ var r = this._input[0];
232
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
233
+ var n = r.match(/(?:\r\n?|\n).*/g);
234
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
235
+ }, "input"),
236
+ // unshifts one char (or a string) into the input
237
+ unput: /* @__PURE__ */ d(function(r) {
238
+ var n = r.length, y = r.split(/(?:\r\n?|\n)/g);
239
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
240
+ var _ = this.match.split(/(?:\r\n?|\n)/g);
241
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), y.length - 1 && (this.yylineno -= y.length - 1);
242
+ var i = this.yylloc.range;
243
+ return this.yylloc = {
244
+ first_line: this.yylloc.first_line,
245
+ last_line: this.yylineno + 1,
246
+ first_column: this.yylloc.first_column,
247
+ last_column: y ? (y.length === _.length ? this.yylloc.first_column : 0) + _[_.length - y.length].length - y[0].length : this.yylloc.first_column - n
248
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
249
+ }, "unput"),
250
+ // When called from action, caches matched text and appends it on next action
251
+ more: /* @__PURE__ */ d(function() {
252
+ return this._more = !0, this;
253
+ }, "more"),
254
+ // 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.
255
+ reject: /* @__PURE__ */ d(function() {
256
+ if (this.options.backtrack_lexer)
257
+ this._backtrack = !0;
258
+ else
259
+ 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).
260
+ ` + this.showPosition(), {
261
+ text: "",
262
+ token: null,
263
+ line: this.yylineno
264
+ });
265
+ return this;
266
+ }, "reject"),
267
+ // retain first n characters of the match
268
+ less: /* @__PURE__ */ d(function(r) {
269
+ this.unput(this.match.slice(r));
270
+ }, "less"),
271
+ // displays already matched input, i.e. for error messages
272
+ pastInput: /* @__PURE__ */ d(function() {
273
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
274
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
275
+ }, "pastInput"),
276
+ // displays upcoming input, i.e. for error messages
277
+ upcomingInput: /* @__PURE__ */ d(function() {
278
+ var r = this.match;
279
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
280
+ }, "upcomingInput"),
281
+ // displays the character position where the lexing error occurred, i.e. for error messages
282
+ showPosition: /* @__PURE__ */ d(function() {
283
+ var r = this.pastInput(), n = new Array(r.length + 1).join("-");
284
+ return r + this.upcomingInput() + `
285
+ ` + n + "^";
286
+ }, "showPosition"),
287
+ // test the lexed token: return FALSE when not a match, otherwise return token
288
+ test_match: /* @__PURE__ */ d(function(r, n) {
289
+ var y, _, i;
290
+ if (this.options.backtrack_lexer && (i = {
291
+ yylineno: this.yylineno,
292
+ yylloc: {
293
+ first_line: this.yylloc.first_line,
294
+ last_line: this.last_line,
295
+ first_column: this.yylloc.first_column,
296
+ last_column: this.yylloc.last_column
297
+ },
298
+ yytext: this.yytext,
299
+ match: this.match,
300
+ matches: this.matches,
301
+ matched: this.matched,
302
+ yyleng: this.yyleng,
303
+ offset: this.offset,
304
+ _more: this._more,
305
+ _input: this._input,
306
+ yy: this.yy,
307
+ conditionStack: this.conditionStack.slice(0),
308
+ done: this.done
309
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), _ = r[0].match(/(?:\r\n?|\n).*/g), _ && (this.yylineno += _.length), this.yylloc = {
310
+ first_line: this.yylloc.last_line,
311
+ last_line: this.yylineno + 1,
312
+ first_column: this.yylloc.last_column,
313
+ last_column: _ ? _[_.length - 1].length - _[_.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
314
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], y = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y)
315
+ return y;
316
+ if (this._backtrack) {
317
+ for (var x in i)
318
+ this[x] = i[x];
319
+ return !1;
320
+ }
321
+ return !1;
322
+ }, "test_match"),
323
+ // return next match in input
324
+ next: /* @__PURE__ */ d(function() {
325
+ if (this.done)
326
+ return this.EOF;
327
+ this._input || (this.done = !0);
328
+ var r, n, y, _;
329
+ this._more || (this.yytext = "", this.match = "");
330
+ for (var i = this._currentRules(), x = 0; x < i.length; x++)
331
+ if (y = this._input.match(this.rules[i[x]]), y && (!n || y[0].length > n[0].length)) {
332
+ if (n = y, _ = x, this.options.backtrack_lexer) {
333
+ if (r = this.test_match(y, i[x]), r !== !1)
334
+ return r;
335
+ if (this._backtrack) {
336
+ n = !1;
337
+ continue;
338
+ } else
339
+ return !1;
340
+ } else if (!this.options.flex)
341
+ break;
342
+ }
343
+ return n ? (r = this.test_match(n, i[_]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
344
+ ` + this.showPosition(), {
345
+ text: "",
346
+ token: null,
347
+ line: this.yylineno
348
+ });
349
+ }, "next"),
350
+ // return next match that has a token
351
+ lex: /* @__PURE__ */ d(function() {
352
+ var r = this.next();
353
+ return r || this.lex();
354
+ }, "lex"),
355
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
356
+ begin: /* @__PURE__ */ d(function(r) {
357
+ this.conditionStack.push(r);
358
+ }, "begin"),
359
+ // pop the previously active lexer condition state off the condition stack
360
+ popState: /* @__PURE__ */ d(function() {
361
+ var r = this.conditionStack.length - 1;
362
+ return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
363
+ }, "popState"),
364
+ // produce the lexer rule set which is active for the currently active lexer condition state
365
+ _currentRules: /* @__PURE__ */ d(function() {
366
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
367
+ }, "_currentRules"),
368
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
369
+ topState: /* @__PURE__ */ d(function(r) {
370
+ return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
371
+ }, "topState"),
372
+ // alias for begin(condition)
373
+ pushState: /* @__PURE__ */ d(function(r) {
374
+ this.begin(r);
375
+ }, "pushState"),
376
+ // return the number of states currently on the stack
377
+ stateStackSize: /* @__PURE__ */ d(function() {
378
+ return this.conditionStack.length;
379
+ }, "stateStackSize"),
380
+ options: { "case-insensitive": !0 },
381
+ performAction: /* @__PURE__ */ d(function(r, n, y, _) {
382
+ switch (y) {
383
+ case 0:
384
+ return 38;
385
+ case 1:
386
+ return 40;
387
+ case 2:
388
+ return 39;
389
+ case 3:
390
+ return 44;
391
+ case 4:
392
+ return 51;
393
+ case 5:
394
+ return 52;
395
+ case 6:
396
+ return 53;
397
+ case 7:
398
+ return 54;
399
+ case 8:
400
+ break;
401
+ case 9:
402
+ break;
403
+ case 10:
404
+ return 5;
405
+ case 11:
406
+ break;
407
+ case 12:
408
+ break;
409
+ case 13:
410
+ break;
411
+ case 14:
412
+ break;
413
+ case 15:
414
+ return this.pushState("SCALE"), 17;
415
+ case 16:
416
+ return 18;
417
+ case 17:
418
+ this.popState();
419
+ break;
420
+ case 18:
421
+ return this.begin("acc_title"), 33;
422
+ case 19:
423
+ return this.popState(), "acc_title_value";
424
+ case 20:
425
+ return this.begin("acc_descr"), 35;
426
+ case 21:
427
+ return this.popState(), "acc_descr_value";
428
+ case 22:
429
+ this.begin("acc_descr_multiline");
430
+ break;
431
+ case 23:
432
+ this.popState();
433
+ break;
434
+ case 24:
435
+ return "acc_descr_multiline_value";
436
+ case 25:
437
+ return this.pushState("CLASSDEF"), 41;
438
+ case 26:
439
+ return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
440
+ case 27:
441
+ return this.popState(), this.pushState("CLASSDEFID"), 42;
442
+ case 28:
443
+ return this.popState(), 43;
444
+ case 29:
445
+ return this.pushState("CLASS"), 48;
446
+ case 30:
447
+ return this.popState(), this.pushState("CLASS_STYLE"), 49;
448
+ case 31:
449
+ return this.popState(), 50;
450
+ case 32:
451
+ return this.pushState("STYLE"), 45;
452
+ case 33:
453
+ return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
454
+ case 34:
455
+ return this.popState(), 47;
456
+ case 35:
457
+ return this.pushState("SCALE"), 17;
458
+ case 36:
459
+ return 18;
460
+ case 37:
461
+ this.popState();
462
+ break;
463
+ case 38:
464
+ this.pushState("STATE");
465
+ break;
466
+ case 39:
467
+ return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
468
+ case 40:
469
+ return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
470
+ case 41:
471
+ return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
472
+ case 42:
473
+ return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
474
+ case 43:
475
+ return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
476
+ case 44:
477
+ return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
478
+ case 45:
479
+ return 51;
480
+ case 46:
481
+ return 52;
482
+ case 47:
483
+ return 53;
484
+ case 48:
485
+ return 54;
486
+ case 49:
487
+ this.pushState("STATE_STRING");
488
+ break;
489
+ case 50:
490
+ return this.pushState("STATE_ID"), "AS";
491
+ case 51:
492
+ return this.popState(), "ID";
493
+ case 52:
494
+ this.popState();
495
+ break;
496
+ case 53:
497
+ return "STATE_DESCR";
498
+ case 54:
499
+ return 19;
500
+ case 55:
501
+ this.popState();
502
+ break;
503
+ case 56:
504
+ return this.popState(), this.pushState("struct"), 20;
505
+ case 57:
506
+ break;
507
+ case 58:
508
+ return this.popState(), 21;
509
+ case 59:
510
+ break;
511
+ case 60:
512
+ return this.begin("NOTE"), 29;
513
+ case 61:
514
+ return this.popState(), this.pushState("NOTE_ID"), 59;
515
+ case 62:
516
+ return this.popState(), this.pushState("NOTE_ID"), 60;
517
+ case 63:
518
+ this.popState(), this.pushState("FLOATING_NOTE");
519
+ break;
520
+ case 64:
521
+ return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
522
+ case 65:
523
+ break;
524
+ case 66:
525
+ return "NOTE_TEXT";
526
+ case 67:
527
+ return this.popState(), "ID";
528
+ case 68:
529
+ return this.popState(), this.pushState("NOTE_TEXT"), 24;
530
+ case 69:
531
+ return this.popState(), n.yytext = n.yytext.substr(2).trim(), 31;
532
+ case 70:
533
+ return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 31;
534
+ case 71:
535
+ return 6;
536
+ case 72:
537
+ return 6;
538
+ case 73:
539
+ return 16;
540
+ case 74:
541
+ return 57;
542
+ case 75:
543
+ return 24;
544
+ case 76:
545
+ return n.yytext = n.yytext.trim(), 14;
546
+ case 77:
547
+ return 15;
548
+ case 78:
549
+ return 28;
550
+ case 79:
551
+ return 58;
552
+ case 80:
553
+ return 5;
554
+ case 81:
555
+ return "INVALID";
556
+ }
557
+ }, "anonymous"),
558
+ rules: [/^(?:click\b)/i, /^(?:href\b)/i, /^(?:"[^"]*")/i, /^(?:default\b)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:[\s]+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:classDef\s+)/i, /^(?:DEFAULT\s+)/i, /^(?:\w+\s+)/i, /^(?:[^\n]*)/i, /^(?:class\s+)/i, /^(?:(\w+)+((,\s*\w+)*))/i, /^(?:[^\n]*)/i, /^(?:style\s+)/i, /^(?:[\w,]+\s+)/i, /^(?:[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:state\s+)/i, /^(?:.*<<fork>>)/i, /^(?:.*<<join>>)/i, /^(?:.*<<choice>>)/i, /^(?:.*\[\[fork\]\])/i, /^(?:.*\[\[join\]\])/i, /^(?:.*\[\[choice\]\])/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:["])/i, /^(?:\s*as\s+)/i, /^(?:[^\n\{]*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n\s\{]+)/i, /^(?:\n)/i, /^(?:\{)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:\})/i, /^(?:[\n])/i, /^(?:note\s+)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:")/i, /^(?:\s*as\s*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n]*)/i, /^(?:\s*[^:\n\s\-]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:[\s\S]*?end note\b)/i, /^(?:stateDiagram\s+)/i, /^(?:stateDiagram-v2\s+)/i, /^(?:hide empty description\b)/i, /^(?:\[\*\])/i, /^(?:[^:\n\s\-\{]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:-->)/i, /^(?:--)/i, /^(?::::)/i, /^(?:$)/i, /^(?:.)/i],
559
+ conditions: { LINE: { rules: [12, 13], inclusive: !1 }, struct: { rules: [12, 13, 25, 29, 32, 38, 45, 46, 47, 48, 57, 58, 59, 60, 74, 75, 76, 77, 78], inclusive: !1 }, FLOATING_NOTE_ID: { rules: [67], inclusive: !1 }, FLOATING_NOTE: { rules: [64, 65, 66], inclusive: !1 }, NOTE_TEXT: { rules: [69, 70], inclusive: !1 }, NOTE_ID: { rules: [68], inclusive: !1 }, NOTE: { rules: [61, 62, 63], inclusive: !1 }, STYLEDEF_STYLEOPTS: { rules: [], inclusive: !1 }, STYLEDEF_STYLES: { rules: [34], inclusive: !1 }, STYLE_IDS: { rules: [], inclusive: !1 }, STYLE: { rules: [33], inclusive: !1 }, CLASS_STYLE: { rules: [31], inclusive: !1 }, CLASS: { rules: [30], inclusive: !1 }, CLASSDEFID: { rules: [28], inclusive: !1 }, CLASSDEF: { rules: [26, 27], inclusive: !1 }, acc_descr_multiline: { rules: [23, 24], inclusive: !1 }, acc_descr: { rules: [21], inclusive: !1 }, acc_title: { rules: [19], inclusive: !1 }, SCALE: { rules: [16, 17, 36, 37], inclusive: !1 }, ALIAS: { rules: [], inclusive: !1 }, STATE_ID: { rules: [51], inclusive: !1 }, STATE_STRING: { rules: [52, 53], inclusive: !1 }, FORK_STATE: { rules: [], inclusive: !1 }, STATE: { rules: [12, 13, 39, 40, 41, 42, 43, 44, 49, 50, 54, 55, 56], inclusive: !1 }, ID: { rules: [12, 13], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 18, 20, 22, 25, 29, 32, 35, 38, 56, 60, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81], inclusive: !0 } }
560
+ };
561
+ return B;
562
+ }();
563
+ St.lexer = qt;
564
+ function lt() {
565
+ this.yy = {};
566
+ }
567
+ return d(lt, "Parser"), lt.prototype = St, St.Parser = lt, new lt();
568
+ }();
569
+ Dt.parser = Dt;
570
+ var Ye = Dt, de = "TB", Pt = "TB", At = "dir", H = "state", q = "root", vt = "relation", ue = "classDef", pe = "style", ye = "applyClass", et = "default", Ft = "divider", Yt = "fill:none", Gt = "fill: #333", jt = "c", Mt = "text", zt = "normal", kt = "rect", Et = "rectWithTitle", ge = "stateStart", Se = "stateEnd", It = "divider", Nt = "roundedWithTitle", fe = "note", me = "noteGroup", st = "statediagram", _e = "state", Te = `${st}-${_e}`, Ut = "transition", be = "note", ke = "note-edge", Ee = `${Ut} ${ke}`, De = `${st}-${be}`, ve = "cluster", xe = `${st}-${ve}`, $e = "cluster-alt", Ce = `${st}-${$e}`, Wt = "parent", Kt = "note", Le = "state", xt = "----", Ae = `${xt}${Kt}`, Ot = `${xt}${Wt}`, Vt = /* @__PURE__ */ d((t, e = Pt) => {
571
+ if (!t.doc)
572
+ return e;
573
+ let a = e;
574
+ for (const s of t.doc)
575
+ s.stmt === "dir" && (a = s.value);
576
+ return a;
577
+ }, "getDir"), Ie = /* @__PURE__ */ d(function(t, e) {
578
+ return e.db.getClasses();
579
+ }, "getClasses"), Ne = /* @__PURE__ */ d(async function(t, e, a, s) {
580
+ T.info("REF0:"), T.info("Drawing state diagram (v2)", e);
581
+ const { securityLevel: c, state: o, layout: g } = P();
582
+ s.db.extract(s.db.getRootDocV2());
583
+ const m = s.db.getData(), u = Qt(e, c);
584
+ m.type = s.type, m.layoutAlgorithm = g, m.nodeSpacing = (o == null ? void 0 : o.nodeSpacing) || 50, m.rankSpacing = (o == null ? void 0 : o.rankSpacing) || 50, m.markers = ["barb"], m.diagramId = e, await ce(m, u);
585
+ const f = 8;
586
+ try {
587
+ (typeof s.db.getLinks == "function" ? s.db.getLinks() : /* @__PURE__ */ new Map()).forEach((E, S) => {
588
+ var O;
589
+ const A = typeof S == "string" ? S : typeof (S == null ? void 0 : S.id) == "string" ? S.id : "";
590
+ if (!A) {
591
+ T.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(S));
592
+ return;
593
+ }
594
+ const R = (O = u.node()) == null ? void 0 : O.querySelectorAll("g");
595
+ let D;
596
+ if (R == null || R.forEach((v) => {
597
+ var w;
598
+ ((w = v.textContent) == null ? void 0 : w.trim()) === A && (D = v);
599
+ }), !D) {
600
+ T.warn("⚠️ Could not find node matching text:", A);
601
+ return;
602
+ }
603
+ const I = D.parentNode;
604
+ if (!I) {
605
+ T.warn("⚠️ Node has no parent, cannot wrap:", A);
606
+ return;
607
+ }
608
+ const h = document.createElementNS("http://www.w3.org/2000/svg", "a"), C = E.url.replace(/^"+|"+$/g, "");
609
+ if (h.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", C), h.setAttribute("target", "_blank"), E.tooltip) {
610
+ const v = E.tooltip.replace(/^"+|"+$/g, "");
611
+ h.setAttribute("title", v);
612
+ }
613
+ I.replaceChild(h, D), h.appendChild(D), T.info("🔗 Wrapped node in <a> tag for:", A, E.url);
614
+ });
615
+ } catch (E) {
616
+ T.error("❌ Error injecting clickable links:", E);
617
+ }
618
+ he.insertTitle(
619
+ u,
620
+ "statediagramTitleText",
621
+ (o == null ? void 0 : o.titleTopMargin) ?? 25,
622
+ s.db.getDiagramTitle()
623
+ ), te(u, f, st, (o == null ? void 0 : o.useMaxWidth) ?? !0);
624
+ }, "draw"), Ge = {
625
+ getClasses: Ie,
626
+ draw: Ne,
627
+ getDir: Vt
628
+ }, yt = /* @__PURE__ */ new Map(), j = 0;
629
+ function gt(t = "", e = 0, a = "", s = xt) {
630
+ const c = a !== null && a.length > 0 ? `${s}${a}` : "";
631
+ return `${Le}-${t}${c}-${e}`;
632
+ }
633
+ d(gt, "stateDomId");
634
+ var Oe = /* @__PURE__ */ d((t, e, a, s, c, o, g, m) => {
635
+ T.trace("items", e), e.forEach((u) => {
636
+ switch (u.stmt) {
637
+ case H:
638
+ tt(t, u, a, s, c, o, g, m);
639
+ break;
640
+ case et:
641
+ tt(t, u, a, s, c, o, g, m);
642
+ break;
643
+ case vt:
644
+ {
645
+ tt(
646
+ t,
647
+ u.state1,
648
+ a,
649
+ s,
650
+ c,
651
+ o,
652
+ g,
653
+ m
654
+ ), tt(
655
+ t,
656
+ u.state2,
657
+ a,
658
+ s,
659
+ c,
660
+ o,
661
+ g,
662
+ m
663
+ );
664
+ const f = {
665
+ id: "edge" + j,
666
+ start: u.state1.id,
667
+ end: u.state2.id,
668
+ arrowhead: "normal",
669
+ arrowTypeEnd: "arrow_barb",
670
+ style: Yt,
671
+ labelStyle: "",
672
+ label: K.sanitizeText(u.description ?? "", P()),
673
+ arrowheadStyle: Gt,
674
+ labelpos: jt,
675
+ labelType: Mt,
676
+ thickness: zt,
677
+ classes: Ut,
678
+ look: g
679
+ };
680
+ c.push(f), j++;
681
+ }
682
+ break;
683
+ }
684
+ });
685
+ }, "setupDoc"), Rt = /* @__PURE__ */ d((t, e = Pt) => {
686
+ let a = e;
687
+ if (t.doc)
688
+ for (const s of t.doc)
689
+ s.stmt === "dir" && (a = s.value);
690
+ return a;
691
+ }, "getDir");
692
+ function Q(t, e, a) {
693
+ if (!e.id || e.id === "</join></fork>" || e.id === "</choice>")
694
+ return;
695
+ e.cssClasses && (Array.isArray(e.cssCompiledStyles) || (e.cssCompiledStyles = []), e.cssClasses.split(" ").forEach((c) => {
696
+ const o = a.get(c);
697
+ o && (e.cssCompiledStyles = [...e.cssCompiledStyles ?? [], ...o.styles]);
698
+ }));
699
+ const s = t.find((c) => c.id === e.id);
700
+ s ? Object.assign(s, e) : t.push(e);
701
+ }
702
+ d(Q, "insertOrUpdateNode");
703
+ function Jt(t) {
704
+ var e;
705
+ return ((e = t == null ? void 0 : t.classes) == null ? void 0 : e.join(" ")) ?? "";
706
+ }
707
+ d(Jt, "getClassesFromDbInfo");
708
+ function Xt(t) {
709
+ return (t == null ? void 0 : t.styles) ?? [];
710
+ }
711
+ d(Xt, "getStylesFromDbInfo");
712
+ var tt = /* @__PURE__ */ d((t, e, a, s, c, o, g, m) => {
713
+ var u, f, E;
714
+ const S = e.id, O = a.get(S), A = Jt(O), R = Xt(O), D = P();
715
+ if (T.info("dataFetcher parsedItem", e, O, R), S !== "root") {
716
+ let I = kt;
717
+ e.start === !0 ? I = ge : e.start === !1 && (I = Se), e.type !== et && (I = e.type), yt.get(S) || yt.set(S, {
718
+ id: S,
719
+ shape: I,
720
+ description: K.sanitizeText(S, D),
721
+ cssClasses: `${A} ${Te}`,
722
+ cssStyles: R
723
+ });
724
+ const h = yt.get(S);
725
+ e.description && (Array.isArray(h.description) ? (h.shape = Et, h.description.push(e.description)) : (u = h.description) != null && u.length && h.description.length > 0 ? (h.shape = Et, h.description === S ? h.description = [e.description] : h.description = [h.description, e.description]) : (h.shape = kt, h.description = e.description), h.description = K.sanitizeTextOrArray(h.description, D)), ((f = h.description) == null ? void 0 : f.length) === 1 && h.shape === Et && (h.type === "group" ? h.shape = Nt : h.shape = kt), !h.type && e.doc && (T.info("Setting cluster for XCX", S, Rt(e)), h.type = "group", h.isGroup = !0, h.dir = Rt(e), h.shape = e.type === Ft ? It : Nt, h.cssClasses = `${h.cssClasses} ${xe} ${o ? Ce : ""}`);
726
+ const C = {
727
+ labelStyle: "",
728
+ shape: h.shape,
729
+ label: h.description,
730
+ cssClasses: h.cssClasses,
731
+ cssCompiledStyles: [],
732
+ cssStyles: h.cssStyles,
733
+ id: S,
734
+ dir: h.dir,
735
+ domId: gt(S, j),
736
+ type: h.type,
737
+ isGroup: h.type === "group",
738
+ padding: 8,
739
+ rx: 10,
740
+ ry: 10,
741
+ look: g
742
+ };
743
+ if (C.shape === It && (C.label = ""), t && t.id !== "root" && (T.trace("Setting node ", S, " to be child of its parent ", t.id), C.parentId = t.id), C.centerLabel = !0, e.note) {
744
+ const v = {
745
+ labelStyle: "",
746
+ shape: fe,
747
+ label: e.note.text,
748
+ cssClasses: De,
749
+ // useHtmlLabels: false,
750
+ cssStyles: [],
751
+ cssCompiledStyles: [],
752
+ id: S + Ae + "-" + j,
753
+ domId: gt(S, j, Kt),
754
+ type: h.type,
755
+ isGroup: h.type === "group",
756
+ padding: (E = D.flowchart) == null ? void 0 : E.padding,
757
+ look: g,
758
+ position: e.note.position
759
+ }, w = S + Ot, M = {
760
+ labelStyle: "",
761
+ shape: me,
762
+ label: e.note.text,
763
+ cssClasses: h.cssClasses,
764
+ cssStyles: [],
765
+ id: S + Ot,
766
+ domId: gt(S, j, Wt),
767
+ type: "group",
768
+ isGroup: !0,
769
+ padding: 16,
770
+ //getConfig().flowchart.padding
771
+ look: g,
772
+ position: e.note.position
773
+ };
774
+ j++, M.id = w, v.parentId = w, Q(s, M, m), Q(s, v, m), Q(s, C, m);
775
+ let Y = S, G = v.id;
776
+ e.note.position === "left of" && (Y = v.id, G = S), c.push({
777
+ id: Y + "-" + G,
778
+ start: Y,
779
+ end: G,
780
+ arrowhead: "none",
781
+ arrowTypeEnd: "",
782
+ style: Yt,
783
+ labelStyle: "",
784
+ classes: Ee,
785
+ arrowheadStyle: Gt,
786
+ labelpos: jt,
787
+ labelType: Mt,
788
+ thickness: zt,
789
+ look: g
790
+ });
791
+ } else
792
+ Q(s, C, m);
793
+ }
794
+ e.doc && (T.trace("Adding nodes children "), Oe(e, e.doc, a, s, c, !o, g, m));
795
+ }, "dataFetcher"), Re = /* @__PURE__ */ d(() => {
796
+ yt.clear(), j = 0;
797
+ }, "reset"), k = {
798
+ START_NODE: "[*]",
799
+ START_TYPE: "start",
800
+ END_NODE: "[*]",
801
+ END_TYPE: "end",
802
+ COLOR_KEYWORD: "color",
803
+ FILL_KEYWORD: "fill",
804
+ BG_FILL: "bgFill",
805
+ STYLECLASS_SEP: ","
806
+ }, wt = /* @__PURE__ */ d(() => /* @__PURE__ */ new Map(), "newClassesList"), Bt = /* @__PURE__ */ d(() => ({
807
+ relations: [],
808
+ states: /* @__PURE__ */ new Map(),
809
+ documents: {}
810
+ }), "newDoc"), ut = /* @__PURE__ */ d((t) => JSON.parse(JSON.stringify(t)), "clone"), pt, je = (pt = class {
811
+ constructor(t) {
812
+ this.version = t, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = wt(), this.documents = { root: Bt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = ee, this.setAccTitle = se, this.getAccDescription = ie, this.setAccDescription = re, this.setDiagramTitle = ne, this.getDiagramTitle = ae, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
813
+ }
814
+ /**
815
+ * Convert all of the statements (stmts) that were parsed into states and relationships.
816
+ * This is done because a state diagram may have nested sections,
817
+ * where each section is a 'document' and has its own set of statements.
818
+ * Ex: the section within a fork has its own statements, and incoming and outgoing statements
819
+ * refer to the fork as a whole (document).
820
+ * See the parser grammar: the definition of a document is a document then a 'line', where a line can be a statement.
821
+ * This will push the statement into the list of statements for the current document.
822
+ */
823
+ extract(t) {
824
+ this.clear(!0);
825
+ for (const s of Array.isArray(t) ? t : t.doc)
826
+ switch (s.stmt) {
827
+ case H:
828
+ this.addState(s.id.trim(), s.type, s.doc, s.description, s.note);
829
+ break;
830
+ case vt:
831
+ this.addRelation(s.state1, s.state2, s.description);
832
+ break;
833
+ case ue:
834
+ this.addStyleClass(s.id.trim(), s.classes);
835
+ break;
836
+ case pe:
837
+ this.handleStyleDef(s);
838
+ break;
839
+ case ye:
840
+ this.setCssClass(s.id.trim(), s.styleClass);
841
+ break;
842
+ case "click":
843
+ this.addLink(s.id, s.url, s.tooltip);
844
+ break;
845
+ }
846
+ const e = this.getStates(), a = P();
847
+ Re(), tt(
848
+ void 0,
849
+ this.getRootDocV2(),
850
+ e,
851
+ this.nodes,
852
+ this.edges,
853
+ !0,
854
+ a.look,
855
+ this.classes
856
+ );
857
+ for (const s of this.nodes)
858
+ if (Array.isArray(s.label)) {
859
+ if (s.description = s.label.slice(1), s.isGroup && s.description.length > 0)
860
+ throw new Error(
861
+ `Group nodes can only have label. Remove the additional description for node [${s.id}]`
862
+ );
863
+ s.label = s.label[0];
864
+ }
865
+ }
866
+ handleStyleDef(t) {
867
+ const e = t.id.trim().split(","), a = t.styleClass.split(",");
868
+ for (const s of e) {
869
+ let c = this.getState(s);
870
+ if (!c) {
871
+ const o = s.trim();
872
+ this.addState(o), c = this.getState(o);
873
+ }
874
+ c && (c.styles = a.map((o) => {
875
+ var g;
876
+ return (g = o.replace(/;/g, "")) == null ? void 0 : g.trim();
877
+ }));
878
+ }
879
+ }
880
+ setRootDoc(t) {
881
+ T.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2());
882
+ }
883
+ docTranslator(t, e, a) {
884
+ if (e.stmt === vt) {
885
+ this.docTranslator(t, e.state1, !0), this.docTranslator(t, e.state2, !1);
886
+ return;
887
+ }
888
+ if (e.stmt === H && (e.id === k.START_NODE ? (e.id = t.id + (a ? "_start" : "_end"), e.start = a) : e.id = e.id.trim()), e.stmt !== q && e.stmt !== H || !e.doc)
889
+ return;
890
+ const s = [];
891
+ let c = [];
892
+ for (const o of e.doc)
893
+ if (o.type === Ft) {
894
+ const g = ut(o);
895
+ g.doc = ut(c), s.push(g), c = [];
896
+ } else
897
+ c.push(o);
898
+ if (s.length > 0 && c.length > 0) {
899
+ const o = {
900
+ stmt: H,
901
+ id: oe(),
902
+ type: "divider",
903
+ doc: ut(c)
904
+ };
905
+ s.push(ut(o)), e.doc = s;
906
+ }
907
+ e.doc.forEach((o) => this.docTranslator(e, o, !0));
908
+ }
909
+ getRootDocV2() {
910
+ return this.docTranslator(
911
+ { id: q, stmt: q },
912
+ { id: q, stmt: q, doc: this.rootDoc },
913
+ !0
914
+ ), { id: q, doc: this.rootDoc };
915
+ }
916
+ /**
917
+ * Function called by parser when a node definition has been found.
918
+ *
919
+ * @param descr - description for the state. Can be a string or a list or strings
920
+ * @param classes - class styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 class, convert it to an array of that 1 class.
921
+ * @param styles - styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 style, convert it to an array of that 1 style.
922
+ * @param textStyles - text styles to apply to this state. Can be a string (1 text test) or an array of text styles. If it's just 1 text style, convert it to an array of that 1 text style.
923
+ */
924
+ addState(t, e = et, a = void 0, s = void 0, c = void 0, o = void 0, g = void 0, m = void 0) {
925
+ const u = t == null ? void 0 : t.trim();
926
+ if (!this.currentDocument.states.has(u))
927
+ T.info("Adding state ", u, s), this.currentDocument.states.set(u, {
928
+ stmt: H,
929
+ id: u,
930
+ descriptions: [],
931
+ type: e,
932
+ doc: a,
933
+ note: c,
934
+ classes: [],
935
+ styles: [],
936
+ textStyles: []
937
+ });
938
+ else {
939
+ const f = this.currentDocument.states.get(u);
940
+ if (!f)
941
+ throw new Error(`State not found: ${u}`);
942
+ f.doc || (f.doc = a), f.type || (f.type = e);
943
+ }
944
+ if (s && (T.info("Setting state description", u, s), (Array.isArray(s) ? s : [s]).forEach((f) => this.addDescription(u, f.trim()))), c) {
945
+ const f = this.currentDocument.states.get(u);
946
+ if (!f)
947
+ throw new Error(`State not found: ${u}`);
948
+ f.note = c, f.note.text = K.sanitizeText(f.note.text, P());
949
+ }
950
+ o && (T.info("Setting state classes", u, o), (Array.isArray(o) ? o : [o]).forEach((f) => this.setCssClass(u, f.trim()))), g && (T.info("Setting state styles", u, g), (Array.isArray(g) ? g : [g]).forEach((f) => this.setStyle(u, f.trim()))), m && (T.info("Setting state styles", u, g), (Array.isArray(m) ? m : [m]).forEach((f) => this.setTextStyle(u, f.trim())));
951
+ }
952
+ clear(t) {
953
+ this.nodes = [], this.edges = [], this.documents = { root: Bt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = wt(), t || (this.links = /* @__PURE__ */ new Map(), le());
954
+ }
955
+ getState(t) {
956
+ return this.currentDocument.states.get(t);
957
+ }
958
+ getStates() {
959
+ return this.currentDocument.states;
960
+ }
961
+ logDocuments() {
962
+ T.info("Documents = ", this.documents);
963
+ }
964
+ getRelations() {
965
+ return this.currentDocument.relations;
966
+ }
967
+ /**
968
+ * Adds a clickable link to a state.
969
+ */
970
+ addLink(t, e, a) {
971
+ this.links.set(t, { url: e, tooltip: a }), T.warn("Adding link", t, e, a);
972
+ }
973
+ /**
974
+ * Get all registered links.
975
+ */
976
+ getLinks() {
977
+ return this.links;
978
+ }
979
+ /**
980
+ * If the id is a start node ( [*] ), then return a new id constructed from
981
+ * the start node name and the current start node count.
982
+ * else return the given id
983
+ */
984
+ startIdIfNeeded(t = "") {
985
+ return t === k.START_NODE ? (this.startEndCount++, `${k.START_TYPE}${this.startEndCount}`) : t;
986
+ }
987
+ /**
988
+ * If the id is a start node ( [*] ), then return the start type ('start')
989
+ * else return the given type
990
+ */
991
+ startTypeIfNeeded(t = "", e = et) {
992
+ return t === k.START_NODE ? k.START_TYPE : e;
993
+ }
994
+ /**
995
+ * If the id is an end node ( [*] ), then return a new id constructed from
996
+ * the end node name and the current start_end node count.
997
+ * else return the given id
998
+ */
999
+ endIdIfNeeded(t = "") {
1000
+ return t === k.END_NODE ? (this.startEndCount++, `${k.END_TYPE}${this.startEndCount}`) : t;
1001
+ }
1002
+ /**
1003
+ * If the id is an end node ( [*] ), then return the end type
1004
+ * else return the given type
1005
+ *
1006
+ */
1007
+ endTypeIfNeeded(t = "", e = et) {
1008
+ return t === k.END_NODE ? k.END_TYPE : e;
1009
+ }
1010
+ addRelationObjs(t, e, a = "") {
1011
+ const s = this.startIdIfNeeded(t.id.trim()), c = this.startTypeIfNeeded(t.id.trim(), t.type), o = this.startIdIfNeeded(e.id.trim()), g = this.startTypeIfNeeded(e.id.trim(), e.type);
1012
+ this.addState(
1013
+ s,
1014
+ c,
1015
+ t.doc,
1016
+ t.description,
1017
+ t.note,
1018
+ t.classes,
1019
+ t.styles,
1020
+ t.textStyles
1021
+ ), this.addState(
1022
+ o,
1023
+ g,
1024
+ e.doc,
1025
+ e.description,
1026
+ e.note,
1027
+ e.classes,
1028
+ e.styles,
1029
+ e.textStyles
1030
+ ), this.currentDocument.relations.push({
1031
+ id1: s,
1032
+ id2: o,
1033
+ relationTitle: K.sanitizeText(a, P())
1034
+ });
1035
+ }
1036
+ /**
1037
+ * Add a relation between two items. The items may be full objects or just the string id of a state.
1038
+ */
1039
+ addRelation(t, e, a) {
1040
+ if (typeof t == "object" && typeof e == "object")
1041
+ this.addRelationObjs(t, e, a);
1042
+ else if (typeof t == "string" && typeof e == "string") {
1043
+ const s = this.startIdIfNeeded(t.trim()), c = this.startTypeIfNeeded(t), o = this.endIdIfNeeded(e.trim()), g = this.endTypeIfNeeded(e);
1044
+ this.addState(s, c), this.addState(o, g), this.currentDocument.relations.push({
1045
+ id1: s,
1046
+ id2: o,
1047
+ relationTitle: a ? K.sanitizeText(a, P()) : void 0
1048
+ });
1049
+ }
1050
+ }
1051
+ addDescription(t, e) {
1052
+ var a;
1053
+ const s = this.currentDocument.states.get(t), c = e.startsWith(":") ? e.replace(":", "").trim() : e;
1054
+ (a = s == null ? void 0 : s.descriptions) == null || a.push(K.sanitizeText(c, P()));
1055
+ }
1056
+ cleanupLabel(t) {
1057
+ return t.startsWith(":") ? t.slice(2).trim() : t.trim();
1058
+ }
1059
+ getDividerId() {
1060
+ return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
1061
+ }
1062
+ /**
1063
+ * Called when the parser comes across a (style) class definition
1064
+ * @example classDef my-style fill:#f96;
1065
+ *
1066
+ * @param id - the id of this (style) class
1067
+ * @param styleAttributes - the string with 1 or more style attributes (each separated by a comma)
1068
+ */
1069
+ addStyleClass(t, e = "") {
1070
+ this.classes.has(t) || this.classes.set(t, { id: t, styles: [], textStyles: [] });
1071
+ const a = this.classes.get(t);
1072
+ e && a && e.split(k.STYLECLASS_SEP).forEach((s) => {
1073
+ const c = s.replace(/([^;]*);/, "$1").trim();
1074
+ if (RegExp(k.COLOR_KEYWORD).exec(s)) {
1075
+ const o = c.replace(k.FILL_KEYWORD, k.BG_FILL).replace(k.COLOR_KEYWORD, k.FILL_KEYWORD);
1076
+ a.textStyles.push(o);
1077
+ }
1078
+ a.styles.push(c);
1079
+ });
1080
+ }
1081
+ getClasses() {
1082
+ return this.classes;
1083
+ }
1084
+ /**
1085
+ * Add a (style) class or css class to a state with the given id.
1086
+ * If the state isn't already in the list of known states, add it.
1087
+ * Might be called by parser when a style class or CSS class should be applied to a state
1088
+ *
1089
+ * @param itemIds - The id or a list of ids of the item(s) to apply the css class to
1090
+ * @param cssClassName - CSS class name
1091
+ */
1092
+ setCssClass(t, e) {
1093
+ t.split(",").forEach((a) => {
1094
+ var s;
1095
+ let c = this.getState(a);
1096
+ if (!c) {
1097
+ const o = a.trim();
1098
+ this.addState(o), c = this.getState(o);
1099
+ }
1100
+ (s = c == null ? void 0 : c.classes) == null || s.push(e);
1101
+ });
1102
+ }
1103
+ /**
1104
+ * Add a style to a state with the given id.
1105
+ * @example style stateId fill:#f9f,stroke:#333,stroke-width:4px
1106
+ * where 'style' is the keyword
1107
+ * stateId is the id of a state
1108
+ * the rest of the string is the styleText (all of the attributes to be applied to the state)
1109
+ *
1110
+ * @param itemId - The id of item to apply the style to
1111
+ * @param styleText - the text of the attributes for the style
1112
+ */
1113
+ setStyle(t, e) {
1114
+ var a, s;
1115
+ (s = (a = this.getState(t)) == null ? void 0 : a.styles) == null || s.push(e);
1116
+ }
1117
+ /**
1118
+ * Add a text style to a state with the given id
1119
+ *
1120
+ * @param itemId - The id of item to apply the css class to
1121
+ * @param cssClassName - CSS class name
1122
+ */
1123
+ setTextStyle(t, e) {
1124
+ var a, s;
1125
+ (s = (a = this.getState(t)) == null ? void 0 : a.textStyles) == null || s.push(e);
1126
+ }
1127
+ /**
1128
+ * Finds the direction statement in the root document.
1129
+ * @returns the direction statement if present
1130
+ */
1131
+ getDirectionStatement() {
1132
+ return this.rootDoc.find((t) => t.stmt === At);
1133
+ }
1134
+ getDirection() {
1135
+ var t;
1136
+ return ((t = this.getDirectionStatement()) == null ? void 0 : t.value) ?? de;
1137
+ }
1138
+ setDirection(t) {
1139
+ const e = this.getDirectionStatement();
1140
+ e ? e.value = t : this.rootDoc.unshift({ stmt: At, value: t });
1141
+ }
1142
+ trimColon(t) {
1143
+ return t.startsWith(":") ? t.slice(1).trim() : t.trim();
1144
+ }
1145
+ getData() {
1146
+ const t = P();
1147
+ return {
1148
+ nodes: this.nodes,
1149
+ edges: this.edges,
1150
+ other: {},
1151
+ config: t,
1152
+ direction: Vt(this.getRootDocV2())
1153
+ };
1154
+ }
1155
+ getConfig() {
1156
+ return P().state;
1157
+ }
1158
+ }, d(pt, "StateDB"), pt.relationType = {
1159
+ AGGREGATION: 0,
1160
+ EXTENSION: 1,
1161
+ COMPOSITION: 2,
1162
+ DEPENDENCY: 3
1163
+ }, pt), we = /* @__PURE__ */ d((t) => `
1164
+ defs #statediagram-barbEnd {
1165
+ fill: ${t.transitionColor};
1166
+ stroke: ${t.transitionColor};
1167
+ }
1168
+ g.stateGroup text {
1169
+ fill: ${t.nodeBorder};
1170
+ stroke: none;
1171
+ font-size: 10px;
1172
+ }
1173
+ g.stateGroup text {
1174
+ fill: ${t.textColor};
1175
+ stroke: none;
1176
+ font-size: 10px;
1177
+
1178
+ }
1179
+ g.stateGroup .state-title {
1180
+ font-weight: bolder;
1181
+ fill: ${t.stateLabelColor};
1182
+ }
1183
+
1184
+ g.stateGroup rect {
1185
+ fill: ${t.mainBkg};
1186
+ stroke: ${t.nodeBorder};
1187
+ }
1188
+
1189
+ g.stateGroup line {
1190
+ stroke: ${t.lineColor};
1191
+ stroke-width: 1;
1192
+ }
1193
+
1194
+ .transition {
1195
+ stroke: ${t.transitionColor};
1196
+ stroke-width: 1;
1197
+ fill: none;
1198
+ }
1199
+
1200
+ .stateGroup .composit {
1201
+ fill: ${t.background};
1202
+ border-bottom: 1px
1203
+ }
1204
+
1205
+ .stateGroup .alt-composit {
1206
+ fill: #e0e0e0;
1207
+ border-bottom: 1px
1208
+ }
1209
+
1210
+ .state-note {
1211
+ stroke: ${t.noteBorderColor};
1212
+ fill: ${t.noteBkgColor};
1213
+
1214
+ text {
1215
+ fill: ${t.noteTextColor};
1216
+ stroke: none;
1217
+ font-size: 10px;
1218
+ }
1219
+ }
1220
+
1221
+ .stateLabel .box {
1222
+ stroke: none;
1223
+ stroke-width: 0;
1224
+ fill: ${t.mainBkg};
1225
+ opacity: 0.5;
1226
+ }
1227
+
1228
+ .edgeLabel .label rect {
1229
+ fill: ${t.labelBackgroundColor};
1230
+ opacity: 0.5;
1231
+ }
1232
+ .edgeLabel {
1233
+ background-color: ${t.edgeLabelBackground};
1234
+ p {
1235
+ background-color: ${t.edgeLabelBackground};
1236
+ }
1237
+ rect {
1238
+ opacity: 0.5;
1239
+ background-color: ${t.edgeLabelBackground};
1240
+ fill: ${t.edgeLabelBackground};
1241
+ }
1242
+ text-align: center;
1243
+ }
1244
+ .edgeLabel .label text {
1245
+ fill: ${t.transitionLabelColor || t.tertiaryTextColor};
1246
+ }
1247
+ .label div .edgeLabel {
1248
+ color: ${t.transitionLabelColor || t.tertiaryTextColor};
1249
+ }
1250
+
1251
+ .stateLabel text {
1252
+ fill: ${t.stateLabelColor};
1253
+ font-size: 10px;
1254
+ font-weight: bold;
1255
+ }
1256
+
1257
+ .node circle.state-start {
1258
+ fill: ${t.specialStateColor};
1259
+ stroke: ${t.specialStateColor};
1260
+ }
1261
+
1262
+ .node .fork-join {
1263
+ fill: ${t.specialStateColor};
1264
+ stroke: ${t.specialStateColor};
1265
+ }
1266
+
1267
+ .node circle.state-end {
1268
+ fill: ${t.innerEndBackground};
1269
+ stroke: ${t.background};
1270
+ stroke-width: 1.5
1271
+ }
1272
+ .end-state-inner {
1273
+ fill: ${t.compositeBackground || t.background};
1274
+ // stroke: ${t.background};
1275
+ stroke-width: 1.5
1276
+ }
1277
+
1278
+ .node rect {
1279
+ fill: ${t.stateBkg || t.mainBkg};
1280
+ stroke: ${t.stateBorder || t.nodeBorder};
1281
+ stroke-width: 1px;
1282
+ }
1283
+ .node polygon {
1284
+ fill: ${t.mainBkg};
1285
+ stroke: ${t.stateBorder || t.nodeBorder};;
1286
+ stroke-width: 1px;
1287
+ }
1288
+ #statediagram-barbEnd {
1289
+ fill: ${t.lineColor};
1290
+ }
1291
+
1292
+ .statediagram-cluster rect {
1293
+ fill: ${t.compositeTitleBackground};
1294
+ stroke: ${t.stateBorder || t.nodeBorder};
1295
+ stroke-width: 1px;
1296
+ }
1297
+
1298
+ .cluster-label, .nodeLabel {
1299
+ color: ${t.stateLabelColor};
1300
+ // line-height: 1;
1301
+ }
1302
+
1303
+ .statediagram-cluster rect.outer {
1304
+ rx: 5px;
1305
+ ry: 5px;
1306
+ }
1307
+ .statediagram-state .divider {
1308
+ stroke: ${t.stateBorder || t.nodeBorder};
1309
+ }
1310
+
1311
+ .statediagram-state .title-state {
1312
+ rx: 5px;
1313
+ ry: 5px;
1314
+ }
1315
+ .statediagram-cluster.statediagram-cluster .inner {
1316
+ fill: ${t.compositeBackground || t.background};
1317
+ }
1318
+ .statediagram-cluster.statediagram-cluster-alt .inner {
1319
+ fill: ${t.altBackground ? t.altBackground : "#efefef"};
1320
+ }
1321
+
1322
+ .statediagram-cluster .inner {
1323
+ rx:0;
1324
+ ry:0;
1325
+ }
1326
+
1327
+ .statediagram-state rect.basic {
1328
+ rx: 5px;
1329
+ ry: 5px;
1330
+ }
1331
+ .statediagram-state rect.divider {
1332
+ stroke-dasharray: 10,10;
1333
+ fill: ${t.altBackground ? t.altBackground : "#efefef"};
1334
+ }
1335
+
1336
+ .note-edge {
1337
+ stroke-dasharray: 5;
1338
+ }
1339
+
1340
+ .statediagram-note rect {
1341
+ fill: ${t.noteBkgColor};
1342
+ stroke: ${t.noteBorderColor};
1343
+ stroke-width: 1px;
1344
+ rx: 0;
1345
+ ry: 0;
1346
+ }
1347
+ .statediagram-note rect {
1348
+ fill: ${t.noteBkgColor};
1349
+ stroke: ${t.noteBorderColor};
1350
+ stroke-width: 1px;
1351
+ rx: 0;
1352
+ ry: 0;
1353
+ }
1354
+
1355
+ .statediagram-note text {
1356
+ fill: ${t.noteTextColor};
1357
+ }
1358
+
1359
+ .statediagram-note .nodeLabel {
1360
+ color: ${t.noteTextColor};
1361
+ }
1362
+ .statediagram .edgeLabel {
1363
+ color: red; // ${t.noteTextColor};
1364
+ }
1365
+
1366
+ #dependencyStart, #dependencyEnd {
1367
+ fill: ${t.lineColor};
1368
+ stroke: ${t.lineColor};
1369
+ stroke-width: 1;
1370
+ }
1371
+
1372
+ .statediagramTitleText {
1373
+ text-anchor: middle;
1374
+ font-size: 18px;
1375
+ fill: ${t.textColor};
1376
+ }
1377
+ `, "getStyles"), Me = we;
1378
+ export {
1379
+ Ye as B,
1380
+ je as M,
1381
+ Me as U,
1382
+ Ge as V
1383
+ };