@band-app/server 0.9.1 → 0.9.2

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 (177) hide show
  1. package/dist/client/assets/{DockviewTerminalContainer-ZSiC-7Wm.js → DockviewTerminalContainer-DWHIc-4-.js} +2 -2
  2. package/dist/client/assets/TerminalPanel-m73O5CIc.js +4 -0
  3. package/dist/client/assets/{_basePickBy-DOsvMYxz.js → _basePickBy-BKaMH_7t.js} +1 -1
  4. package/dist/client/assets/{_baseUniq-BjUzcTYJ.js → _baseUniq-CQkxA8qy.js} +1 -1
  5. package/dist/client/assets/addon-search-DCE88ROn.js +7 -0
  6. package/dist/client/assets/addon-webgl-CeRvQWkA.js +58 -0
  7. package/dist/client/assets/{arc-PqmhKm1W.js → arc-Bose4Nlr.js} +1 -1
  8. package/dist/client/assets/{architectureDiagram-VXUJARFQ-70d15Hrt.js → architectureDiagram-VXUJARFQ-2sFlOIMR.js} +1 -1
  9. package/dist/client/assets/{blockDiagram-VD42YOAC-Cjib0DnE.js → blockDiagram-VD42YOAC-DJAsEjOI.js} +1 -1
  10. package/dist/client/assets/{c4Diagram-YG6GDRKO-DGbJac2z.js → c4Diagram-YG6GDRKO-DheiVuNi.js} +1 -1
  11. package/dist/client/assets/channel-BnzmiQbl.js +1 -0
  12. package/dist/client/assets/{chunk-4BX2VUAB-DWXbUTDx.js → chunk-4BX2VUAB-DvXp34cF.js} +1 -1
  13. package/dist/client/assets/{chunk-55IACEB6-DHmlIacM.js → chunk-55IACEB6-CDyPx-Tg.js} +1 -1
  14. package/dist/client/assets/{chunk-B4BG7PRW-DGMr7A2W.js → chunk-B4BG7PRW-BTtdtPVg.js} +1 -1
  15. package/dist/client/assets/{chunk-DI55MBZ5-VyMTkEX3.js → chunk-DI55MBZ5-9GoKl76p.js} +1 -1
  16. package/dist/client/assets/{chunk-FMBD7UC4-U9WC5yh7.js → chunk-FMBD7UC4-C01REv3a.js} +1 -1
  17. package/dist/client/assets/{chunk-QN33PNHL-CpWV7s74.js → chunk-QN33PNHL-CoCCh58U.js} +1 -1
  18. package/dist/client/assets/{chunk-QZHKN3VN-D_6wYXhV.js → chunk-QZHKN3VN-DDFTrbxS.js} +1 -1
  19. package/dist/client/assets/{chunk-TZMSLE5B-CnmYfvpb.js → chunk-TZMSLE5B-DfvMfmy7.js} +1 -1
  20. package/dist/client/assets/classDiagram-2ON5EDUG-BH5EB2Fv.js +1 -0
  21. package/dist/client/assets/classDiagram-v2-WZHVMYZB-BH5EB2Fv.js +1 -0
  22. package/dist/client/assets/clone-Bat0lHCp.js +1 -0
  23. package/dist/client/assets/{cose-bilkent-S5V4N54A-DqlCuXUu.js → cose-bilkent-S5V4N54A-B7exDDfj.js} +1 -1
  24. package/dist/client/assets/{dagre-6UL2VRFP-D9ySXysT.js → dagre-6UL2VRFP-Cel7r0v3.js} +2 -2
  25. package/dist/client/assets/{diagram-PSM6KHXK-Bee22nwJ.js → diagram-PSM6KHXK-C7lbk8Kf.js} +1 -1
  26. package/dist/client/assets/{diagram-QEK2KX5R-CKYtwRXE.js → diagram-QEK2KX5R-DvlCS56Z.js} +1 -1
  27. package/dist/client/assets/{diagram-S2PKOQOG-tl720Ns4.js → diagram-S2PKOQOG-HSl5Oecr.js} +1 -1
  28. package/dist/client/assets/{erDiagram-Q2GNP2WA-Di8LTTo8.js → erDiagram-Q2GNP2WA-B2_RJg2L.js} +1 -1
  29. package/dist/client/assets/{flowDiagram-NV44I4VS-CUDkVJGW.js → flowDiagram-NV44I4VS-BPYCHaLb.js} +1 -1
  30. package/dist/client/assets/{ganttDiagram-JELNMOA3-CemMEWZ6.js → ganttDiagram-JELNMOA3-CD-msupP.js} +1 -1
  31. package/dist/client/assets/{gitGraphDiagram-V2S2FVAM-B54xBQm4.js → gitGraphDiagram-V2S2FVAM-xwVYLUhE.js} +1 -1
  32. package/dist/client/assets/{graph-CzD8aRj3.js → graph-Dbv1AWta.js} +1 -1
  33. package/dist/client/assets/{highlighted-body-B3W2YXNL-c47RLD13.js → highlighted-body-B3W2YXNL-CGkNHhPo.js} +1 -1
  34. package/dist/client/assets/{index-BoSG4rS2.js → index-A2XaYyYw.js} +1 -1
  35. package/dist/client/assets/{index-CIv4jKEj.js → index-B5YiIiNq.js} +1 -1
  36. package/dist/client/assets/{index-DWMpZHMT.js → index-B7ZSAY53.js} +1 -1
  37. package/dist/client/assets/{index-Dt6ZyNUI.js → index-BBs4HyTg.js} +1 -1
  38. package/dist/client/assets/{index-BL6NMKnC.js → index-BDzzWD64.js} +1 -1
  39. package/dist/client/assets/{index-Qbd6pW8g.js → index-BptuxjE6.js} +1 -1
  40. package/dist/client/assets/{index-DjJ5-Fte.js → index-BwhOjkOO.js} +1 -1
  41. package/dist/client/assets/{index-DPj7uf3N.js → index-C5NAzmgp.js} +1 -1
  42. package/dist/client/assets/{index-DaIPQb3r.js → index-CESm9EUT.js} +1 -1
  43. package/dist/client/assets/{index-D_mhg0lQ.js → index-CF0KBM34.js} +1 -1
  44. package/dist/client/assets/{index-DfCwszrX.js → index-C_SXPmbV.js} +1 -1
  45. package/dist/client/assets/{index-CMZEEi2J.js → index-CiPtBqSR.js} +1 -1
  46. package/dist/client/assets/{index-D6MZ26li.js → index-D5rP0BSv.js} +1 -1
  47. package/dist/client/assets/{index-C1eSoFff.js → index-D9aDcgku.js} +1 -1
  48. package/dist/client/assets/{index-gOMe0dPC.js → index-DGsskOgM.js} +1 -1
  49. package/dist/client/assets/{index-DC_vWJCw.js → index-Do3joW0D.js} +1 -1
  50. package/dist/client/assets/{index-btFeV2j3.js → index-DsmQlt3C.js} +1 -1
  51. package/dist/client/assets/{index-Cy7F9VKd.js → index-qKsRlhz3.js} +1 -1
  52. package/dist/client/assets/{infoDiagram-HS3SLOUP-Cvh6X3kP.js → infoDiagram-HS3SLOUP-hfH1C_pr.js} +1 -1
  53. package/dist/client/assets/{journeyDiagram-XKPGCS4Q-Czi5TePn.js → journeyDiagram-XKPGCS4Q-ZSxc6ITj.js} +1 -1
  54. package/dist/client/assets/{kanban-definition-3W4ZIXB7-Bk0MW3W-.js → kanban-definition-3W4ZIXB7-U4z7vSSP.js} +1 -1
  55. package/dist/client/assets/{layout-Ckq0ckKz.js → layout-BkxMGu4B.js} +1 -1
  56. package/dist/client/assets/{linear-BMO1jkHz.js → linear-Bdy4hNwe.js} +1 -1
  57. package/dist/client/assets/{main-B0LPsZMa.js → main-DwiBxZvA.js} +208 -208
  58. package/dist/client/assets/{mindmap-definition-VGOIOE7T-oF701YVn.js → mindmap-definition-VGOIOE7T-CJyNknV7.js} +1 -1
  59. package/dist/client/assets/{pieDiagram-ADFJNKIX-DOa3ALEx.js → pieDiagram-ADFJNKIX-DwfChKVB.js} +1 -1
  60. package/dist/client/assets/{quadrantDiagram-AYHSOK5B-BwhElI6Y.js → quadrantDiagram-AYHSOK5B-QD4JEDeD.js} +1 -1
  61. package/dist/client/assets/{requirementDiagram-UZGBJVZJ-DcR2cX9-.js → requirementDiagram-UZGBJVZJ-DBOLPRLx.js} +1 -1
  62. package/dist/client/assets/{sankeyDiagram-TZEHDZUN-BTpr4N1X.js → sankeyDiagram-TZEHDZUN-D73QuPjf.js} +1 -1
  63. package/dist/client/assets/{sequenceDiagram-WL72ISMW-B8wh2px2.js → sequenceDiagram-WL72ISMW-sQ_Dekb1.js} +1 -1
  64. package/dist/client/assets/{square-terminal-bul2OB6w.js → square-terminal-BmZtdUqJ.js} +1 -1
  65. package/dist/client/assets/{stateDiagram-FKZM4ZOC-Bt4IkUn2.js → stateDiagram-FKZM4ZOC-DejJZefR.js} +1 -1
  66. package/dist/client/assets/stateDiagram-v2-4FDKWEC3-C3KpG1Lu.js +1 -0
  67. package/dist/client/assets/{timeline-definition-IT6M3QCI-Dybsx7bF.js → timeline-definition-IT6M3QCI-5gT-CArs.js} +1 -1
  68. package/dist/client/assets/{treemap-GDKQZRPO-CuwqbPPy.js → treemap-GDKQZRPO-Sm5U59Kz.js} +1 -1
  69. package/dist/client/assets/{useSessionListContext-DGvLgX3O.js → useSessionListContext-iz8sf9L6.js} +1 -1
  70. package/dist/client/assets/{workspace._workspaceId-CflKFp3C.js → workspace._workspaceId-CgBppz9O.js} +1 -1
  71. package/dist/client/assets/{workspace._workspaceId.changes-B0bx2wbG.js → workspace._workspaceId.changes-Dn42JgBH.js} +1 -1
  72. package/dist/client/assets/workspace._workspaceId.code-C3Nx-w_a.js +1 -0
  73. package/dist/client/assets/{workspace._workspaceId.code._-yf2wdjm9.js → workspace._workspaceId.code._-OCcsWq1e.js} +1 -1
  74. package/dist/client/assets/{workspace._workspaceId.code.index-BsCAmmyN.js → workspace._workspaceId.code.index-D8CkYPgV.js} +1 -1
  75. package/dist/client/assets/{workspace._workspaceId.index-MrOOg9VQ.js → workspace._workspaceId.index-BBhBKPNM.js} +1 -1
  76. package/dist/client/assets/{workspace._workspaceId.terminal-DPBz1J_0.js → workspace._workspaceId.terminal-B_mQrV6_.js} +2 -2
  77. package/dist/client/assets/xterm-AZ511Krh.css +1 -0
  78. package/dist/client/assets/xterm-iwIWEtGc.js +10 -0
  79. package/dist/client/assets/{xychartDiagram-PRI3JC2R-ZIdDg6qe.js → xychartDiagram-PRI3JC2R-h6Sm8OTK.js} +2 -2
  80. package/dist/server/assets/{DockviewTerminalContainer-DFjZuSCT.js → DockviewTerminalContainer-TTt325-b.js} +3 -3
  81. package/dist/server/assets/{TerminalPanel-tg1GdSr0.js → TerminalPanel-DRzfuu-T.js} +154 -5
  82. package/dist/server/assets/{_basePickBy-DbFLVHsB.js → _basePickBy-wC54TbQu.js} +2 -2
  83. package/dist/server/assets/{_baseUniq-CLmEqJvy.js → _baseUniq-rn84LOSK.js} +1 -1
  84. package/dist/server/assets/{_tanstack-start-manifest_v-DlURH9DQ.js → _tanstack-start-manifest_v-fymioLKZ.js} +1 -1
  85. package/dist/server/assets/addon-search-BS53_-cp.js +1247 -0
  86. package/dist/server/assets/addon-webgl-BeO2q2vc.js +2167 -0
  87. package/dist/server/assets/{arc-DZLAbVTx.js → arc-DdlCXdeL.js} +1 -1
  88. package/dist/server/assets/{architecture-7HQA4BMR-CQ0E5QYW.js → architecture-7HQA4BMR-CHMWBrpq.js} +6 -6
  89. package/dist/server/assets/{architectureDiagram-VXUJARFQ-evDLySHH.js → architectureDiagram-VXUJARFQ-CqvTF0VE.js} +6 -6
  90. package/dist/server/assets/{blockDiagram-VD42YOAC-DBsHlPXM.js → blockDiagram-VD42YOAC-Bc-Qk0S9.js} +6 -6
  91. package/dist/server/assets/{c4Diagram-YG6GDRKO-h5CZPoPy.js → c4Diagram-YG6GDRKO-COi5PFIX.js} +2 -2
  92. package/dist/server/assets/{channel-CKJ1HkO1.js → channel-B2GZC_H9.js} +1 -1
  93. package/dist/server/assets/{chunk-4BX2VUAB-3odGT6c4.js → chunk-4BX2VUAB-rhgtjYHc.js} +1 -1
  94. package/dist/server/assets/{chunk-55IACEB6-LXKtVbTR.js → chunk-55IACEB6-CLPQZ1p7.js} +1 -1
  95. package/dist/server/assets/{chunk-B4BG7PRW-Br-1a8gS.js → chunk-B4BG7PRW-6Vb3MfoD.js} +4 -4
  96. package/dist/server/assets/{chunk-DI55MBZ5-BAz_7LcE.js → chunk-DI55MBZ5-D-VoOG5D.js} +3 -3
  97. package/dist/server/assets/{chunk-FMBD7UC4-CqMTTql5.js → chunk-FMBD7UC4-CByHMCvr.js} +1 -1
  98. package/dist/server/assets/{chunk-QN33PNHL-HclxJzvx.js → chunk-QN33PNHL-CRZHpta9.js} +1 -1
  99. package/dist/server/assets/{chunk-QZHKN3VN-TEpNJ3fK.js → chunk-QZHKN3VN-ncUfNOMa.js} +1 -1
  100. package/dist/server/assets/{chunk-TZMSLE5B-CnZe9dM5.js → chunk-TZMSLE5B-BGxlM2si.js} +1 -1
  101. package/dist/server/assets/{classDiagram-v2-WZHVMYZB-Cd6_FR9V.js → classDiagram-2ON5EDUG-SabF3eWj.js} +5 -5
  102. package/dist/server/assets/{classDiagram-2ON5EDUG-Cd6_FR9V.js → classDiagram-v2-WZHVMYZB-SabF3eWj.js} +5 -5
  103. package/dist/server/assets/{clone-AjunVJRj.js → clone-CQGJ84x8.js} +1 -1
  104. package/dist/server/assets/{cose-bilkent-S5V4N54A-D7LPM_vS.js → cose-bilkent-S5V4N54A-WSuuldrv.js} +1 -1
  105. package/dist/server/assets/{dagre-6UL2VRFP-CNeAACXh.js → dagre-6UL2VRFP-DZfpOMzg.js} +6 -6
  106. package/dist/server/assets/{diagram-PSM6KHXK-FHT3vuUn.js → diagram-PSM6KHXK-DCKwYA11.js} +7 -7
  107. package/dist/server/assets/{diagram-QEK2KX5R-Du9tqqDq.js → diagram-QEK2KX5R-GhJ4dzVD.js} +6 -6
  108. package/dist/server/assets/{diagram-S2PKOQOG-BvH3_hXv.js → diagram-S2PKOQOG-DBeAGiPC.js} +6 -6
  109. package/dist/server/assets/{erDiagram-Q2GNP2WA-Bl5SlyVt.js → erDiagram-Q2GNP2WA-XphQqWxZ.js} +4 -4
  110. package/dist/server/assets/{flowDiagram-NV44I4VS-TOzUwhF5.js → flowDiagram-NV44I4VS-Cw9n-l35.js} +5 -5
  111. package/dist/server/assets/{ganttDiagram-JELNMOA3-BHAA60wa.js → ganttDiagram-JELNMOA3-CqqJbuET.js} +2 -2
  112. package/dist/server/assets/{gitGraph-G5XIXVHT-rOVJvGHO.js → gitGraph-G5XIXVHT-DvgCllrO.js} +6 -6
  113. package/dist/server/assets/{gitGraphDiagram-V2S2FVAM-VzFNa7CX.js → gitGraphDiagram-V2S2FVAM-CUIK26NP.js} +7 -7
  114. package/dist/server/assets/{graph-Bcuzin2V.js → graph-B-wfb0D4.js} +2 -2
  115. package/dist/server/assets/{highlighted-body-B3W2YXNL-DsiXofbu.js → highlighted-body-B3W2YXNL-BVGB-5j8.js} +1 -1
  116. package/dist/server/assets/{index-CERytpw-.js → index-BCNMZ2-I.js} +2 -2
  117. package/dist/server/assets/{index-bEeLtTPr.js → index-BHR21Rwx.js} +2 -2
  118. package/dist/server/assets/{index-CAqpyyUA.js → index-BUKmWu07.js} +3 -3
  119. package/dist/server/assets/{index-CpuhPF5t.js → index-BUSq_KFc.js} +5 -5
  120. package/dist/server/assets/{index-Cjn0yAaG.js → index-BoCTcQyA.js} +2 -2
  121. package/dist/server/assets/{index-BS2yvWd8.js → index-CMs8dLKE.js} +2 -2
  122. package/dist/server/assets/{index-BsO3ggd_.js → index-CznnHJPs.js} +2 -2
  123. package/dist/server/assets/{index-CiwITdnL.js → index-D4Zt6M4l.js} +2 -2
  124. package/dist/server/assets/{index-BNygmRkO.js → index-D6pmvl-E.js} +2 -2
  125. package/dist/server/assets/{index-CBNyhkhK.js → index-DAlp0b3q.js} +2 -2
  126. package/dist/server/assets/{index-BuX-CbGB.js → index-DEkonSBc.js} +4 -4
  127. package/dist/server/assets/{index-Bw1GdZx-.js → index-DqCcM85h.js} +2 -2
  128. package/dist/server/assets/{index-BF37iFwT.js → index-O9-otWU5.js} +2 -2
  129. package/dist/server/assets/{index-DUQ1u3ED.js → index-a-16Ui_6.js} +1 -1
  130. package/dist/server/assets/{index-DE0zASO3.js → index-g309PIeU.js} +5 -5
  131. package/dist/server/assets/{index-BN_ghim8.js → index-tbrMCGeF.js} +2 -2
  132. package/dist/server/assets/{index-CJCPubzA.js → index-wCTie1M2.js} +1 -1
  133. package/dist/server/assets/{index-ChbBCGbG.js → index-zE6_NUk4.js} +3 -3
  134. package/dist/server/assets/{info-VBDWY6EO-BVbRb-4Z.js → info-VBDWY6EO-7gpYhbqJ.js} +6 -6
  135. package/dist/server/assets/{infoDiagram-HS3SLOUP-esUYZzYH.js → infoDiagram-HS3SLOUP-DuA859Z1.js} +5 -5
  136. package/dist/server/assets/{journeyDiagram-XKPGCS4Q-D40eNc21.js → journeyDiagram-XKPGCS4Q-PiSB9SFS.js} +4 -4
  137. package/dist/server/assets/{kanban-definition-3W4ZIXB7-5N_75bcJ.js → kanban-definition-3W4ZIXB7-Fl-z0jKd.js} +2 -2
  138. package/dist/server/assets/{layout-CbRLlNEr.js → layout-BwTTgoVB.js} +4 -4
  139. package/dist/server/assets/{linear-CSZB2dRK.js → linear-6z47mrNn.js} +1 -1
  140. package/dist/server/assets/{mermaid-3ZIDBTTL-BEV29Yuc.js → mermaid-3ZIDBTTL-rjgzkBvP.js} +1 -1
  141. package/dist/server/assets/{mermaid-parser.core-D1DVTNTM.js → mermaid-parser.core-OR3z5VGq.js} +11 -11
  142. package/dist/server/assets/{mindmap-definition-VGOIOE7T-Dd16Sy8E.js → mindmap-definition-VGOIOE7T-RsSUd0h5.js} +3 -3
  143. package/dist/server/assets/{packet-DYOGHKS2-Jv2GC4PV.js → packet-DYOGHKS2-DdI3YR11.js} +6 -6
  144. package/dist/server/assets/{pie-VRWISCQL-CzY7Q_jX.js → pie-VRWISCQL-CvLwiHxU.js} +6 -6
  145. package/dist/server/assets/{pieDiagram-ADFJNKIX-BygyuGnX.js → pieDiagram-ADFJNKIX-CS1QqpkR.js} +7 -7
  146. package/dist/server/assets/{quadrantDiagram-AYHSOK5B-B_XQ04Qi.js → quadrantDiagram-AYHSOK5B-sOsgkH1q.js} +2 -2
  147. package/dist/server/assets/{radar-ZZBFDIW7-D1Km6RgJ.js → radar-ZZBFDIW7-DcuGjSpy.js} +6 -6
  148. package/dist/server/assets/{requirementDiagram-UZGBJVZJ-HsUrO2es.js → requirementDiagram-UZGBJVZJ-DxsTf_dF.js} +3 -3
  149. package/dist/server/assets/{router-86ALGZbb.js → router-zkGZin-Y.js} +566 -336
  150. package/dist/server/assets/{sankeyDiagram-TZEHDZUN-D2agLPgC.js → sankeyDiagram-TZEHDZUN-Dv69rb4x.js} +1 -1
  151. package/dist/server/assets/{sequenceDiagram-WL72ISMW-B9xPBmx_.js → sequenceDiagram-WL72ISMW-DdZyEvL3.js} +3 -3
  152. package/dist/server/assets/{square-terminal-C1jD7kGR.js → square-terminal-hlWJQE0a.js} +1 -1
  153. package/dist/server/assets/{stateDiagram-FKZM4ZOC-DHDTsTYT.js → stateDiagram-FKZM4ZOC-D3Tj81-E.js} +8 -8
  154. package/dist/server/assets/{stateDiagram-v2-4FDKWEC3-UzPAvMjA.js → stateDiagram-v2-4FDKWEC3-Dx5gqfCT.js} +4 -4
  155. package/dist/server/assets/{timeline-definition-IT6M3QCI-BkV8-JpZ.js → timeline-definition-IT6M3QCI-CcjZ3wnd.js} +2 -2
  156. package/dist/server/assets/{treemap-GDKQZRPO-BnwMc3nx.js → treemap-GDKQZRPO-BRethL8T.js} +6 -6
  157. package/dist/server/assets/{workspace._workspaceId-CxbLYQ4n.js → workspace._workspaceId-7fdVKeNu.js} +2 -2
  158. package/dist/server/assets/{workspace._workspaceId.changes-st-QDRaZ.js → workspace._workspaceId.changes-OtWo7a6k.js} +1 -1
  159. package/dist/server/assets/{workspace._workspaceId.code._-DXGsbzXN.js → workspace._workspaceId.code._-C8dWBJOO.js} +1 -1
  160. package/dist/server/assets/{workspace._workspaceId.code.index-ChSU7TbG.js → workspace._workspaceId.code.index-DpGdriuG.js} +1 -1
  161. package/dist/server/assets/{workspace._workspaceId.index-WQW8azst.js → workspace._workspaceId.index-DGG24yQO.js} +1 -1
  162. package/dist/server/assets/{workspace._workspaceId.terminal-o_dPhCio.js → workspace._workspaceId.terminal-BCUV7dQN.js} +2 -2
  163. package/dist/server/assets/xterm-CkV9CBvP.js +8028 -0
  164. package/dist/server/assets/{xychartDiagram-PRI3JC2R-3zGezmQ5.js → xychartDiagram-PRI3JC2R-C01ACkIV.js} +2 -2
  165. package/dist/server/server.js +2 -2
  166. package/dist/start-server.mjs +76 -4
  167. package/package.json +8 -6
  168. package/dist/client/assets/TerminalPanel-CvR6-tkK.js +0 -4
  169. package/dist/client/assets/channel-DHmLqpit.js +0 -1
  170. package/dist/client/assets/classDiagram-2ON5EDUG-C7zDhZrE.js +0 -1
  171. package/dist/client/assets/classDiagram-v2-WZHVMYZB-C7zDhZrE.js +0 -1
  172. package/dist/client/assets/clone-yyq3D0Pq.js +0 -1
  173. package/dist/client/assets/stateDiagram-v2-4FDKWEC3-D3_tub1u.js +0 -1
  174. package/dist/client/assets/workspace._workspaceId.code-C9yB34AE.js +0 -1
  175. package/dist/client/assets/xterm-B-qIQCd3.js +0 -16
  176. package/dist/client/assets/xterm-DDGTF8rc.css +0 -1
  177. package/dist/server/assets/xterm-R4LLEgbX.js +0 -8417
@@ -0,0 +1,1247 @@
1
+ var Re = class {
2
+ constructor() {
3
+ this.listeners = [], this.unexpectedErrorHandler = function(e) {
4
+ setTimeout(() => {
5
+ throw e.stack ? ae.isErrorNoTelemetry(e) ? new ae(e.message + `
6
+
7
+ ` + e.stack) : new Error(e.message + `
8
+
9
+ ` + e.stack) : e;
10
+ }, 0);
11
+ };
12
+ }
13
+ addListener(e) {
14
+ return this.listeners.push(e), () => {
15
+ this._removeListener(e);
16
+ };
17
+ }
18
+ emit(e) {
19
+ this.listeners.forEach((t) => {
20
+ t(e);
21
+ });
22
+ }
23
+ _removeListener(e) {
24
+ this.listeners.splice(this.listeners.indexOf(e), 1);
25
+ }
26
+ setUnexpectedErrorHandler(e) {
27
+ this.unexpectedErrorHandler = e;
28
+ }
29
+ getUnexpectedErrorHandler() {
30
+ return this.unexpectedErrorHandler;
31
+ }
32
+ onUnexpectedError(e) {
33
+ this.unexpectedErrorHandler(e), this.emit(e);
34
+ }
35
+ onUnexpectedExternalError(e) {
36
+ this.unexpectedErrorHandler(e);
37
+ }
38
+ }, pt = new Re();
39
+ function le(r4) {
40
+ ft(r4) || pt.onUnexpectedError(r4);
41
+ }
42
+ var Ce = "Canceled";
43
+ function ft(r4) {
44
+ return r4 instanceof ee ? true : r4 instanceof Error && r4.name === Ce && r4.message === Ce;
45
+ }
46
+ var ee = class extends Error {
47
+ constructor() {
48
+ super(Ce), this.name = this.message;
49
+ }
50
+ };
51
+ var ae = class r extends Error {
52
+ constructor(e) {
53
+ super(e), this.name = "CodeExpectedError";
54
+ }
55
+ static fromError(e) {
56
+ if (e instanceof r) return e;
57
+ let t = new r();
58
+ return t.message = e.message, t.stack = e.stack, t;
59
+ }
60
+ static isErrorNoTelemetry(e) {
61
+ return e.name === "CodeExpectedError";
62
+ }
63
+ };
64
+ var Qe;
65
+ ((h) => {
66
+ function r4(u) {
67
+ return u < 0;
68
+ }
69
+ h.isLessThan = r4;
70
+ function e(u) {
71
+ return u <= 0;
72
+ }
73
+ h.isLessThanOrEqual = e;
74
+ function t(u) {
75
+ return u > 0;
76
+ }
77
+ h.isGreaterThan = t;
78
+ function n(u) {
79
+ return u === 0;
80
+ }
81
+ h.isNeitherLessOrGreaterThan = n, h.greaterThan = 1, h.lessThan = -1, h.neitherLessOrGreaterThan = 0;
82
+ })(Qe ||= {});
83
+ function Pe(r4, e) {
84
+ let t = this, n = false, i;
85
+ return function() {
86
+ if (n) return i;
87
+ if (n = true, e) ;
88
+ else i = r4.apply(t, arguments);
89
+ return i;
90
+ };
91
+ }
92
+ var Le;
93
+ ((z) => {
94
+ function r4(m) {
95
+ return m && typeof m == "object" && typeof m[Symbol.iterator] == "function";
96
+ }
97
+ z.is = r4;
98
+ let e = Object.freeze([]);
99
+ function t() {
100
+ return e;
101
+ }
102
+ z.empty = t;
103
+ function* n(m) {
104
+ yield m;
105
+ }
106
+ z.single = n;
107
+ function i(m) {
108
+ return r4(m) ? m : n(m);
109
+ }
110
+ z.wrap = i;
111
+ function s(m) {
112
+ return m || e;
113
+ }
114
+ z.from = s;
115
+ function* a(m) {
116
+ for (let _ = m.length - 1; _ >= 0; _--) yield m[_];
117
+ }
118
+ z.reverse = a;
119
+ function h(m) {
120
+ return !m || m[Symbol.iterator]().next().done === true;
121
+ }
122
+ z.isEmpty = h;
123
+ function u(m) {
124
+ return m[Symbol.iterator]().next().value;
125
+ }
126
+ z.first = u;
127
+ function p(m, _) {
128
+ let y = 0;
129
+ for (let L of m) if (_(L, y++)) return true;
130
+ return false;
131
+ }
132
+ z.some = p;
133
+ function T(m, _) {
134
+ for (let y of m) if (_(y)) return y;
135
+ }
136
+ z.find = T;
137
+ function* v(m, _) {
138
+ for (let y of m) _(y) && (yield y);
139
+ }
140
+ z.filter = v;
141
+ function* I(m, _) {
142
+ let y = 0;
143
+ for (let L of m) yield _(L, y++);
144
+ }
145
+ z.map = I;
146
+ function* E(m, _) {
147
+ let y = 0;
148
+ for (let L of m) yield* _(L, y++);
149
+ }
150
+ z.flatMap = E;
151
+ function* S(...m) {
152
+ for (let _ of m) yield* _;
153
+ }
154
+ z.concat = S;
155
+ function D(m, _, y) {
156
+ let L = y;
157
+ for (let X of m) L = _(L, X);
158
+ return L;
159
+ }
160
+ z.reduce = D;
161
+ function* x(m, _, y = m.length) {
162
+ for (_ < 0 && (_ += m.length), y < 0 ? y += m.length : y > m.length && (y = m.length); _ < y; _++) yield m[_];
163
+ }
164
+ z.slice = x;
165
+ function J(m, _ = Number.POSITIVE_INFINITY) {
166
+ let y = [];
167
+ if (_ === 0) return [y, m];
168
+ let L = m[Symbol.iterator]();
169
+ for (let X = 0; X < _; X++) {
170
+ let Se = L.next();
171
+ if (Se.done) return [y, z.empty()];
172
+ y.push(Se.value);
173
+ }
174
+ return [y, { [Symbol.iterator]() {
175
+ return L;
176
+ } }];
177
+ }
178
+ z.consume = J;
179
+ async function q(m) {
180
+ let _ = [];
181
+ for await (let y of m) _.push(y);
182
+ return Promise.resolve(_);
183
+ }
184
+ z.asyncToArray = q;
185
+ })(Le ||= {});
186
+ function pe(r4) {
187
+ return r4;
188
+ }
189
+ function te(r4, e) {
190
+ }
191
+ function Q(r4) {
192
+ if (Le.is(r4)) {
193
+ let e = [];
194
+ for (let t of r4) if (t) try {
195
+ t.dispose();
196
+ } catch (n) {
197
+ e.push(n);
198
+ }
199
+ if (e.length === 1) throw e[0];
200
+ if (e.length > 1) throw new AggregateError(e, "Encountered errors while disposing of store");
201
+ return Array.isArray(r4) ? [] : r4;
202
+ } else if (r4) return r4.dispose(), r4;
203
+ }
204
+ function me(...r4) {
205
+ let e = A(() => Q(r4));
206
+ return e;
207
+ }
208
+ function A(r4) {
209
+ let e = pe({ dispose: Pe(() => {
210
+ r4();
211
+ }) });
212
+ return e;
213
+ }
214
+ var he = class he2 {
215
+ constructor() {
216
+ this._toDispose = /* @__PURE__ */ new Set();
217
+ this._isDisposed = false;
218
+ }
219
+ dispose() {
220
+ this._isDisposed || (this._isDisposed = true, this.clear());
221
+ }
222
+ get isDisposed() {
223
+ return this._isDisposed;
224
+ }
225
+ clear() {
226
+ if (this._toDispose.size !== 0) try {
227
+ Q(this._toDispose);
228
+ } finally {
229
+ this._toDispose.clear();
230
+ }
231
+ }
232
+ add(e) {
233
+ if (!e) return e;
234
+ if (e === this) throw new Error("Cannot register a disposable on itself!");
235
+ return this._isDisposed ? he2.DISABLE_DISPOSED_WARNING || console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack) : this._toDispose.add(e), e;
236
+ }
237
+ delete(e) {
238
+ if (e) {
239
+ if (e === this) throw new Error("Cannot dispose a disposable on itself!");
240
+ this._toDispose.delete(e), e.dispose();
241
+ }
242
+ }
243
+ deleteAndLeak(e) {
244
+ e && this._toDispose.has(e) && (this._toDispose.delete(e), te());
245
+ }
246
+ };
247
+ he.DISABLE_DISPOSED_WARNING = false;
248
+ var H = he, k = class {
249
+ constructor() {
250
+ this._store = new H();
251
+ te(this._store);
252
+ }
253
+ dispose() {
254
+ this._store.dispose();
255
+ }
256
+ _register(e) {
257
+ if (e === this) throw new Error("Cannot register a disposable on itself!");
258
+ return this._store.add(e);
259
+ }
260
+ };
261
+ k.None = Object.freeze({ dispose() {
262
+ } });
263
+ var F = class {
264
+ constructor() {
265
+ this._isDisposed = false;
266
+ }
267
+ get value() {
268
+ return this._isDisposed ? void 0 : this._value;
269
+ }
270
+ set value(e) {
271
+ this._isDisposed || e === this._value || (this._value?.dispose(), this._value = e);
272
+ }
273
+ clear() {
274
+ this.value = void 0;
275
+ }
276
+ dispose() {
277
+ this._isDisposed = true, this._value?.dispose(), this._value = void 0;
278
+ }
279
+ clearAndLeak() {
280
+ let e = this._value;
281
+ return this._value = void 0, e;
282
+ }
283
+ };
284
+ var _t = globalThis.performance && typeof globalThis.performance.now == "function", Te = class r2 {
285
+ static create(e) {
286
+ return new r2(e);
287
+ }
288
+ constructor(e) {
289
+ this._now = _t && e === false ? Date.now : globalThis.performance.now.bind(globalThis.performance), this._startTime = this._now(), this._stopTime = -1;
290
+ }
291
+ stop() {
292
+ this._stopTime = this._now();
293
+ }
294
+ reset() {
295
+ this._startTime = this._now(), this._stopTime = -1;
296
+ }
297
+ elapsed() {
298
+ return this._stopTime !== -1 ? this._stopTime - this._startTime : this._now() - this._startTime;
299
+ }
300
+ };
301
+ var ie;
302
+ ((re) => {
303
+ re.None = () => k.None;
304
+ function t(d, o) {
305
+ return I(d, () => {
306
+ }, 0, void 0, true, void 0, o);
307
+ }
308
+ re.defer = t;
309
+ function n(d) {
310
+ return (o, c = null, l) => {
311
+ let f = false, b;
312
+ return b = d((g) => {
313
+ if (!f) return b ? b.dispose() : f = true, o.call(c, g);
314
+ }, null, l), f && b.dispose(), b;
315
+ };
316
+ }
317
+ re.once = n;
318
+ function i(d, o, c) {
319
+ return T((l, f = null, b) => d((g) => l.call(f, o(g)), null, b), c);
320
+ }
321
+ re.map = i;
322
+ function s(d, o, c) {
323
+ return T((l, f = null, b) => d((g) => {
324
+ o(g), l.call(f, g);
325
+ }, null, b), c);
326
+ }
327
+ re.forEach = s;
328
+ function a(d, o, c) {
329
+ return T((l, f = null, b) => d((g) => o(g) && l.call(f, g), null, b), c);
330
+ }
331
+ re.filter = a;
332
+ function h(d) {
333
+ return d;
334
+ }
335
+ re.signal = h;
336
+ function u(...d) {
337
+ return (o, c = null, l) => {
338
+ let f = me(...d.map((b) => b((g) => o.call(c, g))));
339
+ return v(f, l);
340
+ };
341
+ }
342
+ re.any = u;
343
+ function p(d, o, c, l) {
344
+ let f = c;
345
+ return i(d, (b) => (f = o(f, b), f), l);
346
+ }
347
+ re.reduce = p;
348
+ function T(d, o) {
349
+ let c, l = { onWillAddFirstListener() {
350
+ c = d(f.fire, f);
351
+ }, onDidRemoveLastListener() {
352
+ c?.dispose();
353
+ } };
354
+ let f = new C(l);
355
+ return o?.add(f), f.event;
356
+ }
357
+ function v(d, o) {
358
+ return o instanceof Array ? o.push(d) : o && o.add(d), d;
359
+ }
360
+ function I(d, o, c = 100, l = false, f = false, b, g) {
361
+ let w, R, U, se = 0, Z, Ve = { leakWarningThreshold: b, onWillAddFirstListener() {
362
+ w = d((dt) => {
363
+ se++, R = o(R, dt), l && !U && (oe.fire(R), R = void 0), Z = () => {
364
+ let ht = R;
365
+ R = void 0, U = void 0, (!l || se > 1) && oe.fire(ht), se = 0;
366
+ }, typeof c == "number" ? (clearTimeout(U), U = setTimeout(Z, c)) : U === void 0 && (U = 0, queueMicrotask(Z));
367
+ });
368
+ }, onWillRemoveListener() {
369
+ f && se > 0 && Z?.();
370
+ }, onDidRemoveLastListener() {
371
+ Z = void 0, w.dispose();
372
+ } };
373
+ let oe = new C(Ve);
374
+ return g?.add(oe), oe.event;
375
+ }
376
+ re.debounce = I;
377
+ function E(d, o = 0, c) {
378
+ return re.debounce(d, (l, f) => l ? (l.push(f), l) : [f], o, void 0, true, void 0, c);
379
+ }
380
+ re.accumulate = E;
381
+ function S(d, o = (l, f) => l === f, c) {
382
+ let l = true, f;
383
+ return a(d, (b) => {
384
+ let g = l || !o(b, f);
385
+ return l = false, f = b, g;
386
+ }, c);
387
+ }
388
+ re.latch = S;
389
+ function D(d, o, c) {
390
+ return [re.filter(d, o, c), re.filter(d, (l) => !o(l), c)];
391
+ }
392
+ re.split = D;
393
+ function x(d, o = false, c = [], l) {
394
+ let f = c.slice(), b = d((R) => {
395
+ f ? f.push(R) : w.fire(R);
396
+ });
397
+ l && l.add(b);
398
+ let g = () => {
399
+ f?.forEach((R) => w.fire(R)), f = null;
400
+ }, w = new C({ onWillAddFirstListener() {
401
+ b || (b = d((R) => w.fire(R)), l && l.add(b));
402
+ }, onDidAddFirstListener() {
403
+ f && (o ? setTimeout(g) : g());
404
+ }, onDidRemoveLastListener() {
405
+ b && b.dispose(), b = null;
406
+ } });
407
+ return l && l.add(w), w.event;
408
+ }
409
+ re.buffer = x;
410
+ function J(d, o) {
411
+ return (l, f, b) => {
412
+ let g = o(new z());
413
+ return d(function(w) {
414
+ let R = g.evaluate(w);
415
+ R !== q && l.call(f, R);
416
+ }, void 0, b);
417
+ };
418
+ }
419
+ re.chain = J;
420
+ let q = /* @__PURE__ */ Symbol("HaltChainable");
421
+ class z {
422
+ constructor() {
423
+ this.steps = [];
424
+ }
425
+ map(o) {
426
+ return this.steps.push(o), this;
427
+ }
428
+ forEach(o) {
429
+ return this.steps.push((c) => (o(c), c)), this;
430
+ }
431
+ filter(o) {
432
+ return this.steps.push((c) => o(c) ? c : q), this;
433
+ }
434
+ reduce(o, c) {
435
+ let l = c;
436
+ return this.steps.push((f) => (l = o(l, f), l)), this;
437
+ }
438
+ latch(o = (c, l) => c === l) {
439
+ let c = true, l;
440
+ return this.steps.push((f) => {
441
+ let b = c || !o(f, l);
442
+ return c = false, l = f, b ? f : q;
443
+ }), this;
444
+ }
445
+ evaluate(o) {
446
+ for (let c of this.steps) if (o = c(o), o === q) break;
447
+ return o;
448
+ }
449
+ }
450
+ function m(d, o, c = (l) => l) {
451
+ let l = (...w) => g.fire(c(...w)), f = () => d.on(o, l), b = () => d.removeListener(o, l), g = new C({ onWillAddFirstListener: f, onDidRemoveLastListener: b });
452
+ return g.event;
453
+ }
454
+ re.fromNodeEventEmitter = m;
455
+ function _(d, o, c = (l) => l) {
456
+ let l = (...w) => g.fire(c(...w)), f = () => d.addEventListener(o, l), b = () => d.removeEventListener(o, l), g = new C({ onWillAddFirstListener: f, onDidRemoveLastListener: b });
457
+ return g.event;
458
+ }
459
+ re.fromDOMEventEmitter = _;
460
+ function y(d) {
461
+ return new Promise((o) => n(d)(o));
462
+ }
463
+ re.toPromise = y;
464
+ function L(d) {
465
+ let o = new C();
466
+ return d.then((c) => {
467
+ o.fire(c);
468
+ }, () => {
469
+ o.fire(void 0);
470
+ }).finally(() => {
471
+ o.dispose();
472
+ }), o.event;
473
+ }
474
+ re.fromPromise = L;
475
+ function X(d, o) {
476
+ return d((c) => o.fire(c));
477
+ }
478
+ re.forward = X;
479
+ function Se(d, o, c) {
480
+ return o(c), d((l) => o(l));
481
+ }
482
+ re.runAndSubscribe = Se;
483
+ class ct {
484
+ constructor(o, c) {
485
+ this._observable = o;
486
+ this._counter = 0;
487
+ this._hasChanged = false;
488
+ let l = { onWillAddFirstListener: () => {
489
+ o.addObserver(this);
490
+ }, onDidRemoveLastListener: () => {
491
+ o.removeObserver(this);
492
+ } };
493
+ this.emitter = new C(l), c && c.add(this.emitter);
494
+ }
495
+ beginUpdate(o) {
496
+ this._counter++;
497
+ }
498
+ handlePossibleChange(o) {
499
+ }
500
+ handleChange(o, c) {
501
+ this._hasChanged = true;
502
+ }
503
+ endUpdate(o) {
504
+ this._counter--, this._counter === 0 && (this._observable.reportChanges(), this._hasChanged && (this._hasChanged = false, this.emitter.fire(this._observable.get())));
505
+ }
506
+ }
507
+ function zt(d, o) {
508
+ return new ct(d, o).emitter.event;
509
+ }
510
+ re.fromObservable = zt;
511
+ function Ut(d) {
512
+ return (o, c, l) => {
513
+ let f = 0, b = false, g = { beginUpdate() {
514
+ f++;
515
+ }, endUpdate() {
516
+ f--, f === 0 && (d.reportChanges(), b && (b = false, o.call(c)));
517
+ }, handlePossibleChange() {
518
+ }, handleChange() {
519
+ b = true;
520
+ } };
521
+ d.addObserver(g), d.reportChanges();
522
+ let w = { dispose() {
523
+ d.removeObserver(g);
524
+ } };
525
+ return l instanceof H ? l.add(w) : Array.isArray(l) && l.push(w), w;
526
+ };
527
+ }
528
+ re.fromObservableLight = Ut;
529
+ })(ie ||= {});
530
+ var B = class B2 {
531
+ constructor(e) {
532
+ this.listenerCount = 0;
533
+ this.invocationCount = 0;
534
+ this.elapsedOverall = 0;
535
+ this.durations = [];
536
+ this.name = `${e}_${B2._idPool++}`, B2.all.add(this);
537
+ }
538
+ start(e) {
539
+ this._stopWatch = new Te(), this.listenerCount = e;
540
+ }
541
+ stop() {
542
+ if (this._stopWatch) {
543
+ let e = this._stopWatch.elapsed();
544
+ this.durations.push(e), this.elapsedOverall += e, this.invocationCount += 1, this._stopWatch = void 0;
545
+ }
546
+ }
547
+ };
548
+ B.all = /* @__PURE__ */ new Set(), B._idPool = 0;
549
+ var Oe = B, nt = -1;
550
+ var be = class be2 {
551
+ constructor(e, t, n = (be2._idPool++).toString(16).padStart(3, "0")) {
552
+ this._errorHandler = e;
553
+ this.threshold = t;
554
+ this.name = n;
555
+ this._warnCountdown = 0;
556
+ }
557
+ dispose() {
558
+ this._stacks?.clear();
559
+ }
560
+ check(e, t) {
561
+ let n = this.threshold;
562
+ if (n <= 0 || t < n) return;
563
+ this._stacks || (this._stacks = /* @__PURE__ */ new Map());
564
+ let i = this._stacks.get(e.value) || 0;
565
+ if (this._stacks.set(e.value, i + 1), this._warnCountdown -= 1, this._warnCountdown <= 0) {
566
+ this._warnCountdown = n * 0.5;
567
+ let [s, a] = this.getMostFrequentStack(), h = `[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${a}):`;
568
+ console.warn(h), console.warn(s);
569
+ let u = new Me(h, s);
570
+ this._errorHandler(u);
571
+ }
572
+ return () => {
573
+ let s = this._stacks.get(e.value) || 0;
574
+ this._stacks.set(e.value, s - 1);
575
+ };
576
+ }
577
+ getMostFrequentStack() {
578
+ if (!this._stacks) return;
579
+ let e, t = 0;
580
+ for (let [n, i] of this._stacks) (!e || t < i) && (e = [n, i], t = i);
581
+ return e;
582
+ }
583
+ };
584
+ be._idPool = 1;
585
+ var Ae = be, ne = class r3 {
586
+ constructor(e) {
587
+ this.value = e;
588
+ }
589
+ static create() {
590
+ let e = new Error();
591
+ return new r3(e.stack ?? "");
592
+ }
593
+ print() {
594
+ console.warn(this.value.split(`
595
+ `).slice(2).join(`
596
+ `));
597
+ }
598
+ }, Me = class extends Error {
599
+ constructor(e, t) {
600
+ super(e), this.name = "ListenerLeakError", this.stack = t;
601
+ }
602
+ }, Fe = class extends Error {
603
+ constructor(e, t) {
604
+ super(e), this.name = "ListenerRefusalError", this.stack = t;
605
+ }
606
+ }, xt = 0, G = class {
607
+ constructor(e) {
608
+ this.value = e;
609
+ this.id = xt++;
610
+ }
611
+ }, It = 2, ve;
612
+ var C = class {
613
+ constructor(e) {
614
+ this._size = 0;
615
+ this._options = e, this._leakageMon = this._options?.leakWarningThreshold ? new Ae(e?.onListenerError ?? le, this._options?.leakWarningThreshold ?? nt) : void 0, this._perfMon = this._options?._profName ? new Oe(this._options._profName) : void 0, this._deliveryQueue = this._options?.deliveryQueue;
616
+ }
617
+ dispose() {
618
+ if (!this._disposed) {
619
+ if (this._disposed = true, this._deliveryQueue?.current === this && this._deliveryQueue.reset(), this._listeners) {
620
+ this._listeners = void 0, this._size = 0;
621
+ }
622
+ this._options?.onDidRemoveLastListener?.(), this._leakageMon?.dispose();
623
+ }
624
+ }
625
+ get event() {
626
+ return this._event ??= (e, t, n) => {
627
+ if (this._leakageMon && this._size > this._leakageMon.threshold ** 2) {
628
+ let u = `[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;
629
+ console.warn(u);
630
+ let p = this._leakageMon.getMostFrequentStack() ?? ["UNKNOWN stack", -1], T = new Fe(`${u}. HINT: Stack shows most frequent listener (${p[1]}-times)`, p[0]);
631
+ return (this._options?.onListenerError || le)(T), k.None;
632
+ }
633
+ if (this._disposed) return k.None;
634
+ t && (e = e.bind(t));
635
+ let i = new G(e), s;
636
+ this._leakageMon && this._size >= Math.ceil(this._leakageMon.threshold * 0.2) && (i.stack = ne.create(), s = this._leakageMon.check(i.stack, this._size + 1)), this._listeners ? this._listeners instanceof G ? (this._deliveryQueue ??= new Ne(), this._listeners = [this._listeners, i]) : this._listeners.push(i) : (this._options?.onWillAddFirstListener?.(this), this._listeners = i, this._options?.onDidAddFirstListener?.(this)), this._size++;
637
+ let h = A(() => {
638
+ s?.(), this._removeListener(i);
639
+ });
640
+ if (n instanceof H ? n.add(h) : Array.isArray(n) && n.push(h), ve) ;
641
+ return h;
642
+ }, this._event;
643
+ }
644
+ _removeListener(e) {
645
+ if (this._options?.onWillRemoveListener?.(this), !this._listeners) return;
646
+ if (this._size === 1) {
647
+ this._listeners = void 0, this._options?.onDidRemoveLastListener?.(this), this._size = 0;
648
+ return;
649
+ }
650
+ let t = this._listeners, n = t.indexOf(e);
651
+ if (n === -1) throw console.log("disposed?", this._disposed), console.log("size?", this._size), console.log("arr?", JSON.stringify(this._listeners)), new Error("Attempted to dispose unknown listener");
652
+ this._size--, t[n] = void 0;
653
+ let i = this._deliveryQueue.current === this;
654
+ if (this._size * It <= t.length) {
655
+ let s = 0;
656
+ for (let a = 0; a < t.length; a++) t[a] ? t[s++] = t[a] : i && (this._deliveryQueue.end--, s < this._deliveryQueue.i && this._deliveryQueue.i--);
657
+ t.length = s;
658
+ }
659
+ }
660
+ _deliver(e, t) {
661
+ if (!e) return;
662
+ let n = this._options?.onListenerError || le;
663
+ if (!n) {
664
+ e.value(t);
665
+ return;
666
+ }
667
+ try {
668
+ e.value(t);
669
+ } catch (i) {
670
+ n(i);
671
+ }
672
+ }
673
+ _deliverQueue(e) {
674
+ let t = e.current._listeners;
675
+ for (; e.i < e.end; ) this._deliver(t[e.i++], e.value);
676
+ e.reset();
677
+ }
678
+ fire(e) {
679
+ if (this._deliveryQueue?.current && (this._deliverQueue(this._deliveryQueue), this._perfMon?.stop()), this._perfMon?.start(this._size), this._listeners) if (this._listeners instanceof G) this._deliver(this._listeners, e);
680
+ else {
681
+ let t = this._deliveryQueue;
682
+ t.enqueue(this, e, this._listeners.length), this._deliverQueue(t);
683
+ }
684
+ this._perfMon?.stop();
685
+ }
686
+ hasListeners() {
687
+ return this._size > 0;
688
+ }
689
+ };
690
+ var Ne = class {
691
+ constructor() {
692
+ this.i = -1;
693
+ this.end = 0;
694
+ }
695
+ enqueue(e, t, n) {
696
+ this.i = 0, this.end = n, this.current = e, this.value = t;
697
+ }
698
+ reset() {
699
+ this.i = this.end, this.current = void 0, this.value = void 0;
700
+ }
701
+ };
702
+ var it = Object.freeze(function(r4, e) {
703
+ let t = setTimeout(r4.bind(e), 0);
704
+ return { dispose() {
705
+ clearTimeout(t);
706
+ } };
707
+ }), Et;
708
+ ((n) => {
709
+ function r4(i) {
710
+ return i === n.None || i === n.Cancelled || i instanceof We ? true : !i || typeof i != "object" ? false : typeof i.isCancellationRequested == "boolean" && typeof i.onCancellationRequested == "function";
711
+ }
712
+ n.isCancellationToken = r4, n.None = Object.freeze({ isCancellationRequested: false, onCancellationRequested: ie.None }), n.Cancelled = Object.freeze({ isCancellationRequested: true, onCancellationRequested: it });
713
+ })(Et ||= {});
714
+ var We = class {
715
+ constructor() {
716
+ this._isCancelled = false;
717
+ this._emitter = null;
718
+ }
719
+ cancel() {
720
+ this._isCancelled || (this._isCancelled = true, this._emitter && (this._emitter.fire(void 0), this.dispose()));
721
+ }
722
+ get isCancellationRequested() {
723
+ return this._isCancelled;
724
+ }
725
+ get onCancellationRequested() {
726
+ return this._isCancelled ? it : (this._emitter || (this._emitter = new C()), this._emitter.event);
727
+ }
728
+ dispose() {
729
+ this._emitter && (this._emitter.dispose(), this._emitter = null);
730
+ }
731
+ };
732
+ var Y = "en", ge = false, _e, ye = Y, rt = Y, Lt, N, W = globalThis, O;
733
+ typeof W.vscode < "u" && typeof W.vscode.process < "u" ? O = W.vscode.process : typeof process < "u" && typeof process?.versions?.node == "string" && (O = process);
734
+ var ot = typeof O?.versions?.electron == "string", Ot = ot && O?.type === "renderer";
735
+ if (typeof O == "object") {
736
+ O.platform === "win32", O.platform === "darwin", ge = O.platform === "linux", ge && !!O.env.SNAP && !!O.env.SNAP_REVISION, !!O.env.CI || !!O.env.BUILD_ARTIFACTSTAGINGDIRECTORY, _e = Y, ye = Y;
737
+ let r4 = O.env.VSCODE_NLS_CONFIG;
738
+ if (r4) try {
739
+ let e = JSON.parse(r4);
740
+ _e = e.userLocale, rt = e.osLocale, ye = e.resolvedLanguage || Y, Lt = e.languagePack?.translationsConfigFile;
741
+ } catch {
742
+ }
743
+ } else typeof navigator == "object" && !Ot ? (N = navigator.userAgent, N.indexOf("Windows") >= 0, N.indexOf("Macintosh") >= 0, (N.indexOf("Macintosh") >= 0 || N.indexOf("iPad") >= 0 || N.indexOf("iPhone") >= 0) && !!navigator.maxTouchPoints && navigator.maxTouchPoints > 0, ge = N.indexOf("Linux") >= 0, N?.indexOf("Mobi") >= 0, ye = globalThis._VSCODE_NLS_LANGUAGE || Y, _e = navigator.language.toLowerCase(), rt = _e) : console.error("Unable to resolve platform.");
744
+ var M = N, j = ye, Mt;
745
+ ((n) => {
746
+ function r4() {
747
+ return j;
748
+ }
749
+ n.value = r4;
750
+ function e() {
751
+ return j.length === 2 ? j === "en" : j.length >= 3 ? j[0] === "e" && j[1] === "n" && j[2] === "-" : false;
752
+ }
753
+ n.isDefaultVariant = e;
754
+ function t() {
755
+ return j === "en";
756
+ }
757
+ n.isDefault = t;
758
+ })(Mt ||= {});
759
+ var Ft = typeof W.postMessage == "function" && !W.importScripts;
760
+ (() => {
761
+ if (Ft) {
762
+ let r4 = [];
763
+ W.addEventListener("message", (t) => {
764
+ if (t.data && t.data.vscodeScheduleAsyncWork) for (let n = 0, i = r4.length; n < i; n++) {
765
+ let s = r4[n];
766
+ if (s.id === t.data.vscodeScheduleAsyncWork) {
767
+ r4.splice(n, 1), s.callback();
768
+ return;
769
+ }
770
+ }
771
+ });
772
+ let e = 0;
773
+ return (t) => {
774
+ let n = ++e;
775
+ r4.push({ id: n, callback: t }), W.postMessage({ vscodeScheduleAsyncWork: n }, "*");
776
+ };
777
+ }
778
+ return (r4) => setTimeout(r4);
779
+ })();
780
+ var Nt = !!(M && M.indexOf("Chrome") >= 0);
781
+ !!(M && M.indexOf("Firefox") >= 0);
782
+ !!(!Nt && M && M.indexOf("Safari") >= 0);
783
+ !!(M && M.indexOf("Edg/") >= 0);
784
+ !!(M && M.indexOf("Android") >= 0);
785
+ function xe(r4, e = 0, t) {
786
+ let n = setTimeout(() => {
787
+ r4();
788
+ }, e), i = A(() => {
789
+ clearTimeout(n);
790
+ });
791
+ return i;
792
+ }
793
+ var qt;
794
+ ((t) => {
795
+ async function r4(n) {
796
+ let i, s = await Promise.all(n.map((a) => a.then((h) => h, (h) => {
797
+ i || (i = h);
798
+ })));
799
+ if (typeof i < "u") throw i;
800
+ return s;
801
+ }
802
+ t.settled = r4;
803
+ function e(n) {
804
+ return new Promise(async (i, s) => {
805
+ try {
806
+ await n(i, s);
807
+ } catch (a) {
808
+ s(a);
809
+ }
810
+ });
811
+ }
812
+ t.withAsyncBody = e;
813
+ })(qt ||= {});
814
+ var P = class P2 {
815
+ static fromArray(e) {
816
+ return new P2((t) => {
817
+ t.emitMany(e);
818
+ });
819
+ }
820
+ static fromPromise(e) {
821
+ return new P2(async (t) => {
822
+ t.emitMany(await e);
823
+ });
824
+ }
825
+ static fromPromises(e) {
826
+ return new P2(async (t) => {
827
+ await Promise.all(e.map(async (n) => t.emitOne(await n)));
828
+ });
829
+ }
830
+ static merge(e) {
831
+ return new P2(async (t) => {
832
+ await Promise.all(e.map(async (n) => {
833
+ for await (let i of n) t.emitOne(i);
834
+ }));
835
+ });
836
+ }
837
+ constructor(e, t) {
838
+ this._state = 0, this._results = [], this._error = null, this._onReturn = t, this._onStateChanged = new C(), queueMicrotask(async () => {
839
+ let n = { emitOne: (i) => this.emitOne(i), emitMany: (i) => this.emitMany(i), reject: (i) => this.reject(i) };
840
+ try {
841
+ await Promise.resolve(e(n)), this.resolve();
842
+ } catch (i) {
843
+ this.reject(i);
844
+ } finally {
845
+ n.emitOne = void 0, n.emitMany = void 0, n.reject = void 0;
846
+ }
847
+ });
848
+ }
849
+ [Symbol.asyncIterator]() {
850
+ let e = 0;
851
+ return { next: async () => {
852
+ do {
853
+ if (this._state === 2) throw this._error;
854
+ if (e < this._results.length) return { done: false, value: this._results[e++] };
855
+ if (this._state === 1) return { done: true, value: void 0 };
856
+ await ie.toPromise(this._onStateChanged.event);
857
+ } while (true);
858
+ }, return: async () => (this._onReturn?.(), { done: true, value: void 0 }) };
859
+ }
860
+ static map(e, t) {
861
+ return new P2(async (n) => {
862
+ for await (let i of e) n.emitOne(t(i));
863
+ });
864
+ }
865
+ map(e) {
866
+ return P2.map(this, e);
867
+ }
868
+ static filter(e, t) {
869
+ return new P2(async (n) => {
870
+ for await (let i of e) t(i) && n.emitOne(i);
871
+ });
872
+ }
873
+ filter(e) {
874
+ return P2.filter(this, e);
875
+ }
876
+ static coalesce(e) {
877
+ return P2.filter(e, (t) => !!t);
878
+ }
879
+ coalesce() {
880
+ return P2.coalesce(this);
881
+ }
882
+ static async toPromise(e) {
883
+ let t = [];
884
+ for await (let n of e) t.push(n);
885
+ return t;
886
+ }
887
+ toPromise() {
888
+ return P2.toPromise(this);
889
+ }
890
+ emitOne(e) {
891
+ this._state === 0 && (this._results.push(e), this._onStateChanged.fire());
892
+ }
893
+ emitMany(e) {
894
+ this._state === 0 && (this._results = this._results.concat(e), this._onStateChanged.fire());
895
+ }
896
+ resolve() {
897
+ this._state === 0 && (this._state = 1, this._onStateChanged.fire());
898
+ }
899
+ reject(e) {
900
+ this._state === 0 && (this._state = 2, this._error = e, this._onStateChanged.fire());
901
+ }
902
+ };
903
+ P.EMPTY = P.fromArray([]);
904
+ var Ie = class extends k {
905
+ constructor(t) {
906
+ super();
907
+ this._terminal = t;
908
+ this._linesCacheTimeout = this._register(new F());
909
+ this._linesCacheDisposables = this._register(new F());
910
+ this._register(A(() => this._destroyLinesCache()));
911
+ }
912
+ initLinesCache() {
913
+ this._linesCache || (this._linesCache = new Array(this._terminal.buffer.active.length), this._linesCacheDisposables.value = me(this._terminal.onLineFeed(() => this._destroyLinesCache()), this._terminal.onCursorMove(() => this._destroyLinesCache()), this._terminal.onResize(() => this._destroyLinesCache()))), this._linesCacheTimeout.value = xe(() => this._destroyLinesCache(), 15e3);
914
+ }
915
+ _destroyLinesCache() {
916
+ this._linesCache = void 0, this._linesCacheDisposables.clear(), this._linesCacheTimeout.clear();
917
+ }
918
+ getLineFromCache(t) {
919
+ return this._linesCache?.[t];
920
+ }
921
+ setLineInCache(t, n) {
922
+ this._linesCache && (this._linesCache[t] = n);
923
+ }
924
+ translateBufferLineToStringWithWrap(t, n) {
925
+ let i = [], s = [0], a = this._terminal.buffer.active.getLine(t);
926
+ for (; a; ) {
927
+ let h = this._terminal.buffer.active.getLine(t + 1), u = h ? h.isWrapped : false, p = a.translateToString(!u && n);
928
+ if (u && h) {
929
+ let T = a.getCell(a.length - 1);
930
+ T && T.getCode() === 0 && T.getWidth() === 1 && h.getCell(0)?.getWidth() === 2 && (p = p.slice(0, -1));
931
+ }
932
+ if (i.push(p), u) s.push(s[s.length - 1] + p.length);
933
+ else break;
934
+ t++, a = h;
935
+ }
936
+ return [i.join(""), s];
937
+ }
938
+ };
939
+ var De = class {
940
+ get cachedSearchTerm() {
941
+ return this._cachedSearchTerm;
942
+ }
943
+ set cachedSearchTerm(e) {
944
+ this._cachedSearchTerm = e;
945
+ }
946
+ get lastSearchOptions() {
947
+ return this._lastSearchOptions;
948
+ }
949
+ set lastSearchOptions(e) {
950
+ this._lastSearchOptions = e;
951
+ }
952
+ isValidSearchTerm(e) {
953
+ return !!(e && e.length > 0);
954
+ }
955
+ didOptionsChange(e) {
956
+ return this._lastSearchOptions ? e ? this._lastSearchOptions.caseSensitive !== e.caseSensitive || this._lastSearchOptions.regex !== e.regex || this._lastSearchOptions.wholeWord !== e.wholeWord : false : true;
957
+ }
958
+ shouldUpdateHighlighting(e, t) {
959
+ return t?.decorations ? this._cachedSearchTerm === void 0 || e !== this._cachedSearchTerm || this.didOptionsChange(t) : false;
960
+ }
961
+ clearCachedTerm() {
962
+ this._cachedSearchTerm = void 0;
963
+ }
964
+ reset() {
965
+ this._cachedSearchTerm = void 0, this._lastSearchOptions = void 0;
966
+ }
967
+ };
968
+ var Ee = class {
969
+ constructor(e, t) {
970
+ this._terminal = e;
971
+ this._lineCache = t;
972
+ }
973
+ find(e, t, n, i) {
974
+ if (!e || e.length === 0) {
975
+ this._terminal.clearSelection();
976
+ return;
977
+ }
978
+ if (n > this._terminal.cols) throw new Error(`Invalid col: ${n} to search in terminal of ${this._terminal.cols} cols`);
979
+ this._lineCache.initLinesCache();
980
+ let s = { startRow: t, startCol: n }, a = this._findInLine(e, s, i);
981
+ if (!a) for (let h = t + 1; h < this._terminal.buffer.active.baseY + this._terminal.rows && (s.startRow = h, s.startCol = 0, a = this._findInLine(e, s, i), !a); h++) ;
982
+ return a;
983
+ }
984
+ findNextWithSelection(e, t, n) {
985
+ if (!e || e.length === 0) {
986
+ this._terminal.clearSelection();
987
+ return;
988
+ }
989
+ let i = this._terminal.getSelectionPosition();
990
+ this._terminal.clearSelection();
991
+ let s = 0, a = 0;
992
+ i && (n === e ? (s = i.end.x, a = i.end.y) : (s = i.start.x, a = i.start.y)), this._lineCache.initLinesCache();
993
+ let h = { startRow: a, startCol: s }, u = this._findInLine(e, h, t);
994
+ if (!u) for (let p = a + 1; p < this._terminal.buffer.active.baseY + this._terminal.rows && (h.startRow = p, h.startCol = 0, u = this._findInLine(e, h, t), !u); p++) ;
995
+ if (!u && a !== 0) for (let p = 0; p < a && (h.startRow = p, h.startCol = 0, u = this._findInLine(e, h, t), !u); p++) ;
996
+ return !u && i && (h.startRow = i.start.y, h.startCol = 0, u = this._findInLine(e, h, t)), u;
997
+ }
998
+ findPreviousWithSelection(e, t, n) {
999
+ if (!e || e.length === 0) {
1000
+ this._terminal.clearSelection();
1001
+ return;
1002
+ }
1003
+ let i = this._terminal.getSelectionPosition();
1004
+ this._terminal.clearSelection();
1005
+ let s = this._terminal.buffer.active.baseY + this._terminal.rows - 1, a = this._terminal.cols, h = true;
1006
+ this._lineCache.initLinesCache();
1007
+ let u = { startRow: s, startCol: a }, p;
1008
+ if (i && (u.startRow = s = i.start.y, u.startCol = a = i.start.x, n !== e && (p = this._findInLine(e, u, t, false), p || (u.startRow = s = i.end.y, u.startCol = a = i.end.x))), p || (p = this._findInLine(e, u, t, h)), !p) {
1009
+ u.startCol = Math.max(u.startCol, this._terminal.cols);
1010
+ for (let T = s - 1; T >= 0 && (u.startRow = T, p = this._findInLine(e, u, t, h), !p); T--) ;
1011
+ }
1012
+ if (!p && s !== this._terminal.buffer.active.baseY + this._terminal.rows - 1) for (let T = this._terminal.buffer.active.baseY + this._terminal.rows - 1; T >= s && (u.startRow = T, p = this._findInLine(e, u, t, h), !p); T--) ;
1013
+ return p;
1014
+ }
1015
+ _isWholeWord(e, t, n) {
1016
+ return (e === 0 || " ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(t[e - 1])) && (e + n.length === t.length || " ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(t[e + n.length]));
1017
+ }
1018
+ _findInLine(e, t, n = {}, i = false) {
1019
+ let s = t.startRow, a = t.startCol;
1020
+ if (this._terminal.buffer.active.getLine(s)?.isWrapped) {
1021
+ if (i) {
1022
+ t.startCol += this._terminal.cols;
1023
+ return;
1024
+ }
1025
+ return t.startRow--, t.startCol += this._terminal.cols, this._findInLine(e, t, n);
1026
+ }
1027
+ let u = this._lineCache.getLineFromCache(s);
1028
+ u || (u = this._lineCache.translateBufferLineToStringWithWrap(s, true), this._lineCache.setLineInCache(s, u));
1029
+ let [p, T] = u, v = this._bufferColsToStringOffset(s, a), I = e, E = p;
1030
+ n.regex || (I = n.caseSensitive ? e : e.toLowerCase(), E = n.caseSensitive ? p : p.toLowerCase());
1031
+ let S = -1;
1032
+ if (n.regex) {
1033
+ let D = RegExp(I, n.caseSensitive ? "g" : "gi"), x;
1034
+ if (i) for (; x = D.exec(E.slice(0, v)); ) S = D.lastIndex - x[0].length, e = x[0], D.lastIndex -= e.length - 1;
1035
+ else x = D.exec(E.slice(v)), x && x[0].length > 0 && (S = v + (D.lastIndex - x[0].length), e = x[0]);
1036
+ } else i ? v - I.length >= 0 && (S = E.lastIndexOf(I, v - I.length)) : S = E.indexOf(I, v);
1037
+ if (S >= 0) {
1038
+ if (n.wholeWord && !this._isWholeWord(S, E, e)) return;
1039
+ let D = 0;
1040
+ for (; D < T.length - 1 && S >= T[D + 1]; ) D++;
1041
+ let x = D;
1042
+ for (; x < T.length - 1 && S + e.length >= T[x + 1]; ) x++;
1043
+ let J = S - T[D], q = S + e.length - T[x], z = this._stringLengthToBufferSize(s + D, J), _ = this._stringLengthToBufferSize(s + x, q) - z + this._terminal.cols * (x - D);
1044
+ return { term: e, col: z, row: s + D, size: _ };
1045
+ }
1046
+ }
1047
+ _stringLengthToBufferSize(e, t) {
1048
+ let n = this._terminal.buffer.active.getLine(e);
1049
+ if (!n) return 0;
1050
+ for (let i = 0; i < t; i++) {
1051
+ let s = n.getCell(i);
1052
+ if (!s) break;
1053
+ let a = s.getChars();
1054
+ a.length > 1 && (t -= a.length - 1);
1055
+ let h = n.getCell(i + 1);
1056
+ h && h.getWidth() === 0 && t++;
1057
+ }
1058
+ return t;
1059
+ }
1060
+ _bufferColsToStringOffset(e, t) {
1061
+ let n = e, i = 0, s = this._terminal.buffer.active.getLine(n);
1062
+ for (; t > 0 && s; ) {
1063
+ for (let a = 0; a < t && a < this._terminal.cols; a++) {
1064
+ let h = s.getCell(a);
1065
+ if (!h) break;
1066
+ h.getWidth() && (i += h.getCode() === 0 ? 1 : h.getChars().length);
1067
+ }
1068
+ if (n++, s = this._terminal.buffer.active.getLine(n), s && !s.isWrapped) break;
1069
+ t -= this._terminal.cols;
1070
+ }
1071
+ return i;
1072
+ }
1073
+ };
1074
+ var we = class extends k {
1075
+ constructor(t) {
1076
+ super();
1077
+ this._terminal = t;
1078
+ this._highlightDecorations = [];
1079
+ this._highlightedLines = /* @__PURE__ */ new Set();
1080
+ this._register(A(() => this.clearHighlightDecorations()));
1081
+ }
1082
+ createHighlightDecorations(t, n) {
1083
+ this.clearHighlightDecorations();
1084
+ for (let i of t) {
1085
+ let s = this._createResultDecorations(i, n, false);
1086
+ if (s) for (let a of s) this._storeDecoration(a, i);
1087
+ }
1088
+ }
1089
+ createActiveDecoration(t, n) {
1090
+ let i = this._createResultDecorations(t, n, true);
1091
+ if (i) return { decorations: i, match: t, dispose() {
1092
+ Q(i);
1093
+ } };
1094
+ }
1095
+ clearHighlightDecorations() {
1096
+ Q(this._highlightDecorations), this._highlightDecorations = [], this._highlightedLines.clear();
1097
+ }
1098
+ _storeDecoration(t, n) {
1099
+ this._highlightedLines.add(t.marker.line), this._highlightDecorations.push({ decoration: t, match: n, dispose() {
1100
+ t.dispose();
1101
+ } });
1102
+ }
1103
+ _applyStyles(t, n, i) {
1104
+ t.classList.contains("xterm-find-result-decoration") || (t.classList.add("xterm-find-result-decoration"), n && (t.style.outline = `1px solid ${n}`)), i && t.classList.add("xterm-find-active-result-decoration");
1105
+ }
1106
+ _createResultDecorations(t, n, i) {
1107
+ let s = [], a = t.col, h = t.size, u = -this._terminal.buffer.active.baseY - this._terminal.buffer.active.cursorY + t.row;
1108
+ for (; h > 0; ) {
1109
+ let T = Math.min(this._terminal.cols - a, h);
1110
+ s.push([u, a, T]), a = 0, h -= T, u++;
1111
+ }
1112
+ let p = [];
1113
+ for (let T of s) {
1114
+ let v = this._terminal.registerMarker(T[0]), I = this._terminal.registerDecoration({ marker: v, x: T[1], width: T[2], backgroundColor: i ? n.activeMatchBackground : n.matchBackground, overviewRulerOptions: this._highlightedLines.has(v.line) ? void 0 : { color: i ? n.activeMatchColorOverviewRuler : n.matchOverviewRuler, position: "center" } });
1115
+ if (I) {
1116
+ let E = [];
1117
+ E.push(v), E.push(I.onRender((S) => this._applyStyles(S, i ? n.activeMatchBorder : n.matchBorder, false))), E.push(I.onDispose(() => Q(E))), p.push(I);
1118
+ }
1119
+ }
1120
+ return p.length === 0 ? void 0 : p;
1121
+ }
1122
+ };
1123
+ var ke = class extends k {
1124
+ constructor() {
1125
+ super(...arguments);
1126
+ this._searchResults = [];
1127
+ this._onDidChangeResults = this._register(new C());
1128
+ }
1129
+ get onDidChangeResults() {
1130
+ return this._onDidChangeResults.event;
1131
+ }
1132
+ get searchResults() {
1133
+ return this._searchResults;
1134
+ }
1135
+ get selectedDecoration() {
1136
+ return this._selectedDecoration;
1137
+ }
1138
+ set selectedDecoration(t) {
1139
+ this._selectedDecoration = t;
1140
+ }
1141
+ updateResults(t, n) {
1142
+ this._searchResults = t.slice(0, n);
1143
+ }
1144
+ clearResults() {
1145
+ this._searchResults = [];
1146
+ }
1147
+ clearSelectedDecoration() {
1148
+ this._selectedDecoration && (this._selectedDecoration.dispose(), this._selectedDecoration = void 0);
1149
+ }
1150
+ findResultIndex(t) {
1151
+ for (let n = 0; n < this._searchResults.length; n++) {
1152
+ let i = this._searchResults[n];
1153
+ if (i.row === t.row && i.col === t.col && i.size === t.size) return n;
1154
+ }
1155
+ return -1;
1156
+ }
1157
+ fireResultsChanged(t) {
1158
+ if (!t) return;
1159
+ let n = -1;
1160
+ this._selectedDecoration && (n = this.findResultIndex(this._selectedDecoration.match)), this._onDidChangeResults.fire({ resultIndex: n, resultCount: this._searchResults.length });
1161
+ }
1162
+ reset() {
1163
+ this.clearSelectedDecoration(), this.clearResults();
1164
+ }
1165
+ };
1166
+ var ut = class extends k {
1167
+ constructor(t) {
1168
+ super();
1169
+ this._highlightTimeout = this._register(new F());
1170
+ this._lineCache = this._register(new F());
1171
+ this._state = new De();
1172
+ this._resultTracker = this._register(new ke());
1173
+ this._highlightLimit = t?.highlightLimit ?? 1e3;
1174
+ }
1175
+ get onDidChangeResults() {
1176
+ return this._resultTracker.onDidChangeResults;
1177
+ }
1178
+ activate(t) {
1179
+ this._terminal = t, this._lineCache.value = new Ie(t), this._engine = new Ee(t, this._lineCache.value), this._decorationManager = new we(t), this._register(this._terminal.onWriteParsed(() => this._updateMatches())), this._register(this._terminal.onResize(() => this._updateMatches())), this._register(A(() => this.clearDecorations()));
1180
+ }
1181
+ _updateMatches() {
1182
+ this._highlightTimeout.clear(), this._state.cachedSearchTerm && this._state.lastSearchOptions?.decorations && (this._highlightTimeout.value = xe(() => {
1183
+ let t = this._state.cachedSearchTerm;
1184
+ this._state.clearCachedTerm(), this.findPrevious(t, { ...this._state.lastSearchOptions, incremental: true }, { noScroll: true });
1185
+ }, 200));
1186
+ }
1187
+ clearDecorations(t) {
1188
+ this._resultTracker.clearSelectedDecoration(), this._decorationManager?.clearHighlightDecorations(), this._resultTracker.clearResults(), t || this._state.clearCachedTerm();
1189
+ }
1190
+ clearActiveDecoration() {
1191
+ this._resultTracker.clearSelectedDecoration();
1192
+ }
1193
+ findNext(t, n, i) {
1194
+ if (!this._terminal || !this._engine) throw new Error("Cannot use addon until it has been loaded");
1195
+ this._state.lastSearchOptions = n, this._state.shouldUpdateHighlighting(t, n) && this._highlightAllMatches(t, n);
1196
+ let s = this._findNextAndSelect(t, n, i);
1197
+ return this._fireResults(n), this._state.cachedSearchTerm = t, s;
1198
+ }
1199
+ _highlightAllMatches(t, n) {
1200
+ if (!this._terminal || !this._engine || !this._decorationManager) throw new Error("Cannot use addon until it has been loaded");
1201
+ if (!this._state.isValidSearchTerm(t)) {
1202
+ this.clearDecorations();
1203
+ return;
1204
+ }
1205
+ this.clearDecorations(true);
1206
+ let i = [], s, a = this._engine.find(t, 0, 0, n);
1207
+ for (; a && (s?.row !== a.row || s?.col !== a.col) && !(i.length >= this._highlightLimit); ) s = a, i.push(s), a = this._engine.find(t, s.col + s.term.length >= this._terminal.cols ? s.row + 1 : s.row, s.col + s.term.length >= this._terminal.cols ? 0 : s.col + 1, n);
1208
+ this._resultTracker.updateResults(i, this._highlightLimit), n.decorations && this._decorationManager.createHighlightDecorations(i, n.decorations);
1209
+ }
1210
+ _findNextAndSelect(t, n, i) {
1211
+ if (!this._terminal || !this._engine) return false;
1212
+ if (!this._state.isValidSearchTerm(t)) return this._terminal.clearSelection(), this.clearDecorations(), false;
1213
+ let s = this._engine.findNextWithSelection(t, n, this._state.cachedSearchTerm);
1214
+ return this._selectResult(s, n?.decorations, i?.noScroll);
1215
+ }
1216
+ findPrevious(t, n, i) {
1217
+ if (!this._terminal || !this._engine) throw new Error("Cannot use addon until it has been loaded");
1218
+ this._state.lastSearchOptions = n, this._state.shouldUpdateHighlighting(t, n) && this._highlightAllMatches(t, n);
1219
+ let s = this._findPreviousAndSelect(t, n, i);
1220
+ return this._fireResults(n), this._state.cachedSearchTerm = t, s;
1221
+ }
1222
+ _fireResults(t) {
1223
+ this._resultTracker.fireResultsChanged(!!t?.decorations);
1224
+ }
1225
+ _findPreviousAndSelect(t, n, i) {
1226
+ if (!this._terminal || !this._engine) return false;
1227
+ if (!this._state.isValidSearchTerm(t)) return this._terminal.clearSelection(), this.clearDecorations(), false;
1228
+ let s = this._engine.findPreviousWithSelection(t, n, this._state.cachedSearchTerm);
1229
+ return this._selectResult(s, n?.decorations, i?.noScroll);
1230
+ }
1231
+ _selectResult(t, n, i) {
1232
+ if (!this._terminal || !this._decorationManager) return false;
1233
+ if (this._resultTracker.clearSelectedDecoration(), !t) return this._terminal.clearSelection(), false;
1234
+ if (this._terminal.select(t.col, t.row, t.size), n) {
1235
+ let s = this._decorationManager.createActiveDecoration(t, n);
1236
+ s && (this._resultTracker.selectedDecoration = s);
1237
+ }
1238
+ if (!i && (t.row >= this._terminal.buffer.active.viewportY + this._terminal.rows || t.row < this._terminal.buffer.active.viewportY)) {
1239
+ let s = t.row - this._terminal.buffer.active.viewportY;
1240
+ s -= Math.floor(this._terminal.rows / 2), this._terminal.scrollLines(s);
1241
+ }
1242
+ return true;
1243
+ }
1244
+ };
1245
+ export {
1246
+ ut as SearchAddon
1247
+ };