docmedown 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/README.md +69 -20
  2. package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +89 -0
  3. package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +1 -0
  4. package/dist/arc-DgPKXEdT.mjs +82 -0
  5. package/dist/arc-n7TW7Bis.js +1 -0
  6. package/dist/architecture-7GRP2DOG-B7myQ46f.js +1 -0
  7. package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +3 -0
  8. package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +36 -0
  9. package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +4154 -0
  10. package/dist/array-CApNbSU9.mjs +6 -0
  11. package/dist/array-DZSRzHA_.js +1 -0
  12. package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +129 -0
  13. package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +1922 -0
  14. package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +38 -0
  15. package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +3010 -0
  16. package/dist/channel-LgHproiI.mjs +5 -0
  17. package/dist/channel-yqu0m4cl.js +1 -0
  18. package/dist/chunk-2E4U76K2-BOyeRQsI.js +1 -0
  19. package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +348 -0
  20. package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +15 -0
  21. package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +1 -0
  22. package/dist/chunk-4HAMMTFA-GFyfmcSO.js +62 -0
  23. package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +4188 -0
  24. package/dist/chunk-5VM5RSS4-GINalzIv.js +15 -0
  25. package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +5 -0
  26. package/dist/chunk-75Z2AOVW-DYouz5MZ.js +2 -0
  27. package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +1330 -0
  28. package/dist/chunk-CLGD4ZFX-C5J-e2io.js +1 -0
  29. package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +14 -0
  30. package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +3836 -0
  31. package/dist/chunk-DU6HZSFF-CWc5ewtb.js +127 -0
  32. package/dist/chunk-F27PBJKO-8jvY_jJK.js +1 -0
  33. package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +61 -0
  34. package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +21456 -0
  35. package/dist/chunk-FOHPRMQF-tmTlwTeH.js +161 -0
  36. package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +1863 -0
  37. package/dist/chunk-GMAD6QVW-DEQiTa0c.js +72 -0
  38. package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +37 -0
  39. package/dist/chunk-GVQU2GXP-CdJIWN41.js +1 -0
  40. package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +2042 -0
  41. package/dist/chunk-IMKFNOWR-CPJsszGN.js +231 -0
  42. package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +8 -0
  43. package/dist/chunk-JWPE2WC7-p1fYVdYc.js +1 -0
  44. package/dist/chunk-L3NEJ4N5-TzDiVs78.js +1 -0
  45. package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +245 -0
  46. package/dist/chunk-LNGE3PJU-BQX75wkM.js +34 -0
  47. package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +1521 -0
  48. package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +672 -0
  49. package/dist/chunk-OSK3NFVY-CHzvVe8m.js +10 -0
  50. package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +67 -0
  51. package/dist/chunk-P2QGCYS3-DKZzpRQW.js +1 -0
  52. package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +26 -0
  53. package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +1 -0
  54. package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +275 -0
  55. package/dist/chunk-PWAF6VOD-DxZLuCEw.js +1 -0
  56. package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +4183 -0
  57. package/dist/chunk-SHT3W25Y-BQjHSn5K.js +168 -0
  58. package/dist/chunk-SVP7TREG-BFMd615E.js +88 -0
  59. package/dist/chunk-SVP7TREG-CynckzeF.mjs +490 -0
  60. package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +3357 -0
  61. package/dist/chunk-TICWLB2K-agcyBfUp.js +206 -0
  62. package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +59 -0
  63. package/dist/chunk-TLUHSLCS-Drx_a7am.js +1 -0
  64. package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +1 -0
  65. package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +9 -0
  66. package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +1 -0
  67. package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +12 -0
  68. package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +1 -0
  69. package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +30 -0
  70. package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +1 -0
  71. package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +30 -0
  72. package/dist/cli.js +719 -532
  73. package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +1 -0
  74. package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +2253 -0
  75. package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +3 -0
  76. package/dist/cynefin-OW5HDTMX-lNKysi7S.js +1 -0
  77. package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +62 -0
  78. package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +355 -0
  79. package/dist/cytoscape.esm-C5TvPYYm.mjs +18148 -0
  80. package/dist/cytoscape.esm-CBmWJr5M.js +321 -0
  81. package/dist/dagre-CZ6P9L_h.js +1 -0
  82. package/dist/dagre-GXQ25YYZ-CQszk-7P.js +4 -0
  83. package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +425 -0
  84. package/dist/dagre-J_1oH0eY.mjs +1934 -0
  85. package/dist/defaultLocale-N-0uLSyg.mjs +198 -0
  86. package/dist/defaultLocale-ybN1Vtvg.js +1 -0
  87. package/dist/diagram-S7CK7UJ4-CTMvxX__.js +30 -0
  88. package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +301 -0
  89. package/dist/diagram-UQ7AKVKN-1viEkqlG.js +41 -0
  90. package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +214 -0
  91. package/dist/diagram-VSXAHHWV-DgVT19mq.js +3 -0
  92. package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +432 -0
  93. package/dist/diagram-VX7I27RA-CNw0pOX_.js +24 -0
  94. package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +527 -0
  95. package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +134 -0
  96. package/dist/diagram-Z3DM3KII-CPkBr3FT.js +24 -0
  97. package/dist/dist-CXWJafG_.js +1 -0
  98. package/dist/dist-DNdLIC8h.mjs +59 -0
  99. package/dist/docmedown.cjs +125 -44
  100. package/dist/docmedown.iife.js +3477 -72
  101. package/dist/docmedown.mjs +10003 -4807
  102. package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +1 -0
  103. package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +100 -0
  104. package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +99 -0
  105. package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +1966 -0
  106. package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +1 -0
  107. package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +3 -0
  108. package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +1 -0
  109. package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +17 -0
  110. package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +3072 -0
  111. package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +292 -0
  112. package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +1 -0
  113. package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +3 -0
  114. package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +106 -0
  115. package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +733 -0
  116. package/dist/graphlib-BaETKKSa.js +1 -0
  117. package/dist/graphlib-XW-Jr8pF.mjs +1267 -0
  118. package/dist/info-A6RAGUB7-ClYskpn6.mjs +3 -0
  119. package/dist/info-A6RAGUB7-DDvvt-fW.js +1 -0
  120. package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +20 -0
  121. package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +2 -0
  122. package/dist/init-BJdqMO10.js +1 -0
  123. package/dist/init-CsQUQz36.mjs +13 -0
  124. package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +70 -0
  125. package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +719 -0
  126. package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +139 -0
  127. package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +884 -0
  128. package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +976 -0
  129. package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +89 -0
  130. package/dist/line-BEwhHSLl.js +1 -0
  131. package/dist/line-CiXRog8O.mjs +34 -0
  132. package/dist/linear-75tfjrny.js +1 -0
  133. package/dist/linear-Ncx_RuON.mjs +288 -0
  134. package/dist/mermaid-parser.core-BBApyu_y.js +6 -0
  135. package/dist/mermaid-parser.core-BRHibdUE.mjs +638 -0
  136. package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +1006 -0
  137. package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +96 -0
  138. package/dist/ordinal-B1BNQwUR.mjs +65 -0
  139. package/dist/ordinal-B9aFWmF9.js +1 -0
  140. package/dist/packet-AYTQ26CC-CorIy9Ul.js +1 -0
  141. package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +3 -0
  142. package/dist/path-CnWkkRiY.mjs +84 -0
  143. package/dist/path-DIS6ck99.js +1 -0
  144. package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +1 -0
  145. package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +94 -0
  146. package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +3 -0
  147. package/dist/pie-WAS4IAKB-D84xrSoY.js +1 -0
  148. package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +39 -0
  149. package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +203 -0
  150. package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +7 -0
  151. package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +2001 -0
  152. package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +3 -0
  153. package/dist/radar-RG4KPBEZ-R2sQOLL9.js +1 -0
  154. package/dist/railroad-74A4TZTK-BOZIf6ts.js +1 -0
  155. package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +3 -0
  156. package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +3 -0
  157. package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +1 -0
  158. package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +1 -0
  159. package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +3 -0
  160. package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +3 -0
  161. package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +1 -0
  162. package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +76 -0
  163. package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +1 -0
  164. package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +84 -0
  165. package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +2224 -0
  166. package/dist/rough.esm-ChRLLRha.js +1 -0
  167. package/dist/rough.esm-DXYGHN3m.mjs +1361 -0
  168. package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +972 -0
  169. package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +40 -0
  170. package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +162 -0
  171. package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +4156 -0
  172. package/dist/sizeCapture-INFHLROL-BihkCH-7.js +1 -0
  173. package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +46 -0
  174. package/dist/src-B4mN2BMl.js +1 -0
  175. package/dist/src-D_hsMyeP.mjs +2154 -0
  176. package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +220 -0
  177. package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +1 -0
  178. package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +30 -0
  179. package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +1 -0
  180. package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +4979 -0
  181. package/dist/swimlanes-42K2YHIH-DlggBCTy.js +1 -0
  182. package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +8 -0
  183. package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +31 -0
  184. package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +120 -0
  185. package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +1069 -0
  186. package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +3 -0
  187. package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +1 -0
  188. package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +3 -0
  189. package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +1 -0
  190. package/dist/types/runtime/app.d.ts +3 -3
  191. package/dist/types/runtime/components/AppearanceMenu.d.ts +2 -0
  192. package/dist/types/runtime/components/Builtins.d.ts +3 -3
  193. package/dist/types/runtime/components/Content.d.ts +1 -1
  194. package/dist/types/runtime/components/DmdRegistry.d.ts +4 -2
  195. package/dist/types/runtime/components/Layout.d.ts +1 -1
  196. package/dist/types/runtime/components/MermaidDiagram.d.ts +16 -0
  197. package/dist/types/runtime/components/Navbar.d.ts +1 -1
  198. package/dist/types/runtime/components/OfflineDownloadButton.d.ts +2 -0
  199. package/dist/types/runtime/components/Sidebar.d.ts +1 -1
  200. package/dist/types/runtime/components/TableOfContents.d.ts +2 -2
  201. package/dist/types/runtime/config-schema.d.ts +386 -0
  202. package/dist/types/runtime/config.d.ts +10 -3
  203. package/dist/types/runtime/index.d.ts +7 -5
  204. package/dist/types/runtime/loader/auto-indexer.d.ts +1 -1
  205. package/dist/types/runtime/loader/local-loader.d.ts +1 -1
  206. package/dist/types/runtime/loader/remote-github.d.ts +2 -2
  207. package/dist/types/runtime/loader/remote-gitlab.d.ts +2 -2
  208. package/dist/types/runtime/markdown/callouts.d.ts +1 -1
  209. package/dist/types/runtime/markdown/highlighter.d.ts +16 -16
  210. package/dist/types/runtime/markdown/mermaid.d.ts +82 -1
  211. package/dist/types/runtime/markdown/parser.d.ts +1 -1
  212. package/dist/types/runtime/markdown/renderer.d.ts +1 -1
  213. package/dist/types/runtime/offline-export.d.ts +26 -0
  214. package/dist/types/runtime/provider/DocProvider.d.ts +5 -5
  215. package/dist/types/runtime/provider/ThemeProvider.d.ts +13 -6
  216. package/dist/types/runtime/search/SearchModal.d.ts +2 -2
  217. package/dist/types/runtime/search/search-index.d.ts +1 -1
  218. package/dist/types/runtime/types.d.ts +28 -99
  219. package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +34 -0
  220. package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +1880 -0
  221. package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +3 -0
  222. package/dist/wardley-WFR3VGLG-DWDqJSgm.js +1 -0
  223. package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +78 -0
  224. package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +645 -0
  225. package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +7 -0
  226. package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +2210 -0
  227. package/package.json +15 -4
  228. package/schemas/docs.schema.json +166 -0
  229. package/templates/README.md +4 -4
  230. package/templates/docs.json +5 -2
  231. package/templates/getting-started.md +1 -1
  232. package/templates/guides/custom-components.md +2 -0
  233. package/templates/index.html +2 -4
@@ -0,0 +1,231 @@
1
+ const e=require("./src-B4mN2BMl.js"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.js"),n=require("./chunk-DU6HZSFF-CWc5ewtb.js"),r=require("./chunk-75Z2AOVW-DYouz5MZ.js"),i=require("./chunk-TLUHSLCS-Drx_a7am.js"),a=require("./chunk-F27PBJKO-8jvY_jJK.js"),o=require("./chunk-XXDRQBXY-AAk1-Cyg.js"),s=require("./chunk-POPQ4Y6H-T5C7wpjf.js");var c=(function(){var e=t.n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`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=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:t.n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:t.n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``}}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:k},e(A,[2,17]),e(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,a,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:t.n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t.n(function(e){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:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t.n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t.n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){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]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+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,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1: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--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;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);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:t.n(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t.n(function(e,t){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={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t.n(function(){var e=this._input[0];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},`input`),unput:t.n(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);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);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,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},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t.n(function(){return this._more=!0,this},`more`),reject:t.n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t.n(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t.n(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t.n(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t.n(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:t.n(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},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={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},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;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t.n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);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)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t.n(function(){return this.next()||this.lex()},`lex`),begin:t.n(function(e){this.conditionStack.push(e)},`begin`),popState:t.n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t.n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t.n(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t.n(function(e){this.begin(e)},`pushState`),stateStackSize:t.n(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t.n(function(e,n,r,i){function a(){let t=n.yytext.indexOf(`%%`);if(t===0)return!1;if(t>0){let r=n.yytext.slice(0,t),i=n.yytext.slice(t);i&&e.lexer.unput(i),n.yytext=r}return!0}switch(t.n(a,`processId`),r){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState(`SCALE`),17;case 14:return 18;case 15:this.popState();break;case 16:return this.begin(`acc_title`),33;case 17:return this.popState(),`acc_title_value`;case 18:return this.begin(`acc_descr`),35;case 19:return this.popState(),`acc_descr_value`;case 20:this.begin(`acc_descr_multiline`);break;case 21:this.popState();break;case 22:return`acc_descr_multiline_value`;case 23:return this.pushState(`CLASSDEF`),41;case 24:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 25:return this.popState(),this.pushState(`CLASSDEFID`),42;case 26:return this.popState(),43;case 27:return this.pushState(`CLASS`),48;case 28:return this.popState(),this.pushState(`CLASS_STYLE`),49;case 29:return this.popState(),50;case 30:return this.pushState(`STYLE`),45;case 31:return this.popState(),this.pushState(`STYLEDEF_STYLES`),46;case 32:return this.popState(),47;case 33:return this.pushState(`SCALE`),17;case 34:return 18;case 35:this.popState();break;case 36:this.pushState(`STATE`);break;case 37:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),n.yytext=n.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),n.yytext=n.yytext.slice(0,-10).trim(),27;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState(`STATE_STRING`);break;case 48:return this.pushState(`STATE_ID`),`AS`;case 49:return a()?(this.popState(),`ID`):void 0;case 50:this.popState();break;case 51:return`STATE_DESCR`;case 52:throw Error(`Error: State name must be a single word. Found: "`+n.yytext.trim()+`"`);case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState(`struct`),20;case 56:return this.popState(),21;case 57:break;case 58:return this.begin(`NOTE`),29;case 59:return this.popState(),this.pushState(`NOTE_ID`),59;case 60:return this.popState(),this.pushState(`NOTE_ID`),60;case 61:this.popState(),this.pushState(`FLOATING_NOTE`);break;case 62:return this.popState(),this.pushState(`FLOATING_NOTE_ID`),`AS`;case 63:break;case 64:return`NOTE_TEXT`;case 65:return a()?(this.popState(),`ID`):void 0;case 66:return a()?(this.popState(),this.pushState(`NOTE_TEXT`),24):void 0;case 67:return this.popState(),n.yytext=n.yytext.substr(2).trim(),31;case 68:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),31;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:return a()?24:void 0;case 74:return n.yytext=n.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return`INVALID`}},`anonymous`),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}}})();function P(){this.yy={}}return t.n(P,`Parser`),P.prototype=N,N.Parser=P,new P})();c.parser=c;var l=c,u=`TB`,d=`TB`,f=`dir`,p=`state`,m=`root`,h=`relation`,g=`classDef`,_=`style`,v=`applyClass`,y=`default`,b=`divider`,x=`fill:none`,S=`fill: #333`,C=`c`,w=`markdown`,T=`normal`,E=`rect`,D=`rectWithTitle`,O=`stateStart`,k=`stateEnd`,A=`divider`,j=`roundedWithTitle`,M=`note`,N=`noteGroup`,P=`statediagram`,ee=`${P}-state`,F=`transition`,te=`note`,ne=`${F} note-edge`,I=`${P}-${te}`,re=`${P}-cluster`,ie=`${P}-cluster-alt`,L=`parent`,R=`note`,ae=`state`,z=`----`,oe=`${z}${R}`,B=`${z}${L}`,V=t.n((e,t=d)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),se={getClasses:t.n(function(e,t){return t.db.getClasses()},`getClasses`),draw:t.n(async function(t,a,c,l){e.m.info(`REF0:`),e.m.info(`Drawing state diagram (v2)`,a);let{securityLevel:u,state:d,layout:f}=n.x();l.db.extract(l.db.getRootDocV2());let p=l.db.getData(),m=o.t(a,u);p.type=l.type,p.layoutAlgorithm=f,p.nodeSpacing=d?.nodeSpacing||50,p.rankSpacing=d?.rankSpacing||50,p.markers=n.x().look===`neo`?[`barbNeo`]:[`barb`],p.diagramId=a,await i.r(p,m);try{(typeof l.db.getLinks==`function`?l.db.getLinks():new Map).forEach((t,n)=>{let r=typeof n==`string`?n:typeof n?.id==`string`?n.id:``,i=p.nodes.find(e=>e.id===r);if(!r){e.m.warn(`⚠️ Invalid or missing stateId from key:`,JSON.stringify(n));return}let a=m.node()?.querySelectorAll(`g.node, g.rough-node`),o;if(a?.forEach(e=>{let t=e.textContent?.trim();(e.id===i?.domId||t===r)&&(o=e)}),!o){e.m.warn(`⚠️ Could not find node matching text:`,r);return}let s=o.parentNode;if(!s){e.m.warn(`⚠️ Node has no parent, cannot wrap:`,r);return}let c=document.createElementNS(`http://www.w3.org/2000/svg`,`a`),l=t.url.replace(/^"+|"+$/g,``);if(c.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,l),c.setAttribute(`target`,`_blank`),t.tooltip){let e=t.tooltip.replace(/^"+|"+$/g,``);c.setAttribute(`title`,e),o.setAttribute(`title`,e)}s.replaceChild(c,o),c.appendChild(o),e.m.info(`🔗 Wrapped node in <a> tag for:`,r,t.url)})}catch(t){e.m.error(`❌ Error injecting clickable links:`,t)}r.g.insertTitle(m,`statediagramTitleText`,d?.titleTopMargin??25,l.db.getDiagramTitle()),s.t(m,8,P,d?.useMaxWidth??!0)},`draw`),getDir:V},H=new Map,U=0;function W(e=``,t=0,n=``,r=z){return`${ae}-${e}${n!==null&&n.length>0?`${r}${n}`:``}-${t}`}t.n(W,`stateDomId`);var ce=t.n((t,r,i,a,o,s,c,l)=>{e.m.trace(`items`,r),r.forEach(e=>{switch(e.stmt){case p:Y(t,e,i,a,o,s,c,l);break;case y:Y(t,e,i,a,o,s,c,l);break;case h:{Y(t,e.state1,i,a,o,s,c,l),Y(t,e.state2,i,a,o,s,c,l);let r=c===`neo`,u={id:`edge`+U,start:e.state1.id,end:e.state2.id,arrowhead:`normal`,arrowTypeEnd:r?`arrow_barb_neo`:`arrow_barb`,style:x,labelStyle:``,label:n.s.sanitizeText(e.description??``,n.x()),arrowheadStyle:S,labelpos:C,labelType:w,thickness:T,classes:F,look:c};o.push(u),U++}}})},`setupDoc`),G=t.n((e,t=d)=>{let n=t;if(e.doc)for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`);function K(e,t,n){if(!t.id||t.id===`</join></fork>`||t.id===`</choice>`)return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(` `).forEach(e=>{let r=n.get(e);r&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...r.styles])}));let r=e.find(e=>e.id===t.id);r?Object.assign(r,t):e.push(t)}t.n(K,`insertOrUpdateNode`);function q(e){return e?.classes?.join(` `)??``}t.n(q,`getClassesFromDbInfo`);function J(e){return e?.styles??[]}t.n(J,`getStylesFromDbInfo`);var Y=t.n((t,r,i,a,o,s,c,l)=>{let u=r.id,d=i.get(u),f=q(d),p=J(d),m=n.x();if(e.m.info(`dataFetcher parsedItem`,r,d,p),u!==`root`){let i=E;r.start===!0?i=O:r.start===!1&&(i=k),r.type!==y&&(i=r.type),H.get(u)||H.set(u,{id:u,shape:i,description:n.s.sanitizeText(u,m),cssClasses:`${f} ${ee}`,cssStyles:p});let d=H.get(u);r.description&&(Array.isArray(d.description)?(d.shape=D,d.description.push(r.description)):d.description?.length&&d.description.length>0?(d.shape=D,d.description=d.description===u?[r.description]:[d.description,r.description]):(d.shape=E,d.description=r.description),d.description=n.s.sanitizeTextOrArray(d.description,m)),d.description?.length===1&&d.shape===D&&(d.shape=d.type===`group`?j:E),!d.type&&r.doc&&(e.m.info(`Setting cluster for XCX`,u,G(r)),d.type=`group`,d.isGroup=!0,d.dir=G(r),d.shape=r.type===b?A:j,d.cssClasses=`${d.cssClasses} ${re} ${s?ie:``}`);let h={labelStyle:``,shape:d.shape,label:d.description,cssClasses:d.cssClasses,cssCompiledStyles:[],cssStyles:d.cssStyles,id:u,dir:d.dir,domId:W(u,U),type:d.type,isGroup:d.type===`group`,padding:8,rx:10,ry:10,look:c,labelType:`markdown`};if(h.shape===A&&(h.label=``),t&&t.id!==`root`&&(e.m.trace(`Setting node `,u,` to be child of its parent `,t.id),h.parentId=t.id),h.centerLabel=!0,r.note){let e={labelStyle:``,shape:M,label:r.note.text,labelType:`markdown`,cssClasses:I,cssStyles:[],cssCompiledStyles:[],id:u+oe+`-`+U,domId:W(u,U,R),type:d.type,isGroup:d.type===`group`,padding:m.flowchart?.padding,look:c,position:r.note.position},t=u+B,n={labelStyle:``,shape:N,label:r.note.text,cssClasses:d.cssClasses,cssStyles:[],id:u+B,domId:W(u,U,L),type:`group`,isGroup:!0,padding:16,look:c,position:r.note.position};U++,n.id=t,e.parentId=t,K(a,n,l),K(a,e,l),K(a,h,l);let i=u,s=e.id;r.note.position===`left of`&&(i=e.id,s=u),o.push({id:i+`-`+s,start:i,end:s,arrowhead:`none`,arrowTypeEnd:``,style:x,labelStyle:``,classes:ne,arrowheadStyle:S,labelpos:C,labelType:w,thickness:T,look:c})}else K(a,h,l)}r.doc&&(e.m.trace(`Adding nodes children `),ce(r,r.doc,i,a,o,!s,c,l))},`dataFetcher`),le=t.n(()=>{H.clear(),U=0},`reset`),X={START_NODE:`[*]`,START_TYPE:`start`,END_NODE:`[*]`,END_TYPE:`end`,COLOR_KEYWORD:`color`,FILL_KEYWORD:`fill`,BG_FILL:`bgFill`,STYLECLASS_SEP:`,`},Z=t.n(()=>new Map,`newClassesList`),Q=t.n(()=>({relations:[],states:new Map,documents:{}}),`newDoc`),$=t.n(e=>JSON.parse(JSON.stringify(e)),`clone`),ue=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Z(),this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=n.y,this.setAccTitle=n.U,this.getAccDescription=n.v,this.setAccDescription=n.H,this.setDiagramTitle=n.K,this.getDiagramTitle=n.w,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)}static{t.n(this,`StateDB`)}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let t of Array.isArray(e)?e:e.doc)switch(t.stmt){case p:this.addState(t.id.trim(),t.type,t.doc,t.description,t.note);break;case h:this.addRelation(t.state1,t.state2,t.description);break;case g:this.addStyleClass(t.id.trim(),t.classes);break;case _:this.handleStyleDef(t);break;case v:this.setCssClass(t.id.trim(),t.styleClass);break;case`click`:this.addLink(t.id,t.url,t.tooltip)}let t=this.getStates(),r=n.x();le(),Y(void 0,this.getRootDocV2(),t,this.nodes,this.edges,!0,r.look,this.classes);for(let e of this.nodes)if(Array.isArray(e.label)){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}]`);e.label=e.label[0]}}handleStyleDef(e){let t=e.id.trim().split(`,`),n=e.styleClass.split(`,`);for(let e of t){let t=this.getState(e);if(!t){let n=e.trim();this.addState(n),t=this.getState(n)}t&&(t.styles=n.map(e=>e.replace(/;/g,``)?.trim()))}}setRootDoc(t){e.m.info(`Setting root doc`,t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(e,t,n){if(t.stmt===h){this.docTranslator(e,t.state1,!0),this.docTranslator(e,t.state2,!1);return}if(t.stmt===p&&(t.id===X.START_NODE?(t.id=e.id+(n?`_start`:`_end`),t.start=n):t.id=t.id.trim()),t.stmt!==m&&t.stmt!==p||!t.doc)return;let i=[],a=[];for(let e of t.doc)if(e.type===b){let t=$(e);t.doc=$(a),i.push(t),a=[]}else a.push(e);if(i.length>0&&a.length>0){let e={stmt:p,id:r.s(),type:`divider`,doc:$(a)};i.push($(e)),t.doc=i}t.doc.forEach(e=>this.docTranslator(t,e,!0))}getRootDocV2(){return this.docTranslator({id:m,stmt:m},{id:m,stmt:m,doc:this.rootDoc},!0),{id:m,doc:this.rootDoc}}addState(t,r=y,i=void 0,a=void 0,o=void 0,s=void 0,c=void 0,l=void 0){let u=t?.trim();if(!this.currentDocument.states.has(u))e.m.info(`Adding state `,u,a),this.currentDocument.states.set(u,{stmt:p,id:u,descriptions:[],type:r,doc:i,note:o,classes:[],styles:[],textStyles:[]});else{let e=this.currentDocument.states.get(u);if(!e)throw Error(`State not found: ${u}`);e.doc||=i,e.type||=r}if(a&&(e.m.info(`Setting state description`,u,a),(Array.isArray(a)?a:[a]).forEach(e=>this.addDescription(u,e.trim()))),o){let e=this.currentDocument.states.get(u);if(!e)throw Error(`State not found: ${u}`);e.note=o,e.note.text=n.s.sanitizeText(e.note.text,n.x())}s&&(e.m.info(`Setting state classes`,u,s),(Array.isArray(s)?s:[s]).forEach(e=>this.setCssClass(u,e.trim()))),c&&(e.m.info(`Setting state styles`,u,c),(Array.isArray(c)?c:[c]).forEach(e=>this.setStyle(u,e.trim()))),l&&(e.m.info(`Setting state styles`,u,c),(Array.isArray(l)?l:[l]).forEach(e=>this.setTextStyle(u,e.trim())))}clear(e){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Z(),e||(this.links=new Map,n.a())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){e.m.info(`Documents = `,this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,n,r){this.links.set(t,{url:n,tooltip:r}),e.m.warn(`Adding link`,t,n,r)}getLinks(){return this.links}startIdIfNeeded(e=``){return e===X.START_NODE?(this.startEndCount++,`${X.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e=``,t=y){return e===X.START_NODE?X.START_TYPE:t}endIdIfNeeded(e=``){return e===X.END_NODE?(this.startEndCount++,`${X.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e=``,t=y){return e===X.END_NODE?X.END_TYPE:t}addRelationObjs(e,t,r=``){let i=this.startIdIfNeeded(e.id.trim()),a=this.startTypeIfNeeded(e.id.trim(),e.type),o=this.startIdIfNeeded(t.id.trim()),s=this.startTypeIfNeeded(t.id.trim(),t.type);this.addState(i,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(o,s,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.currentDocument.relations.push({id1:i,id2:o,relationTitle:n.s.sanitizeText(r,n.x())})}addRelation(e,t,r){if(typeof e==`object`&&typeof t==`object`)this.addRelationObjs(e,t,r);else if(typeof e==`string`&&typeof t==`string`){let i=this.startIdIfNeeded(e.trim()),a=this.startTypeIfNeeded(e),o=this.endIdIfNeeded(t.trim()),s=this.endTypeIfNeeded(t);this.addState(i,a),this.addState(o,s),this.currentDocument.relations.push({id1:i,id2:o,relationTitle:r?n.s.sanitizeText(r,n.x()):void 0})}}addDescription(e,t){let r=this.currentDocument.states.get(e),i=t.startsWith(`:`)?t.replace(`:`,``).trim():t;r?.descriptions?.push(n.s.sanitizeText(i,n.x()))}cleanupLabel(e){return e.startsWith(`:`)?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,t=``){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});let n=this.classes.get(e);t&&n&&t.split(X.STYLECLASS_SEP).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(X.COLOR_KEYWORD).exec(e)){let e=t.replace(X.FILL_KEYWORD,X.BG_FILL).replace(X.COLOR_KEYWORD,X.FILL_KEYWORD);n.textStyles.push(e)}n.styles.push(t)})}getClasses(){return this.classes}setupToolTips(t){let r=a.t();e.p(t).select(`svg`).selectAll(`g.node, g.rough-node`).on(`mouseover`,t=>{let i=e.p(t.currentTarget),a=i.attr(`title`);if(a===null)return;let o=t.currentTarget?.getBoundingClientRect();r.transition().duration(200).style(`opacity`,`.9`),r.style(`left`,window.scrollX+o.left+(o.right-o.left)/2+`px`).style(`top`,window.scrollY+o.bottom+`px`),r.html(n.$.sanitize(a)),i.classed(`hover`,!0)}).on(`mouseout`,t=>{r.transition().duration(500).style(`opacity`,0),e.p(t.currentTarget).classed(`hover`,!1)})}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=this.getState(e);if(!n){let t=e.trim();this.addState(t),n=this.getState(t)}n?.classes?.push(t)})}setStyle(e,t){this.getState(e)?.styles?.push(t)}setTextStyle(e,t){this.getState(e)?.textStyles?.push(t)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===f)}getDirection(){return this.getDirectionStatement()?.value??u}setDirection(e){let t=this.getDirectionStatement();t?t.value=e:this.rootDoc.unshift({stmt:f,value:e})}trimColon(e){return e.startsWith(`:`)?e.slice(1).trim():e.trim()}getData(){let e=n.x();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:V(this.getRootDocV2())}}getConfig(){return n.x().state}},de=t.n(e=>`
7
+ defs [id$="-barbEnd"] {
8
+ fill: ${e.transitionColor};
9
+ stroke: ${e.transitionColor};
10
+ }
11
+ g.stateGroup text {
12
+ fill: ${e.nodeBorder};
13
+ stroke: none;
14
+ font-size: 10px;
15
+ }
16
+ g.stateGroup text {
17
+ fill: ${e.textColor};
18
+ stroke: none;
19
+ font-size: 10px;
20
+
21
+ }
22
+ g.stateGroup .state-title {
23
+ font-weight: bolder;
24
+ fill: ${e.stateLabelColor};
25
+ }
26
+
27
+ g.stateGroup rect {
28
+ fill: ${e.mainBkg};
29
+ stroke: ${e.nodeBorder};
30
+ }
31
+
32
+ g.stateGroup line {
33
+ stroke: ${e.lineColor};
34
+ stroke-width: ${e.strokeWidth||1};
35
+ }
36
+
37
+ .transition {
38
+ stroke: ${e.transitionColor};
39
+ stroke-width: ${e.strokeWidth||1};
40
+ fill: none;
41
+ }
42
+
43
+ .stateGroup .composit {
44
+ fill: ${e.background};
45
+ border-bottom: 1px
46
+ }
47
+
48
+ .stateGroup .alt-composit {
49
+ fill: #e0e0e0;
50
+ border-bottom: 1px
51
+ }
52
+
53
+ .state-note {
54
+ stroke: ${e.noteBorderColor};
55
+ fill: ${e.noteBkgColor};
56
+
57
+ text {
58
+ fill: ${e.noteTextColor};
59
+ stroke: none;
60
+ font-size: 10px;
61
+ }
62
+ }
63
+
64
+ .stateLabel .box {
65
+ stroke: none;
66
+ stroke-width: 0;
67
+ fill: ${e.mainBkg};
68
+ opacity: 0.5;
69
+ }
70
+
71
+ .edgeLabel .label rect {
72
+ fill: ${e.labelBackgroundColor};
73
+ opacity: 0.5;
74
+ }
75
+ .edgeLabel {
76
+ background-color: ${e.edgeLabelBackground};
77
+ p {
78
+ background-color: ${e.edgeLabelBackground};
79
+ }
80
+ rect {
81
+ opacity: 0.5;
82
+ background-color: ${e.edgeLabelBackground};
83
+ fill: ${e.edgeLabelBackground};
84
+ }
85
+ text-align: center;
86
+ }
87
+ .edgeLabel .label text {
88
+ fill: ${e.transitionLabelColor||e.tertiaryTextColor};
89
+ }
90
+ .label div .edgeLabel {
91
+ color: ${e.transitionLabelColor||e.tertiaryTextColor};
92
+ }
93
+
94
+ .stateLabel text {
95
+ fill: ${e.stateLabelColor};
96
+ font-size: 10px;
97
+ font-weight: bold;
98
+ }
99
+
100
+ .node circle.state-start {
101
+ fill: ${e.specialStateColor};
102
+ stroke: ${e.specialStateColor};
103
+ }
104
+
105
+ .node .fork-join {
106
+ fill: ${e.specialStateColor};
107
+ stroke: ${e.specialStateColor};
108
+ }
109
+
110
+ .node circle.state-end {
111
+ fill: ${e.innerEndBackground};
112
+ stroke: ${e.background};
113
+ stroke-width: 1.5
114
+ }
115
+ .end-state-inner {
116
+ fill: ${e.compositeBackground||e.background};
117
+ // stroke: ${e.background};
118
+ stroke-width: 1.5
119
+ }
120
+
121
+ .node rect {
122
+ fill: ${e.stateBkg||e.mainBkg};
123
+ stroke: ${e.stateBorder||e.nodeBorder};
124
+ stroke-width: ${e.strokeWidth||1}px;
125
+ }
126
+ .node polygon {
127
+ fill: ${e.mainBkg};
128
+ stroke: ${e.stateBorder||e.nodeBorder};;
129
+ stroke-width: ${e.strokeWidth||1}px;
130
+ }
131
+ [id$="-barbEnd"] {
132
+ fill: ${e.lineColor};
133
+ }
134
+
135
+ .statediagram-cluster rect {
136
+ fill: ${e.compositeTitleBackground};
137
+ stroke: ${e.stateBorder||e.nodeBorder};
138
+ stroke-width: ${e.strokeWidth||1}px;
139
+ }
140
+
141
+ .cluster-label, .nodeLabel {
142
+ color: ${e.stateLabelColor};
143
+ // line-height: 1;
144
+ }
145
+
146
+ .statediagram-cluster rect.outer {
147
+ rx: 5px;
148
+ ry: 5px;
149
+ }
150
+ .statediagram-state .divider {
151
+ stroke: ${e.stateBorder||e.nodeBorder};
152
+ }
153
+
154
+ .statediagram-state .title-state {
155
+ rx: 5px;
156
+ ry: 5px;
157
+ }
158
+ .statediagram-cluster.statediagram-cluster .inner {
159
+ fill: ${e.compositeBackground||e.background};
160
+ }
161
+ .statediagram-cluster.statediagram-cluster-alt .inner {
162
+ fill: ${e.altBackground?e.altBackground:`#efefef`};
163
+ }
164
+
165
+ .statediagram-cluster .inner {
166
+ rx:0;
167
+ ry:0;
168
+ }
169
+
170
+ .statediagram-state rect.basic {
171
+ rx: 5px;
172
+ ry: 5px;
173
+ }
174
+ .statediagram-state rect.divider {
175
+ stroke-dasharray: 10,10;
176
+ fill: ${e.altBackground?e.altBackground:`#efefef`};
177
+ }
178
+
179
+ .note-edge {
180
+ stroke-dasharray: 5;
181
+ }
182
+
183
+ .statediagram-note rect {
184
+ fill: ${e.noteBkgColor};
185
+ stroke: ${e.noteBorderColor};
186
+ stroke-width: 1px;
187
+ rx: 0;
188
+ ry: 0;
189
+ }
190
+ .statediagram-note rect {
191
+ fill: ${e.noteBkgColor};
192
+ stroke: ${e.noteBorderColor};
193
+ stroke-width: 1px;
194
+ rx: 0;
195
+ ry: 0;
196
+ }
197
+
198
+ .statediagram-note text {
199
+ fill: ${e.noteTextColor};
200
+ }
201
+
202
+ .statediagram-note .nodeLabel {
203
+ color: ${e.noteTextColor};
204
+ }
205
+ .statediagram .edgeLabel {
206
+ color: red; // ${e.noteTextColor};
207
+ }
208
+
209
+ [id$="-dependencyStart"], [id$="-dependencyEnd"] {
210
+ fill: ${e.lineColor};
211
+ stroke: ${e.lineColor};
212
+ stroke-width: ${e.strokeWidth||1};
213
+ }
214
+
215
+ .statediagramTitleText {
216
+ text-anchor: middle;
217
+ font-size: 18px;
218
+ fill: ${e.textColor};
219
+ }
220
+
221
+ [data-look="neo"].statediagram-cluster rect {
222
+ fill: ${e.mainBkg};
223
+ stroke: ${e.useGradient?`url(`+e.svgId+`-gradient)`:e.stateBorder||e.nodeBorder};
224
+ stroke-width: ${e.strokeWidth??1};
225
+ }
226
+ [data-look="neo"].statediagram-cluster rect.outer {
227
+ rx: ${e.radius}px;
228
+ ry: ${e.radius}px;
229
+ filter: ${e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${e.svgId}-drop-shadow)`):`none`}
230
+ }
231
+ `,`getStyles`);Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return ue}});
@@ -0,0 +1,8 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
2
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-JWPE2WC7.mjs
3
+ function t(e, t) {
4
+ e.accDescr && t.setAccDescription?.(e.accDescr), e.accTitle && t.setAccTitle?.(e.accTitle), e.title && t.setDiagramTitle?.(e.title);
5
+ }
6
+ e(t, "populateCommonDb");
7
+ //#endregion
8
+ export { t };
@@ -0,0 +1 @@
1
+ const e=require("./chunk-Y2CYZVJY-CnmLqFtv.js");function t(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}e.n(t,`populateCommonDb`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
@@ -0,0 +1 @@
1
+ const e=require("./src-B4mN2BMl.js"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.js"),n=require("./chunk-DU6HZSFF-CWc5ewtb.js"),r=require("./chunk-P2QGCYS3-DKZzpRQW.js"),i=require("./chunk-GMAD6QVW-DEQiTa0c.js"),a=require("./rough.esm-ChRLLRha.js"),o=require("./chunk-4HAMMTFA-GFyfmcSO.js"),s=require("./chunk-GVQU2GXP-CdJIWN41.js");var c=t.n(async(t,s)=>{let c=n.x(),{themeVariables:l,handDrawnSeed:u}=c,{clusterBkg:d,clusterBorder:f}=l,p=f,{labelStyles:m,nodeStyles:h,borderStyles:g,backgroundStyles:_}=r.i(s),v=t.insert(`g`).attr(`class`,`cluster swimlane `+(s.cssClasses||``)).attr(`id`,s.id).attr(`data-id`,s.id).attr(`data-et`,`cluster`).attr(`data-look`,s.look),y=n.g(c.flowchart.htmlLabels),b=s.direction===`LR`,x=v.insert(`g`).attr(`class`,`cluster-label swimlane-label`),S=await i.n(x,s.label,{style:s.labelStyle,useHtmlLabels:y,isNode:!0,width:s.width}),C=S.getBBox();if(y){let t=S.children[0],n=e.p(S);C=t.getBoundingClientRect(),n.attr(`width`,C.width),n.attr(`height`,C.height)}let w=s.padding??0,T=s.width<=C.width+w?C.width+w:s.width;s.diff=s.width<=C.width+w?(T-s.width)/2-w:-w;let E=s.height,D=s.y-E/2,O=s.y+E/2,k=s.x-T/2,A=s.swimlaneContentTop===void 0?D+E/3:s.swimlaneContentTop,j=b?4:0,M=C.height+2*j,N,P;if(b){let e=Math.max(M,C.height+2*j),t=k+e,n=Math.max(0,T-e);if(s.look===`handDrawn`){let i=a.t.svg(v),o=r.a(s,{roughness:.7,fill:d,stroke:p,fillWeight:3,seed:u}),c=r.a(s,{roughness:.7,fill:`none`,stroke:p,seed:u}),l=i.rectangle(k,D,e,E,o);N=v.insert(()=>l,`:first-child`);let f=i.rectangle(t,D,n,E,c);P=v.insert(()=>f,`:first-child`),N.select(`path:nth-child(2)`).attr(`style`,g.join(`;`)),N.select(`path`).attr(`style`,_.join(`;`).replace(`fill`,`stroke`))}else N=v.insert(`rect`,`:first-child`),P=v.insert(`rect`,`:first-child`),N.attr(`class`,`swimlane-title`).attr(`style`,h).attr(`x`,k).attr(`y`,D).attr(`width`,e).attr(`height`,E).attr(`fill`,d).attr(`stroke`,p),P.attr(`class`,`swimlane-body`).attr(`style`,h).attr(`x`,t).attr(`y`,D).attr(`width`,n).attr(`height`,E).attr(`fill`,`none`).attr(`stroke`,p);let i=k+e/2,o=s.y;x.attr(`transform`,`translate(${i}, ${o}) rotate(-90) translate(${-C.width/2}, ${-C.height/2})`)}else{let e=Math.max(0,A-D),t=Math.min(M,e),n=D+t,i=Math.max(0,O-n),o=s.x-T/2;if(s.look===`handDrawn`){let e=a.t.svg(v),c=r.a(s,{roughness:.7,fill:d,stroke:p,fillWeight:3,seed:u}),l=r.a(s,{roughness:.7,fill:`none`,stroke:p,seed:u}),f=e.rectangle(o,D,T,t,c);N=v.insert(()=>f,`:first-child`);let m=e.rectangle(o,n,T,i,l);P=v.insert(()=>m,`:first-child`),N.select(`path:nth-child(2)`).attr(`style`,g.join(`;`)),N.select(`path`).attr(`style`,_.join(`;`).replace(`fill`,`stroke`))}else N=v.insert(`rect`,`:first-child`),P=v.insert(`rect`,`:first-child`),N.attr(`class`,`swimlane-title`).attr(`style`,h).attr(`x`,o).attr(`y`,D).attr(`width`,T).attr(`height`,t).attr(`fill`,d).attr(`stroke`,p),P.attr(`class`,`swimlane-body`).attr(`style`,h).attr(`x`,o).attr(`y`,n).attr(`width`,T).attr(`height`,i).attr(`fill`,`none`).attr(`stroke`,p);let c=s.x-C.width/2,l=D+(t-C.height)/2;x.attr(`transform`,`translate(${c}, ${l})`)}if(e.m.trace(`Swimlane data `,s,JSON.stringify(s)),m){let e=x.select(`span`);e&&e.attr(`style`,m)}return s.offsetX=0,s.width=T,s.height=E,s.offsetY=C.height-w/2,s.intersect=function(e){return o.r(s,e)},{cluster:v,labelBBox:C}},`swimlane`),l=t.n(async(t,c)=>{e.m.info(`Creating subgraph rect for `,c.id,c);let l=n.x(),{themeVariables:u,handDrawnSeed:d}=l,{clusterBkg:f,clusterBorder:p}=u,{labelStyles:m,nodeStyles:h,borderStyles:g,backgroundStyles:_}=r.i(c),v=t.insert(`g`).attr(`class`,`cluster `+c.cssClasses).attr(`id`,c.domId).attr(`data-look`,c.look),y=n.T(l),b=v.insert(`g`).attr(`class`,`cluster-label `),x;x=c.labelType===`markdown`?await i.n(b,c.label,{style:c.labelStyle,useHtmlLabels:y,isNode:!0,width:c.width}):await o.t(b,c.label,c.labelStyle||``,!1,!0);let S=x.getBBox();if(n.T(l)){let t=x.children[0],n=e.p(x);S=t.getBoundingClientRect(),n.attr(`width`,S.width),n.attr(`height`,S.height)}let C=c.width<=S.width+c.padding?S.width+c.padding:c.width;c.diff=c.width<=S.width+c.padding?(C-c.width)/2-c.padding:-c.padding;let w=c.height,T=c.x-C/2,E=c.y-w/2;e.m.trace(`Data `,c,JSON.stringify(c));let D;if(c.look===`handDrawn`){let t=a.t.svg(v),n=r.a(c,{roughness:.7,fill:f,stroke:p,fillWeight:3,seed:d}),i=t.path(o.n(T,E,C,w,0),n);D=v.insert(()=>(e.m.debug(`Rough node insert CXC`,i),i),`:first-child`),D.select(`path:nth-child(2)`).attr(`style`,g.join(`;`)),D.select(`path`).attr(`style`,_.join(`;`).replace(`fill`,`stroke`))}else D=v.insert(`rect`,`:first-child`),D.attr(`style`,h).attr(`rx`,c.rx).attr(`ry`,c.ry).attr(`x`,T).attr(`y`,E).attr(`width`,C).attr(`height`,w);let{subGraphTitleTopMargin:O}=s.n(l);if(b.attr(`transform`,`translate(${c.x-S.width/2}, ${c.y-c.height/2+O})`),m){let e=b.select(`span`);e&&e.attr(`style`,m)}let k=D.node().getBBox();return c.offsetX=0,c.width=k.width,c.height=k.height,c.offsetY=S.height-c.padding/2,c.intersect=function(e){return o.r(c,e)},{cluster:v,labelBBox:S}},`rect`),u={rect:l,squareRect:l,roundedWithTitle:t.n(async(t,r)=>{let i=n.x(),{themeVariables:s,handDrawnSeed:c}=i,{altBackground:l,compositeBackground:u,compositeTitleBackground:d,nodeBorder:f}=s,p=t.insert(`g`).attr(`class`,r.cssClasses).attr(`id`,r.domId).attr(`data-id`,r.id).attr(`data-look`,r.look),m=p.insert(`g`,`:first-child`),h=p.insert(`g`).attr(`class`,`cluster-label`),g=p.append(`rect`),_=await o.t(h,r.label,r.labelStyle,void 0,!0),v=_.getBBox();if(n.T(i)){let t=_.children[0],n=e.p(_);v=t.getBoundingClientRect(),n.attr(`width`,v.width),n.attr(`height`,v.height)}let y=0*r.padding,b=y/2,x=(r.width<=v.width+r.padding?v.width+r.padding:r.width)+y;r.diff=r.width<=v.width+r.padding?(x-r.width)/2-r.padding:-r.padding;let S=r.height+y,C=r.height+y-v.height-6,w=r.x-x/2,T=r.y-S/2;r.width=x;let E=r.y-r.height/2-b+v.height+2,D;if(r.look===`handDrawn`){let e=r.cssClasses.includes(`statediagram-cluster-alt`),t=a.t.svg(p),n=r.rx||r.ry?t.path(o.n(w,T,x,S,10),{roughness:.7,fill:d,fillStyle:`solid`,stroke:f,seed:c}):t.rectangle(w,T,x,S,{seed:c});D=p.insert(()=>n,`:first-child`);let i=t.rectangle(w,E,x,C,{fill:e?l:u,fillStyle:e?`hachure`:`solid`,stroke:f,seed:c});D=p.insert(()=>n,`:first-child`),g=p.insert(()=>i)}else D=m.insert(`rect`,`:first-child`),D.attr(`class`,`outer`).attr(`x`,w).attr(`y`,T).attr(`width`,x).attr(`height`,S).attr(`data-look`,r.look),g.attr(`class`,`inner`).attr(`x`,w).attr(`y`,E).attr(`width`,x).attr(`height`,C);return h.attr(`transform`,`translate(${r.x-v.width/2}, ${T+1-(n.T(i)?0:3)})`),r.height=D.node().getBBox().height,r.offsetX=0,r.offsetY=v.height-r.padding/2,r.labelBBox=v,r.intersect=function(e){return o.r(r,e)},{cluster:p,labelBBox:v}},`roundedWithTitle`),noteGroup:t.n((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let s=r.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(e){return o.r(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:t.n((e,t)=>{let{themeVariables:r,handDrawnSeed:i}=n.x(),{nodeBorder:s}=r,c=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),l=c.insert(`g`,`:first-child`),u=0*t.padding,d=t.width+u;t.diff=-t.padding;let f=t.height+u,p=t.x-d/2,m=t.y-f/2;t.width=d;let h;if(t.look===`handDrawn`){let e=a.t.svg(c).rectangle(p,m,d,f,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:s,seed:i});h=c.insert(()=>e,`:first-child`)}else{h=l.insert(`rect`,`:first-child`);let e=`outer`;e=(t.look,`divider`),h.attr(`class`,e).attr(`x`,p).attr(`y`,m).attr(`width`,d).attr(`height`,f).attr(`data-look`,t.look)}return t.height=h.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return o.r(t,e)},{cluster:c,labelBBox:{}}},`divider`),kanbanSection:t.n(async(t,c)=>{e.m.info(`Creating subgraph rect for `,c.id,c);let l=n.x(),{themeVariables:u,handDrawnSeed:d}=l,{clusterBkg:f,clusterBorder:p}=u,{labelStyles:m,nodeStyles:h,borderStyles:g,backgroundStyles:_}=r.i(c),v=t.insert(`g`).attr(`class`,`cluster `+c.cssClasses).attr(`id`,c.domId).attr(`data-look`,c.look),y=n.T(l),b=v.insert(`g`).attr(`class`,`cluster-label `),x=await i.n(b,c.label,{style:c.labelStyle,useHtmlLabels:y,isNode:!0,width:c.width}),S=x.getBBox();if(n.T(l)){let t=x.children[0],n=e.p(x);S=t.getBoundingClientRect(),n.attr(`width`,S.width),n.attr(`height`,S.height)}let C=c.width<=S.width+c.padding?S.width+c.padding:c.width;c.diff=c.width<=S.width+c.padding?(C-c.width)/2-c.padding:-c.padding;let w=c.height,T=c.x-C/2,E=c.y-w/2;e.m.trace(`Data `,c,JSON.stringify(c));let D;if(c.look===`handDrawn`){let t=a.t.svg(v),n=r.a(c,{roughness:.7,fill:f,stroke:p,fillWeight:4,seed:d}),i=t.path(o.n(T,E,C,w,c.rx),n);D=v.insert(()=>(e.m.debug(`Rough node insert CXC`,i),i),`:first-child`),D.select(`path:nth-child(2)`).attr(`style`,g.join(`;`)),D.select(`path`).attr(`style`,_.join(`;`).replace(`fill`,`stroke`))}else D=v.insert(`rect`,`:first-child`),D.attr(`style`,h).attr(`rx`,c.rx).attr(`ry`,c.ry).attr(`x`,T).attr(`y`,E).attr(`width`,C).attr(`height`,w);let{subGraphTitleTopMargin:O}=s.n(l);if(b.attr(`transform`,`translate(${c.x-S.width/2}, ${c.y-c.height/2+O})`),m){let e=b.select(`span`);e&&e.attr(`style`,m)}let k=D.node().getBBox();return c.offsetX=0,c.width=k.width,c.height=k.height,c.offsetY=S.height-c.padding/2,c.intersect=function(e){return o.r(c,e)},{cluster:v,labelBBox:S}},`kanbanSection`),swimlane:c},d=new Map,f=t.n(async(e,t)=>{let n=await u[t.shape||`rect`](e,t);return d.set(t.id,n),n},`insertCluster`),p=t.n(()=>{d=new Map},`clear`);Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return p}});
@@ -0,0 +1,245 @@
1
+ import { m as e, p as t } from "./src-D_hsMyeP.mjs";
2
+ import { n } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
3
+ import { T as r, g as i, x as a } from "./chunk-DU6HZSFF-BEQZSmUu.mjs";
4
+ import { a as o, i as s } from "./chunk-P2QGCYS3-6q3AXPt5.mjs";
5
+ import { n as c } from "./chunk-GMAD6QVW-BZeZ4fdb.mjs";
6
+ import { t as l } from "./rough.esm-DXYGHN3m.mjs";
7
+ import { n as u, r as d, t as f } from "./chunk-4HAMMTFA-VgWPe1ng.mjs";
8
+ import { n as p } from "./chunk-GVQU2GXP-B1D3J05J.mjs";
9
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-L3NEJ4N5.mjs
10
+ var m = /* @__PURE__ */ n(async (n, r) => {
11
+ let u = a(), { themeVariables: f, handDrawnSeed: p } = u, { clusterBkg: m, clusterBorder: h } = f, g = h, { labelStyles: _, nodeStyles: v, borderStyles: y, backgroundStyles: b } = s(r), x = n.insert("g").attr("class", "cluster swimlane " + (r.cssClasses || "")).attr("id", r.id).attr("data-id", r.id).attr("data-et", "cluster").attr("data-look", r.look), S = i(u.flowchart.htmlLabels), C = r.direction === "LR", w = x.insert("g").attr("class", "cluster-label swimlane-label"), T = await c(w, r.label, {
12
+ style: r.labelStyle,
13
+ useHtmlLabels: S,
14
+ isNode: !0,
15
+ width: r.width
16
+ }), E = T.getBBox();
17
+ if (S) {
18
+ let e = T.children[0], n = t(T);
19
+ E = e.getBoundingClientRect(), n.attr("width", E.width), n.attr("height", E.height);
20
+ }
21
+ let D = r.padding ?? 0, O = r.width <= E.width + D ? E.width + D : r.width;
22
+ r.diff = r.width <= E.width + D ? (O - r.width) / 2 - D : -D;
23
+ let k = r.height, A = r.y - k / 2, j = r.y + k / 2, M = r.x - O / 2, N = r.swimlaneContentTop === void 0 ? A + k / 3 : r.swimlaneContentTop, P = C ? 4 : 0, F = E.height + 2 * P, I, L;
24
+ if (C) {
25
+ let e = Math.max(F, E.height + 2 * P), t = M + e, n = Math.max(0, O - e);
26
+ if (r.look === "handDrawn") {
27
+ let i = l.svg(x), a = o(r, {
28
+ roughness: .7,
29
+ fill: m,
30
+ stroke: g,
31
+ fillWeight: 3,
32
+ seed: p
33
+ }), s = o(r, {
34
+ roughness: .7,
35
+ fill: "none",
36
+ stroke: g,
37
+ seed: p
38
+ }), c = i.rectangle(M, A, e, k, a);
39
+ I = x.insert(() => c, ":first-child");
40
+ let u = i.rectangle(t, A, n, k, s);
41
+ L = x.insert(() => u, ":first-child"), I.select("path:nth-child(2)").attr("style", y.join(";")), I.select("path").attr("style", b.join(";").replace("fill", "stroke"));
42
+ } else I = x.insert("rect", ":first-child"), L = x.insert("rect", ":first-child"), I.attr("class", "swimlane-title").attr("style", v).attr("x", M).attr("y", A).attr("width", e).attr("height", k).attr("fill", m).attr("stroke", g), L.attr("class", "swimlane-body").attr("style", v).attr("x", t).attr("y", A).attr("width", n).attr("height", k).attr("fill", "none").attr("stroke", g);
43
+ let i = M + e / 2, a = r.y;
44
+ w.attr("transform", `translate(${i}, ${a}) rotate(-90) translate(${-E.width / 2}, ${-E.height / 2})`);
45
+ } else {
46
+ let e = Math.max(0, N - A), t = Math.min(F, e), n = A + t, i = Math.max(0, j - n), a = r.x - O / 2;
47
+ if (r.look === "handDrawn") {
48
+ let e = l.svg(x), s = o(r, {
49
+ roughness: .7,
50
+ fill: m,
51
+ stroke: g,
52
+ fillWeight: 3,
53
+ seed: p
54
+ }), c = o(r, {
55
+ roughness: .7,
56
+ fill: "none",
57
+ stroke: g,
58
+ seed: p
59
+ }), u = e.rectangle(a, A, O, t, s);
60
+ I = x.insert(() => u, ":first-child");
61
+ let d = e.rectangle(a, n, O, i, c);
62
+ L = x.insert(() => d, ":first-child"), I.select("path:nth-child(2)").attr("style", y.join(";")), I.select("path").attr("style", b.join(";").replace("fill", "stroke"));
63
+ } else I = x.insert("rect", ":first-child"), L = x.insert("rect", ":first-child"), I.attr("class", "swimlane-title").attr("style", v).attr("x", a).attr("y", A).attr("width", O).attr("height", t).attr("fill", m).attr("stroke", g), L.attr("class", "swimlane-body").attr("style", v).attr("x", a).attr("y", n).attr("width", O).attr("height", i).attr("fill", "none").attr("stroke", g);
64
+ let s = r.x - E.width / 2, c = A + (t - E.height) / 2;
65
+ w.attr("transform", `translate(${s}, ${c})`);
66
+ }
67
+ if (e.trace("Swimlane data ", r, JSON.stringify(r)), _) {
68
+ let e = w.select("span");
69
+ e && e.attr("style", _);
70
+ }
71
+ return r.offsetX = 0, r.width = O, r.height = k, r.offsetY = E.height - D / 2, r.intersect = function(e) {
72
+ return d(r, e);
73
+ }, {
74
+ cluster: x,
75
+ labelBBox: E
76
+ };
77
+ }, "swimlane"), h = /* @__PURE__ */ n(async (n, i) => {
78
+ e.info("Creating subgraph rect for ", i.id, i);
79
+ let m = a(), { themeVariables: h, handDrawnSeed: g } = m, { clusterBkg: _, clusterBorder: v } = h, { labelStyles: y, nodeStyles: b, borderStyles: x, backgroundStyles: S } = s(i), C = n.insert("g").attr("class", "cluster " + i.cssClasses).attr("id", i.domId).attr("data-look", i.look), w = r(m), T = C.insert("g").attr("class", "cluster-label "), E;
80
+ E = i.labelType === "markdown" ? await c(T, i.label, {
81
+ style: i.labelStyle,
82
+ useHtmlLabels: w,
83
+ isNode: !0,
84
+ width: i.width
85
+ }) : await f(T, i.label, i.labelStyle || "", !1, !0);
86
+ let D = E.getBBox();
87
+ if (r(m)) {
88
+ let e = E.children[0], n = t(E);
89
+ D = e.getBoundingClientRect(), n.attr("width", D.width), n.attr("height", D.height);
90
+ }
91
+ let O = i.width <= D.width + i.padding ? D.width + i.padding : i.width;
92
+ i.diff = i.width <= D.width + i.padding ? (O - i.width) / 2 - i.padding : -i.padding;
93
+ let k = i.height, A = i.x - O / 2, j = i.y - k / 2;
94
+ e.trace("Data ", i, JSON.stringify(i));
95
+ let M;
96
+ if (i.look === "handDrawn") {
97
+ let t = l.svg(C), n = o(i, {
98
+ roughness: .7,
99
+ fill: _,
100
+ stroke: v,
101
+ fillWeight: 3,
102
+ seed: g
103
+ }), r = t.path(u(A, j, O, k, 0), n);
104
+ M = C.insert(() => (e.debug("Rough node insert CXC", r), r), ":first-child"), M.select("path:nth-child(2)").attr("style", x.join(";")), M.select("path").attr("style", S.join(";").replace("fill", "stroke"));
105
+ } else M = C.insert("rect", ":first-child"), M.attr("style", b).attr("rx", i.rx).attr("ry", i.ry).attr("x", A).attr("y", j).attr("width", O).attr("height", k);
106
+ let { subGraphTitleTopMargin: N } = p(m);
107
+ if (T.attr("transform", `translate(${i.x - D.width / 2}, ${i.y - i.height / 2 + N})`), y) {
108
+ let e = T.select("span");
109
+ e && e.attr("style", y);
110
+ }
111
+ let P = M.node().getBBox();
112
+ return i.offsetX = 0, i.width = P.width, i.height = P.height, i.offsetY = D.height - i.padding / 2, i.intersect = function(e) {
113
+ return d(i, e);
114
+ }, {
115
+ cluster: C,
116
+ labelBBox: D
117
+ };
118
+ }, "rect"), g = {
119
+ rect: h,
120
+ squareRect: h,
121
+ roundedWithTitle: /* @__PURE__ */ n(async (e, n) => {
122
+ let i = a(), { themeVariables: o, handDrawnSeed: s } = i, { altBackground: c, compositeBackground: p, compositeTitleBackground: m, nodeBorder: h } = o, g = e.insert("g").attr("class", n.cssClasses).attr("id", n.domId).attr("data-id", n.id).attr("data-look", n.look), _ = g.insert("g", ":first-child"), v = g.insert("g").attr("class", "cluster-label"), y = g.append("rect"), b = await f(v, n.label, n.labelStyle, void 0, !0), x = b.getBBox();
123
+ if (r(i)) {
124
+ let e = b.children[0], n = t(b);
125
+ x = e.getBoundingClientRect(), n.attr("width", x.width), n.attr("height", x.height);
126
+ }
127
+ let S = 0 * n.padding, C = S / 2, w = (n.width <= x.width + n.padding ? x.width + n.padding : n.width) + S;
128
+ n.diff = n.width <= x.width + n.padding ? (w - n.width) / 2 - n.padding : -n.padding;
129
+ let T = n.height + S, E = n.height + S - x.height - 6, D = n.x - w / 2, O = n.y - T / 2;
130
+ n.width = w;
131
+ let k = n.y - n.height / 2 - C + x.height + 2, A;
132
+ if (n.look === "handDrawn") {
133
+ let e = n.cssClasses.includes("statediagram-cluster-alt"), t = l.svg(g), r = n.rx || n.ry ? t.path(u(D, O, w, T, 10), {
134
+ roughness: .7,
135
+ fill: m,
136
+ fillStyle: "solid",
137
+ stroke: h,
138
+ seed: s
139
+ }) : t.rectangle(D, O, w, T, { seed: s });
140
+ A = g.insert(() => r, ":first-child");
141
+ let i = t.rectangle(D, k, w, E, {
142
+ fill: e ? c : p,
143
+ fillStyle: e ? "hachure" : "solid",
144
+ stroke: h,
145
+ seed: s
146
+ });
147
+ A = g.insert(() => r, ":first-child"), y = g.insert(() => i);
148
+ } else A = _.insert("rect", ":first-child"), A.attr("class", "outer").attr("x", D).attr("y", O).attr("width", w).attr("height", T).attr("data-look", n.look), y.attr("class", "inner").attr("x", D).attr("y", k).attr("width", w).attr("height", E);
149
+ return v.attr("transform", `translate(${n.x - x.width / 2}, ${O + 1 - (r(i) ? 0 : 3)})`), n.height = A.node().getBBox().height, n.offsetX = 0, n.offsetY = x.height - n.padding / 2, n.labelBBox = x, n.intersect = function(e) {
150
+ return d(n, e);
151
+ }, {
152
+ cluster: g,
153
+ labelBBox: x
154
+ };
155
+ }, "roundedWithTitle"),
156
+ noteGroup: /* @__PURE__ */ n((e, t) => {
157
+ let n = e.insert("g").attr("class", "note-cluster").attr("id", t.domId), r = n.insert("rect", ":first-child"), i = 0 * t.padding, a = i / 2;
158
+ r.attr("rx", t.rx).attr("ry", t.ry).attr("x", t.x - t.width / 2 - a).attr("y", t.y - t.height / 2 - a).attr("width", t.width + i).attr("height", t.height + i).attr("fill", "none");
159
+ let o = r.node().getBBox();
160
+ return t.width = o.width, t.height = o.height, t.intersect = function(e) {
161
+ return d(t, e);
162
+ }, {
163
+ cluster: n,
164
+ labelBBox: {
165
+ width: 0,
166
+ height: 0
167
+ }
168
+ };
169
+ }, "noteGroup"),
170
+ divider: /* @__PURE__ */ n((e, t) => {
171
+ let { themeVariables: n, handDrawnSeed: r } = a(), { nodeBorder: i } = n, o = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-look", t.look), s = o.insert("g", ":first-child"), c = 0 * t.padding, u = t.width + c;
172
+ t.diff = -t.padding;
173
+ let f = t.height + c, p = t.x - u / 2, m = t.y - f / 2;
174
+ t.width = u;
175
+ let h;
176
+ if (t.look === "handDrawn") {
177
+ let e = l.svg(o).rectangle(p, m, u, f, {
178
+ fill: "lightgrey",
179
+ roughness: .5,
180
+ strokeLineDash: [5],
181
+ stroke: i,
182
+ seed: r
183
+ });
184
+ h = o.insert(() => e, ":first-child");
185
+ } else {
186
+ h = s.insert("rect", ":first-child");
187
+ let e = "outer";
188
+ e = (t.look, "divider"), h.attr("class", e).attr("x", p).attr("y", m).attr("width", u).attr("height", f).attr("data-look", t.look);
189
+ }
190
+ return t.height = h.node().getBBox().height, t.offsetX = 0, t.offsetY = 0, t.intersect = function(e) {
191
+ return d(t, e);
192
+ }, {
193
+ cluster: o,
194
+ labelBBox: {}
195
+ };
196
+ }, "divider"),
197
+ kanbanSection: /* @__PURE__ */ n(async (n, i) => {
198
+ e.info("Creating subgraph rect for ", i.id, i);
199
+ let f = a(), { themeVariables: m, handDrawnSeed: h } = f, { clusterBkg: g, clusterBorder: _ } = m, { labelStyles: v, nodeStyles: y, borderStyles: b, backgroundStyles: x } = s(i), S = n.insert("g").attr("class", "cluster " + i.cssClasses).attr("id", i.domId).attr("data-look", i.look), C = r(f), w = S.insert("g").attr("class", "cluster-label "), T = await c(w, i.label, {
200
+ style: i.labelStyle,
201
+ useHtmlLabels: C,
202
+ isNode: !0,
203
+ width: i.width
204
+ }), E = T.getBBox();
205
+ if (r(f)) {
206
+ let e = T.children[0], n = t(T);
207
+ E = e.getBoundingClientRect(), n.attr("width", E.width), n.attr("height", E.height);
208
+ }
209
+ let D = i.width <= E.width + i.padding ? E.width + i.padding : i.width;
210
+ i.diff = i.width <= E.width + i.padding ? (D - i.width) / 2 - i.padding : -i.padding;
211
+ let O = i.height, k = i.x - D / 2, A = i.y - O / 2;
212
+ e.trace("Data ", i, JSON.stringify(i));
213
+ let j;
214
+ if (i.look === "handDrawn") {
215
+ let t = l.svg(S), n = o(i, {
216
+ roughness: .7,
217
+ fill: g,
218
+ stroke: _,
219
+ fillWeight: 4,
220
+ seed: h
221
+ }), r = t.path(u(k, A, D, O, i.rx), n);
222
+ j = S.insert(() => (e.debug("Rough node insert CXC", r), r), ":first-child"), j.select("path:nth-child(2)").attr("style", b.join(";")), j.select("path").attr("style", x.join(";").replace("fill", "stroke"));
223
+ } else j = S.insert("rect", ":first-child"), j.attr("style", y).attr("rx", i.rx).attr("ry", i.ry).attr("x", k).attr("y", A).attr("width", D).attr("height", O);
224
+ let { subGraphTitleTopMargin: M } = p(f);
225
+ if (w.attr("transform", `translate(${i.x - E.width / 2}, ${i.y - i.height / 2 + M})`), v) {
226
+ let e = w.select("span");
227
+ e && e.attr("style", v);
228
+ }
229
+ let N = j.node().getBBox();
230
+ return i.offsetX = 0, i.width = N.width, i.height = N.height, i.offsetY = E.height - i.padding / 2, i.intersect = function(e) {
231
+ return d(i, e);
232
+ }, {
233
+ cluster: S,
234
+ labelBBox: E
235
+ };
236
+ }, "kanbanSection"),
237
+ swimlane: m
238
+ }, _ = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ n(async (e, t) => {
239
+ let n = await g[t.shape || "rect"](e, t);
240
+ return _.set(t.id, n), n;
241
+ }, "insertCluster"), y = /* @__PURE__ */ n(() => {
242
+ _ = /* @__PURE__ */ new Map();
243
+ }, "clear");
244
+ //#endregion
245
+ export { v as n, y as t };