@datalayer/agent-runtimes 1.6.6 → 1.6.8

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 (256) hide show
  1. package/dist-embed/chunks/{CollapsiblePlugin-D5OnWN4w.js → CollapsiblePlugin-DcBzz9ed.js} +1 -1
  2. package/dist-embed/chunks/{DeckComponent-CMzqudmP.js → DeckComponent-C-iZsNNb.js} +2 -2
  3. package/dist-embed/chunks/{DocumentView-5rJBkuGi.js → DocumentView-Ycxtl72z.js} +1 -1
  4. package/dist-embed/chunks/{EphemeralDocument-DbXlbD45.js → EphemeralDocument-BXXohFcr.js} +1 -1
  5. package/dist-embed/chunks/{ExcalidrawComponent-qDofi_fV.js → ExcalidrawComponent-DDkUHt0W.js} +1 -1
  6. package/dist-embed/chunks/{ExcalidrawModal-DJcSHz0C.js → ExcalidrawModal-BXVmFlTC.js} +1 -1
  7. package/dist-embed/chunks/{JupyterLexicalExtension-DPgvwtkz.js → JupyterLexicalExtension-C6zMmGiE.js} +4 -4
  8. package/dist-embed/chunks/{YouTubePlugin-CldEfidK.js → YouTubePlugin-tlns_Gba.js} +1 -1
  9. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CTG06sGF.js → abnfDiagram-VCTEODGH-0Ws9rXCJ.js} +1 -1
  10. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-DqfSDyQW.js → abnfDiagram-VCTEODGH-B8_xbHzP.js} +1 -1
  11. package/dist-embed/chunks/{abnfDiagram-VCTEODGH-D-YjI_3k.js → abnfDiagram-VCTEODGH-BeluKYTS.js} +1 -1
  12. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-D65Mq2ue.js → ar-SA-G6X2FPQ2-C7_LpT3-.js} +1 -1
  13. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-o0YkJSjl.js → architectureDiagram-5GKGNRK7-BJlJpdrd.js} +1 -1
  14. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DCDdzaoK.js → architectureDiagram-5GKGNRK7-CC0W5BgA.js} +1 -1
  15. package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-BHztFVtN.js → architectureDiagram-5GKGNRK7-Cw_nr9xB.js} +1 -1
  16. package/dist-embed/chunks/{az-AZ-76LH7QW2-FSNZRzay.js → az-AZ-76LH7QW2-DC1YnvB7.js} +1 -1
  17. package/dist-embed/chunks/{bg-BG-XCXSNQG7-ufD6FI71.js → bg-BG-XCXSNQG7-SPsL8OU-.js} +1 -1
  18. package/dist-embed/chunks/{blockDiagram-868be97b-BX-k54G1.js → blockDiagram-868be97b-BSXU0Kvu.js} +1 -1
  19. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-Ctiuq9Mf.js → blockDiagram-I7D4REHJ--9Bv1dPO.js} +1 -1
  20. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-ByNZ4gDN.js → blockDiagram-I7D4REHJ-BEQaDFbE.js} +1 -1
  21. package/dist-embed/chunks/{blockDiagram-I7D4REHJ-BMMZraik.js → blockDiagram-I7D4REHJ-DxaDtv_3.js} +1 -1
  22. package/dist-embed/chunks/{bn-BD-2XOGV67Q--i6JiFe5.js → bn-BD-2XOGV67Q-BHHqLrjo.js} +1 -1
  23. package/dist-embed/chunks/{c4Diagram-3f4bdde3-C4fKYF4-.js → c4Diagram-3f4bdde3-xeh-6NOw.js} +1 -1
  24. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BoG7Rudg.js → c4Diagram-7LVT6UL2-BJ_FHbHl.js} +1 -1
  25. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-DzmpSRbX.js → c4Diagram-7LVT6UL2-DFdisifm.js} +1 -1
  26. package/dist-embed/chunks/{c4Diagram-7LVT6UL2-V0ARu9Yh.js → c4Diagram-7LVT6UL2-rGsLvQnj.js} +1 -1
  27. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-vwaYjiDJ.js → ca-ES-6MX7JW3Y-wZuwOFMH.js} +1 -1
  28. package/dist-embed/chunks/{chunk-2Q5K7J3B-1b-s3PVN.js → chunk-2Q5K7J3B-D7odi-_O.js} +1 -1
  29. package/dist-embed/chunks/{chunk-2Q5K7J3B-BmBlHnVI.js → chunk-2Q5K7J3B-TmWHfRax.js} +1 -1
  30. package/dist-embed/chunks/{chunk-2Q5K7J3B-Yn3ssDsW.js → chunk-2Q5K7J3B-cixWnbMn.js} +1 -1
  31. package/dist-embed/chunks/{chunk-5VM5RSS4-CEOHhvD9.js → chunk-5VM5RSS4-Bxc9_59A.js} +1 -1
  32. package/dist-embed/chunks/{chunk-5VM5RSS4-D2tEkK5p.js → chunk-5VM5RSS4-Cx82la57.js} +1 -1
  33. package/dist-embed/chunks/{chunk-5VM5RSS4-CbCDnop3.js → chunk-5VM5RSS4-wWeCZIJS.js} +1 -1
  34. package/dist-embed/chunks/{chunk-F27PBJKO-BNZl1hc8.js → chunk-F27PBJKO-BcFWZDhH.js} +1 -1
  35. package/dist-embed/chunks/{chunk-F27PBJKO-CZMM4MBF.js → chunk-F27PBJKO-BrSmzknm.js} +1 -1
  36. package/dist-embed/chunks/{chunk-F27PBJKO-J-4XuTCa.js → chunk-F27PBJKO-o4gdnifC.js} +1 -1
  37. package/dist-embed/chunks/{chunk-IMKFNOWR-CYT_HCLD.js → chunk-IMKFNOWR-BHqtkbGU.js} +1 -1
  38. package/dist-embed/chunks/{chunk-IMKFNOWR-CrGAqWjJ.js → chunk-IMKFNOWR-Bvvb587Q.js} +1 -1
  39. package/dist-embed/chunks/{chunk-IMKFNOWR-B3WYfiWU.js → chunk-IMKFNOWR-D0HMuxmQ.js} +1 -1
  40. package/dist-embed/chunks/{chunk-JWPE2WC7-D_-QFJP2.js → chunk-JWPE2WC7-CafuI2ep.js} +1 -1
  41. package/dist-embed/chunks/{chunk-JWPE2WC7-BJuxLF68.js → chunk-JWPE2WC7-DBjxITsj.js} +1 -1
  42. package/dist-embed/chunks/{chunk-JWPE2WC7-Dhf2nfwA.js → chunk-JWPE2WC7-eVcZ9xFv.js} +1 -1
  43. package/dist-embed/chunks/{chunk-POPQ4Y6H-CsTbM2Up.js → chunk-POPQ4Y6H-B4LQU4J8.js} +1 -1
  44. package/dist-embed/chunks/{chunk-POPQ4Y6H-Nd3Njhrd.js → chunk-POPQ4Y6H-BvYfauYC.js} +1 -1
  45. package/dist-embed/chunks/{chunk-POPQ4Y6H-qwh0DdXu.js → chunk-POPQ4Y6H-DoMMdDzl.js} +1 -1
  46. package/dist-embed/chunks/{chunk-SVP7TREG-Csyp9AM7.js → chunk-SVP7TREG-BTbQTNVB.js} +1 -1
  47. package/dist-embed/chunks/{chunk-SVP7TREG-BzwLk0q0.js → chunk-SVP7TREG-Da-xq5bg.js} +1 -1
  48. package/dist-embed/chunks/{chunk-SVP7TREG-D0tzHXy8.js → chunk-SVP7TREG-OCtWCMf0.js} +1 -1
  49. package/dist-embed/chunks/{chunk-TICWLB2K-DeaNAxkX.js → chunk-TICWLB2K-BGxvPdYt.js} +1 -1
  50. package/dist-embed/chunks/{chunk-TICWLB2K-CBMF5C93.js → chunk-TICWLB2K-BJdhXGsr.js} +1 -1
  51. package/dist-embed/chunks/{chunk-TICWLB2K-BslQaBGw.js → chunk-TICWLB2K-CKHxE2Q8.js} +1 -1
  52. package/dist-embed/chunks/{chunk-XXDRQBXY-CICtrrlo.js → chunk-XXDRQBXY-38uqpTm6.js} +1 -1
  53. package/dist-embed/chunks/{chunk-XXDRQBXY-BpexFcxO.js → chunk-XXDRQBXY-B0SWfD_N.js} +1 -1
  54. package/dist-embed/chunks/{chunk-XXDRQBXY-wJ94Rf8J.js → chunk-XXDRQBXY-CBFLaKdI.js} +1 -1
  55. package/dist-embed/chunks/{classDiagram-ZZMXUADV-CB8NL-j3.js → classDiagram-ZZMXUADV-B5fGQo6H.js} +1 -1
  56. package/dist-embed/chunks/{classDiagram-ZZMXUADV-CvImB5-s.js → classDiagram-ZZMXUADV-BqgX02hh.js} +1 -1
  57. package/dist-embed/chunks/{classDiagram-ZZMXUADV-B7C4ggcH.js → classDiagram-ZZMXUADV-CH7YhSmZ.js} +1 -1
  58. package/dist-embed/chunks/{classDiagram-f62afe4f-B2H3GkiS.js → classDiagram-f62afe4f-m3m-Jl-t.js} +1 -1
  59. package/dist-embed/chunks/{classDiagram-v2-604399ef-BPghHIDI.js → classDiagram-v2-604399ef-s7nEInls.js} +1 -1
  60. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-CB8NL-j3.js → classDiagram-v2-VYDZK3BY-B5fGQo6H.js} +1 -1
  61. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-CvImB5-s.js → classDiagram-v2-VYDZK3BY-BqgX02hh.js} +1 -1
  62. package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-B7C4ggcH.js → classDiagram-v2-VYDZK3BY-CH7YhSmZ.js} +1 -1
  63. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DfogTSI0.js → cose-bilkent-JH36ORCC-C_ID2ynD.js} +1 -1
  64. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-PqEuUNdm.js → cose-bilkent-JH36ORCC-DKEDfD_M.js} +1 -1
  65. package/dist-embed/chunks/{cose-bilkent-JH36ORCC-QlSjYcer.js → cose-bilkent-JH36ORCC-rmqymmkF.js} +1 -1
  66. package/dist-embed/chunks/{createText-aed3d8b3-CXkpNIxq.js → createText-aed3d8b3-ByusaZ77.js} +1 -1
  67. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-BXHu2VJz.js → cs-CZ-2BRQDIVT-B7C8858m.js} +1 -1
  68. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-BM97cGV7.js → cynefinDiagram-5FMLGOSQ-CAklz7DZ.js} +1 -1
  69. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-1XdWtEj9.js → cynefinDiagram-5FMLGOSQ-DNbz6FCa.js} +1 -1
  70. package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-DKl3DGkd.js → cynefinDiagram-5FMLGOSQ-DbR-JTJA.js} +1 -1
  71. package/dist-embed/chunks/cytoscape.esm-By_5ytxT.js +321 -0
  72. package/dist-embed/chunks/{da-DK-5WZEPLOC-CwNxyqIn.js → da-DK-5WZEPLOC-Bia9gQrj.js} +1 -1
  73. package/dist-embed/chunks/{dagre-GXQ25YYZ-D6kgS4Ax.js → dagre-GXQ25YYZ-BnEtC1P4.js} +1 -1
  74. package/dist-embed/chunks/{dagre-GXQ25YYZ-BKXvqmmX.js → dagre-GXQ25YYZ-DLJc0dK5.js} +1 -1
  75. package/dist-embed/chunks/{dagre-GXQ25YYZ-Co1APkPi.js → dagre-GXQ25YYZ-_mRe9pRt.js} +1 -1
  76. package/dist-embed/chunks/{de-DE-XR44H4JA-CaIo6awk.js → de-DE-XR44H4JA-DH4TQpIH.js} +1 -1
  77. package/dist-embed/chunks/{diagram-S7CK7UJ4-CunhQP3h.js → diagram-S7CK7UJ4-CjUTjjdx.js} +1 -1
  78. package/dist-embed/chunks/{diagram-S7CK7UJ4-CuRnBHF8.js → diagram-S7CK7UJ4-CvDLVE8r.js} +1 -1
  79. package/dist-embed/chunks/{diagram-S7CK7UJ4-oLmPHPPl.js → diagram-S7CK7UJ4-Dg6dN3uG.js} +1 -1
  80. package/dist-embed/chunks/{diagram-UQ7AKVKN-cO8d9DHK.js → diagram-UQ7AKVKN-4lsu33JH.js} +1 -1
  81. package/dist-embed/chunks/{diagram-UQ7AKVKN-Cde1cWy4.js → diagram-UQ7AKVKN-B3PPDAUi.js} +1 -1
  82. package/dist-embed/chunks/{diagram-UQ7AKVKN-DMfktoG3.js → diagram-UQ7AKVKN-CtAXPVV9.js} +1 -1
  83. package/dist-embed/chunks/{diagram-VSXAHHWV-tGQ9WLDg.js → diagram-VSXAHHWV-BkgJJ-8t.js} +1 -1
  84. package/dist-embed/chunks/{diagram-VSXAHHWV-BeWbDzB1.js → diagram-VSXAHHWV-DTyBcKiy.js} +1 -1
  85. package/dist-embed/chunks/{diagram-VSXAHHWV-lvVK1mef.js → diagram-VSXAHHWV-EeuWVrCk.js} +1 -1
  86. package/dist-embed/chunks/{diagram-VX7I27RA-CwhU8k37.js → diagram-VX7I27RA-CRO1d9sJ.js} +1 -1
  87. package/dist-embed/chunks/{diagram-VX7I27RA-scmTNQJR.js → diagram-VX7I27RA-Cfto_PKF.js} +1 -1
  88. package/dist-embed/chunks/{diagram-VX7I27RA-QNsPYtdn.js → diagram-VX7I27RA-doA8P3qt.js} +1 -1
  89. package/dist-embed/chunks/{diagram-Z3DM3KII-C5Ph-aHc.js → diagram-Z3DM3KII--AdLn10I.js} +1 -1
  90. package/dist-embed/chunks/{diagram-Z3DM3KII-BnWG2V69.js → diagram-Z3DM3KII-B7rf49uM.js} +1 -1
  91. package/dist-embed/chunks/{diagram-Z3DM3KII-DauYmznS.js → diagram-Z3DM3KII-CPgpikux.js} +1 -1
  92. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-JSjIOtxg.js → ebnfDiagram-PWID7BFC-CBHv7Imk.js} +1 -1
  93. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-FG69s30Z.js → ebnfDiagram-PWID7BFC-DVC6wAs5.js} +1 -1
  94. package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-BsHxCZlu.js → ebnfDiagram-PWID7BFC-Dtc6EfL4.js} +1 -1
  95. package/dist-embed/chunks/{edges-b2856ca0-DEJbOnzY.js → edges-b2856ca0-B8by7vui.js} +1 -1
  96. package/dist-embed/chunks/{el-GR-BZB4AONW-BNEz9ghw.js → el-GR-BZB4AONW-B-AxjHUw.js} +1 -1
  97. package/dist-embed/chunks/{erDiagram-5d81789a-DzOhmgx_.js → erDiagram-5d81789a-BGB_pG1U.js} +1 -1
  98. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-BpdgQKy2.js → erDiagram-RLTQ6QDP-C8yDadLn.js} +1 -1
  99. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-ByGgpa1A.js → erDiagram-RLTQ6QDP-CuFzNwGJ.js} +1 -1
  100. package/dist-embed/chunks/{erDiagram-RLTQ6QDP-DWCPWFft.js → erDiagram-RLTQ6QDP-cniJfGdI.js} +1 -1
  101. package/dist-embed/chunks/{es-ES-U4NZUMDT-CLH2G-rn.js → es-ES-U4NZUMDT-b_TuITvX.js} +1 -1
  102. package/dist-embed/chunks/{eu-ES-A7QVB2H4-DDWZFR3B.js → eu-ES-A7QVB2H4-BoePUF6g.js} +1 -1
  103. package/dist-embed/chunks/{fa-IR-HGAKTJCU-ytUXdfkK.js → fa-IR-HGAKTJCU-B1EBoxWL.js} +1 -1
  104. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-BUPC_MWA.js → fi-FI-Z5N7JZ37-9W90ZogS.js} +1 -1
  105. package/dist-embed/chunks/{flowDb-185abca5-B1q85a-x.js → flowDb-185abca5-CQ7gbwwM.js} +1 -1
  106. package/dist-embed/chunks/{flowDiagram-1629c991-Csq6DRpv.js → flowDiagram-1629c991-Dp5HKs_2.js} +1 -1
  107. package/dist-embed/chunks/{flowDiagram-HODETNUW-CTU6mH-W.js → flowDiagram-HODETNUW-B2YyuTfb.js} +1 -1
  108. package/dist-embed/chunks/{flowDiagram-HODETNUW--wYFkVp_.js → flowDiagram-HODETNUW-DBJ2CSfg.js} +1 -1
  109. package/dist-embed/chunks/{flowDiagram-HODETNUW-mq8xAg1M.js → flowDiagram-HODETNUW-R9hBuaXL.js} +1 -1
  110. package/dist-embed/chunks/{flowDiagram-v2-1d953310-yPDKJcBg.js → flowDiagram-v2-1d953310-CTmhCjWv.js} +1 -1
  111. package/dist-embed/chunks/{flowchart-elk-definition-6df44142-CHaXb510.js → flowchart-elk-definition-6df44142-walE_yTF.js} +1 -1
  112. package/dist-embed/chunks/{fr-FR-RHASNOE6-JTwVsOuH.js → fr-FR-RHASNOE6-BbQ3o66c.js} +1 -1
  113. package/dist-embed/chunks/{ganttDiagram-3b0b3873-Ds3LxJyt.js → ganttDiagram-3b0b3873-BPMhtO3X.js} +1 -1
  114. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-B0CeoMuW.js → ganttDiagram-EL5Y4UJY-BSHl4R7O.js} +1 -1
  115. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-BYh-fMw7.js → ganttDiagram-EL5Y4UJY-C0jQJyXo.js} +1 -1
  116. package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Be4ppjN1.js → ganttDiagram-EL5Y4UJY-DaAiP9PL.js} +1 -1
  117. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX--4WTKBJ1.js → gitGraphDiagram-WWUBYQGX-CVyUbbuW.js} +1 -1
  118. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-Bdkvhiw0.js → gitGraphDiagram-WWUBYQGX-DfrYweJv.js} +1 -1
  119. package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-CKLsiWAC.js → gitGraphDiagram-WWUBYQGX-RYOnVzHz.js} +1 -1
  120. package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-D3KFX6sZ.js → gitGraphDiagram-f01e8bc2-B0F5shwi.js} +1 -1
  121. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-BdxZC4tu.js → gl-ES-HMX3MZ6V-C-b5f_gx.js} +1 -1
  122. package/dist-embed/chunks/{he-IL-6SHJWFNN-JAbyqBiH.js → he-IL-6SHJWFNN-DkgM71qz.js} +1 -1
  123. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-CcRjCOJL.js → hi-IN-IWLTKZ5I-L5g6QTW5.js} +1 -1
  124. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-B8qbiTHN.js → hu-HU-A5ZG7DT2-3jsiB6XB.js} +1 -1
  125. package/dist-embed/chunks/{id-ID-SAP4L64H-D0CEzwZy.js → id-ID-SAP4L64H-BjFiFDHJ.js} +1 -1
  126. package/dist-embed/chunks/{index-9bae90f3-BoF5CmSL.js → index-9bae90f3-BhZ9DiTP.js} +1 -1
  127. package/dist-embed/chunks/{index-O5uyTYL5.js → index-CAWdjL5V.js} +3 -3
  128. package/dist-embed/chunks/{index-vYgHQz2d.js → index-Cs1hG--0.js} +3 -3
  129. package/dist-embed/chunks/{infoDiagram-27XIBGKW-yDdn2ys1.js → infoDiagram-27XIBGKW-Bl1Pzj0u.js} +1 -1
  130. package/dist-embed/chunks/{infoDiagram-27XIBGKW-DhcbxFur.js → infoDiagram-27XIBGKW-DCppdNG8.js} +1 -1
  131. package/dist-embed/chunks/{infoDiagram-27XIBGKW-DMSiRsPL.js → infoDiagram-27XIBGKW-NPmfl4N4.js} +1 -1
  132. package/dist-embed/chunks/{infoDiagram-a29d40f1-lMbGYhRA.js → infoDiagram-a29d40f1-CMQFQwx7.js} +1 -1
  133. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-D9Lpd-qW.js → ishikawaDiagram-5VMMS53U-BooLHkgT.js} +1 -1
  134. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-xAm1DqfO.js → ishikawaDiagram-5VMMS53U-CS41azG7.js} +1 -1
  135. package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-Bs5MXGby.js → ishikawaDiagram-5VMMS53U-CpZaAw2N.js} +1 -1
  136. package/dist-embed/chunks/{it-IT-JPQ66NNP-D8vgJYOR.js → it-IT-JPQ66NNP-DIHnHyB7.js} +1 -1
  137. package/dist-embed/chunks/{ja-JP-DBVTYXUO-uNmMFGbM.js → ja-JP-DBVTYXUO-Ds2LiJlq.js} +1 -1
  138. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-UWvb1n7z.js → journeyDiagram-3NMN7TZE-Rhrjh8Iz.js} +1 -1
  139. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-DsK4E2pa.js → journeyDiagram-3NMN7TZE-kfNcGwLY.js} +1 -1
  140. package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-CqOjB9qC.js → journeyDiagram-3NMN7TZE-qt0dfewx.js} +1 -1
  141. package/dist-embed/chunks/{journeyDiagram-95396277-DaL67Nt9.js → journeyDiagram-95396277-BOzieewc.js} +1 -1
  142. package/dist-embed/chunks/{kaa-6HZHGXH3-B5unU3uz.js → kaa-6HZHGXH3-Bm9ip0Ev.js} +1 -1
  143. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-B5H4IbGk.js → kab-KAB-ZGHBKWFO-DKtPNDu-.js} +1 -1
  144. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-B4u5UtF8.js → kanban-definition-UXKFOSKX-8DD90WYG.js} +1 -1
  145. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-Dw4NP_ei.js → kanban-definition-UXKFOSKX-BojBUM4h.js} +1 -1
  146. package/dist-embed/chunks/{kanban-definition-UXKFOSKX-nLzuO7SQ.js → kanban-definition-UXKFOSKX-DlSlWXrv.js} +1 -1
  147. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-jkjUgYOW.js → kk-KZ-P5N5QNE5-BE95kg02.js} +1 -1
  148. package/dist-embed/chunks/{km-KH-HSX4SM5Z-DHJ4OvO0.js → km-KH-HSX4SM5Z-Cp3j-F6T.js} +1 -1
  149. package/dist-embed/chunks/{ko-KR-MTYHY66A-DX6xT6T7.js → ko-KR-MTYHY66A-BJ-sw_57.js} +1 -1
  150. package/dist-embed/chunks/{ku-TR-6OUDTVRD-aMNDsoCq.js → ku-TR-6OUDTVRD-awoL4FjI.js} +1 -1
  151. package/dist-embed/chunks/{layout-CbX7cOw6.js → layout-BYKl55FS.js} +1 -1
  152. package/dist-embed/chunks/{layout-budm1d9Z.js → layout-C_yOZkc2.js} +1 -1
  153. package/dist-embed/chunks/{layout-BBclPDkZ.js → layout-ChYpapTk.js} +1 -1
  154. package/dist-embed/chunks/{lib-DsSHOc59.js → lib--qRKTceu.js} +1 -1
  155. package/dist-embed/chunks/{lt-LT-XHIRWOB4-CFvk2lSA.js → lt-LT-XHIRWOB4-CNEHR25x.js} +1 -1
  156. package/dist-embed/chunks/{lv-LV-5QDEKY6T-RtfLJiJ2.js → lv-LV-5QDEKY6T-BikdY7uL.js} +1 -1
  157. package/dist-embed/chunks/{mermaid.core-BdY790tt.js → mermaid.core-CnWnBqDh.js} +2 -2
  158. package/dist-embed/chunks/{mermaid.core-Ded6th0k.js → mermaid.core-D4sqHwDm.js} +3 -3
  159. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-DI33cFKM.js → mindmap-definition-YA3MSWOX-Bbk0l2Uj.js} +1 -1
  160. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-C1M2WNCz.js → mindmap-definition-YA3MSWOX-D_h1OI7b.js} +1 -1
  161. package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-alx6Cf7F.js → mindmap-definition-YA3MSWOX-KfqEojam.js} +1 -1
  162. package/dist-embed/chunks/{mindmap-definition-e4c1d938-BWE8P1P2.js → mindmap-definition-e4c1d938-DhLTAa52.js} +1 -1
  163. package/dist-embed/chunks/{mr-IN-CRQNXWMA-D8_Mabbi.js → mr-IN-CRQNXWMA-BL7I68Ao.js} +1 -1
  164. package/dist-embed/chunks/{my-MM-5M5IBNSE-CpXJoZVO.js → my-MM-5M5IBNSE-ByCU1-9D.js} +1 -1
  165. package/dist-embed/chunks/{nb-NO-T6EIAALU-DV0yn6n2.js → nb-NO-T6EIAALU-BCcE1Fcq.js} +1 -1
  166. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-BShUfztw.js → nl-NL-IS3SIHDZ-DccTIAIb.js} +1 -1
  167. package/dist-embed/chunks/{nn-NO-6E72VCQL-DT67tBGp.js → nn-NO-6E72VCQL-fU6oIV9Z.js} +1 -1
  168. package/dist-embed/chunks/{oc-FR-POXYY2M6-C9beX7l6.js → oc-FR-POXYY2M6-DRz48Zf2.js} +1 -1
  169. package/dist-embed/chunks/{pa-IN-N4M65BXN-BfWw7Fcm.js → pa-IN-N4M65BXN-Dn6RUhjM.js} +1 -1
  170. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-D43gxP_r.js → pegDiagram-XKGWAZYB-DHcc_OPa.js} +1 -1
  171. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-DxVOcMZA.js → pegDiagram-XKGWAZYB-DaH65flI.js} +1 -1
  172. package/dist-embed/chunks/{pegDiagram-XKGWAZYB-B-STlrnN.js → pegDiagram-XKGWAZYB-Dw8pYpra.js} +1 -1
  173. package/dist-embed/chunks/{percentages-BXMCSKIN-DnOPjw1c.js → percentages-BXMCSKIN-7qo6Vcj0.js} +5 -5
  174. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-DHCSEzPE.js → pieDiagram-E7YTZNPT-B-ku6GN6.js} +1 -1
  175. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-BHp_a9_V.js → pieDiagram-E7YTZNPT-CtZic9lc.js} +1 -1
  176. package/dist-embed/chunks/{pieDiagram-E7YTZNPT-Gzy_dRcT.js → pieDiagram-E7YTZNPT-R19M4ttg.js} +1 -1
  177. package/dist-embed/chunks/{pieDiagram-c941bede-COfap22O.js → pieDiagram-c941bede-9AjBAeZt.js} +1 -1
  178. package/dist-embed/chunks/{pl-PL-T2D74RX3-D_-aGMy6.js → pl-PL-T2D74RX3-DVAUO1O_.js} +1 -1
  179. package/dist-embed/chunks/{pt-BR-5N22H2LF-S9-rvdh-.js → pt-BR-5N22H2LF-1Tez_fAL.js} +1 -1
  180. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-B3YwXhX2.js → pt-PT-UZXXM6DQ-BuWm1PCV.js} +1 -1
  181. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-C_b3F-T8.js → quadrantDiagram-AXDQQJYC-Cg8W31sE.js} +1 -1
  182. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-BCsAVe36.js → quadrantDiagram-AXDQQJYC-DnLtWDyk.js} +1 -1
  183. package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-B55m_E_j.js → quadrantDiagram-AXDQQJYC-Mx1FE_sA.js} +1 -1
  184. package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-C_xZhVnv.js → quadrantDiagram-cf8b8fe0-PybiUp7j.js} +1 -1
  185. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BxRisPAC.js → railroadDiagram-O6MQD6OU-CwJ3nO0E.js} +1 -1
  186. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-fbmW_Rmh.js → railroadDiagram-O6MQD6OU-JnOPUtcS.js} +1 -1
  187. package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-DVdFHJSU.js → railroadDiagram-O6MQD6OU-ooNBC07F.js} +1 -1
  188. package/dist-embed/chunks/{requirementDiagram-53bda41b-BmZjKHQB.js → requirementDiagram-53bda41b-1nKB7JHP.js} +1 -1
  189. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-BENcRGSI.js → requirementDiagram-BXWQKSXE-C1Zlodd3.js} +1 -1
  190. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-5ZOq4RNc.js → requirementDiagram-BXWQKSXE-CEY9Orn-.js} +1 -1
  191. package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-BUeCb6ve.js → requirementDiagram-BXWQKSXE-CTW14inu.js} +1 -1
  192. package/dist-embed/chunks/{ro-RO-JPDTUUEW-yYRbH_ru.js → ro-RO-JPDTUUEW-BZO6J21O.js} +1 -1
  193. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-BTc6cwjB.js → ru-RU-B4JR7IUQ-CIgcHo9F.js} +1 -1
  194. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BKj_03rc.js → sankeyDiagram-P5KCCOFB-5mrZ12oe.js} +1 -1
  195. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BSLcGNSw.js → sankeyDiagram-P5KCCOFB-CMZFkIO-.js} +1 -1
  196. package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CFAZBZI4.js → sankeyDiagram-P5KCCOFB-CxTxWAhL.js} +1 -1
  197. package/dist-embed/chunks/{sankeyDiagram-c3ef121a-B8gCHZA6.js → sankeyDiagram-c3ef121a-fMTuDkkW.js} +1 -1
  198. package/dist-embed/chunks/{sequenceDiagram-82a5b84f-AklXnQgP.js → sequenceDiagram-82a5b84f-DovuOEeX.js} +1 -1
  199. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CShpzQ4V.js → sequenceDiagram-WJ2MYXX4-CctCVP8F.js} +1 -1
  200. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DxT2acAk.js → sequenceDiagram-WJ2MYXX4-Cu55FAea.js} +1 -1
  201. package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-Cj84kVBc.js → sequenceDiagram-WJ2MYXX4-DaQsUJrf.js} +1 -1
  202. package/dist-embed/chunks/{si-LK-N5RQ5JYF-CTBffWXK.js → si-LK-N5RQ5JYF-D3OWuPGy.js} +1 -1
  203. package/dist-embed/chunks/{sizeCapture-INFHLROL-yGqMMGpB.js → sizeCapture-INFHLROL-BhIlhaXt.js} +1 -1
  204. package/dist-embed/chunks/{sizeCapture-INFHLROL-CWKUF5eK.js → sizeCapture-INFHLROL-BvInErJV.js} +1 -1
  205. package/dist-embed/chunks/{sizeCapture-INFHLROL-ZwPNGyk_.js → sizeCapture-INFHLROL-KdnUrgO7.js} +1 -1
  206. package/dist-embed/chunks/{sk-SK-C5VTKIMK-CSFUvwJi.js → sk-SK-C5VTKIMK-KXmf-wYd.js} +1 -1
  207. package/dist-embed/chunks/{sl-SI-NN7IZMDC-C9mEJcPH.js → sl-SI-NN7IZMDC-BY3hgxE5.js} +1 -1
  208. package/dist-embed/chunks/{stateDiagram-43e79a5f-C6o-SWex.js → stateDiagram-43e79a5f-rp2ng0Sn.js} +1 -1
  209. package/dist-embed/chunks/{stateDiagram-D77RDMKH-CmQCyPn_.js → stateDiagram-D77RDMKH-B-5j7DiB.js} +1 -1
  210. package/dist-embed/chunks/{stateDiagram-D77RDMKH-fTVFrwFS.js → stateDiagram-D77RDMKH-C66YorOq.js} +1 -1
  211. package/dist-embed/chunks/{stateDiagram-D77RDMKH-MJDRvRDw.js → stateDiagram-D77RDMKH-cCIUBLhL.js} +1 -1
  212. package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-K9L665Uq.js → stateDiagram-v2-2041ed4f-Cm4_GOYO.js} +1 -1
  213. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-cLBRcr_4.js → stateDiagram-v2-MP3YSRHH-BdjSXShL.js} +1 -1
  214. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-BTDh758R.js → stateDiagram-v2-MP3YSRHH-COwOHw5B.js} +1 -1
  215. package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-DA2nXTkd.js → stateDiagram-v2-MP3YSRHH-DX1QRcU0.js} +1 -1
  216. package/dist-embed/chunks/{styles-455b33cd-6ttcxSbf.js → styles-455b33cd-CO3Y1vly.js} +1 -1
  217. package/dist-embed/chunks/{styles-f932cba9-Bd2fl0pK.js → styles-f932cba9-DN2pl3Kp.js} +1 -1
  218. package/dist-embed/chunks/{styles-fcc2142b-DS9XDqpK.js → styles-fcc2142b-DQhCVPQv.js} +1 -1
  219. package/dist-embed/chunks/{subset-shared.chunk-BV2qx58E.js → subset-shared.chunk-Bq9jn-da.js} +1 -1
  220. package/dist-embed/chunks/{subset-worker.chunk-CeiZxQyM.js → subset-worker.chunk-BsGlz8UI.js} +1 -1
  221. package/dist-embed/chunks/{sv-SE-XGPEYMSR-1smmCF_L.js → sv-SE-XGPEYMSR-DKcebCX0.js} +1 -1
  222. package/dist-embed/chunks/{svgDrawCommon-148a3cd9-BVJA2vNU.js → svgDrawCommon-148a3cd9-DcBEdsOn.js} +1 -1
  223. package/dist-embed/chunks/{swimlanes-42K2YHIH-BEA12t9Q.js → swimlanes-42K2YHIH-BaUhjRxD.js} +1 -1
  224. package/dist-embed/chunks/{swimlanes-42K2YHIH-BootRY6U.js → swimlanes-42K2YHIH-CUfDuu7T.js} +1 -1
  225. package/dist-embed/chunks/{swimlanes-42K2YHIH-IxeTbXyk.js → swimlanes-42K2YHIH-DAVgbRCJ.js} +1 -1
  226. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-igRz14wA.js → swimlanesDiagram-VR7AAH4N-Ch_GdrLj.js} +1 -1
  227. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BSQ9SnBY.js → swimlanesDiagram-VR7AAH4N-DSV8Wcb6.js} +1 -1
  228. package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-G1JMIDU4.js → swimlanesDiagram-VR7AAH4N-q8ziqhKL.js} +1 -1
  229. package/dist-embed/chunks/{ta-IN-2NMHFXQM-CrRu26yk.js → ta-IN-2NMHFXQM-Br8-RR0y.js} +1 -1
  230. package/dist-embed/chunks/{th-TH-HPSO5L25-wd_Lh_1U.js → th-TH-HPSO5L25-CJK_UyVZ.js} +1 -1
  231. package/dist-embed/chunks/{timeline-definition-24CTP7MA-B8ARTuT8.js → timeline-definition-24CTP7MA-BIiy7TOV.js} +1 -1
  232. package/dist-embed/chunks/{timeline-definition-24CTP7MA-M1iVeCZp.js → timeline-definition-24CTP7MA-CiKjPwx-.js} +1 -1
  233. package/dist-embed/chunks/{timeline-definition-24CTP7MA-CSSHgGzg.js → timeline-definition-24CTP7MA-CxHTYLgu.js} +1 -1
  234. package/dist-embed/chunks/{timeline-definition-7545f45a-CQp2boqy.js → timeline-definition-7545f45a-DSO55aof.js} +1 -1
  235. package/dist-embed/chunks/{tr-TR-DEFEU3FU-CHCQloY1.js → tr-TR-DEFEU3FU-lLeZ3ze9.js} +1 -1
  236. package/dist-embed/chunks/{uk-UA-QMV73CPH-C0h4-2EB.js → uk-UA-QMV73CPH-eKq0P8Ay.js} +1 -1
  237. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-a91Zo7m8.js → vennDiagram-4TSXK5OY-CbxtGmTK.js} +1 -1
  238. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-CNpqMxUb.js → vennDiagram-4TSXK5OY-CfcgsZ27.js} +1 -1
  239. package/dist-embed/chunks/{vennDiagram-4TSXK5OY-B1jzA_Q5.js → vennDiagram-4TSXK5OY-t3Ad3R5t.js} +1 -1
  240. package/dist-embed/chunks/{vi-VN-M7AON7JQ-xY-LexnE.js → vi-VN-M7AON7JQ-DBihSars.js} +1 -1
  241. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-B_fwPDT1.js → wardleyDiagram-VM6X3IG4-BQu0inLU.js} +1 -1
  242. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DgkNToe-.js → wardleyDiagram-VM6X3IG4-DCE_WGW3.js} +1 -1
  243. package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-BJlSAO4E.js → wardleyDiagram-VM6X3IG4-nPlOd9Cq.js} +1 -1
  244. package/dist-embed/chunks/{xychartDiagram-3f383b91-CPFgw7m_.js → xychartDiagram-3f383b91-mUTXbWIJ.js} +1 -1
  245. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-GFqI7WSb.js → xychartDiagram-S5SC5T6Z-0blY3Ojt.js} +1 -1
  246. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-B3INyGsf.js → xychartDiagram-S5SC5T6Z-D4C0-PPM.js} +1 -1
  247. package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DGZHxLSh.js → xychartDiagram-S5SC5T6Z-DEmpndzb.js} +1 -1
  248. package/dist-embed/chunks/{zh-CN-LNUGB5OW-DpBIJ4AH.js → zh-CN-LNUGB5OW-BohX_zex.js} +1 -1
  249. package/dist-embed/chunks/{zh-HK-E62DVLB3-DMknmNwa.js → zh-HK-E62DVLB3-BVA9hSDO.js} +1 -1
  250. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-CFHfvsa1.js → zh-TW-RAJ6MFWO-fJay1Sou.js} +1 -1
  251. package/dist-embed/datalayer-app-main.js +4 -4
  252. package/lib/specs/battles.js +16 -4
  253. package/lib/types/agentspecs.d.ts +6 -0
  254. package/package.json +1 -1
  255. package/scripts/codegen/generate_ops.py +1 -0
  256. package/dist-embed/chunks/cytoscape.esm-CkK8FqzY.js +0 -321
@@ -1,4 +1,4 @@
1
- import{s as gt,g as pt,p as yt,o as mt,a as vt,b as xt,_ as o,y as ct,D as bt,a8 as kt,d as _t,q as St,A as It,B as Et}from"./index-O5uyTYL5.js";import{s as $,i as wt,c as Tt,e as Mt}from"./index-Dz7T8mqj.js";import{V as Dt,l as Ct,t as lt}from"./venn.esm-DcgGHut9.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./dayjs.min-u3zuoSR8.js";var tt=(function(){var e=o(function(N,n,i,a){for(i=i||{},a=N.length;a--;i[N[a]]=n);return i},"o"),d=[5,8],l=[7,8,11,12,17,19,22,24],f=[1,17],c=[1,18],m=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],g=[1,31],V=[1,39],I=[7,8,11,12,17,19,22,24,27],C=[1,57],T=[1,56],b=[1,58],k=[1,59],B=[1,60],x=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],j={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:o(function(n,i,a,s,h,t,A){var r=t.length-1;switch(h){case 1:return t[r-1];case 2:case 3:case 4:this.$=[];break;case 5:t[r-1].push(t[r]),this.$=t[r-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=t[r];break;case 8:s.setDiagramTitle(t[r].substr(6)),this.$=t[r].substr(6);break;case 9:s.addSubsetData([t[r]],void 0,void 0),s.setIndentMode&&s.setIndentMode(!0);break;case 10:s.addSubsetData([t[r-1]],t[r],void 0),s.setIndentMode&&s.setIndentMode(!0);break;case 11:s.addSubsetData([t[r-2]],void 0,parseFloat(t[r])),s.setIndentMode&&s.setIndentMode(!0);break;case 12:s.addSubsetData([t[r-3]],t[r-2],parseFloat(t[r])),s.setIndentMode&&s.setIndentMode(!0);break;case 13:if(t[r].length<2)throw new Error("union requires multiple identifiers");s.validateUnionIdentifiers&&s.validateUnionIdentifiers(t[r]),s.addSubsetData(t[r],void 0,void 0),s.setIndentMode&&s.setIndentMode(!0);break;case 14:if(t[r-1].length<2)throw new Error("union requires multiple identifiers");s.validateUnionIdentifiers&&s.validateUnionIdentifiers(t[r-1]),s.addSubsetData(t[r-1],t[r],void 0),s.setIndentMode&&s.setIndentMode(!0);break;case 15:if(t[r-2].length<2)throw new Error("union requires multiple identifiers");s.validateUnionIdentifiers&&s.validateUnionIdentifiers(t[r-2]),s.addSubsetData(t[r-2],void 0,parseFloat(t[r])),s.setIndentMode&&s.setIndentMode(!0);break;case 16:if(t[r-3].length<2)throw new Error("union requires multiple identifiers");s.validateUnionIdentifiers&&s.validateUnionIdentifiers(t[r-3]),s.addSubsetData(t[r-3],t[r-2],parseFloat(t[r])),s.setIndentMode&&s.setIndentMode(!0);break;case 17:case 18:case 19:s.addTextData(t[r-1],t[r],void 0);break;case 20:case 21:s.addTextData(t[r-2],t[r-1],t[r]);break;case 23:s.addStyleData(t[r-1],t[r]);break;case 24:case 25:case 26:var S=s.getCurrentSets();if(!S)throw new Error("text requires set");s.addTextData(S,t[r],void 0);break;case 27:case 28:var S=s.getCurrentSets();if(!S)throw new Error("text requires set");s.addTextData(S,t[r-1],t[r]);break;case 29:case 41:this.$=[t[r]];break;case 30:case 42:this.$=[...t[r-2],t[r]];break;case 31:this.$=[t[r-2],t[r]];break;case 33:this.$=t[r].join(" ");break;case 34:this.$=[t[r]];break;case 35:t[r-1].push(t[r]),this.$=t[r-1];break;case 43:case 44:this.$=t[r];break}},"anonymous"),table:[e(d,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(l,[2,4],{6:5}),e(d,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(l,[2,5]),e(l,[2,6]),e(l,[2,7]),e(l,[2,8]),{13:16,20:f,21:c},{13:20,18:19,20:f,21:c},{13:20,18:21,20:f,21:c},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:f,21:c},e(l,[2,9],{14:[1,27],15:[1,28]}),e(m,[2,43]),e(m,[2,44]),e(l,[2,13],{14:[1,29],15:[1,30],27:g}),e(m,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:g},e(l,[2,22]),e(l,[2,24],{14:[1,35]}),e(l,[2,25],{14:[1,36]}),e(l,[2,26]),{20:V,25:37,26:38,27:g},e(l,[2,10],{15:[1,40]}),{16:[1,41]},e(l,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:f,21:c},e(l,[2,17],{14:[1,45]}),e(l,[2,18],{14:[1,46]}),e(l,[2,19]),e(l,[2,27]),e(l,[2,28]),e(l,[2,23],{27:[1,47]}),e(I,[2,29]),{15:[1,48]},{16:[1,49]},e(l,[2,11]),{16:[1,50]},e(l,[2,15]),e(m,[2,42]),e(l,[2,20]),e(l,[2,21]),{20:V,26:51},{16:C,20:T,21:[1,53],28:52,29:54,30:55,31:b,32:k,33:B},e(l,[2,12]),e(l,[2,16]),e(I,[2,30]),e(I,[2,31]),e(I,[2,32]),e(I,[2,33],{30:61,16:C,20:T,31:b,32:k,33:B}),e(x,[2,34]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),e(x,[2,39]),e(x,[2,40]),e(x,[2,35])],defaultActions:{6:[2,1]},parseError:o(function(n,i){if(i.recoverable)this.trace(n);else{var a=new Error(n);throw a.hash=i,a}},"parseError"),parse:o(function(n){var i=this,a=[0],s=[],h=[null],t=[],A=this.table,r="",S=0,P=0,K=2,E=1,v=t.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(p.yy[G]=this.yy[G]);u.setInput(n,p.yy),p.yy.lexer=u,p.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var L=u.yylloc;t.push(L);var O=u.options&&u.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function M(z){a.length=a.length-2*z,h.length=h.length-z,t.length=t.length-z}o(M,"popStack");function U(){var z;return z=s.pop()||u.lex()||E,typeof z!="number"&&(z instanceof Array&&(s=z,z=s.pop()),z=i.symbols_[z]||z),z}o(U,"lex");for(var y,w,D,q,F={},X,W,ot,Z;;){if(w=a[a.length-1],this.defaultActions[w]?D=this.defaultActions[w]:((y===null||typeof y>"u")&&(y=U()),D=A[w]&&A[w][y]),typeof D>"u"||!D.length||!D[0]){var Q="";Z=[];for(X in A[w])this.terminals_[X]&&X>K&&Z.push("'"+this.terminals_[X]+"'");u.showPosition?Q="Parse error on line "+(S+1)+`:
1
+ import{s as gt,g as pt,p as yt,o as mt,a as vt,b as xt,_ as o,y as ct,D as bt,a8 as kt,d as _t,q as St,A as It,B as Et}from"./index-Cs1hG--0.js";import{s as $,i as wt,c as Tt,e as Mt}from"./index-Dz7T8mqj.js";import{V as Dt,l as Ct,t as lt}from"./venn.esm-DcgGHut9.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./dayjs.min-u3zuoSR8.js";var tt=(function(){var e=o(function(N,n,i,a){for(i=i||{},a=N.length;a--;i[N[a]]=n);return i},"o"),d=[5,8],l=[7,8,11,12,17,19,22,24],f=[1,17],c=[1,18],m=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],g=[1,31],V=[1,39],I=[7,8,11,12,17,19,22,24,27],C=[1,57],T=[1,56],b=[1,58],k=[1,59],B=[1,60],x=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],j={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:o(function(n,i,a,s,h,t,A){var r=t.length-1;switch(h){case 1:return t[r-1];case 2:case 3:case 4:this.$=[];break;case 5:t[r-1].push(t[r]),this.$=t[r-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=t[r];break;case 8:s.setDiagramTitle(t[r].substr(6)),this.$=t[r].substr(6);break;case 9:s.addSubsetData([t[r]],void 0,void 0),s.setIndentMode&&s.setIndentMode(!0);break;case 10:s.addSubsetData([t[r-1]],t[r],void 0),s.setIndentMode&&s.setIndentMode(!0);break;case 11:s.addSubsetData([t[r-2]],void 0,parseFloat(t[r])),s.setIndentMode&&s.setIndentMode(!0);break;case 12:s.addSubsetData([t[r-3]],t[r-2],parseFloat(t[r])),s.setIndentMode&&s.setIndentMode(!0);break;case 13:if(t[r].length<2)throw new Error("union requires multiple identifiers");s.validateUnionIdentifiers&&s.validateUnionIdentifiers(t[r]),s.addSubsetData(t[r],void 0,void 0),s.setIndentMode&&s.setIndentMode(!0);break;case 14:if(t[r-1].length<2)throw new Error("union requires multiple identifiers");s.validateUnionIdentifiers&&s.validateUnionIdentifiers(t[r-1]),s.addSubsetData(t[r-1],t[r],void 0),s.setIndentMode&&s.setIndentMode(!0);break;case 15:if(t[r-2].length<2)throw new Error("union requires multiple identifiers");s.validateUnionIdentifiers&&s.validateUnionIdentifiers(t[r-2]),s.addSubsetData(t[r-2],void 0,parseFloat(t[r])),s.setIndentMode&&s.setIndentMode(!0);break;case 16:if(t[r-3].length<2)throw new Error("union requires multiple identifiers");s.validateUnionIdentifiers&&s.validateUnionIdentifiers(t[r-3]),s.addSubsetData(t[r-3],t[r-2],parseFloat(t[r])),s.setIndentMode&&s.setIndentMode(!0);break;case 17:case 18:case 19:s.addTextData(t[r-1],t[r],void 0);break;case 20:case 21:s.addTextData(t[r-2],t[r-1],t[r]);break;case 23:s.addStyleData(t[r-1],t[r]);break;case 24:case 25:case 26:var S=s.getCurrentSets();if(!S)throw new Error("text requires set");s.addTextData(S,t[r],void 0);break;case 27:case 28:var S=s.getCurrentSets();if(!S)throw new Error("text requires set");s.addTextData(S,t[r-1],t[r]);break;case 29:case 41:this.$=[t[r]];break;case 30:case 42:this.$=[...t[r-2],t[r]];break;case 31:this.$=[t[r-2],t[r]];break;case 33:this.$=t[r].join(" ");break;case 34:this.$=[t[r]];break;case 35:t[r-1].push(t[r]),this.$=t[r-1];break;case 43:case 44:this.$=t[r];break}},"anonymous"),table:[e(d,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(l,[2,4],{6:5}),e(d,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(l,[2,5]),e(l,[2,6]),e(l,[2,7]),e(l,[2,8]),{13:16,20:f,21:c},{13:20,18:19,20:f,21:c},{13:20,18:21,20:f,21:c},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:f,21:c},e(l,[2,9],{14:[1,27],15:[1,28]}),e(m,[2,43]),e(m,[2,44]),e(l,[2,13],{14:[1,29],15:[1,30],27:g}),e(m,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:g},e(l,[2,22]),e(l,[2,24],{14:[1,35]}),e(l,[2,25],{14:[1,36]}),e(l,[2,26]),{20:V,25:37,26:38,27:g},e(l,[2,10],{15:[1,40]}),{16:[1,41]},e(l,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:f,21:c},e(l,[2,17],{14:[1,45]}),e(l,[2,18],{14:[1,46]}),e(l,[2,19]),e(l,[2,27]),e(l,[2,28]),e(l,[2,23],{27:[1,47]}),e(I,[2,29]),{15:[1,48]},{16:[1,49]},e(l,[2,11]),{16:[1,50]},e(l,[2,15]),e(m,[2,42]),e(l,[2,20]),e(l,[2,21]),{20:V,26:51},{16:C,20:T,21:[1,53],28:52,29:54,30:55,31:b,32:k,33:B},e(l,[2,12]),e(l,[2,16]),e(I,[2,30]),e(I,[2,31]),e(I,[2,32]),e(I,[2,33],{30:61,16:C,20:T,31:b,32:k,33:B}),e(x,[2,34]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),e(x,[2,39]),e(x,[2,40]),e(x,[2,35])],defaultActions:{6:[2,1]},parseError:o(function(n,i){if(i.recoverable)this.trace(n);else{var a=new Error(n);throw a.hash=i,a}},"parseError"),parse:o(function(n){var i=this,a=[0],s=[],h=[null],t=[],A=this.table,r="",S=0,P=0,K=2,E=1,v=t.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(p.yy[G]=this.yy[G]);u.setInput(n,p.yy),p.yy.lexer=u,p.yy.parser=this,typeof u.yylloc>"u"&&(u.yylloc={});var L=u.yylloc;t.push(L);var O=u.options&&u.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function M(z){a.length=a.length-2*z,h.length=h.length-z,t.length=t.length-z}o(M,"popStack");function U(){var z;return z=s.pop()||u.lex()||E,typeof z!="number"&&(z instanceof Array&&(s=z,z=s.pop()),z=i.symbols_[z]||z),z}o(U,"lex");for(var y,w,D,q,F={},X,W,ot,Z;;){if(w=a[a.length-1],this.defaultActions[w]?D=this.defaultActions[w]:((y===null||typeof y>"u")&&(y=U()),D=A[w]&&A[w][y]),typeof D>"u"||!D.length||!D[0]){var Q="";Z=[];for(X in A[w])this.terminals_[X]&&X>K&&Z.push("'"+this.terminals_[X]+"'");u.showPosition?Q="Parse error on line "+(S+1)+`:
2
2
  `+u.showPosition()+`
3
3
  Expecting `+Z.join(", ")+", got '"+(this.terminals_[y]||y)+"'":Q="Parse error on line "+(S+1)+": Unexpected "+(y==E?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(Q,{text:u.match,token:this.terminals_[y]||y,line:u.yylineno,loc:L,expected:Z})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+y);switch(D[0]){case 1:a.push(y),h.push(u.yytext),t.push(u.yylloc),a.push(D[1]),y=null,P=u.yyleng,r=u.yytext,S=u.yylineno,L=u.yylloc;break;case 2:if(W=this.productions_[D[1]][1],F.$=h[h.length-W],F._$={first_line:t[t.length-(W||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(W||1)].first_column,last_column:t[t.length-1].last_column},O&&(F._$.range=[t[t.length-(W||1)].range[0],t[t.length-1].range[1]]),q=this.performAction.apply(F,[r,P,S,p.yy,D[1],h,t].concat(v)),typeof q<"u")return q;W&&(a=a.slice(0,-1*W*2),h=h.slice(0,-1*W),t=t.slice(0,-1*W)),a.push(this.productions_[D[1]][0]),h.push(F.$),t.push(F._$),ot=A[a[a.length-2]][a[a.length-1]],a.push(ot);break;case 3:return!0}}return!0},"parse")},R=(function(){var N={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(n,i){return this.yy=i||this.yy||{},this._input=n,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:o(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var i=n.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:o(function(n){var i=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var s=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),a.length-1&&(this.yylineno-=a.length-1);var h=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:a?(a.length===s.length?this.yylloc.first_column:0)+s[s.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(n){this.unput(this.match.slice(n))},"less"),pastInput:o(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var n=this.pastInput(),i=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import"./percentages-BXMCSKIN-DnOPjw1c.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-DPgvwtkz.js";import"./NotebookSkeleton-BkzTMhIX.js";import"./Avatar-MNx1kN3F.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-BncUh2ly.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./Output-BDj5IS_E.js";import"./index-gTMZPPzQ.js";import"./hoverbox-CStlKQWE.js";import"./index-DTU9B7nJ.js";import"./index-s80E1DA-.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BYxXubsX.js";import"./d3-color-Jd8hXty2.js";import"./dist-BrUAt6vF.js";import"./index-CqP3xLL5.js";import"./RestartIcon-Ca6_HoK0.js";import"./LexicalToolRegistry-B6NG4aPQ.js";import"./extends-CF3RwP-h.js";import"./index-C0d-d3s4.js";import"./index-DoBkwclg.js";var u={paste:"Dán",pasteAsPlaintext:"Dán kiểu văn bản thuần",pasteCharts:"Dán biểu đồ",selectAll:"Chọn tất cả",multiSelect:"Thêm mới vào Select",moveCanvas:"Di chuyển canvas",cut:"Cắt",copy:"Sao chép",copyAsPng:"Sao chép vào bộ nhớ tạm dưới dạng PNG",copyAsSvg:"Sao chép vào bộ nhớ tạm dưới dạng SVG",copyText:"Sao chép vào bộ nhớ tạm dưới dạng chữ",copySource:"",convertToCode:"",bringForward:"Đưa ra trước",sendToBack:"Hạ xuống dưới",bringToFront:"Đưa ra đầu tiên",sendBackward:"Hạ xuống cuối",delete:"Xóa",copyStyles:"Sao chép định dạng",pasteStyles:"Dán định dạng",stroke:"Nét",background:"Nền",fill:"Fill",strokeWidth:"Độ dày nét",strokeStyle:"Kiểu nét",strokeStyle_solid:"Khối",strokeStyle_dashed:"Gạch ngang",strokeStyle_dotted:"Nhiều chấm",sloppiness:"Hoa văn nét",opacity:"Độ trong suốt",textAlign:"Căn chỉnh văn bản",edges:"Cạnh",sharp:"Nhọn",round:"Tròn",arrowheads:"Đầu mũi tên",arrowhead_none:"Không",arrowhead_arrow:"Mũi tên",arrowhead_bar:"Thanh",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Tam giác",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Cỡ chữ",fontFamily:"Phông chữ",addWatermark:'Làm với Excalidraw"',handDrawn:"Vẽ tay",normal:"Bình thường",code:"Mã",small:"Nhỏ",medium:"Vừa",large:"Lớn",veryLarge:"Rất lớn",solid:"Đặc",hachure:"Nét gạch gạch",zigzag:"Zigzag",crossHatch:"Nét gạch chéo",thin:"Mỏng",bold:"In đậm",left:"Trái",center:"Giữa",right:"Phải",extraBold:"Nét siêu đậm",architect:"Kiến trúc sư",artist:"Nghệ sỹ",cartoonist:"Hoạt hình",fileTitle:"Tên tập tin",colorPicker:"Chọn màu",canvasColors:"Đã dùng trên canvas",canvasBackground:"Nền canvas",drawingCanvas:"Canvas vẽ",layers:"Lớp",actions:"Chức năng",language:"Ngôn ngữ",liveCollaboration:"Hợp tác trực tiếp...",duplicateSelection:"Tạo bản sao",untitled:"Không có tiêu đề",name:"Tên",yourName:"Tên của bạn",madeWithExcalidraw:"Làm với Excalidraw",group:"Gộp nhóm lại lựa chọn",ungroup:"Tách nhóm lựa chọn",collaborators:"Cộng tác viên",showGrid:"Hiển thị lưới",addToLibrary:"Thêm vào thư viện",removeFromLibrary:"Xóa khỏi thư viện",libraryLoadingMessage:"Đang tải thư viện…",libraries:"Xem thư viện",loadingScene:"Đang tải về…",align:"Căn chỉnh",alignTop:"Căn trên",alignBottom:"Căn dưới",alignLeft:"Canh trái",alignRight:"Canh phải",centerVertically:"Giữa theo chiều dọc",centerHorizontally:"Giữa theo chiều ngang",distributeHorizontally:"Phân bố theo chiều ngang",distributeVertically:"Phân bố theo chiều dọc",flipHorizontal:"Lật ngang",flipVertical:"Lật dọc",viewMode:"Chế độ xem",share:"Chia sẻ",showStroke:"Hiển thị chọn màu",showBackground:"Hiện thị chọn màu nền",toggleTheme:"",personalLib:"Thư viện cá nhân",excalidrawLib:"Thư viện Excalidraw",decreaseFontSize:"Giảm cỡ chữ",increaseFontSize:"Tăng cỡ chữ",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"Sửa liên kết",editEmbed:"",create:"Tạo liên kết",createEmbed:"",label:"Liên kết",labelEmbed:"",empty:""},lineEditor:{edit:"Điều chỉnh nét",exit:"Thoát chỉnh nét"},elementLock:{lock:"Khoá",unlock:"Mở khoá",lockAll:"Khóa tất cả",unlockAll:"Mở khóa tất cả"},statusPublished:"Đã đăng tải",sidebarLock:"Giữ thanh bên luôn mở",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},E={noItems:"Chưa có món nào...",hint_emptyLibrary:"Chọn một món trên canvas để thêm nó vào đây, hoặc cài đặt thư viện từ kho lưu trữ công cộng, ở bên dưới.",hint_emptyPrivateLibrary:"Chọn một món trên canvas để thêm nó vào đây."},n={clearReset:"Reset canvas",exportJSON:"Xuất ra tập tin",exportImage:"Xuất file ảnh...",export:"Lưu vào...",copyToClipboard:"Sao chép vào bộ nhớ tạm",save:"Lưu vào tập tin hiện tại",saveAs:"Lưu thành",load:"Mở",getShareableLink:"Tạo liên kết để chia sẻ",close:"Đóng",selectLanguage:"Chọn ngôn ngữ",scrollBackToContent:"Cuộn về nội dung chính",zoomIn:"Phóng to",zoomOut:"Thu nhỏ",resetZoom:"Đặt lại thu phóng",menu:"Bảng chọn",done:"Xong",edit:"Chỉnh sửa",undo:"Hoàn tác",redo:"Làm lại",resetLibrary:"",createNewRoom:"Tạo phòng mới",fullScreen:"Toàn màn hình",darkMode:"Chế độ tối",lightMode:"Chế độ sáng",zenMode:"Chế độ zen",objectsSnapMode:"",exitZenMode:"Thoát chể độ zen",cancel:"Hủy",clear:"Làm sạch",remove:"Xóa",embed:"",publishLibrary:"Đăng tải",submit:"Gửi",confirm:"Xác nhận",embeddableInteractionButton:""},e={clearReset:"Điều này sẽ dọn hết canvas. Bạn có chắc không?",couldNotCreateShareableLink:"Không thể tạo đường dẫn chia sẻ.",couldNotCreateShareableLinkTooBig:"Không thể tạo đường dẫn chia sẻ: bản vẽ quá lớn",couldNotLoadInvalidFile:"Không thể load tập tin không hợp lệ",importBackendFailed:"",cannotExportEmptyCanvas:"Không thể xuất canvas trống.",couldNotCopyToClipboard:"",decryptFailed:"Không thể giải mã dữ liệu.",uploadedSecurly:"",loadSceneOverridePrompt:"",collabStopOverridePrompt:`Dừng phiên sẽ ghi đè lên bản vẽ được lưu trữ cục bộ trước đó của bạn. Bạn có chắc không?
1
+ import"./percentages-BXMCSKIN-7qo6Vcj0.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-C6zMmGiE.js";import"./NotebookSkeleton-BkzTMhIX.js";import"./Avatar-MNx1kN3F.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-BncUh2ly.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./Output-BDj5IS_E.js";import"./index-gTMZPPzQ.js";import"./hoverbox-CStlKQWE.js";import"./index-DTU9B7nJ.js";import"./index-s80E1DA-.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BYxXubsX.js";import"./d3-color-Jd8hXty2.js";import"./dist-BrUAt6vF.js";import"./index-CqP3xLL5.js";import"./RestartIcon-Ca6_HoK0.js";import"./LexicalToolRegistry-B6NG4aPQ.js";import"./extends-CF3RwP-h.js";import"./index-C0d-d3s4.js";import"./index-DoBkwclg.js";var u={paste:"Dán",pasteAsPlaintext:"Dán kiểu văn bản thuần",pasteCharts:"Dán biểu đồ",selectAll:"Chọn tất cả",multiSelect:"Thêm mới vào Select",moveCanvas:"Di chuyển canvas",cut:"Cắt",copy:"Sao chép",copyAsPng:"Sao chép vào bộ nhớ tạm dưới dạng PNG",copyAsSvg:"Sao chép vào bộ nhớ tạm dưới dạng SVG",copyText:"Sao chép vào bộ nhớ tạm dưới dạng chữ",copySource:"",convertToCode:"",bringForward:"Đưa ra trước",sendToBack:"Hạ xuống dưới",bringToFront:"Đưa ra đầu tiên",sendBackward:"Hạ xuống cuối",delete:"Xóa",copyStyles:"Sao chép định dạng",pasteStyles:"Dán định dạng",stroke:"Nét",background:"Nền",fill:"Fill",strokeWidth:"Độ dày nét",strokeStyle:"Kiểu nét",strokeStyle_solid:"Khối",strokeStyle_dashed:"Gạch ngang",strokeStyle_dotted:"Nhiều chấm",sloppiness:"Hoa văn nét",opacity:"Độ trong suốt",textAlign:"Căn chỉnh văn bản",edges:"Cạnh",sharp:"Nhọn",round:"Tròn",arrowheads:"Đầu mũi tên",arrowhead_none:"Không",arrowhead_arrow:"Mũi tên",arrowhead_bar:"Thanh",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Tam giác",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Cỡ chữ",fontFamily:"Phông chữ",addWatermark:'Làm với Excalidraw"',handDrawn:"Vẽ tay",normal:"Bình thường",code:"Mã",small:"Nhỏ",medium:"Vừa",large:"Lớn",veryLarge:"Rất lớn",solid:"Đặc",hachure:"Nét gạch gạch",zigzag:"Zigzag",crossHatch:"Nét gạch chéo",thin:"Mỏng",bold:"In đậm",left:"Trái",center:"Giữa",right:"Phải",extraBold:"Nét siêu đậm",architect:"Kiến trúc sư",artist:"Nghệ sỹ",cartoonist:"Hoạt hình",fileTitle:"Tên tập tin",colorPicker:"Chọn màu",canvasColors:"Đã dùng trên canvas",canvasBackground:"Nền canvas",drawingCanvas:"Canvas vẽ",layers:"Lớp",actions:"Chức năng",language:"Ngôn ngữ",liveCollaboration:"Hợp tác trực tiếp...",duplicateSelection:"Tạo bản sao",untitled:"Không có tiêu đề",name:"Tên",yourName:"Tên của bạn",madeWithExcalidraw:"Làm với Excalidraw",group:"Gộp nhóm lại lựa chọn",ungroup:"Tách nhóm lựa chọn",collaborators:"Cộng tác viên",showGrid:"Hiển thị lưới",addToLibrary:"Thêm vào thư viện",removeFromLibrary:"Xóa khỏi thư viện",libraryLoadingMessage:"Đang tải thư viện…",libraries:"Xem thư viện",loadingScene:"Đang tải về…",align:"Căn chỉnh",alignTop:"Căn trên",alignBottom:"Căn dưới",alignLeft:"Canh trái",alignRight:"Canh phải",centerVertically:"Giữa theo chiều dọc",centerHorizontally:"Giữa theo chiều ngang",distributeHorizontally:"Phân bố theo chiều ngang",distributeVertically:"Phân bố theo chiều dọc",flipHorizontal:"Lật ngang",flipVertical:"Lật dọc",viewMode:"Chế độ xem",share:"Chia sẻ",showStroke:"Hiển thị chọn màu",showBackground:"Hiện thị chọn màu nền",toggleTheme:"",personalLib:"Thư viện cá nhân",excalidrawLib:"Thư viện Excalidraw",decreaseFontSize:"Giảm cỡ chữ",increaseFontSize:"Tăng cỡ chữ",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"Sửa liên kết",editEmbed:"",create:"Tạo liên kết",createEmbed:"",label:"Liên kết",labelEmbed:"",empty:""},lineEditor:{edit:"Điều chỉnh nét",exit:"Thoát chỉnh nét"},elementLock:{lock:"Khoá",unlock:"Mở khoá",lockAll:"Khóa tất cả",unlockAll:"Mở khóa tất cả"},statusPublished:"Đã đăng tải",sidebarLock:"Giữ thanh bên luôn mở",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},E={noItems:"Chưa có món nào...",hint_emptyLibrary:"Chọn một món trên canvas để thêm nó vào đây, hoặc cài đặt thư viện từ kho lưu trữ công cộng, ở bên dưới.",hint_emptyPrivateLibrary:"Chọn một món trên canvas để thêm nó vào đây."},n={clearReset:"Reset canvas",exportJSON:"Xuất ra tập tin",exportImage:"Xuất file ảnh...",export:"Lưu vào...",copyToClipboard:"Sao chép vào bộ nhớ tạm",save:"Lưu vào tập tin hiện tại",saveAs:"Lưu thành",load:"Mở",getShareableLink:"Tạo liên kết để chia sẻ",close:"Đóng",selectLanguage:"Chọn ngôn ngữ",scrollBackToContent:"Cuộn về nội dung chính",zoomIn:"Phóng to",zoomOut:"Thu nhỏ",resetZoom:"Đặt lại thu phóng",menu:"Bảng chọn",done:"Xong",edit:"Chỉnh sửa",undo:"Hoàn tác",redo:"Làm lại",resetLibrary:"",createNewRoom:"Tạo phòng mới",fullScreen:"Toàn màn hình",darkMode:"Chế độ tối",lightMode:"Chế độ sáng",zenMode:"Chế độ zen",objectsSnapMode:"",exitZenMode:"Thoát chể độ zen",cancel:"Hủy",clear:"Làm sạch",remove:"Xóa",embed:"",publishLibrary:"Đăng tải",submit:"Gửi",confirm:"Xác nhận",embeddableInteractionButton:""},e={clearReset:"Điều này sẽ dọn hết canvas. Bạn có chắc không?",couldNotCreateShareableLink:"Không thể tạo đường dẫn chia sẻ.",couldNotCreateShareableLinkTooBig:"Không thể tạo đường dẫn chia sẻ: bản vẽ quá lớn",couldNotLoadInvalidFile:"Không thể load tập tin không hợp lệ",importBackendFailed:"",cannotExportEmptyCanvas:"Không thể xuất canvas trống.",couldNotCopyToClipboard:"",decryptFailed:"Không thể giải mã dữ liệu.",uploadedSecurly:"",loadSceneOverridePrompt:"",collabStopOverridePrompt:`Dừng phiên sẽ ghi đè lên bản vẽ được lưu trữ cục bộ trước đó của bạn. Bạn có chắc không?
2
2
 
3
3
  (Nếu bạn muốn giữ bản vẽ cục bộ của mình, chỉ cần đóng tab trình duyệt.)`,errorAddingToLibrary:"Không thể thêm món vào thư viện",errorRemovingFromLibrary:"Không thể xoá món khỏi thư viện",confirmAddLibrary:"Hình {{numShapes}} sẽ được thêm vào thư viện. Bạn chắc chứ?",imageDoesNotContainScene:"Hình ảnh này dường như không chứa bất kỳ dữ liệu cảnh nào. Bạn đã bật tính năng nhúng cảnh khi xuất chưa?",cannotRestoreFromImage:"",invalidSceneUrl:"",resetLibrary:"",removeItemsFromsLibrary:"Xoá {{count}} món từ thư viện?",invalidEncryptionKey:"Khóa mã hóa phải có 22 ký tự. Hợp tác trực tiếp bị vô hiệu hóa.",collabOfflineWarning:`Không có kết nối internet.
4
4
  Thay đổi của bạn sẽ không được lưu!`},t={unsupportedFileType:"Loại tập tin không được hỗ trợ.",imageInsertError:"Không thể thêm ảnh. Hãy thử lại sau...",fileTooBig:"Tệp tin quá lớn. Dung lượng tối đa cho phép là {{maxSize}}.",svgImageInsertError:"Không thể thêm ảnh SVG. Mã SVG có vẻ sai.",failedToFetchImage:"",invalidSVGString:"SVG không hợp lệ.",cannotResolveCollabServer:"Không thể kết nối với máy chủ hợp tác. Hãy tải lại trang và thử lại.",importLibraryError:"Không thể tải thư viện",collabSaveFailed:"Không thể lưu vào cơ sở dữ liệu. Nếu vấn đề tiếp tục xảy ra, bạn nên lưu tệp vào máy để đảm bảo bạn không bị mất công việc.",collabSaveFailed_sizeExceeded:"Không thể lưu vào cơ sở dữ liệu, canvas có vẻ quá lớn. Bạn nên lưu tệp cục bộ để đảm bảo bạn không bị mất công việc.",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},i={selection:"Lựa chọn",image:"Chèn ảnh",rectangle:"Hình chữ nhật",diamond:"Kim cương",ellipse:"Hình elíp",arrow:"Mũi tên",line:"Đường kẻ",freedraw:"Vẽ",text:"Văn bản",library:"Thư viện",lock:"Giữ dụng cũ hiện tại sau khi vẽ",penMode:"Chế độ bút vẽ - ngăn ngừa chạm nhầm",link:"Thêm/ Chỉnh sửa liên kết cho hình được chọn",eraser:"Xóa",frame:"",magicframe:"",embeddable:"",laser:"",hand:"Tay kéo",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},a={canvasActions:"Hành động canvas",selectedShapeActions:"Các hành động cho hình dạng đã chọn",shapes:"Các hình khối"},o={canvasPanning:"Để di chuyển canvas, giữ con lăn chuột hoặc phím cách trong khi kéo, hoặc sử dụng công cụ cầm tay",linearElement:"Ấn để bắt đầu nhiểm điểm vẽ, kéo để vẽ một đường thẳng",freeDraw:"Ấn bà kéo, thả khi bạn xong",text:"Mẹo: bạn có thể thêm văn bản tại bất cứ đâu bằng cách ấn hai lần bằng tool lựa chọn",embeddable:"",text_selected:"Ấn 2 lần hoặc nhấn ENTER để chỉnh văn bản",text_editing:"Nhấn Escape hoặc Ctrl/Cmd+ENTER để hoàn thành chỉnh sửa",linearElementMulti:"Nhấn vào điểm cuối hoặc nhấn Escape hoặc Enter để kết thúc",lockAngle:"Bạn có thể chỉnh lại góc bằng cách giữ phím SHIFT",resize:`Bạn có thể chỉnh tỷ lệ bằng cách giữ SHIFT khi chỉnh kích cỡ,
@@ -1,4 +1,4 @@
1
- import{p as St}from"./chunk-JWPE2WC7-BJuxLF68.js";import{s as Mt,g as Nt,p as zt,o as Lt,a as Tt,b as At,_ as u,F as Xt,y as Et,A as U,l as K,D as Yt,d as It,q as Ft,c as j}from"./mermaid.core-Ded6th0k.js";import{p as Bt}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./index-Dz7T8mqj.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=u((e,n)=>{const r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${n} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),A=u((e,n,r)=>({x:D(n,`${r} evolution`),y:D(e,`${r} visibility`)}),"toCoordinates"),J=u(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),Rt=u(e=>{if(!e?.startsWith("+"))return{};const r=/^\+'([^']*)'/.exec(e)?.[1];return e.includes("<>")?{flow:"bidirectional",label:r}:e.includes("<")?{flow:"backward",label:r}:e.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),Ot=u((e,n)=>{if(St(e,n),e.size&&n.setSize(e.size.width,e.size.height),e.evolution){const r=e.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),x=e.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);n.updateAxes({stages:r,stageBoundaries:x})}if(e.anchors.forEach(r=>{const x=A(r.visibility,r.evolution,`Anchor "${r.name}"`);n.addNode(r.name,r.name,x.x,x.y,"anchor")}),e.components.forEach(r=>{const x=A(r.visibility,r.evolution,`Component "${r.name}"`),a=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,d=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,m=r.decorator?.strategy;n.addNode(r.name,r.name,x.x,x.y,"component",a,d,r.inertia,m)}),e.notes.forEach(r=>{const x=A(r.visibility,r.evolution,`Note "${r.text}"`);n.addNote(r.text,x.x,x.y)}),e.pipelines.forEach(r=>{const x=n.getNode(r.parent);if(!x||typeof x.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const a=x.y;n.startPipeline(r.parent),r.components.forEach(d=>{const m=`${r.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,B=D(d.evolution,`Pipeline component "${d.name}" evolution`);n.addNode(m,d.name,B,a,"pipeline-component",C,g),n.addPipelineComponent(r.parent,m)})}),e.links.forEach(r=>{const x=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let a=J(r.fromPort)??J(r.toPort);const{flow:d,label:m}=Rt(r.arrow);!a&&d&&(a=d);const C=r.linkLabel,g=m??C;n.addLink(n.resolveNodeId(r.from),n.resolveNodeId(r.to),x,g,a)}),e.evolves.forEach(r=>{const x=n.getNode(r.component);if(x?.y!==void 0){const a=D(r.target,`Evolve target for "${r.component}"`);n.addTrend(r.component,a,x.y)}}),e.annotations.length>0){const r=e.annotations[0],x=A(r.x,r.y,"Annotations box");n.setAnnotationsBox(x.x,x.y)}e.annotation.forEach(r=>{const x=A(r.x,r.y,`Annotation ${r.number}`);n.addAnnotation(r.number,[{x:x.x,y:x.y}],r.text)}),e.accelerators.forEach(r=>{const x=A(r.x,r.y,`Accelerator "${r.name}"`);n.addAccelerator(r.name,x.x,x.y)}),e.deaccelerators.forEach(r=>{const x=A(r.x,r.y,`Deaccelerator "${r.name}"`);n.addDeaccelerator(r.name,x.x,x.y)})},"populateDb"),Q={parser:{yy:void 0},parse:u(async e=>{const n=await Bt("wardley",e);K.debug(n);const r=Q.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ot(n,r)},"parse")},Wt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{u(this,"WardleyBuilder")}addNode(e){const n=this.nodes.get(e.id)??{id:e.id,label:e.label},r={...n,...e,className:e.className??n.className,labelOffsetX:e.labelOffsetX??n.labelOffsetX,labelOffsetY:e.labelOffsetY??n.labelOffsetY};this.nodes.set(e.id,r)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const n=this.nodes.get(e);n&&(n.isPipelineParent=!0)}addPipelineComponent(e,n){const r=this.pipelines.get(e);r&&r.componentIds.push(n);const x=this.nodes.get(n);x&&(x.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,n){this.annotationsBox={x:e,y:n}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,n){this.size={width:e,height:n}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[n,r]of this.nodes)if(r.label===e)return n;return e}build(){const e=[];for(const n of this.nodes.values()){if(typeof n.x!="number"||typeof n.y!="number")throw new Error(`Node "${n.label}" is missing coordinates`);e.push(n)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},k=new Wt;function tt(){return j()["wardley-beta"]}u(tt,"getConfig");function et(e,n,r,x,a,d,m,C,g){k.addNode({id:e,label:n,x:r,y:x,className:a,labelOffsetX:d,labelOffsetY:m,inertia:C,sourceStrategy:g})}u(et,"addNode");function at(e,n,r=!1,x,a){k.addLink({source:e,target:n,dashed:r,label:x,flow:a})}u(at,"addLink");function rt(e,n,r){k.addTrend({nodeId:e,targetX:n,targetY:r})}u(rt,"addTrend");function ot(e,n,r){k.addAnnotation({number:e,coordinates:n,text:r})}u(ot,"addAnnotation");function nt(e,n,r){k.addNote({text:e,x:n,y:r})}u(nt,"addNote");function st(e,n,r){k.addAccelerator({name:e,x:n,y:r})}u(st,"addAccelerator");function it(e,n,r){k.addDeaccelerator({name:e,x:n,y:r})}u(it,"addDeaccelerator");function dt(e,n){k.setAnnotationsBox(e,n)}u(dt,"setAnnotationsBox");function lt(e,n){k.setSize(e,n)}u(lt,"setSize");function ct(e){k.startPipeline(e)}u(ct,"startPipeline");function pt(e,n){k.addPipelineComponent(e,n)}u(pt,"addPipelineComponent");function ft(e){k.setAxes(e)}u(ft,"updateAxes");function ht(e){return k.getNode(e)}u(ht,"getNode");function xt(e){return k.resolveNodeId(e)}u(xt,"resolveNodeId");function gt(){return k.build()}u(gt,"getWardleyData");function yt(){k.clear(),Ft()}u(yt,"clear");var Dt={getConfig:tt,addNode:et,addLink:at,addTrend:rt,addAnnotation:ot,addNote:nt,addAccelerator:st,addDeaccelerator:it,setAnnotationsBox:dt,setSize:lt,startPipeline:ct,addPipelineComponent:pt,updateAxes:ft,getNode:ht,resolveNodeId:xt,getWardleyData:gt,clear:yt,setAccTitle:At,getAccTitle:Tt,setDiagramTitle:Lt,getDiagramTitle:zt,getAccDescription:Nt,setAccDescription:Mt},Gt=["Genesis","Custom Built","Product","Commodity"],qt=u(()=>{const{themeVariables:e}=j();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),Ht=u(()=>{const e=j()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),jt=u((e,n,r,x)=>{K.debug(`Rendering Wardley map
1
+ import{p as St}from"./chunk-JWPE2WC7-DBjxITsj.js";import{s as Mt,g as Nt,p as zt,o as Lt,a as Tt,b as At,_ as u,F as Xt,y as Et,A as U,l as K,D as Yt,d as It,q as Ft,c as j}from"./mermaid.core-D4sqHwDm.js";import{p as Bt}from"./cynefin-OW5HDTMX-BVK0_S--.js";import"../datalayer-app-main.js";import"./index-Dz7T8mqj.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=u((e,n)=>{const r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${n} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),A=u((e,n,r)=>({x:D(n,`${r} evolution`),y:D(e,`${r} visibility`)}),"toCoordinates"),J=u(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),Rt=u(e=>{if(!e?.startsWith("+"))return{};const r=/^\+'([^']*)'/.exec(e)?.[1];return e.includes("<>")?{flow:"bidirectional",label:r}:e.includes("<")?{flow:"backward",label:r}:e.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),Ot=u((e,n)=>{if(St(e,n),e.size&&n.setSize(e.size.width,e.size.height),e.evolution){const r=e.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),x=e.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);n.updateAxes({stages:r,stageBoundaries:x})}if(e.anchors.forEach(r=>{const x=A(r.visibility,r.evolution,`Anchor "${r.name}"`);n.addNode(r.name,r.name,x.x,x.y,"anchor")}),e.components.forEach(r=>{const x=A(r.visibility,r.evolution,`Component "${r.name}"`),a=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,d=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,m=r.decorator?.strategy;n.addNode(r.name,r.name,x.x,x.y,"component",a,d,r.inertia,m)}),e.notes.forEach(r=>{const x=A(r.visibility,r.evolution,`Note "${r.text}"`);n.addNote(r.text,x.x,x.y)}),e.pipelines.forEach(r=>{const x=n.getNode(r.parent);if(!x||typeof x.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const a=x.y;n.startPipeline(r.parent),r.components.forEach(d=>{const m=`${r.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,B=D(d.evolution,`Pipeline component "${d.name}" evolution`);n.addNode(m,d.name,B,a,"pipeline-component",C,g),n.addPipelineComponent(r.parent,m)})}),e.links.forEach(r=>{const x=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let a=J(r.fromPort)??J(r.toPort);const{flow:d,label:m}=Rt(r.arrow);!a&&d&&(a=d);const C=r.linkLabel,g=m??C;n.addLink(n.resolveNodeId(r.from),n.resolveNodeId(r.to),x,g,a)}),e.evolves.forEach(r=>{const x=n.getNode(r.component);if(x?.y!==void 0){const a=D(r.target,`Evolve target for "${r.component}"`);n.addTrend(r.component,a,x.y)}}),e.annotations.length>0){const r=e.annotations[0],x=A(r.x,r.y,"Annotations box");n.setAnnotationsBox(x.x,x.y)}e.annotation.forEach(r=>{const x=A(r.x,r.y,`Annotation ${r.number}`);n.addAnnotation(r.number,[{x:x.x,y:x.y}],r.text)}),e.accelerators.forEach(r=>{const x=A(r.x,r.y,`Accelerator "${r.name}"`);n.addAccelerator(r.name,x.x,x.y)}),e.deaccelerators.forEach(r=>{const x=A(r.x,r.y,`Deaccelerator "${r.name}"`);n.addDeaccelerator(r.name,x.x,x.y)})},"populateDb"),Q={parser:{yy:void 0},parse:u(async e=>{const n=await Bt("wardley",e);K.debug(n);const r=Q.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ot(n,r)},"parse")},Wt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{u(this,"WardleyBuilder")}addNode(e){const n=this.nodes.get(e.id)??{id:e.id,label:e.label},r={...n,...e,className:e.className??n.className,labelOffsetX:e.labelOffsetX??n.labelOffsetX,labelOffsetY:e.labelOffsetY??n.labelOffsetY};this.nodes.set(e.id,r)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const n=this.nodes.get(e);n&&(n.isPipelineParent=!0)}addPipelineComponent(e,n){const r=this.pipelines.get(e);r&&r.componentIds.push(n);const x=this.nodes.get(n);x&&(x.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,n){this.annotationsBox={x:e,y:n}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,n){this.size={width:e,height:n}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[n,r]of this.nodes)if(r.label===e)return n;return e}build(){const e=[];for(const n of this.nodes.values()){if(typeof n.x!="number"||typeof n.y!="number")throw new Error(`Node "${n.label}" is missing coordinates`);e.push(n)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},k=new Wt;function tt(){return j()["wardley-beta"]}u(tt,"getConfig");function et(e,n,r,x,a,d,m,C,g){k.addNode({id:e,label:n,x:r,y:x,className:a,labelOffsetX:d,labelOffsetY:m,inertia:C,sourceStrategy:g})}u(et,"addNode");function at(e,n,r=!1,x,a){k.addLink({source:e,target:n,dashed:r,label:x,flow:a})}u(at,"addLink");function rt(e,n,r){k.addTrend({nodeId:e,targetX:n,targetY:r})}u(rt,"addTrend");function ot(e,n,r){k.addAnnotation({number:e,coordinates:n,text:r})}u(ot,"addAnnotation");function nt(e,n,r){k.addNote({text:e,x:n,y:r})}u(nt,"addNote");function st(e,n,r){k.addAccelerator({name:e,x:n,y:r})}u(st,"addAccelerator");function it(e,n,r){k.addDeaccelerator({name:e,x:n,y:r})}u(it,"addDeaccelerator");function dt(e,n){k.setAnnotationsBox(e,n)}u(dt,"setAnnotationsBox");function lt(e,n){k.setSize(e,n)}u(lt,"setSize");function ct(e){k.startPipeline(e)}u(ct,"startPipeline");function pt(e,n){k.addPipelineComponent(e,n)}u(pt,"addPipelineComponent");function ft(e){k.setAxes(e)}u(ft,"updateAxes");function ht(e){return k.getNode(e)}u(ht,"getNode");function xt(e){return k.resolveNodeId(e)}u(xt,"resolveNodeId");function gt(){return k.build()}u(gt,"getWardleyData");function yt(){k.clear(),Ft()}u(yt,"clear");var Dt={getConfig:tt,addNode:et,addLink:at,addTrend:rt,addAnnotation:ot,addNote:nt,addAccelerator:st,addDeaccelerator:it,setAnnotationsBox:dt,setSize:lt,startPipeline:ct,addPipelineComponent:pt,updateAxes:ft,getNode:ht,resolveNodeId:xt,getWardleyData:gt,clear:yt,setAccTitle:At,getAccTitle:Tt,setDiagramTitle:Lt,getDiagramTitle:zt,getAccDescription:Nt,setAccDescription:Mt},Gt=["Genesis","Custom Built","Product","Commodity"],qt=u(()=>{const{themeVariables:e}=j();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),Ht=u(()=>{const e=j()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),jt=u((e,n,r,x)=>{K.debug(`Rendering Wardley map
2
2
  `+e);const a=Ht(),d=qt(),m=a.nodeRadius*1.6,C=x.db,g=C.getWardleyData(),B=C.getDiagramTitle(),S=g.size?.width??a.width,b=g.size?.height??a.height,E=Yt(n);E.selectAll("*").remove(),It(E,b,S,a.useMaxWidth),E.attr("viewBox",`0 0 ${S} ${b}`);const v=E.append("g").attr("class","wardley-map"),G=E.append("defs");G.append("marker").attr("id",`arrow-${n}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),G.append("marker").attr("id",`link-arrow-end-${n}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),G.append("marker").attr("id",`link-arrow-start-${n}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),v.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",d.backgroundColor);const Y=S-a.padding*2,I=b-a.padding*2;B&&v.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",a.padding/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(B);const z=u(t=>a.padding+t/100*Y,"projectX"),L=u(t=>b-a.padding-t/100*I,"projectY"),R=v.append("g").attr("class","wardley-axes");R.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1),R.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const ut=g.axes.xLabel??"Evolution",mt=g.axes.yLabel??"Visibility";R.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+Y/2).attr("y",b-a.padding/4).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(ut),R.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+I/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+I/2})`).text(mt);const F=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:Gt;if(F.length>0){const t=v.append("g").attr("class","wardley-stages"),s=g.axes.stageBoundaries,o=[];if(s&&s.length===F.length){let i=0;s.forEach(p=>{o.push({start:i,end:p}),i=p})}else{const i=1/F.length;F.forEach((p,l)=>{o.push({start:l*i,end:(l+1)*i})})}F.forEach((i,p)=>{const l=o[p],f=a.padding+l.start*Y,h=a.padding+l.end*Y,y=(f+h)/2;p>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",y).attr("y",b-a.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(a.showGrid){const t=v.append("g").attr("class","wardley-grid");for(let s=1;s<4;s++){const o=s/4,i=a.padding+Y*o;t.append("line").attr("x1",i).attr("x2",i).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding-I*o).attr("y2",b-a.padding-I*o).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:z(t.x),y:L(t.y),node:t})}),g.pipelines.length>0){const t=v.append("g").attr("class","wardley-pipelines"),s=v.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(o=>{if(o.componentIds.length===0)return;const i=o.componentIds.map(h=>({id:h,pos:c.get(h),node:g.nodes.find(y=>y.id===h)})).filter(h=>h.pos&&h.node).sort((h,y)=>h.node.x-y.node.x);for(let h=0;h<i.length-1;h++){const y=i[h],w=i[h+1];s.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",y.pos.x).attr("y1",y.pos.y).attr("x2",w.pos.x).attr("y2",w.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let p=1/0,l=-1/0,f=0;if(o.componentIds.forEach(h=>{const y=c.get(h);y&&(p=Math.min(p,y.x),l=Math.max(l,y.x),f=y.y)}),p!==1/0&&l!==-1/0){const y=a.nodeRadius*4,w=f-y/2,P=c.get(o.nodeId);if(P){const N=(p+l)/2;P.x=N,P.y=w-m/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",p-15).attr("y",w).attr("width",l-p+30).attr("height",y).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const V=v.append("g").attr("class","wardley-links"),_=new Map;g.pipelines.forEach(t=>{_.set(t.nodeId,new Set(t.componentIds))});const Z=g.links.filter(t=>!(!c.has(t.source)||!c.has(t.target)||_.get(t.target)?.has(t.source)));V.selectAll("line").data(Z).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f);return s.x+l/h*p}).attr("y1",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f);return s.y+f/h*p}).attr("x2",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=s.x-o.x,f=s.y-o.y,h=Math.sqrt(l*l+f*f);return o.x+l/h*p}).attr("y2",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=s.x-o.x,f=s.y-o.y,h=Math.sqrt(l*l+f*f);return o.y+f/h*p}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${n})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${n})`:null),V.selectAll("text").data(Z.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const s=c.get(t.source),o=c.get(t.target),i=(s.x+o.x)/2,p=o.y-s.y,l=o.x-s.x,f=Math.sqrt(l*l+p*p),h=8,y=p/f;return i+y*h}).attr("y",t=>{const s=c.get(t.source),o=c.get(t.target),i=(s.y+o.y)/2,p=o.x-s.x,l=o.y-s.y,f=Math.sqrt(p*p+l*l),h=8,y=-p/f;return i+y*h}).attr("fill",d.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const s=c.get(t.source),o=c.get(t.target),i=(s.x+o.x)/2,p=(s.y+o.y)/2,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f),y=8,w=f/h,P=-l/h,N=i+w*y,O=p+P*y;let X=Math.atan2(f,l)*180/Math.PI;return(X>90||X<-90)&&(X+=180),`rotate(${X} ${N} ${O})`}).text(t=>t.label);const wt=v.append("g").attr("class","wardley-trends"),kt=g.trends.map(t=>{const s=c.get(t.nodeId);if(!s)return null;const o=z(t.targetX),i=L(t.targetY),p=o-s.x,l=i-s.y,f=Math.sqrt(p*p+l*l),h=a.nodeRadius+2,y=f>h?o-p/f*h:o,w=f>h?i-l/f*h:i;return{origin:s,targetX:o,targetY:i,adjustedX2:y,adjustedY2:w}}).filter(t=>t!==null);wt.selectAll("line").data(kt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${n})`);const M=v.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const q=a.nodeRadius*.7,$=a.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",q).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",q).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",q).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-m/2).attr("y",t=>c.get(t.id).y-m/2).attr("width",m).attr("height",m).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const s=c.get(t.id);let o=t.isPipelineParent?m/2+15:a.nodeRadius+15;return t.sourceStrategy&&(o+=a.nodeRadius+10),s.x+o}).attr("y1",t=>{const s=c.get(t.id),o=t.isPipelineParent?m:a.nodeRadius*2;return s.y-o/2}).attr("x2",t=>{const s=c.get(t.id);let o=t.isPipelineParent?m/2+15:a.nodeRadius+15;return t.sourceStrategy&&(o+=a.nodeRadius+10),s.x+o}).attr("y2",t=>{const s=c.get(t.id),o=t.isPipelineParent?m:a.nodeRadius*2;return s.y+o/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?s.x+t.labelOffsetX:s.x;let o=a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(o+=10);const i=t.labelOffsetX??o;return s.x+i}).attr("y",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?s.y+t.labelOffsetY:s.y-3;let o=-a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(o-=10);const i=t.labelOffsetY??o;return s.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=v.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(s=>{const o=s.coordinates.map(i=>({x:z(i.x),y:L(i.y)}));if(o.length>1)for(let i=0;i<o.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",o[i].x).attr("y1",o[i].y).attr("x2",o[i+1].x).attr("y2",o[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");o.forEach(i=>{const p=t.append("g").attr("class","wardley-annotation");p.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),p.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.number)})}),g.annotationsBox){let s=z(g.annotationsBox.x),o=L(g.annotationsBox.y);const i=10,p=16,l=11,f=t.append("g").attr("class","wardley-annotations-box"),h=[...g.annotations].filter(w=>w.text).sort((w,P)=>w.number-P.number),y=[];if(h.forEach((w,P)=>{const N=f.append("text").attr("x",s+i).attr("y",o+i+(P+1)*p).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${w.number}. ${w.text}`);y.push(N)}),y.length>0){let w=0,P=0;y.forEach(H=>{const W=H.node(),Pt=W.getComputedTextLength();w=Math.max(w,Pt);const Ct=W.getBBox();P=Math.max(P,Ct.height)});const N=w+i*2+105,O=h.length*p+i*2+P/2,X=a.padding,bt=S-a.padding-N,$t=a.padding,vt=b-a.padding-O;s=Math.max(X,Math.min(s,bt)),o=Math.max($t,Math.min(o,vt)),y.forEach((H,W)=>{H.attr("x",s+i).attr("y",o+i+(W+1)*p)}),f.insert("rect","text").attr("x",s).attr("y",o).attr("width",N).attr("height",O).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=v.append("g").attr("class","wardley-notes");g.notes.forEach(s=>{const o=z(s.x),i=L(s.y);t.append("text").attr("x",o).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.text)})}if(g.accelerators.length>0){const t=v.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(s=>{const o=z(s.x),i=L(s.y),p=60,l=30,f=20,h=`
3
3
  M ${o} ${i-l/2}
4
4
  L ${o+p-f} ${i-l/2}
@@ -1,4 +1,4 @@
1
- import{p as St}from"./chunk-JWPE2WC7-Dhf2nfwA.js";import{s as Mt,g as Nt,p as zt,o as Lt,a as Tt,b as At,_ as u,F as Xt,y as Et,A as U,l as K,D as Yt,d as It,q as Ft,c as j}from"./index-vYgHQz2d.js";import{p as Bt}from"./cynefin-OW5HDTMX-BBLugbYz.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-Dz7T8mqj.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=u((e,n)=>{const r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${n} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),A=u((e,n,r)=>({x:D(n,`${r} evolution`),y:D(e,`${r} visibility`)}),"toCoordinates"),J=u(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),Rt=u(e=>{if(!e?.startsWith("+"))return{};const r=/^\+'([^']*)'/.exec(e)?.[1];return e.includes("<>")?{flow:"bidirectional",label:r}:e.includes("<")?{flow:"backward",label:r}:e.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),Ot=u((e,n)=>{if(St(e,n),e.size&&n.setSize(e.size.width,e.size.height),e.evolution){const r=e.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),x=e.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);n.updateAxes({stages:r,stageBoundaries:x})}if(e.anchors.forEach(r=>{const x=A(r.visibility,r.evolution,`Anchor "${r.name}"`);n.addNode(r.name,r.name,x.x,x.y,"anchor")}),e.components.forEach(r=>{const x=A(r.visibility,r.evolution,`Component "${r.name}"`),a=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,d=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,m=r.decorator?.strategy;n.addNode(r.name,r.name,x.x,x.y,"component",a,d,r.inertia,m)}),e.notes.forEach(r=>{const x=A(r.visibility,r.evolution,`Note "${r.text}"`);n.addNote(r.text,x.x,x.y)}),e.pipelines.forEach(r=>{const x=n.getNode(r.parent);if(!x||typeof x.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const a=x.y;n.startPipeline(r.parent),r.components.forEach(d=>{const m=`${r.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,B=D(d.evolution,`Pipeline component "${d.name}" evolution`);n.addNode(m,d.name,B,a,"pipeline-component",C,g),n.addPipelineComponent(r.parent,m)})}),e.links.forEach(r=>{const x=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let a=J(r.fromPort)??J(r.toPort);const{flow:d,label:m}=Rt(r.arrow);!a&&d&&(a=d);const C=r.linkLabel,g=m??C;n.addLink(n.resolveNodeId(r.from),n.resolveNodeId(r.to),x,g,a)}),e.evolves.forEach(r=>{const x=n.getNode(r.component);if(x?.y!==void 0){const a=D(r.target,`Evolve target for "${r.component}"`);n.addTrend(r.component,a,x.y)}}),e.annotations.length>0){const r=e.annotations[0],x=A(r.x,r.y,"Annotations box");n.setAnnotationsBox(x.x,x.y)}e.annotation.forEach(r=>{const x=A(r.x,r.y,`Annotation ${r.number}`);n.addAnnotation(r.number,[{x:x.x,y:x.y}],r.text)}),e.accelerators.forEach(r=>{const x=A(r.x,r.y,`Accelerator "${r.name}"`);n.addAccelerator(r.name,x.x,x.y)}),e.deaccelerators.forEach(r=>{const x=A(r.x,r.y,`Deaccelerator "${r.name}"`);n.addDeaccelerator(r.name,x.x,x.y)})},"populateDb"),Q={parser:{yy:void 0},parse:u(async e=>{const n=await Bt("wardley",e);K.debug(n);const r=Q.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ot(n,r)},"parse")},Wt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{u(this,"WardleyBuilder")}addNode(e){const n=this.nodes.get(e.id)??{id:e.id,label:e.label},r={...n,...e,className:e.className??n.className,labelOffsetX:e.labelOffsetX??n.labelOffsetX,labelOffsetY:e.labelOffsetY??n.labelOffsetY};this.nodes.set(e.id,r)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const n=this.nodes.get(e);n&&(n.isPipelineParent=!0)}addPipelineComponent(e,n){const r=this.pipelines.get(e);r&&r.componentIds.push(n);const x=this.nodes.get(n);x&&(x.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,n){this.annotationsBox={x:e,y:n}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,n){this.size={width:e,height:n}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[n,r]of this.nodes)if(r.label===e)return n;return e}build(){const e=[];for(const n of this.nodes.values()){if(typeof n.x!="number"||typeof n.y!="number")throw new Error(`Node "${n.label}" is missing coordinates`);e.push(n)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},k=new Wt;function tt(){return j()["wardley-beta"]}u(tt,"getConfig");function et(e,n,r,x,a,d,m,C,g){k.addNode({id:e,label:n,x:r,y:x,className:a,labelOffsetX:d,labelOffsetY:m,inertia:C,sourceStrategy:g})}u(et,"addNode");function at(e,n,r=!1,x,a){k.addLink({source:e,target:n,dashed:r,label:x,flow:a})}u(at,"addLink");function rt(e,n,r){k.addTrend({nodeId:e,targetX:n,targetY:r})}u(rt,"addTrend");function ot(e,n,r){k.addAnnotation({number:e,coordinates:n,text:r})}u(ot,"addAnnotation");function nt(e,n,r){k.addNote({text:e,x:n,y:r})}u(nt,"addNote");function st(e,n,r){k.addAccelerator({name:e,x:n,y:r})}u(st,"addAccelerator");function it(e,n,r){k.addDeaccelerator({name:e,x:n,y:r})}u(it,"addDeaccelerator");function dt(e,n){k.setAnnotationsBox(e,n)}u(dt,"setAnnotationsBox");function lt(e,n){k.setSize(e,n)}u(lt,"setSize");function ct(e){k.startPipeline(e)}u(ct,"startPipeline");function pt(e,n){k.addPipelineComponent(e,n)}u(pt,"addPipelineComponent");function ft(e){k.setAxes(e)}u(ft,"updateAxes");function ht(e){return k.getNode(e)}u(ht,"getNode");function xt(e){return k.resolveNodeId(e)}u(xt,"resolveNodeId");function gt(){return k.build()}u(gt,"getWardleyData");function yt(){k.clear(),Ft()}u(yt,"clear");var Dt={getConfig:tt,addNode:et,addLink:at,addTrend:rt,addAnnotation:ot,addNote:nt,addAccelerator:st,addDeaccelerator:it,setAnnotationsBox:dt,setSize:lt,startPipeline:ct,addPipelineComponent:pt,updateAxes:ft,getNode:ht,resolveNodeId:xt,getWardleyData:gt,clear:yt,setAccTitle:At,getAccTitle:Tt,setDiagramTitle:Lt,getDiagramTitle:zt,getAccDescription:Nt,setAccDescription:Mt},Gt=["Genesis","Custom Built","Product","Commodity"],qt=u(()=>{const{themeVariables:e}=j();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),Ht=u(()=>{const e=j()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),jt=u((e,n,r,x)=>{K.debug(`Rendering Wardley map
1
+ import{p as St}from"./chunk-JWPE2WC7-eVcZ9xFv.js";import{s as Mt,g as Nt,p as zt,o as Lt,a as Tt,b as At,_ as u,F as Xt,y as Et,A as U,l as K,D as Yt,d as It,q as Ft,c as j}from"./index-CAWdjL5V.js";import{p as Bt}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-Dz7T8mqj.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=u((e,n)=>{const r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${n} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),A=u((e,n,r)=>({x:D(n,`${r} evolution`),y:D(e,`${r} visibility`)}),"toCoordinates"),J=u(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),Rt=u(e=>{if(!e?.startsWith("+"))return{};const r=/^\+'([^']*)'/.exec(e)?.[1];return e.includes("<>")?{flow:"bidirectional",label:r}:e.includes("<")?{flow:"backward",label:r}:e.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),Ot=u((e,n)=>{if(St(e,n),e.size&&n.setSize(e.size.width,e.size.height),e.evolution){const r=e.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),x=e.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);n.updateAxes({stages:r,stageBoundaries:x})}if(e.anchors.forEach(r=>{const x=A(r.visibility,r.evolution,`Anchor "${r.name}"`);n.addNode(r.name,r.name,x.x,x.y,"anchor")}),e.components.forEach(r=>{const x=A(r.visibility,r.evolution,`Component "${r.name}"`),a=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,d=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,m=r.decorator?.strategy;n.addNode(r.name,r.name,x.x,x.y,"component",a,d,r.inertia,m)}),e.notes.forEach(r=>{const x=A(r.visibility,r.evolution,`Note "${r.text}"`);n.addNote(r.text,x.x,x.y)}),e.pipelines.forEach(r=>{const x=n.getNode(r.parent);if(!x||typeof x.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const a=x.y;n.startPipeline(r.parent),r.components.forEach(d=>{const m=`${r.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,B=D(d.evolution,`Pipeline component "${d.name}" evolution`);n.addNode(m,d.name,B,a,"pipeline-component",C,g),n.addPipelineComponent(r.parent,m)})}),e.links.forEach(r=>{const x=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let a=J(r.fromPort)??J(r.toPort);const{flow:d,label:m}=Rt(r.arrow);!a&&d&&(a=d);const C=r.linkLabel,g=m??C;n.addLink(n.resolveNodeId(r.from),n.resolveNodeId(r.to),x,g,a)}),e.evolves.forEach(r=>{const x=n.getNode(r.component);if(x?.y!==void 0){const a=D(r.target,`Evolve target for "${r.component}"`);n.addTrend(r.component,a,x.y)}}),e.annotations.length>0){const r=e.annotations[0],x=A(r.x,r.y,"Annotations box");n.setAnnotationsBox(x.x,x.y)}e.annotation.forEach(r=>{const x=A(r.x,r.y,`Annotation ${r.number}`);n.addAnnotation(r.number,[{x:x.x,y:x.y}],r.text)}),e.accelerators.forEach(r=>{const x=A(r.x,r.y,`Accelerator "${r.name}"`);n.addAccelerator(r.name,x.x,x.y)}),e.deaccelerators.forEach(r=>{const x=A(r.x,r.y,`Deaccelerator "${r.name}"`);n.addDeaccelerator(r.name,x.x,x.y)})},"populateDb"),Q={parser:{yy:void 0},parse:u(async e=>{const n=await Bt("wardley",e);K.debug(n);const r=Q.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ot(n,r)},"parse")},Wt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{u(this,"WardleyBuilder")}addNode(e){const n=this.nodes.get(e.id)??{id:e.id,label:e.label},r={...n,...e,className:e.className??n.className,labelOffsetX:e.labelOffsetX??n.labelOffsetX,labelOffsetY:e.labelOffsetY??n.labelOffsetY};this.nodes.set(e.id,r)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const n=this.nodes.get(e);n&&(n.isPipelineParent=!0)}addPipelineComponent(e,n){const r=this.pipelines.get(e);r&&r.componentIds.push(n);const x=this.nodes.get(n);x&&(x.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,n){this.annotationsBox={x:e,y:n}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,n){this.size={width:e,height:n}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[n,r]of this.nodes)if(r.label===e)return n;return e}build(){const e=[];for(const n of this.nodes.values()){if(typeof n.x!="number"||typeof n.y!="number")throw new Error(`Node "${n.label}" is missing coordinates`);e.push(n)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},k=new Wt;function tt(){return j()["wardley-beta"]}u(tt,"getConfig");function et(e,n,r,x,a,d,m,C,g){k.addNode({id:e,label:n,x:r,y:x,className:a,labelOffsetX:d,labelOffsetY:m,inertia:C,sourceStrategy:g})}u(et,"addNode");function at(e,n,r=!1,x,a){k.addLink({source:e,target:n,dashed:r,label:x,flow:a})}u(at,"addLink");function rt(e,n,r){k.addTrend({nodeId:e,targetX:n,targetY:r})}u(rt,"addTrend");function ot(e,n,r){k.addAnnotation({number:e,coordinates:n,text:r})}u(ot,"addAnnotation");function nt(e,n,r){k.addNote({text:e,x:n,y:r})}u(nt,"addNote");function st(e,n,r){k.addAccelerator({name:e,x:n,y:r})}u(st,"addAccelerator");function it(e,n,r){k.addDeaccelerator({name:e,x:n,y:r})}u(it,"addDeaccelerator");function dt(e,n){k.setAnnotationsBox(e,n)}u(dt,"setAnnotationsBox");function lt(e,n){k.setSize(e,n)}u(lt,"setSize");function ct(e){k.startPipeline(e)}u(ct,"startPipeline");function pt(e,n){k.addPipelineComponent(e,n)}u(pt,"addPipelineComponent");function ft(e){k.setAxes(e)}u(ft,"updateAxes");function ht(e){return k.getNode(e)}u(ht,"getNode");function xt(e){return k.resolveNodeId(e)}u(xt,"resolveNodeId");function gt(){return k.build()}u(gt,"getWardleyData");function yt(){k.clear(),Ft()}u(yt,"clear");var Dt={getConfig:tt,addNode:et,addLink:at,addTrend:rt,addAnnotation:ot,addNote:nt,addAccelerator:st,addDeaccelerator:it,setAnnotationsBox:dt,setSize:lt,startPipeline:ct,addPipelineComponent:pt,updateAxes:ft,getNode:ht,resolveNodeId:xt,getWardleyData:gt,clear:yt,setAccTitle:At,getAccTitle:Tt,setDiagramTitle:Lt,getDiagramTitle:zt,getAccDescription:Nt,setAccDescription:Mt},Gt=["Genesis","Custom Built","Product","Commodity"],qt=u(()=>{const{themeVariables:e}=j();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),Ht=u(()=>{const e=j()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),jt=u((e,n,r,x)=>{K.debug(`Rendering Wardley map
2
2
  `+e);const a=Ht(),d=qt(),m=a.nodeRadius*1.6,C=x.db,g=C.getWardleyData(),B=C.getDiagramTitle(),S=g.size?.width??a.width,b=g.size?.height??a.height,E=Yt(n);E.selectAll("*").remove(),It(E,b,S,a.useMaxWidth),E.attr("viewBox",`0 0 ${S} ${b}`);const v=E.append("g").attr("class","wardley-map"),G=E.append("defs");G.append("marker").attr("id",`arrow-${n}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),G.append("marker").attr("id",`link-arrow-end-${n}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),G.append("marker").attr("id",`link-arrow-start-${n}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),v.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",d.backgroundColor);const Y=S-a.padding*2,I=b-a.padding*2;B&&v.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",a.padding/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(B);const z=u(t=>a.padding+t/100*Y,"projectX"),L=u(t=>b-a.padding-t/100*I,"projectY"),R=v.append("g").attr("class","wardley-axes");R.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1),R.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const ut=g.axes.xLabel??"Evolution",mt=g.axes.yLabel??"Visibility";R.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+Y/2).attr("y",b-a.padding/4).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(ut),R.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+I/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+I/2})`).text(mt);const F=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:Gt;if(F.length>0){const t=v.append("g").attr("class","wardley-stages"),s=g.axes.stageBoundaries,o=[];if(s&&s.length===F.length){let i=0;s.forEach(p=>{o.push({start:i,end:p}),i=p})}else{const i=1/F.length;F.forEach((p,l)=>{o.push({start:l*i,end:(l+1)*i})})}F.forEach((i,p)=>{const l=o[p],f=a.padding+l.start*Y,h=a.padding+l.end*Y,y=(f+h)/2;p>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",y).attr("y",b-a.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(a.showGrid){const t=v.append("g").attr("class","wardley-grid");for(let s=1;s<4;s++){const o=s/4,i=a.padding+Y*o;t.append("line").attr("x1",i).attr("x2",i).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding-I*o).attr("y2",b-a.padding-I*o).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:z(t.x),y:L(t.y),node:t})}),g.pipelines.length>0){const t=v.append("g").attr("class","wardley-pipelines"),s=v.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(o=>{if(o.componentIds.length===0)return;const i=o.componentIds.map(h=>({id:h,pos:c.get(h),node:g.nodes.find(y=>y.id===h)})).filter(h=>h.pos&&h.node).sort((h,y)=>h.node.x-y.node.x);for(let h=0;h<i.length-1;h++){const y=i[h],w=i[h+1];s.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",y.pos.x).attr("y1",y.pos.y).attr("x2",w.pos.x).attr("y2",w.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let p=1/0,l=-1/0,f=0;if(o.componentIds.forEach(h=>{const y=c.get(h);y&&(p=Math.min(p,y.x),l=Math.max(l,y.x),f=y.y)}),p!==1/0&&l!==-1/0){const y=a.nodeRadius*4,w=f-y/2,P=c.get(o.nodeId);if(P){const N=(p+l)/2;P.x=N,P.y=w-m/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",p-15).attr("y",w).attr("width",l-p+30).attr("height",y).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const V=v.append("g").attr("class","wardley-links"),_=new Map;g.pipelines.forEach(t=>{_.set(t.nodeId,new Set(t.componentIds))});const Z=g.links.filter(t=>!(!c.has(t.source)||!c.has(t.target)||_.get(t.target)?.has(t.source)));V.selectAll("line").data(Z).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f);return s.x+l/h*p}).attr("y1",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f);return s.y+f/h*p}).attr("x2",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=s.x-o.x,f=s.y-o.y,h=Math.sqrt(l*l+f*f);return o.x+l/h*p}).attr("y2",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=s.x-o.x,f=s.y-o.y,h=Math.sqrt(l*l+f*f);return o.y+f/h*p}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${n})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${n})`:null),V.selectAll("text").data(Z.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const s=c.get(t.source),o=c.get(t.target),i=(s.x+o.x)/2,p=o.y-s.y,l=o.x-s.x,f=Math.sqrt(l*l+p*p),h=8,y=p/f;return i+y*h}).attr("y",t=>{const s=c.get(t.source),o=c.get(t.target),i=(s.y+o.y)/2,p=o.x-s.x,l=o.y-s.y,f=Math.sqrt(p*p+l*l),h=8,y=-p/f;return i+y*h}).attr("fill",d.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const s=c.get(t.source),o=c.get(t.target),i=(s.x+o.x)/2,p=(s.y+o.y)/2,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f),y=8,w=f/h,P=-l/h,N=i+w*y,O=p+P*y;let X=Math.atan2(f,l)*180/Math.PI;return(X>90||X<-90)&&(X+=180),`rotate(${X} ${N} ${O})`}).text(t=>t.label);const wt=v.append("g").attr("class","wardley-trends"),kt=g.trends.map(t=>{const s=c.get(t.nodeId);if(!s)return null;const o=z(t.targetX),i=L(t.targetY),p=o-s.x,l=i-s.y,f=Math.sqrt(p*p+l*l),h=a.nodeRadius+2,y=f>h?o-p/f*h:o,w=f>h?i-l/f*h:i;return{origin:s,targetX:o,targetY:i,adjustedX2:y,adjustedY2:w}}).filter(t=>t!==null);wt.selectAll("line").data(kt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${n})`);const M=v.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const q=a.nodeRadius*.7,$=a.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",q).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",q).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",q).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-m/2).attr("y",t=>c.get(t.id).y-m/2).attr("width",m).attr("height",m).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const s=c.get(t.id);let o=t.isPipelineParent?m/2+15:a.nodeRadius+15;return t.sourceStrategy&&(o+=a.nodeRadius+10),s.x+o}).attr("y1",t=>{const s=c.get(t.id),o=t.isPipelineParent?m:a.nodeRadius*2;return s.y-o/2}).attr("x2",t=>{const s=c.get(t.id);let o=t.isPipelineParent?m/2+15:a.nodeRadius+15;return t.sourceStrategy&&(o+=a.nodeRadius+10),s.x+o}).attr("y2",t=>{const s=c.get(t.id),o=t.isPipelineParent?m:a.nodeRadius*2;return s.y+o/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?s.x+t.labelOffsetX:s.x;let o=a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(o+=10);const i=t.labelOffsetX??o;return s.x+i}).attr("y",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?s.y+t.labelOffsetY:s.y-3;let o=-a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(o-=10);const i=t.labelOffsetY??o;return s.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=v.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(s=>{const o=s.coordinates.map(i=>({x:z(i.x),y:L(i.y)}));if(o.length>1)for(let i=0;i<o.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",o[i].x).attr("y1",o[i].y).attr("x2",o[i+1].x).attr("y2",o[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");o.forEach(i=>{const p=t.append("g").attr("class","wardley-annotation");p.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),p.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.number)})}),g.annotationsBox){let s=z(g.annotationsBox.x),o=L(g.annotationsBox.y);const i=10,p=16,l=11,f=t.append("g").attr("class","wardley-annotations-box"),h=[...g.annotations].filter(w=>w.text).sort((w,P)=>w.number-P.number),y=[];if(h.forEach((w,P)=>{const N=f.append("text").attr("x",s+i).attr("y",o+i+(P+1)*p).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${w.number}. ${w.text}`);y.push(N)}),y.length>0){let w=0,P=0;y.forEach(H=>{const W=H.node(),Pt=W.getComputedTextLength();w=Math.max(w,Pt);const Ct=W.getBBox();P=Math.max(P,Ct.height)});const N=w+i*2+105,O=h.length*p+i*2+P/2,X=a.padding,bt=S-a.padding-N,$t=a.padding,vt=b-a.padding-O;s=Math.max(X,Math.min(s,bt)),o=Math.max($t,Math.min(o,vt)),y.forEach((H,W)=>{H.attr("x",s+i).attr("y",o+i+(W+1)*p)}),f.insert("rect","text").attr("x",s).attr("y",o).attr("width",N).attr("height",O).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=v.append("g").attr("class","wardley-notes");g.notes.forEach(s=>{const o=z(s.x),i=L(s.y);t.append("text").attr("x",o).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.text)})}if(g.accelerators.length>0){const t=v.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(s=>{const o=z(s.x),i=L(s.y),p=60,l=30,f=20,h=`
3
3
  M ${o} ${i-l/2}
4
4
  L ${o+p-f} ${i-l/2}
@@ -1,4 +1,4 @@
1
- import{p as St}from"./chunk-JWPE2WC7-D_-QFJP2.js";import{s as Mt,g as Nt,p as zt,o as Lt,a as Tt,b as At,_ as u,F as Xt,y as Et,A as U,l as K,D as Yt,d as It,q as Ft,c as j}from"./index-O5uyTYL5.js";import{p as Bt}from"./cynefin-OW5HDTMX-D8Lw5okC.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-Dz7T8mqj.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=u((e,n)=>{const r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${n} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),A=u((e,n,r)=>({x:D(n,`${r} evolution`),y:D(e,`${r} visibility`)}),"toCoordinates"),J=u(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),Rt=u(e=>{if(!e?.startsWith("+"))return{};const r=/^\+'([^']*)'/.exec(e)?.[1];return e.includes("<>")?{flow:"bidirectional",label:r}:e.includes("<")?{flow:"backward",label:r}:e.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),Ot=u((e,n)=>{if(St(e,n),e.size&&n.setSize(e.size.width,e.size.height),e.evolution){const r=e.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),x=e.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);n.updateAxes({stages:r,stageBoundaries:x})}if(e.anchors.forEach(r=>{const x=A(r.visibility,r.evolution,`Anchor "${r.name}"`);n.addNode(r.name,r.name,x.x,x.y,"anchor")}),e.components.forEach(r=>{const x=A(r.visibility,r.evolution,`Component "${r.name}"`),a=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,d=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,m=r.decorator?.strategy;n.addNode(r.name,r.name,x.x,x.y,"component",a,d,r.inertia,m)}),e.notes.forEach(r=>{const x=A(r.visibility,r.evolution,`Note "${r.text}"`);n.addNote(r.text,x.x,x.y)}),e.pipelines.forEach(r=>{const x=n.getNode(r.parent);if(!x||typeof x.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const a=x.y;n.startPipeline(r.parent),r.components.forEach(d=>{const m=`${r.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,B=D(d.evolution,`Pipeline component "${d.name}" evolution`);n.addNode(m,d.name,B,a,"pipeline-component",C,g),n.addPipelineComponent(r.parent,m)})}),e.links.forEach(r=>{const x=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let a=J(r.fromPort)??J(r.toPort);const{flow:d,label:m}=Rt(r.arrow);!a&&d&&(a=d);const C=r.linkLabel,g=m??C;n.addLink(n.resolveNodeId(r.from),n.resolveNodeId(r.to),x,g,a)}),e.evolves.forEach(r=>{const x=n.getNode(r.component);if(x?.y!==void 0){const a=D(r.target,`Evolve target for "${r.component}"`);n.addTrend(r.component,a,x.y)}}),e.annotations.length>0){const r=e.annotations[0],x=A(r.x,r.y,"Annotations box");n.setAnnotationsBox(x.x,x.y)}e.annotation.forEach(r=>{const x=A(r.x,r.y,`Annotation ${r.number}`);n.addAnnotation(r.number,[{x:x.x,y:x.y}],r.text)}),e.accelerators.forEach(r=>{const x=A(r.x,r.y,`Accelerator "${r.name}"`);n.addAccelerator(r.name,x.x,x.y)}),e.deaccelerators.forEach(r=>{const x=A(r.x,r.y,`Deaccelerator "${r.name}"`);n.addDeaccelerator(r.name,x.x,x.y)})},"populateDb"),Q={parser:{yy:void 0},parse:u(async e=>{const n=await Bt("wardley",e);K.debug(n);const r=Q.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ot(n,r)},"parse")},Wt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{u(this,"WardleyBuilder")}addNode(e){const n=this.nodes.get(e.id)??{id:e.id,label:e.label},r={...n,...e,className:e.className??n.className,labelOffsetX:e.labelOffsetX??n.labelOffsetX,labelOffsetY:e.labelOffsetY??n.labelOffsetY};this.nodes.set(e.id,r)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const n=this.nodes.get(e);n&&(n.isPipelineParent=!0)}addPipelineComponent(e,n){const r=this.pipelines.get(e);r&&r.componentIds.push(n);const x=this.nodes.get(n);x&&(x.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,n){this.annotationsBox={x:e,y:n}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,n){this.size={width:e,height:n}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[n,r]of this.nodes)if(r.label===e)return n;return e}build(){const e=[];for(const n of this.nodes.values()){if(typeof n.x!="number"||typeof n.y!="number")throw new Error(`Node "${n.label}" is missing coordinates`);e.push(n)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},k=new Wt;function tt(){return j()["wardley-beta"]}u(tt,"getConfig");function et(e,n,r,x,a,d,m,C,g){k.addNode({id:e,label:n,x:r,y:x,className:a,labelOffsetX:d,labelOffsetY:m,inertia:C,sourceStrategy:g})}u(et,"addNode");function at(e,n,r=!1,x,a){k.addLink({source:e,target:n,dashed:r,label:x,flow:a})}u(at,"addLink");function rt(e,n,r){k.addTrend({nodeId:e,targetX:n,targetY:r})}u(rt,"addTrend");function ot(e,n,r){k.addAnnotation({number:e,coordinates:n,text:r})}u(ot,"addAnnotation");function nt(e,n,r){k.addNote({text:e,x:n,y:r})}u(nt,"addNote");function st(e,n,r){k.addAccelerator({name:e,x:n,y:r})}u(st,"addAccelerator");function it(e,n,r){k.addDeaccelerator({name:e,x:n,y:r})}u(it,"addDeaccelerator");function dt(e,n){k.setAnnotationsBox(e,n)}u(dt,"setAnnotationsBox");function lt(e,n){k.setSize(e,n)}u(lt,"setSize");function ct(e){k.startPipeline(e)}u(ct,"startPipeline");function pt(e,n){k.addPipelineComponent(e,n)}u(pt,"addPipelineComponent");function ft(e){k.setAxes(e)}u(ft,"updateAxes");function ht(e){return k.getNode(e)}u(ht,"getNode");function xt(e){return k.resolveNodeId(e)}u(xt,"resolveNodeId");function gt(){return k.build()}u(gt,"getWardleyData");function yt(){k.clear(),Ft()}u(yt,"clear");var Dt={getConfig:tt,addNode:et,addLink:at,addTrend:rt,addAnnotation:ot,addNote:nt,addAccelerator:st,addDeaccelerator:it,setAnnotationsBox:dt,setSize:lt,startPipeline:ct,addPipelineComponent:pt,updateAxes:ft,getNode:ht,resolveNodeId:xt,getWardleyData:gt,clear:yt,setAccTitle:At,getAccTitle:Tt,setDiagramTitle:Lt,getDiagramTitle:zt,getAccDescription:Nt,setAccDescription:Mt},Gt=["Genesis","Custom Built","Product","Commodity"],qt=u(()=>{const{themeVariables:e}=j();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),Ht=u(()=>{const e=j()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),jt=u((e,n,r,x)=>{K.debug(`Rendering Wardley map
1
+ import{p as St}from"./chunk-JWPE2WC7-CafuI2ep.js";import{s as Mt,g as Nt,p as zt,o as Lt,a as Tt,b as At,_ as u,F as Xt,y as Et,A as U,l as K,D as Yt,d as It,q as Ft,c as j}from"./index-Cs1hG--0.js";import{p as Bt}from"./cynefin-OW5HDTMX-BBLugbYz.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./index-Dz7T8mqj.js";import"./dayjs.min-u3zuoSR8.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";var D=u((e,n)=>{const r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${n} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),A=u((e,n,r)=>({x:D(n,`${r} evolution`),y:D(e,`${r} visibility`)}),"toCoordinates"),J=u(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),Rt=u(e=>{if(!e?.startsWith("+"))return{};const r=/^\+'([^']*)'/.exec(e)?.[1];return e.includes("<>")?{flow:"bidirectional",label:r}:e.includes("<")?{flow:"backward",label:r}:e.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),Ot=u((e,n)=>{if(St(e,n),e.size&&n.setSize(e.size.width,e.size.height),e.evolution){const r=e.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),x=e.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);n.updateAxes({stages:r,stageBoundaries:x})}if(e.anchors.forEach(r=>{const x=A(r.visibility,r.evolution,`Anchor "${r.name}"`);n.addNode(r.name,r.name,x.x,x.y,"anchor")}),e.components.forEach(r=>{const x=A(r.visibility,r.evolution,`Component "${r.name}"`),a=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,d=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,m=r.decorator?.strategy;n.addNode(r.name,r.name,x.x,x.y,"component",a,d,r.inertia,m)}),e.notes.forEach(r=>{const x=A(r.visibility,r.evolution,`Note "${r.text}"`);n.addNote(r.text,x.x,x.y)}),e.pipelines.forEach(r=>{const x=n.getNode(r.parent);if(!x||typeof x.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const a=x.y;n.startPipeline(r.parent),r.components.forEach(d=>{const m=`${r.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,B=D(d.evolution,`Pipeline component "${d.name}" evolution`);n.addNode(m,d.name,B,a,"pipeline-component",C,g),n.addPipelineComponent(r.parent,m)})}),e.links.forEach(r=>{const x=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let a=J(r.fromPort)??J(r.toPort);const{flow:d,label:m}=Rt(r.arrow);!a&&d&&(a=d);const C=r.linkLabel,g=m??C;n.addLink(n.resolveNodeId(r.from),n.resolveNodeId(r.to),x,g,a)}),e.evolves.forEach(r=>{const x=n.getNode(r.component);if(x?.y!==void 0){const a=D(r.target,`Evolve target for "${r.component}"`);n.addTrend(r.component,a,x.y)}}),e.annotations.length>0){const r=e.annotations[0],x=A(r.x,r.y,"Annotations box");n.setAnnotationsBox(x.x,x.y)}e.annotation.forEach(r=>{const x=A(r.x,r.y,`Annotation ${r.number}`);n.addAnnotation(r.number,[{x:x.x,y:x.y}],r.text)}),e.accelerators.forEach(r=>{const x=A(r.x,r.y,`Accelerator "${r.name}"`);n.addAccelerator(r.name,x.x,x.y)}),e.deaccelerators.forEach(r=>{const x=A(r.x,r.y,`Deaccelerator "${r.name}"`);n.addDeaccelerator(r.name,x.x,x.y)})},"populateDb"),Q={parser:{yy:void 0},parse:u(async e=>{const n=await Bt("wardley",e);K.debug(n);const r=Q.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ot(n,r)},"parse")},Wt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{u(this,"WardleyBuilder")}addNode(e){const n=this.nodes.get(e.id)??{id:e.id,label:e.label},r={...n,...e,className:e.className??n.className,labelOffsetX:e.labelOffsetX??n.labelOffsetX,labelOffsetY:e.labelOffsetY??n.labelOffsetY};this.nodes.set(e.id,r)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const n=this.nodes.get(e);n&&(n.isPipelineParent=!0)}addPipelineComponent(e,n){const r=this.pipelines.get(e);r&&r.componentIds.push(n);const x=this.nodes.get(n);x&&(x.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,n){this.annotationsBox={x:e,y:n}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,n){this.size={width:e,height:n}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[n,r]of this.nodes)if(r.label===e)return n;return e}build(){const e=[];for(const n of this.nodes.values()){if(typeof n.x!="number"||typeof n.y!="number")throw new Error(`Node "${n.label}" is missing coordinates`);e.push(n)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},k=new Wt;function tt(){return j()["wardley-beta"]}u(tt,"getConfig");function et(e,n,r,x,a,d,m,C,g){k.addNode({id:e,label:n,x:r,y:x,className:a,labelOffsetX:d,labelOffsetY:m,inertia:C,sourceStrategy:g})}u(et,"addNode");function at(e,n,r=!1,x,a){k.addLink({source:e,target:n,dashed:r,label:x,flow:a})}u(at,"addLink");function rt(e,n,r){k.addTrend({nodeId:e,targetX:n,targetY:r})}u(rt,"addTrend");function ot(e,n,r){k.addAnnotation({number:e,coordinates:n,text:r})}u(ot,"addAnnotation");function nt(e,n,r){k.addNote({text:e,x:n,y:r})}u(nt,"addNote");function st(e,n,r){k.addAccelerator({name:e,x:n,y:r})}u(st,"addAccelerator");function it(e,n,r){k.addDeaccelerator({name:e,x:n,y:r})}u(it,"addDeaccelerator");function dt(e,n){k.setAnnotationsBox(e,n)}u(dt,"setAnnotationsBox");function lt(e,n){k.setSize(e,n)}u(lt,"setSize");function ct(e){k.startPipeline(e)}u(ct,"startPipeline");function pt(e,n){k.addPipelineComponent(e,n)}u(pt,"addPipelineComponent");function ft(e){k.setAxes(e)}u(ft,"updateAxes");function ht(e){return k.getNode(e)}u(ht,"getNode");function xt(e){return k.resolveNodeId(e)}u(xt,"resolveNodeId");function gt(){return k.build()}u(gt,"getWardleyData");function yt(){k.clear(),Ft()}u(yt,"clear");var Dt={getConfig:tt,addNode:et,addLink:at,addTrend:rt,addAnnotation:ot,addNote:nt,addAccelerator:st,addDeaccelerator:it,setAnnotationsBox:dt,setSize:lt,startPipeline:ct,addPipelineComponent:pt,updateAxes:ft,getNode:ht,resolveNodeId:xt,getWardleyData:gt,clear:yt,setAccTitle:At,getAccTitle:Tt,setDiagramTitle:Lt,getDiagramTitle:zt,getAccDescription:Nt,setAccDescription:Mt},Gt=["Genesis","Custom Built","Product","Commodity"],qt=u(()=>{const{themeVariables:e}=j();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),Ht=u(()=>{const e=j()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),jt=u((e,n,r,x)=>{K.debug(`Rendering Wardley map
2
2
  `+e);const a=Ht(),d=qt(),m=a.nodeRadius*1.6,C=x.db,g=C.getWardleyData(),B=C.getDiagramTitle(),S=g.size?.width??a.width,b=g.size?.height??a.height,E=Yt(n);E.selectAll("*").remove(),It(E,b,S,a.useMaxWidth),E.attr("viewBox",`0 0 ${S} ${b}`);const v=E.append("g").attr("class","wardley-map"),G=E.append("defs");G.append("marker").attr("id",`arrow-${n}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),G.append("marker").attr("id",`link-arrow-end-${n}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),G.append("marker").attr("id",`link-arrow-start-${n}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),v.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",d.backgroundColor);const Y=S-a.padding*2,I=b-a.padding*2;B&&v.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",a.padding/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(B);const z=u(t=>a.padding+t/100*Y,"projectX"),L=u(t=>b-a.padding-t/100*I,"projectY"),R=v.append("g").attr("class","wardley-axes");R.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1),R.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const ut=g.axes.xLabel??"Evolution",mt=g.axes.yLabel??"Visibility";R.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+Y/2).attr("y",b-a.padding/4).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(ut),R.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+I/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+I/2})`).text(mt);const F=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:Gt;if(F.length>0){const t=v.append("g").attr("class","wardley-stages"),s=g.axes.stageBoundaries,o=[];if(s&&s.length===F.length){let i=0;s.forEach(p=>{o.push({start:i,end:p}),i=p})}else{const i=1/F.length;F.forEach((p,l)=>{o.push({start:l*i,end:(l+1)*i})})}F.forEach((i,p)=>{const l=o[p],f=a.padding+l.start*Y,h=a.padding+l.end*Y,y=(f+h)/2;p>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",y).attr("y",b-a.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(a.showGrid){const t=v.append("g").attr("class","wardley-grid");for(let s=1;s<4;s++){const o=s/4,i=a.padding+Y*o;t.append("line").attr("x1",i).attr("x2",i).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding-I*o).attr("y2",b-a.padding-I*o).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:z(t.x),y:L(t.y),node:t})}),g.pipelines.length>0){const t=v.append("g").attr("class","wardley-pipelines"),s=v.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(o=>{if(o.componentIds.length===0)return;const i=o.componentIds.map(h=>({id:h,pos:c.get(h),node:g.nodes.find(y=>y.id===h)})).filter(h=>h.pos&&h.node).sort((h,y)=>h.node.x-y.node.x);for(let h=0;h<i.length-1;h++){const y=i[h],w=i[h+1];s.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",y.pos.x).attr("y1",y.pos.y).attr("x2",w.pos.x).attr("y2",w.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let p=1/0,l=-1/0,f=0;if(o.componentIds.forEach(h=>{const y=c.get(h);y&&(p=Math.min(p,y.x),l=Math.max(l,y.x),f=y.y)}),p!==1/0&&l!==-1/0){const y=a.nodeRadius*4,w=f-y/2,P=c.get(o.nodeId);if(P){const N=(p+l)/2;P.x=N,P.y=w-m/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",p-15).attr("y",w).attr("width",l-p+30).attr("height",y).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const V=v.append("g").attr("class","wardley-links"),_=new Map;g.pipelines.forEach(t=>{_.set(t.nodeId,new Set(t.componentIds))});const Z=g.links.filter(t=>!(!c.has(t.source)||!c.has(t.target)||_.get(t.target)?.has(t.source)));V.selectAll("line").data(Z).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f);return s.x+l/h*p}).attr("y1",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f);return s.y+f/h*p}).attr("x2",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=s.x-o.x,f=s.y-o.y,h=Math.sqrt(l*l+f*f);return o.x+l/h*p}).attr("y2",t=>{const s=c.get(t.source),o=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?m/Math.sqrt(2):a.nodeRadius,l=s.x-o.x,f=s.y-o.y,h=Math.sqrt(l*l+f*f);return o.y+f/h*p}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${n})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${n})`:null),V.selectAll("text").data(Z.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const s=c.get(t.source),o=c.get(t.target),i=(s.x+o.x)/2,p=o.y-s.y,l=o.x-s.x,f=Math.sqrt(l*l+p*p),h=8,y=p/f;return i+y*h}).attr("y",t=>{const s=c.get(t.source),o=c.get(t.target),i=(s.y+o.y)/2,p=o.x-s.x,l=o.y-s.y,f=Math.sqrt(p*p+l*l),h=8,y=-p/f;return i+y*h}).attr("fill",d.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const s=c.get(t.source),o=c.get(t.target),i=(s.x+o.x)/2,p=(s.y+o.y)/2,l=o.x-s.x,f=o.y-s.y,h=Math.sqrt(l*l+f*f),y=8,w=f/h,P=-l/h,N=i+w*y,O=p+P*y;let X=Math.atan2(f,l)*180/Math.PI;return(X>90||X<-90)&&(X+=180),`rotate(${X} ${N} ${O})`}).text(t=>t.label);const wt=v.append("g").attr("class","wardley-trends"),kt=g.trends.map(t=>{const s=c.get(t.nodeId);if(!s)return null;const o=z(t.targetX),i=L(t.targetY),p=o-s.x,l=i-s.y,f=Math.sqrt(p*p+l*l),h=a.nodeRadius+2,y=f>h?o-p/f*h:o,w=f>h?i-l/f*h:i;return{origin:s,targetX:o,targetY:i,adjustedX2:y,adjustedY2:w}}).filter(t=>t!==null);wt.selectAll("line").data(kt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${n})`);const M=v.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const q=a.nodeRadius*.7,$=a.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",q).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",q).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",q).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-m/2).attr("y",t=>c.get(t.id).y-m/2).attr("width",m).attr("height",m).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const s=c.get(t.id);let o=t.isPipelineParent?m/2+15:a.nodeRadius+15;return t.sourceStrategy&&(o+=a.nodeRadius+10),s.x+o}).attr("y1",t=>{const s=c.get(t.id),o=t.isPipelineParent?m:a.nodeRadius*2;return s.y-o/2}).attr("x2",t=>{const s=c.get(t.id);let o=t.isPipelineParent?m/2+15:a.nodeRadius+15;return t.sourceStrategy&&(o+=a.nodeRadius+10),s.x+o}).attr("y2",t=>{const s=c.get(t.id),o=t.isPipelineParent?m:a.nodeRadius*2;return s.y+o/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?s.x+t.labelOffsetX:s.x;let o=a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(o+=10);const i=t.labelOffsetX??o;return s.x+i}).attr("y",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?s.y+t.labelOffsetY:s.y-3;let o=-a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(o-=10);const i=t.labelOffsetY??o;return s.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=v.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(s=>{const o=s.coordinates.map(i=>({x:z(i.x),y:L(i.y)}));if(o.length>1)for(let i=0;i<o.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",o[i].x).attr("y1",o[i].y).attr("x2",o[i+1].x).attr("y2",o[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");o.forEach(i=>{const p=t.append("g").attr("class","wardley-annotation");p.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),p.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.number)})}),g.annotationsBox){let s=z(g.annotationsBox.x),o=L(g.annotationsBox.y);const i=10,p=16,l=11,f=t.append("g").attr("class","wardley-annotations-box"),h=[...g.annotations].filter(w=>w.text).sort((w,P)=>w.number-P.number),y=[];if(h.forEach((w,P)=>{const N=f.append("text").attr("x",s+i).attr("y",o+i+(P+1)*p).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${w.number}. ${w.text}`);y.push(N)}),y.length>0){let w=0,P=0;y.forEach(H=>{const W=H.node(),Pt=W.getComputedTextLength();w=Math.max(w,Pt);const Ct=W.getBBox();P=Math.max(P,Ct.height)});const N=w+i*2+105,O=h.length*p+i*2+P/2,X=a.padding,bt=S-a.padding-N,$t=a.padding,vt=b-a.padding-O;s=Math.max(X,Math.min(s,bt)),o=Math.max($t,Math.min(o,vt)),y.forEach((H,W)=>{H.attr("x",s+i).attr("y",o+i+(W+1)*p)}),f.insert("rect","text").attr("x",s).attr("y",o).attr("width",N).attr("height",O).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=v.append("g").attr("class","wardley-notes");g.notes.forEach(s=>{const o=z(s.x),i=L(s.y);t.append("text").attr("x",o).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.text)})}if(g.accelerators.length>0){const t=v.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(s=>{const o=z(s.x),i=L(s.y),p=60,l=30,f=20,h=`
3
3
  M ${o} ${i-l/2}
4
4
  L ${o+p-f} ${i-l/2}
@@ -1,4 +1,4 @@
1
- import{s as zt,g as Ft,m as wt,n as Nt,a as Xt,b as Yt,l as St,y as Ht,d as $t,p as Ut,D as at,h as qt,z as Ct,B as jt,C as Gt}from"./mermaid.core-BdY790tt.js";import{a as Qt}from"./createText-aed3d8b3-CXkpNIxq.js";import{l as pt}from"./index-Dz7T8mqj.js";import"./index-DoBkwclg.js";import"../datalayer-app-main.js";import{r as dt,l as ft}from"./d3-scale-B-wnA6MO.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./merge-B_wcPK4Y.js";import"./Middleware-BiLBmIq0.js";import"./dayjs.min-u3zuoSR8.js";import"./d3-interpolate-BVJucgkN.js";import"./d3-color-Jd8hXty2.js";var st=(function(){var e=function(M,o,l,c){for(l=l||{},c=M.length;c--;l[M[c]]=o);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],h=[1,6],x=[1,7],y=[1,5,10,12,14,16,18,19,21,23,34,35,36],f=[1,25],P=[1,26],C=[1,28],k=[1,29],L=[1,30],E=[1,31],_=[1,32],v=[1,33],d=[1,34],w=[1,35],r=[1,36],R=[1,37],z=[1,43],rt=[1,42],lt=[1,47],$=[1,50],b=[1,10,12,14,16,18,19,21,23,34,35,36],Q=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],T=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],ct=[1,64],K={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(o,l,c,u,m,a,F){var g=a.length-1;switch(m){case 5:u.setOrientation(a[g]);break;case 9:u.setDiagramTitle(a[g].text.trim());break;case 12:u.setLineData({text:"",type:"text"},a[g]);break;case 13:u.setLineData(a[g-1],a[g]);break;case 14:u.setBarData({text:"",type:"text"},a[g]);break;case 15:u.setBarData(a[g-1],a[g]);break;case 16:this.$=a[g].trim(),u.setAccTitle(this.$);break;case 17:case 18:this.$=a[g].trim(),u.setAccDescription(this.$);break;case 19:this.$=a[g-1];break;case 20:this.$=[Number(a[g-2]),...a[g]];break;case 21:this.$=[Number(a[g])];break;case 22:u.setXAxisTitle(a[g]);break;case 23:u.setXAxisTitle(a[g-1]);break;case 24:u.setXAxisTitle({type:"text",text:""});break;case 25:u.setXAxisBand(a[g]);break;case 26:u.setXAxisRangeData(Number(a[g-2]),Number(a[g]));break;case 27:this.$=a[g-1];break;case 28:this.$=[a[g-2],...a[g]];break;case 29:this.$=[a[g]];break;case 30:u.setYAxisTitle(a[g]);break;case 31:u.setYAxisTitle(a[g-1]);break;case 32:u.setYAxisTitle({type:"text",text:""});break;case 33:u.setYAxisRangeData(Number(a[g-2]),Number(a[g]));break;case 37:this.$={text:a[g],type:"text"};break;case 38:this.$={text:a[g],type:"text"};break;case 39:this.$={text:a[g],type:"markdown"};break;case 40:this.$=a[g];break;case 41:this.$=a[g-1]+""+a[g];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:h,36:x}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:h,36:x}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:h,36:x}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(y,[2,34]),e(y,[2,35]),e(y,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:h,36:x}),{1:[2,3]},e(y,[2,5]),e(t,[2,7],{4:22,34:n,35:h,36:x}),{11:23,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},{11:39,13:38,24:z,27:rt,29:40,30:41,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},{11:45,15:44,27:lt,33:46,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},{11:49,17:48,24:$,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},{11:52,17:51,24:$,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},{20:[1,53]},{22:[1,54]},e(b,[2,18]),{1:[2,2]},e(b,[2,8]),e(b,[2,9]),e(Q,[2,37],{40:55,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R}),e(Q,[2,38]),e(Q,[2,39]),e(T,[2,40]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(b,[2,10]),e(b,[2,22],{30:41,29:56,24:z,27:rt}),e(b,[2,24]),e(b,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},e(b,[2,11]),e(b,[2,30],{33:60,27:lt}),e(b,[2,32]),{31:[1,61]},e(b,[2,12]),{17:62,24:$},{25:63,27:ct},e(b,[2,14]),{17:65,24:$},e(b,[2,16]),e(b,[2,17]),e(T,[2,41]),e(b,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(b,[2,31]),{27:[1,69]},e(b,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(b,[2,15]),e(b,[2,26]),e(b,[2,27]),{11:59,32:72,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},e(b,[2,33]),e(b,[2,19]),{25:73,27:ct},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(o,l){if(l.recoverable)this.trace(o);else{var c=new Error(o);throw c.hash=l,c}},parse:function(o){var l=this,c=[0],u=[],m=[null],a=[],F=this.table,g="",U=0,ut=0,Mt=2,gt=1,Bt=a.slice.call(arguments,1),A=Object.create(this.lexer),B={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(B.yy[J]=this.yy[J]);A.setInput(o,B.yy),B.yy.lexer=A,B.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var tt=A.yylloc;a.push(tt);var Wt=A.options&&A.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=u.pop()||A.lex()||gt,typeof I!="number"&&(I instanceof Array&&(u=I,I=u.pop()),I=l.symbols_[I]||I),I}for(var S,W,D,it,O={},q,V,xt,j;;){if(W=c[c.length-1],this.defaultActions[W]?D=this.defaultActions[W]:((S===null||typeof S>"u")&&(S=Ot()),D=F[W]&&F[W][S]),typeof D>"u"||!D.length||!D[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Mt&&j.push("'"+this.terminals_[q]+"'");A.showPosition?et="Parse error on line "+(U+1)+`:
1
+ import{s as zt,g as Ft,m as wt,n as Nt,a as Xt,b as Yt,l as St,y as Ht,d as $t,p as Ut,D as at,h as qt,z as Ct,B as jt,C as Gt}from"./mermaid.core-CnWnBqDh.js";import{a as Qt}from"./createText-aed3d8b3-ByusaZ77.js";import{l as pt}from"./index-Dz7T8mqj.js";import"./index-DoBkwclg.js";import"../datalayer-app-main.js";import{r as dt,l as ft}from"./d3-scale-B-wnA6MO.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./merge-B_wcPK4Y.js";import"./Middleware-BiLBmIq0.js";import"./dayjs.min-u3zuoSR8.js";import"./d3-interpolate-BVJucgkN.js";import"./d3-color-Jd8hXty2.js";var st=(function(){var e=function(M,o,l,c){for(l=l||{},c=M.length;c--;l[M[c]]=o);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],h=[1,6],x=[1,7],y=[1,5,10,12,14,16,18,19,21,23,34,35,36],f=[1,25],P=[1,26],C=[1,28],k=[1,29],L=[1,30],E=[1,31],_=[1,32],v=[1,33],d=[1,34],w=[1,35],r=[1,36],R=[1,37],z=[1,43],rt=[1,42],lt=[1,47],$=[1,50],b=[1,10,12,14,16,18,19,21,23,34,35,36],Q=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],T=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],ct=[1,64],K={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(o,l,c,u,m,a,F){var g=a.length-1;switch(m){case 5:u.setOrientation(a[g]);break;case 9:u.setDiagramTitle(a[g].text.trim());break;case 12:u.setLineData({text:"",type:"text"},a[g]);break;case 13:u.setLineData(a[g-1],a[g]);break;case 14:u.setBarData({text:"",type:"text"},a[g]);break;case 15:u.setBarData(a[g-1],a[g]);break;case 16:this.$=a[g].trim(),u.setAccTitle(this.$);break;case 17:case 18:this.$=a[g].trim(),u.setAccDescription(this.$);break;case 19:this.$=a[g-1];break;case 20:this.$=[Number(a[g-2]),...a[g]];break;case 21:this.$=[Number(a[g])];break;case 22:u.setXAxisTitle(a[g]);break;case 23:u.setXAxisTitle(a[g-1]);break;case 24:u.setXAxisTitle({type:"text",text:""});break;case 25:u.setXAxisBand(a[g]);break;case 26:u.setXAxisRangeData(Number(a[g-2]),Number(a[g]));break;case 27:this.$=a[g-1];break;case 28:this.$=[a[g-2],...a[g]];break;case 29:this.$=[a[g]];break;case 30:u.setYAxisTitle(a[g]);break;case 31:u.setYAxisTitle(a[g-1]);break;case 32:u.setYAxisTitle({type:"text",text:""});break;case 33:u.setYAxisRangeData(Number(a[g-2]),Number(a[g]));break;case 37:this.$={text:a[g],type:"text"};break;case 38:this.$={text:a[g],type:"text"};break;case 39:this.$={text:a[g],type:"markdown"};break;case 40:this.$=a[g];break;case 41:this.$=a[g-1]+""+a[g];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:h,36:x}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:h,36:x}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:h,36:x}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(y,[2,34]),e(y,[2,35]),e(y,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:h,36:x}),{1:[2,3]},e(y,[2,5]),e(t,[2,7],{4:22,34:n,35:h,36:x}),{11:23,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},{11:39,13:38,24:z,27:rt,29:40,30:41,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},{11:45,15:44,27:lt,33:46,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},{11:49,17:48,24:$,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},{11:52,17:51,24:$,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},{20:[1,53]},{22:[1,54]},e(b,[2,18]),{1:[2,2]},e(b,[2,8]),e(b,[2,9]),e(Q,[2,37],{40:55,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R}),e(Q,[2,38]),e(Q,[2,39]),e(T,[2,40]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(b,[2,10]),e(b,[2,22],{30:41,29:56,24:z,27:rt}),e(b,[2,24]),e(b,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},e(b,[2,11]),e(b,[2,30],{33:60,27:lt}),e(b,[2,32]),{31:[1,61]},e(b,[2,12]),{17:62,24:$},{25:63,27:ct},e(b,[2,14]),{17:65,24:$},e(b,[2,16]),e(b,[2,17]),e(T,[2,41]),e(b,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(b,[2,31]),{27:[1,69]},e(b,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(b,[2,15]),e(b,[2,26]),e(b,[2,27]),{11:59,32:72,37:24,38:f,39:P,40:27,41:C,42:k,43:L,44:E,45:_,46:v,47:d,48:w,49:r,50:R},e(b,[2,33]),e(b,[2,19]),{25:73,27:ct},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(o,l){if(l.recoverable)this.trace(o);else{var c=new Error(o);throw c.hash=l,c}},parse:function(o){var l=this,c=[0],u=[],m=[null],a=[],F=this.table,g="",U=0,ut=0,Mt=2,gt=1,Bt=a.slice.call(arguments,1),A=Object.create(this.lexer),B={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(B.yy[J]=this.yy[J]);A.setInput(o,B.yy),B.yy.lexer=A,B.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var tt=A.yylloc;a.push(tt);var Wt=A.options&&A.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=u.pop()||A.lex()||gt,typeof I!="number"&&(I instanceof Array&&(u=I,I=u.pop()),I=l.symbols_[I]||I),I}for(var S,W,D,it,O={},q,V,xt,j;;){if(W=c[c.length-1],this.defaultActions[W]?D=this.defaultActions[W]:((S===null||typeof S>"u")&&(S=Ot()),D=F[W]&&F[W][S]),typeof D>"u"||!D.length||!D[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Mt&&j.push("'"+this.terminals_[q]+"'");A.showPosition?et="Parse error on line "+(U+1)+`:
2
2
  `+A.showPosition()+`
3
3
  Expecting `+j.join(", ")+", got '"+(this.terminals_[S]||S)+"'":et="Parse error on line "+(U+1)+": Unexpected "+(S==gt?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(et,{text:A.match,token:this.terminals_[S]||S,line:A.yylineno,loc:tt,expected:j})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+S);switch(D[0]){case 1:c.push(S),m.push(A.yytext),a.push(A.yylloc),c.push(D[1]),S=null,ut=A.yyleng,g=A.yytext,U=A.yylineno,tt=A.yylloc;break;case 2:if(V=this.productions_[D[1]][1],O.$=m[m.length-V],O._$={first_line:a[a.length-(V||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(V||1)].first_column,last_column:a[a.length-1].last_column},Wt&&(O._$.range=[a[a.length-(V||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(O,[g,ut,U,B.yy,D[1],m,a].concat(Bt)),typeof it<"u")return it;V&&(c=c.slice(0,-1*V*2),m=m.slice(0,-1*V),a=a.slice(0,-1*V)),c.push(this.productions_[D[1]][0]),m.push(O.$),a.push(O._$),xt=F[c[c.length-2]][c[c.length-1]],c.push(xt);break;case 3:return!0}}return!0}},It=(function(){var M={EOF:1,parseError:function(l,c){if(this.yy.parser)this.yy.parser.parseError(l,c);else throw new Error(l)},setInput:function(o,l){return this.yy=l||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var l=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var u=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),c.length-1&&(this.yylineno-=c.length-1);var m=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:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{s as ni,g as oi,p as Mt,o as hi,a as ri,b as li,_ as n,l as Bt,D as ci,d as gi,q as ui,y as ft,i as xi,A as zt,B as di,F as pi,G as fi}from"./index-O5uyTYL5.js";import{r as Pt,l as Lt}from"./d3-scale-B-wnA6MO.js";import{l as vt}from"./index-Dz7T8mqj.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./d3-interpolate-BVJucgkN.js";import"./d3-color-Jd8hXty2.js";import"./dayjs.min-u3zuoSR8.js";var ut=(function(){var t=n(function(V,h,l,u){for(l=l||{},u=V.length;u--;l[V[u]]=h);return l},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],g=[1,6],c=[1,7],d=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],R=[1,26],_=[1,28],D=[1,29],E=[1,30],F=[1,31],W=[1,32],L=[1,33],z=[1,34],y=[1,35],k=[1,36],r=[1,37],I=[1,43],O=[1,42],X=[1,47],N=[1,50],C=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],b=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],A=[1,65],M=[26,28],S={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(h,l,u,x,w,o,Z){var p=o.length-1;switch(w){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:x.setXAxisTitle(o[p]);break;case 25:x.setXAxisTitle(o[p-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[p]);break;case 28:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:x.setYAxisTitle(o[p]);break;case 33:x.setYAxisTitle(o[p-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,36:a,37:g,38:c}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,36:a,37:g,38:c}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:g,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,36:a,37:g,38:c}),{1:[2,3]},t(d,[2,5]),t(i,[2,7],{4:22,36:a,37:g,38:c}),{11:23,30:f,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:39,13:38,24:I,29:O,30:f,31:40,32:41,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:45,15:44,29:X,30:f,35:46,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:49,17:48,24:N,30:f,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:52,17:51,24:N,30:f,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{20:[1,53]},{22:[1,54]},t(C,[2,18]),{1:[2,2]},t(C,[2,8]),t(C,[2,9]),t(H,[2,39],{41:55,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r}),t(H,[2,40]),t(H,[2,41]),t(b,[2,42]),t(b,[2,44]),t(b,[2,45]),t(b,[2,46]),t(b,[2,47]),t(b,[2,48]),t(b,[2,49]),t(b,[2,50]),t(b,[2,51]),t(b,[2,52]),t(b,[2,53]),t(C,[2,10]),t(C,[2,24],{32:41,31:56,24:I,29:O}),t(C,[2,26]),t(C,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},t(C,[2,11]),t(C,[2,32],{35:60,29:X}),t(C,[2,34]),{33:[1,61]},t(C,[2,12]),{17:62,24:N},{25:63,27:64,29:A},t(C,[2,14]),{17:66,24:N},t(C,[2,16]),t(C,[2,17]),t(b,[2,43]),t(C,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},t(C,[2,33]),{29:[1,70]},t(C,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},t(M,[2,23],{30:[1,73]}),t(C,[2,15]),t(C,[2,28]),t(C,[2,29]),{11:59,30:f,34:74,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},t(C,[2,35]),t(C,[2,19]),{25:75,27:64,29:A},t(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(h,l){if(l.recoverable)this.trace(h);else{var u=new Error(h);throw u.hash=l,u}},"parseError"),parse:n(function(h){var l=this,u=[0],x=[],w=[null],o=[],Z=this.table,p="",et=0,_t=0,ii=2,kt=1,ei=o.slice.call(arguments,1),T=Object.create(this.lexer),$={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&($.yy[rt]=this.yy[rt]);T.setInput(h,$.yy),$.yy.lexer=T,$.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var lt=T.yylloc;o.push(lt);var si=T.options&&T.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ai(v){u.length=u.length-2*v,w.length=w.length-v,o.length=o.length-v}n(ai,"popStack");function Tt(){var v;return v=x.pop()||T.lex()||kt,typeof v!="number"&&(v instanceof Array&&(x=v,v=x.pop()),v=l.symbols_[v]||v),v}n(Tt,"lex");for(var P,U,B,ct,j={},st,Y,Dt,at;;){if(U=u[u.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((P===null||typeof P>"u")&&(P=Tt()),B=Z[U]&&Z[U][P]),typeof B>"u"||!B.length||!B[0]){var gt="";at=[];for(st in Z[U])this.terminals_[st]&&st>ii&&at.push("'"+this.terminals_[st]+"'");T.showPosition?gt="Parse error on line "+(et+1)+`:
1
+ import{s as ni,g as oi,p as Mt,o as hi,a as ri,b as li,_ as n,l as Bt,D as ci,d as gi,q as ui,y as ft,i as xi,A as zt,B as di,F as pi,G as fi}from"./index-CAWdjL5V.js";import{r as Pt,l as Lt}from"./d3-scale-B-wnA6MO.js";import{l as vt}from"./index-Dz7T8mqj.js";import"./index-CJys1M3A.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./d3-interpolate-BVJucgkN.js";import"./d3-color-Jd8hXty2.js";import"./dayjs.min-u3zuoSR8.js";var ut=(function(){var t=n(function(V,h,l,u){for(l=l||{},u=V.length;u--;l[V[u]]=h);return l},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],g=[1,6],c=[1,7],d=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],R=[1,26],_=[1,28],D=[1,29],E=[1,30],F=[1,31],W=[1,32],L=[1,33],z=[1,34],y=[1,35],k=[1,36],r=[1,37],I=[1,43],O=[1,42],X=[1,47],N=[1,50],C=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],b=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],A=[1,65],M=[26,28],S={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(h,l,u,x,w,o,Z){var p=o.length-1;switch(w){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:x.setXAxisTitle(o[p]);break;case 25:x.setXAxisTitle(o[p-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[p]);break;case 28:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:x.setYAxisTitle(o[p]);break;case 33:x.setYAxisTitle(o[p-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,36:a,37:g,38:c}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,36:a,37:g,38:c}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:g,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,36:a,37:g,38:c}),{1:[2,3]},t(d,[2,5]),t(i,[2,7],{4:22,36:a,37:g,38:c}),{11:23,30:f,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:39,13:38,24:I,29:O,30:f,31:40,32:41,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:45,15:44,29:X,30:f,35:46,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:49,17:48,24:N,30:f,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:52,17:51,24:N,30:f,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{20:[1,53]},{22:[1,54]},t(C,[2,18]),{1:[2,2]},t(C,[2,8]),t(C,[2,9]),t(H,[2,39],{41:55,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r}),t(H,[2,40]),t(H,[2,41]),t(b,[2,42]),t(b,[2,44]),t(b,[2,45]),t(b,[2,46]),t(b,[2,47]),t(b,[2,48]),t(b,[2,49]),t(b,[2,50]),t(b,[2,51]),t(b,[2,52]),t(b,[2,53]),t(C,[2,10]),t(C,[2,24],{32:41,31:56,24:I,29:O}),t(C,[2,26]),t(C,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},t(C,[2,11]),t(C,[2,32],{35:60,29:X}),t(C,[2,34]),{33:[1,61]},t(C,[2,12]),{17:62,24:N},{25:63,27:64,29:A},t(C,[2,14]),{17:66,24:N},t(C,[2,16]),t(C,[2,17]),t(b,[2,43]),t(C,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},t(C,[2,33]),{29:[1,70]},t(C,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},t(M,[2,23],{30:[1,73]}),t(C,[2,15]),t(C,[2,28]),t(C,[2,29]),{11:59,30:f,34:74,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},t(C,[2,35]),t(C,[2,19]),{25:75,27:64,29:A},t(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(h,l){if(l.recoverable)this.trace(h);else{var u=new Error(h);throw u.hash=l,u}},"parseError"),parse:n(function(h){var l=this,u=[0],x=[],w=[null],o=[],Z=this.table,p="",et=0,_t=0,ii=2,kt=1,ei=o.slice.call(arguments,1),T=Object.create(this.lexer),$={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&($.yy[rt]=this.yy[rt]);T.setInput(h,$.yy),$.yy.lexer=T,$.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var lt=T.yylloc;o.push(lt);var si=T.options&&T.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ai(v){u.length=u.length-2*v,w.length=w.length-v,o.length=o.length-v}n(ai,"popStack");function Tt(){var v;return v=x.pop()||T.lex()||kt,typeof v!="number"&&(v instanceof Array&&(x=v,v=x.pop()),v=l.symbols_[v]||v),v}n(Tt,"lex");for(var P,U,B,ct,j={},st,Y,Dt,at;;){if(U=u[u.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((P===null||typeof P>"u")&&(P=Tt()),B=Z[U]&&Z[U][P]),typeof B>"u"||!B.length||!B[0]){var gt="";at=[];for(st in Z[U])this.terminals_[st]&&st>ii&&at.push("'"+this.terminals_[st]+"'");T.showPosition?gt="Parse error on line "+(et+1)+`:
2
2
  `+T.showPosition()+`
3
3
  Expecting `+at.join(", ")+", got '"+(this.terminals_[P]||P)+"'":gt="Parse error on line "+(et+1)+": Unexpected "+(P==kt?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(gt,{text:T.match,token:this.terminals_[P]||P,line:T.yylineno,loc:lt,expected:at})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+P);switch(B[0]){case 1:u.push(P),w.push(T.yytext),o.push(T.yylloc),u.push(B[1]),P=null,_t=T.yyleng,p=T.yytext,et=T.yylineno,lt=T.yylloc;break;case 2:if(Y=this.productions_[B[1]][1],j.$=w[w.length-Y],j._$={first_line:o[o.length-(Y||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(Y||1)].first_column,last_column:o[o.length-1].last_column},si&&(j._$.range=[o[o.length-(Y||1)].range[0],o[o.length-1].range[1]]),ct=this.performAction.apply(j,[p,_t,et,$.yy,B[1],w,o].concat(ei)),typeof ct<"u")return ct;Y&&(u=u.slice(0,-1*Y*2),w=w.slice(0,-1*Y),o=o.slice(0,-1*Y)),u.push(this.productions_[B[1]][0]),w.push(j.$),o.push(j._$),Dt=Z[u[u.length-2]][u[u.length-1]],u.push(Dt);break;case 3:return!0}}return!0},"parse")},K=(function(){var V={EOF:1,parseError:n(function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},"parseError"),setInput:n(function(h,l){return this.yy=l||this.yy||{},this._input=h,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(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var l=h.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:n(function(h){var l=h.length,u=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var x=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),u.length-1&&(this.yylineno-=u.length-1);var w=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:u?(u.length===x.length?this.yylloc.first_column:0)+x[x.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(h){this.unput(this.match.slice(h))},"less"),pastInput:n(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var h=this.pastInput(),l=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{s as ni,g as oi,p as Mt,o as hi,a as ri,b as li,_ as n,l as Bt,D as ci,d as gi,q as ui,y as ft,i as xi,A as zt,B as di,F as pi,G as fi}from"./mermaid.core-Ded6th0k.js";import{r as Pt,l as Lt}from"./d3-scale-B-wnA6MO.js";import{l as vt}from"./index-Dz7T8mqj.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./d3-interpolate-BVJucgkN.js";import"./d3-color-Jd8hXty2.js";import"./dayjs.min-u3zuoSR8.js";var ut=(function(){var t=n(function(V,h,l,u){for(l=l||{},u=V.length;u--;l[V[u]]=h);return l},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],g=[1,6],c=[1,7],d=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],R=[1,26],_=[1,28],D=[1,29],E=[1,30],F=[1,31],W=[1,32],L=[1,33],z=[1,34],y=[1,35],k=[1,36],r=[1,37],I=[1,43],O=[1,42],X=[1,47],N=[1,50],C=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],b=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],A=[1,65],M=[26,28],S={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(h,l,u,x,w,o,Z){var p=o.length-1;switch(w){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:x.setXAxisTitle(o[p]);break;case 25:x.setXAxisTitle(o[p-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[p]);break;case 28:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:x.setYAxisTitle(o[p]);break;case 33:x.setYAxisTitle(o[p-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,36:a,37:g,38:c}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,36:a,37:g,38:c}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:g,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,36:a,37:g,38:c}),{1:[2,3]},t(d,[2,5]),t(i,[2,7],{4:22,36:a,37:g,38:c}),{11:23,30:f,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:39,13:38,24:I,29:O,30:f,31:40,32:41,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:45,15:44,29:X,30:f,35:46,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:49,17:48,24:N,30:f,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:52,17:51,24:N,30:f,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{20:[1,53]},{22:[1,54]},t(C,[2,18]),{1:[2,2]},t(C,[2,8]),t(C,[2,9]),t(H,[2,39],{41:55,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r}),t(H,[2,40]),t(H,[2,41]),t(b,[2,42]),t(b,[2,44]),t(b,[2,45]),t(b,[2,46]),t(b,[2,47]),t(b,[2,48]),t(b,[2,49]),t(b,[2,50]),t(b,[2,51]),t(b,[2,52]),t(b,[2,53]),t(C,[2,10]),t(C,[2,24],{32:41,31:56,24:I,29:O}),t(C,[2,26]),t(C,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},t(C,[2,11]),t(C,[2,32],{35:60,29:X}),t(C,[2,34]),{33:[1,61]},t(C,[2,12]),{17:62,24:N},{25:63,27:64,29:A},t(C,[2,14]),{17:66,24:N},t(C,[2,16]),t(C,[2,17]),t(b,[2,43]),t(C,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},t(C,[2,33]),{29:[1,70]},t(C,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},t(M,[2,23],{30:[1,73]}),t(C,[2,15]),t(C,[2,28]),t(C,[2,29]),{11:59,30:f,34:74,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},t(C,[2,35]),t(C,[2,19]),{25:75,27:64,29:A},t(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(h,l){if(l.recoverable)this.trace(h);else{var u=new Error(h);throw u.hash=l,u}},"parseError"),parse:n(function(h){var l=this,u=[0],x=[],w=[null],o=[],Z=this.table,p="",et=0,_t=0,ii=2,kt=1,ei=o.slice.call(arguments,1),T=Object.create(this.lexer),$={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&($.yy[rt]=this.yy[rt]);T.setInput(h,$.yy),$.yy.lexer=T,$.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var lt=T.yylloc;o.push(lt);var si=T.options&&T.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ai(v){u.length=u.length-2*v,w.length=w.length-v,o.length=o.length-v}n(ai,"popStack");function Tt(){var v;return v=x.pop()||T.lex()||kt,typeof v!="number"&&(v instanceof Array&&(x=v,v=x.pop()),v=l.symbols_[v]||v),v}n(Tt,"lex");for(var P,U,B,ct,j={},st,Y,Dt,at;;){if(U=u[u.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((P===null||typeof P>"u")&&(P=Tt()),B=Z[U]&&Z[U][P]),typeof B>"u"||!B.length||!B[0]){var gt="";at=[];for(st in Z[U])this.terminals_[st]&&st>ii&&at.push("'"+this.terminals_[st]+"'");T.showPosition?gt="Parse error on line "+(et+1)+`:
1
+ import{s as ni,g as oi,p as Mt,o as hi,a as ri,b as li,_ as n,l as Bt,D as ci,d as gi,q as ui,y as ft,i as xi,A as zt,B as di,F as pi,G as fi}from"./mermaid.core-D4sqHwDm.js";import{r as Pt,l as Lt}from"./d3-scale-B-wnA6MO.js";import{l as vt}from"./index-Dz7T8mqj.js";import"../datalayer-app-main.js";import"./fastdom-promised-ihiknY5F.js";import"./_baseRest-BmxuuM4H.js";import"./isSymbol-BLtK9CV6.js";import"./forEach-hknrtmxV.js";import"./isUndefined-wBqHC1Hw.js";import"./d3-interpolate-BVJucgkN.js";import"./d3-color-Jd8hXty2.js";import"./dayjs.min-u3zuoSR8.js";var ut=(function(){var t=n(function(V,h,l,u){for(l=l||{},u=V.length;u--;l[V[u]]=h);return l},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],g=[1,6],c=[1,7],d=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],R=[1,26],_=[1,28],D=[1,29],E=[1,30],F=[1,31],W=[1,32],L=[1,33],z=[1,34],y=[1,35],k=[1,36],r=[1,37],I=[1,43],O=[1,42],X=[1,47],N=[1,50],C=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],b=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],A=[1,65],M=[26,28],S={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(h,l,u,x,w,o,Z){var p=o.length-1;switch(w){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:x.setXAxisTitle(o[p]);break;case 25:x.setXAxisTitle(o[p-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[p]);break;case 28:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:x.setYAxisTitle(o[p]);break;case 33:x.setYAxisTitle(o[p-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,36:a,37:g,38:c}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,36:a,37:g,38:c}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:g,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,36:a,37:g,38:c}),{1:[2,3]},t(d,[2,5]),t(i,[2,7],{4:22,36:a,37:g,38:c}),{11:23,30:f,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:39,13:38,24:I,29:O,30:f,31:40,32:41,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:45,15:44,29:X,30:f,35:46,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:49,17:48,24:N,30:f,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{11:52,17:51,24:N,30:f,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},{20:[1,53]},{22:[1,54]},t(C,[2,18]),{1:[2,2]},t(C,[2,8]),t(C,[2,9]),t(H,[2,39],{41:55,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r}),t(H,[2,40]),t(H,[2,41]),t(b,[2,42]),t(b,[2,44]),t(b,[2,45]),t(b,[2,46]),t(b,[2,47]),t(b,[2,48]),t(b,[2,49]),t(b,[2,50]),t(b,[2,51]),t(b,[2,52]),t(b,[2,53]),t(C,[2,10]),t(C,[2,24],{32:41,31:56,24:I,29:O}),t(C,[2,26]),t(C,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},t(C,[2,11]),t(C,[2,32],{35:60,29:X}),t(C,[2,34]),{33:[1,61]},t(C,[2,12]),{17:62,24:N},{25:63,27:64,29:A},t(C,[2,14]),{17:66,24:N},t(C,[2,16]),t(C,[2,17]),t(b,[2,43]),t(C,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},t(C,[2,33]),{29:[1,70]},t(C,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},t(M,[2,23],{30:[1,73]}),t(C,[2,15]),t(C,[2,28]),t(C,[2,29]),{11:59,30:f,34:74,39:24,40:R,41:27,42:_,43:D,44:E,45:F,46:W,47:L,48:z,49:y,50:k,51:r},t(C,[2,35]),t(C,[2,19]),{25:75,27:64,29:A},t(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(h,l){if(l.recoverable)this.trace(h);else{var u=new Error(h);throw u.hash=l,u}},"parseError"),parse:n(function(h){var l=this,u=[0],x=[],w=[null],o=[],Z=this.table,p="",et=0,_t=0,ii=2,kt=1,ei=o.slice.call(arguments,1),T=Object.create(this.lexer),$={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&($.yy[rt]=this.yy[rt]);T.setInput(h,$.yy),$.yy.lexer=T,$.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var lt=T.yylloc;o.push(lt);var si=T.options&&T.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ai(v){u.length=u.length-2*v,w.length=w.length-v,o.length=o.length-v}n(ai,"popStack");function Tt(){var v;return v=x.pop()||T.lex()||kt,typeof v!="number"&&(v instanceof Array&&(x=v,v=x.pop()),v=l.symbols_[v]||v),v}n(Tt,"lex");for(var P,U,B,ct,j={},st,Y,Dt,at;;){if(U=u[u.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((P===null||typeof P>"u")&&(P=Tt()),B=Z[U]&&Z[U][P]),typeof B>"u"||!B.length||!B[0]){var gt="";at=[];for(st in Z[U])this.terminals_[st]&&st>ii&&at.push("'"+this.terminals_[st]+"'");T.showPosition?gt="Parse error on line "+(et+1)+`:
2
2
  `+T.showPosition()+`
3
3
  Expecting `+at.join(", ")+", got '"+(this.terminals_[P]||P)+"'":gt="Parse error on line "+(et+1)+": Unexpected "+(P==kt?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(gt,{text:T.match,token:this.terminals_[P]||P,line:T.yylineno,loc:lt,expected:at})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+P);switch(B[0]){case 1:u.push(P),w.push(T.yytext),o.push(T.yylloc),u.push(B[1]),P=null,_t=T.yyleng,p=T.yytext,et=T.yylineno,lt=T.yylloc;break;case 2:if(Y=this.productions_[B[1]][1],j.$=w[w.length-Y],j._$={first_line:o[o.length-(Y||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(Y||1)].first_column,last_column:o[o.length-1].last_column},si&&(j._$.range=[o[o.length-(Y||1)].range[0],o[o.length-1].range[1]]),ct=this.performAction.apply(j,[p,_t,et,$.yy,B[1],w,o].concat(ei)),typeof ct<"u")return ct;Y&&(u=u.slice(0,-1*Y*2),w=w.slice(0,-1*Y),o=o.slice(0,-1*Y)),u.push(this.productions_[B[1]][0]),w.push(j.$),o.push(j._$),Dt=Z[u[u.length-2]][u[u.length-1]],u.push(Dt);break;case 3:return!0}}return!0},"parse")},K=(function(){var V={EOF:1,parseError:n(function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},"parseError"),setInput:n(function(h,l){return this.yy=l||this.yy||{},this._input=h,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(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var l=h.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:n(function(h){var l=h.length,u=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var x=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),u.length-1&&(this.yylineno-=u.length-1);var w=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:u?(u.length===x.length?this.yylloc.first_column:0)+x[x.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(h){this.unput(this.match.slice(h))},"less"),pastInput:n(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var h=this.pastInput(),l=new Array(h.length+1).join("-");return h+this.upcomingInput()+`