@pb33f/cowboy-components 0.14.1 → 0.15.1

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 (171) hide show
  1. package/dist/{_baseUniq-Co8RB71y.cjs → _baseUniq-CcxAQehO.cjs} +1 -1
  2. package/dist/{_baseUniq-CcG8uZM_.js → _baseUniq-D4rJF50w.js} +1 -1
  3. package/dist/{arc-CZ9OyfV-.js → arc-BBcL5DDo.js} +2 -2
  4. package/dist/{arc-D5LG9aVl.cjs → arc-DRXUQifE.cjs} +1 -1
  5. package/dist/{architecture-YZFGNWBL-CuyaOcgJ.cjs → architecture-YZFGNWBL-3WXQ3I4D.cjs} +1 -1
  6. package/dist/{architecture-YZFGNWBL-ne59NWt0.js → architecture-YZFGNWBL-6bXiGt6C.js} +1 -1
  7. package/dist/{architectureDiagram-Q4EWVU46-CxErVIKm.cjs → architectureDiagram-Q4EWVU46-BTMeQ3OF.cjs} +1 -1
  8. package/dist/{architectureDiagram-Q4EWVU46-ibaXfmmT.js → architectureDiagram-Q4EWVU46-DUvNnA5F.js} +4 -4
  9. package/dist/{blockDiagram-DXYQGD6D-D5vqojm8.js → blockDiagram-DXYQGD6D-DC7S-9ly.js} +6 -6
  10. package/dist/{blockDiagram-DXYQGD6D-iFIpSW7Y.cjs → blockDiagram-DXYQGD6D-DKjoamdG.cjs} +1 -1
  11. package/dist/{c4Diagram-AHTNJAMY-Av_INk2v.cjs → c4Diagram-AHTNJAMY-1cZN1b1j.cjs} +1 -1
  12. package/dist/{c4Diagram-AHTNJAMY-B7t5p6jA.js → c4Diagram-AHTNJAMY-C2HM5L5y.js} +2 -2
  13. package/dist/{change-list-item-Bu_mPv-k.js → change-list-item-BRSBlaLu.js} +348 -350
  14. package/dist/{change-list-item-4xBSo3-U.cjs → change-list-item-Dy1GNFQ8.cjs} +91 -91
  15. package/dist/{channel-BvR-WhLo.js → channel-BKDLVUWb.js} +1 -1
  16. package/dist/{channel-DO31wbvk.cjs → channel-BlCJ7xlY.cjs} +1 -1
  17. package/dist/{chunk-4BX2VUAB-DQ4rU_AZ.js → chunk-4BX2VUAB-CnfyXlfw.js} +1 -1
  18. package/dist/{chunk-4BX2VUAB-DHdTrTTD.cjs → chunk-4BX2VUAB-NW_XCCwP.cjs} +1 -1
  19. package/dist/{chunk-4TB4RGXK-BlskfrH8.cjs → chunk-4TB4RGXK-BJ99eS9b.cjs} +1 -1
  20. package/dist/{chunk-4TB4RGXK-BK_uuzSP.js → chunk-4TB4RGXK-gKPXAguU.js} +5 -5
  21. package/dist/{chunk-55IACEB6-BauZDeFH.js → chunk-55IACEB6-CU9_jSXF.js} +1 -1
  22. package/dist/{chunk-55IACEB6-CRJ5yCrP.cjs → chunk-55IACEB6-DDpMGjZ2.cjs} +1 -1
  23. package/dist/{chunk-EDXVE4YY-BrlRuHp3.cjs → chunk-EDXVE4YY-_kGe71HQ.cjs} +1 -1
  24. package/dist/{chunk-EDXVE4YY-DPpXfrr8.js → chunk-EDXVE4YY-hC5XWKZE.js} +1 -1
  25. package/dist/{chunk-FMBD7UC4-CtyzUnzx.js → chunk-FMBD7UC4-B3Zm2tua.js} +1 -1
  26. package/dist/{chunk-FMBD7UC4-0x38b8wg.cjs → chunk-FMBD7UC4-BeU0NsyZ.cjs} +1 -1
  27. package/dist/{chunk-OYMX7WX6-DU4Zqa7r.cjs → chunk-OYMX7WX6-BS0iw8z2.cjs} +1 -1
  28. package/dist/{chunk-OYMX7WX6-U53KZXxw.js → chunk-OYMX7WX6-N_-WeqFw.js} +3 -3
  29. package/dist/{chunk-QZHKN3VN-Dyhr8mWm.cjs → chunk-QZHKN3VN-BXMAYBIS.cjs} +1 -1
  30. package/dist/{chunk-QZHKN3VN-BhntY1rB.js → chunk-QZHKN3VN-mAIfp7aM.js} +1 -1
  31. package/dist/{chunk-YZCP3GAM--UtgfYoK.js → chunk-YZCP3GAM-BA9Cb_dj.js} +1 -1
  32. package/dist/{chunk-YZCP3GAM-B_2rYHHe.cjs → chunk-YZCP3GAM-yP8Rfi4-.cjs} +1 -1
  33. package/dist/{classDiagram-v2-HSJHXN6E-DX5nDbg5.js → classDiagram-6PBFFD2Q-DmBjAksk.js} +2 -2
  34. package/dist/{classDiagram-6PBFFD2Q-w916JDya.cjs → classDiagram-6PBFFD2Q-SGFXmgLD.cjs} +1 -1
  35. package/dist/{classDiagram-6PBFFD2Q-DX5nDbg5.js → classDiagram-v2-HSJHXN6E-DmBjAksk.js} +2 -2
  36. package/dist/{classDiagram-v2-HSJHXN6E-w916JDya.cjs → classDiagram-v2-HSJHXN6E-SGFXmgLD.cjs} +1 -1
  37. package/dist/clone-HA7BKYTg.cjs +1 -0
  38. package/dist/{clone-DFz4YXr3.js → clone-txbrtOfE.js} +1 -1
  39. package/dist/components/bundle-toolbar/bundle-toolbar.d.ts +0 -1
  40. package/dist/components/bundle-toolbar/bundle-toolbar.js +1 -3
  41. package/dist/components/editor/editor.js +114 -18
  42. package/dist/components/premium-gate/premium-gate.d.ts +1 -0
  43. package/dist/components/premium-gate/premium-gate.js +6 -0
  44. package/dist/components/rodeo/roundup.d.ts +7 -0
  45. package/dist/components/rodeo/roundup.js +40 -0
  46. package/dist/components/rodeo/user-detail.js +6 -3
  47. package/dist/components/the-doctor/doctor-editor-panel.css.js +67 -30
  48. package/dist/components/the-doctor/doctor-editor-panel.d.ts +1 -0
  49. package/dist/components/the-doctor/doctor-editor-panel.js +9 -1
  50. package/dist/components/the-doctor/doctor-navigator-panel.css.js +1 -0
  51. package/dist/components/the-doctor/doctor-sidebar-panel.d.ts +4 -1
  52. package/dist/components/the-doctor/doctor-sidebar-panel.js +18 -3
  53. package/dist/components/the-doctor/printing-press-docs-pending.css.d.ts +2 -0
  54. package/dist/components/the-doctor/printing-press-docs-pending.css.js +47 -0
  55. package/dist/components/the-doctor/printing-press-docs-pending.d.ts +12 -0
  56. package/dist/components/the-doctor/printing-press-docs-pending.js +41 -0
  57. package/dist/components/the-doctor/printing-press-docs-unavailable.css.d.ts +2 -0
  58. package/dist/components/the-doctor/printing-press-docs-unavailable.css.js +34 -0
  59. package/dist/components/the-doctor/printing-press-docs-unavailable.d.ts +12 -0
  60. package/dist/components/the-doctor/printing-press-docs-unavailable.js +35 -0
  61. package/dist/components/the-doctor/printing-press-export-controls.css.d.ts +2 -0
  62. package/dist/components/the-doctor/printing-press-export-controls.css.js +26 -0
  63. package/dist/components/the-doctor/printing-press-export-controls.d.ts +16 -0
  64. package/dist/components/the-doctor/printing-press-export-controls.js +75 -0
  65. package/dist/components/the-doctor/the-doctor.css.js +101 -8
  66. package/dist/components/the-doctor/the-doctor.d.ts +54 -2
  67. package/dist/components/the-doctor/the-doctor.js +603 -23
  68. package/dist/components/workspaces/workspace-view.d.ts +1 -5
  69. package/dist/components/workspaces/workspace-view.js +4 -11
  70. package/dist/controllers/diagnostic-controller.d.ts +2 -0
  71. package/dist/controllers/diagnostic-controller.js +40 -1
  72. package/dist/controllers/node-clicker-controller.d.ts +2 -3
  73. package/dist/controllers/spec-controller.js +1 -1
  74. package/dist/controllers/workspace-controller.d.ts +1 -2
  75. package/dist/controllers/workspace-controller.js +2 -2
  76. package/dist/{cose-bilkent-S5V4N54A-DcUKlxlF.js → cose-bilkent-S5V4N54A-DBJqJbCC.js} +2 -2
  77. package/dist/{cose-bilkent-S5V4N54A-CKHB3cR8.cjs → cose-bilkent-S5V4N54A-DKrIstpT.cjs} +1 -1
  78. package/dist/{cowboy-components-CxawaKWM.js → cowboy-components-BkbVjFUn.js} +12442 -12772
  79. package/dist/{cowboy-components-CjgqXqkM.cjs → cowboy-components-CC8oMHf-.cjs} +1517 -1637
  80. package/dist/{dagre-KV5264BT-Nl_VfI8a.js → dagre-KV5264BT-6ivm8x2F.js} +5 -5
  81. package/dist/{dagre-KV5264BT-B2JWO01l.cjs → dagre-KV5264BT-DcOLPle_.cjs} +1 -1
  82. package/dist/{diagram-5BDNPKRD-TI1X3fNz.js → diagram-5BDNPKRD-D8TDw4p9.js} +4 -4
  83. package/dist/{diagram-5BDNPKRD-BKI_3vWy.cjs → diagram-5BDNPKRD-blWzHQZ7.cjs} +1 -1
  84. package/dist/{diagram-G4DWMVQ6-CFqOAmuK.js → diagram-G4DWMVQ6-Dn6dxIqX.js} +4 -4
  85. package/dist/{diagram-G4DWMVQ6-DFBdN4sf.cjs → diagram-G4DWMVQ6-fvPAIer2.cjs} +1 -1
  86. package/dist/{diagram-MMDJMWI5-CFuTCrVQ.cjs → diagram-MMDJMWI5-DsAWXLaB.cjs} +1 -1
  87. package/dist/{diagram-MMDJMWI5-BSsV2xaN.js → diagram-MMDJMWI5-DxjVFVuv.js} +3 -3
  88. package/dist/{diagram-TYMM5635-CrgW2ZZO.cjs → diagram-TYMM5635-B4DB8EDE.cjs} +1 -1
  89. package/dist/{diagram-TYMM5635-BP1f-EB_.js → diagram-TYMM5635-BmR3CaLC.js} +3 -3
  90. package/dist/{erDiagram-SMLLAGMA-rVfyZdO4.js → erDiagram-SMLLAGMA-CYtgB5bQ.js} +4 -4
  91. package/dist/{erDiagram-SMLLAGMA-C3caLNRz.cjs → erDiagram-SMLLAGMA-DgaR7ydl.cjs} +1 -1
  92. package/dist/events/doctor.d.ts +2 -0
  93. package/dist/events/doctor.js +2 -0
  94. package/dist/{flowDiagram-DWJPFMVM-DqFXC8zL.js → flowDiagram-DWJPFMVM-BnkLG0fX.js} +6 -6
  95. package/dist/{flowDiagram-DWJPFMVM-Ce_HVRt5.cjs → flowDiagram-DWJPFMVM-lSCRydu7.cjs} +1 -1
  96. package/dist/{ganttDiagram-T4ZO3ILL-HHFgf8w4.cjs → ganttDiagram-T4ZO3ILL-CV7stMVQ.cjs} +1 -1
  97. package/dist/{ganttDiagram-T4ZO3ILL-BmNOX7yf.js → ganttDiagram-T4ZO3ILL-DDbZ3aVk.js} +3 -3
  98. package/dist/{gitGraph-7Q5UKJZL-kCDkIMWc.js → gitGraph-7Q5UKJZL-Bh_-qrDd.js} +1 -1
  99. package/dist/{gitGraph-7Q5UKJZL-DgndfdDH.cjs → gitGraph-7Q5UKJZL-C48W9r-6.cjs} +1 -1
  100. package/dist/{gitGraphDiagram-UUTBAWPF-C-Ahhj_h.js → gitGraphDiagram-UUTBAWPF-7dOdrwvn.js} +4 -4
  101. package/dist/{gitGraphDiagram-UUTBAWPF-DaVjvjth.cjs → gitGraphDiagram-UUTBAWPF-BFDetPjA.cjs} +1 -1
  102. package/dist/{graph-Dfys1tzR.js → graph-BEwWEKyK.js} +2 -2
  103. package/dist/{graph-DyZUkQBU.cjs → graph-CMqpo-tH.cjs} +1 -1
  104. package/dist/{info-OMHHGYJF-Cb_sFFZS.cjs → info-OMHHGYJF-tWjJ6Rfi.cjs} +1 -1
  105. package/dist/info-OMHHGYJF-yksB7HGd.js +5 -0
  106. package/dist/{infoDiagram-42DDH7IO-C09CiT2v.cjs → infoDiagram-42DDH7IO-B-zDHJLg.cjs} +1 -1
  107. package/dist/{infoDiagram-42DDH7IO-BP_YOQpC.js → infoDiagram-42DDH7IO-CbGARbXr.js} +2 -2
  108. package/dist/interfaces/doctor-interfaces.d.ts +10 -2
  109. package/dist/{ishikawaDiagram-UXIWVN3A-DwW6fn0e.js → ishikawaDiagram-UXIWVN3A-DQSJwN_Z.js} +1 -1
  110. package/dist/{ishikawaDiagram-UXIWVN3A-CjAoGU0v.cjs → ishikawaDiagram-UXIWVN3A-qVeMqm60.cjs} +1 -1
  111. package/dist/{journeyDiagram-VCZTEJTY-Bk7z4VA2.js → journeyDiagram-VCZTEJTY-CG--P4FG.js} +4 -4
  112. package/dist/{journeyDiagram-VCZTEJTY-CZnSwt6p.cjs → journeyDiagram-VCZTEJTY-CHaChybV.cjs} +1 -1
  113. package/dist/{kanban-definition-6JOO6SKY-BiN4nM1i.js → kanban-definition-6JOO6SKY-Buc_IGxV.js} +2 -2
  114. package/dist/{kanban-definition-6JOO6SKY-DZF8xgYV.cjs → kanban-definition-6JOO6SKY-C7CBEjZ_.cjs} +1 -1
  115. package/dist/{layout-BDanDonD.js → layout-CKSgi94P.js} +4 -4
  116. package/dist/{layout-rTQtAIwn.cjs → layout-CLgC5_hw.cjs} +1 -1
  117. package/dist/{linear-CuHSYSeN.cjs → linear-BfsPvbL_.cjs} +1 -1
  118. package/dist/{linear-DFB2dCGq.js → linear-BkA_W1oB.js} +1 -1
  119. package/dist/{mermaid-parser.core-CCHvxUQl.js → mermaid-parser.core-BMlbf7rO.js} +13 -13
  120. package/dist/{mermaid-parser.core-fjh_cn2l.cjs → mermaid-parser.core-luq90wBd.cjs} +2 -2
  121. package/dist/{min-rDRC9KDF.js → min-CVydceyS.js} +2 -2
  122. package/dist/{min-h6fs1hPk.cjs → min-Q2bX8h_x.cjs} +1 -1
  123. package/dist/{mindmap-definition-QFDTVHPH-CZMHHnKO.js → mindmap-definition-QFDTVHPH-DOvuLetv.js} +3 -3
  124. package/dist/{mindmap-definition-QFDTVHPH-BbUJ3LHd.cjs → mindmap-definition-QFDTVHPH-znF9YoVM.cjs} +1 -1
  125. package/dist/model/api-response.d.ts +1 -0
  126. package/dist/model/feature-flags.d.ts +1 -0
  127. package/dist/model/feature-flags.js +1 -0
  128. package/dist/model/roundup-stats.d.ts +7 -0
  129. package/dist/{packet-4T2RLAQJ-Bl5gBk4Q.js → packet-4T2RLAQJ-1cYABjJF.js} +1 -1
  130. package/dist/{packet-4T2RLAQJ-BRTuQgpj.cjs → packet-4T2RLAQJ-DXCBVGay.cjs} +1 -1
  131. package/dist/{pie-ZZUOXDRM-BbZyrtOg.cjs → pie-ZZUOXDRM-Bd5PsUhQ.cjs} +1 -1
  132. package/dist/pie-ZZUOXDRM-cNX2KOuy.js +5 -0
  133. package/dist/{pieDiagram-DEJITSTG-BNTE6R98.js → pieDiagram-DEJITSTG-DhMF4gRo.js} +5 -5
  134. package/dist/{pieDiagram-DEJITSTG-BpiMiYGL.cjs → pieDiagram-DEJITSTG-Pt_uCJhK.cjs} +1 -1
  135. package/dist/{quadrantDiagram-34T5L4WZ-JjtOrhxB.js → quadrantDiagram-34T5L4WZ-AM3AGl4y.js} +2 -2
  136. package/dist/{quadrantDiagram-34T5L4WZ-DODOOGae.cjs → quadrantDiagram-34T5L4WZ-DYMJdqM0.cjs} +1 -1
  137. package/dist/radar-PYXPWWZC-B1JaCxpR.js +5 -0
  138. package/dist/{radar-PYXPWWZC-CSH1N71W.cjs → radar-PYXPWWZC-vHL8avm6.cjs} +1 -1
  139. package/dist/{requirementDiagram-MS252O5E-CwV2UGNb.js → requirementDiagram-MS252O5E-6YPm5TWd.js} +3 -3
  140. package/dist/{requirementDiagram-MS252O5E-CjMpy00l.cjs → requirementDiagram-MS252O5E-Bx9DltXy.cjs} +1 -1
  141. package/dist/{sankeyDiagram-XADWPNL6-BzayPzy0.cjs → sankeyDiagram-XADWPNL6-DbrWa1O_.cjs} +1 -1
  142. package/dist/{sankeyDiagram-XADWPNL6-rri4GWAM.js → sankeyDiagram-XADWPNL6-Djyd85aw.js} +1 -1
  143. package/dist/{sequenceDiagram-FGHM5R23-BwBriXF1.js → sequenceDiagram-FGHM5R23-B-n2cTwl.js} +3 -3
  144. package/dist/{sequenceDiagram-FGHM5R23-D-YegsL-.cjs → sequenceDiagram-FGHM5R23-DAb44NgC.cjs} +1 -1
  145. package/dist/services/linting-service.d.ts +1 -0
  146. package/dist/services/linting-service.js +3 -0
  147. package/dist/services/printing-press-service.d.ts +27 -0
  148. package/dist/services/printing-press-service.js +125 -0
  149. package/dist/{stateDiagram-FHFEXIEX-Cq2H2XQO.cjs → stateDiagram-FHFEXIEX-BYBTQ_pK.cjs} +1 -1
  150. package/dist/{stateDiagram-FHFEXIEX-jfwjGp1O.js → stateDiagram-FHFEXIEX-_XKcbiJh.js} +5 -5
  151. package/dist/{stateDiagram-v2-QKLJ7IA2-Bw4Xgr7w.js → stateDiagram-v2-QKLJ7IA2-B9GVD-oD.js} +2 -2
  152. package/dist/{stateDiagram-v2-QKLJ7IA2-DKL73VEs.cjs → stateDiagram-v2-QKLJ7IA2-Bok2OiPQ.cjs} +1 -1
  153. package/dist/{timeline-definition-GMOUNBTQ-CpABxKM5.js → timeline-definition-GMOUNBTQ-BWw9gtnV.js} +2 -2
  154. package/dist/{timeline-definition-GMOUNBTQ-DP1yCayj.cjs → timeline-definition-GMOUNBTQ-BoEUyzb6.cjs} +1 -1
  155. package/dist/{treeView-SZITEDCU-BtaLEQ3S.js → treeView-SZITEDCU-BeYLCd-q.js} +1 -1
  156. package/dist/{treeView-SZITEDCU-BizNBkAv.cjs → treeView-SZITEDCU-D33mqIWv.cjs} +1 -1
  157. package/dist/{treemap-W4RFUUIX-Cbbx2tbB.cjs → treemap-W4RFUUIX-CRpxSKWx.cjs} +1 -1
  158. package/dist/{treemap-W4RFUUIX-CmVVUeZj.js → treemap-W4RFUUIX-D_S9Y3yp.js} +1 -1
  159. package/dist/{vennDiagram-DHZGUBPP-Dv3ZX8SJ.cjs → vennDiagram-DHZGUBPP-BPRTzpYw.cjs} +1 -1
  160. package/dist/{vennDiagram-DHZGUBPP-C0edoxsg.js → vennDiagram-DHZGUBPP-Cc0seIj8.js} +1 -1
  161. package/dist/{wardley-RL74JXVD-BndLe7vL.cjs → wardley-RL74JXVD-DkU-i349.cjs} +1 -1
  162. package/dist/{wardley-RL74JXVD-DdQvN9q5.js → wardley-RL74JXVD-osjJIQZA.js} +1 -1
  163. package/dist/{wardleyDiagram-NUSXRM2D-DCChf1Y2.js → wardleyDiagram-NUSXRM2D-Ci85jUQ0.js} +3 -3
  164. package/dist/{wardleyDiagram-NUSXRM2D-DpluOG7a.cjs → wardleyDiagram-NUSXRM2D-D-zT1fG0.cjs} +1 -1
  165. package/dist/{xychartDiagram-5P7HB3ND-B7y6-7BP.cjs → xychartDiagram-5P7HB3ND-DElLnXxW.cjs} +1 -1
  166. package/dist/{xychartDiagram-5P7HB3ND-BWvz1AY8.js → xychartDiagram-5P7HB3ND-jPkDnp93.js} +3 -3
  167. package/package.json +1 -1
  168. package/dist/clone-D_c-FYGd.cjs +0 -1
  169. package/dist/info-OMHHGYJF-KL9K6Ofp.js +0 -5
  170. package/dist/pie-ZZUOXDRM-CpENjo0C.js +0 -5
  171. package/dist/radar-PYXPWWZC-BiAwm-jb.js +0 -5
@@ -1,8 +1,8 @@
1
- import { _ as w, ap as F, aq as Y, ar as _, as as H, l as i, c as V, at as q, au as U, ac as $, ai as z, ad as P, ab as K, av as Q, aw as W, ax as Z } from "./cowboy-components-CxawaKWM.js";
2
- import { i as b, G as B } from "./graph-Dfys1tzR.js";
3
- import { l as I } from "./layout-BDanDonD.js";
4
- import { c as L } from "./clone-DFz4YXr3.js";
5
- import { m as A } from "./min-rDRC9KDF.js";
1
+ import { _ as w, ap as F, aq as Y, ar as _, as as H, l as i, c as V, at as q, au as U, ac as $, ai as z, ad as P, ab as K, av as Q, aw as W, ax as Z } from "./cowboy-components-BkbVjFUn.js";
2
+ import { i as b, G as B } from "./graph-BEwWEKyK.js";
3
+ import { l as I } from "./layout-CKSgi94P.js";
4
+ import { c as L } from "./clone-txbrtOfE.js";
5
+ import { m as A } from "./min-CVydceyS.js";
6
6
  function v(e) {
7
7
  var t = {
8
8
  options: {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./cowboy-components-CjgqXqkM.cjs"),X=require("./graph-DyZUkQBU.cjs"),G=require("./layout-rTQtAIwn.cjs"),R=require("./clone-D_c-FYGd.cjs"),O=require("./min-h6fs1hPk.cjs");function m(e){var o={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:M(e),edges:j(e)};return X.isUndefined(e.graph())||(o.value=R.clone(e.graph())),o}function M(e){return O.map(e.nodes(),function(o){var n=e.node(o),l=e.parent(o),r={v:o};return X.isUndefined(n)||(r.value=n),X.isUndefined(l)||(r.parent=l),r})}function j(e){return O.map(e.edges(),function(o){var n=e.edge(o),l={v:o.v,w:o.w};return X.isUndefined(o.name)||(l.name=o.name),X.isUndefined(n)||(l.value=n),l})}var a=new Map,y=new Map,P=new Map,q=t.__name(()=>{y.clear(),P.clear(),a.clear()},"clear"),_=t.__name((e,o)=>{const n=y.get(o)||[];return t.log.trace("In isDescendant",o," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),F=t.__name((e,o)=>{const n=y.get(o)||[];return t.log.info("Descendants of ",o," is ",n),t.log.info("Edge is ",e),e.v===o||e.w===o?!1:n?n.includes(e.v)||_(e.v,o)||_(e.w,o)||n.includes(e.w):(t.log.debug("Tilt, ",o,",not in descendants"),!1)},"edgeInCluster"),k=t.__name((e,o,n,l)=>{t.log.warn("Copying children of ",e,"root",l,"data",o.node(e),l);const r=o.children(e)||[];e!==l&&r.push(e),t.log.warn("Copying (nodes) clusterId",e,"nodes",r),r.forEach(s=>{if(o.children(s).length>0)k(s,o,n,l);else{const d=o.node(s);t.log.info("cp ",s," to ",l," with parent ",e),n.setNode(s,d),l!==o.parent(s)&&(t.log.warn("Setting parent",s,o.parent(s)),n.setParent(s,o.parent(s))),e!==l&&s!==e?(t.log.debug("Setting parent",s,e),n.setParent(s,e)):(t.log.info("In copy ",e,"root",l,"data",o.node(e),l),t.log.debug("Not Setting parent for node=",s,"cluster!==rootId",e!==l,"node!==clusterId",s!==e));const g=o.edges(s);t.log.debug("Copying Edges",g),g.forEach(c=>{t.log.info("Edge",c);const w=o.edge(c.v,c.w,c.name);t.log.info("Edge data",w,l);try{F(c,l)?(t.log.info("Copying as ",c.v,c.w,w,c.name),n.setEdge(c.v,c.w,w,c.name),t.log.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):t.log.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",l," clusterId:",e)}catch(h){t.log.error(h)}})}t.log.debug("Removing node",s),o.removeNode(s)})},"copy"),B=t.__name((e,o)=>{const n=o.children(e);let l=[...n];for(const r of n)P.set(r,e),l=[...l,...B(r,o)];return l},"extractDescendants"),U=t.__name((e,o,n)=>{const l=e.edges().filter(c=>c.v===o||c.w===o),r=e.edges().filter(c=>c.v===n||c.w===n),s=l.map(c=>({v:c.v===o?n:c.v,w:c.w===o?o:c.w})),d=r.map(c=>({v:c.v,w:c.w}));return s.filter(c=>d.some(w=>c.v===w.v&&c.w===w.w))},"findCommonEdges"),b=t.__name((e,o,n)=>{const l=o.children(e);if(t.log.trace("Searching children of id ",e,l),l.length<1)return e;let r;for(const s of l){const d=b(s,o,n),g=U(o,n,d);if(d)if(g.length>0)r=d;else return d}return r},"findNonClusterChild"),D=t.__name(e=>!a.has(e)||!a.get(e).externalConnections?e:a.has(e)?a.get(e).id:e,"getAnchorId"),Y=t.__name((e,o)=>{if(!e||o>10){t.log.debug("Opting out, no graph ");return}else t.log.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(t.log.warn("Cluster identified",n," Replacement id in edges: ",b(n,e,n)),y.set(n,B(n,e)),a.set(n,{id:b(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const l=e.children(n),r=e.edges();l.length>0?(t.log.debug("Cluster identified",n,y),r.forEach(s=>{const d=_(s.v,n),g=_(s.w,n);d^g&&(t.log.warn("Edge: ",s," leaves cluster ",n),t.log.warn("Descendants of XXX ",n,": ",y.get(n)),a.get(n).externalConnections=!0)})):t.log.debug("Not a cluster ",n,y)});for(let n of a.keys()){const l=a.get(n).id,r=e.parent(l);r!==n&&a.has(r)&&!a.get(r).externalConnections&&(a.get(n).id=r)}e.edges().forEach(function(n){const l=e.edge(n);t.log.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),t.log.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let r=n.v,s=n.w;if(t.log.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a.get(n.v)," --- ",a.get(n.w)),a.get(n.v)||a.get(n.w)){if(t.log.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),r=D(n.v),s=D(n.w),e.removeEdge(n.v,n.w,n.name),r!==n.v){const d=e.parent(r);a.get(d).externalConnections=!0,l.fromCluster=n.v}if(s!==n.w){const d=e.parent(s);a.get(d).externalConnections=!0,l.toCluster=n.w}t.log.warn("Fix Replacing with XXX",r,s,n.name),e.setEdge(r,s,l,n.name)}}),t.log.warn("Adjusted Graph",m(e)),A(e,0),t.log.trace(a)},"adjustClustersAndEdges"),A=t.__name((e,o)=>{if(t.log.warn("extractor - ",o,m(e),e.children("D")),o>10){t.log.error("Bailing out");return}let n=e.nodes(),l=!1;for(const r of n){const s=e.children(r);l=l||s.length>0}if(!l){t.log.debug("Done, no node has children",e.nodes());return}t.log.debug("Nodes = ",n,o);for(const r of n)if(t.log.debug("Extracting node",r,a,a.has(r)&&!a.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",o),!a.has(r))t.log.debug("Not a cluster",r,o);else if(!a.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){t.log.warn("Cluster without external connections, without a parent and with children",r,o);let d=e.graph().rankdir==="TB"?"LR":"TB";a.get(r)?.clusterData?.dir&&(d=a.get(r).clusterData.dir,t.log.warn("Fixing dir",a.get(r).clusterData.dir,d));const g=new X.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.log.warn("Old graph before copy",m(e)),k(r,e,g,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:a.get(r).clusterData,label:a.get(r).label,graph:g}),t.log.warn("New graph after copy node: (",r,")",m(g)),t.log.debug("Old graph after copy",m(e))}else t.log.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!a.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),o),t.log.debug(a);n=e.nodes(),t.log.warn("New list of nodes",n);for(const r of n){const s=e.node(r);t.log.warn(" Now next level",r,s),s?.clusterNode&&A(s.graph,o+1)}},"extractor"),J=t.__name((e,o)=>{if(o.length===0)return[];let n=Object.assign([],o);return o.forEach(l=>{const r=e.children(l),s=J(e,r);n=[...n,...s]}),n},"sorter"),H=t.__name(e=>J(e,e.children()),"sortNodesByHierarchy"),T=t.__name(async(e,o,n,l,r,s)=>{t.log.warn("Graph in recursive render:XAX",m(o),r);const d=o.graph().rankdir;t.log.trace("Dir in recursive render - dir:",d);const g=e.insert("g").attr("class","root");o.nodes()?t.log.info("Recursive render XXX",o.nodes()):t.log.info("No nodes found for",o),o.edges().length>0&&t.log.info("Recursive edges",o.edge(o.edges()[0]));const c=g.insert("g").attr("class","clusters"),w=g.insert("g").attr("class","edgePaths"),h=g.insert("g").attr("class","edgeLabels"),v=g.insert("g").attr("class","nodes");await Promise.all(o.nodes().map(async function(f){const i=o.node(f);if(r!==void 0){const u=JSON.parse(JSON.stringify(r.clusterData));t.log.trace(`Setting data for parent cluster XXX
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./cowboy-components-CC8oMHf-.cjs"),X=require("./graph-CMqpo-tH.cjs"),G=require("./layout-CLgC5_hw.cjs"),R=require("./clone-HA7BKYTg.cjs"),O=require("./min-Q2bX8h_x.cjs");function m(e){var o={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:M(e),edges:j(e)};return X.isUndefined(e.graph())||(o.value=R.clone(e.graph())),o}function M(e){return O.map(e.nodes(),function(o){var n=e.node(o),l=e.parent(o),r={v:o};return X.isUndefined(n)||(r.value=n),X.isUndefined(l)||(r.parent=l),r})}function j(e){return O.map(e.edges(),function(o){var n=e.edge(o),l={v:o.v,w:o.w};return X.isUndefined(o.name)||(l.name=o.name),X.isUndefined(n)||(l.value=n),l})}var a=new Map,y=new Map,P=new Map,q=t.__name(()=>{y.clear(),P.clear(),a.clear()},"clear"),_=t.__name((e,o)=>{const n=y.get(o)||[];return t.log.trace("In isDescendant",o," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),F=t.__name((e,o)=>{const n=y.get(o)||[];return t.log.info("Descendants of ",o," is ",n),t.log.info("Edge is ",e),e.v===o||e.w===o?!1:n?n.includes(e.v)||_(e.v,o)||_(e.w,o)||n.includes(e.w):(t.log.debug("Tilt, ",o,",not in descendants"),!1)},"edgeInCluster"),k=t.__name((e,o,n,l)=>{t.log.warn("Copying children of ",e,"root",l,"data",o.node(e),l);const r=o.children(e)||[];e!==l&&r.push(e),t.log.warn("Copying (nodes) clusterId",e,"nodes",r),r.forEach(s=>{if(o.children(s).length>0)k(s,o,n,l);else{const d=o.node(s);t.log.info("cp ",s," to ",l," with parent ",e),n.setNode(s,d),l!==o.parent(s)&&(t.log.warn("Setting parent",s,o.parent(s)),n.setParent(s,o.parent(s))),e!==l&&s!==e?(t.log.debug("Setting parent",s,e),n.setParent(s,e)):(t.log.info("In copy ",e,"root",l,"data",o.node(e),l),t.log.debug("Not Setting parent for node=",s,"cluster!==rootId",e!==l,"node!==clusterId",s!==e));const g=o.edges(s);t.log.debug("Copying Edges",g),g.forEach(c=>{t.log.info("Edge",c);const w=o.edge(c.v,c.w,c.name);t.log.info("Edge data",w,l);try{F(c,l)?(t.log.info("Copying as ",c.v,c.w,w,c.name),n.setEdge(c.v,c.w,w,c.name),t.log.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):t.log.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",l," clusterId:",e)}catch(h){t.log.error(h)}})}t.log.debug("Removing node",s),o.removeNode(s)})},"copy"),B=t.__name((e,o)=>{const n=o.children(e);let l=[...n];for(const r of n)P.set(r,e),l=[...l,...B(r,o)];return l},"extractDescendants"),U=t.__name((e,o,n)=>{const l=e.edges().filter(c=>c.v===o||c.w===o),r=e.edges().filter(c=>c.v===n||c.w===n),s=l.map(c=>({v:c.v===o?n:c.v,w:c.w===o?o:c.w})),d=r.map(c=>({v:c.v,w:c.w}));return s.filter(c=>d.some(w=>c.v===w.v&&c.w===w.w))},"findCommonEdges"),b=t.__name((e,o,n)=>{const l=o.children(e);if(t.log.trace("Searching children of id ",e,l),l.length<1)return e;let r;for(const s of l){const d=b(s,o,n),g=U(o,n,d);if(d)if(g.length>0)r=d;else return d}return r},"findNonClusterChild"),D=t.__name(e=>!a.has(e)||!a.get(e).externalConnections?e:a.has(e)?a.get(e).id:e,"getAnchorId"),Y=t.__name((e,o)=>{if(!e||o>10){t.log.debug("Opting out, no graph ");return}else t.log.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(t.log.warn("Cluster identified",n," Replacement id in edges: ",b(n,e,n)),y.set(n,B(n,e)),a.set(n,{id:b(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const l=e.children(n),r=e.edges();l.length>0?(t.log.debug("Cluster identified",n,y),r.forEach(s=>{const d=_(s.v,n),g=_(s.w,n);d^g&&(t.log.warn("Edge: ",s," leaves cluster ",n),t.log.warn("Descendants of XXX ",n,": ",y.get(n)),a.get(n).externalConnections=!0)})):t.log.debug("Not a cluster ",n,y)});for(let n of a.keys()){const l=a.get(n).id,r=e.parent(l);r!==n&&a.has(r)&&!a.get(r).externalConnections&&(a.get(n).id=r)}e.edges().forEach(function(n){const l=e.edge(n);t.log.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),t.log.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let r=n.v,s=n.w;if(t.log.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a.get(n.v)," --- ",a.get(n.w)),a.get(n.v)||a.get(n.w)){if(t.log.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),r=D(n.v),s=D(n.w),e.removeEdge(n.v,n.w,n.name),r!==n.v){const d=e.parent(r);a.get(d).externalConnections=!0,l.fromCluster=n.v}if(s!==n.w){const d=e.parent(s);a.get(d).externalConnections=!0,l.toCluster=n.w}t.log.warn("Fix Replacing with XXX",r,s,n.name),e.setEdge(r,s,l,n.name)}}),t.log.warn("Adjusted Graph",m(e)),A(e,0),t.log.trace(a)},"adjustClustersAndEdges"),A=t.__name((e,o)=>{if(t.log.warn("extractor - ",o,m(e),e.children("D")),o>10){t.log.error("Bailing out");return}let n=e.nodes(),l=!1;for(const r of n){const s=e.children(r);l=l||s.length>0}if(!l){t.log.debug("Done, no node has children",e.nodes());return}t.log.debug("Nodes = ",n,o);for(const r of n)if(t.log.debug("Extracting node",r,a,a.has(r)&&!a.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",o),!a.has(r))t.log.debug("Not a cluster",r,o);else if(!a.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){t.log.warn("Cluster without external connections, without a parent and with children",r,o);let d=e.graph().rankdir==="TB"?"LR":"TB";a.get(r)?.clusterData?.dir&&(d=a.get(r).clusterData.dir,t.log.warn("Fixing dir",a.get(r).clusterData.dir,d));const g=new X.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.log.warn("Old graph before copy",m(e)),k(r,e,g,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:a.get(r).clusterData,label:a.get(r).label,graph:g}),t.log.warn("New graph after copy node: (",r,")",m(g)),t.log.debug("Old graph after copy",m(e))}else t.log.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!a.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),o),t.log.debug(a);n=e.nodes(),t.log.warn("New list of nodes",n);for(const r of n){const s=e.node(r);t.log.warn(" Now next level",r,s),s?.clusterNode&&A(s.graph,o+1)}},"extractor"),J=t.__name((e,o)=>{if(o.length===0)return[];let n=Object.assign([],o);return o.forEach(l=>{const r=e.children(l),s=J(e,r);n=[...n,...s]}),n},"sorter"),H=t.__name(e=>J(e,e.children()),"sortNodesByHierarchy"),T=t.__name(async(e,o,n,l,r,s)=>{t.log.warn("Graph in recursive render:XAX",m(o),r);const d=o.graph().rankdir;t.log.trace("Dir in recursive render - dir:",d);const g=e.insert("g").attr("class","root");o.nodes()?t.log.info("Recursive render XXX",o.nodes()):t.log.info("No nodes found for",o),o.edges().length>0&&t.log.info("Recursive edges",o.edge(o.edges()[0]));const c=g.insert("g").attr("class","clusters"),w=g.insert("g").attr("class","edgePaths"),h=g.insert("g").attr("class","edgeLabels"),v=g.insert("g").attr("class","nodes");await Promise.all(o.nodes().map(async function(f){const i=o.node(f);if(r!==void 0){const u=JSON.parse(JSON.stringify(r.clusterData));t.log.trace(`Setting data for parent cluster XXX
2
2
  Node.id = `,f,`
3
3
  data=`,u.height,`
4
4
  Parent cluster`,r.height),o.setNode(r.id,u),o.parent(f)||(t.log.trace("Setting parent",f,r.id),o.setParent(f,r.id,u))}if(t.log.info("(Insert) Node XXX"+f+": "+JSON.stringify(o.node(f))),i?.clusterNode){t.log.info("Cluster identified XBX",f,i.width,o.node(f));const{ranksep:u,nodesep:E}=o.graph();i.graph.setGraph({...i.graph.graph(),ranksep:u+25,nodesep:E});const N=await T(v,i.graph,n,l,o.node(f),s),S=N.elem;t.updateNodeBounds(i,S),i.diff=N.diff||0,t.log.info("New compound node after recursive render XAX",f,"width",i.width,"height",i.height),t.setNodeElem(S,i)}else o.children(f).length>0?(t.log.trace("Cluster - the non recursive path XBX",f,i.id,i,i.width,"Graph:",o),t.log.trace(b(i.id,o)),a.set(i.id,{id:b(i.id,o),node:i})):(t.log.trace("Node - the non recursive path XAX",f,v,o.node(f),d),await t.insertNode(v,o.node(f),{config:s,dir:d}))})),await t.__name(async()=>{const f=o.edges().map(async function(i){const u=o.edge(i.v,i.w,i.name);t.log.info("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(i)),t.log.info("Edge "+i.v+" -> "+i.w+": ",i," ",JSON.stringify(o.edge(i))),t.log.info("Fix",a,"ids:",i.v,i.w,"Translating: ",a.get(i.v),a.get(i.w)),await t.insertEdgeLabel(h,u)});await Promise.all(f)},"processEdges")(),t.log.info("Graph before layout:",JSON.stringify(m(o))),t.log.info("############################################# XXX"),t.log.info("### Layout ### XXX"),t.log.info("############################################# XXX"),G.layout(o),t.log.info("Graph after layout:",JSON.stringify(m(o)));let x=0,{subGraphTitleTotalMargin:C}=t.getSubGraphTitleMargins(s);return await Promise.all(H(o).map(async function(f){const i=o.node(f);if(t.log.info("Position XBX => "+f+": ("+i.x,","+i.y,") width: ",i.width," height: ",i.height),i?.clusterNode)i.y+=C,t.log.info("A tainted cluster node XBX1",f,i.id,i.width,i.height,i.x,i.y,o.parent(f)),a.get(i.id).node=i,t.positionNode(i);else if(o.children(f).length>0){t.log.info("A pure cluster node XBX1",f,i.id,i.x,i.y,i.width,i.height,o.parent(f)),i.height+=C,o.node(i.parentId);const u=i?.padding/2||0,E=i?.labelBBox?.height||0,N=E-u||0;t.log.debug("OffsetY",N,"labelHeight",E,"halfPadding",u),await t.insertCluster(c,i),a.get(i.id).node=i}else{const u=o.node(i.parentId);i.y+=C/2,t.log.info("A regular node XBX1 - using the padding",i.id,"parent",i.parentId,i.width,i.height,i.x,i.y,"offsetY",i.offsetY,"parent",u,u?.offsetY,i),t.positionNode(i)}})),o.edges().forEach(function(f){const i=o.edge(f);t.log.info("Edge "+f.v+" -> "+f.w+": "+JSON.stringify(i),i),i.points.forEach(S=>S.y+=C/2);const u=o.node(f.v);var E=o.node(f.w);const N=t.insertEdge(w,i,a,n,u,E,l);t.positionEdgeLabel(i,N)}),o.nodes().forEach(function(f){const i=o.node(f);t.log.info(f,i.type,i.diff),i.isGroup&&(x=i.diff)}),t.log.warn("Returning from recursive render XAX",g,x),{elem:g,diff:x}},"recursiveRender"),V=t.__name(async(e,o)=>{const n=new X.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),l=o.select("g");t.markers_default(l,e.markers,e.type,e.diagramId),t.clear2(),t.clear$1(),t.clear$2(),q(),e.nodes.forEach(s=>{n.setNode(s.id,{...s}),s.parentId&&n.setParent(s.id,s.parentId)}),t.log.debug("Edges:",e.edges),e.edges.forEach(s=>{if(s.start===s.end){const d=s.start,g=d+"---"+d+"---1",c=d+"---"+d+"---2",w=n.node(d);n.setNode(g,{domId:g,id:g,parentId:w.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(g,w.parentId),n.setNode(c,{domId:c,id:c,parentId:w.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(c,w.parentId);const h=structuredClone(s),v=structuredClone(s),p=structuredClone(s);h.label="",h.arrowTypeEnd="none",h.id=d+"-cyclic-special-1",v.arrowTypeStart="none",v.arrowTypeEnd="none",v.id=d+"-cyclic-special-mid",p.label="",w.isGroup&&(h.fromCluster=d,p.toCluster=d),p.id=d+"-cyclic-special-2",p.arrowTypeStart="none",n.setEdge(d,g,h,d+"-cyclic-special-0"),n.setEdge(g,c,v,d+"-cyclic-special-1"),n.setEdge(c,d,p,d+"-cyc<lic-special-2")}else n.setEdge(s.start,s.end,{...s},s.id)}),t.log.warn("Graph at first:",JSON.stringify(m(n))),Y(n),t.log.warn("Graph after XAX:",JSON.stringify(m(n)));const r=t.getConfig2();await T(l,n,e.type,e.diagramId,void 0,r)},"render");exports.render=V;
@@ -1,7 +1,7 @@
1
- import { _ as s, p as x, b as f, s as C, q as B, g as T, a as y, F as u, l as k, I as V, e as _, D, G as N, z as S } from "./cowboy-components-CxawaKWM.js";
2
- import { p as I } from "./chunk-4BX2VUAB-DQ4rU_AZ.js";
3
- import { I as $ } from "./chunk-QZHKN3VN-BhntY1rB.js";
4
- import { p as z } from "./mermaid-parser.core-CCHvxUQl.js";
1
+ import { _ as s, p as x, b as f, s as C, q as B, g as T, a as y, F as u, l as k, I as V, e as _, D, G as N, z as S } from "./cowboy-components-BkbVjFUn.js";
2
+ import { p as I } from "./chunk-4BX2VUAB-CnfyXlfw.js";
3
+ import { I as $ } from "./chunk-QZHKN3VN-mAIfp7aM.js";
4
+ import { p as z } from "./mermaid-parser.core-BMlbf7rO.js";
5
5
  var d = new $(() => ({
6
6
  cnt: 1,
7
7
  stack: [
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cowboy-components-CjgqXqkM.cjs"),w=require("./chunk-4BX2VUAB-DHdTrTTD.cjs"),b=require("./chunk-QZHKN3VN-Dyhr8mWm.cjs"),k=require("./mermaid-parser.core-fjh_cn2l.cjs");var d=new b.ImperativeState(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),T=e.__name(()=>{d.reset(),e.clear()},"clear"),C=e.__name(()=>d.records.stack[0],"getRoot"),x=e.__name(()=>d.records.cnt,"getCount"),y=e.defaultConfig_default.treeView,B=e.__name(()=>e.cleanAndMerge(y,e.getConfig().treeView),"getConfig"),f=e.__name((t,r)=>{for(;t<=d.records.stack[d.records.stack.length-1].level;)d.records.stack.pop();const a={id:d.records.cnt++,level:t,name:r,children:[]};d.records.stack[d.records.stack.length-1].children.push(a),d.records.stack.push(a)},"addNode"),A={clear:T,addNode:f,getRoot:C,getCount:x,getConfig:B,getAccTitle:e.getAccTitle,getAccDescription:e.getAccDescription,getDiagramTitle:e.getDiagramTitle,setAccDescription:e.setAccDescription,setAccTitle:e.setAccTitle,setDiagramTitle:e.setDiagramTitle},u=A,V=e.__name(t=>{w.populateCommonDb(t,u),t.nodes.map(r=>u.addNode(r.indent?parseInt(r.indent):0,r.name))},"populate"),D={parse:e.__name(async t=>{const r=await k.parse("treeView",t);e.log.debug(r),V(r)},"parse")},N=e.__name((t,r,a,i,s)=>{const c=i.append("text").text(a.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:g,width:n}=c.node().getBBox(),l=g+s.paddingY*2,o=n+s.paddingX*2;c.attr("x",t+s.paddingX),c.attr("y",r+l/2),a.BBox={x:t,y:r,width:o,height:l}},"positionLabel"),v=e.__name((t,r,a,i,s,c)=>t.append("line").attr("x1",r).attr("y1",a).attr("x2",i).attr("y2",s).attr("stroke-width",c).attr("class","treeView-node-line"),"positionLine"),S=e.__name((t,r,a)=>{let i=0,s=0;const c=e.__name((n,l,o,p)=>{const m=p*(o.rowIndent+o.paddingX);N(m,i,l,n,o);const{height:h,width:_}=l.BBox;v(n,m-o.rowIndent,i+h/2,m,i+h/2,o.lineThickness),s=Math.max(s,m+_),i+=h},"drawNode"),g=e.__name((n,l=0)=>{c(t,n,a,l),n.children.forEach(h=>{g(h,l+1)});const{x:o,y:p,height:m}=n.BBox;if(n.children.length){const{y:h,height:_}=n.children[n.children.length-1].BBox;v(t,o+a.paddingX,p+m,o+a.paddingX,h+_/2+a.lineThickness/2,a.lineThickness)}},"processNode");return g(r),{totalHeight:i,totalWidth:s}},"drawTree"),X=e.__name((t,r,a,i)=>{e.log.debug(`Rendering treeView diagram
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cowboy-components-CC8oMHf-.cjs"),w=require("./chunk-4BX2VUAB-NW_XCCwP.cjs"),b=require("./chunk-QZHKN3VN-BXMAYBIS.cjs"),k=require("./mermaid-parser.core-luq90wBd.cjs");var d=new b.ImperativeState(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),T=e.__name(()=>{d.reset(),e.clear()},"clear"),C=e.__name(()=>d.records.stack[0],"getRoot"),x=e.__name(()=>d.records.cnt,"getCount"),y=e.defaultConfig_default.treeView,B=e.__name(()=>e.cleanAndMerge(y,e.getConfig().treeView),"getConfig"),f=e.__name((t,r)=>{for(;t<=d.records.stack[d.records.stack.length-1].level;)d.records.stack.pop();const a={id:d.records.cnt++,level:t,name:r,children:[]};d.records.stack[d.records.stack.length-1].children.push(a),d.records.stack.push(a)},"addNode"),A={clear:T,addNode:f,getRoot:C,getCount:x,getConfig:B,getAccTitle:e.getAccTitle,getAccDescription:e.getAccDescription,getDiagramTitle:e.getDiagramTitle,setAccDescription:e.setAccDescription,setAccTitle:e.setAccTitle,setDiagramTitle:e.setDiagramTitle},u=A,V=e.__name(t=>{w.populateCommonDb(t,u),t.nodes.map(r=>u.addNode(r.indent?parseInt(r.indent):0,r.name))},"populate"),D={parse:e.__name(async t=>{const r=await k.parse("treeView",t);e.log.debug(r),V(r)},"parse")},N=e.__name((t,r,a,i,s)=>{const c=i.append("text").text(a.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:g,width:n}=c.node().getBBox(),l=g+s.paddingY*2,o=n+s.paddingX*2;c.attr("x",t+s.paddingX),c.attr("y",r+l/2),a.BBox={x:t,y:r,width:o,height:l}},"positionLabel"),v=e.__name((t,r,a,i,s,c)=>t.append("line").attr("x1",r).attr("y1",a).attr("x2",i).attr("y2",s).attr("stroke-width",c).attr("class","treeView-node-line"),"positionLine"),S=e.__name((t,r,a)=>{let i=0,s=0;const c=e.__name((n,l,o,p)=>{const m=p*(o.rowIndent+o.paddingX);N(m,i,l,n,o);const{height:h,width:_}=l.BBox;v(n,m-o.rowIndent,i+h/2,m,i+h/2,o.lineThickness),s=Math.max(s,m+_),i+=h},"drawNode"),g=e.__name((n,l=0)=>{c(t,n,a,l),n.children.forEach(h=>{g(h,l+1)});const{x:o,y:p,height:m}=n.BBox;if(n.children.length){const{y:h,height:_}=n.children[n.children.length-1].BBox;v(t,o+a.paddingX,p+m,o+a.paddingX,h+_/2+a.lineThickness/2,a.lineThickness)}},"processNode");return g(r),{totalHeight:i,totalWidth:s}},"drawTree"),X=e.__name((t,r,a,i)=>{e.log.debug(`Rendering treeView diagram
2
2
  `+t);const s=i.db,c=s.getRoot(),g=s.getConfig(),n=e.selectSvgElement(r),l=n.append("g");l.attr("class","tree-view");const{totalHeight:o,totalWidth:p}=S(l,c,g);n.attr("viewBox",`-${g.lineThickness/2} 0 ${p} ${o}`),e.configureSvgSize(n,o,p,g.useMaxWidth)},"draw"),$={draw:X},H=$,M={labelFontSize:"16px",labelColor:"black",lineColor:"black"},q=e.__name(({treeView:t})=>{const{labelFontSize:r,labelColor:a,lineColor:i}=e.cleanAndMerge(M,t);return`
3
3
  .treeView-node-label {
4
4
  font-size: ${r};
@@ -1,7 +1,7 @@
1
- import { _ as w, K as he, D as ee, F as J, I as ue, e as pe, l as Q, b6 as P, d as j, b as fe, a as me, p as ge, q as ye, g as Se, s as ve, G as xe, b7 as be, z as we } from "./cowboy-components-CxawaKWM.js";
2
- import { s as Ce } from "./chunk-EDXVE4YY-DPpXfrr8.js";
3
- import { p as Te } from "./chunk-4BX2VUAB-DQ4rU_AZ.js";
4
- import { p as Le } from "./mermaid-parser.core-CCHvxUQl.js";
1
+ import { _ as w, K as he, D as ee, F as J, I as ue, e as pe, l as Q, b6 as P, d as j, b as fe, a as me, p as ge, q as ye, g as Se, s as ve, G as xe, b7 as be, z as we } from "./cowboy-components-BkbVjFUn.js";
2
+ import { s as Ce } from "./chunk-EDXVE4YY-hC5XWKZE.js";
3
+ import { p as Te } from "./chunk-4BX2VUAB-CnfyXlfw.js";
4
+ import { p as Le } from "./mermaid-parser.core-BMlbf7rO.js";
5
5
  import { b as O } from "./defaultLocale-BgPVtth8.js";
6
6
  import { o as Z } from "./ordinal-DfAQgscy.js";
7
7
  function $e(t) {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./cowboy-components-CjgqXqkM.cjs"),se=require("./chunk-EDXVE4YY-BrlRuHp3.cjs"),ie=require("./chunk-4BX2VUAB-DHdTrTTD.cjs"),oe=require("./mermaid-parser.core-fjh_cn2l.cjs"),I=require("./defaultLocale-C4wbwF1n.cjs"),U=require("./ordinal-CagbB1m8.cjs");function ce(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function de(){return this.eachAfter(ce)}function he(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function ue(t,a){for(var l=this,n=[l],r,i,d=-1;l=n.pop();)if(t.call(a,l,++d,this),r=l.children)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function pe(t,a){for(var l=this,n=[l],r=[],i,d,u,m=-1;l=n.pop();)if(r.push(l),i=l.children)for(d=0,u=i.length;d<u;++d)n.push(i[d]);for(;l=r.pop();)t.call(a,l,++m,this);return this}function fe(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function ge(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,r=n&&n.length;--r>=0;)l+=n[r].value;a.value=l})}function me(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function ye(t){for(var a=this,l=Se(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var r=n.length;t!==l;)n.splice(r,0,t),t=t.parent;return n}function Se(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),r=null;for(t=l.pop(),a=n.pop();t===a;)r=t,t=l.pop(),a=n.pop();return r}function ve(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function xe(){return Array.from(this)}function be(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function we(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ce(){var t=this,a,l=[t],n,r,i;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(r=0,i=n.length;r<i;++r)l.push(n[r]);while(l.length)}function Z(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Le)):a===void 0&&(a=Te);for(var l=new Y(t),n,r=[l],i,d,u,m;n=r.pop();)if((d=a(n.data))&&(m=(d=Array.from(d)).length))for(n.children=d,u=m-1;u>=0;--u)r.push(i=d[u]=new Y(d[u])),i.parent=n,i.depth=n.depth+1;return l.eachBefore(Ae)}function _e(){return Z(this).eachBefore($e)}function Te(t){return t.children}function Le(t){return Array.isArray(t)?t[1]:null}function $e(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Ae(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=Z.prototype={constructor:Y,count:de,each:he,eachAfter:pe,eachBefore:ue,find:fe,sum:ge,sort:me,path:ye,ancestors:ve,descendants:xe,leaves:be,links:we,copy:_e,[Symbol.iterator]:Ce};function Me(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function O(t){return function(){return t}}function Fe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ne(t,a,l,n,r){for(var i=t.children,d,u=-1,m=i.length,c=t.value&&(n-a)/t.value;++u<m;)d=i[u],d.y0=l,d.y1=r,d.x0=a,d.x1=a+=d.value*c}function Ve(t,a,l,n,r){for(var i=t.children,d,u=-1,m=i.length,c=t.value&&(r-l)/t.value;++u<m;)d=i[u],d.x0=a,d.x1=n,d.y0=l,d.y1=l+=d.value*c}var ke=(1+Math.sqrt(5))/2;function ze(t,a,l,n,r,i){for(var d=[],u=a.children,m,c,p=0,w=0,s=u.length,b,v,x=a.value,f,y,F,M,z,E,N;p<s;){b=r-l,v=i-n;do f=u[w++].value;while(!f&&w<s);for(y=F=f,E=Math.max(v/b,b/v)/(x*t),N=f*f*E,z=Math.max(F/N,N/y);w<s;++w){if(f+=c=u[w].value,c<y&&(y=c),c>F&&(F=c),N=f*f*E,M=Math.max(F/N,N/y),M>z){f-=c;break}z=M}d.push(m={value:f,dice:b<v,children:u.slice(p,w)}),m.dice?Ne(m,l,n,r,x?n+=v*f/x:i):Ve(m,l,n,x?l+=b*f/x:r,i),x-=f,p=w}return d}const De=(function t(a){function l(n,r,i,d,u){ze(a,n,r,i,d,u)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(ke);function Pe(){var t=De,a=!1,l=1,n=1,r=[0],i=q,d=q,u=q,m=q,c=q;function p(s){return s.x0=s.y0=0,s.x1=l,s.y1=n,s.eachBefore(w),r=[0],a&&s.eachBefore(Fe),s}function w(s){var b=r[s.depth],v=s.x0+b,x=s.y0+b,f=s.x1-b,y=s.y1-b;f<v&&(v=f=(v+f)/2),y<x&&(x=y=(x+y)/2),s.x0=v,s.y0=x,s.x1=f,s.y1=y,s.children&&(b=r[s.depth+1]=i(s)/2,v+=c(s)-b,x+=d(s)-b,f-=u(s)-b,y-=m(s)-b,f<v&&(v=f=(v+f)/2),y<x&&(x=y=(x+y)/2),t(s,v,x,f,y))}return p.round=function(s){return arguments.length?(a=!!s,p):a},p.size=function(s){return arguments.length?(l=+s[0],n=+s[1],p):[l,n]},p.tile=function(s){return arguments.length?(t=Me(s),p):t},p.padding=function(s){return arguments.length?p.paddingInner(s).paddingOuter(s):p.paddingInner()},p.paddingInner=function(s){return arguments.length?(i=typeof s=="function"?s:O(+s),p):i},p.paddingOuter=function(s){return arguments.length?p.paddingTop(s).paddingRight(s).paddingBottom(s).paddingLeft(s):p.paddingTop()},p.paddingTop=function(s){return arguments.length?(d=typeof s=="function"?s:O(+s),p):d},p.paddingRight=function(s){return arguments.length?(u=typeof s=="function"?s:O(+s),p):u},p.paddingBottom=function(s){return arguments.length?(m=typeof s=="function"?s:O(+s),p):m},p.paddingLeft=function(s){return arguments.length?(c=typeof s=="function"?s:O(+s),p):c},p}var B,K=(B=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=h.setAccTitle,this.getAccTitle=h.getAccTitle,this.setDiagramTitle=h.setDiagramTitle,this.getDiagramTitle=h.getDiagramTitle,this.getAccDescription=h.getAccDescription,this.setAccDescription=h.setAccDescription}getNodes(){return this.nodes}getConfig(){const a=h.defaultConfig_default,l=h.getConfig();return h.cleanAndMerge({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},r=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(i=>{h.isLabelStyle(i)&&(n?.textStyles?n.textStyles.push(i):n.textStyles=[i]),n?.styles?n.styles.push(i):n.styles=[i]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){h.clear(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},h.__name(B,"TreeMapDB"),B);function Q(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const r={name:n.name,children:n.type==="Leaf"?void 0:[]};for(r.classSelector=n?.classSelector,n?.cssCompiledStyles&&(r.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(r.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(r);else{const i=l[l.length-1].node;i.children?i.children.push(r):i.children=[r]}n.type!=="Leaf"&&l.push({node:r,level:n.level})}),a}h.__name(Q,"buildHierarchy");var Be=h.__name((t,a)=>{ie.populateCommonDb(t,a);const l=[];for(const i of t.TreemapRows??[])i.$type==="ClassDefStatement"&&a.addClass(i.className??"",i.styleText??"");for(const i of t.TreemapRows??[]){const d=i.item;if(!d)continue;const u=i.indent?parseInt(i.indent):0,m=Ee(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],p=c.length>0?c:void 0,w={level:u,name:m,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:p};l.push(w)}const n=Q(l),r=h.__name((i,d)=>{for(const u of i)a.addNode(u,d),u.children&&u.children.length>0&&r(u.children,d+1)},"addNodesRecursively");r(n,0)},"populate"),Ee=h.__name(t=>t.name?String(t.name):"","getItemName"),ee={parser:{yy:void 0},parse:h.__name(async t=>{try{const a=oe.parse,l=await a("treemap",t);h.log.debug("Treemap AST:",l);const n=ee.parser?.yy;if(!(n instanceof K))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Be(l,n)}catch(a){throw h.log.error("Error parsing treemap:",a),a}},"parse")},Re=10,P=10,X=25,We=h.__name((t,a,l,n)=>{const r=n.db,i=r.getConfig(),d=i.padding??Re,u=r.getDiagramTitle(),m=r.getRoot(),{themeVariables:c}=h.getConfig();if(!m)return;const p=u?30:0,w=h.selectSvgElement(a),s=i.nodeWidth?i.nodeWidth*P:960,b=i.nodeHeight?i.nodeHeight*P:500,v=s,x=b+p;w.attr("viewBox",`0 0 ${v} ${x}`),h.configureSvgSize(w,x,v,i.useMaxWidth);let f;try{const e=i.valueFormat||",";if(e==="$0,0")f=h.__name(o=>"$"+I.format(",")(o),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const o=/\.\d+/.exec(e),g=o?o[0]:"";f=h.__name(C=>"$"+I.format(","+g)(C),"valueFormat")}else if(e.startsWith("$")){const o=e.substring(1);f=h.__name(g=>"$"+I.format(o||"")(g),"valueFormat")}else f=I.format(e)}catch(e){h.log.error("Error creating format function:",e),f=I.format(",")}const y=U.ordinal().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),F=U.ordinal().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),M=U.ordinal().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);u&&w.append("text").attr("x",v/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const z=w.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),E=Z(m).sum(e=>e.value??0).sort((e,o)=>(o.value??0)-(e.value??0)),J=Pe().size([s,b]).paddingTop(e=>e.children&&e.children.length>0?X+P:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?P:0).paddingRight(e=>e.children&&e.children.length>0?P:0).paddingBottom(e=>e.children&&e.children.length>0?P:0).round(!0)(E),te=J.descendants().filter(e=>e.children&&e.children.length>0),R=z.selectAll(".treemapSection").data(te).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),R.append("clipPath").attr("id",(e,o)=>`clip-section-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,o)=>`treemapSection section${o}`).attr("fill",e=>y(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>F(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const o=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o.nodeStyles+";"+o.borderStyles.join(";")}),R.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const o="dominant-baseline: middle; font-size: 12px; fill:"+M(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const o=h.select(this),g=e.data.name;o.text(g);const C=e.x1-e.x0,T=6;let L;i.showValues!==!1&&e.value?L=C-10-30-10-T:L=C-T-6;const $=Math.max(15,L),S=o.node();if(S.getComputedTextLength()>$){let _=g;for(;_.length>0;){if(_=g.substring(0,_.length-1),_.length===0){o.text("..."),S.getComputedTextLength()>$&&o.text("");break}if(o.text(_+"..."),S.getComputedTextLength()<=$)break}}}),i.showValues!==!1&&R.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?f(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const o="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+M(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")});const ae=J.leaves(),G=z.selectAll(".treemapLeafGroup").data(ae).enter().append("g").attr("class",(e,o)=>`treemapNode treemapLeafGroup leaf${o}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);G.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("style",e=>h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("stroke-width",3),G.append("clipPath").attr("id",(e,o)=>`clip-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),G.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const o="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+M(e.data.name)+";",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,o)=>`url(#clip-${a}-${o})`).text(e=>e.data.name).each(function(e){const o=h.select(this),g=e.x1-e.x0,C=e.y1-e.y0,T=o.node(),L=4,D=g-2*L,$=C-2*L;if(D<10||$<10){o.style("display","none");return}let S=parseInt(o.style("font-size"),10);const V=8,A=28,_=.6,k=6,W=2;for(;T.getComputedTextLength()>D&&S>V;)S--,o.style("font-size",`${S}px`);let H=Math.max(k,Math.min(A,Math.round(S*_))),j=S+W+H;for(;j>$&&S>V&&(S--,H=Math.max(k,Math.min(A,Math.round(S*_))),!(H<k&&S===V));)o.style("font-size",`${S}px`),j=S+W+H;o.style("font-size",`${S}px`),(T.getComputedTextLength()>D||S<V||$<S)&&o.style("display","none")}),i.showValues!==!1&&G.append("text").attr("class","treemapValue").attr("x",o=>(o.x1-o.x0)/2).attr("y",function(o){return(o.y1-o.y0)/2}).attr("style",o=>{const g="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+M(o.data.name)+";",C=h.styles2String({cssCompiledStyles:o.data.cssCompiledStyles});return g+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(o,g)=>`url(#clip-${a}-${g})`).text(o=>o.value?f(o.value):"").each(function(o){const g=h.select(this),C=this.parentNode;if(!C){g.style("display","none");return}const T=h.select(C).select(".treemapLabel");if(T.empty()||T.style("display")==="none"){g.style("display","none");return}const L=parseFloat(T.style("font-size")),D=28,$=.6,S=6,V=2,A=Math.max(S,Math.min(D,Math.round(L*$)));g.style("font-size",`${A}px`);const k=(o.y1-o.y0)/2+L/2+V;g.attr("y",k);const W=o.x1-o.x0,le=o.y1-o.y0-4,re=W-8;g.node().getComputedTextLength()>re||k+A>le||A<S?g.style("display","none"):g.style("display",null)});const ne=i.diagramPadding??8;se.setupViewPortForSVG(w,ne,"flowchart",i?.useMaxWidth||!1)},"draw"),He=h.__name(function(t,a){return a.db.getClasses()},"getClasses"),Ie={draw:We,getClasses:He},qe={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Oe=h.__name(({treemap:t}={})=>{const a=h.getThemeVariables3(),l=h.getConfig(),n=h.cleanAndMerge(a,l.themeVariables),r=h.cleanAndMerge(qe,t),i=r.titleColor??n.titleColor,d=r.labelColor??n.textColor,u=r.valueColor??n.textColor;return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./cowboy-components-CC8oMHf-.cjs"),se=require("./chunk-EDXVE4YY-_kGe71HQ.cjs"),ie=require("./chunk-4BX2VUAB-NW_XCCwP.cjs"),oe=require("./mermaid-parser.core-luq90wBd.cjs"),I=require("./defaultLocale-C4wbwF1n.cjs"),U=require("./ordinal-CagbB1m8.cjs");function ce(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function de(){return this.eachAfter(ce)}function he(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function ue(t,a){for(var l=this,n=[l],r,i,d=-1;l=n.pop();)if(t.call(a,l,++d,this),r=l.children)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function pe(t,a){for(var l=this,n=[l],r=[],i,d,u,m=-1;l=n.pop();)if(r.push(l),i=l.children)for(d=0,u=i.length;d<u;++d)n.push(i[d]);for(;l=r.pop();)t.call(a,l,++m,this);return this}function fe(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function ge(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,r=n&&n.length;--r>=0;)l+=n[r].value;a.value=l})}function me(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function ye(t){for(var a=this,l=Se(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var r=n.length;t!==l;)n.splice(r,0,t),t=t.parent;return n}function Se(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),r=null;for(t=l.pop(),a=n.pop();t===a;)r=t,t=l.pop(),a=n.pop();return r}function ve(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function xe(){return Array.from(this)}function be(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function we(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ce(){var t=this,a,l=[t],n,r,i;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(r=0,i=n.length;r<i;++r)l.push(n[r]);while(l.length)}function Z(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Le)):a===void 0&&(a=Te);for(var l=new Y(t),n,r=[l],i,d,u,m;n=r.pop();)if((d=a(n.data))&&(m=(d=Array.from(d)).length))for(n.children=d,u=m-1;u>=0;--u)r.push(i=d[u]=new Y(d[u])),i.parent=n,i.depth=n.depth+1;return l.eachBefore(Ae)}function _e(){return Z(this).eachBefore($e)}function Te(t){return t.children}function Le(t){return Array.isArray(t)?t[1]:null}function $e(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Ae(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=Z.prototype={constructor:Y,count:de,each:he,eachAfter:pe,eachBefore:ue,find:fe,sum:ge,sort:me,path:ye,ancestors:ve,descendants:xe,leaves:be,links:we,copy:_e,[Symbol.iterator]:Ce};function Me(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function O(t){return function(){return t}}function Fe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ne(t,a,l,n,r){for(var i=t.children,d,u=-1,m=i.length,c=t.value&&(n-a)/t.value;++u<m;)d=i[u],d.y0=l,d.y1=r,d.x0=a,d.x1=a+=d.value*c}function Ve(t,a,l,n,r){for(var i=t.children,d,u=-1,m=i.length,c=t.value&&(r-l)/t.value;++u<m;)d=i[u],d.x0=a,d.x1=n,d.y0=l,d.y1=l+=d.value*c}var ke=(1+Math.sqrt(5))/2;function ze(t,a,l,n,r,i){for(var d=[],u=a.children,m,c,p=0,w=0,s=u.length,b,v,x=a.value,f,y,F,M,z,E,N;p<s;){b=r-l,v=i-n;do f=u[w++].value;while(!f&&w<s);for(y=F=f,E=Math.max(v/b,b/v)/(x*t),N=f*f*E,z=Math.max(F/N,N/y);w<s;++w){if(f+=c=u[w].value,c<y&&(y=c),c>F&&(F=c),N=f*f*E,M=Math.max(F/N,N/y),M>z){f-=c;break}z=M}d.push(m={value:f,dice:b<v,children:u.slice(p,w)}),m.dice?Ne(m,l,n,r,x?n+=v*f/x:i):Ve(m,l,n,x?l+=b*f/x:r,i),x-=f,p=w}return d}const De=(function t(a){function l(n,r,i,d,u){ze(a,n,r,i,d,u)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(ke);function Pe(){var t=De,a=!1,l=1,n=1,r=[0],i=q,d=q,u=q,m=q,c=q;function p(s){return s.x0=s.y0=0,s.x1=l,s.y1=n,s.eachBefore(w),r=[0],a&&s.eachBefore(Fe),s}function w(s){var b=r[s.depth],v=s.x0+b,x=s.y0+b,f=s.x1-b,y=s.y1-b;f<v&&(v=f=(v+f)/2),y<x&&(x=y=(x+y)/2),s.x0=v,s.y0=x,s.x1=f,s.y1=y,s.children&&(b=r[s.depth+1]=i(s)/2,v+=c(s)-b,x+=d(s)-b,f-=u(s)-b,y-=m(s)-b,f<v&&(v=f=(v+f)/2),y<x&&(x=y=(x+y)/2),t(s,v,x,f,y))}return p.round=function(s){return arguments.length?(a=!!s,p):a},p.size=function(s){return arguments.length?(l=+s[0],n=+s[1],p):[l,n]},p.tile=function(s){return arguments.length?(t=Me(s),p):t},p.padding=function(s){return arguments.length?p.paddingInner(s).paddingOuter(s):p.paddingInner()},p.paddingInner=function(s){return arguments.length?(i=typeof s=="function"?s:O(+s),p):i},p.paddingOuter=function(s){return arguments.length?p.paddingTop(s).paddingRight(s).paddingBottom(s).paddingLeft(s):p.paddingTop()},p.paddingTop=function(s){return arguments.length?(d=typeof s=="function"?s:O(+s),p):d},p.paddingRight=function(s){return arguments.length?(u=typeof s=="function"?s:O(+s),p):u},p.paddingBottom=function(s){return arguments.length?(m=typeof s=="function"?s:O(+s),p):m},p.paddingLeft=function(s){return arguments.length?(c=typeof s=="function"?s:O(+s),p):c},p}var B,K=(B=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=h.setAccTitle,this.getAccTitle=h.getAccTitle,this.setDiagramTitle=h.setDiagramTitle,this.getDiagramTitle=h.getDiagramTitle,this.getAccDescription=h.getAccDescription,this.setAccDescription=h.setAccDescription}getNodes(){return this.nodes}getConfig(){const a=h.defaultConfig_default,l=h.getConfig();return h.cleanAndMerge({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},r=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(i=>{h.isLabelStyle(i)&&(n?.textStyles?n.textStyles.push(i):n.textStyles=[i]),n?.styles?n.styles.push(i):n.styles=[i]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){h.clear(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},h.__name(B,"TreeMapDB"),B);function Q(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const r={name:n.name,children:n.type==="Leaf"?void 0:[]};for(r.classSelector=n?.classSelector,n?.cssCompiledStyles&&(r.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(r.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(r);else{const i=l[l.length-1].node;i.children?i.children.push(r):i.children=[r]}n.type!=="Leaf"&&l.push({node:r,level:n.level})}),a}h.__name(Q,"buildHierarchy");var Be=h.__name((t,a)=>{ie.populateCommonDb(t,a);const l=[];for(const i of t.TreemapRows??[])i.$type==="ClassDefStatement"&&a.addClass(i.className??"",i.styleText??"");for(const i of t.TreemapRows??[]){const d=i.item;if(!d)continue;const u=i.indent?parseInt(i.indent):0,m=Ee(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],p=c.length>0?c:void 0,w={level:u,name:m,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:p};l.push(w)}const n=Q(l),r=h.__name((i,d)=>{for(const u of i)a.addNode(u,d),u.children&&u.children.length>0&&r(u.children,d+1)},"addNodesRecursively");r(n,0)},"populate"),Ee=h.__name(t=>t.name?String(t.name):"","getItemName"),ee={parser:{yy:void 0},parse:h.__name(async t=>{try{const a=oe.parse,l=await a("treemap",t);h.log.debug("Treemap AST:",l);const n=ee.parser?.yy;if(!(n instanceof K))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Be(l,n)}catch(a){throw h.log.error("Error parsing treemap:",a),a}},"parse")},Re=10,P=10,X=25,We=h.__name((t,a,l,n)=>{const r=n.db,i=r.getConfig(),d=i.padding??Re,u=r.getDiagramTitle(),m=r.getRoot(),{themeVariables:c}=h.getConfig();if(!m)return;const p=u?30:0,w=h.selectSvgElement(a),s=i.nodeWidth?i.nodeWidth*P:960,b=i.nodeHeight?i.nodeHeight*P:500,v=s,x=b+p;w.attr("viewBox",`0 0 ${v} ${x}`),h.configureSvgSize(w,x,v,i.useMaxWidth);let f;try{const e=i.valueFormat||",";if(e==="$0,0")f=h.__name(o=>"$"+I.format(",")(o),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const o=/\.\d+/.exec(e),g=o?o[0]:"";f=h.__name(C=>"$"+I.format(","+g)(C),"valueFormat")}else if(e.startsWith("$")){const o=e.substring(1);f=h.__name(g=>"$"+I.format(o||"")(g),"valueFormat")}else f=I.format(e)}catch(e){h.log.error("Error creating format function:",e),f=I.format(",")}const y=U.ordinal().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),F=U.ordinal().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),M=U.ordinal().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);u&&w.append("text").attr("x",v/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const z=w.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),E=Z(m).sum(e=>e.value??0).sort((e,o)=>(o.value??0)-(e.value??0)),J=Pe().size([s,b]).paddingTop(e=>e.children&&e.children.length>0?X+P:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?P:0).paddingRight(e=>e.children&&e.children.length>0?P:0).paddingBottom(e=>e.children&&e.children.length>0?P:0).round(!0)(E),te=J.descendants().filter(e=>e.children&&e.children.length>0),R=z.selectAll(".treemapSection").data(te).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),R.append("clipPath").attr("id",(e,o)=>`clip-section-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,o)=>`treemapSection section${o}`).attr("fill",e=>y(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>F(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const o=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o.nodeStyles+";"+o.borderStyles.join(";")}),R.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const o="dominant-baseline: middle; font-size: 12px; fill:"+M(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const o=h.select(this),g=e.data.name;o.text(g);const C=e.x1-e.x0,T=6;let L;i.showValues!==!1&&e.value?L=C-10-30-10-T:L=C-T-6;const $=Math.max(15,L),S=o.node();if(S.getComputedTextLength()>$){let _=g;for(;_.length>0;){if(_=g.substring(0,_.length-1),_.length===0){o.text("..."),S.getComputedTextLength()>$&&o.text("");break}if(o.text(_+"..."),S.getComputedTextLength()<=$)break}}}),i.showValues!==!1&&R.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?f(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const o="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+M(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")});const ae=J.leaves(),G=z.selectAll(".treemapLeafGroup").data(ae).enter().append("g").attr("class",(e,o)=>`treemapNode treemapLeafGroup leaf${o}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);G.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("style",e=>h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("stroke-width",3),G.append("clipPath").attr("id",(e,o)=>`clip-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),G.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const o="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+M(e.data.name)+";",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,o)=>`url(#clip-${a}-${o})`).text(e=>e.data.name).each(function(e){const o=h.select(this),g=e.x1-e.x0,C=e.y1-e.y0,T=o.node(),L=4,D=g-2*L,$=C-2*L;if(D<10||$<10){o.style("display","none");return}let S=parseInt(o.style("font-size"),10);const V=8,A=28,_=.6,k=6,W=2;for(;T.getComputedTextLength()>D&&S>V;)S--,o.style("font-size",`${S}px`);let H=Math.max(k,Math.min(A,Math.round(S*_))),j=S+W+H;for(;j>$&&S>V&&(S--,H=Math.max(k,Math.min(A,Math.round(S*_))),!(H<k&&S===V));)o.style("font-size",`${S}px`),j=S+W+H;o.style("font-size",`${S}px`),(T.getComputedTextLength()>D||S<V||$<S)&&o.style("display","none")}),i.showValues!==!1&&G.append("text").attr("class","treemapValue").attr("x",o=>(o.x1-o.x0)/2).attr("y",function(o){return(o.y1-o.y0)/2}).attr("style",o=>{const g="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+M(o.data.name)+";",C=h.styles2String({cssCompiledStyles:o.data.cssCompiledStyles});return g+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(o,g)=>`url(#clip-${a}-${g})`).text(o=>o.value?f(o.value):"").each(function(o){const g=h.select(this),C=this.parentNode;if(!C){g.style("display","none");return}const T=h.select(C).select(".treemapLabel");if(T.empty()||T.style("display")==="none"){g.style("display","none");return}const L=parseFloat(T.style("font-size")),D=28,$=.6,S=6,V=2,A=Math.max(S,Math.min(D,Math.round(L*$)));g.style("font-size",`${A}px`);const k=(o.y1-o.y0)/2+L/2+V;g.attr("y",k);const W=o.x1-o.x0,le=o.y1-o.y0-4,re=W-8;g.node().getComputedTextLength()>re||k+A>le||A<S?g.style("display","none"):g.style("display",null)});const ne=i.diagramPadding??8;se.setupViewPortForSVG(w,ne,"flowchart",i?.useMaxWidth||!1)},"draw"),He=h.__name(function(t,a){return a.db.getClasses()},"getClasses"),Ie={draw:We,getClasses:He},qe={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Oe=h.__name(({treemap:t}={})=>{const a=h.getThemeVariables3(),l=h.getConfig(),n=h.cleanAndMerge(a,l.themeVariables),r=h.cleanAndMerge(qe,t),i=r.titleColor??n.titleColor,d=r.labelColor??n.textColor,u=r.valueColor??n.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${r.sectionStrokeColor};
4
4
  stroke-width: ${r.sectionStrokeWidth};
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./cowboy-components-CjgqXqkM.cjs"),L=require("./chunk-4BX2VUAB-DHdTrTTD.cjs"),S=require("./mermaid-parser.core-fjh_cn2l.cjs");var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y={axes:[],curves:[],options:h},p=structuredClone(y),O=n.defaultConfig_default.radar,k=n.__name(()=>n.cleanAndMerge({...O,...n.getConfig().radar}),"getConfig"),f=n.__name(()=>p.axes,"getAxes"),D=n.__name(()=>p.curves,"getCurves"),R=n.__name(()=>p.options,"getOptions"),I=n.__name(a=>{p.axes=a.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),E=n.__name(a=>{p.curves=a.map(e=>({name:e.name,label:e.label??e.name,entries:F(e.entries)}))},"setCurves"),F=n.__name(a=>{if(a[0].axis==null)return a.map(t=>t.value);const e=f();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(t=>{const r=a.find(s=>s.axis?.$refText===t.name);if(r===void 0)throw new Error("Missing entry for axis "+t.label);return r.value})},"computeCurveEntries"),P=n.__name(a=>{const e=a.reduce((t,r)=>(t[r.name]=r,t),{});p.options={showLegend:e.showLegend?.value??h.showLegend,ticks:e.ticks?.value??h.ticks,max:e.max?.value??h.max,min:e.min?.value??h.min,graticule:e.graticule?.value??h.graticule}},"setOptions"),z=n.__name(()=>{n.clear(),p=structuredClone(y)},"clear"),_={getAxes:f,getCurves:D,getOptions:R,setAxes:I,setCurves:E,setOptions:P,getConfig:k,clear:z,setAccTitle:n.setAccTitle,getAccTitle:n.getAccTitle,setDiagramTitle:n.setDiagramTitle,getDiagramTitle:n.getDiagramTitle,getAccDescription:n.getAccDescription,setAccDescription:n.setAccDescription},G=n.__name(a=>{L.populateCommonDb(a,_);const{axes:e,curves:t,options:r}=a;_.setAxes(e),_.setCurves(t),_.setOptions(r)},"populate"),B={parse:n.__name(async a=>{const e=await S.parse("radar",a);n.log.debug(e),G(e)},"parse")},V=n.__name((a,e,t,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),o=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),m=n.selectSvgElement(e),u=W(m,c),g=o.max??Math.max(...l.map($=>Math.max(...$.entries))),x=o.min,v=Math.min(c.width,c.height)/2;j(u,i,v,o.ticks,o.graticule),q(u,i,v,c),C(u,i,l,x,g,o.graticule,c),A(u,l,o.showLegend,c),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),W=n.__name((a,e)=>{const t=e.width+e.marginLeft+e.marginRight,r=e.height+e.marginTop+e.marginBottom,s={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return n.configureSvgSize(a,r,t,e.useMaxWidth??!0),a.attr("viewBox",`0 0 ${t} ${r}`),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),j=n.__name((a,e,t,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=t*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=e.length;for(let l=0;l<r;l++){const o=t*(l+1)/r,c=e.map((d,m)=>{const u=2*m*Math.PI/i-Math.PI/2,g=o*Math.cos(u),x=o*Math.sin(u);return`${g},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),q=n.__name((a,e,t,r)=>{const s=e.length;for(let i=0;i<s;i++){const l=e[i].label,o=2*i*Math.PI/s-Math.PI/2;a.append("line").attr("x1",0).attr("y1",0).attr("x2",t*r.axisScaleFactor*Math.cos(o)).attr("y2",t*r.axisScaleFactor*Math.sin(o)).attr("class","radarAxisLine"),a.append("text").text(l).attr("x",t*r.axisLabelFactor*Math.cos(o)).attr("y",t*r.axisLabelFactor*Math.sin(o)).attr("class","radarAxisLabel")}},"drawAxes");function C(a,e,t,r,s,i,l){const o=e.length,c=Math.min(l.width,l.height)/2;t.forEach((d,m)=>{if(d.entries.length!==o)return;const u=d.entries.map((g,x)=>{const v=2*Math.PI*x/o-Math.PI/2,$=w(g,r,s,c),M=$*Math.cos(v),T=$*Math.sin(v);return{x:M,y:T}});i==="circle"?a.append("path").attr("d",b(u,l.curveTension)).attr("class",`radarCurve-${m}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}n.__name(C,"drawCurves");function w(a,e,t,r){const s=Math.min(Math.max(a,e),t);return r*(s-e)/(t-e)}n.__name(w,"relativeRadius");function b(a,e){const t=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<t;s++){const i=a[(s-1+t)%t],l=a[s],o=a[(s+1)%t],c=a[(s+2)%t],d={x:l.x+(o.x-i.x)*e,y:l.y+(o.y-i.y)*e},m={x:o.x-(c.x-l.x)*e,y:o.y-(c.y-l.y)*e};r+=` C${d.x},${d.y} ${m.x},${m.y} ${o.x},${o.y}`}return`${r} Z`}n.__name(b,"closedRoundCurve");function A(a,e,t,r){if(!t)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;e.forEach((o,c)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+c*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(o.label)})}n.__name(A,"drawLegend");var H={draw:V},U=n.__name((a,e)=>{let t="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];t+=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./cowboy-components-CC8oMHf-.cjs"),L=require("./chunk-4BX2VUAB-NW_XCCwP.cjs"),S=require("./mermaid-parser.core-luq90wBd.cjs");var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y={axes:[],curves:[],options:h},p=structuredClone(y),O=n.defaultConfig_default.radar,k=n.__name(()=>n.cleanAndMerge({...O,...n.getConfig().radar}),"getConfig"),f=n.__name(()=>p.axes,"getAxes"),D=n.__name(()=>p.curves,"getCurves"),R=n.__name(()=>p.options,"getOptions"),I=n.__name(a=>{p.axes=a.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),E=n.__name(a=>{p.curves=a.map(e=>({name:e.name,label:e.label??e.name,entries:F(e.entries)}))},"setCurves"),F=n.__name(a=>{if(a[0].axis==null)return a.map(t=>t.value);const e=f();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(t=>{const r=a.find(s=>s.axis?.$refText===t.name);if(r===void 0)throw new Error("Missing entry for axis "+t.label);return r.value})},"computeCurveEntries"),P=n.__name(a=>{const e=a.reduce((t,r)=>(t[r.name]=r,t),{});p.options={showLegend:e.showLegend?.value??h.showLegend,ticks:e.ticks?.value??h.ticks,max:e.max?.value??h.max,min:e.min?.value??h.min,graticule:e.graticule?.value??h.graticule}},"setOptions"),z=n.__name(()=>{n.clear(),p=structuredClone(y)},"clear"),_={getAxes:f,getCurves:D,getOptions:R,setAxes:I,setCurves:E,setOptions:P,getConfig:k,clear:z,setAccTitle:n.setAccTitle,getAccTitle:n.getAccTitle,setDiagramTitle:n.setDiagramTitle,getDiagramTitle:n.getDiagramTitle,getAccDescription:n.getAccDescription,setAccDescription:n.setAccDescription},G=n.__name(a=>{L.populateCommonDb(a,_);const{axes:e,curves:t,options:r}=a;_.setAxes(e),_.setCurves(t),_.setOptions(r)},"populate"),B={parse:n.__name(async a=>{const e=await S.parse("radar",a);n.log.debug(e),G(e)},"parse")},V=n.__name((a,e,t,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),o=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),m=n.selectSvgElement(e),u=W(m,c),g=o.max??Math.max(...l.map($=>Math.max(...$.entries))),x=o.min,v=Math.min(c.width,c.height)/2;j(u,i,v,o.ticks,o.graticule),q(u,i,v,c),C(u,i,l,x,g,o.graticule,c),A(u,l,o.showLegend,c),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),W=n.__name((a,e)=>{const t=e.width+e.marginLeft+e.marginRight,r=e.height+e.marginTop+e.marginBottom,s={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return n.configureSvgSize(a,r,t,e.useMaxWidth??!0),a.attr("viewBox",`0 0 ${t} ${r}`),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),j=n.__name((a,e,t,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=t*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=e.length;for(let l=0;l<r;l++){const o=t*(l+1)/r,c=e.map((d,m)=>{const u=2*m*Math.PI/i-Math.PI/2,g=o*Math.cos(u),x=o*Math.sin(u);return`${g},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),q=n.__name((a,e,t,r)=>{const s=e.length;for(let i=0;i<s;i++){const l=e[i].label,o=2*i*Math.PI/s-Math.PI/2;a.append("line").attr("x1",0).attr("y1",0).attr("x2",t*r.axisScaleFactor*Math.cos(o)).attr("y2",t*r.axisScaleFactor*Math.sin(o)).attr("class","radarAxisLine"),a.append("text").text(l).attr("x",t*r.axisLabelFactor*Math.cos(o)).attr("y",t*r.axisLabelFactor*Math.sin(o)).attr("class","radarAxisLabel")}},"drawAxes");function C(a,e,t,r,s,i,l){const o=e.length,c=Math.min(l.width,l.height)/2;t.forEach((d,m)=>{if(d.entries.length!==o)return;const u=d.entries.map((g,x)=>{const v=2*Math.PI*x/o-Math.PI/2,$=w(g,r,s,c),M=$*Math.cos(v),T=$*Math.sin(v);return{x:M,y:T}});i==="circle"?a.append("path").attr("d",b(u,l.curveTension)).attr("class",`radarCurve-${m}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}n.__name(C,"drawCurves");function w(a,e,t,r){const s=Math.min(Math.max(a,e),t);return r*(s-e)/(t-e)}n.__name(w,"relativeRadius");function b(a,e){const t=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<t;s++){const i=a[(s-1+t)%t],l=a[s],o=a[(s+1)%t],c=a[(s+2)%t],d={x:l.x+(o.x-i.x)*e,y:l.y+(o.y-i.y)*e},m={x:o.x-(c.x-l.x)*e,y:o.y-(c.y-l.y)*e};r+=` C${d.x},${d.y} ${m.x},${m.y} ${o.x},${o.y}`}return`${r} Z`}n.__name(b,"closedRoundCurve");function A(a,e,t,r){if(!t)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;e.forEach((o,c)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+c*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(o.label)})}n.__name(A,"drawLegend");var H={draw:V},U=n.__name((a,e)=>{let t="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];t+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${s};
4
4
  fill: ${s};
@@ -1,6 +1,6 @@
1
- import { _ as l, s as k, g as I, q as R, p as F, a as _, b as D, I as E, z, F as y, D as C, G, l as P, K as W, e as B } from "./cowboy-components-CxawaKWM.js";
2
- import { p as V } from "./chunk-4BX2VUAB-DQ4rU_AZ.js";
3
- import { p as H } from "./mermaid-parser.core-CCHvxUQl.js";
1
+ import { _ as l, s as k, g as I, q as R, p as F, a as _, b as D, I as E, z, F as y, D as C, G, l as P, K as W, e as B } from "./cowboy-components-BkbVjFUn.js";
2
+ import { p as V } from "./chunk-4BX2VUAB-CnfyXlfw.js";
3
+ import { p as H } from "./mermaid-parser.core-BMlbf7rO.js";
4
4
  var h = {
5
5
  showLegend: !0,
6
6
  ticks: 5,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./cowboy-components-CjgqXqkM.cjs"),x=require("./chunk-4BX2VUAB-DHdTrTTD.cjs"),B=require("./mermaid-parser.core-fjh_cn2l.cjs");var $=a.defaultConfig_default.packet,b,m=(b=class{constructor(){this.packet=[],this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getAccDescription=a.getAccDescription,this.setAccDescription=a.setAccDescription}getConfig(){const t=a.cleanAndMerge({...$,...a.getConfig().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){a.clear(),this.packet=[]}},a.__name(b,"PacketDB"),b),C=1e4,_=a.__name((e,t)=>{x.populateCommonDb(e,t);let o=-1,i=[],l=1;const{bitsPerRow:c}=t.getConfig();for(let{start:r,end:n,bits:p,label:d}of e.blocks){if(r!==void 0&&n!==void 0&&n<r)throw new Error(`Packet block ${r} - ${n} is invalid. End must be greater than start.`);if(r??=o+1,r!==o+1)throw new Error(`Packet block ${r} - ${n??r} is not contiguous. It should start from ${o+1}.`);if(p===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(n??=r+(p??1)-1,p??=n-r+1,o=n,a.log.debug(`Packet block ${r} - ${o} with label ${d}`);i.length<=c+1&&t.getPacket().length<C;){const[g,s]=S({start:r,end:n,bits:p,label:d},l,c);if(i.push(g),g.end+1===l*c&&(t.pushWord(i),i=[],l++),!s)break;({start:r,end:n,bits:p,label:d}=s)}}t.pushWord(i)},"populate"),S=a.__name((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const i=t*o-1,l=t*o;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),w={parser:{yy:void 0},parse:a.__name(async e=>{const t=await B.parse("packet",e),o=w.parser?.yy;if(!(o instanceof m))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");a.log.debug(t),_(t,o)},"parse")},P=a.__name((e,t,o,i)=>{const l=i.db,c=l.getConfig(),{rowHeight:r,paddingY:n,bitWidth:p,bitsPerRow:d}=c,g=l.getPacket(),s=l.getDiagramTitle(),k=r+n,h=k*(g.length+1)-(s?0:r),f=p*d+2,u=a.selectSvgElement(t);u.attr("viewBox",`0 0 ${f} ${h}`),a.configureSvgSize(u,h,f,c.useMaxWidth);for(const[v,y]of g.entries())T(u,y,v,c);u.append("text").text(s).attr("x",f/2).attr("y",h-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),T=a.__name((e,t,o,{rowHeight:i,paddingX:l,paddingY:c,bitWidth:r,bitsPerRow:n,showBits:p})=>{const d=e.append("g"),g=o*(i+c)+c;for(const s of t){const k=s.start%n*r+1,h=(s.end-s.start+1)*r-l;if(d.append("rect").attr("x",k).attr("y",g).attr("width",h).attr("height",i).attr("class","packetBlock"),d.append("text").attr("x",k+h/2).attr("y",g+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!p)continue;const f=s.end===s.start,u=g-2;d.append("text").attr("x",k+(f?h/2:0)).attr("y",u).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",f?"middle":"start").text(s.start),f||d.append("text").attr("x",k+h).attr("y",u).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),D={draw:P},A={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},z=a.__name(({packet:e}={})=>{const t=a.cleanAndMerge(A,e);return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./cowboy-components-CC8oMHf-.cjs"),x=require("./chunk-4BX2VUAB-NW_XCCwP.cjs"),B=require("./mermaid-parser.core-luq90wBd.cjs");var $=a.defaultConfig_default.packet,b,m=(b=class{constructor(){this.packet=[],this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getAccDescription=a.getAccDescription,this.setAccDescription=a.setAccDescription}getConfig(){const t=a.cleanAndMerge({...$,...a.getConfig().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){a.clear(),this.packet=[]}},a.__name(b,"PacketDB"),b),C=1e4,_=a.__name((e,t)=>{x.populateCommonDb(e,t);let o=-1,i=[],l=1;const{bitsPerRow:c}=t.getConfig();for(let{start:r,end:n,bits:p,label:d}of e.blocks){if(r!==void 0&&n!==void 0&&n<r)throw new Error(`Packet block ${r} - ${n} is invalid. End must be greater than start.`);if(r??=o+1,r!==o+1)throw new Error(`Packet block ${r} - ${n??r} is not contiguous. It should start from ${o+1}.`);if(p===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(n??=r+(p??1)-1,p??=n-r+1,o=n,a.log.debug(`Packet block ${r} - ${o} with label ${d}`);i.length<=c+1&&t.getPacket().length<C;){const[g,s]=S({start:r,end:n,bits:p,label:d},l,c);if(i.push(g),g.end+1===l*c&&(t.pushWord(i),i=[],l++),!s)break;({start:r,end:n,bits:p,label:d}=s)}}t.pushWord(i)},"populate"),S=a.__name((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const i=t*o-1,l=t*o;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),w={parser:{yy:void 0},parse:a.__name(async e=>{const t=await B.parse("packet",e),o=w.parser?.yy;if(!(o instanceof m))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");a.log.debug(t),_(t,o)},"parse")},P=a.__name((e,t,o,i)=>{const l=i.db,c=l.getConfig(),{rowHeight:r,paddingY:n,bitWidth:p,bitsPerRow:d}=c,g=l.getPacket(),s=l.getDiagramTitle(),k=r+n,h=k*(g.length+1)-(s?0:r),f=p*d+2,u=a.selectSvgElement(t);u.attr("viewBox",`0 0 ${f} ${h}`),a.configureSvgSize(u,h,f,c.useMaxWidth);for(const[v,y]of g.entries())T(u,y,v,c);u.append("text").text(s).attr("x",f/2).attr("y",h-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),T=a.__name((e,t,o,{rowHeight:i,paddingX:l,paddingY:c,bitWidth:r,bitsPerRow:n,showBits:p})=>{const d=e.append("g"),g=o*(i+c)+c;for(const s of t){const k=s.start%n*r+1,h=(s.end-s.start+1)*r-l;if(d.append("rect").attr("x",k).attr("y",g).attr("width",h).attr("height",i).attr("class","packetBlock"),d.append("text").attr("x",k+h/2).attr("y",g+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!p)continue;const f=s.end===s.start,u=g-2;d.append("text").attr("x",k+(f?h/2:0)).attr("y",u).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",f?"middle":"start").text(s.start),f||d.append("text").attr("x",k+h).attr("y",u).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),D={draw:P},A={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},z=a.__name(({packet:e}={})=>{const t=a.cleanAndMerge(A,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }
@@ -1,6 +1,6 @@
1
- import { _ as b, F as m, I as B, e as C, l as w, b as S, a as D, p as T, q as z, g as F, s as P, D as E, G as A, z as W } from "./cowboy-components-CxawaKWM.js";
2
- import { p as _ } from "./chunk-4BX2VUAB-DQ4rU_AZ.js";
3
- import { p as N } from "./mermaid-parser.core-CCHvxUQl.js";
1
+ import { _ as b, F as m, I as B, e as C, l as w, b as S, a as D, p as T, q as z, g as F, s as P, D as E, G as A, z as W } from "./cowboy-components-BkbVjFUn.js";
2
+ import { p as _ } from "./chunk-4BX2VUAB-CnfyXlfw.js";
3
+ import { p as N } from "./mermaid-parser.core-BMlbf7rO.js";
4
4
  var I = A.packet, u, v = (u = class {
5
5
  constructor() {
6
6
  this.packet = [], this.setAccTitle = S, this.getAccTitle = D, this.setDiagramTitle = T, this.getDiagramTitle = z, this.getAccDescription = F, this.setAccDescription = P;
@@ -1,7 +1,7 @@
1
- import { g as Bt } from "./chunk-55IACEB6-BauZDeFH.js";
2
- import { s as Ft } from "./chunk-EDXVE4YY-DPpXfrr8.js";
3
- import { _ as d, b as Yt, a as Pt, s as zt, g as Gt, p as Kt, q as Ut, c as rt, l as V, z as Zt, x as jt, B as Wt, C as Qt, o as Xt, r as Ht, d as qt, u as Jt } from "./cowboy-components-CxawaKWM.js";
4
- import { c as $t } from "./channel-BvR-WhLo.js";
1
+ import { g as Bt } from "./chunk-55IACEB6-CU9_jSXF.js";
2
+ import { s as Ft } from "./chunk-EDXVE4YY-hC5XWKZE.js";
3
+ import { _ as d, b as Yt, a as Pt, s as zt, g as Gt, p as Kt, q as Ut, c as rt, l as V, z as Zt, x as jt, B as Wt, C as Qt, o as Xt, r as Ht, d as qt, u as Jt } from "./cowboy-components-BkbVjFUn.js";
4
+ import { c as $t } from "./channel-BKDLVUWb.js";
5
5
  var gt = (function() {
6
6
  var s = /* @__PURE__ */ d(function(C, n, a, o) {
7
7
  for (a = a || {}, o = C.length; o--; a[C[o]] = n) ;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("./chunk-55IACEB6-CRJ5yCrP.cjs"),Me=require("./chunk-EDXVE4YY-BrlRuHp3.cjs"),n=require("./cowboy-components-CjgqXqkM.cjs"),Be=require("./channel-DO31wbvk.cjs");var ye=(function(){var s=n.__name(function(C,a,c,l){for(c=c||{},l=C.length;l--;c[C[l]]=a);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],u=[1,11],h=[1,12],_=[1,13],y=[1,23],d=[1,24],k=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],I=[1,18],T=[1,21],R=[1,22],re=[1,36],ne=[1,37],ae=[1,38],ce=[1,39],oe=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],O=[1,45],A=[1,46],F=[1,55],Y=[40,48,50,51,52,70,71],P=[1,66],z=[1,64],N=[1,61],G=[1,65],K=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],ge=[65,66,67,68,69],pe=[1,84],me=[1,83],be=[1,81],ke=[1,82],Ee=[6,10,42,47],L=[6,10,13,41,42,47,48,49],Q=[1,92],H=[1,91],J=[1,90],U=[19,58],Se=[1,101],Te=[1,100],le=[19,58,60,62],he={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:n.__name(function(a,c,l,r,f,e,Z){var t=e.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 5:this.$=e[t];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(e[t-4]),r.addEntity(e[t-2]),r.addRelationship(e[t-4],e[t],e[t-2],e[t-3]);break;case 9:r.addEntity(e[t-8]),r.addEntity(e[t-4]),r.addRelationship(e[t-8],e[t],e[t-4],e[t-5]),r.setClass([e[t-8]],e[t-6]),r.setClass([e[t-4]],e[t-2]);break;case 10:r.addEntity(e[t-6]),r.addEntity(e[t-2]),r.addRelationship(e[t-6],e[t],e[t-2],e[t-3]),r.setClass([e[t-6]],e[t-4]);break;case 11:r.addEntity(e[t-6]),r.addEntity(e[t-4]),r.addRelationship(e[t-6],e[t],e[t-4],e[t-5]),r.setClass([e[t-4]],e[t-2]);break;case 12:r.addEntity(e[t-3]),r.addAttributes(e[t-3],e[t-1]);break;case 13:r.addEntity(e[t-5]),r.addAttributes(e[t-5],e[t-1]),r.setClass([e[t-5]],e[t-3]);break;case 14:r.addEntity(e[t-2]);break;case 15:r.addEntity(e[t-4]),r.setClass([e[t-4]],e[t-2]);break;case 16:r.addEntity(e[t]);break;case 17:r.addEntity(e[t-2]),r.setClass([e[t-2]],e[t]);break;case 18:r.addEntity(e[t-6],e[t-4]),r.addAttributes(e[t-6],e[t-1]);break;case 19:r.addEntity(e[t-8],e[t-6]),r.addAttributes(e[t-8],e[t-1]),r.setClass([e[t-8]],e[t-3]);break;case 20:r.addEntity(e[t-5],e[t-3]);break;case 21:r.addEntity(e[t-7],e[t-5]),r.setClass([e[t-7]],e[t-2]);break;case 22:r.addEntity(e[t-3],e[t-1]);break;case 23:r.addEntity(e[t-5],e[t-3]),r.setClass([e[t-5]],e[t]);break;case 24:case 25:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=e[t].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=e[t-3],r.addClass(e[t-2],e[t-1]);break;case 37:case 38:case 59:case 67:this.$=[e[t]];break;case 39:case 40:this.$=e[t-2].concat([e[t]]);break;case 41:this.$=e[t-2],r.setClass(e[t-1],e[t]);break;case 42:this.$=e[t-3],r.addCssStyles(e[t-2],e[t-1]);break;case 43:this.$=[e[t]];break;case 44:e[t-2].push(e[t]),this.$=e[t-2];break;case 46:this.$=e[t-1]+e[t];break;case 54:case 79:case 80:this.$=e[t].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=e[t];break;case 60:e[t].push(e[t-1]),this.$=e[t];break;case 61:this.$={type:e[t-1],name:e[t]};break;case 62:this.$={type:e[t-2],name:e[t-1],keys:e[t]};break;case 63:this.$={type:e[t-2],name:e[t-1],comment:e[t]};break;case 64:this.$={type:e[t-3],name:e[t-2],keys:e[t-1],comment:e[t]};break;case 65:case 66:case 69:this.$=e[t];break;case 68:e[t-2].push(e[t]),this.$=e[t-2];break;case 70:this.$=e[t].replace(/"/g,"");break;case 71:this.$={cardA:e[t],relType:e[t-1],cardB:e[t-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:y,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:I,51:T,52:R},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:y,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:I,51:T,52:R},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:re,66:ne,67:ae,68:ce,69:oe}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(B,[2,54]),s(B,[2,55]),s(B,[2,56]),s(B,[2,57]),s(B,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:A},{16:47,40:O,41:A},{16:48,40:O,41:A},s(i,[2,4]),{11:49,40:S,48:D,50:I,51:T,52:R},{16:50,40:O,41:A},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:I,51:T,52:R},{64:57,70:[1,58],71:[1,59]},s(Y,[2,72]),s(Y,[2,73]),s(Y,[2,74]),s(Y,[2,75]),s(Y,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:P,38:60,41:z,42:N,45:62,46:63,48:G,49:K},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:A,42:N},{13:P,38:69,41:z,42:N,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:N,65:re,66:ne,67:ae,68:ce,69:oe}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:re,66:ne,67:ae,68:ce,69:oe},s(ge,[2,77]),s(ge,[2,78]),{6:pe,10:me,39:80,42:be,47:ke},{40:[1,85],41:[1,86]},s(Ee,[2,43],{46:87,13:P,41:z,48:G,49:K}),s(L,[2,45]),s(L,[2,50]),s(L,[2,51]),s(L,[2,52]),s(L,[2,53]),s(i,[2,41],{42:N}),{6:pe,10:me,39:88,42:be,47:ke},{14:89,40:Q,50:H,72:J},{16:93,40:O,41:A},{11:94,40:S,48:D,50:I,51:T,52:R},{18:95,19:[1,96],53:53,54:54,58:F},s(i,[2,12]),{19:[2,60]},s(U,[2,61],{56:97,57:98,59:99,61:Se,62:Te}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:P,41:z,45:104,46:63,48:G,49:K},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(L,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:N},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(U,[2,62],{57:109,60:[1,110],62:Te}),s(U,[2,63]),s(le,[2,67]),s(U,[2,70]),s(le,[2,69]),{18:111,19:[1,112],53:53,54:54,58:F},{16:113,40:O,41:A},s(Ee,[2,44],{46:87,13:P,41:z,48:G,49:K}),{14:114,40:Q,50:H,72:J},{16:115,40:O,41:A},{14:116,40:Q,50:H,72:J},s(i,[2,13]),s(U,[2,64]),{59:117,61:Se},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:N}),s(i,[2,11]),{13:[1,120],42:N},s(i,[2,10]),s(le,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:F},{14:123,40:Q,50:H,72:J},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:n.__name(function(a,c){if(c.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=c,l}},"parseError"),parse:n.__name(function(a){var c=this,l=[0],r=[],f=[null],e=[],Z=this.table,t="",ee=0,Oe=0,ve=2,Ae=1,De=e.slice.call(arguments,1),g=Object.create(this.lexer),x={yy:{}};for(var ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ue)&&(x.yy[ue]=this.yy[ue]);g.setInput(a,x.yy),x.yy.lexer=g,x.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var de=g.yylloc;e.push(de);var Le=g.options&&g.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(m){l.length=l.length-2*m,f.length=f.length-m,e.length=e.length-m}n.__name(we,"popStack");function Ne(){var m;return m=r.pop()||g.lex()||Ae,typeof m!="number"&&(m instanceof Array&&(r=m,m=r.pop()),m=c.symbols_[m]||m),m}n.__name(Ne,"lex");for(var p,v,b,_e,w={},te,E,Ce,se;;){if(v=l[l.length-1],this.defaultActions[v]?b=this.defaultActions[v]:((p===null||typeof p>"u")&&(p=Ne()),b=Z[v]&&Z[v][p]),typeof b>"u"||!b.length||!b[0]){var fe="";se=[];for(te in Z[v])this.terminals_[te]&&te>ve&&se.push("'"+this.terminals_[te]+"'");g.showPosition?fe="Parse error on line "+(ee+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("./chunk-55IACEB6-DDpMGjZ2.cjs"),Me=require("./chunk-EDXVE4YY-_kGe71HQ.cjs"),n=require("./cowboy-components-CC8oMHf-.cjs"),Be=require("./channel-BlCJ7xlY.cjs");var ye=(function(){var s=n.__name(function(C,a,c,l){for(c=c||{},l=C.length;l--;c[C[l]]=a);return c},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],u=[1,11],h=[1,12],_=[1,13],y=[1,23],d=[1,24],k=[1,25],j=[1,26],W=[1,27],S=[1,19],q=[1,28],M=[1,29],D=[1,20],I=[1,18],T=[1,21],R=[1,22],re=[1,36],ne=[1,37],ae=[1,38],ce=[1,39],oe=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],O=[1,45],A=[1,46],F=[1,55],Y=[40,48,50,51,52,70,71],P=[1,66],z=[1,64],N=[1,61],G=[1,65],K=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],ge=[65,66,67,68,69],pe=[1,84],me=[1,83],be=[1,81],ke=[1,82],Ee=[6,10,42,47],L=[6,10,13,41,42,47,48,49],Q=[1,92],H=[1,91],J=[1,90],U=[19,58],Se=[1,101],Te=[1,100],le=[19,58,60,62],he={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:n.__name(function(a,c,l,r,f,e,Z){var t=e.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 5:this.$=e[t];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(e[t-4]),r.addEntity(e[t-2]),r.addRelationship(e[t-4],e[t],e[t-2],e[t-3]);break;case 9:r.addEntity(e[t-8]),r.addEntity(e[t-4]),r.addRelationship(e[t-8],e[t],e[t-4],e[t-5]),r.setClass([e[t-8]],e[t-6]),r.setClass([e[t-4]],e[t-2]);break;case 10:r.addEntity(e[t-6]),r.addEntity(e[t-2]),r.addRelationship(e[t-6],e[t],e[t-2],e[t-3]),r.setClass([e[t-6]],e[t-4]);break;case 11:r.addEntity(e[t-6]),r.addEntity(e[t-4]),r.addRelationship(e[t-6],e[t],e[t-4],e[t-5]),r.setClass([e[t-4]],e[t-2]);break;case 12:r.addEntity(e[t-3]),r.addAttributes(e[t-3],e[t-1]);break;case 13:r.addEntity(e[t-5]),r.addAttributes(e[t-5],e[t-1]),r.setClass([e[t-5]],e[t-3]);break;case 14:r.addEntity(e[t-2]);break;case 15:r.addEntity(e[t-4]),r.setClass([e[t-4]],e[t-2]);break;case 16:r.addEntity(e[t]);break;case 17:r.addEntity(e[t-2]),r.setClass([e[t-2]],e[t]);break;case 18:r.addEntity(e[t-6],e[t-4]),r.addAttributes(e[t-6],e[t-1]);break;case 19:r.addEntity(e[t-8],e[t-6]),r.addAttributes(e[t-8],e[t-1]),r.setClass([e[t-8]],e[t-3]);break;case 20:r.addEntity(e[t-5],e[t-3]);break;case 21:r.addEntity(e[t-7],e[t-5]),r.setClass([e[t-7]],e[t-2]);break;case 22:r.addEntity(e[t-3],e[t-1]);break;case 23:r.addEntity(e[t-5],e[t-3]),r.setClass([e[t-5]],e[t]);break;case 24:case 25:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=e[t].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=e[t-3],r.addClass(e[t-2],e[t-1]);break;case 37:case 38:case 59:case 67:this.$=[e[t]];break;case 39:case 40:this.$=e[t-2].concat([e[t]]);break;case 41:this.$=e[t-2],r.setClass(e[t-1],e[t]);break;case 42:this.$=e[t-3],r.addCssStyles(e[t-2],e[t-1]);break;case 43:this.$=[e[t]];break;case 44:e[t-2].push(e[t]),this.$=e[t-2];break;case 46:this.$=e[t-1]+e[t];break;case 54:case 79:case 80:this.$=e[t].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=e[t];break;case 60:e[t].push(e[t-1]),this.$=e[t];break;case 61:this.$={type:e[t-1],name:e[t]};break;case 62:this.$={type:e[t-2],name:e[t-1],keys:e[t]};break;case 63:this.$={type:e[t-2],name:e[t-1],comment:e[t]};break;case 64:this.$={type:e[t-3],name:e[t-2],keys:e[t-1],comment:e[t]};break;case 65:case 66:case 69:this.$=e[t];break;case 68:e[t-2].push(e[t]),this.$=e[t-2];break;case 70:this.$=e[t].replace(/"/g,"");break;case 71:this.$={cardA:e[t],relType:e[t-1],cardB:e[t-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:y,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:I,51:T,52:R},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:u,26:h,28:_,29:14,30:15,31:16,32:17,33:y,34:d,35:k,36:j,37:W,40:S,43:q,44:M,48:D,50:I,51:T,52:R},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:re,66:ne,67:ae,68:ce,69:oe}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(B,[2,54]),s(B,[2,55]),s(B,[2,56]),s(B,[2,57]),s(B,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:A},{16:47,40:O,41:A},{16:48,40:O,41:A},s(i,[2,4]),{11:49,40:S,48:D,50:I,51:T,52:R},{16:50,40:O,41:A},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:S,48:D,50:I,51:T,52:R},{64:57,70:[1,58],71:[1,59]},s(Y,[2,72]),s(Y,[2,73]),s(Y,[2,74]),s(Y,[2,75]),s(Y,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:P,38:60,41:z,42:N,45:62,46:63,48:G,49:K},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:A,42:N},{13:P,38:69,41:z,42:N,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:N,65:re,66:ne,67:ae,68:ce,69:oe}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:re,66:ne,67:ae,68:ce,69:oe},s(ge,[2,77]),s(ge,[2,78]),{6:pe,10:me,39:80,42:be,47:ke},{40:[1,85],41:[1,86]},s(Ee,[2,43],{46:87,13:P,41:z,48:G,49:K}),s(L,[2,45]),s(L,[2,50]),s(L,[2,51]),s(L,[2,52]),s(L,[2,53]),s(i,[2,41],{42:N}),{6:pe,10:me,39:88,42:be,47:ke},{14:89,40:Q,50:H,72:J},{16:93,40:O,41:A},{11:94,40:S,48:D,50:I,51:T,52:R},{18:95,19:[1,96],53:53,54:54,58:F},s(i,[2,12]),{19:[2,60]},s(U,[2,61],{56:97,57:98,59:99,61:Se,62:Te}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:P,41:z,45:104,46:63,48:G,49:K},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(L,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:N},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(U,[2,62],{57:109,60:[1,110],62:Te}),s(U,[2,63]),s(le,[2,67]),s(U,[2,70]),s(le,[2,69]),{18:111,19:[1,112],53:53,54:54,58:F},{16:113,40:O,41:A},s(Ee,[2,44],{46:87,13:P,41:z,48:G,49:K}),{14:114,40:Q,50:H,72:J},{16:115,40:O,41:A},{14:116,40:Q,50:H,72:J},s(i,[2,13]),s(U,[2,64]),{59:117,61:Se},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:N}),s(i,[2,11]),{13:[1,120],42:N},s(i,[2,10]),s(le,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:F},{14:123,40:Q,50:H,72:J},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:n.__name(function(a,c){if(c.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=c,l}},"parseError"),parse:n.__name(function(a){var c=this,l=[0],r=[],f=[null],e=[],Z=this.table,t="",ee=0,Oe=0,ve=2,Ae=1,De=e.slice.call(arguments,1),g=Object.create(this.lexer),x={yy:{}};for(var ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ue)&&(x.yy[ue]=this.yy[ue]);g.setInput(a,x.yy),x.yy.lexer=g,x.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var de=g.yylloc;e.push(de);var Le=g.options&&g.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function we(m){l.length=l.length-2*m,f.length=f.length-m,e.length=e.length-m}n.__name(we,"popStack");function Ne(){var m;return m=r.pop()||g.lex()||Ae,typeof m!="number"&&(m instanceof Array&&(r=m,m=r.pop()),m=c.symbols_[m]||m),m}n.__name(Ne,"lex");for(var p,v,b,_e,w={},te,E,Ce,se;;){if(v=l[l.length-1],this.defaultActions[v]?b=this.defaultActions[v]:((p===null||typeof p>"u")&&(p=Ne()),b=Z[v]&&Z[v][p]),typeof b>"u"||!b.length||!b[0]){var fe="";se=[];for(te in Z[v])this.terminals_[te]&&te>ve&&se.push("'"+this.terminals_[te]+"'");g.showPosition?fe="Parse error on line "+(ee+1)+`:
2
2
  `+g.showPosition()+`
3
3
  Expecting `+se.join(", ")+", got '"+(this.terminals_[p]||p)+"'":fe="Parse error on line "+(ee+1)+": Unexpected "+(p==Ae?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(fe,{text:g.match,token:this.terminals_[p]||p,line:g.yylineno,loc:de,expected:se})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+p);switch(b[0]){case 1:l.push(p),f.push(g.yytext),e.push(g.yylloc),l.push(b[1]),p=null,Oe=g.yyleng,t=g.yytext,ee=g.yylineno,de=g.yylloc;break;case 2:if(E=this.productions_[b[1]][1],w.$=f[f.length-E],w._$={first_line:e[e.length-(E||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(E||1)].first_column,last_column:e[e.length-1].last_column},Le&&(w._$.range=[e[e.length-(E||1)].range[0],e[e.length-1].range[1]]),_e=this.performAction.apply(w,[t,Oe,ee,x.yy,b[1],f,e].concat(De)),typeof _e<"u")return _e;E&&(l=l.slice(0,-1*E*2),f=f.slice(0,-1*E),e=e.slice(0,-1*E)),l.push(this.productions_[b[1]][0]),f.push(w.$),e.push(w._$),Ce=Z[l[l.length-2]][l[l.length-1]],l.push(Ce);break;case 3:return!0}}return!0},"parse")},xe=(function(){var C={EOF:1,parseError:n.__name(function(c,l){if(this.yy.parser)this.yy.parser.parseError(c,l);else throw new Error(c)},"parseError"),setInput:n.__name(function(a,c){return this.yy=c||this.yy||{},this._input=a,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:n.__name(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var c=a.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:n.__name(function(a){var c=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var f=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:l?(l.length===r.length?this.yylloc.first_column:0)+r[r.length-l.length].length-l[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(a){this.unput(this.match.slice(a))},"less"),pastInput:n.__name(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var a=this.pastInput(),c=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
@@ -105,6 +105,8 @@ export declare const BundleRequested = "bundleRequested";
105
105
  export declare const BundleCompleted = "bundleCompleted";
106
106
  export declare const BundleDownloadRequested = "bundleDownloadRequested";
107
107
  export declare const BundleCopyRequested = "bundleCopyRequested";
108
+ export declare const PrintingPressZipExportRequested = "printingPressZipExportRequested";
109
+ export declare const PrintingPressTarballExportRequested = "printingPressTarballExportRequested";
108
110
  export declare const RefreshApiKeys = "refreshApiKeys";
109
111
  export declare const CreateApiKey = "createApiKey";
110
112
  export declare const RevokeApiKey = "revokeApiKey";
@@ -96,6 +96,8 @@ export const BundleRequested = 'bundleRequested';
96
96
  export const BundleCompleted = 'bundleCompleted';
97
97
  export const BundleDownloadRequested = 'bundleDownloadRequested';
98
98
  export const BundleCopyRequested = 'bundleCopyRequested';
99
+ export const PrintingPressZipExportRequested = 'printingPressZipExportRequested';
100
+ export const PrintingPressTarballExportRequested = 'printingPressTarballExportRequested';
99
101
  export const RefreshApiKeys = 'refreshApiKeys';
100
102
  export const CreateApiKey = 'createApiKey';
101
103
  export const RevokeApiKey = 'revokeApiKey';
@@ -1,9 +1,9 @@
1
- import { g as He } from "./chunk-FMBD7UC4-CtyzUnzx.js";
2
- import { _ as b, n as Me, l as J, c as g1, o as Xe, r as Qe, u as re, b as Je, s as Ze, p as $e, a as et, g as tt, q as st, k as it, t as rt, J as at, v as nt, x as se, d as ie, y as ut, z as ot, A as lt, B as ct } from "./cowboy-components-CxawaKWM.js";
3
- import { c as ht } from "./chunk-YZCP3GAM--UtgfYoK.js";
4
- import { g as dt } from "./chunk-55IACEB6-BauZDeFH.js";
5
- import { s as pt } from "./chunk-EDXVE4YY-DPpXfrr8.js";
6
- import { c as ft } from "./channel-BvR-WhLo.js";
1
+ import { g as He } from "./chunk-FMBD7UC4-B3Zm2tua.js";
2
+ import { _ as b, n as Me, l as J, c as g1, o as Xe, r as Qe, u as re, b as Je, s as Ze, p as $e, a as et, g as tt, q as st, k as it, t as rt, J as at, v as nt, x as se, d as ie, y as ut, z as ot, A as lt, B as ct } from "./cowboy-components-BkbVjFUn.js";
3
+ import { c as ht } from "./chunk-YZCP3GAM-BA9Cb_dj.js";
4
+ import { g as dt } from "./chunk-55IACEB6-CU9_jSXF.js";
5
+ import { s as pt } from "./chunk-EDXVE4YY-hC5XWKZE.js";
6
+ import { c as ft } from "./channel-BKDLVUWb.js";
7
7
  var gt = "flowchart-", R1, bt = (R1 = class {
8
8
  // cspell:ignore funs
9
9
  constructor() {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ze=require("./chunk-FMBD7UC4-0x38b8wg.cjs"),l=require("./cowboy-components-CjgqXqkM.cjs"),We=require("./chunk-YZCP3GAM-B_2rYHHe.cjs"),qe=require("./chunk-55IACEB6-CRJ5yCrP.cjs"),Ye=require("./chunk-EDXVE4YY-BrlRuHp3.cjs"),je=require("./channel-DO31wbvk.cjs");var Ke="flowchart-",I1,He=(I1=class{constructor(){this.vertexCounter=0,this.config=l.getConfig2(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=l.setAccTitle,this.setAccDescription=l.setAccDescription,this.setDiagramTitle=l.setDiagramTitle,this.getAccTitle=l.getAccTitle,this.getAccDescription=l.getAccDescription,this.getDiagramTitle=l.getDiagramTitle,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l.common_default.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,r,n,h,f,c={},A){if(!i||i.trim().length===0)return;let u;if(A!==void 0){let D;A.includes(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ze=require("./chunk-FMBD7UC4-BeU0NsyZ.cjs"),l=require("./cowboy-components-CC8oMHf-.cjs"),We=require("./chunk-YZCP3GAM-yP8Rfi4-.cjs"),qe=require("./chunk-55IACEB6-DDpMGjZ2.cjs"),Ye=require("./chunk-EDXVE4YY-_kGe71HQ.cjs"),je=require("./channel-BlCJ7xlY.cjs");var Ke="flowchart-",I1,He=(I1=class{constructor(){this.vertexCounter=0,this.config=l.getConfig2(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=l.setAccTitle,this.setAccDescription=l.setAccDescription,this.setDiagramTitle=l.setDiagramTitle,this.getAccTitle=l.getAccTitle,this.getAccDescription=l.getAccDescription,this.getDiagramTitle=l.getDiagramTitle,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l.common_default.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,r,n,h,f,c={},A){if(!i||i.trim().length===0)return;let u;if(A!==void 0){let D;A.includes(`
2
2
  `)?D=A+`
3
3
  `:D=`{
4
4
  `+A+`