@inkeep/open-knowledge 0.64.0-beta.7 → 0.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (417) hide show
  1. package/dist/{acp-harness-probe-BML7wGVY.mjs → acp-harness-probe-BS2KKWDg.mjs} +2 -2
  2. package/dist/cli.mjs +46 -46
  3. package/dist/constants-VMvduCQu.mjs +2 -0
  4. package/dist/{git-handle-UnQwrdlT.mjs → git-handle-29BNYqgw.mjs} +2 -2
  5. package/dist/git-handle-DfQBBy3_.mjs +1 -0
  6. package/dist/index.d.mts +49 -97
  7. package/dist/index.mjs +161 -158
  8. package/dist/{init-ChQc0EZ1.mjs → init-CB9b8ABp.mjs} +35 -37
  9. package/dist/init-C_7xLv5L.mjs +1 -0
  10. package/dist/{launch-json-removal-BrdHqkRe.mjs → launch-json-removal-lmoBoEPZ.mjs} +2 -2
  11. package/dist/loader-CqMTrIZH.mjs +1 -0
  12. package/dist/{loader-Bz3Pc-W1.mjs → loader-DyT98uPM.mjs} +2 -2
  13. package/dist/md-manager-CZcRasmz.mjs +2 -0
  14. package/dist/{open-browser-mXaE0V-v.mjs → open-browser-aU_PSdrG.mjs} +2 -2
  15. package/dist/parse-worker.mjs +1 -1
  16. package/dist/{preview-UNTRk4oX.mjs → preview-B0PMP9Tc.mjs} +2 -2
  17. package/dist/preview-BnhlaGQl.mjs +1 -0
  18. package/dist/public/assets/{ActivityModeContent-CrcHRSaR.js → ActivityModeContent-rGNWFHTn.js} +1 -1
  19. package/dist/public/assets/AddPropertiesButton-2JRBAQEf.js +1 -0
  20. package/dist/public/assets/{AgentDiffPane-iV_pard0.js → AgentDiffPane-DaORQqpS.js} +1 -1
  21. package/dist/public/assets/AgentThreadClientBinder-CJYGMIr6.js +1 -0
  22. package/dist/public/assets/{AppMenubar-ywn95n5_.js → AppMenubar-MkvVs-8F.js} +1 -1
  23. package/dist/public/assets/{BugReportHistory-BATOeSHw.js → BugReportHistory-Cuh__mug.js} +1 -1
  24. package/dist/public/assets/{BugReportHistoryDialog-sIMmVxt-.js → BugReportHistoryDialog-C_9BqWro.js} +1 -1
  25. package/dist/public/assets/CodeMirrorPropInput-B8JfraRG.js +3 -0
  26. package/dist/public/assets/{ConfigSharingInfoTooltip-D7VVLhT-.js → ConfigSharingInfoTooltip-N4ECgZTE.js} +1 -1
  27. package/dist/public/assets/{ConsentDialogBody-BcI0XBtZ.js → ConsentDialogBody-CK9RceLc.js} +1 -1
  28. package/dist/public/assets/DiffView-CkGEuSZT.js +3 -0
  29. package/dist/public/assets/DocumentContext-DyBKMWUQ.js +38 -0
  30. package/dist/public/assets/{EditorModeToggle-BuOATFco.js → EditorModeToggle-CTMAAr-X.js} +1 -1
  31. package/dist/public/assets/{EnableSyncConfirmDialog-DQVZgH-e.js → EnableSyncConfirmDialog-D80Aucr3.js} +1 -1
  32. package/dist/public/assets/{ExcalidrawDocEditor-BiNEXjZO.js → ExcalidrawDocEditor-CMeQn_u0.js} +4 -4
  33. package/dist/public/assets/FeedbackForm-SUXnCd9B.js +1 -0
  34. package/dist/public/assets/{GraphPanel-Brg6YDja.js → GraphPanel-CnxzWV5D.js} +2 -2
  35. package/dist/public/assets/ImportSkillDialog-DUdFUw6e.js +1 -0
  36. package/dist/public/assets/{LintConfigEditor-BWWinty4.js → LintConfigEditor-BC8TYjz-.js} +1 -1
  37. package/dist/public/assets/{ManagedArtifactProperties-Bt9WbztG.js → ManagedArtifactProperties-Cr21JXmD.js} +1 -1
  38. package/dist/public/assets/ManagedArtifactProperties-DVT7r-wR.js +1 -0
  39. package/dist/public/assets/{McpConsentDialogBody-Da_YGlKw.js → McpConsentDialogBody-cAAI8kXS.js} +1 -1
  40. package/dist/public/assets/{Mermaid-BAKMqFxz.js → Mermaid-NYQ6RsUB.js} +2 -2
  41. package/dist/public/assets/{MermaidDocEditor-Dlr5gtqf.js → MermaidDocEditor-CCEt4Opw.js} +1 -1
  42. package/dist/public/assets/PropertyDisplayRow-CTVCclTK.js +2 -0
  43. package/dist/public/assets/RegisteredAgentIcon-Fkz5hv6G.js +1 -0
  44. package/dist/public/assets/ReportBugDialogBody-VIeqRFre.js +3 -0
  45. package/dist/public/assets/{RowDisclosure-BD4HJbRH.js → RowDisclosure-fCAaAHdQ.js} +1 -1
  46. package/dist/public/assets/SchemaConfigEditor-UcCzcUIa.js +1 -0
  47. package/dist/public/assets/SessionsHost-gxeaEpjc.js +2 -0
  48. package/dist/public/assets/SettingsDialogBody-CxoXcrrW.js +12 -0
  49. package/dist/public/assets/ShareBranchSwitchDialog-Cee3pwDa.js +1 -0
  50. package/dist/public/assets/{ShareReceiveDialog-CxRzoJmJ.js → ShareReceiveDialog-blTr_HPx.js} +1 -1
  51. package/dist/public/assets/{ShareReceiveMissDialog-BzMzXr7U.js → ShareReceiveMissDialog-DJ9DvFJq.js} +1 -1
  52. package/dist/public/assets/SkillCostValue-DEly99Yk.js +1 -0
  53. package/dist/public/assets/{SkillEditBanner-BIAkDbBb.js → SkillEditBanner-bd1zvQfx.js} +1 -1
  54. package/dist/public/assets/SkillInstallMenu-sneUc7PA.js +2 -0
  55. package/dist/public/assets/{SkillOriginInline-C35IR2C_.js → SkillOriginInline-BQIo2jSh.js} +1 -1
  56. package/dist/public/assets/{SkillToolbarControls-BIUtpkZb.js → SkillToolbarControls-A3BqTaVC.js} +1 -1
  57. package/dist/public/assets/{SlidesToolbarControls-Bua5dOtR.js → SlidesToolbarControls-DpcrHeKz.js} +1 -1
  58. package/dist/public/assets/SourceEditor-yCp7AOuC.js +1 -0
  59. package/dist/public/assets/{TerminalPanel-EZTkF_Im.js → TerminalPanel-DitPHk-i.js} +3 -3
  60. package/dist/public/assets/{TerminalStartingNotice-5YXAirXU.js → TerminalStartingNotice-7XmsKQfW.js} +1 -1
  61. package/dist/public/assets/TerminalWindowApp-CEMvQfmt.js +1 -0
  62. package/dist/public/assets/TextDocEditor-Ckd918Mb.js +1 -0
  63. package/dist/public/assets/{ThemePicker-BEVvKk5L.js → ThemePicker-BEO3X5aw.js} +1 -1
  64. package/dist/public/assets/ThreadView-DGR1KByM.js +14 -0
  65. package/dist/public/assets/{TimelineDiffPane-ZQbqPdw2.js → TimelineDiffPane-CpgSHJGN.js} +1 -1
  66. package/dist/public/assets/{abnfDiagram-N423BO3Z-DBJ3AZ9J.js → abnfDiagram-N423BO3Z-U4VtqGBo.js} +1 -1
  67. package/dist/public/assets/{agent-diff-store-Dy0fjBEy.js → agent-diff-store-DzZwPUH2.js} +1 -1
  68. package/dist/public/assets/{alert-dialog-BV3f4Vr2.js → alert-dialog-C8E8SkhJ.js} +1 -1
  69. package/dist/public/assets/{architectureDiagram-T3A2C74G-DHhiMV1e.js → architectureDiagram-T3A2C74G-tXECBSP6.js} +1 -1
  70. package/dist/public/assets/arrow-up-right-CXMA4cr5.js +1 -0
  71. package/dist/public/assets/auth-state-cache-CEf8XB-q.js +11 -0
  72. package/dist/public/assets/{badge-52pHek8I.js → badge-DGD9B_-e.js} +1 -1
  73. package/dist/public/assets/{blockDiagram-VBNYF7ZC-B0XVQOlY.js → blockDiagram-VBNYF7ZC-Lzh-maol.js} +1 -1
  74. package/dist/public/assets/{braces-Bzye844v.js → braces-okUwnkYm.js} +1 -1
  75. package/dist/public/assets/bug-report-send-manager-D19JO93p.js +1 -0
  76. package/dist/public/assets/{button-Cym3gapE.js → button-CA0dewJJ.js} +1 -1
  77. package/dist/public/assets/{c4Diagram-5PPSVZJV-C0fXVzxK.js → c4Diagram-5PPSVZJV-Dv2DA9Ff.js} +1 -1
  78. package/dist/public/assets/{calendar-P1YHNDVH.js → calendar-C9Zcn0Ol.js} +1 -1
  79. package/dist/public/assets/{case-sensitive-BwklrMJw.js → case-sensitive-B9mhUnHr.js} +1 -1
  80. package/dist/public/assets/channel-DkPHFN0f.js +1 -0
  81. package/dist/public/assets/check-Bzwwm-o4.js +1 -0
  82. package/dist/public/assets/{checkbox-UfDS9TpS.js → checkbox-Bi7zk4c5.js} +1 -1
  83. package/dist/public/assets/{chevron-down-DNO3PgI_.js → chevron-down-xENV92Te.js} +1 -1
  84. package/dist/public/assets/chevron-left-B1wYSm9K.js +1 -0
  85. package/dist/public/assets/chevron-right-BVvjaUfh.js +1 -0
  86. package/dist/public/assets/{chunk-2GRJ4B5K-I9g7v43C.js → chunk-2GRJ4B5K-C9V9XFHZ.js} +1 -1
  87. package/dist/public/assets/{chunk-3NCLNEKW-CIPZUTs2.js → chunk-3NCLNEKW-BYKJOcB6.js} +1 -1
  88. package/dist/public/assets/{chunk-4I5QYGJK-CJSo7JWo.js → chunk-4I5QYGJK-DRvkWpJa.js} +1 -1
  89. package/dist/public/assets/{chunk-5RXB4S5H-CV_VIHj4.js → chunk-5RXB4S5H-Bepujvi7.js} +1 -1
  90. package/dist/public/assets/{chunk-6Q2QTUOP-HonjM1WC.js → chunk-6Q2QTUOP-uZ1QaaTd.js} +1 -1
  91. package/dist/public/assets/{chunk-7Z6QIM7H-C7MoQiZ1.js → chunk-7Z6QIM7H-BaiL4HQb.js} +1 -1
  92. package/dist/public/assets/{chunk-BO2N2NFS-D2iiEks4.js → chunk-BO2N2NFS-aa_rQr8f.js} +4 -4
  93. package/dist/public/assets/{chunk-GF5L2VYU-DMKobWUK.js → chunk-GF5L2VYU-bkTHrje2.js} +1 -1
  94. package/dist/public/assets/{chunk-I66GZJ75-BUquu3u4.js → chunk-I66GZJ75-DdvvFHYK.js} +1 -1
  95. package/dist/public/assets/{chunk-J7OUQ5F2-D_xZJOyH.js → chunk-J7OUQ5F2-Dkai_3ry.js} +2 -2
  96. package/dist/public/assets/{chunk-JQJVKLGR-DEq8-3eQ.js → chunk-JQJVKLGR-BVFBBTqn.js} +1 -1
  97. package/dist/public/assets/{chunk-KBJHAD2P-D4Yduc8o.js → chunk-KBJHAD2P-Cu02YobZ.js} +1 -1
  98. package/dist/public/assets/{chunk-NSK5VX7P-BW0NvKtJ.js → chunk-NSK5VX7P-Cm6rtpZw.js} +1 -1
  99. package/dist/public/assets/{chunk-QR6OTTB3-BAd_wKMz.js → chunk-QR6OTTB3-CdcXCJoC.js} +1 -1
  100. package/dist/public/assets/{chunk-UBXNYLIW-xJmEmvG8.js → chunk-UBXNYLIW-tLiyG5ZI.js} +1 -1
  101. package/dist/public/assets/{chunk-W5SLKNZC-9q5ZT0Or.js → chunk-W5SLKNZC-DuVZK-DG.js} +1 -1
  102. package/dist/public/assets/{chunk-WRU74C26-DEuLBlab.js → chunk-WRU74C26-1154g7A6.js} +1 -1
  103. package/dist/public/assets/{circle-alert-b-E0_BIP.js → circle-alert-CKGYtHdt.js} +1 -1
  104. package/dist/public/assets/classDiagram-JCYQIIEL-ZJNQWqPL.js +1 -0
  105. package/dist/public/assets/classDiagram-v2-OCEON4UE-BVcoIlfv.js +1 -0
  106. package/dist/public/assets/client-version-ow2B_U-6.js +1 -0
  107. package/dist/public/assets/{cm-theme-CvD6eMwN.js → cm-theme-CqnwWjn0.js} +1 -1
  108. package/dist/public/assets/{code-highlighter-impl-CGDVGaGi.js → code-highlighter-impl-Cd7bLu8y.js} +1 -1
  109. package/dist/public/assets/{collapsible-DYySK8La.js → collapsible-COrqeoHr.js} +1 -1
  110. package/dist/public/assets/comment-chips-C076-HNt.js +5 -0
  111. package/dist/public/assets/{config-provider-CH5GabLO.js → config-provider-JYp7fF6x.js} +3 -3
  112. package/dist/public/assets/context-api-CW3A_QP4.js +1 -0
  113. package/dist/public/assets/{cynefinDiagram-MW4NZA55-Vp3Z3EOq.js → cynefinDiagram-MW4NZA55-CE9Z5Vl5.js} +1 -1
  114. package/dist/public/assets/{dagre-VZM6K2ZE-BsNhh3lr.js → dagre-VZM6K2ZE-l6JbWhTm.js} +1 -1
  115. package/dist/public/assets/{diagram-7IWD3JNH-CntjEuMQ.js → diagram-7IWD3JNH-R_54Evc_.js} +1 -1
  116. package/dist/public/assets/{diagram-B4RE2ZJO-CxKY34wz.js → diagram-B4RE2ZJO-jRIES5QB.js} +1 -1
  117. package/dist/public/assets/{diagram-LBJQPF4R-CAoRKtuu.js → diagram-LBJQPF4R-BcO2HjWp.js} +1 -1
  118. package/dist/public/assets/{diagram-Q27KOJAE-Bexqwg9W.js → diagram-Q27KOJAE-Cx6r8Ane.js} +1 -1
  119. package/dist/public/assets/{diagram-UB23O5K3-BO3f0yq6.js → diagram-UB23O5K3-DqfBod7o.js} +1 -1
  120. package/dist/public/assets/{dialog-Ba9N5nEw.js → dialog-BH80AfFt.js} +1 -1
  121. package/dist/public/assets/{dist-MhaicsMV.js → dist--D6RzOfD.js} +1 -1
  122. package/dist/public/assets/{dist-B6U1sHwQ2.js → dist-BFkXO51e2.js} +1 -1
  123. package/dist/public/assets/{dist-Dhtu02232.js → dist-BcWdMddd.js} +1 -1
  124. package/dist/public/assets/dist-Be8lWZxP2.js +1 -0
  125. package/dist/public/assets/{dist-DRO03ovd.js → dist-BvwnbioL.js} +1 -1
  126. package/dist/public/assets/{dist-Bd3O90Cl.js → dist-CFs5UHD5.js} +1 -1
  127. package/dist/public/assets/{dist-CZYk4Gmy.js → dist-CLS9aKf7.js} +1 -1
  128. package/dist/public/assets/{dist-xXHzlM2r.js → dist-CPvLRdmt.js} +1 -1
  129. package/dist/public/assets/{dist-CMrReMig.js → dist-CSCWMTfQ.js} +1 -1
  130. package/dist/public/assets/{dist-C_QZEaeX.js → dist-CWxNQtC52.js} +87 -87
  131. package/dist/public/assets/{dist-GoOli512.js → dist-Cu8jzM5J.js} +1 -1
  132. package/dist/public/assets/{dist-BDna-dOq.js → dist-DJUH3LhV.js} +1 -1
  133. package/dist/public/assets/{dist-CfolydxL.js → dist-DoGQZx5L.js} +1 -1
  134. package/dist/public/assets/{dist-BcvirUWL.js → dist-DsLZcVyZ.js} +1 -1
  135. package/dist/public/assets/{dist-Ds0ot8zG.js → dist-DxgTfwGf.js} +1 -1
  136. package/dist/public/assets/{dist-BXlOzfrR.js → dist-EbTHn-HD.js} +1 -1
  137. package/dist/public/assets/{dist-DnnH0RLX2.js → dist-O5qpSCnc2.js} +1 -1
  138. package/dist/public/assets/{dist-DatS2_-H.js → dist-awmOdYf0.js} +1 -1
  139. package/dist/public/assets/{dist-CWL3ooGG.js → dist-cQHiWmQq.js} +1 -1
  140. package/dist/public/assets/{dist-DXjgrsHI.js → dist-ezYezphN.js} +1 -1
  141. package/dist/public/assets/{dist-Bn0BEeMP.js → dist-gTGB_-tT.js} +1 -1
  142. package/dist/public/assets/dist-pKYOq3XC2.js +1 -0
  143. package/dist/public/assets/{dist-CkzVKD46.js → dist-tUuSMxU2.js} +1 -1
  144. package/dist/public/assets/{dist-4YFTUwt_.js → dist-yHiImJTb.js} +1 -1
  145. package/dist/public/assets/doc-paths-DgbGdxZ1.js +1 -0
  146. package/dist/public/assets/documents-events-DViu97ho.js +1 -0
  147. package/dist/public/assets/dropdown-menu-BpLbh79a.js +1 -0
  148. package/dist/public/assets/{ebnfDiagram-BXEA7PRR-DC58rQAn.js → ebnfDiagram-BXEA7PRR-Bwwa1Mdz.js} +1 -1
  149. package/dist/public/assets/{erDiagram-JOGREHBK-CUz9pdjc.js → erDiagram-JOGREHBK-BXsgvN7L.js} +1 -1
  150. package/dist/public/assets/{es2015-B9_uRFGw.js → es2015-wpLRKwCl.js} +1 -1
  151. package/dist/public/assets/{eye-7pio2q9G.js → eye-DIJifYDY.js} +1 -1
  152. package/dist/public/assets/field-5c9smYxo.js +1 -0
  153. package/dist/public/assets/file-tree-adapter-B2J82X4l.js +1 -0
  154. package/dist/public/assets/file-tree-utils-MiagXf7l.js +1 -0
  155. package/dist/public/assets/flowDiagram-UKHOOZJN-C7BD5YvS.js +1 -0
  156. package/dist/public/assets/{folder-config-api-Dxuhqlqr.js → folder-config-api-CNXuE5zD.js} +1 -1
  157. package/dist/public/assets/{folder-open-BWpLO6wT.js → folder-open-5aQb9yif.js} +1 -1
  158. package/dist/public/assets/{form-BntZOc7C.js → form-DWhbcQ6z.js} +1 -1
  159. package/dist/public/assets/{ganttDiagram-PKOTCBZU-C2NMWsS0.js → ganttDiagram-PKOTCBZU-DDPJ5Vmz.js} +1 -1
  160. package/dist/public/assets/{git-branch-3CSRgL0o.js → git-branch-BEl3Boky.js} +1 -1
  161. package/dist/public/assets/{gitGraphDiagram-DS77QQ5N-CVdMqGMX.js → gitGraphDiagram-DS77QQ5N-DV8nqTks.js} +1 -1
  162. package/dist/public/assets/globals-DMaCiviB.css +1 -0
  163. package/dist/public/assets/{hash-3VQG5UJ7.js → hash-26j3E552.js} +1 -1
  164. package/dist/public/assets/{highlighted-body-OFNGDK62-UCUIw0Lt.js → highlighted-body-OFNGDK62-eLakIx_-.js} +1 -1
  165. package/dist/public/assets/history-BteF85_l.js +1 -0
  166. package/dist/public/assets/i18n-CqDKlhNm.js +1 -0
  167. package/dist/public/assets/index-CVIfHBfN.js +2204 -0
  168. package/dist/public/assets/{info-SlzbpjOb.js → info-CqQMSCez.js} +1 -1
  169. package/dist/public/assets/{infoDiagram-6WML65LV-D2JV8LcI.js → infoDiagram-6WML65LV-DPWJulz5.js} +1 -1
  170. package/dist/public/assets/{input-group-DpVg5lNG.js → input-group-BScOj_fR.js} +1 -1
  171. package/dist/public/assets/{ishikawaDiagram-WSZJBQD7-YJJMNAlB.js → ishikawaDiagram-WSZJBQD7-DTJJS9BZ.js} +1 -1
  172. package/dist/public/assets/{journeyDiagram-NVQOT4AX-NC-EWDbF.js → journeyDiagram-NVQOT4AX-DSNwyC9g.js} +1 -1
  173. package/dist/public/assets/{kanban-definition-27J2QSJJ-A5wz4I7T.js → kanban-definition-27J2QSJJ-B5B5rQlv.js} +1 -1
  174. package/dist/public/assets/{label-D-K3fWtj.js → label-Bbz2bT-a.js} +1 -1
  175. package/dist/public/assets/{lib-DmueaA5E.js → lib-B3XVxNhx.js} +1 -1
  176. package/dist/public/assets/{lib-vOz_s3tj.js → lib-DH_OjOEF.js} +1 -1
  177. package/dist/public/assets/{line-BURCYBOK.js → line-BX_DXx_6.js} +1 -1
  178. package/dist/public/assets/{lint-config-client-pNtVqn1v.js → lint-config-client-RzlDcfLl.js} +1 -1
  179. package/dist/public/assets/{lint-plugin-meta-LEBWvINg.js → lint-plugin-meta-C15NfeTq.js} +1 -1
  180. package/dist/public/assets/{list-plus-nPRgk4Qi.js → list-plus-1_iMFVqs.js} +1 -1
  181. package/dist/public/assets/{local-menu-action-bus-BLEUyEvu.js → local-menu-action-bus-BuSRFm5g.js} +1 -1
  182. package/dist/public/assets/markdownlint-rule-browser-Bmk3lsoP.js +1 -0
  183. package/dist/public/assets/{clipboard-adapter-815RzzoI.js → mascot-outline-CtS592mc.js} +1 -1
  184. package/dist/public/assets/mermaid-GHXKKRXX-ChsT7WMf.js +1 -0
  185. package/dist/public/assets/mermaid.core-DNpF2SSh.js +1 -0
  186. package/dist/public/assets/{mermaid.core-C0IvVkS9.js → mermaid.core-W68NSbS2.js} +3 -3
  187. package/dist/public/assets/messages-10f1hPWP.js +1 -0
  188. package/dist/public/assets/messages-5TeeUeS0.js +1 -0
  189. package/dist/public/assets/messages-8WTqq3Mp.js +1 -0
  190. package/dist/public/assets/messages-BRgdD2wL.js +1 -0
  191. package/dist/public/assets/messages-Bbr1HKxw.js +1 -0
  192. package/dist/public/assets/messages-Bo2D8MSU.js +1 -0
  193. package/dist/public/assets/messages-BoTpi3Tc.js +1 -0
  194. package/dist/public/assets/messages-CCrzx-Sh.js +1 -0
  195. package/dist/public/assets/messages-CxY3xIzN.js +1 -0
  196. package/dist/public/assets/messages-DpV3A7jU.js +1 -0
  197. package/dist/public/assets/messages-DyWXi2qN.js +1 -0
  198. package/dist/public/assets/messages-ZkMy8GOy.js +1 -0
  199. package/dist/public/assets/{mindmap-definition-FAOFIHXS-CKQxgOGt.js → mindmap-definition-FAOFIHXS-CJdkasm6.js} +1 -1
  200. package/dist/public/assets/minus-HJRULrSt.js +1 -0
  201. package/dist/public/assets/{miss-dialog-store-DVpIaq34.js → miss-dialog-store-CdkrAlK3.js} +1 -1
  202. package/dist/public/assets/ok-XpAzrb6Z.js +1 -0
  203. package/dist/public/assets/{package-B5dxtZEP.js → package-BuoPO9EK.js} +1 -1
  204. package/dist/public/assets/page-list-cache-CEyxAohw.js +1 -0
  205. package/dist/public/assets/{panel-right-open-B0h13QHr.js → panel-right-open-BXE3r3dB.js} +1 -1
  206. package/dist/public/assets/{paperclip-ChAyZqn8.js → paperclip-C-okgtwN.js} +1 -1
  207. package/dist/public/assets/{pegDiagram-VL7TDLO6-BHV9FATd.js → pegDiagram-VL7TDLO6-DmyKkWD-.js} +1 -1
  208. package/dist/public/assets/pending-receive-nav-store-CTqjXsBl.js +1 -0
  209. package/dist/public/assets/{pieDiagram-7S7Q4E2Y-vlst6sEu.js → pieDiagram-7S7Q4E2Y-DbB4HZ75.js} +1 -1
  210. package/dist/public/assets/platform-labels-CwDqSSkR.js +1 -0
  211. package/dist/public/assets/{popover-B7jXm65e.js → popover-CA_JdlWS.js} +1 -1
  212. package/dist/public/assets/progress-OoUVKpXn.js +9 -0
  213. package/dist/public/assets/project-paths-BdGjLtxT.js +1 -0
  214. package/dist/public/assets/prop-types-CU7HQl68.js +1 -0
  215. package/dist/public/assets/{propagation-api-DC5404fy.js → propagation-api-B1_qxPZb.js} +1 -1
  216. package/dist/public/assets/{quadrantDiagram-CIZ2JOQS-aZGa0dqP.js → quadrantDiagram-CIZ2JOQS-BjHQcxZ0.js} +1 -1
  217. package/dist/public/assets/radio-group-BsZGGl8l.js +1 -0
  218. package/dist/public/assets/{railroadDiagram-AXF67PYL-Daf6Zy7e.js → railroadDiagram-AXF67PYL-CWE-Lz8D.js} +1 -1
  219. package/dist/public/assets/{receive-store-Rla0xjPc.js → receive-store-CJtiTNp3.js} +1 -1
  220. package/dist/public/assets/{refresh-cw-DwRz6AkS.js → refresh-cw-D41gUk_B.js} +1 -1
  221. package/dist/public/assets/{requirementDiagram-LRYGKXZP-C8dZAU1p.js → requirementDiagram-LRYGKXZP-DVzRPfG6.js} +1 -1
  222. package/dist/public/assets/rotate-ccw-Dh7y6tzD.js +1 -0
  223. package/dist/public/assets/{sankeyDiagram-W5VNT64P-DSVSXy_1.js → sankeyDiagram-W5VNT64P-BvGHv_UD.js} +1 -1
  224. package/dist/public/assets/{select-XEGYznMI.js → select-fWSYgcDA.js} +1 -1
  225. package/dist/public/assets/{selection-context-D9UxW_oI.js → selection-context-DR7ab7yE.js} +1 -1
  226. package/dist/public/assets/{sequenceDiagram-SI44F4Z6-Bnbh_rO1.js → sequenceDiagram-SI44F4Z6-Ckszb4Mj.js} +1 -1
  227. package/dist/public/assets/skill-scope-BAozv3yS.js +1 -0
  228. package/dist/public/assets/skills-api-DY2ILAVx.js +1 -0
  229. package/dist/public/assets/{spinner-t7GahFcQ.js → spinner-DmibE6UV.js} +1 -1
  230. package/dist/public/assets/{square-pen-K4JT0cp9.js → square-pen-Blyr7NAu.js} +1 -1
  231. package/dist/public/assets/{src-CMLgwlib.js → src-CGTpf8aj.js} +1 -1
  232. package/dist/public/assets/startup-marks-BYurBbnW.js +1 -0
  233. package/dist/public/assets/{stateDiagram-OKZ733FA-DS5XYAjU.js → stateDiagram-OKZ733FA-Bm4P0e_g.js} +1 -1
  234. package/dist/public/assets/stateDiagram-v2-UEYNNEHI-D9_hTyIp.js +1 -0
  235. package/dist/public/assets/{swimlanes-SLNWSIFB-BGX6QMGe.js → swimlanes-SLNWSIFB-iiVbZ3fC.js} +1 -1
  236. package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-Hd_RccsN.js +8 -0
  237. package/dist/public/assets/{switch-iwBsEWej.js → switch-BeP1gMN6.js} +1 -1
  238. package/dist/public/assets/{tabs-BNfoCymd.js → tabs-r9BJxNSQ.js} +1 -1
  239. package/dist/public/assets/tag-pill-input-llQtM5Z_.js +1 -0
  240. package/dist/public/assets/{target-navigation-intent-C_Ucfr51.js → target-navigation-intent-HQou_X-w.js} +1 -1
  241. package/dist/public/assets/{telemetry-impl-DLl1oxED.js → telemetry-impl-BIepj08G.js} +1 -1
  242. package/dist/public/assets/{telemetry-startup-k7vK2L8Z.js → telemetry-startup-B7OSl-z5.js} +1 -1
  243. package/dist/public/assets/{terminal-D4HSnHXf.js → terminal-CFd7qrv_.js} +1 -1
  244. package/dist/public/assets/terminal-cli-display-DTFiZBBc.js +1 -0
  245. package/dist/public/assets/terminal-launch-events-Bfi4m2vK.js +1 -0
  246. package/dist/public/assets/terminal-telemetry-CboX_HNN.js +1 -0
  247. package/dist/public/assets/{text-viewer-languages-DRp_Y82n.js → text-viewer-languages-BtwF8E4F.js} +2 -2
  248. package/dist/public/assets/thread-client-o-xHAmeK.js +1 -0
  249. package/dist/public/assets/thread-draft-staging-D-3dp2ov.js +1 -0
  250. package/dist/public/assets/{timeline-definition-Z64GVDOM-BKNoWHPk.js → timeline-definition-Z64GVDOM-CrQPhNwW.js} +1 -1
  251. package/dist/public/assets/toggle-group-BlEg4yJE.js +1 -0
  252. package/dist/public/assets/{tooltip-DttaCTqz.js → tooltip-DPvMEqsq.js} +1 -1
  253. package/dist/public/assets/{trash-2-CePzTX_C.js → trash-2-BVoWHmfV.js} +1 -1
  254. package/dist/public/assets/{triangle-alert-D0n54WVY.js → triangle-alert-CJVfCxE0.js} +1 -1
  255. package/dist/public/assets/typing-burst-detector-C4y2fKpb.js +8 -0
  256. package/dist/public/assets/{undo-2-BOBiJGd5.js → undo-2-CXHp9Ngg.js} +1 -1
  257. package/dist/public/assets/uninstall-Bf9OgFpb.js +1 -0
  258. package/dist/public/assets/use-activity-panel-D_OG3gXD.js +1 -0
  259. package/dist/public/assets/use-apply-config-color-theme-H1zX9cBU.js +1 -0
  260. package/dist/public/assets/use-collab-url-Dk-3M_go.js +1 -0
  261. package/dist/public/assets/use-installed-clis-vg6izNL9.js +1 -0
  262. package/dist/public/assets/{use-live-xterm-theme-BjybDd5E.js → use-live-xterm-theme-ChdQbgac.js} +1 -1
  263. package/dist/public/assets/use-open-skill-BeZcrVWu.js +1 -0
  264. package/dist/public/assets/use-settings-route-CHUO6Vb3.js +1 -0
  265. package/dist/public/assets/{use-skill-origin-C0RzVLGk.js → use-skill-origin-CLzO6XeG.js} +1 -1
  266. package/dist/public/assets/use-skills-B1r84pEp.js +1 -0
  267. package/dist/public/assets/use-terminal-enabled-BCESHfrF.js +1 -0
  268. package/dist/public/assets/use-timeline-entry-diff-Bs-prtib.js +6 -0
  269. package/dist/public/assets/use-workspace-DigIBtSV.js +1 -0
  270. package/dist/public/assets/{vennDiagram-T6HMQDX7-CRzUxobP.js → vennDiagram-T6HMQDX7-DUxH4wy8.js} +1 -1
  271. package/dist/public/assets/{wardleyDiagram-T6FBY63Y-CoEGckrX.js → wardleyDiagram-T6FBY63Y-CRduVCHa.js} +1 -1
  272. package/dist/public/assets/{wrench-ZOpNzIoC.js → wrench-JX3g_hHJ.js} +1 -1
  273. package/dist/public/assets/x-wQUDJS55.js +1 -0
  274. package/dist/public/assets/{xychartDiagram-ELKLHX3M-BlVTFSNG.js → xychartDiagram-ELKLHX3M-ayUwPHsi.js} +1 -1
  275. package/dist/public/index.html +149 -149
  276. package/dist/public/uninstall.html +28 -28
  277. package/dist/{repair-launch-json-BWwjyrdu.mjs → repair-launch-json-DGu77VVa.mjs} +2 -2
  278. package/dist/{repair-mcp-configs-D6VBK-GI.mjs → repair-mcp-configs-BKUZ3NzW.mjs} +2 -2
  279. package/dist/repair-skills-BABpOhB_.mjs +1 -0
  280. package/dist/{repair-skills-Dbdo1dep.mjs → repair-skills-CRG-r1Xh.mjs} +2 -2
  281. package/dist/{resolve-project-root-BgZ293gs.mjs → resolve-project-root-urAKqvDX.mjs} +2 -2
  282. package/dist/server-lock-C_5VGPQF.mjs +1 -0
  283. package/dist/{server-lock-CcnGITIh.mjs → server-lock-_JWkU2Mh.mjs} +2 -2
  284. package/dist/{skill-teardown-BQcurw-H.mjs → skill-teardown-CVMrfSeZ.mjs} +2 -2
  285. package/dist/{src-DB7C0CZe.mjs → src-BRlSw7bk.mjs} +1 -1
  286. package/dist/{src-DGS-lA-C.mjs → src-CjFV1e1Z.mjs} +328 -330
  287. package/dist/src-D6Ou79Ng.mjs +1 -0
  288. package/dist/src-DBh4BCS2.mjs +20 -0
  289. package/dist/{src-CaLoSvK5.mjs → src-DhKkOAcb.mjs} +2 -2
  290. package/dist/start-CGzXGtnH.mjs +1 -0
  291. package/dist/{start-Ce9Y7lY6.mjs → start-DaYtIHPj.mjs} +3 -3
  292. package/package.json +4 -4
  293. package/dist/constants-sxUfcj6G.mjs +0 -2
  294. package/dist/git-handle-Bh1alj7a.mjs +0 -1
  295. package/dist/init-DgJM6DnS.mjs +0 -1
  296. package/dist/loader-DK5Ie7sZ.mjs +0 -1
  297. package/dist/md-manager-BJ88tow5.mjs +0 -2
  298. package/dist/preview-Z_AS1JW8.mjs +0 -1
  299. package/dist/public/assets/AddPropertiesButton-Dhb2CS28.js +0 -1
  300. package/dist/public/assets/AgentThreadClientBinder-BeLgy3iy.js +0 -1
  301. package/dist/public/assets/CodeMirrorPropInput-BtM8bLgN.js +0 -3
  302. package/dist/public/assets/DiffView-BgxYEqNK.js +0 -3
  303. package/dist/public/assets/DocumentContext-BLYhIJKb.js +0 -38
  304. package/dist/public/assets/FeedbackForm-Bjktf7Jt.js +0 -1
  305. package/dist/public/assets/ImportSkillDialog-BDHGW3fP.js +0 -1
  306. package/dist/public/assets/ManagedArtifactProperties-BqpLg9rc.js +0 -1
  307. package/dist/public/assets/PropertyDisplayRow-CjaFUnLr.js +0 -2
  308. package/dist/public/assets/RegisteredAgentIcon-C5l0ngck.js +0 -1
  309. package/dist/public/assets/ReportBugDialogBody-YQEEGPWa.js +0 -3
  310. package/dist/public/assets/ReportBugMenuTrigger-BYHhqbyX.js +0 -2
  311. package/dist/public/assets/SchemaConfigEditor-CucEIur2.js +0 -1
  312. package/dist/public/assets/SessionsHost-LdAlgsGb.js +0 -2
  313. package/dist/public/assets/SettingsDialogBody-BaOeNsR9.js +0 -12
  314. package/dist/public/assets/ShareBranchSwitchDialog-DNMbGcR3.js +0 -1
  315. package/dist/public/assets/SkillCostValue-0sdQK-kg.js +0 -1
  316. package/dist/public/assets/SkillInstallMenu-CglzHAk9.js +0 -2
  317. package/dist/public/assets/SourceEditor-2ULgPpJa.js +0 -1
  318. package/dist/public/assets/TerminalWindowApp-CsYceTtM.js +0 -1
  319. package/dist/public/assets/TextDocEditor-BG0744jP.js +0 -1
  320. package/dist/public/assets/ThreadView-CmaAxNLC.js +0 -15
  321. package/dist/public/assets/arrow-up-right-BTi7mHwL.js +0 -1
  322. package/dist/public/assets/auth-state-cache-Cl-oEkV3.js +0 -11
  323. package/dist/public/assets/bug-report-send-manager-idwD-g0s.js +0 -1
  324. package/dist/public/assets/channel-Bw1oZ3oX.js +0 -1
  325. package/dist/public/assets/check-Dut4Aov8.js +0 -1
  326. package/dist/public/assets/chevron-left-Dhf0Sw0W.js +0 -1
  327. package/dist/public/assets/chevron-right-4mYNnAZZ.js +0 -1
  328. package/dist/public/assets/classDiagram-JCYQIIEL-CrlbOdYD.js +0 -1
  329. package/dist/public/assets/classDiagram-v2-OCEON4UE-CrkjdB4S.js +0 -1
  330. package/dist/public/assets/client-version-BBQwLhqb.js +0 -1
  331. package/dist/public/assets/comment-chips-BXljbVyj.js +0 -5
  332. package/dist/public/assets/context-api-dUnlgSJr.js +0 -1
  333. package/dist/public/assets/dist-BY_vnlVW2.js +0 -1
  334. package/dist/public/assets/dist-wcXwpuqG.js +0 -1
  335. package/dist/public/assets/doc-paths-DMctW8qz.js +0 -1
  336. package/dist/public/assets/documents-events-CwqQxQT5.js +0 -1
  337. package/dist/public/assets/dropdown-menu-CRvS0_4-.js +0 -1
  338. package/dist/public/assets/field-XqXEu64v.js +0 -1
  339. package/dist/public/assets/file-tree-adapter-CpTo1U5h.js +0 -1
  340. package/dist/public/assets/file-tree-utils-DrK6l51M.js +0 -1
  341. package/dist/public/assets/flowDiagram-UKHOOZJN-DHMrplYi.js +0 -1
  342. package/dist/public/assets/globals-20k8qIHJ.css +0 -1
  343. package/dist/public/assets/i18n-fff2WirB.js +0 -1
  344. package/dist/public/assets/index-DETxM0cG.js +0 -2204
  345. package/dist/public/assets/launch-agent-thread-CiJKMl7i.js +0 -1
  346. package/dist/public/assets/launcher-selection-Btzbq8G9.js +0 -1
  347. package/dist/public/assets/markdownlint-rule-browser-IpH2V17S.js +0 -1
  348. package/dist/public/assets/mermaid-GHXKKRXX-BmYrNHJr.js +0 -1
  349. package/dist/public/assets/mermaid.core-DhUKqb7Q.js +0 -1
  350. package/dist/public/assets/messages-BA7DohGj.js +0 -1
  351. package/dist/public/assets/messages-BdGgYrkw.js +0 -1
  352. package/dist/public/assets/messages-BmJwFFk2.js +0 -1
  353. package/dist/public/assets/messages-CAE2zUYV.js +0 -1
  354. package/dist/public/assets/messages-CrVPM5E4.js +0 -1
  355. package/dist/public/assets/messages-D-zK8yr7.js +0 -1
  356. package/dist/public/assets/messages-DUPvSdtJ.js +0 -1
  357. package/dist/public/assets/messages-DopL6n4F.js +0 -1
  358. package/dist/public/assets/messages-Dqi8grxj.js +0 -1
  359. package/dist/public/assets/messages-MMPlXGaP.js +0 -1
  360. package/dist/public/assets/messages-Onfj9qmo.js +0 -1
  361. package/dist/public/assets/messages-tKMCe9_5.js +0 -1
  362. package/dist/public/assets/minus-VHw16jS_.js +0 -1
  363. package/dist/public/assets/ok-Z-u-nHAF.js +0 -1
  364. package/dist/public/assets/page-list-cache-DambRQ7B.js +0 -1
  365. package/dist/public/assets/pending-receive-nav-store-TC2l6M7Y.js +0 -1
  366. package/dist/public/assets/platform-labels-DdSSzvdg.js +0 -1
  367. package/dist/public/assets/progress-i5ULe7SF.js +0 -9
  368. package/dist/public/assets/project-paths-VEOKTjqe.js +0 -1
  369. package/dist/public/assets/prop-types-Boc_oFTG.js +0 -1
  370. package/dist/public/assets/radio-group-npdxiS6E.js +0 -1
  371. package/dist/public/assets/separator-C6x7j8mC.js +0 -1
  372. package/dist/public/assets/skill-scope-C2Q18Fyo.js +0 -1
  373. package/dist/public/assets/skills-api-Du0yE_Ea.js +0 -1
  374. package/dist/public/assets/startup-marks-Cw2UqI10.js +0 -1
  375. package/dist/public/assets/stateDiagram-v2-UEYNNEHI-BWm5URXG.js +0 -1
  376. package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-CQ5DIVBE.js +0 -8
  377. package/dist/public/assets/tag-pill-input-BWs4IhME.js +0 -1
  378. package/dist/public/assets/terminal-cli-display-CrkxgiPR.js +0 -1
  379. package/dist/public/assets/terminal-launch-events-BgzVfom1.js +0 -1
  380. package/dist/public/assets/terminal-telemetry-CWD0Kbui.js +0 -1
  381. package/dist/public/assets/thread-client-BpV1TUph.js +0 -3
  382. package/dist/public/assets/toggle-group-C2_37kV5.js +0 -1
  383. package/dist/public/assets/typing-burst-detector-D_M-RPSc.js +0 -8
  384. package/dist/public/assets/uninstall-B-oOJpa1.js +0 -1
  385. package/dist/public/assets/use-activity-panel-bh4GxchM.js +0 -1
  386. package/dist/public/assets/use-apply-config-color-theme-3_75T4Q8.js +0 -1
  387. package/dist/public/assets/use-collab-url-9MxkxDjK.js +0 -1
  388. package/dist/public/assets/use-open-skill-CoAITmJi.js +0 -1
  389. package/dist/public/assets/use-settings-route-6Aa41RPQ.js +0 -1
  390. package/dist/public/assets/use-skills-BkWQHhha.js +0 -1
  391. package/dist/public/assets/use-terminal-enabled-qkqdcBcO.js +0 -1
  392. package/dist/public/assets/use-timeline-entry-diff-BPHrBftQ.js +0 -6
  393. package/dist/public/assets/use-workspace-7B06onC_.js +0 -1
  394. package/dist/public/assets/x-C0WDbk6g.js +0 -1
  395. package/dist/repair-skills-CBdnIHQ1.mjs +0 -1
  396. package/dist/server-lock-D8d0WVYU.mjs +0 -1
  397. package/dist/src-CkaS3ZCg.mjs +0 -20
  398. package/dist/src-DwfqRaaM.mjs +0 -1
  399. package/dist/start-D_L9hslR.mjs +0 -1
  400. /package/dist/public/assets/{auth-prompt-store-vAFATIFt.js → auth-prompt-store-BXeyTyYx.js} +0 -0
  401. /package/dist/public/assets/{createLucideIcon-BulbvLvN.js → createLucideIcon-CAkY8Blx.js} +0 -0
  402. /package/dist/public/assets/{desktop-bridge-types-oYPdTDmz.js → desktop-bridge-types-msKbUsnF.js} +0 -0
  403. /package/dist/public/assets/{dist-Cr4-nBVI.js → dist-BIGNzOeF2.js} +0 -0
  404. /package/dist/public/assets/{dist-Bd_yyADX.js → dist-Cm417ZCm.js} +0 -0
  405. /package/dist/public/assets/{dist-CJhtNlOm2.js → dist-CuH7ikCn.js} +0 -0
  406. /package/dist/public/assets/{dist-BHv-mziD.js → dist-mv8e6dBX.js} +0 -0
  407. /package/dist/public/assets/{floating-ui.dom-BcZPrP06.js → floating-ui.dom-Dk5WJYh0.js} +0 -0
  408. /package/dist/public/assets/{globals-CTSydwqe.js → globals-BFYzJ2RB.js} +0 -0
  409. /package/dist/public/assets/{html-void-elements-zEl0KGqf.js → html-void-elements-XfxYgU9i.js} +0 -0
  410. /package/dist/public/assets/{katex-CcPk1vJT.js → katex-BRGj_jwq.js} +0 -0
  411. /package/dist/public/assets/{markdownit-CugClK-K.js → markdownit-Du2gL9_G.js} +0 -0
  412. /package/dist/public/assets/{note-window-mode-CsmLTxU_.js → note-window-mode-J_lykVfh.js} +0 -0
  413. /package/dist/public/assets/{parse-api-error-Dd8VI2eu.js → parse-api-error-DcnXKbfT.js} +0 -0
  414. /package/dist/public/assets/{trace-api-BP9dN1Hz.js → trace-api-BslS_6CM.js} +0 -0
  415. /package/dist/public/assets/{use-apply-config-theme-CBmHKD_B.js → use-apply-config-theme-B1eLRQeV.js} +0 -0
  416. /package/dist/public/assets/{w3c-keyname-C7Rznu6R.js → w3c-keyname-yVu9TQnl.js} +0 -0
  417. /package/dist/public/assets/{workspace-paths-CAsMig07.js → workspace-paths-CD0W1etA.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-aWKxesFC.js";import{t}from"./src-D_jMrcY1.js";import{b as n,et as r,f as i,k as a,rt as o,tt as s,x as c,z as l}from"./chunk-I66GZJ75-BUquu3u4.js";import"./chunk-NSK5VX7P-BW0NvKtJ.js";import"./chunk-W5SLKNZC-9q5ZT0Or.js";import"./chunk-UBXNYLIW-xJmEmvG8.js";import"./chunk-4I5QYGJK-CJSo7JWo.js";import"./chunk-WRU74C26-DEuLBlab.js";import"./chunk-QR6OTTB3-BAd_wKMz.js";import"./chunk-7BUUIJ7U-DEVgK4C5.js";import"./chunk-7Z6QIM7H-C7MoQiZ1.js";import{r as u,t as d}from"./chunk-J7OUQ5F2-D_xZJOyH.js";import{t as f}from"./chunk-XXDRQBXY-Bwmq4E1Q.js";import{t as p}from"./chunk-KBJHAD2P-D4Yduc8o.js";var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function h(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+`-`+m[e[t+4]]+m[e[t+5]]+`-`+m[e[t+6]]+m[e[t+7]]+`-`+m[e[t+8]]+m[e[t+9]]+`-`+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var g=new Uint8Array(16);function _(){return crypto.getRandomValues(g)}function v(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():y(e,t,n)}function y(e,t,n){e||={};let r=e.random??e.rng?.()??_();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return h(r)}var b=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},t(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),t(p,[2,18]),t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),t(p,[2,23]),t(p,[2,24]),t(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(m,[2,14],{7:h,11:g}),t(_,[2,8]),t(_,[2,9]),t(_,[2,10]),t(p,[2,15]),t(p,[2,16]),t(p,[2,17]),{20:[1,35]},{21:[1,36]},t(m,[2,13],{7:h,11:g}),t(_,[2,11]),t(_,[2,12]),{21:[1,37]},t(p,[2,25]),t(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},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-aWKxesFC.js";import{t}from"./src-D_jMrcY1.js";import{b as n,et as r,f as i,k as a,rt as o,tt as s,x as c,z as l}from"./chunk-I66GZJ75-DdvvFHYK.js";import"./chunk-NSK5VX7P-Cm6rtpZw.js";import"./chunk-W5SLKNZC-DuVZK-DG.js";import"./chunk-UBXNYLIW-tLiyG5ZI.js";import"./chunk-4I5QYGJK-DRvkWpJa.js";import"./chunk-WRU74C26-1154g7A6.js";import"./chunk-QR6OTTB3-CdcXCJoC.js";import"./chunk-7BUUIJ7U-DEVgK4C5.js";import"./chunk-7Z6QIM7H-BaiL4HQb.js";import{r as u,t as d}from"./chunk-J7OUQ5F2-Dkai_3ry.js";import{t as f}from"./chunk-XXDRQBXY-Bwmq4E1Q.js";import{t as p}from"./chunk-KBJHAD2P-Cu02YobZ.js";var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function h(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+`-`+m[e[t+4]]+m[e[t+5]]+`-`+m[e[t+6]]+m[e[t+7]]+`-`+m[e[t+8]]+m[e[t+9]]+`-`+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var g=new Uint8Array(16);function _(){return crypto.getRandomValues(g)}function v(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():y(e,t,n)}function y(e,t,n){e||={};let r=e.random??e.rng?.()??_();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return h(r)}var b=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},t(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),t(p,[2,18]),t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),t(p,[2,23]),t(p,[2,24]),t(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(m,[2,14],{7:h,11:g}),t(_,[2,8]),t(_,[2,9]),t(_,[2,10]),t(p,[2,15]),t(p,[2,16]),t(p,[2,17]),{20:[1,35]},{21:[1,36]},t(m,[2,13],{7:h,11:g}),t(_,[2,11]),t(_,[2,12]),{21:[1,37]},t(p,[2,25]),t(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},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`)};v.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()+`
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-CAkY8Blx.js";var t=e(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]);export{t};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-BulbvLvN.js";var t=e(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]);function n(){let e=null,t=new Set;function n(){for(let e of t)e()}function r(t){e!==t&&(e=t,n())}return{arm(e){r(e)},dismiss(){r(null)},getSnapshot(){return e},subscribe(e){return t.add(e),()=>{t.delete(e)}}}}var r=n();export{t as n,r as t};
1
+ import{t as e}from"./createLucideIcon-CAkY8Blx.js";var t=e(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]);function n(){let e=null,t=new Set;function n(){for(let e of t)e()}function r(t){e!==t&&(e=t,n())}return{arm(e){r(e)},dismiss(){r(null)},getSnapshot(){return e},subscribe(e){return t.add(e),()=>{t.delete(e)}}}}var r=n();export{t as n,r as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./jsx-runtime-BUgB2tll.js";import{t}from"./compiler-runtime-BfE3aGVn.js";import{t as n}from"./dist-BIGNzOeF2.js";function r(){let e=null,t=null,r=new Set,i=!1,a=null;function o(){for(let e of r)e()}function s(){e!==null&&(e=null,o())}return{install({bridge:n}){if(n)return i?a??void 0:(i=!0,t=n,a=n.mcpWiring.onShow(t=>{e=t,o()}),n.mcpWiring.signalReady(),()=>{a?.(),a=null,i=!1,t=null,s()})},getSnapshot(){return e},subscribe(e){return r.add(e),()=>{r.delete(e)}},async confirm(e){let r=t;if(!r)return{ok:!1,error:n._({id:`bEp7UY`})};try{let t=await r.mcpWiring.confirm(e);return t.ok&&s(),t}catch(e){return{ok:!1,error:e instanceof Error?e.message:n._({id:`29VNqC`})}}},async skip(){let e=t;if(!e)return{ok:!1,error:n._({id:`bEp7UY`})};try{let t=await e.mcpWiring.skip();return t.ok&&s(),t}catch(e){return{ok:!1,error:e instanceof Error?e.message:n._({id:`29VNqC`})}}},dismiss(){s()}}}var i=r();function a(e){return i.install(e)}var o=t(),s=e();function c(e){let t=(0,o.c)(5),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,s.jsx)(`title`,{children:`OpenKnowledge icon`}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,s.jsxs)(`g`,{filter:`url(#filter0_d_ok)`,children:[(0,s.jsx)(`path`,{d:`M66.8902 16.1017C58.2694 3.86669 46.1739 -0.690239 29.9182 2.17749C21.3995 3.67813 13.4602 9.555 8.67934 17.9009C3.93974 26.1701 2.98514 35.6533 6.05714 43.9166C9.31574 52.6868 16.7168 58.4752 24.2299 63.4231C25.7973 64.4562 26.1351 65.7172 26.3551 68.9896C26.5221 71.4625 26.799 75.6011 30.6842 77.7204C31.8176 78.3372 33.0648 78.6515 34.3946 78.6515C37.0796 78.6515 39.4033 77.3649 40.5189 76.7482C47.1049 73.1046 68.8878 59.7147 72.6453 40.4027C74.3444 31.6679 70.9797 21.9019 66.8922 16.1017H66.8902Z`,fill:`white`}),(0,s.jsx)(`path`,{d:`M37.4214 71.154C28.7888 75.929 36.787 64.0397 27.7458 58.0843C21.6372 54.0616 14.788 49.0568 12.0499 41.6911C6.74463 27.4192 17.5438 10.8473 31.028 8.47262C45.1977 5.97613 54.6946 9.8947 61.6635 19.7844C65.2089 24.8167 67.6013 32.8365 66.3658 39.1828C63.6906 52.9341 49.073 64.7075 37.4214 71.154Z`,fill:`#69A3FF`}),(0,s.jsx)(`path`,{d:`M52.7244 29.2638C53.4665 28.5217 54.6697 28.5217 55.4119 29.2638V29.2638C56.154 30.0059 56.154 31.2091 55.4119 31.9513L49.2589 38.1042L46.5715 35.4167L52.7244 29.2638Z`,fill:`#D5E5FF`}),(0,s.jsx)(`path`,{d:`M55.4119 38.8821C56.154 39.6242 56.154 40.8274 55.4119 41.5696V41.5696C54.6698 42.3117 53.4665 42.3117 52.7244 41.5696L46.5715 35.4166L49.259 32.7292L55.4119 38.8821Z`,fill:`#D5E5FF`})]}),t[1]=r):r=t[1];let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,s.jsx)(`defs`,{children:(0,s.jsxs)(`filter`,{id:`filter0_d_ok`,x:`-9.53674e-07`,y:`-0.0799994`,width:`77.3817`,height:`85.8743`,filterUnits:`userSpaceOnUse`,colorInterpolationFilters:`sRGB`,children:[(0,s.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,s.jsx)(`feColorMatrix`,{in:`SourceAlpha`,type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`,result:`hardAlpha`}),(0,s.jsx)(`feOffset`,{dy:`2.85714`}),(0,s.jsx)(`feGaussianBlur`,{stdDeviation:`2.14286`}),(0,s.jsx)(`feComposite`,{in2:`hardAlpha`,operator:`out`}),(0,s.jsx)(`feColorMatrix`,{type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0`}),(0,s.jsx)(`feBlend`,{mode:`normal`,in2:`BackgroundImageFix`,result:`effect1_dropShadow_ok`}),(0,s.jsx)(`feBlend`,{mode:`normal`,in:`SourceGraphic`,in2:`effect1_dropShadow_ok`,result:`shape`})]})}),t[2]=i):i=t[2];let a;return t[3]===e?a=t[4]:(a=(0,s.jsxs)(`svg`,{role:`img`,"aria-label":`OpenKnowledge icon`,fill:`none`,height:24,width:24,viewBox:`0 0 78 80`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[n,r,i]}),t[3]=e,t[4]=a),a}export{a as n,i as r,c as t};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-BulbvLvN.js";var t=[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]],n=e(`package`,t);export{t as n,n as t};
1
+ import{t as e}from"./createLucideIcon-CAkY8Blx.js";var t=[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]],n=e(`package`,t);export{t as n,n as t};
@@ -0,0 +1 @@
1
+ import{As as e,Bo as t,D as n,Ds as r,Es as i,Io as a,Jo as o,Lo as s,Mo as c,Ms as l,Ro as u,Uo as d,Ur as f,Vo as p,Wo as m,Zi as h,qo as g}from"./dist-CWxNQtC52.js";import{r as _}from"./doc-paths-DgbGdxZ1.js";import{o as v,r as y}from"./file-tree-utils-MiagXf7l.js";function b(e){return e.scope===`project`?g(x(e)):m(e.scope,e.name,e.hostQualifier)}function x(e){return e.canonicalPath??e.path}function S(e,t){return e.scope===`project`?`${x(e).replace(/\/SKILL\.mdx?$/i,``)}/${g(t)}`:d(e.scope,e.name,t,e.hostQualifier)}function C(e){let t=u(e);return t?.kind===`skill`?t.name:null}function w(e){let t=e.trim();return{normalizedTarget:t.replace(/^\.\/+/,``).replace(/^\/+/,``).replace(/\/+$/g,``),expectsFolder:/\/+$/.test(t)}}function T(e){return _(e).replace(/\/+$/g,``)}var E=/\.(md|mdx)$/i;function D(e){let t=e;for(;E.test(t);){let e=t.replace(E,``);if(!e)return t;t=e}return t}function O(e,t){let{normalizedTarget:n,expectsFolder:r}=w(e);if(r||!E.test(n))return e;let i=D(n);return t.has(n)&&!t.has(i)?e:i}function k(e){let t=new Set;for(let n of e)for(let e of y(n))t.add(e);return t}function A(e,t){if(!t)return;let n=h(e);if(n)return t.get(n)}function j(e,t){if(!t||e.includes(`/`))return;let n=h(e);if(n)return t.get(n)}function M(e,t){return t?`${e}${t}`:(e.split(`/`).pop()??``).lastIndexOf(`.`)>0?e:`${e}.md`}function N(e,n){if(!v(e)||t(e)||n.pages.has(e))return null;let r=M(e,n.docExt);return{kind:`asset`,target:r,assetPath:r,mediaKind:l(r.slice(r.lastIndexOf(`.`)+1))}}function P(n,l){let u=O(n,l.pages);if(c(u)){let e=s(u);if(e?.kind===`skill`&&e.scope===`project`){let t=p(e.name);return{kind:`doc`,target:t,docName:t}}let t=a(u);if(t){let e=o(t.folder,t.name);return{kind:`doc`,target:e,docName:e}}return{kind:`doc`,target:u,docName:u}}if(C(u))return{kind:`doc`,target:u,docName:u};let d=t(u);if(d){let e=o(d.folder,d.name);return{kind:`doc`,target:e,docName:e}}let{normalizedTarget:f,expectsFolder:m}=w(u);if(!f)return{kind:`missing`,target:f};if(!m&&(e(f)||r(f)||i(f)))return{kind:`doc`,target:f,docName:f};let h=T(u);if(!m&&h!==f&&l.pages.has(h))return{kind:`doc`,target:h,docName:h};if(!m&&l.pages.has(f))return{kind:`doc`,target:f,docName:f};if(!m){let e=A(h,l.pagesBySlug);if(e)return{kind:`doc`,target:e,docName:e}}let g=`${h}/index`;if(l.pages.has(g))return{kind:`folder-index`,target:h,folderPath:h,docName:g,noteKind:`canonical-index`};let _=h.split(`/`).pop(),v=_?`${h}/${_}`:null;if(v&&l.pages.has(v))return{kind:`folder-index`,target:h,folderPath:h,docName:v,noteKind:`legacy-folder-note`};if(!m){let e=j(h,l.pagesByBasename);if(e)return{kind:`doc`,target:e,docName:e}}if((l.folderPaths??k(l.pages)).has(h))return{kind:`folder`,target:h,folderPath:h};if(!m){let e=N(f,l);if(e)return e}return{kind:`missing`,target:h||f}}function F(e){return e.kind===`folder-index`?{kind:`folder`,target:e.folderPath,folderPath:e.folderPath}:e}function I(e,t,r=n){return typeof t!=`number`||!f(t,r)?null:{kind:`large-file`,target:e,docName:e,size:t,limit:r}}function L(e,t,r=n){return e.kind!==`doc`&&e.kind!==`folder-index`?e:I(e.docName,t.get(e.docName)?.size,r)??e}function R(e){switch(e.kind){case`doc`:case`folder-index`:case`large-file`:return e.docName;case`missing`:return e.target;case`asset`:case`skill-file`:case`skills`:case`skill-preview`:case`folder`:return null}}var z=null,B=new Set;function V(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function H(e,t){return e===null?!1:e===t?!0:V(e.pages,t.pages)&&V(e.folderPaths,t.folderPaths)&&V(e.assetPaths??new Set,t.assetPaths??new Set)&&V(e.filePaths??new Set,t.filePaths??new Set)&&U(e.pageIcons,t.pageIcons)}function U(e,t){if(e===t)return!0;let n=e?.size??0;if(n!==(t?.size??0))return!1;if(n===0)return!0;for(let[n,r]of e)if(t.get(n)!==r)return!1;return!0}function W(e){let t=new Map;for(let[n,r]of e){let e=r.icon;typeof e==`string`&&e.trim()!==``&&t.set(n,e)}return t}function G(){return z}function K(e){if(!H(z,e)){z=e;for(let t of Array.from(B))try{t(e)}catch(e){console.error(`[page-list-cache] subscriber threw:`,e)}}}function q(e){if(B.add(e),z!==null)try{e(z)}catch(e){console.error(`[page-list-cache] subscriber threw on replay:`,e)}return()=>{B.delete(e)}}export{k as a,I as c,L as d,C as f,q as i,N as l,b as m,G as n,R as o,S as p,K as r,F as s,W as t,P as u};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-BulbvLvN.js";var t=e(`panel-right-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]),n=e(`panel-right-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]);export{t as n,n as t};
1
+ import{t as e}from"./createLucideIcon-CAkY8Blx.js";var t=e(`panel-right-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]),n=e(`panel-right-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]);export{t as n,n as t};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-BulbvLvN.js";var t=e(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-CAkY8Blx.js";var t=e(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]);export{t};
@@ -1 +1 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-aWKxesFC.js";import{t}from"./src-D_jMrcY1.js";import"./chunk-I66GZJ75-BUquu3u4.js";import"./chunk-3NCLNEKW-CIPZUTs2.js";import{n}from"./chunk-JG7HCLWE-DuD1Q6Hl.js";import{n as r,r as i,t as a}from"./chunk-6Q2QTUOP-HonjM1WC.js";import{t as o}from"./chunk-JWPE2WC7-D5w3_tHx.js";import{t as s}from"./mermaid-parser.core-CmtFEtdo.js";var c=n().RailroadPeg.parser.LangiumParser,l=e(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=e(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=e(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=e(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=e(e=>{let t=m(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),m=e(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return l(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),h=e(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=e(e=>{o(e,a),e.title&&a.setTitle(e.title),e.rules.map(e=>a.addRule(h(e)))},`populateDb`),_={parser:{parse:e(e=>{a.clear(),t.debug(`[PEG Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new s(n);let r=n.value;t.debug(`[PEG Parser] Parsed rules:`,r.rules.length),g(r),t.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:a}},db:a,renderer:i,styles:r};export{_ as diagram};
1
+ import{n as e}from"./chunk-Y2CYZVJY-aWKxesFC.js";import{t}from"./src-D_jMrcY1.js";import"./chunk-I66GZJ75-DdvvFHYK.js";import"./chunk-3NCLNEKW-BYKJOcB6.js";import{n}from"./chunk-JG7HCLWE-DuD1Q6Hl.js";import{n as r,r as i,t as a}from"./chunk-6Q2QTUOP-uZ1QaaTd.js";import{t as o}from"./chunk-JWPE2WC7-D5w3_tHx.js";import{t as s}from"./mermaid-parser.core-CmtFEtdo.js";var c=n().RailroadPeg.parser.LangiumParser,l=e(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=e(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=e(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=e(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=e(e=>{let t=m(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),m=e(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return l(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),h=e(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=e(e=>{o(e,a),e.title&&a.setTitle(e.title),e.rules.map(e=>a.addRule(h(e)))},`populateDb`),_={parser:{parse:e(e=>{a.clear(),t.debug(`[PEG Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new s(n);let r=n.value;t.debug(`[PEG Parser] Parsed rules:`,r.rules.length),g(r),t.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:a}},db:a,renderer:i,styles:r};export{_ as diagram};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./button-CA0dewJJ.js";import{n as s}from"./dist-CuH7ikCn.js";import{t as c}from"./createLucideIcon-CAkY8Blx.js";import{_ as l,c as u,i as d,l as f,m as p,n as m,o as h,t as g}from"./EnableSyncConfirmDialog-D80Aucr3.js";import{t as _}from"./arrow-up-right-CXMA4cr5.js";import{t as v}from"./check-Bzwwm-o4.js";import{t as y}from"./folder-open-5aQb9yif.js";import{t as b}from"./info-CqQMSCez.js";import{t as x}from"./spinner-DmibE6UV.js";import{n as S}from"./miss-dialog-store-CdkrAlK3.js";import{t as C}from"./refresh-cw-D41gUk_B.js";import{t as w}from"./triangle-alert-CJVfCxE0.js";import{g as T,r as E,s as D}from"./doc-paths-DgbGdxZ1.js";import{t as O}from"./external-link-DGqXfQJy.js";var k=c(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),A=c(`file-question-mark`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}]]),j=c(`file-x-corner`,[[`path`,{d:`M11 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5`,key:`1jo35a`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m15 17 5 5`,key:`36xl1x`}],[`path`,{d:`m20 17-5 5`,key:`vdz27y`}]]),M=a(),N=e(n(),1),P=t(),F=`https://git-scm.com/docs/git-push`;function I(e,t){return e===`empty`?!0:!(e!==`stale`&&e!==`absent`||e===`stale`&&t?.syncEnabled===!0)}function ee(e){return e?e.state!==`dormant`&&e.state!==`disabled`&&e.state!==`auth-error`&&e.state!==`conflict`:!1}function L(e){let t=(0,M.c)(52),{freshness:n,status:a,kind:s}=e,{_:c}=i(),{confirmOpen:l,setConfirmOpen:u,onToggleRequest:f,onConfirm:p}=d(h()),[y,S]=(0,N.useState)(`idle`),T=(0,N.useRef)(null),E,D;if(t[0]!==a||t[1]!==y?(E=()=>{if(!(y!==`pending`||!a)){if(a.pushError||a.pushErrorCode){S(`idle`);return}(a.lastSyncUtc??null)!==T.current&&S(`synced`)}},D=[y,a],t[0]=a,t[1]=y,t[2]=E,t[3]=D):(E=t[2],D=t[3]),(0,N.useEffect)(E,D),!I(n,a))return null;if(n===`empty`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(w,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),t[4]=e):e=t[4];let n;t[5]===c?n=t[6]:(n=c({id:`eazHgv`}),t[5]=c,t[6]=n);let r;return t[7]===n?r=t[8]:(r=(0,P.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[e,(0,P.jsx)(`span`,{children:n})]}),t[7]=n,t[8]=r),r}if(y===`synced`){let e;return t[9]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[(0,P.jsx)(v,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),(0,P.jsx)(`span`,{children:(0,P.jsx)(r,{id:`fxbCNQ`})})]}),t[9]=e):e=t[9],e}let O=a?.syncEnabled===!0,k=a?.pushPermission?.checkStatus===`denied`,A=!!(a?.pushError||a?.pushErrorCode),j=k||A,L=n===`absent`&&!O,B;if(n===`absent`&&!O){let e;t[10]!==c||t[11]!==s?(e=c(s===`folder`?{id:`PrJYSN`}:{id:`3BnyYc`}),t[10]=c,t[11]=s,t[12]=e):e=t[12],B=e}else if(n===`stale`){let e;t[13]!==c||t[14]!==s?(e=c(s===`folder`?{id:`Gt4gOO`}:{id:`2IYGkU`}),t[13]=c,t[14]=s,t[15]=e):e=t[15],B=e}else{let e;t[16]!==c||t[17]!==s?(e=c(s===`folder`?{id:`nqV0Kk`}:{id:`gwykHF`}),t[16]=c,t[17]=s,t[18]=e):e=t[18],B=e}let V;t[19]!==c||t[20]!==A||t[21]!==k?(V=k?c({id:`9OIqw4`}):A?c({id:`K6MQQk`}):null,t[19]=c,t[20]=A,t[21]=k,t[22]=V):V=t[22];let H=V,U;t[23]===a?.lastSyncUtc?U=t[24]:(U=()=>{T.current=a?.lastSyncUtc??null,S(`pending`),m(`sync`).catch(e=>{console.warn(`[share-freshness] sync trigger failed`,e instanceof Error?e.message:e),S(`idle`)})},t[23]=a?.lastSyncUtc,t[24]=U);let W=U,G=L?w:b,K;t[25]===G?K=t[26]:(K=(0,P.jsx)(G,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),t[25]=G,t[26]=K);let q;t[27]===B?q=t[28]:(q=(0,P.jsx)(`span`,{children:B}),t[27]=B,t[28]=q);let J;t[29]===H?J=t[30]:(J=H?(0,P.jsx)(`span`,{children:H}):null,t[29]=H,t[30]=J);let Y;t[31]!==j||t[32]!==W||t[33]!==f||t[34]!==a||t[35]!==O||t[36]!==y?(Y=j?null:O?ee(a)?(0,P.jsx)(`div`,{children:y===`pending`?(0,P.jsxs)(o,{variant:`outline`,size:`xs`,disabled:!0,children:[(0,P.jsx)(x,{icon:C,className:`size-3 shrink-0`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`EHu0x2`})]}):(0,P.jsx)(o,{variant:`outline`,size:`xs`,onClick:W,children:(0,P.jsx)(r,{id:`lb_UU4`})})}):null:(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1.5`,children:[(0,P.jsx)(o,{variant:`outline`,size:`xs`,onClick:()=>f(!0),children:(0,P.jsx)(r,{id:`pPiV8s`})}),(0,P.jsxs)(`a`,{href:F,target:`_blank`,rel:`noopener noreferrer`,onClick:z,onAuxClick:R,className:`inline-flex items-center gap-1 transition-colors hover:text-primary`,children:[(0,P.jsx)(r,{id:`GLxIKR`}),(0,P.jsx)(_,{className:`size-3 shrink-0`,"aria-hidden":`true`})]})]}),t[31]=j,t[32]=W,t[33]=f,t[34]=a,t[35]=O,t[36]=y,t[37]=Y):Y=t[37];let X;t[38]!==q||t[39]!==J||t[40]!==Y?(X=(0,P.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[q,J,Y]}),t[38]=q,t[39]=J,t[40]=Y,t[41]=X):X=t[41];let Z;t[42]!==K||t[43]!==X?(Z=(0,P.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[K,X]}),t[42]=K,t[43]=X,t[44]=Z):Z=t[44];let Q;t[45]!==l||t[46]!==p||t[47]!==u?(Q=(0,P.jsx)(g,{open:l,onOpenChange:u,onConfirm:p}),t[45]=l,t[46]=p,t[47]=u,t[48]=Q):Q=t[48];let $;return t[49]!==Z||t[50]!==Q?($=(0,P.jsxs)(P.Fragment,{children:[Z,Q]}),t[49]=Z,t[50]=Q,t[51]=$):$=t[51],$}function R(e){return O(e,F)}function z(e){return O(e,F)}function B(e){let t=e.lastIndexOf(`/`);return t===-1?``:e.slice(0,t)}function V(e){let t=(0,M.c)(17),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={phase:`pending`},t[0]=n):n=t[0];let[r,i]=(0,N.useState)(n),[a,o]=(0,N.useState)(0),s=e.branch,c;t[1]!==s||t[2]!==e.contentRootDepth||t[3]!==e.kind||t[4]!==e.path||t[5]!==e.repositoryPath?(c=()=>{let t=window.okDesktop??null;if(!t||s===null){i({phase:`resolved`,resolution:{verdict:`unknown`}});return}let n=!1;return t.project.fetchTargetStatus({projectPath:t.config.projectPath,branch:s,path:e.repositoryPath??e.path,kind:e.kind,...e.contentRootDepth===void 0?{}:{contentRootDepth:e.contentRootDepth}}).then(e=>{n||i({phase:`resolved`,resolution:e??{verdict:`unknown`}})}).catch(e=>{n||(console.warn(`[receive] miss target-status fetch failed`,e instanceof Error?e.message:e),i({phase:`resolved`,resolution:{verdict:`unknown`}}))}),()=>{n=!0}},t[1]=s,t[2]=e.contentRootDepth,t[3]=e.kind,t[4]=e.path,t[5]=e.repositoryPath,t[6]=c):c=t[6];let l;t[7]!==s||t[8]!==a||t[9]!==e.contentRootDepth||t[10]!==e.kind||t[11]!==e.path||t[12]!==e.repositoryPath?(l=[s,e.kind,e.path,e.repositoryPath,e.contentRootDepth,a],t[7]=s,t[8]=a,t[9]=e.contentRootDepth,t[10]=e.kind,t[11]=e.path,t[12]=e.repositoryPath,t[13]=l):l=t[13],(0,N.useEffect)(c,l);let u;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{i({phase:`pending`}),o(H)},t[14]=u):u=t[14];let d;return t[15]===r?d=t[16]:(d={state:r,refetch:u},t[15]=r,t[16]=d),d}function H(e){return e+1}function U(e){let t=(0,M.c)(15),{onEnabled:n}=e,i=h(),a;t[0]===n?a=t[1]:(a={onEnabled:n},t[0]=n,t[1]=a);let{confirmOpen:s,setConfirmOpen:c,onToggleRequest:l,onConfirm:u}=d(i,a),f;t[2]===l?f=t[3]:(f=()=>l(!0),t[2]=l,t[3]=f);let p,m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,P.jsx)(C,{className:`size-4`,"aria-hidden":`true`}),m=(0,P.jsx)(r,{id:`pPiV8s`}),t[4]=p,t[5]=m):(p=t[4],m=t[5]);let _;t[6]===f?_=t[7]:(_=(0,P.jsxs)(o,{onClick:f,"data-testid":`share-receive-miss-enable-sync`,children:[p,m]}),t[6]=f,t[7]=_);let v;t[8]!==s||t[9]!==u||t[10]!==c?(v=(0,P.jsx)(g,{open:s,onOpenChange:c,onConfirm:u}),t[8]=s,t[9]=u,t[10]=c,t[11]=v):v=t[11];let y;return t[12]!==_||t[13]!==v?(y=(0,P.jsxs)(P.Fragment,{children:[_,v]}),t[12]=_,t[13]=v,t[14]=y):y=t[14],y}function W(e){let t=(0,M.c)(23),{status:n,onSyncCompleted:a}=e,{_:c}=i(),[l,u]=(0,N.useState)(!1),d=(0,N.useRef)(null),f;t[0]!==a||t[1]!==l||t[2]!==n.lastSyncUtc||t[3]!==n.pushError||t[4]!==n.pushErrorCode?(f=()=>{if(l){if(n.pushError||n.pushErrorCode){u(!1);return}(n.lastSyncUtc??null)!==d.current&&(u(!1),a?.())}},t[0]=a,t[1]=l,t[2]=n.lastSyncUtc,t[3]=n.pushError,t[4]=n.pushErrorCode,t[5]=f):f=t[5];let p;t[6]!==a||t[7]!==l||t[8]!==n?(p=[l,n,a],t[6]=a,t[7]=l,t[8]=n,t[9]=p):p=t[9],(0,N.useEffect)(f,p);let h;t[10]!==c||t[11]!==n.lastSyncUtc?(h=()=>{d.current=n.lastSyncUtc??null,u(!0),m(`sync`).catch(e=>{console.warn(`[receive] miss sync trigger failed`,e instanceof Error?e.message:e),u(!1),s.error(c({id:`1u-mAI`}))})},t[10]=c,t[11]=n.lastSyncUtc,t[12]=h):h=t[12];let g=h,_;t[13]!==g||t[14]!==l?(_=l?(0,P.jsxs)(o,{disabled:!0,"aria-busy":`true`,"data-testid":`share-receive-miss-sync-now`,children:[(0,P.jsx)(x,{icon:C,className:`size-4`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`EHu0x2`})]}):(0,P.jsxs)(o,{onClick:g,"data-testid":`share-receive-miss-sync-now`,children:[(0,P.jsx)(C,{className:`size-4`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`lb_UU4`})]}),t[13]=g,t[14]=l,t[15]=_):_=t[15];let v;t[16]===l?v=t[17]:(v=l?(0,P.jsx)(r,{id:`dXOolp`}):null,t[16]=l,t[17]=v);let y;t[18]===v?y=t[19]:(y=(0,P.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,"data-testid":`share-receive-miss-sync-status`,children:v}),t[18]=v,t[19]=y);let b;return t[20]!==_||t[21]!==y?(b=(0,P.jsxs)(P.Fragment,{children:[_,y]}),t[20]=_,t[21]=y,t[22]=b):b=t[22],b}var G=!1;function K(e){return!G&&e!==null&&e.syncEnabled!==!0}function q(e){return e===null?!1:e.hasRemote&&e.lastPullUtc!==void 0&&e.state!==`conflict`}function J(e,t){let n=(0,M.c)(15),[r,i]=(0,N.useState)(!1),[a,o]=(0,N.useState)(null),[s,c]=(0,N.useState)(!1),l=(0,N.useRef)(null),u,d;n[0]!==t||n[1]!==r||n[2]!==e?(u=()=>{if(!r||(e?.lastPullUtc??null)===l.current)return;i(!1);let n=e?.lastPullOutcome??null;if(n===null){t?.();return}switch(n){case`refused`:case`error`:o(n);return;case`succeeded`:case`up-to-date`:if(K(e)){G=!0,c(!0);return}t?.();return;case`conflict`:t?.();return;default:t?.();return}},d=[r,e,t],n[0]=t,n[1]=r,n[2]=e,n[3]=u,n[4]=d):(u=n[3],d=n[4]),(0,N.useEffect)(u,d);let f;n[5]===t?f=n[6]:(f=()=>{c(!1),t?.()},n[5]=t,n[6]=f);let p;n[7]===e?.lastPullUtc?p=n[8]:(p=()=>{l.current=e?.lastPullUtc??null,o(null),i(!0),m(`pull`).catch(e=>{console.warn(`[receive] miss pull trigger failed`,e instanceof Error?e.message:e),i(!1),o(`error`)})},n[7]=e?.lastPullUtc,n[8]=p);let h;return n[9]!==a||n[10]!==s||n[11]!==r||n[12]!==f||n[13]!==p?(h={pending:r,failure:a,offering:s,resolveOffer:f,start:p},n[9]=a,n[10]=s,n[11]=r,n[12]=f,n[13]=p,n[14]=h):h=n[14],h}function Y(e){let t=(0,M.c)(10),{pending:n,onPull:i}=e,a;t[0]!==i||t[1]!==n?(a=n?(0,P.jsxs)(o,{disabled:!0,"aria-busy":`true`,"data-testid":`share-receive-miss-pull-now`,children:[(0,P.jsx)(x,{icon:C,className:`size-4`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`4uNLmk`})]}):(0,P.jsxs)(o,{onClick:i,"data-testid":`share-receive-miss-pull-now`,children:[(0,P.jsx)(l,{className:`size-4`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`fevEu0`})]}),t[0]=i,t[1]=n,t[2]=a):a=t[2];let s;t[3]===n?s=t[4]:(s=n?(0,P.jsx)(r,{id:`glG1TR`}):null,t[3]=n,t[4]=s);let c;t[5]===s?c=t[6]:(c=(0,P.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,"data-testid":`share-receive-miss-pull-status`,children:s}),t[5]=s,t[6]=c);let u;return t[7]!==a||t[8]!==c?(u=(0,P.jsxs)(P.Fragment,{children:[a,c]}),t[7]=a,t[8]=c,t[9]=u):u=t[9],u}function X(e){let t=(0,M.c)(18),{onResolve:n,strandedCommitCount:r}=e,i=f(),a=(0,N.useRef)(!1),o;t[0]===n?o=t[1]:(o=function(){a.current||(a.current=!0,n())},t[0]=n,t[1]=o);let s=o,c;t[2]===s?c=t[3]:(c={onApplied:s},t[2]=s,t[3]=c);let{confirmOpen:l,setConfirmOpen:d,onModeSelect:p,onConfirm:m}=u(i,`off`,c),h=(0,N.useRef)(!1),_,v;t[4]===p?(_=t[5],v=t[6]):(_=()=>{h.current||(h.current=!0,p(`follow`))},v=[p],t[4]=p,t[5]=_,t[6]=v),(0,N.useEffect)(_,v);let y;t[7]!==s||t[8]!==d?(y=e=>{d(e),e||s()},t[7]=s,t[8]=d,t[9]=y):y=t[9];let b;t[10]!==m||t[11]!==s?(b=()=>{m(),s()},t[10]=m,t[11]=s,t[12]=b):b=t[12];let x;return t[13]!==l||t[14]!==r||t[15]!==y||t[16]!==b?(x=(0,P.jsx)(g,{open:l,onOpenChange:y,onConfirm:b,variant:`follow`,strandedCommitCount:r}),t[13]=l,t[14]=r,t[15]=y,t[16]=b,t[17]=x):x=t[17],x}function Z(e){let t=(0,M.c)(89),{nav:n,state:a,onBrowseFolder:s,onOpenRenamed:c,onEnableAutoSync:u,onSyncCompleted:d,onPullApplied:f}=e,{_:m}=i(),h=p(),g=J(h,f),_=n.branch,v;t[0]!==m||t[1]!==n.kind?(v=n.kind===`folder`?m({id:`ugoTXs`}):m({id:`XH30C4`}),t[0]=m,t[1]=n.kind,t[2]=v):v=t[2];let b=v;if(a.phase===`pending`){let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(x,{className:`size-5`,"aria-hidden":`true`}),(0,P.jsx)(r,{id:`c8jBgX`})]}),t[3]=e):e=t[3],e}let{resolution:C}=a,w,T;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,P.jsx)(y,{className:`size-4`,"aria-hidden":`true`}),T=(0,P.jsx)(r,{id:`hItdtk`}),t[4]=w,t[5]=T):(w=t[4],T=t[5]);let E;t[6]===s?E=t[7]:(E=(0,P.jsxs)(o,{variant:`outline`,onClick:s,"data-testid":`share-receive-miss-browse`,children:[w,T]}),t[6]=s,t[7]=E);let D=E,O,N,F,I=null;if(C.verdict===`renamed`){let e;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(S,{className:`size-9`,"aria-hidden":`true`}),t[8]=e):e=t[8],O=e;let n;t[9]!==C.renamedTo||t[10]!==b?(n={0:C.renamedTo,targetNoun:b},t[9]=C.renamedTo,t[10]=b,t[11]=n):n=t[11];let i;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[12]=i):i=t[12];let a;t[13]===n?a=t[14]:(a=(0,P.jsx)(r,{id:`P0HC30`,values:n,components:i}),t[13]=n,t[14]=a),N=a;let s;t[15]!==c||t[16]!==C.renamedTo?(s=()=>c(C.renamedTo),t[15]=c,t[16]=C.renamedTo,t[17]=s):s=t[17];let l,u;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,P.jsx)(S,{className:`size-4`,"aria-hidden":`true`}),u=(0,P.jsx)(r,{id:`AItsE5`}),t[18]=l,t[19]=u):(l=t[18],u=t[19]);let d;t[20]===s?d=t[21]:(d=(0,P.jsxs)(o,{onClick:s,"data-testid":`share-receive-miss-open-renamed`,children:[l,u]}),t[20]=s,t[21]=d);let f;t[22]!==D||t[23]!==d?(f=(0,P.jsxs)(P.Fragment,{children:[d,D]}),t[22]=D,t[23]=d,t[24]=f):f=t[24],F=f}else if(C.verdict===`deleted`){let e;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(j,{className:`size-9`,"aria-hidden":`true`}),t[25]=e):e=t[25],O=e;let n;t[26]!==_||t[27]!==b?(n={targetNoun:b,branch:_},t[26]=_,t[27]=b,t[28]=n):n=t[28];let i;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[29]=i):i=t[29];let a;t[30]===n?a=t[31]:(a=(0,P.jsx)(r,{id:`kpqWwG`,values:n,components:i}),t[30]=n,t[31]=a),N=a,F=D}else if(C.verdict===`never-on-branch`){let e;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(A,{className:`size-9`,"aria-hidden":`true`}),t[32]=e):e=t[32],O=e;let n;t[33]!==_||t[34]!==b?(n={targetNoun:b,branch:_},t[33]=_,t[34]=b,t[35]=n):n=t[35];let i;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[36]=i):i=t[36];let a;t[37]===n?a=t[38]:(a=(0,P.jsx)(r,{id:`i9TPUi`,values:n,components:i}),t[37]=n,t[38]=a),N=a,F=D}else if(C.verdict===`changed-locally`){let e;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(k,{className:`size-9`,"aria-hidden":`true`}),t[39]=e):e=t[39],O=e;let n=h?.syncEnabled===!0,i=h?.pushPermission?.checkStatus===`denied`||!!(h?.pushError||h?.pushErrorCode);if(n){let e;t[40]!==_||t[41]!==b?(e=_===null?(0,P.jsx)(r,{id:`RyIKxy`,values:{targetNoun:b}}):(0,P.jsx)(r,{id:`l6kpzR`,values:{targetNoun:b,branch:_},components:{0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[40]=_,t[41]=b,t[42]=e):e=t[42],N=e}else{let e;t[43]!==_||t[44]!==b?(e=_===null?(0,P.jsx)(r,{id:`UuYo7g`,values:{targetNoun:b}}):(0,P.jsx)(r,{id:`HoWElC`,values:{targetNoun:b,branch:_},components:{0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[43]=_,t[44]=b,t[45]=e):e=t[45],N=e}let a=null;if(h?.syncEnabled){if(ee(h)&&!i){let e;t[46]!==d||t[47]!==h?(e=(0,P.jsx)(W,{status:h,onSyncCompleted:d}),t[46]=d,t[47]=h,t[48]=e):e=t[48],a=e}}else if(h!==null){let e;t[49]===u?e=t[50]:(e=(0,P.jsx)(U,{onEnabled:u}),t[49]=u,t[50]=e),a=e}let o;t[51]!==D||t[52]!==a?(o=(0,P.jsxs)(P.Fragment,{children:[a,D]}),t[51]=D,t[52]=a,t[53]=o):o=t[53],F=o}else{let e;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,P.jsx)(l,{className:`size-9`,"aria-hidden":`true`}),t[54]=e):e=t[54],O=e;let n;t[55]===h?n=t[56]:(n=q(h),t[55]=h,t[56]=n);let i=n;if(i){let e;t[57]===_?e=t[58]:(e=_===null?(0,P.jsx)(r,{id:`gwEcOD`}):(0,P.jsx)(r,{id:`wvK7Ay`,values:{branch:_},components:{0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[57]=_,t[58]=e),N=e}else{let e;t[59]===_?e=t[60]:(e=_===null?(0,P.jsx)(r,{id:`Xewl6B`}):(0,P.jsx)(r,{id:`d1JjXo`,values:{branch:_},components:{0:(0,P.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[59]=_,t[60]=e),N=e}let a=g.failure===null?`sr-only`:`max-w-md text-balance text-1sm text-destructive`,o;t[61]===g.failure?o=t[62]:(o=g.failure===`refused`?(0,P.jsx)(r,{id:`Xp7Kq4`}):g.failure===`error`?(0,P.jsx)(r,{id:`JG_8KT`}):null,t[61]=g.failure,t[62]=o);let s;t[63]!==a||t[64]!==o?(s=(0,P.jsx)(`p`,{role:`alert`,className:a,"data-testid":`share-receive-miss-pull-error`,children:o}),t[63]=a,t[64]=o,t[65]=s):s=t[65],I=s;let c;t[66]!==i||t[67]!==g.pending||t[68]!==g.start?(c=i?(0,P.jsx)(Y,{pending:g.pending,onPull:g.start}):null,t[66]=i,t[67]=g.pending,t[68]=g.start,t[69]=c):c=t[69];let u;t[70]!==g.offering||t[71]!==g.resolveOffer||t[72]!==h?.ahead?(u=g.offering?(0,P.jsx)(X,{onResolve:g.resolveOffer,strandedCommitCount:h?.ahead??0}):null,t[70]=g.offering,t[71]=g.resolveOffer,t[72]=h?.ahead,t[73]=u):u=t[73];let d;t[74]!==D||t[75]!==c||t[76]!==u?(d=(0,P.jsxs)(P.Fragment,{children:[c,D,u]}),t[74]=D,t[75]=c,t[76]=u,t[77]=d):d=t[77],F=d}let L;t[78]===O?L=t[79]:(L=(0,P.jsx)(`div`,{className:`flex size-16 items-center justify-center rounded-full border bg-muted/40 text-muted-foreground`,children:O}),t[78]=O,t[79]=L);let R;t[80]===N?R=t[81]:(R=(0,P.jsx)(`p`,{className:`max-w-md text-balance text-base leading-6 text-foreground/90`,children:N}),t[80]=N,t[81]=R);let z;t[82]===F?z=t[83]:(z=(0,P.jsx)(`div`,{className:`flex flex-col-reverse gap-2 sm:flex-row sm:flex-wrap sm:justify-center`,children:F}),t[82]=F,t[83]=z);let B;return t[84]!==I||t[85]!==L||t[86]!==R||t[87]!==z?(B=(0,P.jsxs)(P.Fragment,{children:[L,R,I,z]}),t[84]=I,t[85]=L,t[86]=R,t[87]=z,t[88]=B):B=t[88],B}function Q(e){return e.replace(/^\/+|\/+$/g,``)}function $(e,t){if(t.kind===`folder`){if(T(e))return Q(t.path)===``;let n=D(e);return n!==null&&Q(n)===Q(t.path)}let n=D(e);return n===null?!1:E(n)===E(t.path)}function te(){let e=null,t=new Set,n=!1;function r(){for(let e of t)e()}function i(t){e!==t&&(e=t,r())}function a(){e!==null&&($(window.location.hash,e)||i(null))}function o(){n||typeof window>`u`||(n=!0,window.addEventListener(`hashchange`,a))}return{arm(e){o(),i(e)},clear(){i(null)},getSnapshot(){return e},subscribe(e){return t.add(e),()=>{t.delete(e)}},dispose(){n&&typeof window<`u`&&(window.removeEventListener(`hashchange`,a),n=!1),i(null)}}}var ne=te();function re(e,t){if(e.contentRootDepth===void 0)return{...e,path:t,repositoryPath:t};let n=(e.repositoryPath??e.path).split(`/`).slice(0,e.contentRootDepth);return{...e,path:t,repositoryPath:[...n,...t===``?[]:t.split(`/`)].join(`/`)}}function ie(e,t){return e===null||e.kind!==`missing`||t===null||E(t.path)!==e.target?null:t}export{B as a,I as c,Z as i,re as n,V as o,ne as r,L as s,ie as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-aWKxesFC.js";import{t}from"./src-D_jMrcY1.js";import{H as n,K as r,U as i,a,c as o,f as s,v as c,w as l,x as u,y as d}from"./chunk-I66GZJ75-BUquu3u4.js";import{t as f}from"./ordinal-B960F-5k.js";import{n as p}from"./path-DB0YkgfR.js";import{m}from"./dist-CcrUlXUT.js";import{t as h}from"./arc-DR7JhWzI.js";import{t as g}from"./array-DO4pDyQ7.js";import{i as _,p as v}from"./chunk-NSK5VX7P-BW0NvKtJ.js";import{t as y}from"./chunk-3NCLNEKW-CIPZUTs2.js";import{t as b}from"./chunk-JWPE2WC7-D5w3_tHx.js";import{n as x}from"./mermaid-parser.core-CmtFEtdo.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=p(0),i=p(m),a=p(0);function o(o){var s,c=(o=g(o)).length,l,u,d=0,f=Array(c),p=Array(c),h=+r.apply(this,arguments),_=Math.min(m,Math.max(-m,i.apply(this,arguments)-h)),v,y=Math.min(Math.abs(_)/c,a.apply(this,arguments)),b=y*(_<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(_-c*b)/d:0;s<c;++s,h=v)l=f[s],x=p[l],v=h+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:h,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:p(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:p(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:p(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:p(+e),o):a},o}var T=s.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:e(()=>structuredClone(k),`getConfig`),clear:e(()=>{D=new Map,O=E.showData,a()},`clear`),setDiagramTitle:r,getDiagramTitle:l,setAccTitle:i,getAccTitle:d,setAccDescription:n,getAccDescription:c,addSection:e(({label:e,value:n})=>{if(n<0)throw Error(`"${e}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,n),t.debug(`added new section: ${e}, with value: ${n}`))},`addSection`),getSections:e(()=>D,`getSections`),setShowData:e(e=>{O=e},`setShowData`),getShowData:e(()=>O,`getShowData`)},j=e((e,t)=>{b(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:e(async e=>{let n=await x(`pie`,e);t.debug(n),j(n,A)},`parse`)},N=e(e=>`
1
+ import{n as e}from"./chunk-Y2CYZVJY-aWKxesFC.js";import{t}from"./src-D_jMrcY1.js";import{H as n,K as r,U as i,a,c as o,f as s,v as c,w as l,x as u,y as d}from"./chunk-I66GZJ75-DdvvFHYK.js";import{t as f}from"./ordinal-B960F-5k.js";import{n as p}from"./path-DB0YkgfR.js";import{m}from"./dist-CcrUlXUT.js";import{t as h}from"./arc-DR7JhWzI.js";import{t as g}from"./array-DO4pDyQ7.js";import{i as _,p as v}from"./chunk-NSK5VX7P-Cm6rtpZw.js";import{t as y}from"./chunk-3NCLNEKW-BYKJOcB6.js";import{t as b}from"./chunk-JWPE2WC7-D5w3_tHx.js";import{n as x}from"./mermaid-parser.core-CmtFEtdo.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=p(0),i=p(m),a=p(0);function o(o){var s,c=(o=g(o)).length,l,u,d=0,f=Array(c),p=Array(c),h=+r.apply(this,arguments),_=Math.min(m,Math.max(-m,i.apply(this,arguments)-h)),v,y=Math.min(Math.abs(_)/c,a.apply(this,arguments)),b=y*(_<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(_-c*b)/d:0;s<c;++s,h=v)l=f[s],x=p[l],v=h+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:h,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:p(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:p(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:p(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:p(+e),o):a},o}var T=s.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:e(()=>structuredClone(k),`getConfig`),clear:e(()=>{D=new Map,O=E.showData,a()},`clear`),setDiagramTitle:r,getDiagramTitle:l,setAccTitle:i,getAccTitle:d,setAccDescription:n,getAccDescription:c,addSection:e(({label:e,value:n})=>{if(n<0)throw Error(`"${e}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,n),t.debug(`added new section: ${e}, with value: ${n}`))},`addSection`),getSections:e(()=>D,`getSections`),setShowData:e(e=>{O=e},`setShowData`),getShowData:e(()=>O,`getShowData`)},j=e((e,t)=>{b(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:e(async e=>{let n=await x(`pie`,e);t.debug(n),j(n,A)},`parse`)},N=e(e=>`
2
2
  .pieCircle{
3
3
  stroke: ${e.pieStrokeColor};
4
4
  stroke-width : ${e.pieStrokeWidth};
@@ -0,0 +1 @@
1
+ import{t as e}from"./dist-BIGNzOeF2.js";function t(t){return t===`win32`?e._({id:`qi1F96`}):t===`linux`?e._({id:`e1Rn_k`}):e._({id:`LtSYdi`})}function n(t){return t===`win32`?e._({id:`o9yN4T`}):e._({id:`q3TWG7`})}function r(t){return t===`win32`?e._({id:`cVp1YI`}):e._({id:`GQ3O42`})}export{t as n,r,n as t};
@@ -1 +1 @@
1
- import{t as e}from"./jsx-runtime-BUgB2tll.js";import{t}from"./compiler-runtime-BfE3aGVn.js";import{t as n}from"./utils-CPqDy6Hr.js";import{a as r,i,o as a,r as o,s,t as c}from"./dist-GoOli512.js";var l=t(),u=e();function d(e){let t=(0,l.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,u.jsx)(a,{"data-slot":`popover`,...n}),t[2]=n,t[3]=r),r}function f(e){let t=(0,l.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,u.jsx)(s,{"data-slot":`popover-trigger`,...n}),t[2]=n,t[3]=r),r}function p(e){let t=(0,l.c)(12),a,o,s,c;t[0]===e?(a=t[1],o=t[2],s=t[3],c=t[4]):({className:a,align:s,sideOffset:c,...o}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s,t[4]=c);let d=s===void 0?`center`:s,f=c===void 0?4:c,p;t[5]===a?p=t[6]:(p=n(`z-50 w-72 rounded-lg border bg-popover p-4 text-popover-foreground shadow-md outline-hidden origin-(--radix-popover-content-transform-origin) duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:duration-0`,a),t[5]=a,t[6]=p);let m;return t[7]!==d||t[8]!==o||t[9]!==f||t[10]!==p?(m=(0,u.jsx)(r,{children:(0,u.jsx)(i,{"data-slot":`popover-content`,align:d,sideOffset:f,className:p,...o})}),t[7]=d,t[8]=o,t[9]=f,t[10]=p,t[11]=m):m=t[11],m}function m(e){let t=(0,l.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,u.jsx)(c,{"data-slot":`popover-anchor`,...n}),t[2]=n,t[3]=r),r}function h(e){let t=(0,l.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,u.jsx)(o,{"data-slot":`popover-close`,...n}),t[2]=n,t[3]=r),r}export{f as a,p as i,m as n,h as r,d as t};
1
+ import{t as e}from"./jsx-runtime-BUgB2tll.js";import{t}from"./compiler-runtime-BfE3aGVn.js";import{t as n}from"./utils-CPqDy6Hr.js";import{a as r,i,o as a,r as o,s,t as c}from"./dist-Cu8jzM5J.js";var l=t(),u=e();function d(e){let t=(0,l.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,u.jsx)(a,{"data-slot":`popover`,...n}),t[2]=n,t[3]=r),r}function f(e){let t=(0,l.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,u.jsx)(s,{"data-slot":`popover-trigger`,...n}),t[2]=n,t[3]=r),r}function p(e){let t=(0,l.c)(12),a,o,s,c;t[0]===e?(a=t[1],o=t[2],s=t[3],c=t[4]):({className:a,align:s,sideOffset:c,...o}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s,t[4]=c);let d=s===void 0?`center`:s,f=c===void 0?4:c,p;t[5]===a?p=t[6]:(p=n(`z-50 w-72 rounded-lg border bg-popover p-4 text-popover-foreground shadow-md outline-hidden origin-(--radix-popover-content-transform-origin) duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:duration-0`,a),t[5]=a,t[6]=p);let m;return t[7]!==d||t[8]!==o||t[9]!==f||t[10]!==p?(m=(0,u.jsx)(r,{children:(0,u.jsx)(i,{"data-slot":`popover-content`,align:d,sideOffset:f,className:p,...o})}),t[7]=d,t[8]=o,t[9]=f,t[10]=p,t[11]=m):m=t[11],m}function m(e){let t=(0,l.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,u.jsx)(c,{"data-slot":`popover-anchor`,...n}),t[2]=n,t[3]=r),r}function h(e){let t=(0,l.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,u.jsx)(o,{"data-slot":`popover-close`,...n}),t[2]=n,t[3]=r),r}export{f as a,p as i,m as n,h as r,d as t};
@@ -0,0 +1,9 @@
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{L as n,P as r,R as i}from"./DocumentContext-DyBKMWUQ.js";import{t as a}from"./react-f2sANaYj.js";import{r as o}from"./dist-Nvb76hAm.js";import{t as s}from"./compiler-runtime-BfE3aGVn.js";import{t as c}from"./utils-CPqDy6Hr.js";import{t as l}from"./button-CA0dewJJ.js";import{c as u,l as d}from"./dist-DsLZcVyZ.js";import{B as f,C as p,F as m,H as h,S as g,f as _,g as v,h as y,l as b,m as x,p as S,u as ee}from"./CodeMirrorPropInput-B8JfraRG.js";import{Ba as C,Ga as w,Pa as T,Ra as te,Wa as ne,_a as E,aa as D,ia as re,ma as O,oa as k,pt as A,ra as j,za as M}from"./dist-CWxNQtC52.js";import{t as N}from"./dist-BIGNzOeF2.js";import{t as P}from"./workspace-paths-CD0W1etA.js";import{t as ie}from"./createLucideIcon-CAkY8Blx.js";import{t as F}from"./x-wQUDJS55.js";var I=e(a(),1),L=t(),R=`Progress`,z=100,[B,ae]=u(R),[V,H]=B(R),U=I.forwardRef((e,t)=>{let{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=K,...o}=e;(i||i===0)&&!Y(i)&&console.error(se(`${i}`,`Progress`));let s=Y(i)?i:z;r!==null&&!oe(r,s)&&console.error(ce(`${r}`,`Progress`));let c=oe(r,s)?r:null,l=J(c)?a(c,s):void 0;return(0,L.jsx)(V,{scope:n,value:c,max:s,children:(0,L.jsx)(d.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":J(c)?c:void 0,"aria-valuetext":l,role:`progressbar`,"data-state":q(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})});U.displayName=R;var W=`ProgressIndicator`,G=I.forwardRef((e,t)=>{let{__scopeProgress:n,...r}=e,i=H(W,n);return(0,L.jsx)(d.div,{"data-state":q(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});G.displayName=W;function K(e,t){return`${Math.round(e/t*100)}%`}function q(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}function J(e){return typeof e==`number`}function Y(e){return J(e)&&!isNaN(e)&&e>0}function oe(e,t){return J(e)&&!isNaN(e)&&e<=t&&e>=0}function se(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${z}\`.`}function ce(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
2
+ - a positive number
3
+ - less than the value passed to \`max\` (or ${z} if no \`max\` prop is set)
4
+ - \`null\` or \`undefined\` if the progress is indeterminate.
5
+
6
+ Defaulting to \`null\`.`}var le=U,ue=G,de=ie(`share-2`,[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]),X=s(),fe=`ok-ask-ai-draft-v2`,pe={doc:null,dismissed:!1};function me(){if(typeof window>`u`)return null;try{return window.localStorage}catch{return null}}var he=null,ge=new Set;function _e(e){if(e===null)return!0;let t=e.content;return!Array.isArray(t)||t.length===0?!0:t.every(e=>{let t=e.content;return!Array.isArray(t)||t.length===0})}function ve(){let e=me();if(!e)return pe;try{let t=e.getItem(fe);if(!t)return pe;let n=JSON.parse(t);return typeof n!=`object`||!n||Array.isArray(n)?pe:{doc:n,dismissed:!1}}catch(e){return console.warn(`failed to parse stored draft — clearing`,e),pe}}function ye(){return he===null&&(he=ve()),he}function be(e){let t=me();if(t)try{e&&!_e(e)?t.setItem(fe,JSON.stringify(e)):t.removeItem(fe)}catch{}}function xe(){for(let e of ge)e()}function Se(){return ye()}function Ce(e){let t=e&&!_e(e)?e:null;he={...ye(),doc:t},be(t),xe()}function we(){Ce(null)}var Te=j;function Ee(e){let t=g(e).kind;return t===`folder`||t===`asset`?t:`page`}function De(e){let t=(0,X.c)(14),{items:n,query:i,selectedIndex:a,onSelect:s,loading:c,error:l,hasMore:u}=e,d=c===void 0?!1:c,f=l===void 0?!1:l,p=u===void 0?!1:u,{_:m}=o(),h=(0,I.useId)(),g=(0,I.useRef)(null),_,v;t[0]===a?(_=t[1],v=t[2]):(_=()=>{(g.current?.querySelectorAll(`[role="option"]`))?.item(a)?.scrollIntoView({block:`nearest`})},v=[a],t[0]=a,t[1]=_,t[2]=v),(0,I.useEffect)(_,v);let y=a>=0&&a<n.length?n[a]:null,b;return t[3]!==m||t[4]!==f||t[5]!==p||t[6]!==n||t[7]!==h||t[8]!==d||t[9]!==s||t[10]!==i||t[11]!==a||t[12]!==y?(b=(0,L.jsx)(`div`,{ref:g,className:`w-80 max-w-[min(28rem,90vw)] overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-md`,children:d?(0,L.jsx)(`p`,{className:`px-2 py-1.5 text-sm text-muted-foreground`,"aria-live":`polite`,children:m({id:`3m2GBo`})}):f?(0,L.jsx)(`p`,{className:`px-2 py-1.5 text-sm text-muted-foreground`,"aria-live":`assertive`,children:m({id:`weP6me`})}):n.length===0?(0,L.jsx)(`p`,{className:`px-2 py-1.5 text-sm text-muted-foreground`,"aria-live":`polite`,children:i.trim()===``?m({id:`0E9DR6`}):m({id:`yQyglE`})}):(0,L.jsxs)(`div`,{role:`listbox`,id:h,"aria-label":m({id:`05n5wS`}),tabIndex:-1,className:`max-h-64 overflow-y-auto overscroll-contain subtle-scrollbar`,children:[(0,L.jsx)(`span`,{className:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`,children:y?y.title:``}),n.map((e,t)=>{let n=t===a,i=Ee(e.path),o=i===`folder`,c=o?`${e.path}/`:e.path;return(0,L.jsxs)(`button`,{id:`${h}-option-${t}`,type:`button`,role:`option`,"aria-selected":n,"data-active":n,"data-mention-kind":i,"data-testid":`composer-mention-option-${e.docName}`,className:`flex w-full items-start gap-2 rounded-md px-2 py-1.5 text-left ${n?`bg-accent text-accent-foreground`:``}`,onMouseDown:t=>{t.preventDefault(),s(e)},children:[(0,L.jsx)(r,{path:e.path,className:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),(0,L.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,L.jsxs)(`span`,{className:`flex items-baseline gap-1.5`,children:[(0,L.jsx)(`span`,{className:`truncate text-sm font-medium`,children:e.title}),o?(0,L.jsx)(`span`,{className:`shrink-0 text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:m({id:`kNqMMd`})}):null]}),(0,L.jsx)(`span`,{className:`line-clamp-2 break-all text-xs text-muted-foreground`,children:c})]})]},e.docName)}),p?(0,L.jsx)(`div`,{className:`px-2 py-1 text-xs text-muted-foreground`,"aria-hidden":!0,children:m({id:`F1T9y_`})}):null]})}),t[3]=m,t[4]=f,t[5]=p,t[6]=n,t[7]=h,t[8]=d,t[9]=s,t[10]=i,t[11]=a,t[12]=y,t[13]=b):b=t[13],b}function Oe(e){let t=(0,X.c)(12),{items:n,query:r,selectedIndex:i,onSelect:a,commandsKnown:s}=e,{_:c}=o(),l=(0,I.useId)(),u=(0,I.useRef)(null),d,f;t[0]===i?(d=t[1],f=t[2]):(d=()=>{(u.current?.querySelectorAll(`[role="option"]`))?.item(i)?.scrollIntoView({block:`nearest`})},f=[i],t[0]=i,t[1]=d,t[2]=f),(0,I.useEffect)(d,f);let p=i>=0&&i<n.length?n[i]:null,m;return t[3]!==c||t[4]!==s||t[5]!==n||t[6]!==l||t[7]!==a||t[8]!==r||t[9]!==i||t[10]!==p?(m=(0,L.jsx)(`div`,{ref:u,"data-testid":`composer-slash-menu`,className:`w-[42rem] max-w-[min(42rem,90vw)] overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-md`,children:n.length===0?(0,L.jsx)(`p`,{className:`px-2 py-1.5 text-sm text-muted-foreground`,"aria-live":`polite`,children:s?r.trim()===``?c({id:`QohqVL`}):c({id:`odYWGJ`}):c({id:`9OPs7U`})}):(0,L.jsxs)(`div`,{role:`listbox`,id:l,"aria-label":c({id:`67Dpmh`}),tabIndex:-1,className:`max-h-64 overflow-y-auto overscroll-contain subtle-scrollbar`,children:[(0,L.jsx)(`span`,{className:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`,children:p?`/${p.name}`:``}),n.map((e,t)=>{let n=t===i;return(0,L.jsxs)(`button`,{id:`${l}-option-${t}`,type:`button`,role:`option`,"aria-selected":n,"data-active":n,"data-testid":`composer-slash-option-${e.name}`,className:`flex w-full items-baseline gap-2 rounded-md px-2 py-1.5 text-left ${n?`bg-accent text-accent-foreground`:``}`,onMouseDown:t=>{t.preventDefault(),a(e)},children:[(0,L.jsxs)(`span`,{className:`shrink-0 font-mono text-sm font-medium`,children:[`/`,e.name]}),(0,L.jsx)(`span`,{className:`line-clamp-2 min-w-0 flex-1 text-xs text-muted-foreground`,children:e.description})]},e.name)})]})}),t[3]=c,t[4]=s,t[5]=n,t[6]=l,t[7]=a,t[8]=r,t[9]=i,t[10]=p,t[11]=m):m=t[11],m}var ke=new w(`composerSlashSuggestion`),Ae=E.create({name:`composerCommand`,group:`inline`,inline:!0,atom:!0,selectable:!1,addAttributes(){return{name:{default:``},description:{default:``},hint:{default:``}}},parseHTML(){return[{tag:`span[data-composer-command]`}]},renderHTML({node:e,HTMLAttributes:t}){let n=String(e.attrs.name??``);return[`span`,T(t,{"data-composer-command":n,class:`composer-slash-token composer-slash-token-known`}),`/${n}`]},renderText({node:e}){return`/${e.attrs.name}`}}),je=new w(`composerSlashToken`),Me=`composerSlashCommand`;function Ne(e){return e.storage[Me]}function Pe(e){return Ne(e)?.commands??null}function Fe(e,t){let n=Ne(e);return n===void 0||n.commands===t?!1:(n.commands=t,!0)}function Ie(e,t){let n=t.trim().toLowerCase();if(n===``)return[...e];let r=[],i=[],a=[];for(let t of e){let e=t.name.toLowerCase();e.startsWith(n)?r.push(t):e.includes(n)?i.push(t):t.description.toLowerCase().includes(n)&&a.push(t)}return[...r,...i,...a]}function Le(e){let t=/^\/(\S+)/.exec(e);return t===null?null:{name:t[1]??``,length:t[0].length}}function Re(e,t){let n=Le(e);if(n===null||t===null)return null;let r=t.find(e=>e.name===n.name);return r===void 0?{kind:`unknown`,name:n.name,agentHasCommands:t.length>0}:{kind:`known`,name:r.name,description:r.description}}function ze(e){return Be(e.state.doc.firstChild)}function Be(e){let t=e?.firstChild??null;return t?.isText?t.text??``:``}function Ve(e,t){let n=e.firstChild,r=n?.firstChild??null;if(r!==null&&r.type.name===`composerCommand`){if(!We(e))return C.empty;let t=String(r.attrs.hint??``),i=String(r.attrs.description??``),a=t===``?i===``?``:`— ${i}`:t;return a===``?C.empty:C.create(e,[He(1+(n?.content.size??0),a,String(r.attrs.name))])}if(t===null)return C.empty;let i=Le(Be(e.firstChild));if(i===null)return C.empty;let a=t.find(e=>e.name===i.name),o=[M.inline(1,1+i.length,{class:a===void 0?`composer-slash-token composer-slash-token-unknown`:`composer-slash-token composer-slash-token-known`})];if(a!==void 0&&Ue(e,i.length)){let t=a.input?.hint!=null&&a.input.hint!==``?a.input.hint:`— ${a.description}`;(a.description!==``||a.input?.hint)&&o.push(He(1+(e.firstChild?.firstChild?.nodeSize??0),t,a.name))}return C.create(e,o)}function He(e,t,n){return M.widget(e,()=>{let e=document.createElement(`span`);return e.className=`composer-slash-ghost`,e.setAttribute(`aria-hidden`,`true`),e.textContent=t,e},{side:1,key:`slash-ghost:${n}`})}function Ue(e,t){if(e.childCount!==1)return!1;let n=e.firstChild;if(n===null||n.childCount!==1)return!1;let r=n.firstChild;if(r===null||!r.isText)return!1;let i=r.text??``;return i.length<=t+1&&(i.length===t||i.endsWith(` `))}function We(e){if(e.childCount!==1)return!1;let t=e.firstChild;if(t===null)return!1;if(t.childCount===1)return!0;if(t.childCount!==2)return!1;let n=t.child(1);return n.isText&&/^\s*$/.test(n.text??``)}var Ge=O.create({name:Me,addOptions(){return{commands:null}},addStorage(){return{commands:this.options.commands}},addProseMirrorPlugins(){let e=this.storage,t=()=>e.commands??null;return[new ne({key:je,state:{init:(e,n)=>Ve(n.doc,t()),apply:e=>Ve(e.doc,t())},props:{decorations(e){return this.getState(e)}}}),p({editor:this.editor,pluginKey:ke,char:`/`,startOfLine:!0,allow:({range:e})=>e.from===1,items:({query:e})=>{let n=t();return n===null||n.length===0?[]:Ie(n,e)},command:({editor:e,range:t,props:n})=>{let r=e.state.doc.firstChild?.firstChild??null,i=r?.isText?Le(r.text??``)?.length??0:0;try{e.chain().focus().deleteRange({from:t.from,to:Math.max(t.to,1+i)}).insertContent([{type:`composerCommand`,attrs:{name:n.name,description:n.description,hint:n.input?.hint??``}},{type:`text`,text:` `}]).run()}catch(e){console.error(`[composer-slash-command] insert failed`,{item:n,range:t},e)}},render:()=>{let e=null,n=null,r=0,i={popup:null,stopAutoUpdate:null},a=null,o=null,s=e=>{n?.command(e)},c=e=>{o=e.editor.view,y(o,(e.items??[]).length)},l=e=>({items:e.items??[],query:e.query??``,selectedIndex:r,onSelect:s,commandsKnown:t()!==null}),u=()=>{!e||!n||e.updateProps(l(n))};return{onBeforeStart(t){n=t,r=0,c(t);let o=S(()=>n,`composer-slash`);i.popup=o.popup,a=o.doPosition,e=new f(Oe,{props:l(t),editor:t.editor}),o.popup.appendChild(e.element),i.stopAutoUpdate=o.startAutoUpdate(),o.reveal()},onStart(e){n=e,r=0,c(e),u()},onUpdate(e){n=e,r=Math.min(r,Math.max(0,e.items.length-1)),c(e),u(),a?.()},onKeyDown({event:e}){if(!n)return!1;let t=n.items;if(e.key===`ArrowDown`)return t.length===0?!1:(r=(r+1)%t.length,u(),!0);if(e.key===`ArrowUp`)return t.length===0?!1:(r=(r-1+t.length)%t.length,u(),!0);if(e.key===`Enter`||e.key===`Tab`){let e=t[r];return e?(n.command(e),!0):!1}return!1},onExit(){x(i),a=null,e?.destroy(),e=null,n=null,r=0,o!==null&&(_(o),o=null)}}}})]}}),Ke=8,qe=new w(`composerMentionSuggestion`);function Je(e){return e.kind===`asset`?e.docName.replace(/^\//,``):e.kind===`folder`?e.docName:P(e.docName)}var Ye=E.create({name:`doc`,topNode:!0,content:`paragraph+`}),Xe=E.create({name:`paragraph`,group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML(){return[`p`,0]}}),Ze=E.create({name:`text`,group:`inline`}),Qe=E.create({name:`hardBreak`,group:`inline`,inline:!0,selectable:!1,parseHTML(){return[{tag:`br`}]},renderHTML(){return[`br`]},addKeyboardShortcuts(){return{"Shift-Enter":()=>this.editor.commands.insertContent({type:`hardBreak`})}}}),$e=O.create({name:`composerHistory`,addProseMirrorPlugins(){return[re(),te({"Mod-z":k,"Mod-y":D,"Shift-Mod-z":D})]}}),et=E.create({name:`composerMention`,group:`inline`,inline:!0,atom:!0,selectable:!0,addAttributes(){return{path:{default:``},label:{default:``},mentionKind:{default:`file`}}},parseHTML(){return[{tag:`span[data-composer-mention]`}]},renderHTML({node:e,HTMLAttributes:t}){let n=String(e.attrs.label||e.attrs.path);return[`span`,T(t,{"data-composer-mention":String(e.attrs.path??``),class:`composer-mention-chip`}),`@${n}`]},renderText({node:e}){return`@${e.attrs.path}`},addNodeView(){return({node:e,editor:t,getPos:r})=>{let a=String(e.attrs.path??``),o=String(e.attrs.label||e.attrs.path),s=document.createElement(`span`);s.className=`composer-mention-chip group/mention`,s.setAttribute(`data-composer-mention`,a),s.title=o;let c=document.createElement(`button`);c.type=`button`,c.className=`composer-mention-icon`,c.setAttribute(`aria-label`,N._({id:`Xzy0s0`,values:{fullLabel:o}}));let l=document.createElement(`span`);l.className=`composer-mention-glyph composer-mention-glyph-icon`,l.setAttribute(`aria-hidden`,`true`),l.innerHTML=n(a),c.appendChild(l);let u=document.createElement(`span`);u.className=`composer-mention-glyph composer-mention-glyph-x`,u.setAttribute(`aria-hidden`,`true`),u.innerHTML=i(F),c.appendChild(u),c.addEventListener(`mousedown`,e=>e.preventDefault()),c.addEventListener(`click`,n=>{n.preventDefault();let i=typeof r==`function`?r():null;i!=null&&t.chain().focus().deleteRange({from:i,to:i+e.nodeSize}).run()}),s.appendChild(c);let d=document.createElement(`span`);return d.className=`composer-mention-label`,d.textContent=o,s.appendChild(d),{dom:s}}},addProseMirrorPlugins(){return[rt(this.editor)]}});function tt(e){return[Ye,Xe,Ze,Qe,$e,et,Ae,...e?.slashCommands===void 0?[]:[Ge.configure({commands:e.slashCommands})],...e?.placeholder?[Te.configure({placeholder:e.placeholder,showOnlyWhenEditable:!1})]:[]]}function nt(e=()=>b({includeFolders:!0})){let t=[],n=!1,r=null,i=!1;return{snapshot(){return{loaded:n,error:i}},async getItems(a){if(!n){r||=e();try{t=await r,n=!0,i=!1}catch(e){console.error(`[composer-mention] failed to fetch pages`,e),t=[],i=!0}finally{r=null}}return ee(t,a).map(e=>({docName:e.docName,title:e.title,path:Je(e),kind:e.kind===`folder`?`folder`:`file`})).filter(e=>e.path!==``)},reset(){t=[],n=!1,r=null,i=!1}}}function rt(e){let t=nt();return p({editor:e,pluginKey:qe,char:`@`,items:({query:e})=>t.getItems(e),command:({editor:e,range:t,props:n})=>{try{e.chain().focus().deleteRange(t).insertContent([{type:`composerMention`,attrs:{path:n.path,label:n.title,mentionKind:n.kind}},{type:`text`,text:` `}]).run()}catch(e){console.error(`[composer-mention] insert failed`,{item:n,range:t},e)}},render:()=>{let e=null,n=null,r=0,i={popup:null,stopAutoUpdate:null},a=null,o=null,s=null,c=e=>{n?.command(e)},l=e=>{s=e.editor.view,y(s,(e.items??[]).length)},u=e=>{let n=e.items??[],{loaded:i,error:a}=t.snapshot();return{items:n,query:e.query??``,selectedIndex:r,onSelect:c,loading:!i&&!a,error:a,hasMore:n.length>=Ke}},d=()=>{!e||!n||e.updateProps(u(n))};return{onBeforeStart(t){n=t,r=0,l(t);let s=S(()=>n,`composer-mention`);i.popup=s.popup,a=s.doPosition,o=s.reveal,e=new f(De,{props:u(t),editor:t.editor}),s.popup.appendChild(e.element),i.stopAutoUpdate=s.startAutoUpdate()},onStart(e){n=e,r=0,l(e),d(),o?.()},onUpdate(e){n=e,r=Math.min(r,Math.max(0,e.items.length-1)),l(e),d(),a?.()},onKeyDown({event:e}){if(!n)return!1;let t=n.items;if(e.key===`ArrowDown`)return t.length===0?!1:(r=(r+1)%t.length,d(),!0);if(e.key===`ArrowUp`)return t.length===0?!1:(r=(r-1+t.length)%t.length,d(),!0);if(e.key===`Enter`||e.key===`Tab`){let e=t[r];return e?(n.command(e),!0):!1}return!1},onExit(){x(i),a=null,o=null,e?.destroy(),e=null,n=null,r=0,s!==null&&(_(s),s=null),t.reset()}}}})}function Z(e){let t=[],n=[],r=new Set,i=[];return e.state.doc.forEach(e=>{let a=``;e.forEach(e=>{if(e.type.name===`composerMention`){let i=String(e.attrs.path??``);if(i!==``&&(a+=`@${i}`,!r.has(i))){r.add(i),t.push(i);let a=String(e.attrs.label??``),o=e.attrs.mentionKind===`folder`?`folder`:`file`;n.push({kind:o,path:i,name:a===``?i:a})}}else e.type.name===`composerCommand`?a+=`/${String(e.attrs.name??``)}`:e.isText?a+=e.text??``:e.type.name===`hardBreak`&&(a+=`
7
+ `)}),i.push(a)}),{instruction:i.join(`
8
+ `).trim(),mentions:t,attachments:n}}function Q(e){let{instruction:t,mentions:n}=Z(e);return t===``&&n.length===0}function it(e){let t=e?.content;return!Array.isArray(t)||t.length===0?!1:t.some(e=>Array.isArray(e.content)&&e.content.length>0)}function at(e){return e.split(`
9
+ `).map(e=>({type:`paragraph`,content:e===``?[]:[{type:`text`,text:e}]}))}function ot(e){let t=(0,X.c)(55),{ref:n,ariaLabel:r,onEmptyChange:i,onContentChange:a,onMentionsChange:s,onSubmit:l,onEscape:u,className:d,placeholder:f,initialDoc:p,disabled:g,testId:_,slashCommands:y}=e,b=g===void 0?!1:g,{_:x}=o(),[S,ee]=(0,I.useState)(null),C=(0,I.useRef)(i),w=(0,I.useRef)(a),T=(0,I.useRef)(s),te=(0,I.useRef)(l),ne=(0,I.useRef)(u),E;t[0]!==a||t[1]!==i||t[2]!==u||t[3]!==s||t[4]!==l?(E=()=>{C.current=i,w.current=a,T.current=s,te.current=l,ne.current=u},t[0]=a,t[1]=i,t[2]=u,t[3]=s,t[4]=l,t[5]=E):E=t[5],(0,I.useEffect)(E);let D;t[6]!==f||t[7]!==y?(D=tt({placeholder:f,slashCommands:y}),t[6]=f,t[7]=y,t[8]=D):D=t[8];let re=p??void 0,O=!b,k;t[9]===_?k=t[10]:(k=_===void 0?{}:{"data-testid":_},t[9]=_,t[10]=k);let A;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(A=c(`composer-prosemirror py-1 outline-none`),t[11]=A):A=t[11];let j;t[12]!==r||t[13]!==k?(j={role:`textbox`,"aria-label":r,"aria-multiline":`true`,...k,class:A},t[12]=r,t[13]=k,t[14]=j):j=t[14];let M;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(M=(e,t)=>t.key===`Escape`?qe.getState(e.state)?.active||ke.getState(e.state)?.active?!1:ne.current===void 0?(e.dom.blur(),!0):(ne.current(),!0):t.key===`Enter`&&!t.shiftKey&&!t.isComposing&&!e.composing?(qe.getState(e.state)?.active||ke.getState(e.state)?.active)&&v(e)?!1:(te.current(),!0):!1,t[15]=M):M=t[15];let N;t[16]===j?N=t[17]:(N={attributes:j,handleKeyDown:M},t[16]=j,t[17]=N);let P;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(P=e=>{let{editor:t}=e;C.current(Q(t)),w.current?.(t.getJSON()),T.current?.(Z(t).mentions),ee(Re(ze(t),Pe(t)))},t[18]=P):P=t[18];let ie;t[19]!==N||t[20]!==D||t[21]!==re||t[22]!==O?(ie={extensions:D,content:re,immediatelyRender:!0,editable:O,editorProps:N,onUpdate:P},t[19]=N,t[20]=D,t[21]=re,t[22]=O,t[23]=ie):ie=t[23];let F=h(ie),R,z;t[24]!==r||t[25]!==F||t[26]!==f?(R=()=>{if(!F||F.isDestroyed)return;let e=F.extensionManager.extensions.find(st);e&&(e.options.placeholder=f??``);let t=F.editorView;t&&(t.dom.setAttribute(`aria-label`,r??``),t.dispatch(F.state.tr.setMeta(`addToHistory`,!1)))},z=[F,f,r],t[24]=r,t[25]=F,t[26]=f,t[27]=R,t[28]=z):(R=t[27],z=t[28]),(0,I.useEffect)(R,z);let B,ae;t[29]!==b||t[30]!==F?(B=()=>{if(!F||F.isDestroyed)return;let e=!b;F.isEditable!==e&&F.setEditable(e,!1);let t=F.editorView;t&&(b?t.dom.setAttribute(`aria-disabled`,`true`):t.dom.removeAttribute(`aria-disabled`))},ae=[F,b],t[29]=b,t[30]=F,t[31]=B,t[32]=ae):(B=t[31],ae=t[32]),(0,I.useEffect)(B,ae);let V,H;t[33]!==F||t[34]!==y?(V=()=>{if(!(!F||F.isDestroyed)){if(Fe(F,y??null)){let e=F.editorView;e&&e.dispatch(F.state.tr.setMeta(`addToHistory`,!1))}ee(Re(ze(F),Pe(F)))}},H=[F,y],t[33]=F,t[34]=y,t[35]=V,t[36]=H):(V=t[35],H=t[36]),(0,I.useEffect)(V,H);let U;t[37]!==F||t[38]!==p?(U=()=>{F&&(Q(F)&&it(p)&&(console.warn(`composer draft was incompatible with the current schema — clearing it`),we()),C.current(Q(F)),T.current?.(Z(F).mentions))},t[37]=F,t[38]=p,t[39]=U):U=t[39];let W;t[40]===F?W=t[41]:(W=[F],t[40]=F,t[41]=W),(0,I.useEffect)(U,W);let G,K;t[42]===F?(G=t[43],K=t[44]):(G=()=>({focus:()=>F?.commands.focus(),focusEnd:()=>F?.commands.focus(`end`),blur:()=>F?.commands.blur(),clear:()=>F?.commands.clearContent(!0),setText:e=>{F&&(F.commands.setContent(e),w.current?.(F.getJSON()),T.current?.(Z(F).mentions),ee(Re(ze(F),Pe(F))))},appendText:e=>{!F||e===``||(Q(F)?F.commands.setContent(at(e)):F.commands.insertContentAt(F.state.doc.content.size,[{type:`paragraph`,content:[]},...at(e)]),C.current(Q(F)),w.current?.(F.getJSON()),T.current?.(Z(F).mentions),ee(Re(ze(F),Pe(F))))},getContent:()=>F?Z(F):{instruction:``,mentions:[],attachments:[]},openMentionPicker:()=>{F&&F.chain().focus().insertContent(`@`).run()}}),K=[F],t[42]=F,t[43]=G,t[44]=K),(0,I.useImperativeHandle)(n,G,K);let q;t[45]!==d||t[46]!==F?(q=(0,L.jsx)(m,{editor:F,className:d}),t[45]=d,t[46]=F,t[47]=q):q=t[47];let J;t[48]!==x||t[49]!==y||t[50]!==S?(J=y===void 0?null:(0,L.jsx)(`p`,{className:c(`truncate px-2.5 text-xs text-muted-foreground`,S?.kind===`unknown`&&`pb-1`),"aria-live":`polite`,"aria-atomic":`true`,"data-testid":`composer-slash-hint`,children:S?.kind===`unknown`?S.agentHasCommands?x({id:`mBK8zm`,values:{0:S.name}}):x({id:`Q9AxTM`}):null}),t[48]=x,t[49]=y,t[50]=S,t[51]=J):J=t[51];let Y;return t[52]!==q||t[53]!==J?(Y=(0,L.jsxs)(L.Fragment,{children:[q,J]}),t[52]=q,t[53]=J,t[54]=Y):Y=t[54],Y}function st(e){return e.name===`placeholder`}var ct=`button, a[href], [role="menuitem"], [role="button"], input, textarea, select, [contenteditable="true"]`;function lt(e,t){if(!(e.target instanceof HTMLElement)||!(e.currentTarget instanceof HTMLElement)||!e.currentTarget.contains(e.target)||e.target.closest(ct))return;e.preventDefault();let n=t.current;n!==null&&(n.focusEnd===void 0?n.focus():n.focusEnd())}function ut(e){let t=e.lastIndexOf(`/`);return t>=0?e.slice(t+1):e}function dt(e){let t=(0,X.c)(21),{path:n,onRemove:i}=e,{_:a}=o(),s,c;t[0]!==a||t[1]!==n?(s=ut(n),c=a({id:`hnq8fP`,values:{label:s}}),t[0]=a,t[1]=n,t[2]=s,t[3]=c):(s=t[2],c=t[3]);let u=c,d=`composer-context-chip-file-${n}`,f;t[4]===i?f=t[5]:(f=e=>{(e.key===`Backspace`||e.key===`Delete`)&&(e.preventDefault(),i())},t[4]=i,t[5]=f);let p;t[6]===n?p=t[7]:(p=(0,L.jsx)(`span`,{className:`absolute top-1/2 left-1/2 inline-flex size-3 -translate-x-1/2 -translate-y-1/2 opacity-100 transition-opacity duration-150 ease-out group-hover/chip:opacity-0 group-focus-within/chip:opacity-0 motion-reduce:transition-none`,children:(0,L.jsx)(r,{path:n,className:`size-3`,showExtensionBadge:!1})}),t[6]=n,t[7]=p);let m;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,L.jsx)(F,{className:`absolute top-1/2 left-1/2 size-3 -translate-x-1/2 -translate-y-1/2 opacity-0 transition-opacity duration-150 ease-out group-hover/chip:opacity-100 group-focus-within/chip:opacity-100 motion-reduce:transition-none`,"aria-hidden":!0}),t[8]=m):m=t[8];let h;t[9]!==i||t[10]!==u||t[11]!==f||t[12]!==p?(h=(0,L.jsxs)(l,{type:`button`,variant:`ghost`,size:`icon`,"aria-label":u,onClick:i,onKeyDown:f,className:`group/remove relative size-3.5 shrink-0 rounded-sm text-muted-foreground/80 hover:text-foreground`,children:[p,m]}),t[9]=i,t[10]=u,t[11]=f,t[12]=p,t[13]=h):h=t[13];let g;t[14]===s?g=t[15]:(g=(0,L.jsx)(`span`,{className:`min-w-0 truncate`,children:s}),t[14]=s,t[15]=g);let _;return t[16]!==n||t[17]!==d||t[18]!==h||t[19]!==g?(_=(0,L.jsxs)(`span`,{"data-testid":d,title:n,className:`group/chip inline-flex max-w-[14rem] items-center gap-1 rounded-md border bg-muted/40 py-0.5 pr-1.5 pl-1 text-muted-foreground text-xs`,children:[h,g]}),t[16]=n,t[17]=d,t[18]=h,t[19]=g,t[20]=_):_=t[20],_}function ft(e){let t=(0,X.c)(13),{files:n,onRemoveFile:r,className:i,children:a}=e,o;t[0]===n?o=t[1]:(o=n===void 0?[]:n,t[0]=n,t[1]=o);let s=o;if(s.length===0&&I.Children.toArray(a).length===0)return null;let l;t[2]===i?l=t[3]:(l=c(`flex flex-wrap items-center gap-1`,i),t[2]=i,t[3]=l);let u;if(t[4]!==s||t[5]!==r){let e;t[7]===r?e=t[8]:(e=e=>(0,L.jsx)(dt,{path:e,onRemove:()=>r?.(e)},e),t[7]=r,t[8]=e),u=s.map(e),t[4]=s,t[5]=r,t[6]=u}else u=t[6];let d;return t[9]!==a||t[10]!==l||t[11]!==u?(d=(0,L.jsxs)(`div`,{className:l,"data-testid":`composer-context-chips`,children:[u,a]}),t[9]=a,t[10]=l,t[11]=u,t[12]=d):d=t[12],d}function $(e,t){let n=e[t];return typeof n==`string`&&n!==``?n:null}function pt(e){if(typeof e!=`object`||!e)return null;let t=e,n=$(t,`tool`)??$(t,`name`),r=t;if(typeof t.arguments==`object`&&t.arguments!==null)r=t.arguments;else if(typeof t.arguments==`string`)try{let e=JSON.parse(t.arguments);typeof e==`object`&&e&&(r=e)}catch{}return{tool:n,args:r}}var mt=`ok-acp-follow-file-v1`;function ht(){try{return localStorage.getItem(mt)!==`0`}catch{return!0}}function gt(e){try{localStorage.setItem(mt,e?`1`:`0`)}catch{}}function _t(e){return e===``||e.startsWith(`/`)||e.startsWith(`\\`)||e.split(`/`).some(e=>e===``||e.startsWith(`.`))?null:e}function vt(e,t){let n=t.pathSeparator,r=e=>n===`\\`?e.replaceAll(`\\`,`/`):e,i=r(t.contentDir).replace(/\/$/,``),a=r(e);if(!a.startsWith(`${i}/`))return null;let o=a.slice(i.length+1),s=/\.(md|mdx)$/.exec(o);return s===null?null:_t(o.slice(0,-s[0].length))}var yt=new Set(A);function bt(e,t,n){let r=pt(e);if(r===null)return null;let{tool:i,args:a}=r;if(i===`delete`||i===null&&/\bdelete\b/i.test(t))return null;let o=typeof a.document==`object`&&a.document!==null?a.document:null,s=null;if(Array.isArray(a.documents))for(let e=a.documents.length-1;e>=0;e--){let t=a.documents[e];if(typeof t==`object`&&t){s=t;break}}let c=(o===null?null:$(o,`path`))??(s===null?null:$(s,`path`))??$(a,`to`);if(c!==null)return _t(c.replace(/\.(md|mdx)$/,``));let l=$(a,`docName`);return l===null||!(i!==null&&yt.has(i))&&!(n===`edit`||n===`move`)?null:_t(l.replace(/\.(md|mdx)$/,``))}function xt(e,t){if(e.toolKind===`delete`)return null;let n=bt(e.rawInput,e.title,e.toolKind);if(n!==null)return n;if(t===null||e.toolKind!==`edit`&&e.toolKind!==`move`)return null;for(let n=e.locations.length-1;n>=0;n--){let r=e.locations[n];if(r===void 0)continue;let i=vt(r.path,t);if(i!==null)return i}return null}var St={lastFollowed:null,yielded:!1,reArmed:!1};function Ct(e,t,n){if(e===null||n.lastFollowed===e)return{navigateTo:null,state:n};if(n.lastFollowed!==null&&t!==null&&t!==n.lastFollowed&&t!==e&&!n.reArmed)return{navigateTo:null,state:{...n,yielded:!0}};if(n.yielded&&!n.reArmed)return{navigateTo:null,state:n};let r={lastFollowed:e,yielded:!1,reArmed:!1};return t===e?{navigateTo:null,state:r}:{navigateTo:e,state:r}}function wt(e,t){let n=null;for(let r of e){if(r.kind!==`tool_call`)continue;let e=xt(r,t);e!==null&&(n=e)}return n}function Tt(e){let t=(0,X.c)(16),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:n,value:o,max:i,indeterminateFillPercent:r,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=typeof i==`number`&&i>0?i:100,l=typeof o==`number`&&o>=0&&o<=s?o/s*100:r??0,u=Math.min(100,Math.max(0,l)),d;t[6]===n?d=t[7]:(d=c(`relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted`,n),t[6]=n,t[7]=d);let f=`translateX(-${100-u}%)`,p;t[8]===f?p=t[9]:(p=(0,L.jsx)(ue,{"data-slot":`progress-indicator`,className:`size-full flex-1 bg-primary transition-all motion-reduce:transition-none`,style:{transform:f}}),t[8]=f,t[9]=p);let m;return t[10]!==i||t[11]!==a||t[12]!==d||t[13]!==p||t[14]!==o?(m=(0,L.jsx)(le,{"data-slot":`progress`,value:o,max:i,className:d,...a,children:p}),t[10]=i,t[11]=a,t[12]=d,t[13]=p,t[14]=o,t[15]=m):m=t[15],m}export{Ce as _,wt as a,gt as c,ft as d,lt as f,Se as g,we as h,vt as i,$ as l,Te as m,St as n,ht as o,ot as p,Ct as r,_t as s,Tt as t,pt as u,de as v};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./utils-CPqDy6Hr.js";import{t as s}from"./checkbox-Bi7zk4c5.js";import{t as c}from"./label-Bbz2bT-a.js";import{n as l,t as u}from"./radio-group-BsZGGl8l.js";import{fo as d,mo as f,po as p}from"./dist-CWxNQtC52.js";import{t as m}from"./dist-BIGNzOeF2.js";import{t as h}from"./external-link-DGqXfQJy.js";import{t as g}from"./RowDisclosure-fCAaAHdQ.js";import{t as _}from"./tool-list-format-HdFmW82S.js";import{t as v}from"./ConfigSharingInfoTooltip-N4ECgZTE.js";var y=a(),b=e(n(),1),x=t();function S(e){let t=(0,y.c)(60),{detectedEditors:n,checked:a,onCheckedChange:l,disabled:u,testIdPrefix:h,itemTestIdPrefix:v}=e,{_:S}=i(),w=(0,b.useId)(),T,E,D,O,k,A,j,M,N,P;if(t[0]!==S||t[1]!==w||t[2]!==a||t[3]!==n||t[4]!==u||t[5]!==v||t[6]!==l||t[7]!==h){P=Symbol.for(`react.early_return_sentinel`);bb0:{let e=n===null?{kind:`probing`,message:S({id:`jWzDfC`})}:n.length===0?{kind:`none`,message:S({id:`aSVmqV`})}:{kind:`ready`,message:``,editors:n},i=e.kind===`ready`?`sr-only`:`rounded-md border border-border px-3 py-2.5 text-1sm text-muted-foreground`,y;t[18]===i?y=t[19]:(y=o(i),t[18]=i,t[19]=y);let b=(0,x.jsx)(`p`,{"aria-live":`polite`,className:y,"data-status":e.kind,"data-testid":`${h}-status`,children:e.message});if(e.kind!==`ready`){P=b;break bb0}let F=_(e.editors.map(C),m.locale);N=b,j=`relative overflow-hidden rounded-lg border border-border bg-card/50 px-4 py-3 hover:bg-accent`;let I;t[20]!==a||t[21]!==l?(I=()=>l(!a),t[20]=a,t[21]=l,t[22]=I):I=t[22];let L=`${h}-checkbox`,R;t[23]!==w||t[24]!==a||t[25]!==u||t[26]!==I||t[27]!==L?(R=(0,x.jsx)(s,{id:w,checked:a,onCheckedChange:I,disabled:u,"data-testid":L}),t[23]=w,t[24]=a,t[25]=u,t[26]=I,t[27]=L,t[28]=R):R=t[28];let z=`${h}-title`,B;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,x.jsx)(r,{id:`waCGTy`}),t[29]=B):B=t[29];let V;t[30]===z?V=t[31]:(V=(0,x.jsx)(`span`,{className:`flex min-w-0 flex-1 items-center gap-1.5 pe-28 text-sm font-medium text-foreground`,"data-testid":z,children:B}),t[30]=z,t[31]=V);let H;t[32]!==R||t[33]!==V?(H=(0,x.jsxs)(`span`,{className:`flex w-full items-center gap-2.5`,children:[R,V]}),t[32]=R,t[33]=V,t[34]=H):H=t[34];let U;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,x.jsx)(`span`,{className:`font-medium text-foreground`}),t[35]=U):U=t[35];let W=(0,x.jsx)(`span`,{className:`text-1sm leading-normal ps-6.5 text-muted-foreground`,"data-testid":`${h}-summary`,children:(0,x.jsx)(r,{id:`3nICSW`,values:{toolList:F},components:{0:U}})});t[36]!==w||t[37]!==H||t[38]!==W?(M=(0,x.jsxs)(c,{htmlFor:w,className:`flex min-w-0 cursor-pointer flex-col items-start gap-1 font-normal`,children:[H,W]}),t[36]=w,t[37]=H,t[38]=W,t[39]=M):M=t[39],T=g,t[40]===S?k=t[41]:(k=S({id:`uIA8mX`}),t[40]=S,t[41]=k),A=`${h}-details-toggle`,E=`flex flex-col gap-2`,D=`${h}-details`;let G;t[42]===v?G=t[43]:(G=e=>{let t=p[e],n=f[e];return(0,x.jsxs)(`li`,{className:`flex min-w-0 flex-col`,"data-testid":`${v}-${e}`,children:[(0,x.jsx)(`span`,{className:`font-medium`,children:d[e]}),t!==null&&(0,x.jsx)(`span`,{className:`wrap-break-word opacity-75`,children:(0,x.jsx)(`code`,{className:`break-all`,children:t})}),n!==null&&(0,x.jsx)(`span`,{className:`wrap-break-word opacity-75`,children:(0,x.jsx)(`code`,{className:`break-all`,children:`${n}/open-knowledge/`})})]},e)},t[42]=v,t[43]=G),O=e.editors.map(G)}t[0]=S,t[1]=w,t[2]=a,t[3]=n,t[4]=u,t[5]=v,t[6]=l,t[7]=h,t[8]=T,t[9]=E,t[10]=D,t[11]=O,t[12]=k,t[13]=A,t[14]=j,t[15]=M,t[16]=N,t[17]=P}else T=t[8],E=t[9],D=t[10],O=t[11],k=t[12],A=t[13],j=t[14],M=t[15],N=t[16],P=t[17];if(P!==Symbol.for(`react.early_return_sentinel`))return P;let F;t[44]!==E||t[45]!==D||t[46]!==O?(F=(0,x.jsx)(`ul`,{className:E,"data-testid":D,children:O}),t[44]=E,t[45]=D,t[46]=O,t[47]=F):F=t[47];let I;t[48]!==T||t[49]!==F||t[50]!==k||t[51]!==A?(I=(0,x.jsx)(T,{title:k,testId:A,children:F}),t[48]=T,t[49]=F,t[50]=k,t[51]=A,t[52]=I):I=t[52];let L;t[53]!==I||t[54]!==j||t[55]!==M?(L=(0,x.jsxs)(`div`,{className:j,children:[M,I]}),t[53]=I,t[54]=j,t[55]=M,t[56]=L):L=t[56];let R;return t[57]!==L||t[58]!==N?(R=(0,x.jsxs)(x.Fragment,{children:[N,L]}),t[57]=L,t[58]=N,t[59]=R):R=t[59],R}function C(e){return d[e]}var w=`https://openknowledge.ai/docs/reference/what-open-knowledge-writes`,T=`local-only`,E=`flex items-start gap-2 rounded-md border p-3 text-sm font-normal transition-colors cursor-pointer`;function D(e){let t=(0,y.c)(48),{value:n,onValueChange:a,disabled:s,idPrefix:d,testIdPrefix:f}=e,p=s===void 0?!1:s,{_:m}=i(),h=`${d}-sharing-shared`,g=`${d}-sharing-local-only`,_=`${d}-sharing-label`,b;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,x.jsx)(r,{id:`wtcxiD`}),t[0]=b):b=t[0];let S;t[1]===_?S=t[2]:(S=(0,x.jsx)(`span`,{id:_,className:`text-sm font-medium`,children:b}),t[1]=_,t[2]=S);let C;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,x.jsx)(v,{}),t[3]=C):C=t[3];let T;t[4]===m?T=t[5]:(T=m({id:`rCDe1d`}),t[4]=m,t[5]=T);let D=`${f}-docs-link`,A;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,x.jsx)(r,{id:`zwWKhA`}),t[6]=A):A=t[6];let j;t[7]!==T||t[8]!==D?(j=(0,x.jsx)(`a`,{href:w,target:`_blank`,rel:`noopener noreferrer`,onClick:k,onAuxClick:O,"aria-label":T,className:`ms-auto text-1sm font-normal text-muted-foreground underline decoration-dotted decoration-muted-foreground/50 underline-offset-4 transition-colors hover:text-foreground hover:decoration-foreground`,"data-testid":D,children:A}),t[7]=T,t[8]=D,t[9]=j):j=t[9];let M;t[10]!==S||t[11]!==j?(M=(0,x.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[S,C,j]}),t[10]=S,t[11]=j,t[12]=M):M=t[12];let N;t[13]===a?N=t[14]:(N=e=>a(e),t[13]=a,t[14]=N);let P=n===`local-only`?`border-primary bg-primary/5`:`border-border hover:bg-muted/40`,F;t[15]===P?F=t[16]:(F=o(E,P),t[15]=P,t[16]=F);let I=`${f}-local-only`,L;t[17]!==g||t[18]!==I?(L=(0,x.jsx)(l,{id:g,value:`local-only`,"data-testid":I,className:`mt-0.5`}),t[17]=g,t[18]=I,t[19]=L):L=t[19];let R;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,x.jsx)(`span`,{className:`block font-medium`,children:(0,x.jsx)(r,{id:`QjzFZj`})}),t[20]=R):R=t[20];let z;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,x.jsxs)(`span`,{children:[R,(0,x.jsx)(`span`,{className:`block text-1sm text-muted-foreground`,children:(0,x.jsx)(r,{id:`un-K1H`})})]}),t[21]=z):z=t[21];let B;t[22]!==g||t[23]!==F||t[24]!==L?(B=(0,x.jsxs)(c,{htmlFor:g,className:F,children:[L,z]}),t[22]=g,t[23]=F,t[24]=L,t[25]=B):B=t[25];let V=n===`shared`?`border-primary bg-primary/5`:`border-border hover:bg-muted/40`,H;t[26]===V?H=t[27]:(H=o(E,V),t[26]=V,t[27]=H);let U=`${f}-shared`,W;t[28]!==h||t[29]!==U?(W=(0,x.jsx)(l,{id:h,value:`shared`,"data-testid":U,className:`mt-0.5`}),t[28]=h,t[29]=U,t[30]=W):W=t[30];let G;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,x.jsx)(`span`,{className:`block font-medium`,children:(0,x.jsx)(r,{id:`0Gd0NU`})}),t[31]=G):G=t[31];let K;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,x.jsxs)(`span`,{children:[G,(0,x.jsx)(`span`,{className:`block text-1sm text-muted-foreground`,children:(0,x.jsx)(r,{id:`dJw2_7`})})]}),t[32]=K):K=t[32];let q;t[33]!==h||t[34]!==H||t[35]!==W?(q=(0,x.jsxs)(c,{htmlFor:h,className:H,children:[W,K]}),t[33]=h,t[34]=H,t[35]=W,t[36]=q):q=t[36];let J;t[37]!==p||t[38]!==_||t[39]!==N||t[40]!==B||t[41]!==q||t[42]!==n?(J=(0,x.jsxs)(u,{value:n,onValueChange:N,disabled:p,className:`grid-cols-2 gap-3`,"aria-labelledby":_,children:[B,q]}),t[37]=p,t[38]=_,t[39]=N,t[40]=B,t[41]=q,t[42]=n,t[43]=J):J=t[43];let Y;return t[44]!==J||t[45]!==M||t[46]!==f?(Y=(0,x.jsxs)(`div`,{className:`flex flex-col space-y-2`,"data-testid":f,children:[M,J]}),t[44]=J,t[45]=M,t[46]=f,t[47]=Y):Y=t[47],Y}function O(e){return h(e,w)}function k(e){return h(e,w)}function A(){let e=null,t=null,n=new Set,r=!1,i=null;function a(){for(let e of n)e()}function o(){e!==null&&(e=null,a())}return{install({bridge:n}){if(n&&n.onboarding)return r?i??void 0:(r=!0,t=n,i=n.onboarding.onShow(t=>{e=t,a()}),n.onboarding.signalReady(),()=>{i?.(),i=null,r=!1,t=null,o()})},getSnapshot(){return e},subscribe(e){return n.add(e),()=>{n.delete(e)}},async confirm(e){let n=t;if(!n)return{ok:!1,error:m._({id:`bEp7UY`})};try{let t=await n.onboarding.confirm(e);return t.ok&&o(),t}catch(e){return{ok:!1,error:e instanceof Error?e.message:m._({id:`29VNqC`})}}},async cancel(){let e=t;if(!e)return{ok:!1,error:m._({id:`bEp7UY`})};try{let t=await e.onboarding.cancel();return t.ok&&o(),t}catch(e){return{ok:!1,error:e instanceof Error?e.message:m._({id:`29VNqC`})}}},dismiss(){o()}}}var j=A();function M(e){return j.install(e)}function N(e,t){let n=e=>e.replace(/\\/g,`/`).replace(/\/+$/,``)||(e.startsWith(`/`)?`/`:``),r=n(e),i=n(t);if(r===i)return`.`;let a=r.endsWith(`/`)?r:`${r}/`;return i.startsWith(a)?i.slice(a.length):null}function P(e){if(e===``||e===`.`)return!0;if(e.startsWith(`/`)||/^[A-Za-z]:/.test(e))return!1;let t=e.replace(/\\/g,`/`).split(`/`),n=0;for(let e of t)if(!(e===``||e===`.`))if(e===`..`){if(--n,n<0)return!1}else n+=1;return!0}export{T as a,M as i,N as n,D as o,j as r,S as s,P as t};
@@ -0,0 +1 @@
1
+ import{o as e,t}from"./chunk-CYidjpOJ.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{t as i}from"./compiler-runtime-BfE3aGVn.js";import{Tn as a,Zi as o,wn as s}from"./dist-CWxNQtC52.js";import{t as ee}from"./dist-BIGNzOeF2.js";import{v as te}from"./documents-events-DViu97ho.js";import{t as c}from"./parse-api-error-DcnXKbfT.js";import{t as l}from"./createLucideIcon-CAkY8Blx.js";import{a as ne,r as re,t as ie}from"./page-list-cache-CEyxAohw.js";import{r as ae}from"./startup-marks-BYurBbnW.js";import{t as u}from"./documents-fetch-Bw4lKnRN.js";var d=l(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),f=l(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),p=e(r(),1),oe=i();function m(e,t){let n=!1,r=!1,i=!1;async function a(){if(!i){n=!0;try{await e()}finally{n=!1,i?r=!1:r&&(r=!1,a())}}}return{request(){if(!i){if(n){r=!0,t?.();return}a()}},dispose(){i=!0,r=!1,t?.()}}}var h=n(),g=(0,p.createContext)(null);function se(e,t){if(t.size===0)return new Set(e);let n=new Set(e);for(let e of t)n.add(e);return n}function ce(e,t){if(e.size===0)return new Set;let n=new Set;for(let r of e)t.has(r)||n.add(r);return n}function le(e,t){let n=new Map(e);for(let e of t)n.has(e)||n.set(e,e);return n}async function ue(){let e=await fetch(`/api/pages`);if(!e.ok){let t=await e.json().catch(()=>null);throw Error(c(t)??`/api/pages responded with ${e.status}`)}let t=await e.json();return Array.isArray(t.pages)?t.pages:[]}async function _(){let{ok:e,status:t,body:n}=await u();if(!e)throw Error(c(n)??`/api/documents responded with ${t}`);let r=n??{};return Array.isArray(r.documents)?{assetPaths:r.documents.filter(e=>e.kind===`asset`&&typeof e.path==`string`&&e.path.length>0).map(e=>e.path),folderPaths:r.documents.filter(e=>e.kind===`folder`&&typeof e.path==`string`&&e.path.length>0).map(e=>e.path),filePaths:r.documents.filter(e=>e.kind===`file`&&typeof e.path==`string`&&e.path.length>0).map(e=>e.path)}:{assetPaths:[],folderPaths:[],filePaths:[]}}function de(e){console.error(`[PageListContext] Failed to load pages:`,e)}function v(e){console.warn(`[PageListContext] Failed to load referenced assets:`,e)}function y(e){let t=(0,oe.c)(54),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=new Set,t[0]=r):r=t[0];let[i,c]=(0,p.useState)(r),l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=new Map,t[1]=l):l=t[1];let[u,d]=(0,p.useState)(l),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=new Map,t[2]=f):f=t[2];let[v,y]=(0,p.useState)(f),b;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(b=new Set,t[3]=b):b=t[3];let[x,S]=(0,p.useState)(b),C;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(C=new Set,t[4]=C):C=t[4];let[w,ge]=(0,p.useState)(C),T;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(T=new Set,t[5]=T):T=t[5];let[E,_e]=(0,p.useState)(T),D;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(D=new Set,t[6]=D):D=t[6];let[O,k]=(0,p.useState)(D),[A,ve]=(0,p.useState)(!0),[j,M]=(0,p.useState)(null),N=(0,p.useRef)(0),P;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(P=function(){let e=N.current+=1;return Promise.all([ue(),_().catch(he)]).then(t=>{let[n,r]=t;if(e!==N.current)return;let i=new Set(n.map(me));c(i),d(new Map(n.map(pe))),y(new Map(n.map(fe))),S(new Set(r.assetPaths)),ge(new Set(r.folderPaths)),_e(new Set(r.filePaths)),k(e=>ce(e,i)),M(null),ae()}).catch(t=>{e===N.current&&(de(t),M(t instanceof Error?t.message:ee._({id:`9Y6cCI`})))}).finally(()=>{e===N.current&&ve(!1)})},t[7]=P):P=t[7];let F=P,I;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(I=function(e){k(t=>{if(t.has(e))return t;let n=new Set(t);return n.add(e),n}),M(null)},t[8]=I):I=t[8];let ye=I,L,R;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(L=()=>{let e=m(F);e.request();let t=null,n=()=>{document.visibilityState===`visible`&&e.request()};window.addEventListener(`focus`,n),window.addEventListener(`visibilitychange`,n);let r=te(n=>{n.includes(`files`)&&t===null&&(t=setTimeout(()=>{t=null,e.request()},300))});return()=>{t!==null&&clearTimeout(t),e.dispose(),window.removeEventListener(`focus`,n),window.removeEventListener(`visibilitychange`,n),r()}},R=[],t[9]=L,t[10]=R):(L=t[9],R=t[10]),(0,p.useEffect)(L,R);let z,B,V,H,U,W,G,K;if(t[11]!==O||t[12]!==x||t[13]!==E||t[14]!==w||t[15]!==v||t[16]!==u||t[17]!==i){W=se(i,O);let e;t[26]!==O||t[27]!==u?(e=le(u,O),t[26]=O,t[27]=u,t[28]=e):e=t[28],U=e,H=v,z=x,B=E,V=new Set([...ne(W),...w]),G=a(W,o),K=s(W,o),t[11]=O,t[12]=x,t[13]=E,t[14]=w,t[15]=v,t[16]=u,t[17]=i,t[18]=z,t[19]=B,t[20]=V,t[21]=H,t[22]=U,t[23]=W,t[24]=G,t[25]=K}else z=t[18],B=t[19],V=t[20],H=t[21],U=t[22],W=t[23],G=t[24],K=t[25];let q=K,J;t[29]===v?J=t[30]:(J=ie(v),t[29]=v,t[30]=J);let Y=J,X,Z;t[31]!==z||t[32]!==B||t[33]!==V||t[34]!==Y||t[35]!==W||t[36]!==q||t[37]!==G?(X=()=>{re({pages:W,folderPaths:V,pagesBySlug:G,pagesByBasename:q,assetPaths:z,filePaths:B,pageIcons:Y})},Z=[W,V,G,q,z,B,Y],t[31]=z,t[32]=B,t[33]=V,t[34]=Y,t[35]=W,t[36]=q,t[37]=G,t[38]=X,t[39]=Z):(X=t[38],Z=t[39]),(0,p.useEffect)(X,Z);let Q;t[40]!==z||t[41]!==j||t[42]!==B||t[43]!==V||t[44]!==A||t[45]!==H||t[46]!==U||t[47]!==W||t[48]!==q||t[49]!==G?(Q={pages:W,pagesBySlug:G,pagesByBasename:q,pageTitles:U,pageMeta:H,folderPaths:V,assetPaths:z,filePaths:B,loading:A,error:j,refetch:F,addPage:ye},t[40]=z,t[41]=j,t[42]=B,t[43]=V,t[44]=A,t[45]=H,t[46]=U,t[47]=W,t[48]=q,t[49]=G,t[50]=Q):Q=t[50];let $;return t[51]!==n||t[52]!==Q?($=(0,h.jsx)(g,{value:Q,children:n}),t[51]=n,t[52]=Q,t[53]=$):$=t[53],$}function fe(e){return[e.docName,{size:e.size,modified:e.modified,docExt:e.docExt,icon:e.icon}]}function pe(e){return[e.docName,e.title]}function me(e){return e.docName}function he(e){return v(e),{assetPaths:[],folderPaths:[],filePaths:[]}}function b(){let e=(0,p.use)(g);if(!e)throw Error(`usePageList must be used within <PageListProvider />`);return e}function x(){return(0,p.use)(g)}var S=t(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),C=t(((e,t)=>{var n=S();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),w=t(((e,t)=>{t.exports=C()()}));export{m as a,b as i,y as n,f as o,x as r,d as s,w as t};
@@ -1 +1 @@
1
- import{d as e,f as t,l as n,p as r,s as i,u as a}from"./trace-api-BP9dN1Hz.js";var o=class e{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(t,n){let r=new e(this._entries);return r._entries.set(t,n),r}removeEntry(t){let n=new e(this._entries);return n._entries.delete(t),n}removeEntries(...t){let n=new e(this._entries);for(let e of t)n._entries.delete(e);return n}clear(){return new e}},s=Symbol(`BaggageEntryMetadata`),c=a.instance();function l(e={}){return new o(new Map(Object.entries(e)))}function u(e){return typeof e!=`string`&&(c.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=``),{__TYPE__:s,toString(){return e}}}var d={get(e,t){if(e!=null)return e[t]},keys(e){return e==null?[]:Object.keys(e)}},f={set(e,t,n){e!=null&&(e[t]=n)}},p=class{inject(e,t){}extract(e,t){return e}fields(){return[]}},m=n(`OpenTelemetry Baggage Key`);function h(e){return e.getValue(m)||void 0}function g(){return h(i.getInstance().active())}function _(e,t){return e.setValue(m,t)}function v(e){return e.deleteValue(m)}var y=`propagation`,b=new p,x=class n{constructor(){this.createBaggage=l,this.getBaggage=h,this.getActiveBaggage=g,this.setBaggage=_,this.deleteBaggage=v}static getInstance(){return this._instance||=new n,this._instance}setGlobalPropagator(e){return t(y,e,a.instance())}inject(e,t,n=f){return this._getGlobalPropagator().inject(e,t,n)}extract(e,t,n=d){return this._getGlobalPropagator().extract(e,t,n)}fields(){return this._getGlobalPropagator().fields()}disable(){r(y,a.instance())}_getGlobalPropagator(){return e(y)||b}}.getInstance();export{u as n,x as t};
1
+ import{d as e,f as t,l as n,p as r,s as i,u as a}from"./trace-api-BslS_6CM.js";var o=class e{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(t,n){let r=new e(this._entries);return r._entries.set(t,n),r}removeEntry(t){let n=new e(this._entries);return n._entries.delete(t),n}removeEntries(...t){let n=new e(this._entries);for(let e of t)n._entries.delete(e);return n}clear(){return new e}},s=Symbol(`BaggageEntryMetadata`),c=a.instance();function l(e={}){return new o(new Map(Object.entries(e)))}function u(e){return typeof e!=`string`&&(c.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=``),{__TYPE__:s,toString(){return e}}}var d={get(e,t){if(e!=null)return e[t]},keys(e){return e==null?[]:Object.keys(e)}},f={set(e,t,n){e!=null&&(e[t]=n)}},p=class{inject(e,t){}extract(e,t){return e}fields(){return[]}},m=n(`OpenTelemetry Baggage Key`);function h(e){return e.getValue(m)||void 0}function g(){return h(i.getInstance().active())}function _(e,t){return e.setValue(m,t)}function v(e){return e.deleteValue(m)}var y=`propagation`,b=new p,x=class n{constructor(){this.createBaggage=l,this.getBaggage=h,this.getActiveBaggage=g,this.setBaggage=_,this.deleteBaggage=v}static getInstance(){return this._instance||=new n,this._instance}setGlobalPropagator(e){return t(y,e,a.instance())}inject(e,t,n=f){return this._getGlobalPropagator().inject(e,t,n)}extract(e,t,n=d){return this._getGlobalPropagator().extract(e,t,n)}fields(){return this._getGlobalPropagator().fields()}disable(){r(y,a.instance())}_getGlobalPropagator(){return e(y)||b}}.getInstance();export{u as n,x as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-aWKxesFC.js";import{t}from"./src-D_jMrcY1.js";import{D as n,H as r,K as i,U as a,a as o,c as s,f as c,v as l,w as u,x as d,y as f,z as p}from"./chunk-I66GZJ75-BUquu3u4.js";import{t as m}from"./linear-yKfiRb8l.js";import{C as h}from"./src-DG1oemu2.js";var g=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[1,7],s=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],R=[1,63],z=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],de=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,91],U=[1,92],W=[1,93],G=[1,100],K=[1,94],q=[1,97],J=[1,95],Y=[1,96],X=[1,98],Z=[1,99],fe=[1,103],pe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],me={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[{18:n,26:1,27:2,28:r,55:i,56:a,57:o},{1:[3]},{18:n,26:8,27:2,28:r,55:i,56:a,57:o},{18:n,26:9,27:2,28:r,55:i,56:a,57:o},t(s,[2,33],{29:10}),t(c,[2,61]),t(c,[2,62]),t(c,[2,63]),{1:[2,30]},{1:[2,31]},t(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(s,[2,34]),{27:46,55:i,56:a,57:o},t(l,[2,37]),t(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,39]),t(l,[2,40]),t(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(l,[2,45]),t(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},t(B,[2,64]),t(B,[2,66]),t(B,[2,67]),t(B,[2,70]),t(B,[2,71]),t(B,[2,72]),t(B,[2,73]),t(B,[2,74]),t(B,[2,75]),t(B,[2,76]),t(B,[2,77]),t(B,[2,78]),t(B,[2,79]),t(B,[2,80]),t(B,[2,81]),t(s,[2,35]),t(l,[2,38]),t(l,[2,42]),t(l,[2,43]),t(l,[2,44]),{3:65,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:64},t(l,[2,53],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,78],63:N,64:P,65:F,66:I,67:L}),t(l,[2,56],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,79],63:N,64:P,65:F,66:I,67:L}),t(l,[2,57],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,58],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,59],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,60],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},t(B,[2,65]),t(B,[2,82]),t(B,[2,83]),t(B,[2,84]),{3:83,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,82]},t(V,[2,23]),t(V,[2,1]),t(V,[2,2]),t(V,[2,3]),t(V,[2,4]),t(V,[2,5]),t(V,[2,6]),t(V,[2,7]),t(V,[2,8]),t(V,[2,9]),t(V,[2,10]),t(V,[2,11]),t(V,[2,12]),t(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:89,23:88},t(V,[2,24]),t(l,[2,51],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,54],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,47],{22:89,16:90,23:101,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,102]},t(l,[2,29],{10:fe}),t(pe,[2,27],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),t(Q,[2,25]),t(Q,[2,13]),t(Q,[2,14]),t(Q,[2,15]),t(Q,[2,16]),t(Q,[2,17]),t(Q,[2,18]),t(Q,[2,19]),t(Q,[2,20]),t(Q,[2,21]),t(Q,[2,22]),t(l,[2,49],{10:fe}),t(l,[2,48],{22:89,16:90,23:105,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:106},t(Q,[2,26]),t(l,[2,50],{10:fe}),t(pe,[2,28],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},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-aWKxesFC.js";import{t}from"./src-D_jMrcY1.js";import{D as n,H as r,K as i,U as a,a as o,c as s,f as c,v as l,w as u,x as d,y as f,z as p}from"./chunk-I66GZJ75-DdvvFHYK.js";import{t as m}from"./linear-yKfiRb8l.js";import{C as h}from"./src-DG1oemu2.js";var g=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[1,7],s=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],R=[1,63],z=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],de=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,91],U=[1,92],W=[1,93],G=[1,100],K=[1,94],q=[1,97],J=[1,95],Y=[1,96],X=[1,98],Z=[1,99],fe=[1,103],pe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],me={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[{18:n,26:1,27:2,28:r,55:i,56:a,57:o},{1:[3]},{18:n,26:8,27:2,28:r,55:i,56:a,57:o},{18:n,26:9,27:2,28:r,55:i,56:a,57:o},t(s,[2,33],{29:10}),t(c,[2,61]),t(c,[2,62]),t(c,[2,63]),{1:[2,30]},{1:[2,31]},t(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(s,[2,34]),{27:46,55:i,56:a,57:o},t(l,[2,37]),t(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,39]),t(l,[2,40]),t(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(l,[2,45]),t(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},t(B,[2,64]),t(B,[2,66]),t(B,[2,67]),t(B,[2,70]),t(B,[2,71]),t(B,[2,72]),t(B,[2,73]),t(B,[2,74]),t(B,[2,75]),t(B,[2,76]),t(B,[2,77]),t(B,[2,78]),t(B,[2,79]),t(B,[2,80]),t(B,[2,81]),t(s,[2,35]),t(l,[2,38]),t(l,[2,42]),t(l,[2,43]),t(l,[2,44]),{3:65,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:64},t(l,[2,53],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,78],63:N,64:P,65:F,66:I,67:L}),t(l,[2,56],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,79],63:N,64:P,65:F,66:I,67:L}),t(l,[2,57],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,58],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,59],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,60],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},t(B,[2,65]),t(B,[2,82]),t(B,[2,83]),t(B,[2,84]),{3:83,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,82]},t(V,[2,23]),t(V,[2,1]),t(V,[2,2]),t(V,[2,3]),t(V,[2,4]),t(V,[2,5]),t(V,[2,6]),t(V,[2,7]),t(V,[2,8]),t(V,[2,9]),t(V,[2,10]),t(V,[2,11]),t(V,[2,12]),t(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:89,23:88},t(V,[2,24]),t(l,[2,51],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,54],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,47],{22:89,16:90,23:101,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,102]},t(l,[2,29],{10:fe}),t(pe,[2,27],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),t(Q,[2,25]),t(Q,[2,13]),t(Q,[2,14]),t(Q,[2,15]),t(Q,[2,16]),t(Q,[2,17]),t(Q,[2,18]),t(Q,[2,19]),t(Q,[2,20]),t(Q,[2,21]),t(Q,[2,22]),t(l,[2,49],{10:fe}),t(l,[2,48],{22:89,16:90,23:105,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:106},t(Q,[2,26]),t(l,[2,50],{10:fe}),t(pe,[2,28],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},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`)};me.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()+`
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./utils-CPqDy6Hr.js";import{a}from"./dist-mv8e6dBX.js";import{c as o,i as s,l as c,o as l,r as u}from"./dist-DsLZcVyZ.js";import{t as d}from"./dist-gTGB_-tT.js";import{t as f}from"./dist-Cm417ZCm.js";import{t as p}from"./dist-DJUH3LhV.js";import{n as m,r as h,t as g}from"./dist-BcWdMddd.js";var _=e(n(),1),v=t(),y=`Radio`,[b,x]=o(y),[S,C]=b(y),w=_.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:i=!1,required:o,disabled:s,value:u=`on`,onCheck:d,form:f,...p}=e,[m,h]=_.useState(null),g=a(t,e=>h(e)),y=_.useRef(!1),b=m?f||!!m.closest(`form`):!0;return(0,v.jsxs)(S,{scope:n,checked:i,disabled:s,children:[(0,v.jsx)(c.button,{type:`button`,role:`radio`,"aria-checked":i,"data-state":k(i),"data-disabled":s?``:void 0,disabled:s,value:u,...p,ref:g,onClick:l(e.onClick,e=>{i||d?.(),b&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})}),b&&(0,v.jsx)(O,{control:m,bubbles:!y.current,name:r,value:u,checked:i,required:o,disabled:s,form:f,style:{transform:`translateX(-100%)`}})]})});w.displayName=y;var T=`RadioIndicator`,E=_.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=C(T,n);return(0,v.jsx)(u,{present:r||a.checked,children:(0,v.jsx)(c.span,{"data-state":k(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})})});E.displayName=T;var D=`RadioBubbleInput`,O=_.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...i},o)=>{let s=_.useRef(null),l=a(s,o),u=f(n),d=p(t);return _.useEffect(()=>{let e=s.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(u!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[u,n,r]),(0,v.jsx)(c.input,{type:`radio`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:l,style:{...i.style,...d,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});O.displayName=D;function k(e){return e?`checked`:`unchecked`}var A=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],j=`RadioGroup`,[M,N]=o(j,[h,x]),P=h(),F=x(),[I,L]=M(j),R=_.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:l=!1,orientation:u,dir:f,loop:p=!0,onValueChange:h,...g}=e,_=P(n),y=d(f),[b,x]=s({prop:a,defaultProp:i??null,onChange:h,caller:j});return(0,v.jsx)(I,{scope:n,name:r,required:o,disabled:l,value:b,onValueChange:x,children:(0,v.jsx)(m,{asChild:!0,..._,orientation:u,dir:y,loop:p,children:(0,v.jsx)(c.div,{role:`radiogroup`,"aria-required":o,"aria-orientation":u,"data-disabled":l?``:void 0,dir:y,...g,ref:t})})})});R.displayName=j;var z=`RadioGroupItem`,B=_.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=L(z,n),s=o.disabled||r,c=P(n),u=F(n),d=_.useRef(null),f=a(t,d),p=o.value===i.value,m=_.useRef(!1);return _.useEffect(()=>{let e=e=>{A.includes(e.key)&&(m.current=!0)},t=()=>m.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,v.jsx)(g,{asChild:!0,...c,focusable:!s,active:p,children:(0,v.jsx)(w,{disabled:s,required:o.required,checked:p,...u,...i,name:o.name,ref:f,onCheck:()=>o.onValueChange(i.value),onKeyDown:l(e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:l(i.onFocus,()=>{m.current&&d.current?.click()})})})});B.displayName=z;var V=`RadioGroupIndicator`,H=_.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,v.jsx)(E,{...F(n),...r,ref:t})});H.displayName=V;var U=R,W=B,G=H,K=r();function q(e){let t=(0,K.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`grid w-full gap-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,v.jsx)(U,{"data-slot":`radio-group`,className:a,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function J(e){let t=(0,K.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary`,n),t[3]=n,t[4]=a);let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,v.jsx)(G,{"data-slot":`radio-group-indicator`,className:`flex size-4 items-center justify-center`,children:(0,v.jsx)(`span`,{className:`absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground`})}),t[5]=o):o=t[5];let s;return t[6]!==r||t[7]!==a?(s=(0,v.jsx)(W,{"data-slot":`radio-group-item`,className:a,...r,children:o}),t[6]=r,t[7]=a,t[8]=s):s=t[8],s}export{J as n,W as r,q as t};
@@ -1 +1 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-aWKxesFC.js";import{t}from"./src-D_jMrcY1.js";import"./chunk-I66GZJ75-BUquu3u4.js";import"./chunk-3NCLNEKW-CIPZUTs2.js";import{n}from"./chunk-5TONJI2A-B7ADGJ95.js";import{n as r,r as i,t as a}from"./chunk-6Q2QTUOP-HonjM1WC.js";import{t as o}from"./chunk-JWPE2WC7-D5w3_tHx.js";import{t as s}from"./mermaid-parser.core-CmtFEtdo.js";var c=n().Railroad.parser.LangiumParser,l=e(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(l);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(l);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:l(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),u=e(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),d=e(e=>{o(e,a),e.title&&a.setTitle(e.title),e.rules.map(e=>a.addRule(u(e)))},`populateDb`),f={parser:{parse:e(e=>{a.clear(),t.debug(`[Railroad Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new s(n);let r=n.value;t.debug(`[Railroad Parser] Parsed rules:`,r.rules.length),d(r),t.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:a}},db:a,renderer:i,styles:r};export{f as diagram};
1
+ import{n as e}from"./chunk-Y2CYZVJY-aWKxesFC.js";import{t}from"./src-D_jMrcY1.js";import"./chunk-I66GZJ75-DdvvFHYK.js";import"./chunk-3NCLNEKW-BYKJOcB6.js";import{n}from"./chunk-5TONJI2A-B7ADGJ95.js";import{n as r,r as i,t as a}from"./chunk-6Q2QTUOP-uZ1QaaTd.js";import{t as o}from"./chunk-JWPE2WC7-D5w3_tHx.js";import{t as s}from"./mermaid-parser.core-CmtFEtdo.js";var c=n().Railroad.parser.LangiumParser,l=e(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(l);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(l);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:l(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),u=e(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),d=e(e=>{o(e,a),e.title&&a.setTitle(e.title),e.rules.map(e=>a.addRule(u(e)))},`populateDb`),f={parser:{parse:e(e=>{a.clear(),t.debug(`[Railroad Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new s(n);let r=n.value;t.debug(`[Railroad Parser] Parsed rules:`,r.rules.length),d(r),t.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:a}},db:a,renderer:i,styles:r};export{f as diagram};
@@ -1,2 +1,2 @@
1
- import{kn as e}from"./dist-C_QZEaeX.js";import{t}from"./dist-Cr4-nBVI.js";function n(t){return e(t)}function r(e,n){let r=n.owner,i=n.repo,a=n.host;switch(e.kind){case`ok`:return null;case`not-git`:return t._({id:`K-NcyU`});case`wrong-repo`:{let n=e.actualOwner,a=e.actualRepo;return t._({id:`Z0W6SO`,values:{actualOwner:n,actualRepo:a,expectedOwner:r,expectedRepo:i}})}case`wrong-host`:{let n=e.actualHost;return t._({id:`zzGe8L`,values:{expectedOwner:r,expectedRepo:i,actualHost:n,expectedHost:a}})}case`no-origin`:case`non-github`:case`symlink-escape`:return t._({id:`wFJbVM`,values:{expectedOwner:r,expectedRepo:i}})}}function i(e){return e.kind===`unsupported-version`?{kind:`unsupported-version`,message:t._({id:`KjTmeO`})}:e.kind===`invalid`?{kind:`invalid`,message:t._({id:`rENNI6`})}:null}function a(e){let t=e.split(`
1
+ import{On as e}from"./dist-CWxNQtC52.js";import{t}from"./dist-BIGNzOeF2.js";function n(t){return e(t)}function r(e,n){let r=n.owner,i=n.repo,a=n.host;switch(e.kind){case`ok`:return null;case`not-git`:return t._({id:`K-NcyU`});case`wrong-repo`:{let n=e.actualOwner,a=e.actualRepo;return t._({id:`Z0W6SO`,values:{actualOwner:n,actualRepo:a,expectedOwner:r,expectedRepo:i}})}case`wrong-host`:{let n=e.actualHost;return t._({id:`zzGe8L`,values:{expectedOwner:r,expectedRepo:i,actualHost:n,expectedHost:a}})}case`no-origin`:case`non-github`:case`symlink-escape`:return t._({id:`wFJbVM`,values:{expectedOwner:r,expectedRepo:i}})}}function i(e){return e.kind===`unsupported-version`?{kind:`unsupported-version`,message:t._({id:`KjTmeO`})}:e.kind===`invalid`?{kind:`invalid`,message:t._({id:`rENNI6`})}:null}function a(e){let t=e.split(`
2
2
  `).map(e=>e.trim()).filter(e=>e.length>0&&!/^Cloning into /i.test(e)),n=t.filter(e=>/^remote:/i.test(e)),r=n[n.length-1];if(r)return r.replace(/^remote:\s*/i,``).trim();let i=t.find(e=>/^fatal:/i.test(e));return i?i.replace(/^fatal:\s*/i,``).trim():t[0]??``}function o(e){let t=[`[receive]`];return e.q2_path!==void 0&&t.push(`q2_path=${e.q2_path}`),e.folder_validate!==void 0&&t.push(`folder_validate=${e.folder_validate}`),e.branch_action!==void 0&&t.push(`branch_action=${e.branch_action}`),e.branch!==void 0&&t.push(`branch=${e.branch}`),e.doc_check!==void 0&&t.push(`doc_check=${e.doc_check}`),e.branch_dialog_action!==void 0&&t.push(`branch_dialog_action=${e.branch_dialog_action}`),e.verdict_cell!==void 0&&t.push(`verdict_cell=${e.verdict_cell}`),t.join(` `)}function s(){let e=null,t=new Set,n=!1,r=null;function i(){for(let e of t)e()}function a(){e!==null&&(e=null,i())}return{install({bridge:t}){if(t)return n?r??void 0:(n=!0,r=t.onShareReceived(t=>{e=t,i()}),()=>{r?.(),r=null,n=!1,a()})},getSnapshot(){return e},subscribe(e){return t.add(e),()=>{t.delete(e)}},dismiss(){a()}}}var c=s();function l(e){return c.install(e)}export{o as a,a as i,c as n,r as o,n as r,i as s,l as t};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-BulbvLvN.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-CAkY8Blx.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
@@ -1,4 +1,4 @@
1
- import{n as e,t}from"./chunk-Y2CYZVJY-aWKxesFC.js";import{t as n}from"./src-D_jMrcY1.js";import{H as r,K as i,U as a,a as o,b as s,v as c,w as l,x as u,y as d}from"./chunk-I66GZJ75-BUquu3u4.js";import{g as f}from"./chunk-NSK5VX7P-BW0NvKtJ.js";import"./chunk-W5SLKNZC-9q5ZT0Or.js";import"./chunk-UBXNYLIW-xJmEmvG8.js";import"./chunk-4I5QYGJK-CJSo7JWo.js";import"./chunk-WRU74C26-DEuLBlab.js";import"./chunk-QR6OTTB3-BAd_wKMz.js";import"./chunk-7BUUIJ7U-DEVgK4C5.js";import"./chunk-7Z6QIM7H-C7MoQiZ1.js";import{r as p,t as m}from"./chunk-J7OUQ5F2-D_xZJOyH.js";import{t as h}from"./chunk-XXDRQBXY-Bwmq4E1Q.js";import{t as g}from"./chunk-KBJHAD2P-D4Yduc8o.js";var _=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],s=[1,22],c=[2,7],l=[1,26],u=[1,27],d=[1,28],f=[1,29],p=[1,33],m=[1,34],h=[1,35],g=[1,36],_=[1,37],v=[1,38],y=[1,24],b=[1,31],x=[1,32],S=[1,30],C=[1,39],w=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],D=[89,90],O=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],k=[27,29],ee=[1,70],A=[1,71],te=[1,72],ne=[1,73],re=[1,74],ie=[1,75],ae=[1,76],j=[1,83],M=[1,80],N=[1,84],P=[1,85],F=[1,86],I=[1,87],L=[1,88],R=[1,89],z=[1,90],B=[1,91],V=[1,92],oe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],H=[63,64],se=[1,101],ce=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],U=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],W=[1,110],G=[1,106],K=[1,107],q=[1,108],J=[1,109],Y=[1,111],X=[1,116],Z=[1,117],Q=[1,114],$=[1,115],le={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:`error`,5:`NEWLINE`,6:`RD`,8:`EOF`,9:`acc_title`,10:`acc_title_value`,11:`acc_descr`,12:`acc_descr_value`,13:`acc_descr_multiline_value`,21:`direction_tb`,22:`direction_bt`,23:`direction_rl`,24:`direction_lr`,27:`STRUCT_START`,29:`STYLE_SEPARATOR`,31:`ID`,32:`COLONSEP`,34:`TEXT`,36:`RISK`,38:`VERIFYMTHD`,40:`STRUCT_STOP`,41:`REQUIREMENT`,42:`FUNCTIONAL_REQUIREMENT`,43:`INTERFACE_REQUIREMENT`,44:`PERFORMANCE_REQUIREMENT`,45:`PHYSICAL_REQUIREMENT`,46:`DESIGN_CONSTRAINT`,47:`LOW_RISK`,48:`MED_RISK`,49:`HIGH_RISK`,50:`VERIFY_ANALYSIS`,51:`VERIFY_DEMONSTRATION`,52:`VERIFY_INSPECTION`,53:`VERIFY_TEST`,54:`ELEMENT`,57:`TYPE`,59:`DOCREF`,61:`END_ARROW_L`,63:`LINE`,64:`END_ARROW_R`,65:`CONTAINS`,66:`COPIES`,67:`DERIVES`,68:`SATISFIES`,69:`VERIFIES`,70:`REFINES`,71:`TRACES`,72:`CLASSDEF`,74:`CLASS`,75:`ALPHA`,76:`COMMA`,77:`STYLE`,80:`NUM`,81:`COLON`,82:`UNIT`,83:`SPACE`,84:`BRKT`,85:`PCT`,86:`MINUS`,87:`LABEL`,88:`SEMICOLON`,89:`unqString`,90:`qString`},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection(`TB`);break;case 18:r.setDirection(`BT`);break;case 19:r.setDirection(`RL`);break;case 20:r.setDirection(`LR`);break;case 21:r.addRequirement(a[s-3],a[s-4]);break;case 22:r.addRequirement(a[s-5],a[s-6]),r.setClass([a[s-5]],a[s-3]);break;case 23:r.setNewReqId(a[s-2]);break;case 24:r.setNewReqText(a[s-2]);break;case 25:r.setNewReqRisk(a[s-2]);break;case 26:r.setNewReqVerifyMethod(a[s-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(a[s-3]);break;case 43:r.addElement(a[s-5]),r.setClass([a[s-5]],a[s-3]);break;case 44:r.setNewElementType(a[s-2]);break;case 45:r.setNewElementDocRef(a[s-2]);break;case 48:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 49:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 58:r.setClass(a[s-1],a[s]);break;case 59:r.setClass([a[s-2]],a[s]);break;case 60:case 62:this.$=[a[s]];break;case 61:case 63:this.$=a[s-2].concat([a[s]]);break;case 64:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 65:this.$=[a[s]];break;case 66:a[s-2].push(a[s]),this.$=a[s-2];break;case 68:this.$=a[s-1]+a[s];break}},`anonymous`),table:[{3:1,4:2,6:n,9:r,11:i,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:n,9:r,11:i,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(o,[2,6]),{3:12,4:2,6:n,9:r,11:i,13:a},{1:[2,2]},{4:17,5:s,7:13,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},t(o,[2,4]),t(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:s,7:42,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:43,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:44,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:45,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:46,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:47,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:48,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:49,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:50,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},t(T,[2,17]),t(T,[2,18]),t(T,[2,19]),t(T,[2,20]),{30:60,33:62,75:E,89:C,90:w},{30:63,33:62,75:E,89:C,90:w},{30:64,33:62,75:E,89:C,90:w},t(D,[2,29]),t(D,[2,30]),t(D,[2,31]),t(D,[2,32]),t(D,[2,33]),t(D,[2,34]),t(O,[2,81]),t(O,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},t(k,[2,79]),t(k,[2,80]),{27:[1,67],29:[1,68]},t(k,[2,85]),t(k,[2,86]),{62:69,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{62:77,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{30:78,33:62,75:E,89:C,90:w},{73:79,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},t(oe,[2,60]),t(oe,[2,62]),{73:93,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},{30:94,33:62,75:E,76:M,89:C,90:w},{5:[1,95]},{30:96,33:62,75:E,89:C,90:w},{5:[1,97]},{30:98,33:62,75:E,89:C,90:w},{63:[1,99]},t(H,[2,50]),t(H,[2,51]),t(H,[2,52]),t(H,[2,53]),t(H,[2,54]),t(H,[2,55]),t(H,[2,56]),{64:[1,100]},t(T,[2,59],{76:M}),t(T,[2,64],{76:se}),{33:103,75:[1,102],89:C,90:w},t(ce,[2,65],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),t(U,[2,67]),t(U,[2,69]),t(U,[2,70]),t(U,[2,71]),t(U,[2,72]),t(U,[2,73]),t(U,[2,74]),t(U,[2,75]),t(U,[2,76]),t(U,[2,77]),t(U,[2,78]),t(T,[2,57],{76:se}),t(T,[2,58],{76:M}),{5:W,28:105,31:G,34:K,36:q,38:J,40:Y},{27:[1,112],76:M},{5:X,40:Z,56:113,57:Q,59:$},{27:[1,118],76:M},{33:119,89:C,90:w},{33:120,89:C,90:w},{75:j,78:121,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},t(oe,[2,61]),t(oe,[2,63]),t(U,[2,68]),t(T,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:W,28:126,31:G,34:K,36:q,38:J,40:Y},t(T,[2,28]),{5:[1,127]},t(T,[2,42]),{32:[1,128]},{32:[1,129]},{5:X,40:Z,56:130,57:Q,59:$},t(T,[2,47]),{5:[1,131]},t(T,[2,48]),t(T,[2,49]),t(ce,[2,66],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),{33:132,89:C,90:w},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},t(T,[2,27]),{5:W,28:145,31:G,34:K,36:q,38:J,40:Y},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},t(T,[2,46]),{5:X,40:Z,56:152,57:Q,59:$},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},t(T,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},t(T,[2,43]),{5:W,28:159,31:G,34:K,36:q,38:J,40:Y},{5:W,28:160,31:G,34:K,36:q,38:J,40:Y},{5:W,28:161,31:G,34:K,36:q,38:J,40:Y},{5:W,28:162,31:G,34:K,36:q,38:J,40:Y},{5:X,40:Z,56:163,57:Q,59:$},{5:X,40:Z,56:164,57:Q,59:$},t(T,[2,23]),t(T,[2,24]),t(T,[2,25]),t(T,[2,26]),t(T,[2,44]),t(T,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},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,ee,A;;){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 te=``;for(O in A=[],s[w])this.terminals_[O]&&O>f&&A.push(`'`+this.terminals_[O]+`'`);te=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{n as e,t}from"./chunk-Y2CYZVJY-aWKxesFC.js";import{t as n}from"./src-D_jMrcY1.js";import{H as r,K as i,U as a,a as o,b as s,v as c,w as l,x as u,y as d}from"./chunk-I66GZJ75-DdvvFHYK.js";import{g as f}from"./chunk-NSK5VX7P-Cm6rtpZw.js";import"./chunk-W5SLKNZC-DuVZK-DG.js";import"./chunk-UBXNYLIW-tLiyG5ZI.js";import"./chunk-4I5QYGJK-DRvkWpJa.js";import"./chunk-WRU74C26-1154g7A6.js";import"./chunk-QR6OTTB3-CdcXCJoC.js";import"./chunk-7BUUIJ7U-DEVgK4C5.js";import"./chunk-7Z6QIM7H-BaiL4HQb.js";import{r as p,t as m}from"./chunk-J7OUQ5F2-Dkai_3ry.js";import{t as h}from"./chunk-XXDRQBXY-Bwmq4E1Q.js";import{t as g}from"./chunk-KBJHAD2P-Cu02YobZ.js";var _=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],s=[1,22],c=[2,7],l=[1,26],u=[1,27],d=[1,28],f=[1,29],p=[1,33],m=[1,34],h=[1,35],g=[1,36],_=[1,37],v=[1,38],y=[1,24],b=[1,31],x=[1,32],S=[1,30],C=[1,39],w=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],D=[89,90],O=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],k=[27,29],ee=[1,70],A=[1,71],te=[1,72],ne=[1,73],re=[1,74],ie=[1,75],ae=[1,76],j=[1,83],M=[1,80],N=[1,84],P=[1,85],F=[1,86],I=[1,87],L=[1,88],R=[1,89],z=[1,90],B=[1,91],V=[1,92],oe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],H=[63,64],se=[1,101],ce=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],U=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],W=[1,110],G=[1,106],K=[1,107],q=[1,108],J=[1,109],Y=[1,111],X=[1,116],Z=[1,117],Q=[1,114],$=[1,115],le={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:`error`,5:`NEWLINE`,6:`RD`,8:`EOF`,9:`acc_title`,10:`acc_title_value`,11:`acc_descr`,12:`acc_descr_value`,13:`acc_descr_multiline_value`,21:`direction_tb`,22:`direction_bt`,23:`direction_rl`,24:`direction_lr`,27:`STRUCT_START`,29:`STYLE_SEPARATOR`,31:`ID`,32:`COLONSEP`,34:`TEXT`,36:`RISK`,38:`VERIFYMTHD`,40:`STRUCT_STOP`,41:`REQUIREMENT`,42:`FUNCTIONAL_REQUIREMENT`,43:`INTERFACE_REQUIREMENT`,44:`PERFORMANCE_REQUIREMENT`,45:`PHYSICAL_REQUIREMENT`,46:`DESIGN_CONSTRAINT`,47:`LOW_RISK`,48:`MED_RISK`,49:`HIGH_RISK`,50:`VERIFY_ANALYSIS`,51:`VERIFY_DEMONSTRATION`,52:`VERIFY_INSPECTION`,53:`VERIFY_TEST`,54:`ELEMENT`,57:`TYPE`,59:`DOCREF`,61:`END_ARROW_L`,63:`LINE`,64:`END_ARROW_R`,65:`CONTAINS`,66:`COPIES`,67:`DERIVES`,68:`SATISFIES`,69:`VERIFIES`,70:`REFINES`,71:`TRACES`,72:`CLASSDEF`,74:`CLASS`,75:`ALPHA`,76:`COMMA`,77:`STYLE`,80:`NUM`,81:`COLON`,82:`UNIT`,83:`SPACE`,84:`BRKT`,85:`PCT`,86:`MINUS`,87:`LABEL`,88:`SEMICOLON`,89:`unqString`,90:`qString`},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection(`TB`);break;case 18:r.setDirection(`BT`);break;case 19:r.setDirection(`RL`);break;case 20:r.setDirection(`LR`);break;case 21:r.addRequirement(a[s-3],a[s-4]);break;case 22:r.addRequirement(a[s-5],a[s-6]),r.setClass([a[s-5]],a[s-3]);break;case 23:r.setNewReqId(a[s-2]);break;case 24:r.setNewReqText(a[s-2]);break;case 25:r.setNewReqRisk(a[s-2]);break;case 26:r.setNewReqVerifyMethod(a[s-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(a[s-3]);break;case 43:r.addElement(a[s-5]),r.setClass([a[s-5]],a[s-3]);break;case 44:r.setNewElementType(a[s-2]);break;case 45:r.setNewElementDocRef(a[s-2]);break;case 48:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 49:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 58:r.setClass(a[s-1],a[s]);break;case 59:r.setClass([a[s-2]],a[s]);break;case 60:case 62:this.$=[a[s]];break;case 61:case 63:this.$=a[s-2].concat([a[s]]);break;case 64:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 65:this.$=[a[s]];break;case 66:a[s-2].push(a[s]),this.$=a[s-2];break;case 68:this.$=a[s-1]+a[s];break}},`anonymous`),table:[{3:1,4:2,6:n,9:r,11:i,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:n,9:r,11:i,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(o,[2,6]),{3:12,4:2,6:n,9:r,11:i,13:a},{1:[2,2]},{4:17,5:s,7:13,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},t(o,[2,4]),t(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:s,7:42,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:43,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:44,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:45,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:46,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:47,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:48,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:49,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:50,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},t(T,[2,17]),t(T,[2,18]),t(T,[2,19]),t(T,[2,20]),{30:60,33:62,75:E,89:C,90:w},{30:63,33:62,75:E,89:C,90:w},{30:64,33:62,75:E,89:C,90:w},t(D,[2,29]),t(D,[2,30]),t(D,[2,31]),t(D,[2,32]),t(D,[2,33]),t(D,[2,34]),t(O,[2,81]),t(O,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},t(k,[2,79]),t(k,[2,80]),{27:[1,67],29:[1,68]},t(k,[2,85]),t(k,[2,86]),{62:69,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{62:77,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{30:78,33:62,75:E,89:C,90:w},{73:79,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},t(oe,[2,60]),t(oe,[2,62]),{73:93,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},{30:94,33:62,75:E,76:M,89:C,90:w},{5:[1,95]},{30:96,33:62,75:E,89:C,90:w},{5:[1,97]},{30:98,33:62,75:E,89:C,90:w},{63:[1,99]},t(H,[2,50]),t(H,[2,51]),t(H,[2,52]),t(H,[2,53]),t(H,[2,54]),t(H,[2,55]),t(H,[2,56]),{64:[1,100]},t(T,[2,59],{76:M}),t(T,[2,64],{76:se}),{33:103,75:[1,102],89:C,90:w},t(ce,[2,65],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),t(U,[2,67]),t(U,[2,69]),t(U,[2,70]),t(U,[2,71]),t(U,[2,72]),t(U,[2,73]),t(U,[2,74]),t(U,[2,75]),t(U,[2,76]),t(U,[2,77]),t(U,[2,78]),t(T,[2,57],{76:se}),t(T,[2,58],{76:M}),{5:W,28:105,31:G,34:K,36:q,38:J,40:Y},{27:[1,112],76:M},{5:X,40:Z,56:113,57:Q,59:$},{27:[1,118],76:M},{33:119,89:C,90:w},{33:120,89:C,90:w},{75:j,78:121,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},t(oe,[2,61]),t(oe,[2,63]),t(U,[2,68]),t(T,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:W,28:126,31:G,34:K,36:q,38:J,40:Y},t(T,[2,28]),{5:[1,127]},t(T,[2,42]),{32:[1,128]},{32:[1,129]},{5:X,40:Z,56:130,57:Q,59:$},t(T,[2,47]),{5:[1,131]},t(T,[2,48]),t(T,[2,49]),t(ce,[2,66],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),{33:132,89:C,90:w},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},t(T,[2,27]),{5:W,28:145,31:G,34:K,36:q,38:J,40:Y},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},t(T,[2,46]),{5:X,40:Z,56:152,57:Q,59:$},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},t(T,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},t(T,[2,43]),{5:W,28:159,31:G,34:K,36:q,38:J,40:Y},{5:W,28:160,31:G,34:K,36:q,38:J,40:Y},{5:W,28:161,31:G,34:K,36:q,38:J,40:Y},{5:W,28:162,31:G,34:K,36:q,38:J,40:Y},{5:X,40:Z,56:163,57:Q,59:$},{5:X,40:Z,56:164,57:Q,59:$},t(T,[2,23]),t(T,[2,24]),t(T,[2,25]),t(T,[2,26]),t(T,[2,44]),t(T,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},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,ee,A;;){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 te=``;for(O in A=[],s[w])this.terminals_[O]&&O>f&&A.push(`'`+this.terminals_[O]+`'`);te=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+A.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(te,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:A})}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._$),ee=s[r[r.length-2]][r[r.length-1]],r.push(ee);break;case 3:return!0}}return!0},`parse`)};le.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()+`
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-CAkY8Blx.js";var t=e(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]);export{t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-aWKxesFC.js";import"./src-D_jMrcY1.js";import{H as t,J as n,K as r,U as i,a,d as o,s,v as c,w as l,x as u,y as d}from"./chunk-I66GZJ75-BUquu3u4.js";import{t as f}from"./ordinal-B960F-5k.js";import{C as p}from"./src-DG1oemu2.js";import{t as m}from"./colors-B42OMeyx.js";var h=m(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`);function g(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function _(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function v(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function y(e){return e.target.depth}function b(e){return e.depth}function x(e,t){return t-1-e.height}function S(e,t){return e.sourceLinks.length?e.depth:t-1}function C(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?_(e.sourceLinks,y)-1:0}function w(e){return function(){return e}}function T(e,t){return D(e.source,t.source)||e.index-t.index}function E(e,t){return D(e.target,t.target)||e.index-t.index}function D(e,t){return e.y0-t.y0}function O(e){return e.value}function k(e){return e.index}function A(e){return e.nodes}function j(e){return e.links}function M(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function N({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function P(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=k,c=S,l,u,d=A,f=j,p=6;function m(){let e={nodes:d.apply(null,arguments),links:f.apply(null,arguments)};return h(e),y(e),b(e),x(e),F(e),N(e),e}m.update=function(e){return N(e),e},m.nodeId=function(e){return arguments.length?(s=typeof e==`function`?e:w(e),m):s},m.nodeAlign=function(e){return arguments.length?(c=typeof e==`function`?e:w(e),m):c},m.nodeSort=function(e){return arguments.length?(l=e,m):l},m.nodeWidth=function(e){return arguments.length?(i=+e,m):i},m.nodePadding=function(e){return arguments.length?(a=o=+e,m):a},m.nodes=function(e){return arguments.length?(d=typeof e==`function`?e:w(e),m):d},m.links=function(e){return arguments.length?(f=typeof e==`function`?e:w(e),m):f},m.linkSort=function(e){return arguments.length?(u=e,m):u},m.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],m):[n-e,r-t]},m.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],m):[[e,t],[n,r]]},m.iterations=function(e){return arguments.length?(p=+e,m):p};function h({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[s(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=M(n,t)),typeof i!=`object`&&(i=r.target=M(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(u!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(u),n.sort(u)}function y({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(v(t.sourceLinks,O),v(t.targetLinks,O)):t.fixedValue}function b({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function x({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function C({nodes:t}){let r=g(t,e=>e.depth)+1,a=(n-e-i)/(r-1),o=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(c.call(null,n,r))));n.layer=t,n.x0=e+t*a,n.x1=n.x0+i,o[t]?o[t].push(n):o[t]=[n]}if(l)for(let e of o)e.sort(l);return o}function P(e){let n=_(e,e=>(r-t-(e.length-1)*o)/v(e,O));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+o;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+o)/(i.length+1);for(let t=0;t<i.length;++t){let n=i[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}H(i)}}function F(e){let n=C(e);o=Math.min(a,(r-t)/(g(n,e=>e.length)-1)),P(n);for(let e=0;e<p;++e){let t=.99**e,r=Math.max(1-t,(e+1)/p);L(n,t,r),I(n,t,r)}}function I(e,t,n){for(let r=1,i=e.length;r<i;++r){let i=e[r];for(let e of i){let n=0,r=0;for(let{source:t,value:i}of e.targetLinks){let a=i*(e.layer-t.layer);n+=U(t,e)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,V(e)}l===void 0&&i.sort(D),R(i,n)}}function L(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=W(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,V(e)}l===void 0&&i.sort(D),R(i,n)}}function R(e,n){let i=e.length>>1,a=e[i];B(e,a.y0-o,i-1,n),z(e,a.y1+o,i+1,n),B(e,r,e.length-1,n),z(e,t,0,n)}function z(e,t,n,r){for(;n<e.length;++n){let i=e[n],a=(t-i.y0)*r;a>1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+o}}function B(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-o}}function V({sourceLinks:e,targetLinks:t}){if(u===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(E);for(let{target:{targetLinks:t}}of e)t.sort(T)}}function H(e){if(u===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(E),n.sort(T)}function U(e,t){let n=e.y0-(e.sourceLinks.length-1)*o/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+o}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function W(e,t){let n=t.y0-(t.targetLinks.length-1)*o/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+o}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return m}var F=Math.PI,I=2*F,L=1e-6,R=I-L;function z(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function B(){return new z}z.prototype=B.prototype={constructor:z,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(d>L)if(!(Math.abs(u*s-c*l)>L)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((F-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>L&&(this._+=`L`+(e+y*l)+`,`+(t+y*u)),this._+=`A`+i+`,`+i+`,0,0,`+ +(u*f>l*p)+`,`+(this._x1=e+b*s)+`,`+(this._y1=t+b*c)}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+c+`,`+l:(Math.abs(this._x1-c)>L||Math.abs(this._y1-l)>L)&&(this._+=`L`+c+`,`+l),n&&(d<0&&(d=d%I+I),d>R?this._+=`A`+n+`,`+n+`,0,1,`+u+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+u+`,`+(this._x1=c)+`,`+(this._y1=l):d>L&&(this._+=`A`+n+`,`+n+`,0,`+ +(d>=F)+`,`+u+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}};function V(e){return function(){return e}}function H(e){return e[0]}function U(e){return e[1]}var W=Array.prototype.slice;function ee(e){return e.source}function te(e){return e.target}function G(e){var t=ee,n=te,r=H,i=U,a=null;function o(){var o,s=W.call(arguments),c=t.apply(this,s),l=n.apply(this,s);if(a||=o=B(),e(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:V(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:V(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function K(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function q(){return G(K)}function ne(e){return[e.source.x1,e.y0]}function re(e){return[e.target.x0,e.y1]}function ie(){return q().source(ne).target(re)}var J=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,9],r=[1,10],i=[1,5,10,12],a={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:`error`,4:`SANKEY`,5:`NEWLINE`,10:`EOF`,11:`field[source]`,12:`COMMA`,13:`field[target]`,14:`field[value]`,18:`DQUOTE`,19:`ESCAPED_TEXT`,20:`NON_ESCAPED_TEXT`},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 7:let e=r.findOrCreateNode(a[s-4].trim().replaceAll(`""`,`"`)),t=r.findOrCreateNode(a[s-2].trim().replaceAll(`""`,`"`)),n=parseFloat(a[s].trim());r.addLink(e,t,n);break;case 8:case 9:case 11:this.$=a[s];break;case 10:this.$=a[s-1];break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:n,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},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-aWKxesFC.js";import"./src-D_jMrcY1.js";import{H as t,J as n,K as r,U as i,a,d as o,s,v as c,w as l,x as u,y as d}from"./chunk-I66GZJ75-DdvvFHYK.js";import{t as f}from"./ordinal-B960F-5k.js";import{C as p}from"./src-DG1oemu2.js";import{t as m}from"./colors-B42OMeyx.js";var h=m(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`);function g(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function _(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function v(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function y(e){return e.target.depth}function b(e){return e.depth}function x(e,t){return t-1-e.height}function S(e,t){return e.sourceLinks.length?e.depth:t-1}function C(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?_(e.sourceLinks,y)-1:0}function w(e){return function(){return e}}function T(e,t){return D(e.source,t.source)||e.index-t.index}function E(e,t){return D(e.target,t.target)||e.index-t.index}function D(e,t){return e.y0-t.y0}function O(e){return e.value}function k(e){return e.index}function A(e){return e.nodes}function j(e){return e.links}function M(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function N({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function P(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=k,c=S,l,u,d=A,f=j,p=6;function m(){let e={nodes:d.apply(null,arguments),links:f.apply(null,arguments)};return h(e),y(e),b(e),x(e),F(e),N(e),e}m.update=function(e){return N(e),e},m.nodeId=function(e){return arguments.length?(s=typeof e==`function`?e:w(e),m):s},m.nodeAlign=function(e){return arguments.length?(c=typeof e==`function`?e:w(e),m):c},m.nodeSort=function(e){return arguments.length?(l=e,m):l},m.nodeWidth=function(e){return arguments.length?(i=+e,m):i},m.nodePadding=function(e){return arguments.length?(a=o=+e,m):a},m.nodes=function(e){return arguments.length?(d=typeof e==`function`?e:w(e),m):d},m.links=function(e){return arguments.length?(f=typeof e==`function`?e:w(e),m):f},m.linkSort=function(e){return arguments.length?(u=e,m):u},m.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],m):[n-e,r-t]},m.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],m):[[e,t],[n,r]]},m.iterations=function(e){return arguments.length?(p=+e,m):p};function h({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[s(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=M(n,t)),typeof i!=`object`&&(i=r.target=M(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(u!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(u),n.sort(u)}function y({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(v(t.sourceLinks,O),v(t.targetLinks,O)):t.fixedValue}function b({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function x({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function C({nodes:t}){let r=g(t,e=>e.depth)+1,a=(n-e-i)/(r-1),o=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(c.call(null,n,r))));n.layer=t,n.x0=e+t*a,n.x1=n.x0+i,o[t]?o[t].push(n):o[t]=[n]}if(l)for(let e of o)e.sort(l);return o}function P(e){let n=_(e,e=>(r-t-(e.length-1)*o)/v(e,O));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+o;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+o)/(i.length+1);for(let t=0;t<i.length;++t){let n=i[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}H(i)}}function F(e){let n=C(e);o=Math.min(a,(r-t)/(g(n,e=>e.length)-1)),P(n);for(let e=0;e<p;++e){let t=.99**e,r=Math.max(1-t,(e+1)/p);L(n,t,r),I(n,t,r)}}function I(e,t,n){for(let r=1,i=e.length;r<i;++r){let i=e[r];for(let e of i){let n=0,r=0;for(let{source:t,value:i}of e.targetLinks){let a=i*(e.layer-t.layer);n+=U(t,e)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,V(e)}l===void 0&&i.sort(D),R(i,n)}}function L(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=W(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,V(e)}l===void 0&&i.sort(D),R(i,n)}}function R(e,n){let i=e.length>>1,a=e[i];B(e,a.y0-o,i-1,n),z(e,a.y1+o,i+1,n),B(e,r,e.length-1,n),z(e,t,0,n)}function z(e,t,n,r){for(;n<e.length;++n){let i=e[n],a=(t-i.y0)*r;a>1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+o}}function B(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-o}}function V({sourceLinks:e,targetLinks:t}){if(u===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(E);for(let{target:{targetLinks:t}}of e)t.sort(T)}}function H(e){if(u===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(E),n.sort(T)}function U(e,t){let n=e.y0-(e.sourceLinks.length-1)*o/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+o}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function W(e,t){let n=t.y0-(t.targetLinks.length-1)*o/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+o}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return m}var F=Math.PI,I=2*F,L=1e-6,R=I-L;function z(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function B(){return new z}z.prototype=B.prototype={constructor:z,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(d>L)if(!(Math.abs(u*s-c*l)>L)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((F-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>L&&(this._+=`L`+(e+y*l)+`,`+(t+y*u)),this._+=`A`+i+`,`+i+`,0,0,`+ +(u*f>l*p)+`,`+(this._x1=e+b*s)+`,`+(this._y1=t+b*c)}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+c+`,`+l:(Math.abs(this._x1-c)>L||Math.abs(this._y1-l)>L)&&(this._+=`L`+c+`,`+l),n&&(d<0&&(d=d%I+I),d>R?this._+=`A`+n+`,`+n+`,0,1,`+u+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+u+`,`+(this._x1=c)+`,`+(this._y1=l):d>L&&(this._+=`A`+n+`,`+n+`,0,`+ +(d>=F)+`,`+u+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}};function V(e){return function(){return e}}function H(e){return e[0]}function U(e){return e[1]}var W=Array.prototype.slice;function ee(e){return e.source}function te(e){return e.target}function G(e){var t=ee,n=te,r=H,i=U,a=null;function o(){var o,s=W.call(arguments),c=t.apply(this,s),l=n.apply(this,s);if(a||=o=B(),e(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:V(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:V(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function K(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function q(){return G(K)}function ne(e){return[e.source.x1,e.y0]}function re(e){return[e.target.x0,e.y1]}function ie(){return q().source(ne).target(re)}var J=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,9],r=[1,10],i=[1,5,10,12],a={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:`error`,4:`SANKEY`,5:`NEWLINE`,10:`EOF`,11:`field[source]`,12:`COMMA`,13:`field[target]`,14:`field[value]`,18:`DQUOTE`,19:`ESCAPED_TEXT`,20:`NON_ESCAPED_TEXT`},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 7:let e=r.findOrCreateNode(a[s-4].trim().replaceAll(`""`,`"`)),t=r.findOrCreateNode(a[s-2].trim().replaceAll(`""`,`"`)),n=parseFloat(a[s].trim());r.addLink(e,t,n);break;case 8:case 9:case 11:this.$=a[s];break;case 10:this.$=a[s-1];break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:n,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},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`)};a.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()+`