@pb33f/cowboy-components 0.13.0 → 0.14.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 (224) hide show
  1. package/dist/{_baseUniq-D4w9OEfi.cjs → _baseUniq-BCBHARBa.cjs} +1 -1
  2. package/dist/{_baseUniq-CwhnPBuZ.js → _baseUniq-DxKTOiyd.js} +74 -74
  3. package/dist/arc-BuSUjh0s.js +84 -0
  4. package/dist/arc-CH-0H1TF.cjs +1 -0
  5. package/dist/{architecture-YZFGNWBL-BSnkfFiL.cjs → architecture-YZFGNWBL-BPn_727R.cjs} +1 -1
  6. package/dist/{architecture-YZFGNWBL-Cv-BGlq1.js → architecture-YZFGNWBL-BTpBH05L.js} +1 -1
  7. package/dist/{architectureDiagram-Q4EWVU46-Bi5_oLbN.js → architectureDiagram-Q4EWVU46-CYewkKfJ.js} +4 -4
  8. package/dist/{architectureDiagram-Q4EWVU46-7qN01149.cjs → architectureDiagram-Q4EWVU46-DiD3e6PQ.cjs} +1 -1
  9. package/dist/blockDiagram-DXYQGD6D-B1FzGfTA.cjs +132 -0
  10. package/dist/{blockDiagram-DXYQGD6D-DPZDIH8c.js → blockDiagram-DXYQGD6D-C1Xzgnrv.js} +18 -17
  11. package/dist/{c4Diagram-AHTNJAMY-CzTGAiLN.js → c4Diagram-AHTNJAMY-L6Az2dvx.js} +2 -2
  12. package/dist/{c4Diagram-AHTNJAMY-vYFfYNT2.cjs → c4Diagram-AHTNJAMY-c5bsYT5q.cjs} +1 -1
  13. package/dist/change-list-item-4xBSo3-U.cjs +4586 -0
  14. package/dist/change-list-item-Bu_mPv-k.js +19108 -0
  15. package/dist/{channel-xkWi7eyU.cjs → channel-BR_Krb9l.cjs} +1 -1
  16. package/dist/channel-Bo_TnECw.js +5 -0
  17. package/dist/{chunk-4BX2VUAB-D5fkGnKT.cjs → chunk-4BX2VUAB-B1uaSl0e.cjs} +1 -1
  18. package/dist/{chunk-4BX2VUAB-Crsil6rQ.js → chunk-4BX2VUAB-ClX8oE7L.js} +1 -1
  19. package/dist/{chunk-4TB4RGXK-BK_Zwn1u.cjs → chunk-4TB4RGXK-D0JpJZOs.cjs} +1 -1
  20. package/dist/{chunk-4TB4RGXK-CqgUAjqs.js → chunk-4TB4RGXK-DzEEAztK.js} +5 -5
  21. package/dist/{chunk-55IACEB6-CVOd63y7.cjs → chunk-55IACEB6-595ZDi6s.cjs} +1 -1
  22. package/dist/{chunk-55IACEB6-BHM-gGnN.js → chunk-55IACEB6-DL_DHCyZ.js} +1 -1
  23. package/dist/{chunk-EDXVE4YY-XhKW7gue.js → chunk-EDXVE4YY-BII9TpbV.js} +1 -1
  24. package/dist/{chunk-EDXVE4YY-Cg8LIvnn.cjs → chunk-EDXVE4YY-CQbtNtXr.cjs} +1 -1
  25. package/dist/{chunk-FMBD7UC4-ClqO-tFT.cjs → chunk-FMBD7UC4-BO92YnlB.cjs} +1 -1
  26. package/dist/{chunk-FMBD7UC4-DZgUWYcc.js → chunk-FMBD7UC4-cN7XywSK.js} +1 -1
  27. package/dist/{chunk-OYMX7WX6-DPeZUR-5.cjs → chunk-OYMX7WX6-BxqhsynN.cjs} +1 -1
  28. package/dist/{chunk-OYMX7WX6-DDhPRCvb.js → chunk-OYMX7WX6-DTXPUCgU.js} +35 -35
  29. package/dist/{chunk-QZHKN3VN-CEfUDcqe.js → chunk-QZHKN3VN-Biauj3yN.js} +1 -1
  30. package/dist/{chunk-QZHKN3VN-DfLK5brs.cjs → chunk-QZHKN3VN-C-mnteH7.cjs} +1 -1
  31. package/dist/{chunk-YZCP3GAM-CUdZyEqp.cjs → chunk-YZCP3GAM-WiD5REgL.cjs} +1 -1
  32. package/dist/{chunk-YZCP3GAM-BseNjeX_.js → chunk-YZCP3GAM-eo-UEr6G.js} +1 -1
  33. package/dist/{classDiagram-v2-HSJHXN6E-DY4pBvUq.js → classDiagram-6PBFFD2Q-8kzuzUL4.js} +2 -2
  34. package/dist/{classDiagram-6PBFFD2Q-DANanUVD.cjs → classDiagram-6PBFFD2Q-ay2Efc0y.cjs} +1 -1
  35. package/dist/{classDiagram-6PBFFD2Q-DY4pBvUq.js → classDiagram-v2-HSJHXN6E-8kzuzUL4.js} +2 -2
  36. package/dist/{classDiagram-v2-HSJHXN6E-DANanUVD.cjs → classDiagram-v2-HSJHXN6E-ay2Efc0y.cjs} +1 -1
  37. package/dist/{clone-Dd6Qonyi.js → clone-CC2YvoOD.js} +1 -1
  38. package/dist/clone-DAIpdsWe.cjs +1 -0
  39. package/dist/components/diff-viewer/diff-viewer.d.ts +3 -0
  40. package/dist/components/diff-viewer/diff-viewer.js +34 -37
  41. package/dist/components/diff-viewer/line-renderer.d.ts +15 -0
  42. package/dist/components/diff-viewer/line-renderer.js +49 -0
  43. package/dist/components/footer/footer.d.ts +3 -0
  44. package/dist/components/footer/footer.js +10 -4
  45. package/dist/components/logo-wall/logos/apache.svg.d.ts +2 -0
  46. package/dist/components/logo-wall/logos/apache.svg.js +100 -0
  47. package/dist/components/logo-wall/logos/apideck.svg.d.ts +2 -0
  48. package/dist/components/logo-wall/logos/apideck.svg.js +14 -0
  49. package/dist/components/logo-wall/logos/apigee.svg.d.ts +2 -0
  50. package/dist/components/logo-wall/logos/apigee.svg.js +16 -0
  51. package/dist/components/logo-wall/logos/bump.svg.d.ts +2 -0
  52. package/dist/components/logo-wall/logos/bump.svg.js +14 -0
  53. package/dist/components/logo-wall/logos/bytebase.svg.d.ts +2 -0
  54. package/dist/components/logo-wall/logos/bytebase.svg.js +11 -0
  55. package/dist/components/logo-wall/logos/chainlink.svg.d.ts +2 -0
  56. package/dist/components/logo-wall/logos/chainlink.svg.js +18 -0
  57. package/dist/components/logo-wall/logos/cisco.svg.d.ts +2 -0
  58. package/dist/components/logo-wall/logos/cisco.svg.js +14 -0
  59. package/dist/components/logo-wall/logos/elastic.svg.d.ts +2 -0
  60. package/dist/components/logo-wall/logos/elastic.svg.js +14 -0
  61. package/dist/components/logo-wall/logos/google.svg.d.ts +2 -0
  62. package/dist/components/logo-wall/logos/google.svg.js +12 -0
  63. package/dist/components/logo-wall/logos/grafana.svg.d.ts +2 -0
  64. package/dist/components/logo-wall/logos/grafana.svg.js +14 -0
  65. package/dist/components/logo-wall/logos/hashicorp.svg.d.ts +2 -0
  66. package/dist/components/logo-wall/logos/hashicorp.svg.js +18 -0
  67. package/dist/components/logo-wall/logos/hasura.svg.d.ts +2 -0
  68. package/dist/components/logo-wall/logos/hasura.svg.js +14 -0
  69. package/dist/components/logo-wall/logos/jpmorgan.svg.d.ts +2 -0
  70. package/dist/components/logo-wall/logos/jpmorgan.svg.js +22 -0
  71. package/dist/components/logo-wall/logos/kong.svg.d.ts +2 -0
  72. package/dist/components/logo-wall/logos/kong.svg.js +13 -0
  73. package/dist/components/logo-wall/logos/mongodb.svg.d.ts +2 -0
  74. package/dist/components/logo-wall/logos/mongodb.svg.js +17 -0
  75. package/dist/components/logo-wall/logos/nhost.svg.d.ts +2 -0
  76. package/dist/components/logo-wall/logos/nhost.svg.js +9 -0
  77. package/dist/components/logo-wall/logos/okta.svg.d.ts +2 -0
  78. package/dist/components/logo-wall/logos/okta.svg.js +8 -0
  79. package/dist/components/logo-wall/logos/opentelemetry.svg.d.ts +2 -0
  80. package/dist/components/logo-wall/logos/opentelemetry.svg.js +8 -0
  81. package/dist/components/logo-wall/logos/prometheus.svg.d.ts +2 -0
  82. package/dist/components/logo-wall/logos/prometheus.svg.js +8 -0
  83. package/dist/components/logo-wall/logos/pulumi.svg.d.ts +2 -0
  84. package/dist/components/logo-wall/logos/pulumi.svg.js +10 -0
  85. package/dist/components/logo-wall/logos/redhat.svg.d.ts +2 -0
  86. package/dist/components/logo-wall/logos/redhat.svg.js +8 -0
  87. package/dist/components/logo-wall/logos/scalar.svg.d.ts +2 -0
  88. package/dist/components/logo-wall/logos/scalar.svg.js +19 -0
  89. package/dist/components/logo-wall/logos/splunk.svg.d.ts +2 -0
  90. package/dist/components/logo-wall/logos/splunk.svg.js +8 -0
  91. package/dist/components/logo-wall/logos/unkey.svg.d.ts +2 -0
  92. package/dist/components/logo-wall/logos/unkey.svg.js +15 -0
  93. package/dist/components/logo-wall/logowall.d.ts +2 -24
  94. package/dist/components/logo-wall/logowall.js +58 -373
  95. package/dist/components/model-tree/tree.js +1 -2
  96. package/dist/components/premium-gate/premium-gate.css.js +18 -1
  97. package/dist/components/premium-gate/premium-gate.js +2 -2
  98. package/dist/components/problem-list/problem-item.js +3 -2
  99. package/dist/components/problem-list/problem-list.d.ts +2 -0
  100. package/dist/components/problem-list/problem-list.js +26 -7
  101. package/dist/components/problems-overview/problem-overview-group.js +2 -1
  102. package/dist/components/visualizer/edge.d.ts +6 -2
  103. package/dist/components/visualizer/edge.js +26 -4
  104. package/dist/components/visualizer/equalizer.css.js +11 -2
  105. package/dist/components/visualizer/explorer.d.ts +3 -1
  106. package/dist/components/visualizer/explorer.js +51 -59
  107. package/dist/components/visualizer/nodes/change-view-node.d.ts +2 -2
  108. package/dist/components/visualizer/nodes/change-view-node.js +10 -6
  109. package/dist/components/visualizer/nodes/graph-node.d.ts +12 -8
  110. package/dist/components/visualizer/nodes/graph-node.js +47 -25
  111. package/dist/components/visualizer/nodes/schema.d.ts +7 -0
  112. package/dist/components/visualizer/nodes/schema.js +81 -59
  113. package/dist/components/visualizer/shared.css.js +48 -10
  114. package/dist/components/visualizer/viewport-position.d.ts +28 -0
  115. package/dist/components/visualizer/viewport-position.js +38 -0
  116. package/dist/components/workspaces/workspace-view.js +10 -7
  117. package/dist/components/yaml-viewer/yaml-viewer.css.d.ts +2 -0
  118. package/dist/components/yaml-viewer/yaml-viewer.css.js +45 -0
  119. package/dist/components/yaml-viewer/yaml-viewer.d.ts +22 -0
  120. package/dist/components/yaml-viewer/yaml-viewer.js +86 -0
  121. package/dist/controllers/problem-controller.d.ts +1 -0
  122. package/dist/controllers/problem-controller.js +40 -24
  123. package/dist/{cose-bilkent-S5V4N54A-CPd0mzpZ.js → cose-bilkent-S5V4N54A-BvU_SKfP.js} +2 -2
  124. package/dist/{cose-bilkent-S5V4N54A-BEI30FIt.cjs → cose-bilkent-S5V4N54A-CjLPT2aq.cjs} +1 -1
  125. package/dist/{cowboy-components-C1bHeXpH.js → cowboy-components-B5MDHQs5.js} +8691 -8836
  126. package/dist/{cowboy-components-BDlH5KPd.cjs → cowboy-components-DMQv-nwp.cjs} +561 -489
  127. package/dist/{dagre-KV5264BT-lXj1bQdQ.cjs → dagre-KV5264BT-BJ3g2OfF.cjs} +1 -1
  128. package/dist/{dagre-KV5264BT-DKYFh03U.js → dagre-KV5264BT-CZZ7IWMJ.js} +29 -29
  129. package/dist/{diagram-5BDNPKRD-B5z67jan.js → diagram-5BDNPKRD-BtgWDNH6.js} +4 -4
  130. package/dist/{diagram-5BDNPKRD-BxdT4j_p.cjs → diagram-5BDNPKRD-C8f_rKrj.cjs} +1 -1
  131. package/dist/{diagram-G4DWMVQ6-CYhKfvVo.cjs → diagram-G4DWMVQ6-CdbbbjZ1.cjs} +1 -1
  132. package/dist/{diagram-G4DWMVQ6-CW505eM5.js → diagram-G4DWMVQ6-Cvo7MOEn.js} +4 -4
  133. package/dist/{diagram-MMDJMWI5-CguvhYVm.js → diagram-MMDJMWI5-BBZMNBAZ.js} +3 -3
  134. package/dist/{diagram-MMDJMWI5-CnbCy2d4.cjs → diagram-MMDJMWI5-CmuOqtUd.cjs} +1 -1
  135. package/dist/{diagram-TYMM5635-CTqk1SDy.cjs → diagram-TYMM5635-BDWJ5rTp.cjs} +1 -1
  136. package/dist/{diagram-TYMM5635-DNaputK9.js → diagram-TYMM5635-BJ6YAfrg.js} +3 -3
  137. package/dist/{erDiagram-SMLLAGMA-CbVmsYT2.js → erDiagram-SMLLAGMA-CYctRkDG.js} +4 -4
  138. package/dist/{erDiagram-SMLLAGMA-C8J_QyFx.cjs → erDiagram-SMLLAGMA-oQiAbd77.cjs} +1 -1
  139. package/dist/events/doctor.d.ts +2 -1
  140. package/dist/factories/explorer-component-factory.d.ts +2 -1
  141. package/dist/factories/explorer-component-factory.js +1 -0
  142. package/dist/{flowDiagram-DWJPFMVM-CilWme2B.cjs → flowDiagram-DWJPFMVM-Cl2ZAgx-.cjs} +1 -1
  143. package/dist/{flowDiagram-DWJPFMVM-CzhP7Mva.js → flowDiagram-DWJPFMVM-XzVvDcKE.js} +6 -6
  144. package/dist/{ganttDiagram-T4ZO3ILL-D1VjNn5T.js → ganttDiagram-T4ZO3ILL-Bw3whz8Z.js} +3 -3
  145. package/dist/{ganttDiagram-T4ZO3ILL-CJPTfw3M.cjs → ganttDiagram-T4ZO3ILL-D6p69Xut.cjs} +1 -1
  146. package/dist/{gitGraph-7Q5UKJZL-KIImqmsm.js → gitGraph-7Q5UKJZL-CV8uXlc6.js} +1 -1
  147. package/dist/{gitGraph-7Q5UKJZL-Dt7RPGLj.cjs → gitGraph-7Q5UKJZL-Dc00T47S.cjs} +1 -1
  148. package/dist/{gitGraphDiagram-UUTBAWPF-RgZxgljz.cjs → gitGraphDiagram-UUTBAWPF-DO7-Vg9n.cjs} +1 -1
  149. package/dist/{gitGraphDiagram-UUTBAWPF-oNmbFzsW.js → gitGraphDiagram-UUTBAWPF-DyF52xzw.js} +4 -4
  150. package/dist/{graph-CFIa3BqY.js → graph-BNtv6wPN.js} +43 -43
  151. package/dist/{graph-D7t_ZgqQ.cjs → graph-nnOjqfSF.cjs} +1 -1
  152. package/dist/info-OMHHGYJF-BEJOj8rC.js +5 -0
  153. package/dist/{info-OMHHGYJF-DNwPREtC.cjs → info-OMHHGYJF-DenwEztT.cjs} +1 -1
  154. package/dist/{infoDiagram-42DDH7IO-xpnPsX13.cjs → infoDiagram-42DDH7IO-CDwaPJgE.cjs} +1 -1
  155. package/dist/{infoDiagram-42DDH7IO-D6tfy_kQ.js → infoDiagram-42DDH7IO-D5ZWT_PY.js} +2 -2
  156. package/dist/{ishikawaDiagram-UXIWVN3A-1C3ML4wN.js → ishikawaDiagram-UXIWVN3A-DO1TQj8y.js} +1 -1
  157. package/dist/{ishikawaDiagram-UXIWVN3A-cN7Egzi1.cjs → ishikawaDiagram-UXIWVN3A-DgxKja6G.cjs} +1 -1
  158. package/dist/{journeyDiagram-VCZTEJTY-BBnQnZeo.js → journeyDiagram-VCZTEJTY-BOrvmHFC.js} +4 -4
  159. package/dist/{journeyDiagram-VCZTEJTY-CuHlve7g.cjs → journeyDiagram-VCZTEJTY-CJCEu2Bp.cjs} +1 -1
  160. package/dist/{kanban-definition-6JOO6SKY-w_-A-pcU.cjs → kanban-definition-6JOO6SKY-DEuqG8My.cjs} +1 -1
  161. package/dist/{kanban-definition-6JOO6SKY-CIUOm1v3.js → kanban-definition-6JOO6SKY-DbcLaE1y.js} +22 -22
  162. package/dist/{layout-DkbTnSOk.cjs → layout-C5IxZs51.cjs} +1 -1
  163. package/dist/{layout-B94Gbndw.js → layout-US8yryxu.js} +89 -89
  164. package/dist/linear-Bmlq6WJ8.cjs +1 -0
  165. package/dist/{linear-ofqYQwLM.js → linear-D6nUCk2i.js} +26 -26
  166. package/dist/{mermaid-parser.core-D5yJiPW9.cjs → mermaid-parser.core-COvBhcPG.cjs} +2 -2
  167. package/dist/{mermaid-parser.core-SWTLxzuR.js → mermaid-parser.core-DvOBQD0s.js} +13 -13
  168. package/dist/{min-CCJ14kSC.cjs → min-BeG6JEx2.cjs} +1 -1
  169. package/dist/{min-BVt52F4Z.js → min-gCZaz5eW.js} +8 -8
  170. package/dist/{mindmap-definition-QFDTVHPH-BBABzpZ_.js → mindmap-definition-QFDTVHPH-Bf7uOPBO.js} +11 -11
  171. package/dist/{mindmap-definition-QFDTVHPH-DkHlEc6j.cjs → mindmap-definition-QFDTVHPH-Bh_mtad8.cjs} +1 -1
  172. package/dist/{packet-4T2RLAQJ-C_GHj8I6.js → packet-4T2RLAQJ-CnjxgpUP.js} +1 -1
  173. package/dist/{packet-4T2RLAQJ-D-3BTAOL.cjs → packet-4T2RLAQJ-EX3JjNtR.cjs} +1 -1
  174. package/dist/pie-ZZUOXDRM-B0-esN8S.js +5 -0
  175. package/dist/{pie-ZZUOXDRM-CCr4-X6f.cjs → pie-ZZUOXDRM-S9g0lXgu.cjs} +1 -1
  176. package/dist/pieDiagram-DEJITSTG-An0q-g5y.cjs +30 -0
  177. package/dist/{pieDiagram-DEJITSTG-oeQHkFGB.js → pieDiagram-DEJITSTG-DIkSdQCd.js} +43 -42
  178. package/dist/{quadrantDiagram-34T5L4WZ-CHmpNV-R.cjs → quadrantDiagram-34T5L4WZ-B5f35ihC.cjs} +1 -1
  179. package/dist/{quadrantDiagram-34T5L4WZ-OYjSZG43.js → quadrantDiagram-34T5L4WZ-CBlxIaIn.js} +2 -2
  180. package/dist/radar-PYXPWWZC-1Ezs-b76.js +5 -0
  181. package/dist/{radar-PYXPWWZC-C1rOl50T.cjs → radar-PYXPWWZC-C0zC2ZSo.cjs} +1 -1
  182. package/dist/{requirementDiagram-MS252O5E-CD_xeIto.cjs → requirementDiagram-MS252O5E-C2bJ8iZf.cjs} +1 -1
  183. package/dist/{requirementDiagram-MS252O5E-CwRW6-r7.js → requirementDiagram-MS252O5E-CLQv0oWl.js} +3 -3
  184. package/dist/{sankeyDiagram-XADWPNL6-RMkMjKAW.cjs → sankeyDiagram-XADWPNL6--gS8yJdi.cjs} +1 -1
  185. package/dist/{sankeyDiagram-XADWPNL6-CQfVCItY.js → sankeyDiagram-XADWPNL6-BPSHvjZ8.js} +1 -1
  186. package/dist/{sequenceDiagram-FGHM5R23-Bg1onFX3.cjs → sequenceDiagram-FGHM5R23-C8D7r5pW.cjs} +1 -1
  187. package/dist/{sequenceDiagram-FGHM5R23-CHy2erSS.js → sequenceDiagram-FGHM5R23-Pz7V2MNd.js} +3 -3
  188. package/dist/services/workspace-service.js +3 -3
  189. package/dist/stateDiagram-FHFEXIEX-BAF5DJ1S.cjs +1 -0
  190. package/dist/{stateDiagram-FHFEXIEX-CMl5lVVr.js → stateDiagram-FHFEXIEX-D5m6EHM0.js} +44 -43
  191. package/dist/{stateDiagram-v2-QKLJ7IA2-Ddx6MvoK.js → stateDiagram-v2-QKLJ7IA2-Bewn3XVh.js} +2 -2
  192. package/dist/{stateDiagram-v2-QKLJ7IA2-k0ixVO2x.cjs → stateDiagram-v2-QKLJ7IA2-D8ygFuIi.cjs} +1 -1
  193. package/dist/{timeline-definition-GMOUNBTQ-tsduD7s8.cjs → timeline-definition-GMOUNBTQ-DGnNWVK8.cjs} +1 -1
  194. package/dist/{timeline-definition-GMOUNBTQ-wGoPQPZW.js → timeline-definition-GMOUNBTQ-D_q_Aq0R.js} +23 -23
  195. package/dist/{treeView-SZITEDCU-DLnrlNgm.js → treeView-SZITEDCU-CJ-dtg22.js} +1 -1
  196. package/dist/{treeView-SZITEDCU-0cNlhBgJ.cjs → treeView-SZITEDCU-D_h6_ShC.cjs} +1 -1
  197. package/dist/{treemap-W4RFUUIX-BhmjFGQ3.js → treemap-W4RFUUIX-B9GQw9aZ.js} +1 -1
  198. package/dist/{treemap-W4RFUUIX-CKAFw4rq.cjs → treemap-W4RFUUIX-BtKxSF22.cjs} +1 -1
  199. package/dist/{vennDiagram-DHZGUBPP-D0_k6R1t.js → vennDiagram-DHZGUBPP-JEim8wmH.js} +59 -59
  200. package/dist/{vennDiagram-DHZGUBPP-cIbatSRt.cjs → vennDiagram-DHZGUBPP-amyk4YMx.cjs} +1 -1
  201. package/dist/{wardley-RL74JXVD-E_57jQp4.cjs → wardley-RL74JXVD-Cni1Bfk_.cjs} +1 -1
  202. package/dist/{wardley-RL74JXVD-ClNl5KuH.js → wardley-RL74JXVD-sMbm0y_r.js} +1 -1
  203. package/dist/{wardleyDiagram-NUSXRM2D-DrU9h_lF.cjs → wardleyDiagram-NUSXRM2D-BxrRpNG2.cjs} +1 -1
  204. package/dist/{wardleyDiagram-NUSXRM2D-CdC2HbGc.js → wardleyDiagram-NUSXRM2D-C2MLJ-IT.js} +3 -3
  205. package/dist/workers/elk-fake-worker.generated.d.ts +3 -0
  206. package/dist/workers/elk-fake-worker.generated.js +50224 -0
  207. package/dist/workers/elk-layout-blob.generated.js +16 -18
  208. package/dist/workers/elk-layout.worker.js +5 -2
  209. package/dist/{xychartDiagram-5P7HB3ND-y-_Hnheq.js → xychartDiagram-5P7HB3ND-CSCEAZnj.js} +8 -7
  210. package/dist/{xychartDiagram-5P7HB3ND-BsPkSpoT.cjs → xychartDiagram-5P7HB3ND-CpDJRyka.cjs} +4 -4
  211. package/package.json +11 -2
  212. package/dist/arc-C1ekKGkb.js +0 -83
  213. package/dist/arc-R701-DfQ.cjs +0 -1
  214. package/dist/blockDiagram-DXYQGD6D-C72mCfQb.cjs +0 -132
  215. package/dist/change-list-item-BEl0JMXU.js +0 -18744
  216. package/dist/change-list-item-BQAfTtYI.cjs +0 -4535
  217. package/dist/channel-Bcdtr5hc.js +0 -5
  218. package/dist/clone-xz9tAnT8.cjs +0 -1
  219. package/dist/info-OMHHGYJF-CoCJYW0-.js +0 -5
  220. package/dist/linear-C0WOPIXr.cjs +0 -1
  221. package/dist/pie-ZZUOXDRM-BZwBUxgW.js +0 -5
  222. package/dist/pieDiagram-DEJITSTG-DpV5UNcT.cjs +0 -30
  223. package/dist/radar-PYXPWWZC-CeYN6kDE.js +0 -5
  224. package/dist/stateDiagram-FHFEXIEX-CYMON_a_.cjs +0 -1
@@ -1,132 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $t=require("./chunk-FMBD7UC4-ClqO-tFT.cjs"),i=require("./cowboy-components-BDlH5KPd.cjs"),te=require("./clone-xz9tAnT8.cjs"),ee=require("./graph-D7t_ZgqQ.cjs"),re=require("./channel-xkWi7eyU.cjs");var ht=(function(){var e=i.__name(function(E,m,d,y){for(d=d||{},y=E.length;y--;d[E[y]]=m);return d},"o"),t=[1,15],a=[1,7],n=[1,13],c=[1,14],s=[1,19],r=[1,16],l=[1,17],o=[1,18],x=[8,30],h=[8,10,21,28,29,30,31,39,43,46],u=[1,23],b=[1,24],f=[8,10,15,16,21,28,29,30,31,39,43,46],_=[8,10,15,16,21,27,28,29,30,31,39,43,46],S=[1,49],w={trace:i.__name(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:i.__name(function(m,d,y,L,v,g,A){var p=g.length-1;switch(v){case 4:L.getLogger().debug("Rule: separator (NL) ");break;case 5:L.getLogger().debug("Rule: separator (Space) ");break;case 6:L.getLogger().debug("Rule: separator (EOF) ");break;case 7:L.getLogger().debug("Rule: hierarchy: ",g[p-1]),L.setHierarchy(g[p-1]);break;case 8:L.getLogger().debug("Stop NL ");break;case 9:L.getLogger().debug("Stop EOF ");break;case 10:L.getLogger().debug("Stop NL2 ");break;case 11:L.getLogger().debug("Stop EOF2 ");break;case 12:L.getLogger().debug("Rule: statement: ",g[p]),typeof g[p].length=="number"?this.$=g[p]:this.$=[g[p]];break;case 13:L.getLogger().debug("Rule: statement #2: ",g[p-1]),this.$=[g[p-1]].concat(g[p]);break;case 14:L.getLogger().debug("Rule: link: ",g[p],m),this.$={edgeTypeStr:g[p],label:""};break;case 15:L.getLogger().debug("Rule: LABEL link: ",g[p-3],g[p-1],g[p]),this.$={edgeTypeStr:g[p],label:g[p-1]};break;case 18:const N=parseInt(g[p]),X=L.generateId();this.$={id:X,type:"space",label:"",width:N,children:[]};break;case 23:L.getLogger().debug("Rule: (nodeStatement link node) ",g[p-2],g[p-1],g[p]," typestr: ",g[p-1].edgeTypeStr);const K=L.edgeStrToEdgeData(g[p-1].edgeTypeStr);this.$=[{id:g[p-2].id,label:g[p-2].label,type:g[p-2].type,directions:g[p-2].directions},{id:g[p-2].id+"-"+g[p].id,start:g[p-2].id,end:g[p].id,label:g[p-1].label,type:"edge",directions:g[p].directions,arrowTypeEnd:K,arrowTypeStart:"arrow_open"},{id:g[p].id,label:g[p].label,type:L.typeStr2Type(g[p].typeStr),directions:g[p].directions}];break;case 24:L.getLogger().debug("Rule: nodeStatement (abc88 node size) ",g[p-1],g[p]),this.$={id:g[p-1].id,label:g[p-1].label,type:L.typeStr2Type(g[p-1].typeStr),directions:g[p-1].directions,widthInColumns:parseInt(g[p],10)};break;case 25:L.getLogger().debug("Rule: nodeStatement (node) ",g[p]),this.$={id:g[p].id,label:g[p].label,type:L.typeStr2Type(g[p].typeStr),directions:g[p].directions,widthInColumns:1};break;case 26:L.getLogger().debug("APA123",this?this:"na"),L.getLogger().debug("COLUMNS: ",g[p]),this.$={type:"column-setting",columns:g[p]==="auto"?-1:parseInt(g[p])};break;case 27:L.getLogger().debug("Rule: id-block statement : ",g[p-2],g[p-1]),L.generateId(),this.$={...g[p-2],type:"composite",children:g[p-1]};break;case 28:L.getLogger().debug("Rule: blockStatement : ",g[p-2],g[p-1],g[p]);const J=L.generateId();this.$={id:J,type:"composite",label:"",children:g[p-1]};break;case 29:L.getLogger().debug("Rule: node (NODE_ID separator): ",g[p]),this.$={id:g[p]};break;case 30:L.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",g[p-1],g[p]),this.$={id:g[p-1],label:g[p].label,typeStr:g[p].typeStr,directions:g[p].directions};break;case 31:L.getLogger().debug("Rule: dirList: ",g[p]),this.$=[g[p]];break;case 32:L.getLogger().debug("Rule: dirList: ",g[p-1],g[p]),this.$=[g[p-1]].concat(g[p]);break;case 33:L.getLogger().debug("Rule: nodeShapeNLabel: ",g[p-2],g[p-1],g[p]),this.$={typeStr:g[p-2]+g[p],label:g[p-1]};break;case 34:L.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",g[p-3],g[p-2]," #3:",g[p-1],g[p]),this.$={typeStr:g[p-3]+g[p],label:g[p-2],directions:g[p-1]};break;case 35:case 36:this.$={type:"classDef",id:g[p-1].trim(),css:g[p].trim()};break;case 37:this.$={type:"applyClass",id:g[p-1].trim(),styleClass:g[p].trim()};break;case 38:this.$={type:"applyStyles",id:g[p-1].trim(),stylesStr:g[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:n,29:c,31:s,39:r,43:l,46:o},{8:[1,20]},e(x,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:n,29:c,31:s,39:r,43:l,46:o}),e(h,[2,16],{14:22,15:u,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(f,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,31:s},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:n,29:c,31:s,39:r,43:l,46:o},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(_,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(x,[2,13]),{26:35,31:s},{31:[2,14]},{17:[1,36]},e(f,[2,24]),{10:t,11:37,13:4,14:22,15:u,16:b,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:n,29:c,31:s,39:r,43:l,46:o},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(_,[2,30]),{18:[1,43]},{18:[1,44]},e(f,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{36:[1,47]},{33:48,34:S},{15:[1,50]},e(h,[2,27]),e(_,[2,33]),{38:[1,51]},{33:52,34:S,38:[2,31]},{31:[2,15]},e(_,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:i.__name(function(m,d){if(d.recoverable)this.trace(m);else{var y=new Error(m);throw y.hash=d,y}},"parseError"),parse:i.__name(function(m){var d=this,y=[0],L=[],v=[null],g=[],A=this.table,p="",N=0,X=0,K=2,J=1,Gt=g.slice.call(arguments,1),I=Object.create(this.lexer),j={yy:{}};for(var it in this.yy)Object.prototype.hasOwnProperty.call(this.yy,it)&&(j.yy[it]=this.yy[it]);I.setInput(m,j.yy),j.yy.lexer=I,j.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var nt=I.yylloc;g.push(nt);var Jt=I.options&&I.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Qt(M){y.length=y.length-2*M,v.length=v.length-M,g.length=g.length-M}i.__name(Qt,"popStack");function wt(){var M;return M=L.pop()||I.lex()||J,typeof M!="number"&&(M instanceof Array&&(L=M,M=L.pop()),M=d.symbols_[M]||M),M}i.__name(wt,"lex");for(var z,V,H,lt,q={},Q,U,Lt,$;;){if(V=y[y.length-1],this.defaultActions[V]?H=this.defaultActions[V]:((z===null||typeof z>"u")&&(z=wt()),H=A[V]&&A[V][z]),typeof H>"u"||!H.length||!H[0]){var ct="";$=[];for(Q in A[V])this.terminals_[Q]&&Q>K&&$.push("'"+this.terminals_[Q]+"'");I.showPosition?ct="Parse error on line "+(N+1)+`:
2
- `+I.showPosition()+`
3
- Expecting `+$.join(", ")+", got '"+(this.terminals_[z]||z)+"'":ct="Parse error on line "+(N+1)+": Unexpected "+(z==J?"end of input":"'"+(this.terminals_[z]||z)+"'"),this.parseError(ct,{text:I.match,token:this.terminals_[z]||z,line:I.yylineno,loc:nt,expected:$})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+z);switch(H[0]){case 1:y.push(z),v.push(I.yytext),g.push(I.yylloc),y.push(H[1]),z=null,X=I.yyleng,p=I.yytext,N=I.yylineno,nt=I.yylloc;break;case 2:if(U=this.productions_[H[1]][1],q.$=v[v.length-U],q._$={first_line:g[g.length-(U||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(U||1)].first_column,last_column:g[g.length-1].last_column},Jt&&(q._$.range=[g[g.length-(U||1)].range[0],g[g.length-1].range[1]]),lt=this.performAction.apply(q,[p,X,N,j.yy,H[1],v,g].concat(Gt)),typeof lt<"u")return lt;U&&(y=y.slice(0,-1*U*2),v=v.slice(0,-1*U),g=g.slice(0,-1*U)),y.push(this.productions_[H[1]][0]),v.push(q.$),g.push(q._$),Lt=A[y[y.length-2]][y[y.length-1]],y.push(Lt);break;case 3:return!0}}return!0},"parse")},k=(function(){var E={EOF:1,parseError:i.__name(function(d,y){if(this.yy.parser)this.yy.parser.parseError(d,y);else throw new Error(d)},"parseError"),setInput:i.__name(function(m,d){return this.yy=d||this.yy||{},this._input=m,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:i.__name(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var d=m.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:i.__name(function(m){var d=m.length,y=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var L=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),y.length-1&&(this.yylineno-=y.length-1);var v=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:y?(y.length===L.length?this.yylloc.first_column:0)+L[L.length-y.length].length-y[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(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:i.__name(function(m){this.unput(this.match.slice(m))},"less"),pastInput:i.__name(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var m=this.pastInput(),d=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
5
- `+d+"^"},"showPosition"),test_match:i.__name(function(m,d){var y,L,v;if(this.options.backtrack_lexer&&(v={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&&(v.yylloc.range=this.yylloc.range.slice(0))),L=m[0].match(/(?:\r\n?|\n).*/g),L&&(this.yylineno+=L.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:L?L[L.length-1].length-L[L.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,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(m[0].length),this.matched+=m[0],y=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var g in v)this[g]=v[g];return!1}return!1},"test_match"),next:i.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,d,y,L;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),g=0;g<v.length;g++)if(y=this._input.match(this.rules[v[g]]),y&&(!d||y[0].length>d[0].length)){if(d=y,L=g,this.options.backtrack_lexer){if(m=this.test_match(y,v[g]),m!==!1)return m;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(m=this.test_match(d,v[L]),m!==!1?m:!1):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:i.__name(function(){var d=this.next();return d||this.lex()},"lex"),begin:i.__name(function(d){this.conditionStack.push(d)},"begin"),popState:i.__name(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i.__name(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:i.__name(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:i.__name(function(d){this.begin(d)},"pushState"),stateStackSize:i.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i.__name(function(d,y,L,v){switch(L){case 0:return d.getLogger().debug("Found block-beta"),10;case 1:return d.getLogger().debug("Found id-block"),29;case 2:return d.getLogger().debug("Found block"),10;case 3:d.getLogger().debug(".",y.yytext);break;case 4:d.getLogger().debug("_",y.yytext);break;case 5:return 5;case 6:return y.yytext=-1,28;case 7:return y.yytext=y.yytext.replace(/columns\s+/,""),d.getLogger().debug("COLUMNS (LEX)",y.yytext),28;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:d.getLogger().debug("LEX: POPPING STR:",y.yytext),this.popState();break;case 13:return d.getLogger().debug("LEX: STR end:",y.yytext),"STR";case 14:return y.yytext=y.yytext.replace(/space\:/,""),d.getLogger().debug("SPACE NUM (LEX)",y.yytext),21;case 15:return y.yytext="1",d.getLogger().debug("COLUMNS (LEX)",y.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),d.getLogger().debug("Lex: (("),"NODE_DEND";case 38:return this.popState(),d.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),d.getLogger().debug("Lex: ))"),"NODE_DEND";case 40:return this.popState(),d.getLogger().debug("Lex: (("),"NODE_DEND";case 41:return this.popState(),d.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),d.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),d.getLogger().debug("Lex: -)"),"NODE_DEND";case 44:return this.popState(),d.getLogger().debug("Lex: (("),"NODE_DEND";case 45:return this.popState(),d.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),d.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),d.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:return this.popState(),d.getLogger().debug("Lex: /]"),"NODE_DEND";case 49:return this.popState(),d.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),d.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),d.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),d.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),d.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return d.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return d.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return d.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:return d.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return d.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 59:return d.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 60:return d.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 61:return d.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 62:return d.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return d.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 64:return d.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 65:return this.pushState("NODE"),35;case 66:return this.pushState("NODE"),35;case 67:return this.pushState("NODE"),35;case 68:return this.pushState("NODE"),35;case 69:return this.pushState("NODE"),35;case 70:return this.pushState("NODE"),35;case 71:return this.pushState("NODE"),35;case 72:return d.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),d.getLogger().debug("LEX ARR START"),37;case 74:return d.getLogger().debug("Lex: NODE_ID",y.yytext),31;case 75:return d.getLogger().debug("Lex: EOF",y.yytext),8;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:d.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:d.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return d.getLogger().debug("LEX: NODE_DESCR:",y.yytext),"NODE_DESCR";case 83:d.getLogger().debug("LEX POPPING"),this.popState();break;case 84:d.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return y.yytext=y.yytext.replace(/^,\s*/,""),d.getLogger().debug("Lex (right): dir:",y.yytext),"DIR";case 86:return y.yytext=y.yytext.replace(/^,\s*/,""),d.getLogger().debug("Lex (left):",y.yytext),"DIR";case 87:return y.yytext=y.yytext.replace(/^,\s*/,""),d.getLogger().debug("Lex (x):",y.yytext),"DIR";case 88:return y.yytext=y.yytext.replace(/^,\s*/,""),d.getLogger().debug("Lex (y):",y.yytext),"DIR";case 89:return y.yytext=y.yytext.replace(/^,\s*/,""),d.getLogger().debug("Lex (up):",y.yytext),"DIR";case 90:return y.yytext=y.yytext.replace(/^,\s*/,""),d.getLogger().debug("Lex (down):",y.yytext),"DIR";case 91:return y.yytext="]>",d.getLogger().debug("Lex (ARROW_DIR end):",y.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return d.getLogger().debug("Lex: LINK","#"+y.yytext+"#"),15;case 93:return d.getLogger().debug("Lex: LINK",y.yytext),15;case 94:return d.getLogger().debug("Lex: LINK",y.yytext),15;case 95:return d.getLogger().debug("Lex: LINK",y.yytext),15;case 96:return d.getLogger().debug("Lex: START_LINK",y.yytext),this.pushState("LLABEL"),16;case 97:return d.getLogger().debug("Lex: START_LINK",y.yytext),this.pushState("LLABEL"),16;case 98:return d.getLogger().debug("Lex: START_LINK",y.yytext),this.pushState("LLABEL"),16;case 99:this.pushState("md_string");break;case 100:return d.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),d.getLogger().debug("Lex: LINK","#"+y.yytext+"#"),15;case 102:return this.popState(),d.getLogger().debug("Lex: LINK",y.yytext),15;case 103:return this.popState(),d.getLogger().debug("Lex: LINK",y.yytext),15;case 104:return d.getLogger().debug("Lex: COLON",y.yytext),y.yytext=y.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return E})();w.lexer=k;function C(){this.yy={}}return i.__name(C,"Parser"),C.prototype=w,w.Parser=C,new C})();ht.parser=ht;var ae=ht,W=new Map,ft=[],gt=new Map,St="color",vt="fill",se="bgFill",It=",",ie=i.getConfig2(),et=new Map,xt="",ne=i.__name(e=>i.common_default.sanitizeText(e,ie),"sanitizeText"),le=i.__name(function(e,t=""){let a=et.get(e);a||(a={id:e,styles:[],textStyles:[]},et.set(e,a)),t?.split(It).forEach(n=>{const c=n.replace(/([^;]*);/,"$1").trim();if(RegExp(St).exec(n)){const r=c.replace(vt,se).replace(St,vt);a.textStyles.push(r)}a.styles.push(c)})},"addStyleClass"),ce=i.__name(function(e,t=""){const a=W.get(e);t!=null&&(a.styles=t.split(It))},"addStyle2Node"),oe=i.__name(function(e,t){e.split(",").forEach(function(a){let n=W.get(a);if(n===void 0){const c=a.trim();n={id:c,type:"na",children:[]},W.set(c,n)}n.classes||(n.classes=[]),n.classes.push(t)})},"setCssClass"),Ot=i.__name((e,t)=>{const a=e.flat(),n=[],s=a.find(r=>r?.type==="column-setting")?.columns??-1;for(const r of a){if(typeof s=="number"&&s>0&&r.type!=="column-setting"&&typeof r.widthInColumns=="number"&&r.widthInColumns>s&&i.log.warn(`Block ${r.id} width ${r.widthInColumns} exceeds configured column width ${s}`),r.label&&(r.label=ne(r.label)),r.type==="classDef"){le(r.id,r.css);continue}if(r.type==="applyClass"){oe(r.id,r?.styleClass??"");continue}if(r.type==="applyStyles"){r?.stylesStr&&ce(r.id,r?.stylesStr);continue}if(r.type==="column-setting")t.columns=r.columns??-1;else if(r.type==="edge"){const l=(gt.get(r.id)??0)+1;gt.set(r.id,l),r.id=l+"-"+r.id,ft.push(r)}else{r.label||(r.type==="composite"?r.label="":r.label=r.id);const l=W.get(r.id);if(l===void 0?W.set(r.id,r):(r.type!=="na"&&(l.type=r.type),r.label!==r.id&&(l.label=r.label)),r.children&&Ot(r.children,r),r.type==="space"){const o=r.width??1;for(let x=0;x<o;x++){const h=te.clone(r);h.id=h.id+"-"+x,W.set(h.id,h),n.push(h)}}else l===void 0&&n.push(r)}}t.children=n},"populateBlockDatabase"),yt=[],G={id:"root",type:"composite",children:[],columns:-1},he=i.__name(()=>{i.log.debug("Clear called"),i.clear(),G={id:"root",type:"composite",children:[],columns:-1},W=new Map([["root",G]]),yt=[],et=new Map,ft=[],gt=new Map,xt=""},"clear");function Rt(e){switch(i.log.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return i.log.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}i.__name(Rt,"typeStr2Type");function zt(e){switch(i.log.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}i.__name(zt,"edgeTypeStr2Type");function At(e){switch(e.replace(/^[\s-]+|[\s-]+$/g,"")){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}i.__name(At,"edgeStrToEdgeData");var kt=0,ge=i.__name(()=>(kt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+kt),"generateId"),de=i.__name(e=>{G.children=e,Ot(e,G),yt=G.children},"setHierarchy"),ue=i.__name(e=>{const t=W.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},"getColumns"),pe=i.__name(()=>[...W.values()],"getBlocksFlat"),fe=i.__name(()=>yt||[],"getBlocks"),xe=i.__name(()=>ft,"getEdges"),ye=i.__name(e=>W.get(e),"getBlock"),be=i.__name(e=>{W.set(e.id,e)},"setBlock"),me=i.__name(e=>{xt=e},"setDiagramId"),_e=i.__name(()=>xt,"getDiagramId"),we=i.__name(()=>i.log,"getLogger"),Le=i.__name(function(){return et},"getClasses"),Se={getConfig:i.__name(()=>i.getConfig().block,"getConfig"),typeStr2Type:Rt,edgeTypeStr2Type:zt,edgeStrToEdgeData:At,getLogger:we,getBlocksFlat:pe,getBlocks:fe,getEdges:xe,setHierarchy:de,getBlock:ye,setBlock:be,getColumns:ue,getClasses:Le,clear:he,generateId:ge,setDiagramId:me,getDiagramId:_e},ve=Se,ot=i.__name((e,t)=>{const a=re.channel,n=a(e,"r"),c=a(e,"g"),s=a(e,"b");return i.rgba(n,c,s,t)},"fade"),ke=i.__name(e=>`.label {
7
- font-family: ${e.fontFamily};
8
- color: ${e.nodeTextColor||e.textColor};
9
- }
10
- .cluster-label text {
11
- fill: ${e.titleColor};
12
- }
13
- .cluster-label span,p {
14
- color: ${e.titleColor};
15
- }
16
-
17
-
18
-
19
- .label text,span,p {
20
- fill: ${e.nodeTextColor||e.textColor};
21
- color: ${e.nodeTextColor||e.textColor};
22
- }
23
-
24
- .node rect,
25
- .node circle,
26
- .node ellipse,
27
- .node polygon,
28
- .node path {
29
- fill: ${e.mainBkg};
30
- stroke: ${e.nodeBorder};
31
- stroke-width: 1px;
32
- }
33
- .flowchart-label text {
34
- text-anchor: middle;
35
- }
36
- // .flowchart-label .text-outer-tspan {
37
- // text-anchor: middle;
38
- // }
39
- // .flowchart-label .text-inner-tspan {
40
- // text-anchor: start;
41
- // }
42
-
43
- .node .label {
44
- text-align: center;
45
- }
46
- .node.clickable {
47
- cursor: pointer;
48
- }
49
-
50
- .arrowheadPath {
51
- fill: ${e.arrowheadColor};
52
- }
53
-
54
- .edgePath .path {
55
- stroke: ${e.lineColor};
56
- stroke-width: 2.0px;
57
- }
58
-
59
- .flowchart-link {
60
- stroke: ${e.lineColor};
61
- fill: none;
62
- }
63
-
64
- .edgeLabel {
65
- background-color: ${e.edgeLabelBackground};
66
- /*
67
- * This is for backward compatibility with existing code that didn't
68
- * add a \`<p>\` around edge labels.
69
- *
70
- * TODO: We should probably remove this in a future release.
71
- */
72
- p {
73
- margin: 0;
74
- padding: 0;
75
- display: inline;
76
- }
77
- rect {
78
- opacity: 0.5;
79
- background-color: ${e.edgeLabelBackground};
80
- fill: ${e.edgeLabelBackground};
81
- }
82
- text-align: center;
83
- }
84
-
85
- /* For html labels only */
86
- .labelBkg {
87
- background-color: ${e.edgeLabelBackground};
88
- }
89
-
90
- .node .cluster {
91
- // fill: ${ot(e.mainBkg,.5)};
92
- fill: ${ot(e.clusterBkg,.5)};
93
- stroke: ${ot(e.clusterBorder,.2)};
94
- box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
95
- stroke-width: 1px;
96
- }
97
-
98
- .cluster text {
99
- fill: ${e.titleColor};
100
- }
101
-
102
- .cluster span,p {
103
- color: ${e.titleColor};
104
- }
105
- /* .cluster div {
106
- color: ${e.titleColor};
107
- } */
108
-
109
- div.mermaidTooltip {
110
- position: absolute;
111
- text-align: center;
112
- max-width: 200px;
113
- padding: 2px;
114
- font-family: ${e.fontFamily};
115
- font-size: 12px;
116
- background: ${e.tertiaryColor};
117
- border: 1px solid ${e.border2};
118
- border-radius: 2px;
119
- pointer-events: none;
120
- z-index: 100;
121
- }
122
-
123
- .flowchartTitleText {
124
- text-anchor: middle;
125
- font-size: 18px;
126
- fill: ${e.textColor};
127
- }
128
- ${$t.getIconStyles()}
129
- `,"getStyles"),Ee=ke,De=i.__name((e,t,a,n)=>{t.forEach(c=>{Me[c](e,a,n)})},"insertMarkers"),Te=i.__name((e,t,a)=>{i.log.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),Ce=i.__name((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Be=i.__name((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Ne=i.__name((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Ie=i.__name((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),Oe=i.__name((e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),Re=i.__name((e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),ze=i.__name((e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),Ae=i.__name((e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),Me={extension:Te,composition:Ce,aggregation:Be,dependency:Ne,lollipop:Ie,point:Oe,circle:Re,cross:ze,barb:Ae},Fe=De,B=i.getConfig2()?.block?.padding??8;function dt(e,t){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(e===1)return{px:0,py:t};const a=t%e,n=Math.floor(t/e);return{px:a,py:n}}i.__name(dt,"calculateBlockPosition");var He=i.__name(e=>{let t=0,a=0;for(const n of e.children){const{width:c,height:s,x:r,y:l}=n.size??{width:0,height:0,x:0,y:0};i.log.debug("getMaxChildSize abc95 child:",n.id,"width:",c,"height:",s,"x:",r,"y:",l,n.type),n.type!=="space"&&(c>t&&(t=c/(n.widthInColumns??1)),s>a&&(a=s))}return{width:t,height:a}},"getMaxChildSize");function rt(e,t,a=0,n=0){i.log.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",a),e?.size?.width||(e.size={width:a,height:n,x:0,y:0});let c=0,s=0;if(e.children?.length>0){for(const f of e.children)rt(f,t);const r=He(e);c=r.width,s=r.height,i.log.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",c,s);for(const f of e.children)f.size&&(i.log.debug(`abc95 Setting size of children of ${e.id} id=${f.id} ${c} ${s} ${JSON.stringify(f.size)}`),f.size.width=c*(f.widthInColumns??1)+B*((f.widthInColumns??1)-1),f.size.height=s,f.size.x=0,f.size.y=0,i.log.debug(`abc95 updating size of ${e.id} children child:${f.id} maxWidth:${c} maxHeight:${s}`));for(const f of e.children)rt(f,t,c,s);const l=e.columns??-1;let o=0;for(const f of e.children)o+=f.widthInColumns??1;let x=e.children.length;l>0&&l<o&&(x=l);const h=Math.ceil(o/x);let u=x*(c+B)+B,b=h*(s+B)+B;if(u<a){i.log.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${a} siblingHeight ${n} width ${u}`),u=a,b=n;const f=(a-x*B-B)/x,_=(n-h*B-B)/h;i.log.debug("Size indata abc88",e.id,"childWidth",f,"maxWidth",c),i.log.debug("Size indata abc88",e.id,"childHeight",_,"maxHeight",s),i.log.debug("Size indata abc88 xSize",x,"padding",B);for(const S of e.children)S.size&&(S.size.width=f,S.size.height=_,S.size.x=0,S.size.y=0)}if(i.log.debug(`abc95 (finale calc) ${e.id} xSize ${x} ySize ${h} columns ${l}${e.children.length} width=${Math.max(u,e.size?.width||0)}`),u<(e?.size?.width||0)){u=e?.size?.width||0;const f=l>0?Math.min(e.children.length,l):e.children.length;if(f>0){const _=(u-f*B-B)/f;i.log.debug("abc95 (growing to fit) width",e.id,u,e.size?.width,_);for(const S of e.children)S.size&&(S.size.width=_)}}e.size={width:u,height:b,x:0,y:0}}i.log.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}i.__name(rt,"setBlockSizes");function bt(e,t){i.log.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);const a=e.columns??-1;if(i.log.debug("layoutBlocks columns abc95",e.id,"=>",a,e),e.children&&e.children.length>0){const n=e?.children[0]?.size?.width??0,c=e.children.length*n+(e.children.length-1)*B;i.log.debug("widthOfChildren 88",c,"posX");const s=new Map;{let h=0;for(const u of e.children){if(!u.size)continue;const{py:b}=dt(a,h),f=s.get(b)??0;u.size.height>f&&s.set(b,u.size.height);let _=u?.widthInColumns??1;a>0&&(_=Math.min(_,a-h%a)),h+=_}}const r=new Map;{let h=0;const u=[...s.keys()].sort((b,f)=>b-f);for(const b of u)r.set(b,h),h+=(s.get(b)??0)+B}let l=0;i.log.debug("abc91 block?.size?.x",e.id,e?.size?.x);let o=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-B,x=0;for(const h of e.children){const u=e;if(!h.size)continue;const{width:b,height:f}=h.size,{px:_,py:S}=dt(a,l);if(S!=x&&(x=S,o=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-B,i.log.debug("New row in layout for block",e.id," and child ",h.id,x)),i.log.debug(`abc89 layout blocks (child) id: ${h.id} Pos: ${l} (px, py) ${_},${S} (${u?.size?.x},${u?.size?.y}) parent: ${u.id} width: ${b}${B}`),u.size){const k=b/2;h.size.x=o+B+k,i.log.debug(`abc91 layout blocks (calc) px, pyid:${h.id} startingPos=X${o} new startingPosX${h.size.x} ${k} padding=${B} width=${b} halfWidth=${k} => x:${h.size.x} y:${h.size.y} ${h.widthInColumns} (width * (child?.w || 1)) / 2 ${b*(h?.widthInColumns??1)/2}`),o=h.size.x+k;const C=r.get(S)??0,E=s.get(S)??f;h.size.y=u.size.y-u.size.height/2+C+E/2+B,i.log.debug(`abc88 layout blocks (calc) px, pyid:${h.id}startingPosX${o}${B}${k}=>x:${h.size.x}y:${h.size.y}${h.widthInColumns}(width * (child?.w || 1)) / 2${b*(h?.widthInColumns??1)/2}`)}h.children&&bt(h);let w=h?.widthInColumns??1;a>0&&(w=Math.min(w,a-l%a)),l+=w,i.log.debug("abc88 columnsPos",h,l)}}i.log.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}i.__name(bt,"layoutBlocks");function mt(e,{minX:t,minY:a,maxX:n,maxY:c}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:s,y:r,width:l,height:o}=e.size;s-l/2<t&&(t=s-l/2),r-o/2<a&&(a=r-o/2),s+l/2>n&&(n=s+l/2),r+o/2>c&&(c=r+o/2)}if(e.children)for(const s of e.children)({minX:t,minY:a,maxX:n,maxY:c}=mt(s,{minX:t,minY:a,maxX:n,maxY:c}));return{minX:t,minY:a,maxX:n,maxY:c}}i.__name(mt,"findBounds");function Mt(e){const t=e.getBlock("root");if(!t)return;rt(t,e,0,0),bt(t),i.log.debug("getBlocks",JSON.stringify(t,null,2));const{minX:a,minY:n,maxX:c,maxY:s}=mt(t),r=s-n,l=c-a;return{x:a,y:n,width:l,height:r}}i.__name(Mt,"layout");var Pe=i.__name(async(e,t,a,n=!1,c=!1)=>{let s=t||"";typeof s=="object"&&(s=s[0]);const r=i.getConfig2(),l=i.getEffectiveHtmlLabels(r);return await i.createText(e,s,{style:a,isTitle:n,useHtmlLabels:l,markdown:!1,isNode:c,width:Number.POSITIVE_INFINITY},r)},"createLabel"),P=Pe,We=i.__name((e,t,a,n,c)=>{t.arrowTypeStart&&Et(e,"start",t.arrowTypeStart,a,n,c),t.arrowTypeEnd&&Et(e,"end",t.arrowTypeEnd,a,n,c)},"addEdgeMarkers"),Ye={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Et=i.__name((e,t,a,n,c,s)=>{const r=Ye[a];if(!r){i.log.warn(`Unknown arrow type: ${a}`);return}const l=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${n}#${c}_${s}-${r}${l})`)},"addEdgeMarker"),ut={},R={},Ke=i.__name(async(e,t)=>{const a=i.getConfig2(),n=i.getEffectiveHtmlLabels(a),c=e.insert("g").attr("class","edgeLabel"),s=c.insert("g").attr("class","label"),r=t.labelType==="markdown",l=await i.createText(e,t.label,{style:t.labelStyle,useHtmlLabels:n,addSvgBackground:r,isNode:!1,markdown:r,width:r?void 0:Number.POSITIVE_INFINITY},a);s.node().appendChild(l);let o=l.getBBox(),x=o;if(n){const u=l.children[0],b=i.select(l);o=u.getBoundingClientRect(),x=o,b.attr("width",o.width),b.attr("height",o.height)}else{const u=i.select(l).select("text").node();u&&typeof u.getBBox=="function"&&(x=u.getBBox())}s.attr("transform",i.computeLabelTransform(x,n)),ut[t.id]=c,t.width=o.width,t.height=o.height;let h;if(t.startLabelLeft){const u=e.insert("g").attr("class","edgeTerminals"),b=u.insert("g").attr("class","inner"),f=await P(b,t.startLabelLeft,t.labelStyle);h=f;let _=f.getBBox();if(n){const S=f.children[0],w=i.select(f);_=S.getBoundingClientRect(),w.attr("width",_.width),w.attr("height",_.height)}b.attr("transform",i.computeLabelTransform(_,n)),R[t.id]||(R[t.id]={}),R[t.id].startLeft=u,Z(h,t.startLabelLeft)}if(t.startLabelRight){const u=e.insert("g").attr("class","edgeTerminals"),b=u.insert("g").attr("class","inner"),f=await P(u,t.startLabelRight,t.labelStyle);h=f,b.node().appendChild(f);let _=f.getBBox();if(n){const S=f.children[0],w=i.select(f);_=S.getBoundingClientRect(),w.attr("width",_.width),w.attr("height",_.height)}b.attr("transform",i.computeLabelTransform(_,n)),R[t.id]||(R[t.id]={}),R[t.id].startRight=u,Z(h,t.startLabelRight)}if(t.endLabelLeft){const u=e.insert("g").attr("class","edgeTerminals"),b=u.insert("g").attr("class","inner"),f=await P(b,t.endLabelLeft,t.labelStyle);h=f;let _=f.getBBox();if(n){const S=f.children[0],w=i.select(f);_=S.getBoundingClientRect(),w.attr("width",_.width),w.attr("height",_.height)}b.attr("transform",i.computeLabelTransform(_,n)),u.node().appendChild(f),R[t.id]||(R[t.id]={}),R[t.id].endLeft=u,Z(h,t.endLabelLeft)}if(t.endLabelRight){const u=e.insert("g").attr("class","edgeTerminals"),b=u.insert("g").attr("class","inner"),f=await P(b,t.endLabelRight,t.labelStyle);h=f;let _=f.getBBox();if(n){const S=f.children[0],w=i.select(f);_=S.getBoundingClientRect(),w.attr("width",_.width),w.attr("height",_.height)}b.attr("transform",i.computeLabelTransform(_,n)),u.node().appendChild(f),R[t.id]||(R[t.id]={}),R[t.id].endRight=u,Z(h,t.endLabelRight)}return l},"insertEdgeLabel");function Z(e,t){i.getEffectiveHtmlLabels(i.getConfig2())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}i.__name(Z,"setTerminalWidth");var Ue=i.__name((e,t)=>{i.log.debug("Moving label abc88 ",e.id,e.label,ut[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const n=i.getConfig2(),{subGraphTitleTotalMargin:c}=i.getSubGraphTitleMargins(n);if(e.label){const s=ut[e.id];let r=e.x,l=e.y;if(a){const o=i.utils_default.calcLabelPosition(a);i.log.debug("Moving label "+e.label+" from (",r,",",l,") to (",o.x,",",o.y,") abc88"),t.updatedPath&&(r=o.x,l=o.y)}s.attr("transform",`translate(${r}, ${l+c/2})`)}if(e.startLabelLeft){const s=R[e.id].startLeft;let r=e.x,l=e.y;if(a){const o=i.utils_default.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);r=o.x,l=o.y}s.attr("transform",`translate(${r}, ${l})`)}if(e.startLabelRight){const s=R[e.id].startRight;let r=e.x,l=e.y;if(a){const o=i.utils_default.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);r=o.x,l=o.y}s.attr("transform",`translate(${r}, ${l})`)}if(e.endLabelLeft){const s=R[e.id].endLeft;let r=e.x,l=e.y;if(a){const o=i.utils_default.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);r=o.x,l=o.y}s.attr("transform",`translate(${r}, ${l})`)}if(e.endLabelRight){const s=R[e.id].endRight;let r=e.x,l=e.y;if(a){const o=i.utils_default.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);r=o.x,l=o.y}s.attr("transform",`translate(${r}, ${l})`)}},"positionEdgeLabel"),Xe=i.__name((e,t)=>{const a=e.x,n=e.y,c=Math.abs(t.x-a),s=Math.abs(t.y-n),r=e.width/2,l=e.height/2;return c>=r||s>=l},"outsideNode"),je=i.__name((e,t,a)=>{i.log.debug(`intersection calc abc89:
130
- outsidePoint: ${JSON.stringify(t)}
131
- insidePoint : ${JSON.stringify(a)}
132
- node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const n=e.x,c=e.y,s=Math.abs(n-a.x),r=e.width/2;let l=a.x<t.x?r-s:r+s;const o=e.height/2,x=Math.abs(t.y-a.y),h=Math.abs(t.x-a.x);if(Math.abs(c-t.y)*r>Math.abs(n-t.x)*o){let u=a.y<t.y?t.y-o-c:c-o-t.y;l=h*u/x;const b={x:a.x<t.x?a.x+l:a.x-h+l,y:a.y<t.y?a.y+x-u:a.y-x+u};return l===0&&(b.x=t.x,b.y=t.y),h===0&&(b.x=t.x),x===0&&(b.y=t.y),i.log.debug(`abc89 topp/bott calc, Q ${x}, q ${u}, R ${h}, r ${l}`,b),b}else{a.x<t.x?l=t.x-r-n:l=n-r-t.x;let u=x*l/h,b=a.x<t.x?a.x+h-l:a.x-h+l,f=a.y<t.y?a.y+u:a.y-u;return i.log.debug(`sides calc abc89, Q ${x}, q ${u}, R ${h}, r ${l}`,{_x:b,_y:f}),l===0&&(b=t.x,f=t.y),h===0&&(b=t.x),x===0&&(f=t.y),{x:b,y:f}}},"intersection"),Dt=i.__name((e,t)=>{i.log.debug("abc88 cutPathAtIntersect",e,t);let a=[],n=e[0],c=!1;return e.forEach(s=>{if(!Xe(t,s)&&!c){const r=je(t,n,s);let l=!1;a.forEach(o=>{l=l||o.x===r.x&&o.y===r.y}),a.some(o=>o.x===r.x&&o.y===r.y)||a.push(r),c=!0}else n=s,c||a.push(s)}),a},"cutPathAtIntersect"),Ve=i.__name(function(e,t,a,n,c,s,r){let l=a.points;i.log.debug("abc88 InsertEdge: edge=",a,"e=",t);let o=!1;const x=s.node(t.v);var h=s.node(t.w);h?.intersect&&x?.intersect&&(l=l.slice(1,a.points.length-1),l.unshift(x.intersect(l[0])),l.push(h.intersect(l[l.length-1]))),a.toCluster&&(i.log.debug("to cluster abc88",n[a.toCluster]),l=Dt(a.points,n[a.toCluster].node),o=!0),a.fromCluster&&(i.log.debug("from cluster abc88",n[a.fromCluster]),l=Dt(l.reverse(),n[a.fromCluster].node).reverse(),o=!0);const u=l.filter(m=>!Number.isNaN(m.y));let b=i.curveBasis;a.curve&&(c==="graph"||c==="flowchart")&&(b=a.curve);const{x:f,y:_}=i.getLineFunctionsWithOffset(a),S=i.line().x(f).y(_).curve(b);let w;switch(a.thickness){case"normal":w="edge-thickness-normal";break;case"thick":w="edge-thickness-thick";break;case"invisible":w="edge-thickness-thick";break;default:w=""}switch(a.pattern){case"solid":w+=" edge-pattern-solid";break;case"dotted":w+=" edge-pattern-dotted";break;case"dashed":w+=" edge-pattern-dashed";break}const k=e.append("path").attr("d",S(u)).attr("id",a.id).attr("class"," "+w+(a.classes?" "+a.classes:"")).attr("style",a.style);let C="";(i.getConfig2().flowchart.arrowMarkerAbsolute||i.getConfig2().state.arrowMarkerAbsolute)&&(C=i.getUrl(!0)),We(k,a,C,r,c);let E={};return o&&(E.updatedPath=l),E.originalPath=a.points,E},"insertEdge"),qe=i.__name(e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},"expandAndDeduplicateDirections"),Ze=i.__name((e,t,a)=>{const n=qe(e),c=2,s=t.height+2*a.padding,r=s/c,l=t.width+2*r+a.padding,o=a.padding/2;return n.has("right")&&n.has("left")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:r,y:0},{x:l/2,y:2*o},{x:l-r,y:0},{x:l,y:0},{x:l,y:-s/3},{x:l+2*o,y:-s/2},{x:l,y:-2*s/3},{x:l,y:-s},{x:l-r,y:-s},{x:l/2,y:-s-2*o},{x:r,y:-s},{x:0,y:-s},{x:0,y:-2*s/3},{x:-2*o,y:-s/2},{x:0,y:-s/3}]:n.has("right")&&n.has("left")&&n.has("up")?[{x:r,y:0},{x:l-r,y:0},{x:l,y:-s/2},{x:l-r,y:-s},{x:r,y:-s},{x:0,y:-s/2}]:n.has("right")&&n.has("left")&&n.has("down")?[{x:0,y:0},{x:r,y:-s},{x:l-r,y:-s},{x:l,y:0}]:n.has("right")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:l,y:-r},{x:l,y:-s+r},{x:0,y:-s}]:n.has("left")&&n.has("up")&&n.has("down")?[{x:l,y:0},{x:0,y:-r},{x:0,y:-s+r},{x:l,y:-s}]:n.has("right")&&n.has("left")?[{x:r,y:0},{x:r,y:-o},{x:l-r,y:-o},{x:l-r,y:0},{x:l,y:-s/2},{x:l-r,y:-s},{x:l-r,y:-s+o},{x:r,y:-s+o},{x:r,y:-s},{x:0,y:-s/2}]:n.has("up")&&n.has("down")?[{x:l/2,y:0},{x:0,y:-o},{x:r,y:-o},{x:r,y:-s+o},{x:0,y:-s+o},{x:l/2,y:-s},{x:l,y:-s+o},{x:l-r,y:-s+o},{x:l-r,y:-o},{x:l,y:-o}]:n.has("right")&&n.has("up")?[{x:0,y:0},{x:l,y:-r},{x:0,y:-s}]:n.has("right")&&n.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-s}]:n.has("left")&&n.has("up")?[{x:l,y:0},{x:0,y:-r},{x:l,y:-s}]:n.has("left")&&n.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-s}]:n.has("right")?[{x:r,y:-o},{x:r,y:-o},{x:l-r,y:-o},{x:l-r,y:0},{x:l,y:-s/2},{x:l-r,y:-s},{x:l-r,y:-s+o},{x:r,y:-s+o},{x:r,y:-s+o}]:n.has("left")?[{x:r,y:0},{x:r,y:-o},{x:l-r,y:-o},{x:l-r,y:-s+o},{x:r,y:-s+o},{x:r,y:-s},{x:0,y:-s/2}]:n.has("up")?[{x:r,y:-o},{x:r,y:-s+o},{x:0,y:-s+o},{x:l/2,y:-s},{x:l,y:-s+o},{x:l-r,y:-s+o},{x:l-r,y:-o}]:n.has("down")?[{x:l/2,y:0},{x:0,y:-o},{x:r,y:-o},{x:r,y:-s+o},{x:l-r,y:-s+o},{x:l-r,y:-o},{x:l,y:-o}]:[{x:0,y:0}]},"getArrowPoints");function Ft(e,t){return e.intersect(t)}i.__name(Ft,"intersectNode");var Ge=Ft;function Ht(e,t,a,n){var c=e.x,s=e.y,r=c-n.x,l=s-n.y,o=Math.sqrt(t*t*l*l+a*a*r*r),x=Math.abs(t*a*r/o);n.x<c&&(x=-x);var h=Math.abs(t*a*l/o);return n.y<s&&(h=-h),{x:c+x,y:s+h}}i.__name(Ht,"intersectEllipse");var Pt=Ht;function Wt(e,t,a){return Pt(e,t,t,a)}i.__name(Wt,"intersectCircle");var Je=Wt;function Yt(e,t,a,n){var c,s,r,l,o,x,h,u,b,f,_,S,w,k,C;if(c=t.y-e.y,r=e.x-t.x,o=t.x*e.y-e.x*t.y,b=c*a.x+r*a.y+o,f=c*n.x+r*n.y+o,!(b!==0&&f!==0&&pt(b,f))&&(s=n.y-a.y,l=a.x-n.x,x=n.x*a.y-a.x*n.y,h=s*e.x+l*e.y+x,u=s*t.x+l*t.y+x,!(h!==0&&u!==0&&pt(h,u))&&(_=c*l-s*r,_!==0)))return S=Math.abs(_/2),w=r*x-l*o,k=w<0?(w-S)/_:(w+S)/_,w=s*o-c*x,C=w<0?(w-S)/_:(w+S)/_,{x:k,y:C}}i.__name(Yt,"intersectLine");function pt(e,t){return e*t>0}i.__name(pt,"sameSign");var Qe=Yt,$e=Kt;function Kt(e,t,a){var n=e.x,c=e.y,s=[],r=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(_){r=Math.min(r,_.x),l=Math.min(l,_.y)}):(r=Math.min(r,t.x),l=Math.min(l,t.y));for(var o=n-e.width/2-r,x=c-e.height/2-l,h=0;h<t.length;h++){var u=t[h],b=t[h<t.length-1?h+1:0],f=Qe(e,a,{x:o+u.x,y:x+u.y},{x:o+b.x,y:x+b.y});f&&s.push(f)}return s.length?(s.length>1&&s.sort(function(_,S){var w=_.x-a.x,k=_.y-a.y,C=Math.sqrt(w*w+k*k),E=S.x-a.x,m=S.y-a.y,d=Math.sqrt(E*E+m*m);return C<d?-1:C===d?0:1}),s[0]):e}i.__name(Kt,"intersectPolygon");var tr=i.__name((e,t)=>{var a=e.x,n=e.y,c=t.x-a,s=t.y-n,r=e.width/2,l=e.height/2,o,x;return Math.abs(s)*r>Math.abs(c)*l?(s<0&&(l=-l),o=s===0?0:l*c/s,x=l):(c<0&&(r=-r),o=r,x=c===0?0:r*s/c),{x:a+o,y:n+x}},"intersectRect"),er=tr,D={node:Ge,circle:Je,ellipse:Pt,polygon:$e,rect:er},O=i.__name(async(e,t,a,n)=>{const c=i.getConfig2();let s;const r=t.useHtmlLabels||i.getEffectiveHtmlLabels(c);a?s=a:s="node default";const l=e.insert("g").attr("class",s).attr("id",t.domId||t.id),o=l.insert("g").attr("class","label").attr("style",t.labelStyle);let x;t.labelText===void 0?x="":x=typeof t.labelText=="string"?t.labelText:t.labelText[0];let h;t.labelType==="markdown"?h=i.createText(o,i.sanitizeText(i.decodeEntities(x),c),{useHtmlLabels:r,width:t.width||c.flowchart.wrappingWidth,classes:"markdown-node-label"},c):h=await P(o,i.sanitizeText(i.decodeEntities(x),c),t.labelStyle,!1,n);let u=h.getBBox();const b=t.padding/2;if(i.getEffectiveHtmlLabels(c)){const f=h.children[0],_=i.select(h);await i.configureLabelImages(f,x),u=f.getBoundingClientRect(),_.attr("width",u.width),_.attr("height",u.height)}return r?o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):o.attr("transform","translate(0, "+-u.height/2+")"),t.centerLabel&&o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:l,bbox:u,halfPadding:b,label:o}},"labelHelper"),T=i.__name((e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height},"updateNodeBounds");function Y(e,t,a,n){return e.insert("polygon",":first-child").attr("points",n.map(function(c){return c.x+","+c.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}i.__name(Y,"insertPolygonShape");var rr=i.__name(async(e,t)=>{t.useHtmlLabels||i.getEffectiveHtmlLabels(i.getConfig2())||(t.centerLabel=!0);const{shapeSvg:n,bbox:c,halfPadding:s}=await O(e,t,"node "+t.classes,!0);i.log.info("Classes = ",t.classes);const r=n.insert("rect",":first-child");return r.attr("rx",t.rx).attr("ry",t.ry).attr("x",-c.width/2-s).attr("y",-c.height/2-s).attr("width",c.width+t.padding).attr("height",c.height+t.padding),T(t,r),t.intersect=function(l){return D.rect(t,l)},n},"note"),ar=rr,Tt=i.__name(e=>e?" "+e:"","formatClass"),F=i.__name((e,t)=>`${t||"node default"}${Tt(e.classes)} ${Tt(e.class)}`,"getClassesFromNode"),Ct=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=c+s,l=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}];i.log.info("Question main (Circle)");const o=Y(a,r,r,l);return o.attr("style",t.style),T(t,o),t.intersect=function(x){return i.log.warn("Intersect called"),D.polygon(t,l,x)},a},"question"),sr=i.__name((e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=28,c=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];return a.insert("polygon",":first-child").attr("points",c.map(function(r){return r.x+","+r.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(r){return D.circle(t,14,r)},a},"choice"),ir=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=4,s=n.height+t.padding,r=s/c,l=n.width+2*r+t.padding,o=[{x:r,y:0},{x:l-r,y:0},{x:l,y:-s/2},{x:l-r,y:-s},{x:r,y:-s},{x:0,y:-s/2}],x=Y(a,l,s,o);return x.attr("style",t.style),T(t,x),t.intersect=function(h){return D.polygon(t,o,h)},a},"hexagon"),nr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,void 0,!0),c=2,s=n.height+2*t.padding,r=s/c,l=n.width+2*r+t.padding,o=Ze(t.directions,n,t),x=Y(a,l,s,o);return x.attr("style",t.style),T(t,x),t.intersect=function(h){return D.polygon(t,o,h)},a},"block_arrow"),lr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:-s/2,y:0},{x:c,y:0},{x:c,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return Y(a,c,s,r).attr("style",t.style),t.width=c+s,t.height=s,t.intersect=function(o){return D.polygon(t,r,o)},a},"rect_left_inv_arrow"),cr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:-2*s/6,y:0},{x:c-s/6,y:0},{x:c+2*s/6,y:-s},{x:s/6,y:-s}],l=Y(a,c,s,r);return l.attr("style",t.style),T(t,l),t.intersect=function(o){return D.polygon(t,r,o)},a},"lean_right"),or=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:2*s/6,y:0},{x:c+s/6,y:0},{x:c-2*s/6,y:-s},{x:-s/6,y:-s}],l=Y(a,c,s,r);return l.attr("style",t.style),T(t,l),t.intersect=function(o){return D.polygon(t,r,o)},a},"lean_left"),hr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:-2*s/6,y:0},{x:c+2*s/6,y:0},{x:c-s/6,y:-s},{x:s/6,y:-s}],l=Y(a,c,s,r);return l.attr("style",t.style),T(t,l),t.intersect=function(o){return D.polygon(t,r,o)},a},"trapezoid"),gr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:s/6,y:0},{x:c-s/6,y:0},{x:c+2*s/6,y:-s},{x:-2*s/6,y:-s}],l=Y(a,c,s,r);return l.attr("style",t.style),T(t,l),t.intersect=function(o){return D.polygon(t,r,o)},a},"inv_trapezoid"),dr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:0,y:0},{x:c+s/2,y:0},{x:c,y:-s/2},{x:c+s/2,y:-s},{x:0,y:-s}],l=Y(a,c,s,r);return l.attr("style",t.style),T(t,l),t.intersect=function(o){return D.polygon(t,r,o)},a},"rect_right_inv_arrow"),ur=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=c/2,r=s/(2.5+c/50),l=n.height+r+t.padding,o="M 0,"+r+" a "+s+","+r+" 0,0,0 "+c+" 0 a "+s+","+r+" 0,0,0 "+-c+" 0 l 0,"+l+" a "+s+","+r+" 0,0,0 "+c+" 0 l 0,"+-l,x=a.attr("label-offset-y",r).insert("path",":first-child").attr("style",t.style).attr("d",o).attr("transform","translate("+-c/2+","+-(l/2+r)+")");return T(t,x),t.intersect=function(h){const u=D.rect(t,h),b=u.x-t.x;if(s!=0&&(Math.abs(b)<t.width/2||Math.abs(b)==t.width/2&&Math.abs(u.y-t.y)>t.height/2-r)){let f=r*r*(1-b*b/(s*s));f!=0&&(f=Math.sqrt(f)),f=r-f,h.y-t.y>0&&(f=-f),u.y+=f}return u},a},"cylinder"),pr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n,halfPadding:c}=await O(e,t,"node "+t.classes+" "+t.class,!0),s=a.insert("rect",":first-child"),r=t.positioned?t.width:n.width+t.padding,l=t.positioned?t.height:n.height+t.padding,o=t.positioned?-r/2:-n.width/2-c,x=t.positioned?-l/2:-n.height/2-c;if(s.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",o).attr("y",x).attr("width",r).attr("height",l),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(at(s,t.props.borders,r,l),h.delete("borders")),h.forEach(u=>{i.log.warn(`Unknown node property ${u}`)})}return T(t,s),t.intersect=function(h){return D.rect(t,h)},a},"rect"),fr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n,halfPadding:c}=await O(e,t,"node "+t.classes,!0),s=a.insert("rect",":first-child"),r=t.positioned?t.width:n.width+t.padding,l=t.positioned?t.height:n.height+t.padding,o=t.positioned?-r/2:-n.width/2-c,x=t.positioned?-l/2:-n.height/2-c;if(s.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",o).attr("y",x).attr("width",r).attr("height",l),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(at(s,t.props.borders,r,l),h.delete("borders")),h.forEach(u=>{i.log.warn(`Unknown node property ${u}`)})}return T(t,s),t.intersect=function(h){return D.rect(t,h)},a},"composite"),xr=i.__name(async(e,t)=>{const{shapeSvg:a}=await O(e,t,"label",!0);i.log.trace("Classes = ",t.class);const n=a.insert("rect",":first-child"),c=0,s=0;if(n.attr("width",c).attr("height",s),a.attr("class","label edgeLabel"),t.props){const r=new Set(Object.keys(t.props));t.props.borders&&(at(n,t.props.borders,c,s),r.delete("borders")),r.forEach(l=>{i.log.warn(`Unknown node property ${l}`)})}return T(t,n),t.intersect=function(r){return D.rect(t,r)},a},"labelRect");function at(e,t,a,n){const c=[],s=i.__name(l=>{c.push(l,0)},"addBorder"),r=i.__name(l=>{c.push(0,l)},"skipBorder");t.includes("t")?(i.log.debug("add top border"),s(a)):r(a),t.includes("r")?(i.log.debug("add right border"),s(n)):r(n),t.includes("b")?(i.log.debug("add bottom border"),s(a)):r(a),t.includes("l")?(i.log.debug("add left border"),s(n)):r(n),e.attr("stroke-dasharray",c.join(" "))}i.__name(at,"applyNodePropertyBorders");var yr=i.__name(async(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const n=e.insert("g").attr("class",a).attr("id",t.domId||t.id),c=n.insert("rect",":first-child"),s=n.insert("line"),r=n.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText;let o="";typeof l=="object"?o=l[0]:o=l,i.log.info("Label text abc79",o,l,typeof l=="object");const x=await P(r,o,t.labelStyle,!0,!0);let h={width:0,height:0};if(i.getEffectiveHtmlLabels(i.getConfig2())){const S=x.children[0],w=i.select(x);h=S.getBoundingClientRect(),w.attr("width",h.width),w.attr("height",h.height)}i.log.info("Text 2",l);const u=l.slice(1,l.length);let b=x.getBBox();const f=await P(r,u.join?u.join("<br/>"):u,t.labelStyle,!0,!0);if(i.getEffectiveHtmlLabels(i.getConfig2())){const S=f.children[0],w=i.select(f);h=S.getBoundingClientRect(),w.attr("width",h.width),w.attr("height",h.height)}const _=t.padding/2;return i.select(f).attr("transform","translate( "+(h.width>b.width?0:(b.width-h.width)/2)+", "+(b.height+_+5)+")"),i.select(x).attr("transform","translate( "+(h.width<b.width?0:-(b.width-h.width)/2)+", 0)"),h=r.node().getBBox(),r.attr("transform","translate("+-h.width/2+", "+(-h.height/2-_+3)+")"),c.attr("class","outer title-state").attr("x",-h.width/2-_).attr("y",-h.height/2-_).attr("width",h.width+t.padding).attr("height",h.height+t.padding),s.attr("class","divider").attr("x1",-h.width/2-_).attr("x2",h.width/2+_).attr("y1",-h.height/2-_+b.height+_).attr("y2",-h.height/2-_+b.height+_),T(t,c),t.intersect=function(S){return D.rect(t,S)},n},"rectWithTitle"),br=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.height+t.padding,s=n.width+c/4+t.padding,r=a.insert("rect",":first-child").attr("style",t.style).attr("rx",c/2).attr("ry",c/2).attr("x",-s/2).attr("y",-c/2).attr("width",s).attr("height",c);return T(t,r),t.intersect=function(l){return D.rect(t,l)},a},"stadium"),mr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n,halfPadding:c}=await O(e,t,F(t,void 0),!0),s=a.insert("circle",":first-child");return s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+c).attr("width",n.width+t.padding).attr("height",n.height+t.padding),i.log.info("Circle main"),T(t,s),t.intersect=function(r){return i.log.info("Circle intersect",t,n.width/2+c,r),D.circle(t,n.width/2+c,r)},a},"circle"),_r=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n,halfPadding:c}=await O(e,t,F(t,void 0),!0),s=5,r=a.insert("g",":first-child"),l=r.insert("circle"),o=r.insert("circle");return r.attr("class",t.class),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+c+s).attr("width",n.width+t.padding+s*2).attr("height",n.height+t.padding+s*2),o.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+c).attr("width",n.width+t.padding).attr("height",n.height+t.padding),i.log.info("DoubleCircle main"),T(t,l),t.intersect=function(x){return i.log.info("DoubleCircle intersect",t,n.width/2+c+s,x),D.circle(t,n.width/2+c+s,x)},a},"doublecircle"),wr=i.__name(async(e,t)=>{const{shapeSvg:a,bbox:n}=await O(e,t,F(t,void 0),!0),c=n.width+t.padding,s=n.height+t.padding,r=[{x:0,y:0},{x:c,y:0},{x:c,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:c+8,y:0},{x:c+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],l=Y(a,c,s,r);return l.attr("style",t.style),T(t,l),t.intersect=function(o){return D.polygon(t,r,o)},a},"subroutine"),Lr=i.__name((e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=a.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),T(t,n),t.intersect=function(c){return D.circle(t,7,c)},a},"start"),Bt=i.__name((e,t,a)=>{const n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let c=70,s=10;a==="LR"&&(c=10,s=70);const r=n.append("rect").attr("x",-1*c/2).attr("y",-1*s/2).attr("width",c).attr("height",s).attr("class","fork-join");return T(t,r),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(l){return D.rect(t,l)},n},"forkJoin"),Sr=i.__name((e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=a.insert("circle",":first-child"),c=a.insert("circle",":first-child");return c.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),T(t,c),t.intersect=function(s){return D.circle(t,7,s)},a},"end"),vr=i.__name(async(e,t)=>{const a=t.padding/2,n=4,c=8;let s;t.classes?s="node "+t.classes:s="node default";const r=e.insert("g").attr("class",s).attr("id",t.domId||t.id),l=r.insert("rect",":first-child"),o=r.insert("line"),x=r.insert("line");let h=0,u=n;const b=r.insert("g").attr("class","label");let f=0;const _=t.classData.annotations?.[0],S=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",w=await P(b,S,t.labelStyle,!0,!0);let k=w.getBBox();if(i.getEffectiveHtmlLabels(i.getConfig2())){const v=w.children[0],g=i.select(w);k=v.getBoundingClientRect(),g.attr("width",k.width),g.attr("height",k.height)}t.classData.annotations[0]&&(u+=k.height+n,h+=k.width);let C=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(i.getEffectiveHtmlLabels(i.getConfig2())?C+="&lt;"+t.classData.type+"&gt;":C+="<"+t.classData.type+">");const E=await P(b,C,t.labelStyle,!0,!0);i.select(E).attr("class","classTitle");let m=E.getBBox();if(i.getEffectiveHtmlLabels(i.getConfig2())){const v=E.children[0],g=i.select(E);m=v.getBoundingClientRect(),g.attr("width",m.width),g.attr("height",m.height)}u+=m.height+n,m.width>h&&(h=m.width);const d=[];t.classData.members.forEach(async v=>{const g=v.getDisplayDetails();let A=g.displayText;i.getEffectiveHtmlLabels(i.getConfig2())&&(A=A.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const p=await P(b,A,g.cssStyle?g.cssStyle:t.labelStyle,!0,!0);let N=p.getBBox();if(i.getEffectiveHtmlLabels(i.getConfig2())){const X=p.children[0],K=i.select(p);N=X.getBoundingClientRect(),K.attr("width",N.width),K.attr("height",N.height)}N.width>h&&(h=N.width),u+=N.height+n,d.push(p)}),u+=c;const y=[];if(t.classData.methods.forEach(async v=>{const g=v.getDisplayDetails();let A=g.displayText;i.getEffectiveHtmlLabels(i.getConfig2())&&(A=A.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const p=await P(b,A,g.cssStyle?g.cssStyle:t.labelStyle,!0,!0);let N=p.getBBox();if(i.getEffectiveHtmlLabels(i.getConfig2())){const X=p.children[0],K=i.select(p);N=X.getBoundingClientRect(),K.attr("width",N.width),K.attr("height",N.height)}N.width>h&&(h=N.width),u+=N.height+n,y.push(p)}),u+=c,_){let v=(h-k.width)/2;i.select(w).attr("transform","translate( "+(-1*h/2+v)+", "+-1*u/2+")"),f=k.height+n}let L=(h-m.width)/2;return i.select(E).attr("transform","translate( "+(-1*h/2+L)+", "+(-1*u/2+f)+")"),f+=m.height+n,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-u/2-a+c+f).attr("y2",-u/2-a+c+f),f+=c,d.forEach(v=>{i.select(v).attr("transform","translate( "+-h/2+", "+(-1*u/2+f+c/2)+")");const g=v?.getBBox();f+=(g?.height??0)+n}),f+=c,x.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-u/2-a+c+f).attr("y2",-u/2-a+c+f),f+=c,y.forEach(v=>{i.select(v).attr("transform","translate( "+-h/2+", "+(-1*u/2+f)+")");const g=v?.getBBox();f+=(g?.height??0)+n}),l.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(u/2)-a).attr("width",h+t.padding).attr("height",u+t.padding),T(t,l),t.intersect=function(v){return D.rect(t,v)},r},"class_box"),Nt={rhombus:Ct,composite:fr,question:Ct,rect:pr,labelRect:xr,rectWithTitle:yr,choice:sr,circle:mr,doublecircle:_r,stadium:br,hexagon:ir,block_arrow:nr,rect_left_inv_arrow:lr,lean_right:cr,lean_left:or,trapezoid:hr,inv_trapezoid:gr,rect_right_inv_arrow:dr,cylinder:ur,start:Lr,end:Sr,note:ar,subroutine:wr,fork:Bt,join:Bt,class_box:vr},tt={},Ut=i.__name(async(e,t,a)=>{let n,c;if(t.link){let s;i.getConfig2().securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",s),c=await Nt[t.shape](n,t,a)}else c=await Nt[t.shape](e,t,a),n=c;return t.tooltip&&c.attr("title",t.tooltip),t.class&&c.attr("class","node default "+t.class),tt[t.id]=n,t.haveCallback&&tt[t.id].attr("class",tt[t.id].attr("class")+" clickable"),n},"insertNode"),kr=i.__name(e=>{const t=tt[e.id];i.log.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n},"positionNode");function _t(e,t,a=!1){const n=e;let c="default";(n?.classes?.length||0)>0&&(c=(n?.classes??[]).join(" ")),c=c+" flowchart-label";let s=0,r="",l;switch(n.type){case"round":s=5,r="rect";break;case"composite":s=0,r="composite",l=0;break;case"square":r="rect";break;case"diamond":r="question";break;case"hexagon":r="hexagon";break;case"block_arrow":r="block_arrow";break;case"odd":r="rect_left_inv_arrow";break;case"lean_right":r="lean_right";break;case"lean_left":r="lean_left";break;case"trapezoid":r="trapezoid";break;case"inv_trapezoid":r="inv_trapezoid";break;case"rect_left_inv_arrow":r="rect_left_inv_arrow";break;case"circle":r="circle";break;case"ellipse":r="ellipse";break;case"stadium":r="stadium";break;case"subroutine":r="subroutine";break;case"cylinder":r="cylinder";break;case"group":r="rect";break;case"doublecircle":r="doublecircle";break;default:r="rect"}const o=i.getStylesFromArray(n?.styles??[]),x=n.label,h=n.size??{width:0,height:0,x:0,y:0},u=t.getDiagramId();return{labelStyle:o.labelStyle,shape:r,labelText:x,rx:s,ry:s,class:c,style:o.style,id:n.id,domId:u?`${u}-${n.id}`:n.id,directions:n.directions,width:h.width,height:h.height,x:h.x,y:h.y,positioned:a,intersect:void 0,type:n.type,padding:l??i.getConfig()?.block?.padding??0}}i.__name(_t,"getNodeFromBlock");async function Xt(e,t,a){const n=_t(t,a,!1);if(n.type==="group")return;const c=i.getConfig(),s=await Ut(e,n,{config:c}),r=s.node().getBBox(),l=a.getBlock(n.id);l.size={width:r.width,height:r.height,x:0,y:0,node:s},a.setBlock(l),s.remove()}i.__name(Xt,"calculateBlockSize");async function jt(e,t,a){const n=_t(t,a,!0);if(a.getBlock(n.id).type!=="space"){const s=i.getConfig();await Ut(e,n,{config:s}),t.intersect=n?.intersect,kr(n)}}i.__name(jt,"insertBlockPositioned");async function st(e,t,a,n){for(const c of t)await n(e,c,a),c.children&&await st(e,c.children,a,n)}i.__name(st,"performOperations");async function Vt(e,t,a){await st(e,t,a,Xt)}i.__name(Vt,"calculateBlockSizes");async function qt(e,t,a){await st(e,t,a,jt)}i.__name(qt,"insertBlocks");async function Zt(e,t,a,n,c){const s=new ee.Graph({multigraph:!0,compound:!0});s.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const r of a)r.size&&s.setNode(r.id,{width:r.size.width,height:r.size.height,intersect:r.intersect});for(const r of t)if(r.start&&r.end){const l=n.getBlock(r.start),o=n.getBlock(r.end);if(l?.size&&o?.size){const x=l.size,h=o.size,u=[{x:x.x,y:x.y},{x:x.x+(h.x-x.x)/2,y:x.y+(h.y-x.y)/2},{x:h.x,y:h.y}],b=c?`${c}-${r.id}`:r.id;Ve(e,{v:r.start,w:r.end,name:b},{...r,id:b,arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:u,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",s,c),r.label&&(await Ke(e,{...r,label:r.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:u,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),Ue({...r,x:u[1].x,y:u[1].y},{originalPath:u}))}}}i.__name(Zt,"insertEdges");var Er=i.__name(function(e,t){return t.db.getClasses()},"getClasses"),Dr=i.__name(async function(e,t,a,n){const{securityLevel:c,block:s}=i.getConfig(),r=n.db;r.setDiagramId(t);let l;c==="sandbox"&&(l=i.select("#i"+t));const o=c==="sandbox"?i.select(l.nodes()[0].contentDocument.body):i.select("body"),x=c==="sandbox"?o.select(`[id="${t}"]`):i.select(`[id="${t}"]`);Fe(x,["point","circle","cross"],n.type,t);const u=r.getBlocks(),b=r.getBlocksFlat(),f=r.getEdges(),_=x.insert("g").attr("class","block");await Vt(_,u,r);const S=Mt(r);if(await qt(_,u,r),await Zt(_,f,b,r,t),S){const w=S,k=Math.max(1,Math.round(.125*(w.width/w.height))),C=w.height+k+10,E=w.width+10,{useMaxWidth:m}=s;i.configureSvgSize(x,C,E,!!m),i.log.debug("Here Bounds",S,w),x.attr("viewBox",`${w.x-5} ${w.y-5} ${w.width+10} ${w.height+10}`)}},"draw"),Tr={draw:Dr,getClasses:Er},Cr={parser:ae,db:ve,renderer:Tr,styles:Ee};exports.diagram=Cr;