@orangelogic/design-system 2.162.0 → 2.164.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 (285) hide show
  1. package/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
  4. package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
  5. package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
  7. package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
  8. package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
  9. package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
  10. package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
  11. package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
  12. package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
  13. package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
  14. package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
  15. package/library/chunks/Slice.BVI8rfHI.js +34 -0
  16. package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
  17. package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
  18. package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
  19. package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
  20. package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
  21. package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
  22. package/library/chunks/_baseEach.DQk0As2f.js +32 -0
  23. package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
  24. package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
  25. package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
  26. package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
  27. package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
  28. package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
  29. package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
  30. package/library/chunks/arc.xqNd6x9S.js +84 -0
  31. package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
  32. package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.0q_MQOYh.js} +691 -635
  33. package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
  34. package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
  35. package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
  36. package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
  37. package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
  38. package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
  39. package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
  40. package/library/chunks/channel.s_XjcUYI.js +5 -0
  41. package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
  42. package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
  43. package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
  44. package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
  45. package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
  46. package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
  47. package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
  48. package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
  49. package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
  50. package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
  51. package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
  52. package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
  53. package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
  54. package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.ChP9amU9.js} +2576 -2723
  55. package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
  56. package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
  57. package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
  58. package/library/chunks/constant.BQ4UJ-kW.js +12 -0
  59. package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
  60. package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
  61. package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
  62. package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
  63. package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
  64. package/library/chunks/debounce.Bv1rtE8D.js +55 -0
  65. package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
  66. package/library/chunks/descending.AD5n-tFs.js +10 -0
  67. package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
  68. package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
  69. package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
  70. package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
  71. package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
  72. package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
  73. package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.Cng07M-1.js} +7 -7
  74. package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
  75. package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
  76. package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
  77. package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
  78. package/library/chunks/flow.aZRVH3p1.js +1304 -0
  79. package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
  80. package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dw1ZKZAq.js} +160 -140
  81. package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
  82. package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
  83. package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
  84. package/library/chunks/graph.XHMI5hta.js +653 -0
  85. package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
  86. package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
  87. package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
  88. package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
  89. package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
  90. package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
  91. package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
  92. package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
  93. package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
  94. package/library/chunks/index.BDn1QW8J.js +167 -0
  95. package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
  96. package/library/chunks/index.thKLME8E.js +77 -0
  97. package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
  98. package/library/chunks/init.DjUOC4st.js +16 -0
  99. package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
  100. package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
  101. package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
  102. package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
  103. package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
  104. package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
  105. package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
  106. package/library/chunks/katex.DoRnZ_sp.js +11682 -0
  107. package/library/chunks/layout.DZcMFKol.js +1446 -0
  108. package/library/chunks/line.DP-iSN_J.js +157 -0
  109. package/library/chunks/linear.TNHhsH1m.js +215 -0
  110. package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
  111. package/library/chunks/map.DJnohTgl.js +18 -0
  112. package/library/chunks/markdown.I1AJG75v.js +4180 -0
  113. package/library/chunks/math.D2lKC7md.js +22 -0
  114. package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
  115. package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
  116. package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
  117. package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
  118. package/library/chunks/ordinal.bqVaUip-.js +61 -0
  119. package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
  120. package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
  121. package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
  122. package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
  123. package/library/chunks/position-picker.DjnhxIKF.js +4 -0
  124. package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
  125. package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
  126. package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
  127. package/library/chunks/range.DdOGybNB.js +9 -0
  128. package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
  129. package/library/chunks/sankey.BR94A-8L.js +294 -0
  130. package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
  131. package/library/chunks/select.C6_sM3Pr.js +7 -0
  132. package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
  133. package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
  134. package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
  135. package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
  136. package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
  137. package/library/chunks/step.almIqwJ6.js +51 -0
  138. package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
  139. package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
  140. package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
  141. package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
  142. package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
  143. package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
  144. package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
  145. package/library/chunks/toNumber.MuDz8DgU.js +31 -0
  146. package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
  147. package/library/chunks/{toast.TDU3wVhq.js → toast.CXEAfCvN.js} +1 -1
  148. package/library/chunks/transformation.8uLv6uwG.js +264 -0
  149. package/library/chunks/{tree.C2dPd6gt.js → tree.vn5sHbdt.js} +123 -117
  150. package/library/chunks/value.BXEGBVFV.js +44 -0
  151. package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
  152. package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
  153. package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
  154. package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
  155. package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
  156. package/library/chunks/xy.BO6U5QrZ.js +294 -0
  157. package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
  158. package/library/components/alert.js +2 -2
  159. package/library/components/am-chart.js +3 -3
  160. package/library/components/animated-image.js +2 -2
  161. package/library/components/animation.js +2 -2
  162. package/library/components/array-line-clamp.js +1 -1
  163. package/library/components/asset-link-format.js +8 -7
  164. package/library/components/atoms.js +29 -29
  165. package/library/components/audio.js +3 -3
  166. package/library/components/avatar.js +2 -2
  167. package/library/components/border-input-group.js +1 -1
  168. package/library/components/breadcrumb-item.js +1 -1
  169. package/library/components/breadcrumb.js +1 -1
  170. package/library/components/button.js +3 -3
  171. package/library/components/checkbox.js +195 -18
  172. package/library/components/color-picker.js +4 -4
  173. package/library/components/color-swatch-group.js +5 -5
  174. package/library/components/color-swatch.js +2 -2
  175. package/library/components/confirm-popover.js +3 -3
  176. package/library/components/copy-button.js +2 -2
  177. package/library/components/corner-position-input-group.js +2 -2
  178. package/library/components/cropper.js +4 -4
  179. package/library/components/date-calendar.js +1 -1
  180. package/library/components/details.js +2 -2
  181. package/library/components/dialog.js +3 -3
  182. package/library/components/diff.js +1 -1
  183. package/library/components/divider.js +1 -1
  184. package/library/components/document-viewer.js +3 -3
  185. package/library/components/dot-pagination.js +2 -2
  186. package/library/components/drawer.js +3 -3
  187. package/library/components/dropdown.js +2 -2
  188. package/library/components/dynamic-select.js +6 -6
  189. package/library/components/e-chart.js +1 -1
  190. package/library/components/element-clamp.js +2 -2
  191. package/library/components/file-on-demand.js +350 -374
  192. package/library/components/folder-select.js +5 -5
  193. package/library/components/format-time.js +2 -2
  194. package/library/components/grid-item.js +1 -1
  195. package/library/components/header.js +2 -2
  196. package/library/components/hub-connection.js +2 -2
  197. package/library/components/icon-button.js +2 -2
  198. package/library/components/icon.js +2 -2
  199. package/library/components/iframe.js +2 -2
  200. package/library/components/image-comparer.js +2 -2
  201. package/library/components/image.js +3 -3
  202. package/library/components/include.js +1 -1
  203. package/library/components/input.js +3 -3
  204. package/library/components/line-clamp.js +1 -1
  205. package/library/components/markdown.js +11 -2704
  206. package/library/components/masonry.js +76 -73
  207. package/library/components/menu-item.js +2 -2
  208. package/library/components/molecules.js +3 -3
  209. package/library/components/mutation-observer.js +1 -1
  210. package/library/components/option.js +3 -3
  211. package/library/components/organisms.js +2 -2
  212. package/library/components/padding-input-group.js +1 -1
  213. package/library/components/pagination.js +6 -6
  214. package/library/components/position-picker.js +25 -25
  215. package/library/components/qr-code.js +1 -1
  216. package/library/components/radio-button.js +1 -1
  217. package/library/components/radio-card.js +1 -1
  218. package/library/components/radio-group.js +1 -1
  219. package/library/components/radio.js +2 -2
  220. package/library/components/range.js +1 -1
  221. package/library/components/rating.js +2 -2
  222. package/library/components/resize-observer.js +1 -1
  223. package/library/components/select.js +3 -3
  224. package/library/components/shadow-input-group.js +1 -1
  225. package/library/components/share-option-list.js +2 -2
  226. package/library/components/sidebar.js +3 -3
  227. package/library/components/size-input-group.js +3 -3
  228. package/library/components/split-panel.js +1 -1
  229. package/library/components/step.js +1 -1
  230. package/library/components/stepper-wizard.js +1 -1
  231. package/library/components/stepper.js +1 -1
  232. package/library/components/switch.js +1 -1
  233. package/library/components/tab-group.js +4 -4
  234. package/library/components/tab-panel.js +1 -1
  235. package/library/components/tab.js +2 -2
  236. package/library/components/tag.js +1 -1
  237. package/library/components/textarea.js +1 -1
  238. package/library/components/timecode.js +1 -1
  239. package/library/components/tooltip.js +1 -1
  240. package/library/components/tree-item.js +4 -4
  241. package/library/components/tree.js +2 -2
  242. package/library/components/typeface.js +2 -2
  243. package/library/components/types.js +122327 -120686
  244. package/library/components/video.js +2 -2
  245. package/library/package.json +2 -1
  246. package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
  247. package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
  248. package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
  249. package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
  250. package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
  251. package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
  252. package/library/packages/events/src/events.d.ts +1 -0
  253. package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
  254. package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
  255. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
  256. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
  257. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
  258. package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
  259. package/library/packages/molecules/src/index.d.ts +1 -0
  260. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
  261. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
  262. package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
  263. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
  264. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
  265. package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
  266. package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
  267. package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
  268. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
  269. package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
  270. package/library/packages/types/src/asset-link-format.d.ts +19 -0
  271. package/library/packages/types/src/markdown-viewer.d.ts +12 -0
  272. package/library/packages/types/src/tree-item.d.ts +12 -0
  273. package/library/react-web-component.d.ts +86 -8
  274. package/library/utils.js +64 -65
  275. package/package.json +2 -1
  276. package/library/chunks/Slice.C5lVu2g_.js +0 -120
  277. package/library/chunks/_baseXor.VohG8cOH.js +0 -116
  278. package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
  279. package/library/chunks/checkbox.3i2j3PHc.js +0 -198
  280. package/library/chunks/content-builder.BU8X7I6V.js +0 -60
  281. package/library/chunks/debounce.C_J-9zJi.js +0 -82
  282. package/library/chunks/flow.hz0UDjCb.js +0 -1594
  283. package/library/chunks/index.DU0XUO4k.js +0 -176
  284. package/library/chunks/transformation.D1alV_s4.js +0 -189
  285. package/library/chunks/xy.BNgyrwGD.js +0 -333
@@ -0,0 +1,1412 @@
1
+ import { g as ee } from "./chunk-XXDRQBXY.CSOjab1V.js";
2
+ import { s as se } from "./chunk-VR4S4FIN.BpryBs7q.js";
3
+ import { _ as p, l as b, c as $, v as ie, x as re, a as ae, b as ne, g as oe, s as le, n as ce, o as he, Q as ue, j, p as de } from "./mermaid.core.Dspbw7Ig.js";
4
+ import { f as fe } from "./chunk-32BRIVSS.BbIrVi3j.js";
5
+ import "./index.CrhRU5m8.js";
6
+ import "./transform.BuqENXeT.js";
7
+ import { p as pe } from "./purify.es.BIuh5IAZ.js";
8
+ import { s as kt } from "./select.C6_sM3Pr.js";
9
+ var Ct = function() {
10
+ var t = /* @__PURE__ */ p(function(V, o, u, a) {
11
+ for (u = u || {}, a = V.length; a--; u[V[a]] = o) ;
12
+ return u;
13
+ }, "o"), e = [1, 2], s = [1, 3], n = [1, 4], r = [2, 4], c = [1, 9], d = [1, 11], S = [1, 16], f = [1, 17], T = [1, 18], E = [1, 19], _ = [1, 33], L = [1, 20], D = [1, 21], h = [1, 22], I = [1, 23], w = [1, 24], C = [1, 26], F = [1, 27], A = [1, 28], P = [1, 29], N = [1, 30], z = [1, 31], rt = [1, 32], at = [1, 35], nt = [1, 36], ot = [1, 37], lt = [1, 38], K = [1, 34], y = [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], ct = [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], Lt = [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], gt = {
14
+ trace: /* @__PURE__ */ p(function() {
15
+ }, "trace"),
16
+ yy: {},
17
+ 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 },
18
+ 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" },
19
+ 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]],
20
+ performAction: /* @__PURE__ */ p(function(o, u, a, g, m, i, B) {
21
+ var l = i.length - 1;
22
+ switch (m) {
23
+ case 3:
24
+ return g.setRootDoc(i[l]), i[l];
25
+ case 4:
26
+ this.$ = [];
27
+ break;
28
+ case 5:
29
+ i[l] != "nl" && (i[l - 1].push(i[l]), this.$ = i[l - 1]);
30
+ break;
31
+ case 6:
32
+ case 7:
33
+ this.$ = i[l];
34
+ break;
35
+ case 8:
36
+ this.$ = "nl";
37
+ break;
38
+ case 12:
39
+ this.$ = i[l];
40
+ break;
41
+ case 13:
42
+ const Z = i[l - 1];
43
+ Z.description = g.trimColon(i[l]), this.$ = Z;
44
+ break;
45
+ case 14:
46
+ this.$ = { stmt: "relation", state1: i[l - 2], state2: i[l] };
47
+ break;
48
+ case 15:
49
+ const Tt = g.trimColon(i[l]);
50
+ this.$ = { stmt: "relation", state1: i[l - 3], state2: i[l - 1], description: Tt };
51
+ break;
52
+ case 19:
53
+ this.$ = { stmt: "state", id: i[l - 3], type: "default", description: "", doc: i[l - 1] };
54
+ break;
55
+ case 20:
56
+ var Y = i[l], X = i[l - 2].trim();
57
+ if (i[l].match(":")) {
58
+ var ut = i[l].split(":");
59
+ Y = ut[0], X = [X, ut[1]];
60
+ }
61
+ this.$ = { stmt: "state", id: Y, type: "default", description: X };
62
+ break;
63
+ case 21:
64
+ this.$ = { stmt: "state", id: i[l - 3], type: "default", description: i[l - 5], doc: i[l - 1] };
65
+ break;
66
+ case 22:
67
+ this.$ = { stmt: "state", id: i[l], type: "fork" };
68
+ break;
69
+ case 23:
70
+ this.$ = { stmt: "state", id: i[l], type: "join" };
71
+ break;
72
+ case 24:
73
+ this.$ = { stmt: "state", id: i[l], type: "choice" };
74
+ break;
75
+ case 25:
76
+ this.$ = { stmt: "state", id: g.getDividerId(), type: "divider" };
77
+ break;
78
+ case 26:
79
+ this.$ = { stmt: "state", id: i[l - 1].trim(), note: { position: i[l - 2].trim(), text: i[l].trim() } };
80
+ break;
81
+ case 29:
82
+ this.$ = i[l].trim(), g.setAccTitle(this.$);
83
+ break;
84
+ case 30:
85
+ case 31:
86
+ this.$ = i[l].trim(), g.setAccDescription(this.$);
87
+ break;
88
+ case 32:
89
+ this.$ = {
90
+ stmt: "click",
91
+ id: i[l - 3],
92
+ url: i[l - 2],
93
+ tooltip: i[l - 1]
94
+ };
95
+ break;
96
+ case 33:
97
+ this.$ = {
98
+ stmt: "click",
99
+ id: i[l - 3],
100
+ url: i[l - 1],
101
+ tooltip: ""
102
+ };
103
+ break;
104
+ case 34:
105
+ case 35:
106
+ this.$ = { stmt: "classDef", id: i[l - 1].trim(), classes: i[l].trim() };
107
+ break;
108
+ case 36:
109
+ this.$ = { stmt: "style", id: i[l - 1].trim(), styleClass: i[l].trim() };
110
+ break;
111
+ case 37:
112
+ this.$ = { stmt: "applyClass", id: i[l - 1].trim(), styleClass: i[l].trim() };
113
+ break;
114
+ case 38:
115
+ g.setDirection("TB"), this.$ = { stmt: "dir", value: "TB" };
116
+ break;
117
+ case 39:
118
+ g.setDirection("BT"), this.$ = { stmt: "dir", value: "BT" };
119
+ break;
120
+ case 40:
121
+ g.setDirection("RL"), this.$ = { stmt: "dir", value: "RL" };
122
+ break;
123
+ case 41:
124
+ g.setDirection("LR"), this.$ = { stmt: "dir", value: "LR" };
125
+ break;
126
+ case 44:
127
+ case 45:
128
+ this.$ = { stmt: "state", id: i[l].trim(), type: "default", description: "" };
129
+ break;
130
+ case 46:
131
+ this.$ = { stmt: "state", id: i[l - 2].trim(), classes: [i[l].trim()], type: "default", description: "" };
132
+ break;
133
+ case 47:
134
+ this.$ = { stmt: "state", id: i[l - 2].trim(), classes: [i[l].trim()], type: "default", description: "" };
135
+ break;
136
+ }
137
+ }, "anonymous"),
138
+ table: [{ 3: 1, 4: e, 5: s, 6: n }, { 1: [3] }, { 3: 5, 4: e, 5: s, 6: n }, { 3: 6, 4: e, 5: s, 6: n }, t([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], r, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: c, 5: d, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: S, 17: f, 19: T, 22: E, 24: _, 25: L, 26: D, 27: h, 28: I, 29: w, 32: 25, 33: C, 35: F, 37: A, 38: P, 41: N, 45: z, 48: rt, 51: at, 52: nt, 53: ot, 54: lt, 57: K }, t(y, [2, 5]), { 9: 39, 10: 12, 11: 13, 12: 14, 13: 15, 16: S, 17: f, 19: T, 22: E, 24: _, 25: L, 26: D, 27: h, 28: I, 29: w, 32: 25, 33: C, 35: F, 37: A, 38: P, 41: N, 45: z, 48: rt, 51: at, 52: nt, 53: ot, 54: lt, 57: K }, t(y, [2, 7]), t(y, [2, 8]), t(y, [2, 9]), t(y, [2, 10]), t(y, [2, 11]), t(y, [2, 12], { 14: [1, 40], 15: [1, 41] }), t(y, [2, 16]), { 18: [1, 42] }, t(y, [2, 18], { 20: [1, 43] }), { 23: [1, 44] }, t(y, [2, 22]), t(y, [2, 23]), t(y, [2, 24]), t(y, [2, 25]), { 30: 45, 31: [1, 46], 59: [1, 47], 60: [1, 48] }, t(y, [2, 28]), { 34: [1, 49] }, { 36: [1, 50] }, t(y, [2, 31]), { 13: 51, 24: _, 57: K }, { 42: [1, 52], 44: [1, 53] }, { 46: [1, 54] }, { 49: [1, 55] }, t(ct, [2, 44], { 58: [1, 56] }), t(ct, [2, 45], { 58: [1, 57] }), t(y, [2, 38]), t(y, [2, 39]), t(y, [2, 40]), t(y, [2, 41]), t(y, [2, 6]), t(y, [2, 13]), { 13: 58, 24: _, 57: K }, t(y, [2, 17]), t(Lt, r, { 7: 59 }), { 24: [1, 60] }, { 24: [1, 61] }, { 23: [1, 62] }, { 24: [2, 48] }, { 24: [2, 49] }, t(y, [2, 29]), t(y, [2, 30]), { 39: [1, 63], 40: [1, 64] }, { 43: [1, 65] }, { 43: [1, 66] }, { 47: [1, 67] }, { 50: [1, 68] }, { 24: [1, 69] }, { 24: [1, 70] }, t(y, [2, 14], { 14: [1, 71] }), { 4: c, 5: d, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: S, 17: f, 19: T, 21: [1, 72], 22: E, 24: _, 25: L, 26: D, 27: h, 28: I, 29: w, 32: 25, 33: C, 35: F, 37: A, 38: P, 41: N, 45: z, 48: rt, 51: at, 52: nt, 53: ot, 54: lt, 57: K }, t(y, [2, 20], { 20: [1, 73] }), { 31: [1, 74] }, { 24: [1, 75] }, { 39: [1, 76] }, { 39: [1, 77] }, t(y, [2, 34]), t(y, [2, 35]), t(y, [2, 36]), t(y, [2, 37]), t(ct, [2, 46]), t(ct, [2, 47]), t(y, [2, 15]), t(y, [2, 19]), t(Lt, r, { 7: 78 }), t(y, [2, 26]), t(y, [2, 27]), { 5: [1, 79] }, { 5: [1, 80] }, { 4: c, 5: d, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: S, 17: f, 19: T, 21: [1, 81], 22: E, 24: _, 25: L, 26: D, 27: h, 28: I, 29: w, 32: 25, 33: C, 35: F, 37: A, 38: P, 41: N, 45: z, 48: rt, 51: at, 52: nt, 53: ot, 54: lt, 57: K }, t(y, [2, 32]), t(y, [2, 33]), t(y, [2, 21])],
139
+ defaultActions: { 5: [2, 1], 6: [2, 2], 47: [2, 48], 48: [2, 49] },
140
+ parseError: /* @__PURE__ */ p(function(o, u) {
141
+ if (u.recoverable)
142
+ this.trace(o);
143
+ else {
144
+ var a = new Error(o);
145
+ throw a.hash = u, a;
146
+ }
147
+ }, "parseError"),
148
+ parse: /* @__PURE__ */ p(function(o) {
149
+ var u = this, a = [0], g = [], m = [null], i = [], B = this.table, l = "", Y = 0, X = 0, ut = 2, Z = 1, Tt = i.slice.call(arguments, 1), k = Object.create(this.lexer), U = { yy: {} };
150
+ for (var Et in this.yy)
151
+ Object.prototype.hasOwnProperty.call(this.yy, Et) && (U.yy[Et] = this.yy[Et]);
152
+ k.setInput(o, U.yy), U.yy.lexer = k, U.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
153
+ var mt = k.yylloc;
154
+ i.push(mt);
155
+ var Zt = k.options && k.options.ranges;
156
+ typeof U.yy.parseError == "function" ? this.parseError = U.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
157
+ function te(O) {
158
+ a.length = a.length - 2 * O, m.length = m.length - O, i.length = i.length - O;
159
+ }
160
+ p(te, "popStack");
161
+ function It() {
162
+ var O;
163
+ return O = g.pop() || k.lex() || Z, typeof O != "number" && (O instanceof Array && (g = O, O = g.pop()), O = u.symbols_[O] || O), O;
164
+ }
165
+ p(It, "lex");
166
+ for (var x, W, R, _t, J = {}, dt, G, wt, ft; ; ) {
167
+ if (W = a[a.length - 1], this.defaultActions[W] ? R = this.defaultActions[W] : ((x === null || typeof x > "u") && (x = It()), R = B[W] && B[W][x]), typeof R > "u" || !R.length || !R[0]) {
168
+ var bt = "";
169
+ ft = [];
170
+ for (dt in B[W])
171
+ this.terminals_[dt] && dt > ut && ft.push("'" + this.terminals_[dt] + "'");
172
+ k.showPosition ? bt = "Parse error on line " + (Y + 1) + `:
173
+ ` + k.showPosition() + `
174
+ Expecting ` + ft.join(", ") + ", got '" + (this.terminals_[x] || x) + "'" : bt = "Parse error on line " + (Y + 1) + ": Unexpected " + (x == Z ? "end of input" : "'" + (this.terminals_[x] || x) + "'"), this.parseError(bt, {
175
+ text: k.match,
176
+ token: this.terminals_[x] || x,
177
+ line: k.yylineno,
178
+ loc: mt,
179
+ expected: ft
180
+ });
181
+ }
182
+ if (R[0] instanceof Array && R.length > 1)
183
+ throw new Error("Parse Error: multiple actions possible at state: " + W + ", token: " + x);
184
+ switch (R[0]) {
185
+ case 1:
186
+ a.push(x), m.push(k.yytext), i.push(k.yylloc), a.push(R[1]), x = null, X = k.yyleng, l = k.yytext, Y = k.yylineno, mt = k.yylloc;
187
+ break;
188
+ case 2:
189
+ if (G = this.productions_[R[1]][1], J.$ = m[m.length - G], J._$ = {
190
+ first_line: i[i.length - (G || 1)].first_line,
191
+ last_line: i[i.length - 1].last_line,
192
+ first_column: i[i.length - (G || 1)].first_column,
193
+ last_column: i[i.length - 1].last_column
194
+ }, Zt && (J._$.range = [
195
+ i[i.length - (G || 1)].range[0],
196
+ i[i.length - 1].range[1]
197
+ ]), _t = this.performAction.apply(J, [
198
+ l,
199
+ X,
200
+ Y,
201
+ U.yy,
202
+ R[1],
203
+ m,
204
+ i
205
+ ].concat(Tt)), typeof _t < "u")
206
+ return _t;
207
+ G && (a = a.slice(0, -1 * G * 2), m = m.slice(0, -1 * G), i = i.slice(0, -1 * G)), a.push(this.productions_[R[1]][0]), m.push(J.$), i.push(J._$), wt = B[a[a.length - 2]][a[a.length - 1]], a.push(wt);
208
+ break;
209
+ case 3:
210
+ return !0;
211
+ }
212
+ }
213
+ return !0;
214
+ }, "parse")
215
+ }, Qt = /* @__PURE__ */ function() {
216
+ var V = {
217
+ EOF: 1,
218
+ parseError: /* @__PURE__ */ p(function(u, a) {
219
+ if (this.yy.parser)
220
+ this.yy.parser.parseError(u, a);
221
+ else
222
+ throw new Error(u);
223
+ }, "parseError"),
224
+ // resets the lexer, sets new input
225
+ setInput: /* @__PURE__ */ p(function(o, u) {
226
+ return this.yy = u || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
227
+ first_line: 1,
228
+ first_column: 0,
229
+ last_line: 1,
230
+ last_column: 0
231
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
232
+ }, "setInput"),
233
+ // consumes and returns one char from the input
234
+ input: /* @__PURE__ */ p(function() {
235
+ var o = this._input[0];
236
+ this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
237
+ var u = o.match(/(?:\r\n?|\n).*/g);
238
+ return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
239
+ }, "input"),
240
+ // unshifts one char (or a string) into the input
241
+ unput: /* @__PURE__ */ p(function(o) {
242
+ var u = o.length, a = o.split(/(?:\r\n?|\n)/g);
243
+ this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
244
+ var g = this.match.split(/(?:\r\n?|\n)/g);
245
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
246
+ var m = this.yylloc.range;
247
+ return this.yylloc = {
248
+ first_line: this.yylloc.first_line,
249
+ last_line: this.yylineno + 1,
250
+ first_column: this.yylloc.first_column,
251
+ last_column: a ? (a.length === g.length ? this.yylloc.first_column : 0) + g[g.length - a.length].length - a[0].length : this.yylloc.first_column - u
252
+ }, this.options.ranges && (this.yylloc.range = [m[0], m[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
253
+ }, "unput"),
254
+ // When called from action, caches matched text and appends it on next action
255
+ more: /* @__PURE__ */ p(function() {
256
+ return this._more = !0, this;
257
+ }, "more"),
258
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
259
+ reject: /* @__PURE__ */ p(function() {
260
+ if (this.options.backtrack_lexer)
261
+ this._backtrack = !0;
262
+ else
263
+ 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).
264
+ ` + this.showPosition(), {
265
+ text: "",
266
+ token: null,
267
+ line: this.yylineno
268
+ });
269
+ return this;
270
+ }, "reject"),
271
+ // retain first n characters of the match
272
+ less: /* @__PURE__ */ p(function(o) {
273
+ this.unput(this.match.slice(o));
274
+ }, "less"),
275
+ // displays already matched input, i.e. for error messages
276
+ pastInput: /* @__PURE__ */ p(function() {
277
+ var o = this.matched.substr(0, this.matched.length - this.match.length);
278
+ return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
279
+ }, "pastInput"),
280
+ // displays upcoming input, i.e. for error messages
281
+ upcomingInput: /* @__PURE__ */ p(function() {
282
+ var o = this.match;
283
+ return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
284
+ }, "upcomingInput"),
285
+ // displays the character position where the lexing error occurred, i.e. for error messages
286
+ showPosition: /* @__PURE__ */ p(function() {
287
+ var o = this.pastInput(), u = new Array(o.length + 1).join("-");
288
+ return o + this.upcomingInput() + `
289
+ ` + u + "^";
290
+ }, "showPosition"),
291
+ // test the lexed token: return FALSE when not a match, otherwise return token
292
+ test_match: /* @__PURE__ */ p(function(o, u) {
293
+ var a, g, m;
294
+ if (this.options.backtrack_lexer && (m = {
295
+ yylineno: this.yylineno,
296
+ yylloc: {
297
+ first_line: this.yylloc.first_line,
298
+ last_line: this.last_line,
299
+ first_column: this.yylloc.first_column,
300
+ last_column: this.yylloc.last_column
301
+ },
302
+ yytext: this.yytext,
303
+ match: this.match,
304
+ matches: this.matches,
305
+ matched: this.matched,
306
+ yyleng: this.yyleng,
307
+ offset: this.offset,
308
+ _more: this._more,
309
+ _input: this._input,
310
+ yy: this.yy,
311
+ conditionStack: this.conditionStack.slice(0),
312
+ done: this.done
313
+ }, this.options.ranges && (m.yylloc.range = this.yylloc.range.slice(0))), g = o[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
314
+ first_line: this.yylloc.last_line,
315
+ last_line: this.yylineno + 1,
316
+ first_column: this.yylloc.last_column,
317
+ last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
318
+ }, this.yytext += o[0], this.match += o[0], this.matches = o, 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(o[0].length), this.matched += o[0], a = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
319
+ return a;
320
+ if (this._backtrack) {
321
+ for (var i in m)
322
+ this[i] = m[i];
323
+ return !1;
324
+ }
325
+ return !1;
326
+ }, "test_match"),
327
+ // return next match in input
328
+ next: /* @__PURE__ */ p(function() {
329
+ if (this.done)
330
+ return this.EOF;
331
+ this._input || (this.done = !0);
332
+ var o, u, a, g;
333
+ this._more || (this.yytext = "", this.match = "");
334
+ for (var m = this._currentRules(), i = 0; i < m.length; i++)
335
+ if (a = this._input.match(this.rules[m[i]]), a && (!u || a[0].length > u[0].length)) {
336
+ if (u = a, g = i, this.options.backtrack_lexer) {
337
+ if (o = this.test_match(a, m[i]), o !== !1)
338
+ return o;
339
+ if (this._backtrack) {
340
+ u = !1;
341
+ continue;
342
+ } else
343
+ return !1;
344
+ } else if (!this.options.flex)
345
+ break;
346
+ }
347
+ return u ? (o = this.test_match(u, m[g]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
348
+ ` + this.showPosition(), {
349
+ text: "",
350
+ token: null,
351
+ line: this.yylineno
352
+ });
353
+ }, "next"),
354
+ // return next match that has a token
355
+ lex: /* @__PURE__ */ p(function() {
356
+ var u = this.next();
357
+ return u || this.lex();
358
+ }, "lex"),
359
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
360
+ begin: /* @__PURE__ */ p(function(u) {
361
+ this.conditionStack.push(u);
362
+ }, "begin"),
363
+ // pop the previously active lexer condition state off the condition stack
364
+ popState: /* @__PURE__ */ p(function() {
365
+ var u = this.conditionStack.length - 1;
366
+ return u > 0 ? this.conditionStack.pop() : this.conditionStack[0];
367
+ }, "popState"),
368
+ // produce the lexer rule set which is active for the currently active lexer condition state
369
+ _currentRules: /* @__PURE__ */ p(function() {
370
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
371
+ }, "_currentRules"),
372
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
373
+ topState: /* @__PURE__ */ p(function(u) {
374
+ return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL";
375
+ }, "topState"),
376
+ // alias for begin(condition)
377
+ pushState: /* @__PURE__ */ p(function(u) {
378
+ this.begin(u);
379
+ }, "pushState"),
380
+ // return the number of states currently on the stack
381
+ stateStackSize: /* @__PURE__ */ p(function() {
382
+ return this.conditionStack.length;
383
+ }, "stateStackSize"),
384
+ options: { "case-insensitive": !0 },
385
+ performAction: /* @__PURE__ */ p(function(u, a, g, m) {
386
+ function i() {
387
+ const B = a.yytext.indexOf("%%");
388
+ if (B === 0)
389
+ return !1;
390
+ if (B > 0) {
391
+ const l = a.yytext.slice(0, B), Y = a.yytext.slice(B);
392
+ Y && u.lexer.unput(Y), a.yytext = l;
393
+ }
394
+ return !0;
395
+ }
396
+ switch (p(i, "processId"), g) {
397
+ case 0:
398
+ return 38;
399
+ case 1:
400
+ return 40;
401
+ case 2:
402
+ return 39;
403
+ case 3:
404
+ return 44;
405
+ case 4:
406
+ return 51;
407
+ case 5:
408
+ return 52;
409
+ case 6:
410
+ return 53;
411
+ case 7:
412
+ return 54;
413
+ case 8:
414
+ return 5;
415
+ case 9:
416
+ break;
417
+ case 10:
418
+ break;
419
+ case 11:
420
+ break;
421
+ case 12:
422
+ break;
423
+ case 13:
424
+ return this.pushState("SCALE"), 17;
425
+ case 14:
426
+ return 18;
427
+ case 15:
428
+ this.popState();
429
+ break;
430
+ case 16:
431
+ return this.begin("acc_title"), 33;
432
+ case 17:
433
+ return this.popState(), "acc_title_value";
434
+ case 18:
435
+ return this.begin("acc_descr"), 35;
436
+ case 19:
437
+ return this.popState(), "acc_descr_value";
438
+ case 20:
439
+ this.begin("acc_descr_multiline");
440
+ break;
441
+ case 21:
442
+ this.popState();
443
+ break;
444
+ case 22:
445
+ return "acc_descr_multiline_value";
446
+ case 23:
447
+ return this.pushState("CLASSDEF"), 41;
448
+ case 24:
449
+ return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
450
+ case 25:
451
+ return this.popState(), this.pushState("CLASSDEFID"), 42;
452
+ case 26:
453
+ return this.popState(), 43;
454
+ case 27:
455
+ return this.pushState("CLASS"), 48;
456
+ case 28:
457
+ return this.popState(), this.pushState("CLASS_STYLE"), 49;
458
+ case 29:
459
+ return this.popState(), 50;
460
+ case 30:
461
+ return this.pushState("STYLE"), 45;
462
+ case 31:
463
+ return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
464
+ case 32:
465
+ return this.popState(), 47;
466
+ case 33:
467
+ return this.pushState("SCALE"), 17;
468
+ case 34:
469
+ return 18;
470
+ case 35:
471
+ this.popState();
472
+ break;
473
+ case 36:
474
+ this.pushState("STATE");
475
+ break;
476
+ case 37:
477
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 25;
478
+ case 38:
479
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 26;
480
+ case 39:
481
+ return this.popState(), a.yytext = a.yytext.slice(0, -10).trim(), 27;
482
+ case 40:
483
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 25;
484
+ case 41:
485
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 26;
486
+ case 42:
487
+ return this.popState(), a.yytext = a.yytext.slice(0, -10).trim(), 27;
488
+ case 43:
489
+ return 51;
490
+ case 44:
491
+ return 52;
492
+ case 45:
493
+ return 53;
494
+ case 46:
495
+ return 54;
496
+ case 47:
497
+ this.pushState("STATE_STRING");
498
+ break;
499
+ case 48:
500
+ return this.pushState("STATE_ID"), "AS";
501
+ case 49:
502
+ return i() ? (this.popState(), "ID") : void 0;
503
+ case 50:
504
+ this.popState();
505
+ break;
506
+ case 51:
507
+ return "STATE_DESCR";
508
+ case 52:
509
+ throw new Error('Error: State name must be a single word. Found: "' + a.yytext.trim() + '"');
510
+ case 53:
511
+ return 19;
512
+ case 54:
513
+ this.popState();
514
+ break;
515
+ case 55:
516
+ return this.popState(), this.pushState("struct"), 20;
517
+ case 56:
518
+ return this.popState(), 21;
519
+ case 57:
520
+ break;
521
+ case 58:
522
+ return this.begin("NOTE"), 29;
523
+ case 59:
524
+ return this.popState(), this.pushState("NOTE_ID"), 59;
525
+ case 60:
526
+ return this.popState(), this.pushState("NOTE_ID"), 60;
527
+ case 61:
528
+ this.popState(), this.pushState("FLOATING_NOTE");
529
+ break;
530
+ case 62:
531
+ return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
532
+ case 63:
533
+ break;
534
+ case 64:
535
+ return "NOTE_TEXT";
536
+ case 65:
537
+ return i() ? (this.popState(), "ID") : void 0;
538
+ case 66:
539
+ return i() ? (this.popState(), this.pushState("NOTE_TEXT"), 24) : void 0;
540
+ case 67:
541
+ return this.popState(), a.yytext = a.yytext.substr(2).trim(), 31;
542
+ case 68:
543
+ return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 31;
544
+ case 69:
545
+ return 6;
546
+ case 70:
547
+ return 6;
548
+ case 71:
549
+ return 16;
550
+ case 72:
551
+ return 57;
552
+ case 73:
553
+ return i() ? 24 : void 0;
554
+ case 74:
555
+ return a.yytext = a.yytext.trim(), 14;
556
+ case 75:
557
+ return 15;
558
+ case 76:
559
+ return 28;
560
+ case 77:
561
+ return 58;
562
+ case 78:
563
+ return 5;
564
+ case 79:
565
+ return "INVALID";
566
+ }
567
+ }, "anonymous"),
568
+ 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],
569
+ 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 } }
570
+ };
571
+ return V;
572
+ }();
573
+ gt.lexer = Qt;
574
+ function ht() {
575
+ this.yy = {};
576
+ }
577
+ return p(ht, "Parser"), ht.prototype = gt, gt.Parser = ht, new ht();
578
+ }();
579
+ Ct.parser = Ct;
580
+ var Ke = Ct, Se = "TB", Yt = "TB", Nt = "dir", Q = "state", q = "root", At = "relation", ye = "classDef", ge = "style", Te = "applyClass", st = "default", Gt = "divider", Vt = "fill:none", Mt = "fill: #333", Ut = "c", Wt = "markdown", jt = "normal", Dt = "rect", vt = "rectWithTitle", Ee = "stateStart", me = "stateEnd", Ot = "divider", Rt = "roundedWithTitle", _e = "note", be = "noteGroup", it = "statediagram", ke = "state", De = `${it}-${ke}`, Ht = "transition", ve = "note", Ce = "note-edge", Ae = `${Ht} ${Ce}`, xe = `${it}-${ve}`, Le = "cluster", Ie = `${it}-${Le}`, we = "cluster-alt", Ne = `${it}-${we}`, zt = "parent", Kt = "note", Oe = "state", xt = "----", Re = `${xt}${Kt}`, $t = `${xt}${zt}`, Xt = /* @__PURE__ */ p((t, e = Yt) => {
581
+ if (!t.doc)
582
+ return e;
583
+ let s = e;
584
+ for (const n of t.doc)
585
+ n.stmt === "dir" && (s = n.value);
586
+ return s;
587
+ }, "getDir"), $e = /* @__PURE__ */ p(function(t, e) {
588
+ return e.db.getClasses();
589
+ }, "getClasses"), Fe = /* @__PURE__ */ p(async function(t, e, s, n) {
590
+ b.info("REF0:"), b.info("Drawing state diagram (v2)", e);
591
+ const { securityLevel: r, state: c, layout: d } = $();
592
+ n.db.extract(n.db.getRootDocV2());
593
+ const S = n.db.getData(), f = ee(e, r);
594
+ S.type = n.type, S.layoutAlgorithm = d, S.nodeSpacing = c?.nodeSpacing || 50, S.rankSpacing = c?.rankSpacing || 50, $().look === "neo" ? S.markers = ["barbNeo"] : S.markers = ["barb"], S.diagramId = e, await ie(S, f);
595
+ const E = 8;
596
+ try {
597
+ (typeof n.db.getLinks == "function" ? n.db.getLinks() : /* @__PURE__ */ new Map()).forEach((L, D) => {
598
+ const h = typeof D == "string" ? D : typeof D?.id == "string" ? D.id : "", I = S.nodes.find((N) => N.id === h);
599
+ if (!h) {
600
+ b.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(D));
601
+ return;
602
+ }
603
+ const w = f.node()?.querySelectorAll("g.node, g.rough-node");
604
+ let C;
605
+ if (w?.forEach((N) => {
606
+ const z = N.textContent?.trim();
607
+ (N.id === I?.domId || z === h) && (C = N);
608
+ }), !C) {
609
+ b.warn("⚠️ Could not find node matching text:", h);
610
+ return;
611
+ }
612
+ const F = C.parentNode;
613
+ if (!F) {
614
+ b.warn("⚠️ Node has no parent, cannot wrap:", h);
615
+ return;
616
+ }
617
+ const A = document.createElementNS("http://www.w3.org/2000/svg", "a"), P = L.url.replace(/^"+|"+$/g, "");
618
+ if (A.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", P), A.setAttribute("target", "_blank"), L.tooltip) {
619
+ const N = L.tooltip.replace(/^"+|"+$/g, "");
620
+ A.setAttribute("title", N), C.setAttribute("title", N);
621
+ }
622
+ F.replaceChild(A, C), A.appendChild(C), b.info("🔗 Wrapped node in <a> tag for:", h, L.url);
623
+ });
624
+ } catch (_) {
625
+ b.error("❌ Error injecting clickable links:", _);
626
+ }
627
+ re.insertTitle(
628
+ f,
629
+ "statediagramTitleText",
630
+ c?.titleTopMargin ?? 25,
631
+ n.db.getDiagramTitle()
632
+ ), se(f, E, it, c?.useMaxWidth ?? !0);
633
+ }, "draw"), Xe = {
634
+ getClasses: $e,
635
+ draw: Fe,
636
+ getDir: Xt
637
+ }, St = /* @__PURE__ */ new Map(), M = 0;
638
+ function yt(t = "", e = 0, s = "", n = xt) {
639
+ const r = s !== null && s.length > 0 ? `${n}${s}` : "";
640
+ return `${Oe}-${t}${r}-${e}`;
641
+ }
642
+ p(yt, "stateDomId");
643
+ var Pe = /* @__PURE__ */ p((t, e, s, n, r, c, d, S) => {
644
+ b.trace("items", e), e.forEach((f) => {
645
+ switch (f.stmt) {
646
+ case Q:
647
+ et(t, f, s, n, r, c, d, S);
648
+ break;
649
+ case st:
650
+ et(t, f, s, n, r, c, d, S);
651
+ break;
652
+ case At:
653
+ {
654
+ et(
655
+ t,
656
+ f.state1,
657
+ s,
658
+ n,
659
+ r,
660
+ c,
661
+ d,
662
+ S
663
+ ), et(
664
+ t,
665
+ f.state2,
666
+ s,
667
+ n,
668
+ r,
669
+ c,
670
+ d,
671
+ S
672
+ );
673
+ const T = d === "neo", E = {
674
+ id: "edge" + M,
675
+ start: f.state1.id,
676
+ end: f.state2.id,
677
+ arrowhead: "normal",
678
+ arrowTypeEnd: T ? "arrow_barb_neo" : "arrow_barb",
679
+ style: Vt,
680
+ labelStyle: "",
681
+ label: j.sanitizeText(f.description ?? "", $()),
682
+ arrowheadStyle: Mt,
683
+ labelpos: Ut,
684
+ labelType: Wt,
685
+ thickness: jt,
686
+ classes: Ht,
687
+ look: d
688
+ };
689
+ r.push(E), M++;
690
+ }
691
+ break;
692
+ }
693
+ });
694
+ }, "setupDoc"), Ft = /* @__PURE__ */ p((t, e = Yt) => {
695
+ let s = e;
696
+ if (t.doc)
697
+ for (const n of t.doc)
698
+ n.stmt === "dir" && (s = n.value);
699
+ return s;
700
+ }, "getDir");
701
+ function tt(t, e, s) {
702
+ if (!e.id || e.id === "</join></fork>" || e.id === "</choice>")
703
+ return;
704
+ e.cssClasses && (Array.isArray(e.cssCompiledStyles) || (e.cssCompiledStyles = []), e.cssClasses.split(" ").forEach((r) => {
705
+ const c = s.get(r);
706
+ c && (e.cssCompiledStyles = [...e.cssCompiledStyles ?? [], ...c.styles]);
707
+ }));
708
+ const n = t.find((r) => r.id === e.id);
709
+ n ? Object.assign(n, e) : t.push(e);
710
+ }
711
+ p(tt, "insertOrUpdateNode");
712
+ function Jt(t) {
713
+ return t?.classes?.join(" ") ?? "";
714
+ }
715
+ p(Jt, "getClassesFromDbInfo");
716
+ function qt(t) {
717
+ return t?.styles ?? [];
718
+ }
719
+ p(qt, "getStylesFromDbInfo");
720
+ var et = /* @__PURE__ */ p((t, e, s, n, r, c, d, S) => {
721
+ const f = e.id, T = s.get(f), E = Jt(T), _ = qt(T), L = $();
722
+ if (b.info("dataFetcher parsedItem", e, T, _), f !== "root") {
723
+ let D = Dt;
724
+ e.start === !0 ? D = Ee : e.start === !1 && (D = me), e.type !== st && (D = e.type), St.get(f) || St.set(f, {
725
+ id: f,
726
+ shape: D,
727
+ description: j.sanitizeText(f, L),
728
+ cssClasses: `${E} ${De}`,
729
+ cssStyles: _
730
+ });
731
+ const h = St.get(f);
732
+ e.description && (Array.isArray(h.description) ? (h.shape = vt, h.description.push(e.description)) : h.description?.length && h.description.length > 0 ? (h.shape = vt, h.description === f ? h.description = [e.description] : h.description = [h.description, e.description]) : (h.shape = Dt, h.description = e.description), h.description = j.sanitizeTextOrArray(h.description, L)), h.description?.length === 1 && h.shape === vt && (h.type === "group" ? h.shape = Rt : h.shape = Dt), !h.type && e.doc && (b.info("Setting cluster for XCX", f, Ft(e)), h.type = "group", h.isGroup = !0, h.dir = Ft(e), h.explicitDir = e.doc.some((w) => w.stmt === "dir"), h.shape = e.type === Gt ? Ot : Rt, h.cssClasses = `${h.cssClasses} ${Ie} ${c ? Ne : ""}`);
733
+ const I = {
734
+ labelStyle: "",
735
+ shape: h.shape,
736
+ label: h.description,
737
+ cssClasses: h.cssClasses,
738
+ cssCompiledStyles: [],
739
+ cssStyles: h.cssStyles,
740
+ id: f,
741
+ dir: h.dir,
742
+ domId: yt(f, M),
743
+ type: h.type,
744
+ isGroup: h.type === "group",
745
+ padding: 8,
746
+ rx: 10,
747
+ ry: 10,
748
+ look: d,
749
+ labelType: "markdown"
750
+ };
751
+ if (I.shape === Ot && (I.label = ""), t && t.id !== "root" && (b.trace("Setting node ", f, " to be child of its parent ", t.id), I.parentId = t.id), I.centerLabel = !0, e.note) {
752
+ const w = {
753
+ labelStyle: "",
754
+ shape: _e,
755
+ label: e.note.text,
756
+ labelType: "markdown",
757
+ cssClasses: xe,
758
+ // useHtmlLabels: false,
759
+ cssStyles: [],
760
+ cssCompiledStyles: [],
761
+ id: f + Re + "-" + M,
762
+ domId: yt(f, M, Kt),
763
+ type: h.type,
764
+ isGroup: h.type === "group",
765
+ padding: L.flowchart?.padding,
766
+ look: d,
767
+ position: e.note.position
768
+ }, C = f + $t, F = {
769
+ labelStyle: "",
770
+ shape: be,
771
+ label: e.note.text,
772
+ cssClasses: h.cssClasses,
773
+ cssStyles: [],
774
+ id: f + $t,
775
+ domId: yt(f, M, zt),
776
+ type: "group",
777
+ isGroup: !0,
778
+ padding: 16,
779
+ //getConfig().flowchart.padding
780
+ look: d,
781
+ position: e.note.position
782
+ };
783
+ M++, F.id = C, w.parentId = C, tt(n, F, S), tt(n, w, S), tt(n, I, S);
784
+ let A = f, P = w.id;
785
+ e.note.position === "left of" && (A = w.id, P = f), r.push({
786
+ id: A + "-" + P,
787
+ start: A,
788
+ end: P,
789
+ arrowhead: "none",
790
+ arrowTypeEnd: "",
791
+ style: Vt,
792
+ labelStyle: "",
793
+ classes: Ae,
794
+ arrowheadStyle: Mt,
795
+ labelpos: Ut,
796
+ labelType: Wt,
797
+ thickness: jt,
798
+ look: d
799
+ });
800
+ } else
801
+ tt(n, I, S);
802
+ }
803
+ e.doc && (b.trace("Adding nodes children "), Pe(e, e.doc, s, n, r, !c, d, S));
804
+ }, "dataFetcher"), Be = /* @__PURE__ */ p(() => {
805
+ St.clear(), M = 0;
806
+ }, "reset"), v = {
807
+ START_NODE: "[*]",
808
+ START_TYPE: "start",
809
+ END_NODE: "[*]",
810
+ END_TYPE: "end",
811
+ COLOR_KEYWORD: "color",
812
+ FILL_KEYWORD: "fill",
813
+ BG_FILL: "bgFill",
814
+ STYLECLASS_SEP: ","
815
+ }, Pt = /* @__PURE__ */ p(() => /* @__PURE__ */ new Map(), "newClassesList"), Bt = /* @__PURE__ */ p(() => ({
816
+ relations: [],
817
+ states: /* @__PURE__ */ new Map(),
818
+ documents: {}
819
+ }), "newDoc"), pt = /* @__PURE__ */ p((t) => JSON.parse(JSON.stringify(t)), "clone"), H, Je = (H = class {
820
+ constructor(e) {
821
+ this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = Pt(), this.documents = { root: Bt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.funs = [], this.getAccTitle = ae, this.setAccTitle = ne, this.getAccDescription = oe, this.setAccDescription = le, this.setDiagramTitle = ce, this.getDiagramTitle = he, 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);
822
+ }
823
+ /**
824
+ * Convert all of the statements (stmts) that were parsed into states and relationships.
825
+ * This is done because a state diagram may have nested sections,
826
+ * where each section is a 'document' and has its own set of statements.
827
+ * Ex: the section within a fork has its own statements, and incoming and outgoing statements
828
+ * refer to the fork as a whole (document).
829
+ * See the parser grammar: the definition of a document is a document then a 'line', where a line can be a statement.
830
+ * This will push the statement into the list of statements for the current document.
831
+ */
832
+ extract(e) {
833
+ this.clear(!0);
834
+ for (const r of Array.isArray(e) ? e : e.doc)
835
+ switch (r.stmt) {
836
+ case Q:
837
+ this.addState(r.id.trim(), r.type, r.doc, r.description, r.note);
838
+ break;
839
+ case At:
840
+ this.addRelation(r.state1, r.state2, r.description);
841
+ break;
842
+ case ye:
843
+ this.addStyleClass(r.id.trim(), r.classes);
844
+ break;
845
+ case ge:
846
+ this.handleStyleDef(r);
847
+ break;
848
+ case Te:
849
+ this.setCssClass(r.id.trim(), r.styleClass);
850
+ break;
851
+ case "click":
852
+ this.addLink(r.id, r.url, r.tooltip);
853
+ break;
854
+ }
855
+ const s = this.getStates(), n = $();
856
+ Be(), et(
857
+ void 0,
858
+ this.getRootDocV2(),
859
+ s,
860
+ this.nodes,
861
+ this.edges,
862
+ !0,
863
+ n.look,
864
+ this.classes
865
+ );
866
+ for (const r of this.nodes)
867
+ if (Array.isArray(r.label)) {
868
+ if (r.description = r.label.slice(1), r.isGroup && r.description.length > 0)
869
+ throw new Error(
870
+ `Group nodes can only have label. Remove the additional description for node [${r.id}]`
871
+ );
872
+ r.label = r.label[0];
873
+ }
874
+ }
875
+ handleStyleDef(e) {
876
+ const s = e.id.trim().split(","), n = e.styleClass.split(",");
877
+ for (const r of s) {
878
+ let c = this.getState(r);
879
+ if (!c) {
880
+ const d = r.trim();
881
+ this.addState(d), c = this.getState(d);
882
+ }
883
+ c && (c.styles = n.map((d) => d.replace(/;/g, "")?.trim()));
884
+ }
885
+ }
886
+ setRootDoc(e) {
887
+ b.info("Setting root doc", e), this.rootDoc = e, this.version === 1 ? this.extract(e) : this.extract(this.getRootDocV2());
888
+ }
889
+ docTranslator(e, s, n) {
890
+ if (s.stmt === At) {
891
+ this.docTranslator(e, s.state1, !0), this.docTranslator(e, s.state2, !1);
892
+ return;
893
+ }
894
+ if (s.stmt === Q && (s.id === v.START_NODE ? (s.id = e.id + (n ? "_start" : "_end"), s.start = n) : s.id = s.id.trim()), s.stmt !== q && s.stmt !== Q || !s.doc)
895
+ return;
896
+ const r = [];
897
+ let c = [];
898
+ for (const d of s.doc)
899
+ if (d.type === Gt) {
900
+ const S = pt(d);
901
+ S.doc = pt(c), r.push(S), c = [];
902
+ } else
903
+ c.push(d);
904
+ if (r.length > 0 && c.length > 0) {
905
+ const d = {
906
+ stmt: Q,
907
+ id: ue(),
908
+ type: "divider",
909
+ doc: pt(c)
910
+ };
911
+ r.push(pt(d)), s.doc = r;
912
+ }
913
+ s.doc.forEach((d) => this.docTranslator(s, d, !0));
914
+ }
915
+ getRootDocV2() {
916
+ return this.docTranslator(
917
+ { id: q, stmt: q },
918
+ { id: q, stmt: q, doc: this.rootDoc },
919
+ !0
920
+ ), { id: q, doc: this.rootDoc };
921
+ }
922
+ /**
923
+ * Function called by parser when a node definition has been found.
924
+ *
925
+ * @param descr - description for the state. Can be a string or a list or strings
926
+ * @param classes - class styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 class, convert it to an array of that 1 class.
927
+ * @param styles - styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 style, convert it to an array of that 1 style.
928
+ * @param textStyles - text styles to apply to this state. Can be a string (1 text test) or an array of text styles. If it's just 1 text style, convert it to an array of that 1 text style.
929
+ */
930
+ addState(e, s = st, n = void 0, r = void 0, c = void 0, d = void 0, S = void 0, f = void 0) {
931
+ const T = e?.trim();
932
+ if (!this.currentDocument.states.has(T))
933
+ b.info("Adding state ", T, r), this.currentDocument.states.set(T, {
934
+ stmt: Q,
935
+ id: T,
936
+ descriptions: [],
937
+ type: s,
938
+ doc: n,
939
+ note: c,
940
+ classes: [],
941
+ styles: [],
942
+ textStyles: []
943
+ });
944
+ else {
945
+ const E = this.currentDocument.states.get(T);
946
+ if (!E)
947
+ throw new Error(`State not found: ${T}`);
948
+ E.doc || (E.doc = n), E.type || (E.type = s);
949
+ }
950
+ if (r && (b.info("Setting state description", T, r), (Array.isArray(r) ? r : [r]).forEach((_) => this.addDescription(T, _.trim()))), c) {
951
+ const E = this.currentDocument.states.get(T);
952
+ if (!E)
953
+ throw new Error(`State not found: ${T}`);
954
+ E.note = c, E.note.text = j.sanitizeText(E.note.text, $());
955
+ }
956
+ d && (b.info("Setting state classes", T, d), (Array.isArray(d) ? d : [d]).forEach((_) => this.setCssClass(T, _.trim()))), S && (b.info("Setting state styles", T, S), (Array.isArray(S) ? S : [S]).forEach((_) => this.setStyle(T, _.trim()))), f && (b.info("Setting state styles", T, S), (Array.isArray(f) ? f : [f]).forEach((_) => this.setTextStyle(T, _.trim())));
957
+ }
958
+ clear(e) {
959
+ this.nodes = [], this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.documents = { root: Bt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = Pt(), e || (this.links = /* @__PURE__ */ new Map(), de());
960
+ }
961
+ getState(e) {
962
+ return this.currentDocument.states.get(e);
963
+ }
964
+ getStates() {
965
+ return this.currentDocument.states;
966
+ }
967
+ logDocuments() {
968
+ b.info("Documents = ", this.documents);
969
+ }
970
+ getRelations() {
971
+ return this.currentDocument.relations;
972
+ }
973
+ /**
974
+ * Adds a clickable link to a state.
975
+ */
976
+ addLink(e, s, n) {
977
+ this.links.set(e, { url: s, tooltip: n }), b.warn("Adding link", e, s, n);
978
+ }
979
+ /**
980
+ * Get all registered links.
981
+ */
982
+ getLinks() {
983
+ return this.links;
984
+ }
985
+ /**
986
+ * If the id is a start node ( [*] ), then return a new id constructed from
987
+ * the start node name and the current start node count.
988
+ * else return the given id
989
+ */
990
+ startIdIfNeeded(e = "") {
991
+ return e === v.START_NODE ? (this.startEndCount++, `${v.START_TYPE}${this.startEndCount}`) : e;
992
+ }
993
+ /**
994
+ * If the id is a start node ( [*] ), then return the start type ('start')
995
+ * else return the given type
996
+ */
997
+ startTypeIfNeeded(e = "", s = st) {
998
+ return e === v.START_NODE ? v.START_TYPE : s;
999
+ }
1000
+ /**
1001
+ * If the id is an end node ( [*] ), then return a new id constructed from
1002
+ * the end node name and the current start_end node count.
1003
+ * else return the given id
1004
+ */
1005
+ endIdIfNeeded(e = "") {
1006
+ return e === v.END_NODE ? (this.startEndCount++, `${v.END_TYPE}${this.startEndCount}`) : e;
1007
+ }
1008
+ /**
1009
+ * If the id is an end node ( [*] ), then return the end type
1010
+ * else return the given type
1011
+ *
1012
+ */
1013
+ endTypeIfNeeded(e = "", s = st) {
1014
+ return e === v.END_NODE ? v.END_TYPE : s;
1015
+ }
1016
+ addRelationObjs(e, s, n = "") {
1017
+ const r = this.startIdIfNeeded(e.id.trim()), c = this.startTypeIfNeeded(e.id.trim(), e.type), d = this.startIdIfNeeded(s.id.trim()), S = this.startTypeIfNeeded(s.id.trim(), s.type);
1018
+ this.addState(
1019
+ r,
1020
+ c,
1021
+ e.doc,
1022
+ e.description,
1023
+ e.note,
1024
+ e.classes,
1025
+ e.styles,
1026
+ e.textStyles
1027
+ ), this.addState(
1028
+ d,
1029
+ S,
1030
+ s.doc,
1031
+ s.description,
1032
+ s.note,
1033
+ s.classes,
1034
+ s.styles,
1035
+ s.textStyles
1036
+ ), this.currentDocument.relations.push({
1037
+ id1: r,
1038
+ id2: d,
1039
+ relationTitle: j.sanitizeText(n, $())
1040
+ });
1041
+ }
1042
+ /**
1043
+ * Add a relation between two items. The items may be full objects or just the string id of a state.
1044
+ */
1045
+ addRelation(e, s, n) {
1046
+ if (typeof e == "object" && typeof s == "object")
1047
+ this.addRelationObjs(e, s, n);
1048
+ else if (typeof e == "string" && typeof s == "string") {
1049
+ const r = this.startIdIfNeeded(e.trim()), c = this.startTypeIfNeeded(e), d = this.endIdIfNeeded(s.trim()), S = this.endTypeIfNeeded(s);
1050
+ this.addState(r, c), this.addState(d, S), this.currentDocument.relations.push({
1051
+ id1: r,
1052
+ id2: d,
1053
+ relationTitle: n ? j.sanitizeText(n, $()) : void 0
1054
+ });
1055
+ }
1056
+ }
1057
+ addDescription(e, s) {
1058
+ const n = this.currentDocument.states.get(e), r = s.startsWith(":") ? s.replace(":", "").trim() : s;
1059
+ n?.descriptions?.push(j.sanitizeText(r, $()));
1060
+ }
1061
+ cleanupLabel(e) {
1062
+ return e.startsWith(":") ? e.slice(2).trim() : e.trim();
1063
+ }
1064
+ getDividerId() {
1065
+ return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
1066
+ }
1067
+ /**
1068
+ * Called when the parser comes across a (style) class definition
1069
+ * @example classDef my-style fill:#f96;
1070
+ *
1071
+ * @param id - the id of this (style) class
1072
+ * @param styleAttributes - the string with 1 or more style attributes (each separated by a comma)
1073
+ */
1074
+ addStyleClass(e, s = "") {
1075
+ this.classes.has(e) || this.classes.set(e, { id: e, styles: [], textStyles: [] });
1076
+ const n = this.classes.get(e);
1077
+ s && n && s.split(v.STYLECLASS_SEP).forEach((r) => {
1078
+ const c = r.replace(/([^;]*);/, "$1").trim();
1079
+ if (RegExp(v.COLOR_KEYWORD).exec(r)) {
1080
+ const S = c.replace(v.FILL_KEYWORD, v.BG_FILL).replace(v.COLOR_KEYWORD, v.FILL_KEYWORD);
1081
+ n.textStyles.push(S);
1082
+ }
1083
+ n.styles.push(c);
1084
+ });
1085
+ }
1086
+ getClasses() {
1087
+ return this.classes;
1088
+ }
1089
+ setupToolTips(e) {
1090
+ const s = fe();
1091
+ kt(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover", (c) => {
1092
+ const d = kt(c.currentTarget), S = d.attr("title");
1093
+ if (S === null)
1094
+ return;
1095
+ const f = c.currentTarget?.getBoundingClientRect();
1096
+ s.transition().duration(200).style("opacity", ".9"), s.style("left", window.scrollX + f.left + (f.right - f.left) / 2 + "px").style("top", window.scrollY + f.bottom + "px"), s.html(pe.sanitize(S)), d.classed("hover", !0);
1097
+ }).on("mouseout", (c) => {
1098
+ s.transition().duration(500).style("opacity", 0), kt(c.currentTarget).classed("hover", !1);
1099
+ });
1100
+ }
1101
+ /**
1102
+ * Add a (style) class or css class to a state with the given id.
1103
+ * If the state isn't already in the list of known states, add it.
1104
+ * Might be called by parser when a style class or CSS class should be applied to a state
1105
+ *
1106
+ * @param itemIds - The id or a list of ids of the item(s) to apply the css class to
1107
+ * @param cssClassName - CSS class name
1108
+ */
1109
+ setCssClass(e, s) {
1110
+ e.split(",").forEach((n) => {
1111
+ let r = this.getState(n);
1112
+ if (!r) {
1113
+ const c = n.trim();
1114
+ this.addState(c), r = this.getState(c);
1115
+ }
1116
+ r?.classes?.push(s);
1117
+ });
1118
+ }
1119
+ /**
1120
+ * Add a style to a state with the given id.
1121
+ * @example style stateId fill:#f9f,stroke:#333,stroke-width:4px
1122
+ * where 'style' is the keyword
1123
+ * stateId is the id of a state
1124
+ * the rest of the string is the styleText (all of the attributes to be applied to the state)
1125
+ *
1126
+ * @param itemId - The id of item to apply the style to
1127
+ * @param styleText - the text of the attributes for the style
1128
+ */
1129
+ setStyle(e, s) {
1130
+ this.getState(e)?.styles?.push(s);
1131
+ }
1132
+ /**
1133
+ * Add a text style to a state with the given id
1134
+ *
1135
+ * @param itemId - The id of item to apply the css class to
1136
+ * @param cssClassName - CSS class name
1137
+ */
1138
+ setTextStyle(e, s) {
1139
+ this.getState(e)?.textStyles?.push(s);
1140
+ }
1141
+ bindFunctions(e) {
1142
+ this.funs.forEach((s) => {
1143
+ s(e);
1144
+ });
1145
+ }
1146
+ /**
1147
+ * Finds the direction statement in the root document.
1148
+ * @returns the direction statement if present
1149
+ */
1150
+ getDirectionStatement() {
1151
+ return this.rootDoc.find((e) => e.stmt === Nt);
1152
+ }
1153
+ getDirection() {
1154
+ return this.getDirectionStatement()?.value ?? Se;
1155
+ }
1156
+ setDirection(e) {
1157
+ const s = this.getDirectionStatement();
1158
+ s ? s.value = e : this.rootDoc.unshift({ stmt: Nt, value: e });
1159
+ }
1160
+ trimColon(e) {
1161
+ return e.startsWith(":") ? e.slice(1).trim() : e.trim();
1162
+ }
1163
+ getData() {
1164
+ const e = $();
1165
+ return {
1166
+ nodes: this.nodes,
1167
+ edges: this.edges,
1168
+ other: {},
1169
+ config: e,
1170
+ direction: Xt(this.getRootDocV2())
1171
+ };
1172
+ }
1173
+ getConfig() {
1174
+ return $().state;
1175
+ }
1176
+ }, p(H, "StateDB"), H.relationType = {
1177
+ AGGREGATION: 0,
1178
+ EXTENSION: 1,
1179
+ COMPOSITION: 2,
1180
+ DEPENDENCY: 3
1181
+ }, H), Ye = /* @__PURE__ */ p((t) => `
1182
+ defs [id$="-barbEnd"] {
1183
+ fill: ${t.transitionColor};
1184
+ stroke: ${t.transitionColor};
1185
+ }
1186
+ g.stateGroup text {
1187
+ fill: ${t.nodeBorder};
1188
+ stroke: none;
1189
+ font-size: 10px;
1190
+ }
1191
+ g.stateGroup text {
1192
+ fill: ${t.textColor};
1193
+ stroke: none;
1194
+ font-size: 10px;
1195
+
1196
+ }
1197
+ g.stateGroup .state-title {
1198
+ font-weight: bolder;
1199
+ fill: ${t.stateLabelColor};
1200
+ }
1201
+
1202
+ g.stateGroup rect {
1203
+ fill: ${t.mainBkg};
1204
+ stroke: ${t.nodeBorder};
1205
+ }
1206
+
1207
+ g.stateGroup line {
1208
+ stroke: ${t.lineColor};
1209
+ stroke-width: ${t.strokeWidth || 1};
1210
+ }
1211
+
1212
+ .transition {
1213
+ stroke: ${t.transitionColor};
1214
+ stroke-width: ${t.strokeWidth || 1};
1215
+ fill: none;
1216
+ }
1217
+
1218
+ .stateGroup .composit {
1219
+ fill: ${t.background};
1220
+ border-bottom: 1px
1221
+ }
1222
+
1223
+ .stateGroup .alt-composit {
1224
+ fill: #e0e0e0;
1225
+ border-bottom: 1px
1226
+ }
1227
+
1228
+ .state-note {
1229
+ stroke: ${t.noteBorderColor};
1230
+ fill: ${t.noteBkgColor};
1231
+
1232
+ text {
1233
+ fill: ${t.noteTextColor};
1234
+ stroke: none;
1235
+ font-size: 10px;
1236
+ }
1237
+ }
1238
+
1239
+ .stateLabel .box {
1240
+ stroke: none;
1241
+ stroke-width: 0;
1242
+ fill: ${t.mainBkg};
1243
+ opacity: 0.5;
1244
+ }
1245
+
1246
+ .edgeLabel .label rect {
1247
+ fill: ${t.labelBackgroundColor};
1248
+ opacity: 0.5;
1249
+ }
1250
+ .edgeLabel {
1251
+ background-color: ${t.edgeLabelBackground};
1252
+ p {
1253
+ background-color: ${t.edgeLabelBackground};
1254
+ }
1255
+ rect {
1256
+ opacity: 0.5;
1257
+ background-color: ${t.edgeLabelBackground};
1258
+ fill: ${t.edgeLabelBackground};
1259
+ }
1260
+ text-align: center;
1261
+ }
1262
+ .edgeLabel .label text {
1263
+ fill: ${t.transitionLabelColor || t.tertiaryTextColor};
1264
+ }
1265
+ .label div .edgeLabel {
1266
+ color: ${t.transitionLabelColor || t.tertiaryTextColor};
1267
+ }
1268
+
1269
+ .stateLabel text {
1270
+ fill: ${t.stateLabelColor};
1271
+ font-size: 10px;
1272
+ font-weight: bold;
1273
+ }
1274
+
1275
+ .node circle.state-start {
1276
+ fill: ${t.specialStateColor};
1277
+ stroke: ${t.specialStateColor};
1278
+ }
1279
+
1280
+ .node .fork-join {
1281
+ fill: ${t.specialStateColor};
1282
+ stroke: ${t.specialStateColor};
1283
+ }
1284
+
1285
+ .node circle.state-end {
1286
+ fill: ${t.innerEndBackground};
1287
+ stroke: ${t.background};
1288
+ stroke-width: 1.5
1289
+ }
1290
+ .end-state-inner {
1291
+ fill: ${t.compositeBackground || t.background};
1292
+ // stroke: ${t.background};
1293
+ stroke-width: 1.5
1294
+ }
1295
+
1296
+ .node rect {
1297
+ fill: ${t.stateBkg || t.mainBkg};
1298
+ stroke: ${t.stateBorder || t.nodeBorder};
1299
+ stroke-width: ${t.strokeWidth || 1}px;
1300
+ }
1301
+ .node polygon {
1302
+ fill: ${t.mainBkg};
1303
+ stroke: ${t.stateBorder || t.nodeBorder};;
1304
+ stroke-width: ${t.strokeWidth || 1}px;
1305
+ }
1306
+ [id$="-barbEnd"] {
1307
+ fill: ${t.lineColor};
1308
+ }
1309
+
1310
+ .statediagram-cluster rect {
1311
+ fill: ${t.compositeTitleBackground};
1312
+ stroke: ${t.stateBorder || t.nodeBorder};
1313
+ stroke-width: ${t.strokeWidth || 1}px;
1314
+ }
1315
+
1316
+ .cluster-label, .nodeLabel {
1317
+ color: ${t.stateLabelColor};
1318
+ // line-height: 1;
1319
+ }
1320
+
1321
+ .statediagram-cluster rect.outer {
1322
+ rx: 5px;
1323
+ ry: 5px;
1324
+ }
1325
+ .statediagram-state .divider {
1326
+ stroke: ${t.stateBorder || t.nodeBorder};
1327
+ }
1328
+
1329
+ .statediagram-state .title-state {
1330
+ rx: 5px;
1331
+ ry: 5px;
1332
+ }
1333
+ .statediagram-cluster.statediagram-cluster .inner {
1334
+ fill: ${t.compositeBackground || t.background};
1335
+ }
1336
+ .statediagram-cluster.statediagram-cluster-alt .inner {
1337
+ fill: ${t.altBackground ? t.altBackground : "#efefef"};
1338
+ }
1339
+
1340
+ .statediagram-cluster .inner {
1341
+ rx:0;
1342
+ ry:0;
1343
+ }
1344
+
1345
+ .statediagram-state rect.basic {
1346
+ rx: 5px;
1347
+ ry: 5px;
1348
+ }
1349
+ .statediagram-state rect.divider {
1350
+ stroke-dasharray: 10,10;
1351
+ fill: ${t.altBackground ? t.altBackground : "#efefef"};
1352
+ }
1353
+
1354
+ .note-edge {
1355
+ stroke-dasharray: 5;
1356
+ }
1357
+
1358
+ .statediagram-note rect {
1359
+ fill: ${t.noteBkgColor};
1360
+ stroke: ${t.noteBorderColor};
1361
+ stroke-width: 1px;
1362
+ rx: 0;
1363
+ ry: 0;
1364
+ }
1365
+ .statediagram-note rect {
1366
+ fill: ${t.noteBkgColor};
1367
+ stroke: ${t.noteBorderColor};
1368
+ stroke-width: 1px;
1369
+ rx: 0;
1370
+ ry: 0;
1371
+ }
1372
+
1373
+ .statediagram-note text {
1374
+ fill: ${t.noteTextColor};
1375
+ }
1376
+
1377
+ .statediagram-note .nodeLabel {
1378
+ color: ${t.noteTextColor};
1379
+ }
1380
+ .statediagram .edgeLabel {
1381
+ color: red; // ${t.noteTextColor};
1382
+ }
1383
+
1384
+ [id$="-dependencyStart"], [id$="-dependencyEnd"] {
1385
+ fill: ${t.lineColor};
1386
+ stroke: ${t.lineColor};
1387
+ stroke-width: ${t.strokeWidth || 1};
1388
+ }
1389
+
1390
+ .statediagramTitleText {
1391
+ text-anchor: middle;
1392
+ font-size: 18px;
1393
+ fill: ${t.textColor};
1394
+ }
1395
+
1396
+ [data-look="neo"].statediagram-cluster rect {
1397
+ fill: ${t.mainBkg};
1398
+ stroke: ${t.useGradient ? "url(" + t.svgId + "-gradient)" : t.stateBorder || t.nodeBorder};
1399
+ stroke-width: ${t.strokeWidth ?? 1};
1400
+ }
1401
+ [data-look="neo"].statediagram-cluster rect.outer {
1402
+ rx: ${t.radius}px;
1403
+ ry: ${t.radius}px;
1404
+ filter: ${t.dropShadow ? t.dropShadow.replace("url(#drop-shadow)", `url(${t.svgId}-drop-shadow)`) : "none"}
1405
+ }
1406
+ `, "getStyles"), qe = Ye;
1407
+ export {
1408
+ Je as S,
1409
+ Ke as a,
1410
+ Xe as b,
1411
+ qe as s
1412
+ };