@inkeep/open-knowledge 0.46.0-beta.13 → 0.46.0-beta.15

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 (461) hide show
  1. package/dist/{acp-harness-probe-BfbkLxMd.mjs → acp-harness-probe-DAX_xywv.mjs} +3 -3
  2. package/dist/cli.mjs +49 -49
  3. package/dist/constants-EdMPlb3h.mjs +2 -0
  4. package/dist/fs-traced-DB5c--Vd.mjs +1 -0
  5. package/dist/{fs-traced-B-x7hAhD.mjs → fs-traced-wfI5VoOz.mjs} +4 -4
  6. package/dist/git-handle-CMWGPj44.mjs +1 -0
  7. package/dist/{git-handle-M_t2H6C-.mjs → git-handle-TtCDd9Le.mjs} +2 -2
  8. package/dist/index.d.mts +17 -1
  9. package/dist/index.mjs +1 -1
  10. package/dist/init-BT0kDAbD.mjs +1 -0
  11. package/dist/{init-DJvgtKke.mjs → init-DIP7y9dQ.mjs} +37 -37
  12. package/dist/{launch-json-removal-1939Vm-0.mjs → launch-json-removal-BRxZbYKL.mjs} +2 -2
  13. package/dist/loader-D9iWusRx.mjs +1 -0
  14. package/dist/{loader-DZ3vC2N-.mjs → loader-cpIcgfcU.mjs} +3 -3
  15. package/dist/md-manager-wJEAbIvp.mjs +2 -0
  16. package/dist/{open-browser-BsKTF04c.mjs → open-browser-BiK9JzSf.mjs} +2 -2
  17. package/dist/parse-worker.mjs +1 -1
  18. package/dist/{preview-Bfh6RWYE.mjs → preview-2rjk4dI0.mjs} +2 -2
  19. package/dist/preview-LjFEzkiH.mjs +1 -0
  20. package/dist/public/assets/ActivityModeContent-BSGDxL9R.js +1 -0
  21. package/dist/public/assets/{AgentDiffPane-DM8oQapu.js → AgentDiffPane-D7bJvGdp.js} +2 -2
  22. package/dist/public/assets/{AgentThreadClientBinder-BE7sGGt4.js → AgentThreadClientBinder-CaTryHIE.js} +1 -1
  23. package/dist/public/assets/AppMenubar-rFZzqUIz.js +1 -0
  24. package/dist/public/assets/{BugReportHistory-CaAYnGNR.js → BugReportHistory-DJY_ATlh.js} +1 -1
  25. package/dist/public/assets/{BugReportHistoryDialog-DFfft492.js → BugReportHistoryDialog-BIDjQ_82.js} +1 -1
  26. package/dist/public/assets/ChangedOutsideBadge-C-Qu_Pl8.js +1 -0
  27. package/dist/public/assets/CodeMirrorPropInput-CRKAndsx.js +3 -0
  28. package/dist/public/assets/{ConfigSharingInfoTooltip-QTCODx7g.js → ConfigSharingInfoTooltip-OJruUI3H.js} +1 -1
  29. package/dist/public/assets/{ConsentDialogBody-U4UzjnaQ.js → ConsentDialogBody-DRrUivNs.js} +1 -1
  30. package/dist/public/assets/{CopyButton-O0Y9mXoH.js → CopyButton-Dk8yDsPs.js} +1 -1
  31. package/dist/public/assets/{DiffView-kKTjtgKq.js → DiffView-DITcPuOr.js} +1 -1
  32. package/dist/public/assets/DocumentContext-COt_qsrp.js +38 -0
  33. package/dist/public/assets/EditorModeToggle-N6JjLfr-.js +1 -0
  34. package/dist/public/assets/EnableSyncConfirmDialog-Bc_A_XCY.js +1 -0
  35. package/dist/public/assets/FeedbackForm-6V4HIjNZ.js +1 -0
  36. package/dist/public/assets/{GraphPanel-DZVUW5Ne.js → GraphPanel-aAVgqxld.js} +2 -2
  37. package/dist/public/assets/ImportSkillDialog-LkmkJ0YU.js +1 -0
  38. package/dist/public/assets/{LintConfigEditor-DZEV5zwj.js → LintConfigEditor-9eXwxoS2.js} +1 -1
  39. package/dist/public/assets/ManagedArtifactProperties-Bte_ppBh.js +2 -0
  40. package/dist/public/assets/ManagedArtifactProperties-TmTNhIv4.js +1 -0
  41. package/dist/public/assets/McpConsentDialogBody-090py53F.js +1 -0
  42. package/dist/public/assets/Mermaid-BQAWkx48.js +2 -0
  43. package/dist/public/assets/MermaidDocEditor-C_G_ovY8.js +1 -0
  44. package/dist/public/assets/RegisteredAgentIcon-UInuA1Ei.js +1 -0
  45. package/dist/public/assets/ReportBugDialogBody-5eJLreAy.js +3 -0
  46. package/dist/public/assets/SchemaConfigEditor-DcJSH6Kd.js +1 -0
  47. package/dist/public/assets/SessionsHost-WDNxt2rN.js +2 -0
  48. package/dist/public/assets/SettingsDialogBody-DYeGMO3E.js +7 -0
  49. package/dist/public/assets/{ShareBranchSwitchDialog-D54uq5Dv.js → ShareBranchSwitchDialog-Dm4ZdzUl.js} +1 -1
  50. package/dist/public/assets/{ShareReceiveDialog-CoskdBM6.js → ShareReceiveDialog-Cd240Jdo.js} +1 -1
  51. package/dist/public/assets/{ShareReceiveMissDialog-Byg3PSFa.js → ShareReceiveMissDialog--hmiMg2v.js} +1 -1
  52. package/dist/public/assets/{SkillEditBanner-Dtk_Dd6-.js → SkillEditBanner-DIJcGPhx.js} +1 -1
  53. package/dist/public/assets/SkillModeBanner-BPmqGiVe.js +1 -0
  54. package/dist/public/assets/SkillOriginInline-M3Vr6Vl3.js +1 -0
  55. package/dist/public/assets/SkillToolbarControls-CkezCxAG.js +1 -0
  56. package/dist/public/assets/{SourceEditor-8qossd7Q.js → SourceEditor-D3d3_XjY.js} +1 -1
  57. package/dist/public/assets/{TerminalPanel-C4TfiKjZ.js → TerminalPanel-DEwu_bZF.js} +1 -1
  58. package/dist/public/assets/{TerminalWindowApp-BV4Va3sn.js → TerminalWindowApp-DwRc5JuX.js} +1 -1
  59. package/dist/public/assets/TextDocEditor-4ayETwjy.js +1 -0
  60. package/dist/public/assets/{ThreadView-BZlK-XfA.js → ThreadView-DDsiP7tO.js} +3 -3
  61. package/dist/public/assets/TimelineDiffPane-EP2JbHka.js +2 -0
  62. package/dist/public/assets/{abnfDiagram-VRR7QNED-CYyOqigz.js → abnfDiagram-VRR7QNED-DHJtI87X.js} +1 -1
  63. package/dist/public/assets/{agent-diff-store-BptHmEsn.js → agent-diff-store-NxhFZCYu.js} +1 -1
  64. package/dist/public/assets/agent-visibility-BVTKArCQ.js +1 -0
  65. package/dist/public/assets/{arc-DpnwTjlg.js → arc-CcVRsw3e.js} +1 -1
  66. package/dist/public/assets/architecture-TIHT7OUA-B22-UzyM.js +1 -0
  67. package/dist/public/assets/{architectureDiagram-ZJ3FMSHR-BArScuNA.js → architectureDiagram-ZJ3FMSHR-CiwaxO5n.js} +1 -1
  68. package/dist/public/assets/arrow-up-right-CinCNAo3.js +1 -0
  69. package/dist/public/assets/auth-state-cache-DeOaKoC3.js +11 -0
  70. package/dist/public/assets/badge-DwfQ2IQa.js +1 -0
  71. package/dist/public/assets/{blockDiagram-677ZJIJ3-BKdJnykw.js → blockDiagram-677ZJIJ3-0zO7n7Sf.js} +1 -1
  72. package/dist/public/assets/{braces-CqiL3TOP.js → braces-CsvuNjsR.js} +1 -1
  73. package/dist/public/assets/button-D3xSRfT4.js +1 -0
  74. package/dist/public/assets/{c4Diagram-LMCZKHZV-BGzHBzYq.js → c4Diagram-LMCZKHZV-C662qesx.js} +1 -1
  75. package/dist/public/assets/calendar-BRay90Yd.js +1 -0
  76. package/dist/public/assets/{case-sensitive-DcowXaLf.js → case-sensitive-OXVu8f1h.js} +1 -1
  77. package/dist/public/assets/channel-DfI0YSva.js +1 -0
  78. package/dist/public/assets/check-D1JmbeH0.js +1 -0
  79. package/dist/public/assets/checkbox-Cq1BnJ3x.js +1 -0
  80. package/dist/public/assets/{chevron-down-BJumc1E_.js → chevron-down-BH5tpfEN.js} +1 -1
  81. package/dist/public/assets/chevron-left-CbL-Ysx_.js +1 -0
  82. package/dist/public/assets/chevron-right-COaV_K3r.js +1 -0
  83. package/dist/public/assets/chevron-up-CSNoGrd3.js +1 -0
  84. package/dist/public/assets/chunk-2Q5K7J3B-BSFIGC1j.js +1 -0
  85. package/dist/public/assets/{chunk-32BRIVSS-DWFi-mYl.js → chunk-32BRIVSS-CydyM0Ml.js} +1 -1
  86. package/dist/public/assets/{chunk-52WLFC77-C3ewIu0v.js → chunk-52WLFC77-cG-DvO_j.js} +1 -1
  87. package/dist/public/assets/{chunk-5FCAYU7R-DH0H_TSt.js → chunk-5FCAYU7R-Bxw_oikr.js} +1 -1
  88. package/dist/public/assets/{chunk-5HE753X5-COZLeOUQ.js → chunk-5HE753X5-DKXmxfLW.js} +1 -1
  89. package/dist/public/assets/{chunk-5JV3BV7I-BtSn9e5l.js → chunk-5JV3BV7I-DvmJcvTR.js} +1 -1
  90. package/dist/public/assets/{chunk-5TONJI2A-CyVAUHQY.js → chunk-5TONJI2A-DzotvxWN.js} +1 -1
  91. package/dist/public/assets/{chunk-5VM5RSS4-DkfDxTnu.js → chunk-5VM5RSS4-BhXaeUUw.js} +1 -1
  92. package/dist/public/assets/{chunk-7BUUIJ7U-Bwj5weSU.js → chunk-7BUUIJ7U-nkQ2KUUq.js} +1 -1
  93. package/dist/public/assets/{chunk-BIQX33UG-WShnA3hi.js → chunk-BIQX33UG-dgZifYB8.js} +1 -1
  94. package/dist/public/assets/{chunk-BO2N2NFS-0fL-jnUT.js → chunk-BO2N2NFS-BgpjQQXT.js} +3 -3
  95. package/dist/public/assets/{chunk-C7G6YPKG-JOVwaeql.js → chunk-C7G6YPKG-DeJ7KSfD.js} +1 -1
  96. package/dist/public/assets/{chunk-CQNSW5MT-DmFd2LFl.js → chunk-CQNSW5MT-WJU8lHxD.js} +1 -1
  97. package/dist/public/assets/{chunk-CYSBUYHQ-BOCWcr_T.js → chunk-CYSBUYHQ-5BxfdOgL.js} +1 -1
  98. package/dist/public/assets/{chunk-EMLP6XTP-_039-Ubh.js → chunk-EMLP6XTP-mSjYkSCS.js} +1 -1
  99. package/dist/public/assets/{chunk-EX3LRPZG-CMgFCagr.js → chunk-EX3LRPZG-BNd6Cxwo.js} +1 -1
  100. package/dist/public/assets/{chunk-FWX5IMBZ-C4vKCoUv.js → chunk-FWX5IMBZ-CXQqiinv.js} +2 -2
  101. package/dist/public/assets/{chunk-HOUHSVGY-CZX004Ef.js → chunk-HOUHSVGY-FQeseOdw.js} +1 -1
  102. package/dist/public/assets/{chunk-ICXQ74PX-B_iuJAXS.js → chunk-ICXQ74PX-QBz75RJe.js} +1 -1
  103. package/dist/public/assets/{chunk-JG7HCLWE-CtDpq51e.js → chunk-JG7HCLWE-ClAPLVoN.js} +1 -1
  104. package/dist/public/assets/{chunk-JWPE2WC7-pDBBV-ex.js → chunk-JWPE2WC7-D00QuO4l.js} +1 -1
  105. package/dist/public/assets/{chunk-MOJQB5TN-BOLftHeO.js → chunk-MOJQB5TN-BHolK4Fc.js} +1 -1
  106. package/dist/public/assets/{chunk-MOZMSUNE-B90rFhRO.js → chunk-MOZMSUNE-B2zrwpvW.js} +1 -1
  107. package/dist/public/assets/{chunk-OGEWGWER-dIUHPavN.js → chunk-OGEWGWER-D9rNoxcC.js} +1 -1
  108. package/dist/public/assets/{chunk-OSBZ3O6U-C8f7zxUa.js → chunk-OSBZ3O6U-pMDQqwwa.js} +1 -1
  109. package/dist/public/assets/{chunk-PUDLZKDR-QPYzmUFw.js → chunk-PUDLZKDR-zvmgn7x_.js} +1 -1
  110. package/dist/public/assets/{chunk-Q4XR5HBZ--1adMSrR.js → chunk-Q4XR5HBZ-FwXZQ9hY.js} +1 -1
  111. package/dist/public/assets/{chunk-QBLGF6JB-q87mQ87z.js → chunk-QBLGF6JB-gQMNwA9k.js} +1 -1
  112. package/dist/public/assets/{chunk-R7FJI6CG-B5NnR0wG.js → chunk-R7FJI6CG-4qEQ9dBZ.js} +1 -1
  113. package/dist/public/assets/{chunk-RYQCIY6F-BnIBPlEn.js → chunk-RYQCIY6F-BV0ikdQB.js} +1 -1
  114. package/dist/public/assets/{chunk-U6XO7XAA-DuxWv8i1.js → chunk-U6XO7XAA-CaNmcaAV.js} +1 -1
  115. package/dist/public/assets/{chunk-V7JOEXUC-zQePb8W4.js → chunk-V7JOEXUC-CsJjje8x.js} +1 -1
  116. package/dist/public/assets/chunk-VAUOI2AC-B_byVmRb.js +1 -0
  117. package/dist/public/assets/{chunk-VR4S4FIN-DOfDyz67.js → chunk-VR4S4FIN-bcHVGPIL.js} +1 -1
  118. package/dist/public/assets/{chunk-WYO6CB5R-DAcO6KqN.js → chunk-WYO6CB5R-BMZjhy31.js} +1 -1
  119. package/dist/public/assets/chunk-XXDRQBXY-BW_2kVvu.js +1 -0
  120. package/dist/public/assets/{chunk-YOTPTUD7-DSjCnGGQ.js → chunk-YOTPTUD7-NNZ-Yv3s.js} +1 -1
  121. package/dist/public/assets/{chunk-ZGVPDNZ5-CnXHsnX3.js → chunk-ZGVPDNZ5-DN7h9evR.js} +1 -1
  122. package/dist/public/assets/{chunk-ZIRB5QZD-rA251rHW.js → chunk-ZIRB5QZD-BUzL4gtl.js} +1 -1
  123. package/dist/public/assets/classDiagram-OUVF2IWQ-D-ugBPkQ.js +1 -0
  124. package/dist/public/assets/classDiagram-v2-EOCWNBFH-Bn6YRP9I.js +1 -0
  125. package/dist/public/assets/{client-version-9mDVHFsH.js → client-version-BhYZd6K_.js} +1 -1
  126. package/dist/public/assets/{comment-chips-zzwDt2eW.js → comment-chips-qxdAVfqd.js} +2 -2
  127. package/dist/public/assets/{config-provider-CqysOmJk.js → config-provider-C5VnXykq.js} +2 -2
  128. package/dist/public/assets/{cose-bilkent-JH36ORCC-BO3tFb1k.js → cose-bilkent-JH36ORCC-C3tuxXMJ.js} +1 -1
  129. package/dist/public/assets/createLucideIcon-wbFLvDA-.js +1 -0
  130. package/dist/public/assets/cynefin-VYW2F7L2-g7Kr3o9e.js +1 -0
  131. package/dist/public/assets/{cynefinDiagram-TSTJHNR4-kMgUnu_c.js → cynefinDiagram-TSTJHNR4-gF8dJ8RL.js} +1 -1
  132. package/dist/public/assets/{dagre-DmGue-PX.js → dagre-DqpVUR-3.js} +1 -1
  133. package/dist/public/assets/{dagre-VKFMJZFB-CgYSDfeg.js → dagre-VKFMJZFB-Bdh7Hq5O.js} +1 -1
  134. package/dist/public/assets/{diagram-FQU43EPY-XRWiX7Im.js → diagram-FQU43EPY-BZ8uLueR.js} +1 -1
  135. package/dist/public/assets/{diagram-G47NLZAW-BzqAYczi.js → diagram-G47NLZAW-QyYub_Y-.js} +1 -1
  136. package/dist/public/assets/{diagram-NH7WQ7WH-CAOpGCwL.js → diagram-NH7WQ7WH-BZmKErWp.js} +1 -1
  137. package/dist/public/assets/{diagram-OA4YK3LP-CsYFi60N.js → diagram-OA4YK3LP-X4I0Ny_1.js} +1 -1
  138. package/dist/public/assets/{diagram-WEI45ONY-BPyyv8e3.js → diagram-WEI45ONY-Dvn-EcwS.js} +1 -1
  139. package/dist/public/assets/{dialog-CkjkuWLF.js → dialog-BRwYcDyc.js} +1 -1
  140. package/dist/public/assets/{dist-CTPwMRld.js → dist-1bY-7L2j.js} +1 -1
  141. package/dist/public/assets/{dist-DA8rIjtg.js → dist-4KAJEfHq.js} +1 -1
  142. package/dist/public/assets/{dist-MQd-Irtl.js → dist-9KHzlPis.js} +1 -1
  143. package/dist/public/assets/{dist-_8wb0R99.js → dist-B5YN73un.js} +1 -1
  144. package/dist/public/assets/{dist-Bdhn2jv42.js → dist-B_pBFyj72.js} +1 -1
  145. package/dist/public/assets/{dist-BkSGIgDv.js → dist-BawYG08a.js} +1 -1
  146. package/dist/public/assets/{dist-C2ZNHEgX.js → dist-BhBnufkS.js} +1 -1
  147. package/dist/public/assets/{dist-B4smVaZm2.js → dist-D8RKvolB2.js} +179 -179
  148. package/dist/public/assets/{dist-FPlC48Ke.js → dist-DhrsAcRJ.js} +1 -1
  149. package/dist/public/assets/{dist-CKHaw45-.js → dist-DmGGmoBk.js} +1 -1
  150. package/dist/public/assets/{dist-Dqtgp0QD2.js → dist-Dsr-OKxp2.js} +1 -1
  151. package/dist/public/assets/{dist-BK-fqCFD.js → dist-Dtdr1fU5.js} +1 -1
  152. package/dist/public/assets/{dist-D2AiGKcA.js → dist-ZmxLttHl.js} +1 -1
  153. package/dist/public/assets/{dist-CEBfbNax.js → dist-zNz6UTbN.js} +1 -1
  154. package/dist/public/assets/{doc-paths-DPN-3rhq.js → doc-paths-CBQZMJ5n.js} +1 -1
  155. package/dist/public/assets/{documents-events-DYwaAqwG.js → documents-events-CUD1Vtsd.js} +1 -1
  156. package/dist/public/assets/{download-D3RTVXwv.js → download-C_7Cu8X8.js} +1 -1
  157. package/dist/public/assets/dropdown-menu-BvpO8ueR.js +1 -0
  158. package/dist/public/assets/{ebnfDiagram-CCIWWBDH-CUTAjine.js → ebnfDiagram-CCIWWBDH-Bee-0Vsa.js} +1 -1
  159. package/dist/public/assets/{erDiagram-Q63AITRT-BSu96D8g.js → erDiagram-Q63AITRT-DxkcAaEh.js} +1 -1
  160. package/dist/public/assets/{esm-DbmiTy2g.js → esm-Dn0h--OG.js} +1 -1
  161. package/dist/public/assets/eventmodeling-45OFAUF4-DdR7ha8I.js +1 -0
  162. package/dist/public/assets/{eye-yERBaQWj.js → eye-DGKT_dXT.js} +1 -1
  163. package/dist/public/assets/field-mSLytCEk.js +1 -0
  164. package/dist/public/assets/file-tree-adapter-CRvIFP_w.js +1 -0
  165. package/dist/public/assets/{file-tree-utils-BYKXMiDK.js → file-tree-utils-Bz8x8io4.js} +1 -1
  166. package/dist/public/assets/flowDiagram-23GEKE2U-BAuyQn3U.js +1 -0
  167. package/dist/public/assets/{folder-8ceGqZIO.js → folder-CyL8AyXY.js} +1 -1
  168. package/dist/public/assets/{folder-config-api-CDok_aFN.js → folder-config-api-DI42D8Ib.js} +1 -1
  169. package/dist/public/assets/{folder-open-CvyyCBOn.js → folder-open-DxWbBr3T.js} +1 -1
  170. package/dist/public/assets/follow-file-DYsc20_7.js +1 -0
  171. package/dist/public/assets/form-DipRd6xO.js +1 -0
  172. package/dist/public/assets/{ganttDiagram-NO4QXBWP-Crrr-q7s.js → ganttDiagram-NO4QXBWP-CfKrR8t0.js} +1 -1
  173. package/dist/public/assets/{git-branch-oPfvsh1I.js → git-branch-v159JGOd.js} +1 -1
  174. package/dist/public/assets/gitGraph-TEB2WS4Q-B9_Hbzw_.js +1 -0
  175. package/dist/public/assets/{gitGraphDiagram-IHSO6WYX-BdMHODo-.js → gitGraphDiagram-IHSO6WYX-l_eG9uKD.js} +1 -1
  176. package/dist/public/assets/globals-Ba8zXfL4.css +1 -0
  177. package/dist/public/assets/{globals-DpFuWoOb.js → globals-Wwv5HfuY.js} +2 -2
  178. package/dist/public/assets/{graphlib-DIVfLvlR.js → graphlib-2mbBufU8.js} +1 -1
  179. package/dist/public/assets/{hash-DP25l_li.js → hash-C-OUp5vU.js} +1 -1
  180. package/dist/public/assets/{highlighted-body-OFNGDK62-Cue0vPGT.js → highlighted-body-OFNGDK62-BIipOt-U.js} +1 -1
  181. package/dist/public/assets/index-BgOJcvk8.js +2092 -0
  182. package/dist/public/assets/info-DKCQHKI2-BQeDe2mR.js +1 -0
  183. package/dist/public/assets/{info-Bza7Xa6D.js → info-DybUB5k_.js} +1 -1
  184. package/dist/public/assets/{infoDiagram-FWYZ7A6U-_RNxdwPC.js → infoDiagram-FWYZ7A6U-DgvJ7Awn.js} +1 -1
  185. package/dist/public/assets/input-DcoGZoTQ.js +1 -0
  186. package/dist/public/assets/input-group-DpE_QejY.js +1 -0
  187. package/dist/public/assets/{ishikawaDiagram-FXEZZL3T-BbXzN7UF.js → ishikawaDiagram-FXEZZL3T-DQ4Gskk4.js} +1 -1
  188. package/dist/public/assets/{journeyDiagram-5HDEW3XC-BqwkEnJh.js → journeyDiagram-5HDEW3XC-DPs0RcwQ.js} +1 -1
  189. package/dist/public/assets/{kanban-definition-HUTT4EX6-CX-ROP0U.js → kanban-definition-HUTT4EX6-Ck2HSfan.js} +1 -1
  190. package/dist/public/assets/label-CGqMAe0S.js +1 -0
  191. package/dist/public/assets/{line-D0lohJ6a.js → line-DWKLErsv.js} +1 -1
  192. package/dist/public/assets/{linear-By98wvuz.js → linear-dbIThZWJ.js} +1 -1
  193. package/dist/public/assets/{lint-config-client-CqIt6_m6.js → lint-config-client-B3CFuMcz.js} +1 -1
  194. package/dist/public/assets/loader-circle-C4uszcbe.js +1 -0
  195. package/dist/public/assets/{map-XagOZNs9.js → map-DCuMc749.js} +1 -1
  196. package/dist/public/assets/{markdownlint-rule-browser-B9Uf4v2H.js → markdownlint-rule-browser-taWXhAIu.js} +1 -1
  197. package/dist/public/assets/mermaid-GHXKKRXX-DE1vq5OK.js +1 -0
  198. package/dist/public/assets/{mermaid-parser.core-DtOR1aVt.js → mermaid-parser.core-B2uYfibA.js} +2 -2
  199. package/dist/public/assets/{mermaid.core-DFRkYHGF.js → mermaid.core-BUTR3k00.js} +3 -3
  200. package/dist/public/assets/{mindmap-definition-LN4V7U3C-BPq8CY-V.js → mindmap-definition-LN4V7U3C-CjuwnrRK.js} +1 -1
  201. package/dist/public/assets/minus-dDmjPbo4.js +1 -0
  202. package/dist/public/assets/{miss-dialog-store-DBqQ_Nyn.js → miss-dialog-store-DRsTysxn.js} +1 -1
  203. package/dist/public/assets/navigation-targets-Cqw8JcW2.js +1 -0
  204. package/dist/public/assets/{now-BJ6wHiq6.js → now-D9M3Ys6o.js} +1 -1
  205. package/dist/public/assets/{open-managed-artifact-tab-BRW0Boal.js → open-managed-artifact-tab-BJBa-17A.js} +1 -1
  206. package/dist/public/assets/{ordinal-BhGTF2Fp.js → ordinal-DdrNAXbu.js} +1 -1
  207. package/dist/public/assets/packet-7NZHBO7P-BW9abikZ.js +1 -0
  208. package/dist/public/assets/panel-Bjv8raTx.js +1 -0
  209. package/dist/public/assets/{panel-right-open-ChixO1pm.js → panel-right-open-EPKoGQBE.js} +1 -1
  210. package/dist/public/assets/{paperclip-CFZOhV8C.js → paperclip-DSaV3jTp.js} +1 -1
  211. package/dist/public/assets/{pegDiagram-2B236MQR-Bs6HaUdW.js → pegDiagram-2B236MQR-BbkSvB2I.js} +1 -1
  212. package/dist/public/assets/{pending-receive-nav-store-C5kqBBL2.js → pending-receive-nav-store-BZZR-nkd.js} +1 -1
  213. package/dist/public/assets/pie-RZYD4A2V-D86NaVqt.js +1 -0
  214. package/dist/public/assets/{pieDiagram-ENE6RG2P-BBo6EMS4.js → pieDiagram-ENE6RG2P-mC03ntFr.js} +1 -1
  215. package/dist/public/assets/project-paths-DZoifJi3.js +1 -0
  216. package/dist/public/assets/{prop-types-CwT5q2dg.js → prop-types-UV1Ku4nq.js} +1 -1
  217. package/dist/public/assets/{quadrantDiagram-ABIIQ3AL-qmZeOoSr.js → quadrantDiagram-ABIIQ3AL-C5Wf9EzX.js} +1 -1
  218. package/dist/public/assets/radar-I7S5WNFK-DQAd0dLq.js +1 -0
  219. package/dist/public/assets/radio-group-DxMM4tU-.js +1 -0
  220. package/dist/public/assets/railroad-3IZDKUUU-BpjxCYYP.js +1 -0
  221. package/dist/public/assets/railroad-abnf-AHOZXSZD-BVzINhcN.js +1 -0
  222. package/dist/public/assets/railroad-ebnf-EBAXGLYW-FAz3aWnD.js +1 -0
  223. package/dist/public/assets/railroad-peg-LSFZ7HO6-Smtu6BYl.js +1 -0
  224. package/dist/public/assets/{railroadDiagram-RFXS5EU6-DE_EvwtV.js → railroadDiagram-RFXS5EU6-D5k_b8X2.js} +1 -1
  225. package/dist/public/assets/{receive-store-9n3T9AKo.js → receive-store-CqvpoBpo.js} +1 -1
  226. package/dist/public/assets/{refresh-cw-D3t5sdqM.js → refresh-cw-DaKSQ-xL.js} +1 -1
  227. package/dist/public/assets/{requirementDiagram-TGXJPOKE-BZ-rKt8B.js → requirementDiagram-TGXJPOKE-sZXA_y1K.js} +1 -1
  228. package/dist/public/assets/{sankeyDiagram-HTMAVEWB-B9AZEJIc.js → sankeyDiagram-HTMAVEWB-VaejSuXD.js} +1 -1
  229. package/dist/public/assets/schema-fields-view-intent-BMcQ1vbw.js +1 -0
  230. package/dist/public/assets/select-DnZ213p0.js +1 -0
  231. package/dist/public/assets/{selection-context-Ei6PWK1c.js → selection-context-SAJ9lGhe.js} +1 -1
  232. package/dist/public/assets/separator-BhGCtoZc.js +1 -0
  233. package/dist/public/assets/{sequenceDiagram-DBY2YBRQ-DR0l3jeO.js → sequenceDiagram-DBY2YBRQ-nCH-USjy.js} +1 -1
  234. package/dist/public/assets/{sizeCapture-X5ZJPWSS-CK3vwB3X.js → sizeCapture-X5ZJPWSS-CyNe-U3Z.js} +1 -1
  235. package/dist/public/assets/skeleton-Zj40UZU5.js +1 -0
  236. package/dist/public/assets/skill-actions-bjJCqQ6r.js +2 -0
  237. package/dist/public/assets/{skill-scope-QSVdjA7g.js → skill-scope-CEk2zosm.js} +1 -1
  238. package/dist/public/assets/{skills-api-DPk4ScTz.js → skills-api-DqNFNsgd.js} +1 -1
  239. package/dist/public/assets/{square-pen-wqme9vlv.js → square-pen-BETfUJNH.js} +1 -1
  240. package/dist/public/assets/{src-rG3yqT5Z.js → src-D2I-MNPe.js} +1 -1
  241. package/dist/public/assets/{src-DsJU4LsJ.js → src-DFZupjZD.js} +1 -1
  242. package/dist/public/assets/{stateDiagram-2N3HPSRC-DEWfQHsO.js → stateDiagram-2N3HPSRC-uY9Mif8t.js} +1 -1
  243. package/dist/public/assets/stateDiagram-v2-6OUMAXLB-BdS5vmc7.js +1 -0
  244. package/dist/public/assets/{swimlanes-5IMT3BWC-B6x4Ld9j.js → swimlanes-5IMT3BWC-cGipHfZ5.js} +2 -2
  245. package/dist/public/assets/swimlanesDiagram-G3AALYLV-Do_H-wCL.js +8 -0
  246. package/dist/public/assets/switch-BQ3qkbBx.js +1 -0
  247. package/dist/public/assets/tabs-C54rwljA.js +1 -0
  248. package/dist/public/assets/tag-pill-input-Dm-oHELs.js +1 -0
  249. package/dist/public/assets/{target-navigation-intent-Bo9uuBEh.js → target-navigation-intent-D4NuVWIm.js} +1 -1
  250. package/dist/public/assets/{telemetry-impl-D4kQ8pzt.js → telemetry-impl-wWahzeD4.js} +2 -2
  251. package/dist/public/assets/{telemetry-startup-B15S0fJ7.js → telemetry-startup-DqooJFoo.js} +1 -1
  252. package/dist/public/assets/terminal-input-events-D7rv6nZZ.js +1 -0
  253. package/dist/public/assets/terminal-launch-events-DPnh23jk.js +1 -0
  254. package/dist/public/assets/{terminal-telemetry-46cHbbgd.js → terminal-telemetry-C0iAhsN9.js} +1 -1
  255. package/dist/public/assets/text-viewer-languages-qm3MvP0J.js +2 -0
  256. package/dist/public/assets/textarea-Cl4IJ1LU.js +1 -0
  257. package/dist/public/assets/{thread-client-DpMjiK2J.js → thread-client-CylUCx4y.js} +1 -1
  258. package/dist/public/assets/{timeline-definition-FHXFAJF6-DB7l9JZO.js → timeline-definition-FHXFAJF6-BaWSHiEf.js} +1 -1
  259. package/dist/public/assets/toggle-group-DpvWeoN9.js +1 -0
  260. package/dist/public/assets/tooltip-CtvLp_YK.js +1 -0
  261. package/dist/public/assets/{trash-2-5vqPZUBk.js → trash-2-YBQNhePb.js} +1 -1
  262. package/dist/public/assets/treeView-QDETBFTQ-BgORrhQ0.js +1 -0
  263. package/dist/public/assets/treemap-6X3UGDF4-Zr5ZEdj0.js +1 -0
  264. package/dist/public/assets/{triangle-alert-BwCftF1V.js → triangle-alert-Dk8dL1G6.js} +1 -1
  265. package/dist/public/assets/{typing-burst-detector-CKkV0qHr.js → typing-burst-detector-aQ1X_8Fj.js} +1 -1
  266. package/dist/public/assets/{undo-2-BRIW1mxN.js → undo-2-1g5Fg6rD.js} +1 -1
  267. package/dist/public/assets/uninstall-CZ4_m9Qa.js +1 -0
  268. package/dist/public/assets/{use-activity-panel-BrntKM08.js → use-activity-panel-CrUZg0eD.js} +1 -1
  269. package/dist/public/assets/{use-apply-config-color-theme-BeVjXtPt.js → use-apply-config-color-theme-CFZIZmfZ.js} +2 -2
  270. package/dist/public/assets/{use-collab-url-DNKvlkVI.js → use-collab-url-DrWInPcY.js} +1 -1
  271. package/dist/public/assets/{use-live-xterm-theme-zW4nzNGd.js → use-live-xterm-theme-C7ahxcoU.js} +1 -1
  272. package/dist/public/assets/{use-open-skill-Bs2T3l_Z.js → use-open-skill-BQedNtMG.js} +1 -1
  273. package/dist/public/assets/{use-settings-route-Dw-Hb0ex.js → use-settings-route-DHvE2hA4.js} +1 -1
  274. package/dist/public/assets/{use-skill-directory-CB4briga.js → use-skill-directory-CVAgFkVK.js} +1 -1
  275. package/dist/public/assets/{use-skills-luzjx-1h.js → use-skills-LdaAjRrH.js} +1 -1
  276. package/dist/public/assets/{use-terminal-enabled-BmqysEmJ.js → use-terminal-enabled-DwK_rPTk.js} +1 -1
  277. package/dist/public/assets/{use-timeline-entry-diff-5XrGZxUG.js → use-timeline-entry-diff-B5KnaOaD.js} +2 -2
  278. package/dist/public/assets/{use-workspace-Bi_k2cyZ.js → use-workspace-Csf6sHD8.js} +1 -1
  279. package/dist/public/assets/utils-CPqDy6Hr.js +1 -0
  280. package/dist/public/assets/{vennDiagram-L72KCM5P-D6bPpaIm.js → vennDiagram-L72KCM5P-boRPAxOy.js} +1 -1
  281. package/dist/public/assets/wardley-OPB4EBWU-WeTAUrVk.js +1 -0
  282. package/dist/public/assets/{wardleyDiagram-EHGQE667-9U25ZM8P.js → wardleyDiagram-EHGQE667-vi90NC-5.js} +1 -1
  283. package/dist/public/assets/{wrench-CqOvU1qQ.js → wrench-86_Xzzag.js} +1 -1
  284. package/dist/public/assets/x-M_y7ybHr.js +1 -0
  285. package/dist/public/assets/{xychartDiagram-FW5EYKEG-WSgFIUEO.js → xychartDiagram-FW5EYKEG-Ckph0Tnv.js} +1 -1
  286. package/dist/public/index.html +133 -129
  287. package/dist/public/uninstall.html +18 -17
  288. package/dist/{repair-launch-json-BnuZxbzl.mjs → repair-launch-json-CarG9t5g.mjs} +2 -2
  289. package/dist/repair-mcp-configs-tqX3x1ff.mjs +2 -0
  290. package/dist/{repair-skills-dd5mv1UC.mjs → repair-skills-B5s_18d0.mjs} +2 -2
  291. package/dist/repair-skills-ByGIGa0z.mjs +1 -0
  292. package/dist/{server-lock-CiLY7g7M.mjs → server-lock-CCS3UzJQ.mjs} +2 -2
  293. package/dist/server-lock-CKTWPQax.mjs +1 -0
  294. package/dist/{sleep-IcuyYCzq.mjs → sleep-TXRFWg8x.mjs} +5 -5
  295. package/dist/{src-vPHpv2Pv.mjs → src-C9yhZBbO.mjs} +21 -21
  296. package/dist/src-CJQ7Tr0x.mjs +2030 -0
  297. package/dist/{src-BV_ssChu.mjs → src-CrCGhUc5.mjs} +4 -4
  298. package/dist/{src-FJfcW5Wa.mjs → src-Dmoupsem.mjs} +1 -1
  299. package/dist/{start-CrQRZ2iN.mjs → start-DLGlqNhM.mjs} +3 -3
  300. package/dist/start-DLutC_zQ.mjs +1 -0
  301. package/dist/{write-project-skill-9Bg5smOa.mjs → write-project-skill-BIBvYtT6.mjs} +3 -3
  302. package/package.json +4 -4
  303. package/dist/constants-Tj2BXHLz.mjs +0 -2
  304. package/dist/fs-traced-Bi88qem0.mjs +0 -1
  305. package/dist/git-handle-CIs--jPt.mjs +0 -1
  306. package/dist/init-DAEIZfnY.mjs +0 -1
  307. package/dist/loader-DjGgIOZB.mjs +0 -1
  308. package/dist/md-manager-BYBAWLMu.mjs +0 -2
  309. package/dist/preview-BRsYNNVp.mjs +0 -1
  310. package/dist/public/assets/ActivityModeContent-DBIuWjYz.js +0 -1
  311. package/dist/public/assets/AppMenubar-7eBxIB37.js +0 -1
  312. package/dist/public/assets/ChangedOutsideBadge-HeyxmqeX.js +0 -1
  313. package/dist/public/assets/CodeMirrorPropInput-ni9vC7Fz.js +0 -3
  314. package/dist/public/assets/DocumentContext-DOLytv_M.js +0 -38
  315. package/dist/public/assets/EditorModeToggle-CNorGTYw.js +0 -2
  316. package/dist/public/assets/EnableSyncConfirmDialog-BIggEySP.js +0 -1
  317. package/dist/public/assets/FeedbackForm-CxZ7wWPb.js +0 -1
  318. package/dist/public/assets/ImportSkillDialog-CDNt7ygs.js +0 -1
  319. package/dist/public/assets/ManagedArtifactProperties-AwlBn5fa.js +0 -1
  320. package/dist/public/assets/ManagedArtifactProperties-DUL9cmXF.js +0 -2
  321. package/dist/public/assets/McpConsentDialogBody-BMrE5RK5.js +0 -1
  322. package/dist/public/assets/MermaidDocEditor-DNa5Mst7.js +0 -1
  323. package/dist/public/assets/RegisteredAgentIcon-CHh3fima.js +0 -1
  324. package/dist/public/assets/ReportBugDialogBody-C3Dct-EA.js +0 -3
  325. package/dist/public/assets/SchemaConfigEditor-IN_XqunA.js +0 -1
  326. package/dist/public/assets/SessionsHost-CYxR-RCl.js +0 -2
  327. package/dist/public/assets/SettingsDialogBody-zEVCcY6i.js +0 -7
  328. package/dist/public/assets/SkillModeBanner-CsKHM-QY.js +0 -1
  329. package/dist/public/assets/SkillOriginInline-Bi8XGbK6.js +0 -1
  330. package/dist/public/assets/SkillToolbarControls-t4VQIap4.js +0 -1
  331. package/dist/public/assets/TimelineDiffPane-Ox3ktjmx.js +0 -2
  332. package/dist/public/assets/agent-visibility-Bt2OD_n5.js +0 -1
  333. package/dist/public/assets/architecture-TIHT7OUA-Bl7-zFAE.js +0 -1
  334. package/dist/public/assets/arrow-up-right-BZsQghvQ.js +0 -1
  335. package/dist/public/assets/auth-state-cache-DpJsYOVr.js +0 -11
  336. package/dist/public/assets/badge-DB5BJfSU.js +0 -1
  337. package/dist/public/assets/button-oSXzJYWO.js +0 -1
  338. package/dist/public/assets/calendar-C2lP75MI.js +0 -1
  339. package/dist/public/assets/channel-Bf_IZmsH.js +0 -1
  340. package/dist/public/assets/check-DA7_vRdO.js +0 -1
  341. package/dist/public/assets/checkbox-DYPwCq3O.js +0 -1
  342. package/dist/public/assets/chevron-left-D8z-buF6.js +0 -1
  343. package/dist/public/assets/chevron-right-CgsPV9lV.js +0 -1
  344. package/dist/public/assets/chunk-2Q5K7J3B-CBNXZghD.js +0 -1
  345. package/dist/public/assets/chunk-VAUOI2AC-K9aKY8La.js +0 -1
  346. package/dist/public/assets/chunk-XXDRQBXY-CRN6FsNM.js +0 -1
  347. package/dist/public/assets/classDiagram-OUVF2IWQ-B8NyhReL.js +0 -1
  348. package/dist/public/assets/classDiagram-v2-EOCWNBFH-To5zrK6k.js +0 -1
  349. package/dist/public/assets/createLucideIcon-BiRV80uZ.js +0 -1
  350. package/dist/public/assets/cynefin-VYW2F7L2-DjK3ZZKp.js +0 -1
  351. package/dist/public/assets/dropdown-menu-D2umi56L.js +0 -1
  352. package/dist/public/assets/eventmodeling-45OFAUF4-C3gCuhXd.js +0 -1
  353. package/dist/public/assets/field-i4kPdg1V.js +0 -1
  354. package/dist/public/assets/file-tree-adapter-B3YYQMKE.js +0 -1
  355. package/dist/public/assets/flowDiagram-23GEKE2U-V8thnmzy.js +0 -1
  356. package/dist/public/assets/follow-file-BpD8YozT.js +0 -1
  357. package/dist/public/assets/form-lIFpKMVU.js +0 -1
  358. package/dist/public/assets/gitGraph-TEB2WS4Q-BERn_Vnm.js +0 -1
  359. package/dist/public/assets/globals-GzZHGkrT.css +0 -1
  360. package/dist/public/assets/index-Bbf0BHeh.js +0 -2092
  361. package/dist/public/assets/info-DKCQHKI2-xuBgM0S3.js +0 -1
  362. package/dist/public/assets/input-C4n4n5Hc.js +0 -1
  363. package/dist/public/assets/input-group-C_H5NgPX.js +0 -1
  364. package/dist/public/assets/label-Ds0LTB-Z.js +0 -1
  365. package/dist/public/assets/loader-circle-Cn2Xr4cN.js +0 -1
  366. package/dist/public/assets/mermaid-GHXKKRXX-CFTslKYT.js +0 -1
  367. package/dist/public/assets/minus-CBRjUXY7.js +0 -1
  368. package/dist/public/assets/navigation-targets-CvdOYknS.js +0 -1
  369. package/dist/public/assets/packet-7NZHBO7P-DhQWKabl.js +0 -1
  370. package/dist/public/assets/panel-FwLLPu5s.js +0 -1
  371. package/dist/public/assets/pie-RZYD4A2V-DaewLp2Y.js +0 -1
  372. package/dist/public/assets/project-paths-Cgrv2qcw.js +0 -1
  373. package/dist/public/assets/radar-I7S5WNFK-DljmjJ2C.js +0 -1
  374. package/dist/public/assets/radio-group-DFFiLDEM.js +0 -1
  375. package/dist/public/assets/railroad-3IZDKUUU-6CgLOfBJ.js +0 -1
  376. package/dist/public/assets/railroad-abnf-AHOZXSZD-DQ60e1aW.js +0 -1
  377. package/dist/public/assets/railroad-ebnf-EBAXGLYW-Da8xQ_1N.js +0 -1
  378. package/dist/public/assets/railroad-peg-LSFZ7HO6-CDOeiUF5.js +0 -1
  379. package/dist/public/assets/schema-fields-view-intent-SQVE5W3s.js +0 -1
  380. package/dist/public/assets/select-DyVZCohx.js +0 -1
  381. package/dist/public/assets/separator-4_yBRx-q.js +0 -1
  382. package/dist/public/assets/skeleton-BlTc8h6X.js +0 -1
  383. package/dist/public/assets/skill-actions-6lbXpkx6.js +0 -2
  384. package/dist/public/assets/stateDiagram-v2-6OUMAXLB-aJyvpelO.js +0 -1
  385. package/dist/public/assets/swimlanesDiagram-G3AALYLV-NoFAxBaw.js +0 -8
  386. package/dist/public/assets/switch-CsstPO-E.js +0 -1
  387. package/dist/public/assets/tabs-C8ykgpIi.js +0 -1
  388. package/dist/public/assets/tag-pill-input-Bi-VYc9q.js +0 -1
  389. package/dist/public/assets/terminal-input-events-B8xUcID4.js +0 -1
  390. package/dist/public/assets/terminal-launch-events-CCUJ6bvs.js +0 -1
  391. package/dist/public/assets/textarea-DKb-eo87.js +0 -1
  392. package/dist/public/assets/toggle-group-DMfnQ5Pd.js +0 -1
  393. package/dist/public/assets/tooltip-DkZ6fphS.js +0 -1
  394. package/dist/public/assets/treeView-QDETBFTQ-Ds4YBLMo.js +0 -1
  395. package/dist/public/assets/treemap-6X3UGDF4-D2ccHx16.js +0 -1
  396. package/dist/public/assets/uninstall-C2Z7mcqE.js +0 -1
  397. package/dist/public/assets/wardley-OPB4EBWU-JuWm1scq.js +0 -1
  398. package/dist/public/assets/x-C6kVbc_i.js +0 -1
  399. package/dist/repair-mcp-configs-Cbg7X3jU.mjs +0 -2
  400. package/dist/repair-skills-PgjKx2Kj.mjs +0 -1
  401. package/dist/server-lock-toF-I3k7.mjs +0 -1
  402. package/dist/src-BexdiJ2F.mjs +0 -2030
  403. package/dist/start-CBKXj6gj.mjs +0 -1
  404. /package/dist/public/assets/{ActivityPanelDiffView-ZX0cv7Dl.js → ActivityPanelDiffView-DzcGG-3T.js} +0 -0
  405. /package/dist/public/assets/{__vite-browser-external-DwydhYHF.js → __vite-browser-external-DRftbq1J.js} +0 -0
  406. /package/dist/public/assets/{agent-presence-BcWu61SE.js → agent-presence-DspgbUIJ.js} +0 -0
  407. /package/dist/public/assets/{array-DpLqdF3L.js → array-BlR6RSqS.js} +0 -0
  408. /package/dist/public/assets/{auth-prompt-store-CmyRhcKh.js → auth-prompt-store-2KB0Hew5.js} +0 -0
  409. /package/dist/public/assets/{chunk-KEIR6QF5-Bf0oDx3Z.js → chunk-KEIR6QF5-Cvu_RfZc.js} +0 -0
  410. /package/dist/public/assets/{chunk-Y2CYZVJY-PbmsUfAu.js → chunk-Y2CYZVJY-BavonG01.js} +0 -0
  411. /package/dist/public/assets/{clike-BrXLgO2o.js → clike-BTKURkAr.js} +0 -0
  412. /package/dist/public/assets/{clipboard-adapter-B3lKEXcw.js → clipboard-adapter-Brbch5VX.js} +0 -0
  413. /package/dist/public/assets/{colors-B-WRw0bG.js → colors-DThYSuj1.js} +0 -0
  414. /package/dist/public/assets/{copilot-BkvifxDd.js → copilot-_tsUyzgD.js} +0 -0
  415. /package/dist/public/assets/{cursor-D-FuCbK1.js → cursor-D_UKSHL6.js} +0 -0
  416. /package/dist/public/assets/{cytoscape.esm-BkIkmBTc.js → cytoscape.esm-CcKBPOPz.js} +0 -0
  417. /package/dist/public/assets/{defaultLocale-DoD61tXl.js → defaultLocale-Bj1aksfd.js} +0 -0
  418. /package/dist/public/assets/{desktop-bridge-types-5ScET3Cg.js → desktop-bridge-types-cNTLS5xb.js} +0 -0
  419. /package/dist/public/assets/{diff-DTEjW6Ec.js → diff-CC9Zbhye.js} +0 -0
  420. /package/dist/public/assets/{dist-D4eaXg-1.js → dist-BKO-SihH.js} +0 -0
  421. /package/dist/public/assets/{dist-BVbCw0G-.js → dist-BNVxnBBw.js} +0 -0
  422. /package/dist/public/assets/{dist-CA7QPULb.js → dist-CublDHOR.js} +0 -0
  423. /package/dist/public/assets/{dist-DuwTJb1j.js → dist-Du3GTGo5.js} +0 -0
  424. /package/dist/public/assets/{dist-6Q9yuoli.js → dist-pl6OT5yc.js} +0 -0
  425. /package/dist/public/assets/{documents-fetch-AfOPbdF_.js → documents-fetch-D4kwvrzo.js} +0 -0
  426. /package/dist/public/assets/{external-link-LAxhzgCI.js → external-link-CKZFgCFq.js} +0 -0
  427. /package/dist/public/assets/{file-tree-rename-validation-CkkVvtpx.js → file-tree-rename-validation-BH8L3cc3.js} +0 -0
  428. /package/dist/public/assets/{format-Bj7zR862.js → format-DAPkd5Gj.js} +0 -0
  429. /package/dist/public/assets/{go-D3-a1upg.js → go-BOoSlAXr.js} +0 -0
  430. /package/dist/public/assets/{init-D0AX7DDe.js → init-tTyHApSS.js} +0 -0
  431. /package/dist/public/assets/{isObject-Bs1dF4ay.js → isObject-CS6pZNNk.js} +0 -0
  432. /package/dist/public/assets/{libesm-D5Z2fjiR.js → libesm-COuF-Ycc.js} +0 -0
  433. /package/dist/public/assets/{lint-plugin-meta-DEfDN-Lf.js → lint-plugin-meta-BxfSlkph.js} +0 -0
  434. /package/dist/public/assets/{lru-string-cache-CHVwK1CS.js → lru-string-cache-DXyh0UqD.js} +0 -0
  435. /package/dist/public/assets/{lua-B71IklsF.js → lua-Dxo01oIG.js} +0 -0
  436. /package/dist/public/assets/{mcp-consent-store-B7QM8uoo.js → mcp-consent-store-BivjPpLe.js} +0 -0
  437. /package/dist/public/assets/{min-nSRrTGDE.js → min-B52VabRz.js} +0 -0
  438. /package/dist/public/assets/{overlay-layers-cTOQ-1PW.js → overlay-layers-DGwgwjHg.js} +0 -0
  439. /package/dist/public/assets/{panzoom.es-D_Inq3Bn.js → panzoom.es-JQqfaE6_.js} +0 -0
  440. /package/dist/public/assets/{parse-api-error-CqQte8A1.js → parse-api-error-CGRziNbI.js} +0 -0
  441. /package/dist/public/assets/{path-rUjnF-It.js → path-BTSnI4V0.js} +0 -0
  442. /package/dist/public/assets/{pdf-B6i840eQ.js → pdf-DDNlrbvd.js} +0 -0
  443. /package/dist/public/assets/{pdf.worker-BVtQmJKT.js → pdf.worker-MgQT7Lb-.js} +0 -0
  444. /package/dist/public/assets/{perl-B5Ul8OcV.js → perl-L_d0-K7D.js} +0 -0
  445. /package/dist/public/assets/{properties-CWbs0haa.js → properties-B1mL7FEj.js} +0 -0
  446. /package/dist/public/assets/{r-DcrAlDW2.js → r-D1HJ6WJD.js} +0 -0
  447. /package/dist/public/assets/{rough.esm-BfebUORF.js → rough.esm-FREjYXwx.js} +0 -0
  448. /package/dist/public/assets/{ruby-i1xYQ9jV.js → ruby-BWJ7ZkjF.js} +0 -0
  449. /package/dist/public/assets/{share-metadata-rows-D1HTNYwn.js → share-metadata-rows-c17l05D6.js} +0 -0
  450. /package/dist/public/assets/{shell-cUw_P8eQ.js → shell-ul8ysUs1.js} +0 -0
  451. /package/dist/public/assets/{sortable.esm-ByX1chKY.js → sortable.esm-BuA5-2It.js} +0 -0
  452. /package/dist/public/assets/{sql-xiwUJ94E.js → sql-BJVFbIWu.js} +0 -0
  453. /package/dist/public/assets/{src-DkpCd49O.js → src-CIOeKeVw.js} +0 -0
  454. /package/dist/public/assets/{startup-marks-BHZdrXwz.js → startup-marks-Bl-kvAXX.js} +0 -0
  455. /package/dist/public/assets/{stex-rJmw0eOd.js → stex-WCjgSIWy.js} +0 -0
  456. /package/dist/public/assets/{swift-Cl1DeyT6.js → swift-BmJYIPlb.js} +0 -0
  457. /package/dist/public/assets/{thread-draft-staging-CygDRDTa.js → thread-draft-staging-Df0IT4FR.js} +0 -0
  458. /package/dist/public/assets/{timeline-diff-store-C89mH-2r.js → timeline-diff-store-B-Ea84Rl.js} +0 -0
  459. /package/dist/public/assets/{toml-B2JpJCpy.js → toml-BOOm8Wvq.js} +0 -0
  460. /package/dist/public/assets/{use-installed-clis-BR1AXhaE.js → use-installed-clis-BpdGnrVu.js} +0 -0
  461. /package/dist/public/assets/{useLintConfigViewMode-eMibVVkV.js → useLintConfigViewMode-15VleUG7.js} +0 -0
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-BiRV80uZ.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-wbFLvDA-.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-wbFLvDA-.js";var t=e(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-wbFLvDA-.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-wbFLvDA-.js";var t=e(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./chunk-Y2CYZVJY-BavonG01.js";var t=class{constructor(e){this.init=e,this.records=this.init()}static{e(this,`ImperativeState`)}reset(){this.records=this.init()}};export{t};
@@ -1 +1 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-PbmsUfAu.js";import"./src-DsJU4LsJ.js";import{j as t}from"./chunk-WYO6CB5R-DAcO6KqN.js";import{C as n}from"./src-DkpCd49O.js";import{t as r}from"./dist-D4eaXg-1.js";var i=r(),a=e((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),o=e((e,t)=>{a(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),s=e((e,n)=>{let r=n.text.replace(t,` `),i=e.append(`text`);i.attr(`x`,n.x),i.attr(`y`,n.y),i.attr(`class`,`legend`),i.style(`text-anchor`,n.anchor),n.class&&i.attr(`class`,n.class);let a=i.append(`tspan`);return a.attr(`x`,n.x+n.textMargin*2),a.text(r),i},`drawText`),c=e((e,t,n,r)=>{let a=e.append(`image`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,o)},`drawImage`),l=e((e,t,n,r)=>{let a=e.append(`use`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,`#${o}`)},`drawEmbeddedImage`),u=e(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),d=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),f=e(()=>{let e=n(`.mermaidTooltip`);return e.empty()&&(e=n(`body`).append(`div`).attr(`class`,`mermaidTooltip`).style(`opacity`,0).style(`position`,`absolute`).style(`text-align`,`center`).style(`max-width`,`200px`).style(`padding`,`2px`).style(`font-size`,`12px`).style(`background`,`#ffffde`).style(`border`,`1px solid #333`).style(`border-radius`,`2px`).style(`pointer-events`,`none`).style(`z-index`,`100`)),e},`createTooltip`);export{a,d as c,c as i,o as n,s as o,l as r,u as s,f as t};
1
+ import{n as e}from"./chunk-Y2CYZVJY-BavonG01.js";import"./src-DFZupjZD.js";import{j as t}from"./chunk-WYO6CB5R-BMZjhy31.js";import{C as n}from"./src-CIOeKeVw.js";import{t as r}from"./dist-BKO-SihH.js";var i=r(),a=e((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),o=e((e,t)=>{a(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),s=e((e,n)=>{let r=n.text.replace(t,` `),i=e.append(`text`);i.attr(`x`,n.x),i.attr(`y`,n.y),i.attr(`class`,`legend`),i.style(`text-anchor`,n.anchor),n.class&&i.attr(`class`,n.class);let a=i.append(`tspan`);return a.attr(`x`,n.x+n.textMargin*2),a.text(r),i},`drawText`),c=e((e,t,n,r)=>{let a=e.append(`image`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,o)},`drawImage`),l=e((e,t,n,r)=>{let a=e.append(`use`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,i.sanitizeUrl)(r);a.attr(`xlink:href`,`#${o}`)},`drawEmbeddedImage`),u=e(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),d=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),f=e(()=>{let e=n(`.mermaidTooltip`);return e.empty()&&(e=n(`body`).append(`div`).attr(`class`,`mermaidTooltip`).style(`opacity`,0).style(`position`,`absolute`).style(`text-align`,`center`).style(`max-width`,`200px`).style(`padding`,`2px`).style(`font-size`,`12px`).style(`background`,`#ffffde`).style(`border`,`1px solid #333`).style(`border-radius`,`2px`).style(`pointer-events`,`none`).style(`z-index`,`100`)),e},`createTooltip`);export{a,d as c,c as i,o as n,s as o,l as r,u as s,f as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-PbmsUfAu.js";import{t}from"./src-DsJU4LsJ.js";import{T as n,b as r,x as i}from"./chunk-WYO6CB5R-DAcO6KqN.js";import{C as a}from"./src-DkpCd49O.js";import{$ as o,J as s,K as c,Q as l,X as u,Y as d,Z as f,et as p,g as m,nt as h,q as g,rt as _,tt as v,u as y}from"./chunk-ICXQ74PX-B_iuJAXS.js";import{t as b}from"./line-D0lohJ6a.js";import{n as x}from"./chunk-Q4XR5HBZ--1adMSrR.js";import{i as S,n as ee,r as C,t as w}from"./chunk-7BUUIJ7U-Bwj5weSU.js";import{n as T}from"./chunk-OGEWGWER-dIUHPavN.js";import{i as E,n as D}from"./chunk-C7G6YPKG-JOVwaeql.js";import{t as te}from"./rough.esm-BfebUORF.js";import{r as O}from"./chunk-ZGVPDNZ5-CnXHsnX3.js";var ne=e((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&j(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&j(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),k={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},A=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],j=e((e,n,r,i,a,o,s=!1,c)=>{let l=k[r],u=l&&A.includes(l.type);if(!l){t.warn(`Unknown arrow type: ${r}`);return}let d=`${a}_${o}-${l.type}${n===`start`?`Start`:`End`}${s&&u?`-margin`:``}`;if(c&&c.trim()!==``){let t=`${d}_${c.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(t)){let e=document.getElementById(d);if(e){let n=e.cloneNode(!0);n.id=t,n.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,c),l.fill&&e.setAttribute(`fill`,c)}),e.parentNode?.appendChild(n)}}e.attr(`marker-${n}`,`url(${i}#${t})`)}else e.attr(`marker-${n}`,`url(${i}#${d})`)},`addEdgeMarker`),re=e(e=>typeof e==`string`?e:i()?.flowchart?.curve,`resolveEdgeCurveType`),M=new Map,N=new Map,P=e(()=>{M.clear(),N.clear()},`clear`),F=e(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),I=e(async(e,r)=>{let o=i(),s=n(o),{labelStyles:c}=E(r);r.labelStyle=c;let l=e.insert(`g`).attr(`class`,`edgeLabel`),u=l.insert(`g`).attr(`class`,`label`).attr(`data-id`,r.id),d=r.labelType===`markdown`,f=await x(e,r.label,{style:F(r.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:d,width:void 0},o);u.node().appendChild(f),t.info(`abc82`,r,r.labelType);let p=f.getBBox(),m=p;if(s){let e=f.children[0],t=a(f);p=e.getBoundingClientRect(),m=p,t.attr(`width`,p.width),t.attr(`height`,p.height)}else{let e=a(f).select(`text`).node();e&&typeof e.getBBox==`function`&&(m=e.getBBox())}u.attr(`transform`,w(m,s)),M.set(r.id,l),r.width=p.width,r.height=p.height;let h;if(r.startLabelLeft){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),n=t.insert(`g`).attr(`class`,`inner`),i=await O(n,r.startLabelLeft,F(r.labelStyle)||``,!1,!1);h=i;let o=i.getBBox();if(s){let e=i.children[0],t=a(i);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}n.attr(`transform`,w(o,s)),N.get(r.id)||N.set(r.id,{}),N.get(r.id).startLeft=t,L(h,r.startLabelLeft)}if(r.startLabelRight){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),n=t.insert(`g`).attr(`class`,`inner`),i=await O(n,r.startLabelRight,F(r.labelStyle)||``,!1,!1);h=i;let o=i.getBBox();if(s){let e=i.children[0],t=a(i);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}n.attr(`transform`,w(o,s)),N.get(r.id)||N.set(r.id,{}),N.get(r.id).startRight=t,L(h,r.startLabelRight)}if(r.endLabelLeft){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),n=t.insert(`g`).attr(`class`,`inner`),i=await O(t,r.endLabelLeft,F(r.labelStyle)||``,!1,!1);h=i;let o=i.getBBox();if(s){let e=i.children[0],t=a(i);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}n.attr(`transform`,w(o,s)),N.get(r.id)||N.set(r.id,{}),N.get(r.id).endLeft=t,L(h,r.endLabelLeft)}if(r.endLabelRight){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),n=t.insert(`g`).attr(`class`,`inner`),i=await O(t,r.endLabelRight,F(r.labelStyle)||``,!1,!1);h=i;let o=i.getBBox();if(s){let e=i.children[0],t=a(i);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}n.attr(`transform`,w(o,s)),N.get(r.id)||N.set(r.id,{}),N.get(r.id).endRight=t,L(h,r.endLabelRight)}return f},`insertEdgeLabel`);function L(e,t){n(i())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}e(L,`setTerminalWidth`);var R=e((e,n)=>{t.debug(`Moving label abc88 `,e.id,e.label,M.get(e.id),n);let r=n.updatedPath?n.updatedPath:n.originalPath,{subGraphTitleTotalMargin:a}=T(i());if(e.label){let i=M.get(e.id),o=e.x,s=e.y;if(r){let i=m.calcLabelPosition(r);t.debug(`Moving label `+e.label+` from (`,o,`,`,s,`) to (`,i.x,`,`,i.y,`) abc88`),n.updatedPath&&(o=i.x,s=i.y)}i.attr(`transform`,`translate(${o}, ${s+a/2})`)}if(e.startLabelLeft){let t=N.get(e.id).startLeft,n=e.x,i=e.y;if(r){let t=m.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.startLabelRight){let t=N.get(e.id).startRight,n=e.x,i=e.y;if(r){let t=m.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelLeft){let t=N.get(e.id).endLeft,n=e.x,i=e.y;if(r){let t=m.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelRight){let t=N.get(e.id).endRight,n=e.x,i=e.y;if(r){let t=m.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}},`positionEdgeLabel`),ie=e((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith(`-to-label`)||!Array.isArray(t)||t.length!==2)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},`orthogonalizeToLabelClippedPoints`),z=e((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),B=e((e,n,r)=>{t.debug(`intersection calc abc89:
1
+ import{n as e}from"./chunk-Y2CYZVJY-BavonG01.js";import{t}from"./src-DFZupjZD.js";import{T as n,b as r,x as i}from"./chunk-WYO6CB5R-BMZjhy31.js";import{C as a}from"./src-CIOeKeVw.js";import{$ as o,J as s,K as c,Q as l,X as u,Y as d,Z as f,et as p,g as m,nt as h,q as g,rt as _,tt as v,u as y}from"./chunk-ICXQ74PX-QBz75RJe.js";import{t as b}from"./line-DWKLErsv.js";import{n as x}from"./chunk-Q4XR5HBZ-FwXZQ9hY.js";import{i as S,n as ee,r as C,t as w}from"./chunk-7BUUIJ7U-nkQ2KUUq.js";import{n as T}from"./chunk-OGEWGWER-D9rNoxcC.js";import{i as E,n as D}from"./chunk-C7G6YPKG-DeJ7KSfD.js";import{t as te}from"./rough.esm-FREjYXwx.js";import{r as O}from"./chunk-ZGVPDNZ5-DN7h9evR.js";var ne=e((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&j(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&j(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),k={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},A=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],j=e((e,n,r,i,a,o,s=!1,c)=>{let l=k[r],u=l&&A.includes(l.type);if(!l){t.warn(`Unknown arrow type: ${r}`);return}let d=`${a}_${o}-${l.type}${n===`start`?`Start`:`End`}${s&&u?`-margin`:``}`;if(c&&c.trim()!==``){let t=`${d}_${c.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(t)){let e=document.getElementById(d);if(e){let n=e.cloneNode(!0);n.id=t,n.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,c),l.fill&&e.setAttribute(`fill`,c)}),e.parentNode?.appendChild(n)}}e.attr(`marker-${n}`,`url(${i}#${t})`)}else e.attr(`marker-${n}`,`url(${i}#${d})`)},`addEdgeMarker`),re=e(e=>typeof e==`string`?e:i()?.flowchart?.curve,`resolveEdgeCurveType`),M=new Map,N=new Map,P=e(()=>{M.clear(),N.clear()},`clear`),F=e(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),I=e(async(e,r)=>{let o=i(),s=n(o),{labelStyles:c}=E(r);r.labelStyle=c;let l=e.insert(`g`).attr(`class`,`edgeLabel`),u=l.insert(`g`).attr(`class`,`label`).attr(`data-id`,r.id),d=r.labelType===`markdown`,f=await x(e,r.label,{style:F(r.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:d,width:void 0},o);u.node().appendChild(f),t.info(`abc82`,r,r.labelType);let p=f.getBBox(),m=p;if(s){let e=f.children[0],t=a(f);p=e.getBoundingClientRect(),m=p,t.attr(`width`,p.width),t.attr(`height`,p.height)}else{let e=a(f).select(`text`).node();e&&typeof e.getBBox==`function`&&(m=e.getBBox())}u.attr(`transform`,w(m,s)),M.set(r.id,l),r.width=p.width,r.height=p.height;let h;if(r.startLabelLeft){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),n=t.insert(`g`).attr(`class`,`inner`),i=await O(n,r.startLabelLeft,F(r.labelStyle)||``,!1,!1);h=i;let o=i.getBBox();if(s){let e=i.children[0],t=a(i);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}n.attr(`transform`,w(o,s)),N.get(r.id)||N.set(r.id,{}),N.get(r.id).startLeft=t,L(h,r.startLabelLeft)}if(r.startLabelRight){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),n=t.insert(`g`).attr(`class`,`inner`),i=await O(n,r.startLabelRight,F(r.labelStyle)||``,!1,!1);h=i;let o=i.getBBox();if(s){let e=i.children[0],t=a(i);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}n.attr(`transform`,w(o,s)),N.get(r.id)||N.set(r.id,{}),N.get(r.id).startRight=t,L(h,r.startLabelRight)}if(r.endLabelLeft){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),n=t.insert(`g`).attr(`class`,`inner`),i=await O(t,r.endLabelLeft,F(r.labelStyle)||``,!1,!1);h=i;let o=i.getBBox();if(s){let e=i.children[0],t=a(i);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}n.attr(`transform`,w(o,s)),N.get(r.id)||N.set(r.id,{}),N.get(r.id).endLeft=t,L(h,r.endLabelLeft)}if(r.endLabelRight){let t=e.insert(`g`).attr(`class`,`edgeTerminals`),n=t.insert(`g`).attr(`class`,`inner`),i=await O(t,r.endLabelRight,F(r.labelStyle)||``,!1,!1);h=i;let o=i.getBBox();if(s){let e=i.children[0],t=a(i);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}n.attr(`transform`,w(o,s)),N.get(r.id)||N.set(r.id,{}),N.get(r.id).endRight=t,L(h,r.endLabelRight)}return f},`insertEdgeLabel`);function L(e,t){n(i())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}e(L,`setTerminalWidth`);var R=e((e,n)=>{t.debug(`Moving label abc88 `,e.id,e.label,M.get(e.id),n);let r=n.updatedPath?n.updatedPath:n.originalPath,{subGraphTitleTotalMargin:a}=T(i());if(e.label){let i=M.get(e.id),o=e.x,s=e.y;if(r){let i=m.calcLabelPosition(r);t.debug(`Moving label `+e.label+` from (`,o,`,`,s,`) to (`,i.x,`,`,i.y,`) abc88`),n.updatedPath&&(o=i.x,s=i.y)}i.attr(`transform`,`translate(${o}, ${s+a/2})`)}if(e.startLabelLeft){let t=N.get(e.id).startLeft,n=e.x,i=e.y;if(r){let t=m.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.startLabelRight){let t=N.get(e.id).startRight,n=e.x,i=e.y;if(r){let t=m.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelLeft){let t=N.get(e.id).endLeft,n=e.x,i=e.y;if(r){let t=m.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}if(e.endLabelRight){let t=N.get(e.id).endRight,n=e.x,i=e.y;if(r){let t=m.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,r);n=t.x,i=t.y}t.attr(`transform`,`translate(${n}, ${i})`)}},`positionEdgeLabel`),ie=e((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith(`-to-label`)||!Array.isArray(t)||t.length!==2)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},`orthogonalizeToLabelClippedPoints`),z=e((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),B=e((e,n,r)=>{t.debug(`intersection calc abc89:
2
2
  outsidePoint: ${JSON.stringify(n)}
3
3
  insidePoint : ${JSON.stringify(r)}
4
4
  node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,a=e.y,o=Math.abs(i-r.x),s=e.width/2,c=r.x<n.x?s-o:s+o,l=e.height/2,u=Math.abs(n.y-r.y),d=Math.abs(n.x-r.x);if(Math.abs(a-n.y)*s>Math.abs(i-n.x)*l){let e=r.y<n.y?n.y-l-a:a-l-n.y;c=d*e/u;let i={x:r.x<n.x?r.x+c:r.x-d+c,y:r.y<n.y?r.y+u-e:r.y-u+e};return c===0&&(i.x=n.x,i.y=n.y),d===0&&(i.x=n.x),u===0&&(i.y=n.y),t.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${c}`,i),i}else{c=r.x<n.x?n.x-s-i:i-s-n.x;let e=u*c/d,a=r.x<n.x?r.x+d-c:r.x-d+c,o=r.y<n.y?r.y+e:r.y-e;return t.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`,{_x:a,_y:o}),c===0&&(a=n.x,o=n.y),d===0&&(a=n.x),u===0&&(o=n.y),{x:a,y:o}}},`intersection`),V=e((e,n)=>{t.warn(`abc88 cutPathAtIntersect`,e,n);let r=[],i=e[0],a=!1;return e.forEach(e=>{if(t.info(`abc88 checking point`,e,n),!z(n,e)&&!a){let o=B(n,i,e);t.debug(`abc88 inside`,e,i,o),t.debug(`abc88 intersection`,o,n);let s=!1;r.forEach(e=>{s||=e.x===o.x&&e.y===o.y}),r.some(e=>e.x===o.x&&e.y===o.y)?t.warn(`abc88 no intersect`,o,r):r.push(o),a=!0}else t.warn(`abc88 outside`,e,i),i=e,a||r.push(e)}),t.debug(`returning points`,r),r},`cutPathAtIntersect`);function H(e){let t=[],n=[];for(let r=1;r<e.length-1;r++){let i=e[r-1],a=e[r],o=e[r+1];(i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}e(H,`extractCornerPoints`);var U=e(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),ae=e(function(e){let{cornerPointPositions:n}=H(e),r=[];for(let i=0;i<e.length;i++)if(n.includes(i)){let n=e[i-1],a=e[i+1],o=e[i],s=U(n,o,5),c=U(a,o,5),l=c.x-s.x,u=c.y-s.y;r.push(s);let d=Math.sqrt(2)*2,f={x:o.x,y:o.y};Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10?(t.debug(`Corner point fixing`,Math.abs(a.x-n.x),Math.abs(a.y-n.y)),f=o.x===s.x?{x:l<0?s.x-5+d:s.x+5-d,y:u<0?s.y-d:s.y+d}:{x:l<0?s.x-d:s.x+d,y:u<0?s.y-5+d:s.y+5-d}):t.debug(`Corner point skipping fixing`,Math.abs(a.x-n.x),Math.abs(a.y-n.y)),r.push(f,c)}else r.push(e[i]);return r},`fixCorners`),oe=e((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(i).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),W=e(function(e,n,r,x,C,w,T,E=!1){if(!T)throw Error(`insertEdge: missing diagramId for edge "${n.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:O,layout:k}=i(),A=n.points,j=!1,M=C;var N=w;let P=[];for(let e in n.cssCompiledStyles)D(e)||P.push(n.cssCompiledStyles[e]);if(k===`swimlane`){if(N.intersect&&M.intersect&&Array.isArray(A)&&A.length>=2)if(A.length===2)A=[M.intersect(A[0]),N.intersect(A[1])];else{let e=A.slice(1,-1),t=e[0],n=e[e.length-1],r=.5,i=Math.abs(A[A.length-1].x-n.x)<r&&Math.abs(A[A.length-1].y-n.y)<r,a=M.intersect(t),o=i?n:N.intersect(n),s=Math.abs(o.x-n.x)<r&&Math.abs(o.y-n.y)<r,c=Math.abs(a.x-t.x)<r&&Math.abs(a.y-t.y)<r?[]:[a],l=s?[]:[o];A=[...c,...e,...l]}A=ie(n,A)}else N.intersect&&M.intersect&&!E&&(A=A.slice(1,n.points.length-1),A.unshift(M.intersect(A[0])),A.push(N.intersect(A[A.length-1])));let F=btoa(JSON.stringify(A));n.toCluster&&(t.info(`to cluster abc88`,r.get(n.toCluster)),A=V(n.points,r.get(n.toCluster).node),j=!0),n.fromCluster&&(t.debug(`from cluster abc88`,r.get(n.fromCluster),JSON.stringify(A,null,2)),A=V(A.reverse(),r.get(n.fromCluster).node).reverse(),j=!0);let I=A.filter(e=>!Number.isNaN(e.y)),L=re(n.curve);L!==`rounded`&&(I=ae(I));let R=_;switch(L){case`linear`:R=_;break;case`basis`:R=p;break;case`cardinal`:R=o;break;case`bumpX`:R=v;break;case`bumpY`:R=h;break;case`catmullRom`:R=l;break;case`monotoneX`:R=u;break;case`monotoneY`:R=f;break;case`natural`:R=d;break;case`step`:R=s;break;case`stepAfter`:R=c;break;case`stepBefore`:R=g;break;case`rounded`:R=_;break;default:R=p}let{x:z,y:B}=ee(n),H=b().x(z).y(B).curve(R),U;switch(n.thickness){case`normal`:U=`edge-thickness-normal`;break;case`thick`:U=`edge-thickness-thick`;break;case`invisible`:U=`edge-thickness-invisible`;break;default:U=`edge-thickness-normal`}switch(n.pattern){case`solid`:U+=` edge-pattern-solid`;break;case`dotted`:U+=` edge-pattern-dotted`;break;case`dashed`:U+=` edge-pattern-dashed`;break;default:U+=` edge-pattern-solid`}let W,K=L===`rounded`?G(q(I,n),5):H(I),J=Array.isArray(n.style)?n.style:[n.style],Y=J.find(e=>e?.startsWith(`stroke:`)),X=``;n.animate&&(X=`edge-animation-fast`),n.animation&&(X=`edge-animation-`+n.animation);let Z=!1;if(n.look===`handDrawn`){let t=te.svg(e);Object.assign([],I);let r=t.path(K,{roughness:.3,seed:O});U+=` transition`,W=a(r).select(`path`).attr(`id`,`${T}-${n.id}`).attr(`class`,` `+U+(n.classes?` `+n.classes:``)+(X?` `+X:``)).attr(`style`,J?J.reduce((e,t)=>e+`;`+t,``):``);let i=W.attr(`d`);W.attr(`d`,i),e.node().appendChild(W.node())}else{let t=P.join(`;`),r=J?J.reduce((e,t)=>e+t+`;`,``):``,i=(t?t+`;`+r+`;`:r)+`;`+(J?J.reduce((e,t)=>e+`;`+t,``):``);W=e.append(`path`).attr(`d`,K).attr(`id`,`${T}-${n.id}`).attr(`class`,` `+U+(n.classes?` `+n.classes:``)+(X?` `+X:``)).attr(`style`,i),Y=i.match(/stroke:([^;]+)/)?.[1],Z=n.animate===!0||!!n.animation||t.includes(`animation`);let a=W.node(),o=typeof a.getTotalLength==`function`?a.getTotalLength():0,s=S[n.arrowTypeStart]||0,c=S[n.arrowTypeEnd]||0;if(n.look===`neo`&&!Z){let e=`stroke-dasharray: ${n.pattern===`dotted`||n.pattern===`dashed`?oe(o,s,c):`0 ${s} ${o-s-c} ${c}`}; stroke-dashoffset: 0;`;W.attr(`style`,e+W.attr(`style`))}}W.attr(`data-edge`,!0),W.attr(`data-et`,`edge`),W.attr(`data-id`,n.id),W.attr(`data-points`,F),W.attr(`data-look`,y(n.look)),n.showPoints&&I.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let Q=``;(i().flowchart.arrowMarkerAbsolute||i().state.arrowMarkerAbsolute)&&(Q=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,Q=Q.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),t.info(`arrowTypeStart`,n.arrowTypeStart),t.info(`arrowTypeEnd`,n.arrowTypeEnd);let se=!Z&&n?.look===`neo`;ne(W,n,Q,T,x,se,Y);let ce=Math.floor(A.length/2),le=A[ce];m.isLabelCoordinateInPath(le,W.attr(`d`))||(j=!0);let $={};return j&&($.updatedPath=A),$.originalPath=n.points,$},`insertEdge`);function G(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a<r;a++){let o=e[a],s=e[a-1],c=e[a+1];if(a===0)n+=`M${o.x},${o.y}`;else if(a===r-1)n+=`L${o.x},${o.y}`;else{let e=o.x-s.x,r=o.y-s.y,a=c.x-o.x,l=c.y-o.y,u=Math.hypot(e,r),d=Math.hypot(a,l);if(u<i||d<i){n+=`L${o.x},${o.y}`;continue}let f=e/u,p=r/u,m=a/d,h=l/d,g=f*m+p*h,_=Math.acos(Math.max(-1,Math.min(1,g)));if(_<i||Math.abs(Math.PI-_)<i){n+=`L${o.x},${o.y}`;continue}let v=Math.min(t/Math.sin(_/2),u/2,d/2),y=o.x-f*v,b=o.y-p*v,x=o.x+m*v,S=o.y+h*v;n+=`L${y},${b}`,n+=`Q${o.x},${o.y} ${x},${S}`}}return n}e(G,`generateRoundedPath`);function K(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let n=t.x-e.x,r=t.y-e.y;return{angle:Math.atan2(r,n),deltaX:n,deltaY:r}}e(K,`calculateDeltaAndAngle`);function q(e,t){let n=e.map(e=>({...e}));if(e.length>=2&&C[t.arrowTypeStart]){let r=C[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=K(i,a),s=r*Math.cos(o),c=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+c}let r=e.length;if(r>=2&&C[t.arrowTypeEnd]){let i=C[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=K(o,a),c=i*Math.cos(s),l=i*Math.sin(s);n[r-1].x=a.x-c,n[r-1].y=a.y-l}return n}e(q,`applyMarkerOffsetsToPoints`);var J=e((e,t,n,r)=>{t.forEach(t=>{Y[t](e,n,r)})},`insertMarkers`),Y={extension:e((e,n,r)=>{t.trace(`Making markers for `,r),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionStart`).attr(`class`,`marker extension `+n).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionEnd`).attr(`class`,`marker extension `+n).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,r+`_`+n+`-extensionStart-margin`).attr(`class`,`marker extension `+n).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,7 18,13 18,1`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`),e.append(`defs`).append(`marker`).attr(`id`,r+`_`+n+`-extensionEnd-margin`).attr(`class`,`marker extension `+n).attr(`refX`,9).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,1 10,13 18,7`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`)},`extension`),composition:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`viewBox`,`0 0 15 15`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).attr(`refX`,3.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,4).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,16).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2)},`lollipop`),point:e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,11.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 11.5 7 L 0 14 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,1).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0,7 11.5,14 11.5,0`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`point`),circle:e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refY`,5).attr(`refX`,12.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`circle`),cross:e((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,17.7).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,-3.5).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5).style(`stroke-dasharray`,`1,0`)},`cross`),barb:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`),barbNeo:e((e,t,n)=>{let{themeVariables:i}=r(),{transitionColor:a}=i;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd-margin`).attr(`refX`,17).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`).attr(`fill`,`${a}`)},`barbNeo`),only_one:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`)},`only_one`),zero_or_one:e((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`)},`one_or_more`),zero_or_more:e((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),only_one_neo:e((e,t,n)=>{let{themeVariables:i}=r(),{strokeWidth:a}=i;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`).attr(`stroke-width`,`${a}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`).attr(`stroke-width`,`${a}`)},`only_one_neo`),zero_or_one_neo:e((e,t,n)=>{let{themeVariables:i}=r(),{strokeWidth:a,mainBkg:o}=i,s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${a}`).attr(`r`,6),s.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${a}`);let c=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);c.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${a}`).attr(`r`,6),c.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${a}`)},`zero_or_one_neo`),one_or_more_neo:e((e,t,n)=>{let{themeVariables:i}=r(),{strokeWidth:a}=i;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`).attr(`stroke-width`,`${a}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`).attr(`stroke-width`,`${a}`)},`one_or_more_neo`),zero_or_more_neo:e((e,t,n)=>{let{themeVariables:i}=r(),{strokeWidth:a,mainBkg:o}=i,s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${a}`),s.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${a}`);let c=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);c.append(`circle`).attr(`fill`,o??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${a}`),c.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${a}`)},`zero_or_more_neo`),requirement_arrow:e((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,0
@@ -1 +1 @@
1
- import{C as e,S as t,b as n,n as r,o as i,u as a,w as o,x as s}from"./chunk-KEIR6QF5-Bf0oDx3Z.js";var c=class extends r{static{s(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},l={parser:{ValueConverter:s(()=>new c,`ValueConverter`)}};function u(r=i){let s=o(e(r),a),c=o(t({shared:s}),n,l);return s.ServiceRegistry.register(c),{shared:s,Wardley:c}}s(u,`createWardleyServices`);export{u as n,l as t};
1
+ import{C as e,S as t,b as n,n as r,o as i,u as a,w as o,x as s}from"./chunk-KEIR6QF5-Cvu_RfZc.js";var c=class extends r{static{s(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},l={parser:{ValueConverter:s(()=>new c,`ValueConverter`)}};function u(r=i){let s=o(e(r),a),c=o(t({shared:s}),n,l);return s.ServiceRegistry.register(c),{shared:s,Wardley:c}}s(u,`createWardleyServices`);export{u as n,l as t};
@@ -1 +1 @@
1
- import{C as e,S as t,m as n,n as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-Bf0oDx3Z.js";var l=class extends a{static{c(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},u=class extends r{static{c(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},d={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new u,`ValueConverter`)}};function f(r=i){let a=s(e(r),o),c=s(t({shared:a}),n,d);return a.ServiceRegistry.register(c),{shared:a,RailroadAbnf:c}}c(f,`createRailroadAbnfServices`);export{f as n,d as t};
1
+ import{C as e,S as t,m as n,n as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-Cvu_RfZc.js";var l=class extends a{static{c(this,`RailroadAbnfTokenBuilder`)}constructor(){super([`railroad-abnf-beta`])}},u=class extends r{static{c(this,`RailroadAbnfValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},d={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new u,`ValueConverter`)}};function f(r=i){let a=s(e(r),o),c=s(t({shared:a}),n,d);return a.ServiceRegistry.register(c),{shared:a,RailroadAbnf:c}}c(f,`createRailroadAbnfServices`);export{f as n,d as t};
@@ -1 +1 @@
1
- import{C as e,S as t,i as n,o as r,s as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-Bf0oDx3Z.js";var l=class extends a{static{c(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},u=new Set([`cmd`,`command`]),d=new Set([`evt`,`event`]),f=new Set([`rmo`,`readmodel`]),p=new Set([`pcr`,`processor`]),m=new Set([`ui`]);function h(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}c(h,`registerValidationChecks`);var g=class{static{c(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(u.has(e.modelEntityType)?this.validateSources(e,new Set([...m,...p]),`command`,`ui or processor`,t):d.has(e.modelEntityType)?this.validateSources(e,u,`event`,`command`,t):f.has(e.modelEntityType)?this.validateSources(e,d,`read model`,`event`,t):p.has(e.modelEntityType)?this.validateSources(e,f,`processor`,`read model`,t):m.has(e.modelEntityType)&&this.validateSources(e,f,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},_={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new n,`ValueConverter`)},validation:{EventModelingValidator:c(()=>new g,`EventModelingValidator`)}};function v(n=r){let a=s(e(n),o),c=s(t({shared:a}),i,_);return a.ServiceRegistry.register(c),h(c),{shared:a,EventModel:c}}c(v,`createEventModelingServices`);export{v as n,_ as t};
1
+ import{C as e,S as t,i as n,o as r,s as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-Cvu_RfZc.js";var l=class extends a{static{c(this,`EventModelingTokenBuilder`)}constructor(){super([`eventmodeling`])}},u=new Set([`cmd`,`command`]),d=new Set([`evt`,`event`]),f=new Set([`rmo`,`readmodel`]),p=new Set([`pcr`,`processor`]),m=new Set([`ui`]);function h(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}c(h,`registerValidationChecks`);var g=class{static{c(this,`EventModelingValidator`)}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(u.has(e.modelEntityType)?this.validateSources(e,new Set([...m,...p]),`command`,`ui or processor`,t):d.has(e.modelEntityType)?this.validateSources(e,u,`event`,`command`,t):f.has(e.modelEntityType)?this.validateSources(e,d,`read model`,`event`,t):p.has(e.modelEntityType)?this.validateSources(e,f,`processor`,`read model`,t):m.has(e.modelEntityType)&&this.validateSources(e,f,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},_={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new n,`ValueConverter`)},validation:{EventModelingValidator:c(()=>new g,`EventModelingValidator`)}};function v(n=r){let a=s(e(n),o),c=s(t({shared:a}),i,_);return a.ServiceRegistry.register(c),h(c),{shared:a,EventModel:c}}c(v,`createEventModelingServices`);export{v as n,_ as t};
@@ -1,2 +1,2 @@
1
- import{C as e,S as t,g as n,n as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-Bf0oDx3Z.js";var l=class extends a{static{c(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},u=c(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
1
+ import{C as e,S as t,g as n,n as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-Cvu_RfZc.js";var l=class extends a{static{c(this,`RailroadTokenBuilder`)}constructor(){super([`railroad-beta`])}},u=c(e=>{let t=e.slice(1,-1),n=``;for(let e=0;e<t.length;e++){let r=t[e];if(r===`\\`&&e+1<t.length){e++;let r=t[e];switch(r){case`n`:n+=`
2
2
  `;break;case`r`:n+=`\r`;break;case`t`:n+=` `;break;default:n+=r}continue}n+=r}return n},`decodeEscapedString`),d=class extends r{static{c(this,`RailroadValueConverter`)}runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return u(e)}return r}runCustomConverter(e,t,n){if(e.name===`RR_STRING`)return u(t)}},f={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new d,`ValueConverter`)}};function p(r=i){let a=s(e(r),o),c=s(t({shared:a}),n,f);return a.ServiceRegistry.register(c),{shared:a,Railroad:c}}c(p,`createRailroadServices`);export{p as n,f as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-PbmsUfAu.js";var t=e(()=>`
1
+ import{n as e}from"./chunk-Y2CYZVJY-BavonG01.js";var t=e(()=>`
2
2
  /* Font Awesome icon styling - consolidated */
3
3
  .label-icon {
4
4
  display: inline-block;
@@ -1 +1 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-PbmsUfAu.js";var t=e((e,t)=>{if(t)return`translate(`+-e.width/2+`, `+-e.height/2+`)`;let n=e.x??0,r=e.y??0;return`translate(`+-(n+e.width/2)+`, `+-(r+e.height/2)+`)`},`computeLabelTransform`),n={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},r={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function i(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=a(e),t=a(t);let[n,r]=[e.x,e.y],[i,o]=[t.x,t.y],s=i-n,c=o-r;return{angle:Math.atan(c/s),deltaX:s,deltaY:c}}e(i,`calculateDeltaAndAngle`);var a=e(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,`pointTransformer`),o=e(t=>({x:e(function(e,r,o){let s=0,c=a(o[0]).x<a(o[o.length-1]).x?`left`:`right`;if(r===0&&Object.hasOwn(n,t.arrowTypeStart)){let{angle:e,deltaX:r}=i(o[0],o[1]);s=n[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===o.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaX:r}=i(o[o.length-1],o[o.length-2]);s=n[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let l=Math.abs(a(e).x-a(o[o.length-1]).x),u=Math.abs(a(e).y-a(o[o.length-1]).y),d=Math.abs(a(e).x-a(o[0]).x),f=Math.abs(a(e).y-a(o[0]).y),p=n[t.arrowTypeStart],m=n[t.arrowTypeEnd];if(l<m&&l>0&&u<m){let e=m+1-l;e*=c===`right`?-1:1,s-=e}if(d<p&&d>0&&f<p){let e=p+1-d;e*=c===`right`?-1:1,s+=e}return a(e).x+s},`x`),y:e(function(e,r,o){let s=0,c=a(o[0]).y<a(o[o.length-1]).y?`down`:`up`;if(r===0&&Object.hasOwn(n,t.arrowTypeStart)){let{angle:e,deltaY:r}=i(o[0],o[1]);s=n[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===o.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaY:r}=i(o[o.length-1],o[o.length-2]);s=n[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let l=Math.abs(a(e).y-a(o[o.length-1]).y),u=Math.abs(a(e).x-a(o[o.length-1]).x),d=Math.abs(a(e).y-a(o[0]).y),f=Math.abs(a(e).x-a(o[0]).x),p=n[t.arrowTypeStart],m=n[t.arrowTypeEnd];if(l<m&&l>0&&u<m){let e=m+1-l;e*=c===`up`?-1:1,s-=e}if(d<p&&d>0&&f<p){let e=p+1-d;e*=c===`up`?-1:1,s+=e}return a(e).y+s},`y`)}),`getLineFunctionsWithOffset`);export{r as i,o as n,n as r,t};
1
+ import{n as e}from"./chunk-Y2CYZVJY-BavonG01.js";var t=e((e,t)=>{if(t)return`translate(`+-e.width/2+`, `+-e.height/2+`)`;let n=e.x??0,r=e.y??0;return`translate(`+-(n+e.width/2)+`, `+-(r+e.height/2)+`)`},`computeLabelTransform`),n={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},r={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function i(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=a(e),t=a(t);let[n,r]=[e.x,e.y],[i,o]=[t.x,t.y],s=i-n,c=o-r;return{angle:Math.atan(c/s),deltaX:s,deltaY:c}}e(i,`calculateDeltaAndAngle`);var a=e(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,`pointTransformer`),o=e(t=>({x:e(function(e,r,o){let s=0,c=a(o[0]).x<a(o[o.length-1]).x?`left`:`right`;if(r===0&&Object.hasOwn(n,t.arrowTypeStart)){let{angle:e,deltaX:r}=i(o[0],o[1]);s=n[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===o.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaX:r}=i(o[o.length-1],o[o.length-2]);s=n[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let l=Math.abs(a(e).x-a(o[o.length-1]).x),u=Math.abs(a(e).y-a(o[o.length-1]).y),d=Math.abs(a(e).x-a(o[0]).x),f=Math.abs(a(e).y-a(o[0]).y),p=n[t.arrowTypeStart],m=n[t.arrowTypeEnd];if(l<m&&l>0&&u<m){let e=m+1-l;e*=c===`right`?-1:1,s-=e}if(d<p&&d>0&&f<p){let e=p+1-d;e*=c===`right`?-1:1,s+=e}return a(e).x+s},`x`),y:e(function(e,r,o){let s=0,c=a(o[0]).y<a(o[o.length-1]).y?`down`:`up`;if(r===0&&Object.hasOwn(n,t.arrowTypeStart)){let{angle:e,deltaY:r}=i(o[0],o[1]);s=n[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===o.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaY:r}=i(o[o.length-1],o[o.length-2]);s=n[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let l=Math.abs(a(e).y-a(o[o.length-1]).y),u=Math.abs(a(e).x-a(o[o.length-1]).x),d=Math.abs(a(e).y-a(o[0]).y),f=Math.abs(a(e).x-a(o[0]).x),p=n[t.arrowTypeStart],m=n[t.arrowTypeEnd];if(l<m&&l>0&&u<m){let e=m+1-l;e*=c===`up`?-1:1,s-=e}if(d<p&&d>0&&f<p){let e=p+1-d;e*=c===`up`?-1:1,s+=e}return a(e).y+s},`y`)}),`getLineFunctionsWithOffset`);export{r as i,o as n,n as r,t};
@@ -1 +1 @@
1
- import{C as e,S as t,i as n,l as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-Bf0oDx3Z.js";var l=class extends a{static{c(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},u={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new n,`ValueConverter`)}};function d(n=i){let a=s(e(n),o),c=s(t({shared:a}),r,u);return a.ServiceRegistry.register(c),{shared:a,Info:c}}c(d,`createInfoServices`);export{d as n,u as t};
1
+ import{C as e,S as t,i as n,l as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-Cvu_RfZc.js";var l=class extends a{static{c(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},u={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new n,`ValueConverter`)}};function d(n=i){let a=s(e(n),o),c=s(t({shared:a}),r,u);return a.ServiceRegistry.register(c),{shared:a,Info:c}}c(d,`createInfoServices`);export{d as n,u as t};
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./highlighted-body-OFNGDK62-Cue0vPGT.js","./chunk-CYidjpOJ.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./highlighted-body-OFNGDK62-BIipOt-U.js","./chunk-CYidjpOJ.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js"])))=>i.map(i=>d[i]);
2
2
  import{o as e,t}from"./chunk-CYidjpOJ.js";import{t as n}from"./preload-helper-Chd9yIcd.js";import{t as r}from"./jsx-runtime-BUgB2tll.js";import{t as i}from"./react-f2sANaYj.js";import{t as a}from"./react-dom-DPxgxlDT.js";import{n as o,t as s}from"./bundle-mjs-SHeFpKGC.js";import{G as c,H as l,K as u,U as d,V as f,W as p,X as m,Y as h,at as g,ct as _,d as v,dt as y,et as b,f as x,i as S,it as C,j as w,lt as T,n as ee,nt as te,o as ne,ot as re,pt as ie,rt as E,st as ae,t as oe,tt as D,ut as se}from"./lib-RJCjKODX.js";var O=e(i(),1),k={indicator:`indicator`,textOnly:`text-only`,remove:`remove`};function ce({defaultOrigin:e=``,allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a=`inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm`,blockedLinkClass:o=`text-gray-500`,linkBlockPolicy:s=k.indicator,imageBlockPolicy:c=k.indicator}){let l=t.length&&!t.every(e=>e===`*`),u=n.length&&!n.every(e=>e===`*`);if(!e&&(l||u))throw Error(`defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided`);return l=>{let u=ge(e,t,n,r,i,a,o,s,c);fe(l),p(l,u)}}function A(e,t){if(typeof e!=`string`)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`))try{return new URL(e,`http://example.com`)}catch{return null}return null}}function le(e){return typeof e==`string`?e.startsWith(`/`)||e.startsWith(`./`)||e.startsWith(`../`):!1}var ue=new Set([`https:`,`http:`,`irc:`,`ircs:`,`mailto:`,`xmpp:`,`blob:`]),j=new Set([`javascript:`,`data:`,`file:`,`vbscript:`]);function de(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e==`string`&&e.startsWith(`#`)&&!i)try{if(new URL(e,`http://example.com`).hash===e)return e}catch{}if(typeof e==`string`&&e.startsWith(`data:`))return i&&r&&e.startsWith(`data:image/`)?e:null;if(typeof e==`string`&&e.startsWith(`blob:`)){try{if(new URL(e).protocol===`blob:`&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&t!==`invalid`)return e}}catch{return null}return null}let o=A(e,n);if(!o||j.has(o.protocol)||!(ue.has(o.protocol)||a.includes(o.protocol)||a.includes(`*`)))return null;if(o.protocol===`mailto:`||!o.protocol.match(/^https?:$/))return o.href;let s=le(e);return o&&t.some(e=>{let t=A(e,n);return!t||t.origin!==o.origin?!1:o.href.startsWith(t.href)})?s?o.pathname+o.search+o.hash:o.href:t.includes(`*`)?o.protocol!==`https:`&&o.protocol!==`http:`?null:s?o.pathname+o.search+o.hash:o.href:null}function fe(e){if(`children`in e&&Array.isArray(e.children)){e.children=e.children.filter(e=>e!=null);for(let t of e.children)fe(t)}}var pe=Symbol(`node-seen`);function me(e,t,n){return t===k.remove?{type:`remove`}:t===k.textOnly?{type:`replace`,element:{type:`element`,tagName:`span`,properties:{},children:[...e.children]}}:{type:`replace`,element:{type:`element`,tagName:`span`,properties:{title:`Blocked URL: `+String(e.properties.href),class:n},children:[...e.children,{type:`text`,value:` [blocked]`}]}}}function he(e,t,n){if(t===k.remove)return{type:`remove`};if(t===k.textOnly){let t=String(e.properties.alt||``);return t?{type:`replace`,element:{type:`element`,tagName:`span`,properties:{},children:[{type:`text`,value:t}]}}:{type:`remove`}}return{type:`replace`,element:{type:`element`,tagName:`span`,properties:{class:n},children:[{type:`text`,value:`[Image blocked: `+String(e.properties.alt||`No description`)+`]`}]}}}var ge=(e,t,n,r,i,a,o,s,l)=>{let u=(d,f,m)=>{if(d.type!==`element`||d[pe])return!0;if(d.tagName===`a`){let n=de(d.properties.href,t,e,!1,!1,i);if(n===null){if(d[pe]=!0,p(d,u),m&&typeof f==`number`){let e=me(d,s,o);if(e.type===`remove`)return m.children.splice(f,1),[c,f];m.children[f]=e.element}return c}else return d.properties.href=n,d.properties.target=`_blank`,d.properties.rel=`noopener noreferrer`,!0}if(d.tagName===`img`){let t=de(d.properties.src,n,e,r,!0,i);if(t===null){if(d[pe]=!0,p(d,u),m&&typeof f==`number`){let e=he(d,l,a);if(e.type===`remove`)return m.children.splice(f,1),[c,f];m.children[f]=e.element}return c}else return d.properties.src=t,!0}return!0};return u},_e={},ve={}.hasOwnProperty,ye=w(`type`,{handlers:{root:xe,element:Ee,text:we,comment:Te,doctype:Ce}});function be(e,t){let n=(t||_e).space;return ye(e,n===`svg`?T:_)}function xe(e,t){let n={nodeName:`#document`,mode:(e.data||{}).quirksMode?`quirks`:`no-quirks`,childNodes:[]};return n.childNodes=Oe(e.children,n,t),ke(e,n),n}function Se(e,t){let n={nodeName:`#document-fragment`,childNodes:[]};return n.childNodes=Oe(e.children,n,t),ke(e,n),n}function Ce(e){let t={nodeName:`#documentType`,name:`html`,publicId:``,systemId:``,parentNode:null};return ke(e,t),t}function we(e){let t={nodeName:`#text`,value:e.value,parentNode:null};return ke(e,t),t}function Te(e){let t={nodeName:`#comment`,data:e.value,parentNode:null};return ke(e,t),t}function Ee(e,t){let n=t,r=n;e.type===`element`&&e.tagName.toLowerCase()===`svg`&&n.space===`html`&&(r=T);let i=[],a;if(e.properties){for(a in e.properties)if(a!==`children`&&ve.call(e.properties,a)){let t=De(r,a,e.properties[a]);t&&i.push(t)}}let o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:g[o],childNodes:[],parentNode:null};return s.childNodes=Oe(e.children,s,r),ke(e,s),e.tagName===`template`&&e.content&&(s.content=Se(e.content,r)),s}function De(e,t,n){let r=se(e,t);if(n===!1||n==null||typeof n==`number`&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?ae(n):re(n));let i={name:r.attribute,value:n===!0?``:String(n)};if(r.space&&r.space!==`html`&&r.space!==`svg`){let e=i.name.indexOf(`:`);e<0?i.prefix=``:(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=g[r.space]}return i}function Oe(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=ye(e[r],n);a.parentNode=t,i.push(a)}return i}function ke(e,t){let n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}var Ae=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,je=new Set([`mdxFlowExpression`,`mdxJsxFlowElement`,`mdxJsxTextElement`,`mdxTextExpression`,`mdxjsEsm`]),Me={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ne(e,t){let n=qe(e),r=w(`type`,{handlers:{root:Fe,element:Ie,text:Le,comment:Be,doctype:Re,raw:Ve},unknown:He}),i={parser:n?new b(Me):b.getFragmentParser(void 0,Me),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),Ue(i,l());let a=C(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&p(a,`comment`,function(e,t,n){let r=e;if(r.value.stitch&&n&&t!==void 0){let e=n.children;return e[t]=r.value.stitch,t}}),a.type===`root`&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function Pe(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Fe(e,t){Pe(e.children,t)}function Ie(e,t){Ge(e,t),Pe(e.children,t),Ke(e,t)}function Le(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:E.CHARACTER,chars:e.value,location:Je(e)};Ue(t,l(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Re(e,t){let n={type:E.DOCTYPE,name:`html`,forceQuirks:!1,publicId:``,systemId:``,location:Je(e)};Ue(t,l(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ze(e,t){t.stitches=!0;let n=Ye(e);`children`in e&&`children`in n&&(n.children=Ne({type:`root`,children:e.children},t.options).children),Be({type:`comment`,value:{stitch:n}},t)}function Be(e,t){let n=e.value,r={type:E.COMMENT,data:n,location:Je(e)};Ue(t,l(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Ve(e,t){if(t.parser.tokenizer.preprocessor.html=``,t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,We(t,l(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Ae,`&lt;$1$2`):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function He(e,t){let n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))ze(n,t);else{let e=``;throw je.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+n.type+"` node"+e)}}function Ue(e,t){We(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=D.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:``,value:``}}function We(e,t){if(t&&t.offset!==void 0){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Ge(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===D.PLAINTEXT)return;Ue(t,l(e));let r=t.parser.openElements.current,i=`namespaceURI`in r?r.namespaceURI:g.html;i===g.html&&n===`svg`&&(i=g.svg);let a=be({...e,children:[]},{space:i===g.svg?`svg`:`html`}),o={type:E.START_TAG,tagName:n,tagID:te(n),selfClosing:!1,ackSelfClosing:!1,attrs:`attrs`in a?a.attrs:[],location:Je(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Ke(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&ee.includes(n)||t.parser.tokenizer.state===D.PLAINTEXT)return;Ue(t,f(e));let r={type:E.END_TAG,tagName:n,tagID:te(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Je(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===D.RCDATA||t.parser.tokenizer.state===D.RAWTEXT||t.parser.tokenizer.state===D.SCRIPT_DATA)&&(t.parser.tokenizer.state=D.DATA)}function qe(e){let t=e.type===`root`?e.children[0]:e;return!!(t&&(t.type===`doctype`||t.type===`element`&&t.tagName.toLowerCase()===`html`))}function Je(e){let t=l(e)||{line:void 0,column:void 0,offset:void 0},n=f(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Ye(e){return`children`in e?m({...e,children:[]}):m(e)}function Xe(e){return function(t,n){return Ne(t,{...e,file:n})}}var M=[`ariaDescribedBy`,`ariaLabel`,`ariaLabelledBy`],N={ancestors:{tbody:[`table`],td:[`table`],th:[`table`],thead:[`table`],tfoot:[`table`],tr:[`table`]},attributes:{a:[...M,`dataFootnoteBackref`,`dataFootnoteRef`,[`className`,`data-footnote-backref`],`href`],blockquote:[`cite`],code:[[`className`,/^language-./]],del:[`cite`],div:[`itemScope`,`itemType`],dl:[...M],h2:[[`className`,`sr-only`]],img:[...M,`longDesc`,`src`],input:[[`disabled`,!0],[`type`,`checkbox`]],ins:[`cite`],li:[[`className`,`task-list-item`]],ol:[...M,[`className`,`contains-task-list`]],q:[`cite`],section:[`dataFootnotes`,[`className`,`footnotes`]],source:[`srcSet`],summary:[...M],table:[...M],ul:[...M,[`className`,`contains-task-list`]],"*":`abbr.accept.acceptCharset.accessKey.action.align.alt.axis.border.cellPadding.cellSpacing.char.charOff.charSet.checked.clear.colSpan.color.cols.compact.coords.dateTime.dir.encType.frame.hSpace.headers.height.hrefLang.htmlFor.id.isMap.itemProp.label.lang.maxLength.media.method.multiple.name.noHref.noShade.noWrap.open.prompt.readOnly.rev.rowSpan.rows.rules.scope.selected.shape.size.span.start.summary.tabIndex.title.useMap.vAlign.value.width`.split(`.`)},clobber:[`ariaDescribedBy`,`ariaLabelledBy`,`id`,`name`],clobberPrefix:`user-content-`,protocols:{cite:[`http`,`https`],href:[`http`,`https`,`irc`,`ircs`,`mailto`,`xmpp`],longDesc:[`http`,`https`],src:[`http`,`https`]},required:{input:{disabled:!0,type:`checkbox`}},strip:[`script`],tagNames:`a.b.blockquote.br.code.dd.del.details.div.dl.dt.em.h1.h2.h3.h4.h5.h6.hr.i.img.input.ins.kbd.li.ol.p.picture.pre.q.rp.rt.ruby.s.samp.section.source.span.strike.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.tr.tt.ul.var`.split(`.`)},P={}.hasOwnProperty;function Ze(e,t){let n={type:`root`,children:[]},r=Qe({schema:t?{...N,...t}:N,stack:[]},e);return r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r),n}function Qe(e,t){if(t&&typeof t==`object`){let n=t;switch(typeof n.type==`string`?n.type:``){case`comment`:return $e(e,n);case`doctype`:return et(e,n);case`element`:return tt(e,n);case`root`:return nt(e,n);case`text`:return rt(e,n);default:}}}function $e(e,t){if(e.schema.allowComments){let e=typeof t.value==`string`?t.value:``,n=e.indexOf(`-->`),r={type:`comment`,value:n<0?e:e.slice(0,n)};return ut(r,t),r}}function et(e,t){if(e.schema.allowDoctypes){let e={type:`doctype`};return ut(e,t),e}}function tt(e,t){let n=typeof t.tagName==`string`?t.tagName:``;e.stack.push(n);let r=it(e,t.children),i=at(e,t.properties);e.stack.pop();let a=!1;if(n&&n!==`*`&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&P.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r<t.length;)e.stack.includes(t[r])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let o={type:`element`,tagName:n,properties:i,children:r};return ut(o,t),o}function nt(e,t){let n={type:`root`,children:it(e,t.children)};return ut(n,t),n}function rt(e,t){let n={type:`text`,value:typeof t.value==`string`?t.value:``};return ut(n,t),n}function it(e,t){let n=[];if(Array.isArray(t)){let r=t,i=-1;for(;++i<r.length;){let t=Qe(e,r[i]);t&&(Array.isArray(t)?n.push(...t):n.push(t))}}return n}function at(e,t){let n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&P.call(r,n)?r[n]:void 0,o=r&&P.call(r,`*`)?r[`*`]:void 0,s=t&&typeof t==`object`?t:{},c={},l;for(l in s)if(P.call(s,l)){let t=s[l],n=ot(e,dt(a,l),l,t);n??=ot(e,dt(o,l),l,t),n!=null&&(c[l]=n)}if(i&&P.call(i,n)){let e=i[n];for(l in e)P.call(e,l)&&!P.call(c,l)&&(c[l]=e[l])}return c}function ot(e,t,n,r){return t?Array.isArray(r)?st(e,t,n,r):ct(e,t,n,r):void 0}function st(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let o=ct(e,t,n,r[i]);(typeof o==`number`||typeof o==`string`)&&a.push(o)}return a}function ct(e,t,n,r){if(!(typeof r!=`boolean`&&typeof r!=`number`&&typeof r!=`string`)&&lt(e,n,r)){if(typeof t==`object`&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&typeof i==`object`&&`flags`in i){if(i.test(String(r))){e=!0;break}}else if(i===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function lt(e,t,n){let r=e.schema.protocols&&P.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;let i=String(n),a=i.indexOf(`:`),o=i.indexOf(`?`),s=i.indexOf(`#`),c=i.indexOf(`/`);if(a<0||c>-1&&a>c||o>-1&&a>o||s>-1&&a>s)return!0;let l=-1;for(;++l<r.length;){let e=r[l];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}function ut(e,t){let n=d(t);t.data&&(e.data=m(t.data)),n&&(e.position=n)}function dt(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],a=typeof i==`string`?i:i[0];if(a===t)return i;a===`data*`&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()===`data`)return n}function ft(e){return function(t){return Ze(t,e)}}var pt=Object.defineProperty,mt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,yt=(e,t,n)=>t in e?pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bt=(e,t)=>{for(var n in t||={})_t.call(t,n)&&yt(e,n,t[n]);if(gt)for(var n of gt(t))vt.call(t,n)&&yt(e,n,t[n]);return e},xt=(e,t)=>mt(e,ht(t)),F=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if(e[i]===`\\`&&i+1<e.length&&e[i+1]==="`"){i+=1;continue}if(e.substring(i,i+3)==="```"){r=!r,i+=2;continue}!r&&e[i]==="`"&&(n=!n)}return n||r},St=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return n||r||i},Ct=e=>{let t=0;for(let n=0;n<e.length;n+=1){if(e[n]===`\\`&&n+1<e.length&&e[n+1]==="`"){n+=1;continue}e[n]==="`"&&!St(e,n)&&(t+=1)}return t},I=(e,t)=>{let n=!1,r=!1,i=-1;for(let a=0;a<e.length;a+=1){if(e[a]===`\\`&&a+1<e.length&&e[a+1]==="`"){a+=1;continue}if(e.substring(a,a+3)==="```"){r=!r,a+=2;continue}if(!r&&e[a]==="`")if(n){if(i<t&&t<a)return!0;n=!1,i=-1}else n=!0,i=a}return!1},wt=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,Tt=e=>!e||typeof e!=`string`||!e.includes(`>`)?e:e.replace(wt,(t,n,r,i)=>F(e,i)?t:`${n}\\>${r}`),Et=/(\*\*)([^*]*\*?)$/,Dt=/(__)([^_]*?)$/,Ot=/(\*\*\*)([^*]*?)$/,kt=/(\*)([^*]*?)$/,At=/(_)([^_]*?)$/,jt=/(`)([^`]*?)$/,Mt=/(~~)([^~]*?)$/,L=/^[\s_~*`]*$/,Nt=/^[\s]*[-*+][\s]+$/,Pt=/[\p{L}\p{N}_]/u,Ft=/^```[^`\n]*```?$/,It=/^\*{4,}$/,Lt=/(__)([^_]+)_$/,Rt=/(~~)([^~]+)~$/,zt=/~~/g,R=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:Pt.test(e)},Bt=(e,t)=>{let n=1;for(let r=t-1;r>=0;--r)if(e[r]===`]`)n+=1;else if(e[r]===`[`&&(--n,n===0))return r;return-1},Vt=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if(e[r]===`[`)n+=1;else if(e[r]===`]`&&(--n,n===0))return r;return-1},Ht=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if(e[i]===`\\`&&e[i+1]===`$`){i+=1;continue}e[i]===`$`&&(e[i+1]===`$`?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},Ut=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===`)`)return!0;if(e[n]===`
3
3
  `)return!1}return!1},Wt=(e,t)=>{for(let n=t-1;n>=0;--n){if(e[n]===`)`)return!1;if(e[n]===`(`)return n>0&&e[n-1]===`]`?Ut(e,t):!1;if(e[n]===`
4
4
  `)return!1}return!1},Gt=(e,t)=>{for(let n=t-1;n>=0;--n){if(e[n]===`>`)return!1;if(e[n]===`<`){let t=n+1<e.length?e[n+1]:``;return t>=`a`&&t<=`z`||t>=`A`&&t<=`Z`||t===`/`}if(e[n]===`
@@ -81,14 +81,14 @@ ${e}</tr>
81
81
  `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${W(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Ni(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+W(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Ni(e);if(i===null)return W(n);e=i;let a=`<img src="${e}" alt="${W(n)}"`;return t&&(a+=` title="${W(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:W(e.text)}},Hi=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},K=class e{options;renderer;textRenderer;constructor(e){this.options=e||V,this.options.renderer=this.options.renderer||new Vi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Hi}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Ui=class{options;block;constructor(e){this.options=e||V}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?G.lex:G.lexInline}provideParser(e=this.block){return e?K.parse:K.parseInline}},q=new class{defaults=Sr();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=K;Renderer=Vi;TextRenderer=Hi;Lexer=G;Tokenizer=Bi;Hooks=Ui;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Vi(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Bi(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Ui;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];Ui.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&Ui.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return G.lex(e,t??this.defaults)}parser(e,t){return K.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?G.lex:G.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?K.parse:K.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?G.lex:G.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?K.parse:K.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
82
82
  Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+W(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function J(e,t){return q.parse(e,t)}J.options=J.setOptions=function(e){return q.setOptions(e),J.defaults=q.defaults,Cr(J.defaults),J},J.getDefaults=Sr,J.defaults=V,J.use=function(...e){return q.use(...e),J.defaults=q.defaults,Cr(J.defaults),J},J.walkTokens=function(e,t){return q.walkTokens(e,t)},J.parseInline=q.parseInline,J.Parser=K,J.parser=K.parse,J.Renderer=Vi,J.TextRenderer=Hi,J.Lexer=G,J.lexer=G.lex,J.Tokenizer=Bi,J.Hooks=Ui,J.parse=J,J.options,J.setOptions,J.use,J.walkTokens,J.parseInline,K.parse,G.lex;var Wi=300,Gi=`300px`,Ki=500;function qi(e={}){let{immediate:t=!1,debounceDelay:n=Wi,rootMargin:r=Gi,idleTimeout:i=Ki}=e,[a,o]=(0,O.useState)(!1),s=(0,O.useRef)(null),c=(0,O.useRef)(null),l=(0,O.useRef)(null),u=(0,O.useMemo)(()=>e=>{let t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},[]),d=(0,O.useMemo)(()=>typeof window<`u`&&window.requestIdleCallback?(e,t)=>window.requestIdleCallback(e,t):u,[u]),f=(0,O.useMemo)(()=>typeof window<`u`&&window.cancelIdleCallback?e=>window.cancelIdleCallback(e):e=>{clearTimeout(e)},[]);return(0,O.useEffect)(()=>{if(t){o(!0);return}let e=s.current;if(!e)return;c.current&&=(clearTimeout(c.current),null),l.current&&=(f(l.current),null);let a=()=>{c.current&&=(clearTimeout(c.current),null),l.current&&=(f(l.current),null)},u=e=>{l.current=d(t=>{t.timeRemaining()>0||t.didTimeout?(o(!0),e.disconnect()):l.current=d(()=>{o(!0),e.disconnect()},{timeout:i/2})},{timeout:i})},p=e=>{a(),c.current=window.setTimeout(()=>{var t;let n=e.takeRecords();(n.length===0||(t=n.at(-1)?.isIntersecting)!=null&&t)&&u(e)},n)},m=(e,t)=>{e.isIntersecting?p(t):a()},h=new IntersectionObserver(e=>{for(let t of e)m(t,h)},{rootMargin:r,threshold:0});return h.observe(e),()=>{c.current&&clearTimeout(c.current),l.current&&f(l.current),h.disconnect()}},[t,n,r,i,f,d]),{shouldRender:a,containerRef:s}}var Ji=/\s/,Yi=/^\s+$/,Xi=new Set([`code`,`pre`,`svg`,`math`,`annotation`]),Zi=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`element`,Qi=e=>e.some(e=>Zi(e)&&Xi.has(e.tagName)),$i=e=>{let t=[],n=``,r=!1;for(let i of e){let e=Ji.test(i);e!==r&&n&&(t.push(n),n=``),n+=i,r=e}return n&&t.push(n),t},ea=e=>{let t=[],n=``;for(let r of e)Ji.test(r)?n+=r:(n&&=(t.push(n),``),t.push(r));return n&&t.push(n),t},ta=(e,t,n,r,i,a)=>{let o=`--sd-animation:sd-${t};--sd-duration:${i?0:n}ms;--sd-easing:${r}`;return a&&(o+=`;--sd-delay:${a}ms`),{type:`element`,tagName:`span`,properties:{"data-sd-animate":!0,style:o},children:[{type:`text`,value:e}]}},na=(e,t,n,r,i)=>{let a=t.at(-1);if(!(a&&`children`in a))return;if(Qi(t))return c;let o=a,s=o.children.indexOf(e);if(s===-1)return;let l=e.value;if(!l.trim()){i.count+=l.length;return}let u=n.sep===`char`?ea(l):$i(l),d=r.prevContentLength,f=u.map(e=>{let t=i.count;if(i.count+=e.length,Yi.test(e))return{type:`text`,value:e};let r=d>0&&t<d,a=r?0:i.newIndex++*n.stagger;return ta(e,n.animation,n.duration,n.easing,r,a)});return o.children.splice(s,1,...f),s+f.length},ra=0;function ia(e){let t={animation:e?.animation??`fadeIn`,duration:e?.duration??150,easing:e?.easing??`ease`,sep:e?.sep??`word`,stagger:e?.stagger??40},n={prevContentLength:0,lastRenderCharCount:0},r=ra++,i=()=>e=>{let r={count:0,newIndex:0};u(e,`text`,(e,i)=>na(e,i,t,n,r)),n.lastRenderCharCount=r.count,n.prevContentLength=0};return Object.defineProperty(i,`name`,{value:`rehypeAnimate$${r}`}),{name:`animate`,type:`animate`,rehypePlugin:i,setPrevContentLength(e){n.prevContentLength=e},getLastRenderCharCount(){let e=n.lastRenderCharCount;return n.lastRenderCharCount=0,e}}}ia();var aa=(0,O.createContext)(!1),oa=()=>(0,O.useContext)(aa),sa=(...e)=>s(o(e)),ca=(e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(t=>t.startsWith(n)?t:`${e}:${t}`).join(` `)},la=e=>e?(...t)=>ca(e,s(o(t))):sa,ua=(e,t,n)=>{let r=typeof t==`string`&&n.startsWith(`text/csv`)?``:``,i=typeof t==`string`?new Blob([r+t],{type:n}):t,a=URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(a)},da=(0,O.createContext)(sa),Y=()=>(0,O.useContext)(da),fa=sa(`block`,`before:content-[counter(line)]`,`before:inline-block`,`before:[counter-increment:line]`,`before:w-6`,`before:mr-4`,`before:text-[13px]`,`before:text-right`,`before:text-muted-foreground/50`,`before:font-mono`,`before:select-none`),pa=e=>{let t={};for(let n of e.split(`;`)){let e=n.indexOf(`:`);if(e>0){let r=n.slice(0,e).trim(),i=n.slice(e+1).trim();r&&i&&(t[r]=i)}}return t},ma=(0,O.memo)(({children:e,result:t,language:n,className:r,startLine:i,lineNumbers:a=!0,...o})=>{let s=Y(),c=(0,O.useMemo)(()=>s(fa),[s]),l=(0,O.useMemo)(()=>{let e={};return t.bg&&(e[`--sdm-bg`]=t.bg),t.fg&&(e[`--sdm-fg`]=t.fg),t.rootStyle&&Object.assign(e,pa(t.rootStyle)),e},[t.bg,t.fg,t.rootStyle]);return(0,B.jsx)(`div`,{className:s(r,`overflow-x-auto rounded-md border border-border bg-background p-4 text-sm`),"data-language":n,"data-streamdown":`code-block-body`,...o,children:(0,B.jsx)(`pre`,{className:s(r,`bg-[var(--sdm-bg,inherit]`,`dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]`),style:l,children:(0,B.jsx)(`code`,{className:a?s(`[counter-increment:line_0] [counter-reset:line]`):void 0,style:a&&i&&i>1?{counterReset:`line ${i-1}`}:void 0,children:t.tokens.map((e,t)=>(0,B.jsx)(`span`,{className:a?c:void 0,children:e.length===0||e.length===1&&e[0].content===``?`
83
83
  `:e.map((e,t)=>{let n={},r=!!e.bgColor;if(e.color&&(n[`--sdm-c`]=e.color),e.bgColor&&(n[`--sdm-tbg`]=e.bgColor),e.htmlStyle)for(let[t,i]of Object.entries(e.htmlStyle))t===`color`?n[`--sdm-c`]=i:t===`background-color`?(n[`--sdm-tbg`]=i,r=!0):n[t]=i;return(0,B.jsx)(`span`,{className:s(`text-[var(--sdm-c,inherit)]`,`dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]`,r&&`bg-[var(--sdm-tbg)]`,r&&`dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]`),style:n,...e.htmlAttrs,children:e.content},t)})},t))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className&&e.startLine===t.startLine&&e.lineNumbers===t.lineNumbers),ha=({className:e,language:t,style:n,isIncomplete:r,...i})=>(0,B.jsx)(`div`,{className:Y()(`my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2`,e),"data-incomplete":r||void 0,"data-language":t,"data-streamdown":`code-block`,style:{contentVisibility:`auto`,containIntrinsicSize:`auto 200px`,...n},...i}),ga=(0,O.createContext)({code:``}),_a=()=>(0,O.useContext)(ga),va=({language:e})=>{let t=Y();return(0,B.jsx)(`div`,{className:t(`flex h-8 items-center text-muted-foreground text-xs`),"data-language":e,"data-streamdown":`code-block-header`,children:(0,B.jsx)(`span`,{className:t(`ml-1 font-mono lowercase`),children:e})})},ya=e=>{let t=e.length;for(;t>0&&e[t-1]===`
84
- `;)t--;return e.slice(0,t)},ba=(0,O.lazy)(()=>n(()=>import(`./highlighted-body-OFNGDK62-Cue0vPGT.js`).then(e=>({default:e.HighlightedCodeBlockBody})),__vite__mapDeps([0,1,2,3]),import.meta.url)),xa=({code:e,language:t,className:n,children:r,isIncomplete:i=!1,startLine:a,lineNumbers:o,...s})=>{let c=Y(),l=(0,O.useMemo)(()=>ya(e),[e]),u=(0,O.useMemo)(()=>({bg:`transparent`,fg:`inherit`,tokens:l.split(`
84
+ `;)t--;return e.slice(0,t)},ba=(0,O.lazy)(()=>n(()=>import(`./highlighted-body-OFNGDK62-BIipOt-U.js`).then(e=>({default:e.HighlightedCodeBlockBody})),__vite__mapDeps([0,1,2,3]),import.meta.url)),xa=({code:e,language:t,className:n,children:r,isIncomplete:i=!1,startLine:a,lineNumbers:o,...s})=>{let c=Y(),l=(0,O.useMemo)(()=>ya(e),[e]),u=(0,O.useMemo)(()=>({bg:`transparent`,fg:`inherit`,tokens:l.split(`
85
85
  `).map(e=>[{content:e,color:`inherit`,bgColor:`transparent`,htmlStyle:{},offset:0}])}),[l]);return(0,B.jsx)(ga.Provider,{value:{code:e},children:(0,B.jsxs)(ha,{isIncomplete:i,language:t,children:[(0,B.jsx)(va,{language:t}),r?(0,B.jsx)(`div`,{className:c(`pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end`),children:(0,B.jsx)(`div`,{className:c(`pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur`),"data-streamdown":`code-block-actions`,children:r})}):null,(0,B.jsx)(O.Suspense,{fallback:(0,B.jsx)(ma,{className:n,language:t,lineNumbers:o,result:u,startLine:a,...s}),children:(0,B.jsx)(ba,{className:n,code:l,language:t,lineNumbers:o,raw:u,startLine:a,...s})})]})})},Sa={CheckIcon:e=>(0,B.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,B.jsx)(`path`,{clipRule:`evenodd`,d:`M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z`,fill:`currentColor`,fillRule:`evenodd`})}),CopyIcon:e=>(0,B.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,B.jsx)(`path`,{clipRule:`evenodd`,d:`M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z`,fill:`currentColor`,fillRule:`evenodd`})}),DownloadIcon:e=>(0,B.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,B.jsx)(`path`,{clipRule:`evenodd`,d:`M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z`,fill:`currentColor`,fillRule:`evenodd`})}),ExternalLinkIcon:e=>(0,B.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,B.jsx)(`path`,{clipRule:`evenodd`,d:`M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z`,fill:`currentColor`,fillRule:`evenodd`})}),Loader2Icon:e=>(0,B.jsxs)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:[(0,B.jsx)(`path`,{d:`M8 0V4`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,B.jsx)(`path`,{d:`M8 16V12`,opacity:`0.5`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,B.jsx)(`path`,{d:`M3.29773 1.52783L5.64887 4.7639`,opacity:`0.9`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,B.jsx)(`path`,{d:`M12.7023 1.52783L10.3511 4.7639`,opacity:`0.1`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,B.jsx)(`path`,{d:`M12.7023 14.472L10.3511 11.236`,opacity:`0.4`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,B.jsx)(`path`,{d:`M3.29773 14.472L5.64887 11.236`,opacity:`0.6`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,B.jsx)(`path`,{d:`M15.6085 5.52783L11.8043 6.7639`,opacity:`0.2`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,B.jsx)(`path`,{d:`M0.391602 10.472L4.19583 9.23598`,opacity:`0.7`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,B.jsx)(`path`,{d:`M15.6085 10.4722L11.8043 9.2361`,opacity:`0.3`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,B.jsx)(`path`,{d:`M0.391602 5.52783L4.19583 6.7639`,opacity:`0.8`,stroke:`currentColor`,strokeWidth:`1.5`})]}),Maximize2Icon:e=>(0,B.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,B.jsx)(`path`,{clipRule:`evenodd`,d:`M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z`,fill:`currentColor`,fillRule:`evenodd`})}),RotateCcwIcon:e=>(0,B.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,B.jsx)(`path`,{clipRule:`evenodd`,d:`M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z`,fill:`currentColor`,fillRule:`evenodd`})}),XIcon:e=>(0,B.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,B.jsx)(`path`,{clipRule:`evenodd`,d:`M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z`,fill:`currentColor`,fillRule:`evenodd`})}),ZoomInIcon:e=>(0,B.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,B.jsx)(`path`,{clipRule:`evenodd`,d:`M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z`,fill:`currentColor`,fillRule:`evenodd`})}),ZoomOutIcon:e=>(0,B.jsx)(`svg`,{color:`currentColor`,height:16,strokeLinejoin:`round`,viewBox:`0 0 16 16`,width:16,...e,children:(0,B.jsx)(`path`,{clipRule:`evenodd`,d:`M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z`,fill:`currentColor`,fillRule:`evenodd`})})},Ca=(0,O.createContext)(Sa),wa=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length?n.every(n=>e[n]===t[n]):!1},Ta=({icons:e,children:t})=>{let n=(0,O.useRef)(e),r=(0,O.useRef)(e?{...Sa,...e}:Sa);wa(n.current,e)||(n.current=e,r.current=e?{...Sa,...e}:Sa);let i=r.current;return(0,B.jsx)(Ca.Provider,{value:i,children:t})},X=()=>(0,O.useContext)(Ca),Ea={copyCode:`Copy Code`,downloadFile:`Download file`,downloadDiagram:`Download diagram`,downloadDiagramAsSvg:`Download diagram as SVG`,downloadDiagramAsPng:`Download diagram as PNG`,downloadDiagramAsMmd:`Download diagram as MMD`,viewFullscreen:`View fullscreen`,exitFullscreen:`Exit fullscreen`,mermaidFormatSvg:`SVG`,mermaidFormatPng:`PNG`,mermaidFormatMmd:`MMD`,copyTable:`Copy table`,copyTableAsMarkdown:`Copy table as Markdown`,copyTableAsCsv:`Copy table as CSV`,copyTableAsTsv:`Copy table as TSV`,downloadTable:`Download table`,downloadTableAsCsv:`Download table as CSV`,downloadTableAsMarkdown:`Download table as Markdown`,tableFormatMarkdown:`Markdown`,tableFormatCsv:`CSV`,tableFormatTsv:`TSV`,imageNotAvailable:`Image not available`,downloadImage:`Download image`,openExternalLink:`Open external link?`,externalLinkWarning:`You're about to visit an external website.`,close:`Close`,copyLink:`Copy link`,copied:`Copied`,openLink:`Open link`},Da=(0,O.createContext)(Ea),Z=()=>(0,O.useContext)(Da),Oa=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:a,...o})=>{let s=Y(),[c,l]=(0,O.useState)(!1),u=(0,O.useRef)(0),{code:d}=_a(),{isAnimating:f}=(0,O.useContext)($),p=Z(),m=a??d,h=async()=>{var r;if(typeof window>`u`||!((r=navigator==null?void 0:navigator.clipboard)!=null&&r.writeText)){t?.(Error(`Clipboard API not available`));return}try{c||(await navigator.clipboard.writeText(m),l(!0),e?.(),u.current=window.setTimeout(()=>l(!1),n))}catch(e){t?.(e)}};(0,O.useEffect)(()=>()=>{window.clearTimeout(u.current)},[]);let g=X(),_=c?g.CheckIcon:g.CopyIcon;return(0,B.jsx)(`button`,{className:s(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,i),"data-streamdown":`code-block-copy-button`,disabled:f,onClick:h,title:p.copyCode,type:`button`,...o,children:r??(0,B.jsx)(_,{size:14})})},ka={"1c":`1c`,"1c-query":`1cq`,abap:`abap`,"actionscript-3":`as`,ada:`ada`,adoc:`adoc`,"angular-html":`html`,"angular-ts":`ts`,apache:`conf`,apex:`cls`,apl:`apl`,applescript:`applescript`,ara:`ara`,asciidoc:`adoc`,asm:`asm`,astro:`astro`,awk:`awk`,ballerina:`bal`,bash:`sh`,bat:`bat`,batch:`bat`,be:`be`,beancount:`beancount`,berry:`berry`,bibtex:`bib`,bicep:`bicep`,blade:`blade.php`,bsl:`bsl`,c:`c`,"c#":`cs`,"c++":`cpp`,cadence:`cdc`,cairo:`cairo`,cdc:`cdc`,clarity:`clar`,clj:`clj`,clojure:`clj`,"closure-templates":`soy`,cmake:`cmake`,cmd:`cmd`,cobol:`cob`,codeowners:`CODEOWNERS`,codeql:`ql`,coffee:`coffee`,coffeescript:`coffee`,"common-lisp":`lisp`,console:`sh`,coq:`v`,cpp:`cpp`,cql:`cql`,crystal:`cr`,cs:`cs`,csharp:`cs`,css:`css`,csv:`csv`,cue:`cue`,cypher:`cql`,d:`d`,dart:`dart`,dax:`dax`,desktop:`desktop`,diff:`diff`,docker:`dockerfile`,dockerfile:`dockerfile`,dotenv:`env`,"dream-maker":`dm`,edge:`edge`,elisp:`el`,elixir:`ex`,elm:`elm`,"emacs-lisp":`el`,erb:`erb`,erl:`erl`,erlang:`erl`,f:`f`,"f#":`fs`,f03:`f03`,f08:`f08`,f18:`f18`,f77:`f77`,f90:`f90`,f95:`f95`,fennel:`fnl`,fish:`fish`,fluent:`ftl`,for:`for`,"fortran-fixed-form":`f`,"fortran-free-form":`f90`,fs:`fs`,fsharp:`fs`,fsl:`fsl`,ftl:`ftl`,gdresource:`tres`,gdscript:`gd`,gdshader:`gdshader`,genie:`gs`,gherkin:`feature`,"git-commit":`gitcommit`,"git-rebase":`gitrebase`,gjs:`js`,gleam:`gleam`,"glimmer-js":`js`,"glimmer-ts":`ts`,glsl:`glsl`,gnuplot:`plt`,go:`go`,gql:`gql`,graphql:`graphql`,groovy:`groovy`,gts:`gts`,hack:`hack`,haml:`haml`,handlebars:`hbs`,haskell:`hs`,haxe:`hx`,hbs:`hbs`,hcl:`hcl`,hjson:`hjson`,hlsl:`hlsl`,hs:`hs`,html:`html`,"html-derivative":`html`,http:`http`,hxml:`hxml`,hy:`hy`,imba:`imba`,ini:`ini`,jade:`jade`,java:`java`,javascript:`js`,jinja:`jinja`,jison:`jison`,jl:`jl`,js:`js`,json:`json`,json5:`json5`,jsonc:`jsonc`,jsonl:`jsonl`,jsonnet:`jsonnet`,jssm:`jssm`,jsx:`jsx`,julia:`jl`,kotlin:`kt`,kql:`kql`,kt:`kt`,kts:`kts`,kusto:`kql`,latex:`tex`,lean:`lean`,lean4:`lean`,less:`less`,liquid:`liquid`,lisp:`lisp`,lit:`lit`,llvm:`ll`,log:`log`,logo:`logo`,lua:`lua`,luau:`luau`,make:`mak`,makefile:`mak`,markdown:`md`,marko:`marko`,matlab:`m`,md:`md`,mdc:`mdc`,mdx:`mdx`,mediawiki:`wiki`,mermaid:`mmd`,mips:`s`,mipsasm:`s`,mmd:`mmd`,mojo:`mojo`,move:`move`,nar:`nar`,narrat:`narrat`,nextflow:`nf`,nf:`nf`,nginx:`conf`,nim:`nim`,nix:`nix`,nu:`nu`,nushell:`nu`,objc:`m`,"objective-c":`m`,"objective-cpp":`mm`,ocaml:`ml`,pascal:`pas`,perl:`pl`,perl6:`p6`,php:`php`,plsql:`pls`,po:`po`,polar:`polar`,postcss:`pcss`,pot:`pot`,potx:`potx`,powerquery:`pq`,powershell:`ps1`,prisma:`prisma`,prolog:`pl`,properties:`properties`,proto:`proto`,protobuf:`proto`,ps:`ps`,ps1:`ps1`,pug:`pug`,puppet:`pp`,purescript:`purs`,py:`py`,python:`py`,ql:`ql`,qml:`qml`,qmldir:`qmldir`,qss:`qss`,r:`r`,racket:`rkt`,raku:`raku`,razor:`cshtml`,rb:`rb`,reg:`reg`,regex:`regex`,regexp:`regexp`,rel:`rel`,riscv:`s`,rs:`rs`,rst:`rst`,ruby:`rb`,rust:`rs`,sas:`sas`,sass:`sass`,scala:`scala`,scheme:`scm`,scss:`scss`,sdbl:`sdbl`,sh:`sh`,shader:`shader`,shaderlab:`shader`,shell:`sh`,shellscript:`sh`,shellsession:`sh`,smalltalk:`st`,solidity:`sol`,soy:`soy`,sparql:`rq`,spl:`spl`,splunk:`spl`,sql:`sql`,"ssh-config":`config`,stata:`do`,styl:`styl`,stylus:`styl`,svelte:`svelte`,swift:`swift`,"system-verilog":`sv`,systemd:`service`,talon:`talon`,talonscript:`talon`,tasl:`tasl`,tcl:`tcl`,templ:`templ`,terraform:`tf`,tex:`tex`,tf:`tf`,tfvars:`tfvars`,toml:`toml`,ts:`ts`,"ts-tags":`ts`,tsp:`tsp`,tsv:`tsv`,tsx:`tsx`,turtle:`ttl`,twig:`twig`,typ:`typ`,typescript:`ts`,typespec:`tsp`,typst:`typ`,v:`v`,vala:`vala`,vb:`vb`,verilog:`v`,vhdl:`vhdl`,vim:`vim`,viml:`vim`,vimscript:`vim`,vue:`vue`,"vue-html":`html`,"vue-vine":`vine`,vy:`vy`,vyper:`vy`,wasm:`wasm`,wenyan:`wy`,wgsl:`wgsl`,wiki:`wiki`,wikitext:`wiki`,wit:`wit`,wl:`wl`,wolfram:`wl`,xml:`xml`,xsl:`xsl`,yaml:`yaml`,yml:`yml`,zenscript:`zs`,zig:`zig`,zsh:`zsh`,文言:`wy`},Aa=({onDownload:e,onError:t,language:n,children:r,className:i,code:a,...o})=>{let s=Y(),{code:c}=_a(),{isAnimating:l}=(0,O.useContext)($),u=Z(),d=X(),f=a??c,p=`file.${n&&n in ka?ka[n]:`txt`}`;return(0,B.jsx)(`button`,{className:s(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,i),"data-streamdown":`code-block-download-button`,disabled:l,onClick:()=>{try{ua(p,f,`text/plain`),e?.()}catch(e){t?.(e)}},title:u.downloadFile,type:`button`,...o,children:r??(0,B.jsx)(d.DownloadIcon,{size:14})})},ja=()=>{let{Loader2Icon:e}=X(),t=Y();return(0,B.jsxs)(`div`,{className:t(`w-full divide-y divide-border overflow-hidden rounded-xl border border-border`),children:[(0,B.jsx)(`div`,{className:t(`h-[46px] w-full bg-muted/80`)}),(0,B.jsx)(`div`,{className:t(`flex w-full items-center justify-center p-4`),children:(0,B.jsx)(e,{className:t(`size-4 animate-spin`)})})]})},Ma=/\.[^/.]+$/,Na=({node:e,className:t,src:n,alt:r,onLoad:i,onError:a,...o})=>{let{DownloadIcon:s}=X(),c=Y(),l=(0,O.useRef)(null),[u,d]=(0,O.useState)(!1),[f,p]=(0,O.useState)(!1),m=Z(),h=o.width!=null||o.height!=null,g=(u||h)&&!f,_=f&&!h;(0,O.useEffect)(()=>{let e=l.current;if(e!=null&&e.complete){let t=e.naturalWidth>0;d(t),p(!t)}},[]);let v=(0,O.useCallback)(e=>{d(!0),p(!1),i?.(e)},[i]),y=(0,O.useCallback)(e=>{d(!1),p(!0),a?.(e)},[a]),b=async()=>{if(n)try{let e=await(await fetch(n)).blob(),t=new URL(n,window.location.origin).pathname.split(`/`).pop()||``,i=t.split(`.`).pop(),a=t.includes(`.`)&&i!==void 0&&i.length<=4,o=``;if(a)o=t;else{let n=e.type,i=`png`;n.includes(`jpeg`)||n.includes(`jpg`)?i=`jpg`:n.includes(`png`)?i=`png`:n.includes(`svg`)?i=`svg`:n.includes(`gif`)?i=`gif`:n.includes(`webp`)&&(i=`webp`),o=`${(r||t||`image`).replace(Ma,``)}.${i}`}ua(o,e,e.type)}catch{window.open(n,`_blank`)}};return n?(0,B.jsxs)(`div`,{className:c(`group relative my-4 inline-block`),"data-streamdown":`image-wrapper`,children:[(0,B.jsx)(`img`,{alt:r,className:c(`max-w-full rounded-lg`,_&&`hidden`,t),"data-streamdown":`image`,onError:y,onLoad:v,ref:l,src:n,...o}),_&&(0,B.jsx)(`span`,{className:c(`text-muted-foreground text-xs italic`),"data-streamdown":`image-fallback`,children:m.imageNotAvailable}),(0,B.jsx)(`div`,{className:c(`pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block`)}),g&&(0,B.jsx)(`button`,{className:c(`absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background`,`opacity-0 group-hover:opacity-100`),onClick:b,title:m.downloadImage,type:`button`,children:(0,B.jsx)(s,{size:14})})]}):null},Pa=0,Fa=()=>{Pa+=1,Pa===1&&(document.body.style.overflow=`hidden`)},Ia=()=>{Pa=Math.max(0,Pa-1),Pa===0&&(document.body.style.overflow=``)},La=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let{CheckIcon:i,CopyIcon:a,ExternalLinkIcon:o,XIcon:s}=X(),c=Y(),[l,u]=(0,O.useState)(!1),d=Z(),f=(0,O.useCallback)(async()=>{try{await navigator.clipboard.writeText(e),u(!0),setTimeout(()=>u(!1),2e3)}catch{}},[e]),p=(0,O.useCallback)(()=>{r(),n()},[r,n]);return(0,O.useEffect)(()=>{if(t){Fa();let e=e=>{e.key===`Escape`&&n()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),Ia()}}},[t,n]),t?(0,B.jsx)(`div`,{className:c(`fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm`),"data-streamdown":`link-safety-modal`,onClick:n,onKeyDown:e=>{e.key===`Escape`&&n()},role:`button`,tabIndex:0,children:(0,B.jsxs)(`div`,{className:c(`relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg`),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:`presentation`,children:[(0,B.jsx)(`button`,{className:c(`absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground`),onClick:n,title:d.close,type:`button`,children:(0,B.jsx)(s,{size:16})}),(0,B.jsxs)(`div`,{className:c(`flex flex-col gap-2`),children:[(0,B.jsxs)(`div`,{className:c(`flex items-center gap-2 font-semibold text-lg`),children:[(0,B.jsx)(o,{size:20}),(0,B.jsx)(`span`,{children:d.openExternalLink})]}),(0,B.jsx)(`p`,{className:c(`text-muted-foreground text-sm`),children:d.externalLinkWarning})]}),(0,B.jsx)(`div`,{className:c(`break-all rounded-md bg-muted p-3 font-mono text-sm`,e.length>100&&`max-h-32 overflow-y-auto`),children:e}),(0,B.jsxs)(`div`,{className:c(`flex gap-2`),children:[(0,B.jsx)(`button`,{className:c(`flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted`),onClick:f,type:`button`,children:l?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(i,{size:14}),(0,B.jsx)(`span`,{children:d.copied})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(a,{size:14}),(0,B.jsx)(`span`,{children:d.copyLink})]})}),(0,B.jsxs)(`button`,{className:c(`flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90`),onClick:p,type:`button`,children:[(0,B.jsx)(o,{size:14}),(0,B.jsx)(`span`,{children:d.openLink})]})]})]})}):null},Ra=(0,O.createContext)(null),za=()=>(0,O.useContext)(Ra),Ba=()=>za()?.code??null,Va=()=>za()?.mermaid??null,Ha=e=>{var t;let n=za();return n!=null&&n.renderers&&e&&(t=n.renderers.find(t=>Array.isArray(t.language)?t.language.includes(e):t.language===e))!=null?t:null},Ua=(e,t)=>new Promise((t,n)=>{let r=`data:image/svg+xml;base64,`+btoa(unescape(encodeURIComponent(e))),i=new Image;i.crossOrigin=`anonymous`,i.onload=()=>{let e=document.createElement(`canvas`),r=i.width*5,a=i.height*5;e.width=r,e.height=a;let o=e.getContext(`2d`);if(!o){n(Error(`Failed to create 2D canvas context for PNG export`));return}o.drawImage(i,0,0,r,a),e.toBlob(e=>{if(!e){n(Error(`Failed to create PNG blob`));return}t(e)},`image/png`)},i.onerror=()=>n(Error(`Failed to load SVG image`)),i.src=r}),Wa=({chart:e,children:t,className:n,onDownload:r,config:i,onError:a})=>{let o=Y(),[s,c]=(0,O.useState)(!1),l=(0,O.useRef)(null),{isAnimating:u}=(0,O.useContext)($),d=X(),f=Va(),p=Z(),m=async t=>{try{if(t===`mmd`){ua(`diagram.mmd`,e,`text/plain`),c(!1),r?.(t);return}if(!f){a?.(Error(`Mermaid plugin not available`));return}let n=f.getMermaid(i),o=e.split(``).reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),s=`mermaid-${Math.abs(o)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:l}=await n.render(s,e);if(!l){a?.(Error(`SVG not found. Please wait for the diagram to render.`));return}if(t===`svg`){ua(`diagram.svg`,l,`image/svg+xml`),c(!1),r?.(t);return}if(t===`png`){ua(`diagram.png`,await Ua(l),`image/png`),r?.(t),c(!1);return}}catch(e){a?.(e)}};return(0,O.useEffect)(()=>{let e=e=>{let t=e.composedPath();l.current&&!t.includes(l.current)&&c(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,B.jsxs)(`div`,{className:o(`relative`),ref:l,children:[(0,B.jsx)(`button`,{className:o(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,n),disabled:u,onClick:()=>c(!s),title:p.downloadDiagram,type:`button`,children:t??(0,B.jsx)(d.DownloadIcon,{size:14})}),s?(0,B.jsxs)(`div`,{className:o(`absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg`),children:[(0,B.jsx)(`button`,{className:o(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`svg`),title:p.downloadDiagramAsSvg,type:`button`,children:p.mermaidFormatSvg}),(0,B.jsx)(`button`,{className:o(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`png`),title:p.downloadDiagramAsPng,type:`button`,children:p.mermaidFormatPng}),(0,B.jsx)(`button`,{className:o(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`mmd`),title:p.downloadDiagramAsMmd,type:`button`,children:p.mermaidFormatMmd})]}):null]})},Ga=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...a})=>{let{Maximize2Icon:o,XIcon:s}=X(),c=Y(),[l,u]=(0,O.useState)(!1),{isAnimating:d,controls:f}=(0,O.useContext)($),p=Z(),m=(()=>{if(typeof f==`boolean`)return f;let e=f.mermaid;return e===!1?!1:e===!0||e===void 0?!0:e.panZoom!==!1})(),h=()=>{u(!l)};return(0,O.useEffect)(()=>{if(l){Fa();let e=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),Ia()}}},[l]),(0,O.useEffect)(()=>{l?n?.():r&&r()},[l,n,r]),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{className:c(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,i),disabled:d,onClick:h,title:p.viewFullscreen,type:`button`,...a,children:(0,B.jsx)(o,{size:14})}),l?(0,xr.createPortal)((0,B.jsxs)(`div`,{className:c(`fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm`),onClick:h,onKeyDown:e=>{e.key===`Escape`&&h()},role:`button`,tabIndex:0,children:[(0,B.jsx)(`button`,{className:c(`absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground`),onClick:h,title:p.exitFullscreen,type:`button`,children:(0,B.jsx)(s,{size:20})}),(0,B.jsx)(`div`,{className:c(`flex size-full items-center justify-center p-4`),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:`presentation`,children:(0,B.jsx)(Ls,{chart:e,className:c(`size-full [&_svg]:h-auto [&_svg]:w-auto`),config:t,fullscreen:!0,showControls:m})})]}),document.body):null]})},Ka=e=>{let t=[],n=[],r=e.querySelectorAll(`thead th`);for(let e of r)t.push(e.textContent?.trim()||``);let i=e.querySelectorAll(`tbody tr`);for(let e of i){let t=[],r=e.querySelectorAll(`td`);for(let e of r)t.push(e.textContent?.trim()||``);n.push(t)}return{headers:t,rows:n}},qa=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1,n=!1;for(let r of e){if(r===`"`){t=!0,n=!0;break}(r===`,`||r===`
86
86
  `)&&(t=!0)}return t?n?`"${e.replace(/"/g,`""`)}"`:`"${e}"`:e},i=t.length>0?n.length+1:n.length,a=Array(i),o=0;t.length>0&&(a[o]=t.map(r).join(`,`),o+=1);for(let e of n)a[o]=e.map(r).join(`,`),o+=1;return a.join(`
87
87
  `)},Ja=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1;for(let n of e)if(n===` `||n===`
88
88
  `||n===`\r`){t=!0;break}if(!t)return e;let n=[];for(let t of e)t===` `?n.push(`\\t`):t===`
89
89
  `?n.push(`\\n`):t===`\r`?n.push(`\\r`):n.push(t);return n.join(``)},i=t.length>0?n.length+1:n.length,a=Array(i),o=0;t.length>0&&(a[o]=t.map(r).join(` `),o+=1);for(let e of n)a[o]=e.map(r).join(` `),o+=1;return a.join(`
90
90
  `)},Ya=e=>{let t=!1;for(let n of e)if(n===`\\`||n===`|`){t=!0;break}if(!t)return e;let n=[];for(let t of e)t===`\\`?n.push(`\\\\`):t===`|`?n.push(`\\|`):n.push(t);return n.join(``)},Xa=e=>{let{headers:t,rows:n}=e;if(t.length===0)return``;let r=Array(n.length+2),i=0;r[i]=`| ${t.map(e=>Ya(e)).join(` | `)} |`,i+=1;let a=Array(t.length);for(let e=0;e<t.length;e+=1)a[e]=`---`;r[i]=`| ${a.join(` | `)} |`,i+=1;for(let e of n)if(e.length<t.length){let n=Array(t.length);for(let r=0;r<t.length;r+=1)n[r]=r<e.length?Ya(e[r]):``;r[i]=`| ${n.join(` | `)} |`,i+=1}else r[i]=`| ${e.map(e=>Ya(e)).join(` | `)} |`,i+=1;return r.join(`
91
- `)},Za=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let a=Y(),[o,s]=(0,O.useState)(!1),[c,l]=(0,O.useState)(!1),u=(0,O.useRef)(null),d=(0,O.useRef)(0),{isAnimating:f}=(0,O.useContext)($),p=Z(),m=async e=>{var t;if(typeof window>`u`||!((t=navigator==null?void 0:navigator.clipboard)!=null&&t.write)){r?.(Error(`Clipboard API not available`));return}try{let t=(u.current?.closest(`[data-streamdown="table-wrapper"]`))?.querySelector(`table`);if(!t){r?.(Error(`Table not found`));return}let a=Ka(t),o=({csv:qa,tsv:Ja,md:Xa}[e]||Xa)(a),c=new ClipboardItem({"text/plain":new Blob([o],{type:`text/plain`}),"text/html":new Blob([t.outerHTML],{type:`text/html`})});await navigator.clipboard.write([c]),l(!0),s(!1),n?.(e),d.current=window.setTimeout(()=>l(!1),i)}catch(e){r?.(e)}};(0,O.useEffect)(()=>{let e=e=>{let t=e.composedPath();u.current&&!t.includes(u.current)&&s(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e),window.clearTimeout(d.current)}},[]);let h=X(),g=c?h.CheckIcon:h.CopyIcon;return(0,B.jsxs)(`div`,{className:a(`relative`),ref:u,children:[(0,B.jsx)(`button`,{className:a(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,t),disabled:f,onClick:()=>s(!o),title:p.copyTable,type:`button`,children:e??(0,B.jsx)(g,{height:14,width:14})}),o?(0,B.jsxs)(`div`,{className:a(`absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg`),children:[(0,B.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`md`),title:p.copyTableAsMarkdown,type:`button`,children:p.tableFormatMarkdown}),(0,B.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`csv`),title:p.copyTableAsCsv,type:`button`,children:p.tableFormatCsv}),(0,B.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`tsv`),title:p.copyTableAsTsv,type:`button`,children:p.tableFormatTsv})]}):null]})},Qa=({children:e,className:t,onDownload:n,onError:r})=>{let i=Y(),[a,o]=(0,O.useState)(!1),s=(0,O.useRef)(null),{isAnimating:c}=(0,O.useContext)($),l=Z(),u=X(),d=e=>{try{let t=(s.current?.closest(`[data-streamdown="table-wrapper"]`))?.querySelector(`table`);if(!t){r?.(Error(`Table not found`));return}let i=Ka(t),a=e===`csv`?qa(i):Xa(i);ua(`table.${e===`csv`?`csv`:`md`}`,a,e===`csv`?`text/csv`:`text/markdown`),o(!1),n?.(e)}catch(e){r?.(e)}};return(0,O.useEffect)(()=>{let e=e=>{let t=e.composedPath();s.current&&!t.includes(s.current)&&o(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,B.jsxs)(`div`,{className:i(`relative`),ref:s,children:[(0,B.jsx)(`button`,{className:i(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,t),disabled:c,onClick:()=>o(!a),title:l.downloadTable,type:`button`,children:e??(0,B.jsx)(u.DownloadIcon,{size:14})}),a?(0,B.jsxs)(`div`,{className:i(`absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg`),children:[(0,B.jsx)(`button`,{className:i(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>d(`csv`),title:l.downloadTableAsCsv,type:`button`,children:l.tableFormatCsv}),(0,B.jsx)(`button`,{className:i(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>d(`markdown`),title:l.downloadTableAsMarkdown,type:`button`,children:l.tableFormatMarkdown})]}):null]})},$a=({children:e,className:t,showCopy:n=!0,showDownload:r=!0})=>{let{Maximize2Icon:i,XIcon:a}=X(),o=Y(),[s,c]=(0,O.useState)(!1),{isAnimating:l}=(0,O.useContext)($),u=Z(),d=()=>{c(!0)},f=()=>{c(!1)};return(0,O.useEffect)(()=>{if(s){Fa();let e=e=>{e.key===`Escape`&&c(!1)};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),Ia()}}},[s]),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{className:o(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,t),disabled:l,onClick:d,title:u.viewFullscreen,type:`button`,children:(0,B.jsx)(i,{size:14})}),s?(0,xr.createPortal)((0,B.jsx)(`div`,{"aria-label":u.viewFullscreen,"aria-modal":`true`,className:o(`fixed inset-0 z-50 flex flex-col bg-background`),"data-streamdown":`table-fullscreen`,onClick:f,onKeyDown:e=>{e.key===`Escape`&&f()},role:`dialog`,children:(0,B.jsxs)(`div`,{className:o(`flex h-full flex-col`),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:`presentation`,children:[(0,B.jsxs)(`div`,{className:o(`flex items-center justify-end gap-1 p-4`),children:[n?(0,B.jsx)(Za,{}):null,r?(0,B.jsx)(Qa,{}):null,(0,B.jsx)(`button`,{className:o(`rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground`),onClick:f,title:u.exitFullscreen,type:`button`,children:(0,B.jsx)(a,{size:20})})]}),(0,B.jsx)(`div`,{className:o(`flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10`),children:(0,B.jsx)(`table`,{className:o(`w-full border-collapse border border-border`),"data-streamdown":`table`,children:e})})]})}),document.body):null]})},eo=({children:e,className:t,showControls:n,showCopy:r=!0,showDownload:i=!0,showFullscreen:a=!0,...o})=>{let s=Y(),c=n&&r,l=n&&i,u=n&&a,d=c||l||u;return(0,B.jsxs)(`div`,{className:s(`my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2`),"data-streamdown":`table-wrapper`,children:[d?(0,B.jsxs)(`div`,{className:s(`flex items-center justify-end gap-1`),children:[c?(0,B.jsx)(Za,{}):null,l?(0,B.jsx)(Qa,{}):null,u?(0,B.jsx)($a,{showCopy:c,showDownload:l,children:e}):null]}):null,(0,B.jsx)(`div`,{className:s(`border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background`),children:(0,B.jsx)(`table`,{className:s(`w-full divide-y divide-border`,t),"data-streamdown":`table`,...o,children:e})})]})},to=/startLine=(\d+)/,no=/\bnoLineNumbers\b/,ro=(0,O.lazy)(()=>n(()=>import(`./mermaid-GHXKKRXX-CFTslKYT.js`).then(e=>({default:e.Mermaid})),[],import.meta.url)),io=/language-([^\s]+)/;function ao(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return n?.line===r?.line&&n?.column===r?.column&&i?.line===a?.line&&i?.column===a?.column}function Q(e,t){return e.className===t.className&&ao(e.node,t.node)}var oo=(e,t)=>typeof e==`boolean`?e:e[t]!==!1,so=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.table;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},co=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.code;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},lo=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},uo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`ol`,{className:Y()(`list-inside list-decimal whitespace-normal [li_&]:pl-6`,t),"data-streamdown":`ordered-list`,...r,children:e}),(e,t)=>Q(e,t));uo.displayName=`MarkdownOl`;var fo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`li`,{className:Y()(`py-1 [&>p]:inline`,t),"data-streamdown":`list-item`,...r,children:e}),(e,t)=>e.className===t.className&&ao(e.node,t.node));fo.displayName=`MarkdownLi`;var po=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`ul`,{className:Y()(`list-inside list-disc whitespace-normal [li_&]:pl-6`,t),"data-streamdown":`unordered-list`,...r,children:e}),(e,t)=>Q(e,t));po.displayName=`MarkdownUl`;var mo=(0,O.memo)(({className:e,node:t,...n})=>(0,B.jsx)(`hr`,{className:Y()(`my-6 border-border`,e),"data-streamdown":`horizontal-rule`,...n}),(e,t)=>Q(e,t));mo.displayName=`MarkdownHr`;var ho=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`span`,{className:Y()(`font-semibold`,t),"data-streamdown":`strong`,...r,children:e}),(e,t)=>Q(e,t));ho.displayName=`MarkdownStrong`;var go=(0,O.memo)(({children:e,className:t,href:n,node:r,...i})=>{let a=Y(),{linkSafety:o}=(0,O.useContext)($),[s,c]=(0,O.useState)(!1),l=n===`streamdown:incomplete-link`,u=(0,O.useCallback)(async e=>{if(!(!(o!=null&&o.enabled&&n)||l)){if(e.preventDefault(),o.onLinkCheck&&await o.onLinkCheck(n)){window.open(n,`_blank`,`noreferrer`);return}c(!0)}},[o,n,l]),d=(0,O.useCallback)(()=>{n&&window.open(n,`_blank`,`noreferrer`)},[n]),f=(0,O.useCallback)(()=>{c(!1)},[]),p={url:n??``,isOpen:s,onClose:f,onConfirm:d};return o!=null&&o.enabled&&n?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{className:a(`wrap-anywhere appearance-none text-left font-medium text-primary underline`,t),"data-incomplete":l,"data-streamdown":`link`,onClick:u,type:`button`,children:e}),o.renderModal?o.renderModal(p):(0,B.jsx)(La,{...p})]}):(0,B.jsx)(`a`,{className:a(`wrap-anywhere font-medium text-primary underline`,t),"data-incomplete":l,"data-streamdown":`link`,href:n,rel:`noreferrer`,target:`_blank`,...i,children:e})},(e,t)=>Q(e,t)&&e.href===t.href);go.displayName=`MarkdownA`;var _o=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`h1`,{className:Y()(`mt-6 mb-2 font-semibold text-3xl`,t),"data-streamdown":`heading-1`,...r,children:e}),(e,t)=>Q(e,t));_o.displayName=`MarkdownH1`;var vo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`h2`,{className:Y()(`mt-6 mb-2 font-semibold text-2xl`,t),"data-streamdown":`heading-2`,...r,children:e}),(e,t)=>Q(e,t));vo.displayName=`MarkdownH2`;var yo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`h3`,{className:Y()(`mt-6 mb-2 font-semibold text-xl`,t),"data-streamdown":`heading-3`,...r,children:e}),(e,t)=>Q(e,t));yo.displayName=`MarkdownH3`;var bo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`h4`,{className:Y()(`mt-6 mb-2 font-semibold text-lg`,t),"data-streamdown":`heading-4`,...r,children:e}),(e,t)=>Q(e,t));bo.displayName=`MarkdownH4`;var xo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`h5`,{className:Y()(`mt-6 mb-2 font-semibold text-base`,t),"data-streamdown":`heading-5`,...r,children:e}),(e,t)=>Q(e,t));xo.displayName=`MarkdownH5`;var So=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`h6`,{className:Y()(`mt-6 mb-2 font-semibold text-sm`,t),"data-streamdown":`heading-6`,...r,children:e}),(e,t)=>Q(e,t));So.displayName=`MarkdownH6`;var Co=(0,O.memo)(({children:e,className:t,node:n,...r})=>{let{controls:i}=(0,O.useContext)($);return(0,B.jsx)(eo,{className:t,showControls:oo(i,`table`),showCopy:so(i,`copy`),showDownload:so(i,`download`),showFullscreen:so(i,`fullscreen`),...r,children:e})},(e,t)=>Q(e,t));Co.displayName=`MarkdownTable`;var wo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`thead`,{className:Y()(`bg-muted/80`,t),"data-streamdown":`table-header`,...r,children:e}),(e,t)=>Q(e,t));wo.displayName=`MarkdownThead`;var To=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`tbody`,{className:Y()(`divide-y divide-border`,t),"data-streamdown":`table-body`,...r,children:e}),(e,t)=>Q(e,t));To.displayName=`MarkdownTbody`;var Eo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`tr`,{className:Y()(`border-border`,t),"data-streamdown":`table-row`,...r,children:e}),(e,t)=>Q(e,t));Eo.displayName=`MarkdownTr`;var Do=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`th`,{className:Y()(`whitespace-nowrap px-4 py-2 text-left font-semibold text-sm`,t),"data-streamdown":`table-header-cell`,...r,children:e}),(e,t)=>Q(e,t));Do.displayName=`MarkdownTh`;var Oo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`td`,{className:Y()(`px-4 py-2 text-sm`,t),"data-streamdown":`table-cell`,...r,children:e}),(e,t)=>Q(e,t));Oo.displayName=`MarkdownTd`;var ko=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`blockquote`,{className:Y()(`my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic`,t),"data-streamdown":`blockquote`,...r,children:e}),(e,t)=>Q(e,t));ko.displayName=`MarkdownBlockquote`;var Ao=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`sup`,{className:Y()(`text-sm`,t),"data-streamdown":`superscript`,...r,children:e}),(e,t)=>Q(e,t));Ao.displayName=`MarkdownSup`;var jo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`sub`,{className:Y()(`text-sm`,t),"data-streamdown":`subscript`,...r,children:e}),(e,t)=>Q(e,t));jo.displayName=`MarkdownSub`;var Mo=(0,O.memo)(({children:e,className:t,node:n,...r})=>{if(`data-footnotes`in r){let n=e=>{if(!(0,O.isValidElement)(e))return!1;let t=Array.isArray(e.props.children)?e.props.children:[e.props.children],n=!1,r=!1;for(let e of t)if(e){if(typeof e==`string`)e.trim()!==``&&(n=!0);else if((0,O.isValidElement)(e))if(e.props?.[`data-footnote-backref`]!==void 0)r=!0;else{let t=Array.isArray(e.props.children)?e.props.children:[e.props.children];for(let e of t){if(typeof e==`string`&&e.trim()!==``){n=!0;break}if((0,O.isValidElement)(e)&&e.props?.[`data-footnote-backref`]===void 0){n=!0;break}}}}return r&&!n},i=Array.isArray(e)?e.map(e=>{if(!(0,O.isValidElement)(e))return e;if(e.type===uo){let t=(Array.isArray(e.props.children)?e.props.children:[e.props.children]).filter(e=>!n(e));return t.length===0?null:{...e,props:{...e.props,children:t}}}return e}):e;return(Array.isArray(i)?i.some(e=>e!==null):i!==null)?(0,B.jsx)(`section`,{className:t,...r,children:i}):null}return(0,B.jsx)(`section`,{className:t,...r,children:e})},(e,t)=>Q(e,t));Mo.displayName=`MarkdownSection`;var No=(0,O.memo)(({node:e,className:t,children:n,...r})=>{let i=Y(),a=!(`data-block`in r),{mermaid:o,controls:s,lineNumbers:c}=(0,O.useContext)($),l=Va(),u=oa(),d=(t?.match(io))?.at(1)??``,f=Ha(d);if(a)return(0,B.jsx)(`code`,{className:i(`rounded bg-muted px-1.5 py-0.5 font-mono text-sm`,t),"data-streamdown":`inline-code`,...r,children:n});let p=e?.properties?.metastring,m=p?.match(to),h=m?Number.parseInt(m[1],10):void 0,g=h!==void 0&&h>=1?h:void 0,_=!(p&&no.test(p))&&c!==!1,v=``;if((0,O.isValidElement)(n)&&n.props&&typeof n.props==`object`&&`children`in n.props&&typeof n.props.children==`string`?v=n.props.children:typeof n==`string`&&(v=n),f){let e=f.component;return(0,B.jsx)(O.Suspense,{fallback:(0,B.jsx)(ja,{}),children:(0,B.jsx)(e,{code:v,isIncomplete:u,language:d,meta:p})})}if(d===`mermaid`&&l){let e=oo(s,`mermaid`),n=lo(s,`download`),r=lo(s,`copy`),a=lo(s,`fullscreen`),c=lo(s,`panZoom`),l=e&&(n||r||a);return(0,B.jsx)(O.Suspense,{fallback:(0,B.jsx)(ja,{}),children:(0,B.jsxs)(`div`,{className:i(`group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2`,t),"data-streamdown":`mermaid-block`,children:[(0,B.jsx)(`div`,{className:i(`flex h-8 items-center text-muted-foreground text-xs`),children:(0,B.jsx)(`span`,{className:i(`ml-1 font-mono lowercase`),children:`mermaid`})}),l?(0,B.jsx)(`div`,{className:i(`pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end`),children:(0,B.jsxs)(`div`,{className:i(`pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur`),"data-streamdown":`mermaid-block-actions`,children:[n?(0,B.jsx)(Wa,{chart:v,config:o?.config}):null,r?(0,B.jsx)(Oa,{code:v}):null,a?(0,B.jsx)(Ga,{chart:v,config:o?.config}):null]})}):null,(0,B.jsx)(`div`,{className:i(`rounded-md border border-border bg-background`),children:(0,B.jsx)(ro,{chart:v,config:o?.config,showControls:c})})]})})}let y=oo(s,`code`),b=co(s,`download`),x=co(s,`copy`);return(0,B.jsx)(xa,{className:t,code:v,isIncomplete:u,language:d,lineNumbers:_,startLine:g,children:y?(0,B.jsxs)(B.Fragment,{children:[b?(0,B.jsx)(Aa,{code:v,language:d}):null,x?(0,B.jsx)(Oa,{}):null]}):null})},(e,t)=>e.className===t.className&&ao(e.node,t.node));No.displayName=`MarkdownCode`;var Po=(0,O.memo)(Na,(e,t)=>e.className===t.className&&ao(e.node,t.node));Po.displayName=`MarkdownImg`;var Fo=(0,O.memo)(({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(e=>e!=null&&e!==``);if(r.length===1&&(0,O.isValidElement)(r[0])){let t=r[0].props.node?.tagName;if(t===`img`||t===`code`&&`data-block`in r[0].props)return(0,B.jsx)(B.Fragment,{children:e})}return(0,B.jsx)(`p`,{...n,children:e})},(e,t)=>Q(e,t));Fo.displayName=`MarkdownParagraph`;var Io={ol:uo,li:fo,ul:po,hr:mo,strong:ho,a:go,h1:_o,h2:vo,h3:yo,h4:bo,h5:xo,h6:So,table:Co,thead:wo,tbody:To,tr:Eo,th:Do,td:Oo,blockquote:ko,code:No,img:Po,pre:({children:e})=>(0,O.isValidElement)(e)?(0,O.cloneElement)(e,{"data-block":`true`}):e,sup:Ao,sub:jo,p:Fo,section:Mo},Lo=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,Ro=/\p{L}/u;function zo(e){let t=e.replace(/^#{1,6}\s+/gm,``).replace(/(\*{1,3}|_{1,3})/g,``).replace(/`[^`]*`/g,``).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/^[\s>*\-+\d.]+/gm,``);for(let e of t){if(Lo.test(e))return`rtl`;if(Ro.test(e))return`ltr`}return`ltr`}var Bo=/^[ \t]{0,3}(`{3,}|~{3,})/,Vo=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,Ho=e=>{let t=e.split(`
91
+ `)},Za=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let a=Y(),[o,s]=(0,O.useState)(!1),[c,l]=(0,O.useState)(!1),u=(0,O.useRef)(null),d=(0,O.useRef)(0),{isAnimating:f}=(0,O.useContext)($),p=Z(),m=async e=>{var t;if(typeof window>`u`||!((t=navigator==null?void 0:navigator.clipboard)!=null&&t.write)){r?.(Error(`Clipboard API not available`));return}try{let t=(u.current?.closest(`[data-streamdown="table-wrapper"]`))?.querySelector(`table`);if(!t){r?.(Error(`Table not found`));return}let a=Ka(t),o=({csv:qa,tsv:Ja,md:Xa}[e]||Xa)(a),c=new ClipboardItem({"text/plain":new Blob([o],{type:`text/plain`}),"text/html":new Blob([t.outerHTML],{type:`text/html`})});await navigator.clipboard.write([c]),l(!0),s(!1),n?.(e),d.current=window.setTimeout(()=>l(!1),i)}catch(e){r?.(e)}};(0,O.useEffect)(()=>{let e=e=>{let t=e.composedPath();u.current&&!t.includes(u.current)&&s(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e),window.clearTimeout(d.current)}},[]);let h=X(),g=c?h.CheckIcon:h.CopyIcon;return(0,B.jsxs)(`div`,{className:a(`relative`),ref:u,children:[(0,B.jsx)(`button`,{className:a(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,t),disabled:f,onClick:()=>s(!o),title:p.copyTable,type:`button`,children:e??(0,B.jsx)(g,{height:14,width:14})}),o?(0,B.jsxs)(`div`,{className:a(`absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg`),children:[(0,B.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`md`),title:p.copyTableAsMarkdown,type:`button`,children:p.tableFormatMarkdown}),(0,B.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`csv`),title:p.copyTableAsCsv,type:`button`,children:p.tableFormatCsv}),(0,B.jsx)(`button`,{className:a(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>m(`tsv`),title:p.copyTableAsTsv,type:`button`,children:p.tableFormatTsv})]}):null]})},Qa=({children:e,className:t,onDownload:n,onError:r})=>{let i=Y(),[a,o]=(0,O.useState)(!1),s=(0,O.useRef)(null),{isAnimating:c}=(0,O.useContext)($),l=Z(),u=X(),d=e=>{try{let t=(s.current?.closest(`[data-streamdown="table-wrapper"]`))?.querySelector(`table`);if(!t){r?.(Error(`Table not found`));return}let i=Ka(t),a=e===`csv`?qa(i):Xa(i);ua(`table.${e===`csv`?`csv`:`md`}`,a,e===`csv`?`text/csv`:`text/markdown`),o(!1),n?.(e)}catch(e){r?.(e)}};return(0,O.useEffect)(()=>{let e=e=>{let t=e.composedPath();s.current&&!t.includes(s.current)&&o(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,B.jsxs)(`div`,{className:i(`relative`),ref:s,children:[(0,B.jsx)(`button`,{className:i(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,t),disabled:c,onClick:()=>o(!a),title:l.downloadTable,type:`button`,children:e??(0,B.jsx)(u.DownloadIcon,{size:14})}),a?(0,B.jsxs)(`div`,{className:i(`absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg`),children:[(0,B.jsx)(`button`,{className:i(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>d(`csv`),title:l.downloadTableAsCsv,type:`button`,children:l.tableFormatCsv}),(0,B.jsx)(`button`,{className:i(`w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40`),onClick:()=>d(`markdown`),title:l.downloadTableAsMarkdown,type:`button`,children:l.tableFormatMarkdown})]}):null]})},$a=({children:e,className:t,showCopy:n=!0,showDownload:r=!0})=>{let{Maximize2Icon:i,XIcon:a}=X(),o=Y(),[s,c]=(0,O.useState)(!1),{isAnimating:l}=(0,O.useContext)($),u=Z(),d=()=>{c(!0)},f=()=>{c(!1)};return(0,O.useEffect)(()=>{if(s){Fa();let e=e=>{e.key===`Escape`&&c(!1)};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e),Ia()}}},[s]),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{className:o(`cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,t),disabled:l,onClick:d,title:u.viewFullscreen,type:`button`,children:(0,B.jsx)(i,{size:14})}),s?(0,xr.createPortal)((0,B.jsx)(`div`,{"aria-label":u.viewFullscreen,"aria-modal":`true`,className:o(`fixed inset-0 z-50 flex flex-col bg-background`),"data-streamdown":`table-fullscreen`,onClick:f,onKeyDown:e=>{e.key===`Escape`&&f()},role:`dialog`,children:(0,B.jsxs)(`div`,{className:o(`flex h-full flex-col`),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:`presentation`,children:[(0,B.jsxs)(`div`,{className:o(`flex items-center justify-end gap-1 p-4`),children:[n?(0,B.jsx)(Za,{}):null,r?(0,B.jsx)(Qa,{}):null,(0,B.jsx)(`button`,{className:o(`rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground`),onClick:f,title:u.exitFullscreen,type:`button`,children:(0,B.jsx)(a,{size:20})})]}),(0,B.jsx)(`div`,{className:o(`flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10`),children:(0,B.jsx)(`table`,{className:o(`w-full border-collapse border border-border`),"data-streamdown":`table`,children:e})})]})}),document.body):null]})},eo=({children:e,className:t,showControls:n,showCopy:r=!0,showDownload:i=!0,showFullscreen:a=!0,...o})=>{let s=Y(),c=n&&r,l=n&&i,u=n&&a,d=c||l||u;return(0,B.jsxs)(`div`,{className:s(`my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2`),"data-streamdown":`table-wrapper`,children:[d?(0,B.jsxs)(`div`,{className:s(`flex items-center justify-end gap-1`),children:[c?(0,B.jsx)(Za,{}):null,l?(0,B.jsx)(Qa,{}):null,u?(0,B.jsx)($a,{showCopy:c,showDownload:l,children:e}):null]}):null,(0,B.jsx)(`div`,{className:s(`border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background`),children:(0,B.jsx)(`table`,{className:s(`w-full divide-y divide-border`,t),"data-streamdown":`table`,...o,children:e})})]})},to=/startLine=(\d+)/,no=/\bnoLineNumbers\b/,ro=(0,O.lazy)(()=>n(()=>import(`./mermaid-GHXKKRXX-DE1vq5OK.js`).then(e=>({default:e.Mermaid})),[],import.meta.url)),io=/language-([^\s]+)/;function ao(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return n?.line===r?.line&&n?.column===r?.column&&i?.line===a?.line&&i?.column===a?.column}function Q(e,t){return e.className===t.className&&ao(e.node,t.node)}var oo=(e,t)=>typeof e==`boolean`?e:e[t]!==!1,so=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.table;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},co=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.code;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},lo=(e,t)=>{if(typeof e==`boolean`)return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},uo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`ol`,{className:Y()(`list-inside list-decimal whitespace-normal [li_&]:pl-6`,t),"data-streamdown":`ordered-list`,...r,children:e}),(e,t)=>Q(e,t));uo.displayName=`MarkdownOl`;var fo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`li`,{className:Y()(`py-1 [&>p]:inline`,t),"data-streamdown":`list-item`,...r,children:e}),(e,t)=>e.className===t.className&&ao(e.node,t.node));fo.displayName=`MarkdownLi`;var po=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`ul`,{className:Y()(`list-inside list-disc whitespace-normal [li_&]:pl-6`,t),"data-streamdown":`unordered-list`,...r,children:e}),(e,t)=>Q(e,t));po.displayName=`MarkdownUl`;var mo=(0,O.memo)(({className:e,node:t,...n})=>(0,B.jsx)(`hr`,{className:Y()(`my-6 border-border`,e),"data-streamdown":`horizontal-rule`,...n}),(e,t)=>Q(e,t));mo.displayName=`MarkdownHr`;var ho=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`span`,{className:Y()(`font-semibold`,t),"data-streamdown":`strong`,...r,children:e}),(e,t)=>Q(e,t));ho.displayName=`MarkdownStrong`;var go=(0,O.memo)(({children:e,className:t,href:n,node:r,...i})=>{let a=Y(),{linkSafety:o}=(0,O.useContext)($),[s,c]=(0,O.useState)(!1),l=n===`streamdown:incomplete-link`,u=(0,O.useCallback)(async e=>{if(!(!(o!=null&&o.enabled&&n)||l)){if(e.preventDefault(),o.onLinkCheck&&await o.onLinkCheck(n)){window.open(n,`_blank`,`noreferrer`);return}c(!0)}},[o,n,l]),d=(0,O.useCallback)(()=>{n&&window.open(n,`_blank`,`noreferrer`)},[n]),f=(0,O.useCallback)(()=>{c(!1)},[]),p={url:n??``,isOpen:s,onClose:f,onConfirm:d};return o!=null&&o.enabled&&n?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`button`,{className:a(`wrap-anywhere appearance-none text-left font-medium text-primary underline`,t),"data-incomplete":l,"data-streamdown":`link`,onClick:u,type:`button`,children:e}),o.renderModal?o.renderModal(p):(0,B.jsx)(La,{...p})]}):(0,B.jsx)(`a`,{className:a(`wrap-anywhere font-medium text-primary underline`,t),"data-incomplete":l,"data-streamdown":`link`,href:n,rel:`noreferrer`,target:`_blank`,...i,children:e})},(e,t)=>Q(e,t)&&e.href===t.href);go.displayName=`MarkdownA`;var _o=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`h1`,{className:Y()(`mt-6 mb-2 font-semibold text-3xl`,t),"data-streamdown":`heading-1`,...r,children:e}),(e,t)=>Q(e,t));_o.displayName=`MarkdownH1`;var vo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`h2`,{className:Y()(`mt-6 mb-2 font-semibold text-2xl`,t),"data-streamdown":`heading-2`,...r,children:e}),(e,t)=>Q(e,t));vo.displayName=`MarkdownH2`;var yo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`h3`,{className:Y()(`mt-6 mb-2 font-semibold text-xl`,t),"data-streamdown":`heading-3`,...r,children:e}),(e,t)=>Q(e,t));yo.displayName=`MarkdownH3`;var bo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`h4`,{className:Y()(`mt-6 mb-2 font-semibold text-lg`,t),"data-streamdown":`heading-4`,...r,children:e}),(e,t)=>Q(e,t));bo.displayName=`MarkdownH4`;var xo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`h5`,{className:Y()(`mt-6 mb-2 font-semibold text-base`,t),"data-streamdown":`heading-5`,...r,children:e}),(e,t)=>Q(e,t));xo.displayName=`MarkdownH5`;var So=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`h6`,{className:Y()(`mt-6 mb-2 font-semibold text-sm`,t),"data-streamdown":`heading-6`,...r,children:e}),(e,t)=>Q(e,t));So.displayName=`MarkdownH6`;var Co=(0,O.memo)(({children:e,className:t,node:n,...r})=>{let{controls:i}=(0,O.useContext)($);return(0,B.jsx)(eo,{className:t,showControls:oo(i,`table`),showCopy:so(i,`copy`),showDownload:so(i,`download`),showFullscreen:so(i,`fullscreen`),...r,children:e})},(e,t)=>Q(e,t));Co.displayName=`MarkdownTable`;var wo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`thead`,{className:Y()(`bg-muted/80`,t),"data-streamdown":`table-header`,...r,children:e}),(e,t)=>Q(e,t));wo.displayName=`MarkdownThead`;var To=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`tbody`,{className:Y()(`divide-y divide-border`,t),"data-streamdown":`table-body`,...r,children:e}),(e,t)=>Q(e,t));To.displayName=`MarkdownTbody`;var Eo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`tr`,{className:Y()(`border-border`,t),"data-streamdown":`table-row`,...r,children:e}),(e,t)=>Q(e,t));Eo.displayName=`MarkdownTr`;var Do=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`th`,{className:Y()(`whitespace-nowrap px-4 py-2 text-left font-semibold text-sm`,t),"data-streamdown":`table-header-cell`,...r,children:e}),(e,t)=>Q(e,t));Do.displayName=`MarkdownTh`;var Oo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`td`,{className:Y()(`px-4 py-2 text-sm`,t),"data-streamdown":`table-cell`,...r,children:e}),(e,t)=>Q(e,t));Oo.displayName=`MarkdownTd`;var ko=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`blockquote`,{className:Y()(`my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic`,t),"data-streamdown":`blockquote`,...r,children:e}),(e,t)=>Q(e,t));ko.displayName=`MarkdownBlockquote`;var Ao=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`sup`,{className:Y()(`text-sm`,t),"data-streamdown":`superscript`,...r,children:e}),(e,t)=>Q(e,t));Ao.displayName=`MarkdownSup`;var jo=(0,O.memo)(({children:e,className:t,node:n,...r})=>(0,B.jsx)(`sub`,{className:Y()(`text-sm`,t),"data-streamdown":`subscript`,...r,children:e}),(e,t)=>Q(e,t));jo.displayName=`MarkdownSub`;var Mo=(0,O.memo)(({children:e,className:t,node:n,...r})=>{if(`data-footnotes`in r){let n=e=>{if(!(0,O.isValidElement)(e))return!1;let t=Array.isArray(e.props.children)?e.props.children:[e.props.children],n=!1,r=!1;for(let e of t)if(e){if(typeof e==`string`)e.trim()!==``&&(n=!0);else if((0,O.isValidElement)(e))if(e.props?.[`data-footnote-backref`]!==void 0)r=!0;else{let t=Array.isArray(e.props.children)?e.props.children:[e.props.children];for(let e of t){if(typeof e==`string`&&e.trim()!==``){n=!0;break}if((0,O.isValidElement)(e)&&e.props?.[`data-footnote-backref`]===void 0){n=!0;break}}}}return r&&!n},i=Array.isArray(e)?e.map(e=>{if(!(0,O.isValidElement)(e))return e;if(e.type===uo){let t=(Array.isArray(e.props.children)?e.props.children:[e.props.children]).filter(e=>!n(e));return t.length===0?null:{...e,props:{...e.props,children:t}}}return e}):e;return(Array.isArray(i)?i.some(e=>e!==null):i!==null)?(0,B.jsx)(`section`,{className:t,...r,children:i}):null}return(0,B.jsx)(`section`,{className:t,...r,children:e})},(e,t)=>Q(e,t));Mo.displayName=`MarkdownSection`;var No=(0,O.memo)(({node:e,className:t,children:n,...r})=>{let i=Y(),a=!(`data-block`in r),{mermaid:o,controls:s,lineNumbers:c}=(0,O.useContext)($),l=Va(),u=oa(),d=(t?.match(io))?.at(1)??``,f=Ha(d);if(a)return(0,B.jsx)(`code`,{className:i(`rounded bg-muted px-1.5 py-0.5 font-mono text-sm`,t),"data-streamdown":`inline-code`,...r,children:n});let p=e?.properties?.metastring,m=p?.match(to),h=m?Number.parseInt(m[1],10):void 0,g=h!==void 0&&h>=1?h:void 0,_=!(p&&no.test(p))&&c!==!1,v=``;if((0,O.isValidElement)(n)&&n.props&&typeof n.props==`object`&&`children`in n.props&&typeof n.props.children==`string`?v=n.props.children:typeof n==`string`&&(v=n),f){let e=f.component;return(0,B.jsx)(O.Suspense,{fallback:(0,B.jsx)(ja,{}),children:(0,B.jsx)(e,{code:v,isIncomplete:u,language:d,meta:p})})}if(d===`mermaid`&&l){let e=oo(s,`mermaid`),n=lo(s,`download`),r=lo(s,`copy`),a=lo(s,`fullscreen`),c=lo(s,`panZoom`),l=e&&(n||r||a);return(0,B.jsx)(O.Suspense,{fallback:(0,B.jsx)(ja,{}),children:(0,B.jsxs)(`div`,{className:i(`group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2`,t),"data-streamdown":`mermaid-block`,children:[(0,B.jsx)(`div`,{className:i(`flex h-8 items-center text-muted-foreground text-xs`),children:(0,B.jsx)(`span`,{className:i(`ml-1 font-mono lowercase`),children:`mermaid`})}),l?(0,B.jsx)(`div`,{className:i(`pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end`),children:(0,B.jsxs)(`div`,{className:i(`pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur`),"data-streamdown":`mermaid-block-actions`,children:[n?(0,B.jsx)(Wa,{chart:v,config:o?.config}):null,r?(0,B.jsx)(Oa,{code:v}):null,a?(0,B.jsx)(Ga,{chart:v,config:o?.config}):null]})}):null,(0,B.jsx)(`div`,{className:i(`rounded-md border border-border bg-background`),children:(0,B.jsx)(ro,{chart:v,config:o?.config,showControls:c})})]})})}let y=oo(s,`code`),b=co(s,`download`),x=co(s,`copy`);return(0,B.jsx)(xa,{className:t,code:v,isIncomplete:u,language:d,lineNumbers:_,startLine:g,children:y?(0,B.jsxs)(B.Fragment,{children:[b?(0,B.jsx)(Aa,{code:v,language:d}):null,x?(0,B.jsx)(Oa,{}):null]}):null})},(e,t)=>e.className===t.className&&ao(e.node,t.node));No.displayName=`MarkdownCode`;var Po=(0,O.memo)(Na,(e,t)=>e.className===t.className&&ao(e.node,t.node));Po.displayName=`MarkdownImg`;var Fo=(0,O.memo)(({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(e=>e!=null&&e!==``);if(r.length===1&&(0,O.isValidElement)(r[0])){let t=r[0].props.node?.tagName;if(t===`img`||t===`code`&&`data-block`in r[0].props)return(0,B.jsx)(B.Fragment,{children:e})}return(0,B.jsx)(`p`,{...n,children:e})},(e,t)=>Q(e,t));Fo.displayName=`MarkdownParagraph`;var Io={ol:uo,li:fo,ul:po,hr:mo,strong:ho,a:go,h1:_o,h2:vo,h3:yo,h4:bo,h5:xo,h6:So,table:Co,thead:wo,tbody:To,tr:Eo,th:Do,td:Oo,blockquote:ko,code:No,img:Po,pre:({children:e})=>(0,O.isValidElement)(e)?(0,O.cloneElement)(e,{"data-block":`true`}):e,sup:Ao,sub:jo,p:Fo,section:Mo},Lo=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,Ro=/\p{L}/u;function zo(e){let t=e.replace(/^#{1,6}\s+/gm,``).replace(/(\*{1,3}|_{1,3})/g,``).replace(/`[^`]*`/g,``).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/^[\s>*\-+\d.]+/gm,``);for(let e of t){if(Lo.test(e))return`rtl`;if(Ro.test(e))return`ltr`}return`ltr`}var Bo=/^[ \t]{0,3}(`{3,}|~{3,})/,Vo=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,Ho=e=>{let t=e.split(`
92
92
  `),n=null,r=0;for(let e of t){let t=Bo.exec(e);if(n===null){if(t){let e=t[1];n=e[0],r=e.length}}else if(t){let e=t[1],i=e[0],a=e.length;i===n&&a>=r&&(n=null,r=0)}}return n!==null},Uo=e=>{let t=e.split(`
93
93
  `);for(let e of t){let t=e.trim();if(t.length>0&&t.includes(`|`)&&Vo.test(t))return!0}return!1},Wo=()=>e=>{p(e,`html`,(e,t,n)=>{!n||typeof t!=`number`||(n.children[t]={type:`text`,value:e.value})})},Go=[],Ko={allowDangerousHtml:!0},qo=new WeakMap,Jo=new class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let t=`default`;return this.keyCache.set(e,t),t}let a=e=>{if(!e||e.length===0)return``;let t=``;for(let n=0;n<e.length;n+=1){let r=e[n];if(n>0&&(t+=`,`),Array.isArray(r)){let[e,n]=r;if(typeof e==`function`){let n=qo.get(e);n||(n=e.name,qo.set(e,n)),t+=n}else t+=String(e);t+=`:`,t+=JSON.stringify(n)}else if(typeof r==`function`){let e=qo.get(r);e||(e=r.name,qo.set(r,e)),t+=e}else t+=String(r)}return t},o=a(n),s=`${a(r)}::${o}::${i?JSON.stringify(i):``}`;return this.keyCache.set(e,s),s}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(n,t)}clear(){this.cache.clear()}},Yo=e=>{let t=Xo(e),n=e.children||``;return rs(t.runSync(t.parse(n),n),e)},Xo=e=>{let t=Jo.get(e);if(t)return t;let n=Qo(e);return Jo.set(e,n),n},Zo=e=>e.some(e=>Array.isArray(e)?e[0]===Xe:e===Xe),Qo=e=>{let t=e.rehypePlugins||Go,n=e.remarkPlugins||Go,r=Zo(t)?n:[...n,Wo],i=e.remarkRehypeOptions?{...Ko,...e.remarkRehypeOptions}:Ko;return v().use(ne).use(r).use(oe,i).use(t)},$o=e=>e,es=(e,t,n,r)=>{n?e.children.splice(t,1):e.children[t]={type:`text`,value:r}},ts=(e,t)=>{for(let n in br)if(Object.hasOwn(br,n)&&Object.hasOwn(e.properties,n)){let r=e.properties[n],i=br[n];(i===null||i.includes(e.tagName))&&(e.properties[n]=t(String(r||``),n,e)??void 0)}},ns=(e,t,n,r,i,a)=>{let o=!1;return r?o=!r.includes(e.tagName):i&&(o=i.includes(e.tagName)),!o&&a&&typeof t==`number`&&(o=!a(e,t,n)),o},rs=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:i,skipHtml:a,unwrapDisallowed:o,urlTransform:s}=t;if(n||r||i||a||s){let t=s||$o;p(e,(e,s,c)=>{if(e.type===`raw`&&c&&typeof s==`number`)return es(c,s,a,e.value),s;if(e.type===`element`&&(ts(e,t),ns(e,s,c,r,i,n)&&c&&typeof s==`number`))return o&&e.children?c.children.splice(s,1,...e.children):c.children.splice(s,1),s})}return Qn(e,{Fragment:B.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:B.jsx,jsxs:B.jsxs,passKeys:!0,passNode:!0})},is=/\[\^[\w-]{1,200}\](?!:)/,as=/\[\^[\w-]{1,200}\]:/,os=/<(\w+)[\s>]/,ss=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),cs=new Map,ls=new Map,us=e=>{let t=e.toLowerCase(),n=cs.get(t);if(n)return n;let r=RegExp(`<${t}(?=[\\s>/])[^>]*>`,`gi`);return cs.set(t,r),r},ds=e=>{let t=e.toLowerCase(),n=ls.get(t);if(n)return n;let r=RegExp(`</${t}(?=[\\s>])[^>]*>`,`gi`);return ls.set(t,r),r},fs=(e,t)=>{if(ss.has(t.toLowerCase()))return 0;let n=e.match(us(t));if(!n)return 0;let r=0;for(let e of n)e.trimEnd().endsWith(`/>`)||(r+=1);return r},ps=(e,t)=>{let n=e.match(ds(t));return n?n.length:0},ms=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]===`$`&&e[n+1]===`$`&&(t+=1,n+=1);return t},hs=e=>{let t=is.test(e),n=as.test(e);if(t||n)return[e];let r=G.lex(e,{gfm:!0}),i=[],a=[],o=!1;for(let e of r){let t=e.raw,n=i.length;if(a.length>0){i[n-1]+=t;let e=a.at(-1),r=fs(t,e),o=ps(t,e);for(let t=0;t<r;t+=1)a.push(e);for(let t=0;t<o;t+=1)a.length>0&&a.at(-1)===e&&a.pop();continue}if(e.type===`html`&&e.block){let e=t.match(os);if(e){let n=e[1];fs(t,n)>ps(t,n)&&a.push(n)}}if(n>0&&!o){let e=i[n-1];if(ms(e)%2==1){i[n-1]=e+t;continue}}i.push(t),e.type!==`space`&&(o=e.type===`code`)}return i},gs=(e,t)=>{if(!t.length)return e;let n=e;for(let e of t){let t=RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`,`gi`);n=n.replace(t,(e,t,n,r)=>{if(!n.includes(`
94
94
 
@@ -1 +1 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-PbmsUfAu.js";import{x as t}from"./chunk-WYO6CB5R-DAcO6KqN.js";var n=e(e=>{let{handDrawnSeed:n}=t();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:n}},`solidStateFill`),r=e(e=>{let t=i([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),i=e(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),a=e(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),o=e(e=>{let{stylesArray:t}=r(e),n=[],i=[],o=[],s=[];return t.forEach(e=>{let t=e[0];a(t)?n.push(e.join(`:`)+` !important`):(i.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&o.push(e.join(`:`)+` !important`),t===`fill`&&s.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:i.join(`;`),stylesArray:t,borderStyles:o,backgroundStyles:s}},`styles2String`),s=e((e,n)=>{let{themeVariables:i,handDrawnSeed:a}=t(),{nodeBorder:o,mainBkg:s}=i,{stylesMap:l}=r(e);return Object.assign({roughness:.7,fill:l.get(`fill`)||s,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:l.get(`stroke`)||o,seed:a,strokeWidth:l.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:c(l.get(`stroke-dasharray`))},n)},`userNodeOverrides`),c=e(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`);export{s as a,o as i,a as n,n as r,r as t};
1
+ import{n as e}from"./chunk-Y2CYZVJY-BavonG01.js";import{x as t}from"./chunk-WYO6CB5R-BMZjhy31.js";var n=e(e=>{let{handDrawnSeed:n}=t();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:n}},`solidStateFill`),r=e(e=>{let t=i([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),i=e(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),a=e(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),o=e(e=>{let{stylesArray:t}=r(e),n=[],i=[],o=[],s=[];return t.forEach(e=>{let t=e[0];a(t)?n.push(e.join(`:`)+` !important`):(i.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&o.push(e.join(`:`)+` !important`),t===`fill`&&s.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:i.join(`;`),stylesArray:t,borderStyles:o,backgroundStyles:s}},`styles2String`),s=e((e,n)=>{let{themeVariables:i,handDrawnSeed:a}=t(),{nodeBorder:o,mainBkg:s}=i,{stylesMap:l}=r(e);return Object.assign({roughness:.7,fill:l.get(`fill`)||s,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:l.get(`stroke`)||o,seed:a,strokeWidth:l.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:c(l.get(`stroke-dasharray`))},n)},`userNodeOverrides`),c=e(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`);export{s as a,o as i,a as n,n as r,r as t};
@@ -1 +1 @@
1
- import{C as e,S as t,n,o as r,t as i,u as a,v as o,w as s,x as c}from"./chunk-KEIR6QF5-Bf0oDx3Z.js";var l=class extends n{static{c(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},u=class extends i{static{c(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},d={parser:{TokenBuilder:c(()=>new u,`TokenBuilder`),ValueConverter:c(()=>new l,`ValueConverter`)}};function f(n=r){let i=s(e(n),a),c=s(t({shared:i}),o,d);return i.ServiceRegistry.register(c),{shared:i,TreeView:c}}c(f,`createTreeViewServices`);export{f as n,d as t};
1
+ import{C as e,S as t,n,o as r,t as i,u as a,v as o,w as s,x as c}from"./chunk-KEIR6QF5-Cvu_RfZc.js";var l=class extends n{static{c(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},u=class extends i{static{c(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},d={parser:{TokenBuilder:c(()=>new u,`TokenBuilder`),ValueConverter:c(()=>new l,`ValueConverter`)}};function f(n=r){let i=s(e(n),a),c=s(t({shared:i}),o,d);return i.ServiceRegistry.register(c),{shared:i,TreeView:c}}c(f,`createTreeViewServices`);export{f as n,d as t};
@@ -1 +1 @@
1
- import{C as e,S as t,c as n,i as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-Bf0oDx3Z.js";var l=class extends a{static{c(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},u={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new r,`ValueConverter`)}};function d(r=i){let a=s(e(r),o),c=s(t({shared:a}),n,u);return a.ServiceRegistry.register(c),{shared:a,GitGraph:c}}c(d,`createGitGraphServices`);export{d as n,u as t};
1
+ import{C as e,S as t,c as n,i as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-Cvu_RfZc.js";var l=class extends a{static{c(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},u={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new r,`ValueConverter`)}};function d(r=i){let a=s(e(r),o),c=s(t({shared:a}),n,u);return a.ServiceRegistry.register(c),{shared:a,GitGraph:c}}c(d,`createGitGraphServices`);export{d as n,u as t};
@@ -1 +1 @@
1
- import{C as e,S as t,d as n,i as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-Bf0oDx3Z.js";var l=class extends a{static{c(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},u={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new r,`ValueConverter`)}};function d(r=i){let a=s(e(r),o),c=s(t({shared:a}),n,u);return a.ServiceRegistry.register(c),{shared:a,Packet:c}}c(d,`createPacketServices`);export{d as n,u as t};
1
+ import{C as e,S as t,d as n,i as r,o as i,t as a,u as o,w as s,x as c}from"./chunk-KEIR6QF5-Cvu_RfZc.js";var l=class extends a{static{c(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},u={parser:{TokenBuilder:c(()=>new l,`TokenBuilder`),ValueConverter:c(()=>new r,`ValueConverter`)}};function d(r=i){let a=s(e(r),o),c=s(t({shared:a}),n,u);return a.ServiceRegistry.register(c),{shared:a,Packet:c}}c(d,`createPacketServices`);export{d as n,u as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-PbmsUfAu.js";import{t}from"./src-DsJU4LsJ.js";import{$ as n,H as r,K as i,U as a,a as o,s,v as c,w as l,x as u,y as d}from"./chunk-WYO6CB5R-DAcO6KqN.js";import{C as f}from"./src-DkpCd49O.js";import{g as p,s as m}from"./chunk-ICXQ74PX-B_iuJAXS.js";import{t as h}from"./chunk-32BRIVSS-DWFi-mYl.js";import{t as g}from"./chunk-XXDRQBXY-CRN6FsNM.js";import{t as _}from"./chunk-VR4S4FIN-DOfDyz67.js";import{r as v}from"./chunk-FWX5IMBZ-C4vKCoUv.js";var y=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,7]),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,40],15:[1,41]}),t(A,[2,16]),{18:[1,42]},t(A,[2,18],{20:[1,43]}),{23:[1,44]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(A,[2,28]),{34:[1,49]},{36:[1,50]},t(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(j,[2,44],{58:[1,56]}),t(j,[2,45],{58:[1,57]}),t(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(A,[2,6]),t(A,[2,13]),{13:58,24:f,57:k},t(A,[2,17]),t(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(A,[2,29]),t(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(j,[2,46]),t(j,[2,47]),t(A,[2,15]),t(A,[2,19]),t(M,a,{7:78}),t(A,[2,26]),t(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,32]),t(A,[2,33]),t(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(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;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(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(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
+ import{n as e}from"./chunk-Y2CYZVJY-BavonG01.js";import{t}from"./src-DFZupjZD.js";import{$ as n,H as r,K as i,U as a,a as o,s,v as c,w as l,x as u,y as d}from"./chunk-WYO6CB5R-BMZjhy31.js";import{C as f}from"./src-CIOeKeVw.js";import{g as p,s as m}from"./chunk-ICXQ74PX-QBz75RJe.js";import{t as h}from"./chunk-32BRIVSS-CydyM0Ml.js";import{t as g}from"./chunk-XXDRQBXY-BW_2kVvu.js";import{t as _}from"./chunk-VR4S4FIN-bcHVGPIL.js";import{r as v}from"./chunk-FWX5IMBZ-CXQqiinv.js";var y=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,7]),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,40],15:[1,41]}),t(A,[2,16]),{18:[1,42]},t(A,[2,18],{20:[1,43]}),{23:[1,44]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(A,[2,28]),{34:[1,49]},{36:[1,50]},t(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(j,[2,44],{58:[1,56]}),t(j,[2,45],{58:[1,57]}),t(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(A,[2,6]),t(A,[2,13]),{13:58,24:f,57:k},t(A,[2,17]),t(M,a,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(A,[2,29]),t(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(A,[2,14],{14:[1,71]}),{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(j,[2,46]),t(j,[2,47]),t(A,[2,15]),t(A,[2,19]),t(M,a,{7:78}),t(A,[2,26]),t(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:s,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},t(A,[2,32]),t(A,[2,33]),t(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(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;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(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(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`)};N.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(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(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(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(function(){return this._more=!0,this},`more`),reject:e(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(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(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(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(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-VKFMJZFB-CgYSDfeg.js","./chunk-HOUHSVGY-CZX004Ef.js","./src-DsJU4LsJ.js","./chunk-CYidjpOJ.js","./src-DkpCd49O.js","./chunk-Y2CYZVJY-PbmsUfAu.js","./chunk-WYO6CB5R-DAcO6KqN.js","./preload-helper-Chd9yIcd.js","./chunk-ICXQ74PX-B_iuJAXS.js","./dist-D4eaXg-1.js","./dagre-DmGue-PX.js","./graphlib-DIVfLvlR.js","./isObject-Bs1dF4ay.js","./map-XagOZNs9.js","./now-BJ6wHiq6.js","./chunk-RYQCIY6F-BnIBPlEn.js","./chunk-Q4XR5HBZ--1adMSrR.js","./chunk-52WLFC77-C3ewIu0v.js","./line-D0lohJ6a.js","./path-rUjnF-It.js","./array-DpLqdF3L.js","./chunk-7BUUIJ7U-Bwj5weSU.js","./chunk-C7G6YPKG-JOVwaeql.js","./chunk-OGEWGWER-dIUHPavN.js","./chunk-ZGVPDNZ5-CnXHsnX3.js","./rough.esm-BfebUORF.js","./swimlanes-5IMT3BWC-B6x4Ld9j.js","./cose-bilkent-JH36ORCC-BO3tFb1k.js","./cytoscape.esm-BkIkmBTc.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./preload-helper-Chd9yIcd.js";import{n as t}from"./chunk-Y2CYZVJY-PbmsUfAu.js";import{t as n}from"./src-DsJU4LsJ.js";import{b as r,s as i}from"./chunk-WYO6CB5R-DAcO6KqN.js";import{d as a}from"./chunk-ICXQ74PX-B_iuJAXS.js";import{a as o,i as s,s as c}from"./chunk-ZGVPDNZ5-CnXHsnX3.js";import{a as l,i as u,o as d,r as f}from"./chunk-52WLFC77-C3ewIu0v.js";var p={common:i,getConfig:r,insertCluster:s,insertEdge:f,insertEdgeLabel:u,insertMarkers:l,insertNode:o,interpolateToCurve:a,labelHelper:c,log:n,positionEdgeLabel:d},m={},h=t(e=>{for(let t of e)m[t.name]=t},`registerLayoutLoaders`);t(()=>{h([{name:`dagre`,loader:t(async()=>await e(()=>import(`./dagre-VKFMJZFB-CgYSDfeg.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),`loader`)},{name:`swimlane`,loader:t(async()=>await e(()=>import(`./swimlanes-5IMT3BWC-B6x4Ld9j.js`),__vite__mapDeps([26,7,1,2,3,4,5,6,8,9,11,12,15,13,16,17,18,19,20,21,22,23,24,25]),import.meta.url),`loader`)},...[{name:`cose-bilkent`,loader:t(async()=>await e(()=>import(`./cose-bilkent-JH36ORCC-BO3tFb1k.js`),__vite__mapDeps([27,3,28,2,4,5]),import.meta.url),`loader`)}]])},`registerDefaultLayoutLoaders`)();var g=t(async(e,t,n)=>{if(!(e.layoutAlgorithm in m))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let r=m[e.layoutAlgorithm],i=await r.loader(),{theme:a,themeVariables:o}=e.config,{useGradient:s,gradientStart:c,gradientStop:l}=o,u=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${u}-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${a?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${u}-drop-shadow-small`).attr(`height`,`150%`).attr(`width`,`150%`).append(`feDropShadow`).attr(`dx`,`2`).attr(`dy`,`2`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${a?.includes(`dark`)?`#FFFFFF`:`#000000`}`),s){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,c).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,l).attr(`stop-opacity`,1)}return i.render(e,t,p,{algorithm:r.algorithm},n)},`render`),_=t((e=``,{fallback:t=`dagre`}={})=>{if(e in m)return e;if(t in m)return n.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},`getRegisteredLayoutAlgorithm`);export{h as n,g as r,_ as t};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-VKFMJZFB-Bdh7Hq5O.js","./chunk-HOUHSVGY-FQeseOdw.js","./src-DFZupjZD.js","./chunk-CYidjpOJ.js","./src-CIOeKeVw.js","./chunk-Y2CYZVJY-BavonG01.js","./chunk-WYO6CB5R-BMZjhy31.js","./preload-helper-Chd9yIcd.js","./chunk-ICXQ74PX-QBz75RJe.js","./dist-BKO-SihH.js","./dagre-DqpVUR-3.js","./graphlib-2mbBufU8.js","./isObject-CS6pZNNk.js","./map-DCuMc749.js","./now-D9M3Ys6o.js","./chunk-RYQCIY6F-BV0ikdQB.js","./chunk-Q4XR5HBZ-FwXZQ9hY.js","./chunk-52WLFC77-cG-DvO_j.js","./line-DWKLErsv.js","./path-BTSnI4V0.js","./array-BlR6RSqS.js","./chunk-7BUUIJ7U-nkQ2KUUq.js","./chunk-C7G6YPKG-DeJ7KSfD.js","./chunk-OGEWGWER-D9rNoxcC.js","./chunk-ZGVPDNZ5-DN7h9evR.js","./rough.esm-FREjYXwx.js","./swimlanes-5IMT3BWC-cGipHfZ5.js","./cose-bilkent-JH36ORCC-C3tuxXMJ.js","./cytoscape.esm-CcKBPOPz.js"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./preload-helper-Chd9yIcd.js";import{n as t}from"./chunk-Y2CYZVJY-BavonG01.js";import{t as n}from"./src-DFZupjZD.js";import{b as r,s as i}from"./chunk-WYO6CB5R-BMZjhy31.js";import{d as a}from"./chunk-ICXQ74PX-QBz75RJe.js";import{a as o,i as s,s as c}from"./chunk-ZGVPDNZ5-DN7h9evR.js";import{a as l,i as u,o as d,r as f}from"./chunk-52WLFC77-cG-DvO_j.js";var p={common:i,getConfig:r,insertCluster:s,insertEdge:f,insertEdgeLabel:u,insertMarkers:l,insertNode:o,interpolateToCurve:a,labelHelper:c,log:n,positionEdgeLabel:d},m={},h=t(e=>{for(let t of e)m[t.name]=t},`registerLayoutLoaders`);t(()=>{h([{name:`dagre`,loader:t(async()=>await e(()=>import(`./dagre-VKFMJZFB-Bdh7Hq5O.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url),`loader`)},{name:`swimlane`,loader:t(async()=>await e(()=>import(`./swimlanes-5IMT3BWC-cGipHfZ5.js`),__vite__mapDeps([26,7,1,2,3,4,5,6,8,9,11,12,15,13,16,17,18,19,20,21,22,23,24,25]),import.meta.url),`loader`)},...[{name:`cose-bilkent`,loader:t(async()=>await e(()=>import(`./cose-bilkent-JH36ORCC-C3tuxXMJ.js`),__vite__mapDeps([27,3,28,2,4,5]),import.meta.url),`loader`)}]])},`registerDefaultLayoutLoaders`)();var g=t(async(e,t,n)=>{if(!(e.layoutAlgorithm in m))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let r=m[e.layoutAlgorithm],i=await r.loader(),{theme:a,themeVariables:o}=e.config,{useGradient:s,gradientStart:c,gradientStop:l}=o,u=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${u}-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${a?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${u}-drop-shadow-small`).attr(`height`,`150%`).attr(`width`,`150%`).append(`feDropShadow`).attr(`dx`,`2`).attr(`dy`,`2`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${a?.includes(`dark`)?`#FFFFFF`:`#000000`}`),s){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,c).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,l).attr(`stop-opacity`,1)}return i.render(e,t,p,{algorithm:r.algorithm},n)},`render`),_=t((e=``,{fallback:t=`dagre`}={})=>{if(e in m)return e;if(t in m)return n.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},`getRegisteredLayoutAlgorithm`);export{h as n,g as r,_ as t};