@dylanpiercey/work 0.0.209 → 0.0.210
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.
- package/dist/index.mjs +819 -817
- package/dist/public/assets/_0dJou0AM.js +1 -0
- package/dist/public/assets/_0xqwEnD7.js +1 -0
- package/dist/public/assets/{_Mrj8c3Ez.js → _20KaP1JA.js} +1 -1
- package/dist/public/assets/_20KaP1JA.js.br +0 -0
- package/dist/public/assets/{_Bg2giK-d.js → _3WRbF52_.js} +1 -1
- package/dist/public/assets/_3WRbF52_.js.br +0 -0
- package/dist/public/assets/{_fDIsFugr.js → _3pE4k6Yi.js} +1 -1
- package/dist/public/assets/_3pE4k6Yi.js.br +0 -0
- package/dist/public/assets/_5-sn35rn.js +1 -0
- package/dist/public/assets/{_C-eI_Yb9.js → _7wg_5JMk.js} +1 -1
- package/dist/public/assets/_7wg_5JMk.js.br +0 -0
- package/dist/public/assets/_8RQa7okb.js +1 -0
- package/dist/public/assets/_A27P_enb.js +1 -0
- package/dist/public/assets/_AkhJscDn.js +1 -0
- package/dist/public/assets/_B-a_uKvB.js +1 -0
- package/dist/public/assets/{_D-ln1Dsz.js → _B-jrYAnY.js} +1 -1
- package/dist/public/assets/_B02nmJo_.js +1 -0
- package/dist/public/assets/_B0nRTY78.js +1 -0
- package/dist/public/assets/_B2GkV-Se.js +1 -0
- package/dist/public/assets/_B2bFxbLe.js +1 -0
- package/dist/public/assets/{_y4bkwXdB.js → _B6Jfpwmb.js} +1 -1
- package/dist/public/assets/_B6Jfpwmb.js.br +0 -0
- package/dist/public/assets/{_Cft5_Yxu.js → _B7OE_Bvi.js} +1 -1
- package/dist/public/assets/_B7OE_Bvi.js.br +0 -0
- package/dist/public/assets/{_D-NU-WMB.js → _B7hdlq98.js} +1 -1
- package/dist/public/assets/_B7hdlq98.js.br +0 -0
- package/dist/public/assets/{_pE0xU4qe.js → _B9ncgVKo.js} +1 -1
- package/dist/public/assets/_B9ncgVKo.js.br +0 -0
- package/dist/public/assets/_BCeid2ej.js +1 -0
- package/dist/public/assets/{_3LSLzlWC.js → _BDmvc34O.js} +1 -1
- package/dist/public/assets/_BDmvc34O.js.br +0 -0
- package/dist/public/assets/_BG7kPN9P.js +1 -0
- package/dist/public/assets/_BKRCtzeA.js +1 -0
- package/dist/public/assets/{_BzBu5Fnk.js → _BM7XpRKs.js} +1 -1
- package/dist/public/assets/_BM7XpRKs.js.br +0 -0
- package/dist/public/assets/_BP7AuuVk.js +1 -0
- package/dist/public/assets/{_ICiPbKws.js → _BPPM1zD6.js} +1 -1
- package/dist/public/assets/_BPPM1zD6.js.br +0 -0
- package/dist/public/assets/{_DxSv0sBt.js → _BQAOa_6M.js} +1 -1
- package/dist/public/assets/_BQAOa_6M.js.br +0 -0
- package/dist/public/assets/{_DTdVnOfZ.js → _BQG6yae8.js} +1 -1
- package/dist/public/assets/_BQG6yae8.js.br +0 -0
- package/dist/public/assets/_BQce_HBg.js +1 -0
- package/dist/public/assets/_BRoQ5T1y.js +1 -0
- package/dist/public/assets/{_D-Qz1kch.js → _BSAp3rsZ.js} +1 -1
- package/dist/public/assets/_BSAp3rsZ.js.br +0 -0
- package/dist/public/assets/{_UkGN9jrP.js → _BSEZrNxm.js} +1 -1
- package/dist/public/assets/_BSEZrNxm.js.br +0 -0
- package/dist/public/assets/{_DG2KAXKy.js → _BSOZk18Y.js} +1 -1
- package/dist/public/assets/_BSOZk18Y.js.br +0 -0
- package/dist/public/assets/{_DpBZ1d3i.js → _BSPoLZdf.js} +1 -1
- package/dist/public/assets/_BSPoLZdf.js.br +0 -0
- package/dist/public/assets/_BTPpjvdJ.js +1 -0
- package/dist/public/assets/_BWGV81da.js +1 -0
- package/dist/public/assets/{_Cyj19tlp.js → _BYQRrkP1.js} +1 -1
- package/dist/public/assets/_BYQRrkP1.js.br +0 -0
- package/dist/public/assets/{_e-ekFsZj.js → _BZ6SFOiW.js} +6 -6
- package/dist/public/assets/_BZ6SFOiW.js.br +0 -0
- package/dist/public/assets/_BaWfyuHz.js +1 -0
- package/dist/public/assets/{_BtvoqFjD.js → _Bc02j4al.js} +1 -1
- package/dist/public/assets/_Bc02j4al.js.br +0 -0
- package/dist/public/assets/{_CzfIQscQ.js → _BcJ5RUh0.js} +1 -1
- package/dist/public/assets/_BcJ5RUh0.js.br +0 -0
- package/dist/public/assets/{_CrHsZPxI.js → _Bd2mNP7K.js} +1 -1
- package/dist/public/assets/_Bd2mNP7K.js.br +0 -0
- package/dist/public/assets/{_oJlX-jjJ.js → _BesZKBHb.js} +1 -1
- package/dist/public/assets/_BesZKBHb.js.br +0 -0
- package/dist/public/assets/{_DwKDi5Ok.js → _BhRPxFpM.js} +1 -1
- package/dist/public/assets/_BhRPxFpM.js.br +0 -0
- package/dist/public/assets/{_CsatxXH0.js → _BiM1rHY7.js} +1 -1
- package/dist/public/assets/_BiM1rHY7.js.br +0 -0
- package/dist/public/assets/_BnvqvaZ_.js +1 -0
- package/dist/public/assets/{_BZMCZUlo.js → _BppCb2rx.js} +1 -1
- package/dist/public/assets/_BppCb2rx.js.br +0 -0
- package/dist/public/assets/_BrN_RoOK.js +1 -0
- package/dist/public/assets/_Bt-fHqBk.js +1 -0
- package/dist/public/assets/{_skwonj4s.js → _Bv5qXziM.js} +1 -1
- package/dist/public/assets/_Bv5qXziM.js.br +0 -0
- package/dist/public/assets/{_C-EFXeLO.js → _Bvp_jUYS.js} +1 -1
- package/dist/public/assets/_Bvp_jUYS.js.br +0 -0
- package/dist/public/assets/_BwUXxJjU.js +6 -0
- package/dist/public/assets/_BwUXxJjU.js.br +0 -0
- package/dist/public/assets/_BwW8ilMI.js +1 -0
- package/dist/public/assets/_Bwf-HdMq.js +1 -0
- package/dist/public/assets/{_BxKSO8eD.js → _BxRcgz-5.js} +1 -1
- package/dist/public/assets/_BxRcgz-5.js.br +0 -0
- package/dist/public/assets/{_BOnNFQby.js → _ByR64c_N.js} +1 -1
- package/dist/public/assets/_ByR64c_N.js.br +0 -0
- package/dist/public/assets/_C0mKAoYJ.js +1 -0
- package/dist/public/assets/_C4-TxPKo.js +1 -0
- package/dist/public/assets/{_C_hyvd4P.js → _C5h3JdKg.js} +1 -1
- package/dist/public/assets/_C5h3JdKg.js.br +0 -0
- package/dist/public/assets/{_CkwcHZFz.js → _C5rtMxlC.js} +1 -1
- package/dist/public/assets/_C5rtMxlC.js.br +0 -0
- package/dist/public/assets/_C7ETpBSe.js +1 -0
- package/dist/public/assets/_C8oRTpw1.js +1 -0
- package/dist/public/assets/_CB4Ra2wN.js +1 -0
- package/dist/public/assets/_CFSKnB5T.js +1 -0
- package/dist/public/assets/{_DY4QVTmX.js → _CGkbxK_d.js} +1 -1
- package/dist/public/assets/_CGkbxK_d.js.br +0 -0
- package/dist/public/assets/_CMnySwBF.js +1 -0
- package/dist/public/assets/_CNR9PP_F.js +1 -0
- package/dist/public/assets/{_Br_pixY5.js → _CQUUCk60.js} +1 -1
- package/dist/public/assets/_CQUUCk60.js.br +0 -0
- package/dist/public/assets/{_DMbnOs8k.js → _CUYi28ox.js} +1 -1
- package/dist/public/assets/_CUYi28ox.js.br +0 -0
- package/dist/public/assets/{_BRou-AxD.js → _CVi6PGLR.js} +1 -1
- package/dist/public/assets/_CVi6PGLR.js.br +0 -0
- package/dist/public/assets/_CX-qeRM7.js +1 -0
- package/dist/public/assets/_C_T4KSwl.js +1 -0
- package/dist/public/assets/{_CxurpjVP.js → _C_ldJgKp.js} +6 -6
- package/dist/public/assets/_C_ldJgKp.js.br +0 -0
- package/dist/public/assets/_C_v8JMIS.js +1 -0
- package/dist/public/assets/_CcpVxEK1.js +1 -0
- package/dist/public/assets/_CeaKst3m.js +1 -0
- package/dist/public/assets/{_Cy_kgwnU.js → _CfLSkgM-.js} +1 -1
- package/dist/public/assets/_CfLSkgM-.js.br +0 -0
- package/dist/public/assets/{_DdiBYbsV.js → _CfWdWfEs.js} +1 -1
- package/dist/public/assets/_CfWdWfEs.js.br +0 -0
- package/dist/public/assets/{_CnCs88Sm.js → _CfmNeFRl.js} +1 -1
- package/dist/public/assets/_CfmNeFRl.js.br +0 -0
- package/dist/public/assets/{_B99kj7FB.js → _CkXJXNe1.js} +1 -1
- package/dist/public/assets/{_DnOoY3Kr.js → _Ck_XTVfX.js} +1 -1
- package/dist/public/assets/_Ck_XTVfX.js.br +0 -0
- package/dist/public/assets/_CsFzDa4K.js +1 -0
- package/dist/public/assets/{_BqRXqrI4.js → _Cvk0JQ_b.js} +1 -1
- package/dist/public/assets/_Cvk0JQ_b.js.br +0 -0
- package/dist/public/assets/{_CNHnzLEI.js → _CvkVDFLJ.js} +1 -1
- package/dist/public/assets/_CvkVDFLJ.js.br +0 -0
- package/dist/public/assets/{_DG2jqrMy.js → _CwR6-mlD.js} +1 -1
- package/dist/public/assets/_CwR6-mlD.js.br +0 -0
- package/dist/public/assets/{_DXPvD8hB.js → _Cy59cI9h.js} +1 -1
- package/dist/public/assets/_Cy59cI9h.js.br +0 -0
- package/dist/public/assets/_CzSCKvx4.js +1 -0
- package/dist/public/assets/_D2Fqg4MR.js +1 -0
- package/dist/public/assets/_D2lukDwC.js +1 -0
- package/dist/public/assets/_D4p1bez7.js +1 -0
- package/dist/public/assets/{_BMtW8CIq.js → _D6dA8sOf.js} +1 -1
- package/dist/public/assets/_D6dA8sOf.js.br +0 -0
- package/dist/public/assets/_D7mJ0_dy.js +1 -0
- package/dist/public/assets/_D929CgNf.js +1 -0
- package/dist/public/assets/_DBbYLMB2.js +1 -0
- package/dist/public/assets/{_RQYXZbng.js → _DCfbsiKt.js} +3 -3
- package/dist/public/assets/_DCfbsiKt.js.br +0 -0
- package/dist/public/assets/{_BawhX_qk.js → _DDR6LzXa.js} +1 -1
- package/dist/public/assets/_DDR6LzXa.js.br +0 -0
- package/dist/public/assets/_DEeQ4RMK.js +1 -0
- package/dist/public/assets/{_BKcvUTVh.js → _DFXiXKAa.js} +1 -1
- package/dist/public/assets/_DFXiXKAa.js.br +0 -0
- package/dist/public/assets/{_kqe2VGfS.js → _DGugG2mu.js} +1 -1
- package/dist/public/assets/_DGugG2mu.js.br +0 -0
- package/dist/public/assets/{_CR6Hpueo.js → _DHKxnN_V.js} +1 -1
- package/dist/public/assets/_DHKxnN_V.js.br +0 -0
- package/dist/public/assets/{_CnzGUQnv.js → _DL-lMRPt.js} +1 -1
- package/dist/public/assets/_DL-lMRPt.js.br +0 -0
- package/dist/public/assets/_DLeoqXH-.js +1 -0
- package/dist/public/assets/_DLnduhVR.js +1 -0
- package/dist/public/assets/_DNvcnQkk.js +1 -0
- package/dist/public/assets/_DO_0z2FY.js +1 -0
- package/dist/public/assets/_DPm4rbib.js +1 -0
- package/dist/public/assets/{_Bwl9hW9V.js → _DPwiBBGH.js} +1 -1
- package/dist/public/assets/_DPwiBBGH.js.br +0 -0
- package/dist/public/assets/{_Gom1JocY.js → _DRhkEUyS.js} +1 -1
- package/dist/public/assets/_DRhkEUyS.js.br +0 -0
- package/dist/public/assets/_DStyPKqL.js +1 -0
- package/dist/public/assets/{_CkGn6OAF.js → _DSyDuhXZ.js} +1 -1
- package/dist/public/assets/_DSyDuhXZ.js.br +0 -0
- package/dist/public/assets/_DURJAUVn.js +1 -0
- package/dist/public/assets/{_CjsHrgRV.js → _DUWRdGd_.js} +1 -1
- package/dist/public/assets/_DUWRdGd_.js.br +0 -0
- package/dist/public/assets/{_Kb_2dLPX.js → _DV27-uuE.js} +2 -2
- package/dist/public/assets/_DV27-uuE.js.br +0 -0
- package/dist/public/assets/{_CnLGD4yW.js → _DW8HdPSU.js} +1 -1
- package/dist/public/assets/_DW8HdPSU.js.br +0 -0
- package/dist/public/assets/_DYViAgQT.js +1 -0
- package/dist/public/assets/{_BZdL3tgy.js → _DZXflGWr.js} +1 -1
- package/dist/public/assets/_DZXflGWr.js.br +0 -0
- package/dist/public/assets/_Da4aTzvX.js +1 -0
- package/dist/public/assets/_Dbi4GRnM.js +1 -0
- package/dist/public/assets/_Dd1LwN2j.js +1 -0
- package/dist/public/assets/{_COsEY8gu.js → _DdqjDYvZ.js} +1 -1
- package/dist/public/assets/_DdqjDYvZ.js.br +0 -0
- package/dist/public/assets/{_DJq_qFl2.js → _DgEyFV6S.js} +1 -1
- package/dist/public/assets/_DgEyFV6S.js.br +0 -0
- package/dist/public/assets/{_xmjDKMZ7.js → _Di8Zpyb_.js} +1 -1
- package/dist/public/assets/_Di8Zpyb_.js.br +0 -0
- package/dist/public/assets/{_DNcmf3D6.js → _DlhyTgoc.js} +1 -1
- package/dist/public/assets/{_9GPmnBrc.js → _DnAi5Ym-.js} +1 -1
- package/dist/public/assets/_DnAi5Ym-.js.br +0 -0
- package/dist/public/assets/_DnY2GWv6.js +1 -0
- package/dist/public/assets/_DpDuN_IJ.js +1 -0
- package/dist/public/assets/{_DkcWcrjn.js → _DrAU44J0.js} +1 -1
- package/dist/public/assets/_DrAU44J0.js.br +0 -0
- package/dist/public/assets/{_BcR9J4Lw.js → _DrcACjND.js} +1 -1
- package/dist/public/assets/_DrcACjND.js.br +0 -0
- package/dist/public/assets/{_CkT4NouF.js → _DsF2mWck.js} +1 -1
- package/dist/public/assets/_DsF2mWck.js.br +0 -0
- package/dist/public/assets/{_FfaPnnFE.js → _DvCrVOo9.js} +1 -1
- package/dist/public/assets/_DvCrVOo9.js.br +0 -0
- package/dist/public/assets/{_dryOvCf2.js → _Dyv3XdYS.js} +1 -1
- package/dist/public/assets/_Dyv3XdYS.js.br +0 -0
- package/dist/public/assets/{_Fa5LNnSp.js → _F9kvxpZ9.js} +1 -1
- package/dist/public/assets/_FOX5dW0f.js +1 -0
- package/dist/public/assets/_GsBKx0ZF.js +1 -0
- package/dist/public/assets/{_D4c5ZURk.js → _HjZEA0Wr.js} +1 -1
- package/dist/public/assets/_HjZEA0Wr.js.br +0 -0
- package/dist/public/assets/{_D72dpmj3.js → _Ie5aWuwz.js} +1 -1
- package/dist/public/assets/_Ie5aWuwz.js.br +0 -0
- package/dist/public/assets/_M7V4gikz.js +1 -0
- package/dist/public/assets/{_BL_k11N-.js → _PPndr_rz.js} +1 -1
- package/dist/public/assets/_PPndr_rz.js.br +0 -0
- package/dist/public/assets/_Ph67HQaN.js +1 -0
- package/dist/public/assets/_RkSZWbR1.js +1 -0
- package/dist/public/assets/{_ChJA9M2T.js → _XY7P7lxS.js} +1 -1
- package/dist/public/assets/_XY7P7lxS.js.br +0 -0
- package/dist/public/assets/{_ByLPwabK.js → _ZN-juIki.js} +1 -1
- package/dist/public/assets/_ZN-juIki.js.br +0 -0
- package/dist/public/assets/{_Cl9wLpYq.js → _bV_Mrv3j.js} +1 -1
- package/dist/public/assets/_bV_Mrv3j.js.br +0 -0
- package/dist/public/assets/{_Cl7Z3Cfo.js → _brNk4ZRJ.js} +1 -1
- package/dist/public/assets/_brNk4ZRJ.js.br +0 -0
- package/dist/public/assets/_c0hDBxOb.js +1 -0
- package/dist/public/assets/{_C0WkFPEF.js → _dj9aI8bG.js} +1 -1
- package/dist/public/assets/_dj9aI8bG.js.br +0 -0
- package/dist/public/assets/{_B5pavmVa.js → _f4pKzmt8.js} +1 -1
- package/dist/public/assets/_f4pKzmt8.js.br +0 -0
- package/dist/public/assets/_fEd1rBK6.js +1 -0
- package/dist/public/assets/{_BP4L0V7O.js → _fyNF7OuG.js} +1 -1
- package/dist/public/assets/_fyNF7OuG.js.br +0 -0
- package/dist/public/assets/_iRoy_JKe.js +1 -0
- package/dist/public/assets/_iUmJgIGU.js +1 -0
- package/dist/public/assets/_iiNadjVP.js +1 -0
- package/dist/public/assets/{_DFZxd9ki.js → _jHM5bheW.js} +1 -1
- package/dist/public/assets/_jHM5bheW.js.br +0 -0
- package/dist/public/assets/_kKbvTBPL.js +1 -0
- package/dist/public/assets/_lpAQG-J7.js +1 -0
- package/dist/public/assets/{_KVR1j-RY.js → _lsyMH7ZI.js} +1 -1
- package/dist/public/assets/_lsyMH7ZI.js.br +0 -0
- package/dist/public/assets/{_CbZc_pHp.js → _lyXvbCRm.js} +1 -1
- package/dist/public/assets/_lyXvbCRm.js.br +0 -0
- package/dist/public/assets/{_C3SPgujx.js → _mPfZ_ckv.js} +1 -1
- package/dist/public/assets/_mPfZ_ckv.js.br +0 -0
- package/dist/public/assets/{_Cn8KINvZ.js → _n-lSZUlP.js} +1 -1
- package/dist/public/assets/_n-lSZUlP.js.br +0 -0
- package/dist/public/assets/{_CpfXIpTg.js → _npjII5Du.js} +1 -1
- package/dist/public/assets/_npjII5Du.js.br +0 -0
- package/dist/public/assets/{_sT50JvN9.js → _qxZZ1WaB.js} +1 -1
- package/dist/public/assets/_qxZZ1WaB.js.br +0 -0
- package/dist/public/assets/{_a6D3nj5i.js → _sjrTGH4R.js} +1 -1
- package/dist/public/assets/_sjrTGH4R.js.br +0 -0
- package/dist/public/assets/{_DNcxI3ou.js → _uA_ehFBC.js} +1 -1
- package/dist/public/assets/_uA_ehFBC.js.br +0 -0
- package/dist/public/assets/{_D769vhmY.js → _vIfMo6P4.js} +1 -1
- package/dist/public/assets/_vIfMo6P4.js.br +0 -0
- package/dist/public/assets/{_CjeYpDhW.js → _wGmKnPTd.js} +1 -1
- package/dist/public/assets/_wGmKnPTd.js.br +0 -0
- package/dist/public/assets/{_CFlqT5K5.js → _xAjhRzsQ.js} +1 -1
- package/dist/public/assets/{_BNfrSzcD.js → _zKFxSTx0.js} +1 -1
- package/dist/public/assets/_zKFxSTx0.js.br +0 -0
- package/dist/public/assets/{_fQ77zsHI.js → _zYukhuwp.js} +1 -1
- package/dist/public/assets/_zYukhuwp.js.br +0 -0
- package/dist/public/assets/{app-shell-xiZPRmgZ.css → app-shell-BWM2h8ZY.css} +1 -1
- package/dist/public/assets/app-shell-BWM2h8ZY.css.br +0 -0
- package/dist/public/assets/files-view-BcDHAScp.js +2 -0
- package/dist/public/assets/files-view-CnjfSRik.css +1 -0
- package/dist/public/assets/files-view-CnjfSRik.css.br +0 -0
- package/dist/public/assets/group.css.ts-DkHzYLC_.css +1 -0
- package/dist/public/assets/group.css.ts-DkHzYLC_.css.br +0 -0
- package/dist/public/assets/icon-folder-B1fOraOf.css +1 -0
- package/dist/public/assets/icon-folder-B1fOraOf.css.br +0 -0
- package/dist/public/assets/{icon-search-Cex6jGku.css → icon-search-CQX_Oqgo.css} +1 -1
- package/dist/public/assets/icon-search-CQX_Oqgo.css.br +0 -0
- package/dist/public/assets/manage-workspace-BBV1JbOd.css +1 -0
- package/dist/public/assets/manage-workspace-BU2bcEkN.js +2 -0
- package/dist/public/assets/{modal-view-BY2E8mw2.css → modal-view-Dz0sc8qS.css} +1 -1
- package/dist/public/assets/modal-view-Dz0sc8qS.css.br +0 -0
- package/dist/public/assets/new-CVGfDE6P.js +1 -0
- package/dist/public/assets/{new-workspace-BKVnD8Wk.css → new-workspace-LOQ0Tjtj.css} +1 -1
- package/dist/public/assets/new-workspace-LOQ0Tjtj.css.br +0 -0
- package/dist/public/assets/new-workspace-c6lEeVE8.js +2 -0
- package/dist/public/assets/port-chip-CulnIUvT.css +1 -0
- package/dist/public/assets/port-chip-CulnIUvT.css.br +0 -0
- package/dist/public/assets/prompt-dialog-u5z9zNp_.css +1 -0
- package/dist/public/assets/prompt-dialog-u5z9zNp_.css.br +0 -0
- package/dist/public/assets/{quick-open-DpQ50NDd.css → quick-open-OJqC2syy.css} +1 -1
- package/dist/public/assets/quick-open-OJqC2syy.css.br +0 -0
- package/dist/public/assets/repo-picker-ih5hKTA7.css +1 -0
- package/dist/public/assets/repo-picker-ih5hKTA7.css.br +0 -0
- package/dist/public/assets/review-view-C3H46wOd.css +1 -0
- package/dist/public/assets/review-view-C3H46wOd.css.br +0 -0
- package/dist/public/assets/review-view-D75GStAR.js +2 -0
- package/dist/public/assets/section-DQCofjb9.css +1 -0
- package/dist/public/assets/section-DQCofjb9.css.br +0 -0
- package/dist/public/assets/settings-CVGfDE6P.js +1 -0
- package/dist/public/assets/settings-page-AaKNqV0j.js +2 -0
- package/dist/public/assets/settings-page-C9l0sXib.css +1 -0
- package/dist/public/assets/settings-page-C9l0sXib.css.br +0 -0
- package/dist/public/assets/skill-row-XwcdxTPC.css +1 -0
- package/dist/public/assets/sso-auth-BAaUR_-9.css +1 -0
- package/dist/public/assets/sso-auth-BAaUR_-9.css.br +0 -0
- package/dist/public/assets/w-CVGfDE6P.js +1 -0
- package/dist/public/assets/w._-C8tMKqFp.js +1 -0
- package/dist/public/assets/w._-CVGfDE6P.js +1 -0
- package/dist/public/assets/w._-DPDLCMSV.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_1iZWXAOX.js +0 -1
- package/dist/public/assets/_3LSLzlWC.js.br +0 -0
- package/dist/public/assets/_9GPmnBrc.js.br +0 -0
- package/dist/public/assets/_B5pavmVa.js.br +0 -0
- package/dist/public/assets/_BAwHz_Q2.js +0 -1
- package/dist/public/assets/_BBsBWWJ3.js +0 -1
- package/dist/public/assets/_BEEx0SXj.js +0 -1
- package/dist/public/assets/_BI-TDHf3.js +0 -1
- package/dist/public/assets/_BI1DnC4s.js +0 -1
- package/dist/public/assets/_BKcvUTVh.js.br +0 -0
- package/dist/public/assets/_BL3JtI2u.js +0 -1
- package/dist/public/assets/_BL_k11N-.js.br +0 -0
- package/dist/public/assets/_BMtW8CIq.js.br +0 -0
- package/dist/public/assets/_BNfrSzcD.js.br +0 -0
- package/dist/public/assets/_BOnNFQby.js.br +0 -0
- package/dist/public/assets/_BP4L0V7O.js.br +0 -0
- package/dist/public/assets/_BRou-AxD.js.br +0 -0
- package/dist/public/assets/_BTw4F7fr.js +0 -1
- package/dist/public/assets/_BZMCZUlo.js.br +0 -0
- package/dist/public/assets/_BZdL3tgy.js.br +0 -0
- package/dist/public/assets/_B_EPDeLI.js +0 -1
- package/dist/public/assets/_BaIdSI0k.js +0 -1
- package/dist/public/assets/_BawhX_qk.js.br +0 -0
- package/dist/public/assets/_BcR9J4Lw.js.br +0 -0
- package/dist/public/assets/_Bd5NhKRw.js +0 -1
- package/dist/public/assets/_BdI3YxtU.js +0 -1
- package/dist/public/assets/_BdSabEDA.js +0 -1
- package/dist/public/assets/_Bg2giK-d.js.br +0 -0
- package/dist/public/assets/_BgYsdhYn.js +0 -1
- package/dist/public/assets/_BqRXqrI4.js.br +0 -0
- package/dist/public/assets/_BrZ5jzCe.js +0 -1
- package/dist/public/assets/_Br_pixY5.js.br +0 -0
- package/dist/public/assets/_BtvoqFjD.js.br +0 -0
- package/dist/public/assets/_BvVAZ823.js +0 -1
- package/dist/public/assets/_Bwl9hW9V.js.br +0 -0
- package/dist/public/assets/_BxKSO8eD.js.br +0 -0
- package/dist/public/assets/_ByHKWm24.js +0 -1
- package/dist/public/assets/_ByLPwabK.js.br +0 -0
- package/dist/public/assets/_BzBu5Fnk.js.br +0 -0
- package/dist/public/assets/_BzUWLN-o.js +0 -1
- package/dist/public/assets/_C-EFXeLO.js.br +0 -0
- package/dist/public/assets/_C-eI_Yb9.js.br +0 -0
- package/dist/public/assets/_C0WkFPEF.js.br +0 -0
- package/dist/public/assets/_C2Eu4rYX.js +0 -1
- package/dist/public/assets/_C3SPgujx.js.br +0 -0
- package/dist/public/assets/_CAq7e2Lm.js +0 -1
- package/dist/public/assets/_CEhT-_FC.js +0 -1
- package/dist/public/assets/_CKXOrpDK.js +0 -1
- package/dist/public/assets/_CLAx6sMN.js +0 -1
- package/dist/public/assets/_CLU74A6c.js +0 -1
- package/dist/public/assets/_CNHnzLEI.js.br +0 -0
- package/dist/public/assets/_COa9S4w4.js +0 -1
- package/dist/public/assets/_COsEY8gu.js.br +0 -0
- package/dist/public/assets/_CR6Hpueo.js.br +0 -0
- package/dist/public/assets/_CWffD2Nw.js +0 -1
- package/dist/public/assets/_C_hyvd4P.js.br +0 -0
- package/dist/public/assets/_CaSkWDv2.js +0 -1
- package/dist/public/assets/_CbZc_pHp.js.br +0 -0
- package/dist/public/assets/_CdjiBemI.js +0 -1
- package/dist/public/assets/_CeH-TGCu.js +0 -1
- package/dist/public/assets/_CeXSJC56.js +0 -1
- package/dist/public/assets/_Cew3uQWi.js +0 -1
- package/dist/public/assets/_Cft5_Yxu.js.br +0 -0
- package/dist/public/assets/_CgUAcKIn.js +0 -1
- package/dist/public/assets/_ChJA9M2T.js.br +0 -0
- package/dist/public/assets/_CjeYpDhW.js.br +0 -0
- package/dist/public/assets/_CjsHrgRV.js.br +0 -0
- package/dist/public/assets/_CkGn6OAF.js.br +0 -0
- package/dist/public/assets/_CkT4NouF.js.br +0 -0
- package/dist/public/assets/_CkwcHZFz.js.br +0 -0
- package/dist/public/assets/_Cl7Z3Cfo.js.br +0 -0
- package/dist/public/assets/_Cl9wLpYq.js.br +0 -0
- package/dist/public/assets/_Cn8KINvZ.js.br +0 -0
- package/dist/public/assets/_CnCs88Sm.js.br +0 -0
- package/dist/public/assets/_CnLGD4yW.js.br +0 -0
- package/dist/public/assets/_CnzGUQnv.js.br +0 -0
- package/dist/public/assets/_CpfXIpTg.js.br +0 -0
- package/dist/public/assets/_CqS1oG65.js +0 -1
- package/dist/public/assets/_CrHsZPxI.js.br +0 -0
- package/dist/public/assets/_CsatxXH0.js.br +0 -0
- package/dist/public/assets/_Cu-Y4LGA.js +0 -1
- package/dist/public/assets/_CvtO81aE.js +0 -1
- package/dist/public/assets/_CxurpjVP.js.br +0 -0
- package/dist/public/assets/_Cy_kgwnU.js.br +0 -0
- package/dist/public/assets/_Cyj19tlp.js.br +0 -0
- package/dist/public/assets/_CzfIQscQ.js.br +0 -0
- package/dist/public/assets/_D-NU-WMB.js.br +0 -0
- package/dist/public/assets/_D-Qz1kch.js.br +0 -0
- package/dist/public/assets/_D4c5ZURk.js.br +0 -0
- package/dist/public/assets/_D72dpmj3.js.br +0 -0
- package/dist/public/assets/_D769vhmY.js.br +0 -0
- package/dist/public/assets/_D8DB2J2r.js +0 -1
- package/dist/public/assets/_DC1sCyjk.js +0 -1
- package/dist/public/assets/_DF-YHIrB.js +0 -1
- package/dist/public/assets/_DFZxd9ki.js.br +0 -0
- package/dist/public/assets/_DFihRhcJ.js +0 -1
- package/dist/public/assets/_DG2KAXKy.js.br +0 -0
- package/dist/public/assets/_DG2jqrMy.js.br +0 -0
- package/dist/public/assets/_DGoT6hdW.js +0 -1
- package/dist/public/assets/_DIh8xkp4.js +0 -1
- package/dist/public/assets/_DJq_qFl2.js.br +0 -0
- package/dist/public/assets/_DMDZgzRE.js +0 -1
- package/dist/public/assets/_DMbnOs8k.js.br +0 -0
- package/dist/public/assets/_DNcxI3ou.js.br +0 -0
- package/dist/public/assets/_DPB8El7z.js +0 -1
- package/dist/public/assets/_DPOaBPmH.js +0 -1
- package/dist/public/assets/_DTdVnOfZ.js.br +0 -0
- package/dist/public/assets/_DTe6YlZe.js +0 -1
- package/dist/public/assets/_DVTnPSnw.js +0 -1
- package/dist/public/assets/_DX31P0mm.js +0 -1
- package/dist/public/assets/_DX9y1H5r.js +0 -1
- package/dist/public/assets/_DXPvD8hB.js.br +0 -0
- package/dist/public/assets/_DY4QVTmX.js.br +0 -0
- package/dist/public/assets/_D_xA1CEM.js +0 -1
- package/dist/public/assets/_DcnlJk99.js +0 -1
- package/dist/public/assets/_DdJ9UaIr.js +0 -1
- package/dist/public/assets/_DdiBYbsV.js.br +0 -0
- package/dist/public/assets/_DgEKdGyF.js +0 -1
- package/dist/public/assets/_DhFsvL3z.js +0 -1
- package/dist/public/assets/_Di3ypH4C.js +0 -1
- package/dist/public/assets/_DkcWcrjn.js.br +0 -0
- package/dist/public/assets/_DlIK08nk.js +0 -1
- package/dist/public/assets/_DnOoY3Kr.js.br +0 -0
- package/dist/public/assets/_Dog1ts_y.js +0 -1
- package/dist/public/assets/_DpBZ1d3i.js.br +0 -0
- package/dist/public/assets/_DpGrA0XO.js +0 -1
- package/dist/public/assets/_DwKDi5Ok.js.br +0 -0
- package/dist/public/assets/_DxSv0sBt.js.br +0 -0
- package/dist/public/assets/_FfaPnnFE.js.br +0 -0
- package/dist/public/assets/_Gom1JocY.js.br +0 -0
- package/dist/public/assets/_ICiPbKws.js.br +0 -0
- package/dist/public/assets/_Ic-ffIY-.js +0 -1
- package/dist/public/assets/_JNgayE6t.js +0 -1
- package/dist/public/assets/_KVR1j-RY.js.br +0 -0
- package/dist/public/assets/_Kb_2dLPX.js.br +0 -0
- package/dist/public/assets/_Mrj8c3Ez.js.br +0 -0
- package/dist/public/assets/_PSvPGz5K.js +0 -1
- package/dist/public/assets/_RQYXZbng.js.br +0 -0
- package/dist/public/assets/_Uk9B7RyF.js +0 -1
- package/dist/public/assets/_UkGN9jrP.js.br +0 -0
- package/dist/public/assets/_a6D3nj5i.js.br +0 -0
- package/dist/public/assets/_blxggLP2.js +0 -1
- package/dist/public/assets/_dryOvCf2.js.br +0 -0
- package/dist/public/assets/_e-ekFsZj.js.br +0 -0
- package/dist/public/assets/_eU_Eh6vu.js +0 -1
- package/dist/public/assets/_fDIsFugr.js.br +0 -0
- package/dist/public/assets/_fQ77zsHI.js.br +0 -0
- package/dist/public/assets/_g5673CtZ.js +0 -1
- package/dist/public/assets/_jpdQitTA.js +0 -6
- package/dist/public/assets/_jpdQitTA.js.br +0 -0
- package/dist/public/assets/_kqe2VGfS.js.br +0 -0
- package/dist/public/assets/_oJlX-jjJ.js.br +0 -0
- package/dist/public/assets/_pE0xU4qe.js.br +0 -0
- package/dist/public/assets/_qU43efe0.js +0 -1
- package/dist/public/assets/_rWfmbbYY.js +0 -1
- package/dist/public/assets/_sT50JvN9.js.br +0 -0
- package/dist/public/assets/_sX1Ti8EV.js +0 -1
- package/dist/public/assets/_skwonj4s.js.br +0 -0
- package/dist/public/assets/_wtAdCISm.js +0 -1
- package/dist/public/assets/_x2kRMssz.js +0 -1
- package/dist/public/assets/_xmjDKMZ7.js.br +0 -0
- package/dist/public/assets/_y4bkwXdB.js.br +0 -0
- package/dist/public/assets/_y7bOJNjT.js +0 -1
- package/dist/public/assets/_z6Z1Mx1U.js +0 -1
- package/dist/public/assets/_zoisUXNU.js +0 -1
- package/dist/public/assets/app-shell-xiZPRmgZ.css.br +0 -0
- package/dist/public/assets/files-view-B2yRvDPW.css +0 -1
- package/dist/public/assets/files-view-B2yRvDPW.css.br +0 -0
- package/dist/public/assets/files-view-CdChC8yE.js +0 -2
- package/dist/public/assets/group.css.ts-DNblKJqA.css +0 -1
- package/dist/public/assets/group.css.ts-DNblKJqA.css.br +0 -0
- package/dist/public/assets/icon-folder-Cy8ebBTP.css +0 -1
- package/dist/public/assets/icon-folder-Cy8ebBTP.css.br +0 -0
- package/dist/public/assets/icon-search-Cex6jGku.css.br +0 -0
- package/dist/public/assets/manage-workspace-BeX9ifz4.js +0 -2
- package/dist/public/assets/manage-workspace-DUkH_NJU.css +0 -1
- package/dist/public/assets/modal-view-BY2E8mw2.css.br +0 -0
- package/dist/public/assets/new-Cf5jjI3g.js +0 -1
- package/dist/public/assets/new-workspace-BKVnD8Wk.css.br +0 -0
- package/dist/public/assets/new-workspace-YZUJWtsQ.js +0 -2
- package/dist/public/assets/port-chip-DreQNYRY.css +0 -1
- package/dist/public/assets/port-chip-DreQNYRY.css.br +0 -0
- package/dist/public/assets/prompt-dialog-D0BCWGjD.css +0 -1
- package/dist/public/assets/prompt-dialog-D0BCWGjD.css.br +0 -0
- package/dist/public/assets/quick-open-DpQ50NDd.css.br +0 -0
- package/dist/public/assets/repo-picker-T-q6jCCO.css +0 -1
- package/dist/public/assets/repo-picker-T-q6jCCO.css.br +0 -2
- package/dist/public/assets/review-view-B2W_TVzr.js +0 -2
- package/dist/public/assets/review-view-qD27cxMB.css +0 -1
- package/dist/public/assets/review-view-qD27cxMB.css.br +0 -0
- package/dist/public/assets/section-DjKQtb2K.css +0 -1
- package/dist/public/assets/section-DjKQtb2K.css.br +0 -0
- package/dist/public/assets/settings-Cf5jjI3g.js +0 -1
- package/dist/public/assets/settings-page-AC2yc6tT.js +0 -2
- package/dist/public/assets/settings-page-B-sp-eth.css +0 -1
- package/dist/public/assets/settings-page-B-sp-eth.css.br +0 -0
- package/dist/public/assets/skill-row-Dd2Eot1k.css +0 -1
- package/dist/public/assets/sso-auth-BQrgaotF.css +0 -1
- package/dist/public/assets/sso-auth-BQrgaotF.css.br +0 -0
- package/dist/public/assets/w-Cf5jjI3g.js +0 -1
- package/dist/public/assets/w._-Cf5jjI3g.js +0 -1
- package/dist/public/assets/w._-CqLOKDWM.js +0 -1
- package/dist/public/assets/w._-DbimTuFk.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/
|
|
2
|
-
import{C as e,E as t,Et as n,Fn as r,G as i,H as a,Kt as o,Nn as s,P as c,Q as l,S as u,T as d,Tt as f,Yt as p,_ as m,_t as h,a as g,b as _,bt as v,dt as y,i as b,jn as x,k as S,n as C,qt as w,r as ee,sn as T,t as E,v as te,w as D,x as ne,y as re,yt as O}from"./_kqe2VGfS.js";import{A as ie,B as k,C as ae,H as A,I as oe,J as se,K as j,L as M,R as N,S as P,U as F,V as ce,W as le,a as I,b as L,d as ue,f as de,i as R,k as fe,n as pe,q as z,r as me,t as B,x as V,y as he,z as ge}from"./_Csdgg-p8.js";import{A as _e,L as ve,N as ye,_ as H,g as be,h as xe,k as Se,n as Ce,v as we}from"./_BzBu5Fnk.js";import{A as Te,D as Ee,F as De,I as Oe,M as ke,N as Ae,O as je,P as Me,U as Ne,V as Pe,a as Fe,i as Ie,j as Le,k as Re,n as ze,o as Be,r as Ve,s as He,t as Ue}from"./_BawhX_qk.js";import{n as We}from"./_BoPk1gXL.js";import{a as Ge,c as Ke,d as qe,f as Je,i as Ye,l as Xe,n as Ze,o as Qe,p as $e,r as et,s as tt,t as U,u as W}from"./_pE0xU4qe.js";import{t as nt}from"./_CcFCI5Av.js";import{_ as rt,c as it,d as at,f as ot,g as st,h as ct,l as lt,o as ut,p as dt,s as ft,u as pt,v as mt}from"./_CpfXIpTg.js";import{a as ht,i as gt,n as _t,o as vt,r as yt,t as bt}from"./_Fa5LNnSp.js";import{a as xt,i as St,n as Ct,r as wt,t as Tt}from"./_Dog1ts_y.js";var Et=Object.create,Dt=Object.defineProperty,Ot=Object.getOwnPropertyDescriptor,kt=Object.getOwnPropertyNames,At=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty,Mt=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Nt=(e,t)=>{let n={};for(var r in e)Dt(n,r,{get:e[r],enumerable:!0});return t||Dt(n,Symbol.toStringTag,{value:`Module`}),n},Pt=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=kt(t),a=0,o=i.length,s;a<o;a++)s=i[a],!jt.call(e,s)&&s!==n&&Dt(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ot(t,s))||r.enumerable});return e},Ft=(e,t,n)=>(n=e==null?{}:Et(At(e)),Pt(t||!e||!e.__esModule||!jt.call(e,`default`)?Dt(n,`default`,{value:e,enumerable:!0}):n,e)),It=`diffs-container`,Lt=(()=>{try{return!1}catch{return!1}})(),Rt=/(?=^From [a-f0-9]+ .+$)/m,zt=/(?=^diff --git)/gm,Bt=/(?<=\n)/,Vt=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Ht=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Ut=`header-prefix`,Wt=`header-filename-suffix`,Gt=`header-metadata`,Kt=`header-custom`,qt={dark:`pierre-dark`,light:`pierre-light`},Jt=`data-theme-css`,Yt=`data-unsafe-css`,Xt=`data-diffs-scrollbar-measure`,Zt=`data-diffs-code-view-header`,Qt=`data-diffs-code-view-footer`,$t=`--diffs-scrollbar-gutter-measured`,en=1e5,tn={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},nn={...tn,hunkLineCount:1},rn={paddingTop:8,paddingBottom:8,gap:8},an={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},on=Object.freeze({fromStart:0,fromEnd:0}),sn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},cn={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},ln=new Map,un=new Map,dn=new Map,fn=new Set;function pn(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!fn.has(t))return!1;return!0}function mn(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(fn.has(n.name))continue;let e=ln.get(n.name);e??(e=n,ln.set(n.name,e));let r=e.data.find(t=>t.name===e.name||t.aliases?.includes(e.name)===!0);if(r==null)throw Error(`attachResolvedLanguages: No returned grammar declares "${e.name}" as its name or an alias.`);t.loadLanguageSync(e.data);try{t.getLanguage(e.name)}catch{throw Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${e.name}". Load the alias first or give the grammar a unique name.`)}fn.add(e.name)}}function hn(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var gn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,vn=Object.getOwnPropertyNames,yn=Object.prototype.hasOwnProperty,bn=(e,t)=>{let n={};for(var r in e)gn(n,r,{get:e[r],enumerable:!0});return t||gn(n,Symbol.toStringTag,{value:`Module`}),n},xn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=vn(t),a=0,o=i.length,s;a<o;a++)s=i[a],!yn.call(e,s)&&s!==n&&gn(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=_n(t,s))||r.enumerable});return e},Sn=(e,t,n)=>(xn(e,t,`default`),n&&xn(n,t,`default`)),Cn=[{id:`abap`,name:`ABAP`,import:(()=>B(()=>import(`./_CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>B(()=>import(`./_Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>B(()=>import(`./_C5qYipkI.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>B(()=>import(`./_CA9gdOdF.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>B(()=>import(`./__6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>B(()=>import(`./_BZdL3tgy.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>B(()=>import(`./_BxKSO8eD.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>B(()=>import(`./_U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>B(()=>import(`./_KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>B(()=>import(`./_C0WkFPEF.js`),__vite__mapDeps([6,2,3,1,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>B(()=>import(`./_CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>B(()=>import(`./_4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>B(()=>import(`./_SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>B(()=>import(`./_Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>B(()=>import(`./_COsEY8gu.js`),__vite__mapDeps([10,2,3,9,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>B(()=>import(`./_BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>B(()=>import(`./_B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>B(()=>import(`./_qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>B(()=>import(`./_D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>B(()=>import(`./_DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>B(()=>import(`./_Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>B(()=>import(`./_CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>B(()=>import(`./_CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>B(()=>import(`./_Cyj19tlp.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>B(()=>import(`./_YkIvmgMd.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>B(()=>import(`./_D4c5ZURk.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>B(()=>import(`./_D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>B(()=>import(`./_CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>B(()=>import(`./_BAfg1_wL.js`),__vite__mapDeps([19,20])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>B(()=>import(`./_CrHsZPxI.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>B(()=>import(`./_CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>B(()=>import(`./_DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>B(()=>import(`./_Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>B(()=>import(`./_CNHnzLEI.js`),__vite__mapDeps([23,1,2,3,8])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>B(()=>import(`./_C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>B(()=>import(`./_oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>B(()=>import(`./_DNcxI3ou.js`),__vite__mapDeps([24,2])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>B(()=>import(`./_Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>B(()=>import(`./_DuBRPxYg.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>B(()=>import(`./_DwKDi5Ok.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22])))},{id:`crystal`,name:`Crystal`,import:(()=>B(()=>import(`./_BMtW8CIq.js`),__vite__mapDeps([28,2,3,1,16,22,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>B(()=>import(`./_oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>B(()=>import(`./_DXPvD8hB.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>B(()=>import(`./_Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>B(()=>import(`./_CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>B(()=>import(`./_ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>B(()=>import(`./_qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>B(()=>import(`./_CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>B(()=>import(`./_BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>B(()=>import(`./_Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>B(()=>import(`./_woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>B(()=>import(`./_IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>B(()=>import(`./__5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>B(()=>import(`./_DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>B(()=>import(`./_DFZxd9ki.js`),__vite__mapDeps([30,1,2,3,11,15])))},{id:`elixir`,name:`Elixir`,import:(()=>B(()=>import(`./_3LSLzlWC.js`),__vite__mapDeps([31,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>B(()=>import(`./_9GPmnBrc.js`),__vite__mapDeps([32,27,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>B(()=>import(`./_c_oH4hRZ.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>B(()=>import(`./_D72dpmj3.js`),__vite__mapDeps([33,1,2,3,34,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>B(()=>import(`./_BaHq4SXp.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>B(()=>import(`./_DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>B(()=>import(`./_BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>B(()=>import(`./_C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>B(()=>import(`./_CQJs3lWb.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>B(()=>import(`./_CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>B(()=>import(`./_DmIc4jLQ.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>B(()=>import(`./_DbYA3moe.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>B(()=>import(`./_DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>B(()=>import(`./_CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>B(()=>import(`./_CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>B(()=>import(`./_DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>B(()=>import(`./_Dl-2e7rI.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>B(()=>import(`./_B99kj7FB.js`),__vite__mapDeps([50,29])))},{id:`gleam`,name:`Gleam`,import:(()=>B(()=>import(`./_CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>B(()=>import(`./_CnCs88Sm.js`),__vite__mapDeps([51,2,3,1,11])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>B(()=>import(`./_C3SPgujx.js`),__vite__mapDeps([52,2,3,1,11])))},{id:`glsl`,name:`GLSL`,import:(()=>B(()=>import(`./_CkT4NouF.js`).then(e=>e.n),__vite__mapDeps([27,22])))},{id:`gn`,name:`GN`,import:(()=>B(()=>import(`./_ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>B(()=>import(`./_7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>B(()=>import(`./_rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>B(()=>import(`./_CnzGUQnv.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37])))},{id:`groovy`,name:`Groovy`,import:(()=>B(()=>import(`./_CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>B(()=>import(`./_Br_pixY5.js`),__vite__mapDeps([53,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>B(()=>import(`./_FfaPnnFE.js`).then(e=>e.n),__vite__mapDeps([35,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>B(()=>import(`./_C_hyvd4P.js`),__vite__mapDeps([54,2,3,1,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>B(()=>import(`./_D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>B(()=>import(`./_C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>B(()=>import(`./_Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>B(()=>import(`./_CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>B(()=>import(`./_Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>B(()=>import(`./_Mrj8c3Ez.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>B(()=>import(`./_DNcmf3D6.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>B(()=>import(`./_DpBZ1d3i.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37])))},{id:`hurl`,name:`Hurl`,import:(()=>B(()=>import(`./_y4bkwXdB.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37])))},{id:`hxml`,name:`HXML`,import:(()=>B(()=>import(`./_DekxQCZG.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>B(()=>import(`./_CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>B(()=>import(`./_DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>B(()=>import(`./_B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>B(()=>import(`./_CbZc_pHp.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>B(()=>import(`./_CsatxXH0.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>B(()=>import(`./_UkGN9jrP.js`),__vite__mapDeps([60,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>B(()=>import(`./_Bwl9hW9V.js`),__vite__mapDeps([61,2])))},{id:`json`,name:`JSON`,import:(()=>B(()=>import(`./_CkGn6OAF.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>B(()=>import(`./_BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>B(()=>import(`./_CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>B(()=>import(`./_CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>B(()=>import(`./_CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>B(()=>import(`./_DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>B(()=>import(`./_dryOvCf2.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>B(()=>import(`./_DJq_qFl2.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>B(()=>import(`./_Cl9wLpYq.js`),__vite__mapDeps([64,2,11,20,29,34,3,1,7,8,16,22,25,26,27,35,36,13,37,38,39,65])))},{id:`kdl`,name:`KDL`,import:(()=>B(()=>import(`./_CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>B(()=>import(`./_DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>B(()=>import(`./_C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>B(()=>import(`./_Gom1JocY.js`),__vite__mapDeps([66,67,63])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>B(()=>import(`./_CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>B(()=>import(`./_DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>B(()=>import(`./_skwonj4s.js`),__vite__mapDeps([68,2,3,1,9])))},{id:`llvm`,name:`LLVM IR`,import:(()=>B(()=>import(`./_DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>B(()=>import(`./_BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>B(()=>import(`./_Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>B(()=>import(`./_BcR9J4Lw.js`).then(e=>e.n),__vite__mapDeps([38,22])))},{id:`luau`,name:`Luau`,import:(()=>B(()=>import(`./_C2pBCSgt.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>B(()=>import(`./_Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>B(()=>import(`./_BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>B(()=>import(`./_DMbnOs8k.js`),__vite__mapDeps([69,3,5,11,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>B(()=>import(`./_D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>B(()=>import(`./_CkwcHZFz.js`),__vite__mapDeps([71,15,1,2,3,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>B(()=>import(`./_DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>B(()=>import(`./_BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>B(()=>import(`./_BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>B(()=>import(`./_fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>B(()=>import(`./_DgjMoLWr.js`),[]))},{id:`move`,name:`Move`,import:(()=>B(()=>import(`./_BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>B(()=>import(`./__X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>B(()=>import(`./_DWQbgPoS.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>B(()=>import(`./_DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>B(()=>import(`./_D-Qz1kch.js`),__vite__mapDeps([74,38,22])))},{id:`nim`,name:`Nim`,import:(()=>B(()=>import(`./_BqRXqrI4.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41])))},{id:`nix`,name:`Nix`,import:(()=>B(()=>import(`./_IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>B(()=>import(`./_CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>B(()=>import(`./_DHYfO66s.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>B(()=>import(`./_D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>B(()=>import(`./_BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>B(()=>import(`./_O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>B(()=>import(`./_B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>B(()=>import(`./_BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>B(()=>import(`./_fDIsFugr.js`),__vite__mapDeps([76,2,3,1,5,8,7,9,11,13,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,48,50,81,82,83,63,65,66,67,70,84,75,85,86,87,88,89,90,91,92,93])))},{id:`pascal`,name:`Pascal`,import:(()=>B(()=>import(`./_4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>B(()=>import(`./_BtvoqFjD.js`),__vite__mapDeps([65,2,3,1,7,8,16])))},{id:`php`,name:`PHP`,import:(()=>B(()=>import(`./_CjeYpDhW.js`),__vite__mapDeps([87,2,3,1,7,8,9,16])))},{id:`pkl`,name:`Pkl`,import:(()=>B(()=>import(`./_ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>B(()=>import(`./_DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>B(()=>import(`./_BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>B(()=>import(`./_C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>B(()=>import(`./_BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>B(()=>import(`./_DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>B(()=>import(`./_CCSX75yM.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>B(()=>import(`./_DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>B(()=>import(`./_iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>B(()=>import(`./_DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>B(()=>import(`./_BZMCZUlo.js`),__vite__mapDeps([94,2,3,1])))},{id:`puppet`,name:`Puppet`,import:(()=>B(()=>import(`./_CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>B(()=>import(`./_9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>B(()=>import(`./_gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>B(()=>import(`./_ICiPbKws.js`),__vite__mapDeps([95,2])))},{id:`qmldir`,name:`QML Directory`,import:(()=>B(()=>import(`./_DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>B(()=>import(`./_Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>B(()=>import(`./_Cft5_Yxu.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>B(()=>import(`./_DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>B(()=>import(`./_B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>B(()=>import(`./_DTdVnOfZ.js`),__vite__mapDeps([96,1,2,3,78])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>B(()=>import(`./_C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>B(()=>import(`./_CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>B(()=>import(`./_a6D3nj5i.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>B(()=>import(`./_BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>B(()=>import(`./_Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>B(()=>import(`./_VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>B(()=>import(`./_CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>B(()=>import(`./_oJlX-jjJ.js`),__vite__mapDeps([97,2,15,1,3,20,98,25,26,27,22,29,39,34,7,8,16,35,36,11,13,37,38])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>B(()=>import(`./_sT50JvN9.js`),__vite__mapDeps([34,2,3,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>B(()=>import(`./_Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>B(()=>import(`./_CR6Hpueo.js`),__vite__mapDeps([99,16])))},{id:`sass`,name:`Sass`,import:(()=>B(()=>import(`./_DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>B(()=>import(`./_BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>B(()=>import(`./_DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>B(()=>import(`./_BKcvUTVh.js`).then(e=>e.n),__vite__mapDeps([5,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>B(()=>import(`./_bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>B(()=>import(`./_DB-OQ-9y.js`),__vite__mapDeps([100,101])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>B(()=>import(`./_DxSv0sBt.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>B(()=>import(`./_D-ln1Dsz.js`),__vite__mapDeps([102,29])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>B(()=>import(`./_BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>B(()=>import(`./_Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>B(()=>import(`./_Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>B(()=>import(`./_xmjDKMZ7.js`),__vite__mapDeps([103,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>B(()=>import(`./_L8AbGenz.js`),__vite__mapDeps([104,105])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>B(()=>import(`./_BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>B(()=>import(`./_BRou-AxD.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>B(()=>import(`./_BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>B(()=>import(`./_BL_k11N-.js`),__vite__mapDeps([106,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>B(()=>import(`./_B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>B(()=>import(`./_Cn8KINvZ.js`),__vite__mapDeps([107,2])))},{id:`svelte`,name:`Svelte`,import:(()=>B(()=>import(`./_CjsHrgRV.js`),__vite__mapDeps([108,2,3,11,12])))},{id:`swift`,name:`Swift`,import:(()=>B(()=>import(`./_CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>B(()=>import(`./_Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>B(()=>import(`./_BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>B(()=>import(`./_CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>B(()=>import(`./_DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>B(()=>import(`./_CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>B(()=>import(`./_B5pavmVa.js`),__vite__mapDeps([109,2,3,81])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>B(()=>import(`./_DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>B(()=>import(`./_DG2KAXKy.js`).then(e=>e.n),__vite__mapDeps([67,63])))},{id:`toml`,name:`TOML`,import:(()=>B(()=>import(`./_CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>B(()=>import(`./_DG2jqrMy.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22])))},{id:`tsv`,name:`TSV`,import:(()=>B(()=>import(`./_sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>B(()=>import(`./_fQ77zsHI.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>B(()=>import(`./_ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>B(()=>import(`./_CnLGD4yW.js`),__vite__mapDeps([111,2,3,5,20,34,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39,87,9])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>B(()=>import(`./_ChJA9M2T.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>B(()=>import(`./_BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>B(()=>import(`./_D769vhmY.js`),__vite__mapDeps([112,2,3,1,5,8,7,9,11,13,113,114,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,44,48,50,81,82,54,83,115,63,62,65,66,67,70,116,84,85,87,88,89,90,91,93,117,94,118,119,111,120])))},{id:`v`,name:`V`,import:(()=>B(()=>import(`./_DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>B(()=>import(`./_zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>B(()=>import(`./_DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>B(()=>import(`./_B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>B(()=>import(`./_BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>B(()=>import(`./_DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>B(()=>import(`./_D-NU-WMB.js`),__vite__mapDeps([121,2,3,1,9,11,15])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>B(()=>import(`./_DkcWcrjn.js`),__vite__mapDeps([122,2])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>B(()=>import(`./_BOnNFQby.js`),__vite__mapDeps([123,2,3,5,12,70,124])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>B(()=>import(`./_CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>B(()=>import(`./_ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>B(()=>import(`./_C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>B(()=>import(`./_BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>B(()=>import(`./_ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>B(()=>import(`./_DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>B(()=>import(`./_DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>B(()=>import(`./_DnOoY3Kr.js`).then(e=>e.n),__vite__mapDeps([7,8])))},{id:`xsl`,name:`XSL`,import:(()=>B(()=>import(`./_DY4QVTmX.js`),__vite__mapDeps([93,7,8])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>B(()=>import(`./_ByLPwabK.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>B(()=>import(`./_BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>B(()=>import(`./_CMLA9XwU.js`),[]))}],wn=Object.fromEntries(Cn.map(e=>[e.id,e.import])),Tn=Object.fromEntries(Cn.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),En={...wn,...Tn},Dn=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>B(()=>import(`./_vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>B(()=>import(`./_CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>B(()=>import(`./_DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>B(()=>import(`./_C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>B(()=>import(`./_Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>B(()=>import(`./_C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>B(()=>import(`./_CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>B(()=>import(`./_R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>B(()=>import(`./_DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>B(()=>import(`./_Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>B(()=>import(`./_BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>B(()=>import(`./_5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>B(()=>import(`./_sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>B(()=>import(`./_Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>B(()=>import(`./_C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>B(()=>import(`./_DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>B(()=>import(`./_Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>B(()=>import(`./_B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>B(()=>import(`./_EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>B(()=>import(`./_BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>B(()=>import(`./_B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>B(()=>import(`./_C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>B(()=>import(`./_BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>B(()=>import(`./_MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>B(()=>import(`./_BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>B(()=>import(`./_BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>B(()=>import(`./_BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>B(()=>import(`./_CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>B(()=>import(`./_DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>B(()=>import(`./_CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>B(()=>import(`./_Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>B(()=>import(`./_BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>B(()=>import(`./_BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>B(()=>import(`./_C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>B(()=>import(`./_DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>B(()=>import(`./_Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>B(()=>import(`./_2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>B(()=>import(`./_uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>B(()=>import(`./_CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>B(()=>import(`./_B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>B(()=>import(`./_BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>B(()=>import(`./_DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>B(()=>import(`./_B_bV9PQ9.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>B(()=>import(`./_DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>B(()=>import(`./_eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>B(()=>import(`./_Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>B(()=>import(`./_CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>B(()=>import(`./_D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>B(()=>import(`./_DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>B(()=>import(`./_DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>B(()=>import(`./_DX1BQOs8.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>B(()=>import(`./_aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>B(()=>import(`./_8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>B(()=>import(`./_DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>B(()=>import(`./_DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>B(()=>import(`./_B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>B(()=>import(`./_4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>B(()=>import(`./_UdsmMDCL.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>B(()=>import(`./_C1IUL_tW.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>B(()=>import(`./_nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>B(()=>import(`./_oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>B(()=>import(`./_DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>B(()=>import(`./_fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>B(()=>import(`./_BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>B(()=>import(`./_VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),On=Nt({createOnigurumaEngine:()=>nr,getDefaultWasmLoader:()=>tr,loadWasm:()=>Yn,setDefaultWasmLoader:()=>er}),kn=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function An(){return 2147483648}function jn(){return typeof performance<`u`?performance.now():Date.now()}var Mn=(e,t)=>e+(t-e%t)%t;async function Nn(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=An();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,Mn(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:jn,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var Pn=Object.defineProperty,Fn=(e,t,n)=>t in e?Pn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,In=(e,t,n)=>Fn(e,typeof t==`symbol`?t:t+``,n),Ln=null;function Rn(e){throw new kn(e.UTF8ToString(e.getLastOnigError()))}var zn=class e{constructor(t){In(this,`utf16Length`),In(this,`utf8Length`),In(this,`utf16Value`),In(this,`utf8Value`),In(this,`utf16OffsetToUtf8`),In(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},Bn=class e{constructor(t){if(In(this,`id`,++e.LAST_ID),In(this,`_onigBinding`),In(this,`content`),In(this,`utf16Length`),In(this,`utf8Length`),In(this,`utf16OffsetToUtf8`),In(this,`utf8OffsetToUtf16`),In(this,`ptr`),!Ln)throw new kn(`Must invoke loadWasm first.`);this._onigBinding=Ln,this.content=t;let n=new zn(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=Ln.omalloc(1e4),e._sharedPtrInUse=!0,Ln.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Ln)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};In(Bn,`LAST_ID`,0),In(Bn,`_sharedPtr`,0),In(Bn,`_sharedPtrInUse`,!1);var Vn=Bn,Hn=class{constructor(e){if(In(this,`_onigBinding`),In(this,`_ptr`),!Ln)throw new kn(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new zn(e[r]);t[r]=i.createString(Ln),n[r]=i.utf8Length}let r=Ln.omalloc(4*e.length);Ln.HEAPU32.set(t,r/4);let i=Ln.omalloc(4*e.length);Ln.HEAPU32.set(n,i/4);let a=Ln.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)Ln.ofree(t[n]);Ln.ofree(i),Ln.ofree(r),a===0&&Rn(Ln),this._onigBinding=Ln,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new Vn(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function Un(e){return typeof e.instantiator==`function`}function Wn(e){return typeof e.default==`function`}function Gn(e){return e.data!==void 0}function Kn(e){return typeof Response<`u`&&e instanceof Response}function qn(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var Jn;function Yn(e){if(Jn)return Jn;async function t(){Ln=await Nn(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),Un(n)?n=await n.instantiator(t):Wn(n)?n=await n.default(t):(Gn(n)&&(n=n.data),Kn(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await Zn(n)(t):await Qn(n)(t):qn(n)||n instanceof WebAssembly.Module?n=await Xn(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Xn(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return Jn=t(),Jn}function Xn(e){return t=>WebAssembly.instantiate(e,t)}function Zn(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Qn(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var $n;function er(e){$n=e}function tr(){return $n}async function nr(e){return e&&await Yn(e),{createScanner(e){return new Hn(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Vn(e)}}}var rr=bn({});Sn(rr,On);var ir=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function ar(e){return or(e)}function or(e){return Array.isArray(e)?sr(e):e instanceof RegExp?e:typeof e==`object`?cr(e):e}function sr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=or(e[n]);return t}function cr(e){let t={};for(let n in e)t[n]=or(e[n]);return t}function lr(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function ur(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?ur(e.substring(0,e.length-1)):e.substr(~t+1)}var dr=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,fr=class{static hasCaptures(e){return e!==null&&(dr.lastIndex=0,dr.test(e))}static replaceCaptures(e,t,n){return e.replace(dr,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function pr(e,t){return e<t?-1:+(e>t)}function mr(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=pr(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function hr(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function gr(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var _r=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},vr=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Cr(e),t)}static createFromParsedTheme(e,t){return Er(e,t)}_cachedMatchRoot=new _r(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>br(e.parent,t.parentScopes));return n?new Sr(n.fontStyle,n.foreground,n.background):null}},yr=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function br(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!xr(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function xr(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var Sr=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Cr(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&hr(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&hr(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new wr(l,u,e,o,s,c)}}return n}var wr=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},Tr=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(Tr||{});function Er(e,t){e.sort((e,t)=>{let n=pr(e.scope,t.scope);return n!==0||(n=mr(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Dr(t),o=new Sr(n,a.getId(r),a.getId(i)),s=new Ar(new kr(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new vr(a,o,s)}var Dr=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Or=Object.freeze([]),kr=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||Or,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},Ar=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),kr.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(mr(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new kr(e,t,n,r,i))}},jr=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=Nr(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function Mr(e){return e}function Nr(e){return e}function Pr(e,t){let n=[],r=Ir(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(Fr(i)){let e=[];do e.push(i),i=r.next();while(Fr(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function Fr(e){return!!e&&!!e.match(/[\w\.:]+/)}function Ir(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function Lr(e){typeof e.dispose==`function`&&e.dispose()}var Rr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},zr=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Br=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Vr=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Rr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Br;for(let n of e)Hr(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Rr){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function Hr(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof Rr?Wr({baseGrammar:a,selfGrammar:i},r):Ur(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new Rr(e))}function Ur(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Gr([r],t,n)}}function Wr(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Gr(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Gr(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Gr(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?lr({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Gr(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Zr(i);switch(a.kind){case 0:Wr({...t,selfGrammar:t.baseGrammar},n);break;case 1:Wr(t,n);break;case 2:Ur(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?Ur(a.ruleName,i,n):Wr(i,n)}else a.kind===4?n.add(new zr(a.scopeName,a.ruleName)):n.add(new Rr(a.scopeName))}}}var Kr=class{kind=0},qr=class{kind=1},Jr=class{constructor(e){this.ruleName=e}kind=2},Yr=class{constructor(e){this.scopeName=e}kind=3},Xr=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Zr(e){if(e===`$base`)return new Kr;if(e===`$self`)return new qr;let t=e.indexOf(`#`);return t===-1?new Yr(e):t===0?new Jr(e.substring(1)):new Xr(e.substring(0,t),e.substring(t+1))}var Qr=/\\(\d+)/,$r=/\\(\d+)/g,ei=-1,ti=-2;function ni(e){return e}function ri(e){return e}var ii=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=fr.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=fr.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${ur(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:fr.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:fr.replaceCaptures(this._contentName,e,t)}},ai=class extends ii{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},oi=class extends ii{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new di(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fi,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},si=class extends ii{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fi,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ci=class extends ii{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new di(i,this.id),this.beginCaptures=a,this._end=new di(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fi;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},li=class extends ii{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new di(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new di(o,ti),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fi;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new fi,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},ui=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new ai(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new oi(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=lr({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new si(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new li(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new ci(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Zr(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof si||e instanceof ci||e instanceof li)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},di=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&Qr.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return $r.lastIndex=0,this.source.replace($r,(e,t)=>gr(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},fi=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new pi(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new pi(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},pi=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_DZXflGWr.js","assets/_20KaP1JA.js","assets/_BiM1rHY7.js","assets/_Cy59cI9h.js","assets/_BxRcgz-5.js","assets/_DFXiXKAa.js","assets/_dj9aI8bG.js","assets/_Ck_XTVfX.js","assets/_lyXvbCRm.js","assets/_DSyDuhXZ.js","assets/_DdqjDYvZ.js","assets/_XY7P7lxS.js","assets/_BXeXVLqQ.js","assets/_zYukhuwp.js","assets/_BYQRrkP1.js","assets/_DlhyTgoc.js","assets/_CVi6PGLR.js","assets/_YkIvmgMd.js","assets/_bTVj8UrX.js","assets/_BAfg1_wL.js","assets/_gzcpVVnB.js","assets/_Bd2mNP7K.js","assets/_HjZEA0Wr.js","assets/_CvkVDFLJ.js","assets/_uA_ehFBC.js","assets/_BhRPxFpM.js","assets/_sjrTGH4R.js","assets/_DsF2mWck.js","assets/_D6dA8sOf.js","assets/_BQAOa_6M.js","assets/_jHM5bheW.js","assets/_BDmvc34O.js","assets/_DnAi5Ym-.js","assets/_Ie5aWuwz.js","assets/_qxZZ1WaB.js","assets/_DvCrVOo9.js","assets/_DL-lMRPt.js","assets/_Dyv3XdYS.js","assets/_DrcACjND.js","assets/_ZN-juIki.js","assets/_BaHq4SXp.js","assets/_BYOwaDjH.js","assets/_CQJs3lWb.js","assets/_CYNrtFtB.js","assets/_DmIc4jLQ.js","assets/_DbYA3moe.js","assets/_CBce3t8t.js","assets/_DYvRD3hg.js","assets/_Dl-2e7rI.js","assets/_woXpYk--.js","assets/_CkXJXNe1.js","assets/_CfmNeFRl.js","assets/_mPfZ_ckv.js","assets/_CQUUCk60.js","assets/_C5h3JdKg.js","assets/_BSPoLZdf.js","assets/_B6Jfpwmb.js","assets/_Dx-8-gkx.js","assets/_DekxQCZG.js","assets/_C8oCnwJJ.js","assets/_BSEZrNxm.js","assets/_DPwiBBGH.js","assets/_DgEyFV6S.js","assets/_B7OE_Bvi.js","assets/_bV_Mrv3j.js","assets/_Bc02j4al.js","assets/_DRhkEUyS.js","assets/_BSOZk18Y.js","assets/_Bv5qXziM.js","assets/_CUYi28ox.js","assets/_DVTAwKKz.js","assets/_C5rtMxlC.js","assets/_DWQbgPoS.js","assets/_DJMQeKeT.js","assets/_BSAp3rsZ.js","assets/_Cvk0JQ_b.js","assets/_3pE4k6Yi.js","assets/_DqKBuwfJ.js","assets/_oqKa8noW.js","assets/_CnvKMtbv.js","assets/_IyjqRm3v.js","assets/_rLFTqkRN.js","assets/_CacY0gHj.js","assets/_B5eOa1yu.js","assets/_Dixweg8N.js","assets/_D1A_Heim.js","assets/_O90oeIOV.js","assets/_wGmKnPTd.js","assets/_DOwzaHZ0.js","assets/_B3gFvitq.js","assets/_Cfkwpbl8.js","assets/_BiFt_7mu.js","assets/_CMLA9XwU.js","assets/_CGkbxK_d.js","assets/_BppCb2rx.js","assets/_BPPM1zD6.js","assets/_BQG6yae8.js","assets/_BesZKBHb.js","assets/_Bj61d0ZC.js","assets/_DHKxnN_V.js","assets/_DB-OQ-9y.js","assets/_Cvrh5tZx.js","assets/_B-jrYAnY.js","assets/_Di8Zpyb_.js","assets/_L8AbGenz.js","assets/_ByJddavk.js","assets/_PPndr_rz.js","assets/_n-lSZUlP.js","assets/_DUWRdGd_.js","assets/_f4pKzmt8.js","assets/_CwR6-mlD.js","assets/_DW8HdPSU.js","assets/_vIfMo6P4.js","assets/_qdxAdBWQ.js","assets/_Ci_nEsc7.js","assets/_CYpm1nAK.js","assets/_BNLmms1o.js","assets/_CCSX75yM.js","assets/_CyEgAFGc.js","assets/_Dh5ihWbf.js","assets/_B2gwz-sJ.js","assets/_B7hdlq98.js","assets/_DrAU44J0.js","assets/_ByR64c_N.js","assets/_B6D30XZt.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{C as e,E as t,Et as n,Fn as r,G as i,H as a,Kt as o,Nn as s,P as c,Q as l,S as u,T as d,Tt as f,Yt as p,_ as m,_t as h,a as g,b as _,bt as v,dt as y,i as b,jn as x,k as S,n as C,qt as w,r as ee,sn as T,t as E,v as te,w as D,x as ne,y as re,yt as O}from"./_DGugG2mu.js";import{A as ie,B as k,C as ae,H as A,I as oe,J as se,K as j,L as M,R as N,S as P,U as F,V as ce,W as le,a as I,b as L,d as ue,f as de,i as R,k as fe,n as pe,q as z,r as me,t as B,x as V,y as he,z as ge}from"./_Csdgg-p8.js";import{A as _e,L as ve,N as ye,_ as H,g as be,h as xe,k as Se,n as Ce,v as we}from"./_BM7XpRKs.js";import{A as Te,D as Ee,F as De,I as Oe,M as ke,N as Ae,O as je,P as Me,U as Ne,V as Pe,a as Fe,i as Ie,j as Le,k as Re,n as ze,o as Be,r as Ve,s as He,t as Ue}from"./_DDR6LzXa.js";import{n as We}from"./_BoPk1gXL.js";import{a as Ge,c as Ke,d as qe,f as Je,i as Ye,l as Xe,n as Ze,o as Qe,p as $e,r as et,s as tt,t as U,u as W}from"./_B9ncgVKo.js";import{t as nt}from"./_CcFCI5Av.js";import{_ as rt,c as it,d as at,f as ot,g as st,h as ct,l as lt,o as ut,p as dt,s as ft,u as pt,v as mt}from"./_npjII5Du.js";import{a as ht,i as gt,n as _t,o as vt,r as yt,t as bt}from"./_F9kvxpZ9.js";import{a as xt,i as St,n as Ct,r as wt,t as Tt}from"./_DYViAgQT.js";var Et=Object.create,Dt=Object.defineProperty,Ot=Object.getOwnPropertyDescriptor,kt=Object.getOwnPropertyNames,At=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty,Mt=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Nt=(e,t)=>{let n={};for(var r in e)Dt(n,r,{get:e[r],enumerable:!0});return t||Dt(n,Symbol.toStringTag,{value:`Module`}),n},Pt=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=kt(t),a=0,o=i.length,s;a<o;a++)s=i[a],!jt.call(e,s)&&s!==n&&Dt(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ot(t,s))||r.enumerable});return e},Ft=(e,t,n)=>(n=e==null?{}:Et(At(e)),Pt(t||!e||!e.__esModule||!jt.call(e,`default`)?Dt(n,`default`,{value:e,enumerable:!0}):n,e)),It=`diffs-container`,Lt=(()=>{try{return!1}catch{return!1}})(),Rt=/(?=^From [a-f0-9]+ .+$)/m,zt=/(?=^diff --git)/gm,Bt=/(?<=\n)/,Vt=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Ht=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Ut=`header-prefix`,Wt=`header-filename-suffix`,Gt=`header-metadata`,Kt=`header-custom`,qt={dark:`pierre-dark`,light:`pierre-light`},Jt=`data-theme-css`,Yt=`data-unsafe-css`,Xt=`data-diffs-scrollbar-measure`,Zt=`data-diffs-code-view-header`,Qt=`data-diffs-code-view-footer`,$t=`--diffs-scrollbar-gutter-measured`,en=1e5,tn={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},nn={...tn,hunkLineCount:1},rn={paddingTop:8,paddingBottom:8,gap:8},an={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},on=Object.freeze({fromStart:0,fromEnd:0}),sn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},cn={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},ln=new Map,un=new Map,dn=new Map,fn=new Set;function pn(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!fn.has(t))return!1;return!0}function mn(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(fn.has(n.name))continue;let e=ln.get(n.name);e??(e=n,ln.set(n.name,e));let r=e.data.find(t=>t.name===e.name||t.aliases?.includes(e.name)===!0);if(r==null)throw Error(`attachResolvedLanguages: No returned grammar declares "${e.name}" as its name or an alias.`);t.loadLanguageSync(e.data);try{t.getLanguage(e.name)}catch{throw Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${e.name}". Load the alias first or give the grammar a unique name.`)}fn.add(e.name)}}function hn(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var gn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,vn=Object.getOwnPropertyNames,yn=Object.prototype.hasOwnProperty,bn=(e,t)=>{let n={};for(var r in e)gn(n,r,{get:e[r],enumerable:!0});return t||gn(n,Symbol.toStringTag,{value:`Module`}),n},xn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=vn(t),a=0,o=i.length,s;a<o;a++)s=i[a],!yn.call(e,s)&&s!==n&&gn(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=_n(t,s))||r.enumerable});return e},Sn=(e,t,n)=>(xn(e,t,`default`),n&&xn(n,t,`default`)),Cn=[{id:`abap`,name:`ABAP`,import:(()=>B(()=>import(`./_CLvhMVsD.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>B(()=>import(`./_Cs6JJXT5.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>B(()=>import(`./_C5qYipkI.js`),[]))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>B(()=>import(`./_CA9gdOdF.js`),[]))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>B(()=>import(`./__6rzW9BS.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>B(()=>import(`./_DZXflGWr.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>B(()=>import(`./_BxRcgz-5.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>B(()=>import(`./_U0d_L8uA.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>B(()=>import(`./_KFGFyKwG.js`),[]))},{id:`apl`,name:`APL`,import:(()=>B(()=>import(`./_dj9aI8bG.js`),__vite__mapDeps([6,2,3,1,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>B(()=>import(`./_CCn79oCD.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>B(()=>import(`./_4CJ0cIlV.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>B(()=>import(`./_SCjQUq34.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>B(()=>import(`./_Cmm7eHzH.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>B(()=>import(`./_DdqjDYvZ.js`),__vite__mapDeps([10,2,3,9,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>B(()=>import(`./_BWXHIvNe.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>B(()=>import(`./_B7ZEbQpA.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>B(()=>import(`./_qdxAdBWQ.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>B(()=>import(`./_D-usSTwE.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>B(()=>import(`./_DKpUyyne.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>B(()=>import(`./_Ci_nEsc7.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>B(()=>import(`./_CUHmPFLl.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>B(()=>import(`./_CYIUgYqB.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>B(()=>import(`./_BYQRrkP1.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>B(()=>import(`./_YkIvmgMd.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>B(()=>import(`./_HjZEA0Wr.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>B(()=>import(`./_D0apG41V.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>B(()=>import(`./_CQ2zXKGN.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>B(()=>import(`./_BAfg1_wL.js`),__vite__mapDeps([19,20])))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>B(()=>import(`./_Bd2mNP7K.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>B(()=>import(`./_CtfBBspg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>B(()=>import(`./_DqKBuwfJ.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>B(()=>import(`./_Bj61d0ZC.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>B(()=>import(`./_CvkVDFLJ.js`),__vite__mapDeps([23,1,2,3,8])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>B(()=>import(`./_C8r90Shi.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>B(()=>import(`./_oeQT6MSM.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>B(()=>import(`./_uA_ehFBC.js`),__vite__mapDeps([24,2])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>B(()=>import(`./_Cv5bFMCO.js`),[]))},{id:`coq`,name:`Rocq`,import:(()=>B(()=>import(`./_DuBRPxYg.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>B(()=>import(`./_BhRPxFpM.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22])))},{id:`crystal`,name:`Crystal`,import:(()=>B(()=>import(`./_D6dA8sOf.js`),__vite__mapDeps([28,2,3,1,16,22,29])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>B(()=>import(`./_oqKa8noW.js`),[]))},{id:`css`,name:`CSS`,import:(()=>B(()=>import(`./_Cy59cI9h.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>B(()=>import(`./_Dx-8-gkx.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>B(()=>import(`./_CE9AQfxI.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>B(()=>import(`./_ClKdZ_lG.js`),[]))},{id:`d`,name:`D`,import:(()=>B(()=>import(`./_qD-0Kul2.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>B(()=>import(`./_CnvKMtbv.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>B(()=>import(`./_BkyTk9wS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>B(()=>import(`./_Dlh5hvp9.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>B(()=>import(`./_woXpYk--.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>B(()=>import(`./_IyjqRm3v.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>B(()=>import(`./__5a1GRtc.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>B(()=>import(`./_DW3nJb8Q.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>B(()=>import(`./_jHM5bheW.js`),__vite__mapDeps([30,1,2,3,11,15])))},{id:`elixir`,name:`Elixir`,import:(()=>B(()=>import(`./_BDmvc34O.js`),__vite__mapDeps([31,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>B(()=>import(`./_DnAi5Ym-.js`),__vite__mapDeps([32,27,22])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>B(()=>import(`./_c_oH4hRZ.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>B(()=>import(`./_Ie5aWuwz.js`),__vite__mapDeps([33,1,2,3,34,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>B(()=>import(`./_BaHq4SXp.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>B(()=>import(`./_DQxkIbk2.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>B(()=>import(`./_BJitypiv.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>B(()=>import(`./_C03EYrpw.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>B(()=>import(`./_CQJs3lWb.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>B(()=>import(`./_CYNrtFtB.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>B(()=>import(`./_DmIc4jLQ.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>B(()=>import(`./_DbYA3moe.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>B(()=>import(`./_DYvRD3hg.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>B(()=>import(`./_CBce3t8t.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>B(()=>import(`./_CV2tkWYe.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>B(()=>import(`./_DExj1W_8.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>B(()=>import(`./_Dl-2e7rI.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>B(()=>import(`./_CkXJXNe1.js`),__vite__mapDeps([50,29])))},{id:`gleam`,name:`Gleam`,import:(()=>B(()=>import(`./_CSRkHgEL.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>B(()=>import(`./_CfmNeFRl.js`),__vite__mapDeps([51,2,3,1,11])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>B(()=>import(`./_mPfZ_ckv.js`),__vite__mapDeps([52,2,3,1,11])))},{id:`glsl`,name:`GLSL`,import:(()=>B(()=>import(`./_DsF2mWck.js`).then(e=>e.n),__vite__mapDeps([27,22])))},{id:`gn`,name:`GN`,import:(()=>B(()=>import(`./_ilITqXS6.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>B(()=>import(`./_7GGW24-e.js`),[]))},{id:`go`,name:`Go`,import:(()=>B(()=>import(`./_rLFTqkRN.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>B(()=>import(`./_DL-lMRPt.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37])))},{id:`groovy`,name:`Groovy`,import:(()=>B(()=>import(`./_CacY0gHj.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>B(()=>import(`./_CQUUCk60.js`),__vite__mapDeps([53,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>B(()=>import(`./_DvCrVOo9.js`).then(e=>e.n),__vite__mapDeps([35,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>B(()=>import(`./_C5h3JdKg.js`),__vite__mapDeps([54,2,3,1,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>B(()=>import(`./_D8IpX4py.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>B(()=>import(`./_C8oCnwJJ.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>B(()=>import(`./_Dh228itO.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>B(()=>import(`./_CxZEssPk.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>B(()=>import(`./_Cvrh5tZx.js`),[]))},{id:`html`,name:`HTML`,import:(()=>B(()=>import(`./_20KaP1JA.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>B(()=>import(`./_DlhyTgoc.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>B(()=>import(`./_BSPoLZdf.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37])))},{id:`hurl`,name:`Hurl`,import:(()=>B(()=>import(`./_B6Jfpwmb.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37])))},{id:`hxml`,name:`HXML`,import:(()=>B(()=>import(`./_DekxQCZG.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>B(()=>import(`./_CZbG8q4J.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>B(()=>import(`./_DsUTQ-LC.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>B(()=>import(`./_B5eOa1yu.js`),[]))},{id:`java`,name:`Java`,import:(()=>B(()=>import(`./_lyXvbCRm.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>B(()=>import(`./_BiM1rHY7.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>B(()=>import(`./_BSEZrNxm.js`),__vite__mapDeps([60,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>B(()=>import(`./_DPwiBBGH.js`),__vite__mapDeps([61,2])))},{id:`json`,name:`JSON`,import:(()=>B(()=>import(`./_DSyDuhXZ.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>B(()=>import(`./_BR5RXkoi.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>B(()=>import(`./_CYpm1nAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>B(()=>import(`./_CmCQp5Yx.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>B(()=>import(`./_CJTPZ8u_.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>B(()=>import(`./_DXw9l8Rf.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>B(()=>import(`./_Dyv3XdYS.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>B(()=>import(`./_DgEyFV6S.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63])))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>B(()=>import(`./_bV_Mrv3j.js`),__vite__mapDeps([64,2,11,20,29,34,3,1,7,8,16,22,25,26,27,35,36,13,37,38,39,65])))},{id:`kdl`,name:`KDL`,import:(()=>B(()=>import(`./_CsD5j6eV.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>B(()=>import(`./_DhhofPvG.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>B(()=>import(`./_C7mF5XQf.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>B(()=>import(`./_DRhkEUyS.js`),__vite__mapDeps([66,67,63])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>B(()=>import(`./_CewbzKMR.js`),[]))},{id:`less`,name:`Less`,import:(()=>B(()=>import(`./_DVTAwKKz.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>B(()=>import(`./_Bv5qXziM.js`),__vite__mapDeps([68,2,3,1,9])))},{id:`llvm`,name:`LLVM IR`,import:(()=>B(()=>import(`./_DqHOMS-s.js`),[]))},{id:`log`,name:`Log file`,import:(()=>B(()=>import(`./_BNLmms1o.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>B(()=>import(`./_Cluzi2Zq.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>B(()=>import(`./_DrcACjND.js`).then(e=>e.n),__vite__mapDeps([38,22])))},{id:`luau`,name:`Luau`,import:(()=>B(()=>import(`./_C2pBCSgt.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>B(()=>import(`./_Dixweg8N.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>B(()=>import(`./_BYOwaDjH.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>B(()=>import(`./_CUYi28ox.js`),__vite__mapDeps([69,3,5,11,70])))},{id:`matlab`,name:`MATLAB`,import:(()=>B(()=>import(`./_D7qyCx1q.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>B(()=>import(`./_C5rtMxlC.js`),__vite__mapDeps([71,15,1,2,3,39,41])))},{id:`mdx`,name:`MDX`,import:(()=>B(()=>import(`./_DQZ5AkYe.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>B(()=>import(`./_BxpfTIzt.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>B(()=>import(`./_BMqwQI7S.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>B(()=>import(`./_fg40_ntQ.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>B(()=>import(`./_DgjMoLWr.js`),[]))},{id:`move`,name:`Move`,import:(()=>B(()=>import(`./_BYnGhZoM.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>B(()=>import(`./__X_XdTYD.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>B(()=>import(`./_DWQbgPoS.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>B(()=>import(`./_DJMQeKeT.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>B(()=>import(`./_BSAp3rsZ.js`),__vite__mapDeps([74,38,22])))},{id:`nim`,name:`Nim`,import:(()=>B(()=>import(`./_Cvk0JQ_b.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41])))},{id:`nix`,name:`Nix`,import:(()=>B(()=>import(`./_IvuFDN5E.js`),[]))},{id:`nsis`,name:`NSIS`,import:(()=>B(()=>import(`./_CjNLYCLg.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>B(()=>import(`./_DHYfO66s.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>B(()=>import(`./_D1A_Heim.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>B(()=>import(`./_BsSzOQcm.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>B(()=>import(`./_O90oeIOV.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>B(()=>import(`./_B1RWQWA5.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>B(()=>import(`./_BUDT5pXO.js`),[]))},{id:`org`,name:`Org Markup`,import:(()=>B(()=>import(`./_3pE4k6Yi.js`),__vite__mapDeps([76,2,3,1,5,8,7,9,11,13,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,48,50,81,82,83,63,65,66,67,70,84,75,85,86,87,88,89,90,91,92,93])))},{id:`pascal`,name:`Pascal`,import:(()=>B(()=>import(`./_4ZHwLPI5.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>B(()=>import(`./_Bc02j4al.js`),__vite__mapDeps([65,2,3,1,7,8,16])))},{id:`php`,name:`PHP`,import:(()=>B(()=>import(`./_wGmKnPTd.js`),__vite__mapDeps([87,2,3,1,7,8,9,16])))},{id:`pkl`,name:`Pkl`,import:(()=>B(()=>import(`./_ot-7Btpt.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>B(()=>import(`./_DGHpHOYJ.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>B(()=>import(`./_BiJDBrnU.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>B(()=>import(`./_C7UOKdEL.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>B(()=>import(`./_BXeXVLqQ.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>B(()=>import(`./_DNMTfnFr.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>B(()=>import(`./_CCSX75yM.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>B(()=>import(`./_DMgNhnYS.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>B(()=>import(`./_iXnhIJG7.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>B(()=>import(`./_DB4EqR-F.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>B(()=>import(`./_BppCb2rx.js`),__vite__mapDeps([94,2,3,1])))},{id:`puppet`,name:`Puppet`,import:(()=>B(()=>import(`./_CDv2pdJW.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>B(()=>import(`./_9MfHhQsQ.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>B(()=>import(`./_gzcpVVnB.js`),[]))},{id:`qml`,name:`QML`,import:(()=>B(()=>import(`./_BPPM1zD6.js`),__vite__mapDeps([95,2])))},{id:`qmldir`,name:`QML Directory`,import:(()=>B(()=>import(`./_DCQb3MpD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>B(()=>import(`./_Fe1Jh2GI.js`),[]))},{id:`r`,name:`R`,import:(()=>B(()=>import(`./_B7OE_Bvi.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>B(()=>import(`./_DcIDlBhZ.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>B(()=>import(`./_B3gFvitq.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>B(()=>import(`./_BQG6yae8.js`),__vite__mapDeps([96,1,2,3,78])))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>B(()=>import(`./_C0MpOrj4.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>B(()=>import(`./_CRGYupPL.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>B(()=>import(`./_sjrTGH4R.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>B(()=>import(`./_BtDbiS_P.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>B(()=>import(`./_Ckw8ddFX.js`),[]))},{id:`ron`,name:`RON`,import:(()=>B(()=>import(`./_VUp2lXgN.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>B(()=>import(`./_CAekHB0j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>B(()=>import(`./_BesZKBHb.js`),__vite__mapDeps([97,2,15,1,3,20,98,25,26,27,22,29,39,34,7,8,16,35,36,11,13,37,38])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>B(()=>import(`./_qxZZ1WaB.js`),__vite__mapDeps([34,2,3,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>B(()=>import(`./_Cfkwpbl8.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>B(()=>import(`./_DHKxnN_V.js`),__vite__mapDeps([99,16])))},{id:`sass`,name:`Sass`,import:(()=>B(()=>import(`./_DXrisJhu.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>B(()=>import(`./_BiFt_7mu.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>B(()=>import(`./_DQCgrYNe.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>B(()=>import(`./_DFXiXKAa.js`).then(e=>e.n),__vite__mapDeps([5,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>B(()=>import(`./_bTVj8UrX.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>B(()=>import(`./_DB-OQ-9y.js`),__vite__mapDeps([100,101])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>B(()=>import(`./_BQAOa_6M.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>B(()=>import(`./_B-jrYAnY.js`),__vite__mapDeps([102,29])))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>B(()=>import(`./_BHpQb5nM.js`),[]))},{id:`smithy`,name:`Smithy`,import:(()=>B(()=>import(`./_Dgaz7aur.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>B(()=>import(`./_Bj7E1mRn.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>B(()=>import(`./_Di8Zpyb_.js`),__vite__mapDeps([103,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>B(()=>import(`./_L8AbGenz.js`),__vite__mapDeps([104,105])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>B(()=>import(`./_BC2Px7Mm.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>B(()=>import(`./_CVi6PGLR.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>B(()=>import(`./_BgfXC-Er.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>B(()=>import(`./_PPndr_rz.js`),__vite__mapDeps([106,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>B(()=>import(`./_B6D30XZt.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>B(()=>import(`./_n-lSZUlP.js`),__vite__mapDeps([107,2])))},{id:`svelte`,name:`Svelte`,import:(()=>B(()=>import(`./_DUWRdGd_.js`),__vite__mapDeps([108,2,3,11,12])))},{id:`swift`,name:`Swift`,import:(()=>B(()=>import(`./_CyEgAFGc.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>B(()=>import(`./_Dh5ihWbf.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>B(()=>import(`./_BxMlprV5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>B(()=>import(`./_CohzipZa.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>B(()=>import(`./_DMoTqEGO.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>B(()=>import(`./_CZd0xW_V.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>B(()=>import(`./_f4pKzmt8.js`),__vite__mapDeps([109,2,3,81])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>B(()=>import(`./_DswuEJGm.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>B(()=>import(`./_BSOZk18Y.js`).then(e=>e.n),__vite__mapDeps([67,63])))},{id:`toml`,name:`TOML`,import:(()=>B(()=>import(`./_CcmNWLt0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>B(()=>import(`./_CwR6-mlD.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22])))},{id:`tsv`,name:`TSV`,import:(()=>B(()=>import(`./_sltzmVWM.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>B(()=>import(`./_zYukhuwp.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>B(()=>import(`./_ByJddavk.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>B(()=>import(`./_DW8HdPSU.js`),__vite__mapDeps([111,2,3,5,20,34,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39,87,9])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>B(()=>import(`./_XY7P7lxS.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>B(()=>import(`./_BRdr0IET.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>B(()=>import(`./_vIfMo6P4.js`),__vite__mapDeps([112,2,3,1,5,8,7,9,11,13,113,114,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,44,48,50,81,82,54,83,115,63,62,65,66,67,70,116,84,85,87,88,89,90,91,93,117,94,118,119,111,120])))},{id:`v`,name:`V`,import:(()=>B(()=>import(`./_DBj4K9d_.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>B(()=>import(`./_zf12oZj6.js`),[]))},{id:`vb`,name:`Visual Basic`,import:(()=>B(()=>import(`./_DOwzaHZ0.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>B(()=>import(`./_B2gwz-sJ.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>B(()=>import(`./_BroJfC0k.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>B(()=>import(`./_DvXPmvsu.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>B(()=>import(`./_B7hdlq98.js`),__vite__mapDeps([121,2,3,1,9,11,15])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>B(()=>import(`./_DrAU44J0.js`),__vite__mapDeps([122,2])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>B(()=>import(`./_ByR64c_N.js`),__vite__mapDeps([123,2,3,5,12,70,124])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>B(()=>import(`./_CgoNMtux.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>B(()=>import(`./_ByWQv1Qj.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>B(()=>import(`./_C8pVoKbM.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>B(()=>import(`./_BsKzXJz4.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>B(()=>import(`./_ClFFjSW2.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>B(()=>import(`./_DdvCle-K.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>B(()=>import(`./_DLL8P-h_.js`),[]))},{id:`xml`,name:`XML`,import:(()=>B(()=>import(`./_Ck_XTVfX.js`).then(e=>e.n),__vite__mapDeps([7,8])))},{id:`xsl`,name:`XSL`,import:(()=>B(()=>import(`./_CGkbxK_d.js`),__vite__mapDeps([93,7,8])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>B(()=>import(`./_ZN-juIki.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>B(()=>import(`./_BnlCZFoB.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>B(()=>import(`./_CMLA9XwU.js`),[]))}],wn=Object.fromEntries(Cn.map(e=>[e.id,e.import])),Tn=Object.fromEntries(Cn.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),En={...wn,...Tn},Dn=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>B(()=>import(`./_vGVdxbeo.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>B(()=>import(`./_CDeNXAV0.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>B(()=>import(`./_DluEY0Gj.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>B(()=>import(`./_C3h-C4tm.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>B(()=>import(`./_Bqwy1Gya.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>B(()=>import(`./_C9Q5zVZY.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>B(()=>import(`./_CtsyrtPq.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>B(()=>import(`./_R8nAf1vR.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>B(()=>import(`./_DjuaAJKi.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>B(()=>import(`./_Cs2F2srj.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>B(()=>import(`./_BHWKrbxM.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>B(()=>import(`./_5eyTD99u.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>B(()=>import(`./_sB-x3p7T.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>B(()=>import(`./_Df2xbC6M.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>B(()=>import(`./_C-LZuMrd.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>B(()=>import(`./_DXG-b-1a.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>B(()=>import(`./_Bx1FflLF.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>B(()=>import(`./_B_tTalzw.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>B(()=>import(`./_EUqPIrTm.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>B(()=>import(`./_BXViO-2h.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>B(()=>import(`./_B68TUdTA.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>B(()=>import(`./_C820rvS2.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>B(()=>import(`./_BPjhmG05.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>B(()=>import(`./_MrdJrrXF.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>B(()=>import(`./_BC_s9l72.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>B(()=>import(`./_BAWPOn9u.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>B(()=>import(`./_BSMLrYjP.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>B(()=>import(`./_CE9ld1lL.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>B(()=>import(`./_DSNQnXHK.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>B(()=>import(`./_CsvMBhTu.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>B(()=>import(`./_Bozd7klA.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>B(()=>import(`./_BmuOG9ZW.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>B(()=>import(`./_BML5mF2J.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>B(()=>import(`./_C_8bwKvT.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>B(()=>import(`./_DVQuIRkW.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>B(()=>import(`./_Bm3Qr25_.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>B(()=>import(`./_2IIEA8gg.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>B(()=>import(`./_uhdI0v04.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>B(()=>import(`./_CHQ94UKr.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>B(()=>import(`./_B5W6OYN7.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>B(()=>import(`./_BSWPekZh.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>B(()=>import(`./_DDpmG2fV.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>B(()=>import(`./_B_bV9PQ9.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>B(()=>import(`./_DhmEMT88.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>B(()=>import(`./_eJ-hLW7d.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>B(()=>import(`./_Cb4Vim4T.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>B(()=>import(`./_CLwyXe_n.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>B(()=>import(`./_D7Lr4KcI.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>B(()=>import(`./_DQwYfKfQ.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>B(()=>import(`./_DRFjx7u4.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>B(()=>import(`./_DX1BQOs8.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>B(()=>import(`./_aMsaMD1D.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>B(()=>import(`./_8PwUyIlP.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>B(()=>import(`./_DO-qXg-I.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>B(()=>import(`./_DnToyrRv.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>B(()=>import(`./_B2OO5cIa.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>B(()=>import(`./_4G7pJPwS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>B(()=>import(`./_UdsmMDCL.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>B(()=>import(`./_C1IUL_tW.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>B(()=>import(`./_nFMaYfgc.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>B(()=>import(`./_oM2G3aXe.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>B(()=>import(`./_DdrHHSXu.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>B(()=>import(`./_fwtXNY1n.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>B(()=>import(`./_BZCL-v6S.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>B(()=>import(`./_VbXTXTou.js`),[]))}].map(e=>[e.id,e.import])),On=Nt({createOnigurumaEngine:()=>nr,getDefaultWasmLoader:()=>tr,loadWasm:()=>Yn,setDefaultWasmLoader:()=>er}),kn=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function An(){return 2147483648}function jn(){return typeof performance<`u`?performance.now():Date.now()}var Mn=(e,t)=>e+(t-e%t)%t;async function Nn(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=An();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,Mn(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:jn,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var Pn=Object.defineProperty,Fn=(e,t,n)=>t in e?Pn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,In=(e,t,n)=>Fn(e,typeof t==`symbol`?t:t+``,n),Ln=null;function Rn(e){throw new kn(e.UTF8ToString(e.getLastOnigError()))}var zn=class e{constructor(t){In(this,`utf16Length`),In(this,`utf8Length`),In(this,`utf16Value`),In(this,`utf8Value`),In(this,`utf16OffsetToUtf8`),In(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},Bn=class e{constructor(t){if(In(this,`id`,++e.LAST_ID),In(this,`_onigBinding`),In(this,`content`),In(this,`utf16Length`),In(this,`utf8Length`),In(this,`utf16OffsetToUtf8`),In(this,`utf8OffsetToUtf16`),In(this,`ptr`),!Ln)throw new kn(`Must invoke loadWasm first.`);this._onigBinding=Ln,this.content=t;let n=new zn(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=Ln.omalloc(1e4),e._sharedPtrInUse=!0,Ln.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Ln)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};In(Bn,`LAST_ID`,0),In(Bn,`_sharedPtr`,0),In(Bn,`_sharedPtrInUse`,!1);var Vn=Bn,Hn=class{constructor(e){if(In(this,`_onigBinding`),In(this,`_ptr`),!Ln)throw new kn(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new zn(e[r]);t[r]=i.createString(Ln),n[r]=i.utf8Length}let r=Ln.omalloc(4*e.length);Ln.HEAPU32.set(t,r/4);let i=Ln.omalloc(4*e.length);Ln.HEAPU32.set(n,i/4);let a=Ln.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)Ln.ofree(t[n]);Ln.ofree(i),Ln.ofree(r),a===0&&Rn(Ln),this._onigBinding=Ln,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new Vn(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function Un(e){return typeof e.instantiator==`function`}function Wn(e){return typeof e.default==`function`}function Gn(e){return e.data!==void 0}function Kn(e){return typeof Response<`u`&&e instanceof Response}function qn(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var Jn;function Yn(e){if(Jn)return Jn;async function t(){Ln=await Nn(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),Un(n)?n=await n.instantiator(t):Wn(n)?n=await n.default(t):(Gn(n)&&(n=n.data),Kn(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await Zn(n)(t):await Qn(n)(t):qn(n)||n instanceof WebAssembly.Module?n=await Xn(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Xn(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return Jn=t(),Jn}function Xn(e){return t=>WebAssembly.instantiate(e,t)}function Zn(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Qn(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var $n;function er(e){$n=e}function tr(){return $n}async function nr(e){return e&&await Yn(e),{createScanner(e){return new Hn(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new Vn(e)}}}var rr=bn({});Sn(rr,On);var ir=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function ar(e){return or(e)}function or(e){return Array.isArray(e)?sr(e):e instanceof RegExp?e:typeof e==`object`?cr(e):e}function sr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=or(e[n]);return t}function cr(e){let t={};for(let n in e)t[n]=or(e[n]);return t}function lr(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function ur(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?ur(e.substring(0,e.length-1)):e.substr(~t+1)}var dr=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,fr=class{static hasCaptures(e){return e!==null&&(dr.lastIndex=0,dr.test(e))}static replaceCaptures(e,t,n){return e.replace(dr,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function pr(e,t){return e<t?-1:+(e>t)}function mr(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=pr(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function hr(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function gr(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var _r=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},vr=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Cr(e),t)}static createFromParsedTheme(e,t){return Er(e,t)}_cachedMatchRoot=new _r(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>br(e.parent,t.parentScopes));return n?new Sr(n.fontStyle,n.foreground,n.background):null}},yr=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function br(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!xr(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function xr(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var Sr=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Cr(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&hr(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&hr(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new wr(l,u,e,o,s,c)}}return n}var wr=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},Tr=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(Tr||{});function Er(e,t){e.sort((e,t)=>{let n=pr(e.scope,t.scope);return n!==0||(n=mr(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Dr(t),o=new Sr(n,a.getId(r),a.getId(i)),s=new Ar(new kr(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new vr(a,o,s)}var Dr=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Or=Object.freeze([]),kr=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||Or,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},Ar=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),kr.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(mr(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new kr(e,t,n,r,i))}},jr=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=Nr(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function Mr(e){return e}function Nr(e){return e}function Pr(e,t){let n=[],r=Ir(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(Fr(i)){let e=[];do e.push(i),i=r.next();while(Fr(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function Fr(e){return!!e&&!!e.match(/[\w\.:]+/)}function Ir(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function Lr(e){typeof e.dispose==`function`&&e.dispose()}var Rr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},zr=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Br=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Vr=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Rr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Br;for(let n of e)Hr(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Rr){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function Hr(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof Rr?Wr({baseGrammar:a,selfGrammar:i},r):Ur(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new Rr(e))}function Ur(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Gr([r],t,n)}}function Wr(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Gr(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Gr(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Gr(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?lr({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Gr(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Zr(i);switch(a.kind){case 0:Wr({...t,selfGrammar:t.baseGrammar},n);break;case 1:Wr(t,n);break;case 2:Ur(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?Ur(a.ruleName,i,n):Wr(i,n)}else a.kind===4?n.add(new zr(a.scopeName,a.ruleName)):n.add(new Rr(a.scopeName))}}}var Kr=class{kind=0},qr=class{kind=1},Jr=class{constructor(e){this.ruleName=e}kind=2},Yr=class{constructor(e){this.scopeName=e}kind=3},Xr=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Zr(e){if(e===`$base`)return new Kr;if(e===`$self`)return new qr;let t=e.indexOf(`#`);return t===-1?new Yr(e):t===0?new Jr(e.substring(1)):new Xr(e.substring(0,t),e.substring(t+1))}var Qr=/\\(\d+)/,$r=/\\(\d+)/g,ei=-1,ti=-2;function ni(e){return e}function ri(e){return e}var ii=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=fr.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=fr.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${ur(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:fr.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:fr.replaceCaptures(this._contentName,e,t)}},ai=class extends ii{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},oi=class extends ii{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new di(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fi,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},si=class extends ii{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fi,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ci=class extends ii{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new di(i,this.id),this.beginCaptures=a,this._end=new di(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fi;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},li=class extends ii{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new di(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new di(o,ti),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fi;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new fi,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},ui=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new ai(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new oi(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=lr({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new si(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new li(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new ci(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Zr(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof si||e instanceof ci||e instanceof li)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},di=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&Qr.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return $r.lastIndex=0,this.source.replace($r,(e,t)=>gr(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},fi=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new pi(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new pi(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},pi=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
3
3
|
`)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},mi=class{constructor(e,t){this.languageId=e,this.tokenType=t}},hi=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new mi(e,8),this._embeddedLanguagesMatcher=new gi(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new mi(0,0);_getBasicScopeAttributes=new _r(e=>new mi(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},gi=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>gr(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var _i=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function vi(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=yi(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new _i(i,!0);f()}return new _i(i,!1);function f(){let o=bi(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===ei){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),Ti(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof ci){let r=o;Ti(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof li){let r=o;Ti(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(Ti(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function yi(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof li&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=wi(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==ti){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),Ti(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function bi(e,t,n,r,i,a){let o=xi(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=Si(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function xi(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=Ci(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Si(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=Ci(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function Ci(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function wi(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function Ti(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));vi(e,p,n&&d.start===0,d.start,f,i,!1,0),Lr(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new Ei(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var Ei=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Di(e,t,n,r,i,a,o,s){return new ji(e,t,n,r,i,a,o,s)}function Oi(e,t,n,r,i){let a=Pr(t,ki),o=ui.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function ki(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(Ai(t[r],e))return n=r+1,!0;return!1})}function Ai(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var ji=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new hi(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Mi(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=Pr(e,ki);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)Oi(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&Oi(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(ni(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[ri(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Mi(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=ui.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Pi.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=jr.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?Ni.createRootAndLookUpScopeName(a,r,this):Ni.createRoot(`unknown`,r),t=new Pi(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
|
|
4
4
|
`;let a=this.createOnigString(e),o=a.content.length,s=new Ii(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=vi(this,a,i,0,t,s,!0,r);return Lr(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Mi(e,t){return e=ar(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Ni=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=yr.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new yr(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new yr(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(1)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),jr.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},Pi=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t!==null&&e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?Ni.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(1)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:ri(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=Ni.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,ni(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Ni.fromExtension(r,n.contentNameScopesList))}},Fi=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):Pr(e,ki).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>Pr(e,ki).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Ii=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=jr.set(n,0,Mr(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=jr.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},Li=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,Di(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Ri=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Li(vr.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(vr.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new Fi(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new Vr(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},zi=Pi.NULL;function Bi(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function Vi(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Hi(e){return Array.isArray(e)?e:[e]}async function Ui(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function Wi(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function Gi(e){return e===`ansi`||Wi(e)}function Ki(e){return e===`none`}function qi(e){return Ki(e)}var Ji=/(\r?\n)/g;function Yi(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(Ji),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var Xi={light:`#333333`,dark:`#bbbbbb`},Zi={light:`#fffffe`,dark:`#1e1e1e`},Qi=`__shiki_resolved`;function $i(e){if(e?.[Qi])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?Xi.light:Xi.dark,n||=t.type===`light`?Zi.light:Zi.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,Qi,{enumerable:!1,writable:!1,value:!0}),t}async function ea(e){return[...new Set((await Promise.all(e.filter(e=>!Gi(e)).map(async e=>await Ui(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function ta(e){return(await Promise.all(e.map(async e=>qi(e)?null:$i(await Ui(e))))).filter(e=>!!e)}function na(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new ir(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var ra=class extends Ri{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=$i(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=vr.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=na(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new ir(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},ia=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},aa=0;function oa(e){aa+=1,e.warnings!==!1&&aa>=10&&aa%10==0&&console.warn(`[Shiki] ${aa} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new ir("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map($i),i=new ra(new ia(e.engine,n),r,n,e.langAlias),a;function o(t){return na(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new ir(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new ir(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await ea(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await ta(e))}function g(){if(t)throw new ir(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--aa)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function sa(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([ta(e.themes||[]),ea(e.langs||[]),e.engine]);return oa({...e,themes:t,langs:n,engine:r})}var ca=new WeakMap;function la(e,t){ca.set(e,t)}function ua(e){return ca.get(e)}var da=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(Hi(n).map(e=>[e,zi])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return fa(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function fa(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function pa(e,t){if(!(e instanceof da))throw new ir(`Invalid grammar state`);return e.getInternalStack(t)}var ma=/,/,ha=/ /;function ga(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(Wi(e.resolveLangAlias(n.lang||`text`))||Ki(r))return Yi(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new ir(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new ir(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return va(t,o,i,a,n)}function _a(...e){if(e.length===2)return ua(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(Wi(i)||Ki(a))throw new ir(`Plain language does not have grammar state`);if(i===`ansi`)throw new ir(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new da(ya(n,c,o,s,r).stateStack,c.name,o.name)}function va(e,t,n,r,i){let a=ya(e,t,n,r,i),o=new da(a.stateStack,t.name,n.name);return la(a.tokens,o),a.tokens}function ya(e,t,n,r,i){let a=Bi(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500,includeExplanation:c=!1}=i,l=Yi(e),u=i.grammarState?pa(i.grammarState,n.name)??zi:i.grammarContextCode==null?zi:ya(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,d=[],f=[];for(let e=0,i=l.length;e<i;e++){let[i,p]=l[e];if(i===``){d=[],f.push([]);continue}if(o>0&&i.length>=o){d=[],f.push([{content:i,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;c&&c!==`tokenType`&&(m=t.tokenizeLine(i,u,s),h=m.tokens,g=0);let _=t.tokenizeLine2(i,u,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:i.length;if(t===o)continue;let s=_.tokens[2*e+1],l=Vi(r[jr.getForeground(s)],a),u=jr.getFontStyle(s),f={content:i.substring(t,o),offset:p+t,color:l,fontStyle:u};if(c===`tokenType`)f.type=jr.getTokenType(s);else if(c){let e=[];if(c!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(ma).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(ha))})}f.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=i.substring(t.startIndex,t.endIndex);r+=n.length,f.explanation.push({content:n,scopes:c===`scopeName`?ba(t.scopes):xa(e,t.scopes)}),g+=1}}d.push(f)}f.push(d),d=[],u=_.ruleStack}return{tokens:f,stateStack:u}}function ba(e){return e.map(e=>({scopeName:e}))}function xa(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:wa(e,i,t.slice(0,r))}}return n}function Sa(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function Ca(e,t,n){if(!Sa(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Sa(e[r],n[i])&&--r,--i;return r===-1}function wa(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(Ca(e,t,n)){r.push(a);break}return r}function Ta(e,t,n,r=ga){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:ua(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=Ea(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new da(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&la(s,c),s}function Ea(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var Da=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],Oa=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Oa.prototype.normal={},Oa.prototype.property={},Oa.prototype.space=void 0;function ka(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Oa(n,r,t)}function Aa(e){return e.toLowerCase()}var ja=class{constructor(e,t){this.attribute=t,this.property=e}};ja.prototype.attribute=``,ja.prototype.booleanish=!1,ja.prototype.boolean=!1,ja.prototype.commaOrSpaceSeparated=!1,ja.prototype.commaSeparated=!1,ja.prototype.defined=!1,ja.prototype.mustUseProperty=!1,ja.prototype.number=!1,ja.prototype.overloadedBoolean=!1,ja.prototype.property=``,ja.prototype.spaceSeparated=!1,ja.prototype.space=void 0;var Ma=Nt({boolean:()=>G,booleanish:()=>Pa,commaOrSpaceSeparated:()=>Ra,commaSeparated:()=>La,number:()=>K,overloadedBoolean:()=>Fa,spaceSeparated:()=>Ia}),Na=0,G=za(),Pa=za(),Fa=za(),K=za(),Ia=za(),La=za(),Ra=za();function za(){return 2**++Na}var Ba=Object.keys(Ma),Va=class extends ja{constructor(e,t,n,r){let i=-1;if(super(e,t),Ha(this,`space`,r),typeof n==`number`)for(;++i<Ba.length;){let e=Ba[i];Ha(this,Ba[i],(n&Ma[e])===Ma[e])}}};Va.prototype.defined=!0;function Ha(e,t,n){n&&(e[t]=n)}function Ua(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Va(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Aa(r)]=r,n[Aa(a.attribute)]=r}return new Oa(t,n,e.space)}var Wa=Ua({properties:{ariaActiveDescendant:null,ariaAtomic:Pa,ariaAutoComplete:null,ariaBusy:Pa,ariaChecked:Pa,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:Ia,ariaCurrent:null,ariaDescribedBy:Ia,ariaDetails:null,ariaDisabled:Pa,ariaDropEffect:Ia,ariaErrorMessage:null,ariaExpanded:Pa,ariaFlowTo:Ia,ariaGrabbed:Pa,ariaHasPopup:null,ariaHidden:Pa,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ia,ariaLevel:K,ariaLive:null,ariaModal:Pa,ariaMultiLine:Pa,ariaMultiSelectable:Pa,ariaOrientation:null,ariaOwns:Ia,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:Pa,ariaReadOnly:Pa,ariaRelevant:null,ariaRequired:Pa,ariaRoleDescription:Ia,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:Pa,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Ga(e,t){return t in e?e[t]:t}function Ka(e,t){return Ga(e,t.toLowerCase())}var qa=Ua({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:La,acceptCharset:Ia,accessKey:Ia,action:null,allow:null,allowFullScreen:G,allowPaymentRequest:G,allowUserMedia:G,alpha:G,alt:null,as:null,async:G,autoCapitalize:null,autoComplete:Ia,autoFocus:G,autoPlay:G,blocking:Ia,capture:null,charSet:null,checked:G,cite:null,className:Ia,closedBy:null,colorSpace:null,cols:K,colSpan:K,command:null,commandFor:null,content:null,contentEditable:Pa,controls:G,controlsList:Ia,coords:K|La,crossOrigin:null,data:null,dateTime:null,decoding:null,default:G,defer:G,dir:null,dirName:null,disabled:G,download:Fa,draggable:Pa,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:G,formTarget:null,headers:Ia,height:K,hidden:Fa,high:K,href:null,hrefLang:null,htmlFor:Ia,httpEquiv:Ia,id:null,imageSizes:null,imageSrcSet:null,inert:G,inputMode:null,integrity:null,is:null,isMap:G,itemId:null,itemProp:Ia,itemRef:Ia,itemScope:G,itemType:Ia,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:G,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:G,muted:G,name:null,nonce:null,noModule:G,noValidate:G,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:G,optimum:K,pattern:null,ping:Ia,placeholder:null,playsInline:G,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:G,referrerPolicy:null,rel:Ia,required:G,reversed:G,rows:K,rowSpan:K,sandbox:Ia,scope:null,scoped:G,seamless:G,selected:G,shadowRootClonable:G,shadowRootCustomElementRegistry:G,shadowRootDelegatesFocus:G,shadowRootMode:null,shadowRootSerializable:G,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:Pa,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:G,useMap:null,value:Pa,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ia,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:G,declare:G,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:G,noHref:G,noShade:G,noWrap:G,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:Pa,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:G,disablePictureInPicture:G,disableRemotePlayback:G,exportParts:La,part:Ia,prefix:null,property:null,results:K,security:null,unselectable:null},space:`html`,transform:Ka}),Ja=Ua({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:Ra,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:Ia,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:G,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:La,g2:La,glyphName:La,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:Ra,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ia,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ra,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ra,rev:Ra,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ra,requiredFeatures:Ra,requiredFonts:Ra,requiredFormats:Ra,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:Ra,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ra,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ra,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Ga}),Ya=Ua({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Xa=Ua({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Ka}),Za=Ua({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Qa=/[A-Z]/g,$a=/-[a-z]/g,eo=/^data[-\w.:]+$/i;function to(e,t){let n=Aa(t),r=t,i=ja;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&eo.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace($a,ro);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!$a.test(e)){let n=e.replace(Qa,no);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Va}return new i(r,t)}function no(e){return`-`+e.toLowerCase()}function ro(e){return e.charAt(1).toUpperCase()}var io=ka([Wa,qa,Ya,Xa,Za],`html`),ao=ka([Wa,Ja,Ya,Xa,Za],`svg`),oo={}.hasOwnProperty;function so(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&oo.call(t,e)){let n=String(t[e]);i=oo.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var co=/["&'<>`]/g,lo=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uo=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,fo=/[|\\{}()[\]^$+*?.]/g,po=new WeakMap;function mo(e,t){return e=e.replace(t.subset?ho(t.subset):co,r),t.subset||t.escapeOnly?e:e.replace(lo,n).replace(uo,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function ho(e){let t=po.get(e);return t||(t=go(e),po.set(e,t)),t}function go(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(fo,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var _o=/[\dA-Fa-f]/;function vo(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!_o.test(String.fromCharCode(t))?r:r+`;`}var yo=/\d/;function bo(e,t,n){let r=`&#`+String(e);return n&&t&&!yo.test(String.fromCharCode(t))?r:r+`;`}var xo=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),So={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:``,zwj:``,lrm:``,rlm:``,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},Co=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],wo={}.hasOwnProperty,To={},Eo;for(Eo in So)wo.call(So,Eo)&&(To[So[Eo]]=Eo);var Do=/[^\dA-Za-z]/;function Oo(e,t,n,r){let i=String.fromCharCode(e);if(wo.call(To,i)){let e=To[i],a=`&`+e;return n&&xo.includes(e)&&!Co.includes(e)&&(!r||t&&t!==61&&Do.test(String.fromCharCode(t)))?a:a+`;`}return``}function ko(e,t,n){let r=vo(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Oo(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=bo(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Ao(e,t){return mo(e,Object.assign({format:ko},t))}var jo=/^>|^->|<!--|-->|--!>|<!-$/g,Mo=[`>`],No=[`<`,`>`];function Po(e,t,n,r){return r.settings.bogusComments?`<?`+Ao(e.value,Object.assign({},r.settings.characterReferences,{subset:Mo}))+`>`:`<!--`+e.value.replace(jo,i)+`-->`;function i(e){return Ao(e,Object.assign({},r.settings.characterReferences,{subset:No}))}}function Fo(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function Io(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Lo(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function Ro(e){return e.join(` `).trim()}var zo=/[ \t\n\f\r]/g;function Bo(e){return typeof e==`object`?e.type===`text`&&Vo(e.value):Vo(e)}function Vo(e){return e.replace(zo,``)===``}var Ho=Go(1),Uo=Go(-1),Wo=[];function Go(e){return t;function t(t,n,r){let i=t?t.children:Wo,a=(n||0)+e,o=i[a];if(!r)for(;o&&Bo(o);)a+=e,o=i[a];return o}}var Ko={}.hasOwnProperty;function qo(e){return t;function t(t,n,r){return Ko.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var Jo=qo({body:Zo,caption:Yo,colgroup:Yo,dd:ts,dt:es,head:Yo,html:Xo,li:$o,optgroup:rs,option:is,p:Qo,rp:ns,rt:ns,tbody:os,td:ls,tfoot:ss,th:ls,thead:as,tr:cs});function Yo(e,t,n){let r=Ho(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&Bo(r.value.charAt(0)))}function Xo(e,t,n){let r=Ho(n,t);return!r||r.type!==`comment`}function Zo(e,t,n){let r=Ho(n,t);return!r||r.type!==`comment`}function Qo(e,t,n){let r=Ho(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||n.type!==`element`||n.tagName!==`a`&&n.tagName!==`audio`&&n.tagName!==`del`&&n.tagName!==`ins`&&n.tagName!==`map`&&n.tagName!==`noscript`&&n.tagName!==`video`}function $o(e,t,n){let r=Ho(n,t);return!r||r.type===`element`&&r.tagName===`li`}function es(e,t,n){let r=Ho(n,t);return!(!r||r.type!==`element`||r.tagName!==`dt`&&r.tagName!==`dd`)}function ts(e,t,n){let r=Ho(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function ns(e,t,n){let r=Ho(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function rs(e,t,n){let r=Ho(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function is(e,t,n){let r=Ho(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function as(e,t,n){let r=Ho(n,t);return!(!r||r.type!==`element`||r.tagName!==`tbody`&&r.tagName!==`tfoot`)}function os(e,t,n){let r=Ho(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function ss(e,t,n){return!Ho(n,t)}function cs(e,t,n){let r=Ho(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function ls(e,t,n){let r=Ho(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var us=qo({body:ps,colgroup:ms,head:fs,html:ds,tbody:hs});function ds(e){let t=Ho(e,-1);return!t||t.type!==`comment`}function fs(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function ps(e){let t=Ho(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&Bo(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function ms(e,t,n){let r=Uo(n,t),i=Ho(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&Jo(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function hs(e,t,n){let r=Uo(n,t),i=Ho(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&Jo(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var gs={name:[[`
|
|
5
5
|
\f\r &/=>`.split(``),`
|
|
@@ -320,10 +320,10 @@ diff --git`)}function v_(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
|
|
|
320
320
|
`),a=Math.max(1,t-GS),o=Math.min(i.length,n+GS),s=r===`deletions`?`-`:r===`file`?`>`:`+`,c=[];for(let e=a;e<=o;e++){let r=e>=t&&e<=n?s:` `;c.push(`${r}${String(e).padStart(4)} | ${i[e-1]??``}`)}return c.join(`
|
|
321
321
|
`)}function rC(e){let t=3,n=/`+/g,r;for(;r=n.exec(e);)t=Math.max(t,r[0].length+1);return"`".repeat(t)}function iC(e){return e.split(/[@#]/)[0]}function aC(e){return e.split(`
|
|
322
322
|
`).filter(e=>e[0]===`+`||e[0]===`-`||e[0]===`>`).map(e=>e.slice(1)).join(`
|
|
323
|
-
`)}var oC=`
|
|
324
|
-
`)}var dC=new WeakMap;function fC(e){dC.get(e)?.()}function pC(e,t,n,r){let i={el:mC(),busy:!1,stale:!1},a=()=>{},o=()=>{if(i.busy){i.stale=!0;return}let s=e.sessions(),c;if(!s.length)c=mC(),a=()=>{};else{let l=gC(`Send`,``);l.dataset.role=`send`;let u=cC(s),d=u?`Send to`:`Send`;l.onclick=()=>{(async()=>{let t=lC(u,e.sessions());if(t&&!l.disabled){i.busy=!0,hC([...n,l],!0,d);try{await r(t)}finally{i.busy=!1,hC([...n,l],!1,d),i.stale&&(i.stale=!1,o())}}})()},a=()=>l.click(),c=_C(l,u,s,t)}i.el.replaceWith(c),i.el=c};return o(),{get el(){return i.el},draw:o,send:()=>e.sessions().length?(a(),!0):!1}}function mC(){let e=document.createElement(`span`);return e.hidden=!0,e}function hC(e,t,n){for(let r of e)r.disabled=t,n&&r.dataset.role===`send`&&(r.textContent=t?`Sending…`:n)}function gC(e,t){let n=document.createElement(`button`);return n.type=`button`,n.textContent=e,n.className=t,n}function _C(e,t,n,r){if(!t){e.className=`_r ${r?h:``} _s`,e.textContent=`Send`;let t=n[0];return t&&(e.title=`Send to ${Pe(t)}`),e}let i=document.createElement(`span`);return i.className=`_lt ${r?`_lA`:``}`,e.className=`_s _lu`,e.textContent=`Send to`,i.append(e,t),i}function vC(e,t,n){e.onkeydown=e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),t()),e.key===`Escape`&&(e.preventDefault(),n())}}function yC(e,t,r){let i=document.createElement(`div`);i.className=`_lw`;let a=document.createElement(`div`),o=document.createElement(`div`);o.className=`_lz`;let s=null;dC.set(i,()=>s?.());let c=()=>{a.replaceChildren(),o.replaceChildren();let i=document.createElement(`p`);i.className=`_lx`,i.textContent=e.text;let c=gC(`Remove`,`_r ${h}`);c.onclick=()=>r.onDelete(e.id);let u=gC(`Edit`,`_r ${h}`);u.hidden=!r.onEdit,u.onclick=()=>l(),o.append(u,c);let d=r.onSend;if(d){let n=pC(t,!0,[c,u],t=>d(e.id,t));o.append(n.el),s=n.draw}if(r.drifted){let e=document.createElement(`span`);e.className=`_9 ${n.warn} _lB`,e.textContent=`changed since`,e.title=`These lines changed since the comment; the agent gets them as they were`,o.append(e)}a.append(i)},l=()=>{s=null,a.replaceChildren(),o.replaceChildren();let t=document.createElement(`textarea`);t.value=e.text,t.rows=3,t.className=`_bj _ly`;let n=gC(`Save`,`_r _s`),i=gC(`Cancel`,`_r`),l=()=>{let a=t.value.trim();if(!a||a===e.text){c();return}(async()=>{hC([n,i],!0);try{await r.onEdit?.(e.id,a),e.text=a,c()}catch{hC([n,i],!1)}})()};n.onclick=l,i.onclick=()=>c(),vC(t,l,c),o.append(n,i),a.append(t),setTimeout(()=>{t.focus({preventScroll:!0}),t.setSelectionRange(t.value.length,t.value.length)},0)};return c(),i.append(a,o),i}function bC(e,t){let n=document.createElement(`div`);n.className=`_lw`;let r=document.createElement(`textarea`);r.placeholder=`Add a comment…`,r.rows=3,r.className=`_bj _ly`;let i=gC(`Add`,`_r`),a=gC(`Cancel`,`_r`),o=()=>{r.value.trim()&&t.onSave(r.value)},s=t.onSend,c=s?pC(e,!1,[i,a],e=>{let t=r.value.trim();if(t)return s(t,e)}):null;c&&dC.set(n,c.draw),i.onclick=o,a.onclick=()=>t.onCancel(),vC(r,()=>{c?.send()||o()},()=>t.onCancel());let l=document.createElement(`div`);l.className=`_lz`,l.append(i),c&&l.append(c.el),l.append(a),n.append(r,l),r.addEventListener(`focus`,()=>{let t=window.visualViewport;if(!t)return;let i=()=>e.reveal(n,!0);t.addEventListener(`resize`,i),r.addEventListener(`blur`,()=>t.removeEventListener(`resize`,i),{once:!0})});let u=(e=0)=>{if(!r.isConnected||!r.getClientRects().length){e<120&&requestAnimationFrame(()=>u(e+1));return}r.focus({preventScroll:!0})};return setTimeout(u,0),n}var xC=e=>`/api/workspaces/${e}/review`;async function SC(e){return(await x(xC(e))).comments||[]}function CC(e,t){return r(xC(e),{action:`comment`,...t})}function wC(e,t,n){return r(`${xC(e)}/${t}`,{text:n},`PATCH`)}async function TC(e,t){if(!t.some(e=>e.head))return null;try{return(await x(`/api/workspaces/${e}/diff`)).sections}catch{return null}}async function EC(e,t){t.length&&await r(xC(e),{action:`clear`,ids:t})}function DC(e,t,n){fetch(xC(e),{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({action:`seen`,heads:t,...n&&{dirty:n}}),keepalive:!0}).catch(()=>{})}var OC=`search-mark`,kC=`mark.${OC}`,AC=`mark.${OC}{display:inline;background:#ffd24a;color:#1a1408;-webkit-text-fill-color:#1a1408;border-radius:3px;padding:0 2px}mark.${OC} *,mark.${OC} *::before,mark.${OC} *::after{color:inherit!important;-webkit-text-fill-color:inherit!important;background:transparent!important}mark.${OC}.active{background:#ffb000;box-shadow:0 0 0 1px #c98400}`,jC={query:``,hit:null,keys:null},MC=new Map,NC=new WeakMap,PC=(e,t)=>t?`${e}\n${t.line}\n${t.side||``}`:e;function FC(e,t,n){jC.query=e,jC.hit=t,jC.keys=n?new Set(n):null;for(let[e,t]of MC)BC(e,t,!1);t&&IC(t)}function IC(e,t=0){requestAnimationFrame(()=>{requestAnimationFrame(()=>{let n=!1;for(let[r,i]of MC)if(i===e.key&&(n=!0,zC(r,e)||t>=40))return;t>=40||(!n||t<12)&&setTimeout(()=>IC(e,t+1),n?32:48)})})}function LC(e,t){if(e.scrollWidth<=e.clientWidth+1)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=Math.min(24,n.width/8);if(r.left>=n.left+i&&r.right<=n.right-i)return;let a=r.left-n.left+e.scrollLeft-(n.width/2-r.width/2),o=Math.max(0,e.scrollWidth-e.clientWidth);e.scrollTo({left:Math.max(0,Math.min(a,o))})}function RC(e,t){let n=t.parentElement,r=e;for(;r&&r!==n;){if(r instanceof HTMLElement&&r.scrollWidth>r.clientWidth+1){let e=getComputedStyle(r).overflowX;if(e===`auto`||e===`scroll`)return r}let e=r.getRootNode(),t=r.parentElement??(e instanceof ShadowRoot?e.host:null);if(t===r)break;r=t}return null}function zC(e,t){let n=e.shadowRoot??e.querySelector(`diffs-container`)?.shadowRoot;if(!n)return!1;let r=n.querySelector(`mark.search-mark.active`)??(()=>{if(t.line<1)return null;let e=[...n.querySelectorAll(`[data-line="${t.line}"]`)],r=t.side||`additions`;return e.find(e=>WC(e)===r)??e[0]??null})();if(!r)return!1;let i=r.getBoundingClientRect();if(i.height===0&&i.width===0)return!1;let a=RC(r,e);return a&&LC(a,r),!0}function BC(e,t,n=!0){let r=t&&jC.hit?.key===t?jC.hit:null,i=jC.query.trim(),a=!!i&&!!jC.keys&&!!t&&!jC.keys.has(t),o=a?``:PC(i,r),s=NC.get(e)!==o;(n||s)&&(NC.set(e,o),XC(e,a?``:i,r),n||VS(e),r&&s&&IC(r))}function VC(e,t){return MC.set(e,t),BC(e,t),()=>{MC.delete(e),NC.delete(e)}}function HC(e){BC(e,MC.get(e))}function UC(e){let t=e.querySelectorAll(kC);if(!t.length)return;let n=new Set;for(let e of[...t])e.parentElement&&n.add(e.parentElement),e.replaceWith(...e.childNodes);for(let e of n)e.normalize()}function WC(e){let t=e.closest(`[data-code]`);return t?.hasAttribute(`data-deletions`)?`deletions`:t?.hasAttribute(`data-additions`)?`additions`:(e.getAttribute(`data-line-type`)||``).includes(`deletion`)?`deletions`:`additions`}function GC(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];for(let e=t.nextNode();e;e=t.nextNode())e.parentElement?.closest(kC)||n.push(e);return n}function KC(e,t,n){let r=0;for(let i=0;i<e.length;i++){let a=t[i].length;if(n<=r+a)return{node:e[i],offset:Math.min(a,Math.max(0,n-r))};r+=a}let i=e.at(-1);return i?{node:i,offset:t.at(-1)?.length??0}:null}function qC(e,t,n,r,i){let a=KC(e,t,n),o=KC(e,t,r);if(!a||!o)return;let s=document.createRange();s.setStart(a.node,a.offset),s.setEnd(o.node,o.offset);let c=document.createElement(`mark`);c.className=i;try{c.append(s.extractContents()),s.insertNode(c)}catch{}}function JC(e,t,n,r){let i=GC(e);if(!i.length)return;let a=i.map(e=>e.textContent??``),o=a.join(``),s=n?o:o.toLowerCase(),c=[];for(let e=s.indexOf(t);e!==-1;e=s.indexOf(t,e+t.length))c.push([e,e+t.length]);if(!c.length)return;let l=ZC(e,r)?`${OC} active`:OC;for(let e=c.length-1;e>=0;e--)qC(i,a,c[e][0],c[e][1],l)}var YC=new WeakMap;function XC(e,t,n){let r=[e],i=e.shadowRoot??e.querySelector(`diffs-container`)?.shadowRoot;i&&r.push(i);let a=t.trim(),o=/[A-Z]/.test(a),s=a&&!o?a.toLowerCase():a;for(let e of r){if(!s){UC(e);continue}for(let t of e.querySelectorAll(`[data-code] [data-line]`)){let e=t.textContent||``,r=t.getAttribute(`data-line-type`)!==`context-expanded`&&(o?e:e.toLowerCase()).includes(s),i=r?`${o?`s`:`i`}${s}\n${t.getAttribute(`data-line`)}\n${+!!ZC(t,n)}`:``,a=!!t.querySelector(kC);i!==(a?YC.get(t):``)&&(a&&UC(t),YC.set(t,i),r&&JC(t,s,o,n))}}}function ZC(e,t){return!!t&&t.line===Number(e.getAttribute(`data-line`))&&(t.side||`additions`)===WC(e)}var QC={apng:`image/apng`,avif:`image/avif`,bmp:`image/bmp`,gif:`image/gif`,ico:`image/x-icon`,jpeg:`image/jpeg`,jpg:`image/jpeg`,png:`image/png`,svg:`image/svg+xml`,webp:`image/webp`,pdf:`application/pdf`};function $C(e){let t=e.lastIndexOf(`.`),n=QC[t<0?``:e.slice(t+1).toLowerCase()];return n?{kind:n===`application/pdf`?`pdf`:`image`,type:n}:null}function ew(e){let t=e.replace(/^origin\//,``);return tw(t.includes(`/`)?t.slice(t.lastIndexOf(`/`)+1):t)}function tw(e){return e.replace(/-[a-z0-9]{1,6}$/i,``)||e}function nw(e,t){if(!t)return``;let n=e.replace(/^origin\//,``),r=t.replace(/^origin\//,``);return n.startsWith(`${r}-`)?n.slice(r.length+1):``}function rw(e){let t=e.indexOf(`.`);return t<=0||t===e.length-1?null:{group:e.slice(0,t),name:e.slice(t+1)}}function iw(e){let t=tw(e);if(t.length<=20)return t;let n=t.split(`-`);return n.length>1?n[n.length-1]:t}function aw(e,t,n=``,r=``,i){let a=(e||`base`).replace(/^origin\//,``),o=(t||`HEAD`).replace(/^origin\//,``),s=(n||``).replace(/^origin\//,``),c=!!s&&(o===s||o.startsWith(`${s}-`)),l=c?r||ew(s):iw(o),u=c?i?.get(o)??nw(o,s):``,d=o===a?a:`${o} vs ${a}`;return{base:s&&a===s?r||ew(s):i?.get(a)||nw(a,s)||a,head:l,topic:u,onWs:c,title:d}}function ow(e,t=``,n=``,r){let i=aw(e.base,e.head,t,n,r),a=(e.base||`base`).replace(/^origin\//,``),o=(e.head||`HEAD`).replace(/^origin\//,``),s=t.replace(/^origin\//,``);if(!(i.topic||s&&o!==s||e.defaultBranch&&a!==e.defaultBranch))return null;let c=!!e.defaultBranch&&a===e.defaultBranch&&(!e.repoBase||e.repoBase===e.defaultBranch);return{head:i.onWs?``:i.head,topic:i.topic,base:c?``:i.base,title:i.title}}function sw(e,t=``,n=``){let r=e.replace(/^origin\//,``);if(!r||r===`HEAD`)return r||`HEAD`;let i=t.replace(/^origin\//,``);if(i&&(r===i||r.startsWith(`${i}-`))){let e=n||ew(i),t=nw(r,i);return t?`${e} [${t}]`:e}return iw(r)}var cw=`_hu _bp _m`,lw=`<h1> </h1><nav aria-label="Review views"><a title="Every file in the workspace">Files</a><a title="What changed">Diff</a></nav>`,uw=` D l D b l`;function dw(e){I(e.a,`_Q`),I(e.c,[`_bB`,`_kJ`])}var fw=(e,t)=>{z(e.b,t===`files`?`Files`:`Review`),I(e.d,[`_bD`,t===`files`&&`_bC`]),R(e.d,`aria-current`,t===`files`?`page`:void 0),I(e.e,[`_bD`,t===`changes`&&`_bC`]),R(e.e,`aria-current`,t===`changes`?`page`:void 0)},pw=(e,t)=>R(e.d,`href`,t),mw=(e,t)=>R(e.e,`href`,t);function hw(e){return`${e} uncommitted ${e===1?`file`:`files`} in its worktree`}function gw(e){let t=e.nextToLand?`, next to merge${e.stack?` (layer ${e.stack.index} of ${e.stack.size})`:``}`:``,n=e.edits?`; ${hw(e.edits)}`:``;if(e.pr)return`#${e.pr.number}: ${We(e.pr)} PR${t}${n}`;if(e.unpushed){let r=e.unpushed;return`${r} ${r===1?`commit`:`commits`} not pushed${t}${n}`}return e.ready?`Pushed: ready for review${t}${n}`:e.edits?`No commits yet; ${hw(e.edits)}`:null}var _w=`<!><!><!>`,vw=N(0,0,e=>{R(e.a,`aria-label`,hw(e._.d)),R(e.a,`title`,hw(e._.d))}),yw=M(0,(e=>`<span role=img>${e}</span>`)(De),(e=>` D/${e}&l`)(Oe),e=>{vw._(e),I(e.a,`_mX`),Me(e.b),Ae(e.b,12),ke(e.b)}),bw=P(3,e=>{yw(e,+!e.d),vw(e)}),xw=d,Sw=(e=>`/${e}&`)(t);function Cw(t){e(t.a,y)}var ww=(e,t)=>D(e.a,t),Tw=(e,t)=>u(e.a,t),Ew=(e=>` D%b%b%b/${e}&l`)(`b%c`),Dw=(e=>`<button type=button><!><!><!>${e}</button>`)(_w),Ow=(e=>` D%b D l%b/${e}&l`)(`b%c`),kw=(e=>`<button type=button><!><span> </span><!>${e}</button>`)(_w),Aw=`<div><!><div role=group aria-label=Sections><button type=button data-pick>All</button><!></div><!><div popover=auto role=dialog title></div></div>`,jw=` D%b D b%l%b l`,Mw=200,Nw=250;function Pw(e,t){return t&&e.startsWith(`${t}.`)?e.slice(t.length+1):e}function Fw(e){let t=[];for(let n of e){let e=n.repo.stack?.bottom??n.id,r=t.at(-1);r?.stack&&n.repo.stack&&r.root===e?r.sections.push(n):t.push({root:e,stack:!!n.repo.stack,sections:[n]})}return t}function Iw(e,t){let n=[],r=new Map;for(let i of e){let e=i.sections.at(-1).group;if(!e||t&&i.sections.includes(t)){n.push({kind:`run`,key:i.root,run:i});continue}let a=r.get(e);if(a){a.runs.push(i),a.sections.push(...i.sections);continue}let o={kind:`group`,key:`group:${e}`,name:e,runs:[i],sections:[...i.sections]};r.set(e,o),n.push(o)}return n}var Lw=V(19,e=>I(e.a,[f[We(e._._.n)],`_mQ`]),e=>e._._,`R19`),Rw=e=>{Lw(e),zw(e)},zw=V(20,e=>z(e.b,e._._.o),e=>e._._,`R20`),Bw=V(19,e=>z(e.a,e._._.i),e=>e._._,`R23`),Vw=Bw,Hw=e=>{I(e.a,[`_mv`,`_mw`]),z(e.b,e._._.M)},Uw=N(1,0,e=>z(e.b,e._.r)),Ww=e=>{Uw._(e),I(e.a,`_mM`)},Gw=N(4,0,e=>I(e.a,[f[We(e._.n)],`_mQ`])),Kw=e=>{Gw._(e),qw._(e)},qw=N(4,0,e=>z(e.b,e._.o)),Jw=V(34,e=>z(e.b,e._._.a2),e=>e._._,`R10`),Yw=e=>{Jw(e),I(e.a,`_mJ`)},Xw=N(3,0,e=>I(e.a,[f[We(e._.s)],`_mQ`])),Zw=e=>{Xw._(e),Qw._(e)},Qw=N(3,0,e=>z(e.b,e._.t)),$w=N(2,1,e=>z(e.b,e._.w)),eT=e=>{$w._(e),I(e.a,`_mP`)},tT=N(2,0,e=>z(e.b,e._.o)),nT=e=>{tT._(e),iT._(e)},rT=M(0,`<span><!>/</span>`,` D%`,Yw),iT=N(2,0,e=>rT(e,+!e._.a2)),aT=N(1,0,e=>z(e.b,e._.m)),oT=e=>{aT._(e),I(e.a,`_mw`)},sT=F(1,e=>WO(e.a,e._.o===e._._._.k)),cT=V(18,sT,e=>e._._._,`R32`),lT=e=>{cT(e),uT._(e),AO._(e.a,e._._._._),NO(e.a,!0),ZO(e.a)},uT=N(0,2,e=>{YO(e.a,e._.o),sT(e)}),dT=F(3,e=>bO(e.a,e._._._.a1(e.c,e._._._.ah)),2),fT=V(56,dT,e=>e._._._),pT=e=>{fT(e),mT(e),pO._(e.a,e._._._),gO(e.a)},mT=V(62,dT,e=>e._._._,`R47`),hT=P(2,e=>{wO(e.a,e.c),dT(e)}),gT=(e,t)=>yO(e.a,t+1),_T=(e,t)=>{hT(e,t[0]),gT(e,t[1])},vT=F(4,e=>z(e.c,e._._.a2(e._._.af,e._._.ah)??e._._.ai),3),yT=V(57,vT,e=>e._._),bT=e=>{yT(e),xT(e),ST(e),CT(e),TT(e),I(e.a,`_mG`),I(e.b,`_mH`)},xT=V(61,vT,e=>e._._,`R48`),ST=V(62,vT,e=>e._._,`R49`),CT=V(63,vT,e=>e._._,`R50`),wT=fe(3,(e=>`<!>${e}<!>`)(kw),(e=>`b/${e}&b`)(Ow),pT,_T),TT=V(66,e=>wT(e,[e._._.aq,`id`]),e=>e._._,`R51`),ET=F(1,e=>bO(e.a,Pw(e._._._._.a1(e._.f,e._._._._.ah),e._._._._.ae)),3),DT=V(56,ET,e=>e._._._._),OT=e=>{DT(e),kT(e),AT(e),jT._(e),pO._(e.a,e._._._._),yO(e.a),gO(e.a)},kT=V(60,ET,e=>e._._._._,`R42`),AT=V(62,ET,e=>e._._._._,`R43`),jT=N(0,1,e=>{wO(e.a,e._.f),ET(e)}),MT=F(3,e=>bO(e.a,Pw(e._._._._._.a1(e.c,e._._._._._.ah),e._._._._._.ae)),3),NT=V(56,MT,e=>e._._._._._),PT=e=>{NT(e),FT(e),IT(e),pO._(e.a,e._._._._._),gO(e.a,!0)},FT=V(60,MT,e=>e._._._._._,`R37`),IT=V(62,MT,e=>e._._._._._,`R38`),LT=P(2,e=>{wO(e.a,e.c),MT(e)}),RT=(e,t)=>yO(e.a,t+1),zT=(e,t)=>{LT(e,t[0]),RT(e,t[1])},BT=F(4,e=>z(e.c,Pw(e._._._._.a2(e._.c,e._._._._.ah)??e._._._._.ai,e._._._._.ae)),4),VT=V(57,BT,e=>e._._._._),HT=e=>{VT(e),UT(e),WT(e),GT(e),KT._(e),JT._(e),I(e.a,`_mI`),Cw(e.b),ww(e.b,12),Tw(e.b)},UT=V(60,BT,e=>e._._._._,`R39`),WT=V(62,BT,e=>e._._._._,`R40`),GT=V(63,BT,e=>e._._._._,`R41`),KT=N(0,0,BT),qT=fe(3,(e=>`<!>${e}<!>`)(kw),(e=>`b/${e}&b`)(Ow),PT,zT),JT=N(0,0,e=>qT(e,[e._.e,`id`])),YT=M(0,(e=>`<span>${e} </span><!><!>`)(xw),(e=>` D/${e}& l%c`)(Sw),HT,(e=>`<!>${e}<!>`)(kw),(e=>`b/${e}&b`)(Ow),OT),XT=(e,t)=>YT(e,+!t),ZT=(e,t)=>QT(e,t[0]),QT=P(2,e=>{XT(e,e.c?.stack),$T(e,e.c?.sections),KT(e)}),$T=P(4,e=>{eE(e,e.e?.[0]),JT(e)}),eE=P(5,jT),tE=V(60,e=>z(e.c,e._._.ae),e=>e._._,`R44`),nE=e=>{tE(e),rE(e),aE(e),I(e.a,`_mG`),I(e.b,`_mH`)},rE=V(64,e=>{z(e.d,e._._.ao),z(e.e,e._._.ao===1?`branch`:`branches`)},e=>e._._,`R45`),iE=fe(5,`<!><!><!>`,`b%`,0,ZT),aE=V(65,e=>iE(e,[e._._.ap,`root`]),e=>e._._,`R46`),oE=M(0,`<span><span> </span><!> <!></span><!><!>`,` D D l%c%l%`,nE,`<span><span> </span> merges top to bottom</span><!><!>`,` D D m%`,bT),sE=N(6,0,e=>oE(e,e._.ad===`group`?0:1)),cE=sE,lE=F(6,e=>z(e.d,Pw(e._._._._._.a1(e._.h,e._._._._.k),e._._.i)),3),uE=V(56,lE,e=>e._._._._._),dE=e=>{uE(e),fE(e),mE(e),hE._(e),_E._(e),vE._(e),I(e.a,`_mJ`)},fE=V(18,lE,e=>e._._._._,`R21`),pE=F(5,e=>z(e.c,e._.r?`${Pw(e._.r,e._._.i)}/`:``)),mE=V(19,e=>{z(e.b,e._._.i),pE(e),lE(e)},e=>e._._,`R22`),hE=N(1,0,lE),gE=M(4,`<span>#<!></span>`,` Db%`,Rw),_E=N(1,0,e=>gE(e,+!e._.n)),vE=N(1,0,pE),yE=j(`R36`,e=>A(e.a,`click`,function(){e._.x(1)})),bE=e=>{I(e.a,[`_mn`,`_mp`]),Re(e.b),je(e.b,12),Ee(e.b),yE(e)},xE=j(`R17`,e=>A(e.a,`click`,function(){e._.x(-1)})),SE=e=>{I(e.a,[`_mn`,`_mo`]),Re(e.b),je(e.b,12),Ee(e.b,`_mq`),xE(e)},CE=F(14,e=>I(e.a,[`_my`,{_mz:e.n===e._._._._.k}])),wE=V(53,CE,e=>e._._._._,`R29`),TE=j(`R28`,e=>{A(e.c,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n.closest(`[data-stack]`)??n)}),A(e.c,`mouseleave`,function(){e._._._._.ak()}),A(e.c,`pointerdown`,function(){e._._._._.al()}),A(e.c,`click`,function(t,n){e._._._._.am(e._.M,n.closest(`[data-stack]`)??n)}),A(e.c,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),Dk(e._._._._,null),e._._._._.am(e._.M,n.closest(`[data-stack]`)??n))})}),EE=e=>{wE(e),jE(e),FE(e),IE(e),RE._(e),zE._(e),AO._(e.b,e._._._._),NO(e.b,!0),R(e.c,`data-pop`,e._.M),Cw(e.d),ww(e.d,12),Tw(e.d),TE(e)},DE=F(12,e=>WO(e.b,e.l===e._._._.k)),OE=F(18,e=>ZO(e.b,e.l===e.j.at(-1)?void 0:e.p),2),kE=P(11,e=>{YO(e.b,e.l),UE(e,e.l?.id),DE(e),OE(e)}),AE=F(6,e=>kE(e,e._._._._.a0(e.f))),jE=V(55,AE,e=>e._._._._,`R30`),ME=F(16,e=>{R(e.c,`title`,`${e.p??e._._._.M} stack of ${e.k}: every layer, in the order they merge`),R(e.c,`aria-label`,`${e.p??e._._._.M} stack: ${e.k} layers`)}),NE=P(15,e=>{OE(e),ME(e)}),PE=F(7,e=>NE(e,e._._._._.a2(e.f,e._._._.k)),2),FE=V(57,PE,e=>e._._._._),IE=V(18,e=>{PE(e),DE(e)},e=>e._._._,`R31`),LE=P(5,e=>{BE(e,e.f?.root),VE(e,e.f?.sections),AE(e),PE(e)}),RE=N(0,1,e=>LE(e,e._.k)),zE=N(0,1,e=>{I(e.c,[`_mA`,{_mB:e._.p}]),R(e.c,`aria-expanded`,e._.p?`true`:`false`)}),BE=(e,t)=>R(e.a,`data-stack`,t),VE=P(9,e=>{HE(e,e.j?.length),OE(e)}),HE=P(10,e=>{z(e.e,e.k),ME(e)}),UE=P(13,CE),WE=F(9,e=>I(e.a,[`_ms`,`_mx`,`_mC`,{_mO:!!e.h?.repo.unpushed,_mr:!!e.h&&e.h?.id===e._._._._.k,_mD:e._.p}]),2),GE=V(53,WE,e=>e._._._._,`R25`),KE=j(`R24`,e=>{A(e.a,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n)}),A(e.a,`mouseleave`,function(){e._._._._.ak()}),A(e.a,`pointerdown`,function(){e._._._._.al()}),A(e.a,`click`,function(t,n){e._._._._.am(e._.M,n)}),A(e.a,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),Dk(e._._._._,null),e._._._._.am(e._.M,n))})}),qE=e=>{GE(e),nD(e),rD(e),iD(e),aD._(e),oD._(e),cD._(e),lD._(e),uD._(e),R(e.a,`data-pop`,e._.M),I(e.c,`_mE`),Ve(e.d),ze(e.d,12),Ue(e.d),KE(e)},JE=M(1,`<span><span><!>.<!></span> </span><!><!>`,`D D%c%l l%`,dE,`<span> </span>`,`D `,Vw),YE=P(17,vE),XE=F(16,e=>YE(e,e.p?.stack&&e.h!==(e.p?.sections).at(-1)?e._._._._.a2(e.p,e._._._.k):void 0),3),ZE=P(15,XE),QE=F(8,e=>ZE(e,e.h&&e._.h.find(t=>t.sections.includes(e.h)))),$E=F(10,e=>R(e.a,`title`,`${e._.i}: ${e._.j} ${e._.j===1?`branch`:`branches`}${e.h?`\n${gw(e.h?.repo)??``}`:``}`),2),eD=P(7,e=>{fD(e,e.h?.repo?.pr),mD(e,e.h?.id),JE(e,+!e.h),QE(e),XE(e),WE(e),$E(e),hE(e)}),tD=F(5,e=>eD(e,e._._._._.z(e._.g))),nD=V(54,tD,e=>e._._._._,`R26`),rD=V(57,XE,e=>e._._._._),iD=V(18,XE,e=>e._._._,`R27`),aD=N(0,0,tD),oD=N(0,0,QE),sD=F(6,e=>R(e.a,`aria-label`,`${e._.i} group: ${e._.j} branches`)),cD=N(0,0,e=>{$E(e),sD(e)}),lD=N(0,0,e=>{z(e.e,e._.j),$E(e),sD(e)}),uD=N(0,0,e=>{R(e.a,`aria-expanded`,e._.p?`true`:`false`),WE(e)}),dD=L(Lw),fD=P(13,e=>{pD(e,e.n?.number),_E(e),dD(e)}),pD=P(14,L(zw)),mD=(e,t)=>R(e.a,`data-pick`,t),hD=P(15,e=>{uD(e),zE(e)}),gD=V(58,e=>hD(e,e._._._.a5===e.M),e=>e._._._,`R33`),_D=gD,vD=M(0,(e=>`<button type=button aria-haspopup=dialog><!><span>${e} </span></button>`)(Ie),(e=>` D%b D/${e}& m`)(Fe),qE,((e,t)=>`<span>${e}<button type=button aria-haspopup=dialog>${t} </button></span>`)(Dw,xw),((e,t)=>` D/${e}& D/${t}& m`)(Ew,Sw),EE,(e=>`<!>${e}<!>`)(Dw),(e=>`b/${e}&b`)(Ew),lT),yD=F(12,e=>vD(e,e.f===`group`?0:e.l?1:2)),bD=P(5,yD),xD=P(11,yD),SD=(e,t)=>{bD(e,t[0]?.kind),CD(e,t[0]?.sections),TD(e,t[0]?.runs),DD(e,t[0]?.name),OD(e,t[0]?.run)},CD=P(6,e=>{wD(e,e.g?.length),aD(e)}),wD=P(9,lD),TD=P(7,oD),ED=L(mE,Bw),DD=P(8,e=>{cD(e),ED(e)}),OD=P(10,e=>{xD(e,e.k?.stack),kD(e,e.k?.sections?.[0]),RE(e)}),kD=P(14,uT),AD=F(3,e=>I(e.a,[`_mt`,{_mu:e._.d.some(t=>t.id===e._._.k)}])),jD=V(53,AD,e=>e._._,`R34`),MD=e=>{jD(e),LD(e),RD._(e),zD._(e),VD._(e),UD._(e),WD._(e)},ND=M(1,`<span> </span>`,` D `,Hw),PD=F(10,e=>ND(e,!e._.k||e.j!==e._.k?0:1)),FD=P(9,PD),ID=F(8,e=>FD(e,e.g===`run`?e.h.stack?e._._.a0(e.h):e.h.sections[0]:void 0),2),LD=V(55,ID,e=>e._._,`R35`),RD=N(0,1,AD),zD=N(0,1,e=>R(e.a,`aria-label`,`${e._.M}: ${e._.e} sections`)),BD=fe(2,`<!><!><!>`,`b%`,_D,SD),VD=N(0,1,e=>BD(e,[e._.i,`key`])),HD=(e,t)=>{GD(e,t?.kind),KD(e,t?.run)},UD=N(0,1,e=>HD(e,e._.j)),WD=N(0,1,PD),GD=P(6,ID),KD=P(7,ID),qD=F(2,e=>I(e.a,[`_mt`,{_mu:e._.g===e._._.k}])),JD=V(53,qD,e=>e._._,`R18`),YD=e=>{JD(e),XD._(e),ZD._(e),AO._(e.b,e._._),WO(e.b,!0),NO(e.b,!0),ZO(e.b)},XD=N(0,0,e=>YO(e.b,e._.f)),ZD=N(0,0,qD),QD=M(0,(e=>`<span>${e}</span>`)(Dw),(e=>` D/${e}&l`)(Ew),YD,`<span role=group><!><!></span>`,` D%b%`,MD),$D=P(4,e=>{QD(e,e.e===1?0:1),zD(e)}),eO=(e,t)=>{tO(e,t[0]?.sections),iO(e,t[0]?.items),sO(e,t[0]?.main)},tO=P(3,e=>{$D(e,e.d?.length),nO(e,e.d?.[0]),RD(e)}),nO=P(5,e=>{rO(e,e.f?.id),XD(e)}),rO=P(6,ZD),iO=P(8,e=>{aO(e,e.i?.[0]),VD(e)}),aO=P(9,UD),oO=L(iD,IE,fE,cT),sO=P(10,e=>{WD(e),oO(e)}),cO=F(20,e=>I(e.a,[`_mK`,{_mL:e.s,_mO:!!e.m,_mr:e.t}]),2),lO=P(19,e=>{R(e.a,`aria-current`,e.t?`true`:void 0),cO(e)}),uO=F(10,e=>lO(e,e._.k===e.j)),dO=V(53,uO,0,`R16`),fO=j(`R15`,e=>A(e.a,`click`,function(){e._.l(e.j),e._.g.hidePopover()})),pO=he(e=>{dO(e),I(e.c,`_mN`),fO(e)}),mO=P(9,uO),hO=P(12,cO),gO=P(18,cO),_O=(e,t)=>{R(e.a,`title`,[gw(t),t?.pr?.title].filter(Boolean).join(`
|
|
323
|
+
`)}var oC=`_lD _cg _bw`,sC=`_lF _4`;function cC(e){if(e.length<=1)return null;let t=document.createElement(`select`);t.setAttribute(`aria-label`,`Send to session`),t.className=`_lL`;for(let n of e){let e=document.createElement(`option`);e.value=n.id,e.textContent=Pe(n),t.append(e)}return t}var lC=(e,t)=>t.find(t=>t.id===e?.value)?.id??t[0]?.id??null;function uC(e){return e.map(e=>`${e.id}\t${Pe(e)}`).join(`
|
|
324
|
+
`)}var dC=new WeakMap;function fC(e){dC.get(e)?.()}function pC(e,t,n,r){let i={el:mC(),busy:!1,stale:!1},a=()=>{},o=()=>{if(i.busy){i.stale=!0;return}let s=e.sessions(),c;if(!s.length)c=mC(),a=()=>{};else{let l=gC(`Send`,``);l.dataset.role=`send`;let u=cC(s),d=u?`Send to`:`Send`;l.onclick=()=>{(async()=>{let t=lC(u,e.sessions());if(t&&!l.disabled){i.busy=!0,hC([...n,l],!0,d);try{await r(t)}finally{i.busy=!1,hC([...n,l],!1,d),i.stale&&(i.stale=!1,o())}}})()},a=()=>l.click(),c=_C(l,u,s,t)}i.el.replaceWith(c),i.el=c};return o(),{get el(){return i.el},draw:o,send:()=>e.sessions().length?(a(),!0):!1}}function mC(){let e=document.createElement(`span`);return e.hidden=!0,e}function hC(e,t,n){for(let r of e)r.disabled=t,n&&r.dataset.role===`send`&&(r.textContent=t?`Sending…`:n)}function gC(e,t){let n=document.createElement(`button`);return n.type=`button`,n.textContent=e,n.className=t,n}function _C(e,t,n,r){if(!t){e.className=`_r ${r?h:``} _s`,e.textContent=`Send`;let t=n[0];return t&&(e.title=`Send to ${Pe(t)}`),e}let i=document.createElement(`span`);return i.className=`_lJ ${r?`_lm`:``}`,e.className=`_s _lK`,e.textContent=`Send to`,i.append(e,t),i}function vC(e,t,n){e.onkeydown=e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),t()),e.key===`Escape`&&(e.preventDefault(),n())}}function yC(e,t,r){let i=document.createElement(`div`);i.className=`_li`;let a=document.createElement(`div`),o=document.createElement(`div`);o.className=`_ll`;let s=null;dC.set(i,()=>s?.());let c=()=>{a.replaceChildren(),o.replaceChildren();let i=document.createElement(`p`);i.className=`_lj`,i.textContent=e.text;let c=gC(`Remove`,`_r ${h}`);c.onclick=()=>r.onDelete(e.id);let u=gC(`Edit`,`_r ${h}`);u.hidden=!r.onEdit,u.onclick=()=>l(),o.append(u,c);let d=r.onSend;if(d){let n=pC(t,!0,[c,u],t=>d(e.id,t));o.append(n.el),s=n.draw}if(r.drifted){let e=document.createElement(`span`);e.className=`_9 ${n.warn} _ln`,e.textContent=`changed since`,e.title=`These lines changed since the comment; the agent gets them as they were`,o.append(e)}a.append(i)},l=()=>{s=null,a.replaceChildren(),o.replaceChildren();let t=document.createElement(`textarea`);t.value=e.text,t.rows=3,t.className=`_bj _lk`;let n=gC(`Save`,`_r _s`),i=gC(`Cancel`,`_r`),l=()=>{let a=t.value.trim();if(!a||a===e.text){c();return}(async()=>{hC([n,i],!0);try{await r.onEdit?.(e.id,a),e.text=a,c()}catch{hC([n,i],!1)}})()};n.onclick=l,i.onclick=()=>c(),vC(t,l,c),o.append(n,i),a.append(t),setTimeout(()=>{t.focus({preventScroll:!0}),t.setSelectionRange(t.value.length,t.value.length)},0)};return c(),i.append(a,o),i}function bC(e,t){let n=document.createElement(`div`);n.className=`_li`;let r=document.createElement(`textarea`);r.placeholder=`Add a comment…`,r.rows=3,r.className=`_bj _lk`;let i=gC(`Add`,`_r`),a=gC(`Cancel`,`_r`),o=()=>{r.value.trim()&&t.onSave(r.value)},s=t.onSend,c=s?pC(e,!1,[i,a],e=>{let t=r.value.trim();if(t)return s(t,e)}):null;c&&dC.set(n,c.draw),i.onclick=o,a.onclick=()=>t.onCancel(),vC(r,()=>{c?.send()||o()},()=>t.onCancel());let l=document.createElement(`div`);l.className=`_ll`,l.append(i),c&&l.append(c.el),l.append(a),n.append(r,l),r.addEventListener(`focus`,()=>{let t=window.visualViewport;if(!t)return;let i=()=>e.reveal(n,!0);t.addEventListener(`resize`,i),r.addEventListener(`blur`,()=>t.removeEventListener(`resize`,i),{once:!0})});let u=(e=0)=>{if(!r.isConnected||!r.getClientRects().length){e<120&&requestAnimationFrame(()=>u(e+1));return}r.focus({preventScroll:!0})};return setTimeout(u,0),n}var xC=e=>`/api/workspaces/${e}/review`;async function SC(e){return(await x(xC(e))).comments||[]}function CC(e,t){return r(xC(e),{action:`comment`,...t})}function wC(e,t,n){return r(`${xC(e)}/${t}`,{text:n},`PATCH`)}async function TC(e,t){if(!t.some(e=>e.head))return null;try{return(await x(`/api/workspaces/${e}/diff`)).sections}catch{return null}}async function EC(e,t){t.length&&await r(xC(e),{action:`clear`,ids:t})}function DC(e,t,n){fetch(xC(e),{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({action:`seen`,heads:t,...n&&{dirty:n}}),keepalive:!0}).catch(()=>{})}var OC=`search-mark`,kC=`mark.${OC}`,AC=`mark.${OC}{display:inline;background:#ffd24a;color:#1a1408;-webkit-text-fill-color:#1a1408;border-radius:3px;padding:0 2px}mark.${OC} *,mark.${OC} *::before,mark.${OC} *::after{color:inherit!important;-webkit-text-fill-color:inherit!important;background:transparent!important}mark.${OC}.active{background:#ffb000;box-shadow:0 0 0 1px #c98400}`,jC={query:``,hit:null,keys:null},MC=new Map,NC=new WeakMap,PC=(e,t)=>t?`${e}\n${t.line}\n${t.side||``}`:e;function FC(e,t,n){jC.query=e,jC.hit=t,jC.keys=n?new Set(n):null;for(let[e,t]of MC)BC(e,t,!1);t&&IC(t)}function IC(e,t=0){requestAnimationFrame(()=>{requestAnimationFrame(()=>{let n=!1;for(let[r,i]of MC)if(i===e.key&&(n=!0,zC(r,e)||t>=40))return;t>=40||(!n||t<12)&&setTimeout(()=>IC(e,t+1),n?32:48)})})}function LC(e,t){if(e.scrollWidth<=e.clientWidth+1)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=Math.min(24,n.width/8);if(r.left>=n.left+i&&r.right<=n.right-i)return;let a=r.left-n.left+e.scrollLeft-(n.width/2-r.width/2),o=Math.max(0,e.scrollWidth-e.clientWidth);e.scrollTo({left:Math.max(0,Math.min(a,o))})}function RC(e,t){let n=t.parentElement,r=e;for(;r&&r!==n;){if(r instanceof HTMLElement&&r.scrollWidth>r.clientWidth+1){let e=getComputedStyle(r).overflowX;if(e===`auto`||e===`scroll`)return r}let e=r.getRootNode(),t=r.parentElement??(e instanceof ShadowRoot?e.host:null);if(t===r)break;r=t}return null}function zC(e,t){let n=e.shadowRoot??e.querySelector(`diffs-container`)?.shadowRoot;if(!n)return!1;let r=n.querySelector(`mark.search-mark.active`)??(()=>{if(t.line<1)return null;let e=[...n.querySelectorAll(`[data-line="${t.line}"]`)],r=t.side||`additions`;return e.find(e=>WC(e)===r)??e[0]??null})();if(!r)return!1;let i=r.getBoundingClientRect();if(i.height===0&&i.width===0)return!1;let a=RC(r,e);return a&&LC(a,r),!0}function BC(e,t,n=!0){let r=t&&jC.hit?.key===t?jC.hit:null,i=jC.query.trim(),a=!!i&&!!jC.keys&&!!t&&!jC.keys.has(t),o=a?``:PC(i,r),s=NC.get(e)!==o;(n||s)&&(NC.set(e,o),XC(e,a?``:i,r),n||VS(e),r&&s&&IC(r))}function VC(e,t){return MC.set(e,t),BC(e,t),()=>{MC.delete(e),NC.delete(e)}}function HC(e){BC(e,MC.get(e))}function UC(e){let t=e.querySelectorAll(kC);if(!t.length)return;let n=new Set;for(let e of[...t])e.parentElement&&n.add(e.parentElement),e.replaceWith(...e.childNodes);for(let e of n)e.normalize()}function WC(e){let t=e.closest(`[data-code]`);return t?.hasAttribute(`data-deletions`)?`deletions`:t?.hasAttribute(`data-additions`)?`additions`:(e.getAttribute(`data-line-type`)||``).includes(`deletion`)?`deletions`:`additions`}function GC(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=[];for(let e=t.nextNode();e;e=t.nextNode())e.parentElement?.closest(kC)||n.push(e);return n}function KC(e,t,n){let r=0;for(let i=0;i<e.length;i++){let a=t[i].length;if(n<=r+a)return{node:e[i],offset:Math.min(a,Math.max(0,n-r))};r+=a}let i=e.at(-1);return i?{node:i,offset:t.at(-1)?.length??0}:null}function qC(e,t,n,r,i){let a=KC(e,t,n),o=KC(e,t,r);if(!a||!o)return;let s=document.createRange();s.setStart(a.node,a.offset),s.setEnd(o.node,o.offset);let c=document.createElement(`mark`);c.className=i;try{c.append(s.extractContents()),s.insertNode(c)}catch{}}function JC(e,t,n,r){let i=GC(e);if(!i.length)return;let a=i.map(e=>e.textContent??``),o=a.join(``),s=n?o:o.toLowerCase(),c=[];for(let e=s.indexOf(t);e!==-1;e=s.indexOf(t,e+t.length))c.push([e,e+t.length]);if(!c.length)return;let l=ZC(e,r)?`${OC} active`:OC;for(let e=c.length-1;e>=0;e--)qC(i,a,c[e][0],c[e][1],l)}var YC=new WeakMap;function XC(e,t,n){let r=[e],i=e.shadowRoot??e.querySelector(`diffs-container`)?.shadowRoot;i&&r.push(i);let a=t.trim(),o=/[A-Z]/.test(a),s=a&&!o?a.toLowerCase():a;for(let e of r){if(!s){UC(e);continue}for(let t of e.querySelectorAll(`[data-code] [data-line]`)){let e=t.textContent||``,r=t.getAttribute(`data-line-type`)!==`context-expanded`&&(o?e:e.toLowerCase()).includes(s),i=r?`${o?`s`:`i`}${s}\n${t.getAttribute(`data-line`)}\n${+!!ZC(t,n)}`:``,a=!!t.querySelector(kC);i!==(a?YC.get(t):``)&&(a&&UC(t),YC.set(t,i),r&&JC(t,s,o,n))}}}function ZC(e,t){return!!t&&t.line===Number(e.getAttribute(`data-line`))&&(t.side||`additions`)===WC(e)}var QC={apng:`image/apng`,avif:`image/avif`,bmp:`image/bmp`,gif:`image/gif`,ico:`image/x-icon`,jpeg:`image/jpeg`,jpg:`image/jpeg`,png:`image/png`,svg:`image/svg+xml`,webp:`image/webp`,pdf:`application/pdf`};function $C(e){let t=e.lastIndexOf(`.`),n=QC[t<0?``:e.slice(t+1).toLowerCase()];return n?{kind:n===`application/pdf`?`pdf`:`image`,type:n}:null}function ew(e){let t=e.replace(/^origin\//,``);return tw(t.includes(`/`)?t.slice(t.lastIndexOf(`/`)+1):t)}function tw(e){return e.replace(/-[a-z0-9]{1,6}$/i,``)||e}function nw(e,t){if(!t)return``;let n=e.replace(/^origin\//,``),r=t.replace(/^origin\//,``);return n.startsWith(`${r}-`)?n.slice(r.length+1):``}function rw(e){let t=e.indexOf(`.`);return t<=0||t===e.length-1?null:{group:e.slice(0,t),name:e.slice(t+1)}}function iw(e){let t=tw(e);if(t.length<=20)return t;let n=t.split(`-`);return n.length>1?n[n.length-1]:t}function aw(e,t,n=``,r=``,i){let a=(e||`base`).replace(/^origin\//,``),o=(t||`HEAD`).replace(/^origin\//,``),s=(n||``).replace(/^origin\//,``),c=!!s&&(o===s||o.startsWith(`${s}-`)),l=c?r||ew(s):iw(o),u=c?i?.get(o)??nw(o,s):``,d=o===a?a:`${o} vs ${a}`;return{base:s&&a===s?r||ew(s):i?.get(a)||nw(a,s)||a,head:l,topic:u,onWs:c,title:d}}function ow(e,t=``,n=``,r){let i=aw(e.base,e.head,t,n,r),a=(e.base||`base`).replace(/^origin\//,``),o=(e.head||`HEAD`).replace(/^origin\//,``),s=t.replace(/^origin\//,``);if(!(i.topic||s&&o!==s||e.defaultBranch&&a!==e.defaultBranch))return null;let c=!!e.defaultBranch&&a===e.defaultBranch&&(!e.repoBase||e.repoBase===e.defaultBranch);return{head:i.onWs?``:i.head,topic:i.topic,base:c?``:i.base,title:i.title}}function sw(e,t=``,n=``){let r=e.replace(/^origin\//,``);if(!r||r===`HEAD`)return r||`HEAD`;let i=t.replace(/^origin\//,``);if(i&&(r===i||r.startsWith(`${i}-`))){let e=n||ew(i),t=nw(r,i);return t?`${e} [${t}]`:e}return iw(r)}var cw=`_hZ _bp _m`,lw=`<h1> </h1><nav aria-label="Review views"><a title="Every file in the workspace">Files</a><a title="What changed">Diff</a></nav>`,uw=` D l D b l`;function dw(e){I(e.a,`_Q`),I(e.c,[`_bB`,`_kV`])}var fw=(e,t)=>{z(e.b,t===`files`?`Files`:`Review`),I(e.d,[`_bD`,t===`files`&&`_bC`]),R(e.d,`aria-current`,t===`files`?`page`:void 0),I(e.e,[`_bD`,t===`changes`&&`_bC`]),R(e.e,`aria-current`,t===`changes`?`page`:void 0)},pw=(e,t)=>R(e.d,`href`,t),mw=(e,t)=>R(e.e,`href`,t);function hw(e){return`${e} uncommitted ${e===1?`file`:`files`} in its worktree`}function gw(e){let t=e.nextToLand?`, next to merge${e.stack?` (layer ${e.stack.index} of ${e.stack.size})`:``}`:``,n=e.edits?`; ${hw(e.edits)}`:``;if(e.pr)return`#${e.pr.number}: ${We(e.pr)} PR${t}${n}`;if(e.unpushed){let r=e.unpushed;return`${r} ${r===1?`commit`:`commits`} not pushed${t}${n}`}return e.ready?`Pushed: ready for review${t}${n}`:e.edits?`No commits yet; ${hw(e.edits)}`:null}var _w=`<!><!><!>`,vw=N(0,0,e=>{R(e.a,`aria-label`,hw(e._.d)),R(e.a,`title`,hw(e._.d))}),yw=M(0,(e=>`<span role=img>${e}</span>`)(De),(e=>` D/${e}&l`)(Oe),e=>{vw._(e),I(e.a,`_mR`),Me(e.b),Ae(e.b,12),ke(e.b)}),bw=P(3,e=>{yw(e,+!e.d),vw(e)}),xw=d,Sw=(e=>`/${e}&`)(t);function Cw(t){e(t.a,y)}var ww=(e,t)=>D(e.a,t),Tw=(e,t)=>u(e.a,t),Ew=(e=>` D%b%b%b/${e}&l`)(`b%c`),Dw=(e=>`<button type=button><!><!><!>${e}</button>`)(_w),Ow=(e=>` D%b D l%b/${e}&l`)(`b%c`),kw=(e=>`<button type=button><!><span> </span><!>${e}</button>`)(_w),Aw=`<div><!><div role=group aria-label=Sections><button type=button data-pick>All</button><!></div><!><div popover=auto role=dialog title></div></div>`,jw=` D%b D b%l%b l`,Mw=200,Nw=250;function Pw(e,t){return t&&e.startsWith(`${t}.`)?e.slice(t.length+1):e}function Fw(e){let t=[];for(let n of e){let e=n.repo.stack?.bottom??n.id,r=t.at(-1);r?.stack&&n.repo.stack&&r.root===e?r.sections.push(n):t.push({root:e,stack:!!n.repo.stack,sections:[n]})}return t}function Iw(e,t){let n=[],r=new Map;for(let i of e){let e=i.sections.at(-1).group;if(!e||t&&i.sections.includes(t)){n.push({kind:`run`,key:i.root,run:i});continue}let a=r.get(e);if(a){a.runs.push(i),a.sections.push(...i.sections);continue}let o={kind:`group`,key:`group:${e}`,name:e,runs:[i],sections:[...i.sections]};r.set(e,o),n.push(o)}return n}var Lw=V(19,e=>I(e.a,[f[We(e._._.n)],`_mQ`]),e=>e._._,`R19`),Rw=e=>{Lw(e),zw(e)},zw=V(20,e=>z(e.b,e._._.o),e=>e._._,`R20`),Bw=V(19,e=>z(e.a,e._._.i),e=>e._._,`R23`),Vw=Bw,Hw=e=>{I(e.a,[`_mv`,`_mw`]),z(e.b,e._._.M)},Uw=N(1,0,e=>z(e.b,e._.r)),Ww=e=>{Uw._(e),I(e.a,`_mM`)},Gw=N(4,0,e=>I(e.a,[f[We(e._.n)],`_mQ`])),Kw=e=>{Gw._(e),qw._(e)},qw=N(4,0,e=>z(e.b,e._.o)),Jw=V(34,e=>z(e.b,e._._.a2),e=>e._._,`R10`),Yw=e=>{Jw(e),I(e.a,`_mJ`)},Xw=N(3,0,e=>I(e.a,[f[We(e._.s)],`_mQ`])),Zw=e=>{Xw._(e),Qw._(e)},Qw=N(3,0,e=>z(e.b,e._.t)),$w=N(2,1,e=>z(e.b,e._.w)),eT=e=>{$w._(e),I(e.a,`_mP`)},tT=N(2,0,e=>z(e.b,e._.o)),nT=e=>{tT._(e),iT._(e)},rT=M(0,`<span><!>/</span>`,` D%`,Yw),iT=N(2,0,e=>rT(e,+!e._.a2)),aT=N(1,0,e=>z(e.b,e._.m)),oT=e=>{aT._(e),I(e.a,`_mw`)},sT=F(1,e=>WO(e.a,e._.o===e._._._.k)),cT=V(18,sT,e=>e._._._,`R32`),lT=e=>{cT(e),uT._(e),AO._(e.a,e._._._._),NO(e.a,!0),ZO(e.a)},uT=N(0,2,e=>{YO(e.a,e._.o),sT(e)}),dT=F(3,e=>bO(e.a,e._._._.a1(e.c,e._._._.ah)),2),fT=V(56,dT,e=>e._._._),pT=e=>{fT(e),mT(e),pO._(e.a,e._._._),gO(e.a)},mT=V(62,dT,e=>e._._._,`R47`),hT=P(2,e=>{wO(e.a,e.c),dT(e)}),gT=(e,t)=>yO(e.a,t+1),_T=(e,t)=>{hT(e,t[0]),gT(e,t[1])},vT=F(4,e=>z(e.c,e._._.a2(e._._.af,e._._.ah)??e._._.ai),3),yT=V(57,vT,e=>e._._),bT=e=>{yT(e),xT(e),ST(e),CT(e),TT(e),I(e.a,`_mG`),I(e.b,`_mH`)},xT=V(61,vT,e=>e._._,`R48`),ST=V(62,vT,e=>e._._,`R49`),CT=V(63,vT,e=>e._._,`R50`),wT=fe(3,(e=>`<!>${e}<!>`)(kw),(e=>`b/${e}&b`)(Ow),pT,_T),TT=V(66,e=>wT(e,[e._._.aq,`id`]),e=>e._._,`R51`),ET=F(1,e=>bO(e.a,Pw(e._._._._.a1(e._.f,e._._._._.ah),e._._._._.ae)),3),DT=V(56,ET,e=>e._._._._),OT=e=>{DT(e),kT(e),AT(e),jT._(e),pO._(e.a,e._._._._),yO(e.a),gO(e.a)},kT=V(60,ET,e=>e._._._._,`R42`),AT=V(62,ET,e=>e._._._._,`R43`),jT=N(0,1,e=>{wO(e.a,e._.f),ET(e)}),MT=F(3,e=>bO(e.a,Pw(e._._._._._.a1(e.c,e._._._._._.ah),e._._._._._.ae)),3),NT=V(56,MT,e=>e._._._._._),PT=e=>{NT(e),FT(e),IT(e),pO._(e.a,e._._._._._),gO(e.a,!0)},FT=V(60,MT,e=>e._._._._._,`R37`),IT=V(62,MT,e=>e._._._._._,`R38`),LT=P(2,e=>{wO(e.a,e.c),MT(e)}),RT=(e,t)=>yO(e.a,t+1),zT=(e,t)=>{LT(e,t[0]),RT(e,t[1])},BT=F(4,e=>z(e.c,Pw(e._._._._.a2(e._.c,e._._._._.ah)??e._._._._.ai,e._._._._.ae)),4),VT=V(57,BT,e=>e._._._._),HT=e=>{VT(e),UT(e),WT(e),GT(e),KT._(e),JT._(e),I(e.a,`_mI`),Cw(e.b),ww(e.b,12),Tw(e.b)},UT=V(60,BT,e=>e._._._._,`R39`),WT=V(62,BT,e=>e._._._._,`R40`),GT=V(63,BT,e=>e._._._._,`R41`),KT=N(0,0,BT),qT=fe(3,(e=>`<!>${e}<!>`)(kw),(e=>`b/${e}&b`)(Ow),PT,zT),JT=N(0,0,e=>qT(e,[e._.e,`id`])),YT=M(0,(e=>`<span>${e} </span><!><!>`)(xw),(e=>` D/${e}& l%c`)(Sw),HT,(e=>`<!>${e}<!>`)(kw),(e=>`b/${e}&b`)(Ow),OT),XT=(e,t)=>YT(e,+!t),ZT=(e,t)=>QT(e,t[0]),QT=P(2,e=>{XT(e,e.c?.stack),$T(e,e.c?.sections),KT(e)}),$T=P(4,e=>{eE(e,e.e?.[0]),JT(e)}),eE=P(5,jT),tE=V(60,e=>z(e.c,e._._.ae),e=>e._._,`R44`),nE=e=>{tE(e),rE(e),aE(e),I(e.a,`_mG`),I(e.b,`_mH`)},rE=V(64,e=>{z(e.d,e._._.ao),z(e.e,e._._.ao===1?`branch`:`branches`)},e=>e._._,`R45`),iE=fe(5,`<!><!><!>`,`b%`,0,ZT),aE=V(65,e=>iE(e,[e._._.ap,`root`]),e=>e._._,`R46`),oE=M(0,`<span><span> </span><!> <!></span><!><!>`,` D D l%c%l%`,nE,`<span><span> </span> merges top to bottom</span><!><!>`,` D D m%`,bT),sE=N(6,0,e=>oE(e,e._.ad===`group`?0:1)),cE=sE,lE=F(6,e=>z(e.d,Pw(e._._._._._.a1(e._.h,e._._._._.k),e._._.i)),3),uE=V(56,lE,e=>e._._._._._),dE=e=>{uE(e),fE(e),mE(e),hE._(e),_E._(e),vE._(e),I(e.a,`_mJ`)},fE=V(18,lE,e=>e._._._._,`R21`),pE=F(5,e=>z(e.c,e._.r?`${Pw(e._.r,e._._.i)}/`:``)),mE=V(19,e=>{z(e.b,e._._.i),pE(e),lE(e)},e=>e._._,`R22`),hE=N(1,0,lE),gE=M(4,`<span>#<!></span>`,` Db%`,Rw),_E=N(1,0,e=>gE(e,+!e._.n)),vE=N(1,0,pE),yE=j(`R36`,e=>A(e.a,`click`,function(){e._.x(1)})),bE=e=>{I(e.a,[`_mn`,`_mp`]),Re(e.b),je(e.b,12),Ee(e.b),yE(e)},xE=j(`R17`,e=>A(e.a,`click`,function(){e._.x(-1)})),SE=e=>{I(e.a,[`_mn`,`_mo`]),Re(e.b),je(e.b,12),Ee(e.b,`_mq`),xE(e)},CE=F(14,e=>I(e.a,[`_my`,{_mz:e.n===e._._._._.k}])),wE=V(53,CE,e=>e._._._._,`R29`),TE=j(`R28`,e=>{A(e.c,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n.closest(`[data-stack]`)??n)}),A(e.c,`mouseleave`,function(){e._._._._.ak()}),A(e.c,`pointerdown`,function(){e._._._._.al()}),A(e.c,`click`,function(t,n){e._._._._.am(e._.M,n.closest(`[data-stack]`)??n)}),A(e.c,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),Dk(e._._._._,null),e._._._._.am(e._.M,n.closest(`[data-stack]`)??n))})}),EE=e=>{wE(e),jE(e),FE(e),IE(e),RE._(e),zE._(e),AO._(e.b,e._._._._),NO(e.b,!0),R(e.c,`data-pop`,e._.M),Cw(e.d),ww(e.d,12),Tw(e.d),TE(e)},DE=F(12,e=>WO(e.b,e.l===e._._._.k)),OE=F(18,e=>ZO(e.b,e.l===e.j.at(-1)?void 0:e.p),2),kE=P(11,e=>{YO(e.b,e.l),UE(e,e.l?.id),DE(e),OE(e)}),AE=F(6,e=>kE(e,e._._._._.a0(e.f))),jE=V(55,AE,e=>e._._._._,`R30`),ME=F(16,e=>{R(e.c,`title`,`${e.p??e._._._.M} stack of ${e.k}: every layer, in the order they merge`),R(e.c,`aria-label`,`${e.p??e._._._.M} stack: ${e.k} layers`)}),NE=P(15,e=>{OE(e),ME(e)}),PE=F(7,e=>NE(e,e._._._._.a2(e.f,e._._._.k)),2),FE=V(57,PE,e=>e._._._._),IE=V(18,e=>{PE(e),DE(e)},e=>e._._._,`R31`),LE=P(5,e=>{BE(e,e.f?.root),VE(e,e.f?.sections),AE(e),PE(e)}),RE=N(0,1,e=>LE(e,e._.k)),zE=N(0,1,e=>{I(e.c,[`_mA`,{_mB:e._.p}]),R(e.c,`aria-expanded`,e._.p?`true`:`false`)}),BE=(e,t)=>R(e.a,`data-stack`,t),VE=P(9,e=>{HE(e,e.j?.length),OE(e)}),HE=P(10,e=>{z(e.e,e.k),ME(e)}),UE=P(13,CE),WE=F(9,e=>I(e.a,[`_ms`,`_mx`,`_mC`,{_mO:!!e.h?.repo.unpushed,_mr:!!e.h&&e.h?.id===e._._._._.k,_mD:e._.p}]),2),GE=V(53,WE,e=>e._._._._,`R25`),KE=j(`R24`,e=>{A(e.a,`mouseenter`,function(t,n){e._._._._.aj(e._.M,n)}),A(e.a,`mouseleave`,function(){e._._._._.ak()}),A(e.a,`pointerdown`,function(){e._._._._.al()}),A(e.a,`click`,function(t,n){e._._._._.am(e._.M,n)}),A(e.a,`keydown`,function(t,n){t.key===`ArrowDown`&&(t.preventDefault(),Dk(e._._._._,null),e._._._._.am(e._.M,n))})}),qE=e=>{GE(e),nD(e),rD(e),iD(e),aD._(e),oD._(e),cD._(e),lD._(e),uD._(e),R(e.a,`data-pop`,e._.M),I(e.c,`_mE`),Ve(e.d),ze(e.d,12),Ue(e.d),KE(e)},JE=M(1,`<span><span><!>.<!></span> </span><!><!>`,`D D%c%l l%`,dE,`<span> </span>`,`D `,Vw),YE=P(17,vE),XE=F(16,e=>YE(e,e.p?.stack&&e.h!==(e.p?.sections).at(-1)?e._._._._.a2(e.p,e._._._.k):void 0),3),ZE=P(15,XE),QE=F(8,e=>ZE(e,e.h&&e._.h.find(t=>t.sections.includes(e.h)))),$E=F(10,e=>R(e.a,`title`,`${e._.i}: ${e._.j} ${e._.j===1?`branch`:`branches`}${e.h?`\n${gw(e.h?.repo)??``}`:``}`),2),eD=P(7,e=>{fD(e,e.h?.repo?.pr),mD(e,e.h?.id),JE(e,+!e.h),QE(e),XE(e),WE(e),$E(e),hE(e)}),tD=F(5,e=>eD(e,e._._._._.z(e._.g))),nD=V(54,tD,e=>e._._._._,`R26`),rD=V(57,XE,e=>e._._._._),iD=V(18,XE,e=>e._._._,`R27`),aD=N(0,0,tD),oD=N(0,0,QE),sD=F(6,e=>R(e.a,`aria-label`,`${e._.i} group: ${e._.j} branches`)),cD=N(0,0,e=>{$E(e),sD(e)}),lD=N(0,0,e=>{z(e.e,e._.j),$E(e),sD(e)}),uD=N(0,0,e=>{R(e.a,`aria-expanded`,e._.p?`true`:`false`),WE(e)}),dD=L(Lw),fD=P(13,e=>{pD(e,e.n?.number),_E(e),dD(e)}),pD=P(14,L(zw)),mD=(e,t)=>R(e.a,`data-pick`,t),hD=P(15,e=>{uD(e),zE(e)}),gD=V(58,e=>hD(e,e._._._.a5===e.M),e=>e._._._,`R33`),_D=gD,vD=M(0,(e=>`<button type=button aria-haspopup=dialog><!><span>${e} </span></button>`)(Ie),(e=>` D%b D/${e}& m`)(Fe),qE,((e,t)=>`<span>${e}<button type=button aria-haspopup=dialog>${t} </button></span>`)(Dw,xw),((e,t)=>` D/${e}& D/${t}& m`)(Ew,Sw),EE,(e=>`<!>${e}<!>`)(Dw),(e=>`b/${e}&b`)(Ew),lT),yD=F(12,e=>vD(e,e.f===`group`?0:e.l?1:2)),bD=P(5,yD),xD=P(11,yD),SD=(e,t)=>{bD(e,t[0]?.kind),CD(e,t[0]?.sections),TD(e,t[0]?.runs),DD(e,t[0]?.name),OD(e,t[0]?.run)},CD=P(6,e=>{wD(e,e.g?.length),aD(e)}),wD=P(9,lD),TD=P(7,oD),ED=L(mE,Bw),DD=P(8,e=>{cD(e),ED(e)}),OD=P(10,e=>{xD(e,e.k?.stack),kD(e,e.k?.sections?.[0]),RE(e)}),kD=P(14,uT),AD=F(3,e=>I(e.a,[`_mt`,{_mu:e._.d.some(t=>t.id===e._._.k)}])),jD=V(53,AD,e=>e._._,`R34`),MD=e=>{jD(e),LD(e),RD._(e),zD._(e),VD._(e),UD._(e),WD._(e)},ND=M(1,`<span> </span>`,` D `,Hw),PD=F(10,e=>ND(e,!e._.k||e.j!==e._.k?0:1)),FD=P(9,PD),ID=F(8,e=>FD(e,e.g===`run`?e.h.stack?e._._.a0(e.h):e.h.sections[0]:void 0),2),LD=V(55,ID,e=>e._._,`R35`),RD=N(0,1,AD),zD=N(0,1,e=>R(e.a,`aria-label`,`${e._.M}: ${e._.e} sections`)),BD=fe(2,`<!><!><!>`,`b%`,_D,SD),VD=N(0,1,e=>BD(e,[e._.i,`key`])),HD=(e,t)=>{GD(e,t?.kind),KD(e,t?.run)},UD=N(0,1,e=>HD(e,e._.j)),WD=N(0,1,PD),GD=P(6,ID),KD=P(7,ID),qD=F(2,e=>I(e.a,[`_mt`,{_mu:e._.g===e._._.k}])),JD=V(53,qD,e=>e._._,`R18`),YD=e=>{JD(e),XD._(e),ZD._(e),AO._(e.b,e._._),WO(e.b,!0),NO(e.b,!0),ZO(e.b)},XD=N(0,0,e=>YO(e.b,e._.f)),ZD=N(0,0,qD),QD=M(0,(e=>`<span>${e}</span>`)(Dw),(e=>` D/${e}&l`)(Ew),YD,`<span role=group><!><!></span>`,` D%b%`,MD),$D=P(4,e=>{QD(e,e.e===1?0:1),zD(e)}),eO=(e,t)=>{tO(e,t[0]?.sections),iO(e,t[0]?.items),sO(e,t[0]?.main)},tO=P(3,e=>{$D(e,e.d?.length),nO(e,e.d?.[0]),RD(e)}),nO=P(5,e=>{rO(e,e.f?.id),XD(e)}),rO=P(6,ZD),iO=P(8,e=>{aO(e,e.i?.[0]),VD(e)}),aO=P(9,UD),oO=L(iD,IE,fE,cT),sO=P(10,e=>{WD(e),oO(e)}),cO=F(20,e=>I(e.a,[`_mK`,{_mL:e.s,_mO:!!e.m,_mr:e.t}]),2),lO=P(19,e=>{R(e.a,`aria-current`,e.t?`true`:void 0),cO(e)}),uO=F(10,e=>lO(e,e._.k===e.j)),dO=V(53,uO,0,`R16`),fO=j(`R15`,e=>A(e.a,`click`,function(){e._.l(e.j),e._.g.hidePopover()})),pO=he(e=>{dO(e),I(e.c,`_mN`),fO(e)}),mO=P(9,uO),hO=P(12,cO),gO=P(18,cO),_O=(e,t)=>{R(e.a,`title`,[gw(t),t?.pr?.title].filter(Boolean).join(`
|
|
325
325
|
`)),hO(e,t?.unpushed),SO(e,t?.pr),CO(e,t?.edits)},vO=M(1,`<span> </span>`,` D `,Ww),yO=P(17,e=>{vO(e,+!e.r),Uw(e)}),bO=(e,t)=>z(e.d,t),xO=M(4,`<span>#<!></span>`,` Db%`,Kw),SO=P(13,e=>{TO(e,e.n?.number),xO(e,+!e.n),Gw(e)}),CO=(e,t)=>bw(e.f,t),wO=(e,t)=>{mO(e,t?.id),_O(e,t?.repo)},TO=P(14,qw),EO=F(27,e=>I(e.a,[`_ms`,{_mO:!!e.j,_mx:e.a0,_mr:e._.k===e.k}]),3),DO=F(11,e=>R(e.a,`aria-pressed`,e._.k===e.k?`true`:`false`)),OO=V(53,e=>{EO(e),DO(e)},0,`R13`),kO=j(`R12`,e=>A(e.a,`click`,function(){e._.l(e.k)})),AO=he(e=>{OO(e),kO(e)}),jO=P(9,EO),MO=P(10,e=>{R(e.a,`data-pick`,e.k),EO(e),DO(e)}),NO=P(26,EO),PO=F(21,e=>R(e.a,`title`,[`${e.i.worktree}${e.o?` · ${e.o}`:``}${e.p?`: ${ut(e.p.length)} ${e.p.length===1?`file`:`files`}, +${ut(e.q??0)} −${ut(e.r??0)}`:``}`,e.i.pr&&`#${e.i.pr.number} ${e.i.pr.title}`,gw(e.i),e.u].filter(Boolean).join(`
|
|
326
|
-
`)),5),FO=P(8,e=>{jO(e,e.i?.unpushed),QO(e,e.i?.worktree),qO(e,e.i?.pr),JO(e,e.i?.edits),PO(e)}),IO=M(2,`<span><!><!></span>`,`D%b%`,nT,`<span> </span>`,` D `,eT),LO=F(23,e=>IO(e,e.o?0:e.w?1:2)),RO=P(14,e=>{PO(e),LO(e),tT(e)}),zO=P(15,PO),BO=P(16,PO),VO=P(17,PO),HO=P(20,PO),UO=M(1,`<span> </span>`,` D `,oT),WO=(e,t)=>UO(e,+!t),GO=P(22,e=>{LO(e),$w(e)}),KO=M(3,`<span>#<!></span>`,` Db%`,Zw),qO=P(18,e=>{$O(e,e.s?.number),KO(e,+!e.s),Xw(e)}),JO=(e,t)=>bw(e.e,t),YO=(e,t)=>{FO(e,t?.repo),MO(e,t?.id),ek(e,t?.compare),zO(e,t?.files),BO(e,t?.additions),VO(e,t?.deletions)},XO=L(Jw),ZO=P(28,e=>{iT(e),XO(e)}),QO=P(12,aT),$O=P(19,Qw),ek=(e,t)=>{RO(e,t?.topic),HO(e,t?.title),GO(e,t?.head)},tk=ge(15,e=>{R(e.c,`title`,ve(`prevSection`,e.p)||ve(`nextSection`,e.p)?`Sections (${[ve(`prevSection`,e.p),ve(`nextSection`,e.p)].filter(Boolean).join(` / `)})`:`Sections`)}),nk=M(1,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(Te),(e=>` D/${e}&l`)(Le),SE),rk=F(20,e=>I(e.c,[`_mk`,{_ml:e.s,_mm:e.t}])),ik=ge(18,e=>{nk(e,+!e.s),rk(e)}),ak=M(5,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(Te),(e=>` D/${e}&l`)(Le),bE),ok=ge(19,e=>{ak(e,+!e.t),rk(e)}),sk=j(`R52`,e=>{{let t=e.o>0,n=e.k??``,r=requestAnimationFrame(()=>{t&&e.v();let r=e.c,i=r.querySelector(`[data-pick="${CSS.escape(n)}"]`);if(!i)return;let a=i.offsetLeft,o=a+i.offsetWidth;a<r.scrollLeft?r.scrollTo({left:a-8,behavior:`smooth`}):o>r.scrollLeft+r.clientWidth&&r.scrollTo({left:o-r.clientWidth+8,behavior:`smooth`})});pe(e,2).addEventListener(`abort`,()=>cancelAnimationFrame(r))}}),ck=F(22,e=>{me(e,2),sk(e)},2),lk=j(`R53`,e=>ce(e,{onMount:function(){let t=e.c,n=new ResizeObserver(()=>e.v());return n.observe(t),t.addEventListener(`wheel`,e=>{Math.abs(e.deltaX)>Math.abs(e.deltaY)||t.scrollWidth<=t.clientWidth||(e.preventDefault(),t.scrollLeft+=e.deltaY)},{passive:!1}),e.v(),{ro:n}},onDestroy:function(){this.ro.disconnect()}})),uk=P(21,e=>{ck(e),lk(e)}),dk=P(23),fk=P(27),pk=F(36,e=>R(e.g,`aria-label`,e.a9?(e.a9?.item).kind===`group`?`${(e.a9?.item).name} group`:`${e.a2((e.a9?.item).run,(e.a9?.g).main)??(e.a9?.g).worktree} stack`:void 0)),mk=P(28,pk),hk=P(47),gk=M(6,`<!><!><!>`,`b%`,cE),_k=j(`R54`,e=>{{let t=e.g;if(e.a3&&e.a9){let n=!t.matches(`:popover-open`);n&&t.showPopover(),Ne(t,(e.a3?.chip).getBoundingClientRect()),n&&e.a3?.via===`click`&&(t.querySelector(`[aria-current="true"]`)??t.querySelector(`button`))?.focus()}else t.matches(`:popover-open`)&&t.hidePopover()}}),vk=F(37,_k),yk=P(35,e=>{Vk(e,e.a9?.item?.kind),Hk(e,e.a9?.item?.name),Wk(e,e.a9?.item?.run),Kk(e,e.a9?.item?.sections?.length),qk(e,e.a9?.item?.runs),Jk(e,e.a9?.g?.main),Yk(e,e.a9?.g?.worktree),gk(e,+!e.a9),vk(e),pk(e)}),bk=F(30,e=>yk(e,(()=>{if(e.a3){for(let t of e.y)for(let n of t.items)if(n.key===e.a3?.key)return{g:t,item:n}}})())),xk=P(45),Sk=e=>{xk(e,aA(e))},Ck=ge(29,e=>{Rk(e,e.a3?.key),Bk(e,e.a3?.via),hk(e,iA(e)),bk(e),Sk(e),vk(e)}),wk=j(`R55`,e=>{{let t=e.a7;if(t){let n=setTimeout(()=>{Tk(e,null),Ck(e,t.pop)},t.pop?Mw:Nw);pe(e,1).addEventListener(`abort`,()=>clearTimeout(n))}}}),Tk=ge(33,e=>{me(e,1),wk(e)}),Ek=P(48),Dk=ge(34,e=>Ek(e,oA(e))),Ok=j(`R56`,e=>{tk(e,_e()),ye(()=>{tk(e,_e())},pe(e,0)),A(e.c,`scroll`,function(){e.v()}),A(e.d,`click`,function(){e.l(null)}),A(e.g,`mouseenter`,function(){e.a7&&!e.a7?.pop&&Tk(e,null)}),A(e.g,`mouseleave`,function(){e.ak()}),A(e.g,`toggle`,function(t){t.newState===`closed`&&(document.activeElement===document.body&&e.a3&&document.querySelector(`[data-pop="${CSS.escape(e.a3?.key)}"]`)?.focus(),Tk(e,null),Ck(e,null))}),A(e.g,`keydown`,function(e,t){if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)return;e.preventDefault();let n=[...t.querySelectorAll(`button`)],r=n.indexOf(document.activeElement);n[((e.key===`ArrowDown`?r+1:r-1)+n.length)%n.length]?.focus()})});function kk(e){me(e,0),I(e.g,[`_bw`,`_mF`]),tk(e,0),ik(e,!1),ok(e,!1),uk(e,eA(e)),dk(e,tA(e)),fk(e,nA),mk(e,rA),Ck(e,null),Tk(e,null),Dk(e,null),Ok(e)}var Ak=fe(4,`<!><!><!>`,`b%`,0,eO),jk=P(24,e=>{Ak(e,[e.y,`worktree`]),bk(e)}),Mk=(e,t)=>{Qk(e,t?.length),jk(e,(()=>{let e=[];for(let n of t){let t=e.find(e=>e.worktree===n.repo.worktree);t||e.push(t={worktree:n.repo.worktree,sections:[],items:[]}),t.sections.push(n),!t.main&&!n.compare?.topic&&!n.compare?.head&&(t.main=n)}for(let t of e)t.items=Iw(Fw(t.sections),t.main);return e})())},Nk=P(26,L(LD,jE)),Pk=L(nD),Fk=P(25,e=>{Nk(e,sA(e)),Pk(e)}),Ik=L(OO,dO,JD,jD,GE,wE),Lk=P(10,e=>{I(e.d,[`_ms`,{_mr:!e.k}]),R(e.d,`aria-pressed`,e.k?`false`:`true`),Fk(e,cA(e)),ck(e),Ik(e)}),Rk=P(31,L(gD)),zk=P(46),Bk=P(32,e=>zk(e,lA(e))),Vk=P(39,sE),Hk=P(40,L(tE,UT,FT,kT)),Uk=L(xT),Wk=P(41,e=>{Gk(e,e.af?.sections),Uk(e)}),Gk=P(52,L(TT)),Kk=P(50,L(rE)),qk=P(51,L(aE)),Jk=P(43,L(WT,IT,AT,ST,mT)),Yk=P(44,L(GT,CT)),Xk=(e,t)=>I(e.a,[`_mj`,t]),Zk=(e,t)=>R(e.d,`title`,t==null?`Every section`:`Every section: ${ut(t)} ${t===1?`file`:`files`}`),Qk=P(14,ck),$k=P(11),eA=e=>()=>{let t=e.c;ik(e,t.scrollLeft>1),ok(e,t.scrollLeft+t.clientWidth<t.scrollWidth-1)},tA=e=>t=>{let n=e.c;n.scrollBy({left:t*n.clientWidth*.8,behavior:`smooth`})};function nA(e,t){return e===t?e.repo.worktree:e.compare?.topic||e.compare?.head||e.repo.worktree}function rA(e,t){let n=e.sections.at(-1);return n===t?void 0:n.compare?.topic||n.compare?.head}var iA=e=>()=>{Dk(e,e.a3&&e.g.matches(`:popover-open`)?{key:e.a3?.key,via:e.a3?.via}:null)},aA=e=>(t,n)=>{e.a6!==`click`&&Tk(e,e.a5===t?null:{pop:{key:t,chip:n,via:`hover`}})},oA=e=>(t,n)=>{let r=e.a8;if(Dk(e,null),Tk(e,null),r?.key===t&&r.via===`click`){e.g.hidePopover();return}Ck(e,{key:t,chip:n,via:`click`})},sA=e=>t=>e.z(t.sections)??t.sections.find(e=>e.repo.nextToLand)??t.sections[0],cA=e=>t=>t.find(t=>t.id===e.k),lA=e=>()=>{Tk(e,e.a6===`hover`?{pop:null}:null)};le.R0=eA,le.R1=tA,le.R4=nA,le.R5=rA,le.R8=iA,le.R6=aA,le.R9=oA,le.R3=sA,le.R2=cA,le.R7=lA;var uA=d,dA=(e=>`/${e}&`)(t);function fA(t){e(t.a,i)}var pA=(e,t)=>D(e.a,t),mA=(e,t)=>u(e.a,t),hA=((e,t,n)=>`<div><div role=group><button type=button><span aria-hidden=true>${e}<span> </span></span><!></button><button type=button aria-label="Send options" aria-haspopup=menu></button></div><span>${t} No comments</span></div><div popover=auto role=menu><!><button type=button role=menuitem><span>${n}</span><span>Copy as markdown</span></button></div>`)(uA,uA,St),gA=((e,t,n)=>` D D D D/${e}& D m%l l D/${t}&m D%b D D/${n}&l m`)(dA,dA,xt),_A=e=>{yt(e.a),_t(e.a,12),bt(e.a)},vA=N(7,3,e=>z(e.b,Pe(e._.a4))),yA=e=>{vA._(e),I(e.a,[`
|
|
326
|
+
`)),5),FO=P(8,e=>{jO(e,e.i?.unpushed),QO(e,e.i?.worktree),qO(e,e.i?.pr),JO(e,e.i?.edits),PO(e)}),IO=M(2,`<span><!><!></span>`,`D%b%`,nT,`<span> </span>`,` D `,eT),LO=F(23,e=>IO(e,e.o?0:e.w?1:2)),RO=P(14,e=>{PO(e),LO(e),tT(e)}),zO=P(15,PO),BO=P(16,PO),VO=P(17,PO),HO=P(20,PO),UO=M(1,`<span> </span>`,` D `,oT),WO=(e,t)=>UO(e,+!t),GO=P(22,e=>{LO(e),$w(e)}),KO=M(3,`<span>#<!></span>`,` Db%`,Zw),qO=P(18,e=>{$O(e,e.s?.number),KO(e,+!e.s),Xw(e)}),JO=(e,t)=>bw(e.e,t),YO=(e,t)=>{FO(e,t?.repo),MO(e,t?.id),ek(e,t?.compare),zO(e,t?.files),BO(e,t?.additions),VO(e,t?.deletions)},XO=L(Jw),ZO=P(28,e=>{iT(e),XO(e)}),QO=P(12,aT),$O=P(19,Qw),ek=(e,t)=>{RO(e,t?.topic),HO(e,t?.title),GO(e,t?.head)},tk=ge(15,e=>{R(e.c,`title`,ve(`prevSection`,e.p)||ve(`nextSection`,e.p)?`Sections (${[ve(`prevSection`,e.p),ve(`nextSection`,e.p)].filter(Boolean).join(` / `)})`:`Sections`)}),nk=M(1,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(Te),(e=>` D/${e}&l`)(Le),SE),rk=F(20,e=>I(e.c,[`_mk`,{_ml:e.s,_mm:e.t}])),ik=ge(18,e=>{nk(e,+!e.s),rk(e)}),ak=M(5,(e=>`<button type=button tabindex=-1 aria-hidden=true title="More sections">${e}</button>`)(Te),(e=>` D/${e}&l`)(Le),bE),ok=ge(19,e=>{ak(e,+!e.t),rk(e)}),sk=j(`R52`,e=>{{let t=e.o>0,n=e.k??``,r=requestAnimationFrame(()=>{t&&e.v();let r=e.c,i=r.querySelector(`[data-pick="${CSS.escape(n)}"]`);if(!i)return;let a=i.offsetLeft,o=a+i.offsetWidth;a<r.scrollLeft?r.scrollTo({left:a-8,behavior:`smooth`}):o>r.scrollLeft+r.clientWidth&&r.scrollTo({left:o-r.clientWidth+8,behavior:`smooth`})});pe(e,2).addEventListener(`abort`,()=>cancelAnimationFrame(r))}}),ck=F(22,e=>{me(e,2),sk(e)},2),lk=j(`R53`,e=>ce(e,{onMount:function(){let t=e.c,n=new ResizeObserver(()=>e.v());return n.observe(t),t.addEventListener(`wheel`,e=>{Math.abs(e.deltaX)>Math.abs(e.deltaY)||t.scrollWidth<=t.clientWidth||(e.preventDefault(),t.scrollLeft+=e.deltaY)},{passive:!1}),e.v(),{ro:n}},onDestroy:function(){this.ro.disconnect()}})),uk=P(21,e=>{ck(e),lk(e)}),dk=P(23),fk=P(27),pk=F(36,e=>R(e.g,`aria-label`,e.a9?(e.a9?.item).kind===`group`?`${(e.a9?.item).name} group`:`${e.a2((e.a9?.item).run,(e.a9?.g).main)??(e.a9?.g).worktree} stack`:void 0)),mk=P(28,pk),hk=P(47),gk=M(6,`<!><!><!>`,`b%`,cE),_k=j(`R54`,e=>{{let t=e.g;if(e.a3&&e.a9){let n=!t.matches(`:popover-open`);n&&t.showPopover(),Ne(t,(e.a3?.chip).getBoundingClientRect()),n&&e.a3?.via===`click`&&(t.querySelector(`[aria-current="true"]`)??t.querySelector(`button`))?.focus()}else t.matches(`:popover-open`)&&t.hidePopover()}}),vk=F(37,_k),yk=P(35,e=>{Vk(e,e.a9?.item?.kind),Hk(e,e.a9?.item?.name),Wk(e,e.a9?.item?.run),Kk(e,e.a9?.item?.sections?.length),qk(e,e.a9?.item?.runs),Jk(e,e.a9?.g?.main),Yk(e,e.a9?.g?.worktree),gk(e,+!e.a9),vk(e),pk(e)}),bk=F(30,e=>yk(e,(()=>{if(e.a3){for(let t of e.y)for(let n of t.items)if(n.key===e.a3?.key)return{g:t,item:n}}})())),xk=P(45),Sk=e=>{xk(e,aA(e))},Ck=ge(29,e=>{Rk(e,e.a3?.key),Bk(e,e.a3?.via),hk(e,iA(e)),bk(e),Sk(e),vk(e)}),wk=j(`R55`,e=>{{let t=e.a7;if(t){let n=setTimeout(()=>{Tk(e,null),Ck(e,t.pop)},t.pop?Mw:Nw);pe(e,1).addEventListener(`abort`,()=>clearTimeout(n))}}}),Tk=ge(33,e=>{me(e,1),wk(e)}),Ek=P(48),Dk=ge(34,e=>Ek(e,oA(e))),Ok=j(`R56`,e=>{tk(e,_e()),ye(()=>{tk(e,_e())},pe(e,0)),A(e.c,`scroll`,function(){e.v()}),A(e.d,`click`,function(){e.l(null)}),A(e.g,`mouseenter`,function(){e.a7&&!e.a7?.pop&&Tk(e,null)}),A(e.g,`mouseleave`,function(){e.ak()}),A(e.g,`toggle`,function(t){t.newState===`closed`&&(document.activeElement===document.body&&e.a3&&document.querySelector(`[data-pop="${CSS.escape(e.a3?.key)}"]`)?.focus(),Tk(e,null),Ck(e,null))}),A(e.g,`keydown`,function(e,t){if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)return;e.preventDefault();let n=[...t.querySelectorAll(`button`)],r=n.indexOf(document.activeElement);n[((e.key===`ArrowDown`?r+1:r-1)+n.length)%n.length]?.focus()})});function kk(e){me(e,0),I(e.g,[`_bw`,`_mF`]),tk(e,0),ik(e,!1),ok(e,!1),uk(e,eA(e)),dk(e,tA(e)),fk(e,nA),mk(e,rA),Ck(e,null),Tk(e,null),Dk(e,null),Ok(e)}var Ak=fe(4,`<!><!><!>`,`b%`,0,eO),jk=P(24,e=>{Ak(e,[e.y,`worktree`]),bk(e)}),Mk=(e,t)=>{Qk(e,t?.length),jk(e,(()=>{let e=[];for(let n of t){let t=e.find(e=>e.worktree===n.repo.worktree);t||e.push(t={worktree:n.repo.worktree,sections:[],items:[]}),t.sections.push(n),!t.main&&!n.compare?.topic&&!n.compare?.head&&(t.main=n)}for(let t of e)t.items=Iw(Fw(t.sections),t.main);return e})())},Nk=P(26,L(LD,jE)),Pk=L(nD),Fk=P(25,e=>{Nk(e,sA(e)),Pk(e)}),Ik=L(OO,dO,JD,jD,GE,wE),Lk=P(10,e=>{I(e.d,[`_ms`,{_mr:!e.k}]),R(e.d,`aria-pressed`,e.k?`false`:`true`),Fk(e,cA(e)),ck(e),Ik(e)}),Rk=P(31,L(gD)),zk=P(46),Bk=P(32,e=>zk(e,lA(e))),Vk=P(39,sE),Hk=P(40,L(tE,UT,FT,kT)),Uk=L(xT),Wk=P(41,e=>{Gk(e,e.af?.sections),Uk(e)}),Gk=P(52,L(TT)),Kk=P(50,L(rE)),qk=P(51,L(aE)),Jk=P(43,L(WT,IT,AT,ST,mT)),Yk=P(44,L(GT,CT)),Xk=(e,t)=>I(e.a,[`_mj`,t]),Zk=(e,t)=>R(e.d,`title`,t==null?`Every section`:`Every section: ${ut(t)} ${t===1?`file`:`files`}`),Qk=P(14,ck),$k=P(11),eA=e=>()=>{let t=e.c;ik(e,t.scrollLeft>1),ok(e,t.scrollLeft+t.clientWidth<t.scrollWidth-1)},tA=e=>t=>{let n=e.c;n.scrollBy({left:t*n.clientWidth*.8,behavior:`smooth`})};function nA(e,t){return e===t?e.repo.worktree:e.compare?.topic||e.compare?.head||e.repo.worktree}function rA(e,t){let n=e.sections.at(-1);return n===t?void 0:n.compare?.topic||n.compare?.head}var iA=e=>()=>{Dk(e,e.a3&&e.g.matches(`:popover-open`)?{key:e.a3?.key,via:e.a3?.via}:null)},aA=e=>(t,n)=>{e.a6!==`click`&&Tk(e,e.a5===t?null:{pop:{key:t,chip:n,via:`hover`}})},oA=e=>(t,n)=>{let r=e.a8;if(Dk(e,null),Tk(e,null),r?.key===t&&r.via===`click`){e.g.hidePopover();return}Ck(e,{key:t,chip:n,via:`click`})},sA=e=>t=>e.z(t.sections)??t.sections.find(e=>e.repo.nextToLand)??t.sections[0],cA=e=>t=>t.find(t=>t.id===e.k),lA=e=>()=>{Tk(e,e.a6===`hover`?{pop:null}:null)};le.R0=eA,le.R1=tA,le.R4=nA,le.R5=rA,le.R8=iA,le.R6=aA,le.R9=oA,le.R3=sA,le.R2=cA,le.R7=lA;var uA=d,dA=(e=>`/${e}&`)(t);function fA(t){e(t.a,i)}var pA=(e,t)=>D(e.a,t),mA=(e,t)=>u(e.a,t),hA=((e,t,n)=>`<div><div role=group><button type=button><span aria-hidden=true>${e}<span> </span></span><!></button><button type=button aria-label="Send options" aria-haspopup=menu></button></div><span>${t} No comments</span></div><div popover=auto role=menu><!><button type=button role=menuitem><span>${n}</span><span>Copy as markdown</span></button></div>`)(uA,uA,St),gA=((e,t,n)=>` D D D D/${e}& D m%l l D/${t}&m D%b D D/${n}&l m`)(dA,dA,xt),_A=e=>{yt(e.a),_t(e.a,12),bt(e.a)},vA=N(7,3,e=>z(e.b,Pe(e._.a4))),yA=e=>{vA._(e),I(e.a,[`_lB`,`_S`]),I(e.c,`_R`)},bA=N(7,0,e=>z(e.a,e._.a0?`Copied`:`Copy failed`)),xA=bA,SA=M(1,gt,(e=>`/${e}&`)(ht),_A),CA=V(41,e=>{R(e.a,`aria-checked`,e.M===e._._.a7?`true`:`false`),SA(e,e.M===e._._.a7?0:1)},e=>e._._,`r3`),wA=j(`r2`,e=>A(e.a,`click`,function(){zA(e._._,e.M),e._._.l.hidePopover()})),TA=e=>{CA(e),I(e.a,sC),I(e.b,`_lG`),H(e.c,14),be(e.c),I(e.d,`_lH`),wA(e)},EA=(e,t)=>xe(e.c,t),DA=(e,t)=>{z(e.e,Pe(t)),EA(e,t?.agent)},OA=fe(1,(e=>`<button type=button role=menuitemradio><span></span>${e}<span> </span></button>`)(we),(e=>` D b/${e}& D m`)(`b%c`),TA,(e,t)=>DA(e,t[0])),kA=N(12,0,e=>OA(e,[e._.a1,`id`])),AA=e=>{kA._(e),I(e.a,`_lE`),I(e.c,`_lI`)},jA=P(36),MA=F(31,e=>jA(e,tj(e)),2),NA=M(7,` `,` `,xA,`Sending…`,0,0,`Copy`,0,0,`<span>Send to <!></span><span>Send</span>`,` Db%l `,yA,`Send`),PA=F(32,e=>NA(e,e.z?0:e.x?1:e.a4?e.a3>1?3:4:2),3),FA=ge(23,e=>{R(e.c,`disabled`,e.x),R(e.i,`disabled`,e.x),MA(e),PA(e)}),IA=F(35,e=>R(e.c,`title`,e.u?e.a4?`Send ${e.a8} to ${Pe(e.a4)}`:`Copy ${e.a8} as markdown`:`No comments to send`),2),LA=P(30,e=>{YA(e,e.a4?.id),MA(e),IA(e),PA(e),vA(e)}),RA=F(28,e=>LA(e,e.a1.find(t=>t.id===e.y)??e.a1[0]??null)),zA=ge(24,RA),BA=j(`r5`,e=>{if(e.z){let t=setTimeout(()=>{VA(e,null)},1500);pe(e,0).onabort=()=>clearTimeout(t)}}),VA=ge(25,e=>{me(e,0),WA(e,e.z?.ok),PA(e),BA(e)}),HA=j(`r4`,e=>{A(e.c,`click`,function(){e.a4?e.aa():e.ab()}),A(e.i,`click`,function(){let t=e.l;t.showPopover(),Ne(t,e.b.getBoundingClientRect(),{align:`end`})}),A(e.n,`click`,function(){e.l.hidePopover(),e.ab()})});function UA(e){I(e.c,`_ly`),I(e.d,[`_w`,`_lz`]),fA(e.e),pA(e.e,18),mA(e.e,`_x`),I(e.f,[O,`_lA`]),I(e.i,`_lC`),fA(e.k),pA(e.k,16),mA(e.k),I(e.l,oC),I(e.n,sC),I(e.o,`_lG`),wt(e.p),Ct(e.p,14),Tt(e.p),I(e.q,`_lH`),FA(e,!1),zA(e,null),VA(e,null),HA(e)}var WA=P(26,bA),GA=P(27,e=>{qA(e,e.a1.length),RA(e),kA(e)}),KA=M(12,`<span>Send to</span><!><span role=separator></span>`,` b%b `,AA),qA=P(29,e=>{KA(e,+!e.a3),PA(e)}),JA=(e,t)=>GA(e,t||[]),YA=P(33,L(CA)),XA=P(34,e=>{R(e.b,`aria-label`,e.a8),IA(e)}),ZA=P(20,e=>{I(e.a,[`_lu`,!e.u&&`_lw`]),I(e.b,[`_lt`,!e.u&&`_lv`]),R(e.b,`inert`,!e.u),z(e.g,e.u>99?`99+`:e.u),I(e.j,[`_lx`,!!e.u&&`_lv`]),XA(e,ft(e.u,`comment`)),IA(e)}),QA=P(21,MA),$A=P(37),ej=P(22,e=>$A(e,nj(e))),tj=e=>()=>{(async()=>{if(e.a4&&!e.x){FA(e,!0);try{await e.v(e.a4?.id)}finally{FA(e,!1)}}})()},nj=e=>()=>{(async()=>{VA(e,{ok:await e.w()})})()};le.r0=tj,le.r1=nj;var rj=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
327
327
|
<symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
|
|
328
328
|
<path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/>
|
|
329
329
|
</symbol>
|
|
@@ -1588,4 +1588,4 @@ diff --git`)}function v_(e,t){if(e.length===0)return[``];let n=`\n${t}`,r=e.star
|
|
|
1588
1588
|
}`}function vI(e){return`${gI}
|
|
1589
1589
|
@layer unsafe {
|
|
1590
1590
|
${e}
|
|
1591
|
-
}`}var yI=new WeakMap;function bI(e){let t=yI.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute(yM,`true`);let r=document.createElement(`div`);r.style.position=`relative`,r.style.height=`200%`,n.appendChild(r),e.appendChild(n);let i=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),yI.set(e,i),i}function xI(e,t){if(!e.isConnected)return;let n=bI(t);if(n==null)return;let r=t.querySelector(`style[${bM}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(bM,``),t.appendChild(i)),i.textContent=`:host { ${xM}: ${n}px; }`}var SI;function CI(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){SI??(SI=new CSSStyleSheet,SI.replaceSync(_I(hI)));let t=!1;try{e.adoptedStyleSheets=[SI],t=!0}catch{}if(t){e.querySelector(`style[${_M}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(_M,``),t.textContent=_I(hI),e.prepend(t)}}function wI(e,t){TI(e,t),CI(t),xI(e,t)}function TI(e,t){let n=e.querySelector(`template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]`);n instanceof HTMLTemplateElement&&(t.childNodes.length>0||(t.appendChild(n.content.cloneNode(!0)),n.hasAttribute(`shadowrootmode`)&&n.remove()))}if(typeof HTMLElement<`u`&&customElements.get(`file-tree-container`)==null){class e extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.shadowRoot??this.attachShadow({mode:`open`});wI(this,e)}}if(customElements.define(gM,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(gM)))e instanceof HTMLElement&&wI(e,e.shadowRoot??e.attachShadow({mode:`open`}))}var EI=e=>e.startsWith(`f::`)?e.slice(3):e;function DI(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function OI(e,t){return e===``?t:`${e}/${t}`}function kI({files:e,path:t,isFolder:n,nextBasename:r}){let i=EI(t),a=r.trim();if(a.length===0)return{error:`Name cannot be empty.`};if(a.includes(`/`))return{error:`Name cannot include "/".`};let{parentPath:o,baseName:s}=DI(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=OI(o,a),l=Array(e.length),u=new Set;if(!n){let t=`${c}/`,r=!1;for(let n=0;n<e.length;n++){let a=e[n];if(a!==i&&a.startsWith(t))return{error:`"${c}" already exists.`};let o=a===i?c:a;if(u.has(o))return{error:`"${c}" already exists.`};u.add(o),l[n]=o,a===i&&(r=!0)}return r?{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}:{error:`Could not find the selected file to rename.`}}let d=`${i}/`,f=`${c}/`,p=0;for(let t=0;t<e.length;t++){let n=e[t],r=n===i||n.startsWith(d);if(!r&&(n===c||n.startsWith(f)))return{error:`"${c}" already exists.`};let a=r?`${c}${n.slice(i.length)}`:n;if(u.has(a))return{error:`"${c}" already exists.`};u.add(a),l[t]=a,r&&p++}return p===0?{error:`Could not find the selected folder to rename.`}:{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}}function AI(e){return e.endsWith(`/`)}function jI(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`),r=n<0?t:t.slice(n+1);return e.endsWith(`/`)?`${r}/`:r}function MI(e){let t=[],n=new Set;for(let r of e)n.has(r)||(n.add(r),t.push(r));let r=new Set;for(let e of t.toSorted((e,t)=>e.length===t.length?e.localeCompare(t):e.length-t.length)){let t=(e.endsWith(`/`)?e.slice(0,-1):e).split(`/`),n=!1;for(let e=0;e<t.length-1;e+=1){let i=`${t.slice(0,e+1).join(`/`)}/`;if(r.has(i)){n=!0;break}}n||r.add(e)}return t.filter(e=>r.has(e))}function NI(e,t){return t.includes(e)?MI(t):[e]}function PI(e,t){return e===t?!0:e==null||t==null?!1:e.kind===t.kind&&e.directoryPath===t.directoryPath&&e.flattenedSegmentPath===t.flattenedSegmentPath&&e.hoveredPath===t.hoveredPath}function FI(e,t){return{draggedPaths:e,target:t}}function II(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(AI(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function LI(e,t){return t.kind===`root`||t.directoryPath==null?jI(e):t.directoryPath}function RI(e,t){let n=e.map(e=>{let n=LI(e,t);return n===e?null:{from:e,to:n,type:`move`}}).filter(e=>e!=null);return n.length===0?null:{operations:n,result:{draggedPaths:e,operation:n.length===1?`move`:`batch`,target:t}}}function zI(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}function BI(e,t,n){let{paths:r,preparedInput:i}=e;if(i==null){if(r==null)throw Error(`FileTree requires paths or preparedInput`);return{paths:r,preparedInput:void 0}}let a=i.paths;if(r==null)return{paths:a,preparedInput:i};if(!zI(uI.preparePaths(r,n==null?{}:{sort:n}),a))throw Error(`FileTree ${t} received paths and preparedInput for different path lists`);return{paths:a,preparedInput:i}}function VI(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}function HI(e,t,n){if(e===t)return n;let r=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(r)?`${n.endsWith(`/`)?n:`${n}/`}${e.slice(r.length)}`:e}function UI(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function WI(e,t,n=!1){if(e==null)return null;switch(t.operation){case`add`:case`expand`:case`collapse`:case`mark-directory-unloaded`:case`begin-child-load`:case`apply-child-patch`:case`complete-child-load`:case`fail-child-load`:case`cleanup`:return e;case`remove`:return UI(e,t.path)?n?e:null:e;case`move`:return HI(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=WI(r,e,n),r==null)return null;return r}}}function GI(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function KI(e){switch(e.operation){case`add`:return{...GI(e),operation:`add`,path:e.path};case`remove`:return{...GI(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...GI(e),from:e.from,operation:`move`,to:e.to}}}function qI(e){return{...GI(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>KI(e)),operation:`batch`}}function JI(e){switch(e.operation){case`add`:case`remove`:case`move`:return KI(e);case`batch`:return qI(e);default:return null}}function YI(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function XI(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=t.split(`/`);return n.slice(0,-1).map((e,t)=>`${n.slice(0,t+1).join(`/`)}/`)}function ZI(e){return XI(e).at(-1)??null}function QI(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function $I(e){return e.endsWith(`/`)}var eL=e=>e.toLowerCase();function tL(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function nL(e){return e.endsWith(`/`)?e.slice(0,-1):e}function rL(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}var iL=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()},aL=Symbol(`FILE_TREE_RENAME_VIEW`),oL=512,sL=512;function cL(e){return e===`top`||e===`center`?e:`nearest`}function lL(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=XI(n);for(let e=r.length-1;e>=0;--e){let n=r[e];if(n==null)continue;let i=t(n);if(i!=null)return i}}return 0}function uL(e,t,n){if(e.paths.length===0)return{focusedIndex:-1,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};if(t==null)return{focusedIndex:0,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};let r=n??(t=>e.visibleIndexByPath.get(t)??null);return{focusedIndex:lL(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var dL=class e{static{Object.defineProperty(e.prototype,aL,{configurable:!0,value(){return{cancel:()=>{this.#q()},commit:()=>{this.#J()},getPath:()=>this.#T,getValue:()=>this.#E,isActive:()=>this.#T!=null,setValue:e=>{this.#Y(e)}}},writable:!0})}#e;#t=new Set;#n=new Map;#r=null;#i=null;#a=new Map;#o=new Map;#s=-1;#c=null;#l=!1;#u=e=>-1;#d=new Map;#f=null;#p=null;#m=null;#h=null;#g=null;#_;#v;#y;#b=[];#x=new Int32Array;#S=new Int32Array;#C=void 0;#w=!1;#T=null;#E=``;#D=!1;#O=new Set;#k=[];#A;#j=null;#M=null;#N=null;#P=null;#F=null;#I=null;#L=null;#R=0;#z=null;#B=new Set;#V=0;#H;#U=0;#W=!1;#G=0;#K;constructor(e){let{dragAndDrop:t,fileTreeSearchMode:n,initialSearchQuery:r,initialSelectedPaths:i,renaming:a,onSearchChange:o,paths:s,preparedInput:c,...l}=e,u=BI({paths:s,preparedInput:c},`constructor`,l.sort);this.#e=l,t!=null&&t!==!1&&(this.#r=t===!0?{}:t),this.#w=a!=null&&a!==!1,a!=null&&a!==!1&&a!==!0&&(this.#C=a.canRename,this.#v=a.onError,this.#_=a.onRename),this.#y=o,this.#A=n??`hide-non-matches`,this.#H=this.#le(u.paths,u.preparedInput);let d=i?.map(e=>this.#Ne(e)).filter(e=>e!=null)??[],f=d.at(-1)??null;d.length>0&&(this.#B=new Set(d),this.#z=f,this.#V=1),this.#je(f,!1),r!=null&&this.#Te(r,!1),this.#K=this.#Re()}destroy(){this.#K?.(),this.#K=null,this.#n.clear(),this.#t.clear(),this.#d.clear(),this.#i=null,this.#he()}focusFirstItem(){this.#be().length>0&&this.#Fe(0)}focusLastItem(){this.#G<=0||(this.#Ie(),this.#Fe(this.#G-1))}focusNextItem(){this.#Ae(1)}focusParentItem(){if(this.#c==null)return;let e=ZI(this.#c);if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t)}focusPath(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;this.#Ie();let n=this.#Z(t);n>=0&&this.#Fe(n)}scrollToPath(e,t){let n=this.#H.getPathInfo(e)?.path??null;if(n==null)return;this.#Ie();let r=this.#xe(n);r<0||this.#Me(r)!=null&&(t?.focus!==!1&&this.#Fe(r,!1),this.#L={id:this.#R+=1,offset:cL(t?.offset),visibleIndex:r},this.#De())}focusMountedPathFromInput(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;let n=this.#Z(t);n>=0&&this.#Fe(n)}focusNearestPath(e){let t=this.resolveNearestVisiblePath(e);if(t==null)return null;let n=this.#Z(t);return n>=0?(this.#Fe(n),this.#be()[n]??t):null}focusPreviousItem(){this.#Ae(-1)}getFocusedIndex(){return this.#s}getFocusedItem(){return this.#c==null?null:this.#Q(this.#c)}getFocusedPath(){return this.#c}getScrollRequest(){return this.#L}clearScrollRequest(e){this.#L?.id===e&&(this.#L=null)}resolveNearestVisiblePath(e){let t=this.#be();if(this.#G===0)return null;if(e==null)return this.#c??t[0]??null;let n=this.#H.getPathInfo(e)?.path??e,r=this.#Z(n);return r>=0?t[r]??n:this.#X(n)??this.#c??t[0]??null}getSelectedPaths(){return[...this.#B]}getSelectionVersion(){return this.#V}getVisibleCount(){return this.#G}getVisibleRows(e,t){if(t<e||this.#G===0)return[];let n=Math.max(0,e),r=Math.min(this.#G-1,t);if(r<n)return[];let i=r-n+1;if(this.#F==null&&!this.#l&&r>=this.#b.length&&i<=sL){let e=[];for(let t=n;t<=r;t+=1){let n=this.#H.getVisibleRowContext(t);if(n==null)break;e.push(this.#ee(n))}return e}if(!this.#l&&r>=this.#b.length&&this.#Ie(),this.#F!=null){let e=Array.from({length:r-n+1},(e,t)=>this.#Se(n+t)),t=new Map,i=e[0]??-1,a=i;for(let n=1;n<=e.length;n+=1){let r=e[n];if(r!=null&&r===a+1){a=r;continue}if(i>=0&&this.#H.getVisibleSlice(i,a).forEach((e,n)=>{t.set(i+n,e)}),r==null){i=-1,a=-1;continue}i=r,a=r}return Array.from({length:r-n+1},(e,r)=>{let i=n+r,a=this.#Se(i),o=t.get(a),s=this.#b[a];if(o==null||s==null)throw Error(`Missing projection row for filtered visible index ${String(i)}`);return this.#$(o,i,a,{ancestorPaths:this.#re(a),path:s})})}return this.#H.getVisibleSlice(n,r).map((e,t)=>{let r=n+t,i=this.#b[r];if(i==null)throw Error(`Missing projection path for visible index ${String(r)}`);return this.#$(e,r,r,{ancestorPaths:this.#re(r),path:i})})}getStickyRowCandidates(e,t){if(this.#F!=null)return null;if(this.#G===0||e<=0||t<=0)return[];let n=[];for(let r=0;r<this.#G;r+=1){let i=e+r*t,a=Math.min(this.#G-1,Math.floor(i/t)),o=this.#te(a,r)??(a>0?this.#te(a-1,r):void 0);if(o==null)break;n.push({row:this.#ee(o),subtreeEndIndex:o.subtreeEndIndex})}return n}getItem(e){let t=this.#H.getPathInfo(e);return t==null?null:this.#Q(t.path,t)}resolveMountedDirectoryPathFromInput(e){let t=this.#H.getPathInfo(e);return t?.kind===`directory`?t.path:null}toggleMountedDirectoryFromInput(e){let t=this.resolveMountedDirectoryPathFromInput(e);t!=null&&this.#ze(t)}selectAllVisiblePaths(){this.#Ie();let e=[...this.#be()];this.#ae(e,this.#c??this.#z)}selectOnlyPath(e){let t=this.#Ne(e);t!=null&&this.#ae([t],t)}selectOnlyMountedPathFromInput(e){this.#ae([e],e)}selectPath(e){let t=this.#Ne(e);t==null||this.#B.has(t)||this.#ae([...this.#B,t])}deselectPath(e){let t=this.#Ne(e);t!=null&&this.#B.has(t)&&this.#ae([...this.#B].filter(e=>e!==t))}toggleFocusedSelection(){this.#c!=null&&this.togglePathSelectionFromInput(this.#c)}togglePathSelection(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.deselectPath(t);return}this.selectPath(t)}}togglePathSelectionFromInput(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.#ae([...this.#B].filter(e=>e!==t),t);return}this.#ae([...this.#B,t],t)}}selectPathRange(e,t){let n=this.#Ne(e);if(n==null)return;this.#Ie();let r=this.#z,i=r==null?-1:this.#Ce(r),a=this.#Ce(n);if(i===-1||a===-1){let e=t?[...this.#B,n]:[n];this.#ae(e,n);return}let[o,s]=i<=a?[i,a]:[a,i],c=this.#be().slice(o,s+1),l=t?[...this.#B,...c]:c;this.#ae(l,r)}extendSelectionFromFocused(e){if(this.#c==null)return;let t=this.#s;if(t===-1)return;let n=Math.min(this.#G-1,Math.max(0,t+e));if(n===t)return;!this.#l&&n>=this.#b.length&&this.#Ie();let r=this.#be(),i=r[t]??null,a=r[n]??null;if(i==null||a==null)return;let o=new Set(this.#B);o.has(i)&&o.has(a)?o.delete(i):o.add(a),this.#ae([...o],this.#z??i,!1),this.#Fe(n)}getDragAndDropConfig(){return this.#r}isDragAndDropEnabled(){return this.#r!=null}getDragSession(){return this.#i==null?null:{draggedPaths:[...this.#i.draggedPaths],primaryPath:this.#i.primaryPath,target:this.#i.target==null?null:{...this.#i.target}}}startDrag(e){if(this.#r==null)return!1;let t=this.#Ne(e);if(t==null||this.#M!=null&&this.#M.length>0)return!1;let n=this.getSelectedPaths(),r=NI(t,n);return this.#r.canDrag?.(r)!==!1&&(n.includes(t)||this.#ae([t],t,!1),this.#Pe(t),this.#i={draggedPaths:r,primaryPath:t,target:null},this.#De(),!0)}setDragTarget(e){let t=this.#i;if(t==null)return;let n=e;if(n!=null){let e=FI(t.draggedPaths,n);(II(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}PI(t.target,n)||(this.#i={...t,target:n},this.#De())}cancelDrag(){this.#i!=null&&(this.#i=null,this.#De())}completeDrag(){let e=this.#i;if(e==null)return!1;this.#i=null;let t=e.target==null?null:{...e.target};if(t==null)return this.#De(),!1;let n=FI(e.draggedPaths,t);if(II(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#De(),!1;let r=RI(e.draggedPaths,t);if(r==null)return this.#De(),!1;try{if(r.operations.length===1){let e=r.operations[0];if(e==null||e.type!==`move`)throw Error(`Expected a single move operation for one-item drops`);this.#H.move(e.from,e.to,{collision:e.collision})}else this.#ce(r.operations),this.#H.batch(r.operations)}catch(e){return this.#De(),this.#r?.onDropError?.(e instanceof Error?e.message:String(e),n),!1}return this.#r?.onDropComplete?.(r.result),!0}subscribe(e){return this.#t.add(e),e(),()=>{this.#t.delete(e)}}add(e){this.#H.add(e)}remove(e,t={}){this.#H.remove(e,t)}move(e,t,n={}){this.#H.move(e,t,n)}batch(e){this.#H.batch(e)}onMutation(e,t){let n=e,r=t,i=this.#n.get(n);return i??(i=new Set,this.#n.set(n,i)),i.add(r),()=>{let e=this.#n.get(n);e?.delete(r),e?.size===0&&this.#n.delete(n)}}setSearch(e){this.#Te(e,!0)}openSearch(e=``){this.#Te(e,!0)}closeSearch(){this.#Te(null,!0)}isSearchOpen(){return this.#M!==null}getSearchValue(){return this.#M??``}getSearchMatchingPaths(){return this.#k}focusNextSearchMatch(){this.#we(1)}focusPreviousSearchMatch(){this.#we(-1)}startRenaming(e=this.#c??``,t={}){if(!this.#w)return!1;let n=this.#H.getPathInfo(e);if(n==null)return!1;let r=n.path,i=$I(r),a=nL(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of XI(r))this.#H.isExpanded(e)||this.#H.expand(e);return this.#ae([r],r,!1),this.#M!=null&&(this.#Te(null,!1),this.#y?.(this.#M)),this.#Pe(r),this.#T=r,this.#E=tL(r),this.#D=t.removeIfCanceled??!1,this.#De(),!0}#q(){if(this.#T==null)return;let e=this.#T,t=this.#D;if(this.#T=null,this.#E=``,this.#D=!1,t){this.remove(e,$I(e)?{recursive:!0}:void 0);return}this.#Pe(e),this.#De()}#J(){let e=this.#T;if(e==null)return;if(this.#D&&this.#E.trim().length===0){this.#T=null,this.#E=``,this.#D=!1,this.remove(e,$I(e)?{recursive:!0}:void 0);return}let t=$I(e),n=kI({files:this.#H.list(),isFolder:t,nextBasename:this.#E,path:nL(e)});if(this.#T=null,this.#E=``,this.#D=!1,`error`in n){this.#Pe(e),this.#v?.(n.error),this.#De();return}if(n.sourcePath===n.destinationPath){this.#Pe(e),this.#De();return}this.#_?.({destinationPath:n.destinationPath,isFolder:n.isFolder,sourcePath:n.sourcePath}),this.move(rL(n.sourcePath,t),rL(n.destinationPath,t))}#Y(e){this.#T!=null&&this.#E!==e&&(this.#E=e,this.#De())}resetPaths(e,t={}){let n=!Array.isArray(e),r=n?void 0:e,i=n?e:t,a=this.#H.list().length,o=this.#G,s=BI({paths:r,preparedInput:i.preparedInput},`resetPaths`,this.#e.sort),c=this.#le(s.paths,s.preparedInput,i.initialExpandedPaths),l=this.#c,u=this.#T,d=this.getSelectedPaths(),f=this.#z;this.#K?.(),this.#H=c,this.#d.clear(),this.#he();let p=d.map(e=>c.getPathInfo(e)?.path??null).filter(e=>e!=null),m=!YI(this.#B,p);this.#B=new Set(p),m&&(this.#V+=1),this.#z=f==null?null:c.getPathInfo(f)?.path??null,this.#T=u==null?null:c.getPathInfo(u)?.path??null,this.#T??(this.#E=``,this.#D=!1),this.#je(l,l!=null||p.length>0||this.#z!=null),this.#K=this.#Re(),this.#De(),this.#Oe({canonicalChanged:!0,operation:`reset`,pathCountAfter:s.paths.length,pathCountBefore:a,projectionChanged:!0,usedPreparedInput:i.preparedInput!=null,visibleCountDelta:this.#G-o})}#X(e){this.#Ie();let t=ZI(e),n=QI(e,t),r=null,i=null;for(let e of this.#be()){if(ZI(e)!==t)continue;let a=QI(e,t);if(a<n){r=e;continue}if(a>n){i=e;break}}return r??i}#Z(e){let t=this.#Ce(e);if(t!==-1)return t;let n=XI(e);for(let e=n.length-1;e>=0;--e){let t=n[e];if(t==null)continue;let r=this.#Ce(t);if(r!==-1)return r}return this.#be().length>0?0:-1}#Q(e,t){let n=this.#d.get(e);if(n!=null)return n;let r=t??this.#H.getPathInfo(e);if(r==null)return null;let i=r.kind===`directory`?this.#oe(r.path):this.#se(r.path);return this.#d.set(r.path,i),i}#$(e,t,n,r){return{ancestorPaths:r.ancestorPaths,depth:e.depth,flattenedSegments:e.flattenedSegments?.map(e=>({isTerminal:e.isTerminal,name:e.name,path:e.path})),hasChildren:e.hasChildren,index:t,isExpanded:e.isExpanded,isFlattened:e.isFlattened,isFocused:r.path===this.#c,isSelected:this.#B.has(r.path),kind:e.kind,level:e.depth,name:e.name,path:r.path,posInSet:r.posInSet??this.#x[n]??0,setSize:r.setSize??this.#S[n]??0}}#ee(e){return this.#$(e.row,e.index,e.index,{ancestorPaths:e.ancestorPaths,path:e.row.path,posInSet:e.posInSet,setSize:e.setSize})}#te(e,t){let n=this.#H.getVisibleRowContext(e);return n==null?void 0:n.ancestorRows[t]??(t===n.ancestorRows.length&&n.row.kind===`directory`&&n.row.isExpanded?n:void 0)}#ne(e){let t=this.#a.get(e);if(t!=null)return t;let n=this.#u(e),r=n<0?[]:[...this.#ne(n),n];return this.#a.set(e,r),r}#re(e){let t=this.#o.get(e);if(t!=null)return t;let n=this.#ne(e).map(e=>this.#b[e]??``).filter(e=>e!==``);return this.#o.set(e,n),n}#ie(e){this.#H.collapse(e)}#ae(e,t=this.#z,n=!0){let r=[...new Set(e)],i=!YI(this.#B,r),a=this.#z!==t;(i||a)&&(this.#B=new Set(r),this.#z=t,i&&(this.#V+=1),n&&this.#De())}#oe(e){return{collapse:()=>{this.#ie(e)},deselect:()=>{this.deselectPath(e)},expand:()=>{this.#ke(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!0,isExpanded:()=>this.#H.isExpanded(e),isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)},toggle:()=>{this.#ze(e)}}}#se(e){return{deselect:()=>{this.deselectPath(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!1,isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)}}}#ce(e){let t=this.#H.list();this.#le(t).batch(e)}#le(e,t,n){return new uI({...this.#e,paths:e,preparedInput:t??void 0,...n===void 0?{}:{initialExpandedPaths:n}})}#ue(){return this.#h??=this.#H.list(),this.#h}#de(){if(this.#m!=null)return this.#m;let e=new Set;for(let t of this.#ue()){e.add(t);for(let n of XI(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#fe(){return this.#g??=this.#ue().map(eL),this.#g}#pe(){return this.#f??=this.#de().filter(e=>e.endsWith(`/`)),this.#f}#me(){return this.#p??=this.#pe().map(eL),this.#p}#he(){this.#f=null,this.#p=null,this.#m=null,this.#h=null,this.#g=null}#ge(){return this.#pe().filter(e=>this.#H.isExpanded(e))}#_e(e){let t=new Set(this.#j??[]);if(e)for(let e of this.#B)for(let n of XI(e))t.add(n);this.#ve(t)}#ve(e){this.#W=!0;try{for(let t of this.#pe()){let n=e.has(t),r=this.#H.isExpanded(t);n&&!r?this.#H.expand(t):!n&&r&&this.#H.collapse(t)}}finally{this.#W=!1}}#ye(){if(this.#M==null||this.#M.length===0){this.#k=[],this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let e=this.#b;if(this.#k=e.filter(e=>this.#O.has(e)),this.#A!==`hide-non-matches`||this.#O.size===0){this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let t=[],n=[],r=new Map;for(let[i,a]of e.entries())this.#N?.has(a)===!0&&(r.set(a,n.length),t.push(i),n.push(a));this.#F=t,this.#I=n,this.#P=r,this.#G=n.length}#be(){return this.#I??this.#b}#xe(e){return this.#I==null?this.#H.getVisibleIndex(e)??-1:this.#P?.get(e)??-1}#Se(e){return this.#F?.[e]??e}#Ce(e){return this.#P?.get(e)??this.#H.getVisibleIndex(e)??-1}#we(e){let t=this.#k;if(t.length===0)return;let n=this.#c,r=n==null?-1:t.indexOf(n),i=t[r<0?e>0?0:t.length-1:Math.min(t.length-1,Math.max(0,r+e))];i!=null&&this.focusPath(i)}#Te(e,t){let n=e==null?null:iL(e),r=this.#M;if(r!==n){if(r==null&&n!=null&&(this.#j=this.#ge()),this.#M=n,n==null)this.#_e(!0),this.#j=null,this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else if(n.length===0)this.#_e(!1),this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else{let e=this.#Ee();this.#je(e,!0)}t&&(this.#y?.(this.#M),this.#De())}}#Ee(){if(this.#M==null||this.#M.length===0)return this.#O.clear(),this.#c;let e=this.#M,t=this.#ue(),n=this.#fe(),r=[],i=new Set,a=null;for(let o=0;o<t.length;o+=1){if(!n[o].includes(e))continue;let s=t[o];r.push(s),i.add(s),a??=s}let o=this.#pe(),s=this.#me();for(let t=0;t<o.length;t+=1){if(!s[t].includes(e))continue;let n=o[t];i.has(n)||(r.push(n),i.add(n),a??=n)}this.#O=i;let c=this.#A===`hide-non-matches`&&r.length>0?new Set:null;this.#N=c;let l=this.#A===`expand-matches`?new Set(this.#j??[]):new Set;for(let e of r){c?.add(e),e.endsWith(`/`)&&l.add(e);for(let t of XI(e))l.add(t),c?.add(t)}return this.#ve(l),a??this.#c}#De(){for(let e of this.#t)e()}#Oe(e){this.#n.get(e.operation)?.forEach(t=>{t(e)}),this.#n.get(`*`)?.forEach(t=>{t(e)})}#ke(e){for(let t of XI(e))this.#H.isExpanded(t)||this.#H.expand(t);this.#H.isExpanded(e)||this.#H.expand(e)}#Ae(e){let t=this.#G;if(t===0)return;let n=this.#s===-1?0:this.#s,r=Math.min(t-1,Math.max(0,n+e));(r!==n||this.#s===-1)&&(!this.#l&&this.#F==null&&r>=this.#b.length&&this.#Ie(),this.#Fe(r))}#je(e,t=!0){let n=this.#H.getVisibleCount();this.#U=n;let r=uL(this.#H.getVisibleTreeProjectionData(t?void 0:Math.min(n,oL)),e,t?e=>this.#H.getVisibleIndex(e):void 0);this.#a.clear(),this.#o.clear(),this.#l=r.paths.length>=n,this.#u=r.getParentIndex,this.#b=r.paths,this.#x=r.posInSetByIndex,this.#S=r.setSizeByIndex,this.#ye(),this.#s=e==null?this.#be().length>0?0:-1:this.#Z(e),this.#c=this.#s<0?null:this.#Me(this.#s)}#Me(e){return this.#be()[e]??(this.#F==null?this.#H.getVisibleRowContext(e)?.row.path??null:null)}#Ne(e){return this.#H.getPathInfo(e)?.path??null}#Pe(e){if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t,!1)}#Fe(e,t=!0){let n=this.#Me(e);n!=null&&(this.#s!==e||this.#c!==n)&&(this.#s=e,this.#c=n,t&&this.#De())}#Ie(){this.#l||this.#je(this.#c,!0)}#Le(e){let t=WI(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=WI(this.#c,e,!0),r=[...this.#B].map(t=>WI(t,e)).filter(e=>e!=null).map(e=>this.#H.getPathInfo(e)?.path??null).filter(e=>e!=null),i=WI(this.#z,e),a=i==null?null:this.#H.getPathInfo(i)?.path??null,o=[...new Set(r)];return YI(this.#B,o)||(this.#B=new Set(o),this.#V+=1),this.#z=a,n}#Re(){return this.#H.on(`*`,e=>{if(this.#W)return;e.canonicalChanged&&(this.#d.clear(),this.#he()),this.#i!=null&&VI(e)&&(this.#i=null);let t=VI(e)?this.#Le(e):this.#c,n=this.#M!=null&&this.#M.length>0?this.#Ee():this.#M===``?this.#c:t,r=this.#M!=null||e.operation!==`expand`&&e.operation!==`collapse`;this.#je(n,r),this.#De();let i=JI(e);i!=null&&this.#Oe(i)})}#ze(e){if(this.#H.isExpanded(e)){this.#ie(e);return}this.#ke(e)}},fL=e=>{if(e==null||e.length===0)return`0`;let t=`${e.length}`;for(let n of e)t+=`\0${n.path}\0${n.status}`;return t};function pL(e){let t=e.endsWith(`/`),n=``,r=-1;for(let t=0;t<=e.length;t+=1){if(e[t]!==`/`&&t!==e.length){r===-1&&(r=t);continue}r!==-1&&(n!==``&&(n+=`/`),n+=e.slice(r,t),r=-1)}return n===``?null:{isDirectory:t,path:n}}function mL(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=[],r=0;for(;;){let e=t.indexOf(`/`,r);if(e===-1)break;n.push(t.slice(0,e+1)),r=e+1}return n}function hL(e,t){return t?`${e}/`:e}function gL(e,t=null){let n=fL(e==null?void 0:[...e]);if(n===`0`)return null;if(t?.signature===n)return t;let r=new Map,i=new Set,a=new Set,o=new Map;for(let t of e??[]){let e=vL(t);e!=null&&xL({canonicalPath:e.canonicalPath,changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,isDirectory:e.isDirectory,status:t.status,statusByPath:r})}return r.size===0?null:{changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,signature:n,statusByPath:r}}function _L(e,t){let n=t?.remove??[],r=t?.set??[];if(n.length===0&&r.length===0)return e;let i=new Map(e?.statusByPath),a=new Set(e?.directoriesWithChanges),o=new Set(e?.ignoredDirectoryPaths),s=new Map(e?.changeCountByDirectoryPath),c=!1;for(let e of n){let t=yL(e);t!=null&&(c=bL({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,statusByPath:i})||c)}for(let e of r){let t=vL(e);t!=null&&(c=xL({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,isDirectory:t.isDirectory,status:e.status,statusByPath:i})||c)}return c?i.size===0?null:{changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,signature:wL(i),statusByPath:i}:e}function vL(e){return yL(e.path)}function yL(e){let t=pL(e);if(t!=null)return{canonicalPath:hL(t.path,t.isDirectory),isDirectory:t.isDirectory}}function bL({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,statusByPath:i}){let a=i.get(e);return a!=null&&(i.delete(e),a===`ignored`&&e.endsWith(`/`)&&r.delete(e),CL(t,n,e),!0)}function xL({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:i,status:a,statusByPath:o}){let s=o.get(e);return s!==a&&(s??SL(t,n,e),o.set(e,a),a===`ignored`&&i?r.add(e):i&&r.delete(e),!0)}function SL(e,t,n){for(let r of mL(n))e.set(r,(e.get(r)??0)+1),t.add(r)}function CL(e,t,n){for(let r of mL(n)){let n=(e.get(r)??0)-1;n>0?e.set(r,n):(e.delete(r),t.delete(r))}}function wL(e){let t=`${e.size}`;for(let[n,r]of e)t+=`\0${n}\0${r}`;return t}var TL,EL,DL,OL,kL,AL,jL,ML,NL,PL,FL={},IL=[],LL=Array.isArray,RL=IL.slice,zL=Object.assign;function BL(e){e&&e.parentNode&&e.remove()}function VL(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e!=`function`?i=t[a]:o[a]=t[a];return arguments.length>2&&(o.children=arguments.length>3?RL.call(arguments,2):n),HL(e,o,r,i,null)}function HL(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++EL,__i:-1,__u:0};return i==null&&TL.vnode!=null&&TL.vnode(a),a}function UL(e){return e.children}function WL(e,t){this.props=e,this.context=t,this.__g=0}function GL(e,t){if(t==null)return e.__?GL(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?GL(e):null}function KL(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=n.__e;break}return KL(e)}}function qL(e){(8&e.__g||!(e.__g|=8)||!DL.push(e)||kL++)&&OL==TL.debounceRendering||((OL=TL.debounceRendering)||queueMicrotask)(JL)}function JL(){for(var e,t,n,r,i,a,o,s,c=1;DL.length;)DL.length>c&&DL.sort(AL),e=DL.shift(),c=DL.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=zL({},r)).__v=r.__v+1,TL.vnode&&TL.vnode(n),nR(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??GL(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,iR(a,n,o),n.__e!=i&&KL(n)));kL=0}function YL(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||IL,b=t.length;for(c=XL(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?FL:y[m.__i]||FL,m.__i=f,_=nR(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&sR(p.ref,null,m),u.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),(v=!!(4&m.__u))||p.__k===m.__k?c=ZL(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function XL(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(c=a+f,(o=e.__k[a]=typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?HL(null,o,null,null,null):LL(o)?HL(UL,{children:o},null,null,null):o.constructor==null&&o.__b>0?HL(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(l=o.__i=QL(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=GL(s)),cR(s,s));return r}function ZL(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=ZL(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=GL(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function QL(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&!(2&l.__u);if(l===null&&e.key==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function $L(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function eR(e,t,n,r,i){var a;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||$L(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||$L(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(jL,`$1`)),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||={},e.__l[t+a]=n,n?r?n.l=r.l:(n.l=ML,e.addEventListener(t,a?PL:NL,a)):e.removeEventListener(t,a?PL:NL,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function tR(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=ML++;else if(t.u<n.l)return;return n(TL.event?TL.event(t):t)}}}function nR(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v,y,b,x,S,C,w,ee,T,E,te,D,ne,re,O=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),n.__c.__z&&(s=t.__e=n.__e=(a=n.__c.__z)[0],n.__c.__z=null)),(d=TL.__b)&&d(t);n:if(typeof O==`function`)try{if(v=t.props,y=`prototype`in O&&O.prototype.render,b=(d=O.contextType)&&r[d.__c],x=d?b?b.props.value:d.__:r,n.__c?2&(f=t.__c=n.__c).__g&&(f.__g|=1,_=!0):(y?t.__c=f=new O(v,x):(t.__c=f=new WL(v,x),f.constructor=O,f.render=lR),b&&b.sub(f),f.props=v,f.state||(f.state={}),f.context=x,f.__n=r,p=!0,f.__g|=8,f.__h=[],f._sb=[]),y&&f.__s==null&&(f.__s=f.state),y&&O.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=zL({},f.__s)),zL(f.__s,O.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&O.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&O.getDerivedStateFromProps==null&&v!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,x),!(4&f.__g)&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(v,f.__s,x)||t.__v==n.__v){for(t.__v!=n.__v&&(f.props=v,f.state=f.__s,f.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[],f.__h.length&&o.push(f);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,x),y&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,g)})}if(f.context=x,f.props=v,f.__P=e,f.__g&=-5,C=TL.__r,w=0,y){for(f.state=f.__s,f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),ee=0;ee<f._sb.length;ee++)f.__h.push(f._sb[ee]);f._sb=[]}else do f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(8&f.__g&&++w<25);f.state=f.__s,f.getChildContext!=null&&(r=zL({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),T=d,d!=null&&d.type===UL&&d.key==null&&(T=aR(d.props.children)),s=YL(e,LL(T)?T:[T],t,n,r,i,a,o,s,c,l,u),t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__g&=-4)}catch(e){if(t.__v=null,c||a!=null){if(e.then){for(E=0,te=!1,t.__u|=c?160:128,t.__c.__z=[],D=0;D<a.length;D++)(ne=a[D])==null||te||(ne.nodeType==8&&ne.data==`$s`?(E>0&&t.__c.__z.push(ne),E++,a[D]=null):ne.nodeType==8&&ne.data==`/$s`?(--E>0&&t.__c.__z.push(ne),te=E===0,s=a[D],a[D]=null):E>0&&(t.__c.__z.push(ne),a[D]=null));if(!te){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(re=a.length;re--;)BL(a[re]);rR(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||rR(t);TL.__e(e,t,n)}else s=t.__e=oR(n.__e,t,n,r,i,a,o,c,l,u);return(d=TL.diffed)&&d(t),128&t.__u?void 0:s}function rR(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(rR)}function iR(e,t,n){for(var r=0;r<n.length;r++)sR(n[r],n[++r],n[++r]);TL.__c&&TL.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){TL.__e(e,t.__v)}})}function aR(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:LL(e)?e.map(aR):zL({},e)}function oR(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v=n.props,y=t.props,b=t.type;if(b==`svg`?i=`http://www.w3.org/2000/svg`:b==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(u=0;u<a.length;u++)if((m=a[u])&&`setAttribute`in m==!!b&&(b?m.localName==b:m.nodeType==3)){e=m,a[u]=null;break}}if(e==null){if(b==null)return l.createTextNode(y);e=l.createElementNS(i,b,y.is&&y),s&&=(TL.__m&&TL.__m(t,a),!1),a=null}if(b==null)v===y||s&&e.data==y||(e.data=y);else{if(a&&=RL.call(e.childNodes),v=n.props||FL,!s&&a!=null)for(v={},u=0;u<e.attributes.length;u++)v[(m=e.attributes[u]).name]=m.value;for(u in v)if(m=v[u],u!=`children`){if(u==`dangerouslySetInnerHTML`)f=m;else if(!(u in y)){if(u==`value`&&`defaultValue`in y||u==`checked`&&`defaultChecked`in y)continue;eR(e,u,null,m,i)}}for(u in _=1&n.__u,y)m=y[u],u==`children`?p=m:u==`dangerouslySetInnerHTML`?d=m:u==`value`?h=m:u==`checked`?g=m:s&&typeof m!=`function`||v[u]===m&&!_||eR(e,u,m,v[u],i);if(d)s||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=``),YL(b==`template`?e.content:e,LL(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&GL(n,0),s,c,l),a!=null)for(u=a.length;u--;)BL(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||eR(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&eR(e,u,g,v[u],i))}return e}function sR(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){TL.__e(e,n)}}function cR(e,t,n){var r,i;if(TL.unmount&&TL.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||sR(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){TL.__e(e,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&cR(r[i],t,n||typeof e.type!=`function`);n||BL(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function lR(e,t,n){return this.constructor(e,n)}function uR(e,t){var n,r,i,a;t==document&&(t=document.documentElement),TL.__&&TL.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=VL(UL,null,[e]),i=[],a=[],nR(t,e,r||FL,FL,t.namespaceURI,r?null:t.firstChild?RL.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),iR(i,e,a)}function dR(e,t){e.__u|=32,uR(e,t)}TL={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!(1&i.__g)){i.__g|=4;try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=8&i.__g),o)return void(i.__g|=2)}catch(t){e=t}}throw kL=0,e}},EL=0,WL.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=zL({},this.state);typeof e==`function`&&(e=e(zL({},n),this.props)),e&&zL(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),qL(this))},WL.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),qL(this))},WL.prototype.render=UL,DL=[],kL=0,AL=function(e,t){return e.__v.__b-t.__v.__b},jL=/(PointerCapture)$|Capture$/i,ML=0,NL=tR(!1),PL=tR(!0);var fR=0;Array.isArray;function Q(e,t,n,r,i,a){t||={};var o,s,c=t;if(`ref`in c&&typeof e!=`function`)for(s in c={},t)s==`ref`?o=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--fR,__i:-1,__u:0,__source:i,__self:a};return TL.vnode&&TL.vnode(l),l}var pR=16,mR=16,hR={};function gR({name:e,remappedFrom:t,token:n,width:r,height:i,viewBox:a,label:o,alignCapitals:s=!1}){"use no memo";let c=`#${e.replace(/^#/,``)}`,{width:l,height:u,viewBox:d}=hR[e]??{width:pR,height:mR},f=r??l,p=i??u,m=a??d??`0 0 ${l} ${u}`;return Q(`svg`,{"data-icon-name":t??e,"data-icon-token":n,"data-align-capitals":s,...o==null?{"aria-hidden":!0}:{"aria-label":o,role:`img`},viewBox:m,width:f,height:p,children:Q(`use`,{href:c})})}var _R=e=>e!==void 0&&/\s/.test(e),vR=(e,t)=>{let n=t=>_R(e[t-1])||_R(e[t]);if(!n(t))return t;for(let r=1;r<e.length;r++){let i=t-r;if(i>0&&!n(i))return i;let a=t+r;if(a<e.length&&!n(a))return a}return t},yR=e=>vR(e,Math.ceil(e.length/2)),bR=e=>{if(e.length<2)return[e,``];let t=yR(e);return[e.slice(0,t),e.slice(t)]},xR=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:yR(e);return[e.slice(0,r),e.slice(r)]},SR=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`/`)+1,n=e.length-t>25,r=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]},CR=(e,{splitIndex:t}={})=>{if(typeof t!=`number`){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}return[e.slice(0,t),e.slice(t)]},wR=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=e.length-t;return[e.slice(0,n),e.slice(n)]},TR=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=t;return[e.slice(0,n),e.slice(n)]};function ER({children:e,marker:t,variant:n=`default`}){"use no memo";return Q(`div`,{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:Q(`div`,{"data-truncate-marker":!0,children:typeof t==`function`?t({children:e}):n===`fade`?Q(`span`,{"data-truncate-fade":!0}):t})})}function DR(e){"use no memo";let{mode:t,children:n}=e;return Q(`div`,{children:[Q(`div`,{"data-truncate-content":`visible`,children:t===`fruncate`?Q(`span`,{children:n}):n}),Q(`div`,{"data-truncate-content":`overflow`,"aria-hidden":!0,children:t===`fruncate`?Q(`span`,{children:n}):n})]})}function OR({children:e,mode:t=`truncate`,marker:n=`…`,variant:r=`default`,...i}){"use no memo";let a=Q(DR,{mode:t,children:e},`content`),o=Q(ER,{marker:n,mode:t,variant:r},`marker`),s=Q(`div`,{"data-truncate-fill":!0},`fill`);return Q(`div`,{"data-truncate-container":t,"data-truncate-variant":r,...i,children:Q(`div`,{"data-truncate-grid":!0,children:t===`truncate`?[a,o]:[o,a,s]})})}function kR({children:e,...t}){"use no memo";return Q(OR,{mode:`truncate`,...t,children:e})}function AR({children:e,...t}){"use no memo";return Q(OR,{mode:`fruncate`,...t,children:e})}function jR({children:e,contents:t,priority:n=`end`,split:r=`center`,minimumLength:i=12,className:a,style:o,...s}){"use no memo";let c=null,l=null;if(Array.isArray(t)){if(t.length!==2)return console.error(`MiddleTruncate: contents must be an array of two items`),null;c=Q(kR,{...s,children:t[0]}),l=Q(AR,{...s,children:t[1]})}else{if(typeof e!=`string`)return console.error(`MiddleTruncate: children must be a string`),null;if(e.length===0)return Q(`div`,{className:a,style:o});if(e.length<i)return Q(n===`end`?AR:kR,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=bR:r===`extension`?t=xR:r===`leaf-path`&&(t=SR);else if(typeof r==`number`)t=CR,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=wR:e===`first`&&(t=TR)}else typeof r==`function`&&(t=r);t??=bR;let[f,p]=t(e,{priority:n,variant:s.variant,splitIndex:typeof u==`number`?u:void 0,splitOffset:typeof d==`number`?d:void 0}),m=f.length>=p.length,h=n===`equal`&&!m,g=n===`equal`&&m,_={},v={};h&&(_.marker=``),g&&(v.marker=``),c=Q(kR,{...s,..._,children:f}),l=Q(AR,{...s,...v,children:p})}return Q(`div`,{"data-truncate-group-container":`middle`,className:a,style:o,children:[Q(`div`,{"data-truncate-segment-priority":n===`start`||n===`equal`?`1`:`2`,children:c}),Q(`div`,{"data-truncate-segment-priority":n===`end`||n===`equal`?`1`:`2`,children:l})]})}var MR={endIndex:-1,startIndex:-1};function NR(e,t,n){return Math.min(Math.max(e,t),n)}function PR(e,t){return e<0||t<e?MR:{endIndex:t,startIndex:e}}function FR(e){return e.startIndex<0||e.endIndex<e.startIndex}function IR(e,t){return FR(e)?0:(e.endIndex-e.startIndex+1)*t}function LR(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function RR(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function zR(e){let t=new Map;return e.forEach((e,n)=>{if(e.kind!==`directory`||!e.isExpanded)return;let r=e.ancestorPaths.length,i=t.get(r);if(i==null){t.set(r,[n]);return}i.push(n)}),t}function BR(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=Math.floor((n+r)/2),o=e[a];if(o==null)break;if(o<=t){i=a,n=a+1;continue}r=a-1}return i}function VR(e){let t=new Map,n=[];for(let r=0;r<e.length;r+=1){let i=e[r];if(i==null)continue;let a=i.kind===`directory`&&i.isExpanded?[...i.ancestorPaths,i.path]:i.ancestorPaths,o=0;for(;o<n.length&&o<a.length&&n[o]===a[o];)o+=1;for(let e=n.length-1;e>=o;--e){let i=n[e];i!=null&&t.set(i,r-1)}n.length=o;for(let e=o;e<a.length;e+=1){let t=a[e];t!=null&&n.push(t)}}let r=e.length-1;for(let e of n)t.set(e,r);return t}function HR(e,t,n){if(e.length===0||t<=0)return[];let r=VR(e),i=zR(e),a=[];for(let r=0;r<e.length;r+=1){let o=i.get(r);if(o==null||o.length===0)break;let s=t+r*n,c=BR(o,Math.min(e.length-1,Math.floor(s/n))),l=null;for(;c>=0;){let t=o[c],n=t==null?null:e[t]??null;if(n!=null&&(r===0||n.ancestorPaths[r-1]===a[r-1]?.path)){l=n;break}--c}if(l==null)break;a.push(l)}return a.map((i,a)=>{let o=a*n,s=(r.get(i.path)??e.length-1)+1;if(s>=e.length)return{row:i,top:o};let c=s*n-t;return{row:i,top:Math.min(o,c-n)}}).filter(e=>e.top+n>0)}function UR(e,t){let n=t.totalRowCount??e.length,r=n*t.itemHeight,i=Math.max(0,t.viewportHeight),a=Math.max(0,Math.floor(t.overscan)),o=Math.max(0,r-i),s=NR(t.scrollTop,0,o),c=t.stickyRows??HR(e,s,t.itemHeight),l=c.reduce((e,n)=>Math.max(e,n.top+t.itemHeight),0),u=Math.min(r,s+l),d=Math.max(0,i-l),f=Math.max(0,r-u),p=LR(s,n,t.itemHeight),m=LR(u,n,t.itemHeight),h=l<=0||p<0||p>=n?-1:p,g=h===-1?-1:Math.min(n-1,m-1),_=h===-1||g<h?0:g-h+1,v=d<=0||m>=n?MR:PR(m,RR(u+d,n,t.itemHeight)),y=g+1,b=FR(v)?MR:PR(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=IR(b,t.itemHeight);return{occlusion:{firstOccludedIndex:h,lastOccludedIndex:g,occludedCount:_},physical:{itemHeight:t.itemHeight,maxScrollTop:o,overscan:a,scrollTop:s,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:f,paneHeight:d,paneTop:u},sticky:{height:l,rows:c},visible:v,window:{endIndex:b.endIndex,height:x,offsetTop:FR(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var WR={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},GR={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},KR=`Contains git status items`;function qR(e){return e.current?!0:(e.current=!0,!1)}function JR(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:a}=e;if(n<0)return null;let o=Math.max(0,i),s=n*r,c=s+r;if(s<t+o){let e=Math.max(0,s-o);return e===t?null:e}if(c>t+a){let e=c-a;return e===t?null:e}return null}function YR(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:a=0,totalHeight:o,viewportHeight:s}=e;if(i===`nearest`)return JR({currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:a,viewportHeight:s});if(n<0)return null;let c=Math.max(0,a),l=n*r,u=Math.max(0,s-c),d=i===`center`?c+Math.max(0,(u-r)/2):c,f=Math.max(0,o-s),p=Math.max(0,Math.min(l-d,f));return p===t?null:p}function XR(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:a,viewportHeight:o}=e;if(n<0)return null;let s=Math.max(0,i),c=n*r,l=c+r,u=t+s,d=t+o;if(c>=u&&l<=d)return null;let f=Math.max(0,a-o),p=Math.max(0,Math.min(c-s,f));return p===t?null:p}function ZR(e){if(e==null||!e.isConnected||e===document.body||e===document.documentElement)return!1;e.focus({preventScroll:!0});let t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}function QR(e){let t=e.getRootNode();if(t instanceof ShadowRoot){let e=t.activeElement;return e instanceof HTMLElement?e:null}let n=document.activeElement;return n instanceof HTMLElement&&e.contains(n)?n:null}function $R(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function ez(e,t){return e!=null&&e>0?e:t}function tz(e){let t=e.borderBoxSize,n=Array.isArray(t)?t[0]:t;return n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0?n.blockSize:e.contentRect.height>0?e.contentRect.height:null}function nz(e,t,n,r,i=0){let a=JR({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a!=null&&(e.scrollTop=a,!0)}function rz(e,t,n,r,i,a,o=0){let s=YR({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:a,topInset:o,totalHeight:i,viewportHeight:r});return s!=null&&(e.scrollTop=s,!0)}function iz(e,t,n,r,i,a){let o=XR({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHeight:r});return o!=null&&(e.scrollTop=o,!0)}function az(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function oz(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?`reset`:r?n===t?`ignore`:`focus-input`:`reveal-canonical`}function sz({ariaLabel:e,isFlattened:t=!1,ref:n,value:r,onBlur:i,onInput:a}){return Q(`input`,{ref:n,"data-item-rename-input":!0,...t?{"data-item-flattened-rename-input":!0}:{},"aria-label":e,value:r,onBlur:i,onInput:a,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()})}function cz(e){let{row:t,mode:n,targetPath:r,ariaLabel:i,domId:a,isParked:o,itemHeight:s,features:c,state:l,extraStyle:u}=e,d=n===`sticky`,f=t.ancestorPaths.at(-1)??``,p={};return l.isFocusRinged&&(p[`data-item-focused`]=!0),t.isSelected&&(p[`data-item-selected`]=!0),l.isContextHovered&&(p[`data-item-context-hover`]=`true`),l.isDragTarget&&(p[`data-item-drag-target`]=!0),l.isDragging&&(p[`data-item-dragging`]=!0),l.effectiveGitStatus!=null&&(p[`data-item-git-status`]=l.effectiveGitStatus),l.containsGitChange&&(p[`data-item-contains-git-change`]=`true`),{"aria-expanded":!d&&t.kind===`directory`?t.isExpanded:void 0,"aria-haspopup":c.contextMenuEnabled?`menu`:void 0,"aria-label":i,"aria-level":d?void 0:t.level+1,"aria-posinset":d?void 0:t.posInSet+1,"aria-selected":d?void 0:t.isSelected?`true`:`false`,"aria-setsize":d?void 0:t.setSize,"data-file-tree-sticky-path":d?r:void 0,"data-file-tree-sticky-row":d?`true`:void 0,"data-item-context-menu-button-visibility":c.actionLaneEnabled?c.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":c.contextMenuEnabled?c.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":c.actionLaneEnabled?`true`:void 0,"data-item-has-git-lane":c.gitLaneActive?`true`:void 0,"data-item-parent-path":f.length>0?f:void 0,"data-item-parked":o?`true`:void 0,"data-item-path":r,"data-item-type":t.kind===`directory`?`folder`:`file`,"data-type":`item`,id:d?void 0:a,role:d?void 0:`treeitem`,style:{minHeight:`${s}px`,...u},tabIndex:!d&&t.isFocused?0:-1,...p}}function lz(e){let{event:t,mode:n,isSearchOpen:r,isDirectory:i}=e,a=t.ctrlKey||t.metaKey,o=t.shiftKey||a,s=t.shiftKey?{additive:a,kind:`range`}:a?{kind:`toggle`}:{kind:`single`};return{closeSearch:r,revealCanonical:n===`sticky`,selection:s,toggleDirectory:!o&&i}}var uz,dz,fz,pz,mz=Object.is,hz=0,gz=[],_z=TL,vz=_z.__b,yz=_z.__r,bz=_z.diffed,xz=_z.__c,Sz=_z.unmount,Cz=_z.__;function wz(e,t){_z.__h&&_z.__h(dz,e,hz||t),hz=0;var n=dz.__H||(dz.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Tz(e){return hz=1,Ez(Lz,e)}function Ez(e,t,n){var r=wz(uz++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Lz(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);mz(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=dz,!dz.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,mz(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};dz.__f=!0;var a=dz.shouldComponentUpdate,o=dz.componentWillUpdate;dz.componentWillUpdate=function(e,t,n){if(4&this.__g){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},dz.shouldComponentUpdate=i}return r.__N||r.__}function Dz(e,t){var n=wz(uz++,3);!_z.__s&&Iz(n.__H,t)&&(n.__=e,n.u=t,dz.__H.__h.push(n))}function Oz(e,t){var n=wz(uz++,4);!_z.__s&&Iz(n.__H,t)&&(n.__=e,n.u=t,dz.__h.push(n))}function $(e){return hz=5,kz(function(){return{current:e}},[])}function kz(e,t){var n=wz(uz++,7);return Iz(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Az(e,t){return hz=8,kz(function(){return e},t)}function jz(){for(var e;e=gz.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pz),e.__H.__h.forEach(Fz),e.__H.__h=[]}catch(t){e.__H.__h=[],_z.__e(t,e.__v)}}_z.__b=function(e){dz=null,vz&&vz(e)},_z.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Cz&&Cz(e,t)},_z.__r=function(e){yz&&yz(e),uz=0;var t=(dz=e.__c).__H;t&&(fz===dz?(t.__h=[],dz.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(Pz),t.__h.forEach(Fz),t.__h=[],uz=0)),fz=dz},_z.diffed=function(e){bz&&bz(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(gz.push(t)!==1&&pz===_z.requestAnimationFrame||((pz=_z.requestAnimationFrame)||Nz)(jz)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),fz=dz=null},_z.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Pz),e.__h=e.__h.filter(function(e){return!e.__||Fz(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],_z.__e(n,e.__v)}}),xz&&xz(e,t)},_z.unmount=function(e){Sz&&Sz(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Pz(e)}catch(e){t=e}}),n.__H=void 0,t&&_z.__e(t,n.__v))};var Mz=typeof requestAnimationFrame==`function`;function Nz(e){var t,n=function(){clearTimeout(r),Mz&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Mz&&(t=requestAnimationFrame(n))}function Pz(e){var t=dz,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),dz=t}function Fz(e){var t=dz;e.__c=e.__(),dz=t}function Iz(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!mz(t,e[n])})}function Lz(e,t){return typeof t==`function`?t(e):t}function Rz(e,t=null,n=null){"use no memo";let r=e.flattenedSegments;return r==null||r.length===0?t??e.name:Q(`span`,{"data-item-flattened-subitems":!0,children:r.map((e,i)=>{let a=i===r.length-1;return Q(UL,{children:[Q(`span`,{"data-item-flattened-subitem":e.path,"data-item-flattened-subitem-drag-target":n===e.path?`true`:void 0,children:a&&t!=null?t:Q(kR,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function zz(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function Bz(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function Vz(e,t,n,r){return e.map((e,i)=>{let a=i*n,o=e.subtreeEndIndex+1;if(o>=r)return{row:e.row,top:a};let s=o*n-t;return{row:e.row,top:Math.min(a,s-n)}}).filter(e=>e.top+n>0)}function Hz({controller:e,itemHeight:t,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:a}){let o=e.getVisibleCount(),s=i&&o>0?e.getStickyRowCandidates(r,t):[],c=s==null&&i&&o>0?e.getVisibleRows(0,o-1):[],l=UR(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:Vz(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?Vz(u,1,t,o):i&&r<=0&&c.length>0?HR(c,1,t):l.sticky.rows;return{overlayHeight:d.reduce((e,n)=>Math.max(e,n.top+t),0),overlayRows:d,snapshot:l,visibleRows:c}}var Uz=400,Wz=40,Gz=18;function Kz(e,t,n){let r=e,i=document.elementFromPoint?.bind(document)??null,a=r.elementFromPoint?.(t,n)??i?.(t,n)??null;return e instanceof ShadowRoot&&(a==null||!e.contains(a))?qz(e,t,n):a instanceof HTMLElement?a:null}function qz(e,t,n){let r=Array.from(e.querySelectorAll(`[data-type="item"], [data-item-flattened-subitem]`));for(let e=r.length-1;e>=0;e--){let i=r[e],a=i.getBoundingClientRect();if(t>=a.left&&t<=a.right&&n>=a.top&&n<=a.bottom)return i}return null}function Jz(e){let t=e?.closest?.(`[data-type="item"]`);if(!(t instanceof HTMLElement))return null;let n=t.dataset.itemPath??null;if(n==null)return null;let r=e?.closest?.(`[data-item-flattened-subitem]`),i=r instanceof HTMLElement?r.getAttribute(`data-item-flattened-subitem`)??null:null;if(i!=null&&i.endsWith(`/`))return{directoryPath:i,flattenedSegmentPath:i,hoveredPath:n,kind:`directory`};if(t.dataset.itemType===`folder`)return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`};let a=t.dataset.itemParentPath??null;return a==null||a.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:`root`}:{directoryPath:a,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`}}function Yz(e){let t=e.cloneNode(!0);return t.removeAttribute(`id`),t.dataset.fileTreeDragPreview=`true`,t.setAttribute(`aria-hidden`,`true`),t.tabIndex=-1,Object.assign(t.style,{boxShadow:`0 4px 12px rgba(0, 0, 0, 0.15)`,left:`0px`,margin:`0`,pointerEvents:`none`,position:`fixed`,top:`0px`,willChange:`transform`,zIndex:`10000`}),t}function Xz(){return navigator.vendor!==`Apple Computer, Inc.`}function Zz(e,t){let n=e-t.top;if(n<Wz)return-Math.ceil((Wz-Math.max(0,n))/Wz*Gz);let r=t.bottom-e;return r<Wz?Math.ceil((Wz-Math.max(0,r))/Wz*Gz):0}function Qz(e,t){if(e!=null){let t=WR[e];return t==null?null:{text:t,title:GR[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:KR}:null}function $z(e,t,n){if(t==null||t.size===0)return null;let r=[];for(let i=e.length-1;i>=0;--i){let a=e[i],o=n.get(a);if(o!=null){for(let e of r)n.set(e,o);return o?`ignored`:null}if(t.has(a)){n.set(a,!0);for(let e of r)n.set(e,!0);return`ignored`}r.push(a)}for(let e of r)n.set(e,!1);return null}function eB(e){return e!=null&&`toggle`in e}function tB(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function nB(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function rB(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function iB(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function aB(e,t){return t&&iB(e)||(e.ctrlKey||e.metaKey)&&tB(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}var oB=new Set([`ArrowDown`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`End`,`Home`,`PageDown`,`PageUp`]);function sB(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&(t.dataset.fileTreeContextMenuRoot===`true`||t.dataset.type===`context-menu-anchor`||t.dataset.type===`context-menu-trigger`||t.getAttribute(`slot`)===`context-menu`))return!0;return!1}function cB(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width,x:e.x,y:e.y}}function lB(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function uB(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function dB(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function fB(e,t,n){if(e==null)return null;let r=t.get(e)??null;if(r!=null)return r;let i=n.get(e)??null;return i?.dataset.itemParked===`true`?null:i}function pB(e){if(e==null)return[];let t=[];for(let n of e.querySelectorAll(`button[data-file-tree-sticky-row="true"]`)){if(!(n instanceof HTMLElement))continue;let e=n.dataset.fileTreeStickyPath;e!=null&&t.push(e)}return t}function mB(e,t){if(e==null||t==null)return null;for(let n of e.querySelectorAll(`button[data-item-focused="true"][data-item-parked="true"]`))if(n instanceof HTMLElement&&n.dataset.itemPath===t)return n;return null}function hB(e,t,n,r,i,a,o){let s=Math.max(0,a-i),c=t?.getBoundingClientRect()??null,l=c==null||n==null?null:n.getBoundingClientRect().top-c.top,u=mB(e,r),d=c==null||u==null?null:u.getBoundingClientRect().top-c.top;return Math.max(0,Math.min(d??Math.max(l??0,s),Math.max(0,o-i)))}function gB(e,t){return{kind:e.kind,name:Bz(e),path:t}}function _B(e){return e==null?void 0:`${e}__tree`}function vB(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function yB(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function bB(e,t){if(e==null)return null;if(`text`in e)return e.parts==null?Q(`span`,{title:e.title,children:e.text}):Q(`span`,{title:e.title,children:e.parts.map((e,t)=>Q(`span`,{style:{color:e.color},children:e.text},t))});let n=typeof e.icon==`string`?yB(e.icon)?t(e.icon):{name:e.icon}:yB(e.icon.name)?(()=>{let n=t(e.icon.name),{name:r,...i}=e.icon;return{...n,...i}})():e.icon;return Q(`span`,{title:e.title,children:Q(gR,{...n})})}function xB(e){e!=null&&ZR(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function SB(e,t,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:a=null,gitDecoration:o=null,gitLaneActive:s=!1,renameInput:c=null,showDecorativeActionAffordance:l=!1}={}){let u=zz(e);return Q(UL,{children:[e.depth>0?Q(`div`,{"data-item-section":`spacing`,children:Array.from({length:e.depth}).map((t,n)=>Q(`div`,{"data-item-section":`spacing-item`,"data-ancestor-path":e.ancestorPaths[n]},n))}):null,Q(`div`,{"data-item-section":`icon`,children:e.kind===`directory`?Q(gR,{...t(`file-tree-icon-chevron`)}):Q(gR,{...t(`file-tree-icon-file`,u)})}),Q(`div`,{"data-item-section":`content`,children:e.isFlattened?Rz(e,c,a):c??Q(jR,{minimumLength:5,split:`extension`,children:e.name})}),i?Q(`div`,{"data-item-section":`decoration`,children:r==null?null:bB(r,t)}):null,s?Q(`div`,{"data-item-section":`git`,children:bB(o,t)}):null,n?Q(`div`,{"data-item-section":`action`,children:l?Q(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:Q(gR,{...t(`file-tree-icon-ellipsis`)})}):null}):null]})}function CB(e,t,n,r={}){let{controller:i,renameView:a,visualFocusPath:o,contextHoverPath:s,draggedPathSet:c,dragTarget:l,dragAndDropEnabled:u,shouldSuppressContextMenu:d,handleRowDragStart:f,handleRowDragEnd:p,handleRowTouchStart:m,instanceId:h,itemHeight:g,gitStatusByPath:_,ignoredGitDirectories:v,ignoredInheritanceCache:y,directoriesWithGitChanges:b,gitLaneActive:x,contextMenuEnabled:S,contextMenuTriggerMode:C,contextMenuButtonTriggerEnabled:w,contextMenuButtonVisibility:ee,contextMenuRightClickEnabled:T,registerRenameInput:E,registerButton:te,resolveIcon:D,renderDecorationForRow:ne,openContextMenuForRow:re,onRowClick:O,onKeyDown:ie}=e,k=zz(t),{isParked:ae=!1,mode:A=`flow`,style:oe}=r,se=A===`sticky`,j=_?.get(k)??null??$z(t.ancestorPaths,v,y),M=t.kind===`directory`&&(b?.has(k)??!1),N=ne(t,k),P=Qz(j,M),F=S&&w,ce=N!=null||x||F,le=F&&ee===`always`,I=a.getPath()===k,L=I?a.getValue():``,ue=se||!I?null:Q(sz,{ref:E,ariaLabel:`Rename ${Bz(t)}`,isFlattened:t.isFlattened,value:L,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),de=SB(t,D,{actionLaneEnabled:F,customDecoration:N,decorationLaneEnabled:ce,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:P,gitLaneActive:x,renameInput:ue,showDecorativeActionAffordance:le}),R={...cz({ariaLabel:Bz(t),domId:t.isFocused?vB(h,k,ae):void 0,extraStyle:oe,features:{actionLaneEnabled:F,contextMenuButtonVisibility:F?ee:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:ae,itemHeight:g,mode:A,row:t,state:{containsGitChange:M,effectiveGitStatus:j,isContextHovered:s===k,isDragTarget:l?.kind===`directory`&&l.directoryPath===k,isDragging:c?.has(k)===!0,isFocusRinged:t.isFocused&&o===k},targetPath:k}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),T&&(i.focusMountedPathFromInput(k),re(t,k,{anchorRect:lB(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:se?void 0:()=>{i.focusMountedPathFromInput(k)},onKeyDown:se?void 0:ie,ref:e=>{te(k,e)}};return!se&&I?Q(`div`,{...R,children:de}):Q(`button`,{...R,type:`button`,draggable:u&&!ae,onDragEnd:u&&!ae?p:void 0,onDragStart:u&&!ae?e=>{f(e,t,k)}:void 0,onMouseDown:e=>{if(se){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!ae?e=>{m(e,t,k)}:void 0,onClick:e=>{O(e,t,k,A)},children:de})}function wB(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(zz(e))).map((n,r)=>CB(e,n,t.start+r))}function TB({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=mI,overscan:c=10,renamingEnabled:l=!1,renderRowDecoration:u,searchBlurBehavior:d=`close`,searchEnabled:f=!1,searchFakeFocus:p=!1,slotHost:m,stickyFolders:h=!1,initialViewportHeight:g=420}){"use no memo";let _=$(null),v=$(null),y=$(!1),b=$(null),x=$(null),S=$(null),C=$(null),w=$(null),ee=$(new Map),T=$(new Map),E=$(()=>{}),te=$(null),D=$(0),ne=$(!1),re=$(null);re.current!==t&&(ne.current=!1,re.current=t);let O=$(!1),ie=$(null),k=$(null),ae=$(!1),A=$(null),oe=$(null),se=$(null),j=$(null),M=$(null),N=$(null),P=$(null),F=$(null),ce=$(!1),le=$(null),I=$(null),L=$(null),ue=$(null),de=kz(()=>new Map,[]),[,R]=Tz(0),fe=$(!1),[pe,z]=Tz(null),[me,B]=Tz(null),[V,he]=Tz(null),[ge,_e]=Tz(null),[ve,ye]=Tz(0),[H,be]=Tz(null),xe=$(H);xe.current=H;let Se=$(null),Ce=$(null),we=$(null),Te=$(null),Ee=$(null),De=$(!1),Oe=()=>{Ce.current=null,we.current=null,Te.current=null},ke=(e,t)=>{Ce.current=e,we.current=null,Te.current=t==null?null:{path:e,scrollTop:t}},Ae=(e,t)=>{Ce.current=null,we.current={path:e,viewportOffset:t},Te.current=null},je=$(d===`retain`&&t.isSearchOpen()),[Me,Ne]=Tz(p);Dz(()=>{p||Ne(!1)},[p]);let Pe=$(!1),Fe=Az(()=>{Pe.current=!0,Ne(e=>e&&!1)},[]),[Ie,Le]=Tz(()=>Hz({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[Re,ze]=Tz(!1);Dz(()=>{ze(!0)},[]);let Be=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,Ve=e?.contextMenu?.triggerMode??(Be?`right-click`:`both`),He=Ve===`both`||Ve===`button`,Ue=e?.contextMenu?.buttonVisibility??`when-needed`,We=Ve===`both`||Ve===`right-click`;Oz(()=>{let e=S.current;if(e==null)return;let t=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail?.path??null;Ee.current=t,B(t),_e(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(De.current=e.detail?.disabled===!0)};return e.addEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.addEventListener(`file-tree-debug-set-scroll-suppression`,n),()=>{e.removeEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.removeEventListener(`file-tree-debug-set-scroll-suppression`,n)}},[]);let Ge=Az((e,t)=>{dB(ee.current,e,t)},[]),Ke=Az((e,t)=>{dB(T.current,e,t)},[]),qe=Az(e=>{x.current=e},[]),Je=Az(e=>fB(e,T.current,ee.current),[]),Ye=n!=null||r!=null||i!=null,{resolveIcon:Xe}=kz(()=>jM(a),[a]),Ze=t[aL](),Qe=Ze.getPath(),$e=Qe!=null,et=t.isSearchOpen(),tt=t.getSearchValue(),U=t.getFocusedPath(),W=t.getFocusedIndex(),nt=t.getScrollRequest(),rt=t.isDragAndDropEnabled(),it=t.getDragSession(),at=kz(()=>it==null?null:new Set(it.draggedPaths),[it]),ot=it?.target??null,st=it?.primaryPath??null,ct=_B(o),{overlayHeight:lt,overlayRows:ut,snapshot:dt,visibleRows:ft}=Ie,pt=dt.physical.viewportHeight,mt=kz(()=>({end:dt.window.endIndex,start:dt.window.startIndex}),[dt.window.endIndex,dt.window.startIndex]),ht=ut,gt=dt.sticky.rows,_t=dt.physical.totalHeight,vt=dt.sticky.height,yt=kz(()=>new Set(gt.map(e=>zz(e.row))),[gt]),bt=W>=0&&W>=mt.start&&W<=mt.end,xt=Az((e,t)=>u?.({item:gB(e,t),row:e})??null,[u]),St=Az(e=>ZR(e==null?null:ee.current.get(e)??null)?!0:ZR(S.current),[]),Ct=Az(e=>{St(t.focusNearestPath(e))},[t,St]),wt=$(Ct);wt.current=Ct;let Tt=$(!0),Et=$(()=>{}),Dt=Az((t=!0)=>{let n=xe.current;n!=null&&(Tt.current=Tt.current&&t,be(null),e?.contextMenu?.onClose?.(),Tt.current&&Ct(n.path))},[e?.contextMenu,Ct]);Et.current=Dt;let Ot=Az(e=>{let t=e==null?null:uB(S.current,e);he(e=>e===t?e:t)},[]),kt=Az((e,n,r)=>{let i=t.getItem(n);if(i==null)return;let a=Je(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;ke(n,e?.scrollTop??null),O.current=!0,z(e=>e===n?e:n)}i.focus(),Ot(a),Tt.current=!0,be({anchorRect:r?.anchorRect??null,item:gB(e,n),path:n,source:r?.source??`keyboard`})},[t,Je,Ot]),At=Az(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=$R(e,pt);A.current=W<0||e==null?null:Math.max(0,Math.min(W*s-e.scrollTop,Math.max(0,t-s))),ae.current=!0}t.startRenaming(e)!==!1&&(_e(`focus`),R(e=>e+1))}},[t,W,s,l,pt]),jt=Az((e,{restoreTreeFocus:n=!0,targetOffset:r=`live-overlay`}={})=>{let i=C.current;if(i==null)return!1;t.focusPath(e);let a=t.getFocusedIndex();if(a<0)return!1;let o=t.getVisibleRows(a,a)[0]??null;if(o==null)return!1;let l=$R(i,pt),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:Hz({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return O.current=!0,iz(i,a,s,l,u,d),E.current(),Se.current=n?e:null,!0},[t,s,c,pt,h]),Mt=()=>y.current===!0||ue.current!=null||ce.current===!0,Nt=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),Pt=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},Ft=()=>{j.current!=null&&(clearTimeout(j.current),j.current=null),se.current=null},It=()=>{N.current?.remove(),N.current=null},Lt=()=>{Pt(oe.current),oe.current=null,M.current=null},Rt=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},zt=()=>{F.current?.(),F.current=null,ue.current!=null&&(clearTimeout(ue.current),ue.current=null),ce.current=!1,le.current=null,L.current=null,I.current!=null&&(I.current.setAttribute(`draggable`,`true`),I.current.style.removeProperty(`touch-action`),I.current=null),It(),Ft(),Lt(),P.current=null},Bt=(e,n)=>{let r=S.current?.getRootNode(),i=Jz(Kz(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Vt=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){Ft();return}let r=t.getItem(e.directoryPath),i=eB(r)?r:null;if(i==null||i.isExpanded()){Ft();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;se.current!==a&&(Ft(),se.current=a,j.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind===`directory`&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&i.expand()},n))},Ht=()=>{oe.current=null;let e=M.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=Zz(e.clientY,r);if(i===0)return;let a=Math.max(0,n.scrollHeight-n.clientHeight),o=Math.max(0,Math.min(a,n.scrollTop+i));o!==n.scrollTop&&(n.scrollTop=o,E.current()),Vt(Bt(e.clientX,e.clientY)),oe.current=Nt(Ht)},Ut=(e,t)=>{M.current={clientX:e,clientY:t},oe.current??=Nt(Ht)},Wt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(zt(),It(),Ft(),Lt(),t.startDrag(r)===!1){e.preventDefault();return}if(P.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),Xz())){let t=Yz(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),Rt(t),N.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Gt=()=>{It(),Ft(),Lt(),P.current=null,t.cancelDrag()},Kt=(e,n,r)=>{if(ue.current!=null||ce.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;L.current={clientX:i.clientX,clientY:i.clientY},I.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!ce.current;ue.current!=null&&(clearTimeout(ue.current),ue.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),F.current===o&&(F.current=null),t&&(a.setAttribute(`draggable`,`true`),I.current===a&&(I.current=null),L.current=null)},s=e=>{let t=e.touches[0],n=L.current;if(t==null||n==null)return;let r=t.clientX-n.clientX,i=t.clientY-n.clientY;r*r+i*i<=100||o()},c=()=>{o()};document.addEventListener(`touchmove`,s,{passive:!0}),document.addEventListener(`touchend`,c),document.addEventListener(`touchcancel`,c),F.current=o,ue.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),I.current===a&&(I.current=null),L.current=null;return}ce.current=!0,I.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),P.current=n;let e=a.getBoundingClientRect(),s=Yz(a);Object.assign(s.style,{height:`${e.height}px`,opacity:`0.85`,transform:`translate3d(${e.left}px, ${e.top}px, 0)`,width:`${e.width}px`}),Rt(s),N.current=s,le.current={x:i.clientX-e.left,y:i.clientY-e.top};let c=e=>{let t=e.touches[0];if(t==null)return;e.preventDefault();let n=le.current;n!=null&&N.current!=null&&(N.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Vt(Bt(t.clientX,t.clientY)),Ut(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&Bt(n.clientX,n.clientY),t.completeDrag(),zt()},u=()=>{t.cancelDrag(),zt()};F.current=()=>{document.removeEventListener(`touchmove`,c),document.removeEventListener(`touchend`,l),document.removeEventListener(`touchcancel`,u)},document.addEventListener(`touchmove`,c,{passive:!1}),document.addEventListener(`touchend`,l),document.addEventListener(`touchcancel`,u)},Uz)},qt=e=>{if(H!=null){if(e.key===`Escape`){Dt(),e.preventDefault(),e.stopPropagation();return}oB.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(Ze.isActive()){if(e.isComposing||e.keyCode===229)return;if(e.key===`Escape`)Ze.cancel();else if(e.key===`Enter`)Ze.commit();else return;_e(`focus`),R(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){At(U??void 0),e.preventDefault(),e.stopPropagation();return}if(et){if(e.key===`Escape`)ae.current=!1,A.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=$R(n,pt);A.current=W<0||n==null?null:Math.max(0,Math.min(W*s-n.scrollTop,Math.max(0,r-s))),ae.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;_e(`focus`),R(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&nB(e)){t.openSearch(e.key),R(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=Be&&iB(e),r=aB(e,Be),i=r&&S.current!=null?QR(S.current):null,a=r?new Set(pB(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==U&&a.has(o)){let e=C.current;ke(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=eB(p)?p:null,h=u!=null&&(yt.has(u)||c&&o===u&&a.has(u)),g=e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowRight`&&m!=null&&m.isExpanded(),_=e.key===`ArrowLeft`&&h&&m!=null&&m.isExpanded(),v=C.current,y=!0;if(e.shiftKey&&e.key===`ArrowDown`)t.extendSelectionFromFocused(1);else if(e.shiftKey&&e.key===`ArrowUp`)t.extendSelectionFromFocused(-1);else if(n&&u!=null&&d>=0){let e=t.getVisibleRows(d,d)[0]??null,n=fB(u,T.current,ee.current);e==null||n==null?y=!1:kt(e,u)}else if((e.ctrlKey||e.metaKey)&&tB(e))t.toggleFocusedSelection();else if((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`a`)t.selectAllVisiblePaths();else switch(e.key){case`ArrowDown`:t.focusNextItem();break;case`ArrowUp`:t.focusPreviousItem();break;case`ArrowRight`:m==null||m.isExpanded()?t.focusNextItem():m.expand();break;case`ArrowLeft`:m!=null&&m.isExpanded()?m.collapse():t.focusParentItem();break;case`Home`:t.focusFirstItem();break;case`End`:t.focusLastItem();break;default:y=!1}if(!y)return;_e(`focus`);let b=t.getFocusedPath(),x=b!=null&&(yt.has(b)||a.has(b)),w=g&&b!==u,E=n&&c&&o===u&&b===u;if((h||E)&&b!=null&&(w&&x||E))ke(b,v?.scrollTop??null),O.current=!0,z(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(Ae(b,hB(S.current,v,i,u,s,vt,pt)),O.current=!0,z(e=>e===b?e:b)):Oe()}R(e=>e+1),e.preventDefault(),e.stopPropagation()};Oz(()=>{if(f&&et){if(je.current){je.current=!1;return}ZR(w.current)}},[et,f]),Oz(()=>{let e=x.current;switch(oz({hasRenderedInput:e!=null,previousRenamingPath:k.current,renamingPath:Qe})){case`reset`:k.current=null;return;case`reveal-canonical`:Qe!=null&&jt(Qe,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(Se.current=null,k.current=Qe,ZR(e),e.select());return}},[mt.end,mt.start,Qe,jt,yt]),Oz(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=QR(e)?.dataset.itemPath??null;z(e=>e===t?e:t)},i=()=>{n(),O.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,QR(e)!=null){r();return}O.current=!1,z(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),O.current=!1,z(null);return}let o=a instanceof HTMLElement?a.dataset.itemPath??null:null;z(e=>e===o?e:o)};return e.addEventListener(`focusin`,i),e.addEventListener(`focusout`,a),()=>{n(),e.removeEventListener(`focusin`,i),e.removeEventListener(`focusout`,a)}},[]),Oz(()=>{let e=S.current;e!=null&&(dt.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[dt.physical.scrollTop]),Oz(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;te.current=$R(n,g);let a=()=>{let e=t.getVisibleCount(),r=ez(te.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),Le(Hz({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHeight:r}))};if(!ne.current){ne.current=!0;let e=t.getFocusedIndex();if(e>=0){let r=ez(te.current,g),i=t.getVisibleRows(e,e)[0]??null;nz(n,e,s,r,h&&i!=null?Math.max(0,Math.min(i.ancestorPaths.length*s,Math.max(0,r-s))):0)}}E.current=a;let o=t.subscribe(()=>{qR(fe)&&R(e=>e+1),a()}),l=()=>{De.current!==!0&&(r!=null&&(r.dataset.isScrolling??=``),i!=null&&(i.dataset.isScrolling??=``),y.current=!0,e!=null&&clearTimeout(e),e=setTimeout(()=>{r!=null&&delete r.dataset.isScrolling,i!=null&&delete i.dataset.isScrolling,y.current=!1,ye(e=>e+1),e=null},50))},u=null,d=()=>{i!=null&&delete i.dataset.overlayReveal,u!=null&&(clearTimeout(u),u=null)},f=()=>{i!=null&&De.current!==!0&&(n.scrollTop>0||(i.dataset.overlayReveal=`true`,u!=null&&clearTimeout(u),u=setTimeout(()=>{d()},200)))},p=()=>{if(a(),n.scrollTop>0&&d(),xe.current!=null&&y.current&&Et.current(),De.current===!0){y.current=!1;return}B(e=>e==null?e:null),l()},m=()=>{l(),f()},_=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`,`Home`,`End`,` `,`Spacebar`]),v=e=>{_.has(e.key)&&m()};n.addEventListener(`scroll`,p,{passive:!0}),n.addEventListener(`wheel`,m,{passive:!0}),n.addEventListener(`touchmove`,m,{passive:!0}),n.addEventListener(`keydown`,v);let x=typeof ResizeObserver<`u`?new ResizeObserver(e=>{te.current=(e[0]==null?null:tz(e[0]))??$R(n,g),a()}):null;return x?.observe(n),()=>{E.current=()=>{},o(),n.removeEventListener(`scroll`,p),n.removeEventListener(`wheel`,m),n.removeEventListener(`touchmove`,m),n.removeEventListener(`keydown`,v),e!=null&&clearTimeout(e),u!=null&&clearTimeout(u),r!=null&&delete r.dataset.isScrolling,i!=null&&(delete i.dataset.isScrolling,delete i.dataset.overlayReveal),y.current=!1,te.current=null,x?.disconnect()}},[t,g,s,c,h]),Oz(()=>{Be||H==null||Dt(!1)},[Dt,Be,H]);let Jt=kz(()=>H==null?null:`${H.path}::${H.source}`,[H]);Oz(()=>{if(Jt==null){m?.clearSlotContent(CM);return}let t=xe.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??cB(n.getBoundingClientRect()),close:e=>{Et.current(e?.restoreFocus??!0)},restoreFocus:()=>{Tt.current&&wt.current(xe.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(CM,i),e?.contextMenu?.onOpen?.(t.item,r),xB(i),queueMicrotask(()=>{i!=null&&i.isConnected&&document.activeElement===i&&xB(i)}),()=>{m?.clearSlotContent(CM)}},[Jt,e?.contextMenu,m]),Oz(()=>{H!=null&&t.getItem(H.path)==null&&Dt()},[Dt,H,t]),Oz(()=>{if(H==null)return;let e=S.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:S.current,n=e=>{let n=e.target;n instanceof Node&&(sB(e)||_.current?.contains(n)!==!0&&t?.contains(n)!==!0&&Dt())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Dt())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[Dt,H]),Oz(()=>{let e=C.current,n=S.current;if(e==null||n==null){ie.current=U;return}let r=U==null?null:ee.current.get(U)??null,i=QR(n),a=i?.dataset.itemPath??null,o=$e&&x.current===i,c=f&&w.current===i,l=ae.current&&!et,u=A.current??0,d=Se.current,p=Ce.current,m=we.current,g=Te.current,_=i!=null,v=O.current||_,y=ie.current!==U,b=p!=null&&p===U&&U!=null,T=!1,te=!1;if(nt!=null&&nt.id!==D.current){D.current=nt.id;let n=nt.visibleIndex,r=t.getVisibleRows(n,n)[0]??null;if(r!=null){let t=h?Math.max(0,Math.min(r.ancestorPaths.length*s,Math.max(0,pt-s))):vt;T=!0,te=rz(e,n,s,pt,_t,nt.offset,t)}t.clearScrollRequest(nt.id)}let ne=!T&&l&&iz(e,W,s,pt,_t,u),re=!T&&d!=null&&d===U&&iz(e,W,s,pt,_t,vt),k=!T&&m!=null&&m.path===U&&iz(e,W,s,pt,_t,m.viewportOffset),oe=!T&&g!=null&&g.path===U&&e.scrollTop!==g.scrollTop;if(oe&&(e.scrollTop=g.scrollTop),(oe||te||re||k||ne||v&&y&&d!==U&&!b&&nz(e,W,s,pt,vt))&&E.current(),T){ie.current=U;return}if(!v){ie.current=U;return}if(o){ie.current=U;return}if(c&&!l){ie.current=U;return}if(r==null){l&&W>=0&&(iz(e,W,s,pt,_t,u),E.current()),ie.current=U;return}(y||l||d===U||p===U||m?.path===U||g?.path===U||a==null||a!==U)&&(ZR(r),d===U&&(Se.current=null),p===U&&(Ce.current=null),m?.path===U&&(we.current=null),g?.path===U&&(Te.current=null),ae.current=!1,A.current=null),ie.current=U},[t,W,U,bt,s,$e,et,mt,pt,f,nt,h,vt,_t,ft]);let Yt=W>=0&&W>=dt.visible.startIndex&&W<=dt.visible.endIndex,Xt=U!=null&&ht.some(e=>zz(e.row)===U),Zt=Yt||Xt,Qt=He&&O.current===!0&&Zt?U:null,$t=ge===`pointer`?me:null,en=H?.path??Ee.current??$t??Qt??me,tn=H?.source===`right-click`;Oz(()=>{y.current&&H==null||Ot(Je(en))},[H,Je,mt,pt,ve,ht,en,Ot,ft]);let nn=Az(e=>{if(y.current||sB(e))return;let t=e.target;if(!(t instanceof HTMLElement)||t.closest?.(`[data-type="context-menu-trigger"]`)!=null)return;let n=t.closest?.(`[data-file-tree-sticky-row="true"]`),r=t.closest?.(`[data-type="item"]`),i=n instanceof HTMLElement?n.dataset.fileTreeStickyPath??null:r instanceof HTMLElement?r.dataset.itemPath??null:null;i!=null&&_e(e=>e===`pointer`?e:`pointer`),B(e=>e===i?e:i)},[]),rn=Az(()=>{B(null)},[]);Oz(()=>{if(!rt)return;let e=()=>{zt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),zt(),t.cancelDrag()}},[t,rt]);let an=e=>{if(!rt||t.getDragSession()==null||ce.current)return;let n=Jz(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Vt(t.getDragSession()?.target??null),Ut(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},on=e=>{if(!rt||t.getDragSession()==null||ce.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(Ft(),Lt(),t.setDragTarget(null))},sn=e=>{rt&&t.getDragSession()!=null&&!ce.current&&(e.preventDefault(),Bt(e.clientX,e.clientY),t.completeDrag(),It(),Ft(),Lt(),P.current=null)},cn=dt.window.height,ln=dt.window.offsetTop,un=Math.min(0,pt-cn),dn=Math.min(0,pt-cn-vt),fn=pe===U||ae.current,pn=U!=null&&fn&&!bt&&W>=0?ft[W]??t.getVisibleRows(W,W)[0]??null:null,mn=pn==null?null:az(W,s,mt,cn),hn=P.current,gn=st!=null&&hn!=null&&hn.path===st&&hn.index>=mt.start&&hn.index<=mt.end,_n=st!=null&&hn!=null&&hn.path===st&&!gn&&hn.path!==pn?.path?hn:null,vn=_n==null?null:az(_n.index,s,mt,cn),yn=rB((W>=0?ft[W]??t.getVisibleRows(W,W)[0]??null:null)?.ancestorPaths.at(-1)??null),bn=et&&U!=null?vB(o,U,!bt):void 0,xn=H?.path??(et?U:pe),Sn=H?.path??me,Cn=Je(en),wn=Be&&He&&!tn&&!$e&&Cn!=null&&V!=null&&en!=null,Tn=Be&&(wn||H!=null),En=H?.anchorRect,Dn=En==null&&Cn!=null&&V!=null&&(H!=null||wn)?V:null,On=En==null?Dn==null?void 0:{top:`${Dn}px`}:{left:`${En.left}px`,position:`fixed`,right:`auto`,top:`${En.top}px`},kn=tn?{opacity:`0`}:void 0,An=Az((e,n,r,i)=>{let a=lz({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:et,mode:i}),o=a.toggleDirectory&&n.kind===`directory`,s=o?t.resolveMountedDirectoryPathFromInput(r):null;if(o&&s==null)return;let c=s??r;switch(a.selection.kind){case`range`:t.selectPathRange(c,a.selection.additive);break;case`toggle`:t.togglePathSelectionFromInput(c);break;case`single`:t.selectOnlyMountedPathFromInput(c)}let l=e.currentTarget instanceof HTMLElement?e.currentTarget:null,u=n.index>=dt.visible.startIndex&&n.index<=dt.visible.endIndex,d=i===`flow`&&u&&l!=null&&l.dataset.itemParked!==`true`;t.focusMountedPathFromInput(c),d&&(O.current=!0,z(e=>e===c?e:c),_e(`focus`)),o&&t.toggleMountedDirectoryFromInput(c),a.closeSearch&&t.closeSearch(),a.revealCanonical&&jt(c,{targetOffset:`sticky-parents`})},[t,et,dt.visible.endIndex,dt.visible.startIndex,jt]),jn=()=>{if(y.current||!He||en==null||Cn==null)return;let e=t.getItem(en);e!=null&&(Ot(Cn),Tt.current=!0,be({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:Cn.getAttribute(`aria-label`)??en,path:e.getPath()},path:e.getPath(),source:`button`}))},Mn={contextHoverPath:Sn,contextMenuButtonTriggerEnabled:He,contextMenuButtonVisibility:Ue,contextMenuEnabled:Be,contextMenuRightClickEnabled:We,contextMenuTriggerMode:Ve,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:rt,draggedPathSet:at,dragTarget:ot,gitLaneActive:Ye,gitStatusByPath:n,handleRowDragEnd:Gt,handleRowDragStart:Wt,handleRowTouchStart:Kt,ignoredGitDirectories:r,ignoredInheritanceCache:de,instanceId:o,itemHeight:s,onKeyDown:qt,onRowClick:An,openContextMenuForRow:kt,registerButton:Ge,registerRenameInput:qe,renameView:Ze,renderDecorationForRow:xt,resolveIcon:Xe,shouldSuppressContextMenu:Mt,visualFocusPath:xn},Nn={...Mn,registerButton:Ke};return Q(`div`,{ref:S,id:ct,"data-file-tree-context-menu-button-visibility":Be&&He?Ue:void 0,"data-file-tree-context-menu-trigger-mode":Be?Ve:void 0,"data-file-tree-has-context-menu-action-lane":Be&&He?`true`:void 0,"data-file-tree-has-git-lane":Ye?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:rt?on:void 0,onDragOver:rt?an:void 0,onDrop:rt?sn:void 0,onKeyDown:qt,onPointerLeave:Be?rn:void 0,onPointerOver:Be?nn:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[Q(`style`,{"data-file-tree-guide-style":`true`,dangerouslySetInnerHTML:{__html:yn}}),Q(`slot`,{name:SM,"data-type":`header-slot`}),f?Q(`div`,{"data-file-tree-search-container":!0,"data-open":et?`true`:`false`,children:Q(`input`,{ref:w,"aria-activedescendant":bn,"aria-controls":ct,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Me?`true`:void 0,value:tt,onBlur:()=>{(d!==`retain`||Pe.current)&&t.closeSearch()},onFocus:Fe,onPointerDown:Fe,onInput:e=>{Fe();let n=e.currentTarget;t.setSearch(n.value)}})}):null,Q(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&Re&&ht.length>0?Q(`div`,{"aria-hidden":`true`,"data-file-tree-sticky-overlay":`true`,children:Q(`div`,{"data-file-tree-sticky-overlay-content":`true`,style:{height:`${lt}px`},children:ht.map((e,t)=>CB(Nn,e.row,`sticky:${zz(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${ht.length-t}`}}))})}):null,Q(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${_t}px`},children:[Q(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${ln}px`}}),Q(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${cn}px`,top:`${un}px`,bottom:`${dn}px`},children:[wB(Mn,mt,yt),pn!=null&&mn!=null?CB(Mn,pn,`parked:${pn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:st===pn.path?`none`:void 0,position:`absolute`,right:`0`,top:`${mn}px`}}):null,_n!=null&&vn!=null?CB(Mn,_n,`parked-drag:${_n.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${vn}px`}}):null]})]})]}),Be?Q(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":Tn?`true`:`false`,style:On,children:[Q(`button`,{ref:v,type:`button`,"data-type":wM,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":H==null?`false`:`true`,"data-visible":wn?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),H!=null){Dt();return}jn()},tabIndex:-1,style:kn,children:Q(gR,{...Xe(`file-tree-icon-ellipsis`)})}),H==null?null:Q(`slot`,{name:CM})]}):null,H==null?null:Q(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),Dt()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),Dt()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var EB={hydrateRoot:(e,t)=>{dR(VL(TB,t),e)},renderRoot:(e,t)=>{uR(VL(TB,t),e)},unmountRoot:e=>{uR(null,e)}};function DB(e,t){EB.renderRoot(e,t)}function OB(e,t){EB.hydrateRoot(e,t)}function kB(e){EB.unmountRoot(e)}var AB=class{#e=new Map;#t=null;clearAll(){for(let e of this.#e.values())e.remove();this.#e.clear()}clearSlotContent(e){let t=this.#n(e);t!=null&&(t.remove(),this.#e.delete(e))}setHost(e){if(this.#t=e,e!=null){this.#i(e);for(let[e,t]of this.#e)this.#r(e,t)}}setSlotContent(e,t){let n=this.#n(e);if(n===t){t!=null&&(this.#e.set(e,t),this.#r(e,t));return}if(n?.remove(),t==null){this.#e.delete(e);return}this.#e.set(e,t),this.#r(e,t)}setSlotHtml(e,t){let n=t?.trim()??``;if(n.length===0){this.setSlotContent(e,null);return}let r=this.#n(e);if(r!=null&&r.innerHTML===n){this.#e.set(e,r),this.#r(e,r);return}let i=document.createElement(`div`);i.innerHTML=n,this.setSlotContent(e,i)}#n(e){let t=this.#e.get(e)??null;if(t!=null)return t;let n=this.#t;if(n==null)return null;for(let t of Array.from(n.children))if(t instanceof HTMLElement&&t.dataset.fileTreeManagedSlot===e)return t;return null}#r(e,t){t.slot=e,t.dataset.fileTreeManagedSlot=e,this.#t!=null&&t.parentNode!==this.#t&&this.#t.appendChild(t)}#i(e){for(let t of Array.from(e.children)){if(!(t instanceof HTMLElement))continue;let e=t.dataset.fileTreeManagedSlot;e==null||this.#e.has(e)||this.#e.set(e,t)}}};function jB(e,t,n){if(!e.s){if(n instanceof MB){if(!n.s)return void(n.o=jB.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(jB.bind(null,e,t),jB.bind(null,e,2));e.s=t,e.v=n;let r=e.o;r&&r(e)}}var MB=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,i=this.s;if(i){var a=1&i?t:n;if(a){try{jB(r,1,a(this.v))}catch(e){jB(r,2,e)}return r}return this}return this.o=function(e){try{var i=e.v;1&e.s?jB(r,1,t?t(i):i):n?jB(r,1,n(i)):jB(r,2,i)}catch(e){jB(r,2,e)}},r},e}();Array.isArray;var NB=0;function PB(e){return e!=null&&e.length>0?e:(NB+=1,`pst_ft_${NB}`)}function FB({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??mI)}function IB(e){if(typeof document>`u`)return;let t=document.createElement(`div`);t.innerHTML=e;let n=t.querySelector(`svg`);return n instanceof SVGElement?n:void 0}function LB(e){return e.querySelector(`#file-tree-icon-chevron`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-file`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-dot`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-lock`)instanceof SVGElement}function RB(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var zB=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new AB;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y=null;#b;#x=!1;#S=!1;constructor(e){let{composition:t,density:n,fileTreeSearchMode:r,gitStatus:i,id:a,initialSearchQuery:o,icons:s,itemHeight:c,onSearchChange:l,onSelectionChange:u,overscan:d,renderRowDecoration:f,renaming:p,search:m,searchBlurBehavior:h,searchFakeFocus:g,stickyFolders:_,unsafeCSS:v,initialVisibleRowCount:y,...b}=e;this.#e=t,this.#n=PB(a),this.#p=gL(i),this.#m=s,this.#h=v,this.#r=u,this.#i=f,this.#a=p!=null&&p!==!1,this.#o=h,this.#s=m===!0,this.#c=g===!0,this.#u=pI(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new dL({...b,fileTreeSearchMode:r,initialSearchQuery:o,onSearchChange:l,renaming:p}),this.#v=this.#t.getSelectionVersion(),this.#y=this.#r==null?null:this.subscribe(()=>{this.#D()})}unmount(){this.#b!=null&&(kB(this.#b),delete this.#b.dataset.fileTreeVirtualizedWrapper,this.#b=void 0),this.#l.clearAll(),this.#l.setHost(null),this.#f!=null&&(delete this.#f.dataset.fileTreeVirtualized,this.#I(this.#f),this.#f=void 0)}cleanUp(){this.unmount(),this.#y?.(),this.#y=null,this.#t.destroy()}getFileTreeContainer(){return this.#f}getItem(e){return this.#t.getItem(e)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getFocusedIndex(){return this.#t.getFocusedIndex()}getVisibleCount(){return this.#t.getVisibleCount()}getVisibleRows(e,t){return this.#t.getVisibleRows(e,t)}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#u.itemHeight}getDensityFactor(){return this.#u.factor}subscribe(e){let t=!1;return this.#t.subscribe(()=>{if(!t){t=!0;return}e()})}focusPath(e){this.#t.focusPath(e)}focusFirstItem(){this.#t.focusFirstItem()}focusLastItem(){this.#t.focusLastItem()}focusNextItem(){this.#t.focusNextItem()}focusPreviousItem(){this.#t.focusPreviousItem()}focusParentItem(){this.#t.focusParentItem()}scrollToPath(e,t){this.#t.scrollToPath(e,t)}focusNearestPath(e){return this.#t.focusNearestPath(e)}add(e){this.#t.add(e)}batch(e){this.#t.batch(e)}applyGitStatusPatch(e){let t=_L(this.#p,e);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&DB(n.wrapper,this.#w())}move(e,t,n){this.#t.move(e,t,n)}onMutation(e,t){return this.#t.onMutation(e,t)}setSearch(e){this.#t.setSearch(e)}openSearch(e){this.#t.openSearch(e)}closeSearch(){this.#t.closeSearch()}isSearchOpen(){return this.#t.isSearchOpen()}getSearchValue(){return this.#t.getSearchValue()}getSearchMatchingPaths(){return this.#t.getSearchMatchingPaths()}focusNextSearchMatch(){this.#t.focusNextSearchMatch()}focusPreviousSearchMatch(){this.#t.focusPreviousSearchMatch()}startRenaming(e,t){return this.#t.startRenaming(e,t)}remove(e,t){this.#t.remove(e,t)}resetPaths(e,t){Array.isArray(e)?this.#t.resetPaths(e,t):this.#t.resetPaths(e)}setComposition(e){this.#e=e;let t=this.#T();t!=null&&(this.#O(),DB(t.wrapper,this.#w()))}setGitStatus(e){let t=gL(e,this.#p);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&DB(n.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),DB(t.wrapper,this.#w()))}hydrate({fileTreeContainer:e}){let t=this.#P(e),n=this.#N(t);this.#O(),OB(n,this.#w())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#P(t??this.#f,e),r=this.#N(n);this.#O(),DB(r,this.#w())}#C(){return{initialViewportHeight:FB({initialVisibleRowCount:this.#d.initialVisibleRowCount,itemHeight:this.#d.itemHeight}),itemHeight:this.#d.itemHeight,overscan:this.#d.overscan,stickyFolders:this.#d.stickyFolders}}#w(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#p?.statusByPath,ignoredGitDirectories:this.#p?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#p?.directoriesWithChanges,icons:this.#m,instanceId:this.#n,renamingEnabled:this.#a,renderRowDecoration:this.#i,searchBlurBehavior:this.#o,searchEnabled:this.#s,searchFakeFocus:this.#c,slotHost:this.#l,...this.#C()}}#T(){let e=this.#f,t=this.#b;return e==null||t==null?null:{host:e,wrapper:t}}#E(e,t){let n=e.shadowRoot;n!=null&&(this.#k(n),this.#A(n)),this.#j(t)}#D(){let e=this.#r;if(e==null)return;let t=this.#t.getSelectionVersion();t!==this.#v&&(this.#v=t,e(this.#t.getSelectedPaths()))}#O(){let e=this.#e?.header?.render;if(e!=null){this.#l.setSlotContent(SM,e());return}this.#l.setSlotHtml(SM,this.#e?.header?.html??null)}#k(e){let t=RB(e).find(e=>LB(e)),n=IB(fM(EM(this.#m).set));n!=null&&(t==null||t.outerHTML!==n.outerHTML)&&(t==null?e.prepend(n):t.replaceWith(n))}#A(e){let t=RB(e),n=t.find(e=>LB(e)),r=t.filter(e=>e!==n),i=EM(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=IB(i);if(a==null){for(let e of r)e.remove();return}if(r.length!==1||r[0].outerHTML!==a.outerHTML){for(let e of r)e.remove();e.appendChild(a)}}#j(e){let t=EM(this.#m);t.colored&&mM(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${vM}]`);if(this.#g==null&&t instanceof HTMLStyleElement&&(this.#g=t),this.#h==null||this.#h===``){this.#g?.remove(),this.#g=void 0,this.#_=void 0;return}(this.#g?.parentNode!==e||this.#_!==this.#h)&&(this.#g??=document.createElement(`style`),this.#g.setAttribute(vM,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=vI(this.#h),this.#_=this.#h)}#N(e){if(this.#b!=null)return this.#b;let t=e.shadowRoot;if(t==null)throw Error(`FileTree requires a shadow root`);let n=Array.from(t.children).filter(e=>e instanceof HTMLDivElement&&typeof e.dataset.fileTreeId==`string`&&e.dataset.fileTreeId.length>0),r=n.find(e=>e.dataset.fileTreeId===this.#n)??n[0];return r!=null&&(this.#n=r.dataset.fileTreeId??this.#n),this.#b=r??document.createElement(`div`),this.#b.dataset.fileTreeId=this.#n,this.#b.dataset.fileTreeVirtualizedWrapper=`true`,this.#E(e,this.#b),this.#b.parentNode!==t&&t.appendChild(this.#b),this.#b}#P(e,t){let n=e??this.#f??document.createElement(`file-tree-container`);t!=null&&n.parentNode!==t&&t.appendChild(n);let r=n.shadowRoot??n.attachShadow({mode:`open`});return wI(n,r),this.#M(r),n.dataset.fileTreeVirtualized=`true`,n.style.display=`flex`,this.#F(n),this.#l.setHost(n),this.#f=n,n}#F(e){e.style.getPropertyValue(`--trees-item-height`)===``&&(e.style.setProperty(`--trees-item-height`,`${String(this.#u.itemHeight)}px`),this.#x=!0),e.style.getPropertyValue(`--trees-density-override`)===``&&(e.style.setProperty(`--trees-density-override`,String(this.#u.factor)),this.#S=!0)}#I(e){this.#x&&=(e.style.removeProperty(`--trees-item-height`),!1),this.#S&&=(e.style.removeProperty(`--trees-density-override`),!1)}};function BB(e){let t=[],n=[];for(let r of e.trim().split(/\s+/).filter(Boolean)){let e=r.startsWith(`!`),i=e?r.slice(1):r;i&&(e?n:t).push(HB(i,e?VB:nt))}return e=>!n.some(t=>t(e))&&t.every(t=>t(e))}function VB(e,t){return t.toLowerCase().includes(e.toLowerCase())}function HB(e,t){if(!/[*?]/.test(e))return n=>t(e,n);let n=``;for(let t=0;t<e.length;t++){let r=e[t];r===`*`?e[t+1]===`*`?(n+=`.*`,t++):n+=`[^/]*`:n+=r===`?`?`[^/]`:r.replace(/[.+^${}()|[\]\\]/,`\\$&`)}try{let e=new RegExp(n,`i`);return t=>e.test(t)}catch{return n=>t(e,n)}}function UB(e){let t=new Set;for(let n of e)for(let e=n.indexOf(`/`);e!==-1;e=n.indexOf(`/`,e+1))t.add(n.slice(0,e+1));return t}function WB(e){let t=e.lastIndexOf(`/`,e.length-2);return t===-1?``:e.slice(0,t+1)}function GB(e,t){let n=new Set(e),r=new Set(t),i=UB(t),a=new Set([...UB(e)].filter(e=>!i.has(e))),o=[];for(let e of a)a.has(WB(e))||o.push({type:`remove`,path:e,recursive:!0});for(let t of e)!r.has(t)&&!a.has(WB(t))&&o.push({type:`remove`,path:t});for(let e of t)n.has(e)||o.push({type:`add`,path:e});return o}var KB=`_m3 _o`,qB=d,JB=(e=>`/${e}&`)(t);function YB(t){e(t.a,l)}var XB=(e,t)=>D(e.a,t),ZB=(e,t)=>u(e.a,t),QB=(e=>`<label>${e}<input type=search placeholder="Filter files…" aria-label="Filter files"></label>`)(qB),$B=(e=>` D/${e}& l`)(JB),eV=F(17,e=>ue(e,`c`,e.o,gV(e))),tV=P(14,eV),nV=P(15),rV=F(13,e=>{tV(e,(e.m??e.k)||``),nV(e,_V(e))}),iV=k(10,rV),aV=F(7,e=>iV(e,e.f,e.g)),oV=P(5,aV),sV=P(6,aV),cV=j(`u5`,e=>{{let t=e.m;if(t!==null){let n=setTimeout(()=>{lV(e,null),iV(e,t)},150);pe(e,0).onabort=()=>clearTimeout(n)}}}),lV=ge(12,e=>{me(e,0),rV(e),cV(e)}),uV=P(16,eV),dV=j(`u4`,e=>{de(e,`c`),A(e.c,`keydown`,function(t){t.key===`Enter`&&(e.p(),e.i?.()),t.key===`Escape`&&(e.o?(t.preventDefault(),e.q(``)):e.i&&(t.preventDefault(),e.i()))}),A(e.c,`blur`,function(){e.i&&(e.p(),e.i())})});function fV(e){I(e.a,[`_bl`,`_m2`]),YB(e.b),XB(e.b,14),ZB(e.b,`_bm`),I(e.c,[`_bn`,KB]),lV(e,null),uV(e,vV(e)),dV(e)}var pV=j(`u3`,e=>ce(e,{onMount:function(){e.j&&e.c.focus()}})),mV=P(9,pV),hV=P(8),gV=e=>function(t){e.q(t)},_V=e=>()=>{let t=e.m??e.k??``;lV(e,null),iV(e,t)},vV=e=>t=>{if(!t){lV(e,null),iV(e,``);return}lV(e,t)};le.u2=gV,le.u0=_V,le.u1=vV;var yV=new Set([`/`,`.`,`-`,`_`,` `]);function bV(e,t){if(t===0)return!0;let n=e[t-1];if(yV.has(n))return!0;let r=e[t];return r!==r.toLowerCase()&&n===n.toLowerCase()}function xV(e,t,n){let r=0;for(let i=0;i<t.length;i++){let a=t[i];r+=1,bV(e,a)&&(r+=8),i&&t[i-1]===a-1?r+=6:i&&(r-=Math.min(4,a-t[i-1]-1)),a>=n&&(r+=3),a===n&&(r+=6)}return r}function SV(e,t,n){let r=0,i=-1;for(let a=n;a<t.length;a++)if(t[a]===e[r]&&++r===e.length){i=a;break}if(i<0)return null;let a=[];r=e.length-1;for(let o=i;o>=n&&r>=0;o--)t[o]===e[r]&&(a.push(o),r--);return a.reverse()}function CV(e,t,n,r){let i=[],a=r;for(let r=0;r<e.length;r++){let o=i[i.length-1];if(o!=null&&n[o+1]===e[r]){i.push(o+1);continue}let s=a;for(;s<n.length&&!(n[s]===e[r]&&bV(t,s));)s++;if(s>=n.length)return null;i.push(s),a=s+1}return i}function wV(e,t,n,r,i){let a=SV(e,n,r);if(!a)return null;let o=CV(e,t,n,r),s=xV(t,a,i),c=o?xV(t,o,i):-1/0;return c>s?{score:c,hits:o}:{score:s,hits:a}}function TV(e,t,n,r){for(let i=t.indexOf(n,r);i!==-1;i=t.indexOf(n,i+1))if(bV(e,i))return!0;return!1}function EV(e,t){let n=e.split(/\s+/).filter(Boolean);if(!n.length)return{score:0,hits:[]};let r=t.toLowerCase(),i=t.lastIndexOf(`/`)+1,a=0,o=new Set;for(let e of n){let n=e.toLowerCase(),s=wV(n,t,r,i,i),c=s??wV(n,t,r,0,i);if(!c)return null;s&&TV(t,r,n,i)&&(a+=20),r.slice(i)===n&&(a+=30),a+=c.score;for(let e of c.hits)o.add(e)}return a-=t.length/100,{score:a,hits:[...o].sort((e,t)=>e-t)}}function DV(e){let t=e.match(/^(.*?):(\d+)(?::\d+)?\s*$/);return t?{query:t[1],line:Number(t[2])}:{query:e,line:0}}function OV(e,t,n,r){let i=[];for(let r of e){let e=EV(n,t(r));e&&i.push({item:r,match:e})}return i.sort((e,n)=>n.match.score-e.match.score||t(e.item).localeCompare(t(n.item))),i.slice(0,r)}var kV=`_mi _9 _M`,AV=$e,jV=(e=>`/${e}&`)(` b`),MV=60;function NV(e,t,n,r){let i=[],a=new Set(t);for(let t=n;t<r;t++){let n=a.has(t),r=i[i.length-1];r&&r.hit===n?r.text+=e[t]:i.push({text:e[t],hit:n})}return i}var PV=N(0,1,e=>z(e.a,e._.e)),FV=PV,IV=N(0,0,e=>z(e.b,e._.e)),LV=M(0,`<mark> </mark>`,` D `,e=>{IV._(e),I(e.a,`_mg`)},` `,` `,FV),RV=(e,t)=>LV(e,+!t),zV=(e,t)=>{RV(e,t[0]?.hit),BV(e,t[0]?.text)},BV=P(4,e=>{IV(e),PV(e)}),VV=N(0,1,e=>z(e.a,e._.e)),HV=VV,UV=N(0,0,e=>z(e.b,e._.e)),WV=M(0,`<mark> </mark>`,` D `,e=>{UV._(e),I(e.a,`_mg`)},` `,` `,HV),GV=(e,t)=>WV(e,+!t),KV=(e,t)=>{GV(e,t[0]?.hit),qV(e,t[0]?.text)},qV=P(4,e=>{UV(e),VV(e)}),JV=e=>I(e.a,Be),YV=N(5,0,e=>z(e.b,e._.n)),XV=e=>{YV._(e),I(e.a,kV)},ZV=V(34,e=>z(e.b,e._._._._.u),e=>e._._._._,`L5`),QV=e=>{ZV(e),I(e.a,`_mh`)},$V=F(2,e=>z(e.b,e._._._.l?`Loading files…`:e._._._.s?`No file matches “${se(e._._._.s)}”.`:`Type part of a file's name. Add :42 to open it at line 42.`)),eH=V(29,$V,e=>e._._._,`L11`),tH=e=>{eH(e),nH(e),I(e.a,`_cL`)},nH=V(33,$V,e=>e._._._,`L12`),rH=V(28,e=>z(e.b,e._._._._.k),e=>e._._._._,`L4`),iH=M(0,`<li role=presentation>Recently opened</li>`,` `,JV,`<li role=presentation> </li>`,` D `,e=>{rH(e),I(e.a,Be)}),aH=F(17,e=>iH(e,!e._._._.s&&e.o===0?0:e.j&&(e.o===0||!e._._._.v[e.o-1].more)?1:2),3),oH=V(33,aH,e=>e._._._,`L7`),sH=j(`L6`,e=>{A(e.c,`mousemove`,function(){e._._._.p!==e.o&&JH(e._._._,e.o)}),A(e.c,`click`,function(){e._._._.a1(e.o)})}),cH=e=>{oH(e),dH(e),fH(e),mH(e),I(e.d,`_me`),I(e.e,`_mf`),sH(e)},lH=M(6,`<span>:<!></span>`,` Db%`,QV),uH=F(16,e=>lH(e,e._._._.u&&e.o===e._._._.y?0:1),2),dH=V(34,uH,e=>e._._._,`L8`),fH=V(35,aH,e=>e._._._,`L9`),pH=F(15,e=>{R(e.b,`aria-selected`,e.o===e._._._.y?`true`:`false`),I(e.c,[`_cG`,e.o===e._._._.y&&`_cF`])}),mH=V(37,e=>{pH(e),uH(e)},e=>e._._._,`L10`),hH=P(9,aH),gH=P(14,e=>{aH(e),pH(e),uH(e)}),_H=ie(3,`<!><!><!>`,`b%`,0,KV),vH=ie(4,`<!><!><!>`,`b%`,0,zV),yH=F(20,e=>{_H(e,[NV(e.s,e.m,e.t,e.s?.length)]),vH(e,[NV(e.s,e.m,0,Math.max(0,e.t-1))])},2),bH=P(19,yH),xH=P(18,e=>{R(e.c,`title`,e.s),bH(e,e.s.lastIndexOf(`/`)+1),yH(e)}),SH=P(12,yH),CH=M(5,`<span> </span>`,` D `,XV),wH=P(13,e=>{CH(e,+!e.n),YV(e)}),TH=(e,t)=>{hH(e,t[0]?.more),xH(e,t[0]?.item?.path),wH(e,t[0]?.item?.hint),SH(e,t[0]?.hits),gH(e,t[1])},EH=V(31,e=>ue(e,`c`,e._._.o,hU(e)),e=>e._._,`L15`),DH=j(`L14`,e=>{de(e,`c`),A(e.d,`click`,function(){e._._.z()})}),OH=e=>{EH(e),kH(e),jH(e),PH(e),I(e.a,`_cA`),ee(e.b),C(e.b,14),E(e.b),I(e.c,He),I(e.d,[v,`_cC`]),re(e.e),te(e.e,16),m(e.e),I(e.f,`_cD`),DH(e)},kH=V(32,e=>{R(e.c,`aria-controls`,e._._.q),R(e.f,`id`,e._._.q)},e=>e._._),AH=fe(5,`<!><!><li role=option><button type=button><span></span><span></span><!><!></button></li>`,`b%b D D b b%b%`,cH,TH),jH=V(35,e=>AH(e,[e._._.v,e=>`${e.more?`+`:``}${e.item.key}`]),e=>e._._,`L16`),MH=M(6,`<p> </p>`,` D `,tH),NH=j(`L13`,e=>A(e.c,`keydown`,function(t){if(t.key===`ArrowDown`||t.key===`ArrowUp`){t.preventDefault();let n=e._._.w;n&&JH(e._._,(e._._.y+(t.key===`ArrowDown`?1:-1)+n)%n)}else t.key===`Enter`&&(t.preventDefault(),e._._.a1(e._._.y))})),PH=V(36,e=>{MH(e,+!!e._._.w),NH(e)},e=>e._._,`L17`),FH=M(0,((e,t)=>`<div>${e}<input type=search autofocus autocomplete=off placeholder="Go to file (name:42 for a line)" aria-label="Go to file" role=combobox aria-expanded=true><button type=button title=Close aria-label=Close>${t}</button></div><ul role=listbox></ul><!><!>`)(b,_),((e,t)=>` D/${e}& b D/${t}&m b%c`)(g,ne),OH),IH=V(30,e=>FH(e,+!e._.m),0,`L18`),LH=ae(`L19`,`<!><!><!>`,`b%`,IH),RH=L(IH),zH=k(12,e=>{Xe(e.a,e.m),RH(e)}),BH=F(5,e=>zH(e,e.d,e.e)),VH=P(3,BH),HH=P(4,BH),UH=(e,t)=>{iU(e,t?.query),oU(e,t?.line)},WH=L(EH),GH=ge(14,e=>{UH(e,DV(e.o.trim())),WH(e)}),KH=P(24,L(mH)),qH=F(23,e=>KH(e,Math.min(e.p,Math.max(0,e.w-1)))),JH=ge(15,qH),YH=P(16),XH=P(27),ZH=F(26,e=>XH(e,gU(e)),3),QH=P(25,ZH);function $H(e){Je(e.a),U(e.a,LH(e)),qe(e.a,`Go to file`),Ge(e.a,[`_bF`,`_cz`]),W(e.a,vU(e)),tt(e.a,!0),Ye(e.a),Qe(e.a),Ke(e.a),Ze(e.a),et(e.a,{}),GH(e,``),JH(e,0),YH(e,oe(e)),QH(e,_U(e))}var eU=L(jH,fH),tU=P(21,e=>{cU(e,e.v?.length),ZH(e),eU(e)}),nU=F(19,e=>tU(e,(()=>{let t=e.s;if(!t){let t=new Map(e.g.map(e=>[e.key,e]));return(e.h||[]).map(e=>t.get(e)).filter(e=>!!e).map(e=>({item:e,hits:[],more:!1}))}let n=OV(e.g,e=>e.path,t,MV).map(e=>({item:e.item,hits:e.match.hits,more:!1})),r=e.i?OV(e.i.items,e=>e.path,t,MV).map(e=>({item:e.item,hits:e.match.hits,more:!0})):[];return[...n,...r]})()),3),rU=L(oH,nH),iU=P(18,e=>{nU(e),rU(e)}),aU=L(dH,ZV),oU=P(20,e=>{ZH(e),aU(e)}),sU=L(PH),cU=P(22,e=>{qH(e),sU(e)}),lU=P(6,nU),uU=P(7,nU),dU=P(8,e=>{pU(e,e.i?.label),nU(e)}),fU=P(9,ZH),pU=P(10,L(rH)),mU=P(11,L(eH)),hU=e=>function(t){GH(e._._,t),JH(e._._,0)},gU=e=>t=>{let n=e.v[t];if(!n)return;let r=e.u;e.z(),e.j(n.item.key,r,n.more)},_U=e=>()=>{zH(e,!1),GH(e,``),JH(e,0)},vU=e=>t=>{zH(e,t)};le.L3=hU,le.L1=gU,le.L0=_U,le.L2=vU;export{fw as $,JA as A,FS as At,Lk as B,Ix as Bt,UB as C,uC as Ct,ZA as D,nC as Dt,zB as E,KS as Et,pA as F,IS as Ft,Aw as G,Mk as H,nx as Ht,fA as I,AS as It,_w as J,jw as K,uA as L,yS as Lt,hA as M,HS as Mt,gA as N,BS as Nt,ej as O,tC as Ot,mA as P,PS as Pt,pw as Q,dA as R,fS as Rt,JB as S,bC as St,BB as T,aC as Tt,Zk as U,t_ as Ut,$k as V,xx as Vt,kk as W,Nt as Wt,hw as X,gw as Y,mw as Z,$B as _,wC as _t,VH as a,aw as at,YB as b,fC as bt,$H as c,nw as ct,mV as d,HC as dt,dw as et,hV as f,VC as ft,QB as g,SC as gt,fV as h,EC as ht,fU as i,rw as it,UA as j,NS as jt,QA as k,jS as kt,AV as l,$C as lt,sV as m,TC as mt,mU as n,uw as nt,HH as o,ow as ot,oV as p,FC as pt,bw as q,dU as r,cw as rt,uU as s,sw as st,lU as t,lw as tt,jV as u,AC as ut,ZB as v,CC as vt,GB as w,iC as wt,qB as x,yC as xt,XB as y,DC as yt,Xk as z,Bx as zt};
|
|
1591
|
+
}`}var yI=new WeakMap;function bI(e){let t=yI.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute(yM,`true`);let r=document.createElement(`div`);r.style.position=`relative`,r.style.height=`200%`,n.appendChild(r),e.appendChild(n);let i=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),yI.set(e,i),i}function xI(e,t){if(!e.isConnected)return;let n=bI(t);if(n==null)return;let r=t.querySelector(`style[${bM}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(bM,``),t.appendChild(i)),i.textContent=`:host { ${xM}: ${n}px; }`}var SI;function CI(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){SI??(SI=new CSSStyleSheet,SI.replaceSync(_I(hI)));let t=!1;try{e.adoptedStyleSheets=[SI],t=!0}catch{}if(t){e.querySelector(`style[${_M}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(_M,``),t.textContent=_I(hI),e.prepend(t)}}function wI(e,t){TI(e,t),CI(t),xI(e,t)}function TI(e,t){let n=e.querySelector(`template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]`);n instanceof HTMLTemplateElement&&(t.childNodes.length>0||(t.appendChild(n.content.cloneNode(!0)),n.hasAttribute(`shadowrootmode`)&&n.remove()))}if(typeof HTMLElement<`u`&&customElements.get(`file-tree-container`)==null){class e extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.shadowRoot??this.attachShadow({mode:`open`});wI(this,e)}}if(customElements.define(gM,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(gM)))e instanceof HTMLElement&&wI(e,e.shadowRoot??e.attachShadow({mode:`open`}))}var EI=e=>e.startsWith(`f::`)?e.slice(3):e;function DI(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function OI(e,t){return e===``?t:`${e}/${t}`}function kI({files:e,path:t,isFolder:n,nextBasename:r}){let i=EI(t),a=r.trim();if(a.length===0)return{error:`Name cannot be empty.`};if(a.includes(`/`))return{error:`Name cannot include "/".`};let{parentPath:o,baseName:s}=DI(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=OI(o,a),l=Array(e.length),u=new Set;if(!n){let t=`${c}/`,r=!1;for(let n=0;n<e.length;n++){let a=e[n];if(a!==i&&a.startsWith(t))return{error:`"${c}" already exists.`};let o=a===i?c:a;if(u.has(o))return{error:`"${c}" already exists.`};u.add(o),l[n]=o,a===i&&(r=!0)}return r?{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}:{error:`Could not find the selected file to rename.`}}let d=`${i}/`,f=`${c}/`,p=0;for(let t=0;t<e.length;t++){let n=e[t],r=n===i||n.startsWith(d);if(!r&&(n===c||n.startsWith(f)))return{error:`"${c}" already exists.`};let a=r?`${c}${n.slice(i.length)}`:n;if(u.has(a))return{error:`"${c}" already exists.`};u.add(a),l[t]=a,r&&p++}return p===0?{error:`Could not find the selected folder to rename.`}:{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}}function AI(e){return e.endsWith(`/`)}function jI(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`),r=n<0?t:t.slice(n+1);return e.endsWith(`/`)?`${r}/`:r}function MI(e){let t=[],n=new Set;for(let r of e)n.has(r)||(n.add(r),t.push(r));let r=new Set;for(let e of t.toSorted((e,t)=>e.length===t.length?e.localeCompare(t):e.length-t.length)){let t=(e.endsWith(`/`)?e.slice(0,-1):e).split(`/`),n=!1;for(let e=0;e<t.length-1;e+=1){let i=`${t.slice(0,e+1).join(`/`)}/`;if(r.has(i)){n=!0;break}}n||r.add(e)}return t.filter(e=>r.has(e))}function NI(e,t){return t.includes(e)?MI(t):[e]}function PI(e,t){return e===t?!0:e==null||t==null?!1:e.kind===t.kind&&e.directoryPath===t.directoryPath&&e.flattenedSegmentPath===t.flattenedSegmentPath&&e.hoveredPath===t.hoveredPath}function FI(e,t){return{draggedPaths:e,target:t}}function II(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(AI(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function LI(e,t){return t.kind===`root`||t.directoryPath==null?jI(e):t.directoryPath}function RI(e,t){let n=e.map(e=>{let n=LI(e,t);return n===e?null:{from:e,to:n,type:`move`}}).filter(e=>e!=null);return n.length===0?null:{operations:n,result:{draggedPaths:e,operation:n.length===1?`move`:`batch`,target:t}}}function zI(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}function BI(e,t,n){let{paths:r,preparedInput:i}=e;if(i==null){if(r==null)throw Error(`FileTree requires paths or preparedInput`);return{paths:r,preparedInput:void 0}}let a=i.paths;if(r==null)return{paths:a,preparedInput:i};if(!zI(uI.preparePaths(r,n==null?{}:{sort:n}),a))throw Error(`FileTree ${t} received paths and preparedInput for different path lists`);return{paths:a,preparedInput:i}}function VI(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}function HI(e,t,n){if(e===t)return n;let r=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(r)?`${n.endsWith(`/`)?n:`${n}/`}${e.slice(r.length)}`:e}function UI(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function WI(e,t,n=!1){if(e==null)return null;switch(t.operation){case`add`:case`expand`:case`collapse`:case`mark-directory-unloaded`:case`begin-child-load`:case`apply-child-patch`:case`complete-child-load`:case`fail-child-load`:case`cleanup`:return e;case`remove`:return UI(e,t.path)?n?e:null:e;case`move`:return HI(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=WI(r,e,n),r==null)return null;return r}}}function GI(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function KI(e){switch(e.operation){case`add`:return{...GI(e),operation:`add`,path:e.path};case`remove`:return{...GI(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...GI(e),from:e.from,operation:`move`,to:e.to}}}function qI(e){return{...GI(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>KI(e)),operation:`batch`}}function JI(e){switch(e.operation){case`add`:case`remove`:case`move`:return KI(e);case`batch`:return qI(e);default:return null}}function YI(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function XI(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=t.split(`/`);return n.slice(0,-1).map((e,t)=>`${n.slice(0,t+1).join(`/`)}/`)}function ZI(e){return XI(e).at(-1)??null}function QI(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function $I(e){return e.endsWith(`/`)}var eL=e=>e.toLowerCase();function tL(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function nL(e){return e.endsWith(`/`)?e.slice(0,-1):e}function rL(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}var iL=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()},aL=Symbol(`FILE_TREE_RENAME_VIEW`),oL=512,sL=512;function cL(e){return e===`top`||e===`center`?e:`nearest`}function lL(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=XI(n);for(let e=r.length-1;e>=0;--e){let n=r[e];if(n==null)continue;let i=t(n);if(i!=null)return i}}return 0}function uL(e,t,n){if(e.paths.length===0)return{focusedIndex:-1,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};if(t==null)return{focusedIndex:0,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};let r=n??(t=>e.visibleIndexByPath.get(t)??null);return{focusedIndex:lL(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var dL=class e{static{Object.defineProperty(e.prototype,aL,{configurable:!0,value(){return{cancel:()=>{this.#q()},commit:()=>{this.#J()},getPath:()=>this.#T,getValue:()=>this.#E,isActive:()=>this.#T!=null,setValue:e=>{this.#Y(e)}}},writable:!0})}#e;#t=new Set;#n=new Map;#r=null;#i=null;#a=new Map;#o=new Map;#s=-1;#c=null;#l=!1;#u=e=>-1;#d=new Map;#f=null;#p=null;#m=null;#h=null;#g=null;#_;#v;#y;#b=[];#x=new Int32Array;#S=new Int32Array;#C=void 0;#w=!1;#T=null;#E=``;#D=!1;#O=new Set;#k=[];#A;#j=null;#M=null;#N=null;#P=null;#F=null;#I=null;#L=null;#R=0;#z=null;#B=new Set;#V=0;#H;#U=0;#W=!1;#G=0;#K;constructor(e){let{dragAndDrop:t,fileTreeSearchMode:n,initialSearchQuery:r,initialSelectedPaths:i,renaming:a,onSearchChange:o,paths:s,preparedInput:c,...l}=e,u=BI({paths:s,preparedInput:c},`constructor`,l.sort);this.#e=l,t!=null&&t!==!1&&(this.#r=t===!0?{}:t),this.#w=a!=null&&a!==!1,a!=null&&a!==!1&&a!==!0&&(this.#C=a.canRename,this.#v=a.onError,this.#_=a.onRename),this.#y=o,this.#A=n??`hide-non-matches`,this.#H=this.#le(u.paths,u.preparedInput);let d=i?.map(e=>this.#Ne(e)).filter(e=>e!=null)??[],f=d.at(-1)??null;d.length>0&&(this.#B=new Set(d),this.#z=f,this.#V=1),this.#je(f,!1),r!=null&&this.#Te(r,!1),this.#K=this.#Re()}destroy(){this.#K?.(),this.#K=null,this.#n.clear(),this.#t.clear(),this.#d.clear(),this.#i=null,this.#he()}focusFirstItem(){this.#be().length>0&&this.#Fe(0)}focusLastItem(){this.#G<=0||(this.#Ie(),this.#Fe(this.#G-1))}focusNextItem(){this.#Ae(1)}focusParentItem(){if(this.#c==null)return;let e=ZI(this.#c);if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t)}focusPath(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;this.#Ie();let n=this.#Z(t);n>=0&&this.#Fe(n)}scrollToPath(e,t){let n=this.#H.getPathInfo(e)?.path??null;if(n==null)return;this.#Ie();let r=this.#xe(n);r<0||this.#Me(r)!=null&&(t?.focus!==!1&&this.#Fe(r,!1),this.#L={id:this.#R+=1,offset:cL(t?.offset),visibleIndex:r},this.#De())}focusMountedPathFromInput(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;let n=this.#Z(t);n>=0&&this.#Fe(n)}focusNearestPath(e){let t=this.resolveNearestVisiblePath(e);if(t==null)return null;let n=this.#Z(t);return n>=0?(this.#Fe(n),this.#be()[n]??t):null}focusPreviousItem(){this.#Ae(-1)}getFocusedIndex(){return this.#s}getFocusedItem(){return this.#c==null?null:this.#Q(this.#c)}getFocusedPath(){return this.#c}getScrollRequest(){return this.#L}clearScrollRequest(e){this.#L?.id===e&&(this.#L=null)}resolveNearestVisiblePath(e){let t=this.#be();if(this.#G===0)return null;if(e==null)return this.#c??t[0]??null;let n=this.#H.getPathInfo(e)?.path??e,r=this.#Z(n);return r>=0?t[r]??n:this.#X(n)??this.#c??t[0]??null}getSelectedPaths(){return[...this.#B]}getSelectionVersion(){return this.#V}getVisibleCount(){return this.#G}getVisibleRows(e,t){if(t<e||this.#G===0)return[];let n=Math.max(0,e),r=Math.min(this.#G-1,t);if(r<n)return[];let i=r-n+1;if(this.#F==null&&!this.#l&&r>=this.#b.length&&i<=sL){let e=[];for(let t=n;t<=r;t+=1){let n=this.#H.getVisibleRowContext(t);if(n==null)break;e.push(this.#ee(n))}return e}if(!this.#l&&r>=this.#b.length&&this.#Ie(),this.#F!=null){let e=Array.from({length:r-n+1},(e,t)=>this.#Se(n+t)),t=new Map,i=e[0]??-1,a=i;for(let n=1;n<=e.length;n+=1){let r=e[n];if(r!=null&&r===a+1){a=r;continue}if(i>=0&&this.#H.getVisibleSlice(i,a).forEach((e,n)=>{t.set(i+n,e)}),r==null){i=-1,a=-1;continue}i=r,a=r}return Array.from({length:r-n+1},(e,r)=>{let i=n+r,a=this.#Se(i),o=t.get(a),s=this.#b[a];if(o==null||s==null)throw Error(`Missing projection row for filtered visible index ${String(i)}`);return this.#$(o,i,a,{ancestorPaths:this.#re(a),path:s})})}return this.#H.getVisibleSlice(n,r).map((e,t)=>{let r=n+t,i=this.#b[r];if(i==null)throw Error(`Missing projection path for visible index ${String(r)}`);return this.#$(e,r,r,{ancestorPaths:this.#re(r),path:i})})}getStickyRowCandidates(e,t){if(this.#F!=null)return null;if(this.#G===0||e<=0||t<=0)return[];let n=[];for(let r=0;r<this.#G;r+=1){let i=e+r*t,a=Math.min(this.#G-1,Math.floor(i/t)),o=this.#te(a,r)??(a>0?this.#te(a-1,r):void 0);if(o==null)break;n.push({row:this.#ee(o),subtreeEndIndex:o.subtreeEndIndex})}return n}getItem(e){let t=this.#H.getPathInfo(e);return t==null?null:this.#Q(t.path,t)}resolveMountedDirectoryPathFromInput(e){let t=this.#H.getPathInfo(e);return t?.kind===`directory`?t.path:null}toggleMountedDirectoryFromInput(e){let t=this.resolveMountedDirectoryPathFromInput(e);t!=null&&this.#ze(t)}selectAllVisiblePaths(){this.#Ie();let e=[...this.#be()];this.#ae(e,this.#c??this.#z)}selectOnlyPath(e){let t=this.#Ne(e);t!=null&&this.#ae([t],t)}selectOnlyMountedPathFromInput(e){this.#ae([e],e)}selectPath(e){let t=this.#Ne(e);t==null||this.#B.has(t)||this.#ae([...this.#B,t])}deselectPath(e){let t=this.#Ne(e);t!=null&&this.#B.has(t)&&this.#ae([...this.#B].filter(e=>e!==t))}toggleFocusedSelection(){this.#c!=null&&this.togglePathSelectionFromInput(this.#c)}togglePathSelection(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.deselectPath(t);return}this.selectPath(t)}}togglePathSelectionFromInput(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.#ae([...this.#B].filter(e=>e!==t),t);return}this.#ae([...this.#B,t],t)}}selectPathRange(e,t){let n=this.#Ne(e);if(n==null)return;this.#Ie();let r=this.#z,i=r==null?-1:this.#Ce(r),a=this.#Ce(n);if(i===-1||a===-1){let e=t?[...this.#B,n]:[n];this.#ae(e,n);return}let[o,s]=i<=a?[i,a]:[a,i],c=this.#be().slice(o,s+1),l=t?[...this.#B,...c]:c;this.#ae(l,r)}extendSelectionFromFocused(e){if(this.#c==null)return;let t=this.#s;if(t===-1)return;let n=Math.min(this.#G-1,Math.max(0,t+e));if(n===t)return;!this.#l&&n>=this.#b.length&&this.#Ie();let r=this.#be(),i=r[t]??null,a=r[n]??null;if(i==null||a==null)return;let o=new Set(this.#B);o.has(i)&&o.has(a)?o.delete(i):o.add(a),this.#ae([...o],this.#z??i,!1),this.#Fe(n)}getDragAndDropConfig(){return this.#r}isDragAndDropEnabled(){return this.#r!=null}getDragSession(){return this.#i==null?null:{draggedPaths:[...this.#i.draggedPaths],primaryPath:this.#i.primaryPath,target:this.#i.target==null?null:{...this.#i.target}}}startDrag(e){if(this.#r==null)return!1;let t=this.#Ne(e);if(t==null||this.#M!=null&&this.#M.length>0)return!1;let n=this.getSelectedPaths(),r=NI(t,n);return this.#r.canDrag?.(r)!==!1&&(n.includes(t)||this.#ae([t],t,!1),this.#Pe(t),this.#i={draggedPaths:r,primaryPath:t,target:null},this.#De(),!0)}setDragTarget(e){let t=this.#i;if(t==null)return;let n=e;if(n!=null){let e=FI(t.draggedPaths,n);(II(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}PI(t.target,n)||(this.#i={...t,target:n},this.#De())}cancelDrag(){this.#i!=null&&(this.#i=null,this.#De())}completeDrag(){let e=this.#i;if(e==null)return!1;this.#i=null;let t=e.target==null?null:{...e.target};if(t==null)return this.#De(),!1;let n=FI(e.draggedPaths,t);if(II(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#De(),!1;let r=RI(e.draggedPaths,t);if(r==null)return this.#De(),!1;try{if(r.operations.length===1){let e=r.operations[0];if(e==null||e.type!==`move`)throw Error(`Expected a single move operation for one-item drops`);this.#H.move(e.from,e.to,{collision:e.collision})}else this.#ce(r.operations),this.#H.batch(r.operations)}catch(e){return this.#De(),this.#r?.onDropError?.(e instanceof Error?e.message:String(e),n),!1}return this.#r?.onDropComplete?.(r.result),!0}subscribe(e){return this.#t.add(e),e(),()=>{this.#t.delete(e)}}add(e){this.#H.add(e)}remove(e,t={}){this.#H.remove(e,t)}move(e,t,n={}){this.#H.move(e,t,n)}batch(e){this.#H.batch(e)}onMutation(e,t){let n=e,r=t,i=this.#n.get(n);return i??(i=new Set,this.#n.set(n,i)),i.add(r),()=>{let e=this.#n.get(n);e?.delete(r),e?.size===0&&this.#n.delete(n)}}setSearch(e){this.#Te(e,!0)}openSearch(e=``){this.#Te(e,!0)}closeSearch(){this.#Te(null,!0)}isSearchOpen(){return this.#M!==null}getSearchValue(){return this.#M??``}getSearchMatchingPaths(){return this.#k}focusNextSearchMatch(){this.#we(1)}focusPreviousSearchMatch(){this.#we(-1)}startRenaming(e=this.#c??``,t={}){if(!this.#w)return!1;let n=this.#H.getPathInfo(e);if(n==null)return!1;let r=n.path,i=$I(r),a=nL(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of XI(r))this.#H.isExpanded(e)||this.#H.expand(e);return this.#ae([r],r,!1),this.#M!=null&&(this.#Te(null,!1),this.#y?.(this.#M)),this.#Pe(r),this.#T=r,this.#E=tL(r),this.#D=t.removeIfCanceled??!1,this.#De(),!0}#q(){if(this.#T==null)return;let e=this.#T,t=this.#D;if(this.#T=null,this.#E=``,this.#D=!1,t){this.remove(e,$I(e)?{recursive:!0}:void 0);return}this.#Pe(e),this.#De()}#J(){let e=this.#T;if(e==null)return;if(this.#D&&this.#E.trim().length===0){this.#T=null,this.#E=``,this.#D=!1,this.remove(e,$I(e)?{recursive:!0}:void 0);return}let t=$I(e),n=kI({files:this.#H.list(),isFolder:t,nextBasename:this.#E,path:nL(e)});if(this.#T=null,this.#E=``,this.#D=!1,`error`in n){this.#Pe(e),this.#v?.(n.error),this.#De();return}if(n.sourcePath===n.destinationPath){this.#Pe(e),this.#De();return}this.#_?.({destinationPath:n.destinationPath,isFolder:n.isFolder,sourcePath:n.sourcePath}),this.move(rL(n.sourcePath,t),rL(n.destinationPath,t))}#Y(e){this.#T!=null&&this.#E!==e&&(this.#E=e,this.#De())}resetPaths(e,t={}){let n=!Array.isArray(e),r=n?void 0:e,i=n?e:t,a=this.#H.list().length,o=this.#G,s=BI({paths:r,preparedInput:i.preparedInput},`resetPaths`,this.#e.sort),c=this.#le(s.paths,s.preparedInput,i.initialExpandedPaths),l=this.#c,u=this.#T,d=this.getSelectedPaths(),f=this.#z;this.#K?.(),this.#H=c,this.#d.clear(),this.#he();let p=d.map(e=>c.getPathInfo(e)?.path??null).filter(e=>e!=null),m=!YI(this.#B,p);this.#B=new Set(p),m&&(this.#V+=1),this.#z=f==null?null:c.getPathInfo(f)?.path??null,this.#T=u==null?null:c.getPathInfo(u)?.path??null,this.#T??(this.#E=``,this.#D=!1),this.#je(l,l!=null||p.length>0||this.#z!=null),this.#K=this.#Re(),this.#De(),this.#Oe({canonicalChanged:!0,operation:`reset`,pathCountAfter:s.paths.length,pathCountBefore:a,projectionChanged:!0,usedPreparedInput:i.preparedInput!=null,visibleCountDelta:this.#G-o})}#X(e){this.#Ie();let t=ZI(e),n=QI(e,t),r=null,i=null;for(let e of this.#be()){if(ZI(e)!==t)continue;let a=QI(e,t);if(a<n){r=e;continue}if(a>n){i=e;break}}return r??i}#Z(e){let t=this.#Ce(e);if(t!==-1)return t;let n=XI(e);for(let e=n.length-1;e>=0;--e){let t=n[e];if(t==null)continue;let r=this.#Ce(t);if(r!==-1)return r}return this.#be().length>0?0:-1}#Q(e,t){let n=this.#d.get(e);if(n!=null)return n;let r=t??this.#H.getPathInfo(e);if(r==null)return null;let i=r.kind===`directory`?this.#oe(r.path):this.#se(r.path);return this.#d.set(r.path,i),i}#$(e,t,n,r){return{ancestorPaths:r.ancestorPaths,depth:e.depth,flattenedSegments:e.flattenedSegments?.map(e=>({isTerminal:e.isTerminal,name:e.name,path:e.path})),hasChildren:e.hasChildren,index:t,isExpanded:e.isExpanded,isFlattened:e.isFlattened,isFocused:r.path===this.#c,isSelected:this.#B.has(r.path),kind:e.kind,level:e.depth,name:e.name,path:r.path,posInSet:r.posInSet??this.#x[n]??0,setSize:r.setSize??this.#S[n]??0}}#ee(e){return this.#$(e.row,e.index,e.index,{ancestorPaths:e.ancestorPaths,path:e.row.path,posInSet:e.posInSet,setSize:e.setSize})}#te(e,t){let n=this.#H.getVisibleRowContext(e);return n==null?void 0:n.ancestorRows[t]??(t===n.ancestorRows.length&&n.row.kind===`directory`&&n.row.isExpanded?n:void 0)}#ne(e){let t=this.#a.get(e);if(t!=null)return t;let n=this.#u(e),r=n<0?[]:[...this.#ne(n),n];return this.#a.set(e,r),r}#re(e){let t=this.#o.get(e);if(t!=null)return t;let n=this.#ne(e).map(e=>this.#b[e]??``).filter(e=>e!==``);return this.#o.set(e,n),n}#ie(e){this.#H.collapse(e)}#ae(e,t=this.#z,n=!0){let r=[...new Set(e)],i=!YI(this.#B,r),a=this.#z!==t;(i||a)&&(this.#B=new Set(r),this.#z=t,i&&(this.#V+=1),n&&this.#De())}#oe(e){return{collapse:()=>{this.#ie(e)},deselect:()=>{this.deselectPath(e)},expand:()=>{this.#ke(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!0,isExpanded:()=>this.#H.isExpanded(e),isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)},toggle:()=>{this.#ze(e)}}}#se(e){return{deselect:()=>{this.deselectPath(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!1,isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)}}}#ce(e){let t=this.#H.list();this.#le(t).batch(e)}#le(e,t,n){return new uI({...this.#e,paths:e,preparedInput:t??void 0,...n===void 0?{}:{initialExpandedPaths:n}})}#ue(){return this.#h??=this.#H.list(),this.#h}#de(){if(this.#m!=null)return this.#m;let e=new Set;for(let t of this.#ue()){e.add(t);for(let n of XI(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#fe(){return this.#g??=this.#ue().map(eL),this.#g}#pe(){return this.#f??=this.#de().filter(e=>e.endsWith(`/`)),this.#f}#me(){return this.#p??=this.#pe().map(eL),this.#p}#he(){this.#f=null,this.#p=null,this.#m=null,this.#h=null,this.#g=null}#ge(){return this.#pe().filter(e=>this.#H.isExpanded(e))}#_e(e){let t=new Set(this.#j??[]);if(e)for(let e of this.#B)for(let n of XI(e))t.add(n);this.#ve(t)}#ve(e){this.#W=!0;try{for(let t of this.#pe()){let n=e.has(t),r=this.#H.isExpanded(t);n&&!r?this.#H.expand(t):!n&&r&&this.#H.collapse(t)}}finally{this.#W=!1}}#ye(){if(this.#M==null||this.#M.length===0){this.#k=[],this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let e=this.#b;if(this.#k=e.filter(e=>this.#O.has(e)),this.#A!==`hide-non-matches`||this.#O.size===0){this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let t=[],n=[],r=new Map;for(let[i,a]of e.entries())this.#N?.has(a)===!0&&(r.set(a,n.length),t.push(i),n.push(a));this.#F=t,this.#I=n,this.#P=r,this.#G=n.length}#be(){return this.#I??this.#b}#xe(e){return this.#I==null?this.#H.getVisibleIndex(e)??-1:this.#P?.get(e)??-1}#Se(e){return this.#F?.[e]??e}#Ce(e){return this.#P?.get(e)??this.#H.getVisibleIndex(e)??-1}#we(e){let t=this.#k;if(t.length===0)return;let n=this.#c,r=n==null?-1:t.indexOf(n),i=t[r<0?e>0?0:t.length-1:Math.min(t.length-1,Math.max(0,r+e))];i!=null&&this.focusPath(i)}#Te(e,t){let n=e==null?null:iL(e),r=this.#M;if(r!==n){if(r==null&&n!=null&&(this.#j=this.#ge()),this.#M=n,n==null)this.#_e(!0),this.#j=null,this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else if(n.length===0)this.#_e(!1),this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else{let e=this.#Ee();this.#je(e,!0)}t&&(this.#y?.(this.#M),this.#De())}}#Ee(){if(this.#M==null||this.#M.length===0)return this.#O.clear(),this.#c;let e=this.#M,t=this.#ue(),n=this.#fe(),r=[],i=new Set,a=null;for(let o=0;o<t.length;o+=1){if(!n[o].includes(e))continue;let s=t[o];r.push(s),i.add(s),a??=s}let o=this.#pe(),s=this.#me();for(let t=0;t<o.length;t+=1){if(!s[t].includes(e))continue;let n=o[t];i.has(n)||(r.push(n),i.add(n),a??=n)}this.#O=i;let c=this.#A===`hide-non-matches`&&r.length>0?new Set:null;this.#N=c;let l=this.#A===`expand-matches`?new Set(this.#j??[]):new Set;for(let e of r){c?.add(e),e.endsWith(`/`)&&l.add(e);for(let t of XI(e))l.add(t),c?.add(t)}return this.#ve(l),a??this.#c}#De(){for(let e of this.#t)e()}#Oe(e){this.#n.get(e.operation)?.forEach(t=>{t(e)}),this.#n.get(`*`)?.forEach(t=>{t(e)})}#ke(e){for(let t of XI(e))this.#H.isExpanded(t)||this.#H.expand(t);this.#H.isExpanded(e)||this.#H.expand(e)}#Ae(e){let t=this.#G;if(t===0)return;let n=this.#s===-1?0:this.#s,r=Math.min(t-1,Math.max(0,n+e));(r!==n||this.#s===-1)&&(!this.#l&&this.#F==null&&r>=this.#b.length&&this.#Ie(),this.#Fe(r))}#je(e,t=!0){let n=this.#H.getVisibleCount();this.#U=n;let r=uL(this.#H.getVisibleTreeProjectionData(t?void 0:Math.min(n,oL)),e,t?e=>this.#H.getVisibleIndex(e):void 0);this.#a.clear(),this.#o.clear(),this.#l=r.paths.length>=n,this.#u=r.getParentIndex,this.#b=r.paths,this.#x=r.posInSetByIndex,this.#S=r.setSizeByIndex,this.#ye(),this.#s=e==null?this.#be().length>0?0:-1:this.#Z(e),this.#c=this.#s<0?null:this.#Me(this.#s)}#Me(e){return this.#be()[e]??(this.#F==null?this.#H.getVisibleRowContext(e)?.row.path??null:null)}#Ne(e){return this.#H.getPathInfo(e)?.path??null}#Pe(e){if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t,!1)}#Fe(e,t=!0){let n=this.#Me(e);n!=null&&(this.#s!==e||this.#c!==n)&&(this.#s=e,this.#c=n,t&&this.#De())}#Ie(){this.#l||this.#je(this.#c,!0)}#Le(e){let t=WI(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=WI(this.#c,e,!0),r=[...this.#B].map(t=>WI(t,e)).filter(e=>e!=null).map(e=>this.#H.getPathInfo(e)?.path??null).filter(e=>e!=null),i=WI(this.#z,e),a=i==null?null:this.#H.getPathInfo(i)?.path??null,o=[...new Set(r)];return YI(this.#B,o)||(this.#B=new Set(o),this.#V+=1),this.#z=a,n}#Re(){return this.#H.on(`*`,e=>{if(this.#W)return;e.canonicalChanged&&(this.#d.clear(),this.#he()),this.#i!=null&&VI(e)&&(this.#i=null);let t=VI(e)?this.#Le(e):this.#c,n=this.#M!=null&&this.#M.length>0?this.#Ee():this.#M===``?this.#c:t,r=this.#M!=null||e.operation!==`expand`&&e.operation!==`collapse`;this.#je(n,r),this.#De();let i=JI(e);i!=null&&this.#Oe(i)})}#ze(e){if(this.#H.isExpanded(e)){this.#ie(e);return}this.#ke(e)}},fL=e=>{if(e==null||e.length===0)return`0`;let t=`${e.length}`;for(let n of e)t+=`\0${n.path}\0${n.status}`;return t};function pL(e){let t=e.endsWith(`/`),n=``,r=-1;for(let t=0;t<=e.length;t+=1){if(e[t]!==`/`&&t!==e.length){r===-1&&(r=t);continue}r!==-1&&(n!==``&&(n+=`/`),n+=e.slice(r,t),r=-1)}return n===``?null:{isDirectory:t,path:n}}function mL(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=[],r=0;for(;;){let e=t.indexOf(`/`,r);if(e===-1)break;n.push(t.slice(0,e+1)),r=e+1}return n}function hL(e,t){return t?`${e}/`:e}function gL(e,t=null){let n=fL(e==null?void 0:[...e]);if(n===`0`)return null;if(t?.signature===n)return t;let r=new Map,i=new Set,a=new Set,o=new Map;for(let t of e??[]){let e=vL(t);e!=null&&xL({canonicalPath:e.canonicalPath,changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,isDirectory:e.isDirectory,status:t.status,statusByPath:r})}return r.size===0?null:{changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,signature:n,statusByPath:r}}function _L(e,t){let n=t?.remove??[],r=t?.set??[];if(n.length===0&&r.length===0)return e;let i=new Map(e?.statusByPath),a=new Set(e?.directoriesWithChanges),o=new Set(e?.ignoredDirectoryPaths),s=new Map(e?.changeCountByDirectoryPath),c=!1;for(let e of n){let t=yL(e);t!=null&&(c=bL({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,statusByPath:i})||c)}for(let e of r){let t=vL(e);t!=null&&(c=xL({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,isDirectory:t.isDirectory,status:e.status,statusByPath:i})||c)}return c?i.size===0?null:{changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,signature:wL(i),statusByPath:i}:e}function vL(e){return yL(e.path)}function yL(e){let t=pL(e);if(t!=null)return{canonicalPath:hL(t.path,t.isDirectory),isDirectory:t.isDirectory}}function bL({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,statusByPath:i}){let a=i.get(e);return a!=null&&(i.delete(e),a===`ignored`&&e.endsWith(`/`)&&r.delete(e),CL(t,n,e),!0)}function xL({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:i,status:a,statusByPath:o}){let s=o.get(e);return s!==a&&(s??SL(t,n,e),o.set(e,a),a===`ignored`&&i?r.add(e):i&&r.delete(e),!0)}function SL(e,t,n){for(let r of mL(n))e.set(r,(e.get(r)??0)+1),t.add(r)}function CL(e,t,n){for(let r of mL(n)){let n=(e.get(r)??0)-1;n>0?e.set(r,n):(e.delete(r),t.delete(r))}}function wL(e){let t=`${e.size}`;for(let[n,r]of e)t+=`\0${n}\0${r}`;return t}var TL,EL,DL,OL,kL,AL,jL,ML,NL,PL,FL={},IL=[],LL=Array.isArray,RL=IL.slice,zL=Object.assign;function BL(e){e&&e.parentNode&&e.remove()}function VL(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e!=`function`?i=t[a]:o[a]=t[a];return arguments.length>2&&(o.children=arguments.length>3?RL.call(arguments,2):n),HL(e,o,r,i,null)}function HL(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++EL,__i:-1,__u:0};return i==null&&TL.vnode!=null&&TL.vnode(a),a}function UL(e){return e.children}function WL(e,t){this.props=e,this.context=t,this.__g=0}function GL(e,t){if(t==null)return e.__?GL(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?GL(e):null}function KL(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=n.__e;break}return KL(e)}}function qL(e){(8&e.__g||!(e.__g|=8)||!DL.push(e)||kL++)&&OL==TL.debounceRendering||((OL=TL.debounceRendering)||queueMicrotask)(JL)}function JL(){for(var e,t,n,r,i,a,o,s,c=1;DL.length;)DL.length>c&&DL.sort(AL),e=DL.shift(),c=DL.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=zL({},r)).__v=r.__v+1,TL.vnode&&TL.vnode(n),nR(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??GL(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,iR(a,n,o),n.__e!=i&&KL(n)));kL=0}function YL(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||IL,b=t.length;for(c=XL(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?FL:y[m.__i]||FL,m.__i=f,_=nR(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&sR(p.ref,null,m),u.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),(v=!!(4&m.__u))||p.__k===m.__k?c=ZL(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function XL(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(c=a+f,(o=e.__k[a]=typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?HL(null,o,null,null,null):LL(o)?HL(UL,{children:o},null,null,null):o.constructor==null&&o.__b>0?HL(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(l=o.__i=QL(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=GL(s)),cR(s,s));return r}function ZL(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=ZL(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=GL(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function QL(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&!(2&l.__u);if(l===null&&e.key==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function $L(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function eR(e,t,n,r,i){var a;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||$L(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||$L(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(jL,`$1`)),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||={},e.__l[t+a]=n,n?r?n.l=r.l:(n.l=ML,e.addEventListener(t,a?PL:NL,a)):e.removeEventListener(t,a?PL:NL,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function tR(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=ML++;else if(t.u<n.l)return;return n(TL.event?TL.event(t):t)}}}function nR(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v,y,b,x,S,C,w,ee,T,E,te,D,ne,re,O=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),n.__c.__z&&(s=t.__e=n.__e=(a=n.__c.__z)[0],n.__c.__z=null)),(d=TL.__b)&&d(t);n:if(typeof O==`function`)try{if(v=t.props,y=`prototype`in O&&O.prototype.render,b=(d=O.contextType)&&r[d.__c],x=d?b?b.props.value:d.__:r,n.__c?2&(f=t.__c=n.__c).__g&&(f.__g|=1,_=!0):(y?t.__c=f=new O(v,x):(t.__c=f=new WL(v,x),f.constructor=O,f.render=lR),b&&b.sub(f),f.props=v,f.state||(f.state={}),f.context=x,f.__n=r,p=!0,f.__g|=8,f.__h=[],f._sb=[]),y&&f.__s==null&&(f.__s=f.state),y&&O.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=zL({},f.__s)),zL(f.__s,O.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&O.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&O.getDerivedStateFromProps==null&&v!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,x),!(4&f.__g)&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(v,f.__s,x)||t.__v==n.__v){for(t.__v!=n.__v&&(f.props=v,f.state=f.__s,f.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[],f.__h.length&&o.push(f);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,x),y&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,g)})}if(f.context=x,f.props=v,f.__P=e,f.__g&=-5,C=TL.__r,w=0,y){for(f.state=f.__s,f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),ee=0;ee<f._sb.length;ee++)f.__h.push(f._sb[ee]);f._sb=[]}else do f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(8&f.__g&&++w<25);f.state=f.__s,f.getChildContext!=null&&(r=zL({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),T=d,d!=null&&d.type===UL&&d.key==null&&(T=aR(d.props.children)),s=YL(e,LL(T)?T:[T],t,n,r,i,a,o,s,c,l,u),t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__g&=-4)}catch(e){if(t.__v=null,c||a!=null){if(e.then){for(E=0,te=!1,t.__u|=c?160:128,t.__c.__z=[],D=0;D<a.length;D++)(ne=a[D])==null||te||(ne.nodeType==8&&ne.data==`$s`?(E>0&&t.__c.__z.push(ne),E++,a[D]=null):ne.nodeType==8&&ne.data==`/$s`?(--E>0&&t.__c.__z.push(ne),te=E===0,s=a[D],a[D]=null):E>0&&(t.__c.__z.push(ne),a[D]=null));if(!te){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(re=a.length;re--;)BL(a[re]);rR(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||rR(t);TL.__e(e,t,n)}else s=t.__e=oR(n.__e,t,n,r,i,a,o,c,l,u);return(d=TL.diffed)&&d(t),128&t.__u?void 0:s}function rR(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(rR)}function iR(e,t,n){for(var r=0;r<n.length;r++)sR(n[r],n[++r],n[++r]);TL.__c&&TL.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){TL.__e(e,t.__v)}})}function aR(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:LL(e)?e.map(aR):zL({},e)}function oR(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v=n.props,y=t.props,b=t.type;if(b==`svg`?i=`http://www.w3.org/2000/svg`:b==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(u=0;u<a.length;u++)if((m=a[u])&&`setAttribute`in m==!!b&&(b?m.localName==b:m.nodeType==3)){e=m,a[u]=null;break}}if(e==null){if(b==null)return l.createTextNode(y);e=l.createElementNS(i,b,y.is&&y),s&&=(TL.__m&&TL.__m(t,a),!1),a=null}if(b==null)v===y||s&&e.data==y||(e.data=y);else{if(a&&=RL.call(e.childNodes),v=n.props||FL,!s&&a!=null)for(v={},u=0;u<e.attributes.length;u++)v[(m=e.attributes[u]).name]=m.value;for(u in v)if(m=v[u],u!=`children`){if(u==`dangerouslySetInnerHTML`)f=m;else if(!(u in y)){if(u==`value`&&`defaultValue`in y||u==`checked`&&`defaultChecked`in y)continue;eR(e,u,null,m,i)}}for(u in _=1&n.__u,y)m=y[u],u==`children`?p=m:u==`dangerouslySetInnerHTML`?d=m:u==`value`?h=m:u==`checked`?g=m:s&&typeof m!=`function`||v[u]===m&&!_||eR(e,u,m,v[u],i);if(d)s||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=``),YL(b==`template`?e.content:e,LL(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&GL(n,0),s,c,l),a!=null)for(u=a.length;u--;)BL(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||eR(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&eR(e,u,g,v[u],i))}return e}function sR(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){TL.__e(e,n)}}function cR(e,t,n){var r,i;if(TL.unmount&&TL.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||sR(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){TL.__e(e,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&cR(r[i],t,n||typeof e.type!=`function`);n||BL(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function lR(e,t,n){return this.constructor(e,n)}function uR(e,t){var n,r,i,a;t==document&&(t=document.documentElement),TL.__&&TL.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=VL(UL,null,[e]),i=[],a=[],nR(t,e,r||FL,FL,t.namespaceURI,r?null:t.firstChild?RL.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),iR(i,e,a)}function dR(e,t){e.__u|=32,uR(e,t)}TL={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!(1&i.__g)){i.__g|=4;try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=8&i.__g),o)return void(i.__g|=2)}catch(t){e=t}}throw kL=0,e}},EL=0,WL.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=zL({},this.state);typeof e==`function`&&(e=e(zL({},n),this.props)),e&&zL(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),qL(this))},WL.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),qL(this))},WL.prototype.render=UL,DL=[],kL=0,AL=function(e,t){return e.__v.__b-t.__v.__b},jL=/(PointerCapture)$|Capture$/i,ML=0,NL=tR(!1),PL=tR(!0);var fR=0;Array.isArray;function Q(e,t,n,r,i,a){t||={};var o,s,c=t;if(`ref`in c&&typeof e!=`function`)for(s in c={},t)s==`ref`?o=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--fR,__i:-1,__u:0,__source:i,__self:a};return TL.vnode&&TL.vnode(l),l}var pR=16,mR=16,hR={};function gR({name:e,remappedFrom:t,token:n,width:r,height:i,viewBox:a,label:o,alignCapitals:s=!1}){"use no memo";let c=`#${e.replace(/^#/,``)}`,{width:l,height:u,viewBox:d}=hR[e]??{width:pR,height:mR},f=r??l,p=i??u,m=a??d??`0 0 ${l} ${u}`;return Q(`svg`,{"data-icon-name":t??e,"data-icon-token":n,"data-align-capitals":s,...o==null?{"aria-hidden":!0}:{"aria-label":o,role:`img`},viewBox:m,width:f,height:p,children:Q(`use`,{href:c})})}var _R=e=>e!==void 0&&/\s/.test(e),vR=(e,t)=>{let n=t=>_R(e[t-1])||_R(e[t]);if(!n(t))return t;for(let r=1;r<e.length;r++){let i=t-r;if(i>0&&!n(i))return i;let a=t+r;if(a<e.length&&!n(a))return a}return t},yR=e=>vR(e,Math.ceil(e.length/2)),bR=e=>{if(e.length<2)return[e,``];let t=yR(e);return[e.slice(0,t),e.slice(t)]},xR=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:yR(e);return[e.slice(0,r),e.slice(r)]},SR=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`/`)+1,n=e.length-t>25,r=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]},CR=(e,{splitIndex:t}={})=>{if(typeof t!=`number`){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}return[e.slice(0,t),e.slice(t)]},wR=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=e.length-t;return[e.slice(0,n),e.slice(n)]},TR=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=t;return[e.slice(0,n),e.slice(n)]};function ER({children:e,marker:t,variant:n=`default`}){"use no memo";return Q(`div`,{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:Q(`div`,{"data-truncate-marker":!0,children:typeof t==`function`?t({children:e}):n===`fade`?Q(`span`,{"data-truncate-fade":!0}):t})})}function DR(e){"use no memo";let{mode:t,children:n}=e;return Q(`div`,{children:[Q(`div`,{"data-truncate-content":`visible`,children:t===`fruncate`?Q(`span`,{children:n}):n}),Q(`div`,{"data-truncate-content":`overflow`,"aria-hidden":!0,children:t===`fruncate`?Q(`span`,{children:n}):n})]})}function OR({children:e,mode:t=`truncate`,marker:n=`…`,variant:r=`default`,...i}){"use no memo";let a=Q(DR,{mode:t,children:e},`content`),o=Q(ER,{marker:n,mode:t,variant:r},`marker`),s=Q(`div`,{"data-truncate-fill":!0},`fill`);return Q(`div`,{"data-truncate-container":t,"data-truncate-variant":r,...i,children:Q(`div`,{"data-truncate-grid":!0,children:t===`truncate`?[a,o]:[o,a,s]})})}function kR({children:e,...t}){"use no memo";return Q(OR,{mode:`truncate`,...t,children:e})}function AR({children:e,...t}){"use no memo";return Q(OR,{mode:`fruncate`,...t,children:e})}function jR({children:e,contents:t,priority:n=`end`,split:r=`center`,minimumLength:i=12,className:a,style:o,...s}){"use no memo";let c=null,l=null;if(Array.isArray(t)){if(t.length!==2)return console.error(`MiddleTruncate: contents must be an array of two items`),null;c=Q(kR,{...s,children:t[0]}),l=Q(AR,{...s,children:t[1]})}else{if(typeof e!=`string`)return console.error(`MiddleTruncate: children must be a string`),null;if(e.length===0)return Q(`div`,{className:a,style:o});if(e.length<i)return Q(n===`end`?AR:kR,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=bR:r===`extension`?t=xR:r===`leaf-path`&&(t=SR);else if(typeof r==`number`)t=CR,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=wR:e===`first`&&(t=TR)}else typeof r==`function`&&(t=r);t??=bR;let[f,p]=t(e,{priority:n,variant:s.variant,splitIndex:typeof u==`number`?u:void 0,splitOffset:typeof d==`number`?d:void 0}),m=f.length>=p.length,h=n===`equal`&&!m,g=n===`equal`&&m,_={},v={};h&&(_.marker=``),g&&(v.marker=``),c=Q(kR,{...s,..._,children:f}),l=Q(AR,{...s,...v,children:p})}return Q(`div`,{"data-truncate-group-container":`middle`,className:a,style:o,children:[Q(`div`,{"data-truncate-segment-priority":n===`start`||n===`equal`?`1`:`2`,children:c}),Q(`div`,{"data-truncate-segment-priority":n===`end`||n===`equal`?`1`:`2`,children:l})]})}var MR={endIndex:-1,startIndex:-1};function NR(e,t,n){return Math.min(Math.max(e,t),n)}function PR(e,t){return e<0||t<e?MR:{endIndex:t,startIndex:e}}function FR(e){return e.startIndex<0||e.endIndex<e.startIndex}function IR(e,t){return FR(e)?0:(e.endIndex-e.startIndex+1)*t}function LR(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function RR(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function zR(e){let t=new Map;return e.forEach((e,n)=>{if(e.kind!==`directory`||!e.isExpanded)return;let r=e.ancestorPaths.length,i=t.get(r);if(i==null){t.set(r,[n]);return}i.push(n)}),t}function BR(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=Math.floor((n+r)/2),o=e[a];if(o==null)break;if(o<=t){i=a,n=a+1;continue}r=a-1}return i}function VR(e){let t=new Map,n=[];for(let r=0;r<e.length;r+=1){let i=e[r];if(i==null)continue;let a=i.kind===`directory`&&i.isExpanded?[...i.ancestorPaths,i.path]:i.ancestorPaths,o=0;for(;o<n.length&&o<a.length&&n[o]===a[o];)o+=1;for(let e=n.length-1;e>=o;--e){let i=n[e];i!=null&&t.set(i,r-1)}n.length=o;for(let e=o;e<a.length;e+=1){let t=a[e];t!=null&&n.push(t)}}let r=e.length-1;for(let e of n)t.set(e,r);return t}function HR(e,t,n){if(e.length===0||t<=0)return[];let r=VR(e),i=zR(e),a=[];for(let r=0;r<e.length;r+=1){let o=i.get(r);if(o==null||o.length===0)break;let s=t+r*n,c=BR(o,Math.min(e.length-1,Math.floor(s/n))),l=null;for(;c>=0;){let t=o[c],n=t==null?null:e[t]??null;if(n!=null&&(r===0||n.ancestorPaths[r-1]===a[r-1]?.path)){l=n;break}--c}if(l==null)break;a.push(l)}return a.map((i,a)=>{let o=a*n,s=(r.get(i.path)??e.length-1)+1;if(s>=e.length)return{row:i,top:o};let c=s*n-t;return{row:i,top:Math.min(o,c-n)}}).filter(e=>e.top+n>0)}function UR(e,t){let n=t.totalRowCount??e.length,r=n*t.itemHeight,i=Math.max(0,t.viewportHeight),a=Math.max(0,Math.floor(t.overscan)),o=Math.max(0,r-i),s=NR(t.scrollTop,0,o),c=t.stickyRows??HR(e,s,t.itemHeight),l=c.reduce((e,n)=>Math.max(e,n.top+t.itemHeight),0),u=Math.min(r,s+l),d=Math.max(0,i-l),f=Math.max(0,r-u),p=LR(s,n,t.itemHeight),m=LR(u,n,t.itemHeight),h=l<=0||p<0||p>=n?-1:p,g=h===-1?-1:Math.min(n-1,m-1),_=h===-1||g<h?0:g-h+1,v=d<=0||m>=n?MR:PR(m,RR(u+d,n,t.itemHeight)),y=g+1,b=FR(v)?MR:PR(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=IR(b,t.itemHeight);return{occlusion:{firstOccludedIndex:h,lastOccludedIndex:g,occludedCount:_},physical:{itemHeight:t.itemHeight,maxScrollTop:o,overscan:a,scrollTop:s,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:f,paneHeight:d,paneTop:u},sticky:{height:l,rows:c},visible:v,window:{endIndex:b.endIndex,height:x,offsetTop:FR(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var WR={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},GR={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},KR=`Contains git status items`;function qR(e){return e.current?!0:(e.current=!0,!1)}function JR(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:a}=e;if(n<0)return null;let o=Math.max(0,i),s=n*r,c=s+r;if(s<t+o){let e=Math.max(0,s-o);return e===t?null:e}if(c>t+a){let e=c-a;return e===t?null:e}return null}function YR(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:a=0,totalHeight:o,viewportHeight:s}=e;if(i===`nearest`)return JR({currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:a,viewportHeight:s});if(n<0)return null;let c=Math.max(0,a),l=n*r,u=Math.max(0,s-c),d=i===`center`?c+Math.max(0,(u-r)/2):c,f=Math.max(0,o-s),p=Math.max(0,Math.min(l-d,f));return p===t?null:p}function XR(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:a,viewportHeight:o}=e;if(n<0)return null;let s=Math.max(0,i),c=n*r,l=c+r,u=t+s,d=t+o;if(c>=u&&l<=d)return null;let f=Math.max(0,a-o),p=Math.max(0,Math.min(c-s,f));return p===t?null:p}function ZR(e){if(e==null||!e.isConnected||e===document.body||e===document.documentElement)return!1;e.focus({preventScroll:!0});let t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}function QR(e){let t=e.getRootNode();if(t instanceof ShadowRoot){let e=t.activeElement;return e instanceof HTMLElement?e:null}let n=document.activeElement;return n instanceof HTMLElement&&e.contains(n)?n:null}function $R(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function ez(e,t){return e!=null&&e>0?e:t}function tz(e){let t=e.borderBoxSize,n=Array.isArray(t)?t[0]:t;return n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0?n.blockSize:e.contentRect.height>0?e.contentRect.height:null}function nz(e,t,n,r,i=0){let a=JR({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a!=null&&(e.scrollTop=a,!0)}function rz(e,t,n,r,i,a,o=0){let s=YR({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:a,topInset:o,totalHeight:i,viewportHeight:r});return s!=null&&(e.scrollTop=s,!0)}function iz(e,t,n,r,i,a){let o=XR({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHeight:r});return o!=null&&(e.scrollTop=o,!0)}function az(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function oz(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?`reset`:r?n===t?`ignore`:`focus-input`:`reveal-canonical`}function sz({ariaLabel:e,isFlattened:t=!1,ref:n,value:r,onBlur:i,onInput:a}){return Q(`input`,{ref:n,"data-item-rename-input":!0,...t?{"data-item-flattened-rename-input":!0}:{},"aria-label":e,value:r,onBlur:i,onInput:a,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()})}function cz(e){let{row:t,mode:n,targetPath:r,ariaLabel:i,domId:a,isParked:o,itemHeight:s,features:c,state:l,extraStyle:u}=e,d=n===`sticky`,f=t.ancestorPaths.at(-1)??``,p={};return l.isFocusRinged&&(p[`data-item-focused`]=!0),t.isSelected&&(p[`data-item-selected`]=!0),l.isContextHovered&&(p[`data-item-context-hover`]=`true`),l.isDragTarget&&(p[`data-item-drag-target`]=!0),l.isDragging&&(p[`data-item-dragging`]=!0),l.effectiveGitStatus!=null&&(p[`data-item-git-status`]=l.effectiveGitStatus),l.containsGitChange&&(p[`data-item-contains-git-change`]=`true`),{"aria-expanded":!d&&t.kind===`directory`?t.isExpanded:void 0,"aria-haspopup":c.contextMenuEnabled?`menu`:void 0,"aria-label":i,"aria-level":d?void 0:t.level+1,"aria-posinset":d?void 0:t.posInSet+1,"aria-selected":d?void 0:t.isSelected?`true`:`false`,"aria-setsize":d?void 0:t.setSize,"data-file-tree-sticky-path":d?r:void 0,"data-file-tree-sticky-row":d?`true`:void 0,"data-item-context-menu-button-visibility":c.actionLaneEnabled?c.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":c.contextMenuEnabled?c.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":c.actionLaneEnabled?`true`:void 0,"data-item-has-git-lane":c.gitLaneActive?`true`:void 0,"data-item-parent-path":f.length>0?f:void 0,"data-item-parked":o?`true`:void 0,"data-item-path":r,"data-item-type":t.kind===`directory`?`folder`:`file`,"data-type":`item`,id:d?void 0:a,role:d?void 0:`treeitem`,style:{minHeight:`${s}px`,...u},tabIndex:!d&&t.isFocused?0:-1,...p}}function lz(e){let{event:t,mode:n,isSearchOpen:r,isDirectory:i}=e,a=t.ctrlKey||t.metaKey,o=t.shiftKey||a,s=t.shiftKey?{additive:a,kind:`range`}:a?{kind:`toggle`}:{kind:`single`};return{closeSearch:r,revealCanonical:n===`sticky`,selection:s,toggleDirectory:!o&&i}}var uz,dz,fz,pz,mz=Object.is,hz=0,gz=[],_z=TL,vz=_z.__b,yz=_z.__r,bz=_z.diffed,xz=_z.__c,Sz=_z.unmount,Cz=_z.__;function wz(e,t){_z.__h&&_z.__h(dz,e,hz||t),hz=0;var n=dz.__H||(dz.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Tz(e){return hz=1,Ez(Lz,e)}function Ez(e,t,n){var r=wz(uz++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Lz(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);mz(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=dz,!dz.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,mz(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};dz.__f=!0;var a=dz.shouldComponentUpdate,o=dz.componentWillUpdate;dz.componentWillUpdate=function(e,t,n){if(4&this.__g){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},dz.shouldComponentUpdate=i}return r.__N||r.__}function Dz(e,t){var n=wz(uz++,3);!_z.__s&&Iz(n.__H,t)&&(n.__=e,n.u=t,dz.__H.__h.push(n))}function Oz(e,t){var n=wz(uz++,4);!_z.__s&&Iz(n.__H,t)&&(n.__=e,n.u=t,dz.__h.push(n))}function $(e){return hz=5,kz(function(){return{current:e}},[])}function kz(e,t){var n=wz(uz++,7);return Iz(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Az(e,t){return hz=8,kz(function(){return e},t)}function jz(){for(var e;e=gz.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pz),e.__H.__h.forEach(Fz),e.__H.__h=[]}catch(t){e.__H.__h=[],_z.__e(t,e.__v)}}_z.__b=function(e){dz=null,vz&&vz(e)},_z.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Cz&&Cz(e,t)},_z.__r=function(e){yz&&yz(e),uz=0;var t=(dz=e.__c).__H;t&&(fz===dz?(t.__h=[],dz.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(Pz),t.__h.forEach(Fz),t.__h=[],uz=0)),fz=dz},_z.diffed=function(e){bz&&bz(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(gz.push(t)!==1&&pz===_z.requestAnimationFrame||((pz=_z.requestAnimationFrame)||Nz)(jz)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),fz=dz=null},_z.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Pz),e.__h=e.__h.filter(function(e){return!e.__||Fz(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],_z.__e(n,e.__v)}}),xz&&xz(e,t)},_z.unmount=function(e){Sz&&Sz(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Pz(e)}catch(e){t=e}}),n.__H=void 0,t&&_z.__e(t,n.__v))};var Mz=typeof requestAnimationFrame==`function`;function Nz(e){var t,n=function(){clearTimeout(r),Mz&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Mz&&(t=requestAnimationFrame(n))}function Pz(e){var t=dz,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),dz=t}function Fz(e){var t=dz;e.__c=e.__(),dz=t}function Iz(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!mz(t,e[n])})}function Lz(e,t){return typeof t==`function`?t(e):t}function Rz(e,t=null,n=null){"use no memo";let r=e.flattenedSegments;return r==null||r.length===0?t??e.name:Q(`span`,{"data-item-flattened-subitems":!0,children:r.map((e,i)=>{let a=i===r.length-1;return Q(UL,{children:[Q(`span`,{"data-item-flattened-subitem":e.path,"data-item-flattened-subitem-drag-target":n===e.path?`true`:void 0,children:a&&t!=null?t:Q(kR,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function zz(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function Bz(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function Vz(e,t,n,r){return e.map((e,i)=>{let a=i*n,o=e.subtreeEndIndex+1;if(o>=r)return{row:e.row,top:a};let s=o*n-t;return{row:e.row,top:Math.min(a,s-n)}}).filter(e=>e.top+n>0)}function Hz({controller:e,itemHeight:t,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:a}){let o=e.getVisibleCount(),s=i&&o>0?e.getStickyRowCandidates(r,t):[],c=s==null&&i&&o>0?e.getVisibleRows(0,o-1):[],l=UR(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:Vz(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?Vz(u,1,t,o):i&&r<=0&&c.length>0?HR(c,1,t):l.sticky.rows;return{overlayHeight:d.reduce((e,n)=>Math.max(e,n.top+t),0),overlayRows:d,snapshot:l,visibleRows:c}}var Uz=400,Wz=40,Gz=18;function Kz(e,t,n){let r=e,i=document.elementFromPoint?.bind(document)??null,a=r.elementFromPoint?.(t,n)??i?.(t,n)??null;return e instanceof ShadowRoot&&(a==null||!e.contains(a))?qz(e,t,n):a instanceof HTMLElement?a:null}function qz(e,t,n){let r=Array.from(e.querySelectorAll(`[data-type="item"], [data-item-flattened-subitem]`));for(let e=r.length-1;e>=0;e--){let i=r[e],a=i.getBoundingClientRect();if(t>=a.left&&t<=a.right&&n>=a.top&&n<=a.bottom)return i}return null}function Jz(e){let t=e?.closest?.(`[data-type="item"]`);if(!(t instanceof HTMLElement))return null;let n=t.dataset.itemPath??null;if(n==null)return null;let r=e?.closest?.(`[data-item-flattened-subitem]`),i=r instanceof HTMLElement?r.getAttribute(`data-item-flattened-subitem`)??null:null;if(i!=null&&i.endsWith(`/`))return{directoryPath:i,flattenedSegmentPath:i,hoveredPath:n,kind:`directory`};if(t.dataset.itemType===`folder`)return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`};let a=t.dataset.itemParentPath??null;return a==null||a.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:`root`}:{directoryPath:a,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`}}function Yz(e){let t=e.cloneNode(!0);return t.removeAttribute(`id`),t.dataset.fileTreeDragPreview=`true`,t.setAttribute(`aria-hidden`,`true`),t.tabIndex=-1,Object.assign(t.style,{boxShadow:`0 4px 12px rgba(0, 0, 0, 0.15)`,left:`0px`,margin:`0`,pointerEvents:`none`,position:`fixed`,top:`0px`,willChange:`transform`,zIndex:`10000`}),t}function Xz(){return navigator.vendor!==`Apple Computer, Inc.`}function Zz(e,t){let n=e-t.top;if(n<Wz)return-Math.ceil((Wz-Math.max(0,n))/Wz*Gz);let r=t.bottom-e;return r<Wz?Math.ceil((Wz-Math.max(0,r))/Wz*Gz):0}function Qz(e,t){if(e!=null){let t=WR[e];return t==null?null:{text:t,title:GR[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:KR}:null}function $z(e,t,n){if(t==null||t.size===0)return null;let r=[];for(let i=e.length-1;i>=0;--i){let a=e[i],o=n.get(a);if(o!=null){for(let e of r)n.set(e,o);return o?`ignored`:null}if(t.has(a)){n.set(a,!0);for(let e of r)n.set(e,!0);return`ignored`}r.push(a)}for(let e of r)n.set(e,!1);return null}function eB(e){return e!=null&&`toggle`in e}function tB(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function nB(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function rB(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function iB(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function aB(e,t){return t&&iB(e)||(e.ctrlKey||e.metaKey)&&tB(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}var oB=new Set([`ArrowDown`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`End`,`Home`,`PageDown`,`PageUp`]);function sB(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&(t.dataset.fileTreeContextMenuRoot===`true`||t.dataset.type===`context-menu-anchor`||t.dataset.type===`context-menu-trigger`||t.getAttribute(`slot`)===`context-menu`))return!0;return!1}function cB(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width,x:e.x,y:e.y}}function lB(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function uB(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function dB(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function fB(e,t,n){if(e==null)return null;let r=t.get(e)??null;if(r!=null)return r;let i=n.get(e)??null;return i?.dataset.itemParked===`true`?null:i}function pB(e){if(e==null)return[];let t=[];for(let n of e.querySelectorAll(`button[data-file-tree-sticky-row="true"]`)){if(!(n instanceof HTMLElement))continue;let e=n.dataset.fileTreeStickyPath;e!=null&&t.push(e)}return t}function mB(e,t){if(e==null||t==null)return null;for(let n of e.querySelectorAll(`button[data-item-focused="true"][data-item-parked="true"]`))if(n instanceof HTMLElement&&n.dataset.itemPath===t)return n;return null}function hB(e,t,n,r,i,a,o){let s=Math.max(0,a-i),c=t?.getBoundingClientRect()??null,l=c==null||n==null?null:n.getBoundingClientRect().top-c.top,u=mB(e,r),d=c==null||u==null?null:u.getBoundingClientRect().top-c.top;return Math.max(0,Math.min(d??Math.max(l??0,s),Math.max(0,o-i)))}function gB(e,t){return{kind:e.kind,name:Bz(e),path:t}}function _B(e){return e==null?void 0:`${e}__tree`}function vB(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function yB(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function bB(e,t){if(e==null)return null;if(`text`in e)return e.parts==null?Q(`span`,{title:e.title,children:e.text}):Q(`span`,{title:e.title,children:e.parts.map((e,t)=>Q(`span`,{style:{color:e.color},children:e.text},t))});let n=typeof e.icon==`string`?yB(e.icon)?t(e.icon):{name:e.icon}:yB(e.icon.name)?(()=>{let n=t(e.icon.name),{name:r,...i}=e.icon;return{...n,...i}})():e.icon;return Q(`span`,{title:e.title,children:Q(gR,{...n})})}function xB(e){e!=null&&ZR(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function SB(e,t,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:a=null,gitDecoration:o=null,gitLaneActive:s=!1,renameInput:c=null,showDecorativeActionAffordance:l=!1}={}){let u=zz(e);return Q(UL,{children:[e.depth>0?Q(`div`,{"data-item-section":`spacing`,children:Array.from({length:e.depth}).map((t,n)=>Q(`div`,{"data-item-section":`spacing-item`,"data-ancestor-path":e.ancestorPaths[n]},n))}):null,Q(`div`,{"data-item-section":`icon`,children:e.kind===`directory`?Q(gR,{...t(`file-tree-icon-chevron`)}):Q(gR,{...t(`file-tree-icon-file`,u)})}),Q(`div`,{"data-item-section":`content`,children:e.isFlattened?Rz(e,c,a):c??Q(jR,{minimumLength:5,split:`extension`,children:e.name})}),i?Q(`div`,{"data-item-section":`decoration`,children:r==null?null:bB(r,t)}):null,s?Q(`div`,{"data-item-section":`git`,children:bB(o,t)}):null,n?Q(`div`,{"data-item-section":`action`,children:l?Q(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:Q(gR,{...t(`file-tree-icon-ellipsis`)})}):null}):null]})}function CB(e,t,n,r={}){let{controller:i,renameView:a,visualFocusPath:o,contextHoverPath:s,draggedPathSet:c,dragTarget:l,dragAndDropEnabled:u,shouldSuppressContextMenu:d,handleRowDragStart:f,handleRowDragEnd:p,handleRowTouchStart:m,instanceId:h,itemHeight:g,gitStatusByPath:_,ignoredGitDirectories:v,ignoredInheritanceCache:y,directoriesWithGitChanges:b,gitLaneActive:x,contextMenuEnabled:S,contextMenuTriggerMode:C,contextMenuButtonTriggerEnabled:w,contextMenuButtonVisibility:ee,contextMenuRightClickEnabled:T,registerRenameInput:E,registerButton:te,resolveIcon:D,renderDecorationForRow:ne,openContextMenuForRow:re,onRowClick:O,onKeyDown:ie}=e,k=zz(t),{isParked:ae=!1,mode:A=`flow`,style:oe}=r,se=A===`sticky`,j=_?.get(k)??null??$z(t.ancestorPaths,v,y),M=t.kind===`directory`&&(b?.has(k)??!1),N=ne(t,k),P=Qz(j,M),F=S&&w,ce=N!=null||x||F,le=F&&ee===`always`,I=a.getPath()===k,L=I?a.getValue():``,ue=se||!I?null:Q(sz,{ref:E,ariaLabel:`Rename ${Bz(t)}`,isFlattened:t.isFlattened,value:L,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),de=SB(t,D,{actionLaneEnabled:F,customDecoration:N,decorationLaneEnabled:ce,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:P,gitLaneActive:x,renameInput:ue,showDecorativeActionAffordance:le}),R={...cz({ariaLabel:Bz(t),domId:t.isFocused?vB(h,k,ae):void 0,extraStyle:oe,features:{actionLaneEnabled:F,contextMenuButtonVisibility:F?ee:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:ae,itemHeight:g,mode:A,row:t,state:{containsGitChange:M,effectiveGitStatus:j,isContextHovered:s===k,isDragTarget:l?.kind===`directory`&&l.directoryPath===k,isDragging:c?.has(k)===!0,isFocusRinged:t.isFocused&&o===k},targetPath:k}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),T&&(i.focusMountedPathFromInput(k),re(t,k,{anchorRect:lB(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:se?void 0:()=>{i.focusMountedPathFromInput(k)},onKeyDown:se?void 0:ie,ref:e=>{te(k,e)}};return!se&&I?Q(`div`,{...R,children:de}):Q(`button`,{...R,type:`button`,draggable:u&&!ae,onDragEnd:u&&!ae?p:void 0,onDragStart:u&&!ae?e=>{f(e,t,k)}:void 0,onMouseDown:e=>{if(se){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!ae?e=>{m(e,t,k)}:void 0,onClick:e=>{O(e,t,k,A)},children:de})}function wB(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(zz(e))).map((n,r)=>CB(e,n,t.start+r))}function TB({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=mI,overscan:c=10,renamingEnabled:l=!1,renderRowDecoration:u,searchBlurBehavior:d=`close`,searchEnabled:f=!1,searchFakeFocus:p=!1,slotHost:m,stickyFolders:h=!1,initialViewportHeight:g=420}){"use no memo";let _=$(null),v=$(null),y=$(!1),b=$(null),x=$(null),S=$(null),C=$(null),w=$(null),ee=$(new Map),T=$(new Map),E=$(()=>{}),te=$(null),D=$(0),ne=$(!1),re=$(null);re.current!==t&&(ne.current=!1,re.current=t);let O=$(!1),ie=$(null),k=$(null),ae=$(!1),A=$(null),oe=$(null),se=$(null),j=$(null),M=$(null),N=$(null),P=$(null),F=$(null),ce=$(!1),le=$(null),I=$(null),L=$(null),ue=$(null),de=kz(()=>new Map,[]),[,R]=Tz(0),fe=$(!1),[pe,z]=Tz(null),[me,B]=Tz(null),[V,he]=Tz(null),[ge,_e]=Tz(null),[ve,ye]=Tz(0),[H,be]=Tz(null),xe=$(H);xe.current=H;let Se=$(null),Ce=$(null),we=$(null),Te=$(null),Ee=$(null),De=$(!1),Oe=()=>{Ce.current=null,we.current=null,Te.current=null},ke=(e,t)=>{Ce.current=e,we.current=null,Te.current=t==null?null:{path:e,scrollTop:t}},Ae=(e,t)=>{Ce.current=null,we.current={path:e,viewportOffset:t},Te.current=null},je=$(d===`retain`&&t.isSearchOpen()),[Me,Ne]=Tz(p);Dz(()=>{p||Ne(!1)},[p]);let Pe=$(!1),Fe=Az(()=>{Pe.current=!0,Ne(e=>e&&!1)},[]),[Ie,Le]=Tz(()=>Hz({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[Re,ze]=Tz(!1);Dz(()=>{ze(!0)},[]);let Be=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,Ve=e?.contextMenu?.triggerMode??(Be?`right-click`:`both`),He=Ve===`both`||Ve===`button`,Ue=e?.contextMenu?.buttonVisibility??`when-needed`,We=Ve===`both`||Ve===`right-click`;Oz(()=>{let e=S.current;if(e==null)return;let t=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail?.path??null;Ee.current=t,B(t),_e(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(De.current=e.detail?.disabled===!0)};return e.addEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.addEventListener(`file-tree-debug-set-scroll-suppression`,n),()=>{e.removeEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.removeEventListener(`file-tree-debug-set-scroll-suppression`,n)}},[]);let Ge=Az((e,t)=>{dB(ee.current,e,t)},[]),Ke=Az((e,t)=>{dB(T.current,e,t)},[]),qe=Az(e=>{x.current=e},[]),Je=Az(e=>fB(e,T.current,ee.current),[]),Ye=n!=null||r!=null||i!=null,{resolveIcon:Xe}=kz(()=>jM(a),[a]),Ze=t[aL](),Qe=Ze.getPath(),$e=Qe!=null,et=t.isSearchOpen(),tt=t.getSearchValue(),U=t.getFocusedPath(),W=t.getFocusedIndex(),nt=t.getScrollRequest(),rt=t.isDragAndDropEnabled(),it=t.getDragSession(),at=kz(()=>it==null?null:new Set(it.draggedPaths),[it]),ot=it?.target??null,st=it?.primaryPath??null,ct=_B(o),{overlayHeight:lt,overlayRows:ut,snapshot:dt,visibleRows:ft}=Ie,pt=dt.physical.viewportHeight,mt=kz(()=>({end:dt.window.endIndex,start:dt.window.startIndex}),[dt.window.endIndex,dt.window.startIndex]),ht=ut,gt=dt.sticky.rows,_t=dt.physical.totalHeight,vt=dt.sticky.height,yt=kz(()=>new Set(gt.map(e=>zz(e.row))),[gt]),bt=W>=0&&W>=mt.start&&W<=mt.end,xt=Az((e,t)=>u?.({item:gB(e,t),row:e})??null,[u]),St=Az(e=>ZR(e==null?null:ee.current.get(e)??null)?!0:ZR(S.current),[]),Ct=Az(e=>{St(t.focusNearestPath(e))},[t,St]),wt=$(Ct);wt.current=Ct;let Tt=$(!0),Et=$(()=>{}),Dt=Az((t=!0)=>{let n=xe.current;n!=null&&(Tt.current=Tt.current&&t,be(null),e?.contextMenu?.onClose?.(),Tt.current&&Ct(n.path))},[e?.contextMenu,Ct]);Et.current=Dt;let Ot=Az(e=>{let t=e==null?null:uB(S.current,e);he(e=>e===t?e:t)},[]),kt=Az((e,n,r)=>{let i=t.getItem(n);if(i==null)return;let a=Je(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;ke(n,e?.scrollTop??null),O.current=!0,z(e=>e===n?e:n)}i.focus(),Ot(a),Tt.current=!0,be({anchorRect:r?.anchorRect??null,item:gB(e,n),path:n,source:r?.source??`keyboard`})},[t,Je,Ot]),At=Az(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=$R(e,pt);A.current=W<0||e==null?null:Math.max(0,Math.min(W*s-e.scrollTop,Math.max(0,t-s))),ae.current=!0}t.startRenaming(e)!==!1&&(_e(`focus`),R(e=>e+1))}},[t,W,s,l,pt]),jt=Az((e,{restoreTreeFocus:n=!0,targetOffset:r=`live-overlay`}={})=>{let i=C.current;if(i==null)return!1;t.focusPath(e);let a=t.getFocusedIndex();if(a<0)return!1;let o=t.getVisibleRows(a,a)[0]??null;if(o==null)return!1;let l=$R(i,pt),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:Hz({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return O.current=!0,iz(i,a,s,l,u,d),E.current(),Se.current=n?e:null,!0},[t,s,c,pt,h]),Mt=()=>y.current===!0||ue.current!=null||ce.current===!0,Nt=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),Pt=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},Ft=()=>{j.current!=null&&(clearTimeout(j.current),j.current=null),se.current=null},It=()=>{N.current?.remove(),N.current=null},Lt=()=>{Pt(oe.current),oe.current=null,M.current=null},Rt=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},zt=()=>{F.current?.(),F.current=null,ue.current!=null&&(clearTimeout(ue.current),ue.current=null),ce.current=!1,le.current=null,L.current=null,I.current!=null&&(I.current.setAttribute(`draggable`,`true`),I.current.style.removeProperty(`touch-action`),I.current=null),It(),Ft(),Lt(),P.current=null},Bt=(e,n)=>{let r=S.current?.getRootNode(),i=Jz(Kz(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Vt=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){Ft();return}let r=t.getItem(e.directoryPath),i=eB(r)?r:null;if(i==null||i.isExpanded()){Ft();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;se.current!==a&&(Ft(),se.current=a,j.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind===`directory`&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&i.expand()},n))},Ht=()=>{oe.current=null;let e=M.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=Zz(e.clientY,r);if(i===0)return;let a=Math.max(0,n.scrollHeight-n.clientHeight),o=Math.max(0,Math.min(a,n.scrollTop+i));o!==n.scrollTop&&(n.scrollTop=o,E.current()),Vt(Bt(e.clientX,e.clientY)),oe.current=Nt(Ht)},Ut=(e,t)=>{M.current={clientX:e,clientY:t},oe.current??=Nt(Ht)},Wt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(zt(),It(),Ft(),Lt(),t.startDrag(r)===!1){e.preventDefault();return}if(P.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),Xz())){let t=Yz(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),Rt(t),N.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Gt=()=>{It(),Ft(),Lt(),P.current=null,t.cancelDrag()},Kt=(e,n,r)=>{if(ue.current!=null||ce.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;L.current={clientX:i.clientX,clientY:i.clientY},I.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!ce.current;ue.current!=null&&(clearTimeout(ue.current),ue.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),F.current===o&&(F.current=null),t&&(a.setAttribute(`draggable`,`true`),I.current===a&&(I.current=null),L.current=null)},s=e=>{let t=e.touches[0],n=L.current;if(t==null||n==null)return;let r=t.clientX-n.clientX,i=t.clientY-n.clientY;r*r+i*i<=100||o()},c=()=>{o()};document.addEventListener(`touchmove`,s,{passive:!0}),document.addEventListener(`touchend`,c),document.addEventListener(`touchcancel`,c),F.current=o,ue.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),I.current===a&&(I.current=null),L.current=null;return}ce.current=!0,I.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),P.current=n;let e=a.getBoundingClientRect(),s=Yz(a);Object.assign(s.style,{height:`${e.height}px`,opacity:`0.85`,transform:`translate3d(${e.left}px, ${e.top}px, 0)`,width:`${e.width}px`}),Rt(s),N.current=s,le.current={x:i.clientX-e.left,y:i.clientY-e.top};let c=e=>{let t=e.touches[0];if(t==null)return;e.preventDefault();let n=le.current;n!=null&&N.current!=null&&(N.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Vt(Bt(t.clientX,t.clientY)),Ut(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&Bt(n.clientX,n.clientY),t.completeDrag(),zt()},u=()=>{t.cancelDrag(),zt()};F.current=()=>{document.removeEventListener(`touchmove`,c),document.removeEventListener(`touchend`,l),document.removeEventListener(`touchcancel`,u)},document.addEventListener(`touchmove`,c,{passive:!1}),document.addEventListener(`touchend`,l),document.addEventListener(`touchcancel`,u)},Uz)},qt=e=>{if(H!=null){if(e.key===`Escape`){Dt(),e.preventDefault(),e.stopPropagation();return}oB.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(Ze.isActive()){if(e.isComposing||e.keyCode===229)return;if(e.key===`Escape`)Ze.cancel();else if(e.key===`Enter`)Ze.commit();else return;_e(`focus`),R(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){At(U??void 0),e.preventDefault(),e.stopPropagation();return}if(et){if(e.key===`Escape`)ae.current=!1,A.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=$R(n,pt);A.current=W<0||n==null?null:Math.max(0,Math.min(W*s-n.scrollTop,Math.max(0,r-s))),ae.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;_e(`focus`),R(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&nB(e)){t.openSearch(e.key),R(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=Be&&iB(e),r=aB(e,Be),i=r&&S.current!=null?QR(S.current):null,a=r?new Set(pB(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==U&&a.has(o)){let e=C.current;ke(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=eB(p)?p:null,h=u!=null&&(yt.has(u)||c&&o===u&&a.has(u)),g=e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowRight`&&m!=null&&m.isExpanded(),_=e.key===`ArrowLeft`&&h&&m!=null&&m.isExpanded(),v=C.current,y=!0;if(e.shiftKey&&e.key===`ArrowDown`)t.extendSelectionFromFocused(1);else if(e.shiftKey&&e.key===`ArrowUp`)t.extendSelectionFromFocused(-1);else if(n&&u!=null&&d>=0){let e=t.getVisibleRows(d,d)[0]??null,n=fB(u,T.current,ee.current);e==null||n==null?y=!1:kt(e,u)}else if((e.ctrlKey||e.metaKey)&&tB(e))t.toggleFocusedSelection();else if((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`a`)t.selectAllVisiblePaths();else switch(e.key){case`ArrowDown`:t.focusNextItem();break;case`ArrowUp`:t.focusPreviousItem();break;case`ArrowRight`:m==null||m.isExpanded()?t.focusNextItem():m.expand();break;case`ArrowLeft`:m!=null&&m.isExpanded()?m.collapse():t.focusParentItem();break;case`Home`:t.focusFirstItem();break;case`End`:t.focusLastItem();break;default:y=!1}if(!y)return;_e(`focus`);let b=t.getFocusedPath(),x=b!=null&&(yt.has(b)||a.has(b)),w=g&&b!==u,E=n&&c&&o===u&&b===u;if((h||E)&&b!=null&&(w&&x||E))ke(b,v?.scrollTop??null),O.current=!0,z(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(Ae(b,hB(S.current,v,i,u,s,vt,pt)),O.current=!0,z(e=>e===b?e:b)):Oe()}R(e=>e+1),e.preventDefault(),e.stopPropagation()};Oz(()=>{if(f&&et){if(je.current){je.current=!1;return}ZR(w.current)}},[et,f]),Oz(()=>{let e=x.current;switch(oz({hasRenderedInput:e!=null,previousRenamingPath:k.current,renamingPath:Qe})){case`reset`:k.current=null;return;case`reveal-canonical`:Qe!=null&&jt(Qe,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(Se.current=null,k.current=Qe,ZR(e),e.select());return}},[mt.end,mt.start,Qe,jt,yt]),Oz(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=QR(e)?.dataset.itemPath??null;z(e=>e===t?e:t)},i=()=>{n(),O.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,QR(e)!=null){r();return}O.current=!1,z(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),O.current=!1,z(null);return}let o=a instanceof HTMLElement?a.dataset.itemPath??null:null;z(e=>e===o?e:o)};return e.addEventListener(`focusin`,i),e.addEventListener(`focusout`,a),()=>{n(),e.removeEventListener(`focusin`,i),e.removeEventListener(`focusout`,a)}},[]),Oz(()=>{let e=S.current;e!=null&&(dt.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[dt.physical.scrollTop]),Oz(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;te.current=$R(n,g);let a=()=>{let e=t.getVisibleCount(),r=ez(te.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),Le(Hz({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHeight:r}))};if(!ne.current){ne.current=!0;let e=t.getFocusedIndex();if(e>=0){let r=ez(te.current,g),i=t.getVisibleRows(e,e)[0]??null;nz(n,e,s,r,h&&i!=null?Math.max(0,Math.min(i.ancestorPaths.length*s,Math.max(0,r-s))):0)}}E.current=a;let o=t.subscribe(()=>{qR(fe)&&R(e=>e+1),a()}),l=()=>{De.current!==!0&&(r!=null&&(r.dataset.isScrolling??=``),i!=null&&(i.dataset.isScrolling??=``),y.current=!0,e!=null&&clearTimeout(e),e=setTimeout(()=>{r!=null&&delete r.dataset.isScrolling,i!=null&&delete i.dataset.isScrolling,y.current=!1,ye(e=>e+1),e=null},50))},u=null,d=()=>{i!=null&&delete i.dataset.overlayReveal,u!=null&&(clearTimeout(u),u=null)},f=()=>{i!=null&&De.current!==!0&&(n.scrollTop>0||(i.dataset.overlayReveal=`true`,u!=null&&clearTimeout(u),u=setTimeout(()=>{d()},200)))},p=()=>{if(a(),n.scrollTop>0&&d(),xe.current!=null&&y.current&&Et.current(),De.current===!0){y.current=!1;return}B(e=>e==null?e:null),l()},m=()=>{l(),f()},_=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`,`Home`,`End`,` `,`Spacebar`]),v=e=>{_.has(e.key)&&m()};n.addEventListener(`scroll`,p,{passive:!0}),n.addEventListener(`wheel`,m,{passive:!0}),n.addEventListener(`touchmove`,m,{passive:!0}),n.addEventListener(`keydown`,v);let x=typeof ResizeObserver<`u`?new ResizeObserver(e=>{te.current=(e[0]==null?null:tz(e[0]))??$R(n,g),a()}):null;return x?.observe(n),()=>{E.current=()=>{},o(),n.removeEventListener(`scroll`,p),n.removeEventListener(`wheel`,m),n.removeEventListener(`touchmove`,m),n.removeEventListener(`keydown`,v),e!=null&&clearTimeout(e),u!=null&&clearTimeout(u),r!=null&&delete r.dataset.isScrolling,i!=null&&(delete i.dataset.isScrolling,delete i.dataset.overlayReveal),y.current=!1,te.current=null,x?.disconnect()}},[t,g,s,c,h]),Oz(()=>{Be||H==null||Dt(!1)},[Dt,Be,H]);let Jt=kz(()=>H==null?null:`${H.path}::${H.source}`,[H]);Oz(()=>{if(Jt==null){m?.clearSlotContent(CM);return}let t=xe.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??cB(n.getBoundingClientRect()),close:e=>{Et.current(e?.restoreFocus??!0)},restoreFocus:()=>{Tt.current&&wt.current(xe.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(CM,i),e?.contextMenu?.onOpen?.(t.item,r),xB(i),queueMicrotask(()=>{i!=null&&i.isConnected&&document.activeElement===i&&xB(i)}),()=>{m?.clearSlotContent(CM)}},[Jt,e?.contextMenu,m]),Oz(()=>{H!=null&&t.getItem(H.path)==null&&Dt()},[Dt,H,t]),Oz(()=>{if(H==null)return;let e=S.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:S.current,n=e=>{let n=e.target;n instanceof Node&&(sB(e)||_.current?.contains(n)!==!0&&t?.contains(n)!==!0&&Dt())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Dt())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[Dt,H]),Oz(()=>{let e=C.current,n=S.current;if(e==null||n==null){ie.current=U;return}let r=U==null?null:ee.current.get(U)??null,i=QR(n),a=i?.dataset.itemPath??null,o=$e&&x.current===i,c=f&&w.current===i,l=ae.current&&!et,u=A.current??0,d=Se.current,p=Ce.current,m=we.current,g=Te.current,_=i!=null,v=O.current||_,y=ie.current!==U,b=p!=null&&p===U&&U!=null,T=!1,te=!1;if(nt!=null&&nt.id!==D.current){D.current=nt.id;let n=nt.visibleIndex,r=t.getVisibleRows(n,n)[0]??null;if(r!=null){let t=h?Math.max(0,Math.min(r.ancestorPaths.length*s,Math.max(0,pt-s))):vt;T=!0,te=rz(e,n,s,pt,_t,nt.offset,t)}t.clearScrollRequest(nt.id)}let ne=!T&&l&&iz(e,W,s,pt,_t,u),re=!T&&d!=null&&d===U&&iz(e,W,s,pt,_t,vt),k=!T&&m!=null&&m.path===U&&iz(e,W,s,pt,_t,m.viewportOffset),oe=!T&&g!=null&&g.path===U&&e.scrollTop!==g.scrollTop;if(oe&&(e.scrollTop=g.scrollTop),(oe||te||re||k||ne||v&&y&&d!==U&&!b&&nz(e,W,s,pt,vt))&&E.current(),T){ie.current=U;return}if(!v){ie.current=U;return}if(o){ie.current=U;return}if(c&&!l){ie.current=U;return}if(r==null){l&&W>=0&&(iz(e,W,s,pt,_t,u),E.current()),ie.current=U;return}(y||l||d===U||p===U||m?.path===U||g?.path===U||a==null||a!==U)&&(ZR(r),d===U&&(Se.current=null),p===U&&(Ce.current=null),m?.path===U&&(we.current=null),g?.path===U&&(Te.current=null),ae.current=!1,A.current=null),ie.current=U},[t,W,U,bt,s,$e,et,mt,pt,f,nt,h,vt,_t,ft]);let Yt=W>=0&&W>=dt.visible.startIndex&&W<=dt.visible.endIndex,Xt=U!=null&&ht.some(e=>zz(e.row)===U),Zt=Yt||Xt,Qt=He&&O.current===!0&&Zt?U:null,$t=ge===`pointer`?me:null,en=H?.path??Ee.current??$t??Qt??me,tn=H?.source===`right-click`;Oz(()=>{y.current&&H==null||Ot(Je(en))},[H,Je,mt,pt,ve,ht,en,Ot,ft]);let nn=Az(e=>{if(y.current||sB(e))return;let t=e.target;if(!(t instanceof HTMLElement)||t.closest?.(`[data-type="context-menu-trigger"]`)!=null)return;let n=t.closest?.(`[data-file-tree-sticky-row="true"]`),r=t.closest?.(`[data-type="item"]`),i=n instanceof HTMLElement?n.dataset.fileTreeStickyPath??null:r instanceof HTMLElement?r.dataset.itemPath??null:null;i!=null&&_e(e=>e===`pointer`?e:`pointer`),B(e=>e===i?e:i)},[]),rn=Az(()=>{B(null)},[]);Oz(()=>{if(!rt)return;let e=()=>{zt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),zt(),t.cancelDrag()}},[t,rt]);let an=e=>{if(!rt||t.getDragSession()==null||ce.current)return;let n=Jz(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Vt(t.getDragSession()?.target??null),Ut(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},on=e=>{if(!rt||t.getDragSession()==null||ce.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(Ft(),Lt(),t.setDragTarget(null))},sn=e=>{rt&&t.getDragSession()!=null&&!ce.current&&(e.preventDefault(),Bt(e.clientX,e.clientY),t.completeDrag(),It(),Ft(),Lt(),P.current=null)},cn=dt.window.height,ln=dt.window.offsetTop,un=Math.min(0,pt-cn),dn=Math.min(0,pt-cn-vt),fn=pe===U||ae.current,pn=U!=null&&fn&&!bt&&W>=0?ft[W]??t.getVisibleRows(W,W)[0]??null:null,mn=pn==null?null:az(W,s,mt,cn),hn=P.current,gn=st!=null&&hn!=null&&hn.path===st&&hn.index>=mt.start&&hn.index<=mt.end,_n=st!=null&&hn!=null&&hn.path===st&&!gn&&hn.path!==pn?.path?hn:null,vn=_n==null?null:az(_n.index,s,mt,cn),yn=rB((W>=0?ft[W]??t.getVisibleRows(W,W)[0]??null:null)?.ancestorPaths.at(-1)??null),bn=et&&U!=null?vB(o,U,!bt):void 0,xn=H?.path??(et?U:pe),Sn=H?.path??me,Cn=Je(en),wn=Be&&He&&!tn&&!$e&&Cn!=null&&V!=null&&en!=null,Tn=Be&&(wn||H!=null),En=H?.anchorRect,Dn=En==null&&Cn!=null&&V!=null&&(H!=null||wn)?V:null,On=En==null?Dn==null?void 0:{top:`${Dn}px`}:{left:`${En.left}px`,position:`fixed`,right:`auto`,top:`${En.top}px`},kn=tn?{opacity:`0`}:void 0,An=Az((e,n,r,i)=>{let a=lz({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:et,mode:i}),o=a.toggleDirectory&&n.kind===`directory`,s=o?t.resolveMountedDirectoryPathFromInput(r):null;if(o&&s==null)return;let c=s??r;switch(a.selection.kind){case`range`:t.selectPathRange(c,a.selection.additive);break;case`toggle`:t.togglePathSelectionFromInput(c);break;case`single`:t.selectOnlyMountedPathFromInput(c)}let l=e.currentTarget instanceof HTMLElement?e.currentTarget:null,u=n.index>=dt.visible.startIndex&&n.index<=dt.visible.endIndex,d=i===`flow`&&u&&l!=null&&l.dataset.itemParked!==`true`;t.focusMountedPathFromInput(c),d&&(O.current=!0,z(e=>e===c?e:c),_e(`focus`)),o&&t.toggleMountedDirectoryFromInput(c),a.closeSearch&&t.closeSearch(),a.revealCanonical&&jt(c,{targetOffset:`sticky-parents`})},[t,et,dt.visible.endIndex,dt.visible.startIndex,jt]),jn=()=>{if(y.current||!He||en==null||Cn==null)return;let e=t.getItem(en);e!=null&&(Ot(Cn),Tt.current=!0,be({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:Cn.getAttribute(`aria-label`)??en,path:e.getPath()},path:e.getPath(),source:`button`}))},Mn={contextHoverPath:Sn,contextMenuButtonTriggerEnabled:He,contextMenuButtonVisibility:Ue,contextMenuEnabled:Be,contextMenuRightClickEnabled:We,contextMenuTriggerMode:Ve,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:rt,draggedPathSet:at,dragTarget:ot,gitLaneActive:Ye,gitStatusByPath:n,handleRowDragEnd:Gt,handleRowDragStart:Wt,handleRowTouchStart:Kt,ignoredGitDirectories:r,ignoredInheritanceCache:de,instanceId:o,itemHeight:s,onKeyDown:qt,onRowClick:An,openContextMenuForRow:kt,registerButton:Ge,registerRenameInput:qe,renameView:Ze,renderDecorationForRow:xt,resolveIcon:Xe,shouldSuppressContextMenu:Mt,visualFocusPath:xn},Nn={...Mn,registerButton:Ke};return Q(`div`,{ref:S,id:ct,"data-file-tree-context-menu-button-visibility":Be&&He?Ue:void 0,"data-file-tree-context-menu-trigger-mode":Be?Ve:void 0,"data-file-tree-has-context-menu-action-lane":Be&&He?`true`:void 0,"data-file-tree-has-git-lane":Ye?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:rt?on:void 0,onDragOver:rt?an:void 0,onDrop:rt?sn:void 0,onKeyDown:qt,onPointerLeave:Be?rn:void 0,onPointerOver:Be?nn:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[Q(`style`,{"data-file-tree-guide-style":`true`,dangerouslySetInnerHTML:{__html:yn}}),Q(`slot`,{name:SM,"data-type":`header-slot`}),f?Q(`div`,{"data-file-tree-search-container":!0,"data-open":et?`true`:`false`,children:Q(`input`,{ref:w,"aria-activedescendant":bn,"aria-controls":ct,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Me?`true`:void 0,value:tt,onBlur:()=>{(d!==`retain`||Pe.current)&&t.closeSearch()},onFocus:Fe,onPointerDown:Fe,onInput:e=>{Fe();let n=e.currentTarget;t.setSearch(n.value)}})}):null,Q(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&Re&&ht.length>0?Q(`div`,{"aria-hidden":`true`,"data-file-tree-sticky-overlay":`true`,children:Q(`div`,{"data-file-tree-sticky-overlay-content":`true`,style:{height:`${lt}px`},children:ht.map((e,t)=>CB(Nn,e.row,`sticky:${zz(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${ht.length-t}`}}))})}):null,Q(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${_t}px`},children:[Q(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${ln}px`}}),Q(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${cn}px`,top:`${un}px`,bottom:`${dn}px`},children:[wB(Mn,mt,yt),pn!=null&&mn!=null?CB(Mn,pn,`parked:${pn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:st===pn.path?`none`:void 0,position:`absolute`,right:`0`,top:`${mn}px`}}):null,_n!=null&&vn!=null?CB(Mn,_n,`parked-drag:${_n.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${vn}px`}}):null]})]})]}),Be?Q(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":Tn?`true`:`false`,style:On,children:[Q(`button`,{ref:v,type:`button`,"data-type":wM,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":H==null?`false`:`true`,"data-visible":wn?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),H!=null){Dt();return}jn()},tabIndex:-1,style:kn,children:Q(gR,{...Xe(`file-tree-icon-ellipsis`)})}),H==null?null:Q(`slot`,{name:CM})]}):null,H==null?null:Q(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),Dt()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),Dt()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var EB={hydrateRoot:(e,t)=>{dR(VL(TB,t),e)},renderRoot:(e,t)=>{uR(VL(TB,t),e)},unmountRoot:e=>{uR(null,e)}};function DB(e,t){EB.renderRoot(e,t)}function OB(e,t){EB.hydrateRoot(e,t)}function kB(e){EB.unmountRoot(e)}var AB=class{#e=new Map;#t=null;clearAll(){for(let e of this.#e.values())e.remove();this.#e.clear()}clearSlotContent(e){let t=this.#n(e);t!=null&&(t.remove(),this.#e.delete(e))}setHost(e){if(this.#t=e,e!=null){this.#i(e);for(let[e,t]of this.#e)this.#r(e,t)}}setSlotContent(e,t){let n=this.#n(e);if(n===t){t!=null&&(this.#e.set(e,t),this.#r(e,t));return}if(n?.remove(),t==null){this.#e.delete(e);return}this.#e.set(e,t),this.#r(e,t)}setSlotHtml(e,t){let n=t?.trim()??``;if(n.length===0){this.setSlotContent(e,null);return}let r=this.#n(e);if(r!=null&&r.innerHTML===n){this.#e.set(e,r),this.#r(e,r);return}let i=document.createElement(`div`);i.innerHTML=n,this.setSlotContent(e,i)}#n(e){let t=this.#e.get(e)??null;if(t!=null)return t;let n=this.#t;if(n==null)return null;for(let t of Array.from(n.children))if(t instanceof HTMLElement&&t.dataset.fileTreeManagedSlot===e)return t;return null}#r(e,t){t.slot=e,t.dataset.fileTreeManagedSlot=e,this.#t!=null&&t.parentNode!==this.#t&&this.#t.appendChild(t)}#i(e){for(let t of Array.from(e.children)){if(!(t instanceof HTMLElement))continue;let e=t.dataset.fileTreeManagedSlot;e==null||this.#e.has(e)||this.#e.set(e,t)}}};function jB(e,t,n){if(!e.s){if(n instanceof MB){if(!n.s)return void(n.o=jB.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(jB.bind(null,e,t),jB.bind(null,e,2));e.s=t,e.v=n;let r=e.o;r&&r(e)}}var MB=function(){function e(){}return e.prototype.then=function(t,n){var r=new e,i=this.s;if(i){var a=1&i?t:n;if(a){try{jB(r,1,a(this.v))}catch(e){jB(r,2,e)}return r}return this}return this.o=function(e){try{var i=e.v;1&e.s?jB(r,1,t?t(i):i):n?jB(r,1,n(i)):jB(r,2,i)}catch(e){jB(r,2,e)}},r},e}();Array.isArray;var NB=0;function PB(e){return e!=null&&e.length>0?e:(NB+=1,`pst_ft_${NB}`)}function FB({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??mI)}function IB(e){if(typeof document>`u`)return;let t=document.createElement(`div`);t.innerHTML=e;let n=t.querySelector(`svg`);return n instanceof SVGElement?n:void 0}function LB(e){return e.querySelector(`#file-tree-icon-chevron`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-file`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-dot`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-lock`)instanceof SVGElement}function RB(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var zB=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new AB;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y=null;#b;#x=!1;#S=!1;constructor(e){let{composition:t,density:n,fileTreeSearchMode:r,gitStatus:i,id:a,initialSearchQuery:o,icons:s,itemHeight:c,onSearchChange:l,onSelectionChange:u,overscan:d,renderRowDecoration:f,renaming:p,search:m,searchBlurBehavior:h,searchFakeFocus:g,stickyFolders:_,unsafeCSS:v,initialVisibleRowCount:y,...b}=e;this.#e=t,this.#n=PB(a),this.#p=gL(i),this.#m=s,this.#h=v,this.#r=u,this.#i=f,this.#a=p!=null&&p!==!1,this.#o=h,this.#s=m===!0,this.#c=g===!0,this.#u=pI(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new dL({...b,fileTreeSearchMode:r,initialSearchQuery:o,onSearchChange:l,renaming:p}),this.#v=this.#t.getSelectionVersion(),this.#y=this.#r==null?null:this.subscribe(()=>{this.#D()})}unmount(){this.#b!=null&&(kB(this.#b),delete this.#b.dataset.fileTreeVirtualizedWrapper,this.#b=void 0),this.#l.clearAll(),this.#l.setHost(null),this.#f!=null&&(delete this.#f.dataset.fileTreeVirtualized,this.#I(this.#f),this.#f=void 0)}cleanUp(){this.unmount(),this.#y?.(),this.#y=null,this.#t.destroy()}getFileTreeContainer(){return this.#f}getItem(e){return this.#t.getItem(e)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getFocusedIndex(){return this.#t.getFocusedIndex()}getVisibleCount(){return this.#t.getVisibleCount()}getVisibleRows(e,t){return this.#t.getVisibleRows(e,t)}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#u.itemHeight}getDensityFactor(){return this.#u.factor}subscribe(e){let t=!1;return this.#t.subscribe(()=>{if(!t){t=!0;return}e()})}focusPath(e){this.#t.focusPath(e)}focusFirstItem(){this.#t.focusFirstItem()}focusLastItem(){this.#t.focusLastItem()}focusNextItem(){this.#t.focusNextItem()}focusPreviousItem(){this.#t.focusPreviousItem()}focusParentItem(){this.#t.focusParentItem()}scrollToPath(e,t){this.#t.scrollToPath(e,t)}focusNearestPath(e){return this.#t.focusNearestPath(e)}add(e){this.#t.add(e)}batch(e){this.#t.batch(e)}applyGitStatusPatch(e){let t=_L(this.#p,e);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&DB(n.wrapper,this.#w())}move(e,t,n){this.#t.move(e,t,n)}onMutation(e,t){return this.#t.onMutation(e,t)}setSearch(e){this.#t.setSearch(e)}openSearch(e){this.#t.openSearch(e)}closeSearch(){this.#t.closeSearch()}isSearchOpen(){return this.#t.isSearchOpen()}getSearchValue(){return this.#t.getSearchValue()}getSearchMatchingPaths(){return this.#t.getSearchMatchingPaths()}focusNextSearchMatch(){this.#t.focusNextSearchMatch()}focusPreviousSearchMatch(){this.#t.focusPreviousSearchMatch()}startRenaming(e,t){return this.#t.startRenaming(e,t)}remove(e,t){this.#t.remove(e,t)}resetPaths(e,t){Array.isArray(e)?this.#t.resetPaths(e,t):this.#t.resetPaths(e)}setComposition(e){this.#e=e;let t=this.#T();t!=null&&(this.#O(),DB(t.wrapper,this.#w()))}setGitStatus(e){let t=gL(e,this.#p);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&DB(n.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),DB(t.wrapper,this.#w()))}hydrate({fileTreeContainer:e}){let t=this.#P(e),n=this.#N(t);this.#O(),OB(n,this.#w())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#P(t??this.#f,e),r=this.#N(n);this.#O(),DB(r,this.#w())}#C(){return{initialViewportHeight:FB({initialVisibleRowCount:this.#d.initialVisibleRowCount,itemHeight:this.#d.itemHeight}),itemHeight:this.#d.itemHeight,overscan:this.#d.overscan,stickyFolders:this.#d.stickyFolders}}#w(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#p?.statusByPath,ignoredGitDirectories:this.#p?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#p?.directoriesWithChanges,icons:this.#m,instanceId:this.#n,renamingEnabled:this.#a,renderRowDecoration:this.#i,searchBlurBehavior:this.#o,searchEnabled:this.#s,searchFakeFocus:this.#c,slotHost:this.#l,...this.#C()}}#T(){let e=this.#f,t=this.#b;return e==null||t==null?null:{host:e,wrapper:t}}#E(e,t){let n=e.shadowRoot;n!=null&&(this.#k(n),this.#A(n)),this.#j(t)}#D(){let e=this.#r;if(e==null)return;let t=this.#t.getSelectionVersion();t!==this.#v&&(this.#v=t,e(this.#t.getSelectedPaths()))}#O(){let e=this.#e?.header?.render;if(e!=null){this.#l.setSlotContent(SM,e());return}this.#l.setSlotHtml(SM,this.#e?.header?.html??null)}#k(e){let t=RB(e).find(e=>LB(e)),n=IB(fM(EM(this.#m).set));n!=null&&(t==null||t.outerHTML!==n.outerHTML)&&(t==null?e.prepend(n):t.replaceWith(n))}#A(e){let t=RB(e),n=t.find(e=>LB(e)),r=t.filter(e=>e!==n),i=EM(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=IB(i);if(a==null){for(let e of r)e.remove();return}if(r.length!==1||r[0].outerHTML!==a.outerHTML){for(let e of r)e.remove();e.appendChild(a)}}#j(e){let t=EM(this.#m);t.colored&&mM(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${vM}]`);if(this.#g==null&&t instanceof HTMLStyleElement&&(this.#g=t),this.#h==null||this.#h===``){this.#g?.remove(),this.#g=void 0,this.#_=void 0;return}(this.#g?.parentNode!==e||this.#_!==this.#h)&&(this.#g??=document.createElement(`style`),this.#g.setAttribute(vM,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=vI(this.#h),this.#_=this.#h)}#N(e){if(this.#b!=null)return this.#b;let t=e.shadowRoot;if(t==null)throw Error(`FileTree requires a shadow root`);let n=Array.from(t.children).filter(e=>e instanceof HTMLDivElement&&typeof e.dataset.fileTreeId==`string`&&e.dataset.fileTreeId.length>0),r=n.find(e=>e.dataset.fileTreeId===this.#n)??n[0];return r!=null&&(this.#n=r.dataset.fileTreeId??this.#n),this.#b=r??document.createElement(`div`),this.#b.dataset.fileTreeId=this.#n,this.#b.dataset.fileTreeVirtualizedWrapper=`true`,this.#E(e,this.#b),this.#b.parentNode!==t&&t.appendChild(this.#b),this.#b}#P(e,t){let n=e??this.#f??document.createElement(`file-tree-container`);t!=null&&n.parentNode!==t&&t.appendChild(n);let r=n.shadowRoot??n.attachShadow({mode:`open`});return wI(n,r),this.#M(r),n.dataset.fileTreeVirtualized=`true`,n.style.display=`flex`,this.#F(n),this.#l.setHost(n),this.#f=n,n}#F(e){e.style.getPropertyValue(`--trees-item-height`)===``&&(e.style.setProperty(`--trees-item-height`,`${String(this.#u.itemHeight)}px`),this.#x=!0),e.style.getPropertyValue(`--trees-density-override`)===``&&(e.style.setProperty(`--trees-density-override`,String(this.#u.factor)),this.#S=!0)}#I(e){this.#x&&=(e.style.removeProperty(`--trees-item-height`),!1),this.#S&&=(e.style.removeProperty(`--trees-density-override`),!1)}};function BB(e){let t=[],n=[];for(let r of e.trim().split(/\s+/).filter(Boolean)){let e=r.startsWith(`!`),i=e?r.slice(1):r;i&&(e?n:t).push(HB(i,e?VB:nt))}return e=>!n.some(t=>t(e))&&t.every(t=>t(e))}function VB(e,t){return t.toLowerCase().includes(e.toLowerCase())}function HB(e,t){if(!/[*?]/.test(e))return n=>t(e,n);let n=``;for(let t=0;t<e.length;t++){let r=e[t];r===`*`?e[t+1]===`*`?(n+=`.*`,t++):n+=`[^/]*`:n+=r===`?`?`[^/]`:r.replace(/[.+^${}()|[\]\\]/,`\\$&`)}try{let e=new RegExp(n,`i`);return t=>e.test(t)}catch{return n=>t(e,n)}}function UB(e){let t=new Set;for(let n of e)for(let e=n.indexOf(`/`);e!==-1;e=n.indexOf(`/`,e+1))t.add(n.slice(0,e+1));return t}function WB(e){let t=e.lastIndexOf(`/`,e.length-2);return t===-1?``:e.slice(0,t+1)}function GB(e,t){let n=new Set(e),r=new Set(t),i=UB(t),a=new Set([...UB(e)].filter(e=>!i.has(e))),o=[];for(let e of a)a.has(WB(e))||o.push({type:`remove`,path:e,recursive:!0});for(let t of e)!r.has(t)&&!a.has(WB(t))&&o.push({type:`remove`,path:t});for(let e of t)n.has(e)||o.push({type:`add`,path:e});return o}var KB=`_mZ _o`,qB=d,JB=(e=>`/${e}&`)(t);function YB(t){e(t.a,l)}var XB=(e,t)=>D(e.a,t),ZB=(e,t)=>u(e.a,t),QB=(e=>`<label>${e}<input type=search placeholder="Filter files…" aria-label="Filter files"></label>`)(qB),$B=(e=>` D/${e}& l`)(JB),eV=F(17,e=>ue(e,`c`,e.o,gV(e))),tV=P(14,eV),nV=P(15),rV=F(13,e=>{tV(e,(e.m??e.k)||``),nV(e,_V(e))}),iV=k(10,rV),aV=F(7,e=>iV(e,e.f,e.g)),oV=P(5,aV),sV=P(6,aV),cV=j(`u5`,e=>{{let t=e.m;if(t!==null){let n=setTimeout(()=>{lV(e,null),iV(e,t)},150);pe(e,0).onabort=()=>clearTimeout(n)}}}),lV=ge(12,e=>{me(e,0),rV(e),cV(e)}),uV=P(16,eV),dV=j(`u4`,e=>{de(e,`c`),A(e.c,`keydown`,function(t){t.key===`Enter`&&(e.p(),e.i?.()),t.key===`Escape`&&(e.o?(t.preventDefault(),e.q(``)):e.i&&(t.preventDefault(),e.i()))}),A(e.c,`blur`,function(){e.i&&(e.p(),e.i())})});function fV(e){I(e.a,[`_bl`,`_mY`]),YB(e.b),XB(e.b,14),ZB(e.b,`_bm`),I(e.c,[`_bn`,KB]),lV(e,null),uV(e,vV(e)),dV(e)}var pV=j(`u3`,e=>ce(e,{onMount:function(){e.j&&e.c.focus()}})),mV=P(9,pV),hV=P(8),gV=e=>function(t){e.q(t)},_V=e=>()=>{let t=e.m??e.k??``;lV(e,null),iV(e,t)},vV=e=>t=>{if(!t){lV(e,null),iV(e,``);return}lV(e,t)};le.u2=gV,le.u0=_V,le.u1=vV;var yV=new Set([`/`,`.`,`-`,`_`,` `]);function bV(e,t){if(t===0)return!0;let n=e[t-1];if(yV.has(n))return!0;let r=e[t];return r!==r.toLowerCase()&&n===n.toLowerCase()}function xV(e,t,n){let r=0;for(let i=0;i<t.length;i++){let a=t[i];r+=1,bV(e,a)&&(r+=8),i&&t[i-1]===a-1?r+=6:i&&(r-=Math.min(4,a-t[i-1]-1)),a>=n&&(r+=3),a===n&&(r+=6)}return r}function SV(e,t,n){let r=0,i=-1;for(let a=n;a<t.length;a++)if(t[a]===e[r]&&++r===e.length){i=a;break}if(i<0)return null;let a=[];r=e.length-1;for(let o=i;o>=n&&r>=0;o--)t[o]===e[r]&&(a.push(o),r--);return a.reverse()}function CV(e,t,n,r){let i=[],a=r;for(let r=0;r<e.length;r++){let o=i[i.length-1];if(o!=null&&n[o+1]===e[r]){i.push(o+1);continue}let s=a;for(;s<n.length&&!(n[s]===e[r]&&bV(t,s));)s++;if(s>=n.length)return null;i.push(s),a=s+1}return i}function wV(e,t,n,r,i){let a=SV(e,n,r);if(!a)return null;let o=CV(e,t,n,r),s=xV(t,a,i),c=o?xV(t,o,i):-1/0;return c>s?{score:c,hits:o}:{score:s,hits:a}}function TV(e,t,n,r){for(let i=t.indexOf(n,r);i!==-1;i=t.indexOf(n,i+1))if(bV(e,i))return!0;return!1}function EV(e,t){let n=e.split(/\s+/).filter(Boolean);if(!n.length)return{score:0,hits:[]};let r=t.toLowerCase(),i=t.lastIndexOf(`/`)+1,a=0,o=new Set;for(let e of n){let n=e.toLowerCase(),s=wV(n,t,r,i,i),c=s??wV(n,t,r,0,i);if(!c)return null;s&&TV(t,r,n,i)&&(a+=20),r.slice(i)===n&&(a+=30),a+=c.score;for(let e of c.hits)o.add(e)}return a-=t.length/100,{score:a,hits:[...o].sort((e,t)=>e-t)}}function DV(e){let t=e.match(/^(.*?):(\d+)(?::\d+)?\s*$/);return t?{query:t[1],line:Number(t[2])}:{query:e,line:0}}function OV(e,t,n,r){let i=[];for(let r of e){let e=EV(n,t(r));e&&i.push({item:r,match:e})}return i.sort((e,n)=>n.match.score-e.match.score||t(e.item).localeCompare(t(n.item))),i.slice(0,r)}var kV=`_k6 _9 _M`,AV=$e,jV=(e=>`/${e}&`)(` b`),MV=60;function NV(e,t,n,r){let i=[],a=new Set(t);for(let t=n;t<r;t++){let n=a.has(t),r=i[i.length-1];r&&r.hit===n?r.text+=e[t]:i.push({text:e[t],hit:n})}return i}var PV=N(0,1,e=>z(e.a,e._.e)),FV=PV,IV=N(0,0,e=>z(e.b,e._.e)),LV=M(0,`<mark> </mark>`,` D `,e=>{IV._(e),I(e.a,`_k4`)},` `,` `,FV),RV=(e,t)=>LV(e,+!t),zV=(e,t)=>{RV(e,t[0]?.hit),BV(e,t[0]?.text)},BV=P(4,e=>{IV(e),PV(e)}),VV=N(0,1,e=>z(e.a,e._.e)),HV=VV,UV=N(0,0,e=>z(e.b,e._.e)),WV=M(0,`<mark> </mark>`,` D `,e=>{UV._(e),I(e.a,`_k4`)},` `,` `,HV),GV=(e,t)=>WV(e,+!t),KV=(e,t)=>{GV(e,t[0]?.hit),qV(e,t[0]?.text)},qV=P(4,e=>{UV(e),VV(e)}),JV=e=>I(e.a,Be),YV=N(5,0,e=>z(e.b,e._.n)),XV=e=>{YV._(e),I(e.a,kV)},ZV=V(34,e=>z(e.b,e._._._._.u),e=>e._._._._,`L5`),QV=e=>{ZV(e),I(e.a,`_k5`)},$V=F(2,e=>z(e.b,e._._._.l?`Loading files…`:e._._._.s?`No file matches “${se(e._._._.s)}”.`:`Type part of a file's name. Add :42 to open it at line 42.`)),eH=V(29,$V,e=>e._._._,`L11`),tH=e=>{eH(e),nH(e),I(e.a,`_c4`)},nH=V(33,$V,e=>e._._._,`L12`),rH=V(28,e=>z(e.b,e._._._._.k),e=>e._._._._,`L4`),iH=M(0,`<li role=presentation>Recently opened</li>`,` `,JV,`<li role=presentation> </li>`,` D `,e=>{rH(e),I(e.a,Be)}),aH=F(17,e=>iH(e,!e._._._.s&&e.o===0?0:e.j&&(e.o===0||!e._._._.v[e.o-1].more)?1:2),3),oH=V(33,aH,e=>e._._._,`L7`),sH=j(`L6`,e=>{A(e.c,`mousemove`,function(){e._._._.p!==e.o&&JH(e._._._,e.o)}),A(e.c,`click`,function(){e._._._.a1(e.o)})}),cH=e=>{oH(e),dH(e),fH(e),mH(e),I(e.d,`_k2`),I(e.e,`_k3`),sH(e)},lH=M(6,`<span>:<!></span>`,` Db%`,QV),uH=F(16,e=>lH(e,e._._._.u&&e.o===e._._._.y?0:1),2),dH=V(34,uH,e=>e._._._,`L8`),fH=V(35,aH,e=>e._._._,`L9`),pH=F(15,e=>{R(e.b,`aria-selected`,e.o===e._._._.y?`true`:`false`),I(e.c,[`_cZ`,e.o===e._._._.y&&`_cY`])}),mH=V(37,e=>{pH(e),uH(e)},e=>e._._._,`L10`),hH=P(9,aH),gH=P(14,e=>{aH(e),pH(e),uH(e)}),_H=ie(3,`<!><!><!>`,`b%`,0,KV),vH=ie(4,`<!><!><!>`,`b%`,0,zV),yH=F(20,e=>{_H(e,[NV(e.s,e.m,e.t,e.s?.length)]),vH(e,[NV(e.s,e.m,0,Math.max(0,e.t-1))])},2),bH=P(19,yH),xH=P(18,e=>{R(e.c,`title`,e.s),bH(e,e.s.lastIndexOf(`/`)+1),yH(e)}),SH=P(12,yH),CH=M(5,`<span> </span>`,` D `,XV),wH=P(13,e=>{CH(e,+!e.n),YV(e)}),TH=(e,t)=>{hH(e,t[0]?.more),xH(e,t[0]?.item?.path),wH(e,t[0]?.item?.hint),SH(e,t[0]?.hits),gH(e,t[1])},EH=V(31,e=>ue(e,`c`,e._._.o,hU(e)),e=>e._._,`L15`),DH=j(`L14`,e=>{de(e,`c`),A(e.d,`click`,function(){e._._.z()})}),OH=e=>{EH(e),kH(e),jH(e),PH(e),I(e.a,`_cT`),ee(e.b),C(e.b,14),E(e.b),I(e.c,He),I(e.d,[v,`_cV`]),re(e.e),te(e.e,16),m(e.e),I(e.f,`_cW`),DH(e)},kH=V(32,e=>{R(e.c,`aria-controls`,e._._.q),R(e.f,`id`,e._._.q)},e=>e._._),AH=fe(5,`<!><!><li role=option><button type=button><span></span><span></span><!><!></button></li>`,`b%b D D b b%b%`,cH,TH),jH=V(35,e=>AH(e,[e._._.v,e=>`${e.more?`+`:``}${e.item.key}`]),e=>e._._,`L16`),MH=M(6,`<p> </p>`,` D `,tH),NH=j(`L13`,e=>A(e.c,`keydown`,function(t){if(t.key===`ArrowDown`||t.key===`ArrowUp`){t.preventDefault();let n=e._._.w;n&&JH(e._._,(e._._.y+(t.key===`ArrowDown`?1:-1)+n)%n)}else t.key===`Enter`&&(t.preventDefault(),e._._.a1(e._._.y))})),PH=V(36,e=>{MH(e,+!!e._._.w),NH(e)},e=>e._._,`L17`),FH=M(0,((e,t)=>`<div>${e}<input type=search autofocus autocomplete=off placeholder="Go to file (name:42 for a line)" aria-label="Go to file" role=combobox aria-expanded=true><button type=button title=Close aria-label=Close>${t}</button></div><ul role=listbox></ul><!><!>`)(b,_),((e,t)=>` D/${e}& b D/${t}&m b%c`)(g,ne),OH),IH=V(30,e=>FH(e,+!e._.m),0,`L18`),LH=ae(`L19`,`<!><!><!>`,`b%`,IH),RH=L(IH),zH=k(12,e=>{Xe(e.a,e.m),RH(e)}),BH=F(5,e=>zH(e,e.d,e.e)),VH=P(3,BH),HH=P(4,BH),UH=(e,t)=>{iU(e,t?.query),oU(e,t?.line)},WH=L(EH),GH=ge(14,e=>{UH(e,DV(e.o.trim())),WH(e)}),KH=P(24,L(mH)),qH=F(23,e=>KH(e,Math.min(e.p,Math.max(0,e.w-1)))),JH=ge(15,qH),YH=P(16),XH=P(27),ZH=F(26,e=>XH(e,gU(e)),3),QH=P(25,ZH);function $H(e){Je(e.a),U(e.a,LH(e)),qe(e.a,`Go to file`),Ge(e.a,[`_bH`,`_cS`]),W(e.a,vU(e)),tt(e.a,!0),Ye(e.a),Qe(e.a),Ke(e.a),Ze(e.a),et(e.a,{}),GH(e,``),JH(e,0),YH(e,oe(e)),QH(e,_U(e))}var eU=L(jH,fH),tU=P(21,e=>{cU(e,e.v?.length),ZH(e),eU(e)}),nU=F(19,e=>tU(e,(()=>{let t=e.s;if(!t){let t=new Map(e.g.map(e=>[e.key,e]));return(e.h||[]).map(e=>t.get(e)).filter(e=>!!e).map(e=>({item:e,hits:[],more:!1}))}let n=OV(e.g,e=>e.path,t,MV).map(e=>({item:e.item,hits:e.match.hits,more:!1})),r=e.i?OV(e.i.items,e=>e.path,t,MV).map(e=>({item:e.item,hits:e.match.hits,more:!0})):[];return[...n,...r]})()),3),rU=L(oH,nH),iU=P(18,e=>{nU(e),rU(e)}),aU=L(dH,ZV),oU=P(20,e=>{ZH(e),aU(e)}),sU=L(PH),cU=P(22,e=>{qH(e),sU(e)}),lU=P(6,nU),uU=P(7,nU),dU=P(8,e=>{pU(e,e.i?.label),nU(e)}),fU=P(9,ZH),pU=P(10,L(rH)),mU=P(11,L(eH)),hU=e=>function(t){GH(e._._,t),JH(e._._,0)},gU=e=>t=>{let n=e.v[t];if(!n)return;let r=e.u;e.z(),e.j(n.item.key,r,n.more)},_U=e=>()=>{zH(e,!1),GH(e,``),JH(e,0)},vU=e=>t=>{zH(e,t)};le.L3=hU,le.L1=gU,le.L0=_U,le.L2=vU;export{fw as $,JA as A,FS as At,Lk as B,Ix as Bt,UB as C,uC as Ct,ZA as D,nC as Dt,zB as E,KS as Et,pA as F,IS as Ft,Aw as G,Mk as H,nx as Ht,fA as I,AS as It,_w as J,jw as K,uA as L,yS as Lt,hA as M,HS as Mt,gA as N,BS as Nt,ej as O,tC as Ot,mA as P,PS as Pt,pw as Q,dA as R,fS as Rt,JB as S,bC as St,BB as T,aC as Tt,Zk as U,t_ as Ut,$k as V,xx as Vt,kk as W,Nt as Wt,hw as X,gw as Y,mw as Z,$B as _,wC as _t,VH as a,aw as at,YB as b,fC as bt,$H as c,nw as ct,mV as d,HC as dt,dw as et,hV as f,VC as ft,QB as g,SC as gt,fV as h,EC as ht,fU as i,rw as it,UA as j,NS as jt,QA as k,jS as kt,AV as l,$C as lt,sV as m,TC as mt,mU as n,uw as nt,HH as o,ow as ot,oV as p,FC as pt,bw as q,dU as r,cw as rt,uU as s,sw as st,lU as t,lw as tt,jV as u,AC as ut,ZB as v,CC as vt,GB as w,iC as wt,qB as x,yC as xt,XB as y,DC as yt,Xk as z,Bx as zt};
|