@jackuait/blok 0.9.0 → 0.10.0-beta.10

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 (492) hide show
  1. package/codemod/migrate-editorjs-to-blok.js +50 -2
  2. package/codemod/test.js +39 -6
  3. package/dist/blok.mjs +3 -3
  4. package/dist/chunks/_basePickBy-DISiGhsr.mjs +410 -0
  5. package/dist/chunks/_baseUniq-gAuHRtRF.mjs +1045 -0
  6. package/dist/chunks/_getTag-Aj56Wgor.mjs +26 -0
  7. package/dist/chunks/arc-D-pL2Ftf.mjs +80 -0
  8. package/dist/chunks/architecture-YZFGNWBL-CuqTb_ae.mjs +3 -0
  9. package/dist/chunks/architectureDiagram-Q4EWVU46-DS7mqjL2.mjs +4066 -0
  10. package/dist/chunks/array-BsrkCVSZ.mjs +6 -0
  11. package/dist/chunks/blockDiagram-DXYQGD6D-BTtcn4NG.mjs +3259 -0
  12. package/dist/chunks/{blok-RJ3hyzDH.mjs → blok-Bg3-zpSu.mjs} +2192 -2156
  13. package/dist/chunks/c-C6JXJf5K.mjs +5 -0
  14. package/dist/chunks/c4Diagram-AHTNJAMY-Y4Dcwcoo.mjs +2956 -0
  15. package/dist/chunks/ccount-C9Y7nqDe.mjs +10 -0
  16. package/dist/chunks/channel-Cln-eWE0.mjs +5 -0
  17. package/dist/chunks/chunk-2KRD3SAO-DkM7qh-k.mjs +20 -0
  18. package/dist/chunks/chunk-336JU56O-B17AtzlK.mjs +49 -0
  19. package/dist/chunks/chunk-426QAEUC-D6UAVUog.mjs +13 -0
  20. package/dist/chunks/chunk-4BX2VUAB-CgIkjF7Z.mjs +19 -0
  21. package/dist/chunks/chunk-4TB4RGXK-BUP4eON3.mjs +3250 -0
  22. package/dist/chunks/chunk-55IACEB6-zZ-IgaSt.mjs +8 -0
  23. package/dist/chunks/chunk-5FUZZQ4R-DsZnJYxM.mjs +3786 -0
  24. package/dist/chunks/chunk-5PVQY5BW-CORl9dnu.mjs +1692 -0
  25. package/dist/chunks/chunk-67CJDMHE-m0UKdcSH.mjs +20 -0
  26. package/dist/chunks/chunk-7N4EOEYR-DKNajFZd.mjs +29 -0
  27. package/dist/chunks/chunk-AA7GKIK3-BeLhNzKa.mjs +24 -0
  28. package/dist/chunks/chunk-BSJP7CBP-CJExmx8a.mjs +83 -0
  29. package/dist/chunks/chunk-CIAEETIT-CTikoJ19.mjs +20 -0
  30. package/dist/chunks/chunk-D6kmoKXy.mjs +20 -0
  31. package/dist/chunks/chunk-EDXVE4YY-DjInnnwb.mjs +26 -0
  32. package/dist/chunks/chunk-ENJZ2VHE-CIl5FRDA.mjs +566 -0
  33. package/dist/chunks/chunk-FMBD7UC4-DjV0W7UE.mjs +5 -0
  34. package/dist/chunks/chunk-FOC6F5B3-LmHCCWYY.mjs +20 -0
  35. package/dist/chunks/chunk-ICPOFSXX-BHZIN46A.mjs +3290 -0
  36. package/dist/chunks/chunk-K5T4RW27-BPZ6fFnW.mjs +16370 -0
  37. package/dist/chunks/chunk-KGLVRYIC-S1OQdW76.mjs +20 -0
  38. package/dist/chunks/chunk-LIHQZDEY-CjtyJlI6.mjs +55 -0
  39. package/dist/chunks/chunk-ORNJ4GCN-CdO0hAge.mjs +25 -0
  40. package/dist/chunks/chunk-OYMX7WX6-ApX8eV4o.mjs +2038 -0
  41. package/dist/chunks/chunk-QZHKN3VN-BGFuA6-k.mjs +12 -0
  42. package/dist/chunks/chunk-U2HBQHQK-B88ZUOTL.mjs +1875 -0
  43. package/dist/chunks/chunk-X2U36JSP-1VS5TyCr.mjs +68 -0
  44. package/dist/chunks/chunk-XPW4576I-BMupdrvo.mjs +1146 -0
  45. package/dist/chunks/chunk-YZCP3GAM-BQ7eEsm2.mjs +60 -0
  46. package/dist/chunks/chunk-ZZ45TVLE-D1xks9zd.mjs +33 -0
  47. package/dist/chunks/classDiagram-6PBFFD2Q-C59BZJxp.mjs +30 -0
  48. package/dist/chunks/classDiagram-v2-HSJHXN6E-7a0qeMsE.mjs +30 -0
  49. package/dist/chunks/clone-Ckjt1LtE.mjs +8 -0
  50. package/dist/chunks/{constants-A3iVmQL8.mjs → constants-D7zjGD5W.mjs} +529 -530
  51. package/dist/chunks/core-Bm6DWt7D.mjs +4501 -0
  52. package/dist/chunks/cose-bilkent-S5V4N54A-Bpcs2jA_.mjs +2246 -0
  53. package/dist/chunks/cpp-BdjvAny0.mjs +16 -0
  54. package/dist/chunks/csharp-YHxeHpeH.mjs +3 -0
  55. package/dist/chunks/css-DdLevFaX.mjs +3 -0
  56. package/dist/chunks/cytoscape.esm-BvD8wo00.mjs +18108 -0
  57. package/dist/chunks/dagre-CGNbYTKq.mjs +1536 -0
  58. package/dist/chunks/dagre-KV5264BT-DUD9ikgN.mjs +298 -0
  59. package/dist/chunks/dart-DrPWqfcC.mjs +3 -0
  60. package/dist/chunks/default-qigT1Xpq.mjs +4 -0
  61. package/dist/chunks/defaultLocale-ChuSeAxU.mjs +201 -0
  62. package/dist/chunks/diagram-5BDNPKRD-CZGfTYEe.mjs +112 -0
  63. package/dist/chunks/diagram-G4DWMVQ6-CuS0-h95.mjs +546 -0
  64. package/dist/chunks/diagram-MMDJMWI5-C-AEApYz.mjs +234 -0
  65. package/dist/chunks/diagram-TYMM5635-CiwAJVMq.mjs +144 -0
  66. package/dist/chunks/dist-Ctq-pyfb.mjs +59 -0
  67. package/dist/chunks/dockerfile-C68ALcaN.mjs +3 -0
  68. package/dist/chunks/engine-javascript-CJpnSvzf.mjs +2373 -0
  69. package/dist/chunks/erDiagram-SMLLAGMA-DeH5yck2.mjs +1712 -0
  70. package/dist/chunks/flowDiagram-DWJPFMVM-Cr6dwmQ5.mjs +4175 -0
  71. package/dist/chunks/ganttDiagram-T4ZO3ILL-K-divBg_.mjs +3083 -0
  72. package/dist/chunks/gitGraph-7Q5UKJZL-Dl-vQzrq.mjs +3 -0
  73. package/dist/chunks/gitGraphDiagram-UUTBAWPF-UytPZv72.mjs +792 -0
  74. package/dist/chunks/go-Fm5N96DN.mjs +3 -0
  75. package/dist/chunks/graphlib-Cye9EPNq.mjs +223 -0
  76. package/dist/chunks/graphql-BSnqmqgO.mjs +11 -0
  77. package/dist/chunks/html-BLNeZvnp.mjs +10 -0
  78. package/dist/chunks/{i18next-Ch0gVA3V.mjs → i18next-CXx5niYF.mjs} +1 -1
  79. package/dist/chunks/{i18next-loader-dH3UPF7S.mjs → i18next-loader-CwsYu0n6.mjs} +2 -2
  80. package/dist/chunks/info-OMHHGYJF-BOejJvJR.mjs +3 -0
  81. package/dist/chunks/infoDiagram-42DDH7IO-DuYnDbF3.mjs +29 -0
  82. package/dist/chunks/init-C6T-mugb.mjs +15 -0
  83. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CHc59dLn.mjs +719 -0
  84. package/dist/chunks/java-83DWBpzu.mjs +5 -0
  85. package/dist/chunks/javascript-CBgeF1Xx.mjs +3 -0
  86. package/dist/chunks/journeyDiagram-VCZTEJTY-CD25C4_n.mjs +885 -0
  87. package/dist/chunks/json-BI17y-1H.mjs +3 -0
  88. package/dist/chunks/kanban-definition-6JOO6SKY-CTCT6N_p.mjs +980 -0
  89. package/dist/chunks/katex-CmTPfM0f.mjs +22026 -0
  90. package/dist/chunks/kotlin-DjnvsrfO.mjs +3 -0
  91. package/dist/chunks/latex-24n3TcOR.mjs +5 -0
  92. package/dist/chunks/{lightweight-i18n-1rbaxIZW.mjs → lightweight-i18n-Cvv8CWh4.mjs} +69 -2
  93. package/dist/chunks/line-Dct5pMmw.mjs +34 -0
  94. package/dist/chunks/linear-BRCpMvtr.mjs +289 -0
  95. package/dist/chunks/lua-DV0fuZWx.mjs +5 -0
  96. package/dist/chunks/markdown-BqQYT45f.mjs +3 -0
  97. package/dist/chunks/mdast-util-math-BlK2Zu-1.mjs +151 -0
  98. package/dist/chunks/mermaid-parser.core-CA3DKkuk.mjs +57 -0
  99. package/dist/chunks/mermaid-vF0cEnZ0.mjs +3 -0
  100. package/dist/chunks/mermaid.core-CA8nc1sZ.mjs +989 -0
  101. package/dist/{messages-DaOnbI6d.mjs → chunks/messages-8IHf7ZP3.mjs} +68 -1
  102. package/dist/chunks/{messages-C9aKfCro.mjs → messages-A_MkXDlG.mjs} +68 -1
  103. package/dist/{messages-BLEVLZve.mjs → chunks/messages-B0vPBsWq.mjs} +68 -1
  104. package/dist/chunks/{messages-C0hQPZmh2.mjs → messages-B2N4fUi72.mjs} +68 -1
  105. package/dist/{messages-HNAtlVax.mjs → chunks/messages-B4UMuyjT.mjs} +73 -6
  106. package/dist/chunks/{messages-DRUkmDVZ.mjs → messages-B9kmbUWV.mjs} +68 -1
  107. package/dist/{messages-Dbsx9m5q2.mjs → chunks/messages-BA8Iv99Y2.mjs} +68 -1
  108. package/dist/chunks/{messages-Da-SOTFW.mjs → messages-BAsb5CgZ.mjs} +68 -1
  109. package/dist/{messages-D1P0QGLz2.mjs → chunks/messages-BDZA10kl2.mjs} +68 -1
  110. package/dist/chunks/{messages-ComLU2T32.mjs → messages-BE6lHKwf.mjs} +68 -1
  111. package/dist/chunks/{messages-gaxTO-87.mjs → messages-BQYvBqm2.mjs} +68 -1
  112. package/dist/chunks/{messages-BwKs-9DF.mjs → messages-BSghd0ez.mjs} +68 -1
  113. package/dist/{messages-BPRR6TMf.mjs → chunks/messages-BUVhHx0q2.mjs} +68 -1
  114. package/dist/{messages-B7jZvo-m.mjs → chunks/messages-BVjoM7P0.mjs} +68 -1
  115. package/dist/{messages-C-4z1-Dh.mjs → chunks/messages-BXM80fdr2.mjs} +68 -1
  116. package/dist/{messages-Bm0nvUuj2.mjs → chunks/messages-BYlSMRkd.mjs} +68 -1
  117. package/dist/chunks/{messages-DLPrj3Dh.mjs → messages-BYxLFj7y.mjs} +68 -1
  118. package/dist/{messages-BRcLIBCd2.mjs → chunks/messages-BeFqtIrc2.mjs} +68 -1
  119. package/dist/{messages-zHkURG6V2.mjs → chunks/messages-Bfnq1xv4.mjs} +68 -1
  120. package/dist/chunks/{messages-Z762-GLL.mjs → messages-BhzzNkN-.mjs} +68 -1
  121. package/dist/chunks/{messages-COJ0CbVV2.mjs → messages-BjadX8jR2.mjs} +68 -1
  122. package/dist/{messages-B2ZwD4n9.mjs → chunks/messages-Bp8qin1R.mjs} +68 -1
  123. package/dist/chunks/{messages-DdEWnfAR.mjs → messages-Bphq_Bt3.mjs} +71 -4
  124. package/dist/{messages-CUDbNJG5.mjs → chunks/messages-Bxvi1ebN.mjs} +68 -1
  125. package/dist/chunks/{messages-B0t2L3bi.mjs → messages-C0HvoMPb.mjs} +68 -1
  126. package/dist/{messages-D6qfWi6H2.mjs → chunks/messages-C3aX3q0H.mjs} +68 -1
  127. package/dist/chunks/{messages-v9NkxRcL.mjs → messages-C6Mpiacw.mjs} +68 -1
  128. package/dist/chunks/{messages-CqZ9vFyx.mjs → messages-C7VGpihw.mjs} +69 -2
  129. package/dist/chunks/{messages-Yj4Q1_uX2.mjs → messages-CKBhDGI3.mjs} +69 -2
  130. package/dist/chunks/{messages-DxtnwNPo.mjs → messages-COO5xmcA.mjs} +68 -1
  131. package/dist/{messages-CZTcgUzd.mjs → chunks/messages-CSJ_zb3a2.mjs} +68 -1
  132. package/dist/{messages-A8aZS7d_2.mjs → chunks/messages-CSL-6xfb2.mjs} +68 -1
  133. package/dist/{messages-CxruHsuD2.mjs → chunks/messages-CVdpweyf2.mjs} +69 -2
  134. package/dist/{messages-D2Mf9z2D.mjs → chunks/messages-Cdf0W9H02.mjs} +68 -1
  135. package/dist/chunks/{messages-DAbCNake2.mjs → messages-Ck81cQkn2.mjs} +68 -1
  136. package/dist/chunks/{messages-Dyku8Cut.mjs → messages-Cmf6NhSC.mjs} +68 -1
  137. package/dist/chunks/{messages-DQ6bFum9.mjs → messages-Cs81Z_Bh.mjs} +68 -1
  138. package/dist/chunks/{messages-cegxHurd2.mjs → messages-Cu-Wevxs2.mjs} +68 -1
  139. package/dist/{messages-D2HwpoUE.mjs → chunks/messages-D3zojZ94.mjs} +69 -2
  140. package/dist/{messages-BfTBVFd9.mjs → chunks/messages-D55HRx5O2.mjs} +68 -1
  141. package/dist/chunks/{messages-Dl03jd4b2.mjs → messages-D9N2MvQx2.mjs} +68 -1
  142. package/dist/{messages-DfXh-i9o.mjs → chunks/messages-DG-4DPmP.mjs} +68 -1
  143. package/dist/chunks/{messages-DmJf9laH2.mjs → messages-DGL1ySqb2.mjs} +68 -1
  144. package/dist/chunks/{messages-DfU4yvkL.mjs → messages-DJoNVjqP.mjs} +68 -1
  145. package/dist/{messages-Bsd4ruEY.mjs → chunks/messages-DMVXnAYj.mjs} +70 -3
  146. package/dist/{messages-3WhPEFd7.mjs → chunks/messages-DOuS1Qge.mjs} +68 -1
  147. package/dist/chunks/{messages-B1kDfIN82.mjs → messages-DWu1r4gc2.mjs} +68 -1
  148. package/dist/{messages-Dtih3ffa2.mjs → chunks/messages-DlLXpgWM2.mjs} +68 -1
  149. package/dist/chunks/{messages-DKNULJpc.mjs → messages-DlonA3wa.mjs} +69 -2
  150. package/dist/{messages-C5pBfa_W.mjs → chunks/messages-Dr0Ekmbz.mjs} +81 -14
  151. package/dist/{messages-Du62vI49.mjs → chunks/messages-DzTk8bJ5.mjs} +68 -1
  152. package/dist/{messages-DNAp0U4l2.mjs → chunks/messages-FWfsxpBz.mjs} +68 -1
  153. package/dist/{messages-B2YeJw8s2.mjs → chunks/messages-G416eyjY.mjs} +68 -1
  154. package/dist/chunks/{messages-C5-aaU2b.mjs → messages-Je5YvxiY.mjs} +68 -1
  155. package/dist/chunks/{messages-DHHZUf_H2.mjs → messages-JyvWu4rf2.mjs} +68 -1
  156. package/dist/chunks/{messages-D_6vPBzT.mjs → messages-KdawW5Na.mjs} +68 -1
  157. package/dist/chunks/{messages-DnuhgHG0.mjs → messages-MxpWO1db.mjs} +68 -1
  158. package/dist/{messages-DT4rHATO2.mjs → chunks/messages-NEqrrYvE2.mjs} +68 -1
  159. package/dist/chunks/{messages-DeSSxLsh.mjs → messages-RInp1ytX.mjs} +68 -1
  160. package/dist/{messages-DfEPVRdJ.mjs → chunks/messages-TRUuyiFB.mjs} +68 -1
  161. package/dist/chunks/{messages--eH7tTJV2.mjs → messages-aZcy0JQq2.mjs} +68 -1
  162. package/dist/{messages-O6z1uabG.mjs → chunks/messages-iS34FHFB.mjs} +68 -1
  163. package/dist/{messages-BE0DjTEC.mjs → chunks/messages-ihCjSFJI2.mjs} +68 -1
  164. package/dist/chunks/{messages-_5Pg5fKy2.mjs → messages-jfVpL9c-2.mjs} +68 -1
  165. package/dist/chunks/{messages-CaRSYuhO.mjs → messages-p1mbe__S.mjs} +68 -1
  166. package/dist/chunks/{messages-BGssMBWM2.mjs → messages-rCd0Rrw6.mjs} +69 -2
  167. package/dist/{messages-COgvIEeW.mjs → chunks/messages-xuqyb6Ff2.mjs} +68 -1
  168. package/dist/chunks/micromark-extension-math-BbkUb36G.mjs +169 -0
  169. package/dist/chunks/micromark-factory-space-y4SDWQKm.mjs +36 -0
  170. package/dist/chunks/mindmap-definition-QFDTVHPH-hNnyBkEP.mjs +1013 -0
  171. package/dist/chunks/{notifier-Butv4Dvo.mjs → notifier-CuvTt9pe.mjs} +1 -1
  172. package/dist/chunks/objectWithoutProperties-D0XxKB4n.mjs +23 -0
  173. package/dist/chunks/one-light-DmNO_Y4X.mjs +4 -0
  174. package/dist/chunks/ordinal-B-kolV-i.mjs +65 -0
  175. package/dist/chunks/packet-4T2RLAQJ-B5ZMgwzZ.mjs +3 -0
  176. package/dist/chunks/path-rIMjg_tH.mjs +85 -0
  177. package/dist/chunks/php-DmXKyPwJ.mjs +18 -0
  178. package/dist/chunks/pie-ZZUOXDRM-B9l6y0XJ.mjs +3 -0
  179. package/dist/chunks/pieDiagram-DEJITSTG-Gw-fsc6U.mjs +179 -0
  180. package/dist/chunks/python-DfwfY9t5.mjs +3 -0
  181. package/dist/chunks/quadrantDiagram-34T5L4WZ-CQ5fGYI5.mjs +1960 -0
  182. package/dist/chunks/r-BD2D7qEW.mjs +5 -0
  183. package/dist/chunks/radar-PYXPWWZC-D5kYmUaB.mjs +3 -0
  184. package/dist/chunks/requirementDiagram-MS252O5E-DjWKB42c.mjs +2224 -0
  185. package/dist/chunks/rough.esm-cmMIcj7N.mjs +1353 -0
  186. package/dist/chunks/ruby-DdOo03Kg.mjs +33 -0
  187. package/dist/chunks/rust-DEDueB5R.mjs +3 -0
  188. package/dist/chunks/sankeyDiagram-XADWPNL6-BIN2evSB.mjs +909 -0
  189. package/dist/chunks/scala-CsjqvxE4.mjs +3 -0
  190. package/dist/chunks/sequenceDiagram-FGHM5R23-CQz2lMoS.mjs +4181 -0
  191. package/dist/chunks/shellscript-Bh5zEpnQ.mjs +3 -0
  192. package/dist/chunks/sql-D9CrOi1i.mjs +3 -0
  193. package/dist/chunks/src-DVJl6f6s.mjs +2149 -0
  194. package/dist/chunks/stateDiagram-FHFEXIEX-BIBFsF65.mjs +218 -0
  195. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-BZUmAVw7.mjs +28 -0
  196. package/dist/chunks/swift-Dpyt0s2c.mjs +3 -0
  197. package/dist/chunks/timeline-definition-GMOUNBTQ-CzvQ7Lav.mjs +1084 -0
  198. package/dist/chunks/{tools-nT6zA9QL.mjs → tools-CrRhWn8L.mjs} +3043 -1303
  199. package/dist/chunks/treeView-SZITEDCU-BNtnNxpI.mjs +3 -0
  200. package/dist/chunks/treemap-W4RFUUIX-DYENULz2.mjs +3 -0
  201. package/dist/chunks/typescript-DO5cd4m8.mjs +5 -0
  202. package/dist/chunks/vennDiagram-DHZGUBPP-B0DmLQqe.mjs +1876 -0
  203. package/dist/chunks/vitesse-dark-CcorSKT2.mjs +4 -0
  204. package/dist/chunks/wardley-RL74JXVD-ByNHVBTb.mjs +3 -0
  205. package/dist/chunks/wardleyDiagram-NUSXRM2D-CzoKesUw.mjs +594 -0
  206. package/dist/chunks/xml-g8kXXALs.mjs +5 -0
  207. package/dist/chunks/xychartDiagram-5P7HB3ND-CixwR8r2.mjs +2017 -0
  208. package/dist/chunks/yaml-CrNNZyLb.mjs +3 -0
  209. package/dist/cli.mjs +1 -1
  210. package/dist/full.mjs +14 -14
  211. package/dist/locales.mjs +135 -68
  212. package/dist/markdown.mjs +3954 -0
  213. package/dist/{messages-D_CUdqU12.mjs → messages-5jvKxQNu2.mjs} +68 -1
  214. package/dist/{chunks/messages-CFfpHyTU.mjs → messages-7QD-X6XT2.mjs} +68 -1
  215. package/dist/{messages-CdX1odk_2.mjs → messages-96iaAUds2.mjs} +68 -1
  216. package/dist/{messages-C8ca-jEa.mjs → messages-B19o-Teb.mjs} +69 -2
  217. package/dist/{messages-I03yFhup.mjs → messages-B1ZUQagA.mjs} +68 -1
  218. package/dist/{chunks/messages-BSw88lIo2.mjs → messages-B7ieAJBd2.mjs} +68 -1
  219. package/dist/{messages-sNSXCkeB.mjs → messages-BECMxmfX.mjs} +68 -1
  220. package/dist/{messages-DgGZsxBB.mjs → messages-BIHc0KHY.mjs} +68 -1
  221. package/dist/{messages-yZj20Fvf.mjs → messages-BIoeoik5.mjs} +68 -1
  222. package/dist/{chunks/messages-D8JFu42v.mjs → messages-BJeGJksD.mjs} +68 -1
  223. package/dist/{messages-BSLErTnW2.mjs → messages-BRZX964b2.mjs} +68 -1
  224. package/dist/{chunks/messages-BW8arxf72.mjs → messages-BTQPpoM42.mjs} +68 -1
  225. package/dist/{messages-C52AiyVV.mjs → messages-BYNcD6uR.mjs} +68 -1
  226. package/dist/{messages-BxJv0qBn2.mjs → messages-BYmmMDrN2.mjs} +68 -1
  227. package/dist/{messages-CoCy2JIP.mjs → messages-BbYq1pk-.mjs} +68 -1
  228. package/dist/{messages-Cnz_SHE32.mjs → messages-BiUGXvYr2.mjs} +68 -1
  229. package/dist/{chunks/messages-Dl6SVT1Z.mjs → messages-BiiongNz2.mjs} +68 -1
  230. package/dist/{chunks/messages-C912bk5I.mjs → messages-Bm0Feca1.mjs} +69 -2
  231. package/dist/{chunks/messages-CTuCPqpJ.mjs → messages-BmAn22OX.mjs} +68 -1
  232. package/dist/{messages-DdiPWkV8.mjs → messages-Bq3F2Tp_.mjs} +68 -1
  233. package/dist/{chunks/messages-DJxXZi1D2.mjs → messages-BsycN_JI2.mjs} +68 -1
  234. package/dist/{chunks/messages-OdEuBvgf.mjs → messages-BwHs4cm1.mjs} +70 -3
  235. package/dist/{chunks/messages-C4ZAJzBh.mjs → messages-CJTy6JZt.mjs} +68 -1
  236. package/dist/{chunks/messages-D2OZ9dbO.mjs → messages-CR_L_UtK.mjs} +68 -1
  237. package/dist/{messages-ypuLZyw12.mjs → messages-CSUHBs4c2.mjs} +68 -1
  238. package/dist/{chunks/messages-BkES2MDr2.mjs → messages-CWIXvnDf2.mjs} +68 -1
  239. package/dist/{messages-Cpeko5kB.mjs → messages-CcF4y-E4.mjs} +68 -1
  240. package/dist/{messages-BmnC-s4X.mjs → messages-Ce6KVEbT.mjs} +68 -1
  241. package/dist/{messages-DTNfG4ZH.mjs → messages-Ci0KqX-J.mjs} +71 -4
  242. package/dist/{chunks/messages-CGh56r-H2.mjs → messages-CjbnogEC.mjs} +68 -1
  243. package/dist/{messages-B3jq5Hpa.mjs → messages-CmB406HW.mjs} +69 -2
  244. package/dist/{chunks/messages-BsZz1Hnn2.mjs → messages-CqXtJTpU.mjs} +68 -1
  245. package/dist/{messages-DL000FUf2.mjs → messages-D0aw5_0k2.mjs} +68 -1
  246. package/dist/{chunks/messages-Df2RYuup2.mjs → messages-D8FQWulF2.mjs} +68 -1
  247. package/dist/{messages-CxHn7cs2.mjs → messages-DBiVgUs2.mjs} +68 -1
  248. package/dist/{chunks/messages-Dsapm4K9.mjs → messages-DIJlIqlQ2.mjs} +68 -1
  249. package/dist/{chunks/messages-517llQmh.mjs → messages-DLX_iBDJ.mjs} +68 -1
  250. package/dist/{chunks/messages-BG8Nq35G.mjs → messages-DLlc9QPw.mjs} +68 -1
  251. package/dist/{messages-cokJPuUp2.mjs → messages-DMr62KiO2.mjs} +68 -1
  252. package/dist/{chunks/messages-Dkp-Eyu02.mjs → messages-DPA-mMWC2.mjs} +68 -1
  253. package/dist/{chunks/messages-7uCUVFea.mjs → messages-DTh9a8mR.mjs} +68 -1
  254. package/dist/{messages-VBFioL2M.mjs → messages-DY4IqlhY.mjs} +68 -1
  255. package/dist/{chunks/messages-C4X0xP3h.mjs → messages-DYTTu0O12.mjs} +68 -1
  256. package/dist/{messages-diSPQ2Da2.mjs → messages-DbySKTKt2.mjs} +69 -2
  257. package/dist/{chunks/messages-BGE43_6M.mjs → messages-Ddnj2iTG2.mjs} +68 -1
  258. package/dist/{chunks/messages-BtUqUzMG2.mjs → messages-DkLU_rWm.mjs} +68 -1
  259. package/dist/{messages-DSX2HaeN2.mjs → messages-Dl3Sv6Rq2.mjs} +68 -1
  260. package/dist/{chunks/messages-BDvpl6Ox.mjs → messages-Dl5Y2-Ia.mjs} +81 -14
  261. package/dist/{chunks/messages-C7plNvNE2.mjs → messages-DnG0ef8t2.mjs} +69 -2
  262. package/dist/{chunks/messages-qS8tM3Dk.mjs → messages-DnGJD4TL.mjs} +68 -1
  263. package/dist/{messages-Ct468oX22.mjs → messages-Dnp9N6RU2.mjs} +68 -1
  264. package/dist/{chunks/messages-CjIA--kO.mjs → messages-Dvn35ksS.mjs} +68 -1
  265. package/dist/{messages-BRxNqmJ8.mjs → messages-Dw__BcTj.mjs} +68 -1
  266. package/dist/{chunks/messages-0zhE8A9X.mjs → messages-Dy-Y_nEI.mjs} +68 -1
  267. package/dist/{chunks/messages-CCH4OETw2.mjs → messages-E_ZuzGDt.mjs} +68 -1
  268. package/dist/{chunks/messages-DZzoT0T_.mjs → messages-F2xRoY1w.mjs} +68 -1
  269. package/dist/{chunks/messages-zGdqNZbH.mjs → messages-Smt4GBbj.mjs} +73 -6
  270. package/dist/{messages-CvIxHHp92.mjs → messages-aMXpHt5X2.mjs} +68 -1
  271. package/dist/{messages-C8JVJUp12.mjs → messages-aWZH50vu2.mjs} +68 -1
  272. package/dist/{messages-Phrqr7a6.mjs → messages-dv19AkyJ.mjs} +68 -1
  273. package/dist/{chunks/messages-DngM4hda2.mjs → messages-hWwSRF-2.mjs} +68 -1
  274. package/dist/{messages-DpGo_Da5.mjs → messages-j7o5rT9s.mjs} +68 -1
  275. package/dist/{messages-C6WJx6Z0.mjs → messages-nUVjeh7K.mjs} +68 -1
  276. package/dist/{messages-CbVilNPE.mjs → messages-nlhESX9t.mjs} +68 -1
  277. package/dist/{messages-C6o0FVy02.mjs → messages-rk-A1Wa42.mjs} +69 -2
  278. package/dist/{messages-D4mCIODv.mjs → messages-xh2eOLvs.mjs} +68 -1
  279. package/dist/{chunks/messages-Ct9UUOrl2.mjs → messages-ynAe7ewZ.mjs} +68 -1
  280. package/dist/react.mjs +26 -25
  281. package/dist/tools.mjs +3 -3
  282. package/dist/vendor.LICENSE.txt +5404 -80
  283. package/package.json +16 -1
  284. package/src/components/blocks.ts +26 -1
  285. package/src/components/constants/data-attributes.ts +2 -2
  286. package/src/components/i18n/locales/am/messages.json +68 -1
  287. package/src/components/i18n/locales/ar/messages.json +68 -1
  288. package/src/components/i18n/locales/az/messages.json +68 -1
  289. package/src/components/i18n/locales/bg/messages.json +68 -1
  290. package/src/components/i18n/locales/bn/messages.json +68 -1
  291. package/src/components/i18n/locales/bs/messages.json +69 -2
  292. package/src/components/i18n/locales/cs/messages.json +70 -3
  293. package/src/components/i18n/locales/da/messages.json +71 -4
  294. package/src/components/i18n/locales/de/messages.json +73 -6
  295. package/src/components/i18n/locales/dv/messages.json +68 -1
  296. package/src/components/i18n/locales/el/messages.json +68 -1
  297. package/src/components/i18n/locales/en/messages.json +68 -1
  298. package/src/components/i18n/locales/es/messages.json +68 -1
  299. package/src/components/i18n/locales/et/messages.json +69 -2
  300. package/src/components/i18n/locales/fa/messages.json +68 -1
  301. package/src/components/i18n/locales/fi/messages.json +68 -1
  302. package/src/components/i18n/locales/fil/messages.json +81 -14
  303. package/src/components/i18n/locales/fr/messages.json +68 -1
  304. package/src/components/i18n/locales/gu/messages.json +68 -1
  305. package/src/components/i18n/locales/he/messages.json +68 -1
  306. package/src/components/i18n/locales/hi/messages.json +68 -1
  307. package/src/components/i18n/locales/hr/messages.json +69 -2
  308. package/src/components/i18n/locales/hu/messages.json +68 -1
  309. package/src/components/i18n/locales/hy/messages.json +68 -1
  310. package/src/components/i18n/locales/id/messages.json +68 -1
  311. package/src/components/i18n/locales/it/messages.json +68 -1
  312. package/src/components/i18n/locales/ja/messages.json +68 -1
  313. package/src/components/i18n/locales/ka/messages.json +68 -1
  314. package/src/components/i18n/locales/km/messages.json +68 -1
  315. package/src/components/i18n/locales/kn/messages.json +68 -1
  316. package/src/components/i18n/locales/ko/messages.json +68 -1
  317. package/src/components/i18n/locales/ku/messages.json +68 -1
  318. package/src/components/i18n/locales/lo/messages.json +68 -1
  319. package/src/components/i18n/locales/lt/messages.json +68 -1
  320. package/src/components/i18n/locales/lv/messages.json +68 -1
  321. package/src/components/i18n/locales/mk/messages.json +68 -1
  322. package/src/components/i18n/locales/ml/messages.json +68 -1
  323. package/src/components/i18n/locales/mn/messages.json +68 -1
  324. package/src/components/i18n/locales/mr/messages.json +68 -1
  325. package/src/components/i18n/locales/ms/messages.json +69 -2
  326. package/src/components/i18n/locales/my/messages.json +68 -1
  327. package/src/components/i18n/locales/ne/messages.json +68 -1
  328. package/src/components/i18n/locales/nl/messages.json +68 -1
  329. package/src/components/i18n/locales/no/messages.json +68 -1
  330. package/src/components/i18n/locales/pa/messages.json +68 -1
  331. package/src/components/i18n/locales/pl/messages.json +68 -1
  332. package/src/components/i18n/locales/ps/messages.json +68 -1
  333. package/src/components/i18n/locales/pt/messages.json +68 -1
  334. package/src/components/i18n/locales/ro/messages.json +68 -1
  335. package/src/components/i18n/locales/ru/messages.json +68 -1
  336. package/src/components/i18n/locales/sd/messages.json +68 -1
  337. package/src/components/i18n/locales/si/messages.json +68 -1
  338. package/src/components/i18n/locales/sk/messages.json +69 -2
  339. package/src/components/i18n/locales/sl/messages.json +69 -2
  340. package/src/components/i18n/locales/sq/messages.json +68 -1
  341. package/src/components/i18n/locales/sr/messages.json +68 -1
  342. package/src/components/i18n/locales/sv/messages.json +68 -1
  343. package/src/components/i18n/locales/sw/messages.json +68 -1
  344. package/src/components/i18n/locales/ta/messages.json +68 -1
  345. package/src/components/i18n/locales/te/messages.json +68 -1
  346. package/src/components/i18n/locales/th/messages.json +68 -1
  347. package/src/components/i18n/locales/tr/messages.json +68 -1
  348. package/src/components/i18n/locales/ug/messages.json +68 -1
  349. package/src/components/i18n/locales/uk/messages.json +68 -1
  350. package/src/components/i18n/locales/ur/messages.json +68 -1
  351. package/src/components/i18n/locales/vi/messages.json +68 -1
  352. package/src/components/i18n/locales/yi/messages.json +68 -1
  353. package/src/components/i18n/locales/zh/messages.json +68 -1
  354. package/src/components/icons/index.ts +78 -0
  355. package/src/components/inline-tools/inline-tool-code.ts +399 -0
  356. package/src/components/modules/api/blocks.ts +17 -0
  357. package/src/components/modules/api/ui.ts +0 -3
  358. package/src/components/modules/blockEvents/composers/blockSelectionKeys.ts +20 -3
  359. package/src/components/modules/paste/handlers/html-handler.ts +13 -10
  360. package/src/components/modules/paste/handlers/index.ts +1 -0
  361. package/src/components/modules/paste/index.ts +6 -0
  362. package/src/components/modules/renderer.ts +17 -0
  363. package/src/components/modules/ui.ts +1 -13
  364. package/src/components/ui/toolbox.ts +9 -0
  365. package/src/components/utils/caret/boundaries.ts +15 -4
  366. package/src/components/utils/popover/popover-desktop.ts +11 -0
  367. package/src/markdown/index.ts +63 -0
  368. package/src/markdown/markdown-handler.ts +110 -0
  369. package/src/markdown/mdast-to-blocks.ts +418 -0
  370. package/src/markdown/phrasing-to-html.ts +60 -0
  371. package/src/markdown/types.ts +42 -0
  372. package/src/stories/EditorModes.stories.ts +0 -60
  373. package/src/styles/main.css +57 -2
  374. package/src/tools/callout/constants.ts +2 -1
  375. package/src/tools/callout/emoji-picker/index.ts +41 -2
  376. package/src/tools/callout/index.ts +25 -0
  377. package/src/tools/code/code-keyboard.ts +142 -0
  378. package/src/tools/code/constants.ts +96 -0
  379. package/src/tools/code/dom-builder.ts +181 -0
  380. package/src/tools/code/highlight-applier.ts +229 -0
  381. package/src/tools/code/index.ts +462 -0
  382. package/src/tools/code/katex-loader.ts +50 -0
  383. package/src/tools/code/language-picker.ts +241 -0
  384. package/src/tools/code/mermaid-loader.ts +45 -0
  385. package/src/tools/code/shiki-loader.ts +135 -0
  386. package/src/tools/divider/index.ts +11 -2
  387. package/src/tools/header/index.ts +2 -0
  388. package/src/tools/index.ts +6 -0
  389. package/src/tools/list/block-operations.ts +3 -1
  390. package/src/tools/list/depth-validator.ts +4 -7
  391. package/src/tools/list/dom-builder.ts +5 -3
  392. package/src/tools/list/index.ts +21 -3
  393. package/src/tools/list/list-helpers.ts +9 -2
  394. package/src/tools/list/list-keyboard.ts +56 -14
  395. package/src/tools/list/list-lifecycle.ts +3 -1
  396. package/src/tools/list/marker-calculator.ts +37 -0
  397. package/src/tools/list/ordered-marker-manager.ts +4 -2
  398. package/src/tools/list/style-config.ts +3 -0
  399. package/src/tools/paragraph/index.ts +1 -0
  400. package/src/tools/quote/index.ts +229 -0
  401. package/src/tools/table/core/table-commands.ts +16 -0
  402. package/src/tools/table/core/table-controller.ts +29 -0
  403. package/src/tools/table/core/table-events.ts +17 -0
  404. package/src/tools/table/index.ts +220 -14
  405. package/src/tools/table/table-cell-blocks.ts +51 -6
  406. package/src/tools/table/table-cell-clipboard.ts +7 -2
  407. package/src/tools/table/table-cell-placement-picker.ts +133 -0
  408. package/src/tools/table/table-cell-selection.ts +174 -19
  409. package/src/tools/table/table-core.ts +321 -113
  410. package/src/tools/table/table-map.ts +279 -0
  411. package/src/tools/table/table-model.ts +901 -1
  412. package/src/tools/table/table-operations.ts +87 -44
  413. package/src/tools/table/table-resize.ts +19 -17
  414. package/src/tools/table/table-row-col-drag.ts +24 -10
  415. package/src/tools/table/types.ts +24 -2
  416. package/src/tools/toggle/index.ts +1 -0
  417. package/types/configs/blok-config.d.ts +7 -0
  418. package/types/data-attributes.d.ts +0 -1
  419. package/types/markdown.d.ts +2 -0
  420. package/types/tools/callout.d.ts +16 -0
  421. package/types/tools/code.d.ts +13 -0
  422. package/types/tools/quote.d.ts +13 -0
  423. package/types/tools/tool-settings.d.ts +7 -0
  424. package/types/tools-entry.d.ts +7 -0
  425. /package/dist/chunks/{am-CHDDMHkd.mjs → am-BxlkYGsI.mjs} +0 -0
  426. /package/dist/chunks/{ar-DoqfNqut.mjs → ar-9vlpr9V8.mjs} +0 -0
  427. /package/dist/chunks/{az-C34P9iEa.mjs → az-ON63W_FP.mjs} +0 -0
  428. /package/dist/chunks/{bg-jroXLY8Y.mjs → bg-CtXWTP5w.mjs} +0 -0
  429. /package/dist/chunks/{bn-BRI-WqxY.mjs → bn-BERvhXM4.mjs} +0 -0
  430. /package/dist/chunks/{bs-CCGUpNHu.mjs → bs-CBg8NVPG.mjs} +0 -0
  431. /package/dist/chunks/{cs-D5qZOGuc.mjs → cs-DeQddxS7.mjs} +0 -0
  432. /package/dist/chunks/{da-DrJ7W37K.mjs → da-DyTo-ec_.mjs} +0 -0
  433. /package/dist/chunks/{de-BW6-kp2c.mjs → de-Cu7545m1.mjs} +0 -0
  434. /package/dist/chunks/{el-C-Vc_Otu.mjs → el-oiubLRBq.mjs} +0 -0
  435. /package/dist/chunks/{es-B6fI5K9i.mjs → es-DZUC6Klv.mjs} +0 -0
  436. /package/dist/chunks/{et-BhVlZ-Yz.mjs → et-CDeklAog.mjs} +0 -0
  437. /package/dist/chunks/{fa-D55Ijdqa.mjs → fa-Cafp7_Li.mjs} +0 -0
  438. /package/dist/chunks/{fi-jNLjhKUQ.mjs → fi-BD_V_aVW.mjs} +0 -0
  439. /package/dist/chunks/{fil-DYd0T5aX.mjs → fil-Crsfbtx4.mjs} +0 -0
  440. /package/dist/chunks/{fr-yxy5xWw_.mjs → fr-BGGc04Zv.mjs} +0 -0
  441. /package/dist/chunks/{gu-CcY_LJe7.mjs → gu-Vg_BgCTp.mjs} +0 -0
  442. /package/dist/chunks/{he-DL9s7wNw.mjs → he-DTY9chlZ.mjs} +0 -0
  443. /package/dist/chunks/{hi-C8eGXgw5.mjs → hi-DChMXk0x.mjs} +0 -0
  444. /package/dist/chunks/{hr-DLpybOhU.mjs → hr-BWVgNU8k.mjs} +0 -0
  445. /package/dist/chunks/{hu-BkT0gT00.mjs → hu-B37awHXA.mjs} +0 -0
  446. /package/dist/chunks/{hy-CVFDCp2S.mjs → hy-DGC_GDHh.mjs} +0 -0
  447. /package/dist/chunks/{id-0P4W9Az0.mjs → id-V7cw6La2.mjs} +0 -0
  448. /package/dist/chunks/{it-mLY6_uoW.mjs → it-DrTGP8Rn.mjs} +0 -0
  449. /package/dist/chunks/{ja-7RkeRNWG.mjs → ja-DS4pbJEG.mjs} +0 -0
  450. /package/dist/chunks/{ka-C7Lx-Qsh.mjs → ka-BueyosRh.mjs} +0 -0
  451. /package/dist/chunks/{km-Q8udaraH.mjs → km-B0K891yW.mjs} +0 -0
  452. /package/dist/chunks/{kn-BiETM-iq.mjs → kn-BQ__skg8.mjs} +0 -0
  453. /package/dist/chunks/{ko-tiB80pF1.mjs → ko-BuPxi_7e.mjs} +0 -0
  454. /package/dist/chunks/{ku-CY-OABkR.mjs → ku-nQjwPRw2.mjs} +0 -0
  455. /package/dist/chunks/{lo-CTBhEnyk.mjs → lo-K5NVFoq1.mjs} +0 -0
  456. /package/dist/chunks/{lt-BHKHEtqK.mjs → lt-D3xD6Eb2.mjs} +0 -0
  457. /package/dist/chunks/{lv-DWxgtfUg.mjs → lv-DH13mzZj.mjs} +0 -0
  458. /package/dist/chunks/{mk-BjookGdx.mjs → mk-Bb48BcDA.mjs} +0 -0
  459. /package/dist/chunks/{ml-L-NnZcp9.mjs → ml-BHPEj1kD.mjs} +0 -0
  460. /package/dist/chunks/{mn-OMWi7Hl_.mjs → mn-BNGzpdI6.mjs} +0 -0
  461. /package/dist/chunks/{mr-B6JPzITo.mjs → mr-D5PgU-cH.mjs} +0 -0
  462. /package/dist/chunks/{ms-CG3S-sPB.mjs → ms-DPkxqKz5.mjs} +0 -0
  463. /package/dist/chunks/{my-BLAmGfhT.mjs → my-DZGcyfxy.mjs} +0 -0
  464. /package/dist/chunks/{native-BPcABu9z.mjs → native-D0cfLXsM.mjs} +0 -0
  465. /package/dist/chunks/{ne-D1JHLfYw.mjs → ne-BU_Wh4Wv.mjs} +0 -0
  466. /package/dist/chunks/{nl-Ca7Q8FnY.mjs → nl-DtAPk1mK.mjs} +0 -0
  467. /package/dist/chunks/{no-Coxcohcz.mjs → no-CdW3n3BY.mjs} +0 -0
  468. /package/dist/chunks/{objectSpread2-CyPxu8-u.mjs → objectSpread2-CWwMYL_U.mjs} +0 -0
  469. /package/dist/chunks/{pa-CCaXqpaI.mjs → pa-BacCHz87.mjs} +0 -0
  470. /package/dist/chunks/{pl-Cl_fAZ84.mjs → pl-8zBJbmhZ.mjs} +0 -0
  471. /package/dist/chunks/{ps-WD5qGAWy.mjs → ps-c6nGXD-W.mjs} +0 -0
  472. /package/dist/chunks/{pt-C4zvLfvq.mjs → pt-B5yR8Qhr.mjs} +0 -0
  473. /package/dist/chunks/{ro-DbefHcmM.mjs → ro-Nscylsqb.mjs} +0 -0
  474. /package/dist/chunks/{ru-uU1J14jd.mjs → ru-DxERQkVJ.mjs} +0 -0
  475. /package/dist/chunks/{sd-DKu368Ip.mjs → sd-5z-QY3q9.mjs} +0 -0
  476. /package/dist/chunks/{si-BsJCiPkZ.mjs → si-DTL0mzrx.mjs} +0 -0
  477. /package/dist/chunks/{sk-CD-a3SN6.mjs → sk-DrGczTvY.mjs} +0 -0
  478. /package/dist/chunks/{sl-CXhrPJe_.mjs → sl-D8nJjig4.mjs} +0 -0
  479. /package/dist/chunks/{sq-CTctCoFQ.mjs → sq-C74Hm3YL.mjs} +0 -0
  480. /package/dist/chunks/{sr-BZkhBwXj.mjs → sr-DAwB05Gj.mjs} +0 -0
  481. /package/dist/chunks/{sv-NmRZb_xi.mjs → sv-BkHBsN4y.mjs} +0 -0
  482. /package/dist/chunks/{sw-Be5ik3H6.mjs → sw-BBQLTq_z.mjs} +0 -0
  483. /package/dist/chunks/{ta-DsXh6neL.mjs → ta-DRRzdKky.mjs} +0 -0
  484. /package/dist/chunks/{te-CwpCbM8M.mjs → te-CedXLsKM.mjs} +0 -0
  485. /package/dist/chunks/{th-CcZ15OLk.mjs → th-DDOlGA0W.mjs} +0 -0
  486. /package/dist/chunks/{tr-q3bTgvhW.mjs → tr-ClgvwOlL.mjs} +0 -0
  487. /package/dist/chunks/{tw-DmW6-pCY.mjs → tw-CqxBf-1Y.mjs} +0 -0
  488. /package/dist/chunks/{ug-919EhLsL.mjs → ug-bXxwiinM.mjs} +0 -0
  489. /package/dist/chunks/{uk-aNMEzd0Y.mjs → uk-Dp46o_VT.mjs} +0 -0
  490. /package/dist/chunks/{ur-BwQI77sh.mjs → ur-MfEEhdFq.mjs} +0 -0
  491. /package/dist/chunks/{vi-Dxq806-F.mjs → vi-bt-3LPGO.mjs} +0 -0
  492. /package/dist/chunks/{zh-BcHuy1Ti.mjs → zh-Dgyb5Ly8.mjs} +0 -0
@@ -0,0 +1,2038 @@
1
+ import { g as e, h as t } from "./src-DVJl6f6s.mjs";
2
+ import { B as n, C as r, V as i, W as a, _ as o, a as s, b as c, s as l, v as u } from "./chunk-ICPOFSXX-BHZIN46A.mjs";
3
+ import { h as d, o as f } from "./chunk-5PVQY5BW-CORl9dnu.mjs";
4
+ import { t as p } from "./chunk-55IACEB6-zZ-IgaSt.mjs";
5
+ import { t as m } from "./chunk-EDXVE4YY-DjInnnwb.mjs";
6
+ import { r as h } from "./chunk-336JU56O-B17AtzlK.mjs";
7
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.mjs
8
+ var g, _ = (function() {
9
+ var e = /* @__PURE__ */ t(function(e, t, n, r) {
10
+ for (n = n || {}, r = e.length; r--; n[e[r]] = t);
11
+ return n;
12
+ }, "o"), n = [1, 2], r = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 16], l = [1, 17], u = [1, 18], d = [1, 19], f = [1, 33], p = [1, 20], m = [1, 21], h = [1, 22], g = [1, 23], _ = [1, 24], v = [1, 26], y = [1, 27], b = [1, 28], x = [1, 29], S = [1, 30], C = [1, 31], w = [1, 32], T = [1, 35], E = [1, 36], D = [1, 37], O = [1, 38], k = [1, 34], A = [
13
+ 1,
14
+ 4,
15
+ 5,
16
+ 16,
17
+ 17,
18
+ 19,
19
+ 21,
20
+ 22,
21
+ 24,
22
+ 25,
23
+ 26,
24
+ 27,
25
+ 28,
26
+ 29,
27
+ 33,
28
+ 35,
29
+ 37,
30
+ 38,
31
+ 41,
32
+ 45,
33
+ 48,
34
+ 51,
35
+ 52,
36
+ 53,
37
+ 54,
38
+ 57
39
+ ], j = [
40
+ 1,
41
+ 4,
42
+ 5,
43
+ 14,
44
+ 15,
45
+ 16,
46
+ 17,
47
+ 19,
48
+ 21,
49
+ 22,
50
+ 24,
51
+ 25,
52
+ 26,
53
+ 27,
54
+ 28,
55
+ 29,
56
+ 33,
57
+ 35,
58
+ 37,
59
+ 38,
60
+ 39,
61
+ 40,
62
+ 41,
63
+ 45,
64
+ 48,
65
+ 51,
66
+ 52,
67
+ 53,
68
+ 54,
69
+ 57
70
+ ], M = [
71
+ 4,
72
+ 5,
73
+ 16,
74
+ 17,
75
+ 19,
76
+ 21,
77
+ 22,
78
+ 24,
79
+ 25,
80
+ 26,
81
+ 27,
82
+ 28,
83
+ 29,
84
+ 33,
85
+ 35,
86
+ 37,
87
+ 38,
88
+ 41,
89
+ 45,
90
+ 48,
91
+ 51,
92
+ 52,
93
+ 53,
94
+ 54,
95
+ 57
96
+ ], N = {
97
+ trace: /* @__PURE__ */ t(function() {}, "trace"),
98
+ yy: {},
99
+ symbols_: {
100
+ error: 2,
101
+ start: 3,
102
+ SPACE: 4,
103
+ NL: 5,
104
+ SD: 6,
105
+ document: 7,
106
+ line: 8,
107
+ statement: 9,
108
+ classDefStatement: 10,
109
+ styleStatement: 11,
110
+ cssClassStatement: 12,
111
+ idStatement: 13,
112
+ DESCR: 14,
113
+ "-->": 15,
114
+ HIDE_EMPTY: 16,
115
+ scale: 17,
116
+ WIDTH: 18,
117
+ COMPOSIT_STATE: 19,
118
+ STRUCT_START: 20,
119
+ STRUCT_STOP: 21,
120
+ STATE_DESCR: 22,
121
+ AS: 23,
122
+ ID: 24,
123
+ FORK: 25,
124
+ JOIN: 26,
125
+ CHOICE: 27,
126
+ CONCURRENT: 28,
127
+ note: 29,
128
+ notePosition: 30,
129
+ NOTE_TEXT: 31,
130
+ direction: 32,
131
+ acc_title: 33,
132
+ acc_title_value: 34,
133
+ acc_descr: 35,
134
+ acc_descr_value: 36,
135
+ acc_descr_multiline_value: 37,
136
+ CLICK: 38,
137
+ STRING: 39,
138
+ HREF: 40,
139
+ classDef: 41,
140
+ CLASSDEF_ID: 42,
141
+ CLASSDEF_STYLEOPTS: 43,
142
+ DEFAULT: 44,
143
+ style: 45,
144
+ STYLE_IDS: 46,
145
+ STYLEDEF_STYLEOPTS: 47,
146
+ class: 48,
147
+ CLASSENTITY_IDS: 49,
148
+ STYLECLASS: 50,
149
+ direction_tb: 51,
150
+ direction_bt: 52,
151
+ direction_rl: 53,
152
+ direction_lr: 54,
153
+ eol: 55,
154
+ ";": 56,
155
+ EDGE_STATE: 57,
156
+ STYLE_SEPARATOR: 58,
157
+ left_of: 59,
158
+ right_of: 60,
159
+ $accept: 0,
160
+ $end: 1
161
+ },
162
+ terminals_: {
163
+ 2: "error",
164
+ 4: "SPACE",
165
+ 5: "NL",
166
+ 6: "SD",
167
+ 14: "DESCR",
168
+ 15: "-->",
169
+ 16: "HIDE_EMPTY",
170
+ 17: "scale",
171
+ 18: "WIDTH",
172
+ 19: "COMPOSIT_STATE",
173
+ 20: "STRUCT_START",
174
+ 21: "STRUCT_STOP",
175
+ 22: "STATE_DESCR",
176
+ 23: "AS",
177
+ 24: "ID",
178
+ 25: "FORK",
179
+ 26: "JOIN",
180
+ 27: "CHOICE",
181
+ 28: "CONCURRENT",
182
+ 29: "note",
183
+ 31: "NOTE_TEXT",
184
+ 33: "acc_title",
185
+ 34: "acc_title_value",
186
+ 35: "acc_descr",
187
+ 36: "acc_descr_value",
188
+ 37: "acc_descr_multiline_value",
189
+ 38: "CLICK",
190
+ 39: "STRING",
191
+ 40: "HREF",
192
+ 41: "classDef",
193
+ 42: "CLASSDEF_ID",
194
+ 43: "CLASSDEF_STYLEOPTS",
195
+ 44: "DEFAULT",
196
+ 45: "style",
197
+ 46: "STYLE_IDS",
198
+ 47: "STYLEDEF_STYLEOPTS",
199
+ 48: "class",
200
+ 49: "CLASSENTITY_IDS",
201
+ 50: "STYLECLASS",
202
+ 51: "direction_tb",
203
+ 52: "direction_bt",
204
+ 53: "direction_rl",
205
+ 54: "direction_lr",
206
+ 56: ";",
207
+ 57: "EDGE_STATE",
208
+ 58: "STYLE_SEPARATOR",
209
+ 59: "left_of",
210
+ 60: "right_of"
211
+ },
212
+ productions_: [
213
+ 0,
214
+ [3, 2],
215
+ [3, 2],
216
+ [3, 2],
217
+ [7, 0],
218
+ [7, 2],
219
+ [8, 2],
220
+ [8, 1],
221
+ [8, 1],
222
+ [9, 1],
223
+ [9, 1],
224
+ [9, 1],
225
+ [9, 1],
226
+ [9, 2],
227
+ [9, 3],
228
+ [9, 4],
229
+ [9, 1],
230
+ [9, 2],
231
+ [9, 1],
232
+ [9, 4],
233
+ [9, 3],
234
+ [9, 6],
235
+ [9, 1],
236
+ [9, 1],
237
+ [9, 1],
238
+ [9, 1],
239
+ [9, 4],
240
+ [9, 4],
241
+ [9, 1],
242
+ [9, 2],
243
+ [9, 2],
244
+ [9, 1],
245
+ [9, 5],
246
+ [9, 5],
247
+ [10, 3],
248
+ [10, 3],
249
+ [11, 3],
250
+ [12, 3],
251
+ [32, 1],
252
+ [32, 1],
253
+ [32, 1],
254
+ [32, 1],
255
+ [55, 1],
256
+ [55, 1],
257
+ [13, 1],
258
+ [13, 1],
259
+ [13, 3],
260
+ [13, 3],
261
+ [30, 1],
262
+ [30, 1]
263
+ ],
264
+ performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
265
+ var s = a.length - 1;
266
+ switch (i) {
267
+ case 3: return r.setRootDoc(a[s]), a[s];
268
+ case 4:
269
+ this.$ = [];
270
+ break;
271
+ case 5:
272
+ a[s] != "nl" && (a[s - 1].push(a[s]), this.$ = a[s - 1]);
273
+ break;
274
+ case 6:
275
+ case 7:
276
+ this.$ = a[s];
277
+ break;
278
+ case 8:
279
+ this.$ = "nl";
280
+ break;
281
+ case 12:
282
+ this.$ = a[s];
283
+ break;
284
+ case 13:
285
+ let e = a[s - 1];
286
+ e.description = r.trimColon(a[s]), this.$ = e;
287
+ break;
288
+ case 14:
289
+ this.$ = {
290
+ stmt: "relation",
291
+ state1: a[s - 2],
292
+ state2: a[s]
293
+ };
294
+ break;
295
+ case 15:
296
+ let t = r.trimColon(a[s]);
297
+ this.$ = {
298
+ stmt: "relation",
299
+ state1: a[s - 3],
300
+ state2: a[s - 1],
301
+ description: t
302
+ };
303
+ break;
304
+ case 19:
305
+ this.$ = {
306
+ stmt: "state",
307
+ id: a[s - 3],
308
+ type: "default",
309
+ description: "",
310
+ doc: a[s - 1]
311
+ };
312
+ break;
313
+ case 20:
314
+ var c = a[s], l = a[s - 2].trim();
315
+ if (a[s].match(":")) {
316
+ var u = a[s].split(":");
317
+ c = u[0], l = [l, u[1]];
318
+ }
319
+ this.$ = {
320
+ stmt: "state",
321
+ id: c,
322
+ type: "default",
323
+ description: l
324
+ };
325
+ break;
326
+ case 21:
327
+ this.$ = {
328
+ stmt: "state",
329
+ id: a[s - 3],
330
+ type: "default",
331
+ description: a[s - 5],
332
+ doc: a[s - 1]
333
+ };
334
+ break;
335
+ case 22:
336
+ this.$ = {
337
+ stmt: "state",
338
+ id: a[s],
339
+ type: "fork"
340
+ };
341
+ break;
342
+ case 23:
343
+ this.$ = {
344
+ stmt: "state",
345
+ id: a[s],
346
+ type: "join"
347
+ };
348
+ break;
349
+ case 24:
350
+ this.$ = {
351
+ stmt: "state",
352
+ id: a[s],
353
+ type: "choice"
354
+ };
355
+ break;
356
+ case 25:
357
+ this.$ = {
358
+ stmt: "state",
359
+ id: r.getDividerId(),
360
+ type: "divider"
361
+ };
362
+ break;
363
+ case 26:
364
+ this.$ = {
365
+ stmt: "state",
366
+ id: a[s - 1].trim(),
367
+ note: {
368
+ position: a[s - 2].trim(),
369
+ text: a[s].trim()
370
+ }
371
+ };
372
+ break;
373
+ case 29:
374
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
375
+ break;
376
+ case 30:
377
+ case 31:
378
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
379
+ break;
380
+ case 32:
381
+ this.$ = {
382
+ stmt: "click",
383
+ id: a[s - 3],
384
+ url: a[s - 2],
385
+ tooltip: a[s - 1]
386
+ };
387
+ break;
388
+ case 33:
389
+ this.$ = {
390
+ stmt: "click",
391
+ id: a[s - 3],
392
+ url: a[s - 1],
393
+ tooltip: ""
394
+ };
395
+ break;
396
+ case 34:
397
+ case 35:
398
+ this.$ = {
399
+ stmt: "classDef",
400
+ id: a[s - 1].trim(),
401
+ classes: a[s].trim()
402
+ };
403
+ break;
404
+ case 36:
405
+ this.$ = {
406
+ stmt: "style",
407
+ id: a[s - 1].trim(),
408
+ styleClass: a[s].trim()
409
+ };
410
+ break;
411
+ case 37:
412
+ this.$ = {
413
+ stmt: "applyClass",
414
+ id: a[s - 1].trim(),
415
+ styleClass: a[s].trim()
416
+ };
417
+ break;
418
+ case 38:
419
+ r.setDirection("TB"), this.$ = {
420
+ stmt: "dir",
421
+ value: "TB"
422
+ };
423
+ break;
424
+ case 39:
425
+ r.setDirection("BT"), this.$ = {
426
+ stmt: "dir",
427
+ value: "BT"
428
+ };
429
+ break;
430
+ case 40:
431
+ r.setDirection("RL"), this.$ = {
432
+ stmt: "dir",
433
+ value: "RL"
434
+ };
435
+ break;
436
+ case 41:
437
+ r.setDirection("LR"), this.$ = {
438
+ stmt: "dir",
439
+ value: "LR"
440
+ };
441
+ break;
442
+ case 44:
443
+ case 45:
444
+ this.$ = {
445
+ stmt: "state",
446
+ id: a[s].trim(),
447
+ type: "default",
448
+ description: ""
449
+ };
450
+ break;
451
+ case 46:
452
+ this.$ = {
453
+ stmt: "state",
454
+ id: a[s - 2].trim(),
455
+ classes: [a[s].trim()],
456
+ type: "default",
457
+ description: ""
458
+ };
459
+ break;
460
+ case 47:
461
+ this.$ = {
462
+ stmt: "state",
463
+ id: a[s - 2].trim(),
464
+ classes: [a[s].trim()],
465
+ type: "default",
466
+ description: ""
467
+ };
468
+ break;
469
+ }
470
+ }, "anonymous"),
471
+ table: [
472
+ {
473
+ 3: 1,
474
+ 4: n,
475
+ 5: r,
476
+ 6: i
477
+ },
478
+ { 1: [3] },
479
+ {
480
+ 3: 5,
481
+ 4: n,
482
+ 5: r,
483
+ 6: i
484
+ },
485
+ {
486
+ 3: 6,
487
+ 4: n,
488
+ 5: r,
489
+ 6: i
490
+ },
491
+ e([
492
+ 1,
493
+ 4,
494
+ 5,
495
+ 16,
496
+ 17,
497
+ 19,
498
+ 22,
499
+ 24,
500
+ 25,
501
+ 26,
502
+ 27,
503
+ 28,
504
+ 29,
505
+ 33,
506
+ 35,
507
+ 37,
508
+ 38,
509
+ 41,
510
+ 45,
511
+ 48,
512
+ 51,
513
+ 52,
514
+ 53,
515
+ 54,
516
+ 57
517
+ ], a, { 7: 7 }),
518
+ { 1: [2, 1] },
519
+ { 1: [2, 2] },
520
+ {
521
+ 1: [2, 3],
522
+ 4: o,
523
+ 5: s,
524
+ 8: 8,
525
+ 9: 10,
526
+ 10: 12,
527
+ 11: 13,
528
+ 12: 14,
529
+ 13: 15,
530
+ 16: c,
531
+ 17: l,
532
+ 19: u,
533
+ 22: d,
534
+ 24: f,
535
+ 25: p,
536
+ 26: m,
537
+ 27: h,
538
+ 28: g,
539
+ 29: _,
540
+ 32: 25,
541
+ 33: v,
542
+ 35: y,
543
+ 37: b,
544
+ 38: x,
545
+ 41: S,
546
+ 45: C,
547
+ 48: w,
548
+ 51: T,
549
+ 52: E,
550
+ 53: D,
551
+ 54: O,
552
+ 57: k
553
+ },
554
+ e(A, [2, 5]),
555
+ {
556
+ 9: 39,
557
+ 10: 12,
558
+ 11: 13,
559
+ 12: 14,
560
+ 13: 15,
561
+ 16: c,
562
+ 17: l,
563
+ 19: u,
564
+ 22: d,
565
+ 24: f,
566
+ 25: p,
567
+ 26: m,
568
+ 27: h,
569
+ 28: g,
570
+ 29: _,
571
+ 32: 25,
572
+ 33: v,
573
+ 35: y,
574
+ 37: b,
575
+ 38: x,
576
+ 41: S,
577
+ 45: C,
578
+ 48: w,
579
+ 51: T,
580
+ 52: E,
581
+ 53: D,
582
+ 54: O,
583
+ 57: k
584
+ },
585
+ e(A, [2, 7]),
586
+ e(A, [2, 8]),
587
+ e(A, [2, 9]),
588
+ e(A, [2, 10]),
589
+ e(A, [2, 11]),
590
+ e(A, [2, 12], {
591
+ 14: [1, 40],
592
+ 15: [1, 41]
593
+ }),
594
+ e(A, [2, 16]),
595
+ { 18: [1, 42] },
596
+ e(A, [2, 18], { 20: [1, 43] }),
597
+ { 23: [1, 44] },
598
+ e(A, [2, 22]),
599
+ e(A, [2, 23]),
600
+ e(A, [2, 24]),
601
+ e(A, [2, 25]),
602
+ {
603
+ 30: 45,
604
+ 31: [1, 46],
605
+ 59: [1, 47],
606
+ 60: [1, 48]
607
+ },
608
+ e(A, [2, 28]),
609
+ { 34: [1, 49] },
610
+ { 36: [1, 50] },
611
+ e(A, [2, 31]),
612
+ {
613
+ 13: 51,
614
+ 24: f,
615
+ 57: k
616
+ },
617
+ {
618
+ 42: [1, 52],
619
+ 44: [1, 53]
620
+ },
621
+ { 46: [1, 54] },
622
+ { 49: [1, 55] },
623
+ e(j, [2, 44], { 58: [1, 56] }),
624
+ e(j, [2, 45], { 58: [1, 57] }),
625
+ e(A, [2, 38]),
626
+ e(A, [2, 39]),
627
+ e(A, [2, 40]),
628
+ e(A, [2, 41]),
629
+ e(A, [2, 6]),
630
+ e(A, [2, 13]),
631
+ {
632
+ 13: 58,
633
+ 24: f,
634
+ 57: k
635
+ },
636
+ e(A, [2, 17]),
637
+ e(M, a, { 7: 59 }),
638
+ { 24: [1, 60] },
639
+ { 24: [1, 61] },
640
+ { 23: [1, 62] },
641
+ { 24: [2, 48] },
642
+ { 24: [2, 49] },
643
+ e(A, [2, 29]),
644
+ e(A, [2, 30]),
645
+ {
646
+ 39: [1, 63],
647
+ 40: [1, 64]
648
+ },
649
+ { 43: [1, 65] },
650
+ { 43: [1, 66] },
651
+ { 47: [1, 67] },
652
+ { 50: [1, 68] },
653
+ { 24: [1, 69] },
654
+ { 24: [1, 70] },
655
+ e(A, [2, 14], { 14: [1, 71] }),
656
+ {
657
+ 4: o,
658
+ 5: s,
659
+ 8: 8,
660
+ 9: 10,
661
+ 10: 12,
662
+ 11: 13,
663
+ 12: 14,
664
+ 13: 15,
665
+ 16: c,
666
+ 17: l,
667
+ 19: u,
668
+ 21: [1, 72],
669
+ 22: d,
670
+ 24: f,
671
+ 25: p,
672
+ 26: m,
673
+ 27: h,
674
+ 28: g,
675
+ 29: _,
676
+ 32: 25,
677
+ 33: v,
678
+ 35: y,
679
+ 37: b,
680
+ 38: x,
681
+ 41: S,
682
+ 45: C,
683
+ 48: w,
684
+ 51: T,
685
+ 52: E,
686
+ 53: D,
687
+ 54: O,
688
+ 57: k
689
+ },
690
+ e(A, [2, 20], { 20: [1, 73] }),
691
+ { 31: [1, 74] },
692
+ { 24: [1, 75] },
693
+ { 39: [1, 76] },
694
+ { 39: [1, 77] },
695
+ e(A, [2, 34]),
696
+ e(A, [2, 35]),
697
+ e(A, [2, 36]),
698
+ e(A, [2, 37]),
699
+ e(j, [2, 46]),
700
+ e(j, [2, 47]),
701
+ e(A, [2, 15]),
702
+ e(A, [2, 19]),
703
+ e(M, a, { 7: 78 }),
704
+ e(A, [2, 26]),
705
+ e(A, [2, 27]),
706
+ { 5: [1, 79] },
707
+ { 5: [1, 80] },
708
+ {
709
+ 4: o,
710
+ 5: s,
711
+ 8: 8,
712
+ 9: 10,
713
+ 10: 12,
714
+ 11: 13,
715
+ 12: 14,
716
+ 13: 15,
717
+ 16: c,
718
+ 17: l,
719
+ 19: u,
720
+ 21: [1, 81],
721
+ 22: d,
722
+ 24: f,
723
+ 25: p,
724
+ 26: m,
725
+ 27: h,
726
+ 28: g,
727
+ 29: _,
728
+ 32: 25,
729
+ 33: v,
730
+ 35: y,
731
+ 37: b,
732
+ 38: x,
733
+ 41: S,
734
+ 45: C,
735
+ 48: w,
736
+ 51: T,
737
+ 52: E,
738
+ 53: D,
739
+ 54: O,
740
+ 57: k
741
+ },
742
+ e(A, [2, 32]),
743
+ e(A, [2, 33]),
744
+ e(A, [2, 21])
745
+ ],
746
+ defaultActions: {
747
+ 5: [2, 1],
748
+ 6: [2, 2],
749
+ 47: [2, 48],
750
+ 48: [2, 49]
751
+ },
752
+ parseError: /* @__PURE__ */ t(function(e, t) {
753
+ if (t.recoverable) this.trace(e);
754
+ else {
755
+ var n = Error(e);
756
+ throw n.hash = t, n;
757
+ }
758
+ }, "parseError"),
759
+ parse: /* @__PURE__ */ t(function(e) {
760
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
761
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
762
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
763
+ var v = h.yylloc;
764
+ o.push(v);
765
+ var y = h.options && h.options.ranges;
766
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
767
+ function b(e) {
768
+ r.length -= 2 * e, a.length -= e, o.length -= e;
769
+ }
770
+ t(b, "popStack");
771
+ function x() {
772
+ var e = i.pop() || h.lex() || p;
773
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
774
+ }
775
+ t(x, "lex");
776
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
777
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S == null && (S = x()), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
778
+ var M = "";
779
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
780
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
781
+ text: h.match,
782
+ token: this.terminals_[S] || S,
783
+ line: h.yylineno,
784
+ loc: v,
785
+ expected: j
786
+ });
787
+ }
788
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
789
+ switch (T[0]) {
790
+ case 1:
791
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
792
+ break;
793
+ case 2:
794
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
795
+ first_line: o[o.length - (k || 1)].first_line,
796
+ last_line: o[o.length - 1].last_line,
797
+ first_column: o[o.length - (k || 1)].first_column,
798
+ last_column: o[o.length - 1].last_column
799
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
800
+ c,
801
+ u,
802
+ l,
803
+ g.yy,
804
+ T[1],
805
+ a,
806
+ o
807
+ ].concat(m)), E !== void 0) return E;
808
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
809
+ break;
810
+ case 3: return !0;
811
+ }
812
+ }
813
+ return !0;
814
+ }, "parse")
815
+ };
816
+ N.lexer = /* @__PURE__ */ (function() {
817
+ return {
818
+ EOF: 1,
819
+ parseError: /* @__PURE__ */ t(function(e, t) {
820
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
821
+ else throw Error(e);
822
+ }, "parseError"),
823
+ setInput: /* @__PURE__ */ t(function(e, t) {
824
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
825
+ first_line: 1,
826
+ first_column: 0,
827
+ last_line: 1,
828
+ last_column: 0
829
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
830
+ }, "setInput"),
831
+ input: /* @__PURE__ */ t(function() {
832
+ var e = this._input[0];
833
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
834
+ }, "input"),
835
+ unput: /* @__PURE__ */ t(function(e) {
836
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
837
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
838
+ var r = this.match.split(/(?:\r\n?|\n)/g);
839
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
840
+ var i = this.yylloc.range;
841
+ return this.yylloc = {
842
+ first_line: this.yylloc.first_line,
843
+ last_line: this.yylineno + 1,
844
+ first_column: this.yylloc.first_column,
845
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
846
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
847
+ }, "unput"),
848
+ more: /* @__PURE__ */ t(function() {
849
+ return this._more = !0, this;
850
+ }, "more"),
851
+ reject: /* @__PURE__ */ t(function() {
852
+ if (this.options.backtrack_lexer) this._backtrack = !0;
853
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
854
+ text: "",
855
+ token: null,
856
+ line: this.yylineno
857
+ });
858
+ return this;
859
+ }, "reject"),
860
+ less: /* @__PURE__ */ t(function(e) {
861
+ this.unput(this.match.slice(e));
862
+ }, "less"),
863
+ pastInput: /* @__PURE__ */ t(function() {
864
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
865
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
866
+ }, "pastInput"),
867
+ upcomingInput: /* @__PURE__ */ t(function() {
868
+ var e = this.match;
869
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
870
+ }, "upcomingInput"),
871
+ showPosition: /* @__PURE__ */ t(function() {
872
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
873
+ return e + this.upcomingInput() + "\n" + t + "^";
874
+ }, "showPosition"),
875
+ test_match: /* @__PURE__ */ t(function(e, t) {
876
+ var n, r, i;
877
+ if (this.options.backtrack_lexer && (i = {
878
+ yylineno: this.yylineno,
879
+ yylloc: {
880
+ first_line: this.yylloc.first_line,
881
+ last_line: this.last_line,
882
+ first_column: this.yylloc.first_column,
883
+ last_column: this.yylloc.last_column
884
+ },
885
+ yytext: this.yytext,
886
+ match: this.match,
887
+ matches: this.matches,
888
+ matched: this.matched,
889
+ yyleng: this.yyleng,
890
+ offset: this.offset,
891
+ _more: this._more,
892
+ _input: this._input,
893
+ yy: this.yy,
894
+ conditionStack: this.conditionStack.slice(0),
895
+ done: this.done
896
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
897
+ first_line: this.yylloc.last_line,
898
+ last_line: this.yylineno + 1,
899
+ first_column: this.yylloc.last_column,
900
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
901
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
902
+ if (this._backtrack) {
903
+ for (var a in i) this[a] = i[a];
904
+ return !1;
905
+ }
906
+ return !1;
907
+ }, "test_match"),
908
+ next: /* @__PURE__ */ t(function() {
909
+ if (this.done) return this.EOF;
910
+ this._input || (this.done = !0);
911
+ var e, t, n, r;
912
+ this._more || (this.yytext = "", this.match = "");
913
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
914
+ if (t = n, r = a, this.options.backtrack_lexer) {
915
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
916
+ if (this._backtrack) {
917
+ t = !1;
918
+ continue;
919
+ } else return !1;
920
+ } else if (!this.options.flex) break;
921
+ }
922
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
923
+ text: "",
924
+ token: null,
925
+ line: this.yylineno
926
+ });
927
+ }, "next"),
928
+ lex: /* @__PURE__ */ t(function() {
929
+ return this.next() || this.lex();
930
+ }, "lex"),
931
+ begin: /* @__PURE__ */ t(function(e) {
932
+ this.conditionStack.push(e);
933
+ }, "begin"),
934
+ popState: /* @__PURE__ */ t(function() {
935
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
936
+ }, "popState"),
937
+ _currentRules: /* @__PURE__ */ t(function() {
938
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
939
+ }, "_currentRules"),
940
+ topState: /* @__PURE__ */ t(function(e) {
941
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
942
+ }, "topState"),
943
+ pushState: /* @__PURE__ */ t(function(e) {
944
+ this.begin(e);
945
+ }, "pushState"),
946
+ stateStackSize: /* @__PURE__ */ t(function() {
947
+ return this.conditionStack.length;
948
+ }, "stateStackSize"),
949
+ options: { "case-insensitive": !0 },
950
+ performAction: /* @__PURE__ */ t(function(e, t, n, r) {
951
+ switch (n) {
952
+ case 0: return 38;
953
+ case 1: return 40;
954
+ case 2: return 39;
955
+ case 3: return 44;
956
+ case 4: return 51;
957
+ case 5: return 52;
958
+ case 6: return 53;
959
+ case 7: return 54;
960
+ case 8: break;
961
+ case 9: break;
962
+ case 10: return 5;
963
+ case 11: break;
964
+ case 12: break;
965
+ case 13: break;
966
+ case 14: break;
967
+ case 15: return this.pushState("SCALE"), 17;
968
+ case 16: return 18;
969
+ case 17:
970
+ this.popState();
971
+ break;
972
+ case 18: return this.begin("acc_title"), 33;
973
+ case 19: return this.popState(), "acc_title_value";
974
+ case 20: return this.begin("acc_descr"), 35;
975
+ case 21: return this.popState(), "acc_descr_value";
976
+ case 22:
977
+ this.begin("acc_descr_multiline");
978
+ break;
979
+ case 23:
980
+ this.popState();
981
+ break;
982
+ case 24: return "acc_descr_multiline_value";
983
+ case 25: return this.pushState("CLASSDEF"), 41;
984
+ case 26: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
985
+ case 27: return this.popState(), this.pushState("CLASSDEFID"), 42;
986
+ case 28: return this.popState(), 43;
987
+ case 29: return this.pushState("CLASS"), 48;
988
+ case 30: return this.popState(), this.pushState("CLASS_STYLE"), 49;
989
+ case 31: return this.popState(), 50;
990
+ case 32: return this.pushState("STYLE"), 45;
991
+ case 33: return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
992
+ case 34: return this.popState(), 47;
993
+ case 35: return this.pushState("SCALE"), 17;
994
+ case 36: return 18;
995
+ case 37:
996
+ this.popState();
997
+ break;
998
+ case 38:
999
+ this.pushState("STATE");
1000
+ break;
1001
+ case 39: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 25;
1002
+ case 40: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 26;
1003
+ case 41: return this.popState(), t.yytext = t.yytext.slice(0, -10).trim(), 27;
1004
+ case 42: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 25;
1005
+ case 43: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 26;
1006
+ case 44: return this.popState(), t.yytext = t.yytext.slice(0, -10).trim(), 27;
1007
+ case 45: return 51;
1008
+ case 46: return 52;
1009
+ case 47: return 53;
1010
+ case 48: return 54;
1011
+ case 49:
1012
+ this.pushState("STATE_STRING");
1013
+ break;
1014
+ case 50: return this.pushState("STATE_ID"), "AS";
1015
+ case 51: return this.popState(), "ID";
1016
+ case 52:
1017
+ this.popState();
1018
+ break;
1019
+ case 53: return "STATE_DESCR";
1020
+ case 54: return 19;
1021
+ case 55:
1022
+ this.popState();
1023
+ break;
1024
+ case 56: return this.popState(), this.pushState("struct"), 20;
1025
+ case 57: break;
1026
+ case 58: return this.popState(), 21;
1027
+ case 59: break;
1028
+ case 60: return this.begin("NOTE"), 29;
1029
+ case 61: return this.popState(), this.pushState("NOTE_ID"), 59;
1030
+ case 62: return this.popState(), this.pushState("NOTE_ID"), 60;
1031
+ case 63:
1032
+ this.popState(), this.pushState("FLOATING_NOTE");
1033
+ break;
1034
+ case 64: return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
1035
+ case 65: break;
1036
+ case 66: return "NOTE_TEXT";
1037
+ case 67: return this.popState(), "ID";
1038
+ case 68: return this.popState(), this.pushState("NOTE_TEXT"), 24;
1039
+ case 69: return this.popState(), t.yytext = t.yytext.substr(2).trim(), 31;
1040
+ case 70: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 31;
1041
+ case 71: return 6;
1042
+ case 72: return 6;
1043
+ case 73: return 16;
1044
+ case 74: return 57;
1045
+ case 75: return 24;
1046
+ case 76: return t.yytext = t.yytext.trim(), 14;
1047
+ case 77: return 15;
1048
+ case 78: return 28;
1049
+ case 79: return 58;
1050
+ case 80: return 5;
1051
+ case 81: return "INVALID";
1052
+ }
1053
+ }, "anonymous"),
1054
+ rules: [
1055
+ /^(?:click\b)/i,
1056
+ /^(?:href\b)/i,
1057
+ /^(?:"[^"]*")/i,
1058
+ /^(?:default\b)/i,
1059
+ /^(?:.*direction\s+TB[^\n]*)/i,
1060
+ /^(?:.*direction\s+BT[^\n]*)/i,
1061
+ /^(?:.*direction\s+RL[^\n]*)/i,
1062
+ /^(?:.*direction\s+LR[^\n]*)/i,
1063
+ /^(?:%%(?!\{)[^\n]*)/i,
1064
+ /^(?:[^\}]%%[^\n]*)/i,
1065
+ /^(?:[\n]+)/i,
1066
+ /^(?:[\s]+)/i,
1067
+ /^(?:((?!\n)\s)+)/i,
1068
+ /^(?:#[^\n]*)/i,
1069
+ /^(?:%[^\n]*)/i,
1070
+ /^(?:scale\s+)/i,
1071
+ /^(?:\d+)/i,
1072
+ /^(?:\s+width\b)/i,
1073
+ /^(?:accTitle\s*:\s*)/i,
1074
+ /^(?:(?!\n||)*[^\n]*)/i,
1075
+ /^(?:accDescr\s*:\s*)/i,
1076
+ /^(?:(?!\n||)*[^\n]*)/i,
1077
+ /^(?:accDescr\s*\{\s*)/i,
1078
+ /^(?:[\}])/i,
1079
+ /^(?:[^\}]*)/i,
1080
+ /^(?:classDef\s+)/i,
1081
+ /^(?:DEFAULT\s+)/i,
1082
+ /^(?:\w+\s+)/i,
1083
+ /^(?:[^\n]*)/i,
1084
+ /^(?:class\s+)/i,
1085
+ /^(?:(\w+)+((,\s*\w+)*))/i,
1086
+ /^(?:[^\n]*)/i,
1087
+ /^(?:style\s+)/i,
1088
+ /^(?:[\w,]+\s+)/i,
1089
+ /^(?:[^\n]*)/i,
1090
+ /^(?:scale\s+)/i,
1091
+ /^(?:\d+)/i,
1092
+ /^(?:\s+width\b)/i,
1093
+ /^(?:state\s+)/i,
1094
+ /^(?:.*<<fork>>)/i,
1095
+ /^(?:.*<<join>>)/i,
1096
+ /^(?:.*<<choice>>)/i,
1097
+ /^(?:.*\[\[fork\]\])/i,
1098
+ /^(?:.*\[\[join\]\])/i,
1099
+ /^(?:.*\[\[choice\]\])/i,
1100
+ /^(?:.*direction\s+TB[^\n]*)/i,
1101
+ /^(?:.*direction\s+BT[^\n]*)/i,
1102
+ /^(?:.*direction\s+RL[^\n]*)/i,
1103
+ /^(?:.*direction\s+LR[^\n]*)/i,
1104
+ /^(?:["])/i,
1105
+ /^(?:\s*as\s+)/i,
1106
+ /^(?:[^\n\{]*)/i,
1107
+ /^(?:["])/i,
1108
+ /^(?:[^"]*)/i,
1109
+ /^(?:[^\n\s\{]+)/i,
1110
+ /^(?:\n)/i,
1111
+ /^(?:\{)/i,
1112
+ /^(?:%%(?!\{)[^\n]*)/i,
1113
+ /^(?:\})/i,
1114
+ /^(?:[\n])/i,
1115
+ /^(?:note\s+)/i,
1116
+ /^(?:left of\b)/i,
1117
+ /^(?:right of\b)/i,
1118
+ /^(?:")/i,
1119
+ /^(?:\s*as\s*)/i,
1120
+ /^(?:["])/i,
1121
+ /^(?:[^"]*)/i,
1122
+ /^(?:[^\n]*)/i,
1123
+ /^(?:\s*[^:\n\s\-]+)/i,
1124
+ /^(?:\s*:[^:\n;]+)/i,
1125
+ /^(?:[\s\S]*?end note\b)/i,
1126
+ /^(?:stateDiagram\s+)/i,
1127
+ /^(?:stateDiagram-v2\s+)/i,
1128
+ /^(?:hide empty description\b)/i,
1129
+ /^(?:\[\*\])/i,
1130
+ /^(?:[^:\n\s\-\{]+)/i,
1131
+ /^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,
1132
+ /^(?:-->)/i,
1133
+ /^(?:--)/i,
1134
+ /^(?::::)/i,
1135
+ /^(?:$)/i,
1136
+ /^(?:.)/i
1137
+ ],
1138
+ conditions: {
1139
+ LINE: {
1140
+ rules: [12, 13],
1141
+ inclusive: !1
1142
+ },
1143
+ struct: {
1144
+ rules: [
1145
+ 12,
1146
+ 13,
1147
+ 25,
1148
+ 29,
1149
+ 32,
1150
+ 38,
1151
+ 45,
1152
+ 46,
1153
+ 47,
1154
+ 48,
1155
+ 57,
1156
+ 58,
1157
+ 59,
1158
+ 60,
1159
+ 74,
1160
+ 75,
1161
+ 76,
1162
+ 77,
1163
+ 78,
1164
+ 79
1165
+ ],
1166
+ inclusive: !1
1167
+ },
1168
+ FLOATING_NOTE_ID: {
1169
+ rules: [67],
1170
+ inclusive: !1
1171
+ },
1172
+ FLOATING_NOTE: {
1173
+ rules: [
1174
+ 64,
1175
+ 65,
1176
+ 66
1177
+ ],
1178
+ inclusive: !1
1179
+ },
1180
+ NOTE_TEXT: {
1181
+ rules: [69, 70],
1182
+ inclusive: !1
1183
+ },
1184
+ NOTE_ID: {
1185
+ rules: [68],
1186
+ inclusive: !1
1187
+ },
1188
+ NOTE: {
1189
+ rules: [
1190
+ 61,
1191
+ 62,
1192
+ 63
1193
+ ],
1194
+ inclusive: !1
1195
+ },
1196
+ STYLEDEF_STYLEOPTS: {
1197
+ rules: [],
1198
+ inclusive: !1
1199
+ },
1200
+ STYLEDEF_STYLES: {
1201
+ rules: [34],
1202
+ inclusive: !1
1203
+ },
1204
+ STYLE_IDS: {
1205
+ rules: [],
1206
+ inclusive: !1
1207
+ },
1208
+ STYLE: {
1209
+ rules: [33],
1210
+ inclusive: !1
1211
+ },
1212
+ CLASS_STYLE: {
1213
+ rules: [31],
1214
+ inclusive: !1
1215
+ },
1216
+ CLASS: {
1217
+ rules: [30],
1218
+ inclusive: !1
1219
+ },
1220
+ CLASSDEFID: {
1221
+ rules: [28],
1222
+ inclusive: !1
1223
+ },
1224
+ CLASSDEF: {
1225
+ rules: [26, 27],
1226
+ inclusive: !1
1227
+ },
1228
+ acc_descr_multiline: {
1229
+ rules: [23, 24],
1230
+ inclusive: !1
1231
+ },
1232
+ acc_descr: {
1233
+ rules: [21],
1234
+ inclusive: !1
1235
+ },
1236
+ acc_title: {
1237
+ rules: [19],
1238
+ inclusive: !1
1239
+ },
1240
+ SCALE: {
1241
+ rules: [
1242
+ 16,
1243
+ 17,
1244
+ 36,
1245
+ 37
1246
+ ],
1247
+ inclusive: !1
1248
+ },
1249
+ ALIAS: {
1250
+ rules: [],
1251
+ inclusive: !1
1252
+ },
1253
+ STATE_ID: {
1254
+ rules: [51],
1255
+ inclusive: !1
1256
+ },
1257
+ STATE_STRING: {
1258
+ rules: [52, 53],
1259
+ inclusive: !1
1260
+ },
1261
+ FORK_STATE: {
1262
+ rules: [],
1263
+ inclusive: !1
1264
+ },
1265
+ STATE: {
1266
+ rules: [
1267
+ 12,
1268
+ 13,
1269
+ 39,
1270
+ 40,
1271
+ 41,
1272
+ 42,
1273
+ 43,
1274
+ 44,
1275
+ 49,
1276
+ 50,
1277
+ 54,
1278
+ 55,
1279
+ 56
1280
+ ],
1281
+ inclusive: !1
1282
+ },
1283
+ ID: {
1284
+ rules: [12, 13],
1285
+ inclusive: !1
1286
+ },
1287
+ INITIAL: {
1288
+ rules: [
1289
+ 0,
1290
+ 1,
1291
+ 2,
1292
+ 3,
1293
+ 4,
1294
+ 5,
1295
+ 6,
1296
+ 7,
1297
+ 8,
1298
+ 9,
1299
+ 10,
1300
+ 11,
1301
+ 13,
1302
+ 14,
1303
+ 15,
1304
+ 18,
1305
+ 20,
1306
+ 22,
1307
+ 25,
1308
+ 29,
1309
+ 32,
1310
+ 35,
1311
+ 38,
1312
+ 56,
1313
+ 60,
1314
+ 71,
1315
+ 72,
1316
+ 73,
1317
+ 74,
1318
+ 75,
1319
+ 76,
1320
+ 77,
1321
+ 79,
1322
+ 80,
1323
+ 81
1324
+ ],
1325
+ inclusive: !0
1326
+ }
1327
+ }
1328
+ };
1329
+ })();
1330
+ function P() {
1331
+ this.yy = {};
1332
+ }
1333
+ return t(P, "Parser"), P.prototype = N, N.Parser = P, new P();
1334
+ })();
1335
+ _.parser = _;
1336
+ var v = _, y = "TB", b = "TB", x = "dir", S = "state", C = "root", w = "relation", T = "classDef", E = "style", D = "applyClass", O = "default", k = "divider", A = "fill:none", j = "fill: #333", M = "c", N = "markdown", P = "normal", F = "rect", I = "rectWithTitle", ee = "stateStart", te = "stateEnd", L = "divider", R = "roundedWithTitle", ne = "note", re = "noteGroup", z = "statediagram", ie = `${z}-state`, B = "transition", ae = "note", oe = `${B} note-edge`, se = `${z}-${ae}`, ce = `${z}-cluster`, le = `${z}-cluster-alt`, V = "parent", H = "note", ue = "state", U = "----", de = `${U}${H}`, W = `${U}${V}`, G = /* @__PURE__ */ t((e, t = b) => {
1337
+ if (!e.doc) return t;
1338
+ let n = t;
1339
+ for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1340
+ return n;
1341
+ }, "getDir"), fe = {
1342
+ getClasses: /* @__PURE__ */ t(function(e, t) {
1343
+ return t.db.getClasses();
1344
+ }, "getClasses"),
1345
+ draw: /* @__PURE__ */ t(async function(t, n, r, i) {
1346
+ var a, o;
1347
+ e.info("REF0:"), e.info("Drawing state diagram (v2)", n);
1348
+ let { securityLevel: s, state: l, layout: u } = c();
1349
+ i.db.extract(i.db.getRootDocV2());
1350
+ let f = i.db.getData(), g = p(n, s);
1351
+ f.type = i.type, f.layoutAlgorithm = u, f.nodeSpacing = (l == null ? void 0 : l.nodeSpacing) || 50, f.rankSpacing = (l == null ? void 0 : l.rankSpacing) || 50, c().look === "neo" ? f.markers = ["barbNeo"] : f.markers = ["barb"], f.diagramId = n, await h(f, g);
1352
+ try {
1353
+ (typeof i.db.getLinks == "function" ? i.db.getLinks() : /* @__PURE__ */ new Map()).forEach((t, n) => {
1354
+ var r;
1355
+ let i = typeof n == "string" ? n : typeof (n == null ? void 0 : n.id) == "string" ? n.id : "";
1356
+ if (!i) {
1357
+ e.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(n));
1358
+ return;
1359
+ }
1360
+ let a = (r = g.node()) == null ? void 0 : r.querySelectorAll("g"), o;
1361
+ if (a == null || a.forEach((e) => {
1362
+ var t;
1363
+ ((t = e.textContent) == null ? void 0 : t.trim()) === i && (o = e);
1364
+ }), !o) {
1365
+ e.warn("⚠️ Could not find node matching text:", i);
1366
+ return;
1367
+ }
1368
+ let s = o.parentNode;
1369
+ if (!s) {
1370
+ e.warn("⚠️ Node has no parent, cannot wrap:", i);
1371
+ return;
1372
+ }
1373
+ let c = document.createElementNS("http://www.w3.org/2000/svg", "a"), l = t.url.replace(/^"+|"+$/g, "");
1374
+ if (c.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", l), c.setAttribute("target", "_blank"), t.tooltip) {
1375
+ let e = t.tooltip.replace(/^"+|"+$/g, "");
1376
+ c.setAttribute("title", e);
1377
+ }
1378
+ s.replaceChild(c, o), c.appendChild(o), e.info("🔗 Wrapped node in <a> tag for:", i, t.url);
1379
+ });
1380
+ } catch (t) {
1381
+ e.error("❌ Error injecting clickable links:", t);
1382
+ }
1383
+ d.insertTitle(g, "statediagramTitleText", (a = l == null ? void 0 : l.titleTopMargin) == null ? 25 : a, i.db.getDiagramTitle()), m(g, 8, z, (o = l == null ? void 0 : l.useMaxWidth) == null ? !0 : o);
1384
+ }, "draw"),
1385
+ getDir: G
1386
+ }, K = /* @__PURE__ */ new Map(), q = 0;
1387
+ function J(e = "", t = 0, n = "", r = U) {
1388
+ return `${ue}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
1389
+ }
1390
+ t(J, "stateDomId");
1391
+ var pe = /* @__PURE__ */ t((t, n, r, i, a, o, s, u) => {
1392
+ e.trace("items", n), n.forEach((e) => {
1393
+ switch (e.stmt) {
1394
+ case S:
1395
+ Z(t, e, r, i, a, o, s, u);
1396
+ break;
1397
+ case O:
1398
+ Z(t, e, r, i, a, o, s, u);
1399
+ break;
1400
+ case w:
1401
+ {
1402
+ var n;
1403
+ Z(t, e.state1, r, i, a, o, s, u), Z(t, e.state2, r, i, a, o, s, u);
1404
+ let d = s === "neo", f = {
1405
+ id: "edge" + q,
1406
+ start: e.state1.id,
1407
+ end: e.state2.id,
1408
+ arrowhead: "normal",
1409
+ arrowTypeEnd: d ? "arrow_barb_neo" : "arrow_barb",
1410
+ style: A,
1411
+ labelStyle: "",
1412
+ label: l.sanitizeText((n = e.description) == null ? "" : n, c()),
1413
+ arrowheadStyle: j,
1414
+ labelpos: M,
1415
+ labelType: N,
1416
+ thickness: P,
1417
+ classes: B,
1418
+ look: s
1419
+ };
1420
+ a.push(f), q++;
1421
+ }
1422
+ break;
1423
+ }
1424
+ });
1425
+ }, "setupDoc"), Y = /* @__PURE__ */ t((e, t = b) => {
1426
+ let n = t;
1427
+ if (e.doc) for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1428
+ return n;
1429
+ }, "getDir");
1430
+ function X(e, t, n) {
1431
+ if (!t.id || t.id === "</join></fork>" || t.id === "</choice>") return;
1432
+ t.cssClasses && (Array.isArray(t.cssCompiledStyles) || (t.cssCompiledStyles = []), t.cssClasses.split(" ").forEach((e) => {
1433
+ let r = n.get(e);
1434
+ if (r) {
1435
+ var i;
1436
+ t.cssCompiledStyles = [...(i = t.cssCompiledStyles) == null ? [] : i, ...r.styles];
1437
+ }
1438
+ }));
1439
+ let r = e.find((e) => e.id === t.id);
1440
+ r ? Object.assign(r, t) : e.push(t);
1441
+ }
1442
+ t(X, "insertOrUpdateNode");
1443
+ function me(e) {
1444
+ var t, n;
1445
+ return (t = e == null || (n = e.classes) == null ? void 0 : n.join(" ")) == null ? "" : t;
1446
+ }
1447
+ t(me, "getClassesFromDbInfo");
1448
+ function he(e) {
1449
+ var t;
1450
+ return (t = e == null ? void 0 : e.styles) == null ? [] : t;
1451
+ }
1452
+ t(he, "getStylesFromDbInfo");
1453
+ var Z = /* @__PURE__ */ t((t, n, r, i, a, o, s, u) => {
1454
+ let d = n.id, f = r.get(d), p = me(f), m = he(f), h = c();
1455
+ if (e.info("dataFetcher parsedItem", n, f, m), d !== "root") {
1456
+ var g;
1457
+ let r = F;
1458
+ n.start === !0 ? r = ee : n.start === !1 && (r = te), n.type !== O && (r = n.type), K.get(d) || K.set(d, {
1459
+ id: d,
1460
+ shape: r,
1461
+ description: l.sanitizeText(d, h),
1462
+ cssClasses: `${p} ${ie}`,
1463
+ cssStyles: m
1464
+ });
1465
+ let c = K.get(d);
1466
+ if (n.description) {
1467
+ if (Array.isArray(c.description)) c.shape = I, c.description.push(n.description);
1468
+ else {
1469
+ var _;
1470
+ (_ = c.description) != null && _.length && c.description.length > 0 ? (c.shape = I, c.description === d ? c.description = [n.description] : c.description = [c.description, n.description]) : (c.shape = F, c.description = n.description);
1471
+ }
1472
+ c.description = l.sanitizeTextOrArray(c.description, h);
1473
+ }
1474
+ ((g = c.description) == null ? void 0 : g.length) === 1 && c.shape === I && (c.type === "group" ? c.shape = R : c.shape = F), !c.type && n.doc && (e.info("Setting cluster for XCX", d, Y(n)), c.type = "group", c.isGroup = !0, c.dir = Y(n), c.shape = n.type === k ? L : R, c.cssClasses = `${c.cssClasses} ${ce} ${o ? le : ""}`);
1475
+ let f = {
1476
+ labelStyle: "",
1477
+ shape: c.shape,
1478
+ label: c.description,
1479
+ cssClasses: c.cssClasses,
1480
+ cssCompiledStyles: [],
1481
+ cssStyles: c.cssStyles,
1482
+ id: d,
1483
+ dir: c.dir,
1484
+ domId: J(d, q),
1485
+ type: c.type,
1486
+ isGroup: c.type === "group",
1487
+ padding: 8,
1488
+ rx: 10,
1489
+ ry: 10,
1490
+ look: s,
1491
+ labelType: "markdown"
1492
+ };
1493
+ if (f.shape === L && (f.label = ""), t && t.id !== "root" && (e.trace("Setting node ", d, " to be child of its parent ", t.id), f.parentId = t.id), f.centerLabel = !0, n.note) {
1494
+ var v;
1495
+ let e = {
1496
+ labelStyle: "",
1497
+ shape: ne,
1498
+ label: n.note.text,
1499
+ labelType: "markdown",
1500
+ cssClasses: se,
1501
+ cssStyles: [],
1502
+ cssCompiledStyles: [],
1503
+ id: d + de + "-" + q,
1504
+ domId: J(d, q, H),
1505
+ type: c.type,
1506
+ isGroup: c.type === "group",
1507
+ padding: (v = h.flowchart) == null ? void 0 : v.padding,
1508
+ look: s,
1509
+ position: n.note.position
1510
+ }, t = d + W, r = {
1511
+ labelStyle: "",
1512
+ shape: re,
1513
+ label: n.note.text,
1514
+ cssClasses: c.cssClasses,
1515
+ cssStyles: [],
1516
+ id: d + W,
1517
+ domId: J(d, q, V),
1518
+ type: "group",
1519
+ isGroup: !0,
1520
+ padding: 16,
1521
+ look: s,
1522
+ position: n.note.position
1523
+ };
1524
+ q++, r.id = t, e.parentId = t, X(i, r, u), X(i, e, u), X(i, f, u);
1525
+ let o = d, l = e.id;
1526
+ n.note.position === "left of" && (o = e.id, l = d), a.push({
1527
+ id: o + "-" + l,
1528
+ start: o,
1529
+ end: l,
1530
+ arrowhead: "none",
1531
+ arrowTypeEnd: "",
1532
+ style: A,
1533
+ labelStyle: "",
1534
+ classes: oe,
1535
+ arrowheadStyle: j,
1536
+ labelpos: M,
1537
+ labelType: N,
1538
+ thickness: P,
1539
+ look: s
1540
+ });
1541
+ } else X(i, f, u);
1542
+ }
1543
+ n.doc && (e.trace("Adding nodes children "), pe(n, n.doc, r, i, a, !o, s, u));
1544
+ }, "dataFetcher"), ge = /* @__PURE__ */ t(() => {
1545
+ K.clear(), q = 0;
1546
+ }, "reset"), Q = {
1547
+ START_NODE: "[*]",
1548
+ START_TYPE: "start",
1549
+ END_NODE: "[*]",
1550
+ END_TYPE: "end",
1551
+ COLOR_KEYWORD: "color",
1552
+ FILL_KEYWORD: "fill",
1553
+ BG_FILL: "bgFill",
1554
+ STYLECLASS_SEP: ","
1555
+ }, _e = /* @__PURE__ */ t(() => /* @__PURE__ */ new Map(), "newClassesList"), ve = /* @__PURE__ */ t(() => ({
1556
+ relations: [],
1557
+ states: /* @__PURE__ */ new Map(),
1558
+ documents: {}
1559
+ }), "newDoc"), $ = /* @__PURE__ */ t((e) => JSON.parse(JSON.stringify(e)), "clone"), ye = (g = class {
1560
+ constructor(e) {
1561
+ this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = _e(), this.documents = { root: ve() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = u, this.setAccTitle = i, this.getAccDescription = o, this.setAccDescription = n, this.setDiagramTitle = a, this.getDiagramTitle = r, 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);
1562
+ }
1563
+ extract(e) {
1564
+ this.clear(!0);
1565
+ for (let t of Array.isArray(e) ? e : e.doc) switch (t.stmt) {
1566
+ case S:
1567
+ this.addState(t.id.trim(), t.type, t.doc, t.description, t.note);
1568
+ break;
1569
+ case w:
1570
+ this.addRelation(t.state1, t.state2, t.description);
1571
+ break;
1572
+ case T:
1573
+ this.addStyleClass(t.id.trim(), t.classes);
1574
+ break;
1575
+ case E:
1576
+ this.handleStyleDef(t);
1577
+ break;
1578
+ case D:
1579
+ this.setCssClass(t.id.trim(), t.styleClass);
1580
+ break;
1581
+ case "click":
1582
+ this.addLink(t.id, t.url, t.tooltip);
1583
+ break;
1584
+ }
1585
+ let t = this.getStates(), n = c();
1586
+ ge(), Z(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
1587
+ for (let e of this.nodes) if (Array.isArray(e.label)) {
1588
+ if (e.description = e.label.slice(1), e.isGroup && e.description.length > 0) throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);
1589
+ e.label = e.label[0];
1590
+ }
1591
+ }
1592
+ handleStyleDef(e) {
1593
+ let t = e.id.trim().split(","), n = e.styleClass.split(",");
1594
+ for (let e of t) {
1595
+ let t = this.getState(e);
1596
+ if (!t) {
1597
+ let n = e.trim();
1598
+ this.addState(n), t = this.getState(n);
1599
+ }
1600
+ t && (t.styles = n.map((e) => {
1601
+ var t;
1602
+ return (t = e.replace(/;/g, "")) == null ? void 0 : t.trim();
1603
+ }));
1604
+ }
1605
+ }
1606
+ setRootDoc(t) {
1607
+ e.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2());
1608
+ }
1609
+ docTranslator(e, t, n) {
1610
+ if (t.stmt === w) {
1611
+ this.docTranslator(e, t.state1, !0), this.docTranslator(e, t.state2, !1);
1612
+ return;
1613
+ }
1614
+ if (t.stmt === S && (t.id === Q.START_NODE ? (t.id = e.id + (n ? "_start" : "_end"), t.start = n) : t.id = t.id.trim()), t.stmt !== C && t.stmt !== S || !t.doc) return;
1615
+ let r = [], i = [];
1616
+ for (let e of t.doc) if (e.type === k) {
1617
+ let t = $(e);
1618
+ t.doc = $(i), r.push(t), i = [];
1619
+ } else i.push(e);
1620
+ if (r.length > 0 && i.length > 0) {
1621
+ let e = {
1622
+ stmt: S,
1623
+ id: f(),
1624
+ type: "divider",
1625
+ doc: $(i)
1626
+ };
1627
+ r.push($(e)), t.doc = r;
1628
+ }
1629
+ t.doc.forEach((e) => this.docTranslator(t, e, !0));
1630
+ }
1631
+ getRootDocV2() {
1632
+ return this.docTranslator({
1633
+ id: C,
1634
+ stmt: C
1635
+ }, {
1636
+ id: C,
1637
+ stmt: C,
1638
+ doc: this.rootDoc
1639
+ }, !0), {
1640
+ id: C,
1641
+ doc: this.rootDoc
1642
+ };
1643
+ }
1644
+ addState(t, n = O, r = void 0, i = void 0, a = void 0, o = void 0, s = void 0, u = void 0) {
1645
+ let d = t == null ? void 0 : t.trim();
1646
+ if (!this.currentDocument.states.has(d)) e.info("Adding state ", d, i), this.currentDocument.states.set(d, {
1647
+ stmt: S,
1648
+ id: d,
1649
+ descriptions: [],
1650
+ type: n,
1651
+ doc: r,
1652
+ note: a,
1653
+ classes: [],
1654
+ styles: [],
1655
+ textStyles: []
1656
+ });
1657
+ else {
1658
+ let e = this.currentDocument.states.get(d);
1659
+ if (!e) throw Error(`State not found: ${d}`);
1660
+ e.doc || (e.doc = r), e.type || (e.type = n);
1661
+ }
1662
+ if (i && (e.info("Setting state description", d, i), (Array.isArray(i) ? i : [i]).forEach((e) => this.addDescription(d, e.trim()))), a) {
1663
+ let e = this.currentDocument.states.get(d);
1664
+ if (!e) throw Error(`State not found: ${d}`);
1665
+ e.note = a, e.note.text = l.sanitizeText(e.note.text, c());
1666
+ }
1667
+ o && (e.info("Setting state classes", d, o), (Array.isArray(o) ? o : [o]).forEach((e) => this.setCssClass(d, e.trim()))), s && (e.info("Setting state styles", d, s), (Array.isArray(s) ? s : [s]).forEach((e) => this.setStyle(d, e.trim()))), u && (e.info("Setting state styles", d, s), (Array.isArray(u) ? u : [u]).forEach((e) => this.setTextStyle(d, e.trim())));
1668
+ }
1669
+ clear(e) {
1670
+ this.nodes = [], this.edges = [], this.documents = { root: ve() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = _e(), e || (this.links = /* @__PURE__ */ new Map(), s());
1671
+ }
1672
+ getState(e) {
1673
+ return this.currentDocument.states.get(e);
1674
+ }
1675
+ getStates() {
1676
+ return this.currentDocument.states;
1677
+ }
1678
+ logDocuments() {
1679
+ e.info("Documents = ", this.documents);
1680
+ }
1681
+ getRelations() {
1682
+ return this.currentDocument.relations;
1683
+ }
1684
+ addLink(t, n, r) {
1685
+ this.links.set(t, {
1686
+ url: n,
1687
+ tooltip: r
1688
+ }), e.warn("Adding link", t, n, r);
1689
+ }
1690
+ getLinks() {
1691
+ return this.links;
1692
+ }
1693
+ startIdIfNeeded(e = "") {
1694
+ return e === Q.START_NODE ? (this.startEndCount++, `${Q.START_TYPE}${this.startEndCount}`) : e;
1695
+ }
1696
+ startTypeIfNeeded(e = "", t = O) {
1697
+ return e === Q.START_NODE ? Q.START_TYPE : t;
1698
+ }
1699
+ endIdIfNeeded(e = "") {
1700
+ return e === Q.END_NODE ? (this.startEndCount++, `${Q.END_TYPE}${this.startEndCount}`) : e;
1701
+ }
1702
+ endTypeIfNeeded(e = "", t = O) {
1703
+ return e === Q.END_NODE ? Q.END_TYPE : t;
1704
+ }
1705
+ addRelationObjs(e, t, n = "") {
1706
+ let r = this.startIdIfNeeded(e.id.trim()), i = this.startTypeIfNeeded(e.id.trim(), e.type), a = this.startIdIfNeeded(t.id.trim()), o = this.startTypeIfNeeded(t.id.trim(), t.type);
1707
+ this.addState(r, i, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(a, o, t.doc, t.description, t.note, t.classes, t.styles, t.textStyles), this.currentDocument.relations.push({
1708
+ id1: r,
1709
+ id2: a,
1710
+ relationTitle: l.sanitizeText(n, c())
1711
+ });
1712
+ }
1713
+ addRelation(e, t, n) {
1714
+ if (typeof e == "object" && typeof t == "object") this.addRelationObjs(e, t, n);
1715
+ else if (typeof e == "string" && typeof t == "string") {
1716
+ let r = this.startIdIfNeeded(e.trim()), i = this.startTypeIfNeeded(e), a = this.endIdIfNeeded(t.trim()), o = this.endTypeIfNeeded(t);
1717
+ this.addState(r, i), this.addState(a, o), this.currentDocument.relations.push({
1718
+ id1: r,
1719
+ id2: a,
1720
+ relationTitle: n ? l.sanitizeText(n, c()) : void 0
1721
+ });
1722
+ }
1723
+ }
1724
+ addDescription(e, t) {
1725
+ var n;
1726
+ let r = this.currentDocument.states.get(e), i = t.startsWith(":") ? t.replace(":", "").trim() : t;
1727
+ r == null || (n = r.descriptions) == null || n.push(l.sanitizeText(i, c()));
1728
+ }
1729
+ cleanupLabel(e) {
1730
+ return e.startsWith(":") ? e.slice(2).trim() : e.trim();
1731
+ }
1732
+ getDividerId() {
1733
+ return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
1734
+ }
1735
+ addStyleClass(e, t = "") {
1736
+ this.classes.has(e) || this.classes.set(e, {
1737
+ id: e,
1738
+ styles: [],
1739
+ textStyles: []
1740
+ });
1741
+ let n = this.classes.get(e);
1742
+ t && n && t.split(Q.STYLECLASS_SEP).forEach((e) => {
1743
+ let t = e.replace(/([^;]*);/, "$1").trim();
1744
+ if (RegExp(Q.COLOR_KEYWORD).exec(e)) {
1745
+ let e = t.replace(Q.FILL_KEYWORD, Q.BG_FILL).replace(Q.COLOR_KEYWORD, Q.FILL_KEYWORD);
1746
+ n.textStyles.push(e);
1747
+ }
1748
+ n.styles.push(t);
1749
+ });
1750
+ }
1751
+ getClasses() {
1752
+ return this.classes;
1753
+ }
1754
+ setCssClass(e, t) {
1755
+ e.split(",").forEach((e) => {
1756
+ var n;
1757
+ let r = this.getState(e);
1758
+ if (!r) {
1759
+ let t = e.trim();
1760
+ this.addState(t), r = this.getState(t);
1761
+ }
1762
+ r == null || (n = r.classes) == null || n.push(t);
1763
+ });
1764
+ }
1765
+ setStyle(e, t) {
1766
+ var n;
1767
+ (n = this.getState(e)) == null || (n = n.styles) == null || n.push(t);
1768
+ }
1769
+ setTextStyle(e, t) {
1770
+ var n;
1771
+ (n = this.getState(e)) == null || (n = n.textStyles) == null || n.push(t);
1772
+ }
1773
+ getDirectionStatement() {
1774
+ return this.rootDoc.find((e) => e.stmt === x);
1775
+ }
1776
+ getDirection() {
1777
+ var e, t;
1778
+ return (e = (t = this.getDirectionStatement()) == null ? void 0 : t.value) == null ? y : e;
1779
+ }
1780
+ setDirection(e) {
1781
+ let t = this.getDirectionStatement();
1782
+ t ? t.value = e : this.rootDoc.unshift({
1783
+ stmt: x,
1784
+ value: e
1785
+ });
1786
+ }
1787
+ trimColon(e) {
1788
+ return e.startsWith(":") ? e.slice(1).trim() : e.trim();
1789
+ }
1790
+ getData() {
1791
+ let e = c();
1792
+ return {
1793
+ nodes: this.nodes,
1794
+ edges: this.edges,
1795
+ other: {},
1796
+ config: e,
1797
+ direction: G(this.getRootDocV2())
1798
+ };
1799
+ }
1800
+ getConfig() {
1801
+ return c().state;
1802
+ }
1803
+ }, t(g, "StateDB"), g.relationType = {
1804
+ AGGREGATION: 0,
1805
+ EXTENSION: 1,
1806
+ COMPOSITION: 2,
1807
+ DEPENDENCY: 3
1808
+ }, g), be = /* @__PURE__ */ t((e) => {
1809
+ var t;
1810
+ return `
1811
+ defs [id$="-barbEnd"] {
1812
+ fill: ${e.transitionColor};
1813
+ stroke: ${e.transitionColor};
1814
+ }
1815
+ g.stateGroup text {
1816
+ fill: ${e.nodeBorder};
1817
+ stroke: none;
1818
+ font-size: 10px;
1819
+ }
1820
+ g.stateGroup text {
1821
+ fill: ${e.textColor};
1822
+ stroke: none;
1823
+ font-size: 10px;
1824
+
1825
+ }
1826
+ g.stateGroup .state-title {
1827
+ font-weight: bolder;
1828
+ fill: ${e.stateLabelColor};
1829
+ }
1830
+
1831
+ g.stateGroup rect {
1832
+ fill: ${e.mainBkg};
1833
+ stroke: ${e.nodeBorder};
1834
+ }
1835
+
1836
+ g.stateGroup line {
1837
+ stroke: ${e.lineColor};
1838
+ stroke-width: ${e.strokeWidth || 1};
1839
+ }
1840
+
1841
+ .transition {
1842
+ stroke: ${e.transitionColor};
1843
+ stroke-width: ${e.strokeWidth || 1};
1844
+ fill: none;
1845
+ }
1846
+
1847
+ .stateGroup .composit {
1848
+ fill: ${e.background};
1849
+ border-bottom: 1px
1850
+ }
1851
+
1852
+ .stateGroup .alt-composit {
1853
+ fill: #e0e0e0;
1854
+ border-bottom: 1px
1855
+ }
1856
+
1857
+ .state-note {
1858
+ stroke: ${e.noteBorderColor};
1859
+ fill: ${e.noteBkgColor};
1860
+
1861
+ text {
1862
+ fill: ${e.noteTextColor};
1863
+ stroke: none;
1864
+ font-size: 10px;
1865
+ }
1866
+ }
1867
+
1868
+ .stateLabel .box {
1869
+ stroke: none;
1870
+ stroke-width: 0;
1871
+ fill: ${e.mainBkg};
1872
+ opacity: 0.5;
1873
+ }
1874
+
1875
+ .edgeLabel .label rect {
1876
+ fill: ${e.labelBackgroundColor};
1877
+ opacity: 0.5;
1878
+ }
1879
+ .edgeLabel {
1880
+ background-color: ${e.edgeLabelBackground};
1881
+ p {
1882
+ background-color: ${e.edgeLabelBackground};
1883
+ }
1884
+ rect {
1885
+ opacity: 0.5;
1886
+ background-color: ${e.edgeLabelBackground};
1887
+ fill: ${e.edgeLabelBackground};
1888
+ }
1889
+ text-align: center;
1890
+ }
1891
+ .edgeLabel .label text {
1892
+ fill: ${e.transitionLabelColor || e.tertiaryTextColor};
1893
+ }
1894
+ .label div .edgeLabel {
1895
+ color: ${e.transitionLabelColor || e.tertiaryTextColor};
1896
+ }
1897
+
1898
+ .stateLabel text {
1899
+ fill: ${e.stateLabelColor};
1900
+ font-size: 10px;
1901
+ font-weight: bold;
1902
+ }
1903
+
1904
+ .node circle.state-start {
1905
+ fill: ${e.specialStateColor};
1906
+ stroke: ${e.specialStateColor};
1907
+ }
1908
+
1909
+ .node .fork-join {
1910
+ fill: ${e.specialStateColor};
1911
+ stroke: ${e.specialStateColor};
1912
+ }
1913
+
1914
+ .node circle.state-end {
1915
+ fill: ${e.innerEndBackground};
1916
+ stroke: ${e.background};
1917
+ stroke-width: 1.5
1918
+ }
1919
+ .end-state-inner {
1920
+ fill: ${e.compositeBackground || e.background};
1921
+ // stroke: ${e.background};
1922
+ stroke-width: 1.5
1923
+ }
1924
+
1925
+ .node rect {
1926
+ fill: ${e.stateBkg || e.mainBkg};
1927
+ stroke: ${e.stateBorder || e.nodeBorder};
1928
+ stroke-width: ${e.strokeWidth || 1}px;
1929
+ }
1930
+ .node polygon {
1931
+ fill: ${e.mainBkg};
1932
+ stroke: ${e.stateBorder || e.nodeBorder};;
1933
+ stroke-width: ${e.strokeWidth || 1}px;
1934
+ }
1935
+ [id$="-barbEnd"] {
1936
+ fill: ${e.lineColor};
1937
+ }
1938
+
1939
+ .statediagram-cluster rect {
1940
+ fill: ${e.compositeTitleBackground};
1941
+ stroke: ${e.stateBorder || e.nodeBorder};
1942
+ stroke-width: ${e.strokeWidth || 1}px;
1943
+ }
1944
+
1945
+ .cluster-label, .nodeLabel {
1946
+ color: ${e.stateLabelColor};
1947
+ // line-height: 1;
1948
+ }
1949
+
1950
+ .statediagram-cluster rect.outer {
1951
+ rx: 5px;
1952
+ ry: 5px;
1953
+ }
1954
+ .statediagram-state .divider {
1955
+ stroke: ${e.stateBorder || e.nodeBorder};
1956
+ }
1957
+
1958
+ .statediagram-state .title-state {
1959
+ rx: 5px;
1960
+ ry: 5px;
1961
+ }
1962
+ .statediagram-cluster.statediagram-cluster .inner {
1963
+ fill: ${e.compositeBackground || e.background};
1964
+ }
1965
+ .statediagram-cluster.statediagram-cluster-alt .inner {
1966
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1967
+ }
1968
+
1969
+ .statediagram-cluster .inner {
1970
+ rx:0;
1971
+ ry:0;
1972
+ }
1973
+
1974
+ .statediagram-state rect.basic {
1975
+ rx: 5px;
1976
+ ry: 5px;
1977
+ }
1978
+ .statediagram-state rect.divider {
1979
+ stroke-dasharray: 10,10;
1980
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1981
+ }
1982
+
1983
+ .note-edge {
1984
+ stroke-dasharray: 5;
1985
+ }
1986
+
1987
+ .statediagram-note rect {
1988
+ fill: ${e.noteBkgColor};
1989
+ stroke: ${e.noteBorderColor};
1990
+ stroke-width: 1px;
1991
+ rx: 0;
1992
+ ry: 0;
1993
+ }
1994
+ .statediagram-note rect {
1995
+ fill: ${e.noteBkgColor};
1996
+ stroke: ${e.noteBorderColor};
1997
+ stroke-width: 1px;
1998
+ rx: 0;
1999
+ ry: 0;
2000
+ }
2001
+
2002
+ .statediagram-note text {
2003
+ fill: ${e.noteTextColor};
2004
+ }
2005
+
2006
+ .statediagram-note .nodeLabel {
2007
+ color: ${e.noteTextColor};
2008
+ }
2009
+ .statediagram .edgeLabel {
2010
+ color: red; // ${e.noteTextColor};
2011
+ }
2012
+
2013
+ [id$="-dependencyStart"], [id$="-dependencyEnd"] {
2014
+ fill: ${e.lineColor};
2015
+ stroke: ${e.lineColor};
2016
+ stroke-width: ${e.strokeWidth || 1};
2017
+ }
2018
+
2019
+ .statediagramTitleText {
2020
+ text-anchor: middle;
2021
+ font-size: 18px;
2022
+ fill: ${e.textColor};
2023
+ }
2024
+
2025
+ [data-look="neo"].statediagram-cluster rect {
2026
+ fill: ${e.mainBkg};
2027
+ stroke: ${e.useGradient ? "url(" + e.svgId + "-gradient)" : e.stateBorder || e.nodeBorder};
2028
+ stroke-width: ${(t = e.strokeWidth) == null ? 1 : t};
2029
+ }
2030
+ [data-look="neo"].statediagram-cluster rect.outer {
2031
+ rx: ${e.radius}px;
2032
+ ry: ${e.radius}px;
2033
+ filter: ${e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${e.svgId}-drop-shadow)`) : "none"}
2034
+ }
2035
+ `;
2036
+ }, "getStyles");
2037
+ //#endregion
2038
+ export { be as i, v as n, fe as r, ye as t };