@inkeep/open-knowledge 0.59.0-beta.41 → 0.59.0-beta.43

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 (548) hide show
  1. package/dist/{acp-harness-probe-BtuZH5xB.mjs → acp-harness-probe-DS4lu3MZ.mjs} +2 -2
  2. package/dist/cli.mjs +6 -6
  3. package/dist/constants-WIm7iRWq.mjs +2 -0
  4. package/dist/index.d.mts +25 -17
  5. package/dist/index.mjs +1 -1
  6. package/dist/{init-DQD6jW3w.mjs → init-BGRPMzKi.mjs} +3 -3
  7. package/dist/init-B_WpGoRt.mjs +1 -0
  8. package/dist/{launch-json-removal-BGWZalRw.mjs → launch-json-removal-ChicnDRM.mjs} +2 -2
  9. package/dist/loader-CUdVCPaK.mjs +1 -0
  10. package/dist/{loader-BJs1nphI.mjs → loader-DJUFPtuX.mjs} +2 -2
  11. package/dist/{preview-D3B8IpV0.mjs → preview-C73tdNWx.mjs} +2 -2
  12. package/dist/preview-cyauMZE6.mjs +1 -0
  13. package/dist/public/assets/{ActivityModeContent-DgUvDc0z.js → ActivityModeContent-BcsvZV_i.js} +1 -1
  14. package/dist/public/assets/{AgentDiffPane-6Xvyv1ij.js → AgentDiffPane-BlIjNZfi.js} +2 -2
  15. package/dist/public/assets/{AgentThreadClientBinder-C1JrAGMt.js → AgentThreadClientBinder-l7yZEoXv.js} +1 -1
  16. package/dist/public/assets/{AppMenubar-BQq-UxnW.js → AppMenubar-CMqwwJP_.js} +1 -1
  17. package/dist/public/assets/BugReportHistory-DbAsn8yb.js +1 -0
  18. package/dist/public/assets/{BugReportHistoryDialog-BHjNOMRo.js → BugReportHistoryDialog-Ap4GksAD.js} +1 -1
  19. package/dist/public/assets/CodeMirrorPropInput-C0A9yCRg.js +3 -0
  20. package/dist/public/assets/{ConfigSharingInfoTooltip-DBL_oQN-.js → ConfigSharingInfoTooltip-Dz5-bsuu.js} +1 -1
  21. package/dist/public/assets/ConsentDialogBody-oWIlc5GC.js +2 -0
  22. package/dist/public/assets/DiffView-DHe2qKSH.js +3 -0
  23. package/dist/public/assets/{DocumentContext-DjeS2Iep.js → DocumentContext-CPFgQ361.js} +11 -11
  24. package/dist/public/assets/EditorModeToggle-HeOgZ9Pr.js +1 -0
  25. package/dist/public/assets/EnableSyncConfirmDialog-Do4JBrn1.js +1 -0
  26. package/dist/public/assets/{ExcalidrawDocEditor-0ruIdk-O.js → ExcalidrawDocEditor-DY3aeQZp.js} +6 -6
  27. package/dist/public/assets/FeedbackForm-Bd4pscdU.js +1 -0
  28. package/dist/public/assets/{GraphPanel-BlECW8ck.js → GraphPanel-B-_mcUti.js} +2 -2
  29. package/dist/public/assets/{ImportSkillDialog-zQ6liFZc.js → ImportSkillDialog-BWG69EAa.js} +1 -1
  30. package/dist/public/assets/{LintConfigEditor-DdBS7-rm.js → LintConfigEditor-qAqRLm-m.js} +1 -1
  31. package/dist/public/assets/ManagedArtifactProperties-D7D3InLg.js +1 -0
  32. package/dist/public/assets/ManagedArtifactProperties-f6q1cqA6.js +1 -0
  33. package/dist/public/assets/McpConsentDialogBody-CZH5aG6w.js +1 -0
  34. package/dist/public/assets/{Mermaid-CaELc5Zf.js → Mermaid-DASuTQD6.js} +2 -2
  35. package/dist/public/assets/{MermaidDocEditor-mbELBjiD.js → MermaidDocEditor-D0uj36p6.js} +1 -1
  36. package/dist/public/assets/{PropertyDisplayRow-CEl7G8Hh.js → PropertyDisplayRow-B6q5JtX3.js} +2 -2
  37. package/dist/public/assets/{RegisteredAgentIcon-aLfYhnMx.js → RegisteredAgentIcon-B2B8vA14.js} +1 -1
  38. package/dist/public/assets/{ReportBugDialogBody-DWqo1U59.js → ReportBugDialogBody-C5rybobJ.js} +1 -1
  39. package/dist/public/assets/SchemaConfigEditor-SJ0tMhvC.js +1 -0
  40. package/dist/public/assets/SessionsHost-Uga1PaHz.js +2 -0
  41. package/dist/public/assets/SettingsDialogBody-ClwpRwCf.js +13 -0
  42. package/dist/public/assets/ShareBranchSwitchDialog-BKtNt0f9.js +1 -0
  43. package/dist/public/assets/ShareReceiveDialog-P5ckTYQE.js +1 -0
  44. package/dist/public/assets/{ShareReceiveMissDialog-2y7f-ZUX.js → ShareReceiveMissDialog-B8oQCBjs.js} +1 -1
  45. package/dist/public/assets/{SkillCostValue-DhbH1CJo.js → SkillCostValue-BrantnWJ.js} +1 -1
  46. package/dist/public/assets/{SkillEditBanner-BjXJVocR.js → SkillEditBanner-EaBeCBac.js} +1 -1
  47. package/dist/public/assets/SkillInstallMenu-BkheOIZU.js +2 -0
  48. package/dist/public/assets/{SkillOriginInline-CPZjGTvu.js → SkillOriginInline-BheQ8H00.js} +1 -1
  49. package/dist/public/assets/{SkillToolbarControls-CFmtenmi.js → SkillToolbarControls-D6eilnqO.js} +1 -1
  50. package/dist/public/assets/SlidesToolbarControls-CYb3OOp4.js +1 -0
  51. package/dist/public/assets/SourceEditor-mRS6VaUG.js +1 -0
  52. package/dist/public/assets/{TerminalPanel-03FSZaXv.js → TerminalPanel-aK10iOLI.js} +1 -1
  53. package/dist/public/assets/{TerminalWindowApp-Bwi7BYpX.js → TerminalWindowApp-B339ymxW.js} +1 -1
  54. package/dist/public/assets/{TextDocEditor-23dW9L3H.js → TextDocEditor-Benm_NQq.js} +1 -1
  55. package/dist/public/assets/ThemePicker-Cfu6jytm.js +1 -0
  56. package/dist/public/assets/{ThreadView-CC-VavdV.js → ThreadView-ClaWoMUK.js} +3 -3
  57. package/dist/public/assets/TimelineDiffPane-BaXGOXl2.js +2 -0
  58. package/dist/public/assets/{abnfDiagram-N423BO3Z-Be0zjyqu.js → abnfDiagram-N423BO3Z-C0-CVEEO.js} +1 -1
  59. package/dist/public/assets/{agent-diff-store-CVZoOkdc.js → agent-diff-store-D_tfn3Bc.js} +1 -1
  60. package/dist/public/assets/{ar-SA-G6X2FPQ2-q4U2xLt4.js → ar-SA-G6X2FPQ2-DGA5H1ue.js} +1 -1
  61. package/dist/public/assets/{arc-DZNcuOEm.js → arc-C8mfZFbr.js} +1 -1
  62. package/dist/public/assets/architecture-TIHT7OUA-u5trqXy4.js +1 -0
  63. package/dist/public/assets/{architectureDiagram-T3A2C74G-DJ-1ho34.js → architectureDiagram-T3A2C74G-COp-j7kB.js} +1 -1
  64. package/dist/public/assets/arrow-up-right-BD5rQrDA.js +1 -0
  65. package/dist/public/assets/auth-state-cache-DsEYelfB.js +11 -0
  66. package/dist/public/assets/{az-AZ-76LH7QW2-BGjUPiKh.js → az-AZ-76LH7QW2-C85im219.js} +1 -1
  67. package/dist/public/assets/{bg-BG-XCXSNQG7-OupyTveT.js → bg-BG-XCXSNQG7-CUCkzmBR.js} +1 -1
  68. package/dist/public/assets/{blockDiagram-VBNYF7ZC-BJcfQSf4.js → blockDiagram-VBNYF7ZC-CUYbS6hW.js} +1 -1
  69. package/dist/public/assets/{bn-BD-2XOGV67Q-DD3hqBZJ.js → bn-BD-2XOGV67Q-yEzIpC1C.js} +1 -1
  70. package/dist/public/assets/{braces-okUwnkYm.js → braces-CDKuh9KW.js} +1 -1
  71. package/dist/public/assets/bug-report-send-manager-C7ZQagFv.js +1 -0
  72. package/dist/public/assets/{c4Diagram-5PPSVZJV-kMfowmA-.js → c4Diagram-5PPSVZJV-DvDulwKs.js} +1 -1
  73. package/dist/public/assets/{ca-ES-6MX7JW3Y-UzHVdsgR.js → ca-ES-6MX7JW3Y-OWyGidst.js} +1 -1
  74. package/dist/public/assets/{calendar-DlsdWF5c.js → calendar-7l1UmU5h.js} +1 -1
  75. package/dist/public/assets/{case-sensitive-B9mhUnHr.js → case-sensitive-BRpV9t7A.js} +1 -1
  76. package/dist/public/assets/channel-COcGroIe.js +1 -0
  77. package/dist/public/assets/check-DDzb-wrU.js +1 -0
  78. package/dist/public/assets/{checkbox-Bi7zk4c5.js → checkbox-DF_QVto8.js} +1 -1
  79. package/dist/public/assets/{chevron-down-xENV92Te.js → chevron-down-DT2zmBir.js} +1 -1
  80. package/dist/public/assets/chevron-left-7MFpt77_.js +1 -0
  81. package/dist/public/assets/chevron-right-D8IV-Ph_.js +1 -0
  82. package/dist/public/assets/{chunk-2GRJ4B5K-CSi3G0qm.js → chunk-2GRJ4B5K-DyJI2DjI.js} +1 -1
  83. package/dist/public/assets/chunk-2Q5K7J3B-BlfPP7nb.js +1 -0
  84. package/dist/public/assets/chunk-3NCLNEKW-d_v0RAnZ.js +1 -0
  85. package/dist/public/assets/{chunk-4I5QYGJK-CdakfThp.js → chunk-4I5QYGJK-CMhIWjZe.js} +1 -1
  86. package/dist/public/assets/{chunk-5FCAYU7R-Dv69xCWM.js → chunk-5FCAYU7R-BMVgFCD0.js} +1 -1
  87. package/dist/public/assets/{chunk-5HE753X5-oj4-HBzI.js → chunk-5HE753X5-B3KYB1aU.js} +1 -1
  88. package/dist/public/assets/{chunk-5JV3BV7I-Cwvk5w2b.js → chunk-5JV3BV7I-DxS_m63V.js} +1 -1
  89. package/dist/public/assets/{chunk-5RXB4S5H-5hfcPQr_.js → chunk-5RXB4S5H-DltIB3Tq.js} +1 -1
  90. package/dist/public/assets/{chunk-5TONJI2A-B8yd9E4O.js → chunk-5TONJI2A-8rr7Hm7V.js} +1 -1
  91. package/dist/public/assets/{chunk-5VM5RSS4-D3hnPGUZ.js → chunk-5VM5RSS4-W0Hpq7PJ.js} +1 -1
  92. package/dist/public/assets/{chunk-6Q2QTUOP-DQQqxoHX.js → chunk-6Q2QTUOP-BNJqKIB8.js} +1 -1
  93. package/dist/public/assets/{chunk-7BUUIJ7U-DYSWVK_v.js → chunk-7BUUIJ7U-CR0nXQRn.js} +1 -1
  94. package/dist/public/assets/{chunk-7Z6QIM7H-nioyImE2.js → chunk-7Z6QIM7H-DeOOqZeV.js} +1 -1
  95. package/dist/public/assets/{chunk-BIQX33UG-DIS0TVcu.js → chunk-BIQX33UG-EpcKIUw5.js} +1 -1
  96. package/dist/public/assets/{chunk-BO2N2NFS-CacOuifu.js → chunk-BO2N2NFS-CepakHPv.js} +4 -4
  97. package/dist/public/assets/{chunk-CQNSW5MT-B-z9tlOH.js → chunk-CQNSW5MT-KFmWjuaE.js} +1 -1
  98. package/dist/public/assets/{chunk-CYSBUYHQ-B2IeeDr0.js → chunk-CYSBUYHQ-BzqnFmtj.js} +1 -1
  99. package/dist/public/assets/{chunk-EIO257PC-xBuZqX3-.js → chunk-EIO257PC-B02-TNW8.js} +1 -1
  100. package/dist/public/assets/{chunk-EMLP6XTP-DfhDKW9E.js → chunk-EMLP6XTP-B2WwucMc.js} +1 -1
  101. package/dist/public/assets/{chunk-GF5L2VYU-EpJDvvlf.js → chunk-GF5L2VYU-CxN4epH0.js} +1 -1
  102. package/dist/public/assets/{chunk-I66GZJ75-DQJBUxOU.js → chunk-I66GZJ75-CP2GhVHJ.js} +2 -2
  103. package/dist/public/assets/{chunk-J7OUQ5F2-DR-Oo-uo.js → chunk-J7OUQ5F2-DB2NP1tU.js} +2 -2
  104. package/dist/public/assets/{chunk-JG7HCLWE-YUYcgzTD.js → chunk-JG7HCLWE-BmaBcoQT.js} +1 -1
  105. package/dist/public/assets/{chunk-JQJVKLGR-CSqVMLr2.js → chunk-JQJVKLGR-C_UEBYFh.js} +1 -1
  106. package/dist/public/assets/{chunk-JWPE2WC7-CJyU2FYl.js → chunk-JWPE2WC7-ewHjiSjT.js} +1 -1
  107. package/dist/public/assets/{chunk-K2UTITRG-ftmlUynM.js → chunk-K2UTITRG-BJBPIYUX.js} +4 -4
  108. package/dist/public/assets/{chunk-KBJHAD2P-BUabssyd.js → chunk-KBJHAD2P-SvZealg3.js} +1 -1
  109. package/dist/public/assets/{chunk-MOZMSUNE-Bl8ZaK25.js → chunk-MOZMSUNE-BqVoeq-Z.js} +1 -1
  110. package/dist/public/assets/{chunk-NSK5VX7P-CfSajvN6.js → chunk-NSK5VX7P-B24wWiov.js} +1 -1
  111. package/dist/public/assets/{chunk-OSBZ3O6U-BTWwr1IY.js → chunk-OSBZ3O6U-B-27O6Vr.js} +1 -1
  112. package/dist/public/assets/{chunk-QBLGF6JB-BvjqrKrn.js → chunk-QBLGF6JB-Bhwe7R8z.js} +1 -1
  113. package/dist/public/assets/{chunk-QR6OTTB3-CbdsusFj.js → chunk-QR6OTTB3-CPuJu4O9.js} +1 -1
  114. package/dist/public/assets/{chunk-R7FJI6CG-DZemirzU.js → chunk-R7FJI6CG-Da8VCdQb.js} +1 -1
  115. package/dist/public/assets/{chunk-RYQCIY6F-Dx50WfUc.js → chunk-RYQCIY6F-DLFjTppR.js} +1 -1
  116. package/dist/public/assets/{chunk-U6XO7XAA-B2-BGzQY.js → chunk-U6XO7XAA-o2GYyWCb.js} +1 -1
  117. package/dist/public/assets/{chunk-UBXNYLIW-CNbSj4ld.js → chunk-UBXNYLIW-BQDXCcT8.js} +1 -1
  118. package/dist/public/assets/{chunk-W5SLKNZC-CdyCCS5E.js → chunk-W5SLKNZC-BSnYPJds.js} +1 -1
  119. package/dist/public/assets/{chunk-WRU74C26-DUud6FI6.js → chunk-WRU74C26-NA2qfhE1.js} +1 -1
  120. package/dist/public/assets/chunk-XXDRQBXY-Eeo_7DB8.js +1 -0
  121. package/dist/public/assets/{chunk-YOTPTUD7-DvKaLKry.js → chunk-YOTPTUD7-IpXTSG-1.js} +1 -1
  122. package/dist/public/assets/{chunk-ZIRB5QZD-C1OYAa2H.js → chunk-ZIRB5QZD-D0iVBpjM.js} +1 -1
  123. package/dist/public/assets/{circle-alert-CKGYtHdt.js → circle-alert-CuO28qX3.js} +1 -1
  124. package/dist/public/assets/classDiagram-JCYQIIEL-D246yOIx.js +1 -0
  125. package/dist/public/assets/classDiagram-v2-OCEON4UE-DAc1VjXC.js +1 -0
  126. package/dist/public/assets/client-version-CxzBWoSQ.js +1 -0
  127. package/dist/public/assets/{cm-theme-DR0DsVFd.js → cm-theme-oWzSXbf4.js} +1 -1
  128. package/dist/public/assets/{code-highlighter-impl-BEt-ITxw.js → code-highlighter-impl-Cd7bLu8y.js} +1 -1
  129. package/dist/public/assets/{comment-chips-DPP4WbWD.js → comment-chips-BuAP71xC.js} +1 -1
  130. package/dist/public/assets/config-provider-BtyXAOOc.js +5 -0
  131. package/dist/public/assets/context-api-CW3A_QP4.js +1 -0
  132. package/dist/public/assets/{cose-bilkent-JH36ORCC-BGTe4e9h.js → cose-bilkent-JH36ORCC-BY5w1ifg.js} +1 -1
  133. package/dist/public/assets/{cs-CZ-2BRQDIVT-DkWQ4Lc2.js → cs-CZ-2BRQDIVT-CNF9y8K9.js} +1 -1
  134. package/dist/public/assets/cynefin-VYW2F7L2-B4ClFxtc.js +1 -0
  135. package/dist/public/assets/{cynefinDiagram-MW4NZA55-D0mzfQIh.js → cynefinDiagram-MW4NZA55-BWwd5iqY.js} +1 -1
  136. package/dist/public/assets/{da-DK-5WZEPLOC-BPCn2yH5.js → da-DK-5WZEPLOC-Blia_6Ss.js} +1 -1
  137. package/dist/public/assets/{dagre-BmxmekDK.js → dagre-CeB4vlfW.js} +1 -1
  138. package/dist/public/assets/{dagre-VZM6K2ZE-CgJQ02aa.js → dagre-VZM6K2ZE-DGZytYl_.js} +1 -1
  139. package/dist/public/assets/{de-DE-XR44H4JA-1_CXckKE.js → de-DE-XR44H4JA-Bd8AZ_tx.js} +1 -1
  140. package/dist/public/assets/{diagram-7IWD3JNH-ChLrvA6G.js → diagram-7IWD3JNH-Wf-PIi35.js} +1 -1
  141. package/dist/public/assets/{diagram-B4RE2ZJO-CcwNPIqu.js → diagram-B4RE2ZJO-Dj22fEj4.js} +1 -1
  142. package/dist/public/assets/{diagram-LBJQPF4R-BXP1s8Td.js → diagram-LBJQPF4R-CR7cvSjy.js} +1 -1
  143. package/dist/public/assets/{diagram-Q27KOJAE-DzUtujLW.js → diagram-Q27KOJAE-mb42FRtc.js} +1 -1
  144. package/dist/public/assets/{diagram-UB23O5K3-i9RUHyD2.js → diagram-UB23O5K3-CTfmgppp.js} +1 -1
  145. package/dist/public/assets/{dialog-Cc8i13PJ.js → dialog-eNcfsOdQ.js} +1 -1
  146. package/dist/public/assets/{dist-D-pIxpOA2.js → dist-0WeLsvey2.js} +184 -184
  147. package/dist/public/assets/{dist-ln6t9XST.js → dist-B2YZK8xP.js} +1 -1
  148. package/dist/public/assets/{dist-B6-lGe3v.js → dist-B4pxv-md.js} +1 -1
  149. package/dist/public/assets/{dist-Bupb8oYY.js → dist-BCas6rK-.js} +1 -1
  150. package/dist/public/assets/{dist-B8ci-tfH.js → dist-BPzBqd9z.js} +1 -1
  151. package/dist/public/assets/{dist-B2cnPina.js → dist-CTEsrXGw.js} +1 -1
  152. package/dist/public/assets/{dist-BmUQ27ns.js → dist-CXDS0Fr6.js} +1 -1
  153. package/dist/public/assets/{dist-DcC48PoS.js → dist-C_x1-g67.js} +1 -1
  154. package/dist/public/assets/{dist-Ej4WxQRm.js → dist-Cexu7O7F.js} +1 -1
  155. package/dist/public/assets/{dist-D0VBJbTX.js → dist-DAUEDzd8.js} +1 -1
  156. package/dist/public/assets/{dist-B7D29Alr.js → dist-DEDfvxCy.js} +1 -1
  157. package/dist/public/assets/{dist-D1tMwBQk.js → dist-Dl-SDTRn.js} +1 -1
  158. package/dist/public/assets/{dist-CkBzJA43.js → dist-Dl0XBo_3.js} +1 -1
  159. package/dist/public/assets/{dist-BCsX1IX1.js → dist-Duv9CObB.js} +1 -1
  160. package/dist/public/assets/{dist-BT9KDRJl.js → dist-DwyWIy9f.js} +1 -1
  161. package/dist/public/assets/{dist-CBNvtE_Z.js → dist-Wza7qMOs.js} +1 -1
  162. package/dist/public/assets/{doc-paths-je9IlWgC.js → doc-paths-CiuwB0oU.js} +1 -1
  163. package/dist/public/assets/{documents-events-Dv0-c6Gq.js → documents-events-Bswa3218.js} +1 -1
  164. package/dist/public/assets/{download-Bdmlj4Jo.js → download-BDEHPw74.js} +1 -1
  165. package/dist/public/assets/{dropdown-menu-DRIarAms.js → dropdown-menu-C8skJt-Y.js} +1 -1
  166. package/dist/public/assets/{ebnfDiagram-BXEA7PRR-C79fz6db.js → ebnfDiagram-BXEA7PRR-DC9XdFNx.js} +1 -1
  167. package/dist/public/assets/{el-GR-BZB4AONW-BLFtnYuB.js → el-GR-BZB4AONW-DZuHDBq1.js} +1 -1
  168. package/dist/public/assets/{en-B4ZKOASM-DXMcrdc1.js → en-B4ZKOASM-BUOAYsfW.js} +1 -1
  169. package/dist/public/assets/{erDiagram-JOGREHBK-CoR-r1m_.js → erDiagram-JOGREHBK-iWDzvS_L.js} +1 -1
  170. package/dist/public/assets/{es-ES-U4NZUMDT-CX2gaVe3.js → es-ES-U4NZUMDT-3QnbX6vr.js} +1 -1
  171. package/dist/public/assets/{eu-ES-A7QVB2H4-CMQXVO9O.js → eu-ES-A7QVB2H4-C7lSeC6u.js} +1 -1
  172. package/dist/public/assets/eventmodeling-45OFAUF4-VBndQWOJ.js +1 -0
  173. package/dist/public/assets/{eye-DIJifYDY.js → eye-CXNadRZD.js} +1 -1
  174. package/dist/public/assets/{fa-IR-HGAKTJCU-C434ZJvY.js → fa-IR-HGAKTJCU-KAW5YnG_.js} +1 -1
  175. package/dist/public/assets/{fi-FI-Z5N7JZ37-Sd_vUcuf.js → fi-FI-Z5N7JZ37-BQrcMG_0.js} +1 -1
  176. package/dist/public/assets/{field-BnGNvs-N.js → field-DiGsul30.js} +1 -1
  177. package/dist/public/assets/{file-tree-adapter-3AkzYElW.js → file-tree-adapter-CXEVyZFA.js} +1 -1
  178. package/dist/public/assets/{file-tree-utils-gFdyQRo9.js → file-tree-utils-CijAU7wM.js} +1 -1
  179. package/dist/public/assets/flowDiagram-UKHOOZJN-DF5TWQ08.js +1 -0
  180. package/dist/public/assets/{folder-config-api-CWvrN8lP.js → folder-config-api-3OH-7XRq.js} +1 -1
  181. package/dist/public/assets/{folder-open-5aQb9yif.js → folder-open-Dokmmg9C.js} +1 -1
  182. package/dist/public/assets/{fr-FR-RHASNOE6-CC_J-PmD.js → fr-FR-RHASNOE6-Dy6kfAte.js} +1 -1
  183. package/dist/public/assets/{ganttDiagram-PKOTCBZU-Dlt1Ju1f.js → ganttDiagram-PKOTCBZU-2e3KWQ5A.js} +1 -1
  184. package/dist/public/assets/{git-branch-BEl3Boky.js → git-branch-C3seqxdn.js} +1 -1
  185. package/dist/public/assets/gitGraph-TEB2WS4Q-DHUs6vyl.js +1 -0
  186. package/dist/public/assets/{gitGraphDiagram-DS77QQ5N-CJEQ4nJd.js → gitGraphDiagram-DS77QQ5N-CO3DFlWl.js} +1 -1
  187. package/dist/public/assets/{gl-ES-HMX3MZ6V-BBlYFdds.js → gl-ES-HMX3MZ6V-EiPywSaa.js} +1 -1
  188. package/dist/public/assets/{graphlib-BsH1fq2p.js → graphlib-DSwTEXpw.js} +1 -1
  189. package/dist/public/assets/{hash-26j3E552.js → hash-CXbTGfZC.js} +1 -1
  190. package/dist/public/assets/{he-IL-6SHJWFNN-DDgNs9N2.js → he-IL-6SHJWFNN-Ct4kEvR-.js} +1 -1
  191. package/dist/public/assets/{hi-IN-IWLTKZ5I-WYhVOPGm.js → hi-IN-IWLTKZ5I-Cek-mACj.js} +1 -1
  192. package/dist/public/assets/{highlighted-body-OFNGDK62-BSMlj39x.js → highlighted-body-OFNGDK62-DBvGSv5B.js} +1 -1
  193. package/dist/public/assets/{history-BteF85_l.js → history-CPr-xzs6.js} +1 -1
  194. package/dist/public/assets/{hu-HU-A5ZG7DT2-bNRIWAvK.js → hu-HU-A5ZG7DT2-B9cZ18sJ.js} +1 -1
  195. package/dist/public/assets/i18n-C8AGTGRi.js +1 -0
  196. package/dist/public/assets/{id-ID-SAP4L64H-5L3Qi0SZ.js → id-ID-SAP4L64H-z_imxKUa.js} +1 -1
  197. package/dist/public/assets/image-GAAHSSAO-DFv7e37S.js +1 -0
  198. package/dist/public/assets/{index-BLkd02I5.js → index-BGkaAguK.js} +14 -14
  199. package/dist/public/assets/{info-CqQMSCez.js → info-DIn-MtiX.js} +1 -1
  200. package/dist/public/assets/info-DKCQHKI2-CD6kTazz.js +1 -0
  201. package/dist/public/assets/{infoDiagram-6WML65LV-ChYRt4sX.js → infoDiagram-6WML65LV-BArq_l8s.js} +1 -1
  202. package/dist/public/assets/{input-group-C2iHh4MW.js → input-group-C2yLBdsF.js} +1 -1
  203. package/dist/public/assets/{ishikawaDiagram-WSZJBQD7-C77M0ybq.js → ishikawaDiagram-WSZJBQD7-Cj3h357u.js} +1 -1
  204. package/dist/public/assets/{it-IT-JPQ66NNP-CKcg2AX8.js → it-IT-JPQ66NNP-Bk1vs-4u.js} +1 -1
  205. package/dist/public/assets/{ja-JP-DBVTYXUO-Cb_NrJIM.js → ja-JP-DBVTYXUO-DyGs37xf.js} +1 -1
  206. package/dist/public/assets/{journeyDiagram-NVQOT4AX-BOKcr-Pj.js → journeyDiagram-NVQOT4AX-C-MxZYlE.js} +1 -1
  207. package/dist/public/assets/{kaa-6HZHGXH3-G7Uml3R1.js → kaa-6HZHGXH3-Bw0g2ynu.js} +1 -1
  208. package/dist/public/assets/{kab-KAB-ZGHBKWFO-BqbE3TR6.js → kab-KAB-ZGHBKWFO-CTRAa943.js} +1 -1
  209. package/dist/public/assets/{kanban-definition-27J2QSJJ-B-Es6cct.js → kanban-definition-27J2QSJJ-Dg30CEV-.js} +1 -1
  210. package/dist/public/assets/{kk-KZ-P5N5QNE5-BiYlPZF8.js → kk-KZ-P5N5QNE5--rsYa4qa.js} +1 -1
  211. package/dist/public/assets/{km-KH-HSX4SM5Z-FQ-m0rsO.js → km-KH-HSX4SM5Z-DQr4MQA5.js} +1 -1
  212. package/dist/public/assets/{ko-KR-MTYHY66A-Di6EM4ke.js → ko-KR-MTYHY66A-CFGQzmhC.js} +1 -1
  213. package/dist/public/assets/{ku-TR-6OUDTVRD-CKCYZmQ1.js → ku-TR-6OUDTVRD-5i2bTOt6.js} +1 -1
  214. package/dist/public/assets/{lib-BoSom6iA.js → lib-B3XVxNhx.js} +1 -1
  215. package/dist/public/assets/{lib-CGuuJXlL.js → lib-CQqy20Z3.js} +1 -1
  216. package/dist/public/assets/{line-C1wSlJLG.js → line-sQdWat1D.js} +1 -1
  217. package/dist/public/assets/{linear-Izq8b8Pz.js → linear-BhU5g7D6.js} +1 -1
  218. package/dist/public/assets/{lint-config-client-C3CAQ-EN.js → lint-config-client-B-_xfmUZ.js} +1 -1
  219. package/dist/public/assets/{lint-plugin-meta-C15NfeTq.js → lint-plugin-meta-AbruPv8_.js} +1 -1
  220. package/dist/public/assets/{list-plus-1_iMFVqs.js → list-plus-Lm4FbPM9.js} +1 -1
  221. package/dist/public/assets/{local-menu-action-bus-aAi23OVU.js → local-menu-action-bus-IjTSMx8U.js} +1 -1
  222. package/dist/public/assets/{lt-LT-XHIRWOB4-C8VsCAny.js → lt-LT-XHIRWOB4-BKb7p1JD.js} +1 -1
  223. package/dist/public/assets/{lv-LV-5QDEKY6T-fwde2FsL.js → lv-LV-5QDEKY6T-B4dU8plL.js} +1 -1
  224. package/dist/public/assets/{map-CJTbVE_8.js → map-DSs4OVfF.js} +1 -1
  225. package/dist/public/assets/markdownlint-rule-browser-oXQWdPwz.js +1 -0
  226. package/dist/public/assets/mermaid-GHXKKRXX-Btzcf1TZ.js +1 -0
  227. package/dist/public/assets/{mermaid-parser.core-DoKw-Ryd.js → mermaid-parser.core-CWNtRrX9.js} +2 -2
  228. package/dist/public/assets/{mermaid.core-DUFfAOa8.js → mermaid.core-BKfDFKSP.js} +3 -3
  229. package/dist/public/assets/mermaid.core-BsJTOuVl.js +1 -0
  230. package/dist/public/assets/messages-B1zhShCx.js +1 -0
  231. package/dist/public/assets/messages-BEfzvtsX.js +1 -0
  232. package/dist/public/assets/messages-BKbjlQFO.js +1 -0
  233. package/dist/public/assets/messages-Bmc_DPhS.js +1 -0
  234. package/dist/public/assets/messages-BxenLELI.js +1 -0
  235. package/dist/public/assets/{messages-D7ueLI0N.js → messages-C2ZlElnx.js} +1 -1
  236. package/dist/public/assets/messages-C3x9eFYC.js +1 -0
  237. package/dist/public/assets/messages-CD0zoQp5.js +1 -0
  238. package/dist/public/assets/messages-CYrJcRNP.js +1 -0
  239. package/dist/public/assets/messages-DSGnbON9.js +1 -0
  240. package/dist/public/assets/messages-DxeLWNC_.js +1 -0
  241. package/dist/public/assets/messages-qir6GWOA.js +1 -0
  242. package/dist/public/assets/{mindmap-definition-FAOFIHXS-DEwEbA6z.js → mindmap-definition-FAOFIHXS-HRlTx1-u.js} +1 -1
  243. package/dist/public/assets/minus-zMlnd3qf.js +1 -0
  244. package/dist/public/assets/{miss-dialog-store-CdkrAlK3.js → miss-dialog-store-0sg4whjI.js} +1 -1
  245. package/dist/public/assets/{mr-IN-CRQNXWMA-CcoTgTjy.js → mr-IN-CRQNXWMA-d_3UP_ok.js} +1 -1
  246. package/dist/public/assets/{my-MM-5M5IBNSE-DmEk3dHV.js → my-MM-5M5IBNSE-C-tYgHss.js} +1 -1
  247. package/dist/public/assets/navigation-targets-B1-LHakA.js +1 -0
  248. package/dist/public/assets/{nb-NO-T6EIAALU-BAPAEanP.js → nb-NO-T6EIAALU-BOHhV2mB.js} +1 -1
  249. package/dist/public/assets/{nl-NL-IS3SIHDZ-D3IpvzkU.js → nl-NL-IS3SIHDZ-9boNdlbg.js} +1 -1
  250. package/dist/public/assets/{nn-NO-6E72VCQL-Zjak-bor.js → nn-NO-6E72VCQL-5kGW4A5O.js} +1 -1
  251. package/dist/public/assets/{now-MQcmaMyW.js → now-eUYS5OsE.js} +1 -1
  252. package/dist/public/assets/{oc-FR-POXYY2M6-yKTPPf4b.js → oc-FR-POXYY2M6-CaH7HGV-.js} +1 -1
  253. package/dist/public/assets/ok-7HU1xjtN.js +1 -0
  254. package/dist/public/assets/{open-managed-artifact-tab-CHDncIVf.js → open-managed-artifact-tab-COJj_M4K.js} +1 -1
  255. package/dist/public/assets/{ordinal-Bq2DRwIk.js → ordinal-DJL8o-kw.js} +1 -1
  256. package/dist/public/assets/{pa-IN-N4M65BXN-Bxf4PkCO.js → pa-IN-N4M65BXN-BJi5WsLw.js} +1 -1
  257. package/dist/public/assets/packet-7NZHBO7P-M7v9Z7hw.js +1 -0
  258. package/dist/public/assets/{panel-right-open-BXE3r3dB.js → panel-right-open-6pbxqqMD.js} +1 -1
  259. package/dist/public/assets/{paperclip-C-okgtwN.js → paperclip-C6Bt4Kir.js} +1 -1
  260. package/dist/public/assets/{pegDiagram-VL7TDLO6-CO89_tpF.js → pegDiagram-VL7TDLO6-CR3sxlpW.js} +1 -1
  261. package/dist/public/assets/pending-receive-nav-store-CJY-J7x0.js +1 -0
  262. package/dist/public/assets/percentages-BXMCSKIN-BeqO-ouV.js +1 -0
  263. package/dist/public/assets/pie-RZYD4A2V-DE_3nmDK.js +1 -0
  264. package/dist/public/assets/{pieDiagram-7S7Q4E2Y-CZE8-QZt.js → pieDiagram-7S7Q4E2Y-BAVndMcp.js} +1 -1
  265. package/dist/public/assets/{pl-PL-T2D74RX3-cAkTBASy.js → pl-PL-T2D74RX3-DvSVV2Sk.js} +1 -1
  266. package/dist/public/assets/platform-labels-ePF0gcem.js +1 -0
  267. package/dist/public/assets/progress-DarvjYUP.js +9 -0
  268. package/dist/public/assets/project-paths-Be5oNlgO.js +1 -0
  269. package/dist/public/assets/prop-types-CA-r_JkR.js +1 -0
  270. package/dist/public/assets/{propagation-api-BofsoinJ.js → propagation-api-B1_qxPZb.js} +1 -1
  271. package/dist/public/assets/{pt-BR-5N22H2LF-BqhUjKO9.js → pt-BR-5N22H2LF-WJq2YbBU.js} +1 -1
  272. package/dist/public/assets/{pt-PT-UZXXM6DQ-DVTq5isU.js → pt-PT-UZXXM6DQ-C0Duvhw3.js} +1 -1
  273. package/dist/public/assets/{quadrantDiagram-CIZ2JOQS-K5uiJeez.js → quadrantDiagram-CIZ2JOQS-DQWmMrHu.js} +1 -1
  274. package/dist/public/assets/radar-I7S5WNFK-DrAAUcJY.js +1 -0
  275. package/dist/public/assets/railroad-3IZDKUUU-vTdwvGMP.js +1 -0
  276. package/dist/public/assets/railroad-abnf-AHOZXSZD-B7GLAnKx.js +1 -0
  277. package/dist/public/assets/railroad-ebnf-EBAXGLYW-D7lc0lJR.js +1 -0
  278. package/dist/public/assets/railroad-peg-LSFZ7HO6-CoUx7wsD.js +1 -0
  279. package/dist/public/assets/{railroadDiagram-AXF67PYL-DBm5J1UQ.js → railroadDiagram-AXF67PYL-C0qhLv0B.js} +1 -1
  280. package/dist/public/assets/{receive-store-C4Bb5kEd.js → receive-store-B2fMdEc4.js} +1 -1
  281. package/dist/public/assets/{refresh-cw-D41gUk_B.js → refresh-cw-CMZXURW4.js} +1 -1
  282. package/dist/public/assets/{requirementDiagram-LRYGKXZP-DyveS_DB.js → requirementDiagram-LRYGKXZP-DmWo_VQm.js} +1 -1
  283. package/dist/public/assets/{ro-RO-JPDTUUEW-CSnBOCkX.js → ro-RO-JPDTUUEW-DD9cyVdC.js} +1 -1
  284. package/dist/public/assets/{ru-RU-B4JR7IUQ-DkgY84J-.js → ru-RU-B4JR7IUQ-5_52Q_Wb.js} +1 -1
  285. package/dist/public/assets/{sankeyDiagram-W5VNT64P-NjtjOrp2.js → sankeyDiagram-W5VNT64P-J5Gp9uyi.js} +1 -1
  286. package/dist/public/assets/{select-fWSYgcDA.js → select-CErmRiOd.js} +1 -1
  287. package/dist/public/assets/{selection-context-DeYn-FzA.js → selection-context-CE_LlY64.js} +1 -1
  288. package/dist/public/assets/{separator-BmK42_9U.js → separator-DcX0NiAC.js} +1 -1
  289. package/dist/public/assets/{sequenceDiagram-SI44F4Z6-XRcjlh9c.js → sequenceDiagram-SI44F4Z6-i_6ZSjfE.js} +1 -1
  290. package/dist/public/assets/{si-LK-N5RQ5JYF-BgnvbNzb.js → si-LK-N5RQ5JYF-BTPhhyie.js} +1 -1
  291. package/dist/public/assets/{sizeCapture-X5ZJPWSS-CSL6Bq-A.js → sizeCapture-X5ZJPWSS-C9mDWIT_.js} +1 -1
  292. package/dist/public/assets/{sk-SK-C5VTKIMK-D1_ChKDn.js → sk-SK-C5VTKIMK-DD9NSv5S.js} +1 -1
  293. package/dist/public/assets/skill-actions-DzI506DF.js +1 -0
  294. package/dist/public/assets/{skill-scope-MvvK5VaZ.js → skill-scope-CAVgRNo8.js} +1 -1
  295. package/dist/public/assets/skills-api-DyGn3kLU.js +1 -0
  296. package/dist/public/assets/{sl-SI-NN7IZMDC-BGShetq-.js → sl-SI-NN7IZMDC-DtxXdh0P.js} +1 -1
  297. package/dist/public/assets/{spinner-DmibE6UV.js → spinner-BfQfD3gf.js} +1 -1
  298. package/dist/public/assets/{square-pen-BlKNuUz7.js → square-pen-zbdpw5xR.js} +1 -1
  299. package/dist/public/assets/{src-D55kPVxd.js → src-C0emhvoE.js} +1 -1
  300. package/dist/public/assets/{src-BhPrWnP5.js → src-JLkedlZ8.js} +1 -1
  301. package/dist/public/assets/{stateDiagram-OKZ733FA-3KzMUq69.js → stateDiagram-OKZ733FA-b-4BGE9-.js} +1 -1
  302. package/dist/public/assets/stateDiagram-v2-UEYNNEHI-BkSmZC_p.js +1 -0
  303. package/dist/public/assets/subset-shared.chunk-BuBNd2H_.js +1 -0
  304. package/dist/public/assets/{subset-worker.chunk-Dp6ZELZs.js → subset-worker.chunk-PNot6qJM.js} +1 -1
  305. package/dist/public/assets/{sv-SE-XGPEYMSR-C6iL3BeZ.js → sv-SE-XGPEYMSR-BrLrPOqK.js} +1 -1
  306. package/dist/public/assets/{swimlanes-SLNWSIFB-BHWS1qx1.js → swimlanes-SLNWSIFB-Czms9qC3.js} +2 -2
  307. package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-C3GKm4s9.js +8 -0
  308. package/dist/public/assets/{ta-IN-2NMHFXQM-B0R3xK97.js → ta-IN-2NMHFXQM-DwD_dVRw.js} +1 -1
  309. package/dist/public/assets/{tag-pill-input-fQN0Ol17.js → tag-pill-input-PrPJ3_OA.js} +1 -1
  310. package/dist/public/assets/{target-navigation-intent-Bec1VoOw.js → target-navigation-intent-DlkSA0kH.js} +1 -1
  311. package/dist/public/assets/telemetry-impl-BfGSHwfZ.js +2 -0
  312. package/dist/public/assets/{telemetry-startup-DK0qkTAo.js → telemetry-startup-Bnew-mEU.js} +1 -1
  313. package/dist/public/assets/terminal-4WK7jXvy.js +1 -0
  314. package/dist/public/assets/{terminal-cli-display-B9sWpd0J.js → terminal-cli-display-V3FHKJyC.js} +1 -1
  315. package/dist/public/assets/{terminal-launch-events-DZoRkSx-.js → terminal-launch-events-CEfjqly4.js} +1 -1
  316. package/dist/public/assets/{terminal-telemetry-BJr2Y6UK.js → terminal-telemetry-Dz3G27_l.js} +1 -1
  317. package/dist/public/assets/text-viewer-languages-B-QzK84i.js +2 -0
  318. package/dist/public/assets/{th-TH-HPSO5L25-CXgfqiwt.js → th-TH-HPSO5L25-CQ4NNj8w.js} +1 -1
  319. package/dist/public/assets/{thread-client-BUOJIDSk.js → thread-client-wO3wM3Uc.js} +1 -1
  320. package/dist/public/assets/{timeline-definition-Z64GVDOM-CjsELzYQ.js → timeline-definition-Z64GVDOM-B5lIWea4.js} +1 -1
  321. package/dist/public/assets/{tr-TR-DEFEU3FU-C2ZywKHg.js → tr-TR-DEFEU3FU-B83CxqxO.js} +1 -1
  322. package/dist/public/assets/{trace-api-CUqficfR.js → trace-api-BslS_6CM.js} +1 -1
  323. package/dist/public/assets/{trash-2-BVoWHmfV.js → trash-2-DfA0xAM7.js} +1 -1
  324. package/dist/public/assets/treeView-QDETBFTQ-oKtO3_NQ.js +1 -0
  325. package/dist/public/assets/treemap-6X3UGDF4-i-sAzsOy.js +1 -0
  326. package/dist/public/assets/{triangle-alert-CJVfCxE0.js → triangle-alert-LClCSvEK.js} +1 -1
  327. package/dist/public/assets/typing-burst-detector-DePJTLjP.js +8 -0
  328. package/dist/public/assets/{uk-UA-QMV73CPH-ChzbjgW8.js → uk-UA-QMV73CPH-Dv-8Anmo.js} +1 -1
  329. package/dist/public/assets/{undo-2-CXHp9Ngg.js → undo-2-D0RXWwCv.js} +1 -1
  330. package/dist/public/assets/uninstall-DvmWv_Oz.js +1 -0
  331. package/dist/public/assets/{use-activity-panel-BIGwAxkm.js → use-activity-panel-B7OuIYev.js} +1 -1
  332. package/dist/public/assets/use-apply-config-color-theme-B0Qx3y4w.js +1 -0
  333. package/dist/public/assets/use-apply-config-theme-yjXI2GwT.js +1 -0
  334. package/dist/public/assets/{use-collab-url-3E8FBfyE.js → use-collab-url-DeCk1KLm.js} +1 -1
  335. package/dist/public/assets/{use-live-xterm-theme-DuH9FKgs.js → use-live-xterm-theme-Cppb67jR.js} +1 -1
  336. package/dist/public/assets/{use-open-skill-tFppbCbr.js → use-open-skill-BSGAjRjH.js} +1 -1
  337. package/dist/public/assets/{use-popular-skills-Cno-Yq25.js → use-popular-skills-HWXj6ysh.js} +1 -1
  338. package/dist/public/assets/{use-settings-route-B0SXlDtB.js → use-settings-route-Lf1FP1Sa.js} +1 -1
  339. package/dist/public/assets/use-skill-origin-BeT-fI8w.js +1 -0
  340. package/dist/public/assets/use-terminal-enabled-CQKfR8Hz.js +1 -0
  341. package/dist/public/assets/use-timeline-entry-diff-D7jBR8NO.js +6 -0
  342. package/dist/public/assets/{use-workspace-CTA6IT0U.js → use-workspace-BZqaUk-j.js} +1 -1
  343. package/dist/public/assets/{vennDiagram-T6HMQDX7-yVrff9GO.js → vennDiagram-T6HMQDX7-VmF9ZBTb.js} +1 -1
  344. package/dist/public/assets/{vi-VN-M7AON7JQ-B1rBShFW.js → vi-VN-M7AON7JQ-B2DkADMO.js} +1 -1
  345. package/dist/public/assets/wardley-OPB4EBWU-Cw7yLxju.js +1 -0
  346. package/dist/public/assets/{wardleyDiagram-T6FBY63Y-BYMgY-9_.js → wardleyDiagram-T6FBY63Y-CtNP6mmF.js} +1 -1
  347. package/dist/public/assets/{wrench-JX3g_hHJ.js → wrench-Bx808FyC.js} +1 -1
  348. package/dist/public/assets/x-C1LzPj_K.js +1 -0
  349. package/dist/public/assets/{xychartDiagram-ELKLHX3M-DqnxPGE6.js → xychartDiagram-ELKLHX3M-BAHa9UcP.js} +1 -1
  350. package/dist/public/assets/{zh-CN-LNUGB5OW-Bx8mGArX.js → zh-CN-LNUGB5OW-DrO9Lxyg.js} +1 -1
  351. package/dist/public/assets/{zh-HK-E62DVLB3-DVI0jLIV.js → zh-HK-E62DVLB3-Bmric47w.js} +1 -1
  352. package/dist/public/assets/{zh-TW-RAJ6MFWO-Df8_Bq7L.js → zh-TW-RAJ6MFWO-B4U0Q706.js} +1 -1
  353. package/dist/public/index.html +144 -145
  354. package/dist/public/uninstall.html +19 -20
  355. package/dist/{repair-launch-json-CHctvIyf.mjs → repair-launch-json-BF28LBSB.mjs} +2 -2
  356. package/dist/{repair-mcp-configs-CxpzvuTr.mjs → repair-mcp-configs-BNAXP7lH.mjs} +2 -2
  357. package/dist/{src-B7h6Rdfy.mjs → src-Bhlgf6xr.mjs} +2 -2
  358. package/dist/src-Dbq3LgKA.mjs +1 -0
  359. package/dist/start-ChDETKGV.mjs +1 -0
  360. package/dist/{start-DGV1Y2SQ.mjs → start-CzS0dxGG.mjs} +2 -2
  361. package/package.json +4 -4
  362. package/dist/constants-CY13LmEx.mjs +0 -2
  363. package/dist/init-XPSM_ZEq.mjs +0 -1
  364. package/dist/loader-aSuKwxwq.mjs +0 -1
  365. package/dist/preview-VR9ntyuJ.mjs +0 -1
  366. package/dist/public/assets/BugReportHistory-BO998Mhx.js +0 -1
  367. package/dist/public/assets/CodeMirrorPropInput-DsPE0Ftk.js +0 -3
  368. package/dist/public/assets/ConsentDialogBody-CXzAceMk.js +0 -2
  369. package/dist/public/assets/DiffView-CBq_d252.js +0 -3
  370. package/dist/public/assets/EditorModeToggle-DJhhf9CF.js +0 -1
  371. package/dist/public/assets/EnableSyncConfirmDialog-DDSxyh5R.js +0 -1
  372. package/dist/public/assets/FeedbackForm-3KH2dlV7.js +0 -1
  373. package/dist/public/assets/ManagedArtifactProperties-DQyHwL-a.js +0 -1
  374. package/dist/public/assets/ManagedArtifactProperties-brGGfShz.js +0 -1
  375. package/dist/public/assets/McpConsentDialogBody-sqWpWPQc.js +0 -1
  376. package/dist/public/assets/SchemaConfigEditor-CX1lrMyx.js +0 -1
  377. package/dist/public/assets/SessionsHost-2CzBb6OP.js +0 -2
  378. package/dist/public/assets/SettingsDialogBody-ChyWIo94.js +0 -13
  379. package/dist/public/assets/ShareBranchSwitchDialog-CBmdqKT1.js +0 -1
  380. package/dist/public/assets/ShareReceiveDialog-C-wAbnFt.js +0 -1
  381. package/dist/public/assets/SkillInstallMenu-BDvh1LrE.js +0 -2
  382. package/dist/public/assets/SlidesToolbarControls-DIQu0p-H.js +0 -1
  383. package/dist/public/assets/SourceEditor-B5PkYeQ1.js +0 -1
  384. package/dist/public/assets/TimelineDiffPane-DuAFZCuC.js +0 -2
  385. package/dist/public/assets/architecture-TIHT7OUA-BCzuF0BX.js +0 -1
  386. package/dist/public/assets/arrow-up-right-CXMA4cr5.js +0 -1
  387. package/dist/public/assets/auth-state-cache-B0ZRmrMy.js +0 -11
  388. package/dist/public/assets/bug-report-send-manager-BSek0xNK.js +0 -1
  389. package/dist/public/assets/channel-uRLYou8X.js +0 -1
  390. package/dist/public/assets/check-Bzwwm-o4.js +0 -1
  391. package/dist/public/assets/chevron-left-B1wYSm9K.js +0 -1
  392. package/dist/public/assets/chevron-right-BVvjaUfh.js +0 -1
  393. package/dist/public/assets/chunk-2Q5K7J3B-0CiHt4Eu.js +0 -1
  394. package/dist/public/assets/chunk-3NCLNEKW-cC1YisGp.js +0 -1
  395. package/dist/public/assets/chunk-XXDRQBXY-Cf1f7yic.js +0 -1
  396. package/dist/public/assets/classDiagram-JCYQIIEL-bjPYyCR4.js +0 -1
  397. package/dist/public/assets/classDiagram-v2-OCEON4UE-D-rMMyWu.js +0 -1
  398. package/dist/public/assets/client-version-Cc6SQUyr.js +0 -1
  399. package/dist/public/assets/config-context-BH8hj2sg.js +0 -1
  400. package/dist/public/assets/config-provider-PxPHWQK1.js +0 -5
  401. package/dist/public/assets/context-api-BbWWFleV.js +0 -1
  402. package/dist/public/assets/cynefin-VYW2F7L2-j3jdTjsD.js +0 -1
  403. package/dist/public/assets/eventmodeling-45OFAUF4-C65QgAvj.js +0 -1
  404. package/dist/public/assets/flowDiagram-UKHOOZJN-C3e8wsy1.js +0 -1
  405. package/dist/public/assets/gitGraph-TEB2WS4Q-Dgrh1AcX.js +0 -1
  406. package/dist/public/assets/i18n-BILgtwZc.js +0 -1
  407. package/dist/public/assets/image-GAAHSSAO-BreV-WQM.js +0 -1
  408. package/dist/public/assets/info-DKCQHKI2-DdbAoDLB.js +0 -1
  409. package/dist/public/assets/markdownlint-rule-browser-CLw-YP30.js +0 -1
  410. package/dist/public/assets/mermaid-GHXKKRXX-BrBlKsnj.js +0 -1
  411. package/dist/public/assets/mermaid.core-DcqlxvbR.js +0 -1
  412. package/dist/public/assets/messages-BBOavCsg.js +0 -1
  413. package/dist/public/assets/messages-BLwf6BPC.js +0 -1
  414. package/dist/public/assets/messages-BWoDaP3l.js +0 -1
  415. package/dist/public/assets/messages-CJc6Fwhy.js +0 -1
  416. package/dist/public/assets/messages-CVX6T0zf.js +0 -1
  417. package/dist/public/assets/messages-Cctjaczm.js +0 -1
  418. package/dist/public/assets/messages-Do2GOztj.js +0 -1
  419. package/dist/public/assets/messages-DpWEt-bz.js +0 -1
  420. package/dist/public/assets/messages-QZSRIG9j.js +0 -1
  421. package/dist/public/assets/messages-_lezxuNr.js +0 -1
  422. package/dist/public/assets/messages-fK0eB8Up.js +0 -1
  423. package/dist/public/assets/minus-HJRULrSt.js +0 -1
  424. package/dist/public/assets/navigation-targets-F5rmiq0j.js +0 -1
  425. package/dist/public/assets/ok-CVy0jrrS.js +0 -1
  426. package/dist/public/assets/packet-7NZHBO7P-CR8A-WxB.js +0 -1
  427. package/dist/public/assets/pending-receive-nav-store-D7ZVE5MM.js +0 -1
  428. package/dist/public/assets/percentages-BXMCSKIN-NiQ1sioA.js +0 -1
  429. package/dist/public/assets/pie-RZYD4A2V-C3trD4fK.js +0 -1
  430. package/dist/public/assets/platform-labels-CLcjUBK6.js +0 -1
  431. package/dist/public/assets/progress-ByrCliGb.js +0 -9
  432. package/dist/public/assets/project-paths-DWlEO-Gh.js +0 -1
  433. package/dist/public/assets/prop-types-BizcKfNc.js +0 -1
  434. package/dist/public/assets/radar-I7S5WNFK-D4p7nWaB.js +0 -1
  435. package/dist/public/assets/railroad-3IZDKUUU-CYk9u1UV.js +0 -1
  436. package/dist/public/assets/railroad-abnf-AHOZXSZD-L5NbIWO2.js +0 -1
  437. package/dist/public/assets/railroad-ebnf-EBAXGLYW-DsgM7aiM.js +0 -1
  438. package/dist/public/assets/railroad-peg-LSFZ7HO6-DoFsE-LX.js +0 -1
  439. package/dist/public/assets/skill-actions--JCMpZsz.js +0 -1
  440. package/dist/public/assets/skills-api-BWpKRKq_.js +0 -1
  441. package/dist/public/assets/stateDiagram-v2-UEYNNEHI-CFrw6o8k.js +0 -1
  442. package/dist/public/assets/status-BO9JLhw4.js +0 -1
  443. package/dist/public/assets/subset-shared.chunk-7epOKC_U.js +0 -1
  444. package/dist/public/assets/sun-D7hLUh5f.js +0 -1
  445. package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-BUbt2Yb9.js +0 -8
  446. package/dist/public/assets/telemetry-impl-CuZ-qtZC.js +0 -2
  447. package/dist/public/assets/terminal-CmHqE3At.js +0 -1
  448. package/dist/public/assets/text-viewer-languages-CnJ46eYl.js +0 -2
  449. package/dist/public/assets/treeView-QDETBFTQ-cQ8VGLvV.js +0 -1
  450. package/dist/public/assets/treemap-6X3UGDF4-CzgNNEEX.js +0 -1
  451. package/dist/public/assets/typing-burst-detector-lJRmgSu_.js +0 -8
  452. package/dist/public/assets/uninstall-ByzOPpbn.js +0 -1
  453. package/dist/public/assets/use-apply-config-color-theme-DPzjfJfO.js +0 -1
  454. package/dist/public/assets/use-skill-origin-QRzNbapf.js +0 -1
  455. package/dist/public/assets/use-terminal-enabled-BpHLSpMP.js +0 -1
  456. package/dist/public/assets/use-timeline-entry-diff-ZXh6l0vh.js +0 -6
  457. package/dist/public/assets/wardley-OPB4EBWU-D_qFIL0k.js +0 -1
  458. package/dist/public/assets/x-wQUDJS55.js +0 -1
  459. package/dist/src-DtdQZJU9.mjs +0 -1
  460. package/dist/start-CIhdgT-b.mjs +0 -1
  461. /package/dist/public/assets/{ActivityPanelDiffView-DV0C48qb.js → ActivityPanelDiffView-CgaFZtD7.js} +0 -0
  462. /package/dist/public/assets/{SkillModeBanner-Digtu_YG.js → SkillModeBanner-BRFTW7Zd.js} +0 -0
  463. /package/dist/public/assets/{__vite-browser-external-CB-Z96q3.js → __vite-browser-external-Ci1NQTFf.js} +0 -0
  464. /package/dist/public/assets/{agent-presence-rHHDN2sa.js → agent-presence-B4IC4MV9.js} +0 -0
  465. /package/dist/public/assets/{app-menubar-gate-BTnubpt0.js → app-menubar-gate-Dyq1r1xM.js} +0 -0
  466. /package/dist/public/assets/{array-Cl6WHFH4.js → array-Ca_7zfOn.js} +0 -0
  467. /package/dist/public/assets/{asset-dispatch-CUbn3YXS.js → asset-dispatch-BxzFY-y9.js} +0 -0
  468. /package/dist/public/assets/{auth-prompt-store-3WR-Jv7J.js → auth-prompt-store-vAFATIFt.js} +0 -0
  469. /package/dist/public/assets/{badge-8D3yWFye.js → badge-D819pOsZ.js} +0 -0
  470. /package/dist/public/assets/{chunk-6U3AYISY-BB_UpEhs.js → chunk-6U3AYISY-C-nplzwN.js} +0 -0
  471. /package/dist/public/assets/{chunk-KEIR6QF5-imCK5c0A.js → chunk-KEIR6QF5-Daj3WZbR.js} +0 -0
  472. /package/dist/public/assets/{chunk-SRAX5OIU-B5oxcigO.js → chunk-SRAX5OIU-BEvWJO3c.js} +0 -0
  473. /package/dist/public/assets/{chunk-Y2CYZVJY-4leQOjDx.js → chunk-Y2CYZVJY-B1lUkic5.js} +0 -0
  474. /package/dist/public/assets/{chunk-Z3N5DIM6-C_zLdJk1.js → chunk-Z3N5DIM6-2xVL_dId.js} +0 -0
  475. /package/dist/public/assets/{chunk-ZUYEQ4TG-DLAN927O.js → chunk-ZUYEQ4TG-CQSwzpWR.js} +0 -0
  476. /package/dist/public/assets/{clike-k_S3UtDm.js → clike-Ch26Qmt5.js} +0 -0
  477. /package/dist/public/assets/{colors-BIZ_qOvP.js → colors-6O6-4xPx.js} +0 -0
  478. /package/dist/public/assets/{copilot-CKvt1gXh.js → copilot-DMpTxujg.js} +0 -0
  479. /package/dist/public/assets/{createLucideIcon-CAkY8Blx.js → createLucideIcon-IawHI4re.js} +0 -0
  480. /package/dist/public/assets/{cursor-CdoCz5se.js → cursor-2VSK5BUh.js} +0 -0
  481. /package/dist/public/assets/{cytoscape.esm-Gdi9ZaAO.js → cytoscape.esm-CyF35CGq.js} +0 -0
  482. /package/dist/public/assets/{defaultLocale-QXxs1bvG.js → defaultLocale-D6pwJDcg.js} +0 -0
  483. /package/dist/public/assets/{desktop-bridge-types-rBjHIYSI.js → desktop-bridge-types-msKbUsnF.js} +0 -0
  484. /package/dist/public/assets/{diff-BENUoDEj.js → diff-BTDLDmWn.js} +0 -0
  485. /package/dist/public/assets/{directory-open-01563666-7dJp2UOh.js → directory-open-01563666-D5XpOJpI.js} +0 -0
  486. /package/dist/public/assets/{directory-open-4ed118d0-bMOh_mgf.js → directory-open-4ed118d0-Cjiog95W.js} +0 -0
  487. /package/dist/public/assets/{dist-BgXDUIPy.js → dist-BIGNzOeF2.js} +0 -0
  488. /package/dist/public/assets/{dist-CK2lSTAX.js → dist-BwWNYdG0.js} +0 -0
  489. /package/dist/public/assets/{dist-CdPpcftY.js → dist-CB9JlP8s.js} +0 -0
  490. /package/dist/public/assets/{dist-DTX2HxC82.js → dist-CuH7ikCn.js} +0 -0
  491. /package/dist/public/assets/{documents-fetch-CM9yjwOc.js → documents-fetch-DV1xQi4Z.js} +0 -0
  492. /package/dist/public/assets/{external-link-CIs3ZL0b.js → external-link-CxH7AG7J.js} +0 -0
  493. /package/dist/public/assets/{file-open-002ab408-DsCk-8xP.js → file-open-002ab408-BMfHnumz.js} +0 -0
  494. /package/dist/public/assets/{file-open-7c801643-BiGbM4Wu.js → file-open-7c801643-CPvJ2Lhu.js} +0 -0
  495. /package/dist/public/assets/{file-save-3189631c-Bw6JdJcc.js → file-save-3189631c-xXr-Dk51.js} +0 -0
  496. /package/dist/public/assets/{file-save-745eba88-BgZMQ0Ly.js → file-save-745eba88-DC5dodNM.js} +0 -0
  497. /package/dist/public/assets/{file-tree-rename-validation-CZ-N89tZ.js → file-tree-rename-validation-C44g0J2h.js} +0 -0
  498. /package/dist/public/assets/{form-vzV5yHfl.js → form-L2L52iP2.js} +0 -0
  499. /package/dist/public/assets/{format-BxicnlGz.js → format-CyaLi0or.js} +0 -0
  500. /package/dist/public/assets/{gherkin-T9bL_VFc.js → gherkin-CypeqsOw.js} +0 -0
  501. /package/dist/public/assets/{go-DCi8XKcs.js → go-Bcb7Hfa3.js} +0 -0
  502. /package/dist/public/assets/{html-void-elements-Biw85x38.js → html-void-elements-XfxYgU9i.js} +0 -0
  503. /package/dist/public/assets/{image-blob-reduce.esm-CVY_hE1L.js → image-blob-reduce.esm-DkbZiW0z.js} +0 -0
  504. /package/dist/public/assets/{init-DhAw_POV.js → init-X_ANAGxw.js} +0 -0
  505. /package/dist/public/assets/{input-a0WHtxX3.js → input-I1Mvaow8.js} +0 -0
  506. /package/dist/public/assets/{isObject-Cpi_qscz.js → isObject-2-KdVTyV.js} +0 -0
  507. /package/dist/public/assets/{katex-DJlTj0sX.js → katex-BRGj_jwq.js} +0 -0
  508. /package/dist/public/assets/{known-skill-dirs-6YGi-6EV.js → known-skill-dirs-BtyBErKU.js} +0 -0
  509. /package/dist/public/assets/{libesm-CmFxXX9W.js → libesm-mBLacfDP.js} +0 -0
  510. /package/dist/public/assets/{lru-string-cache-RKsSPPlq.js → lru-string-cache-Cc7rikda.js} +0 -0
  511. /package/dist/public/assets/{lua-CM3Pd_NE.js → lua-0ClDTGlq.js} +0 -0
  512. /package/dist/public/assets/{markdownit-BZnioq-C.js → markdownit-Du2gL9_G.js} +0 -0
  513. /package/dist/public/assets/{min-Ql-sNLj-.js → min-B6fjqEav.js} +0 -0
  514. /package/dist/public/assets/{panel-CZuoQmmu.js → panel-DNPki55m.js} +0 -0
  515. /package/dist/public/assets/{panzoom.es-JC-R1D77.js → panzoom.es-DNGwWbz6.js} +0 -0
  516. /package/dist/public/assets/{parse-api-error-DcnXKbfT.js → parse-api-error-RlJ5hnUA.js} +0 -0
  517. /package/dist/public/assets/{path-0K1vu23z.js → path-xSBrNHof.js} +0 -0
  518. /package/dist/public/assets/{pdf-BovkxBgF.js → pdf-BqNVNwcr.js} +0 -0
  519. /package/dist/public/assets/{pdf.worker-DawvDnVX.js → pdf.worker-DW3F2B7X.js} +0 -0
  520. /package/dist/public/assets/{perl-e6CciIHG.js → perl-CRAPUgGj.js} +0 -0
  521. /package/dist/public/assets/{pica-D7tLxbhP.js → pica-DfYs9nh_.js} +0 -0
  522. /package/dist/public/assets/{popover-MKPgXNPk.js → popover-Rvl_AsUU.js} +0 -0
  523. /package/dist/public/assets/{properties-hjzzQ7Bx.js → properties-DsCKpj9y.js} +0 -0
  524. /package/dist/public/assets/{r-BvIsl7DP.js → r-DKk4sl64.js} +0 -0
  525. /package/dist/public/assets/{rough.esm-CJXrCZNp.js → rough.esm-B3SH-vza.js} +0 -0
  526. /package/dist/public/assets/{roundRect-DiztH0lR.js → roundRect-c37gVikV.js} +0 -0
  527. /package/dist/public/assets/{ruby-Bc0kaLVN.js → ruby-De3HsNyr.js} +0 -0
  528. /package/dist/public/assets/{schema-fields-view-intent-BnNbMz7K.js → schema-fields-view-intent-DCUTojNw.js} +0 -0
  529. /package/dist/public/assets/{share-metadata-rows-DPgPU-ev.js → share-metadata-rows-JAHDqWDY.js} +0 -0
  530. /package/dist/public/assets/{shell-Bx6DIFTv.js → shell-Co7K0fwY.js} +0 -0
  531. /package/dist/public/assets/{skeleton-BR4i6Fy5.js → skeleton-BZIHOzZH.js} +0 -0
  532. /package/dist/public/assets/{sortable.esm-CA36QY01.js → sortable.esm-DK-jMveF.js} +0 -0
  533. /package/dist/public/assets/{sql-CXlI6nqX.js → sql-CSeQm6MO.js} +0 -0
  534. /package/dist/public/assets/{src-BJDBXEob.js → src-we-4-j9S.js} +0 -0
  535. /package/dist/public/assets/{startup-marks-dhMG98NA.js → startup-marks-Br1wFcMD.js} +0 -0
  536. /package/dist/public/assets/{stex-VozxHPmv.js → stex-Ctq_QO83.js} +0 -0
  537. /package/dist/public/assets/{swift-DrCAABwv.js → swift-Cw9hIozN.js} +0 -0
  538. /package/dist/public/assets/{tabs-BuseO5Xi.js → tabs-C_h0VJ9w.js} +0 -0
  539. /package/dist/public/assets/{terminal-command-events-CpkInJtp.js → terminal-command-events-z-N381nZ.js} +0 -0
  540. /package/dist/public/assets/{textarea-WVtoklh9.js → textarea-BoMa_3jF.js} +0 -0
  541. /package/dist/public/assets/{thread-draft-staging-X5TsXt3q.js → thread-draft-staging-BHVsJW6S.js} +0 -0
  542. /package/dist/public/assets/{timeline-diff-store-uF9sqThh.js → timeline-diff-store-ym5Oz1UF.js} +0 -0
  543. /package/dist/public/assets/{toml-Dnao59oL.js → toml-SYtR-303.js} +0 -0
  544. /package/dist/public/assets/{tool-list-format-ltxayE_z.js → tool-list-format-D9WYxB73.js} +0 -0
  545. /package/dist/public/assets/{use-installed-clis-CpbeDgpN.js → use-installed-clis-t29XGX_x.js} +0 -0
  546. /package/dist/public/assets/{useLintConfigViewMode-BHa7i7v4.js → useLintConfigViewMode-BvPSErDD.js} +0 -0
  547. /package/dist/public/assets/{w3c-keyname-DlL_314g.js → w3c-keyname-yVu9TQnl.js} +0 -0
  548. /package/dist/public/assets/{workspace-paths-CD0W1etA.js → workspace-paths-BKo6L6w1.js} +0 -0
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./__vite-browser-external-CB-Z96q3.js","./chunk-CYidjpOJ.js"])))=>i.map(i=>d[i]);
2
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{a as n,c as r,d as i,f as a,i as o,l as s,n as c,r as l,s as u,t as d,u as f}from"./trace-api-CUqficfR.js";import{n as ee,t as p}from"./propagation-api-BofsoinJ.js";import{t as m}from"./status-BO9JLhw4.js";import{t as h}from"./context-api-BbWWFleV.js";var te=class{constructor(){}createGauge(e,t){return fe}createHistogram(e,t){return pe}createCounter(e,t){return de}createUpDownCounter(e,t){return me}createObservableGauge(e,t){return ge}createObservableCounter(e,t){return he}createObservableUpDownCounter(e,t){return _e}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}},g=class{},ne=class extends g{add(e,t){}},re=class extends g{add(e,t){}},ie=class extends g{record(e,t){}},ae=class extends g{record(e,t){}},oe=class{addCallback(e){}removeCallback(e){}},se=class extends oe{},ce=class extends oe{},le=class extends oe{},ue=new te,de=new ne,fe=new ie,pe=new ae,me=new re,he=new se,ge=new ce,_e=new le;function ve(){return ue}var ye;(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(ye||={});var be;(function(e){e[e.INTERNAL=0]=`INTERNAL`,e[e.SERVER=1]=`SERVER`,e[e.CLIENT=2]=`CLIENT`,e[e.PRODUCER=3]=`PRODUCER`,e[e.CONSUMER=4]=`CONSUMER`})(be||={});var _=s.instance(),xe=new class{getMeter(e,t,n){return ue}},Se=`metrics`,Ce=class e{constructor(){}static getInstance(){return this._instance||=new e,this._instance}setGlobalMeterProvider(e){return i(Se,e,s.instance())}getMeterProvider(){return f(Se)||xe}getMeter(e,t,n){return this.getMeterProvider().getMeter(e,t,n)}disable(){a(Se,s.instance())}}.getInstance(),we=class{_delegate;constructor(e){this._delegate=e}export(e,t){this._delegate.export(e,t)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}},Te=class extends Error{code;name=`OTLPExporterError`;data;constructor(e,t,n){super(e),this.data=n,this.code=t}};function Ee(e){if(Number.isFinite(e)&&e>0)return e;throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function De(e){if(e!=null)return()=>e}function Oe(e,t,n){return{timeoutMillis:Ee(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function ke(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:`none`}}var Ae=class{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw Error(`Concurrency Limit reached`);this._sendingPromises.push(e);let t=()=>{let t=this._sendingPromises.indexOf(e);this._sendingPromises.splice(t,1)};e.then(t,t)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}};function je(e){return new Ae(e.concurrencyLimit)}var Me=r(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`);function Ne(e){return e.setValue(Me,!0)}function Pe(e){return e.getValue(Me)===!0}var Fe=`baggage`,Ie=4096;function Le(e){return e.reduce((e,t)=>{let n=`${e}${e===``?``:`,`}${t}`;return n.length>8192?e:n},``)}function Re(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return t.metadata!==void 0&&(n+=`;`+t.metadata.toString()),n})}function ze(e){if(!e)return;let t=e.indexOf(`;`),n=t===-1?e:e.substring(0,t),r=n.indexOf(`=`);if(r<=0)return;let i=n.substring(0,r).trim(),a=n.substring(r+1).trim();if(!i||!a)return;let o,s;try{o=decodeURIComponent(i),s=decodeURIComponent(a)}catch{return}let c;return t!==-1&&t<e.length-1&&(c=ee(e.substring(t+1))),{key:o,value:s,metadata:c}}function Be(e,t,n,r){let i=0;for(;i<e.length&&n<180;){let a=e.indexOf(`,`,i),o=a===-1?e.length:a,s=o-i;if(s<=4096){let a=ze(e.substring(i,o));if(a){let e=(n===0?0:1)+s;if(r+e>8192)break;t[a.key]=a.metadata?{value:a.value,metadata:a.metadata}:{value:a.value},n++,r+=e}}if(a===-1)break;i=a+1}return[n,r]}var Ve=class{inject(e,t,n){let r=p.getBaggage(e);if(!r||Pe(e))return;let i=Le(Re(r).filter(e=>e.length<=Ie).slice(0,180));i.length>0&&n.set(t,Fe,i)}extract(e,t,n){let r=n.get(t,Fe);if(!r)return e;let i={},a=0,o=0;if(Array.isArray(r))for(let e=0;e<r.length;e++)[a,o]=Be(r[e],i,a,o);else [a]=Be(r,i,a,o);return a===0?e:p.setBaggage(e,p.createBaggage(i))}fields(){return[Fe]}};function v(e){let t={};if(typeof e!=`object`||!e)return t;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(!He(n)){_.warn(`Invalid attribute key: ${n}`);continue}let r=e[n];if(!Ue(r)){_.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function He(e){return typeof e==`string`&&e!==``}function Ue(e){return e==null?!0:Array.isArray(e)?We(e):Ge(typeof e)}function We(e){let t;for(let n of e){if(n==null)continue;let e=typeof n;if(e!==t){if(!t){if(Ge(e)){t=e;continue}return!1}return!1}}return!0}function Ge(e){switch(e){case`number`:case`boolean`:case`string`:return!0}return!1}function Ke(){return e=>{_.error(qe(e))}}function qe(e){return typeof e==`string`?e:JSON.stringify(Je(e))}function Je(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}var Ye=Ke();function y(e){try{Ye(e)}catch{}}var Xe=globalThis,Ze=`2.8.0`,Qe=`http.url`,$e=`http.user_agent`,et=Qe,tt=$e,nt=`deployment.environment.name`,rt=`error.type`,it=`exception.message`,at=`exception.stacktrace`,ot=`exception.type`,st=`http.request.method`,ct=`http.request.method_original`,lt=`http.response.status_code`,ut=`server.address`,dt=`server.port`,ft=`service.name`,pt=`service.version`,mt=`telemetry.sdk.language`,ht=`webjs`,gt=`telemetry.sdk.name`,_t=`telemetry.sdk.version`,vt=`url.full`,yt=`process.runtime.name`,bt={[gt]:`opentelemetry`,[yt]:`browser`,[mt]:ht,[_t]:Ze},b=performance,xt=9,St=10**6,Ct=10**xt;function x(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*St)]}function S(e){return Dt(x(b.timeOrigin),x(typeof e==`number`?e:b.now()))}function C(e){if(Tt(e))return e;if(typeof e==`number`)return e<b.timeOrigin?S(e):x(e);if(e instanceof Date)return x(e.getTime());throw TypeError(`Invalid input type`)}function wt(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(--n,r+=Ct),[n,r]}function w(e){return e[0]*Ct+e[1]}function Tt(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}function Et(e){return Tt(e)||typeof e==`number`||e instanceof Date}function Dt(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=Ct&&(n[1]-=Ct,n[0]+=1),n}var T;(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(T||={});var Ot=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[];let t=new Set;for(let e of this._propagators){let n=typeof e.fields==`function`?e.fields():[];for(let e of n)t.add(e)}this._fields=Array.from(t)}inject(e,t,n){for(let r of this._propagators)try{r.inject(e,t,n)}catch(e){_.warn(`Failed to inject with ${r.constructor.name}. Err: ${e.message}`)}}extract(e,t,n){return this._propagators.reduce((e,r)=>{try{return r.extract(e,t,n)}catch(e){_.warn(`Failed to extract with ${r.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}},kt=`[_0-9a-z-*/]`,At=`[a-z]${kt}{0,255}`,jt=`[a-z0-9]${kt}{0,240}@[a-z]${kt}{0,13}`,Mt=RegExp(`^(?:${At}|${jt})$`),Nt=/^[ -~]{0,255}[!-~]$/,Pt=/,|=/;function Ft(e){return Mt.test(e)}function It(e){return Nt.test(e)&&!Pt.test(e)}var Lt=32,Rt=512,zt=`,`,Bt=`=`,Vt=class e{_length;_rawTraceState;_internalState;constructor(e){this._rawTraceState=typeof e==`string`?e:``,this._length=this._rawTraceState.length}set(e,t){if(!Ft(e)||!It(t))return this;let n=this._getState(),r=n.get(e),i=this._length;if(typeof r==`string`?i+=t.length-r.length:i+=e.length+t.length+(n.size>0?2:1),i>Rt)return this;let a=new Map(n);return a.delete(e),a.set(e,t),this._fromState(a,i)}unset(e){let t=this._getState(),n=t.get(e);if(typeof n!=`string`)return this;let r=this._length-(e.length+n.length+1);t.size>1&&--r;let i=new Map(t);return i.delete(e),this._fromState(i,r)}get(e){return this._getState().get(e)}serialize(){let e=``,t=0;for(let n of this._getState())t>0&&(e=zt+e),e=`${n[0]}${Bt}${n[1]}`+e,t++;return e}_getState(){if(this._internalState)return this._internalState;let e=this._rawTraceState.split(zt),t=new Map,n=0;for(let r of e){let e=r.trim(),i=e.indexOf(Bt);if(i===-1)continue;let a=e.slice(0,i),o=e.slice(i+1);if(!Ft(a)||!It(o))continue;let s=n+e.length+ +(t.size>0);if(!(s>Rt)&&(t.set(a,o),n=s,t.size>=Lt))break}return this._length=n,this._internalState=new Map(Array.from(t.entries()).reverse()),this._internalState}_fromState(t,n){let r=Object.create(e.prototype);return r._internalState=t,r._length=n,r}},E=`traceparent`,Ht=`tracestate`,Ut=`00`,Wt=RegExp(`^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$`);function Gt(e){let t=Wt.exec(e);return!t||t[1]===`00`&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var Kt=class{inject(e,t,r){let i=d.getSpanContext(e);if(!i||Pe(e)||!c(i))return;let a=`${Ut}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||n.NONE).toString(16)}`;r.set(t,E,a),i.traceState&&r.set(t,Ht,i.traceState.serialize())}extract(e,t,n){let r=n.get(t,E);if(!r)return e;let i=Array.isArray(r)?r[0]:r;if(typeof i!=`string`)return e;let a=Gt(i);if(!a)return e;a.isRemote=!0;let o=n.get(t,Ht);if(o){let e=Array.isArray(o)?o.join(`,`):o;a.traceState=new Vt(typeof e==`string`?e:void 0)}return d.setSpanContext(e,a)}fields(){return[E,Ht]}},qt=`[object Object]`,Jt=`[object Null]`,Yt=`[object Undefined]`,Xt=Function.prototype.toString,Zt=Xt.call(Object),Qt=Object.getPrototypeOf,$t=Object.prototype,en=$t.hasOwnProperty,D=Symbol?Symbol.toStringTag:void 0,tn=$t.toString;function nn(e){if(!rn(e)||an(e)!==qt)return!1;let t=Qt(e);if(t===null)return!0;let n=en.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Xt.call(n)===Zt}function rn(e){return typeof e==`object`&&!!e}function an(e){return e==null?e===void 0?Yt:Jt:D&&D in Object(e)?on(e):sn(e)}function on(e){let t=en.call(e,D),n=e[D],r=!1;try{e[D]=void 0,r=!0}catch{}let i=tn.call(e);return r&&(t?e[D]=n:delete e[D]),i}function sn(e){return tn.call(e)}var cn=20;function ln(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=dn(t,e.shift(),0,n);return t}function un(e){return O(e)?e.slice():e}function dn(e,t,n=0,r){let i;if(!(n>cn)){if(n++,A(e)||A(t)||pn(t))i=un(t);else if(O(e)){if(i=e.slice(),O(t))for(let e=0,n=t.length;e<n;e++)i.push(un(t[e]));else if(k(t)){let e=Object.keys(t);for(let n=0,r=e.length;n<r;n++){let r=e[n];r===`__proto__`||r===`constructor`||r===`prototype`||(i[r]=un(t[r]))}}}else if(k(e))if(k(t)){if(!mn(e,t))return t;i=Object.assign({},e);let a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){let s=a[o];if(s===`__proto__`||s===`constructor`||s===`prototype`)continue;let c=t[s];if(A(c))c===void 0?delete i[s]:i[s]=c;else{let a=i[s],o=c;if(fn(e,s,r)||fn(t,s,r))delete i[s];else{if(k(a)&&k(o)){let n=r.get(a)||[],i=r.get(o)||[];n.push({obj:e,key:s}),i.push({obj:t,key:s}),r.set(a,n),r.set(o,i)}i[s]=dn(i[s],c,n,r)}}}}else i=t;return i}}function fn(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function O(e){return Array.isArray(e)}function pn(e){return typeof e==`function`}function k(e){return!A(e)&&!O(e)&&!pn(e)&&typeof e==`object`}function A(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function mn(e,t){return!(!nn(e)||!nn(t))}function hn(e,t){return typeof t==`string`?e===t:!!e.match(t)}function gn(e,t){if(!t)return!1;for(let n of t)if(hn(e,n))return!0;return!1}var _n=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}},vn=class{_isCalled=!1;_deferred=new _n;_callback;_that;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}};function yn(e){return Object.prototype.hasOwnProperty.call(e,`partialSuccess`)}function bn(){return{handleResponse(e){e==null||!yn(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||_.warn(`Received Partial Success response:`,JSON.stringify(e.partialSuccess))}}}var xn=class{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,t,n,r,i){this._transport=e,this._serializer=t,this._responseHandler=n,this._promiseQueue=r,this._timeout=i,this._diagLogger=_.createComponentLogger({namespace:`OTLPExportDelegate`})}export(e,t){if(this._diagLogger.debug(`items to be sent`,e),this._promiseQueue.hasReachedLimit()){t({code:T.FAILED,error:Error(`Concurrent export limit reached`)});return}let n=this._serializer.serializeRequest(e);if(n==null){t({code:T.FAILED,error:Error(`Nothing to send`)});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(e=>{if(e.status===`success`){if(e.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(e.data))}catch(t){this._diagLogger.warn(`Export succeeded but could not deserialize response - is the response specification compliant?`,t,e.data)}t({code:T.SUCCESS});return}else if(e.status===`failure`&&e.error){t({code:T.FAILED,error:e.error});return}else e.status===`retryable`?t({code:T.FAILED,error:new Te(`Export failed with retryable status`)}):t({code:T.FAILED,error:new Te(`Export failed with unknown error`)})},e=>t({code:T.FAILED,error:e})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug(`shutdown started`),await this.forceFlush(),this._transport.shutdown()}};function Sn(e,t){return new xn(e.transport,e.serializer,bn(),e.promiseHandler,t.timeout)}function Cn(e,t,n){return Sn({transport:n,serializer:t,promiseHandler:je(e)},{timeout:e.timeoutMillis})}function wn(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function Tn(e){let t=new Uint8Array(e.length/2),n=0;for(let r=0;r<e.length;r+=2){let i=wn(e.charCodeAt(r)),a=wn(e.charCodeAt(r+1));t[n++]=i<<4|a}return t}function En(e){let t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function Dn(e){return{low:Number(BigInt.asUintN(32,e)),high:Number(BigInt.asUintN(32,e>>BigInt(32)))}}function On(e){return Dn(En(e))}function kn(e){return En(e).toString()}var An=typeof BigInt<`u`?kn:w;function jn(e){return e}function Mn(e){if(e!==void 0)return Tn(e)}var Nn={encodeHrTime:On,encodeSpanContext:Tn,encodeOptionalSpanContext:Mn};function Pn(e){if(e===void 0)return Nn;let t=e.useLongBits??!0,n=e.useHex??!1;return{encodeHrTime:t?On:An,encodeSpanContext:n?jn:Tn,encodeOptionalSpanContext:n?jn:Mn}}function Fn(e){let t={attributes:Ln(e.attributes),droppedAttributesCount:0},n=e.schemaUrl;return n&&n!==``&&(t.schemaUrl=n),t}function In(e){return{name:e.name,version:e.version}}function Ln(e){return Object.keys(e).map(t=>Rn(t,e[t]))}function Rn(e,t){return{key:e,value:zn(t)}}function zn(e){let t=typeof e;return t===`string`?{stringValue:e}:t===`number`?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t===`boolean`?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(zn)}}:t===`object`&&e!=null?{kvlistValue:{values:Object.entries(e).map(([e,t])=>Rn(e,t))}}:{}}function Bn(e,t){let n=e.spanContext(),r=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:i,traceState:n.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:Ln(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>Hn(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(e=>Vn(e,t)),droppedLinksCount:e.droppedLinksCount}}function Vn(e,t){return{attributes:e.attributes?Ln(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function Hn(e,t){return{attributes:e.attributes?Ln(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function Un(e,t){return{resourceSpans:Gn(e,Pn(t))}}function Wn(e){let t=new Map;for(let n of e){let e=t.get(n.resource);e||(e=new Map,t.set(n.resource,e));let r=`${n.instrumentationScope.name}@${n.instrumentationScope.version||``}:${n.instrumentationScope.schemaUrl||``}`,i=e.get(r);i||(i=[],e.set(r,i)),i.push(n)}return t}function Gn(e,t){let n=Wn(e),r=[],i=n.entries(),a=i.next();for(;!a.done;){let[e,n]=a.value,o=[],s=n.values(),c=s.next();for(;!c.done;){let e=c.value;if(e.length>0){let n=e.map(e=>Bn(e,t));o.push({scope:In(e[0].instrumentationScope),spans:n,schemaUrl:e[0].instrumentationScope.schemaUrl})}c=s.next()}let l=Fn(e),u={resource:l,scopeSpans:o,schemaUrl:l.schemaUrl};r.push(u),a=i.next()}return r}var Kn={serializeRequest:e=>{let t=Un(e,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};let t=new TextDecoder;return JSON.parse(t.decode(e))}},qn=5,Jn=1e3,Yn=5e3,Xn=1.5,Zn=.2;function Qn(){return 2*Zn*Math.random()-Zn}var $n=class{_transport;constructor(e){this._transport=e}retry(e,t,n){return new Promise((r,i)=>{setTimeout(()=>{this._transport.send(e,t).then(r,i)},n)})}async send(e,t){let n=Date.now()+t,r=await this._transport.send(e,t),i=qn,a=Jn;for(;r.status===`retryable`&&i>0;){i--;let t=Math.max(Math.min(a,Yn)+Qn(),0);a*=Xn;let o=r.retryInMillis??t,s=n-Date.now();if(o>s)return r;r=await this.retry(e,s,o)}return r}shutdown(){return this._transport.shutdown()}};function er(e){return new $n(e.transport)}function tr(e){return[429,502,503,504].includes(e)}function nr(e){if(e==null)return;let t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;let n=new Date(e).getTime()-Date.now();return n>=0?n:0}var rr=class{_parameters;constructor(e){this._parameters=e}send(e,t){return new Promise(n=>{let r=new XMLHttpRequest;r.timeout=t,r.open(`POST`,this._parameters.url);let i=this._parameters.headers();Object.entries(i).forEach(([e,t])=>{r.setRequestHeader(e,t)}),r.ontimeout=e=>{n({status:`failure`,error:Error(`XHR request timed out`)})},r.onreadystatechange=()=>{r.status>=200&&r.status<=299?(_.debug(`XHR success`),n({status:`success`})):r.status&&tr(r.status)?n({status:`retryable`,retryInMillis:nr(r.getResponseHeader(`Retry-After`))}):r.status!==0&&n({status:`failure`,error:Error(`XHR request failed with non-retryable status`)})},r.onabort=()=>{n({status:`failure`,error:Error(`XHR request aborted`)})},r.onerror=()=>{n({status:`failure`,error:Error(`XHR request errored`)})},r.send(e)})}shutdown(){}};function ir(e){return new rr(e)}var ar=class{_params;constructor(e){this._params=e}send(e){return new Promise(t=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(_.debug(`SendBeacon success`),t({status:`success`})):t({status:`failure`,error:Error(`SendBeacon failed`)})})}shutdown(){}};function or(e){return new ar(e)}var sr=class{_parameters;constructor(e){this._parameters=e}async send(e,t){let n=new AbortController,r=setTimeout(()=>n.abort(),t);try{let t=!!globalThis.location,r=new URL(this._parameters.url),i=await fetch(r.href,{method:`POST`,headers:this._parameters.headers(),body:e,signal:n.signal,keepalive:t,mode:t?globalThis.location?.origin===r.origin?`same-origin`:`cors`:`no-cors`});return i.status>=200&&i.status<=299?(_.debug(`response success`),{status:`success`}):tr(i.status)?{status:`retryable`,retryInMillis:nr(i.headers.get(`Retry-After`))}:{status:`failure`,error:Error(`Fetch request failed with non-retryable status`)}}catch(e){return e?.name===`AbortError`?{status:`failure`,error:Error(`Fetch request timed out`,{cause:e})}:{status:`failure`,error:Error(`Fetch request errored`,{cause:e})}}finally{clearTimeout(r)}}shutdown(){}};function cr(e){return new sr(e)}function lr(e,t){return Cn(e,t,er({transport:ir(e)}))}function ur(e,t){return Cn(e,t,er({transport:cr(e)}))}function dr(e,t){return Cn(e,t,er({transport:or({url:e.url,blobType:e.headers()[`Content-Type`]})}))}function fr(e){return()=>{let t={};return Object.entries(e?.()??{}).forEach(([e,n])=>{n===void 0?_.warn(`Header "${e}" has invalid value (${n}) and will be ignored`):t[e]=String(n)}),t}}function pr(e,t,n){let r={...n()},i={};return()=>(t!=null&&Object.assign(i,t()),e!=null&&Object.assign(i,e()),Object.assign(i,r))}function mr(e){if(e!=null)try{let t=globalThis.location?.href;return new URL(e,t).href}catch{throw Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function hr(n){return async r=>{let{Agent:i}=await t(()=>import(`./__vite-browser-external-CB-Z96q3.js`).then(t=>e(t.default)),__vite__mapDeps([0,1]),import.meta.url);return new i(n)}}function gr(e,t,n){return{...Oe(e,t,n),headers:pr(fr(e.headers),t.headers,n.headers),url:mr(e.url)??t.url??n.url,agentFactory:e.agentFactory??t.agentFactory??n.agentFactory}}function _r(e,t){return{...ke(),headers:()=>e,url:`http://localhost:4318/`+t,agentFactory:hr({keepAlive:!0})}}function vr(e,t,n){return gr({url:e.url,timeoutMillis:e.timeoutMillis,headers:De(e.headers),concurrencyLimit:e.concurrencyLimit},{},_r(n,t))}function yr(e,t,n,r){return br(e.headers)(vr(e,n,r),t)}function br(e){return!e&&typeof navigator.sendBeacon==`function`?dr:globalThis.fetch===void 0?lr:ur}var xr=class extends we{constructor(e={}){super(yr(e,Kn,`v1/traces`,{"Content-Type":`application/json`}))}},Sr=class{emit(e){}},Cr=new Sr,wr=new class{getLogger(e,t,n){return new Sr}},Tr=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Cr}},Er=class{getLogger(e,t,n){return this._getDelegateLogger(e,t,n)??new Tr(this,e,t,n)}_getDelegate(){return this._delegate??wr}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,n){return this._delegate?.getLogger(e,t,n)}},Dr=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof window==`object`?window:typeof global==`object`?global:{},j=Symbol.for(`io.opentelemetry.js.api.logs`),M=Dr;function Or(e,t,n){return r=>r===e?t:n}var kr=class e{constructor(){this._proxyLoggerProvider=new Er}static getInstance(){return this._instance||=new e,this._instance}setGlobalLoggerProvider(e){return M[j]?this.getLoggerProvider():(M[j]=Or(1,e,wr),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){return M[j]?.call(M,1)??this._proxyLoggerProvider}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete M[j],this._proxyLoggerProvider=new Er}}.getInstance();function Ar(e,t,n,r){for(let i=0,a=e.length;i<a;i++){let a=e[i];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}function jr(e){e.forEach(e=>e.disable())}function Mr(e){let t=e.tracerProvider||d.getTracerProvider(),n=e.meterProvider||Ce.getMeterProvider(),r=e.loggerProvider||kr.getLoggerProvider(),i=e.instrumentations?.flat()??[];return Ar(i,t,n,r),()=>{jr(i)}}var N=console.error.bind(console);function P(e,t,n){let r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}var Nr=(e,t,n)=>{if(!e||!e[t]){N(`no original function `+String(t)+` to wrap`);return}if(!n){N(`no wrapper function`),N(Error().stack);return}let r=e[t];if(typeof r!=`function`||typeof n!=`function`){N(`original object and wrapper must be functions`);return}let i=n(r,t);return P(i,`__original`,r),P(i,`__unwrap`,()=>{e[t]===i&&P(e,t,r)}),P(i,`__wrapped`,!0),P(e,t,i),i},Pr=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{N(`must provide one or more modules to patch`),N(Error().stack);return}if(!(t&&Array.isArray(t))){N(`must provide one or more functions to wrap on modules`);return}e.forEach(e=>{t.forEach(t=>{Nr(e,t,n)})})},Fr=(e,t)=>{if(!e||!e[t]){N(`no function to unwrap.`),N(Error().stack);return}let n=e[t];if(!n.__unwrap)N(`no original to unwrap to -- has `+String(t)+` already been unwrapped?`);else{n.__unwrap();return}},Ir=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{N(`must provide one or more modules to patch`),N(Error().stack);return}if(!(t&&Array.isArray(t))){N(`must provide one or more functions to unwrap on modules`);return}e.forEach(e=>{t.forEach(t=>{Fr(e,t)})})};function F(e){e&&e.logger&&(typeof e.logger==`function`?N=e.logger:N(`new logger isn't a function, not replacing`))}F.wrap=Nr,F.massWrap=Pr,F.unwrap=Fr,F.massUnwrap=Ir;var Lr=class{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,t,n){this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(n),this._diag=_.createComponentLogger({namespace:e}),this._tracer=d.getTracer(e,t),this._meter=Ce.getMeter(e,t),this._logger=kr.getLogger(e,t),this._updateMetricInstruments()}_wrap=Nr;_unwrap=Fr;_massWrap=Pr;_massUnwrap=Ir;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){let e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error(`Error running span customization hook due to exception in handler`,{triggerName:t},e)}}},Rr=class extends Lr{constructor(e,t,n){super(e,t,n),this._config.enabled&&this.enable()}};function I(e,t,n){let r,i;try{i=e()}catch(e){r=e}finally{if(t(r,i),r&&!n)throw r;return i}}function L(e){return typeof e==`function`&&typeof e.__original==`function`&&typeof e.__unwrap==`function`&&e.__wrapped===!0}var R;(function(e){e[e.STABLE=1]=`STABLE`,e[e.OLD=2]=`OLD`,e[e.DUPLICATE=3]=`DUPLICATE`})(R||={});function zr(e,t){let n=R.OLD,r=t?.split(`,`).map(e=>e.trim()).filter(e=>e!==``);for(let t of r??[])if(t.toLowerCase()===e+`/dup`){n=R.DUPLICATE;break}else t.toLowerCase()===e&&(n=R.STABLE);return n}var z;function Br(){if(z===void 0)try{let e=globalThis.process.argv0;z=e?`unknown_service:${e}`:`unknown_service`}catch{z=`unknown_service`}return z}var B=e=>typeof e==`object`&&!!e&&typeof e.then==`function`,Vr=class e{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,n){let r=new e({},n);return r._rawAttributes=Wr(t),r._asyncAttributesPending=t.filter(([e,t])=>B(t)).length>0,r}constructor(e,t){let n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([e,t])=>(B(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=Wr(this._rawAttributes),this._schemaUrl=Gr(t?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[t,n]=this._rawAttributes[e];this._rawAttributes[e]=[t,B(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&_.error(`Accessing resource attributes before async attributes settled`),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[t,n]of this._rawAttributes){if(B(n)){_.debug(`Unsettled resource attribute ${t} skipped`);continue}n!=null&&(e[t]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let n=Kr(this,t),r=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],r)}};function Hr(e,t){return Vr.FromAttributeList(Object.entries(e),t)}function Ur(){return Hr({[ft]:Br(),[mt]:bt[mt],[gt]:bt[gt],[_t]:bt[_t]})}function Wr(e){return e.map(([e,t])=>B(t)?[e,t.catch(t=>{_.debug(`promise rejection for resource attribute: %s - %s`,e,t)})]:[e,t])}function Gr(e){if(typeof e==`string`||e===void 0)return e;_.warn(`Schema URL must be string or undefined, got %s. Schema URL will be ignored.`,e)}function Kr(e,t){let n=e?.schemaUrl,r=t?.schemaUrl,i=n===void 0||n===``,a=r===void 0||r===``;if(i)return r;if(a||n===r)return n;_.warn(`Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.`,n,r)}var qr=`exception`,Jr=Symbol.for(`nodejs.util.inspect.custom`);function Yr(e){let t={};for(let[n,r]of e.getRawAttributes())typeof r?.then!=`function`&&r!=null&&(t[n]??=r);return t}function Xr(e,t,n,r,i){if(typeof n==`number`&&n<0){let t=`[${e}]`;return r?.stylize?r.stylize(t,`special`):t}return typeof i!=`function`||!r?t:`${e} ${i(t,{...r,depth:r.depth==null?r.depth:r.depth-1})}`}var Zr=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:m.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){let t=Date.now();if(this._spanContext=e.spanContext,this._performanceStartTime=b.now(),this._performanceOffset=t-(this._performanceStartTime+b.timeOrigin),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,e.links)for(let t of e.links)this.addLink(t);this.startTime=this._getTime(e.startTime??t),this.resource=e.resource,this.instrumentationScope=e.scope,this._recordEndMetrics=e.recordEndMetrics,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,t){if(t==null||this._isSpanEnded())return this;if(e.length===0)return _.warn(`Invalid attribute key: ${e}`),this;if(!Ue(t))return _.warn(`Invalid attribute value set for key: ${e}`),this;let{attributeCountLimit:n}=this._spanLimits,r=!Object.prototype.hasOwnProperty.call(this.attributes,e);return n!==void 0&&this._attributesCount>=n&&r?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),r&&this._attributesCount++,this)}setAttributes(e){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setAttribute(t,e[t]);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;let{eventCountLimit:r}=this._spanLimits;if(r===0)return _.warn(`No events allowed.`),this._droppedEventsCount++,this;r!==void 0&&this.events.length>=r&&(this._droppedEventsCount===0&&_.debug(`Dropping extra events.`),this.events.shift(),this._droppedEventsCount++),Et(t)&&(Et(n)||(n=t),t=void 0);let i=v(t),{attributePerEventCountLimit:a}=this._spanLimits,o={},s=0,c=0;for(let e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;let t=i[e];if(a!==void 0&&c>=a){s++;continue}o[e]=this._truncateToSize(t),c++}return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:s}),this}addLink(e){if(this._isSpanEnded())return this;let{linkCountLimit:t}=this._spanLimits;if(t===0)return this._droppedLinksCount++,this;t!==void 0&&this.links.length>=t&&(this._droppedLinksCount===0&&_.debug(`Dropping extra links.`),this.links.shift(),this._droppedLinksCount++);let{attributePerLinkCountLimit:n}=this._spanLimits,r=v(e.attributes),i={},a=0,o=0;for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;let t=r[e];if(n!==void 0&&o>=n){a++;continue}i[e]=this._truncateToSize(t),o++}let s={context:e.context};return o>0&&(s.attributes=i),a>0&&(s.droppedAttributesCount=a),this.links.push(s),this}addLinks(e){for(let t of e)this.addLink(t);return this}setStatus(e){if(this._isSpanEnded()||e.code===m.UNSET||this.status.code===m.OK)return this;let t={code:e.code};return e.code===m.ERROR&&(typeof e.message==`string`?t.message=e.message:e.message!=null&&_.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`)),this.status=t,this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){if(this._isSpanEnded()){_.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(e),this._duration=wt(this.startTime,this.endTime),this._duration[0]<0&&(_.warn(`Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.`,this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&_.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&_.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e==`number`&&e<=b.now())return S(e+this._performanceOffset);if(typeof e==`number`)return x(e);if(e instanceof Date)return x(e.getTime());if(Tt(e))return e;if(this._startTimeProvided)return x(Date.now());let t=b.now()-this._performanceStartTime;return Dt(this.startTime,x(t))}isRecording(){return this._ended===!1}recordException(e,t){let n={};typeof e==`string`?n[it]=e:e&&(e.code?n[ot]=e.code.toString():e.name&&(n[ot]=e.name),e.message&&(n[it]=e.message),e.stack&&(n[at]=e.stack)),n[`exception.type`]||n[`exception.message`]?this.addEvent(qr,n,t):_.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let e=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);_.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(_.warn(`Attribute value limit must be positive, got ${t}`),e):typeof e==`string`?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>typeof e==`string`?this._truncateToLimitUtil(e,t):e):e}[Jr](e,t,n){return Xr(`SpanImpl`,{name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:Yr(this.resource)}},e,t,n)}},V;(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(V||={});var Qr=`otel.component.name`,$r=`otel.component.type`,ei=`otel.span.parent.origin`,ti=`otel.span.sampling_result`,ni=`otel.sdk.processor.span.processed`,ri=`otel.sdk.processor.span.queue.capacity`,ii=`otel.sdk.processor.span.queue.size`,ai=`otel.sdk.span.live`,oi=`otel.sdk.span.started`,si=`batching_span_processor`,ci=class{startedSpans;liveSpans;constructor(e){this.startedSpans=e.createCounter(oi,{unit:`{span}`,description:`The number of created spans.`}),this.liveSpans=e.createUpDownCounter(ai,{unit:`{span}`,description:`The number of currently live spans.`})}startSpan(e,t){let n=ui(t);if(this.startedSpans.add(1,{[ei]:li(e),[ti]:n}),t===V.NOT_RECORD)return()=>{};let r={[ti]:n};return this.liveSpans.add(1,r),()=>{this.liveSpans.add(-1,r)}}};function li(e){return e?e.isRemote?`remote`:`local`:`none`}function ui(e){switch(e){case V.RECORD_AND_SAMPLED:return`RECORD_AND_SAMPLE`;case V.RECORD:return`RECORD_ONLY`;case V.NOT_RECORD:return`DROP`}}var di=`2.9.0`,fi=class{_sampler;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(e,t){this.instrumentationScope=e,this._sampler=t.sampler,this._spanLimits=t.spanLimits,this._resource=t.resource,this._idGenerator=t.idGenerator,this._spanProcessor=t.spanProcessor,this._tracerMetrics=new ci(t.meterProvider.getMeter(`@opentelemetry/sdk-trace`,di))}startSpan(e,t={},r=h.active()){t.root&&(r=d.deleteSpan(r));let i=d.getSpan(r);if(Pe(r))return _.debug(`Instrumentation suppressed, returning Noop Span`),d.wrapSpanContext(o);let a=i?.spanContext(),s=this._idGenerator.generateSpanId(),c,l,u;!a||!d.isSpanContextValid(a)?l=this._idGenerator.generateTraceId():(l=a.traceId,u=a.traceState,c=a);let f=t.kind??be.INTERNAL,ee=(t.links??[]).map(e=>({context:e.context,attributes:v(e.attributes)})),p=v(t.attributes),m=this._sampler.shouldSample(r,l,e,f,p,ee),te=this._tracerMetrics.startSpan(a,m.decision);u=m.traceState??u;let g=m.decision===ye.RECORD_AND_SAMPLED?n.SAMPLED:n.NONE,ne={traceId:l,spanId:s,traceFlags:g,traceState:u};if(m.decision===ye.NOT_RECORD)return _.debug(`Recording is off, propagating context in a non-recording span`),d.wrapSpanContext(ne);let re=v(Object.assign(p,m.attributes));return new Zr({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:ne,name:e,kind:f,links:ee,parentSpanContext:c,attributes:re,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:te})}startActiveSpan(e,t,n,r){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);let s=a??h.active(),c=this.startSpan(e,i,s),l=d.setSpan(s,c);return h.with(l,o,void 0,c)}[Jr](e,t,n){return Xr(`Tracer`,{instrumentationScope:this.instrumentationScope,resource:{attributes:Yr(this._resource)},spanLimits:this._spanLimits},e,t,n)}},pi=class{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(e=>{y(e||Error(`MultiSpanProcessor: forceFlush failed`)),t()})})}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnding(e){for(let t of this._spanProcessors)t.onEnding&&t.onEnding(e)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}},H=class{shouldSample(){return{decision:V.NOT_RECORD}}toString(){return`AlwaysOffSampler`}},U=class{shouldSample(){return{decision:V.RECORD_AND_SAMPLED}}toString(){return`AlwaysOnSampler`}},W=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||=(y(Error(`ParentBasedSampler must have a root sampler configured`)),new U),this._remoteParentSampled=e.remoteParentSampled??new U,this._remoteParentNotSampled=e.remoteParentNotSampled??new H,this._localParentSampled=e.localParentSampled??new U,this._localParentNotSampled=e.localParentNotSampled??new H}shouldSample(e,t,r,i,a,o){let s=d.getSpanContext(e);return!s||!c(s)?this._root.shouldSample(e,t,r,i,a,o):s.isRemote?s.traceFlags&n.SAMPLED?this._remoteParentSampled.shouldSample(e,t,r,i,a,o):this._remoteParentNotSampled.shouldSample(e,t,r,i,a,o):s.traceFlags&n.SAMPLED?this._localParentSampled.shouldSample(e,t,r,i,a,o):this._localParentNotSampled.shouldSample(e,t,r,i,a,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}},mi=new Map,hi=class{processedSpans;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(e,t,n){let r=mi.get(e)??0;if(mi.set(e,r+1),this.standardAttrs={[$r]:e,[Qr]:`${e}/${r}`},this.droppedAttrs={...this.standardAttrs,[rt]:`queue_full`},this.processedSpans=t.createCounter(ni,{unit:`{span}`,description:`The number of spans for which the processing has finished, either successful or failed.`}),n){let{capacity:e,getQueueSize:r}=n;t.createUpDownCounter(ri,{unit:`{span}`,description:`The maximum number of spans the queue of a given instance of an SDK span processor can hold.`}).add(e,this.standardAttrs),this.queueSize=t.createObservableUpDownCounter(ii,{unit:`{span}`,description:`The number of spans in the queue of a given instance of an SDK span processor.`}),this.queueSizeCallback=e=>e.observe(r(),this.standardAttrs),this.queueSize.addCallback(this.queueSizeCallback)}}dropSpans(e){this.processedSpans.add(e,this.droppedAttrs)}finishSpans(e,t){if(!t){this.processedSpans.add(e,this.standardAttrs);return}let n={...this.standardAttrs,[rt]:t.name};this.processedSpans.add(e,n)}shutdown(){this.queueSize&&this.queueSizeCallback&&this.queueSize.removeCallback(this.queueSizeCallback)}},gi=class{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_metrics;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e){this._exporter=e.exporter,this._maxExportBatchSize=e.maxExportBatchSize??512,this._maxQueueSize=e.maxQueueSize??2048,this._scheduledDelayMillis=e.scheduledDelayMillis??5e3,this._exportTimeoutMillis=e.exportTimeoutMillis??3e4,this._shutdownOnce=new vn(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(_.warn(`BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize`),this._maxExportBatchSize=this._maxQueueSize),this._metrics=new hi(si,e.selfObsMeterProvider?e.selfObsMeterProvider.getMeter(`@opentelemetry/sdk-trace`):ve(),{capacity:this._maxQueueSize,getQueueSize:()=>this._finishedSpans.length})}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&n.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>(this._metrics.shutdown(),this._exporter.shutdown()))}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&_.debug(`maxQueueSize reached, dropping spans`),this._droppedSpansCount++,this._metrics.dropSpans(1);return}this._droppedSpansCount>0&&(_.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{let n=[],r=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let e=0,t=r;e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,t)=>{let n=setTimeout(()=>{t(Error(`Timeout`))},this._exportTimeoutMillis);h.with(Ne(h.active()),()=>{let r;this._finishedSpans.length<=this._maxExportBatchSize?(r=this._finishedSpans,this._finishedSpans=[]):r=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(r,i=>{clearTimeout(n),this._metrics.finishSpans(r.length,i.error),i.code===T.SUCCESS?e():t(i.error??Error(`BatchSpanProcessor: span export failed`))}),a=null;for(let e=0,t=r.length;e<t;e++){let t=r[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(a??=[],a.push(t.resource.waitForAsyncAttributes()))}a===null?i():Promise.all(a).then(i,e=>{y(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,y(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),typeof this._timer!=`number`&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}},_i=class extends gi{_visibilityChangeListener;_pageHideListener;constructor(e){super(e),this.onInit(e)}onInit(e){e.disableAutoFlushOnDocumentHide!==!0&&typeof document<`u`&&(this._visibilityChangeListener=()=>{document.visibilityState===`hidden`&&this.forceFlush().catch(e=>{y(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{y(e)})},document.addEventListener(`visibilitychange`,this._visibilityChangeListener),document.addEventListener(`pagehide`,this._pageHideListener))}onShutdown(){typeof document<`u`&&(this._visibilityChangeListener&&document.removeEventListener(`visibilitychange`,this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener(`pagehide`,this._pageHideListener))}},vi=16,yi=8,bi=new Uint8Array(vi),xi=new Uint8Array(yi),Si=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function Ci(e){for(let t=0;t<e.length;t++)e[t]=Math.random()*256>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function wi(e){let t=``;for(let n=0;n<e.length;n++)t+=Si[e[n]];return t}var Ti=class{generateTraceId(){return Ci(bi),wi(bi)}generateSpanId(){return Ci(xi),wi(xi)}},G;(function(e){e[e.resolved=0]=`resolved`,e[e.timeout=1]=`timeout`,e[e.error=2]=`error`,e[e.unresolved=3]=`unresolved`})(G||={});var Ei=class{_resource;_activeSpanProcessor;_forceFlushTimeoutMillis;_tracerOptions;_tracers=new Map;constructor(e={}){this._forceFlushTimeoutMillis=e.forceFlushTimeoutMillis??3e4,this._resource=e.resource??Ur(),this._activeSpanProcessor=new pi(e.spanProcessors??[]),this._tracerOptions={resource:this._resource,sampler:e.sampler??new W({root:new U}),spanLimits:{attributeCountLimit:e.spanLimits?.attributeCountLimit??128,attributeValueLengthLimit:e.spanLimits?.attributeValueLengthLimit??1/0,eventCountLimit:e.spanLimits?.eventCountLimit??128,linkCountLimit:e.spanLimits?.linkCountLimit??128,attributePerEventCountLimit:e.spanLimits?.attributePerEventCountLimit??128,attributePerLinkCountLimit:e.spanLimits?.attributePerLinkCountLimit??128},idGenerator:e.idGenerator||new Ti,spanProcessor:this._activeSpanProcessor,meterProvider:e.meterProvider??{getMeter(){return ve()}}}}getTracer(e,t,n){let r=`${e}@${t||``}:${n?.schemaUrl||``}`;return this._tracers.has(r)||this._tracers.set(r,new fi({name:e,version:t,schemaUrl:n?.schemaUrl},this._tracerOptions)),this._tracers.get(r)}forceFlush(){let e=this._forceFlushTimeoutMillis,t=this._activeSpanProcessor._spanProcessors.map(t=>new Promise(n=>{let r,i=setTimeout(()=>{n(Error(`Span processor did not completed within timeout period of ${e} ms`)),r=G.timeout},e);t.forceFlush().then(()=>{clearTimeout(i),r!==G.timeout&&(r=G.resolved,n(r))}).catch(e=>{clearTimeout(i),r=G.error,n(e)})}));return new Promise((e,n)=>{Promise.all(t).then(t=>{let r=t.filter(e=>e!==G.resolved);r.length>0?n(r):e()}).catch(e=>n([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[Jr](e,t,n){let r=this._activeSpanProcessor._spanProcessors;return Xr(`TracerProvider`,{resource:{attributes:Yr(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:r.map(e=>e.constructor?.name??`SpanProcessor`)},e,t,n)}},Di=class{_ratio;_upperBound;constructor(e=0){this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:l(t)&&this._accumulate(t)<this._upperBound?V.RECORD_AND_SAMPLED:V.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!=`number`||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<32;n+=8){let r=0;for(let t=0;t<8;t++){let i=e.charCodeAt(n+t),a=i<58?i-48:i<71?i-55:i-87;r=r<<4|a}t=(t^r)>>>0}return t}},K;(function(e){e.AlwaysOff=`always_off`,e.AlwaysOn=`always_on`,e.ParentBasedAlwaysOff=`parentbased_always_off`,e.ParentBasedAlwaysOn=`parentbased_always_on`,e.ParentBasedTraceIdRatio=`parentbased_traceidratio`,e.TraceIdRatio=`traceidratio`})(K||={});var Oi=1;function ki(){return{sampler:Ai(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function Ai(){let e=K.ParentBasedAlwaysOn;switch(e){case K.AlwaysOn:return new U;case K.AlwaysOff:return new H;case K.ParentBasedAlwaysOn:return new W({root:new U});case K.ParentBasedAlwaysOff:return new W({root:new H});case K.TraceIdRatio:return new Di(ji());case K.ParentBasedTraceIdRatio:return new W({root:new Di(ji())});default:return _.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${K.ParentBasedAlwaysOn}".`),new W({root:new U})}}function ji(){return _.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Oi}.`),Oi}function Mi(e){let t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??128,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??1/0,Object.assign({},e,{spanLimits:t})}var Ni=class extends Ei{constructor(e={}){let t=ln({},ki(),Mi(e));delete t.generalLimits,super(t)}},Pi=class extends _i{constructor(e,t){t||={};for(let[e,n]of[[`maxExportBatchSize`,`OTEL_BSP_MAX_EXPORT_BATCH_SIZE`],[`maxQueueSize`,`OTEL_BSP_MAX_QUEUE_SIZE`],[`scheduledDelayMillis`,`OTEL_BSP_SCHEDULE_DELAY`],[`exportTimeoutMillis`,`OTEL_BSP_EXPORT_TIMEOUT`]])t[e];super({exporter:e,...t})}},Fi=class{_enabled=!1;_currentContext=u;_bindFunction(e=u,t){let n=this,r=function(...r){return n.with(e,()=>t.apply(this,r))};return Object.defineProperty(r,`length`,{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r}active(){return this._currentContext}bind(e,t){return e===void 0&&(e=this.active()),typeof t==`function`?this._bindFunction(e,t):t}disable(){return this._currentContext=u,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=u,this)}with(e,t,n,...r){let i=this._currentContext;this._currentContext=e||u;try{return t.call(n,...r)}finally{this._currentContext=i}}};function Ii(e){if(e!==null){if(e===void 0){let e=new Fi;e.enable(),h.setGlobalContextManager(e);return}e.enable(),h.setGlobalContextManager(e)}}function Li(e){if(e!==null){if(e===void 0){p.setGlobalPropagator(new Ot({propagators:[new Kt,new Ve]}));return}p.setGlobalPropagator(e)}}var Ri=class extends Ni{constructor(e={}){super(e)}register(e={}){d.setGlobalTracerProvider(this),Li(e.propagator),Ii(e.contextManager)}},q;(function(e){e.CONNECT_END=`connectEnd`,e.CONNECT_START=`connectStart`,e.DECODED_BODY_SIZE=`decodedBodySize`,e.DOM_COMPLETE=`domComplete`,e.DOM_CONTENT_LOADED_EVENT_END=`domContentLoadedEventEnd`,e.DOM_CONTENT_LOADED_EVENT_START=`domContentLoadedEventStart`,e.DOM_INTERACTIVE=`domInteractive`,e.DOMAIN_LOOKUP_END=`domainLookupEnd`,e.DOMAIN_LOOKUP_START=`domainLookupStart`,e.ENCODED_BODY_SIZE=`encodedBodySize`,e.FETCH_START=`fetchStart`,e.LOAD_EVENT_END=`loadEventEnd`,e.LOAD_EVENT_START=`loadEventStart`,e.NAVIGATION_START=`navigationStart`,e.REDIRECT_END=`redirectEnd`,e.REDIRECT_START=`redirectStart`,e.REQUEST_START=`requestStart`,e.RESPONSE_END=`responseEnd`,e.RESPONSE_START=`responseStart`,e.SECURE_CONNECTION_START=`secureConnectionStart`,e.START_TIME=`startTime`,e.UNLOAD_EVENT_END=`unloadEventEnd`,e.UNLOAD_EVENT_START=`unloadEventStart`})(q||={});var zi=`http.response_content_length`,Bi=`http.response_content_length_uncompressed`;function J(e,t){return t in e}function Y(e,t,n,r=!0){if(J(n,t)&&typeof n[t]==`number`&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function Vi(e,t,n=!1,r,i){if(r===void 0&&(r=t[q.START_TIME]!==0),n||(Y(e,q.FETCH_START,t,r),Y(e,q.DOMAIN_LOOKUP_START,t,r),Y(e,q.DOMAIN_LOOKUP_END,t,r),Y(e,q.CONNECT_START,t,r),Y(e,q.SECURE_CONNECTION_START,t,r),Y(e,q.CONNECT_END,t,r),Y(e,q.REQUEST_START,t,r),Y(e,q.RESPONSE_START,t,r),Y(e,q.RESPONSE_END,t,r)),!i){let n=t[q.ENCODED_BODY_SIZE];n!==void 0&&e.setAttribute(zi,n);let r=t[q.DECODED_BODY_SIZE];r!==void 0&&n!==r&&e.setAttribute(Bi,r)}}function Hi(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return`/`;let n=Wi(e,t);if(t&&n.indexOf(`@id`)>0)return n;let r=``;return e.parentNode&&(r+=Hi(e.parentNode,t)),r+=n,r}function Ui(e){if(!e.parentNode)return 0;let t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let n=Array.from(e.parentNode.childNodes);return n=n.filter(n=>{let r=n.localName;return t.indexOf(n.nodeType)>=0&&r===e.localName}),n.length>=1?n.indexOf(e)+1:0}function Wi(e,t){let n=e.nodeType,r=Ui(e),i;if(n===Node.ELEMENT_NODE){let n=e.getAttribute(`id`);if(t&&n)return`//*[@id="${n}"]`;i=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)i=`text()`;else if(n===Node.COMMENT_NODE)i=`comment()`;else return``;return i&&r>1?`/${i}[${r}]`:`/${i}`}var X;(function(e){e.DOCUMENT_LOAD=`documentLoad`,e.DOCUMENT_FETCH=`documentFetch`,e.RESOURCE_FETCH=`resourceFetch`})(X||={});var Gi=`0.49.0`,Ki=`@opentelemetry/instrumentation-document-load`,qi;(function(e){e.FIRST_PAINT=`firstPaint`,e.FIRST_CONTENTFUL_PAINT=`firstContentfulPaint`})(qi||={});var Ji=()=>{let e={},t=b.getEntriesByType?.(`navigation`)[0];if(t)Object.values(q).forEach(n=>{if(J(t,n)){let r=t[n];typeof r==`number`&&(e[n]=r)}});else{let t=b.timing;t&&Object.values(q).forEach(n=>{if(J(t,n)){let r=t[n];typeof r==`number`&&(e[n]=r)}})}return e},Yi={"first-paint":qi.FIRST_PAINT,"first-contentful-paint":qi.FIRST_CONTENTFUL_PAINT},Xi=e=>{let t=b.getEntriesByType?.(`paint`);t&&t.forEach(({name:t,startTime:n})=>{J(Yi,t)&&e.addEvent(Yi[t],n)})},Zi=class extends Rr{component=`document-load`;version=`1`;moduleName=this.component;constructor(e={}){super(Ki,Gi,e)}init(){}_onDocumentLoaded(){window.setTimeout(()=>{this._collectPerformance()})}_addResourcesSpans(e){let t=b.getEntriesByType?.(`resource`);t&&t.forEach(t=>{this._initResourceSpan(t,e)})}_collectPerformance(){let e=Array.from(document.getElementsByTagName(`meta`)).find(e=>e.getAttribute(`name`)===E),t=Ji(),n=e&&e.content||``;h.with(p.extract(u,{traceparent:n}),()=>{let e=this._startSpan(X.DOCUMENT_LOAD,q.FETCH_START,t);e&&(h.with(d.setSpan(h.active(),e),()=>{let e=this._startSpan(X.DOCUMENT_FETCH,q.FETCH_START,t);e&&(e.setAttribute(et,location.href),h.with(d.setSpan(h.active(),e),()=>{Vi(e,t,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentFetch),this._endSpan(e,q.RESPONSE_END,t)}))}),e.setAttribute(et,location.href),e.setAttribute(tt,navigator.userAgent),this._addResourcesSpans(e),this.getConfig().ignoreNetworkEvents||(Y(e,q.FETCH_START,t),Y(e,q.UNLOAD_EVENT_START,t),Y(e,q.UNLOAD_EVENT_END,t),Y(e,q.DOM_INTERACTIVE,t),Y(e,q.DOM_CONTENT_LOADED_EVENT_START,t),Y(e,q.DOM_CONTENT_LOADED_EVENT_END,t),Y(e,q.DOM_COMPLETE,t),Y(e,q.LOAD_EVENT_START,t),Y(e,q.LOAD_EVENT_END,t)),this.getConfig().ignorePerformancePaintEvents||Xi(e),this._addCustomAttributesOnSpan(e,this.getConfig().applyCustomAttributesOnSpan?.documentLoad),this._endSpan(e,q.LOAD_EVENT_END,t))})}_endSpan(e,t,n){e&&(J(n,t)?e.end(n[t]):e.end())}_initResourceSpan(e,t){let n=this._startSpan(X.RESOURCE_FETCH,q.FETCH_START,e,t);n&&(n.setAttribute(et,e.name),Vi(n,e,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnResourceSpan(n,e,this.getConfig().applyCustomAttributesOnSpan?.resourceFetch),this._endSpan(n,q.RESPONSE_END,e))}_startSpan(e,t,n,r){if(J(n,t)&&typeof n[t]==`number`)return this.tracer.startSpan(e,{startTime:n[t]},r?d.setSpan(h.active(),r):void 0)}_waitForPageLoad(){window.document.readyState===`complete`?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener(`load`,this._onDocumentLoaded))}_addCustomAttributesOnSpan(e,t){t&&I(()=>t(e),e=>{e&&this._diag.error(`addCustomAttributesOnSpan`,e)},!0)}_addCustomAttributesOnResourceSpan(e,t,n){n&&I(()=>n(e,t),e=>{e&&this._diag.error(`addCustomAttributesOnResourceSpan`,e)},!0)}enable(){window.removeEventListener(`load`,this._onDocumentLoaded),this._waitForPageLoad()}disable(){window.removeEventListener(`load`,this._onDocumentLoaded)}},Z;(function(e){e.CONNECT_END=`connectEnd`,e.CONNECT_START=`connectStart`,e.DECODED_BODY_SIZE=`decodedBodySize`,e.DOM_COMPLETE=`domComplete`,e.DOM_CONTENT_LOADED_EVENT_END=`domContentLoadedEventEnd`,e.DOM_CONTENT_LOADED_EVENT_START=`domContentLoadedEventStart`,e.DOM_INTERACTIVE=`domInteractive`,e.DOMAIN_LOOKUP_END=`domainLookupEnd`,e.DOMAIN_LOOKUP_START=`domainLookupStart`,e.ENCODED_BODY_SIZE=`encodedBodySize`,e.FETCH_START=`fetchStart`,e.LOAD_EVENT_END=`loadEventEnd`,e.LOAD_EVENT_START=`loadEventStart`,e.NAVIGATION_START=`navigationStart`,e.REDIRECT_END=`redirectEnd`,e.REDIRECT_START=`redirectStart`,e.REQUEST_START=`requestStart`,e.RESPONSE_END=`responseEnd`,e.RESPONSE_START=`responseStart`,e.SECURE_CONNECTION_START=`secureConnectionStart`,e.START_TIME=`startTime`,e.UNLOAD_EVENT_END=`unloadEventEnd`,e.UNLOAD_EVENT_START=`unloadEventStart`})(Z||={});var Qi=`http.response_content_length`,$i=`http.response_content_length_uncompressed`,ea;function ta(){return ea||=document.createElement(`a`),ea}function na(e,t){return t in e}function Q(e,t,n,r=!0){if(na(n,t)&&typeof n[t]==`number`&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function ra(e,t,n=!1,r,i){if(r===void 0&&(r=t[Z.START_TIME]!==0),n||(Q(e,Z.FETCH_START,t,r),Q(e,Z.DOMAIN_LOOKUP_START,t,r),Q(e,Z.DOMAIN_LOOKUP_END,t,r),Q(e,Z.CONNECT_START,t,r),Q(e,Z.SECURE_CONNECTION_START,t,r),Q(e,Z.CONNECT_END,t,r),Q(e,Z.REQUEST_START,t,r),Q(e,Z.RESPONSE_START,t,r),Q(e,Z.RESPONSE_END,t,r)),!i){let n=t[Z.ENCODED_BODY_SIZE];n!==void 0&&e.setAttribute(Qi,n);let r=t[Z.DECODED_BODY_SIZE];r!==void 0&&n!==r&&e.setAttribute($i,r)}}function ia(e){return e.slice().sort((e,t)=>{let n=e[Z.FETCH_START],r=t[Z.FETCH_START];return n>r?1:n<r?-1:0})}function aa(){return typeof location<`u`?location.origin:void 0}function oa(e,t,n,r,i=new WeakSet,a){let o=la(e);e=o.toString();let s=ca(e,t,n,r,i,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};let c=ia(s);if(o.origin!==aa()&&c.length>1){let e=c[0],t=sa(c,e[Z.RESPONSE_END],n),r=e[Z.RESPONSE_END];return t[Z.FETCH_START]<r&&(t=e,e=void 0),{corsPreFlightRequest:e,mainRequest:t}}else return{mainRequest:s[0]}}function sa(e,t,n){let r=w(n),i=w(C(t)),a=e[1],o,s=e.length;for(let t=1;t<s;t++){let n=e[t],s=w(C(n[Z.FETCH_START])),c=r-w(C(n[Z.RESPONSE_END]));s>=i&&(!o||c<o)&&(o=c,a=n)}return a}function ca(e,t,n,r,i,a){let o=w(t),s=w(n),c=r.filter(t=>{let n=w(C(t[Z.FETCH_START])),r=w(C(t[Z.RESPONSE_END]));return t.initiatorType.toLowerCase()===(a||`xmlhttprequest`)&&t.name===e&&n>=o&&r<=s});return c.length>0&&(c=c.filter(e=>!i.has(e))),c}function la(e){if(typeof URL==`function`)return new URL(e,typeof document<`u`?document.baseURI:typeof location<`u`?location.href:void 0);let t=ta();return t.href=e,t}function ua(e,t){let n=t||[];return(typeof n==`string`||n instanceof RegExp)&&(n=[n]),la(e).origin===aa()?!0:n.some(t=>hn(e,t))}var da;(function(e){e.COMPONENT=`component`,e.HTTP_STATUS_TEXT=`http.status_text`})(da||={});var fa=`http.host`,pa=`http.method`,ma=`http.request.body.size`,ha=`http.request_content_length_uncompressed`,ga=`http.scheme`,_a=`http.status_code`,va=`http.url`,ya=`http.user_agent`,ba=_.createComponentLogger({namespace:`@opentelemetry/opentelemetry-instrumentation-fetch/utils`});function xa(...e){if(e[0]instanceof URL||typeof e[0]==`string`){let t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){let{body:e,length:n}=Sa(t.body);return t.body=e,n}else return Promise.resolve(wa(t.body))}else{let t=e[0];return t?.body?t.clone().text().then(e=>Ea(e)):Promise.resolve()}}function Sa(e){if(!e.pipeThrough)return ba.warn(`Platform has ReadableStream but not pipeThrough!`),{body:e,length:Promise.resolve(void 0)};let t=0,n,r=new Promise(e=>{n=e}),i=new TransformStream({start(){},async transform(e,n){let r=await e;t+=r.byteLength,n.enqueue(e)},flush(){n(t)}});return{body:e.pipeThrough(i),length:r}}function Ca(e){return typeof Document<`u`&&e instanceof Document}function wa(e){if(Ca(e))return new XMLSerializer().serializeToString(document).length;if(typeof e==`string`)return Ea(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return Da(e);if(e instanceof URLSearchParams)return Ea(e.toString());if(e.byteLength!==void 0)return e.byteLength;ba.warn(`unknown body type`)}var Ta=new TextEncoder;function Ea(e){return Ta.encode(e).byteLength}function Da(e){let t=0;for(let[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}function Oa(e){let t=ja(),n=e.toUpperCase();return n in t?n:`_OTHER`}var ka={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0},Aa;function ja(){return Aa===void 0&&(Aa=ka),Aa}var Ma={"https:":`443`,"http:":`80`};function Na(e){let t=Number(e.port||Ma[e.protocol]);if(t&&!isNaN(t))return t}var Pa=`0.204.0`,Fa=300,Ia=typeof process==`object`&&process.release?.name===`node`,La=class extends Rr{component=`fetch`;version=Pa;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(e={}){super(`@opentelemetry/instrumentation-fetch`,Pa,e),this._semconvStability=zr(`http`,e?.semconvStabilityOptIn)}init(){}_addChildSpan(e,t){let n=this.tracer.startSpan(`CORS Preflight`,{startTime:t[Z.FETCH_START]},d.setSpan(h.active(),e)),r=!(this._semconvStability&R.OLD);ra(n,t,this.getConfig().ignoreNetworkEvents,void 0,r),n.end(t[Z.RESPONSE_END])}_addFinalSpanAttributes(e,t){let n=la(t.url);if(this._semconvStability&R.OLD&&(e.setAttribute(_a,t.status),t.statusText!=null&&e.setAttribute(da.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(fa,n.host),e.setAttribute(ga,n.protocol.replace(`:`,``)),typeof navigator<`u`&&e.setAttribute(ya,navigator.userAgent)),this._semconvStability&R.STABLE){e.setAttribute(lt,t.status),e.setAttribute(ut,n.hostname);let r=Na(n);r&&e.setAttribute(dt,r)}}_addHeaders(e,t){if(!ua(t,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};p.inject(h.active(),e),Object.keys(e).length>0&&this._diag.debug(`headers inject skipped due to CORS policy`);return}if(e instanceof Request)p.inject(h.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else if(e.headers instanceof Headers)p.inject(h.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else if(e.headers instanceof Map)p.inject(h.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else{let t={};p.inject(h.active(),t),e.headers=Object.assign({},t,e.headers||{})}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(e,t={}){if(gn(e,this.getConfig().ignoreUrls)){this._diag.debug(`ignoring span as url matches ignored url`);return}let n=``,r={};if(this._semconvStability&R.OLD){let i=(t.method||`GET`).toUpperCase();n=`HTTP ${i}`,r[da.COMPONENT]=this.moduleName,r[pa]=i,r[va]=e}if(this._semconvStability&R.STABLE){let i=t.method,a=Oa(t.method||`GET`);n||=a,r[st]=a,a!==i&&(r[ct]=i),r[vt]=e}return this.tracer.startSpan(n,{kind:be.CLIENT,attributes:r})}_findResourceAndAddNetworkEvents(e,t,n){let r=t.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType(`resource`)}let i=oa(t.spanUrl,t.startTime,n,r,this._usedResources,`fetch`);if(i.mainRequest){let t=i.mainRequest;this._markResourceAsUsed(t);let n=i.corsPreFlightRequest;n&&(this._addChildSpan(e,n),this._markResourceAsUsed(n));let r=!(this._semconvStability&R.OLD);ra(e,t,this.getConfig().ignoreNetworkEvents,void 0,r)}}_markResourceAsUsed(e){this._usedResources.add(e)}_endSpan(e,t,n){let r=x(Date.now()),i=S();this._addFinalSpanAttributes(e,n),this._semconvStability&R.STABLE&&n.status>=400&&(e.setStatus({code:m.ERROR}),e.setAttribute(rt,String(n.status))),setTimeout(()=>{t.observer?.disconnect(),this._findResourceAndAddNetworkEvents(e,t,i),this._tasksCount--,this._clearResources(),e.end(r)},Fa)}_patchConstructor(){return e=>{let t=this;return function(...n){let r=this,i=la(n[0]instanceof Request?n[0].url:String(n[0])).href,a=n[0]instanceof Request?n[0]:n[1]||{},o=t._createSpan(i,a);if(!o)return e.apply(this,n);let s=t._prepareSpanData(i);t.getConfig().measureRequestSize&&xa(...n).then(e=>{e&&(t._semconvStability&R.OLD&&o.setAttribute(ha,e),t._semconvStability&R.STABLE&&o.setAttribute(ma,e))}).catch(e=>{t._diag.warn(`getFetchBodyLength`,e)});function c(e,n){t._applyAttributesAfterFetch(e,a,n),t._endSpan(e,s,{status:n.status||0,statusText:n.message,url:i})}function l(e,n){t._applyAttributesAfterFetch(e,a,n),n.status>=200&&n.status<400?t._endSpan(e,s,n):t._endSpan(e,s,{status:n.status,statusText:n.statusText,url:i})}function u(e,t,n){try{let t=n.clone().body;if(t){let r=t.getReader(),i=()=>{r.read().then(({done:t})=>{t?l(e,n):i()},t=>{c(e,t)})};i()}else l(e,n)}finally{t(n)}}function f(e,t,n){try{c(e,n)}finally{t(n)}}return new Promise((n,s)=>h.with(d.setSpan(h.active(),o),()=>(t._addHeaders(a,i),t._callRequestHook(o,a),t._tasksCount++,e.apply(r,a instanceof Request?[a]:[i,a]).then(u.bind(r,o,n),f.bind(r,o,s)))))}}}_applyAttributesAfterFetch(e,t,n){let r=this.getConfig().applyCustomAttributesOnSpan;r&&I(()=>r(e,t,n),e=>{e&&this._diag.error(`applyCustomAttributesOnSpan`,e)},!0)}_callRequestHook(e,t){let n=this.getConfig().requestHook;n&&I(()=>n(e,t),e=>{e&&this._diag.error(`requestHook`,e)},!0)}_prepareSpanData(e){let t=S(),n=[];if(typeof PerformanceObserver!=`function`)return{entries:n,startTime:t,spanUrl:e};let r=new PerformanceObserver(t=>{t.getEntries().forEach(t=>{t.initiatorType===`fetch`&&t.name===e&&n.push(t)})});return r.observe({entryTypes:[`resource`]}),{entries:n,observer:r,startTime:t,spanUrl:e}}enable(){if(Ia){this._diag.warn(`this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()`);return}L(fetch)&&(this._unwrap(Xe,`fetch`),this._diag.debug(`removing previous patch for constructor`)),this._wrap(Xe,`fetch`,this._patchConstructor())}disable(){Ia||(this._unwrap(Xe,`fetch`),this._usedResources=new WeakSet)}},$;(function(e){e.EVENT_TYPE=`event_type`,e.TARGET_ELEMENT=`target_element`,e.TARGET_XPATH=`target_xpath`,e.HTTP_URL=`http.url`})($||={});var Ra=`0.49.0`,za=`@opentelemetry/instrumentation-user-interaction`,Ba=`OT_ZONE_CONTEXT`,Va=`Navigation:`,Ha=[`click`];function Ua(){return!1}var Wa=class extends Rr{version=Ra;moduleName=`user-interaction`;_spansData=new WeakMap;_wrappedListeners=new WeakMap;_eventsSpanMap=new WeakMap;_eventNames;_shouldPreventSpanCreation;constructor(e={}){super(za,Ra,e),this._eventNames=new Set(e?.eventNames??Ha),this._shouldPreventSpanCreation=typeof e?.shouldPreventSpanCreation==`function`?e.shouldPreventSpanCreation:Ua}init(){}_checkForTimeout(e,t){let n=this._spansData.get(t);n&&(e.source===`setTimeout`?n.hrTimeLastTimeout=S():e.source!==`Promise.then`&&e.source!==`setTimeout`&&(n.hrTimeLastTimeout=void 0))}_allowEventName(e){return this._eventNames.has(e)}_createSpan(e,t,n){if(!(e instanceof HTMLElement)||!e.getAttribute||e.hasAttribute(`disabled`)||!this._allowEventName(t))return;let r=Hi(e,!0);try{let i=this.tracer.startSpan(t,{attributes:{[$.EVENT_TYPE]:t,[$.TARGET_ELEMENT]:e.tagName,[$.TARGET_XPATH]:r,[$.HTTP_URL]:window.location.href}},n?d.setSpan(h.active(),n):void 0);return this._shouldPreventSpanCreation(t,e,i)===!0?void 0:(this._spansData.set(i,{taskCount:0}),i)}catch(e){this._diag.error(`failed to start create new user interaction span`,e)}}_decrementTask(e){let t=this._spansData.get(e);t&&(t.taskCount--,t.taskCount===0&&this._tryToEndSpan(e,t.hrTimeLastTimeout))}_getCurrentSpan(e){let t=e.get(Ba);return t&&d.getSpan(t)}_incrementTask(e){let t=this._spansData.get(e);t&&t.taskCount++}addPatchedListener(e,t,n,r){let i=this._wrappedListeners.get(n);i||(i=new Map,this._wrappedListeners.set(n,i));let a=i.get(t);return a||(a=new Map,i.set(t,a)),a.has(e)?!1:(a.set(e,r),!0)}removePatchedListener(e,t,n){let r=this._wrappedListeners.get(n);if(!r)return;let i=r.get(t);if(!i)return;let a=i.get(e);return a&&(i.delete(e),i.size===0&&(r.delete(t),r.size===0&&this._wrappedListeners.delete(n))),a}_invokeListener(e,t,n){return typeof e==`function`?e.apply(t,n):e.handleEvent(n[0])}_patchAddEventListener(){let e=this;return t=>function(n,r,i){if(!r)return t.call(this,n,r,i);let a=i&&typeof i==`object`&&i.once,o=function(...t){let i,o=t[0],s=o?.target;o&&(i=e._eventsSpanMap.get(o)),a&&e.removePatchedListener(this,n,r);let c=e._createSpan(s,n,i);return c?(o&&e._eventsSpanMap.set(o,c),h.with(d.setSpan(h.active(),c),()=>{let n=e._invokeListener(r,this,t);return c.end(),n})):e._invokeListener(r,this,t)};if(e.addPatchedListener(this,n,r,o))return t.call(this,n,o,i)}}_patchRemoveEventListener(){let e=this;return t=>function(n,r,i){let a=e.removePatchedListener(this,n,r);return a?t.call(this,n,a,i):t.call(this,n,r,i)}}_getPatchableEventTargets(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]}_patchHistoryApi(){this._unpatchHistoryApi(),this._wrap(history,`replaceState`,this._patchHistoryMethod()),this._wrap(history,`pushState`,this._patchHistoryMethod()),this._wrap(history,`back`,this._patchHistoryMethod()),this._wrap(history,`forward`,this._patchHistoryMethod()),this._wrap(history,`go`,this._patchHistoryMethod())}_patchHistoryMethod(){let e=this;return t=>function(...n){let r=`${location.pathname}${location.hash}${location.search}`,i=t.apply(this,n),a=`${location.pathname}${location.hash}${location.search}`;return r!==a&&e._updateInteractionName(a),i}}_unpatchHistoryApi(){L(history.replaceState)&&this._unwrap(history,`replaceState`),L(history.pushState)&&this._unwrap(history,`pushState`),L(history.back)&&this._unwrap(history,`back`),L(history.forward)&&this._unwrap(history,`forward`),L(history.go)&&this._unwrap(history,`go`)}_updateInteractionName(e){let t=d.getSpan(h.active());t&&typeof t.updateName==`function`&&t.updateName(`${Va} ${e}`)}_patchZoneCancelTask(){let e=this;return t=>function(n){let r=Zone.current,i=e._getCurrentSpan(r);return i&&e._shouldCountTask(n,r)&&e._decrementTask(i),t.call(this,n)}}_patchZoneScheduleTask(){let e=this;return t=>function(n){let r=Zone.current,i=e._getCurrentSpan(r);return i&&e._shouldCountTask(n,r)&&(e._incrementTask(i),e._checkForTimeout(n,i)),t.call(this,n)}}_patchZoneRunTask(){let e=this;return t=>function(n,r,i){let a=(Array.isArray(i)&&i[0]instanceof Event?i[0]:void 0)?.target,o,s=this;if(a){if(o=e._createSpan(a,n.eventName),o)return e._incrementTask(o),s.run(()=>{try{return h.with(d.setSpan(h.active(),o),()=>{let e=Zone.current;return n._zone=e,t.call(e,n,r,i)})}finally{e._decrementTask(o)}})}else o=e._getCurrentSpan(s);try{return t.call(s,n,r,i)}finally{o&&e._shouldCountTask(n,s)&&e._decrementTask(o)}}}_shouldCountTask(e,t){if(e._zone&&(t=e._zone),!t||!e.data||e.data.isPeriodic)return!1;let n=this._getCurrentSpan(t);return!n||!this._spansData.get(n)?!1:e.type===`macroTask`||e.type===`microTask`}_tryToEndSpan(e,t){e&&this._spansData.get(e)&&(e.end(t),this._spansData.delete(e))}enable(){let e=this._getZoneWithPrototype();this._diag.debug(`applying patch to`,this.moduleName,this.version,`zone:`,!!e),e?(L(e.prototype.runTask)&&(this._unwrap(e.prototype,`runTask`),this._diag.debug(`removing previous patch from method runTask`)),L(e.prototype.scheduleTask)&&(this._unwrap(e.prototype,`scheduleTask`),this._diag.debug(`removing previous patch from method scheduleTask`)),L(e.prototype.cancelTask)&&(this._unwrap(e.prototype,`cancelTask`),this._diag.debug(`removing previous patch from method cancelTask`)),this._zonePatched=!0,this._wrap(e.prototype,`runTask`,this._patchZoneRunTask()),this._wrap(e.prototype,`scheduleTask`,this._patchZoneScheduleTask()),this._wrap(e.prototype,`cancelTask`,this._patchZoneCancelTask())):(this._zonePatched=!1,this._getPatchableEventTargets().forEach(e=>{L(e.addEventListener)&&(this._unwrap(e,`addEventListener`),this._diag.debug(`removing previous patch from method addEventListener`)),L(e.removeEventListener)&&(this._unwrap(e,`removeEventListener`),this._diag.debug(`removing previous patch from method removeEventListener`)),this._wrap(e,`addEventListener`,this._patchAddEventListener()),this._wrap(e,`removeEventListener`,this._patchRemoveEventListener())})),this._patchHistoryApi()}disable(){let e=this._getZoneWithPrototype();this._diag.debug(`removing patch from`,this.moduleName,this.version,`zone:`,!!e),e&&this._zonePatched?(L(e.prototype.runTask)&&this._unwrap(e.prototype,`runTask`),L(e.prototype.scheduleTask)&&this._unwrap(e.prototype,`scheduleTask`),L(e.prototype.cancelTask)&&this._unwrap(e.prototype,`cancelTask`)):this._getPatchableEventTargets().forEach(e=>{L(e.addEventListener)&&this._unwrap(e,`addEventListener`),L(e.removeEventListener)&&this._unwrap(e,`removeEventListener`)}),this._unpatchHistoryApi()}_getZoneWithPrototype(){return window.Zone}},Ga=`open-knowledge-app`,Ka=!1;function qa(){return{BASE_URL:`./`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_APP_VERSION:`0.58.10`}?.VITE_OTEL_COLLECTOR_URL??`http://localhost:14318`}function Ja(){if(Ka)return;Ka=!0;let e=null,t=!1;try{let n=qa(),r={BASE_URL:`./`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_APP_VERSION:`0.58.10`};e=new Ri({resource:Hr({[ft]:`open-knowledge-app`,[pt]:r?.VITE_APP_VERSION??`dev`,[nt]:r?.MODE??`dev`}),spanProcessors:[new Pi(new xr({url:`${n}/v1/traces`}),{maxExportBatchSize:50,scheduledDelayMillis:2e3})]}),e.register(),t=!0,Mr({instrumentations:[new Zi,new Wa({eventNames:[`click`,`submit`]}),new La({propagateTraceHeaderCorsUrls:[/^https?:\/\/localhost(:\d+)?\/api\//,/^https?:\/\/127\.0\.0\.1(:\d+)?\/api\//,/^\/api\//],clearTimingResources:!0})]}),console.info(`[otel] frontend telemetry initialized — OTLP/HTTP → ${n}/v1/traces`)}catch(n){console.warn(`[otel] frontend telemetry init failed — continuing without`,n),t&&e&&e.shutdown().catch(()=>{}),Ka=!1}}function Ya(){return d.getTracer(Ga)}export{Ya as getAppTracer,Ja as install};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-CAkY8Blx.js";var t=e(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]);export{t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dist-DcC48PoS.js","./chunk-CYidjpOJ.js","./w3c-keyname-DlL_314g.js","./dist-B6-lGe3v.js","./dist-B2cnPina.js","./dist-D1tMwBQk.js","./dist-CBNvtE_Z.js","./dist-Bupb8oYY.js","./dist-B7D29Alr.js","./dist-BCsX1IX1.js","./dist-ln6t9XST.js","./dist-Ej4WxQRm.js","./dist-BmUQ27ns.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./preload-helper-Chd9yIcd.js";var t=new Map;function n(e){let n=t.get(e);if(n)return n;let i=r(e);return t.set(e,i),i}async function r(t){switch(t){case`bash`:case`shell`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{shell:e}=await import(`./shell-Bx6DIFTv.js`);return{shell:e}},[],import.meta.url)).shell);case`c`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{c:e}=await import(`./clike-k_S3UtDm.js`);return{c:e}},[],import.meta.url)).c);case`cpp`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{cpp:e}=await import(`./clike-k_S3UtDm.js`);return{cpp:e}},[],import.meta.url)).cpp);case`csharp`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{csharp:e}=await import(`./clike-k_S3UtDm.js`);return{csharp:e}},[],import.meta.url)).csharp);case`css`:case`less`:case`scss`:return(await e(async()=>{let{css:e}=await import(`./dist-B6-lGe3v.js`).then(e=>e.r);return{css:e}},__vite__mapDeps([3,1,0,2,4]),import.meta.url)).css().language;case`diff`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{diff:e}=await import(`./diff-BENUoDEj.js`);return{diff:e}},[],import.meta.url)).diff);case`gherkin`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{gherkin:e}=await import(`./gherkin-T9bL_VFc.js`);return{gherkin:e}},[],import.meta.url)).gherkin);case`go`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{go:e}=await import(`./go-DCi8XKcs.js`);return{go:e}},[],import.meta.url)).go);case`ini`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{properties:e}=await import(`./properties-hjzzQ7Bx.js`);return{properties:e}},[],import.meta.url)).properties);case`java`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{java:e}=await import(`./clike-k_S3UtDm.js`);return{java:e}},[],import.meta.url)).java);case`javascript`:return(await e(async()=>{let{javascript:e}=await import(`./dist-D1tMwBQk.js`).then(e=>e.t);return{javascript:e}},__vite__mapDeps([5,1,6,0,2,4]),import.meta.url)).javascript().language;case`json`:return(await e(async()=>{let{json:e}=await import(`./dist-Bupb8oYY.js`).then(e=>e.t);return{json:e}},__vite__mapDeps([7,1,0,2,4]),import.meta.url)).json().language;case`kotlin`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{kotlin:e}=await import(`./clike-k_S3UtDm.js`);return{kotlin:e}},[],import.meta.url)).kotlin);case`lua`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{lua:e}=await import(`./lua-CM3Pd_NE.js`);return{lua:e}},[],import.meta.url)).lua);case`markdown`:return(await e(async()=>{let{markdown:e}=await import(`./dist-B7D29Alr.js`).then(e=>e.t);return{markdown:e}},__vite__mapDeps([8,1,6,0,2,9,3,4,5]),import.meta.url)).markdown().language;case`objectivec`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{objectiveC:e}=await import(`./clike-k_S3UtDm.js`);return{objectiveC:e}},[],import.meta.url)).objectiveC);case`perl`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{perl:e}=await import(`./perl-e6CciIHG.js`);return{perl:e}},[],import.meta.url)).perl);case`python`:return(await e(async()=>{let{python:e}=await import(`./dist-ln6t9XST.js`);return{python:e}},__vite__mapDeps([10,6,0,1,2,4]),import.meta.url)).python().language;case`r`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{r:e}=await import(`./r-BvIsl7DP.js`);return{r:e}},[],import.meta.url)).r);case`ruby`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{ruby:e}=await import(`./ruby-Bc0kaLVN.js`);return{ruby:e}},[],import.meta.url)).ruby);case`rust`:return(await e(async()=>{let{rust:e}=await import(`./dist-Ej4WxQRm.js`);return{rust:e}},__vite__mapDeps([11,0,1,2,4]),import.meta.url)).rust().language;case`sql`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{standardSQL:e}=await import(`./sql-CXlI6nqX.js`);return{standardSQL:e}},[],import.meta.url)).standardSQL);case`swift`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{swift:e}=await import(`./swift-DrCAABwv.js`);return{swift:e}},[],import.meta.url)).swift);case`typescript`:return(await e(async()=>{let{javascript:e}=await import(`./dist-D1tMwBQk.js`).then(e=>e.t);return{javascript:e}},__vite__mapDeps([5,1,6,0,2,4]),import.meta.url)).javascript({typescript:!0,jsx:!0}).language;case`html`:case`xml`:return(await e(async()=>{let{html:e}=await import(`./dist-BCsX1IX1.js`).then(e=>e.t);return{html:e}},__vite__mapDeps([9,1,3,0,2,4,5,6]),import.meta.url)).html().language;case`yaml`:return(await e(async()=>{let{yaml:e}=await import(`./dist-BmUQ27ns.js`).then(e=>e.t);return{yaml:e}},__vite__mapDeps([12,1,0,2,4]),import.meta.url)).yaml().language;default:return null}}async function i(t,r){if(t===`canvas`)return(await e(async()=>{let{json:e}=await import(`./dist-Bupb8oYY.js`).then(e=>e.t);return{json:e}},__vite__mapDeps([7,1,0,2,4]),import.meta.url)).json().language;if(r){let e=await n(r);if(e)return e}return t===`toml`?(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-DcC48PoS.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{toml:e}=await import(`./toml-Dnao59oL.js`);return{toml:e}},[],import.meta.url)).toml):null}export{i as t};
@@ -1 +0,0 @@
1
- import"./chunk-KEIR6QF5-imCK5c0A.js";import{n as e}from"./chunk-CQNSW5MT-B-z9tlOH.js";export{e as createTreeViewServices};
@@ -1 +0,0 @@
1
- import"./chunk-KEIR6QF5-imCK5c0A.js";import{n as e}from"./chunk-R7FJI6CG-DZemirzU.js";export{e as createTreemapServices};
@@ -1,8 +0,0 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{A as n,Dt as r,Nn as i,Wn as a,Xn as o,a as s,kt as c,mn as l,nt as u,on as d,rt as f,un as p,vt as m,wn as h}from"./DocumentContext-DjeS2Iep.js";import{t as g}from"./react-f2sANaYj.js";import{n as _,r as v}from"./dist-Nvb76hAm.js";import{r as y,t as b}from"./useQuery-ZeEDLtxh.js";import{t as x}from"./compiler-runtime-BfE3aGVn.js";import{o as S}from"./local-menu-action-bus-aAi23OVU.js";import{t as C}from"./utils-CPqDy6Hr.js";import{t as w}from"./button-CA0dewJJ.js";import{i as T,n as E,t as D}from"./tooltip-DPvMEqsq.js";import{n as O,r as k,t as A}from"./collapsible-COrqeoHr.js";import{M as j,T as M,at as N,ct as P,rt as F}from"./CodeMirrorPropInput-DsPE0Ftk.js";import{n as I,t as L}from"./toggle-group-BlEg4yJE.js";import{$n as R,Eo as z,F as B,Ni as V,Qn as H,St as U,an as W,do as G,on as K,vt as ee,zo as q}from"./dist-D-pIxpOA2.js";import{n as J}from"./dist-DTX2HxC82.js";import{o as te}from"./use-settings-route-B0SXlDtB.js";import{t as Y}from"./dist-BgXDUIPy.js";import{_ as ne,d as re}from"./documents-events-Dv0-c6Gq.js";import{t as X}from"./createLucideIcon-CAkY8Blx.js";import{t as ie}from"./chevron-right-BVvjaUfh.js";import{n as ae,t as oe}from"./lint-plugin-meta-C15NfeTq.js";import{t as se}from"./circle-alert-CKGYtHdt.js";import{i as ce,r as le}from"./prop-types-BizcKfNc.js";import{t as ue}from"./refresh-cw-D41gUk_B.js";import{t as de}from"./triangle-alert-CJVfCxE0.js";import{t as fe}from"./wrench-JX3g_hHJ.js";import{f as pe,u as me}from"./doc-paths-je9IlWgC.js";import{a as he,i as ge}from"./startup-marks-dhMG98NA.js";import{t as _e}from"./badge-8D3yWFye.js";import{C as ve,D as ye}from"./config-provider-PxPHWQK1.js";import{$ as be,It as xe,Lt as Se,Ot as Ce,Y as we,Z as Te}from"./dist-DcC48PoS.js";import{a as Ee,c as De,i as Oe,n as ke,r as Ae,s as je,t as Me}from"./panel-CZuoQmmu.js";import{t as Ne}from"./skeleton-BR4i6Fy5.js";import{a as Pe,c as Fe,d as Ie}from"./lint-config-client-C3CAQ-EN.js";var Le=X(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]);function Re(){return S()?0:56}var ze=56,Be=2,Ve=150,He=2e3;function Ue(e,t,n){return e.top+e.height/2-(n+t)/2}function We(e,t){let n=Math.max(0,t.scrollHeight-t.clientHeight);return Math.max(0,Math.min(e,n))}function Ge(e){let{docName:t,container:n,measureTarget:r,placement:i,intent:a,grade:o,landedMode:s,transition:c,onOutcome:u,onDiscardQueuedTarget:f,toolbarOffset:m=ze,driftThresholdPx:h=Be,quietMs:g=Ve,abandonAfterMs:_=He}=e,v=e.contentColumn??n.firstElementChild,y=d(t),b=p(t,{yieldsToNavigation:a===`toggle`,supersede:()=>P(`superseded`)}),x=n.style.overflowAnchor;n.style.overflowAnchor=`none`,c&&he(`ok/mode-switch/transition`,{from:c.from,to:c.to,grade:o});let S=!1,C=null,w,T,E=0,D,O=()=>{let e=r();return e===null?null:We(i===`center`?Ue(e,n.clientHeight,m):e.top-m,n)},k=()=>{let e=O();if(e===null)return{measurable:!1,moved:!1};C=e;let t=Math.abs(n.scrollTop-e)>h;return t&&(n.scrollTop=e),{measurable:!0,moved:t}},A=()=>n.scrollTop-(O()??C??n.scrollTop),j=()=>{w&&clearTimeout(w),T&&clearTimeout(T),E&&cancelAnimationFrame(E),D?.disconnect(),n.removeEventListener(`wheel`,I),n.removeEventListener(`touchstart`,I),n.removeEventListener(`contentvisibilityautostatechange`,L,!0),n.style.overflowAnchor=x,y.release(),b.release()},M=()=>{if(S)return;S=!0;let e;try{k(),e=A(),C!==null&&l({docName:t,container:n,targetScrollTop:n.scrollTop,mode:s})}finally{j()}he(`ok/landing/land`,{grade:o,delta:e}),u?.({status:`landed`,delta:e})},N=()=>{if(S)return;S=!0;let e=C??n.scrollTop,t;try{t=A()}finally{j()}he(`ok/landing/abandoned`,{grade:o,target:e,delta:t}),u?.({status:`abandoned`,delta:t})},P=e=>{S||(S=!0,j(),e===`mode-flip`&&f?.(),u?.({status:`cancelled`,reason:e}))},F=()=>{w&&clearTimeout(w),w=setTimeout(M,g)};function I(){P(`user-scroll`)}function L(){if(S)return;let{measurable:e,moved:t}=k();e&&(t||w===void 0)&&F()}try{k().measurable&&F(),n.addEventListener(`contentvisibilityautostatechange`,L,!0),n.addEventListener(`wheel`,I,{passive:!0}),n.addEventListener(`touchstart`,I,{passive:!0}),typeof ResizeObserver<`u`&&v&&(D=new ResizeObserver(L),D.observe(v)),E=requestAnimationFrame(L),T=setTimeout(N,_)}catch(e){throw S=!0,j(),e}return{cancel:P}}function Ke(e){switch(e){case`bulletList`:case`orderedList`:case`taskList`:case`list`:return`list`;case`codeBlock`:case`code`:return`code`;case`horizontalRule`:case`thematicBreak`:return`thematicBreak`;case`jsxComponent`:case`mdxJsxFlowElement`:case`mdxJsxTextElement`:return`jsx`;case`htmlBlock`:case`html`:return`html`;default:return e}}function qe(e){return typeof e!=`object`||!e?``:`value`in e&&typeof e.value==`string`?e.value:`children`in e&&Array.isArray(e.children)?e.children.map(qe).join(``):``}function Je(e,t){let{frontmatter:n,body:r}=q(e),i=n===``?0:n.split(`
2
- `).length-1;try{return{blocks:t.parseToEditorMdast(r).children.map(e=>({start:(e.position?.start.line??1/0)+i,end:(e.position?.end.line??-1/0)+i,kind:Ke(e.type),text:qe(e)})),fmLineCount:i}}catch{return performance.mark(`ok/block-spans/parse-failed`),{blocks:[],fmLineCount:i}}}function Ye(e,t){let{blocks:n,fmLineCount:r}=Je(e,t);return{spans:n.map(e=>({start:e.start,end:e.end})),fmLineCount:r}}function Xe(e,t){if(e.length===0)return null;let n=0,r=e.length-1,i=e.length-1;for(;n<=r;){let a=n+r>>1,o=e[a];o!==void 0&&o.end>=t?(i=a,r=a-1):n=a+1}return i}function Ze(e){let t=0;for(let n=e.childCount-1;n>=0;n--){let r=e.child(n);if(r.type.name!==`paragraph`||r.content.size!==0)break;t++}return t<2?e.childCount-t:e.childCount}function Qe(e,t,n){let r=e.childCount,i=Math.max(0,Math.min(t,r)),a=Math.max(i,Math.min(n,r));if(a<=i)return null;let o=0;for(let t=0;t<i;t++)o+=e.child(t).nodeSize;let s=o;for(let t=i;t<a;t++)o+=e.child(t).nodeSize;let c=o,l=e.content.size,u=Math.max(0,Math.min(s,l)),d=Math.max(u,Math.min(c,l));return d<=u?null:{from:u,to:d}}function $e(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
3
- `&&t.push(n+1);return t}function et(e,t,n){return t<=1?0:t-1>=e.length?n:e[t-1]??n}function tt(e,t){let n=0,r=e.length-1,i=1;for(;n<=r;){let a=n+r>>1;(e[a]??0)<=t?(i=a+1,n=a+1):r=a-1}return i}function nt(e,t,n){return Math.max(t,Math.min(e,n))}function rt(e,t){let n=e=>e.replace(/\s+/g,` `).trim();return n(e)===n(t)}function it(e,t){return t.inRange?t.tripwireOk?rt(e.content,t.text)?`exact`:e.kind===t.kind?`same-type-ordinal`:`ordinal`:`ordinal`:`clamped`}function at(e){let t=null,n=null;function r(r){return n!==null&&t===r?n:(n={blocks:Je(r,e).blocks,lineStarts:$e(r)},t=r,n)}return{captureFromWysiwyg(e,t,n){if(e.childCount===0)return null;let r=nt(t,0,e.content.size),i=0,a=e.childCount-1,o=0;for(let t=0;t<e.childCount;t++){let n=e.child(t).nodeSize;if(r<i+n){a=t,o=i+1;break}i+=n,o=i+1}let s=e.child(a),c={blockIndex:a,kind:Ke(s.type.name),content:s.textContent};return n?.refine&&(c.selectionInBlock=Math.max(0,r-o)),c},captureFromSource(e,t,n){let{blocks:i,lineStarts:a}=r(e);if(i.length===0)return null;let o=nt(t,0,e.length),s=Xe(i,tt(a,o));if(s===null)return null;let c=i[s];if(!c)return null;let l={blockIndex:s,kind:c.kind,content:c.text};if(n?.refine){let t=et(a,c.start,e.length);l.selectionInBlock=Math.max(0,o-t)}return l},resolveInSource(e,{source:t,doc:n}){let{blocks:i,lineStarts:a}=r(t);if(i.length===0)return null;let o=e.blockIndex>=0&&e.blockIndex<i.length,s=Ze(n)===i.length,c=i[nt(e.blockIndex,0,i.length-1)],l=et(a,c.start,t.length),u=Math.min(et(a,c.end+1,t.length),t.length),d=it(e,{inRange:o,tripwireOk:s,kind:c.kind,text:c.text}),f=l;return d===`exact`&&e.selectionInBlock!==void 0&&(f=nt(l+e.selectionInBlock,l,u)),{blockStart:l,blockEnd:u,point:f,confidence:d}},resolveInWysiwyg(e,{source:t,doc:n}){let i=Ze(n);if(i===0)return null;let{blocks:a}=r(t),o=e.blockIndex>=0&&e.blockIndex<i,s=i===a.length,c=nt(e.blockIndex,0,i-1),l=Qe(n,c,c+1);if(l===null)return null;let u=n.child(c),d=it(e,{inRange:o,tripwireOk:s,kind:Ke(u.type.name),text:u.textContent});return{blockStart:l.from,blockEnd:l.to,point:l.from,confidence:d}}}}var ot=xe.define(),st=xe.define(),ct=we.mark({class:u}),lt=Se.define({create(){return we.none},update(e,t){let n=e.map(t.changes);for(let e of t.effects)e.is(ot)?n=we.set([ct.range(e.value.from,e.value.to)]):e.is(st)&&(n=we.none);return n},provide:e=>Te.decorations.from(e)}),ut=new WeakMap,dt=be.define(e=>({destroy(){let t=ut.get(e);t!==void 0&&(clearTimeout(t),ut.delete(e))}}));function ft(e,t,n,r){let i=f(e.state.doc.length,t,n,r);if(!i)return;e.dispatch({effects:ot.of(i)});let a=ut.get(e);a!==void 0&&clearTimeout(a);let o=setTimeout(()=>{ut.delete(e),e.dispatch({effects:st.of(null)})},B);ut.set(e,o)}function pt(){return[lt,dt]}var mt=3e4;function ht(){let e=new Map,t=e=>e?Date.now()-e.rememberedAt>mt?null:e.navigation:null;return{remember(t,n){e.set(t,{navigation:n,rememberedAt:Date.now()})},peek(n){return t(e.get(n))},consume(n){let r=e.get(n);return e.delete(n),t(r)},clear(t){e.delete(t)},clearForTest(){e.clear()}}}var gt=ht(),_t=ht(),vt=gt.remember,yt=gt.peek,bt=gt.consume,xt=gt.clear;gt.clearForTest;var St=_t.remember,Ct=_t.peek,wt=_t.consume,Tt=_t.clear;_t.clearForTest;function Et(e,t,n){return{start:ye(e,t),end:ye(e,n)}}function Dt(e,t){let n=ve(e.start,t),r=ve(e.end,t);return n===null||r===null||r.index<=n.index?null:n.index}var Ot=`open-knowledge:view-in-source`,kt=null;function At(){return kt??=at(M()),kt}function jt(e,t,n,r,i=`toggle`){let a=r.captureFromWysiwyg(e,t,{refine:i===`jump`});if(!a)return null;let o=r.resolveInSource(a,{source:n.toString(),doc:e});return{kind:`selection-offset`,intent:i,anchor:a,pin:o?Et(n,o.blockStart,o.blockEnd):void 0}}function Mt(e){let{editor:t,docName:n,ytext:r}=e,i=F(t);if(!i)return;let a=i.state.selection.from,o=jt(i.state.doc,a,r,At(),`jump`);o&&vt(n,o),window.dispatchEvent(new CustomEvent(Ot,{detail:{docName:n}}))}function Nt(e,t,n,r,i){let a=r.captureFromSource(e,t);if(!a)return null;let o=i?r.resolveInSource(a,{source:e,doc:i}):null;return{kind:`selection-offset`,anchor:a,pin:o?Et(n,o.blockStart,o.blockEnd):void 0}}function Pt(e,t){let{source:n,pmDoc:r,ydoc:i,resolver:a}=t;if(e.pin){let t=Dt(e.pin,i);if(t===null){let t=a.resolveInWysiwyg(e.anchor,{source:n,doc:r});return t?{...t,point:t.blockStart,confidence:`clamped`}:null}let o=a.captureFromSource(n,t);if(o)return a.resolveInWysiwyg(o,{source:n,doc:r})}return a.resolveInWysiwyg(e.anchor,{source:n,doc:r})}function Ft(e,t){let{source:n,pmDoc:r,ydoc:i,resolver:a}=t;if(e.pin){let t=Dt(e.pin,i);if(t===null){let t=a.resolveInSource(e.anchor,{source:n,doc:r});return t?{...t,point:t.blockStart,confidence:`clamped`}:null}let o=a.captureFromSource(n,t);if(o)return a.resolveInSource(o,{source:n,doc:r})}return a.resolveInSource(e.anchor,{source:n,doc:r})}function It(e,t){try{return e.coordsAtPos(t)}catch{return null}}function Lt(e,t,n){let r=Math.max(0,Math.min(n,e.state.doc.length)),i=t.getBoundingClientRect().top,a=It(e,r);if(a)return{top:a.top-i+t.scrollTop,height:a.bottom-a.top};try{let n=e.lineBlockAt(r);return{top:e.documentTop-i+t.scrollTop+n.top,height:n.height}}catch{return null}}function Rt(e,t){if(e.isDestroyed)return null;try{let n=e.nodeDOM(t);if(n instanceof HTMLElement)return n;let{node:r}=e.domAtPos(t);return r instanceof HTMLElement?r:r.parentElement}catch{return null}}function zt(e,t,n){if(e.isDestroyed)return null;let r=Rt(e,Math.max(0,Math.min(n,e.state.doc.content.size)));if(!r)return null;let i=r.getBoundingClientRect(),a=t.getBoundingClientRect().top;return{top:i.top-a+t.scrollTop,height:i.height}}function Bt(){return typeof document>`u`?null:m()}function Vt(e,t){let n=t.getBoundingClientRect(),r=n.left+n.width/2,i=Re();for(let t of[i+1,i+12,i+40]){let i=e.posAtCoords({left:r,top:n.top+t});if(i)return i.pos}return null}function Ht(e,t){let n=t.getBoundingClientRect(),r=n.left+n.width/2,i=Re();for(let t of[i+1,i+12,i+40]){let i=e.posAtCoords({x:r,y:n.top+t});if(i!==null)return i}return null}function Ut(e){let{from:t,to:n,docName:r,ytext:i}=e;t===`wysiwyg`&&n===`source`?Wt(r,i):t===`source`&&n===`wysiwyg`&&Gt(r,i)}function Wt(e,t){let n=yt(e);if(n&&n.kind!==`selection-offset`)return;let r=h(e);if(!r)return;let i=F(r);if(!i)return;let a=Bt();if(!a)return;let o=Vt(i,a);if(o===null)return;let s=jt(i.state.doc,o,t,At());s&&vt(e,s)}function Gt(e,t){let n=r(e);if(!n)return;let i=Bt();if(!i)return;let a=Ht(n,i);if(a===null)return;let o=h(e),s=o?F(o)?.state.doc:void 0,c=Nt(t.toString(),a,t,At(),s);c&&St(e,c)}function Kt(e){let{view:t,docName:n,navigation:r,ydoc:i,transition:a}=e,o=h(n),s=o?F(o)?.state.doc:void 0;if(!s)return null;let c=Ft(r,{source:t.state.doc.toString(),pmDoc:s,ydoc:i,resolver:At()});if(!c)return null;let l=Bt();if(!l)return null;let u=c,d=r.intent===`jump`,f=d?u.point:u.blockStart;t.dispatch({effects:Te.scrollIntoView(f,{y:`start`})});let m=!1,g=null,_=p(n,{yieldsToNavigation:!d,supersede:()=>{m=!0,_.release()}}),v=e=>{if(!m){if(It(t,f)===null&&e<8){requestAnimationFrame(()=>v(e+1));return}try{d&&(t.dispatch({selection:Ce.cursor(f)}),t.focus())}finally{_.release()}g=Ge({docName:n,container:l,contentColumn:t.contentDOM,measureTarget:()=>Lt(t,l,f),placement:d?`center`:`top`,intent:d?`jump`:`toggle`,grade:u.confidence,landedMode:`source`,transition:a,toolbarOffset:Re(),onOutcome:d?e=>{e.status===`landed`&&ft(t,u.blockStart,u.blockEnd,u.confidence)}:void 0,onDiscardQueuedTarget:()=>xt(n)})}};return v(0),{cancel:e=>{m=!0,_.release(),g?.cancel(e)}}}function qt(e){let{editor:t,docName:n,navigation:r,ydoc:i,transition:a}=e,o=F(t);if(!o)return null;let s=Pt(r,{source:i.getText(`source`).toString(),pmDoc:o.state.doc,ydoc:i,resolver:At()});if(!s)return null;let c=Bt();if(!c)return null;let l=s;return Ge({docName:n,container:c,contentColumn:o.dom,measureTarget:()=>zt(o,c,l.point),placement:`top`,intent:`toggle`,grade:l.confidence,landedMode:`wysiwyg`,transition:a,toolbarOffset:Re(),onDiscardQueuedTarget:()=>Tt(n)})}var Z=e(g(),1),Q=x(),$=t();function Jt(e){let t=(0,Q.c)(14),{scope:n,onScopeChange:r,projectLabel:i}=e,{_:a}=v(),o;t[0]===r?o=t[1]:(o=e=>{e&&r(e)},t[0]=r,t[1]=o);let s;t[2]===a?s=t[3]:(s=a({id:`aBgwis`}),t[2]=a,t[3]=s);let c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,$.jsx)(I,{value:`doc`,className:`flex-1`,"data-testid":`panel-scope-doc`,children:(0,$.jsx)(_,{id:`UpCz01`})}),t[4]=c):c=t[4];let l;t[5]===i?l=t[6]:(l=i??(0,$.jsx)(_,{id:`ZWyHmq`}),t[5]=i,t[6]=l);let u;t[7]===l?u=t[8]:(u=(0,$.jsx)(I,{value:`project`,className:`flex-1`,"data-testid":`panel-scope-project`,children:l}),t[7]=l,t[8]=u);let d;return t[9]!==n||t[10]!==o||t[11]!==s||t[12]!==u?(d=(0,$.jsx)(`div`,{className:`shrink-0 px-4 pb-2`,children:(0,$.jsxs)(L,{type:`single`,variant:`segmented`,size:`sm`,spacing:1,value:n,onValueChange:o,"aria-label":s,className:`w-full rounded-md bg-muted p-0.5 dark:bg-background`,children:[c,u]})}),t[9]=n,t[10]=o,t[11]=s,t[12]=u,t[13]=d):d=t[13],d}function Yt(e){let t=e.localTarget;if(e.source!==`links`||t===void 0)return e.message;let n=t.resolvedTarget??t.href;return t.reason===`unresolvable`?t.role===`image`?Y._({id:`W5qdI_`,values:{shown:n}}):Y._({id:`bpMVIA`,values:{shown:n}}):t.targetKind===`file`?t.role===`image`?Y._({id:`iSWh95`,values:{shown:n}}):Y._({id:`fOzzSV`,values:{shown:n}}):Y._({id:`XBBZnv`,values:{shown:n}})}var Xt=`audit-superseded`;async function Zt(e={kind:`project`},t){return $t(e,K,!1,t)}async function Qt(e={kind:`project`},t){return $t(e,W,!0,t)}async function $t(e,t,n,r){try{let i=new URLSearchParams;e.kind===`path`?i.set(`path`,e.path):e.kind===`doc`&&i.set(`doc`,e.docName),n&&i.set(`counts`,`1`);let a=i.size===0?``:`?${i}`,o=await fetch(`/api/audit${a}`,r===void 0?void 0:{signal:r});if(!o.ok)return o.status===409?Xt:(console.warn(`[audit] request failed`,o.status,o.statusText),null);let s;try{s=await o.json()}catch{return r?.aborted===!0||console.warn(`[audit] response body is not valid JSON`),null}let c=t.safeParse(s);return c.success?c.data:(console.warn(`[audit] response failed schema validation`,c.error.issues),null)}catch(e){return r?.aborted===!0||console.warn(`[audit] fetch threw`,e),null}}function en(e,t){let n=!1,r=!1,i=!1,a=[],o=null,s=()=>{if(r){i=!0;return}r=!0,o=new AbortController,t({status:`loading`,findings:a}),Zt({kind:`doc`,docName:e},o.signal).then(e=>{if(!(n||o?.signal.aborted===!0)){if(e===null){t({status:`failed`,findings:a});return}if(e===`audit-superseded`){i=!0;return}i||(a=e.files.flatMap(e=>e.diagnostics).filter(e=>e.source===`links`),t({status:`loaded`,findings:a}))}}).finally(()=>{n||(r=!1,o=null,i&&(i=!1,s()))})};s();let c=ne(e=>{(e.includes(`backlinks`)||re(e))&&s()});return()=>{n=!0,o?.abort(),c()}}function tn(e){let t=(0,Q.c)(6),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={docName:null,state:{status:`idle`,findings:[]}},t[0]=n):n=t[0];let[r,i]=(0,Z.useState)(n),a,o;if(t[1]===e?(a=t[2],o=t[3]):(a=()=>{if(e===null){i({docName:null,state:{status:`idle`,findings:[]}});return}return i({docName:e,state:{status:`loading`,findings:[]}}),en(e,t=>i({docName:e,state:t}))},o=[e],t[1]=e,t[2]=a,t[3]=o),(0,Z.useEffect)(a,o),r.docName!==e){let n;return t[4]===e?n=t[5]:(n=e===null?{status:`idle`,findings:[]}:{status:`loading`,findings:[]},t[4]=e,t[5]=n),n}return r.state}function nn(e){return Math.min(50,Math.max(1,Math.ceil(e/10)))}function rn(e,t){return e===t||e%nn(t)===0}var an=[250,500,1e3,2e3,4e3];function on(e){return e.status===503&&e.problemType===`urn:ok:error:too-many-agent-sessions`}async function sn(e,t){let n=await t.fixItem(e);for(let r of an){if(n.ok||!on(n)||!t.shouldContinue()||(console.debug(`[sweep] capacity refusal, backing off %dms`,r),await t.sleep(r),!t.shouldContinue()))break;n=await t.fixItem(e)}return n}async function cn(e){let t=e.items.length,n=[];for(let[r,i]of e.items.entries()){if(r>0&&(await e.sleep(15),!e.shouldContinue()))return{failures:n,cancelled:!0};let a=await sn(i,e);if(a.ok||n.push({item:i,detail:a.errorDetail}),!e.shouldContinue())return{failures:n,cancelled:!0};let o=r+1;rn(o,t)&&e.onProgress(o,t)}return{failures:n,cancelled:!1}}function ln(e){return new Promise(t=>setTimeout(t,e))}var un=null,dn=!1,fn=new Set,pn=new Set;function mn(e){un=e;for(let e of fn)e()}function hn(e){return fn.add(e),()=>{fn.delete(e)}}function gn(){return un}function _n(){return(0,Z.useSyncExternalStore)(hn,gn,gn)}function vn(e){return pn.add(e),()=>{pn.delete(e)}}function yn(){dn=!0}function bn(e,t,n){if(e.length>0&&(console.warn(`[lint] fix-all: ${e.length} of ${n} files failed`,e.map(e=>({file:e.item.file,detail:e.detail}))),!t)){let t=e[0];J.error(Y._({id:`se-tU0`,values:{0:e.length,total:n}}),{description:t===void 0?void 0:`${t.item.file}${t.detail===null?``:` — ${t.detail}`}`})}if(t){J.info(Y._({id:`H1TmTu`}));return}e.length===0&&J.success(Y._({id:`SWX1O7`,values:{total:n}}))}async function xn({items:e,fixItem:t,sleep:n=ln}){if(un!==null||e.length===0)return;let r=e.length;dn=!1,mn({done:0,total:r});let i=[],a=!1,o=!1;try{let o=await cn({items:e,fixItem:t,sleep:n,onProgress:e=>mn({done:e,total:r}),shouldContinue:()=>!dn});i=o.failures,a=o.cancelled}catch(e){console.warn(`[lint] fix-all: sweep threw`,e),o=!0}finally{mn(null)}try{o?J.error(Y._({id:`vwV-kH`})):bn(i,a,r)}finally{for(let e of pn)e()}}var Sn={errorCount:0,warningCount:0},Cn=new Map,wn=new Set,Tn=new Map;function En(){let e=new Map;for(let[t,n]of Cn){let r=n.lint.errorCount+n.links.errorCount,i=n.lint.warningCount+n.links.warningCount;r===0&&i===0||e.set(t,{errorCount:r,warningCount:i})}Tn=e;for(let e of wn)e()}var Dn=H;function On(e){return wn.add(e),()=>{wn.delete(e)}}function kn(){return Tn}function An(e){Cn.clear();for(let t of e)Cn.set(me(t.file),Dn(t.diagnostics));En()}function jn(e){Cn.clear();for(let t of e)Cn.set(me(t.file),{lint:t.lint,links:t.links});En()}function Mn(e,t){Cn.set(e,Dn(t)),En()}function Nn(e,t,n){let r=Cn.get(e)??{lint:Sn,links:Sn},i=r[t];i.errorCount===n.errorCount&&i.warningCount===n.warningCount||(Cn.set(e,{...r,[t]:n}),En())}var Pn=`open-knowledge:lint-nav`;function Fn(e,t){return e.range.start.line-t.range.start.line||e.range.start.character-t.range.start.character}function In(e,t){return{docName:e,line:t.range.start.line+1,column:t.range.start.character+1,source:t.source,...t.frontmatterScope===void 0?{}:{frontmatterScope:t.frontmatterScope}}}function Ln(e){if(e.source!==`links`)return null;let t=e.localTarget;return t===void 0?`document`:t.role===`image`?`image`:t.targetKind===`file`?`file`:t.targetKind===`document`?`document`:`unresolvable`}var Rn={document:a,file:o,image:N,unresolvable:a};function zn(e){return e.linkTarget!==void 0&&Ln(e)===`document`}function Bn(e){let t=(0,Q.c)(40),{diagnostic:n,instanceCount:r}=e,{_:i}=v(),a=n.severity===`error`?se:de,o=n.range.start.line+1,s;t[0]===n?s=t[1]:(s=Ln(n),t[0]=n,t[1]=s);let c=s,l=c===null?null:Rn[c],u=r!==void 0&&r>1,d=n.severity===`error`?`text-destructive`:`text-amber-500`,f;t[2]===d?f=t[3]:(f=C(`mt-0.5 size-3.5 shrink-0`,d),t[2]=d,t[3]=f);let p;t[4]!==a||t[5]!==f?(p=(0,$.jsx)(a,{"aria-hidden":`true`,className:f}),t[4]=a,t[5]=f,t[6]=p):p=t[6];let m;t[7]===n?m=t[8]:(m=Yt(n),t[7]=n,t[8]=m);let h;t[9]===m?h=t[10]:(h=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 text-foreground`,children:m}),t[9]=m,t[10]=h);let g;t[11]!==u||t[12]!==r?(g=u?(0,$.jsxs)(`span`,{className:`mt-0.5 flex shrink-0 items-center gap-1`,children:[(0,$.jsx)(_e,{variant:`gray`,"data-testid":`problems-instance-count`,className:`h-4 px-1 font-sans text-[10px] leading-none`,children:(0,$.jsx)(_,{id:`iZCZmF`,values:{instanceCount:r}})}),(0,$.jsx)(ie,{"aria-hidden":`true`,className:`size-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`})]}):null,t[11]=u,t[12]=r,t[13]=g):g=t[13];let y;t[14]!==p||t[15]!==h||t[16]!==g?(y=(0,$.jsxs)(`span`,{className:`flex items-start gap-1.5 text-sm`,children:[p,h,g]}),t[14]=p,t[15]=h,t[16]=g,t[17]=y):y=t[17];let b=c??void 0,x=l!==null&&`gap-0.5`,S;t[18]===x?S=t[19]:(S=C(`h-4 shrink-0 px-1 font-sans text-[10px] uppercase leading-none`,x),t[18]=x,t[19]=S);let w;t[20]===l?w=t[21]:(w=l===null?null:(0,$.jsx)(l,{"aria-hidden":`true`,className:`size-2.5`}),t[20]=l,t[21]=w);let T;t[22]!==n.source||t[23]!==S||t[24]!==w||t[25]!==b?(T=(0,$.jsxs)(_e,{variant:`gray`,"data-testid":`problems-source-tag`,"data-target-kind":b,className:S,children:[w,n.source]}),t[22]=n.source,t[23]=S,t[24]=w,t[25]=b,t[26]=T):T=t[26];let E;t[27]!==i||t[28]!==n.code||t[29]!==o||t[30]!==u?(E=u?n.code:`${n.code} · ${i({id:`enPTnx`,values:{displayLine:o}})}`,t[27]=i,t[28]=n.code,t[29]=o,t[30]=u,t[31]=E):E=t[31];let D;t[32]===E?D=t[33]:(D=(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:E}),t[32]=E,t[33]=D);let O;t[34]!==T||t[35]!==D?(O=(0,$.jsxs)(`span`,{className:`flex items-center gap-1.5 ps-5 font-mono text-xs text-muted-foreground`,children:[T,D]}),t[34]=T,t[35]=D,t[36]=O):O=t[36];let k;return t[37]!==O||t[38]!==y?(k=(0,$.jsxs)($.Fragment,{children:[y,O]}),t[37]=O,t[38]=y,t[39]=k):k=t[39],k}function Vn(e){let t=new Map;for(let n of e){let e=`${n.source}/${n.code}\u0000${n.linkTarget??``}\u0000${n.message}`,r=t.get(e);r===void 0?t.set(e,{key:e,instances:[n]}):r.instances.push(n)}return[...t.values()]}function Hn(e){let t=(0,Q.c)(63),{group:n,onNavigate:r,navTitle:i,renderActions:a}=e,{_:o}=v(),s=n.instances[0],c,l,u,d,f,p,m,h;if(t[0]!==o||t[1]!==s||t[2]!==n.instances.length||t[3]!==i||t[4]!==r||t[5]!==a){h=Symbol.for(`react.early_return_sentinel`);bb0:{let e=Yt(s);if(n.instances.length===1){let e;t[14]!==s||t[15]!==a?(e=a(s),t[14]=s,t[15]=a,t[16]=e):e=t[16];let n=e,o;t[17]!==s||t[18]!==r?(o=()=>r(s),t[17]=s,t[18]=r,t[19]=o):o=t[19];let c;t[20]!==s||t[21]!==i?(c=i(s),t[20]=s,t[21]=i,t[22]=c):c=t[22];let l;t[23]===s?l=t[24]:(l=(0,$.jsx)(Bn,{diagnostic:s}),t[23]=s,t[24]=l);let u;t[25]!==l||t[26]!==o||t[27]!==c?(u=(0,$.jsx)(`button`,{type:`button`,onClick:o,className:`flex w-full cursor-pointer flex-col gap-0.5 rounded px-2 py-1.5 text-left`,title:c,children:l}),t[25]=l,t[26]=o,t[27]=c,t[28]=u):u=t[28];let d;t[29]===n?d=t[30]:(d=n===null?null:(0,$.jsx)(`div`,{className:`absolute bottom-1 right-1 flex items-center gap-1 rounded bg-muted opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 motion-reduce:transition-none`,children:n}),t[29]=n,t[30]=d);let f;t[31]!==u||t[32]!==d?(f=(0,$.jsxs)(`li`,{className:`group relative rounded transition-colors hover:bg-muted`,children:[u,d]}),t[31]=u,t[32]=d,t[33]=f):f=t[33],h=f;break bb0}p=`rounded`,m=`problems-duplicate-group`,l=A,t[34]!==s||t[35]!==n.instances.length?(f=(0,$.jsx)(k,{className:`group flex w-full cursor-pointer flex-col gap-0.5 rounded px-2 py-1.5 text-left transition-colors hover:bg-muted`,children:(0,$.jsx)(Bn,{diagnostic:s,instanceCount:n.instances.length})}),t[34]=s,t[35]=n.instances.length,t[36]=f):f=t[36],c=O,d=`overflow-hidden data-[state=open]:animate-[collapsible-down_150ms_ease-out] data-[state=closed]:animate-[collapsible-up_150ms_ease-in] motion-reduce:animate-none`,u=o({id:`_Bix3-`,values:{localizedFirstMessage:e}})}t[0]=o,t[1]=s,t[2]=n.instances.length,t[3]=i,t[4]=r,t[5]=a,t[6]=c,t[7]=l,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=m,t[13]=h}else c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],m=t[12],h=t[13];if(h!==Symbol.for(`react.early_return_sentinel`))return h;let g;if(t[37]!==o||t[38]!==n.instances||t[39]!==i||t[40]!==r||t[41]!==a){let e;t[43]!==o||t[44]!==i||t[45]!==r||t[46]!==a?(e=e=>{let t=a(e),n=e.range.start.line+1,s=Yt(e);return(0,$.jsxs)(`li`,{className:`group relative rounded transition-colors hover:bg-muted`,children:[(0,$.jsx)(`button`,{type:`button`,onClick:()=>r(e),className:`flex w-full cursor-pointer rounded px-2 py-1 text-left font-mono text-xs text-muted-foreground`,title:i(e),"aria-label":o({id:`txUHO8`,values:{localizedMessage:s,displayLine:n}}),children:o({id:`enPTnx`,values:{displayLine:n}})}),t===null?null:(0,$.jsx)(`div`,{className:`absolute bottom-0.5 right-1 flex items-center gap-1 rounded bg-muted opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 motion-reduce:transition-none`,children:t})]},Un(e))},t[43]=o,t[44]=i,t[45]=r,t[46]=a,t[47]=e):e=t[47],g=n.instances.map(e),t[37]=o,t[38]=n.instances,t[39]=i,t[40]=r,t[41]=a,t[42]=g}else g=t[42];let _;t[48]!==u||t[49]!==g?(_=(0,$.jsx)(`ul`,{"aria-label":u,className:`flex flex-col gap-0.5 pb-1 ps-5`,"data-testid":`problems-duplicate-instances`,children:g}),t[48]=u,t[49]=g,t[50]=_):_=t[50];let y;t[51]!==c||t[52]!==d||t[53]!==_?(y=(0,$.jsx)(c,{className:d,children:_}),t[51]=c,t[52]=d,t[53]=_,t[54]=y):y=t[54];let b;t[55]!==l||t[56]!==f||t[57]!==y?(b=(0,$.jsxs)(l,{children:[f,y]}),t[55]=l,t[56]=f,t[57]=y,t[58]=b):b=t[58];let x;return t[59]!==b||t[60]!==p||t[61]!==m?(x=(0,$.jsx)(`li`,{className:p,"data-testid":m,children:b}),t[59]=b,t[60]=p,t[61]=m,t[62]=x):x=t[62],x}function Un(e){return`${e.source}/${e.code}-${e.range.start.line}-${e.range.start.character}-${e.message}`}function Wn(e){return e.reduce((e,t)=>e+ +((t.fixes?.length??0)>0),0)}function Gn(e){let t=(0,Q.c)(11),{target:n,creating:r,disabled:i,onCreate:a}=e,{_:o}=v(),s;t[0]!==o||t[1]!==n?(s=o({id:`oWsZk8`,values:{target:n}}),t[0]=o,t[1]=n,t[2]=s):s=t[2];let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,$.jsx)(P,{"aria-hidden":`true`,className:`size-3`}),t[3]=c):c=t[3];let l;t[4]===r?l=t[5]:(l=r?(0,$.jsx)(_,{id:`E9bKSA`}):(0,$.jsx)(_,{id:`XRuL0i`}),t[4]=r,t[5]=l);let u;return t[6]!==i||t[7]!==a||t[8]!==s||t[9]!==l?(u=(0,$.jsxs)(w,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,disabled:i,onClick:a,"aria-label":s,"data-testid":`problems-create-page`,children:[c,l]}),t[6]=i,t[7]=a,t[8]=s,t[9]=l,t[10]=u):u=t[10],u}function Kn(e){let t=(0,Q.c)(8),{tip:n,testId:r,children:i}=e,a;t[0]===i?a=t[1]:(a=(0,$.jsx)(T,{asChild:!0,children:(0,$.jsx)(`span`,{className:`inline-flex shrink-0`,children:i})}),t[0]=i,t[1]=a);let o;t[2]!==r||t[3]!==n?(o=(0,$.jsx)(E,{"data-testid":r,children:n}),t[2]=r,t[3]=n,t[4]=o):o=t[4];let s;return t[5]!==a||t[6]!==o?(s=(0,$.jsxs)(D,{children:[a,o]}),t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function qn(e){let t=(0,Q.c)(21),{count:n,problemCount:r,aiAvailable:i,disabled:a,onClick:o,children:s}=e,{_:c}=v(),l;t[0]!==i||t[1]!==n||t[2]!==r?(l=n>0?(0,$.jsx)(_,{id:`vjwsDi`,values:{count:n}}):r===0?(0,$.jsx)(_,{id:`gAhHu7`}):i?(0,$.jsx)(_,{id:`zA9zRL`}):(0,$.jsx)(_,{id:`X3MMeA`}),t[0]=i,t[1]=n,t[2]=r,t[3]=l):l=t[3];let u;t[4]!==c||t[5]!==s||t[6]!==n||t[7]!==r?(u=s===void 0?r===0?c({id:`4m-xuX`}):n===0?c({id:`SqIoy_`}):void 0:void 0,t[4]=c,t[5]=s,t[6]=n,t[7]=r,t[8]=u):u=t[8];let d;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,$.jsx)(fe,{"aria-hidden":`true`,className:`size-3`}),t[9]=d):d=t[9];let f;t[10]!==s||t[11]!==n?(f=s??(0,$.jsx)(_,{id:`RZXTlY`,values:{count:n}}),t[10]=s,t[11]=n,t[12]=f):f=t[12];let p;t[13]!==a||t[14]!==o||t[15]!==u||t[16]!==f?(p=(0,$.jsxs)(w,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,disabled:a,onClick:o,"aria-label":u,"data-testid":`problems-auto-fix`,children:[d,f]}),t[13]=a,t[14]=o,t[15]=u,t[16]=f,t[17]=p):p=t[17];let m;return t[18]!==l||t[19]!==p?(m=(0,$.jsx)(Kn,{testId:`problems-auto-fix-tip`,tip:l,children:p}),t[18]=l,t[19]=p,t[20]=m):m=t[20],m}function Jn(e){let t=(0,Q.c)(12),{count:n,disabled:r,onClick:a}=e,o;t[0]===n?o=t[1]:(o=(0,$.jsx)(_,{id:`mgDKWS`,values:{count:n}}),t[0]=n,t[1]=o);let s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(i,{"aria-hidden":`true`,className:`size-3`}),t[2]=s):s=t[2];let c;t[3]===n?c=t[4]:(c=(0,$.jsx)(_,{id:`gyHDWC`,values:{count:n}}),t[3]=n,t[4]=c);let l;t[5]!==r||t[6]!==a||t[7]!==c?(l=(0,$.jsxs)(w,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,disabled:r,onClick:a,"data-testid":`problems-fix-with-ai`,children:[s,c]}),t[5]=r,t[6]=a,t[7]=c,t[8]=l):l=t[8];let u;return t[9]!==o||t[10]!==l?(u=(0,$.jsx)(Kn,{testId:`problems-fix-with-ai-tip`,tip:o,children:l}),t[9]=o,t[10]=l,t[11]=u):u=t[11],u}function Yn(e){let t=(0,Q.c)(50),{docName:r,diagnostics:a,linkFindingsStatus:o,onFix:s,onAutoFix:c,onAskAi:l,onFixWithAi:u}=e,d=o===void 0?`loaded`:o,{_:f}=v(),[p,m]=(0,Z.useState)(`doc`),{data:h}=Ie(),g=h===null?null:h.effective.enabled?oe.filter(e=>h.effective.plugins[e.id].enabled):[],y=g!==null&&g.length===0,b;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={status:`idle`},t[0]=b):b=t[0];let[x,S]=(0,Z.useState)(b),C=_n(),O=le(),[k,A]=(0,Z.useState)(null),j=(0,Z.useRef)(!0),M,N;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>(j.current=!0,()=>{j.current=!1}),N=[],t[1]=M,t[2]=N):(M=t[1],N=t[2]),(0,Z.useEffect)(M,N);let P=(0,Z.useRef)(rr),F=(0,Z.useRef)(nr),I;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(I={status:`idle`},t[3]=I):I=t[3];let L=(0,Z.useRef)(I),R;t[4]===x?R=t[5]:(R=()=>{x.status!==`loading`&&(L.current=x)},t[4]=x,t[5]=R),(0,Z.useEffect)(R);let z=(0,Z.useRef)(0),B=[...a].sort(Fn),V=Wn(B),H;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(H=async function(){z.current+=1;let e=z.current,t=L.current;S({status:`loading`});let n=await Zt();if(n===`audit-superseded`){z.current===e&&j.current&&S(t.status===`idle`?{status:`failed`}:t);return}n!==null&&An(n.files),j.current&&S(n===null?{status:`failed`}:{status:`loaded`,result:n})},t[6]=H):H=t[6];let U=H,W;t[7]!==f||t[8]!==x.status||t[9]!==k||t[10]!==O?(W=async function(e){let t=e.linkTarget;if(!(t===void 0||k!==null||O===null)){A(t);try{await n({initialDir:``,suggestedName:t},{addPage:O.addPage})}catch(e){let t=e;J.error(t instanceof Error?t.message:f({id:`tfi40B`})),j.current&&A(null);return}J.success(f({id:`EWCJFu`,values:{target:t}})),j.current&&A(null),j.current&&x.status===`loaded`&&await U()}},t[7]=f,t[8]=x.status,t[9]=k,t[10]=O,t[11]=W):W=t[11];let G=W,K=x.status===`loaded`?x.result.files.filter(er):[],ee=function(){xn({items:K,fixItem:$n})},q;t[12]===x.status?q=t[13]:(q=function(e){m(e),e===`project`&&x.status===`idle`&&U()},t[12]=x.status,t[13]=q);let Y=q,X;t[14]===x.status?X=t[15]:(X=()=>{P.current=()=>{x.status===`idle`||x.status===`failed`||U()}},t[14]=x.status,t[15]=X),(0,Z.useEffect)(X);let ie,ae;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(ie=()=>Fe(()=>P.current()),ae=[],t[16]=ie,t[17]=ae):(ie=t[16],ae=t[17]),(0,Z.useEffect)(ie,ae);let se,ce;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(se=()=>ne(e=>{re(e)&&P.current()}),ce=[],t[18]=se,t[19]=ce):(se=t[18],ce=t[19]),(0,Z.useEffect)(se,ce);let ue;t[20]===x.status?ue=t[21]:(ue=()=>{F.current=()=>{x.status===`idle`||x.status===`failed`||U().catch(e=>{console.warn(`[lint] post-sweep re-audit failed`,e),j.current&&S({status:`failed`})})}},t[20]=x.status,t[21]=ue),(0,Z.useEffect)(ue);let de,he;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(de=()=>vn(()=>F.current()),he=[],t[22]=de,t[23]=he):(de=t[22],he=t[23]),(0,Z.useEffect)(de,he);let ge;t[24]===r?ge=t[25]:(ge=function(e){let t=In(r,e);vt(r,{kind:`lint`,detail:t}),window.dispatchEvent(new CustomEvent(Pn,{detail:t}))},t[24]=r,t[25]=ge);let _e=ge,ve;t[26]!==r||t[27]!==_e?(ve=function(e,t){let n=me(e);if(n===r){_e(t);return}vt(n,{kind:`lint`,detail:In(n,t)}),window.location.hash=pe(n)},t[26]=r,t[27]=_e,t[28]=ve):ve=t[28];let ye=ve,be;t[29]!==f||t[30]!==G||t[31]!==k||t[32]!==l||t[33]!==s||t[34]!==O?(be=function(e){let t=s!==void 0&&(e.fixes?.length??0)>0,n=zn(e)&&O!==null;if(!t&&!n&&l===void 0)return null;let r=`${e.source}/${e.code}`;return(0,$.jsxs)($.Fragment,{children:[n?(0,$.jsx)(Gn,{target:e.linkTarget??``,creating:k===e.linkTarget,disabled:k!==null,onCreate:()=>void G(e)}):null,t?(0,$.jsxs)(w,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,onClick:()=>s?.(e),"aria-label":f({id:`fZj9em`,values:{flatId:r}}),"data-testid":`problems-fix`,children:[(0,$.jsx)(fe,{"aria-hidden":`true`,className:`size-3`}),(0,$.jsx)(_,{id:`c4fVUV`})]}):null,l===void 0?null:(0,$.jsxs)(w,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,onClick:()=>l(e),"aria-label":f({id:`hh4mVC`,values:{flatId:r}}),"data-testid":`problems-ask-ai`,children:[(0,$.jsx)(i,{"aria-hidden":`true`,className:`size-3`}),(0,$.jsx)(_,{id:`xWEvuo`})]})]})},t[29]=f,t[30]=G,t[31]=k,t[32]=l,t[33]=s,t[34]=O,t[35]=be):be=t[35];let xe=be,Se=Me,Ce;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,$.jsx)(De,{children:(0,$.jsx)(_,{id:`OXdGnd`})}),t[36]=Ce):Ce=t[36];let we=g!==null&&g.length>0&&(0,$.jsxs)(D,{children:[(0,$.jsx)(T,{className:`shrink-0 cursor-default rounded-md bg-muted-foreground/5 px-2 py-1 font-mono text-xs text-muted-foreground`,"data-testid":`problems-active-plugins`,children:(0,$.jsx)(_,{id:`yxF19Y`,values:{0:g.length}})}),(0,$.jsx)(E,{"data-testid":`problems-active-plugins-tooltip`,children:(0,$.jsx)(_,{id:`ws5o1F`,values:{0:g.map(Qn).join(`, `)}})})]}),Te;t[37]===we?Te=t[38]:(Te=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[Ce,we]}),t[37]=we,t[38]=Te);let Ne=p===`doc`&&B.length>0&&(0,$.jsx)(Ae,{children:B.length}),Pe;t[39]!==Te||t[40]!==Ne?(Pe=(0,$.jsxs)(je,{children:[Te,Ne]}),t[39]=Te,t[40]=Ne,t[41]=Pe):Pe=t[41];let Le;t[42]!==Y||t[43]!==p?(Le=(0,$.jsx)(Jt,{scope:p,onScopeChange:Y}),t[42]=Y,t[43]=p,t[44]=Le):Le=t[44];let Re=p===`doc`?(0,$.jsxs)(ke,{className:`px-2 py-2`,children:[d===`idle`||d===`loading`?(0,$.jsx)(Oe,{className:`px-2 pb-2`,role:`status`,"aria-live":`polite`,"data-testid":`problems-links-loading`,children:(0,$.jsx)(_,{id:`W9NSe0`})}):d===`failed`?(0,$.jsx)(Ee,{className:`px-2 pb-2`,role:`status`,"data-testid":`problems-links-failed`,children:B.length>0?(0,$.jsx)(_,{id:`IoHQYP`}):(0,$.jsx)(_,{id:`gpbKxw`})}):null,B.length===0?d===`loaded`?y?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Oe,{className:`px-2`,"data-testid":`problems-no-plugins`,children:(0,$.jsx)(_,{id:`Hngy37`})}),(0,$.jsx)(`div`,{className:`px-2 pt-2`,children:(0,$.jsx)(w,{variant:`outline`,size:`sm`,onClick:te,"data-testid":`problems-enable-plugins`,children:(0,$.jsx)(_,{id:`rnX-1S`})})})]}):(0,$.jsx)(Oe,{className:`px-2`,children:(0,$.jsx)(_,{id:`ZI8uvA`})}):null:(0,$.jsxs)($.Fragment,{children:[c!==void 0||u!==void 0?(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-1 px-2 pb-1`,children:[c!==void 0&&(0,$.jsx)(qn,{count:V,problemCount:B.length,aiAvailable:u!==void 0,disabled:V===0,onClick:c}),u!==void 0&&(0,$.jsx)(Jn,{count:B.length,disabled:!1,onClick:()=>u(`doc`)})]}):null,(0,$.jsx)(`ul`,{"aria-label":f({id:`OXdGnd`}),className:`flex flex-col gap-0.5`,children:Vn(B).map(e=>(0,$.jsx)(Hn,{group:e,onNavigate:_e,navTitle:e=>f({id:`vbMHjo`,values:{0:e.range.start.line+1}}),renderActions:xe},e.key))})]})]}):(0,$.jsx)(ir,{audit:x,onRefresh:()=>void U(),onNavigate:ye,fixableCount:K.reduce(Zn,0),problemCount:x.status===`loaded`?x.result.files.reduce(Xn,0):0,fixing:C,onAutoFix:ee,onCancelFix:yn,onFixWithAi:u===void 0||x.status!==`loaded`?void 0:()=>u(`project`),onCreateTarget:O===null?void 0:e=>void G(e),creatingTarget:k}),ze;return t[45]!==Se||t[46]!==Pe||t[47]!==Le||t[48]!==Re?(ze=(0,$.jsxs)(Se,{children:[Pe,Le,Re]}),t[45]=Se,t[46]=Pe,t[47]=Le,t[48]=Re,t[49]=ze):ze=t[49],ze}function Xn(e,t){return e+t.diagnostics.length}function Zn(e,t){return e+Wn(t.diagnostics)}function Qn(e){return e.label}function $n(e){return Pe(me(e.file))}function er(e){return e.diagnostics.some(tr)}function tr(e){return(e.fixes?.length??0)>0}function nr(){}function rr(){}function ir(e){let t=(0,Q.c)(81),{audit:n,onRefresh:r,onNavigate:i,fixableCount:a,problemCount:o,fixing:s,onAutoFix:c,onCancelFix:l,onFixWithAi:u,onCreateTarget:d,creatingTarget:f}=e,{_:p}=v(),m=n.status===`loading`||n.status===`idle`,h;t[0]!==n.result||t[1]!==n.status?(h=n.status===`loaded`?n.result.files:[],t[0]=n.result,t[1]=n.status,t[2]=h):h=t[2];let g=h,[y,b]=(0,Z.useState)(sr),x;t[3]!==y||t[4]!==g?(x=g.length>0&&g.every(e=>y.has(e.file)),t[3]=y,t[4]=g,t[5]=x):x=t[5];let S=x,C;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(C=function(e,t){b(n=>{let r=new Set(n);return t?r.add(e):r.delete(e),r})},t[6]=C):C=t[6];let O=C,k;t[7]!==S||t[8]!==g?(k=function(){b(S?new Set:new Set(g.map(or)))},t[7]=S,t[8]=g,t[9]=k):k=t[9];let A=k,j;t[10]!==n.result||t[11]!==n.status?(j=n.status===`loaded`&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(_,{id:`DsDwR-`,values:{0:n.result.errorCount}}),` · `,(0,$.jsx)(_,{id:`W1SI2K`,values:{0:n.result.warningCount}})]}),t[10]=n.result,t[11]=n.status,t[12]=j):j=t[12];let M;t[13]===j?M=t[14]:(M=(0,$.jsx)(`p`,{className:`min-w-0 truncate text-xs text-muted-foreground`,"data-testid":`problems-audit-summary`,children:j}),t[13]=j,t[14]=M);let N;t[15]!==p||t[16]!==S||t[17]!==g.length||t[18]!==A?(N=g.length>0?(0,$.jsxs)(D,{children:[(0,$.jsx)(T,{asChild:!0,children:(0,$.jsx)(w,{variant:`ghost`,size:`icon`,className:`size-6 shrink-0 text-muted-foreground`,"aria-label":p(S?{id:`I4LGsH`}:{id:`Ugvy4O`}),"data-testid":`problems-audit-expand-toggle`,onClick:A,children:S?(0,$.jsx)(Le,{"aria-hidden":`true`,className:`size-3.5`}):(0,$.jsx)(ae,{"aria-hidden":`true`,className:`size-3.5`})})}),(0,$.jsx)(E,{"data-testid":`problems-audit-expand-toggle-tooltip`,children:S?(0,$.jsx)(_,{id:`I4LGsH`}):(0,$.jsx)(_,{id:`Ugvy4O`})})]}):null,t[15]=p,t[16]=S,t[17]=g.length,t[18]=A,t[19]=N):N=t[19];let P;t[20]===p?P=t[21]:(P=p({id:`I7y_vn`}),t[20]=p,t[21]=P);let F=m||s!==null,I;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,$.jsx)(ue,{"aria-hidden":`true`,className:`size-3.5`}),t[22]=I):I=t[22];let L;t[23]!==r||t[24]!==P||t[25]!==F?(L=(0,$.jsx)(T,{asChild:!0,children:(0,$.jsx)(w,{variant:`ghost`,size:`icon`,className:`size-6 shrink-0 text-muted-foreground`,"aria-label":P,"data-testid":`problems-audit-refresh`,disabled:F,onClick:r,children:I})}),t[23]=r,t[24]=P,t[25]=F,t[26]=L):L=t[26];let R;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsx)(E,{"data-testid":`problems-audit-refresh-tooltip`,children:(0,$.jsx)(_,{id:`I7y_vn`})}),t[27]=R):R=t[27];let z;t[28]===L?z=t[29]:(z=(0,$.jsxs)(D,{children:[L,R]}),t[28]=L,t[29]=z);let B;t[30]!==z||t[31]!==N?(B=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[N,z]}),t[30]=z,t[31]=N,t[32]=B):B=t[32];let V;t[33]!==B||t[34]!==M?(V=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[M,B]}),t[33]=B,t[34]=M,t[35]=V):V=t[35];let H;t[36]!==p||t[37]!==s?(H=s===null?null:(0,$.jsx)(`span`,{className:`sr-only`,role:`status`,children:p({id:`gZElfU`,values:{0:s.done,1:s.total}})}),t[36]=p,t[37]=s,t[38]=H):H=t[38];let U;t[39]!==p||t[40]!==s||t[41]!==l?(U=s===null?null:(0,$.jsxs)(D,{children:[(0,$.jsx)(T,{asChild:!0,children:(0,$.jsx)(w,{variant:`ghost`,size:`sm`,className:`h-6 shrink-0 px-2 text-muted-foreground`,"aria-label":p({id:`q2cLM6`}),"data-testid":`problems-cancel-fix`,onClick:l,children:(0,$.jsx)(_,{id:`ygCKqB`})})}),(0,$.jsx)(E,{"data-testid":`problems-cancel-fix-tooltip`,children:(0,$.jsx)(_,{id:`yvSAuM`})})]}),t[39]=p,t[40]=s,t[41]=l,t[42]=U):U=t[42];let W=u!==void 0,G=m||s!==null||a===0,K;t[43]===s?K=t[44]:(K=s===null?void 0:(0,$.jsx)(_,{id:`S9t1PI`,values:{0:s.done,1:s.total}}),t[43]=s,t[44]=K);let ee;t[45]!==a||t[46]!==c||t[47]!==o||t[48]!==W||t[49]!==G||t[50]!==K?(ee=(0,$.jsx)(qn,{count:a,problemCount:o,aiAvailable:W,disabled:G,onClick:c,children:K}),t[45]=a,t[46]=c,t[47]=o,t[48]=W,t[49]=G,t[50]=K,t[51]=ee):ee=t[51];let q;t[52]!==s||t[53]!==u||t[54]!==o?(q=u!==void 0&&o>0?(0,$.jsx)(Jn,{count:o,disabled:s!==null,onClick:u}):null,t[52]=s,t[53]=u,t[54]=o,t[55]=q):q=t[55];let J;t[56]!==H||t[57]!==U||t[58]!==ee||t[59]!==q?(J=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-1`,children:[H,U,ee,q]}),t[56]=H,t[57]=U,t[58]=ee,t[59]=q,t[60]=J):J=t[60];let te;t[61]!==V||t[62]!==J?(te=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1 px-2 pb-1`,children:[V,J]}),t[61]=V,t[62]=J,t[63]=te):te=t[63];let Y;t[64]!==p||t[65]!==m?(Y=m&&(0,$.jsx)(`div`,{className:`flex flex-col gap-1`,role:`status`,"aria-busy":`true`,"aria-label":p({id:`dx-TwN`}),children:[1,2,3].map(ar)}),t[64]=p,t[65]=m,t[66]=Y):Y=t[66];let ne;t[67]===n.status?ne=t[68]:(ne=n.status===`failed`&&(0,$.jsx)(Ee,{className:`px-2 text-xs`,children:(0,$.jsx)(_,{id:`IFezUv`})}),t[67]=n.status,t[68]=ne);let re;t[69]!==n.result||t[70]!==n.status||t[71]!==f||t[72]!==y||t[73]!==d||t[74]!==i?(re=n.status===`loaded`&&(0,$.jsx)(cr,{result:n.result,onNavigate:i,onCreateTarget:d,creatingTarget:f,expandedFiles:y,onToggleFile:O}),t[69]=n.result,t[70]=n.status,t[71]=f,t[72]=y,t[73]=d,t[74]=i,t[75]=re):re=t[75];let X;return t[76]!==te||t[77]!==Y||t[78]!==ne||t[79]!==re?(X=(0,$.jsxs)(ke,{className:`px-2 py-2`,"data-testid":`problems-project-scope`,children:[te,Y,ne,re]}),t[76]=te,t[77]=Y,t[78]=ne,t[79]=re,t[80]=X):X=t[80],X}function ar(e){return(0,$.jsxs)(`div`,{className:`flex items-start gap-2.5 rounded px-2 py-1.5`,children:[(0,$.jsx)(Ne,{className:`mt-0.5 size-3.5 shrink-0 rounded`}),(0,$.jsxs)(`div`,{className:`flex-1 space-y-1.5`,children:[(0,$.jsx)(Ne,{className:`h-3 w-28`}),(0,$.jsx)(Ne,{className:`h-3 w-40`})]})]},e)}function or(e){return e.file}function sr(){return new Set}function cr(e){let t=(0,Q.c)(14),{result:n,onNavigate:r,onCreateTarget:i,creatingTarget:a,expandedFiles:o,onToggleFile:s}=e,{_:c}=v(),l;t[0]!==c||t[1]!==n.warnings?(l=n.warnings.length>0&&(0,$.jsx)(`ul`,{"aria-label":c({id:`Rsdhj9`}),className:`flex flex-col gap-0.5 pb-1`,children:n.warnings.map(lr)}),t[0]=c,t[1]=n.warnings,t[2]=l):l=t[2];let u;t[3]!==a||t[4]!==o||t[5]!==i||t[6]!==r||t[7]!==s||t[8]!==n.fileCount||t[9]!==n.files?(u=n.files.length===0?(0,$.jsx)(Oe,{className:`px-2`,children:(0,$.jsx)(_,{id:`k_Dqw1`,values:{0:n.fileCount}})}):n.files.map(e=>(0,$.jsx)(ur,{file:e,onNavigate:r,onCreateTarget:i,creatingTarget:a,open:o.has(e.file),onOpenChange:t=>s(e.file,t)},e.file)),t[3]=a,t[4]=o,t[5]=i,t[6]=r,t[7]=s,t[8]=n.fileCount,t[9]=n.files,t[10]=u):u=t[10];let d;return t[11]!==l||t[12]!==u?(d=(0,$.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[l,u]}),t[11]=l,t[12]=u,t[13]=d):d=t[13],d}function lr(e,t){return(0,$.jsxs)(`li`,{className:`flex items-start gap-1.5 px-2 text-xs`,children:[(0,$.jsx)(de,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-amber-500`}),(0,$.jsx)(`span`,{className:`min-w-0 text-foreground`,children:e})]},`${t}-${e}`)}function ur(e){let t=(0,Q.c)(45),{file:n,onNavigate:r,onCreateTarget:i,creatingTarget:a,open:o,onOpenChange:s}=e,{_:c}=v(),l,u,d,f,p,m,h,g,_,y;if(t[0]!==c||t[1]!==a||t[2]!==n.diagnostics||t[3]!==n.file||t[4]!==i||t[5]!==r||t[6]!==s||t[7]!==o){let e=[...n.diagnostics].sort(Fn);u=A,h=o,g=s,_=`problems-audit-group`;let v;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(ie,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`}),t[18]=v):v=t[18];let b;t[19]===n.file?b=t[20]:(b=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs text-foreground`,title:n.file,children:n.file}),t[19]=n.file,t[20]=b),y=(0,$.jsxs)(k,{className:`group flex w-full cursor-pointer items-center gap-1.5 rounded px-2 py-1.5 text-left transition-colors hover:bg-muted`,children:[v,b,(0,$.jsx)(_e,{variant:`gray`,"data-testid":`problems-audit-file-count`,className:`shrink-0`,children:e.length})]}),l=O,m=`overflow-hidden data-[state=open]:animate-[collapsible-down_150ms_ease-out] data-[state=closed]:animate-[collapsible-up_150ms_ease-in] motion-reduce:animate-none`,t[21]!==c||t[22]!==n.file?(d=c({id:`zAJzIg`,values:{0:n.file}}),t[21]=c,t[22]=n.file,t[23]=d):d=t[23],f=`flex flex-col gap-0.5 pb-1 ps-3`;let x;t[24]!==c||t[25]!==a||t[26]!==n.file||t[27]!==i||t[28]!==r?(x=e=>(0,$.jsx)(Hn,{group:e,onNavigate:e=>r(n.file,e),navTitle:e=>c({id:`xKDsGS`,values:{0:e.range.start.line+1,1:n.file}}),renderActions:e=>!zn(e)||i===void 0?null:(0,$.jsx)(Gn,{target:e.linkTarget??``,creating:a===e.linkTarget,disabled:a!==null,onCreate:()=>i(e)})},e.key),t[24]=c,t[25]=a,t[26]=n.file,t[27]=i,t[28]=r,t[29]=x):x=t[29],p=Vn(e).map(x),t[0]=c,t[1]=a,t[2]=n.diagnostics,t[3]=n.file,t[4]=i,t[5]=r,t[6]=s,t[7]=o,t[8]=l,t[9]=u,t[10]=d,t[11]=f,t[12]=p,t[13]=m,t[14]=h,t[15]=g,t[16]=_,t[17]=y}else l=t[8],u=t[9],d=t[10],f=t[11],p=t[12],m=t[13],h=t[14],g=t[15],_=t[16],y=t[17];let b;t[30]!==d||t[31]!==f||t[32]!==p?(b=(0,$.jsx)(`ul`,{"aria-label":d,className:f,children:p}),t[30]=d,t[31]=f,t[32]=p,t[33]=b):b=t[33];let x;t[34]!==l||t[35]!==m||t[36]!==b?(x=(0,$.jsx)(l,{className:m,children:b}),t[34]=l,t[35]=m,t[36]=b,t[37]=x):x=t[37];let S;return t[38]!==u||t[39]!==x||t[40]!==h||t[41]!==g||t[42]!==_||t[43]!==y?(S=(0,$.jsxs)(u,{open:h,onOpenChange:g,"data-testid":_,children:[y,x]}),t[38]=u,t[39]=x,t[40]=h,t[41]=g,t[42]=_,t[43]=y,t[44]=S):S=t[44],S}var dr=null,fr=[];function pr(e){if(e===dr)return fr;let t=mr(e);return dr=e,fr=t,t}function mr(e){let t=[],n=new Map,r=R();for(let i=hr(e);i<=e.lines;i++){let a=e.line(i);if(r(a.text))continue;let o=V(a.text,n);o&&t.push({slug:o.slug,from:a.from})}return t}function hr(e){if(!gr(e.line(1).text))return 1;for(let t=2;t<=e.lines;t++)if(gr(e.line(t).text))return t+1;return 1}function gr(e){return G.test(e.endsWith(`\r`)?e.slice(0,-1):e)}function _r(e){let t=document.getElementById(e);return t?t.getBoundingClientRect().top:null}function vr(e){let t=new Map;for(let n of pr(e.state.doc))t.set(n.slug,n.from);let n=e.documentTop;return r=>{let i=t.get(r);return i===void 0?null:n+e.lineBlockAt(i).top}}function yr(e,t){let n=(0,Q.c)(9),i;n[0]===t?i=n[1]:(i=t===void 0?{}:t,n[0]=t,n[1]=i);let{isSourceMode:a,docName:o}=i,s=a===void 0?!1:a,[l,u]=(0,Z.useState)(void 0),d=(0,Z.useRef)(null),f;n[2]===o?f=n[3]:(f=()=>o?r(o):null,n[2]=o,n[3]=f);let p=(0,Z.useSyncExternalStore)(c,f,br),m,h;return n[4]!==s||n[5]!==e||n[6]!==p?(m=()=>{if(e.length===0||s&&!p){u(void 0);return}let t=function(){let t=s&&p?vr(p):_r,n=window.innerHeight/2,r,i;for(let a of e){let e=t(a);e!==null&&(e<0?r=a:i===void 0&&e<n&&(i=a))}u(i??r??e[0])},n=function(){d.current===null&&(d.current=requestAnimationFrame(()=>{d.current=null,t()}))};return document.addEventListener(`scroll`,n,{capture:!0,passive:!0}),t(),()=>{document.removeEventListener(`scroll`,n,{capture:!0}),d.current!==null&&(cancelAnimationFrame(d.current),d.current=null)}},h=[e,s,p],n[4]=s,n[5]=e,n[6]=p,n[7]=m,n[8]=h):(m=n[7],h=n[8]),(0,Z.useEffect)(m,h),l}function br(){return null}var xr=300;async function Sr(e){let t=await fetch(`/api/page-headings?docName=${encodeURIComponent(e)}`),n;try{n=await t.json()}catch(e){throw new j(Y._({id:`qAQVSD`}),{cause:e,status:t.status})}if(!t.ok){let e=U.safeParse(n);throw e.success?Error(e.data.title):new j(Y._({id:`zlErBl`}),{status:t.status})}let r=ee.safeParse(n);if(!r.success)throw new j(Y._({id:`XW18jo`}),{status:t.status});return r.data.headings??[]}var Cr=32,wr=12,Tr=6,Er=`open-knowledge:outline-nav`;function Dr(e){let t=(0,Q.c)(2),n;return t[0]===e?n=t[1]:(n=(0,$.jsx)(ge,{name:`outline-panel`,children:(0,$.jsx)(Or,{...e})}),t[0]=e,t[1]=n),n}function Or(e){let t=(0,Q.c)(53),{docName:n,isSourceMode:r,className:i}=e,a=i===void 0?``:i,{_:o}=v(),{pages:c,loading:l}=ce(),u=y(),{activeProvider:d,activeDocName:f}=s(),p,m;t[0]===n?(p=t[1],m=t[2]):(p=[`page-headings`,n],m=()=>Sr(n),t[0]=n,t[1]=p,t[2]=m);let h;t[3]!==n||t[4]!==l||t[5]!==c?(h=!l&&(c.has(n)||z(n)),t[3]=n,t[4]=l,t[5]=c,t[6]=h):h=t[6];let g;t[7]!==p||t[8]!==m||t[9]!==h?(g={queryKey:p,queryFn:m,enabled:h,staleTime:1/0},t[7]=p,t[8]=m,t[9]=h,t[10]=g):g=t[10];let{data:x,isLoading:S,error:w}=b(g),T;t[11]===x?T=t[12]:(T=x===void 0?[]:x,t[11]=x,t[12]=T);let E=T,D,O;t[13]!==f||t[14]!==d||t[15]!==n||t[16]!==u?(D=()=>{if(!d||f!==n)return;let e=d.document,t=null,r=()=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{t=null,u.invalidateQueries({queryKey:[`page-headings`,n]})},xr)};return e.on(`update`,r),()=>{e.off(`update`,r),t!==null&&clearTimeout(t)}},O=[d,f,n,u],t[13]=f,t[14]=d,t[15]=n,t[16]=u,t[17]=D,t[18]=O):(D=t[17],O=t[18]),(0,Z.useEffect)(D,O);let k;t[19]===E?k=t[20]:(k=E.map(kr),t[19]=E,t[20]=k);let A=k,j;t[21]!==n||t[22]!==r?(j={isSourceMode:r,docName:n},t[21]=n,t[22]=r,t[23]=j):j=t[23];let M=yr(A,j),N;t[24]!==M||t[25]!==E?(N=M?E.findIndex(e=>e.slug===M):-1,t[24]=M,t[25]=E,t[26]=N):N=t[26];let P=N,F;t[27]!==n||t[28]!==r?(F=function(e,t){let i={docName:n,index:e,slug:t,mode:r?`source`:`wysiwyg`};i.mode===`source`&&vt(n,{kind:`outline`,detail:i}),window.dispatchEvent(new CustomEvent(Er,{detail:i}))},t[27]=n,t[28]=r,t[29]=F):F=t[29];let I=F,L=((P>=0?E[P].level:1)-1)*wr+(wr-Tr)/2,R=P*Cr+(Cr-Tr)/2,B;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,$.jsx)(De,{children:(0,$.jsx)(_,{id:`dD7NPy`})}),t[30]=B):B=t[30];let V;t[31]!==E.length||t[32]!==S?(V=!S&&(0,$.jsx)(Ae,{children:E.length}),t[31]=E.length,t[32]=S,t[33]=V):V=t[33];let H;t[34]===V?H=t[35]:(H=(0,$.jsxs)(je,{children:[B,V]}),t[34]=V,t[35]=H);let U;t[36]!==o||t[37]!==P||t[38]!==M||t[39]!==w||t[40]!==I||t[41]!==E||t[42]!==S||t[43]!==L||t[44]!==R?(U=w?(0,$.jsx)(Ee,{className:`px-2`,children:w instanceof Error?w.message:o({id:`GuqOb1`})}):E.length===0&&!S?(0,$.jsx)(Oe,{className:`px-2`,children:(0,$.jsx)(_,{id:`0BB9ID`})}):(0,$.jsxs)(`nav`,{"aria-label":o({id:`BymzO4`}),className:`relative`,children:[P>=0&&(0,$.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute left-0 top-0 rounded-full bg-primary motion-safe:[transition:transform_0.25s_var(--ease-out-strong)]`,style:{width:Tr,height:Tr,transform:`translate(${L}px, ${R}px)`}}),E.map((e,t)=>{let n=e.slug===M;return(0,$.jsx)(`button`,{type:`button`,"aria-current":n?`location`:void 0,onClick:()=>I(t,e.slug),className:C(`w-full cursor-pointer truncate py-1.5 pe-2 text-left text-sm transition-colors`,n?`font-medium text-primary`:`text-muted-foreground hover:text-foreground`),style:{paddingLeft:`${(e.level-1)*wr+20}px`},title:e.text,children:e.text},t)})]}),t[36]=o,t[37]=P,t[38]=M,t[39]=w,t[40]=I,t[41]=E,t[42]=S,t[43]=L,t[44]=R,t[45]=U):U=t[45];let W;t[46]!==S||t[47]!==U?(W=(0,$.jsx)(ke,{className:`px-3 py-2`,"aria-busy":S,children:U}),t[46]=S,t[47]=U,t[48]=W):W=t[48];let G;return t[49]!==a||t[50]!==H||t[51]!==W?(G=(0,$.jsxs)(Me,{className:a,children:[H,W]}),t[49]=a,t[50]=H,t[51]=W,t[52]=G):G=t[52],G}function kr(e){return e.slug}var Ar={words:0,chars:0,tokens:0},jr=/[ -〿぀-ゟ゠-ヿ㐀-䶿一-鿿豈-﫿＀-￯฀-๿ក-៿]/,Mr=/[\p{L}\p{N}]/u,Nr=new Set([`text`,`inlineCode`,`code`,`tag`]),Pr=new Set([`html`,`definition`,`footnoteDefinition`,`yaml`,`toml`,`image`,`imageReference`,`mdxFlowExpression`,`mdxTextExpression`,`mdxjsEsm`,`rawMdxFallback`,`rawMdxFallbackMdast`]),Fr=new Set([`paragraph`,`heading`,`blockquote`,`list`,`listItem`,`thematicBreak`,`table`,`tableRow`,`tableCell`,`mdxJsxFlowElement`,`commentBlock`]);function Ir(e,t){if(!e)return;let n=e.type;if(!Pr.has(n)){if(Nr.has(n)){e.value&&(t.push(e.value),n===`code`&&t.push(`
4
- `));return}if(n===`wikiLink`||n===`wikiLinkEmbed`){let n=e.data?.alias??e.value??``;n&&t.push(n);return}if(Array.isArray(e.children)){for(let n of e.children)Ir(n,t);if(Fr.has(n)&&t.length>0){let e=t[t.length-1];e&&!e.endsWith(`
5
- `)&&t.push(`
6
- `)}}}}function Lr(e){try{let t=M().parseToMdast(e),n=[];return Ir(t,n),n.join(``).trim()}catch(t){return console.warn(`[document-stats] mdast parse failed, falling back to raw text`,t),e.trim()}}function Rr(e){if(!e)return 0;let t=0;for(let n of e.split(/\s+/))Mr.test(n)&&t++;return t}function zr(e){let t=globalThis.Intl.Segmenter;if(!t)return Rr(e);let n=new t(void 0,{granularity:`word`}),r=0;for(let t of n.segment(e))t.isWordLike&&r++;return r}function Br(e){let t=jr.test(e)?1.5:4;return Math.ceil(e.length/t)}function Vr(e){return e?{words:jr.test(e)?zr(e):Rr(e),chars:e.length,tokens:Br(e)}:{words:0,chars:0,tokens:0}}function Hr(e){if(!e)return{words:0,chars:0,tokens:0};let{body:t}=q(e);return t.trim()?Vr(Lr(t)):{words:0,chars:0,tokens:0}}function Ur(e,{isMarkdown:t}){let n=e.trim();return n?Vr(t?Lr(e):n):Ar}var Wr=new Map,Gr=new Set,Kr=(e,t)=>`${t}:${e}`;function qr(){for(let e of Gr)e()}function Jr(e,t,n){let r=Kr(e,t);if(n===null){Wr.delete(r)&&qr();return}let i=Wr.get(r);i&&i.words===n.words&&i.chars===n.chars&&i.tokens===n.tokens||(Wr.set(r,n),qr())}function Yr(e,t){return e===null?null:Wr.get(Kr(e,t))??null}function Xr(e){return Gr.add(e),()=>{Gr.delete(e)}}function Zr(e){let{from:t,to:n,empty:r}=e.state.selection;if(r)return null;let i=e.state.doc.textBetween(t,n,`
7
- `,` `);return i.trim()?Ur(i,{isMarkdown:!1}):null}function Qr(e){let t=[];for(let n of e.state.selection.ranges)n.empty||t.push(e.state.sliceDoc(n.from,n.to));if(t.length===0)return null;let n=t.join(`
8
- `);return n.trim()?Ur(n,{isMarkdown:!0}):null}var $r=!1;function ei(){return $r||!S()?!1:($r=!0,!0)}export{Ot as A,Ze as B,tn as C,Mt as D,Ut as E,Ct as F,Re as H,vt as I,pt as L,bt as M,wt as N,Kt as O,yt as P,Xe as R,en as S,Jt as T,Ye as V,jn as _,Zr as a,Zt as b,Hr as c,pr as d,Pn as f,Nn as g,Mn as h,Qr as i,xt as j,qt as k,Er as l,kn as m,Yr as n,Xr as o,Yn as p,Jr as r,Ar as s,ei as t,Dr as u,On as v,Yt as w,Qt as x,Xt as y,Qe as z};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./globals-DYJX1YzM.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a,t 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{t as u}from"./checkbox-Bi7zk4c5.js";import{t as d}from"./label-Bbz2bT-a.js";import{n as f,t as p}from"./radio-group-BsZGGl8l.js";import{nn as m,rn as h}from"./dist-D-pIxpOA2.js";import{t as g}from"./dist-BgXDUIPy.js";import{t as _}from"./check-Bzwwm-o4.js";import{t as v}from"./spinner-DmibE6UV.js";import{t as y}from"./input-a0WHtxX3.js";import"./i18n-BILgtwZc.js";import{t as b}from"./badge-8D3yWFye.js";import{t as x}from"./textarea-WVtoklh9.js";var S=e(r(),1),C=t(),w=s();async function T(){let e=typeof window>`u`?void 0:window.okUninstall;if(e===void 0)return null;try{let t=await e.ready();return t.kind===`screen`?t.screen:null}catch{return null}}function E(e){let t=typeof window>`u`?void 0:window.okUninstall;t!==void 0&&t.send(e).catch(()=>void 0)}var D=n();function O(e){let t=(0,w.c)(6),{items:n}=e,r;if(t[0]!==n){let e;t[2]===n.length?e=t[3]:(e=(e,t)=>(0,D.jsxs)(`li`,{className:`relative pb-5 pl-[30px] last:pb-1`,children:[t<n.length-1&&(0,D.jsx)(`span`,{"aria-hidden":`true`,className:`absolute top-[22px] bottom-0.5 left-[9px] w-0.5 bg-border`}),(0,D.jsx)(`span`,{"aria-hidden":`true`,className:c(`absolute top-px left-0 inline-flex size-5 items-center justify-center rounded-full`,e.done?`bg-primary/15 text-primary`:`border-[1.5px] border-muted-foreground/50`),children:e.done&&(0,D.jsx)(_,{className:`size-3`})}),(0,D.jsx)(`span`,{className:`sr-only`,children:e.done?(0,D.jsx)(i,{id:`clJ3qM`}):(0,D.jsx)(i,{id:`yU_9ur`})}),(0,D.jsxs)(`span`,{className:`block`,children:[(0,D.jsx)(`span`,{className:`font-medium`,children:e.label}),e.detail!==void 0&&(0,D.jsx)(`span`,{className:`mt-0.5 block text-muted-foreground leading-snug`,children:e.detail})]})]},e.label),t[2]=n.length,t[3]=e),r=n.map(e),t[0]=n,t[1]=r}else r=t[1];let a;return t[4]===r?a=t[5]:(a=(0,D.jsx)(`ol`,{className:`mb-1.5`,children:r}),t[4]=r,t[5]=a),a}function k(e){let t=(0,w.c)(49),{notice:n,onConfirm:r,onCancel:i,onRevealLog:o}=e,{_:s}=a(),c=(0,S.useId)(),u=(0,S.useId)(),d=n.cancelLabel!==void 0,f,p;t[0]!==d||t[1]!==i||t[2]!==r?(f=()=>{let e=e=>{e.key===`Escape`&&(d?i():r())};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},p=[d,i,r],t[0]=d,t[1]=i,t[2]=r,t[3]=f,t[4]=p):(f=t[3],p=t[4]),(0,S.useEffect)(f,p);let m;t[5]!==n.title||t[6]!==c?(m=(0,D.jsx)(`h1`,{id:c,className:`font-medium text-base leading-none`,children:n.title}),t[5]=n.title,t[6]=c,t[7]=m):m=t[7];let h;t[8]===n.subtitle?h=t[9]:(h=n.subtitle!==void 0&&(0,D.jsx)(`p`,{className:`text-muted-foreground text-sm leading-snug`,children:n.subtitle}),t[8]=n.subtitle,t[9]=h);let g;t[10]!==m||t[11]!==h?(g=(0,D.jsxs)(`header`,{className:`shrink-0 space-y-4 px-6 pt-5 pb-3.5`,children:[m,h]}),t[10]=m,t[11]=h,t[12]=g):g=t[12];let _;t[13]===n.paragraphs?_=t[14]:(_=n.paragraphs.map(A),t[13]=n.paragraphs,t[14]=_);let v;t[15]===n.checklist?v=t[16]:(v=n.checklist!==void 0&&(0,D.jsx)(O,{items:n.checklist}),t[15]=n.checklist,t[16]=v);let y;t[17]!==s||t[18]!==n.log?(y=n.log!==void 0&&(0,D.jsx)(`section`,{"aria-label":s({id:`Oi56Cu`}),tabIndex:0,className:`subtle-scrollbar mt-0.5 mb-2.5 min-h-20 flex-1 overflow-auto rounded-lg border border-border border-dotted bg-muted/40 px-3 py-2.5 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50`,children:(0,D.jsx)(`pre`,{className:`select-text whitespace-pre-wrap font-mono text-xs leading-relaxed wrap-anywhere`,children:n.log})}),t[17]=s,t[18]=n.log,t[19]=y):y=t[19];let b;t[20]===n.footnote?b=t[21]:(b=n.footnote!==void 0&&(0,D.jsx)(`p`,{className:`select-text text-muted-foreground text-xs wrap-anywhere`,children:n.footnote}),t[20]=n.footnote,t[21]=b);let x;t[22]!==n.logRevealLabel||t[23]!==o?(x=n.logRevealLabel!==void 0&&(0,D.jsx)(`p`,{className:`mt-0.5`,children:(0,D.jsx)(l,{type:`button`,variant:`link-muted`,size:`xs`,className:`h-auto px-0 underline underline-offset-2`,onClick:o,children:n.logRevealLabel})}),t[22]=n.logRevealLabel,t[23]=o,t[24]=x):x=t[24];let C;t[25]!==u||t[26]!==x||t[27]!==_||t[28]!==v||t[29]!==y||t[30]!==b?(C=(0,D.jsxs)(`div`,{id:u,className:`flex min-h-0 flex-1 flex-col px-6 pt-1 pb-4 text-sm`,children:[_,v,y,b,x]}),t[25]=u,t[26]=x,t[27]=_,t[28]=v,t[29]=y,t[30]=b,t[31]=C):C=t[31];let T;t[32]!==n.cancelLabel||t[33]!==i?(T=n.cancelLabel!==void 0&&(0,D.jsx)(l,{type:`button`,variant:`outline-mono`,autoFocus:!0,onClick:i,children:n.cancelLabel}),t[32]=n.cancelLabel,t[33]=i,t[34]=T):T=t[34];let E=n.danger===!0?`destructive`:`default`,k=!d,j;t[35]!==n.confirmLabel||t[36]!==r||t[37]!==E||t[38]!==k?(j=(0,D.jsx)(l,{type:`button`,variant:E,autoFocus:k,onClick:r,children:n.confirmLabel}),t[35]=n.confirmLabel,t[36]=r,t[37]=E,t[38]=k,t[39]=j):j=t[39];let M;t[40]!==T||t[41]!==j?(M=(0,D.jsxs)(`footer`,{className:`flex items-center justify-end gap-2.5 border-border border-t bg-muted/50 px-6 pt-3.5 pb-4`,children:[T,j]}),t[40]=T,t[41]=j,t[42]=M):M=t[42];let N;return t[43]!==u||t[44]!==C||t[45]!==M||t[46]!==g||t[47]!==c?(N=(0,D.jsxs)(`div`,{role:`alertdialog`,"aria-labelledby":c,"aria-describedby":u,className:`flex h-dvh flex-col bg-background text-foreground`,children:[g,C,M]}),t[43]=u,t[44]=C,t[45]=M,t[46]=g,t[47]=c,t[48]=N):N=t[48],N}function A(e){return(0,D.jsx)(`p`,{className:`mb-2.5 leading-normal`,children:e},e)}function j(e){return e.open||e.running?`active`:e.recent?`recent`:null}function M(e){return e.split(`/`).filter(Boolean).at(-1)??e}function N(e){let t=(0,w.c)(9),{status:n}=e,{_:r}=a(),i;t[0]===r?i=t[1]:(i=r({id:`s_ereB`}),t[0]=r,t[1]=i);let o;t[2]===r?o=t[3]:(o=r({id:`_2cM9E`}),t[2]=r,t[3]=o);let s;t[4]!==i||t[5]!==o?(s={active:i,recent:o},t[4]=i,t[5]=o,t[6]=s):s=t[6];let c=s[n],l;return t[7]===c?l=t[8]:(l=(0,D.jsx)(b,{variant:`secondary`,className:`rounded-sm text-muted-foreground`,children:c}),t[7]=c,t[8]=l),l}function P(e){let t=(0,w.c)(28),{project:n,checked:r,onCheckedChange:i}=e,{_:o}=a(),s=(0,S.useId)(),c;t[0]===n?c=t[1]:(c=j(n),t[0]=n,t[1]=c);let l=c,f;t[2]===i?f=t[3]:(f=e=>i(e===!0),t[2]=i,t[3]=f);let p;t[4]!==o||t[5]!==n.path?(p=o({id:`CHfFN_`,values:{0:n.path}}),t[4]=o,t[5]=n.path,t[6]=p):p=t[6];let m;t[7]!==s||t[8]!==r||t[9]!==f||t[10]!==p?(m=(0,D.jsx)(u,{id:s,className:`mt-0.5`,checked:r,onCheckedChange:f,"aria-label":p}),t[7]=s,t[8]=r,t[9]=f,t[10]=p,t[11]=m):m=t[11];let h;t[12]===n.path?h=t[13]:(h=M(n.path),t[12]=n.path,t[13]=h);let g;t[14]===h?g=t[15]:(g=(0,D.jsx)(`span`,{className:`w-full truncate font-medium text-sm`,children:h}),t[14]=h,t[15]=g);let _;t[16]===n.path?_=t[17]:(_=(0,D.jsx)(`span`,{className:`w-full select-text break-words text-muted-foreground text-xs`,children:n.path}),t[16]=n.path,t[17]=_);let v;t[18]!==s||t[19]!==g||t[20]!==_?(v=(0,D.jsxs)(d,{htmlFor:s,className:`min-w-0 flex-col items-start gap-0.5 font-normal`,children:[g,_]}),t[18]=s,t[19]=g,t[20]=_,t[21]=v):v=t[21];let y;t[22]===l?y=t[23]:(y=l!==null&&(0,D.jsx)(`div`,{className:`flex justify-end max-sm:col-start-2 max-sm:justify-start`,children:(0,D.jsx)(N,{status:l})}),t[22]=l,t[23]=y);let b;return t[24]!==m||t[25]!==v||t[26]!==y?(b=(0,D.jsxs)(`div`,{className:`grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-2.5 border-border/60 border-b px-3 py-2.5 last:border-b-0 hover:bg-accent/40 max-sm:grid-cols-[auto_minmax(0,1fr)]`,children:[m,v,y]}),t[24]=m,t[25]=v,t[26]=y,t[27]=b):b=t[27],b}function F(e){let t=(0,w.c)(45),{projects:n,onConfirm:r,onCancel:o}=e,{_:s}=a(),[c,f]=(0,S.useState)(ne),p=(0,S.useId)(),m=(0,S.useId)(),h=(0,S.useId)(),g=n.length>0&&c.size===n.length?!0:c.size>0?`indeterminate`:!1,_;t[0]===n?_=t[1]:(_=e=>f(e?new Set(n.map(I)):new Set),t[0]=n,t[1]=_);let v=_,y,b;t[2]!==o||t[3]!==n?(y=()=>{let e=e=>{if(e.key===`Escape`){o();return}(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`a`&&(e.preventDefault(),f(new Set(n.map(te))))};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},b=[o,n],t[2]=o,t[3]=n,t[4]=y,t[5]=b):(y=t[4],b=t[5]),(0,S.useEffect)(y,b);let x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,D.jsx)(i,{id:`PrVaZo`}),t[6]=x):x=t[6];let C;t[7]===p?C=t[8]:(C=(0,D.jsx)(`h1`,{id:p,className:`font-medium leading-none text-base`,children:x}),t[7]=p,t[8]=C);let T;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,D.jsx)(i,{id:`keop3U`}),t[9]=T):T=t[9];let E;t[10]===m?E=t[11]:(E=(0,D.jsx)(`p`,{id:m,className:`text-sm text-muted-foreground`,children:T}),t[10]=m,t[11]=E);let O;t[12]!==C||t[13]!==E?(O=(0,D.jsxs)(`header`,{className:`shrink-0 px-6 pt-5 pb-3.5 space-y-4`,children:[C,E]}),t[12]=C,t[13]=E,t[14]=O):O=t[14];let k;t[15]===s?k=t[16]:(k=s({id:`QySH4I`}),t[15]=s,t[16]=k);let A;t[17]!==s||t[18]!==n||t[19]!==h||t[20]!==g||t[21]!==c||t[22]!==v?(A=n.length===0?(0,D.jsx)(`div`,{className:`rounded-lg border border-border p-4`,children:(0,D.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:(0,D.jsx)(i,{id:`bKt9Jk`})})}):(0,D.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border border-border`,children:[(0,D.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2.5 border-border border-b px-3 py-2.5 bg-muted/30`,children:[(0,D.jsx)(u,{id:h,checked:g,onCheckedChange:e=>v(e===!0)}),(0,D.jsx)(d,{htmlFor:h,className:`flex-1 font-medium text-sm`,children:(0,D.jsx)(i,{id:`wgNoIs`})}),(0,D.jsxs)(`span`,{role:`status`,"aria-label":s({id:`nsUDL8`,values:{0:c.size,1:n.length}}),className:`text-muted-foreground text-xs tabular-nums`,children:[c.size,` / `,n.length]})]}),(0,D.jsx)(`div`,{className:`subtle-scrollbar min-h-0 flex-1 overflow-y-scroll [scrollbar-gutter:stable]`,children:n.map((e,t)=>(0,D.jsx)(P,{project:e,checked:c.has(t),onCheckedChange:e=>{f(n=>{let r=new Set(n);return e?r.add(t):r.delete(t),r})}},e.path))})]}),t[17]=s,t[18]=n,t[19]=h,t[20]=g,t[21]=c,t[22]=v,t[23]=A):A=t[23];let j;t[24]!==A||t[25]!==k?(j=(0,D.jsx)(`section`,{"aria-label":k,className:`flex min-h-0 flex-1 flex-col px-6 py-3.5`,children:A}),t[24]=A,t[25]=k,t[26]=j):j=t[26];let M;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,D.jsx)(i,{id:`dEgA5A`}),t[27]=M):M=t[27];let N;t[28]===o?N=t[29]:(N=(0,D.jsx)(l,{type:`button`,variant:`outline-mono`,autoFocus:!0,onClick:o,children:M}),t[28]=o,t[29]=N);let F;t[30]!==r||t[31]!==c?(F=()=>r([...c].sort(ee)),t[30]=r,t[31]=c,t[32]=F):F=t[32];let L;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,D.jsx)(i,{id:`J7nMqi`}),t[33]=L):L=t[33];let R;t[34]===F?R=t[35]:(R=(0,D.jsx)(l,{type:`button`,variant:`destructive`,onClick:F,children:L}),t[34]=F,t[35]=R);let z;t[36]!==N||t[37]!==R?(z=(0,D.jsxs)(`footer`,{className:`flex items-center justify-end gap-2.5 border-border border-t bg-muted/50 px-6 pt-3.5 pb-4`,children:[N,R]}),t[36]=N,t[37]=R,t[38]=z):z=t[38];let B;return t[39]!==m||t[40]!==j||t[41]!==z||t[42]!==O||t[43]!==p?(B=(0,D.jsxs)(`div`,{role:`dialog`,"aria-labelledby":p,"aria-describedby":m,className:`flex h-dvh flex-col overflow-hidden bg-background text-foreground`,children:[O,j,z]}),t[39]=m,t[40]=j,t[41]=z,t[42]=O,t[43]=p,t[44]=B):B=t[44],B}function ee(e,t){return e-t}function te(e,t){return t}function I(e,t){return t}function ne(){return new Set}function L(){let e=(0,w.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,D.jsx)(v,{"aria-hidden":`true`,className:`mx-auto mb-4 size-8 text-primary`}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,D.jsx)(`h1`,{className:`mb-2 font-medium text-base leading-none`,children:(0,D.jsx)(i,{id:`j2229h`})}),e[1]=n):n=e[1];let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,D.jsx)(`main`,{className:`grid h-dvh place-items-center bg-background text-foreground`,children:(0,D.jsxs)(`div`,{role:`status`,className:`max-w-vw px-7 py-7 text-center`,children:[t,n,(0,D.jsx)(`p`,{className:`text-muted-foreground text-sm leading-relaxed`,children:(0,D.jsx)(i,{id:`kCjkGY`})})]})}),e[2]=r):r=e[2],r}function R(){let{_:e}=a();return{"workflow-fit":e({id:`5vAI6Z`}),"missing-feature":e({id:`cH0dkG`}),"hard-to-start":e({id:`uoJF_D`}),unreliable:e({id:`WGMoTY`}),"switched-tool":e({id:`jO18NZ`}),"one-off":e({id:`S3qu11`}),other:e({id:`aQyGJc`})}}function z(e){let t=(0,w.c)(86),{onSend:n,onSkip:r}=e,{_:o}=a(),s=R(),[c,g]=(0,S.useState)(``),[_,v]=(0,S.useState)(``),[b,C]=(0,S.useState)(!1),[T,E]=(0,S.useState)(``),O=(0,S.useRef)(null),k=(0,S.useId)(),A=(0,S.useId)(),j=(0,S.useId)(),M=(0,S.useId)(),N=(0,S.useId)(),P=(0,S.useId)(),F,ee;t[0]===b?(F=t[1],ee=t[2]):(F=()=>{b&&O.current?.focus()},ee=[b],t[0]=b,t[1]=F,t[2]=ee),(0,S.useEffect)(F,ee);let te;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,D.jsx)(i,{id:`ElyuiT`}),t[3]=te):te=t[3];let I;t[4]===k?I=t[5]:(I=(0,D.jsx)(`h1`,{id:k,className:`font-medium leading-none text-base`,children:te}),t[4]=k,t[5]=I);let ne;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,D.jsx)(i,{id:`ZDOq9A`}),t[6]=ne):ne=t[6];let L;t[7]===A?L=t[8]:(L=(0,D.jsx)(`p`,{id:A,className:`text-muted-foreground text-sm`,children:ne}),t[7]=A,t[8]=L);let z;t[9]!==I||t[10]!==L?(z=(0,D.jsxs)(`header`,{className:`px-6 pt-5 pb-3.5 space-y-4`,children:[I,L]}),t[9]=I,t[10]=L,t[11]=z):z=t[11];let B;t[12]!==T||t[13]!==b||t[14]!==_||t[15]!==n||t[16]!==c?(B=e=>{e.preventDefault();let t=_.trim(),r=b?T.trim():``;n({...c===``?{}:{reason:c},...t===``?{}:{note:t},...r===``?{}:{email:r}})},t[12]=T,t[13]=b,t[14]=_,t[15]=n,t[16]=c,t[17]=B):B=t[17];let re;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,D.jsx)(i,{id:`oxdGJn`}),t[18]=re):re=t[18];let V;t[19]===j?V=t[20]:(V=(0,D.jsx)(`p`,{id:j,className:`mb-2 font-medium text-sm`,children:re}),t[19]=j,t[20]=V);let H;t[21]!==j||t[22]!==s?(H=h.map(e=>(0,D.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-1 py-1`,children:[(0,D.jsx)(f,{id:`${j}-${e.value}`,value:e.value}),(0,D.jsx)(d,{htmlFor:`${j}-${e.value}`,className:`font-normal text-sm leading-snug`,children:s[e.value]})]},e.value)),t[21]=j,t[22]=s,t[23]=H):H=t[23];let U;t[24]!==j||t[25]!==c||t[26]!==H?(U=(0,D.jsx)(p,{"aria-labelledby":j,value:c,onValueChange:g,children:H}),t[24]=j,t[25]=c,t[26]=H,t[27]=U):U=t[27];let W;t[28]!==V||t[29]!==U?(W=(0,D.jsxs)(`div`,{className:`mb-6`,children:[V,U]}),t[28]=V,t[29]=U,t[30]=W):W=t[30];let ie;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(0,D.jsx)(i,{id:`axQ1h6`}),t[31]=ie):ie=t[31];let G;t[32]===M?G=t[33]:(G=(0,D.jsx)(d,{htmlFor:M,className:`mb-2 font-medium text-sm`,children:ie}),t[32]=M,t[33]=G);let K;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(K=e=>v(e.target.value),t[34]=K):K=t[34];let q;t[35]!==_||t[36]!==M?(q=(0,D.jsx)(x,{id:M,rows:3,maxLength:m,value:_,onChange:K}),t[35]=_,t[36]=M,t[37]=q):q=t[37];let J;t[38]!==G||t[39]!==q?(J=(0,D.jsxs)(`div`,{className:`mb-6`,children:[G,q]}),t[38]=G,t[39]=q,t[40]=J):J=t[40];let ae;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(ae=e=>C(e===!0),t[41]=ae):ae=t[41];let Y;t[42]!==b||t[43]!==N?(Y=(0,D.jsx)(u,{id:N,checked:b,onCheckedChange:ae}),t[42]=b,t[43]=N,t[44]=Y):Y=t[44];let oe;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,D.jsx)(i,{id:`xEb24l`}),t[45]=oe):oe=t[45];let X;t[46]===N?X=t[47]:(X=(0,D.jsx)(d,{htmlFor:N,className:`font-medium text-sm`,children:oe}),t[46]=N,t[47]=X);let Z;t[48]!==Y||t[49]!==X?(Z=(0,D.jsxs)(`div`,{className:`mb-2 flex items-center gap-2.5`,children:[Y,X]}),t[48]=Y,t[49]=X,t[50]=Z):Z=t[50];let se=!b,ce;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,D.jsx)(i,{id:`ATGYL1`}),t[51]=ce):ce=t[51];let Q;t[52]===P?Q=t[53]:(Q=(0,D.jsx)(d,{htmlFor:P,className:`mb-2 font-medium text-sm sr-only`,children:ce}),t[52]=P,t[53]=Q);let le;t[54]===o?le=t[55]:(le=o({id:`JHf6qZ`}),t[54]=o,t[55]=le);let ue=!b,de;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(de=e=>E(e.target.value),t[56]=de):de=t[56];let fe;t[57]!==T||t[58]!==P||t[59]!==le||t[60]!==ue?(fe=(0,D.jsx)(y,{id:P,ref:O,type:`email`,maxLength:320,autoComplete:`email`,spellCheck:!1,placeholder:le,disabled:ue,value:T,onChange:de}),t[57]=T,t[58]=P,t[59]=le,t[60]=ue,t[61]=fe):fe=t[61];let $;t[62]!==se||t[63]!==Q||t[64]!==fe?($=(0,D.jsxs)(`div`,{className:`mb-6`,hidden:se,children:[Q,fe]}),t[62]=se,t[63]=Q,t[64]=fe,t[65]=$):$=t[65];let pe;t[66]!==W||t[67]!==J||t[68]!==Z||t[69]!==$?(pe=(0,D.jsxs)(`div`,{className:`subtle-scrollbar min-h-0 flex-1 overflow-y-auto px-6 pt-1 pb-4`,children:[W,J,Z,$]}),t[66]=W,t[67]=J,t[68]=Z,t[69]=$,t[70]=pe):pe=t[70];let me;t[71]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,D.jsx)(i,{id:`6Uau97`}),t[71]=me):me=t[71];let he;t[72]===r?he=t[73]:(he=(0,D.jsx)(l,{type:`button`,variant:`outline-mono`,autoFocus:!0,onClick:r,children:me}),t[72]=r,t[73]=he);let ge;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,D.jsx)(l,{type:`submit`,children:(0,D.jsx)(i,{id:`xMsnTe`})}),t[74]=ge):ge=t[74];let _e;t[75]===he?_e=t[76]:(_e=(0,D.jsxs)(`footer`,{className:`flex items-center justify-end gap-2.5 border-border border-t bg-muted/50 px-6 pt-3.5 pb-4`,children:[he,ge]}),t[75]=he,t[76]=_e);let ve;t[77]!==pe||t[78]!==_e||t[79]!==B?(ve=(0,D.jsxs)(`form`,{className:`flex min-h-0 flex-1 flex-col`,onSubmit:B,children:[pe,_e]}),t[77]=pe,t[78]=_e,t[79]=B,t[80]=ve):ve=t[80];let ye;return t[81]!==A||t[82]!==ve||t[83]!==z||t[84]!==k?(ye=(0,D.jsxs)(`div`,{role:`dialog`,"aria-labelledby":k,"aria-describedby":A,className:`flex h-dvh flex-col bg-background text-foreground`,children:[z,ve]}),t[81]=A,t[82]=ve,t[83]=z,t[84]=k,t[85]=ye):ye=t[85],ye}function B(){let e=(0,w.c)(9),[t,n]=(0,S.useState)(null),r,a;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=!0;return T().then(t=>{e&&n(t)}),()=>{e=!1}},a=[],e[0]=r,e[1]=a):(r=e[0],a=e[1]),(0,S.useEffect)(r,a),t!==null)switch(t.kind){case`picker`:{let n;return e[2]===t.projects?n=e[3]:(n=(0,D.jsx)(F,{projects:t.projects,onConfirm:G,onCancel:ie}),e[2]=t.projects,e[3]=n),n}case`survey`:{let t;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,D.jsx)(z,{onSend:W,onSkip:U}),e[4]=t):t=e[4],t}case`progress`:{let t;return e[5]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,D.jsx)(L,{}),e[5]=t):t=e[5],t}case`notice`:{let n;return e[6]===t.notice?n=e[7]:(n=(0,D.jsx)(k,{notice:t.notice,onConfirm:H,onCancel:V,onRevealLog:re}),e[6]=t.notice,e[7]=n),n}default:return t}let o;return e[8]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,D.jsx)(`main`,{className:`flex min-h-dvh items-center justify-center bg-background p-8 text-foreground`,children:(0,D.jsx)(`p`,{className:`text-center text-muted-foreground text-sm`,children:(0,D.jsx)(i,{id:`tzGWeg`})})}),e[8]=o):o=e[8],o}function re(){return E({kind:`notice-reveal-log`})}function V(){return E({kind:`notice-cancel`})}function H(){return E({kind:`notice-confirm`})}function U(){return E({kind:`survey-skip`})}function W(e){return E({kind:`survey-send`,...e})}function ie(){return E({kind:`picker-cancel`})}function G(e){return E({kind:`picker-confirm`,selectedIndexes:e})}var K=document.getElementById(`root`);if(!K)throw Error(`Root element not found`);(0,C.createRoot)(K).render((0,D.jsx)(S.StrictMode,{children:(0,D.jsx)(o,{i18n:g,children:(0,D.jsx)(B,{})})}));
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{Bs as r,Fs as i,Ps as a,_t as o,h as s,ks as c,m as l,qo as u,ss as d,us as f,ys as p}from"./dist-D-pIxpOA2.js";var m=e(t(),1),h=n();function g(e,t=d){return t.find(t=>t.id===e)??r(e)}function _(e,t=d){let n=g(e,t).kind;return n===`system`?void 0:n}function v(e){return{colorThemeLight:e.light,colorThemeDark:e.dark,colorTheme:null}}function y(){return{colorThemeLight:null,colorThemeDark:null,colorTheme:null}}var b=new Map(o.map(e=>[e.name,e]));function x(e,t){let n=b.get(e);if(!n)throw Error(`color-themes: ${e} is not a generated base-theme token`);return n[t]}function S(e){return{sidebar:e===`dark`?l:s,background:x(`--background`,e),primary:x(`--primary`,e),border:x(`--border`,e),"syntax-string":x(`--chart-2`,e),"syntax-keyword":x(`--chart-4`,e),"syntax-atom":x(`--chart-3`,e)}}var C={name:`Custom`,variant:`dark`,palette:{base00:`#0f172a`,base01:`#1e293b`,base02:`#334155`,base03:`#64748b`,base04:`#94a3b8`,base05:`#e2e8f0`,base06:`#f1f5f9`,base07:`#f8fafc`,base08:`#e5534b`,base09:`#db8d3f`,base0A:`#d29922`,base0B:`#3fb950`,base0C:`#22d3ee`,base0D:`#6366f1`,base0E:`#a78bfa`,base0F:`#c2703f`}},w=[`background`,`surface`,`foreground`,`primary`,`accent`,`border`];function T(e){let{background:t,foreground:n}=e;return{name:`Custom`,variant:a(t)<a(n)?`dark`:`light`,palette:{base00:t,base01:e.surface,base02:e.border,base03:c(t,n,.4),base04:c(t,n,.55),base05:n,base06:c(n,`#ffffff`,.3),base07:c(n,`#ffffff`,.6),base08:`#e5534b`,base09:`#db8d3f`,base0A:`#d29922`,base0B:`#3fb950`,base0C:e.accent,base0D:e.primary,base0E:e.accent,base0F:c(`#e5534b`,t,.35)}}}function E(e){return p(e)}function D(){let e=C.palette;return{background:e.base00,surface:e.base01,foreground:e.base05,primary:e.base0D,accent:e.base0C,border:e.base02}}function O(e){let t=D(),n=!1;for(let r of w){let i=e[r];p(i)&&(t[r]=i,n=!0)}return n?t:null}function k(e){return e?w.some(t=>p(e[t])):!1}function A(e){if(!e)return C;let t=O(e),n={...(t?T(t):C).palette};for(let t of u){let r=e[t];p(r)&&(n[t]=r)}let r=e.variant===`light`||e.variant===`dark`?e.variant:a(n.base00)<a(n.base05)?`dark`:`light`;return{name:typeof e.name==`string`&&e.name.trim()?e.name.trim():`Custom`,author:typeof e.author==`string`?e.author:void 0,variant:r,palette:n}}function j(e){let t={name:e.name,author:e.author??null,variant:e.variant};for(let n of u)t[n]=e.palette[n];for(let e of w)t[e]=null;return t}function M(e){return e.variant}function N(e){return i(`html[data-color-theme="custom"]`,e.variant,f(e))}var P=`ok-color-theme-pair-v1`,F=`ok-color-theme-v1`,I=`ok-custom-theme-v1`,L=`data-color-theme`,R=`ok-custom-theme`,z=`ok-saved-theme`;function B(e){let t=document.getElementById(R);t||(t=document.createElement(`style`),t.id=R,document.head.appendChild(t)),t.textContent!==e&&(t.textContent=e)}function V(){document.getElementById(R)?.remove()}function H(e){if(e.scheme)return i(`html[${L}]`,e.scheme.variant,f(e.scheme))}function U(e){let t=document.getElementById(z);t||(t=document.createElement(`style`),t.id=z,document.head.appendChild(t)),t.textContent!==e&&(t.textContent=e)}function W(){document.getElementById(z)?.remove()}function G(e,t,n,r){return e===`custom`?M(A(n))===`dark`:(_(e,r)??t)===`dark`}function K(e,t,n){if(e===`custom`)return N(A(t));if(d.some(t=>t.id===e))return;let r=n.find(t=>t.id===e);return r?H(r):void 0}function q(e,t,n,r){let i=G(e,t,n,r),a=K(e,n,r);return a?{id:e,dark:i,css:a}:{id:e,dark:i}}function J(e){let{selection:t,slotMode:n,customSeed:r,themes:i=d,enabled:a=!0}=e,o=g(a?t[n]:`default`,i).id;return{id:o,dark:G(o,n,r,i)}}function Y(e){if(typeof document>`u`)return;let{selection:t,modePreference:n,customSeed:r,themes:i=d,enabled:a=!0}=e,o=J(e),s=g(o.id,i),c=document.documentElement;o.id===`default`?c.removeAttribute(L):c.setAttribute(L,o.id);let l=!d.some(e=>e.id===o.id)&&s.id===o.id?H(s):void 0;l?U(l):W(),o.id===`custom`?B(N(A(r))):V();let u=t.light===`default`&&t.dark===`default`;try{!a||u?localStorage.removeItem(P):localStorage.setItem(P,JSON.stringify({pref:n===`light`||n===`dark`?n:`system`,light:q(t.light,`light`,r,i),dark:q(t.dark,`dark`,r,i)})),localStorage.removeItem(F),localStorage.removeItem(I)}catch{}}function X(e){let t=(0,h.c)(22),{selection:n,modePreference:r,slotMode:i,customSeed:a,themes:o,enabled:s,ready:c}=e,l=s===void 0?!0:s,u=c===void 0?!0:c,d;t[0]!==a||t[1]!==l||t[2]!==n.dark||t[3]!==n.light?(d=l&&(n.light===`custom`||n.dark===`custom`)?JSON.stringify(a??null):``,t[0]=a,t[1]=l,t[2]=n.dark,t[3]=n.light,t[4]=d):d=t[4];let f=d,p;t[5]!==a||t[6]!==l||t[7]!==r||t[8]!==u||t[9]!==n||t[10]!==i||t[11]!==o?(p=()=>{u&&Y({selection:n,modePreference:r,slotMode:i,customSeed:a,themes:o,enabled:l})},t[5]=a,t[6]=l,t[7]=r,t[8]=u,t[9]=n,t[10]=i,t[11]=o,t[12]=p):p=t[12];let g;t[13]!==l||t[14]!==r||t[15]!==u||t[16]!==f||t[17]!==n.dark||t[18]!==n.light||t[19]!==i||t[20]!==o?(g=[n.light,n.dark,r,i,f,o,l,u],t[13]=l,t[14]=r,t[15]=u,t[16]=f,t[17]=n.dark,t[18]=n.light,t[19]=i,t[20]=o,t[21]=g):g=t[21],(0,m.useEffect)(p,g)}export{_ as a,M as c,k as d,E as f,C as i,j as l,Y as n,y as o,A as p,X as r,v as s,L as t,S as u};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{Ro as i}from"./dist-D-pIxpOA2.js";import{n as a}from"./dist-DTX2HxC82.js";import{C as o,D as s,F as c}from"./skills-api-BWpKRKq_.js";var l=r(),u=e(t(),1);function d(e,t,n){let r=(0,l.c)(13),[i,a]=(0,u.useState)(!1),[s,c]=(0,u.useState)(!1),[d,p]=(0,u.useState)(0),m;r[0]!==n||r[1]!==t||r[2]!==e?(m=()=>{if(!n){a(!1);return}let r=!1;return o({scope:e,name:t,dryRun:!0}).then(e=>{r||(a(e.ok&&e.updated===!0),c(e.ok&&e.gitTracked===!0))}),()=>{r=!0}},r[0]=n,r[1]=t,r[2]=e,r[3]=m):m=r[3];let h;r[4]!==n||r[5]!==t||r[6]!==d||r[7]!==e?(h=[e,t,n,d],r[4]=n,r[5]=t,r[6]=d,r[7]=e,r[8]=h):h=r[8],(0,u.useEffect)(m,h);let g;r[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>p(f),r[9]=g):g=r[9];let _;return r[10]!==i||r[11]!==s?(_={available:i,gitTracked:s,recheck:g},r[10]=i,r[11]=s,r[12]=_):_=r[12],_}function f(e){return e+1}function p(e,t){return e.publisher?i(e.source,e.skill??t)?.skillsUrl??null:null}function m(e){let t=e.trim();if(/^https?:\/\//i.test(t))return t.includes(`github.com`)?t.replace(/\.git$/,``):null;if(/^(?:\.|\/|~|file:|git@)/.test(t))return null;let n=/^([\w.-]+)\/([\w.-]+?)(?:\.git)?(?:\/.*)?$/.exec(t);return n?`https://github.com/${n[1]}/${n[2]}`:null}function h(e,t){return p(e,t)??e.marketplaceUrl??m(e.source)}var g=new Set;function _(e){if(!e)return!1;if(e.autoUpdate!==void 0)return e.autoUpdate;let t=e.source.trim();return t.startsWith(`/`)||t.startsWith(`.`)||t.startsWith(`~`)||t.startsWith(`file://`)||/^[A-Za-z]:[\\/]/.test(t)||t.startsWith(`\\\\`)}function v(e){let t=(0,l.c)(33),{scope:r,name:i}=e,{_:f}=n(),p=c(),m=p.status===`ready`?p.data.find(e=>e.scope===r&&e.name===i):void 0,v=m?.origin??null,y=v?/^adopt:(.+)$/.exec(v.source):null,b=y?y[1].charAt(0).toUpperCase()+y[1].slice(1):null,x=!!v&&!b,{available:S,gitTracked:C,recheck:w}=d(r,i,x),[T,E]=(0,u.useState)(!1),[D,O]=(0,u.useState)(!1),k=_(v),A=m?.modified??!1,j;t[0]!==f||t[1]!==i||t[2]!==w||t[3]!==r?(j=async function(){E(!0);let e=await o({scope:r,name:i});if(E(!1),!e.ok){a.error(f({id:`AYoYhU`,values:{0:e.error}}));return}e.updated?a.success(f({id:`YS9mSt`,values:{0:e.source,name:i}})):a.success(f({id:`ah_ekO`,values:{name:i}}));for(let t of e.warnings)a.warning(t);w()},t[0]=f,t[1]=i,t[2]=w,t[3]=r,t[4]=j):j=t[4];let M=j;(0,u.useEffect)(()=>{if(!S||!k||A||T||C)return;let e=`${r}:${i}`;g.has(e)||(g.add(e),M())});let N;t[5]!==f||t[6]!==i||t[7]!==r?(N=async function(){let e=await o({scope:r,name:i,dryRun:!0});return e.ok?!e.updated||e.upstreamBody===void 0?(a.success(f({id:`ah_ekO`,values:{name:i}})),null):{localBody:e.localBody??``,upstreamBody:e.upstreamBody}:(a.error(f({id:`AYoYhU`,values:{0:e.error}})),null)},t[5]=f,t[6]=i,t[7]=r,t[8]=N):N=t[8];let P=N,F;t[9]!==f||t[10]!==i?(F=async function(){O(!0);let e=await s({name:i});if(O(!1),!e.ok){a.error(f({id:`RO9IbI`,values:{0:e.error}}));return}a.success(f({id:`BhLPRk`,values:{name:i}}));for(let t of e.warnings)a.warning(t)},t[9]=f,t[10]=i,t[11]=F):F=t[11];let I=F,L=v?/\/plugins\/cache\/[^/]+\/([^/]+)\//.exec(v.source)??/\/plugins\/marketplaces\/([^/]+)\//.exec(v.source):null,R=v?b?f({id:`e6dMJT`,values:{harnessLabel:b}}):L?f({id:`xBFg6z`,values:{0:L[1]}}):v.source:null,z=v?new Date(v.importedAt):null,B=z&&!Number.isNaN(z.getTime())?z.toLocaleDateString(void 0,{year:`numeric`,month:`short`,day:`numeric`}):v?.importedAt??null,V=v?h(v,i):null,H=B?f({id:`9J8xNg`,values:{importedLabel:B}}):null,U;t[12]!==f||t[13]!==i||t[14]!==r?(U=async e=>{let t=await o({scope:r,name:i,setAutoUpdate:e});if(!t.ok){a.error(f({id:`fMsFdZ`,values:{0:t.error}}));return}a.success(f(e?{id:`UNwKSz`,values:{name:i}}:{id:`HAvHev`,values:{name:i}}))},t[12]=f,t[13]=i,t[14]=r,t[15]=U):U=t[15];let W=m?.revertable??!1,G;return t[16]!==k||t[17]!==x||t[18]!==R||t[19]!==C||t[20]!==A||t[21]!==v||t[22]!==P||t[23]!==M||t[24]!==T||t[25]!==I||t[26]!==D||t[27]!==V||t[28]!==H||t[29]!==U||t[30]!==W||t[31]!==S?(G={origin:v,github:V,displaySource:R,importedTitle:H,canReimport:x,updateAvailable:S,modified:A,autoUpdate:k,gitTracked:C,setAutoUpdate:U,revertable:W,reimport:M,reimporting:T,previewUpdate:P,revert:I,reverting:D},t[16]=k,t[17]=x,t[18]=R,t[19]=C,t[20]=A,t[21]=v,t[22]=P,t[23]=M,t[24]=T,t[25]=I,t[26]=D,t[27]=V,t[28]=H,t[29]=U,t[30]=W,t[31]=S,t[32]=G):G=t[32],G}export{v as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./compiler-runtime-BfE3aGVn.js";import{t}from"./terminal-telemetry-BJr2Y6UK.js";import{vs as n}from"./dist-D-pIxpOA2.js";import{n as r}from"./config-context-BH8hj2sg.js";import"./config-provider-PxPHWQK1.js";var i=e();function a(){let e=(0,i.c)(3),{projectLocalConfig:t,projectLocalSynced:n}=r(),a=t?.terminal?.enabled??null,o;return e[0]!==n||e[1]!==a?(o={enabled:a,synced:n},e[0]=n,e[1]=a,e[2]=o):o=e[2],o}function o(){let e=(0,i.c)(2),{projectLocalBinding:a}=r();if(a===null)return null;let o;return e[0]===a?o=e[1]:(o=e=>{let r=a.patch({terminal:{enabled:e}});return r.ok&&e&&t(),r.ok?{ok:!0}:{ok:!1,error:n(r.error)}},e[0]=a,e[1]=o),o}export{o as n,a as t};
@@ -1,6 +0,0 @@
1
- import{o as e,t}from"./chunk-CYidjpOJ.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{_ as r,a as i,zn as a}from"./DocumentContext-DjeS2Iep.js";import{t as o}from"./react-f2sANaYj.js";import{n as s,r as c}from"./dist-Nvb76hAm.js";import{t as l}from"./react-dom-DPxgxlDT.js";import{t as u}from"./compiler-runtime-BfE3aGVn.js";import{i as d}from"./local-menu-action-bus-aAi23OVU.js";import{T as f,et as p,q as m}from"./CodeMirrorPropInput-DsPE0Ftk.js";import{Ba as h,Co as g,Fa as _,Ja as v,K as y,Ka as b,Pa as x,Sa as S,Wa as ee,Xa as te,Ya as C,ar as ne,la as re,za as ie,zo as w}from"./dist-D-pIxpOA2.js";import{i as ae,l as oe,m as T,n as se,t as ce}from"./PropertyDisplayRow-CEl7G8Hh.js";import{t as le}from"./minus-HJRULrSt.js";import{t as ue}from"./libesm-CmFxXX9W.js";var E=u(),D=n(),O=200;function de(e){let t=(0,E.c)(27),{delta:n,open:r,onOpenChange:i}=e;if(n.unparseable!==null){let e;return t[0]===n.unparseable?e=t[1]:(e=(0,D.jsx)(ge,{regions:n.unparseable}),t[0]=n.unparseable,t[1]=e),e}if(n.changes.length===0)return null;let a,o,c,l,u,d,f,p,m;if(t[2]!==n.changes||t[3]!==i||t[4]!==r){let e=n.changes.slice(0,50);o=n.changes.length-e.length,a=se,t[14]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,D.jsx)(s,{id:`l_UFPv`}),t[14]=c):c=t[14],l=n.changes.length,u=`property-diff-block`,d=`border-b border-border py-3`,f=r,p=i,m=e.map(fe),t[2]=n.changes,t[3]=i,t[4]=r,t[5]=a,t[6]=o,t[7]=c,t[8]=l,t[9]=u,t[10]=d,t[11]=f,t[12]=p,t[13]=m}else a=t[5],o=t[6],c=t[7],l=t[8],u=t[9],d=t[10],f=t[11],p=t[12],m=t[13];let h;t[15]===o?h=t[16]:(h=o>0&&(0,D.jsx)(`p`,{className:`px-2 pt-1 text-xs text-muted-foreground italic`,children:(0,D.jsx)(s,{id:`6qFchx`,values:{omitted:o}})}),t[15]=o,t[16]=h);let g;return t[17]!==a||t[18]!==c||t[19]!==l||t[20]!==u||t[21]!==d||t[22]!==f||t[23]!==p||t[24]!==m||t[25]!==h?(g=(0,D.jsxs)(a,{title:c,count:l,testId:u,className:d,open:f,onOpenChange:p,children:[m,h]}),t[17]=a,t[18]=c,t[19]=l,t[20]=u,t[21]=d,t[22]=f,t[23]=p,t[24]=m,t[25]=h,t[26]=g):g=t[26],g}function fe(e){return(0,D.jsx)(pe,{change:e},`${e.kind}-${e.key}`)}function pe(e){let t=(0,E.c)(22),{change:n}=e,{_:r}=c(),i=oe[g(n.kind===`removed`?n.before:n.after)],o;t[0]!==r||t[1]!==n.kind?(o=n.kind===`added`?{KindIcon:d,kindLabel:r({id:`hp8OtS`})}:n.kind===`removed`?{KindIcon:le,kindLabel:r({id:`eps54V`})}:{KindIcon:a,kindLabel:r({id:`cNsIJf`})},t[0]=r,t[1]=n.kind,t[2]=o):o=t[2];let{KindIcon:s,kindLabel:l}=o,u;t[3]===s?u=t[4]:(u=(0,D.jsx)(s,{"aria-hidden":`true`,className:`size-3.5`}),t[3]=s,t[4]=u);let f;t[5]===l?f=t[6]:(f=(0,D.jsx)(`span`,{className:`sr-only`,children:l}),t[5]=l,t[6]=f);let p;t[7]!==u||t[8]!==f?(p=(0,D.jsxs)(`span`,{className:`flex size-7 shrink-0 items-center justify-center text-muted-foreground`,children:[u,f]}),t[7]=u,t[8]=f,t[9]=p):p=t[9];let m;t[10]===i?m=t[11]:(m=(0,D.jsx)(i,{"aria-hidden":`true`,className:`size-3.5`}),t[10]=i,t[11]=m);let h;t[12]===n?h=t[13]:(h=(0,D.jsx)(me,{change:n}),t[12]=n,t[13]=h);let _;t[14]!==n.key||t[15]!==m||t[16]!==h?(_=(0,D.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,D.jsx)(ce,{icon:m,label:n.key,dataKey:n.key,children:h})}),t[14]=n.key,t[15]=m,t[16]=h,t[17]=_):_=t[17];let v;return t[18]!==n.key||t[19]!==p||t[20]!==_?(v=(0,D.jsxs)(`div`,{"data-property-change":``,"data-key":n.key,"data-testid":`property-diff-row`,className:`flex items-start gap-1`,children:[p,_]}),t[18]=n.key,t[19]=p,t[20]=_,t[21]=v):v=t[21],v}function me(e){let t=(0,E.c)(17),{change:n}=e;if(n.kind===`added`){let e;return t[0]!==n.after||t[1]!==n.key?(e=(0,D.jsx)(k,{value:n.after,keyName:n.key}),t[0]=n.after,t[1]=n.key,t[2]=e):e=t[2],e}if(n.kind===`removed`){let e;return t[3]!==n.before||t[4]!==n.key?(e=(0,D.jsx)(k,{value:n.before,keyName:n.key,removed:!0}),t[3]=n.before,t[4]=n.key,t[5]=e):e=t[5],e}let r=T(n.before)||T(n.after)?`flex flex-col gap-1`:`flex flex-wrap items-center gap-1.5`,i;t[6]!==n.before||t[7]!==n.key?(i=(0,D.jsx)(k,{value:n.before,keyName:n.key,removed:!0}),t[6]=n.before,t[7]=n.key,t[8]=i):i=t[8];let a;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,D.jsx)(`span`,{"aria-hidden":`true`,className:`text-muted-foreground`,children:`→`}),t[9]=a):a=t[9];let o;t[10]!==n.after||t[11]!==n.key?(o=(0,D.jsx)(k,{value:n.after,keyName:n.key}),t[10]=n.after,t[11]=n.key,t[12]=o):o=t[12];let s;return t[13]!==r||t[14]!==i||t[15]!==o?(s=(0,D.jsxs)(`div`,{className:r,"data-testid":`property-diff-change-pair`,children:[i,a,o]}),t[13]=r,t[14]=i,t[15]=o,t[16]=s):s=t[16],s}function k(e){let t=(0,E.c)(17),{value:n,keyName:r,removed:i}=e,a=i===void 0?!1:i;if(T(n)){let e=a?`opacity-70`:void 0,i;t[0]!==r||t[1]!==n?(i=(0,D.jsx)(ae,{keyName:r,value:n}),t[0]=r,t[1]=n,t[2]=i):i=t[2];let o;return t[3]!==e||t[4]!==i?(o=(0,D.jsx)(`div`,{className:e,children:i}),t[3]=e,t[4]=i,t[5]=o):o=t[5],o}let o,s,c,l;if(t[6]!==a||t[7]!==n){let e=Array.isArray(n)?n.filter(he).join(`, `):String(n),r=e.length>O;o=a?`px-1 text-sm break-words text-muted-foreground line-through`:`px-1 text-sm break-words`,s=r?e:void 0,c=`property-diff-value`,l=r?`${e.slice(0,O)}…`:e,t[6]=a,t[7]=n,t[8]=o,t[9]=s,t[10]=c,t[11]=l}else o=t[8],s=t[9],c=t[10],l=t[11];let u;return t[12]!==o||t[13]!==s||t[14]!==c||t[15]!==l?(u=(0,D.jsx)(`span`,{className:o,title:s,"data-testid":c,children:l}),t[12]=o,t[13]=s,t[14]=c,t[15]=l,t[16]=u):u=t[16],u}function he(e){return typeof e==`string`}function ge(e){let t=(0,E.c)(10),{regions:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,D.jsx)(`p`,{className:`text-xs text-muted-foreground italic`,children:(0,D.jsx)(s,{id:`wFyXOW`})}),t[0]=r):r=t[0];let i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,D.jsx)(s,{id:`EmSrGB`}),t[1]=i):i=t[1];let a;t[2]===n.before?a=t[3]:(a=(0,D.jsx)(A,{label:i,text:n.before}),t[2]=n.before,t[3]=a);let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,D.jsx)(s,{id:`NawEr2`}),t[4]=o):o=t[4];let c;t[5]===n.after?c=t[6]:(c=(0,D.jsx)(A,{label:o,text:n.after}),t[5]=n.after,t[6]=c);let l;return t[7]!==a||t[8]!==c?(l=(0,D.jsxs)(`div`,{className:`border-b border-border px-4 py-3`,"data-testid":`property-diff-unparseable`,"data-property-change":``,children:[r,(0,D.jsxs)(`div`,{className:`mt-2 grid gap-2 sm:grid-cols-2`,children:[a,c]})]}),t[7]=a,t[8]=c,t[9]=l):l=t[9],l}function A(e){let t=(0,E.c)(7),{label:n,text:r}=e,i;t[0]===n?i=t[1]:(i=(0,D.jsx)(`p`,{className:`mb-1 text-xs font-medium text-muted-foreground`,children:n}),t[0]=n,t[1]=i);let a=r===``?`—`:r,o;t[2]===a?o=t[3]:(o=(0,D.jsx)(`pre`,{className:`overflow-x-auto rounded-md bg-muted px-2 py-1.5 font-mono text-xs whitespace-pre-wrap`,children:a}),t[2]=a,t[3]=o);let s;return t[4]!==i||t[5]!==o?(s=(0,D.jsxs)(`div`,{children:[i,o]}),t[4]=i,t[5]=o,t[6]=s):s=t[6],s}var j=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Pointer=void 0,e.unescapeToken=t,e.escapeToken=n;function t(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function n(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}e.Pointer=function(){function e(e){e===void 0&&(e=[``]),this.tokens=e}return e.fromJSON=function(n){var r=n.split(`/`).map(t);if(r[0]!==``)throw Error(`Invalid JSON Pointer: ${n}`);return new e(r)},e.prototype.toString=function(){return this.tokens.map(n).join(`/`)},e.prototype.evaluate=function(e){for(var t=null,n=``,r=e,i=1,a=this.tokens.length;i<a;i++)t=r,n=this.tokens[i],!(n==`__proto__`||n==`constructor`||n==`prototype`)&&(r=(t||{})[n]);return{parent:t,key:n,value:r}},e.prototype.get=function(e){return this.evaluate(e).value},e.prototype.set=function(e,t){var n=this.evaluate(e);n.parent&&(n.parent[n.key]=t)},e.prototype.push=function(e){this.tokens.push(e)},e.prototype.add=function(t){return new e(this.tokens.concat(String(t)))},e.prototype.parent=function(){return new e(this.tokens.length>1?this.tokens.slice(0,-1):[``])},e}()})),M=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hasOwnProperty=void 0,e.objectType=t,e.clone=r,e.hasOwnProperty=Object.prototype.hasOwnProperty;function t(e){return e===void 0?`undefined`:e===null?`null`:Array.isArray(e)?`array`:typeof e}function n(e){return typeof e==`object`&&!!e}function r(t){if(!n(t))return t;if(t.constructor==Array){for(var i=t.length,a=Array(i),o=0;o<i;o++)a[o]=r(t[o]);return a}if(t.constructor==Date)return new Date(+t);var s={};for(var c in t)e.hasOwnProperty.call(t,c)&&(s[c]=r(t[c]));return s}})),N=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isDestructive=n,e.subtract=r,e.intersection=i,e.diffArrays=l,e.diffObjects=u,e.diffAny=d;var t=M();function n(e){var t=e.op;return t===`remove`||t===`replace`||t===`copy`||t===`move`}function r(e,n){var r=[];for(var i in e)t.hasOwnProperty.call(e,i)&&e[i]!==void 0&&!(t.hasOwnProperty.call(n,i)&&n[i]!==void 0)&&r.push(i);return r}function i(e){for(var n=e.length,r={},i=0;i<n;i++){var a=e[i];for(var o in a)t.hasOwnProperty.call(a,o)&&a[o]!==void 0&&(r[o]=(r[o]||0)+1)}for(var o in r)r[o]<n&&delete r[o];return Object.keys(r)}function a(e,n){var r=[];for(var i in e)t.hasOwnProperty.call(e,i)&&e[i]!==void 0&&t.hasOwnProperty.call(n,i)&&n[i]!==void 0&&r.push(i);return r}function o(e){return e.op===`add`}function s(e){return e.op===`remove`}function c(e,t){return{operations:e.operations.concat(t),cost:e.cost+1}}function l(e,t,n,r){r===void 0&&(r=d);var i=Math.max(e.length,t.length),a=new Map([[0,{operations:[],cost:0}]]);function l(o,s){var u=o*i+s,d=a.get(u);if(d===void 0){if(o>0&&s>0&&!r(e[o-1],t[s-1],n.add(String(o-1))).length)d=l(o-1,s-1);else{var f=[];if(o>0){var p=l(o-1,s),m={op:`remove`,index:o-1};f.push(c(p,m))}if(s>0){var h=l(o,s-1),g={op:`add`,index:o-1,value:t[s-1]};f.push(c(h,g))}if(o>0&&s>0){var _=l(o-1,s-1),v={op:`replace`,index:o-1,original:e[o-1],value:t[s-1]};f.push(c(_,v))}d=f.sort(function(e,t){return e.cost-t.cost})[0]}a.set(u,d)}return d}var u=isNaN(e.length)||e.length<=0?0:e.length;return l(u,isNaN(t.length)||t.length<=0?0:t.length).operations.reduce(function(e,t){var i=e[0],a=e[1];if(o(t)){var c=t.index+1+a,l=c<u+a?String(c):`-`,d={op:t.op,path:n.add(l).toString(),value:t.value};return[i.concat(d),a+1]}else if(s(t)){var d={op:t.op,path:n.add(String(t.index+a)).toString()};return[i.concat(d),a-1]}else{var f=n.add(String(t.index+a)),p=r(t.original,t.value,f);return[i.concat.apply(i,p),a]}},[[],0])[0]}function u(e,t,n,i){i===void 0&&(i=d);var o=[];return r(e,t).forEach(function(e){o.push({op:`remove`,path:n.add(e).toString()})}),r(t,e).forEach(function(e){o.push({op:`add`,path:n.add(e).toString(),value:t[e]})}),a(e,t).forEach(function(r){o.push.apply(o,i(e[r],t[r],n.add(r)))}),o}function d(e,n,r,i){if(i===void 0&&(i=d),e===n)return[];var a=(0,t.objectType)(e),o=(0,t.objectType)(n);return a==`array`&&o==`array`?l(e,n,r,i):a==`object`&&o==`object`?u(e,n,r,i):[{op:`replace`,path:r.toString(),value:n}]}})),_e=t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidOperationError=e.TestError=e.MissingError=void 0,e.add=l,e.remove=u,e.replace=d,e.move=f,e.copy=p,e.test=m,e.apply=g;var n=j(),r=M(),i=N(),a=function(e){t(n,e);function n(t){var n=e.call(this,`Value required at path: ${t}`)||this;return n.path=t,n.name=`MissingError`,n}return n}(Error);e.MissingError=a;var o=function(e){t(n,e);function n(t,n){var r=e.call(this,`Test failed: ${t} != ${n}`)||this;return r.actual=t,r.expected=n,r.name=`TestError`,r}return n}(Error);e.TestError=o;function s(e,t,n){if(Array.isArray(e))if(t==`-`)e.push(n);else{var r=parseInt(t,10);e.splice(r,0,n)}else e[t]=n}function c(e,t){if(Array.isArray(e)){var n=parseInt(t,10);e.splice(n,1)}else delete e[t]}function l(e,t,i){var o=n.Pointer.fromJSON(t.path);if(i?.implicitArrayCreation&&o.tokens[o.tokens.length-1]===`-`){var c=o.parent().evaluate(e);c.value===void 0&&(0,r.objectType)(c.parent)===`object`&&(c.parent[c.key]=[])}var l=o.evaluate(e);return l.parent===void 0||i?.implicitArrayCreation&&l.key===`-`&&!Array.isArray(l.parent)?new a(t.path):(s(l.parent,l.key,(0,r.clone)(t.value)),null)}function u(e,t,r){var i=n.Pointer.fromJSON(t.path).evaluate(e);return i.value===void 0?new a(t.path):(c(i.parent,i.key),null)}function d(e,t,i){var o=n.Pointer.fromJSON(t.path).evaluate(e);if(o.parent===null)return new a(t.path);if(Array.isArray(o.parent)){if(parseInt(o.key,10)>=o.parent.length)return new a(t.path)}else if(o.value===void 0)return new a(t.path);return o.parent[o.key]=(0,r.clone)(t.value),null}function f(e,t,r){var i=n.Pointer.fromJSON(t.from).evaluate(e);if(i.value===void 0)return new a(t.from);var o=n.Pointer.fromJSON(t.path).evaluate(e);return o.parent===void 0?new a(t.path):(c(i.parent,i.key),s(o.parent,o.key,i.value),null)}function p(e,t,i){var o=n.Pointer.fromJSON(t.from).evaluate(e);if(o.value===void 0)return new a(t.from);var c=n.Pointer.fromJSON(t.path).evaluate(e);return c.parent===void 0?new a(t.path):(s(c.parent,c.key,(0,r.clone)(o.value)),null)}function m(e,t,r){var a=n.Pointer.fromJSON(t.path).evaluate(e);return(0,i.diffAny)(a.value,t.value,new n.Pointer).length?new o(a.value,t.value):null}var h=function(e){t(n,e);function n(t){var n=e.call(this,`Invalid operation: ${t.op}`)||this;return n.operation=t,n.name=`InvalidOperationError`,n}return n}(Error);e.InvalidOperationError=h;function g(e,t,n){switch(t.op){case`add`:return l(e,t,n);case`remove`:return u(e,t,n);case`replace`:return d(e,t,n);case`move`:return f(e,t,n);case`copy`:return p(e,t,n);case`test`:return m(e,t,n)}return new h(t)}})),ve=t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Pointer=void 0,e.applyPatch=i,e.createPatch=o;var t=j();Object.defineProperty(e,`Pointer`,{enumerable:!0,get:function(){return t.Pointer}});var n=_e(),r=N();function i(e,t,r){return t.map(function(t){return(0,n.apply)(e,t,r)})}function a(e){function t(n,i,a){var o=e(n,i,a);return Array.isArray(o)?o:(0,r.diffAny)(n,i,a,t)}return t}function o(e,n,i){var o=new t.Pointer;return(i?a(i):r.diffAny)(e,n,o)}})),P=e(o(),1),ye=e(l(),1),F=ve();function I(){}I.prototype={diff:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.callback;typeof n==`function`&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout(function(){r(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var o=t.length,s=e.length,c=1,l=o+s;n.maxEditLength&&(l=Math.min(l,n.maxEditLength));var u=n.timeout??1/0,d=Date.now()+u,f=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(f[0],t,e,0);if(f[0].oldPos+1>=s&&p+1>=o)return a([{value:this.join(t),count:t.length}]);var m=-1/0,h=1/0;function g(){for(var n=Math.max(m,-c);n<=Math.min(h,c);n+=2){var r=void 0,l=f[n-1],u=f[n+1];l&&(f[n-1]=void 0);var d=!1;if(u){var g=u.oldPos-n;d=u&&0<=g&&g<o}var _=l&&l.oldPos+1<s;if(!d&&!_){f[n]=void 0;continue}if(r=!_||d&&l.oldPos+1<u.oldPos?i.addToPath(u,!0,void 0,0):i.addToPath(l,void 0,!0,1),p=i.extractCommon(r,t,e,n),r.oldPos+1>=s&&p+1>=o)return a(be(i,r.lastComponent,t,e,i.useLongestToken));f[n]=r,r.oldPos+1>=s&&(h=Math.min(h,n-1)),p+1>=o&&(m=Math.max(m,n+1))}c++}if(r)(function e(){setTimeout(function(){if(c>l||Date.now()>d)return r();g()||e()},0)})();else for(;c<=l&&Date.now()<=d;){var _=g();if(_)return _}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,a=n.length,o=e.oldPos,s=o-r,c=0;s+1<i&&o+1<a&&this.equals(t[s+1],n[o+1]);)s++,o++,c++;return c&&(e.lastComponent={count:c,previousComponent:e.lastComponent}),e.oldPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split(``)},join:function(e){return e.join(``)}};function be(e,t,n,r,i){for(var a=[],o;t;)a.push(t),o=t.previousComponent,delete t.previousComponent,t=o;a.reverse();for(var s=0,c=a.length,l=0,u=0;s<c;s++){var d=a[s];if(!d.removed){if(!d.added&&i){var f=n.slice(l,l+d.count);f=f.map(function(e,t){var n=r[u+t];return n.length>e.length?n:e}),d.value=e.join(f)}else d.value=e.join(n.slice(l,l+d.count));l+=d.count,d.added||(u+=d.count)}else if(d.value=e.join(r.slice(u,u+d.count)),u+=d.count,s&&a[s-1].added){var p=a[s-1];a[s-1]=a[s],a[s]=p}}var m=a[c-1];return c>1&&typeof m.value==`string`&&(m.added||m.removed)&&e.equals(``,m.value)&&(a[c-2].value+=m.value,a.pop()),a}var xe=new I;function Se(e,t,n){return xe.diff(e,t,n)}var L=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,R=/\S/,z=new I;z.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!R.test(e)&&!R.test(t)},z.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&L.test(t[n])&&L.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};function Ce(e,t,n){return z.diff(e,t,n)}var B=new I;B.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
2
- `));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var we=new I;we.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var Te=new I;Te.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function V(e){"@babel/helpers - typeof";return V=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},V(e)}var Ee=Object.prototype.toString,H=new I;H.useLongestToken=!0,H.tokenize=B.tokenize,H.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(e,t){return t===void 0?n:t}:r;return typeof e==`string`?e:JSON.stringify(U(e,null,null,i),i,` `)},H.equals=function(e,t){return I.prototype.equals.call(H,e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`))};function U(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i,e));var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];var o;if(Ee.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=U(e[a],t,n,r,i);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),V(e)===`object`&&e!==null){t.push(e),o={},n.push(o);var s=[],c;for(c in e)e.hasOwnProperty(c)&&s.push(c);for(s.sort(),a=0;a<s.length;a+=1)c=s[a],o[c]=U(e[c],t,n,r,c);t.pop(),n.pop()}else o=e;return o}var W=new I;W.tokenize=function(e){return e.slice()},W.join=W.removeEmpty=function(e){return e};function G(e,t){let n=t.content.findDiffStart(e.content);if(n===null)return!1;let{a:r,b:i}=t.content.findDiffEnd(e.content),a=n-Math.min(r,i);return a>0&&(e.resolve(n-a).depth<t.resolve(r+a).depth?n-=a:(r+=a,i+=a)),new v(n,i,t.slice(n,r))}function De(e){if(!e.steps.length)return;let t=new C(e.docs[0]),n=e.steps.slice();for(;n.length;){let e=n.shift();for(;n.length&&e.merge(n[0]);){let r=n.shift();e=e instanceof v&&r instanceof v?G(t.doc,r.apply(e.apply(t.doc).doc).doc):e.merge(r)}t.step(e)}return t}function K(e){let t=new C(e);return t.removeMark(0,e.nodeSize-2),t.doc}function Oe(e,t){let n=t.split(`/`);for(n.shift();n.length;){if(typeof e!=`object`)throw Error();let t=n.shift();e=e[t]}return e}function q(e){return JSON.parse(JSON.stringify(e))}var ke=class{fromDoc;toDoc;complexSteps;wordDiffs;simplifyDiff;schema;tr;currentJSON;finalJSON;ops;constructor(e,t,n={}){let r={complexSteps:!0,wordDiffs:!1,simplifyDiff:!0,...n};this.fromDoc=e,this.toDoc=t,this.complexSteps=r.complexSteps,this.wordDiffs=r.wordDiffs,this.simplifyDiff=r.simplifyDiff,this.schema=e.type.schema,this.tr=new C(e),this.currentJSON={},this.finalJSON={},this.ops=[]}init(){return this.complexSteps?(this.currentJSON=K(this.fromDoc).toJSON(),this.finalJSON=K(this.toDoc).toJSON(),this.ops=(0,F.createPatch)(this.currentJSON,this.finalJSON),this.recreateChangeContentSteps(),this.recreateChangeMarkSteps()):(this.currentJSON=this.fromDoc.toJSON(),this.finalJSON=this.toDoc.toJSON(),this.ops=(0,F.createPatch)(this.currentJSON,this.finalJSON),this.recreateChangeContentSteps()),this.simplifyDiff&&(this.tr=De(this.tr)||this.tr),this.tr}recreateChangeContentSteps(){let e=[];for(;this.ops.length;){let t=this.ops.shift();e.push(t);let n,r=q(this.currentJSON),i=t.path.split(`/`);for(;n==null;){(0,F.applyPatch)(r,[t]);try{n=this.schema.nodeFromJSON(r),n.check()}catch{if(n=null,this.ops.length>0)t=this.ops.shift(),e.push(t);else throw Error(`No valid diff possible applying ${t.path}`)}}this.complexSteps&&e.length===1&&(i.includes(`attrs`)||i.includes(`type`))?(this.addSetNodeMarkup(),e=[]):e.length===1&&t.op===`replace`&&i[i.length-1]===`text`?(this.addReplaceTextSteps(t,r),e=[]):this.addReplaceStep(n,r)&&(e=[])}}addSetNodeMarkup(){let e=this.schema.nodeFromJSON(this.currentJSON),t=this.schema.nodeFromJSON(this.finalJSON),n=t.content.findDiffStart(e.content),r=e.nodeAt(n),i=t.nodeAt(n);if(n!=null){let e=r.type===i.type?null:i.type;try{this.tr.setNodeMarkup(n,e,i.attrs,i.marks)}catch(t){if(e&&t.message.includes(`Invalid content`))this.tr.replaceWith(n,n+r.nodeSize,i);else throw t}return this.currentJSON=K(this.tr.doc).toJSON(),this.ops=(0,F.createPatch)(this.currentJSON,this.finalJSON),!0}return!1}recreateChangeMarkSteps(){this.toDoc.descendants((e,t)=>{if(!e.isInline)return!0;this.tr.doc.nodesBetween(t,t+e.nodeSize,(n,r)=>{if(!n.isInline)return!0;let i=Math.max(t,r),a=Math.min(t+e.nodeSize,r+n.nodeSize);n.marks.forEach(t=>{t.isInSet(e.marks)||this.tr.removeMark(i,a,t)}),e.marks.forEach(e=>{e.isInSet(n.marks)||this.tr.addMark(i,a,e)})})})}addReplaceStep(e,t){let n=G(this.schema.nodeFromJSON(this.currentJSON),e);if(!n)return!1;if(!this.tr.maybeStep(n).failed)return this.currentJSON=t,!0;throw Error(`No valid step found.`)}addReplaceTextSteps(e,t){let n={...e,value:`xx`},r={...e,value:`yy`},i=q(this.currentJSON),a=q(this.currentJSON);(0,F.applyPatch)(i,[n]),(0,F.applyPatch)(a,[r]);let o=this.schema.nodeFromJSON(i),s=this.schema.nodeFromJSON(a),c=e.value,l=Oe(this.currentJSON,e.path),u=this.wordDiffs?Ce(l,c):Se(l,c),d=o.content.findDiffStart(s.content),f=o.resolve(d+1).marks();for(;u.length;){let e=u.shift();if(e.added){let t=this.schema.nodeFromJSON({type:`text`,text:e.value}).mark(f);if(u.length&&u[0].removed){let e=u.shift();this.tr.replaceWith(d,d+e.value.length,t)}else this.tr.insert(d,t);d+=e.value.length}else if(e.removed)if(u.length&&u[0].added){let t=u.shift(),n=this.schema.nodeFromJSON({type:`text`,text:t.value}).mark(f);this.tr.replaceWith(d,d+e.value.length,n),d+=t.value.length}else this.tr.delete(d,d+e.value.length);else d+=e.value.length}this.currentJSON=t}};function Ae(e,t,n={}){return new ke(e,t,n).init()}var je=new Set([`list`,`bulletList`,`orderedList`,`taskList`]);function J(e){let t=[];return e.forEach((e,n)=>{if(je.has(e.type.name)){let r=n+1,i=0;e.forEach(e=>{let n=r+i;t.push({from:n,to:n+e.nodeSize,key:`${e.type.name}:${e.textContent}`}),i+=e.nodeSize})}else t.push({from:n,to:n+e.nodeSize,key:`${e.type.name}:${e.textContent}`})}),t}function Me(e,t){let n=e.length,r=t.length,i=Array.from({length:n+1},()=>Array(r+1).fill(0));for(let a=n-1;a>=0;a--)for(let n=r-1;n>=0;n--)i[a][n]=e[a].key===t[n].key?i[a+1][n+1]+1:Math.max(i[a+1][n],i[a][n+1]);let a=[],o=0,s=0;for(;o<n&&s<r;)e[o].key===t[s].key?(a.push({type:`same`,b:t[s]}),o++,s++):i[o+1][s]>=i[o][s+1]?(a.push({type:`del`,a:e[o]}),o++):(a.push({type:`ins`,b:t[s]}),s++);for(;o<n;)a.push({type:`del`,a:e[o++]});for(;s<r;)a.push({type:`ins`,b:t[s++]});return a}function Ne(e,t){let n=Me(J(e),J(t)),r=[],i=0;for(let e of n)e.type===`same`?i=e.b.to:e.type===`ins`?(r.push({fromA:0,toA:0,fromB:e.b.from,toB:e.b.to}),i=e.b.to):r.push({fromA:e.a.from,toA:e.a.to,fromB:i,toB:i});return r}var Pe=400;function Y(e,t,n){return t.nodeFromJSON(e.parseWithFallback(n))}function Fe(e,t){let n=t.filter(e=>e.toB>e.fromB),r=[];return e.steps.forEach((t,i)=>{let a=t instanceof ee?`add`:t instanceof b?`remove`:null;if(a===null)return;let o=t,s=e.mapping.slice(i+1),c=s.map(o.from,-1),l=s.map(o.to,1);if(l<=c||n.some(e=>e.fromB<=c&&l<=e.toB))return;let u=e.mapping.slice(0,i).invert(),d=u.map(o.from),f=u.map(o.to);f<=d||r.push({fromA:d,toA:f,fromB:c,toB:l,markName:o.mark.type.name,kind:a})}),r}function Ie(e,t,n,r){if(e.length>2e5||t.length>2e5)return{ok:!1,reason:`ceiling`};let i,a;try{i=Y(r,n,e),a=Y(r,n,t)}catch{return{ok:!1,reason:`parse`}}let o=a,s=null;try{s=Ae(i,a,{complexSteps:!0,wordDiffs:!0,simplifyDiff:!0}),o=s.doc}catch{}let c=Ne(i,o),l=s?Fe(s,c):[];return c.length+l.length>Pe?{ok:!1,reason:`ceiling`}:{ok:!0,afterDoc:o,beforeDoc:i,changes:c,markChanges:l}}var Le=`.ok-diff-ins, .ok-diff-ins-block, [data-diff-deleted]`;function Re(e){return e.changes.length+2*e.markChanges.length}function X(e){let t=!1;return e.forEach(e=>{e.isBlock&&(t=!0)}),t}function ze(e){if(e.childCount===0)return!1;let t=!0;return e.forEach(e=>{e.type.name!==`listItem`&&e.type.name!==`taskItem`&&(t=!1)}),t}function Z(e,t,n){let r=document.createElement(n?`div`:`span`);r.className=n?`ok-diff-del ok-diff-del-block`:`ok-diff-del`,r.setAttribute(`data-diff-deleted`,``);let i=e.serializeFragment(t);if(n&&ze(t)){let e=document.createElement(`ul`);e.appendChild(i),r.appendChild(e)}else r.appendChild(i);return r}function Be(e,t,n,r,i){let a=te.fromSchema(i),o=[];for(let e of r){let n=t.slice(e.fromA,e.toA),r=X(n.content);o.push(x.widget(e.fromB,()=>Z(a,n.content,r),{side:-1,ignoreSelection:!0,marks:[]})),o.push(x.inline(e.fromB,e.toB,{class:`ok-diff-ins`},{inclusiveEnd:!0}))}for(let e of n)if(e.toB>e.fromB&&o.push(x.node(e.fromB,e.toB,{class:`ok-diff-ins-block`})),e.toA>e.fromA){let n=t.slice(e.fromA,e.toA),r=X(n.content);o.push(x.widget(e.fromB,()=>Z(a,n.content,r),{side:-1,ignoreSelection:!0,marks:[]}))}return _.create(e,o)}var Ve=new Set([`slashCommand`,`blockDragHandle`,`blockMover`,`tableInsertControls`,`fileHandler`,`gfmAutolink`,`inlineLinkInputRule`,`keyboardNav`,`tiptapFindReplace`,`selectionState`,`sourceDirtyObserver`,`tabFocusTrap`]),Q=r.filter(e=>!Ve.has(e.name)).map(e=>e.name===`jsxComponent`?y:e),He=S(Q);function Ue(e,t){return Ie(e,t,He,f())}var We=re.create({name:`renderedDiffDecorations`,addOptions(){return{decorations:_.empty}},addProseMirrorPlugins(){let e=this.options.decorations;return[new ie({key:new h(`renderedDiffDecorations`),props:{decorations:()=>e}})]}});function Ge(e){let t=(0,E.c)(31),{diff:n}=e,r,i,a,o;if(t[0]!==n.afterDoc||t[1]!==n.beforeDoc||t[2]!==n.changes||t[3]!==n.markChanges){let e=Be(n.afterDoc,n.beforeDoc,n.changes,n.markChanges,He);o=p,a=!1,r=Q,i=We.configure({decorations:e}),t[0]=n.afterDoc,t[1]=n.beforeDoc,t[2]=n.changes,t[3]=n.markChanges,t[4]=r,t[5]=i,t[6]=a,t[7]=o}else r=t[4],i=t[5],a=t[6],o=t[7];let s;t[8]!==r||t[9]!==i?(s=[...r,i],t[8]=r,t[9]=i,t[10]=s):s=t[10];let c;t[11]===n.afterDoc?c=t[12]:(c=n.afterDoc.toJSON(),t[11]=n.afterDoc,t[12]=c);let l;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(l={attributes:{class:`pt-4`}},t[13]=l):l=t[13];let u;t[14]!==a||t[15]!==s||t[16]!==c?(u={editable:a,extensions:s,content:c,editorProps:l},t[14]=a,t[15]=s,t[16]=c,t[17]=u):u=t[17];let d;t[18]===n?d=t[19]:(d=[n],t[18]=n,t[19]=d);let f=o(u,d),[h]=(0,P.useState)(Ke),g=(0,P.useRef)(null),_,v;t[20]===h?(_=t[21],v=t[22]):(_=()=>{let e=g.current;if(e)return e.appendChild(h),()=>{h.parentNode===e&&e.removeChild(h)}},v=[h],t[20]=h,t[21]=_,t[22]=v),(0,P.useLayoutEffect)(_,v);let y;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,D.jsx)(`div`,{className:`tiptap-editor`,children:(0,D.jsx)(`div`,{ref:g,style:{display:`contents`}})}),t[23]=y):y=t[23];let b;t[24]===f?b=t[25]:(b=(0,D.jsx)(m,{editor:f,className:`tiptap-editor-portal-content`}),t[24]=f,t[25]=b);let x;t[26]!==h||t[27]!==b?(x=(0,ye.createPortal)(b,h),t[26]=h,t[27]=b,t[28]=x):x=t[28];let S;return t[29]===x?S=t[30]:(S=(0,D.jsxs)(`div`,{className:`editor-doc-scroll min-h-0 flex-1`,"data-testid":`rendered-diff-view`,children:[y,x]}),t[29]=x,t[30]=S),S}function Ke(){let e=document.createElement(`div`);return e.style.display=`contents`,e}var qe=`[data-property-change]`;function Je(e){let t=0,n=!1;for(let r of e.split(`
3
- `)){let e=r.startsWith(`+`)&&!r.startsWith(`+++`)||r.startsWith(`-`)&&!r.startsWith(`---`);e&&!n&&(t+=1),n=e}return t}function Ye(e){let t=Array.from(e.querySelectorAll(`.diff-code-insert, .diff-code-delete`)),n=[],r=null;for(let e of t){let t=e.closest(`tr`);t&&((r===null||t.previousElementSibling!==r)&&n.push(e),r=t)}return n}function $(e){let t=0,n=0;for(let r of e.split(`
4
- `))r.startsWith(`+`)&&!r.startsWith(`+++`)?t++:r.startsWith(`-`)&&!r.startsWith(`---`)&&n++;return{additions:t,deletions:n}}function Xe(e,t){return`${e}\u0000${t}`}function Ze(e,t,n){let r=w(e).body,i=w(t).body;return r===i?``:ue(n,r,i,``,``,{context:Math.max(r.split(`
5
- `).length,i.split(`
6
- `).length)})}function Qe(e,t,n,r,a){let o=(0,E.c)(10),s=r===void 0?`vs-live`:r,c=a===void 0?null:a,{activeProvider:l}=i(),u;o[0]===Symbol.for(`react.memo_cache_sentinel`)?(u={status:`idle`,diff:null},o[0]=u):u=o[0];let[d,f]=(0,P.useState)(u),p=(0,P.useRef)(l),m;o[1]===l?m=o[2]:(m=()=>{p.current=l},o[1]=l,o[2]=m),(0,P.useEffect)(m);let h,g;return o[3]!==n||o[4]!==t||o[5]!==s||o[6]!==c||o[7]!==e?(h=()=>{if(!e){f({status:`idle`,diff:null});return}let r=e,i=!1;f({status:`loading`,diff:null});let a=async function(e){let r=Xe(t,e),i=n.get(r);if(i!==void 0)return i;let a=await fetch(`/api/history/${e}?docName=${encodeURIComponent(t)}`);if(!a.ok)return console.error(`[timeline-diff] history fetch returned non-ok response`,{sha:e,docName:t,status:a.status}),null;let o=(await a.json()).content??``;return n.set(r,o),o};return(async function(){try{let e=await a(r);if(i)return;if(e===null){f({status:`error`,diff:null});return}let n,o;if(s===`vs-parent`){let t=c?await a(c):``;if(i)return;if(t===null){f({status:`error`,diff:null});return}n=t,o=e}else n=e,o=p.current?.document.getText(`source`).toString()??``;let l=w(n).body,u=w(o).body,d=Ze(n,o,t),m=ne(n,o);if(i)return;let{additions:h,deletions:g}=$(d);f({status:`ready`,diff:d,additions:h,deletions:g,before:l,after:u,properties:m})}catch(e){i||(console.error(`[timeline-diff] failed to load entry diff`,{sha:r,docName:t,mode:s,err:e}),f({status:`error`,diff:null}))}})(),()=>{i=!0}},g=[e,t,n,s,c],o[3]=n,o[4]=t,o[5]=s,o[6]=c,o[7]=e,o[8]=h,o[9]=g):(h=o[8],g=o[9]),(0,P.useEffect)(h,g),d}export{Je as a,Le as c,Ye as i,Re as l,Qe as n,Ge as o,qe as r,Ue as s,$ as t,de as u};
@@ -1 +0,0 @@
1
- import"./chunk-KEIR6QF5-imCK5c0A.js";import{n as e}from"./chunk-5FCAYU7R-Dv69xCWM.js";export{e as createWardleyServices};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-CAkY8Blx.js";var t=e(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{t};
@@ -1 +0,0 @@
1
- import"./src-BD1wHyiU.mjs";import"./resolve-project-root-CXTFWDeF.mjs";import"./src-B7h6Rdfy.mjs";import"./acp-harness-probe-BtuZH5xB.mjs";import"./init-DQD6jW3w.mjs";import{n as e}from"./loader-BJs1nphI.mjs";import"./skill-teardown-D5P-vpe_.mjs";import"./preview-D3B8IpV0.mjs";import"./mcp-migrate-event-9DFnNzHa.mjs";export{e as loadConfig};
@@ -1 +0,0 @@
1
- import{d as e,f as t,n,y as r}from"./start-DGV1Y2SQ.mjs";export{n as bootStartServer,e as resolveBundledReactShellDir,t as resolveHost,r as startCommand};