@pi-outpost/embed 0.1.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 (250) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +63 -0
  3. package/dist/abnfDiagram-VRR7QNED-BPTALLb_.cjs +1 -0
  4. package/dist/abnfDiagram-VRR7QNED-DlAvVtuC.js +89 -0
  5. package/dist/arc-BBnpgwVQ.js +80 -0
  6. package/dist/arc-DcUn9_NX.cjs +1 -0
  7. package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +1 -0
  8. package/dist/architecture-TIHT7OUA-DDyMqjR1.js +3 -0
  9. package/dist/architectureDiagram-ZJ3FMSHR-Bh5-VPPg.cjs +36 -0
  10. package/dist/architectureDiagram-ZJ3FMSHR-D7UsY5ua.js +4120 -0
  11. package/dist/array-CApNbSU9.js +6 -0
  12. package/dist/array-DZSRzHA_.cjs +1 -0
  13. package/dist/bash-BLBHkRa_.js +169 -0
  14. package/dist/bash-DHJu-DNv.cjs +1 -0
  15. package/dist/blockDiagram-677ZJIJ3-BrXgigdO.cjs +132 -0
  16. package/dist/blockDiagram-677ZJIJ3-s-fanRPN.js +3160 -0
  17. package/dist/c-4QgYfi8K.cjs +1 -0
  18. package/dist/c-Cw4FsAeJ.js +176 -0
  19. package/dist/c4Diagram-LMCZKHZV-BbZFAi_K.js +2962 -0
  20. package/dist/c4Diagram-LMCZKHZV-DFBVQ9Uo.cjs +10 -0
  21. package/dist/channel-DV0ST12Z.js +5 -0
  22. package/dist/channel-DkMGzfUR.cjs +1 -0
  23. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  24. package/dist/chunk-2Q5K7J3B-DqJF2oYF.js +15 -0
  25. package/dist/chunk-32BRIVSS-Byu3FrKX.js +61 -0
  26. package/dist/chunk-32BRIVSS-oWSJWk-u.cjs +1 -0
  27. package/dist/chunk-52WLFC77-C9zQbcGs.js +590 -0
  28. package/dist/chunk-52WLFC77-D9PTsiCj.cjs +10 -0
  29. package/dist/chunk-5VM5RSS4-BMfgdMFU.js +5 -0
  30. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
  31. package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +82 -0
  32. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
  33. package/dist/chunk-C7G6YPKG-CDjkH_UW.cjs +1 -0
  34. package/dist/chunk-C7G6YPKG-GTlyrFFt.js +67 -0
  35. package/dist/chunk-EX3LRPZG-BBldDxGh.js +2046 -0
  36. package/dist/chunk-EX3LRPZG-u-BKCEWO.cjs +231 -0
  37. package/dist/chunk-FWX5IMBZ-h3GfgkP2.js +57 -0
  38. package/dist/chunk-FWX5IMBZ-nqBth1J9.cjs +1 -0
  39. package/dist/chunk-HOUHSVGY-CgfXy94u.cjs +1 -0
  40. package/dist/chunk-HOUHSVGY-CtRCnz1G.js +277 -0
  41. package/dist/chunk-ICXQ74PX-BmEfYj-r.cjs +2 -0
  42. package/dist/chunk-ICXQ74PX-CC59NQmW.js +1366 -0
  43. package/dist/chunk-JWPE2WC7-B_J6qwQL.js +8 -0
  44. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  45. package/dist/chunk-KEIR6QF5-BVnxrdHo.js +21388 -0
  46. package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +161 -0
  47. package/dist/chunk-MOJQB5TN-D6YxvkUY.js +490 -0
  48. package/dist/chunk-MOJQB5TN-H2vwz-oQ.cjs +88 -0
  49. package/dist/chunk-OGEWGWER-BGdqgMza.js +32 -0
  50. package/dist/chunk-OGEWGWER-BP4o8A-v.cjs +1 -0
  51. package/dist/chunk-PUDLZKDR-C8jMDFq6.js +4142 -0
  52. package/dist/chunk-PUDLZKDR-DtzwSdxX.cjs +156 -0
  53. package/dist/chunk-Q4XR5HBZ-Bk18cMuk.js +1628 -0
  54. package/dist/chunk-Q4XR5HBZ-COrrWZzi.cjs +70 -0
  55. package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +1 -0
  56. package/dist/chunk-RYQCIY6F-C-YC3QS_.js +239 -0
  57. package/dist/chunk-V7JOEXUC-BROsdKzY.js +3357 -0
  58. package/dist/chunk-V7JOEXUC-Cfrm5GQn.cjs +206 -0
  59. package/dist/chunk-VAUOI2AC-05FwamOA.js +10 -0
  60. package/dist/chunk-VAUOI2AC-CBXi4Di2.cjs +1 -0
  61. package/dist/chunk-VR4S4FIN-CSU_1xTZ.cjs +1 -0
  62. package/dist/chunk-VR4S4FIN-Ci491c8N.js +26 -0
  63. package/dist/chunk-WYO6CB5R-BTvDzbWd.cjs +127 -0
  64. package/dist/chunk-WYO6CB5R-Y9HJHB3Q.js +3739 -0
  65. package/dist/chunk-XXDRQBXY-DsVp5qjg.js +9 -0
  66. package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
  67. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  68. package/dist/chunk-Y2CYZVJY-CwsV_8W4.js +12 -0
  69. package/dist/chunk-ZGVPDNZ5-CDTkXY1G.js +3736 -0
  70. package/dist/chunk-ZGVPDNZ5-COEQX4AZ.cjs +62 -0
  71. package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
  72. package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +1146 -0
  73. package/dist/classDiagram-OUVF2IWQ-Avsu6OKn.cjs +1 -0
  74. package/dist/classDiagram-OUVF2IWQ-eC72Wwol.js +30 -0
  75. package/dist/classDiagram-v2-EOCWNBFH-Avsu6OKn.cjs +1 -0
  76. package/dist/classDiagram-v2-EOCWNBFH-DsRoQgCt.js +30 -0
  77. package/dist/core-2nR1zkKb.cjs +3 -0
  78. package/dist/core-BO2hTFeF.js +845 -0
  79. package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +1 -0
  80. package/dist/cose-bilkent-JH36ORCC-BFo5zomD.js +2251 -0
  81. package/dist/cpp-BUtp-HE2.cjs +1 -0
  82. package/dist/cpp-CeyO6lBG.js +225 -0
  83. package/dist/csharp-BJu4kEpt.cjs +1 -0
  84. package/dist/csharp-Ck6Fet_o.js +260 -0
  85. package/dist/css-ClSGJRju.js +140 -0
  86. package/dist/css-DeFr0lev.cjs +1 -0
  87. package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +1 -0
  88. package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +3 -0
  89. package/dist/cynefinDiagram-TSTJHNR4-BRUl09PN.js +349 -0
  90. package/dist/cynefinDiagram-TSTJHNR4-rKPqxFde.cjs +62 -0
  91. package/dist/cytoscape.esm-ByjvpCPI.cjs +321 -0
  92. package/dist/cytoscape.esm-asYnbYTy.js +18148 -0
  93. package/dist/dagre-BBlCxSvR.cjs +1 -0
  94. package/dist/dagre-BpqwxFKp.js +1701 -0
  95. package/dist/dagre-VKFMJZFB-BsfMZfPu.cjs +4 -0
  96. package/dist/dagre-VKFMJZFB-ChTkS14y.js +328 -0
  97. package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
  98. package/dist/defaultLocale-up9-vqhM.js +201 -0
  99. package/dist/diagram-FQU43EPY-BnAYoLDy.js +432 -0
  100. package/dist/diagram-FQU43EPY-CdbwLZpm.cjs +3 -0
  101. package/dist/diagram-G47NLZAW-C1ZiELQG.js +525 -0
  102. package/dist/diagram-G47NLZAW-CtWKuxkf.cjs +24 -0
  103. package/dist/diagram-NH7WQ7WH-Be0KXo6w.js +134 -0
  104. package/dist/diagram-NH7WQ7WH-CG6VWVza.cjs +24 -0
  105. package/dist/diagram-OA4YK3LP-B7avlqjG.js +300 -0
  106. package/dist/diagram-OA4YK3LP-Drq_GA6o.cjs +30 -0
  107. package/dist/diagram-WEI45ONY-CoPX6-sx.js +214 -0
  108. package/dist/diagram-WEI45ONY-SJmgVL59.cjs +41 -0
  109. package/dist/dist-D6LMt8nW.js +59 -0
  110. package/dist/dist-DNGlMOWd.cjs +1 -0
  111. package/dist/dockerfile-O4rAswfG.js +34 -0
  112. package/dist/dockerfile-YBgAWga3.cjs +1 -0
  113. package/dist/ebnfDiagram-CCIWWBDH-B-T4_JnX.js +100 -0
  114. package/dist/ebnfDiagram-CCIWWBDH-BY7L3HVQ.cjs +1 -0
  115. package/dist/erDiagram-Q63AITRT-DPgZpeaH.js +1727 -0
  116. package/dist/erDiagram-Q63AITRT-w4C1PxYd.cjs +85 -0
  117. package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +3 -0
  118. package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +1 -0
  119. package/dist/flowDiagram-23GEKE2U-CQxPdUX4.cjs +1 -0
  120. package/dist/flowDiagram-23GEKE2U-ClCSBl2p.js +17 -0
  121. package/dist/ganttDiagram-NO4QXBWP-BcBp028S.cjs +292 -0
  122. package/dist/ganttDiagram-NO4QXBWP-Cf12fLfa.js +3083 -0
  123. package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +3 -0
  124. package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +1 -0
  125. package/dist/gitGraphDiagram-IHSO6WYX-13ahKewT.js +729 -0
  126. package/dist/gitGraphDiagram-IHSO6WYX-BTtNkGkN.cjs +106 -0
  127. package/dist/go-D-pz-dmd.cjs +1 -0
  128. package/dist/go-rg7jg1mu.js +140 -0
  129. package/dist/graphlib-B0GbLif1.js +1267 -0
  130. package/dist/graphlib-CkkG5MuS.cjs +1 -0
  131. package/dist/info-DKCQHKI2-BEYhR6ip.cjs +1 -0
  132. package/dist/info-DKCQHKI2-BPF6-pOb.js +3 -0
  133. package/dist/infoDiagram-FWYZ7A6U-20rh0VNL.cjs +2 -0
  134. package/dist/infoDiagram-FWYZ7A6U-DcV-eSsb.js +20 -0
  135. package/dist/ini-C1q3_1-Q.js +88 -0
  136. package/dist/ini-nVcUEghj.cjs +1 -0
  137. package/dist/init-07zIhv_j.cjs +1 -0
  138. package/dist/init-CirqLVcp.js +15 -0
  139. package/dist/ishikawaDiagram-FXEZZL3T-BTaBCHIG.js +719 -0
  140. package/dist/ishikawaDiagram-FXEZZL3T-BUq5kcFI.cjs +70 -0
  141. package/dist/java-CUN_usaq.cjs +1 -0
  142. package/dist/java-HguKEfA2.js +169 -0
  143. package/dist/javascript-C8NCH8DE.js +436 -0
  144. package/dist/javascript-UZXSyUuu.cjs +1 -0
  145. package/dist/journeyDiagram-5HDEW3XC-Cl9Z4b58.js +884 -0
  146. package/dist/journeyDiagram-5HDEW3XC-XQa-rhY_.cjs +139 -0
  147. package/dist/json-Cp01TR_B.js +36 -0
  148. package/dist/json-usH_MUzR.cjs +1 -0
  149. package/dist/kanban-definition-HUTT4EX6-CtWnZ0nS.js +975 -0
  150. package/dist/kanban-definition-HUTT4EX6-DVHXUPOt.cjs +89 -0
  151. package/dist/line-Ca8dE_lT.cjs +1 -0
  152. package/dist/line-O2xx2vVQ.js +34 -0
  153. package/dist/linear-CVhyaVzf.js +289 -0
  154. package/dist/linear-Cl2-QuPP.cjs +1 -0
  155. package/dist/map-CwPlMWPw.cjs +1 -0
  156. package/dist/map-DU12fF3s.js +241 -0
  157. package/dist/markdown-CzgRofaE.js +181 -0
  158. package/dist/markdown-qeo95R0i.cjs +1 -0
  159. package/dist/mermaid-parser.core-B8DQcCaz.js +638 -0
  160. package/dist/mermaid-parser.core-Cgsz0CdK.cjs +6 -0
  161. package/dist/mermaid.core-BR-iKb2Q.js +1064 -0
  162. package/dist/mermaid.core-DQrbAA--.cjs +10 -0
  163. package/dist/mindmap-definition-LN4V7U3C-C0I9iWmq.cjs +96 -0
  164. package/dist/mindmap-definition-LN4V7U3C-lkSmRsIC.js +1008 -0
  165. package/dist/mount.d.ts +31 -0
  166. package/dist/ordinal-CCTD6_le.js +65 -0
  167. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  168. package/dist/packet-7NZHBO7P-DqvBYJTR.js +3 -0
  169. package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +1 -0
  170. package/dist/path-Kklx0M1v.cjs +1 -0
  171. package/dist/path-mKa7UESy.js +85 -0
  172. package/dist/pegDiagram-2B236MQR-BgRCQTZd.js +94 -0
  173. package/dist/pegDiagram-2B236MQR-hlmRl_PA.cjs +1 -0
  174. package/dist/php-C9FOMGEA.js +294 -0
  175. package/dist/php-j6EhDZDE.cjs +2 -0
  176. package/dist/pi-outpost-embed.cjs +305 -0
  177. package/dist/pi-outpost-embed.js +40942 -0
  178. package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +1 -0
  179. package/dist/pie-RZYD4A2V-qnruo9sH.js +3 -0
  180. package/dist/pieDiagram-ENE6RG2P-BVi7ck2I.js +205 -0
  181. package/dist/pieDiagram-ENE6RG2P-Buuvrs-h.cjs +39 -0
  182. package/dist/plaintext-BYYAHR3Z.js +10 -0
  183. package/dist/plaintext-DmnjizxG.cjs +1 -0
  184. package/dist/python-BYJzTRkK.cjs +1 -0
  185. package/dist/python-DKAazMIE.js +238 -0
  186. package/dist/quadrantDiagram-ABIIQ3AL-DeU97c2B.js +2001 -0
  187. package/dist/quadrantDiagram-ABIIQ3AL-LCbC0LEt.cjs +7 -0
  188. package/dist/radar-I7S5WNFK-Dqdssa34.cjs +1 -0
  189. package/dist/radar-I7S5WNFK-np_pJCO-.js +3 -0
  190. package/dist/railroad-3IZDKUUU-NILjDQft.cjs +1 -0
  191. package/dist/railroad-3IZDKUUU-sjKBeXxB.js +3 -0
  192. package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +1 -0
  193. package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +3 -0
  194. package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +3 -0
  195. package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +1 -0
  196. package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +1 -0
  197. package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +3 -0
  198. package/dist/railroadDiagram-RFXS5EU6-CMTDNjsw.cjs +1 -0
  199. package/dist/railroadDiagram-RFXS5EU6-DNSNpLmQ.js +76 -0
  200. package/dist/requirementDiagram-TGXJPOKE-CdspXMgv.js +2223 -0
  201. package/dist/requirementDiagram-TGXJPOKE-irImpO8w.cjs +84 -0
  202. package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
  203. package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
  204. package/dist/rough.esm-C5XyeDCN.js +1352 -0
  205. package/dist/rough.esm-r0QOSzHM.cjs +1 -0
  206. package/dist/ruby-BAUeZQKZ.js +262 -0
  207. package/dist/ruby-ClR4zp-1.cjs +1 -0
  208. package/dist/rust-DiTjMjP5.js +169 -0
  209. package/dist/rust-ghVvEWhm.cjs +1 -0
  210. package/dist/sankeyDiagram-HTMAVEWB-B0ZJBVpN.cjs +40 -0
  211. package/dist/sankeyDiagram-HTMAVEWB-BQcvUCMA.js +970 -0
  212. package/dist/scss-CKxh5HRg.cjs +1 -0
  213. package/dist/scss-CckAvQOx.js +150 -0
  214. package/dist/sequenceDiagram-DBY2YBRQ-BQFP2DGs.js +4168 -0
  215. package/dist/sequenceDiagram-DBY2YBRQ-C5WukkcA.cjs +162 -0
  216. package/dist/sizeCapture-X5ZJPWSS-DKbHZNyz.js +46 -0
  217. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
  218. package/dist/sql-B-Rnc2C3.js +118 -0
  219. package/dist/sql-B7syKcd8.cjs +1 -0
  220. package/dist/src-CR--T_NF.cjs +1 -0
  221. package/dist/src-DJ4x3y2O.js +2142 -0
  222. package/dist/stateDiagram-2N3HPSRC-4aBQt5dk.js +220 -0
  223. package/dist/stateDiagram-2N3HPSRC-YbRd67eD.cjs +1 -0
  224. package/dist/stateDiagram-v2-6OUMAXLB-D-c6D5za.js +30 -0
  225. package/dist/stateDiagram-v2-6OUMAXLB-ciXN_270.cjs +1 -0
  226. package/dist/swimlanes-5IMT3BWC-C8zkS7yx.cjs +1 -0
  227. package/dist/swimlanes-5IMT3BWC-aKH3Xgob.js +5066 -0
  228. package/dist/swimlanesDiagram-G3AALYLV-BcgsG1in.js +31 -0
  229. package/dist/swimlanesDiagram-G3AALYLV-CBjVJdH0.cjs +8 -0
  230. package/dist/timeline-definition-FHXFAJF6-DS-X0FCl.cjs +120 -0
  231. package/dist/timeline-definition-FHXFAJF6-Lnag6wiw.js +1069 -0
  232. package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +1 -0
  233. package/dist/treeView-QDETBFTQ-DdpEhzZX.js +3 -0
  234. package/dist/treemap-6X3UGDF4-BeCuRpkA.js +3 -0
  235. package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +1 -0
  236. package/dist/typescript-clWeqIBY.cjs +1 -0
  237. package/dist/typescript-mdYq8uqf.js +521 -0
  238. package/dist/vennDiagram-L72KCM5P-CF7lC7jn.js +1880 -0
  239. package/dist/vennDiagram-L72KCM5P-DYZP8jT_.cjs +34 -0
  240. package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +1 -0
  241. package/dist/wardley-OPB4EBWU-DlIk2K0J.js +3 -0
  242. package/dist/wardleyDiagram-EHGQE667-CbtWlMOa.js +645 -0
  243. package/dist/wardleyDiagram-EHGQE667-Dxewrpeh.cjs +78 -0
  244. package/dist/xml-BamqaQOf.cjs +1 -0
  245. package/dist/xml-DVYfB8uY.js +166 -0
  246. package/dist/xychartDiagram-FW5EYKEG-BAnVfMdN.cjs +7 -0
  247. package/dist/xychartDiagram-FW5EYKEG-DmdGPSi6.js +2102 -0
  248. package/dist/yaml-_1BORZTQ.js +144 -0
  249. package/dist/yaml-bAgWofBg.cjs +1 -0
  250. package/package.json +72 -0
@@ -0,0 +1,2046 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
+ import { m as t, p as n } from "./src-DJ4x3y2O.js";
3
+ import { $ as r, H as i, K as a, U as o, a as s, s as c, v as l, w as u, x as d, y as f } from "./chunk-WYO6CB5R-Y9HJHB3Q.js";
4
+ import { g as p, s as m } from "./chunk-ICXQ74PX-CC59NQmW.js";
5
+ import { t as h } from "./chunk-32BRIVSS-Byu3FrKX.js";
6
+ import { t as g } from "./chunk-XXDRQBXY-DsVp5qjg.js";
7
+ import { t as _ } from "./chunk-VR4S4FIN-Ci491c8N.js";
8
+ import { r as v } from "./chunk-FWX5IMBZ-h3GfgkP2.js";
9
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-EX3LRPZG.mjs
10
+ var y = (function() {
11
+ var t = /* @__PURE__ */ e(function(e, t, n, r) {
12
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
13
+ return n;
14
+ }, "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 = [
15
+ 1,
16
+ 4,
17
+ 5,
18
+ 16,
19
+ 17,
20
+ 19,
21
+ 21,
22
+ 22,
23
+ 24,
24
+ 25,
25
+ 26,
26
+ 27,
27
+ 28,
28
+ 29,
29
+ 33,
30
+ 35,
31
+ 37,
32
+ 38,
33
+ 41,
34
+ 45,
35
+ 48,
36
+ 51,
37
+ 52,
38
+ 53,
39
+ 54,
40
+ 57
41
+ ], j = [
42
+ 1,
43
+ 4,
44
+ 5,
45
+ 14,
46
+ 15,
47
+ 16,
48
+ 17,
49
+ 19,
50
+ 21,
51
+ 22,
52
+ 24,
53
+ 25,
54
+ 26,
55
+ 27,
56
+ 28,
57
+ 29,
58
+ 33,
59
+ 35,
60
+ 37,
61
+ 38,
62
+ 39,
63
+ 40,
64
+ 41,
65
+ 45,
66
+ 48,
67
+ 51,
68
+ 52,
69
+ 53,
70
+ 54,
71
+ 57
72
+ ], M = [
73
+ 4,
74
+ 5,
75
+ 16,
76
+ 17,
77
+ 19,
78
+ 21,
79
+ 22,
80
+ 24,
81
+ 25,
82
+ 26,
83
+ 27,
84
+ 28,
85
+ 29,
86
+ 33,
87
+ 35,
88
+ 37,
89
+ 38,
90
+ 41,
91
+ 45,
92
+ 48,
93
+ 51,
94
+ 52,
95
+ 53,
96
+ 54,
97
+ 57
98
+ ], N = {
99
+ trace: /* @__PURE__ */ e(function() {}, "trace"),
100
+ yy: {},
101
+ symbols_: {
102
+ error: 2,
103
+ start: 3,
104
+ SPACE: 4,
105
+ NL: 5,
106
+ SD: 6,
107
+ document: 7,
108
+ line: 8,
109
+ statement: 9,
110
+ classDefStatement: 10,
111
+ styleStatement: 11,
112
+ cssClassStatement: 12,
113
+ idStatement: 13,
114
+ DESCR: 14,
115
+ "-->": 15,
116
+ HIDE_EMPTY: 16,
117
+ scale: 17,
118
+ WIDTH: 18,
119
+ COMPOSIT_STATE: 19,
120
+ STRUCT_START: 20,
121
+ STRUCT_STOP: 21,
122
+ STATE_DESCR: 22,
123
+ AS: 23,
124
+ ID: 24,
125
+ FORK: 25,
126
+ JOIN: 26,
127
+ CHOICE: 27,
128
+ CONCURRENT: 28,
129
+ note: 29,
130
+ notePosition: 30,
131
+ NOTE_TEXT: 31,
132
+ direction: 32,
133
+ acc_title: 33,
134
+ acc_title_value: 34,
135
+ acc_descr: 35,
136
+ acc_descr_value: 36,
137
+ acc_descr_multiline_value: 37,
138
+ CLICK: 38,
139
+ STRING: 39,
140
+ HREF: 40,
141
+ classDef: 41,
142
+ CLASSDEF_ID: 42,
143
+ CLASSDEF_STYLEOPTS: 43,
144
+ DEFAULT: 44,
145
+ style: 45,
146
+ STYLE_IDS: 46,
147
+ STYLEDEF_STYLEOPTS: 47,
148
+ class: 48,
149
+ CLASSENTITY_IDS: 49,
150
+ STYLECLASS: 50,
151
+ direction_tb: 51,
152
+ direction_bt: 52,
153
+ direction_rl: 53,
154
+ direction_lr: 54,
155
+ eol: 55,
156
+ ";": 56,
157
+ EDGE_STATE: 57,
158
+ STYLE_SEPARATOR: 58,
159
+ left_of: 59,
160
+ right_of: 60,
161
+ $accept: 0,
162
+ $end: 1
163
+ },
164
+ terminals_: {
165
+ 2: "error",
166
+ 4: "SPACE",
167
+ 5: "NL",
168
+ 6: "SD",
169
+ 14: "DESCR",
170
+ 15: "-->",
171
+ 16: "HIDE_EMPTY",
172
+ 17: "scale",
173
+ 18: "WIDTH",
174
+ 19: "COMPOSIT_STATE",
175
+ 20: "STRUCT_START",
176
+ 21: "STRUCT_STOP",
177
+ 22: "STATE_DESCR",
178
+ 23: "AS",
179
+ 24: "ID",
180
+ 25: "FORK",
181
+ 26: "JOIN",
182
+ 27: "CHOICE",
183
+ 28: "CONCURRENT",
184
+ 29: "note",
185
+ 31: "NOTE_TEXT",
186
+ 33: "acc_title",
187
+ 34: "acc_title_value",
188
+ 35: "acc_descr",
189
+ 36: "acc_descr_value",
190
+ 37: "acc_descr_multiline_value",
191
+ 38: "CLICK",
192
+ 39: "STRING",
193
+ 40: "HREF",
194
+ 41: "classDef",
195
+ 42: "CLASSDEF_ID",
196
+ 43: "CLASSDEF_STYLEOPTS",
197
+ 44: "DEFAULT",
198
+ 45: "style",
199
+ 46: "STYLE_IDS",
200
+ 47: "STYLEDEF_STYLEOPTS",
201
+ 48: "class",
202
+ 49: "CLASSENTITY_IDS",
203
+ 50: "STYLECLASS",
204
+ 51: "direction_tb",
205
+ 52: "direction_bt",
206
+ 53: "direction_rl",
207
+ 54: "direction_lr",
208
+ 56: ";",
209
+ 57: "EDGE_STATE",
210
+ 58: "STYLE_SEPARATOR",
211
+ 59: "left_of",
212
+ 60: "right_of"
213
+ },
214
+ productions_: [
215
+ 0,
216
+ [3, 2],
217
+ [3, 2],
218
+ [3, 2],
219
+ [7, 0],
220
+ [7, 2],
221
+ [8, 2],
222
+ [8, 1],
223
+ [8, 1],
224
+ [9, 1],
225
+ [9, 1],
226
+ [9, 1],
227
+ [9, 1],
228
+ [9, 2],
229
+ [9, 3],
230
+ [9, 4],
231
+ [9, 1],
232
+ [9, 2],
233
+ [9, 1],
234
+ [9, 4],
235
+ [9, 3],
236
+ [9, 6],
237
+ [9, 1],
238
+ [9, 1],
239
+ [9, 1],
240
+ [9, 1],
241
+ [9, 4],
242
+ [9, 4],
243
+ [9, 1],
244
+ [9, 2],
245
+ [9, 2],
246
+ [9, 1],
247
+ [9, 5],
248
+ [9, 5],
249
+ [10, 3],
250
+ [10, 3],
251
+ [11, 3],
252
+ [12, 3],
253
+ [32, 1],
254
+ [32, 1],
255
+ [32, 1],
256
+ [32, 1],
257
+ [55, 1],
258
+ [55, 1],
259
+ [13, 1],
260
+ [13, 1],
261
+ [13, 3],
262
+ [13, 3],
263
+ [30, 1],
264
+ [30, 1]
265
+ ],
266
+ performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
267
+ var s = a.length - 1;
268
+ switch (i) {
269
+ case 3: return r.setRootDoc(a[s]), a[s];
270
+ case 4:
271
+ this.$ = [];
272
+ break;
273
+ case 5:
274
+ a[s] != "nl" && (a[s - 1].push(a[s]), this.$ = a[s - 1]);
275
+ break;
276
+ case 6:
277
+ case 7:
278
+ this.$ = a[s];
279
+ break;
280
+ case 8:
281
+ this.$ = "nl";
282
+ break;
283
+ case 12:
284
+ this.$ = a[s];
285
+ break;
286
+ case 13:
287
+ let e = a[s - 1];
288
+ e.description = r.trimColon(a[s]), this.$ = e;
289
+ break;
290
+ case 14:
291
+ this.$ = {
292
+ stmt: "relation",
293
+ state1: a[s - 2],
294
+ state2: a[s]
295
+ };
296
+ break;
297
+ case 15:
298
+ let t = r.trimColon(a[s]);
299
+ this.$ = {
300
+ stmt: "relation",
301
+ state1: a[s - 3],
302
+ state2: a[s - 1],
303
+ description: t
304
+ };
305
+ break;
306
+ case 19:
307
+ this.$ = {
308
+ stmt: "state",
309
+ id: a[s - 3],
310
+ type: "default",
311
+ description: "",
312
+ doc: a[s - 1]
313
+ };
314
+ break;
315
+ case 20:
316
+ var c = a[s], l = a[s - 2].trim();
317
+ if (a[s].match(":")) {
318
+ var u = a[s].split(":");
319
+ c = u[0], l = [l, u[1]];
320
+ }
321
+ this.$ = {
322
+ stmt: "state",
323
+ id: c,
324
+ type: "default",
325
+ description: l
326
+ };
327
+ break;
328
+ case 21:
329
+ this.$ = {
330
+ stmt: "state",
331
+ id: a[s - 3],
332
+ type: "default",
333
+ description: a[s - 5],
334
+ doc: a[s - 1]
335
+ };
336
+ break;
337
+ case 22:
338
+ this.$ = {
339
+ stmt: "state",
340
+ id: a[s],
341
+ type: "fork"
342
+ };
343
+ break;
344
+ case 23:
345
+ this.$ = {
346
+ stmt: "state",
347
+ id: a[s],
348
+ type: "join"
349
+ };
350
+ break;
351
+ case 24:
352
+ this.$ = {
353
+ stmt: "state",
354
+ id: a[s],
355
+ type: "choice"
356
+ };
357
+ break;
358
+ case 25:
359
+ this.$ = {
360
+ stmt: "state",
361
+ id: r.getDividerId(),
362
+ type: "divider"
363
+ };
364
+ break;
365
+ case 26:
366
+ this.$ = {
367
+ stmt: "state",
368
+ id: a[s - 1].trim(),
369
+ note: {
370
+ position: a[s - 2].trim(),
371
+ text: a[s].trim()
372
+ }
373
+ };
374
+ break;
375
+ case 29:
376
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
377
+ break;
378
+ case 30:
379
+ case 31:
380
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
381
+ break;
382
+ case 32:
383
+ this.$ = {
384
+ stmt: "click",
385
+ id: a[s - 3],
386
+ url: a[s - 2],
387
+ tooltip: a[s - 1]
388
+ };
389
+ break;
390
+ case 33:
391
+ this.$ = {
392
+ stmt: "click",
393
+ id: a[s - 3],
394
+ url: a[s - 1],
395
+ tooltip: ""
396
+ };
397
+ break;
398
+ case 34:
399
+ case 35:
400
+ this.$ = {
401
+ stmt: "classDef",
402
+ id: a[s - 1].trim(),
403
+ classes: a[s].trim()
404
+ };
405
+ break;
406
+ case 36:
407
+ this.$ = {
408
+ stmt: "style",
409
+ id: a[s - 1].trim(),
410
+ styleClass: a[s].trim()
411
+ };
412
+ break;
413
+ case 37:
414
+ this.$ = {
415
+ stmt: "applyClass",
416
+ id: a[s - 1].trim(),
417
+ styleClass: a[s].trim()
418
+ };
419
+ break;
420
+ case 38:
421
+ r.setDirection("TB"), this.$ = {
422
+ stmt: "dir",
423
+ value: "TB"
424
+ };
425
+ break;
426
+ case 39:
427
+ r.setDirection("BT"), this.$ = {
428
+ stmt: "dir",
429
+ value: "BT"
430
+ };
431
+ break;
432
+ case 40:
433
+ r.setDirection("RL"), this.$ = {
434
+ stmt: "dir",
435
+ value: "RL"
436
+ };
437
+ break;
438
+ case 41:
439
+ r.setDirection("LR"), this.$ = {
440
+ stmt: "dir",
441
+ value: "LR"
442
+ };
443
+ break;
444
+ case 44:
445
+ case 45:
446
+ this.$ = {
447
+ stmt: "state",
448
+ id: a[s].trim(),
449
+ type: "default",
450
+ description: ""
451
+ };
452
+ break;
453
+ case 46:
454
+ this.$ = {
455
+ stmt: "state",
456
+ id: a[s - 2].trim(),
457
+ classes: [a[s].trim()],
458
+ type: "default",
459
+ description: ""
460
+ };
461
+ break;
462
+ case 47:
463
+ this.$ = {
464
+ stmt: "state",
465
+ id: a[s - 2].trim(),
466
+ classes: [a[s].trim()],
467
+ type: "default",
468
+ description: ""
469
+ };
470
+ break;
471
+ }
472
+ }, "anonymous"),
473
+ table: [
474
+ {
475
+ 3: 1,
476
+ 4: n,
477
+ 5: r,
478
+ 6: i
479
+ },
480
+ { 1: [3] },
481
+ {
482
+ 3: 5,
483
+ 4: n,
484
+ 5: r,
485
+ 6: i
486
+ },
487
+ {
488
+ 3: 6,
489
+ 4: n,
490
+ 5: r,
491
+ 6: i
492
+ },
493
+ t([
494
+ 1,
495
+ 4,
496
+ 5,
497
+ 16,
498
+ 17,
499
+ 19,
500
+ 22,
501
+ 24,
502
+ 25,
503
+ 26,
504
+ 27,
505
+ 28,
506
+ 29,
507
+ 33,
508
+ 35,
509
+ 37,
510
+ 38,
511
+ 41,
512
+ 45,
513
+ 48,
514
+ 51,
515
+ 52,
516
+ 53,
517
+ 54,
518
+ 57
519
+ ], a, { 7: 7 }),
520
+ { 1: [2, 1] },
521
+ { 1: [2, 2] },
522
+ {
523
+ 1: [2, 3],
524
+ 4: o,
525
+ 5: s,
526
+ 8: 8,
527
+ 9: 10,
528
+ 10: 12,
529
+ 11: 13,
530
+ 12: 14,
531
+ 13: 15,
532
+ 16: c,
533
+ 17: l,
534
+ 19: u,
535
+ 22: d,
536
+ 24: f,
537
+ 25: p,
538
+ 26: m,
539
+ 27: h,
540
+ 28: g,
541
+ 29: _,
542
+ 32: 25,
543
+ 33: v,
544
+ 35: y,
545
+ 37: b,
546
+ 38: x,
547
+ 41: S,
548
+ 45: C,
549
+ 48: w,
550
+ 51: T,
551
+ 52: E,
552
+ 53: D,
553
+ 54: O,
554
+ 57: k
555
+ },
556
+ t(A, [2, 5]),
557
+ {
558
+ 9: 39,
559
+ 10: 12,
560
+ 11: 13,
561
+ 12: 14,
562
+ 13: 15,
563
+ 16: c,
564
+ 17: l,
565
+ 19: u,
566
+ 22: d,
567
+ 24: f,
568
+ 25: p,
569
+ 26: m,
570
+ 27: h,
571
+ 28: g,
572
+ 29: _,
573
+ 32: 25,
574
+ 33: v,
575
+ 35: y,
576
+ 37: b,
577
+ 38: x,
578
+ 41: S,
579
+ 45: C,
580
+ 48: w,
581
+ 51: T,
582
+ 52: E,
583
+ 53: D,
584
+ 54: O,
585
+ 57: k
586
+ },
587
+ t(A, [2, 7]),
588
+ t(A, [2, 8]),
589
+ t(A, [2, 9]),
590
+ t(A, [2, 10]),
591
+ t(A, [2, 11]),
592
+ t(A, [2, 12], {
593
+ 14: [1, 40],
594
+ 15: [1, 41]
595
+ }),
596
+ t(A, [2, 16]),
597
+ { 18: [1, 42] },
598
+ t(A, [2, 18], { 20: [1, 43] }),
599
+ { 23: [1, 44] },
600
+ t(A, [2, 22]),
601
+ t(A, [2, 23]),
602
+ t(A, [2, 24]),
603
+ t(A, [2, 25]),
604
+ {
605
+ 30: 45,
606
+ 31: [1, 46],
607
+ 59: [1, 47],
608
+ 60: [1, 48]
609
+ },
610
+ t(A, [2, 28]),
611
+ { 34: [1, 49] },
612
+ { 36: [1, 50] },
613
+ t(A, [2, 31]),
614
+ {
615
+ 13: 51,
616
+ 24: f,
617
+ 57: k
618
+ },
619
+ {
620
+ 42: [1, 52],
621
+ 44: [1, 53]
622
+ },
623
+ { 46: [1, 54] },
624
+ { 49: [1, 55] },
625
+ t(j, [2, 44], { 58: [1, 56] }),
626
+ t(j, [2, 45], { 58: [1, 57] }),
627
+ t(A, [2, 38]),
628
+ t(A, [2, 39]),
629
+ t(A, [2, 40]),
630
+ t(A, [2, 41]),
631
+ t(A, [2, 6]),
632
+ t(A, [2, 13]),
633
+ {
634
+ 13: 58,
635
+ 24: f,
636
+ 57: k
637
+ },
638
+ t(A, [2, 17]),
639
+ t(M, a, { 7: 59 }),
640
+ { 24: [1, 60] },
641
+ { 24: [1, 61] },
642
+ { 23: [1, 62] },
643
+ { 24: [2, 48] },
644
+ { 24: [2, 49] },
645
+ t(A, [2, 29]),
646
+ t(A, [2, 30]),
647
+ {
648
+ 39: [1, 63],
649
+ 40: [1, 64]
650
+ },
651
+ { 43: [1, 65] },
652
+ { 43: [1, 66] },
653
+ { 47: [1, 67] },
654
+ { 50: [1, 68] },
655
+ { 24: [1, 69] },
656
+ { 24: [1, 70] },
657
+ t(A, [2, 14], { 14: [1, 71] }),
658
+ {
659
+ 4: o,
660
+ 5: s,
661
+ 8: 8,
662
+ 9: 10,
663
+ 10: 12,
664
+ 11: 13,
665
+ 12: 14,
666
+ 13: 15,
667
+ 16: c,
668
+ 17: l,
669
+ 19: u,
670
+ 21: [1, 72],
671
+ 22: d,
672
+ 24: f,
673
+ 25: p,
674
+ 26: m,
675
+ 27: h,
676
+ 28: g,
677
+ 29: _,
678
+ 32: 25,
679
+ 33: v,
680
+ 35: y,
681
+ 37: b,
682
+ 38: x,
683
+ 41: S,
684
+ 45: C,
685
+ 48: w,
686
+ 51: T,
687
+ 52: E,
688
+ 53: D,
689
+ 54: O,
690
+ 57: k
691
+ },
692
+ t(A, [2, 20], { 20: [1, 73] }),
693
+ { 31: [1, 74] },
694
+ { 24: [1, 75] },
695
+ { 39: [1, 76] },
696
+ { 39: [1, 77] },
697
+ t(A, [2, 34]),
698
+ t(A, [2, 35]),
699
+ t(A, [2, 36]),
700
+ t(A, [2, 37]),
701
+ t(j, [2, 46]),
702
+ t(j, [2, 47]),
703
+ t(A, [2, 15]),
704
+ t(A, [2, 19]),
705
+ t(M, a, { 7: 78 }),
706
+ t(A, [2, 26]),
707
+ t(A, [2, 27]),
708
+ { 5: [1, 79] },
709
+ { 5: [1, 80] },
710
+ {
711
+ 4: o,
712
+ 5: s,
713
+ 8: 8,
714
+ 9: 10,
715
+ 10: 12,
716
+ 11: 13,
717
+ 12: 14,
718
+ 13: 15,
719
+ 16: c,
720
+ 17: l,
721
+ 19: u,
722
+ 21: [1, 81],
723
+ 22: d,
724
+ 24: f,
725
+ 25: p,
726
+ 26: m,
727
+ 27: h,
728
+ 28: g,
729
+ 29: _,
730
+ 32: 25,
731
+ 33: v,
732
+ 35: y,
733
+ 37: b,
734
+ 38: x,
735
+ 41: S,
736
+ 45: C,
737
+ 48: w,
738
+ 51: T,
739
+ 52: E,
740
+ 53: D,
741
+ 54: O,
742
+ 57: k
743
+ },
744
+ t(A, [2, 32]),
745
+ t(A, [2, 33]),
746
+ t(A, [2, 21])
747
+ ],
748
+ defaultActions: {
749
+ 5: [2, 1],
750
+ 6: [2, 2],
751
+ 47: [2, 48],
752
+ 48: [2, 49]
753
+ },
754
+ parseError: /* @__PURE__ */ e(function(e, t) {
755
+ if (t.recoverable) this.trace(e);
756
+ else {
757
+ var n = Error(e);
758
+ throw n.hash = t, n;
759
+ }
760
+ }, "parseError"),
761
+ parse: /* @__PURE__ */ e(function(t) {
762
+ 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: {} };
763
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
764
+ h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
765
+ var v = h.yylloc;
766
+ o.push(v);
767
+ var y = h.options && h.options.ranges;
768
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
769
+ function b(e) {
770
+ r.length -= 2 * e, a.length -= e, o.length -= e;
771
+ }
772
+ e(b, "popStack");
773
+ function x() {
774
+ var e = i.pop() || h.lex() || p;
775
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
776
+ }
777
+ e(x, "lex");
778
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
779
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
780
+ var M = "";
781
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
782
+ 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, {
783
+ text: h.match,
784
+ token: this.terminals_[S] || S,
785
+ line: h.yylineno,
786
+ loc: v,
787
+ expected: j
788
+ });
789
+ }
790
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
791
+ switch (T[0]) {
792
+ case 1:
793
+ 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--);
794
+ break;
795
+ case 2:
796
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
797
+ first_line: o[o.length - (k || 1)].first_line,
798
+ last_line: o[o.length - 1].last_line,
799
+ first_column: o[o.length - (k || 1)].first_column,
800
+ last_column: o[o.length - 1].last_column
801
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
802
+ c,
803
+ u,
804
+ l,
805
+ g.yy,
806
+ T[1],
807
+ a,
808
+ o
809
+ ].concat(m)), E !== void 0) return E;
810
+ 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);
811
+ break;
812
+ case 3: return !0;
813
+ }
814
+ }
815
+ return !0;
816
+ }, "parse")
817
+ };
818
+ N.lexer = /* @__PURE__ */ (function() {
819
+ return {
820
+ EOF: 1,
821
+ parseError: /* @__PURE__ */ e(function(e, t) {
822
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
823
+ else throw Error(e);
824
+ }, "parseError"),
825
+ setInput: /* @__PURE__ */ e(function(e, t) {
826
+ 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 = {
827
+ first_line: 1,
828
+ first_column: 0,
829
+ last_line: 1,
830
+ last_column: 0
831
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
832
+ }, "setInput"),
833
+ input: /* @__PURE__ */ e(function() {
834
+ var e = this._input[0];
835
+ 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;
836
+ }, "input"),
837
+ unput: /* @__PURE__ */ e(function(e) {
838
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
839
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
840
+ var r = this.match.split(/(?:\r\n?|\n)/g);
841
+ 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);
842
+ var i = this.yylloc.range;
843
+ return this.yylloc = {
844
+ first_line: this.yylloc.first_line,
845
+ last_line: this.yylineno + 1,
846
+ first_column: this.yylloc.first_column,
847
+ 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
848
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
849
+ }, "unput"),
850
+ more: /* @__PURE__ */ e(function() {
851
+ return this._more = !0, this;
852
+ }, "more"),
853
+ reject: /* @__PURE__ */ e(function() {
854
+ if (this.options.backtrack_lexer) this._backtrack = !0;
855
+ 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(), {
856
+ text: "",
857
+ token: null,
858
+ line: this.yylineno
859
+ });
860
+ return this;
861
+ }, "reject"),
862
+ less: /* @__PURE__ */ e(function(e) {
863
+ this.unput(this.match.slice(e));
864
+ }, "less"),
865
+ pastInput: /* @__PURE__ */ e(function() {
866
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
867
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
868
+ }, "pastInput"),
869
+ upcomingInput: /* @__PURE__ */ e(function() {
870
+ var e = this.match;
871
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
872
+ }, "upcomingInput"),
873
+ showPosition: /* @__PURE__ */ e(function() {
874
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
875
+ return e + this.upcomingInput() + "\n" + t + "^";
876
+ }, "showPosition"),
877
+ test_match: /* @__PURE__ */ e(function(e, t) {
878
+ var n, r, i;
879
+ if (this.options.backtrack_lexer && (i = {
880
+ yylineno: this.yylineno,
881
+ yylloc: {
882
+ first_line: this.yylloc.first_line,
883
+ last_line: this.last_line,
884
+ first_column: this.yylloc.first_column,
885
+ last_column: this.yylloc.last_column
886
+ },
887
+ yytext: this.yytext,
888
+ match: this.match,
889
+ matches: this.matches,
890
+ matched: this.matched,
891
+ yyleng: this.yyleng,
892
+ offset: this.offset,
893
+ _more: this._more,
894
+ _input: this._input,
895
+ yy: this.yy,
896
+ conditionStack: this.conditionStack.slice(0),
897
+ done: this.done
898
+ }, 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 = {
899
+ first_line: this.yylloc.last_line,
900
+ last_line: this.yylineno + 1,
901
+ first_column: this.yylloc.last_column,
902
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
903
+ }, 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;
904
+ if (this._backtrack) {
905
+ for (var a in i) this[a] = i[a];
906
+ return !1;
907
+ }
908
+ return !1;
909
+ }, "test_match"),
910
+ next: /* @__PURE__ */ e(function() {
911
+ if (this.done) return this.EOF;
912
+ this._input || (this.done = !0);
913
+ var e, t, n, r;
914
+ this._more || (this.yytext = "", this.match = "");
915
+ 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)) {
916
+ if (t = n, r = a, this.options.backtrack_lexer) {
917
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
918
+ if (this._backtrack) {
919
+ t = !1;
920
+ continue;
921
+ } else return !1;
922
+ } else if (!this.options.flex) break;
923
+ }
924
+ 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(), {
925
+ text: "",
926
+ token: null,
927
+ line: this.yylineno
928
+ });
929
+ }, "next"),
930
+ lex: /* @__PURE__ */ e(function() {
931
+ return this.next() || this.lex();
932
+ }, "lex"),
933
+ begin: /* @__PURE__ */ e(function(e) {
934
+ this.conditionStack.push(e);
935
+ }, "begin"),
936
+ popState: /* @__PURE__ */ e(function() {
937
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
938
+ }, "popState"),
939
+ _currentRules: /* @__PURE__ */ e(function() {
940
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
941
+ }, "_currentRules"),
942
+ topState: /* @__PURE__ */ e(function(e) {
943
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
944
+ }, "topState"),
945
+ pushState: /* @__PURE__ */ e(function(e) {
946
+ this.begin(e);
947
+ }, "pushState"),
948
+ stateStackSize: /* @__PURE__ */ e(function() {
949
+ return this.conditionStack.length;
950
+ }, "stateStackSize"),
951
+ options: { "case-insensitive": !0 },
952
+ performAction: /* @__PURE__ */ e(function(t, n, r, i) {
953
+ function a() {
954
+ let e = n.yytext.indexOf("%%");
955
+ if (e === 0) return !1;
956
+ if (e > 0) {
957
+ let r = n.yytext.slice(0, e), i = n.yytext.slice(e);
958
+ i && t.lexer.unput(i), n.yytext = r;
959
+ }
960
+ return !0;
961
+ }
962
+ switch (e(a, "processId"), r) {
963
+ case 0: return 38;
964
+ case 1: return 40;
965
+ case 2: return 39;
966
+ case 3: return 44;
967
+ case 4: return 51;
968
+ case 5: return 52;
969
+ case 6: return 53;
970
+ case 7: return 54;
971
+ case 8: return 5;
972
+ case 9: break;
973
+ case 10: break;
974
+ case 11: break;
975
+ case 12: break;
976
+ case 13: return this.pushState("SCALE"), 17;
977
+ case 14: return 18;
978
+ case 15:
979
+ this.popState();
980
+ break;
981
+ case 16: return this.begin("acc_title"), 33;
982
+ case 17: return this.popState(), "acc_title_value";
983
+ case 18: return this.begin("acc_descr"), 35;
984
+ case 19: return this.popState(), "acc_descr_value";
985
+ case 20:
986
+ this.begin("acc_descr_multiline");
987
+ break;
988
+ case 21:
989
+ this.popState();
990
+ break;
991
+ case 22: return "acc_descr_multiline_value";
992
+ case 23: return this.pushState("CLASSDEF"), 41;
993
+ case 24: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
994
+ case 25: return this.popState(), this.pushState("CLASSDEFID"), 42;
995
+ case 26: return this.popState(), 43;
996
+ case 27: return this.pushState("CLASS"), 48;
997
+ case 28: return this.popState(), this.pushState("CLASS_STYLE"), 49;
998
+ case 29: return this.popState(), 50;
999
+ case 30: return this.pushState("STYLE"), 45;
1000
+ case 31: return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
1001
+ case 32: return this.popState(), 47;
1002
+ case 33: return this.pushState("SCALE"), 17;
1003
+ case 34: return 18;
1004
+ case 35:
1005
+ this.popState();
1006
+ break;
1007
+ case 36:
1008
+ this.pushState("STATE");
1009
+ break;
1010
+ case 37: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
1011
+ case 38: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
1012
+ case 39: return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
1013
+ case 40: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
1014
+ case 41: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
1015
+ case 42: return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
1016
+ case 43: return 51;
1017
+ case 44: return 52;
1018
+ case 45: return 53;
1019
+ case 46: return 54;
1020
+ case 47:
1021
+ this.pushState("STATE_STRING");
1022
+ break;
1023
+ case 48: return this.pushState("STATE_ID"), "AS";
1024
+ case 49: return a() ? (this.popState(), "ID") : void 0;
1025
+ case 50:
1026
+ this.popState();
1027
+ break;
1028
+ case 51: return "STATE_DESCR";
1029
+ case 52: throw Error("Error: State name must be a single word. Found: \"" + n.yytext.trim() + "\"");
1030
+ case 53: return 19;
1031
+ case 54:
1032
+ this.popState();
1033
+ break;
1034
+ case 55: return this.popState(), this.pushState("struct"), 20;
1035
+ case 56: return this.popState(), 21;
1036
+ case 57: break;
1037
+ case 58: return this.begin("NOTE"), 29;
1038
+ case 59: return this.popState(), this.pushState("NOTE_ID"), 59;
1039
+ case 60: return this.popState(), this.pushState("NOTE_ID"), 60;
1040
+ case 61:
1041
+ this.popState(), this.pushState("FLOATING_NOTE");
1042
+ break;
1043
+ case 62: return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
1044
+ case 63: break;
1045
+ case 64: return "NOTE_TEXT";
1046
+ case 65: return a() ? (this.popState(), "ID") : void 0;
1047
+ case 66: return a() ? (this.popState(), this.pushState("NOTE_TEXT"), 24) : void 0;
1048
+ case 67: return this.popState(), n.yytext = n.yytext.substr(2).trim(), 31;
1049
+ case 68: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 31;
1050
+ case 69: return 6;
1051
+ case 70: return 6;
1052
+ case 71: return 16;
1053
+ case 72: return 57;
1054
+ case 73: return a() ? 24 : void 0;
1055
+ case 74: return n.yytext = n.yytext.trim(), 14;
1056
+ case 75: return 15;
1057
+ case 76: return 28;
1058
+ case 77: return 58;
1059
+ case 78: return 5;
1060
+ case 79: return "INVALID";
1061
+ }
1062
+ }, "anonymous"),
1063
+ rules: [
1064
+ /^(?:click\b)/i,
1065
+ /^(?:href\b)/i,
1066
+ /^(?:"[^"]*")/i,
1067
+ /^(?:default\b)/i,
1068
+ /^(?:.*direction\s+TB[^\n]*)/i,
1069
+ /^(?:.*direction\s+BT[^\n]*)/i,
1070
+ /^(?:.*direction\s+RL[^\n]*)/i,
1071
+ /^(?:.*direction\s+LR[^\n]*)/i,
1072
+ /^(?:[\n]+)/i,
1073
+ /^(?:[\s]+)/i,
1074
+ /^(?:((?!\n)\s)+)/i,
1075
+ /^(?:#[^\n]*)/i,
1076
+ /^(?:%%(?!\{)[^\n]*)/i,
1077
+ /^(?:scale\s+)/i,
1078
+ /^(?:\d+)/i,
1079
+ /^(?:\s+width\b)/i,
1080
+ /^(?:accTitle\s*:\s*)/i,
1081
+ /^(?:(?!\n||)*[^\n]*)/i,
1082
+ /^(?:accDescr\s*:\s*)/i,
1083
+ /^(?:(?!\n||)*[^\n]*)/i,
1084
+ /^(?:accDescr\s*\{\s*)/i,
1085
+ /^(?:[\}])/i,
1086
+ /^(?:[^\}]*)/i,
1087
+ /^(?:classDef\s+)/i,
1088
+ /^(?:DEFAULT\s+)/i,
1089
+ /^(?:\w+\s+)/i,
1090
+ /^(?:[^\n]*)/i,
1091
+ /^(?:class\s+)/i,
1092
+ /^(?:(\w+)+((,\s*\w+)*))/i,
1093
+ /^(?:[^\n]*)/i,
1094
+ /^(?:style\s+)/i,
1095
+ /^(?:[\w,]+\s+)/i,
1096
+ /^(?:[^\n]*)/i,
1097
+ /^(?:scale\s+)/i,
1098
+ /^(?:\d+)/i,
1099
+ /^(?:\s+width\b)/i,
1100
+ /^(?:state\s+)/i,
1101
+ /^(?:.*<<fork>>)/i,
1102
+ /^(?:.*<<join>>)/i,
1103
+ /^(?:.*<<choice>>)/i,
1104
+ /^(?:.*\[\[fork\]\])/i,
1105
+ /^(?:.*\[\[join\]\])/i,
1106
+ /^(?:.*\[\[choice\]\])/i,
1107
+ /^(?:.*direction\s+TB[^\n]*)/i,
1108
+ /^(?:.*direction\s+BT[^\n]*)/i,
1109
+ /^(?:.*direction\s+RL[^\n]*)/i,
1110
+ /^(?:.*direction\s+LR[^\n]*)/i,
1111
+ /^(?:["])/i,
1112
+ /^(?:\s*as\s+)/i,
1113
+ /^(?:[^\n\{]*)/i,
1114
+ /^(?:["])/i,
1115
+ /^(?:[^"]*)/i,
1116
+ /^(?:\w+\s+\w+.*?\{)/i,
1117
+ /^(?:[^\n\s\{]+)/i,
1118
+ /^(?:\n)/i,
1119
+ /^(?:\{)/i,
1120
+ /^(?:\})/i,
1121
+ /^(?:[\n])/i,
1122
+ /^(?:note\s+)/i,
1123
+ /^(?:left of\b)/i,
1124
+ /^(?:right of\b)/i,
1125
+ /^(?:")/i,
1126
+ /^(?:\s*as\s*)/i,
1127
+ /^(?:["])/i,
1128
+ /^(?:[^"]*)/i,
1129
+ /^(?:[^\n]*)/i,
1130
+ /^(?:\s*[^:\n\s\-]+)/i,
1131
+ /^(?:\s*:[^:\n;]+)/i,
1132
+ /^(?:[\s\S]*?\n\s*end note\b)/i,
1133
+ /^(?:stateDiagram\s+)/i,
1134
+ /^(?:stateDiagram-v2\s+)/i,
1135
+ /^(?:hide empty description\b)/i,
1136
+ /^(?:\[\*\])/i,
1137
+ /^(?:[^:\n\s\-\{]+)/i,
1138
+ /^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,
1139
+ /^(?:-->)/i,
1140
+ /^(?:--)/i,
1141
+ /^(?::::)/i,
1142
+ /^(?:$)/i,
1143
+ /^(?:.)/i
1144
+ ],
1145
+ conditions: {
1146
+ LINE: {
1147
+ rules: [
1148
+ 10,
1149
+ 11,
1150
+ 12
1151
+ ],
1152
+ inclusive: !1
1153
+ },
1154
+ struct: {
1155
+ rules: [
1156
+ 10,
1157
+ 11,
1158
+ 12,
1159
+ 23,
1160
+ 27,
1161
+ 30,
1162
+ 36,
1163
+ 43,
1164
+ 44,
1165
+ 45,
1166
+ 46,
1167
+ 56,
1168
+ 57,
1169
+ 58,
1170
+ 72,
1171
+ 73,
1172
+ 74,
1173
+ 75,
1174
+ 76,
1175
+ 77
1176
+ ],
1177
+ inclusive: !1
1178
+ },
1179
+ FLOATING_NOTE_ID: {
1180
+ rules: [65],
1181
+ inclusive: !1
1182
+ },
1183
+ FLOATING_NOTE: {
1184
+ rules: [
1185
+ 62,
1186
+ 63,
1187
+ 64
1188
+ ],
1189
+ inclusive: !1
1190
+ },
1191
+ NOTE_TEXT: {
1192
+ rules: [67, 68],
1193
+ inclusive: !1
1194
+ },
1195
+ NOTE_ID: {
1196
+ rules: [66],
1197
+ inclusive: !1
1198
+ },
1199
+ NOTE: {
1200
+ rules: [
1201
+ 59,
1202
+ 60,
1203
+ 61
1204
+ ],
1205
+ inclusive: !1
1206
+ },
1207
+ STYLEDEF_STYLEOPTS: {
1208
+ rules: [],
1209
+ inclusive: !1
1210
+ },
1211
+ STYLEDEF_STYLES: {
1212
+ rules: [32],
1213
+ inclusive: !1
1214
+ },
1215
+ STYLE_IDS: {
1216
+ rules: [],
1217
+ inclusive: !1
1218
+ },
1219
+ STYLE: {
1220
+ rules: [31],
1221
+ inclusive: !1
1222
+ },
1223
+ CLASS_STYLE: {
1224
+ rules: [29],
1225
+ inclusive: !1
1226
+ },
1227
+ CLASS: {
1228
+ rules: [28],
1229
+ inclusive: !1
1230
+ },
1231
+ CLASSDEFID: {
1232
+ rules: [26],
1233
+ inclusive: !1
1234
+ },
1235
+ CLASSDEF: {
1236
+ rules: [24, 25],
1237
+ inclusive: !1
1238
+ },
1239
+ acc_descr_multiline: {
1240
+ rules: [21, 22],
1241
+ inclusive: !1
1242
+ },
1243
+ acc_descr: {
1244
+ rules: [19],
1245
+ inclusive: !1
1246
+ },
1247
+ acc_title: {
1248
+ rules: [17],
1249
+ inclusive: !1
1250
+ },
1251
+ SCALE: {
1252
+ rules: [
1253
+ 14,
1254
+ 15,
1255
+ 34,
1256
+ 35
1257
+ ],
1258
+ inclusive: !1
1259
+ },
1260
+ ALIAS: {
1261
+ rules: [],
1262
+ inclusive: !1
1263
+ },
1264
+ STATE_ID: {
1265
+ rules: [49],
1266
+ inclusive: !1
1267
+ },
1268
+ STATE_STRING: {
1269
+ rules: [50, 51],
1270
+ inclusive: !1
1271
+ },
1272
+ FORK_STATE: {
1273
+ rules: [],
1274
+ inclusive: !1
1275
+ },
1276
+ STATE: {
1277
+ rules: [
1278
+ 10,
1279
+ 11,
1280
+ 12,
1281
+ 37,
1282
+ 38,
1283
+ 39,
1284
+ 40,
1285
+ 41,
1286
+ 42,
1287
+ 47,
1288
+ 48,
1289
+ 52,
1290
+ 53,
1291
+ 54,
1292
+ 55
1293
+ ],
1294
+ inclusive: !1
1295
+ },
1296
+ ID: {
1297
+ rules: [
1298
+ 10,
1299
+ 11,
1300
+ 12
1301
+ ],
1302
+ inclusive: !1
1303
+ },
1304
+ INITIAL: {
1305
+ rules: [
1306
+ 0,
1307
+ 1,
1308
+ 2,
1309
+ 3,
1310
+ 4,
1311
+ 5,
1312
+ 6,
1313
+ 7,
1314
+ 8,
1315
+ 9,
1316
+ 11,
1317
+ 12,
1318
+ 13,
1319
+ 16,
1320
+ 18,
1321
+ 20,
1322
+ 23,
1323
+ 27,
1324
+ 30,
1325
+ 33,
1326
+ 36,
1327
+ 55,
1328
+ 58,
1329
+ 69,
1330
+ 70,
1331
+ 71,
1332
+ 72,
1333
+ 73,
1334
+ 74,
1335
+ 75,
1336
+ 77,
1337
+ 78,
1338
+ 79
1339
+ ],
1340
+ inclusive: !0
1341
+ }
1342
+ }
1343
+ };
1344
+ })();
1345
+ function P() {
1346
+ this.yy = {};
1347
+ }
1348
+ return e(P, "Parser"), P.prototype = N, N.Parser = P, new P();
1349
+ })();
1350
+ y.parser = y;
1351
+ var b = y, x = "TB", S = "TB", C = "dir", w = "state", T = "root", E = "relation", D = "classDef", O = "style", k = "applyClass", A = "default", j = "divider", M = "fill:none", N = "fill: #333", P = "c", ee = "markdown", F = "normal", I = "rect", L = "rectWithTitle", te = "stateStart", ne = "stateEnd", R = "divider", re = "roundedWithTitle", ie = "note", ae = "noteGroup", z = "statediagram", oe = `${z}-state`, B = "transition", se = "note", ce = `${B} note-edge`, le = `${z}-${se}`, ue = `${z}-cluster`, de = `${z}-cluster-alt`, V = "parent", H = "note", fe = "state", U = "----", pe = `${U}${H}`, W = `${U}${V}`, G = /* @__PURE__ */ e((e, t = S) => {
1352
+ if (!e.doc) return t;
1353
+ let n = t;
1354
+ for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1355
+ return n;
1356
+ }, "getDir"), me = {
1357
+ getClasses: /* @__PURE__ */ e(function(e, t) {
1358
+ return t.db.getClasses();
1359
+ }, "getClasses"),
1360
+ draw: /* @__PURE__ */ e(async function(e, n, r, i) {
1361
+ t.info("REF0:"), t.info("Drawing state diagram (v2)", n);
1362
+ let { securityLevel: a, state: o, layout: s } = d();
1363
+ i.db.extract(i.db.getRootDocV2());
1364
+ let c = i.db.getData(), l = g(n, a);
1365
+ c.type = i.type, c.layoutAlgorithm = s, c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, d().look === "neo" ? c.markers = ["barbNeo"] : c.markers = ["barb"], c.diagramId = n, await v(c, l);
1366
+ try {
1367
+ (typeof i.db.getLinks == "function" ? i.db.getLinks() : /* @__PURE__ */ new Map()).forEach((e, n) => {
1368
+ let r = typeof n == "string" ? n : typeof n?.id == "string" ? n.id : "", i = c.nodes.find((e) => e.id === r);
1369
+ if (!r) {
1370
+ t.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(n));
1371
+ return;
1372
+ }
1373
+ let a = l.node()?.querySelectorAll("g.node, g.rough-node"), o;
1374
+ if (a?.forEach((e) => {
1375
+ let t = e.textContent?.trim();
1376
+ (e.id === i?.domId || t === r) && (o = e);
1377
+ }), !o) {
1378
+ t.warn("⚠️ Could not find node matching text:", r);
1379
+ return;
1380
+ }
1381
+ let s = o.parentNode;
1382
+ if (!s) {
1383
+ t.warn("⚠️ Node has no parent, cannot wrap:", r);
1384
+ return;
1385
+ }
1386
+ let u = document.createElementNS("http://www.w3.org/2000/svg", "a"), d = e.url.replace(/^"+|"+$/g, "");
1387
+ if (u.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", d), u.setAttribute("target", "_blank"), e.tooltip) {
1388
+ let t = e.tooltip.replace(/^"+|"+$/g, "");
1389
+ u.setAttribute("title", t), o.setAttribute("title", t);
1390
+ }
1391
+ s.replaceChild(u, o), u.appendChild(o), t.info("🔗 Wrapped node in <a> tag for:", r, e.url);
1392
+ });
1393
+ } catch (e) {
1394
+ t.error("❌ Error injecting clickable links:", e);
1395
+ }
1396
+ p.insertTitle(l, "statediagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), _(l, 8, z, o?.useMaxWidth ?? !0);
1397
+ }, "draw"),
1398
+ getDir: G
1399
+ }, K = /* @__PURE__ */ new Map(), q = 0;
1400
+ function J(e = "", t = 0, n = "", r = U) {
1401
+ return `${fe}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
1402
+ }
1403
+ e(J, "stateDomId");
1404
+ var he = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
1405
+ t.trace("items", n), n.forEach((t) => {
1406
+ switch (t.stmt) {
1407
+ case w:
1408
+ Z(e, t, r, i, a, o, s, l);
1409
+ break;
1410
+ case A:
1411
+ Z(e, t, r, i, a, o, s, l);
1412
+ break;
1413
+ case E:
1414
+ {
1415
+ Z(e, t.state1, r, i, a, o, s, l), Z(e, t.state2, r, i, a, o, s, l);
1416
+ let n = s === "neo", u = {
1417
+ id: "edge" + q,
1418
+ start: t.state1.id,
1419
+ end: t.state2.id,
1420
+ arrowhead: "normal",
1421
+ arrowTypeEnd: n ? "arrow_barb_neo" : "arrow_barb",
1422
+ style: M,
1423
+ labelStyle: "",
1424
+ label: c.sanitizeText(t.description ?? "", d()),
1425
+ arrowheadStyle: N,
1426
+ labelpos: P,
1427
+ labelType: ee,
1428
+ thickness: F,
1429
+ classes: B,
1430
+ look: s
1431
+ };
1432
+ a.push(u), q++;
1433
+ }
1434
+ break;
1435
+ }
1436
+ });
1437
+ }, "setupDoc"), ge = /* @__PURE__ */ e((e, t = S) => {
1438
+ let n = t;
1439
+ if (e.doc) for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1440
+ return n;
1441
+ }, "getDir");
1442
+ function Y(e, t, n) {
1443
+ if (!t.id || t.id === "</join></fork>" || t.id === "</choice>") return;
1444
+ t.cssClasses && (Array.isArray(t.cssCompiledStyles) || (t.cssCompiledStyles = []), t.cssClasses.split(" ").forEach((e) => {
1445
+ let r = n.get(e);
1446
+ r && (t.cssCompiledStyles = [...t.cssCompiledStyles ?? [], ...r.styles]);
1447
+ }));
1448
+ let r = e.find((e) => e.id === t.id);
1449
+ r ? Object.assign(r, t) : e.push(t);
1450
+ }
1451
+ e(Y, "insertOrUpdateNode");
1452
+ function X(e) {
1453
+ return e?.classes?.join(" ") ?? "";
1454
+ }
1455
+ e(X, "getClassesFromDbInfo");
1456
+ function _e(e) {
1457
+ return e?.styles ?? [];
1458
+ }
1459
+ e(_e, "getStylesFromDbInfo");
1460
+ var Z = /* @__PURE__ */ e((e, n, r, i, a, o, s, l) => {
1461
+ let u = n.id, f = r.get(u), p = X(f), m = _e(f), h = d();
1462
+ if (t.info("dataFetcher parsedItem", n, f, m), u !== "root") {
1463
+ let r = I;
1464
+ n.start === !0 ? r = te : n.start === !1 && (r = ne), n.type !== A && (r = n.type), K.get(u) || K.set(u, {
1465
+ id: u,
1466
+ shape: r,
1467
+ description: c.sanitizeText(u, h),
1468
+ cssClasses: `${p} ${oe}`,
1469
+ cssStyles: m
1470
+ });
1471
+ let d = K.get(u);
1472
+ n.description && (Array.isArray(d.description) ? (d.shape = L, d.description.push(n.description)) : d.description?.length && d.description.length > 0 ? (d.shape = L, d.description === u ? d.description = [n.description] : d.description = [d.description, n.description]) : (d.shape = I, d.description = n.description), d.description = c.sanitizeTextOrArray(d.description, h)), d.description?.length === 1 && d.shape === L && (d.type === "group" ? d.shape = re : d.shape = I), !d.type && n.doc && (t.info("Setting cluster for XCX", u, ge(n)), d.type = "group", d.isGroup = !0, d.dir = ge(n), d.explicitDir = n.doc.some((e) => e.stmt === "dir"), d.shape = n.type === j ? R : re, d.cssClasses = `${d.cssClasses} ${ue} ${o ? de : ""}`);
1473
+ let f = {
1474
+ labelStyle: "",
1475
+ shape: d.shape,
1476
+ label: d.description,
1477
+ cssClasses: d.cssClasses,
1478
+ cssCompiledStyles: [],
1479
+ cssStyles: d.cssStyles,
1480
+ id: u,
1481
+ dir: d.dir,
1482
+ domId: J(u, q),
1483
+ type: d.type,
1484
+ isGroup: d.type === "group",
1485
+ padding: 8,
1486
+ rx: 10,
1487
+ ry: 10,
1488
+ look: s,
1489
+ labelType: "markdown"
1490
+ };
1491
+ if (f.shape === R && (f.label = ""), e && e.id !== "root" && (t.trace("Setting node ", u, " to be child of its parent ", e.id), f.parentId = e.id), f.centerLabel = !0, n.note) {
1492
+ let e = {
1493
+ labelStyle: "",
1494
+ shape: ie,
1495
+ label: n.note.text,
1496
+ labelType: "markdown",
1497
+ cssClasses: le,
1498
+ cssStyles: [],
1499
+ cssCompiledStyles: [],
1500
+ id: u + pe + "-" + q,
1501
+ domId: J(u, q, H),
1502
+ type: d.type,
1503
+ isGroup: d.type === "group",
1504
+ padding: h.flowchart?.padding,
1505
+ look: s,
1506
+ position: n.note.position
1507
+ }, t = u + W, r = {
1508
+ labelStyle: "",
1509
+ shape: ae,
1510
+ label: n.note.text,
1511
+ cssClasses: d.cssClasses,
1512
+ cssStyles: [],
1513
+ id: u + W,
1514
+ domId: J(u, q, V),
1515
+ type: "group",
1516
+ isGroup: !0,
1517
+ padding: 16,
1518
+ look: s,
1519
+ position: n.note.position
1520
+ };
1521
+ q++, r.id = t, e.parentId = t, Y(i, r, l), Y(i, e, l), Y(i, f, l);
1522
+ let o = u, c = e.id;
1523
+ n.note.position === "left of" && (o = e.id, c = u), a.push({
1524
+ id: o + "-" + c,
1525
+ start: o,
1526
+ end: c,
1527
+ arrowhead: "none",
1528
+ arrowTypeEnd: "",
1529
+ style: M,
1530
+ labelStyle: "",
1531
+ classes: ce,
1532
+ arrowheadStyle: N,
1533
+ labelpos: P,
1534
+ labelType: ee,
1535
+ thickness: F,
1536
+ look: s
1537
+ });
1538
+ } else Y(i, f, l);
1539
+ }
1540
+ n.doc && (t.trace("Adding nodes children "), he(n, n.doc, r, i, a, !o, s, l));
1541
+ }, "dataFetcher"), ve = /* @__PURE__ */ e(() => {
1542
+ K.clear(), q = 0;
1543
+ }, "reset"), Q = {
1544
+ START_NODE: "[*]",
1545
+ START_TYPE: "start",
1546
+ END_NODE: "[*]",
1547
+ END_TYPE: "end",
1548
+ COLOR_KEYWORD: "color",
1549
+ FILL_KEYWORD: "fill",
1550
+ BG_FILL: "bgFill",
1551
+ STYLECLASS_SEP: ","
1552
+ }, ye = /* @__PURE__ */ e(() => /* @__PURE__ */ new Map(), "newClassesList"), be = /* @__PURE__ */ e(() => ({
1553
+ relations: [],
1554
+ states: /* @__PURE__ */ new Map(),
1555
+ documents: {}
1556
+ }), "newDoc"), $ = /* @__PURE__ */ e((e) => JSON.parse(JSON.stringify(e)), "clone"), xe = class {
1557
+ constructor(e) {
1558
+ this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = ye(), this.documents = { root: be() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.funs = [], this.getAccTitle = f, this.setAccTitle = o, this.getAccDescription = l, this.setAccDescription = i, this.setDiagramTitle = a, this.getDiagramTitle = u, 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), this.bindFunctions = this.bindFunctions.bind(this);
1559
+ }
1560
+ static {
1561
+ e(this, "StateDB");
1562
+ }
1563
+ static {
1564
+ this.relationType = {
1565
+ AGGREGATION: 0,
1566
+ EXTENSION: 1,
1567
+ COMPOSITION: 2,
1568
+ DEPENDENCY: 3
1569
+ };
1570
+ }
1571
+ extract(e) {
1572
+ this.clear(!0);
1573
+ for (let t of Array.isArray(e) ? e : e.doc) switch (t.stmt) {
1574
+ case w:
1575
+ this.addState(t.id.trim(), t.type, t.doc, t.description, t.note);
1576
+ break;
1577
+ case E:
1578
+ this.addRelation(t.state1, t.state2, t.description);
1579
+ break;
1580
+ case D:
1581
+ this.addStyleClass(t.id.trim(), t.classes);
1582
+ break;
1583
+ case O:
1584
+ this.handleStyleDef(t);
1585
+ break;
1586
+ case k:
1587
+ this.setCssClass(t.id.trim(), t.styleClass);
1588
+ break;
1589
+ case "click":
1590
+ this.addLink(t.id, t.url, t.tooltip);
1591
+ break;
1592
+ }
1593
+ let t = this.getStates(), n = d();
1594
+ ve(), Z(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
1595
+ for (let e of this.nodes) if (Array.isArray(e.label)) {
1596
+ 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}]`);
1597
+ e.label = e.label[0];
1598
+ }
1599
+ }
1600
+ handleStyleDef(e) {
1601
+ let t = e.id.trim().split(","), n = e.styleClass.split(",");
1602
+ for (let e of t) {
1603
+ let t = this.getState(e);
1604
+ if (!t) {
1605
+ let n = e.trim();
1606
+ this.addState(n), t = this.getState(n);
1607
+ }
1608
+ t && (t.styles = n.map((e) => e.replace(/;/g, "")?.trim()));
1609
+ }
1610
+ }
1611
+ setRootDoc(e) {
1612
+ t.info("Setting root doc", e), this.rootDoc = e, this.version === 1 ? this.extract(e) : this.extract(this.getRootDocV2());
1613
+ }
1614
+ docTranslator(e, t, n) {
1615
+ if (t.stmt === E) {
1616
+ this.docTranslator(e, t.state1, !0), this.docTranslator(e, t.state2, !1);
1617
+ return;
1618
+ }
1619
+ if (t.stmt === w && (t.id === Q.START_NODE ? (t.id = e.id + (n ? "_start" : "_end"), t.start = n) : t.id = t.id.trim()), t.stmt !== T && t.stmt !== w || !t.doc) return;
1620
+ let r = [], i = [];
1621
+ for (let e of t.doc) if (e.type === j) {
1622
+ let t = $(e);
1623
+ t.doc = $(i), r.push(t), i = [];
1624
+ } else i.push(e);
1625
+ if (r.length > 0 && i.length > 0) {
1626
+ let e = {
1627
+ stmt: w,
1628
+ id: m(),
1629
+ type: "divider",
1630
+ doc: $(i)
1631
+ };
1632
+ r.push($(e)), t.doc = r;
1633
+ }
1634
+ t.doc.forEach((e) => this.docTranslator(t, e, !0));
1635
+ }
1636
+ getRootDocV2() {
1637
+ return this.docTranslator({
1638
+ id: T,
1639
+ stmt: T
1640
+ }, {
1641
+ id: T,
1642
+ stmt: T,
1643
+ doc: this.rootDoc
1644
+ }, !0), {
1645
+ id: T,
1646
+ doc: this.rootDoc
1647
+ };
1648
+ }
1649
+ addState(e, n = A, r = void 0, i = void 0, a = void 0, o = void 0, s = void 0, l = void 0) {
1650
+ let u = e?.trim();
1651
+ if (!this.currentDocument.states.has(u)) t.info("Adding state ", u, i), this.currentDocument.states.set(u, {
1652
+ stmt: w,
1653
+ id: u,
1654
+ descriptions: [],
1655
+ type: n,
1656
+ doc: r,
1657
+ note: a,
1658
+ classes: [],
1659
+ styles: [],
1660
+ textStyles: []
1661
+ });
1662
+ else {
1663
+ let e = this.currentDocument.states.get(u);
1664
+ if (!e) throw Error(`State not found: ${u}`);
1665
+ e.doc ||= r, e.type ||= n;
1666
+ }
1667
+ if (i && (t.info("Setting state description", u, i), (Array.isArray(i) ? i : [i]).forEach((e) => this.addDescription(u, e.trim()))), a) {
1668
+ let e = this.currentDocument.states.get(u);
1669
+ if (!e) throw Error(`State not found: ${u}`);
1670
+ e.note = a, e.note.text = c.sanitizeText(e.note.text, d());
1671
+ }
1672
+ o && (t.info("Setting state classes", u, o), (Array.isArray(o) ? o : [o]).forEach((e) => this.setCssClass(u, e.trim()))), s && (t.info("Setting state styles", u, s), (Array.isArray(s) ? s : [s]).forEach((e) => this.setStyle(u, e.trim()))), l && (t.info("Setting state styles", u, s), (Array.isArray(l) ? l : [l]).forEach((e) => this.setTextStyle(u, e.trim())));
1673
+ }
1674
+ clear(e) {
1675
+ this.nodes = [], this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.documents = { root: be() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = ye(), e || (this.links = /* @__PURE__ */ new Map(), s());
1676
+ }
1677
+ getState(e) {
1678
+ return this.currentDocument.states.get(e);
1679
+ }
1680
+ getStates() {
1681
+ return this.currentDocument.states;
1682
+ }
1683
+ logDocuments() {
1684
+ t.info("Documents = ", this.documents);
1685
+ }
1686
+ getRelations() {
1687
+ return this.currentDocument.relations;
1688
+ }
1689
+ addLink(e, n, r) {
1690
+ this.links.set(e, {
1691
+ url: n,
1692
+ tooltip: r
1693
+ }), t.warn("Adding link", e, n, r);
1694
+ }
1695
+ getLinks() {
1696
+ return this.links;
1697
+ }
1698
+ startIdIfNeeded(e = "") {
1699
+ return e === Q.START_NODE ? (this.startEndCount++, `${Q.START_TYPE}${this.startEndCount}`) : e;
1700
+ }
1701
+ startTypeIfNeeded(e = "", t = A) {
1702
+ return e === Q.START_NODE ? Q.START_TYPE : t;
1703
+ }
1704
+ endIdIfNeeded(e = "") {
1705
+ return e === Q.END_NODE ? (this.startEndCount++, `${Q.END_TYPE}${this.startEndCount}`) : e;
1706
+ }
1707
+ endTypeIfNeeded(e = "", t = A) {
1708
+ return e === Q.END_NODE ? Q.END_TYPE : t;
1709
+ }
1710
+ addRelationObjs(e, t, n = "") {
1711
+ 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);
1712
+ 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({
1713
+ id1: r,
1714
+ id2: a,
1715
+ relationTitle: c.sanitizeText(n, d())
1716
+ });
1717
+ }
1718
+ addRelation(e, t, n) {
1719
+ if (typeof e == "object" && typeof t == "object") this.addRelationObjs(e, t, n);
1720
+ else if (typeof e == "string" && typeof t == "string") {
1721
+ let r = this.startIdIfNeeded(e.trim()), i = this.startTypeIfNeeded(e), a = this.endIdIfNeeded(t.trim()), o = this.endTypeIfNeeded(t);
1722
+ this.addState(r, i), this.addState(a, o), this.currentDocument.relations.push({
1723
+ id1: r,
1724
+ id2: a,
1725
+ relationTitle: n ? c.sanitizeText(n, d()) : void 0
1726
+ });
1727
+ }
1728
+ }
1729
+ addDescription(e, t) {
1730
+ let n = this.currentDocument.states.get(e), r = t.startsWith(":") ? t.replace(":", "").trim() : t;
1731
+ n?.descriptions?.push(c.sanitizeText(r, d()));
1732
+ }
1733
+ cleanupLabel(e) {
1734
+ return e.startsWith(":") ? e.slice(2).trim() : e.trim();
1735
+ }
1736
+ getDividerId() {
1737
+ return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
1738
+ }
1739
+ addStyleClass(e, t = "") {
1740
+ this.classes.has(e) || this.classes.set(e, {
1741
+ id: e,
1742
+ styles: [],
1743
+ textStyles: []
1744
+ });
1745
+ let n = this.classes.get(e);
1746
+ t && n && t.split(Q.STYLECLASS_SEP).forEach((e) => {
1747
+ let t = e.replace(/([^;]*);/, "$1").trim();
1748
+ if (RegExp(Q.COLOR_KEYWORD).exec(e)) {
1749
+ let e = t.replace(Q.FILL_KEYWORD, Q.BG_FILL).replace(Q.COLOR_KEYWORD, Q.FILL_KEYWORD);
1750
+ n.textStyles.push(e);
1751
+ }
1752
+ n.styles.push(t);
1753
+ });
1754
+ }
1755
+ getClasses() {
1756
+ return this.classes;
1757
+ }
1758
+ setupToolTips(e) {
1759
+ let t = h();
1760
+ n(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover", (e) => {
1761
+ let i = n(e.currentTarget), a = i.attr("title");
1762
+ if (a === null) return;
1763
+ let o = e.currentTarget?.getBoundingClientRect();
1764
+ t.transition().duration(200).style("opacity", ".9"), t.style("left", window.scrollX + o.left + (o.right - o.left) / 2 + "px").style("top", window.scrollY + o.bottom + "px"), t.html(r.sanitize(a)), i.classed("hover", !0);
1765
+ }).on("mouseout", (e) => {
1766
+ t.transition().duration(500).style("opacity", 0), n(e.currentTarget).classed("hover", !1);
1767
+ });
1768
+ }
1769
+ setCssClass(e, t) {
1770
+ e.split(",").forEach((e) => {
1771
+ let n = this.getState(e);
1772
+ if (!n) {
1773
+ let t = e.trim();
1774
+ this.addState(t), n = this.getState(t);
1775
+ }
1776
+ n?.classes?.push(t);
1777
+ });
1778
+ }
1779
+ setStyle(e, t) {
1780
+ this.getState(e)?.styles?.push(t);
1781
+ }
1782
+ setTextStyle(e, t) {
1783
+ this.getState(e)?.textStyles?.push(t);
1784
+ }
1785
+ bindFunctions(e) {
1786
+ this.funs.forEach((t) => {
1787
+ t(e);
1788
+ });
1789
+ }
1790
+ getDirectionStatement() {
1791
+ return this.rootDoc.find((e) => e.stmt === C);
1792
+ }
1793
+ getDirection() {
1794
+ return this.getDirectionStatement()?.value ?? x;
1795
+ }
1796
+ setDirection(e) {
1797
+ let t = this.getDirectionStatement();
1798
+ t ? t.value = e : this.rootDoc.unshift({
1799
+ stmt: C,
1800
+ value: e
1801
+ });
1802
+ }
1803
+ trimColon(e) {
1804
+ return e.startsWith(":") ? e.slice(1).trim() : e.trim();
1805
+ }
1806
+ getData() {
1807
+ let e = d();
1808
+ return {
1809
+ nodes: this.nodes,
1810
+ edges: this.edges,
1811
+ other: {},
1812
+ config: e,
1813
+ direction: G(this.getRootDocV2())
1814
+ };
1815
+ }
1816
+ getConfig() {
1817
+ return d().state;
1818
+ }
1819
+ }, Se = /* @__PURE__ */ e((e) => `
1820
+ defs [id$="-barbEnd"] {
1821
+ fill: ${e.transitionColor};
1822
+ stroke: ${e.transitionColor};
1823
+ }
1824
+ g.stateGroup text {
1825
+ fill: ${e.nodeBorder};
1826
+ stroke: none;
1827
+ font-size: 10px;
1828
+ }
1829
+ g.stateGroup text {
1830
+ fill: ${e.textColor};
1831
+ stroke: none;
1832
+ font-size: 10px;
1833
+
1834
+ }
1835
+ g.stateGroup .state-title {
1836
+ font-weight: bolder;
1837
+ fill: ${e.stateLabelColor};
1838
+ }
1839
+
1840
+ g.stateGroup rect {
1841
+ fill: ${e.mainBkg};
1842
+ stroke: ${e.nodeBorder};
1843
+ }
1844
+
1845
+ g.stateGroup line {
1846
+ stroke: ${e.lineColor};
1847
+ stroke-width: ${e.strokeWidth || 1};
1848
+ }
1849
+
1850
+ .transition {
1851
+ stroke: ${e.transitionColor};
1852
+ stroke-width: ${e.strokeWidth || 1};
1853
+ fill: none;
1854
+ }
1855
+
1856
+ .stateGroup .composit {
1857
+ fill: ${e.background};
1858
+ border-bottom: 1px
1859
+ }
1860
+
1861
+ .stateGroup .alt-composit {
1862
+ fill: #e0e0e0;
1863
+ border-bottom: 1px
1864
+ }
1865
+
1866
+ .state-note {
1867
+ stroke: ${e.noteBorderColor};
1868
+ fill: ${e.noteBkgColor};
1869
+
1870
+ text {
1871
+ fill: ${e.noteTextColor};
1872
+ stroke: none;
1873
+ font-size: 10px;
1874
+ }
1875
+ }
1876
+
1877
+ .stateLabel .box {
1878
+ stroke: none;
1879
+ stroke-width: 0;
1880
+ fill: ${e.mainBkg};
1881
+ opacity: 0.5;
1882
+ }
1883
+
1884
+ .edgeLabel .label rect {
1885
+ fill: ${e.labelBackgroundColor};
1886
+ opacity: 0.5;
1887
+ }
1888
+ .edgeLabel {
1889
+ background-color: ${e.edgeLabelBackground};
1890
+ p {
1891
+ background-color: ${e.edgeLabelBackground};
1892
+ }
1893
+ rect {
1894
+ opacity: 0.5;
1895
+ background-color: ${e.edgeLabelBackground};
1896
+ fill: ${e.edgeLabelBackground};
1897
+ }
1898
+ text-align: center;
1899
+ }
1900
+ .edgeLabel .label text {
1901
+ fill: ${e.transitionLabelColor || e.tertiaryTextColor};
1902
+ }
1903
+ .label div .edgeLabel {
1904
+ color: ${e.transitionLabelColor || e.tertiaryTextColor};
1905
+ }
1906
+
1907
+ .stateLabel text {
1908
+ fill: ${e.stateLabelColor};
1909
+ font-size: 10px;
1910
+ font-weight: bold;
1911
+ }
1912
+
1913
+ .node circle.state-start {
1914
+ fill: ${e.specialStateColor};
1915
+ stroke: ${e.specialStateColor};
1916
+ }
1917
+
1918
+ .node .fork-join {
1919
+ fill: ${e.specialStateColor};
1920
+ stroke: ${e.specialStateColor};
1921
+ }
1922
+
1923
+ .node circle.state-end {
1924
+ fill: ${e.innerEndBackground};
1925
+ stroke: ${e.background};
1926
+ stroke-width: 1.5
1927
+ }
1928
+ .end-state-inner {
1929
+ fill: ${e.compositeBackground || e.background};
1930
+ // stroke: ${e.background};
1931
+ stroke-width: 1.5
1932
+ }
1933
+
1934
+ .node rect {
1935
+ fill: ${e.stateBkg || e.mainBkg};
1936
+ stroke: ${e.stateBorder || e.nodeBorder};
1937
+ stroke-width: ${e.strokeWidth || 1}px;
1938
+ }
1939
+ .node polygon {
1940
+ fill: ${e.mainBkg};
1941
+ stroke: ${e.stateBorder || e.nodeBorder};;
1942
+ stroke-width: ${e.strokeWidth || 1}px;
1943
+ }
1944
+ [id$="-barbEnd"] {
1945
+ fill: ${e.lineColor};
1946
+ }
1947
+
1948
+ .statediagram-cluster rect {
1949
+ fill: ${e.compositeTitleBackground};
1950
+ stroke: ${e.stateBorder || e.nodeBorder};
1951
+ stroke-width: ${e.strokeWidth || 1}px;
1952
+ }
1953
+
1954
+ .cluster-label, .nodeLabel {
1955
+ color: ${e.stateLabelColor};
1956
+ // line-height: 1;
1957
+ }
1958
+
1959
+ .statediagram-cluster rect.outer {
1960
+ rx: 5px;
1961
+ ry: 5px;
1962
+ }
1963
+ .statediagram-state .divider {
1964
+ stroke: ${e.stateBorder || e.nodeBorder};
1965
+ }
1966
+
1967
+ .statediagram-state .title-state {
1968
+ rx: 5px;
1969
+ ry: 5px;
1970
+ }
1971
+ .statediagram-cluster.statediagram-cluster .inner {
1972
+ fill: ${e.compositeBackground || e.background};
1973
+ }
1974
+ .statediagram-cluster.statediagram-cluster-alt .inner {
1975
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1976
+ }
1977
+
1978
+ .statediagram-cluster .inner {
1979
+ rx:0;
1980
+ ry:0;
1981
+ }
1982
+
1983
+ .statediagram-state rect.basic {
1984
+ rx: 5px;
1985
+ ry: 5px;
1986
+ }
1987
+ .statediagram-state rect.divider {
1988
+ stroke-dasharray: 10,10;
1989
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1990
+ }
1991
+
1992
+ .note-edge {
1993
+ stroke-dasharray: 5;
1994
+ }
1995
+
1996
+ .statediagram-note rect {
1997
+ fill: ${e.noteBkgColor};
1998
+ stroke: ${e.noteBorderColor};
1999
+ stroke-width: 1px;
2000
+ rx: 0;
2001
+ ry: 0;
2002
+ }
2003
+ .statediagram-note rect {
2004
+ fill: ${e.noteBkgColor};
2005
+ stroke: ${e.noteBorderColor};
2006
+ stroke-width: 1px;
2007
+ rx: 0;
2008
+ ry: 0;
2009
+ }
2010
+
2011
+ .statediagram-note text {
2012
+ fill: ${e.noteTextColor};
2013
+ }
2014
+
2015
+ .statediagram-note .nodeLabel {
2016
+ color: ${e.noteTextColor};
2017
+ }
2018
+ .statediagram .edgeLabel {
2019
+ color: red; // ${e.noteTextColor};
2020
+ }
2021
+
2022
+ [id$="-dependencyStart"], [id$="-dependencyEnd"] {
2023
+ fill: ${e.lineColor};
2024
+ stroke: ${e.lineColor};
2025
+ stroke-width: ${e.strokeWidth || 1};
2026
+ }
2027
+
2028
+ .statediagramTitleText {
2029
+ text-anchor: middle;
2030
+ font-size: 18px;
2031
+ fill: ${e.textColor};
2032
+ }
2033
+
2034
+ [data-look="neo"].statediagram-cluster rect {
2035
+ fill: ${e.mainBkg};
2036
+ stroke: ${e.useGradient ? "url(" + e.svgId + "-gradient)" : e.stateBorder || e.nodeBorder};
2037
+ stroke-width: ${e.strokeWidth ?? 1};
2038
+ }
2039
+ [data-look="neo"].statediagram-cluster rect.outer {
2040
+ rx: ${e.radius}px;
2041
+ ry: ${e.radius}px;
2042
+ filter: ${e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${e.svgId}-drop-shadow)`) : "none"}
2043
+ }
2044
+ `, "getStyles");
2045
+ //#endregion
2046
+ export { Se as i, b as n, me as r, xe as t };