@inkeep/open-knowledge 0.33.0-beta.5 → 0.33.0-beta.7

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 (458) hide show
  1. package/dist/{_baseFor-DgUmPvii.mjs → _baseFor-CMmZqlg4.mjs} +1 -1
  2. package/dist/alias-JE7RI5QX-DUBvIpa7.mjs +1 -0
  3. package/dist/{arc-DeCRbT14.mjs → arc-CQLjZPEs.mjs} +2 -2
  4. package/dist/architecture-YZFGNWBL-BGsYftSC.mjs +1 -0
  5. package/dist/{architectureDiagram-Q4EWVU46-Ddeiwqm4.mjs → architectureDiagram-Q4EWVU46-DGG0IyfP.mjs} +2 -2
  6. package/dist/{array-CB05KhfS.mjs → array-BNmwzyCf.mjs} +1 -1
  7. package/dist/assets/skills/discovery/SKILL.md +1 -1
  8. package/dist/assets/skills/project/SKILL.md +1 -1
  9. package/dist/awk2-BBAGSFUB-BSXvsYKE.mjs +1 -0
  10. package/dist/{banner-BeBA-IMp.mjs → banner-DsGpC-o3.mjs} +2 -2
  11. package/dist/base64-4YMZCVJ5-r5zsLj5P.mjs +1 -0
  12. package/dist/basename-AA2KJYZQ-DlSFPnLd.mjs +1 -0
  13. package/dist/bash-IJWYRKFO-CMwhRejZ.mjs +1 -0
  14. package/dist/{blockDiagram-DXYQGD6D-Cym5AJGx.mjs → blockDiagram-DXYQGD6D-DO_ZPiei.mjs} +2 -2
  15. package/dist/{build-CN003PPg.mjs → build-BGRQ9c88.mjs} +1 -1
  16. package/dist/build-C__Nqi6T.mjs +1 -0
  17. package/dist/{c4Diagram-AHTNJAMY-B7HMnVPk.mjs → c4Diagram-AHTNJAMY-CYnXxcYe.mjs} +2 -2
  18. package/dist/cat-RDUMLXKC-CBoLzbAA.mjs +1 -0
  19. package/dist/channel-Dz_kn09_.mjs +2 -0
  20. package/dist/chmod-SYMGL4JA-L3CtA8Q4.mjs +1 -0
  21. package/dist/{chokidar-C-Jds_Bg.mjs → chokidar-CrFRJt-7.mjs} +1 -1
  22. package/dist/{chunk-24IMIIXA-DaS5XS55.mjs → chunk-24IMIIXA-ByE3n7F5.mjs} +2 -2
  23. package/dist/{chunk-2KRD3SAO-Ci0JL9ng.mjs → chunk-2KRD3SAO-CC8_tMR3.mjs} +2 -2
  24. package/dist/{chunk-2TRDZQLB-Kqh0farN.mjs → chunk-2TRDZQLB-DJYfX1DB.mjs} +2 -2
  25. package/dist/{chunk-336JU56O-MOsDPDtl.mjs → chunk-336JU56O-D5mJPHrS.mjs} +2 -2
  26. package/dist/{chunk-3BS5SKQH-Chc9fv52.mjs → chunk-3BS5SKQH-C7siUFvi.mjs} +3 -3
  27. package/dist/{chunk-3H6UQG3A-B7zoJt1R.mjs → chunk-3H6UQG3A-jehz9Mov.mjs} +2 -2
  28. package/dist/{chunk-3THT3N7L-B1WzJUh4.mjs → chunk-3THT3N7L-DNeAafDi.mjs} +1 -1
  29. package/dist/{chunk-3ZUFRYJ4-DQB4hWDy.mjs → chunk-3ZUFRYJ4-5tUBEJiQ.mjs} +1 -1
  30. package/dist/chunk-426QAEUC-C79-xu4k.mjs +2 -0
  31. package/dist/{chunk-44UOCSGV-BZ6LfyW2.mjs → chunk-44UOCSGV-C07LY83n.mjs} +1 -1
  32. package/dist/{chunk-4BX2VUAB-BXGPfnwm.mjs → chunk-4BX2VUAB-CeLVr99T.mjs} +2 -2
  33. package/dist/{chunk-4GTNDTRF-CexF8C0H.mjs → chunk-4GTNDTRF-C79jHZPW.mjs} +2 -2
  34. package/dist/{chunk-4HHKTUW3-CewYv3NE.mjs → chunk-4HHKTUW3-C9w0lckj.mjs} +1 -1
  35. package/dist/{chunk-4Q4SM6WR-D6TVzfh2.mjs → chunk-4Q4SM6WR-BBf5_ewP.mjs} +2 -2
  36. package/dist/{chunk-4TB4RGXK-B0uHEnHn.mjs → chunk-4TB4RGXK-n_iVg8hq.mjs} +2 -2
  37. package/dist/{chunk-55IACEB6-CWM_Woee.mjs → chunk-55IACEB6-DnxgLkXS.mjs} +2 -2
  38. package/dist/{chunk-55VFSPNA-BoFmUszu.mjs → chunk-55VFSPNA-BI1ZlfMG.mjs} +2 -2
  39. package/dist/{chunk-5FUZZQ4R-BSIWed9s.mjs → chunk-5FUZZQ4R-D0CI_lA3.mjs} +2 -2
  40. package/dist/{chunk-5PVQY5BW-_JlgOiAb.mjs → chunk-5PVQY5BW-CM3DDgan.mjs} +2 -2
  41. package/dist/{chunk-5QMZ5MUS-BwpNU33k.mjs → chunk-5QMZ5MUS-DvwGjmAW.mjs} +2 -2
  42. package/dist/{chunk-5QVNJEHU-DJjin--s.mjs → chunk-5QVNJEHU-BwcO0gX-.mjs} +2 -2
  43. package/dist/{chunk-5V6VZH6T-BEpcJpsv.mjs → chunk-5V6VZH6T-CsG6wUhk.mjs} +2 -2
  44. package/dist/{chunk-62RKD26F-uqVDf3rA.mjs → chunk-62RKD26F-CgKazjAi.mjs} +2 -2
  45. package/dist/{chunk-64BAICW3-BlKhhT3-.mjs → chunk-64BAICW3-DZxI2NVA.mjs} +2 -2
  46. package/dist/{chunk-67CJDMHE-CADkctrU.mjs → chunk-67CJDMHE-CrUJnyQp.mjs} +2 -2
  47. package/dist/{chunk-6Z5SFZXK-DuXsHt84.mjs → chunk-6Z5SFZXK-CqxoPFbR.mjs} +2 -2
  48. package/dist/{chunk-74CEPOFO-CciWp7CZ.mjs → chunk-74CEPOFO-smMq6g2B.mjs} +1 -1
  49. package/dist/{chunk-7L36YK2X-Cok_Mfzv.mjs → chunk-7L36YK2X-BEYeMppm.mjs} +1 -1
  50. package/dist/{chunk-7N4EOEYR-D0VnhW8C.mjs → chunk-7N4EOEYR-qv4-7fqt.mjs} +2 -2
  51. package/dist/{chunk-7TSDKFEO-9ACIOuIO.mjs → chunk-7TSDKFEO-B7rhvhjt.mjs} +1 -1
  52. package/dist/{chunk-A4HU7SVR-DPxgapmK.mjs → chunk-A4HU7SVR-BReRiEUm.mjs} +1 -1
  53. package/dist/{chunk-A4JSPFCI-B_-pySix.mjs → chunk-A4JSPFCI-CzC3HvcT.mjs} +2 -2
  54. package/dist/{chunk-A5O5YHGN-DApqA6Ow.mjs → chunk-A5O5YHGN-0FmmnDn4.mjs} +2 -2
  55. package/dist/{chunk-A65PWWJC-DRkFYIUZ.mjs → chunk-A65PWWJC-DDcfQP9l.mjs} +2 -2
  56. package/dist/{chunk-A7A2DBEE-DGJklf-9.mjs → chunk-A7A2DBEE-DxoLZwYW.mjs} +1 -1
  57. package/dist/{chunk-A7ICOL4V-BSbI3udS.mjs → chunk-A7ICOL4V-DLpBcLKS.mjs} +2 -2
  58. package/dist/{chunk-AA7GKIK3-DiBKA6eA.mjs → chunk-AA7GKIK3-hv3Reau6.mjs} +2 -2
  59. package/dist/{chunk-ALLTKNUZ-B1s5GUUO.mjs → chunk-ALLTKNUZ-8gj-zLqF.mjs} +2 -2
  60. package/dist/{chunk-APT7OOP2-CgGkczFr.mjs → chunk-APT7OOP2-Ba0TjHQy.mjs} +2 -2
  61. package/dist/{chunk-B74TABJS-CM6MrFZT.mjs → chunk-B74TABJS-D6QwMpPz.mjs} +1 -1
  62. package/dist/{chunk-BGSUD5R5-B-rczZvK.mjs → chunk-BGSUD5R5-BfmoQDUK.mjs} +2 -2
  63. package/dist/{chunk-BSJP7CBP-BWUAQGWN.mjs → chunk-BSJP7CBP-C-rdyWiE.mjs} +2 -2
  64. package/dist/{chunk-CIAEETIT-4Fu0r4oG.mjs → chunk-CIAEETIT-B4zNm8L4.mjs} +2 -2
  65. package/dist/{chunk-CWQS3NFK-BkE4vqrf.mjs → chunk-CWQS3NFK-BvSpDizp.mjs} +1 -1
  66. package/dist/{chunk-D4J545R4-DfBhjppa.mjs → chunk-D4J545R4-B2EJq2_m.mjs} +2 -2
  67. package/dist/{chunk-D6CWQ5DW-BEkstiuo.mjs → chunk-D6CWQ5DW-DTkNWXQB.mjs} +2 -2
  68. package/dist/{chunk-D7MEQ3VN-CAw29uK1.mjs → chunk-D7MEQ3VN-Cgm5u94B.mjs} +2 -2
  69. package/dist/{chunk-DBKNVD4L-DMfzef_7.mjs → chunk-DBKNVD4L-UVpSZ5HO.mjs} +2 -2
  70. package/dist/{chunk-DCAAORBQ-3VCdH2yi.mjs → chunk-DCAAORBQ-Dy6elY3j.mjs} +2 -2
  71. package/dist/{chunk-DXB73IDG-F_tmy-Lz.mjs → chunk-DXB73IDG-ByieFnhr.mjs} +1 -1
  72. package/dist/{chunk-EDXVE4YY-COyPi8-X.mjs → chunk-EDXVE4YY-B7-wXBzK.mjs} +2 -2
  73. package/dist/{chunk-EEXR5ZDP-VxEPFle_.mjs → chunk-EEXR5ZDP-Bot_s1lf.mjs} +1 -1
  74. package/dist/{chunk-EIZGF4BS-Dz3f1URh.mjs → chunk-EIZGF4BS-Cce76mbX.mjs} +2 -2
  75. package/dist/{chunk-ENJZ2VHE-DgpEksO3.mjs → chunk-ENJZ2VHE-DswEO8kN.mjs} +2 -2
  76. package/dist/{chunk-F23WWYKW-tJnOwArx.mjs → chunk-F23WWYKW-YV2Ziyrt.mjs} +2 -2
  77. package/dist/{chunk-FMBD7UC4-CFP8EClM.mjs → chunk-FMBD7UC4-DyW29ls9.mjs} +2 -2
  78. package/dist/{chunk-FOC6F5B3-BfuMxJA0.mjs → chunk-FOC6F5B3-Bc3GvhQ3.mjs} +2 -2
  79. package/dist/{chunk-GCTKCWKD-C5P_ff9C.mjs → chunk-GCTKCWKD-DBnk7jcA.mjs} +1 -1
  80. package/dist/{chunk-GFQRA5P5-DbAN9IDm.mjs → chunk-GFQRA5P5-DuNfOQls.mjs} +1 -1
  81. package/dist/{chunk-GOV5EKKI-CnqfYKLU.mjs → chunk-GOV5EKKI-BFLTyBpR.mjs} +2 -2
  82. package/dist/{chunk-GXVXFKBA-BZ5qwuS5.mjs → chunk-GXVXFKBA-C3l1H1PT.mjs} +2 -2
  83. package/dist/{chunk-HDQ56CKY-C2858kAN.mjs → chunk-HDQ56CKY-Cy6yVra7.mjs} +2 -2
  84. package/dist/{chunk-HJQJAYMS-BhX1qT1n.mjs → chunk-HJQJAYMS-yqfBcYOx.mjs} +1 -1
  85. package/dist/{chunk-HJWBQKYG-D9DjORFc.mjs → chunk-HJWBQKYG-C1cifXhx.mjs} +2 -2
  86. package/dist/{chunk-HKLCLINH-DiTtKPWB.mjs → chunk-HKLCLINH-Ch0mauLy.mjs} +3 -3
  87. package/dist/{chunk-HL6NGDO2-FvmjxcsK.mjs → chunk-HL6NGDO2-D41r2_6L.mjs} +2 -2
  88. package/dist/{chunk-HWKDQ44K-Cd9c0ujm.mjs → chunk-HWKDQ44K-CRAflooW.mjs} +2 -2
  89. package/dist/{chunk-I57KEIP3-BsA-zv3k.mjs → chunk-I57KEIP3-BW7G5kxf.mjs} +2 -2
  90. package/dist/{chunk-ICPOFSXX-C2hDlKD_.mjs → chunk-ICPOFSXX-BF2fcu67.mjs} +2 -2
  91. package/dist/{chunk-IPJHKYVM-CUKythEA.mjs → chunk-IPJHKYVM-DDc9WF57.mjs} +1 -1
  92. package/dist/{chunk-JVPRLUMK-D72YT6bi.mjs → chunk-JVPRLUMK-C9zEHB9M.mjs} +2 -2
  93. package/dist/{chunk-K5T4RW27-ChGdeubA.mjs → chunk-K5T4RW27-DLjwaibC.mjs} +2 -2
  94. package/dist/{chunk-K6LIBGJA-CtwqXONG.mjs → chunk-K6LIBGJA-CSZVB574.mjs} +2 -2
  95. package/dist/{chunk-KGLVRYIC-BYA7AJ2g.mjs → chunk-KGLVRYIC-BNQzuSOt.mjs} +2 -2
  96. package/dist/{chunk-KMEYNNUA-C311YB2Q.mjs → chunk-KMEYNNUA-maIN40sk.mjs} +2 -2
  97. package/dist/{chunk-KRBPSX3W-DsaeH-hY.mjs → chunk-KRBPSX3W-CzvY8ZXk.mjs} +2 -2
  98. package/dist/{chunk-KX3P26DQ-D2yWAYlk.mjs → chunk-KX3P26DQ-76goBn6H.mjs} +1 -1
  99. package/dist/{chunk-LIHQZDEY-Du6TmMJL.mjs → chunk-LIHQZDEY-C1QAwaiM.mjs} +2 -2
  100. package/dist/{chunk-LL3S3NLB-xjImIR4A.mjs → chunk-LL3S3NLB-DbugMv6o.mjs} +2 -2
  101. package/dist/{chunk-LTZRCH7N-DQ58So-F.mjs → chunk-LTZRCH7N-BKI5S2SB.mjs} +2 -2
  102. package/dist/{chunk-LWEGUNWT-B1OcC6RH.mjs → chunk-LWEGUNWT-GnqRCIV_.mjs} +2 -2
  103. package/dist/{chunk-MDDMCKUK-CP6l42wf.mjs → chunk-MDDMCKUK-b-Mvbq7g.mjs} +2 -2
  104. package/dist/{chunk-MDLLFABN-DDKgmYs5.mjs → chunk-MDLLFABN-CySM5qrq.mjs} +2 -2
  105. package/dist/{chunk-MHTUABJP-D8l1TTsc.mjs → chunk-MHTUABJP-t1OLW57X.mjs} +1 -1
  106. package/dist/{chunk-MIZPJHVH-BLEhGmNy.mjs → chunk-MIZPJHVH-D-ZDkLZF.mjs} +2 -2
  107. package/dist/{chunk-MLXIYONF-MXi1NN3K.mjs → chunk-MLXIYONF-2Q4Ybi7x.mjs} +2 -2
  108. package/dist/{chunk-MYE6AGBJ-BkwmDIR4.mjs → chunk-MYE6AGBJ-BejewWl1.mjs} +2 -2
  109. package/dist/{chunk-NAERJDUW-Bv2VeaZc.mjs → chunk-NAERJDUW-BeJI_Ack.mjs} +2 -2
  110. package/dist/{chunk-NCNPKYJZ-14dRI8Qm.mjs → chunk-NCNPKYJZ-BjePegaZ.mjs} +2 -2
  111. package/dist/{chunk-NUYSJFDK-BiYXRcxZ.mjs → chunk-NUYSJFDK-DDVtplw1.mjs} +2 -2
  112. package/dist/{chunk-OCLXQMOG-B_jLzNZV.mjs → chunk-OCLXQMOG-DZx1830_.mjs} +2 -2
  113. package/dist/{chunk-OCS6LSEM-D4VLThbM.mjs → chunk-OCS6LSEM-DGnWZEcL.mjs} +2 -2
  114. package/dist/{chunk-OJDRYQWQ-CmrD0Dg2.mjs → chunk-OJDRYQWQ-69O4zmKR.mjs} +1 -1
  115. package/dist/{chunk-ORNJ4GCN-CO4Fc0LT.mjs → chunk-ORNJ4GCN-R61lu8Cm.mjs} +2 -2
  116. package/dist/{chunk-OYMX7WX6-CjnWmW_n.mjs → chunk-OYMX7WX6-BShEu1pf.mjs} +2 -2
  117. package/dist/{chunk-PBXLG62G-aMLWXguv.mjs → chunk-PBXLG62G-DdXtiydY.mjs} +2 -2
  118. package/dist/{chunk-PP6PSHAB-B3XXGg2T.mjs → chunk-PP6PSHAB-B7OGLVba.mjs} +1 -1
  119. package/dist/{chunk-PXTK5WE2-CguJFePc.mjs → chunk-PXTK5WE2-BeCOtT1d.mjs} +2 -2
  120. package/dist/{chunk-PYSFUGCK-BszfAqRG.mjs → chunk-PYSFUGCK-CoGoOEDp.mjs} +2 -2
  121. package/dist/{chunk-QCDB2VPH-D3ULCm4b.mjs → chunk-QCDB2VPH-z4xw9VKe.mjs} +2 -2
  122. package/dist/{chunk-QJ7O6ZN3-Dzcm83Kv.mjs → chunk-QJ7O6ZN3-Dsx1L-CX.mjs} +2 -2
  123. package/dist/{chunk-QZHKN3VN-CczpYV_w.mjs → chunk-QZHKN3VN-4LgLml-S.mjs} +2 -2
  124. package/dist/{chunk-R6QSAL5T-nrEeDNrG.mjs → chunk-R6QSAL5T-CXXlslcl.mjs} +1 -1
  125. package/dist/{chunk-R6VWJ2ZL-BVeTwIsz.mjs → chunk-R6VWJ2ZL-FXX1AKea.mjs} +1 -1
  126. package/dist/{chunk-RPNGRAAP-CajOz2i0.mjs → chunk-RPNGRAAP-D-txoG-N.mjs} +2 -2
  127. package/dist/{chunk-SDNKECQQ-CA2LWAo7.mjs → chunk-SDNKECQQ-sntIQEvc.mjs} +2 -2
  128. package/dist/{chunk-SNN4IESC-D8LPcAwE.mjs → chunk-SNN4IESC-2iQ8MDN3.mjs} +2 -2
  129. package/dist/{chunk-T56QNPHK-CKzBdBMk.mjs → chunk-T56QNPHK-0UWUTTk9.mjs} +2 -2
  130. package/dist/{chunk-TLSUDHID-rdis5pZn.mjs → chunk-TLSUDHID-CbxrNaLS.mjs} +2 -2
  131. package/dist/{chunk-TOMNU26N-BxDnjGjc.mjs → chunk-TOMNU26N-aWRPfXR1.mjs} +2 -2
  132. package/dist/{chunk-TP4BZANS-ClzIzpWm.mjs → chunk-TP4BZANS-DFORxqE5.mjs} +2 -2
  133. package/dist/{chunk-TXBZCHCQ-DnSXwySk.mjs → chunk-TXBZCHCQ-COSdckz7.mjs} +2 -2
  134. package/dist/{chunk-U2HBQHQK-DMRf50i8.mjs → chunk-U2HBQHQK-B6QvDsYx.mjs} +2 -2
  135. package/dist/{chunk-V5MWI2OL-Cjq6zFOH.mjs → chunk-V5MWI2OL-CDs_rm9r.mjs} +2 -2
  136. package/dist/{chunk-V7TAPXDL-BaVJN6c-.mjs → chunk-V7TAPXDL-DbTOoM_I.mjs} +2 -2
  137. package/dist/{chunk-VJFXDYWH-BJjeOIUB.mjs → chunk-VJFXDYWH-oT0f9NSa.mjs} +2 -2
  138. package/dist/{chunk-VOBGTVA6-CLvo1DrK.mjs → chunk-VOBGTVA6-D6oyYm45.mjs} +2 -2
  139. package/dist/{chunk-VYOJP4TV-ySo4pvxO.mjs → chunk-VYOJP4TV-Dh2zBxKQ.mjs} +2 -2
  140. package/dist/{chunk-WKFATFPP-jr5eyHAR.mjs → chunk-WKFATFPP-CoNouDAR.mjs} +2 -2
  141. package/dist/{chunk-X2AJGDEF-Bpyh-CYM.mjs → chunk-X2AJGDEF-13z4tBy7.mjs} +1 -1
  142. package/dist/{chunk-X2U36JSP-B09HbTgU.mjs → chunk-X2U36JSP-BlsQfR26.mjs} +2 -2
  143. package/dist/{chunk-XKQRETAK-CG272cRl.mjs → chunk-XKQRETAK-EkIIjUUl.mjs} +2 -2
  144. package/dist/{chunk-XKWWSDBF-EI7W96Bb.mjs → chunk-XKWWSDBF-B1eAKd2w.mjs} +2 -2
  145. package/dist/{chunk-XPW4576I-B-qTm_Z3.mjs → chunk-XPW4576I-bLLZgym8.mjs} +2 -2
  146. package/dist/{chunk-XVDPCNWR-DDtsDoBd.mjs → chunk-XVDPCNWR-BAt7NxwA.mjs} +2 -2
  147. package/dist/{chunk-YMMW5UAP-jiH3wEeU.mjs → chunk-YMMW5UAP-Bm5rv4x6.mjs} +2 -2
  148. package/dist/{chunk-YTNYSM6T-D6z7D3pz.mjs → chunk-YTNYSM6T-igBSh3M-.mjs} +2 -2
  149. package/dist/{chunk-YULBWSET-sJ_UPhUx.mjs → chunk-YULBWSET-x9ev2Mf1.mjs} +2 -2
  150. package/dist/{chunk-YZCP3GAM-C2dMi590.mjs → chunk-YZCP3GAM-dFAdRCa8.mjs} +2 -2
  151. package/dist/{chunk-Z6LRHWXI-CFEq3s_2.mjs → chunk-Z6LRHWXI-CQxrFjqd.mjs} +2 -2
  152. package/dist/{chunk-Z7JVV2SM-XK1154v3.mjs → chunk-Z7JVV2SM-C7YBwi4Z.mjs} +2 -2
  153. package/dist/{chunk-ZZ45TVLE-DmKznbd-.mjs → chunk-ZZ45TVLE-2q1aFSGq.mjs} +2 -2
  154. package/dist/{chunk-ZZO3UDB3-Jw0Ocy-R.mjs → chunk-ZZO3UDB3-rEua5jnw.mjs} +2 -2
  155. package/dist/classDiagram-6PBFFD2Q-CcylKUUy.mjs +2 -0
  156. package/dist/classDiagram-v2-HSJHXN6E-BuitxA8E.mjs +2 -0
  157. package/dist/clear-5CZ5X4YR-B1WFGbrj.mjs +1 -0
  158. package/dist/cli.mjs +58 -58
  159. package/dist/clone-FnWO_tLO.mjs +2 -0
  160. package/dist/colors-Ct4sdRvQ.mjs +1 -0
  161. package/dist/{colors-DugpbXz6.mjs → colors-DWZN3WbY.mjs} +1 -1
  162. package/dist/column-WLPMMSTS-DkwMR9G7.mjs +1 -0
  163. package/dist/comm-5SLSESQG-CXlq0ETw.mjs +1 -0
  164. package/dist/constants-B18JyjBC.mjs +2 -0
  165. package/dist/{cose-bilkent-S5V4N54A-BNALZCF0.mjs → cose-bilkent-S5V4N54A-x0sjol1e.mjs} +2 -2
  166. package/dist/cp-XOYR4ABJ-DSmenFoy.mjs +1 -0
  167. package/dist/{curl-47BFPSFW-DU0Jc2rS.mjs → curl-47BFPSFW-CLzIjKiW.mjs} +2 -2
  168. package/dist/cut-OPC3VAGB-Bem4Z9r_.mjs +1 -0
  169. package/dist/{cytoscape.esm-5XrS6n0F.mjs → cytoscape.esm-D1nqsWCf.mjs} +1 -1
  170. package/dist/{dagre-C04vaGU3.mjs → dagre-BTsqj5N3.mjs} +2 -2
  171. package/dist/{dagre-KV5264BT-Cbu_HfO4.mjs → dagre-KV5264BT-qU8auIl8.mjs} +2 -2
  172. package/dist/date-DD7FVA2V-BIqG8vnM.mjs +1 -0
  173. package/dist/{defaultLocale-0qNBj5q-.mjs → defaultLocale-DMqLGTir.mjs} +1 -1
  174. package/dist/{diagram-5BDNPKRD--yFFNenY.mjs → diagram-5BDNPKRD-BfaCThqw.mjs} +2 -2
  175. package/dist/{diagram-G4DWMVQ6-DEe2UaOJ.mjs → diagram-G4DWMVQ6-GD__kOTo.mjs} +2 -2
  176. package/dist/{diagram-MMDJMWI5-BEgEPDUN.mjs → diagram-MMDJMWI5-eK_WgeFb.mjs} +2 -2
  177. package/dist/{diagram-TYMM5635-WdKiO0-q.mjs → diagram-TYMM5635-Cw9FE8Ou.mjs} +2 -2
  178. package/dist/diff-HJF2MPDN-QbElik15.mjs +1 -0
  179. package/dist/dirname-LEMTZZFS-DjJGD8wW.mjs +1 -0
  180. package/dist/{dist-Co98vmuK.mjs → dist-B9rR197c.mjs} +1 -1
  181. package/dist/dist-DNDjbkqL.mjs +1 -0
  182. package/dist/{dist-bundle-tsI-uq-K.mjs → dist-bundle-CfcllBeA.mjs} +1 -1
  183. package/dist/dist-bundle-Dnt-gLG8.mjs +1 -0
  184. package/dist/{server-lock-iLcBw_q0-DK2Tcu84.mjs → dist-gqZDYmIG.mjs} +135 -135
  185. package/dist/{dist-0Mfowk3R.mjs → dist-petOQDm6.mjs} +15 -15
  186. package/dist/du-WO2ENHXQ-gLn1L6An.mjs +1 -0
  187. package/dist/echo-O45JWWI2-CHeEVRD-.mjs +1 -0
  188. package/dist/env-5EPCWSXR-nB7iGA4U.mjs +1 -0
  189. package/dist/{erDiagram-SMLLAGMA-BD_bZ9y8.mjs → erDiagram-SMLLAGMA-BQ28NjyR.mjs} +2 -2
  190. package/dist/{esm-BNIW0EH8.mjs → esm-PWRRAk-U.mjs} +1 -1
  191. package/dist/{execAsync-BAuTynbH.mjs → execAsync-Clg2-3AB.mjs} +1 -1
  192. package/dist/{execAsync-CBkkI2Ek.mjs → execAsync-DCzaEYgw.mjs} +1 -1
  193. package/dist/{execAsync-DVDfm08O.mjs → execAsync-Dyv9tAFE.mjs} +1 -1
  194. package/dist/expand-DTNXU4LQ--1KdtI8I.mjs +1 -0
  195. package/dist/expansion-VBDYWVZR-Br5lbiFS.mjs +1 -0
  196. package/dist/expr-YYCVMXE3-D_Mgl3lg.mjs +1 -0
  197. package/dist/file-IGDTDPLG-DJz2lDmW.mjs +1 -0
  198. package/dist/find-DH2ALKQS-BCfNRHeq.mjs +1 -0
  199. package/dist/flag-coverage-6JEX67RU-dAJxSkKl.mjs +2 -0
  200. package/dist/{flatten-DsfHsK9p.mjs → flatten-CMuDMFOE.mjs} +2 -2
  201. package/dist/{flowDiagram-DWJPFMVM-DZgEsdRZ.mjs → flowDiagram-DWJPFMVM-BRXMLmIm.mjs} +2 -2
  202. package/dist/fold-LDSORVYE-X07YByBI.mjs +1 -0
  203. package/dist/{ganttDiagram-T4ZO3ILL-Csm0cHYU.mjs → ganttDiagram-T4ZO3ILL-BkishNK-.mjs} +2 -2
  204. package/dist/{getMachineId-bsd-Bd_aCdAJ.mjs → getMachineId-bsd-BfKl40ww.mjs} +2 -2
  205. package/dist/{getMachineId-bsd-CmfyCGp_.mjs → getMachineId-bsd-CfcvKJtS.mjs} +2 -2
  206. package/dist/{getMachineId-bsd-D_lpr65O.mjs → getMachineId-bsd-DHr_3v7C.mjs} +2 -2
  207. package/dist/{getMachineId-darwin-CFeqXDM9.mjs → getMachineId-darwin-BGSat_hq.mjs} +2 -2
  208. package/dist/{getMachineId-darwin-Ch6Y3434.mjs → getMachineId-darwin-ClWJDgsl.mjs} +2 -2
  209. package/dist/{getMachineId-darwin-DRbP6ZXo.mjs → getMachineId-darwin-kUGmbM-E.mjs} +2 -2
  210. package/dist/{getMachineId-linux-CsnocidZ.mjs → getMachineId-linux-Cb6TG9LG.mjs} +1 -1
  211. package/dist/{getMachineId-linux-n9GZPwcR.mjs → getMachineId-linux-D_xXWtEw.mjs} +1 -1
  212. package/dist/{getMachineId-linux-CbD1lCp_.mjs → getMachineId-linux-vXwObLy3.mjs} +1 -1
  213. package/dist/{getMachineId-unsupported-Bsi0aVMm.mjs → getMachineId-unsupported-B4ElBmKF.mjs} +1 -1
  214. package/dist/{getMachineId-unsupported-D6zswC3_.mjs → getMachineId-unsupported-BALaAmcO.mjs} +1 -1
  215. package/dist/{getMachineId-unsupported-BQuHcTqF.mjs → getMachineId-unsupported-CechcDdc.mjs} +1 -1
  216. package/dist/{getMachineId-win-BsR1lQcH.mjs → getMachineId-win-CwyWxlQ-.mjs} +2 -2
  217. package/dist/{getMachineId-win-Bvo8aUso.mjs → getMachineId-win-D-OyleV_.mjs} +2 -2
  218. package/dist/{getMachineId-win-BpALY-6t.mjs → getMachineId-win-Div5qJyL.mjs} +2 -2
  219. package/dist/gh-detect-DT6DqKGM.mjs +3 -0
  220. package/dist/git-handle-CetHWc5A-BcCPg15N.mjs +1 -0
  221. package/dist/git-handle-dKyep_oZ-B7s7m6CJ.mjs +10 -0
  222. package/dist/gitGraph-7Q5UKJZL-Cb6AI0gQ.mjs +1 -0
  223. package/dist/{gitGraphDiagram-UUTBAWPF-dC1IPshv.mjs → gitGraphDiagram-UUTBAWPF-LYEX-Up5.mjs} +2 -2
  224. package/dist/{graphlib-ZUByR7Z1.mjs → graphlib-C8GlDNIO.mjs} +2 -2
  225. package/dist/grep-2HUTXO5U-DF5bN210.mjs +1 -0
  226. package/dist/gzip-AQXSGOVS-Ld4whXAz.mjs +1 -0
  227. package/dist/head-HT2B6D2J-Y8QWoury.mjs +1 -0
  228. package/dist/help-VVWX7SA5-DNTZaSb5.mjs +1 -0
  229. package/dist/history-J4QRNGRO-D8QHmWq3.mjs +1 -0
  230. package/dist/hostname-BK6HG2DE-C229q8IA.mjs +1 -0
  231. package/dist/html-to-markdown-TFCECAGV-EEqkh5Fp.mjs +1 -0
  232. package/dist/index.mjs +1 -1
  233. package/dist/info-OMHHGYJF-DY6XVLHA.mjs +1 -0
  234. package/dist/{infoDiagram-42DDH7IO-HjNjWo06.mjs → infoDiagram-42DDH7IO-BVXbYOHQ.mjs} +2 -2
  235. package/dist/{init-BQKkPl4l.mjs → init-D9nHWIP2.mjs} +1 -1
  236. package/dist/{init-CUBRtkez.mjs → init-KCSJffNW.mjs} +5 -5
  237. package/dist/init-zkouBkiU.mjs +1 -0
  238. package/dist/{is-object-DAC-mmwo.mjs → is-object-DhiFit5j.mjs} +1 -1
  239. package/dist/{isEmpty-jdQphHPa.mjs → isEmpty-B_hy4b7A.mjs} +2 -2
  240. package/dist/{ishikawaDiagram-UXIWVN3A-BlrokJRv.mjs → ishikawaDiagram-UXIWVN3A-Diodefny.mjs} +2 -2
  241. package/dist/join-GG2LDHE5-DJ1L_Ka6.mjs +1 -0
  242. package/dist/{journeyDiagram-VCZTEJTY-Bt5CmS_f.mjs → journeyDiagram-VCZTEJTY-CMQp-Rx9.mjs} +2 -2
  243. package/dist/jq-LYZFFBZB-BItVI6BJ.mjs +1 -0
  244. package/dist/{js-exec-VXN6TZ7U-B_mKz_np.mjs → js-exec-VXN6TZ7U-Bnv5xh7r.mjs} +2 -2
  245. package/dist/{kanban-definition-6JOO6SKY-BH015AU8.mjs → kanban-definition-6JOO6SKY-DhbBoKko.mjs} +2 -2
  246. package/dist/{launch-json-removal--BmJqT87.mjs → launch-json-removal-ZIYJbZtQ.mjs} +2 -2
  247. package/dist/{lib-BWyT_i83.mjs → lib-BFgxfC0m.mjs} +2 -2
  248. package/dist/{lib-BKCY8vrL.mjs → lib-DOas6HiH.mjs} +1 -1
  249. package/dist/{libesm-Ob3yvbRV.mjs → libesm-bRpdkHYn.mjs} +1 -1
  250. package/dist/{line-DiVg83mo.mjs → line-CNrllbcq.mjs} +2 -2
  251. package/dist/{linear-C06cViLu.mjs → linear-CUrVtEYu.mjs} +2 -2
  252. package/dist/ln-4TRFBYAT-1vbMtGss.mjs +1 -0
  253. package/dist/loader-BqECoP19.mjs +4 -0
  254. package/dist/loader-D9ILq_Qj.mjs +1 -0
  255. package/dist/ls-KSXFZCWH-D7XChuCb.mjs +1 -0
  256. package/dist/{lzma-NI_6IIcm.mjs → lzma-kz900pzb.mjs} +1 -1
  257. package/dist/{mcp-migrate-event-BNoOQpLB.mjs → mcp-migrate-event-H4uBxZps.mjs} +1 -1
  258. package/dist/md5sum-INMIK4DX-DebFzK7Y.mjs +1 -0
  259. package/dist/{mermaid-parser.core-DqKkkvo5.mjs → mermaid-parser.core-C4HPipkF.mjs} +2 -2
  260. package/dist/{mermaid.core-BzIdCd91.mjs → mermaid.core-BjaX3aDk.mjs} +3 -3
  261. package/dist/{mindmap-definition-QFDTVHPH-BOkRtwWA.mjs → mindmap-definition-QFDTVHPH-aTvmjjWw.mjs} +2 -2
  262. package/dist/mkdir-TDEMSB6C-yKujfJwH.mjs +1 -0
  263. package/dist/mv-Z6MORUFL-DefDwgs3.mjs +1 -0
  264. package/dist/native/native-config.linux-x64-gnu.node +0 -0
  265. package/dist/nl-U5YJDM32-C4WnOB_Q.mjs +1 -0
  266. package/dist/od-VJEF2UR5-w1NlCkUs.mjs +1 -0
  267. package/dist/{open-browser-CZY2ZKg0.mjs → open-browser-BMVg3r9e.mjs} +2 -2
  268. package/dist/{ordinal-BuFKVuSx.mjs → ordinal-CwNJ0kWp.mjs} +2 -2
  269. package/dist/packet-4T2RLAQJ-Bf6ng-Cf.mjs +1 -0
  270. package/dist/paste-7N6AFSDS-C1xZzPgC.mjs +1 -0
  271. package/dist/{path-Dmj-XcQ6.mjs → path-v4_sOSY9.mjs} +1 -1
  272. package/dist/pie-ZZUOXDRM-B2TN5yZH.mjs +1 -0
  273. package/dist/{pieDiagram-DEJITSTG-Bho_Qp6H.mjs → pieDiagram-DEJITSTG-Bwxzwykf.mjs} +2 -2
  274. package/dist/{preview-BUUT3N0t.mjs → preview-Bmngkbmx.mjs} +2 -2
  275. package/dist/preview-CXetnprU.mjs +1 -0
  276. package/dist/printf-CX64KX2P-mlOOn_9v.mjs +1 -0
  277. package/dist/public/assets/ShareBranchSwitchDialog-DGcSbhKt.js +1 -0
  278. package/dist/public/assets/{index-CzUR_TnM.js → index-CxZGz7om.js} +3 -3
  279. package/dist/public/index.html +1 -1
  280. package/dist/pwd-D4OZ7N27-CT87C-5L.mjs +1 -0
  281. package/dist/{python3-DNGS4G3E-mSuL-4Sg.mjs → python3-DNGS4G3E-CvPRspn0.mjs} +2 -2
  282. package/dist/{quadrantDiagram-34T5L4WZ-Bd7jb1rn.mjs → quadrantDiagram-34T5L4WZ-DNT3MD_9.mjs} +2 -2
  283. package/dist/radar-PYXPWWZC-COiIo4-V.mjs +1 -0
  284. package/dist/readlink-MI4GCHJF-yD7ZCo6I.mjs +1 -0
  285. package/dist/{reduce-CKdE5ppn.mjs → reduce-KkqmWdsg.mjs} +2 -2
  286. package/dist/{repair-launch-json-jpDBAb4m.mjs → repair-launch-json-D73FezU-.mjs} +2 -2
  287. package/dist/{repair-mcp-configs-Bid881e6.mjs → repair-mcp-configs-C2iq9bOP.mjs} +2 -2
  288. package/dist/repair-skills-BSRgI3Qd.mjs +3 -0
  289. package/dist/repair-skills-DMIeifIr.mjs +1 -0
  290. package/dist/{requirementDiagram-MS252O5E-B74qjBRN.mjs → requirementDiagram-MS252O5E-25Z7WGN_.mjs} +2 -2
  291. package/dist/rev-XOSYPP45-DXeN2c_L.mjs +1 -0
  292. package/dist/rg-XNF3R3II-CSW8tOjh.mjs +1 -0
  293. package/dist/rm-RTZG23RL-CdPHUz_A.mjs +1 -0
  294. package/dist/rmdir-XTQXT7RK-B-Hcy2_M.mjs +1 -0
  295. package/dist/{rough.cjs-D5rEDIRO.mjs → rough.cjs-CjMW0p0V.mjs} +1 -1
  296. package/dist/{sankeyDiagram-XADWPNL6-CsDd_Lum.mjs → sankeyDiagram-XADWPNL6-CaXOTYx7.mjs} +2 -2
  297. package/dist/sed-JAPPVBEU-CcOukRYN.mjs +1 -0
  298. package/dist/seq-RN5ZUASB-s6ShRZlK.mjs +1 -0
  299. package/dist/{sequenceDiagram-FGHM5R23-C88m3ajK.mjs → sequenceDiagram-FGHM5R23-BgVYdPUE.mjs} +2 -2
  300. package/dist/server-lock-GuuouVft-mEG_NG6z.mjs +1 -0
  301. package/dist/server-lock-iLcBw_q0-CSsXlPB8.mjs +2 -0
  302. package/dist/sha1sum-VJPNLNU6-DypLzN_7.mjs +1 -0
  303. package/dist/sha256sum-PI32XWXY-DGVRMju7.mjs +1 -0
  304. package/dist/sleep-VZFPZFWA-B9Y3_tNd.mjs +1 -0
  305. package/dist/sort-DCNRDA7U-hsloabcm.mjs +1 -0
  306. package/dist/split-SITCSYCZ-BDulNHyK.mjs +1 -0
  307. package/dist/sqlite3-TE5AIOTF-DjHl_aWc.mjs +1 -0
  308. package/dist/{src-DyEoJGw7.mjs → src-7LGO0Yau.mjs} +6 -6
  309. package/dist/{src-DC_BCes_.mjs → src-BGL-MlNN.mjs} +1 -1
  310. package/dist/start-B3G01qdc.mjs +1 -0
  311. package/dist/start-CGL0pAPp.mjs +3 -0
  312. package/dist/stat-BT5A227F-Bo3rQCLg.mjs +1 -0
  313. package/dist/{stateDiagram-FHFEXIEX-va6AVA_z.mjs → stateDiagram-FHFEXIEX-DQ2iT5iQ.mjs} +2 -2
  314. package/dist/stateDiagram-v2-QKLJ7IA2-BN2cDF-I.mjs +2 -0
  315. package/dist/strings-7PLOGTPD-DzlKcmS-.mjs +1 -0
  316. package/dist/tac-SJGXQ4T2-ByklUqCu.mjs +1 -0
  317. package/dist/tail-S5ULNTJU-4htchzH3.mjs +1 -0
  318. package/dist/tar-MZQD7NO4-BbDCO35a.mjs +1 -0
  319. package/dist/tee-O7VXZDCO-C4h94T7n.mjs +1 -0
  320. package/dist/time-DEUO3QV2-DgbA26hb.mjs +1 -0
  321. package/dist/{timeline-definition-GMOUNBTQ-TPAmdwnH.mjs → timeline-definition-GMOUNBTQ-CN-kJjLP.mjs} +2 -2
  322. package/dist/timeout-VRKMCG72-QNsmkGY4.mjs +1 -0
  323. package/dist/touch-DX2IJOQ4-DCSWORMR.mjs +1 -0
  324. package/dist/tr-2HXZRDSW-ClAtG6KK.mjs +1 -0
  325. package/dist/tree-LYXBS7DC-DY3rkdQ5.mjs +1 -0
  326. package/dist/treeView-SZITEDCU-IxD8BwiZ.mjs +1 -0
  327. package/dist/treemap-W4RFUUIX-Bi83ji26.mjs +1 -0
  328. package/dist/true-WHJNXCHG-D1oYWVZ5.mjs +1 -0
  329. package/dist/unexpand-RGTMIGZM-MOepJcp7.mjs +1 -0
  330. package/dist/uniq-SUNANL47-BTfKD4-0.mjs +1 -0
  331. package/dist/{vennDiagram-DHZGUBPP-CVntpCfR.mjs → vennDiagram-DHZGUBPP-BJ8_Sz54.mjs} +2 -2
  332. package/dist/wardley-RL74JXVD-DxHrvQhH.mjs +1 -0
  333. package/dist/{wardleyDiagram-NUSXRM2D-DlYkmDFQ.mjs → wardleyDiagram-NUSXRM2D-j56ncYAi.mjs} +2 -2
  334. package/dist/wc-TQB3VNOX-CMqYcRvH.mjs +1 -0
  335. package/dist/which-XZHEH76L-CAv7Efsx.mjs +1 -0
  336. package/dist/whoami-DGKU3D2X-CpvaE3LM.mjs +1 -0
  337. package/dist/{wrapper-BZO_sIci.mjs → wrapper-C8gJQl5z.mjs} +1 -1
  338. package/dist/{write-project-skill-D82uNxGO.mjs → write-project-skill-CQSo7jpP.mjs} +3 -3
  339. package/dist/xan-UD7JYIL2-DLOcZDYa.mjs +1 -0
  340. package/dist/xan-view-OW2TB7Z3-dHhPo_bJ.mjs +1 -0
  341. package/dist/xargs-I6EZUCYF-HR9_4d9i.mjs +1 -0
  342. package/dist/{xychartDiagram-5P7HB3ND-CFd6z4Gb.mjs → xychartDiagram-5P7HB3ND-CcUb_B_R.mjs} +2 -2
  343. package/dist/yazl-B1RwDQQs.mjs +1 -0
  344. package/dist/{yazl-Docqgl6q.mjs → yazl-DFMxUgKn.mjs} +1 -1
  345. package/dist/yq-OAKYHSXH-CJLBfTXv.mjs +1 -0
  346. package/package.json +1 -1
  347. package/dist/alias-JE7RI5QX-BODj4Gfj.mjs +0 -1
  348. package/dist/architecture-YZFGNWBL-BJvTzYI9.mjs +0 -1
  349. package/dist/awk2-BBAGSFUB-lHnSCbc-.mjs +0 -1
  350. package/dist/base64-4YMZCVJ5-BTMj5dqF.mjs +0 -1
  351. package/dist/basename-AA2KJYZQ-B1wvwZXV.mjs +0 -1
  352. package/dist/bash-IJWYRKFO-CCnjwjWe.mjs +0 -1
  353. package/dist/build-Ca40rJCO.mjs +0 -1
  354. package/dist/cat-RDUMLXKC-JY2w4DEE.mjs +0 -1
  355. package/dist/channel-BQl_ktPZ.mjs +0 -2
  356. package/dist/chmod-SYMGL4JA-3Hk_1ELN.mjs +0 -1
  357. package/dist/chunk-426QAEUC-B_MzMc_U.mjs +0 -2
  358. package/dist/classDiagram-6PBFFD2Q-L301VcDG.mjs +0 -2
  359. package/dist/classDiagram-v2-HSJHXN6E-CeSqnnqg.mjs +0 -2
  360. package/dist/clear-5CZ5X4YR-BDbutb2U.mjs +0 -1
  361. package/dist/clone-DETmm2Pe.mjs +0 -2
  362. package/dist/colors-C2Tw16G0.mjs +0 -1
  363. package/dist/column-WLPMMSTS-CV6fCKBB.mjs +0 -1
  364. package/dist/comm-5SLSESQG-c_QNAuoh.mjs +0 -1
  365. package/dist/constants-DJC5MEix.mjs +0 -2
  366. package/dist/cp-XOYR4ABJ-Dy7On9-M.mjs +0 -1
  367. package/dist/cut-OPC3VAGB-BuR9R75Y.mjs +0 -1
  368. package/dist/date-DD7FVA2V-ClXjwml9.mjs +0 -1
  369. package/dist/diff-HJF2MPDN-C0H4yjXW.mjs +0 -1
  370. package/dist/dirname-LEMTZZFS-4AT-pFX0.mjs +0 -1
  371. package/dist/dist-ByqNBEyQ.mjs +0 -1
  372. package/dist/dist-bundle-BA0EtAC7.mjs +0 -1
  373. package/dist/du-WO2ENHXQ-Do-4VQ3V.mjs +0 -1
  374. package/dist/echo-O45JWWI2-DdI80aCx.mjs +0 -1
  375. package/dist/env-5EPCWSXR-CDfcyvrs.mjs +0 -1
  376. package/dist/expand-DTNXU4LQ-D-zXh5CC.mjs +0 -1
  377. package/dist/expansion-VBDYWVZR-DTjZRtii.mjs +0 -1
  378. package/dist/expr-YYCVMXE3-C9dGgUU3.mjs +0 -1
  379. package/dist/file-IGDTDPLG-BEwb4MXq.mjs +0 -1
  380. package/dist/find-DH2ALKQS-Dni7700t.mjs +0 -1
  381. package/dist/flag-coverage-6JEX67RU-CMw4W0rs.mjs +0 -2
  382. package/dist/fold-LDSORVYE-g18Hkyqy.mjs +0 -1
  383. package/dist/gh-detect-DDO0PYTq.mjs +0 -3
  384. package/dist/git-handle-BMLM1Bxa-Bic5A31t.mjs +0 -1
  385. package/dist/git-handle-XXj9bu6B-DY30-mw9.mjs +0 -10
  386. package/dist/gitGraph-7Q5UKJZL-D8oR6R4c.mjs +0 -1
  387. package/dist/grep-2HUTXO5U-Dq78Al2p.mjs +0 -1
  388. package/dist/gzip-AQXSGOVS-C9_JolVc.mjs +0 -1
  389. package/dist/head-HT2B6D2J-CdrKE_Tc.mjs +0 -1
  390. package/dist/help-VVWX7SA5-DdmujeOs.mjs +0 -1
  391. package/dist/history-J4QRNGRO-Bm3N_FkO.mjs +0 -1
  392. package/dist/hostname-BK6HG2DE-DdT-PlzJ.mjs +0 -1
  393. package/dist/html-to-markdown-TFCECAGV-D2mzPMGY.mjs +0 -1
  394. package/dist/info-OMHHGYJF-pWbeXW42.mjs +0 -1
  395. package/dist/init-D_2w4_8n.mjs +0 -1
  396. package/dist/join-GG2LDHE5-DV7ilddy.mjs +0 -1
  397. package/dist/jq-LYZFFBZB-DhEnecL2.mjs +0 -1
  398. package/dist/ln-4TRFBYAT-Cg_-SGIL.mjs +0 -1
  399. package/dist/loader-DRR095Jj.mjs +0 -4
  400. package/dist/loader-QudPqlKw.mjs +0 -1
  401. package/dist/ls-KSXFZCWH-RlHCZlxm.mjs +0 -1
  402. package/dist/md5sum-INMIK4DX-BXlXL3Ru.mjs +0 -1
  403. package/dist/mkdir-TDEMSB6C-Cu2DJyfB.mjs +0 -1
  404. package/dist/mv-Z6MORUFL-BsEWL09Z.mjs +0 -1
  405. package/dist/nl-U5YJDM32-BybO7Epu.mjs +0 -1
  406. package/dist/od-VJEF2UR5-OIZrgjg0.mjs +0 -1
  407. package/dist/packet-4T2RLAQJ-BizdrxBC.mjs +0 -1
  408. package/dist/paste-7N6AFSDS-Ch72F0D2.mjs +0 -1
  409. package/dist/pie-ZZUOXDRM-BSULk3pW.mjs +0 -1
  410. package/dist/preview-eYrC9lP5.mjs +0 -1
  411. package/dist/printf-CX64KX2P-DS9NCBYX.mjs +0 -1
  412. package/dist/public/assets/ShareBranchSwitchDialog-uskl1Wv4.js +0 -1
  413. package/dist/pwd-D4OZ7N27-PztYFitl.mjs +0 -1
  414. package/dist/radar-PYXPWWZC-BPIU1oIT.mjs +0 -1
  415. package/dist/readlink-MI4GCHJF-B72qVA05.mjs +0 -1
  416. package/dist/repair-skills-BkNgLJzB.mjs +0 -1
  417. package/dist/repair-skills-g00h1ESt.mjs +0 -3
  418. package/dist/rev-XOSYPP45-ByX-mrLe.mjs +0 -1
  419. package/dist/rg-XNF3R3II-CnMv6YV-.mjs +0 -1
  420. package/dist/rm-RTZG23RL-CEw97Zb0.mjs +0 -1
  421. package/dist/rmdir-XTQXT7RK-BFdmBJEt.mjs +0 -1
  422. package/dist/sed-JAPPVBEU-2bqT53N-.mjs +0 -1
  423. package/dist/seq-RN5ZUASB-DxG4OIr9.mjs +0 -1
  424. package/dist/server-lock-GuuouVft-JSvkXrbf.mjs +0 -1
  425. package/dist/sha1sum-VJPNLNU6-4-wvJ2xb.mjs +0 -1
  426. package/dist/sha256sum-PI32XWXY-BaaxN7Tl.mjs +0 -1
  427. package/dist/sleep-VZFPZFWA-BllHeqyP.mjs +0 -1
  428. package/dist/sort-DCNRDA7U-CuZyvLiY.mjs +0 -1
  429. package/dist/split-SITCSYCZ-_ZnwVuas.mjs +0 -1
  430. package/dist/sqlite3-TE5AIOTF-CNPF-saV.mjs +0 -1
  431. package/dist/start-BZ29iacu.mjs +0 -1
  432. package/dist/start-CC6n9G3S.mjs +0 -3
  433. package/dist/stat-BT5A227F-D9HiKzDi.mjs +0 -1
  434. package/dist/stateDiagram-v2-QKLJ7IA2-Cu9wyPTl.mjs +0 -2
  435. package/dist/strings-7PLOGTPD-kZJh53lS.mjs +0 -1
  436. package/dist/tac-SJGXQ4T2-Eo9pASuo.mjs +0 -1
  437. package/dist/tail-S5ULNTJU-PpwHAjse.mjs +0 -1
  438. package/dist/tar-MZQD7NO4-9e7UblLx.mjs +0 -1
  439. package/dist/tee-O7VXZDCO-CBU43Hsm.mjs +0 -1
  440. package/dist/time-DEUO3QV2-BpiPEFvF.mjs +0 -1
  441. package/dist/timeout-VRKMCG72-COJoI5YN.mjs +0 -1
  442. package/dist/touch-DX2IJOQ4-C4-z30TF.mjs +0 -1
  443. package/dist/tr-2HXZRDSW-C9BbHiUE.mjs +0 -1
  444. package/dist/tree-LYXBS7DC-BSj-bS3l.mjs +0 -1
  445. package/dist/treeView-SZITEDCU-CxDAshOW.mjs +0 -1
  446. package/dist/treemap-W4RFUUIX-Akln3RQv.mjs +0 -1
  447. package/dist/true-WHJNXCHG-BkJIzmUI.mjs +0 -1
  448. package/dist/unexpand-RGTMIGZM-C-to2fwU.mjs +0 -1
  449. package/dist/uniq-SUNANL47-o1tLcwbX.mjs +0 -1
  450. package/dist/wardley-RL74JXVD-Djy_JGGm.mjs +0 -1
  451. package/dist/wc-TQB3VNOX-B-lPuWMt.mjs +0 -1
  452. package/dist/which-XZHEH76L-a4M_VoGw.mjs +0 -1
  453. package/dist/whoami-DGKU3D2X-DJ9OZDEX.mjs +0 -1
  454. package/dist/xan-UD7JYIL2-DqVUhpbk.mjs +0 -1
  455. package/dist/xan-view-OW2TB7Z3-BmNMcZHM.mjs +0 -1
  456. package/dist/xargs-I6EZUCYF-DphRNePs.mjs +0 -1
  457. package/dist/yazl-CQSNnbvt.mjs +0 -1
  458. package/dist/yq-OAKYHSXH-BBrPVcxh.mjs +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./telemetry-impl-CeO1833o.js","./chunk-Bj-mKKzh.js","./preload-helper-2ej06EnG.js","./trace-api-BIWqyPc9.js","./propagation-api-M_AcuP6N.js","./ReportBugDialogBody-C0pCt3Po.js","./dist-CurDB4OA.js","./markdownit-3iOh0R6A.js","./w3c-keyname-CRPBoZED.js","./dist-UKzQrqGt.js","./compiler-runtime-B6sxACDP.js","./checkbox-DbIYExtz.js","./dist-BJxSr2WH.js","./floating-ui.dom-B3TJy2Tg.js","./dist-D9SQx2Kz.js","./createLucideIcon-DkO1lL_8.js","./react-dom-B_M7c6fL.js","./dist-DVAVXN4B.js","./check-YcLXnBws.js","./dialog-DFGKErvF.js","./x-DOZY99do.js","./CopyButton-CMJPcMjt.js","./tooltip-C0qAzcHx.js","./copy-CJtHLQXD.js","./loader-circle-CLDbHvUo.js","./triangle-alert-BRg1-EjD.js","./input-C1P6Hf22.js","./textarea-BdasFVsT.js","./external-link-BfiFPJEx.js","./clipboard-adapter-BHfhAZ-n.js","./ActivityPanelDiffView-D3tFIws1.js","./ActivityPanelDiffView-legcy4jI.css","./GraphPanel-CT4Uax7w.js","./dist-D6ZXVw3E.js","./toggle-group-Bl0XnVQW.js","./dist-DbuHZOKW.js","./dist-DwtpXHlI.js","./panel-BTJzrl0A.js","./min-CbV9N5TI.js","./src-CSQC3Qr9.js","./colors-Cgzz_QdT.js","./ordinal-DAW48Uby.js","./init-DhDswxt9.js","./isObjectLike-Dr_zHfrf.js","./now-DCGRBsdR.js","./isSymbol-B1eMZgHp.js","./arrow-up-right-hiEaTtOQ.js","./prop-types-r4lrTXmC.js","./navigation-targets-D_g_oD3p.js","./doc-hash-CZiGDoto.js","./documents-events-BgIyZo2W.js","./documents-fetch-YrVYNlaU.js","./parse-api-error-BcfaIWfX.js","./startup-marks-DkuthT6-.js","./dist-DA2I9IQS.js","./target-navigation-intent-CYYSTgIq.js","./ActivityModeContent-Cxs8_d9h.js","./CodeMirrorPropInput-f5pC607I.js","./dist-Bdby-2Hy.js","./dist-CdtMC9tO.js","./dist-Ds_iuzKG.js","./dist-BUGpauwu.js","./dist-4KJCF8Hi.js","./dist-zn0VptDw.js","./dist-DUi_k00F.js","./dist-QYEZGzhE.js","./dist-DDTagRiL.js","./stex-B-m8c12P.js","./config-provider-BGFykK9q.js","./use-apply-config-color-theme-DJU29ygF.js","./config-context-DBmRI7_N.js","./folder-open-CYwNVasf.js","./trash-2-BByztZ1L.js","./DocumentContext-ogFq9Apo.js","./collapsible-DaBc_MOj.js","./git-branch-D6_3xkgC.js","./chevron-down-CfwFDIcB.js","./chevron-right-Cn_Rq8Go.js","./workspace-paths-DGpjh0_R.js","./eye-DS1O2Gq7.js","./info-CVOto5Gb.js","./dist-DyPw7rC6.js","./file-tree-rename-validation-DgUQ0I0S.js","./DocumentContext-B0sQn39F.css","./agent-presence-D2eASrH_.js","./cursor-Cw-gHVjo.js","./dist-BogsT7Pw.js","./dist-HyJCrP63.js","./SettingsDialogBody-04WyfuHT.js","./open-managed-artifact-tab-jUT5uxaf.js","./skills-api-ChqmqNEn.js","./label-rnTtsCxb.js","./radio-group-Bmt_-6b7.js","./auth-state-cache-CijiQXmK.js","./EnableSyncConfirmDialog-CEMiBdy3.js","./skill-actions-CqFXEGI_.js","./refresh-cw-Cbbnmwxa.js","./lint-config-client-VuF6BI2d.js","./ManagedArtifactProperties-BfEt7bIb.js","./PropertyPanel-DpYcGGW2.js","./format-DJS8_tfZ.js","./selection-context-DRS0xWzo.js","./MermaidDocEditor-CJFsgS7x.js","./dist-TX_NQU76.js","./src-B_OV9KU-.js","./SourceEditor-DeLqYSaV.js","./typing-burst-detector-ByylQ2W5.js","./SkillEditorActions-RqGqr20K.js","./TerminalPanel-D93QQMrM.js","./file-tree-adapter-Dubqn9yJ.js","./TerminalPanel-BrP-ENHg.css","./McpConsentDialogBody-DoSFKWJ-.js","./mcp-consent-store-O7e02Mi1.js","./ShareBranchSwitchDialog-uskl1Wv4.js","./miss-dialog-store-CyOCdXFw.js","./share-metadata-rows-z85jCRiH.js","./desktop-bridge-types-_D7JSBL8.js","./receive-store-DL3XQSe9.js","./worktree-store-DFmh2OE1.js","./ShareReceiveMissDialog-BaOnOALv.js","./pending-receive-nav-store-BqFe0QyH.js","./ConsentDialogBody-iSJGqfW_.js","./project-paths-iCe7bm-c.js","./ShareReceiveDialog-Dp0wMb0C.js","./telemetry-startup-DCPtDyw3.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./telemetry-impl-CeO1833o.js","./chunk-Bj-mKKzh.js","./preload-helper-2ej06EnG.js","./trace-api-BIWqyPc9.js","./propagation-api-M_AcuP6N.js","./ReportBugDialogBody-C0pCt3Po.js","./dist-CurDB4OA.js","./markdownit-3iOh0R6A.js","./w3c-keyname-CRPBoZED.js","./dist-UKzQrqGt.js","./compiler-runtime-B6sxACDP.js","./checkbox-DbIYExtz.js","./dist-BJxSr2WH.js","./floating-ui.dom-B3TJy2Tg.js","./dist-D9SQx2Kz.js","./createLucideIcon-DkO1lL_8.js","./react-dom-B_M7c6fL.js","./dist-DVAVXN4B.js","./check-YcLXnBws.js","./dialog-DFGKErvF.js","./x-DOZY99do.js","./CopyButton-CMJPcMjt.js","./tooltip-C0qAzcHx.js","./copy-CJtHLQXD.js","./loader-circle-CLDbHvUo.js","./triangle-alert-BRg1-EjD.js","./input-C1P6Hf22.js","./textarea-BdasFVsT.js","./external-link-BfiFPJEx.js","./clipboard-adapter-BHfhAZ-n.js","./ActivityPanelDiffView-D3tFIws1.js","./ActivityPanelDiffView-legcy4jI.css","./GraphPanel-CT4Uax7w.js","./dist-D6ZXVw3E.js","./toggle-group-Bl0XnVQW.js","./dist-DbuHZOKW.js","./dist-DwtpXHlI.js","./panel-BTJzrl0A.js","./min-CbV9N5TI.js","./src-CSQC3Qr9.js","./colors-Cgzz_QdT.js","./ordinal-DAW48Uby.js","./init-DhDswxt9.js","./isObjectLike-Dr_zHfrf.js","./now-DCGRBsdR.js","./isSymbol-B1eMZgHp.js","./arrow-up-right-hiEaTtOQ.js","./prop-types-r4lrTXmC.js","./navigation-targets-D_g_oD3p.js","./doc-hash-CZiGDoto.js","./documents-events-BgIyZo2W.js","./documents-fetch-YrVYNlaU.js","./parse-api-error-BcfaIWfX.js","./startup-marks-DkuthT6-.js","./dist-DA2I9IQS.js","./target-navigation-intent-CYYSTgIq.js","./ActivityModeContent-Cxs8_d9h.js","./CodeMirrorPropInput-f5pC607I.js","./dist-Bdby-2Hy.js","./dist-CdtMC9tO.js","./dist-Ds_iuzKG.js","./dist-BUGpauwu.js","./dist-4KJCF8Hi.js","./dist-zn0VptDw.js","./dist-DUi_k00F.js","./dist-QYEZGzhE.js","./dist-DDTagRiL.js","./stex-B-m8c12P.js","./config-provider-BGFykK9q.js","./use-apply-config-color-theme-DJU29ygF.js","./config-context-DBmRI7_N.js","./folder-open-CYwNVasf.js","./trash-2-BByztZ1L.js","./DocumentContext-ogFq9Apo.js","./collapsible-DaBc_MOj.js","./git-branch-D6_3xkgC.js","./chevron-down-CfwFDIcB.js","./chevron-right-Cn_Rq8Go.js","./workspace-paths-DGpjh0_R.js","./eye-DS1O2Gq7.js","./info-CVOto5Gb.js","./dist-DyPw7rC6.js","./file-tree-rename-validation-DgUQ0I0S.js","./DocumentContext-B0sQn39F.css","./agent-presence-D2eASrH_.js","./cursor-Cw-gHVjo.js","./dist-BogsT7Pw.js","./dist-HyJCrP63.js","./SettingsDialogBody-04WyfuHT.js","./open-managed-artifact-tab-jUT5uxaf.js","./skills-api-ChqmqNEn.js","./label-rnTtsCxb.js","./radio-group-Bmt_-6b7.js","./auth-state-cache-CijiQXmK.js","./EnableSyncConfirmDialog-CEMiBdy3.js","./skill-actions-CqFXEGI_.js","./refresh-cw-Cbbnmwxa.js","./lint-config-client-VuF6BI2d.js","./ManagedArtifactProperties-BfEt7bIb.js","./PropertyPanel-DpYcGGW2.js","./format-DJS8_tfZ.js","./selection-context-DRS0xWzo.js","./MermaidDocEditor-CJFsgS7x.js","./dist-TX_NQU76.js","./src-B_OV9KU-.js","./SourceEditor-DeLqYSaV.js","./typing-burst-detector-ByylQ2W5.js","./SkillEditorActions-RqGqr20K.js","./TerminalPanel-D93QQMrM.js","./file-tree-adapter-Dubqn9yJ.js","./TerminalPanel-BrP-ENHg.css","./McpConsentDialogBody-DoSFKWJ-.js","./mcp-consent-store-O7e02Mi1.js","./ShareBranchSwitchDialog-DGcSbhKt.js","./miss-dialog-store-CyOCdXFw.js","./share-metadata-rows-z85jCRiH.js","./desktop-bridge-types-_D7JSBL8.js","./receive-store-DL3XQSe9.js","./worktree-store-DFmh2OE1.js","./ShareReceiveMissDialog-BaOnOALv.js","./pending-receive-nav-store-BqFe0QyH.js","./ConsentDialogBody-iSJGqfW_.js","./project-paths-iCe7bm-c.js","./ShareReceiveDialog-Dp0wMb0C.js","./telemetry-startup-DCPtDyw3.js"])))=>i.map(i=>d[i]);
2
2
  import{s as e,t}from"./chunk-Bj-mKKzh.js";import{t as n}from"./preload-helper-2ej06EnG.js";import{n as r,r as i,t as a}from"./compiler-runtime-B6sxACDP.js";import{$ as o,$t as s,A as c,An as l,At as u,B as d,Bt as f,Cn as p,Ct as m,D as h,Dn as g,Dt as _,Et as v,F as y,Ft as b,G as x,Gt as S,H as C,Ht as w,I as T,It as E,J as D,Jt as O,K as k,Kt as A,L as j,Lt as M,Mt as N,N as P,Nt as F,O as I,On as L,Ot as R,P as z,Pt as B,Q as V,Qt as H,R as U,Rt as W,Sn as G,St as K,Tn as q,Tt as ee,U as te,Ut as ne,V as re,Vt as ie,W as ae,Wt as oe,X as se,Xt as ce,Y as le,Yt as ue,Z as de,Zt as fe,_n as pe,_t as me,a as he,an as ge,at as _e,bn as ve,bt as ye,c as be,cn as xe,ct as Se,d as Ce,dn as we,en as Te,et as Ee,f as De,fn as Oe,g as ke,gn as Ae,gt as je,h as Me,hn as Ne,ht as Pe,i as Fe,in as Ie,it as Le,j as Re,jn as ze,jt as Be,k as Ve,kn as He,kt as Ue,l as We,ln as Ge,lt as Ke,m as qe,mn as Je,mt as Ye,n as Xe,nn as Ze,nt as Qe,o as $e,ot as et,p as tt,pn as nt,pt as rt,q as it,qt as at,r as ot,rn as st,rt as ct,s as lt,sn as ut,st as dt,t as ft,tn as pt,tt as mt,u as ht,un as gt,ut as _t,v as vt,vn as yt,vt as bt,wt as xt,xn as St,xt as Ct,y as wt,yn as Tt,yt as Et,z as Dt,zt as Ot}from"./DocumentContext-ogFq9Apo.js";import{n as J,r as kt,t as At}from"./dist-UKzQrqGt.js";import{A as jt,C as Mt,D as Nt,E as Pt,O as Ft,S as It,T as Lt,_ as Rt,a as zt,b as Bt,c as Vt,d as Ht,f as Ut,g as Wt,h as Gt,i as Kt,k as qt,l as Jt,m as Yt,n as Xt,o as Zt,p as Qt,r as $t,s as en,t as tn,u as nn,v as rn,w as an,x as on,y as sn}from"./panel-BTJzrl0A.js";import{n as cn,t as ln}from"./dist-DA2I9IQS.js";import{t as un}from"./react-dom-B_M7c6fL.js";import{i as dn,l as fn,n as Y,t as pn,u as X}from"./createLucideIcon-DkO1lL_8.js";import{a as mn,c as hn,d as gn,i as _n,o as vn,r as yn,u as bn}from"./dist-D9SQx2Kz.js";import{i as xn,n as Sn,r as Cn,t as wn}from"./tooltip-C0qAzcHx.js";import{t as Tn}from"./dist-DbuHZOKW.js";import{n as En,r as Dn,t as On}from"./collapsible-DaBc_MOj.js";import{a as kn,c as An,i as jn,n as Mn,o as Nn,s as Pn,t as Fn}from"./dialog-DFGKErvF.js";import{$ as In,B as Ln,C as Rn,D as zn,F as Bn,I as Vn,K as Hn,L as Un,O as Wn,Q as Gn,T as Kn,X as qn,Y as Jn,_ as Yn,_t as Xn,at as Zn,b as Qn,ct as $n,et as er,f as tr,gt as nr,ht as rr,l as ir,m as ar,mt as or,ot as sr,q as cr,rt as lr,st as ur,u as dr,vt as fr,w as pr,yt as mr}from"./CodeMirrorPropInput-f5pC607I.js";import{t as hr}from"./checkbox-DbIYExtz.js";import{a as gr,d as _r,i as vr,l as yr,n as br,o as xr,r as Sr,s as Cr,t as wr,u as Tr}from"./floating-ui.dom-B3TJy2Tg.js";import{n as Er,r as Dr,t as Or}from"./dist-DwtpXHlI.js";import{A as kr,B as Ar,C as jr,D as Mr,E as Nr,F as Pr,H as Fr,I as Ir,L as Lr,M as Rr,N as zr,O as Br,P as Vr,R as Hr,S as Ur,T as Wr,U as Gr,V as Kr,_ as qr,g as Jr,h as Yr,i as Xr,j as Zr,k as Qr,m as $r,o as ei,p as ti,r as ni,u as ri,v as ii,w as ai,y as oi,z as si}from"./skills-api-ChqmqNEn.js";import{t as ci}from"./label-rnTtsCxb.js";import{n as li,t as ui}from"./radio-group-Bmt_-6b7.js";import{$ as di,A as fi,B as pi,D as mi,F as hi,G as gi,H as _i,I as vi,J as yi,K as bi,L as xi,O as Si,P as Ci,Q as wi,R as Ti,T as Ei,U as Di,V as Oi,W as ki,X as Ai,Y as ji,Z as Mi,_ as Ni,a as Pi,at as Fi,b as Ii,c as Li,ct as Ri,dt as zi,et as Bi,ft as Vi,it as Hi,k as Ui,l as Wi,lt as Gi,m as Ki,n as qi,nt as Ji,ot as Yi,q as Xi,r as Zi,st as Qi,t as $i,tt as ea,u as ta,ut as na,v as ra,w as ia,y as aa,z as oa}from"./auth-state-cache-CijiQXmK.js";import{n as sa,r as ca,t as la}from"./toggle-group-Bl0XnVQW.js";import{$n as ua,A as da,Ai as fa,An as pa,B as ma,C as ha,Ci as ga,Cn as _a,Cr as va,Ct as ya,D as ba,Di as xa,Dr as Sa,Er as Ca,F as wa,Fn as Ta,Fr as Ea,Gr as Da,Gt as Oa,Ir as ka,Jn as Aa,Jr as ja,Li as Ma,Ln as Na,Lr as Pa,Lt as Fa,M as Ia,Mi as La,Mr as Ra,N as za,Ni as Ba,Nn as Va,Nr as Ha,Nt as Ua,Oi as Wa,On as Ga,Or as Ka,Pi as qa,Pt as Ja,Rr as Ya,Rt as Xa,Si as Za,Vr as Qa,Vt as $a,Xr as eo,Yr as to,Zn as no,Zr as ro,_i as io,an as ao,b as oo,ba as so,bn as co,c as lo,fn as uo,ft as fo,ga as po,gr as mo,hn as ho,ir as go,jn as _o,jr as vo,k as yo,ki as bo,la as xo,ma as So,n as Co,ni as wo,oi as To,on as Eo,qr as Do,r as Oo,ra as ko,ri as Ao,sa as jo,t as Mo,tr as No,tt as Po,ua as Fo,ur as Io,va as Lo,vi as Ro,vn as zo,vt as Bo,w as Vo,wi as Ho,wt as Uo,xi as Wo,xn as Go,xr as Ko,ya as qo,yn as Jo,z as Yo,zn as Xo}from"./dist-CurDB4OA.js";import{t as Zo}from"./git-branch-D6_3xkgC.js";import{a as Qo,c as $o,i as es,n as ts,o as ns,r as rs,s as is,t as as}from"./pending-receive-nav-store-BqFe0QyH.js";import{a as os,c as ss,l as cs,o as ls,s as us}from"./EnableSyncConfirmDialog-CEMiBdy3.js";import{t as ds}from"./arrow-up-right-hiEaTtOQ.js";import{a as fs,c as ps,d as ms,f as hs,i as gs,l as _s,m as vs,n as ys,o as bs,p as xs,r as Ss,s as Cs,t as ws,u as Ts}from"./PropertyPanel-DpYcGGW2.js";import{t as Es}from"./check-YcLXnBws.js";import{t as Ds}from"./chevron-down-CfwFDIcB.js";import{t as Os}from"./chevron-left-CeBFBkDM.js";import{t as ks}from"./chevron-right-Cn_Rq8Go.js";import{n as As,t as js}from"./CopyButton-CMJPcMjt.js";import{a as Ms,i as Ns,n as Ps,o as Fs}from"./prop-types-r4lrTXmC.js";import{C as Is,E as Ls,S as Rs,T as zs,_ as Bs,a as Vs,b as Hs,c as Us,d as Ws,f as Gs,g as Ks,h as qs,i as Js,l as Ys,m as Xs,n as Zs,o as Qs,p as $s,r as ec,s as tc,u as nc,v as rc,w as ic,x as ac}from"./skill-actions-CqFXEGI_.js";import{a as oc,d as sc,i as cc,l as lc,n as uc,o as dc,r as fc,s as pc,t as mc,u as hc}from"./workspace-paths-DGpjh0_R.js";import{t as gc}from"./copy-CJtHLQXD.js";import{t as _c}from"./folder-open-CYwNVasf.js";import{_ as vc,a as yc,b as bc,c as xc,d as Sc,g as Cc,h as wc,l as Tc,m as Ec,p as Dc,s as Oc,t as kc,u as Ac,v as jc,y as Mc}from"./open-managed-artifact-tab-jUT5uxaf.js";import{t as Nc}from"./info-CVOto5Gb.js";import{t as Pc}from"./loader-circle-CLDbHvUo.js";import{t as Fc}from"./miss-dialog-store-CyOCdXFw.js";import{t as Ic}from"./refresh-cw-Cbbnmwxa.js";import{t as Lc}from"./trash-2-BByztZ1L.js";import{t as Rc}from"./triangle-alert-BRg1-EjD.js";import{a as zc,i as Bc,n as Vc,o as Hc,r as Uc,s as Wc,t as Gc}from"./agent-presence-D2eASrH_.js";import{a as Kc,c as qc,d as Jc,f as Yc,h as Xc,i as Zc,l as Qc,m as $c,n as el,o as tl,s as nl,t as rl,u as il}from"./typing-burst-detector-ByylQ2W5.js";import{t as al}from"./x-DOZY99do.js";import{n as ol,t as sl}from"./dist-DyPw7rC6.js";import{a as cl,i as ll,n as ul,r as dl}from"./project-paths-iCe7bm-c.js";import{t as fl}from"./input-C1P6Hf22.js";import{t as pl}from"./parse-api-error-BcfaIWfX.js";import{t as ml}from"./dist-D6ZXVw3E.js";import{n as hl,r as gl,t as _l}from"./file-tree-rename-validation-DgUQ0I0S.js";import{C as vl,S as yl,_ as bl,a as xl,b as Sl,g as Cl,h as wl,i as Tl,m as El,n as Dl,o as Ol,r as kl,s as Al,v as jl,x as Ml,y as Nl}from"./navigation-targets-D_g_oD3p.js";import{a as Pl,c as Fl,n as Il,o as Ll,r as Rl,s as zl}from"./documents-events-BgIyZo2W.js";import{t as Bl}from"./documents-fetch-YrVYNlaU.js";import{a as Vl,i as Hl,o as Ul}from"./startup-marks-DkuthT6-.js";import{a as Wl,c as Gl,d as Kl,f as ql,i as Jl,l as Yl,n as Xl,o as Zl,r as Ql,s as $l,t as eu,u as tu}from"./doc-hash-CZiGDoto.js";import{_ as nu,a as ru,c as iu,f as au,g as ou,i as su,m as cu,n as lu}from"./lint-config-client-VuF6BI2d.js";import{a as uu,i as du,l as fu,n as pu,t as mu}from"./config-provider-BGFykK9q.js";import{$ as hu,At as gu,Ct as _u,Dt as vu,Ft as yu,I as bu,It as xu,J as Su,Mt as Cu,Ot as wu,Pt as Tu,Q as Eu,Tt as Du,X as Ou,Z as ku,at as Au,bt as ju,jt as Mu,k as Nu,w as Pu}from"./dist-CdtMC9tO.js";import{n as Fu}from"./dist-QYEZGzhE.js";import{n as Iu}from"./config-context-DBmRI7_N.js";import{t as Lu}from"./external-link-BfiFPJEx.js";import{n as Ru,r as zu,t as Bu}from"./worktree-store-DFmh2OE1.js";import{c as Vu,i as Hu,n as Uu,r as Wu,s as Gu,t as Ku}from"./selection-context-DRS0xWzo.js";import{t as qu}from"./target-navigation-intent-CYYSTgIq.js";import{a as Ju,i as Yu,n as Xu,t as Zu}from"./cursor-Cw-gHVjo.js";import{t as Qu}from"./dist-TX_NQU76.js";import{n as $u}from"./clipboard-adapter-BHfhAZ-n.js";import"./textarea-BdasFVsT.js";import{A as ed,C as td,D as nd,E as rd,O as id,S as ad,T as od,_ as sd,a as cd,b as ld,c as ud,d as dd,f as fd,g as pd,h as md,i as hd,k as gd,l as _d,m as vd,n as yd,o as bd,p as xd,r as Sd,s as Cd,t as wd,u as Td,v as Ed,w as Dd,x as Od,y as kd}from"./file-tree-adapter-Dubqn9yJ.js";import{n as Ad,t as jd}from"./mcp-consent-store-O7e02Mi1.js";import{a as Md,t as Nd}from"./receive-store-DL3XQSe9.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function Pd(){({BASE_URL:`./`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_APP_VERSION:`0.32.0`})?.VITE_OTEL_ENABLED===`true`&&n(()=>import(`./telemetry-impl-CeO1833o.js`).then(e=>e.install()),__vite__mapDeps([0,1,2,3,4]),import.meta.url)}function Fd(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Wt(e,()=>t.signal,()=>n=!0)},u=sn(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?rn:Rt;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Ld:Id,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Id(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Id(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ld(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Rd=class extends Ut{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||zd(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Qt({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),Gt.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function zd(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Bd=class extends jt{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Rd({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Vd(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Vd(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Vd(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Vd(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Gt.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Mt(t,e))}findAll(e={}){return this.getAll().filter(t=>Mt(e,t))}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Gt.batch(()=>Promise.all(e.map(e=>e.continue().catch(Lt))))}};function Vd(e){return e.options.scope?.id}var Hd=class extends jt{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??It(r,t),a=this.get(i);return a||(a=new Ht({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Gt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>an(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>an(e,t)):t}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ud=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Hd,this.#t=e.mutationCache||new Bd,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=qt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Yt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Nt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Bt(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Gt.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Gt.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Gt.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Gt.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Lt).catch(Lt)}invalidateQueries(e,t={}){return Gt.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Gt.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Lt)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Lt)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Nt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Lt).catch(Lt)}fetchInfiniteQuery(e){return e.behavior=Fd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Lt).catch(Lt)}ensureInfiniteQueryData(e){return e.behavior=Fd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Yt.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(on(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Pt(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(on(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Pt(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=It(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Ft&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Wd=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Gd=t(((e,t)=>{t.exports=Wd()})),Kd=t((e=>{var t=Gd(),n=r(),i=un();function a(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(a(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return u(i),e;if(o===r)return u(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.memo_cache_sentinel`),k=Symbol.iterator;function A(e){return typeof e!=`object`||!e?null:(e=k&&e[k]||e[`@@iterator`],typeof e==`function`?e:null)}var j=Symbol.for(`react.client.reference`);function M(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===j?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?M(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return M(e(t))}catch{}}return null}var N=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},L=[],R=-1;function z(e){return{current:e}}function B(e){0>R||(e.current=L[R],L[R]=null,R--)}function V(e,t){R++,L[R]=e.current,e.current=t}var H=z(null),U=z(null),W=z(null),G=z(null);function K(e,t){switch(V(W,t),V(U,e),V(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}B(H),V(H,e)}function q(){B(H),B(U),B(W)}function ee(e){e.memoizedState!==null&&V(G,e);var t=H.current,n=Wd(t,e.type);t!==n&&(V(U,e),V(H,n))}function te(e){U.current===e&&(B(H),B(U)),G.current===e&&(B(G),Qf._currentValue=I)}var ne,re;function ie(e){if(ne===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ne=t&&t[1]||``,re=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+ne+e+re}var ae=!1;function oe(e,t){if(!e||ae)return``;ae=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
@@ -2002,5 +2002,5 @@ Error generating stack: `+e.message+`
2002
2002
  :host([${_X}]) [data-item-focused="true"] {
2003
2003
  --trees-focus-ring-color: transparent;
2004
2004
  }
2005
- `}\n${xJ}\n${SJ}`;function yX(e){let t=e.split(`/`).pop()?.replace(/\.md$/i,``).toLowerCase();return!!t&&rX.has(t)}function bX(e){return e===`darwin`?ml._({id:`LtSYdi`}):e===`win32`?ml._({id:`qi1F96`}):ml._({id:`e1Rn_k`})}function xX(e){let t=(0,$.c)(18),{item:n,workspace:r,onClose:i}=e,{_:a}=kt(),o=typeof window<`u`?window.okDesktop:void 0;if(!o)return null;let s=o.platform,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=bX(s),t[0]=c):c=t[0];let l=c,u,d;t[1]!==a||t[2]!==r?(u=r?null:a({id:`wTcjov`}),d=a(s===`darwin`?u?{id:`FvpFSZ`,values:{hint:u}}:{id:`LtSYdi`}:s===`win32`?u?{id:`o4dcAf`,values:{hint:u}}:{id:`qi1F96`}:u?{id:`zUhPuR`,values:{hint:u}}:{id:`e1Rn_k`}),t[1]=a,t[2]=r,t[3]=u,t[4]=d):(u=t[3],d=t[4]);let f=d,p=!r,m;t[5]!==n||t[6]!==i||t[7]!==r?(m=()=>{if(!r)return;i();let e=uc(r.contentDir,sd(n),r.pathSeparator);o.shell.showItemInFolder(e)},t[5]=n,t[6]=i,t[7]=r,t[8]=m):m=t[8];let h,g;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Z.jsx)(_c,{"aria-hidden":`true`}),g=(0,Z.jsx)(`span`,{className:`flex-1`,children:l}),t[9]=h,t[10]=g):(h=t[9],g=t[10]);let _;t[11]===u?_=t[12]:(_=u?(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:u}):null,t[11]=u,t[12]=_);let v;return t[13]!==f||t[14]!==p||t[15]!==m||t[16]!==_?(v=(0,Z.jsxs)(qr,{disabled:p,onSelect:m,"aria-label":f,children:[h,g,_]}),t[13]=f,t[14]=p,t[15]=m,t[16]=_,t[17]=v):v=t[17],v}function SX(e,t){return ad({kind:e.endsWith(`/`)?`directory`:`file`,name:e,path:e},t)}function CX(e){let t=e.match(/\.(md|mdx)$/i);if(!t)return null;let n=t[0].toLowerCase()===`.md`?`.mdx`:`.md`;return`${e.slice(0,-t[0].length)}${n}`}function wX(e,t){let n=CX(e);return n?t.includes(n):!1}function TX(e,t){return e!==t&&e.startsWith(t)}function EX(e,t){let n=[...new Set(e)].filter(e=>!jl(e)),r=n.filter(e=>e.endsWith(`/`));return n.filter(e=>!r.some(t=>TX(e,t))).map(e=>SX(e,t))}function DX(e,t){let n=e.getItem(t)??e.getItem(xd(t));return n?.isDirectory()?xd(kd(n.getPath())):t}function OX(e){let t=e.getFocusedPath()??e.getSelectedPaths()[0]??null;return t?DX(e,t):null}function kX(e,t,n){let r=OX(e);return!r||n.has(r)||jl(r)?null:SX(r,t)}function AX(e,t){let n=e.getSelectedPaths(),r=OX(e);return EX(n.length>0?n.map(t=>DX(e,t)):r?[r]:[],t)}function jX(e,t){return e===t||e.startsWith(`${t}/`)}function MX(e){if(!(e instanceof HTMLElement))return!1;let t=e.tagName;return t===`INPUT`||t===`TEXTAREA`||t===`SELECT`||e.isContentEditable||e.closest(`[contenteditable="true"]`)!==null}function NX(e,t,n){let r=new Set,i=new Set,a=new Set;for(let o of e){if(o.kind===`file`){r.add(o.path);continue}if(o.kind===`asset`){a.add(o.path);continue}i.add(o.path);for(let e of t)Sl(e)&&e.docName.startsWith(`${o.path}/`)?r.add(e.docName):Nl(e)&&e.path.startsWith(`${o.path}/`)&&a.add(e.path);for(let e of n){let t=kd(e);jX(t,o.path)&&i.add(t)}}return{docNames:r,folderPaths:i,assetPaths:a}}function PX(e,t){return e.kind===`file`?t.kind===`file`&&e.path===t.createdPath:e.kind===`asset`?!1:jX(t.createdPath,e.path)}function FX(e){let t=(0,$.c)(68),{item:n,context:r,anyActionBusy:i,workspace:a,handoff:o,model:s,okignoreBinding:c,onStartCreating:l,onCreateFromTemplate:u,onDuplicate:d,onDelete:f,onExpandSubtree:m,onCollapseSubtree:h,folderTreePaths:g,isAsset:_,documents:v}=e,{_:y}=kt(),b=ad(n,v),x=n.kind===`directory`,S;t[0]===n.path?S=t[1]:(S=jl(n.path),t[0]=n.path,t[1]=S);let C=S,w=b.kind===`asset`?null:b,T=w!==null&&c!==null,E;t[2]!==y||t[3]!==x?(E=y(x?{id:`5D3Ior`}:{id:`dbhUX1`}),t[2]=y,t[3]=x,t[4]=E):E=t[4];let D=E,O;t[5]!==x||t[6]!==n.path?(O=x?kd(n.path):null,t[5]=x,t[6]=n.path,t[7]=O):O=t[7];let k=Ri(O),A=k.state.status===`ready`?(k.state.data.folder.templates_available?.length??0)>0:!0,j=s.getSelectedPaths(),M=j.includes(b.treePath)?EX(j,v):[],N=M.length>1?M:[b],P=N.length,F=ml._({id:`djjdjr`,values:{deleteCount:P}}),I;t[8]!==v||t[9]!==_||t[10]!==x||t[11]!==n||t[12]!==a?(I=_?null:x?Ks({folderRelativePath:sd(n),workspace:a}):Bs({docName:Od(n.path,v),workspace:a}),t[8]=v,t[9]=_,t[10]=x,t[11]=n,t[12]=a,t[13]=I):I=t[13];let L=I,R;t[14]===r?R=t[15]:(R=()=>r.close({restoreFocus:!1}),t[14]=r,t[15]=R);let z=R,B;t[16]===r?B=t[17]:(B=()=>r.close(),t[16]=r,t[17]=B);let V=B,{status:H}=cs(),U=H?.hasRemote===!0,W;t[18]!==v||t[19]!==_||t[20]!==x||t[21]!==n.path||t[22]!==b?(W=_||b.kind===`asset`?null:x?hi(kd(n.path)):Ci(Od(n.path,v)),t[18]=v,t[19]=_,t[20]=x,t[21]=n.path,t[22]=b,t[23]=W):W=t[23];let G=W,K=U&&G!==null,q;t[24]!==y||t[25]!==U||t[26]!==G?(q=()=>{G&&vi({...G,hasRemote:U,onClickWhenNoRemote:()=>{ol.error(y({id:`WyQxwa`}))}},{clipboardWrite:$u,toastSuccess:RX,toastError:LX,logEvent:IX})},t[24]=y,t[25]=U,t[26]=G,t[27]=q):q=t[27];let ee=q,te;t[28]!==K||t[29]!==V||t[30]!==ee?(te=K?(0,Z.jsxs)(qr,{"data-testid":`file-tree-menu-share`,onSelect:()=>{V(),ee()},children:[(0,Z.jsx)($m,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`Z8lGw6`})]}):null,t[28]=K,t[29]=V,t[30]=ee,t[31]=te):te=t[31];let ne=te,re=0,ie=0;if(x){let e=xd(n.path);for(let t of g)(t===e||t.startsWith(e))&&(re++,mY(s.getItem(t))?.isExpanded()&&ie++)}let ae=x&&ie<re,oe=x&&ie>0,se;t[32]===V?se=t[33]:(se=e=>{e||V()},t[32]=V,t[33]=se);let ce;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,Z.jsx)(Nr,{asChild:!0,children:(0,Z.jsx)(`span`,{"aria-hidden":`true`,"data-file-tree-context-menu-root":`true`,className:`block size-px`})}),t[34]=ce):ce=t[34];let le;t[35]!==y||t[36]!==i||t[37]!==T||t[38]!==V||t[39]!==z||t[40]!==F||t[41]!==N||t[42]!==A||t[43]!==o||t[44]!==L||t[45]!==D||t[46]!==_||t[47]!==x||t[48]!==C||t[49]!==n||t[50]!==s||t[51]!==c||t[52]!==w||t[53]!==h||t[54]!==u||t[55]!==f||t[56]!==d||t[57]!==m||t[58]!==l||t[59]!==ne||t[60]!==oe||t[61]!==ae||t[62]!==b||t[63]!==a?(le=(0,Z.jsx)(Yr,{sideOffset:0,align:`start`,"data-file-tree-context-menu-root":`true`,className:`min-w-52`,children:x?(0,Z.jsxs)(Z.Fragment,{children:[C?null:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(qr,{disabled:i,onSelect:()=>{z(),l(`file`,kd(n.path))},children:[(0,Z.jsx)(rh,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`HdkSiO`})]}),A?(0,Z.jsxs)(jr,{children:[(0,Z.jsxs)(Wr,{disabled:i,children:[(0,Z.jsx)(Gi,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`Uuj_R4`})]}),(0,Z.jsx)(ai,{children:(0,Z.jsx)(pY,{parentDir:kd(n.path),onSelectTemplate:e=>{z(),u(kd(n.path),e)},ItemComponent:qr})})]}):null,(0,Z.jsxs)(qr,{disabled:i,onSelect:()=>{z(),l(`folder`,kd(n.path))},children:[(0,Z.jsx)(xm,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`96G6Re`})]}),(0,Z.jsx)(Ur,{})]}),(0,Z.jsx)(xX,{item:n,workspace:a,onClose:V}),(0,Z.jsx)(Vs,{input:L,installStates:o.installStates,isElectronHost:o.isElectronHost,dispatch:o.dispatch}),ne,(0,Z.jsxs)(jr,{children:[(0,Z.jsxs)(Wr,{children:[(0,Z.jsx)(gc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`oCZkaG`})]}),(0,Z.jsxs)(ai,{children:[(0,Z.jsx)(qr,{disabled:!a,onSelect:()=>{a&&(V(),nX(uc(a.contentDir,sd(n),a.pathSeparator),`full`))},children:(0,Z.jsx)(J,{id:`oQA-cA`})}),(0,Z.jsx)(qr,{onSelect:()=>{V(),nX(sd(n),`relative`)},children:(0,Z.jsx)(J,{id:`s061i4`})})]})]}),ae||oe?(0,Z.jsx)(Ur,{}):null,ae?(0,Z.jsxs)(qr,{onSelect:()=>{V(),m(n.path)},children:[(0,Z.jsx)(_h,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`OlAl5i`})]}):null,oe?(0,Z.jsxs)(qr,{onSelect:()=>{V(),h(n.path)},children:[(0,Z.jsx)(ym,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`qvWGzP`})]}):null,C?null:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ur,{}),(0,Z.jsxs)(qr,{disabled:i,onSelect:()=>{b.kind!==`asset`&&(V(),d(b))},children:[(0,Z.jsx)(sc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`euc6Ns`})]}),(0,Z.jsxs)(qr,{disabled:i,onSelect:()=>{z(),s.startRenaming(n.path)},children:[(0,Z.jsx)(hc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`2wxgft`})]}),(0,Z.jsxs)(qr,{"data-testid":`file-tree-menu-hide`,disabled:!T,onSelect:()=>{if(!c||!w)return;V();let e=zJ(w),t=Ki(c.current()),n=ta(t,e);if(n===t)return;c.patch(Ni(n));let r=w.path.split(`/`).pop()||w.path;ol.success(y({id:`4xtLTl`,values:{basename:r}}),{description:y({id:`nWv1ja`}),duration:5e3})},children:[(0,Z.jsx)(p,{"aria-hidden":`true`}),D]}),(0,Z.jsxs)(qr,{variant:`destructive`,disabled:i,onSelect:()=>{V(),f(N)},children:[(0,Z.jsx)(Lc,{"aria-hidden":`true`}),F]})]})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(xX,{item:n,workspace:a,onClose:V}),!_&&(0,Z.jsx)(Vs,{input:L,installStates:o.installStates,isElectronHost:o.isElectronHost,dispatch:o.dispatch}),ne,(0,Z.jsxs)(jr,{children:[(0,Z.jsxs)(Wr,{children:[(0,Z.jsx)(gc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`oCZkaG`})]}),(0,Z.jsxs)(ai,{children:[(0,Z.jsx)(qr,{disabled:!a,onSelect:()=>{a&&(V(),nX(uc(a.contentDir,sd(n),a.pathSeparator),`full`))},children:(0,Z.jsx)(J,{id:`oQA-cA`})}),(0,Z.jsx)(qr,{onSelect:()=>{V(),nX(sd(n),`relative`)},children:(0,Z.jsx)(J,{id:`s061i4`})})]})]}),C?null:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ur,{}),_?null:(0,Z.jsxs)(qr,{disabled:i,onSelect:()=>{V(),d(b)},children:[(0,Z.jsx)(sc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`euc6Ns`})]}),(0,Z.jsxs)(qr,{disabled:i,onSelect:()=>{z(),s.startRenaming(n.path)},children:[(0,Z.jsx)(hc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`2wxgft`})]}),w?(0,Z.jsxs)(qr,{"data-testid":`file-tree-menu-hide`,disabled:!T,onSelect:()=>{if(!c)return;V();let e=zJ(w),t=Ki(c.current()),n=ta(t,e);if(n===t)return;c.patch(Ni(n));let r=w.path.split(`/`).pop()||w.path;ol.success(y({id:`OD0FCX`,values:{basename:r}}),{description:y({id:`nWv1ja`}),duration:5e3})},children:[(0,Z.jsx)(p,{"aria-hidden":`true`}),D]}):null,(0,Z.jsxs)(qr,{variant:`destructive`,disabled:i,onSelect:()=>{V(),f(N)},children:[(0,Z.jsx)(Lc,{"aria-hidden":`true`}),F]})]})]})}),t[35]=y,t[36]=i,t[37]=T,t[38]=V,t[39]=z,t[40]=F,t[41]=N,t[42]=A,t[43]=o,t[44]=L,t[45]=D,t[46]=_,t[47]=x,t[48]=C,t[49]=n,t[50]=s,t[51]=c,t[52]=w,t[53]=h,t[54]=u,t[55]=f,t[56]=d,t[57]=m,t[58]=l,t[59]=ne,t[60]=oe,t[61]=ae,t[62]=b,t[63]=a,t[64]=le):le=t[64];let ue;return t[65]!==se||t[66]!==le?(ue=(0,Z.jsxs)(ti,{open:!0,modal:!1,onOpenChange:se,children:[ce,le]}),t[65]=se,t[66]=le,t[67]=ue):ue=t[67],ue}function IX(e){return console.log(e)}function LX(e){return ol.error(e)}function RX(e){return ol.success(e)}function zX(e,t){return`/api/documents?showAll=true${t?`&showOk=true`:``}&dir=${encodeURIComponent(e)}&depth=1`}async function BX(e,t,n,r,i){try{let a=await fetch(zX(e,t),{signal:n,headers:OY});if(kY(a)){let e=await MY(a);return{kind:`entries`,entries:vl(e.entries),truncated:e.truncated}}let o=await M(a,r);if(!o.ok)return{kind:`http-error`,title:o.title};let s=da.safeParse(o.body);return s.success?{kind:`entries`,entries:vl(s.data.documents),truncated:s.data.truncated===!0}:{kind:`http-error`,title:i}}catch(e){return e instanceof AY?{kind:`http-error`,title:e.message}:{kind:`network-error`,cause:e}}}function VX(e){let t=(0,$.c)(366),{ref:n,onContentHeightChange:r}=e,{_:i,i18n:a}=kt(),{activeDocName:o,activeTarget:s,closeTabs:c,closeDocument:l,closeAndClearForRename:u,getPoolActiveDocName:d,poolHas:f,isNewTabActive:p,openTarget:m,prewarm:h,remapTabsForRename:g}=Xe(),{notifySidebarFileSelected:_}=YM(),{resolvedTheme:v}=cn(),{addPage:y,pageMeta:b,pages:x}=Ns(),S;t[0]===b?S=t[1]:(S=function(e,t){return Tl(e,t??b.get(e)?.size)??{kind:`doc`,target:e,docName:e}},t[0]=b,t[1]=S);let C=S,w;t[2]!==y||t[3]!==C||t[4]!==_||t[5]!==m?(w=function(e,t,n){n?.registerPage&&y(e),m(C(e,t),{tabBehavior:`replace-active`}),Kl($l(e)),_()},t[2]=y,t[3]=C,t[4]=_,t[5]=m,t[6]=w):w=t[6];let T=w,E;t[7]!==_||t[8]!==m?(E=function(e){let t=Gl(e);m({kind:`folder`,target:e,folderPath:e},{tabBehavior:`replace-active`}),Kl(t),_()},t[7]=_,t[8]=m,t[9]=E):E=t[9];let D=E,O;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(O=[],t[10]=O):O=t[10];let[k,A]=(0,Q.useState)(O),[j,N]=(0,Q.useState)(!0),[P,F]=(0,Q.useState)(null),[I,L]=(0,Q.useState)(!1),R=PP(),z=(0,Q.useRef)(null),[B,V]=(0,Q.useState)(null),[H,U]=(0,Q.useState)(0),[G,K]=(0,Q.useState)(null),[q,ee]=(0,Q.useState)(null),[te,ne]=(0,Q.useState)(null),{conflicts:re}=Ti(),[ie,ae]=(0,Q.useState)(null),[oe,se]=(0,Q.useState)(null),[ce,le]=(0,Q.useState)(!1),ue=(0,Q.useRef)(ce),de;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(de=new Set,t[11]=de):de=t[11];let fe=(0,Q.useRef)(de),pe=(0,Q.useRef)(k),me=(0,Q.useRef)(b),he=(0,Q.useRef)(null),ge;t[12]!==k||t[13]!==D||t[14]!==T||t[15]!==_||t[16]!==m||t[17]!==x?(ge=function(e,t){let n=t===void 0?k:t,r=eY(e,n);if(r.kind===`none`){console.debug(`[FileTree] Dropped selection for unknown docName:`,Dd(e));return}if(r.kind===`asset`){m({kind:`asset`,target:r.path,assetPath:r.path,mediaKind:r.mediaKind},{tabBehavior:`replace-active`}),Kl(r.hash),_();return}if(r.kind===`folder`){D(r.path);return}let i=n.find(e=>Sl(e)&&e.docName===r.path),a=xl(r.path,{pages:x,docExt:i?.docExt});if(a?.kind===`asset`){m(a,{tabBehavior:`replace-active`}),Kl(Zl(a.assetPath)),_();return}if(a?.kind===`doc`){T(a.docName);return}T(r.path,i?.size,{registerPage:hl(r.path)})},t[12]=k,t[13]=D,t[14]=T,t[15]=_,t[16]=m,t[17]=x,t[18]=ge):ge=t[18];let _e=ge,ve;t[19]!==_||t[20]!==m?(ve=function(e,t){m({kind:`asset`,target:e,assetPath:e,mediaKind:(t??pe.current).find(t=>Nl(t)&&t.path===e)?.mediaKind??null},{tabBehavior:`replace-active`}),Kl(Zl(e)),_()},t[19]=_,t[20]=m,t[21]=ve):ve=t[21];let ye=ve,be=(0,Q.useRef)(o),xe;t[22]===k?xe=t[23]:(xe=new Set(k.filter(Nl).map(hZ)),t[22]=k,t[23]=xe);let Se=xe,Ce=(0,Q.useRef)(Se),we;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(we=[],t[24]=we):we=t[24];let Ee=(0,Q.useRef)(we),De=(0,Q.useRef)(null),Oe=(0,Q.useRef)(mZ),ke=(0,Q.useRef)(null),Ae=(0,Q.useRef)(null),je=(0,Q.useRef)(!1),Me=(0,Q.useRef)(!1),Ne=(0,Q.useRef)(null),Pe;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(Pe={row:null,root:null},t[25]=Pe):Pe=t[25];let Fe=(0,Q.useRef)(Pe),Ie=(0,Q.useRef)(pZ),Le=(0,Q.useRef)(null),Re=(0,Q.useRef)(null),ze;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(ze=new Map,t[26]=ze):ze=t[26];let Be=(0,Q.useRef)(ze),Ve;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=new Set,t[27]=Ve):Ve=t[27];let He=(0,Q.useRef)(Ve),Ue;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=new Map,t[28]=Ue):Ue=t[28];let We=(0,Q.useRef)(Ue),Ge=(0,Q.useRef)(0),qe;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(qe=new Set,t[29]=qe):qe=t[29];let Je=(0,Q.useRef)(qe),Ye=(0,Q.useRef)(fZ),Ze=(0,Q.useRef)(dZ),Qe=(0,Q.useRef)(!1),$e=(0,Q.useRef)(!1),et=(0,Q.useRef)(!1),tt;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(tt=()=>({showHiddenFiles:Qe.current,showOnlyMarkdownFiles:$e.current,showOkFolders:et.current}),t[30]=tt):tt=t[30];let nt=tt,rt=(0,Q.useRef)(null),it=(0,Q.useRef)(null),at=(0,Q.useRef)(uZ),ot=(0,Q.useRef)(lZ),st=(0,Q.useRef)(cZ),lt=(0,Q.useRef)(sZ),ut=(0,Q.useRef)(s),[dt,ft]=(0,Q.useState)(!1),pt;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(pt=function(){z.current!==null&&(clearTimeout(z.current),z.current=null)},t[31]=pt):pt=t[31];let ht=pt,gt;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(gt=function(){ht(),L(!1)},t[32]=gt):gt=t[32];let _t=gt,vt;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(vt=function(e){_t(),F(e)},t[33]=vt):vt=t[33];let yt=vt,bt;t[34]===i?bt=t[35]:(bt=function(){if(ht(),AP()){F(null),L(!0),z.current=setTimeout(()=>{z.current=null,rt.current?.()},hX);return}L(!1),F(i({id:`34qyH5`}))},t[34]=i,t[35]=bt);let xt=bt,St=(0,Q.useRef)(!0),Ct;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(Ct=()=>{if(St.current){St.current=!1;return}rt.current?.()},t[36]=Ct):Ct=t[36];let wt;t[37]===R?wt=t[38]:(wt=[R],t[37]=R,t[38]=wt),(0,Q.useEffect)(Ct,wt);let Tt,Et;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(Tt=()=>ht,Et=[],t[39]=Tt,t[40]=Et):(Tt=t[39],Et=t[40]),(0,Q.useEffect)(Tt,Et);let Dt,Ot;t[41]!==k.length||t[42]!==j?(Dt=()=>{if(j||k.length===0)return;let e=it.current?.querySelector(uz)?.shadowRoot;if(!e)return;let t=e,n=function(){Ne.current!==null&&clearTimeout(Ne.current),Ne.current=setTimeout(()=>{Me.current=!1,Ne.current=null},0)},r=function(e){if(!(e instanceof DragEvent))return;let t=_Z(e),n=t?.dataset.itemPath;if(!n)return;let r=aY(t.dataset.itemType===`folder`?xd(n):n,pe.current,me.current);r&&(Ne.current!==null&&(clearTimeout(Ne.current),Ne.current=null),Me.current=!0,e.dataTransfer?.setData(nd,ed(r)))},i=function(e){if(!(e instanceof DragEvent)||!vd(e))return;let t=yZ(e);if(!t){eX(Fe);return}e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`),tX(Fe,t)},a=function(e){if(!(e instanceof DragEvent)||!vd(e))return;let n=e.relatedTarget;n instanceof Node&&t.contains(n)||eX(Fe)},o=function(e){if(!(e instanceof DragEvent)||!vd(e))return;let t=yZ(e),n=fd(e);if(!t||n.length===0){eX(Fe);return}e.preventDefault(),e.stopPropagation(),eX(Fe),Ie.current(n,t.parentDir,t.busyPath)};return e.addEventListener(`dragstart`,r,{capture:!0}),e.addEventListener(`dragover`,i,{capture:!0}),e.addEventListener(`dragleave`,a,{capture:!0}),e.addEventListener(`drop`,o,{capture:!0}),e.addEventListener(`dragend`,n,{capture:!0}),window.addEventListener(`drop`,n,!0),window.addEventListener(`dragend`,n,!0),()=>{e.removeEventListener(`dragstart`,r,{capture:!0}),e.removeEventListener(`dragover`,i,{capture:!0}),e.removeEventListener(`dragleave`,a,{capture:!0}),e.removeEventListener(`drop`,o,{capture:!0}),e.removeEventListener(`dragend`,n,{capture:!0}),window.removeEventListener(`drop`,n,!0),window.removeEventListener(`dragend`,n,!0),eX(Fe),Ne.current!==null&&(clearTimeout(Ne.current),Ne.current=null),Me.current=!1}},Ot=[k.length,j],t[41]=k.length,t[42]=j,t[43]=Dt,t[44]=Ot):(Dt=t[43],Ot=t[44]),(0,Q.useEffect)(Dt,Ot);let{selectedFilePath:At,selectedFolderPath:jt,navigationPath:Mt}=$J(s,p?null:o),Nt=At?Cd(At,k.find(e=>Sl(e)&&e.docName===At)?.docExt):jt?xd(jt):s?.kind===`asset`?s.assetPath:null,Pt=ce?null:Nt,Ft=$s().states,{dispatch:It}=Is(),Lt;t[45]!==It||t[46]!==Ft?(Lt={installStates:Ft,isElectronHost:typeof window<`u`&&window.okDesktop!=null,dispatch:It},t[45]=It,t[46]=Ft,t[47]=Lt):Lt=t[47];let Rt=Lt,{okignoreBinding:zt,merged:Bt}=Iu(),Vt=Bt?.appearance?.sidebar?.showHiddenFiles??!1,Ht=Bt?.appearance?.sidebar?.showOnlyMarkdownFiles??!1,Ut=Bt?.appearance?.sidebar?.showOkFolders??!1,Wt;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(Wt=()=>Le.current===null,t[48]=Wt):Wt=t[48];let Gt=Wt,Kt;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(Kt=[],t[49]=Kt):Kt=t[49];let qt;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(qt={set:`complete`,spriteSheet:uX,byFileExtension:{md:{name:oX,viewBox:Te},mdx:{name:oX,viewBox:Te}}},t[50]=qt):qt=t[50];let Jt;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(Jt={contextMenu:{enabled:!0,triggerMode:`both`,buttonVisibility:`when-needed`}},t[51]=Jt):Jt=t[51];let Yt;t[52]===Symbol.for(`react.memo_cache_sentinel`)?(Yt={canDrag:Gt,canDrop:Gt,onDropComplete:e=>lt.current(e),onDropError:oZ},t[52]=Yt):Yt=t[52];let Xt,Zt;t[53]===Symbol.for(`react.memo_cache_sentinel`)?(Xt={canRename:Gt,onRename:e=>ot.current(e),onError:e=>st.current(e)},Zt=e=>at.current(e),t[53]=Xt,t[54]=Zt):(Xt=t[53],Zt=t[54]);let Qt;t[55]===i?Qt=t[56]:(Qt={paths:Kt,initialExpansion:`closed`,fileTreeSearchMode:`hide-non-matches`,initialVisibleRowCount:18,stickyFolders:!0,...yJ,icons:qt,unsafeCSS:vX,composition:Jt,dragAndDrop:Yt,renaming:Xt,onSelectionChange:Zt,renderRowDecoration:e=>{let{item:t}=e;if(t.kind===`file`){let e=pe.current.find(e=>Sl(e)&&Cd(e.docName,e.docExt)===t.path);if(e?.isSymlink){let t=e.targetPath;return{icon:iX,title:i(t?{id:`JE21eh`,values:{targetPath:t}}:{id:`BQu9Pg`})}}return yX(t.path)?{icon:aX,title:i({id:`i9toLO`})}:null}let n=pe.current.find(e=>Ml(e)&&xd(e.path)===xd(t.path));if(n?.isSymlink){let e=n.targetPath;return{icon:iX,title:i(e?{id:`JE21eh`,values:{targetPath:e}}:{id:`BQu9Pg`})}}return null}},t[55]=i,t[56]=Qt);let{model:$t}=_J(Qt),en;t[57]===$t?en=t[58]:(en=function(e){let t=$t.getItem(e)??$t.getItem(xd(e));return t?.isDirectory()?xd(kd(t.getPath())):e},t[57]=$t,t[58]=en);let tn=en,nn,rn;t[59]===k?(nn=t[60],rn=t[61]):(rn=ud(k),nn=td(rn),t[59]=k,t[60]=nn,t[61]=rn);let an=nn,on=(0,Q.useRef)(rn),sn;t[62]!==k||t[63]!==Ut?(sn=yd(k,{includeOkFolders:Ut}),t[62]=k,t[63]=Ut,t[64]=sn):sn=t[64];let ln=sn,un=(0,Q.useRef)(ln),dn=jt?Sd(xd(jt)).slice(0,-1):Sd(Pt??Mt),fn=dn.join(`\0`),pn;t[65]===$t?pn=t[66]:(pn=()=>{let e=new Set;for(let t of un.current)mY($t.getItem(t))?.isExpanded()&&e.add(t);return e},t[65]=$t,t[66]=pn);let mn=pn,hn;t[67]===mn?hn=t[68]:(hn=e=>{let t=new Set(yd(e??pe.current,{includeOkFolders:et.current})),n=mn();for(let e of Ee.current)n.add(e);return[...n].filter(e=>t.has(e))},t[67]=mn,t[68]=hn);let gn=hn,_n;t[69]!==gn||t[70]!==$t?(_n=e=>{let t=ud(e??pe.current);$t.resetPaths(t,{initialExpandedPaths:gn(e)})},t[69]=gn,t[70]=$t,t[71]=_n):_n=t[71];let vn=_n,yn;t[72]!==i||t[73]!==xt?(yn=async function(e){let t=Ge.current,n=new AbortController;We.current.set(e,n);let r=await BX(kd(e),et.current,n.signal,i({id:`8RtNI0`}),i({id:`HlmZBk`}));if(We.current.get(e)===n&&We.current.delete(e),n.signal.aborted||t!==Ge.current)return;if(r.kind===`network-error`){xt(),console.warn(`[FileTree] lazy folder children fetch failed:`,e,r.cause);return}if(r.kind===`http-error`){console.warn(`[FileTree] lazy folder children http error:`,e,r.title),yt(r.title);return}let a=bl(r.entries,nt());He.current.add(e),A(t=>FY(t,e,a,Be.current)),F(null),_t(),r.truncated&&V(r.entries.length)},t[72]=i,t[73]=xt,t[74]=yn):yn=t[74];let bn=yn,xn;t[75]!==mn||t[76]!==bn?(xn=()=>{let e=mn(),t=Je.current;Je.current=e;for(let n of e){if(t.has(n)||He.current.has(n)||We.current.has(n))continue;let e=kd(n);pe.current.find(t=>Ml(t)&&t.path===e)?.hasChildren!==!1&&bn(n)}},t[75]=mn,t[76]=bn,t[77]=xn):xn=t[77];let Sn=xn,Cn;t[78]!==mn||t[79]!==bn?(Cn=()=>{for(let e of mn())He.current.has(e)||We.current.has(e)||bn(e)},t[78]=mn,t[79]=bn,t[80]=Cn):Cn=t[80];let wn=Cn,Tn;t[81]!==$t||t[82]!==vn?(Tn=(e,t,n,r)=>{let i=r===void 0?[]:r,a=0,o=null;for(let{fromDocName:r,toDocName:i}of n){let n=e.find(e=>Sl(e)&&e.docName===r);if(n==null||$t.getItem(i)==null)continue;let s=Cd(i,t.find(e=>Sl(e)&&e.docName===i)?.docExt??n.docExt);$t.move(i,s),o=s,a+=1}for(let{toPath:e}of i){let t=_l(e);if(t===``)continue;let n=e.slice(0,-t.length);$t.getItem(n)!=null&&($t.getItem(e)??$t.move(n,e),o=e,a+=1)}a!==0&&(vn(t),o!=null&&$t.focusPath(o))},t[81]=$t,t[82]=vn,t[83]=Tn):Tn=t[83];let En=Tn,Dn;t[84]===Symbol.for(`react.memo_cache_sentinel`)?(Dn=e=>{ke.current=_d(e)},t[84]=Dn):Dn=t[84];let On=Dn,kn;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(kn=e=>Ce.current.has(e),t[85]=kn):kn=t[85];let An=kn,jn;t[86]!==i||t[87]!==y||t[88]!==D||t[89]!==T||t[90]!==vn?(jn=async function(e){if(e.kind===`asset`||Le.current!==null)return;let t=()=>{K(null),Le.current=null};Le.current=e.path,K(e.path),F(null);try{let n=await M(await fetch(`/api/duplicate-path`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({kind:e.kind,path:e.path})}),i({id:`dw_dUJ`}));if(!n.ok){ol.error(n.title),vn(),t();return}let r=W(Ia,n.body,`duplicate-path`,null);if(r===null){let e=i({id:`67f-3g`});ol.error(e),F(e),Il([`files`,`backlinks`,`graph`]),vn(),t();return}for(let e of r.duplicatedDocNames)y(e);A(t=>{let n=oF(t,e,r);return vn(n),On(n),n}),Il([`files`,`backlinks`,`graph`]),r.path!==e.path&&(r.kind===`folder`?D(r.path):T(r.path)),ol.success(r.kind===`folder`?i({id:`iilQXA`}):i({id:`A6h5b-`}),{description:r.path}),t()}catch(e){let n=e,r=n instanceof Error?n.message:String(n);console.warn(`[FileTree] duplicate failed:`,n),ol.error(i({id:`EBVbtP`}),{description:r}),vn(),t()}},t[86]=i,t[87]=y,t[88]=D,t[89]=T,t[90]=vn,t[91]=jn):jn=t[91];let Mn=jn,Nn=(0,Q.useRef)(Mn),Pn;t[92]===Mn?Pn=t[93]:(Pn=()=>{Nn.current=Mn},t[92]=Mn,t[93]=Pn),(0,Q.useEffect)(Pn);let In=function(e){let t=ZY(e);if(!t||QY(t))return!1;let n=$t.getFocusedPath()??$t.getSelectedPaths()[0]??null;if(!n||n.endsWith(`/`)||An(n))return!1;let r=QY(n);if(!r)return!1;let i=xd(t);if(!un.current.includes(i))return!1;let a=`${t}${r}`;return on.current.includes(a)?!1:(mr({sourcePath:n,destinationPath:a,isFolder:!1}),$t.move(n,a),!0)},Ln;t[94]===Symbol.for(`react.memo_cache_sentinel`)?(Ln=e=>{let t=e??De.current;!t||De.current!==t||(t.disposeCommitListener(),De.current=null)},t[94]=Ln):Ln=t[94];let Rn=Ln,zn;t[95]!==i||t[96]!==Rn||t[97]!==l||t[98]!==c||t[99]!==vn?(zn=async function(e,t){let n=t===void 0?{}:t,r=n.updateUi??!0,a=n.restoreLocation??r;Rn(e),r&&K(e.renamePath);try{let t=await fetch(`/api/delete-path`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({kind:e.kind,path:e.createdPath})});if(!t.ok&&t.status!==404){let n=e.kind,a=e.createdPath,o=await M(t,i({id:`EcM3k7`,values:{kind:n}}));if(o.ok)return;let s=o.title,c=i({id:`YPFBfr`,values:{detail:s,kind:n,createdPath:a}});r?ol.error(c):console.warn(`[FileTree] cleanup pending create failed: ${c}`),r&&(K(null),vn());return}}catch(t){if(console.warn(`[FileTree] cleanup pending create failed:`,t),r){let t=e.kind,n=e.createdPath;ol.error(i({id:`_TDESN`,values:{kind:t,createdPath:n}}))}r&&(K(null),vn());return}r&&(e.kind===`file`?l(e.createdPath):c([mt(e.createdPath)],{force:!0})),r&&A(t=>{let n=iF(t,e.kind===`file`?[e.createdPath]:[],e.kind===`folder`?e.createdPath:void 0);return On(n),n}),Il([`files`,`backlinks`,`graph`]),a&&(window.location.hash=e.previousHash),r&&K(null)},t[95]=i,t[96]=Rn,t[97]=l,t[98]=c,t[99]=vn,t[100]=zn):zn=t[100];let Bn=zn,Vn,Hn;t[101]===Symbol.for(`react.memo_cache_sentinel`)?(Vn=()=>()=>{let e=De.current;e&&Oe.current(e,{restoreLocation:!1,updateUi:!1}).catch(aZ)},Hn=[],t[101]=Vn,t[102]=Hn):(Vn=t[101],Hn=t[102]),(0,Q.useEffect)(Vn,Hn);let Un;t[103]!==i||t[104]!==xt?(Un=()=>{let e=!0,t=null,n=DY(async function(){t?.abort();let n=new AbortController;t=n,Ge.current+=1;for(let e of We.current.values())e.abort();We.current.clear(),He.current.clear();try{let t=await fetch(zX(``,et.current),{signal:n.signal,headers:OY});if(kY(t)){let r=nt(),i=!1,{entries:a,truncated:o}=await MY(t,{onBatch:t=>{if(!e||n.signal.aborted)return;let a=bl(vl(t),r);a.length!==0&&(A(e=>PY(e,a)),i||(i=!0,F(null),_t(),N(!1)))}});if(!e)return;let s=vl(a),c=bl(s,r);A(e=>FY(e,``,c,Be.current)),F(null),_t(),V(o?a.length:null),U(s.length),Ze.current()}else{let n=await M(t,i({id:`8RtNI0`}));if(!e)return;if(!n.ok)yt(n.title),V(null);else{let e=da.safeParse(n.body);if(!e.success)yt(i({id:`HlmZBk`})),V(null);else{let t=vl(e.data.documents),n=bl(t,nt());A(e=>FY(e,``,n,Be.current)),F(null),_t(),V(e.data.truncated===!0?e.data.documents.length:null),U(t.length),Ze.current()}}}}catch(t){let r=t;if(n.signal.aborted)return;e&&(r instanceof AY?yt(r.message):xt()),console.warn(`[FileTree] fetch failed:`,r)}e&&N(!1)},()=>t?.abort());rt.current=()=>n.request(),n.request();let r=()=>{document.visibilityState===`visible`&&n.request()};window.addEventListener(`focus`,r),window.addEventListener(`visibilitychange`,r);let a=Ll(e=>{e.includes(`files`)&&n.request()});return()=>{e=!1,rt.current=null,n.dispose();for(let e of We.current.values())e.abort();We.current.clear(),window.removeEventListener(`focus`,r),window.removeEventListener(`visibilitychange`,r),a()}},t[103]=i,t[104]=xt,t[105]=Un):Un=t[105];let Wn;t[106]===i?Wn=t[107]:(Wn=[i],t[106]=i,t[107]=Wn),(0,Q.useEffect)(Un,Wn);let Gn=(0,Q.useRef)(!0),Kn;t[108]===Symbol.for(`react.memo_cache_sentinel`)?(Kn=()=>{if(Gn.current){Gn.current=!1;return}rt.current?.()},t[108]=Kn):Kn=t[108];let qn;t[109]!==Vt||t[110]!==Ut||t[111]!==Ht?(qn=[Vt,Ht,Ut],t[109]=Vt,t[110]=Ut,t[111]=Ht,t[112]=qn):qn=t[112],(0,Q.useEffect)(Kn,qn);let Jn,Yn;t[113]===Symbol.for(`react.memo_cache_sentinel`)?(Jn=()=>{let e=!0;return fetch(`/api/workspace`).then(async t=>{let n=await t.json();if(!e||!t.ok)return;let r=W($a,n,`workspace`,null);r&&se({contentDir:r.contentDir,pathSeparator:r.pathSeparator})}).catch(iZ),()=>{e=!1}},Yn=[],t[113]=Jn,t[114]=Yn):(Jn=t[113],Yn=t[114]),(0,Q.useEffect)(Jn,Yn);let Xn;t[115]!==gn||t[116]!==$t||t[117]!==an?(Xn=()=>{if(ke.current===an){ke.current=null;return}$t.resetPaths(on.current,{initialExpandedPaths:gn()})},t[115]=gn,t[116]=$t,t[117]=an,t[118]=Xn):Xn=t[118];let Zn;t[119]!==$t||t[120]!==an?(Zn=[$t,an],t[119]=$t,t[120]=an,t[121]=Zn):Zn=t[121],(0,Q.useEffect)(Xn,Zn),_Y($t,Pt,fn,je,an);let Qn,$n;t[122]!==$t||t[123]!==r?(Qn=()=>{if(!r)return;let e=0,t=0,n=()=>it.current?.querySelector(`file-tree-container`)?.shadowRoot?.querySelector(`[data-file-tree-virtualized-list]`)??null,i=()=>{let e=n();if(!e)return;let t=Number.parseFloat(e.style.height);Number.isFinite(t)&&r(t)},a=()=>{cancelAnimationFrame(e),e=requestAnimationFrame(i)},o=new MutationObserver(i),s=()=>{let e=n();e?(o.observe(e,{attributes:!0,attributeFilter:[`style`]}),i()):t=requestAnimationFrame(s)};s();let c=$t.subscribe(a);return window.addEventListener(`resize`,a),()=>{cancelAnimationFrame(e),cancelAnimationFrame(t),o.disconnect(),c(),window.removeEventListener(`resize`,a)}},$n=[r,$t],t[122]=$t,t[123]=r,t[124]=Qn,t[125]=$n):(Qn=t[124],$n=t[125]),(0,Q.useEffect)(Qn,$n);let er;t[126]===Symbol.for(`react.memo_cache_sentinel`)?(er=()=>{le(!1)},t[126]=er):er=t[126];let tr;t[127]===Nt?tr=t[128]:(tr=[Nt],t[127]=Nt,t[128]=tr),(0,Q.useEffect)(er,tr);let nr,rr;t[129]===ce?(nr=t[130],rr=t[131]):(nr=()=>{ue.current=ce;for(let e of fe.current)e()},rr=[ce],t[129]=ce,t[130]=nr,t[131]=rr),(0,Q.useEffect)(nr,rr);let ir;t[132]!==Pt||t[133]!==j||t[134]!==$t?(ir=()=>{j||!Pt||ZJ($t,Pt)},t[132]=Pt,t[133]=j,t[134]=$t,t[135]=ir):ir=t[135];let ar;t[136]!==fn||t[137]!==Pt||t[138]!==j||t[139]!==$t||t[140]!==an?(ar=[Pt,fn,an,j,$t],t[136]=fn,t[137]=Pt,t[138]=j,t[139]=$t,t[140]=an,t[141]=ar):ar=t[141],(0,Q.useEffect)(ir,ar);let or,sr;t[142]===$t?(or=t[143],sr=t[144]):(or=()=>$t.subscribe(()=>{if(!$t.isSearchOpen())for(let e of Ee.current){let t=mY($t.getItem(e));t&&!t.isExpanded()&&t.expand()}}),sr=[$t],t[142]=$t,t[143]=or,t[144]=sr),(0,Q.useEffect)(or,sr);let cr,lr;t[145]===$t?(cr=t[146],lr=t[147]):(cr=()=>$t.subscribe(()=>Ye.current()),lr=[$t],t[145]=$t,t[146]=cr,t[147]=lr),(0,Q.useEffect)(cr,lr);let ur,dr;t[148]===$t?(ur=t[149],dr=t[150]):(ur=()=>$t.onMutation(`remove`,e=>{let t=De.current;!t||e.path!==t.renamePath||Oe.current(t)}),dr=[$t],t[148]=$t,t[149]=ur,t[150]=dr),(0,Q.useEffect)(ur,dr);let fr;t[151]!==y||t[152]!==u||t[153]!==d||t[154]!==ye||t[155]!==D||t[156]!==T||t[157]!==f||t[158]!==En||t[159]!==g?(fr=async(e,t,n,r,i)=>{let a=t===void 0?[]:t,o=n===void 0?[]:n,s=i===void 0?[]:i,c=r?.docName??be.current,l=new Map,p=new Map;for(let e of pe.current){if(Sl(e)){let t=o.find(t=>t.fromPath===Cd(e.docName,e.docExt))?.toPath;t&&l.set(e.docName,t);continue}if(Nl(e)){let t=o.find(t=>t.fromPath===e.path)?.toPath;t&&hl(t)&&p.set(e.path,ld(t))}}let m=c?l.get(c)??null:null,h=r?.folderPath??(ut.current?.kind===`folder`?ut.current.folderPath:null),_=h?ct(h,a):null,v=r?.assetPath??(ut.current?.kind===`asset`?ut.current.assetPath:null),b=v?p.get(v)??null:null,x=m?null:b??sF(c,e),S=m??(v?b?null:o.find(e=>e.fromPath===v)?.toPath??ct(v,a):null);Ke(e);let C=[...cF(e,d(),f),...l.keys()];await Promise.all(C.map(e=>u(e)));for(let t of e)y(t.toDocName);for(let e of p.values())y(e);g(e,a,o);let w=null;A(t=>{let n=rF(t,e,a,o,s);return w=n,En(t,n,e,o),On(n),n}),h&&_&&_!==h?D(_):x&&x!==c?(T(x),$Y(x)):S&&(m||S!==v)&&ye(S,w??pe.current),Il([`files`,`backlinks`,`graph`])},t[151]=y,t[152]=u,t[153]=d,t[154]=ye,t[155]=D,t[156]=T,t[157]=f,t[158]=En,t[159]=g,t[160]=fr):fr=t[160];let pr=fr;async function mr(e){let t=!e.isFolder&&An(e.sourcePath),n=t?e.sourcePath:md(e.sourcePath,e.isFolder);K(n),F(null);try{let r=gl(e.sourcePath,e.destinationPath,e.isFolder),a=!e.isFolder&&!t&&!hl(r.destinationPath),o=t||a?r.destinationPath:md(r.destinationPath,e.isFolder),s=e.isFolder?{kind:`folder`,fromPath:kd(n),toPath:kd(o)}:t||a?{kind:`asset`,fromPath:n,toPath:o}:{kind:`file`,fromPath:Od(n,pe.current),toPath:o},c={docName:be.current,folderPath:ut.current?.kind===`folder`?ut.current.folderPath:null,assetPath:ut.current?.kind===`asset`?ut.current.assetPath:null},l=await M(await fetch(`/api/rename-path`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(s)}),i({id:`gijbne`}));if(!l.ok){ol.error(l.title),vn();let e=De.current;e&&e.renamePath===n?await Bn(e):Rn(),K(null);return}let u=W(Bo,l.body,`rename-path`,{renamed:[],renamedAssets:[]});try{await pr(u.renamed,e.isFolder?[{fromPath:kd(n),toPath:kd(o)}]:[],u.renamedAssets,c,!e.isFolder&&!t&&!a?u.renamed.flatMap(e=>{let t=_l(o);return t?[{toDocName:e.toDocName,docExt:t}]:[]}):[])}catch(e){console.warn(`[FileTree] post-rename reconciliation failed`,{err:e,sourceTreePath:n,destinationTreePath:o,renamedCount:u.renamed.length,renamedAssetCount:u.renamedAssets.length}),ol.error(i({id:`dDpCOp`}))}Rn(),K(null)}catch(e){console.warn(`[FileTree] rename failed:`,e);let t=i({id:`HIb0vl`});ol.error(t),F(t),vn();let r=De.current;r&&r.renamePath===n?await Bn(r):Rn(),K(null)}}let hr;t[161]!==i||t[162]!==pr||t[163]!==vn?(hr=async function(e){let t=e.draggedPaths.map(t=>{let n=hd(t,e.target);return t===n?null:{sourcePath:t,destinationTreePath:n}}).filter(rZ);if(t.length!==0){K(t[0]?.sourcePath??null),F(null);try{let e=[],n=[],r=[],a={docName:be.current,folderPath:ut.current?.kind===`folder`?ut.current.folderPath:null,assetPath:ut.current?.kind===`asset`?ut.current.assetPath:null};for(let a of t){let t=a.sourcePath.endsWith(`/`),o=!t&&An(a.sourcePath),s=o?null:Od(a.sourcePath,pe.current),c=t?{kind:`folder`,fromPath:kd(a.sourcePath),toPath:kd(a.destinationTreePath)}:o?{kind:`asset`,fromPath:a.sourcePath,toPath:a.destinationTreePath}:{kind:`file`,fromPath:s??ld(a.sourcePath),toPath:s&&hl(s)?a.destinationTreePath:ld(a.destinationTreePath)},l=await M(await fetch(`/api/rename-path`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(c)}),i({id:`dOHMA0`}));if(!l.ok){ol.error(l.title),vn(),K(null);return}let u=W(Bo,l.body,`rename-path:drop`,{renamed:[],renamedAssets:[]});e=e.concat(u.renamed),n=n.concat(u.renamedAssets),t&&r.push({fromPath:kd(a.sourcePath),toPath:kd(a.destinationTreePath)})}try{await pr(e,r,n,a)}catch(r){console.warn(`[FileTree] post-move reconciliation failed`,{err:r,operationCount:t.length,renamedCount:e.length,renamedAssetCount:n.length}),ol.error(i({id:`8OxKZy`}))}K(null)}catch(e){console.warn(`[FileTree] move failed:`,e),ol.error(i({id:`HIb0vl`})),vn(),K(null)}}},t[161]=i,t[162]=pr,t[163]=vn,t[164]=hr):hr=t[164];let gr=hr,_r;t[165]!==i||t[166]!==y||t[167]!==vn?(_r=async function(e,t,n){if(e.length===0||Le.current!==null)return;let r=()=>{Le.current=null,K(null)};Le.current=n,K(n),F(null);let a=[],o=0,s=0;for(let n of e){let e=new FormData;e.append(`file`,n),wd(e,t,n.name||`upload`);try{let r=await M(await fetch(`/api/upload`,{method:`POST`,body:e}),i({id:`4Gz2wC`}));if(!r.ok){s+=1,ol.error(r.title,{description:n.name});continue}let c=W(Xa,r.body,`upload:drop`,null);if(c===null){s+=1,ol.error(i({id:`4Gz2wC`}),{description:n.name});continue}let l=od(t,c);if(c.deduped===!0){s+=1,ol.error(i({id:`4sKwf6`}),{description:l});continue}o+=1;let u=Td(l,n);u&&a.push(u)}catch(e){let t=e;s+=1,console.warn(`[FileTree] external file upload failed:`,t),ol.error(t instanceof TypeError?i({id:`HIb0vl`}):i({id:`4Gz2wC`}),{description:n.name})}}try{if(a.length>0){for(let e of a)Sl(e)&&y(e.docName);A(e=>{let t=new Set(e.map(dd)),n=!1,r=[...e];for(let e of a){let i=dd(e);Be.current.set(i,Date.now()),!t.has(i)&&(t.add(i),r.push(e),n=!0)}return n?(vn(r),On(r),r):e})}o>0&&(Il([`files`,`backlinks`,`graph`]),rt.current?.(),ol.success(ml._({id:`v75Em9`,values:{uploadedCount:o}}),{description:t||i({id:`RSqaSd`})})),s>0&&F(o>0?ml._({id:`yH7T4q`,values:{failedCount:s}}):i({id:`4Gz2wC`})),r()}catch(e){let t=e,n=i({id:`VcqWBy`});console.warn(`[FileTree] upload post-upload reconciliation failed:`,t),ol.error(n),F(n),r()}},t[165]=i,t[166]=y,t[167]=vn,t[168]=_r):_r=t[168];let vr=_r,yr;t[169]===Symbol.for(`react.memo_cache_sentinel`)?(yr=function(e){ae({parentDir:e})},t[169]=yr):yr=t[169];let br=yr,xr;t[170]!==i||t[171]!==y||t[172]!==Bn||t[173]!==Rn||t[174]!==$t||t[175]!==D||t[176]!==T||t[177]!==vn||t[178]!==rn?(xr=async function(e,t,n){if(Le.current)return;let r=De.current;r&&Rn(r);try{let r=bd(e,t,[...rn,...un.current]);K(r.renamePath),Le.current=r.renamePath;let a=window.location.hash,o;if(e===`file`){let e=cd(`file`,r.addPath),t={path:e};n?.template&&(t.template=n.template);let a=await M(await fetch(`/api/create-page`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}),i({id:`fJgQHX`}));if(!a.ok){ol.error(a.title),K(null),Le.current=null;return}let s=ld(e),c=W(Vo,a.body,`create-page`,{docName:s}).docName;o=c;let l={kind:`document`,docName:c,docExt:e.toLowerCase().endsWith(`.mdx`)?`.mdx`:`.md`,modified:new Date().toISOString(),size:0};y(c),A(e=>{if(e.some(e=>Sl(e)&&e.docName===c))return e;let t=[...e,l];return On(t),Be.current.set(dd(l),Date.now()),t}),Il([`files`,`backlinks`,`graph`]),T(c)}else{let e=kd(r.addPath),t=await M(await fetch(`/api/create-folder`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({path:e})}),i({id:`K1ckLX`}));if(!t.ok){ol.error(t.title),K(null),Le.current=null;return}o=W(ha,t.body,`create-folder`,{path:e}).path;let n={kind:`folder`,path:o,modified:new Date().toISOString(),size:0};A(e=>{if(e.some(e=>Ml(e)&&e.path===o))return e;let t=[...e,n];return On(t),Be.current.set(dd(n),Date.now()),t}),Il([`files`]),D(o)}let s=!1,c=e=>{if(e.key!==`Enter`)return;let t=De.current;!t||t.renamePath!==r.renamePath||queueMicrotask(()=>Rn(t))};document.addEventListener(`keydown`,c,!0),De.current={kind:e,renamePath:r.renamePath,createdPath:o,previousHash:a,disposeCommitListener:()=>{s||(s=!0,document.removeEventListener(`keydown`,c,!0))}},K(null),Le.current=null,$t.add(r.addPath),$t.startRenaming(r.renamePath,{removeIfCanceled:!0})}catch(e){console.warn(`[FileTree] create placeholder failed:`,e),ol.error(i({id:`S6l5dv`}));let t=De.current;t?await Bn(t):Rn(),K(null),Le.current=null,vn()}},t[170]=i,t[171]=y,t[172]=Bn,t[173]=Rn,t[174]=$t,t[175]=D,t[176]=T,t[177]=vn,t[178]=rn,t[179]=xr):xr=t[179];let Sr=xr,Cr;t[180]===$t?Cr=t[181]:(Cr=function(e){let t=xd(e);(0,Q.startTransition)(()=>{for(let e of un.current)if(e===t||e.startsWith(t)){let t=mY($t.getItem(e));t&&t.expand()}})},t[180]=$t,t[181]=Cr);let wr=Cr,Tr;t[182]===$t?Tr=t[183]:(Tr=function(e){let t=xd(e),n=new Set(Ee.current);(0,Q.startTransition)(()=>{for(let e of[...un.current].reverse())if((e===t||e.startsWith(t))&&!n.has(e)){let t=mY($t.getItem(e));t&&t.collapse()}})},t[182]=$t,t[183]=Tr);let Er=Tr,Dr;t[184]===Symbol.for(`react.memo_cache_sentinel`)?(Dr=function(){return((it.current?.querySelector(`file-tree-container`)?.shadowRoot)?.querySelector(`[aria-selected="true"][data-item-path]`))?.dataset.itemPath??null},t[184]=Dr):Dr=t[184];let Or=Dr,kr;t[185]!==_e||t[186]!==dn||t[187]!==o||t[188]!==s||t[189]!==Se||t[190]!==G||t[191]!==Bn||t[192]!==Sn||t[193]!==k||t[194]!==ln||t[195]!==gr||t[196]!==mr||t[197]!==tn||t[198]!==b||t[199]!==In||t[200]!==wn||t[201]!==Vt||t[202]!==Ut||t[203]!==Ht||t[204]!==rn||t[205]!==vr?(kr=()=>{pe.current=k,me.current=b,be.current=o,ut.current=s,Ce.current=Se,Le.current=G,Qe.current=Vt,$e.current=Ht,et.current=Ut,on.current=rn,un.current=ln,Ee.current=dn,Ye.current=Sn,Ze.current=wn,Oe.current=Bn,Ie.current=(e,t,n)=>{vr(e,t,n)},at.current=e=>{if(je.current||Me.current||e.length!==1)return;let t=e[0];if(t){le(!1);let e=tn(t),n=he.current,r=n!==null&&ld(n)===ld(e),i=r?n:e;he.current=null,queueMicrotask(()=>{_e(tn((r?null:Or())??i),pe.current)})}},st.current=e=>{In(e)||ol.error(e)},ot.current=mr,lt.current=gr},t[185]=_e,t[186]=dn,t[187]=o,t[188]=s,t[189]=Se,t[190]=G,t[191]=Bn,t[192]=Sn,t[193]=k,t[194]=ln,t[195]=gr,t[196]=mr,t[197]=tn,t[198]=b,t[199]=In,t[200]=wn,t[201]=Vt,t[202]=Ut,t[203]=Ht,t[204]=rn,t[205]=vr,t[206]=kr):kr=t[206],(0,Q.useLayoutEffect)(kr);let Ar,jr;t[207]===$t?(Ar=t[208],jr=t[209]):(Ar=()=>{let e=e=>{let t=(e.metaKey||e.ctrlKey)&&!e.altKey,n=e.key.toLowerCase(),r=t&&n===`a`,i=t&&!e.shiftKey&&n===`d`,a=t&&!e.shiftKey&&n===`c`,o=t&&!e.shiftKey&&n===`v`,s=!e.altKey&&!e.shiftKey&&(e.metaKey&&!e.ctrlKey&&n===`backspace`||!e.metaKey&&!e.ctrlKey&&n===`delete`);if(!r&&!i&&!a&&!o&&!s||MX(e.target))return;let c=it.current,l=e.target,u=document.activeElement,d=l instanceof Node&&c?.contains(l),f=u instanceof Node&&c?.contains(u);if(!d&&!f)return;if(a){let t=kX($t,pe.current,Ce.current);if(!t)return;Re.current=t,e.preventDefault(),e.stopPropagation();return}if(o){let t=Re.current;if(!t)return;Nn.current(t),e.preventDefault(),e.stopPropagation();return}if(i){let t=kX($t,pe.current,Ce.current);if(!t)return;Nn.current(t),e.preventDefault(),e.stopPropagation();return}if(s){if(Le.current!==null)return;let t=AX($t,pe.current);if(t.length===0)return;ee({targets:t}),e.preventDefault(),e.stopPropagation();return}let p=new Set([...un.current,...on.current]);je.current=!0;for(let e of p)e&&$t.getItem(e)?.select();queueMicrotask(()=>{je.current=!1}),e.preventDefault(),e.stopPropagation()};return document.addEventListener(`keydown`,e,!0),()=>document.removeEventListener(`keydown`,e,!0)},jr=[$t],t[207]=$t,t[208]=Ar,t[209]=jr),(0,Q.useEffect)(Ar,jr);let Mr,Nr;t[210]!==k.length||t[211]!==j?(Mr=()=>{if(j||k.length===0)return;let e=it.current?.querySelector(uz)?.shadowRoot;if(!e)return;let t=nZ,n=()=>{for(let n of e.querySelectorAll(`[data-item-path]`)){let e=n.dataset.itemPath;if(!e)continue;let r=t(e);n.title!==r&&(n.title=r)}let n=e.querySelector(`[data-type="context-menu-anchor"]`);if(n){let r=e.querySelector(`[data-item-context-hover="true"][data-item-path]`)?.dataset.itemPath,i=r?t(r):``;n.title!==i&&(n.title=i)}};n();let r=new MutationObserver(n);return r.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-item-path`,`data-item-context-hover`]}),()=>r.disconnect()},Nr=[j,k.length],t[210]=k.length,t[211]=j,t[212]=Mr,t[213]=Nr):(Mr=t[212],Nr=t[213]),(0,Q.useEffect)(Mr,Nr);let Pr,Fr;t[214]!==k.length||t[215]!==j?(Pr=()=>{if(j||k.length===0)return;let e=it.current?.querySelector(uz)?.shadowRoot;if(!e)return;let t=()=>OJ(e);t();let n=new MutationObserver(t);return n.observe(e,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:[`data-item-path`]}),()=>n.disconnect()},Fr=[j,k.length],t[214]=k.length,t[215]=j,t[216]=Pr,t[217]=Fr):(Pr=t[216],Fr=t[217]),(0,Q.useEffect)(Pr,Fr);let Ir,Lr;t[218]!==k.length||t[219]!==j?(Ir=()=>{if(j||k.length===0)return;let e=it.current?.querySelector(uz)?.shadowRoot;if(!e)return;let t=()=>KJ(e);t();let n=new MutationObserver(t);return n.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-item-path`]}),()=>n.disconnect()},Lr=[j,k.length],t[218]=k.length,t[219]=j,t[220]=Ir,t[221]=Lr):(Ir=t[220],Lr=t[221]),(0,Q.useEffect)(Ir,Lr);let Rr;t[222]===Symbol.for(`react.memo_cache_sentinel`)?(Rr={folderCount:0,expandedCount:0},t[222]=Rr):Rr=t[222];let zr=(0,Q.useRef)(Rr),Br=(0,Q.useRef)(Sr),Vr=(0,Q.useRef)(br),Hr;t[223]===Sr?Hr=t[224]:(Hr=()=>{Br.current=Sr,Vr.current=br},t[223]=Sr,t[224]=Hr),(0,Q.useEffect)(Hr);let Ur,Wr;t[225]===$t?(Ur=t[226],Wr=t[227]):(Ur=()=>({startCreating(e,t){Br.current(e,t)},startCreatingFromTemplate(e){Vr.current(e)},createFromTemplate(e,t){Br.current(`file`,e,{template:t})},expandAll(){(0,Q.startTransition)(()=>{for(let e of un.current){let t=mY($t.getItem(e));t&&t.expand()}})},collapseAll(){let e=new Set(Ee.current);(0,Q.startTransition)(()=>{for(let t of[...un.current].reverse()){if(e.has(t))continue;let n=mY($t.getItem(t));n&&n.collapse()}})},getFolderState(){let e=un.current,t=0;for(let n of e)mY($t.getItem(n))?.isExpanded()&&t++;let n=e.length,r=zr.current;if(r.folderCount===n&&r.expandedCount===t)return r;let i={folderCount:n,expandedCount:t};return zr.current=i,i},isCreationTargetCleared(){return ue.current},clearCreationTarget(){le(!0)},subscribe(e){fe.current.add(e);let t=$t.subscribe(e);return()=>{fe.current.delete(e),t()}}}),Wr=[$t],t[225]=$t,t[226]=Ur,t[227]=Wr),(0,Q.useImperativeHandle)(n,Ur,Wr);let Gr;t[228]!==Rn||t[229]!==u||t[230]!==c||t[231]!==$t?(Gr=async function(e,t,n){let r=NX(e,pe.current,un.current),i=De.current;i&&e.some(e=>PX(e,i))&&(i.kind===`file`?r.docNames.add(i.createdPath):r.folderPaths.add(i.createdPath),Rn(i));let a=new Set([...r.docNames,...t]),o=new Set([...r.folderPaths,...n]),s=new Set([...r.assetPaths,...e.filter(tZ).map(eZ)]);c([...[...a].map($X),...[...o].map(QX),...[...s].map(ZX)],{force:!0}),await Promise.all([...a].map(e=>u(e)));for(let t of e){let e=t.kind===`folder`?xd(t.path):t.kind===`asset`?t.path:Cd(t.path,t.docExt);$t.getItem(e)&&$t.remove(e,t.kind===`folder`?{recursive:!0}:void 0)}A(e=>{let t=iF(e,[...a],void 0,[...s]);for(let e of o)t=iF(t,[],e);return On(t),t}),Il([`files`,`backlinks`,`graph`])},t[228]=Rn,t[229]=u,t[230]=c,t[231]=$t,t[232]=Gr):Gr=t[232];let Kr=Gr,qr;t[233]!==i||t[234]!==Kr?(qr=async function(e){let t=[],n=[],r=[];for(let a of e){let e=a.kind;K(a.path);let o=await M(await fetch(`/api/delete-path`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({kind:e,path:a.path})}),i({id:`7JtSLi`}));if(!o.ok)return r.length>0&&await Kr(r,t,n),ol.error(o.title),!1;let s=W(ba,o.body,`delete-path`,{deletedDocNames:[]});t.push(...s.deletedDocNames),e===`folder`&&n.push(a.path),r.push(a)}return await Kr(r,t,n),!0},t[233]=i,t[234]=Kr,t[235]=qr):qr=t[235];let Jr=qr,Yr;t[236]===Symbol.for(`react.memo_cache_sentinel`)?(Yr=async function(e,t,n){let r=[],i=[];for(let a of e){K(a.path);let e=lF(a,n),o=await t.shell.trashItem(e);o.ok?r.push(a):i.push({kind:a.kind,path:a.path,name:a.name,reason:sY(o.reason),detail:o.detail})}return{trashed:r,failed:i}},t[236]=Yr):Yr=t[236];let Xr=Yr,Zr;t[237]===i?Zr=t[238]:(Zr=async function(e){let t=[],n=[],r=[];for(let a of e){let e=a.kind;try{let o=await M(await fetch(`/api/trash/cleanup`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({kind:e,path:a.path})}),i({id:`DVh_Tb`}));if(!o.ok){console.warn(`[FileTree] trash-cleanup failed`,{target:`${a.kind}:${a.path}`,reason:o.title}),r.push({target:a,reason:o.title});continue}let s=W(Fa,o.body,`trash-cleanup`,{deletedDocNames:[]});t.push(...s.deletedDocNames),e===`folder`&&n.push(a.path)}catch(e){let t=e;console.warn(`[FileTree] trash-cleanup threw`,{target:`${a.kind}:${a.path}`,err:t}),r.push({target:a,reason:i({id:`r4R7AZ`})})}}if(r.length>0){let e=r.length;ol.error(i({id:`IrB5AK`,values:{failedCount:e}}),{description:i({id:`vEJDlt`})})}return r.length===e.length&&e.length>0?null:{deletedDocNames:t,deletedFolderPaths:n}},t[237]=i,t[238]=Zr);let Qr=Zr,$r;t[239]!==i||t[240]!==re||t[241]!==Kr||t[242]!==Jr||t[243]!==Qr||t[244]!==vn||t[245]!==oe?($r=async function(e){let t=e.filter(XX).map(e=>aF(e,pe.current)),n=t[0];if(!n)return;let r=re.filter(e=>t.some(t=>{if(t.kind===`file`){let n=`${t.path}${t.docExt??`.md`}`;return e.file===n}return t.kind===`folder`?e.file.startsWith(`${t.path}/`):!1}));if(r.length>0){let e=r.slice(0,3).map(YX),t=r.length>e.length?`, +${r.length-e.length} more`:``;ol.error(`Cannot delete files with unresolved conflicts`,{description:`Resolve the conflict on ${e.join(`, `)}${t} before deleting.`});return}K(n.path),ee(null);let a=typeof window<`u`?window.okDesktop:void 0;try{if(a&&oe){let{trashed:e,failed:n}=await Xr(t,a,oe);if(e.length>0){let t=await Qr(e);t?await Kr(e,t.deletedDocNames,t.deletedFolderPaths):await Kr(e,e.filter(JX).map(qX),e.filter(KX).map(GX))}n.length>0&&ne({failed:n,originalTargets:[...t]}),K(null)}else{let e=await Jr(t);K(null),e||vn()}}catch(e){let t=e,n=t instanceof Error?t.message:String(t);console.warn(`[FileTree] delete failed:`,t),ol.error(i({id:`0eHrMb`}),{description:n}),K(null),vn()}},t[239]=i,t[240]=re,t[241]=Kr,t[242]=Jr,t[243]=Qr,t[244]=vn,t[245]=oe,t[246]=$r):$r=t[246];let ei=$r,ti;t[247]!==i||t[248]!==Jr||t[249]!==vn||t[250]!==te?(ti=async function(){if(!te)return;let e=new Set(te.failed.map(WX)),t=te.originalTargets.filter(t=>e.has(`${t.kind}:${t.path}`));if(ne(null),t.length!==0){K(t[0]?.path??null);try{let e=await Jr(t);K(null),e||vn()}catch(e){let t=e,n=t instanceof Error?t.message:String(t);console.warn(`[FileTree] hard-delete fallback failed:`,t),ol.error(i({id:`0eHrMb`}),{description:n}),K(null),vn()}}},t[247]=i,t[248]=Jr,t[249]=vn,t[250]=te,t[251]=ti):ti=t[251];let ni=ti,ri;t[252]!==ei||t[253]!==te?(ri=async function(){if(!te)return;let e=new Set(te.failed.map(UX)),t=te.originalTargets.filter(t=>e.has(`${t.kind}:${t.path}`));ne(null),await ei(t)},t[252]=ei,t[253]=te,t[254]=ri):ri=t[254];let ii=ri,ai=(0,Q.useRef)(ei),oi;t[255]===ei?oi=t[256]:(oi=()=>{ai.current=ei},t[255]=ei,t[256]=oi),(0,Q.useEffect)(oi);let si,ci;t[257]===Symbol.for(`react.memo_cache_sentinel`)?(si=()=>SY(e=>{if(e.kind===`doc`||e.kind===`folder-index`){let t=e.docName,n=pe.current.find(e=>Sl(e)&&e.docName===t);ai.current([{kind:`file`,path:t,name:t.split(`/`).pop()??t,docExt:n?.docExt}]);return}if(e.kind===`folder`){ai.current([{kind:`folder`,path:e.folderPath,name:e.folderPath.split(`/`).pop()??e.folderPath}]);return}if(e.kind===`asset`){ai.current([{kind:`asset`,path:e.assetPath,name:e.assetPath.split(`/`).pop()??e.assetPath}]);return}console.warn(JSON.stringify({event:`file-tree-menu-action-delete-unsupported-kind`,kind:e.kind}))}),ci=[],t[257]=si,t[258]=ci):(si=t[257],ci=t[258]),(0,Q.useEffect)(si,ci);let li,ui;t[259]===Symbol.for(`react.memo_cache_sentinel`)?(li=()=>EY(e=>{if(e.kind===`doc`||e.kind===`folder-index`){let t=e.docName,n=pe.current.find(e=>Sl(e)&&e.docName===t);Nn.current({kind:`file`,path:t,name:t.split(`/`).pop()??t,docExt:n?.docExt});return}if(e.kind===`folder`){Nn.current({kind:`folder`,path:e.folderPath,name:e.folderPath.split(`/`).pop()??e.folderPath});return}console.warn(JSON.stringify({event:`file-tree-menu-action-duplicate-unsupported-kind`,kind:e.kind}))}),ui=[],t[259]=li,t[260]=ui):(li=t[259],ui=t[260]),(0,Q.useEffect)(li,ui);let di,fi;t[261]===$t?(di=t[262],fi=t[263]):(di=()=>wY(e=>{if(e.kind===`doc`||e.kind===`folder-index`){let t=e.docName,n=Cd(t,pe.current.find(e=>Sl(e)&&e.docName===t)?.docExt);$t.startRenaming(n);return}if(e.kind===`folder`){$t.startRenaming(e.folderPath);return}if(e.kind===`asset`){$t.startRenaming(e.assetPath);return}console.warn(JSON.stringify({event:`file-tree-menu-action-rename-unsupported-kind`,kind:e.kind}))}),fi=[$t],t[261]=$t,t[262]=di,t[263]=fi),(0,Q.useEffect)(di,fi);let pi;t[264]===Symbol.for(`react.memo_cache_sentinel`)?(pi=function(){let e=Ae.current;e&&YY(e),Ae.current=null},t[264]=pi):pi=t[264];let mi=pi,hi;t[265]===Symbol.for(`react.memo_cache_sentinel`)?(hi=function(e){let t=CX(e);if(!t)return!1;let n=it.current?.querySelector(uz)?.shadowRoot;if(!n)return!1;for(let e of n.querySelectorAll(`[data-item-path]`))if(e.dataset.itemPath===t)return!0;return!1},t[265]=hi):hi=t[265];let gi=hi,_i;t[266]===h?_i=t[267]:(_i=function(e){let t=gZ(e.nativeEvent);if(!t||t.endsWith(`/`)){mi();return}let n=pe.current.find(e=>dd(e)===t);if(n&&Nl(n)){mi();return}let r=n&&Sl(n)?n.docName:Od(t,pe.current);if(n&&Sl(n)&&ua(n.size)){mi();return}Ae.current!==r&&(mi(),Ae.current=r,JY(r,e=>h(e)))},t[266]=h,t[267]=_i);let vi=_i,yi;t[268]!==_e||t[269]!==$t||t[270]!==D||t[271]!==T?(yi=function(e){if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=_Z(e.nativeEvent);if(!t){bZ(e.nativeEvent)&&le(!0);return}let n=t.getAttribute(`aria-selected`)===`true`,r=t.dataset.itemPath;if(!r)return;let i=t.dataset.itemType===`folder`?xd(r):r;if(t.dataset.itemType===`folder`){let t=kd(i),r=mY($t.getItem(i));if(!n){e.preventDefault(),e.stopPropagation(),r&&!r.isExpanded()&&r.expand(),queueMicrotask(()=>D(t));return}if($t.getSelectedPaths().length!==1||window.location.hash===Gl(t))return;e.preventDefault(),e.stopPropagation(),r&&!r.isExpanded()&&r.expand(),queueMicrotask(()=>D(t));return}if(!n){if(wX(i,on.current)||gi(i)){he.current=i,setTimeout(()=>T(i,void 0,{registerPage:!0}),0);return}queueMicrotask(()=>_e(i));return}let a=Od(i,pe.current);$t.getSelectedPaths().length===1&&window.location.hash!==$l(a)&&queueMicrotask(()=>_e(i))},t[268]=_e,t[269]=$t,t[270]=D,t[271]=T,t[272]=yi):yi=t[272];let bi=yi,xi;t[273]===Symbol.for(`react.memo_cache_sentinel`)?(xi=function(e){vd(e.nativeEvent)&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect=`copy`,ft(!0))},t[273]=xi):xi=t[273];let Si=xi,Ci;t[274]===Symbol.for(`react.memo_cache_sentinel`)?(Ci=function(e){let t=e.relatedTarget;t instanceof Node&&e.currentTarget.contains(t)||ft(!1)},t[274]=Ci):Ci=t[274];let wi=Ci,Ei;t[275]===vr?Ei=t[276]:(Ei=function(e){if(!vd(e.nativeEvent))return;let t=fd(e.nativeEvent);t.length!==0&&(e.preventDefault(),e.stopPropagation(),ft(!1),vr(t,``,mX))},t[275]=vr,t[276]=Ei);let Di=Ei;if(j){let e;return t[277]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(SZ,{}),t[277]=e):e=t[277],e}let Oi;t[278]!==i||t[279]!==I||t[280]!==R?(Oi=I?i(R?{id:`H-vDm3`}:{id:`09Tv5j`}):null,t[278]=i,t[279]=I,t[280]=R,t[281]=Oi):Oi=t[281];let ki=Oi;if(k.length===0){if(ki!==null){let e;return t[282]===ki?e=t[283]:(e=(0,Z.jsx)(`div`,{className:`flex flex-1 items-center justify-center py-8`,children:(0,Z.jsx)(`span`,{role:`status`,className:`select-none text-sidebar-foreground/50 text-sm`,children:ki})}),t[282]=ki,t[283]=e),e}if(P){let e;return t[284]===P?e=t[285]:(e=(0,Z.jsx)(`div`,{className:`flex flex-1 items-center justify-center py-8`,children:(0,Z.jsx)(`span`,{role:`alert`,className:`select-none text-sidebar-foreground/50 text-sm`,children:P})}),t[284]=P,t[285]=e),e}if(wl({visibility:{showHiddenFiles:Vt,showOnlyMarkdownFiles:Ht},unfilteredRootEntryCount:H,knownPageCount:x.size})===`filtered-to-zero`){let e;return t[286]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(vJ,{}),t[286]=e):e=t[286],e}let e;t[287]===i?e=t[288]:(e=i({id:`5ZB7XC`}),t[287]=i,t[288]=e);let n=dt&&`bg-primary/5 ring-2 ring-primary/70 ring-inset`,r;t[289]===n?r=t[290]:(r=X(`flex flex-1 flex-col items-center justify-center gap-3 rounded-md py-8`,n),t[289]=n,t[290]=r);let a;t[291]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(`span`,{className:`select-none text-sidebar-foreground/30 text-sm`,children:(0,Z.jsx)(J,{id:`xiv-dW`})}),t[291]=a):a=t[291];let o;t[292]===Sr?o=t[293]:(o=()=>Sr(`file`,``),t[292]=Sr,t[293]=o);let s;t[294]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(J,{id:`6ibbCg`}),t[294]=s):s=t[294];let c;t[295]===o?c=t[296]:(c=(0,Z.jsx)(Y,{variant:`link`,size:`sm`,className:`font-mono uppercase`,onClick:o,children:s}),t[295]=o,t[296]=c);let l;return t[297]!==Di||t[298]!==e||t[299]!==r||t[300]!==c?(l=(0,Z.jsxs)(`section`,{"aria-label":e,className:r,onDragOver:Si,onDragLeave:wi,onDrop:Di,children:[a,c]}),t[297]=Di,t[298]=e,t[299]=r,t[300]=c,t[301]=l):l=t[301],l}let Ai=G!==null,ji=q?.targets[0]??null,Mi=null;if(B!==null){let e;if(t[302]!==a.locale||t[303]!==B){let n=new Intl.NumberFormat(a.locale).format(B);e=ml._({id:`LuoJWu`,values:{truncatedShownCount:B,formattedCount:n}}),t[302]=a.locale,t[303]=B,t[304]=e}else e=t[304];Mi=e}let Ni;t[305]!==P||t[306]!==ki||t[307]!==Mi?(Ni=(P||ki!==null||Mi!==null)&&(0,Z.jsxs)(Z.Fragment,{children:[ki===null?P&&(0,Z.jsx)(wZ,{kind:`error`,children:P}):(0,Z.jsx)(wZ,{kind:`reconnecting`,children:ki}),Mi!==null&&(0,Z.jsx)(wZ,{kind:`info`,children:Mi})]}),t[305]=P,t[306]=ki,t[307]=Mi,t[308]=Ni):Ni=t[308];let Pi;t[309]===v?Pi=t[310]:(Pi=CJ(v),t[309]=v,t[310]=Pi);let Fi=ce?``:void 0,Ii;t[311]===Fi?Ii=t[312]:(Ii={[_X]:Fi},t[311]=Fi,t[312]=Ii);let Li;t[313]!==Ai||t[314]!==Se||t[315]!==Er||t[316]!==k||t[317]!==wr||t[318]!==ln||t[319]!==Mn||t[320]!==Rt||t[321]!==$t||t[322]!==zt||t[323]!==Sr||t[324]!==oe?(Li=(e,t)=>(0,Z.jsx)(FX,{item:e,context:t,anyActionBusy:Ai,workspace:oe,handoff:Rt,model:$t,okignoreBinding:zt,onStartCreating:Sr,onCreateFromTemplate:(e,t)=>Sr(`file`,e,{template:t}),onDuplicate:Mn,onDelete:e=>ee({targets:e}),onExpandSubtree:wr,onCollapseSubtree:Er,folderTreePaths:ln,isAsset:Se.has(e.path),documents:k}),t[313]=Ai,t[314]=Se,t[315]=Er,t[316]=k,t[317]=wr,t[318]=ln,t[319]=Mn,t[320]=Rt,t[321]=$t,t[322]=zt,t[323]=Sr,t[324]=oe,t[325]=Li):Li=t[325];let Ri;t[326]!==bi||t[327]!==vi||t[328]!==$t||t[329]!==Ni||t[330]!==Pi||t[331]!==Ii||t[332]!==Li?(Ri=(0,Z.jsx)(`div`,{ref:it,className:`flex min-h-0 flex-1 flex-col`,children:(0,Z.jsx)(gJ,{header:Ni,model:$t,style:Pi,...Ii,onClickCapture:bi,onMouseMove:vi,onMouseLeave:mi,renderContextMenu:Li})}),t[326]=bi,t[327]=vi,t[328]=$t,t[329]=Ni,t[330]=Pi,t[331]=Ii,t[332]=Li,t[333]=Ri):Ri=t[333];let zi=!!q,Bi;t[334]===G?Bi=t[335]:(Bi=e=>{!e&&!G&&ee(null)},t[334]=G,t[335]=Bi);let Vi;t[336]!==i||t[337]!==G||t[338]!==q||t[339]!==ei||t[340]!==ji?(Vi=q&&ji&&(0,Z.jsx)(Qs,{...(()=>{let e=rY(typeof window<`u`&&window.okDesktop!=null?`electron`:`web`,q.targets);if(e)return{customTitle:e.title,customDescription:``,customDetail:e.detail,customConfirmLabel:e.confirmLabel,customConfirmLabelBusy:e.confirmLabelBusy,children:e.listedTargets?(0,Z.jsx)(`ul`,{className:`flex flex-col gap-1 font-mono text-foreground text-xs`,children:e.listedTargets.map(HX)}):null};let t=q.targets.length,n=ji.name;return{itemName:t===1?ji.kind===`folder`?`${ji.name}/`:ji.kind===`file`?`${ji.name}${ji.docExt??`.md`}`:ji.name:void 0,customTitle:t>1?i({id:`abiHje`}):void 0,customDescription:t>1?i({id:`WMIKXK`,values:{targetCount:t}}):ji.kind===`folder`?i({id:`a5W0q0`,values:{folderName:n}}):void 0}})(),isSubmitting:G!==null,onDelete:()=>ei(q.targets)}),t[336]=i,t[337]=G,t[338]=q,t[339]=ei,t[340]=ji,t[341]=Vi):Vi=t[341];let Hi;t[342]!==zi||t[343]!==Bi||t[344]!==Vi?(Hi=(0,Z.jsx)(Fn,{open:zi,onOpenChange:Bi,children:Vi}),t[342]=zi,t[343]=Bi,t[344]=Vi,t[345]=Hi):Hi=t[345];let Ui=!!te,Wi;t[346]===G?Wi=t[347]:(Wi=e=>{!e&&!G&&ne(null)},t[346]=G,t[347]=Wi);let Gi;t[348]!==G||t[349]!==ni||t[350]!==ii||t[351]!==te?(Gi=te&&(0,Z.jsx)(dY,{failedTargets:te.failed,isSubmitting:G!==null,onDeletePermanently:ni,onRetry:ii,onCancel:()=>ne(null)}),t[348]=G,t[349]=ni,t[350]=ii,t[351]=te,t[352]=Gi):Gi=t[352];let Ki;t[353]!==Ui||t[354]!==Wi||t[355]!==Gi?(Ki=(0,Z.jsx)(Fn,{open:Ui,onOpenChange:Wi,children:Gi}),t[353]=Ui,t[354]=Wi,t[355]=Gi,t[356]=Ki):Ki=t[356];let qi=ie!==null,Ji;t[357]===Symbol.for(`react.memo_cache_sentinel`)?(Ji=e=>{e||ae(null)},t[357]=Ji):Ji=t[357];let Yi=ie?.parentDir??``,Xi;t[358]!==qi||t[359]!==Yi?(Xi=(0,Z.jsx)(jg,{open:qi,onOpenChange:Ji,kind:`file`,initialDir:Yi,defaultToTemplate:!0}),t[358]=qi,t[359]=Yi,t[360]=Xi):Xi=t[360];let Zi;return t[361]!==Ri||t[362]!==Hi||t[363]!==Ki||t[364]!==Xi?(Zi=(0,Z.jsxs)(Z.Fragment,{children:[Ri,Hi,Ki,Xi]}),t[361]=Ri,t[362]=Hi,t[363]=Ki,t[364]=Xi,t[365]=Zi):Zi=t[365],Zi}function HX(e){return(0,Z.jsx)(`li`,{"data-testid":`delete-target-row`,children:iY(e)},`${e.kind}:${e.path}`)}function UX(e){return`${e.kind}:${e.path}`}function WX(e){return`${e.kind}:${e.path}`}function GX(e){return e.path}function KX(e){return e.kind===`folder`}function qX(e){return e.path}function JX(e){return e.kind===`file`}function YX(e){return e.file}function XX(e){return!jl(e.path)}function ZX(e){return V(e)}function QX(e){return mt(e)}function $X(e){return o(e)}function eZ(e){return e.path}function tZ(e){return e.kind===`asset`}function nZ(e){return e.endsWith(`/`)?e.slice(0,-1):e}function rZ(e){return!!e}function iZ(e){console.warn(`[FileTree] /api/workspace fetch failed:`,e)}function aZ(e){console.warn(`[FileTree] unmount cleanup failed:`,e)}function oZ(e){ol.error(e)}function sZ(){}function cZ(e){return ol.error(e)}function lZ(){}function uZ(){}function dZ(){}function fZ(){}function pZ(){}async function mZ(){}function hZ(e){return dd(e)}function gZ(e){return _Z(e)?.dataset.itemPath??null}function _Z(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&t.dataset.itemPath)return t;return null}function vZ(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&t.matches(`[data-file-tree-virtualized-root]`))return t;return null}function yZ(e){let t=_Z(e);if(t){let e=t.dataset.itemPath;if(!e)return null;let n=t.dataset.itemType===`folder`,r=pd(e,n);return{parentDir:r,row:t,root:null,busyPath:n?xd(r):e}}return bZ(e)?{parentDir:``,row:null,root:vZ(e),busyPath:mX}:null}function bZ(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&t.matches(`[data-file-tree-virtualized-scroll]`))return!0;return!1}var xZ=[`w-3/4`,`w-2/3`,`w-4/5`,`w-1/2`,`w-3/5`,`w-2/3`];function SZ(){let e=(0,$.c)(5),{_:t}=kt(),n;e[0]===t?n=e[1]:(n=t({id:`5Tk8Fb`}),e[0]=t,e[1]=n);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=xZ.map(CZ),e[2]=r):r=e[2];let i;return e[3]===n?i=e[4]:(i=(0,Z.jsx)(`div`,{className:`flex flex-1 flex-col gap-1 px-2 py-2`,role:`status`,"aria-busy":`true`,"aria-label":n,children:r}),e[3]=n,e[4]=i),i}function CZ(e,t){return(0,Z.jsxs)(`div`,{className:`flex h-6 items-center gap-2`,children:[(0,Z.jsx)(iu,{className:`h-3 w-3 shrink-0 rounded-sm`}),(0,Z.jsx)(iu,{className:`h-3 ${e}`})]},t)}function wZ(e){let t=(0,$.c)(14),{kind:n,children:r}=e,i=n===`error`?Rc:n===`reconnecting`?Ic:Nc,a=n===`error`?`alert`:`status`,o=n===`error`?`text-destructive`:`text-muted-foreground`,s;t[0]===o?s=t[1]:(s=X(`mx-2 mb-1 flex items-start gap-1.5 rounded-md bg-muted/50 px-2 py-1.5 text-xs leading-snug`,o),t[0]=o,t[1]=s);let c=n===`reconnecting`&&`animate-spin motion-reduce:animate-none`,l;t[2]===c?l=t[3]:(l=X(`mt-0.5 size-3.5 shrink-0`,c),t[2]=c,t[3]=l);let u;t[4]!==i||t[5]!==l?(u=(0,Z.jsx)(i,{"aria-hidden":`true`,className:l}),t[4]=i,t[5]=l,t[6]=u):u=t[6];let d;t[7]===r?d=t[8]:(d=(0,Z.jsx)(`span`,{className:`min-w-0`,children:r}),t[7]=r,t[8]=d);let f;return t[9]!==a||t[10]!==s||t[11]!==u||t[12]!==d?(f=(0,Z.jsxs)(`span`,{role:a,className:s,children:[u,d]}),t[9]=a,t[10]=s,t[11]=u,t[12]=d,t[13]=f):f=t[13],f}function TZ(e){return e?ml._({id:`wTcjov`}):null}function EZ(e){let t=(0,$.c)(23),{_:n}=kt(),r=fc(),i=Ws();if(r)return null;let{input:a,installStates:o,dispatch:s}=e,c=a===null,l,u,d,f,p,m;if(t[0]!==n||t[1]!==s||t[2]!==a||t[3]!==c||t[4]!==o||t[5]!==i){m=Symbol.for(`react.early_return_sentinel`);bb0:{let e=TZ(c),r;t[12]===o?r=t[13]:(r=e=>o[e.id]?.installed===!0,t[12]=o,t[13]=r);let h=zs.filter(r),g=h.length>0,_=i!==null;if(!g&&!_){m=null;break bb0}let v=i?Ys(i.installedClis):[];u=vF,t[14]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Z.jsxs)(xF,{children:[(0,Z.jsx)(lc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`O7_W_a`})]}),t[14]=p):p=t[14],l=SF,d=_?(0,Z.jsxs)(_F,{"aria-label":n({id:`ALhMYW`}),children:[(0,Z.jsx)(wF,{children:(0,Z.jsx)(J,{id:`ALhMYW`})}),v.map(t=>{let{displayName:r}=Ua[t];return(0,Z.jsxs)(bF,{onSelect:()=>{a!==null&&i.launchInTerminal(a,t)},disabled:c,"data-testid":`empty-space-open-in-terminal-${t}`,"aria-label":n(e?{id:`AIn2Yv`,values:{displayName:r,hint:e}}:{id:`QYfQdv`,values:{displayName:r}}),children:[(0,Z.jsx)(Gs,{id:Us(t),"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`flex-1`,children:r}),e?(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t)})]}):null,f=g?(0,Z.jsxs)(Z.Fragment,{children:[_?(0,Z.jsx)(TF,{}):null,(0,Z.jsxs)(_F,{"aria-label":n({id:`BBqGS9`}),children:[(0,Z.jsx)(wF,{children:(0,Z.jsx)(J,{id:`BBqGS9`})}),h.map(t=>{let r=!c,{displayName:i}=t,o=n(e?{id:`1ZpfyB`,values:{displayName:i,hint:e}}:{id:`WqLq6M`,values:{displayName:i}});return(0,Z.jsxs)(bF,{disabled:!r,onSelect:()=>{a&&s(t.id,a)},"data-testid":`empty-space-open-in-${t.id}`,"aria-label":o,children:[(0,Z.jsx)(Gs,{id:t.id,"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`flex-1`,children:t.displayName}),e?(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t.id)})]})]}):null}t[0]=n,t[1]=s,t[2]=a,t[3]=c,t[4]=o,t[5]=i,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p,t[11]=m}else l=t[6],u=t[7],d=t[8],f=t[9],p=t[10],m=t[11];if(m!==Symbol.for(`react.early_return_sentinel`))return m;let h;t[15]!==l||t[16]!==d||t[17]!==f?(h=(0,Z.jsxs)(l,{children:[d,f]}),t[15]=l,t[16]=d,t[17]=f,t[18]=h):h=t[18];let g;return t[19]!==u||t[20]!==p||t[21]!==h?(g=(0,Z.jsxs)(u,{children:[p,h]}),t[19]=u,t[20]=p,t[21]=h,t[22]=g):g=t[22],g}async function DZ(e){try{let t=await e.project.listRecent(),n=e.config.projectPath;if(t.some(e=>e.path!==n))return null;let r=await $T();return e.config.freshlyCreated?r:r===0?0:null}catch(e){return console.warn(`[onboarding-card-visible] fresh-project probe failed; suppressing card`,e),null}}function OZ(e){let t=(0,$.c)(4),n=e===void 0?YT:e,{initialized:r,dismissed:i,completed:a}=(0,Q.useSyncExternalStore)(n.subscribe,n.getSnapshot,n.getSnapshot),o=i||a,s=!r&&!o,c,l;return t[0]!==s||t[1]!==n?(c=()=>{if(!s)return;let e=window.okDesktop;if(e==null)return;let t=!1;return DZ(e).then(e=>{!t&&e!==null&&n.activate(e)}),()=>{t=!0}},l=[s,n],t[0]=s,t[1]=n,t[2]=c,t[3]=l):(c=t[2],l=t[3]),(0,Q.useEffect)(c,l),r&&!o}function kZ(e){let t=(0,$.c)(3),n=e===void 0?YT:e,r,i;t[0]===n?(r=t[1],i=t[2]):(r=()=>{if(n.getSnapshot().steps.file)return;let e=Ll(e=>{e.includes(`files`)&&eE(n)});return eE(n),e},i=[n],t[0]=n,t[1]=r,t[2]=i),(0,Q.useEffect)(r,i)}var AZ=3,jZ=5200,MZ=1500,NZ=220;function PZ(e){let t=(0,$.c)(14),{complete:n,label:r,shortcutId:i}=e,a;t[0]===n?a=t[1]:(a=(0,Z.jsx)(hr,{checked:n,disabled:!0,"aria-hidden":!0,tabIndex:-1,className:`pointer-events-none opacity-100 disabled:opacity-100`}),t[0]=n,t[1]=a);let o=n?`flex-1 text-muted-foreground/60`:`flex-1`,s;t[2]===n?s=t[3]:(s=n?(0,Z.jsxs)(`span`,{className:`sr-only`,children:[(0,Z.jsx)(J,{id:`Qj4RL5`}),` `]}):null,t[2]=n,t[3]=s);let c;t[4]!==r||t[5]!==o||t[6]!==s?(c=(0,Z.jsxs)(`span`,{className:o,children:[s,r]}),t[4]=r,t[5]=o,t[6]=s,t[7]=c):c=t[7];let l;t[8]===i?l=t[9]:(l=i?(0,Z.jsx)(Re,{children:au(i)}):null,t[8]=i,t[9]=l);let u;return t[10]!==a||t[11]!==c||t[12]!==l?(u=(0,Z.jsxs)(`li`,{className:`flex items-center gap-2 py-0.5 text-sm`,children:[a,c,l]}),t[10]=a,t[11]=c,t[12]=l,t[13]=u):u=t[13],u}function FZ(e){let t=(0,$.c)(24),{store:n,lingerMs:r}=e,i=n===void 0?YT:n,a=r===void 0?jZ:r,{_:o}=kt(),{steps:s}=XT(i);kZ(i);let[c,l]=(0,Q.useState)(0),[u,d]=(0,Q.useState)(!1),f=1+ +!!s.file+ +!!s.askedAi,p=f===AZ,m,h;t[0]!==p||t[1]!==a?(m=()=>{if(!p)return;l(LZ);let e=setInterval(()=>l(IZ),MZ),t=setTimeout(()=>{clearInterval(e),d(!0)},a);return()=>{clearInterval(e),clearTimeout(t)}},h=[p,a],t[0]=p,t[1]=a,t[2]=m,t[3]=h):(m=t[2],h=t[3]),(0,Q.useEffect)(m,h);let g,_;t[4]!==u||t[5]!==i?(g=()=>{if(!u)return;let e=setTimeout(()=>i.markCompleted(),NZ);return()=>clearTimeout(e)},_=[u,i],t[4]=u,t[5]=i,t[6]=g,t[7]=_):(g=t[6],_=t[7]),(0,Q.useEffect)(g,_);let v;t[8]!==o||t[9]!==p?(v=p?o({id:`7jIIFX`}):``,t[8]=o,t[9]=p,t[10]=v):v=t[10];let y;t[11]===v?y=t[12]:(y=(0,Z.jsx)(`div`,{className:`sr-only`,role:`status`,"aria-live":`polite`,children:v}),t[11]=v,t[12]=y);let b;t[13]!==p||t[14]!==c||t[15]!==f||t[16]!==u||t[17]!==s.askedAi||t[18]!==s.file||t[19]!==i?(b=p?(0,Z.jsxs)(`section`,{"aria-hidden":!0,className:X(`mx-2 mb-1 flex items-center gap-3 rounded-lg border bg-card px-4 py-3 text-card-foreground`,`motion-reduce:animate-none motion-reduce:duration-0`,u?`animate-out fade-out-0 zoom-out-95 fill-mode-forwards duration-200`:`animate-in fade-in-0 zoom-in-95 duration-300`),children:[(0,Z.jsx)(yf,{size:36,celebrateSignal:c}),(0,Z.jsx)(`span`,{className:`font-medium text-sm`,children:(0,Z.jsx)(J,{id:`7jIIFX`})})]}):(0,Z.jsxs)(`section`,{"aria-labelledby":`onboarding-card-heading`,className:`mx-2 mb-1 rounded-lg border bg-card px-4 py-3 text-card-foreground`,children:[(0,Z.jsxs)(`header`,{className:`mb-3 flex items-center justify-between`,children:[(0,Z.jsx)(`h2`,{id:`onboarding-card-heading`,className:`font-medium text-sm`,children:(0,Z.jsx)(J,{id:`Y1QMlM`})}),(0,Z.jsx)(`span`,{className:`text-muted-foreground/60 text-xs tabular-nums`,children:`${f} / ${AZ}`})]}),(0,Z.jsxs)(`ul`,{className:`flex flex-col gap-2`,children:[(0,Z.jsx)(PZ,{complete:!0,label:(0,Z.jsx)(J,{id:`4E9jPa`})}),(0,Z.jsx)(PZ,{complete:s.file,label:(0,Z.jsx)(J,{id:`6ibbCg`}),shortcutId:`new-item`}),(0,Z.jsx)(PZ,{complete:s.askedAi,label:(0,Z.jsx)(J,{id:`xWEvuo`}),shortcutId:`open-ask-ai`})]}),(0,Z.jsx)(`footer`,{className:`-mb-1 mt-2 flex justify-end`,children:(0,Z.jsx)(Y,{type:`button`,variant:`ghost`,size:`sm`,className:`h-auto px-2 py-1 text-muted-foreground text-xs`,onClick:()=>i.dismiss(),children:(0,Z.jsx)(J,{id:`1QfxQT`})})})]}),t[13]=p,t[14]=c,t[15]=f,t[16]=u,t[17]=s.askedAi,t[18]=s.file,t[19]=i,t[20]=b):b=t[20];let x;return t[21]!==y||t[22]!==b?(x=(0,Z.jsxs)(Z.Fragment,{children:[y,b]}),t[21]=y,t[22]=b,t[23]=x):x=t[23],x}function IZ(e){return e+1}function LZ(e){return e+1}function RZ(){let e=(0,$.c)(1);if(!OZ())return null;let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(FZ,{}),e[0]=t):t=e[0],t}function zZ(e){return e===null?null:e.kind===`local`?e.name:e.ref}function BZ(e,t){if(e.length===0)return null;let n=`origin/${e}`;return t.includes(n)?n:t.find(t=>Pa(t)===e)??null}function VZ(e){switch(e){case`branch-exists`:return{id:`wzq9Rv`};case`already-checked-out`:return{id:`ljHjfg`};case`path-exists`:return{id:`mYzDD_`};case`invalid-branch`:return{id:`r-OJYm`};case`no-git`:return{id:`CFnavk`};default:return{id:`-zA2E7`}}}function HZ(e){let t=(0,$.c)(71),{open:n,onOpenChange:r,bridge:i,currentBranch:a,branches:o,existingWorktreeBranches:s,remoteBranches:c,behindByBranch:l,initialBranchName:u}=e,d=o===void 0?[]:o,f=c===void 0?[]:c,p=u===void 0?``:u,{_:m}=kt(),h=(0,Q.useId)(),g=(0,Q.useId)(),_=(0,Q.useId)(),v=(0,Q.useId)(),y=(0,Q.useId)(),b=(0,Q.useId)(),[x,S]=(0,Q.useState)(``),C;t[0]===a?C=t[1]:(C=a===null?null:{kind:`local`,name:a},t[0]=a,t[1]=C);let[T,E]=(0,Q.useState)(C),[D,O]=(0,Q.useState)(!1),[k,A]=(0,Q.useState)(``),[j,M]=(0,Q.useState)(!1),[N,P]=(0,Q.useState)(null),F=(0,Q.useRef)(null),I=(0,Q.useRef)(null),L,R;t[2]!==a||t[3]!==p||t[4]!==n?(L=()=>{if(!n)return;S(p),E(a===null?null:{kind:`local`,name:a}),O(!1),A(``),M(!1),P(null);let e=requestAnimationFrame(()=>F.current?.focus());return()=>cancelAnimationFrame(e)},R=[n,a,p],t[2]=a,t[3]=p,t[4]=n,t[5]=L,t[6]=R):(L=t[5],R=t[6]),(0,Q.useEffect)(L,R);let z=x.trim(),B=!j&&z.length>0,V=z.length>0&&d.includes(z),H=V?null:BZ(z,f),U=H!==null,W=V||U,G=V&&(s?.has(z)??!1),K=d.filter(e=>e.toLowerCase().startsWith(z.toLowerCase())),q=!j&&K.length>0&&!W,ee=(a!==null&&!d.includes(a)?[a,...d]:d).map(qZ),te=f.map(KZ),ne=zZ(T),re=k.trim().toLowerCase(),ae=re===``?ee:ee.filter(e=>e.name.toLowerCase().includes(re)),oe=re===``?te:te.filter(e=>e.ref.toLowerCase().includes(re)),se=re!==``&&ae.length===0&&oe.length===0,ce=async function(e){if(e.preventDefault(),B){M(!0),P(null);try{let e=U?{branch:z,createBranch:!0,remoteRef:H}:V?{branch:z,createBranch:!1}:{branch:z,createBranch:!0,baseBranch:T?.kind===`local`?T.name:void 0,baseRef:T?.kind===`remote`?T.ref:void 0},t=await i.worktree.create(e);if(!t.ok){P(VZ(t.reason)),M(!1);return}Ru(),r(!1),await i.project.open({path:t.path,target:`new-window`,entryPoint:`worktree`})}catch(e){console.warn(`[NewWorktreeDialog] worktree create/open failed:`,e),ol.error(m({id:`vAYoCZ`})),M(!1)}}},le=Fn,ue;t[7]!==j||t[8]!==r?(ue=e=>{j||r(e)},t[7]=j,t[8]=r,t[9]=ue):ue=t[9];let de=jn,fe;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,Z.jsx)(An,{children:(0,Z.jsx)(J,{id:`DXd9LM`})}),t[10]=fe):fe=t[10];let pe;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,Z.jsxs)(Pn,{children:[fe,(0,Z.jsx)(kn,{children:(0,Z.jsx)(J,{id:`NEzPEh`})})]}),t[11]=pe):pe=t[11];let me=Mn,he;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,Z.jsx)(J,{id:`ng2Ibo`}),t[12]=he):he=t[12];let ge;t[13]===g?ge=t[14]:(ge=(0,Z.jsx)(ci,{htmlFor:g,children:he}),t[13]=g,t[14]=ge);let _e;t[15]===m?_e=t[16]:(_e=m({id:`IX_uXB`}),t[15]=m,t[16]=_e);let ve;t[17]===N?ve=t[18]:(ve=e=>{S(e.target.value),N!==null&&P(null)},t[17]=N,t[18]=ve);let ye=N!==null,be=N===null?y:`${y} ${b}`,Se;t[19]!==x||t[20]!==j||t[21]!==g||t[22]!==_e||t[23]!==ve||t[24]!==ye||t[25]!==be?(Se=(0,Z.jsx)(fl,{id:g,ref:F,value:x,placeholder:_e,onChange:ve,disabled:j,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-invalid":ye,"aria-describedby":be,"data-testid":`new-worktree-branch`}),t[19]=x,t[20]=j,t[21]=g,t[22]=_e,t[23]=ve,t[24]=ye,t[25]=be,t[26]=Se):Se=t[26];let Ce=z.length>0?(0,Z.jsxs)(`p`,{id:y,className:`flex items-start gap-1.5 text-1sm text-muted-foreground`,"data-testid":G?`new-worktree-mode-existing-worktree`:U?`new-worktree-mode-remote-checkout`:V?`new-worktree-mode-checkout`:`new-worktree-mode-create`,children:[G?(0,Z.jsx)(_c,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-amber-600 dark:text-amber-400`}):U?(0,Z.jsx)(Vi,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-violet-600 dark:text-violet-400`}):V?(0,Z.jsx)(Es,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-blue-600 dark:text-blue-400`}):(0,Z.jsx)(gt,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-green-600 dark:text-green-400`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1`,children:G?(0,Z.jsx)(J,{id:`QAi7Q9`,values:{trimmed:z},components:{0:(0,Z.jsx)(`code`,{className:`font-mono break-words`})}}):U?(0,Z.jsx)(J,{id:`oAGN8p`,values:{remoteCheckoutRef:H,trimmed:z},components:{0:(0,Z.jsx)(`code`,{className:`font-mono break-words`}),1:(0,Z.jsx)(`code`,{className:`font-mono break-words`}),2:(0,Z.jsx)(`code`,{className:`font-mono`})}}):V?(0,Z.jsx)(J,{id:`b4VvP-`,values:{trimmed:z},components:{0:(0,Z.jsx)(`code`,{className:`font-mono break-words`}),1:(0,Z.jsx)(`code`,{className:`font-mono`})}}):ne===null?(0,Z.jsx)(J,{id:`t4sFKC`,values:{trimmed:z},components:{0:(0,Z.jsx)(`code`,{className:`font-mono break-words`}),1:(0,Z.jsx)(`code`,{className:`font-mono`})}}):(0,Z.jsx)(J,{id:`dGAdpH`,values:{trimmed:z,currentBaseLabel:ne},components:{0:(0,Z.jsx)(`code`,{className:`font-mono break-words`}),1:(0,Z.jsx)(`code`,{className:`font-mono break-words`}),2:(0,Z.jsx)(`code`,{className:`font-mono`})}})})]}):null,we=q?(0,Z.jsx)(`div`,{className:`max-h-40 overflow-y-auto rounded-md border bg-popover p-1 shadow-xs`,"data-testid":`new-worktree-branch-list`,children:K.map(e=>(0,Z.jsxs)(Y,{type:`button`,variant:`ghost`,size:`sm`,tabIndex:-1,onClick:()=>{S(e),N!==null&&P(null),F.current?.focus()},"data-testid":`new-worktree-branch-option-${e}`,className:`h-8 w-full justify-start gap-2 font-normal`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:e})]},e))}):null,Te=W?null:(0,Z.jsxs)(`div`,{className:`mt-1 flex flex-col gap-2`,children:[(0,Z.jsx)(ci,{id:v,htmlFor:_,children:(0,Z.jsx)(J,{id:`ZWwYwM`})}),(0,Z.jsxs)(Ot,{open:D,onOpenChange:e=>{O(e),e||A(``)},children:[(0,Z.jsx)(w,{asChild:!0,children:(0,Z.jsxs)(Y,{id:_,type:`button`,variant:`outline`,role:`combobox`,"aria-expanded":D,"aria-haspopup":`listbox`,"aria-labelledby":`${v} ${_}`,"aria-label":m({id:`ZWwYwM`}),disabled:j,"data-testid":`new-worktree-base-trigger`,className:`w-full justify-between font-normal`,children:[(0,Z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[T?.kind===`remote`?(0,Z.jsx)(Vi,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}):(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,Z.jsx)(`span`,{className:`min-w-0 truncate text-left`,children:ne===null?(0,Z.jsx)(J,{id:`EbjWsS`}):ne})]}),(0,Z.jsx)(am,{"aria-hidden":`true`,className:`ml-2 size-4 shrink-0 opacity-50`})]})}),(0,Z.jsxs)(ie,{align:`start`,className:`w-[var(--radix-popover-trigger-width)] p-1`,onWheel:GZ,onTouchMove:WZ,onOpenAutoFocus:e=>{e.preventDefault(),I.current?.focus()},children:[(0,Z.jsxs)(Vw,{className:`mb-1 h-8`,children:[(0,Z.jsx)(Kw,{ref:I,"aria-label":m({id:`fuJZKk`}),placeholder:m({id:`hQXiDc`}),value:k,onChange:e=>A(e.target.value),onKeyDown:UZ,"data-testid":`new-worktree-base-search`}),(0,Z.jsx)(Uw,{children:(0,Z.jsx)(xe,{"aria-hidden":`true`})})]}),(0,Z.jsxs)(`div`,{role:`listbox`,"aria-label":m({id:`ZWwYwM`}),className:`max-h-56 overflow-y-auto`,"data-testid":`new-worktree-base-list`,children:[se?(0,Z.jsx)(`p`,{className:`px-2 py-1.5 text-1sm text-muted-foreground`,children:(0,Z.jsx)(J,{id:`Sh3Qkg`})}):null,ae.map(e=>{let t=e.name,n=l?.get(t);return(0,Z.jsxs)(Y,{type:`button`,role:`option`,"aria-selected":T?.kind===`local`&&T.name===t,variant:`ghost`,size:`sm`,onClick:()=>{E(e),O(!1),A(``)},"data-testid":`new-worktree-base-option-${t}`,className:`h-8 w-full justify-start gap-2 font-normal`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:t}),n!==void 0&&n>0?(0,Z.jsx)(`span`,{className:`shrink-0 text-xs text-amber-600 dark:text-amber-400`,"data-testid":`new-worktree-base-behind-${t}`,children:(0,Z.jsx)(J,{id:`6-wLTJ`,values:{behind:n}})}):null]},`local:${t}`)}),oe.map(e=>{let t=e.ref;return(0,Z.jsxs)(Y,{type:`button`,role:`option`,"aria-selected":T?.kind===`remote`&&T.ref===t,variant:`ghost`,size:`sm`,onClick:()=>{E(e),O(!1),A(``)},"data-testid":`new-worktree-base-option-${t}`,className:`h-8 w-full justify-start gap-2 font-normal`,children:[(0,Z.jsx)(Vi,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:t}),(0,Z.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground`,children:(0,Z.jsx)(J,{id:`dIYSqk`})})]},`remote:${t}`)})]})]})]})]}),Ee;t[27]!==m||t[28]!==N||t[29]!==b?(Ee=N===null?null:(0,Z.jsx)(`p`,{id:b,role:`alert`,className:`text-1sm text-destructive`,"data-testid":`new-worktree-error`,children:m(N)}),t[27]=m,t[28]=N,t[29]=b,t[30]=Ee):Ee=t[30];let De;t[31]!==h||t[32]!==ce||t[33]!==ge||t[34]!==Se||t[35]!==Ce||t[36]!==we||t[37]!==Te||t[38]!==Ee?(De=(0,Z.jsxs)(`form`,{id:h,onSubmit:ce,className:`flex flex-col gap-2`,children:[ge,Se,Ce,we,Te,Ee]}),t[31]=h,t[32]=ce,t[33]=ge,t[34]=Se,t[35]=Ce,t[36]=we,t[37]=Te,t[38]=Ee,t[39]=De):De=t[39];let Oe;t[40]!==me||t[41]!==De?(Oe=(0,Z.jsx)(me,{children:De}),t[40]=me,t[41]=De,t[42]=Oe):Oe=t[42];let ke;t[43]===r?ke=t[44]:(ke=()=>r(!1),t[43]=r,t[44]=ke);let Ae;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,Z.jsx)(J,{id:`dEgA5A`}),t[45]=Ae):Ae=t[45];let je;t[46]!==j||t[47]!==ke?(je=(0,Z.jsx)(Y,{type:`button`,variant:`outline`,onClick:ke,disabled:j,"data-testid":`new-worktree-cancel`,children:Ae}),t[46]=j,t[47]=ke,t[48]=je):je=t[48];let Me=!B,Ne;t[49]!==j||t[50]!==G||t[51]!==V||t[52]!==U?(Ne=j?(0,Z.jsx)(J,{id:`b4itZn`}):G?(0,Z.jsx)(J,{id:`XV5sC0`}):U?(0,Z.jsx)(J,{id:`XAyxsa`}):V?(0,Z.jsx)(J,{id:`uGaIIS`}):(0,Z.jsx)(J,{id:`iO8V-7`}),t[49]=j,t[50]=G,t[51]=V,t[52]=U,t[53]=Ne):Ne=t[53];let Pe;t[54]!==h||t[55]!==Me||t[56]!==Ne?(Pe=(0,Z.jsx)(Y,{type:`submit`,form:h,disabled:Me,"data-testid":`new-worktree-create`,children:Ne}),t[54]=h,t[55]=Me,t[56]=Ne,t[57]=Pe):Pe=t[57];let Fe;t[58]!==je||t[59]!==Pe?(Fe=(0,Z.jsxs)(Nn,{children:[je,Pe]}),t[58]=je,t[59]=Pe,t[60]=Fe):Fe=t[60];let Ie;t[61]!==de||t[62]!==pe||t[63]!==Oe||t[64]!==Fe?(Ie=(0,Z.jsxs)(de,{className:`sm:max-w-md`,"data-testid":`new-worktree-dialog`,children:[pe,Oe,Fe]}),t[61]=de,t[62]=pe,t[63]=Oe,t[64]=Fe,t[65]=Ie):Ie=t[65];let Le;return t[66]!==le||t[67]!==n||t[68]!==Ie||t[69]!==ue?(Le=(0,Z.jsx)(le,{open:n,onOpenChange:ue,children:Ie}),t[66]=le,t[67]=n,t[68]=Ie,t[69]=ue,t[70]=Le):Le=t[70],Le}function UZ(e){return e.stopPropagation()}function WZ(e){e.stopPropagation()}function GZ(e){e.stopPropagation()}function KZ(e){return{kind:`remote`,ref:e}}function qZ(e){return{kind:`local`,name:e}}function JZ(e){let t=(0,$.c)(51),{bridge:n,recents:r,currentPath:i,query:a,worktreeModel:o,closeMenu:s,guardStaleSelect:c,flyoutPath:l,setFlyoutPath:u,openNewWorktreeWith:d}=e,{_:f}=kt(),p;t[0]!==f||t[1]!==n.project||t[2]!==s?(p=function(e,t){s(),n.project.open({path:e,target:`new-window`,entryPoint:t}).catch(e=>{console.warn(`[RecentProjectsMenu] project.open failed:`,e),ol.error(f({id:`6HCOwA`}))})},t[0]=f,t[1]=n.project,t[2]=s,t[3]=p):p=t[3];let m=p,h;t[4]!==f||t[5]!==n.project||t[6]!==n.worktree?(h=async function(e){try{let t=await n.worktree.create({branch:e,createBranch:!1});if(!t.ok){ol.error(f({id:`teD0H9`}));return}Ru(),await n.project.open({path:t.path,target:`new-window`,entryPoint:`worktree`})}catch(e){console.warn(`[RecentProjectsMenu] create/open branch failed:`,e),ol.error(f({id:`LwMxXg`}))}},t[4]=f,t[5]=n.project,t[6]=n.worktree,t[7]=h):h=t[7];let g=h,_;t[8]!==s||t[9]!==i||t[10]!==m?(_=function(e){if(e.path===i){s();return}m(e.path,e.isLinkedWorktree?`worktree`:`recents`)},t[8]=s,t[9]=i,t[10]=m,t[11]=_):_=t[11];let v=_,y;t[12]!==s||t[13]!==g||t[14]!==i||t[15]!==m?(y=function(e){if(e.path!==null){if(e.path===i){s();return}m(e.path,e.isMain?`recents`:`worktree`);return}e.branch!==null&&(s(),g(e.branch))},t[12]=s,t[13]=g,t[14]=i,t[15]=m,t[16]=y):y=t[16];let b=y;if(a!==``){let e;t[17]!==s||t[18]!==g?(e=e=>{s(),g(e)},t[17]=s,t[18]=g,t[19]=e):e=t[19];let n;return t[20]!==i||t[21]!==c||t[22]!==v||t[23]!==a||t[24]!==r||t[25]!==e||t[26]!==o?(n=(0,Z.jsx)($Z,{recents:r,currentPath:i,query:a,worktreeModel:o,onPickEntry:v,onPickBranch:e,guardStaleSelect:c}),t[20]=i,t[21]=c,t[22]=v,t[23]=a,t[24]=r,t[25]=e,t[26]=o,t[27]=n):n=t[27],n}let x;if(t[28]!==s||t[29]!==i||t[30]!==l||t[31]!==c||t[32]!==b||t[33]!==d||t[34]!==m||t[35]!==r||t[36]!==u||t[37]!==o){let e=w_(r),n;t[39]!==s||t[40]!==i||t[41]!==l||t[42]!==c||t[43]!==b||t[44]!==d||t[45]!==m||t[46]!==u||t[47]!==o?(n=e=>(0,Z.jsx)(YZ,{group:e,currentPath:i,worktreeModel:o,flyoutOpen:l===e.project.path,setFlyoutOpen:t=>u(n=>t?e.project.path:n===e.project.path?null:n),onPickProject:()=>{if(e.project.path===i){s();return}m(e.project.path,`recents`)},onPickFlyoutEntry:b,guardStaleSelect:c,openNewWorktreeWith:d},e.project.path),t[39]=s,t[40]=i,t[41]=l,t[42]=c,t[43]=b,t[44]=d,t[45]=m,t[46]=u,t[47]=o,t[48]=n):n=t[48],x=e.map(n),t[28]=s,t[29]=i,t[30]=l,t[31]=c,t[32]=b,t[33]=d,t[34]=m,t[35]=r,t[36]=u,t[37]=o,t[38]=x}else x=t[38];let S;return t[49]===x?S=t[50]:(S=(0,Z.jsx)(Z.Fragment,{children:x}),t[49]=x,t[50]=S),S}function YZ(e){let t=(0,$.c)(34),{group:n,currentPath:r,worktreeModel:i,flyoutOpen:a,setFlyoutOpen:o,onPickProject:s,onPickFlyoutEntry:c,guardStaleSelect:l,openNewWorktreeWith:u}=e,d=n.project.path===r,f,p;t[0]!==r||t[1]!==n||t[2]!==i?(f=x_(n,i,r),p=f.filter(XZ),t[0]=r,t[1]=n,t[2]=i,t[3]=f,t[4]=p):(f=t[3],p=t[4]);let m=p.length;if(m===0){let e;t[5]!==l||t[6]!==s?(e=e=>{l(e)||s()},t[5]=l,t[6]=s,t[7]=e):e=t[7];let r=`project-switcher-recent-${n.project.path}`,i=d?`true`:void 0,a;t[8]!==n.project.name||t[9]!==n.project.path||t[10]!==d?(a=(0,Z.jsx)(nQ,{name:n.project.name,path:n.project.path,current:d}),t[8]=n.project.name,t[9]=n.project.path,t[10]=d,t[11]=a):a=t[11];let o;return t[12]!==e||t[13]!==r||t[14]!==i||t[15]!==a?(o=(0,Z.jsx)(qr,{onSelect:e,className:`flex w-full min-w-0 flex-col items-start gap-0.5`,"data-testid":r,"data-current":i,children:a}),t[12]=e,t[13]=r,t[14]=i,t[15]=a,t[16]=o):o=t[16],o}let h;t[17]!==r||t[18]!==n.worktrees||t[19]!==d?(h=d||n.worktrees.some(e=>e.path===r),t[17]=r,t[18]=n.worktrees,t[19]=d,t[20]=h):h=t[20];let g=h,_;return t[21]!==g||t[22]!==r||t[23]!==f||t[24]!==a||t[25]!==n||t[26]!==l||t[27]!==c||t[28]!==s||t[29]!==u||t[30]!==m||t[31]!==o||t[32]!==i?(_=(0,Z.jsx)(ZZ,{group:n,currentPath:r,containsCurrent:g,worktreeModel:i,flyoutEntries:f,openedWorktreeCount:m,flyoutOpen:a,setFlyoutOpen:o,onPickProject:s,onPickFlyoutEntry:c,guardStaleSelect:l,openNewWorktreeWith:u}),t[21]=g,t[22]=r,t[23]=f,t[24]=a,t[25]=n,t[26]=l,t[27]=c,t[28]=s,t[29]=u,t[30]=m,t[31]=o,t[32]=i,t[33]=_):_=t[33],_}function XZ(e){return e.opened&&!e.isMain}function ZZ(e){let t=(0,$.c)(46),{group:n,currentPath:r,containsCurrent:i,worktreeModel:a,flyoutEntries:o,openedWorktreeCount:s,flyoutOpen:c,setFlyoutOpen:l,onPickProject:u,onPickFlyoutEntry:d,guardStaleSelect:f,openNewWorktreeWith:p}=e,{_:m}=kt(),h=n.project.path===r,g;t[0]!==f||t[1]!==u?(g=e=>{f(e)||u()},t[0]=f,t[1]=u,t[2]=g):g=t[2];let _=g,v,y;t[3]===_?(v=t[4],y=t[5]):(v=e=>{e.target.closest(`[data-project-open]`)!==null&&(e.preventDefault(),_(e.nativeEvent))},y=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),_(e.nativeEvent))},t[3]=_,t[4]=v,t[5]=y);let b=`project-switcher-group-${n.project.path}`,x=c?`true`:void 0,S=i?`true`:void 0,C;t[6]===n.project.name?C=t[7]:(C=(0,Z.jsx)(`span`,{className:`truncate font-medium text-sm`,"data-project-open":``,title:n.project.name,children:n.project.name}),t[6]=n.project.name,t[7]=C);let w;t[8]===n.project.path?w=t[9]:(w=(0,Z.jsx)(`span`,{className:`truncate text-muted-foreground text-xs`,title:n.project.path,children:n.project.path}),t[8]=n.project.path,t[9]=w);let T;t[10]!==C||t[11]!==w?(T=(0,Z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[C,w]}),t[10]=C,t[11]=w,t[12]=T):T=t[12];let E;t[13]!==m||t[14]!==h?(E=h?(0,Z.jsx)(Es,{"aria-label":m({id:`Hp1l6f`}),className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground`}):null,t[13]=m,t[14]=h,t[15]=E):E=t[15];let D=`project-switcher-toggle-${n.project.path}`,O;t[16]===s?O=t[17]:(O=(0,Z.jsx)(`span`,{className:`tabular-nums`,children:s}),t[16]=s,t[17]=O);let k;t[18]===s?k=t[19]:(k=(0,Z.jsx)(J,{id:`AKxFtn`,values:{openedWorktreeCount:s}}),t[18]=s,t[19]=k);let A;t[20]!==D||t[21]!==O||t[22]!==k?(A=(0,Z.jsxs)(`span`,{className:`mt-0.5 shrink-0 text-muted-foreground text-xs`,"data-testid":D,children:[O,` `,k]}),t[20]=D,t[21]=O,t[22]=k,t[23]=A):A=t[23];let j;t[24]!==E||t[25]!==A||t[26]!==v||t[27]!==y||t[28]!==b||t[29]!==x||t[30]!==S||t[31]!==T?(j=(0,Z.jsxs)(Wr,{onClick:v,onKeyDown:y,className:`flex w-full min-w-0 items-start gap-2`,"data-testid":b,"data-flyout-open":x,"data-current":S,children:[T,E,A]}),t[24]=E,t[25]=A,t[26]=v,t[27]=y,t[28]=b,t[29]=x,t[30]=S,t[31]=T,t[32]=j):j=t[32];let M;t[33]!==o||t[34]!==c||t[35]!==n||t[36]!==f||t[37]!==d||t[38]!==p||t[39]!==a?(M=(0,Z.jsx)(QZ,{group:n,open:c,worktreeModel:a,entries:o,onPickFlyoutEntry:d,guardStaleSelect:f,openNewWorktreeWith:p}),t[33]=o,t[34]=c,t[35]=n,t[36]=f,t[37]=d,t[38]=p,t[39]=a,t[40]=M):M=t[40];let N;return t[41]!==c||t[42]!==l||t[43]!==j||t[44]!==M?(N=(0,Z.jsxs)(jr,{open:c,onOpenChange:l,children:[j,M]}),t[41]=c,t[42]=l,t[43]=j,t[44]=M,t[45]=N):N=t[45],N}function QZ(e){let t=(0,$.c)(15),{group:n,open:r,worktreeModel:i,entries:a,onPickFlyoutEntry:o,guardStaleSelect:s,openNewWorktreeWith:c}=e,{_:l}=kt(),[u,d]=(0,Q.useState)(``),f=(0,Q.useRef)(null),p=(0,Q.useRef)(null),m,h;t[0]===r?(m=t[1],h=t[2]):(m=()=>{r&&f.current?.focus({preventScroll:!0})},h=[r],t[0]=r,t[1]=m,t[2]=h),(0,Q.useEffect)(m,h);let g=function(){let e=p.current;return e===null?[]:[...e.querySelectorAll(`[role="menuitem"]`)]},_=function(e){g()[e]?.focus()},v=function(e,t){if(e.key===`ArrowDown`){e.preventDefault(),e.stopPropagation();let t=g(),n=t.indexOf(e.currentTarget);_(Math.min(n+1,t.length-1))}else if(e.key===`ArrowUp`){e.preventDefault(),e.stopPropagation();let t=g().indexOf(e.currentTarget);t<=0?f.current?.focus():_(t-1)}else e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),t())},y;if(t[3]!==a||t[4]!==u){let e=u.trim().toLowerCase();y=e===``?a:a.filter(t=>(t.branch??``).toLowerCase().includes(e)),t[3]=a,t[4]=u,t[5]=y}else y=t[5];let b=y,x=i!==null&&i.mainRoot===n.project.mainRoot,S=u.trim(),C=x&&S.length>0,w;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,Z.jsx)(Uw,{align:`inline-start`,children:(0,Z.jsx)(xe,{"aria-hidden":`true`})}),t[6]=w):w=t[6];let T;t[7]===l?T=t[8]:(T=l({id:`bSD4im`}),t[7]=l,t[8]=T);let E;t[9]===l?E=t[10]:(E=l({id:`Skr_7L`}),t[9]=l,t[10]=E);let D;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>d(e.target.value),t[11]=D):D=t[11];let O=b.length===0?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ii,{className:`font-normal text-muted-foreground text-xs`,role:`status`,"aria-live":`polite`,children:l({id:`-uaQnI`})}),C?(0,Z.jsxs)(qr,{onSelect:e=>{s(e)||c(S)},onKeyDown:e=>v(e,()=>c(S)),className:`flex items-center gap-2`,"data-testid":`project-switcher-flyout-create`,children:[(0,Z.jsx)(gt,{"aria-hidden":`true`,className:`size-3.5 shrink-0`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm`,title:S,children:(0,Z.jsx)(J,{id:`gHSAWT`,values:{typedName:S},components:{0:(0,Z.jsx)(`span`,{className:`font-medium`}),1:(0,Z.jsx)(`span`,{className:`font-mono`})}})})]}):null]}):b.map(e=>{let t=e.path??`branch:${e.branch}`,n=e.branch??l({id:`D12vtS`});return(0,Z.jsxs)(qr,{onSelect:t=>{s(t)||o(e)},onKeyDown:t=>v(t,()=>o(e)),className:`flex items-center gap-2`,"data-testid":`project-switcher-flyout-entry-${t}`,"data-current":e.isCurrent?`true`:void 0,children:[(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm`,title:n,children:n}),e.isMain?(0,Z.jsx)(`span`,{className:`shrink-0 text-muted-foreground text-xs`,children:l({id:`Bn9-El`})}):e.opened?null:(0,Z.jsx)(`span`,{className:`shrink-0 text-muted-foreground text-xs`,title:l({id:`Dvwa0U`}),children:l({id:`nfoduq`})}),e.isCurrent?(0,Z.jsx)(rQ,{}):null]},t)}),k;return t[12]!==p||t[13]!==O?(k=(0,Z.jsx)(`div`,{ref:p,className:`min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain subtle-scrollbar`,children:O}),t[12]=p,t[13]=O,t[14]=k):k=t[14],(0,Z.jsx)(oi,{children:(0,Z.jsxs)(ai,{avoidCollisions:!1,sideOffset:-8,className:`flex max-h-80 w-96 flex-col gap-1 overflow-hidden p-1`,"data-testid":`project-switcher-flyout-${n.project.path}`,children:[(0,Z.jsxs)(Vw,{className:`mb-1 h-8 shrink-0`,children:[w,(0,Z.jsx)(Kw,{ref:f,"aria-label":T,placeholder:E,value:u,onChange:D,onKeyDown:e=>{e.key===`ArrowDown`&&(e.preventDefault(),_(0)),e.stopPropagation()},"data-testid":`project-switcher-flyout-search-${n.project.path}`})]}),k]})})}function $Z(e){let t=(0,$.c)(41),{recents:n,currentPath:r,query:i,worktreeModel:a,onPickEntry:o,onPickBranch:s,guardStaleSelect:c}=e,{_:l}=kt(),u;t[0]===i?u=t[1]:(u=e=>e.toLowerCase().includes(i),t[0]=i,t[1]=u);let d=u,f,p,m,h;if(t[2]!==l||t[3]!==r||t[4]!==c||t[5]!==d||t[6]!==s||t[7]!==o||t[8]!==n||t[9]!==a){h=Symbol.for(`react.early_return_sentinel`);bb0:{let e;t[14]===d?e=t[15]:(e=e=>!e.isLinkedWorktree&&(d(e.name)||d(e.path)),t[14]=d,t[15]=e);let i=n.filter(e),u;t[16]===d?u=t[17]:(u=e=>e.isLinkedWorktree===!0&&(d(e.branch??``)||d(e.path)),t[16]=d,t[17]=u);let g=n.filter(u),_=new Set(g.map(eQ)),v;t[18]===a?.entries?v=t[19]:(v=a?.entries??[],t[18]=a?.entries,t[19]=v);let y=v.filter(e=>e.branch!==null&&d(e.branch)&&(e.worktreePath===null||!_.has(e.worktreePath))&&e.worktreePath!==r);if(i.length===0&&g.length===0&&y.length===0){let e;t[20]===l?e=t[21]:(e=l({id:`pEQFsW`}),t[20]=l,t[21]=e);let n;t[22]===e?n=t[23]:(n=(0,Z.jsx)(ii,{className:`font-normal text-muted-foreground text-xs`,role:`status`,"aria-live":`polite`,children:e}),t[22]=e,t[23]=n),h=n;break bb0}let b;t[24]!==r||t[25]!==c||t[26]!==o?(b=e=>(0,Z.jsx)(qr,{onSelect:t=>{c(t)||o(e)},className:`flex w-full min-w-0 flex-col items-start gap-0.5`,"data-testid":`project-switcher-recent-${e.path}`,children:(0,Z.jsx)(nQ,{name:e.name,path:e.path,current:e.path===r})},e.path),t[24]=r,t[25]=c,t[26]=o,t[27]=b):b=t[27],f=i.map(b);let x;t[28]!==r||t[29]!==c||t[30]!==o?(x=e=>(0,Z.jsxs)(qr,{onSelect:t=>{c(t)||o(e)},className:`flex items-start gap-2`,"data-testid":`project-switcher-worktree-${e.path}`,"data-current":e.path===r?`true`:void 0,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0`}),(0,Z.jsx)(tQ,{branch:e.branch??e.name,project:e.mainRoot===void 0?null:C_(e.mainRoot)})]},e.path),t[28]=r,t[29]=c,t[30]=o,t[31]=x):x=t[31],p=g.map(x);let S;t[32]!==l||t[33]!==c||t[34]!==s||t[35]!==a?(S=e=>(0,Z.jsxs)(qr,{onSelect:t=>{c(t)||e.branch!==null&&s(e.branch)},className:`flex items-start gap-2`,"data-testid":`project-switcher-branch-${e.branch}`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 opacity-40`}),(0,Z.jsx)(tQ,{branch:e.branch??``,project:a===null?null:C_(a.mainRoot),hint:l({id:`nfoduq`})})]},`branch:${e.branch}`),t[32]=l,t[33]=c,t[34]=s,t[35]=a,t[36]=S):S=t[36],m=y.map(S)}t[2]=l,t[3]=r,t[4]=c,t[5]=d,t[6]=s,t[7]=o,t[8]=n,t[9]=a,t[10]=f,t[11]=p,t[12]=m,t[13]=h}else f=t[10],p=t[11],m=t[12],h=t[13];if(h!==Symbol.for(`react.early_return_sentinel`))return h;let g;return t[37]!==f||t[38]!==p||t[39]!==m?(g=(0,Z.jsxs)(Z.Fragment,{children:[f,p,m]}),t[37]=f,t[38]=p,t[39]=m,t[40]=g):g=t[40],g}function eQ(e){return e.path}function tQ(e){let t=(0,$.c)(12),{branch:n,project:r,hint:i}=e,a;t[0]===n?a=t[1]:(a=(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm`,children:n}),t[0]=n,t[1]=a);let o;t[2]===i?o=t[3]:(o=i===void 0?null:(0,Z.jsx)(`span`,{className:`shrink-0 text-muted-foreground text-xs`,children:i}),t[2]=i,t[3]=o);let s;t[4]!==a||t[5]!==o?(s=(0,Z.jsxs)(`span`,{className:`flex w-full min-w-0 items-center gap-1.5`,children:[a,o]}),t[4]=a,t[5]=o,t[6]=s):s=t[6];let c;t[7]===r?c=t[8]:(c=r===null?null:(0,Z.jsx)(`span`,{className:`truncate text-muted-foreground text-xs`,title:r,children:r}),t[7]=r,t[8]=c);let l;return t[9]!==s||t[10]!==c?(l=(0,Z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[s,c]}),t[9]=s,t[10]=c,t[11]=l):l=t[11],l}function nQ(e){let t=(0,$.c)(15),{name:n,path:r,current:i}=e,a=i&&`font-medium`,o;t[0]===a?o=t[1]:(o=X(`flex w-full items-center gap-1.5`,a),t[0]=a,t[1]=o);let s;t[2]===n?s=t[3]:(s=(0,Z.jsx)(`span`,{className:`truncate font-medium text-sm`,title:n,children:n}),t[2]=n,t[3]=s);let c;t[4]===i?c=t[5]:(c=i?(0,Z.jsx)(Es,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}):null,t[4]=i,t[5]=c);let l;t[6]!==o||t[7]!==s||t[8]!==c?(l=(0,Z.jsxs)(`span`,{className:o,children:[s,c]}),t[6]=o,t[7]=s,t[8]=c,t[9]=l):l=t[9];let u;t[10]===r?u=t[11]:(u=(0,Z.jsx)(`span`,{className:`w-full truncate text-muted-foreground text-xs`,title:r,children:r}),t[10]=r,t[11]=u);let d;return t[12]!==l||t[13]!==u?(d=(0,Z.jsxs)(`span`,{className:`flex w-full min-w-0 flex-col gap-0.5`,children:[l,u]}),t[12]=l,t[13]=u,t[14]=d):d=t[14],d}function rQ(){let e=(0,$.c)(4),{_:t}=kt(),n;e[0]===t?n=e[1]:(n=t({id:`Hp1l6f`}),e[0]=t,e[1]=n);let r;return e[2]===n?r=e[3]:(r=(0,Z.jsx)(Es,{"aria-label":n,className:`size-3.5 shrink-0 text-muted-foreground`}),e[2]=n,e[3]=r),r}var iQ=(e,t,n)=>h_(e,t,n,`ProjectSwitcher`),aQ=350;function oQ(e){let t=(0,$.c)(108),{bridge:n}=e,{_:r}=kt(),[i,a]=(0,Q.useState)(null),[o,s]=(0,Q.useState)(!1),[c,l]=(0,Q.useState)(``),[u,d]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(!1),[m,h]=(0,Q.useState)(``),[g,_]=(0,Q.useState)(null),v=CN(),y=f_(),b=typeof window<`u`&&window.okDesktop!=null,x=(0,Q.useRef)(!1),S=(0,Q.useRef)(!1),C=(0,Q.useRef)(null),w;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>{e&&(S.current=!0,C.current!==null&&clearTimeout(C.current),C.current=setTimeout(()=>{S.current=!1},aQ)),s(e),e||(l(``),_(null))},t[0]=w):w=t[0];let T=w,E;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>!b||!S.current?!1:(e.preventDefault(),!0),t[1]=E):E=t[1];let D=E,O;t[2]!==r||t[3]!==n.project||t[4]!==o?(O=()=>{if(!o)return;let e=!1;return iQ(async()=>{let t=await n.project.listRecent();e||a(t)},r({id:`fYKgzG`})),()=>{e=!0}},t[2]=r,t[3]=n.project,t[4]=o,t[5]=O):O=t[5];let k;t[6]!==r||t[7]!==n||t[8]!==o?(k=[o,n,r],t[6]=r,t[7]=n,t[8]=o,t[9]=k):k=t[9],(0,Q.useEffect)(O,k);let A,j;t[10]===n?(A=t[11],j=t[12]):(A=()=>n.onMenuAction(e=>{e===`new-worktree`?(s(!1),_(null),h(``),p(!0)):e===`switch-worktree`&&s(!0)}),j=[n],t[10]=n,t[11]=A,t[12]=j),(0,Q.useEffect)(A,j);let M;t[13]!==r||t[14]!==n.dialog||t[15]!==n.project?(M=()=>{T(!1),iQ(async()=>{let e=await n.dialog.openFolder();e&&await n.project.open({path:e,target:`new-window`,entryPoint:`pick-existing`})},r({id:`gmJ0An`}))},t[13]=r,t[14]=n.dialog,t[15]=n.project,t[16]=M):M=t[16];let N=M,P;t[17]!==r||t[18]!==n.navigator?(P=()=>{T(!1),iQ(()=>n.navigator.open(),r({id:`jol95m`}))},t[17]=r,t[18]=n.navigator,t[19]=P):P=t[19];let F=P,I;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(I=()=>{T(!1),d(!0)},t[20]=I):I=t[20];let L=I,R;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>{T(!1),h(e),p(!0)},t[21]=R):R=t[21];let z=R,B=n.config.projectPath,V;t[22]===c?V=t[23]:(V=c.trim().toLowerCase(),t[22]=c,t[23]=V);let H=V,U=H!==``,W;t[24]===i?W=t[25]:(W=i??[],t[24]=i,t[25]=W);let G=W,K;t[26]!==U||t[27]!==G?(K=U?G.filter(mQ):G,t[26]=U,t[27]=G,t[28]=K):K=t[28];let q=K,ee=U?null:y,te=v!==null&&`h-auto py-1.5`,ne;t[29]===te?ne=t[30]:(ne=X(`justify-between text-sidebar-foreground/70 hover:text-sidebar-foreground! data-open:hover:text-sidebar-foreground!`,te),t[29]=te,t[30]=ne);let re;t[31]===r?re=t[32]:(re=r({id:`zZ_I5K`}),t[31]=r,t[32]=re);let ie;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(ie=b?()=>{x.current=!0}:void 0,t[33]=ie):ie=t[33];let ae;t[34]===o?ae=t[35]:(ae=b?()=>{if(x.current){x.current=!1;return}T(!o)}:void 0,t[34]=o,t[35]=ae);let oe;t[36]===n.config.projectName?oe=t[37]:(oe=(0,Z.jsx)(`span`,{className:`truncate`,children:n.config.projectName}),t[36]=n.config.projectName,t[37]=oe);let se;t[38]===v?se=t[39]:(se=v===null?null:(0,Z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1 text-xs text-sidebar-foreground/50 group-hover/menu-button:text-sidebar-foreground`,"data-testid":`project-switcher-branch`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`size-3! shrink-0`}),(0,Z.jsx)(`span`,{className:`truncate`,children:v})]}),t[38]=v,t[39]=se);let ce;t[40]!==oe||t[41]!==se?(ce=(0,Z.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-0.5`,children:[oe,se]}),t[40]=oe,t[41]=se,t[42]=ce):ce=t[42];let le;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,Z.jsx)(am,{"aria-hidden":`true`,className:`opacity-60`}),t[43]=le):le=t[43];let ue;t[44]!==n.config.projectPath||t[45]!==ne||t[46]!==re||t[47]!==ae||t[48]!==ce?(ue=(0,Z.jsx)(Nr,{asChild:!0,children:(0,Z.jsxs)(pN,{className:ne,"data-testid":`project-switcher-trigger`,"aria-label":re,title:n.config.projectPath,onPointerDown:ie,onClick:ae,children:[ce,le]})}),t[44]=n.config.projectPath,t[45]=ne,t[46]=re,t[47]=ae,t[48]=ce,t[49]=ue):ue=t[49];let de;t[50]!==r||t[51]!==n||t[52]!==B||t[53]!==g||t[54]!==q||t[55]!==ee||t[56]!==H||t[57]!==i||t[58]!==c?(de=i===null?null:i.length===0?(0,Z.jsx)(ii,{className:`font-normal text-muted-foreground text-xs`,children:(0,Z.jsx)(J,{id:`MUrVEo`})}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(Vw,{className:`mb-1 h-8 border-0 shadow-none has-[[data-slot=input-group-control]:focus-visible]:ring-0`,children:[(0,Z.jsx)(Kw,{"aria-label":r({id:`blFttG`}),placeholder:r({id:`RVZJWQ`}),value:c,onChange:e=>{e.target.value!==``&&_(null),l(e.target.value)},onKeyDown:pQ,"data-testid":`project-switcher-search`}),(0,Z.jsx)(Uw,{children:(0,Z.jsx)(xe,{"aria-hidden":`true`})})]}),(0,Z.jsx)(Ur,{}),(0,Z.jsx)(`div`,{className:`max-h-64 overflow-x-hidden overflow-y-auto overscroll-contain subtle-scrollbar scroll-fade-mask`,"data-testid":`project-switcher-scroll`,onScroll:()=>{g!==null&&_(null)},children:(0,Z.jsx)(JZ,{bridge:n,recents:q,currentPath:B,query:H,worktreeModel:ee,closeMenu:()=>T(!1),guardStaleSelect:D,flyoutPath:g,setFlyoutPath:_,openNewWorktreeWith:z})})]}),t[50]=r,t[51]=n,t[52]=B,t[53]=g,t[54]=q,t[55]=ee,t[56]=H,t[57]=i,t[58]=c,t[59]=de):de=t[59];let fe;t[60]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,Z.jsx)(Ur,{}),t[60]=fe):fe=t[60];let me;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(me=e=>{D(e)||L()},t[61]=me):me=t[61];let he;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,Z.jsxs)(qr,{onSelect:me,"data-testid":`project-switcher-new-project`,children:[(0,Z.jsx)(gt,{"aria-hidden":`true`,className:`text-muted-foreground`}),(0,Z.jsx)(J,{id:`gKi-a_`})]}),t[62]=he):he=t[62];let ge;t[63]===F?ge=t[64]:(ge=e=>{D(e)||F()},t[63]=F,t[64]=ge);let _e,ve;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,Z.jsx)(pe,{"aria-hidden":`true`,className:`text-muted-foreground`}),ve=(0,Z.jsx)(J,{id:`xaDWAI`}),t[65]=_e,t[66]=ve):(_e=t[65],ve=t[66]);let ye;t[67]===ge?ye=t[68]:(ye=(0,Z.jsxs)(qr,{onSelect:ge,"data-testid":`project-switcher-switch-project`,children:[_e,ve]}),t[67]=ge,t[68]=ye);let be;t[69]===N?be=t[70]:(be=e=>{D(e)||N()},t[69]=N,t[70]=be);let Se,Ce;t[71]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,Z.jsx)(_c,{"aria-hidden":`true`,className:`text-muted-foreground`}),Ce=(0,Z.jsx)(J,{id:`PVUn_c`}),t[71]=Se,t[72]=Ce):(Se=t[71],Ce=t[72]);let we;t[73]===be?we=t[74]:(we=(0,Z.jsxs)(qr,{onSelect:be,"data-testid":`project-switcher-open-folder`,children:[Se,Ce]}),t[73]=be,t[74]=we);let Te;t[75]===v?Te=t[76]:(Te=v===null?null:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ur,{}),(0,Z.jsxs)(qr,{onSelect:e=>{D(e)||(T(!1),h(``),p(!0))},"data-testid":`project-switcher-new-worktree`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`text-muted-foreground`}),(0,Z.jsx)(J,{id:`DXd9LM`})]})]}),t[75]=v,t[76]=Te);let Ee;t[77]!==de||t[78]!==ye||t[79]!==we||t[80]!==Te?(Ee=(0,Z.jsxs)(Yr,{align:`start`,side:`top`,className:`min-w-[260px]`,"data-testid":`project-switcher-menu`,children:[de,fe,he,ye,we,Te]}),t[77]=de,t[78]=ye,t[79]=we,t[80]=Te,t[81]=Ee):Ee=t[81];let De;t[82]!==o||t[83]!==ue||t[84]!==Ee?(De=(0,Z.jsxs)(ti,{open:o,onOpenChange:T,modal:!1,children:[ue,Ee]}),t[82]=o,t[83]=ue,t[84]=Ee,t[85]=De):De=t[85];let Oe;t[86]!==n||t[87]!==u?(Oe=(0,Z.jsx)(Dh,{open:u,onOpenChange:d,bridge:n}),t[86]=n,t[87]=u,t[88]=Oe):Oe=t[88];let ke;t[89]===y?.entries?ke=t[90]:(ke=y?.entries.map(fQ).filter(dQ),t[89]=y?.entries,t[90]=ke);let Ae;t[91]===y?.entries?Ae=t[92]:(Ae=new Set(y?.entries.filter(uQ).map(lQ)),t[91]=y?.entries,t[92]=Ae);let je=y?.remoteBranches,Me;t[93]===y?.entries?Me=t[94]:(Me=new Map(y?.entries.filter(cQ).map(sQ)),t[93]=y?.entries,t[94]=Me);let Ne;t[95]!==v||t[96]!==n||t[97]!==m||t[98]!==f||t[99]!==ke||t[100]!==Ae||t[101]!==je||t[102]!==Me?(Ne=(0,Z.jsx)(HZ,{open:f,onOpenChange:p,bridge:n,currentBranch:v,initialBranchName:m,branches:ke,existingWorktreeBranches:Ae,remoteBranches:je,behindByBranch:Me}),t[95]=v,t[96]=n,t[97]=m,t[98]=f,t[99]=ke,t[100]=Ae,t[101]=je,t[102]=Me,t[103]=Ne):Ne=t[103];let Pe;return t[104]!==De||t[105]!==Oe||t[106]!==Ne?(Pe=(0,Z.jsxs)(Z.Fragment,{children:[De,Oe,Ne]}),t[104]=De,t[105]=Oe,t[106]=Ne,t[107]=Pe):Pe=t[107],Pe}function sQ(e){return[e.branch,e.behind]}function cQ(e){return e.branch!==null&&e.behind!==void 0}function lQ(e){return e.branch}function uQ(e){return e.branch!==null&&e.worktreePath!==null}function dQ(e){return e!==null}function fQ(e){return e.branch}function pQ(e){return e.stopPropagation()}function mQ(e){return!e.isLinkedWorktree}function hQ(e,t){let n=e instanceof Error?e:Error(String(e));console.warn(JSON.stringify({event:`jsx-render-failure`,component:`sidebarSearchPill`,rawComponentName:`sidebarSearchPill`,error:String(n),stack:t.componentStack})),Aa(`sidebarSearchPill`)}function gQ(e){let t=(0,$.c)(8),{onClick:n,className:r}=e,i;t[0]===r?i=t[1]:(i=X(`rounded-lg h-9 w-full justify-start gap-2 px-3 font-normal text-muted-foreground`,r),t[0]=r,t[1]=i);let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(xe,{"aria-hidden":`true`}),t[2]=a):a=t[2];let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Z.jsx)(`span`,{className:`flex-1 text-left text-sm`,children:(0,Z.jsx)(J,{id:`A1taO8`})}),t[3]=o):o=t[3];let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(Re,{className:`text-foreground/70`,children:au(`command-palette`)}),t[4]=s):s=t[4];let c;return t[5]!==n||t[6]!==i?(c=(0,Z.jsxs)(Y,{variant:`outline`,onClick:n,"data-telemetry-event":`ok.sidebar.search_pill.click`,className:i,children:[a,o,s]}),t[5]=n,t[6]=i,t[7]=c):c=t[7],c}function _Q(){let e=(0,$.c)(31),{_:t}=kt(),n=Js(),{activeDocName:r}=Xe(),[i,a]=(0,Q.useState)(!1),o=ec(),s;e[0]!==n.data||e[1]!==n.status?(s=n.status===`ready`?n.data:[],e[0]=n.data,e[1]=n.status,e[2]=s):s=e[2];let c=s,l;e[3]===c?l=e[4]:(l=dc(c),e[3]=c,e[4]=l);let u=l,d=pc(),f;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(f={},e[5]=f):f=e[5];let[p,m]=(0,Q.useState)(f),h;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Z.jsx)(sN,{asChild:!0,children:(0,Z.jsxs)(Dn,{className:`flex w-full items-center gap-1.5`,children:[(0,Z.jsx)(Tm,{className:`size-3.5 shrink-0`}),(0,Z.jsx)(J,{id:`PCSkw2`}),(0,Z.jsx)(ks,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-[state=open]/skills:rotate-90`})]})}),e[6]=h):h=e[6];let g;e[7]===t?g=e[8]:(g=t({id:`MdpSC1`}),e[7]=t,e[8]=g);let _,v;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>a(!0),v=(0,Z.jsx)(gt,{}),e[9]=_,e[10]=v):(_=e[9],v=e[10]);let y;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsx)(`span`,{className:`sr-only`,children:(0,Z.jsx)(J,{id:`MdpSC1`})}),e[11]=y):y=e[11];let b;e[12]===g?b=e[13]:(b=(0,Z.jsxs)(cN,{title:g,onClick:_,children:[v,y]}),e[12]=g,e[13]=b);let x;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,Z.jsx)(wQ,{}),e[14]=x):x=e[14];let S;e[15]!==o||e[16]!==r||e[17]!==u||e[18]!==p||e[19]!==d||e[20]!==c?(S=c.length===0?(0,Z.jsx)(`p`,{className:`px-2 py-1 text-xs text-muted-foreground`,children:(0,Z.jsx)(J,{id:`PdJZ5p`})}):cc.filter(e=>c.some(t=>t.scope===e)).map(e=>(0,Z.jsxs)(On,{className:`group/scope`,open:c.some(t=>t.scope===e&&Ea(t.scope,t.name)===r)||(p[e]??!1),onOpenChange:t=>m(n=>({...n,[e]:t})),children:[(0,Z.jsxs)(Dn,{className:`flex w-full items-center gap-1 px-2 pt-1 pb-0.5 text-[11px] text-muted-foreground/70 hover:text-muted-foreground`,children:[(0,Z.jsx)(ks,{className:`size-3 shrink-0 transition-transform group-data-[state=open]/scope:rotate-90`}),(0,Z.jsx)(`span`,{className:`truncate`,children:d[e]})]}),(0,Z.jsx)(En,{children:(0,Z.jsx)(uN,{className:`pl-2`,children:c.filter(t=>t.scope===e).map(e=>(0,Z.jsx)(yQ,{skill:e,activeDocName:r,actions:o,existingNames:u[e.scope]},`${e.scope}::${e.name}`))})})]},e)),e[15]=o,e[16]=r,e[17]=u,e[18]=p,e[19]=d,e[20]=c,e[21]=S):S=e[21];let C;e[22]===S?C=e[23]:(C=(0,Z.jsx)(En,{children:(0,Z.jsxs)(lN,{children:[x,S]})}),e[22]=S,e[23]=C);let w;e[24]===i?w=e[25]:(w=(0,Z.jsx)(Wi,{defaultScope:`project`,open:i,onOpenChange:a,onCreated:vQ}),e[24]=i,e[25]=w);let T;return e[26]!==o.dialogs||e[27]!==C||e[28]!==w||e[29]!==b?(T=(0,Z.jsx)(On,{className:`group/skills shrink-0`,children:(0,Z.jsxs)(oN,{className:`px-0`,children:[h,b,C,o.dialogs,w]})}),e[26]=o.dialogs,e[27]=C,e[28]=w,e[29]=b,e[30]=T):T=e[30],T}function vQ(e){let{scope:t,name:n}=e;return kc(Ea(t,n))}function yQ(e){let t=(0,$.c)(52),{skill:n,activeDocName:r,actions:i,existingNames:a}=e,{_:o}=kt(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(!1),d;t[0]!==n.name||t[1]!==n.scope?(d=Ea(n.scope,n.name),t[0]=n.name,t[1]=n.scope,t[2]=d):d=t[2];let f=r===d,p,m,h;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>{e.preventDefault(),u(!0)},m=(0,Z.jsx)(ks,{className:`size-3 shrink-0 text-muted-foreground transition-transform group-data-[state=open]/skill:rotate-90`}),h=(0,Z.jsx)(Tm,{className:`size-3 shrink-0 text-muted-foreground`}),t[3]=p,t[4]=m,t[5]=h):(p=t[3],m=t[4],h=t[5]);let g=n.name,_;t[6]===n.name?_=t[7]:(_=oc(n.name),t[6]=n.name,t[7]=_);let v;t[8]!==n.name||t[9]!==_?(v=(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:g,children:_}),t[8]=n.name,t[9]=_,t[10]=v):v=t[10];let y;t[11]!==o||t[12]!==n.bundledVersion||t[13]!==n.updateAvailable?(y=n.updateAvailable?(0,Z.jsx)(`span`,{title:o({id:`1YJ4Yg`,values:{0:n.bundledVersion?` (${n.bundledVersion})`:``}}),className:`flex items-center`,children:(0,Z.jsx)(Ic,{className:`size-3 text-primary`,"aria-label":o({id:`CifUuG`})})}):null,t[11]=o,t[12]=n.bundledVersion,t[13]=n.updateAvailable,t[14]=y):y=t[14];let b;t[15]!==o||t[16]!==n.installed||t[17]!==n.managed?(b=n.managed?(0,Z.jsx)(`span`,{title:o({id:`U7HJ4y`}),className:`flex items-center`,children:(0,Z.jsx)(Ls,{className:`size-3 text-muted-foreground`,"aria-label":o({id:`U7HJ4y`})})}):(0,Z.jsx)(Li,{installed:n.installed,subtle:!0,className:`shrink-0`}),t[15]=o,t[16]=n.installed,t[17]=n.managed,t[18]=b):b=t[18];let x;t[19]!==y||t[20]!==b?(x=(0,Z.jsxs)(`span`,{className:`ml-auto flex shrink-0 items-center gap-1`,children:[y,b]}),t[19]=y,t[20]=b,t[21]=x):x=t[21];let S;t[22]!==f||t[23]!==x||t[24]!==v?(S=(0,Z.jsx)(Dn,{asChild:!0,children:(0,Z.jsxs)(pN,{size:`sm`,isActive:f,className:`h-6 text-[11px]`,onContextMenu:p,children:[m,h,v,x]})}),t[22]=f,t[23]=x,t[24]=v,t[25]=S):S=t[25];let C;t[26]!==o||t[27]!==n.name?(C=o({id:`RlLl3G`,values:{0:n.name}}),t[26]=o,t[27]=n.name,t[28]=C):C=t[28];let w;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,Z.jsx)(pm,{}),t[29]=w):w=t[29];let T;t[30]===C?T=t[31]:(T=(0,Z.jsx)(Nr,{asChild:!0,children:(0,Z.jsx)(mN,{showOnHover:!0,"aria-label":C,children:w})}),t[30]=C,t[31]=T);let E;t[32]!==i||t[33]!==a||t[34]!==n?(E=(0,Z.jsx)(Yr,{side:`right`,align:`start`,className:`min-w-52`,children:(0,Z.jsx)(Zs,{skill:n,actions:i,existingNames:a})}),t[32]=i,t[33]=a,t[34]=n,t[35]=E):E=t[35];let D;t[36]!==l||t[37]!==T||t[38]!==E?(D=(0,Z.jsxs)(ti,{open:l,onOpenChange:u,children:[T,E]}),t[36]=l,t[37]=T,t[38]=E,t[39]=D):D=t[39];let O;t[40]!==s||t[41]!==n?(O=s?(0,Z.jsx)(SQ,{skill:n}):null,t[40]=s,t[41]=n,t[42]=O):O=t[42];let k;t[43]===O?k=t[44]:(k=(0,Z.jsx)(En,{children:O}),t[43]=O,t[44]=k);let A;t[45]!==S||t[46]!==D||t[47]!==k?(A=(0,Z.jsxs)(dN,{children:[S,D,k]}),t[45]=S,t[46]=D,t[47]=k,t[48]=A):A=t[48];let j;return t[49]!==s||t[50]!==A?(j=(0,Z.jsx)(On,{open:s,onOpenChange:c,className:`group/skill`,children:A}),t[49]=s,t[50]=A,t[51]=j):j=t[51],j}function bQ(e){let t=[];for(let n of e){let e=n.path.split(`/`),r=t;e.forEach((t,i)=>{let a=i===e.length-1,o=r.find(e=>e.name===t);o||(o=a?{name:t,path:n.path,text:n.text}:{name:t,path:e.slice(0,i+1).join(`/`),children:[]},r.push(o)),!a&&o.children&&(r=o.children)})}return xQ(t),t}function xQ(e){e.sort((e,t)=>{let n=+!e.children,r=+!t.children;return n===r?e.name.localeCompare(t.name):n-r});for(let t of e)t.children&&xQ(t.children)}function SQ(e){let t=(0,$.c)(36),{skill:n}=e,{_:r}=kt(),[i,a]=(0,Q.useState)(null),[o,s]=(0,Q.useState)(!1),{openTarget:c}=Xe(),l;t[0]===c?l=t[1]:(l=function(e){c({kind:`doc`,target:e,docName:e},{tabBehavior:`append`}),Kl($l(e))},t[0]=c,t[1]=l);let u=l,d;t[2]!==c||t[3]!==n.name||t[4]!==n.scope?(d=function(e){c({kind:`skill-file`,target:`${n.scope}/${n.name}/${e}`,scope:n.scope,name:n.name,path:e},{tabBehavior:`replace-active`}),Kl(Yl({scope:n.scope,name:n.name,path:e}))},t[2]=c,t[3]=n.name,t[4]=n.scope,t[5]=d):d=t[5];let f=d,p;t[6]!==u||t[7]!==f||t[8]!==n.managed||t[9]!==n.name||t[10]!==n.scope?(p=function(e){if(n.managed){f(e);return}let t=e.lastIndexOf(`.`),r=t>=0?e.slice(t+1).toLowerCase():``;if(n.scope===`project`&&(r===`md`||r===`mdx`)){u(dt(n.name,e.replace(/\.mdx?$/i,``)));return}f(e)},t[6]=u,t[7]=f,t[8]=n.managed,t[9]=n.name,t[10]=n.scope,t[11]=p):p=t[11];let m=p,h,g;t[12]!==n.name||t[13]!==n.scope?(h=()=>{let e=!0,t=()=>{ni(n.scope,n.name).then(t=>{e&&(t.ok?(a(t.files),s(!1)):(a([]),s(!0)))})};t();let r=zl(t);return()=>{e=!1,r()}},g=[n.scope,n.name],t[12]=n.name,t[13]=n.scope,t[14]=h,t[15]=g):(h=t[14],g=t[15]),(0,Q.useEffect)(h,g);let _;if(t[16]!==r||t[17]!==i||t[18]!==o||t[19]!==m||t[20]!==u||t[21]!==f||t[22]!==n.managed||t[23]!==n.name||t[24]!==n.scope){let e=i?bQ(i):[],a;t[26]!==u||t[27]!==f||t[28]!==n.managed||t[29]!==n.name||t[30]!==n.scope?(a=()=>n.managed?f(`SKILL.md`):n.scope===`project`?u(Ca(n.name)):kc(Ea(n.scope,n.name)),t[26]=u,t[27]=f,t[28]=n.managed,t[29]=n.name,t[30]=n.scope,t[31]=a):a=t[31];let s,c;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(or,{className:`size-3 shrink-0 text-muted-foreground`}),c=(0,Z.jsx)(`span`,{className:`truncate`,children:`SKILL.md`}),t[32]=s,t[33]=c):(s=t[32],c=t[33]);let l;t[34]===a?l=t[35]:(l=(0,Z.jsx)(gN,{children:(0,Z.jsxs)(_N,{size:`sm`,onClick:a,className:`text-[11px]`,children:[s,c]})}),t[34]=a,t[35]=l),_=(0,Z.jsxs)(hN,{className:`mr-0 pr-0`,children:[l,i===null?(0,Z.jsx)(gN,{children:(0,Z.jsx)(`span`,{className:`px-2 py-0.5 text-[11px] text-muted-foreground/70`,children:(0,Z.jsx)(J,{id:`yQE2r9`})})}):o?(0,Z.jsx)(gN,{children:(0,Z.jsx)(`span`,{className:`px-2 py-0.5 text-[11px] text-muted-foreground/70`,title:r({id:`3Ijjy1`}),children:(0,Z.jsx)(J,{id:`ZARuZJ`})})}):e.map(e=>(0,Z.jsx)(CQ,{node:e,depth:0,onOpenFile:m},e.path))]}),t[16]=r,t[17]=i,t[18]=o,t[19]=m,t[20]=u,t[21]=f,t[22]=n.managed,t[23]=n.name,t[24]=n.scope,t[25]=_}else _=t[25];return _}function CQ(e){let t=(0,$.c)(34),{node:n,depth:r,onOpenFile:i}=e,[a,o]=(0,Q.useState)(!1),s=`${r*.6}rem`,c;t[0]===s?c=t[1]:(c={paddingLeft:s},t[0]=s,t[1]=c);let l=c;if(n.children){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(ks,{className:`size-3 shrink-0 text-muted-foreground transition-transform group-data-[state=open]/dir:rotate-90`}),t[2]=e):e=t[2];let s;t[3]===n.name?s=t[4]:(s=(0,Z.jsxs)(`span`,{className:`truncate`,children:[n.name,`/`]}),t[3]=n.name,t[4]=s);let c;t[5]!==l||t[6]!==s?(c=(0,Z.jsx)(Dn,{asChild:!0,children:(0,Z.jsxs)(_N,{size:`sm`,className:`text-[11px]`,style:l,children:[e,s]})}),t[5]=l,t[6]=s,t[7]=c):c=t[7];let u;if(t[8]!==r||t[9]!==n.children||t[10]!==i){let e;t[12]!==r||t[13]!==i?(e=e=>(0,Z.jsx)(CQ,{node:e,depth:r+1,onOpenFile:i},e.path),t[12]=r,t[13]=i,t[14]=e):e=t[14],u=n.children.map(e),t[8]=r,t[9]=n.children,t[10]=i,t[11]=u}else u=t[11];let d;t[15]===u?d=t[16]:(d=(0,Z.jsx)(En,{children:u}),t[15]=u,t[16]=d);let f;t[17]!==c||t[18]!==d?(f=(0,Z.jsxs)(gN,{children:[c,d]}),t[17]=c,t[18]=d,t[19]=f):f=t[19];let p;return t[20]!==a||t[21]!==f?(p=(0,Z.jsx)(On,{open:a,onOpenChange:o,className:`group/dir`,children:f}),t[20]=a,t[21]=f,t[22]=p):p=t[22],p}let u=`skill-file-${n.path}`,d;t[23]!==n.path||t[24]!==i?(d=()=>i(n.path),t[23]=n.path,t[24]=i,t[25]=d):d=t[25];let f;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Z.jsx)(gm,{className:`size-3 shrink-0 text-muted-foreground`}),t[26]=f):f=t[26];let p;t[27]===n.name?p=t[28]:(p=(0,Z.jsx)(`span`,{className:`truncate`,children:n.name}),t[27]=n.name,t[28]=p);let m;return t[29]!==l||t[30]!==u||t[31]!==d||t[32]!==p?(m=(0,Z.jsx)(gN,{children:(0,Z.jsxs)(_N,{size:`sm`,className:`text-[11px]`,style:l,"data-testid":u,onClick:d,children:[f,p]})}),t[29]=l,t[30]=u,t[31]=d,t[32]=p,t[33]=m):m=t[33],m}function wQ(){let e=(0,$.c)(19),[t,n]=(0,Q.useState)(null),[r,i]=(0,Q.useState)(!1),a,o;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>{let e=!1;return Xr().then(t=>{e||n(t)}),()=>{e=!0}},o=[],e[0]=a,e[1]=o):(a=e[0],o=e[1]),(0,Q.useEffect)(a,o),!t||t.managed!==null||t.importable===0)return null;let s;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=async e=>{if(i(!0),!await ri(e)){i(!1);return}n({managed:e,importable:0})},e[2]=s):s=e[2];let c=s,l;e[3]===t.importable?l=e[4]:(l=(0,Z.jsx)(`p`,{className:`mb-2 text-muted-foreground`,children:(0,Z.jsx)(J,{id:`mu1O0q`,values:{0:t.importable}})}),e[3]=t.importable,e[4]=l);let u,d;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>c(!0),d=(0,Z.jsx)(J,{id:`l3s5ri`}),e[5]=u,e[6]=d):(u=e[5],d=e[6]);let f;e[7]===r?f=e[8]:(f=(0,Z.jsx)(Y,{size:`sm`,className:`h-6 px-2 text-xs`,disabled:r,onClick:u,children:d}),e[7]=r,e[8]=f);let p,m;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>c(!1),m=(0,Z.jsx)(J,{id:`PBxg_E`}),e[9]=p,e[10]=m):(p=e[9],m=e[10]);let h;e[11]===r?h=e[12]:(h=(0,Z.jsx)(Y,{size:`sm`,variant:`ghost`,className:`h-6 px-2 text-xs`,disabled:r,onClick:p,children:m}),e[11]=r,e[12]=h);let g;e[13]!==f||e[14]!==h?(g=(0,Z.jsxs)(`div`,{className:`flex gap-1.5`,children:[f,h]}),e[13]=f,e[14]=h,e[15]=g):g=e[15];let _;return e[16]!==g||e[17]!==l?(_=(0,Z.jsxs)(`div`,{className:`mx-2 mb-1 rounded-md border border-border/60 bg-muted/40 p-2 text-xs`,children:[l,g]}),e[16]=g,e[17]=l,e[18]=_):_=e[18],_}var TQ=`Relaunch`,EQ=`Release notes`,DQ=`Updates paused`,OQ=`Download`,kQ=`Reset to defaults`,AQ=`Relaunching to install the update…`,jQ=`Relaunch failed — please restart manually`;function MQ(e){return`Update to ${e} didn't install.`}var NQ=`Retry`,PQ=`Download manually`,FQ=`Recovery action failed — please try again`;function IQ(e,t){let n=t instanceof Error&&t.message?t.message:``;return n?`${e}: ${n}`:e}function LQ(e){return`Version ${e} ready to install`}function RQ(e){return`Updated to Version ${e}`}function zQ(e){return`Your settings and recent projects were saved by a newer build than this one (v${e}). Reset to defaults to continue.`}var BQ=0,VQ=0,HQ=1,UQ=2,WQ=3,GQ=6e4;function KQ(e,t,n=()=>{},r=GQ,i={isEligible:()=>!1,onShown:()=>{}}){let a=[],o=new Set,s=`update-downloaded`;return a.push(e.onUpdateDownloaded(({version:r})=>{let i=s,a=()=>{t({id:i,body:LQ(r),priority:UQ,action:{label:TQ,onClick:()=>{t({id:i,body:AQ,priority:UQ,dismissible:!1}),e.update.relaunchNow().then(()=>{n(i)},e=>{a(),t({id:`relaunch-error-${r}`,body:IQ(jQ,e),variant:`error`,priority:HQ})})}}})};a()})),a.push(e.onUpdateRelaunching(()=>{t({id:s,body:AQ,priority:UQ,dismissible:!1})})),a.push(e.onUpdateRelaunchFailed(({version:r,message:i,downloadUrl:a})=>{if(a){let i=`install-failed-${r}`,o=()=>{t({id:i,body:MQ(r),variant:`error`,priority:HQ,action:{label:NQ,onClick:()=>{e.update.relaunchNow().then(()=>{n(i)},e=>{console.warn(`[update-notice] install-failed retry rejected`,e),o()})}},secondaryAction:{label:PQ,onClick:()=>{e.shell.openExternal(a)}}})};o();return}t({id:`relaunch-error-${r}`,body:i?`${jQ}: ${i}`:jQ,variant:`error`,priority:HQ})})),a.push(e.onWhatsNew(({version:a,releaseUrl:s})=>{if(i.isEligible(a)){i.onShown(a),t({id:`whats-new-combined-${a}`,body:RQ(a),variant:`success`,priority:WQ,combinedSubscribe:!0,whatsNew:{version:a,releaseUrl:s},action:{label:EQ,onClick:()=>{e.shell.openExternal(s)}}}),e.update.dismissWhatsNew(a);return}let c=`whats-new-${a}`;t({id:c,body:RQ(a),variant:`success`,priority:WQ,action:{label:EQ,onClick:()=>{e.shell.openExternal(s)}},onDismiss:()=>{e.update.dismissWhatsNew(a)}});let l=setTimeout(()=>{o.delete(l),n(c),e.update.dismissWhatsNew(a)},r);o.add(l)})),a.push(e.onWhatsNewDismissed(({version:e})=>{n(`whats-new-${e}`)})),a.push(e.onUpdateStuckHint(({downloadUrl:n})=>{t({id:`update-stuck-hint`,body:DQ,priority:VQ,action:{label:OQ,onClick:()=>{e.shell.openExternal(n)}}})})),()=>{for(let e of a)e();for(let e of o)clearTimeout(e);o.clear()}}function qQ(e,t,n,r=()=>{}){let i=`schema-incompatibility-${t.persistedSchemaVersion}`,a=`schema-incompatibility-error-${t.persistedSchemaVersion}`,o=e=>{r(i),n({id:a,body:IQ(FQ,e),variant:`error`,priority:BQ})};n({id:i,body:zQ(t.currentBuild),priority:BQ,action:{label:kQ,onClick:()=>{e.state.resetIncompatible().then(()=>{r(i)},o)}}})}var JQ=[],YQ=new Set,XQ=!1;function ZQ(){for(let e of YQ)e()}function QQ(e){let t=JQ.findIndex(t=>t.id===e.id);if(t===-1)JQ=[...JQ,e];else{let n=JQ.slice();n[t]=e,JQ=n}ZQ()}function $Q(e){let t=JQ.filter(t=>t.id!==e);t.length!==JQ.length&&(JQ=t,ZQ())}function e$(){return JQ}function t$(e){return YQ.add(e),()=>{YQ.delete(e)}}function n$(){if(XQ||typeof window>`u`)return;let e=window.okDesktop;e&&(XQ=!0,KQ(e,QQ,$Q,void 0,{isEligible:e=>wI(jI.getSnapshot(),e),onShown:e=>jI.recordShown(e)}),e.state.query().then(t=>{t.schemaIncompatibility&&qQ(e,t.schemaIncompatibility,QQ,$Q)},e=>{console.warn(`[update-notices-store] bridge.state.query() failed`,e)}))}var r$=6e4,i$=e=>{let t=(0,$.c)(11),{href:n,label:r,icon:i}=e,a,o;t[0]===n?(a=t[1],o=t[2]):(a=e=>Lu(e,n),o=e=>Lu(e,n),t[0]=n,t[1]=a,t[2]=o);let s;t[3]===i?s=t[4]:(s=(0,Z.jsx)(i,{"aria-hidden":`true`,className:`size-3.5`}),t[3]=i,t[4]=s);let c;return t[5]!==n||t[6]!==r||t[7]!==a||t[8]!==o||t[9]!==s?(c=(0,Z.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,onClick:a,onAuxClick:o,"aria-label":r,className:`rounded-md p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground`,children:s}),t[5]=n,t[6]=r,t[7]=a,t[8]=o,t[9]=s,t[10]=c):c=t[10],c};function a$(e){let t=(0,$.c)(34),{version:n,onOpenReleaseNotes:r,onClose:i,store:a,autoDismissMs:o}=e,s=a===void 0?jI:a,c=o===void 0?r$:o,{_:l}=kt(),[u,d]=(0,Q.useState)(!1),f,p;t[0]!==c||t[1]!==i||t[2]!==u?(f=()=>{if(!u)return;let e=setTimeout(i,c);return()=>clearTimeout(e)},p=[u,i,c],t[0]=c,t[1]=i,t[2]=u,t[3]=f,t[4]=p):(f=t[3],p=t[4]),(0,Q.useEffect)(f,p);let m;t[5]===l?m=t[6]:(m=l({id:`GzPQ2f`}),t[5]=l,t[6]=m);let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Z.jsx)(J,{id:`yLEyuq`}),t[7]=h):h=t[7];let g;t[8]===s?g=t[9]:(g=()=>{s.markSubscribed(),d(!0)},t[8]=s,t[9]=g);let _;t[10]!==i||t[11]!==s?(_=()=>{s.dismiss(),i()},t[10]=i,t[11]=s,t[12]=_):_=t[12];let v;t[13]!==g||t[14]!==_?(v=(0,Z.jsx)(vI,{source:`post_update_card`,compactSubmit:!0,description:h,onSuccess:g,onDismiss:_}),t[13]=g,t[14]=_,t[15]=v):v=t[15];let y;t[16]!==l||t[17]!==u?(y=u?null:(0,Z.jsxs)(`nav`,{"aria-label":l({id:`dbapvC`}),className:`mt-3 flex items-center gap-1.5 text-muted-foreground text-xs`,children:[(0,Z.jsx)(`span`,{className:`mr-0.5`,children:(0,Z.jsx)(J,{id:`9sBe85`})}),(0,Z.jsx)(i$,{href:xI,label:l({id:`I7Exsw`}),icon:FI}),(0,Z.jsx)(i$,{href:yI,label:l({id:`zyKa-I`}),icon:PI}),(0,Z.jsx)(i$,{href:bI,label:l({id:`36aWJD`}),icon:NI})]}),t[16]=l,t[17]=u,t[18]=y):y=t[18];let b;t[19]!==y||t[20]!==v?(b=(0,Z.jsxs)(`div`,{className:`px-3 py-2.5`,children:[v,y]}),t[19]=y,t[20]=v,t[21]=b):b=t[21];let x;t[22]===n?x=t[23]:(x=(0,Z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:(0,Z.jsx)(J,{id:`hLy8b1`,values:{version:n}})}),t[22]=n,t[23]=x);let S;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Z.jsx)(J,{id:`_PACVa`}),t[24]=S):S=t[24];let C;t[25]===r?C=t[26]:(C=(0,Z.jsx)(Y,{variant:`link`,size:`sm`,className:`h-auto p-0 text-muted-foreground text-xs hover:text-foreground`,onClick:r,children:S}),t[25]=r,t[26]=C);let w;t[27]!==x||t[28]!==C?(w=(0,Z.jsxs)(`div`,{className:`flex items-center justify-between border-t bg-muted/30 px-3 py-2.5 space-x-2`,children:[x,C]}),t[27]=x,t[28]=C,t[29]=w):w=t[29];let T;return t[30]!==b||t[31]!==w||t[32]!==m?(T=(0,Z.jsxs)(`section`,{"aria-label":m,className:`mx-1 mb-1 overflow-hidden rounded-lg border bg-card text-card-foreground`,children:[b,w]}),t[30]=b,t[31]=w,t[32]=m,t[33]=T):T=t[33],T}function o$(e){let t=(0,$.c)(37),{notice:n,onDismiss:r}=e,{_:i}=kt(),a=n.variant===`error`?`border-destructive/60 bg-sidebar-accent/30 text-muted-foreground`:n.variant===`success`?`border-emerald-500/40 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400`:`border-sidebar-border bg-sidebar-accent/30 text-muted-foreground`,o;t[0]!==i||t[1]!==n.dismissible||t[2]!==r?(o=n.dismissible===!1?null:(0,Z.jsx)(Y,{variant:`ghost`,size:`icon`,className:`size-5 shrink-0 text-muted-foreground hover:text-sidebar-foreground`,"aria-label":i({id:`GUYwCr`}),onClick:r,children:(0,Z.jsx)(al,{"aria-hidden":`true`,className:`size-3`})}),t[0]=i,t[1]=n.dismissible,t[2]=r,t[3]=o):o=t[3];let s=o,c=`shrink-0 text-xs font-medium underline underline-offset-2 ${n.variant===`success`?`decoration-emerald-500/40`:`decoration-muted-foreground/40`} hover:text-sidebar-foreground hover:decoration-sidebar-foreground`;if(n.secondaryAction){let e=`update-notice-${n.id}`,r=`flex flex-col gap-2 rounded-md border px-2 py-2 text-xs ${a}`,i;t[4]===n.body?i=t[5]:(i=(0,Z.jsx)(`span`,{className:`flex-1 leading-snug`,children:n.body}),t[4]=n.body,t[5]=i);let o;t[6]!==s||t[7]!==i?(o=(0,Z.jsxs)(`div`,{className:`flex items-start gap-2`,children:[i,s]}),t[6]=s,t[7]=i,t[8]=o):o=t[8];let l;t[9]!==c||t[10]!==n.action?(l=n.action?(0,Z.jsx)(`button`,{type:`button`,className:c,onClick:()=>{n.action?.onClick()},children:n.action.label}):null,t[9]=c,t[10]=n.action,t[11]=l):l=t[11];let u;t[12]===n.secondaryAction?u=t[13]:(u=()=>{n.secondaryAction?.onClick()},t[12]=n.secondaryAction,t[13]=u);let d;t[14]!==c||t[15]!==n.secondaryAction.label||t[16]!==u?(d=(0,Z.jsx)(`button`,{type:`button`,className:c,onClick:u,children:n.secondaryAction.label}),t[14]=c,t[15]=n.secondaryAction.label,t[16]=u,t[17]=d):d=t[17];let f;t[18]!==l||t[19]!==d?(f=(0,Z.jsxs)(`div`,{className:`flex gap-3 pl-1`,children:[l,d]}),t[18]=l,t[19]=d,t[20]=f):f=t[20];let p;return t[21]!==e||t[22]!==r||t[23]!==o||t[24]!==f?(p=(0,Z.jsxs)(`div`,{role:`status`,"aria-live":`polite`,"data-testid":e,className:r,children:[o,f]}),t[21]=e,t[22]=r,t[23]=o,t[24]=f,t[25]=p):p=t[25],p}let l=`update-notice-${n.id}`,u=`flex items-center gap-2 rounded-md border px-2 py-1.5 text-xs ${a}`,d;t[26]===n.body?d=t[27]:(d=(0,Z.jsx)(`span`,{className:`flex-1 leading-snug`,children:n.body}),t[26]=n.body,t[27]=d);let f;t[28]!==c||t[29]!==n.action?(f=n.action?(0,Z.jsx)(`button`,{type:`button`,className:c,onClick:()=>{n.action?.onClick()},children:n.action.label}):null,t[28]=c,t[29]=n.action,t[30]=f):f=t[30];let p;return t[31]!==s||t[32]!==l||t[33]!==u||t[34]!==d||t[35]!==f?(p=(0,Z.jsxs)(`div`,{role:`status`,"aria-live":`polite`,"data-testid":l,className:u,children:[d,f,s]}),t[31]=s,t[32]=l,t[33]=u,t[34]=d,t[35]=f,t[36]=p):p=t[36],p}function s$(e){if(e.length===0)return null;let t=e[0];if(!t)return null;for(let n=1;n<e.length;n++){let r=e[n];r&&r.priority<t.priority&&(t=r)}return t}function c$(){let e=(0,$.c)(15),t=(0,Q.useSyncExternalStore)(t$,e$,e$),n;e[0]===t?n=e[1]:(n=s$(t),e[0]=t,e[1]=n);let r=n;if(!r)return null;if(r.combinedSubscribe&&r.whatsNew){let t;e[2]===r.action?t=e[3]:(t=()=>r.action?.onClick(),e[2]=r.action,e[3]=t);let n;e[4]===r.id?n=e[5]:(n=()=>$Q(r.id),e[4]=r.id,e[5]=n);let i;return e[6]!==r.whatsNew.version||e[7]!==t||e[8]!==n?(i=(0,Z.jsx)(`div`,{"data-testid":`update-notices-list`,children:(0,Z.jsx)(a$,{version:r.whatsNew.version,onOpenReleaseNotes:t,onClose:n})}),e[6]=r.whatsNew.version,e[7]=t,e[8]=n,e[9]=i):i=e[9],i}let i;e[10]===r?i=e[11]:(i=()=>{r.onDismiss?.(),$Q(r.id)},e[10]=r,e[11]=i);let a;return e[12]!==r||e[13]!==i?(a=(0,Z.jsx)(`div`,{"data-testid":`update-notices-list`,children:(0,Z.jsx)(o$,{notice:r,onDismiss:i})}),e[12]=r,e[13]=i,e[14]=a):a=e[14],a}function l$(e,t){return e?.kind===`doc`||e?.kind===`folder-index`?uc(t.contentDir,mc(e.docName),t.pathSeparator):e?.kind===`folder`?uc(t.contentDir,e.folderPath,t.pathSeparator):e?.kind===`asset`?uc(t.contentDir,e.assetPath,t.pathSeparator):t.contentDir}function u$(e){return e?.kind===`doc`||e?.kind===`folder-index`?mc(e.docName):e?.kind===`folder`?e.folderPath:e?.kind===`asset`?e.assetPath:``}function d$(e,t){return e===null?rc({workspace:t}):e.kind===`folder`?t?Ks({folderRelativePath:e.folderPath,workspace:t}):null:e.kind===`doc`||e.kind===`folder-index`?Bs({docName:e.docName,workspace:t}):null}var f$={folderCount:0,expandedCount:0},p$=`button, [role="button"], [role="menuitem"], input, textarea, select, a[href]`;function m$(e){return typeof Element>`u`||!(e instanceof Element)?!1:e.closest(p$)!==null}function h$(e){let t=(0,$.c)(2),{onOpenSearch:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Z.jsx)(Hl,{name:`file-sidebar`,children:(0,Z.jsx)(v$,{onOpenSearch:n})}),t[0]=n,t[1]=r),r}var g$=e=>{let t=(0,$.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({icon:n,label:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=(0,Z.jsx)(n,{"aria-hidden":`true`}),t[4]=n,t[5]=a);let o;t[6]!==r||t[7]!==i||t[8]!==a?(o=(0,Z.jsx)(xn,{asChild:!0,children:(0,Z.jsx)(Y,{variant:`ghost`,size:`icon-sm`,"aria-label":r,...i,children:a})}),t[6]=r,t[7]=i,t[8]=a,t[9]=o):o=t[9];let s;t[10]===r?s=t[11]:(s=(0,Z.jsx)(Sn,{children:r}),t[10]=r,t[11]=s);let c;return t[12]!==o||t[13]!==s?(c=(0,Z.jsxs)(wn,{children:[o,s]}),t[12]=o,t[13]=s,t[14]=c):c=t[14],c},_$=e=>{let t=(0,$.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({icon:n,label:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=(0,Z.jsx)(n,{"aria-hidden":`true`}),t[4]=n,t[5]=a);let o;t[6]!==r||t[7]!==i||t[8]!==a?(o=(0,Z.jsx)(xn,{asChild:!0,children:(0,Z.jsx)(Nr,{asChild:!0,children:(0,Z.jsx)(Y,{variant:`ghost`,size:`icon-sm`,"aria-label":r,...i,children:a})})}),t[6]=r,t[7]=i,t[8]=a,t[9]=o):o=t[9];let s;t[10]===r?s=t[11]:(s=(0,Z.jsx)(Sn,{children:r}),t[10]=r,t[11]=s);let c;return t[12]!==o||t[13]!==s?(c=(0,Z.jsxs)(wn,{children:[o,s]}),t[12]=o,t[13]=s,t[14]=c):c=t[14],c};function v$(e){let t=(0,$.c)(309),{onOpenSearch:n}=e,{_:r}=kt(),[i,a]=(0,Q.useState)(null),[o,s]=(0,Q.useState)(null),{activeDocName:c,activeTarget:l}=Xe(),u;t[0]!==c||t[1]!==l?(u=l?.kind===`folder`||l?.kind===`folder-index`?l.folderPath:Cl(c),t[0]=c,t[1]=l,t[2]=u):u=t[2];let d=u,f;t[3]===d?f=t[4]:(f=jl(d)?``:d,t[3]=d,t[4]=f);let p=f,[m,h]=(0,Q.useState)(!1),g=m?``:p,_=typeof window<`u`&&window.okDesktop!=null,{state:v,toggleSidebar:y}=YM(),b=fc(),x=v===`expanded`,S=_&&v===`collapsed`,[C,w]=(0,Q.useState)(f$),T,E;t[5]===i?(T=t[6],E=t[7]):(T=()=>{if(i===null)return;let e=()=>{w(i.getFolderState()),h(i.isCreationTargetCleared())};return e(),i.subscribe(e)},E=[i],t[5]=i,t[6]=T,t[7]=E),(0,Q.useEffect)(T,E);let D,O;t[8]===i?(D=t[9],O=t[10]):(D=()=>{if(i!==null)return bC(e=>{let t=e.initialDir??``;if(e.template){i.createFromTemplate(e.template.folder,e.template.name);return}i.startCreating(`file`,t)})},O=[i],t[8]=i,t[9]=D,t[10]=O),(0,Q.useEffect)(D,O);let k=C.folderCount>0,A=k&&C.expandedCount===C.folderCount,j=C.expandedCount===0,M=Ri(``),N=Ri(g===``?null:g),P=g===``?M:N,F=M.state.status===`ready`?(M.state.data.folder.templates_available?.length??0)>0:!0,I=P.state.status===`ready`?(P.state.data.folder.templates_available?.length??0)>0:!0,L=typeof window<`u`?window.okDesktop:void 0,R=ic(),{status:z}=cs(),B=z?.hasRemote===!0,V;t[11]!==r||t[12]!==R?.contentDir?(V=L?.config?.projectName||R?.contentDir.split(`/`).filter(Boolean).pop()||r({id:`sER-bs`}),t[11]=r,t[12]=R?.contentDir,t[13]=V):V=t[13];let H=V,U=$s().states,{dispatch:W}=Is(),G;t[14]===R?G=t[15]:(G=rc({workspace:R}),t[14]=R,t[15]=G);let K=G,{projectLocalBinding:q,merged:ee}=Iu(),te=ee?.appearance?.sidebar?.showHiddenFiles??!1,ne=ee?.appearance?.sidebar?.showOkFolders??!1,re=ee?.appearance?.sidebar?.showOnlyMarkdownFiles??!1,ie=ee?.appearance?.sidebar?.showSkillsSection??!0,ae=k&&!A,oe=k&&!j,se=ae||oe,ce=(0,Q.useRef)(!1),le;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(le=e=>{ce.current&&(ce.current=!1,e.preventDefault())},t[16]=le):le=t[16];let ue=le,de=C$,fe;t[17]!==i||t[18]!==R?(fe=()=>{R&&(ce.current=!0,i?.startCreating(`file`,``))},t[17]=i,t[18]=R,t[19]=fe):fe=t[19];let pe=fe,me;t[20]!==i||t[21]!==R?(me=e=>{R&&(ce.current=!0,i?.createFromTemplate(``,e))},t[20]=i,t[21]=R,t[22]=me):me=t[22];let he=me,ge;t[23]!==i||t[24]!==R?(ge=()=>{R&&(ce.current=!0,i?.startCreating(`folder`,``))},t[23]=i,t[24]=R,t[25]=ge):ge=t[25];let _e=ge,ve;t[26]===R?ve=t[27]:(ve=()=>{!R||!L||L.shell.showItemInFolder(R.contentDir)},t[26]=R,t[27]=ve);let ye=ve,be;t[28]!==r||t[29]!==R?(be=async()=>{if(R)try{await navigator.clipboard.writeText(R.contentDir),ol.success(r({id:`6_ZOw4`}),{description:R.contentDir})}catch(e){console.warn(`[FileSidebar] clipboard write failed:`,e),ol.error(r({id:`vfRlCI`}))}},t[28]=r,t[29]=R,t[30]=be):be=t[30];let xe=be,Se;t[31]!==r||t[32]!==B?(Se=()=>{vi({...hi(``),hasRemote:B,onClickWhenNoRemote:()=>{ol.error(r({id:`WyQxwa`}))}},{clipboardWrite:$u,toastSuccess:S$,toastError:x$,logEvent:b$})},t[31]=r,t[32]=B,t[33]=Se):Se=t[33];let Ce=Se,we;t[34]!==r||t[35]!==q?(we=e=>{if(q===null)return;let t=q.patch({appearance:{sidebar:e}});t.ok||(console.warn(`[FileSidebar] sidebar visibility toggle rejected:`,jo(t.error)),ol.error(r({id:`P47EWZ`}),{description:jo(t.error)}))},t[34]=r,t[35]=q,t[36]=we):we=t[36];let Te=we,Ee;t[37]===i?Ee=t[38]:(Ee=()=>{i?.expandAll()},t[37]=i,t[38]=Ee);let De=Ee,Oe;t[39]===i?Oe=t[40]:(Oe=()=>{i?.collapseAll()},t[39]=i,t[40]=Oe);let ke=Oe,Ae,je;t[41]!==oe||t[42]!==ae||t[43]!==te||t[44]!==ne||t[45]!==re||t[46]!==ie||t[47]!==v?(Ae=()=>{L&&L.editor.notifyViewMenuStateChanged({showHiddenFiles:te,showOkFolders:ne,showOnlyMarkdownFiles:re,showSkillsSection:ie,canExpandAll:ae,canCollapseAll:oe,sidebarVisible:v===`expanded`})},je=[L,te,ne,re,ie,ae,oe,v],t[41]=oe,t[42]=ae,t[43]=te,t[44]=ne,t[45]=re,t[46]=ie,t[47]=v,t[48]=Ae,t[49]=je):(Ae=t[48],je=t[49]),(0,Q.useEffect)(Ae,je);let Me;t[50]!==r||t[51]!==l||t[52]!==W||t[53]!==U||t[54]!==g||t[55]!==Te||t[56]!==te||t[57]!==ne||t[58]!==re||t[59]!==ie||t[60]!==y||t[61]!==i||t[62]!==R?(Me=()=>{if(L)return L.onMenuAction(e=>{let t=l!==null&&jl(u$(l));switch(e){case`new-doc`:if(!R||!i)return;i.startCreating(`file`,g);return;case`new-folder`:if(!R||!i)return;i.startCreating(`folder`,g);return;case`new-from-template`:if(!R||!i)return;i.startCreatingFromTemplate(g);return;case`rename`:if(!l||t)return;CY(l);return;case`duplicate`:if(!l||t)return;TY(l);return;case`move-to-trash`:if(!l||t)return;xY(l);return;case`reveal-in-finder`:{if(!L||!R)return;let e=l$(l,R);L.shell.showItemInFolder(e);return}case`send-to-ai`:{let e=zs.filter(e=>U[e.id]?.installed===!0);if(e.length===0){ol.error(r({id:`LKOLNn`}));return}let t=d$(l,R);if(!t)return;let[n]=e;if(!n)return;W(n.id,t);return}case`copy-full-path`:{if(!R)return;let e=l$(l,R);navigator.clipboard.writeText(e).then(()=>ol.success(r({id:`6_ZOw4`}),{description:e})).catch(e=>{console.warn(`[FileSidebar] clipboard write failed:`,e),ol.error(r({id:`vfRlCI`}))});return}case`copy-relative-path`:{let e=u$(l);if(e===``){ol.error(r({id:`74eHt-`}));return}navigator.clipboard.writeText(e).then(()=>ol.success(r({id:`haHgQj`}),{description:e})).catch(e=>{console.warn(`[FileSidebar] clipboard write failed:`,e),ol.error(r({id:`5QGTaA`}))});return}case`toggle-show-ok-folders`:Te({showOkFolders:!ne});return;case`toggle-show-hidden-files`:Te({showHiddenFiles:!te});return;case`toggle-show-only-markdown-files`:Te({showOnlyMarkdownFiles:!re});return;case`toggle-show-skills-section`:Te({showSkillsSection:!ie});return;case`expand-all-tree`:i?.expandAll();return;case`collapse-all-tree`:i?.collapseAll();return;case`toggle-sidebar`:y();return;case`delete`:case`toggle-source`:case`save-version`:case`version-history`:case`focus-search`:case`focus-command-palette`:case`close-active-tab-or-window`:case`toggle-doc-panel`:return}})},t[50]=r,t[51]=l,t[52]=W,t[53]=U,t[54]=g,t[55]=Te,t[56]=te,t[57]=ne,t[58]=re,t[59]=ie,t[60]=y,t[61]=i,t[62]=R,t[63]=Me):Me=t[63];let Ne;t[64]!==r||t[65]!==l||t[66]!==W||t[67]!==U||t[68]!==g||t[69]!==q||t[70]!==te||t[71]!==ne||t[72]!==re||t[73]!==ie||t[74]!==y||t[75]!==i||t[76]!==R?(Ne=[L,i,R,l,g,q,te,ne,re,ie,U,W,y,r],t[64]=r,t[65]=l,t[66]=W,t[67]=U,t[68]=g,t[69]=q,t[70]=te,t[71]=ne,t[72]=re,t[73]=ie,t[74]=y,t[75]=i,t[76]=R,t[77]=Ne):Ne=t[77],(0,Q.useEffect)(Me,Ne);let Pe=_&&x&&`motion-safe:delay-100`,Fe=S&&`opacity-0`,Ie;t[78]!==Pe||t[79]!==Fe?(Ie=X(`flex-row h-12 items-center py-0 px-3`,`justify-between`,_&&`overflow-x-clip`,_&&`motion-safe:transition-opacity motion-safe:duration-100 motion-safe:ease-out`,Pe,Fe,_&&`[-webkit-app-region:drag]`),t[78]=Pe,t[79]=Fe,t[80]=Ie):Ie=t[80];let Le;t[81]===Symbol.for(`react.memo_cache_sentinel`)?(Le=_?(0,Z.jsx)(`div`,{"aria-hidden":`true`,"data-testid":`sidebar-traffic-light-reserve`,className:`w-[var(--ok-titlebar-reserve-left,0px)] shrink-0 self-stretch`}):null,t[81]=Le):Le=t[81];let Re;t[82]===x?Re=t[83]:(Re=x&&!_?(0,Z.jsx)(`span`,{className:`shrink-0 font-mono text-sm uppercase tracking-wider text-sidebar-foreground/50`,children:(0,Z.jsx)(J,{id:`sER-bs`})}):null,t[82]=x,t[83]=Re);let Be;t[84]===Symbol.for(`react.memo_cache_sentinel`)?(Be=X(`flex items-center gap-1`,_&&`[&>*]:[-webkit-app-region:no-drag]`),t[84]=Be):Be=t[84];let Ve;t[85]===r?Ve=t[86]:(Ve=r({id:`Rq1vFD`}),t[85]=r,t[86]=Ve);let He;t[87]===Ve?He=t[88]:(He=(0,Z.jsx)(_$,{icon:jm,label:Ve}),t[87]=Ve,t[88]=He);let Ue;t[89]!==ae||t[90]!==i?(Ue=ae?(0,Z.jsxs)(qr,{onSelect:()=>i?.expandAll(),children:[(0,Z.jsx)(_h,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`OlAl5i`})]}):null,t[89]=ae,t[90]=i,t[91]=Ue):Ue=t[91];let We;t[92]!==oe||t[93]!==i?(We=oe?(0,Z.jsxs)(qr,{onSelect:()=>i?.collapseAll(),children:[(0,Z.jsx)(ym,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`qvWGzP`})]}):null,t[92]=oe,t[93]=i,t[94]=We):We=t[94];let Ge;t[95]===se?Ge=t[96]:(Ge=se?(0,Z.jsx)(Ur,{}):null,t[95]=se,t[96]=Ge);let Ke;t[97]===r?Ke=t[98]:(Ke=r({id:`8vETh9`}),t[97]=r,t[98]=Ke);let qe;t[99]===Symbol.for(`react.memo_cache_sentinel`)?(qe=(0,Z.jsx)(ii,{children:(0,Z.jsx)(J,{id:`8vETh9`})}),t[99]=qe):qe=t[99];let Je;t[100]===Te?Je=t[101]:(Je=e=>Te({showHiddenFiles:e}),t[100]=Te,t[101]=Je);let Ye=q===null,Ze;t[102]===Symbol.for(`react.memo_cache_sentinel`)?(Ze=(0,Z.jsx)(J,{id:`6KCH4m`}),t[102]=Ze):Ze=t[102];let Qe;t[103]!==te||t[104]!==Je||t[105]!==Ye?(Qe=(0,Z.jsx)($r,{checked:te,onCheckedChange:Je,disabled:Ye,"data-testid":`tree-options-show-hidden-files`,children:Ze}),t[103]=te,t[104]=Je,t[105]=Ye,t[106]=Qe):Qe=t[106];let $e;t[107]===Te?$e=t[108]:($e=e=>Te({showOkFolders:e}),t[107]=Te,t[108]=$e);let et=q===null,tt;t[109]===Symbol.for(`react.memo_cache_sentinel`)?(tt=(0,Z.jsx)(J,{id:`ELYtNJ`}),t[109]=tt):tt=t[109];let nt;t[110]!==ne||t[111]!==$e||t[112]!==et?(nt=(0,Z.jsx)($r,{checked:ne,onCheckedChange:$e,disabled:et,"data-testid":`tree-options-show-ok-folders`,children:tt}),t[110]=ne,t[111]=$e,t[112]=et,t[113]=nt):nt=t[113];let rt;t[114]===Te?rt=t[115]:(rt=e=>Te({showOnlyMarkdownFiles:e}),t[114]=Te,t[115]=rt);let it=q===null,at;t[116]===Symbol.for(`react.memo_cache_sentinel`)?(at=(0,Z.jsx)(J,{id:`5-o4kO`}),t[116]=at):at=t[116];let ot;t[117]!==re||t[118]!==rt||t[119]!==it?(ot=(0,Z.jsx)($r,{checked:re,onCheckedChange:rt,disabled:it,"data-testid":`tree-options-show-only-markdown-files`,children:at}),t[117]=re,t[118]=rt,t[119]=it,t[120]=ot):ot=t[120];let st;t[121]===Te?st=t[122]:(st=e=>Te({showSkillsSection:e}),t[121]=Te,t[122]=st);let ct=q===null,lt;t[123]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,Z.jsx)(J,{id:`PCSkw2`}),t[123]=lt):lt=t[123];let ut;t[124]!==ie||t[125]!==st||t[126]!==ct?(ut=(0,Z.jsx)($r,{checked:ie,onCheckedChange:st,disabled:ct,"data-testid":`tree-options-show-skills`,children:lt}),t[124]=ie,t[125]=st,t[126]=ct,t[127]=ut):ut=t[127];let dt;t[128]!==Ke||t[129]!==Qe||t[130]!==nt||t[131]!==ot||t[132]!==ut?(dt=(0,Z.jsxs)(Jr,{"aria-label":Ke,children:[qe,Qe,nt,ot,ut]}),t[128]=Ke,t[129]=Qe,t[130]=nt,t[131]=ot,t[132]=ut,t[133]=dt):dt=t[133];let ft;t[134]!==Ue||t[135]!==We||t[136]!==Ge||t[137]!==dt?(ft=(0,Z.jsxs)(Yr,{align:`end`,className:`min-w-52`,"data-testid":`tree-options-menu`,children:[Ue,We,Ge,dt]}),t[134]=Ue,t[135]=We,t[136]=Ge,t[137]=dt,t[138]=ft):ft=t[138];let pt;t[139]!==He||t[140]!==ft?(pt=(0,Z.jsxs)(ti,{children:[He,ft]}),t[139]=He,t[140]=ft,t[141]=pt):pt=t[141];let mt;t[142]===r?mt=t[143]:(mt=r({id:`HdkSiO`}),t[142]=r,t[143]=mt);let ht;t[144]!==g||t[145]!==i?(ht=()=>i?.startCreating(`file`,g),t[144]=g,t[145]=i,t[146]=ht):ht=t[146];let gt;t[147]!==mt||t[148]!==ht?(gt=(0,Z.jsx)(g$,{icon:rh,label:mt,onClick:ht}),t[147]=mt,t[148]=ht,t[149]=gt):gt=t[149];let _t;t[150]!==r||t[151]!==I||t[152]!==g||t[153]!==i?(_t=I?(0,Z.jsxs)(ti,{children:[(0,Z.jsx)(_$,{icon:Gi,label:r({id:`Uuj_R4`})}),(0,Z.jsx)(Yr,{align:`end`,className:`min-w-52`,onCloseAutoFocus:ue,children:(0,Z.jsx)(pY,{parentDir:g,onSelectTemplate:e=>{ce.current=!0,i?.createFromTemplate(g,e)},ItemComponent:qr})})]}):null,t[150]=r,t[151]=I,t[152]=g,t[153]=i,t[154]=_t):_t=t[154];let vt;t[155]===r?vt=t[156]:(vt=r({id:`96G6Re`}),t[155]=r,t[156]=vt);let yt;t[157]!==g||t[158]!==i?(yt=()=>i?.startCreating(`folder`,g),t[157]=g,t[158]=i,t[159]=yt):yt=t[159];let bt;t[160]!==vt||t[161]!==yt?(bt=(0,Z.jsx)(g$,{icon:xm,label:vt,onClick:yt}),t[160]=vt,t[161]=yt,t[162]=bt):bt=t[162];let xt;t[163]!==pt||t[164]!==gt||t[165]!==_t||t[166]!==bt?(xt=(0,Z.jsxs)(`div`,{"data-testid":`sidebar-toolbar`,className:Be,children:[pt,gt,_t,bt]}),t[163]=pt,t[164]=gt,t[165]=_t,t[166]=bt,t[167]=xt):xt=t[167];let St;t[168]!==Ie||t[169]!==Re||t[170]!==xt?(St=(0,Z.jsxs)(rN,{"data-electron-drag":_?``:void 0,className:Ie,children:[Le,Re,xt]}),t[168]=Ie,t[169]=Re,t[170]=xt,t[171]=St):St=t[171];let Ct=_&&x&&`motion-safe:delay-100`,wt=S&&`opacity-0`,Tt;t[172]!==Ct||t[173]!==wt?(Tt=X(`px-2 pb-2`,_&&`[-webkit-app-region:no-drag]`,_&&`motion-safe:transition-opacity motion-safe:duration-100 motion-safe:ease-out`,Ct,wt),t[172]=Ct,t[173]=wt,t[174]=Tt):Tt=t[174];let Et;t[175]===v?Et=t[176]:(Et=[v],t[175]=v,t[176]=Et);let Dt;t[177]===n?Dt=t[178]:(Dt=(0,Z.jsx)(gQ,{onClick:n}),t[177]=n,t[178]=Dt);let Ot;t[179]!==Et||t[180]!==Dt?(Ot=(0,Z.jsx)(ze,{fallbackRender:y$,onError:hQ,resetKeys:Et,children:Dt}),t[179]=Et,t[180]=Dt,t[181]=Ot):Ot=t[181];let At;t[182]!==Tt||t[183]!==Ot?(At=(0,Z.jsx)(`div`,{className:Tt,children:Ot}),t[182]=Tt,t[183]=Ot,t[184]=At):At=t[184];let jt;t[185]===Symbol.for(`react.memo_cache_sentinel`)?(jt=(0,Z.jsx)(YL,{}),t[185]=jt):jt=t[185];let Mt;t[186]===Symbol.for(`react.memo_cache_sentinel`)?(Mt=(0,Z.jsx)(_c,{className:`size-3.5 shrink-0`}),t[186]=Mt):Mt=t[186];let Nt;t[187]===H?Nt=t[188]:(Nt=(0,Z.jsx)(`span`,{className:`truncate`,children:H}),t[187]=H,t[188]=Nt);let Pt;t[189]===Symbol.for(`react.memo_cache_sentinel`)?(Pt=(0,Z.jsx)(ks,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-[state=open]/files:rotate-90`}),t[189]=Pt):Pt=t[189];let Ft;t[190]===Nt?Ft=t[191]:(Ft=(0,Z.jsx)(sN,{asChild:!0,className:`shrink-0`,children:(0,Z.jsxs)(Dn,{"data-sidebar-root-context":!0,className:`flex w-full items-center gap-1.5`,children:[Mt,Nt,Pt]})}),t[190]=Nt,t[191]=Ft);let It=o==null?`50vh`:`${o}px`,Lt;t[192]===It?Lt=t[193]:(Lt={height:It},t[192]=It,t[193]=Lt);let Rt;t[194]===Symbol.for(`react.memo_cache_sentinel`)?(Rt=(0,Z.jsx)(VX,{ref:a,onContentHeightChange:s}),t[194]=Rt):Rt=t[194];let zt;t[195]===Lt?zt=t[196]:(zt=(0,Z.jsx)(En,{className:`flex max-h-[70vh] flex-col overflow-hidden`,style:Lt,children:Rt}),t[195]=Lt,t[196]=zt);let Bt;t[197]!==Ft||t[198]!==zt?(Bt=(0,Z.jsx)(On,{defaultOpen:!0,className:`group/files flex shrink-0 flex-col`,children:(0,Z.jsxs)(oN,{className:`min-h-0 px-0`,children:[Ft,zt]})}),t[197]=Ft,t[198]=zt,t[199]=Bt):Bt=t[199];let Vt;t[200]===ie?Vt=t[201]:(Vt=ie?(0,Z.jsx)(_Q,{}):null,t[200]=ie,t[201]=Vt);let Ht;t[202]===i?Ht=t[203]:(Ht=(0,Z.jsx)(`div`,{"aria-hidden":!0,"data-sidebar-empty-deselect":!0,className:`min-h-8 flex-1 cursor-default`,onClick:()=>i?.clearCreationTarget()}),t[202]=i,t[203]=Ht);let Ut;t[204]!==Bt||t[205]!==Vt||t[206]!==Ht?(Ut=(0,Z.jsxs)(aN,{children:[jt,Bt,Vt,Ht]}),t[204]=Bt,t[205]=Vt,t[206]=Ht,t[207]=Ut):Ut=t[207];let Wt;t[208]===Symbol.for(`react.memo_cache_sentinel`)?(Wt=(0,Z.jsxs)(iN,{className:`px-0`,children:[(0,Z.jsx)(RZ,{}),(0,Z.jsx)(c$,{}),typeof window<`u`&&window.okDesktop?(0,Z.jsx)(uN,{children:(0,Z.jsx)(dN,{children:(0,Z.jsx)(oQ,{bridge:window.okDesktop})})}):null]}),t[208]=Wt):Wt=t[208];let Gt=!(b&&v===`collapsed`),Kt;t[209]===Gt?Kt=t[210]:(Kt=(0,Z.jsx)(tN,{enableToggle:!1,enableDrag:Gt}),t[209]=Gt,t[210]=Kt);let qt;t[211]!==St||t[212]!==At||t[213]!==Ut||t[214]!==Kt?(qt=(0,Z.jsx)(gF,{asChild:!0,children:(0,Z.jsxs)(`div`,{className:`contents`,onContextMenu:de,children:[St,At,Ut,Wt,Kt]})}),t[211]=St,t[212]=At,t[213]=Ut,t[214]=Kt,t[215]=qt):qt=t[215];let Jt=!R,Yt,Xt;t[216]===Symbol.for(`react.memo_cache_sentinel`)?(Yt=(0,Z.jsx)(rh,{"aria-hidden":`true`}),Xt=(0,Z.jsx)(J,{id:`HdkSiO`}),t[216]=Yt,t[217]=Xt):(Yt=t[216],Xt=t[217]);let Zt;t[218]!==pe||t[219]!==Jt?(Zt=(0,Z.jsxs)(bF,{disabled:Jt,onSelect:pe,"data-testid":`empty-space-menu-new-file`,children:[Yt,Xt]}),t[218]=pe,t[219]=Jt,t[220]=Zt):Zt=t[220];let Qt;t[221]!==he||t[222]!==F||t[223]!==R?(Qt=F?(0,Z.jsxs)(vF,{children:[(0,Z.jsxs)(xF,{disabled:!R,"data-testid":`empty-space-menu-new-from-template`,children:[(0,Z.jsx)(Gi,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`Uuj_R4`})]}),(0,Z.jsx)(SF,{children:(0,Z.jsx)(pY,{parentDir:``,onSelectTemplate:he,ItemComponent:bF})})]}):null,t[221]=he,t[222]=F,t[223]=R,t[224]=Qt):Qt=t[224];let $t=!R,en,tn;t[225]===Symbol.for(`react.memo_cache_sentinel`)?(en=(0,Z.jsx)(xm,{"aria-hidden":`true`}),tn=(0,Z.jsx)(J,{id:`96G6Re`}),t[225]=en,t[226]=tn):(en=t[225],tn=t[226]);let nn;t[227]!==_e||t[228]!==$t?(nn=(0,Z.jsxs)(bF,{disabled:$t,onSelect:_e,"data-testid":`empty-space-menu-new-folder`,children:[en,tn]}),t[227]=_e,t[228]=$t,t[229]=nn):nn=t[229];let rn;t[230]===Symbol.for(`react.memo_cache_sentinel`)?(rn=(0,Z.jsx)(TF,{}),t[230]=rn):rn=t[230];let an;t[231]!==r||t[232]!==ye||t[233]!==R?(an=L?(0,Z.jsxs)(bF,{disabled:!R,onSelect:ye,"data-testid":`empty-space-menu-reveal-in-finder`,"aria-label":r(R?{id:`LtSYdi`}:{id:`o2yoFu`}),children:[(0,Z.jsx)(_c,{"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`flex-1`,children:(0,Z.jsx)(J,{id:`LtSYdi`})}),R?null:(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:(0,Z.jsx)(J,{id:`wTcjov`})})]}):null,t[231]=r,t[232]=ye,t[233]=R,t[234]=an):an=t[234];let on;t[235]!==W||t[236]!==K||t[237]!==U?(on=(0,Z.jsx)(EZ,{input:K,installStates:U,dispatch:W}),t[235]=W,t[236]=K,t[237]=U,t[238]=on):on=t[238];let sn;t[239]!==Ce||t[240]!==B?(sn=B?(0,Z.jsxs)(bF,{onSelect:Ce,"data-testid":`empty-space-menu-share`,children:[(0,Z.jsx)($m,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`Z8lGw6`})]}):null,t[239]=Ce,t[240]=B,t[241]=sn):sn=t[241];let cn=!R,ln;t[242]!==r||t[243]!==R?(ln=r(R?{id:`Up2_7p`}:{id:`U8CD-l`}),t[242]=r,t[243]=R,t[244]=ln):ln=t[244];let un;t[245]===Symbol.for(`react.memo_cache_sentinel`)?(un=(0,Z.jsx)(gc,{"aria-hidden":`true`}),t[245]=un):un=t[245];let dn;t[246]===Symbol.for(`react.memo_cache_sentinel`)?(dn=(0,Z.jsx)(`span`,{className:`flex-1`,children:(0,Z.jsx)(J,{id:`Up2_7p`})}),t[246]=dn):dn=t[246];let fn;t[247]===R?fn=t[248]:(fn=R?null:(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:(0,Z.jsx)(J,{id:`wTcjov`})}),t[247]=R,t[248]=fn);let Y;t[249]!==xe||t[250]!==cn||t[251]!==ln||t[252]!==fn?(Y=(0,Z.jsxs)(bF,{disabled:cn,onSelect:xe,"data-testid":`empty-space-menu-copy-full-path`,"aria-label":ln,children:[un,dn,fn]}),t[249]=xe,t[250]=cn,t[251]=ln,t[252]=fn,t[253]=Y):Y=t[253];let pn;t[254]===Symbol.for(`react.memo_cache_sentinel`)?(pn=(0,Z.jsx)(TF,{}),t[254]=pn):pn=t[254];let mn;t[255]===Te?mn=t[256]:(mn=e=>Te({showHiddenFiles:e}),t[255]=Te,t[256]=mn);let hn=q===null,gn;t[257]===Symbol.for(`react.memo_cache_sentinel`)?(gn=(0,Z.jsx)(J,{id:`XcGbim`}),t[257]=gn):gn=t[257];let _n;t[258]!==te||t[259]!==mn||t[260]!==hn?(_n=(0,Z.jsx)(CF,{checked:te,onCheckedChange:mn,disabled:hn,"data-testid":`empty-space-menu-show-hidden-files`,children:gn}),t[258]=te,t[259]=mn,t[260]=hn,t[261]=_n):_n=t[261];let vn;t[262]===Te?vn=t[263]:(vn=e=>Te({showOkFolders:e}),t[262]=Te,t[263]=vn);let yn=q===null,bn;t[264]===Symbol.for(`react.memo_cache_sentinel`)?(bn=(0,Z.jsx)(J,{id:`GHsJb8`}),t[264]=bn):bn=t[264];let xn;t[265]!==ne||t[266]!==vn||t[267]!==yn?(xn=(0,Z.jsx)(CF,{checked:ne,onCheckedChange:vn,disabled:yn,"data-testid":`empty-space-menu-show-ok-folders`,children:bn}),t[265]=ne,t[266]=vn,t[267]=yn,t[268]=xn):xn=t[268];let Sn;t[269]===Te?Sn=t[270]:(Sn=e=>Te({showOnlyMarkdownFiles:e}),t[269]=Te,t[270]=Sn);let Cn=q===null,wn;t[271]===Symbol.for(`react.memo_cache_sentinel`)?(wn=(0,Z.jsx)(J,{id:`WkTLN7`}),t[271]=wn):wn=t[271];let Tn;t[272]!==re||t[273]!==Sn||t[274]!==Cn?(Tn=(0,Z.jsx)(CF,{checked:re,onCheckedChange:Sn,disabled:Cn,"data-testid":`empty-space-menu-show-only-markdown-files`,children:wn}),t[272]=re,t[273]=Sn,t[274]=Cn,t[275]=Tn):Tn=t[275];let kn;t[276]===Te?kn=t[277]:(kn=e=>Te({showSkillsSection:e}),t[276]=Te,t[277]=kn);let An=q===null,jn;t[278]===Symbol.for(`react.memo_cache_sentinel`)?(jn=(0,Z.jsx)(J,{id:`NF_Wcg`}),t[278]=jn):jn=t[278];let Mn;t[279]!==ie||t[280]!==kn||t[281]!==An?(Mn=(0,Z.jsx)(CF,{checked:ie,onCheckedChange:kn,disabled:An,"data-testid":`empty-space-menu-show-skills-section`,children:jn}),t[279]=ie,t[280]=kn,t[281]=An,t[282]=Mn):Mn=t[282];let Nn;t[283]===se?Nn=t[284]:(Nn=se?(0,Z.jsx)(TF,{}):null,t[283]=se,t[284]=Nn);let Pn;t[285]!==De||t[286]!==ae?(Pn=ae?(0,Z.jsxs)(bF,{onSelect:De,"data-testid":`empty-space-menu-expand-all`,children:[(0,Z.jsx)(_h,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`OlAl5i`})]}):null,t[285]=De,t[286]=ae,t[287]=Pn):Pn=t[287];let Fn;t[288]!==ke||t[289]!==oe?(Fn=oe?(0,Z.jsxs)(bF,{onSelect:ke,"data-testid":`empty-space-menu-collapse-all`,children:[(0,Z.jsx)(ym,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`qvWGzP`})]}):null,t[288]=ke,t[289]=oe,t[290]=Fn):Fn=t[290];let In;t[291]!==sn||t[292]!==Y||t[293]!==_n||t[294]!==xn||t[295]!==Tn||t[296]!==Mn||t[297]!==Nn||t[298]!==Pn||t[299]!==Fn||t[300]!==Zt||t[301]!==Qt||t[302]!==nn||t[303]!==an||t[304]!==on?(In=(0,Z.jsxs)(yF,{className:`min-w-52`,onCloseAutoFocus:ue,children:[Zt,Qt,nn,rn,an,on,sn,Y,pn,_n,xn,Tn,Mn,Nn,Pn,Fn]}),t[291]=sn,t[292]=Y,t[293]=_n,t[294]=xn,t[295]=Tn,t[296]=Mn,t[297]=Nn,t[298]=Pn,t[299]=Fn,t[300]=Zt,t[301]=Qt,t[302]=nn,t[303]=an,t[304]=on,t[305]=In):In=t[305];let Ln;return t[306]!==In||t[307]!==qt?(Ln=(0,Z.jsx)($M,{variant:`inset`,children:(0,Z.jsxs)(hF,{children:[qt,In]})}),t[306]=In,t[307]=qt,t[308]=Ln):Ln=t[308],Ln}function y$(){return null}function b$(e){return console.log(e)}function x$(e){return ol.error(e)}function S$(e){return ol.success(e)}function C$(e){e.target instanceof Element&&e.target.closest(`[data-sidebar-root-context]`)||m$(e.target)&&(e.preventDefault(),e.stopPropagation())}var w$=(0,Q.lazy)(()=>n(()=>import(`./McpConsentDialogBody-DoSFKWJ-.js`),__vite__mapDeps([111,1,6,2,3,7,8,9,10,11,12,13,14,15,16,17,18,19,20,91,22,46,80,81,28,112]),import.meta.url));function T$(){let e=(0,$.c)(1);if(!(0,Q.useSyncExternalStore)(Ad.subscribe,D$,E$))return null;let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(Q.Suspense,{fallback:null,children:(0,Z.jsx)(w$,{})}),e[0]=t):t=e[0],t}function E$(){return!1}function D$(){return Ad.getSnapshot()!==null}function O$(e){let t=(0,$.c)(5),{bridge:n}=e,[r,i]=(0,Q.useState)(!1),a,o;t[0]===n?(a=t[1],o=t[2]):(a=()=>n.onMenuAction(e=>{e===`report-bug`&&i(!0)}),o=[n],t[0]=n,t[1]=a,t[2]=o),(0,Q.useEffect)(a,o);let s;return t[3]===r?s=t[4]:(s=(0,Z.jsx)(Of,{open:r,onOpenChange:i}),t[3]=r,t[4]=s),s}function k$(){let e=(0,$.c)(17),t=nn(),{collabUrl:n,setSystemProvider:r,updateServerInstanceId:i,onBranchSwitched:a,observeBranch:o,observeDiskAck:s,refreshServerInfo:c}=Xe(),l;e[0]!==o||e[1]!==s||e[2]!==a||e[3]!==c||e[4]!==i?(l={updateServerInstanceId:i,onBranchSwitched:a,observeBranch:o,observeDiskAck:s,refreshServerInfo:c},e[0]=o,e[1]=s,e[2]=a,e[3]=c,e[4]=i,e[5]=l):l=e[5];let u=(0,Q.useRef)(l),d;e[6]!==o||e[7]!==s||e[8]!==a||e[9]!==c||e[10]!==i?(d=()=>{u.current={updateServerInstanceId:i,onBranchSwitched:a,observeBranch:o,observeDiskAck:s,refreshServerInfo:c}},e[6]=o,e[7]=s,e[8]=a,e[9]=c,e[10]=i,e[11]=d):d=e[11],(0,Q.useEffect)(d);let f,p;return e[12]!==n||e[13]!==t||e[14]!==r?(f=()=>{if(n===null)return;let e=new fu,i=new uu({url:n,name:ya,document:e,onStateless:e=>{let{payload:t}=e;F(t,{onServerInfo:e=>{u.current.updateServerInstanceId(e.serverInstanceId),e.currentBranch!==void 0&&u.current.observeBranch(e.currentBranch)},onBranchSwitched:e=>{u.current.onBranchSwitched(e.branch)},onDiskAck:e=>{u.current.observeDiskAck(e.docName,e.sv)},onDerivedView:F$,onConfigValidationRejected:P$,onConfigIgnoreNestedError:N$,onUnknown:M$})},onClose:j$,onDisconnect:A$}),a=Ll(e=>{(e.includes(`files`)||e.includes(`backlinks`))&&(t.invalidateQueries({queryKey:[`backlinks`]}),t.invalidateQueries({queryKey:[`forward-links`]})),(e.includes(`files`)||e.includes(`graph`))&&(t.invalidateQueries({queryKey:[`orphans`]}),t.invalidateQueries({queryKey:[`hubs`]}))}),o=b(()=>{u.current.refreshServerInfo()});i.on(`synced`,()=>{Il([`files`,`backlinks`,`graph`]),o()});let s=new Set,c=()=>{if(i.awareness)for(let[e,t]of i.awareness.getStates().entries())s.has(e)||t.user?.type===`agent`&&(s.add(e),console.warn(`[agent-presence] observed stale AwarenessUser.type === 'agent' from clientID ${e} — probably a stale bundled client`))};return i.awareness?.on(`change`,c),r(i),()=>{a(),i.awareness?.off(`change`,c),r(null),i.destroy(),e.destroy()}},p=[t,n,r],e[12]=n,e[13]=t,e[14]=r,e[15]=f,e[16]=p):(f=e[15],p=e[16]),(0,Q.useEffect)(f,p),null}function A$(){console.warn(`[CC1] __system__ disconnected - derived views may be stale`)}function j$(e){let{event:t}=e;console.warn(`[CC1] __system__ connection closed:`,t.code,t.reason)}function M$(e){console.warn(`[CC1] Unparseable stateless payload, skipping:`,e.slice(0,100))}function N$(e){Pi(e)}function P$(e){Zi(e)}function F$(e){Il([e.ch])}function I$(e){let t=et(e);if(t)return{scope:`project`,name:t};let n=Ko(e);return n?.kind===`skill`?{scope:n.scope,name:n.name}:null}function L$(e,t){let n=new Set(t.map(e=>`${e.scope}\u0000${e.name}`)),r=[];for(let t of e){let e=I$(t);if(!e||n.has(`${e.scope}\u0000${e.name}`))continue;let i=e.scope===`project`?`global`:`project`;n.has(`${i}\u0000${e.name}`)?r.push({kind:`retarget`,fromDocName:t,toDocName:Ea(i,e.name)}):r.push({kind:`close`,docName:t})}return r}function R$(){let e=(0,$.c)(13),{openTabs:t,closeDocument:n}=Xe(),r;e[0]===t?r=e[1]:(r=t.some(B$),e[0]=t,e[1]=r);let i=r,a;e[2]===i?a=e[3]:(a={enabled:i},e[2]=i,e[3]=a);let o=Js(a),s=(0,Q.useRef)(null),c;e[4]!==n||e[5]!==t||e[6]!==o.data||e[7]!==o.status?(c=()=>{if(o.status!==`ready`)return;let e=o.data,r=`${t.join(``)}\u0002${e.map(z$).sort().join(``)}`;if(s.current===r)return;s.current=r;let i=L$(t,e);for(let e of i)e.kind===`retarget`?(kc(e.toDocName),n(e.fromDocName)):n(e.docName)},e[4]=n,e[5]=t,e[6]=o.data,e[7]=o.status,e[8]=c):c=e[8];let l;e[9]!==n||e[10]!==t||e[11]!==o?(l=[o,t,n],e[9]=n,e[10]=t,e[11]=o,e[12]=l):l=e[12],(0,Q.useEffect)(c,l)}function z$(e){return`${e.scope}\u0000${e.name}`}function B$(e){return I$(e)!==null}var V$=1e3,H$=3e4;function U$(e){let t=e.scheduler??{setTimeout:(e,t)=>globalThis.setTimeout(e,t),clearTimeout:e=>globalThis.clearTimeout(e)},n=e.initialBackoffMs??V$,r=e.maxBackoffMs??H$,i=e.rng??Math.random,a=e.createWebSocket??(e=>new WebSocket(e)),o=e.logger??null,s=e.log,c=null,l=null,u=!1,d=n;function f(e,t,n){try{o?o[e](t,n):s?.(t)}catch{}}function p(){if(u)return;l!==null&&t.clearTimeout(l);let e=d;d=Math.min(d*2,r);let n=i(),a=Math.max(1,Math.floor(e*(1-n/2)));f(`debug`,`scheduling reconnect`,{backoffMs:a,ceilMs:e}),l=t.setTimeout(()=>{l=null,m().catch(e=>f(`warn`,`reconnect failed`,{error:String(e)}))},a)}async function m(){if(u)return;let t;try{t=await e.resolveWsUrl()}catch(e){f(`warn`,`resolveWsUrl threw`,{error:String(e)}),p();return}if(!t){p();return}let r=[];e.pid!==void 0&&r.push(`pid=${encodeURIComponent(String(e.pid))}`),e.connectionId&&r.push(`connectionId=${encodeURIComponent(e.connectionId)}`),e.connectionId&&e.displayName!==void 0&&e.clientName!==void 0&&e.colorSeed!==void 0&&(r.push(`displayName=${encodeURIComponent(e.displayName)}`),r.push(`clientName=${encodeURIComponent(e.clientName)}`),r.push(`colorSeed=${encodeURIComponent(e.colorSeed)}`));let i=r.length>0?`?${r.join(`&`)}`:``,o=`${t}/collab/keepalive${i}`;try{c=a(o)}catch(e){f(`warn`,`WebSocket constructor failed`,{url:o,error:String(e)}),c=null,p();return}c.addEventListener(`open`,()=>{f(`info`,`connected`,{url:t}),d=n}),c.addEventListener(`close`,()=>{u||(f(`info`,`disconnected`,{url:t}),c=null,p())}),c.addEventListener(`error`,()=>{f(`debug`,`websocket error observed`,{url:t,readyState:c?.readyState,reason:`error-event`})})}return queueMicrotask(()=>{m().catch(e=>f(`warn`,`initial connect failed`,{error:String(e)}))}),{close:()=>{if(!u&&(u=!0,l!==null&&(t.clearTimeout(l),l=null),c)){try{c.close()}catch{}c=null}},isConnected:()=>c!==null&&c.readyState===1}}function W$(e){if(e)return e.replace(/\/collab\/?$/,``)}function G$(){return N(window)!==null}function K$(e,t){let n=(0,$.c)(5),r=(0,Q.useRef)(e),i=(0,Q.useRef)(t),a,o;n[0]===e?(a=n[1],o=n[2]):(a=()=>{r.current=e},o=[e],n[0]=e,n[1]=a,n[2]=o),(0,Q.useEffect)(a,o);let s,c;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=i.current?.startKeepalive??U$;if((i.current?.isElectronHost??G$)())return;let t=e({resolveWsUrl:async()=>W$(r.current)});return()=>t.close()},c=[],n[3]=s,n[4]=c):(s=n[3],c=n[4]),(0,Q.useEffect)(s,c)}var q$=(0,Q.lazy)(()=>n(()=>import(`./ShareBranchSwitchDialog-uskl1Wv4.js`).then(e=>({default:e.ShareBranchSwitchDialog})),__vite__mapDeps([113,1,9,10,15,19,14,16,20,75,24,114,81,115,116,117,6,2,3,7,8,118]),import.meta.url)),J$=(0,Q.lazy)(()=>n(()=>import(`./ShareReceiveMissDialog-BaOnOALv.js`).then(e=>({default:e.ShareReceiveMissDialog})),__vite__mapDeps([119,1,19,9,10,14,15,16,20,120,94,6,2,3,7,8,68,54,69,70,79,81,50,46,18,71,80,24,114,96,25,28,49]),import.meta.url)),Y$=`#install-claude-desktop`,X$=/\.(md|mdx)$/i;function Z$(e){return e===`#settings`||e===Y$}function Q$(e,t){if(!X$.test(e))return null;for(let n of t){let t=Qe(n);if(t.kind===`doc`&&t.docName===e)return{kind:`doc`,target:e,docName:e}}return null}function $$(e,t,n,r){return[e,t,n,r].map(e=>[...e].sort().join(`\0`)).join(``)}function e1(){let e=(0,$.c)(26),{clearTarget:t,openTabs:n,syncOpenTabsWithKnownTargets:r,tabSessionLoaded:i}=Xe(),{openTargetTransition:a}=ot();R$();let{assetPaths:o,filePaths:s,folderPaths:c,loading:l,pageMeta:u,pages:d,pagesBySlug:f,pagesByBasename:p}=Ns(),m=(0,Q.useRef)(null),h;e[0]!==o||e[1]!==s||e[2]!==c||e[3]!==d?(h=$$(d,c,o,s),e[0]=o,e[1]=s,e[2]=c,e[3]=d,e[4]=h):h=e[4];let g=h,_,v;e[5]!==o||e[6]!==s||e[7]!==c||e[8]!==l||e[9]!==d||e[10]!==r||e[11]!==i||e[12]!==g?(_=()=>{l||!i||m.current===g||(m.current=g,r({pages:d,folderPaths:c,assetPaths:o,filePaths:s}))},v=[o,s,c,l,d,r,i,g],e[5]=o,e[6]=s,e[7]=c,e[8]=l,e[9]=d,e[10]=r,e[11]=i,e[12]=g,e[13]=_,e[14]=v):(_=e[13],v=e[14]),(0,Q.useEffect)(_,v);let y,b;return e[15]!==t||e[16]!==c||e[17]!==l||e[18]!==n||e[19]!==a||e[20]!==u||e[21]!==d||e[22]!==p||e[23]!==f?(y=()=>{e();function e(){if(Z$(window.location.hash))return;let e=Xl(window.location.hash);if(e){let t=Fo(e.split(`.`).pop()??``);Vl(`ok/nav/hash-change`,{docName:null,kind:`asset`}),a({kind:`asset`,target:e,assetPath:e,mediaKind:t});return}let r=ql(window.location.hash);if(r){Vl(`ok/nav/hash-change`,{docName:null,kind:`skill-file`}),a({kind:`skill-file`,target:`${r.scope}/${r.name}/${r.path}`,scope:r.scope,name:r.name,path:r.path});return}if(tu(window.location.hash)){Vl(`ok/nav/hash-change`,{docName:null,kind:`folder`}),a({kind:`folder`,target:``,folderPath:``});return}let i=Ql(window.location.hash);if(!i){Vl(`ok/nav/hash-change`,{docName:null,kind:`clear`}),t();return}if(l){Vl(`ok/nav/hash-change`,{docName:i,kind:`deferred-loading`});return}let o=Q$(i,n)??Ol(i,{pages:d,folderPaths:c,pagesBySlug:f,pagesByBasename:p});if(o.kind===`missing`&&/\/+$/.test(i.trim())){Vl(`ok/nav/hash-change`,{docName:i,kind:`deferred-missing-folder`});return}let s=Al(kl(o),u);Vl(`ok/nav/hash-change`,{docName:i,kind:s.kind}),a(s)}return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},b=[t,c,l,a,n,u,d,f,p],e[15]=t,e[16]=c,e[17]=l,e[18]=n,e[19]=a,e[20]=u,e[21]=d,e[22]=p,e[23]=f,e[24]=y,e[25]=b):(y=e[24],b=e[25]),(0,Q.useEffect)(y,b),null}function t1(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,Q.useEffect)(n1,t),null}function n1(){let e=function(e){let t=e.target;Mi({target:t,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,key:e.key})&&(e.preventDefault(),window.location.hash!==`#settings`&&(window.location.hash=Ai))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)}function r1(){let e=(0,$.c)(4),{activeTarget:t}=Xe(),n=typeof window<`u`?window.okDesktop??null:null,r=t?.kind===`doc`||t?.kind===`folder`||t?.kind===`asset`?t.kind:null,i=t?.kind===`doc`?t.docName:t?.kind===`folder`?t.folderPath:t?.kind===`asset`?t.assetPath:null,a,o;return e[0]!==i||e[1]!==r?(a=()=>{if(n){if(r===null){n.editor.notifyActiveTargetChanged({kind:null});return}i!==null&&n.editor.notifyActiveTargetChanged({kind:r,identifier:i})}},o=[n,r,i],e[0]=i,e[1]=r,e[2]=a,e[3]=o):(a=e[2],o=e[3]),(0,Q.useEffect)(a,o),null}function i1(){let e=(0,$.c)(8),{activeDocName:t,activeTarget:n}=Xe(),[r,i]=(0,Q.useState)(!1),a;e[0]!==t||e[1]!==n?(a=n?.kind===`folder`?n.folderPath:Cl(t),e[0]=t,e[1]=n,e[2]=a):a=e[2];let o=a,s,c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=function(e){let t=e.target;kg({target:t,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,key:e.key})&&(e.preventDefault(),i(!0))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},c=[],e[3]=s,e[4]=c):(s=e[3],c=e[4]),(0,Q.useEffect)(s,c);let l;return e[5]!==r||e[6]!==o?(l=(0,Z.jsx)(jg,{open:r,onOpenChange:i,kind:`file`,initialDir:o}),e[5]=r,e[6]=o,e[7]=l):l=e[7],l}function a1(e){let t=(0,$.c)(3),{children:n}=e,{collabUrl:r}=Xe();K$(r);let i;return t[0]!==n||t[1]!==r?(i=(0,Z.jsx)(mu,{collabUrl:r,children:n}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}function o1(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(Hl,{name:`app`,children:(0,Z.jsx)(ft,{children:(0,Z.jsx)(a1,{children:(0,Z.jsx)(__,{children:(0,Z.jsx)(s1,{})})})})}),e[0]=t):t=e[0],t}function s1(){let e=(0,$.c)(29),t=typeof window<`u`?window.okDesktop??null:null,n=typeof window<`u`&&window.okDesktop!=null,[r,i]=(0,Q.useState)(!1),a=b_(),o=cv(),s;e[0]===o?s=e[1]:(s=t?{launchInTerminal:c1,installedClis:o}:null,e[0]=o,e[1]=s);let c=s,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Z.jsx)(q_,{}),e[2]=l):l=e[2];let u,d,f,p;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(k$,{}),d=(0,Z.jsx)(e1,{}),f=(0,Z.jsx)(r1,{}),p=(0,Z.jsx)(i1,{}),e[3]=u,e[4]=d,e[5]=f,e[6]=p):(u=e[3],d=e[4],f=e[5],p=e[6]);let m;e[7]===a?m=e[8]:(m=!a&&(0,Z.jsx)(t1,{}),e[7]=a,e[8]=m);let h,g,_,v,y;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=!1,v=t?(0,Z.jsx)(J_,{bridge:t}):null,y=t?(0,Z.jsx)(O$,{bridge:t}):null,h=(0,Z.jsx)(T$,{}),g=t?(0,Z.jsxs)(Q.Suspense,{fallback:null,children:[(0,Z.jsx)(q$,{bridge:t}),(0,Z.jsx)(J$,{})]}):null,e[9]=h,e[10]=g,e[11]=_,e[12]=v,e[13]=y):(h=e[9],g=e[10],_=e[11],v=e[12],y=e[13]);let b;e[14]===r?b=e[15]:(b=(0,Z.jsx)(I_,{bridge:t,open:r,onOpenChange:i}),e[14]=r,e[15]=b);let x;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(x=n&&(0,Z.jsx)(`div`,{"aria-hidden":`true`,"data-testid":`editor-window-chrome-drag-strip`,"data-electron-drag":``,className:`pointer-events-none fixed inset-x-0 top-0 z-50 h-2 [-webkit-app-region:drag]`}),e[16]=x):x=e[16];let S;e[17]===a?S=e[18]:(S=!a&&(0,Z.jsx)(h$,{onOpenSearch:()=>i(!0)}),e[17]=a,e[18]=S);let C;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,Z.jsx)(nN,{className:`overflow-hidden h-[calc(100vh-var(--layout-inset-offset))]`,children:(0,Z.jsx)(WL,{onOpenSearch:()=>i(!0)})}),e[19]=C):C=e[19];let w;e[20]===S?w=e[21]:(w=(0,Z.jsxs)(XM,{className:`h-screen overflow-hidden`,children:[S,C]}),e[20]=S,e[21]=w);let T;e[22]!==w||e[23]!==c?(T=(0,Z.jsx)(nc,{value:c,children:w}),e[22]=w,e[23]=c,e[24]=T):T=e[24];let E;return e[25]!==b||e[26]!==T||e[27]!==m?(E=(0,Z.jsxs)(Z.Fragment,{children:[l,(0,Z.jsxs)(Ps,{children:[u,d,f,p,m,_,v,y,h,g,b,x,T]})]}),e[25]=b,e[26]=T,e[27]=m,e[28]=E):E=e[28],E}function c1(e,t){cL(Hs(e,t),t)}function l1(e){let t=/\/([^/]+?)(?:\.git)?\/?$/.exec(e);return t?t[1]:`repo`}function u1(e){return{async getAuthStatus(){return e.authQueryTransport.status()},async startSignIn(){return e.openSignIn()},async runClone({url:t,branch:n}){let r=await e.bridge.dialog.openFolder();if(!r)return{kind:`cancelled`};let i=l1(t),a=`${r.replace(/\/$/,``)}/${i}`,o=ol.loading(ml._({id:`GXf9hG`,values:{repoName:i}}),{duration:1/0}),s=typeof n==`string`&&n.length>0?n:null;try{let n=e.cloneTransport.start({url:t,dir:a,branch:s});for await(let e of n.events){if(e.type===`progress`){let t=e.phase,n=Math.round(e.pct);ol.loading(ml._({id:`GXf9hG`,values:{repoName:i}}),{id:o,description:ml._({id:`SCzAbA`,values:{phase:t,pct:n}}),duration:1/0});continue}if(e.type===`branch-fallback`){console.log(Md({branch_action:`fallback`,branch:e.branch})),ol.info(ml._({id:`3JYy1p`,values:{0:e.branch}}),{duration:8e3});continue}if(e.type===`complete`)return ol.success(ml._({id:`IRv9cH`,values:{repoName:i}}),{id:o,duration:4e3}),{kind:`ok`,dir:e.dir};if(e.type===`error`)return ol.dismiss(o),{kind:`error`,detail:e.message}}return ol.dismiss(o),{kind:`error`,detail:`Clone ended unexpectedly.`}}catch(e){console.warn(`[clone-controller] clone transport threw`,e);let t=e instanceof Error?e.message:`Unknown error`;return ol.dismiss(o),{kind:`error`,detail:t}}}}}function d1(){return{start(e){return bi((t,n)=>{(async()=>{try{let r=await fetch(`/api/local-op/clone`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({url:e.url,dir:e.dir||void 0,branch:typeof e.branch==`string`&&e.branch.length>0?e.branch:void 0}),signal:n});if(!r.ok){let e=`Clone failed — check the URL and try again (${r.status})`;try{let t=await r.json(),n=fo.safeParse(t);n.success&&(e=`Clone failed: ${n.data.title}`)}catch{}t({type:`error`,message:e});return}if(!r.body){t({type:`error`,message:`Clone failed — empty response body`});return}let i=r.body.getReader(),a=new TextDecoder,o=``;for(;;){let{done:e,value:r}=await i.read();if(e)break;o+=a.decode(r,{stream:!0});let s=o.split(`
2006
- `);o=s.pop()??``;for(let e of s){if(!e.trim())continue;let n;try{n=JSON.parse(e)}catch{console.warn(`[clone-transport] Dropped unparseable NDJSON line:`,e.slice(0,100));continue}if(n&&typeof n==`object`&&n.type===`error`&&`problem`in n){let e=n.problem;t({type:`error`,message:e?.detail||e?.title||`Unknown error`});break}t(n)}if(n.aborted)break}n.aborted||t({type:`error`,message:`Clone stream ended unexpectedly — check if the clone completed`})}catch(e){if(e instanceof Error&&e.name===`AbortError`)return;t({type:`error`,message:`Clone failed — connection error`})}})()})}}}function f1(e){return{start(t){let n=typeof t.branch==`string`&&t.branch.length>0?t.branch:null;return e.localOp.clone.start({url:t.url,dir:t.dir,branch:n})}}}function p1(e){switch(e){case`receiving`:return{id:`qbfj1f`};case`resolving`:return{id:`adsMWO`};case`checking`:return{id:`1HBhDS`};case`init`:return{id:`LlHqdU`};case`done`:return{id:`bD8I7O`};default:return{id:`25Pw6a`}}}function m1(e){let t=e.trim();if(/^[\w.-]+\/[\w.-]+$/.test(t))return t.split(`/`)[1];try{return new URL(t.replace(/^git@([^:]+):/,`https://$1/`)).pathname.replace(/\.git$/,``).split(`/`).pop()??`repo`}catch{return t.split(`/`).pop()?.replace(/\.git$/,``)??`repo`}}function h1(e){let t=(0,$.c)(100),{open:n,onOpenChange:r,onSignIn:i,onCloneComplete:a,transport:o,authQueryTransport:s,pickParentFolder:c,initialUrl:l}=e,{_:u}=kt(),d;t[0]===o?d=t[1]:(d=o??d1(),t[0]=o,t[1]=d);let p=d,m;t[2]===s?m=t[3]:(m=s??Xi(),t[2]=s,t[3]=m);let h=m,g=c!==void 0,[_,v]=(0,Q.useState)(``),[y,b]=(0,Q.useState)(``),[x,S]=(0,Q.useState)(null),[C,w]=(0,Q.useState)(!1),T;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(T=$i(),t[4]=T):T=t[4];let[E,D]=(0,Q.useState)(T),[O,k]=(0,Q.useState)(!1),[A,j]=(0,Q.useState)(!1),[M,N]=(0,Q.useState)(-1),P=(0,Q.useRef)(null),F=(0,Q.useRef)(null),I=(0,Q.useRef)(null),L=(0,Q.useId)(),R;t[5]!==n||t[6]!==h?(R=()=>{if(!n)return;let e=!1;return h.status().then(t=>{qi(t.authenticated),e||D(t.authenticated)}).catch(()=>{e||D(!1)}),()=>{e=!0}},t[5]=n,t[6]=h,t[7]=R):R=t[7];let z;t[8]===n?z=t[9]:(z=[n],t[8]=n,t[9]=z),(0,Q.useEffect)(R,z);let B;t[10]!==E||t[11]!==n||t[12]!==h?(B=()=>{if(!E||!n)return;let e=!1;return w(!0),h.repos().then(t=>{e||(S(t.ok?t.repos:[]),w(!1))}).catch(()=>{e||(S([]),w(!1))}),()=>{e=!0}},t[10]=E,t[11]=n,t[12]=h,t[13]=B):B=t[13];let V;t[14]!==E||t[15]!==n?(V=[E,n],t[14]=E,t[15]=n,t[16]=V):V=t[16],(0,Q.useEffect)(B,V);let H,U;t[17]!==l||t[18]!==n||t[19]!==g?(H=()=>{if(!n||!l||(v(l),g))return;let e=m1(l);e&&b(`~/Documents/${e}`)},U=[n,l,g],t[17]=l,t[18]=n,t[19]=g,t[20]=H,t[21]=U):(H=t[20],U=t[21]),(0,Q.useEffect)(H,U);let W,G;t[22]!==M||t[23]!==L?(W=()=>{M<0||document.getElementById(`${L}-opt-${M}`)?.scrollIntoView({block:`nearest`})},G=[M,L],t[22]=M,t[23]=L,t[24]=W,t[25]=G):(W=t[24],G=t[25]),(0,Q.useEffect)(W,G);let K;t[26]===g?K=t[27]:(K=function(e){if(v(e),j(!0),N(-1),g)return;let t=m1(e);t&&b(`~/Documents/${t}`)},t[26]=g,t[27]=K);let q=K,ee;t[28]===g?ee=t[29]:(ee=function(e){if(v(e.clone_url),g)return;let t=e.full_name.split(`/`)[1];b(`~/Documents/${t}`)},t[28]=g,t[29]=ee);let te=ee,ne;t[30]!==u||t[31]!==y||t[32]!==a||t[33]!==r||t[34]!==c||t[35]!==p||t[36]!==_?(ne=async function(){let e=_.trim();if(!e){ol.error(u({id:`FTUGgh`}));return}let t=y||``;if(c){k(!0);let n=await c();if(!n){k(!1);return}let r=m1(e);t=`${n.replace(/\/$/,``)}/${r}`}else k(!0);let n=ol.loading(u({id:`2tgFCe`}),{duration:1/0});F.current=n;let i=p.start({url:e,dir:t});P.current=i.cancel;try{let e=i.events[Symbol.asyncIterator](),t=await e.next();for(;!t.done;){let i=t.value;if(i.type===`progress`){let e=u(p1(i.phase));ol.loading(`${e} — ${i.pct}%`,{id:n})}else if(i.type===`complete`){ol.success(u({id:`u_lS4C`}),{id:n}),r(!1),k(!1),P.current=null;let e=`port`in i?i.port:void 0;a?a({port:e,dir:i.dir}):e!==void 0&&(window.location.href=`http://localhost:${e}`);return}else if(i.type===`error`){let e=i.message;ol.error(u({id:`eFJkVt`,values:{cloneError:e}}),{id:n}),k(!1),P.current=null;return}t=await e.next()}ol.error(u({id:`Tz9pJB`}),{id:n}),k(!1),P.current=null}catch(e){console.error(`[CloneDialog] clone iteration failed:`,e),ol.error(u({id:`K9J00P`}),{id:n}),k(!1),P.current=null}},t[30]=u,t[31]=y,t[32]=a,t[33]=r,t[34]=c,t[35]=p,t[36]=_,t[37]=ne):ne=t[37];let re=ne,ae;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(ae=function(){P.current?.(),P.current=null,k(!1),ol.dismiss(F.current??void 0)},t[38]=ae):ae=t[38];let oe=ae,se;t[39]!==O||t[40]!==r||t[41]!==g?(se=function(e){O||(r(e),e||(v(``),g||b(``),j(!1),N(-1)))},t[39]=O,t[40]=r,t[41]=g,t[42]=se):se=t[42];let ce=se,le;t[43]===te?le=t[44]:(le=function(e){te(e),j(!1),N(-1),I.current?.focus()},t[43]=te,t[44]=le);let ue=le,de=E===null||C&&x===null,fe;if(t[45]!==x||t[46]!==_){let e=_.trim().toLowerCase(),n;t[48]===x?n=t[49]:(n=x??[],t[48]=x,t[49]=n),fe=n.filter(t=>`${t.full_name} ${t.clone_url}`.toLowerCase().includes(e)),t[45]=x,t[46]=_,t[47]=fe}else fe=t[47];let pe=fe,me;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(me=/:\/\/|^git@|\.git$/i,t[50]=me):me=t[50];let he;t[51]===_?he=t[52]:(he=me.test(_.trim()),t[51]=_,t[52]=he);let ge=he,_e=E===!0&&x!==null&&pe.length===0&&!ge,ve=A&&E!==!1&&!O&&(de||pe.length>0||_e),ye=pe.length,be=`${L}-loading`,xe,Se;t[53]===ye?(xe=t[54],Se=t[55]):(xe=()=>{N(e=>e>=ye?ye-1:e)},Se=[ye],t[53]=ye,t[54]=xe,t[55]=Se),(0,Q.useEffect)(xe,Se);let Ce;t[56]!==M||t[57]!==O||t[58]!==ve||t[59]!==ue||t[60]!==pe?(Ce=function(e){if(!O)if(e.key===`ArrowDown`){if(e.preventDefault(),!ve){j(!0);return}N(e=>Math.min(e+1,pe.length-1))}else e.key===`ArrowUp`?(e.preventDefault(),N(x1)):e.key===`Enter`?ve&&M>=0&&M<pe.length&&(e.preventDefault(),ue(pe[M])):e.key===`Escape`&&ve&&(e.preventDefault(),e.stopPropagation(),j(!1),N(-1))},t[56]=M,t[57]=O,t[58]=ve,t[59]=ue,t[60]=pe,t[61]=Ce):Ce=t[61];let we=Ce,Te;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(Te=(0,Z.jsx)(Pn,{children:(0,Z.jsx)(An,{children:(0,Z.jsx)(J,{id:`VdXv4D`})})}),t[62]=Te):Te=t[62];let Ee;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,Z.jsx)(`label`,{htmlFor:`clone-source`,className:`text-sm font-medium`,children:(0,Z.jsx)(J,{id:`IreQBq`})}),t[63]=Ee):Ee=t[63];let De;t[64]!==u||t[65]!==M||t[66]!==O||t[67]!==we||t[68]!==q||t[69]!==E||t[70]!==L||t[71]!==be||t[72]!==i||t[73]!==ve||t[74]!==de||t[75]!==x||t[76]!==ue||t[77]!==pe||t[78]!==_?(De=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[Ee,E===!1?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(fl,{id:`clone-source`,placeholder:u({id:`Xv_ijG`}),value:_,onChange:e=>q(e.target.value),disabled:O}),(0,Z.jsxs)(`div`,{className:`flex items-center gap-2 text-1sm text-muted-foreground`,children:[(0,Z.jsx)(`span`,{children:(0,Z.jsx)(J,{id:`9oE4C3`})}),(0,Z.jsx)(Y,{variant:`link`,className:`h-auto p-0`,onClick:()=>i?.(),disabled:O,children:(0,Z.jsx)(J,{id:`3jod3l`})})]})]}):(0,Z.jsxs)(Ot,{open:ve,onOpenChange:j,children:[(0,Z.jsx)(f,{asChild:!0,children:(0,Z.jsx)(fl,{id:`clone-source`,ref:I,role:`combobox`,"aria-expanded":ve,"aria-controls":ve?de?be:L:void 0,"aria-activedescendant":M>=0?`${L}-opt-${M}`:void 0,"aria-autocomplete":`list`,autoComplete:`off`,placeholder:u({id:`R0jJzV`}),value:_,onChange:e=>q(e.target.value),onFocus:()=>j(!0),onKeyDown:we,disabled:O})}),(0,Z.jsx)(ie,{align:`start`,sideOffset:4,className:`w-(--radix-popover-trigger-width) max-h-56 overflow-y-auto overscroll-y-contain subtle-scrollbar p-0`,onOpenAutoFocus:b1,onCloseAutoFocus:y1,onInteractOutside:e=>{I.current?.contains(e.target)&&e.preventDefault()},onWheel:v1,onTouchMove:_1,children:de?(0,Z.jsxs)(`output`,{id:be,className:`flex flex-col gap-1.5 px-3 py-2`,"aria-label":u({id:`8XQRON`}),children:[(0,Z.jsx)(iu,{className:`h-4 w-2/3`}),(0,Z.jsx)(iu,{className:`h-4 w-1/2`}),(0,Z.jsx)(iu,{className:`h-4 w-3/4`}),(0,Z.jsx)(iu,{className:`h-4 w-2/5`})]}):(0,Z.jsx)(`div`,{id:L,role:`listbox`,"aria-label":u({id:`KX1MZR`}),className:`py-1`,children:pe.length===0?(0,Z.jsx)(`div`,{role:`presentation`,className:`px-3 py-2 text-xs text-muted-foreground`,children:x&&x.length===0?(0,Z.jsx)(J,{id:`cOSAfL`}):(0,Z.jsx)(J,{id:`8eW0WQ`})}):pe.map((e,t)=>(0,Z.jsxs)(`div`,{id:`${L}-opt-${t}`,role:`option`,tabIndex:-1,"aria-selected":t===M,onMouseDown:g1,onMouseEnter:()=>N(t),onClick:()=>ue(e),className:X(`flex cursor-default items-center gap-2 px-3 py-1.5 text-sm`,t===M&&`bg-accent text-accent-foreground`),children:[e.private?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ls,{className:`size-3.5 shrink-0 text-muted-foreground`,"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`sr-only`,children:(0,Z.jsx)(J,{id:`n5n_vi`})})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ms,{className:`size-3.5 shrink-0 text-muted-foreground`,"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`sr-only`,children:(0,Z.jsx)(J,{id:`NuH1jp`})})]}),(0,Z.jsx)(`span`,{className:`truncate`,children:e.full_name})]},e.full_name))})})]})]}),t[64]=u,t[65]=M,t[66]=O,t[67]=we,t[68]=q,t[69]=E,t[70]=L,t[71]=be,t[72]=i,t[73]=ve,t[74]=de,t[75]=x,t[76]=ue,t[77]=pe,t[78]=_,t[79]=De):De=t[79];let Oe;t[80]!==O||t[81]!==y||t[82]!==g?(Oe=!g&&(0,Z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Z.jsx)(`label`,{htmlFor:`clone-path`,className:`text-sm font-medium`,children:(0,Z.jsx)(J,{id:`Gp_twO`})}),(0,Z.jsx)(fl,{id:`clone-path`,placeholder:`~/Documents/repo-name`,value:y,onChange:e=>b(e.target.value),disabled:O})]}),t[80]=O,t[81]=y,t[82]=g,t[83]=Oe):Oe=t[83];let ke;t[84]!==De||t[85]!==Oe?(ke=(0,Z.jsx)(Mn,{children:(0,Z.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[De,Oe]})}),t[84]=De,t[85]=Oe,t[86]=ke):ke=t[86];let Ae;t[87]!==O||t[88]!==re||t[89]!==ce||t[90]!==_||t[91]!==g?(Ae=(0,Z.jsx)(Nn,{children:O?(0,Z.jsx)(Y,{variant:`outline`,className:`font-mono uppercase`,onClick:oe,children:(0,Z.jsx)(J,{id:`dEgA5A`})}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Y,{variant:`outline`,className:`font-mono uppercase`,onClick:()=>ce(!1),children:(0,Z.jsx)(J,{id:`dEgA5A`})}),(0,Z.jsx)(Y,{onClick:()=>void re(),disabled:!_.trim(),"aria-describedby":g?`clone-picker-hint`:void 0,children:(0,Z.jsx)(J,{id:`9UQ730`})}),g&&(0,Z.jsx)(`span`,{id:`clone-picker-hint`,className:`sr-only`,children:(0,Z.jsx)(J,{id:`EvPX7f`})})]})}),t[87]=O,t[88]=re,t[89]=ce,t[90]=_,t[91]=g,t[92]=Ae):Ae=t[92];let je;t[93]!==ke||t[94]!==Ae?(je=(0,Z.jsxs)(jn,{className:`sm:max-w-lg`,children:[Te,ke,Ae]}),t[93]=ke,t[94]=Ae,t[95]=je):je=t[95];let Me;return t[96]!==ce||t[97]!==n||t[98]!==je?(Me=(0,Z.jsx)(Fn,{open:n,onOpenChange:ce,children:je}),t[96]=ce,t[97]=n,t[98]=je,t[99]=Me):Me=t[99],Me}function g1(e){return e.preventDefault()}function _1(e){return e.stopPropagation()}function v1(e){return e.stopPropagation()}function y1(e){return e.preventDefault()}function b1(e){return e.preventDefault()}function x1(e){return Math.max(e-1,-1)}var S1=(0,Q.lazy)(()=>n(()=>import(`./ConsentDialogBody-iSJGqfW_.js`),__vite__mapDeps([121,1,9,10,11,12,13,14,15,16,17,18,74,19,20,77,81,122,91,92,35,36,22,80,26,27]),import.meta.url));function C1(){let e=(0,$.c)(1);if(!(0,Q.useSyncExternalStore)(dl.subscribe,T1,w1))return null;let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(Q.Suspense,{fallback:null,children:(0,Z.jsx)(S1,{})}),e[0]=t):t=e[0],t}function w1(){return!1}function T1(){return dl.getSnapshot()!==null}function E1(e){let t=(0,$.c)(5),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(`title`,{children:`OpenKnowledge icon`}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Z.jsxs)(`g`,{filter:`url(#filter0_d_ok)`,children:[(0,Z.jsx)(`path`,{d:`M66.8902 16.1017C58.2694 3.86669 46.1739 -0.690239 29.9182 2.17749C21.3995 3.67813 13.4602 9.555 8.67934 17.9009C3.93974 26.1701 2.98514 35.6533 6.05714 43.9166C9.31574 52.6868 16.7168 58.4752 24.2299 63.4231C25.7973 64.4562 26.1351 65.7172 26.3551 68.9896C26.5221 71.4625 26.799 75.6011 30.6842 77.7204C31.8176 78.3372 33.0648 78.6515 34.3946 78.6515C37.0796 78.6515 39.4033 77.3649 40.5189 76.7482C47.1049 73.1046 68.8878 59.7147 72.6453 40.4027C74.3444 31.6679 70.9797 21.9019 66.8922 16.1017H66.8902Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M37.4214 71.154C28.7888 75.929 36.787 64.0397 27.7458 58.0843C21.6372 54.0616 14.788 49.0568 12.0499 41.6911C6.74463 27.4192 17.5438 10.8473 31.028 8.47262C45.1977 5.97613 54.6946 9.8947 61.6635 19.7844C65.2089 24.8167 67.6013 32.8365 66.3658 39.1828C63.6906 52.9341 49.073 64.7075 37.4214 71.154Z`,fill:`#69A3FF`}),(0,Z.jsx)(`path`,{d:`M52.7244 29.2638C53.4665 28.5217 54.6697 28.5217 55.4119 29.2638V29.2638C56.154 30.0059 56.154 31.2091 55.4119 31.9513L49.2589 38.1042L46.5715 35.4167L52.7244 29.2638Z`,fill:`#D5E5FF`}),(0,Z.jsx)(`path`,{d:`M55.4119 38.8821C56.154 39.6242 56.154 40.8274 55.4119 41.5696V41.5696C54.6698 42.3117 53.4665 42.3117 52.7244 41.5696L46.5715 35.4166L49.259 32.7292L55.4119 38.8821Z`,fill:`#D5E5FF`})]}),t[1]=r):r=t[1];let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(`defs`,{children:(0,Z.jsxs)(`filter`,{id:`filter0_d_ok`,x:`-9.53674e-07`,y:`-0.0799994`,width:`77.3817`,height:`85.8743`,filterUnits:`userSpaceOnUse`,colorInterpolationFilters:`sRGB`,children:[(0,Z.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Z.jsx)(`feColorMatrix`,{in:`SourceAlpha`,type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`,result:`hardAlpha`}),(0,Z.jsx)(`feOffset`,{dy:`2.85714`}),(0,Z.jsx)(`feGaussianBlur`,{stdDeviation:`2.14286`}),(0,Z.jsx)(`feComposite`,{in2:`hardAlpha`,operator:`out`}),(0,Z.jsx)(`feColorMatrix`,{type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0`}),(0,Z.jsx)(`feBlend`,{mode:`normal`,in2:`BackgroundImageFix`,result:`effect1_dropShadow_ok`}),(0,Z.jsx)(`feBlend`,{mode:`normal`,in:`SourceGraphic`,in2:`effect1_dropShadow_ok`,result:`shape`})]})}),t[2]=i):i=t[2];let a;return t[3]===e?a=t[4]:(a=(0,Z.jsxs)(`svg`,{role:`img`,"aria-label":`OpenKnowledge icon`,fill:`none`,height:24,width:24,viewBox:`0 0 78 80`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[n,r,i]}),t[3]=e,t[4]=a),a}var D1=(0,Q.lazy)(()=>n(()=>import(`./ShareReceiveDialog-Dp0wMb0C.js`).then(e=>({default:e.ShareReceiveDialog})),__vite__mapDeps([123,1,6,2,3,7,8,9,10,15,19,14,16,20,24,81,115,116,117]),import.meta.url)),O1=(e,t,n)=>m_(e,t,n,`NavigatorApp`);function k1(e,t){return e.filter(e=>e.path!==t)}function A1(e){let t=(0,$.c)(109),{bridge:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=[],t[0]=r):r=t[0];let[i,a]=(0,Q.useState)(r),o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=new Map,t[1]=o):o=t[1];let[s,c]=(0,Q.useState)(o),[l,u]=(0,Q.useState)(!0),[d,f]=(0,Q.useState)(!1),[p,m]=(0,Q.useState)(null),[h,g]=(0,Q.useState)(null),[_,v]=(0,Q.useState)(!1),[y,b]=(0,Q.useState)(!1),[x,S]=(0,Q.useState)(!1),[C,w]=(0,Q.useState)(void 0),[T,E]=(0,Q.useState)(void 0),[D,O]=(0,Q.useState)(!1),[k,A]=(0,Q.useState)(!1),[j,M]=(0,Q.useState)(null),N=typeof window<`u`&&window.okDesktop!=null,[P,F]=(0,Q.useState)(`auth`),{theme:I}=cn(),{_:L}=kt();pu(n,I??`system`);let R;t[2]!==L||t[3]!==n.project?(R=()=>{let e=!1;return n.project.listRecent().then(async t=>{if(e)return;a(t);let r=t.filter(j1),i=await Promise.all(r.map(async e=>{try{let{currentBranch:t}=await n.project.readHeadBranch(e.path);return[e.path,t]}catch{return[e.path,null]}}));e||c(e=>{let t=new Map(e);for(let[e,n]of i)t.set(e,n);return t})}).catch(t=>{console.error(`[NavigatorApp] listRecent failed:`,t),e||(m(t instanceof Error?t.message:L({id:`fYKgzG`})),f(!0))}).finally(()=>{e||u(!1)}),()=>{e=!0}},t[2]=L,t[3]=n.project,t[4]=R):R=t[4];let z;t[5]!==L||t[6]!==n?(z=[n,L],t[5]=L,t[6]=n,t[7]=z):z=t[7],(0,Q.useEffect)(R,z);let B,V;t[8]===n?(B=t[9],V=t[10]):(B=()=>n.onMenuAction(e=>{e===`new-project`&&b(!0),e===`report-bug`&&S(!0),e===`close-active-tab-or-window`&&window.close()}),V=[n],t[8]=n,t[9]=B,t[10]=V),(0,Q.useEffect)(B,V);let H;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(H=(e,t)=>O1(e,t,m),t[11]=H):H=t[11];let U=H,W;t[12]!==L||t[13]!==n?(W=(e,t,r)=>U(()=>(g(r),F1(n,e,t).finally(()=>g(null))),L({id:`SUOoXn`})),t[12]=L,t[13]=n,t[14]=W):W=t[14];let G=W,K;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(K=()=>v(!0),t[15]=K):K=t[15];let q=K,ee;t[16]!==L||t[17]!==n?(ee=()=>U(async()=>{let e=await n.dialog.openFolder();e&&(g(I1(e)),await F1(n,e,`pick-existing`).finally(()=>g(null)))},L({id:`gmJ0An`})),t[16]=L,t[17]=n,t[18]=ee):ee=t[18];let te=ee,ne;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(ne=()=>b(!0),t[19]=ne):ne=t[19];let re=ne,ie;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(e,t)=>{w(e),E(t),b(!0)},t[20]=ie):ie=t[20];let ae=ie,oe;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(oe=e=>{b(e),e||(w(void 0),E(void 0))},t[21]=oe):oe=t[21];let se=oe,ce;t[22]===G?ce=t[23]:(ce=e=>G(e,`recents`,I1(e)),t[22]=G,t[23]=ce);let le=ce,ue;t[24]!==L||t[25]!==n.project?(ue=e=>U(async()=>{await n.project.removeRecent(e),a(t=>k1(t,e)),c(t=>{if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n})},L({id:`viwC-K`})),t[24]=L,t[25]=n.project,t[26]=ue):ue=t[26];let de=ue,fe;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,Z.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 top-0 z-10 h-9 ${N?`[-webkit-app-region:drag]`:``}`,"data-electron-drag":N?``:void 0,"data-testid":`nav-chrome-row`}),t[27]=fe):fe=t[27];let pe;t[28]!==L||t[29]!==h?(pe=h===null?null:(0,Z.jsxs)(`div`,{className:`absolute inset-0 z-20 flex flex-col items-center justify-center gap-3 bg-primary-foreground/85 dark:bg-background/85 backdrop-blur-sm`,"data-testid":`nav-opening-overlay`,role:`status`,"aria-live":`polite`,children:[(0,Z.jsx)(Pc,{className:`size-6 animate-spin text-muted-foreground`}),(0,Z.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:L({id:`s0_GnA`,values:{openingLabel:h}})})]}),t[28]=L,t[29]=h,t[30]=pe):pe=t[30];let me;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,Z.jsx)(E1,{className:`size-12 shrink-0`}),t[31]=me):me=t[31];let he;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`h1`,{className:`font-medium text-xl tracking-tight`,children:`OpenKnowledge`}),(0,Z.jsx)($P,{})]}),t[32]=he):he=t[32];let ge;t[33]===n.appVersion?ge=t[34]:(ge=(0,Z.jsxs)(`header`,{className:`shrink-0 flex-wrap flex items-center gap-2.5`,children:[me,(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[he,(0,Z.jsxs)(`p`,{className:`text-muted-foreground text-xs font-mono`,children:[`v`,n.appVersion]})]})]}),t[33]=n.appVersion,t[34]=ge);let _e;t[35]!==L||t[36]!==l||t[37]!==te||t[38]!==i||t[39]!==d?(_e=l?null:!d&&i.length===0?(0,Z.jsx)(N1,{onPackSelect:ae,onOpenFolder:te,onClone:q,onCreate:re}):(0,Z.jsxs)(`section`,{className:`grid shrink-0 sm:grid-cols-3 gap-3`,children:[(0,Z.jsx)(M1,{title:L({id:`wbv9xO`}),description:L({id:`0uTHCg`}),onClick:re,dataTestId:`nav-create-new`,Icon:gt}),(0,Z.jsx)(M1,{title:L({id:`WPwDin`}),description:L({id:`tUvUfp`}),onClick:te,dataTestId:`nav-open`,Icon:_c}),(0,Z.jsx)(M1,{title:L({id:`VdXv4D`}),description:L({id:`JOcPqH`}),onClick:q,dataTestId:`nav-clone`,Icon:PI})]}),t[35]=L,t[36]=l,t[37]=te,t[38]=i,t[39]=d,t[40]=_e):_e=t[40];let ve;t[41]===p?ve=t[42]:(ve=p===null?null:(0,Z.jsxs)(`div`,{className:`flex shrink-0 items-start justify-between gap-3 rounded-md border border-red-500/30 bg-red-500/10 px-3 py-2`,"data-testid":`nav-error-banner`,role:`alert`,children:[(0,Z.jsx)(`span`,{className:`text-red-700 text-xs dark:text-red-300`,children:p}),(0,Z.jsx)(Y,{type:`button`,variant:`link`,size:`sm`,onClick:()=>m(null),className:`h-auto p-0 text-red-700 text-xs dark:text-red-300`,"data-testid":`nav-error-dismiss`,children:(0,Z.jsx)(J,{id:`1QfxQT`})})]}),t[41]=p,t[42]=ve);let ye;t[43]!==l||t[44]!==le||t[45]!==de||t[46]!==s||t[47]!==i?(ye=l?(0,Z.jsx)(`section`,{className:`flex shrink-0 flex-col items-center`,children:(0,Z.jsx)(Pc,{className:`size-4 animate-spin text-muted-foreground/60`})}):i.length>0?(0,Z.jsxs)(`section`,{className:`flex min-h-0 flex-col`,children:[(0,Z.jsx)(`h2`,{className:`mb-2 shrink-0 font-medium text-muted-foreground font-mono text-xs uppercase tracking-wide`,children:(0,Z.jsx)(J,{id:`CCTop_`})}),(0,Z.jsx)(`ul`,{className:`min-h-0 max-h-48 subtle-scrollbar scroll-fade-mask overflow-y-auto space-y-0.5 -mx-4`,"data-testid":`nav-recent-list`,children:i.map(e=>(0,Z.jsx)(P1,{project:e,branch:s.get(e.path)??null,onOpen:()=>le(e.path),onRemove:()=>de(e.path)},e.path))})]}):null,t[43]=l,t[44]=le,t[45]=de,t[46]=s,t[47]=i,t[48]=ye):ye=t[48];let be;t[49]!==ge||t[50]!==_e||t[51]!==ve||t[52]!==ye?(be=(0,Z.jsx)(`div`,{className:`mx-auto flex h-full w-full max-w-5xl flex-col overflow-hidden px-12 py-12`,children:(0,Z.jsxs)(`div`,{className:`my-auto flex min-h-0 flex-col space-y-10`,children:[ge,_e,ve,ye]})}),t[49]=ge,t[50]=_e,t[51]=ve,t[52]=ye,t[53]=be):be=t[53];let xe,Se;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(xe=(0,Z.jsx)(T$,{}),Se=(0,Z.jsx)(C1,{}),t[54]=xe,t[55]=Se):(xe=t[54],Se=t[55]);let Ce;t[56]!==n||t[57]!==y||t[58]!==C||t[59]!==T?(Ce=(0,Z.jsx)(Dh,{open:y,onOpenChange:se,bridge:n,initialPackId:C,packs:T}),t[56]=n,t[57]=y,t[58]=C,t[59]=T,t[60]=Ce):Ce=t[60];let we;t[61]===x?we=t[62]:(we=(0,Z.jsx)(Of,{open:x,onOpenChange:S,systemWide:!0}),t[61]=x,t[62]=we);let Te;t[63]===j?Te=t[64]:(Te=e=>{O(e),e||(A(!1),j&&(j(null),M(null)))},t[63]=j,t[64]=Te);let Ee;t[65]===n?Ee=t[66]:(Ee=gi(n),t[65]=n,t[66]=Ee);let De;t[67]===n?De=t[68]:(De=yi(n),t[67]=n,t[68]=De);let Oe=P===`identity`,ke;t[69]!==k||t[70]!==j?(ke=e=>{O(!1),k&&(A(!1),v(!0)),j&&(j({authenticated:!0,host:`github.com`,login:e.login}),M(null))},t[69]=k,t[70]=j,t[71]=ke):ke=t[71];let Ae;t[72]!==D||t[73]!==Te||t[74]!==Ee||t[75]!==De||t[76]!==Oe||t[77]!==ke?(Ae=(0,Z.jsx)(ki,{open:D,onOpenChange:Te,transport:Ee,queryTransport:De,identityPrompt:Oe,onSuccess:ke}),t[72]=D,t[73]=Te,t[74]=Ee,t[75]=De,t[76]=Oe,t[77]=ke,t[78]=Ae):Ae=t[78];let je;t[79]===n?je=t[80]:(je=f1(n),t[79]=n,t[80]=je);let Me;t[81]===n?Me=t[82]:(Me=yi(n),t[81]=n,t[82]=Me);let Ne;t[83]===n.dialog?Ne=t[84]:(Ne=()=>n.dialog.openFolder(),t[83]=n.dialog,t[84]=Ne);let Pe;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=()=>{v(!1),F(`auth`),A(!0),O(!0)},t[85]=Pe):Pe=t[85];let Fe;t[86]!==L||t[87]!==n?(Fe=e=>{let{dir:t}=e;U(()=>(g(I1(t)),F1(n,t,`pick-existing`).finally(()=>g(null))),L({id:`iSnkwB`}))},t[86]=L,t[87]=n,t[88]=Fe):Fe=t[88];let Ie;t[89]!==_||t[90]!==je||t[91]!==Me||t[92]!==Ne||t[93]!==Fe?(Ie=(0,Z.jsx)(h1,{open:_,onOpenChange:v,transport:je,authQueryTransport:Me,pickParentFolder:Ne,onSignIn:Pe,onCloneComplete:Fe}),t[89]=_,t[90]=je,t[91]=Me,t[92]=Ne,t[93]=Fe,t[94]=Ie):Ie=t[94];let Le;if(t[95]!==n){let e;t[97]===Symbol.for(`react.memo_cache_sentinel`)?(e=()=>new Promise(e=>{M(()=>e),O(!0)}),t[97]=e):e=t[97],Le=u1({bridge:n,authQueryTransport:yi(n),cloneTransport:f1(n),openSignIn:e}),t[95]=n,t[96]=Le}else Le=t[96];let Re;t[98]!==n||t[99]!==Le?(Re=(0,Z.jsx)(Q.Suspense,{fallback:null,children:(0,Z.jsx)(D1,{bridge:n,cloneController:Le})}),t[98]=n,t[99]=Le,t[100]=Re):Re=t[100];let ze;return t[101]!==pe||t[102]!==be||t[103]!==Ce||t[104]!==we||t[105]!==Ae||t[106]!==Ie||t[107]!==Re?(ze=(0,Z.jsxs)(`div`,{className:`relative flex h-screen w-screen flex-col overflow-hidden bg-primary-foreground dark:bg-background text-foreground`,children:[fe,pe,be,xe,Se,Ce,we,Ae,Ie,Re]}),t[101]=pe,t[102]=be,t[103]=Ce,t[104]=we,t[105]=Ae,t[106]=Ie,t[107]=Re,t[108]=ze):ze=t[108],ze}function j1(e){return!e.missing}function M1(e){let t=(0,$.c)(14),{title:n,description:r,onClick:i,dataTestId:a,Icon:o}=e,s;t[0]===o?s=t[1]:(s=o?(0,Z.jsx)(o,{className:`size-4 shrink-0 text-muted-foreground`}):null,t[0]=o,t[1]=s);let c;t[2]===n?c=t[3]:(c=(0,Z.jsx)(`span`,{className:`font-medium text-gray-700 dark:text-foreground text-sm`,children:n}),t[2]=n,t[3]=c);let l;t[4]!==s||t[5]!==c?(l=(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[s,c]}),t[4]=s,t[5]=c,t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=(0,Z.jsx)(`span`,{className:`line-clamp-2 text-muted-foreground text-xs leading-snug`,children:r}),t[7]=r,t[8]=u);let d;return t[9]!==a||t[10]!==i||t[11]!==l||t[12]!==u?(d=(0,Z.jsxs)(Y,{type:`button`,variant:`outline`,onClick:i,"data-testid":a,className:`h-auto flex-col items-start justify-start gap-1.5 whitespace-normal bg-card px-4 py-3.5 text-left`,children:[l,u]}),t[9]=a,t[10]=i,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}function N1(e){let t=(0,$.c)(31),{onPackSelect:n,onOpenFolder:r,onClone:i,onCreate:a}=e,[o,s]=(0,Q.useState)(null),c,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{let e=!1;return(async()=>{try{let t=await Xg().listPacks();if(e)return;t.ok?s(t.packs):(console.error(`[NavigatorApp] listPacks returned error:`,t),s([]))}catch(t){let n=t;if(e)return;console.error(`[NavigatorApp] listPacks failed:`,n),s([])}})(),()=>{e=!0}},l=[],t[0]=c,t[1]=l):(c=t[0],l=t[1]),(0,Q.useEffect)(c,l);let u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(`h2`,{className:`text-xl font-light tracking-tighter text-balance`,children:(0,Z.jsx)(J,{id:`QnjpOq`})}),t[2]=u):u=t[2];let d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Z.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-1`,children:[u,(0,Z.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:(0,Z.jsx)(J,{id:`gYuDfu`})})]}),t[3]=d):d=t[3];let f;t[4]!==n||t[5]!==o?(f=e=>n(e,o??[]),t[4]=n,t[5]=o,t[6]=f):f=t[6];let p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=[`okf`,`entity-vault`],t[7]=p):p=t[7];let m;t[8]!==o||t[9]!==f?(m=(0,Z.jsx)(`div`,{className:`-m-1 min-h-0 flex-1 overflow-y-auto subtle-scrollbar p-1`,children:(0,Z.jsx)($g,{packs:o,onPackSelect:f,collapsedPackIds:p})}),t[8]=o,t[9]=f,t[10]=m):m=t[10];let h;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Z.jsx)(`span`,{className:`text-muted-foreground text-sm`,children:(0,Z.jsx)(J,{id:`S34Vju`})}),t[11]=h):h=t[11];let g,_;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Z.jsx)(_c,{"aria-hidden":`true`,className:`size-3.5`}),g=(0,Z.jsx)(J,{id:`PVUn_c`}),t[12]=g,t[13]=_):(g=t[12],_=t[13]);let v;t[14]===r?v=t[15]:(v=(0,Z.jsxs)(Y,{type:`button`,variant:`link-muted`,size:`sm`,onClick:r,"data-testid":`nav-first-run-open`,children:[_,g]}),t[14]=r,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsx)(PI,{"aria-hidden":`true`,className:`size-3.5`}),b=(0,Z.jsx)(J,{id:`VdXv4D`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;t[18]===i?x=t[19]:(x=(0,Z.jsxs)(Y,{type:`button`,variant:`link-muted`,size:`sm`,onClick:i,"data-testid":`nav-first-run-clone`,children:[y,b]}),t[18]=i,t[19]=x);let S,C;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Z.jsx)(gt,{"aria-hidden":`true`,className:`size-3.5`}),C=(0,Z.jsx)(J,{id:`ircigK`}),t[20]=S,t[21]=C):(S=t[20],C=t[21]);let w;t[22]===a?w=t[23]:(w=(0,Z.jsxs)(Y,{type:`button`,variant:`link-muted`,size:`sm`,onClick:a,"data-testid":`nav-first-run-blank`,children:[S,C]}),t[22]=a,t[23]=w);let T;t[24]!==v||t[25]!==x||t[26]!==w?(T=(0,Z.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1`,"data-testid":`nav-first-run-secondary`,children:[h,(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-1 gap-y-1`,children:[v,x,w]})]}),t[24]=v,t[25]=x,t[26]=w,t[27]=T):T=t[27];let E;return t[28]!==T||t[29]!==m?(E=(0,Z.jsxs)(`section`,{className:`flex min-h-0 shrink flex-col gap-6`,"data-testid":`nav-first-run`,children:[d,m,T]}),t[28]=T,t[29]=m,t[30]=E):E=t[30],E}function P1(e){let t=(0,$.c)(44),{project:n,branch:r,onOpen:i,onRemove:a}=e,{_:o}=kt(),{name:s}=n,c=n.isLinkedWorktree===!0,l=c?n.branch??r:r,u=n.missing,d=n.missing&&`opacity-50`,f;t[0]===d?f=t[1]:(f=X(`h-auto min-w-0 flex-1 justify-between gap-3 py-3.5 pl-4 pr-2 text-left hover:bg-transparent`,d),t[0]=d,t[1]=f);let p;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Z.jsx)(Sm,{"aria-hidden":`true`,className:`size-[18px] shrink-0 text-muted-foreground`}),t[2]=p):p=t[2];let m;t[3]===n.name?m=t[4]:(m=(0,Z.jsx)(`span`,{className:`truncate font-medium text-sm text-gray-700 dark:text-foreground`,children:n.name}),t[3]=n.name,t[4]=m);let h;t[5]===c?h=t[6]:(h=c?(0,Z.jsxs)(As,{variant:`secondary`,className:`shrink-0 gap-1 rounded-full border-transparent bg-green-600/10 px-2 py-0 font-medium text-2xs text-green-800 dark:bg-green-400/10 dark:text-green-400`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`size-2.5`}),(0,Z.jsx)(J,{id:`z-lawV`})]}):null,t[5]=c,t[6]=h);let g;t[7]!==m||t[8]!==h?(g=(0,Z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[m,h]}),t[7]=m,t[8]=h,t[9]=g):g=t[9];let _=c?n.mainRoot??``:n.path,v;t[10]!==c||t[11]!==n.mainRoot||t[12]!==n.path?(v=c?(0,Z.jsx)(J,{id:`PRnH8G`,values:{0:C_(n.mainRoot??``)}}):n.path,t[10]=c,t[11]=n.mainRoot,t[12]=n.path,t[13]=v):v=t[13];let y;t[14]!==_||t[15]!==v?(y=(0,Z.jsx)(`span`,{className:`truncate w-full text-muted-foreground text-xs`,title:_,children:v}),t[14]=_,t[15]=v,t[16]=y):y=t[16];let b;t[17]!==y||t[18]!==g?(b=(0,Z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[p,(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1 truncate`,children:[g,y]})]}),t[17]=y,t[18]=g,t[19]=b):b=t[19];let x;t[20]!==n.missing||t[21]!==n.path||t[22]!==l?(x=n.missing?(0,Z.jsx)(As,{className:`text-2xs rounded-sm`,variant:`warning`,children:(0,Z.jsx)(J,{id:`VU3Nrn`})}):l==null?null:(0,Z.jsxs)(`span`,{className:`flex max-w-[40%] items-center gap-1 text-muted-foreground text-xs`,"data-testid":`nav-recent-branch-${n.path}`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`size-3 shrink-0`}),(0,Z.jsx)(`span`,{className:`truncate font-mono`,children:l})]}),t[20]=n.missing,t[21]=n.path,t[22]=l,t[23]=x):x=t[23];let S;t[24]!==i||t[25]!==n.missing||t[26]!==b||t[27]!==x||t[28]!==f?(S=(0,Z.jsxs)(Y,{type:`button`,variant:`ghost`,onClick:i,disabled:u,className:f,children:[b,x]}),t[24]=i,t[25]=n.missing,t[26]=b,t[27]=x,t[28]=f,t[29]=S):S=t[29];let C;t[30]!==o||t[31]!==s?(C=o({id:`hDoLrm`,values:{projectName:s}}),t[30]=o,t[31]=s,t[32]=C):C=t[32];let w;t[33]===o?w=t[34]:(w=o({id:`Es-eZU`}),t[33]=o,t[34]=w);let T=`nav-recent-remove-${n.path}`,E;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,Z.jsx)(al,{"aria-hidden":`true`}),t[35]=E):E=t[35];let D;t[36]!==a||t[37]!==C||t[38]!==w||t[39]!==T?(D=(0,Z.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,onClick:a,"aria-label":C,title:w,className:`pointer-events-none mr-2 opacity-0 group-hover:pointer-events-auto group-hover:opacity-100 focus-visible:pointer-events-auto focus-visible:opacity-100`,"data-testid":T,children:E}),t[36]=a,t[37]=C,t[38]=w,t[39]=T,t[40]=D):D=t[40];let O;return t[41]!==S||t[42]!==D?(O=(0,Z.jsxs)(`li`,{className:`group flex items-center justify-between rounded-lg hover:bg-accent`,children:[S,D]}),t[41]=S,t[42]=D,t[43]=O):O=t[43],O}async function F1(e,t,n){await e.project.open({path:t,target:`new-window`,entryPoint:n})}function I1(e){let t=e.split(/[/\\]/).filter(Boolean);return t.length>0?t[t.length-1]??e:e}function L1(e){let t=(0,$.c)(5),{bridge:n}=e,r=n.config.collabUrl?n.config.collabUrl:null,i;t[0]===n?i=t[1]:(i=(0,Z.jsx)(R1,{bridge:n}),t[0]=n,t[1]=i);let a;return t[2]!==r||t[3]!==i?(a=(0,Z.jsx)(mu,{collabUrl:r,children:i}),t[2]=r,t[3]=i,t[4]=a):a=t[4],a}function R1(e){let t=(0,$.c)(9),{bridge:n}=e,{resolvedTheme:r}=cn(),i=rd(r),a=cv(),[o,s]=(0,Q.useState)(null),c;t[0]===i.background?c=t[1]:(c=(0,Z.jsx)(`div`,{ref:s,className:`flex h-screen min-h-0 flex-col`,style:{backgroundColor:i.background}}),t[0]=i.background,t[1]=c);let l;t[2]!==n||t[3]!==o||t[4]!==a?(l=(0,Z.jsx)(ML,{bridge:n,variant:`window`,visible:!0,onVisibleChange:B1,installedClis:a,container:o,isShowing:!0,onRequestEditorFocus:z1}),t[2]=n,t[3]=o,t[4]=a,t[5]=l):l=t[5];let u;return t[6]!==c||t[7]!==l?(u=(0,Z.jsxs)(Z.Fragment,{children:[c,l]}),t[6]=c,t[7]=l,t[8]=u):u=t[8],u}function z1(){}function B1(e){e||window.close()}function V1(e){return e?.config.mode===`terminal`?(0,Z.jsx)(L1,{bridge:e}):e?.config.mode===`navigator`?(0,Z.jsx)(A1,{bridge:e}):(0,Z.jsx)(o1,{})}function H1(){let e=null,t=new Set,n=!1,r=null;function i(){for(let e of t)e()}function a(){e!==null&&(e=null,i())}return{install({bridge:t}){let o=t?.bugReport?.onCrashDetected;if(typeof o==`function`)return n?r??void 0:(n=!0,r=o(t=>{e=t,i()}),()=>{r?.(),r=null,n=!1,a()})},getSnapshot(){return e},subscribe(e){return t.add(e),()=>{t.delete(e)}},dismiss(){a()}}}var U1=H1();function W1(e){return U1.install(e)}function G1(e){let t=(0,$.c)(7),{bridge:n}=e,r=(0,Q.useSyncExternalStore)(U1.subscribe,U1.getSnapshot);if(r===null)return null;let i;t[0]!==n.bugReport||t[1]!==r?(i=e=>{e||(n.bugReport.crashAck({eventId:r.eventId}),U1.dismiss())},t[0]=n.bugReport,t[1]=r,t[2]=i):i=t[2];let a=n.config.mode===`navigator`,o;return t[3]!==r||t[4]!==i||t[5]!==a?(o=(0,Z.jsx)(Of,{open:!0,onOpenChange:i,systemWide:a,crashInvite:r}),t[3]=r,t[4]=i,t[5]=a,t[6]=o):o=t[6],o}var K1=e=>{let t=(0,$.c)(8),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let{theme:r}=cn(),i=r===void 0?`system`:r,a,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a={success:(0,Z.jsx)(Fs,{className:`size-4`}),info:(0,Z.jsx)(Nc,{className:`size-4`}),warning:(0,Z.jsx)(Rc,{className:`size-4`}),error:(0,Z.jsx)(Lm,{className:`size-4`}),loading:(0,Z.jsx)(Pc,{className:`size-4 animate-spin`})},o={"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},t[2]=a,t[3]=o):(a=t[2],o=t[3]);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s={classNames:{toast:`cn-toast`}},t[4]=s):s=t[4];let c;return t[5]!==n||t[6]!==i?(c=(0,Z.jsx)(sl,{theme:i,className:`toaster group`,icons:a,style:o,toastOptions:s,...n}),t[5]=n,t[6]=i,t[7]=c):c=t[7],c},q1=Symbol.for(`ok.client.fetchWrapper`);function J1(e={}){if(typeof window>`u`)return;let t=e.apiOrigin&&e.apiOrigin.length>0?e.apiOrigin:void 0;if(window.fetch[q1])return;let n=window.fetch.bind(window),r=du(),i=((e,i)=>{let a=X1(e,t);if(!a.isApi)return n(e,i);if(e instanceof Request){let t=Y1(e.headers,r);return n(new Request(a.url,e),{headers:t})}let o=Y1(i?.headers,r);return n(a.url,{...i,headers:o})});i[q1]=!0,window.fetch=i}function Y1(e,t){let n=new Headers(e);for(let[e,r]of Object.entries(t))n.set(e,r);return n}function X1(e,t){if(typeof e==`string`){if(e.startsWith(`/api/`))return{isApi:!0,url:t?t+e:e};let n=Z1(e);return n&&Q1(n,t)?{isApi:!0,url:e}:{isApi:!1,url:e}}let n=e instanceof URL?e:Z1(e.url,window.location.origin);if(n&&Q1(n,t)){let r=e instanceof URL?e.href:e.url;return t&&(n.origin===window.location.origin||n.protocol===`file:`)?{isApi:!0,url:t+n.pathname+n.search+n.hash}:{isApi:!0,url:r}}return{isApi:!1,url:e instanceof URL?e.href:e.url}}function Z1(e,t){try{return new URL(e,t)}catch{return null}}function Q1(e,t){if(!e.pathname.startsWith(`/api/`))return!1;if(e.origin===window.location.origin||e.protocol===`file:`)return!0;if(t){let n=Z1(t);if(n&&e.origin===n.origin)return!0}return!1}var $1={messages:JSON.parse(`{"--T3kB":["Loading preview"],"-3Qbv7":[["count","plural",{"one":["matches ","#"," file"],"other":["matches ","#"," files"]}]],"-3ois8":["Hard break"],"-5jISU":[["0","plural",{"one":["#"," template"],"other":["#"," templates"]}]],"-8PP0T":["Match case"],"-K0AvT":["Disconnect"],"-LHLx7":["edited template"],"-QCLWk":["Templates available"],"-Qw-1t":["GitHub authentication failed. Try signing in again."],"-WFFG2":["Default properties"],"-YV1Uo":["Pattern ",["patternNumber"]],"-g6KIS":["Unrecognized link"],"-gdcIo":["Auto-sync is on — your commits push and remote changes pull on intervals."],"-i7ik4":["Collapse burst ",["burstNumber"]," diff"],"-kbIAr":["Links & images"],"-lCAuQ":["Loading graph"],"-o5XAG":["Sent privately to the OpenKnowledge team, along with your note and app version. Never posted publicly."],"-q4abP":["Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."],"-r_Kx7":["Create skill"],"-slrNR":["Toggle a task list."],"-uaQnI":["No matching worktrees or branches."],"-wePNM":["Search matches file names, paths, and folders. Open a file to search its body (⌘F)."],"-zA2E7":["Couldn't create the worktree. Try a different name."],"-zy2Nq":["Type"],"0-31GV":["Removing"],"00c7t0":["Ask AI about this code block"],"02P3hL":["Upload failed: ",["message"]],"03wKPg":["A report helps us find the cause. Nothing is sent until you review it."],"04RA0-":["Failed to enable sync — ",["detail"]],"04XyCH":["Adds a managed block to ",["0"]],"05n5wS":["Doc mention suggestions"],"06SZfb":["Template \\"",["trimmedTitle"],"\\" created"],"07eGJB":["Couldn't move skill: ",["0"]],"07gHun":["You don't have access to this private repo. Sign in with an account that does."],"07q4Qk":["File sidebar"],"09Tv5j":["Reconnecting…"],"0BB9ID":["No headings yet."],"0BfhAj":["Reset view"],"0E9DR6":["Type to find a doc"],"0Er6-M":["Restarting"],"0Gd0NU":["Shared"],"0LBDjY":["\\"",["0"],"\\" uninstalled — back to a draft"],"0NA4b3":["Keep my version"],"0NkNB5":[["0"],"mo ago"],"0SBTff":["Show terminal"],"0TnCvC":["Rename ",["0"]],"0YEbfk":["Connect to AI tools"],"0YUS3Q":["Subfolder under current folder"],"0_J12R":["New file from template \\"",["displayTitle"],"\\" (",["fileName"],") in ",["targetLabel"]],"0eHrMb":["Could not complete delete"],"0g7rCZ":["Duplicated to \\"",["0"],"\\""],"0inVGS":["Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."],"0jD-Gn":["A team knowledge base, a personal wiki, project docs..."],"0kTAXe":["Open source: ",["mirrorSrc"]],"0rwwOn":["By tag"],"0s8-e8":["Select, enter, or leave block components and fallback source blocks from keyboard boundaries."],"0t0bbC":["Could not save sync preference: ",["detail"]],"0uTHCg":["Start a new OpenKnowledge project."],"0wswKc":["Horizontal rule that divides sections."],"0xnmlQ":["Repository name"],"0yL--g":["Review conflicts"],"10g8I_":["Turn off Only markdown files"],"12F9WL":["(no id)"],"16D5Zj":["Are you sure you want to delete ",["itemName"],"? This action cannot be undone."],"1AumWo":["Push failed — check the server logs for details."],"1CalO6":["Style"],"1EcCom":[["keyName"]," value"],"1FLarN":["Describe what you want to create to continue"],"1GhYxC":["of ",["totalPages"]],"1HBhDS":["Checking out files"],"1MGRQl":["Terminal sessions"],"1OKzC_":["Your report couldn't be sent. Try again or email it instead."],"1QfxQT":["Dismiss"],"1RluQD":["Show replace"],"1TNIig":["Open"],"1Ta7Fd":["Open ",["basename"]],"1XSMhZ":["Switching to <0>local-only</0> will refuse until they're untracked via<1> git rm --cached</1>."],"1YJ4Yg":["Update available",["0"]],"1ZpfyB":["Open with AI ",["displayName"],", ",["hint"]],"1bDVu5":["Workspace Command Palette"],"1d1F11":["Select all files and folders"],"1di5fu":["Document not found"],"1hvhf0":["The folder on disk and the id agents use to invoke this skill."],"1njn7W":["Light"],"1nke1r":["Open ",["0"]," on GitHub (opens in a new tab)"],"1t_NnN":["Reject"],"2-CeZn":["Your report is saved on this Mac, so nothing was lost. You can email it to us instead."],"2277Tu":["Collapse graph"],"237hSL":["Ended"],"25Pw6a":["Cloning"],"27XW26":["Clone happens in the Project Navigator. Reclick the share link there."],"28B21t":["Agent Skills"],"29VNqC":["Unknown error"],"29XZXN":["Set git identity"],"2AIVbm":["Review your report"],"2B6eYX":["What this checkbox changes"],"2BBAbc":["List"],"2FYpfJ":["More"],"2FnYUD":["App & system info, recent app logs, and project server logs: the essentials we need to reproduce the issue."],"2G-56b":["Failed to update markdownlint rules"],"2GT3Hf":["Global"],"2H43L8":["Secrets like API keys and tokens are redacted automatically."],"2IYGkU":["This doc has unpushed changes. Recipients will see the last pushed version."],"2QM24L":["All tags"],"2RBzMG":["Network error — check your connection and try again"],"2Snes1":["This sends the link's address off your machine"],"2XQ8Ww":["Open preview when agent edits"],"2YOwme":["Restarted — now running v",["appRuntime"],"."],"2YZwPB":["Forward-links response did not match expected shape."],"2bVHbB":["Available in every project on this computer."],"2fkdnR":["Nothing to undo on this file"],"2hYmUH":["my@email.com"],"2hpdRq":["Hide panel (",["panelShortcutLabel"],")"],"2j1kfc":["Enter a valid URL (for example https://api.openai.com/v1)."],"2m_bmh":[["label"]," (",["0"],")"],"2myNzt":["We've filed it with the team and attached your logs."],"2n3oDU":["Project-level pages ordered by inbound link count, up to ",["FULLSCREEN_HUB_LIMIT"]," results."],"2q_Q7x":["Visibility"],"2ryd91":["Failed to rename property"],"2tgFCe":["Starting clone"],"2vIPtm":["Open link in new tab"],"2wxgft":["Rename"],"322lyb":["Highlight tips, warnings, and notes."],"34qyH5":["Could not reach server"],"36WXSC":["Couldn't delete template: ",["error"]],"36aWJD":["Join us on Discord"],"379t2h":["Unified diff"],"38foVZ":["Loading diff"],"3BnyYc":["This doc isn't on GitHub yet. The link won't work until it's pushed."],"3DJEEt":[["sizeText"]," · secrets redacted · ",["fileCount","plural",{"one":["#"," file"],"other":["#"," files"]}]],"3DTatP":["Copy a prompt for your agent, start a blank file, or scaffold from a template."],"3FMvls":["A short line shown under the title in the template list."],"3Fcb0I":["Open graph"],"3HNlwb":["Hello, world!"],"3Ib6FN":["Move down"],"3Ijjy1":["Couldn't load this skill's files."],"3IseAk":["Install an AI agent to create with AI"],"3J7d2N":["Big section heading."],"3JYy1p":["Branch ",["0"]," no longer exists. Cloned to default branch."],"3MnvrL":["Showing top ",["0"]," matches — keep typing to narrow"],"3Mwaly":["Could not initialize ",["0"],"."],"3SDfZl":["<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."],"3TCafD":["Stored on this machine."],"3VbwPp":["Open ",["keyName"]," in browser"],"3VsNTI":["Loading document"],"3YvS-c":["New tab"],"3_6U6f":["Connect to GitHub"],"3__SjS":["breadcrumb"],"3a_Bd7":["Open source doc: ",["mirrorSrc"]],"3aeN7X":["All files"],"3cOo2C":["Create a folder from the current document or folder context."],"3ePd3I":["What's new"],"3h5zMp":["Something went wrong loading the settings panel."],"3iyGWF":["Open recent project"],"3jod3l":["Connect GitHub"],"3l_cXP":["Take a look if you'd like. This exact file is what we receive."],"3m2GBo":["Searching docs"],"3mFsc3":["Restore with remote changes"],"3o3tur":["Starter content"],"3oh0nQ":["Nested .okignore error in ",["path"]],"3pU8e-":["Pin tab"],"3wiBAs":["Where should it live?"],"3y6XTb":["Semantic search"],"3zyg_A":["Ignore patterns"],"438Fca":["Cloned successfully, but could not open the project."],"44DSl0":["Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."],"45MZFs":["Commands"],"47EXvY":["This replaces the current skill content with the bundled version ",["0"]," (you have ",["1"],"). Any local edits will be replaced — your current version is saved to history first, so you can restore it."],"484LKL":["Remove link"],"48uGTI":["Failed to load docs. Press Escape and re-open to retry."],"4A3Yzu":["Code block"],"4BITzH":["Error:"],"4CfgPM":["Project folder created, but git init failed. Try again."],"4E9jPa":["Create your first project"],"4Gz2wC":["Failed to upload file"],"4KmEoC":["Hotkeys"],"4NC2Ym":["Move to the next or previous table cell."],"4PYsOz":["Hide Files (",["sidebarShortcutLabel"],")"],"4Sxexw":["Source undo or redo"],"4TzU0n":["Initialize"],"4XL6N4":["Detected from the editors this project is set up for. Adjust to control where every skill installs."],"4buZWd":["Inherited from ",["path"]],"4c_a6S":["Nothing set yet."],"4g19V6":["Failed to update property"],"4hJhzz":["Table"],"4ieVh2":["Pick “Custom” above to use this palette."],"4jDd0j":["Anyone can see"],"4mLBx9":["Subscriptions aren't available right now."],"4niEzY":["Sandboxed HTML embed — write HTML, see the rendered preview live."],"4nj6n8":["/api/config returned HTTP ",["code"]],"4rjwLG":["Create with ",["0"]," CLI"],"4sKwf6":["File already exists"],"4uNLmk":["Pulling"],"4v2Yyz":["Select every visible file-tree row when focus is in the Files sidebar."],"4xtLTl":["Hidden folder “",["basename"],"”"],"4zEZS5":["Auto-sync is on for this worktree, inherited from ",["project"],". Change it in Settings → Sync."],"4zGlN_":["Paste image URL or click upload"],"5-FeN2":["Share URL"],"5-o4kO":["Only markdown files"],"50ORFs":["Reset ",["0"]," to default"],"54Y6Fg":["Could not load templates. Try again later."],"56WWtu":["Couldn't load starter packs: ",["error"]],"56xUL1":["Property name"],"57fiu8":["(read-only — edit in source mode for now)"],"5ALjdr":["Move through visual-editor find results from the find field."],"5Ajb15":["The formula <0>c = √(a² + b²)</0> renders inline."],"5AzM72":["This setting is per-machine and isn't shared with collaborators."],"5ClEAu":["Inline hashtag for cross-doc grouping."],"5D3Ior":["Hide folder"],"5DFPDh":["Started a fresh OpenKnowledge server (v",["appRuntime"],") for this dev session — the server already running for this project was terminated. Connected agents (Claude Code, Codex, Cursor) just lost their OpenKnowledge MCP connection; restart the agent, or toggle its OpenKnowledge MCP server off and on, to reconnect."],"5F5HYj":[["ahead"]," ahead, ",["behind"]," behind"],"5GKMSz":["Indent or outdent the current list item."],"5GRxoA":["Search files, folders, and commands for the current workspace."],"5LXwX8":["This permanently removes ",["path"],". Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."],"5OTgC7":["Open and focus the bottom Ask AI prompt composer."],"5OqaJi":["Enter a project name"],"5PHgV2":["You can also create one from a terminal with <0>ok bug-report</0>."],"5QGTaA":["Could not copy relative path"],"5SwVv1":["Not installed"],"5Tk8Fb":["Loading files"],"5Umg9i":["Disable external link previews"],"5WDhAk":["Link to a page or external URL."],"5ZB7XC":["File drop zone"],"5e1Dri":["The menu label agents pick this template by (required)."],"5gr_ev":["Becomes the document's content when someone creates a doc from this template. Type <0>",["dateToken"],"</0> or <1>",["userToken"],"</1> to fill in today's date or the author's name automatically."],"5kWklo":["(some may already be hidden by other rules)"],"5lWFkC":["Sign in"],"5mksg0":["Failed to disable semantic search — ",["detail"]],"5qNxOe":[["count","plural",{"one":["#"," item could not be moved to the Trash. Do you want to permanently delete instead?"],"other":["#"," items could not be moved to the Trash. Do you want to permanently delete instead?"]}]],"5wV2qQ":["and more"],"5y_9lO":["Waiting for authorization"],"6-wLTJ":[["behind"]," behind origin"],"60vpJN":["What were you doing?"],"62Pc08":["Install for Claude Chat & Cowork (Desktop App)"],"636K3K":["Delete adjacent chip"],"67f-3g":["Duplicate succeeded but the sidebar may be out of date — refresh to resync"],"6Aih4U":["Offline"],"6EKG_c":["What agents match on to decide when to use the skill."],"6HCOwA":["Failed to open."],"6KCH4m":["Hidden files"],"6LbUG7":["The repository is private and your GitHub account doesn't have access to it."],"6MnZEC":["Terminal failed to load"],"6O626z":["No headings match \\"",["trimmedAnchorQuery"],"\\""],"6Pxqwv":["No project templates yet. Create one to make it available everywhere in this project. Folder-scoped templates live on each folder's overview page."],"6Uau97":["Skip"],"6V3Ea3":["Copied"],"6VqW-1":["Remove ",["keyName"]],"6WdDG7":["Page"],"6YtxFj":["Name"],"6ZhdPI":["What the agent may read, write, and surface."],"6_ZOw4":["Copied full path"],"6bTTAN":["Invalid input — pick a different folder."],"6cR-PU":["Already open"],"6caB2T":["Connect an existing repository"],"6cuT_1":["Open date picker for ",["keyName"]],"6cyguR":["Connect GitHub to continue."],"6eniID":["Map the architecture"],"6fGjTz":["Show fewer"],"6g2jsp":["Update skill"],"6gRgw8":["Retry"],"6h4zVU":["What would you like to create?"],"6hfDJr":["Server error: ",["status"]],"6ibbCg":["Create your first file"],"6ki7F2":[["0","plural",{"one":["#"," item"],"other":["#"," items"]}]],"6lGV3K":["Show less"],"6m_7We":["Open this settings dialog."],"6q0rnH":["writing"],"6qMe0o":["Draft a technical spec for my project. Start with an overview, then add cross-linked pages for the architecture, the key modules, and the open questions, all linked from a specs index."],"6s7LXO":["Heads up"],"6u9LvN":[["days","plural",{"one":["#"," day ago"],"other":["#"," days ago"]}]],"6vEr3W":["Link target"],"6zzhQL":["Send your report by email"],"72xhRD":["Diagram view mode"],"74-bX-":["A pull quote stands out from the surrounding text."],"74eHt-":["No file or folder selected"],"75Y1dk":["Horizontal pill strip + active panel below; click a pill to switch panels."],"77SdEP":["Delete ",["itemName"]],"7FamGZ":["Go to line"],"7Fkcej":["+ Add ",["addChildName"]],"7H4UHD":["Documents tagged <0>#",["tagName"],"</0>"],"7JtSLi":["Failed to delete path"],"7KeV5F":["Undo all failed: ",["message"]],"7OhaRy":["Source search"],"7Ongq0":["Condense my AGENTS.md file to less than 40k characters"],"7OwvEL":["Show HTML preview"],"7PNNNs":["This sends content off your machine"],"7PXYaF":["<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."],"7PzzBU":["User"],"7YRrJ9":["Available in the OpenKnowledge desktop app. From a terminal, use<0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2>."],"7_bFEL":["Drag ",["patternText"]," to reorder"],"7apDiJ":["A folder named <0>",["sanitized"],"</0> already has files here. Pick a different name."],"7d1a0d":["Public"],"7hctf2":["Describe the project you want to create"],"7jIIFX":["You're all set up!"],"7qRHf0":["Install for Claude Chat & Cowork"],"7uBlRT":["Copy the focused file-tree item so Paste can duplicate it."],"80c4-P":["Code copied to clipboard"],"81H_23":["Add properties"],"881Uwh":["Delete selected table"],"89TtiD":["New file from template \\"",["displayTitle"],"\\" (",["fileName"],") in the project root"],"89y7ar":[["sizeText"]," · secrets redacted"],"8F1i42":["Page not found"],"8FqTCr":[["chunksRemaining","plural",{"one":["#"," unresolved hunk"],"other":["#"," unresolved hunks"]}]],"8Gzz2G":["worktree of ",["worktreeOf"]],"8IP5jY":["Each selected tool gets an OpenKnowledge MCP entry."],"8Jm2EP":["Toggle heading levels 1 through 6."],"8OGgNM":["Open or close visual-editor find."],"8OxKZy":["Move succeeded but the sidebar may be out of date — refresh to resync"],"8PifYj":["Mermaid diagram"],"8PmoQF":["Open the insert menu in an empty or active text position."],"8RtNI0":["Failed to load documents"],"8TvlHF":["Crash dump"],"8XQRON":["Loading repositories"],"8_brI5":["Name is required"],"8cS0nH":["Config sharing unavailable: ",["0"],"."],"8cpOa8":["Couldn't disconnect — please try again."],"8cpeU3":["Shared repositories"],"8eW0WQ":["No matching repositories."],"8fRyLo":["Invalid patch payload"],"8fc_3j":["Protected branch — cannot push"],"8m8diM":["No location selected. Use Browse to choose a folder."],"8nWu1k":["Empty diagram"],"8tjQCz":["Explore"],"8uAWix":["This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."],"8vETh9":["Show"],"92rbk2":["Mirror loading <0>",["mirrorRef"],"</0>"],"96G6Re":["New folder"],"96w9hU":["Something went wrong opening this file (HTTP ",["status"],")."],"99eR72":["Visual editor table selection"],"9Bd18D":["Failed to load hub pages"],"9KooKn":["Run a project audit from the Problems panel."],"9NJWgv":["Backlinks"],"9OIqw4":["You don't have write access to this repo."],"9PQysm":["Hide advanced"],"9R7pRC":["No tags match \\"",["trimmed"],"\\". Continue typing to create one."],"9UQ730":["Clone"],"9V0W-R":["Adds the OpenKnowledge skill to the <0>Claude Desktop App</0> so it's available in Chat and Cowork sessions."],"9XIEYq":["Attach the file in an email to <0/>"],"9bCiQ8":["No pages are missing incoming graph links."],"9clcD5":["Open documents tagged #",["chip"]],"9dw5bW":["Create with ",["0"]],"9euN0m":[["count","plural",{"one":["#"," more cross-doc participant"],"other":["#"," more cross-doc participants"]}]],"9fhQRL":["Beta channel"],"9fvog2":["Preview unavailable: ",["errorDetail"]],"9i21pa":["Commits happen automatically"],"9jnjV0":["Embed an audio file with native player controls."],"9mEZeD":[["name"]," CLI"],"9npOH9":["Open file"],"9o1bIV":[["behind"]," behind"],"9oE4C3":["Browse your repos:"],"9sBe85":["Follow us on"],"9tJX8r":["By meaning"],"9zb2WA":["Connecting"],"A1taO8":["Search"],"A50vr3":["Use lowercase letters, digits, and <0>-</0> only."],"A5CYnd":["Broken link"],"A5hiCy":["Create template"],"A67Uwj":["Still loading"],"A6h5b-":["File duplicated"],"AAlr5Y":["No collab server for this worktree — run <0>ok start</0> here, or reopen the project."],"AB4qw9":["New terminal"],"AE7BY3":["The terminal session ended."],"AIn2Yv":[["displayName"]," CLI, ",["hint"]],"AItsE5":["Open it there"],"AKxFtn":[["openedWorktreeCount","plural",{"one":["worktree"],"other":["worktrees"]}]],"ALhMYW":["Terminal"],"AQ-Lfg":["Couldn't load templates"],"AQGtjK":["Commands run with the full access of your macOS user account on this machine. Turn this off to disable the shell."],"ATGYL1":["Email address"],"AVW-K9":["Failed to load orphan pages"],"AWOSPo":["Zoom in"],"AaaESH":["Auto-sync is off for this worktree, inherited from ",["project"],". Change it in Settings → Sync."],"AcK_r0":["Claude CLI"],"AczYxH":["Custom open-knowledge entry — not managed by OpenKnowledge"],"AdcGcG":["Applying your change"],"AddR83":["Could not create project. Try again or pick a different location."],"AeHuzT":["# One pattern per line.\\n# Examples:\\n# drafts/\\n# *.draft.md\\n# !keep.md"],"AeXO77":["Account"],"AiNMQ7":["This project lives only on this computer. Connect it to GitHub to back it up and share it with other people."],"Aif3E7":["Enable semantic search"],"Am78jY":["Drag ",["keyName"]," to reorder"],"Aq-O0x":["status"],"AqnqMJ":["API key set"],"ArBWJf":["Undo last edit"],"AsqRE_":["Default location for new attachments"],"AtBdnD":["Couldn't delete skill: ",["error"]],"B11p-O":["Edit markdown link"],"B2DrPb":["Auto-save"],"B2Srgd":[["packName"]," skill installed."],"B3NAZC":["Open Navigator"],"B4_ipX":[["conflictCount","plural",{"one":["#"," file conflicted"],"other":["#"," files conflicted"]}]],"BAH4qX":["Selected graph item"],"BBqGS9":["Desktop"],"BD0XSC":["Failed to load project templates"],"BEkF-P":[["userName"],", ",["tabCount","plural",{"one":["#"," concurrent tab"],"other":["#"," concurrent tabs"]}]],"BGHHtQ":["Single page"],"BH56dn":["Custom display text"],"BQKHuL":["Restart terminal"],"BQu9Pg":["Symlink"],"BUyQnq":["Couldn't restart the server. Try \`ok start\` in this folder."],"BY-g4_":["Add pattern"],"Bdha5y":["Publishing..."],"BeWTQy":["Loading starter packs"],"BgV29F":["Visual editor find input focused"],"Bn9-El":["default"],"Bv5a9_":["Selection statistics"],"Bx4EXG":["Actions for ",["label"]],"By-7Pn":["Toggle a bullet list."],"BymzO4":["Document outline"],"C0hoX6":["Always included"],"C37Zkt":["Send to"],"C62P6b":["Editor selection"],"C7XjNB":["Global Skill"],"C9TBvF":["No Outgoing"],"CCTop_":["Recent"],"CFnavk":["This project isn't a git repository, so worktrees aren't available."],"CKyk7Q":["Go back"],"COr1Y7":["Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."],"CSL0l1":["Couldn't clear the key — please try again."],"CTJLpz":["\\"",["trimmed"],"\\" already exists here"],"CU3AiE":["Switching branches"],"CWzc2T":["<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."],"CXTwen":["Can't safely edit this project config"],"CXj9C-":["New property name"],"C_Lyvh":["Failed to save theme setting"],"C_WGy8":["This file is too large to open in the built-in text editor (1 MB limit). Use Open file below to open it in another app."],"C_cPoW":["Your GitHub session expired — sign in again to verify push access."],"ChAtFg":["You don't have permission to push to this repo"],"CifUuG":["Update available"],"Ck9XRt":["Couldn't save the key — please try again."],"CmeH9S":["Add property to ",["keyName"]],"CoHvYd":["Moved ",["0"]," to position ",["1"]," of ",["2"]],"CvsD6Y":["via ",["viaTags"]],"D-Oh1s":["How to set up ",["0"]," (opens in browser)"],"D12vtS":["(detached)"],"D2CwBE":["Create a new OpenKnowledge project from the <0>",["0"],"</0> starter pack (",["1","plural",{"one":["#"," folder"],"other":["#"," folders"]}]," and starter templates) in the folder of your choice."],"D4H2N6":["Remove ",["tag"]],"D8OV7J":["Only collaborators"],"DDTdLl":["Code block settings"],"DELNQk":["Collaborators see your in-progress edits as soon as they sync."],"DEWDbv":["Show diagram"],"DF1MtZ":["Loading conflict for ",["filePath"]],"DFfRbX":["Sync status: ",["syncStateLabel"]," — git identity unset"],"DId6MT":["Project-level pages with no outgoing graph edges."],"DJd000":["Activate the previous editor tab."],"DPfwMq":["Done"],"DTI-fp":["This ",["targetNoun"]," only exists on branch <0>",["shareBranch"],"</0>. You have uncommitted changes that prevent switching here — open it in a worktree to leave your changes untouched."],"DVh_Tb":["Failed to clean up after trash"],"DXd9LM":["New worktree"],"D_WKe_":["Click an agent's avatar in the presence bar to view their session."],"DbILZA":["No matches. Some files are excluded from search (hidden or ignored files)."],"DcLaew":["Custom theme"],"DeDYLr":["Unrecognized wiki link"],"DgcGrb":[["fileCount","plural",{"one":["file"],"other":["files"]}]],"DhK_hZ":["Moved \\"",["name"],"\\" to ",["0"]," (",["skipped"]," binary file(s) not copied)"],"DhLHEb":["Failed to load activity"],"DiFKSL":["Counting markdown files"],"Dnn2XG":["Automatic"],"DrYM2Z":["Sync disabled"],"DsDwR-":[["0","plural",{"one":["#"," error"],"other":["#"," errors"]}]],"DskIkK":["Sign-in stream ended without confirmation — please try again"],"Dub54T":["Preview browsers can't auto-copy. Use Cmd/Ctrl+C on the URL above, or open OK in the desktop app."],"Dvwa0U":["Create a worktree from this branch"],"Dw1T_W":["Rename ",["label"]],"E1Da_b":["This permanently removes ",["0"],". Agents that invoke this skill by name will fail until it's recreated."],"E1_c72":["Task list"],"E1tG2u":["Get Claude Code"],"E2Mv-X":["Copy source"],"E4XYYH":["Enable terminal for this project"],"E5WeIy":["Reopen the most recently closed editor tab."],"E6lrpp":["Manage the GitHub account OpenKnowledge uses to browse and sync your repositories."],"E7BhZn":["Blank note"],"E9bKSA":["Creating"],"EBVbtP":["Could not duplicate item"],"EDl9kS":["Subscribe"],"EDm3wJ":["Loading diff renderer"],"EEYbdt":["Publish"],"EHu0x2":["Syncing"],"EJuO7B":["Connect a GitHub account to browse and sync your repositories."],"ELYtNJ":[".ok folders"],"EL_YRd":["Mirror of <0>api-spec</0>"],"ENpRJV":["External link previews"],"EOjU5V":["Inline Math Properties"],"ETyvvg":["No language match."],"EVnzPs":["Edit with AI"],"EWPtMO":["Code"],"EWX92Z":["Collapse Ask AI"],"EZVxVz":["Replace the active match from the replace field."],"E_BHoD":["Could not move \\"",["targetName"],"\\" to the Trash. Do you want to permanently delete instead?"],"E_tNGD":["Connected as @",["login"]],"Ea1prf":["Choose which editors every skill in this project installs into."],"EarrCe":["Search emoji"],"Eax_et":["Accent"],"EbZT7P":["Toggle the left file sidebar."],"EbjWsS":["Current commit"],"EcM3k7":["Failed to clean up pending ",["kind"]],"EcR0fl":["Checking for installed agents"],"EdQY6l":["None"],"EeRZnZ":["Expand burst ",["burstNumber"]," diff"],"Ef7StM":["Unknown"],"EhDLBx":["You modified <0>",["filePath"],"</0> locally, but it was deleted upstream."],"Ehkru0":["Open, navigate, accept, or dismiss CodeMirror completion suggestions."],"EiVgl5":["You don't have permission to push to this repo."],"Eji13z":["Toggle highlight formatting."],"EkH9pt":["Update"],"El7NbA":["Heading 2"],"Emz5BG":["Embeddings are computed only when a search runs and are cached locally under <0>.ok/local</0>."],"EoaQyO":["Append-only log of what changed."],"EqrC_R":["Undo failed: ",["message"]],"EqtBXb":["Visual editor find open"],"ErRi6L":["Template \\"",["label"],"\\" deleted"],"Es-eZU":["Remove from recent projects"],"Ev2r9A":["No results"],"EvPX7f":["Opens a folder picker to choose where to clone the repository."],"Evq3lu":["Orphan mode"],"ExPiRQ":["Move to the next CodeMirror lint diagnostic."],"ExUzM4":["skill \\"",["0"],"\\""],"F-NRCj":["Add property"],"F-vBv0":["Ask"],"F0OA00":["Get ",["displayName"]],"F1T9y_":["Showing top matches — keep typing to narrow"],"F4IYWe":["Share doc"],"F4vEsL":["Sync status: ",["syncStateLabel"]],"F6pfE9":["Active"],"FBknns":["HTML"],"FCAcjR":["Run a real terminal docked inside OpenKnowledge, starting in this project's folder."],"FCxvG5":["First item"],"FEK4oC":["OpenKnowledge will be initialized at <0>",["gitRoot"],"</0> — the parent of your new folder, because it contains a <1>.git</1> folder (one project per git repo)."],"FEqWFL":["Guides your AI agents on how to work here."],"FEr96N":["Theme"],"FNTx6u":["Search \\"",["semanticSubmitQuery"],"\\" by meaning"],"FOGD7m":["Create something great."],"FRYB1Q":["/api/config returned a malformed body"],"FRqZ9v":["Couldn't update skill: ",["0"]],"FTUGgh":["Enter a repository URL or owner/repo"],"FUMerq":["Could not enable sync: ",["detail"]],"FWQuPE":["This project is running a different, incompatible build of OpenKnowledge than this app (v",["0"],")."],"FXk_zY":["Adds a guided workflow for authoring new Agent Skills."],"FZtBeR":["Enable ",["0"]],"FgRAvd":["Logs & system info"],"FjkaiT":["Zoom out"],"FnMkli":["Sync disabled — you don't have permission to push"],"FqTpiN":["Bird wiki"],"Fqr8BP":["Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."],"Fsx78O":["Add the <0>ok</0> command to your terminal"],"FvMSms":["Renaming changes the file on disk and the id agents use to pick this template."],"FvpFSZ":["Reveal in Finder, ",["hint"]],"Fxf4jq":["Description (optional)"],"Fy4GgU":["Explain how your codebase works so teammates and AI agents can find their way around. Good for documenting the architecture, the main parts, and the questions new contributors always ask."],"FyW0WO":["Authorize in browser"],"G-JBA1":["Source mode requires a live connection — your edits are saved and will appear when you reconnect."],"G-h6qN":[["0","plural",{"one":["#"," option set"],"other":["#"," options set"]}]],"G0YZ-I":["Indent or outdent list item"],"G1Gw0v":["New template"],"G1XxbZ":["Checkbox"],"G4-bgo":["Ask AI (from selection)"],"G7-rf8":["Pattern syntax error: ",["message"]],"G7cMuO":["HTML preview"],"G8t9NN":["Add a property"],"GA-UkN":[["keyName"]," type: ",["typeLabel"],". Click to change."],"GDvlUT":["Role"],"GF51cw":["Give the AI tools you use access to read and update your projects. Pick what to set up below, and change it anytime."],"GGsM4y":["Selected in graph"],"GHsJb8":["Show .ok folders"],"GJH-AT":[["docName"]," is ",["0"],". OpenKnowledge currently opens files up to ",["1"],"."],"GK-IRZ":["Undo buttons are disabled — per-session state has been garbage-collected."],"GLxIKR":["How to push manually"],"GN6L5F":["Filename"],"GQDSBN":["Layout options"],"GUYwCr":["Dismiss notice"],"GUqTzn":["Competitor research"],"GXf9hG":["Cloning ",["repoName"],"..."],"GZzDqc":["Details about the error you just hit are included. Secrets like API keys and tokens are redacted automatically."],"G_686w":["Task List"],"G_efLf":["Installed into"],"G_hVTP":["Enable Themes"],"G_mWXb":["Filter languages"],"GamjcN":["Template saved"],"GemPfn":["Failed to parse forward-links error response (HTTP ",["status"],")"],"Gfr4fu":["Server can't open documents"],"GhjUB_":["Reconnected"],"Gp_twO":["Local path"],"GsBUCk":["Loading settings"],"Gt4gOO":["This folder has unpushed changes. Recipients will see the last pushed version."],"GtJbUa":["Background"],"GuaJb-":["Open email draft"],"GubkSu":["Use a starter pack"],"GuqOb1":["Failed to load headings"],"Gx0VS1":["e.g. drafts/ or *.draft.md"],"GzPQ2f":["Stay in the loop"],"H-vDm3":["Relaunching to install the update…"],"H0WlWQ":["Grid of rows and columns with a header row."],"H86f9p":["Collapse"],"HAvRAI":[["skillCount","plural",{"one":["skill"],"other":["skills"]}]],"HCn0Ay":["Toggle strikethrough formatting."],"HGNCsl":["Connection lost — keep this tab open, your edits will sync when reconnected"],"HIb0vl":["Network error — please try again"],"HM56Bx":["Creating..."],"HPTPGr":["Create a new spec file for my user story"],"HSh8u_":["Folders"],"HTW0Zw":["One more step: run <0>claude</0> in this project and approve OpenKnowledge once."],"HXFyWD":["Split diff"],"HdkSiO":["New file"],"HfI1dR":["I already have it locally →"],"HjNrT0":[["0","plural",{"one":["#"," backlink"],"other":["#"," backlinks"]}]],"Hl89Qd":["Loading templates"],"HlmZBk":["Documents response did not match expected shape."],"Hnl9nT":["Set where pasted and dropped files are stored for this project."],"HoWElC":["This ",["targetNoun"]," has been moved, renamed, or deleted in your local copy of branch <0>",["branch"],"</0>. Please commit your changes or enable auto-sync."],"Hp1l6f":["Current"],"HpK_8d":["Reload"],"HptUxX":["Number"],"HqiZvw":["OpenKnowledge stores its configuration and internal files inside a newly created <0>.ok</0> directory in your project root folder."],"Hrz9NY":["Wiki link"],"HyvSqq":["Project Skill"],"I-xnra":[["0"]," hex value"],"I1gRhX":["Failed to rename"],"I5685_":["Try a prompt"],"I5AfhE":["Sync status unavailable — server unreachable."],"I7Exsw":["Follow us on X"],"IA1wNb":["The Claude Desktop App didn't open the file. Is it installed? (",["msg"],")"],"IA6JW2":["Detecting"],"ICoNYz":["You can also manage this in Settings."],"IFezUv":["The audit could not be completed. Try again."],"IInnZo":["Conflict"],"IKoTAC":["Keep disabled"],"IN4UX8":["Search (",["searchShortcut"],")"],"IQPyrD":["Missing page — click to create"],"IRv9cH":["Cloned ",["repoName"],"."],"IWGfGF":["Checking your GitHub connection"],"IX7-sq":["Something went wrong opening \\"",["docName"],"\\"."],"IX_uXB":["my-feature"],"IYciRC":["Thanks for the report!"],"IajAbS":["Add a starter pack"],"If0crP":["Open with AI ",["targetDisplayName"],", ",["hint"]],"IgTwLt":["Open this document in the editor and collapse the graph."],"Ik-gP0":["Heading H",["level"],": ",["text"]],"Iq8zdU":["Close terminal"],"IrB5AK":["Server-side cleanup failed for ",["failedCount","plural",{"one":["#"," item"],"other":["#"," items"]}]],"IreQBq":["Repository"],"It9ARY":["Toggle the right document panel."],"Ix0K8o":["Hide external URL nodes"],"IxyZXD":["Screenshot"],"J2MgzQ":["Undo all edits on ",["docName"]],"J2Mv98":["Name (e.g. ",["login"],")"],"J2eKUI":["File"],"J3HzPL":["Collapse ",["keyName"]],"J6N5MX":["Couldn't construct the share URL. Try Done and re-share."],"J6mxC1":["A network problem or GitHub outage interrupted the clone."],"JCxGEX":["No disconnected pages. Pages appear here only when they have no incoming and no outgoing graph edges."],"JE21eh":["Symlink to ",["targetPath"]],"JJcBCm":[["0"]," total"],"JK-Ave":["Hide thumbnails"],"JL3si7":["Updating"],"JLUTgi":["No tags yet — author \`#tagname\` in any doc to populate the index."],"JLzQi_":["Close ",["accessibleLabel"]],"JM_aq-":["Use an https:// URL — http:// is only allowed for localhost."],"JOcPqH":["Bring a remote repository onto this machine."],"JWsZlx":["Open a project to edit."],"JZ8cO6":["Light, dark, or follow the OS."],"J_bJiH":["Pick a built-in IDE color palette, or define your own."],"Jejur6":["Couldn't load document"],"JfPuv7":[["shareBranch"]," isn't a valid branch name."],"Jhj_lh":["Modify the link target, anchor, and display label."],"JkCD2u":["Sync paused — you don't have permission to push to this repo"],"JmfgFc":["(a worktree of ",["0"],")"],"Jqqevv":["System error"],"JtD-Br":["Page link"],"Jw6EC4":["Branch switch failed — try opening the ",["targetNoun"]," manually."],"K-a33w":["Start writing to create this page"],"K-h9cT":["Couldn't save the resolution for ",["filePath"],"."],"K0N7zS":["Config sharing status read failed"],"K1ckLX":["Failed to create folder"],"K6MQQk":["Sync is failing. See the sync status for details."],"K6jjWB":[["packName"]," was already set up. Nothing to do."],"K6jxcj":["Add a key"],"K8-WWn":["Move between table cells"],"K9J00P":["Clone failed — connection error"],"KDuPiY":["Uploading ",["fileName"]],"KDw4GX":["Try again"],"KFdXwz":["Show panel (",["panelShortcut"],")"],"KH5bQi":["Using the <0>OK_EMBEDDINGS_API_KEY</0> environment variable (managed outside OpenKnowledge)."],"KIIamL":["OpenKnowledge will create commits and push them to your remote automatically. If you do not want automatic commits in your git history, you should not enable auto-sync."],"KOZud0":["Build a competitor research knowledge base. Start with an overview page, then add cross-linked pages for each competitor, their products and pricing, and the sources behind every claim."],"KPW5WC":["moved template"],"KQGZuq":["Reused if it already exists, created if not."],"KRJ6xh":["No tags yet. Continue typing to create one."],"KWL_Ih":["Blog post"],"KX1MZR":["Your repositories"],"KYSocE":["Research the extinction of flightless birds"],"KYcZ6Y":["Above"],"KZLdgR":["See <0>#design-docs</0> for the latest specs."],"K_vT1F":["Upstream sync"],"KaFCD3":["Open this link in a new tab and collapse the graph."],"Kf7GG5":["Restarting the server…"],"Kgdbkt":["Switch to local-only refused"],"Kh1n4a":["<",["componentName"],"> isn't a known component. Copy the source to use it elsewhere, or delete the block."],"Khxcyu":["Terminal access isn't enabled for this project."],"KkEAud":["Create a file from the current document or folder context."],"KmydK6":["Bold"],"KnoB--":["Will be saved as <0>",["sanitized"],"</0>."],"KpOJFY":["Enable external link previews"],"Kr3VPS":["Codex will still ask until you run \\"ok init\\" in a terminal for this project."],"KsAPaB":["This branch is checked out in:"],"KszKI_":["Skill level"],"KtACeE":["Default: <0>",["0"],"</0>"],"KujtjC":["Find"],"L-rMC9":["Reset to default"],"L1ZE3M":["Document statistics"],"L1rRuU":["Embeddings API endpoint"],"L3CEC1":["this item"],"L4Cdd9":["or create a new file <0/>"],"L6Hhh6":["(root)"],"L8fKuc":["Run this in your terminal"],"L9Y9Om":["Top linked pages"],"LBwUR6":["Branch switch timed out — try opening the ",["targetNoun"]," manually."],"LCUy_N":["Session ended"],"LDuM35":["Replace current match from field"],"LE7t79":["Clone to a new folder"],"LKOLNn":["No AI agents installed"],"LNum6A":[["minutes"]," min ago"],"LRgZAt":[["owner"],"/",["name"]," already exists"],"LXdWeS":["Medium section heading."],"LXfNU-":["Navigation and suggestions"],"LYufDw":["Failed to enable semantic search — ",["detail"]],"LbmLyU":["Can't safely edit this tool's config"],"Lcehxn":["Save resolution"],"LdABLa":["Could not open ",["target"],". Try opening it manually."],"LdKIHS":["Draft a spec"],"LhQlGR":["This project is running an older version of OpenKnowledge (v",["0"],") than this app (v",["1"],")."],"LhWYpm":["Other OK paths are tracked upstream:"],"LiAw2k":["What this changes"],"LlHqdU":["Initializing project"],"Llyqvo":["This usually means one of:"],"LpB85N":["Plain"],"LtI9AS":["Owner"],"LtSYdi":["Reveal in Finder"],"LtiJ5c":["Project skill"],"LuoJWu":[["truncatedShownCount","plural",{"one":["Showing the first item in one folder — the rest of that folder is hidden."],"other":["Showing the first ",["formattedCount"]," items in one folder — the rest of that folder is hidden."]}]],"LwMxXg":["Failed to open worktree."],"M-IF14":["Report reference"],"M1OfV9":["Next source diagnostic"],"M3ytY_":["This looks like a drive root (e.g., C:\\\\). Scaffolding here will scan an entire drive."],"M5_9s2":["Sending report"],"M5mfAe":["Add tag"],"M9597s":["Preparing share URL..."],"MCjC9A":["Delete ",["deleteDescriptorLabel"]],"MDZSJe":["When the agent runs its scheduled work."],"MGb89P":["Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."],"MHrjPM":["Title"],"MJqRO6":["Your report is being sent."],"MKOVhz":["Enable git auto-sync"],"MQIM_Y":["Couldn't copy. Select the URL above to copy it manually."],"MTs6g3":["Couldn't reconnect after server restart"],"MUBR8r":["Rename succeeded but the tabstrip may be out of date — refresh to resync"],"MUrVEo":["No recent projects."],"MV-Dkb":["Found ",["countDisplay"]," markdown files"],"MVxpbf":["Find and replace"],"MWrUEd":["Undo all"],"MZSBsh":["No templates yet. Add one to give new docs in this folder a ready-made starting point."],"MZoxVx":["Failed to load tags. Press Escape and re-open to retry."],"Mb_20S":["Visual"],"Md709y":["Loading ",["fileName"]],"MdpSC1":["New skill"],"Mh_4hd":["Previous tab"],"Mj8R8K":["Couldn't install skill: ",["0"]],"MmDDWK":["Recently opened"],"MmqnGI":["No global skills yet."],"Mnavhe":[["propPanelDescriptorLabel"]," Properties"],"MqQoV-":["Describe what you want to build, start a blank file, or scaffold from a template."],"MqsbfN":["Turn on external link previews?"],"MrwYIK":["Toggle a source comment through CodeMirror."],"MsuXaI":["Hide panel (",["panelShortcut"],")"],"My0wYT":["When you hover an external link, its URL is sent to the destination site to fetch the page's preview metadata — one request per previewed link."],"My9uXI":["Updated \\"",["display"],"\\" to ",["0"]," — your previous version is in history if you need to restore it."],"N1KkEO":["Jump to last tab"],"N1YYa7":["Loading image"],"N1mdmS":["This file can't be opened in the text editor."],"N2FcBE":["Synced"],"N2S1rs":["Empty"],"N2eHWq":["Code Block"],"N3_ozB":["Hubs"],"N55YNr":["Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."],"NEzPEh":["Create a new branch, or check out an existing one, in its own window."],"NF_Wcg":["Show skills section"],"NIWAux":["No docs registered under #",["tagDocsName"],"."],"NJyQi_":["Branch ",["shareBranch"]," no longer exists on the remote."],"NKkZXl":["Initialize and open"],"NNJsn7":["One more step: enable it in Cursor → Settings → Tools & MCP (Cursor leaves project servers off until you turn them on)."],"NOHyEE":["Retry push"],"NORKZU":["Pattern warnings: ",["summary"]],"NQ8llq":["Add item"],"NQXwDy":["Edit in config file"],"NRSLBe":[["diffMin"],"m ago"],"NSnIUP":["Two-page (even)"],"NUr4kz":["A reusable starting point for new documents in this folder."],"NYUhy5":["Subfolder name"],"N_7kkF":["Read through this codebase and draft a technical spec for the most complex module: an overview, the architecture, key files, and open questions, all linked from a specs index page."],"NcurBF":["Pan down"],"NgZwB0":[["enabledCount"],"/",["0"]," on"],"NjrIak":["File: <0>",["fixedName"],".md</0>"],"NkXEFS":["Restore failed — document unchanged"],"NmPNJJ":["Copy code"],"Nn4GgW":["Will be created as <0>",["sanitizedName"],"</0>"],"NnQapF":["Open with AI ",["targetDisplayName"]],"NpC29w":["Create a new list item from the current list item."],"NrFwux":["Failed to save content rules — ",["0"]],"Nu4DdT":["Sync"],"Nu4oKW":["Description"],"NuH1jp":["Public repository"],"Nv3mUj":["Show advanced"],"NvOvTi":["Create in <0>",["dirDisplay"],"</0>"],"Nx7BWE":["Git auto-sync"],"NxW-md":["Resize ",["handleKey"]],"NzFvyK":["Session ended — undo unavailable"],"NzluOx":["(optional)"],"O0Z2Xr":["Outgoing"],"O2UpM1":["Browse"],"O3oNi5":["Email"],"O4PnDd":["AI tool management is only available in the OpenKnowledge desktop app."],"O6yEPk":["Create a new OpenKnowledge project in the folder of your choice."],"O7_W_a":["Open with AI"],"O9oQJS":["Send report"],"OD0FCX":["Hidden “",["basename"],"”"],"ODGGlj":["Folder name: ",["detail"]],"OETysD":["No hub pages yet. Hubs appear once pages accumulate inbound graph links."],"OEu_0l":["Failed to load skills: ",["0"]],"OFBmkg":["Search files, commands, projects, and AI handoff actions. With text selected in the visual editor, this chord adds a link instead."],"OJTOUj":["Requires ",["brand"],"."],"OJeiSH":["Failed to add property"],"OLBz-_":["Mermaid diagram failed to render."],"OLIKgw":["Drag item ",["0"]," to reorder"],"ONPvOb":["Loading agent activity"],"ONgEZF":["Loading headings for ",["pageTarget"]],"OOIVJo":["Uninstalled \\"",["0"],"\\" from ",["1"]],"OTF92M":["Label <0>(optional display text)</0>"],"OVjNeX":["Terminal ",["0"]],"OX2Neh":["Inline code"],"OXb_Df":["Settings content"],"OXdGnd":["Problems"],"OYnx7O":["Path cannot start with \\"/\\""],"OZJeTZ":["Skill"],"Oawo4U":["The report service couldn't be reached."],"OdmsFg":["Failed to delete item"],"OeAl1e":["e.g. assets/uploads"],"OfhWJH":["Reset"],"OgyJSr":["Local only"],"OiHJdA":["Move through slash, wiki-link, tag, and path suggestions; accept or dismiss the active suggestion."],"Okd2Xv":["Toggle underline formatting."],"OlAl5i":["Expand all"],"OmHTGj":["Disable git auto-sync"],"On0aF2":["Website"],"Oo_WWc":["No pages found"],"Oos8fo":["Copy command"],"OplnBG":["Managing AI tools is unavailable in this build."],"OuY8t9":["Open in current branch"],"OvEjsP":["Copying..."],"OxplNM":["Updated \\"",["0"],"\\": added ",["1"],", removed ",["2"]],"Oxyd5f":["Pick a name"],"OyIC0Q":["Project name"],"P-ye9o":["Could not open folder picker"],"P0HC30":["This ",["targetNoun"]," moved to <0>",["0"],"</0>. Open it there?"],"P3NS4G":["Pattern syntax error (line ",["lineNumber"],"): ",["message"]],"P3hnm0":["File too large to open"],"P47EWZ":["Could not update sidebar settings"],"P6gXB-":["Replace ",["keyName"]],"P6lAT3":["Folder target: ",["linkTitle"],". Click to open the overview."],"P8yDjG":["Name can’t be empty, \\".\\", \\"..\\", or contain / or \\\\"],"PB4upl":["Find previous match"],"PBwmDJ":["Searching by meaning"],"PBxg_E":["Not now"],"PCNIuJ":["File an issue"],"PCSkw2":["Skills"],"PIMM5l":["You're subscribed!"],"PKLY-1":["Opening..."],"PKjGhT":["Headings"],"PMyJ9C":["No edit session yet"],"PPFQ3o":["Installed \\"",["0"],"\\" into ",["1"]],"PQCdtv":["\\"",["docName"],"\\" doesn't exist."],"PR9FSv":["Move to the next visual-editor find result."],"PRnH8G":["of ",["0"]],"PVUn_c":["Open folder"],"PZtgO0":["Opening worktree"],"P_bX4O":["How to set up"],"Pck6eI":["Pick a built-in IDE palette. The dark IDE themes override the light/dark setting in Preferences."],"PdA9NZ":[["ahead"]," ahead"],"PdJZ5p":["No skills yet."],"Pgu10b":["Saved as <0>",["slug"],".md</0>"],"PgzIpb":["Move to the previous visual-editor find result."],"PiH3UR":["Copied!"],"PkeYXL":["Expanded graph mode"],"Pkw7J9":["This folder is empty."],"PqYWiC":["Couldn't restart the server automatically. Try running \`ok stop all\` in a terminal, then reopen this project — or restart your computer if it persists."],"PrJYSN":["This folder isn't on GitHub yet. The link won't work until it's pushed."],"PrhzDE":["Pan up"],"Pyp1NA":["Restore to this point?"],"Q5fqMz":["Connection error — try again"],"Q6hhn8":["Preferences"],"Q7W-mC":["Same folder as current file"],"Q8A-U_":["Connected to"],"QAi7Q9":["Branch <0>",["trimmed"],"</0> already has a worktree — it'll open in its own window."],"QDZbvN":[["diffDays"],"d ago"],"QJaG-9":["Choose CLI for new chat"],"QNxpRm":["Dock terminal to the right"],"QOINDn":["empty"],"QQghPu":["Install in Claude Desktop"],"QR5SP1":["created template"],"QYfQdv":[["displayName"]," CLI"],"QcpeeE":["Navigate to ",["docName"]],"QfFBdJ":["The template's filename (without \`.md\`)."],"Qj4RL5":["Completed:"],"QlxHAH":["Showing results for \\"",["semanticResultsLabel"],"\\""],"QnjpOq":["What do you want to build?"],"QqBQu1":["Label <0>(visible link text)</0>"],"Qvls7J":["Eng specs"],"Qw-7Ie":["A simple place to write, with one file per topic and a daily journal. Pick this if you just want to start writing and let the links between notes build up over time."],"QyioBP":["Move up"],"R0cyYB":[["0","plural",{"one":["#"," request blocked by the preview's security policy"],"other":["#"," requests blocked by the preview's security policy"]}]],"R0jJzV":["Paste URL, owner/repo, or search your repos"],"R3y75Z":["Edit source"],"R65q-K":["A real shell is off for this project. Turning it on runs commands with the full access of your macOS user account."],"R9IDFz":["Renames the folder on disk and the id agents use to invoke it."],"R9Khdg":["Auto"],"RDjuBN":["Setup"],"RDrXh4":["Configure user, project, and integration settings."],"RG4XHV":["Copy ",["0"]," prompt"],"RGCCrg":["Copy share link"],"RGkNeJ":["Initialize a starter pack"],"RJ3a8Z":["Looking for <0>",["lookingForUrl"],"</0>."],"RN62Q8":["We'll build <0>openknowledge.skill</0>, save it to <1>~/Downloads</1>, and open the Claude Desktop App for you."],"RO-yts":["Failed to disable link previews — ",["detail"]],"RSqaSd":["Project root"],"RVZJWQ":["Search projects..."],"RXNu_r":["Shared via git with everyone working on this project."],"RY6Bq1":["Open shared ",["targetNoun"]],"RaPMZv":["Keyboard shortcuts available in the editor and workspace."],"Rah7yq":["What should the AI do? (optional)"],"Rb1zMa":["No excerpt"],"RfHNf8":["Open activity panel for ",["tooltipName"]],"RfaEio":["Toggle source comment"],"RfilGt":["No rules match your filters."],"RgbKEe":["You don't have access to this repository."],"Rj01Fz":["Links"],"RlCInP":["Slash commands"],"RlLl3G":["Actions for ",["0"]],"RmBY0A":["No git remote"],"RnrnTe":["Already set up — ok is available in your terminal"],"RobAKV":["Update the destination and optional section anchor."],"Rq1vFD":["Tree view options"],"RrAIZx":["What config sharing covers"],"Rsdhj9":["Configuration warnings"],"Rx5ReQ":["Rename ",["keyName"]],"RyIKxy":["This ",["targetNoun"]," has been moved, renamed, or deleted in your local copy, and that change hasn't synced yet."],"S33tz3":["Not connected"],"S34Vju":["Have something else in mind?"],"S6l5dv":["Could not start creating a new item"],"S9Vnum":["Remove ",["patternText"]],"SCoBBH":["Tag suggestions"],"SCzAbA":[["phase"]," — ",["pct"],"%"],"SEYWYq":["Undo all edits on this file?"],"SFN6dN":["Heading 3"],"STTOnz":[["keyName"]," type: complex value (nested; read-only)"],"SUOoXn":["Failed to open project."],"SVLPt5":[["formatted"]," GitHub stars"],"SXCSQd":["Copied path"],"SYfHmN":["Unpin tab"],"Sc1bKE":["Local collaboration data for \\"",["docName"],"\\" could not be cleared in time. Reload to retry."],"ScwcF2":["A project already exists at this location. Pick a different parent folder."],"SfxQX8":["Writes a project-MCP config for each selected tool."],"SgKLfA":["Not connected to GitHub."],"Sh3Qkg":["No matching branches."],"Si7mIR":["Create report"],"SiUUCS":["Next match"],"SkMZlS":["Couldn't remove <0>",["targetGitPath"],"</0>: ",["removeGitError"]],"Skr_7L":["Search worktrees"],"Sq8lf2":["Editors to install skills into"],"SrOuyg":["Document panels"],"T-654M":["Loading PDF"],"T0OVm7":["The default branch is protected — pushes need a pull request."],"T3j-7o":["e.g. Switching projects while a sync was running"],"T67A0Y":["Auto-sync pushes/pulls commits to your git remote on intervals and on save. Toggling on requires confirmation."],"TEEPPF":["Will replace existing OpenKnowledge entry"],"TJnkyf":["ok ui responded but server.lock has no port yet"],"TKQ7K-":["Install"],"TLIO3j":["Toggle italic formatting."],"T_R-Qz":["Primary"],"T_wG4n":["We couldn't check your GitHub connection."],"Ta25TG":["No history yet"],"TbjyhA":["Docs"],"Te6sK2":["Heads up: editing any rule or option here creates a <0>.markdownlint.json</0> file in your project to save your changes."],"ThmUrC":["Could not finalize project setup. Try again."],"Tjc1pH":["Section <0>(optional heading anchor)</0>"],"TsZmgr":["The file on disk, and the id agents use."],"TvY_XA":["Documentation"],"TwYboS":["Navigate CodeMirror source search results or dismiss the search panel."],"Tz0i8g":["Settings"],"Tz9pJB":["Clone stream ended unexpectedly — check if the clone completed"],"U2Kx6T":["Close all unpinned"],"U2pMtf":["tag-name"],"U3IvM5":["Full guide"],"U5Spo9":["Content directory must be inside the project"],"U7HJ4y":["Managed by OpenKnowledge (read-only)"],"U8CD-l":["Copy full path, No workspace"],"UBv8UK":["Delete Permanently"],"UDFrWm":["Checking GitHub connection..."],"UL8A9w":["Tag"],"ULRb5t":["Adds telemetry, server state, and runtime info when available. Document names are anonymized."],"UMrOy2":["Skill \\"",["trimmedName"],"\\" created"],"UPjaXD":["Couldn't duplicate \\"",["0"],"\\": ",["1"]],"UQAp48":["Search templates"],"UQMMvx":["Moved \\"",["name"],"\\" to ",["0"]],"URmyfc":["Details"],"UTNVyS":["Select the full source document."],"UTZ97u":["Selection must be inside the project"],"UTgWxm":["Nothing was uploaded. The report stays on this Mac until you email it to us."],"UVLlMV":["Couldn't reach GitHub. Try again?"],"UW2Fg3":["This project's running server doesn't support live editing. Restart OpenKnowledge to fix."],"UW93oq":["Replace key"],"UYcGIW":["Connecting — waiting for collab server"],"Ua78MH":["no response"],"UaDyeb":["Hide selection preview"],"Uay5NL":["This ",["targetNoun"]," was added to branch <0>",["shareBranch"],"</0> recently. Switch and update to open it."],"Uci-Ph":["Ordered List"],"Ud0Pj9":["<0>Mirror source removed.</0> The doc <1>",["src"],"</1> is no longer available."],"UfW9Kr":["Your search queries and the full text of matching pages are sent to your embeddings provider (OpenAI by default) to compute embeddings."],"UhpfxY":["Pan left"],"UkQGhd":["Hide replace"],"Up2_7p":["Copy full path"],"UpCz01":["This doc"],"UuYo7g":["This ",["targetNoun"]," has been moved, renamed, or deleted in your local copy. Please commit your changes or enable auto-sync."],"Uuj_R4":["New from template"],"Uw6ERJ":["Couldn't copy: ",["detail"]],"UyROxs":[["mins","plural",{"one":["#"," min ago"],"other":["#"," min ago"]}]],"V2Gmie":["These rules come from your project's <0>",["configFile"],"</0> file, which fully governs linting for this project. Turn rules on or off and edit their options here; changes write back to the file."],"V48OUT":["You deleted <0>",["filePath"],"</0> locally, but it was modified upstream."],"V7QxyT":["Connection dropped"],"VAHWL_":["Connected as <0>@",["signedInLogin"],"</0>"],"VBE2dw":["Build and keep track of the world behind your story. A home for your characters, places, factions, and the lore that ties them together, so details stay consistent as you write."],"VFQXPl":["External link previews show a card with the site name, page title, and description when you hover a link."],"VITWk5":["Managed by OpenKnowledge"],"VIwCaD":["Entry"],"VM7H66":["This file is binary and can't be shown as text."],"VNgKZz":["Advanced settings"],"VTulZj":["Open in worktree"],"VU3Nrn":["Missing"],"VUijjF":["Embed an image with optional alt text."],"VYd_YA":["Open an existing project folder from disk."],"VZGGPK":["Collapse terminal"],"VZGh8G":["Fold, unfold, fold all, or unfold all source ranges."],"VZSBXL":["Semantic ranking activates the first time an agent runs a search."],"V_6bJ4":["Terminal settings not loaded yet — try again in a moment."],"V_wltx":["Enter a title for this template."],"VbqhBI":["Already at ",["assetContentPath"]," — reusing."],"VcqWBy":["Upload may have succeeded but the sidebar is out of date — refresh to resync"],"VdXv4D":["Clone from GitHub"],"Vftef5":["Common markdown issues — hard tabs, heading increments, list markers, and more."],"Vlc75q":["Keep file deleted"],"VsaI0G":[["folderCount","plural",{"one":["folder"],"other":["folders"]}]],"VuxVSP":["Start source completion"],"VvS_k_":["Config sharing is now local-only."],"VxO6wR":["Delete selected files or folders"],"VzGJRl":["Add link"],"W-ntoW":["heading-slug"],"W0i24j":["Object"],"W1SI2K":[["0","plural",{"one":["#"," warning"],"other":["#"," warnings"]}]],"W1qRuM":["This document is already active in the editor. Use Open to collapse the graph."],"W3Xlpc":["Set the auto-sync default for users opening this project for the first time. This setting is committed to your repository."],"W5A0Ly":["An unexpected error occurred."],"W7XJN4":["Can't nest projects. An OpenKnowledge project already exists at <0>",["rootPath"],"</0>. Choose a location outside it, or open that project instead."],"W8vpBM":["starter pack"],"W9_Bub":["Local changes overlap with incoming sync"],"WFEbV1":["Flag common markdown issues in the editor. Powered by <0>markdownlint<1/></0>."],"WHPvOb":["All files are hidden by view filters."],"WJjviG":["What to include"],"WL6puM":["Path resolves outside project"],"WMIKXK":["Are you sure you want to delete ",["targetCount"]," selected items? Folders and all files inside them will be deleted. This action cannot be undone."],"WPwDin":["Open folder on disk"],"WR0y2O":["Share folder"],"WRNXKp":["Searching"],"WRdYfS":["Refresh audit"],"WWcqsG":["Start here: what this is and how it's organized."],"WZ-vBy":["Permanently deletes <0>",["targetGitPath"],"</0> and all its git history. Working files stay in place. If the parent git repo is intentional (e.g. you cloned it), cancel and pick a location outside it."],"Waiy-j":["The agent's persona, values, and voice."],"WamGNs":["Failed to load PDF: ",["error"]],"WcWS__":["Download file"],"Wcv-Zi":["Make this knowledge base available as a Claude Skill."],"We7h2I":["📝 or assets/icon.png"],"Weq9zb":["General"],"Wgmlsw":["Fetching"],"Wh0im4":["editing [[",["realCurrentDoc"],"]]"],"WhOsNE":["Strikethrough"],"Wi-VWy":["Couldn't send the report"],"WkTLN7":["Show only markdown files"],"WmPbvm":["Get product updates in your inbox."],"Wq6Wcm":["Please enter a valid email address."],"WqLq6M":["Open with AI ",["displayName"]],"Wt5W56":["Sync is off — your edits will not sync to the remote repository."],"Wtw22s":["Installing"],"WuntOK":["Preview of the screenshot"],"WyQxwa":["Connect this project to GitHub to share."],"WyXG7w":["Close all"],"Wyxs0x":["Path cannot contain \\"..\\""],"X0ttSN":["No tags match \\"",["tagListQuery"],"\\"."],"X7u0xR":[["0"]," templates available"],"X8kjQX":["Re-authenticate with GitHub"],"X9VpsP":["Loading folder contents"],"XAyxsa":["Check out remote branch"],"XDzAnp":["Opens in a new tab"],"XH30C4":["document"],"XJOV1Y":["Activity"],"XPJ0sN":[["settingsDescriptorLabel"]," properties"],"XPqe3B":["Create new tag #",["tagValue"]],"XRuL0i":["Create page"],"XU0OXn":["Enable auto-sync"],"XV5sC0":["Open worktree"],"XW18jo":["Page headings response did not match success schema"],"XYlJJT":["Setting up"],"XZkdtg":["Switch branch"],"XcGbim":["Show hidden files"],"Xet9MX":["Failed to load backlinks"],"Xewl6B":["Your local copy is behind. Pull the latest changes, then open the link again."],"XfzqjK":["template \\"",["name"],"\\""],"Xisk4u":["Edited ",["editedAgo"]],"Xk0-VC":["Previews of links to other documents in this project are always on and read from the local index — nothing leaves your computer for those."],"Xl-UUg":["guides/install or https://example.com"],"XmJfZT":["name"],"XnlF3W":["Add the next matching source selection."],"XopE_I":["Failed to parse backlinks error response (HTTP ",["status"],")"],"XpIZmv":["Fenced code block with monospace text."],"XqNHcm":["Couldn't update skill targets: ",["0"]],"XtRoxT":["Page ",["pageNumber"]],"XuQzrk":["Couldn't restart the server — another process owns it. Quit other OpenKnowledge windows for this project, then try again."],"XvPJaT":["Diff layout"],"Xv_ijG":["https://github.com/owner/repo or owner/repo"],"Xw_maT":["Type a query, then press ↵ to search your pages by meaning."],"XyOUTJ":["Exit merge"],"Xzy0s0":["Remove ",["fullLabel"]," from context"],"Y-Urt2":["Block math equation rendered with KaTeX from a LaTeX source string."],"Y1QMlM":["Get set up"],"Y1kX2z":["OpenKnowledge initializes at <0>",["projectDir"],"</0> — the parent of <1>",["pickedRelative"],"</1> because it contains a <2>.git</2> folder (one .ok/ per git repo). <3>Content directory</3> defaults to <4>.</4> (the whole repo); type a sub-folder to narrow it."],"Y6SK9K":["Show source"],"Y8ViJx":["A newer version may have been deployed since this tab opened."],"YC6_wP":["Edit ",["keyName"]],"YEIS9T":["Edits apply live. Light or dark is chosen from the background."],"YEP3X2":["Delete a table when the active table cell selection covers the full table."],"YGIi_c":["Reinstall"],"YIp4R0":["A memory snapshot from the crash. It can contain document content and can't be redacted, so leave it off unless you're comfortable sharing it."],"YJ1BTp":["A skill with that name already exists."],"YKLP_-":["Template renamed"],"YLMBSd":["e.g. The editor froze after I pasted a large table"],"YPFBfr":[["detail"]," - ",["kind"]," \\"",["createdPath"],"\\" still exists on disk"],"YRavYS":["A personal color-theme picker — not shared with your project. When on, it appears under Plugins in the sidebar."],"YSFv5w":["No git repository — config sharing does not apply here."],"YTLmTM":["Remove the parent <0>.git</0> folder"],"YW7Q86":["Search settings not yet loaded — try again in a moment"],"Y_kL7X":["Customize how the editor looks and behaves."],"YaeyFh":["Pulls may overwrite uncommitted edits in your local files."],"Yea-K5":["Restore to this point"],"Yi0VMG":["Upload ",["keyName"]],"YjMLg2":["Off — external links show only their URL. No requests leave this computer."],"YjhKI5":["Cloning..."],"YlDuro":["Fit height"],"YsEYYS":[["behind","plural",{"one":["#"," commit behind"],"other":["#"," commits behind"]}]],"YwPUUP":["This pack is already set up here."],"YyXtnN":["Underline"],"Z1LF1M":["Sharing a doc needs a GitHub repository. Create one for this project."],"Z2M5XM":["Reason: ",["reason"]," (",["osDetail"],")"],"Z3FXyt":["Loading..."],"Z5HWHd":["On"],"Z5h97D":["Hide files and folders from your knowledge base. Hidden items don’t appear in the file tree, search, or AI tools. <0>Learn more about patterns</0>."],"Z6rrjc":["No <0>.markdownlint.*</0> file yet — every rule runs on the same defaults as the VS Code markdownlint extension: all on, except line length."],"Z8KDox":["Enter a folder name (e.g. brain)."],"Z8lGw6":["Share"],"ZARuZJ":["Couldn't load files"],"ZBYKxv":["Reverts every change this agent made to <0>",["docName"],"</0> this session (",["burstCount","plural",{"one":["#"," burst"],"other":["#"," bursts"]}],"). Other files and writers are unaffected."],"ZBt4rI":["Instruction for the AI"],"ZI8uvA":["No problems found."],"ZLQol-":["You can turn this on later in <0>Settings → Sync</0>."],"ZNK2Tq":["root"],"ZQJ1IV":["Activate the last editor tab."],"ZQLDTl":["created folder"],"ZU8VV_":["Remove failed: ",["error"]],"ZWgr0b":["In a subfolder"],"ZWolSV":["You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."],"ZWwYwM":["Base branch"],"ZWxfrc":["cleared folder properties"],"ZWyHmq":["This project"],"ZYtq3m":["Connect the AI tools you use to this specific project. These files live in the project folder, so anyone who opens it gets the same setup."],"ZatAO_":["Failed to enable link previews — ",["detail"]],"Zf0w-R":["Take a piece of writing from a rough idea to a finished draft to something you're ready to share. Good for blog posts, essays, or anything you want to move through clear stages."],"ZgGuA4":[["0","plural",{"one":["File"],"other":["Files"]}]],"ZhhOwV":["Quote"],"ZjtgI-":["Command palette"],"ZoOlzR":["App & system info and recent app logs. No project is open, so project logs aren't included."],"Zon_qG":["Mirror source <0>",["label"],"</0>"],"ZptNUh":["Show ",["hidden"]," more"],"ZsGpr_":["Paste link"],"Zue_jx":["Your GitHub token is missing required scopes. Try signing in again."],"Zul8Ry":["never"],"ZvzbDF":["Add it directly to this project."],"ZxXhLY":["Hide Files (",["sidebarShortcut"],")"],"Zz25kq":["Show Files (",["sidebarShortcut"],")"],"_0JUKX":["Bug reporting needs the OpenKnowledge desktop app."],"_5qBNl":["AI tools & CLI"],"_6FVBz":["Jump to tab 1-8"],"_7UQ7y":["Whole word"],"_8quCH":["From template"],"_902BE":["This ",["targetNoun"]," was shared from branch <0>",["shareBranch"],"</0>. You're currently on <1>",["currentLabel"],"</1>."],"_FLBbi":[["sizeText"]," · secrets redacted · crash dump not redacted"],"_IGfXZ":["OpenKnowledge quit unexpectedly last time."],"_NX6gG":["Managing project AI tools is unavailable in this build."],"_PACVa":["Release notes"],"_PBJRl":["Add at least one letter or number."],"_QwkMu":["No matching paths"],"_RcqUM":["You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."],"_TDESN":["Network error - ",["kind"]," \\"",["createdPath"],"\\" still exists on disk"],"_TF8ep":["Failed to render PDF"],"_VRtd7":["Couldn't send the selection — please try again."],"_W-elG":["(inline)"],"_WPP7e":["Read-only copy of a MirrorSource block from another doc. Edit at the source and it updates live."],"_XWY2J":["Terminal disabled"],"_ayOfA":["A knowledge base that follows Google's Open Knowledge Format, a shared way of organizing what you know. Pick this if you want your notes to work well with other tools that understand the format."],"_bth6g":["Claude Code is installed, but OpenKnowledge tools aren't connected to it yet."],"_eguJc":["Uploading"],"_gkGSK":["deleted template"],"_hPpdX":["Skill renamed"],"_pY_Vq":["The repository was moved, renamed, or deleted."],"_qD6mn":["Pick the folder where you've cloned it."],"_rP3HI":[["minutes"],"m ago"],"_tekeB":["updated folder properties"],"_tjopj":["Paste duplicate"],"a-cKXz":["Select all source"],"a3H_MR":["Open and focus the Ask AI composer for the current editor selection."],"a5Gha5":["Local changes blocked the merge"],"a5W0q0":["Are you sure you want to delete ",["folderName"],"/ and all files inside? This action cannot be undone."],"a9OzSn":["No pages found for \\"",["trimmedQuery"],"\\""],"aBgwis":["Scope"],"aByJ8j":["How does sharing work?"],"aE2_XM":["One pattern per line — appended to <0>.okignore</0>."],"aENGMB":["Semantic search adds meaning-based ranking to the search tool so conceptually-related pages surface even without shared keywords."],"aHPdYV":["Go to line ",["displayLine"]],"aM23Wr":["page-name"],"aOp3hw":["Couldn't move to Trash"],"aWlJai":["Starting sign-in flow"],"a_u4ck":["Loading tags"],"aaE55D":["Clear ",["keyName"]],"aalx4E":["Editing broken MDX source: ",["reason"]],"abiHje":["Delete selected items"],"adsMWO":["Resolving deltas"],"aiArms":["We couldn't clone this repository."],"ajz9F8":["Couldn't load conflict content for ",["filePath"],". Try reloading the page."],"aoa6xA":["network error (is \`ok ui\` running?)"],"arUUsK":["Product updates"],"ax9kie":["Link preview settings not yet loaded — try again in a moment"],"az8lvo":["Off"],"b3Thhd":["Upload failed"],"b4AQFK":["Open activity panel for ",["tooltipName"],", editing ",["realCurrentDoc"]],"b4VvP-":["Existing branch <0>",["trimmed"],"</0> will be checked out into its own window, under <1>.ok/worktrees/</1>."],"b4itZn":["Working"],"b5aNbi":["The ",["targetNoun"]," could not be opened — try navigating to it manually."],"bBE5tC":["Detected on this machine"],"bBcFK_":["Open emoji picker for ",["keyName"]],"bD8I7O":["Complete"],"bGa3Fk":["Uploading file"],"bH382I":["Edit this HTML — the preview updates live."],"bSD4im":["Search worktrees and branches"],"bS_boY":["Replace current match"],"bUUVED":["Asset"],"bV6DJA":["Who you are, so the agent has your context."],"bWLmRK":["Could not fetch branch. Check your connection."],"ba3vIW":[["templateCount","plural",{"one":["template"],"other":["templates"]}]],"bcDHUM":[["descriptorLabel"]," — render error, source editable below"],"bcjYUA":["Fold or unfold source"],"bkQRMh":["Paragraph"],"blFttG":["Search projects"],"bmC18N":["Clearing local collaboration data for \\"",["docName"],"\\" before reconnecting."],"brCtGB":["History unavailable"],"bultyE":["When enabled, the agent opens or refreshes the preview after each edit. Disable if you manage your own preview window (OK Desktop, a browser tab on another display, etc.)."],"bwil08":["Building <0>openknowledge.skill</0> and opening the Claude Desktop App"],"c1LZZH":["Link copied."],"c4fVUV":["Fix"],"c5PTFE":["Dev instance: ",["label"]," (isolated from other worktrees)"],"c5f7sm":["Code block language: ",["currentLabel"],". Click to change."],"c5rF4v":["What is this knowledge base for?"],"c863eW":["Could not switch to ",["shareBranch"],". Try switching manually."],"c8iK2Y":["No templates found."],"c8jBgX":["Checking for updates on GitHub"],"cEoyWz":["Add item to ",["keyName"]],"cF9DyA":["Reconnecting after server restart"],"cGV6Mh":["Show a preview card when you hover an external link in the editor. This setting applies only to this computer."],"cIptmH":["In the Claude Desktop App"],"cKjLuT":["(project + user)"],"cN1Gcp":["A worktree folder for ",["shareBranch"]," already exists."],"cOJyVj":["Disable Themes"],"cOSAfL":["No repositories found on your GitHub account."],"cOrTMo":["Your share link is ready below."],"cRHuuI":["Couldn't copy path"],"cSCbv3":["BETA"],"cUK8lW":[["conflictCount","plural",{"one":["#"," conflict"],"other":["#"," conflicts"]}]],"cUk6TF":["Sync failed — check the server logs for details."],"cV7LOw":["Team Wiki"],"cZGNlb":["Add another pattern"],"cZI5AL":["OK Desktop"],"cZ_8zB":["Stays on this computer."],"ccNps_":["Only modified"],"cd5EXh":["Report a bug"],"cdm00A":["No Incoming"],"cdmk8A":["Uncommitted changes"],"chL5IG":["Community"],"cklVjM":["Timeline"],"cn1sLi":["Couldn't connect OpenKnowledge tools to Claude Code. Please try again."],"cnGeoo":["Delete"],"cqQyPB":["Folder name"],"crqzW5":["AI tools"],"cs4mps":["Config sharing"],"csDS2L":["Available"],"ct2kv5":["No headings in ",["pageTarget"]],"cuA8QW":["Organize specs"],"d1JjXo":["Your local copy of branch <0>",["branch"],"</0> is behind. Pull the latest changes, then open the link again."],"d2uTPx":["Server error (HTTP ",["status"],")"],"d5rK4X":[["chars","plural",{"one":["char"],"other":["chars"]}]],"dCIGNG":["Border"],"dD7NPy":["Outline"],"dDpCOp":["Rename succeeded but the sidebar may be out of date — refresh to resync"],"dEgA5A":["Cancel"],"dGAdpH":["New branch <0>",["trimmed"],"</0> will be created from <1>",["currentBaseLabel"],"</1>, in its own worktree under <2>.ok/worktrees/</2>."],"dIYSqk":["remote"],"dJw2_7":["Saved with the project for your team."],"dMsx3p":["Home page and navigation hub."],"dN20LW":["Semantic search is on, but no API key is set — search falls back to keyword matching. Add one in <0>Settings → Account</0> (it's stored once for your whole machine)."],"dNM58w":["Claude Code (claude) isn't installed or on your PATH."],"dOHMA0":["Failed to move"],"dOxPd4":["Footnote"],"dPOFid":["Show or hide terminal"],"dTaauv":["Reason: ",["reason"]],"dUCQo4":["Renamed to \\"",["trimmed"],"\\""],"dUQ7_J":["Add meaning-based ranking to search so conceptually-related pages surface even when they share no keywords. This setting applies only to this computer."],"dURmlQ":["\\"frontmatter\\" is a reserved property name"],"dVaXnv":["Content rules not yet loaded — try again in a moment"],"dXWMFn":["Removes this skill from your editors."],"dbapvC":["Follow us on social media"],"dbhUX1":["Hide this file"],"dbtjJh":["(opens in new tab)"],"djc1l9":["More than ",["0"]," requests were blocked by the preview's security policy"],"djjdjr":[["deleteCount","plural",{"one":["Delete"],"other":["Delete ","#"," items"]}]],"dprWmL":["Anchor in this page"],"dr1vFs":["Replace all matches"],"dvGKu2":["Shared auto-sync default"],"dw_3cv":["Rename skill"],"dw_dUJ":["Failed to duplicate path"],"dx-TwN":["Running project audit"],"e0NrBM":["Project"],"e1Rn_k":["Open containing folder"],"e1hptq":["Embed a video with native player controls."],"e4GHWP":["Pull"],"e4PbgC":["Duplicate the file-tree item copied from the Files sidebar."],"e8L17t":["A non-empty folder already exists at this path. Pick a different folder."],"e8zRrb":["Show Files"],"e8zYa8":["Could not open ",["shareBranch"]," in a worktree. Try again."],"eBIT9h":["Paste failed.",["restoreSuffix"]],"eFJkVt":["Clone failed: ",["cloneError"]],"eG8Jsg":["Toggle source tab focus mode"],"eGUbmF":["Copy selected file or folder"],"eJitUk":["Upload from computer"],"eKThTQ":["Failed to reorder"],"eLl1VX":["Failed to update the embeddings endpoint — ",["detail"]],"eNQGRb":["Inline LaTeX math rendered with KaTeX."],"ePK91l":["Edit"],"eQkgKV":["Installed"],"eQxm13":["Failed to update attachment location — ",["detail"]],"eTL5y9":["Show selection preview"],"eTsJYJ":["description"],"eVPynQ":["Open <0><1>",["verificationUri"],"</1><2/></0> and enter this code:"],"el312q":["Install skills into"],"emgiet":["Authoritative content; mirrored verbatim everywhere it's referenced."],"enPTnx":["line ",["displayLine"]],"eneWvv":["Draft"],"epuNYK":["Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."],"euc6Ns":["Duplicate"],"evs0iw":["Tags matching \\"",["tagListQuery"],"\\""],"f1XQyZ":["Move block"],"f65AOQ":["Start from"],"f8jU-L":[["0"],"/",["1"]," — ",["2"]],"f9lQNJ":["Adds a managed block to"],"fBHvBn":["There's no project folder for this window, so a terminal can't start here."],"fG0X0e":["Install ",["brand"]," →"],"fIgqfQ":["Reinstalling"],"fJ3EbT":["Themes"],"fJgQHX":["Failed to create file"],"fNr-MX":["Disable semantic search"],"fR-Kdc":["(project-level only)"],"fVcm9t":[["0","plural",{"one":["#"," doc"],"other":["#"," docs"]}]],"fWi7pn":["Initialize starter pack"],"fWsBTs":["Something went wrong. Please try again."],"fYKgzG":["Failed to load recent projects."],"fYjgXu":["Unordered list of items."],"fZj9em":["Fix ",["flatId"]],"f_PkYv":["Restarting closes this project's server. Connected agents (Claude Code, Codex, Cursor) will see their OpenKnowledge MCP connection close unexpectedly — you may need to restart the agent, or toggle its OpenKnowledge MCP server off and on, to reconnect."],"fbdLmk":["Toggle bold formatting."],"fbsiBw":["Something went wrong starting the terminal."],"fcgvCA":["Claude"],"fiMNLl":["Sync settings not yet loaded — try again in a moment"],"fj5YiP":["Downloads a fresh copy from GitHub."],"fnlBN4":["Auto-approve settings not yet loaded — try again in a moment"],"fo0VXg":["Uninstall"],"fqSfXY":["Replace"],"fuJZKk":["Search branches"],"fwhX-N":["Indent or outdent source"],"fxJk_6":["<0>Have more to add?</0> Write to <1/> and mention your reference."],"fxbCNQ":["Synced. The link is up to date."],"g3UF2V":["Accept"],"g4WlQK":["Project AI tool management is only available in the OpenKnowledge desktop app."],"g4XBm0":["Small section heading."],"g58Kwy":["<",["descriptorLabel"],"> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."],"gBbxn_":["Checking sign-in status"],"gGVP4q":["Click <0>+</0> <1/> <2>Create skill</2> <3/> <4>Upload skill</4>."],"gHSAWT":["Create worktree <0>“<1>",["typedName"],"</1>”</0>"],"gITz7o":["Move the cursor or extend selection through CodeMirror's standard source-editor navigation keymap."],"gJR87V":["Could not create the project folder. Pick a different folder."],"gKi-a_":["New project"],"gQV-9w":["Branch switched but the ",["targetNoun"]," could not be opened — try navigating to it manually."],"gUlRQj":["Orphans"],"gYuDfu":["Pick a starter pack to scaffold your project with ready-made folders and templates."],"gYz2ep":["Expires in ",["timeLabel"]],"gbHcbI":["Failed to delete property"],"gfdqcY":["Couldn't apply the change: ",["0"]],"gfohmY":["Connect tools"],"ggm6JX":["This page doesn't exist yet. Open it to create the page in the editor and collapse the graph."],"ggs9f8":["Search files, folders, or commands"],"gh27t1":["Link previews"],"gijbne":["Failed to rename path"],"gk_-qj":["Couldn't rename template: ",["0"]],"gljvbT":[["words","plural",{"one":["word"],"other":["words"]}]],"glzsS_":["Pan right"],"gmJ0An":["Failed to open folder."],"goO4Ll":["Editor status bar"],"gp3I7-":["Before syncing, set your identity for git commits:"],"gtEbeW":["Highlight"],"gvApb7":["Turn the things you read into clear, trusted articles. Save a source, figure out what it means, then keep the final version so you can rely on it later."],"gwykHF":["This doc hasn't synced to GitHub yet. The link will work after the next sync."],"h-AdvS":["The folders and templates are already here, so there's nothing to add."],"h06R3C":["No pages are missing outgoing graph links."],"h16FyT":["Lists"],"h3QZcB":["A branch named ",["shareBranch"]," already exists. Open its worktree from the switcher instead."],"h6EvY-":["This will replace the current document content with the version from <0>",["relative"]," (",["absoluteTime"],", ",["entrySha"],")</0> by <1>",["authorName"],"</1>. Your current content is already saved in the timeline — you can restore it anytime."],"h7FzJC":["Link-graph response did not match expected shape."],"h9QFb9":["Skill \\"",["0"],"\\" deleted"],"hBMK4W":["Project templates"],"hCOLSd":["Keep a written record of how your product gets built. A home for proposing ideas, recording decisions, writing specs, and capturing what you learned after something broke."],"hDEaQu":["Connect OpenKnowledge to other tools you use."],"hDKtoF":[["diffHrs"],"h ago"],"hDoLrm":["Remove ",["projectName"]," from recent projects"],"hGmuTc":["Docs tagged #",["tagDocsName"]],"hHMv6l":["Delete block"],"hIQkLb":["New chat"],"hItdtk":["Browse folder"],"hLy8b1":["Updated to Version ",["version"]],"hQXiDc":["Search branches..."],"hSBIG-":["A title, description, tags — anything that describes this folder."],"hSySVc":["Install handoff failed: ",["msg"]],"hXUWyd":["Value is required"],"hXbSxc":["Asset: ",["title"]],"hY8pka":["Select next occurrence"],"hYDc6B":["Name cannot be empty"],"hYgDIe":["Create"],"hZoBHK":["Empty starting content"],"haHgQj":["Copied relative path"],"habOU_":["Failed to update the auto-approve setting — ",["detail"]],"he3ygx":["Copy"],"hjO0Mq":["Add tab"],"hmYd9H":["Keep track of the people and companies you work with and the meetings you have with them. Good for remembering who someone is, how you know them, and what you last talked about."],"hnq8fP":["Remove ",["label"]," from context"],"hpDtUm":["External wiki link"],"hpzRlK":["Reopen closed tab"],"hwFOFD":["Settings failed to load"],"hxBHxQ":["A line with a footnote<0><1>[1]</1></0> and a definition shown below."],"hxEUVJ":["Initialize ",["selectedPackName"]],"hyCxJY":["Open that worktree instead"],"hynz2K":["Download started"],"i-ShMB":["Diagram"],"i1flq_":["Wiki link suggestions"],"i3f2kh":["No matching commands."],"i92eAT":["We'll create a repository and start syncing — no terminal needed."],"i9OyGp":["Undo or redo"],"i9TPUi":["This ",["targetNoun"]," isn't on branch <0>",["branch"],"</0>. It may not have been pushed yet."],"i9toLO":["Agent configuration file"],"iAoh55":["Update \\"",["0"],"\\"?"],"iDZtvM":["Failed to load templates: ",["message"]],"iEQQyu":["Agent"],"iEYxO4":["Show thumbnails"],"iGCs04":["No templates available"],"iH8pgl":["Back"],"iHAJDj":["Resolving default location"],"iIaSUD":["Whitespace"],"iKSP5j":["Word wrap"],"iKZkk1":["Property value"],"iMkWoF":["Turn on"],"iNFKkm":["No diff."],"iO8V-7":["Create worktree"],"iOHg1t":["Open embedded URL in new tab"],"iRdfLr":["Dev instance: ",["label"]],"iSLIjg":["Connect"],"iSQTsg":["Ordered list"],"iSnkwB":["Failed to open cloned project."],"iTlqm3":[["ahead","plural",{"one":["#"," commit ahead"],"other":["#"," commits ahead"]}]],"iTylMl":["Templates"],"iXTp5j":["Scope: "],"idD8Ev":["Saved"],"ig5vUe":["Failed to load file"],"ii5mVn":["Report this error"],"iilQXA":["Folder duplicated"],"ijLc3m":["Bullet list"],"ilodsp":["Let agents use OpenKnowledge without asking"],"ipn17C":["The <0>type</0> every document created from this template gets (e.g. <1>research-note</1>). Keeps new docs Open Knowledge Format–conformant."],"iqIDv4":["Sync status unavailable"],"iqugog":["Initialize failed: ",["errorDetail"]],"irFGwu":["Template list"],"ircigK":["Blank project"],"irrm_E":["Remove selection"],"isRobC":["New"],"itxlnr":["Setup files include: <0>.ok/</0>, AI-tool MCP configs (<1>.mcp.json</1> and per-tool files), project skills.<2/><3>Shared</3> commits them to git, so anyone who clones the repo gets the same setup. <4/><5>Local only</5> keeps them out of git (via <6>.git/info/exclude</6>)."],"iuTKci":["No edits yet."],"iv452l":["Documentation for ",["0"]," (opens in browser)"],"iycx_A":["Pushing"],"j9Vqvc":["inherited"],"j9tqwO":["Not in sidebar"],"jAMpHn":["What is a starter pack?"],"jBVUXo":["Couldn't open the terminal — please try again."],"jC8LSZ":["Reset view filters"],"jEZ6Lf":["provisional"],"jEdF24":["Missing page: ",["linkTitle"],". Click to create."],"jKd3AP":["Could not enable the terminal: ",["0"]],"jPUPvG":["Couldn't resolve the conflict for ",["filePath"],"."],"jRHdCz":["Failed to load PDF"],"jSO1X5":["Inherited templates can't be renamed here — rename it in the folder that owns it."],"jSY41h":["\\"",["docName"],"\\" took too long. Check your connection."],"jTLWxh":["Embed an external page in an inline iframe (docs, demos, Figma, CodeSandbox)."],"jX0IPx":["A skill with this name already exists."],"jZ_E5M":["Fetch failed — check the server logs for details."],"j_Z6g7":["Shared default"],"jbSG8V":["Show Files (",["sidebarShortcutLabel"],")"],"jdGUeI":["Couldn't create template: ",["error"]],"jerqF0":["Loading branch state"],"jhtG3I":[" Your selection has been restored."],"jjtmV_":["First file name"],"jol95m":["Failed to open Project Navigator."],"jtg_8-":["Build a knowledge wiki about the different types of flightless birds. Start with an overview page, then add cross-linked pages for each major group (ratites like ostriches, emus, and kiwis; penguins; and flightless rails), the regions they live in, and a timeline of how flightlessness evolved."],"ju38ms":["This project has no git repository — sharing mode does not apply. Initialize a repo to enable the toggle."],"jwnpdM":["A template named <0>",["trimmedSlug"],"</0> already exists here. Saving creates a local copy that overrides it for this folder."],"k0vc0N":["New terminal tab"],"k2fEi7":["User plugins are personal to this device — turn them on or off here. The choice lives in your user config and is never committed to the project. Each enabled plugin gets its own page under Plugins in the settings sidebar."],"k4CuuV":["Ready-made folders and templates to get you started quickly. Select a pack to preview what gets created, then add it to your project."],"kCNU4q":["Indexing your pages — ",["semanticIndexedCount"]," of ",["semanticTotalCount"]," ready. Results may be incomplete."],"kCqCyf":["Open CodeMirror's lint diagnostics panel."],"kDwcbW":["Go to line ",["displayLine"]," in ",["0"]],"kFLlsI":["Insert a footnote reference + matching definition stub."],"kLv8d3":["Your copy of branch <0>",["shareBranch"],"</0> has changes that aren't on GitHub. The ",["targetNoun"]," will appear once the branch syncs."],"kNqMMd":["Folder"],"kUn-CN":["Sync off"],"kV2YZv":["Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."],"kYL1lH":["Agent activity"],"k_Dqw1":[["0","plural",{"one":["No problems across ","#"," document."],"other":["No problems across ","#"," documents."]}]],"k_pade":["Config sharing is now shared. Commit the OK files to share with your team."],"k_yIIc":["Will be created at: <0>",["targetPreview"],"</0>"],"kdzzOK":["Off — search ranks by keyword only. No content leaves this computer."],"keNFEd":["Set identity"],"khCa4M":["Teaches coding agents in this project to read and write through OpenKnowledge."],"kj9pAE":["Creating page"],"kknhfj":["No changes"],"kmKqZg":["Clusters"],"knjOzA":["Tag value"],"kolRU1":["Do you want to permanently delete instead?"],"kpqWwG":["This ",["targetNoun"]," was removed from branch <0>",["branch"],"</0>."],"ku0yLQ":["Pages are embedded the first time a search needs them."],"ky9Tuc":["Edit ",["0"]," source"],"l-4nnw":["Search rules"],"l17ab4":["Could not write project files. Try a different location."],"l1aQKz":["Visual editor table"],"l1l8sj":[["0"],"d ago"],"l3s5ri":["Import"],"l46MqT":["Next tab"],"l6OXqI":["No installed agents found"],"l6kpzR":["This ",["targetNoun"]," has been moved, renamed, or deleted in your local copy of branch <0>",["branch"],"</0>, and that change hasn't synced yet."],"l8G3S9":["Auto-sync is off — you don't have permission to push to this repo"],"lAiyU_":["Only the current document uses <0>#",["tag"],"</0>."],"lCC_D5":["Subscribing..."],"lGs_bQ":["Page <0>*</0>"],"lHCR4I":["Clear the field to reset back to the default OpenAI endpoint."],"lHwYMr":["Server error: ",["status"]," ",["statusText"]],"lI0Td2":["Use letters, digits, <0>_</0> and <1>-</1> only."],"lIn9L9":["Disable sync"],"lPzyrU":["All hunks resolved"],"lVWEIL":["Indexed ",["embedded"]," of ",["total"]," pages."],"lWNpNB":["Add cursors or select matching occurrences through CodeMirror."],"lXKZGw":["Heading 1"],"lY27jj":[["0"],"y ago"],"lZAiSP":["Backlinks response did not match expected shape."],"l_FAT6":["Use letters, digits, <0>-</0> or <1>_</1> only."],"l_UFPv":["Properties"],"lb_UU4":["Sync now"],"lbkOif":["Undo or redo visual-editor changes through TipTap collaboration history."],"lhjq3G":["Reset ",["labelText"]," to default"],"ljHjfg":["That branch is already open in another worktree."],"lkYioO":["Show or hide document panel"],"ll2yNl":["Content directory"],"lmBPt0":["Only external links trigger a request. Links to other documents in this project preview from the local index and never leave your computer."],"lond3p":["Shows above the code body. Round-trips as \`title=\\"...\\"\` in markdown."],"lrhetp":["+ ",["overflow"]," more"],"ls1N1w":["(missing)"],"lyWa43":["Project-level disconnected pages"],"lzmtKp":["Failed to load folder properties: ",["message"]],"lzwo7p":["Could not open GitHub sign-in. Please try again."],"m16xKo":["Add"],"m2T1Xj":["Tag #",["tagValue"],", ",["uses"]],"m4v3XT":["Undo last edit on ",["docName"]],"m6YGpY":["Active panel content for the selected tab shows here."],"mBltnd":["Path suggestions"],"mGaZwZ":["See the full install guide"],"mHVPm5":["Reconnect required"],"mLAjyL":["Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."],"mNY1G6":["Undo all edits"],"mPneVR":["Updated \\"",["display"],"\\" to ",["0"],"."],"mPy9lS":["Organize my existing specs into a linked index grouped by area, and flag any that have drifted out of sync with the current code."],"mU3j1b":["Remove item ",["0"]],"mVFyH-":[["accessibleLabel"]," (conflict)"],"mWVJRX":["Collapsible section with a clickable summary."],"mY8U64":["Teach agents a repeatable task. You can edit the body after creating."],"mYGY3B":["Date"],"mYzDD_":["A worktree folder for that branch already exists."],"mZ1r4i":["Create a document from ",["label"]],"maDWIB":["Mirror source <0>api-spec</0>"],"makN88":["No patterns yet. Type a folder or file name below to start hiding files."],"mdKFEy":["You cancelled loading \\"",["docName"],"\\"."],"mdzKSV":[["nodeCount","plural",{"one":["#"," node"],"other":["#"," nodes"]}]],"mf37rL":["Retrying"],"mg0YGL":["Source multi-cursor and multi-select"],"mk2poV":["e.g. server.ts"],"mmpzAq":["Wrap long lines in the markdown source editor."],"mo22UP":["Toggle inline code formatting."],"mqSwZH":["<0>Mirror anchor not found.</0> No <1>",["mirrorSourceTag"],"</1> exists in <2>",["src"],"</2>."],"msOK6I":["Repositories you've already cloned may keep syncing through git's own saved credentials, even after you disconnect."],"msqUNq":["Ready-made folders and templates to get you started quickly."],"mu1O0q":["Open Knowledge can manage ",["0"]," editor skill(s) for this project. Import moves them into .ok/skills and replaces the .claude, .codex, etc. copies with symlinks — one place to edit, in sync everywhere. If those folders are committed to git, review the change first; symlinks can behave differently on some editors and on Windows."],"mwMF9u":["Open CodeMirror search in source editor mode."],"mxY24F":["Duplicate the focused file-tree item when focus is in the Files sidebar."],"n2lRue":["Commit or stash changes to switch:"],"n5n_vi":["Private repository"],"n6hXUm":["Auto-sync periodically fetches, pulls, and pushes commits to your remote git repository so your edits stay in sync across machines."],"n7aopT":["Editor mode"],"n8DwqQ":["Connects automatically the next time you open this project in a trusted Codex session."],"nCzR-G":["Copy code ",["userCode"]],"nD7Fx9":["This replaces the current skill content with the bundled version ",["0"],". Any local edits will be replaced — your current version is saved to history first, so you can restore it."],"nDT8qt":["Initialized ",["0"]," but could not open it."],"nJq7et":["Couldn't uninstall skill: ",["0"]],"nMSYz5":["This path is on an external volume (/Volumes/...). OpenKnowledge will lose track of files when the drive ejects."],"nNYV3Y":["and ",["remaining"]," more"],"nP-KFo":["New ",["0"]," chat"],"nP76lk":["Applies to all projects on this machine. Claude and Codex, started from the built-in terminal, auto-approve OpenKnowledge's read and write tools (Claude also auto-runs \\"ok open\\"). Deleting, moving, sharing, installing skills, other commands, and non-OpenKnowledge file edits still ask. Cursor, OpenCode, and Pi are unaffected. Best-effort per agent."],"nTwL53":["Open a doc to share its URL."],"nUNZL4":["Ask ",["0"]],"nWv1ja":["Manage hidden files in Settings → Ignore patterns."],"nYKerc":["(user-level only)"],"nYeBmY":[["hours"],"h ago"],"nbfdhU":["Integrations"],"ndeI89":["Use Cmd/Ctrl+C to copy the link below, or open OK in the desktop app."],"ndwmea":["unavailable on this platform"],"neRy3o":["Split list item"],"nfoduq":["create worktree"],"nft48x":["Stored at <0>.ok/templates/</0> in this project. Available in every folder (folder-scoped templates can override by filename)."],"ng2Ibo":["Branch name"],"nh3wwx":["Embeddings provider key"],"njBeMm":["Both"],"njU86j":["Property \\"",["trimmed"],"\\" already exists"],"noH1JX":["Couldn't reach collab server — ",["errorDetail"],". Try <0>ok status</0> or check <1>.ok/local/last-spawn-error.log</1>."],"npcziF":["Install on"],"nqV0Kk":["This folder hasn't synced to GitHub yet. The link will work after the next sync."],"nrGWJ7":["Git identity isn't set — commits use a default author. Set yours so teammates see your name."],"nskygk":["Choose agent"],"nwtY4N":["Something went wrong"],"nxlOpL":["OpenKnowledge is using this GitHub account."],"ny6vNn":["OpenKnowledge is using a GitHub account provided by the gh CLI. There's no separate OpenKnowledge credential to disconnect."],"nzHlj8":["Close ",["0"]],"nzaV6Q":["Page thumbnails"],"o2yoFu":["Reveal in Finder, No workspace"],"o49mDZ":["Loading timeline history"],"o4dcAf":["Reveal in File Explorer, ",["hint"]],"o5gfs1":["This setting is per-machine and isn't shared with collaborators. It needs an API key set with <0>ok embeddings set-key</0>."],"o9CrsQ":["research-note"],"oAFVKX":["Failed to update the project sync default — ",["detail"]],"oAGN8p":["Remote branch <0>",["remoteCheckoutRef"],"</0> will be checked out as a new local tracking branch <1>",["trimmed"],"</1>, in its own window under <2>.ok/worktrees/</2>."],"oBXkm2":["Delete code block"],"oCHfGC":["Level"],"oCNLN8":["Toggle the bottom terminal panel. With text selected, stage it in the terminal's AI input instead."],"oCZkaG":["Copy path"],"oEgEn_":["A key is set, but the embeddings provider rejected it or was unreachable — search fell back to keyword matching. Check the key in <0>Settings → Account</0> and the embeddings endpoint setting."],"oJl7eO":["Unknown component: ",["componentName"]," — source editable below"],"oKBnk5":["More requests were blocked."],"oQA-cA":["Full path"],"oS1YpJ":["Open the Project Navigator."],"oXKEsy":["Delete an adjacent wiki-link or tag chip."],"oXlLi4":["Project plugins are your project's authoring standard — turn them on or off here. The choice is committed to config.yml and shared with every collaborator via git. Each enabled plugin gets its own page under Plugins in the settings sidebar."],"oYepHb":["The terminal is turned off for this project. Turn it back on to run commands here."],"of3tF-":["You picked ~/Documents. OpenKnowledge will index every markdown file under it. If you only want to manage a sub-folder, choose a smaller scope."],"ogAuyr":["Back to document view"],"ohUJJM":["Plugins"],"omXJcU":["Close others"],"optX0N":[["0"],"h ago"],"oqB2ez":["Previous match"],"osRqlv":["Open delete confirmation for the selected file-tree items."],"ot5BRK":["Duplicate selected file or folder"],"otE4aj":["Show external URL nodes"],"ou1hFW":["Toggle an ordered list."],"outYNy":["Duplicate name \\"",["keyName"],"\\""],"ovIGrT":["Local collaboration data for \\"",["docName"],"\\" could not be cleared. Reload to retry."],"p0Iq25":["Insert link"],"p9sdCy":["New ignore pattern"],"pAgkuZ":["Reopening \\"",["docName"],"\\" with a fresh local collaboration cache."],"pBROkv":["Thanks for subscribing. Watch your inbox for product updates."],"pEQFsW":["No matching projects."],"pFagOn":["Source editing"],"pHYP6v":["Open <0>Customize</0> in the sidebar <1/> <2>Skills</2>."],"pRc-Im":["Undone all edits on ",["docName"]],"pTPqMK":["Toggle a fenced code block."],"pWT04I":["Checking..."],"pWbsW6":["Loading docs"],"pZAs1T":["Failed to load outgoing links"],"pajIrl":["Could not turn off the terminal: ",["0"]],"pbwTg6":[["seconds"],"s ago"],"pckX1A":[["0","plural",{"one":["#"," use"],"other":["#"," uses"]}]],"pcqlQu":[["0","plural",{"one":["Folder"],"other":["Folders"]}]],"pgq_xf":[["0"],"/",["1"]," ",["2"]],"phM8Kh":["Found the repo but could not open the project. Please try again."],"pha01Y":["Project-level pages with no incoming graph edges."],"pkAft1":["Search failed."],"pmKdif":["Failed: ",["loadError"]],"pmOGtg":["Use the default OpenAI endpoint or override it with an OpenAI-compatible base URL for Azure or a self-hosted provider."],"pmUArF":["Workspace"],"ppDgFi":["Restart with this app's version"],"psfGPX":["MCP connections"],"pvnfJD":["Dark"],"pzutoc":["Italic"],"q2kXMG":["Inline Math"],"q4YJl_":["The terminal session ended (exit code ",["0"],")."],"q6-JVU":["Loading pages"],"q7F5am":["title"],"qAQVSD":["Page headings response was not JSON"],"qAhFeg":[["userName"]," · ",["tabCount","plural",{"one":["#"," tab"],"other":["#"," tabs"]}]],"qAx7xG":["Fixed folder in content root"],"qEEfPk":["Bug report ",["0"]],"qEIFZu":["Key ending in ",["keyHint"]],"qEue6Q":[" or "],"qFWMl-":["View as text"],"qNOgUu":["Edits at the source land here — no copy-paste drift."],"qRZh7J":["Let Tab leave the source editor instead of indenting."],"qSKu2v":["Source navigation and selection"],"qSxaOz":["Accept their deletion"],"qUB_o_":["Auto-sync is off — your edits stay local until you commit and push manually."],"qXg5W9":["File saves to <0>~/Downloads/openknowledge.skill</0>."],"qXsafh":["Publish to GitHub"],"qZv5ZR":["Config sharing toggle failed"],"q_9EcE":["Enable git auto-sync?"],"q_z77Z":["Heading levels"],"qaHyRJ":[["linkCount","plural",{"one":["#"," link"],"other":["#"," links"]}]],"qbfj1f":["Receiving objects"],"qdBUHP":["Couldn't load ",["fileName"]],"qi1F96":["Reveal in File Explorer"],"qiN9NB":["Surface"],"qiRoLb":["Summarize everything I changed this week"],"qioCwA":["Jump to page ",["pageNumber"]],"qjHMHf":["Failed to disable sync — ",["detail"]],"qmL1UG":["Uploading securely"],"qo4zCg":["Path cannot contain backslashes"],"qpQwGC":["Describe what you're working on and the agent sets it up for you."],"qvWGzP":["Collapse all"],"qyLmWw":["Source editor search panel"],"r-OJYm":["Enter a valid branch name (no spaces, no leading dot, no \\"..\\")."],"r2huLx":["Undo, redo, or undo selection changes through CodeMirror history."],"r4R7AZ":["Network error during cleanup"],"r51jLC":["File saved & Claude Desktop App opened"],"r871ed":["Your knowledge base is now on GitHub at <0>",["ownerLogin"],"/",["repoName"],"</0>."],"rBc32v":["Couldn't reach the embeddings provider — press ↵ to retry"],"rD-woT":["Tell us what went wrong and we'll gather the logs. Nothing leaves your Mac until you've reviewed it."],"rFmBG3":["Color theme"],"rFw02Q":["Uploading ",["keyName"]],"rJVoVX":["Source find results"],"rNifQd":["Remove property"],"rQAQus":["Couldn't save template: ",["error"]],"rQRrkB":["yesterday"],"rSoi6g":[["displayName"]," (",["bin"],") isn't installed or on your PATH."],"rVJpLz":["On — hovering an external link sends its URL to the destination site to fetch a preview."],"rVgSRB":["Collapse ",["docName"]],"rVxu1k":["No pages link here yet."],"rXz97P":["Numbered list of items."],"rZ9HZq":["To do"],"rZVMkf":["Visual editor replace input focused"],"rageVb":["Custom HTML with a live preview pane (sandboxed iframe)."],"rdU729":["Layout"],"rf6x3F":["Dock terminal to the bottom"],"rfFpcF":["Remove ",["chip"]],"rgPqOw":["Convert the current block to a paragraph."],"riqekz":["Suggestion menu navigation"],"rlUzXK":["Could not validate folder. Please try again."],"roAe2K":["Link URL"],"roiUQQ":["This page doesn't link to anything yet."],"rppgXF":["Disconnecting"],"rssK8c":["Ignore patterns (raw text)"],"rtdR4v":["Show or hide Files"],"rwrPbS":["Component boundary navigation"],"s-MGs7":["Resources"],"s-XOaI":["File name"],"s061i4":["Relative path"],"s0IDhW":["This file could not be found."],"s0J_k9":[["0","plural",{"one":["#"," key"],"other":["#"," keys"]}]],"s0_GnA":["Opening ",["openingLabel"],"…"],"s1c0ja":["Bullet List"],"s3caR3":["Deleting"],"sE7R19":["Could not load templates: ",["templatesError"],". You can still create a blank note."],"sER-bs":["Files"],"sFhaTJ":["Disambiguates similarly-named templates in the menu."],"sHrqDx":["Couldn't rename skill: ",["0"]],"sIGbBZ":["Convert selection to footnote"],"sIxSSP":["Resolve conflict in your terminal"],"sJK6pq":["Permission denied"],"sJWhgo":["Unknown component: ",["unregisteredComponentName"]],"sOxZaS":["Failed to load graph"],"sZ2IOu":["This ",["targetNoun"]," was shared from branch <0>",["shareBranch"],"</0>. It doesn't exist on your current branch (<1>",["currentLabel"],"</1>)."],"saIASg":["Second item"],"saYiIO":["Path cannot contain null bytes"],"seeS6l":["Setup OpenKnowledge in this folder?"],"shNd9t":["Slash command menu"],"si3L24":["Open an additional terminal tab. With text selected, stage it in the new tab's AI input."],"skf5Ix":["Indent or outdent source editor lines."],"sn5BEU":[["sizeText"]," · secrets redacted · ",["fileCount","plural",{"one":["#"," file"],"other":["#"," files"]}]," · crash dump not redacted"],"snrVQ7":["probe failed"],"ssuwjF":["Branch"],"stlgky":["On — your search queries and the text of matching pages are sent to your embeddings provider (OpenAI by default) to compute embeddings."],"sxTdZI":["Loading paths…"],"sxjyRq":["Worktrees"],"sxkWRg":["Advanced"],"t-JXbf":["Notion-style inline row for a downloadable file. Drag-drop also works."],"t18QYR":["Unpin ",["accessibleLabel"]],"t2TkQ3":["Sync paused — resolve conflicts to resume."],"t422_7":["Uninstall everywhere"],"t4sFKC":["New branch <0>",["trimmed"],"</0> will be created from the current commit, in its own worktree under <1>.ok/worktrees/</1>."],"t6w1cq":["Open a blank editor tab."],"tAPZEx":["Below"],"tHKQ6j":["Renaming"],"tP5DDk":["Apply link"],"tUvUfp":["Use a folder you already have."],"tW_yvQ":["Expand ",["docName"]],"t_YqKh":["Remove"],"teD0H9":["Couldn't open a worktree for that branch."],"tfDRzk":["Save"],"tfi40B":["Failed to create page"],"tgWuMB":["Modified"],"thnPBX":["Activate the next editor tab."],"ti6aF_":["Ask ",["0"]," CLI"],"tiWX6q":["Source editor"],"tjXez2":["blog-post"],"toyw51":["Mermaid diagram controls"],"tsiTqO":["Paste your API key"],"tsyExA":["Connect your AI tools to OpenKnowledge"],"u-9fWA":["See <0>Architecture</0> for the system overview."],"u3BOHd":[["fileCount","plural",{"one":["#"," file"],"other":["#"," files"]}]],"u3YnKw":["Could not construct share URL."],"u3wRF-":["Published"],"u6Hp4N":["Markdown"],"u7H-Wn":["Show panel (",["panelShortcutLabel"],")"],"u7U_Ij":["Link the selected text, or edit the link under the caret."],"uA_jXp":["Switch and update branch"],"uCaIdy":["GitHub sign-in is missing or expired. Reconnect to resume syncing."],"uDlyqd":["Document the architecture of this repo: create an overview page that links to a page per major module describing its responsibilities and entry points."],"uF9ruK":["Saving"],"uFOL2y":["No project skills yet. Author one to teach agents a repeatable task scoped to this knowledge base."],"uFQbYd":["Home page and entry point."],"uGaIIS":["Check out worktree"],"uH_S-u":[["loadErrorTitle"],": ",["message"]],"uKRYiW":["Sync status unavailable — server error."],"uL_Wx8":["The terminal stopped unexpectedly."],"uM6jnS":["Restore failed"],"uO9WLl":["Push"],"uQNW00":["Detached HEAD — checkout a branch to resume"],"uQewpR":["Couldn't restart the server — it's running under a different account. Restart your computer to clear it, then reopen this project."],"uWtdQR":["No templates yet. Add one in this folder's Templates section, or in Settings → Templates."],"uWx2ZP":["Last sync"],"u_lS4C":["Clone complete — opening project"],"uaUc6t":["Restart server"],"ubMwcO":["The terminal session ended (signal ",["0"],")."],"ugoTXs":["folder"],"uhJEA2":[["count","plural",{"one":["#"," more participant"],"other":["#"," more participants"]}]],"uksqrP":["Repository not found. It may have been renamed, deleted, or moved."],"un8kBM":["Creating page: ",["linkTitle"],"."],"ur2XSb":["Visual editor"],"uuoHOU":["Command failed."],"uynXup":[["tokens","plural",{"one":["token"],"other":["tokens"]}]],"v-h2hx":["Delete ",["targetGitPath"]],"v2ZW0K":["Enable terminal"],"v41fCm":["File not found"],"v75Em9":[["uploadedCount","plural",{"one":["Uploaded one file"],"other":["Uploaded ",["uploadedCount"]," files"]}]],"v77jrg":["Visual editor selection"],"v7hK0U":["Use lowercase letters, digits, and hyphens only."],"v7lbnC":["Find next match"],"vAYoCZ":["Couldn't open the worktree. Try again."],"vDXqVv":["Insert a markdown hard break."],"vEJDlt":["The file is in your Trash; the file-watcher will reconcile."],"vGeNNQ":["Copy a prompt and paste it into your agent to set up your project."],"vIxrEk":["Fit width"],"vLyv1R":["Hide"],"vQIVHc":["Folder properties"],"vWc9a0":["Type to edit; <0>⌘ Enter</0> saves, <1>Esc</1> cancels."],"vZVeFG":["Upload failed — please try again"],"vbK_ZG":["Files sidebar"],"ve8vEM":["Code expired — please try again"],"vfRlCI":["Could not copy full path"],"vfWA_g":["You picked ~/Desktop. OpenKnowledge will index everything on your desktop."],"vhAnzJ":["Turn on semantic search?"],"viwC-K":["Failed to remove project."],"vppAju":["Where newly added attachments are placed."],"vv7kpg":["Cancelled"],"vvWZnu":["Diff unavailable"],"w3tVpc":["No links yet. Add wiki links or markdown links to build a graph."],"w3vFfL":["Hide Files"],"w4hMYl":["Could not read branch state for this project. Close this dialog and open the share link again."],"w6sBjd":["Terminal settings not yet loaded — try again in a moment"],"w7SsvI":["That folder isn't an OpenKnowledge project yet. Initialize it and open?"],"w7nm4K":["Indented blockquote for citations."],"wDgmsr":["\\"",["0"],"\\" install refreshed (",["1"],")"],"wGSHzy":["Activate one of the first eight editor tabs."],"wJijgU":["Location"],"wJo9oS":["Close find"],"wQp1V3":["Mirror of <0>",["src"],"</0>"],"wT4iQr":["Open visual-editor find with replace controls expanded."],"wTcjov":["No workspace"],"wVa83H":["Couldn't create the report"],"wXO4Tg":[["hrs"],"h ago"],"w_Sphq":["Attachments"],"waFx9W":["Managed"],"wbv9xO":["Create new project"],"wbwHYD":["Enable sync"],"wccmX0":["Your embeddings provider API key, used only to create embeddings of your content for semantic search. Stored once for this machine in <0>~/.ok/secrets.yml</0> (readable only by your user account) and shared across all projects. Turn the feature on per project in This project → Search, where you can also override the endpoint."],"wdxz7K":["Source"],"weP6me":["Couldn't load docs — type @ again to retry"],"wlwXUk":["You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."],"wn8EJi":["Skills teach agents repeatable tasks. Author them here; install a skill to project it into your editors' skill folders."],"wndeIl":["Project-level pages with neither incoming nor outgoing graph edges."],"wtcxiD":["Share this setup with your team?"],"wvbc1r":["Couldn't open document"],"wzq9Rv":["A branch with that name already exists. Open its worktree from the switcher instead."],"x-5mJ1":["Install on all"],"x2fr_j":["Graph"],"x3-2ta":[["packName"]," initialized (",["projectEntries","plural",{"one":["#"," entry"],"other":["#"," entries"]}],")"],"x57cJf":["Open link"],"xCJdfg":["Clear"],"xCdTnb":["Close new tab"],"xDBki3":["Heading suggestions"],"xFQRu4":["I already have it locally"],"xG4tb6":["Lost connection to \\"",["docName"],"\\"."],"xHGM4U":["Hide HTML preview"],"xK291b":["Two-page (odd)"],"xNyj3h":["Reinstall for Claude Chat & Cowork"],"xOTzt5":["just now"],"xSVO3J":["What gets created"],"xV5sXw":[["0"],"w ago"],"xWEvuo":["Ask AI"],"xXo8FT":["Save failed: ",["error"]],"xYMPyY":["Paste was incomplete — ",["chunksCompleted"]," of ",["totalChunks"]," chunks landed.",["restoreSuffix"]],"xaDWAI":["Switch project"],"xbdtfY":["Markdown source"],"xc4g25":["Parse failed"],"xeXS4P":["Or use a starter pack"],"xeiujy":["Text"],"xhlFsx":["Inherited — set a value here to replace it."],"xiv-dW":["No files yet."],"xloBjn":["Relative Path"],"xnP32l":["No description yet — add one so agents know when to use this skill."],"xrVr_k":["Couldn't create skill: ",["0"]],"xsZhu-":["Page number"],"xzktOa":["Edit wiki link"],"y1t8bQ":["Settings sections"],"y3aU20":["Save changes"],"y46m5r":["The desktop app isn't responding. Refresh and try again."],"y5FUYi":["Suggestion menu open"],"y5UgU8":["Disable ",["0"]],"y8B54M":["Couldn't send your prompt — please try again."],"yCX4jp":[" Your selection could not be restored."],"yEJ-sl":["The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."],"yFyZMJ":["No pages matched \\"",["semanticQueryText"],"\\" by meaning."],"yH7T4q":[["failedCount","plural",{"one":["1 file failed to upload"],"other":[["failedCount"]," files failed to upload"]}]],"yHikCO":["Open CodeMirror's go-to-line prompt."],"yIPXut":["Preparing search"],"yKu_3Y":["Restore"],"yLEyuq":["Product updates in your inbox."],"yLq4w4":["Separator"],"yMgL_E":["Find field navigation"],"yQE2r9":["Loading"],"yQyglE":["No matching docs"],"yR5LHI":["Enter a 6-digit hex like #1A2B3C"],"yUxR-Q":["Expand ",["keyName"]],"yWSvcf":["Content root"],"yWWThY":["Asset reference"],"yYR6za":["Display text"],"yZmvQ4":["This project's server (v",["0"],") is newer than this app (v",["1"],")."],"y_5CE8":["Item ",["0"]],"y_K0Dz":["What happened?"],"yaPGPa":["Open a project to manage its AI tool connections."],"yf5auF":["Search rules by id, alias, or name"],"yf5r22":[["keyName"]," type: ",["typeLabel"]," (inherited from folder properties; not editable here)"],"yhdqox":["Installed — ok is available in external terminals. Unchecking removes it; OpenKnowledge's built-in terminal and AI tools keep working."],"yitgD9":["Failed to load skill targets: ",["0"]],"yjExfe":["Branch <0>",["shareBranch"],"</0> is checked out in:"],"ylXj1N":["Selected"],"ymWJLd":["Show ",["0"]," more"],"ynIa4S":["Visual editor list item"],"ypw6My":["Showing top ",["0"]," headings — keep typing to narrow"],"ysxgu8":["project"],"yutJKi":["Checklist with checkboxes."],"yvG-l1":["Open source lint panel"],"yvHDYG":["Claude Desktop"],"yz7wBu":["Close"],"yzF66j":["Link"],"yzGPkm":["Expand graph"],"yzYE4B":["A picture of the app from just before you opened this. It isn't redacted, so check the preview and uncheck it if anything shouldn't be shared."],"z-lawV":["worktree"],"z0a2EA":["Diagram from Mermaid source — flowchart, sequence, class, state, ER, gantt, pie."],"z1uNN0":["No emoji found."],"z2JdQ-":["Config sharing unchanged — see details below."],"z2funE":["Full Path"],"z5pqI8":["Cannot upload: no document is open"],"z60Lgn":["Saves the file to <0>~/Downloads/openknowledge.skill</0> and opens the Claude Desktop App. Requires Node.js or Bun on your PATH."],"zAJzIg":["Problems in ",["0"]],"zAsDLY":["Graph visualization of document links"],"zKxoPm":["Couldn't rename \\"",["0"],"\\": ",["1"]],"zL0LPh":["Global outside text fields"],"zLGXna":["No starter packs available."],"zLak8b":["Activate new tab"],"zQBg2C":["Move the current block up or down one position."],"zUhPuR":["Open containing folder, ",["hint"]],"zXj1rA":["Search by meaning"],"zYp8Sr":["A <0>Modified</0> badge marks rules your config sets explicitly — directly, or inherited through <1>extends</1>. Unmarked rules keep their default state."],"zZ_I5K":["Open project menu"],"zaXlhf":["The properties block at the top of this doc has a formatting error. Switch to source mode to fix it."],"zbymaY":[["0"],"m ago"],"zd00pH":["Copy Path"],"zgSFyG":["External link"],"zkz0Fg":["Set up syncing"],"zlErBl":["Page headings error response did not match RFC 9457"],"zo3Dl7":["Toggle thumbnails"],"zrP8HX":["Frontmatter every document created from this template starts with. Values are YAML — a list is <0>[a, b]</0>; <1>{",["date"],"}</1> fills in on create."],"ztKII6":["Failed to add item"],"zvjCD4":["Detailed diagnostics"],"zwBp5t":["Private"],"zyKa-I":["Star us on GitHub"]}`)},e0=`en`;ml.load(e0,$1.messages),ml.activate(e0);var t0=Symbol.for(`ok.client.logForwarder`),n0=2e3,r0=[`log`,`info`,`warn`,`error`],i0={log:`info`,info:`info`,warn:`warn`,error:`error`};function a0(e){if(typeof e==`string`)return e;if(e instanceof Error)return`${e.name}: ${e.message}`;try{return JSON.stringify(e)??String(e)}catch{return String(e)}}function o0(e){let t=e.message.length+80;if(e.event&&(t+=e.event.length),e.fields)try{t+=JSON.stringify(e.fields).length}catch{}return t}function s0(e={}){let t=e.windowObj??(typeof window<`u`?window:void 0);if(!t||t.okDesktop)return;let n=t;if(n[t0])return;n[t0]=!0;let r=e.consoleObj??console,i=e.documentObj===void 0?typeof document<`u`?document:null:e.documentObj,a=e.flushIntervalMs??n0,o=e.fetchImpl??n.fetch.bind(n),s=e.now??Date.now,c=[],l=0,u=null,d=!1,f={log:r.log.bind(r),info:r.info.bind(r),warn:r.warn.bind(r),error:r.error.bind(r)};function p(){if(u!==null&&(clearTimeout(u),u=null),c.length===0)return;let e=c.splice(0,100);l=0,d=!0;try{o(`/api/client-logs`,{method:`POST`,headers:{"content-type":`application/json`},keepalive:!0,body:JSON.stringify({entries:e})}).catch(()=>{})}catch{}finally{d=!1}}function m(e){if(c.push(e),l+=o0(e),c.length>100){let e=c.shift();e&&(l-=o0(e))}if(c.length>=100||l>=32768){p();return}u===null&&(u=setTimeout(p,a))}function h(e,t){if(!d)try{let n=Qa(t.map(a0).join(` `)),r=t[0],i=typeof r==`string`&&r.length<=32768?r:void 0,a=i?va(i):null,o=a?.fields;if(o)try{JSON.stringify(o).length>8192&&(o=void 0)}catch{o=void 0}m({level:e,message:n,ts:s(),...a?.event?{event:a.event}:{},...o?{fields:o}:{}})}catch{}}for(let e of r0)r[e]=(...t)=>{f[e](...t),h(i0[e],t)};let g=e=>{if(d)return;let t=e;h(`error`,[`uncaught error: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`])},_=e=>{d||h(`error`,[`unhandledrejection: ${a0(e.reason)}`])},v=()=>p(),y=()=>{i&&i.visibilityState===`hidden`&&p()};n.addEventListener(`error`,g),n.addEventListener(`unhandledrejection`,_),n.addEventListener(`pagehide`,v),i&&i.addEventListener(`visibilitychange`,y);function b(){for(let e of r0)r[e]=f[e];n.removeEventListener(`error`,g),n.removeEventListener(`unhandledrejection`,_),n.removeEventListener(`pagehide`,v),i&&i.removeEventListener(`visibilitychange`,y),u!==null&&(clearTimeout(u),u=null),c.length=0,delete n[t0]}return{flushNow:p,uninstall:b}}function c0(e,t){return e.branch===void 0||e.branch===null||e.branch===``||t===``||e.multiCandidate!==!0?null:{message:`Opened on branch ${e.branch}`,description:t}}function l0(e){let t=e.bridge;if(!t)return;let n=e.setHash??(e=>{window.location.hash=e}),r=e.emitToast??((e,t)=>{ol(e,t)});return t.onDeepLink(e=>{let i=e.kind??`doc`,a={kind:i,path:e.doc,branch:e.branch??null};if(e.targetMissing===!0){Fc.arm(a);return}ts.arm(a),n(Jl(i,e.doc,i===`doc`?e.branch:void 0));let o=c0(e,t.config.projectPath);o!==null&&r(o.message,{description:o.description,duration:3e3})})}var u0=4e3,d0=1440*60*1e3;function f0(e){let t=e.bridge;if(t&&t.onboarding)return t.onboarding.onToast(e=>{if(e.kind===`ancestor-promote`){ol.success(`Opened existing OpenKnowledge project at ${e.ancestorPath}`,{duration:u0});return}if(e.kind===`startup-reclaim`){let t=[];if(e.mcp.status===`repaired`){let n=e.mcp.editors.map(e=>za[e]??e).join(`, `);t.push(`repaired ${n} MCP integration`)}else e.mcp.status===`failed`&&t.push(`MCP auto-repair failed`);e.path.status===`installed`&&t.push(e.path.summary),e.path.status===`failed`&&t.push(`PATH install failed: ${e.path.summary}`);let n=t.length>0?t.join(`; `):`OpenKnowledge integrations checked.`,r=e.mcp.status===`failed`||e.path.status===`failed`,i=e.path.status!==`none`;ol[r?`error`:`success`](n,{duration:r||i?d0:u0,position:`bottom-left`});return}if(e.kind===`sharing-refused-tracked`){ol.error(`Config sharing unchanged: ${e.tracked.length} OK file(s) tracked upstream — see message below.`,{duration:d0,description:e.remediation});return}if(e.kind===`sharing-no-git`){ol.warning(`Local-only requested but no git repository was created. Switch later via Settings → Config sharing once the project is in a git repo.`,{duration:u0});return}let t=ul(e.gitRoot,e.pickedPath)??e.pickedPath;ol.success(`Initialized OpenKnowledge at ${e.gitRoot} — opened parent of ${t} because it contains a .git folder`,{duration:u0})})}function p0(e){let t=(0,$.c)(18),{body:n,warning:r,restartLabel:i,cancelLabel:a,onRestart:o,onDismiss:s}=e,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Z.jsx)(Rc,{className:`mt-0.5 size-4 shrink-0 text-amber-500`}),t[0]=c):c=t[0];let l;t[1]===n?l=t[2]:(l=(0,Z.jsx)(`p`,{className:`font-medium text-sm`,children:n}),t[1]=n,t[2]=l);let u;t[3]===r?u=t[4]:(u=(0,Z.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:r}),t[3]=r,t[4]=u);let d;t[5]!==o||t[6]!==i?(d=(0,Z.jsx)(Y,{size:`sm`,onClick:o,children:i}),t[5]=o,t[6]=i,t[7]=d):d=t[7];let f;t[8]!==a||t[9]!==s?(f=(0,Z.jsx)(Y,{size:`sm`,variant:`ghost`,onClick:s,children:a}),t[8]=a,t[9]=s,t[10]=f):f=t[10];let p;t[11]!==d||t[12]!==f?(p=(0,Z.jsxs)(`div`,{className:`mt-1 flex flex-wrap gap-2`,children:[d,f]}),t[11]=d,t[12]=f,t[13]=p):p=t[13];let m;return t[14]!==l||t[15]!==u||t[16]!==p?(m=(0,Z.jsxs)(`div`,{className:`flex w-full gap-3 rounded-lg border bg-popover p-4 text-popover-foreground shadow-lg`,children:[c,(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[l,u,p]})]}),t[14]=l,t[15]=u,t[16]=p,t[17]=m):m=t[17],m}function m0(){return ml._({id:`f_PkYv`})}function h0(e){return e.serverRuntime===e.appRuntime?ml._({id:`FWQuPE`,values:{0:e.appRuntime}}):e.relation===`older`?ml._({id:`LhQlGR`,values:{0:e.serverRuntime,1:e.appRuntime}}):ml._({id:`yZmvQ4`,values:{0:e.serverRuntime,1:e.appRuntime}})}function g0(e){return ml._({id:`2YOwme`,values:{appRuntime:e}})}function _0(e){return ml._({id:`5DFPDh`,values:{appRuntime:e}})}function v0(e){return e===`eperm`?ml._({id:`uQewpR`}):ml._({id:`PqYWiC`})}async function y0(e){let t=ol.loading(ml._({id:`Kf7GG5`}),{duration:1/0}),n;try{n=await e.restartServer(e.config.projectPath)}catch{return}ol.dismiss(t),n.ok===!1&&ol.error(v0(n.reason),{duration:1/0})}function b0(e){let t=e.bridge;if(!t)return;let n=t.onServerVersionDrift(e=>{ol.custom(n=>(0,Q.createElement)(p0,{body:h0(e),warning:m0(),restartLabel:ml._({id:`ppDgFi`}),cancelLabel:ml._({id:`PBxg_E`}),onRestart:()=>{ol.dismiss(n),y0(t)},onDismiss:()=>ol.dismiss(n)}),{duration:1/0})}),r=t.onServerRestarted(e=>{ol.success(g0(e.appRuntime))}),i=t.onServerReclaimed(e=>{ol.warning(_0(e.appRuntime),{duration:15e3})});return()=>{n(),r(),i()}}function x0(e){let{initialDoc:t}=e;if(!t)return;let n=e.getHash();n!==``&&n!==`#`&&n!==`#/`||e.setHash($l(t))}function S0(){typeof window>`u`||!window.okDesktop||x0({initialDoc:window.okDesktop.config.initialDoc,getHash:()=>window.location.hash,setHash:e=>{window.location.hash=e}})}Pd(),n(()=>import(`./telemetry-startup-DCPtDyw3.js`).then(e=>e.initStartupTrace()),__vite__mapDeps([124,0,1,2,3,4,53,10]),import.meta.url),J1({apiOrigin:typeof window<`u`?window.okDesktop?.config.apiOrigin:void 0}),s0(),UE()&&YE(),n$(),ZT(),MI(),NP(),typeof window<`u`&&l0({bridge:window.okDesktop}),typeof window<`u`&&b0({bridge:window.okDesktop}),typeof window<`u`&&jd({bridge:window.okDesktop}),typeof window<`u`&&ll({bridge:window.okDesktop}),typeof window<`u`&&f0({bridge:window.okDesktop}),typeof window<`u`&&Nd({bridge:window.okDesktop}),typeof window<`u`&&W1({bridge:window.okDesktop}),S0();var C0=new Ud({defaultOptions:{queries:{retry:1,staleTime:1e4}}}),w0=document.getElementById(`root`);if(!w0)throw Error(`Root element not found`);var T0=typeof window>`u`?void 0:window.okDesktop;(0,Jd.createRoot)(w0).render((0,Z.jsx)(Q.StrictMode,{children:(0,Z.jsx)(At,{i18n:ml,children:(0,Z.jsx)(Jt,{client:C0,children:(0,Z.jsxs)(ln,{attribute:`class`,defaultTheme:`system`,enableSystem:!0,disableTransitionOnChange:!0,storageKey:`ok-theme-v1`,children:[(0,Z.jsxs)(Cn,{children:[(0,Z.jsx)(Kp,{children:V1(T0)}),T0!==void 0&&(0,Z.jsx)(Jp,{children:(0,Z.jsx)(G1,{bridge:T0})})]}),(0,Z.jsx)(K1,{richColors:!0,closeButton:!0})]})})})}));
2005
+ `}\n${xJ}\n${SJ}`;function yX(e){let t=e.split(`/`).pop()?.replace(/\.md$/i,``).toLowerCase();return!!t&&rX.has(t)}function bX(e){return e===`darwin`?ml._({id:`LtSYdi`}):e===`win32`?ml._({id:`qi1F96`}):ml._({id:`e1Rn_k`})}function xX(e){let t=(0,$.c)(18),{item:n,workspace:r,onClose:i}=e,{_:a}=kt(),o=typeof window<`u`?window.okDesktop:void 0;if(!o)return null;let s=o.platform,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=bX(s),t[0]=c):c=t[0];let l=c,u,d;t[1]!==a||t[2]!==r?(u=r?null:a({id:`wTcjov`}),d=a(s===`darwin`?u?{id:`FvpFSZ`,values:{hint:u}}:{id:`LtSYdi`}:s===`win32`?u?{id:`o4dcAf`,values:{hint:u}}:{id:`qi1F96`}:u?{id:`zUhPuR`,values:{hint:u}}:{id:`e1Rn_k`}),t[1]=a,t[2]=r,t[3]=u,t[4]=d):(u=t[3],d=t[4]);let f=d,p=!r,m;t[5]!==n||t[6]!==i||t[7]!==r?(m=()=>{if(!r)return;i();let e=uc(r.contentDir,sd(n),r.pathSeparator);o.shell.showItemInFolder(e)},t[5]=n,t[6]=i,t[7]=r,t[8]=m):m=t[8];let h,g;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Z.jsx)(_c,{"aria-hidden":`true`}),g=(0,Z.jsx)(`span`,{className:`flex-1`,children:l}),t[9]=h,t[10]=g):(h=t[9],g=t[10]);let _;t[11]===u?_=t[12]:(_=u?(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:u}):null,t[11]=u,t[12]=_);let v;return t[13]!==f||t[14]!==p||t[15]!==m||t[16]!==_?(v=(0,Z.jsxs)(qr,{disabled:p,onSelect:m,"aria-label":f,children:[h,g,_]}),t[13]=f,t[14]=p,t[15]=m,t[16]=_,t[17]=v):v=t[17],v}function SX(e,t){return ad({kind:e.endsWith(`/`)?`directory`:`file`,name:e,path:e},t)}function CX(e){let t=e.match(/\.(md|mdx)$/i);if(!t)return null;let n=t[0].toLowerCase()===`.md`?`.mdx`:`.md`;return`${e.slice(0,-t[0].length)}${n}`}function wX(e,t){let n=CX(e);return n?t.includes(n):!1}function TX(e,t){return e!==t&&e.startsWith(t)}function EX(e,t){let n=[...new Set(e)].filter(e=>!jl(e)),r=n.filter(e=>e.endsWith(`/`));return n.filter(e=>!r.some(t=>TX(e,t))).map(e=>SX(e,t))}function DX(e,t){let n=e.getItem(t)??e.getItem(xd(t));return n?.isDirectory()?xd(kd(n.getPath())):t}function OX(e){let t=e.getFocusedPath()??e.getSelectedPaths()[0]??null;return t?DX(e,t):null}function kX(e,t,n){let r=OX(e);return!r||n.has(r)||jl(r)?null:SX(r,t)}function AX(e,t){let n=e.getSelectedPaths(),r=OX(e);return EX(n.length>0?n.map(t=>DX(e,t)):r?[r]:[],t)}function jX(e,t){return e===t||e.startsWith(`${t}/`)}function MX(e){if(!(e instanceof HTMLElement))return!1;let t=e.tagName;return t===`INPUT`||t===`TEXTAREA`||t===`SELECT`||e.isContentEditable||e.closest(`[contenteditable="true"]`)!==null}function NX(e,t,n){let r=new Set,i=new Set,a=new Set;for(let o of e){if(o.kind===`file`){r.add(o.path);continue}if(o.kind===`asset`){a.add(o.path);continue}i.add(o.path);for(let e of t)Sl(e)&&e.docName.startsWith(`${o.path}/`)?r.add(e.docName):Nl(e)&&e.path.startsWith(`${o.path}/`)&&a.add(e.path);for(let e of n){let t=kd(e);jX(t,o.path)&&i.add(t)}}return{docNames:r,folderPaths:i,assetPaths:a}}function PX(e,t){return e.kind===`file`?t.kind===`file`&&e.path===t.createdPath:e.kind===`asset`?!1:jX(t.createdPath,e.path)}function FX(e){let t=(0,$.c)(68),{item:n,context:r,anyActionBusy:i,workspace:a,handoff:o,model:s,okignoreBinding:c,onStartCreating:l,onCreateFromTemplate:u,onDuplicate:d,onDelete:f,onExpandSubtree:m,onCollapseSubtree:h,folderTreePaths:g,isAsset:_,documents:v}=e,{_:y}=kt(),b=ad(n,v),x=n.kind===`directory`,S;t[0]===n.path?S=t[1]:(S=jl(n.path),t[0]=n.path,t[1]=S);let C=S,w=b.kind===`asset`?null:b,T=w!==null&&c!==null,E;t[2]!==y||t[3]!==x?(E=y(x?{id:`5D3Ior`}:{id:`dbhUX1`}),t[2]=y,t[3]=x,t[4]=E):E=t[4];let D=E,O;t[5]!==x||t[6]!==n.path?(O=x?kd(n.path):null,t[5]=x,t[6]=n.path,t[7]=O):O=t[7];let k=Ri(O),A=k.state.status===`ready`?(k.state.data.folder.templates_available?.length??0)>0:!0,j=s.getSelectedPaths(),M=j.includes(b.treePath)?EX(j,v):[],N=M.length>1?M:[b],P=N.length,F=ml._({id:`djjdjr`,values:{deleteCount:P}}),I;t[8]!==v||t[9]!==_||t[10]!==x||t[11]!==n||t[12]!==a?(I=_?null:x?Ks({folderRelativePath:sd(n),workspace:a}):Bs({docName:Od(n.path,v),workspace:a}),t[8]=v,t[9]=_,t[10]=x,t[11]=n,t[12]=a,t[13]=I):I=t[13];let L=I,R;t[14]===r?R=t[15]:(R=()=>r.close({restoreFocus:!1}),t[14]=r,t[15]=R);let z=R,B;t[16]===r?B=t[17]:(B=()=>r.close(),t[16]=r,t[17]=B);let V=B,{status:H}=cs(),U=H?.hasRemote===!0,W;t[18]!==v||t[19]!==_||t[20]!==x||t[21]!==n.path||t[22]!==b?(W=_||b.kind===`asset`?null:x?hi(kd(n.path)):Ci(Od(n.path,v)),t[18]=v,t[19]=_,t[20]=x,t[21]=n.path,t[22]=b,t[23]=W):W=t[23];let G=W,K=U&&G!==null,q;t[24]!==y||t[25]!==U||t[26]!==G?(q=()=>{G&&vi({...G,hasRemote:U,onClickWhenNoRemote:()=>{ol.error(y({id:`WyQxwa`}))}},{clipboardWrite:$u,toastSuccess:RX,toastError:LX,logEvent:IX})},t[24]=y,t[25]=U,t[26]=G,t[27]=q):q=t[27];let ee=q,te;t[28]!==K||t[29]!==V||t[30]!==ee?(te=K?(0,Z.jsxs)(qr,{"data-testid":`file-tree-menu-share`,onSelect:()=>{V(),ee()},children:[(0,Z.jsx)($m,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`Z8lGw6`})]}):null,t[28]=K,t[29]=V,t[30]=ee,t[31]=te):te=t[31];let ne=te,re=0,ie=0;if(x){let e=xd(n.path);for(let t of g)(t===e||t.startsWith(e))&&(re++,mY(s.getItem(t))?.isExpanded()&&ie++)}let ae=x&&ie<re,oe=x&&ie>0,se;t[32]===V?se=t[33]:(se=e=>{e||V()},t[32]=V,t[33]=se);let ce;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,Z.jsx)(Nr,{asChild:!0,children:(0,Z.jsx)(`span`,{"aria-hidden":`true`,"data-file-tree-context-menu-root":`true`,className:`block size-px`})}),t[34]=ce):ce=t[34];let le;t[35]!==y||t[36]!==i||t[37]!==T||t[38]!==V||t[39]!==z||t[40]!==F||t[41]!==N||t[42]!==A||t[43]!==o||t[44]!==L||t[45]!==D||t[46]!==_||t[47]!==x||t[48]!==C||t[49]!==n||t[50]!==s||t[51]!==c||t[52]!==w||t[53]!==h||t[54]!==u||t[55]!==f||t[56]!==d||t[57]!==m||t[58]!==l||t[59]!==ne||t[60]!==oe||t[61]!==ae||t[62]!==b||t[63]!==a?(le=(0,Z.jsx)(Yr,{sideOffset:0,align:`start`,"data-file-tree-context-menu-root":`true`,className:`min-w-52`,children:x?(0,Z.jsxs)(Z.Fragment,{children:[C?null:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(qr,{disabled:i,onSelect:()=>{z(),l(`file`,kd(n.path))},children:[(0,Z.jsx)(rh,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`HdkSiO`})]}),A?(0,Z.jsxs)(jr,{children:[(0,Z.jsxs)(Wr,{disabled:i,children:[(0,Z.jsx)(Gi,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`Uuj_R4`})]}),(0,Z.jsx)(ai,{children:(0,Z.jsx)(pY,{parentDir:kd(n.path),onSelectTemplate:e=>{z(),u(kd(n.path),e)},ItemComponent:qr})})]}):null,(0,Z.jsxs)(qr,{disabled:i,onSelect:()=>{z(),l(`folder`,kd(n.path))},children:[(0,Z.jsx)(xm,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`96G6Re`})]}),(0,Z.jsx)(Ur,{})]}),(0,Z.jsx)(xX,{item:n,workspace:a,onClose:V}),(0,Z.jsx)(Vs,{input:L,installStates:o.installStates,isElectronHost:o.isElectronHost,dispatch:o.dispatch}),ne,(0,Z.jsxs)(jr,{children:[(0,Z.jsxs)(Wr,{children:[(0,Z.jsx)(gc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`oCZkaG`})]}),(0,Z.jsxs)(ai,{children:[(0,Z.jsx)(qr,{disabled:!a,onSelect:()=>{a&&(V(),nX(uc(a.contentDir,sd(n),a.pathSeparator),`full`))},children:(0,Z.jsx)(J,{id:`oQA-cA`})}),(0,Z.jsx)(qr,{onSelect:()=>{V(),nX(sd(n),`relative`)},children:(0,Z.jsx)(J,{id:`s061i4`})})]})]}),ae||oe?(0,Z.jsx)(Ur,{}):null,ae?(0,Z.jsxs)(qr,{onSelect:()=>{V(),m(n.path)},children:[(0,Z.jsx)(_h,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`OlAl5i`})]}):null,oe?(0,Z.jsxs)(qr,{onSelect:()=>{V(),h(n.path)},children:[(0,Z.jsx)(ym,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`qvWGzP`})]}):null,C?null:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ur,{}),(0,Z.jsxs)(qr,{disabled:i,onSelect:()=>{b.kind!==`asset`&&(V(),d(b))},children:[(0,Z.jsx)(sc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`euc6Ns`})]}),(0,Z.jsxs)(qr,{disabled:i,onSelect:()=>{z(),s.startRenaming(n.path)},children:[(0,Z.jsx)(hc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`2wxgft`})]}),(0,Z.jsxs)(qr,{"data-testid":`file-tree-menu-hide`,disabled:!T,onSelect:()=>{if(!c||!w)return;V();let e=zJ(w),t=Ki(c.current()),n=ta(t,e);if(n===t)return;c.patch(Ni(n));let r=w.path.split(`/`).pop()||w.path;ol.success(y({id:`4xtLTl`,values:{basename:r}}),{description:y({id:`nWv1ja`}),duration:5e3})},children:[(0,Z.jsx)(p,{"aria-hidden":`true`}),D]}),(0,Z.jsxs)(qr,{variant:`destructive`,disabled:i,onSelect:()=>{V(),f(N)},children:[(0,Z.jsx)(Lc,{"aria-hidden":`true`}),F]})]})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(xX,{item:n,workspace:a,onClose:V}),!_&&(0,Z.jsx)(Vs,{input:L,installStates:o.installStates,isElectronHost:o.isElectronHost,dispatch:o.dispatch}),ne,(0,Z.jsxs)(jr,{children:[(0,Z.jsxs)(Wr,{children:[(0,Z.jsx)(gc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`oCZkaG`})]}),(0,Z.jsxs)(ai,{children:[(0,Z.jsx)(qr,{disabled:!a,onSelect:()=>{a&&(V(),nX(uc(a.contentDir,sd(n),a.pathSeparator),`full`))},children:(0,Z.jsx)(J,{id:`oQA-cA`})}),(0,Z.jsx)(qr,{onSelect:()=>{V(),nX(sd(n),`relative`)},children:(0,Z.jsx)(J,{id:`s061i4`})})]})]}),C?null:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ur,{}),_?null:(0,Z.jsxs)(qr,{disabled:i,onSelect:()=>{V(),d(b)},children:[(0,Z.jsx)(sc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`euc6Ns`})]}),(0,Z.jsxs)(qr,{disabled:i,onSelect:()=>{z(),s.startRenaming(n.path)},children:[(0,Z.jsx)(hc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`2wxgft`})]}),w?(0,Z.jsxs)(qr,{"data-testid":`file-tree-menu-hide`,disabled:!T,onSelect:()=>{if(!c)return;V();let e=zJ(w),t=Ki(c.current()),n=ta(t,e);if(n===t)return;c.patch(Ni(n));let r=w.path.split(`/`).pop()||w.path;ol.success(y({id:`OD0FCX`,values:{basename:r}}),{description:y({id:`nWv1ja`}),duration:5e3})},children:[(0,Z.jsx)(p,{"aria-hidden":`true`}),D]}):null,(0,Z.jsxs)(qr,{variant:`destructive`,disabled:i,onSelect:()=>{V(),f(N)},children:[(0,Z.jsx)(Lc,{"aria-hidden":`true`}),F]})]})]})}),t[35]=y,t[36]=i,t[37]=T,t[38]=V,t[39]=z,t[40]=F,t[41]=N,t[42]=A,t[43]=o,t[44]=L,t[45]=D,t[46]=_,t[47]=x,t[48]=C,t[49]=n,t[50]=s,t[51]=c,t[52]=w,t[53]=h,t[54]=u,t[55]=f,t[56]=d,t[57]=m,t[58]=l,t[59]=ne,t[60]=oe,t[61]=ae,t[62]=b,t[63]=a,t[64]=le):le=t[64];let ue;return t[65]!==se||t[66]!==le?(ue=(0,Z.jsxs)(ti,{open:!0,modal:!1,onOpenChange:se,children:[ce,le]}),t[65]=se,t[66]=le,t[67]=ue):ue=t[67],ue}function IX(e){return console.log(e)}function LX(e){return ol.error(e)}function RX(e){return ol.success(e)}function zX(e,t){return`/api/documents?showAll=true${t?`&showOk=true`:``}&dir=${encodeURIComponent(e)}&depth=1`}async function BX(e,t,n,r,i){try{let a=await fetch(zX(e,t),{signal:n,headers:OY});if(kY(a)){let e=await MY(a);return{kind:`entries`,entries:vl(e.entries),truncated:e.truncated}}let o=await M(a,r);if(!o.ok)return{kind:`http-error`,title:o.title};let s=da.safeParse(o.body);return s.success?{kind:`entries`,entries:vl(s.data.documents),truncated:s.data.truncated===!0}:{kind:`http-error`,title:i}}catch(e){return e instanceof AY?{kind:`http-error`,title:e.message}:{kind:`network-error`,cause:e}}}function VX(e){let t=(0,$.c)(366),{ref:n,onContentHeightChange:r}=e,{_:i,i18n:a}=kt(),{activeDocName:o,activeTarget:s,closeTabs:c,closeDocument:l,closeAndClearForRename:u,getPoolActiveDocName:d,poolHas:f,isNewTabActive:p,openTarget:m,prewarm:h,remapTabsForRename:g}=Xe(),{notifySidebarFileSelected:_}=YM(),{resolvedTheme:v}=cn(),{addPage:y,pageMeta:b,pages:x}=Ns(),S;t[0]===b?S=t[1]:(S=function(e,t){return Tl(e,t??b.get(e)?.size)??{kind:`doc`,target:e,docName:e}},t[0]=b,t[1]=S);let C=S,w;t[2]!==y||t[3]!==C||t[4]!==_||t[5]!==m?(w=function(e,t,n){n?.registerPage&&y(e),m(C(e,t),{tabBehavior:`replace-active`}),Kl($l(e)),_()},t[2]=y,t[3]=C,t[4]=_,t[5]=m,t[6]=w):w=t[6];let T=w,E;t[7]!==_||t[8]!==m?(E=function(e){let t=Gl(e);m({kind:`folder`,target:e,folderPath:e},{tabBehavior:`replace-active`}),Kl(t),_()},t[7]=_,t[8]=m,t[9]=E):E=t[9];let D=E,O;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(O=[],t[10]=O):O=t[10];let[k,A]=(0,Q.useState)(O),[j,N]=(0,Q.useState)(!0),[P,F]=(0,Q.useState)(null),[I,L]=(0,Q.useState)(!1),R=PP(),z=(0,Q.useRef)(null),[B,V]=(0,Q.useState)(null),[H,U]=(0,Q.useState)(0),[G,K]=(0,Q.useState)(null),[q,ee]=(0,Q.useState)(null),[te,ne]=(0,Q.useState)(null),{conflicts:re}=Ti(),[ie,ae]=(0,Q.useState)(null),[oe,se]=(0,Q.useState)(null),[ce,le]=(0,Q.useState)(!1),ue=(0,Q.useRef)(ce),de;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(de=new Set,t[11]=de):de=t[11];let fe=(0,Q.useRef)(de),pe=(0,Q.useRef)(k),me=(0,Q.useRef)(b),he=(0,Q.useRef)(null),ge;t[12]!==k||t[13]!==D||t[14]!==T||t[15]!==_||t[16]!==m||t[17]!==x?(ge=function(e,t){let n=t===void 0?k:t,r=eY(e,n);if(r.kind===`none`){console.debug(`[FileTree] Dropped selection for unknown docName:`,Dd(e));return}if(r.kind===`asset`){m({kind:`asset`,target:r.path,assetPath:r.path,mediaKind:r.mediaKind},{tabBehavior:`replace-active`}),Kl(r.hash),_();return}if(r.kind===`folder`){D(r.path);return}let i=n.find(e=>Sl(e)&&e.docName===r.path),a=xl(r.path,{pages:x,docExt:i?.docExt});if(a?.kind===`asset`){m(a,{tabBehavior:`replace-active`}),Kl(Zl(a.assetPath)),_();return}if(a?.kind===`doc`){T(a.docName);return}T(r.path,i?.size,{registerPage:hl(r.path)})},t[12]=k,t[13]=D,t[14]=T,t[15]=_,t[16]=m,t[17]=x,t[18]=ge):ge=t[18];let _e=ge,ve;t[19]!==_||t[20]!==m?(ve=function(e,t){m({kind:`asset`,target:e,assetPath:e,mediaKind:(t??pe.current).find(t=>Nl(t)&&t.path===e)?.mediaKind??null},{tabBehavior:`replace-active`}),Kl(Zl(e)),_()},t[19]=_,t[20]=m,t[21]=ve):ve=t[21];let ye=ve,be=(0,Q.useRef)(o),xe;t[22]===k?xe=t[23]:(xe=new Set(k.filter(Nl).map(hZ)),t[22]=k,t[23]=xe);let Se=xe,Ce=(0,Q.useRef)(Se),we;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(we=[],t[24]=we):we=t[24];let Ee=(0,Q.useRef)(we),De=(0,Q.useRef)(null),Oe=(0,Q.useRef)(mZ),ke=(0,Q.useRef)(null),Ae=(0,Q.useRef)(null),je=(0,Q.useRef)(!1),Me=(0,Q.useRef)(!1),Ne=(0,Q.useRef)(null),Pe;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(Pe={row:null,root:null},t[25]=Pe):Pe=t[25];let Fe=(0,Q.useRef)(Pe),Ie=(0,Q.useRef)(pZ),Le=(0,Q.useRef)(null),Re=(0,Q.useRef)(null),ze;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(ze=new Map,t[26]=ze):ze=t[26];let Be=(0,Q.useRef)(ze),Ve;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=new Set,t[27]=Ve):Ve=t[27];let He=(0,Q.useRef)(Ve),Ue;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=new Map,t[28]=Ue):Ue=t[28];let We=(0,Q.useRef)(Ue),Ge=(0,Q.useRef)(0),qe;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(qe=new Set,t[29]=qe):qe=t[29];let Je=(0,Q.useRef)(qe),Ye=(0,Q.useRef)(fZ),Ze=(0,Q.useRef)(dZ),Qe=(0,Q.useRef)(!1),$e=(0,Q.useRef)(!1),et=(0,Q.useRef)(!1),tt;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(tt=()=>({showHiddenFiles:Qe.current,showOnlyMarkdownFiles:$e.current,showOkFolders:et.current}),t[30]=tt):tt=t[30];let nt=tt,rt=(0,Q.useRef)(null),it=(0,Q.useRef)(null),at=(0,Q.useRef)(uZ),ot=(0,Q.useRef)(lZ),st=(0,Q.useRef)(cZ),lt=(0,Q.useRef)(sZ),ut=(0,Q.useRef)(s),[dt,ft]=(0,Q.useState)(!1),pt;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(pt=function(){z.current!==null&&(clearTimeout(z.current),z.current=null)},t[31]=pt):pt=t[31];let ht=pt,gt;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(gt=function(){ht(),L(!1)},t[32]=gt):gt=t[32];let _t=gt,vt;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(vt=function(e){_t(),F(e)},t[33]=vt):vt=t[33];let yt=vt,bt;t[34]===i?bt=t[35]:(bt=function(){if(ht(),AP()){F(null),L(!0),z.current=setTimeout(()=>{z.current=null,rt.current?.()},hX);return}L(!1),F(i({id:`34qyH5`}))},t[34]=i,t[35]=bt);let xt=bt,St=(0,Q.useRef)(!0),Ct;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(Ct=()=>{if(St.current){St.current=!1;return}rt.current?.()},t[36]=Ct):Ct=t[36];let wt;t[37]===R?wt=t[38]:(wt=[R],t[37]=R,t[38]=wt),(0,Q.useEffect)(Ct,wt);let Tt,Et;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(Tt=()=>ht,Et=[],t[39]=Tt,t[40]=Et):(Tt=t[39],Et=t[40]),(0,Q.useEffect)(Tt,Et);let Dt,Ot;t[41]!==k.length||t[42]!==j?(Dt=()=>{if(j||k.length===0)return;let e=it.current?.querySelector(uz)?.shadowRoot;if(!e)return;let t=e,n=function(){Ne.current!==null&&clearTimeout(Ne.current),Ne.current=setTimeout(()=>{Me.current=!1,Ne.current=null},0)},r=function(e){if(!(e instanceof DragEvent))return;let t=_Z(e),n=t?.dataset.itemPath;if(!n)return;let r=aY(t.dataset.itemType===`folder`?xd(n):n,pe.current,me.current);r&&(Ne.current!==null&&(clearTimeout(Ne.current),Ne.current=null),Me.current=!0,e.dataTransfer?.setData(nd,ed(r)))},i=function(e){if(!(e instanceof DragEvent)||!vd(e))return;let t=yZ(e);if(!t){eX(Fe);return}e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`),tX(Fe,t)},a=function(e){if(!(e instanceof DragEvent)||!vd(e))return;let n=e.relatedTarget;n instanceof Node&&t.contains(n)||eX(Fe)},o=function(e){if(!(e instanceof DragEvent)||!vd(e))return;let t=yZ(e),n=fd(e);if(!t||n.length===0){eX(Fe);return}e.preventDefault(),e.stopPropagation(),eX(Fe),Ie.current(n,t.parentDir,t.busyPath)};return e.addEventListener(`dragstart`,r,{capture:!0}),e.addEventListener(`dragover`,i,{capture:!0}),e.addEventListener(`dragleave`,a,{capture:!0}),e.addEventListener(`drop`,o,{capture:!0}),e.addEventListener(`dragend`,n,{capture:!0}),window.addEventListener(`drop`,n,!0),window.addEventListener(`dragend`,n,!0),()=>{e.removeEventListener(`dragstart`,r,{capture:!0}),e.removeEventListener(`dragover`,i,{capture:!0}),e.removeEventListener(`dragleave`,a,{capture:!0}),e.removeEventListener(`drop`,o,{capture:!0}),e.removeEventListener(`dragend`,n,{capture:!0}),window.removeEventListener(`drop`,n,!0),window.removeEventListener(`dragend`,n,!0),eX(Fe),Ne.current!==null&&(clearTimeout(Ne.current),Ne.current=null),Me.current=!1}},Ot=[k.length,j],t[41]=k.length,t[42]=j,t[43]=Dt,t[44]=Ot):(Dt=t[43],Ot=t[44]),(0,Q.useEffect)(Dt,Ot);let{selectedFilePath:At,selectedFolderPath:jt,navigationPath:Mt}=$J(s,p?null:o),Nt=At?Cd(At,k.find(e=>Sl(e)&&e.docName===At)?.docExt):jt?xd(jt):s?.kind===`asset`?s.assetPath:null,Pt=ce?null:Nt,Ft=$s().states,{dispatch:It}=Is(),Lt;t[45]!==It||t[46]!==Ft?(Lt={installStates:Ft,isElectronHost:typeof window<`u`&&window.okDesktop!=null,dispatch:It},t[45]=It,t[46]=Ft,t[47]=Lt):Lt=t[47];let Rt=Lt,{okignoreBinding:zt,merged:Bt}=Iu(),Vt=Bt?.appearance?.sidebar?.showHiddenFiles??!1,Ht=Bt?.appearance?.sidebar?.showOnlyMarkdownFiles??!1,Ut=Bt?.appearance?.sidebar?.showOkFolders??!1,Wt;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(Wt=()=>Le.current===null,t[48]=Wt):Wt=t[48];let Gt=Wt,Kt;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(Kt=[],t[49]=Kt):Kt=t[49];let qt;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(qt={set:`complete`,spriteSheet:uX,byFileExtension:{md:{name:oX,viewBox:Te},mdx:{name:oX,viewBox:Te}}},t[50]=qt):qt=t[50];let Jt;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(Jt={contextMenu:{enabled:!0,triggerMode:`both`,buttonVisibility:`when-needed`}},t[51]=Jt):Jt=t[51];let Yt;t[52]===Symbol.for(`react.memo_cache_sentinel`)?(Yt={canDrag:Gt,canDrop:Gt,onDropComplete:e=>lt.current(e),onDropError:oZ},t[52]=Yt):Yt=t[52];let Xt,Zt;t[53]===Symbol.for(`react.memo_cache_sentinel`)?(Xt={canRename:Gt,onRename:e=>ot.current(e),onError:e=>st.current(e)},Zt=e=>at.current(e),t[53]=Xt,t[54]=Zt):(Xt=t[53],Zt=t[54]);let Qt;t[55]===i?Qt=t[56]:(Qt={paths:Kt,initialExpansion:`closed`,fileTreeSearchMode:`hide-non-matches`,initialVisibleRowCount:18,stickyFolders:!0,...yJ,icons:qt,unsafeCSS:vX,composition:Jt,dragAndDrop:Yt,renaming:Xt,onSelectionChange:Zt,renderRowDecoration:e=>{let{item:t}=e;if(t.kind===`file`){let e=pe.current.find(e=>Sl(e)&&Cd(e.docName,e.docExt)===t.path);if(e?.isSymlink){let t=e.targetPath;return{icon:iX,title:i(t?{id:`JE21eh`,values:{targetPath:t}}:{id:`BQu9Pg`})}}return yX(t.path)?{icon:aX,title:i({id:`i9toLO`})}:null}let n=pe.current.find(e=>Ml(e)&&xd(e.path)===xd(t.path));if(n?.isSymlink){let e=n.targetPath;return{icon:iX,title:i(e?{id:`JE21eh`,values:{targetPath:e}}:{id:`BQu9Pg`})}}return null}},t[55]=i,t[56]=Qt);let{model:$t}=_J(Qt),en;t[57]===$t?en=t[58]:(en=function(e){let t=$t.getItem(e)??$t.getItem(xd(e));return t?.isDirectory()?xd(kd(t.getPath())):e},t[57]=$t,t[58]=en);let tn=en,nn,rn;t[59]===k?(nn=t[60],rn=t[61]):(rn=ud(k),nn=td(rn),t[59]=k,t[60]=nn,t[61]=rn);let an=nn,on=(0,Q.useRef)(rn),sn;t[62]!==k||t[63]!==Ut?(sn=yd(k,{includeOkFolders:Ut}),t[62]=k,t[63]=Ut,t[64]=sn):sn=t[64];let ln=sn,un=(0,Q.useRef)(ln),dn=jt?Sd(xd(jt)).slice(0,-1):Sd(Pt??Mt),fn=dn.join(`\0`),pn;t[65]===$t?pn=t[66]:(pn=()=>{let e=new Set;for(let t of un.current)mY($t.getItem(t))?.isExpanded()&&e.add(t);return e},t[65]=$t,t[66]=pn);let mn=pn,hn;t[67]===mn?hn=t[68]:(hn=e=>{let t=new Set(yd(e??pe.current,{includeOkFolders:et.current})),n=mn();for(let e of Ee.current)n.add(e);return[...n].filter(e=>t.has(e))},t[67]=mn,t[68]=hn);let gn=hn,_n;t[69]!==gn||t[70]!==$t?(_n=e=>{let t=ud(e??pe.current);$t.resetPaths(t,{initialExpandedPaths:gn(e)})},t[69]=gn,t[70]=$t,t[71]=_n):_n=t[71];let vn=_n,yn;t[72]!==i||t[73]!==xt?(yn=async function(e){let t=Ge.current,n=new AbortController;We.current.set(e,n);let r=await BX(kd(e),et.current,n.signal,i({id:`8RtNI0`}),i({id:`HlmZBk`}));if(We.current.get(e)===n&&We.current.delete(e),n.signal.aborted||t!==Ge.current)return;if(r.kind===`network-error`){xt(),console.warn(`[FileTree] lazy folder children fetch failed:`,e,r.cause);return}if(r.kind===`http-error`){console.warn(`[FileTree] lazy folder children http error:`,e,r.title),yt(r.title);return}let a=bl(r.entries,nt());He.current.add(e),A(t=>FY(t,e,a,Be.current)),F(null),_t(),r.truncated&&V(r.entries.length)},t[72]=i,t[73]=xt,t[74]=yn):yn=t[74];let bn=yn,xn;t[75]!==mn||t[76]!==bn?(xn=()=>{let e=mn(),t=Je.current;Je.current=e;for(let n of e){if(t.has(n)||He.current.has(n)||We.current.has(n))continue;let e=kd(n);pe.current.find(t=>Ml(t)&&t.path===e)?.hasChildren!==!1&&bn(n)}},t[75]=mn,t[76]=bn,t[77]=xn):xn=t[77];let Sn=xn,Cn;t[78]!==mn||t[79]!==bn?(Cn=()=>{for(let e of mn())He.current.has(e)||We.current.has(e)||bn(e)},t[78]=mn,t[79]=bn,t[80]=Cn):Cn=t[80];let wn=Cn,Tn;t[81]!==$t||t[82]!==vn?(Tn=(e,t,n,r)=>{let i=r===void 0?[]:r,a=0,o=null;for(let{fromDocName:r,toDocName:i}of n){let n=e.find(e=>Sl(e)&&e.docName===r);if(n==null||$t.getItem(i)==null)continue;let s=Cd(i,t.find(e=>Sl(e)&&e.docName===i)?.docExt??n.docExt);$t.move(i,s),o=s,a+=1}for(let{toPath:e}of i){let t=_l(e);if(t===``)continue;let n=e.slice(0,-t.length);$t.getItem(n)!=null&&($t.getItem(e)??$t.move(n,e),o=e,a+=1)}a!==0&&(vn(t),o!=null&&$t.focusPath(o))},t[81]=$t,t[82]=vn,t[83]=Tn):Tn=t[83];let En=Tn,Dn;t[84]===Symbol.for(`react.memo_cache_sentinel`)?(Dn=e=>{ke.current=_d(e)},t[84]=Dn):Dn=t[84];let On=Dn,kn;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(kn=e=>Ce.current.has(e),t[85]=kn):kn=t[85];let An=kn,jn;t[86]!==i||t[87]!==y||t[88]!==D||t[89]!==T||t[90]!==vn?(jn=async function(e){if(e.kind===`asset`||Le.current!==null)return;let t=()=>{K(null),Le.current=null};Le.current=e.path,K(e.path),F(null);try{let n=await M(await fetch(`/api/duplicate-path`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({kind:e.kind,path:e.path})}),i({id:`dw_dUJ`}));if(!n.ok){ol.error(n.title),vn(),t();return}let r=W(Ia,n.body,`duplicate-path`,null);if(r===null){let e=i({id:`67f-3g`});ol.error(e),F(e),Il([`files`,`backlinks`,`graph`]),vn(),t();return}for(let e of r.duplicatedDocNames)y(e);A(t=>{let n=oF(t,e,r);return vn(n),On(n),n}),Il([`files`,`backlinks`,`graph`]),r.path!==e.path&&(r.kind===`folder`?D(r.path):T(r.path)),ol.success(r.kind===`folder`?i({id:`iilQXA`}):i({id:`A6h5b-`}),{description:r.path}),t()}catch(e){let n=e,r=n instanceof Error?n.message:String(n);console.warn(`[FileTree] duplicate failed:`,n),ol.error(i({id:`EBVbtP`}),{description:r}),vn(),t()}},t[86]=i,t[87]=y,t[88]=D,t[89]=T,t[90]=vn,t[91]=jn):jn=t[91];let Mn=jn,Nn=(0,Q.useRef)(Mn),Pn;t[92]===Mn?Pn=t[93]:(Pn=()=>{Nn.current=Mn},t[92]=Mn,t[93]=Pn),(0,Q.useEffect)(Pn);let In=function(e){let t=ZY(e);if(!t||QY(t))return!1;let n=$t.getFocusedPath()??$t.getSelectedPaths()[0]??null;if(!n||n.endsWith(`/`)||An(n))return!1;let r=QY(n);if(!r)return!1;let i=xd(t);if(!un.current.includes(i))return!1;let a=`${t}${r}`;return on.current.includes(a)?!1:(mr({sourcePath:n,destinationPath:a,isFolder:!1}),$t.move(n,a),!0)},Ln;t[94]===Symbol.for(`react.memo_cache_sentinel`)?(Ln=e=>{let t=e??De.current;!t||De.current!==t||(t.disposeCommitListener(),De.current=null)},t[94]=Ln):Ln=t[94];let Rn=Ln,zn;t[95]!==i||t[96]!==Rn||t[97]!==l||t[98]!==c||t[99]!==vn?(zn=async function(e,t){let n=t===void 0?{}:t,r=n.updateUi??!0,a=n.restoreLocation??r;Rn(e),r&&K(e.renamePath);try{let t=await fetch(`/api/delete-path`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({kind:e.kind,path:e.createdPath})});if(!t.ok&&t.status!==404){let n=e.kind,a=e.createdPath,o=await M(t,i({id:`EcM3k7`,values:{kind:n}}));if(o.ok)return;let s=o.title,c=i({id:`YPFBfr`,values:{detail:s,kind:n,createdPath:a}});r?ol.error(c):console.warn(`[FileTree] cleanup pending create failed: ${c}`),r&&(K(null),vn());return}}catch(t){if(console.warn(`[FileTree] cleanup pending create failed:`,t),r){let t=e.kind,n=e.createdPath;ol.error(i({id:`_TDESN`,values:{kind:t,createdPath:n}}))}r&&(K(null),vn());return}r&&(e.kind===`file`?l(e.createdPath):c([mt(e.createdPath)],{force:!0})),r&&A(t=>{let n=iF(t,e.kind===`file`?[e.createdPath]:[],e.kind===`folder`?e.createdPath:void 0);return On(n),n}),Il([`files`,`backlinks`,`graph`]),a&&(window.location.hash=e.previousHash),r&&K(null)},t[95]=i,t[96]=Rn,t[97]=l,t[98]=c,t[99]=vn,t[100]=zn):zn=t[100];let Bn=zn,Vn,Hn;t[101]===Symbol.for(`react.memo_cache_sentinel`)?(Vn=()=>()=>{let e=De.current;e&&Oe.current(e,{restoreLocation:!1,updateUi:!1}).catch(aZ)},Hn=[],t[101]=Vn,t[102]=Hn):(Vn=t[101],Hn=t[102]),(0,Q.useEffect)(Vn,Hn);let Un;t[103]!==i||t[104]!==xt?(Un=()=>{let e=!0,t=null,n=DY(async function(){t?.abort();let n=new AbortController;t=n,Ge.current+=1;for(let e of We.current.values())e.abort();We.current.clear(),He.current.clear();try{let t=await fetch(zX(``,et.current),{signal:n.signal,headers:OY});if(kY(t)){let r=nt(),i=!1,{entries:a,truncated:o}=await MY(t,{onBatch:t=>{if(!e||n.signal.aborted)return;let a=bl(vl(t),r);a.length!==0&&(A(e=>PY(e,a)),i||(i=!0,F(null),_t(),N(!1)))}});if(!e)return;let s=vl(a),c=bl(s,r);A(e=>FY(e,``,c,Be.current)),F(null),_t(),V(o?a.length:null),U(s.length),Ze.current()}else{let n=await M(t,i({id:`8RtNI0`}));if(!e)return;if(!n.ok)yt(n.title),V(null);else{let e=da.safeParse(n.body);if(!e.success)yt(i({id:`HlmZBk`})),V(null);else{let t=vl(e.data.documents),n=bl(t,nt());A(e=>FY(e,``,n,Be.current)),F(null),_t(),V(e.data.truncated===!0?e.data.documents.length:null),U(t.length),Ze.current()}}}}catch(t){let r=t;if(n.signal.aborted)return;e&&(r instanceof AY?yt(r.message):xt()),console.warn(`[FileTree] fetch failed:`,r)}e&&N(!1)},()=>t?.abort());rt.current=()=>n.request(),n.request();let r=()=>{document.visibilityState===`visible`&&n.request()};window.addEventListener(`focus`,r),window.addEventListener(`visibilitychange`,r);let a=Ll(e=>{e.includes(`files`)&&n.request()});return()=>{e=!1,rt.current=null,n.dispose();for(let e of We.current.values())e.abort();We.current.clear(),window.removeEventListener(`focus`,r),window.removeEventListener(`visibilitychange`,r),a()}},t[103]=i,t[104]=xt,t[105]=Un):Un=t[105];let Wn;t[106]===i?Wn=t[107]:(Wn=[i],t[106]=i,t[107]=Wn),(0,Q.useEffect)(Un,Wn);let Gn=(0,Q.useRef)(!0),Kn;t[108]===Symbol.for(`react.memo_cache_sentinel`)?(Kn=()=>{if(Gn.current){Gn.current=!1;return}rt.current?.()},t[108]=Kn):Kn=t[108];let qn;t[109]!==Vt||t[110]!==Ut||t[111]!==Ht?(qn=[Vt,Ht,Ut],t[109]=Vt,t[110]=Ut,t[111]=Ht,t[112]=qn):qn=t[112],(0,Q.useEffect)(Kn,qn);let Jn,Yn;t[113]===Symbol.for(`react.memo_cache_sentinel`)?(Jn=()=>{let e=!0;return fetch(`/api/workspace`).then(async t=>{let n=await t.json();if(!e||!t.ok)return;let r=W($a,n,`workspace`,null);r&&se({contentDir:r.contentDir,pathSeparator:r.pathSeparator})}).catch(iZ),()=>{e=!1}},Yn=[],t[113]=Jn,t[114]=Yn):(Jn=t[113],Yn=t[114]),(0,Q.useEffect)(Jn,Yn);let Xn;t[115]!==gn||t[116]!==$t||t[117]!==an?(Xn=()=>{if(ke.current===an){ke.current=null;return}$t.resetPaths(on.current,{initialExpandedPaths:gn()})},t[115]=gn,t[116]=$t,t[117]=an,t[118]=Xn):Xn=t[118];let Zn;t[119]!==$t||t[120]!==an?(Zn=[$t,an],t[119]=$t,t[120]=an,t[121]=Zn):Zn=t[121],(0,Q.useEffect)(Xn,Zn),_Y($t,Pt,fn,je,an);let Qn,$n;t[122]!==$t||t[123]!==r?(Qn=()=>{if(!r)return;let e=0,t=0,n=()=>it.current?.querySelector(`file-tree-container`)?.shadowRoot?.querySelector(`[data-file-tree-virtualized-list]`)??null,i=()=>{let e=n();if(!e)return;let t=Number.parseFloat(e.style.height);Number.isFinite(t)&&r(t)},a=()=>{cancelAnimationFrame(e),e=requestAnimationFrame(i)},o=new MutationObserver(i),s=()=>{let e=n();e?(o.observe(e,{attributes:!0,attributeFilter:[`style`]}),i()):t=requestAnimationFrame(s)};s();let c=$t.subscribe(a);return window.addEventListener(`resize`,a),()=>{cancelAnimationFrame(e),cancelAnimationFrame(t),o.disconnect(),c(),window.removeEventListener(`resize`,a)}},$n=[r,$t],t[122]=$t,t[123]=r,t[124]=Qn,t[125]=$n):(Qn=t[124],$n=t[125]),(0,Q.useEffect)(Qn,$n);let er;t[126]===Symbol.for(`react.memo_cache_sentinel`)?(er=()=>{le(!1)},t[126]=er):er=t[126];let tr;t[127]===Nt?tr=t[128]:(tr=[Nt],t[127]=Nt,t[128]=tr),(0,Q.useEffect)(er,tr);let nr,rr;t[129]===ce?(nr=t[130],rr=t[131]):(nr=()=>{ue.current=ce;for(let e of fe.current)e()},rr=[ce],t[129]=ce,t[130]=nr,t[131]=rr),(0,Q.useEffect)(nr,rr);let ir;t[132]!==Pt||t[133]!==j||t[134]!==$t?(ir=()=>{j||!Pt||ZJ($t,Pt)},t[132]=Pt,t[133]=j,t[134]=$t,t[135]=ir):ir=t[135];let ar;t[136]!==fn||t[137]!==Pt||t[138]!==j||t[139]!==$t||t[140]!==an?(ar=[Pt,fn,an,j,$t],t[136]=fn,t[137]=Pt,t[138]=j,t[139]=$t,t[140]=an,t[141]=ar):ar=t[141],(0,Q.useEffect)(ir,ar);let or,sr;t[142]===$t?(or=t[143],sr=t[144]):(or=()=>$t.subscribe(()=>{if(!$t.isSearchOpen())for(let e of Ee.current){let t=mY($t.getItem(e));t&&!t.isExpanded()&&t.expand()}}),sr=[$t],t[142]=$t,t[143]=or,t[144]=sr),(0,Q.useEffect)(or,sr);let cr,lr;t[145]===$t?(cr=t[146],lr=t[147]):(cr=()=>$t.subscribe(()=>Ye.current()),lr=[$t],t[145]=$t,t[146]=cr,t[147]=lr),(0,Q.useEffect)(cr,lr);let ur,dr;t[148]===$t?(ur=t[149],dr=t[150]):(ur=()=>$t.onMutation(`remove`,e=>{let t=De.current;!t||e.path!==t.renamePath||Oe.current(t)}),dr=[$t],t[148]=$t,t[149]=ur,t[150]=dr),(0,Q.useEffect)(ur,dr);let fr;t[151]!==y||t[152]!==u||t[153]!==d||t[154]!==ye||t[155]!==D||t[156]!==T||t[157]!==f||t[158]!==En||t[159]!==g?(fr=async(e,t,n,r,i)=>{let a=t===void 0?[]:t,o=n===void 0?[]:n,s=i===void 0?[]:i,c=r?.docName??be.current,l=new Map,p=new Map;for(let e of pe.current){if(Sl(e)){let t=o.find(t=>t.fromPath===Cd(e.docName,e.docExt))?.toPath;t&&l.set(e.docName,t);continue}if(Nl(e)){let t=o.find(t=>t.fromPath===e.path)?.toPath;t&&hl(t)&&p.set(e.path,ld(t))}}let m=c?l.get(c)??null:null,h=r?.folderPath??(ut.current?.kind===`folder`?ut.current.folderPath:null),_=h?ct(h,a):null,v=r?.assetPath??(ut.current?.kind===`asset`?ut.current.assetPath:null),b=v?p.get(v)??null:null,x=m?null:b??sF(c,e),S=m??(v?b?null:o.find(e=>e.fromPath===v)?.toPath??ct(v,a):null);Ke(e);let C=[...cF(e,d(),f),...l.keys()];await Promise.all(C.map(e=>u(e)));for(let t of e)y(t.toDocName);for(let e of p.values())y(e);g(e,a,o);let w=null;A(t=>{let n=rF(t,e,a,o,s);return w=n,En(t,n,e,o),On(n),n}),h&&_&&_!==h?D(_):x&&x!==c?(T(x),$Y(x)):S&&(m||S!==v)&&ye(S,w??pe.current),Il([`files`,`backlinks`,`graph`])},t[151]=y,t[152]=u,t[153]=d,t[154]=ye,t[155]=D,t[156]=T,t[157]=f,t[158]=En,t[159]=g,t[160]=fr):fr=t[160];let pr=fr;async function mr(e){let t=!e.isFolder&&An(e.sourcePath),n=t?e.sourcePath:md(e.sourcePath,e.isFolder);K(n),F(null);try{let r=gl(e.sourcePath,e.destinationPath,e.isFolder),a=!e.isFolder&&!t&&!hl(r.destinationPath),o=t||a?r.destinationPath:md(r.destinationPath,e.isFolder),s=e.isFolder?{kind:`folder`,fromPath:kd(n),toPath:kd(o)}:t||a?{kind:`asset`,fromPath:n,toPath:o}:{kind:`file`,fromPath:Od(n,pe.current),toPath:o},c={docName:be.current,folderPath:ut.current?.kind===`folder`?ut.current.folderPath:null,assetPath:ut.current?.kind===`asset`?ut.current.assetPath:null},l=await M(await fetch(`/api/rename-path`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(s)}),i({id:`gijbne`}));if(!l.ok){ol.error(l.title),vn();let e=De.current;e&&e.renamePath===n?await Bn(e):Rn(),K(null);return}let u=W(Bo,l.body,`rename-path`,{renamed:[],renamedAssets:[]});try{await pr(u.renamed,e.isFolder?[{fromPath:kd(n),toPath:kd(o)}]:[],u.renamedAssets,c,!e.isFolder&&!t&&!a?u.renamed.flatMap(e=>{let t=_l(o);return t?[{toDocName:e.toDocName,docExt:t}]:[]}):[])}catch(e){console.warn(`[FileTree] post-rename reconciliation failed`,{err:e,sourceTreePath:n,destinationTreePath:o,renamedCount:u.renamed.length,renamedAssetCount:u.renamedAssets.length}),ol.error(i({id:`dDpCOp`}))}Rn(),K(null)}catch(e){console.warn(`[FileTree] rename failed:`,e);let t=i({id:`HIb0vl`});ol.error(t),F(t),vn();let r=De.current;r&&r.renamePath===n?await Bn(r):Rn(),K(null)}}let hr;t[161]!==i||t[162]!==pr||t[163]!==vn?(hr=async function(e){let t=e.draggedPaths.map(t=>{let n=hd(t,e.target);return t===n?null:{sourcePath:t,destinationTreePath:n}}).filter(rZ);if(t.length!==0){K(t[0]?.sourcePath??null),F(null);try{let e=[],n=[],r=[],a={docName:be.current,folderPath:ut.current?.kind===`folder`?ut.current.folderPath:null,assetPath:ut.current?.kind===`asset`?ut.current.assetPath:null};for(let a of t){let t=a.sourcePath.endsWith(`/`),o=!t&&An(a.sourcePath),s=o?null:Od(a.sourcePath,pe.current),c=t?{kind:`folder`,fromPath:kd(a.sourcePath),toPath:kd(a.destinationTreePath)}:o?{kind:`asset`,fromPath:a.sourcePath,toPath:a.destinationTreePath}:{kind:`file`,fromPath:s??ld(a.sourcePath),toPath:s&&hl(s)?a.destinationTreePath:ld(a.destinationTreePath)},l=await M(await fetch(`/api/rename-path`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(c)}),i({id:`dOHMA0`}));if(!l.ok){ol.error(l.title),vn(),K(null);return}let u=W(Bo,l.body,`rename-path:drop`,{renamed:[],renamedAssets:[]});e=e.concat(u.renamed),n=n.concat(u.renamedAssets),t&&r.push({fromPath:kd(a.sourcePath),toPath:kd(a.destinationTreePath)})}try{await pr(e,r,n,a)}catch(r){console.warn(`[FileTree] post-move reconciliation failed`,{err:r,operationCount:t.length,renamedCount:e.length,renamedAssetCount:n.length}),ol.error(i({id:`8OxKZy`}))}K(null)}catch(e){console.warn(`[FileTree] move failed:`,e),ol.error(i({id:`HIb0vl`})),vn(),K(null)}}},t[161]=i,t[162]=pr,t[163]=vn,t[164]=hr):hr=t[164];let gr=hr,_r;t[165]!==i||t[166]!==y||t[167]!==vn?(_r=async function(e,t,n){if(e.length===0||Le.current!==null)return;let r=()=>{Le.current=null,K(null)};Le.current=n,K(n),F(null);let a=[],o=0,s=0;for(let n of e){let e=new FormData;e.append(`file`,n),wd(e,t,n.name||`upload`);try{let r=await M(await fetch(`/api/upload`,{method:`POST`,body:e}),i({id:`4Gz2wC`}));if(!r.ok){s+=1,ol.error(r.title,{description:n.name});continue}let c=W(Xa,r.body,`upload:drop`,null);if(c===null){s+=1,ol.error(i({id:`4Gz2wC`}),{description:n.name});continue}let l=od(t,c);if(c.deduped===!0){s+=1,ol.error(i({id:`4sKwf6`}),{description:l});continue}o+=1;let u=Td(l,n);u&&a.push(u)}catch(e){let t=e;s+=1,console.warn(`[FileTree] external file upload failed:`,t),ol.error(t instanceof TypeError?i({id:`HIb0vl`}):i({id:`4Gz2wC`}),{description:n.name})}}try{if(a.length>0){for(let e of a)Sl(e)&&y(e.docName);A(e=>{let t=new Set(e.map(dd)),n=!1,r=[...e];for(let e of a){let i=dd(e);Be.current.set(i,Date.now()),!t.has(i)&&(t.add(i),r.push(e),n=!0)}return n?(vn(r),On(r),r):e})}o>0&&(Il([`files`,`backlinks`,`graph`]),rt.current?.(),ol.success(ml._({id:`v75Em9`,values:{uploadedCount:o}}),{description:t||i({id:`RSqaSd`})})),s>0&&F(o>0?ml._({id:`yH7T4q`,values:{failedCount:s}}):i({id:`4Gz2wC`})),r()}catch(e){let t=e,n=i({id:`VcqWBy`});console.warn(`[FileTree] upload post-upload reconciliation failed:`,t),ol.error(n),F(n),r()}},t[165]=i,t[166]=y,t[167]=vn,t[168]=_r):_r=t[168];let vr=_r,yr;t[169]===Symbol.for(`react.memo_cache_sentinel`)?(yr=function(e){ae({parentDir:e})},t[169]=yr):yr=t[169];let br=yr,xr;t[170]!==i||t[171]!==y||t[172]!==Bn||t[173]!==Rn||t[174]!==$t||t[175]!==D||t[176]!==T||t[177]!==vn||t[178]!==rn?(xr=async function(e,t,n){if(Le.current)return;let r=De.current;r&&Rn(r);try{let r=bd(e,t,[...rn,...un.current]);K(r.renamePath),Le.current=r.renamePath;let a=window.location.hash,o;if(e===`file`){let e=cd(`file`,r.addPath),t={path:e};n?.template&&(t.template=n.template);let a=await M(await fetch(`/api/create-page`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}),i({id:`fJgQHX`}));if(!a.ok){ol.error(a.title),K(null),Le.current=null;return}let s=ld(e),c=W(Vo,a.body,`create-page`,{docName:s}).docName;o=c;let l={kind:`document`,docName:c,docExt:e.toLowerCase().endsWith(`.mdx`)?`.mdx`:`.md`,modified:new Date().toISOString(),size:0};y(c),A(e=>{if(e.some(e=>Sl(e)&&e.docName===c))return e;let t=[...e,l];return On(t),Be.current.set(dd(l),Date.now()),t}),Il([`files`,`backlinks`,`graph`]),T(c)}else{let e=kd(r.addPath),t=await M(await fetch(`/api/create-folder`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({path:e})}),i({id:`K1ckLX`}));if(!t.ok){ol.error(t.title),K(null),Le.current=null;return}o=W(ha,t.body,`create-folder`,{path:e}).path;let n={kind:`folder`,path:o,modified:new Date().toISOString(),size:0};A(e=>{if(e.some(e=>Ml(e)&&e.path===o))return e;let t=[...e,n];return On(t),Be.current.set(dd(n),Date.now()),t}),Il([`files`]),D(o)}let s=!1,c=e=>{if(e.key!==`Enter`)return;let t=De.current;!t||t.renamePath!==r.renamePath||queueMicrotask(()=>Rn(t))};document.addEventListener(`keydown`,c,!0),De.current={kind:e,renamePath:r.renamePath,createdPath:o,previousHash:a,disposeCommitListener:()=>{s||(s=!0,document.removeEventListener(`keydown`,c,!0))}},K(null),Le.current=null,$t.add(r.addPath),$t.startRenaming(r.renamePath,{removeIfCanceled:!0})}catch(e){console.warn(`[FileTree] create placeholder failed:`,e),ol.error(i({id:`S6l5dv`}));let t=De.current;t?await Bn(t):Rn(),K(null),Le.current=null,vn()}},t[170]=i,t[171]=y,t[172]=Bn,t[173]=Rn,t[174]=$t,t[175]=D,t[176]=T,t[177]=vn,t[178]=rn,t[179]=xr):xr=t[179];let Sr=xr,Cr;t[180]===$t?Cr=t[181]:(Cr=function(e){let t=xd(e);(0,Q.startTransition)(()=>{for(let e of un.current)if(e===t||e.startsWith(t)){let t=mY($t.getItem(e));t&&t.expand()}})},t[180]=$t,t[181]=Cr);let wr=Cr,Tr;t[182]===$t?Tr=t[183]:(Tr=function(e){let t=xd(e),n=new Set(Ee.current);(0,Q.startTransition)(()=>{for(let e of[...un.current].reverse())if((e===t||e.startsWith(t))&&!n.has(e)){let t=mY($t.getItem(e));t&&t.collapse()}})},t[182]=$t,t[183]=Tr);let Er=Tr,Dr;t[184]===Symbol.for(`react.memo_cache_sentinel`)?(Dr=function(){return((it.current?.querySelector(`file-tree-container`)?.shadowRoot)?.querySelector(`[aria-selected="true"][data-item-path]`))?.dataset.itemPath??null},t[184]=Dr):Dr=t[184];let Or=Dr,kr;t[185]!==_e||t[186]!==dn||t[187]!==o||t[188]!==s||t[189]!==Se||t[190]!==G||t[191]!==Bn||t[192]!==Sn||t[193]!==k||t[194]!==ln||t[195]!==gr||t[196]!==mr||t[197]!==tn||t[198]!==b||t[199]!==In||t[200]!==wn||t[201]!==Vt||t[202]!==Ut||t[203]!==Ht||t[204]!==rn||t[205]!==vr?(kr=()=>{pe.current=k,me.current=b,be.current=o,ut.current=s,Ce.current=Se,Le.current=G,Qe.current=Vt,$e.current=Ht,et.current=Ut,on.current=rn,un.current=ln,Ee.current=dn,Ye.current=Sn,Ze.current=wn,Oe.current=Bn,Ie.current=(e,t,n)=>{vr(e,t,n)},at.current=e=>{if(je.current||Me.current||e.length!==1)return;let t=e[0];if(t){le(!1);let e=tn(t),n=he.current,r=n!==null&&ld(n)===ld(e),i=r?n:e;he.current=null,queueMicrotask(()=>{_e(tn((r?null:Or())??i),pe.current)})}},st.current=e=>{In(e)||ol.error(e)},ot.current=mr,lt.current=gr},t[185]=_e,t[186]=dn,t[187]=o,t[188]=s,t[189]=Se,t[190]=G,t[191]=Bn,t[192]=Sn,t[193]=k,t[194]=ln,t[195]=gr,t[196]=mr,t[197]=tn,t[198]=b,t[199]=In,t[200]=wn,t[201]=Vt,t[202]=Ut,t[203]=Ht,t[204]=rn,t[205]=vr,t[206]=kr):kr=t[206],(0,Q.useLayoutEffect)(kr);let Ar,jr;t[207]===$t?(Ar=t[208],jr=t[209]):(Ar=()=>{let e=e=>{let t=(e.metaKey||e.ctrlKey)&&!e.altKey,n=e.key.toLowerCase(),r=t&&n===`a`,i=t&&!e.shiftKey&&n===`d`,a=t&&!e.shiftKey&&n===`c`,o=t&&!e.shiftKey&&n===`v`,s=!e.altKey&&!e.shiftKey&&(e.metaKey&&!e.ctrlKey&&n===`backspace`||!e.metaKey&&!e.ctrlKey&&n===`delete`);if(!r&&!i&&!a&&!o&&!s||MX(e.target))return;let c=it.current,l=e.target,u=document.activeElement,d=l instanceof Node&&c?.contains(l),f=u instanceof Node&&c?.contains(u);if(!d&&!f)return;if(a){let t=kX($t,pe.current,Ce.current);if(!t)return;Re.current=t,e.preventDefault(),e.stopPropagation();return}if(o){let t=Re.current;if(!t)return;Nn.current(t),e.preventDefault(),e.stopPropagation();return}if(i){let t=kX($t,pe.current,Ce.current);if(!t)return;Nn.current(t),e.preventDefault(),e.stopPropagation();return}if(s){if(Le.current!==null)return;let t=AX($t,pe.current);if(t.length===0)return;ee({targets:t}),e.preventDefault(),e.stopPropagation();return}let p=new Set([...un.current,...on.current]);je.current=!0;for(let e of p)e&&$t.getItem(e)?.select();queueMicrotask(()=>{je.current=!1}),e.preventDefault(),e.stopPropagation()};return document.addEventListener(`keydown`,e,!0),()=>document.removeEventListener(`keydown`,e,!0)},jr=[$t],t[207]=$t,t[208]=Ar,t[209]=jr),(0,Q.useEffect)(Ar,jr);let Mr,Nr;t[210]!==k.length||t[211]!==j?(Mr=()=>{if(j||k.length===0)return;let e=it.current?.querySelector(uz)?.shadowRoot;if(!e)return;let t=nZ,n=()=>{for(let n of e.querySelectorAll(`[data-item-path]`)){let e=n.dataset.itemPath;if(!e)continue;let r=t(e);n.title!==r&&(n.title=r)}let n=e.querySelector(`[data-type="context-menu-anchor"]`);if(n){let r=e.querySelector(`[data-item-context-hover="true"][data-item-path]`)?.dataset.itemPath,i=r?t(r):``;n.title!==i&&(n.title=i)}};n();let r=new MutationObserver(n);return r.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-item-path`,`data-item-context-hover`]}),()=>r.disconnect()},Nr=[j,k.length],t[210]=k.length,t[211]=j,t[212]=Mr,t[213]=Nr):(Mr=t[212],Nr=t[213]),(0,Q.useEffect)(Mr,Nr);let Pr,Fr;t[214]!==k.length||t[215]!==j?(Pr=()=>{if(j||k.length===0)return;let e=it.current?.querySelector(uz)?.shadowRoot;if(!e)return;let t=()=>OJ(e);t();let n=new MutationObserver(t);return n.observe(e,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:[`data-item-path`]}),()=>n.disconnect()},Fr=[j,k.length],t[214]=k.length,t[215]=j,t[216]=Pr,t[217]=Fr):(Pr=t[216],Fr=t[217]),(0,Q.useEffect)(Pr,Fr);let Ir,Lr;t[218]!==k.length||t[219]!==j?(Ir=()=>{if(j||k.length===0)return;let e=it.current?.querySelector(uz)?.shadowRoot;if(!e)return;let t=()=>KJ(e);t();let n=new MutationObserver(t);return n.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-item-path`]}),()=>n.disconnect()},Lr=[j,k.length],t[218]=k.length,t[219]=j,t[220]=Ir,t[221]=Lr):(Ir=t[220],Lr=t[221]),(0,Q.useEffect)(Ir,Lr);let Rr;t[222]===Symbol.for(`react.memo_cache_sentinel`)?(Rr={folderCount:0,expandedCount:0},t[222]=Rr):Rr=t[222];let zr=(0,Q.useRef)(Rr),Br=(0,Q.useRef)(Sr),Vr=(0,Q.useRef)(br),Hr;t[223]===Sr?Hr=t[224]:(Hr=()=>{Br.current=Sr,Vr.current=br},t[223]=Sr,t[224]=Hr),(0,Q.useEffect)(Hr);let Ur,Wr;t[225]===$t?(Ur=t[226],Wr=t[227]):(Ur=()=>({startCreating(e,t){Br.current(e,t)},startCreatingFromTemplate(e){Vr.current(e)},createFromTemplate(e,t){Br.current(`file`,e,{template:t})},expandAll(){(0,Q.startTransition)(()=>{for(let e of un.current){let t=mY($t.getItem(e));t&&t.expand()}})},collapseAll(){let e=new Set(Ee.current);(0,Q.startTransition)(()=>{for(let t of[...un.current].reverse()){if(e.has(t))continue;let n=mY($t.getItem(t));n&&n.collapse()}})},getFolderState(){let e=un.current,t=0;for(let n of e)mY($t.getItem(n))?.isExpanded()&&t++;let n=e.length,r=zr.current;if(r.folderCount===n&&r.expandedCount===t)return r;let i={folderCount:n,expandedCount:t};return zr.current=i,i},isCreationTargetCleared(){return ue.current},clearCreationTarget(){le(!0)},subscribe(e){fe.current.add(e);let t=$t.subscribe(e);return()=>{fe.current.delete(e),t()}}}),Wr=[$t],t[225]=$t,t[226]=Ur,t[227]=Wr),(0,Q.useImperativeHandle)(n,Ur,Wr);let Gr;t[228]!==Rn||t[229]!==u||t[230]!==c||t[231]!==$t?(Gr=async function(e,t,n){let r=NX(e,pe.current,un.current),i=De.current;i&&e.some(e=>PX(e,i))&&(i.kind===`file`?r.docNames.add(i.createdPath):r.folderPaths.add(i.createdPath),Rn(i));let a=new Set([...r.docNames,...t]),o=new Set([...r.folderPaths,...n]),s=new Set([...r.assetPaths,...e.filter(tZ).map(eZ)]);c([...[...a].map($X),...[...o].map(QX),...[...s].map(ZX)],{force:!0}),await Promise.all([...a].map(e=>u(e)));for(let t of e){let e=t.kind===`folder`?xd(t.path):t.kind===`asset`?t.path:Cd(t.path,t.docExt);$t.getItem(e)&&$t.remove(e,t.kind===`folder`?{recursive:!0}:void 0)}A(e=>{let t=iF(e,[...a],void 0,[...s]);for(let e of o)t=iF(t,[],e);return On(t),t}),Il([`files`,`backlinks`,`graph`])},t[228]=Rn,t[229]=u,t[230]=c,t[231]=$t,t[232]=Gr):Gr=t[232];let Kr=Gr,qr;t[233]!==i||t[234]!==Kr?(qr=async function(e){let t=[],n=[],r=[];for(let a of e){let e=a.kind;K(a.path);let o=await M(await fetch(`/api/delete-path`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({kind:e,path:a.path})}),i({id:`7JtSLi`}));if(!o.ok)return r.length>0&&await Kr(r,t,n),ol.error(o.title),!1;let s=W(ba,o.body,`delete-path`,{deletedDocNames:[]});t.push(...s.deletedDocNames),e===`folder`&&n.push(a.path),r.push(a)}return await Kr(r,t,n),!0},t[233]=i,t[234]=Kr,t[235]=qr):qr=t[235];let Jr=qr,Yr;t[236]===Symbol.for(`react.memo_cache_sentinel`)?(Yr=async function(e,t,n){let r=[],i=[];for(let a of e){K(a.path);let e=lF(a,n),o=await t.shell.trashItem(e);o.ok?r.push(a):i.push({kind:a.kind,path:a.path,name:a.name,reason:sY(o.reason),detail:o.detail})}return{trashed:r,failed:i}},t[236]=Yr):Yr=t[236];let Xr=Yr,Zr;t[237]===i?Zr=t[238]:(Zr=async function(e){let t=[],n=[],r=[];for(let a of e){let e=a.kind;try{let o=await M(await fetch(`/api/trash/cleanup`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({kind:e,path:a.path})}),i({id:`DVh_Tb`}));if(!o.ok){console.warn(`[FileTree] trash-cleanup failed`,{target:`${a.kind}:${a.path}`,reason:o.title}),r.push({target:a,reason:o.title});continue}let s=W(Fa,o.body,`trash-cleanup`,{deletedDocNames:[]});t.push(...s.deletedDocNames),e===`folder`&&n.push(a.path)}catch(e){let t=e;console.warn(`[FileTree] trash-cleanup threw`,{target:`${a.kind}:${a.path}`,err:t}),r.push({target:a,reason:i({id:`r4R7AZ`})})}}if(r.length>0){let e=r.length;ol.error(i({id:`IrB5AK`,values:{failedCount:e}}),{description:i({id:`vEJDlt`})})}return r.length===e.length&&e.length>0?null:{deletedDocNames:t,deletedFolderPaths:n}},t[237]=i,t[238]=Zr);let Qr=Zr,$r;t[239]!==i||t[240]!==re||t[241]!==Kr||t[242]!==Jr||t[243]!==Qr||t[244]!==vn||t[245]!==oe?($r=async function(e){let t=e.filter(XX).map(e=>aF(e,pe.current)),n=t[0];if(!n)return;let r=re.filter(e=>t.some(t=>{if(t.kind===`file`){let n=`${t.path}${t.docExt??`.md`}`;return e.file===n}return t.kind===`folder`?e.file.startsWith(`${t.path}/`):!1}));if(r.length>0){let e=r.slice(0,3).map(YX),t=r.length>e.length?`, +${r.length-e.length} more`:``;ol.error(`Cannot delete files with unresolved conflicts`,{description:`Resolve the conflict on ${e.join(`, `)}${t} before deleting.`});return}K(n.path),ee(null);let a=typeof window<`u`?window.okDesktop:void 0;try{if(a&&oe){let{trashed:e,failed:n}=await Xr(t,a,oe);if(e.length>0){let t=await Qr(e);t?await Kr(e,t.deletedDocNames,t.deletedFolderPaths):await Kr(e,e.filter(JX).map(qX),e.filter(KX).map(GX))}n.length>0&&ne({failed:n,originalTargets:[...t]}),K(null)}else{let e=await Jr(t);K(null),e||vn()}}catch(e){let t=e,n=t instanceof Error?t.message:String(t);console.warn(`[FileTree] delete failed:`,t),ol.error(i({id:`0eHrMb`}),{description:n}),K(null),vn()}},t[239]=i,t[240]=re,t[241]=Kr,t[242]=Jr,t[243]=Qr,t[244]=vn,t[245]=oe,t[246]=$r):$r=t[246];let ei=$r,ti;t[247]!==i||t[248]!==Jr||t[249]!==vn||t[250]!==te?(ti=async function(){if(!te)return;let e=new Set(te.failed.map(WX)),t=te.originalTargets.filter(t=>e.has(`${t.kind}:${t.path}`));if(ne(null),t.length!==0){K(t[0]?.path??null);try{let e=await Jr(t);K(null),e||vn()}catch(e){let t=e,n=t instanceof Error?t.message:String(t);console.warn(`[FileTree] hard-delete fallback failed:`,t),ol.error(i({id:`0eHrMb`}),{description:n}),K(null),vn()}}},t[247]=i,t[248]=Jr,t[249]=vn,t[250]=te,t[251]=ti):ti=t[251];let ni=ti,ri;t[252]!==ei||t[253]!==te?(ri=async function(){if(!te)return;let e=new Set(te.failed.map(UX)),t=te.originalTargets.filter(t=>e.has(`${t.kind}:${t.path}`));ne(null),await ei(t)},t[252]=ei,t[253]=te,t[254]=ri):ri=t[254];let ii=ri,ai=(0,Q.useRef)(ei),oi;t[255]===ei?oi=t[256]:(oi=()=>{ai.current=ei},t[255]=ei,t[256]=oi),(0,Q.useEffect)(oi);let si,ci;t[257]===Symbol.for(`react.memo_cache_sentinel`)?(si=()=>SY(e=>{if(e.kind===`doc`||e.kind===`folder-index`){let t=e.docName,n=pe.current.find(e=>Sl(e)&&e.docName===t);ai.current([{kind:`file`,path:t,name:t.split(`/`).pop()??t,docExt:n?.docExt}]);return}if(e.kind===`folder`){ai.current([{kind:`folder`,path:e.folderPath,name:e.folderPath.split(`/`).pop()??e.folderPath}]);return}if(e.kind===`asset`){ai.current([{kind:`asset`,path:e.assetPath,name:e.assetPath.split(`/`).pop()??e.assetPath}]);return}console.warn(JSON.stringify({event:`file-tree-menu-action-delete-unsupported-kind`,kind:e.kind}))}),ci=[],t[257]=si,t[258]=ci):(si=t[257],ci=t[258]),(0,Q.useEffect)(si,ci);let li,ui;t[259]===Symbol.for(`react.memo_cache_sentinel`)?(li=()=>EY(e=>{if(e.kind===`doc`||e.kind===`folder-index`){let t=e.docName,n=pe.current.find(e=>Sl(e)&&e.docName===t);Nn.current({kind:`file`,path:t,name:t.split(`/`).pop()??t,docExt:n?.docExt});return}if(e.kind===`folder`){Nn.current({kind:`folder`,path:e.folderPath,name:e.folderPath.split(`/`).pop()??e.folderPath});return}console.warn(JSON.stringify({event:`file-tree-menu-action-duplicate-unsupported-kind`,kind:e.kind}))}),ui=[],t[259]=li,t[260]=ui):(li=t[259],ui=t[260]),(0,Q.useEffect)(li,ui);let di,fi;t[261]===$t?(di=t[262],fi=t[263]):(di=()=>wY(e=>{if(e.kind===`doc`||e.kind===`folder-index`){let t=e.docName,n=Cd(t,pe.current.find(e=>Sl(e)&&e.docName===t)?.docExt);$t.startRenaming(n);return}if(e.kind===`folder`){$t.startRenaming(e.folderPath);return}if(e.kind===`asset`){$t.startRenaming(e.assetPath);return}console.warn(JSON.stringify({event:`file-tree-menu-action-rename-unsupported-kind`,kind:e.kind}))}),fi=[$t],t[261]=$t,t[262]=di,t[263]=fi),(0,Q.useEffect)(di,fi);let pi;t[264]===Symbol.for(`react.memo_cache_sentinel`)?(pi=function(){let e=Ae.current;e&&YY(e),Ae.current=null},t[264]=pi):pi=t[264];let mi=pi,hi;t[265]===Symbol.for(`react.memo_cache_sentinel`)?(hi=function(e){let t=CX(e);if(!t)return!1;let n=it.current?.querySelector(uz)?.shadowRoot;if(!n)return!1;for(let e of n.querySelectorAll(`[data-item-path]`))if(e.dataset.itemPath===t)return!0;return!1},t[265]=hi):hi=t[265];let gi=hi,_i;t[266]===h?_i=t[267]:(_i=function(e){let t=gZ(e.nativeEvent);if(!t||t.endsWith(`/`)){mi();return}let n=pe.current.find(e=>dd(e)===t);if(n&&Nl(n)){mi();return}let r=n&&Sl(n)?n.docName:Od(t,pe.current);if(n&&Sl(n)&&ua(n.size)){mi();return}Ae.current!==r&&(mi(),Ae.current=r,JY(r,e=>h(e)))},t[266]=h,t[267]=_i);let vi=_i,yi;t[268]!==_e||t[269]!==$t||t[270]!==D||t[271]!==T?(yi=function(e){if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=_Z(e.nativeEvent);if(!t){bZ(e.nativeEvent)&&le(!0);return}let n=t.getAttribute(`aria-selected`)===`true`,r=t.dataset.itemPath;if(!r)return;let i=t.dataset.itemType===`folder`?xd(r):r;if(t.dataset.itemType===`folder`){let t=kd(i),r=mY($t.getItem(i));if(!n){e.preventDefault(),e.stopPropagation(),r&&!r.isExpanded()&&r.expand(),queueMicrotask(()=>D(t));return}if($t.getSelectedPaths().length!==1||window.location.hash===Gl(t))return;e.preventDefault(),e.stopPropagation(),r&&!r.isExpanded()&&r.expand(),queueMicrotask(()=>D(t));return}if(!n){if(wX(i,on.current)||gi(i)){he.current=i,setTimeout(()=>T(i,void 0,{registerPage:!0}),0);return}queueMicrotask(()=>_e(i));return}let a=Od(i,pe.current);$t.getSelectedPaths().length===1&&window.location.hash!==$l(a)&&queueMicrotask(()=>_e(i))},t[268]=_e,t[269]=$t,t[270]=D,t[271]=T,t[272]=yi):yi=t[272];let bi=yi,xi;t[273]===Symbol.for(`react.memo_cache_sentinel`)?(xi=function(e){vd(e.nativeEvent)&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect=`copy`,ft(!0))},t[273]=xi):xi=t[273];let Si=xi,Ci;t[274]===Symbol.for(`react.memo_cache_sentinel`)?(Ci=function(e){let t=e.relatedTarget;t instanceof Node&&e.currentTarget.contains(t)||ft(!1)},t[274]=Ci):Ci=t[274];let wi=Ci,Ei;t[275]===vr?Ei=t[276]:(Ei=function(e){if(!vd(e.nativeEvent))return;let t=fd(e.nativeEvent);t.length!==0&&(e.preventDefault(),e.stopPropagation(),ft(!1),vr(t,``,mX))},t[275]=vr,t[276]=Ei);let Di=Ei;if(j){let e;return t[277]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(SZ,{}),t[277]=e):e=t[277],e}let Oi;t[278]!==i||t[279]!==I||t[280]!==R?(Oi=I?i(R?{id:`H-vDm3`}:{id:`09Tv5j`}):null,t[278]=i,t[279]=I,t[280]=R,t[281]=Oi):Oi=t[281];let ki=Oi;if(k.length===0){if(ki!==null){let e;return t[282]===ki?e=t[283]:(e=(0,Z.jsx)(`div`,{className:`flex flex-1 items-center justify-center py-8`,children:(0,Z.jsx)(`span`,{role:`status`,className:`select-none text-sidebar-foreground/50 text-sm`,children:ki})}),t[282]=ki,t[283]=e),e}if(P){let e;return t[284]===P?e=t[285]:(e=(0,Z.jsx)(`div`,{className:`flex flex-1 items-center justify-center py-8`,children:(0,Z.jsx)(`span`,{role:`alert`,className:`select-none text-sidebar-foreground/50 text-sm`,children:P})}),t[284]=P,t[285]=e),e}if(wl({visibility:{showHiddenFiles:Vt,showOnlyMarkdownFiles:Ht},unfilteredRootEntryCount:H,knownPageCount:x.size})===`filtered-to-zero`){let e;return t[286]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(vJ,{}),t[286]=e):e=t[286],e}let e;t[287]===i?e=t[288]:(e=i({id:`5ZB7XC`}),t[287]=i,t[288]=e);let n=dt&&`bg-primary/5 ring-2 ring-primary/70 ring-inset`,r;t[289]===n?r=t[290]:(r=X(`flex flex-1 flex-col items-center justify-center gap-3 rounded-md py-8`,n),t[289]=n,t[290]=r);let a;t[291]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(`span`,{className:`select-none text-sidebar-foreground/30 text-sm`,children:(0,Z.jsx)(J,{id:`xiv-dW`})}),t[291]=a):a=t[291];let o;t[292]===Sr?o=t[293]:(o=()=>Sr(`file`,``),t[292]=Sr,t[293]=o);let s;t[294]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(J,{id:`6ibbCg`}),t[294]=s):s=t[294];let c;t[295]===o?c=t[296]:(c=(0,Z.jsx)(Y,{variant:`link`,size:`sm`,className:`font-mono uppercase`,onClick:o,children:s}),t[295]=o,t[296]=c);let l;return t[297]!==Di||t[298]!==e||t[299]!==r||t[300]!==c?(l=(0,Z.jsxs)(`section`,{"aria-label":e,className:r,onDragOver:Si,onDragLeave:wi,onDrop:Di,children:[a,c]}),t[297]=Di,t[298]=e,t[299]=r,t[300]=c,t[301]=l):l=t[301],l}let Ai=G!==null,ji=q?.targets[0]??null,Mi=null;if(B!==null){let e;if(t[302]!==a.locale||t[303]!==B){let n=new Intl.NumberFormat(a.locale).format(B);e=ml._({id:`LuoJWu`,values:{truncatedShownCount:B,formattedCount:n}}),t[302]=a.locale,t[303]=B,t[304]=e}else e=t[304];Mi=e}let Ni;t[305]!==P||t[306]!==ki||t[307]!==Mi?(Ni=(P||ki!==null||Mi!==null)&&(0,Z.jsxs)(Z.Fragment,{children:[ki===null?P&&(0,Z.jsx)(wZ,{kind:`error`,children:P}):(0,Z.jsx)(wZ,{kind:`reconnecting`,children:ki}),Mi!==null&&(0,Z.jsx)(wZ,{kind:`info`,children:Mi})]}),t[305]=P,t[306]=ki,t[307]=Mi,t[308]=Ni):Ni=t[308];let Pi;t[309]===v?Pi=t[310]:(Pi=CJ(v),t[309]=v,t[310]=Pi);let Fi=ce?``:void 0,Ii;t[311]===Fi?Ii=t[312]:(Ii={[_X]:Fi},t[311]=Fi,t[312]=Ii);let Li;t[313]!==Ai||t[314]!==Se||t[315]!==Er||t[316]!==k||t[317]!==wr||t[318]!==ln||t[319]!==Mn||t[320]!==Rt||t[321]!==$t||t[322]!==zt||t[323]!==Sr||t[324]!==oe?(Li=(e,t)=>(0,Z.jsx)(FX,{item:e,context:t,anyActionBusy:Ai,workspace:oe,handoff:Rt,model:$t,okignoreBinding:zt,onStartCreating:Sr,onCreateFromTemplate:(e,t)=>Sr(`file`,e,{template:t}),onDuplicate:Mn,onDelete:e=>ee({targets:e}),onExpandSubtree:wr,onCollapseSubtree:Er,folderTreePaths:ln,isAsset:Se.has(e.path),documents:k}),t[313]=Ai,t[314]=Se,t[315]=Er,t[316]=k,t[317]=wr,t[318]=ln,t[319]=Mn,t[320]=Rt,t[321]=$t,t[322]=zt,t[323]=Sr,t[324]=oe,t[325]=Li):Li=t[325];let Ri;t[326]!==bi||t[327]!==vi||t[328]!==$t||t[329]!==Ni||t[330]!==Pi||t[331]!==Ii||t[332]!==Li?(Ri=(0,Z.jsx)(`div`,{ref:it,className:`flex min-h-0 flex-1 flex-col`,children:(0,Z.jsx)(gJ,{header:Ni,model:$t,style:Pi,...Ii,onClickCapture:bi,onMouseMove:vi,onMouseLeave:mi,renderContextMenu:Li})}),t[326]=bi,t[327]=vi,t[328]=$t,t[329]=Ni,t[330]=Pi,t[331]=Ii,t[332]=Li,t[333]=Ri):Ri=t[333];let zi=!!q,Bi;t[334]===G?Bi=t[335]:(Bi=e=>{!e&&!G&&ee(null)},t[334]=G,t[335]=Bi);let Vi;t[336]!==i||t[337]!==G||t[338]!==q||t[339]!==ei||t[340]!==ji?(Vi=q&&ji&&(0,Z.jsx)(Qs,{...(()=>{let e=rY(typeof window<`u`&&window.okDesktop!=null?`electron`:`web`,q.targets);if(e)return{customTitle:e.title,customDescription:``,customDetail:e.detail,customConfirmLabel:e.confirmLabel,customConfirmLabelBusy:e.confirmLabelBusy,children:e.listedTargets?(0,Z.jsx)(`ul`,{className:`flex flex-col gap-1 font-mono text-foreground text-xs`,children:e.listedTargets.map(HX)}):null};let t=q.targets.length,n=ji.name;return{itemName:t===1?ji.kind===`folder`?`${ji.name}/`:ji.kind===`file`?`${ji.name}${ji.docExt??`.md`}`:ji.name:void 0,customTitle:t>1?i({id:`abiHje`}):void 0,customDescription:t>1?i({id:`WMIKXK`,values:{targetCount:t}}):ji.kind===`folder`?i({id:`a5W0q0`,values:{folderName:n}}):void 0}})(),isSubmitting:G!==null,onDelete:()=>ei(q.targets)}),t[336]=i,t[337]=G,t[338]=q,t[339]=ei,t[340]=ji,t[341]=Vi):Vi=t[341];let Hi;t[342]!==zi||t[343]!==Bi||t[344]!==Vi?(Hi=(0,Z.jsx)(Fn,{open:zi,onOpenChange:Bi,children:Vi}),t[342]=zi,t[343]=Bi,t[344]=Vi,t[345]=Hi):Hi=t[345];let Ui=!!te,Wi;t[346]===G?Wi=t[347]:(Wi=e=>{!e&&!G&&ne(null)},t[346]=G,t[347]=Wi);let Gi;t[348]!==G||t[349]!==ni||t[350]!==ii||t[351]!==te?(Gi=te&&(0,Z.jsx)(dY,{failedTargets:te.failed,isSubmitting:G!==null,onDeletePermanently:ni,onRetry:ii,onCancel:()=>ne(null)}),t[348]=G,t[349]=ni,t[350]=ii,t[351]=te,t[352]=Gi):Gi=t[352];let Ki;t[353]!==Ui||t[354]!==Wi||t[355]!==Gi?(Ki=(0,Z.jsx)(Fn,{open:Ui,onOpenChange:Wi,children:Gi}),t[353]=Ui,t[354]=Wi,t[355]=Gi,t[356]=Ki):Ki=t[356];let qi=ie!==null,Ji;t[357]===Symbol.for(`react.memo_cache_sentinel`)?(Ji=e=>{e||ae(null)},t[357]=Ji):Ji=t[357];let Yi=ie?.parentDir??``,Xi;t[358]!==qi||t[359]!==Yi?(Xi=(0,Z.jsx)(jg,{open:qi,onOpenChange:Ji,kind:`file`,initialDir:Yi,defaultToTemplate:!0}),t[358]=qi,t[359]=Yi,t[360]=Xi):Xi=t[360];let Zi;return t[361]!==Ri||t[362]!==Hi||t[363]!==Ki||t[364]!==Xi?(Zi=(0,Z.jsxs)(Z.Fragment,{children:[Ri,Hi,Ki,Xi]}),t[361]=Ri,t[362]=Hi,t[363]=Ki,t[364]=Xi,t[365]=Zi):Zi=t[365],Zi}function HX(e){return(0,Z.jsx)(`li`,{"data-testid":`delete-target-row`,children:iY(e)},`${e.kind}:${e.path}`)}function UX(e){return`${e.kind}:${e.path}`}function WX(e){return`${e.kind}:${e.path}`}function GX(e){return e.path}function KX(e){return e.kind===`folder`}function qX(e){return e.path}function JX(e){return e.kind===`file`}function YX(e){return e.file}function XX(e){return!jl(e.path)}function ZX(e){return V(e)}function QX(e){return mt(e)}function $X(e){return o(e)}function eZ(e){return e.path}function tZ(e){return e.kind===`asset`}function nZ(e){return e.endsWith(`/`)?e.slice(0,-1):e}function rZ(e){return!!e}function iZ(e){console.warn(`[FileTree] /api/workspace fetch failed:`,e)}function aZ(e){console.warn(`[FileTree] unmount cleanup failed:`,e)}function oZ(e){ol.error(e)}function sZ(){}function cZ(e){return ol.error(e)}function lZ(){}function uZ(){}function dZ(){}function fZ(){}function pZ(){}async function mZ(){}function hZ(e){return dd(e)}function gZ(e){return _Z(e)?.dataset.itemPath??null}function _Z(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&t.dataset.itemPath)return t;return null}function vZ(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&t.matches(`[data-file-tree-virtualized-root]`))return t;return null}function yZ(e){let t=_Z(e);if(t){let e=t.dataset.itemPath;if(!e)return null;let n=t.dataset.itemType===`folder`,r=pd(e,n);return{parentDir:r,row:t,root:null,busyPath:n?xd(r):e}}return bZ(e)?{parentDir:``,row:null,root:vZ(e),busyPath:mX}:null}function bZ(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&t.matches(`[data-file-tree-virtualized-scroll]`))return!0;return!1}var xZ=[`w-3/4`,`w-2/3`,`w-4/5`,`w-1/2`,`w-3/5`,`w-2/3`];function SZ(){let e=(0,$.c)(5),{_:t}=kt(),n;e[0]===t?n=e[1]:(n=t({id:`5Tk8Fb`}),e[0]=t,e[1]=n);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=xZ.map(CZ),e[2]=r):r=e[2];let i;return e[3]===n?i=e[4]:(i=(0,Z.jsx)(`div`,{className:`flex flex-1 flex-col gap-1 px-2 py-2`,role:`status`,"aria-busy":`true`,"aria-label":n,children:r}),e[3]=n,e[4]=i),i}function CZ(e,t){return(0,Z.jsxs)(`div`,{className:`flex h-6 items-center gap-2`,children:[(0,Z.jsx)(iu,{className:`h-3 w-3 shrink-0 rounded-sm`}),(0,Z.jsx)(iu,{className:`h-3 ${e}`})]},t)}function wZ(e){let t=(0,$.c)(14),{kind:n,children:r}=e,i=n===`error`?Rc:n===`reconnecting`?Ic:Nc,a=n===`error`?`alert`:`status`,o=n===`error`?`text-destructive`:`text-muted-foreground`,s;t[0]===o?s=t[1]:(s=X(`mx-2 mb-1 flex items-start gap-1.5 rounded-md bg-muted/50 px-2 py-1.5 text-xs leading-snug`,o),t[0]=o,t[1]=s);let c=n===`reconnecting`&&`animate-spin motion-reduce:animate-none`,l;t[2]===c?l=t[3]:(l=X(`mt-0.5 size-3.5 shrink-0`,c),t[2]=c,t[3]=l);let u;t[4]!==i||t[5]!==l?(u=(0,Z.jsx)(i,{"aria-hidden":`true`,className:l}),t[4]=i,t[5]=l,t[6]=u):u=t[6];let d;t[7]===r?d=t[8]:(d=(0,Z.jsx)(`span`,{className:`min-w-0`,children:r}),t[7]=r,t[8]=d);let f;return t[9]!==a||t[10]!==s||t[11]!==u||t[12]!==d?(f=(0,Z.jsxs)(`span`,{role:a,className:s,children:[u,d]}),t[9]=a,t[10]=s,t[11]=u,t[12]=d,t[13]=f):f=t[13],f}function TZ(e){return e?ml._({id:`wTcjov`}):null}function EZ(e){let t=(0,$.c)(23),{_:n}=kt(),r=fc(),i=Ws();if(r)return null;let{input:a,installStates:o,dispatch:s}=e,c=a===null,l,u,d,f,p,m;if(t[0]!==n||t[1]!==s||t[2]!==a||t[3]!==c||t[4]!==o||t[5]!==i){m=Symbol.for(`react.early_return_sentinel`);bb0:{let e=TZ(c),r;t[12]===o?r=t[13]:(r=e=>o[e.id]?.installed===!0,t[12]=o,t[13]=r);let h=zs.filter(r),g=h.length>0,_=i!==null;if(!g&&!_){m=null;break bb0}let v=i?Ys(i.installedClis):[];u=vF,t[14]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Z.jsxs)(xF,{children:[(0,Z.jsx)(lc,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`O7_W_a`})]}),t[14]=p):p=t[14],l=SF,d=_?(0,Z.jsxs)(_F,{"aria-label":n({id:`ALhMYW`}),children:[(0,Z.jsx)(wF,{children:(0,Z.jsx)(J,{id:`ALhMYW`})}),v.map(t=>{let{displayName:r}=Ua[t];return(0,Z.jsxs)(bF,{onSelect:()=>{a!==null&&i.launchInTerminal(a,t)},disabled:c,"data-testid":`empty-space-open-in-terminal-${t}`,"aria-label":n(e?{id:`AIn2Yv`,values:{displayName:r,hint:e}}:{id:`QYfQdv`,values:{displayName:r}}),children:[(0,Z.jsx)(Gs,{id:Us(t),"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`flex-1`,children:r}),e?(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t)})]}):null,f=g?(0,Z.jsxs)(Z.Fragment,{children:[_?(0,Z.jsx)(TF,{}):null,(0,Z.jsxs)(_F,{"aria-label":n({id:`BBqGS9`}),children:[(0,Z.jsx)(wF,{children:(0,Z.jsx)(J,{id:`BBqGS9`})}),h.map(t=>{let r=!c,{displayName:i}=t,o=n(e?{id:`1ZpfyB`,values:{displayName:i,hint:e}}:{id:`WqLq6M`,values:{displayName:i}});return(0,Z.jsxs)(bF,{disabled:!r,onSelect:()=>{a&&s(t.id,a)},"data-testid":`empty-space-open-in-${t.id}`,"aria-label":o,children:[(0,Z.jsx)(Gs,{id:t.id,"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`flex-1`,children:t.displayName}),e?(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t.id)})]})]}):null}t[0]=n,t[1]=s,t[2]=a,t[3]=c,t[4]=o,t[5]=i,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p,t[11]=m}else l=t[6],u=t[7],d=t[8],f=t[9],p=t[10],m=t[11];if(m!==Symbol.for(`react.early_return_sentinel`))return m;let h;t[15]!==l||t[16]!==d||t[17]!==f?(h=(0,Z.jsxs)(l,{children:[d,f]}),t[15]=l,t[16]=d,t[17]=f,t[18]=h):h=t[18];let g;return t[19]!==u||t[20]!==p||t[21]!==h?(g=(0,Z.jsxs)(u,{children:[p,h]}),t[19]=u,t[20]=p,t[21]=h,t[22]=g):g=t[22],g}async function DZ(e){try{let t=await e.project.listRecent(),n=e.config.projectPath;if(t.some(e=>e.path!==n))return null;let r=await $T();return e.config.freshlyCreated?r:r===0?0:null}catch(e){return console.warn(`[onboarding-card-visible] fresh-project probe failed; suppressing card`,e),null}}function OZ(e){let t=(0,$.c)(4),n=e===void 0?YT:e,{initialized:r,dismissed:i,completed:a}=(0,Q.useSyncExternalStore)(n.subscribe,n.getSnapshot,n.getSnapshot),o=i||a,s=!r&&!o,c,l;return t[0]!==s||t[1]!==n?(c=()=>{if(!s)return;let e=window.okDesktop;if(e==null)return;let t=!1;return DZ(e).then(e=>{!t&&e!==null&&n.activate(e)}),()=>{t=!0}},l=[s,n],t[0]=s,t[1]=n,t[2]=c,t[3]=l):(c=t[2],l=t[3]),(0,Q.useEffect)(c,l),r&&!o}function kZ(e){let t=(0,$.c)(3),n=e===void 0?YT:e,r,i;t[0]===n?(r=t[1],i=t[2]):(r=()=>{if(n.getSnapshot().steps.file)return;let e=Ll(e=>{e.includes(`files`)&&eE(n)});return eE(n),e},i=[n],t[0]=n,t[1]=r,t[2]=i),(0,Q.useEffect)(r,i)}var AZ=3,jZ=5200,MZ=1500,NZ=220;function PZ(e){let t=(0,$.c)(14),{complete:n,label:r,shortcutId:i}=e,a;t[0]===n?a=t[1]:(a=(0,Z.jsx)(hr,{checked:n,disabled:!0,"aria-hidden":!0,tabIndex:-1,className:`pointer-events-none opacity-100 disabled:opacity-100`}),t[0]=n,t[1]=a);let o=n?`flex-1 text-muted-foreground/60`:`flex-1`,s;t[2]===n?s=t[3]:(s=n?(0,Z.jsxs)(`span`,{className:`sr-only`,children:[(0,Z.jsx)(J,{id:`Qj4RL5`}),` `]}):null,t[2]=n,t[3]=s);let c;t[4]!==r||t[5]!==o||t[6]!==s?(c=(0,Z.jsxs)(`span`,{className:o,children:[s,r]}),t[4]=r,t[5]=o,t[6]=s,t[7]=c):c=t[7];let l;t[8]===i?l=t[9]:(l=i?(0,Z.jsx)(Re,{children:au(i)}):null,t[8]=i,t[9]=l);let u;return t[10]!==a||t[11]!==c||t[12]!==l?(u=(0,Z.jsxs)(`li`,{className:`flex items-center gap-2 py-0.5 text-sm`,children:[a,c,l]}),t[10]=a,t[11]=c,t[12]=l,t[13]=u):u=t[13],u}function FZ(e){let t=(0,$.c)(24),{store:n,lingerMs:r}=e,i=n===void 0?YT:n,a=r===void 0?jZ:r,{_:o}=kt(),{steps:s}=XT(i);kZ(i);let[c,l]=(0,Q.useState)(0),[u,d]=(0,Q.useState)(!1),f=1+ +!!s.file+ +!!s.askedAi,p=f===AZ,m,h;t[0]!==p||t[1]!==a?(m=()=>{if(!p)return;l(LZ);let e=setInterval(()=>l(IZ),MZ),t=setTimeout(()=>{clearInterval(e),d(!0)},a);return()=>{clearInterval(e),clearTimeout(t)}},h=[p,a],t[0]=p,t[1]=a,t[2]=m,t[3]=h):(m=t[2],h=t[3]),(0,Q.useEffect)(m,h);let g,_;t[4]!==u||t[5]!==i?(g=()=>{if(!u)return;let e=setTimeout(()=>i.markCompleted(),NZ);return()=>clearTimeout(e)},_=[u,i],t[4]=u,t[5]=i,t[6]=g,t[7]=_):(g=t[6],_=t[7]),(0,Q.useEffect)(g,_);let v;t[8]!==o||t[9]!==p?(v=p?o({id:`7jIIFX`}):``,t[8]=o,t[9]=p,t[10]=v):v=t[10];let y;t[11]===v?y=t[12]:(y=(0,Z.jsx)(`div`,{className:`sr-only`,role:`status`,"aria-live":`polite`,children:v}),t[11]=v,t[12]=y);let b;t[13]!==p||t[14]!==c||t[15]!==f||t[16]!==u||t[17]!==s.askedAi||t[18]!==s.file||t[19]!==i?(b=p?(0,Z.jsxs)(`section`,{"aria-hidden":!0,className:X(`mx-2 mb-1 flex items-center gap-3 rounded-lg border bg-card px-4 py-3 text-card-foreground`,`motion-reduce:animate-none motion-reduce:duration-0`,u?`animate-out fade-out-0 zoom-out-95 fill-mode-forwards duration-200`:`animate-in fade-in-0 zoom-in-95 duration-300`),children:[(0,Z.jsx)(yf,{size:36,celebrateSignal:c}),(0,Z.jsx)(`span`,{className:`font-medium text-sm`,children:(0,Z.jsx)(J,{id:`7jIIFX`})})]}):(0,Z.jsxs)(`section`,{"aria-labelledby":`onboarding-card-heading`,className:`mx-2 mb-1 rounded-lg border bg-card px-4 py-3 text-card-foreground`,children:[(0,Z.jsxs)(`header`,{className:`mb-3 flex items-center justify-between`,children:[(0,Z.jsx)(`h2`,{id:`onboarding-card-heading`,className:`font-medium text-sm`,children:(0,Z.jsx)(J,{id:`Y1QMlM`})}),(0,Z.jsx)(`span`,{className:`text-muted-foreground/60 text-xs tabular-nums`,children:`${f} / ${AZ}`})]}),(0,Z.jsxs)(`ul`,{className:`flex flex-col gap-2`,children:[(0,Z.jsx)(PZ,{complete:!0,label:(0,Z.jsx)(J,{id:`4E9jPa`})}),(0,Z.jsx)(PZ,{complete:s.file,label:(0,Z.jsx)(J,{id:`6ibbCg`}),shortcutId:`new-item`}),(0,Z.jsx)(PZ,{complete:s.askedAi,label:(0,Z.jsx)(J,{id:`xWEvuo`}),shortcutId:`open-ask-ai`})]}),(0,Z.jsx)(`footer`,{className:`-mb-1 mt-2 flex justify-end`,children:(0,Z.jsx)(Y,{type:`button`,variant:`ghost`,size:`sm`,className:`h-auto px-2 py-1 text-muted-foreground text-xs`,onClick:()=>i.dismiss(),children:(0,Z.jsx)(J,{id:`1QfxQT`})})})]}),t[13]=p,t[14]=c,t[15]=f,t[16]=u,t[17]=s.askedAi,t[18]=s.file,t[19]=i,t[20]=b):b=t[20];let x;return t[21]!==y||t[22]!==b?(x=(0,Z.jsxs)(Z.Fragment,{children:[y,b]}),t[21]=y,t[22]=b,t[23]=x):x=t[23],x}function IZ(e){return e+1}function LZ(e){return e+1}function RZ(){let e=(0,$.c)(1);if(!OZ())return null;let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(FZ,{}),e[0]=t):t=e[0],t}function zZ(e){return e===null?null:e.kind===`local`?e.name:e.ref}function BZ(e,t){if(e.length===0)return null;let n=`origin/${e}`;return t.includes(n)?n:t.find(t=>Pa(t)===e)??null}function VZ(e){switch(e){case`branch-exists`:return{id:`wzq9Rv`};case`already-checked-out`:return{id:`ljHjfg`};case`path-exists`:return{id:`mYzDD_`};case`invalid-branch`:return{id:`r-OJYm`};case`no-git`:return{id:`CFnavk`};case`helper-not-found`:return{id:`HqOPpj`};default:return{id:`-zA2E7`}}}function HZ(e){let t=(0,$.c)(71),{open:n,onOpenChange:r,bridge:i,currentBranch:a,branches:o,existingWorktreeBranches:s,remoteBranches:c,behindByBranch:l,initialBranchName:u}=e,d=o===void 0?[]:o,f=c===void 0?[]:c,p=u===void 0?``:u,{_:m}=kt(),h=(0,Q.useId)(),g=(0,Q.useId)(),_=(0,Q.useId)(),v=(0,Q.useId)(),y=(0,Q.useId)(),b=(0,Q.useId)(),[x,S]=(0,Q.useState)(``),C;t[0]===a?C=t[1]:(C=a===null?null:{kind:`local`,name:a},t[0]=a,t[1]=C);let[T,E]=(0,Q.useState)(C),[D,O]=(0,Q.useState)(!1),[k,A]=(0,Q.useState)(``),[j,M]=(0,Q.useState)(!1),[N,P]=(0,Q.useState)(null),F=(0,Q.useRef)(null),I=(0,Q.useRef)(null),L,R;t[2]!==a||t[3]!==p||t[4]!==n?(L=()=>{if(!n)return;S(p),E(a===null?null:{kind:`local`,name:a}),O(!1),A(``),M(!1),P(null);let e=requestAnimationFrame(()=>F.current?.focus());return()=>cancelAnimationFrame(e)},R=[n,a,p],t[2]=a,t[3]=p,t[4]=n,t[5]=L,t[6]=R):(L=t[5],R=t[6]),(0,Q.useEffect)(L,R);let z=x.trim(),B=!j&&z.length>0,V=z.length>0&&d.includes(z),H=V?null:BZ(z,f),U=H!==null,W=V||U,G=V&&(s?.has(z)??!1),K=d.filter(e=>e.toLowerCase().startsWith(z.toLowerCase())),q=!j&&K.length>0&&!W,ee=(a!==null&&!d.includes(a)?[a,...d]:d).map(qZ),te=f.map(KZ),ne=zZ(T),re=k.trim().toLowerCase(),ae=re===``?ee:ee.filter(e=>e.name.toLowerCase().includes(re)),oe=re===``?te:te.filter(e=>e.ref.toLowerCase().includes(re)),se=re!==``&&ae.length===0&&oe.length===0,ce=async function(e){if(e.preventDefault(),B){M(!0),P(null);try{let e=U?{branch:z,createBranch:!0,remoteRef:H}:V?{branch:z,createBranch:!1}:{branch:z,createBranch:!0,baseBranch:T?.kind===`local`?T.name:void 0,baseRef:T?.kind===`remote`?T.ref:void 0},t=await i.worktree.create(e);if(!t.ok){P(VZ(t.reason)),M(!1);return}Ru(),r(!1),await i.project.open({path:t.path,target:`new-window`,entryPoint:`worktree`})}catch(e){console.warn(`[NewWorktreeDialog] worktree create/open failed:`,e),ol.error(m({id:`vAYoCZ`})),M(!1)}}},le=Fn,ue;t[7]!==j||t[8]!==r?(ue=e=>{j||r(e)},t[7]=j,t[8]=r,t[9]=ue):ue=t[9];let de=jn,fe;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,Z.jsx)(An,{children:(0,Z.jsx)(J,{id:`DXd9LM`})}),t[10]=fe):fe=t[10];let pe;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,Z.jsxs)(Pn,{children:[fe,(0,Z.jsx)(kn,{children:(0,Z.jsx)(J,{id:`NEzPEh`})})]}),t[11]=pe):pe=t[11];let me=Mn,he;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,Z.jsx)(J,{id:`ng2Ibo`}),t[12]=he):he=t[12];let ge;t[13]===g?ge=t[14]:(ge=(0,Z.jsx)(ci,{htmlFor:g,children:he}),t[13]=g,t[14]=ge);let _e;t[15]===m?_e=t[16]:(_e=m({id:`IX_uXB`}),t[15]=m,t[16]=_e);let ve;t[17]===N?ve=t[18]:(ve=e=>{S(e.target.value),N!==null&&P(null)},t[17]=N,t[18]=ve);let ye=N!==null,be=N===null?y:`${y} ${b}`,Se;t[19]!==x||t[20]!==j||t[21]!==g||t[22]!==_e||t[23]!==ve||t[24]!==ye||t[25]!==be?(Se=(0,Z.jsx)(fl,{id:g,ref:F,value:x,placeholder:_e,onChange:ve,disabled:j,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-invalid":ye,"aria-describedby":be,"data-testid":`new-worktree-branch`}),t[19]=x,t[20]=j,t[21]=g,t[22]=_e,t[23]=ve,t[24]=ye,t[25]=be,t[26]=Se):Se=t[26];let Ce=z.length>0?(0,Z.jsxs)(`p`,{id:y,className:`flex items-start gap-1.5 text-1sm text-muted-foreground`,"data-testid":G?`new-worktree-mode-existing-worktree`:U?`new-worktree-mode-remote-checkout`:V?`new-worktree-mode-checkout`:`new-worktree-mode-create`,children:[G?(0,Z.jsx)(_c,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-amber-600 dark:text-amber-400`}):U?(0,Z.jsx)(Vi,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-violet-600 dark:text-violet-400`}):V?(0,Z.jsx)(Es,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-blue-600 dark:text-blue-400`}):(0,Z.jsx)(gt,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-green-600 dark:text-green-400`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1`,children:G?(0,Z.jsx)(J,{id:`QAi7Q9`,values:{trimmed:z},components:{0:(0,Z.jsx)(`code`,{className:`font-mono break-words`})}}):U?(0,Z.jsx)(J,{id:`oAGN8p`,values:{remoteCheckoutRef:H,trimmed:z},components:{0:(0,Z.jsx)(`code`,{className:`font-mono break-words`}),1:(0,Z.jsx)(`code`,{className:`font-mono break-words`}),2:(0,Z.jsx)(`code`,{className:`font-mono`})}}):V?(0,Z.jsx)(J,{id:`b4VvP-`,values:{trimmed:z},components:{0:(0,Z.jsx)(`code`,{className:`font-mono break-words`}),1:(0,Z.jsx)(`code`,{className:`font-mono`})}}):ne===null?(0,Z.jsx)(J,{id:`t4sFKC`,values:{trimmed:z},components:{0:(0,Z.jsx)(`code`,{className:`font-mono break-words`}),1:(0,Z.jsx)(`code`,{className:`font-mono`})}}):(0,Z.jsx)(J,{id:`dGAdpH`,values:{trimmed:z,currentBaseLabel:ne},components:{0:(0,Z.jsx)(`code`,{className:`font-mono break-words`}),1:(0,Z.jsx)(`code`,{className:`font-mono break-words`}),2:(0,Z.jsx)(`code`,{className:`font-mono`})}})})]}):null,we=q?(0,Z.jsx)(`div`,{className:`max-h-40 overflow-y-auto rounded-md border bg-popover p-1 shadow-xs`,"data-testid":`new-worktree-branch-list`,children:K.map(e=>(0,Z.jsxs)(Y,{type:`button`,variant:`ghost`,size:`sm`,tabIndex:-1,onClick:()=>{S(e),N!==null&&P(null),F.current?.focus()},"data-testid":`new-worktree-branch-option-${e}`,className:`h-8 w-full justify-start gap-2 font-normal`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:e})]},e))}):null,Te=W?null:(0,Z.jsxs)(`div`,{className:`mt-1 flex flex-col gap-2`,children:[(0,Z.jsx)(ci,{id:v,htmlFor:_,children:(0,Z.jsx)(J,{id:`ZWwYwM`})}),(0,Z.jsxs)(Ot,{open:D,onOpenChange:e=>{O(e),e||A(``)},children:[(0,Z.jsx)(w,{asChild:!0,children:(0,Z.jsxs)(Y,{id:_,type:`button`,variant:`outline`,role:`combobox`,"aria-expanded":D,"aria-haspopup":`listbox`,"aria-labelledby":`${v} ${_}`,"aria-label":m({id:`ZWwYwM`}),disabled:j,"data-testid":`new-worktree-base-trigger`,className:`w-full justify-between font-normal`,children:[(0,Z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[T?.kind===`remote`?(0,Z.jsx)(Vi,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}):(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,Z.jsx)(`span`,{className:`min-w-0 truncate text-left`,children:ne===null?(0,Z.jsx)(J,{id:`EbjWsS`}):ne})]}),(0,Z.jsx)(am,{"aria-hidden":`true`,className:`ml-2 size-4 shrink-0 opacity-50`})]})}),(0,Z.jsxs)(ie,{align:`start`,className:`w-[var(--radix-popover-trigger-width)] p-1`,onWheel:GZ,onTouchMove:WZ,onOpenAutoFocus:e=>{e.preventDefault(),I.current?.focus()},children:[(0,Z.jsxs)(Vw,{className:`mb-1 h-8`,children:[(0,Z.jsx)(Kw,{ref:I,"aria-label":m({id:`fuJZKk`}),placeholder:m({id:`hQXiDc`}),value:k,onChange:e=>A(e.target.value),onKeyDown:UZ,"data-testid":`new-worktree-base-search`}),(0,Z.jsx)(Uw,{children:(0,Z.jsx)(xe,{"aria-hidden":`true`})})]}),(0,Z.jsxs)(`div`,{role:`listbox`,"aria-label":m({id:`ZWwYwM`}),className:`max-h-56 overflow-y-auto`,"data-testid":`new-worktree-base-list`,children:[se?(0,Z.jsx)(`p`,{className:`px-2 py-1.5 text-1sm text-muted-foreground`,children:(0,Z.jsx)(J,{id:`Sh3Qkg`})}):null,ae.map(e=>{let t=e.name,n=l?.get(t);return(0,Z.jsxs)(Y,{type:`button`,role:`option`,"aria-selected":T?.kind===`local`&&T.name===t,variant:`ghost`,size:`sm`,onClick:()=>{E(e),O(!1),A(``)},"data-testid":`new-worktree-base-option-${t}`,className:`h-8 w-full justify-start gap-2 font-normal`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:t}),n!==void 0&&n>0?(0,Z.jsx)(`span`,{className:`shrink-0 text-xs text-amber-600 dark:text-amber-400`,"data-testid":`new-worktree-base-behind-${t}`,children:(0,Z.jsx)(J,{id:`6-wLTJ`,values:{behind:n}})}):null]},`local:${t}`)}),oe.map(e=>{let t=e.ref;return(0,Z.jsxs)(Y,{type:`button`,role:`option`,"aria-selected":T?.kind===`remote`&&T.ref===t,variant:`ghost`,size:`sm`,onClick:()=>{E(e),O(!1),A(``)},"data-testid":`new-worktree-base-option-${t}`,className:`h-8 w-full justify-start gap-2 font-normal`,children:[(0,Z.jsx)(Vi,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:t}),(0,Z.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground`,children:(0,Z.jsx)(J,{id:`dIYSqk`})})]},`remote:${t}`)})]})]})]})]}),Ee;t[27]!==m||t[28]!==N||t[29]!==b?(Ee=N===null?null:(0,Z.jsx)(`p`,{id:b,role:`alert`,className:`text-1sm text-destructive`,"data-testid":`new-worktree-error`,children:m(N)}),t[27]=m,t[28]=N,t[29]=b,t[30]=Ee):Ee=t[30];let De;t[31]!==h||t[32]!==ce||t[33]!==ge||t[34]!==Se||t[35]!==Ce||t[36]!==we||t[37]!==Te||t[38]!==Ee?(De=(0,Z.jsxs)(`form`,{id:h,onSubmit:ce,className:`flex flex-col gap-2`,children:[ge,Se,Ce,we,Te,Ee]}),t[31]=h,t[32]=ce,t[33]=ge,t[34]=Se,t[35]=Ce,t[36]=we,t[37]=Te,t[38]=Ee,t[39]=De):De=t[39];let Oe;t[40]!==me||t[41]!==De?(Oe=(0,Z.jsx)(me,{children:De}),t[40]=me,t[41]=De,t[42]=Oe):Oe=t[42];let ke;t[43]===r?ke=t[44]:(ke=()=>r(!1),t[43]=r,t[44]=ke);let Ae;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,Z.jsx)(J,{id:`dEgA5A`}),t[45]=Ae):Ae=t[45];let je;t[46]!==j||t[47]!==ke?(je=(0,Z.jsx)(Y,{type:`button`,variant:`outline`,onClick:ke,disabled:j,"data-testid":`new-worktree-cancel`,children:Ae}),t[46]=j,t[47]=ke,t[48]=je):je=t[48];let Me=!B,Ne;t[49]!==j||t[50]!==G||t[51]!==V||t[52]!==U?(Ne=j?(0,Z.jsx)(J,{id:`b4itZn`}):G?(0,Z.jsx)(J,{id:`XV5sC0`}):U?(0,Z.jsx)(J,{id:`XAyxsa`}):V?(0,Z.jsx)(J,{id:`uGaIIS`}):(0,Z.jsx)(J,{id:`iO8V-7`}),t[49]=j,t[50]=G,t[51]=V,t[52]=U,t[53]=Ne):Ne=t[53];let Pe;t[54]!==h||t[55]!==Me||t[56]!==Ne?(Pe=(0,Z.jsx)(Y,{type:`submit`,form:h,disabled:Me,"data-testid":`new-worktree-create`,children:Ne}),t[54]=h,t[55]=Me,t[56]=Ne,t[57]=Pe):Pe=t[57];let Fe;t[58]!==je||t[59]!==Pe?(Fe=(0,Z.jsxs)(Nn,{children:[je,Pe]}),t[58]=je,t[59]=Pe,t[60]=Fe):Fe=t[60];let Ie;t[61]!==de||t[62]!==pe||t[63]!==Oe||t[64]!==Fe?(Ie=(0,Z.jsxs)(de,{className:`sm:max-w-md`,"data-testid":`new-worktree-dialog`,children:[pe,Oe,Fe]}),t[61]=de,t[62]=pe,t[63]=Oe,t[64]=Fe,t[65]=Ie):Ie=t[65];let Le;return t[66]!==le||t[67]!==n||t[68]!==Ie||t[69]!==ue?(Le=(0,Z.jsx)(le,{open:n,onOpenChange:ue,children:Ie}),t[66]=le,t[67]=n,t[68]=Ie,t[69]=ue,t[70]=Le):Le=t[70],Le}function UZ(e){return e.stopPropagation()}function WZ(e){e.stopPropagation()}function GZ(e){e.stopPropagation()}function KZ(e){return{kind:`remote`,ref:e}}function qZ(e){return{kind:`local`,name:e}}function JZ(e){let t=(0,$.c)(51),{bridge:n,recents:r,currentPath:i,query:a,worktreeModel:o,closeMenu:s,guardStaleSelect:c,flyoutPath:l,setFlyoutPath:u,openNewWorktreeWith:d}=e,{_:f}=kt(),p;t[0]!==f||t[1]!==n.project||t[2]!==s?(p=function(e,t){s(),n.project.open({path:e,target:`new-window`,entryPoint:t}).catch(e=>{console.warn(`[RecentProjectsMenu] project.open failed:`,e),ol.error(f({id:`6HCOwA`}))})},t[0]=f,t[1]=n.project,t[2]=s,t[3]=p):p=t[3];let m=p,h;t[4]!==f||t[5]!==n.project||t[6]!==n.worktree?(h=async function(e){try{let t=await n.worktree.create({branch:e,createBranch:!1});if(!t.ok){ol.error(f({id:`teD0H9`}));return}Ru(),await n.project.open({path:t.path,target:`new-window`,entryPoint:`worktree`})}catch(e){console.warn(`[RecentProjectsMenu] create/open branch failed:`,e),ol.error(f({id:`LwMxXg`}))}},t[4]=f,t[5]=n.project,t[6]=n.worktree,t[7]=h):h=t[7];let g=h,_;t[8]!==s||t[9]!==i||t[10]!==m?(_=function(e){if(e.path===i){s();return}m(e.path,e.isLinkedWorktree?`worktree`:`recents`)},t[8]=s,t[9]=i,t[10]=m,t[11]=_):_=t[11];let v=_,y;t[12]!==s||t[13]!==g||t[14]!==i||t[15]!==m?(y=function(e){if(e.path!==null){if(e.path===i){s();return}m(e.path,e.isMain?`recents`:`worktree`);return}e.branch!==null&&(s(),g(e.branch))},t[12]=s,t[13]=g,t[14]=i,t[15]=m,t[16]=y):y=t[16];let b=y;if(a!==``){let e;t[17]!==s||t[18]!==g?(e=e=>{s(),g(e)},t[17]=s,t[18]=g,t[19]=e):e=t[19];let n;return t[20]!==i||t[21]!==c||t[22]!==v||t[23]!==a||t[24]!==r||t[25]!==e||t[26]!==o?(n=(0,Z.jsx)($Z,{recents:r,currentPath:i,query:a,worktreeModel:o,onPickEntry:v,onPickBranch:e,guardStaleSelect:c}),t[20]=i,t[21]=c,t[22]=v,t[23]=a,t[24]=r,t[25]=e,t[26]=o,t[27]=n):n=t[27],n}let x;if(t[28]!==s||t[29]!==i||t[30]!==l||t[31]!==c||t[32]!==b||t[33]!==d||t[34]!==m||t[35]!==r||t[36]!==u||t[37]!==o){let e=w_(r),n;t[39]!==s||t[40]!==i||t[41]!==l||t[42]!==c||t[43]!==b||t[44]!==d||t[45]!==m||t[46]!==u||t[47]!==o?(n=e=>(0,Z.jsx)(YZ,{group:e,currentPath:i,worktreeModel:o,flyoutOpen:l===e.project.path,setFlyoutOpen:t=>u(n=>t?e.project.path:n===e.project.path?null:n),onPickProject:()=>{if(e.project.path===i){s();return}m(e.project.path,`recents`)},onPickFlyoutEntry:b,guardStaleSelect:c,openNewWorktreeWith:d},e.project.path),t[39]=s,t[40]=i,t[41]=l,t[42]=c,t[43]=b,t[44]=d,t[45]=m,t[46]=u,t[47]=o,t[48]=n):n=t[48],x=e.map(n),t[28]=s,t[29]=i,t[30]=l,t[31]=c,t[32]=b,t[33]=d,t[34]=m,t[35]=r,t[36]=u,t[37]=o,t[38]=x}else x=t[38];let S;return t[49]===x?S=t[50]:(S=(0,Z.jsx)(Z.Fragment,{children:x}),t[49]=x,t[50]=S),S}function YZ(e){let t=(0,$.c)(34),{group:n,currentPath:r,worktreeModel:i,flyoutOpen:a,setFlyoutOpen:o,onPickProject:s,onPickFlyoutEntry:c,guardStaleSelect:l,openNewWorktreeWith:u}=e,d=n.project.path===r,f,p;t[0]!==r||t[1]!==n||t[2]!==i?(f=x_(n,i,r),p=f.filter(XZ),t[0]=r,t[1]=n,t[2]=i,t[3]=f,t[4]=p):(f=t[3],p=t[4]);let m=p.length;if(m===0){let e;t[5]!==l||t[6]!==s?(e=e=>{l(e)||s()},t[5]=l,t[6]=s,t[7]=e):e=t[7];let r=`project-switcher-recent-${n.project.path}`,i=d?`true`:void 0,a;t[8]!==n.project.name||t[9]!==n.project.path||t[10]!==d?(a=(0,Z.jsx)(nQ,{name:n.project.name,path:n.project.path,current:d}),t[8]=n.project.name,t[9]=n.project.path,t[10]=d,t[11]=a):a=t[11];let o;return t[12]!==e||t[13]!==r||t[14]!==i||t[15]!==a?(o=(0,Z.jsx)(qr,{onSelect:e,className:`flex w-full min-w-0 flex-col items-start gap-0.5`,"data-testid":r,"data-current":i,children:a}),t[12]=e,t[13]=r,t[14]=i,t[15]=a,t[16]=o):o=t[16],o}let h;t[17]!==r||t[18]!==n.worktrees||t[19]!==d?(h=d||n.worktrees.some(e=>e.path===r),t[17]=r,t[18]=n.worktrees,t[19]=d,t[20]=h):h=t[20];let g=h,_;return t[21]!==g||t[22]!==r||t[23]!==f||t[24]!==a||t[25]!==n||t[26]!==l||t[27]!==c||t[28]!==s||t[29]!==u||t[30]!==m||t[31]!==o||t[32]!==i?(_=(0,Z.jsx)(ZZ,{group:n,currentPath:r,containsCurrent:g,worktreeModel:i,flyoutEntries:f,openedWorktreeCount:m,flyoutOpen:a,setFlyoutOpen:o,onPickProject:s,onPickFlyoutEntry:c,guardStaleSelect:l,openNewWorktreeWith:u}),t[21]=g,t[22]=r,t[23]=f,t[24]=a,t[25]=n,t[26]=l,t[27]=c,t[28]=s,t[29]=u,t[30]=m,t[31]=o,t[32]=i,t[33]=_):_=t[33],_}function XZ(e){return e.opened&&!e.isMain}function ZZ(e){let t=(0,$.c)(46),{group:n,currentPath:r,containsCurrent:i,worktreeModel:a,flyoutEntries:o,openedWorktreeCount:s,flyoutOpen:c,setFlyoutOpen:l,onPickProject:u,onPickFlyoutEntry:d,guardStaleSelect:f,openNewWorktreeWith:p}=e,{_:m}=kt(),h=n.project.path===r,g;t[0]!==f||t[1]!==u?(g=e=>{f(e)||u()},t[0]=f,t[1]=u,t[2]=g):g=t[2];let _=g,v,y;t[3]===_?(v=t[4],y=t[5]):(v=e=>{e.target.closest(`[data-project-open]`)!==null&&(e.preventDefault(),_(e.nativeEvent))},y=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),_(e.nativeEvent))},t[3]=_,t[4]=v,t[5]=y);let b=`project-switcher-group-${n.project.path}`,x=c?`true`:void 0,S=i?`true`:void 0,C;t[6]===n.project.name?C=t[7]:(C=(0,Z.jsx)(`span`,{className:`truncate font-medium text-sm`,"data-project-open":``,title:n.project.name,children:n.project.name}),t[6]=n.project.name,t[7]=C);let w;t[8]===n.project.path?w=t[9]:(w=(0,Z.jsx)(`span`,{className:`truncate text-muted-foreground text-xs`,title:n.project.path,children:n.project.path}),t[8]=n.project.path,t[9]=w);let T;t[10]!==C||t[11]!==w?(T=(0,Z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[C,w]}),t[10]=C,t[11]=w,t[12]=T):T=t[12];let E;t[13]!==m||t[14]!==h?(E=h?(0,Z.jsx)(Es,{"aria-label":m({id:`Hp1l6f`}),className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground`}):null,t[13]=m,t[14]=h,t[15]=E):E=t[15];let D=`project-switcher-toggle-${n.project.path}`,O;t[16]===s?O=t[17]:(O=(0,Z.jsx)(`span`,{className:`tabular-nums`,children:s}),t[16]=s,t[17]=O);let k;t[18]===s?k=t[19]:(k=(0,Z.jsx)(J,{id:`AKxFtn`,values:{openedWorktreeCount:s}}),t[18]=s,t[19]=k);let A;t[20]!==D||t[21]!==O||t[22]!==k?(A=(0,Z.jsxs)(`span`,{className:`mt-0.5 shrink-0 text-muted-foreground text-xs`,"data-testid":D,children:[O,` `,k]}),t[20]=D,t[21]=O,t[22]=k,t[23]=A):A=t[23];let j;t[24]!==E||t[25]!==A||t[26]!==v||t[27]!==y||t[28]!==b||t[29]!==x||t[30]!==S||t[31]!==T?(j=(0,Z.jsxs)(Wr,{onClick:v,onKeyDown:y,className:`flex w-full min-w-0 items-start gap-2`,"data-testid":b,"data-flyout-open":x,"data-current":S,children:[T,E,A]}),t[24]=E,t[25]=A,t[26]=v,t[27]=y,t[28]=b,t[29]=x,t[30]=S,t[31]=T,t[32]=j):j=t[32];let M;t[33]!==o||t[34]!==c||t[35]!==n||t[36]!==f||t[37]!==d||t[38]!==p||t[39]!==a?(M=(0,Z.jsx)(QZ,{group:n,open:c,worktreeModel:a,entries:o,onPickFlyoutEntry:d,guardStaleSelect:f,openNewWorktreeWith:p}),t[33]=o,t[34]=c,t[35]=n,t[36]=f,t[37]=d,t[38]=p,t[39]=a,t[40]=M):M=t[40];let N;return t[41]!==c||t[42]!==l||t[43]!==j||t[44]!==M?(N=(0,Z.jsxs)(jr,{open:c,onOpenChange:l,children:[j,M]}),t[41]=c,t[42]=l,t[43]=j,t[44]=M,t[45]=N):N=t[45],N}function QZ(e){let t=(0,$.c)(15),{group:n,open:r,worktreeModel:i,entries:a,onPickFlyoutEntry:o,guardStaleSelect:s,openNewWorktreeWith:c}=e,{_:l}=kt(),[u,d]=(0,Q.useState)(``),f=(0,Q.useRef)(null),p=(0,Q.useRef)(null),m,h;t[0]===r?(m=t[1],h=t[2]):(m=()=>{r&&f.current?.focus({preventScroll:!0})},h=[r],t[0]=r,t[1]=m,t[2]=h),(0,Q.useEffect)(m,h);let g=function(){let e=p.current;return e===null?[]:[...e.querySelectorAll(`[role="menuitem"]`)]},_=function(e){g()[e]?.focus()},v=function(e,t){if(e.key===`ArrowDown`){e.preventDefault(),e.stopPropagation();let t=g(),n=t.indexOf(e.currentTarget);_(Math.min(n+1,t.length-1))}else if(e.key===`ArrowUp`){e.preventDefault(),e.stopPropagation();let t=g().indexOf(e.currentTarget);t<=0?f.current?.focus():_(t-1)}else e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),t())},y;if(t[3]!==a||t[4]!==u){let e=u.trim().toLowerCase();y=e===``?a:a.filter(t=>(t.branch??``).toLowerCase().includes(e)),t[3]=a,t[4]=u,t[5]=y}else y=t[5];let b=y,x=i!==null&&i.mainRoot===n.project.mainRoot,S=u.trim(),C=x&&S.length>0,w;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,Z.jsx)(Uw,{align:`inline-start`,children:(0,Z.jsx)(xe,{"aria-hidden":`true`})}),t[6]=w):w=t[6];let T;t[7]===l?T=t[8]:(T=l({id:`bSD4im`}),t[7]=l,t[8]=T);let E;t[9]===l?E=t[10]:(E=l({id:`Skr_7L`}),t[9]=l,t[10]=E);let D;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>d(e.target.value),t[11]=D):D=t[11];let O=b.length===0?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ii,{className:`font-normal text-muted-foreground text-xs`,role:`status`,"aria-live":`polite`,children:l({id:`-uaQnI`})}),C?(0,Z.jsxs)(qr,{onSelect:e=>{s(e)||c(S)},onKeyDown:e=>v(e,()=>c(S)),className:`flex items-center gap-2`,"data-testid":`project-switcher-flyout-create`,children:[(0,Z.jsx)(gt,{"aria-hidden":`true`,className:`size-3.5 shrink-0`}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm`,title:S,children:(0,Z.jsx)(J,{id:`gHSAWT`,values:{typedName:S},components:{0:(0,Z.jsx)(`span`,{className:`font-medium`}),1:(0,Z.jsx)(`span`,{className:`font-mono`})}})})]}):null]}):b.map(e=>{let t=e.path??`branch:${e.branch}`,n=e.branch??l({id:`D12vtS`});return(0,Z.jsxs)(qr,{onSelect:t=>{s(t)||o(e)},onKeyDown:t=>v(t,()=>o(e)),className:`flex items-center gap-2`,"data-testid":`project-switcher-flyout-entry-${t}`,"data-current":e.isCurrent?`true`:void 0,children:[(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm`,title:n,children:n}),e.isMain?(0,Z.jsx)(`span`,{className:`shrink-0 text-muted-foreground text-xs`,children:l({id:`Bn9-El`})}):e.opened?null:(0,Z.jsx)(`span`,{className:`shrink-0 text-muted-foreground text-xs`,title:l({id:`Dvwa0U`}),children:l({id:`nfoduq`})}),e.isCurrent?(0,Z.jsx)(rQ,{}):null]},t)}),k;return t[12]!==p||t[13]!==O?(k=(0,Z.jsx)(`div`,{ref:p,className:`min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain subtle-scrollbar`,children:O}),t[12]=p,t[13]=O,t[14]=k):k=t[14],(0,Z.jsx)(oi,{children:(0,Z.jsxs)(ai,{avoidCollisions:!1,sideOffset:-8,className:`flex max-h-80 w-96 flex-col gap-1 overflow-hidden p-1`,"data-testid":`project-switcher-flyout-${n.project.path}`,children:[(0,Z.jsxs)(Vw,{className:`mb-1 h-8 shrink-0`,children:[w,(0,Z.jsx)(Kw,{ref:f,"aria-label":T,placeholder:E,value:u,onChange:D,onKeyDown:e=>{e.key===`ArrowDown`&&(e.preventDefault(),_(0)),e.stopPropagation()},"data-testid":`project-switcher-flyout-search-${n.project.path}`})]}),k]})})}function $Z(e){let t=(0,$.c)(41),{recents:n,currentPath:r,query:i,worktreeModel:a,onPickEntry:o,onPickBranch:s,guardStaleSelect:c}=e,{_:l}=kt(),u;t[0]===i?u=t[1]:(u=e=>e.toLowerCase().includes(i),t[0]=i,t[1]=u);let d=u,f,p,m,h;if(t[2]!==l||t[3]!==r||t[4]!==c||t[5]!==d||t[6]!==s||t[7]!==o||t[8]!==n||t[9]!==a){h=Symbol.for(`react.early_return_sentinel`);bb0:{let e;t[14]===d?e=t[15]:(e=e=>!e.isLinkedWorktree&&(d(e.name)||d(e.path)),t[14]=d,t[15]=e);let i=n.filter(e),u;t[16]===d?u=t[17]:(u=e=>e.isLinkedWorktree===!0&&(d(e.branch??``)||d(e.path)),t[16]=d,t[17]=u);let g=n.filter(u),_=new Set(g.map(eQ)),v;t[18]===a?.entries?v=t[19]:(v=a?.entries??[],t[18]=a?.entries,t[19]=v);let y=v.filter(e=>e.branch!==null&&d(e.branch)&&(e.worktreePath===null||!_.has(e.worktreePath))&&e.worktreePath!==r);if(i.length===0&&g.length===0&&y.length===0){let e;t[20]===l?e=t[21]:(e=l({id:`pEQFsW`}),t[20]=l,t[21]=e);let n;t[22]===e?n=t[23]:(n=(0,Z.jsx)(ii,{className:`font-normal text-muted-foreground text-xs`,role:`status`,"aria-live":`polite`,children:e}),t[22]=e,t[23]=n),h=n;break bb0}let b;t[24]!==r||t[25]!==c||t[26]!==o?(b=e=>(0,Z.jsx)(qr,{onSelect:t=>{c(t)||o(e)},className:`flex w-full min-w-0 flex-col items-start gap-0.5`,"data-testid":`project-switcher-recent-${e.path}`,children:(0,Z.jsx)(nQ,{name:e.name,path:e.path,current:e.path===r})},e.path),t[24]=r,t[25]=c,t[26]=o,t[27]=b):b=t[27],f=i.map(b);let x;t[28]!==r||t[29]!==c||t[30]!==o?(x=e=>(0,Z.jsxs)(qr,{onSelect:t=>{c(t)||o(e)},className:`flex items-start gap-2`,"data-testid":`project-switcher-worktree-${e.path}`,"data-current":e.path===r?`true`:void 0,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0`}),(0,Z.jsx)(tQ,{branch:e.branch??e.name,project:e.mainRoot===void 0?null:C_(e.mainRoot)})]},e.path),t[28]=r,t[29]=c,t[30]=o,t[31]=x):x=t[31],p=g.map(x);let S;t[32]!==l||t[33]!==c||t[34]!==s||t[35]!==a?(S=e=>(0,Z.jsxs)(qr,{onSelect:t=>{c(t)||e.branch!==null&&s(e.branch)},className:`flex items-start gap-2`,"data-testid":`project-switcher-branch-${e.branch}`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 opacity-40`}),(0,Z.jsx)(tQ,{branch:e.branch??``,project:a===null?null:C_(a.mainRoot),hint:l({id:`nfoduq`})})]},`branch:${e.branch}`),t[32]=l,t[33]=c,t[34]=s,t[35]=a,t[36]=S):S=t[36],m=y.map(S)}t[2]=l,t[3]=r,t[4]=c,t[5]=d,t[6]=s,t[7]=o,t[8]=n,t[9]=a,t[10]=f,t[11]=p,t[12]=m,t[13]=h}else f=t[10],p=t[11],m=t[12],h=t[13];if(h!==Symbol.for(`react.early_return_sentinel`))return h;let g;return t[37]!==f||t[38]!==p||t[39]!==m?(g=(0,Z.jsxs)(Z.Fragment,{children:[f,p,m]}),t[37]=f,t[38]=p,t[39]=m,t[40]=g):g=t[40],g}function eQ(e){return e.path}function tQ(e){let t=(0,$.c)(12),{branch:n,project:r,hint:i}=e,a;t[0]===n?a=t[1]:(a=(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm`,children:n}),t[0]=n,t[1]=a);let o;t[2]===i?o=t[3]:(o=i===void 0?null:(0,Z.jsx)(`span`,{className:`shrink-0 text-muted-foreground text-xs`,children:i}),t[2]=i,t[3]=o);let s;t[4]!==a||t[5]!==o?(s=(0,Z.jsxs)(`span`,{className:`flex w-full min-w-0 items-center gap-1.5`,children:[a,o]}),t[4]=a,t[5]=o,t[6]=s):s=t[6];let c;t[7]===r?c=t[8]:(c=r===null?null:(0,Z.jsx)(`span`,{className:`truncate text-muted-foreground text-xs`,title:r,children:r}),t[7]=r,t[8]=c);let l;return t[9]!==s||t[10]!==c?(l=(0,Z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[s,c]}),t[9]=s,t[10]=c,t[11]=l):l=t[11],l}function nQ(e){let t=(0,$.c)(15),{name:n,path:r,current:i}=e,a=i&&`font-medium`,o;t[0]===a?o=t[1]:(o=X(`flex w-full items-center gap-1.5`,a),t[0]=a,t[1]=o);let s;t[2]===n?s=t[3]:(s=(0,Z.jsx)(`span`,{className:`truncate font-medium text-sm`,title:n,children:n}),t[2]=n,t[3]=s);let c;t[4]===i?c=t[5]:(c=i?(0,Z.jsx)(Es,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}):null,t[4]=i,t[5]=c);let l;t[6]!==o||t[7]!==s||t[8]!==c?(l=(0,Z.jsxs)(`span`,{className:o,children:[s,c]}),t[6]=o,t[7]=s,t[8]=c,t[9]=l):l=t[9];let u;t[10]===r?u=t[11]:(u=(0,Z.jsx)(`span`,{className:`w-full truncate text-muted-foreground text-xs`,title:r,children:r}),t[10]=r,t[11]=u);let d;return t[12]!==l||t[13]!==u?(d=(0,Z.jsxs)(`span`,{className:`flex w-full min-w-0 flex-col gap-0.5`,children:[l,u]}),t[12]=l,t[13]=u,t[14]=d):d=t[14],d}function rQ(){let e=(0,$.c)(4),{_:t}=kt(),n;e[0]===t?n=e[1]:(n=t({id:`Hp1l6f`}),e[0]=t,e[1]=n);let r;return e[2]===n?r=e[3]:(r=(0,Z.jsx)(Es,{"aria-label":n,className:`size-3.5 shrink-0 text-muted-foreground`}),e[2]=n,e[3]=r),r}var iQ=(e,t,n)=>h_(e,t,n,`ProjectSwitcher`),aQ=350;function oQ(e){let t=(0,$.c)(108),{bridge:n}=e,{_:r}=kt(),[i,a]=(0,Q.useState)(null),[o,s]=(0,Q.useState)(!1),[c,l]=(0,Q.useState)(``),[u,d]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(!1),[m,h]=(0,Q.useState)(``),[g,_]=(0,Q.useState)(null),v=CN(),y=f_(),b=typeof window<`u`&&window.okDesktop!=null,x=(0,Q.useRef)(!1),S=(0,Q.useRef)(!1),C=(0,Q.useRef)(null),w;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>{e&&(S.current=!0,C.current!==null&&clearTimeout(C.current),C.current=setTimeout(()=>{S.current=!1},aQ)),s(e),e||(l(``),_(null))},t[0]=w):w=t[0];let T=w,E;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>!b||!S.current?!1:(e.preventDefault(),!0),t[1]=E):E=t[1];let D=E,O;t[2]!==r||t[3]!==n.project||t[4]!==o?(O=()=>{if(!o)return;let e=!1;return iQ(async()=>{let t=await n.project.listRecent();e||a(t)},r({id:`fYKgzG`})),()=>{e=!0}},t[2]=r,t[3]=n.project,t[4]=o,t[5]=O):O=t[5];let k;t[6]!==r||t[7]!==n||t[8]!==o?(k=[o,n,r],t[6]=r,t[7]=n,t[8]=o,t[9]=k):k=t[9],(0,Q.useEffect)(O,k);let A,j;t[10]===n?(A=t[11],j=t[12]):(A=()=>n.onMenuAction(e=>{e===`new-worktree`?(s(!1),_(null),h(``),p(!0)):e===`switch-worktree`&&s(!0)}),j=[n],t[10]=n,t[11]=A,t[12]=j),(0,Q.useEffect)(A,j);let M;t[13]!==r||t[14]!==n.dialog||t[15]!==n.project?(M=()=>{T(!1),iQ(async()=>{let e=await n.dialog.openFolder();e&&await n.project.open({path:e,target:`new-window`,entryPoint:`pick-existing`})},r({id:`gmJ0An`}))},t[13]=r,t[14]=n.dialog,t[15]=n.project,t[16]=M):M=t[16];let N=M,P;t[17]!==r||t[18]!==n.navigator?(P=()=>{T(!1),iQ(()=>n.navigator.open(),r({id:`jol95m`}))},t[17]=r,t[18]=n.navigator,t[19]=P):P=t[19];let F=P,I;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(I=()=>{T(!1),d(!0)},t[20]=I):I=t[20];let L=I,R;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>{T(!1),h(e),p(!0)},t[21]=R):R=t[21];let z=R,B=n.config.projectPath,V;t[22]===c?V=t[23]:(V=c.trim().toLowerCase(),t[22]=c,t[23]=V);let H=V,U=H!==``,W;t[24]===i?W=t[25]:(W=i??[],t[24]=i,t[25]=W);let G=W,K;t[26]!==U||t[27]!==G?(K=U?G.filter(mQ):G,t[26]=U,t[27]=G,t[28]=K):K=t[28];let q=K,ee=U?null:y,te=v!==null&&`h-auto py-1.5`,ne;t[29]===te?ne=t[30]:(ne=X(`justify-between text-sidebar-foreground/70 hover:text-sidebar-foreground! data-open:hover:text-sidebar-foreground!`,te),t[29]=te,t[30]=ne);let re;t[31]===r?re=t[32]:(re=r({id:`zZ_I5K`}),t[31]=r,t[32]=re);let ie;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(ie=b?()=>{x.current=!0}:void 0,t[33]=ie):ie=t[33];let ae;t[34]===o?ae=t[35]:(ae=b?()=>{if(x.current){x.current=!1;return}T(!o)}:void 0,t[34]=o,t[35]=ae);let oe;t[36]===n.config.projectName?oe=t[37]:(oe=(0,Z.jsx)(`span`,{className:`truncate`,children:n.config.projectName}),t[36]=n.config.projectName,t[37]=oe);let se;t[38]===v?se=t[39]:(se=v===null?null:(0,Z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1 text-xs text-sidebar-foreground/50 group-hover/menu-button:text-sidebar-foreground`,"data-testid":`project-switcher-branch`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`size-3! shrink-0`}),(0,Z.jsx)(`span`,{className:`truncate`,children:v})]}),t[38]=v,t[39]=se);let ce;t[40]!==oe||t[41]!==se?(ce=(0,Z.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-0.5`,children:[oe,se]}),t[40]=oe,t[41]=se,t[42]=ce):ce=t[42];let le;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,Z.jsx)(am,{"aria-hidden":`true`,className:`opacity-60`}),t[43]=le):le=t[43];let ue;t[44]!==n.config.projectPath||t[45]!==ne||t[46]!==re||t[47]!==ae||t[48]!==ce?(ue=(0,Z.jsx)(Nr,{asChild:!0,children:(0,Z.jsxs)(pN,{className:ne,"data-testid":`project-switcher-trigger`,"aria-label":re,title:n.config.projectPath,onPointerDown:ie,onClick:ae,children:[ce,le]})}),t[44]=n.config.projectPath,t[45]=ne,t[46]=re,t[47]=ae,t[48]=ce,t[49]=ue):ue=t[49];let de;t[50]!==r||t[51]!==n||t[52]!==B||t[53]!==g||t[54]!==q||t[55]!==ee||t[56]!==H||t[57]!==i||t[58]!==c?(de=i===null?null:i.length===0?(0,Z.jsx)(ii,{className:`font-normal text-muted-foreground text-xs`,children:(0,Z.jsx)(J,{id:`MUrVEo`})}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(Vw,{className:`mb-1 h-8 border-0 shadow-none has-[[data-slot=input-group-control]:focus-visible]:ring-0`,children:[(0,Z.jsx)(Kw,{"aria-label":r({id:`blFttG`}),placeholder:r({id:`RVZJWQ`}),value:c,onChange:e=>{e.target.value!==``&&_(null),l(e.target.value)},onKeyDown:pQ,"data-testid":`project-switcher-search`}),(0,Z.jsx)(Uw,{children:(0,Z.jsx)(xe,{"aria-hidden":`true`})})]}),(0,Z.jsx)(Ur,{}),(0,Z.jsx)(`div`,{className:`max-h-64 overflow-x-hidden overflow-y-auto overscroll-contain subtle-scrollbar scroll-fade-mask`,"data-testid":`project-switcher-scroll`,onScroll:()=>{g!==null&&_(null)},children:(0,Z.jsx)(JZ,{bridge:n,recents:q,currentPath:B,query:H,worktreeModel:ee,closeMenu:()=>T(!1),guardStaleSelect:D,flyoutPath:g,setFlyoutPath:_,openNewWorktreeWith:z})})]}),t[50]=r,t[51]=n,t[52]=B,t[53]=g,t[54]=q,t[55]=ee,t[56]=H,t[57]=i,t[58]=c,t[59]=de):de=t[59];let fe;t[60]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,Z.jsx)(Ur,{}),t[60]=fe):fe=t[60];let me;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(me=e=>{D(e)||L()},t[61]=me):me=t[61];let he;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,Z.jsxs)(qr,{onSelect:me,"data-testid":`project-switcher-new-project`,children:[(0,Z.jsx)(gt,{"aria-hidden":`true`,className:`text-muted-foreground`}),(0,Z.jsx)(J,{id:`gKi-a_`})]}),t[62]=he):he=t[62];let ge;t[63]===F?ge=t[64]:(ge=e=>{D(e)||F()},t[63]=F,t[64]=ge);let _e,ve;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,Z.jsx)(pe,{"aria-hidden":`true`,className:`text-muted-foreground`}),ve=(0,Z.jsx)(J,{id:`xaDWAI`}),t[65]=_e,t[66]=ve):(_e=t[65],ve=t[66]);let ye;t[67]===ge?ye=t[68]:(ye=(0,Z.jsxs)(qr,{onSelect:ge,"data-testid":`project-switcher-switch-project`,children:[_e,ve]}),t[67]=ge,t[68]=ye);let be;t[69]===N?be=t[70]:(be=e=>{D(e)||N()},t[69]=N,t[70]=be);let Se,Ce;t[71]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,Z.jsx)(_c,{"aria-hidden":`true`,className:`text-muted-foreground`}),Ce=(0,Z.jsx)(J,{id:`PVUn_c`}),t[71]=Se,t[72]=Ce):(Se=t[71],Ce=t[72]);let we;t[73]===be?we=t[74]:(we=(0,Z.jsxs)(qr,{onSelect:be,"data-testid":`project-switcher-open-folder`,children:[Se,Ce]}),t[73]=be,t[74]=we);let Te;t[75]===v?Te=t[76]:(Te=v===null?null:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ur,{}),(0,Z.jsxs)(qr,{onSelect:e=>{D(e)||(T(!1),h(``),p(!0))},"data-testid":`project-switcher-new-worktree`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`text-muted-foreground`}),(0,Z.jsx)(J,{id:`DXd9LM`})]})]}),t[75]=v,t[76]=Te);let Ee;t[77]!==de||t[78]!==ye||t[79]!==we||t[80]!==Te?(Ee=(0,Z.jsxs)(Yr,{align:`start`,side:`top`,className:`min-w-[260px]`,"data-testid":`project-switcher-menu`,children:[de,fe,he,ye,we,Te]}),t[77]=de,t[78]=ye,t[79]=we,t[80]=Te,t[81]=Ee):Ee=t[81];let De;t[82]!==o||t[83]!==ue||t[84]!==Ee?(De=(0,Z.jsxs)(ti,{open:o,onOpenChange:T,modal:!1,children:[ue,Ee]}),t[82]=o,t[83]=ue,t[84]=Ee,t[85]=De):De=t[85];let Oe;t[86]!==n||t[87]!==u?(Oe=(0,Z.jsx)(Dh,{open:u,onOpenChange:d,bridge:n}),t[86]=n,t[87]=u,t[88]=Oe):Oe=t[88];let ke;t[89]===y?.entries?ke=t[90]:(ke=y?.entries.map(fQ).filter(dQ),t[89]=y?.entries,t[90]=ke);let Ae;t[91]===y?.entries?Ae=t[92]:(Ae=new Set(y?.entries.filter(uQ).map(lQ)),t[91]=y?.entries,t[92]=Ae);let je=y?.remoteBranches,Me;t[93]===y?.entries?Me=t[94]:(Me=new Map(y?.entries.filter(cQ).map(sQ)),t[93]=y?.entries,t[94]=Me);let Ne;t[95]!==v||t[96]!==n||t[97]!==m||t[98]!==f||t[99]!==ke||t[100]!==Ae||t[101]!==je||t[102]!==Me?(Ne=(0,Z.jsx)(HZ,{open:f,onOpenChange:p,bridge:n,currentBranch:v,initialBranchName:m,branches:ke,existingWorktreeBranches:Ae,remoteBranches:je,behindByBranch:Me}),t[95]=v,t[96]=n,t[97]=m,t[98]=f,t[99]=ke,t[100]=Ae,t[101]=je,t[102]=Me,t[103]=Ne):Ne=t[103];let Pe;return t[104]!==De||t[105]!==Oe||t[106]!==Ne?(Pe=(0,Z.jsxs)(Z.Fragment,{children:[De,Oe,Ne]}),t[104]=De,t[105]=Oe,t[106]=Ne,t[107]=Pe):Pe=t[107],Pe}function sQ(e){return[e.branch,e.behind]}function cQ(e){return e.branch!==null&&e.behind!==void 0}function lQ(e){return e.branch}function uQ(e){return e.branch!==null&&e.worktreePath!==null}function dQ(e){return e!==null}function fQ(e){return e.branch}function pQ(e){return e.stopPropagation()}function mQ(e){return!e.isLinkedWorktree}function hQ(e,t){let n=e instanceof Error?e:Error(String(e));console.warn(JSON.stringify({event:`jsx-render-failure`,component:`sidebarSearchPill`,rawComponentName:`sidebarSearchPill`,error:String(n),stack:t.componentStack})),Aa(`sidebarSearchPill`)}function gQ(e){let t=(0,$.c)(8),{onClick:n,className:r}=e,i;t[0]===r?i=t[1]:(i=X(`rounded-lg h-9 w-full justify-start gap-2 px-3 font-normal text-muted-foreground`,r),t[0]=r,t[1]=i);let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(xe,{"aria-hidden":`true`}),t[2]=a):a=t[2];let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Z.jsx)(`span`,{className:`flex-1 text-left text-sm`,children:(0,Z.jsx)(J,{id:`A1taO8`})}),t[3]=o):o=t[3];let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(Re,{className:`text-foreground/70`,children:au(`command-palette`)}),t[4]=s):s=t[4];let c;return t[5]!==n||t[6]!==i?(c=(0,Z.jsxs)(Y,{variant:`outline`,onClick:n,"data-telemetry-event":`ok.sidebar.search_pill.click`,className:i,children:[a,o,s]}),t[5]=n,t[6]=i,t[7]=c):c=t[7],c}function _Q(){let e=(0,$.c)(31),{_:t}=kt(),n=Js(),{activeDocName:r}=Xe(),[i,a]=(0,Q.useState)(!1),o=ec(),s;e[0]!==n.data||e[1]!==n.status?(s=n.status===`ready`?n.data:[],e[0]=n.data,e[1]=n.status,e[2]=s):s=e[2];let c=s,l;e[3]===c?l=e[4]:(l=dc(c),e[3]=c,e[4]=l);let u=l,d=pc(),f;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(f={},e[5]=f):f=e[5];let[p,m]=(0,Q.useState)(f),h;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Z.jsx)(sN,{asChild:!0,children:(0,Z.jsxs)(Dn,{className:`flex w-full items-center gap-1.5`,children:[(0,Z.jsx)(Tm,{className:`size-3.5 shrink-0`}),(0,Z.jsx)(J,{id:`PCSkw2`}),(0,Z.jsx)(ks,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-[state=open]/skills:rotate-90`})]})}),e[6]=h):h=e[6];let g;e[7]===t?g=e[8]:(g=t({id:`MdpSC1`}),e[7]=t,e[8]=g);let _,v;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>a(!0),v=(0,Z.jsx)(gt,{}),e[9]=_,e[10]=v):(_=e[9],v=e[10]);let y;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsx)(`span`,{className:`sr-only`,children:(0,Z.jsx)(J,{id:`MdpSC1`})}),e[11]=y):y=e[11];let b;e[12]===g?b=e[13]:(b=(0,Z.jsxs)(cN,{title:g,onClick:_,children:[v,y]}),e[12]=g,e[13]=b);let x;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,Z.jsx)(wQ,{}),e[14]=x):x=e[14];let S;e[15]!==o||e[16]!==r||e[17]!==u||e[18]!==p||e[19]!==d||e[20]!==c?(S=c.length===0?(0,Z.jsx)(`p`,{className:`px-2 py-1 text-xs text-muted-foreground`,children:(0,Z.jsx)(J,{id:`PdJZ5p`})}):cc.filter(e=>c.some(t=>t.scope===e)).map(e=>(0,Z.jsxs)(On,{className:`group/scope`,open:c.some(t=>t.scope===e&&Ea(t.scope,t.name)===r)||(p[e]??!1),onOpenChange:t=>m(n=>({...n,[e]:t})),children:[(0,Z.jsxs)(Dn,{className:`flex w-full items-center gap-1 px-2 pt-1 pb-0.5 text-[11px] text-muted-foreground/70 hover:text-muted-foreground`,children:[(0,Z.jsx)(ks,{className:`size-3 shrink-0 transition-transform group-data-[state=open]/scope:rotate-90`}),(0,Z.jsx)(`span`,{className:`truncate`,children:d[e]})]}),(0,Z.jsx)(En,{children:(0,Z.jsx)(uN,{className:`pl-2`,children:c.filter(t=>t.scope===e).map(e=>(0,Z.jsx)(yQ,{skill:e,activeDocName:r,actions:o,existingNames:u[e.scope]},`${e.scope}::${e.name}`))})})]},e)),e[15]=o,e[16]=r,e[17]=u,e[18]=p,e[19]=d,e[20]=c,e[21]=S):S=e[21];let C;e[22]===S?C=e[23]:(C=(0,Z.jsx)(En,{children:(0,Z.jsxs)(lN,{children:[x,S]})}),e[22]=S,e[23]=C);let w;e[24]===i?w=e[25]:(w=(0,Z.jsx)(Wi,{defaultScope:`project`,open:i,onOpenChange:a,onCreated:vQ}),e[24]=i,e[25]=w);let T;return e[26]!==o.dialogs||e[27]!==C||e[28]!==w||e[29]!==b?(T=(0,Z.jsx)(On,{className:`group/skills shrink-0`,children:(0,Z.jsxs)(oN,{className:`px-0`,children:[h,b,C,o.dialogs,w]})}),e[26]=o.dialogs,e[27]=C,e[28]=w,e[29]=b,e[30]=T):T=e[30],T}function vQ(e){let{scope:t,name:n}=e;return kc(Ea(t,n))}function yQ(e){let t=(0,$.c)(52),{skill:n,activeDocName:r,actions:i,existingNames:a}=e,{_:o}=kt(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(!1),d;t[0]!==n.name||t[1]!==n.scope?(d=Ea(n.scope,n.name),t[0]=n.name,t[1]=n.scope,t[2]=d):d=t[2];let f=r===d,p,m,h;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>{e.preventDefault(),u(!0)},m=(0,Z.jsx)(ks,{className:`size-3 shrink-0 text-muted-foreground transition-transform group-data-[state=open]/skill:rotate-90`}),h=(0,Z.jsx)(Tm,{className:`size-3 shrink-0 text-muted-foreground`}),t[3]=p,t[4]=m,t[5]=h):(p=t[3],m=t[4],h=t[5]);let g=n.name,_;t[6]===n.name?_=t[7]:(_=oc(n.name),t[6]=n.name,t[7]=_);let v;t[8]!==n.name||t[9]!==_?(v=(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:g,children:_}),t[8]=n.name,t[9]=_,t[10]=v):v=t[10];let y;t[11]!==o||t[12]!==n.bundledVersion||t[13]!==n.updateAvailable?(y=n.updateAvailable?(0,Z.jsx)(`span`,{title:o({id:`1YJ4Yg`,values:{0:n.bundledVersion?` (${n.bundledVersion})`:``}}),className:`flex items-center`,children:(0,Z.jsx)(Ic,{className:`size-3 text-primary`,"aria-label":o({id:`CifUuG`})})}):null,t[11]=o,t[12]=n.bundledVersion,t[13]=n.updateAvailable,t[14]=y):y=t[14];let b;t[15]!==o||t[16]!==n.installed||t[17]!==n.managed?(b=n.managed?(0,Z.jsx)(`span`,{title:o({id:`U7HJ4y`}),className:`flex items-center`,children:(0,Z.jsx)(Ls,{className:`size-3 text-muted-foreground`,"aria-label":o({id:`U7HJ4y`})})}):(0,Z.jsx)(Li,{installed:n.installed,subtle:!0,className:`shrink-0`}),t[15]=o,t[16]=n.installed,t[17]=n.managed,t[18]=b):b=t[18];let x;t[19]!==y||t[20]!==b?(x=(0,Z.jsxs)(`span`,{className:`ml-auto flex shrink-0 items-center gap-1`,children:[y,b]}),t[19]=y,t[20]=b,t[21]=x):x=t[21];let S;t[22]!==f||t[23]!==x||t[24]!==v?(S=(0,Z.jsx)(Dn,{asChild:!0,children:(0,Z.jsxs)(pN,{size:`sm`,isActive:f,className:`h-6 text-[11px]`,onContextMenu:p,children:[m,h,v,x]})}),t[22]=f,t[23]=x,t[24]=v,t[25]=S):S=t[25];let C;t[26]!==o||t[27]!==n.name?(C=o({id:`RlLl3G`,values:{0:n.name}}),t[26]=o,t[27]=n.name,t[28]=C):C=t[28];let w;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,Z.jsx)(pm,{}),t[29]=w):w=t[29];let T;t[30]===C?T=t[31]:(T=(0,Z.jsx)(Nr,{asChild:!0,children:(0,Z.jsx)(mN,{showOnHover:!0,"aria-label":C,children:w})}),t[30]=C,t[31]=T);let E;t[32]!==i||t[33]!==a||t[34]!==n?(E=(0,Z.jsx)(Yr,{side:`right`,align:`start`,className:`min-w-52`,children:(0,Z.jsx)(Zs,{skill:n,actions:i,existingNames:a})}),t[32]=i,t[33]=a,t[34]=n,t[35]=E):E=t[35];let D;t[36]!==l||t[37]!==T||t[38]!==E?(D=(0,Z.jsxs)(ti,{open:l,onOpenChange:u,children:[T,E]}),t[36]=l,t[37]=T,t[38]=E,t[39]=D):D=t[39];let O;t[40]!==s||t[41]!==n?(O=s?(0,Z.jsx)(SQ,{skill:n}):null,t[40]=s,t[41]=n,t[42]=O):O=t[42];let k;t[43]===O?k=t[44]:(k=(0,Z.jsx)(En,{children:O}),t[43]=O,t[44]=k);let A;t[45]!==S||t[46]!==D||t[47]!==k?(A=(0,Z.jsxs)(dN,{children:[S,D,k]}),t[45]=S,t[46]=D,t[47]=k,t[48]=A):A=t[48];let j;return t[49]!==s||t[50]!==A?(j=(0,Z.jsx)(On,{open:s,onOpenChange:c,className:`group/skill`,children:A}),t[49]=s,t[50]=A,t[51]=j):j=t[51],j}function bQ(e){let t=[];for(let n of e){let e=n.path.split(`/`),r=t;e.forEach((t,i)=>{let a=i===e.length-1,o=r.find(e=>e.name===t);o||(o=a?{name:t,path:n.path,text:n.text}:{name:t,path:e.slice(0,i+1).join(`/`),children:[]},r.push(o)),!a&&o.children&&(r=o.children)})}return xQ(t),t}function xQ(e){e.sort((e,t)=>{let n=+!e.children,r=+!t.children;return n===r?e.name.localeCompare(t.name):n-r});for(let t of e)t.children&&xQ(t.children)}function SQ(e){let t=(0,$.c)(36),{skill:n}=e,{_:r}=kt(),[i,a]=(0,Q.useState)(null),[o,s]=(0,Q.useState)(!1),{openTarget:c}=Xe(),l;t[0]===c?l=t[1]:(l=function(e){c({kind:`doc`,target:e,docName:e},{tabBehavior:`append`}),Kl($l(e))},t[0]=c,t[1]=l);let u=l,d;t[2]!==c||t[3]!==n.name||t[4]!==n.scope?(d=function(e){c({kind:`skill-file`,target:`${n.scope}/${n.name}/${e}`,scope:n.scope,name:n.name,path:e},{tabBehavior:`replace-active`}),Kl(Yl({scope:n.scope,name:n.name,path:e}))},t[2]=c,t[3]=n.name,t[4]=n.scope,t[5]=d):d=t[5];let f=d,p;t[6]!==u||t[7]!==f||t[8]!==n.managed||t[9]!==n.name||t[10]!==n.scope?(p=function(e){if(n.managed){f(e);return}let t=e.lastIndexOf(`.`),r=t>=0?e.slice(t+1).toLowerCase():``;if(n.scope===`project`&&(r===`md`||r===`mdx`)){u(dt(n.name,e.replace(/\.mdx?$/i,``)));return}f(e)},t[6]=u,t[7]=f,t[8]=n.managed,t[9]=n.name,t[10]=n.scope,t[11]=p):p=t[11];let m=p,h,g;t[12]!==n.name||t[13]!==n.scope?(h=()=>{let e=!0,t=()=>{ni(n.scope,n.name).then(t=>{e&&(t.ok?(a(t.files),s(!1)):(a([]),s(!0)))})};t();let r=zl(t);return()=>{e=!1,r()}},g=[n.scope,n.name],t[12]=n.name,t[13]=n.scope,t[14]=h,t[15]=g):(h=t[14],g=t[15]),(0,Q.useEffect)(h,g);let _;if(t[16]!==r||t[17]!==i||t[18]!==o||t[19]!==m||t[20]!==u||t[21]!==f||t[22]!==n.managed||t[23]!==n.name||t[24]!==n.scope){let e=i?bQ(i):[],a;t[26]!==u||t[27]!==f||t[28]!==n.managed||t[29]!==n.name||t[30]!==n.scope?(a=()=>n.managed?f(`SKILL.md`):n.scope===`project`?u(Ca(n.name)):kc(Ea(n.scope,n.name)),t[26]=u,t[27]=f,t[28]=n.managed,t[29]=n.name,t[30]=n.scope,t[31]=a):a=t[31];let s,c;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Z.jsx)(or,{className:`size-3 shrink-0 text-muted-foreground`}),c=(0,Z.jsx)(`span`,{className:`truncate`,children:`SKILL.md`}),t[32]=s,t[33]=c):(s=t[32],c=t[33]);let l;t[34]===a?l=t[35]:(l=(0,Z.jsx)(gN,{children:(0,Z.jsxs)(_N,{size:`sm`,onClick:a,className:`text-[11px]`,children:[s,c]})}),t[34]=a,t[35]=l),_=(0,Z.jsxs)(hN,{className:`mr-0 pr-0`,children:[l,i===null?(0,Z.jsx)(gN,{children:(0,Z.jsx)(`span`,{className:`px-2 py-0.5 text-[11px] text-muted-foreground/70`,children:(0,Z.jsx)(J,{id:`yQE2r9`})})}):o?(0,Z.jsx)(gN,{children:(0,Z.jsx)(`span`,{className:`px-2 py-0.5 text-[11px] text-muted-foreground/70`,title:r({id:`3Ijjy1`}),children:(0,Z.jsx)(J,{id:`ZARuZJ`})})}):e.map(e=>(0,Z.jsx)(CQ,{node:e,depth:0,onOpenFile:m},e.path))]}),t[16]=r,t[17]=i,t[18]=o,t[19]=m,t[20]=u,t[21]=f,t[22]=n.managed,t[23]=n.name,t[24]=n.scope,t[25]=_}else _=t[25];return _}function CQ(e){let t=(0,$.c)(34),{node:n,depth:r,onOpenFile:i}=e,[a,o]=(0,Q.useState)(!1),s=`${r*.6}rem`,c;t[0]===s?c=t[1]:(c={paddingLeft:s},t[0]=s,t[1]=c);let l=c;if(n.children){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,Z.jsx)(ks,{className:`size-3 shrink-0 text-muted-foreground transition-transform group-data-[state=open]/dir:rotate-90`}),t[2]=e):e=t[2];let s;t[3]===n.name?s=t[4]:(s=(0,Z.jsxs)(`span`,{className:`truncate`,children:[n.name,`/`]}),t[3]=n.name,t[4]=s);let c;t[5]!==l||t[6]!==s?(c=(0,Z.jsx)(Dn,{asChild:!0,children:(0,Z.jsxs)(_N,{size:`sm`,className:`text-[11px]`,style:l,children:[e,s]})}),t[5]=l,t[6]=s,t[7]=c):c=t[7];let u;if(t[8]!==r||t[9]!==n.children||t[10]!==i){let e;t[12]!==r||t[13]!==i?(e=e=>(0,Z.jsx)(CQ,{node:e,depth:r+1,onOpenFile:i},e.path),t[12]=r,t[13]=i,t[14]=e):e=t[14],u=n.children.map(e),t[8]=r,t[9]=n.children,t[10]=i,t[11]=u}else u=t[11];let d;t[15]===u?d=t[16]:(d=(0,Z.jsx)(En,{children:u}),t[15]=u,t[16]=d);let f;t[17]!==c||t[18]!==d?(f=(0,Z.jsxs)(gN,{children:[c,d]}),t[17]=c,t[18]=d,t[19]=f):f=t[19];let p;return t[20]!==a||t[21]!==f?(p=(0,Z.jsx)(On,{open:a,onOpenChange:o,className:`group/dir`,children:f}),t[20]=a,t[21]=f,t[22]=p):p=t[22],p}let u=`skill-file-${n.path}`,d;t[23]!==n.path||t[24]!==i?(d=()=>i(n.path),t[23]=n.path,t[24]=i,t[25]=d):d=t[25];let f;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Z.jsx)(gm,{className:`size-3 shrink-0 text-muted-foreground`}),t[26]=f):f=t[26];let p;t[27]===n.name?p=t[28]:(p=(0,Z.jsx)(`span`,{className:`truncate`,children:n.name}),t[27]=n.name,t[28]=p);let m;return t[29]!==l||t[30]!==u||t[31]!==d||t[32]!==p?(m=(0,Z.jsx)(gN,{children:(0,Z.jsxs)(_N,{size:`sm`,className:`text-[11px]`,style:l,"data-testid":u,onClick:d,children:[f,p]})}),t[29]=l,t[30]=u,t[31]=d,t[32]=p,t[33]=m):m=t[33],m}function wQ(){let e=(0,$.c)(19),[t,n]=(0,Q.useState)(null),[r,i]=(0,Q.useState)(!1),a,o;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>{let e=!1;return Xr().then(t=>{e||n(t)}),()=>{e=!0}},o=[],e[0]=a,e[1]=o):(a=e[0],o=e[1]),(0,Q.useEffect)(a,o),!t||t.managed!==null||t.importable===0)return null;let s;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=async e=>{if(i(!0),!await ri(e)){i(!1);return}n({managed:e,importable:0})},e[2]=s):s=e[2];let c=s,l;e[3]===t.importable?l=e[4]:(l=(0,Z.jsx)(`p`,{className:`mb-2 text-muted-foreground`,children:(0,Z.jsx)(J,{id:`mu1O0q`,values:{0:t.importable}})}),e[3]=t.importable,e[4]=l);let u,d;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>c(!0),d=(0,Z.jsx)(J,{id:`l3s5ri`}),e[5]=u,e[6]=d):(u=e[5],d=e[6]);let f;e[7]===r?f=e[8]:(f=(0,Z.jsx)(Y,{size:`sm`,className:`h-6 px-2 text-xs`,disabled:r,onClick:u,children:d}),e[7]=r,e[8]=f);let p,m;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>c(!1),m=(0,Z.jsx)(J,{id:`PBxg_E`}),e[9]=p,e[10]=m):(p=e[9],m=e[10]);let h;e[11]===r?h=e[12]:(h=(0,Z.jsx)(Y,{size:`sm`,variant:`ghost`,className:`h-6 px-2 text-xs`,disabled:r,onClick:p,children:m}),e[11]=r,e[12]=h);let g;e[13]!==f||e[14]!==h?(g=(0,Z.jsxs)(`div`,{className:`flex gap-1.5`,children:[f,h]}),e[13]=f,e[14]=h,e[15]=g):g=e[15];let _;return e[16]!==g||e[17]!==l?(_=(0,Z.jsxs)(`div`,{className:`mx-2 mb-1 rounded-md border border-border/60 bg-muted/40 p-2 text-xs`,children:[l,g]}),e[16]=g,e[17]=l,e[18]=_):_=e[18],_}var TQ=`Relaunch`,EQ=`Release notes`,DQ=`Updates paused`,OQ=`Download`,kQ=`Reset to defaults`,AQ=`Relaunching to install the update…`,jQ=`Relaunch failed — please restart manually`;function MQ(e){return`Update to ${e} didn't install.`}var NQ=`Retry`,PQ=`Download manually`,FQ=`Recovery action failed — please try again`;function IQ(e,t){let n=t instanceof Error&&t.message?t.message:``;return n?`${e}: ${n}`:e}function LQ(e){return`Version ${e} ready to install`}function RQ(e){return`Updated to Version ${e}`}function zQ(e){return`Your settings and recent projects were saved by a newer build than this one (v${e}). Reset to defaults to continue.`}var BQ=0,VQ=0,HQ=1,UQ=2,WQ=3,GQ=6e4;function KQ(e,t,n=()=>{},r=GQ,i={isEligible:()=>!1,onShown:()=>{}}){let a=[],o=new Set,s=`update-downloaded`;return a.push(e.onUpdateDownloaded(({version:r})=>{let i=s,a=()=>{t({id:i,body:LQ(r),priority:UQ,action:{label:TQ,onClick:()=>{t({id:i,body:AQ,priority:UQ,dismissible:!1}),e.update.relaunchNow().then(()=>{n(i)},e=>{a(),t({id:`relaunch-error-${r}`,body:IQ(jQ,e),variant:`error`,priority:HQ})})}}})};a()})),a.push(e.onUpdateRelaunching(()=>{t({id:s,body:AQ,priority:UQ,dismissible:!1})})),a.push(e.onUpdateRelaunchFailed(({version:r,message:i,downloadUrl:a})=>{if(a){let i=`install-failed-${r}`,o=()=>{t({id:i,body:MQ(r),variant:`error`,priority:HQ,action:{label:NQ,onClick:()=>{e.update.relaunchNow().then(()=>{n(i)},e=>{console.warn(`[update-notice] install-failed retry rejected`,e),o()})}},secondaryAction:{label:PQ,onClick:()=>{e.shell.openExternal(a)}}})};o();return}t({id:`relaunch-error-${r}`,body:i?`${jQ}: ${i}`:jQ,variant:`error`,priority:HQ})})),a.push(e.onWhatsNew(({version:a,releaseUrl:s})=>{if(i.isEligible(a)){i.onShown(a),t({id:`whats-new-combined-${a}`,body:RQ(a),variant:`success`,priority:WQ,combinedSubscribe:!0,whatsNew:{version:a,releaseUrl:s},action:{label:EQ,onClick:()=>{e.shell.openExternal(s)}}}),e.update.dismissWhatsNew(a);return}let c=`whats-new-${a}`;t({id:c,body:RQ(a),variant:`success`,priority:WQ,action:{label:EQ,onClick:()=>{e.shell.openExternal(s)}},onDismiss:()=>{e.update.dismissWhatsNew(a)}});let l=setTimeout(()=>{o.delete(l),n(c),e.update.dismissWhatsNew(a)},r);o.add(l)})),a.push(e.onWhatsNewDismissed(({version:e})=>{n(`whats-new-${e}`)})),a.push(e.onUpdateStuckHint(({downloadUrl:n})=>{t({id:`update-stuck-hint`,body:DQ,priority:VQ,action:{label:OQ,onClick:()=>{e.shell.openExternal(n)}}})})),()=>{for(let e of a)e();for(let e of o)clearTimeout(e);o.clear()}}function qQ(e,t,n,r=()=>{}){let i=`schema-incompatibility-${t.persistedSchemaVersion}`,a=`schema-incompatibility-error-${t.persistedSchemaVersion}`,o=e=>{r(i),n({id:a,body:IQ(FQ,e),variant:`error`,priority:BQ})};n({id:i,body:zQ(t.currentBuild),priority:BQ,action:{label:kQ,onClick:()=>{e.state.resetIncompatible().then(()=>{r(i)},o)}}})}var JQ=[],YQ=new Set,XQ=!1;function ZQ(){for(let e of YQ)e()}function QQ(e){let t=JQ.findIndex(t=>t.id===e.id);if(t===-1)JQ=[...JQ,e];else{let n=JQ.slice();n[t]=e,JQ=n}ZQ()}function $Q(e){let t=JQ.filter(t=>t.id!==e);t.length!==JQ.length&&(JQ=t,ZQ())}function e$(){return JQ}function t$(e){return YQ.add(e),()=>{YQ.delete(e)}}function n$(){if(XQ||typeof window>`u`)return;let e=window.okDesktop;e&&(XQ=!0,KQ(e,QQ,$Q,void 0,{isEligible:e=>wI(jI.getSnapshot(),e),onShown:e=>jI.recordShown(e)}),e.state.query().then(t=>{t.schemaIncompatibility&&qQ(e,t.schemaIncompatibility,QQ,$Q)},e=>{console.warn(`[update-notices-store] bridge.state.query() failed`,e)}))}var r$=6e4,i$=e=>{let t=(0,$.c)(11),{href:n,label:r,icon:i}=e,a,o;t[0]===n?(a=t[1],o=t[2]):(a=e=>Lu(e,n),o=e=>Lu(e,n),t[0]=n,t[1]=a,t[2]=o);let s;t[3]===i?s=t[4]:(s=(0,Z.jsx)(i,{"aria-hidden":`true`,className:`size-3.5`}),t[3]=i,t[4]=s);let c;return t[5]!==n||t[6]!==r||t[7]!==a||t[8]!==o||t[9]!==s?(c=(0,Z.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,onClick:a,onAuxClick:o,"aria-label":r,className:`rounded-md p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground`,children:s}),t[5]=n,t[6]=r,t[7]=a,t[8]=o,t[9]=s,t[10]=c):c=t[10],c};function a$(e){let t=(0,$.c)(34),{version:n,onOpenReleaseNotes:r,onClose:i,store:a,autoDismissMs:o}=e,s=a===void 0?jI:a,c=o===void 0?r$:o,{_:l}=kt(),[u,d]=(0,Q.useState)(!1),f,p;t[0]!==c||t[1]!==i||t[2]!==u?(f=()=>{if(!u)return;let e=setTimeout(i,c);return()=>clearTimeout(e)},p=[u,i,c],t[0]=c,t[1]=i,t[2]=u,t[3]=f,t[4]=p):(f=t[3],p=t[4]),(0,Q.useEffect)(f,p);let m;t[5]===l?m=t[6]:(m=l({id:`GzPQ2f`}),t[5]=l,t[6]=m);let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Z.jsx)(J,{id:`yLEyuq`}),t[7]=h):h=t[7];let g;t[8]===s?g=t[9]:(g=()=>{s.markSubscribed(),d(!0)},t[8]=s,t[9]=g);let _;t[10]!==i||t[11]!==s?(_=()=>{s.dismiss(),i()},t[10]=i,t[11]=s,t[12]=_):_=t[12];let v;t[13]!==g||t[14]!==_?(v=(0,Z.jsx)(vI,{source:`post_update_card`,compactSubmit:!0,description:h,onSuccess:g,onDismiss:_}),t[13]=g,t[14]=_,t[15]=v):v=t[15];let y;t[16]!==l||t[17]!==u?(y=u?null:(0,Z.jsxs)(`nav`,{"aria-label":l({id:`dbapvC`}),className:`mt-3 flex items-center gap-1.5 text-muted-foreground text-xs`,children:[(0,Z.jsx)(`span`,{className:`mr-0.5`,children:(0,Z.jsx)(J,{id:`9sBe85`})}),(0,Z.jsx)(i$,{href:xI,label:l({id:`I7Exsw`}),icon:FI}),(0,Z.jsx)(i$,{href:yI,label:l({id:`zyKa-I`}),icon:PI}),(0,Z.jsx)(i$,{href:bI,label:l({id:`36aWJD`}),icon:NI})]}),t[16]=l,t[17]=u,t[18]=y):y=t[18];let b;t[19]!==y||t[20]!==v?(b=(0,Z.jsxs)(`div`,{className:`px-3 py-2.5`,children:[v,y]}),t[19]=y,t[20]=v,t[21]=b):b=t[21];let x;t[22]===n?x=t[23]:(x=(0,Z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:(0,Z.jsx)(J,{id:`hLy8b1`,values:{version:n}})}),t[22]=n,t[23]=x);let S;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Z.jsx)(J,{id:`_PACVa`}),t[24]=S):S=t[24];let C;t[25]===r?C=t[26]:(C=(0,Z.jsx)(Y,{variant:`link`,size:`sm`,className:`h-auto p-0 text-muted-foreground text-xs hover:text-foreground`,onClick:r,children:S}),t[25]=r,t[26]=C);let w;t[27]!==x||t[28]!==C?(w=(0,Z.jsxs)(`div`,{className:`flex items-center justify-between border-t bg-muted/30 px-3 py-2.5 space-x-2`,children:[x,C]}),t[27]=x,t[28]=C,t[29]=w):w=t[29];let T;return t[30]!==b||t[31]!==w||t[32]!==m?(T=(0,Z.jsxs)(`section`,{"aria-label":m,className:`mx-1 mb-1 overflow-hidden rounded-lg border bg-card text-card-foreground`,children:[b,w]}),t[30]=b,t[31]=w,t[32]=m,t[33]=T):T=t[33],T}function o$(e){let t=(0,$.c)(37),{notice:n,onDismiss:r}=e,{_:i}=kt(),a=n.variant===`error`?`border-destructive/60 bg-sidebar-accent/30 text-muted-foreground`:n.variant===`success`?`border-emerald-500/40 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400`:`border-sidebar-border bg-sidebar-accent/30 text-muted-foreground`,o;t[0]!==i||t[1]!==n.dismissible||t[2]!==r?(o=n.dismissible===!1?null:(0,Z.jsx)(Y,{variant:`ghost`,size:`icon`,className:`size-5 shrink-0 text-muted-foreground hover:text-sidebar-foreground`,"aria-label":i({id:`GUYwCr`}),onClick:r,children:(0,Z.jsx)(al,{"aria-hidden":`true`,className:`size-3`})}),t[0]=i,t[1]=n.dismissible,t[2]=r,t[3]=o):o=t[3];let s=o,c=`shrink-0 text-xs font-medium underline underline-offset-2 ${n.variant===`success`?`decoration-emerald-500/40`:`decoration-muted-foreground/40`} hover:text-sidebar-foreground hover:decoration-sidebar-foreground`;if(n.secondaryAction){let e=`update-notice-${n.id}`,r=`flex flex-col gap-2 rounded-md border px-2 py-2 text-xs ${a}`,i;t[4]===n.body?i=t[5]:(i=(0,Z.jsx)(`span`,{className:`flex-1 leading-snug`,children:n.body}),t[4]=n.body,t[5]=i);let o;t[6]!==s||t[7]!==i?(o=(0,Z.jsxs)(`div`,{className:`flex items-start gap-2`,children:[i,s]}),t[6]=s,t[7]=i,t[8]=o):o=t[8];let l;t[9]!==c||t[10]!==n.action?(l=n.action?(0,Z.jsx)(`button`,{type:`button`,className:c,onClick:()=>{n.action?.onClick()},children:n.action.label}):null,t[9]=c,t[10]=n.action,t[11]=l):l=t[11];let u;t[12]===n.secondaryAction?u=t[13]:(u=()=>{n.secondaryAction?.onClick()},t[12]=n.secondaryAction,t[13]=u);let d;t[14]!==c||t[15]!==n.secondaryAction.label||t[16]!==u?(d=(0,Z.jsx)(`button`,{type:`button`,className:c,onClick:u,children:n.secondaryAction.label}),t[14]=c,t[15]=n.secondaryAction.label,t[16]=u,t[17]=d):d=t[17];let f;t[18]!==l||t[19]!==d?(f=(0,Z.jsxs)(`div`,{className:`flex gap-3 pl-1`,children:[l,d]}),t[18]=l,t[19]=d,t[20]=f):f=t[20];let p;return t[21]!==e||t[22]!==r||t[23]!==o||t[24]!==f?(p=(0,Z.jsxs)(`div`,{role:`status`,"aria-live":`polite`,"data-testid":e,className:r,children:[o,f]}),t[21]=e,t[22]=r,t[23]=o,t[24]=f,t[25]=p):p=t[25],p}let l=`update-notice-${n.id}`,u=`flex items-center gap-2 rounded-md border px-2 py-1.5 text-xs ${a}`,d;t[26]===n.body?d=t[27]:(d=(0,Z.jsx)(`span`,{className:`flex-1 leading-snug`,children:n.body}),t[26]=n.body,t[27]=d);let f;t[28]!==c||t[29]!==n.action?(f=n.action?(0,Z.jsx)(`button`,{type:`button`,className:c,onClick:()=>{n.action?.onClick()},children:n.action.label}):null,t[28]=c,t[29]=n.action,t[30]=f):f=t[30];let p;return t[31]!==s||t[32]!==l||t[33]!==u||t[34]!==d||t[35]!==f?(p=(0,Z.jsxs)(`div`,{role:`status`,"aria-live":`polite`,"data-testid":l,className:u,children:[d,f,s]}),t[31]=s,t[32]=l,t[33]=u,t[34]=d,t[35]=f,t[36]=p):p=t[36],p}function s$(e){if(e.length===0)return null;let t=e[0];if(!t)return null;for(let n=1;n<e.length;n++){let r=e[n];r&&r.priority<t.priority&&(t=r)}return t}function c$(){let e=(0,$.c)(15),t=(0,Q.useSyncExternalStore)(t$,e$,e$),n;e[0]===t?n=e[1]:(n=s$(t),e[0]=t,e[1]=n);let r=n;if(!r)return null;if(r.combinedSubscribe&&r.whatsNew){let t;e[2]===r.action?t=e[3]:(t=()=>r.action?.onClick(),e[2]=r.action,e[3]=t);let n;e[4]===r.id?n=e[5]:(n=()=>$Q(r.id),e[4]=r.id,e[5]=n);let i;return e[6]!==r.whatsNew.version||e[7]!==t||e[8]!==n?(i=(0,Z.jsx)(`div`,{"data-testid":`update-notices-list`,children:(0,Z.jsx)(a$,{version:r.whatsNew.version,onOpenReleaseNotes:t,onClose:n})}),e[6]=r.whatsNew.version,e[7]=t,e[8]=n,e[9]=i):i=e[9],i}let i;e[10]===r?i=e[11]:(i=()=>{r.onDismiss?.(),$Q(r.id)},e[10]=r,e[11]=i);let a;return e[12]!==r||e[13]!==i?(a=(0,Z.jsx)(`div`,{"data-testid":`update-notices-list`,children:(0,Z.jsx)(o$,{notice:r,onDismiss:i})}),e[12]=r,e[13]=i,e[14]=a):a=e[14],a}function l$(e,t){return e?.kind===`doc`||e?.kind===`folder-index`?uc(t.contentDir,mc(e.docName),t.pathSeparator):e?.kind===`folder`?uc(t.contentDir,e.folderPath,t.pathSeparator):e?.kind===`asset`?uc(t.contentDir,e.assetPath,t.pathSeparator):t.contentDir}function u$(e){return e?.kind===`doc`||e?.kind===`folder-index`?mc(e.docName):e?.kind===`folder`?e.folderPath:e?.kind===`asset`?e.assetPath:``}function d$(e,t){return e===null?rc({workspace:t}):e.kind===`folder`?t?Ks({folderRelativePath:e.folderPath,workspace:t}):null:e.kind===`doc`||e.kind===`folder-index`?Bs({docName:e.docName,workspace:t}):null}var f$={folderCount:0,expandedCount:0},p$=`button, [role="button"], [role="menuitem"], input, textarea, select, a[href]`;function m$(e){return typeof Element>`u`||!(e instanceof Element)?!1:e.closest(p$)!==null}function h$(e){let t=(0,$.c)(2),{onOpenSearch:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Z.jsx)(Hl,{name:`file-sidebar`,children:(0,Z.jsx)(v$,{onOpenSearch:n})}),t[0]=n,t[1]=r),r}var g$=e=>{let t=(0,$.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({icon:n,label:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=(0,Z.jsx)(n,{"aria-hidden":`true`}),t[4]=n,t[5]=a);let o;t[6]!==r||t[7]!==i||t[8]!==a?(o=(0,Z.jsx)(xn,{asChild:!0,children:(0,Z.jsx)(Y,{variant:`ghost`,size:`icon-sm`,"aria-label":r,...i,children:a})}),t[6]=r,t[7]=i,t[8]=a,t[9]=o):o=t[9];let s;t[10]===r?s=t[11]:(s=(0,Z.jsx)(Sn,{children:r}),t[10]=r,t[11]=s);let c;return t[12]!==o||t[13]!==s?(c=(0,Z.jsxs)(wn,{children:[o,s]}),t[12]=o,t[13]=s,t[14]=c):c=t[14],c},_$=e=>{let t=(0,$.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({icon:n,label:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=(0,Z.jsx)(n,{"aria-hidden":`true`}),t[4]=n,t[5]=a);let o;t[6]!==r||t[7]!==i||t[8]!==a?(o=(0,Z.jsx)(xn,{asChild:!0,children:(0,Z.jsx)(Nr,{asChild:!0,children:(0,Z.jsx)(Y,{variant:`ghost`,size:`icon-sm`,"aria-label":r,...i,children:a})})}),t[6]=r,t[7]=i,t[8]=a,t[9]=o):o=t[9];let s;t[10]===r?s=t[11]:(s=(0,Z.jsx)(Sn,{children:r}),t[10]=r,t[11]=s);let c;return t[12]!==o||t[13]!==s?(c=(0,Z.jsxs)(wn,{children:[o,s]}),t[12]=o,t[13]=s,t[14]=c):c=t[14],c};function v$(e){let t=(0,$.c)(309),{onOpenSearch:n}=e,{_:r}=kt(),[i,a]=(0,Q.useState)(null),[o,s]=(0,Q.useState)(null),{activeDocName:c,activeTarget:l}=Xe(),u;t[0]!==c||t[1]!==l?(u=l?.kind===`folder`||l?.kind===`folder-index`?l.folderPath:Cl(c),t[0]=c,t[1]=l,t[2]=u):u=t[2];let d=u,f;t[3]===d?f=t[4]:(f=jl(d)?``:d,t[3]=d,t[4]=f);let p=f,[m,h]=(0,Q.useState)(!1),g=m?``:p,_=typeof window<`u`&&window.okDesktop!=null,{state:v,toggleSidebar:y}=YM(),b=fc(),x=v===`expanded`,S=_&&v===`collapsed`,[C,w]=(0,Q.useState)(f$),T,E;t[5]===i?(T=t[6],E=t[7]):(T=()=>{if(i===null)return;let e=()=>{w(i.getFolderState()),h(i.isCreationTargetCleared())};return e(),i.subscribe(e)},E=[i],t[5]=i,t[6]=T,t[7]=E),(0,Q.useEffect)(T,E);let D,O;t[8]===i?(D=t[9],O=t[10]):(D=()=>{if(i!==null)return bC(e=>{let t=e.initialDir??``;if(e.template){i.createFromTemplate(e.template.folder,e.template.name);return}i.startCreating(`file`,t)})},O=[i],t[8]=i,t[9]=D,t[10]=O),(0,Q.useEffect)(D,O);let k=C.folderCount>0,A=k&&C.expandedCount===C.folderCount,j=C.expandedCount===0,M=Ri(``),N=Ri(g===``?null:g),P=g===``?M:N,F=M.state.status===`ready`?(M.state.data.folder.templates_available?.length??0)>0:!0,I=P.state.status===`ready`?(P.state.data.folder.templates_available?.length??0)>0:!0,L=typeof window<`u`?window.okDesktop:void 0,R=ic(),{status:z}=cs(),B=z?.hasRemote===!0,V;t[11]!==r||t[12]!==R?.contentDir?(V=L?.config?.projectName||R?.contentDir.split(`/`).filter(Boolean).pop()||r({id:`sER-bs`}),t[11]=r,t[12]=R?.contentDir,t[13]=V):V=t[13];let H=V,U=$s().states,{dispatch:W}=Is(),G;t[14]===R?G=t[15]:(G=rc({workspace:R}),t[14]=R,t[15]=G);let K=G,{projectLocalBinding:q,merged:ee}=Iu(),te=ee?.appearance?.sidebar?.showHiddenFiles??!1,ne=ee?.appearance?.sidebar?.showOkFolders??!1,re=ee?.appearance?.sidebar?.showOnlyMarkdownFiles??!1,ie=ee?.appearance?.sidebar?.showSkillsSection??!0,ae=k&&!A,oe=k&&!j,se=ae||oe,ce=(0,Q.useRef)(!1),le;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(le=e=>{ce.current&&(ce.current=!1,e.preventDefault())},t[16]=le):le=t[16];let ue=le,de=C$,fe;t[17]!==i||t[18]!==R?(fe=()=>{R&&(ce.current=!0,i?.startCreating(`file`,``))},t[17]=i,t[18]=R,t[19]=fe):fe=t[19];let pe=fe,me;t[20]!==i||t[21]!==R?(me=e=>{R&&(ce.current=!0,i?.createFromTemplate(``,e))},t[20]=i,t[21]=R,t[22]=me):me=t[22];let he=me,ge;t[23]!==i||t[24]!==R?(ge=()=>{R&&(ce.current=!0,i?.startCreating(`folder`,``))},t[23]=i,t[24]=R,t[25]=ge):ge=t[25];let _e=ge,ve;t[26]===R?ve=t[27]:(ve=()=>{!R||!L||L.shell.showItemInFolder(R.contentDir)},t[26]=R,t[27]=ve);let ye=ve,be;t[28]!==r||t[29]!==R?(be=async()=>{if(R)try{await navigator.clipboard.writeText(R.contentDir),ol.success(r({id:`6_ZOw4`}),{description:R.contentDir})}catch(e){console.warn(`[FileSidebar] clipboard write failed:`,e),ol.error(r({id:`vfRlCI`}))}},t[28]=r,t[29]=R,t[30]=be):be=t[30];let xe=be,Se;t[31]!==r||t[32]!==B?(Se=()=>{vi({...hi(``),hasRemote:B,onClickWhenNoRemote:()=>{ol.error(r({id:`WyQxwa`}))}},{clipboardWrite:$u,toastSuccess:S$,toastError:x$,logEvent:b$})},t[31]=r,t[32]=B,t[33]=Se):Se=t[33];let Ce=Se,we;t[34]!==r||t[35]!==q?(we=e=>{if(q===null)return;let t=q.patch({appearance:{sidebar:e}});t.ok||(console.warn(`[FileSidebar] sidebar visibility toggle rejected:`,jo(t.error)),ol.error(r({id:`P47EWZ`}),{description:jo(t.error)}))},t[34]=r,t[35]=q,t[36]=we):we=t[36];let Te=we,Ee;t[37]===i?Ee=t[38]:(Ee=()=>{i?.expandAll()},t[37]=i,t[38]=Ee);let De=Ee,Oe;t[39]===i?Oe=t[40]:(Oe=()=>{i?.collapseAll()},t[39]=i,t[40]=Oe);let ke=Oe,Ae,je;t[41]!==oe||t[42]!==ae||t[43]!==te||t[44]!==ne||t[45]!==re||t[46]!==ie||t[47]!==v?(Ae=()=>{L&&L.editor.notifyViewMenuStateChanged({showHiddenFiles:te,showOkFolders:ne,showOnlyMarkdownFiles:re,showSkillsSection:ie,canExpandAll:ae,canCollapseAll:oe,sidebarVisible:v===`expanded`})},je=[L,te,ne,re,ie,ae,oe,v],t[41]=oe,t[42]=ae,t[43]=te,t[44]=ne,t[45]=re,t[46]=ie,t[47]=v,t[48]=Ae,t[49]=je):(Ae=t[48],je=t[49]),(0,Q.useEffect)(Ae,je);let Me;t[50]!==r||t[51]!==l||t[52]!==W||t[53]!==U||t[54]!==g||t[55]!==Te||t[56]!==te||t[57]!==ne||t[58]!==re||t[59]!==ie||t[60]!==y||t[61]!==i||t[62]!==R?(Me=()=>{if(L)return L.onMenuAction(e=>{let t=l!==null&&jl(u$(l));switch(e){case`new-doc`:if(!R||!i)return;i.startCreating(`file`,g);return;case`new-folder`:if(!R||!i)return;i.startCreating(`folder`,g);return;case`new-from-template`:if(!R||!i)return;i.startCreatingFromTemplate(g);return;case`rename`:if(!l||t)return;CY(l);return;case`duplicate`:if(!l||t)return;TY(l);return;case`move-to-trash`:if(!l||t)return;xY(l);return;case`reveal-in-finder`:{if(!L||!R)return;let e=l$(l,R);L.shell.showItemInFolder(e);return}case`send-to-ai`:{let e=zs.filter(e=>U[e.id]?.installed===!0);if(e.length===0){ol.error(r({id:`LKOLNn`}));return}let t=d$(l,R);if(!t)return;let[n]=e;if(!n)return;W(n.id,t);return}case`copy-full-path`:{if(!R)return;let e=l$(l,R);navigator.clipboard.writeText(e).then(()=>ol.success(r({id:`6_ZOw4`}),{description:e})).catch(e=>{console.warn(`[FileSidebar] clipboard write failed:`,e),ol.error(r({id:`vfRlCI`}))});return}case`copy-relative-path`:{let e=u$(l);if(e===``){ol.error(r({id:`74eHt-`}));return}navigator.clipboard.writeText(e).then(()=>ol.success(r({id:`haHgQj`}),{description:e})).catch(e=>{console.warn(`[FileSidebar] clipboard write failed:`,e),ol.error(r({id:`5QGTaA`}))});return}case`toggle-show-ok-folders`:Te({showOkFolders:!ne});return;case`toggle-show-hidden-files`:Te({showHiddenFiles:!te});return;case`toggle-show-only-markdown-files`:Te({showOnlyMarkdownFiles:!re});return;case`toggle-show-skills-section`:Te({showSkillsSection:!ie});return;case`expand-all-tree`:i?.expandAll();return;case`collapse-all-tree`:i?.collapseAll();return;case`toggle-sidebar`:y();return;case`delete`:case`toggle-source`:case`save-version`:case`version-history`:case`focus-search`:case`focus-command-palette`:case`close-active-tab-or-window`:case`toggle-doc-panel`:return}})},t[50]=r,t[51]=l,t[52]=W,t[53]=U,t[54]=g,t[55]=Te,t[56]=te,t[57]=ne,t[58]=re,t[59]=ie,t[60]=y,t[61]=i,t[62]=R,t[63]=Me):Me=t[63];let Ne;t[64]!==r||t[65]!==l||t[66]!==W||t[67]!==U||t[68]!==g||t[69]!==q||t[70]!==te||t[71]!==ne||t[72]!==re||t[73]!==ie||t[74]!==y||t[75]!==i||t[76]!==R?(Ne=[L,i,R,l,g,q,te,ne,re,ie,U,W,y,r],t[64]=r,t[65]=l,t[66]=W,t[67]=U,t[68]=g,t[69]=q,t[70]=te,t[71]=ne,t[72]=re,t[73]=ie,t[74]=y,t[75]=i,t[76]=R,t[77]=Ne):Ne=t[77],(0,Q.useEffect)(Me,Ne);let Pe=_&&x&&`motion-safe:delay-100`,Fe=S&&`opacity-0`,Ie;t[78]!==Pe||t[79]!==Fe?(Ie=X(`flex-row h-12 items-center py-0 px-3`,`justify-between`,_&&`overflow-x-clip`,_&&`motion-safe:transition-opacity motion-safe:duration-100 motion-safe:ease-out`,Pe,Fe,_&&`[-webkit-app-region:drag]`),t[78]=Pe,t[79]=Fe,t[80]=Ie):Ie=t[80];let Le;t[81]===Symbol.for(`react.memo_cache_sentinel`)?(Le=_?(0,Z.jsx)(`div`,{"aria-hidden":`true`,"data-testid":`sidebar-traffic-light-reserve`,className:`w-[var(--ok-titlebar-reserve-left,0px)] shrink-0 self-stretch`}):null,t[81]=Le):Le=t[81];let Re;t[82]===x?Re=t[83]:(Re=x&&!_?(0,Z.jsx)(`span`,{className:`shrink-0 font-mono text-sm uppercase tracking-wider text-sidebar-foreground/50`,children:(0,Z.jsx)(J,{id:`sER-bs`})}):null,t[82]=x,t[83]=Re);let Be;t[84]===Symbol.for(`react.memo_cache_sentinel`)?(Be=X(`flex items-center gap-1`,_&&`[&>*]:[-webkit-app-region:no-drag]`),t[84]=Be):Be=t[84];let Ve;t[85]===r?Ve=t[86]:(Ve=r({id:`Rq1vFD`}),t[85]=r,t[86]=Ve);let He;t[87]===Ve?He=t[88]:(He=(0,Z.jsx)(_$,{icon:jm,label:Ve}),t[87]=Ve,t[88]=He);let Ue;t[89]!==ae||t[90]!==i?(Ue=ae?(0,Z.jsxs)(qr,{onSelect:()=>i?.expandAll(),children:[(0,Z.jsx)(_h,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`OlAl5i`})]}):null,t[89]=ae,t[90]=i,t[91]=Ue):Ue=t[91];let We;t[92]!==oe||t[93]!==i?(We=oe?(0,Z.jsxs)(qr,{onSelect:()=>i?.collapseAll(),children:[(0,Z.jsx)(ym,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`qvWGzP`})]}):null,t[92]=oe,t[93]=i,t[94]=We):We=t[94];let Ge;t[95]===se?Ge=t[96]:(Ge=se?(0,Z.jsx)(Ur,{}):null,t[95]=se,t[96]=Ge);let Ke;t[97]===r?Ke=t[98]:(Ke=r({id:`8vETh9`}),t[97]=r,t[98]=Ke);let qe;t[99]===Symbol.for(`react.memo_cache_sentinel`)?(qe=(0,Z.jsx)(ii,{children:(0,Z.jsx)(J,{id:`8vETh9`})}),t[99]=qe):qe=t[99];let Je;t[100]===Te?Je=t[101]:(Je=e=>Te({showHiddenFiles:e}),t[100]=Te,t[101]=Je);let Ye=q===null,Ze;t[102]===Symbol.for(`react.memo_cache_sentinel`)?(Ze=(0,Z.jsx)(J,{id:`6KCH4m`}),t[102]=Ze):Ze=t[102];let Qe;t[103]!==te||t[104]!==Je||t[105]!==Ye?(Qe=(0,Z.jsx)($r,{checked:te,onCheckedChange:Je,disabled:Ye,"data-testid":`tree-options-show-hidden-files`,children:Ze}),t[103]=te,t[104]=Je,t[105]=Ye,t[106]=Qe):Qe=t[106];let $e;t[107]===Te?$e=t[108]:($e=e=>Te({showOkFolders:e}),t[107]=Te,t[108]=$e);let et=q===null,tt;t[109]===Symbol.for(`react.memo_cache_sentinel`)?(tt=(0,Z.jsx)(J,{id:`ELYtNJ`}),t[109]=tt):tt=t[109];let nt;t[110]!==ne||t[111]!==$e||t[112]!==et?(nt=(0,Z.jsx)($r,{checked:ne,onCheckedChange:$e,disabled:et,"data-testid":`tree-options-show-ok-folders`,children:tt}),t[110]=ne,t[111]=$e,t[112]=et,t[113]=nt):nt=t[113];let rt;t[114]===Te?rt=t[115]:(rt=e=>Te({showOnlyMarkdownFiles:e}),t[114]=Te,t[115]=rt);let it=q===null,at;t[116]===Symbol.for(`react.memo_cache_sentinel`)?(at=(0,Z.jsx)(J,{id:`5-o4kO`}),t[116]=at):at=t[116];let ot;t[117]!==re||t[118]!==rt||t[119]!==it?(ot=(0,Z.jsx)($r,{checked:re,onCheckedChange:rt,disabled:it,"data-testid":`tree-options-show-only-markdown-files`,children:at}),t[117]=re,t[118]=rt,t[119]=it,t[120]=ot):ot=t[120];let st;t[121]===Te?st=t[122]:(st=e=>Te({showSkillsSection:e}),t[121]=Te,t[122]=st);let ct=q===null,lt;t[123]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,Z.jsx)(J,{id:`PCSkw2`}),t[123]=lt):lt=t[123];let ut;t[124]!==ie||t[125]!==st||t[126]!==ct?(ut=(0,Z.jsx)($r,{checked:ie,onCheckedChange:st,disabled:ct,"data-testid":`tree-options-show-skills`,children:lt}),t[124]=ie,t[125]=st,t[126]=ct,t[127]=ut):ut=t[127];let dt;t[128]!==Ke||t[129]!==Qe||t[130]!==nt||t[131]!==ot||t[132]!==ut?(dt=(0,Z.jsxs)(Jr,{"aria-label":Ke,children:[qe,Qe,nt,ot,ut]}),t[128]=Ke,t[129]=Qe,t[130]=nt,t[131]=ot,t[132]=ut,t[133]=dt):dt=t[133];let ft;t[134]!==Ue||t[135]!==We||t[136]!==Ge||t[137]!==dt?(ft=(0,Z.jsxs)(Yr,{align:`end`,className:`min-w-52`,"data-testid":`tree-options-menu`,children:[Ue,We,Ge,dt]}),t[134]=Ue,t[135]=We,t[136]=Ge,t[137]=dt,t[138]=ft):ft=t[138];let pt;t[139]!==He||t[140]!==ft?(pt=(0,Z.jsxs)(ti,{children:[He,ft]}),t[139]=He,t[140]=ft,t[141]=pt):pt=t[141];let mt;t[142]===r?mt=t[143]:(mt=r({id:`HdkSiO`}),t[142]=r,t[143]=mt);let ht;t[144]!==g||t[145]!==i?(ht=()=>i?.startCreating(`file`,g),t[144]=g,t[145]=i,t[146]=ht):ht=t[146];let gt;t[147]!==mt||t[148]!==ht?(gt=(0,Z.jsx)(g$,{icon:rh,label:mt,onClick:ht}),t[147]=mt,t[148]=ht,t[149]=gt):gt=t[149];let _t;t[150]!==r||t[151]!==I||t[152]!==g||t[153]!==i?(_t=I?(0,Z.jsxs)(ti,{children:[(0,Z.jsx)(_$,{icon:Gi,label:r({id:`Uuj_R4`})}),(0,Z.jsx)(Yr,{align:`end`,className:`min-w-52`,onCloseAutoFocus:ue,children:(0,Z.jsx)(pY,{parentDir:g,onSelectTemplate:e=>{ce.current=!0,i?.createFromTemplate(g,e)},ItemComponent:qr})})]}):null,t[150]=r,t[151]=I,t[152]=g,t[153]=i,t[154]=_t):_t=t[154];let vt;t[155]===r?vt=t[156]:(vt=r({id:`96G6Re`}),t[155]=r,t[156]=vt);let yt;t[157]!==g||t[158]!==i?(yt=()=>i?.startCreating(`folder`,g),t[157]=g,t[158]=i,t[159]=yt):yt=t[159];let bt;t[160]!==vt||t[161]!==yt?(bt=(0,Z.jsx)(g$,{icon:xm,label:vt,onClick:yt}),t[160]=vt,t[161]=yt,t[162]=bt):bt=t[162];let xt;t[163]!==pt||t[164]!==gt||t[165]!==_t||t[166]!==bt?(xt=(0,Z.jsxs)(`div`,{"data-testid":`sidebar-toolbar`,className:Be,children:[pt,gt,_t,bt]}),t[163]=pt,t[164]=gt,t[165]=_t,t[166]=bt,t[167]=xt):xt=t[167];let St;t[168]!==Ie||t[169]!==Re||t[170]!==xt?(St=(0,Z.jsxs)(rN,{"data-electron-drag":_?``:void 0,className:Ie,children:[Le,Re,xt]}),t[168]=Ie,t[169]=Re,t[170]=xt,t[171]=St):St=t[171];let Ct=_&&x&&`motion-safe:delay-100`,wt=S&&`opacity-0`,Tt;t[172]!==Ct||t[173]!==wt?(Tt=X(`px-2 pb-2`,_&&`[-webkit-app-region:no-drag]`,_&&`motion-safe:transition-opacity motion-safe:duration-100 motion-safe:ease-out`,Ct,wt),t[172]=Ct,t[173]=wt,t[174]=Tt):Tt=t[174];let Et;t[175]===v?Et=t[176]:(Et=[v],t[175]=v,t[176]=Et);let Dt;t[177]===n?Dt=t[178]:(Dt=(0,Z.jsx)(gQ,{onClick:n}),t[177]=n,t[178]=Dt);let Ot;t[179]!==Et||t[180]!==Dt?(Ot=(0,Z.jsx)(ze,{fallbackRender:y$,onError:hQ,resetKeys:Et,children:Dt}),t[179]=Et,t[180]=Dt,t[181]=Ot):Ot=t[181];let At;t[182]!==Tt||t[183]!==Ot?(At=(0,Z.jsx)(`div`,{className:Tt,children:Ot}),t[182]=Tt,t[183]=Ot,t[184]=At):At=t[184];let jt;t[185]===Symbol.for(`react.memo_cache_sentinel`)?(jt=(0,Z.jsx)(YL,{}),t[185]=jt):jt=t[185];let Mt;t[186]===Symbol.for(`react.memo_cache_sentinel`)?(Mt=(0,Z.jsx)(_c,{className:`size-3.5 shrink-0`}),t[186]=Mt):Mt=t[186];let Nt;t[187]===H?Nt=t[188]:(Nt=(0,Z.jsx)(`span`,{className:`truncate`,children:H}),t[187]=H,t[188]=Nt);let Pt;t[189]===Symbol.for(`react.memo_cache_sentinel`)?(Pt=(0,Z.jsx)(ks,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-[state=open]/files:rotate-90`}),t[189]=Pt):Pt=t[189];let Ft;t[190]===Nt?Ft=t[191]:(Ft=(0,Z.jsx)(sN,{asChild:!0,className:`shrink-0`,children:(0,Z.jsxs)(Dn,{"data-sidebar-root-context":!0,className:`flex w-full items-center gap-1.5`,children:[Mt,Nt,Pt]})}),t[190]=Nt,t[191]=Ft);let It=o==null?`50vh`:`${o}px`,Lt;t[192]===It?Lt=t[193]:(Lt={height:It},t[192]=It,t[193]=Lt);let Rt;t[194]===Symbol.for(`react.memo_cache_sentinel`)?(Rt=(0,Z.jsx)(VX,{ref:a,onContentHeightChange:s}),t[194]=Rt):Rt=t[194];let zt;t[195]===Lt?zt=t[196]:(zt=(0,Z.jsx)(En,{className:`flex max-h-[70vh] flex-col overflow-hidden`,style:Lt,children:Rt}),t[195]=Lt,t[196]=zt);let Bt;t[197]!==Ft||t[198]!==zt?(Bt=(0,Z.jsx)(On,{defaultOpen:!0,className:`group/files flex shrink-0 flex-col`,children:(0,Z.jsxs)(oN,{className:`min-h-0 px-0`,children:[Ft,zt]})}),t[197]=Ft,t[198]=zt,t[199]=Bt):Bt=t[199];let Vt;t[200]===ie?Vt=t[201]:(Vt=ie?(0,Z.jsx)(_Q,{}):null,t[200]=ie,t[201]=Vt);let Ht;t[202]===i?Ht=t[203]:(Ht=(0,Z.jsx)(`div`,{"aria-hidden":!0,"data-sidebar-empty-deselect":!0,className:`min-h-8 flex-1 cursor-default`,onClick:()=>i?.clearCreationTarget()}),t[202]=i,t[203]=Ht);let Ut;t[204]!==Bt||t[205]!==Vt||t[206]!==Ht?(Ut=(0,Z.jsxs)(aN,{children:[jt,Bt,Vt,Ht]}),t[204]=Bt,t[205]=Vt,t[206]=Ht,t[207]=Ut):Ut=t[207];let Wt;t[208]===Symbol.for(`react.memo_cache_sentinel`)?(Wt=(0,Z.jsxs)(iN,{className:`px-0`,children:[(0,Z.jsx)(RZ,{}),(0,Z.jsx)(c$,{}),typeof window<`u`&&window.okDesktop?(0,Z.jsx)(uN,{children:(0,Z.jsx)(dN,{children:(0,Z.jsx)(oQ,{bridge:window.okDesktop})})}):null]}),t[208]=Wt):Wt=t[208];let Gt=!(b&&v===`collapsed`),Kt;t[209]===Gt?Kt=t[210]:(Kt=(0,Z.jsx)(tN,{enableToggle:!1,enableDrag:Gt}),t[209]=Gt,t[210]=Kt);let qt;t[211]!==St||t[212]!==At||t[213]!==Ut||t[214]!==Kt?(qt=(0,Z.jsx)(gF,{asChild:!0,children:(0,Z.jsxs)(`div`,{className:`contents`,onContextMenu:de,children:[St,At,Ut,Wt,Kt]})}),t[211]=St,t[212]=At,t[213]=Ut,t[214]=Kt,t[215]=qt):qt=t[215];let Jt=!R,Yt,Xt;t[216]===Symbol.for(`react.memo_cache_sentinel`)?(Yt=(0,Z.jsx)(rh,{"aria-hidden":`true`}),Xt=(0,Z.jsx)(J,{id:`HdkSiO`}),t[216]=Yt,t[217]=Xt):(Yt=t[216],Xt=t[217]);let Zt;t[218]!==pe||t[219]!==Jt?(Zt=(0,Z.jsxs)(bF,{disabled:Jt,onSelect:pe,"data-testid":`empty-space-menu-new-file`,children:[Yt,Xt]}),t[218]=pe,t[219]=Jt,t[220]=Zt):Zt=t[220];let Qt;t[221]!==he||t[222]!==F||t[223]!==R?(Qt=F?(0,Z.jsxs)(vF,{children:[(0,Z.jsxs)(xF,{disabled:!R,"data-testid":`empty-space-menu-new-from-template`,children:[(0,Z.jsx)(Gi,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`Uuj_R4`})]}),(0,Z.jsx)(SF,{children:(0,Z.jsx)(pY,{parentDir:``,onSelectTemplate:he,ItemComponent:bF})})]}):null,t[221]=he,t[222]=F,t[223]=R,t[224]=Qt):Qt=t[224];let $t=!R,en,tn;t[225]===Symbol.for(`react.memo_cache_sentinel`)?(en=(0,Z.jsx)(xm,{"aria-hidden":`true`}),tn=(0,Z.jsx)(J,{id:`96G6Re`}),t[225]=en,t[226]=tn):(en=t[225],tn=t[226]);let nn;t[227]!==_e||t[228]!==$t?(nn=(0,Z.jsxs)(bF,{disabled:$t,onSelect:_e,"data-testid":`empty-space-menu-new-folder`,children:[en,tn]}),t[227]=_e,t[228]=$t,t[229]=nn):nn=t[229];let rn;t[230]===Symbol.for(`react.memo_cache_sentinel`)?(rn=(0,Z.jsx)(TF,{}),t[230]=rn):rn=t[230];let an;t[231]!==r||t[232]!==ye||t[233]!==R?(an=L?(0,Z.jsxs)(bF,{disabled:!R,onSelect:ye,"data-testid":`empty-space-menu-reveal-in-finder`,"aria-label":r(R?{id:`LtSYdi`}:{id:`o2yoFu`}),children:[(0,Z.jsx)(_c,{"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`flex-1`,children:(0,Z.jsx)(J,{id:`LtSYdi`})}),R?null:(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:(0,Z.jsx)(J,{id:`wTcjov`})})]}):null,t[231]=r,t[232]=ye,t[233]=R,t[234]=an):an=t[234];let on;t[235]!==W||t[236]!==K||t[237]!==U?(on=(0,Z.jsx)(EZ,{input:K,installStates:U,dispatch:W}),t[235]=W,t[236]=K,t[237]=U,t[238]=on):on=t[238];let sn;t[239]!==Ce||t[240]!==B?(sn=B?(0,Z.jsxs)(bF,{onSelect:Ce,"data-testid":`empty-space-menu-share`,children:[(0,Z.jsx)($m,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`Z8lGw6`})]}):null,t[239]=Ce,t[240]=B,t[241]=sn):sn=t[241];let cn=!R,ln;t[242]!==r||t[243]!==R?(ln=r(R?{id:`Up2_7p`}:{id:`U8CD-l`}),t[242]=r,t[243]=R,t[244]=ln):ln=t[244];let un;t[245]===Symbol.for(`react.memo_cache_sentinel`)?(un=(0,Z.jsx)(gc,{"aria-hidden":`true`}),t[245]=un):un=t[245];let dn;t[246]===Symbol.for(`react.memo_cache_sentinel`)?(dn=(0,Z.jsx)(`span`,{className:`flex-1`,children:(0,Z.jsx)(J,{id:`Up2_7p`})}),t[246]=dn):dn=t[246];let fn;t[247]===R?fn=t[248]:(fn=R?null:(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:(0,Z.jsx)(J,{id:`wTcjov`})}),t[247]=R,t[248]=fn);let Y;t[249]!==xe||t[250]!==cn||t[251]!==ln||t[252]!==fn?(Y=(0,Z.jsxs)(bF,{disabled:cn,onSelect:xe,"data-testid":`empty-space-menu-copy-full-path`,"aria-label":ln,children:[un,dn,fn]}),t[249]=xe,t[250]=cn,t[251]=ln,t[252]=fn,t[253]=Y):Y=t[253];let pn;t[254]===Symbol.for(`react.memo_cache_sentinel`)?(pn=(0,Z.jsx)(TF,{}),t[254]=pn):pn=t[254];let mn;t[255]===Te?mn=t[256]:(mn=e=>Te({showHiddenFiles:e}),t[255]=Te,t[256]=mn);let hn=q===null,gn;t[257]===Symbol.for(`react.memo_cache_sentinel`)?(gn=(0,Z.jsx)(J,{id:`XcGbim`}),t[257]=gn):gn=t[257];let _n;t[258]!==te||t[259]!==mn||t[260]!==hn?(_n=(0,Z.jsx)(CF,{checked:te,onCheckedChange:mn,disabled:hn,"data-testid":`empty-space-menu-show-hidden-files`,children:gn}),t[258]=te,t[259]=mn,t[260]=hn,t[261]=_n):_n=t[261];let vn;t[262]===Te?vn=t[263]:(vn=e=>Te({showOkFolders:e}),t[262]=Te,t[263]=vn);let yn=q===null,bn;t[264]===Symbol.for(`react.memo_cache_sentinel`)?(bn=(0,Z.jsx)(J,{id:`GHsJb8`}),t[264]=bn):bn=t[264];let xn;t[265]!==ne||t[266]!==vn||t[267]!==yn?(xn=(0,Z.jsx)(CF,{checked:ne,onCheckedChange:vn,disabled:yn,"data-testid":`empty-space-menu-show-ok-folders`,children:bn}),t[265]=ne,t[266]=vn,t[267]=yn,t[268]=xn):xn=t[268];let Sn;t[269]===Te?Sn=t[270]:(Sn=e=>Te({showOnlyMarkdownFiles:e}),t[269]=Te,t[270]=Sn);let Cn=q===null,wn;t[271]===Symbol.for(`react.memo_cache_sentinel`)?(wn=(0,Z.jsx)(J,{id:`WkTLN7`}),t[271]=wn):wn=t[271];let Tn;t[272]!==re||t[273]!==Sn||t[274]!==Cn?(Tn=(0,Z.jsx)(CF,{checked:re,onCheckedChange:Sn,disabled:Cn,"data-testid":`empty-space-menu-show-only-markdown-files`,children:wn}),t[272]=re,t[273]=Sn,t[274]=Cn,t[275]=Tn):Tn=t[275];let kn;t[276]===Te?kn=t[277]:(kn=e=>Te({showSkillsSection:e}),t[276]=Te,t[277]=kn);let An=q===null,jn;t[278]===Symbol.for(`react.memo_cache_sentinel`)?(jn=(0,Z.jsx)(J,{id:`NF_Wcg`}),t[278]=jn):jn=t[278];let Mn;t[279]!==ie||t[280]!==kn||t[281]!==An?(Mn=(0,Z.jsx)(CF,{checked:ie,onCheckedChange:kn,disabled:An,"data-testid":`empty-space-menu-show-skills-section`,children:jn}),t[279]=ie,t[280]=kn,t[281]=An,t[282]=Mn):Mn=t[282];let Nn;t[283]===se?Nn=t[284]:(Nn=se?(0,Z.jsx)(TF,{}):null,t[283]=se,t[284]=Nn);let Pn;t[285]!==De||t[286]!==ae?(Pn=ae?(0,Z.jsxs)(bF,{onSelect:De,"data-testid":`empty-space-menu-expand-all`,children:[(0,Z.jsx)(_h,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`OlAl5i`})]}):null,t[285]=De,t[286]=ae,t[287]=Pn):Pn=t[287];let Fn;t[288]!==ke||t[289]!==oe?(Fn=oe?(0,Z.jsxs)(bF,{onSelect:ke,"data-testid":`empty-space-menu-collapse-all`,children:[(0,Z.jsx)(ym,{"aria-hidden":`true`}),(0,Z.jsx)(J,{id:`qvWGzP`})]}):null,t[288]=ke,t[289]=oe,t[290]=Fn):Fn=t[290];let In;t[291]!==sn||t[292]!==Y||t[293]!==_n||t[294]!==xn||t[295]!==Tn||t[296]!==Mn||t[297]!==Nn||t[298]!==Pn||t[299]!==Fn||t[300]!==Zt||t[301]!==Qt||t[302]!==nn||t[303]!==an||t[304]!==on?(In=(0,Z.jsxs)(yF,{className:`min-w-52`,onCloseAutoFocus:ue,children:[Zt,Qt,nn,rn,an,on,sn,Y,pn,_n,xn,Tn,Mn,Nn,Pn,Fn]}),t[291]=sn,t[292]=Y,t[293]=_n,t[294]=xn,t[295]=Tn,t[296]=Mn,t[297]=Nn,t[298]=Pn,t[299]=Fn,t[300]=Zt,t[301]=Qt,t[302]=nn,t[303]=an,t[304]=on,t[305]=In):In=t[305];let Ln;return t[306]!==In||t[307]!==qt?(Ln=(0,Z.jsx)($M,{variant:`inset`,children:(0,Z.jsxs)(hF,{children:[qt,In]})}),t[306]=In,t[307]=qt,t[308]=Ln):Ln=t[308],Ln}function y$(){return null}function b$(e){return console.log(e)}function x$(e){return ol.error(e)}function S$(e){return ol.success(e)}function C$(e){e.target instanceof Element&&e.target.closest(`[data-sidebar-root-context]`)||m$(e.target)&&(e.preventDefault(),e.stopPropagation())}var w$=(0,Q.lazy)(()=>n(()=>import(`./McpConsentDialogBody-DoSFKWJ-.js`),__vite__mapDeps([111,1,6,2,3,7,8,9,10,11,12,13,14,15,16,17,18,19,20,91,22,46,80,81,28,112]),import.meta.url));function T$(){let e=(0,$.c)(1);if(!(0,Q.useSyncExternalStore)(Ad.subscribe,D$,E$))return null;let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(Q.Suspense,{fallback:null,children:(0,Z.jsx)(w$,{})}),e[0]=t):t=e[0],t}function E$(){return!1}function D$(){return Ad.getSnapshot()!==null}function O$(e){let t=(0,$.c)(5),{bridge:n}=e,[r,i]=(0,Q.useState)(!1),a,o;t[0]===n?(a=t[1],o=t[2]):(a=()=>n.onMenuAction(e=>{e===`report-bug`&&i(!0)}),o=[n],t[0]=n,t[1]=a,t[2]=o),(0,Q.useEffect)(a,o);let s;return t[3]===r?s=t[4]:(s=(0,Z.jsx)(Of,{open:r,onOpenChange:i}),t[3]=r,t[4]=s),s}function k$(){let e=(0,$.c)(17),t=nn(),{collabUrl:n,setSystemProvider:r,updateServerInstanceId:i,onBranchSwitched:a,observeBranch:o,observeDiskAck:s,refreshServerInfo:c}=Xe(),l;e[0]!==o||e[1]!==s||e[2]!==a||e[3]!==c||e[4]!==i?(l={updateServerInstanceId:i,onBranchSwitched:a,observeBranch:o,observeDiskAck:s,refreshServerInfo:c},e[0]=o,e[1]=s,e[2]=a,e[3]=c,e[4]=i,e[5]=l):l=e[5];let u=(0,Q.useRef)(l),d;e[6]!==o||e[7]!==s||e[8]!==a||e[9]!==c||e[10]!==i?(d=()=>{u.current={updateServerInstanceId:i,onBranchSwitched:a,observeBranch:o,observeDiskAck:s,refreshServerInfo:c}},e[6]=o,e[7]=s,e[8]=a,e[9]=c,e[10]=i,e[11]=d):d=e[11],(0,Q.useEffect)(d);let f,p;return e[12]!==n||e[13]!==t||e[14]!==r?(f=()=>{if(n===null)return;let e=new fu,i=new uu({url:n,name:ya,document:e,onStateless:e=>{let{payload:t}=e;F(t,{onServerInfo:e=>{u.current.updateServerInstanceId(e.serverInstanceId),e.currentBranch!==void 0&&u.current.observeBranch(e.currentBranch)},onBranchSwitched:e=>{u.current.onBranchSwitched(e.branch)},onDiskAck:e=>{u.current.observeDiskAck(e.docName,e.sv)},onDerivedView:F$,onConfigValidationRejected:P$,onConfigIgnoreNestedError:N$,onUnknown:M$})},onClose:j$,onDisconnect:A$}),a=Ll(e=>{(e.includes(`files`)||e.includes(`backlinks`))&&(t.invalidateQueries({queryKey:[`backlinks`]}),t.invalidateQueries({queryKey:[`forward-links`]})),(e.includes(`files`)||e.includes(`graph`))&&(t.invalidateQueries({queryKey:[`orphans`]}),t.invalidateQueries({queryKey:[`hubs`]}))}),o=b(()=>{u.current.refreshServerInfo()});i.on(`synced`,()=>{Il([`files`,`backlinks`,`graph`]),o()});let s=new Set,c=()=>{if(i.awareness)for(let[e,t]of i.awareness.getStates().entries())s.has(e)||t.user?.type===`agent`&&(s.add(e),console.warn(`[agent-presence] observed stale AwarenessUser.type === 'agent' from clientID ${e} — probably a stale bundled client`))};return i.awareness?.on(`change`,c),r(i),()=>{a(),i.awareness?.off(`change`,c),r(null),i.destroy(),e.destroy()}},p=[t,n,r],e[12]=n,e[13]=t,e[14]=r,e[15]=f,e[16]=p):(f=e[15],p=e[16]),(0,Q.useEffect)(f,p),null}function A$(){console.warn(`[CC1] __system__ disconnected - derived views may be stale`)}function j$(e){let{event:t}=e;console.warn(`[CC1] __system__ connection closed:`,t.code,t.reason)}function M$(e){console.warn(`[CC1] Unparseable stateless payload, skipping:`,e.slice(0,100))}function N$(e){Pi(e)}function P$(e){Zi(e)}function F$(e){Il([e.ch])}function I$(e){let t=et(e);if(t)return{scope:`project`,name:t};let n=Ko(e);return n?.kind===`skill`?{scope:n.scope,name:n.name}:null}function L$(e,t){let n=new Set(t.map(e=>`${e.scope}\u0000${e.name}`)),r=[];for(let t of e){let e=I$(t);if(!e||n.has(`${e.scope}\u0000${e.name}`))continue;let i=e.scope===`project`?`global`:`project`;n.has(`${i}\u0000${e.name}`)?r.push({kind:`retarget`,fromDocName:t,toDocName:Ea(i,e.name)}):r.push({kind:`close`,docName:t})}return r}function R$(){let e=(0,$.c)(13),{openTabs:t,closeDocument:n}=Xe(),r;e[0]===t?r=e[1]:(r=t.some(B$),e[0]=t,e[1]=r);let i=r,a;e[2]===i?a=e[3]:(a={enabled:i},e[2]=i,e[3]=a);let o=Js(a),s=(0,Q.useRef)(null),c;e[4]!==n||e[5]!==t||e[6]!==o.data||e[7]!==o.status?(c=()=>{if(o.status!==`ready`)return;let e=o.data,r=`${t.join(``)}\u0002${e.map(z$).sort().join(``)}`;if(s.current===r)return;s.current=r;let i=L$(t,e);for(let e of i)e.kind===`retarget`?(kc(e.toDocName),n(e.fromDocName)):n(e.docName)},e[4]=n,e[5]=t,e[6]=o.data,e[7]=o.status,e[8]=c):c=e[8];let l;e[9]!==n||e[10]!==t||e[11]!==o?(l=[o,t,n],e[9]=n,e[10]=t,e[11]=o,e[12]=l):l=e[12],(0,Q.useEffect)(c,l)}function z$(e){return`${e.scope}\u0000${e.name}`}function B$(e){return I$(e)!==null}var V$=1e3,H$=3e4;function U$(e){let t=e.scheduler??{setTimeout:(e,t)=>globalThis.setTimeout(e,t),clearTimeout:e=>globalThis.clearTimeout(e)},n=e.initialBackoffMs??V$,r=e.maxBackoffMs??H$,i=e.rng??Math.random,a=e.createWebSocket??(e=>new WebSocket(e)),o=e.logger??null,s=e.log,c=null,l=null,u=!1,d=n;function f(e,t,n){try{o?o[e](t,n):s?.(t)}catch{}}function p(){if(u)return;l!==null&&t.clearTimeout(l);let e=d;d=Math.min(d*2,r);let n=i(),a=Math.max(1,Math.floor(e*(1-n/2)));f(`debug`,`scheduling reconnect`,{backoffMs:a,ceilMs:e}),l=t.setTimeout(()=>{l=null,m().catch(e=>f(`warn`,`reconnect failed`,{error:String(e)}))},a)}async function m(){if(u)return;let t;try{t=await e.resolveWsUrl()}catch(e){f(`warn`,`resolveWsUrl threw`,{error:String(e)}),p();return}if(!t){p();return}let r=[];e.pid!==void 0&&r.push(`pid=${encodeURIComponent(String(e.pid))}`),e.connectionId&&r.push(`connectionId=${encodeURIComponent(e.connectionId)}`),e.connectionId&&e.displayName!==void 0&&e.clientName!==void 0&&e.colorSeed!==void 0&&(r.push(`displayName=${encodeURIComponent(e.displayName)}`),r.push(`clientName=${encodeURIComponent(e.clientName)}`),r.push(`colorSeed=${encodeURIComponent(e.colorSeed)}`));let i=r.length>0?`?${r.join(`&`)}`:``,o=`${t}/collab/keepalive${i}`;try{c=a(o)}catch(e){f(`warn`,`WebSocket constructor failed`,{url:o,error:String(e)}),c=null,p();return}c.addEventListener(`open`,()=>{f(`info`,`connected`,{url:t}),d=n}),c.addEventListener(`close`,()=>{u||(f(`info`,`disconnected`,{url:t}),c=null,p())}),c.addEventListener(`error`,()=>{f(`debug`,`websocket error observed`,{url:t,readyState:c?.readyState,reason:`error-event`})})}return queueMicrotask(()=>{m().catch(e=>f(`warn`,`initial connect failed`,{error:String(e)}))}),{close:()=>{if(!u&&(u=!0,l!==null&&(t.clearTimeout(l),l=null),c)){try{c.close()}catch{}c=null}},isConnected:()=>c!==null&&c.readyState===1}}function W$(e){if(e)return e.replace(/\/collab\/?$/,``)}function G$(){return N(window)!==null}function K$(e,t){let n=(0,$.c)(5),r=(0,Q.useRef)(e),i=(0,Q.useRef)(t),a,o;n[0]===e?(a=n[1],o=n[2]):(a=()=>{r.current=e},o=[e],n[0]=e,n[1]=a,n[2]=o),(0,Q.useEffect)(a,o);let s,c;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=i.current?.startKeepalive??U$;if((i.current?.isElectronHost??G$)())return;let t=e({resolveWsUrl:async()=>W$(r.current)});return()=>t.close()},c=[],n[3]=s,n[4]=c):(s=n[3],c=n[4]),(0,Q.useEffect)(s,c)}var q$=(0,Q.lazy)(()=>n(()=>import(`./ShareBranchSwitchDialog-DGcSbhKt.js`).then(e=>({default:e.ShareBranchSwitchDialog})),__vite__mapDeps([113,1,9,10,15,19,14,16,20,75,24,114,81,115,116,117,6,2,3,7,8,118]),import.meta.url)),J$=(0,Q.lazy)(()=>n(()=>import(`./ShareReceiveMissDialog-BaOnOALv.js`).then(e=>({default:e.ShareReceiveMissDialog})),__vite__mapDeps([119,1,19,9,10,14,15,16,20,120,94,6,2,3,7,8,68,54,69,70,79,81,50,46,18,71,80,24,114,96,25,28,49]),import.meta.url)),Y$=`#install-claude-desktop`,X$=/\.(md|mdx)$/i;function Z$(e){return e===`#settings`||e===Y$}function Q$(e,t){if(!X$.test(e))return null;for(let n of t){let t=Qe(n);if(t.kind===`doc`&&t.docName===e)return{kind:`doc`,target:e,docName:e}}return null}function $$(e,t,n,r){return[e,t,n,r].map(e=>[...e].sort().join(`\0`)).join(``)}function e1(){let e=(0,$.c)(26),{clearTarget:t,openTabs:n,syncOpenTabsWithKnownTargets:r,tabSessionLoaded:i}=Xe(),{openTargetTransition:a}=ot();R$();let{assetPaths:o,filePaths:s,folderPaths:c,loading:l,pageMeta:u,pages:d,pagesBySlug:f,pagesByBasename:p}=Ns(),m=(0,Q.useRef)(null),h;e[0]!==o||e[1]!==s||e[2]!==c||e[3]!==d?(h=$$(d,c,o,s),e[0]=o,e[1]=s,e[2]=c,e[3]=d,e[4]=h):h=e[4];let g=h,_,v;e[5]!==o||e[6]!==s||e[7]!==c||e[8]!==l||e[9]!==d||e[10]!==r||e[11]!==i||e[12]!==g?(_=()=>{l||!i||m.current===g||(m.current=g,r({pages:d,folderPaths:c,assetPaths:o,filePaths:s}))},v=[o,s,c,l,d,r,i,g],e[5]=o,e[6]=s,e[7]=c,e[8]=l,e[9]=d,e[10]=r,e[11]=i,e[12]=g,e[13]=_,e[14]=v):(_=e[13],v=e[14]),(0,Q.useEffect)(_,v);let y,b;return e[15]!==t||e[16]!==c||e[17]!==l||e[18]!==n||e[19]!==a||e[20]!==u||e[21]!==d||e[22]!==p||e[23]!==f?(y=()=>{e();function e(){if(Z$(window.location.hash))return;let e=Xl(window.location.hash);if(e){let t=Fo(e.split(`.`).pop()??``);Vl(`ok/nav/hash-change`,{docName:null,kind:`asset`}),a({kind:`asset`,target:e,assetPath:e,mediaKind:t});return}let r=ql(window.location.hash);if(r){Vl(`ok/nav/hash-change`,{docName:null,kind:`skill-file`}),a({kind:`skill-file`,target:`${r.scope}/${r.name}/${r.path}`,scope:r.scope,name:r.name,path:r.path});return}if(tu(window.location.hash)){Vl(`ok/nav/hash-change`,{docName:null,kind:`folder`}),a({kind:`folder`,target:``,folderPath:``});return}let i=Ql(window.location.hash);if(!i){Vl(`ok/nav/hash-change`,{docName:null,kind:`clear`}),t();return}if(l){Vl(`ok/nav/hash-change`,{docName:i,kind:`deferred-loading`});return}let o=Q$(i,n)??Ol(i,{pages:d,folderPaths:c,pagesBySlug:f,pagesByBasename:p});if(o.kind===`missing`&&/\/+$/.test(i.trim())){Vl(`ok/nav/hash-change`,{docName:i,kind:`deferred-missing-folder`});return}let s=Al(kl(o),u);Vl(`ok/nav/hash-change`,{docName:i,kind:s.kind}),a(s)}return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},b=[t,c,l,a,n,u,d,f,p],e[15]=t,e[16]=c,e[17]=l,e[18]=n,e[19]=a,e[20]=u,e[21]=d,e[22]=p,e[23]=f,e[24]=y,e[25]=b):(y=e[24],b=e[25]),(0,Q.useEffect)(y,b),null}function t1(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,Q.useEffect)(n1,t),null}function n1(){let e=function(e){let t=e.target;Mi({target:t,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,key:e.key})&&(e.preventDefault(),window.location.hash!==`#settings`&&(window.location.hash=Ai))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)}function r1(){let e=(0,$.c)(4),{activeTarget:t}=Xe(),n=typeof window<`u`?window.okDesktop??null:null,r=t?.kind===`doc`||t?.kind===`folder`||t?.kind===`asset`?t.kind:null,i=t?.kind===`doc`?t.docName:t?.kind===`folder`?t.folderPath:t?.kind===`asset`?t.assetPath:null,a,o;return e[0]!==i||e[1]!==r?(a=()=>{if(n){if(r===null){n.editor.notifyActiveTargetChanged({kind:null});return}i!==null&&n.editor.notifyActiveTargetChanged({kind:r,identifier:i})}},o=[n,r,i],e[0]=i,e[1]=r,e[2]=a,e[3]=o):(a=e[2],o=e[3]),(0,Q.useEffect)(a,o),null}function i1(){let e=(0,$.c)(8),{activeDocName:t,activeTarget:n}=Xe(),[r,i]=(0,Q.useState)(!1),a;e[0]!==t||e[1]!==n?(a=n?.kind===`folder`?n.folderPath:Cl(t),e[0]=t,e[1]=n,e[2]=a):a=e[2];let o=a,s,c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=function(e){let t=e.target;kg({target:t,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,key:e.key})&&(e.preventDefault(),i(!0))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},c=[],e[3]=s,e[4]=c):(s=e[3],c=e[4]),(0,Q.useEffect)(s,c);let l;return e[5]!==r||e[6]!==o?(l=(0,Z.jsx)(jg,{open:r,onOpenChange:i,kind:`file`,initialDir:o}),e[5]=r,e[6]=o,e[7]=l):l=e[7],l}function a1(e){let t=(0,$.c)(3),{children:n}=e,{collabUrl:r}=Xe();K$(r);let i;return t[0]!==n||t[1]!==r?(i=(0,Z.jsx)(mu,{collabUrl:r,children:n}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}function o1(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(Hl,{name:`app`,children:(0,Z.jsx)(ft,{children:(0,Z.jsx)(a1,{children:(0,Z.jsx)(__,{children:(0,Z.jsx)(s1,{})})})})}),e[0]=t):t=e[0],t}function s1(){let e=(0,$.c)(29),t=typeof window<`u`?window.okDesktop??null:null,n=typeof window<`u`&&window.okDesktop!=null,[r,i]=(0,Q.useState)(!1),a=b_(),o=cv(),s;e[0]===o?s=e[1]:(s=t?{launchInTerminal:c1,installedClis:o}:null,e[0]=o,e[1]=s);let c=s,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Z.jsx)(q_,{}),e[2]=l):l=e[2];let u,d,f,p;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(k$,{}),d=(0,Z.jsx)(e1,{}),f=(0,Z.jsx)(r1,{}),p=(0,Z.jsx)(i1,{}),e[3]=u,e[4]=d,e[5]=f,e[6]=p):(u=e[3],d=e[4],f=e[5],p=e[6]);let m;e[7]===a?m=e[8]:(m=!a&&(0,Z.jsx)(t1,{}),e[7]=a,e[8]=m);let h,g,_,v,y;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=!1,v=t?(0,Z.jsx)(J_,{bridge:t}):null,y=t?(0,Z.jsx)(O$,{bridge:t}):null,h=(0,Z.jsx)(T$,{}),g=t?(0,Z.jsxs)(Q.Suspense,{fallback:null,children:[(0,Z.jsx)(q$,{bridge:t}),(0,Z.jsx)(J$,{})]}):null,e[9]=h,e[10]=g,e[11]=_,e[12]=v,e[13]=y):(h=e[9],g=e[10],_=e[11],v=e[12],y=e[13]);let b;e[14]===r?b=e[15]:(b=(0,Z.jsx)(I_,{bridge:t,open:r,onOpenChange:i}),e[14]=r,e[15]=b);let x;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(x=n&&(0,Z.jsx)(`div`,{"aria-hidden":`true`,"data-testid":`editor-window-chrome-drag-strip`,"data-electron-drag":``,className:`pointer-events-none fixed inset-x-0 top-0 z-50 h-2 [-webkit-app-region:drag]`}),e[16]=x):x=e[16];let S;e[17]===a?S=e[18]:(S=!a&&(0,Z.jsx)(h$,{onOpenSearch:()=>i(!0)}),e[17]=a,e[18]=S);let C;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,Z.jsx)(nN,{className:`overflow-hidden h-[calc(100vh-var(--layout-inset-offset))]`,children:(0,Z.jsx)(WL,{onOpenSearch:()=>i(!0)})}),e[19]=C):C=e[19];let w;e[20]===S?w=e[21]:(w=(0,Z.jsxs)(XM,{className:`h-screen overflow-hidden`,children:[S,C]}),e[20]=S,e[21]=w);let T;e[22]!==w||e[23]!==c?(T=(0,Z.jsx)(nc,{value:c,children:w}),e[22]=w,e[23]=c,e[24]=T):T=e[24];let E;return e[25]!==b||e[26]!==T||e[27]!==m?(E=(0,Z.jsxs)(Z.Fragment,{children:[l,(0,Z.jsxs)(Ps,{children:[u,d,f,p,m,_,v,y,h,g,b,x,T]})]}),e[25]=b,e[26]=T,e[27]=m,e[28]=E):E=e[28],E}function c1(e,t){cL(Hs(e,t),t)}function l1(e){let t=/\/([^/]+?)(?:\.git)?\/?$/.exec(e);return t?t[1]:`repo`}function u1(e){return{async getAuthStatus(){return e.authQueryTransport.status()},async startSignIn(){return e.openSignIn()},async runClone({url:t,branch:n}){let r=await e.bridge.dialog.openFolder();if(!r)return{kind:`cancelled`};let i=l1(t),a=`${r.replace(/\/$/,``)}/${i}`,o=ol.loading(ml._({id:`GXf9hG`,values:{repoName:i}}),{duration:1/0}),s=typeof n==`string`&&n.length>0?n:null;try{let n=e.cloneTransport.start({url:t,dir:a,branch:s});for await(let e of n.events){if(e.type===`progress`){let t=e.phase,n=Math.round(e.pct);ol.loading(ml._({id:`GXf9hG`,values:{repoName:i}}),{id:o,description:ml._({id:`SCzAbA`,values:{phase:t,pct:n}}),duration:1/0});continue}if(e.type===`branch-fallback`){console.log(Md({branch_action:`fallback`,branch:e.branch})),ol.info(ml._({id:`3JYy1p`,values:{0:e.branch}}),{duration:8e3});continue}if(e.type===`complete`)return ol.success(ml._({id:`IRv9cH`,values:{repoName:i}}),{id:o,duration:4e3}),{kind:`ok`,dir:e.dir};if(e.type===`error`)return ol.dismiss(o),{kind:`error`,detail:e.message}}return ol.dismiss(o),{kind:`error`,detail:`Clone ended unexpectedly.`}}catch(e){console.warn(`[clone-controller] clone transport threw`,e);let t=e instanceof Error?e.message:`Unknown error`;return ol.dismiss(o),{kind:`error`,detail:t}}}}}function d1(){return{start(e){return bi((t,n)=>{(async()=>{try{let r=await fetch(`/api/local-op/clone`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({url:e.url,dir:e.dir||void 0,branch:typeof e.branch==`string`&&e.branch.length>0?e.branch:void 0}),signal:n});if(!r.ok){let e=`Clone failed — check the URL and try again (${r.status})`;try{let t=await r.json(),n=fo.safeParse(t);n.success&&(e=`Clone failed: ${n.data.title}`)}catch{}t({type:`error`,message:e});return}if(!r.body){t({type:`error`,message:`Clone failed — empty response body`});return}let i=r.body.getReader(),a=new TextDecoder,o=``;for(;;){let{done:e,value:r}=await i.read();if(e)break;o+=a.decode(r,{stream:!0});let s=o.split(`
2006
+ `);o=s.pop()??``;for(let e of s){if(!e.trim())continue;let n;try{n=JSON.parse(e)}catch{console.warn(`[clone-transport] Dropped unparseable NDJSON line:`,e.slice(0,100));continue}if(n&&typeof n==`object`&&n.type===`error`&&`problem`in n){let e=n.problem;t({type:`error`,message:e?.detail||e?.title||`Unknown error`});break}t(n)}if(n.aborted)break}n.aborted||t({type:`error`,message:`Clone stream ended unexpectedly — check if the clone completed`})}catch(e){if(e instanceof Error&&e.name===`AbortError`)return;t({type:`error`,message:`Clone failed — connection error`})}})()})}}}function f1(e){return{start(t){let n=typeof t.branch==`string`&&t.branch.length>0?t.branch:null;return e.localOp.clone.start({url:t.url,dir:t.dir,branch:n})}}}function p1(e){switch(e){case`receiving`:return{id:`qbfj1f`};case`resolving`:return{id:`adsMWO`};case`checking`:return{id:`1HBhDS`};case`init`:return{id:`LlHqdU`};case`done`:return{id:`bD8I7O`};default:return{id:`25Pw6a`}}}function m1(e){let t=e.trim();if(/^[\w.-]+\/[\w.-]+$/.test(t))return t.split(`/`)[1];try{return new URL(t.replace(/^git@([^:]+):/,`https://$1/`)).pathname.replace(/\.git$/,``).split(`/`).pop()??`repo`}catch{return t.split(`/`).pop()?.replace(/\.git$/,``)??`repo`}}function h1(e){let t=(0,$.c)(100),{open:n,onOpenChange:r,onSignIn:i,onCloneComplete:a,transport:o,authQueryTransport:s,pickParentFolder:c,initialUrl:l}=e,{_:u}=kt(),d;t[0]===o?d=t[1]:(d=o??d1(),t[0]=o,t[1]=d);let p=d,m;t[2]===s?m=t[3]:(m=s??Xi(),t[2]=s,t[3]=m);let h=m,g=c!==void 0,[_,v]=(0,Q.useState)(``),[y,b]=(0,Q.useState)(``),[x,S]=(0,Q.useState)(null),[C,w]=(0,Q.useState)(!1),T;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(T=$i(),t[4]=T):T=t[4];let[E,D]=(0,Q.useState)(T),[O,k]=(0,Q.useState)(!1),[A,j]=(0,Q.useState)(!1),[M,N]=(0,Q.useState)(-1),P=(0,Q.useRef)(null),F=(0,Q.useRef)(null),I=(0,Q.useRef)(null),L=(0,Q.useId)(),R;t[5]!==n||t[6]!==h?(R=()=>{if(!n)return;let e=!1;return h.status().then(t=>{qi(t.authenticated),e||D(t.authenticated)}).catch(()=>{e||D(!1)}),()=>{e=!0}},t[5]=n,t[6]=h,t[7]=R):R=t[7];let z;t[8]===n?z=t[9]:(z=[n],t[8]=n,t[9]=z),(0,Q.useEffect)(R,z);let B;t[10]!==E||t[11]!==n||t[12]!==h?(B=()=>{if(!E||!n)return;let e=!1;return w(!0),h.repos().then(t=>{e||(S(t.ok?t.repos:[]),w(!1))}).catch(()=>{e||(S([]),w(!1))}),()=>{e=!0}},t[10]=E,t[11]=n,t[12]=h,t[13]=B):B=t[13];let V;t[14]!==E||t[15]!==n?(V=[E,n],t[14]=E,t[15]=n,t[16]=V):V=t[16],(0,Q.useEffect)(B,V);let H,U;t[17]!==l||t[18]!==n||t[19]!==g?(H=()=>{if(!n||!l||(v(l),g))return;let e=m1(l);e&&b(`~/Documents/${e}`)},U=[n,l,g],t[17]=l,t[18]=n,t[19]=g,t[20]=H,t[21]=U):(H=t[20],U=t[21]),(0,Q.useEffect)(H,U);let W,G;t[22]!==M||t[23]!==L?(W=()=>{M<0||document.getElementById(`${L}-opt-${M}`)?.scrollIntoView({block:`nearest`})},G=[M,L],t[22]=M,t[23]=L,t[24]=W,t[25]=G):(W=t[24],G=t[25]),(0,Q.useEffect)(W,G);let K;t[26]===g?K=t[27]:(K=function(e){if(v(e),j(!0),N(-1),g)return;let t=m1(e);t&&b(`~/Documents/${t}`)},t[26]=g,t[27]=K);let q=K,ee;t[28]===g?ee=t[29]:(ee=function(e){if(v(e.clone_url),g)return;let t=e.full_name.split(`/`)[1];b(`~/Documents/${t}`)},t[28]=g,t[29]=ee);let te=ee,ne;t[30]!==u||t[31]!==y||t[32]!==a||t[33]!==r||t[34]!==c||t[35]!==p||t[36]!==_?(ne=async function(){let e=_.trim();if(!e){ol.error(u({id:`FTUGgh`}));return}let t=y||``;if(c){k(!0);let n=await c();if(!n){k(!1);return}let r=m1(e);t=`${n.replace(/\/$/,``)}/${r}`}else k(!0);let n=ol.loading(u({id:`2tgFCe`}),{duration:1/0});F.current=n;let i=p.start({url:e,dir:t});P.current=i.cancel;try{let e=i.events[Symbol.asyncIterator](),t=await e.next();for(;!t.done;){let i=t.value;if(i.type===`progress`){let e=u(p1(i.phase));ol.loading(`${e} — ${i.pct}%`,{id:n})}else if(i.type===`complete`){ol.success(u({id:`u_lS4C`}),{id:n}),r(!1),k(!1),P.current=null;let e=`port`in i?i.port:void 0;a?a({port:e,dir:i.dir}):e!==void 0&&(window.location.href=`http://localhost:${e}`);return}else if(i.type===`error`){let e=i.message;ol.error(u({id:`eFJkVt`,values:{cloneError:e}}),{id:n}),k(!1),P.current=null;return}t=await e.next()}ol.error(u({id:`Tz9pJB`}),{id:n}),k(!1),P.current=null}catch(e){console.error(`[CloneDialog] clone iteration failed:`,e),ol.error(u({id:`K9J00P`}),{id:n}),k(!1),P.current=null}},t[30]=u,t[31]=y,t[32]=a,t[33]=r,t[34]=c,t[35]=p,t[36]=_,t[37]=ne):ne=t[37];let re=ne,ae;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(ae=function(){P.current?.(),P.current=null,k(!1),ol.dismiss(F.current??void 0)},t[38]=ae):ae=t[38];let oe=ae,se;t[39]!==O||t[40]!==r||t[41]!==g?(se=function(e){O||(r(e),e||(v(``),g||b(``),j(!1),N(-1)))},t[39]=O,t[40]=r,t[41]=g,t[42]=se):se=t[42];let ce=se,le;t[43]===te?le=t[44]:(le=function(e){te(e),j(!1),N(-1),I.current?.focus()},t[43]=te,t[44]=le);let ue=le,de=E===null||C&&x===null,fe;if(t[45]!==x||t[46]!==_){let e=_.trim().toLowerCase(),n;t[48]===x?n=t[49]:(n=x??[],t[48]=x,t[49]=n),fe=n.filter(t=>`${t.full_name} ${t.clone_url}`.toLowerCase().includes(e)),t[45]=x,t[46]=_,t[47]=fe}else fe=t[47];let pe=fe,me;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(me=/:\/\/|^git@|\.git$/i,t[50]=me):me=t[50];let he;t[51]===_?he=t[52]:(he=me.test(_.trim()),t[51]=_,t[52]=he);let ge=he,_e=E===!0&&x!==null&&pe.length===0&&!ge,ve=A&&E!==!1&&!O&&(de||pe.length>0||_e),ye=pe.length,be=`${L}-loading`,xe,Se;t[53]===ye?(xe=t[54],Se=t[55]):(xe=()=>{N(e=>e>=ye?ye-1:e)},Se=[ye],t[53]=ye,t[54]=xe,t[55]=Se),(0,Q.useEffect)(xe,Se);let Ce;t[56]!==M||t[57]!==O||t[58]!==ve||t[59]!==ue||t[60]!==pe?(Ce=function(e){if(!O)if(e.key===`ArrowDown`){if(e.preventDefault(),!ve){j(!0);return}N(e=>Math.min(e+1,pe.length-1))}else e.key===`ArrowUp`?(e.preventDefault(),N(x1)):e.key===`Enter`?ve&&M>=0&&M<pe.length&&(e.preventDefault(),ue(pe[M])):e.key===`Escape`&&ve&&(e.preventDefault(),e.stopPropagation(),j(!1),N(-1))},t[56]=M,t[57]=O,t[58]=ve,t[59]=ue,t[60]=pe,t[61]=Ce):Ce=t[61];let we=Ce,Te;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(Te=(0,Z.jsx)(Pn,{children:(0,Z.jsx)(An,{children:(0,Z.jsx)(J,{id:`VdXv4D`})})}),t[62]=Te):Te=t[62];let Ee;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=(0,Z.jsx)(`label`,{htmlFor:`clone-source`,className:`text-sm font-medium`,children:(0,Z.jsx)(J,{id:`IreQBq`})}),t[63]=Ee):Ee=t[63];let De;t[64]!==u||t[65]!==M||t[66]!==O||t[67]!==we||t[68]!==q||t[69]!==E||t[70]!==L||t[71]!==be||t[72]!==i||t[73]!==ve||t[74]!==de||t[75]!==x||t[76]!==ue||t[77]!==pe||t[78]!==_?(De=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[Ee,E===!1?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(fl,{id:`clone-source`,placeholder:u({id:`Xv_ijG`}),value:_,onChange:e=>q(e.target.value),disabled:O}),(0,Z.jsxs)(`div`,{className:`flex items-center gap-2 text-1sm text-muted-foreground`,children:[(0,Z.jsx)(`span`,{children:(0,Z.jsx)(J,{id:`9oE4C3`})}),(0,Z.jsx)(Y,{variant:`link`,className:`h-auto p-0`,onClick:()=>i?.(),disabled:O,children:(0,Z.jsx)(J,{id:`3jod3l`})})]})]}):(0,Z.jsxs)(Ot,{open:ve,onOpenChange:j,children:[(0,Z.jsx)(f,{asChild:!0,children:(0,Z.jsx)(fl,{id:`clone-source`,ref:I,role:`combobox`,"aria-expanded":ve,"aria-controls":ve?de?be:L:void 0,"aria-activedescendant":M>=0?`${L}-opt-${M}`:void 0,"aria-autocomplete":`list`,autoComplete:`off`,placeholder:u({id:`R0jJzV`}),value:_,onChange:e=>q(e.target.value),onFocus:()=>j(!0),onKeyDown:we,disabled:O})}),(0,Z.jsx)(ie,{align:`start`,sideOffset:4,className:`w-(--radix-popover-trigger-width) max-h-56 overflow-y-auto overscroll-y-contain subtle-scrollbar p-0`,onOpenAutoFocus:b1,onCloseAutoFocus:y1,onInteractOutside:e=>{I.current?.contains(e.target)&&e.preventDefault()},onWheel:v1,onTouchMove:_1,children:de?(0,Z.jsxs)(`output`,{id:be,className:`flex flex-col gap-1.5 px-3 py-2`,"aria-label":u({id:`8XQRON`}),children:[(0,Z.jsx)(iu,{className:`h-4 w-2/3`}),(0,Z.jsx)(iu,{className:`h-4 w-1/2`}),(0,Z.jsx)(iu,{className:`h-4 w-3/4`}),(0,Z.jsx)(iu,{className:`h-4 w-2/5`})]}):(0,Z.jsx)(`div`,{id:L,role:`listbox`,"aria-label":u({id:`KX1MZR`}),className:`py-1`,children:pe.length===0?(0,Z.jsx)(`div`,{role:`presentation`,className:`px-3 py-2 text-xs text-muted-foreground`,children:x&&x.length===0?(0,Z.jsx)(J,{id:`cOSAfL`}):(0,Z.jsx)(J,{id:`8eW0WQ`})}):pe.map((e,t)=>(0,Z.jsxs)(`div`,{id:`${L}-opt-${t}`,role:`option`,tabIndex:-1,"aria-selected":t===M,onMouseDown:g1,onMouseEnter:()=>N(t),onClick:()=>ue(e),className:X(`flex cursor-default items-center gap-2 px-3 py-1.5 text-sm`,t===M&&`bg-accent text-accent-foreground`),children:[e.private?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ls,{className:`size-3.5 shrink-0 text-muted-foreground`,"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`sr-only`,children:(0,Z.jsx)(J,{id:`n5n_vi`})})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ms,{className:`size-3.5 shrink-0 text-muted-foreground`,"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`sr-only`,children:(0,Z.jsx)(J,{id:`NuH1jp`})})]}),(0,Z.jsx)(`span`,{className:`truncate`,children:e.full_name})]},e.full_name))})})]})]}),t[64]=u,t[65]=M,t[66]=O,t[67]=we,t[68]=q,t[69]=E,t[70]=L,t[71]=be,t[72]=i,t[73]=ve,t[74]=de,t[75]=x,t[76]=ue,t[77]=pe,t[78]=_,t[79]=De):De=t[79];let Oe;t[80]!==O||t[81]!==y||t[82]!==g?(Oe=!g&&(0,Z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Z.jsx)(`label`,{htmlFor:`clone-path`,className:`text-sm font-medium`,children:(0,Z.jsx)(J,{id:`Gp_twO`})}),(0,Z.jsx)(fl,{id:`clone-path`,placeholder:`~/Documents/repo-name`,value:y,onChange:e=>b(e.target.value),disabled:O})]}),t[80]=O,t[81]=y,t[82]=g,t[83]=Oe):Oe=t[83];let ke;t[84]!==De||t[85]!==Oe?(ke=(0,Z.jsx)(Mn,{children:(0,Z.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[De,Oe]})}),t[84]=De,t[85]=Oe,t[86]=ke):ke=t[86];let Ae;t[87]!==O||t[88]!==re||t[89]!==ce||t[90]!==_||t[91]!==g?(Ae=(0,Z.jsx)(Nn,{children:O?(0,Z.jsx)(Y,{variant:`outline`,className:`font-mono uppercase`,onClick:oe,children:(0,Z.jsx)(J,{id:`dEgA5A`})}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Y,{variant:`outline`,className:`font-mono uppercase`,onClick:()=>ce(!1),children:(0,Z.jsx)(J,{id:`dEgA5A`})}),(0,Z.jsx)(Y,{onClick:()=>void re(),disabled:!_.trim(),"aria-describedby":g?`clone-picker-hint`:void 0,children:(0,Z.jsx)(J,{id:`9UQ730`})}),g&&(0,Z.jsx)(`span`,{id:`clone-picker-hint`,className:`sr-only`,children:(0,Z.jsx)(J,{id:`EvPX7f`})})]})}),t[87]=O,t[88]=re,t[89]=ce,t[90]=_,t[91]=g,t[92]=Ae):Ae=t[92];let je;t[93]!==ke||t[94]!==Ae?(je=(0,Z.jsxs)(jn,{className:`sm:max-w-lg`,children:[Te,ke,Ae]}),t[93]=ke,t[94]=Ae,t[95]=je):je=t[95];let Me;return t[96]!==ce||t[97]!==n||t[98]!==je?(Me=(0,Z.jsx)(Fn,{open:n,onOpenChange:ce,children:je}),t[96]=ce,t[97]=n,t[98]=je,t[99]=Me):Me=t[99],Me}function g1(e){return e.preventDefault()}function _1(e){return e.stopPropagation()}function v1(e){return e.stopPropagation()}function y1(e){return e.preventDefault()}function b1(e){return e.preventDefault()}function x1(e){return Math.max(e-1,-1)}var S1=(0,Q.lazy)(()=>n(()=>import(`./ConsentDialogBody-iSJGqfW_.js`),__vite__mapDeps([121,1,9,10,11,12,13,14,15,16,17,18,74,19,20,77,81,122,91,92,35,36,22,80,26,27]),import.meta.url));function C1(){let e=(0,$.c)(1);if(!(0,Q.useSyncExternalStore)(dl.subscribe,T1,w1))return null;let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(Q.Suspense,{fallback:null,children:(0,Z.jsx)(S1,{})}),e[0]=t):t=e[0],t}function w1(){return!1}function T1(){return dl.getSnapshot()!==null}function E1(e){let t=(0,$.c)(5),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(`title`,{children:`OpenKnowledge icon`}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Z.jsxs)(`g`,{filter:`url(#filter0_d_ok)`,children:[(0,Z.jsx)(`path`,{d:`M66.8902 16.1017C58.2694 3.86669 46.1739 -0.690239 29.9182 2.17749C21.3995 3.67813 13.4602 9.555 8.67934 17.9009C3.93974 26.1701 2.98514 35.6533 6.05714 43.9166C9.31574 52.6868 16.7168 58.4752 24.2299 63.4231C25.7973 64.4562 26.1351 65.7172 26.3551 68.9896C26.5221 71.4625 26.799 75.6011 30.6842 77.7204C31.8176 78.3372 33.0648 78.6515 34.3946 78.6515C37.0796 78.6515 39.4033 77.3649 40.5189 76.7482C47.1049 73.1046 68.8878 59.7147 72.6453 40.4027C74.3444 31.6679 70.9797 21.9019 66.8922 16.1017H66.8902Z`,fill:`white`}),(0,Z.jsx)(`path`,{d:`M37.4214 71.154C28.7888 75.929 36.787 64.0397 27.7458 58.0843C21.6372 54.0616 14.788 49.0568 12.0499 41.6911C6.74463 27.4192 17.5438 10.8473 31.028 8.47262C45.1977 5.97613 54.6946 9.8947 61.6635 19.7844C65.2089 24.8167 67.6013 32.8365 66.3658 39.1828C63.6906 52.9341 49.073 64.7075 37.4214 71.154Z`,fill:`#69A3FF`}),(0,Z.jsx)(`path`,{d:`M52.7244 29.2638C53.4665 28.5217 54.6697 28.5217 55.4119 29.2638V29.2638C56.154 30.0059 56.154 31.2091 55.4119 31.9513L49.2589 38.1042L46.5715 35.4167L52.7244 29.2638Z`,fill:`#D5E5FF`}),(0,Z.jsx)(`path`,{d:`M55.4119 38.8821C56.154 39.6242 56.154 40.8274 55.4119 41.5696V41.5696C54.6698 42.3117 53.4665 42.3117 52.7244 41.5696L46.5715 35.4166L49.259 32.7292L55.4119 38.8821Z`,fill:`#D5E5FF`})]}),t[1]=r):r=t[1];let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(`defs`,{children:(0,Z.jsxs)(`filter`,{id:`filter0_d_ok`,x:`-9.53674e-07`,y:`-0.0799994`,width:`77.3817`,height:`85.8743`,filterUnits:`userSpaceOnUse`,colorInterpolationFilters:`sRGB`,children:[(0,Z.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),(0,Z.jsx)(`feColorMatrix`,{in:`SourceAlpha`,type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`,result:`hardAlpha`}),(0,Z.jsx)(`feOffset`,{dy:`2.85714`}),(0,Z.jsx)(`feGaussianBlur`,{stdDeviation:`2.14286`}),(0,Z.jsx)(`feComposite`,{in2:`hardAlpha`,operator:`out`}),(0,Z.jsx)(`feColorMatrix`,{type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0`}),(0,Z.jsx)(`feBlend`,{mode:`normal`,in2:`BackgroundImageFix`,result:`effect1_dropShadow_ok`}),(0,Z.jsx)(`feBlend`,{mode:`normal`,in:`SourceGraphic`,in2:`effect1_dropShadow_ok`,result:`shape`})]})}),t[2]=i):i=t[2];let a;return t[3]===e?a=t[4]:(a=(0,Z.jsxs)(`svg`,{role:`img`,"aria-label":`OpenKnowledge icon`,fill:`none`,height:24,width:24,viewBox:`0 0 78 80`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[n,r,i]}),t[3]=e,t[4]=a),a}var D1=(0,Q.lazy)(()=>n(()=>import(`./ShareReceiveDialog-Dp0wMb0C.js`).then(e=>({default:e.ShareReceiveDialog})),__vite__mapDeps([123,1,6,2,3,7,8,9,10,15,19,14,16,20,24,81,115,116,117]),import.meta.url)),O1=(e,t,n)=>m_(e,t,n,`NavigatorApp`);function k1(e,t){return e.filter(e=>e.path!==t)}function A1(e){let t=(0,$.c)(109),{bridge:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=[],t[0]=r):r=t[0];let[i,a]=(0,Q.useState)(r),o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=new Map,t[1]=o):o=t[1];let[s,c]=(0,Q.useState)(o),[l,u]=(0,Q.useState)(!0),[d,f]=(0,Q.useState)(!1),[p,m]=(0,Q.useState)(null),[h,g]=(0,Q.useState)(null),[_,v]=(0,Q.useState)(!1),[y,b]=(0,Q.useState)(!1),[x,S]=(0,Q.useState)(!1),[C,w]=(0,Q.useState)(void 0),[T,E]=(0,Q.useState)(void 0),[D,O]=(0,Q.useState)(!1),[k,A]=(0,Q.useState)(!1),[j,M]=(0,Q.useState)(null),N=typeof window<`u`&&window.okDesktop!=null,[P,F]=(0,Q.useState)(`auth`),{theme:I}=cn(),{_:L}=kt();pu(n,I??`system`);let R;t[2]!==L||t[3]!==n.project?(R=()=>{let e=!1;return n.project.listRecent().then(async t=>{if(e)return;a(t);let r=t.filter(j1),i=await Promise.all(r.map(async e=>{try{let{currentBranch:t}=await n.project.readHeadBranch(e.path);return[e.path,t]}catch{return[e.path,null]}}));e||c(e=>{let t=new Map(e);for(let[e,n]of i)t.set(e,n);return t})}).catch(t=>{console.error(`[NavigatorApp] listRecent failed:`,t),e||(m(t instanceof Error?t.message:L({id:`fYKgzG`})),f(!0))}).finally(()=>{e||u(!1)}),()=>{e=!0}},t[2]=L,t[3]=n.project,t[4]=R):R=t[4];let z;t[5]!==L||t[6]!==n?(z=[n,L],t[5]=L,t[6]=n,t[7]=z):z=t[7],(0,Q.useEffect)(R,z);let B,V;t[8]===n?(B=t[9],V=t[10]):(B=()=>n.onMenuAction(e=>{e===`new-project`&&b(!0),e===`report-bug`&&S(!0),e===`close-active-tab-or-window`&&window.close()}),V=[n],t[8]=n,t[9]=B,t[10]=V),(0,Q.useEffect)(B,V);let H;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(H=(e,t)=>O1(e,t,m),t[11]=H):H=t[11];let U=H,W;t[12]!==L||t[13]!==n?(W=(e,t,r)=>U(()=>(g(r),F1(n,e,t).finally(()=>g(null))),L({id:`SUOoXn`})),t[12]=L,t[13]=n,t[14]=W):W=t[14];let G=W,K;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(K=()=>v(!0),t[15]=K):K=t[15];let q=K,ee;t[16]!==L||t[17]!==n?(ee=()=>U(async()=>{let e=await n.dialog.openFolder();e&&(g(I1(e)),await F1(n,e,`pick-existing`).finally(()=>g(null)))},L({id:`gmJ0An`})),t[16]=L,t[17]=n,t[18]=ee):ee=t[18];let te=ee,ne;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(ne=()=>b(!0),t[19]=ne):ne=t[19];let re=ne,ie;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(e,t)=>{w(e),E(t),b(!0)},t[20]=ie):ie=t[20];let ae=ie,oe;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(oe=e=>{b(e),e||(w(void 0),E(void 0))},t[21]=oe):oe=t[21];let se=oe,ce;t[22]===G?ce=t[23]:(ce=e=>G(e,`recents`,I1(e)),t[22]=G,t[23]=ce);let le=ce,ue;t[24]!==L||t[25]!==n.project?(ue=e=>U(async()=>{await n.project.removeRecent(e),a(t=>k1(t,e)),c(t=>{if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n})},L({id:`viwC-K`})),t[24]=L,t[25]=n.project,t[26]=ue):ue=t[26];let de=ue,fe;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,Z.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 top-0 z-10 h-9 ${N?`[-webkit-app-region:drag]`:``}`,"data-electron-drag":N?``:void 0,"data-testid":`nav-chrome-row`}),t[27]=fe):fe=t[27];let pe;t[28]!==L||t[29]!==h?(pe=h===null?null:(0,Z.jsxs)(`div`,{className:`absolute inset-0 z-20 flex flex-col items-center justify-center gap-3 bg-primary-foreground/85 dark:bg-background/85 backdrop-blur-sm`,"data-testid":`nav-opening-overlay`,role:`status`,"aria-live":`polite`,children:[(0,Z.jsx)(Pc,{className:`size-6 animate-spin text-muted-foreground`}),(0,Z.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:L({id:`s0_GnA`,values:{openingLabel:h}})})]}),t[28]=L,t[29]=h,t[30]=pe):pe=t[30];let me;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,Z.jsx)(E1,{className:`size-12 shrink-0`}),t[31]=me):me=t[31];let he;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`h1`,{className:`font-medium text-xl tracking-tight`,children:`OpenKnowledge`}),(0,Z.jsx)($P,{})]}),t[32]=he):he=t[32];let ge;t[33]===n.appVersion?ge=t[34]:(ge=(0,Z.jsxs)(`header`,{className:`shrink-0 flex-wrap flex items-center gap-2.5`,children:[me,(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[he,(0,Z.jsxs)(`p`,{className:`text-muted-foreground text-xs font-mono`,children:[`v`,n.appVersion]})]})]}),t[33]=n.appVersion,t[34]=ge);let _e;t[35]!==L||t[36]!==l||t[37]!==te||t[38]!==i||t[39]!==d?(_e=l?null:!d&&i.length===0?(0,Z.jsx)(N1,{onPackSelect:ae,onOpenFolder:te,onClone:q,onCreate:re}):(0,Z.jsxs)(`section`,{className:`grid shrink-0 sm:grid-cols-3 gap-3`,children:[(0,Z.jsx)(M1,{title:L({id:`wbv9xO`}),description:L({id:`0uTHCg`}),onClick:re,dataTestId:`nav-create-new`,Icon:gt}),(0,Z.jsx)(M1,{title:L({id:`WPwDin`}),description:L({id:`tUvUfp`}),onClick:te,dataTestId:`nav-open`,Icon:_c}),(0,Z.jsx)(M1,{title:L({id:`VdXv4D`}),description:L({id:`JOcPqH`}),onClick:q,dataTestId:`nav-clone`,Icon:PI})]}),t[35]=L,t[36]=l,t[37]=te,t[38]=i,t[39]=d,t[40]=_e):_e=t[40];let ve;t[41]===p?ve=t[42]:(ve=p===null?null:(0,Z.jsxs)(`div`,{className:`flex shrink-0 items-start justify-between gap-3 rounded-md border border-red-500/30 bg-red-500/10 px-3 py-2`,"data-testid":`nav-error-banner`,role:`alert`,children:[(0,Z.jsx)(`span`,{className:`text-red-700 text-xs dark:text-red-300`,children:p}),(0,Z.jsx)(Y,{type:`button`,variant:`link`,size:`sm`,onClick:()=>m(null),className:`h-auto p-0 text-red-700 text-xs dark:text-red-300`,"data-testid":`nav-error-dismiss`,children:(0,Z.jsx)(J,{id:`1QfxQT`})})]}),t[41]=p,t[42]=ve);let ye;t[43]!==l||t[44]!==le||t[45]!==de||t[46]!==s||t[47]!==i?(ye=l?(0,Z.jsx)(`section`,{className:`flex shrink-0 flex-col items-center`,children:(0,Z.jsx)(Pc,{className:`size-4 animate-spin text-muted-foreground/60`})}):i.length>0?(0,Z.jsxs)(`section`,{className:`flex min-h-0 flex-col`,children:[(0,Z.jsx)(`h2`,{className:`mb-2 shrink-0 font-medium text-muted-foreground font-mono text-xs uppercase tracking-wide`,children:(0,Z.jsx)(J,{id:`CCTop_`})}),(0,Z.jsx)(`ul`,{className:`min-h-0 max-h-48 subtle-scrollbar scroll-fade-mask overflow-y-auto space-y-0.5 -mx-4`,"data-testid":`nav-recent-list`,children:i.map(e=>(0,Z.jsx)(P1,{project:e,branch:s.get(e.path)??null,onOpen:()=>le(e.path),onRemove:()=>de(e.path)},e.path))})]}):null,t[43]=l,t[44]=le,t[45]=de,t[46]=s,t[47]=i,t[48]=ye):ye=t[48];let be;t[49]!==ge||t[50]!==_e||t[51]!==ve||t[52]!==ye?(be=(0,Z.jsx)(`div`,{className:`mx-auto flex h-full w-full max-w-5xl flex-col overflow-hidden px-12 py-12`,children:(0,Z.jsxs)(`div`,{className:`my-auto flex min-h-0 flex-col space-y-10`,children:[ge,_e,ve,ye]})}),t[49]=ge,t[50]=_e,t[51]=ve,t[52]=ye,t[53]=be):be=t[53];let xe,Se;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(xe=(0,Z.jsx)(T$,{}),Se=(0,Z.jsx)(C1,{}),t[54]=xe,t[55]=Se):(xe=t[54],Se=t[55]);let Ce;t[56]!==n||t[57]!==y||t[58]!==C||t[59]!==T?(Ce=(0,Z.jsx)(Dh,{open:y,onOpenChange:se,bridge:n,initialPackId:C,packs:T}),t[56]=n,t[57]=y,t[58]=C,t[59]=T,t[60]=Ce):Ce=t[60];let we;t[61]===x?we=t[62]:(we=(0,Z.jsx)(Of,{open:x,onOpenChange:S,systemWide:!0}),t[61]=x,t[62]=we);let Te;t[63]===j?Te=t[64]:(Te=e=>{O(e),e||(A(!1),j&&(j(null),M(null)))},t[63]=j,t[64]=Te);let Ee;t[65]===n?Ee=t[66]:(Ee=gi(n),t[65]=n,t[66]=Ee);let De;t[67]===n?De=t[68]:(De=yi(n),t[67]=n,t[68]=De);let Oe=P===`identity`,ke;t[69]!==k||t[70]!==j?(ke=e=>{O(!1),k&&(A(!1),v(!0)),j&&(j({authenticated:!0,host:`github.com`,login:e.login}),M(null))},t[69]=k,t[70]=j,t[71]=ke):ke=t[71];let Ae;t[72]!==D||t[73]!==Te||t[74]!==Ee||t[75]!==De||t[76]!==Oe||t[77]!==ke?(Ae=(0,Z.jsx)(ki,{open:D,onOpenChange:Te,transport:Ee,queryTransport:De,identityPrompt:Oe,onSuccess:ke}),t[72]=D,t[73]=Te,t[74]=Ee,t[75]=De,t[76]=Oe,t[77]=ke,t[78]=Ae):Ae=t[78];let je;t[79]===n?je=t[80]:(je=f1(n),t[79]=n,t[80]=je);let Me;t[81]===n?Me=t[82]:(Me=yi(n),t[81]=n,t[82]=Me);let Ne;t[83]===n.dialog?Ne=t[84]:(Ne=()=>n.dialog.openFolder(),t[83]=n.dialog,t[84]=Ne);let Pe;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=()=>{v(!1),F(`auth`),A(!0),O(!0)},t[85]=Pe):Pe=t[85];let Fe;t[86]!==L||t[87]!==n?(Fe=e=>{let{dir:t}=e;U(()=>(g(I1(t)),F1(n,t,`pick-existing`).finally(()=>g(null))),L({id:`iSnkwB`}))},t[86]=L,t[87]=n,t[88]=Fe):Fe=t[88];let Ie;t[89]!==_||t[90]!==je||t[91]!==Me||t[92]!==Ne||t[93]!==Fe?(Ie=(0,Z.jsx)(h1,{open:_,onOpenChange:v,transport:je,authQueryTransport:Me,pickParentFolder:Ne,onSignIn:Pe,onCloneComplete:Fe}),t[89]=_,t[90]=je,t[91]=Me,t[92]=Ne,t[93]=Fe,t[94]=Ie):Ie=t[94];let Le;if(t[95]!==n){let e;t[97]===Symbol.for(`react.memo_cache_sentinel`)?(e=()=>new Promise(e=>{M(()=>e),O(!0)}),t[97]=e):e=t[97],Le=u1({bridge:n,authQueryTransport:yi(n),cloneTransport:f1(n),openSignIn:e}),t[95]=n,t[96]=Le}else Le=t[96];let Re;t[98]!==n||t[99]!==Le?(Re=(0,Z.jsx)(Q.Suspense,{fallback:null,children:(0,Z.jsx)(D1,{bridge:n,cloneController:Le})}),t[98]=n,t[99]=Le,t[100]=Re):Re=t[100];let ze;return t[101]!==pe||t[102]!==be||t[103]!==Ce||t[104]!==we||t[105]!==Ae||t[106]!==Ie||t[107]!==Re?(ze=(0,Z.jsxs)(`div`,{className:`relative flex h-screen w-screen flex-col overflow-hidden bg-primary-foreground dark:bg-background text-foreground`,children:[fe,pe,be,xe,Se,Ce,we,Ae,Ie,Re]}),t[101]=pe,t[102]=be,t[103]=Ce,t[104]=we,t[105]=Ae,t[106]=Ie,t[107]=Re,t[108]=ze):ze=t[108],ze}function j1(e){return!e.missing}function M1(e){let t=(0,$.c)(14),{title:n,description:r,onClick:i,dataTestId:a,Icon:o}=e,s;t[0]===o?s=t[1]:(s=o?(0,Z.jsx)(o,{className:`size-4 shrink-0 text-muted-foreground`}):null,t[0]=o,t[1]=s);let c;t[2]===n?c=t[3]:(c=(0,Z.jsx)(`span`,{className:`font-medium text-gray-700 dark:text-foreground text-sm`,children:n}),t[2]=n,t[3]=c);let l;t[4]!==s||t[5]!==c?(l=(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[s,c]}),t[4]=s,t[5]=c,t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=(0,Z.jsx)(`span`,{className:`line-clamp-2 text-muted-foreground text-xs leading-snug`,children:r}),t[7]=r,t[8]=u);let d;return t[9]!==a||t[10]!==i||t[11]!==l||t[12]!==u?(d=(0,Z.jsxs)(Y,{type:`button`,variant:`outline`,onClick:i,"data-testid":a,className:`h-auto flex-col items-start justify-start gap-1.5 whitespace-normal bg-card px-4 py-3.5 text-left`,children:[l,u]}),t[9]=a,t[10]=i,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}function N1(e){let t=(0,$.c)(31),{onPackSelect:n,onOpenFolder:r,onClone:i,onCreate:a}=e,[o,s]=(0,Q.useState)(null),c,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{let e=!1;return(async()=>{try{let t=await Xg().listPacks();if(e)return;t.ok?s(t.packs):(console.error(`[NavigatorApp] listPacks returned error:`,t),s([]))}catch(t){let n=t;if(e)return;console.error(`[NavigatorApp] listPacks failed:`,n),s([])}})(),()=>{e=!0}},l=[],t[0]=c,t[1]=l):(c=t[0],l=t[1]),(0,Q.useEffect)(c,l);let u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(`h2`,{className:`text-xl font-light tracking-tighter text-balance`,children:(0,Z.jsx)(J,{id:`QnjpOq`})}),t[2]=u):u=t[2];let d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Z.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-1`,children:[u,(0,Z.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:(0,Z.jsx)(J,{id:`gYuDfu`})})]}),t[3]=d):d=t[3];let f;t[4]!==n||t[5]!==o?(f=e=>n(e,o??[]),t[4]=n,t[5]=o,t[6]=f):f=t[6];let p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=[`okf`,`entity-vault`],t[7]=p):p=t[7];let m;t[8]!==o||t[9]!==f?(m=(0,Z.jsx)(`div`,{className:`-m-1 min-h-0 flex-1 overflow-y-auto subtle-scrollbar p-1`,children:(0,Z.jsx)($g,{packs:o,onPackSelect:f,collapsedPackIds:p})}),t[8]=o,t[9]=f,t[10]=m):m=t[10];let h;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Z.jsx)(`span`,{className:`text-muted-foreground text-sm`,children:(0,Z.jsx)(J,{id:`S34Vju`})}),t[11]=h):h=t[11];let g,_;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Z.jsx)(_c,{"aria-hidden":`true`,className:`size-3.5`}),g=(0,Z.jsx)(J,{id:`PVUn_c`}),t[12]=g,t[13]=_):(g=t[12],_=t[13]);let v;t[14]===r?v=t[15]:(v=(0,Z.jsxs)(Y,{type:`button`,variant:`link-muted`,size:`sm`,onClick:r,"data-testid":`nav-first-run-open`,children:[_,g]}),t[14]=r,t[15]=v);let y,b;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsx)(PI,{"aria-hidden":`true`,className:`size-3.5`}),b=(0,Z.jsx)(J,{id:`VdXv4D`}),t[16]=y,t[17]=b):(y=t[16],b=t[17]);let x;t[18]===i?x=t[19]:(x=(0,Z.jsxs)(Y,{type:`button`,variant:`link-muted`,size:`sm`,onClick:i,"data-testid":`nav-first-run-clone`,children:[y,b]}),t[18]=i,t[19]=x);let S,C;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Z.jsx)(gt,{"aria-hidden":`true`,className:`size-3.5`}),C=(0,Z.jsx)(J,{id:`ircigK`}),t[20]=S,t[21]=C):(S=t[20],C=t[21]);let w;t[22]===a?w=t[23]:(w=(0,Z.jsxs)(Y,{type:`button`,variant:`link-muted`,size:`sm`,onClick:a,"data-testid":`nav-first-run-blank`,children:[S,C]}),t[22]=a,t[23]=w);let T;t[24]!==v||t[25]!==x||t[26]!==w?(T=(0,Z.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1`,"data-testid":`nav-first-run-secondary`,children:[h,(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-1 gap-y-1`,children:[v,x,w]})]}),t[24]=v,t[25]=x,t[26]=w,t[27]=T):T=t[27];let E;return t[28]!==T||t[29]!==m?(E=(0,Z.jsxs)(`section`,{className:`flex min-h-0 shrink flex-col gap-6`,"data-testid":`nav-first-run`,children:[d,m,T]}),t[28]=T,t[29]=m,t[30]=E):E=t[30],E}function P1(e){let t=(0,$.c)(44),{project:n,branch:r,onOpen:i,onRemove:a}=e,{_:o}=kt(),{name:s}=n,c=n.isLinkedWorktree===!0,l=c?n.branch??r:r,u=n.missing,d=n.missing&&`opacity-50`,f;t[0]===d?f=t[1]:(f=X(`h-auto min-w-0 flex-1 justify-between gap-3 py-3.5 pl-4 pr-2 text-left hover:bg-transparent`,d),t[0]=d,t[1]=f);let p;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Z.jsx)(Sm,{"aria-hidden":`true`,className:`size-[18px] shrink-0 text-muted-foreground`}),t[2]=p):p=t[2];let m;t[3]===n.name?m=t[4]:(m=(0,Z.jsx)(`span`,{className:`truncate font-medium text-sm text-gray-700 dark:text-foreground`,children:n.name}),t[3]=n.name,t[4]=m);let h;t[5]===c?h=t[6]:(h=c?(0,Z.jsxs)(As,{variant:`secondary`,className:`shrink-0 gap-1 rounded-full border-transparent bg-green-600/10 px-2 py-0 font-medium text-2xs text-green-800 dark:bg-green-400/10 dark:text-green-400`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`size-2.5`}),(0,Z.jsx)(J,{id:`z-lawV`})]}):null,t[5]=c,t[6]=h);let g;t[7]!==m||t[8]!==h?(g=(0,Z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[m,h]}),t[7]=m,t[8]=h,t[9]=g):g=t[9];let _=c?n.mainRoot??``:n.path,v;t[10]!==c||t[11]!==n.mainRoot||t[12]!==n.path?(v=c?(0,Z.jsx)(J,{id:`PRnH8G`,values:{0:C_(n.mainRoot??``)}}):n.path,t[10]=c,t[11]=n.mainRoot,t[12]=n.path,t[13]=v):v=t[13];let y;t[14]!==_||t[15]!==v?(y=(0,Z.jsx)(`span`,{className:`truncate w-full text-muted-foreground text-xs`,title:_,children:v}),t[14]=_,t[15]=v,t[16]=y):y=t[16];let b;t[17]!==y||t[18]!==g?(b=(0,Z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[p,(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1 truncate`,children:[g,y]})]}),t[17]=y,t[18]=g,t[19]=b):b=t[19];let x;t[20]!==n.missing||t[21]!==n.path||t[22]!==l?(x=n.missing?(0,Z.jsx)(As,{className:`text-2xs rounded-sm`,variant:`warning`,children:(0,Z.jsx)(J,{id:`VU3Nrn`})}):l==null?null:(0,Z.jsxs)(`span`,{className:`flex max-w-[40%] items-center gap-1 text-muted-foreground text-xs`,"data-testid":`nav-recent-branch-${n.path}`,children:[(0,Z.jsx)(Zo,{"aria-hidden":`true`,className:`size-3 shrink-0`}),(0,Z.jsx)(`span`,{className:`truncate font-mono`,children:l})]}),t[20]=n.missing,t[21]=n.path,t[22]=l,t[23]=x):x=t[23];let S;t[24]!==i||t[25]!==n.missing||t[26]!==b||t[27]!==x||t[28]!==f?(S=(0,Z.jsxs)(Y,{type:`button`,variant:`ghost`,onClick:i,disabled:u,className:f,children:[b,x]}),t[24]=i,t[25]=n.missing,t[26]=b,t[27]=x,t[28]=f,t[29]=S):S=t[29];let C;t[30]!==o||t[31]!==s?(C=o({id:`hDoLrm`,values:{projectName:s}}),t[30]=o,t[31]=s,t[32]=C):C=t[32];let w;t[33]===o?w=t[34]:(w=o({id:`Es-eZU`}),t[33]=o,t[34]=w);let T=`nav-recent-remove-${n.path}`,E;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,Z.jsx)(al,{"aria-hidden":`true`}),t[35]=E):E=t[35];let D;t[36]!==a||t[37]!==C||t[38]!==w||t[39]!==T?(D=(0,Z.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,onClick:a,"aria-label":C,title:w,className:`pointer-events-none mr-2 opacity-0 group-hover:pointer-events-auto group-hover:opacity-100 focus-visible:pointer-events-auto focus-visible:opacity-100`,"data-testid":T,children:E}),t[36]=a,t[37]=C,t[38]=w,t[39]=T,t[40]=D):D=t[40];let O;return t[41]!==S||t[42]!==D?(O=(0,Z.jsxs)(`li`,{className:`group flex items-center justify-between rounded-lg hover:bg-accent`,children:[S,D]}),t[41]=S,t[42]=D,t[43]=O):O=t[43],O}async function F1(e,t,n){await e.project.open({path:t,target:`new-window`,entryPoint:n})}function I1(e){let t=e.split(/[/\\]/).filter(Boolean);return t.length>0?t[t.length-1]??e:e}function L1(e){let t=(0,$.c)(5),{bridge:n}=e,r=n.config.collabUrl?n.config.collabUrl:null,i;t[0]===n?i=t[1]:(i=(0,Z.jsx)(R1,{bridge:n}),t[0]=n,t[1]=i);let a;return t[2]!==r||t[3]!==i?(a=(0,Z.jsx)(mu,{collabUrl:r,children:i}),t[2]=r,t[3]=i,t[4]=a):a=t[4],a}function R1(e){let t=(0,$.c)(9),{bridge:n}=e,{resolvedTheme:r}=cn(),i=rd(r),a=cv(),[o,s]=(0,Q.useState)(null),c;t[0]===i.background?c=t[1]:(c=(0,Z.jsx)(`div`,{ref:s,className:`flex h-screen min-h-0 flex-col`,style:{backgroundColor:i.background}}),t[0]=i.background,t[1]=c);let l;t[2]!==n||t[3]!==o||t[4]!==a?(l=(0,Z.jsx)(ML,{bridge:n,variant:`window`,visible:!0,onVisibleChange:B1,installedClis:a,container:o,isShowing:!0,onRequestEditorFocus:z1}),t[2]=n,t[3]=o,t[4]=a,t[5]=l):l=t[5];let u;return t[6]!==c||t[7]!==l?(u=(0,Z.jsxs)(Z.Fragment,{children:[c,l]}),t[6]=c,t[7]=l,t[8]=u):u=t[8],u}function z1(){}function B1(e){e||window.close()}function V1(e){return e?.config.mode===`terminal`?(0,Z.jsx)(L1,{bridge:e}):e?.config.mode===`navigator`?(0,Z.jsx)(A1,{bridge:e}):(0,Z.jsx)(o1,{})}function H1(){let e=null,t=new Set,n=!1,r=null;function i(){for(let e of t)e()}function a(){e!==null&&(e=null,i())}return{install({bridge:t}){let o=t?.bugReport?.onCrashDetected;if(typeof o==`function`)return n?r??void 0:(n=!0,r=o(t=>{e=t,i()}),()=>{r?.(),r=null,n=!1,a()})},getSnapshot(){return e},subscribe(e){return t.add(e),()=>{t.delete(e)}},dismiss(){a()}}}var U1=H1();function W1(e){return U1.install(e)}function G1(e){let t=(0,$.c)(7),{bridge:n}=e,r=(0,Q.useSyncExternalStore)(U1.subscribe,U1.getSnapshot);if(r===null)return null;let i;t[0]!==n.bugReport||t[1]!==r?(i=e=>{e||(n.bugReport.crashAck({eventId:r.eventId}),U1.dismiss())},t[0]=n.bugReport,t[1]=r,t[2]=i):i=t[2];let a=n.config.mode===`navigator`,o;return t[3]!==r||t[4]!==i||t[5]!==a?(o=(0,Z.jsx)(Of,{open:!0,onOpenChange:i,systemWide:a,crashInvite:r}),t[3]=r,t[4]=i,t[5]=a,t[6]=o):o=t[6],o}var K1=e=>{let t=(0,$.c)(8),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let{theme:r}=cn(),i=r===void 0?`system`:r,a,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a={success:(0,Z.jsx)(Fs,{className:`size-4`}),info:(0,Z.jsx)(Nc,{className:`size-4`}),warning:(0,Z.jsx)(Rc,{className:`size-4`}),error:(0,Z.jsx)(Lm,{className:`size-4`}),loading:(0,Z.jsx)(Pc,{className:`size-4 animate-spin`})},o={"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},t[2]=a,t[3]=o):(a=t[2],o=t[3]);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s={classNames:{toast:`cn-toast`}},t[4]=s):s=t[4];let c;return t[5]!==n||t[6]!==i?(c=(0,Z.jsx)(sl,{theme:i,className:`toaster group`,icons:a,style:o,toastOptions:s,...n}),t[5]=n,t[6]=i,t[7]=c):c=t[7],c},q1=Symbol.for(`ok.client.fetchWrapper`);function J1(e={}){if(typeof window>`u`)return;let t=e.apiOrigin&&e.apiOrigin.length>0?e.apiOrigin:void 0;if(window.fetch[q1])return;let n=window.fetch.bind(window),r=du(),i=((e,i)=>{let a=X1(e,t);if(!a.isApi)return n(e,i);if(e instanceof Request){let t=Y1(e.headers,r);return n(new Request(a.url,e),{headers:t})}let o=Y1(i?.headers,r);return n(a.url,{...i,headers:o})});i[q1]=!0,window.fetch=i}function Y1(e,t){let n=new Headers(e);for(let[e,r]of Object.entries(t))n.set(e,r);return n}function X1(e,t){if(typeof e==`string`){if(e.startsWith(`/api/`))return{isApi:!0,url:t?t+e:e};let n=Z1(e);return n&&Q1(n,t)?{isApi:!0,url:e}:{isApi:!1,url:e}}let n=e instanceof URL?e:Z1(e.url,window.location.origin);if(n&&Q1(n,t)){let r=e instanceof URL?e.href:e.url;return t&&(n.origin===window.location.origin||n.protocol===`file:`)?{isApi:!0,url:t+n.pathname+n.search+n.hash}:{isApi:!0,url:r}}return{isApi:!1,url:e instanceof URL?e.href:e.url}}function Z1(e,t){try{return new URL(e,t)}catch{return null}}function Q1(e,t){if(!e.pathname.startsWith(`/api/`))return!1;if(e.origin===window.location.origin||e.protocol===`file:`)return!0;if(t){let n=Z1(t);if(n&&e.origin===n.origin)return!0}return!1}var $1={messages:JSON.parse(`{"--T3kB":["Loading preview"],"-3Qbv7":[["count","plural",{"one":["matches ","#"," file"],"other":["matches ","#"," files"]}]],"-3ois8":["Hard break"],"-5jISU":[["0","plural",{"one":["#"," template"],"other":["#"," templates"]}]],"-8PP0T":["Match case"],"-K0AvT":["Disconnect"],"-LHLx7":["edited template"],"-QCLWk":["Templates available"],"-Qw-1t":["GitHub authentication failed. Try signing in again."],"-WFFG2":["Default properties"],"-YV1Uo":["Pattern ",["patternNumber"]],"-g6KIS":["Unrecognized link"],"-gdcIo":["Auto-sync is on — your commits push and remote changes pull on intervals."],"-i7ik4":["Collapse burst ",["burstNumber"]," diff"],"-kbIAr":["Links & images"],"-lCAuQ":["Loading graph"],"-o5XAG":["Sent privately to the OpenKnowledge team, along with your note and app version. Never posted publicly."],"-q4abP":["Results capped — this workspace has more files than search can index. A missing file may be a cap artifact, not a typo."],"-r_Kx7":["Create skill"],"-slrNR":["Toggle a task list."],"-uaQnI":["No matching worktrees or branches."],"-wePNM":["Search matches file names, paths, and folders. Open a file to search its body (⌘F)."],"-zA2E7":["Couldn't create the worktree. Try a different name."],"-zy2Nq":["Type"],"0-31GV":["Removing"],"00c7t0":["Ask AI about this code block"],"02P3hL":["Upload failed: ",["message"]],"03wKPg":["A report helps us find the cause. Nothing is sent until you review it."],"04RA0-":["Failed to enable sync — ",["detail"]],"04XyCH":["Adds a managed block to ",["0"]],"05n5wS":["Doc mention suggestions"],"06SZfb":["Template \\"",["trimmedTitle"],"\\" created"],"07eGJB":["Couldn't move skill: ",["0"]],"07gHun":["You don't have access to this private repo. Sign in with an account that does."],"07q4Qk":["File sidebar"],"09Tv5j":["Reconnecting…"],"0BB9ID":["No headings yet."],"0BfhAj":["Reset view"],"0E9DR6":["Type to find a doc"],"0Er6-M":["Restarting"],"0Gd0NU":["Shared"],"0LBDjY":["\\"",["0"],"\\" uninstalled — back to a draft"],"0NA4b3":["Keep my version"],"0NkNB5":[["0"],"mo ago"],"0SBTff":["Show terminal"],"0TnCvC":["Rename ",["0"]],"0YEbfk":["Connect to AI tools"],"0YUS3Q":["Subfolder under current folder"],"0_J12R":["New file from template \\"",["displayTitle"],"\\" (",["fileName"],") in ",["targetLabel"]],"0eHrMb":["Could not complete delete"],"0g7rCZ":["Duplicated to \\"",["0"],"\\""],"0inVGS":["Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."],"0jD-Gn":["A team knowledge base, a personal wiki, project docs..."],"0kTAXe":["Open source: ",["mirrorSrc"]],"0rwwOn":["By tag"],"0s8-e8":["Select, enter, or leave block components and fallback source blocks from keyboard boundaries."],"0t0bbC":["Could not save sync preference: ",["detail"]],"0uTHCg":["Start a new OpenKnowledge project."],"0wswKc":["Horizontal rule that divides sections."],"0xnmlQ":["Repository name"],"0yL--g":["Review conflicts"],"10g8I_":["Turn off Only markdown files"],"12F9WL":["(no id)"],"16D5Zj":["Are you sure you want to delete ",["itemName"],"? This action cannot be undone."],"1AumWo":["Push failed — check the server logs for details."],"1CalO6":["Style"],"1EcCom":[["keyName"]," value"],"1FLarN":["Describe what you want to create to continue"],"1GhYxC":["of ",["totalPages"]],"1HBhDS":["Checking out files"],"1MGRQl":["Terminal sessions"],"1OKzC_":["Your report couldn't be sent. Try again or email it instead."],"1QfxQT":["Dismiss"],"1RluQD":["Show replace"],"1TNIig":["Open"],"1Ta7Fd":["Open ",["basename"]],"1XSMhZ":["Switching to <0>local-only</0> will refuse until they're untracked via<1> git rm --cached</1>."],"1YJ4Yg":["Update available",["0"]],"1ZpfyB":["Open with AI ",["displayName"],", ",["hint"]],"1bDVu5":["Workspace Command Palette"],"1d1F11":["Select all files and folders"],"1di5fu":["Document not found"],"1hvhf0":["The folder on disk and the id agents use to invoke this skill."],"1njn7W":["Light"],"1nke1r":["Open ",["0"]," on GitHub (opens in a new tab)"],"1t_NnN":["Reject"],"2-CeZn":["Your report is saved on this Mac, so nothing was lost. You can email it to us instead."],"2277Tu":["Collapse graph"],"237hSL":["Ended"],"25Pw6a":["Cloning"],"27XW26":["Clone happens in the Project Navigator. Reclick the share link there."],"28B21t":["Agent Skills"],"29VNqC":["Unknown error"],"29XZXN":["Set git identity"],"2AIVbm":["Review your report"],"2B6eYX":["What this checkbox changes"],"2BBAbc":["List"],"2FYpfJ":["More"],"2FnYUD":["App & system info, recent app logs, and project server logs: the essentials we need to reproduce the issue."],"2G-56b":["Failed to update markdownlint rules"],"2GT3Hf":["Global"],"2H43L8":["Secrets like API keys and tokens are redacted automatically."],"2IYGkU":["This doc has unpushed changes. Recipients will see the last pushed version."],"2QM24L":["All tags"],"2RBzMG":["Network error — check your connection and try again"],"2Snes1":["This sends the link's address off your machine"],"2XQ8Ww":["Open preview when agent edits"],"2YOwme":["Restarted — now running v",["appRuntime"],"."],"2YZwPB":["Forward-links response did not match expected shape."],"2bVHbB":["Available in every project on this computer."],"2fkdnR":["Nothing to undo on this file"],"2hYmUH":["my@email.com"],"2hpdRq":["Hide panel (",["panelShortcutLabel"],")"],"2j1kfc":["Enter a valid URL (for example https://api.openai.com/v1)."],"2m_bmh":[["label"]," (",["0"],")"],"2myNzt":["We've filed it with the team and attached your logs."],"2n3oDU":["Project-level pages ordered by inbound link count, up to ",["FULLSCREEN_HUB_LIMIT"]," results."],"2q_Q7x":["Visibility"],"2ryd91":["Failed to rename property"],"2tgFCe":["Starting clone"],"2vIPtm":["Open link in new tab"],"2wxgft":["Rename"],"322lyb":["Highlight tips, warnings, and notes."],"34qyH5":["Could not reach server"],"36WXSC":["Couldn't delete template: ",["error"]],"36aWJD":["Join us on Discord"],"379t2h":["Unified diff"],"38foVZ":["Loading diff"],"3BnyYc":["This doc isn't on GitHub yet. The link won't work until it's pushed."],"3DJEEt":[["sizeText"]," · secrets redacted · ",["fileCount","plural",{"one":["#"," file"],"other":["#"," files"]}]],"3DTatP":["Copy a prompt for your agent, start a blank file, or scaffold from a template."],"3FMvls":["A short line shown under the title in the template list."],"3Fcb0I":["Open graph"],"3HNlwb":["Hello, world!"],"3Ib6FN":["Move down"],"3Ijjy1":["Couldn't load this skill's files."],"3IseAk":["Install an AI agent to create with AI"],"3J7d2N":["Big section heading."],"3JYy1p":["Branch ",["0"]," no longer exists. Cloned to default branch."],"3MnvrL":["Showing top ",["0"]," matches — keep typing to narrow"],"3Mwaly":["Could not initialize ",["0"],"."],"3SDfZl":["<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."],"3TCafD":["Stored on this machine."],"3VbwPp":["Open ",["keyName"]," in browser"],"3VsNTI":["Loading document"],"3YvS-c":["New tab"],"3_6U6f":["Connect to GitHub"],"3__SjS":["breadcrumb"],"3a_Bd7":["Open source doc: ",["mirrorSrc"]],"3aeN7X":["All files"],"3cOo2C":["Create a folder from the current document or folder context."],"3ePd3I":["What's new"],"3h5zMp":["Something went wrong loading the settings panel."],"3iyGWF":["Open recent project"],"3jod3l":["Connect GitHub"],"3l_cXP":["Take a look if you'd like. This exact file is what we receive."],"3m2GBo":["Searching docs"],"3mFsc3":["Restore with remote changes"],"3o3tur":["Starter content"],"3oh0nQ":["Nested .okignore error in ",["path"]],"3pU8e-":["Pin tab"],"3wiBAs":["Where should it live?"],"3y6XTb":["Semantic search"],"3zyg_A":["Ignore patterns"],"438Fca":["Cloned successfully, but could not open the project."],"44DSl0":["Already have a git repository? Add it with <0>git remote add origin <url></0> in this project's folder. This page updates automatically once a remote is detected."],"45MZFs":["Commands"],"47EXvY":["This replaces the current skill content with the bundled version ",["0"]," (you have ",["1"],"). Any local edits will be replaced — your current version is saved to history first, so you can restore it."],"484LKL":["Remove link"],"48uGTI":["Failed to load docs. Press Escape and re-open to retry."],"4A3Yzu":["Code block"],"4BITzH":["Error:"],"4CfgPM":["Project folder created, but git init failed. Try again."],"4E9jPa":["Create your first project"],"4Gz2wC":["Failed to upload file"],"4KmEoC":["Hotkeys"],"4NC2Ym":["Move to the next or previous table cell."],"4PYsOz":["Hide Files (",["sidebarShortcutLabel"],")"],"4Sxexw":["Source undo or redo"],"4TzU0n":["Initialize"],"4XL6N4":["Detected from the editors this project is set up for. Adjust to control where every skill installs."],"4buZWd":["Inherited from ",["path"]],"4c_a6S":["Nothing set yet."],"4g19V6":["Failed to update property"],"4hJhzz":["Table"],"4ieVh2":["Pick “Custom” above to use this palette."],"4jDd0j":["Anyone can see"],"4mLBx9":["Subscriptions aren't available right now."],"4niEzY":["Sandboxed HTML embed — write HTML, see the rendered preview live."],"4nj6n8":["/api/config returned HTTP ",["code"]],"4rjwLG":["Create with ",["0"]," CLI"],"4sKwf6":["File already exists"],"4uNLmk":["Pulling"],"4v2Yyz":["Select every visible file-tree row when focus is in the Files sidebar."],"4xtLTl":["Hidden folder “",["basename"],"”"],"4zEZS5":["Auto-sync is on for this worktree, inherited from ",["project"],". Change it in Settings → Sync."],"4zGlN_":["Paste image URL or click upload"],"5-FeN2":["Share URL"],"5-o4kO":["Only markdown files"],"50ORFs":["Reset ",["0"]," to default"],"54Y6Fg":["Could not load templates. Try again later."],"56WWtu":["Couldn't load starter packs: ",["error"]],"56xUL1":["Property name"],"57fiu8":["(read-only — edit in source mode for now)"],"5ALjdr":["Move through visual-editor find results from the find field."],"5Ajb15":["The formula <0>c = √(a² + b²)</0> renders inline."],"5AzM72":["This setting is per-machine and isn't shared with collaborators."],"5ClEAu":["Inline hashtag for cross-doc grouping."],"5D3Ior":["Hide folder"],"5DFPDh":["Started a fresh OpenKnowledge server (v",["appRuntime"],") for this dev session — the server already running for this project was terminated. Connected agents (Claude Code, Codex, Cursor) just lost their OpenKnowledge MCP connection; restart the agent, or toggle its OpenKnowledge MCP server off and on, to reconnect."],"5F5HYj":[["ahead"]," ahead, ",["behind"]," behind"],"5GKMSz":["Indent or outdent the current list item."],"5GRxoA":["Search files, folders, and commands for the current workspace."],"5LXwX8":["This permanently removes ",["path"],". Agents that reference this template by name will fail until it's recreated or replaced by one in a parent folder."],"5OTgC7":["Open and focus the bottom Ask AI prompt composer."],"5OqaJi":["Enter a project name"],"5PHgV2":["You can also create one from a terminal with <0>ok bug-report</0>."],"5QGTaA":["Could not copy relative path"],"5SwVv1":["Not installed"],"5Tk8Fb":["Loading files"],"5Umg9i":["Disable external link previews"],"5WDhAk":["Link to a page or external URL."],"5ZB7XC":["File drop zone"],"5e1Dri":["The menu label agents pick this template by (required)."],"5gr_ev":["Becomes the document's content when someone creates a doc from this template. Type <0>",["dateToken"],"</0> or <1>",["userToken"],"</1> to fill in today's date or the author's name automatically."],"5kWklo":["(some may already be hidden by other rules)"],"5lWFkC":["Sign in"],"5mksg0":["Failed to disable semantic search — ",["detail"]],"5qNxOe":[["count","plural",{"one":["#"," item could not be moved to the Trash. Do you want to permanently delete instead?"],"other":["#"," items could not be moved to the Trash. Do you want to permanently delete instead?"]}]],"5wV2qQ":["and more"],"5y_9lO":["Waiting for authorization"],"6-wLTJ":[["behind"]," behind origin"],"60vpJN":["What were you doing?"],"62Pc08":["Install for Claude Chat & Cowork (Desktop App)"],"636K3K":["Delete adjacent chip"],"67f-3g":["Duplicate succeeded but the sidebar may be out of date — refresh to resync"],"6Aih4U":["Offline"],"6EKG_c":["What agents match on to decide when to use the skill."],"6HCOwA":["Failed to open."],"6KCH4m":["Hidden files"],"6LbUG7":["The repository is private and your GitHub account doesn't have access to it."],"6MnZEC":["Terminal failed to load"],"6O626z":["No headings match \\"",["trimmedAnchorQuery"],"\\""],"6Pxqwv":["No project templates yet. Create one to make it available everywhere in this project. Folder-scoped templates live on each folder's overview page."],"6Uau97":["Skip"],"6V3Ea3":["Copied"],"6VqW-1":["Remove ",["keyName"]],"6WdDG7":["Page"],"6YtxFj":["Name"],"6ZhdPI":["What the agent may read, write, and surface."],"6_ZOw4":["Copied full path"],"6bTTAN":["Invalid input — pick a different folder."],"6cR-PU":["Already open"],"6caB2T":["Connect an existing repository"],"6cuT_1":["Open date picker for ",["keyName"]],"6cyguR":["Connect GitHub to continue."],"6eniID":["Map the architecture"],"6fGjTz":["Show fewer"],"6g2jsp":["Update skill"],"6gRgw8":["Retry"],"6h4zVU":["What would you like to create?"],"6hfDJr":["Server error: ",["status"]],"6ibbCg":["Create your first file"],"6ki7F2":[["0","plural",{"one":["#"," item"],"other":["#"," items"]}]],"6lGV3K":["Show less"],"6m_7We":["Open this settings dialog."],"6q0rnH":["writing"],"6qMe0o":["Draft a technical spec for my project. Start with an overview, then add cross-linked pages for the architecture, the key modules, and the open questions, all linked from a specs index."],"6s7LXO":["Heads up"],"6u9LvN":[["days","plural",{"one":["#"," day ago"],"other":["#"," days ago"]}]],"6vEr3W":["Link target"],"6zzhQL":["Send your report by email"],"72xhRD":["Diagram view mode"],"74-bX-":["A pull quote stands out from the surrounding text."],"74eHt-":["No file or folder selected"],"75Y1dk":["Horizontal pill strip + active panel below; click a pill to switch panels."],"77SdEP":["Delete ",["itemName"]],"7FamGZ":["Go to line"],"7Fkcej":["+ Add ",["addChildName"]],"7H4UHD":["Documents tagged <0>#",["tagName"],"</0>"],"7JtSLi":["Failed to delete path"],"7KeV5F":["Undo all failed: ",["message"]],"7OhaRy":["Source search"],"7Ongq0":["Condense my AGENTS.md file to less than 40k characters"],"7OwvEL":["Show HTML preview"],"7PNNNs":["This sends content off your machine"],"7PXYaF":["<0>ok</0> won't run in external terminals until you add it later from the File menu. OpenKnowledge's built-in terminal and AI tools keep working."],"7PzzBU":["User"],"7YRrJ9":["Available in the OpenKnowledge desktop app. From a terminal, use<0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2>."],"7_bFEL":["Drag ",["patternText"]," to reorder"],"7apDiJ":["A folder named <0>",["sanitized"],"</0> already has files here. Pick a different name."],"7d1a0d":["Public"],"7hctf2":["Describe the project you want to create"],"7jIIFX":["You're all set up!"],"7qRHf0":["Install for Claude Chat & Cowork"],"7uBlRT":["Copy the focused file-tree item so Paste can duplicate it."],"80c4-P":["Code copied to clipboard"],"81H_23":["Add properties"],"881Uwh":["Delete selected table"],"89TtiD":["New file from template \\"",["displayTitle"],"\\" (",["fileName"],") in the project root"],"89y7ar":[["sizeText"]," · secrets redacted"],"8F1i42":["Page not found"],"8FqTCr":[["chunksRemaining","plural",{"one":["#"," unresolved hunk"],"other":["#"," unresolved hunks"]}]],"8Gzz2G":["worktree of ",["worktreeOf"]],"8IP5jY":["Each selected tool gets an OpenKnowledge MCP entry."],"8Jm2EP":["Toggle heading levels 1 through 6."],"8OGgNM":["Open or close visual-editor find."],"8OxKZy":["Move succeeded but the sidebar may be out of date — refresh to resync"],"8PifYj":["Mermaid diagram"],"8PmoQF":["Open the insert menu in an empty or active text position."],"8RtNI0":["Failed to load documents"],"8TvlHF":["Crash dump"],"8XQRON":["Loading repositories"],"8_brI5":["Name is required"],"8cS0nH":["Config sharing unavailable: ",["0"],"."],"8cpOa8":["Couldn't disconnect — please try again."],"8cpeU3":["Shared repositories"],"8eW0WQ":["No matching repositories."],"8fRyLo":["Invalid patch payload"],"8fc_3j":["Protected branch — cannot push"],"8m8diM":["No location selected. Use Browse to choose a folder."],"8nWu1k":["Empty diagram"],"8tjQCz":["Explore"],"8uAWix":["This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."],"8vETh9":["Show"],"92rbk2":["Mirror loading <0>",["mirrorRef"],"</0>"],"96G6Re":["New folder"],"96w9hU":["Something went wrong opening this file (HTTP ",["status"],")."],"99eR72":["Visual editor table selection"],"9Bd18D":["Failed to load hub pages"],"9KooKn":["Run a project audit from the Problems panel."],"9NJWgv":["Backlinks"],"9OIqw4":["You don't have write access to this repo."],"9PQysm":["Hide advanced"],"9R7pRC":["No tags match \\"",["trimmed"],"\\". Continue typing to create one."],"9UQ730":["Clone"],"9V0W-R":["Adds the OpenKnowledge skill to the <0>Claude Desktop App</0> so it's available in Chat and Cowork sessions."],"9XIEYq":["Attach the file in an email to <0/>"],"9bCiQ8":["No pages are missing incoming graph links."],"9clcD5":["Open documents tagged #",["chip"]],"9dw5bW":["Create with ",["0"]],"9euN0m":[["count","plural",{"one":["#"," more cross-doc participant"],"other":["#"," more cross-doc participants"]}]],"9fhQRL":["Beta channel"],"9fvog2":["Preview unavailable: ",["errorDetail"]],"9i21pa":["Commits happen automatically"],"9jnjV0":["Embed an audio file with native player controls."],"9mEZeD":[["name"]," CLI"],"9npOH9":["Open file"],"9o1bIV":[["behind"]," behind"],"9oE4C3":["Browse your repos:"],"9sBe85":["Follow us on"],"9tJX8r":["By meaning"],"9zb2WA":["Connecting"],"A1taO8":["Search"],"A50vr3":["Use lowercase letters, digits, and <0>-</0> only."],"A5CYnd":["Broken link"],"A5hiCy":["Create template"],"A67Uwj":["Still loading"],"A6h5b-":["File duplicated"],"AAlr5Y":["No collab server for this worktree — run <0>ok start</0> here, or reopen the project."],"AB4qw9":["New terminal"],"AE7BY3":["The terminal session ended."],"AIn2Yv":[["displayName"]," CLI, ",["hint"]],"AItsE5":["Open it there"],"AKxFtn":[["openedWorktreeCount","plural",{"one":["worktree"],"other":["worktrees"]}]],"ALhMYW":["Terminal"],"AQ-Lfg":["Couldn't load templates"],"AQGtjK":["Commands run with the full access of your macOS user account on this machine. Turn this off to disable the shell."],"ATGYL1":["Email address"],"AVW-K9":["Failed to load orphan pages"],"AWOSPo":["Zoom in"],"AaaESH":["Auto-sync is off for this worktree, inherited from ",["project"],". Change it in Settings → Sync."],"AcK_r0":["Claude CLI"],"AczYxH":["Custom open-knowledge entry — not managed by OpenKnowledge"],"AdcGcG":["Applying your change"],"AddR83":["Could not create project. Try again or pick a different location."],"AeHuzT":["# One pattern per line.\\n# Examples:\\n# drafts/\\n# *.draft.md\\n# !keep.md"],"AeXO77":["Account"],"AiNMQ7":["This project lives only on this computer. Connect it to GitHub to back it up and share it with other people."],"Aif3E7":["Enable semantic search"],"Am78jY":["Drag ",["keyName"]," to reorder"],"Aq-O0x":["status"],"AqnqMJ":["API key set"],"ArBWJf":["Undo last edit"],"AsqRE_":["Default location for new attachments"],"AtBdnD":["Couldn't delete skill: ",["error"]],"B11p-O":["Edit markdown link"],"B2DrPb":["Auto-save"],"B2Srgd":[["packName"]," skill installed."],"B3NAZC":["Open Navigator"],"B4_ipX":[["conflictCount","plural",{"one":["#"," file conflicted"],"other":["#"," files conflicted"]}]],"BAH4qX":["Selected graph item"],"BBqGS9":["Desktop"],"BD0XSC":["Failed to load project templates"],"BEkF-P":[["userName"],", ",["tabCount","plural",{"one":["#"," concurrent tab"],"other":["#"," concurrent tabs"]}]],"BGHHtQ":["Single page"],"BH56dn":["Custom display text"],"BQKHuL":["Restart terminal"],"BQu9Pg":["Symlink"],"BUyQnq":["Couldn't restart the server. Try \`ok start\` in this folder."],"BY-g4_":["Add pattern"],"Bdha5y":["Publishing..."],"BeWTQy":["Loading starter packs"],"BgV29F":["Visual editor find input focused"],"Bn9-El":["default"],"Bv5a9_":["Selection statistics"],"Bx4EXG":["Actions for ",["label"]],"By-7Pn":["Toggle a bullet list."],"BymzO4":["Document outline"],"C0hoX6":["Always included"],"C37Zkt":["Send to"],"C62P6b":["Editor selection"],"C7XjNB":["Global Skill"],"C9TBvF":["No Outgoing"],"CCTop_":["Recent"],"CFnavk":["This project isn't a git repository, so worktrees aren't available."],"CKyk7Q":["Go back"],"COr1Y7":["Pick <0>openknowledge.skill</0> from your <1>Downloads</1> folder. It enables automatically."],"CSL0l1":["Couldn't clear the key — please try again."],"CTJLpz":["\\"",["trimmed"],"\\" already exists here"],"CU3AiE":["Switching branches"],"CWzc2T":["<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."],"CXTwen":["Can't safely edit this project config"],"CXj9C-":["New property name"],"C_Lyvh":["Failed to save theme setting"],"C_WGy8":["This file is too large to open in the built-in text editor (1 MB limit). Use Open file below to open it in another app."],"C_cPoW":["Your GitHub session expired — sign in again to verify push access."],"ChAtFg":["You don't have permission to push to this repo"],"CifUuG":["Update available"],"Ck9XRt":["Couldn't save the key — please try again."],"CmeH9S":["Add property to ",["keyName"]],"CoHvYd":["Moved ",["0"]," to position ",["1"]," of ",["2"]],"CvsD6Y":["via ",["viaTags"]],"D-Oh1s":["How to set up ",["0"]," (opens in browser)"],"D12vtS":["(detached)"],"D2CwBE":["Create a new OpenKnowledge project from the <0>",["0"],"</0> starter pack (",["1","plural",{"one":["#"," folder"],"other":["#"," folders"]}]," and starter templates) in the folder of your choice."],"D4H2N6":["Remove ",["tag"]],"D8OV7J":["Only collaborators"],"DDTdLl":["Code block settings"],"DELNQk":["Collaborators see your in-progress edits as soon as they sync."],"DEWDbv":["Show diagram"],"DF1MtZ":["Loading conflict for ",["filePath"]],"DFfRbX":["Sync status: ",["syncStateLabel"]," — git identity unset"],"DId6MT":["Project-level pages with no outgoing graph edges."],"DJd000":["Activate the previous editor tab."],"DPfwMq":["Done"],"DTI-fp":["This ",["targetNoun"]," only exists on branch <0>",["shareBranch"],"</0>. You have uncommitted changes that prevent switching here — open it in a worktree to leave your changes untouched."],"DVh_Tb":["Failed to clean up after trash"],"DXd9LM":["New worktree"],"D_WKe_":["Click an agent's avatar in the presence bar to view their session."],"DbILZA":["No matches. Some files are excluded from search (hidden or ignored files)."],"DcLaew":["Custom theme"],"DeDYLr":["Unrecognized wiki link"],"DgcGrb":[["fileCount","plural",{"one":["file"],"other":["files"]}]],"DhK_hZ":["Moved \\"",["name"],"\\" to ",["0"]," (",["skipped"]," binary file(s) not copied)"],"DhLHEb":["Failed to load activity"],"DiFKSL":["Counting markdown files"],"Dnn2XG":["Automatic"],"DrYM2Z":["Sync disabled"],"DsDwR-":[["0","plural",{"one":["#"," error"],"other":["#"," errors"]}]],"DskIkK":["Sign-in stream ended without confirmation — please try again"],"Dub54T":["Preview browsers can't auto-copy. Use Cmd/Ctrl+C on the URL above, or open OK in the desktop app."],"Dvwa0U":["Create a worktree from this branch"],"Dw1T_W":["Rename ",["label"]],"E1Da_b":["This permanently removes ",["0"],". Agents that invoke this skill by name will fail until it's recreated."],"E1_c72":["Task list"],"E1tG2u":["Get Claude Code"],"E2Mv-X":["Copy source"],"E4XYYH":["Enable terminal for this project"],"E5WeIy":["Reopen the most recently closed editor tab."],"E6lrpp":["Manage the GitHub account OpenKnowledge uses to browse and sync your repositories."],"E7BhZn":["Blank note"],"E9bKSA":["Creating"],"EBVbtP":["Could not duplicate item"],"EDl9kS":["Subscribe"],"EDm3wJ":["Loading diff renderer"],"EEYbdt":["Publish"],"EHu0x2":["Syncing"],"EJuO7B":["Connect a GitHub account to browse and sync your repositories."],"ELYtNJ":[".ok folders"],"EL_YRd":["Mirror of <0>api-spec</0>"],"ENpRJV":["External link previews"],"EOjU5V":["Inline Math Properties"],"ETyvvg":["No language match."],"EVnzPs":["Edit with AI"],"EWPtMO":["Code"],"EWX92Z":["Collapse Ask AI"],"EZVxVz":["Replace the active match from the replace field."],"E_BHoD":["Could not move \\"",["targetName"],"\\" to the Trash. Do you want to permanently delete instead?"],"E_tNGD":["Connected as @",["login"]],"Ea1prf":["Choose which editors every skill in this project installs into."],"EarrCe":["Search emoji"],"Eax_et":["Accent"],"EbZT7P":["Toggle the left file sidebar."],"EbjWsS":["Current commit"],"EcM3k7":["Failed to clean up pending ",["kind"]],"EcR0fl":["Checking for installed agents"],"EdQY6l":["None"],"EeRZnZ":["Expand burst ",["burstNumber"]," diff"],"Ef7StM":["Unknown"],"EhDLBx":["You modified <0>",["filePath"],"</0> locally, but it was deleted upstream."],"Ehkru0":["Open, navigate, accept, or dismiss CodeMirror completion suggestions."],"EiVgl5":["You don't have permission to push to this repo."],"Eji13z":["Toggle highlight formatting."],"EkH9pt":["Update"],"El7NbA":["Heading 2"],"Emz5BG":["Embeddings are computed only when a search runs and are cached locally under <0>.ok/local</0>."],"EoaQyO":["Append-only log of what changed."],"EqrC_R":["Undo failed: ",["message"]],"EqtBXb":["Visual editor find open"],"ErRi6L":["Template \\"",["label"],"\\" deleted"],"Es-eZU":["Remove from recent projects"],"Ev2r9A":["No results"],"EvPX7f":["Opens a folder picker to choose where to clone the repository."],"Evq3lu":["Orphan mode"],"ExPiRQ":["Move to the next CodeMirror lint diagnostic."],"ExUzM4":["skill \\"",["0"],"\\""],"F-NRCj":["Add property"],"F-vBv0":["Ask"],"F0OA00":["Get ",["displayName"]],"F1T9y_":["Showing top matches — keep typing to narrow"],"F4IYWe":["Share doc"],"F4vEsL":["Sync status: ",["syncStateLabel"]],"F6pfE9":["Active"],"FBknns":["HTML"],"FCAcjR":["Run a real terminal docked inside OpenKnowledge, starting in this project's folder."],"FCxvG5":["First item"],"FEK4oC":["OpenKnowledge will be initialized at <0>",["gitRoot"],"</0> — the parent of your new folder, because it contains a <1>.git</1> folder (one project per git repo)."],"FEqWFL":["Guides your AI agents on how to work here."],"FEr96N":["Theme"],"FNTx6u":["Search \\"",["semanticSubmitQuery"],"\\" by meaning"],"FOGD7m":["Create something great."],"FRYB1Q":["/api/config returned a malformed body"],"FRqZ9v":["Couldn't update skill: ",["0"]],"FTUGgh":["Enter a repository URL or owner/repo"],"FUMerq":["Could not enable sync: ",["detail"]],"FWQuPE":["This project is running a different, incompatible build of OpenKnowledge than this app (v",["0"],")."],"FXk_zY":["Adds a guided workflow for authoring new Agent Skills."],"FZtBeR":["Enable ",["0"]],"FgRAvd":["Logs & system info"],"FjkaiT":["Zoom out"],"FnMkli":["Sync disabled — you don't have permission to push"],"FqTpiN":["Bird wiki"],"Fqr8BP":["Multi-page PDF viewer with toolbar controls (thumbnails, page nav, zoom)."],"Fsx78O":["Add the <0>ok</0> command to your terminal"],"FvMSms":["Renaming changes the file on disk and the id agents use to pick this template."],"FvpFSZ":["Reveal in Finder, ",["hint"]],"Fxf4jq":["Description (optional)"],"Fy4GgU":["Explain how your codebase works so teammates and AI agents can find their way around. Good for documenting the architecture, the main parts, and the questions new contributors always ask."],"FyW0WO":["Authorize in browser"],"G-JBA1":["Source mode requires a live connection — your edits are saved and will appear when you reconnect."],"G-h6qN":[["0","plural",{"one":["#"," option set"],"other":["#"," options set"]}]],"G0YZ-I":["Indent or outdent list item"],"G1Gw0v":["New template"],"G1XxbZ":["Checkbox"],"G4-bgo":["Ask AI (from selection)"],"G7-rf8":["Pattern syntax error: ",["message"]],"G7cMuO":["HTML preview"],"G8t9NN":["Add a property"],"GA-UkN":[["keyName"]," type: ",["typeLabel"],". Click to change."],"GDvlUT":["Role"],"GF51cw":["Give the AI tools you use access to read and update your projects. Pick what to set up below, and change it anytime."],"GGsM4y":["Selected in graph"],"GHsJb8":["Show .ok folders"],"GJH-AT":[["docName"]," is ",["0"],". OpenKnowledge currently opens files up to ",["1"],"."],"GK-IRZ":["Undo buttons are disabled — per-session state has been garbage-collected."],"GLxIKR":["How to push manually"],"GN6L5F":["Filename"],"GQDSBN":["Layout options"],"GUYwCr":["Dismiss notice"],"GUqTzn":["Competitor research"],"GXf9hG":["Cloning ",["repoName"],"..."],"GZzDqc":["Details about the error you just hit are included. Secrets like API keys and tokens are redacted automatically."],"G_686w":["Task List"],"G_efLf":["Installed into"],"G_hVTP":["Enable Themes"],"G_mWXb":["Filter languages"],"GamjcN":["Template saved"],"GemPfn":["Failed to parse forward-links error response (HTTP ",["status"],")"],"Gfr4fu":["Server can't open documents"],"GhjUB_":["Reconnected"],"Gp_twO":["Local path"],"GsBUCk":["Loading settings"],"Gt4gOO":["This folder has unpushed changes. Recipients will see the last pushed version."],"GtJbUa":["Background"],"GuaJb-":["Open email draft"],"GubkSu":["Use a starter pack"],"GuqOb1":["Failed to load headings"],"Gx0VS1":["e.g. drafts/ or *.draft.md"],"GzPQ2f":["Stay in the loop"],"H-vDm3":["Relaunching to install the update…"],"H0WlWQ":["Grid of rows and columns with a header row."],"H86f9p":["Collapse"],"HAvRAI":[["skillCount","plural",{"one":["skill"],"other":["skills"]}]],"HCn0Ay":["Toggle strikethrough formatting."],"HGNCsl":["Connection lost — keep this tab open, your edits will sync when reconnected"],"HIb0vl":["Network error — please try again"],"HM56Bx":["Creating..."],"HPTPGr":["Create a new spec file for my user story"],"HSh8u_":["Folders"],"HTW0Zw":["One more step: run <0>claude</0> in this project and approve OpenKnowledge once."],"HXFyWD":["Split diff"],"HdkSiO":["New file"],"HfI1dR":["I already have it locally →"],"HjNrT0":[["0","plural",{"one":["#"," backlink"],"other":["#"," backlinks"]}]],"Hl89Qd":["Loading templates"],"HlmZBk":["Documents response did not match expected shape."],"Hnl9nT":["Set where pasted and dropped files are stored for this project."],"HoWElC":["This ",["targetNoun"]," has been moved, renamed, or deleted in your local copy of branch <0>",["branch"],"</0>. Please commit your changes or enable auto-sync."],"Hp1l6f":["Current"],"HpK_8d":["Reload"],"HptUxX":["Number"],"HqOPpj":["Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."],"HqiZvw":["OpenKnowledge stores its configuration and internal files inside a newly created <0>.ok</0> directory in your project root folder."],"Hrz9NY":["Wiki link"],"HyvSqq":["Project Skill"],"I-xnra":[["0"]," hex value"],"I1gRhX":["Failed to rename"],"I5685_":["Try a prompt"],"I5AfhE":["Sync status unavailable — server unreachable."],"I7Exsw":["Follow us on X"],"IA1wNb":["The Claude Desktop App didn't open the file. Is it installed? (",["msg"],")"],"IA6JW2":["Detecting"],"ICoNYz":["You can also manage this in Settings."],"IFezUv":["The audit could not be completed. Try again."],"IInnZo":["Conflict"],"IKoTAC":["Keep disabled"],"IN4UX8":["Search (",["searchShortcut"],")"],"IQPyrD":["Missing page — click to create"],"IRv9cH":["Cloned ",["repoName"],"."],"IWGfGF":["Checking your GitHub connection"],"IX7-sq":["Something went wrong opening \\"",["docName"],"\\"."],"IX_uXB":["my-feature"],"IYciRC":["Thanks for the report!"],"IajAbS":["Add a starter pack"],"If0crP":["Open with AI ",["targetDisplayName"],", ",["hint"]],"IgTwLt":["Open this document in the editor and collapse the graph."],"Ik-gP0":["Heading H",["level"],": ",["text"]],"Iq8zdU":["Close terminal"],"IrB5AK":["Server-side cleanup failed for ",["failedCount","plural",{"one":["#"," item"],"other":["#"," items"]}]],"IreQBq":["Repository"],"It9ARY":["Toggle the right document panel."],"Ix0K8o":["Hide external URL nodes"],"IxyZXD":["Screenshot"],"J2MgzQ":["Undo all edits on ",["docName"]],"J2Mv98":["Name (e.g. ",["login"],")"],"J2eKUI":["File"],"J3HzPL":["Collapse ",["keyName"]],"J6N5MX":["Couldn't construct the share URL. Try Done and re-share."],"J6mxC1":["A network problem or GitHub outage interrupted the clone."],"JCxGEX":["No disconnected pages. Pages appear here only when they have no incoming and no outgoing graph edges."],"JE21eh":["Symlink to ",["targetPath"]],"JJcBCm":[["0"]," total"],"JK-Ave":["Hide thumbnails"],"JL3si7":["Updating"],"JLUTgi":["No tags yet — author \`#tagname\` in any doc to populate the index."],"JLzQi_":["Close ",["accessibleLabel"]],"JM_aq-":["Use an https:// URL — http:// is only allowed for localhost."],"JOcPqH":["Bring a remote repository onto this machine."],"JWsZlx":["Open a project to edit."],"JZ8cO6":["Light, dark, or follow the OS."],"J_bJiH":["Pick a built-in IDE color palette, or define your own."],"Jejur6":["Couldn't load document"],"JfPuv7":[["shareBranch"]," isn't a valid branch name."],"Jhj_lh":["Modify the link target, anchor, and display label."],"JkCD2u":["Sync paused — you don't have permission to push to this repo"],"JmfgFc":["(a worktree of ",["0"],")"],"Jqqevv":["System error"],"JtD-Br":["Page link"],"Jw6EC4":["Branch switch failed — try opening the ",["targetNoun"]," manually."],"K-a33w":["Start writing to create this page"],"K-h9cT":["Couldn't save the resolution for ",["filePath"],"."],"K0N7zS":["Config sharing status read failed"],"K1ckLX":["Failed to create folder"],"K6MQQk":["Sync is failing. See the sync status for details."],"K6jjWB":[["packName"]," was already set up. Nothing to do."],"K6jxcj":["Add a key"],"K8-WWn":["Move between table cells"],"K9J00P":["Clone failed — connection error"],"KDuPiY":["Uploading ",["fileName"]],"KDw4GX":["Try again"],"KFdXwz":["Show panel (",["panelShortcut"],")"],"KH5bQi":["Using the <0>OK_EMBEDDINGS_API_KEY</0> environment variable (managed outside OpenKnowledge)."],"KIIamL":["OpenKnowledge will create commits and push them to your remote automatically. If you do not want automatic commits in your git history, you should not enable auto-sync."],"KOZud0":["Build a competitor research knowledge base. Start with an overview page, then add cross-linked pages for each competitor, their products and pricing, and the sources behind every claim."],"KPW5WC":["moved template"],"KQGZuq":["Reused if it already exists, created if not."],"KRJ6xh":["No tags yet. Continue typing to create one."],"KWL_Ih":["Blog post"],"KX1MZR":["Your repositories"],"KYSocE":["Research the extinction of flightless birds"],"KYcZ6Y":["Above"],"KZLdgR":["See <0>#design-docs</0> for the latest specs."],"K_vT1F":["Upstream sync"],"KaFCD3":["Open this link in a new tab and collapse the graph."],"Kf7GG5":["Restarting the server…"],"Kgdbkt":["Switch to local-only refused"],"Kh1n4a":["<",["componentName"],"> isn't a known component. Copy the source to use it elsewhere, or delete the block."],"Khxcyu":["Terminal access isn't enabled for this project."],"KkEAud":["Create a file from the current document or folder context."],"KmydK6":["Bold"],"KnoB--":["Will be saved as <0>",["sanitized"],"</0>."],"KpOJFY":["Enable external link previews"],"Kr3VPS":["Codex will still ask until you run \\"ok init\\" in a terminal for this project."],"KsAPaB":["This branch is checked out in:"],"KszKI_":["Skill level"],"KtACeE":["Default: <0>",["0"],"</0>"],"KujtjC":["Find"],"L-rMC9":["Reset to default"],"L1ZE3M":["Document statistics"],"L1rRuU":["Embeddings API endpoint"],"L3CEC1":["this item"],"L4Cdd9":["or create a new file <0/>"],"L6Hhh6":["(root)"],"L8fKuc":["Run this in your terminal"],"L9Y9Om":["Top linked pages"],"LBwUR6":["Branch switch timed out — try opening the ",["targetNoun"]," manually."],"LCUy_N":["Session ended"],"LDuM35":["Replace current match from field"],"LE7t79":["Clone to a new folder"],"LKOLNn":["No AI agents installed"],"LNum6A":[["minutes"]," min ago"],"LRgZAt":[["owner"],"/",["name"]," already exists"],"LXdWeS":["Medium section heading."],"LXfNU-":["Navigation and suggestions"],"LYufDw":["Failed to enable semantic search — ",["detail"]],"LbmLyU":["Can't safely edit this tool's config"],"Lcehxn":["Save resolution"],"LdABLa":["Could not open ",["target"],". Try opening it manually."],"LdKIHS":["Draft a spec"],"LhQlGR":["This project is running an older version of OpenKnowledge (v",["0"],") than this app (v",["1"],")."],"LhWYpm":["Other OK paths are tracked upstream:"],"LiAw2k":["What this changes"],"LlHqdU":["Initializing project"],"Llyqvo":["This usually means one of:"],"LpB85N":["Plain"],"LtI9AS":["Owner"],"LtSYdi":["Reveal in Finder"],"LtiJ5c":["Project skill"],"LuoJWu":[["truncatedShownCount","plural",{"one":["Showing the first item in one folder — the rest of that folder is hidden."],"other":["Showing the first ",["formattedCount"]," items in one folder — the rest of that folder is hidden."]}]],"LwMxXg":["Failed to open worktree."],"M-IF14":["Report reference"],"M1OfV9":["Next source diagnostic"],"M3ytY_":["This looks like a drive root (e.g., C:\\\\). Scaffolding here will scan an entire drive."],"M5_9s2":["Sending report"],"M5mfAe":["Add tag"],"M9597s":["Preparing share URL..."],"MCjC9A":["Delete ",["deleteDescriptorLabel"]],"MDZSJe":["When the agent runs its scheduled work."],"MGb89P":["Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."],"MHrjPM":["Title"],"MJqRO6":["Your report is being sent."],"MKOVhz":["Enable git auto-sync"],"MQIM_Y":["Couldn't copy. Select the URL above to copy it manually."],"MTs6g3":["Couldn't reconnect after server restart"],"MUBR8r":["Rename succeeded but the tabstrip may be out of date — refresh to resync"],"MUrVEo":["No recent projects."],"MV-Dkb":["Found ",["countDisplay"]," markdown files"],"MVxpbf":["Find and replace"],"MWrUEd":["Undo all"],"MZSBsh":["No templates yet. Add one to give new docs in this folder a ready-made starting point."],"MZoxVx":["Failed to load tags. Press Escape and re-open to retry."],"Mb_20S":["Visual"],"Md709y":["Loading ",["fileName"]],"MdpSC1":["New skill"],"Mh_4hd":["Previous tab"],"Mj8R8K":["Couldn't install skill: ",["0"]],"MmDDWK":["Recently opened"],"MmqnGI":["No global skills yet."],"Mnavhe":[["propPanelDescriptorLabel"]," Properties"],"MqQoV-":["Describe what you want to build, start a blank file, or scaffold from a template."],"MqsbfN":["Turn on external link previews?"],"MrwYIK":["Toggle a source comment through CodeMirror."],"MsuXaI":["Hide panel (",["panelShortcut"],")"],"My0wYT":["When you hover an external link, its URL is sent to the destination site to fetch the page's preview metadata — one request per previewed link."],"My9uXI":["Updated \\"",["display"],"\\" to ",["0"]," — your previous version is in history if you need to restore it."],"N1KkEO":["Jump to last tab"],"N1YYa7":["Loading image"],"N1mdmS":["This file can't be opened in the text editor."],"N2FcBE":["Synced"],"N2S1rs":["Empty"],"N2eHWq":["Code Block"],"N3_ozB":["Hubs"],"N55YNr":["Choose whether this project's OpenKnowledge setup, including its AI-tool connections, is saved with the project so teammates get it too, or kept only on your computer."],"NEzPEh":["Create a new branch, or check out an existing one, in its own window."],"NF_Wcg":["Show skills section"],"NIWAux":["No docs registered under #",["tagDocsName"],"."],"NJyQi_":["Branch ",["shareBranch"]," no longer exists on the remote."],"NKkZXl":["Initialize and open"],"NNJsn7":["One more step: enable it in Cursor → Settings → Tools & MCP (Cursor leaves project servers off until you turn them on)."],"NOHyEE":["Retry push"],"NORKZU":["Pattern warnings: ",["summary"]],"NQ8llq":["Add item"],"NQXwDy":["Edit in config file"],"NRSLBe":[["diffMin"],"m ago"],"NSnIUP":["Two-page (even)"],"NUr4kz":["A reusable starting point for new documents in this folder."],"NYUhy5":["Subfolder name"],"N_7kkF":["Read through this codebase and draft a technical spec for the most complex module: an overview, the architecture, key files, and open questions, all linked from a specs index page."],"NcurBF":["Pan down"],"NgZwB0":[["enabledCount"],"/",["0"]," on"],"NjrIak":["File: <0>",["fixedName"],".md</0>"],"NkXEFS":["Restore failed — document unchanged"],"NmPNJJ":["Copy code"],"Nn4GgW":["Will be created as <0>",["sanitizedName"],"</0>"],"NnQapF":["Open with AI ",["targetDisplayName"]],"NpC29w":["Create a new list item from the current list item."],"NrFwux":["Failed to save content rules — ",["0"]],"Nu4DdT":["Sync"],"Nu4oKW":["Description"],"NuH1jp":["Public repository"],"Nv3mUj":["Show advanced"],"NvOvTi":["Create in <0>",["dirDisplay"],"</0>"],"Nx7BWE":["Git auto-sync"],"NxW-md":["Resize ",["handleKey"]],"NzFvyK":["Session ended — undo unavailable"],"NzluOx":["(optional)"],"O0Z2Xr":["Outgoing"],"O2UpM1":["Browse"],"O3oNi5":["Email"],"O4PnDd":["AI tool management is only available in the OpenKnowledge desktop app."],"O6yEPk":["Create a new OpenKnowledge project in the folder of your choice."],"O7_W_a":["Open with AI"],"O9oQJS":["Send report"],"OD0FCX":["Hidden “",["basename"],"”"],"ODGGlj":["Folder name: ",["detail"]],"OETysD":["No hub pages yet. Hubs appear once pages accumulate inbound graph links."],"OEu_0l":["Failed to load skills: ",["0"]],"OFBmkg":["Search files, commands, projects, and AI handoff actions. With text selected in the visual editor, this chord adds a link instead."],"OJTOUj":["Requires ",["brand"],"."],"OJeiSH":["Failed to add property"],"OLBz-_":["Mermaid diagram failed to render."],"OLIKgw":["Drag item ",["0"]," to reorder"],"ONPvOb":["Loading agent activity"],"ONgEZF":["Loading headings for ",["pageTarget"]],"OOIVJo":["Uninstalled \\"",["0"],"\\" from ",["1"]],"OTF92M":["Label <0>(optional display text)</0>"],"OVjNeX":["Terminal ",["0"]],"OX2Neh":["Inline code"],"OXb_Df":["Settings content"],"OXdGnd":["Problems"],"OYnx7O":["Path cannot start with \\"/\\""],"OZJeTZ":["Skill"],"Oawo4U":["The report service couldn't be reached."],"OdmsFg":["Failed to delete item"],"OeAl1e":["e.g. assets/uploads"],"OfhWJH":["Reset"],"OgyJSr":["Local only"],"OiHJdA":["Move through slash, wiki-link, tag, and path suggestions; accept or dismiss the active suggestion."],"Okd2Xv":["Toggle underline formatting."],"OlAl5i":["Expand all"],"OmHTGj":["Disable git auto-sync"],"On0aF2":["Website"],"Oo_WWc":["No pages found"],"Oos8fo":["Copy command"],"OplnBG":["Managing AI tools is unavailable in this build."],"OuY8t9":["Open in current branch"],"OvEjsP":["Copying..."],"OxplNM":["Updated \\"",["0"],"\\": added ",["1"],", removed ",["2"]],"Oxyd5f":["Pick a name"],"OyIC0Q":["Project name"],"P-ye9o":["Could not open folder picker"],"P0HC30":["This ",["targetNoun"]," moved to <0>",["0"],"</0>. Open it there?"],"P3NS4G":["Pattern syntax error (line ",["lineNumber"],"): ",["message"]],"P3hnm0":["File too large to open"],"P47EWZ":["Could not update sidebar settings"],"P6gXB-":["Replace ",["keyName"]],"P6lAT3":["Folder target: ",["linkTitle"],". Click to open the overview."],"P8yDjG":["Name can’t be empty, \\".\\", \\"..\\", or contain / or \\\\"],"PB4upl":["Find previous match"],"PBwmDJ":["Searching by meaning"],"PBxg_E":["Not now"],"PCNIuJ":["File an issue"],"PCSkw2":["Skills"],"PIMM5l":["You're subscribed!"],"PKLY-1":["Opening..."],"PKjGhT":["Headings"],"PMyJ9C":["No edit session yet"],"PPFQ3o":["Installed \\"",["0"],"\\" into ",["1"]],"PQCdtv":["\\"",["docName"],"\\" doesn't exist."],"PR9FSv":["Move to the next visual-editor find result."],"PRnH8G":["of ",["0"]],"PVUn_c":["Open folder"],"PZtgO0":["Opening worktree"],"P_bX4O":["How to set up"],"Pck6eI":["Pick a built-in IDE palette. The dark IDE themes override the light/dark setting in Preferences."],"PdA9NZ":[["ahead"]," ahead"],"PdJZ5p":["No skills yet."],"Pgu10b":["Saved as <0>",["slug"],".md</0>"],"PgzIpb":["Move to the previous visual-editor find result."],"PiH3UR":["Copied!"],"PkeYXL":["Expanded graph mode"],"Pkw7J9":["This folder is empty."],"PqYWiC":["Couldn't restart the server automatically. Try running \`ok stop all\` in a terminal, then reopen this project — or restart your computer if it persists."],"PrJYSN":["This folder isn't on GitHub yet. The link won't work until it's pushed."],"PrhzDE":["Pan up"],"Pyp1NA":["Restore to this point?"],"Q5fqMz":["Connection error — try again"],"Q6hhn8":["Preferences"],"Q7W-mC":["Same folder as current file"],"Q8A-U_":["Connected to"],"QAi7Q9":["Branch <0>",["trimmed"],"</0> already has a worktree — it'll open in its own window."],"QDZbvN":[["diffDays"],"d ago"],"QJaG-9":["Choose CLI for new chat"],"QNxpRm":["Dock terminal to the right"],"QOINDn":["empty"],"QQghPu":["Install in Claude Desktop"],"QR5SP1":["created template"],"QYfQdv":[["displayName"]," CLI"],"QcpeeE":["Navigate to ",["docName"]],"QfFBdJ":["The template's filename (without \`.md\`)."],"Qj4RL5":["Completed:"],"QlxHAH":["Showing results for \\"",["semanticResultsLabel"],"\\""],"QnjpOq":["What do you want to build?"],"QqBQu1":["Label <0>(visible link text)</0>"],"Qvls7J":["Eng specs"],"Qw-7Ie":["A simple place to write, with one file per topic and a daily journal. Pick this if you just want to start writing and let the links between notes build up over time."],"QyioBP":["Move up"],"R0cyYB":[["0","plural",{"one":["#"," request blocked by the preview's security policy"],"other":["#"," requests blocked by the preview's security policy"]}]],"R0jJzV":["Paste URL, owner/repo, or search your repos"],"R3y75Z":["Edit source"],"R65q-K":["A real shell is off for this project. Turning it on runs commands with the full access of your macOS user account."],"R9IDFz":["Renames the folder on disk and the id agents use to invoke it."],"R9Khdg":["Auto"],"RDjuBN":["Setup"],"RDrXh4":["Configure user, project, and integration settings."],"RG4XHV":["Copy ",["0"]," prompt"],"RGCCrg":["Copy share link"],"RGkNeJ":["Initialize a starter pack"],"RJ3a8Z":["Looking for <0>",["lookingForUrl"],"</0>."],"RN62Q8":["We'll build <0>openknowledge.skill</0>, save it to <1>~/Downloads</1>, and open the Claude Desktop App for you."],"RO-yts":["Failed to disable link previews — ",["detail"]],"RSqaSd":["Project root"],"RVZJWQ":["Search projects..."],"RXNu_r":["Shared via git with everyone working on this project."],"RY6Bq1":["Open shared ",["targetNoun"]],"RaPMZv":["Keyboard shortcuts available in the editor and workspace."],"Rah7yq":["What should the AI do? (optional)"],"Rb1zMa":["No excerpt"],"RfHNf8":["Open activity panel for ",["tooltipName"]],"RfaEio":["Toggle source comment"],"RfilGt":["No rules match your filters."],"RgbKEe":["You don't have access to this repository."],"Rj01Fz":["Links"],"RlCInP":["Slash commands"],"RlLl3G":["Actions for ",["0"]],"RmBY0A":["No git remote"],"RnrnTe":["Already set up — ok is available in your terminal"],"RobAKV":["Update the destination and optional section anchor."],"Rq1vFD":["Tree view options"],"RrAIZx":["What config sharing covers"],"Rsdhj9":["Configuration warnings"],"Rx5ReQ":["Rename ",["keyName"]],"RyIKxy":["This ",["targetNoun"]," has been moved, renamed, or deleted in your local copy, and that change hasn't synced yet."],"S33tz3":["Not connected"],"S34Vju":["Have something else in mind?"],"S6l5dv":["Could not start creating a new item"],"S9Vnum":["Remove ",["patternText"]],"SCoBBH":["Tag suggestions"],"SCzAbA":[["phase"]," — ",["pct"],"%"],"SEYWYq":["Undo all edits on this file?"],"SFN6dN":["Heading 3"],"STTOnz":[["keyName"]," type: complex value (nested; read-only)"],"SUOoXn":["Failed to open project."],"SVLPt5":[["formatted"]," GitHub stars"],"SXCSQd":["Copied path"],"SYfHmN":["Unpin tab"],"Sc1bKE":["Local collaboration data for \\"",["docName"],"\\" could not be cleared in time. Reload to retry."],"ScwcF2":["A project already exists at this location. Pick a different parent folder."],"SfxQX8":["Writes a project-MCP config for each selected tool."],"SgKLfA":["Not connected to GitHub."],"Sh3Qkg":["No matching branches."],"Si7mIR":["Create report"],"SiUUCS":["Next match"],"SkMZlS":["Couldn't remove <0>",["targetGitPath"],"</0>: ",["removeGitError"]],"Skr_7L":["Search worktrees"],"Sq8lf2":["Editors to install skills into"],"SrOuyg":["Document panels"],"T-654M":["Loading PDF"],"T0OVm7":["The default branch is protected — pushes need a pull request."],"T3j-7o":["e.g. Switching projects while a sync was running"],"T67A0Y":["Auto-sync pushes/pulls commits to your git remote on intervals and on save. Toggling on requires confirmation."],"TEEPPF":["Will replace existing OpenKnowledge entry"],"TJnkyf":["ok ui responded but server.lock has no port yet"],"TKQ7K-":["Install"],"TLIO3j":["Toggle italic formatting."],"T_R-Qz":["Primary"],"T_wG4n":["We couldn't check your GitHub connection."],"Ta25TG":["No history yet"],"TbjyhA":["Docs"],"Te6sK2":["Heads up: editing any rule or option here creates a <0>.markdownlint.json</0> file in your project to save your changes."],"ThmUrC":["Could not finalize project setup. Try again."],"Tjc1pH":["Section <0>(optional heading anchor)</0>"],"TsZmgr":["The file on disk, and the id agents use."],"TvY_XA":["Documentation"],"TwYboS":["Navigate CodeMirror source search results or dismiss the search panel."],"Tz0i8g":["Settings"],"Tz9pJB":["Clone stream ended unexpectedly — check if the clone completed"],"U2Kx6T":["Close all unpinned"],"U2pMtf":["tag-name"],"U3IvM5":["Full guide"],"U5Spo9":["Content directory must be inside the project"],"U7HJ4y":["Managed by OpenKnowledge (read-only)"],"U8CD-l":["Copy full path, No workspace"],"UBv8UK":["Delete Permanently"],"UDFrWm":["Checking GitHub connection..."],"UL8A9w":["Tag"],"ULRb5t":["Adds telemetry, server state, and runtime info when available. Document names are anonymized."],"UMrOy2":["Skill \\"",["trimmedName"],"\\" created"],"UPjaXD":["Couldn't duplicate \\"",["0"],"\\": ",["1"]],"UQAp48":["Search templates"],"UQMMvx":["Moved \\"",["name"],"\\" to ",["0"]],"URmyfc":["Details"],"UTNVyS":["Select the full source document."],"UTZ97u":["Selection must be inside the project"],"UTgWxm":["Nothing was uploaded. The report stays on this Mac until you email it to us."],"UVLlMV":["Couldn't reach GitHub. Try again?"],"UW2Fg3":["This project's running server doesn't support live editing. Restart OpenKnowledge to fix."],"UW93oq":["Replace key"],"UYcGIW":["Connecting — waiting for collab server"],"Ua78MH":["no response"],"UaDyeb":["Hide selection preview"],"Uay5NL":["This ",["targetNoun"]," was added to branch <0>",["shareBranch"],"</0> recently. Switch and update to open it."],"Uci-Ph":["Ordered List"],"Ud0Pj9":["<0>Mirror source removed.</0> The doc <1>",["src"],"</1> is no longer available."],"UfW9Kr":["Your search queries and the full text of matching pages are sent to your embeddings provider (OpenAI by default) to compute embeddings."],"UhpfxY":["Pan left"],"UkQGhd":["Hide replace"],"Up2_7p":["Copy full path"],"UpCz01":["This doc"],"UuYo7g":["This ",["targetNoun"]," has been moved, renamed, or deleted in your local copy. Please commit your changes or enable auto-sync."],"Uuj_R4":["New from template"],"Uw6ERJ":["Couldn't copy: ",["detail"]],"UyROxs":[["mins","plural",{"one":["#"," min ago"],"other":["#"," min ago"]}]],"V2Gmie":["These rules come from your project's <0>",["configFile"],"</0> file, which fully governs linting for this project. Turn rules on or off and edit their options here; changes write back to the file."],"V48OUT":["You deleted <0>",["filePath"],"</0> locally, but it was modified upstream."],"V7QxyT":["Connection dropped"],"VAHWL_":["Connected as <0>@",["signedInLogin"],"</0>"],"VBE2dw":["Build and keep track of the world behind your story. A home for your characters, places, factions, and the lore that ties them together, so details stay consistent as you write."],"VFQXPl":["External link previews show a card with the site name, page title, and description when you hover a link."],"VITWk5":["Managed by OpenKnowledge"],"VIwCaD":["Entry"],"VM7H66":["This file is binary and can't be shown as text."],"VNgKZz":["Advanced settings"],"VTulZj":["Open in worktree"],"VU3Nrn":["Missing"],"VUijjF":["Embed an image with optional alt text."],"VYd_YA":["Open an existing project folder from disk."],"VZGGPK":["Collapse terminal"],"VZGh8G":["Fold, unfold, fold all, or unfold all source ranges."],"VZSBXL":["Semantic ranking activates the first time an agent runs a search."],"V_6bJ4":["Terminal settings not loaded yet — try again in a moment."],"V_wltx":["Enter a title for this template."],"VbqhBI":["Already at ",["assetContentPath"]," — reusing."],"VcqWBy":["Upload may have succeeded but the sidebar is out of date — refresh to resync"],"VdXv4D":["Clone from GitHub"],"Vftef5":["Common markdown issues — hard tabs, heading increments, list markers, and more."],"Vlc75q":["Keep file deleted"],"VsaI0G":[["folderCount","plural",{"one":["folder"],"other":["folders"]}]],"VuxVSP":["Start source completion"],"VvS_k_":["Config sharing is now local-only."],"VxO6wR":["Delete selected files or folders"],"VzGJRl":["Add link"],"W-ntoW":["heading-slug"],"W0i24j":["Object"],"W1SI2K":[["0","plural",{"one":["#"," warning"],"other":["#"," warnings"]}]],"W1qRuM":["This document is already active in the editor. Use Open to collapse the graph."],"W3Xlpc":["Set the auto-sync default for users opening this project for the first time. This setting is committed to your repository."],"W5A0Ly":["An unexpected error occurred."],"W7XJN4":["Can't nest projects. An OpenKnowledge project already exists at <0>",["rootPath"],"</0>. Choose a location outside it, or open that project instead."],"W8vpBM":["starter pack"],"W9_Bub":["Local changes overlap with incoming sync"],"WFEbV1":["Flag common markdown issues in the editor. Powered by <0>markdownlint<1/></0>."],"WHPvOb":["All files are hidden by view filters."],"WJjviG":["What to include"],"WL6puM":["Path resolves outside project"],"WMIKXK":["Are you sure you want to delete ",["targetCount"]," selected items? Folders and all files inside them will be deleted. This action cannot be undone."],"WPwDin":["Open folder on disk"],"WR0y2O":["Share folder"],"WRNXKp":["Searching"],"WRdYfS":["Refresh audit"],"WWcqsG":["Start here: what this is and how it's organized."],"WZ-vBy":["Permanently deletes <0>",["targetGitPath"],"</0> and all its git history. Working files stay in place. If the parent git repo is intentional (e.g. you cloned it), cancel and pick a location outside it."],"Waiy-j":["The agent's persona, values, and voice."],"WamGNs":["Failed to load PDF: ",["error"]],"WcWS__":["Download file"],"Wcv-Zi":["Make this knowledge base available as a Claude Skill."],"We7h2I":["📝 or assets/icon.png"],"Weq9zb":["General"],"Wgmlsw":["Fetching"],"Wh0im4":["editing [[",["realCurrentDoc"],"]]"],"WhOsNE":["Strikethrough"],"Wi-VWy":["Couldn't send the report"],"WkTLN7":["Show only markdown files"],"WmPbvm":["Get product updates in your inbox."],"Wq6Wcm":["Please enter a valid email address."],"WqLq6M":["Open with AI ",["displayName"]],"Wt5W56":["Sync is off — your edits will not sync to the remote repository."],"Wtw22s":["Installing"],"WuntOK":["Preview of the screenshot"],"WyQxwa":["Connect this project to GitHub to share."],"WyXG7w":["Close all"],"Wyxs0x":["Path cannot contain \\"..\\""],"X0ttSN":["No tags match \\"",["tagListQuery"],"\\"."],"X7u0xR":[["0"]," templates available"],"X8kjQX":["Re-authenticate with GitHub"],"X9VpsP":["Loading folder contents"],"XAyxsa":["Check out remote branch"],"XDzAnp":["Opens in a new tab"],"XH30C4":["document"],"XJOV1Y":["Activity"],"XPJ0sN":[["settingsDescriptorLabel"]," properties"],"XPqe3B":["Create new tag #",["tagValue"]],"XRuL0i":["Create page"],"XU0OXn":["Enable auto-sync"],"XV5sC0":["Open worktree"],"XW18jo":["Page headings response did not match success schema"],"XYlJJT":["Setting up"],"XZkdtg":["Switch branch"],"XcGbim":["Show hidden files"],"Xet9MX":["Failed to load backlinks"],"Xewl6B":["Your local copy is behind. Pull the latest changes, then open the link again."],"XfzqjK":["template \\"",["name"],"\\""],"Xisk4u":["Edited ",["editedAgo"]],"Xk0-VC":["Previews of links to other documents in this project are always on and read from the local index — nothing leaves your computer for those."],"Xl-UUg":["guides/install or https://example.com"],"XmJfZT":["name"],"XnlF3W":["Add the next matching source selection."],"XopE_I":["Failed to parse backlinks error response (HTTP ",["status"],")"],"XpIZmv":["Fenced code block with monospace text."],"XqNHcm":["Couldn't update skill targets: ",["0"]],"XtRoxT":["Page ",["pageNumber"]],"XuQzrk":["Couldn't restart the server — another process owns it. Quit other OpenKnowledge windows for this project, then try again."],"XvPJaT":["Diff layout"],"Xv_ijG":["https://github.com/owner/repo or owner/repo"],"Xw_maT":["Type a query, then press ↵ to search your pages by meaning."],"XyOUTJ":["Exit merge"],"Xzy0s0":["Remove ",["fullLabel"]," from context"],"Y-Urt2":["Block math equation rendered with KaTeX from a LaTeX source string."],"Y1QMlM":["Get set up"],"Y1kX2z":["OpenKnowledge initializes at <0>",["projectDir"],"</0> — the parent of <1>",["pickedRelative"],"</1> because it contains a <2>.git</2> folder (one .ok/ per git repo). <3>Content directory</3> defaults to <4>.</4> (the whole repo); type a sub-folder to narrow it."],"Y6SK9K":["Show source"],"Y8ViJx":["A newer version may have been deployed since this tab opened."],"YC6_wP":["Edit ",["keyName"]],"YEIS9T":["Edits apply live. Light or dark is chosen from the background."],"YEP3X2":["Delete a table when the active table cell selection covers the full table."],"YGIi_c":["Reinstall"],"YIp4R0":["A memory snapshot from the crash. It can contain document content and can't be redacted, so leave it off unless you're comfortable sharing it."],"YJ1BTp":["A skill with that name already exists."],"YKLP_-":["Template renamed"],"YLMBSd":["e.g. The editor froze after I pasted a large table"],"YPFBfr":[["detail"]," - ",["kind"]," \\"",["createdPath"],"\\" still exists on disk"],"YRavYS":["A personal color-theme picker — not shared with your project. When on, it appears under Plugins in the sidebar."],"YSFv5w":["No git repository — config sharing does not apply here."],"YTLmTM":["Remove the parent <0>.git</0> folder"],"YW7Q86":["Search settings not yet loaded — try again in a moment"],"Y_kL7X":["Customize how the editor looks and behaves."],"YaeyFh":["Pulls may overwrite uncommitted edits in your local files."],"Yea-K5":["Restore to this point"],"Yi0VMG":["Upload ",["keyName"]],"YjMLg2":["Off — external links show only their URL. No requests leave this computer."],"YjhKI5":["Cloning..."],"YlDuro":["Fit height"],"YsEYYS":[["behind","plural",{"one":["#"," commit behind"],"other":["#"," commits behind"]}]],"YwPUUP":["This pack is already set up here."],"YyXtnN":["Underline"],"Z1LF1M":["Sharing a doc needs a GitHub repository. Create one for this project."],"Z2M5XM":["Reason: ",["reason"]," (",["osDetail"],")"],"Z3FXyt":["Loading..."],"Z5HWHd":["On"],"Z5h97D":["Hide files and folders from your knowledge base. Hidden items don’t appear in the file tree, search, or AI tools. <0>Learn more about patterns</0>."],"Z6rrjc":["No <0>.markdownlint.*</0> file yet — every rule runs on the same defaults as the VS Code markdownlint extension: all on, except line length."],"Z7x_Zh":["Git needs ",["tool"]," for this repository, but it isn't installed or couldn't be found. Install it, then try again."],"Z8KDox":["Enter a folder name (e.g. brain)."],"Z8lGw6":["Share"],"ZARuZJ":["Couldn't load files"],"ZBYKxv":["Reverts every change this agent made to <0>",["docName"],"</0> this session (",["burstCount","plural",{"one":["#"," burst"],"other":["#"," bursts"]}],"). Other files and writers are unaffected."],"ZBt4rI":["Instruction for the AI"],"ZI8uvA":["No problems found."],"ZLQol-":["You can turn this on later in <0>Settings → Sync</0>."],"ZNK2Tq":["root"],"ZQJ1IV":["Activate the last editor tab."],"ZQLDTl":["created folder"],"ZU8VV_":["Remove failed: ",["error"]],"ZWgr0b":["In a subfolder"],"ZWolSV":["You picked the filesystem root (/). Scaffolding here will scan every file on this machine — make sure that's what you want."],"ZWwYwM":["Base branch"],"ZWxfrc":["cleared folder properties"],"ZWyHmq":["This project"],"ZYtq3m":["Connect the AI tools you use to this specific project. These files live in the project folder, so anyone who opens it gets the same setup."],"ZatAO_":["Failed to enable link previews — ",["detail"]],"Zf0w-R":["Take a piece of writing from a rough idea to a finished draft to something you're ready to share. Good for blog posts, essays, or anything you want to move through clear stages."],"ZgGuA4":[["0","plural",{"one":["File"],"other":["Files"]}]],"ZhhOwV":["Quote"],"ZjtgI-":["Command palette"],"ZoOlzR":["App & system info and recent app logs. No project is open, so project logs aren't included."],"Zon_qG":["Mirror source <0>",["label"],"</0>"],"ZptNUh":["Show ",["hidden"]," more"],"ZsGpr_":["Paste link"],"Zue_jx":["Your GitHub token is missing required scopes. Try signing in again."],"Zul8Ry":["never"],"ZvzbDF":["Add it directly to this project."],"ZxXhLY":["Hide Files (",["sidebarShortcut"],")"],"Zz25kq":["Show Files (",["sidebarShortcut"],")"],"_0JUKX":["Bug reporting needs the OpenKnowledge desktop app."],"_5qBNl":["AI tools & CLI"],"_6FVBz":["Jump to tab 1-8"],"_7UQ7y":["Whole word"],"_8quCH":["From template"],"_902BE":["This ",["targetNoun"]," was shared from branch <0>",["shareBranch"],"</0>. You're currently on <1>",["currentLabel"],"</1>."],"_FLBbi":[["sizeText"]," · secrets redacted · crash dump not redacted"],"_IGfXZ":["OpenKnowledge quit unexpectedly last time."],"_NX6gG":["Managing project AI tools is unavailable in this build."],"_PACVa":["Release notes"],"_PBJRl":["Add at least one letter or number."],"_QwkMu":["No matching paths"],"_RcqUM":["You picked your home directory. OpenKnowledge will index everything in your home tree — large and may surface personal files."],"_TDESN":["Network error - ",["kind"]," \\"",["createdPath"],"\\" still exists on disk"],"_TF8ep":["Failed to render PDF"],"_VRtd7":["Couldn't send the selection — please try again."],"_W-elG":["(inline)"],"_WPP7e":["Read-only copy of a MirrorSource block from another doc. Edit at the source and it updates live."],"_XWY2J":["Terminal disabled"],"_ayOfA":["A knowledge base that follows Google's Open Knowledge Format, a shared way of organizing what you know. Pick this if you want your notes to work well with other tools that understand the format."],"_bth6g":["Claude Code is installed, but OpenKnowledge tools aren't connected to it yet."],"_eguJc":["Uploading"],"_gkGSK":["deleted template"],"_hPpdX":["Skill renamed"],"_pY_Vq":["The repository was moved, renamed, or deleted."],"_qD6mn":["Pick the folder where you've cloned it."],"_rP3HI":[["minutes"],"m ago"],"_tekeB":["updated folder properties"],"_tjopj":["Paste duplicate"],"a-cKXz":["Select all source"],"a3H_MR":["Open and focus the Ask AI composer for the current editor selection."],"a5Gha5":["Local changes blocked the merge"],"a5W0q0":["Are you sure you want to delete ",["folderName"],"/ and all files inside? This action cannot be undone."],"a9OzSn":["No pages found for \\"",["trimmedQuery"],"\\""],"aBgwis":["Scope"],"aByJ8j":["How does sharing work?"],"aE2_XM":["One pattern per line — appended to <0>.okignore</0>."],"aENGMB":["Semantic search adds meaning-based ranking to the search tool so conceptually-related pages surface even without shared keywords."],"aHPdYV":["Go to line ",["displayLine"]],"aM23Wr":["page-name"],"aOp3hw":["Couldn't move to Trash"],"aWlJai":["Starting sign-in flow"],"a_u4ck":["Loading tags"],"aaE55D":["Clear ",["keyName"]],"aalx4E":["Editing broken MDX source: ",["reason"]],"abiHje":["Delete selected items"],"adsMWO":["Resolving deltas"],"aiArms":["We couldn't clone this repository."],"ajz9F8":["Couldn't load conflict content for ",["filePath"],". Try reloading the page."],"aoa6xA":["network error (is \`ok ui\` running?)"],"arUUsK":["Product updates"],"ax9kie":["Link preview settings not yet loaded — try again in a moment"],"az8lvo":["Off"],"b3Thhd":["Upload failed"],"b4AQFK":["Open activity panel for ",["tooltipName"],", editing ",["realCurrentDoc"]],"b4VvP-":["Existing branch <0>",["trimmed"],"</0> will be checked out into its own window, under <1>.ok/worktrees/</1>."],"b4itZn":["Working"],"b5aNbi":["The ",["targetNoun"]," could not be opened — try navigating to it manually."],"bBE5tC":["Detected on this machine"],"bBcFK_":["Open emoji picker for ",["keyName"]],"bD8I7O":["Complete"],"bGa3Fk":["Uploading file"],"bH382I":["Edit this HTML — the preview updates live."],"bSD4im":["Search worktrees and branches"],"bS_boY":["Replace current match"],"bUUVED":["Asset"],"bV6DJA":["Who you are, so the agent has your context."],"bWLmRK":["Could not fetch branch. Check your connection."],"ba3vIW":[["templateCount","plural",{"one":["template"],"other":["templates"]}]],"bcDHUM":[["descriptorLabel"]," — render error, source editable below"],"bcjYUA":["Fold or unfold source"],"bkQRMh":["Paragraph"],"blFttG":["Search projects"],"bmC18N":["Clearing local collaboration data for \\"",["docName"],"\\" before reconnecting."],"brCtGB":["History unavailable"],"bultyE":["When enabled, the agent opens or refreshes the preview after each edit. Disable if you manage your own preview window (OK Desktop, a browser tab on another display, etc.)."],"bwil08":["Building <0>openknowledge.skill</0> and opening the Claude Desktop App"],"c1LZZH":["Link copied."],"c4fVUV":["Fix"],"c5PTFE":["Dev instance: ",["label"]," (isolated from other worktrees)"],"c5f7sm":["Code block language: ",["currentLabel"],". Click to change."],"c5rF4v":["What is this knowledge base for?"],"c863eW":["Could not switch to ",["shareBranch"],". Try switching manually."],"c8iK2Y":["No templates found."],"c8jBgX":["Checking for updates on GitHub"],"cEoyWz":["Add item to ",["keyName"]],"cF9DyA":["Reconnecting after server restart"],"cGV6Mh":["Show a preview card when you hover an external link in the editor. This setting applies only to this computer."],"cHhH3i":["a required git tool"],"cIptmH":["In the Claude Desktop App"],"cKjLuT":["(project + user)"],"cN1Gcp":["A worktree folder for ",["shareBranch"]," already exists."],"cOJyVj":["Disable Themes"],"cOSAfL":["No repositories found on your GitHub account."],"cOrTMo":["Your share link is ready below."],"cRHuuI":["Couldn't copy path"],"cSCbv3":["BETA"],"cUK8lW":[["conflictCount","plural",{"one":["#"," conflict"],"other":["#"," conflicts"]}]],"cUk6TF":["Sync failed — check the server logs for details."],"cV7LOw":["Team Wiki"],"cZGNlb":["Add another pattern"],"cZI5AL":["OK Desktop"],"cZ_8zB":["Stays on this computer."],"ccNps_":["Only modified"],"cd5EXh":["Report a bug"],"cdm00A":["No Incoming"],"cdmk8A":["Uncommitted changes"],"chL5IG":["Community"],"cklVjM":["Timeline"],"cn1sLi":["Couldn't connect OpenKnowledge tools to Claude Code. Please try again."],"cnGeoo":["Delete"],"cqQyPB":["Folder name"],"crqzW5":["AI tools"],"cs4mps":["Config sharing"],"csDS2L":["Available"],"ct2kv5":["No headings in ",["pageTarget"]],"cuA8QW":["Organize specs"],"d1JjXo":["Your local copy of branch <0>",["branch"],"</0> is behind. Pull the latest changes, then open the link again."],"d2uTPx":["Server error (HTTP ",["status"],")"],"d5rK4X":[["chars","plural",{"one":["char"],"other":["chars"]}]],"dCIGNG":["Border"],"dD7NPy":["Outline"],"dDpCOp":["Rename succeeded but the sidebar may be out of date — refresh to resync"],"dEgA5A":["Cancel"],"dGAdpH":["New branch <0>",["trimmed"],"</0> will be created from <1>",["currentBaseLabel"],"</1>, in its own worktree under <2>.ok/worktrees/</2>."],"dIYSqk":["remote"],"dJw2_7":["Saved with the project for your team."],"dMsx3p":["Home page and navigation hub."],"dN20LW":["Semantic search is on, but no API key is set — search falls back to keyword matching. Add one in <0>Settings → Account</0> (it's stored once for your whole machine)."],"dNM58w":["Claude Code (claude) isn't installed or on your PATH."],"dOHMA0":["Failed to move"],"dOxPd4":["Footnote"],"dPOFid":["Show or hide terminal"],"dTaauv":["Reason: ",["reason"]],"dUCQo4":["Renamed to \\"",["trimmed"],"\\""],"dUQ7_J":["Add meaning-based ranking to search so conceptually-related pages surface even when they share no keywords. This setting applies only to this computer."],"dURmlQ":["\\"frontmatter\\" is a reserved property name"],"dVaXnv":["Content rules not yet loaded — try again in a moment"],"dXWMFn":["Removes this skill from your editors."],"dbapvC":["Follow us on social media"],"dbhUX1":["Hide this file"],"dbtjJh":["(opens in new tab)"],"djc1l9":["More than ",["0"]," requests were blocked by the preview's security policy"],"djjdjr":[["deleteCount","plural",{"one":["Delete"],"other":["Delete ","#"," items"]}]],"dprWmL":["Anchor in this page"],"dr1vFs":["Replace all matches"],"dvGKu2":["Shared auto-sync default"],"dw_3cv":["Rename skill"],"dw_dUJ":["Failed to duplicate path"],"dx-TwN":["Running project audit"],"e0NrBM":["Project"],"e1Rn_k":["Open containing folder"],"e1hptq":["Embed a video with native player controls."],"e4GHWP":["Pull"],"e4PbgC":["Duplicate the file-tree item copied from the Files sidebar."],"e8L17t":["A non-empty folder already exists at this path. Pick a different folder."],"e8zRrb":["Show Files"],"e8zYa8":["Could not open ",["shareBranch"]," in a worktree. Try again."],"eBIT9h":["Paste failed.",["restoreSuffix"]],"eFJkVt":["Clone failed: ",["cloneError"]],"eG8Jsg":["Toggle source tab focus mode"],"eGUbmF":["Copy selected file or folder"],"eJitUk":["Upload from computer"],"eKThTQ":["Failed to reorder"],"eLl1VX":["Failed to update the embeddings endpoint — ",["detail"]],"eNQGRb":["Inline LaTeX math rendered with KaTeX."],"ePK91l":["Edit"],"eQkgKV":["Installed"],"eQxm13":["Failed to update attachment location — ",["detail"]],"eTL5y9":["Show selection preview"],"eTsJYJ":["description"],"eVPynQ":["Open <0><1>",["verificationUri"],"</1><2/></0> and enter this code:"],"el312q":["Install skills into"],"emgiet":["Authoritative content; mirrored verbatim everywhere it's referenced."],"enPTnx":["line ",["displayLine"]],"eneWvv":["Draft"],"epuNYK":["Mark a block as the source of truth. Mirrors elsewhere update live as you edit it."],"euc6Ns":["Duplicate"],"evs0iw":["Tags matching \\"",["tagListQuery"],"\\""],"f1XQyZ":["Move block"],"f65AOQ":["Start from"],"f8jU-L":[["0"],"/",["1"]," — ",["2"]],"f9lQNJ":["Adds a managed block to"],"fBHvBn":["There's no project folder for this window, so a terminal can't start here."],"fG0X0e":["Install ",["brand"]," →"],"fIgqfQ":["Reinstalling"],"fJ3EbT":["Themes"],"fJgQHX":["Failed to create file"],"fNr-MX":["Disable semantic search"],"fR-Kdc":["(project-level only)"],"fVcm9t":[["0","plural",{"one":["#"," doc"],"other":["#"," docs"]}]],"fWi7pn":["Initialize starter pack"],"fWsBTs":["Something went wrong. Please try again."],"fYKgzG":["Failed to load recent projects."],"fYjgXu":["Unordered list of items."],"fZj9em":["Fix ",["flatId"]],"f_PkYv":["Restarting closes this project's server. Connected agents (Claude Code, Codex, Cursor) will see their OpenKnowledge MCP connection close unexpectedly — you may need to restart the agent, or toggle its OpenKnowledge MCP server off and on, to reconnect."],"fbdLmk":["Toggle bold formatting."],"fbsiBw":["Something went wrong starting the terminal."],"fcgvCA":["Claude"],"fiMNLl":["Sync settings not yet loaded — try again in a moment"],"fj5YiP":["Downloads a fresh copy from GitHub."],"fnlBN4":["Auto-approve settings not yet loaded — try again in a moment"],"fo0VXg":["Uninstall"],"fqSfXY":["Replace"],"fuJZKk":["Search branches"],"fwhX-N":["Indent or outdent source"],"fxJk_6":["<0>Have more to add?</0> Write to <1/> and mention your reference."],"fxbCNQ":["Synced. The link is up to date."],"g3UF2V":["Accept"],"g4WlQK":["Project AI tool management is only available in the OpenKnowledge desktop app."],"g4XBm0":["Small section heading."],"g58Kwy":["<",["descriptorLabel"],"> failed to render (likely a bad prop). Copy the source to see what went wrong, or delete the block."],"gBbxn_":["Checking sign-in status"],"gGVP4q":["Click <0>+</0> <1/> <2>Create skill</2> <3/> <4>Upload skill</4>."],"gHSAWT":["Create worktree <0>“<1>",["typedName"],"</1>”</0>"],"gITz7o":["Move the cursor or extend selection through CodeMirror's standard source-editor navigation keymap."],"gJR87V":["Could not create the project folder. Pick a different folder."],"gKi-a_":["New project"],"gQV-9w":["Branch switched but the ",["targetNoun"]," could not be opened — try navigating to it manually."],"gUlRQj":["Orphans"],"gYuDfu":["Pick a starter pack to scaffold your project with ready-made folders and templates."],"gYz2ep":["Expires in ",["timeLabel"]],"gbHcbI":["Failed to delete property"],"gfdqcY":["Couldn't apply the change: ",["0"]],"gfohmY":["Connect tools"],"ggm6JX":["This page doesn't exist yet. Open it to create the page in the editor and collapse the graph."],"ggs9f8":["Search files, folders, or commands"],"gh27t1":["Link previews"],"gijbne":["Failed to rename path"],"gk_-qj":["Couldn't rename template: ",["0"]],"gljvbT":[["words","plural",{"one":["word"],"other":["words"]}]],"glzsS_":["Pan right"],"gmJ0An":["Failed to open folder."],"goO4Ll":["Editor status bar"],"gp3I7-":["Before syncing, set your identity for git commits:"],"gtEbeW":["Highlight"],"gvApb7":["Turn the things you read into clear, trusted articles. Save a source, figure out what it means, then keep the final version so you can rely on it later."],"gwykHF":["This doc hasn't synced to GitHub yet. The link will work after the next sync."],"h-AdvS":["The folders and templates are already here, so there's nothing to add."],"h06R3C":["No pages are missing outgoing graph links."],"h16FyT":["Lists"],"h3QZcB":["A branch named ",["shareBranch"]," already exists. Open its worktree from the switcher instead."],"h6EvY-":["This will replace the current document content with the version from <0>",["relative"]," (",["absoluteTime"],", ",["entrySha"],")</0> by <1>",["authorName"],"</1>. Your current content is already saved in the timeline — you can restore it anytime."],"h7FzJC":["Link-graph response did not match expected shape."],"h9QFb9":["Skill \\"",["0"],"\\" deleted"],"hBMK4W":["Project templates"],"hCOLSd":["Keep a written record of how your product gets built. A home for proposing ideas, recording decisions, writing specs, and capturing what you learned after something broke."],"hDEaQu":["Connect OpenKnowledge to other tools you use."],"hDKtoF":[["diffHrs"],"h ago"],"hDoLrm":["Remove ",["projectName"]," from recent projects"],"hGmuTc":["Docs tagged #",["tagDocsName"]],"hHMv6l":["Delete block"],"hIQkLb":["New chat"],"hItdtk":["Browse folder"],"hLy8b1":["Updated to Version ",["version"]],"hQXiDc":["Search branches..."],"hSBIG-":["A title, description, tags — anything that describes this folder."],"hSySVc":["Install handoff failed: ",["msg"]],"hXUWyd":["Value is required"],"hXbSxc":["Asset: ",["title"]],"hY8pka":["Select next occurrence"],"hYDc6B":["Name cannot be empty"],"hYgDIe":["Create"],"hZoBHK":["Empty starting content"],"haHgQj":["Copied relative path"],"habOU_":["Failed to update the auto-approve setting — ",["detail"]],"he3ygx":["Copy"],"hjO0Mq":["Add tab"],"hmYd9H":["Keep track of the people and companies you work with and the meetings you have with them. Good for remembering who someone is, how you know them, and what you last talked about."],"hnq8fP":["Remove ",["label"]," from context"],"hpDtUm":["External wiki link"],"hpzRlK":["Reopen closed tab"],"hwFOFD":["Settings failed to load"],"hxBHxQ":["A line with a footnote<0><1>[1]</1></0> and a definition shown below."],"hxEUVJ":["Initialize ",["selectedPackName"]],"hyCxJY":["Open that worktree instead"],"hynz2K":["Download started"],"i-ShMB":["Diagram"],"i1flq_":["Wiki link suggestions"],"i3f2kh":["No matching commands."],"i92eAT":["We'll create a repository and start syncing — no terminal needed."],"i9OyGp":["Undo or redo"],"i9TPUi":["This ",["targetNoun"]," isn't on branch <0>",["branch"],"</0>. It may not have been pushed yet."],"i9toLO":["Agent configuration file"],"iAoh55":["Update \\"",["0"],"\\"?"],"iDZtvM":["Failed to load templates: ",["message"]],"iEQQyu":["Agent"],"iEYxO4":["Show thumbnails"],"iGCs04":["No templates available"],"iH8pgl":["Back"],"iHAJDj":["Resolving default location"],"iIaSUD":["Whitespace"],"iKSP5j":["Word wrap"],"iKZkk1":["Property value"],"iMkWoF":["Turn on"],"iNFKkm":["No diff."],"iO8V-7":["Create worktree"],"iOHg1t":["Open embedded URL in new tab"],"iRdfLr":["Dev instance: ",["label"]],"iSLIjg":["Connect"],"iSQTsg":["Ordered list"],"iSnkwB":["Failed to open cloned project."],"iTlqm3":[["ahead","plural",{"one":["#"," commit ahead"],"other":["#"," commits ahead"]}]],"iTylMl":["Templates"],"iXTp5j":["Scope: "],"idD8Ev":["Saved"],"ig5vUe":["Failed to load file"],"ii5mVn":["Report this error"],"iilQXA":["Folder duplicated"],"ijLc3m":["Bullet list"],"ilodsp":["Let agents use OpenKnowledge without asking"],"ipn17C":["The <0>type</0> every document created from this template gets (e.g. <1>research-note</1>). Keeps new docs Open Knowledge Format–conformant."],"iqIDv4":["Sync status unavailable"],"iqugog":["Initialize failed: ",["errorDetail"]],"irFGwu":["Template list"],"ircigK":["Blank project"],"irrm_E":["Remove selection"],"isRobC":["New"],"itxlnr":["Setup files include: <0>.ok/</0>, AI-tool MCP configs (<1>.mcp.json</1> and per-tool files), project skills.<2/><3>Shared</3> commits them to git, so anyone who clones the repo gets the same setup. <4/><5>Local only</5> keeps them out of git (via <6>.git/info/exclude</6>)."],"iuTKci":["No edits yet."],"iv452l":["Documentation for ",["0"]," (opens in browser)"],"iycx_A":["Pushing"],"j9Vqvc":["inherited"],"j9tqwO":["Not in sidebar"],"jAMpHn":["What is a starter pack?"],"jBVUXo":["Couldn't open the terminal — please try again."],"jC8LSZ":["Reset view filters"],"jEZ6Lf":["provisional"],"jEdF24":["Missing page: ",["linkTitle"],". Click to create."],"jKd3AP":["Could not enable the terminal: ",["0"]],"jPUPvG":["Couldn't resolve the conflict for ",["filePath"],"."],"jRHdCz":["Failed to load PDF"],"jSO1X5":["Inherited templates can't be renamed here — rename it in the folder that owns it."],"jSY41h":["\\"",["docName"],"\\" took too long. Check your connection."],"jTLWxh":["Embed an external page in an inline iframe (docs, demos, Figma, CodeSandbox)."],"jX0IPx":["A skill with this name already exists."],"jZ_E5M":["Fetch failed — check the server logs for details."],"j_Z6g7":["Shared default"],"jbSG8V":["Show Files (",["sidebarShortcutLabel"],")"],"jdGUeI":["Couldn't create template: ",["error"]],"jerqF0":["Loading branch state"],"jhtG3I":[" Your selection has been restored."],"jjtmV_":["First file name"],"jol95m":["Failed to open Project Navigator."],"jtg_8-":["Build a knowledge wiki about the different types of flightless birds. Start with an overview page, then add cross-linked pages for each major group (ratites like ostriches, emus, and kiwis; penguins; and flightless rails), the regions they live in, and a timeline of how flightlessness evolved."],"ju38ms":["This project has no git repository — sharing mode does not apply. Initialize a repo to enable the toggle."],"jwnpdM":["A template named <0>",["trimmedSlug"],"</0> already exists here. Saving creates a local copy that overrides it for this folder."],"k0vc0N":["New terminal tab"],"k2fEi7":["User plugins are personal to this device — turn them on or off here. The choice lives in your user config and is never committed to the project. Each enabled plugin gets its own page under Plugins in the settings sidebar."],"k4CuuV":["Ready-made folders and templates to get you started quickly. Select a pack to preview what gets created, then add it to your project."],"kCNU4q":["Indexing your pages — ",["semanticIndexedCount"]," of ",["semanticTotalCount"]," ready. Results may be incomplete."],"kCqCyf":["Open CodeMirror's lint diagnostics panel."],"kDwcbW":["Go to line ",["displayLine"]," in ",["0"]],"kFLlsI":["Insert a footnote reference + matching definition stub."],"kLv8d3":["Your copy of branch <0>",["shareBranch"],"</0> has changes that aren't on GitHub. The ",["targetNoun"]," will appear once the branch syncs."],"kNqMMd":["Folder"],"kUn-CN":["Sync off"],"kV2YZv":["Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."],"kYL1lH":["Agent activity"],"k_Dqw1":[["0","plural",{"one":["No problems across ","#"," document."],"other":["No problems across ","#"," documents."]}]],"k_pade":["Config sharing is now shared. Commit the OK files to share with your team."],"k_yIIc":["Will be created at: <0>",["targetPreview"],"</0>"],"kdzzOK":["Off — search ranks by keyword only. No content leaves this computer."],"keNFEd":["Set identity"],"khCa4M":["Teaches coding agents in this project to read and write through OpenKnowledge."],"kj9pAE":["Creating page"],"kknhfj":["No changes"],"kmKqZg":["Clusters"],"knjOzA":["Tag value"],"kolRU1":["Do you want to permanently delete instead?"],"kpqWwG":["This ",["targetNoun"]," was removed from branch <0>",["branch"],"</0>."],"ku0yLQ":["Pages are embedded the first time a search needs them."],"ky9Tuc":["Edit ",["0"]," source"],"l-4nnw":["Search rules"],"l17ab4":["Could not write project files. Try a different location."],"l1aQKz":["Visual editor table"],"l1l8sj":[["0"],"d ago"],"l3s5ri":["Import"],"l46MqT":["Next tab"],"l6OXqI":["No installed agents found"],"l6kpzR":["This ",["targetNoun"]," has been moved, renamed, or deleted in your local copy of branch <0>",["branch"],"</0>, and that change hasn't synced yet."],"l8G3S9":["Auto-sync is off — you don't have permission to push to this repo"],"lAiyU_":["Only the current document uses <0>#",["tag"],"</0>."],"lCC_D5":["Subscribing..."],"lGs_bQ":["Page <0>*</0>"],"lHCR4I":["Clear the field to reset back to the default OpenAI endpoint."],"lHwYMr":["Server error: ",["status"]," ",["statusText"]],"lI0Td2":["Use letters, digits, <0>_</0> and <1>-</1> only."],"lIn9L9":["Disable sync"],"lPzyrU":["All hunks resolved"],"lVWEIL":["Indexed ",["embedded"]," of ",["total"]," pages."],"lWNpNB":["Add cursors or select matching occurrences through CodeMirror."],"lXKZGw":["Heading 1"],"lY27jj":[["0"],"y ago"],"lZAiSP":["Backlinks response did not match expected shape."],"l_FAT6":["Use letters, digits, <0>-</0> or <1>_</1> only."],"l_UFPv":["Properties"],"lb_UU4":["Sync now"],"lbkOif":["Undo or redo visual-editor changes through TipTap collaboration history."],"lhjq3G":["Reset ",["labelText"]," to default"],"ljHjfg":["That branch is already open in another worktree."],"lkYioO":["Show or hide document panel"],"ll2yNl":["Content directory"],"lmBPt0":["Only external links trigger a request. Links to other documents in this project preview from the local index and never leave your computer."],"lond3p":["Shows above the code body. Round-trips as \`title=\\"...\\"\` in markdown."],"lrhetp":["+ ",["overflow"]," more"],"ls1N1w":["(missing)"],"lyWa43":["Project-level disconnected pages"],"lzmtKp":["Failed to load folder properties: ",["message"]],"lzwo7p":["Could not open GitHub sign-in. Please try again."],"m16xKo":["Add"],"m2T1Xj":["Tag #",["tagValue"],", ",["uses"]],"m4v3XT":["Undo last edit on ",["docName"]],"m6YGpY":["Active panel content for the selected tab shows here."],"mBltnd":["Path suggestions"],"mGaZwZ":["See the full install guide"],"mHVPm5":["Reconnect required"],"mLAjyL":["Give the AI tools you use access to read and update your projects. Checking a box sets it up right away; unchecking removes it."],"mNY1G6":["Undo all edits"],"mPneVR":["Updated \\"",["display"],"\\" to ",["0"],"."],"mPy9lS":["Organize my existing specs into a linked index grouped by area, and flag any that have drifted out of sync with the current code."],"mU3j1b":["Remove item ",["0"]],"mVFyH-":[["accessibleLabel"]," (conflict)"],"mWVJRX":["Collapsible section with a clickable summary."],"mY8U64":["Teach agents a repeatable task. You can edit the body after creating."],"mYGY3B":["Date"],"mYzDD_":["A worktree folder for that branch already exists."],"mZ1r4i":["Create a document from ",["label"]],"maDWIB":["Mirror source <0>api-spec</0>"],"makN88":["No patterns yet. Type a folder or file name below to start hiding files."],"mdKFEy":["You cancelled loading \\"",["docName"],"\\"."],"mdzKSV":[["nodeCount","plural",{"one":["#"," node"],"other":["#"," nodes"]}]],"mf37rL":["Retrying"],"mg0YGL":["Source multi-cursor and multi-select"],"mk2poV":["e.g. server.ts"],"mmpzAq":["Wrap long lines in the markdown source editor."],"mo22UP":["Toggle inline code formatting."],"mqSwZH":["<0>Mirror anchor not found.</0> No <1>",["mirrorSourceTag"],"</1> exists in <2>",["src"],"</2>."],"msOK6I":["Repositories you've already cloned may keep syncing through git's own saved credentials, even after you disconnect."],"msqUNq":["Ready-made folders and templates to get you started quickly."],"mu1O0q":["Open Knowledge can manage ",["0"]," editor skill(s) for this project. Import moves them into .ok/skills and replaces the .claude, .codex, etc. copies with symlinks — one place to edit, in sync everywhere. If those folders are committed to git, review the change first; symlinks can behave differently on some editors and on Windows."],"mwMF9u":["Open CodeMirror search in source editor mode."],"mxY24F":["Duplicate the focused file-tree item when focus is in the Files sidebar."],"n2lRue":["Commit or stash changes to switch:"],"n5n_vi":["Private repository"],"n6hXUm":["Auto-sync periodically fetches, pulls, and pushes commits to your remote git repository so your edits stay in sync across machines."],"n7aopT":["Editor mode"],"n8DwqQ":["Connects automatically the next time you open this project in a trusted Codex session."],"nCzR-G":["Copy code ",["userCode"]],"nD7Fx9":["This replaces the current skill content with the bundled version ",["0"],". Any local edits will be replaced — your current version is saved to history first, so you can restore it."],"nDT8qt":["Initialized ",["0"]," but could not open it."],"nJq7et":["Couldn't uninstall skill: ",["0"]],"nMSYz5":["This path is on an external volume (/Volumes/...). OpenKnowledge will lose track of files when the drive ejects."],"nNYV3Y":["and ",["remaining"]," more"],"nP-KFo":["New ",["0"]," chat"],"nP76lk":["Applies to all projects on this machine. Claude and Codex, started from the built-in terminal, auto-approve OpenKnowledge's read and write tools (Claude also auto-runs \\"ok open\\"). Deleting, moving, sharing, installing skills, other commands, and non-OpenKnowledge file edits still ask. Cursor, OpenCode, and Pi are unaffected. Best-effort per agent."],"nTwL53":["Open a doc to share its URL."],"nUNZL4":["Ask ",["0"]],"nWv1ja":["Manage hidden files in Settings → Ignore patterns."],"nYKerc":["(user-level only)"],"nYeBmY":[["hours"],"h ago"],"nbfdhU":["Integrations"],"ndeI89":["Use Cmd/Ctrl+C to copy the link below, or open OK in the desktop app."],"ndwmea":["unavailable on this platform"],"neRy3o":["Split list item"],"nfoduq":["create worktree"],"nft48x":["Stored at <0>.ok/templates/</0> in this project. Available in every folder (folder-scoped templates can override by filename)."],"ng2Ibo":["Branch name"],"nh3wwx":["Embeddings provider key"],"njBeMm":["Both"],"njU86j":["Property \\"",["trimmed"],"\\" already exists"],"noH1JX":["Couldn't reach collab server — ",["errorDetail"],". Try <0>ok status</0> or check <1>.ok/local/last-spawn-error.log</1>."],"npcziF":["Install on"],"nqV0Kk":["This folder hasn't synced to GitHub yet. The link will work after the next sync."],"nrGWJ7":["Git identity isn't set — commits use a default author. Set yours so teammates see your name."],"nskygk":["Choose agent"],"nwtY4N":["Something went wrong"],"nxlOpL":["OpenKnowledge is using this GitHub account."],"ny6vNn":["OpenKnowledge is using a GitHub account provided by the gh CLI. There's no separate OpenKnowledge credential to disconnect."],"nzHlj8":["Close ",["0"]],"nzaV6Q":["Page thumbnails"],"o2yoFu":["Reveal in Finder, No workspace"],"o49mDZ":["Loading timeline history"],"o4dcAf":["Reveal in File Explorer, ",["hint"]],"o5gfs1":["This setting is per-machine and isn't shared with collaborators. It needs an API key set with <0>ok embeddings set-key</0>."],"o9CrsQ":["research-note"],"oAFVKX":["Failed to update the project sync default — ",["detail"]],"oAGN8p":["Remote branch <0>",["remoteCheckoutRef"],"</0> will be checked out as a new local tracking branch <1>",["trimmed"],"</1>, in its own window under <2>.ok/worktrees/</2>."],"oBXkm2":["Delete code block"],"oCHfGC":["Level"],"oCNLN8":["Toggle the bottom terminal panel. With text selected, stage it in the terminal's AI input instead."],"oCZkaG":["Copy path"],"oEgEn_":["A key is set, but the embeddings provider rejected it or was unreachable — search fell back to keyword matching. Check the key in <0>Settings → Account</0> and the embeddings endpoint setting."],"oJl7eO":["Unknown component: ",["componentName"]," — source editable below"],"oKBnk5":["More requests were blocked."],"oQA-cA":["Full path"],"oS1YpJ":["Open the Project Navigator."],"oXKEsy":["Delete an adjacent wiki-link or tag chip."],"oXlLi4":["Project plugins are your project's authoring standard — turn them on or off here. The choice is committed to config.yml and shared with every collaborator via git. Each enabled plugin gets its own page under Plugins in the settings sidebar."],"oYepHb":["The terminal is turned off for this project. Turn it back on to run commands here."],"of3tF-":["You picked ~/Documents. OpenKnowledge will index every markdown file under it. If you only want to manage a sub-folder, choose a smaller scope."],"ogAuyr":["Back to document view"],"ohUJJM":["Plugins"],"omXJcU":["Close others"],"optX0N":[["0"],"h ago"],"oqB2ez":["Previous match"],"osRqlv":["Open delete confirmation for the selected file-tree items."],"ot5BRK":["Duplicate selected file or folder"],"otE4aj":["Show external URL nodes"],"ou1hFW":["Toggle an ordered list."],"outYNy":["Duplicate name \\"",["keyName"],"\\""],"ovIGrT":["Local collaboration data for \\"",["docName"],"\\" could not be cleared. Reload to retry."],"p0Iq25":["Insert link"],"p9sdCy":["New ignore pattern"],"pAgkuZ":["Reopening \\"",["docName"],"\\" with a fresh local collaboration cache."],"pBROkv":["Thanks for subscribing. Watch your inbox for product updates."],"pEQFsW":["No matching projects."],"pFagOn":["Source editing"],"pHYP6v":["Open <0>Customize</0> in the sidebar <1/> <2>Skills</2>."],"pRc-Im":["Undone all edits on ",["docName"]],"pTPqMK":["Toggle a fenced code block."],"pWT04I":["Checking..."],"pWbsW6":["Loading docs"],"pZAs1T":["Failed to load outgoing links"],"pajIrl":["Could not turn off the terminal: ",["0"]],"pbwTg6":[["seconds"],"s ago"],"pckX1A":[["0","plural",{"one":["#"," use"],"other":["#"," uses"]}]],"pcqlQu":[["0","plural",{"one":["Folder"],"other":["Folders"]}]],"pgq_xf":[["0"],"/",["1"]," ",["2"]],"phM8Kh":["Found the repo but could not open the project. Please try again."],"pha01Y":["Project-level pages with no incoming graph edges."],"pkAft1":["Search failed."],"pmKdif":["Failed: ",["loadError"]],"pmOGtg":["Use the default OpenAI endpoint or override it with an OpenAI-compatible base URL for Azure or a self-hosted provider."],"pmUArF":["Workspace"],"ppDgFi":["Restart with this app's version"],"psfGPX":["MCP connections"],"pvnfJD":["Dark"],"pzutoc":["Italic"],"q2kXMG":["Inline Math"],"q4YJl_":["The terminal session ended (exit code ",["0"],")."],"q6-JVU":["Loading pages"],"q7F5am":["title"],"qAQVSD":["Page headings response was not JSON"],"qAhFeg":[["userName"]," · ",["tabCount","plural",{"one":["#"," tab"],"other":["#"," tabs"]}]],"qAx7xG":["Fixed folder in content root"],"qEEfPk":["Bug report ",["0"]],"qEIFZu":["Key ending in ",["keyHint"]],"qEue6Q":[" or "],"qFWMl-":["View as text"],"qNOgUu":["Edits at the source land here — no copy-paste drift."],"qRZh7J":["Let Tab leave the source editor instead of indenting."],"qSKu2v":["Source navigation and selection"],"qSxaOz":["Accept their deletion"],"qUB_o_":["Auto-sync is off — your edits stay local until you commit and push manually."],"qXg5W9":["File saves to <0>~/Downloads/openknowledge.skill</0>."],"qXsafh":["Publish to GitHub"],"qZv5ZR":["Config sharing toggle failed"],"q_9EcE":["Enable git auto-sync?"],"q_z77Z":["Heading levels"],"qaHyRJ":[["linkCount","plural",{"one":["#"," link"],"other":["#"," links"]}]],"qbfj1f":["Receiving objects"],"qdBUHP":["Couldn't load ",["fileName"]],"qi1F96":["Reveal in File Explorer"],"qiN9NB":["Surface"],"qiRoLb":["Summarize everything I changed this week"],"qioCwA":["Jump to page ",["pageNumber"]],"qjHMHf":["Failed to disable sync — ",["detail"]],"qmL1UG":["Uploading securely"],"qo4zCg":["Path cannot contain backslashes"],"qpQwGC":["Describe what you're working on and the agent sets it up for you."],"qvWGzP":["Collapse all"],"qyLmWw":["Source editor search panel"],"r-OJYm":["Enter a valid branch name (no spaces, no leading dot, no \\"..\\")."],"r2huLx":["Undo, redo, or undo selection changes through CodeMirror history."],"r4R7AZ":["Network error during cleanup"],"r51jLC":["File saved & Claude Desktop App opened"],"r871ed":["Your knowledge base is now on GitHub at <0>",["ownerLogin"],"/",["repoName"],"</0>."],"rBc32v":["Couldn't reach the embeddings provider — press ↵ to retry"],"rD-woT":["Tell us what went wrong and we'll gather the logs. Nothing leaves your Mac until you've reviewed it."],"rFmBG3":["Color theme"],"rFw02Q":["Uploading ",["keyName"]],"rJVoVX":["Source find results"],"rNifQd":["Remove property"],"rQAQus":["Couldn't save template: ",["error"]],"rQRrkB":["yesterday"],"rSoi6g":[["displayName"]," (",["bin"],") isn't installed or on your PATH."],"rVJpLz":["On — hovering an external link sends its URL to the destination site to fetch a preview."],"rVgSRB":["Collapse ",["docName"]],"rVxu1k":["No pages link here yet."],"rXz97P":["Numbered list of items."],"rZ9HZq":["To do"],"rZVMkf":["Visual editor replace input focused"],"rageVb":["Custom HTML with a live preview pane (sandboxed iframe)."],"rdU729":["Layout"],"rf6x3F":["Dock terminal to the bottom"],"rfFpcF":["Remove ",["chip"]],"rgPqOw":["Convert the current block to a paragraph."],"riqekz":["Suggestion menu navigation"],"rlUzXK":["Could not validate folder. Please try again."],"roAe2K":["Link URL"],"roiUQQ":["This page doesn't link to anything yet."],"rppgXF":["Disconnecting"],"rssK8c":["Ignore patterns (raw text)"],"rtdR4v":["Show or hide Files"],"rwrPbS":["Component boundary navigation"],"s-MGs7":["Resources"],"s-XOaI":["File name"],"s061i4":["Relative path"],"s0IDhW":["This file could not be found."],"s0J_k9":[["0","plural",{"one":["#"," key"],"other":["#"," keys"]}]],"s0_GnA":["Opening ",["openingLabel"],"…"],"s1c0ja":["Bullet List"],"s3caR3":["Deleting"],"sE7R19":["Could not load templates: ",["templatesError"],". You can still create a blank note."],"sER-bs":["Files"],"sFhaTJ":["Disambiguates similarly-named templates in the menu."],"sHrqDx":["Couldn't rename skill: ",["0"]],"sIGbBZ":["Convert selection to footnote"],"sIxSSP":["Resolve conflict in your terminal"],"sJK6pq":["Permission denied"],"sJWhgo":["Unknown component: ",["unregisteredComponentName"]],"sOxZaS":["Failed to load graph"],"sZ2IOu":["This ",["targetNoun"]," was shared from branch <0>",["shareBranch"],"</0>. It doesn't exist on your current branch (<1>",["currentLabel"],"</1>)."],"saIASg":["Second item"],"saYiIO":["Path cannot contain null bytes"],"seeS6l":["Setup OpenKnowledge in this folder?"],"shNd9t":["Slash command menu"],"si3L24":["Open an additional terminal tab. With text selected, stage it in the new tab's AI input."],"skf5Ix":["Indent or outdent source editor lines."],"sn5BEU":[["sizeText"]," · secrets redacted · ",["fileCount","plural",{"one":["#"," file"],"other":["#"," files"]}]," · crash dump not redacted"],"snrVQ7":["probe failed"],"ssuwjF":["Branch"],"stlgky":["On — your search queries and the text of matching pages are sent to your embeddings provider (OpenAI by default) to compute embeddings."],"sxTdZI":["Loading paths…"],"sxjyRq":["Worktrees"],"sxkWRg":["Advanced"],"t-JXbf":["Notion-style inline row for a downloadable file. Drag-drop also works."],"t18QYR":["Unpin ",["accessibleLabel"]],"t2TkQ3":["Sync paused — resolve conflicts to resume."],"t422_7":["Uninstall everywhere"],"t4sFKC":["New branch <0>",["trimmed"],"</0> will be created from the current commit, in its own worktree under <1>.ok/worktrees/</1>."],"t6w1cq":["Open a blank editor tab."],"tAPZEx":["Below"],"tHKQ6j":["Renaming"],"tP5DDk":["Apply link"],"tUvUfp":["Use a folder you already have."],"tW_yvQ":["Expand ",["docName"]],"t_YqKh":["Remove"],"teD0H9":["Couldn't open a worktree for that branch."],"tfDRzk":["Save"],"tfi40B":["Failed to create page"],"tgWuMB":["Modified"],"thnPBX":["Activate the next editor tab."],"ti6aF_":["Ask ",["0"]," CLI"],"tiWX6q":["Source editor"],"tjXez2":["blog-post"],"toyw51":["Mermaid diagram controls"],"tsiTqO":["Paste your API key"],"tsyExA":["Connect your AI tools to OpenKnowledge"],"u-9fWA":["See <0>Architecture</0> for the system overview."],"u3BOHd":[["fileCount","plural",{"one":["#"," file"],"other":["#"," files"]}]],"u3YnKw":["Could not construct share URL."],"u3wRF-":["Published"],"u6Hp4N":["Markdown"],"u7H-Wn":["Show panel (",["panelShortcutLabel"],")"],"u7U_Ij":["Link the selected text, or edit the link under the caret."],"uA_jXp":["Switch and update branch"],"uCaIdy":["GitHub sign-in is missing or expired. Reconnect to resume syncing."],"uDlyqd":["Document the architecture of this repo: create an overview page that links to a page per major module describing its responsibilities and entry points."],"uF9ruK":["Saving"],"uFOL2y":["No project skills yet. Author one to teach agents a repeatable task scoped to this knowledge base."],"uFQbYd":["Home page and entry point."],"uGaIIS":["Check out worktree"],"uH_S-u":[["loadErrorTitle"],": ",["message"]],"uKRYiW":["Sync status unavailable — server error."],"uL_Wx8":["The terminal stopped unexpectedly."],"uM6jnS":["Restore failed"],"uO9WLl":["Push"],"uQNW00":["Detached HEAD — checkout a branch to resume"],"uQewpR":["Couldn't restart the server — it's running under a different account. Restart your computer to clear it, then reopen this project."],"uWtdQR":["No templates yet. Add one in this folder's Templates section, or in Settings → Templates."],"uWx2ZP":["Last sync"],"u_lS4C":["Clone complete — opening project"],"uaUc6t":["Restart server"],"ubMwcO":["The terminal session ended (signal ",["0"],")."],"ugoTXs":["folder"],"uhJEA2":[["count","plural",{"one":["#"," more participant"],"other":["#"," more participants"]}]],"uksqrP":["Repository not found. It may have been renamed, deleted, or moved."],"un8kBM":["Creating page: ",["linkTitle"],"."],"ur2XSb":["Visual editor"],"uuoHOU":["Command failed."],"uynXup":[["tokens","plural",{"one":["token"],"other":["tokens"]}]],"v-h2hx":["Delete ",["targetGitPath"]],"v2ZW0K":["Enable terminal"],"v41fCm":["File not found"],"v75Em9":[["uploadedCount","plural",{"one":["Uploaded one file"],"other":["Uploaded ",["uploadedCount"]," files"]}]],"v77jrg":["Visual editor selection"],"v7hK0U":["Use lowercase letters, digits, and hyphens only."],"v7lbnC":["Find next match"],"vAYoCZ":["Couldn't open the worktree. Try again."],"vDXqVv":["Insert a markdown hard break."],"vEJDlt":["The file is in your Trash; the file-watcher will reconcile."],"vGeNNQ":["Copy a prompt and paste it into your agent to set up your project."],"vIxrEk":["Fit width"],"vLyv1R":["Hide"],"vQIVHc":["Folder properties"],"vWc9a0":["Type to edit; <0>⌘ Enter</0> saves, <1>Esc</1> cancels."],"vZVeFG":["Upload failed — please try again"],"vbK_ZG":["Files sidebar"],"ve8vEM":["Code expired — please try again"],"vfRlCI":["Could not copy full path"],"vfWA_g":["You picked ~/Desktop. OpenKnowledge will index everything on your desktop."],"vhAnzJ":["Turn on semantic search?"],"viwC-K":["Failed to remove project."],"vppAju":["Where newly added attachments are placed."],"vv7kpg":["Cancelled"],"vvWZnu":["Diff unavailable"],"w3tVpc":["No links yet. Add wiki links or markdown links to build a graph."],"w3vFfL":["Hide Files"],"w4hMYl":["Could not read branch state for this project. Close this dialog and open the share link again."],"w6sBjd":["Terminal settings not yet loaded — try again in a moment"],"w7SsvI":["That folder isn't an OpenKnowledge project yet. Initialize it and open?"],"w7nm4K":["Indented blockquote for citations."],"wDgmsr":["\\"",["0"],"\\" install refreshed (",["1"],")"],"wGSHzy":["Activate one of the first eight editor tabs."],"wJijgU":["Location"],"wJo9oS":["Close find"],"wQp1V3":["Mirror of <0>",["src"],"</0>"],"wT4iQr":["Open visual-editor find with replace controls expanded."],"wTcjov":["No workspace"],"wVa83H":["Couldn't create the report"],"wXO4Tg":[["hrs"],"h ago"],"w_Sphq":["Attachments"],"waFx9W":["Managed"],"wbv9xO":["Create new project"],"wbwHYD":["Enable sync"],"wccmX0":["Your embeddings provider API key, used only to create embeddings of your content for semantic search. Stored once for this machine in <0>~/.ok/secrets.yml</0> (readable only by your user account) and shared across all projects. Turn the feature on per project in This project → Search, where you can also override the endpoint."],"wdxz7K":["Source"],"weP6me":["Couldn't load docs — type @ again to retry"],"wlwXUk":["You picked ~/Downloads. Files there are usually transient — consider a stable folder instead."],"wn8EJi":["Skills teach agents repeatable tasks. Author them here; install a skill to project it into your editors' skill folders."],"wndeIl":["Project-level pages with neither incoming nor outgoing graph edges."],"wtcxiD":["Share this setup with your team?"],"wvbc1r":["Couldn't open document"],"wzq9Rv":["A branch with that name already exists. Open its worktree from the switcher instead."],"x-5mJ1":["Install on all"],"x2fr_j":["Graph"],"x3-2ta":[["packName"]," initialized (",["projectEntries","plural",{"one":["#"," entry"],"other":["#"," entries"]}],")"],"x57cJf":["Open link"],"xCJdfg":["Clear"],"xCdTnb":["Close new tab"],"xDBki3":["Heading suggestions"],"xFQRu4":["I already have it locally"],"xG4tb6":["Lost connection to \\"",["docName"],"\\"."],"xHGM4U":["Hide HTML preview"],"xK291b":["Two-page (odd)"],"xNyj3h":["Reinstall for Claude Chat & Cowork"],"xOTzt5":["just now"],"xSVO3J":["What gets created"],"xV5sXw":[["0"],"w ago"],"xWEvuo":["Ask AI"],"xXo8FT":["Save failed: ",["error"]],"xYMPyY":["Paste was incomplete — ",["chunksCompleted"]," of ",["totalChunks"]," chunks landed.",["restoreSuffix"]],"xaDWAI":["Switch project"],"xbdtfY":["Markdown source"],"xc4g25":["Parse failed"],"xeXS4P":["Or use a starter pack"],"xeiujy":["Text"],"xhlFsx":["Inherited — set a value here to replace it."],"xiv-dW":["No files yet."],"xloBjn":["Relative Path"],"xnP32l":["No description yet — add one so agents know when to use this skill."],"xrVr_k":["Couldn't create skill: ",["0"]],"xsZhu-":["Page number"],"xzktOa":["Edit wiki link"],"y1t8bQ":["Settings sections"],"y3aU20":["Save changes"],"y46m5r":["The desktop app isn't responding. Refresh and try again."],"y5FUYi":["Suggestion menu open"],"y5UgU8":["Disable ",["0"]],"y8B54M":["Couldn't send your prompt — please try again."],"yCX4jp":[" Your selection could not be restored."],"yEJ-sl":["The preview blocks resources that don't meet its security rules (for example plain http:// URLs, or code that uses eval). The content above may render incompletely."],"yFyZMJ":["No pages matched \\"",["semanticQueryText"],"\\" by meaning."],"yH7T4q":[["failedCount","plural",{"one":["1 file failed to upload"],"other":[["failedCount"]," files failed to upload"]}]],"yHikCO":["Open CodeMirror's go-to-line prompt."],"yIPXut":["Preparing search"],"yKu_3Y":["Restore"],"yLEyuq":["Product updates in your inbox."],"yLq4w4":["Separator"],"yMgL_E":["Find field navigation"],"yQE2r9":["Loading"],"yQyglE":["No matching docs"],"yR5LHI":["Enter a 6-digit hex like #1A2B3C"],"yUxR-Q":["Expand ",["keyName"]],"yWSvcf":["Content root"],"yWWThY":["Asset reference"],"yYR6za":["Display text"],"yZmvQ4":["This project's server (v",["0"],") is newer than this app (v",["1"],")."],"y_5CE8":["Item ",["0"]],"y_K0Dz":["What happened?"],"yaPGPa":["Open a project to manage its AI tool connections."],"yf5auF":["Search rules by id, alias, or name"],"yf5r22":[["keyName"]," type: ",["typeLabel"]," (inherited from folder properties; not editable here)"],"yhdqox":["Installed — ok is available in external terminals. Unchecking removes it; OpenKnowledge's built-in terminal and AI tools keep working."],"yitgD9":["Failed to load skill targets: ",["0"]],"yjExfe":["Branch <0>",["shareBranch"],"</0> is checked out in:"],"ylXj1N":["Selected"],"ymWJLd":["Show ",["0"]," more"],"ynIa4S":["Visual editor list item"],"ypw6My":["Showing top ",["0"]," headings — keep typing to narrow"],"ysxgu8":["project"],"yutJKi":["Checklist with checkboxes."],"yvG-l1":["Open source lint panel"],"yvHDYG":["Claude Desktop"],"yz7wBu":["Close"],"yzF66j":["Link"],"yzGPkm":["Expand graph"],"yzYE4B":["A picture of the app from just before you opened this. It isn't redacted, so check the preview and uncheck it if anything shouldn't be shared."],"z-lawV":["worktree"],"z0a2EA":["Diagram from Mermaid source — flowchart, sequence, class, state, ER, gantt, pie."],"z1uNN0":["No emoji found."],"z2JdQ-":["Config sharing unchanged — see details below."],"z2funE":["Full Path"],"z5pqI8":["Cannot upload: no document is open"],"z60Lgn":["Saves the file to <0>~/Downloads/openknowledge.skill</0> and opens the Claude Desktop App. Requires Node.js or Bun on your PATH."],"zAJzIg":["Problems in ",["0"]],"zAsDLY":["Graph visualization of document links"],"zKxoPm":["Couldn't rename \\"",["0"],"\\": ",["1"]],"zL0LPh":["Global outside text fields"],"zLGXna":["No starter packs available."],"zLak8b":["Activate new tab"],"zQBg2C":["Move the current block up or down one position."],"zUhPuR":["Open containing folder, ",["hint"]],"zXj1rA":["Search by meaning"],"zYp8Sr":["A <0>Modified</0> badge marks rules your config sets explicitly — directly, or inherited through <1>extends</1>. Unmarked rules keep their default state."],"zZ_I5K":["Open project menu"],"zaXlhf":["The properties block at the top of this doc has a formatting error. Switch to source mode to fix it."],"zbymaY":[["0"],"m ago"],"zd00pH":["Copy Path"],"zgSFyG":["External link"],"zkz0Fg":["Set up syncing"],"zlErBl":["Page headings error response did not match RFC 9457"],"zo3Dl7":["Toggle thumbnails"],"zrP8HX":["Frontmatter every document created from this template starts with. Values are YAML — a list is <0>[a, b]</0>; <1>{",["date"],"}</1> fills in on create."],"ztKII6":["Failed to add item"],"zvjCD4":["Detailed diagnostics"],"zwBp5t":["Private"],"zyKa-I":["Star us on GitHub"]}`)},e0=`en`;ml.load(e0,$1.messages),ml.activate(e0);var t0=Symbol.for(`ok.client.logForwarder`),n0=2e3,r0=[`log`,`info`,`warn`,`error`],i0={log:`info`,info:`info`,warn:`warn`,error:`error`};function a0(e){if(typeof e==`string`)return e;if(e instanceof Error)return`${e.name}: ${e.message}`;try{return JSON.stringify(e)??String(e)}catch{return String(e)}}function o0(e){let t=e.message.length+80;if(e.event&&(t+=e.event.length),e.fields)try{t+=JSON.stringify(e.fields).length}catch{}return t}function s0(e={}){let t=e.windowObj??(typeof window<`u`?window:void 0);if(!t||t.okDesktop)return;let n=t;if(n[t0])return;n[t0]=!0;let r=e.consoleObj??console,i=e.documentObj===void 0?typeof document<`u`?document:null:e.documentObj,a=e.flushIntervalMs??n0,o=e.fetchImpl??n.fetch.bind(n),s=e.now??Date.now,c=[],l=0,u=null,d=!1,f={log:r.log.bind(r),info:r.info.bind(r),warn:r.warn.bind(r),error:r.error.bind(r)};function p(){if(u!==null&&(clearTimeout(u),u=null),c.length===0)return;let e=c.splice(0,100);l=0,d=!0;try{o(`/api/client-logs`,{method:`POST`,headers:{"content-type":`application/json`},keepalive:!0,body:JSON.stringify({entries:e})}).catch(()=>{})}catch{}finally{d=!1}}function m(e){if(c.push(e),l+=o0(e),c.length>100){let e=c.shift();e&&(l-=o0(e))}if(c.length>=100||l>=32768){p();return}u===null&&(u=setTimeout(p,a))}function h(e,t){if(!d)try{let n=Qa(t.map(a0).join(` `)),r=t[0],i=typeof r==`string`&&r.length<=32768?r:void 0,a=i?va(i):null,o=a?.fields;if(o)try{JSON.stringify(o).length>8192&&(o=void 0)}catch{o=void 0}m({level:e,message:n,ts:s(),...a?.event?{event:a.event}:{},...o?{fields:o}:{}})}catch{}}for(let e of r0)r[e]=(...t)=>{f[e](...t),h(i0[e],t)};let g=e=>{if(d)return;let t=e;h(`error`,[`uncaught error: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`])},_=e=>{d||h(`error`,[`unhandledrejection: ${a0(e.reason)}`])},v=()=>p(),y=()=>{i&&i.visibilityState===`hidden`&&p()};n.addEventListener(`error`,g),n.addEventListener(`unhandledrejection`,_),n.addEventListener(`pagehide`,v),i&&i.addEventListener(`visibilitychange`,y);function b(){for(let e of r0)r[e]=f[e];n.removeEventListener(`error`,g),n.removeEventListener(`unhandledrejection`,_),n.removeEventListener(`pagehide`,v),i&&i.removeEventListener(`visibilitychange`,y),u!==null&&(clearTimeout(u),u=null),c.length=0,delete n[t0]}return{flushNow:p,uninstall:b}}function c0(e,t){return e.branch===void 0||e.branch===null||e.branch===``||t===``||e.multiCandidate!==!0?null:{message:`Opened on branch ${e.branch}`,description:t}}function l0(e){let t=e.bridge;if(!t)return;let n=e.setHash??(e=>{window.location.hash=e}),r=e.emitToast??((e,t)=>{ol(e,t)});return t.onDeepLink(e=>{let i=e.kind??`doc`,a={kind:i,path:e.doc,branch:e.branch??null};if(e.targetMissing===!0){Fc.arm(a);return}ts.arm(a),n(Jl(i,e.doc,i===`doc`?e.branch:void 0));let o=c0(e,t.config.projectPath);o!==null&&r(o.message,{description:o.description,duration:3e3})})}var u0=4e3,d0=1440*60*1e3;function f0(e){let t=e.bridge;if(t&&t.onboarding)return t.onboarding.onToast(e=>{if(e.kind===`ancestor-promote`){ol.success(`Opened existing OpenKnowledge project at ${e.ancestorPath}`,{duration:u0});return}if(e.kind===`startup-reclaim`){let t=[];if(e.mcp.status===`repaired`){let n=e.mcp.editors.map(e=>za[e]??e).join(`, `);t.push(`repaired ${n} MCP integration`)}else e.mcp.status===`failed`&&t.push(`MCP auto-repair failed`);e.path.status===`installed`&&t.push(e.path.summary),e.path.status===`failed`&&t.push(`PATH install failed: ${e.path.summary}`);let n=t.length>0?t.join(`; `):`OpenKnowledge integrations checked.`,r=e.mcp.status===`failed`||e.path.status===`failed`,i=e.path.status!==`none`;ol[r?`error`:`success`](n,{duration:r||i?d0:u0,position:`bottom-left`});return}if(e.kind===`sharing-refused-tracked`){ol.error(`Config sharing unchanged: ${e.tracked.length} OK file(s) tracked upstream — see message below.`,{duration:d0,description:e.remediation});return}if(e.kind===`sharing-no-git`){ol.warning(`Local-only requested but no git repository was created. Switch later via Settings → Config sharing once the project is in a git repo.`,{duration:u0});return}let t=ul(e.gitRoot,e.pickedPath)??e.pickedPath;ol.success(`Initialized OpenKnowledge at ${e.gitRoot} — opened parent of ${t} because it contains a .git folder`,{duration:u0})})}function p0(e){let t=(0,$.c)(18),{body:n,warning:r,restartLabel:i,cancelLabel:a,onRestart:o,onDismiss:s}=e,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Z.jsx)(Rc,{className:`mt-0.5 size-4 shrink-0 text-amber-500`}),t[0]=c):c=t[0];let l;t[1]===n?l=t[2]:(l=(0,Z.jsx)(`p`,{className:`font-medium text-sm`,children:n}),t[1]=n,t[2]=l);let u;t[3]===r?u=t[4]:(u=(0,Z.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:r}),t[3]=r,t[4]=u);let d;t[5]!==o||t[6]!==i?(d=(0,Z.jsx)(Y,{size:`sm`,onClick:o,children:i}),t[5]=o,t[6]=i,t[7]=d):d=t[7];let f;t[8]!==a||t[9]!==s?(f=(0,Z.jsx)(Y,{size:`sm`,variant:`ghost`,onClick:s,children:a}),t[8]=a,t[9]=s,t[10]=f):f=t[10];let p;t[11]!==d||t[12]!==f?(p=(0,Z.jsxs)(`div`,{className:`mt-1 flex flex-wrap gap-2`,children:[d,f]}),t[11]=d,t[12]=f,t[13]=p):p=t[13];let m;return t[14]!==l||t[15]!==u||t[16]!==p?(m=(0,Z.jsxs)(`div`,{className:`flex w-full gap-3 rounded-lg border bg-popover p-4 text-popover-foreground shadow-lg`,children:[c,(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[l,u,p]})]}),t[14]=l,t[15]=u,t[16]=p,t[17]=m):m=t[17],m}function m0(){return ml._({id:`f_PkYv`})}function h0(e){return e.serverRuntime===e.appRuntime?ml._({id:`FWQuPE`,values:{0:e.appRuntime}}):e.relation===`older`?ml._({id:`LhQlGR`,values:{0:e.serverRuntime,1:e.appRuntime}}):ml._({id:`yZmvQ4`,values:{0:e.serverRuntime,1:e.appRuntime}})}function g0(e){return ml._({id:`2YOwme`,values:{appRuntime:e}})}function _0(e){return ml._({id:`5DFPDh`,values:{appRuntime:e}})}function v0(e){return e===`eperm`?ml._({id:`uQewpR`}):ml._({id:`PqYWiC`})}async function y0(e){let t=ol.loading(ml._({id:`Kf7GG5`}),{duration:1/0}),n;try{n=await e.restartServer(e.config.projectPath)}catch{return}ol.dismiss(t),n.ok===!1&&ol.error(v0(n.reason),{duration:1/0})}function b0(e){let t=e.bridge;if(!t)return;let n=t.onServerVersionDrift(e=>{ol.custom(n=>(0,Q.createElement)(p0,{body:h0(e),warning:m0(),restartLabel:ml._({id:`ppDgFi`}),cancelLabel:ml._({id:`PBxg_E`}),onRestart:()=>{ol.dismiss(n),y0(t)},onDismiss:()=>ol.dismiss(n)}),{duration:1/0})}),r=t.onServerRestarted(e=>{ol.success(g0(e.appRuntime))}),i=t.onServerReclaimed(e=>{ol.warning(_0(e.appRuntime),{duration:15e3})});return()=>{n(),r(),i()}}function x0(e){let{initialDoc:t}=e;if(!t)return;let n=e.getHash();n!==``&&n!==`#`&&n!==`#/`||e.setHash($l(t))}function S0(){typeof window>`u`||!window.okDesktop||x0({initialDoc:window.okDesktop.config.initialDoc,getHash:()=>window.location.hash,setHash:e=>{window.location.hash=e}})}Pd(),n(()=>import(`./telemetry-startup-DCPtDyw3.js`).then(e=>e.initStartupTrace()),__vite__mapDeps([124,0,1,2,3,4,53,10]),import.meta.url),J1({apiOrigin:typeof window<`u`?window.okDesktop?.config.apiOrigin:void 0}),s0(),UE()&&YE(),n$(),ZT(),MI(),NP(),typeof window<`u`&&l0({bridge:window.okDesktop}),typeof window<`u`&&b0({bridge:window.okDesktop}),typeof window<`u`&&jd({bridge:window.okDesktop}),typeof window<`u`&&ll({bridge:window.okDesktop}),typeof window<`u`&&f0({bridge:window.okDesktop}),typeof window<`u`&&Nd({bridge:window.okDesktop}),typeof window<`u`&&W1({bridge:window.okDesktop}),S0();var C0=new Ud({defaultOptions:{queries:{retry:1,staleTime:1e4}}}),w0=document.getElementById(`root`);if(!w0)throw Error(`Root element not found`);var T0=typeof window>`u`?void 0:window.okDesktop;(0,Jd.createRoot)(w0).render((0,Z.jsx)(Q.StrictMode,{children:(0,Z.jsx)(At,{i18n:ml,children:(0,Z.jsx)(Jt,{client:C0,children:(0,Z.jsxs)(ln,{attribute:`class`,defaultTheme:`system`,enableSystem:!0,disableTransitionOnChange:!0,storageKey:`ok-theme-v1`,children:[(0,Z.jsxs)(Cn,{children:[(0,Z.jsx)(Kp,{children:V1(T0)}),T0!==void 0&&(0,Z.jsx)(Jp,{children:(0,Z.jsx)(G1,{bridge:T0})})]}),(0,Z.jsx)(K1,{richColors:!0,closeButton:!0})]})})})}));