@dylanpiercey/work 0.2.48 → 0.2.49

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 (485) hide show
  1. package/dist/{_iWCuQEee.js → _BVxo8CnP.js} +83 -83
  2. package/dist/_BnWG6rtQ.js +2 -0
  3. package/dist/{_zCoTsfRF.js → _COh2mFI4.js} +67 -29
  4. package/dist/{_6uHpLALm.js → _C_X3CIMQ.js} +6 -3
  5. package/dist/_Xb4YHZBO.js +2 -0
  6. package/dist/index.mjs +668 -668
  7. package/dist/public/assets/_1z2-iL5Z.js +1 -0
  8. package/dist/public/assets/{_CNjwezbX.js → _3emlJGWP.js} +1 -1
  9. package/dist/public/assets/_3emlJGWP.js.br +0 -0
  10. package/dist/public/assets/_5N39W_E8.js +1 -0
  11. package/dist/public/assets/{_DpYeIDyg.js → _5amQ7cfb.js} +1 -1
  12. package/dist/public/assets/{_Bo3QlN9G.js → _8tcXPNgY.js} +1 -1
  13. package/dist/public/assets/_8tcXPNgY.js.br +0 -0
  14. package/dist/public/assets/{_BH-zg3I6.js → _B0c6AzJ1.js} +1 -1
  15. package/dist/public/assets/_B0c6AzJ1.js.br +0 -0
  16. package/dist/public/assets/_B2M-S4H5.js +1 -0
  17. package/dist/public/assets/{_Jj7ByQbu.js → _B2rr-EUw.js} +1 -1
  18. package/dist/public/assets/_B2rr-EUw.js.br +0 -0
  19. package/dist/public/assets/_B3Rih4WN.js +1 -0
  20. package/dist/public/assets/{_CRVlcmWk.js → _B6fe6gs2.js} +1 -1
  21. package/dist/public/assets/_B6fe6gs2.js.br +0 -0
  22. package/dist/public/assets/{_BASYqPoc.js → _B9nFDeUl.js} +1 -1
  23. package/dist/public/assets/_B9nFDeUl.js.br +0 -0
  24. package/dist/public/assets/{_BSJpm3-x.js → _BAXQh-do.js} +1 -1
  25. package/dist/public/assets/_BAXQh-do.js.br +0 -0
  26. package/dist/public/assets/{_CLbAt5rV.js → _BBjF9HhR.js} +1 -1
  27. package/dist/public/assets/_BBjF9HhR.js.br +0 -0
  28. package/dist/public/assets/_BCVFhsBw.js +1 -0
  29. package/dist/public/assets/_BD4dDSwg.js +1 -0
  30. package/dist/public/assets/_BDS3KHNT.js +1 -0
  31. package/dist/public/assets/_BE1HXnba.js +1 -0
  32. package/dist/public/assets/{_2kai1RSP.js → _BFHFjK9E.js} +1 -1
  33. package/dist/public/assets/_BFHFjK9E.js.br +0 -0
  34. package/dist/public/assets/_BNaQPpD2.js +1 -0
  35. package/dist/public/assets/{_DdygzgXe.js → _BNx-hqba.js} +1 -1
  36. package/dist/public/assets/_BNx-hqba.js.br +0 -0
  37. package/dist/public/assets/_BQWJqhoU.js +1 -0
  38. package/dist/public/assets/{_D5l17O1N.js → _BRgYIAAS.js} +1 -1
  39. package/dist/public/assets/_BRgYIAAS.js.br +0 -0
  40. package/dist/public/assets/_BSAjsRj6.js +1 -0
  41. package/dist/public/assets/_BS_ayoFP.js +1 -0
  42. package/dist/public/assets/_BT2YeLHF.js +1 -0
  43. package/dist/public/assets/_BV0ywbyt.js +1 -0
  44. package/dist/public/assets/{_DfA7VYNl.js → _BV5tOasc.js} +1 -1
  45. package/dist/public/assets/_BV5tOasc.js.br +0 -0
  46. package/dist/public/assets/{_DNpkUnbz.js → _BW_bt5_R.js} +1 -1
  47. package/dist/public/assets/_BW_bt5_R.js.br +0 -0
  48. package/dist/public/assets/{_BzWMfyBP.js → _BWgfWBQY.js} +1 -1
  49. package/dist/public/assets/_BWgfWBQY.js.br +0 -0
  50. package/dist/public/assets/_BXcRI7KW.js +1 -0
  51. package/dist/public/assets/{_CfGwruWS.js → _BZi_bSvW.js} +1 -1
  52. package/dist/public/assets/_BZi_bSvW.js.br +0 -0
  53. package/dist/public/assets/_Ba2SeqUW.js +1 -0
  54. package/dist/public/assets/{_-Nj5zW8F.js → _BbPnvx9I.js} +1 -1
  55. package/dist/public/assets/_BbPnvx9I.js.br +0 -0
  56. package/dist/public/assets/{_CPg1lmj3.js → _BbrRWzs_.js} +1 -1
  57. package/dist/public/assets/_BbrRWzs_.js.br +0 -0
  58. package/dist/public/assets/{_LY6ByOJ5.js → _BeNTBjq2.js} +1 -1
  59. package/dist/public/assets/_BeNTBjq2.js.br +0 -0
  60. package/dist/public/assets/_Bg6FN_F-.js +1 -0
  61. package/dist/public/assets/{_DXI1zmfL.js → _BgtgOxLF.js} +1 -1
  62. package/dist/public/assets/_BgtgOxLF.js.br +0 -0
  63. package/dist/public/assets/{_BfFD59AT.js → _BiZ5JMx_.js} +1 -1
  64. package/dist/public/assets/{_2mjRp7MT.js → _Bk1xjwxl.js} +1 -1
  65. package/dist/public/assets/_Bk1xjwxl.js.br +0 -0
  66. package/dist/public/assets/_Bl4X7hI-.js +1 -0
  67. package/dist/public/assets/_BnzaOTsf.js +1 -0
  68. package/dist/public/assets/{_BVXM5wtC.js → _Bo0jSt4a.js} +1 -1
  69. package/dist/public/assets/_Bo0jSt4a.js.br +0 -0
  70. package/dist/public/assets/_BoQrvtxI.js +1 -0
  71. package/dist/public/assets/{_CbR_zzHJ.js → _BrP0KGgJ.js} +1 -1
  72. package/dist/public/assets/_BrP0KGgJ.js.br +0 -0
  73. package/dist/public/assets/_BrbRf1ea.js +1 -0
  74. package/dist/public/assets/_BsWnbgST.js +1 -0
  75. package/dist/public/assets/{_NoX1bfAd.js → _BtH1Ogsg.js} +1 -1
  76. package/dist/public/assets/_BtH1Ogsg.js.br +0 -0
  77. package/dist/public/assets/{_DCWjjw4Y.js → _BxqN0nog.js} +1 -1
  78. package/dist/public/assets/_BxqN0nog.js.br +0 -0
  79. package/dist/public/assets/{_DFnPS0tD.js → _C-N7dMV3.js} +1 -1
  80. package/dist/public/assets/_C0I6GpB-.js +1 -0
  81. package/dist/public/assets/{_CedenwBl.js → _C3eRn6xE.js} +1 -1
  82. package/dist/public/assets/_C3eRn6xE.js.br +0 -0
  83. package/dist/public/assets/{_kiYWJc7C.js → _C4TSdcNR.js} +2 -2
  84. package/dist/public/assets/_C4TSdcNR.js.br +0 -0
  85. package/dist/public/assets/{_BmAwQmhW.js → _C4bP3-Xd.js} +1 -1
  86. package/dist/public/assets/_C4bP3-Xd.js.br +0 -0
  87. package/dist/public/assets/{_CtBimvHs.js → _C6BVPB9F.js} +1 -1
  88. package/dist/public/assets/_C6BVPB9F.js.br +0 -0
  89. package/dist/public/assets/_C6RytXsE.js +1 -0
  90. package/dist/public/assets/{_36LvHWL1.js → _C7NW-inT.js} +1 -1
  91. package/dist/public/assets/_C7NW-inT.js.br +0 -0
  92. package/dist/public/assets/{_B14xBYaB.js → _C7SbFOD0.js} +1 -1
  93. package/dist/public/assets/_C7SbFOD0.js.br +0 -0
  94. package/dist/public/assets/_C7ywhU9n.js +1 -0
  95. package/dist/public/assets/{_B97SZ1vV.js → _CACJF4d1.js} +1 -1
  96. package/dist/public/assets/_CACJF4d1.js.br +0 -0
  97. package/dist/public/assets/{_DKsijIgb.js → _CAVuh3_b.js} +1 -1
  98. package/dist/public/assets/_CAVuh3_b.js.br +0 -0
  99. package/dist/public/assets/_CBtqmUZj.js +1 -0
  100. package/dist/public/assets/_CDNRMRMf.js +1 -0
  101. package/dist/public/assets/{_Ts89DJof.js → _CEjHHowc.js} +1 -1
  102. package/dist/public/assets/_CEjHHowc.js.br +0 -0
  103. package/dist/public/assets/{_BcTHYcTG.js → _CGF0X63U.js} +1 -1
  104. package/dist/public/assets/_CGF0X63U.js.br +0 -0
  105. package/dist/public/assets/_CGJg8MMP.js +1 -0
  106. package/dist/public/assets/{_DtDl5ReC.js → _CKozisGs.js} +1 -1
  107. package/dist/public/assets/_CKozisGs.js.br +0 -0
  108. package/dist/public/assets/{_DpWhhOeD.js → _CLu-CniV.js} +1 -1
  109. package/dist/public/assets/_CLu-CniV.js.br +0 -0
  110. package/dist/public/assets/{_CVRwNQM1.js → _CMzMlA_o.js} +1 -1
  111. package/dist/public/assets/_CMzMlA_o.js.br +0 -0
  112. package/dist/public/assets/{_DXehootA.js → _CQ6O_Nb1.js} +1 -1
  113. package/dist/public/assets/_CQ6O_Nb1.js.br +0 -0
  114. package/dist/public/assets/{_BPGpubVJ.js → _CS2QhAoC.js} +5 -5
  115. package/dist/public/assets/_CS2QhAoC.js.br +0 -0
  116. package/dist/public/assets/_CSIYpD5N.js +1 -0
  117. package/dist/public/assets/_CTDEkjdU.js +1 -0
  118. package/dist/public/assets/_CThIFYwp.js +1 -0
  119. package/dist/public/assets/_C_IX4b2W.js +1 -0
  120. package/dist/public/assets/{_BMM7JRbU.js → _CaHptU9r.js} +1 -1
  121. package/dist/public/assets/_CaHptU9r.js.br +0 -0
  122. package/dist/public/assets/{_BgU7EQAl.js → _CcqbP_l7.js} +1 -1
  123. package/dist/public/assets/{_qi4o9PeV.js → _Cd2qprUC.js} +1 -1
  124. package/dist/public/assets/_Cd2qprUC.js.br +0 -0
  125. package/dist/public/assets/{_D8ETneVJ.js → _CfLFc8Un.js} +1 -1
  126. package/dist/public/assets/_CfLFc8Un.js.br +0 -0
  127. package/dist/public/assets/_ChERLo-s.js +1 -0
  128. package/dist/public/assets/{_C4D3zKNl.js → _Cj6SEB8c.js} +1 -1
  129. package/dist/public/assets/_Cj6SEB8c.js.br +0 -0
  130. package/dist/public/assets/_CjHkH0L3.js +1 -0
  131. package/dist/public/assets/{_DiNn1SDD.js → _CjVI_edE.js} +1 -1
  132. package/dist/public/assets/_CjVI_edE.js.br +0 -0
  133. package/dist/public/assets/_Ckhk3z_U.js +1 -0
  134. package/dist/public/assets/{_DZynXz2u.js → _ClOfmz8Z.js} +1 -1
  135. package/dist/public/assets/_ClOfmz8Z.js.br +0 -0
  136. package/dist/public/assets/_Cq-gvvqr.js +1 -0
  137. package/dist/public/assets/{_dlFAIyz3.js → _CtJxOdxu.js} +5 -5
  138. package/dist/public/assets/_CtJxOdxu.js.br +0 -0
  139. package/dist/public/assets/_CuN4vcEQ.js +1 -0
  140. package/dist/public/assets/{_rLFL1L0R.js → _CuV9oVP-.js} +1 -1
  141. package/dist/public/assets/_CuV9oVP-.js.br +0 -0
  142. package/dist/public/assets/{_C8eLJhOd.js → _CwivKHW_.js} +2 -2
  143. package/dist/public/assets/_CwivKHW_.js.br +0 -0
  144. package/dist/public/assets/{_BXGUui-t.js → _CyJ0drJ_.js} +1 -1
  145. package/dist/public/assets/_CyJ0drJ_.js.br +0 -0
  146. package/dist/public/assets/{_ONuujxzI.js → _CzfSIiXq.js} +1 -1
  147. package/dist/public/assets/_CzfSIiXq.js.br +0 -0
  148. package/dist/public/assets/_D11S6UcI.js +1 -0
  149. package/dist/public/assets/_D1DjshLq.js +1 -0
  150. package/dist/public/assets/{_DUTbn3Ft.js → _D1toUk2-.js} +1 -1
  151. package/dist/public/assets/_D1toUk2-.js.br +0 -0
  152. package/dist/public/assets/{_BdBEKbIB.js → _D2JF-4Nd.js} +1 -1
  153. package/dist/public/assets/_D2JF-4Nd.js.br +0 -0
  154. package/dist/public/assets/_D2bLKedm.js +1 -0
  155. package/dist/public/assets/_D5oFG9wt.js +1 -0
  156. package/dist/public/assets/_D7-B0CuT.js +1 -0
  157. package/dist/public/assets/_D7wthGbV.js +1 -0
  158. package/dist/public/assets/{_VPSJ-e28.js → _D89CyLSd.js} +1 -1
  159. package/dist/public/assets/_D89CyLSd.js.br +0 -0
  160. package/dist/public/assets/_D9NVr7rx.js +1 -0
  161. package/dist/public/assets/_DB0s6AJH.js +1 -0
  162. package/dist/public/assets/{_ChMlKSWb.js → _DCAqomRE.js} +8 -8
  163. package/dist/public/assets/_DCAqomRE.js.br +0 -0
  164. package/dist/public/assets/{_BswmT17c.js → _DDN6Rd_E.js} +1 -1
  165. package/dist/public/assets/_DDN6Rd_E.js.br +0 -0
  166. package/dist/public/assets/{_BInOKyib.js → _DDTjrK2-.js} +1 -1
  167. package/dist/public/assets/_DDTjrK2-.js.br +0 -0
  168. package/dist/public/assets/{_DpwrJY_O.js → _DEXfKL6f.js} +1 -1
  169. package/dist/public/assets/_DEXfKL6f.js.br +0 -0
  170. package/dist/public/assets/{_BX-IGd_q.js → _DEzbgqKR.js} +1 -1
  171. package/dist/public/assets/_DEzbgqKR.js.br +0 -0
  172. package/dist/public/assets/_DG0RJ5vy.js +1 -0
  173. package/dist/public/assets/{_DPSLRh_A.js → _DG2zLheb.js} +1 -1
  174. package/dist/public/assets/_DG2zLheb.js.br +0 -0
  175. package/dist/public/assets/{_D3vlcPj9.js → _DI7R16QX.js} +1 -1
  176. package/dist/public/assets/_DI7R16QX.js.br +0 -0
  177. package/dist/public/assets/_DJLn3HhH.js +1 -0
  178. package/dist/public/assets/{_CK9qLbVQ.js → _DM3gPAvW.js} +1 -1
  179. package/dist/public/assets/_DM3gPAvW.js.br +0 -0
  180. package/dist/public/assets/_DMAsi_Bg.js +1 -0
  181. package/dist/public/assets/{_CbfAAGTC.js → _DR2a4wlP.js} +1 -1
  182. package/dist/public/assets/_DR2a4wlP.js.br +0 -0
  183. package/dist/public/assets/{_B6ZD8CEr.js → _DRE1DSRw.js} +1 -1
  184. package/dist/public/assets/_DRE1DSRw.js.br +0 -0
  185. package/dist/public/assets/{_D95jOBVI.js → _DRoK_6_S.js} +1 -1
  186. package/dist/public/assets/_DRoK_6_S.js.br +0 -0
  187. package/dist/public/assets/_DSY6ChHM.js +1 -0
  188. package/dist/public/assets/_DSaLOqlN.js +1 -0
  189. package/dist/public/assets/_DSlEOG3H.js +1 -0
  190. package/dist/public/assets/{_DVP9ac11.js → _DTLowvUz.js} +4 -4
  191. package/dist/public/assets/_DTLowvUz.js.br +0 -0
  192. package/dist/public/assets/_DW4WpGh_.js +1 -0
  193. package/dist/public/assets/{_BnNePzwO.js → _DXtsyE5y.js} +1 -1
  194. package/dist/public/assets/_DXtsyE5y.js.br +0 -0
  195. package/dist/public/assets/_DY2khN_b.js +1 -0
  196. package/dist/public/assets/_DZAf_H3l.js +1 -0
  197. package/dist/public/assets/_D_HGYiCK.js +1 -0
  198. package/dist/public/assets/{_1UeK3_I3.js → _D_QiENqj.js} +1 -1
  199. package/dist/public/assets/_D_QiENqj.js.br +0 -0
  200. package/dist/public/assets/_DcU6GTXI.js +1 -0
  201. package/dist/public/assets/_DcrO52et.js +1 -0
  202. package/dist/public/assets/{_Bo4HVd6u.js → _DcyL5rlt.js} +1 -1
  203. package/dist/public/assets/_DcyL5rlt.js.br +0 -0
  204. package/dist/public/assets/{_B5CtnMac.js → _DdfXa4yR.js} +1 -1
  205. package/dist/public/assets/_DdfXa4yR.js.br +0 -0
  206. package/dist/public/assets/{_lIYdu4th.js → _De2t6cM5.js} +1 -1
  207. package/dist/public/assets/{_CGHu_6u9.js → _Dh__smpK.js} +1 -1
  208. package/dist/public/assets/_Dh__smpK.js.br +0 -0
  209. package/dist/public/assets/_DhxMan9N.js +1 -0
  210. package/dist/public/assets/{_xHxBxsv8.js → _DjoH33bd.js} +1 -1
  211. package/dist/public/assets/_DjoH33bd.js.br +6 -0
  212. package/dist/public/assets/_DkjySSOj.js +1 -0
  213. package/dist/public/assets/_DkxDrKnI.js +1 -0
  214. package/dist/public/assets/_DoqK4Cws.js +1 -0
  215. package/dist/public/assets/{_mK22Ory8.js → _DpJPjr73.js} +1 -1
  216. package/dist/public/assets/_DpJPjr73.js.br +0 -0
  217. package/dist/public/assets/{_D8xJShs2.js → _Ds4ncvjZ.js} +1 -1
  218. package/dist/public/assets/_Ds4ncvjZ.js.br +0 -0
  219. package/dist/public/assets/{_DfYkUx-1.js → _Ds9_gqJL.js} +1 -1
  220. package/dist/public/assets/_Ds9_gqJL.js.br +0 -0
  221. package/dist/public/assets/_DsTKZFvC.js +1 -0
  222. package/dist/public/assets/_DtKBfK0o.js +1 -0
  223. package/dist/public/assets/{_XQ5wGVWv.js → _Dv7aXRdy.js} +1 -1
  224. package/dist/public/assets/_Dv7aXRdy.js.br +0 -0
  225. package/dist/public/assets/_Dw24FkCV.js +1 -0
  226. package/dist/public/assets/{_BI5YAIF_.js → _DwR9qeL1.js} +1 -1
  227. package/dist/public/assets/_DwR9qeL1.js.br +0 -0
  228. package/dist/public/assets/_E4mAd0Xw.js +1 -0
  229. package/dist/public/assets/{_BSIdH9q7.js → _JlETeLNe.js} +1 -1
  230. package/dist/public/assets/_JlETeLNe.js.br +0 -0
  231. package/dist/public/assets/{_6cwD8LRP.js → _MIzJ6fp8.js} +1 -1
  232. package/dist/public/assets/_MIzJ6fp8.js.br +0 -0
  233. package/dist/public/assets/_MMLY21jM.js +1 -0
  234. package/dist/public/assets/_NBoB7SGv.js +1 -0
  235. package/dist/public/assets/{_DZZxsrWC.js → _NDTucrVG.js} +1 -1
  236. package/dist/public/assets/_NDTucrVG.js.br +0 -0
  237. package/dist/public/assets/{_CBxI8ntX.js → _NeNgJqf1.js} +1 -1
  238. package/dist/public/assets/_NeNgJqf1.js.br +0 -0
  239. package/dist/public/assets/_PNGbCjoA.js +1 -0
  240. package/dist/public/assets/_RIuYZOnn.js +1 -0
  241. package/dist/public/assets/{_CY1ZNuEr.js → _RNR6ytnK.js} +1 -1
  242. package/dist/public/assets/_RNR6ytnK.js.br +0 -0
  243. package/dist/public/assets/_RRmZvEik.js +1 -0
  244. package/dist/public/assets/{_D99NHHgt.js → _SYBSyW2K.js} +1 -1
  245. package/dist/public/assets/_SYBSyW2K.js.br +0 -0
  246. package/dist/public/assets/{_9XY9wTsj.js → _TGL13Gfw.js} +1 -1
  247. package/dist/public/assets/_TGL13Gfw.js.br +0 -0
  248. package/dist/public/assets/{_B-8S6DcE.js → _Tr1KOyF_.js} +1 -1
  249. package/dist/public/assets/_Tr1KOyF_.js.br +0 -0
  250. package/dist/public/assets/_UdjpqPE0.js +1 -0
  251. package/dist/public/assets/_UkO5zVUV.js +1 -0
  252. package/dist/public/assets/{_BVFPURNU.js → _VU88nHcV.js} +1 -1
  253. package/dist/public/assets/_VU88nHcV.js.br +0 -0
  254. package/dist/public/assets/_Y862TIZ9.js +1 -0
  255. package/dist/public/assets/_YUFL83f3.js +1 -0
  256. package/dist/public/assets/{_8rRNostk.js → _ZrPby9WV.js} +2 -2
  257. package/dist/public/assets/_ZrPby9WV.js.br +0 -0
  258. package/dist/public/assets/{_DWx9zhmy.js → __MqdIpmq.js} +1 -1
  259. package/dist/public/assets/__MqdIpmq.js.br +0 -0
  260. package/dist/public/assets/{_DmEMT_35.js → __UkxE9lk.js} +1 -1
  261. package/dist/public/assets/__UkxE9lk.js.br +0 -0
  262. package/dist/public/assets/_cRCPbWjd.js +1 -0
  263. package/dist/public/assets/{_DO74yYSh.js → _df2-rmC-.js} +1 -1
  264. package/dist/public/assets/_df2-rmC-.js.br +0 -0
  265. package/dist/public/assets/{_D7Rj0_sY.js → _feZupn0L.js} +1 -1
  266. package/dist/public/assets/_feZupn0L.js.br +0 -0
  267. package/dist/public/assets/{_B-w8Ak8h.js → _ffv-zgIG.js} +1 -1
  268. package/dist/public/assets/_ffv-zgIG.js.br +0 -0
  269. package/dist/public/assets/_gu-WneNr.js +1 -0
  270. package/dist/public/assets/_guUMsfVx.js +1 -0
  271. package/dist/public/assets/{_qtGVmCS3.js → _jolU98Yk.js} +1 -1
  272. package/dist/public/assets/_jolU98Yk.js.br +0 -0
  273. package/dist/public/assets/{_BV4ofELI.js → _kF_kYUFu.js} +1 -1
  274. package/dist/public/assets/_kF_kYUFu.js.br +0 -0
  275. package/dist/public/assets/_kr5fGp6E.js +1 -0
  276. package/dist/public/assets/{_D0QpW8Qp.js → _ll49IVbu.js} +1 -1
  277. package/dist/public/assets/_ll49IVbu.js.br +0 -0
  278. package/dist/public/assets/{_B2ZvcaQq.js → _pgQzUEgO.js} +1 -1
  279. package/dist/public/assets/_pgQzUEgO.js.br +0 -0
  280. package/dist/public/assets/_sZX82zlR.js +1 -0
  281. package/dist/public/assets/_xdwLgWOs.js +1 -0
  282. package/dist/public/assets/{_CPNiGZbP.js → _zhHmR8TS.js} +1 -1
  283. package/dist/public/assets/files-view-BxcuAzVh.js +2 -0
  284. package/dist/public/assets/manage-workspace-DqQ1b9fe.js +2 -0
  285. package/dist/public/assets/new-BO3GuM_R.js +1 -0
  286. package/dist/public/assets/new-workspace-B7Alup1I.js +2 -0
  287. package/dist/public/assets/review-view-RZaU_Lby.js +2 -0
  288. package/dist/public/assets/settings-BO3GuM_R.js +1 -0
  289. package/dist/public/assets/settings-page-CXOgbKp6.js +2 -0
  290. package/dist/public/assets/{styles-BoTOrHQr.css → styles-pNqSMRyA.css} +1 -1
  291. package/dist/public/assets/styles-pNqSMRyA.css.br +0 -0
  292. package/dist/public/assets/w-BO3GuM_R.js +1 -0
  293. package/dist/public/assets/w._-BO3GuM_R.js +1 -0
  294. package/dist/public/assets/w._-BTOaxr-0.js +1 -0
  295. package/dist/public/assets/w._-DnvJbi0t.js +1 -0
  296. package/package.json +1 -1
  297. package/dist/_BykUtWUu.js +0 -2
  298. package/dist/_ioxR2vcT.js +0 -2
  299. package/dist/public/assets/_-Nj5zW8F.js.br +0 -0
  300. package/dist/public/assets/_1UeK3_I3.js.br +0 -0
  301. package/dist/public/assets/_2kai1RSP.js.br +0 -0
  302. package/dist/public/assets/_2mjRp7MT.js.br +0 -0
  303. package/dist/public/assets/_36LvHWL1.js.br +0 -0
  304. package/dist/public/assets/_3Mc2dQLX.js +0 -1
  305. package/dist/public/assets/_6cwD8LRP.js.br +0 -0
  306. package/dist/public/assets/_8Fu4oVJl.js +0 -1
  307. package/dist/public/assets/_8rRNostk.js.br +0 -0
  308. package/dist/public/assets/_9XY9wTsj.js.br +0 -0
  309. package/dist/public/assets/_AJyGXUzY.js +0 -1
  310. package/dist/public/assets/_AoN72_MM.js +0 -1
  311. package/dist/public/assets/_B-8S6DcE.js.br +0 -0
  312. package/dist/public/assets/_B-w8Ak8h.js.br +0 -0
  313. package/dist/public/assets/_B0lZbp5n.js +0 -1
  314. package/dist/public/assets/_B14xBYaB.js.br +0 -0
  315. package/dist/public/assets/_B2ZvcaQq.js.br +0 -0
  316. package/dist/public/assets/_B3M04QrL.js +0 -1
  317. package/dist/public/assets/_B5CtnMac.js.br +0 -0
  318. package/dist/public/assets/_B6ZD8CEr.js.br +0 -0
  319. package/dist/public/assets/_B6jBzL7q.js +0 -1
  320. package/dist/public/assets/_B97SZ1vV.js.br +0 -0
  321. package/dist/public/assets/_B9d0YwzU.js +0 -1
  322. package/dist/public/assets/_BAEz4aKN.js +0 -1
  323. package/dist/public/assets/_BASYqPoc.js.br +0 -0
  324. package/dist/public/assets/_BCBhgmMb.js +0 -1
  325. package/dist/public/assets/_BH-zg3I6.js.br +0 -0
  326. package/dist/public/assets/_BI5YAIF_.js.br +0 -0
  327. package/dist/public/assets/_BIDnsXeC.js +0 -1
  328. package/dist/public/assets/_BInOKyib.js.br +0 -0
  329. package/dist/public/assets/_BJmKOI3M.js +0 -1
  330. package/dist/public/assets/_BMM7JRbU.js.br +0 -0
  331. package/dist/public/assets/_BPGpubVJ.js.br +0 -0
  332. package/dist/public/assets/_BQ2NItoU.js +0 -1
  333. package/dist/public/assets/_BSIdH9q7.js.br +0 -0
  334. package/dist/public/assets/_BSJpm3-x.js.br +0 -0
  335. package/dist/public/assets/_BTDz6TAH.js +0 -1
  336. package/dist/public/assets/_BV4ofELI.js.br +0 -0
  337. package/dist/public/assets/_BVFPURNU.js.br +0 -0
  338. package/dist/public/assets/_BVXM5wtC.js.br +0 -0
  339. package/dist/public/assets/_BVqWDYAf.js +0 -1
  340. package/dist/public/assets/_BWOPbcng.js +0 -1
  341. package/dist/public/assets/_BX-IGd_q.js.br +0 -0
  342. package/dist/public/assets/_BXGUui-t.js.br +0 -0
  343. package/dist/public/assets/_BbHfrzL6.js +0 -1
  344. package/dist/public/assets/_BcLO_eb2.js +0 -1
  345. package/dist/public/assets/_BcTHYcTG.js.br +0 -0
  346. package/dist/public/assets/_BdBEKbIB.js.br +0 -0
  347. package/dist/public/assets/_Bkisigzj.js +0 -1
  348. package/dist/public/assets/_BmAwQmhW.js.br +0 -0
  349. package/dist/public/assets/_BnM57KFV.js +0 -1
  350. package/dist/public/assets/_BnNePzwO.js.br +0 -0
  351. package/dist/public/assets/_Bo3QlN9G.js.br +0 -0
  352. package/dist/public/assets/_Bo4HVd6u.js.br +0 -0
  353. package/dist/public/assets/_BseEEizM.js +0 -1
  354. package/dist/public/assets/_BswmT17c.js.br +0 -0
  355. package/dist/public/assets/_BugcY8lC.js +0 -1
  356. package/dist/public/assets/_Bv08B8O_.js +0 -1
  357. package/dist/public/assets/_Bx4cfsD3.js +0 -1
  358. package/dist/public/assets/_By9GPcZU.js +0 -1
  359. package/dist/public/assets/_BzWMfyBP.js.br +0 -0
  360. package/dist/public/assets/_C4D3zKNl.js.br +0 -0
  361. package/dist/public/assets/_C8eLJhOd.js.br +0 -0
  362. package/dist/public/assets/_CAgLgemn.js +0 -1
  363. package/dist/public/assets/_CBxI8ntX.js.br +0 -0
  364. package/dist/public/assets/_CE-H8Sif.js +0 -1
  365. package/dist/public/assets/_CGHu_6u9.js.br +0 -0
  366. package/dist/public/assets/_CK9qLbVQ.js.br +0 -0
  367. package/dist/public/assets/_CLbAt5rV.js.br +0 -0
  368. package/dist/public/assets/_CN-VJHtn.js +0 -1
  369. package/dist/public/assets/_CNjwezbX.js.br +0 -0
  370. package/dist/public/assets/_CPg1lmj3.js.br +0 -0
  371. package/dist/public/assets/_CRVlcmWk.js.br +0 -0
  372. package/dist/public/assets/_CThQkm-3.js +0 -1
  373. package/dist/public/assets/_CVRwNQM1.js.br +0 -0
  374. package/dist/public/assets/_CVr-owWM.js +0 -1
  375. package/dist/public/assets/_CY1ZNuEr.js.br +0 -0
  376. package/dist/public/assets/_CYvZXHrk.js +0 -1
  377. package/dist/public/assets/_C_Y2W5KC.js +0 -1
  378. package/dist/public/assets/_CbR_zzHJ.js.br +0 -0
  379. package/dist/public/assets/_CbfAAGTC.js.br +0 -0
  380. package/dist/public/assets/_CedenwBl.js.br +0 -0
  381. package/dist/public/assets/_CfGwruWS.js.br +0 -0
  382. package/dist/public/assets/_ChMlKSWb.js.br +0 -0
  383. package/dist/public/assets/_CmnGkx9D.js +0 -1
  384. package/dist/public/assets/_CrXyJDAs.js +0 -1
  385. package/dist/public/assets/_CtBimvHs.js.br +0 -0
  386. package/dist/public/assets/_Cv1Mt_QJ.js +0 -1
  387. package/dist/public/assets/_D0N9rdtv.js +0 -1
  388. package/dist/public/assets/_D0QpW8Qp.js.br +0 -0
  389. package/dist/public/assets/_D0kRJngq.js +0 -1
  390. package/dist/public/assets/_D3vlcPj9.js.br +0 -0
  391. package/dist/public/assets/_D5l17O1N.js.br +0 -0
  392. package/dist/public/assets/_D7Rj0_sY.js.br +0 -0
  393. package/dist/public/assets/_D8ETneVJ.js.br +0 -0
  394. package/dist/public/assets/_D8xJShs2.js.br +0 -0
  395. package/dist/public/assets/_D95jOBVI.js.br +0 -0
  396. package/dist/public/assets/_D99NHHgt.js.br +0 -0
  397. package/dist/public/assets/_DA3uyEoz.js +0 -1
  398. package/dist/public/assets/_DBdotHIC.js +0 -1
  399. package/dist/public/assets/_DCWjjw4Y.js.br +0 -0
  400. package/dist/public/assets/_DEltwpRx.js +0 -1
  401. package/dist/public/assets/_DFQOS9ON.js +0 -1
  402. package/dist/public/assets/_DFX6Vcmc.js +0 -1
  403. package/dist/public/assets/_DHxkZsM0.js +0 -1
  404. package/dist/public/assets/_DKsijIgb.js.br +0 -0
  405. package/dist/public/assets/_DNpkUnbz.js.br +0 -0
  406. package/dist/public/assets/_DO74yYSh.js.br +0 -0
  407. package/dist/public/assets/_DPSLRh_A.js.br +0 -0
  408. package/dist/public/assets/_DRKbneIb.js +0 -1
  409. package/dist/public/assets/_DS-3iWdr.js +0 -1
  410. package/dist/public/assets/_DUTbn3Ft.js.br +0 -0
  411. package/dist/public/assets/_DVP9ac11.js.br +0 -0
  412. package/dist/public/assets/_DWc_J5Ah.js +0 -1
  413. package/dist/public/assets/_DWx9zhmy.js.br +0 -0
  414. package/dist/public/assets/_DXI1zmfL.js.br +0 -0
  415. package/dist/public/assets/_DXehootA.js.br +0 -0
  416. package/dist/public/assets/_DYBL8J1z.js +0 -1
  417. package/dist/public/assets/_DZ43Qynl.js +0 -1
  418. package/dist/public/assets/_DZZxsrWC.js.br +0 -0
  419. package/dist/public/assets/_DZynXz2u.js.br +0 -0
  420. package/dist/public/assets/_Da8Eecax.js +0 -1
  421. package/dist/public/assets/_DdHdpBxo.js +0 -1
  422. package/dist/public/assets/_DdygzgXe.js.br +0 -0
  423. package/dist/public/assets/_Df2INnHp.js +0 -1
  424. package/dist/public/assets/_DfA7VYNl.js.br +0 -0
  425. package/dist/public/assets/_DfBHP01p.js +0 -1
  426. package/dist/public/assets/_DfYkUx-1.js.br +0 -0
  427. package/dist/public/assets/_DhLCv_vx.js +0 -1
  428. package/dist/public/assets/_DiNn1SDD.js.br +0 -0
  429. package/dist/public/assets/_DlPWXxFW.js +0 -1
  430. package/dist/public/assets/_DmEMT_35.js.br +0 -0
  431. package/dist/public/assets/_Dn05oAGw.js +0 -1
  432. package/dist/public/assets/_DoqF6p2Q.js +0 -1
  433. package/dist/public/assets/_DpWhhOeD.js.br +0 -0
  434. package/dist/public/assets/_DpwrJY_O.js.br +0 -0
  435. package/dist/public/assets/_DtDl5ReC.js.br +0 -0
  436. package/dist/public/assets/_Dte2g7fK.js +0 -1
  437. package/dist/public/assets/_DxRkQ5u-.js +0 -1
  438. package/dist/public/assets/_FG1gGarT.js +0 -1
  439. package/dist/public/assets/_JZb20Njz.js +0 -1
  440. package/dist/public/assets/_Jj7ByQbu.js.br +0 -0
  441. package/dist/public/assets/_KLE8dFQ-.js +0 -1
  442. package/dist/public/assets/_LWiGu1fp.js +0 -1
  443. package/dist/public/assets/_LY6ByOJ5.js.br +0 -0
  444. package/dist/public/assets/_NXxaDE99.js +0 -1
  445. package/dist/public/assets/_NoX1bfAd.js.br +0 -0
  446. package/dist/public/assets/_ONuujxzI.js.br +0 -0
  447. package/dist/public/assets/_Q8pCCIKx.js +0 -1
  448. package/dist/public/assets/_Ts89DJof.js.br +0 -0
  449. package/dist/public/assets/_UKkcl_bt.js +0 -1
  450. package/dist/public/assets/_VPSJ-e28.js.br +0 -0
  451. package/dist/public/assets/_XQ5wGVWv.js.br +0 -0
  452. package/dist/public/assets/_Z8lAN6AC.js +0 -1
  453. package/dist/public/assets/_Z9Ea1UD8.js +0 -1
  454. package/dist/public/assets/_b99nZyd1.js +0 -1
  455. package/dist/public/assets/_cxxTHI11.js +0 -1
  456. package/dist/public/assets/_dlFAIyz3.js.br +0 -0
  457. package/dist/public/assets/_fAprFT_r.js +0 -1
  458. package/dist/public/assets/_jgozU8JZ.js +0 -1
  459. package/dist/public/assets/_kiYWJc7C.js.br +0 -0
  460. package/dist/public/assets/_mK22Ory8.js.br +0 -0
  461. package/dist/public/assets/_pYl_rxCu.js +0 -1
  462. package/dist/public/assets/_pzl5tFYo.js +0 -1
  463. package/dist/public/assets/_qi4o9PeV.js.br +0 -0
  464. package/dist/public/assets/_qtGVmCS3.js.br +0 -0
  465. package/dist/public/assets/_rAKcSD0Q.js +0 -1
  466. package/dist/public/assets/_rLFL1L0R.js.br +0 -0
  467. package/dist/public/assets/_rgAgMgz3.js +0 -1
  468. package/dist/public/assets/_sMAmEMEL.js +0 -1
  469. package/dist/public/assets/_tJkBN4WJ.js +0 -1
  470. package/dist/public/assets/_velTcbUh.js +0 -1
  471. package/dist/public/assets/_xHxBxsv8.js.br +0 -0
  472. package/dist/public/assets/_yENywt80.js +0 -1
  473. package/dist/public/assets/_z109ceNs.js +0 -1
  474. package/dist/public/assets/files-view-7lg-HOsu.js +0 -2
  475. package/dist/public/assets/manage-workspace-BEptIDph.js +0 -2
  476. package/dist/public/assets/new-BTTmyFKp.js +0 -1
  477. package/dist/public/assets/new-workspace-DK_Is5A_.js +0 -2
  478. package/dist/public/assets/review-view-C-EKymbK.js +0 -2
  479. package/dist/public/assets/settings-BTTmyFKp.js +0 -1
  480. package/dist/public/assets/settings-page-BRSwTt3H.js +0 -2
  481. package/dist/public/assets/styles-BoTOrHQr.css.br +0 -0
  482. package/dist/public/assets/w-BTTmyFKp.js +0 -1
  483. package/dist/public/assets/w._-BTTmyFKp.js +0 -1
  484. package/dist/public/assets/w._-BcCHMmQJ.js +0 -1
  485. package/dist/public/assets/w._-VuGN2GWb.js +0 -1
@@ -1,7 +1,7 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_kiYWJc7C.js","assets/_ChMlKSWb.js","assets/_D5l17O1N.js","assets/styles-BoTOrHQr.css","assets/_CyXOHGY9.js","assets/_8rRNostk.js","assets/_DdygzgXe.js","assets/_36LvHWL1.js","assets/_XQ5wGVWv.js","assets/_D2pdXUO3.js","assets/_CK9qLbVQ.js","assets/_CcFCI5Av.js","assets/_DPSLRh_A.js","assets/_DpYeIDyg.js","assets/_DHxkZsM0.js"])))=>i.map(i=>d[i]);
2
- import{$ as e,$t as t,A as n,At as r,Bt as i,Ct as a,D as o,Dt as s,E as c,Et as l,F as u,Gt as d,I as f,It as p,J as m,L as h,Lt as ee,Mt as te,Nt as g,O as _,Ot as ne,P as re,Pt as v,Q as ie,Qt as ae,Rt as oe,T as y,Tt as se,Ut as ce,Vt as b,Wt as le,X as x,Xt as ue,Y as de,Yt as fe,Z as S,Zt as pe,_ as me,a as he,an as ge,at as _e,bt as ve,c as ye,ct as be,d as xe,dt as Se,en as Ce,et as we,f as Te,g as Ee,h as De,ht as Oe,i as ke,j as Ae,jt as je,k as Me,kt as Ne,l as Pe,lt as Fe,m as Ie,mt as Le,n as Re,nn as ze,nt as Be,o as Ve,ot as He,p as Ue,qt as We,r as Ge,rn as Ke,rt as qe,s as Je,sn as Ye,st as Xe,t as Ze,tn as Qe,u as $e,v as et,w as tt,wt as nt,xt as rt,zt as it}from"./_ChMlKSWb.js";import{F as at,I as ot,L as st,P as ct,k as lt}from"./_D5l17O1N.js";import{B as C,D as w,E as ut,F as T,H as dt,I as E,J as ft,K as pt,L as D,M as mt,P as O,R as ht,U as k,V as A,W as j,_ as gt,a as M,b as N,i as P,j as _t,n as vt,r as yt,t as bt,v as F,x as xt,y as I,z as L}from"./_CyXOHGY9.js";import{$t as St,A as Ct,Ct as wt,D as Tt,Dt as Et,Hn as Dt,Ht as Ot,Kn as kt,Mt as At,Nt as jt,O as Mt,U as Nt,Un as Pt,Vn as R,Wn as z,Wt as Ft,Yt as It,_ as Lt,a as Rt,an as zt,b as Bt,d as Vt,en as Ht,f as Ut,g as Wt,h as Gt,i as Kt,j as qt,k as Jt,m as Yt,n as Xt,nn as Zt,p as Qt,r as $t,rn as en,t as tn,tr as nn,un as rn,v as an,wn as on,x as sn,xn as cn,xt as ln,y as un}from"./_8rRNostk.js";import{H as dn,K as fn,U as pn,V as mn,_ as hn,a as gn,at as _n,b as vn,c as yn,d as bn,dt as xn,f as Sn,g as Cn,h as wn,i as Tn,l as En,m as Dn,n as On,o as kn,p as An,r as jn,s as Mn,t as Nn,u as Pn,v as Fn,w as In,x as Ln,y as Rn}from"./_36LvHWL1.js";import{a as zn,i as Bn,n as Vn,r as Hn,s as Un,t as Wn}from"./_BfFD59AT.js";import{B as Gn,I as Kn,L as qn,P as Jn,z as Yn}from"./_XQ5wGVWv.js";import{c as Xn,i as Zn,n as Qn,r as $n,s as er,t as tr,u as nr}from"./_DPSLRh_A.js";import{i as rr,n as ir,r as ar,t as or}from"./_2kai1RSP.js";function sr(e){let t=null,n=e=>Kn()?e.metaKey:e.ctrlKey,r=e=>e instanceof HTMLElement&&(e.isContentEditable||!!e.closest(`input, textarea, select`));window.addEventListener(`keydown`,i=>{if([`Meta`,`Control`,`Shift`,`Alt`].includes(i.key))return;let a=i.key.toLowerCase();n(i)&&!i.altKey&&!i.shiftKey&&a===`a`?t=(e.active()&&!r(i.target)?e.text():null)?.key??null:n(i)&&a===`c`||(t=null)},{capture:!0,signal:e.signal}),window.addEventListener(`pointerdown`,()=>t=null,{capture:!0,signal:e.signal}),document.addEventListener(`copy`,n=>{if(!t||!e.active()||r(n.target))return;let i=e.text();i&&i.key===t&&n.clipboardData&&(n.clipboardData.setData(`text/plain`,i.text),n.preventDefault())},{signal:e.signal})}var cr=Ct,lr=(e=>`/${e}&`)(qt);function ur(e){Mt(e.a,Nt)}var dr=(e,t)=>Jt(e.a,t),fr=(e,t)=>Tt(e.a,t),pr=`<div></div>`,mr=k(`l0`,e=>ht(e,{comment:e.d,sessions:e.e,remove:e.f,edit:e.g,send:e.h,onMount:function(){let t={drawn:``,sessionsKey:``,draw:()=>{let n=`${this.comment.id}:${this.comment.text}`;if(n!==t.drawn){t.drawn=n,t.sessionsKey=i(this.sessions),e.a.replaceChildren(ee(this.comment,{sessions:()=>this.sessions,reveal:()=>{}},{onDelete:e=>this.remove(e),onEdit:(e,t)=>this.edit(e,t),onSend:(e,t)=>this.send(e,t),drifted:!1}));return}let r=i(this.sessions);if(r===t.sessionsKey)return;t.sessionsKey=r;let a=e.a.firstElementChild;a instanceof HTMLElement&&p(a)}};return t.draw(),t},onUpdate:function(){this.draw()}})),hr=C(8,mr,4),gr=N(3,hr),_r=N(4,hr),vr=N(5,hr),yr=N(6,hr),br=N(7,hr),xr=`<div><div title="Drag to resize"></div><!><div></div></div>`,Sr=` D b%b l`,Cr={M:`modified`,A:`added`,"?":`untracked`,R:`renamed`};function wr(e){let t=new Set(e.filter(e=>!e.startsWith(`.share/`)).map(e=>e.slice(0,e.indexOf(`/`)+1)));return t.size===1?[...t][0]:null}var Tr=e=>M(e.a,lt),Er=(e,t)=>j(e.b,t),Dr=(e,t)=>Er(e,t[0]),Or=E(17,e=>M(e.b,[`_cD`,{_cC:e.r}])),kr=N(18),Ar=k(`w1`,e=>{L(e.b,`pointerdown`,function(t){pn(e.s,t,e.b)&&Or(e,!0)}),L(e.b,`pointermove`,function(t){dn(e.s,t,e.a)}),L(e.b,`pointerup`,function(t){mn(e.s,t,e.a)&&Or(e,!1)}),L(e.b,`pointercancel`,function(t){mn(e.s,t,e.a)&&Or(e,!1)}),L(e.d,`click`,function(t){if(!e.h)return;let n=t.composedPath().find(e=>e instanceof HTMLElement&&e.dataset.itemType===`file`)?.dataset.itemPath;n&&n===e.k&&e.l(n)})});function jr(e){M(e.d,`_cB`),Or(e,!1),kr(e,{id:-1,w:0}),Ar(e)}var Mr=C(8,e=>M(e.a,[`_cu`,`_kS`,{_ct:e.g===!1,_kR:!!e.h}])),Nr=N(6,Mr),Pr=N(7,Mr),Fr=w(2,`<p> </p>`,` D `,Tr,Dr),Ir=(e,t)=>Fr(e,[t||[]]),Lr=k(`w0`,e=>ht(e,{paths:e.m,filter:e.n?.trim()||``,status:e.o,selected:e.k,revealNonce:e.p,onMount:function(){let t=e=>[...e].map(([e,t])=>({path:e,status:Cr[t]})),n={paths:[...e.m],filter:e.n?.trim()||``,status:e.o,nonce:e.p??0,selected:e.k??null,quiet:!1,icons:$n(e.m),iconPaths:null},r=wr(n.paths),i={paths:n.paths,gitStatus:t(e.o),initialExpansion:`closed`,initialExpandedPaths:r?[r]:[],density:.85,icons:Qn(``,n.paths),flattenEmptyDirectories:!0,stickyFolders:!0,search:!1,onSelectionChange(t){if(n.quiet||t.length!==1)return;let r=a.getItem(t[0]);r&&!r.isDirectory()&&t[0]!==n.selected&&e.l(t[0])}},a=new xe(i);return a.render({containerWrapper:e.d}),{t:a,state:n,gitStatus:t}},onUpdate:function(){let{t:e,state:t}=this,n=this.paths;if(this.filter!==t.filter){t.filter=this.filter,t.paths=[...n];let r=[...He(n)],i=t.selected,a=wr(n),o=new Set(this.filter&&r.length<=400?r:a?[a]:[]);if(i&&n.includes(i))for(let e=i.indexOf(`/`);e!==-1;e=i.indexOf(`/`,e+1))o.add(i.slice(0,e+1));e.resetPaths(t.paths,{initialExpandedPaths:[...o]}),i&&e.getItem(i)?.select()}else if(n!==t.paths&&n.join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_C4TSdcNR.js","assets/_DCAqomRE.js","assets/_BRgYIAAS.js","assets/styles-pNqSMRyA.css","assets/_CyXOHGY9.js","assets/_ZrPby9WV.js","assets/_BNx-hqba.js","assets/_C7NW-inT.js","assets/_Dv7aXRdy.js","assets/_D2pdXUO3.js","assets/_DM3gPAvW.js","assets/_CcFCI5Av.js","assets/_DG2zLheb.js","assets/_5amQ7cfb.js","assets/_BCVFhsBw.js"])))=>i.map(i=>d[i]);
2
+ import{$ as e,$t as t,A as n,At as r,Bt as i,Ct as a,D as o,Dt as s,E as c,Et as l,F as u,Gt as d,I as f,It as p,J as m,L as h,Lt as ee,Mt as te,Nt as g,O as _,Ot as ne,P as re,Pt as v,Q as ie,Qt as ae,Rt as oe,T as y,Tt as se,Ut as ce,Vt as b,Wt as le,X as x,Xt as ue,Y as de,Yt as fe,Z as S,Zt as pe,_ as me,a as he,an as ge,at as _e,bt as ve,c as ye,ct as be,d as xe,dt as Se,en as Ce,et as we,f as Te,g as Ee,h as De,ht as Oe,i as ke,j as Ae,jt as je,k as Me,kt as Ne,l as Pe,lt as Fe,m as Ie,mt as Le,n as Re,nn as ze,nt as Be,o as Ve,ot as He,p as Ue,qt as We,r as Ge,rn as Ke,rt as qe,s as Je,sn as Ye,st as Xe,t as Ze,tn as Qe,u as $e,v as et,w as tt,wt as nt,xt as rt,zt as it}from"./_DCAqomRE.js";import{F as at,I as ot,L as st,P as ct,k as lt}from"./_BRgYIAAS.js";import{B as C,D as w,E as ut,F as T,H as dt,I as E,J as ft,K as pt,L as D,M as mt,P as O,R as ht,U as k,V as A,W as j,_ as gt,a as M,b as N,i as P,j as _t,n as vt,r as yt,t as bt,v as F,x as xt,y as I,z as L}from"./_CyXOHGY9.js";import{$t as St,A as Ct,Ct as wt,D as Tt,Dt as Et,Hn as Dt,Ht as Ot,Kn as kt,Mt as At,Nt as jt,O as Mt,U as Nt,Un as Pt,Vn as R,Wn as z,Wt as Ft,Yt as It,_ as Lt,a as Rt,an as zt,b as Bt,d as Vt,en as Ht,f as Ut,g as Wt,h as Gt,i as Kt,j as qt,k as Jt,m as Yt,n as Xt,nn as Zt,p as Qt,r as $t,rn as en,t as tn,tr as nn,un as rn,v as an,wn as on,x as sn,xn as cn,xt as ln,y as un}from"./_ZrPby9WV.js";import{H as dn,K as fn,U as pn,V as mn,_ as hn,a as gn,at as _n,b as vn,c as yn,d as bn,dt as xn,f as Sn,g as Cn,h as wn,i as Tn,l as En,m as Dn,n as On,o as kn,p as An,r as jn,s as Mn,t as Nn,u as Pn,v as Fn,w as In,x as Ln,y as Rn}from"./_C7NW-inT.js";import{a as zn,i as Bn,n as Vn,r as Hn,s as Un,t as Wn}from"./_BiZ5JMx_.js";import{B as Gn,I as Kn,L as qn,P as Jn,z as Yn}from"./_Dv7aXRdy.js";import{c as Xn,i as Zn,n as Qn,r as $n,s as er,t as tr,u as nr}from"./_DG2zLheb.js";import{i as rr,n as ir,r as ar,t as or}from"./_BFHFjK9E.js";function sr(e){let t=null,n=e=>Kn()?e.metaKey:e.ctrlKey,r=e=>e instanceof HTMLElement&&(e.isContentEditable||!!e.closest(`input, textarea, select`));window.addEventListener(`keydown`,i=>{if([`Meta`,`Control`,`Shift`,`Alt`].includes(i.key))return;let a=i.key.toLowerCase();n(i)&&!i.altKey&&!i.shiftKey&&a===`a`?t=(e.active()&&!r(i.target)?e.text():null)?.key??null:n(i)&&a===`c`||(t=null)},{capture:!0,signal:e.signal}),window.addEventListener(`pointerdown`,()=>t=null,{capture:!0,signal:e.signal}),document.addEventListener(`copy`,n=>{if(!t||!e.active()||r(n.target))return;let i=e.text();i&&i.key===t&&n.clipboardData&&(n.clipboardData.setData(`text/plain`,i.text),n.preventDefault())},{signal:e.signal})}var cr=Ct,lr=(e=>`/${e}&`)(qt);function ur(e){Mt(e.a,Nt)}var dr=(e,t)=>Jt(e.a,t),fr=(e,t)=>Tt(e.a,t),pr=`<div></div>`,mr=k(`l0`,e=>ht(e,{comment:e.d,sessions:e.e,remove:e.f,edit:e.g,send:e.h,onMount:function(){let t={drawn:``,sessionsKey:``,draw:()=>{let n=`${this.comment.id}:${this.comment.text}`;if(n!==t.drawn){t.drawn=n,t.sessionsKey=i(this.sessions),e.a.replaceChildren(ee(this.comment,{sessions:()=>this.sessions,reveal:()=>{}},{onDelete:e=>this.remove(e),onEdit:(e,t)=>this.edit(e,t),onSend:(e,t)=>this.send(e,t),drifted:!1}));return}let r=i(this.sessions);if(r===t.sessionsKey)return;t.sessionsKey=r;let a=e.a.firstElementChild;a instanceof HTMLElement&&p(a)}};return t.draw(),t},onUpdate:function(){this.draw()}})),hr=C(8,mr,4),gr=N(3,hr),_r=N(4,hr),vr=N(5,hr),yr=N(6,hr),br=N(7,hr),xr=`<div><div title="Drag to resize"></div><!><div></div></div>`,Sr=` D b%b l`,Cr={M:`modified`,A:`added`,"?":`untracked`,R:`renamed`};function wr(e){let t=new Set(e.filter(e=>!e.startsWith(`.share/`)).map(e=>e.slice(0,e.indexOf(`/`)+1)));return t.size===1?[...t][0]:null}var Tr=e=>M(e.a,lt),Er=(e,t)=>j(e.b,t),Dr=(e,t)=>Er(e,t[0]),Or=E(17,e=>M(e.b,[`_cV`,{_cU:e.r}])),kr=N(18),Ar=k(`w1`,e=>{L(e.b,`pointerdown`,function(t){pn(e.s,t,e.b)&&Or(e,!0)}),L(e.b,`pointermove`,function(t){dn(e.s,t,e.a)}),L(e.b,`pointerup`,function(t){mn(e.s,t,e.a)&&Or(e,!1)}),L(e.b,`pointercancel`,function(t){mn(e.s,t,e.a)&&Or(e,!1)}),L(e.d,`click`,function(t){if(!e.h)return;let n=t.composedPath().find(e=>e instanceof HTMLElement&&e.dataset.itemType===`file`)?.dataset.itemPath;n&&n===e.k&&e.l(n)})});function jr(e){M(e.d,`_cT`),Or(e,!1),kr(e,{id:-1,w:0}),Ar(e)}var Mr=C(8,e=>M(e.a,[`_cM`,`_nD`,{_cL:e.g===!1,_nC:!!e.h}])),Nr=N(6,Mr),Pr=N(7,Mr),Fr=w(2,`<p> </p>`,` D `,Tr,Dr),Ir=(e,t)=>Fr(e,[t||[]]),Lr=k(`w0`,e=>ht(e,{paths:e.m,filter:e.n?.trim()||``,status:e.o,selected:e.k,revealNonce:e.p,onMount:function(){let t=e=>[...e].map(([e,t])=>({path:e,status:Cr[t]})),n={paths:[...e.m],filter:e.n?.trim()||``,status:e.o,nonce:e.p??0,selected:e.k??null,quiet:!1,icons:$n(e.m),iconPaths:null},r=wr(n.paths),i={paths:n.paths,gitStatus:t(e.o),initialExpansion:`closed`,initialExpandedPaths:r?[r]:[],density:.85,icons:Qn(``,n.paths),flattenEmptyDirectories:!0,stickyFolders:!0,search:!1,onSelectionChange(t){if(n.quiet||t.length!==1)return;let r=a.getItem(t[0]);r&&!r.isDirectory()&&t[0]!==n.selected&&e.l(t[0])}},a=new xe(i);return a.render({containerWrapper:e.d}),{t:a,state:n,gitStatus:t}},onUpdate:function(){let{t:e,state:t}=this,n=this.paths;if(this.filter!==t.filter){t.filter=this.filter,t.paths=[...n];let r=[...He(n)],i=t.selected,a=wr(n),o=new Set(this.filter&&r.length<=400?r:a?[a]:[]);if(i&&n.includes(i))for(let e=i.indexOf(`/`);e!==-1;e=i.indexOf(`/`,e+1))o.add(i.slice(0,e+1));e.resetPaths(t.paths,{initialExpandedPaths:[...o]}),i&&e.getItem(i)?.select()}else if(n!==t.paths&&n.join(`
3
3
  `)!==t.paths.join(`
4
4
  `)){let r=!t.paths.length,i=Xe(t.paths,n);i.length&&e.batch(i),t.paths=[...n];let a=wr(n);if(r&&a){let t=e.getItem(a);t&&`expand`in t&&t.expand()}r&&t.selected&&(t.nonce=-1)}if(t.iconPaths!==t.paths){t.iconPaths=t.paths;let n=$n(t.paths);n!==t.icons&&(t.icons=n,e.setIcons(Qn(``,t.paths)))}this.status!==t.status&&(t.status=this.status,e.setGitStatus(this.gitStatus(this.status)));let r=this.selected??null,i=this.revealNonce??0;if(r!==t.selected||i!==t.nonce){t.selected=r;let n=i!==t.nonce;t.nonce=i,t.quiet=!0;for(let t of e.getSelectedPaths())t!==r&&e.getItem(t)?.deselect();if(r){if(n)for(let t=r.indexOf(`/`);t!==-1;t=r.indexOf(`/`,t+1)){let n=e.getItem(r.slice(0,t+1));n&&`expand`in n&&!n.isExpanded()&&n.expand()}e.getItem(r)?.select(),n&&e.scrollToPath(r,{offset:`center`})}t.quiet=!1}},onDestroy:function(){this.t.cleanUp()}})),B=C(16,Lr,5),Rr=N(10,B),zr=N(11,B),Br=N(12,B),Vr=N(13,B),Hr=N(14,B),Ur=N(15,B),Wr=(e=>` E%b D n/${e}&%b%b%b%c`)(rr),Gr=(e=>`<span><bdi><!><span> </span></bdi></span>${e}<!><!><!><!><!>`)(ar),Kr=((e,t,n,r,i,a)=>`<div><div><div>${e}${t}<!><!><!><span>${n}</span><div></div><!><button type=button aria-label="Go to file">${r}</button></div><!><div><!><!><!><div></div><div></div><div></div><!><!></div></div>${i}${a}</div>`)(e,f,me,Bn,xr,Pe),qr=((e,t,n,r,i,a)=>` D D D/${e}&/${t}&%b%b%b D/${n}&l b%b D/${r}&m%b D%b%b%b b b b%b%m/${i}&/${a}&l`)(we,h,et,zn,Sr,$e),Jr=`This file is binary, over 500 KB, or no longer there.`,Yr=5e5,Xr=new Intl.Collator(void 0,{numeric:!0,sensitivity:`base`}),V=`.share`;function Zr(e,t){return t.contents==null?H(e).worktree===V&&t.size!=null?{key:e,kind:`binary`,size:t.size}:{key:e,kind:`none`,why:Jr}:{key:e,kind:`text`,contents:t.contents}}var Qr=2e4;function H(e){let t=e.indexOf(`/`);return{worktree:e.slice(0,t),path:e.slice(t+1)}}function $r(e){let{worktree:t}=H(e);return t.includes(`@`)||t===V}function ei(e){return/\.(md|markdown|mdown|mkdn?)$/i.test(e)}function ti(e){return/\.(diff|patch)$/i.test(e)}var ni={change:`M`,"rename-pure":`R`,"rename-changed":`R`,new:`A`,deleted:`D`},ri=900;function ii(e,t,n){let{worktree:r,path:i}=H(t),a=e=>{let t=e.search(/[?#]/),n=t<0?e:e.slice(0,t);if(!n)return null;let a=n;try{a=decodeURIComponent(n)}catch{}let o=a.startsWith(`/`)?`${r}${a}`:`${r}/${ai(i)}${a}`,s=[];for(let e of o.split(`/`))if(e!==``&&e!==`.`){if(e!==`..`)s.push(e);else if(!s.pop())return null}if(!s.length)return null;let c=a.endsWith(`/`)||s.length===1,l=t<0?null:/^#L(\d+)/.exec(e.slice(t));return{file:`${s.join(`/`)}${c?`/`:``}`,line:l?Number(l[1]):void 0}};return{link(e){let t=a(e);return t?{...t,href:`${n(t.file)}${t.line?`&line=${t.line}`:``}`}:null},media(t){let n=a(t);if(!n||n.file.endsWith(`/`))return null;let r=H(n.file);return`/api/workspaces/${e}/diff/blob?${new URLSearchParams({worktree:r.worktree,path:r.path,rev:`worktree`})}`}}}function ai(e){return e.slice(0,e.lastIndexOf(`/`)+1)}function U(e){return e.slice(e.lastIndexOf(`/`)+1)}function oi(e){let t=e.endsWith(`/`),n=t?e.slice(0,-1):e,r=n.lastIndexOf(`/`)+1,i=[];for(let e=0;e<r;){let t=n.indexOf(`/`,e)+1;i.push({key:n.slice(0,t),label:n.slice(e,t)}),e=t}return{folders:i,name:`${n.slice(r)}${t?`/`:``}`}}function si(e,t){let n=new Set,r=[],i=[];for(let a of t){if(!a.startsWith(e))continue;let t=a.indexOf(`/`,e.length);if(t>=0){n.add(a.slice(0,t+1));continue}let o=Ln(a)?.kind;o===`image`||o===`video`?i.push({key:a,kind:o}):r.push(a)}return{dirs:[...n].sort(Xr.compare),files:r.sort(Xr.compare),media:i.sort((e,t)=>Xr.compare(e.key,t.key))}}function ci(e){let t=(e||``).split(`
5
- `).map(e=>({removed:e[0]===`-`,text:e.slice(1)})),n=t.findIndex(e=>e.removed),r=t.findLastIndex(e=>e.removed);return n<0?t:t.slice(Math.max(0,n-1),r+2)}var li=e=>M(e.a,`_hI`),ui=T(1,1,e=>P(e.a,`src`,`${e._.k}#t=0.1`)),di=e=>{ui._(e),M(e.a,`_hG`)},fi=T(1,0,e=>P(e.a,`src`,e._.k)),pi=e=>{fi._(e),M(e.a,`_hG`)},mi=e=>{M(e.a,`_hT`),M(e.b,`_bi`)},hi=(e,t)=>M(e.a,t&&`_hQ`),gi=(e,t)=>j(e.b,t),_i=w(0,`<span><!>
6
- </span>`,` D%`,0,(e,t)=>{hi(e,t[0]?.removed),gi(e,t[0]?.text)}),vi=T(1,0,e=>_i(e,[ci(e._.f)])),yi=e=>{vi._(e),M(e.a,`_hP`)},bi=e=>M(e.a,`_hm`),xi=I(276,e=>j(e.b,e._._._.fp),e=>e._._._,`x47`),Si=e=>{xi(e),Ci(e),M(e.a,`_hi`),M(e.c,`_hj`)},Ci=I(277,e=>j(e.d,e._._._.fq),e=>e._._._,`x48`),wi=I(274,e=>mt(e,e._._.fl,`a`),e=>e._._,`x72`),Ti=wi,Ei=O(0,`changed`,0,0,`<span>+<!></span><span>−<!></span>`,` Db%l Db%`,Si),Di=C(1,e=>P(e.a,`title`,`${e._._.fo?`Changed (binary)`:`+${e._._.fp} −${e._._.fq}`} in its branch: show the change`),2),Oi=I(275,e=>{Ei(e,+!e._._.fo),Di(e)},e=>e._._,`x50`),ki=k(`x49`,e=>L(e.a,`click`,function(){e._._.fm()})),Ai=e=>{Oi(e),ji(e),Mi(e),M(e.a,ct),ki(e)},ji=I(276,Di,e=>e._._,`x51`),Mi=I(277,Di,e=>e._._,`x52`),Ni=C(6,e=>P(e.a,`href`,e._._._.f2(e.f))),Pi=I(264,Ni,e=>e._._._,`x82`),Fi=k(`x81`,e=>L(e.a,`click`,function(t){t.preventDefault(),e._._._.f0(e.f)})),Ii=e=>{Pi(e),M(e.a,`_hK`),M(e.c,`_hL`),Fi(e)},Li=N(5,e=>{j(e.b,U(e.f)),j(e.d,ai(e.f)),Ni(e)}),Ri=w(0,`<li><a> <span> </span></a></li>`,`D D b D `,Ii,(e,t)=>Li(e,t[0])),zi=I(266,e=>Ri(e,[e._._.fa.slice(0,8)]),e=>e._._,`x83`),Bi=e=>{zi(e),M(e.a,`_hJ`)},Vi=N(10,e=>{fi(e),ui(e)}),Hi=I(263,e=>Vi(e,e._._._.f1(e.M)),e=>e._._._,`x78`),Ui=k(`x77`,e=>L(e.a,`click`,function(t){t.preventDefault(),e._._._.f0(e.M)})),Wi=e=>{Hi(e),Gi(e),M(e.a,`_hF`),P(e.a,`title`,U(e.M)),M(e.c,`_hH`),j(e.d,U(e.M)),Ui(e)},Gi=I(264,e=>P(e.a,`href`,e._._._.f2(e.M)),e=>e._._._,`x79`),Ki=O(1,`<img alt loading=lazy decoding=async>`,` `,pi,`<video muted playsinline preload=metadata></video>`,` `,di),qi=(e,t)=>Ki(e,t===`image`?0:1),Ji=ut(0,`<li><a><!><span> </span></a></li>`,`D D%b D `,Wi,(e,t)=>qi(e,t[0]?.kind)),Yi=I(270,e=>Ji(e,[e._._.fh,`key`]),e=>e._._,`x80`),Xi=e=>{Yi(e),M(e.a,`_hE`)},Zi=C(6,e=>P(e.a,`href`,e._._.f2(e.f))),Qi=I(264,Zi,e=>e._._,`x76`),$i=k(`x75`,e=>L(e.a,`click`,function(t){t.preventDefault(),e._._.f0(e.f)})),ea=e=>{Qi(e),M(e.a,`_hB`),M(e.b,`_hC`),$i(e)},ta=N(5,e=>{P(e.c,`href`,`#${tr(e.f)}`),j(e.d,U(e.f)),Zi(e)}),na=(e,t)=>ta(e,t[0]),ra=C(5,e=>P(e.a,`href`,e._._.f2(e.e))),ia=I(264,ra,e=>e._._,`x74`),aa=k(`x73`,e=>L(e.a,`click`,function(t){t.preventDefault(),e._._.f0(e.e)})),oa=e=>{ia(e),M(e.a,`_hB`),jn(e.b),Nn(e.b,`_hD`),On(e.b,16),aa(e)},sa=N(4,e=>{j(e.c,U(e.e.slice(0,-1))),ra(e)}),ca=(e,t)=>sa(e,t[0]),la=C(5,e=>P(e.a,`href`,e._._.f2(e.e))),ua=I(264,la,e=>e._._,`x45`),da=k(`x44`,e=>L(e.a,`click`,function(t){t.preventDefault(),e._._.f0(e.e)})),fa=e=>{ua(e),M(e.a,`_hc`),da(e)},pa=N(4,la),ma=(e,t)=>j(e.b,t),ha=(e,t)=>{pa(e,t[0]?.key),ma(e,t[0]?.label)},ga=C(2,e=>j(e.b,e._._.di.get(e._.l)===`?`?`untracked`:e._._.di.get(e._.l)===`A`?`added`:`modified`)),_a=I(255,ga,e=>e._._,`x46`),va=e=>{_a(e),ya._(e),M(e.a,[`_bp`,`_3`])},ya=T(5,0,ga),ba=T(5,0,e=>o(e.a,e._.d4)),xa=e=>{ba._(e),Sa._(e),Ca._(e),Me(e.a),tt(e.a,[`_gg`,`_hd`]),_(e.a)},Sa=T(5,0,e=>y(e.a,e._.d7)),Ca=T(5,0,e=>c(e.a,e._.dp)),wa=C(4,e=>{M(e.a,[`_bT`,e._._._.c2===e.d&&`_bS`]),P(e.a,`aria-pressed`,e._._._.c2===e.d?`true`:`false`)}),Ta=I(250,wa,e=>e._._._,`x56`),Ea=k(`x55`,e=>L(e.a,`click`,function(){e._._._.c2!==e.d&&(ll(e._._._,e.d),on(e.d))})),Da=e=>{Ta(e),Ea(e)},Oa=N(3,e=>{j(e.b,e.d===`diff`?`Diff`:`Source`),wa(e)}),ka=w(0,`<button type=button> </button>`,` D `,Da,(e,t)=>Oa(e,t[0])),Aa=e=>{M(e.a,[`_bR`,`_hf`]),ka(e,[[`diff`,`source`]])},ja=C(4,e=>{M(e.a,[`_bT`,e._._._.by===e.d&&`_bS`]),P(e.a,`aria-pressed`,e._._._.by===e.d?`true`:`false`)}),Ma=I(249,ja,e=>e._._._,`x54`),Na=k(`x53`,e=>L(e.a,`click`,function(){e._._._.by!==e.d&&(nl(e._._._,e.d),cn(e.d))})),Pa=e=>{Ma(e),Na(e)},Fa=N(3,e=>{j(e.b,e.d===`preview`?`Preview`:`Source`),ja(e)}),Ia=w(0,`<button type=button> </button>`,` D `,Pa,(e,t)=>Fa(e,t[0])),La=e=>{M(e.a,[`_bR`,`_hf`]),Ia(e,[[`preview`,`source`]])},Ra=_t(`x43`,4,`Ak`),za=T(10,0,e=>Sn(e.a,e._.bq)),Ba=e=>{za._(e),Va._(e),Ha._(e),Ga._(e),Ka._(e),qa._(e),Ja._(e),pt(e,0,Ya),Fn(e.a),yn(e.a,`Find in file`),An(e.a,rf(e)),En(e.a,nf(e)),Dn(e.a)},Va=T(10,0,e=>hn(e.a,e._.bs)),Ha=T(10,0,e=>Cn(e.a,e._.bu)),Ua=C(2,e=>Mn(e.a,e._.ek?`${e._.bx+1}/${e._.ek}`:`0/0`)),Wa=C(3,e=>bn(e.a,af(e))),Ga=T(10,0,e=>{Ua(e),Wa(e)}),Ka=T(10,0,e=>{kn(e.a,e._.ek>0),Ua(e)}),qa=T(10,0,e=>{Pn(e.a,of(e)),Wa(e)}),Ja=T(10,0,e=>wn(e.a,e._.en?`keybar`:`row`)),Ya=ft(`x64`,N(4)),Xa=I(244,e=>j(e.a,e._._.bo),e=>e._._,`x66`),Za=xt(`x67`,` `,` `,Xa),Qa=e=>{an(e.a),Ut(e.a,Za(e)),Wt(e.a,`inline`),Lt(e.a,sf(e)),Vt(e.a),Yt(e.a),Gt(e.a),Bt(e.a),Qt(e.a,{})},$a=T(23,7,e=>j(e.b,e._.bk)),eo=e=>{$a._(e),M(e.a,`_hy`)},to=T(23,4,e=>P(e.b,`src`,e._.bi)),no=e=>{to._(e),M(e.a,`_ht`),M(e.b,`_hw`)},ro=T(23,3,e=>P(e.b,`src`,e._.bi)),io=k(`x86`,e=>L(e.b,`loadedmetadata`,function(){let t=e.b,n=Math.round(t.duration);Dl(e._,`${t.videoWidth} × ${t.videoHeight}${Number.isFinite(n)?` · ${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`:``}`)})),ao=e=>{ro._(e),oo._(e),M(e.a,`_ht`),M(e.b,`_hv`),M(e.c,`_hu`),io(e)},oo=T(23,3,e=>j(e.d,e._.cn)),so=O(7,`<span role=group aria-label="Show as"></span>`,` `,La),co=C(14,e=>so(e,e._.bf===`text`&&e._.bg===e.l&&ei(e.l)?0:1),2),lo=O(8,`<span role=group aria-label="Show as"></span>`,` `,Aa),uo=C(15,e=>lo(e,e._.bf===`text`&&e._.bg===e.l&&e._.c5?0:1),3),fo=I(239,e=>{co(e),uo(e)},0,`x58`),po=gt(e=>{fo(e),mo(e),ho(e),vo(e),xo(e),M(e.a,`_hb`),M(e.c,`_hl`),ir(e.e)}),mo=I(240,e=>{co(e),uo(e)},0,`x59`),ho=I(251,uo,0,`x60`),go=O(5,`<span title=Uncommitted> </span>`,` D `,va),_o=C(12,e=>go(e,+!e._.di.get(e.l))),vo=I(255,_o,0,`x61`),yo=O(6,`<button type=button></button>`,` `,Ai),bo=C(13,e=>yo(e,e._.f7&&e._.f7?.file===e.l?0:1)),xo=I(265,bo,0,`x62`),So=(e,t)=>{wo(e,t?.folders),To(e,t?.name)},Co=w(1,`<a> </a>`,` D `,fa,ha),wo=(e,t)=>Co(e,[t]),To=(e,t)=>j(e.d,t),Eo=N(11,e=>{P(e.a,`title`,e.l),or(e.e,{text:e.l,label:`Copy path`}),So(e,oi(e.l)),_o(e),bo(e),co(e),uo(e),ya(e)}),Do=O(6,`<p>Nothing here is listed.</p>`,` `,li),Oo=C(7,e=>Do(e,e._.b9&&!e._.fj&&!e._.fk&&!e._.fi?0:1),3),ko=T(23,0,Oo),Ao=e=>{ko._(e),Mo._(e),Po._(e),Io._(e),Lo._(e),Ro._(e),Bo._(e),M(e.a,`_hz`),M(e.c,`_hA`)},jo=w(4,`<li><a><svg viewBox="0 0 16 16" aria-hidden=true><use></use></svg> </a></li>`,`D D D l `,ea,na),Mo=T(23,0,e=>jo(e,[e._.ff])),No=w(3,(e=>`<li><a>${e}<!>/</a></li>`)(Tn),(e=>`D D/${e}&%m`)(gn),oa,ca),Po=T(23,0,e=>No(e,[e._.fg])),Fo=O(5,`<ul></ul>`,` `,Xi),Io=T(23,0,e=>{Fo(e,+!e._.fi),Oo(e)}),Lo=T(23,0,Oo),Ro=T(23,0,Oo),zo=O(1,`<div hidden> </div>`,`D `,Ti),Bo=T(23,0,e=>zo(e,+!e._.fl)),Vo=T(23,5,e=>P(e.b,`title`,e._.az)),Ho=e=>{Vo._(e),Uo._(e),M(e.a,`_ht`),M(e.b,`_hx`)},Uo=T(23,5,e=>P(e.b,`src`,e._.bi)),Wo=T(23,2,e=>P(e.b,`alt`,e._.az)),Go=k(`x85`,e=>L(e.b,`load`,function(){let t=e.b;Dl(e._,`${t.naturalWidth} × ${t.naturalHeight}`)})),Ko=e=>{Wo._(e),Jo._(e),Yo._(e),Xo._(e),M(e.a,`_ht`),M(e.b,`_hv`),M(e.c,`_hu`),Go(e)},qo=k(`x84`,e=>L(e.b,`error`,function(){e._.du(e._.bg)})),Jo=T(23,2,qo),Yo=T(23,2,e=>P(e.b,`src`,e._.bi)),Xo=T(23,2,e=>j(e.d,e._.cn)),Zo=T(16,0,e=>Eo(e.b,e._.ax)),Qo=e=>{Zo._(e),M(e.a,`_hg`),po._(e.b,e._)},$o=T(6,0,e=>Eo(e.d,e._.ax)),es=k(`x63`,e=>L(e.b,`click`,function(){Sl(e._,!0),gl(e._,+e._.cf+1)})),ts=e=>{$o._(e),M(e.a,[`_gg`,`_he`]),M(e.b,st),ur(e.c),dr(e.c,16),fr(e.c),po._(e.d,e._),es(e)},ns=T(23,1,e=>j(e.b,Jn(`goToFile`,e._.aw))),rs=e=>{ns._(e),as._(e),M(e.a,`_hy`)},is=O(2,`<ul></ul>`,` `,Bi),as=T(23,1,e=>is(e,+!e._.fb)),os=T(11,0,e=>P(e.a,`title`,`Find in file${Jn(`find`,e._.aw)}`)),ss=k(`x65`,e=>L(e.a,`click`,function(){$(e._,!0),Bc(e._,+e._.bs+1),Ra(e._)()})),cs=e=>{os._(e),ls._(e),M(e.a,at),$t(e.b),Xt(e.b,14),tn(e.b),ss(e)},ls=T(11,0,e=>P(e.a,`hidden`,e._.bq)),us=C(6,e=>P(e.d,`href`,`/api/workspaces/${e._.ab}/diff/blob?${new URLSearchParams({worktree:V,path:e.f,rev:`worktree`,download:`1`})}`)),ds=T(23,6,us),fs=e=>{ds._(e),ms._(e),hs._(e),M(e.a,`_hy`),M(e.d,[`_I`,`_J`])},ps=(e,t)=>gs(e,t.path),ms=T(23,6,e=>ps(e,H(e._.bg))),hs=T(23,6,e=>{j(e.b,e._.bj>Yr?`Too large to show`:`Binary`),j(e.c,er(e._.bj))}),gs=N(5,e=>{P(e.d,`download`,U(e.f)),us(e)}),_s=I(234,e=>_r(e.c,e._._.at||[]),e=>e._._,`x70`),vs=e=>{_s(e),ys(e),M(e.a,`_hO`),e.c},ys=I(257,e=>{vr(e.c,uf(e)),yr(e.c,lf(e)),br(e.c,cf(e))},e=>e._._,`x71`),bs=O(1,`<pre></pre>`,` `,yi),xs=N(5,e=>{bs(e,+!e.f),vi(e)}),Ss=(e,t)=>{gr(e.c,t),xs(e,t?.snippet)},Cs=(e,t)=>Ss(e,t[0]),ws=C(4,e=>P(e.c,`href`,_n({workspaceId:e._.ab,view:`diff`,file:e._.az,all:!0}))),Ts=T(18,0,ws),Es=e=>{Ts._(e),Ds._(e),ks._(e),M(e.a,`_hM`),M(e.b,`_hN`),M(e.c,`_bm`)},Ds=T(18,0,ws),Os=ut(3,(e=>`<div><!>${e}</div>`)(pr),(e=>` D%b/${e}&l`)(` b`),vs,Cs),ks=T(18,0,e=>Os(e,[e._.e3,`id`])),As=I(234,e=>_r(e.a,e._._.at||[]),e=>e._._,`x68`),js=e=>{As(e),Ms(e),e.a},Ms=I(257,e=>{vr(e.a,pf(e)),yr(e.a,ff(e)),br(e.a,df(e))},e=>e._._,`x69`),Ns=(e,t)=>gr(e.a,t),Ps=ut(2,pr,(e=>`/${e}&`)(` b`),js,(e,t)=>Ns(e,t[0])),Fs=T(17,0,e=>Ps(e,[e._.e6,`id`])),Is=e=>{Fs._(e),M(e.a,`_hM`),M(e.b,`_hN`)},Ls=_t(`x42`,10),Rs=E(58,e=>{P(e.m,`title`,`Go to file${Jn(`goToFile`,e.aw)}`),os(e),ns(e)}),zs=k(`x89`,e=>{{let t=e.f7,n=t&&e.az&&t.file===e.az?{section:t.section,key:`${t.section}/${t.file.slice(t.file.indexOf(`/`)+1)}`,line:e.b8||e.b1||null}:null;(n?.key!==e.b5||n?.line!==e.b6||n?.section!==e.b7)&&Bu(e,n)}}),W=C(215,zs,6),Bs=E(70,W),Vs=(e,t)=>Ze(e.z,t),Hs=(e,t)=>{Br(e.y,t),wd(e,t?.length)},Us=C(146,e=>Hs(e,e.cd.trim()?e.da.filter(be(e.cd)):e.da)),Ws=F(zi),Gs=N(216,e=>{zd(e,e.fa?.length),Ws(e)}),Ks=C(201,e=>Gs(e,e.eu.filter(t=>e.da.includes(t)))),qs=F(wi),Js=N(227,e=>{Bo(e),qs(e)}),Ys=O(23,`<div><!><ul><!><!></ul><!><!></div>`,` D%b D%b%l%b%`,Ao,`<div><p>Open a file from the tree, or go to one by name<!>.</p><!></div>`,` Eb%l%`,rs,`<div><img><span> </span></div>`,` D b D `,Ko,`<div><video controls playsinline preload=metadata></video><span> </span></div>`,` D b D `,ao,`<div><audio controls preload=metadata></audio></div>`,` D `,no,`<div><iframe></iframe></div>`,` D `,Ho,`<div><p><!> · <!></p><a>Download</a></div>`,` E%c%l `,fs,`<div><p> </p></div>`,` E `,eo),Xs=C(220,e=>Ys(e,e.fd?0:e.az?e.bf===`image`?2:e.bf===`video`?3:e.bf===`audio`?4:e.bf===`pdf`?5:e.bf===`binary`?6:e.bf===`none`?7:8:1),2),Zs=N(219,e=>{Bd(e,e.fd?.files),Hd(e,e.fd?.dirs),Gd(e,e.fd?.media),Js(e,e.fd?Zn(new Set((e.fd?.files).map(tr))):``),Xs(e)}),Qs=C(145,e=>Zs(e,e.b0?si(e.b0,e.da):null)),$s=N(144,e=>{Cd(e,e.da?.length),Vs(e,[...e.da,...He(e.da)].map(e=>({key:e,path:e}))),Us(e),Ks(e),Qs(e)}),ec=(e,t)=>Ir(e.y,t),tc=k(`x90`,e=>(()=>{let t=e.az,n=t?e.di.get(t)===`?`:!1;if(e.b9,e.ba,!t||!t.includes(`/`)){yu(e,null);return}let r=t.indexOf(`/`),i=new URLSearchParams({section:t.slice(0,r),path:t.slice(r+1),...n&&{untracked:`1`}}),a=setTimeout(async()=>{try{let n=await z(`/api/workspaces/${e.ab}/file-changes?${i}`,{signal:vt(e,2)});yu(e,n&&(n.additions||n.deletions||n.binary)?{file:t,...n}:null)}catch{}},150);vt(e,2).addEventListener(`abort`,()=>clearTimeout(a))})()),nc=C(153,e=>{yt(e,2),tc(e)},4),rc=F(vo,_a),ic=N(152,e=>{Hr(e.y,e.di),nc(e),rc(e)}),ac=(e,t)=>{$s(e,t.flatMap(e=>e.files.map(t=>`${e.worktree}/${t}`))),ec(e,[...t.some(e=>e.truncated&&e.worktree!==V)?[`A repo has too many files: only its first ${Xn(1e5)} are listed.`]:[],...t.filter(e=>e.truncated&&e.worktree===V).map(e=>`${V} has more files than are listed: only its newest ${Xn(e.files.length)} are.`)]),ic(e,(()=>{let e=new Map;for(let n of t)for(let[t,r]of Object.entries(n.status))e.set(`${n.worktree}/${t}`,r);return e})())},oc=C(142,e=>ac(e,e.d7?(e.b9||[]).filter(t=>b(t.worktree)===b(e.d7)):e.b9||[])),sc=k(`x97`,e=>{if(e.b9!==e.dq&&(au(e,e.b9),e.az&&e.b9)){let{worktree:t,path:n}=H(e.az),r=e.b9.find(e=>b(e.worktree)===b(t));r&&r.worktree!==t&&r.files.includes(n)&&Mu(e,`${r.worktree}/${n}`)}}),cc=C(161,sc,2),lc=E(71,e=>{Re(e.z,!e.b9),oc(e),cc(e),nc(e),ko(e)}),uc=N(141,e=>{oc(e),Sa(e)}),dc=C(139,e=>uc(e,e.bb&&e.bb!==`*`&&e.d4.some(t=>t.id===e.bb)?e.bb:null)),fc=N(138,e=>{bd(e,e.d4?.length),dc(e),ba(e)}),pc=C(137,e=>fc(e,(e.ba||[]).filter(Be).map(t=>_e(t,e.ah||``,e.ai||``,e.d2))),3),mc=N(136,pc),hc=k(`x98`,e=>{e.ba&&!e.bc&&e.bb&&e.bb!==`*`&&!e.ba.some(t=>t.id===e.bb)&&(qu(e,le(e.ba,e.bb)??`*`),rn(e.ab,e.bb))}),gc=C(75,hc,3),_c=k(`x91`,e=>ht(e,{active:e.an,onMount:function(){let t=new AbortController,n=t.signal,r=0,i=()=>{r&&clearTimeout(r),r=setTimeout(()=>{r=0,e.dm(),e.do(),e.ed()},300)};Zt(`diff-focus:${e.ab}`,()=>{let t=Ot(e.ab);t!==e.bb&&(t&&t!==`*`&&e.ba&&!le(e.ba,t)&&(yc(e,!0),e.do()),qu(e,t),e.dm())},n);let a=``;return Et().addEventListener(`status.changed`,t=>{if(!e.an)return;let n=t.data?.[e.ab];if(!n)return;let r=`${n.working}|${n.repos.map(e=>`${e.localHead||``}:${(e.prs||[]).map(e=>`${e.number}${e.state}`).join(`.`)}`).join(`,`)}`,o=a;a=r,o&&r!==o&&i()},{signal:n}),document.addEventListener(`visibilitychange`,()=>{e.an&&document.visibilityState===`visible`&&i()},{signal:n}),window.addEventListener(`focus`,()=>{e.an&&i()},{signal:n}),Et().addEventListener(`review.changed`,t=>{e.an&&t.data?.workspaceId===e.ab&&e.dw()},{signal:n}),window.addEventListener(`keydown`,t=>{if(e.an){if(Yn(t,`goToFile`))t.preventDefault(),t.stopPropagation(),Lc(e,!0);else if(Yn(t,`find`)&&e.bf===`text`){if(t.target instanceof HTMLTextAreaElement)return;t.preventDefault(),t.stopPropagation(),Vc(e,In()),$(e,!0),Bc(e,+e.bs+1),Ra(e)()}}},{capture:!0,signal:n}),sr({active:()=>!!e.an,text:()=>e.bf===`text`?{key:e.bg,text:e.bh}:null,signal:n}),e.an&&e.f4(),{abort:t,wasActive:!!e.an}},onUpdate:function(){this.active&&!this.wasActive&&e.f4(),this.wasActive=!!this.active},onDestroy:function(){this.abort.abort()}})),G=C(211,_c,12),vc=E(72,e=>{mc(e,qe(e.ba||[])),pc(e),gc(e),G(e),nc(e)}),yc=E(74,gc),bc=k(`x87`,e=>ht(e,{doc:e.be,docChecked:e.bl,active:e.an,line:e.b1,back:e.av??null,comments:e.e2,draft:e.cy,revealNonce:e.ce+(e.af??0),findQuery:e.bv.trim(),findLine:e.ef[e.bx]??0,findAt:e.bx,findJump:e.cc,mdOn:e.c0,patch:e.c7?e.c3:null,patchHits:e.eh,patchHit:e.c7?e.eh[e.bx]??null:null,onMdFind:t=>{rl(e,t)},sessions:e.at,onMount:function(){let n=()=>e.at||[],r=(t,n)=>it(h.patch?e.v:e.t,t,n),o=new Map,s=new WeakMap,c=0,u=t=>{if(t.draft){let i=s.get(t.draft);i??s.set(t.draft,i=c++);let a=`draft:${i}`,l=o.get(a);return l||(l=oe({sessions:n,reveal:r},{onSave:t=>e.eb(t),onSend:(t,n)=>e.ec(t,n),onCancel:()=>{Z(e,null)}}),o.set(a,l)),l}let i=t.comment,a=`c:${i.id}:${i.text}`,l=o.get(a);if(!l){let t=this.doc,s=i.snippet!=null&&t?.kind===`text`&&ce(d(t.contents,i.line_start,i.line_end,i.side))!==ce(i.snippet);l=ee(i,{sessions:n,reveal:r},{onDelete:t=>je(e.dz,t),onEdit:(t,n)=>ne(e.dz,t,n),onSend:(t,n)=>te(e.dz,t,n),drifted:s}),o.set(a,l)}return l},f={list:[],key:``,sig:``,hosts:new Set,ctl:null,retry:0,abort:new AbortController},p=Qe({workspaceId:()=>e.ab,problems:(e,n,r,i)=>e.itemId===h.itemId?t(f.list,n,r,i):[],source:e=>{let t=h.doc;return t?.kind!==`text`||e.itemId!==h.itemId||$r(t.key)?null:{...H(t.key),rev:`worktree`}},open:t=>e.f0(`${t.worktree}/${t.path}`,t.line)}),m={theme:ge,themeType:At(),disableFileHeader:!0,onTokenEnter:p.onTokenEnter,onTokenLeave:p.onTokenLeave,onTokenClick:p.onTokenClick,stickyHeaders:!1,enableLineSelection:!0,onLineSelectionEnd(t){let n=h.doc?.key;if(!t||!n)return;let r=Math.min(t.start,t.end),i=Math.max(t.start,t.end),a=h.draft;(a?.key!==n||a.start!==r||a.end!==i)&&Z(e,{key:n,start:r,end:i})},renderAnnotation(e){return e.metadata?u(e.metadata):void 0},unsafeCSS:a+We,onPostRender(e,t,n,r){let i=e;if(n===`unmount`){g.get(i)?.(),g.delete(i),f.hosts.delete(i),ue(i);return}g.has(i)?nt(i):g.set(i,se(i,r.item.id)),f.hosts.add(i),pe(i,f.list,`file`)},overflow:wt()?`wrap`:`scroll`,layout:{paddingTop:0,paddingBottom:24,gap:0}},h=this,g=new Map,_=new Ye(m,Ke());_.setup(e.t);let re=()=>{let t=e.t.getBoundingClientRect(),n=(t.top+t.bottom)/2,r=0,i=1/0;for(let e of f.hosts)for(let a of e.shadowRoot?.querySelectorAll(`[data-code] [data-line]`)??[]){let e=a.getBoundingClientRect();if(e.bottom<=t.top||e.top>=t.bottom)continue;let o=Math.abs((e.top+e.bottom)/2-n);o<i&&(i=o,r=Number(a.getAttribute(`data-line`))||0)}return r},v={timer:0},ie=_.subscribeToScroll(()=>{p.close(),v.timer||=setTimeout(()=>{v.timer=0,Bs(e,re())},200);let t=h.doc;h.active&&t?.kind===`text`&&xn(e.ab,{view:`files`,file:t.key,top:_.getScrollTop()})}),y={view:null,loading:!1,shown:null,sig:``,nonce:-1,backDone:null,jumped:-1,wasOn:!1,carry:0},b=()=>h.mdOn&&y.view?y.view.midLine():re(),le=t=>{let n=!!h.mdOn,r=h.doc;if(n!==y.wasOn){if(y.wasOn=n,n)y.carry=t===r&&_.getScrollTop()>0?re():0;else if(y.view&&r?.kind===`text`&&y.shown===r){let e=y.view.top()>0?y.view.midLine():0,t=h.itemId;requestAnimationFrame(()=>{h.itemId===t&&_.scrollTo(e?{type:`line`,id:t,lineNumber:e,align:`center`,behavior:`instant`}:{type:`position`,position:0,behavior:`instant`})})}}if(!n||r?.kind!==`text`)return;if(!y.view){if(y.loading)return;y.loading=!0,bt(()=>import(`./_kiYWJc7C.js`).then(t=>{y.view=new t.MarkdownView(e.u,{onComment:(t,n)=>{let r=h.doc?.key;r&&Z(e,{key:r,start:t,end:n})},onOpen:(t,n)=>e.f0(t,n),onScroll:()=>{v.timer||=setTimeout(()=>{v.timer=0,Bs(e,b())},200);let t=h.doc;h.active&&t?.kind===`text`&&y.view&&xn(e.ab,{view:`files`,file:t.key,top:y.view.top()})}}),le(h.doc)}),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]));return}let i=y.view,a=r!==y.shown;if(a){let t=r.reload&&y.shown?.key===r.key?i.top():null;y.shown=r,y.sig=``,i.show(r.contents,ii(e.ab,r.key,e.f2),t)}let o=h.comments||[],s=h.draft,c=s&&s.key===r.key?s:null,l=o.map(e=>`${e.id}:${e.line_end}:${e.text}`).join(`|`)+(c?`|d${c.start}-${c.end}`:``);l!==y.sig&&(y.sig=l,i.setNotes([...o.map(e=>({line:e.line_end,node:u({comment:e})})),...c?[{line:c.end,node:u({draft:c})}]:[]],c));let d=h.line??null,f=h.back;if(y.carry){let e=y.carry;y.carry=0,y.nonce=h.revealNonce,requestAnimationFrame(()=>i.reveal(e,!1))}else(a&&!r.reload||h.revealNonce!==y.nonce)&&(y.nonce=h.revealNonce,f&&f!==y.backDone&&f.file===r.key?(y.backDone=f,requestAnimationFrame(()=>i.setTop(f.top))):d?requestAnimationFrame(()=>i.reveal(d)):a&&i.setTop(0));if(a||h.findJump!==y.jumped){let e=h.findJump!==y.jumped;y.jumped=h.findJump,h.onMdFind(i.search(h.findQuery,h.findAt,e))}};_u(e,{top:()=>h.mdOn&&y.view?y.view.top():_.getScrollTop(),line:b});let x={viewer:null,shown:null,items:[],heads:new Map,jumped:-1,annSig:``},de=(e,t)=>{let n=x.items.find(t=>t.id===e);if(!x.viewer||!n)return;let r=!n.collapsed;for(let e of t?x.items:[n])!!e.collapsed!==r&&(e.collapsed=r,e.version=(e.version??0)+1,x.viewer.updateItem(e))},S={theme:ge,themeType:At(),diffStyle:`split`,stickyHeaders:!0,itemMetrics:{diffHeaderHeight:44},layout:{paddingTop:0,paddingBottom:24,gap:12},unsafeCSS:a,overflow:wt()?`wrap`:`scroll`,enableLineSelection:!0,onLineSelectionEnd(t,n){let r=h.patch,i=h.doc?.key;if(!t||!r||!i)return;let a=t.side??`additions`,o=[rt(r,n.item.id,a,t.start),rt(r,n.item.id,t.endSide??a,t.end)].filter(e=>e!=null);if(!o.length)return;let s=Math.min(...o),c=Math.max(...o),l=h.draft;(l?.key!==i||l.start!==s||l.end!==c)&&Z(e,{key:i,start:s,end:c})},renderAnnotation(e){return e.metadata?u(e.metadata):void 0},renderCustomHeader(e,t){let n=t.item;if(n.type!==`diff`)return document.createElement(`div`);let r=n.fileDiff,i=0,a=0;for(let e of r.hunks)i+=e.additionLines,a+=e.deletionLines;let o={label:r.prevName&&r.prevName!==r.name?`${r.prevName} → ${r.name}`:r.name,status:ni[r.type],collapsed:!!n.collapsed,notes:0,errors:0,additions:i,deletions:a,patchless:!1,open:!1},s=Fe(o),c=x.heads.get(n.id);if(c?.sig===s)return c.el;let l=Se(o,{fold:e=>de(n.id,e),comment(){},errors(){},open(){}});return x.heads.set(n.id,{sig:s,el:l}),l},onPostRender(e,t,n,r){let i=e;if(n===`unmount`){g.get(i)?.(),g.delete(i);return}g.has(i)?nt(i):g.set(i,se(i,r.item.id))}},me=()=>{let t=e.v.clientWidth;if(!x.viewer||!t)return;let n=Ft(),r=n===`auto`?t<ri?`unified`:`split`:n;r!==S.diffStyle&&(S.diffStyle=r,x.viewer.setOptions({...S}))},he=new ResizeObserver(me);Zt(`diff-layout`,me,f.abort.signal);let _e=e=>{let t=h.comments||[],n=h.draft,r=n&&n.key===h.doc?.key?n:null,i=new Map,a=(t,n)=>{let r=e.rows[Math.min(t,e.rows.length-1)];if(!r)return;let a=i.get(r.id)??[];i.set(r.id,a),a.push({side:r.side,lineNumber:r.line,metadata:n})};for(let e of t)a(e.line_end,{comment:e});return r&&a(r.end,{draft:r}),{by:i,sig:t.map(e=>`${e.id}:${e.line_end}:${e.text}`).join(`|`)+(r?`|d${r.start}-${r.end}`:``),drafting:!!r}},ve=()=>{let t=h.patch;if(!t){x.shown&&(x.shown=null,x.items=[],x.heads.clear(),x.viewer?.setItems([]),l(``,null));return}let n=x.viewer;n||(n=x.viewer=new Ye(S,Ke()),n.setup(e.v),he.observe(e.v)),me();let r=t!==x.shown,i=_e(t);if(r)x.shown=t,x.heads.clear(),x.annSig=i.sig,x.items=t.files.map(e=>({id:e.id,type:`diff`,fileDiff:e.fileDiff,annotations:i.by.get(e.id)??[],version:1})),n.setItems(x.items),n.scrollTo({type:`position`,position:0,behavior:`instant`});else if(i.sig!==x.annSig){x.annSig=i.sig;for(let e of x.items){let t=i.by.get(e.id)??[];(t.length||e.annotations?.length)&&(e.annotations=t,e.version=(e.version??0)+1,n.updateItem(e))}i.drafting||n.clearSelectedLines()}if(r||h.findJump!==x.jumped){x.jumped=h.findJump;let e=h.patchHit;l(h.findQuery,e,Le(h.patchHits)??void 0),e&&(x.items.find(t=>t.id===e.key)?.collapsed&&de(e.key,!1),n.scrollTo(e.line?{type:`line`,id:e.key,lineNumber:e.line,side:e.side||`additions`,align:`center`,behavior:`instant`}:{type:`item`,id:e.key,behavior:`instant`}))}},ye=jt(e=>{m.themeType=e,_.setOptions({...m}),S.themeType=e,x.viewer?.setOptions({...S})}),be=new WeakMap,xe=0,Ce=e=>{let t=be.get(e);return t||be.set(e,t=++xe),t},we=()=>{for(let e of f.hosts)pe(e,f.list,`file`)},Te=(t,n=!1)=>{let r=t?.kind===`text`&&St()&&!$r(t.key)?{...H(t.key),rev:`worktree`}:null,i=r?`${Ce(t)}|${h.docChecked}`:``;if(i===f.sig&&!n)return;let a=!!r&&t.key===f.key;if(f.sig=i,f.key=r?t.key:``,f.ctl?.abort(),f.ctl=null,f.retry&&clearTimeout(f.retry),f.retry=0,!a&&f.list.length&&(f.list=[],we()),!r)return;let o=f.ctl=new AbortController;fe(e.ab,[r],(e,t)=>{if(i===f.sig){if(t.length){f.retry=setTimeout(()=>{f.retry=0,h.active&&i===f.sig&&Te(h.doc,!0)},Qr);return}f.list=e.get(ae(r))??[],we()}},o.signal)},Ee=()=>{h.active&&Te(h.doc,!0)};return Zt(`lsp`,Ee,f.abort.signal),Zt(`lsp-off`,Ee,f.abort.signal),nr(Ee,f.abort.signal),{viewer:_,intel:p,mdBox:y,syncMd:le,patchBox:x,patchRo:he,syncPatch:ve,loadProblems:Te,probBox:f,unsubScroll:ie,lineBox:v,unregTheme:ye,hostUnregs:g,cards:o,sessionsKey:i(n()),shown:null,item:null,itemId:``,annSig:``,n:0,nonce:-1,backDone:null,jumped:e.cc,warmKey:``,warmTimer:0}},onUpdate:function(){let t=i(this.sessions||[]);if(t!==this.sessionsKey){this.sessionsKey=t;for(let e of this.cards.values())p(e)}let n=this.doc;this.active&&this.loadProblems(n);let r=this.active&&n?.kind===`text`&&!$r(n.key)?n.key:``;r!==this.warmKey&&(this.warmKey=r,this.warmTimer&&clearTimeout(this.warmTimer),r&&(this.warmTimer=setTimeout(()=>{this.warmKey===r&&ze(e.ab,[H(r)])},1e3)));let a=this.shown,o=n!==this.shown;if(o){let e=n?.kind===`text`&&n.reload&&this.shown?.key===n.key?this.viewer.getScrollTop():null;this.shown=n,this.intel.close(),this.itemId=n?.kind===`text`?`${n.key}#${++this.n}`:``,this.item=n?.kind===`text`?{id:this.itemId,type:`file`,file:{name:H(n.key).path,contents:n.contents},annotations:[],version:1}:null,this.annSig=``,this.cards.clear(),this.viewer.setItems(this.item?[this.item]:[]),e!=null&&this.viewer.scrollTo({type:`position`,position:e,behavior:`instant`})}let s=this.comments||[],c=this.draft,u=c&&n?.kind===`text`&&c.key===n.key?c:null,d=this.mdOn||!!this.patch,f=d?`elsewhere`:s.map(e=>`${e.id}:${e.line_end}:${e.text}`).join(`|`)+(u?`|d${u.start}-${u.end}`:``);this.item&&f!==this.annSig&&(this.annSig=f,this.item.annotations=d?[]:[...s.map(e=>({lineNumber:e.line_end,metadata:{comment:e}})),...u?[{lineNumber:u.end,metadata:{draft:u}}]:[]],this.item.version=(this.item.version??0)+1,this.viewer.updateItem(this.item),u||this.viewer.clearSelectedLines());let m=this.line??null;if(n?.kind===`text`&&(o&&!n.reload||this.revealNonce!==this.nonce)){this.nonce=this.revealNonce;let e=this.itemId,t=this.back;t&&t!==this.backDone&&t.file===n.key?(this.backDone=t,requestAnimationFrame(()=>{this.itemId===e&&this.viewer.scrollTo({type:`position`,position:t.top,behavior:`instant`})})):m?requestAnimationFrame(()=>{this.itemId===e&&(this.viewer.scrollTo({type:`line`,id:e,lineNumber:m,align:`center`,behavior:`instant`}),this.viewer.setSelectedLines({id:e,range:{start:m,end:m}}))}):o&&this.viewer.scrollTo({type:`position`,position:0,behavior:`instant`})}if(this.findJump!==this.jumped&&!this.patch){this.jumped=this.findJump;let e=this.findQuery,t=this.findLine,r=this.itemId;if(!e||!t||n?.kind!==`text`)l(e,null,r?[r]:[]);else{let i={key:r,path:n.key,repo:H(n.key).worktree,line:t,side:`additions`,preview:``};l(e,i,[r]),this.viewer.scrollTo({type:`line`,id:r,lineNumber:t,align:`center`,behavior:`instant`})}}this.syncMd(a),this.syncPatch()},onDestroy:function(){this.mdBox.view?.destroy(),this.patchRo.disconnect(),this.patchBox.viewer?.cleanUp();for(let e of this.hostUnregs.values())e();l(``,null),this.warmTimer&&clearTimeout(this.warmTimer),this.probBox.abort.abort(),this.probBox.ctl?.abort(),this.probBox.retry&&clearTimeout(this.probBox.retry);for(let e of this.probBox.hosts)ue(e);this.probBox.hosts.clear(),this.intel.destroy(),this.unsubScroll(),clearTimeout(this.lineBox.timer),this.unregTheme(),this.viewer.cleanUp();let e=window;(e.__INSTANCE===this.viewer||e.__INSTANCE===this.patchBox.viewer)&&(delete e.__INSTANCE,delete e.__TOGGLE)}},1)),K=C(209,bc,23),xc=N(101,e=>{fd(e,e.c3?.files),K(e)}),Sc=e=>{xc(e,e.bf===`text`&&ti(e.bg)?ve(e.bh,e.bg):null)},Cc=N(210,G),wc=C(184,e=>Cc(e,mf(e)),3),Tc=N(183,e=>{wc(e),G(e)}),Ec=C(133,e=>Tc(e,hf(e)),4),Dc=k(`x93`,e=>{e.az&&e.az!==e.be?.key?e.ds(e.az):!e.az&&e.be&&q(e,null)}),Oc=C(163,Dc,2),q=E(76,e=>{nd(e,e.be?.kind),id(e,e.be?.key),ad(e,e.be?.contents),od(e,e.be?.src),sd(e,e.be?.size),cd(e,e.be?.why),Sc(e),Ec(e),Oc(e),K(e)}),kc=E(83,e=>{Ec(e),K(e)}),Ac=O(22,`<div aria-hidden=true><span></span></div>`,` D `,mi),jc=(e,t)=>{M(e.t,[`_hs`,t&&`_hR`]),M(e.u,[`_hU`,t&&`_hR`]),M(e.v,[`_hs`,t&&`_hR`]),Ac(e,+!t)},Mc=C(85,e=>jc(e,e.bm&&!!e.az&&e.bg!==e.az),2),Nc=E(84,Mc),Pc=O(14,un,(e=>`/${e}&`)(sn),Qa),Fc=F(Xa),Ic=E(86,e=>{Pc(e,+!e.bo),Fc(e)}),Lc=E(87,e=>he(e.z,e.bp)),Rc=N(197,e=>dt(e,e.er)),zc=C(91,e=>Rc(e,gf(e))),Bc=E(90,e=>{zc(e),G(e),Va(e)}),Vc=E(92,Ha),Hc=N(185,e=>{Od(e,e.ef?.length),K(e)}),Uc=C(94,e=>Hc(e,(()=>{let t=e.bv.trim();if(!t||e.bf!==`text`)return[];let n=/[A-Z]/.test(t),r=n?t:t.toLowerCase(),i=[],a=e.bh.split(`
7
- `);for(let e=0;e<a.length&&i.length<1e3;e++)(n?a[e]:a[e].toLowerCase()).includes(r)&&i.push(e+1);return i})()),2),Wc=N(187,e=>{kd(e,e.eh?.length),K(e)}),Gc=C(109,e=>Wc(e,e.c7?Oe(e.ca,e.bv):[]),2),Kc=E(93,e=>{Uc(e),Gc(e),K(e)}),qc=E(95,e=>{K(e),Ga(e)}),Jc=N(192,qa),Yc=C(191,e=>Jc(e,_f(e))),Xc=N(190,e=>{Yc(e),Ka(e)}),Zc=C(189,e=>Xc(e,e.c0?e.c1:e.c7?e.ei:e.eg),4),Qc=C(107,e=>P(e.t,`hidden`,e.bf!==`text`||e.c0||e.c7),2),$c=N(98,e=>{P(e.u,`hidden`,!e.c0),Zc(e),Qc(e),K(e)}),el=C(97,e=>$c(e,e.bf===`text`&&ei(e.bg)&&e.by===`preview`),2),tl=F(Ma),nl=E(96,e=>{el(e),tl(e)}),rl=E(99,Zc),il=N(108,Gc),al=C(106,e=>il(e,e.c7?e.c4.map(e=>({key:e.id,path:e.fileDiff.name,repo:``,patch:[...e.fileDiff.deletionLines,...e.fileDiff.additionLines].join(``),fileDiff:e.fileDiff})):[])),ol=N(105,e=>{P(e.v,`hidden`,!e.c7),al(e),Gc(e),Zc(e),Qc(e),K(e)}),sl=C(104,e=>ol(e,!!e.c5&&e.c2===`diff`)),cl=F(Ta),ll=E(100,e=>{sl(e),cl(e)}),ul=E(110,e=>{Yc(e),K(e)}),J=C(151,e=>re(e.e,{filter:e.cd,filterChange:yf(e),shown:e.dg,total:e.dd,onOpen:vf(e)}),5),dl=E(111,e=>{Vr(e.y,e.cd),Us(e),J(e)}),fl=N(206,e=>{zr(e.y,xf(e)),ke(e.z,bf(e)),K(e)}),pl=C(205,e=>fl(e,Sf(e)),3),ml=C(114,e=>Ur(e.y,e.ce+(e.af??0)+e.cf),2),hl=E(112,e=>{pl(e),ml(e),K(e)}),gl=E(113,e=>{J(e),ml(e)}),_l=k(`x96`,e=>Ad(e,e.bf===`text`&&!e.ch)),vl=C(117,_l),yl=k(`x95`,e=>{e.bq&&(e.bf!==`text`||e.en&&(!e.an||e.ch))&&$(e,!1)}),bl=C(194,yl,4),xl=C(116,e=>{M(e.a,[`_g9`,{_g_:e.ch||!e.ax}]),Pr(e.y,e.ch||!e.ax)}),Sl=E(115,e=>{vl(e),bl(e),xl(e),J(e)}),Cl=k(`x100`,e=>{{let t=e.af??0;t!==e.ck&&(Tl(e,t),(e.ax!==e.cl||e.b1)&&Sl(e,!1)),El(e,e.ax??null)}}),wl=C(120,Cl,4),Tl=E(118,wl),El=E(119,wl),Dl=E(121,e=>{Xo(e),oo(e)}),Ol=N(159,Ca),kl=C(157,e=>Ol(e,Cf(e)),2),Al=k(`x92`,e=>{e.dm(),e.do(),e.dw()}),jl=C(167,Al,2),Ml=N(156,e=>{kl(e),jl(e),wc(e),G(e)}),Nl=C(155,e=>Ml(e,wf(e)),2),Pl=N(122,Nl),Fl=N(158,e=>{jl(e),wc(e),G(e)}),Il=C(124,e=>Fl(e,Tf(e))),Ll=N(123,Il),Rl=N(162,Oc),zl=C(126,e=>Rl(e,Ef(e))),Bl=N(164),Vl=C(127,e=>Bl(e,Df(e)),2),Hl=N(125,e=>{zl(e),Vl(e),Ec(e)}),Ul=N(181,K),Wl=N(182,K),Y=C(180,e=>{Ul(e,Of(e)),Wl(e,kf(e))},5),Gl=F(Ms,ys),Kl=N(169,e=>{Ue(e.j,jf(e)),Ie(e.j,Af(e)),Y(e),K(e),Gl(e)}),X=C(168,e=>Kl(e,{workspaceId:e.ab,seq:e.cw,list:Lf(e),set:If(e),sections:Ff(e),reload:Pf(e),handed:Nf(e),fail:Mf(e)}),5),ql=N(172,K),Jl=N(173,e=>{Ed(e,e.e3?.length),ks(e)}),Yl=N(176,e=>{Dd(e,e.e6?.length),Fs(e)}),Xl=C(171,e=>{ql(e,e.az?e.cu.filter(t=>`${b(t.worktree)}/${t.path}`===e.e0&&(t.side===`file`||t.side===`additions`)&&t.line_end>0):[]),Jl(e,e.az?e.cu.filter(t=>`${b(t.worktree)}/${t.path}`===e.e0&&t.side===`deletions`):[]),Yl(e,e.az?e.cu.filter(t=>`${b(t.worktree)}/${t.path}`===e.e0&&t.side!==`deletions`&&t.line_end<=0):[])},2),Zl=E(128,e=>{gd(e,e.cu?.length),X(e),Xl(e)}),Ql=N(166,e=>{X(e),jl(e),wc(e),G(e)}),$l=C(131,e=>Ql(e,Rf(e))),eu=N(130,e=>{$l(e),X(e)}),Z=E(132,e=>{Y(e),Ec(e),K(e)}),tu=k(`x99`,e=>{(e.ag??0)!==e.d0&&(ru(e,e.ag??0),Lc(e,!0))}),nu=C(135,tu),ru=E(134,nu),iu=N(154,Nl),au=E(160,cc),ou=E(165,X),su=N(179,Y),cu=k(`x94`,e=>Ce(e.es,Ls(e),!!e.bq,e.en,Ra(e))),lu=C(199,cu,2),uu=E(193,e=>{bl(e),lu(e),Ja(e)}),du=N(198,lu),fu=k(`x88`,e=>{e.an&&window.addEventListener(`keydown`,t=>{Yn(t,`openInFiles`)&&e.fm()&&(t.preventDefault(),t.stopPropagation())},{capture:!0,signal:vt(e,3)})}),pu=C(229,e=>{yt(e,3),fu(e)}),mu=N(228,pu),Q=C(214,e=>mu(e,Bf(e)),6),hu=N(204,e=>{pl(e),Q(e)}),gu=C(203,e=>hu(e,Vf(e)),3),_u=E(202,e=>{gu(e),Q(e)}),vu=F(xo),yu=E(213,e=>{Id(e,e.f7?.binary),Ld(e,e.f7?.additions),Rd(e,e.f7?.deletions),W(e),Q(e),vu(e)}),bu=k(`x102`,e=>{Rs(e,qn()),Gn(()=>{Rs(e,qn())},vt(e,0));{let t=matchMedia(ln);t.addEventListener(`change`,()=>{uu(e,t.matches)},{signal:vt(e,1)})}L(e.m,`click`,function(){Lc(e,!0)})});function xu(e){yt(e,0),yt(e,1),M(e.b,`_ha`),M(e.c,`_ge`),ie(e.d),S(e.d,`files`),u(e.e),M(e.i,[`_gh`,`_hq`]),Ee(e.j),M(e.k,`_hn`),M(e.m,ot),Hn(e.n),Vn(e.n,14),Wn(e.n),M(e.p,`_hr`),jr(e.y),ye(e.z),Ve(e.z,Hf(e)),Ge(e.z),Rs(e,0),Bs(e,0),lc(e,null),vc(e,null),yc(e,!1),q(e,null),kc(e,0),Nc(e,!1),Ic(e,null),Lc(e,!1),Bc(e,0),Vc(e,``),Kc(e,``),qc(e,0),nl(e,Ht()),rl(e,0),ll(e,en()),ul(e,0),dl(e,``),hl(e,0),gl(e,0),Sl(e,!1),Tl(e,0),El(e,null),Dl(e,``),Pl(e,{issued:0,applied:0}),Ll(e,{issued:0,applied:0}),Hl(e,{issued:0,applied:0}),Zl(e,[]),eu(e,{issued:0,applied:0}),Z(e,null),ru(e,0),iu(e,{running:null,joinable:!1,again:!1}),au(e,null),ou(e,null),su(e,zf),uu(e,wt()),du(e,{home:null,raf:0,open:!1,docked:!1,lost:null}),_u(e,null),yu(e,null),bu(e)}var Su=N(170,Xl),Cu=O(17,`<section aria-label="Comments on the file"><div><span>Comments on the file</span></div><!></section>`,` D b%`,Is),wu=C(178,e=>Cu(e,e.az&&e.bg===e.az&&e.e7?0:1),2),Tu=O(18,`<section aria-label="Comments on removed lines"><div><span>Comments on removed lines</span><a>Show in Diff</a></div><!></section>`,` D Db l%`,Es),Eu=C(175,e=>Tu(e,e.az&&e.bg===e.az&&e.e4?0:1),2),Du=k(`x101`,e=>{e.az,Bs(e,0)}),Ou=N(61,e=>{Su(e,e.az?`${b(H(e.az).worktree)}/${H(e.az).path}`:null),cc(e),Xl(e),Oc(e),Mc(e),nc(e),W(e),Q(e),wu(e),Eu(e),Xs(e),Ds(e),Wo(e),Vo(e),Du(e)}),ku=N(62,Qs),Au=O(6,((e,t)=>`<span><button type=button title="File tree" aria-label="Back to the file tree">${e}</button>${t}</span>`)(cr,Gr),((e,t)=>` D D/${e}&l/${t}&l`)(lr,Wr),ts),ju=O(16,(e=>`<div>${e}</div>`)(Gr),(e=>` D/${e}&l`)(Wr),Qo),Mu=D(59,e=>{Rr(e.y,e.ax),Ou(e,e.ax&&!e.ax.endsWith(`/`)?e.ax:null),ku(e,e.ax?.endsWith(`/`)?e.ax:null),Au(e,+!e.ax),ju(e,+!e.ax),wl(e),gu(e),xl(e),J(e),$o(e),Zo(e)}),Nu=C(30,e=>Mu(e,e.a2,e.a3)),Pu=N(28,Nu),Fu=N(29,Nu),Iu=D(63,e=>{wl(e),W(e),Q(e),K(e)}),Lu=C(33,e=>Iu(e,e.a5,e.a6)),Ru=N(31,Lu),zu=N(32,Lu),Bu=D(65,e=>{Vu(e,e.b3?.key),Hu(e,e.b3?.line),Uu(e,e.b3?.section)}),Vu=N(67,W),Hu=N(68,W),Uu=N(69,W),Wu=C(36,e=>Bu(e,e.a8,e.a9)),Gu=N(34,Wu),Ku=N(35,Wu),qu=E(73,e=>{gc(e),dc(e),kl(e),G(e)}),Ju=E(200,e=>{Je(e.z,e.eu),Ks(e)}),Yu=N(207,F(Hi)),Xu=F(ua,ia,Qi,Gi,Pi),Zu=N(208,e=>{K(e),Xu(e)}),Qu=N(37,e=>{qu(e,Ot(e.ab)),Ju(e,It(e.ab)),Yu(e,Uf(e)),Zu(e,Wf(e)),gc(e),Nl(e),Il(e),kl(e),zl(e),Vl(e),$l(e),X(e),Ec(e),pl(e),G(e),nc(e),K(e),Ts(e),ds(e)}),$u=O(10,Rn,(e=>`0${e}&`)(vn),Ba),ed=O(11,(e=>`<button type=button aria-label="Find in file">${e}</button>`)(Kt),(e=>` D/${e}&l`)(Rt),cs),td=F(fo),nd=N(77,e=>{$u(e,e.bf===`text`?0:1),ed(e,e.bf===`text`?0:1),el(e),Y(e),Uc(e),vl(e),bl(e),zc(e),gu(e),G(e),Qc(e),Xs(e),td(e)}),rd=F(mo),id=N(78,e=>{el(e),Vl(e),Y(e),gu(e),G(e),Mc(e),wu(e),Eu(e),ms(e),Jo(e),rd(e)}),ad=N(79,e=>{Y(e),Uc(e),G(e)}),od=N(80,e=>{Yo(e),Uo(e),ro(e),to(e)}),sd=N(81,hs),cd=N(82,$a),$=D(88,e=>{bl(e),lu(e),ls(e),za(e)}),ld=C(40,e=>$(e,e.ac,e.ad)),ud=N(38,ld),dd=N(39,ld),fd=N(102,e=>{md(e,e.c4?.length),al(e)}),pd=F(ho),md=N(103,e=>{sl(e),pd(e)}),hd=N(41,e=>{wl(e),ml(e),K(e)}),gd=N(129,e=>Te(e.j,e.cv)),_d=N(42,nu),vd=O(5,n,(e=>`/${e}&`)(Ae),xa),yd=O(7,`<span></span>`,` `,bi),bd=(e,t)=>{vd(e,t>1?0:1),yd(e,+(t>1))},xd=N(43,pc),Sd=N(44,pc),Cd=N(147,J),wd=N(150,J),Td=N(45,X),Ed=N(174,Eu),Dd=N(177,wu),Od=N(186,Zc),kd=N(188,Zc),Ad=D(195),jd=C(48,e=>Ad(e,e.ak,e.al)),Md=N(46,jd),Nd=N(47,jd),Pd=N(49,e=>{bl(e),G(e),pu(e),K(e)}),Fd=N(50,e=>{pl(e),Q(e)}),Id=N(230,F(Oi)),Ld=N(231,F(ji,xi)),Rd=N(232,F(Mi,Ci)),zd=N(217,as),Bd=N(221,e=>{Vd(e,e.ff?.length),Mo(e)}),Vd=N(226,Ro),Hd=N(222,e=>{Ud(e,e.fg?.length),Po(e)}),Ud=N(225,Lo),Wd=F(Yi),Gd=N(223,e=>{Kd(e,e.fh?.length),Wd(e)}),Kd=N(224,Io),qd=N(51,Q),Jd=(e,t)=>de(e.d,t),Yd=(e,t)=>m(e.d,t),Xd=(e,t)=>x(e.d,t),Zd=F(As,_s),Qd=N(55,e=>{De(e.j,e.at),K(e),Zd(e)}),$d=(e,t)=>Nr(e.y,t??!0),ef=N(57,K),tf=(e,t)=>{Pu(e,t.file),Fu(e,t.fileChange),Ru(e,t.line),zu(e,t.lineChange),Gu(e,t.diffAt),Ku(e,t.diffAtChange),Qu(e,t.workspaceId),ud(e,t.findOpen),dd(e,t.findOpenChange),hd(e,t.revealNonce),_d(e,t.goNonce),xd(e,t.workspaceBranch),Sd(e,t.workspaceName),Td(e,t.onSent),Md(e,t.findable),Nd(e,t.findableChange),Pd(e,t.active),Fd(e,t.onJump),qd(e,t.onOpenDiff),Jd(e,t.changesHref),Yd(e,t.allHref),Xd(e,t.filesHref),Qd(e,t.sessions),$d(e,t.treeOpen),ef(e,t.back)},nf=e=>function(){Kc(e._,``),l(``,null)},rf=e=>t=>{$(e._,t)},af=e=>function(t){e._.em(e._.bx+t)},of=e=>function(t){Kc(e._,t),e._.em(0)},sf=e=>function(){Ic(e._,null)},cf=e=>(t,n)=>te(e._._.dz,t,n),lf=e=>(t,n)=>ne(e._._.dz,t,n),uf=e=>t=>je(e._._.dz,t),df=e=>(t,n)=>te(e._._.dz,t,n),ff=e=>(t,n)=>ne(e._._.dz,t,n),pf=e=>t=>je(e._._.dz,t),mf=e=>()=>{e.dm(),e.do(),e.ed(),e.dw()},hf=e=>async()=>{let t=e.be;if(t?.kind!==`text`&&t?.kind!==`none`&&t?.kind!==`binary`||e.cy)return;let n=Pt(e.cr),{worktree:r,path:i}=H(t.key);try{let a=await z(`/api/workspaces/${e.ab}/diff/contents?worktree=${encodeURIComponent(r)}&path=${encodeURIComponent(i)}&rev=worktree`);if(!R(e.cr,n)||e.be!==t||e.cy)return;let o=Zr(t.key,a);o.kind===`text`&&t.kind===`text`?o.contents===t.contents?kc(e,+e.bl+1):q(e,{...o,reload:!0}):(o.kind!==t.kind||o.kind===`binary`&&t.kind===`binary`&&o.size!==t.size)&&q(e,o)}catch{}},gf=e=>()=>{e.bf===`text`&&($(e,!0),Bc(e,+e.bs+1),Ra(e)())},_f=e=>t=>{let n=e.ek;qc(e,n?(t%n+n)%n:0),ul(e,+e.cc+1)},vf=e=>function(){e.ax&&!e.ch&&wt()&&(Sl(e,!0),gl(e,+e.cf+1))},yf=e=>t=>{dl(e,t)},bf=e=>function(t,n){e.f0(t,n)},xf=e=>function(t){e.f0(t)},Sf=e=>(t,n)=>{e.ao?.(e.ey()),Mu(e,t),Iu(e,n||null),Sl(e,!1),hl(e,+e.ce+1),!t.endsWith(`/`)&&(zt(e.ab,t),Ju(e,It(e.ab)))},Cf=e=>t=>{let n=t??`*`;n!==e.bb&&(qu(e,n),rn(e.ab,n),e.dm())},wf=e=>()=>Un(e.dk,async()=>{let t=Dt(e.co),n=Ot(e.ab),r=n&&/[@#]/.test(n)?`?section=${encodeURIComponent(n)}`:``;try{let n=await z(`/api/workspaces/${e.ab}/files${r}`);R(e.co,t)&&lc(e,n)}catch(n){R(e.co,t)&&Ic(e,`Loading files failed: ${kt(n)}`)}}),Tf=e=>async()=>{let t=Dt(e.cp);try{let n=await z(`/api/workspaces/${e.ab}/sections`);R(e.cp,t)&&(vc(e,n),yc(e,!1))}catch{}},Ef=e=>async t=>{let n=Dt(e.cr),{worktree:r,path:i}=H(t),a=`worktree=${encodeURIComponent(r)}&path=${encodeURIComponent(i)}&rev=worktree`,o=Ln(i);if(Dl(e,``),o){q(e,{key:t,kind:o.kind,src:`/api/workspaces/${e.ab}/diff/blob?${a}&t=${n}`});return}Nc(e,!0);try{let r=await z(`/api/workspaces/${e.ab}/diff/contents?${a}`);if(!R(e.cr,n))return;q(e,Zr(t,r))}catch(r){R(e.cr,n)&&q(e,{key:t,kind:`none`,why:`Open failed: ${kt(r)}`})}finally{R(e.cr,n)&&Nc(e,!1)}},Df=e=>async t=>{let n=Pt(e.cr),{worktree:r,path:i}=H(t),a;try{({size:a}=await z(`/api/workspaces/${e.ab}/diff/contents?worktree=${encodeURIComponent(r)}&path=${encodeURIComponent(i)}&rev=worktree`))}catch{}R(e.cr,n)&&e.bg===t&&q(e,r===V&&a!=null?{key:t,kind:`binary`,size:a}:{key:t,kind:`none`,why:`This image can't be shown here.`})},Of=e=>async t=>{let n=e.cy;Z(e,null),n&&e.bf===`text`&&e.bg===n.key&&!await s(e.dz,e.e9(n,e.bh,t))&&!e.cy&&Z(e,n)},kf=e=>(t,n)=>{let r=e.cy;return!r||!t.trim()||e.bf!==`text`||e.bg!==r.key?Promise.resolve(!1):g(e.dz,e.e9(r,e.bh,t),n)},Af=e=>t=>Ne(e.dz,{session:t}),jf=e=>()=>Ne(e.dz,{clipboard:!0}),Mf=e=>t=>{Ic(e,t)},Nf=e=>t=>{`session`in t&&e.aj?.(t.session),Z(e,null)},Pf=e=>()=>void e.dw(),Ff=e=>()=>e.dv,If=e=>t=>{Zl(e,t)},Lf=e=>()=>e.cu,Rf=e=>async()=>{try{let t=await r(e.ab,e.cw);if(!t)return;Zl(e,t),ou(e,await v(e.ab,t))}catch{}};function zf(e,t,n){return{...H(e.key),side:`file`,line_start:e.start,line_end:e.end,text:n.trim(),snippet:d(t,e.start,e.end,`file`)}}var Bf=e=>()=>{let t=e.f7;if(!t||t.file!==e.az)return!1;let n=t.file.slice(t.file.indexOf(`/`)+1);return e.ao?.(e.ey()),e.ap?.(`${t.section}/${n}`,e.ew?.line()||e.b1||null),!0},Vf=e=>()=>e.bf===`text`?{view:`files`,file:e.bg,top:e.ew?.top()??0}:e.ax?{view:`files`,file:e.ax,top:0}:null,Hf=e=>t=>{Lc(e,t)},Uf=e=>t=>{let{worktree:n,path:r}=H(t);return`/api/workspaces/${e.ab}/diff/blob?${new URLSearchParams({worktree:n,path:r,rev:`worktree`})}`},Wf=e=>t=>fn`${{search:{file:t}}}/w/${e.ab}/files`;A.x31=nf,A.x28=rf,A.x30=af,A.x29=of,A.x32=sf,A.x38=cf,A.x37=lf,A.x36=uf,A.x35=df,A.x34=ff,A.x33=pf,A.x22=mf,A.x15=hf,A.x17=gf,A.x16=_f,A.x25=vf,A.x24=yf,A.x41=bf,A.x39=xf,A.x19=Sf,A.x2=Cf,A.x0=wf,A.x1=Tf,A.x3=Ef,A.x4=Df,A.x13=Of,A.x14=kf,A.x27=Af,A.x26=jf,A.x11=Mf,A.x10=Nf,A.x9=Pf,A.x8=Ff,A.x7=If,A.x6=Lf,A.x5=Rf,A.x12=zf,A.x23=Bf,A.x18=Vf,A.x40=Hf,A.x20=Uf,A.x21=Wf;var Gf=nn(`x`,Kr,qr,xu,tf);export{tf as $input,Pd as $input_active,Yd as $input_allHref,ef as $input_back,Jd as $input_changesHref,Gu as $input_diffAt,Ku as $input_diffAtChange,Pu as $input_file,Fu as $input_fileChange,Xd as $input_filesHref,ud as $input_findOpen,dd as $input_findOpenChange,Md as $input_findable,Nd as $input_findableChange,_d as $input_goNonce,Ru as $input_line,zu as $input_lineChange,Fd as $input_onJump,qd as $input_onOpenDiff,Td as $input_onSent,hd as $input_revealNonce,Qd as $input_sessions,$d as $input_treeOpen,xd as $input_workspaceBranch,Qu as $input_workspaceId,Sd as $input_workspaceName,xu as $setup,Kr as $template,qr as $walks,Gf as default};
5
+ `).map(e=>({removed:e[0]===`-`,text:e.slice(1)})),n=t.findIndex(e=>e.removed),r=t.findLastIndex(e=>e.removed);return n<0?t:t.slice(Math.max(0,n-1),r+2)}var li=e=>M(e.a,`_hR`),ui=T(1,1,e=>P(e.a,`src`,`${e._.k}#t=0.1`)),di=e=>{ui._(e),M(e.a,`_hP`)},fi=T(1,0,e=>P(e.a,`src`,e._.k)),pi=e=>{fi._(e),M(e.a,`_hP`)},mi=e=>{M(e.a,`_h2`),M(e.b,`_bi`)},hi=(e,t)=>M(e.a,t&&`_hZ`),gi=(e,t)=>j(e.b,t),_i=w(0,`<span><!>
6
+ </span>`,` D%`,0,(e,t)=>{hi(e,t[0]?.removed),gi(e,t[0]?.text)}),vi=T(1,0,e=>_i(e,[ci(e._.f)])),yi=e=>{vi._(e),M(e.a,`_hY`)},bi=e=>M(e.a,`_hv`),xi=I(276,e=>j(e.b,e._._._.fp),e=>e._._._,`x47`),Si=e=>{xi(e),Ci(e),M(e.a,`_hr`),M(e.c,`_hs`)},Ci=I(277,e=>j(e.d,e._._._.fq),e=>e._._._,`x48`),wi=I(274,e=>mt(e,e._._.fl,`a`),e=>e._._,`x72`),Ti=wi,Ei=O(0,`changed`,0,0,`<span>+<!></span><span>−<!></span>`,` Db%l Db%`,Si),Di=C(1,e=>P(e.a,`title`,`${e._._.fo?`Changed (binary)`:`+${e._._.fp} −${e._._.fq}`} in its branch: show the change`),2),Oi=I(275,e=>{Ei(e,+!e._._.fo),Di(e)},e=>e._._,`x50`),ki=k(`x49`,e=>L(e.a,`click`,function(){e._._.fm()})),Ai=e=>{Oi(e),ji(e),Mi(e),M(e.a,ct),ki(e)},ji=I(276,Di,e=>e._._,`x51`),Mi=I(277,Di,e=>e._._,`x52`),Ni=C(6,e=>P(e.a,`href`,e._._._.f2(e.f))),Pi=I(264,Ni,e=>e._._._,`x82`),Fi=k(`x81`,e=>L(e.a,`click`,function(t){t.preventDefault(),e._._._.f0(e.f)})),Ii=e=>{Pi(e),M(e.a,`_hT`),M(e.c,`_hU`),Fi(e)},Li=N(5,e=>{j(e.b,U(e.f)),j(e.d,ai(e.f)),Ni(e)}),Ri=w(0,`<li><a> <span> </span></a></li>`,`D D b D `,Ii,(e,t)=>Li(e,t[0])),zi=I(266,e=>Ri(e,[e._._.fa.slice(0,8)]),e=>e._._,`x83`),Bi=e=>{zi(e),M(e.a,`_hS`)},Vi=N(10,e=>{fi(e),ui(e)}),Hi=I(263,e=>Vi(e,e._._._.f1(e.M)),e=>e._._._,`x78`),Ui=k(`x77`,e=>L(e.a,`click`,function(t){t.preventDefault(),e._._._.f0(e.M)})),Wi=e=>{Hi(e),Gi(e),M(e.a,`_hO`),P(e.a,`title`,U(e.M)),M(e.c,`_hQ`),j(e.d,U(e.M)),Ui(e)},Gi=I(264,e=>P(e.a,`href`,e._._._.f2(e.M)),e=>e._._._,`x79`),Ki=O(1,`<img alt loading=lazy decoding=async>`,` `,pi,`<video muted playsinline preload=metadata></video>`,` `,di),qi=(e,t)=>Ki(e,t===`image`?0:1),Ji=ut(0,`<li><a><!><span> </span></a></li>`,`D D%b D `,Wi,(e,t)=>qi(e,t[0]?.kind)),Yi=I(270,e=>Ji(e,[e._._.fh,`key`]),e=>e._._,`x80`),Xi=e=>{Yi(e),M(e.a,`_hN`)},Zi=C(6,e=>P(e.a,`href`,e._._.f2(e.f))),Qi=I(264,Zi,e=>e._._,`x76`),$i=k(`x75`,e=>L(e.a,`click`,function(t){t.preventDefault(),e._._.f0(e.f)})),ea=e=>{Qi(e),M(e.a,`_hK`),M(e.b,`_hL`),$i(e)},ta=N(5,e=>{P(e.c,`href`,`#${tr(e.f)}`),j(e.d,U(e.f)),Zi(e)}),na=(e,t)=>ta(e,t[0]),ra=C(5,e=>P(e.a,`href`,e._._.f2(e.e))),ia=I(264,ra,e=>e._._,`x74`),aa=k(`x73`,e=>L(e.a,`click`,function(t){t.preventDefault(),e._._.f0(e.e)})),oa=e=>{ia(e),M(e.a,`_hK`),jn(e.b),Nn(e.b,`_hM`),On(e.b,16),aa(e)},sa=N(4,e=>{j(e.c,U(e.e.slice(0,-1))),ra(e)}),ca=(e,t)=>sa(e,t[0]),la=C(5,e=>P(e.a,`href`,e._._.f2(e.e))),ua=I(264,la,e=>e._._,`x45`),da=k(`x44`,e=>L(e.a,`click`,function(t){t.preventDefault(),e._._.f0(e.e)})),fa=e=>{ua(e),M(e.a,`_hl`),da(e)},pa=N(4,la),ma=(e,t)=>j(e.b,t),ha=(e,t)=>{pa(e,t[0]?.key),ma(e,t[0]?.label)},ga=C(2,e=>j(e.b,e._._.di.get(e._.l)===`?`?`untracked`:e._._.di.get(e._.l)===`A`?`added`:`modified`)),_a=I(255,ga,e=>e._._,`x46`),va=e=>{_a(e),ya._(e),M(e.a,[`_bp`,`_3`])},ya=T(5,0,ga),ba=T(5,0,e=>o(e.a,e._.d4)),xa=e=>{ba._(e),Sa._(e),Ca._(e),Me(e.a),tt(e.a,[`_fJ`,`_hm`]),_(e.a)},Sa=T(5,0,e=>y(e.a,e._.d7)),Ca=T(5,0,e=>c(e.a,e._.dp)),wa=C(4,e=>{M(e.a,[`_bT`,e._._._.c2===e.d&&`_bS`]),P(e.a,`aria-pressed`,e._._._.c2===e.d?`true`:`false`)}),Ta=I(250,wa,e=>e._._._,`x56`),Ea=k(`x55`,e=>L(e.a,`click`,function(){e._._._.c2!==e.d&&(ll(e._._._,e.d),on(e.d))})),Da=e=>{Ta(e),Ea(e)},Oa=N(3,e=>{j(e.b,e.d===`diff`?`Diff`:`Source`),wa(e)}),ka=w(0,`<button type=button> </button>`,` D `,Da,(e,t)=>Oa(e,t[0])),Aa=e=>{M(e.a,[`_bR`,`_ho`]),ka(e,[[`diff`,`source`]])},ja=C(4,e=>{M(e.a,[`_bT`,e._._._.by===e.d&&`_bS`]),P(e.a,`aria-pressed`,e._._._.by===e.d?`true`:`false`)}),Ma=I(249,ja,e=>e._._._,`x54`),Na=k(`x53`,e=>L(e.a,`click`,function(){e._._._.by!==e.d&&(nl(e._._._,e.d),cn(e.d))})),Pa=e=>{Ma(e),Na(e)},Fa=N(3,e=>{j(e.b,e.d===`preview`?`Preview`:`Source`),ja(e)}),Ia=w(0,`<button type=button> </button>`,` D `,Pa,(e,t)=>Fa(e,t[0])),La=e=>{M(e.a,[`_bR`,`_ho`]),Ia(e,[[`preview`,`source`]])},Ra=_t(`x43`,4,`Ak`),za=T(10,0,e=>Sn(e.a,e._.bq)),Ba=e=>{za._(e),Va._(e),Ha._(e),Ga._(e),Ka._(e),qa._(e),Ja._(e),pt(e,0,Ya),Fn(e.a),yn(e.a,`Find in file`),An(e.a,rf(e)),En(e.a,nf(e)),Dn(e.a)},Va=T(10,0,e=>hn(e.a,e._.bs)),Ha=T(10,0,e=>Cn(e.a,e._.bu)),Ua=C(2,e=>Mn(e.a,e._.ek?`${e._.bx+1}/${e._.ek}`:`0/0`)),Wa=C(3,e=>bn(e.a,af(e))),Ga=T(10,0,e=>{Ua(e),Wa(e)}),Ka=T(10,0,e=>{kn(e.a,e._.ek>0),Ua(e)}),qa=T(10,0,e=>{Pn(e.a,of(e)),Wa(e)}),Ja=T(10,0,e=>wn(e.a,e._.en?`keybar`:`row`)),Ya=ft(`x64`,N(4)),Xa=I(244,e=>j(e.a,e._._.bo),e=>e._._,`x66`),Za=xt(`x67`,` `,` `,Xa),Qa=e=>{an(e.a),Ut(e.a,Za(e)),Wt(e.a,`inline`),Lt(e.a,sf(e)),Vt(e.a),Yt(e.a),Gt(e.a),Bt(e.a),Qt(e.a,{})},$a=T(23,7,e=>j(e.b,e._.bk)),eo=e=>{$a._(e),M(e.a,`_hH`)},to=T(23,4,e=>P(e.b,`src`,e._.bi)),no=e=>{to._(e),M(e.a,`_hC`),M(e.b,`_hF`)},ro=T(23,3,e=>P(e.b,`src`,e._.bi)),io=k(`x86`,e=>L(e.b,`loadedmetadata`,function(){let t=e.b,n=Math.round(t.duration);Dl(e._,`${t.videoWidth} × ${t.videoHeight}${Number.isFinite(n)?` · ${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`:``}`)})),ao=e=>{ro._(e),oo._(e),M(e.a,`_hC`),M(e.b,`_hE`),M(e.c,`_hD`),io(e)},oo=T(23,3,e=>j(e.d,e._.cn)),so=O(7,`<span role=group aria-label="Show as"></span>`,` `,La),co=C(14,e=>so(e,e._.bf===`text`&&e._.bg===e.l&&ei(e.l)?0:1),2),lo=O(8,`<span role=group aria-label="Show as"></span>`,` `,Aa),uo=C(15,e=>lo(e,e._.bf===`text`&&e._.bg===e.l&&e._.c5?0:1),3),fo=I(239,e=>{co(e),uo(e)},0,`x58`),po=gt(e=>{fo(e),mo(e),ho(e),vo(e),xo(e),M(e.a,`_hk`),M(e.c,`_hu`),ir(e.e)}),mo=I(240,e=>{co(e),uo(e)},0,`x59`),ho=I(251,uo,0,`x60`),go=O(5,`<span title=Uncommitted> </span>`,` D `,va),_o=C(12,e=>go(e,+!e._.di.get(e.l))),vo=I(255,_o,0,`x61`),yo=O(6,`<button type=button></button>`,` `,Ai),bo=C(13,e=>yo(e,e._.f7&&e._.f7?.file===e.l?0:1)),xo=I(265,bo,0,`x62`),So=(e,t)=>{wo(e,t?.folders),To(e,t?.name)},Co=w(1,`<a> </a>`,` D `,fa,ha),wo=(e,t)=>Co(e,[t]),To=(e,t)=>j(e.d,t),Eo=N(11,e=>{P(e.a,`title`,e.l),or(e.e,{text:e.l,label:`Copy path`}),So(e,oi(e.l)),_o(e),bo(e),co(e),uo(e),ya(e)}),Do=O(6,`<p>Nothing here is listed.</p>`,` `,li),Oo=C(7,e=>Do(e,e._.b9&&!e._.fj&&!e._.fk&&!e._.fi?0:1),3),ko=T(23,0,Oo),Ao=e=>{ko._(e),Mo._(e),Po._(e),Io._(e),Lo._(e),Ro._(e),Bo._(e),M(e.a,`_hI`),M(e.c,`_hJ`)},jo=w(4,`<li><a><svg viewBox="0 0 16 16" aria-hidden=true><use></use></svg> </a></li>`,`D D D l `,ea,na),Mo=T(23,0,e=>jo(e,[e._.ff])),No=w(3,(e=>`<li><a>${e}<!>/</a></li>`)(Tn),(e=>`D D/${e}&%m`)(gn),oa,ca),Po=T(23,0,e=>No(e,[e._.fg])),Fo=O(5,`<ul></ul>`,` `,Xi),Io=T(23,0,e=>{Fo(e,+!e._.fi),Oo(e)}),Lo=T(23,0,Oo),Ro=T(23,0,Oo),zo=O(1,`<div hidden> </div>`,`D `,Ti),Bo=T(23,0,e=>zo(e,+!e._.fl)),Vo=T(23,5,e=>P(e.b,`title`,e._.az)),Ho=e=>{Vo._(e),Uo._(e),M(e.a,`_hC`),M(e.b,`_hG`)},Uo=T(23,5,e=>P(e.b,`src`,e._.bi)),Wo=T(23,2,e=>P(e.b,`alt`,e._.az)),Go=k(`x85`,e=>L(e.b,`load`,function(){let t=e.b;Dl(e._,`${t.naturalWidth} × ${t.naturalHeight}`)})),Ko=e=>{Wo._(e),Jo._(e),Yo._(e),Xo._(e),M(e.a,`_hC`),M(e.b,`_hE`),M(e.c,`_hD`),Go(e)},qo=k(`x84`,e=>L(e.b,`error`,function(){e._.du(e._.bg)})),Jo=T(23,2,qo),Yo=T(23,2,e=>P(e.b,`src`,e._.bi)),Xo=T(23,2,e=>j(e.d,e._.cn)),Zo=T(16,0,e=>Eo(e.b,e._.ax)),Qo=e=>{Zo._(e),M(e.a,`_hp`),po._(e.b,e._)},$o=T(6,0,e=>Eo(e.d,e._.ax)),es=k(`x63`,e=>L(e.b,`click`,function(){Sl(e._,!0),gl(e._,+e._.cf+1)})),ts=e=>{$o._(e),M(e.a,[`_fJ`,`_hn`]),M(e.b,st),ur(e.c),dr(e.c,16),fr(e.c),po._(e.d,e._),es(e)},ns=T(23,1,e=>j(e.b,Jn(`goToFile`,e._.aw))),rs=e=>{ns._(e),as._(e),M(e.a,`_hH`)},is=O(2,`<ul></ul>`,` `,Bi),as=T(23,1,e=>is(e,+!e._.fb)),os=T(11,0,e=>P(e.a,`title`,`Find in file${Jn(`find`,e._.aw)}`)),ss=k(`x65`,e=>L(e.a,`click`,function(){$(e._,!0),Bc(e._,+e._.bs+1),Ra(e._)()})),cs=e=>{os._(e),ls._(e),M(e.a,at),$t(e.b),Xt(e.b,14),tn(e.b),ss(e)},ls=T(11,0,e=>P(e.a,`hidden`,e._.bq)),us=C(6,e=>P(e.d,`href`,`/api/workspaces/${e._.ab}/diff/blob?${new URLSearchParams({worktree:V,path:e.f,rev:`worktree`,download:`1`})}`)),ds=T(23,6,us),fs=e=>{ds._(e),ms._(e),hs._(e),M(e.a,`_hH`),M(e.d,[`_I`,`_J`])},ps=(e,t)=>gs(e,t.path),ms=T(23,6,e=>ps(e,H(e._.bg))),hs=T(23,6,e=>{j(e.b,e._.bj>Yr?`Too large to show`:`Binary`),j(e.c,er(e._.bj))}),gs=N(5,e=>{P(e.d,`download`,U(e.f)),us(e)}),_s=I(234,e=>_r(e.c,e._._.at||[]),e=>e._._,`x70`),vs=e=>{_s(e),ys(e),M(e.a,`_hX`),e.c},ys=I(257,e=>{vr(e.c,uf(e)),yr(e.c,lf(e)),br(e.c,cf(e))},e=>e._._,`x71`),bs=O(1,`<pre></pre>`,` `,yi),xs=N(5,e=>{bs(e,+!e.f),vi(e)}),Ss=(e,t)=>{gr(e.c,t),xs(e,t?.snippet)},Cs=(e,t)=>Ss(e,t[0]),ws=C(4,e=>P(e.c,`href`,_n({workspaceId:e._.ab,view:`diff`,file:e._.az,all:!0}))),Ts=T(18,0,ws),Es=e=>{Ts._(e),Ds._(e),ks._(e),M(e.a,`_hV`),M(e.b,`_hW`),M(e.c,`_bm`)},Ds=T(18,0,ws),Os=ut(3,(e=>`<div><!>${e}</div>`)(pr),(e=>` D%b/${e}&l`)(` b`),vs,Cs),ks=T(18,0,e=>Os(e,[e._.e3,`id`])),As=I(234,e=>_r(e.a,e._._.at||[]),e=>e._._,`x68`),js=e=>{As(e),Ms(e),e.a},Ms=I(257,e=>{vr(e.a,pf(e)),yr(e.a,ff(e)),br(e.a,df(e))},e=>e._._,`x69`),Ns=(e,t)=>gr(e.a,t),Ps=ut(2,pr,(e=>`/${e}&`)(` b`),js,(e,t)=>Ns(e,t[0])),Fs=T(17,0,e=>Ps(e,[e._.e6,`id`])),Is=e=>{Fs._(e),M(e.a,`_hV`),M(e.b,`_hW`)},Ls=_t(`x42`,10),Rs=E(58,e=>{P(e.m,`title`,`Go to file${Jn(`goToFile`,e.aw)}`),os(e),ns(e)}),zs=k(`x89`,e=>{{let t=e.f7,n=t&&e.az&&t.file===e.az?{section:t.section,key:`${t.section}/${t.file.slice(t.file.indexOf(`/`)+1)}`,line:e.b8||e.b1||null}:null;(n?.key!==e.b5||n?.line!==e.b6||n?.section!==e.b7)&&Bu(e,n)}}),W=C(215,zs,6),Bs=E(70,W),Vs=(e,t)=>Ze(e.z,t),Hs=(e,t)=>{Br(e.y,t),wd(e,t?.length)},Us=C(146,e=>Hs(e,e.cd.trim()?e.da.filter(be(e.cd)):e.da)),Ws=F(zi),Gs=N(216,e=>{zd(e,e.fa?.length),Ws(e)}),Ks=C(201,e=>Gs(e,e.eu.filter(t=>e.da.includes(t)))),qs=F(wi),Js=N(227,e=>{Bo(e),qs(e)}),Ys=O(23,`<div><!><ul><!><!></ul><!><!></div>`,` D%b D%b%l%b%`,Ao,`<div><p>Open a file from the tree, or go to one by name<!>.</p><!></div>`,` Eb%l%`,rs,`<div><img><span> </span></div>`,` D b D `,Ko,`<div><video controls playsinline preload=metadata></video><span> </span></div>`,` D b D `,ao,`<div><audio controls preload=metadata></audio></div>`,` D `,no,`<div><iframe></iframe></div>`,` D `,Ho,`<div><p><!> · <!></p><a>Download</a></div>`,` E%c%l `,fs,`<div><p> </p></div>`,` E `,eo),Xs=C(220,e=>Ys(e,e.fd?0:e.az?e.bf===`image`?2:e.bf===`video`?3:e.bf===`audio`?4:e.bf===`pdf`?5:e.bf===`binary`?6:e.bf===`none`?7:8:1),2),Zs=N(219,e=>{Bd(e,e.fd?.files),Hd(e,e.fd?.dirs),Gd(e,e.fd?.media),Js(e,e.fd?Zn(new Set((e.fd?.files).map(tr))):``),Xs(e)}),Qs=C(145,e=>Zs(e,e.b0?si(e.b0,e.da):null)),$s=N(144,e=>{Cd(e,e.da?.length),Vs(e,[...e.da,...He(e.da)].map(e=>({key:e,path:e}))),Us(e),Ks(e),Qs(e)}),ec=(e,t)=>Ir(e.y,t),tc=k(`x90`,e=>(()=>{let t=e.az,n=t?e.di.get(t)===`?`:!1;if(e.b9,e.ba,!t||!t.includes(`/`)){yu(e,null);return}let r=t.indexOf(`/`),i=new URLSearchParams({section:t.slice(0,r),path:t.slice(r+1),...n&&{untracked:`1`}}),a=setTimeout(async()=>{try{let n=await z(`/api/workspaces/${e.ab}/file-changes?${i}`,{signal:vt(e,2)});yu(e,n&&(n.additions||n.deletions||n.binary)?{file:t,...n}:null)}catch{}},150);vt(e,2).addEventListener(`abort`,()=>clearTimeout(a))})()),nc=C(153,e=>{yt(e,2),tc(e)},4),rc=F(vo,_a),ic=N(152,e=>{Hr(e.y,e.di),nc(e),rc(e)}),ac=(e,t)=>{$s(e,t.flatMap(e=>e.files.map(t=>`${e.worktree}/${t}`))),ec(e,[...t.some(e=>e.truncated&&e.worktree!==V)?[`A repo has too many files: only its first ${Xn(1e5)} are listed.`]:[],...t.filter(e=>e.truncated&&e.worktree===V).map(e=>`${V} has more files than are listed: only its newest ${Xn(e.files.length)} are.`)]),ic(e,(()=>{let e=new Map;for(let n of t)for(let[t,r]of Object.entries(n.status))e.set(`${n.worktree}/${t}`,r);return e})())},oc=C(142,e=>ac(e,e.d7?(e.b9||[]).filter(t=>b(t.worktree)===b(e.d7)):e.b9||[])),sc=k(`x97`,e=>{if(e.b9!==e.dq&&(au(e,e.b9),e.az&&e.b9)){let{worktree:t,path:n}=H(e.az),r=e.b9.find(e=>b(e.worktree)===b(t));r&&r.worktree!==t&&r.files.includes(n)&&Mu(e,`${r.worktree}/${n}`)}}),cc=C(161,sc,2),lc=E(71,e=>{Re(e.z,!e.b9),oc(e),cc(e),nc(e),ko(e)}),uc=N(141,e=>{oc(e),Sa(e)}),dc=C(139,e=>uc(e,e.bb&&e.bb!==`*`&&e.d4.some(t=>t.id===e.bb)?e.bb:null)),fc=N(138,e=>{bd(e,e.d4?.length),dc(e),ba(e)}),pc=C(137,e=>fc(e,(e.ba||[]).filter(Be).map(t=>_e(t,e.ah||``,e.ai||``,e.d2))),3),mc=N(136,pc),hc=k(`x98`,e=>{e.ba&&!e.bc&&e.bb&&e.bb!==`*`&&!e.ba.some(t=>t.id===e.bb)&&(qu(e,le(e.ba,e.bb)??`*`),rn(e.ab,e.bb))}),gc=C(75,hc,3),_c=k(`x91`,e=>ht(e,{active:e.an,onMount:function(){let t=new AbortController,n=t.signal,r=0,i=()=>{r&&clearTimeout(r),r=setTimeout(()=>{r=0,e.dm(),e.do(),e.ed()},300)};Zt(`diff-focus:${e.ab}`,()=>{let t=Ot(e.ab);t!==e.bb&&(t&&t!==`*`&&e.ba&&!le(e.ba,t)&&(yc(e,!0),e.do()),qu(e,t),e.dm())},n);let a=``;return Et().addEventListener(`status.changed`,t=>{if(!e.an)return;let n=t.data?.[e.ab];if(!n)return;let r=`${n.working}|${n.repos.map(e=>`${e.localHead||``}:${(e.prs||[]).map(e=>`${e.number}${e.state}`).join(`.`)}`).join(`,`)}`,o=a;a=r,o&&r!==o&&i()},{signal:n}),document.addEventListener(`visibilitychange`,()=>{e.an&&document.visibilityState===`visible`&&i()},{signal:n}),window.addEventListener(`focus`,()=>{e.an&&i()},{signal:n}),Et().addEventListener(`review.changed`,t=>{e.an&&t.data?.workspaceId===e.ab&&e.dw()},{signal:n}),window.addEventListener(`keydown`,t=>{if(e.an){if(Yn(t,`goToFile`))t.preventDefault(),t.stopPropagation(),Lc(e,!0);else if(Yn(t,`find`)&&e.bf===`text`){if(t.target instanceof HTMLTextAreaElement)return;t.preventDefault(),t.stopPropagation(),Vc(e,In()),$(e,!0),Bc(e,+e.bs+1),Ra(e)()}}},{capture:!0,signal:n}),sr({active:()=>!!e.an,text:()=>e.bf===`text`?{key:e.bg,text:e.bh}:null,signal:n}),e.an&&e.f4(),{abort:t,wasActive:!!e.an}},onUpdate:function(){this.active&&!this.wasActive&&e.f4(),this.wasActive=!!this.active},onDestroy:function(){this.abort.abort()}})),G=C(211,_c,12),vc=E(72,e=>{mc(e,qe(e.ba||[])),pc(e),gc(e),G(e),nc(e)}),yc=E(74,gc),bc=k(`x87`,e=>ht(e,{doc:e.be,docChecked:e.bl,active:e.an,line:e.b1,back:e.av??null,comments:e.e2,draft:e.cy,revealNonce:e.ce+(e.af??0),findQuery:e.bv.trim(),findLine:e.ef[e.bx]??0,findAt:e.bx,findJump:e.cc,mdOn:e.c0,patch:e.c7?e.c3:null,patchHits:e.eh,patchHit:e.c7?e.eh[e.bx]??null:null,onMdFind:t=>{rl(e,t)},sessions:e.at,onMount:function(){let n=()=>e.at||[],r=(t,n)=>it(h.patch?e.v:e.t,t,n),o=new Map,s=new WeakMap,c=0,u=t=>{if(t.draft){let i=s.get(t.draft);i??s.set(t.draft,i=c++);let a=`draft:${i}`,l=o.get(a);return l||(l=oe({sessions:n,reveal:r},{onSave:t=>e.eb(t),onSend:(t,n)=>e.ec(t,n),onCancel:()=>{Z(e,null)}}),o.set(a,l)),l}let i=t.comment,a=`c:${i.id}:${i.text}`,l=o.get(a);if(!l){let t=this.doc,s=i.snippet!=null&&t?.kind===`text`&&ce(d(t.contents,i.line_start,i.line_end,i.side))!==ce(i.snippet);l=ee(i,{sessions:n,reveal:r},{onDelete:t=>je(e.dz,t),onEdit:(t,n)=>ne(e.dz,t,n),onSend:(t,n)=>te(e.dz,t,n),drifted:s}),o.set(a,l)}return l},f={list:[],key:``,sig:``,hosts:new Set,ctl:null,retry:0,abort:new AbortController},p=Qe({workspaceId:()=>e.ab,problems:(e,n,r,i)=>e.itemId===h.itemId?t(f.list,n,r,i):[],source:e=>{let t=h.doc;return t?.kind!==`text`||e.itemId!==h.itemId||$r(t.key)?null:{...H(t.key),rev:`worktree`}},open:t=>e.f0(`${t.worktree}/${t.path}`,t.line)}),m={theme:ge,themeType:At(),disableFileHeader:!0,onTokenEnter:p.onTokenEnter,onTokenLeave:p.onTokenLeave,onTokenClick:p.onTokenClick,stickyHeaders:!1,enableLineSelection:!0,onLineSelectionEnd(t){let n=h.doc?.key;if(!t||!n)return;let r=Math.min(t.start,t.end),i=Math.max(t.start,t.end),a=h.draft;(a?.key!==n||a.start!==r||a.end!==i)&&Z(e,{key:n,start:r,end:i})},renderAnnotation(e){return e.metadata?u(e.metadata):void 0},unsafeCSS:a+We,onPostRender(e,t,n,r){let i=e;if(n===`unmount`){g.get(i)?.(),g.delete(i),f.hosts.delete(i),ue(i);return}g.has(i)?nt(i):g.set(i,se(i,r.item.id)),f.hosts.add(i),pe(i,f.list,`file`)},overflow:wt()?`wrap`:`scroll`,layout:{paddingTop:0,paddingBottom:24,gap:0}},h=this,g=new Map,_=new Ye(m,Ke());_.setup(e.t);let re=()=>{let t=e.t.getBoundingClientRect(),n=(t.top+t.bottom)/2,r=0,i=1/0;for(let e of f.hosts)for(let a of e.shadowRoot?.querySelectorAll(`[data-code] [data-line]`)??[]){let e=a.getBoundingClientRect();if(e.bottom<=t.top||e.top>=t.bottom)continue;let o=Math.abs((e.top+e.bottom)/2-n);o<i&&(i=o,r=Number(a.getAttribute(`data-line`))||0)}return r},v={timer:0},ie=_.subscribeToScroll(()=>{p.close(),v.timer||=setTimeout(()=>{v.timer=0,Bs(e,re())},200);let t=h.doc;h.active&&t?.kind===`text`&&xn(e.ab,{view:`files`,file:t.key,top:_.getScrollTop()})}),y={view:null,loading:!1,shown:null,sig:``,nonce:-1,backDone:null,jumped:-1,wasOn:!1,carry:0},b=()=>h.mdOn&&y.view?y.view.midLine():re(),le=t=>{let n=!!h.mdOn,r=h.doc;if(n!==y.wasOn){if(y.wasOn=n,n)y.carry=t===r&&_.getScrollTop()>0?re():0;else if(y.view&&r?.kind===`text`&&y.shown===r){let e=y.view.top()>0?y.view.midLine():0,t=h.itemId;requestAnimationFrame(()=>{h.itemId===t&&_.scrollTo(e?{type:`line`,id:t,lineNumber:e,align:`center`,behavior:`instant`}:{type:`position`,position:0,behavior:`instant`})})}}if(!n||r?.kind!==`text`)return;if(!y.view){if(y.loading)return;y.loading=!0,bt(()=>import(`./_C4TSdcNR.js`).then(t=>{y.view=new t.MarkdownView(e.u,{onComment:(t,n)=>{let r=h.doc?.key;r&&Z(e,{key:r,start:t,end:n})},onOpen:(t,n)=>e.f0(t,n),onScroll:()=>{v.timer||=setTimeout(()=>{v.timer=0,Bs(e,b())},200);let t=h.doc;h.active&&t?.kind===`text`&&y.view&&xn(e.ab,{view:`files`,file:t.key,top:y.view.top()})}}),le(h.doc)}),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]));return}let i=y.view,a=r!==y.shown;if(a){let t=r.reload&&y.shown?.key===r.key?i.top():null;y.shown=r,y.sig=``,i.show(r.contents,ii(e.ab,r.key,e.f2),t)}let o=h.comments||[],s=h.draft,c=s&&s.key===r.key?s:null,l=o.map(e=>`${e.id}:${e.line_end}:${e.text}`).join(`|`)+(c?`|d${c.start}-${c.end}`:``);l!==y.sig&&(y.sig=l,i.setNotes([...o.map(e=>({line:e.line_end,node:u({comment:e})})),...c?[{line:c.end,node:u({draft:c})}]:[]],c));let d=h.line??null,f=h.back;if(y.carry){let e=y.carry;y.carry=0,y.nonce=h.revealNonce,requestAnimationFrame(()=>i.reveal(e,!1))}else(a&&!r.reload||h.revealNonce!==y.nonce)&&(y.nonce=h.revealNonce,f&&f!==y.backDone&&f.file===r.key?(y.backDone=f,requestAnimationFrame(()=>i.setTop(f.top))):d?requestAnimationFrame(()=>i.reveal(d)):a&&i.setTop(0));if(a||h.findJump!==y.jumped){let e=h.findJump!==y.jumped;y.jumped=h.findJump,h.onMdFind(i.search(h.findQuery,h.findAt,e))}};_u(e,{top:()=>h.mdOn&&y.view?y.view.top():_.getScrollTop(),line:b});let x={viewer:null,shown:null,items:[],heads:new Map,jumped:-1,annSig:``},de=(e,t)=>{let n=x.items.find(t=>t.id===e);if(!x.viewer||!n)return;let r=!n.collapsed;for(let e of t?x.items:[n])!!e.collapsed!==r&&(e.collapsed=r,e.version=(e.version??0)+1,x.viewer.updateItem(e))},S={theme:ge,themeType:At(),diffStyle:`split`,stickyHeaders:!0,itemMetrics:{diffHeaderHeight:44},layout:{paddingTop:0,paddingBottom:24,gap:12},unsafeCSS:a,overflow:wt()?`wrap`:`scroll`,enableLineSelection:!0,onLineSelectionEnd(t,n){let r=h.patch,i=h.doc?.key;if(!t||!r||!i)return;let a=t.side??`additions`,o=[rt(r,n.item.id,a,t.start),rt(r,n.item.id,t.endSide??a,t.end)].filter(e=>e!=null);if(!o.length)return;let s=Math.min(...o),c=Math.max(...o),l=h.draft;(l?.key!==i||l.start!==s||l.end!==c)&&Z(e,{key:i,start:s,end:c})},renderAnnotation(e){return e.metadata?u(e.metadata):void 0},renderCustomHeader(e,t){let n=t.item;if(n.type!==`diff`)return document.createElement(`div`);let r=n.fileDiff,i=0,a=0;for(let e of r.hunks)i+=e.additionLines,a+=e.deletionLines;let o={label:r.prevName&&r.prevName!==r.name?`${r.prevName} → ${r.name}`:r.name,status:ni[r.type],collapsed:!!n.collapsed,notes:0,errors:0,additions:i,deletions:a,patchless:!1,open:!1},s=Fe(o),c=x.heads.get(n.id);if(c?.sig===s)return c.el;let l=Se(o,{fold:e=>de(n.id,e),comment(){},errors(){},open(){}});return x.heads.set(n.id,{sig:s,el:l}),l},onPostRender(e,t,n,r){let i=e;if(n===`unmount`){g.get(i)?.(),g.delete(i);return}g.has(i)?nt(i):g.set(i,se(i,r.item.id))}},me=()=>{let t=e.v.clientWidth;if(!x.viewer||!t)return;let n=Ft(),r=n===`auto`?t<ri?`unified`:`split`:n;r!==S.diffStyle&&(S.diffStyle=r,x.viewer.setOptions({...S}))},he=new ResizeObserver(me);Zt(`diff-layout`,me,f.abort.signal);let _e=e=>{let t=h.comments||[],n=h.draft,r=n&&n.key===h.doc?.key?n:null,i=new Map,a=(t,n)=>{let r=e.rows[Math.min(t,e.rows.length-1)];if(!r)return;let a=i.get(r.id)??[];i.set(r.id,a),a.push({side:r.side,lineNumber:r.line,metadata:n})};for(let e of t)a(e.line_end,{comment:e});return r&&a(r.end,{draft:r}),{by:i,sig:t.map(e=>`${e.id}:${e.line_end}:${e.text}`).join(`|`)+(r?`|d${r.start}-${r.end}`:``),drafting:!!r}},ve=()=>{let t=h.patch;if(!t){x.shown&&(x.shown=null,x.items=[],x.heads.clear(),x.viewer?.setItems([]),l(``,null));return}let n=x.viewer;n||(n=x.viewer=new Ye(S,Ke()),n.setup(e.v),he.observe(e.v)),me();let r=t!==x.shown,i=_e(t);if(r)x.shown=t,x.heads.clear(),x.annSig=i.sig,x.items=t.files.map(e=>({id:e.id,type:`diff`,fileDiff:e.fileDiff,annotations:i.by.get(e.id)??[],version:1})),n.setItems(x.items),n.scrollTo({type:`position`,position:0,behavior:`instant`});else if(i.sig!==x.annSig){x.annSig=i.sig;for(let e of x.items){let t=i.by.get(e.id)??[];(t.length||e.annotations?.length)&&(e.annotations=t,e.version=(e.version??0)+1,n.updateItem(e))}i.drafting||n.clearSelectedLines()}if(r||h.findJump!==x.jumped){x.jumped=h.findJump;let e=h.patchHit;l(h.findQuery,e,Le(h.patchHits)??void 0),e&&(x.items.find(t=>t.id===e.key)?.collapsed&&de(e.key,!1),n.scrollTo(e.line?{type:`line`,id:e.key,lineNumber:e.line,side:e.side||`additions`,align:`center`,behavior:`instant`}:{type:`item`,id:e.key,behavior:`instant`}))}},ye=jt(e=>{m.themeType=e,_.setOptions({...m}),S.themeType=e,x.viewer?.setOptions({...S})}),be=new WeakMap,xe=0,Ce=e=>{let t=be.get(e);return t||be.set(e,t=++xe),t},we=()=>{for(let e of f.hosts)pe(e,f.list,`file`)},Te=(t,n=!1)=>{let r=t?.kind===`text`&&St()&&!$r(t.key)?{...H(t.key),rev:`worktree`}:null,i=r?`${Ce(t)}|${h.docChecked}`:``;if(i===f.sig&&!n)return;let a=!!r&&t.key===f.key;if(f.sig=i,f.key=r?t.key:``,f.ctl?.abort(),f.ctl=null,f.retry&&clearTimeout(f.retry),f.retry=0,!a&&f.list.length&&(f.list=[],we()),!r)return;let o=f.ctl=new AbortController;fe(e.ab,[r],(e,t)=>{if(i===f.sig){if(t.length){f.retry=setTimeout(()=>{f.retry=0,h.active&&i===f.sig&&Te(h.doc,!0)},Qr);return}f.list=e.get(ae(r))??[],we()}},o.signal)},Ee=()=>{h.active&&Te(h.doc,!0)};return Zt(`lsp`,Ee,f.abort.signal),Zt(`lsp-off`,Ee,f.abort.signal),nr(Ee,f.abort.signal),{viewer:_,intel:p,mdBox:y,syncMd:le,patchBox:x,patchRo:he,syncPatch:ve,loadProblems:Te,probBox:f,unsubScroll:ie,lineBox:v,unregTheme:ye,hostUnregs:g,cards:o,sessionsKey:i(n()),shown:null,item:null,itemId:``,annSig:``,n:0,nonce:-1,backDone:null,jumped:e.cc,warmKey:``,warmTimer:0}},onUpdate:function(){let t=i(this.sessions||[]);if(t!==this.sessionsKey){this.sessionsKey=t;for(let e of this.cards.values())p(e)}let n=this.doc;this.active&&this.loadProblems(n);let r=this.active&&n?.kind===`text`&&!$r(n.key)?n.key:``;r!==this.warmKey&&(this.warmKey=r,this.warmTimer&&clearTimeout(this.warmTimer),r&&(this.warmTimer=setTimeout(()=>{this.warmKey===r&&ze(e.ab,[H(r)])},1e3)));let a=this.shown,o=n!==this.shown;if(o){let e=n?.kind===`text`&&n.reload&&this.shown?.key===n.key?this.viewer.getScrollTop():null;this.shown=n,this.intel.close(),this.itemId=n?.kind===`text`?`${n.key}#${++this.n}`:``,this.item=n?.kind===`text`?{id:this.itemId,type:`file`,file:{name:H(n.key).path,contents:n.contents},annotations:[],version:1}:null,this.annSig=``,this.cards.clear(),this.viewer.setItems(this.item?[this.item]:[]),e!=null&&this.viewer.scrollTo({type:`position`,position:e,behavior:`instant`})}let s=this.comments||[],c=this.draft,u=c&&n?.kind===`text`&&c.key===n.key?c:null,d=this.mdOn||!!this.patch,f=d?`elsewhere`:s.map(e=>`${e.id}:${e.line_end}:${e.text}`).join(`|`)+(u?`|d${u.start}-${u.end}`:``);this.item&&f!==this.annSig&&(this.annSig=f,this.item.annotations=d?[]:[...s.map(e=>({lineNumber:e.line_end,metadata:{comment:e}})),...u?[{lineNumber:u.end,metadata:{draft:u}}]:[]],this.item.version=(this.item.version??0)+1,this.viewer.updateItem(this.item),u||this.viewer.clearSelectedLines());let m=this.line??null;if(n?.kind===`text`&&(o&&!n.reload||this.revealNonce!==this.nonce)){this.nonce=this.revealNonce;let e=this.itemId,t=this.back;t&&t!==this.backDone&&t.file===n.key?(this.backDone=t,requestAnimationFrame(()=>{this.itemId===e&&this.viewer.scrollTo({type:`position`,position:t.top,behavior:`instant`})})):m?requestAnimationFrame(()=>{this.itemId===e&&(this.viewer.scrollTo({type:`line`,id:e,lineNumber:m,align:`center`,behavior:`instant`}),this.viewer.setSelectedLines({id:e,range:{start:m,end:m}}))}):o&&this.viewer.scrollTo({type:`position`,position:0,behavior:`instant`})}if(this.findJump!==this.jumped&&!this.patch){this.jumped=this.findJump;let e=this.findQuery,t=this.findLine,r=this.itemId;if(!e||!t||n?.kind!==`text`)l(e,null,r?[r]:[]);else{let i={key:r,path:n.key,repo:H(n.key).worktree,line:t,side:`additions`,preview:``};l(e,i,[r]),this.viewer.scrollTo({type:`line`,id:r,lineNumber:t,align:`center`,behavior:`instant`})}}this.syncMd(a),this.syncPatch()},onDestroy:function(){this.mdBox.view?.destroy(),this.patchRo.disconnect(),this.patchBox.viewer?.cleanUp();for(let e of this.hostUnregs.values())e();l(``,null),this.warmTimer&&clearTimeout(this.warmTimer),this.probBox.abort.abort(),this.probBox.ctl?.abort(),this.probBox.retry&&clearTimeout(this.probBox.retry);for(let e of this.probBox.hosts)ue(e);this.probBox.hosts.clear(),this.intel.destroy(),this.unsubScroll(),clearTimeout(this.lineBox.timer),this.unregTheme(),this.viewer.cleanUp();let e=window;(e.__INSTANCE===this.viewer||e.__INSTANCE===this.patchBox.viewer)&&(delete e.__INSTANCE,delete e.__TOGGLE)}},1)),K=C(209,bc,23),xc=N(101,e=>{fd(e,e.c3?.files),K(e)}),Sc=e=>{xc(e,e.bf===`text`&&ti(e.bg)?ve(e.bh,e.bg):null)},Cc=N(210,G),wc=C(184,e=>Cc(e,mf(e)),3),Tc=N(183,e=>{wc(e),G(e)}),Ec=C(133,e=>Tc(e,hf(e)),4),Dc=k(`x93`,e=>{e.az&&e.az!==e.be?.key?e.ds(e.az):!e.az&&e.be&&q(e,null)}),Oc=C(163,Dc,2),q=E(76,e=>{nd(e,e.be?.kind),id(e,e.be?.key),ad(e,e.be?.contents),od(e,e.be?.src),sd(e,e.be?.size),cd(e,e.be?.why),Sc(e),Ec(e),Oc(e),K(e)}),kc=E(83,e=>{Ec(e),K(e)}),Ac=O(22,`<div aria-hidden=true><span></span></div>`,` D `,mi),jc=(e,t)=>{M(e.t,[`_hB`,t&&`_h0`]),M(e.u,[`_fC`,t&&`_h0`]),M(e.v,[`_hB`,t&&`_h0`]),Ac(e,+!t)},Mc=C(85,e=>jc(e,e.bm&&!!e.az&&e.bg!==e.az),2),Nc=E(84,Mc),Pc=O(14,un,(e=>`/${e}&`)(sn),Qa),Fc=F(Xa),Ic=E(86,e=>{Pc(e,+!e.bo),Fc(e)}),Lc=E(87,e=>he(e.z,e.bp)),Rc=N(197,e=>dt(e,e.er)),zc=C(91,e=>Rc(e,gf(e))),Bc=E(90,e=>{zc(e),G(e),Va(e)}),Vc=E(92,Ha),Hc=N(185,e=>{Od(e,e.ef?.length),K(e)}),Uc=C(94,e=>Hc(e,(()=>{let t=e.bv.trim();if(!t||e.bf!==`text`)return[];let n=/[A-Z]/.test(t),r=n?t:t.toLowerCase(),i=[],a=e.bh.split(`
7
+ `);for(let e=0;e<a.length&&i.length<1e3;e++)(n?a[e]:a[e].toLowerCase()).includes(r)&&i.push(e+1);return i})()),2),Wc=N(187,e=>{kd(e,e.eh?.length),K(e)}),Gc=C(109,e=>Wc(e,e.c7?Oe(e.ca,e.bv):[]),2),Kc=E(93,e=>{Uc(e),Gc(e),K(e)}),qc=E(95,e=>{K(e),Ga(e)}),Jc=N(192,qa),Yc=C(191,e=>Jc(e,_f(e))),Xc=N(190,e=>{Yc(e),Ka(e)}),Zc=C(189,e=>Xc(e,e.c0?e.c1:e.c7?e.ei:e.eg),4),Qc=C(107,e=>P(e.t,`hidden`,e.bf!==`text`||e.c0||e.c7),2),$c=N(98,e=>{P(e.u,`hidden`,!e.c0),Zc(e),Qc(e),K(e)}),el=C(97,e=>$c(e,e.bf===`text`&&ei(e.bg)&&e.by===`preview`),2),tl=F(Ma),nl=E(96,e=>{el(e),tl(e)}),rl=E(99,Zc),il=N(108,Gc),al=C(106,e=>il(e,e.c7?e.c4.map(e=>({key:e.id,path:e.fileDiff.name,repo:``,patch:[...e.fileDiff.deletionLines,...e.fileDiff.additionLines].join(``),fileDiff:e.fileDiff})):[])),ol=N(105,e=>{P(e.v,`hidden`,!e.c7),al(e),Gc(e),Zc(e),Qc(e),K(e)}),sl=C(104,e=>ol(e,!!e.c5&&e.c2===`diff`)),cl=F(Ta),ll=E(100,e=>{sl(e),cl(e)}),ul=E(110,e=>{Yc(e),K(e)}),J=C(151,e=>re(e.e,{filter:e.cd,filterChange:yf(e),shown:e.dg,total:e.dd,onOpen:vf(e)}),5),dl=E(111,e=>{Vr(e.y,e.cd),Us(e),J(e)}),fl=N(206,e=>{zr(e.y,xf(e)),ke(e.z,bf(e)),K(e)}),pl=C(205,e=>fl(e,Sf(e)),3),ml=C(114,e=>Ur(e.y,e.ce+(e.af??0)+e.cf),2),hl=E(112,e=>{pl(e),ml(e),K(e)}),gl=E(113,e=>{J(e),ml(e)}),_l=k(`x96`,e=>Ad(e,e.bf===`text`&&!e.ch)),vl=C(117,_l),yl=k(`x95`,e=>{e.bq&&(e.bf!==`text`||e.en&&(!e.an||e.ch))&&$(e,!1)}),bl=C(194,yl,4),xl=C(116,e=>{M(e.a,[`_hh`,{_hi:e.ch||!e.ax}]),Pr(e.y,e.ch||!e.ax)}),Sl=E(115,e=>{vl(e),bl(e),xl(e),J(e)}),Cl=k(`x100`,e=>{{let t=e.af??0;t!==e.ck&&(Tl(e,t),(e.ax!==e.cl||e.b1)&&Sl(e,!1)),El(e,e.ax??null)}}),wl=C(120,Cl,4),Tl=E(118,wl),El=E(119,wl),Dl=E(121,e=>{Xo(e),oo(e)}),Ol=N(159,Ca),kl=C(157,e=>Ol(e,Cf(e)),2),Al=k(`x92`,e=>{e.dm(),e.do(),e.dw()}),jl=C(167,Al,2),Ml=N(156,e=>{kl(e),jl(e),wc(e),G(e)}),Nl=C(155,e=>Ml(e,wf(e)),2),Pl=N(122,Nl),Fl=N(158,e=>{jl(e),wc(e),G(e)}),Il=C(124,e=>Fl(e,Tf(e))),Ll=N(123,Il),Rl=N(162,Oc),zl=C(126,e=>Rl(e,Ef(e))),Bl=N(164),Vl=C(127,e=>Bl(e,Df(e)),2),Hl=N(125,e=>{zl(e),Vl(e),Ec(e)}),Ul=N(181,K),Wl=N(182,K),Y=C(180,e=>{Ul(e,Of(e)),Wl(e,kf(e))},5),Gl=F(Ms,ys),Kl=N(169,e=>{Ue(e.j,jf(e)),Ie(e.j,Af(e)),Y(e),K(e),Gl(e)}),X=C(168,e=>Kl(e,{workspaceId:e.ab,seq:e.cw,list:Lf(e),set:If(e),sections:Ff(e),reload:Pf(e),handed:Nf(e),fail:Mf(e)}),5),ql=N(172,K),Jl=N(173,e=>{Ed(e,e.e3?.length),ks(e)}),Yl=N(176,e=>{Dd(e,e.e6?.length),Fs(e)}),Xl=C(171,e=>{ql(e,e.az?e.cu.filter(t=>`${b(t.worktree)}/${t.path}`===e.e0&&(t.side===`file`||t.side===`additions`)&&t.line_end>0):[]),Jl(e,e.az?e.cu.filter(t=>`${b(t.worktree)}/${t.path}`===e.e0&&t.side===`deletions`):[]),Yl(e,e.az?e.cu.filter(t=>`${b(t.worktree)}/${t.path}`===e.e0&&t.side!==`deletions`&&t.line_end<=0):[])},2),Zl=E(128,e=>{gd(e,e.cu?.length),X(e),Xl(e)}),Ql=N(166,e=>{X(e),jl(e),wc(e),G(e)}),$l=C(131,e=>Ql(e,Rf(e))),eu=N(130,e=>{$l(e),X(e)}),Z=E(132,e=>{Y(e),Ec(e),K(e)}),tu=k(`x99`,e=>{(e.ag??0)!==e.d0&&(ru(e,e.ag??0),Lc(e,!0))}),nu=C(135,tu),ru=E(134,nu),iu=N(154,Nl),au=E(160,cc),ou=E(165,X),su=N(179,Y),cu=k(`x94`,e=>Ce(e.es,Ls(e),!!e.bq,e.en,Ra(e))),lu=C(199,cu,2),uu=E(193,e=>{bl(e),lu(e),Ja(e)}),du=N(198,lu),fu=k(`x88`,e=>{e.an&&window.addEventListener(`keydown`,t=>{Yn(t,`openInFiles`)&&e.fm()&&(t.preventDefault(),t.stopPropagation())},{capture:!0,signal:vt(e,3)})}),pu=C(229,e=>{yt(e,3),fu(e)}),mu=N(228,pu),Q=C(214,e=>mu(e,Bf(e)),6),hu=N(204,e=>{pl(e),Q(e)}),gu=C(203,e=>hu(e,Vf(e)),3),_u=E(202,e=>{gu(e),Q(e)}),vu=F(xo),yu=E(213,e=>{Id(e,e.f7?.binary),Ld(e,e.f7?.additions),Rd(e,e.f7?.deletions),W(e),Q(e),vu(e)}),bu=k(`x102`,e=>{Rs(e,qn()),Gn(()=>{Rs(e,qn())},vt(e,0));{let t=matchMedia(ln);t.addEventListener(`change`,()=>{uu(e,t.matches)},{signal:vt(e,1)})}L(e.m,`click`,function(){Lc(e,!0)})});function xu(e){yt(e,0),yt(e,1),M(e.b,`_hj`),M(e.c,`_fH`),ie(e.d),S(e.d,`files`),u(e.e),M(e.i,[`_fK`,`_hz`]),Ee(e.j),M(e.k,`_hw`),M(e.m,ot),Hn(e.n),Vn(e.n,14),Wn(e.n),M(e.p,`_hA`),jr(e.y),ye(e.z),Ve(e.z,Hf(e)),Ge(e.z),Rs(e,0),Bs(e,0),lc(e,null),vc(e,null),yc(e,!1),q(e,null),kc(e,0),Nc(e,!1),Ic(e,null),Lc(e,!1),Bc(e,0),Vc(e,``),Kc(e,``),qc(e,0),nl(e,Ht()),rl(e,0),ll(e,en()),ul(e,0),dl(e,``),hl(e,0),gl(e,0),Sl(e,!1),Tl(e,0),El(e,null),Dl(e,``),Pl(e,{issued:0,applied:0}),Ll(e,{issued:0,applied:0}),Hl(e,{issued:0,applied:0}),Zl(e,[]),eu(e,{issued:0,applied:0}),Z(e,null),ru(e,0),iu(e,{running:null,joinable:!1,again:!1}),au(e,null),ou(e,null),su(e,zf),uu(e,wt()),du(e,{home:null,raf:0,open:!1,docked:!1,lost:null}),_u(e,null),yu(e,null),bu(e)}var Su=N(170,Xl),Cu=O(17,`<section aria-label="Comments on the file"><div><span>Comments on the file</span></div><!></section>`,` D b%`,Is),wu=C(178,e=>Cu(e,e.az&&e.bg===e.az&&e.e7?0:1),2),Tu=O(18,`<section aria-label="Comments on removed lines"><div><span>Comments on removed lines</span><a>Show in Diff</a></div><!></section>`,` D Db l%`,Es),Eu=C(175,e=>Tu(e,e.az&&e.bg===e.az&&e.e4?0:1),2),Du=k(`x101`,e=>{e.az,Bs(e,0)}),Ou=N(61,e=>{Su(e,e.az?`${b(H(e.az).worktree)}/${H(e.az).path}`:null),cc(e),Xl(e),Oc(e),Mc(e),nc(e),W(e),Q(e),wu(e),Eu(e),Xs(e),Ds(e),Wo(e),Vo(e),Du(e)}),ku=N(62,Qs),Au=O(6,((e,t)=>`<span><button type=button title="File tree" aria-label="Back to the file tree">${e}</button>${t}</span>`)(cr,Gr),((e,t)=>` D D/${e}&l/${t}&l`)(lr,Wr),ts),ju=O(16,(e=>`<div>${e}</div>`)(Gr),(e=>` D/${e}&l`)(Wr),Qo),Mu=D(59,e=>{Rr(e.y,e.ax),Ou(e,e.ax&&!e.ax.endsWith(`/`)?e.ax:null),ku(e,e.ax?.endsWith(`/`)?e.ax:null),Au(e,+!e.ax),ju(e,+!e.ax),wl(e),gu(e),xl(e),J(e),$o(e),Zo(e)}),Nu=C(30,e=>Mu(e,e.a2,e.a3)),Pu=N(28,Nu),Fu=N(29,Nu),Iu=D(63,e=>{wl(e),W(e),Q(e),K(e)}),Lu=C(33,e=>Iu(e,e.a5,e.a6)),Ru=N(31,Lu),zu=N(32,Lu),Bu=D(65,e=>{Vu(e,e.b3?.key),Hu(e,e.b3?.line),Uu(e,e.b3?.section)}),Vu=N(67,W),Hu=N(68,W),Uu=N(69,W),Wu=C(36,e=>Bu(e,e.a8,e.a9)),Gu=N(34,Wu),Ku=N(35,Wu),qu=E(73,e=>{gc(e),dc(e),kl(e),G(e)}),Ju=E(200,e=>{Je(e.z,e.eu),Ks(e)}),Yu=N(207,F(Hi)),Xu=F(ua,ia,Qi,Gi,Pi),Zu=N(208,e=>{K(e),Xu(e)}),Qu=N(37,e=>{qu(e,Ot(e.ab)),Ju(e,It(e.ab)),Yu(e,Uf(e)),Zu(e,Wf(e)),gc(e),Nl(e),Il(e),kl(e),zl(e),Vl(e),$l(e),X(e),Ec(e),pl(e),G(e),nc(e),K(e),Ts(e),ds(e)}),$u=O(10,Rn,(e=>`0${e}&`)(vn),Ba),ed=O(11,(e=>`<button type=button aria-label="Find in file">${e}</button>`)(Kt),(e=>` D/${e}&l`)(Rt),cs),td=F(fo),nd=N(77,e=>{$u(e,e.bf===`text`?0:1),ed(e,e.bf===`text`?0:1),el(e),Y(e),Uc(e),vl(e),bl(e),zc(e),gu(e),G(e),Qc(e),Xs(e),td(e)}),rd=F(mo),id=N(78,e=>{el(e),Vl(e),Y(e),gu(e),G(e),Mc(e),wu(e),Eu(e),ms(e),Jo(e),rd(e)}),ad=N(79,e=>{Y(e),Uc(e),G(e)}),od=N(80,e=>{Yo(e),Uo(e),ro(e),to(e)}),sd=N(81,hs),cd=N(82,$a),$=D(88,e=>{bl(e),lu(e),ls(e),za(e)}),ld=C(40,e=>$(e,e.ac,e.ad)),ud=N(38,ld),dd=N(39,ld),fd=N(102,e=>{md(e,e.c4?.length),al(e)}),pd=F(ho),md=N(103,e=>{sl(e),pd(e)}),hd=N(41,e=>{wl(e),ml(e),K(e)}),gd=N(129,e=>Te(e.j,e.cv)),_d=N(42,nu),vd=O(5,n,(e=>`/${e}&`)(Ae),xa),yd=O(7,`<span></span>`,` `,bi),bd=(e,t)=>{vd(e,t>1?0:1),yd(e,+(t>1))},xd=N(43,pc),Sd=N(44,pc),Cd=N(147,J),wd=N(150,J),Td=N(45,X),Ed=N(174,Eu),Dd=N(177,wu),Od=N(186,Zc),kd=N(188,Zc),Ad=D(195),jd=C(48,e=>Ad(e,e.ak,e.al)),Md=N(46,jd),Nd=N(47,jd),Pd=N(49,e=>{bl(e),G(e),pu(e),K(e)}),Fd=N(50,e=>{pl(e),Q(e)}),Id=N(230,F(Oi)),Ld=N(231,F(ji,xi)),Rd=N(232,F(Mi,Ci)),zd=N(217,as),Bd=N(221,e=>{Vd(e,e.ff?.length),Mo(e)}),Vd=N(226,Ro),Hd=N(222,e=>{Ud(e,e.fg?.length),Po(e)}),Ud=N(225,Lo),Wd=F(Yi),Gd=N(223,e=>{Kd(e,e.fh?.length),Wd(e)}),Kd=N(224,Io),qd=N(51,Q),Jd=(e,t)=>de(e.d,t),Yd=(e,t)=>m(e.d,t),Xd=(e,t)=>x(e.d,t),Zd=F(As,_s),Qd=N(55,e=>{De(e.j,e.at),K(e),Zd(e)}),$d=(e,t)=>Nr(e.y,t??!0),ef=N(57,K),tf=(e,t)=>{Pu(e,t.file),Fu(e,t.fileChange),Ru(e,t.line),zu(e,t.lineChange),Gu(e,t.diffAt),Ku(e,t.diffAtChange),Qu(e,t.workspaceId),ud(e,t.findOpen),dd(e,t.findOpenChange),hd(e,t.revealNonce),_d(e,t.goNonce),xd(e,t.workspaceBranch),Sd(e,t.workspaceName),Td(e,t.onSent),Md(e,t.findable),Nd(e,t.findableChange),Pd(e,t.active),Fd(e,t.onJump),qd(e,t.onOpenDiff),Jd(e,t.changesHref),Yd(e,t.allHref),Xd(e,t.filesHref),Qd(e,t.sessions),$d(e,t.treeOpen),ef(e,t.back)},nf=e=>function(){Kc(e._,``),l(``,null)},rf=e=>t=>{$(e._,t)},af=e=>function(t){e._.em(e._.bx+t)},of=e=>function(t){Kc(e._,t),e._.em(0)},sf=e=>function(){Ic(e._,null)},cf=e=>(t,n)=>te(e._._.dz,t,n),lf=e=>(t,n)=>ne(e._._.dz,t,n),uf=e=>t=>je(e._._.dz,t),df=e=>(t,n)=>te(e._._.dz,t,n),ff=e=>(t,n)=>ne(e._._.dz,t,n),pf=e=>t=>je(e._._.dz,t),mf=e=>()=>{e.dm(),e.do(),e.ed(),e.dw()},hf=e=>async()=>{let t=e.be;if(t?.kind!==`text`&&t?.kind!==`none`&&t?.kind!==`binary`||e.cy)return;let n=Pt(e.cr),{worktree:r,path:i}=H(t.key);try{let a=await z(`/api/workspaces/${e.ab}/diff/contents?worktree=${encodeURIComponent(r)}&path=${encodeURIComponent(i)}&rev=worktree`);if(!R(e.cr,n)||e.be!==t||e.cy)return;let o=Zr(t.key,a);o.kind===`text`&&t.kind===`text`?o.contents===t.contents?kc(e,+e.bl+1):q(e,{...o,reload:!0}):(o.kind!==t.kind||o.kind===`binary`&&t.kind===`binary`&&o.size!==t.size)&&q(e,o)}catch{}},gf=e=>()=>{e.bf===`text`&&($(e,!0),Bc(e,+e.bs+1),Ra(e)())},_f=e=>t=>{let n=e.ek;qc(e,n?(t%n+n)%n:0),ul(e,+e.cc+1)},vf=e=>function(){e.ax&&!e.ch&&wt()&&(Sl(e,!0),gl(e,+e.cf+1))},yf=e=>t=>{dl(e,t)},bf=e=>function(t,n){e.f0(t,n)},xf=e=>function(t){e.f0(t)},Sf=e=>(t,n)=>{e.ao?.(e.ey()),Mu(e,t),Iu(e,n||null),Sl(e,!1),hl(e,+e.ce+1),!t.endsWith(`/`)&&(zt(e.ab,t),Ju(e,It(e.ab)))},Cf=e=>t=>{let n=t??`*`;n!==e.bb&&(qu(e,n),rn(e.ab,n),e.dm())},wf=e=>()=>Un(e.dk,async()=>{let t=Dt(e.co),n=Ot(e.ab),r=n&&/[@#]/.test(n)?`?section=${encodeURIComponent(n)}`:``;try{let n=await z(`/api/workspaces/${e.ab}/files${r}`);R(e.co,t)&&lc(e,n)}catch(n){R(e.co,t)&&Ic(e,`Loading files failed: ${kt(n)}`)}}),Tf=e=>async()=>{let t=Dt(e.cp);try{let n=await z(`/api/workspaces/${e.ab}/sections`);R(e.cp,t)&&(vc(e,n),yc(e,!1))}catch{}},Ef=e=>async t=>{let n=Dt(e.cr),{worktree:r,path:i}=H(t),a=`worktree=${encodeURIComponent(r)}&path=${encodeURIComponent(i)}&rev=worktree`,o=Ln(i);if(Dl(e,``),o){q(e,{key:t,kind:o.kind,src:`/api/workspaces/${e.ab}/diff/blob?${a}&t=${n}`});return}Nc(e,!0);try{let r=await z(`/api/workspaces/${e.ab}/diff/contents?${a}`);if(!R(e.cr,n))return;q(e,Zr(t,r))}catch(r){R(e.cr,n)&&q(e,{key:t,kind:`none`,why:`Open failed: ${kt(r)}`})}finally{R(e.cr,n)&&Nc(e,!1)}},Df=e=>async t=>{let n=Pt(e.cr),{worktree:r,path:i}=H(t),a;try{({size:a}=await z(`/api/workspaces/${e.ab}/diff/contents?worktree=${encodeURIComponent(r)}&path=${encodeURIComponent(i)}&rev=worktree`))}catch{}R(e.cr,n)&&e.bg===t&&q(e,r===V&&a!=null?{key:t,kind:`binary`,size:a}:{key:t,kind:`none`,why:`This image can't be shown here.`})},Of=e=>async t=>{let n=e.cy;Z(e,null),n&&e.bf===`text`&&e.bg===n.key&&!await s(e.dz,e.e9(n,e.bh,t))&&!e.cy&&Z(e,n)},kf=e=>(t,n)=>{let r=e.cy;return!r||!t.trim()||e.bf!==`text`||e.bg!==r.key?Promise.resolve(!1):g(e.dz,e.e9(r,e.bh,t),n)},Af=e=>t=>Ne(e.dz,{session:t}),jf=e=>()=>Ne(e.dz,{clipboard:!0}),Mf=e=>t=>{Ic(e,t)},Nf=e=>t=>{`session`in t&&e.aj?.(t.session),Z(e,null)},Pf=e=>()=>void e.dw(),Ff=e=>()=>e.dv,If=e=>t=>{Zl(e,t)},Lf=e=>()=>e.cu,Rf=e=>async()=>{try{let t=await r(e.ab,e.cw);if(!t)return;Zl(e,t),ou(e,await v(e.ab,t))}catch{}};function zf(e,t,n){return{...H(e.key),side:`file`,line_start:e.start,line_end:e.end,text:n.trim(),snippet:d(t,e.start,e.end,`file`)}}var Bf=e=>()=>{let t=e.f7;if(!t||t.file!==e.az)return!1;let n=t.file.slice(t.file.indexOf(`/`)+1);return e.ao?.(e.ey()),e.ap?.(`${t.section}/${n}`,e.ew?.line()||e.b1||null),!0},Vf=e=>()=>e.bf===`text`?{view:`files`,file:e.bg,top:e.ew?.top()??0}:e.ax?{view:`files`,file:e.ax,top:0}:null,Hf=e=>t=>{Lc(e,t)},Uf=e=>t=>{let{worktree:n,path:r}=H(t);return`/api/workspaces/${e.ab}/diff/blob?${new URLSearchParams({worktree:n,path:r,rev:`worktree`})}`},Wf=e=>t=>fn`${{search:{file:t}}}/w/${e.ab}/files`;A.x31=nf,A.x28=rf,A.x30=af,A.x29=of,A.x32=sf,A.x38=cf,A.x37=lf,A.x36=uf,A.x35=df,A.x34=ff,A.x33=pf,A.x22=mf,A.x15=hf,A.x17=gf,A.x16=_f,A.x25=vf,A.x24=yf,A.x41=bf,A.x39=xf,A.x19=Sf,A.x2=Cf,A.x0=wf,A.x1=Tf,A.x3=Ef,A.x4=Df,A.x13=Of,A.x14=kf,A.x27=Af,A.x26=jf,A.x11=Mf,A.x10=Nf,A.x9=Pf,A.x8=Ff,A.x7=If,A.x6=Lf,A.x5=Rf,A.x12=zf,A.x23=Bf,A.x18=Vf,A.x40=Hf,A.x20=Uf,A.x21=Wf;var Gf=nn(`x`,Kr,qr,xu,tf);export{tf as $input,Pd as $input_active,Yd as $input_allHref,ef as $input_back,Jd as $input_changesHref,Gu as $input_diffAt,Ku as $input_diffAtChange,Pu as $input_file,Fu as $input_fileChange,Xd as $input_filesHref,ud as $input_findOpen,dd as $input_findOpenChange,Md as $input_findable,Nd as $input_findableChange,_d as $input_goNonce,Ru as $input_line,zu as $input_lineChange,Fd as $input_onJump,qd as $input_onOpenDiff,Td as $input_onSent,hd as $input_revealNonce,Qd as $input_sessions,$d as $input_treeOpen,xd as $input_workspaceBranch,Qu as $input_workspaceId,Sd as $input_workspaceName,xu as $setup,Kr as $template,qr as $walks,Gf as default};
@@ -0,0 +1 @@
1
+ import{$input_allHref as e}from"./_CtJxOdxu.js";export{e as _};
@@ -1 +1 @@
1
- import{ln as e}from"./_ChMlKSWb.js";var t=e({default:()=>n}),n=[Object.freeze(JSON.parse(`{"displayName":"Shell","name":"shellscript","patterns":[{"include":"#initial_context"}],"repository":{"alias_statement":{"begin":"[\\\\t ]*+(alias)[\\\\t ]*+((?:((?<!\\\\w)-\\\\w+)\\\\b[\\\\t ]*+)*)[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"storage.type.alias.shell"},"2":{"patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"}]},"3":{"name":"string.unquoted.argument.shell constant.other.option.shell"},"4":{"name":"variable.other.assignment.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"variable.other.assignment.shell"},"7":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"8":{"name":"punctuation.definition.array.access.shell"},"9":{"name":"keyword.operator.assignment.shell"},"10":{"name":"keyword.operator.assignment.compound.shell"},"11":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\t ]|$)|(?:(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&))","endCaptures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"name":"meta.expression.assignment.alias.shell","patterns":[{"include":"#normal_context"}]},"argument":{"begin":"[\\\\t ]++(?![\\\\n#\\\\&(\\\\[|]|$|;)","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)\`])","endCaptures":{},"name":"meta.argument.shell","patterns":[{"include":"#argument_context"},{"include":"#line_continuation"}]},"argument_context":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell","patterns":[{"match":"\\\\*","name":"variable.language.special.wildcard.shell"},{"include":"#variable"},{"include":"#numeric_literal"},{"captures":{"1":{"name":"constant.language.$1.shell"}},"match":"(?<!\\\\w)\\\\b(true|false)\\\\b(?!\\\\w)"}]}},"match":"[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]+(?!>))"},{"include":"#normal_context"}]},"arithmetic_double":{"patterns":[{"begin":"\\\\(\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"end":"\\\\)\\\\s*\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"arithmetic_no_dollar":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"array_access_inline":{"captures":{"1":{"name":"punctuation.section.array.shell"},"2":{"patterns":[{"include":"#special_expansion"},{"include":"#string"},{"include":"#variable"}]},"3":{"name":"punctuation.section.array.shell"}},"match":"(\\\\[)([^]\\\\[]+)(])"},"array_value":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))[\\\\t ]*+(\\\\()","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"punctuation.definition.array.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.array.shell"}},"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"variable.other.assignment.array.shell entity.other.attribute-name.shell"},"2":{"name":"keyword.operator.assignment.shell punctuation.definition.assignment.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(=)"},{"captures":{"1":{"name":"punctuation.definition.bracket.named-array.shell"},"2":{"name":"string.unquoted.shell entity.other.attribute-name.bracket.shell"},"3":{"name":"punctuation.definition.bracket.named-array.shell"},"4":{"name":"punctuation.definition.assignment.shell"}},"match":"(\\\\[)(.+?)(])(=)"},{"include":"#normal_context"},{"include":"#simple_unquoted"}]},"assignment_statement":{"patterns":[{"include":"#array_value"},{"include":"#modified_assignment_statement"},{"include":"#normal_assignment_statement"}]},"basic_command_name":{"captures":{"1":{"name":"storage.modifier.$1.shell"},"2":{"name":"entity.name.function.call.shell entity.name.command.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"support.function.builtin.shell"},{"include":"#variable"}]}},"match":"(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?:((?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$))|((?![\\"']|\\\\\\\\\\\\n?$)[^\\\\t\\\\n\\\\r !\\"'<>]+?))(?:(?=[\\\\t ])|(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\))","name":"meta.statement.command.name.basic.shell"},"block_comment":{"begin":"\\\\s*+(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.shell"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.shell"}},"name":"comment.block.shell"},"boolean":{"match":"\\\\b(?:true|false)\\\\b","name":"constant.language.$0.shell"},"case_statement":{"begin":"\\\\b(case)\\\\b[\\\\t ]*+(.+?)[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.shell"},"2":{"patterns":[{"include":"#initial_context"}]},"3":{"name":"keyword.control.in.shell"}},"end":"\\\\besac\\\\b","endCaptures":{"0":{"name":"keyword.control.esac.shell"}},"name":"meta.case.shell","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.operator.pattern.case.default.shell"}},"match":"[\\\\t ]*+(\\\\* *\\\\))"},{"begin":"(?<!\\\\))(?![\\\\t ]*+(?:esac\\\\b|$))","beginCaptures":{},"end":"(?=\\\\besac\\\\b)|(\\\\))","endCaptures":{"1":{"name":"keyword.operator.pattern.case.shell"}},"name":"meta.case.entry.pattern.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"(?<=\\\\))","beginCaptures":{},"end":"(;;)|(?=\\\\besac\\\\b)","endCaptures":{"1":{"name":"punctuation.terminator.statement.case.shell"}},"name":"meta.case.entry.body.shell","patterns":[{"include":"#typical_statements"},{"include":"#initial_context"}]}]},"case_statement_context":{"patterns":[{"match":"\\\\*","name":"variable.language.special.quantifier.star.shell keyword.operator.quantifier.star.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\+","name":"variable.language.special.quantifier.plus.shell keyword.operator.quantifier.plus.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\?","name":"variable.language.special.quantifier.question.shell keyword.operator.quantifier.question.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"@","name":"variable.language.special.at.shell keyword.operator.at.shell punctuation.definition.regex.at.shell"},{"match":"\\\\|","name":"keyword.operator.orvariable.language.special.or.shell keyword.operator.alternation.ruby.shell punctuation.definition.regex.alternation.shell punctuation.separator.regex.alternation.shell"},{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"match":"(?<=\\\\tin| in|[\\\\t ]|;;)\\\\(","name":"keyword.operator.pattern.case.shell"},{"begin":"(?<=\\\\S)(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"name":"meta.parenthese.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"name":"string.regexp.character-class.shell","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"}]},{"include":"#string"},{"match":"[^\\\\t\\\\n )*?@\\\\[|]","name":"string.unquoted.pattern.shell string.regexp.unquoted.shell"}]},"command_name_range":{"begin":"\\\\G","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)\`])|(?=<)","endCaptures":{},"name":"meta.statement.command.name.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"entity.name.function.call.shell entity.name.command.shell keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"entity.name.function.call.shell entity.name.command.shell support.function.builtin.shell"},{"include":"#variable"},{"captures":{"1":{"name":"entity.name.function.call.shell entity.name.command.shell"}},"match":"(?<!\\\\w)(?<=\\\\G|[\\"')}])([^\\\\t\\\\n\\\\r \\"\\\\&');->\`{|]+)"},{"begin":"(?:\\\\G|(?<![\\\\t\\\\n #\\\\&;{|]))(\\\\$?)((\\")|('))","beginCaptures":{"1":{"name":"meta.statement.command.name.quoted.shell punctuation.definition.string.shell entity.name.function.call.shell entity.name.command.shell"},"2":{},"3":{"name":"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},"4":{"name":"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"}},"end":"(?<!\\\\G)(?<=\\\\2)","endCaptures":{},"patterns":[{"include":"#continuation_of_single_quoted_command_name"},{"include":"#continuation_of_double_quoted_command_name"}]},{"include":"#line_continuation"},{"include":"#simple_unquoted"}]},"command_statement":{"begin":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"},{"include":"#heredoc"}]},"comment":{"captures":{"1":{"name":"comment.line.number-sign.shell meta.shebang.shell"},"2":{"name":"punctuation.definition.comment.shebang.shell"},"3":{"name":"comment.line.number-sign.shell"},"4":{"name":"punctuation.definition.comment.shell"}},"match":"(?:^|[\\\\t ]++)(?:((#!).*)|((#).*))"},"comments":{"patterns":[{"include":"#block_comment"},{"include":"#line_comment"}]},"compound-command":{"patterns":[{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical-expression"},{"include":"#initial_context"}]},{"begin":"(?<=\\\\s|^)\\\\{(?=\\\\s|$)","beginCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"end":"(?<=^|;)\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"continuation_of_double_quoted_command_name":{"begin":"\\\\G(?<=\\")","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.double entity.name.function.call entity.name.command","end":"\\"","endCaptures":{"0":{"name":"string.quoted.double.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"continuation_of_single_quoted_command_name":{"begin":"\\\\G(?<=')","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.single entity.name.function.call entity.name.command","end":"'","endCaptures":{"0":{"name":"string.quoted.single.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}}},"custom_command_names":{"patterns":[]},"custom_commands":{"patterns":[]},"double_quote_context":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"double_quote_escape_char":{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},"floating_keyword":{"patterns":[{"match":"(?<=^|[\\\\t \\\\&;])(?:then|elif|else|done|end|do|if|fi)(?=[\\\\t \\\\&;]|$)","name":"keyword.control.$0.shell"}]},"for_statement":{"patterns":[{"begin":"\\\\b(for)\\\\b[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"},"2":{"name":"variable.other.for.shell"},"3":{"name":"keyword.control.in.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.in.shell","patterns":[{"include":"#string"},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},{"begin":"\\\\b(for)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.shell","patterns":[{"include":"#arithmetic_double"},{"include":"#normal_context"}]}]},"function_definition":{"applyEndPatternLast":1,"begin":"[\\\\t ]*+(?:\\\\b(function)\\\\b[\\\\t ]*+([^\\\\t\\\\n\\\\r \\"'()=]+)(?:(\\\\()[\\\\t ]*+(\\\\)))?|([^\\\\t\\\\n\\\\r \\"'()=]+)[\\\\t ]*+(\\\\()[\\\\t ]*+(\\\\)))","beginCaptures":{"1":{"name":"storage.type.function.shell"},"2":{"name":"entity.name.function.shell"},"3":{"name":"punctuation.definition.arguments.shell"},"4":{"name":"punctuation.definition.arguments.shell"},"5":{"name":"entity.name.function.shell"},"6":{"name":"punctuation.definition.arguments.shell"},"7":{"name":"punctuation.definition.arguments.shell"}},"end":"(?<=[)}])","endCaptures":{},"name":"meta.function.shell","patterns":[{"match":"\\\\G[\\\\t\\\\n ]"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"include":"#initial_context"}]},"heredoc":{"patterns":[{"begin":"((?<!<)<<-)[\\\\t ]*+([\\"'])[\\\\t ]*+([^\\"']+?)(?=[\\"\\\\&';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.indent.$3","end":"^\\\\t*\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.$0.shell"}},"patterns":[]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([\\"'])[\\\\t ]*+([^\\"']+?)(?=[\\"\\\\&';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.no-indent.$3","end":"^\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[]},{"begin":"((?<!<)<<-)[\\\\t ]*+([^\\\\t \\"']+)(?=[\\"\\\\&';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.indent.$2","end":"^\\\\t*\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([^\\\\t \\"']+)(?=[\\"\\\\&';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.no-indent.$2","end":"^\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]}]},"herestring":{"patterns":[{"begin":"(<<<)\\\\s*(('))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.single.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.single.shell","end":"(')","endCaptures":{"0":{"name":"string.quoted.single.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell"},{"begin":"(<<<)\\\\s*((\\"))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.double.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.double.shell","end":"(\\")","endCaptures":{"0":{"name":"string.quoted.double.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell","patterns":[{"include":"#double_quote_context"}]},{"captures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.unquoted.herestring.shell","patterns":[{"include":"#initial_context"}]}},"match":"(<<<)\\\\s*(([^)\\\\\\\\\\\\s]|\\\\\\\\.)+)","name":"meta.herestring.shell"}]},"initial_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#logical_expression_double"},{"include":"#logical_expression_single"},{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#loop"},{"include":"#function_definition"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#misc_ranges"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#alias_statement"},{"include":"#normal_statement"},{"include":"#string"},{"include":"#support"}]},"inline_comment":{"captures":{"1":{"name":"comment.block.shell punctuation.definition.comment.begin.shell"},"2":{"name":"comment.block.shell"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.shell punctuation.definition.comment.end.shell"},{"match":"\\\\*","name":"comment.block.shell"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"},"interpolation":{"patterns":[{"include":"#arithmetic_dollar"},{"include":"#subshell_dollar"},{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"end":"\`","endCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"name":"string.interpolated.backtick.shell","patterns":[{"match":"\\\\\\\\[$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"begin":"(?<=\\\\W)(?=#)(?!#\\\\{)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.shell"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.shell"}},"end":"(?=\`)","name":"comment.line.number-sign.shell"}]},{"include":"#initial_context"}]}]},"keyword":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(then|else|elif|fi|for|in|do|done|select|continue|esac|while|until|return)(?=[\\\\&;\\\\s]|$)","name":"keyword.control.shell"},{"match":"(?<=^|[\\\\&;\\\\s])(?:export|declare|typeset|local|readonly)(?=[\\\\&;\\\\s]|$)","name":"storage.modifier.shell"}]},"line_comment":{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.shell"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","endCaptures":{},"name":"comment.line.double-slash.shell","patterns":[{"include":"#line_continuation_character"}]},"line_continuation":{"match":"\\\\\\\\(?=\\\\n)","name":"constant.character.escape.line-continuation.shell"},"logical-expression":{"patterns":[{"include":"#arithmetic_no_dollar"},{"match":"=[=~]?|!=?|[<>]|&&|\\\\|\\\\|","name":"keyword.operator.logical.shell"},{"match":"(?<!\\\\S)-(nt|ot|ef|eq|ne|l[et]|g[et]|[GLNOSa-hknopr-uwxz])\\\\b","name":"keyword.operator.logical.shell"}]},"logical_expression_context":{"patterns":[{"include":"#regex_comparison"},{"include":"#arithmetic_no_dollar"},{"include":"#logical-expression"},{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#comment"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"logical_expression_double":{"begin":"\\\\[\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"logical_expression_single":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"loop":{"patterns":[{"begin":"(?<=^|[\\\\&;\\\\s])(for)\\\\s+(.+?)\\\\s+(in)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell","patterns":[{"include":"#string"}]},"3":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.for-in-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(while|until)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.while-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(select)\\\\s+((?:[^\\\\\\\\\\\\s]|\\\\\\\\.)+)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell"}},"end":"(?<=^|[\\\\&;\\\\s])(done)(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"1":{"name":"keyword.control.shell"}},"name":"meta.scope.select-block.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])if(?=[\\\\&;\\\\s]|$)","beginCaptures":{"0":{"name":"keyword.control.if.shell"}},"end":"(?<=^|[\\\\&;\\\\s])fi(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"keyword.control.fi.shell"}},"name":"meta.scope.if-block.shell","patterns":[{"include":"#initial_context"}]}]},"math":{"patterns":[{"include":"#variable"},{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":";","name":"punctuation.separator.semicolon.range"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"},{"match":"(?<!\\\\w)[0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"}]},"math_operators":{"patterns":[{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"}]},"misc_ranges":{"patterns":[{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#subshell_dollar"},{"begin":"(?<![^\\\\t ])(\\\\{)(?![$\\\\w])","beginCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"modified_assignment_statement":{"begin":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","beginCaptures":{"0":{"name":"storage.modifier.$0.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell meta.expression.assignment.modified.shell","patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"},{"include":"#array_value"},{"captures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"10":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"11":{"name":"constant.numeric.shell constant.numeric.other.shell"},"12":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"13":{"name":"constant.numeric.shell constant.numeric.version.shell"},"14":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))?(?:(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}]))?"},{"include":"#normal_context"}]},"modifiers":{"match":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","name":"storage.modifier.$0.shell"},"normal_assignment_statement":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.expression.assignment.shell","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#normal_assignment_statement"},{"begin":"(?<=[\\\\t ])(?![\\\\t ]|\\\\w+=)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.env.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"}]},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},"normal_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#misc_ranges"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"},{"include":"#parenthese"}]},"normal_statement":{"begin":"(?!^[\\\\t ]*+$)(?:(?<=(?:^until| until|\\\\tuntil|^while| while|\\\\twhile|^elif| elif|\\\\telif|^else| else|\\\\telse|^then| then|\\\\tthen|^do| do|\\\\tdo|^if| if|\\\\tif) )|(?<=^|[!\\\\&(;\`{|]))[\\\\t ]*+(?!nocorrect\\\\W|nocorrect\\\\$|function\\\\W|function\\\\$|foreach\\\\W|foreach\\\\$|repeat\\\\W|repeat\\\\$|logout\\\\W|logout\\\\$|coproc\\\\W|coproc\\\\$|select\\\\W|select\\\\$|while\\\\W|while\\\\$|pushd\\\\W|pushd\\\\$|until\\\\W|until\\\\$|case\\\\W|case\\\\$|done\\\\W|done\\\\$|elif\\\\W|elif\\\\$|else\\\\W|else\\\\$|esac\\\\W|esac\\\\$|popd\\\\W|popd\\\\$|then\\\\W|then\\\\$|time\\\\W|time\\\\$|for\\\\W|for\\\\$|end\\\\W|end\\\\$|fi\\\\W|fi\\\\$|do\\\\W|do\\\\$|in\\\\W|in\\\\$|if\\\\W|if\\\\$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell","patterns":[{"include":"#typical_statements"}]},"normal_statement_seperator":{"captures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"match":"(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&)"},"numeric_literal":{"captures":{"1":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"2":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"3":{"name":"constant.numeric.shell constant.numeric.other.shell"},"4":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"5":{"name":"constant.numeric.shell constant.numeric.version.shell"},"6":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}])"},"option":{"begin":"[\\\\t ]++(-)((?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;]))","beginCaptures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"contentName":"string.unquoted.argument constant.other.option","end":"(?=[\\\\t ])|(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"patterns":[{"include":"#option_context"}]},"option_context":{"patterns":[{"include":"#misc_ranges"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"parenthese":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"name":"meta.parenthese.group.shell","patterns":[{"include":"#initial_context"}]}]},"pathname":{"patterns":[{"match":"(?<=[:=\\\\s]|^)~","name":"keyword.operator.tilde.shell"},{"match":"[*?]","name":"keyword.operator.glob.shell"},{"begin":"([!*+?@])(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.extglob.shell"},"2":{"name":"punctuation.definition.extglob.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.extglob.shell"}},"name":"meta.structure.extglob.shell","patterns":[{"include":"#initial_context"}]}]},"pipeline":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(time)(?=[\\\\&;\\\\s]|$)","name":"keyword.other.shell"},{"match":"[!|]","name":"keyword.operator.pipe.shell"}]},"redirect_fix":{"captures":{"1":{"name":"keyword.operator.redirect.shell"},"2":{"name":"string.unquoted.argument.shell"}},"match":"(>>?)[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]+)"},"redirect_number":{"captures":{"1":{"name":"keyword.operator.redirect.stdout.shell"},"2":{"name":"keyword.operator.redirect.stderr.shell"},"3":{"name":"keyword.operator.redirect.$3.shell"}},"match":"(?<=[\\\\t ])(?:(1)|(2)|(\\\\d+))(?=>)"},"redirection":{"patterns":[{"begin":"[<>]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.interpolated.process-substitution.shell","patterns":[{"include":"#initial_context"}]},{"match":"(?<![<>])(&>|\\\\d*>&\\\\d*|\\\\d*(>>|[<>])|\\\\d*<&|\\\\d*<>)(?![<>])","name":"keyword.operator.redirect.shell"}]},"regex_comparison":{"match":"=~","name":"keyword.operator.logical.regex.shell"},"regexp":{"patterns":[{"match":".+"}]},"simple_options":{"captures":{"0":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"match":"[\\\\t ]++(-)(\\\\w+)"}]}},"match":"(?:[\\\\t ]++-\\\\w+)*"},"simple_unquoted":{"match":"[^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]","name":"string.unquoted.shell"},"special_expansion":{"match":"!|:[-=?]?|[*@]|##?|%%|[%/]","name":"keyword.operator.expansion.shell"},"start_of_command":{"match":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)"},"string":{"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.shell"},{"begin":"\\\\$?\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.double.shell","patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"\\\\$'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.dollar.shell","patterns":[{"match":"\\\\\\\\['\\\\\\\\abefnrtv]","name":"constant.character.escape.ansi-c.shell"},{"match":"\\\\\\\\[0-9]{3}\\"","name":"constant.character.escape.octal.shell"},{"match":"\\\\\\\\x\\\\h{2}\\"","name":"constant.character.escape.hex.shell"},{"match":"\\\\\\\\c.\\"","name":"constant.character.escape.control-char.shell"}]}]},"subshell_dollar":{"patterns":[{"begin":"\\\\$\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"name":"meta.scope.subshell","patterns":[{"include":"#parenthese"},{"include":"#initial_context"}]}]},"support":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])[.:](?=[\\\\&;\\\\s]|$)","name":"support.function.builtin.shell"}]},"typical_statements":{"patterns":[{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#while_statement"},{"include":"#function_definition"},{"include":"#command_statement"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#normal_context"}]},"variable":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.all.shell"},"2":{"name":"variable.parameter.positional.all.shell"}},"match":"(\\\\$)(@(?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"variable.parameter.positional.shell"}},"match":"(\\\\$)([0-9](?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.language.special.shell"},"2":{"name":"variable.language.special.shell"}},"match":"(\\\\$)([-!#$*0?_](?!\\\\w))"},{"begin":"(\\\\$)(\\\\{)[\\\\t ]*+(?=\\\\d)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"[0-9]+","name":"variable.parameter.positional.shell"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"begin":"(\\\\$)(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.other.normal.shell"},"2":{"name":"variable.other.normal.shell"}},"match":"(\\\\$)(\\\\w+(?!\\\\w))"}]},"while_statement":{"patterns":[{"begin":"\\\\b(while)\\\\b","beginCaptures":{"1":{"name":"keyword.control.while.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.while.shell","patterns":[{"include":"#line_continuation"},{"include":"#math_operators"},{"include":"#option"},{"include":"#simple_unquoted"},{"include":"#normal_context"},{"include":"#string"}]}]}},"scopeName":"source.shell","aliases":["bash","sh","shell","zsh"]}`))];export{t as n,n as t};
1
+ import{ln as e}from"./_DCAqomRE.js";var t=e({default:()=>n}),n=[Object.freeze(JSON.parse(`{"displayName":"Shell","name":"shellscript","patterns":[{"include":"#initial_context"}],"repository":{"alias_statement":{"begin":"[\\\\t ]*+(alias)[\\\\t ]*+((?:((?<!\\\\w)-\\\\w+)\\\\b[\\\\t ]*+)*)[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"storage.type.alias.shell"},"2":{"patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"}]},"3":{"name":"string.unquoted.argument.shell constant.other.option.shell"},"4":{"name":"variable.other.assignment.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"variable.other.assignment.shell"},"7":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"8":{"name":"punctuation.definition.array.access.shell"},"9":{"name":"keyword.operator.assignment.shell"},"10":{"name":"keyword.operator.assignment.compound.shell"},"11":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\t ]|$)|(?:(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&))","endCaptures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"name":"meta.expression.assignment.alias.shell","patterns":[{"include":"#normal_context"}]},"argument":{"begin":"[\\\\t ]++(?![\\\\n#\\\\&(\\\\[|]|$|;)","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)\`])","endCaptures":{},"name":"meta.argument.shell","patterns":[{"include":"#argument_context"},{"include":"#line_continuation"}]},"argument_context":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell","patterns":[{"match":"\\\\*","name":"variable.language.special.wildcard.shell"},{"include":"#variable"},{"include":"#numeric_literal"},{"captures":{"1":{"name":"constant.language.$1.shell"}},"match":"(?<!\\\\w)\\\\b(true|false)\\\\b(?!\\\\w)"}]}},"match":"[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]+(?!>))"},{"include":"#normal_context"}]},"arithmetic_double":{"patterns":[{"begin":"\\\\(\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"end":"\\\\)\\\\s*\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"arithmetic_no_dollar":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"array_access_inline":{"captures":{"1":{"name":"punctuation.section.array.shell"},"2":{"patterns":[{"include":"#special_expansion"},{"include":"#string"},{"include":"#variable"}]},"3":{"name":"punctuation.section.array.shell"}},"match":"(\\\\[)([^]\\\\[]+)(])"},"array_value":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))[\\\\t ]*+(\\\\()","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"punctuation.definition.array.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.array.shell"}},"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"variable.other.assignment.array.shell entity.other.attribute-name.shell"},"2":{"name":"keyword.operator.assignment.shell punctuation.definition.assignment.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(=)"},{"captures":{"1":{"name":"punctuation.definition.bracket.named-array.shell"},"2":{"name":"string.unquoted.shell entity.other.attribute-name.bracket.shell"},"3":{"name":"punctuation.definition.bracket.named-array.shell"},"4":{"name":"punctuation.definition.assignment.shell"}},"match":"(\\\\[)(.+?)(])(=)"},{"include":"#normal_context"},{"include":"#simple_unquoted"}]},"assignment_statement":{"patterns":[{"include":"#array_value"},{"include":"#modified_assignment_statement"},{"include":"#normal_assignment_statement"}]},"basic_command_name":{"captures":{"1":{"name":"storage.modifier.$1.shell"},"2":{"name":"entity.name.function.call.shell entity.name.command.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"support.function.builtin.shell"},{"include":"#variable"}]}},"match":"(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?:((?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$))|((?![\\"']|\\\\\\\\\\\\n?$)[^\\\\t\\\\n\\\\r !\\"'<>]+?))(?:(?=[\\\\t ])|(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\))","name":"meta.statement.command.name.basic.shell"},"block_comment":{"begin":"\\\\s*+(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.shell"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.shell"}},"name":"comment.block.shell"},"boolean":{"match":"\\\\b(?:true|false)\\\\b","name":"constant.language.$0.shell"},"case_statement":{"begin":"\\\\b(case)\\\\b[\\\\t ]*+(.+?)[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.shell"},"2":{"patterns":[{"include":"#initial_context"}]},"3":{"name":"keyword.control.in.shell"}},"end":"\\\\besac\\\\b","endCaptures":{"0":{"name":"keyword.control.esac.shell"}},"name":"meta.case.shell","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.operator.pattern.case.default.shell"}},"match":"[\\\\t ]*+(\\\\* *\\\\))"},{"begin":"(?<!\\\\))(?![\\\\t ]*+(?:esac\\\\b|$))","beginCaptures":{},"end":"(?=\\\\besac\\\\b)|(\\\\))","endCaptures":{"1":{"name":"keyword.operator.pattern.case.shell"}},"name":"meta.case.entry.pattern.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"(?<=\\\\))","beginCaptures":{},"end":"(;;)|(?=\\\\besac\\\\b)","endCaptures":{"1":{"name":"punctuation.terminator.statement.case.shell"}},"name":"meta.case.entry.body.shell","patterns":[{"include":"#typical_statements"},{"include":"#initial_context"}]}]},"case_statement_context":{"patterns":[{"match":"\\\\*","name":"variable.language.special.quantifier.star.shell keyword.operator.quantifier.star.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\+","name":"variable.language.special.quantifier.plus.shell keyword.operator.quantifier.plus.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\?","name":"variable.language.special.quantifier.question.shell keyword.operator.quantifier.question.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"@","name":"variable.language.special.at.shell keyword.operator.at.shell punctuation.definition.regex.at.shell"},{"match":"\\\\|","name":"keyword.operator.orvariable.language.special.or.shell keyword.operator.alternation.ruby.shell punctuation.definition.regex.alternation.shell punctuation.separator.regex.alternation.shell"},{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"match":"(?<=\\\\tin| in|[\\\\t ]|;;)\\\\(","name":"keyword.operator.pattern.case.shell"},{"begin":"(?<=\\\\S)(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"name":"meta.parenthese.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"name":"string.regexp.character-class.shell","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"}]},{"include":"#string"},{"match":"[^\\\\t\\\\n )*?@\\\\[|]","name":"string.unquoted.pattern.shell string.regexp.unquoted.shell"}]},"command_name_range":{"begin":"\\\\G","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)\`])|(?=<)","endCaptures":{},"name":"meta.statement.command.name.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"entity.name.function.call.shell entity.name.command.shell keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"entity.name.function.call.shell entity.name.command.shell support.function.builtin.shell"},{"include":"#variable"},{"captures":{"1":{"name":"entity.name.function.call.shell entity.name.command.shell"}},"match":"(?<!\\\\w)(?<=\\\\G|[\\"')}])([^\\\\t\\\\n\\\\r \\"\\\\&');->\`{|]+)"},{"begin":"(?:\\\\G|(?<![\\\\t\\\\n #\\\\&;{|]))(\\\\$?)((\\")|('))","beginCaptures":{"1":{"name":"meta.statement.command.name.quoted.shell punctuation.definition.string.shell entity.name.function.call.shell entity.name.command.shell"},"2":{},"3":{"name":"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},"4":{"name":"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"}},"end":"(?<!\\\\G)(?<=\\\\2)","endCaptures":{},"patterns":[{"include":"#continuation_of_single_quoted_command_name"},{"include":"#continuation_of_double_quoted_command_name"}]},{"include":"#line_continuation"},{"include":"#simple_unquoted"}]},"command_statement":{"begin":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"},{"include":"#heredoc"}]},"comment":{"captures":{"1":{"name":"comment.line.number-sign.shell meta.shebang.shell"},"2":{"name":"punctuation.definition.comment.shebang.shell"},"3":{"name":"comment.line.number-sign.shell"},"4":{"name":"punctuation.definition.comment.shell"}},"match":"(?:^|[\\\\t ]++)(?:((#!).*)|((#).*))"},"comments":{"patterns":[{"include":"#block_comment"},{"include":"#line_comment"}]},"compound-command":{"patterns":[{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical-expression"},{"include":"#initial_context"}]},{"begin":"(?<=\\\\s|^)\\\\{(?=\\\\s|$)","beginCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"end":"(?<=^|;)\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"continuation_of_double_quoted_command_name":{"begin":"\\\\G(?<=\\")","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.double entity.name.function.call entity.name.command","end":"\\"","endCaptures":{"0":{"name":"string.quoted.double.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"continuation_of_single_quoted_command_name":{"begin":"\\\\G(?<=')","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.single entity.name.function.call entity.name.command","end":"'","endCaptures":{"0":{"name":"string.quoted.single.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}}},"custom_command_names":{"patterns":[]},"custom_commands":{"patterns":[]},"double_quote_context":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"double_quote_escape_char":{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},"floating_keyword":{"patterns":[{"match":"(?<=^|[\\\\t \\\\&;])(?:then|elif|else|done|end|do|if|fi)(?=[\\\\t \\\\&;]|$)","name":"keyword.control.$0.shell"}]},"for_statement":{"patterns":[{"begin":"\\\\b(for)\\\\b[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"},"2":{"name":"variable.other.for.shell"},"3":{"name":"keyword.control.in.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.in.shell","patterns":[{"include":"#string"},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},{"begin":"\\\\b(for)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.shell","patterns":[{"include":"#arithmetic_double"},{"include":"#normal_context"}]}]},"function_definition":{"applyEndPatternLast":1,"begin":"[\\\\t ]*+(?:\\\\b(function)\\\\b[\\\\t ]*+([^\\\\t\\\\n\\\\r \\"'()=]+)(?:(\\\\()[\\\\t ]*+(\\\\)))?|([^\\\\t\\\\n\\\\r \\"'()=]+)[\\\\t ]*+(\\\\()[\\\\t ]*+(\\\\)))","beginCaptures":{"1":{"name":"storage.type.function.shell"},"2":{"name":"entity.name.function.shell"},"3":{"name":"punctuation.definition.arguments.shell"},"4":{"name":"punctuation.definition.arguments.shell"},"5":{"name":"entity.name.function.shell"},"6":{"name":"punctuation.definition.arguments.shell"},"7":{"name":"punctuation.definition.arguments.shell"}},"end":"(?<=[)}])","endCaptures":{},"name":"meta.function.shell","patterns":[{"match":"\\\\G[\\\\t\\\\n ]"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"include":"#initial_context"}]},"heredoc":{"patterns":[{"begin":"((?<!<)<<-)[\\\\t ]*+([\\"'])[\\\\t ]*+([^\\"']+?)(?=[\\"\\\\&';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.indent.$3","end":"^\\\\t*\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.$0.shell"}},"patterns":[]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([\\"'])[\\\\t ]*+([^\\"']+?)(?=[\\"\\\\&';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.no-indent.$3","end":"^\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[]},{"begin":"((?<!<)<<-)[\\\\t ]*+([^\\\\t \\"']+)(?=[\\"\\\\&';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.indent.$2","end":"^\\\\t*\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([^\\\\t \\"']+)(?=[\\"\\\\&';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.no-indent.$2","end":"^\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]}]},"herestring":{"patterns":[{"begin":"(<<<)\\\\s*(('))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.single.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.single.shell","end":"(')","endCaptures":{"0":{"name":"string.quoted.single.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell"},{"begin":"(<<<)\\\\s*((\\"))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.double.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.double.shell","end":"(\\")","endCaptures":{"0":{"name":"string.quoted.double.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell","patterns":[{"include":"#double_quote_context"}]},{"captures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.unquoted.herestring.shell","patterns":[{"include":"#initial_context"}]}},"match":"(<<<)\\\\s*(([^)\\\\\\\\\\\\s]|\\\\\\\\.)+)","name":"meta.herestring.shell"}]},"initial_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#logical_expression_double"},{"include":"#logical_expression_single"},{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#loop"},{"include":"#function_definition"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#misc_ranges"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#alias_statement"},{"include":"#normal_statement"},{"include":"#string"},{"include":"#support"}]},"inline_comment":{"captures":{"1":{"name":"comment.block.shell punctuation.definition.comment.begin.shell"},"2":{"name":"comment.block.shell"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.shell punctuation.definition.comment.end.shell"},{"match":"\\\\*","name":"comment.block.shell"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"},"interpolation":{"patterns":[{"include":"#arithmetic_dollar"},{"include":"#subshell_dollar"},{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"end":"\`","endCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"name":"string.interpolated.backtick.shell","patterns":[{"match":"\\\\\\\\[$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"begin":"(?<=\\\\W)(?=#)(?!#\\\\{)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.shell"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.shell"}},"end":"(?=\`)","name":"comment.line.number-sign.shell"}]},{"include":"#initial_context"}]}]},"keyword":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(then|else|elif|fi|for|in|do|done|select|continue|esac|while|until|return)(?=[\\\\&;\\\\s]|$)","name":"keyword.control.shell"},{"match":"(?<=^|[\\\\&;\\\\s])(?:export|declare|typeset|local|readonly)(?=[\\\\&;\\\\s]|$)","name":"storage.modifier.shell"}]},"line_comment":{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.shell"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","endCaptures":{},"name":"comment.line.double-slash.shell","patterns":[{"include":"#line_continuation_character"}]},"line_continuation":{"match":"\\\\\\\\(?=\\\\n)","name":"constant.character.escape.line-continuation.shell"},"logical-expression":{"patterns":[{"include":"#arithmetic_no_dollar"},{"match":"=[=~]?|!=?|[<>]|&&|\\\\|\\\\|","name":"keyword.operator.logical.shell"},{"match":"(?<!\\\\S)-(nt|ot|ef|eq|ne|l[et]|g[et]|[GLNOSa-hknopr-uwxz])\\\\b","name":"keyword.operator.logical.shell"}]},"logical_expression_context":{"patterns":[{"include":"#regex_comparison"},{"include":"#arithmetic_no_dollar"},{"include":"#logical-expression"},{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#comment"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"logical_expression_double":{"begin":"\\\\[\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"logical_expression_single":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"loop":{"patterns":[{"begin":"(?<=^|[\\\\&;\\\\s])(for)\\\\s+(.+?)\\\\s+(in)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell","patterns":[{"include":"#string"}]},"3":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.for-in-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(while|until)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.while-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(select)\\\\s+((?:[^\\\\\\\\\\\\s]|\\\\\\\\.)+)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell"}},"end":"(?<=^|[\\\\&;\\\\s])(done)(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"1":{"name":"keyword.control.shell"}},"name":"meta.scope.select-block.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])if(?=[\\\\&;\\\\s]|$)","beginCaptures":{"0":{"name":"keyword.control.if.shell"}},"end":"(?<=^|[\\\\&;\\\\s])fi(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"keyword.control.fi.shell"}},"name":"meta.scope.if-block.shell","patterns":[{"include":"#initial_context"}]}]},"math":{"patterns":[{"include":"#variable"},{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":";","name":"punctuation.separator.semicolon.range"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"},{"match":"(?<!\\\\w)[0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"}]},"math_operators":{"patterns":[{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"}]},"misc_ranges":{"patterns":[{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#subshell_dollar"},{"begin":"(?<![^\\\\t ])(\\\\{)(?![$\\\\w])","beginCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"modified_assignment_statement":{"begin":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","beginCaptures":{"0":{"name":"storage.modifier.$0.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell meta.expression.assignment.modified.shell","patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"},{"include":"#array_value"},{"captures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"10":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"11":{"name":"constant.numeric.shell constant.numeric.other.shell"},"12":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"13":{"name":"constant.numeric.shell constant.numeric.version.shell"},"14":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))?(?:(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}]))?"},{"include":"#normal_context"}]},"modifiers":{"match":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","name":"storage.modifier.$0.shell"},"normal_assignment_statement":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.expression.assignment.shell","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#normal_assignment_statement"},{"begin":"(?<=[\\\\t ])(?![\\\\t ]|\\\\w+=)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.env.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"}]},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},"normal_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#misc_ranges"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"},{"include":"#parenthese"}]},"normal_statement":{"begin":"(?!^[\\\\t ]*+$)(?:(?<=(?:^until| until|\\\\tuntil|^while| while|\\\\twhile|^elif| elif|\\\\telif|^else| else|\\\\telse|^then| then|\\\\tthen|^do| do|\\\\tdo|^if| if|\\\\tif) )|(?<=^|[!\\\\&(;\`{|]))[\\\\t ]*+(?!nocorrect\\\\W|nocorrect\\\\$|function\\\\W|function\\\\$|foreach\\\\W|foreach\\\\$|repeat\\\\W|repeat\\\\$|logout\\\\W|logout\\\\$|coproc\\\\W|coproc\\\\$|select\\\\W|select\\\\$|while\\\\W|while\\\\$|pushd\\\\W|pushd\\\\$|until\\\\W|until\\\\$|case\\\\W|case\\\\$|done\\\\W|done\\\\$|elif\\\\W|elif\\\\$|else\\\\W|else\\\\$|esac\\\\W|esac\\\\$|popd\\\\W|popd\\\\$|then\\\\W|then\\\\$|time\\\\W|time\\\\$|for\\\\W|for\\\\$|end\\\\W|end\\\\$|fi\\\\W|fi\\\\$|do\\\\W|do\\\\$|in\\\\W|in\\\\$|if\\\\W|if\\\\$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell","patterns":[{"include":"#typical_statements"}]},"normal_statement_seperator":{"captures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"match":"(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&)"},"numeric_literal":{"captures":{"1":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"2":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"3":{"name":"constant.numeric.shell constant.numeric.other.shell"},"4":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"5":{"name":"constant.numeric.shell constant.numeric.version.shell"},"6":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}])"},"option":{"begin":"[\\\\t ]++(-)((?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;]))","beginCaptures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"contentName":"string.unquoted.argument constant.other.option","end":"(?=[\\\\t ])|(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"patterns":[{"include":"#option_context"}]},"option_context":{"patterns":[{"include":"#misc_ranges"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"parenthese":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"name":"meta.parenthese.group.shell","patterns":[{"include":"#initial_context"}]}]},"pathname":{"patterns":[{"match":"(?<=[:=\\\\s]|^)~","name":"keyword.operator.tilde.shell"},{"match":"[*?]","name":"keyword.operator.glob.shell"},{"begin":"([!*+?@])(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.extglob.shell"},"2":{"name":"punctuation.definition.extglob.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.extglob.shell"}},"name":"meta.structure.extglob.shell","patterns":[{"include":"#initial_context"}]}]},"pipeline":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(time)(?=[\\\\&;\\\\s]|$)","name":"keyword.other.shell"},{"match":"[!|]","name":"keyword.operator.pipe.shell"}]},"redirect_fix":{"captures":{"1":{"name":"keyword.operator.redirect.shell"},"2":{"name":"string.unquoted.argument.shell"}},"match":"(>>?)[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]+)"},"redirect_number":{"captures":{"1":{"name":"keyword.operator.redirect.stdout.shell"},"2":{"name":"keyword.operator.redirect.stderr.shell"},"3":{"name":"keyword.operator.redirect.$3.shell"}},"match":"(?<=[\\\\t ])(?:(1)|(2)|(\\\\d+))(?=>)"},"redirection":{"patterns":[{"begin":"[<>]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.interpolated.process-substitution.shell","patterns":[{"include":"#initial_context"}]},{"match":"(?<![<>])(&>|\\\\d*>&\\\\d*|\\\\d*(>>|[<>])|\\\\d*<&|\\\\d*<>)(?![<>])","name":"keyword.operator.redirect.shell"}]},"regex_comparison":{"match":"=~","name":"keyword.operator.logical.regex.shell"},"regexp":{"patterns":[{"match":".+"}]},"simple_options":{"captures":{"0":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"match":"[\\\\t ]++(-)(\\\\w+)"}]}},"match":"(?:[\\\\t ]++-\\\\w+)*"},"simple_unquoted":{"match":"[^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]","name":"string.unquoted.shell"},"special_expansion":{"match":"!|:[-=?]?|[*@]|##?|%%|[%/]","name":"keyword.operator.expansion.shell"},"start_of_command":{"match":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)"},"string":{"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.shell"},{"begin":"\\\\$?\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.double.shell","patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"\\\\$'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.dollar.shell","patterns":[{"match":"\\\\\\\\['\\\\\\\\abefnrtv]","name":"constant.character.escape.ansi-c.shell"},{"match":"\\\\\\\\[0-9]{3}\\"","name":"constant.character.escape.octal.shell"},{"match":"\\\\\\\\x\\\\h{2}\\"","name":"constant.character.escape.hex.shell"},{"match":"\\\\\\\\c.\\"","name":"constant.character.escape.control-char.shell"}]}]},"subshell_dollar":{"patterns":[{"begin":"\\\\$\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"name":"meta.scope.subshell","patterns":[{"include":"#parenthese"},{"include":"#initial_context"}]}]},"support":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])[.:](?=[\\\\&;\\\\s]|$)","name":"support.function.builtin.shell"}]},"typical_statements":{"patterns":[{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#while_statement"},{"include":"#function_definition"},{"include":"#command_statement"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#normal_context"}]},"variable":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.all.shell"},"2":{"name":"variable.parameter.positional.all.shell"}},"match":"(\\\\$)(@(?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"variable.parameter.positional.shell"}},"match":"(\\\\$)([0-9](?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.language.special.shell"},"2":{"name":"variable.language.special.shell"}},"match":"(\\\\$)([-!#$*0?_](?!\\\\w))"},{"begin":"(\\\\$)(\\\\{)[\\\\t ]*+(?=\\\\d)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"[0-9]+","name":"variable.parameter.positional.shell"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"begin":"(\\\\$)(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.other.normal.shell"},"2":{"name":"variable.other.normal.shell"}},"match":"(\\\\$)(\\\\w+(?!\\\\w))"}]},"while_statement":{"patterns":[{"begin":"\\\\b(while)\\\\b","beginCaptures":{"1":{"name":"keyword.control.while.shell"}},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.while.shell","patterns":[{"include":"#line_continuation"},{"include":"#math_operators"},{"include":"#option"},{"include":"#simple_unquoted"},{"include":"#normal_context"},{"include":"#string"}]}]}},"scopeName":"source.shell","aliases":["bash","sh","shell","zsh"]}`))];export{t as n,n as t};