@pi-outpost/embed 0.39.0 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/{abnfDiagram-YUKMZFIV-dNHR2FX4.js → abnfDiagram-WEYOIA3C-B2ss_Vsq.js} +4 -4
  2. package/dist/{abnfDiagram-YUKMZFIV-CgM8_qF6.cjs → abnfDiagram-WEYOIA3C-DMn87p58.cjs} +1 -1
  3. package/dist/{architectureDiagram-47P4ROYG-C_rUoWaO.js → architectureDiagram-ZHVYKT53-C5QppHvM.js} +5 -5
  4. package/dist/{architectureDiagram-47P4ROYG-bflaQP1L.cjs → architectureDiagram-ZHVYKT53-DBfdIpyr.cjs} +1 -1
  5. package/dist/{blockDiagram-E7TT5TSB-BKw9FE2U.cjs → blockDiagram-RJAE7QA3-CODM9GdZ.cjs} +1 -1
  6. package/dist/{blockDiagram-E7TT5TSB-CEa2A5E9.js → blockDiagram-RJAE7QA3-DOvlohR9.js} +10 -10
  7. package/dist/{c4Diagram-CRA5TL53-CtJh9DsO.js → c4Diagram-XDPPPE54-8dwnUpAO.js} +8 -8
  8. package/dist/{c4Diagram-CRA5TL53-C-PuMGA5.cjs → c4Diagram-XDPPPE54-eTVK3Kzy.cjs} +1 -1
  9. package/dist/{channel-DCXZw5aW.js → channel-B1lf-ehw.js} +1 -1
  10. package/dist/channel-BRczbI_M.cjs +1 -0
  11. package/dist/{chunk-AW2ZBBNX-CVsDDdv5.js → chunk-2E7WHVMD-Dg_Sckag.js} +3 -3
  12. package/dist/{chunk-AW2ZBBNX-C4uNh90t.cjs → chunk-2E7WHVMD-DkV-cet-.cjs} +1 -1
  13. package/dist/{chunk-HTAEGDNF-D4u24-lD.js → chunk-4EMNKR2T-C2XrT3x_.js} +2 -2
  14. package/dist/{chunk-HTAEGDNF-I4JlqwMr.cjs → chunk-4EMNKR2T-DfeN909d.cjs} +1 -1
  15. package/dist/{chunk-7TKQ45FW-CD1KuemG.js → chunk-55XCU76K-CADZXRVb.js} +2 -2
  16. package/dist/{chunk-7TKQ45FW-Djscho_M.cjs → chunk-55XCU76K-d9D4PS_7.cjs} +1 -1
  17. package/dist/{chunk-3YJQHVM4-ChvNe1M8.cjs → chunk-7S6XSTFO-DJ37SdG5.cjs} +1 -1
  18. package/dist/{chunk-3YJQHVM4-BNbfg-7y.js → chunk-7S6XSTFO-DV8etStf.js} +2 -2
  19. package/dist/{chunk-E2ZNV5FY-Bu796yUY.js → chunk-AQDTSKZB-CUCC855j.js} +4 -4
  20. package/dist/{chunk-E2ZNV5FY-DIRTchKA.cjs → chunk-AQDTSKZB-DElrkKED.cjs} +1 -1
  21. package/dist/{chunk-VPRB5NB3-DJh7spRO.js → chunk-DSNLSHJZ-Bicto10E.js} +2 -1
  22. package/dist/{chunk-VPRB5NB3-CT204jN6.cjs → chunk-DSNLSHJZ-DZO9xahH.cjs} +1 -1
  23. package/dist/{chunk-XC4XBNZT-CSiWBPH9.js → chunk-HAGFOTED-BjDmRfgG.js} +29 -29
  24. package/dist/chunk-HAGFOTED-Dykk1LyE.cjs +62 -0
  25. package/dist/{chunk-NTY3LDVX-CvRtOCpm.js → chunk-HNE4Q36P-5u7dvjgt.js} +7 -7
  26. package/dist/chunk-HNE4Q36P-C-j5Nn9f.cjs +1 -0
  27. package/dist/{chunk-EU5HNXII-DNBbmfcI.cjs → chunk-NQOKRVIF-CpOc5MEh.cjs} +1 -1
  28. package/dist/{chunk-EU5HNXII-DW-QTb0f.js → chunk-NQOKRVIF-DUgN94ic.js} +8 -8
  29. package/dist/{chunk-4EA7E6EY-B5P7n2an.js → chunk-UHW7PFBP-NbzzxkEP.js} +2 -2
  30. package/dist/{chunk-4EA7E6EY-3OELTJ93.cjs → chunk-UHW7PFBP-SZ8KvGM0.cjs} +1 -1
  31. package/dist/{chunk-KQW6MTUR-C_XQxsme.cjs → chunk-VQ5W62QI-CsW6i5Ev.cjs} +1 -1
  32. package/dist/{chunk-KQW6MTUR-c0XOjr_c.js → chunk-VQ5W62QI-D3c9tcDC.js} +2 -2
  33. package/dist/chunk-WQQL4CDK-TvwGUFeE.cjs +10 -0
  34. package/dist/{chunk-2BW5OAIV-DWtmlmt_.js → chunk-WQQL4CDK-l3Yf4SAX.js} +114 -114
  35. package/dist/{chunk-HJ2JQQFS-DnrogIdt.cjs → chunk-YZO67HFG-CLf5aoHk.cjs} +1 -1
  36. package/dist/{chunk-HJ2JQQFS-CgYTXthn.js → chunk-YZO67HFG-DWHo0c6-.js} +2 -2
  37. package/dist/{chunk-DBDB3WZW-DSRcln4l.cjs → chunk-ZAUX2LTX-BwjEPfG0.cjs} +1 -1
  38. package/dist/{chunk-DBDB3WZW-DpEOsLsQ.js → chunk-ZAUX2LTX-COHXRsvU.js} +3 -3
  39. package/dist/{chunk-FVRAUYC3-Crqd-lTD.cjs → chunk-ZCHMQSOR-7slscxYq.cjs} +1 -1
  40. package/dist/{chunk-FVRAUYC3-tiT7dtx-.js → chunk-ZCHMQSOR-Cw-9SNln.js} +8 -8
  41. package/dist/{classDiagram-v2-K4WV4PDN-C39xKke0.js → classDiagram-v2-4MYWR3UA-vsmkJ0Cx.js} +13 -13
  42. package/dist/{classDiagram-v2-K4WV4PDN-BndXIwai.cjs → classDiagram-v2-4MYWR3UA-wLbwKHvU.cjs} +1 -1
  43. package/dist/conversationExport-BmvGyAf-.cjs +71 -0
  44. package/dist/{conversationExport-BXEb1n8C.js → conversationExport-CBiBLWVk.js} +14 -12
  45. package/dist/{conversationHistory-BCj7z0AY.cjs → conversationHistory-DN1r7WZT.cjs} +39 -39
  46. package/dist/{conversationHistory-BsL2Q-mL.js → conversationHistory-DwB6hasI.js} +4628 -4567
  47. package/dist/{cynefinDiagram-3GCD6N5R-C2CRSeJl.js → cynefinDiagram-WF24UDRP-BhWkOxCi.js} +4 -4
  48. package/dist/{cynefinDiagram-3GCD6N5R-Bmvj-sQO.cjs → cynefinDiagram-WF24UDRP-CHBmFbqk.cjs} +1 -1
  49. package/dist/{dagre-W4DXFKR2-aPKdYPEj.cjs → dagre-NK4GIZVX-BI_akQkH.cjs} +1 -1
  50. package/dist/{dagre-W4DXFKR2-ECmxkO0T.js → dagre-NK4GIZVX-CJfLDa-C.js} +11 -11
  51. package/dist/{diagram-OVF4WLC6-D6r6aTeO.js → diagram-CBK3MWTC-2pAHlnGJ.js} +6 -6
  52. package/dist/{diagram-OVF4WLC6-CwZeVpHT.cjs → diagram-CBK3MWTC-B_5GBGbb.cjs} +1 -1
  53. package/dist/{diagram-UMYRVEAY-BE-t_ZdV.cjs → diagram-I5XIIV2D-BPxYY-Kp.cjs} +1 -1
  54. package/dist/{diagram-UMYRVEAY-blW7NpUU.js → diagram-I5XIIV2D-CQ_Y9NJs.js} +4 -4
  55. package/dist/{diagram-PFPMY2P6-BpOJbdZ5.js → diagram-ODIL2UCW-BJL-7QWJ.js} +5 -5
  56. package/dist/{diagram-PFPMY2P6-DlLbGc_k.cjs → diagram-ODIL2UCW-pyDNtrY0.cjs} +1 -1
  57. package/dist/{diagram-ZIFT7M5P-BHePHmHl.cjs → diagram-PFBEJUXE-BUvTWvw5.cjs} +1 -1
  58. package/dist/{diagram-ZIFT7M5P-CZOnEYez.js → diagram-PFBEJUXE-CXd3x3TA.js} +3 -3
  59. package/dist/{diagram-YEKJPTXX-CeQjir5H.cjs → diagram-RJA3I4VV-T3Hd1koB.cjs} +1 -1
  60. package/dist/{diagram-YEKJPTXX-BOgf87BN.js → diagram-RJA3I4VV-eMNhs7pW.js} +4 -4
  61. package/dist/{diagram-2UJZ2QOL-B1JKtFHG.cjs → diagram-TYUNFSNR-B_p2UHsR.cjs} +1 -1
  62. package/dist/{diagram-2UJZ2QOL-CJRsGDwn.js → diagram-TYUNFSNR-CWpFSB2K.js} +14 -14
  63. package/dist/docxExport-B24fOHFl.cjs +3 -0
  64. package/dist/{docxExport-BKC_hi5D.js → docxExport-BGYavEI-.js} +13 -12
  65. package/dist/download-DVJ5QY85.js +7 -0
  66. package/dist/download-U7JEZ6c9.cjs +1 -0
  67. package/dist/{ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js → ebnfDiagram-V4P3TTPT-B7cCNP3X.js} +4 -4
  68. package/dist/{ebnfDiagram-VR2GEFS7-cgyTJ-Xs.cjs → ebnfDiagram-V4P3TTPT-DAoJZ85k.cjs} +1 -1
  69. package/dist/elk-QONTBCTQ-BDAptnPT.cjs +27 -0
  70. package/dist/{elk-IJKZMXRS-V31is6hS.js → elk-QONTBCTQ-BYnAuRAH.js} +18399 -18383
  71. package/dist/{erDiagram-O2IAPWRE-CnkFrABC.cjs → erDiagram-KYQIGQAA-BIlejnVi.cjs} +1 -1
  72. package/dist/{erDiagram-O2IAPWRE-CP06GjjM.js → erDiagram-KYQIGQAA-BKkxORU3.js} +13 -13
  73. package/dist/flowDiagram-IUGLLWBU-BSiCLGuL.cjs +1 -0
  74. package/dist/flowDiagram-IUGLLWBU-DL_I6QCE.js +16 -0
  75. package/dist/{ganttDiagram-R7TSEDQI-Jhax10tw.cjs → ganttDiagram-R7GPNTJY-BGcXo1KA.cjs} +1 -1
  76. package/dist/{ganttDiagram-R7TSEDQI-y1bDU8Ba.js → ganttDiagram-R7GPNTJY-dcubAqZI.js} +2 -2
  77. package/dist/{gitGraphDiagram-XJZIOB7I-CLZLQcPk.cjs → gitGraphDiagram-PDYL7XHY-BoJsALki.cjs} +1 -1
  78. package/dist/{gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js → gitGraphDiagram-PDYL7XHY-CfRYMd3w.js} +3 -3
  79. package/dist/{infoDiagram-5W2HQ5XZ-D8fJK3ph.cjs → infoDiagram-MVDRKAX5-B1QBSTSo.cjs} +1 -1
  80. package/dist/{infoDiagram-5W2HQ5XZ-Dw_D4zI1.js → infoDiagram-MVDRKAX5-BYGrp2QT.js} +4 -4
  81. package/dist/{ishikawaDiagram-K3B6WC7H-DtjgiZAB.cjs → ishikawaDiagram-HPEHV2GE-BWJo3pFM.cjs} +1 -1
  82. package/dist/{ishikawaDiagram-K3B6WC7H-BeLiZFVY.js → ishikawaDiagram-HPEHV2GE-C32LoFQd.js} +4 -4
  83. package/dist/{journeyDiagram-COXZFDF6-Dge2AV0B.cjs → journeyDiagram-BOSHW7O7-090H5NM8.cjs} +1 -1
  84. package/dist/{journeyDiagram-COXZFDF6-B-qvdudB.js → journeyDiagram-BOSHW7O7-DJ9OKW8H.js} +3 -3
  85. package/dist/{kanban-definition-P3RFRI5V-C02YfFZv.cjs → kanban-definition-FNSA4HC5-BhC2u-9L.cjs} +1 -1
  86. package/dist/{kanban-definition-P3RFRI5V-D0XAXDl8.js → kanban-definition-FNSA4HC5-FqIvMKJw.js} +10 -10
  87. package/dist/katex-DBUQi-HZ.cjs +257 -0
  88. package/dist/{katex-ohtLbxXc.js → katex-DTnCNBYg.js} +2116 -2212
  89. package/dist/lib-BDkAiWI9.cjs +26 -0
  90. package/dist/{lib-BgQYQRfw.js → lib-DILNlJGg.js} +1049 -1055
  91. package/dist/{line-BTenwQwq.js → line-CJjnW4T-.js} +1 -1
  92. package/dist/{line-5eGinYgh.cjs → line-DjYp3Ff8.cjs} +1 -1
  93. package/dist/loadReferencedImage-CHTgZKAP.cjs +1 -0
  94. package/dist/loadReferencedImage-CkvnSeQi.js +144 -0
  95. package/dist/{mermaid.core-4MZ-Iwu7.cjs → mermaid.core-2PafqU96.cjs} +4 -4
  96. package/dist/{mermaid.core-BJkDCzqA.js → mermaid.core-BxQmR6RW.js} +53 -53
  97. package/dist/mermaidToImage-CSR5Vyvs.cjs +25 -0
  98. package/dist/mermaidToImage-DowDuCUe.js +14297 -0
  99. package/dist/{mindmap-definition-LZFPQGKD-gYumvdwo.js → mindmap-definition-6OY57UG3-C0JXAaiI.js} +27 -24
  100. package/dist/{mindmap-definition-LZFPQGKD-CXV1hV3a.cjs → mindmap-definition-6OY57UG3-QMaMZxqJ.cjs} +11 -9
  101. package/dist/{pegDiagram-BGZESJAR-Dw9pRv5d.js → pegDiagram-ECIUJNBX-BluDPMz-.js} +4 -4
  102. package/dist/{pegDiagram-BGZESJAR-BICf3jMN.cjs → pegDiagram-ECIUJNBX-agFLe55J.cjs} +1 -1
  103. package/dist/pi-outpost-embed.cjs +25 -25
  104. package/dist/pi-outpost-embed.js +3854 -3817
  105. package/dist/{pieDiagram-CAPJLFHJ-CF8cTQpC.cjs → pieDiagram-GNMPY74T-Bkt6LXIr.cjs} +1 -1
  106. package/dist/{pieDiagram-CAPJLFHJ-uz37FR9I.js → pieDiagram-GNMPY74T-D2Dlw9oL.js} +4 -4
  107. package/dist/{quadrantDiagram-GDMTTRAM-D9SYFJ_P.cjs → quadrantDiagram-D57K4MC3-BwUPO-ri.cjs} +1 -1
  108. package/dist/{quadrantDiagram-GDMTTRAM-C4rt8LIh.js → quadrantDiagram-D57K4MC3-vbdBbRAF.js} +2 -2
  109. package/dist/{railroadDiagram-SM67HX2B-T5SG0kEf.js → railroadDiagram-Y72NRBL7-B2x_q8pa.js} +4 -4
  110. package/dist/{railroadDiagram-SM67HX2B-GgesxX7v.cjs → railroadDiagram-Y72NRBL7-CJ9MP3wV.cjs} +1 -1
  111. package/dist/{requirementDiagram-X7JNWC4A-BVzf-VRr.cjs → requirementDiagram-EQYSW5RA-CP0M11vC.cjs} +1 -1
  112. package/dist/{requirementDiagram-X7JNWC4A-BEeCszC1.js → requirementDiagram-EQYSW5RA-j7VZ-e65.js} +12 -12
  113. package/dist/{sankeyDiagram-UM26HJRW-CdBXqklJ.cjs → sankeyDiagram-SY24JHO5-B7NuxaKG.cjs} +1 -1
  114. package/dist/{sankeyDiagram-UM26HJRW-DLDVzhPm.js → sankeyDiagram-SY24JHO5-Cgewgbc8.js} +2 -2
  115. package/dist/{sequenceDiagram-ZO4K6R2Y-ytX57BES.cjs → sequenceDiagram-BLEHNHQU-B5THoiqW.cjs} +1 -1
  116. package/dist/{sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js → sequenceDiagram-BLEHNHQU-DsjvHcWN.js} +5 -5
  117. package/dist/{stateDiagram-v2-TBUQTH76-PRnBJSrY.js → stateDiagram-v2-A6IESKWZ-BD0FNkiB.js} +13 -13
  118. package/dist/{stateDiagram-v2-TBUQTH76-BTuAbG28.cjs → stateDiagram-v2-A6IESKWZ-Dqzvdrv1.cjs} +1 -1
  119. package/dist/swimlanes-B3ENRKFQ-DEsfJ_Va.cjs +1 -0
  120. package/dist/{swimlanes-N4OXWK64-DipLcZla.js → swimlanes-B3ENRKFQ-Do-xntE9.js} +365 -364
  121. package/dist/swimlanesDiagram-AYQRV4AK-CU4USE4p.cjs +8 -0
  122. package/dist/swimlanesDiagram-AYQRV4AK-ora_Y3LB.js +27 -0
  123. package/dist/{timeline-definition-YOQAKGHF-D_LWHCSA.cjs → timeline-definition-JXYKGLGB-B_QITrmE.cjs} +1 -1
  124. package/dist/{timeline-definition-YOQAKGHF-h8_spxIb.js → timeline-definition-JXYKGLGB-Cxi2ay-W.js} +4 -4
  125. package/dist/{usecaseDiagram-VIAY4XPW-DCfwvERR.js → usecaseDiagram-WPOLBNNX-C5u6uogx.js} +11 -11
  126. package/dist/{usecaseDiagram-VIAY4XPW-PJHZiyJN.cjs → usecaseDiagram-WPOLBNNX-_GFZAFdK.cjs} +1 -1
  127. package/dist/{vennDiagram-BLWOH2XV-niExkaFk.cjs → vennDiagram-Q3Y3IDCW-Bf1i94bS.cjs} +1 -1
  128. package/dist/{vennDiagram-BLWOH2XV-_zHkfDVB.js → vennDiagram-Q3Y3IDCW-CircfM4o.js} +4 -4
  129. package/dist/{wardleyDiagram-YMQ3BMBF-BKvQkiZP.js → wardleyDiagram-IVAIDKWA-BOSseRAa.js} +4 -4
  130. package/dist/{wardleyDiagram-YMQ3BMBF-btlDrKA6.cjs → wardleyDiagram-IVAIDKWA-Cr5LS-u2.cjs} +1 -1
  131. package/dist/{xychartDiagram-TAQBALBS-DlfKpBG9.js → xychartDiagram-4URNHDU4-C4X8LFY4.js} +7 -7
  132. package/dist/{xychartDiagram-TAQBALBS-CkNZcyIi.cjs → xychartDiagram-4URNHDU4-DOUN6alM.cjs} +1 -1
  133. package/package.json +2 -2
  134. package/dist/channel-BjC1TKrU.cjs +0 -1
  135. package/dist/chunk-2BW5OAIV-FkhgcL6B.cjs +0 -10
  136. package/dist/chunk-NTY3LDVX-DBVRlnMJ.cjs +0 -1
  137. package/dist/chunk-XC4XBNZT-BTUjiQhE.cjs +0 -62
  138. package/dist/conversationExport-DEKaUq-d.cjs +0 -71
  139. package/dist/docxExport-V7joLrkm.cjs +0 -3
  140. package/dist/elk-IJKZMXRS-NO3xNT-V.cjs +0 -27
  141. package/dist/flowDiagram-OXPTDLAJ-BdYr7Idm.cjs +0 -1
  142. package/dist/flowDiagram-OXPTDLAJ-R_xf7pNW.js +0 -16
  143. package/dist/katex-CEF6MvLx.cjs +0 -257
  144. package/dist/lib-DVuUFI8o.cjs +0 -26
  145. package/dist/loadReferencedImage-FGse7G4p.js +0 -36292
  146. package/dist/loadReferencedImage-QespeGh9.cjs +0 -281
  147. package/dist/swimlanes-N4OXWK64-41SBE_L2.cjs +0 -1
  148. package/dist/swimlanesDiagram-K3J5GTZL-D6tIMgkj.cjs +0 -8
  149. package/dist/swimlanesDiagram-K3J5GTZL-_MehEHMi.js +0 -27
@@ -1,8 +1,8 @@
1
1
  import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
2
  import { m as t } from "./src-Dkp7vqs8.js";
3
- import { d as n } from "./chunk-3YJQHVM4-BNbfg-7y.js";
4
- import { s as r } from "./chunk-XC4XBNZT-CSiWBPH9.js";
5
- //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-DBDB3WZW.mjs
3
+ import { d as n } from "./chunk-7S6XSTFO-DV8etStf.js";
4
+ import { s as r } from "./chunk-HAGFOTED-BjDmRfgG.js";
5
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZAUX2LTX.mjs
6
6
  var i = /* @__PURE__ */ e(({ flowchart: e }) => {
7
7
  let t = e?.subGraphTitleMargin?.top ?? 0, n = e?.subGraphTitleMargin?.bottom ?? 0;
8
8
  return {
@@ -1 +1 @@
1
- const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-VPRB5NB3-CT204jN6.cjs"),r=require("./chunk-3YJQHVM4-ChvNe1M8.cjs"),i=require("./chunk-XC4XBNZT-BTUjiQhE.cjs"),a=require("./chunk-DBDB3WZW-DSRcln4l.cjs"),o=require("./chunk-2BW5OAIV-FkhgcL6B.cjs"),s=require("./graphlib-BaETKKSa.cjs"),c=require("./chunk-NTY3LDVX-DBVRlnMJ.cjs");function l(e,{edgePathsClass:t=`edges edgePaths`}={}){let n=e.insert(`g`).attr(`class`,`root`);return{clusters:n.insert(`g`).attr(`class`,`clusters`),edgePaths:n.insert(`g`).attr(`class`,t),edgeLabels:n.insert(`g`).attr(`class`,`edgeLabels`),nodes:n.insert(`g`).attr(`class`,`nodes`),rootGroups:n}}e.n(l,`createLayoutElementGroups`);async function u(e,t,n){if(t.label){let{shapeSvg:r,bbox:a}=await i.o(e,n===void 0?t:{...t,width:n});t.labelBBox={width:a.width,height:a.height},r.remove()}else t.labelBBox={width:0,height:0}}e.n(u,`measureGroupLabel`);async function d(e,t,n){let r=await a.r(e,t,n),i=r.node()?.getBBox()??{width:0,height:0};return t.width=i.width,t.height=i.height,r}e.n(d,`insertMeasuredNode`);function f(e,t,n){let r=e,i=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||i.has(r.parentId))break;i.add(r.parentId),r=t.get(r.parentId)}return n}e.n(f,`resolveNodeDir`);async function p(e,t,r={}){let i=new s.t({multigraph:!0,compound:!0}),a=[...t.edges],c=n.b(),p=l(e),{edgeLabels:m,nodes:h}=p,g=new Map,_=new Map(t.nodes.map(e=>[e.id,e])),v=t.direction,y=e.node()!=null;await Promise.all(t.nodes.map(async e=>{if(e.isGroup){if(y){let t=r.unwrapGroupLabels&&e.labelType!==`markdown`;await u(h,e,t?1/0:void 0)}i.setNode(e.id,{...e})}else{if(y){let t=await d(h,e,{config:c,dir:f(e,_,v)});g.set(e.id,t)}i.setNode(e.id,{...e})}}));for(let e of a)y&&o.r(e)&&await o.a(m,e),i.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await Promise.resolve().then(()=>require("./sizeCapture-INFHLROL-bJ2ZX4Du.cjs"));n(e,t)}return{graph:i,groups:p,nodeElements:g}}e.n(p,`createGraphWithElements`);var m=new Map,h=new Map,g=new Map,_=e.n(()=>{h.clear(),g.clear(),m.clear()},`clear`),v=e.n((e,n)=>{let r=h.get(n)||[];return t.m.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),y=e.n((e,n)=>{let r=h.get(n)||[];return t.m.info(`Descendants of `,n,` is `,r),t.m.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||v(e.v,n)||v(e.w,n)||r.includes(e.w):(t.m.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),b=e.n((e,n,r,i)=>{t.m.debug(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.m.debug(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)b(a,n,r,i);else{let o=n.node(a);t.m.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.m.debug(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.m.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.m.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.m.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.m.debug(`Copying Edges`,s),s.forEach(a=>{t.m.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.m.info(`Edge data`,o,i);try{y(a,i)?(t.m.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.m.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):t.m.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.m.error(e)}})}t.m.debug(`Removing node`,a),n.removeNode(a)})},`copy`),x=e.n((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)g.set(i,e),r=[...r,...x(i,t)];return r},`extractDescendants`),S=e.n((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),C=e.n((e,n,r)=>{let i=n.children(e);if(t.m.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=C(e,n,r),i=S(n,r,t);if(t){if(i.length>0)a=t;else return t}}return a},`findNonClusterChild`),w=e.n(e=>!m.has(e)||!m.get(e).externalConnections?e:m.has(e)?m.get(e).id:e,`getAnchorId`),T=e.n((e,n)=>{if(!e||n>10){t.m.debug(`Opting out, no graph `);return}t.m.debug(`Opting in, graph `),e.nodes().forEach(function(n){e.children(n).length>0&&(t.m.debug(`Cluster identified`,n,` Replacement id in edges: `,C(n,e,n)),h.set(n,x(n,e)),m.set(n,{id:C(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.m.debug(`Cluster identified`,n,h),i.forEach(e=>{v(e.v,n)^v(e.w,n)&&(t.m.debug(`Edge: `,e,` leaves cluster `,n),t.m.debug(`Descendants of XXX `,n,`: `,h.get(n)),m.get(n).externalConnections=!0)})):t.m.debug(`Not a cluster `,n,h)});for(let t of m.keys()){let n=m.get(t).id,r=e.parent(n);r!==t&&m.has(r)&&!m.get(r).externalConnections&&(m.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&m.get(t)?.externalConnections&&i&&k(e,n,t)){let r=A(e,t,e.parent(n));r&&(m.get(t).id=r)}}e.edges().forEach(function(n){let r=e.edge(n);t.m.debug(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.m.debug(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.m.debug(`Fix XXX`,m,`ids:`,n.v,n.w,`Translating: `,m.get(n.v),` --- `,m.get(n.w)),m.get(n.v)||m.get(n.w)){if(t.m.debug(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=w(n.v),a=w(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);m.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);m.get(t).externalConnections=!0,r.toCluster=n.w}t.m.debug(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),E(e,0),t.m.trace(m)},`adjustClustersAndEdges`),E=e.n((e,n)=>{if(n>10){t.m.error(`Bailing out`);return}let r=e.nodes(),i=!1;for(let t of r){let n=e.children(t);i||=n.length>0}if(!i){t.m.debug(`Done, no node has children`,e.nodes());return}t.m.debug(`Nodes = `,r,n);for(let i of r)if(t.m.debug(`Extracting node`,i,m,m.has(i)&&!m.get(i).externalConnections,!e.parent(i),e.node(i),e.children(`D`),` Depth `,n),!m.has(i))t.m.debug(`Not a cluster`,i,n);else if(!m.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.m.debug(`Cluster without external connections, without a parent and with children`,i,n);let r=e.graph().rankdir===`TB`?`LR`:`TB`;m.get(i)?.clusterData?.dir&&(r=m.get(i).clusterData.dir,t.m.debug(`Fixing dir`,m.get(i).clusterData.dir,r));let a=new s.t({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b(i,e,a,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:m.get(i).clusterData,label:m.get(i).label,graph:a})}else t.m.debug(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!m.get(i).externalConnections,` no parent: `,!e.parent(i),` children `,e.children(i)&&e.children(i).length>0,e.children(`D`),n),t.m.debug(m);r=e.nodes(),t.m.debug(`New list of nodes`,r);for(let i of r){let r=e.node(i);t.m.debug(` Now next level`,i,r),r?.clusterNode&&E(r.graph,n+1)}},`extractor`),D=e.n((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=D(e,e.children(t));n=[...n,...r]}),n},`sorter`),O=e.n(e=>D(e,e.children()),`sortNodesByHierarchy`),k=e.n((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=m.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),A=e.n((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||v(i,n))continue;let r=C(i,e,t);if(r&&!k(e,r,t))return r}return null},`findSafeAnchorNode`);function j({prepareLayout:t,measureLayout:n,runLayoutCore:r,paintLayout:i,afterPaint:a,paintOptions:s}){let c=n??N;return e.n(async function(e,n,l,u){let d=n.select(`g`);(l?.insertMarkers??o.c)(d,e.markers,e.type,e.diagramId),M();let f={element:d,helpers:l,options:u};f.preparedLayout=await t?.(e,f);let p=await c(e,f),m=await r(e,f),h={...f,measure:p};i?await i(e,h,m):await P(e,h,s),await a?.(e,h,m)},`render`)}e.n(j,`createCommonLayoutRenderer`);function M(){a.t(),o.t(),c.t(),_()}e.n(M,`clearLayoutRenderState`);async function N(e,{element:t},n){return await p(t,e,n)}e.n(N,`defaultMeasureLayout`);async function P(e,t,n={}){let{measure:r}=t,{groups:i}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await F(i,r,t,n);let a=L(e.nodes);for(let r of e.edges)R(r,n)||await z(i,r,a,e,n,t)}e.n(P,`paintLayoutData`);async function F(e,t,n,r){t.clusterNode?a.i(t):I(t,n,r)?await c.r(e.clusters,t):a.i(t)}e.n(F,`paintLayoutNode`);function I(e,t,n){return e.isGroup===!0&&(n.isCluster?.(e,t)??!0)}e.n(I,`shouldPaintAsCluster`);function L(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}e.n(L,`buildNodeLookup`);function R(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}e.n(R,`shouldSkipPaintEdge`);async function z(e,t,n,r,i,a){let s=o.i(e.edgePaths,{...t},i.clusterDb??new Map,r.type,B(t.start,t,n,a,i),B(t.end,t,n,a,i),r.diagramId,V(t,i));o.r(t)&&(o.n.has(t.id)||await o.a(e.edgeLabels,t),H(t,s))}e.n(z,`paintLayoutEdge`);function B(e,t,n,r,i){return i.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}e.n(B,`getRenderedNode`);function V(e,t){return typeof t.skipIntersect==`function`?t.skipIntersect(e):t.skipIntersect??!1}e.n(V,`shouldSkipIntersect`);function H(e,t){let r=t?.updatedPath??t?.originalPath,i=n.y(),{subGraphTitleTotalMargin:s}=a.n({flowchart:i.flowchart??{}});if(e.label){let n=o.n.get(e.id),{x:r,y:i}=o.u(e,t);n.attr(`transform`,`translate(${r}, ${i+s/2})`)}for(let[t,n]of[[`startLeft`,e.startLabelLeft],[`startRight`,e.startLabelRight],[`endLeft`,e.endLabelLeft],[`endRight`,e.endLabelRight]])if(n){let{x:n,y:i}=W(e,t,r);o.d.get(e.id)[t].attr(`transform`,`translate(${n}, ${i})`)}}e.n(H,`positionRenderedEdgeLabel`);var U={startLeft:`start_left`,startRight:`start_right`,endLeft:`end_left`,endRight:`end_right`};function W(e,t,n){let i=e.terminalLabelCenters?.[t];if(i)return{...i};if(!n)return{x:e.x,y:e.y};let a=t.startsWith(`start`)?e.arrowTypeStart:e.arrowTypeEnd;return r._.calcTerminalLabelPosition(a?10:0,U[t],n)}e.n(W,`terminalLabelTranslate`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}});
1
+ const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-DSNLSHJZ-DZO9xahH.cjs"),r=require("./chunk-7S6XSTFO-DJ37SdG5.cjs"),i=require("./chunk-HAGFOTED-Dykk1LyE.cjs"),a=require("./chunk-ZAUX2LTX-BwjEPfG0.cjs"),o=require("./chunk-WQQL4CDK-TvwGUFeE.cjs"),s=require("./graphlib-BaETKKSa.cjs"),c=require("./chunk-HNE4Q36P-C-j5Nn9f.cjs");function l(e,{edgePathsClass:t=`edges edgePaths`}={}){let n=e.insert(`g`).attr(`class`,`root`);return{clusters:n.insert(`g`).attr(`class`,`clusters`),edgePaths:n.insert(`g`).attr(`class`,t),edgeLabels:n.insert(`g`).attr(`class`,`edgeLabels`),nodes:n.insert(`g`).attr(`class`,`nodes`),rootGroups:n}}e.n(l,`createLayoutElementGroups`);async function u(e,t,n){if(t.label){let{shapeSvg:r,bbox:a}=await i.o(e,n===void 0?t:{...t,width:n});t.labelBBox={width:a.width,height:a.height},r.remove()}else t.labelBBox={width:0,height:0}}e.n(u,`measureGroupLabel`);async function d(e,t,n){let r=await a.r(e,t,n),i=r.node()?.getBBox()??{width:0,height:0};return t.width=i.width,t.height=i.height,r}e.n(d,`insertMeasuredNode`);function f(e,t,n){let r=e,i=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||i.has(r.parentId))break;i.add(r.parentId),r=t.get(r.parentId)}return n}e.n(f,`resolveNodeDir`);async function p(e,t,r={}){let i=new s.t({multigraph:!0,compound:!0}),a=[...t.edges],c=n.b(),p=l(e),{edgeLabels:m,nodes:h}=p,g=new Map,_=new Map(t.nodes.map(e=>[e.id,e])),v=t.direction,y=e.node()!=null;await Promise.all(t.nodes.map(async e=>{if(e.isGroup){if(y){let t=r.unwrapGroupLabels&&e.labelType!==`markdown`;await u(h,e,t?1/0:void 0)}i.setNode(e.id,{...e})}else{if(y){let t=await d(h,e,{config:c,dir:f(e,_,v)});g.set(e.id,t)}i.setNode(e.id,{...e})}}));for(let e of a)y&&o.r(e)&&await o.a(m,e),i.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await Promise.resolve().then(()=>require("./sizeCapture-INFHLROL-bJ2ZX4Du.cjs"));n(e,t)}return{graph:i,groups:p,nodeElements:g}}e.n(p,`createGraphWithElements`);var m=new Map,h=new Map,g=new Map,_=e.n(()=>{h.clear(),g.clear(),m.clear()},`clear`),v=e.n((e,n)=>{let r=h.get(n)||[];return t.m.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),y=e.n((e,n)=>{let r=h.get(n)||[];return t.m.info(`Descendants of `,n,` is `,r),t.m.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||v(e.v,n)||v(e.w,n)||r.includes(e.w):(t.m.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),b=e.n((e,n,r,i)=>{t.m.debug(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.m.debug(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)b(a,n,r,i);else{let o=n.node(a);t.m.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.m.debug(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.m.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.m.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.m.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.m.debug(`Copying Edges`,s),s.forEach(a=>{t.m.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.m.info(`Edge data`,o,i);try{y(a,i)?(t.m.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.m.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):t.m.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.m.error(e)}})}t.m.debug(`Removing node`,a),n.removeNode(a)})},`copy`),x=e.n((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)g.set(i,e),r=[...r,...x(i,t)];return r},`extractDescendants`),S=e.n((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),C=e.n((e,n,r)=>{let i=n.children(e);if(t.m.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=C(e,n,r),i=S(n,r,t);if(t){if(i.length>0)a=t;else return t}}return a},`findNonClusterChild`),w=e.n(e=>!m.has(e)||!m.get(e).externalConnections?e:m.has(e)?m.get(e).id:e,`getAnchorId`),T=e.n((e,n)=>{if(!e||n>10){t.m.debug(`Opting out, no graph `);return}t.m.debug(`Opting in, graph `),e.nodes().forEach(function(n){e.children(n).length>0&&(t.m.debug(`Cluster identified`,n,` Replacement id in edges: `,C(n,e,n)),h.set(n,x(n,e)),m.set(n,{id:C(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.m.debug(`Cluster identified`,n,h),i.forEach(e=>{v(e.v,n)^v(e.w,n)&&(t.m.debug(`Edge: `,e,` leaves cluster `,n),t.m.debug(`Descendants of XXX `,n,`: `,h.get(n)),m.get(n).externalConnections=!0)})):t.m.debug(`Not a cluster `,n,h)});for(let t of m.keys()){let n=m.get(t).id,r=e.parent(n);r!==t&&m.has(r)&&!m.get(r).externalConnections&&(m.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&m.get(t)?.externalConnections&&i&&k(e,n,t)){let r=A(e,t,e.parent(n));r&&(m.get(t).id=r)}}e.edges().forEach(function(n){let r=e.edge(n);t.m.debug(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.m.debug(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.m.debug(`Fix XXX`,m,`ids:`,n.v,n.w,`Translating: `,m.get(n.v),` --- `,m.get(n.w)),m.get(n.v)||m.get(n.w)){if(t.m.debug(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=w(n.v),a=w(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);m.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);m.get(t).externalConnections=!0,r.toCluster=n.w}t.m.debug(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),E(e,0),t.m.trace(m)},`adjustClustersAndEdges`),E=e.n((e,n)=>{if(n>10){t.m.error(`Bailing out`);return}let r=e.nodes(),i=!1;for(let t of r){let n=e.children(t);i||=n.length>0}if(!i){t.m.debug(`Done, no node has children`,e.nodes());return}t.m.debug(`Nodes = `,r,n);for(let i of r)if(t.m.debug(`Extracting node`,i,m,m.has(i)&&!m.get(i).externalConnections,!e.parent(i),e.node(i),e.children(`D`),` Depth `,n),!m.has(i))t.m.debug(`Not a cluster`,i,n);else if(!m.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.m.debug(`Cluster without external connections, without a parent and with children`,i,n);let r=e.graph().rankdir===`TB`?`LR`:`TB`;m.get(i)?.clusterData?.dir&&(r=m.get(i).clusterData.dir,t.m.debug(`Fixing dir`,m.get(i).clusterData.dir,r));let a=new s.t({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});b(i,e,a,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:m.get(i).clusterData,label:m.get(i).label,graph:a})}else t.m.debug(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!m.get(i).externalConnections,` no parent: `,!e.parent(i),` children `,e.children(i)&&e.children(i).length>0,e.children(`D`),n),t.m.debug(m);r=e.nodes(),t.m.debug(`New list of nodes`,r);for(let i of r){let r=e.node(i);t.m.debug(` Now next level`,i,r),r?.clusterNode&&E(r.graph,n+1)}},`extractor`),D=e.n((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=D(e,e.children(t));n=[...n,...r]}),n},`sorter`),O=e.n(e=>D(e,e.children()),`sortNodesByHierarchy`),k=e.n((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=m.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),A=e.n((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||v(i,n))continue;let r=C(i,e,t);if(r&&!k(e,r,t))return r}return null},`findSafeAnchorNode`);function j({prepareLayout:t,measureLayout:n,runLayoutCore:r,paintLayout:i,afterPaint:a,paintOptions:s}){let c=n??N;return e.n(async function(e,n,l,u){let d=n.select(`g`);(l?.insertMarkers??o.c)(d,e.markers,e.type,e.diagramId),M();let f={element:d,helpers:l,options:u};f.preparedLayout=await t?.(e,f);let p=await c(e,f),m=await r(e,f),h={...f,measure:p};i?await i(e,h,m):await P(e,h,s),await a?.(e,h,m)},`render`)}e.n(j,`createCommonLayoutRenderer`);function M(){a.t(),o.t(),c.t(),_()}e.n(M,`clearLayoutRenderState`);async function N(e,{element:t},n){return await p(t,e,n)}e.n(N,`defaultMeasureLayout`);async function P(e,t,n={}){let{measure:r}=t,{groups:i}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await F(i,r,t,n);let a=L(e.nodes);for(let r of e.edges)R(r,n)||await z(i,r,a,e,n,t)}e.n(P,`paintLayoutData`);async function F(e,t,n,r){t.clusterNode?a.i(t):I(t,n,r)?await c.r(e.clusters,t):a.i(t)}e.n(F,`paintLayoutNode`);function I(e,t,n){return e.isGroup===!0&&(n.isCluster?.(e,t)??!0)}e.n(I,`shouldPaintAsCluster`);function L(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}e.n(L,`buildNodeLookup`);function R(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}e.n(R,`shouldSkipPaintEdge`);async function z(e,t,n,r,i,a){let s=o.i(e.edgePaths,{...t},i.clusterDb??new Map,r.type,B(t.start,t,n,a,i),B(t.end,t,n,a,i),r.diagramId,V(t,i),r.layoutAlgorithm);o.r(t)&&(o.n.has(t.id)||await o.a(e.edgeLabels,t),H(t,s))}e.n(z,`paintLayoutEdge`);function B(e,t,n,r,i){return i.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}e.n(B,`getRenderedNode`);function V(e,t){return typeof t.skipIntersect==`function`?t.skipIntersect(e):t.skipIntersect??!1}e.n(V,`shouldSkipIntersect`);function H(e,t){let r=t?.updatedPath??t?.originalPath,i=n.y(),{subGraphTitleTotalMargin:s}=a.n({flowchart:i.flowchart??{}});if(e.label){let n=o.n.get(e.id),{x:r,y:i}=o.u(e,t);n.attr(`transform`,`translate(${r}, ${i+s/2})`)}for(let[t,n]of[[`startLeft`,e.startLabelLeft],[`startRight`,e.startLabelRight],[`endLeft`,e.endLabelLeft],[`endRight`,e.endLabelRight]])if(n){let{x:n,y:i}=W(e,t,r);o.d.get(e.id)[t].attr(`transform`,`translate(${n}, ${i})`)}}e.n(H,`positionRenderedEdgeLabel`);var U={startLeft:`start_left`,startRight:`start_right`,endLeft:`end_left`,endRight:`end_right`};function W(e,t,n){let i=e.terminalLabelCenters?.[t];if(i)return{...i};if(!n)return{x:e.x,y:e.y};let a=t.startsWith(`start`)?e.arrowTypeStart:e.arrowTypeEnd;return r._.calcTerminalLabelPosition(a?10:0,U[t],n)}e.n(W,`terminalLabelTranslate`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}});
@@ -1,13 +1,13 @@
1
1
  import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
2
  import { m as t } from "./src-Dkp7vqs8.js";
3
- import { b as n, y as r } from "./chunk-VPRB5NB3-DJh7spRO.js";
4
- import { _ as i } from "./chunk-3YJQHVM4-BNbfg-7y.js";
5
- import { o as a } from "./chunk-XC4XBNZT-CSiWBPH9.js";
6
- import { i as o, n as s, r as c, t as l } from "./chunk-DBDB3WZW-DpEOsLsQ.js";
7
- import { a as u, c as d, d as f, i as p, n as m, r as h, t as g, u as ee } from "./chunk-2BW5OAIV-DWtmlmt_.js";
3
+ import { b as n, y as r } from "./chunk-DSNLSHJZ-Bicto10E.js";
4
+ import { _ as i } from "./chunk-7S6XSTFO-DV8etStf.js";
5
+ import { o as a } from "./chunk-HAGFOTED-BjDmRfgG.js";
6
+ import { i as o, n as s, r as c, t as l } from "./chunk-ZAUX2LTX-COHXRsvU.js";
7
+ import { a as u, c as d, d as f, i as p, n as m, r as h, t as g, u as ee } from "./chunk-WQQL4CDK-l3Yf4SAX.js";
8
8
  import { t as _ } from "./graphlib-CQa_B3rm.js";
9
- import { r as v, t as y } from "./chunk-NTY3LDVX-CvRtOCpm.js";
10
- //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-FVRAUYC3.mjs
9
+ import { r as v, t as y } from "./chunk-HNE4Q36P-5u7dvjgt.js";
10
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZCHMQSOR.mjs
11
11
  function b(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
12
12
  let n = e.insert("g").attr("class", "root");
13
13
  return {
@@ -306,7 +306,7 @@ function J(e, t) {
306
306
  }
307
307
  e(J, "shouldSkipPaintEdge");
308
308
  async function Y(e, t, n, r, i, a) {
309
- let o = p(e.edgePaths, { ...t }, i.clusterDb ?? /* @__PURE__ */ new Map(), r.type, X(t.start, t, n, a, i), X(t.end, t, n, a, i), r.diagramId, Z(t, i));
309
+ let o = p(e.edgePaths, { ...t }, i.clusterDb ?? /* @__PURE__ */ new Map(), r.type, X(t.start, t, n, a, i), X(t.end, t, n, a, i), r.diagramId, Z(t, i), r.layoutAlgorithm);
310
310
  h(t) && (m.has(t.id) || await u(e.edgeLabels, t), Q(t, o));
311
311
  }
312
312
  e(Y, "paintLayoutEdge");
@@ -1,21 +1,21 @@
1
1
  import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
2
  import { m as t, p as n } from "./src-Dkp7vqs8.js";
3
- import { C as r, H as i, M as a, U as o, _ as s, a as c, b as l, et as u, q as d, s as f, v as p, z as m } from "./chunk-VPRB5NB3-DJh7spRO.js";
4
- import { _ as h, c as g } from "./chunk-3YJQHVM4-BNbfg-7y.js";
5
- import "./chunk-HJ2JQQFS-CgYTXthn.js";
6
- import "./chunk-E2ZNV5FY-Bu796yUY.js";
3
+ import { C as r, H as i, M as a, U as o, _ as s, a as c, b as l, et as u, q as d, s as f, v as p, z as m } from "./chunk-DSNLSHJZ-Bicto10E.js";
4
+ import { _ as h, c as g } from "./chunk-7S6XSTFO-DV8etStf.js";
5
+ import "./chunk-YZO67HFG-DWHo0c6-.js";
6
+ import "./chunk-AQDTSKZB-CUCC855j.js";
7
7
  import { t as _ } from "./chunk-5VM5RSS4-BMfgdMFU.js";
8
- import "./chunk-4EA7E6EY-B5P7n2an.js";
8
+ import "./chunk-UHW7PFBP-NbzzxkEP.js";
9
9
  import { i as v, n as y, o as b, r as x } from "./chunk-J5ZVWO5B-DEP-pB-1.js";
10
- import "./chunk-XC4XBNZT-CSiWBPH9.js";
11
- import "./chunk-DBDB3WZW-DpEOsLsQ.js";
12
- import "./chunk-2BW5OAIV-DWtmlmt_.js";
13
- import { t as S } from "./chunk-7TKQ45FW-CD1KuemG.js";
10
+ import "./chunk-HAGFOTED-BjDmRfgG.js";
11
+ import "./chunk-ZAUX2LTX-COHXRsvU.js";
12
+ import "./chunk-WQQL4CDK-l3Yf4SAX.js";
13
+ import { t as S } from "./chunk-55XCU76K-CADZXRVb.js";
14
14
  import { t as C } from "./chunk-XXDRQBXY-IzhWXllg.js";
15
- import { t as w } from "./chunk-KQW6MTUR-c0XOjr_c.js";
16
- import "./chunk-NTY3LDVX-CvRtOCpm.js";
17
- import { a as T, i as E } from "./mermaid.core-BJkDCzqA.js";
18
- //#region ../node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-K4WV4PDN.mjs
15
+ import { t as w } from "./chunk-VQ5W62QI-D3c9tcDC.js";
16
+ import "./chunk-HNE4Q36P-5u7dvjgt.js";
17
+ import { a as T, i as E } from "./mermaid.core-BxQmR6RW.js";
18
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-4MYWR3UA.mjs
19
19
  var D = (function() {
20
20
  var t = /* @__PURE__ */ e(function(e, t, n, r) {
21
21
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
@@ -1,4 +1,4 @@
1
- const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-VPRB5NB3-CT204jN6.cjs"),r=require("./chunk-3YJQHVM4-ChvNe1M8.cjs");require("./chunk-HJ2JQQFS-DnrogIdt.cjs"),require("./chunk-E2ZNV5FY-DIRTchKA.cjs");const i=require("./chunk-5VM5RSS4-CwDmQ9T_.cjs");require("./chunk-4EA7E6EY-3OELTJ93.cjs");const a=require("./chunk-J5ZVWO5B-CK5HGA-t.cjs");require("./chunk-XC4XBNZT-BTUjiQhE.cjs"),require("./chunk-DBDB3WZW-DSRcln4l.cjs"),require("./chunk-2BW5OAIV-FkhgcL6B.cjs");const o=require("./chunk-7TKQ45FW-Djscho_M.cjs"),s=require("./chunk-XXDRQBXY-yMT3rT5Y.cjs"),c=require("./chunk-KQW6MTUR-C_XQxsme.cjs");require("./chunk-NTY3LDVX-DBVRlnMJ.cjs");const l=require("./mermaid.core-4MZ-Iwu7.cjs");var u=(function(){var t=e.n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,18],r=[1,19],i=[1,20],a=[1,41],o=[1,26],s=[1,42],c=[1,24],l=[1,25],u=[1,32],d=[1,33],f=[1,34],p=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],ee=[1,63],P=[1,64],F=[1,8,9,41],te=[1,77],I=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],L=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],R=[13,60,86,100,102,103],z=[13,60,73,74,86,100,102,103],ne=[13,60,68,69,70,71,72,86,100,102,103],B=[1,103],V=[1,121],H=[1,117],U=[1,113],W=[1,119],G=[1,114],K=[1,115],q=[1,116],J=[1,118],Y=[1,120],re=[22,50,60,61,82,86,87,88,89,90],ie=[1,128],X=[12,39],ae=[1,8,9,39,41,44,46],Z=[1,8,9,22],oe=[1,153],se=[1,8,9,61],Q=[1,8,9,22,50,60,61,82,86,87,88,89,90],ce={trace:e.n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`ANNOTATION_START`,47:`ANNOTATION_END`,48:`CLASS`,50:`SPACE`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:e.n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 36:this.$=r.addNamespace(a[s]);break;case 37:this.$=r.addNamespace(a[s-1],a[s]);break;case 38:this.$=[[a[s]],[]];break;case 39:this.$=[[a[s-1]],[]];break;case 40:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 41:this.$=[[],[a[s]]];break;case 42:this.$=[[],[a[s-1]]];break;case 43:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=a[s];break;case 48:r.setCssClass(a[s-2],a[s]);break;case 49:r.addMembers(a[s-3],a[s-1]);break;case 51:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 52:r.addAnnotation(a[s-3],a[s-1]);break;case 53:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 54:r.addAnnotation(a[s-5],a[s-3]);break;case 55:this.$=a[s],r.addClass(a[s]);break;case 56:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 60:r.addAnnotation(a[s],a[s-2]);break;case 61:case 74:this.$=[a[s]];break;case 62:a[s].push(a[s-1]),this.$=a[s];break;case 63:break;case 64:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 65:break;case 66:break;case 67:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 68:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 69:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 70:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 71:this.$=r.addNote(a[s],a[s-1]);break;case 72:this.$=r.addNote(a[s]);break;case 73:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 75:this.$=a[s-2].concat([a[s]]);break;case 76:r.setDirection(`TB`);break;case 77:r.setDirection(`BT`);break;case 78:r.setDirection(`RL`);break;case 79:r.setDirection(`LR`);break;case 80:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 81:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 82:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 83:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 84:this.$=r.relationType.AGGREGATION;break;case 85:this.$=r.relationType.EXTENSION;break;case 86:this.$=r.relationType.COMPOSITION;break;case 87:this.$=r.relationType.DEPENDENCY;break;case 88:this.$=r.relationType.LOLLIPOP;break;case 89:this.$=r.lineType.LINE;break;case 90:this.$=r.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 92:case 98:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 93:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 94:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 95:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 96:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 99:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 101:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 102:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 103:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 104:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 105:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 106:r.setCssClass(a[s-1],a[s]);break;case 107:this.$=[a[s]];break;case 108:a[s-2].push(a[s]),this.$=a[s-2];break;case 110:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:n,35:r,37:i,38:22,42:a,43:23,46:o,48:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(D,[2,5],{8:[1,48]}),{8:[1,49]},t(O,[2,19],{22:[1,50]}),t(O,[2,21]),t(O,[2,22]),t(O,[2,23]),t(O,[2,24]),t(O,[2,25]),t(O,[2,26]),t(O,[2,27]),t(O,[2,28]),t(O,[2,29]),t(O,[2,30]),{34:[1,51]},{36:[1,52]},t(O,[2,33]),t(O,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:ee,74:P}),{39:[1,65]},t(F,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(O,[2,65]),t(O,[2,66]),{16:69,60:p,86:C,100:w,102:T},{16:39,17:40,19:70,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:72,60:p,86:C,100:w,102:T,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:C,100:w,102:T,103:E},{13:te,55:76},{58:78,60:[1,79]},t(O,[2,76]),t(O,[2,77]),t(O,[2,78]),t(O,[2,79]),t(I,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:C,100:w,102:T,103:E}),t(I,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:87,60:p,86:C,100:w,102:T,103:E},t(L,[2,133]),t(L,[2,134]),t(L,[2,135]),t(L,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:n,35:r,37:i,42:a,46:o,48:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:n,35:r,37:i,38:22,42:a,43:23,46:o,48:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},t(O,[2,20]),t(O,[2,31]),t(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:C,100:w,102:T,103:E},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:ee,74:P},t(O,[2,64]),{67:93,73:ee,74:P},t(R,[2,83],{66:94,68:k,69:A,70:j,71:M,72:N}),t(z,[2,84]),t(z,[2,85]),t(z,[2,86]),t(z,[2,87]),t(z,[2,88]),t(ne,[2,89]),t(ne,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:a,43:23,48:s,54:u,56:d},{16:100,60:p,86:C,100:w,102:T},{41:[1,102],45:101,51:B},{16:104,60:p,86:C,100:w,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:V,50:H,59:110,60:U,82:W,84:111,85:112,86:G,87:K,88:q,89:J,90:Y},{60:[1,122]},{13:te,55:123},t(F,[2,72]),t(F,[2,138]),{22:V,50:H,59:124,60:U,61:[1,125],82:W,84:111,85:112,86:G,87:K,88:q,89:J,90:Y},t(re,[2,74]),{16:39,17:40,19:126,60:p,86:C,100:w,102:T,103:E},t(I,[2,16]),t(I,[2,17]),t(I,[2,18]),{11:127,12:ie,39:[2,36]},t(X,[2,9],{16:85,17:86,15:130,18:[1,129],60:p,86:C,100:w,102:T,103:E}),t(X,[2,10]),t(ae,[2,55],{11:131,12:ie}),t(D,[2,7]),{9:[1,132]},t(Z,[2,67]),{16:39,17:40,19:133,60:p,86:C,100:w,102:T,103:E},{13:[1,135],16:39,17:40,19:134,60:p,86:C,100:w,102:T,103:E},t(R,[2,82],{66:136,68:k,69:A,70:j,71:M,72:N}),t(R,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:a,43:23,48:s,54:u,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(F,[2,48],{39:[1,142]}),{41:[1,143]},t(F,[2,50]),{41:[2,61],45:144,51:B},{47:[1,145]},{16:39,17:40,19:146,60:p,86:C,100:w,102:T,103:E},t(O,[2,91],{13:[1,147]}),t(O,[2,93],{13:[1,149],77:[1,148]}),t(O,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(O,[2,105],{61:oe}),t(se,[2,107],{85:154,22:V,50:H,60:U,82:W,86:G,87:K,88:q,89:J,90:Y}),t(Q,[2,109]),t(Q,[2,111]),t(Q,[2,112]),t(Q,[2,113]),t(Q,[2,114]),t(Q,[2,115]),t(Q,[2,116]),t(Q,[2,117]),t(Q,[2,118]),t(Q,[2,119]),t(O,[2,106]),t(F,[2,71]),t(O,[2,73],{61:oe}),{60:[1,155]},t(I,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:p,86:C,100:w,102:T,103:E},t(X,[2,12]),t(ae,[2,56]),{1:[2,4]},t(Z,[2,69]),t(Z,[2,68]),{16:39,17:40,19:158,60:p,86:C,100:w,102:T,103:E},t(R,[2,80]),t(F,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:a,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:a,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:a,43:23,48:s,54:u,56:d},{45:163,51:B},t(F,[2,49]),{41:[2,62]},t(F,[2,52],{39:[1,164]}),t(O,[2,60]),t(O,[2,92]),t(O,[2,94]),t(O,[2,95],{77:[1,165]}),t(O,[2,98]),t(O,[2,99],{13:[1,166]}),t(O,[2,101],{13:[1,168],77:[1,167]}),{22:V,50:H,60:U,82:W,84:169,85:112,86:G,87:K,88:q,89:J,90:Y},t(Q,[2,110]),t(re,[2,75]),{14:[1,170]},t(X,[2,11]),t(Z,[2,70]),t(F,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:B},t(O,[2,96]),t(O,[2,100]),t(O,[2,102]),t(O,[2,103],{77:[1,174]}),t(se,[2,108],{85:154,22:V,50:H,60:U,82:W,86:G,87:K,88:q,89:J,90:Y}),t(ae,[2,8]),t(F,[2,51]),{41:[1,175]},t(F,[2,54]),t(O,[2,104]),t(F,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:e.n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e.n(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e.n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e.n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-DSNLSHJZ-DZO9xahH.cjs"),r=require("./chunk-7S6XSTFO-DJ37SdG5.cjs");require("./chunk-YZO67HFG-CLf5aoHk.cjs"),require("./chunk-AQDTSKZB-DElrkKED.cjs");const i=require("./chunk-5VM5RSS4-CwDmQ9T_.cjs");require("./chunk-UHW7PFBP-SZ8KvGM0.cjs");const a=require("./chunk-J5ZVWO5B-CK5HGA-t.cjs");require("./chunk-HAGFOTED-Dykk1LyE.cjs"),require("./chunk-ZAUX2LTX-BwjEPfG0.cjs"),require("./chunk-WQQL4CDK-TvwGUFeE.cjs");const o=require("./chunk-55XCU76K-d9D4PS_7.cjs"),s=require("./chunk-XXDRQBXY-yMT3rT5Y.cjs"),c=require("./chunk-VQ5W62QI-CsW6i5Ev.cjs");require("./chunk-HNE4Q36P-C-j5Nn9f.cjs");const l=require("./mermaid.core-2PafqU96.cjs");var u=(function(){var t=e.n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,18],r=[1,19],i=[1,20],a=[1,41],o=[1,26],s=[1,42],c=[1,24],l=[1,25],u=[1,32],d=[1,33],f=[1,34],p=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],ee=[1,63],P=[1,64],F=[1,8,9,41],te=[1,77],I=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],L=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],R=[13,60,86,100,102,103],z=[13,60,73,74,86,100,102,103],ne=[13,60,68,69,70,71,72,86,100,102,103],B=[1,103],V=[1,121],H=[1,117],U=[1,113],W=[1,119],G=[1,114],K=[1,115],q=[1,116],J=[1,118],Y=[1,120],re=[22,50,60,61,82,86,87,88,89,90],ie=[1,128],X=[12,39],ae=[1,8,9,39,41,44,46],Z=[1,8,9,22],oe=[1,153],se=[1,8,9,61],Q=[1,8,9,22,50,60,61,82,86,87,88,89,90],ce={trace:e.n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`ANNOTATION_START`,47:`ANNOTATION_END`,48:`CLASS`,50:`SPACE`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:e.n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 36:this.$=r.addNamespace(a[s]);break;case 37:this.$=r.addNamespace(a[s-1],a[s]);break;case 38:this.$=[[a[s]],[]];break;case 39:this.$=[[a[s-1]],[]];break;case 40:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 41:this.$=[[],[a[s]]];break;case 42:this.$=[[],[a[s-1]]];break;case 43:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=a[s];break;case 48:r.setCssClass(a[s-2],a[s]);break;case 49:r.addMembers(a[s-3],a[s-1]);break;case 51:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 52:r.addAnnotation(a[s-3],a[s-1]);break;case 53:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 54:r.addAnnotation(a[s-5],a[s-3]);break;case 55:this.$=a[s],r.addClass(a[s]);break;case 56:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 60:r.addAnnotation(a[s],a[s-2]);break;case 61:case 74:this.$=[a[s]];break;case 62:a[s].push(a[s-1]),this.$=a[s];break;case 63:break;case 64:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 65:break;case 66:break;case 67:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 68:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 69:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 70:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 71:this.$=r.addNote(a[s],a[s-1]);break;case 72:this.$=r.addNote(a[s]);break;case 73:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 75:this.$=a[s-2].concat([a[s]]);break;case 76:r.setDirection(`TB`);break;case 77:r.setDirection(`BT`);break;case 78:r.setDirection(`RL`);break;case 79:r.setDirection(`LR`);break;case 80:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 81:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 82:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 83:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 84:this.$=r.relationType.AGGREGATION;break;case 85:this.$=r.relationType.EXTENSION;break;case 86:this.$=r.relationType.COMPOSITION;break;case 87:this.$=r.relationType.DEPENDENCY;break;case 88:this.$=r.relationType.LOLLIPOP;break;case 89:this.$=r.lineType.LINE;break;case 90:this.$=r.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 92:case 98:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 93:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 94:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 95:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 96:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 99:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 101:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 102:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 103:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 104:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 105:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 106:r.setCssClass(a[s-1],a[s]);break;case 107:this.$=[a[s]];break;case 108:a[s-2].push(a[s]),this.$=a[s-2];break;case 110:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:n,35:r,37:i,38:22,42:a,43:23,46:o,48:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(D,[2,5],{8:[1,48]}),{8:[1,49]},t(O,[2,19],{22:[1,50]}),t(O,[2,21]),t(O,[2,22]),t(O,[2,23]),t(O,[2,24]),t(O,[2,25]),t(O,[2,26]),t(O,[2,27]),t(O,[2,28]),t(O,[2,29]),t(O,[2,30]),{34:[1,51]},{36:[1,52]},t(O,[2,33]),t(O,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:ee,74:P}),{39:[1,65]},t(F,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(O,[2,65]),t(O,[2,66]),{16:69,60:p,86:C,100:w,102:T},{16:39,17:40,19:70,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:72,60:p,86:C,100:w,102:T,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:C,100:w,102:T,103:E},{13:te,55:76},{58:78,60:[1,79]},t(O,[2,76]),t(O,[2,77]),t(O,[2,78]),t(O,[2,79]),t(I,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:C,100:w,102:T,103:E}),t(I,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:87,60:p,86:C,100:w,102:T,103:E},t(L,[2,133]),t(L,[2,134]),t(L,[2,135]),t(L,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:n,35:r,37:i,42:a,46:o,48:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:n,35:r,37:i,38:22,42:a,43:23,46:o,48:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},t(O,[2,20]),t(O,[2,31]),t(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:C,100:w,102:T,103:E},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:ee,74:P},t(O,[2,64]),{67:93,73:ee,74:P},t(R,[2,83],{66:94,68:k,69:A,70:j,71:M,72:N}),t(z,[2,84]),t(z,[2,85]),t(z,[2,86]),t(z,[2,87]),t(z,[2,88]),t(ne,[2,89]),t(ne,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:a,43:23,48:s,54:u,56:d},{16:100,60:p,86:C,100:w,102:T},{41:[1,102],45:101,51:B},{16:104,60:p,86:C,100:w,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:V,50:H,59:110,60:U,82:W,84:111,85:112,86:G,87:K,88:q,89:J,90:Y},{60:[1,122]},{13:te,55:123},t(F,[2,72]),t(F,[2,138]),{22:V,50:H,59:124,60:U,61:[1,125],82:W,84:111,85:112,86:G,87:K,88:q,89:J,90:Y},t(re,[2,74]),{16:39,17:40,19:126,60:p,86:C,100:w,102:T,103:E},t(I,[2,16]),t(I,[2,17]),t(I,[2,18]),{11:127,12:ie,39:[2,36]},t(X,[2,9],{16:85,17:86,15:130,18:[1,129],60:p,86:C,100:w,102:T,103:E}),t(X,[2,10]),t(ae,[2,55],{11:131,12:ie}),t(D,[2,7]),{9:[1,132]},t(Z,[2,67]),{16:39,17:40,19:133,60:p,86:C,100:w,102:T,103:E},{13:[1,135],16:39,17:40,19:134,60:p,86:C,100:w,102:T,103:E},t(R,[2,82],{66:136,68:k,69:A,70:j,71:M,72:N}),t(R,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:a,43:23,48:s,54:u,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(F,[2,48],{39:[1,142]}),{41:[1,143]},t(F,[2,50]),{41:[2,61],45:144,51:B},{47:[1,145]},{16:39,17:40,19:146,60:p,86:C,100:w,102:T,103:E},t(O,[2,91],{13:[1,147]}),t(O,[2,93],{13:[1,149],77:[1,148]}),t(O,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(O,[2,105],{61:oe}),t(se,[2,107],{85:154,22:V,50:H,60:U,82:W,86:G,87:K,88:q,89:J,90:Y}),t(Q,[2,109]),t(Q,[2,111]),t(Q,[2,112]),t(Q,[2,113]),t(Q,[2,114]),t(Q,[2,115]),t(Q,[2,116]),t(Q,[2,117]),t(Q,[2,118]),t(Q,[2,119]),t(O,[2,106]),t(F,[2,71]),t(O,[2,73],{61:oe}),{60:[1,155]},t(I,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:p,86:C,100:w,102:T,103:E},t(X,[2,12]),t(ae,[2,56]),{1:[2,4]},t(Z,[2,69]),t(Z,[2,68]),{16:39,17:40,19:158,60:p,86:C,100:w,102:T,103:E},t(R,[2,80]),t(F,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:a,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:a,43:23,48:s,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:a,43:23,48:s,54:u,56:d},{45:163,51:B},t(F,[2,49]),{41:[2,62]},t(F,[2,52],{39:[1,164]}),t(O,[2,60]),t(O,[2,92]),t(O,[2,94]),t(O,[2,95],{77:[1,165]}),t(O,[2,98]),t(O,[2,99],{13:[1,166]}),t(O,[2,101],{13:[1,168],77:[1,167]}),{22:V,50:H,60:U,82:W,84:169,85:112,86:G,87:K,88:q,89:J,90:Y},t(Q,[2,110]),t(re,[2,75]),{14:[1,170]},t(X,[2,11]),t(Z,[2,70]),t(F,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:B},t(O,[2,96]),t(O,[2,100]),t(O,[2,102]),t(O,[2,103],{77:[1,174]}),t(se,[2,108],{85:154,22:V,50:H,60:U,82:W,86:G,87:K,88:q,89:J,90:Y}),t(ae,[2,8]),t(F,[2,51]),{41:[1,175]},t(F,[2,54]),t(O,[2,104]),t(F,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:e.n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e.n(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e.n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e.n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};ce.lexer=(function(){return{EOF:1,parseError:e.n(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e.n(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e.n(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e.n(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e.n(function(){return this._more=!0,this},`more`),reject:e.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:e.n(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e.n(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e.n(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e.n(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -0,0 +1,71 @@
1
+ const e=require("./conversationHistory-DN1r7WZT.cjs"),t=require("./lib-BDkAiWI9.cjs"),n=require("./download-U7JEZ6c9.cjs"),r=require("./mermaidToImage-CSR5Vyvs.cjs"),i=require("./loadReferencedImage-CHTgZKAP.cjs");var a=/["&'<>`]/g,o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,c=/[|\\{}()[\]^$+*?.]/g,l=new WeakMap;function u(e,t){if(e=e.replace(t.subset?d(t.subset):a,r),t.subset||t.escapeOnly)return e;return e.replace(o,n).replace(s,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function d(e){let t=l.get(e);return t||(t=ee(e),l.set(e,t)),t}function ee(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(c,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var f=/[\dA-Fa-f]/;function p(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!f.test(String.fromCharCode(t))?r:r+`;`}var m=/\d/;function te(e,t,n){let r=`&#`+String(e);return n&&t&&!m.test(String.fromCharCode(t))?r:r+`;`}var ne=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),h={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},re=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],g={}.hasOwnProperty,_={},v;for(v in h)g.call(h,v)&&(_[h[v]]=v);var y=/[^\dA-Za-z]/;function b(e,t,n,r){let i=String.fromCharCode(e);if(g.call(_,i)){let e=_[i],a=`&`+e;return n&&ne.includes(e)&&!re.includes(e)&&(!r||t&&t!==61&&y.test(String.fromCharCode(t)))?a:a+`;`}return``}function ie(e,t,n){let r=p(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=b(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=te(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function x(e,t){return u(e,Object.assign({format:ie},t))}var ae=/^>|^->|<!--|-->|--!>|<!-$/g,oe=[`>`],se=[`<`,`>`];function ce(e,t,n,r){return r.settings.bogusComments?`<?`+x(e.value,Object.assign({},r.settings.characterReferences,{subset:oe}))+`>`:`<!--`+e.value.replace(ae,i)+`-->`;function i(e){return x(e,Object.assign({},r.settings.characterReferences,{subset:se}))}}function le(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}var S=w(1),C=w(-1),ue=[];function w(t){return n;function n(n,r,i){let a=n?n.children:ue,o=(r||0)+t,s=a[o];if(!i)for(;s&&e.v(s);)o+=t,s=a[o];return s}}var T={}.hasOwnProperty;function E(e){return t;function t(t,n,r){return T.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var D=E({body:A,caption:O,colgroup:O,dd:P,dt:N,head:O,html:k,li:M,optgroup:I,option:L,p:j,rp:F,rt:F,tbody:z,td:H,tfoot:B,th:H,thead:R,tr:V});function O(t,n,r){let i=S(r,n,!0);return!i||i.type!==`comment`&&!(i.type===`text`&&e.v(i.value.charAt(0)))}function k(e,t,n){let r=S(n,t);return!r||r.type!==`comment`}function A(e,t,n){let r=S(n,t);return!r||r.type!==`comment`}function j(e,t,n){let r=S(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||n.type!==`element`||n.tagName!==`a`&&n.tagName!==`audio`&&n.tagName!==`del`&&n.tagName!==`ins`&&n.tagName!==`map`&&n.tagName!==`noscript`&&n.tagName!==`video`}function M(e,t,n){let r=S(n,t);return!r||r.type===`element`&&r.tagName===`li`}function N(e,t,n){let r=S(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function P(e,t,n){let r=S(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function F(e,t,n){let r=S(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function I(e,t,n){let r=S(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function L(e,t,n){let r=S(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function R(e,t,n){let r=S(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function z(e,t,n){let r=S(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function B(e,t,n){return!S(n,t)}function V(e,t,n){let r=S(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function H(e,t,n){let r=S(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var U=E({body:pe,colgroup:me,head:fe,html:de,tbody:he});function de(e){let t=S(e,-1);return!t||t.type!==`comment`}function fe(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function pe(t){let n=S(t,-1,!0);return!n||n.type!==`comment`&&!(n.type===`text`&&e.v(n.value.charAt(0)))&&(n.type!==`element`||n.tagName!==`meta`&&n.tagName!==`link`&&n.tagName!==`script`&&n.tagName!==`style`&&n.tagName!==`template`)}function me(e,t,n){let r=C(n,t),i=S(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&D(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function he(e,t,n){let r=C(n,t),i=S(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&D(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var W={name:[[`
2
+ \f\r &/=>`.split(``),`
3
+ \f\r "&'/=>\``.split(``)],[`\0
4
+ \f\r "&'/<=>`.split(``),`\0
5
+ \f\r "&'/<=>\``.split(``)]],unquoted:[[`
6
+ \f\r &>`.split(``),`\0
7
+ \f\r "&'<=>\``.split(``)],[`\0
8
+ \f\r "&'<=>\``.split(``),`\0
9
+ \f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function ge(t,n,r,i){let a=i.schema,o=a.space!==`svg`&&i.settings.omitOptionalTags,s=a.space===`svg`?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase()),c=[],l;a.space===`html`&&t.tagName===`svg`&&(i.schema=e.g);let u=_e(i,t.properties),d=i.all(a.space===`html`&&t.tagName===`template`?t.content:t);return i.schema=a,d&&(s=!1),(u||!o||!U(t,n,r))&&(c.push(`<`,t.tagName,u?` `+u:``),s&&(a.space===`svg`||i.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!i.settings.tightSelfClosing||l===`/`||l&&l!==`"`&&l!==`'`)&&c.push(` `),c.push(`/`)),c.push(`>`)),c.push(d),!s&&(!o||!D(t,n,r))&&c.push(`</`+t.tagName+`>`),c.join(``)}function _e(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=ve(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function ve(n,r,i){let a=e._(n.schema,r),o=n.settings.allowParseErrors&&n.schema.space===`html`?0:1,s=+!n.settings.allowDangerousCharacters,c=n.quote,l;if(a.overloadedBoolean&&(i===a.attribute||i===``)?i=!0:(a.boolean||a.overloadedBoolean)&&(typeof i!=`string`||i===a.attribute||i===``)&&(i=!!i),i==null||i===!1||typeof i==`number`&&Number.isNaN(i))return``;let u=x(a.attribute,Object.assign({},n.settings.characterReferences,{subset:W.name[o][s]}));return i===!0||(i=Array.isArray(i)?(a.commaSeparated?e.y:e.m)(i,{padLeft:!n.settings.tightCommaSeparatedLists}):String(i),n.settings.collapseEmptyAttributes&&!i)?u:(n.settings.preferUnquoted&&(l=x(i,Object.assign({},n.settings.characterReferences,{attribute:!0,subset:W.unquoted[o][s]}))),l!==i&&(n.settings.quoteSmart&&t.r(i,c)>t.r(i,n.alternative)&&(c=n.alternative),l=c+x(i,Object.assign({},n.settings.characterReferences,{subset:(c===`'`?W.single:W.double)[o][s],attribute:!0}))+c),u+(l&&`=`+l))}var ye=[`<`,`&`];function G(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:x(e.value,Object.assign({},r.settings.characterReferences,{subset:ye}))}function be(e,t,n,r){return r.settings.allowDangerousHtml?e.value:G(e,t,n,r)}function xe(e,t,n,r){return r.all(e)}var Se=e.u(`type`,{invalid:Ce,unknown:we,handlers:{comment:ce,doctype:le,element:ge,raw:be,root:xe,text:G}});function Ce(e){throw Error("Expected node, not `"+e+"`")}function we(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var Te={},Ee={},De=[];function Oe(t,n){let r=n||Te,i=r.quote||`"`,a=i===`"`?`'`:`"`;if(i!==`"`&&i!==`'`)throw Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:ke,all:Ae,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||e.l,characterReferences:r.characterReferences||Ee,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space===`svg`?e.g:e.h,quote:i,alternative:a}.one(Array.isArray(t)?{type:`root`,children:t}:t,void 0,void 0)}function ke(e,t,n){return Se(e,t,n,this)}function Ae(e){let t=[],n=e&&e.children||De,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var je=class extends Error{bytes;budgetBytes;constructor(e,t){super(`the conversation's images come to ${Math.round(e/1024)} kB, over the ${Math.round(t/1024)} kB this export embeds`),this.name=`ExportBudgetError`,this.bytes=e,this.budgetBytes=t}},K=t.i().use(t.u).use(t.n).use(t.t).use(e.p,{allowDangerousHtml:!0}).use(e.c).use(e.s,e.o).use(e.d,{output:`mathml`});function Me(e){let t=e.properties?.className;return(Array.isArray(t)?t.map(String):typeof t==`string`?[t]:[]).find(e=>e.startsWith(`language-`))?.slice(9)}async function q(e,t,n){if(e.tagName===`img`){let r=typeof e.properties?.src==`string`?e.properties.src:``,i=r?await t.loadImage(r):void 0;if(!i)return{type:`element`,tagName:`em`,properties:{},children:[{type:`text`,value:`[image: ${typeof e.properties?.alt==`string`?e.properties.alt:r}]`}]};n.bytes+=i.bytes;let a=t.budgetBytes??41943040;if(n.bytes>a)throw new je(n.bytes,a);return{...e,properties:{...e.properties,src:i.dataUrl,loading:`lazy`}}}if(e.tagName===`pre`&&e.children?.length===1&&e.children[0].tagName===`code`){let r=e.children[0];if(Me(r)===`mermaid`&&t.renderDiagram){let e=J(r);n.diagrams+=1;let i=await t.renderDiagram(e,`pi-export-diagram-${n.diagrams}`);if(i)return{type:`element`,tagName:`figure`,properties:{className:[`diagram`]},children:[{type:`raw`,value:i}]}}}if(!e.children)return e;let r=[];for(let i of e.children)r.push(await q(i,t,n));return{...e,children:r}}function J(e){return e.type===`text`?e.value??``:(e.children??[]).map(J).join(``)}async function Y(e,n,r){return Oe(await q(await K.run(K.parse(t.g(e))),n,r),{allowDangerousHtml:!0})}function X(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}var Z=`:root {
10
+ --bg: #ffffff; --fg: #18181b; --muted: #71717a; --line: #e4e4e7;
11
+ --user-bg: #eff6ff; --tool-bg: #fafafa; --mark-bg: #fffbeb; --mark-fg: #92400e;
12
+ }
13
+ @media (prefers-color-scheme: dark) {
14
+ :root {
15
+ --bg: #18181b; --fg: #e4e4e7; --muted: #a1a1aa; --line: #3f3f46;
16
+ --user-bg: #1e293b; --tool-bg: #27272a; --mark-bg: #292524; --mark-fg: #fcd34d;
17
+ }
18
+ }
19
+ * { box-sizing: border-box; }
20
+ body {
21
+ margin: 0; padding: 2rem 1rem; background: var(--bg); color: var(--fg);
22
+ font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
23
+ }
24
+ main { max-width: 46rem; margin: 0 auto; }
25
+ header.doc { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 2rem; }
26
+ header.doc h1 { font-size: 1.4rem; margin: 0 0 0.35rem; }
27
+ header.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.15rem 0.75rem; margin: 0; font-size: 0.85rem; color: var(--muted); }
28
+ header.doc dt { font-weight: 600; }
29
+ header.doc dd { margin: 0; }
30
+ article { margin: 1.25rem 0; }
31
+ article > .who { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 0.3rem; }
32
+ article.user .body { background: var(--user-bg); border-radius: 0.6rem; padding: 0.6rem 0.9rem; }
33
+ article.reasoning .body { border-left: 2px solid var(--line); padding-left: 0.9rem; color: var(--muted); font-style: italic; }
34
+ details.tool { background: var(--tool-bg); border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.4rem 0.7rem; }
35
+ details.tool > summary { cursor: pointer; font-size: 0.85rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
36
+ details.tool pre { white-space: pre-wrap; word-break: break-word; }
37
+ .compaction { display: flex; align-items: center; gap: 0.6rem; margin: 2rem 0; color: var(--mark-fg); font-size: 0.8rem; }
38
+ .compaction::before, .compaction::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.4; }
39
+ .compaction-summary { background: var(--mark-bg); color: var(--fg); border-radius: 0.6rem; padding: 0.6rem 0.9rem; font-size: 0.9rem; }
40
+ pre { background: var(--tool-bg); border-radius: 0.5rem; padding: 0.7rem; overflow-x: auto; }
41
+ code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
42
+ img, svg { max-width: 100%; height: auto; }
43
+ figure.diagram { margin: 1rem 0; overflow-x: auto; }
44
+ table { border-collapse: collapse; width: 100%; }
45
+ th, td { border: 1px solid var(--line); padding: 0.3rem 0.5rem; text-align: left; }
46
+ blockquote { margin: 0.8rem 0; padding-left: 0.9rem; border-left: 3px solid var(--line); color: var(--muted); }
47
+ footer.doc { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 0.8rem; font-size: 0.75rem; color: var(--muted); }`,Q={user:`You`,assistant:`Agent`};async function Ne(e,t,n){switch(e.kind){case`user`:{let r=(e.images??[]).map(e=>`<img src="data:${X(e.mimeType)};base64,${e.data}" alt="attached image" />`).join(`
48
+ `),i=await Y(e.text,t,n);return`<article class="user"><p class="who">${Q.user}</p><div class="body">${i}${r}</div></article>`}case`assistant`:{let r=[];for(let i of e.blocks){let e=await Y(i.text,t,n);r.push(i.type===`thinking`?`<div class="body"><p class="who">reasoning</p>${e}</div>`:`<div class="body">${e}</div>`)}let i=e.errorMessage?`<p class="body"><em>${X(e.errorMessage)}</em></p>`:``;return`<article class="${e.blocks.every(e=>e.type===`thinking`)?`assistant reasoning`:`assistant`}"><p class="who">${Q.assistant}</p>${r.join(`
49
+ `)}${i}</article>`}case`tool`:{let t=typeof e.args==`string`?e.args:JSON.stringify(e.args??{},null,2),n=e.isError?` — failed`:``;return[`<article class="tool"><details class="tool">`,`<summary>${X(e.toolName)}${n}</summary>`,`<pre><code>${X(t)}</code></pre>`,`<pre><code>${X(e.output)}</code></pre>`,`</details></article>`].join(``)}case`custom`:return`<article class="custom"><p class="who">${X(e.customType)}</p><div class="body"><pre><code>${X(e.text)}</code></pre></div></article>`;case`compaction`:{let r=e.tokensBefore?` — ${Math.round(e.tokensBefore/1e3)}k tokens summarised`:``,i=e.summary?`<div class="compaction-summary">${await Y(e.summary,t,n)}</div>`:``;return`<div class="compaction">conversation compacted here${X(r)}</div>${i}`}}}async function Pe(e,t){let n={bytes:0,diagrams:0},r=[];for(let[i,a]of e.entries())r.push(await Ne(a,t,n)),t.onProgress?.(i+1,e.length);let{meta:i}=t,a=i.project?`${i.session} — ${i.project}`:i.session,o=[];return i.project&&o.push(`<dt>Project</dt><dd>${X(i.project)}</dd>`),o.push(`<dt>Session</dt><dd>${X(i.session)}</dd>`),i.model&&o.push(`<dt>Model</dt><dd>${X(i.model)}</dd>`),o.push(`<dt>Exported</dt><dd>${X(i.exportedAt.toISOString().slice(0,10))}</dd>`),o.push(`<dt>Messages</dt><dd>${e.length}</dd>`),`<!doctype html>
50
+ <html lang="en">
51
+ <head>
52
+ <meta charset="utf-8" />
53
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
54
+ <title>${X(a)}</title>
55
+ <style>
56
+ ${Z}
57
+ </style>
58
+ </head>
59
+ <body>
60
+ <main>
61
+ <header class="doc">
62
+ <h1>${X(a)}</h1>
63
+ <dl>${o.join(``)}</dl>
64
+ </header>
65
+ ${r.join(`
66
+ `)}
67
+ <footer class="doc">Exported from pi-outpost. This file is self-contained: it needs no network and no scripting.</footer>
68
+ </main>
69
+ </body>
70
+ </html>
71
+ `}var $=class extends Error{constructor(e){super(e),this.name=`ConversationExportError`}};async function Fe(e){let t=new Map;return async n=>{if(t.has(n))return t.get(n);let r=i.n(``,n,e.serverUrl,e.token,e.workspace),a;if(r!==void 0)try{let e=await fetch(r);if(e.ok){let t=new Uint8Array(await e.arrayBuffer());a={dataUrl:`data:${e.headers.get(`content-type`)??`application/octet-stream`};base64,${Ie(t)}`,bytes:t.byteLength}}}catch{a=void 0}return t.set(n,a),a}}function Ie(e){let t=``,n=32768;for(let r=0;r<e.length;r+=n)t+=String.fromCharCode(...e.subarray(r,r+n));return btoa(t)}async function Le(e,t){try{let{svg:n}=await r.a(e,t),{width:i,height:a}=r.o(n);return r.n(r.s(n,i,a))}catch{return}}function Re(e,t){let n=e.normalize(`NFKD`).replace(/[^\p{L}\p{N}\s-]/gu,``).trim().replace(/\s+/g,`-`).slice(0,60),r=t.toISOString().slice(0,10);return`${n||`conversation`}-${r}.html`}async function ze(t){if(t.items.length===0)throw new $(`there is no conversation to export yet`);let n=[];if(t.olderItems>0){if(!t.fetchOlderItems)throw new $(`this conversation has been compacted and the agent runtime cannot read back what it removed, so it cannot be exported in full`);try{n=await e.n(t.fetchOlderItems,e=>t.onProgress?.(`collecting`,e,t.olderItems))}catch(e){throw new $(`the earlier part of the conversation could not be read back, so nothing was exported: ${e instanceof Error?e.message:String(e)}`)}}return Pe([...n,...t.items],{meta:t.meta,loadImage:await Fe(t.connection),renderDiagram:Le,budgetBytes:t.budgetBytes??41943040,onProgress:(e,n)=>t.onProgress?.(`rendering`,e,n)})}async function Be(e){let t=await ze(e);n.t(new Blob([t],{type:`text/html;charset=utf-8`}),Re(e.meta.session,e.meta.exportedAt))}exports.exportConversation=Be;
@@ -1,11 +1,13 @@
1
- import { _ as e, c as t, d as n, g as r, h as i, l as a, m as o, n as s, o as c, p as l, s as u, u as d, v as f, y as p } from "./conversationHistory-BsL2Q-mL.js";
2
- import { _ as m, h, i as g, n as _, r as v, t as ee, u as te } from "./lib-BgQYQRfw.js";
3
- import { a as ne, i as re, n as ie, o as ae, r as oe } from "./loadReferencedImage-FGse7G4p.js";
1
+ import { _ as e, c as t, d as n, g as r, h as i, l as a, m as o, n as s, o as c, p as l, s as u, u as d, v as f, y as p } from "./conversationHistory-DwB6hasI.js";
2
+ import { g as m, i as h, n as g, r as _, t as ee, u as te } from "./lib-DILNlJGg.js";
3
+ import { t as ne } from "./download-DVJ5QY85.js";
4
+ import { a as re, n as ie, o as ae, s as oe } from "./mermaidToImage-DowDuCUe.js";
5
+ import { n as se } from "./loadReferencedImage-CkvnSeQi.js";
4
6
  //#region ../node_modules/stringify-entities/lib/core.js
5
- var se = /["&'<>`]/g, ce = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, y = /[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g, b = /[|\\{}()[\]^$+*?.]/g, x = /* @__PURE__ */ new WeakMap();
7
+ var ce = /["&'<>`]/g, v = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, y = /[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g, b = /[|\\{}()[\]^$+*?.]/g, x = /* @__PURE__ */ new WeakMap();
6
8
  function le(e, t) {
7
- if (e = e.replace(t.subset ? ue(t.subset) : se, r), t.subset || t.escapeOnly) return e;
8
- return e.replace(ce, n).replace(y, r);
9
+ if (e = e.replace(t.subset ? ue(t.subset) : ce, r), t.subset || t.escapeOnly) return e;
10
+ return e.replace(v, n).replace(y, r);
9
11
  function n(e, n, r) {
10
12
  return t.format((e.charCodeAt(0) - 55296) * 1024 + e.charCodeAt(1) - 56320 + 65536, r.charCodeAt(n + 2), t);
11
13
  }
@@ -511,7 +513,7 @@ function Re(t, n, r) {
511
513
  return r === !0 || (r = Array.isArray(r) ? (i.commaSeparated ? p : o)(r, { padLeft: !t.settings.tightCommaSeparatedLists }) : String(r), t.settings.collapseEmptyAttributes && !r) ? u : (t.settings.preferUnquoted && (l = A(r, Object.assign({}, t.settings.characterReferences, {
512
514
  attribute: !0,
513
515
  subset: G.unquoted[a][s]
514
- }))), l !== r && (t.settings.quoteSmart && v(r, c) > v(r, t.alternative) && (c = t.alternative), l = c + A(r, Object.assign({}, t.settings.characterReferences, {
516
+ }))), l !== r && (t.settings.quoteSmart && _(r, c) > _(r, t.alternative) && (c = t.alternative), l = c + A(r, Object.assign({}, t.settings.characterReferences, {
515
517
  subset: (c === "'" ? G.single : G.double)[a][s],
516
518
  attribute: !0
517
519
  })) + c), u + (l && "=" + l));
@@ -604,7 +606,7 @@ var Ze = class extends Error {
604
606
  constructor(e, t) {
605
607
  super(`the conversation's images come to ${Math.round(e / 1024)} kB, over the ${Math.round(t / 1024)} kB this export embeds`), this.name = "ExportBudgetError", this.bytes = e, this.budgetBytes = t;
606
608
  }
607
- }, q = g().use(te).use(_).use(ee).use(l, { allowDangerousHtml: !0 }).use(t).use(u, c).use(n, { output: "mathml" });
609
+ }, q = h().use(te).use(g).use(ee).use(l, { allowDangerousHtml: !0 }).use(t).use(u, c).use(n, { output: "mathml" });
608
610
  function Qe(e) {
609
611
  let t = e.properties?.className;
610
612
  return (Array.isArray(t) ? t.map(String) : typeof t == "string" ? [t] : []).find((e) => e.startsWith("language-"))?.slice(9);
@@ -744,7 +746,7 @@ async function nt(e) {
744
746
  let t = /* @__PURE__ */ new Map();
745
747
  return async (n) => {
746
748
  if (t.has(n)) return t.get(n);
747
- let r = ie("", n, e.serverUrl, e.token, e.workspace), i;
749
+ let r = se("", n, e.serverUrl, e.token, e.workspace), i;
748
750
  if (r !== void 0) try {
749
751
  let e = await fetch(r);
750
752
  if (e.ok) {
@@ -767,8 +769,8 @@ function rt(e) {
767
769
  }
768
770
  async function it(e, t) {
769
771
  try {
770
- let { svg: n } = await re(e, t), { width: r, height: i } = ne(n);
771
- return oe(ae(n, r, i));
772
+ let { svg: n } = await re(e, t), { width: r, height: i } = ae(n);
773
+ return ie(oe(n, r, i));
772
774
  } catch {
773
775
  return;
774
776
  }
@@ -798,7 +800,7 @@ async function ot(e) {
798
800
  }
799
801
  async function st(e) {
800
802
  let t = await ot(e);
801
- h(new Blob([t], { type: "text/html;charset=utf-8" }), at(e.meta.session, e.meta.exportedAt));
803
+ ne(new Blob([t], { type: "text/html;charset=utf-8" }), at(e.meta.session, e.meta.exportedAt));
802
804
  }
803
805
  //#endregion
804
806
  export { st as exportConversation };