@intent-hq/web 2.300.1 → 2.301.1
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/package.json +1 -1
- package/web/app/immutable/chunks/{D24Lh2xV.js → -1vWYJiy.js} +1 -1
- package/web/app/immutable/chunks/{B00a-E5y.js → -8mBz6EW.js} +1 -1
- package/web/app/immutable/chunks/{seZ3kiWB.js → 2Iga5834.js} +1 -1
- package/web/app/immutable/chunks/{DD_wk1WS.js → 3-bIA0_b.js} +2 -2
- package/web/app/immutable/chunks/{VIc8fDOK.js → 3cwLWYk-.js} +1 -1
- package/web/app/immutable/chunks/{uuGBA4cr.js → 4byfznQh.js} +1 -1
- package/web/app/immutable/chunks/{D_HBTAOp.js → 6WuGSm1v.js} +2 -2
- package/web/app/immutable/chunks/{CoKvDYIY.js → 6hOEL6g0.js} +1 -1
- package/web/app/immutable/chunks/{CtPUg4ad.js → 8FC2Ymrs.js} +1 -1
- package/web/app/immutable/chunks/{XRDpypMz.js → 90FT2TPG.js} +2 -2
- package/web/app/immutable/chunks/{7lKdD900.js → 9Bp-qw-c.js} +1 -1
- package/web/app/immutable/chunks/{B6GFXjaE.js → 9pcH5qab.js} +4 -4
- package/web/app/immutable/chunks/{CHHzckiT.js → Alw6Bgam.js} +1 -1
- package/web/app/immutable/chunks/{DOb83nqS.js → B-pxGJ33.js} +1 -1
- package/web/app/immutable/chunks/{CTb5E7ts.js → B1f-Dpa6.js} +1 -1
- package/web/app/immutable/chunks/{C7jsu14h.js → B1ySs1Ps.js} +1 -1
- package/web/app/immutable/chunks/{6bctAAQ4.js → B3pWDt4A.js} +2 -2
- package/web/app/immutable/chunks/{BVR4ypbe.js → B5FPkuba.js} +1 -1
- package/web/app/immutable/chunks/{Ca7foKhO.js → B5gRIzZb.js} +1 -1
- package/web/app/immutable/chunks/{Cr3qamxz.js → B6wnyXxa.js} +1 -1
- package/web/app/immutable/chunks/{CbB5VTQO.js → B9e_lQGd.js} +1 -1
- package/web/app/immutable/chunks/{WAk1in99.js → BAJdDJmt.js} +1 -1
- package/web/app/immutable/chunks/{BKb2X4nY.js → BBfmiZwR.js} +1 -1
- package/web/app/immutable/chunks/{J1JvTxzS.js → BCFfKX9W.js} +1 -1
- package/web/app/immutable/chunks/{BOBlxuhv.js → BDHBtQ3l.js} +1 -1
- package/web/app/immutable/chunks/{DOP6s1nq.js → BDUAehdP.js} +4 -4
- package/web/app/immutable/chunks/{BBi8ZQ4f.js → BFnbk-Kf.js} +1 -1
- package/web/app/immutable/chunks/{DJPQ2gWl.js → BGGzsVfR.js} +1 -1
- package/web/app/immutable/chunks/{ClQcbOPg.js → BH5cuIQi.js} +1 -1
- package/web/app/immutable/chunks/{B08ZRfRe.js → BIDHEGct.js} +1 -1
- package/web/app/immutable/chunks/{CMT8W8d8.js → BIOk6wuV.js} +1 -1
- package/web/app/immutable/chunks/{D1YVXYbM.js → BJ_6izfA.js} +7 -7
- package/web/app/immutable/chunks/{CcJbNmRb.js → BMPb03sg.js} +1 -1
- package/web/app/immutable/chunks/{C1ANrPzv.js → BNPFPBlO.js} +1 -1
- package/web/app/immutable/chunks/{MSSSP_6i.js → BNVzhw1y.js} +1 -1
- package/web/app/immutable/chunks/{CNcMC2eS.js → BO9EbiHx.js} +1 -1
- package/web/app/immutable/chunks/{C0sDoyzY.js → BPC4nNQe.js} +1 -1
- package/web/app/immutable/chunks/{0nqxMME2.js → BR-wS1W8.js} +1 -1
- package/web/app/immutable/chunks/{BRX8YzX5.js → BRKe81M1.js} +1 -1
- package/web/app/immutable/chunks/{BsU6XLOF.js → BSuE_PI2.js} +1 -1
- package/web/app/immutable/chunks/{BS-h7rm3.js → BTIw3yd0.js} +1 -1
- package/web/app/immutable/chunks/{DHUOIULZ.js → BTeM7_LX.js} +1 -1
- package/web/app/immutable/chunks/{DW4Kmsyn.js → BU8fu6L_.js} +1 -1
- package/web/app/immutable/chunks/{DfARSELN.js → BVTor63R.js} +3 -3
- package/web/app/immutable/chunks/{zFZ2p9zT.js → BW_04noU.js} +1 -1
- package/web/app/immutable/chunks/{B648LYGe.js → BWerHQW_.js} +1 -1
- package/web/app/immutable/chunks/{3sRD2IoY.js → BX8IWbyz.js} +2 -2
- package/web/app/immutable/chunks/{BzvRDF8m.js → BYZmS9Dk.js} +1 -1
- package/web/app/immutable/chunks/{C_A8Orac.js → BYk_qw69.js} +1 -1
- package/web/app/immutable/chunks/{Bx4lXaHY.js → BYxkGGC-.js} +1 -1
- package/web/app/immutable/chunks/{D8RydOZp.js → B_vcNRuc.js} +1 -1
- package/web/app/immutable/chunks/{Dj9vAmvP.js → BapFUUqZ.js} +1 -1
- package/web/app/immutable/chunks/{COWTRkIf.js → Bd69ye4n.js} +1 -1
- package/web/app/immutable/chunks/{gM93sUNx.js → Bd9XSgIb.js} +1 -1
- package/web/app/immutable/chunks/{BKoNmPdl.js → BdCx7DnP.js} +1 -1
- package/web/app/immutable/chunks/{3cdteGtc.js → BeRTGLrw.js} +1 -1
- package/web/app/immutable/chunks/{BggFqLcQ.js → BghpE59-.js} +1 -1
- package/web/app/immutable/chunks/{DD1B8iWW.js → BhYLt5th.js} +1 -1
- package/web/app/immutable/chunks/{Ozne-tFy.js → Bk5SMnS3.js} +49 -49
- package/web/app/immutable/chunks/{x9rbYKj9.js → BlDfHMda.js} +1 -1
- package/web/app/immutable/chunks/{QvMOlSpE.js → BlPj7Bqh.js} +1 -1
- package/web/app/immutable/chunks/{CLwukbv5.js → Bo2QS6PZ.js} +1 -1
- package/web/app/immutable/chunks/{CcRQKkS2.js → Bo7YWMXl.js} +1 -1
- package/web/app/immutable/chunks/{0-b4ZvTK.js → BuXA0uuF.js} +1 -1
- package/web/app/immutable/chunks/{9ZGNcJrk.js → BvUM18CV.js} +1 -1
- package/web/app/immutable/chunks/BvgUrOVR.js +227 -0
- package/web/app/immutable/chunks/{BO3uDFyf.js → BwEpZ6hl.js} +3 -3
- package/web/app/immutable/chunks/{xnqT8zWA.js → BxC2yVbF.js} +1 -1
- package/web/app/immutable/chunks/{DPODhnzy.js → BxgeL5Cn.js} +2 -2
- package/web/app/immutable/chunks/{CAdJgRT-.js → BzDjODLF.js} +1 -1
- package/web/app/immutable/chunks/{CojjevwO.js → BzwTpGAs.js} +3 -3
- package/web/app/immutable/chunks/{Cs8-gQAN.js → C-yDVBGV.js} +1 -1
- package/web/app/immutable/chunks/{MkI4_nBU.js → C0DySWij.js} +1 -1
- package/web/app/immutable/chunks/{IFT0w_rv.js → C4Zy0P7R.js} +1 -1
- package/web/app/immutable/chunks/{2ZXwYJuA.js → C4wwbPuR.js} +1 -1
- package/web/app/immutable/chunks/{xn0HgFL2.js → C6PYFU8v.js} +1 -1
- package/web/app/immutable/chunks/{CViglT06.js → C9dil5-t.js} +1 -1
- package/web/app/immutable/chunks/{B5FD8FRF.js → CB1wD_PC.js} +1 -1
- package/web/app/immutable/chunks/{CjZ3vck_.js → CBDImldB.js} +1 -1
- package/web/app/immutable/chunks/{s1gAk8mT.js → CBYPZH-W.js} +1 -1
- package/web/app/immutable/chunks/CDxER840.js +1 -0
- package/web/app/immutable/chunks/{h-HGzFkJ.js → CEOoXkJa.js} +4 -4
- package/web/app/immutable/chunks/{DczZ5XlV.js → CEs-7mch.js} +3 -3
- package/web/app/immutable/chunks/{ConaHaDS.js → CFgK9GfH.js} +1 -1
- package/web/app/immutable/chunks/{CIhr4uzF.js → CGwmPMQc.js} +1 -1
- package/web/app/immutable/chunks/{BQ3lIAxU.js → CHDy3QTf.js} +1 -1
- package/web/app/immutable/chunks/{B1BoYgO3.js → CK1vqkSE.js} +1 -1
- package/web/app/immutable/chunks/{Cc7p6my_.js → CKI5DKl7.js} +6 -6
- package/web/app/immutable/chunks/{Cz3L4t3K.js → CKj5bwOX.js} +1 -1
- package/web/app/immutable/chunks/{CZ0U9o7-.js → CMAl4tQM.js} +1 -1
- package/web/app/immutable/chunks/{Q0MFbJMW.js → CMQqNZFP.js} +1 -1
- package/web/app/immutable/chunks/CMS0Mt7v.js +1 -0
- package/web/app/immutable/chunks/{BB2kR3UP.js → CNGkxhSe.js} +1 -1
- package/web/app/immutable/chunks/{D_fVcaam.js → CORu-AyV.js} +1 -1
- package/web/app/immutable/chunks/{5GrgBznS.js → COuOkYRg.js} +1 -1
- package/web/app/immutable/chunks/{CLt_MpVR.js → CPBiF1gr.js} +1 -1
- package/web/app/immutable/chunks/{qoEkEEyr.js → CS1PgLFW.js} +1 -1
- package/web/app/immutable/chunks/{UiwXoSAw.js → CSiZwu1h.js} +1 -1
- package/web/app/immutable/chunks/{5sBQ6rKD.js → CT_wb7-d.js} +1 -1
- package/web/app/immutable/chunks/{Dp-w6U2a.js → CTt3kMm1.js} +1 -1
- package/web/app/immutable/chunks/{CI_dqO7A.js → CUl5WBR5.js} +1 -1
- package/web/app/immutable/chunks/{BBKgmsAl.js → CUt6iXkF.js} +1 -1
- package/web/app/immutable/chunks/{Djo4Utna.js → CYfBmNaT.js} +1 -1
- package/web/app/immutable/chunks/{C0yADNxK.js → C_-tA5vs.js} +2 -2
- package/web/app/immutable/chunks/{D31GMMqw.js → C_VMQN67.js} +1 -1
- package/web/app/immutable/chunks/{CjJmucSj.js → C_uqctJM.js} +1 -1
- package/web/app/immutable/chunks/{BnoYK4Cg.js → CaibRh-G.js} +1 -1
- package/web/app/immutable/chunks/{DOlRZEzP.js → Cavwt8Mn.js} +1 -1
- package/web/app/immutable/chunks/{dAdxFhG6.js → CbF4ODHW.js} +1 -1
- package/web/app/immutable/chunks/{qVOvfVaw.js → Cdz-CHGd.js} +1 -1
- package/web/app/immutable/chunks/{DYFbONVh.js → CenrrJuj.js} +2 -2
- package/web/app/immutable/chunks/{B0WURFIt.js → Cf891EVZ.js} +1 -1
- package/web/app/immutable/chunks/{ByOlSVuA.js → CfM2ZJef.js} +1 -1
- package/web/app/immutable/chunks/{C9KORVFh.js → Cg_QSby7.js} +1 -1
- package/web/app/immutable/chunks/{DxZVPzM-.js → Cl5KdYjm.js} +1 -1
- package/web/app/immutable/chunks/{GgqVQsTS.js → Cn23SDXY.js} +1 -1
- package/web/app/immutable/chunks/{5D7P8R1M.js → Cnlend6s.js} +1 -1
- package/web/app/immutable/chunks/{BKBZBubB.js → CqnucWm4.js} +1 -1
- package/web/app/immutable/chunks/{lfN_4jdk.js → Crq2Gvaa.js} +1 -1
- package/web/app/immutable/chunks/{-j8RilKC.js → CsqCa0Sd.js} +2 -2
- package/web/app/immutable/chunks/{DDs4Vg0U.js → CuG6uIIP.js} +1 -1
- package/web/app/immutable/chunks/{C6MidKO1.js → Cvg7bd3W.js} +1 -1
- package/web/app/immutable/chunks/{waEdGUDl.js → CwnyA6hc.js} +1 -1
- package/web/app/immutable/chunks/{DsUUGZq_.js → Cx089QrC.js} +1 -1
- package/web/app/immutable/chunks/{BVT8FnwX.js → D-s4Q5GN.js} +1 -1
- package/web/app/immutable/chunks/{CqbBHiiS.js → D1IlJCd0.js} +1 -1
- package/web/app/immutable/chunks/{C2RKkR8r.js → D2gIe4Fc.js} +1 -1
- package/web/app/immutable/chunks/{BVLclYIV.js → D6IXX0lv.js} +1 -1
- package/web/app/immutable/chunks/{DR4IMcDF.js → D6Id8WlN.js} +1 -1
- package/web/app/immutable/chunks/{CMxICaSn.js → D9hi6Z3O.js} +1 -1
- package/web/app/immutable/chunks/D9iN-aHM.js +5 -0
- package/web/app/immutable/chunks/{WhG7Bgtb.js → DD1-zRxp.js} +1 -1
- package/web/app/immutable/chunks/{DW3NYbCg.js → DE5Smm9m.js} +1 -1
- package/web/app/immutable/chunks/{DfZpv0e6.js → DFoGBie-.js} +1 -1
- package/web/app/immutable/chunks/{YJmoM74E.js → DG__gHhd.js} +1 -1
- package/web/app/immutable/chunks/{CURgPz9A.js → DIlG6FTS.js} +1 -1
- package/web/app/immutable/chunks/{DvuFiJGX.js → DK1vbm9l.js} +1 -1
- package/web/app/immutable/chunks/{DayXN3MG.js → DKs2ftKN.js} +1 -1
- package/web/app/immutable/chunks/{BWAM175S.js → DLoJFSfZ.js} +1 -1
- package/web/app/immutable/chunks/{yr_icLi6.js → DMC7qMUv.js} +1 -1
- package/web/app/immutable/chunks/{CNsCQ6no.js → DMaQDnJk.js} +1 -1
- package/web/app/immutable/chunks/{Dy75eCEg.js → DMcsIxoO.js} +1 -1
- package/web/app/immutable/chunks/{BFq_nebX.js → DNmVxfYt.js} +8 -8
- package/web/app/immutable/chunks/{D6tg0AFH.js → DOGdTp2m.js} +1 -1
- package/web/app/immutable/chunks/{2DcZXs_F.js → DR58OcKC.js} +1 -1
- package/web/app/immutable/chunks/{DPaNvpDi.js → DR9205pL.js} +1 -1
- package/web/app/immutable/chunks/{CCOyeB8l.js → DTSOJB0e.js} +1 -1
- package/web/app/immutable/chunks/{CZL3_4T_.js → DXwDIYHN.js} +1 -1
- package/web/app/immutable/chunks/{l4QAkguk.js → DYd7w17e.js} +1 -1
- package/web/app/immutable/chunks/{3pZ2C7Oz.js → DYrK-s5W.js} +1 -1
- package/web/app/immutable/chunks/{BRFS4VDU.js → DYztlXyW.js} +1 -1
- package/web/app/immutable/chunks/{BcN0a7iZ.js → DZ5koqO7.js} +1 -1
- package/web/app/immutable/chunks/{iYBu_bIg.js → D_m0iYjs.js} +1 -1
- package/web/app/immutable/chunks/{BWaQmmKL.js → DadwIC0R.js} +1 -1
- package/web/app/immutable/chunks/{CyAayV8v.js → Dax20l9D.js} +2 -2
- package/web/app/immutable/chunks/{BeXyu8S7.js → DbKrZJmS.js} +6 -6
- package/web/app/immutable/chunks/{D7tJZDri.js → DbY-sUwj.js} +1 -1
- package/web/app/immutable/chunks/{D1mml-OO.js → DcE_Ld1a.js} +1 -1
- package/web/app/immutable/chunks/{CeO1YObE.js → DdKmPHVm.js} +1 -1
- package/web/app/immutable/chunks/{BL66wtH1.js → DffgEGrv.js} +1 -1
- package/web/app/immutable/chunks/{g8wzFaTr.js → DfiXlh8D.js} +1 -1
- package/web/app/immutable/chunks/{BmZ0oFC-.js → DgBCXQ71.js} +1 -1
- package/web/app/immutable/chunks/{BpS2Zkky.js → DiDcqoCZ.js} +1 -1
- package/web/app/immutable/chunks/{TKDyISXm.js → Dj5vfD48.js} +3 -3
- package/web/app/immutable/chunks/{B9UG1fIf.js → DjVfE_Ds.js} +1 -1
- package/web/app/immutable/chunks/{CbSjEe9c.js → Dkg7fAiD.js} +1 -1
- package/web/app/immutable/chunks/{BPC4bZ2e.js → DkibMP99.js} +1 -1
- package/web/app/immutable/chunks/{DnSvdDJQ.js → DkraFhXS.js} +1 -1
- package/web/app/immutable/chunks/{BXDqRhfc.js → DmtmsOtX.js} +1 -1
- package/web/app/immutable/chunks/{AFSjjw3j.js → Do_TqlrK.js} +1 -1
- package/web/app/immutable/chunks/{CUPUpXuX.js → Dovmtid-.js} +1 -1
- package/web/app/immutable/chunks/{dJdm8RiY.js → DpN6Ybfd.js} +1 -1
- package/web/app/immutable/chunks/{CGXAF4r8.js → DrWcQsKJ.js} +1 -1
- package/web/app/immutable/chunks/{B23FAgl4.js → DvCCocml.js} +1 -1
- package/web/app/immutable/chunks/{2N3bEpgZ.js → DwuPw74E.js} +1 -1
- package/web/app/immutable/chunks/{DUb-Rw9h.js → Dz6pz6rM.js} +1 -1
- package/web/app/immutable/chunks/{BiyBBgWJ.js → HcVsBsAl.js} +1 -1
- package/web/app/immutable/chunks/{BuBWlA2n.js → IISaQsK0.js} +1 -1
- package/web/app/immutable/chunks/IJYL54f1.js +1 -0
- package/web/app/immutable/chunks/{BoVqnGlE.js → Iu8s0xrk.js} +1 -1
- package/web/app/immutable/chunks/{DjJQPfKI.js → LzWIYiXc.js} +1 -1
- package/web/app/immutable/chunks/{DzxV-zrJ.js → M8sdbvOT.js} +1 -1
- package/web/app/immutable/chunks/{vTk7TgiT.js → McMSPwXq.js} +1 -1
- package/web/app/immutable/chunks/{_wdKNOb8.js → NPItrD9R.js} +1 -1
- package/web/app/immutable/chunks/{DDDplTKI.js → NlCjCVxn.js} +1 -1
- package/web/app/immutable/chunks/{DSoSzq2S.js → NzxBab7c.js} +1 -1
- package/web/app/immutable/chunks/{Cl4oF0_T.js → PeSBy6Q3.js} +1 -1
- package/web/app/immutable/chunks/{DBYwZc8q.js → PnTDvXOe.js} +1 -1
- package/web/app/immutable/chunks/{CYIyfTfT.js → SiYLjuDS.js} +1 -1
- package/web/app/immutable/chunks/{1-VabEZ0.js → Syl_OSjA.js} +1 -1
- package/web/app/immutable/chunks/{nn-FB5iu.js → TV2_MWXe.js} +1 -1
- package/web/app/immutable/chunks/{EZewBOPv.js → TWVlaXcj.js} +1 -1
- package/web/app/immutable/chunks/{cF3AJqS4.js → U_cmHtqi.js} +1 -1
- package/web/app/immutable/chunks/{D_0pJDZv.js → UakvtOgc.js} +1 -1
- package/web/app/immutable/chunks/{Dpront9T.js → UlQNHb3m.js} +1 -1
- package/web/app/immutable/chunks/{CkiTXhNV.js → Vwfej_EC.js} +3 -3
- package/web/app/immutable/chunks/{C7NJtCoD.js → WL4wAA6m.js} +2 -2
- package/web/app/immutable/chunks/{WC951FwE.js → XO84v1Z5.js} +1 -1
- package/web/app/immutable/chunks/{txAxF1ra.js → b33seoH7.js} +1 -1
- package/web/app/immutable/chunks/{BVnCu4HK.js → dvgX5pbn.js} +1 -1
- package/web/app/immutable/chunks/{BPhCmCpT.js → fX819Pv6.js} +1 -1
- package/web/app/immutable/chunks/{CJB0AMOQ.js → gMye6h60.js} +2 -2
- package/web/app/immutable/chunks/{KoGdyFdq.js → h6ZeyBNW.js} +1 -1
- package/web/app/immutable/chunks/{DOpzySCS.js → ljZI5d7y.js} +1 -1
- package/web/app/immutable/chunks/{CKXP5Dfl.js → mFLgyCOK.js} +1 -1
- package/web/app/immutable/chunks/{DHZp-IFS.js → mNkJFQiA.js} +1 -1
- package/web/app/immutable/chunks/{CuGpCjd7.js → oqxFFnht.js} +1 -1
- package/web/app/immutable/chunks/{4MuDb8sG.js → pDn0_bm8.js} +1 -1
- package/web/app/immutable/chunks/{DEMyUrKD.js → rgnRekX3.js} +1 -1
- package/web/app/immutable/chunks/{CwSA3Dwr.js → sgMaD9-D.js} +3 -3
- package/web/app/immutable/chunks/{CilxFmmt.js → tzy2FJ3p.js} +1 -1
- package/web/app/immutable/chunks/{BTiFAxnk.js → uR5KZKbl.js} +1 -1
- package/web/app/immutable/chunks/{igt8MaJ4.js → udwHGMln.js} +1 -1
- package/web/app/immutable/chunks/{DB9IAENr.js → ulG7NA7z.js} +1 -1
- package/web/app/immutable/chunks/{7L5DlLPB.js → vt-D6r-U.js} +1 -1
- package/web/app/immutable/chunks/{f3mINTV_.js → wD4fx_9g.js} +1 -1
- package/web/app/immutable/chunks/{Bkny4U08.js → x0rjHUHa.js} +1 -1
- package/web/app/immutable/chunks/{CqShCtgy.js → yCx04g4X.js} +1 -1
- package/web/app/immutable/chunks/{B2YeO1vq.js → yW4W7htU.js} +1 -1
- package/web/app/immutable/entry/{app.MRheiWYu.js → app.CIVLA2a9.js} +2 -2
- package/web/app/immutable/entry/start.Cn76ZGVI.js +1 -0
- package/web/app/immutable/nodes/{0.CtDeqO-b.js → 0.ACp4Nz4v.js} +1 -1
- package/web/app/immutable/nodes/{1.DkbI4cS2.js → 1.DRnQyS6A.js} +1 -1
- package/web/app/immutable/nodes/{10.m8CCWmGC.js → 10.CLkVRFBV.js} +1 -1
- package/web/app/immutable/nodes/{12.C6vEm_M7.js → 12.CEAVKYuu.js} +1 -1
- package/web/app/immutable/nodes/{13.DPA662Yd.js → 13.CJ1HRZcd.js} +1 -1
- package/web/app/immutable/nodes/{14.ByaMuLhR.js → 14.9_BXzcxR.js} +1 -1
- package/web/app/immutable/nodes/{15.Byubc7Em.js → 15.CZGq0vsg.js} +1 -1
- package/web/app/immutable/nodes/{16.BmFYAQ9C.js → 16.BMYUgPNR.js} +2 -2
- package/web/app/immutable/nodes/2.d5BGPrjO.js +9 -0
- package/web/app/immutable/nodes/{3.C3UUZ7iK.js → 3.0E-ZGvKe.js} +1 -1
- package/web/app/immutable/nodes/{4.CtX4qgJE.js → 4.DSO5-jdr.js} +1 -1
- package/web/app/immutable/nodes/{5.yLkRrv3R.js → 5.BexFD7jH.js} +1 -1
- package/web/app/immutable/nodes/6.CqlyGMy5.js +1 -0
- package/web/app/immutable/nodes/{7.DCFEio1e.js → 7.C2XKzJeK.js} +1 -1
- package/web/app/immutable/nodes/{8.CGM4vick.js → 8.CMFpn5kb.js} +4 -4
- package/web/app/immutable/nodes/{9.V5qvVUf3.js → 9.BolTThFG.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/9A9__2dZ.js +0 -1
- package/web/app/immutable/chunks/BqQtQly_.js +0 -5
- package/web/app/immutable/chunks/D4Mfx79s.js +0 -227
- package/web/app/immutable/chunks/DGR4UUG4.js +0 -1
- package/web/app/immutable/chunks/W-gkWrYK.js +0 -1
- package/web/app/immutable/entry/start.CSXPreJt.js +0 -1
- package/web/app/immutable/nodes/2.B4Inck9s.js +0 -9
- package/web/app/immutable/nodes/6.CjUsIDeG.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Du_CL2nr.js","/app/immutable/chunks/DSSpBswy.js","/app/immutable/chunks/wDzz0qaB.js","/app/immutable/chunks/CLj8gQPS.js","/app/immutable/chunks/C3jOxTNK.js","/app/immutable/chunks/DT3CNIhV.js","/app/immutable/chunks/Cb_wDuVX.js","/app/immutable/chunks/BGJmEYvX.js","/app/immutable/chunks/CylS5w8V.js","/app/immutable/chunks/Cp-IABpG.js","/app/immutable/chunks/BUtzH8cE.js","/app/immutable/chunks/BPQ3VLAy.js","/app/immutable/chunks/CXtECtnM.js","/app/immutable/chunks/COt5Ahok.js","/app/immutable/chunks/CV-HBevZ.js","/app/immutable/chunks/C9MReZ1T.js","/app/immutable/chunks/CRqJ_cUM.js","/app/immutable/chunks/DohQb4zL.js","/app/immutable/chunks/DVxCFoDh.js","/app/immutable/chunks/CO1LY3CK.js","/app/immutable/chunks/B6aJPvgy.js","/app/immutable/chunks/Ci46zaMS.js","/app/immutable/chunks/BIGW1oBm.js","/app/immutable/chunks/N5GveWjx.js","/app/immutable/chunks/CxbxFI8M.js","/app/immutable/chunks/EtwkZMvg.js","/app/immutable/chunks/CDVJQ6XC.js","/app/immutable/chunks/DZxFcAj9.js","/app/immutable/chunks/DMkUaiYH.js","/app/immutable/chunks/Yzrsuije.js","/app/immutable/chunks/BziH_PKc.js","/app/immutable/chunks/B-0XRHxj.js","/app/immutable/chunks/Ci3HlJdq.js","/app/immutable/chunks/mWv_UL20.js","/app/immutable/chunks/q1caIYAk.js","/app/immutable/chunks/D2j5LXpq.js","/app/immutable/chunks/C9oPPf7i.js","/app/immutable/chunks/g9-lgVsj.js","/app/immutable/chunks/CnsnAmq5.js","/app/immutable/chunks/Buea-lGh.js","/app/immutable/chunks/CuPHTKiy.js","/app/immutable/chunks/Cvjx9yec.js","/app/immutable/chunks/B7c-h3xW.js","/app/immutable/chunks/BxgE0vQu.js","/app/immutable/chunks/BTifaqeh.js","/app/immutable/chunks/DUKdbdZx.js","/app/immutable/chunks/DkwncUOv.js","/app/immutable/chunks/DqcFQ5yU.js","/app/immutable/chunks/CxGSJlkm.js","/app/immutable/chunks/D97Zzqfu.js","/app/immutable/chunks/CSXwinHm.js","/app/immutable/chunks/DZ9PSxVF.js","/app/immutable/chunks/CDBrVQLm.js","/app/immutable/chunks/BL3tgEu7.js","/app/immutable/chunks/CcsQSqEB.js","/app/immutable/chunks/DaZJ10kq.js","/app/immutable/chunks/CVF7vp9Z.js","/app/immutable/chunks/fuZLfV_i.js","/app/immutable/chunks/CaCNOrBN.js","/app/immutable/chunks/CfZj7gIn.js","/app/immutable/chunks/Cogva5lR.js","/app/immutable/chunks/Br6cN0cg.js","/app/immutable/chunks/C4liqeOB.js","/app/immutable/chunks/Cf5RLm7j.js","/app/immutable/chunks/GWc9VfWm.js","/app/immutable/chunks/aqMIE0ez.js","/app/immutable/chunks/CBp1Oudt.js","/app/immutable/chunks/CRHig4t4.js","/app/immutable/chunks/DcWK9jms.js","/app/immutable/chunks/CBaQQc7g.js","/app/immutable/chunks/B1dDrJ26.js","/app/immutable/chunks/DIaYF8wn.js","/app/immutable/chunks/BcllPdc-.js","/app/immutable/chunks/vE_lwT2v.js","/app/immutable/chunks/fbvUeNLU.js","/app/immutable/chunks/DloUtz8x.js","/app/immutable/chunks/BK370A1a.js","/app/immutable/chunks/BEwlwnbL.js","/app/immutable/chunks/CHLpvVh8.js","/app/immutable/chunks/CLbBpDAT.js","/app/immutable/chunks/Cu-pLBUe.js","/app/immutable/chunks/P80f7IUj.js","/app/immutable/chunks/DXmwc3jG.js","/app/immutable/chunks/BcOcwvcX.js","/app/immutable/chunks/C27-OAKa.js","/app/immutable/chunks/gcz8RCvz.js","/app/immutable/chunks/DXvB9xmW.js","/app/immutable/chunks/B1yitclQ.js","/app/immutable/chunks/CqE71os6.js","/app/immutable/chunks/DSvCPggb.js","/app/immutable/chunks/bE4Kk8sk.js","/app/immutable/chunks/C0hk2d4L.js","/app/immutable/chunks/VOosw3JB.js","/app/immutable/chunks/BaaWV1KV.js","/app/immutable/chunks/Dc-5oQ3p.js","/app/immutable/chunks/BVQ-GDCI.js","/app/immutable/chunks/Cgqqbwmm.js","/app/immutable/chunks/DfY5xF4S.js","/app/immutable/chunks/D1j8_8rp.js","/app/immutable/chunks/DhaYTIfE.js","/app/immutable/chunks/BqTXFGrv.js","/app/immutable/chunks/D3lLCCz7.js","/app/immutable/chunks/Cq5zzVJU.js","/app/immutable/chunks/OmYdGuYq.js","/app/immutable/chunks/BRZ36xJF.js","/app/immutable/chunks/BsS91CYL.js","/app/immutable/chunks/HgPamjhh.js","/app/immutable/chunks/CfYcf3Sz.js","/app/immutable/chunks/DhaVEd23.js","/app/immutable/chunks/BVkGXMyj.js","/app/immutable/chunks/BX_0um4d.js","/app/immutable/chunks/DF2lZ9u9.js","/app/immutable/chunks/BdrM2Vnw.js","/app/immutable/chunks/CickPsom.js","/app/immutable/chunks/CHM0blh-.js","/app/immutable/chunks/Des-eS-w.js","/app/immutable/chunks/2UxHyX5q.js","/app/immutable/chunks/BmBUJMz7.js","/app/immutable/chunks/C2oV4EkX.js","/app/immutable/chunks/nZwndyjY.js","/app/immutable/chunks/0hqHdDBg.js","/app/immutable/chunks/BMsVS0qT.js","/app/immutable/chunks/DqQDbK_p.js","/app/immutable/chunks/B5q1GTce.js","/app/immutable/chunks/BEDo0Tqx.js","/app/immutable/chunks/
|
|
2
|
-
var Qa=Object.defineProperty;var Xa=Object.getPrototypeOf;var Ja=Reflect.get;var mi=e=>{throw TypeError(e)};var Za=(e,t,r)=>t in e?Qa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var g=(e,t,r)=>Za(e,typeof t!="symbol"?t+"":t,r),Wr=(e,t,r)=>t.has(e)||mi("Cannot "+r);var J=(e,t,r)=>(Wr(e,t,"read from private field"),r?r.call(e):t.get(e)),De=(e,t,r)=>t.has(e)?mi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),oe=(e,t,r,n)=>(Wr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Hr=(e,t,r)=>(Wr(e,t,"access private method"),r);var gi=(e,t,r)=>Ja(Xa(e),r,t);import{c as Nt}from"./ChTqQfQN.js";import{ax as Ya,bt as Pr,J as el,bg as tl}from"./CyAayV8v.js";import{_ as p,bo as me}from"./yZ5s7S5S.js";import{g as rl}from"./BJzHxIyr.js";import{Hb as E,n2 as it,uy as nl,uA as il,uz as No,uJ as ol,uI as sl,Hh as al,oW as ll,Ar as ul,BZ as _i,z3 as cl,BY as dl,e5 as Vo,Je as Mo,s4 as pl,Il as hl,im as fl,Ik as ml,n1 as gl,GZ as Xn,CF as _l,CD as yl,sU as bl,CE as El,Dg as kl,D1 as vl,E0 as wl,Cl as Sl,F0 as Cl,E$ as Al,F8 as Il,EX as Tl,DE as Rl,CP as Ll,CC as Pl,CB as Ol,Cj as xl,DT as Dl,BU as Nl,Fh as Vl,Ct as Ml,Fj as $l,Cu as Bl,FC as Fl,E_ as Gl,EZ as jl,DV as Ul,Ei as ql,BO as zl,Br as Wl,gb as Hl,By as Kl,zz as Ql,DA as Xl,De as Jl,Db as Zl,EP as Yl,Du as eu,Dz as tu,Dw as ru,Dx as nu,Ea as iu,EN as ou,Cd as su,F3 as au,Fl as lu,IC as $o,d6 as Bo,ix as Fo,AA as Go}from"./WOicJa2k.js";import{cK as uu,bM as cu,bF as du,c3 as pu,cc as hu,c8 as fu,c9 as mu,a_ as gu,a$ as _u,bE as yu,bG as bu}from"./CKXP5Dfl.js";import{x as fe,$ as Eu,t as ku,a7 as vu}from"./DYFbONVh.js";import{i as Se}from"./CqbBHiiS.js";import{C as wu,c as Su,n as Cu,g as Au}from"./Ck8ZjaJh.js";import{c4 as Gt,bt as Iu,dk as Tu}from"./D24Lh2xV.js";import{h as Ru,$ as Lu,F as Pu,bm as Ou}from"./CilxFmmt.js";import{C as xu,b5 as Du,b6 as Nu,aX as Vu,aB as Mu,bg as $u,bx as Bu,aM as Fu,aE as jo,aq as Gu,aC as Uo,aD as qo}from"./DfARSELN.js";import{s as ju,f as Uu}from"./BIqUw3gi.js";import{a as zo,T as qu,d as zu,s as Wu,e as Hu,b as Ku,g as Qu}from"./BggFqLcQ.js";import{k as Xu,f as Ju,z as Zu,a as Yu,B as ec,L as tc,K as rc,A as nc,x as ic,m as oc,l as sc,I as ac,q as lc,w as uc,t as cc,u as dc,D as pc,G as hc,d as fc,M as mc,N as gc}from"./C3YfsJGu.js";import{S as Kr,n as _c}from"./Cb1eroFO.js";const dt=Nt("ActiveStreamsTracker");class yc{constructor(){g(this,"streamsByWorkspace",new Map);g(this,"allStreams",new Map);g(this,"listeners",new Set);g(this,"isListening",!1);g(this,"scanUpdates",null);g(this,"version",0);g(this,"inFlight",null);g(this,"pendingRefresh",!1);g(this,"refreshGeneration",0)}startPolling(){this.isListening||(this.fetchActiveStreams(),this.isListening=!0,dt.info("Started listening for active stream events"))}stopPolling(){this.isListening&&(this.pendingRefresh=!1,this.inFlight=null,this.refreshGeneration++,this.scanUpdates=null,this.updateStreams([]),this.isListening=!1,dt.info("Stopped listening for active stream events"))}applyEvent(t){if(!this.isListening)return;const r=t.data,n=r?.agentId;if(typeof n!="string"||!t.workspaceId)return;const i=["agent:idle","agent:failed","agent:deleted","agent:delete-scheduled"];let o;if(i.includes(t.type))o=!1;else if(t.type==="agent:status-changed")if(r?.isActive===!0||r?.isResponding===!0||r?.isStreaming===!0)o=!0;else if(r?.isActive===!1||["idle","completed","error","failed","deleted","halted"].includes(String(r?.status)))o=!1;else if(r?.status==="active"||r?.status==="responding")o=!0;else return;else return;const s=this.allStreams.get(n);if(s&&s.workspaceId!==t.workspaceId)return;const a=o?s??{agentId:n,sessionId:t.sessionId??n,workspaceId:t.workspaceId,startTime:Date.parse(t.timestamp)}:null;this.scanUpdates?.set(n,a);const l=new Map(this.allStreams);a?l.set(n,a):l.delete(n),this.updateStreams([...l.values()])}fetchActiveStreams(){if(this.inFlight)return this.pendingRefresh=!0,this.inFlight;const t=this.drainRefreshes(this.refreshGeneration);return this.inFlight=t,t.then(()=>{this.inFlight===t&&(this.inFlight=null)},()=>{this.inFlight===t&&(this.inFlight=null)}),t}async drainRefreshes(t){do this.pendingRefresh=!1,await this.fetchActiveStreamsOnce();while(t===this.refreshGeneration&&this.pendingRefresh)}async fetchActiveStreamsOnce(){const t=this.refreshGeneration,r=new Map;this.scanUpdates=r;try{const n=await Ya("agent.listActive",{});if(t!==this.refreshGeneration)return;if(Array.isArray(n.streams)){const i=new Map(n.streams.map(o=>[o.agentId,o]));for(const[o,s]of r)s?i.set(o,s):i.delete(o);this.updateStreams([...i.values()])}}catch(n){dt.warn("Failed to fetch active streams",{error:n})}finally{this.scanUpdates===r&&(this.scanUpdates=null)}}updateStreams(t){const r=new Map,n=new Map;for(const o of t){n.set(o.agentId,o);let s=r.get(o.workspaceId);s||(s=new Set,r.set(o.workspaceId,s)),s.add(o.agentId)}(this.allStreams.size!==n.size||[...n.keys()].some(o=>!this.allStreams.has(o))||[...this.allStreams.keys()].some(o=>!n.has(o)))&&(this.streamsByWorkspace=r,this.allStreams=n,this.version++,this.notifyListeners(),dt.debug("Active streams updated",{totalStreams:n.size,workspaces:Array.from(r.keys())}))}getStreamingAgentIdsForWorkspace(t){const r=this.streamsByWorkspace.get(t);return r?Array.from(r):[]}isAgentStreaming(t){return this.allStreams.has(t)}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}notifyListeners(){for(const t of this.listeners)try{t()}catch(r){dt.error("Error in active streams listener",r)}}getVersion(){return this.version}}const Cy=new yc,Ay="diffs-container";(()=>{try{return!1}catch{return!1}})();const Iy=/(?=^From [a-f0-9]+ .+$)/m,Ty=/(?=^diff --git)/gm,Ry=/(?<=\n)/,Ly=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Py=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Oy="header-prefix",xy="header-filename-suffix",Dy="header-metadata",Ny="header-custom",pr={dark:"pierre-dark",light:"pierre-light"},Vy="data-theme-css",My="data-unsafe-css",$y="data-diffs-scrollbar-measure",By="--diffs-scrollbar-gutter-measured",Fy=1e5,bc={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},Gy=Object.freeze({fromStart:0,fromEnd:0}),jy={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},Uy={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},We=new Map,Qr=new Map,Ec=new Map,vn=new Set;function Wo(e){for(const t of Array.isArray(e)?e:[e])if(!(t==="text"||t==="ansi")&&!vn.has(t))return!1;return!0}function ir(e=pr){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}const wn=new Set;function St(e){const t=[],r=new Set;for(const c of kc(e.themes)){const h=Ho(c)?c.getThemes():[c];for(const f of h){if(r.has(f.name))throw new Error(`Theme collection already contains theme "${f.name}"`);r.add(f.name),t.push(f)}}const n=Object.freeze([...t]),i=Object.freeze(n.filter(c=>c.colorScheme==="light")),o=Object.freeze(n.filter(c=>c.colorScheme==="dark")),s=new Map(n.map(c=>[c.name,c])),a=Object.freeze(n.map(c=>c.name)),l=Object.freeze(i.map(c=>c.name)),u=Object.freeze(o.map(c=>c.name));function d(c){if(c==null)return n;const{colorScheme:h,collection:f}=c;return f==null?h==="light"?i:h==="dark"?o:n:n.filter(m=>m.collection!==f?!1:h==null||m.colorScheme===h)}return{getTheme(c){return s.get(c)},getThemes(c){return d(c)},getThemeNames(c){return c?.collection==null?c?.colorScheme==="light"?l:c?.colorScheme==="dark"?u:a:d(c).map(h=>h.name)},hasTheme(c){return s.has(c)},orderBy(c){return St({themes:n.map((h,f)=>({descriptor:h,index:f})).sort((h,f)=>{const m=c(h.descriptor,f.descriptor);return m!==0?m:h.index-f.index}).map(h=>h.descriptor)})},pick(c){const h=[],f=new Set;for(const m of c){if(f.has(m))throw new Error(`Theme collection pick already includes theme "${m}"`);f.add(m);const b=s.get(m);if(b==null)throw new Error(`Theme collection does not contain theme "${m}"`);h.push(b)}return St({themes:h})},registerInto(c){for(const h of n)c.registerThemeIfAbsent(h.name,h.load)}}}function kc(e){return vc(e)?[e]:e}function vc(e){return Ho(e)||wc(e)}function wc(e){return typeof e.name=="string"&&typeof e.load=="function"}function Ho(e){return typeof e.getThemes=="function"}function Ko(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var Sc=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Cc=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},Ac=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function Ic(){const e=new Map,t=new Map,r=new Map;let n=0;function i(_,y){if(e.has(_))throw new Sc(_);e.set(_,y)}function o(_,y){return e.has(_)?!1:(e.set(_,y),!0)}function s(_){return e.has(_)}function a(_){const y=t.get(_);if(y!==void 0)return Promise.resolve(y);const k=r.get(_);if(k!==void 0)return k;const S=e.get(_);if(S===void 0)return Promise.reject(new Cc(_));const C=n,A=S().then(I=>{const P=Ko(I);return C===n&&t.set(_,P),r.get(_)===A&&r.delete(_),P}).catch(I=>{throw r.get(_)===A&&r.delete(_),I});return r.set(_,A),A}function l(_){return Promise.all(_.map(y=>a(y)))}function u(_,y){t.set(_,y)}function d(_){for(const[y,k]of _)u(y,k)}function c(_){return t.get(_)}function h(_){const y=[];for(const k of _){const S=t.get(k);if(S===void 0)throw new Ac(k);y.push(S)}return y}function f(_){return t.has(_)}function m(_){for(const y of _)if(!t.has(y))return!1;return!0}function b(_){const y=t.get(_);return y!==void 0?y:a(_)}function v(){n++,t.clear(),r.clear()}return{clearResolvedThemes:v,getResolvedOrResolveTheme:b,getResolvedTheme:c,getResolvedThemes:h,hasRegisteredTheme:s,hasResolvedTheme:f,hasResolvedThemes:m,registerTheme:i,registerThemeIfAbsent:o,resolveTheme:a,resolveThemes:l,seedResolvedTheme:u,seedResolvedThemes:d}}const le=Ic();function Sn(e,t){e=Array.isArray(e)?e:[e];for(let r of e){let n;if(typeof r=="string"){if(n=le.getResolvedTheme(r),n==null)throw new Error(`loadResolvedThemes: ${r} is not resolved, you must resolve it before calling loadResolvedThemes`)}else n=r,r=r.name,le.getResolvedTheme(r)==null&&le.seedResolvedTheme(r,n);wn.has(r)||(wn.add(r),t.loadThemeSync(n))}}function yi(e,t){e=Array.isArray(e)?e:[e];for(const r of e){if(vn.has(r.name))continue;let n=We.get(r.name);n==null&&(n=r,We.set(r.name,n));const i=n.data.find(o=>o.name===n.name||o.aliases?.includes(n.name)===!0);if(i==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);t.loadLanguageSync(n.data);try{t.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${i.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}vn.add(n.name)}}function Qo(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}var Cn=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,Rc=Object.getOwnPropertyNames,Lc=Object.prototype.hasOwnProperty,Pc=(e,t)=>{let r={};for(var n in e)Cn(r,n,{get:e[n],enumerable:!0});return Cn(r,Symbol.toStringTag,{value:"Module"}),r},Oc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Rc(t),o=0,s=i.length,a;o<s;o++)a=i[o],!Lc.call(e,a)&&a!==r&&Cn(e,a,{get:(l=>t[l]).bind(null,a),enumerable:!(n=Tc(t,a))||n.enumerable});return e},xc=(e,t,r)=>(Oc(e,t,"default"),r);const Xo=[{id:"abap",name:"ABAP",import:(()=>p(()=>import("./BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:(()=>p(()=>import("./B3316cI-.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>p(()=>import("./bCR0ucgS.js"),[],import.meta.url))},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:(()=>p(()=>import("./CsyLZFj1.js"),[],import.meta.url))},{id:"ahk2",name:"AutoHotkey2",import:(()=>p(()=>import("./8Zs4aa1G.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>p(()=>import("./Du_CL2nr.js").then(e=>e.a),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>p(()=>import("./C3jOxTNK.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>p(()=>import("./Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>p(()=>import("./DhZFqWV2.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>p(()=>import("./Cb_wDuVX.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>p(()=>import("./Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>p(()=>import("./BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>p(()=>import("./CSVQ5wI8.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>p(()=>import("./D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>p(()=>import("./BUtzH8cE.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>p(()=>import("./DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>p(()=>import("./BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:(()=>p(()=>import("./CickPsom.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>p(()=>import("./k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>p(()=>import("./uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>p(()=>import("./CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>p(()=>import("./Bmn6On1c.js"),[],import.meta.url))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>p(()=>import("./Bx8U0n9b.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>p(()=>import("./CV-HBevZ.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>p(()=>import("./DohQb4zL.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>p(()=>import("./BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>p(()=>import("./Dp5svz6Z.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>p(()=>import("./Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>p(()=>import("./CO1LY3CK.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:(()=>p(()=>import("./Ci46zaMS.js"),__vite__mapDeps([21,22]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>p(()=>import("./Dn5IMItf.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>p(()=>import("./P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>p(()=>import("./D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>p(()=>import("./N5GveWjx.js"),__vite__mapDeps([23,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>p(()=>import("./Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>p(()=>import("./DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>p(()=>import("./CxbxFI8M.js"),__vite__mapDeps([24,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>p(()=>import("./Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Rocq",import:(()=>p(()=>import("./C7JzOVbR.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>p(()=>import("./EtwkZMvg.js"),__vite__mapDeps([25,26,27,22]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>p(()=>import("./DMkUaiYH.js"),__vite__mapDeps([28,1,2,3,16,22,29]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>p(()=>import("./DSvCPggb.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>p(()=>import("./CLj8gQPS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>p(()=>import("./fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>p(()=>import("./D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>p(()=>import("./COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>p(()=>import("./85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>p(()=>import("./bE4Kk8sk.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>p(()=>import("./CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>p(()=>import("./BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>p(()=>import("./D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>p(()=>import("./BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>p(()=>import("./Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>p(()=>import("./BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>p(()=>import("./BziH_PKc.js"),__vite__mapDeps([30,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>p(()=>import("./B-0XRHxj.js"),__vite__mapDeps([31,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>p(()=>import("./Ci3HlJdq.js"),__vite__mapDeps([32,27,22]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>p(()=>import("./C_m_b--Z.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>p(()=>import("./mWv_UL20.js"),__vite__mapDeps([33,1,2,3,34,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>p(()=>import("./CuPHTKiy.js"),__vite__mapDeps([40,41]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>p(()=>import("./BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>p(()=>import("./BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>p(()=>import("./C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>p(()=>import("./B7c-h3xW.js"),__vite__mapDeps([42,43]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>p(()=>import("./BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>p(()=>import("./BTifaqeh.js"),__vite__mapDeps([44,41]),import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>p(()=>import("./DUKdbdZx.js"),__vite__mapDeps([45,46,47]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>p(()=>import("./DqcFQ5yU.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>p(()=>import("./DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>p(()=>import("./D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>p(()=>import("./DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>p(()=>import("./CxGSJlkm.js"),__vite__mapDeps([48,49]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>p(()=>import("./CSXwinHm.js"),__vite__mapDeps([50,29]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>p(()=>import("./BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>p(()=>import("./DZ9PSxVF.js"),__vite__mapDeps([51,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>p(()=>import("./CDBrVQLm.js"),__vite__mapDeps([52,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>p(()=>import("./DZxFcAj9.js"),__vite__mapDeps([27,22]),import.meta.url))},{id:"gn",name:"GN",import:(()=>p(()=>import("./n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>p(()=>import("./DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>p(()=>import("./C27-OAKa.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>p(()=>import("./C9oPPf7i.js"),__vite__mapDeps([36,2,11,37,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>p(()=>import("./gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>p(()=>import("./BL3tgEu7.js"),__vite__mapDeps([53,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>p(()=>import("./D2j5LXpq.js"),__vite__mapDeps([35,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>p(()=>import("./CcsQSqEB.js"),__vite__mapDeps([54,1,2,3,39]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>p(()=>import("./Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>p(()=>import("./CfZj7gIn.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>p(()=>import("./BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>p(()=>import("./D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>p(()=>import("./D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>p(()=>import("./DSSpBswy.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>p(()=>import("./C9MReZ1T.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>p(()=>import("./DaZJ10kq.js"),__vite__mapDeps([55,29,9,7,8,36,2,11,37,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>p(()=>import("./CVF7vp9Z.js"),__vite__mapDeps([56,36,2,11,37,13,7,8,57]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>p(()=>import("./CaCNOrBN.js"),__vite__mapDeps([58,59]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>p(()=>import("./DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>p(()=>import("./DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>p(()=>import("./BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>p(()=>import("./CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>p(()=>import("./wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>p(()=>import("./Cogva5lR.js"),__vite__mapDeps([60,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>p(()=>import("./Br6cN0cg.js"),__vite__mapDeps([61,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>p(()=>import("./Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>p(()=>import("./C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>p(()=>import("./Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>p(()=>import("./DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>p(()=>import("./DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>p(()=>import("./C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>p(()=>import("./g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>p(()=>import("./C4liqeOB.js"),__vite__mapDeps([62,25,26,27,22,20,2,63,16]),import.meta.url))},{id:"just",name:"Just",aliases:["justfile"],import:(()=>p(()=>import("./GWc9VfWm.js"),__vite__mapDeps([64,29,2,11,65,1,3,7,8,16,20,34,35,36,37,13,25,26,27,22,38,39]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>p(()=>import("./DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>p(()=>import("./BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>p(()=>import("./wEQ09or8.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>p(()=>import("./CBp1Oudt.js"),__vite__mapDeps([66,67,63]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>p(()=>import("./BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>p(()=>import("./B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>p(()=>import("./DcWK9jms.js"),__vite__mapDeps([68,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>p(()=>import("./BZoOZj88.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>p(()=>import("./2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>p(()=>import("./BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>p(()=>import("./CnsnAmq5.js"),__vite__mapDeps([38,22]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>p(()=>import("./BnpPk5vE.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>p(()=>import("./CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>p(()=>import("./Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>p(()=>import("./CBaQQc7g.js"),__vite__mapDeps([69,3,70,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>p(()=>import("./D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>p(()=>import("./DIaYF8wn.js"),__vite__mapDeps([71,41,39,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>p(()=>import("./Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>p(()=>import("./CQcHuHx7.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>p(()=>import("./CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>p(()=>import("./DJz3ZmWd.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>p(()=>import("./CHtswR0a.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>p(()=>import("./el3G9tDJ.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>p(()=>import("./DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>p(()=>import("./BcllPdc-.js"),__vite__mapDeps([72,73]),import.meta.url))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>p(()=>import("./vE_lwT2v.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>p(()=>import("./fbvUeNLU.js"),__vite__mapDeps([74,38,22]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>p(()=>import("./DloUtz8x.js"),__vite__mapDeps([75,22,1,2,3,7,8,27,41]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>p(()=>import("./CwoSXNpI.js"),[],import.meta.url))},{id:"nsis",name:"NSIS",import:(()=>p(()=>import("./BlV79W_Q.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>p(()=>import("./D3jzshHO.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>p(()=>import("./DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>p(()=>import("./CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>p(()=>import("./C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>p(()=>import("./BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>p(()=>import("./C4EeE6gA.js"),[],import.meta.url))},{id:"org",name:"Org Markup",import:(()=>p(()=>import("./BK370A1a.js"),__vite__mapDeps([76,2,11,13,8,20,26,3,38,22,77,78,65,1,7,16,63,34,35,36,37,25,27,29,39,79,9,80,81,24,82,49,83,84,85,70,5,86,87,88,89,90,75,41,31,40,91,92,93,48,50,66,67]),import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>p(()=>import("./D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>p(()=>import("./aqMIE0ez.js"),__vite__mapDeps([65,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>p(()=>import("./CLbBpDAT.js"),__vite__mapDeps([79,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>p(()=>import("./u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>p(()=>import("./ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>p(()=>import("./BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>p(()=>import("./C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>p(()=>import("./CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>p(()=>import("./CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:(()=>p(()=>import("./BmBUJMz7.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>p(()=>import("./Vru482bI.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>p(()=>import("./CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>p(()=>import("./C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>p(()=>import("./Dc-5oQ3p.js"),__vite__mapDeps([94,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>p(()=>import("./BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>p(()=>import("./CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>p(()=>import("./B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>p(()=>import("./BVQ-GDCI.js"),__vite__mapDeps([95,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>p(()=>import("./C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>p(()=>import("./IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>p(()=>import("./Cf5RLm7j.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>p(()=>import("./BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>p(()=>import("./DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>p(()=>import("./Cgqqbwmm.js"),__vite__mapDeps([96,1,2,3,89]),import.meta.url))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:(()=>p(()=>import("./CpoqiR4B.js"),[],import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>p(()=>import("./C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>p(()=>import("./CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>p(()=>import("./C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>p(()=>import("./BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>p(()=>import("./D8l8udqQ.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>p(()=>import("./BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>p(()=>import("./DfY5xF4S.js"),__vite__mapDeps([97,15,1,2,3,25,26,27,22,20,29,39,98,34,35,7,8,16,36,11,37,13,38]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>p(()=>import("./q1caIYAk.js"),__vite__mapDeps([34,1,2,3,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>p(()=>import("./B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>p(()=>import("./DhaYTIfE.js"),__vite__mapDeps([99,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>p(()=>import("./Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>p(()=>import("./CqE71os6.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>p(()=>import("./C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>p(()=>import("./DT3CNIhV.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>p(()=>import("./DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>p(()=>import("./BqTXFGrv.js"),__vite__mapDeps([100,101]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>p(()=>import("./Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>p(()=>import("./Cq5zzVJU.js"),__vite__mapDeps([102,29]),import.meta.url))},{id:"smalltalk",name:"GNU Smalltalk",import:(()=>p(()=>import("./BOQMe2GC.js"),[],import.meta.url))},{id:"smithy",name:"Smithy",import:(()=>p(()=>import("./cds9vsN8.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>p(()=>import("./DijEV5ha.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>p(()=>import("./OmYdGuYq.js"),__vite__mapDeps([103,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>p(()=>import("./BRZ36xJF.js"),__vite__mapDeps([104,105]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>p(()=>import("./BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>p(()=>import("./CRqJ_cUM.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>p(()=>import("./_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>p(()=>import("./HgPamjhh.js"),__vite__mapDeps([106,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>p(()=>import("./BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>p(()=>import("./CfYcf3Sz.js"),__vite__mapDeps([107,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>p(()=>import("./DhaVEd23.js"),__vite__mapDeps([108,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>p(()=>import("./C2oV4EkX.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>p(()=>import("./0hqHdDBg.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>p(()=>import("./4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>p(()=>import("./CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>p(()=>import("./QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>p(()=>import("./dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>p(()=>import("./BVkGXMyj.js"),__vite__mapDeps([109,84,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>p(()=>import("./BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>p(()=>import("./CRHig4t4.js"),__vite__mapDeps([67,63]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>p(()=>import("./vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>p(()=>import("./BX_0um4d.js"),__vite__mapDeps([110,11,3,2,27,22,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>p(()=>import("./B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>p(()=>import("./COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>p(()=>import("./BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>p(()=>import("./DF2lZ9u9.js"),__vite__mapDeps([111,3,2,5,79,1,7,8,16,9,20,34,35,36,11,37,13,25,26,27,22,29,38,39]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>p(()=>import("./BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>p(()=>import("./CAFt9gP4.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>p(()=>import("./BdrM2Vnw.js"),__vite__mapDeps([112,113,114,22,81,24,2,25,26,27,3,89,90,49,83,31,1,40,41,44,48,50,29,84,85,54,39,77,8,115,9,62,20,63,16,66,67,70,116,38,78,82,65,7,86,79,117,94,34,35,36,11,37,13,5,118,93,87,88,111,119,120,80]),import.meta.url))},{id:"v",name:"V",import:(()=>p(()=>import("./BGw2Nkan.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>p(()=>import("./CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",import:(()=>p(()=>import("./Cu-pLBUe.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>p(()=>import("./nZwndyjY.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>p(()=>import("./CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>p(()=>import("./CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>p(()=>import("./BMsVS0qT.js"),__vite__mapDeps([121,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>p(()=>import("./DqQDbK_p.js"),__vite__mapDeps([122,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>p(()=>import("./B5q1GTce.js"),__vite__mapDeps([123,3,5,70,124,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>p(()=>import("./CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>p(()=>import("./MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>p(()=>import("./BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>p(()=>import("./Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>p(()=>import("./BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>p(()=>import("./5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>p(()=>import("./lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>p(()=>import("./BGJmEYvX.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>p(()=>import("./BaaWV1KV.js"),__vite__mapDeps([93,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>p(()=>import("./Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>p(()=>import("./DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>p(()=>import("./VOosw3JB.js"),[],import.meta.url))}],Dc=Object.fromEntries(Xo.map(e=>[e.id,e.import])),Nc=Object.fromEntries(Xo.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),An={...Dc,...Nc},Vc=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>p(()=>import("./C4gqWexZ.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>p(()=>import("./D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>p(()=>import("./DYE7WIF3.js"),[],import.meta.url))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>p(()=>import("./BA47KaF1.js"),[],import.meta.url))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>p(()=>import("./32ctXXKs.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>p(()=>import("./CZL1YF0i.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>p(()=>import("./DH-8KZSZ.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>p(()=>import("./B7yYVSCf.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>p(()=>import("./Ct7hS0mc.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>p(()=>import("./C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>p(()=>import("./BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>p(()=>import("./BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>p(()=>import("./BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>p(()=>import("./C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>p(()=>import("./DHJKELXO.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>p(()=>import("./Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>p(()=>import("./DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>p(()=>import("./E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>p(()=>import("./DAi9KRSo.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>p(()=>import("./D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>p(()=>import("./BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>p(()=>import("./CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>p(()=>import("./GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>p(()=>import("./CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>p(()=>import("./CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>p(()=>import("./DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>p(()=>import("./hJgmCMqR.js"),[],import.meta.url))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>p(()=>import("./BUw7H-hv.js"),[],import.meta.url))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>p(()=>import("./CUuTKBJd.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>p(()=>import("./DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>p(()=>import("./BuwD2xS4.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>p(()=>import("./C3DzagqV.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>p(()=>import("./DFGoQZhC.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>p(()=>import("./DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>p(()=>import("./B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>p(()=>import("./D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>p(()=>import("./BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>p(()=>import("./B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>p(()=>import("./CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>p(()=>import("./Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>p(()=>import("./CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>p(()=>import("./CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>p(()=>import("./BRVnQi9A.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>p(()=>import("./C39BiMTA.js"),[],import.meta.url))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>p(()=>import("./CMTm3GFP.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>p(()=>import("./Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>p(()=>import("./DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>p(()=>import("./C3Wv6jpd.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>p(()=>import("./3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>p(()=>import("./CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>p(()=>import("./hvxz__6c.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>p(()=>import("./5qJOZa0Y.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>p(()=>import("./zx0QlTCp.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>p(()=>import("./C9pEdX9L.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>p(()=>import("./BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>p(()=>import("./DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>p(()=>import("./Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>p(()=>import("./CpvCGNkr.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>p(()=>import("./Dlz6yCKv.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>p(()=>import("./CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>p(()=>import("./hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>p(()=>import("./DRje8inN.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>p(()=>import("./Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>p(()=>import("./D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>p(()=>import("./CVO1_9PV.js"),[],import.meta.url))}],Mc=Object.fromEntries(Vc.map(e=>[e.id,e.import]));var Jn=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function $c(){return 2147483648}function Bc(){return typeof performance<"u"?performance.now():Date.now()}const Fc=(e,t)=>e+(t-e%t)%t;async function Gc(e){let t,r;const n={};function i(f){r=f,n.HEAPU8=new Uint8Array(f),n.HEAPU32=new Uint32Array(f)}function o(f,m,b){n.HEAPU8.copyWithin(f,m,m+b)}function s(f){try{return t.grow(f-r.byteLength+65535>>>16),i(t.buffer),1}catch{}}function a(f){const m=n.HEAPU8.length;f=f>>>0;const b=$c();if(f>b)return!1;for(let v=1;v<=4;v*=2){let _=m*(1+.2/v);_=Math.min(_,f+100663296);const y=Math.min(b,Fc(Math.max(f,_),65536));if(s(y))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(f,m,b=1024){const v=m+b;let _=m;for(;f[_]&&!(_>=v);)++_;if(_-m>16&&f.buffer&&l)return l.decode(f.subarray(m,_));let y="";for(;m<_;){let k=f[m++];if(!(k&128)){y+=String.fromCharCode(k);continue}const S=f[m++]&63;if((k&224)===192){y+=String.fromCharCode((k&31)<<6|S);continue}const C=f[m++]&63;if((k&240)===224?k=(k&15)<<12|S<<6|C:k=(k&7)<<18|S<<12|C<<6|f[m++]&63,k<65536)y+=String.fromCharCode(k);else{const A=k-65536;y+=String.fromCharCode(55296|A>>10,56320|A&1023)}}return y}function d(f,m){return f?u(n.HEAPU8,f,m):""}const c={emscripten_get_now:Bc,emscripten_memcpy_big:o,emscripten_resize_heap:a,fd_write:()=>0};async function h(){const m=await e({env:c,wasi_snapshot_preview1:c});t=m.memory,i(t.buffer),Object.assign(n,m),n.UTF8ToString=d}return await h(),n}var jc=Object.defineProperty,Uc=(e,t,r)=>t in e?jc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,G=(e,t,r)=>Uc(e,typeof t!="symbol"?t+"":t,r);let q=null;function qc(e){throw new Jn(e.UTF8ToString(e.getLastOnigError()))}class Or{constructor(t){G(this,"utf16Length"),G(this,"utf8Length"),G(this,"utf16Value"),G(this,"utf8Value"),G(this,"utf16OffsetToUtf8"),G(this,"utf8OffsetToUtf16");const r=t.length,n=Or._utf8ByteLength(t),i=n!==r,o=i?new Uint32Array(r+1):null;i&&(o[r]=n);const s=i?new Uint32Array(n+1):null;i&&(s[n]=r);const a=new Uint8Array(n);let l=0;for(let u=0;u<r;u++){const d=t.charCodeAt(u);let c=d,h=!1;if(d>=55296&&d<=56319&&u+1<r){const f=t.charCodeAt(u+1);f>=56320&&f<=57343&&(c=(d-55296<<10)+65536|f-56320,h=!0)}i&&(o[u]=l,h&&(o[u+1]=l),c<=127?s[l+0]=u:c<=2047?(s[l+0]=u,s[l+1]=u):c<=65535?(s[l+0]=u,s[l+1]=u,s[l+2]=u):(s[l+0]=u,s[l+1]=u,s[l+2]=u,s[l+3]=u)),c<=127?a[l++]=c:c<=2047?(a[l++]=192|(c&1984)>>>6,a[l++]=128|(c&63)>>>0):c<=65535?(a[l++]=224|(c&61440)>>>12,a[l++]=128|(c&4032)>>>6,a[l++]=128|(c&63)>>>0):(a[l++]=240|(c&1835008)>>>18,a[l++]=128|(c&258048)>>>12,a[l++]=128|(c&4032)>>>6,a[l++]=128|(c&63)>>>0),h&&u++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=t,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let r=0;for(let n=0,i=t.length;n<i;n++){const o=t.charCodeAt(n);let s=o,a=!1;if(o>=55296&&o<=56319&&n+1<i){const l=t.charCodeAt(n+1);l>=56320&&l<=57343&&(s=(o-55296<<10)+65536|l-56320,a=!0)}s<=127?r+=1:s<=2047?r+=2:s<=65535?r+=3:r+=4,a&&n++}return r}createString(t){const r=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,r),r}}const xr=class de{constructor(t){if(G(this,"id",++de.LAST_ID),G(this,"_onigBinding"),G(this,"content"),G(this,"utf16Length"),G(this,"utf8Length"),G(this,"utf16OffsetToUtf8"),G(this,"utf8OffsetToUtf16"),G(this,"ptr"),!q)throw new Jn("Must invoke loadWasm first.");this._onigBinding=q,this.content=t;const r=new Or(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!de._sharedPtrInUse?(de._sharedPtr||(de._sharedPtr=q.omalloc(1e4)),de._sharedPtrInUse=!0,q.HEAPU8.set(r.utf8Value,de._sharedPtr),this.ptr=de._sharedPtr):this.ptr=r.createString(q)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===de._sharedPtr?de._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};G(xr,"LAST_ID",0);G(xr,"_sharedPtr",0);G(xr,"_sharedPtrInUse",!1);let Jo=xr;class zc{constructor(t){if(G(this,"_onigBinding"),G(this,"_ptr"),!q)throw new Jn("Must invoke loadWasm first.");const r=[],n=[];for(let a=0,l=t.length;a<l;a++){const u=new Or(t[a]);r[a]=u.createString(q),n[a]=u.utf8Length}const i=q.omalloc(4*t.length);q.HEAPU32.set(r,i/4);const o=q.omalloc(4*t.length);q.HEAPU32.set(n,o/4);const s=q.createOnigScanner(i,o,t.length);for(let a=0,l=t.length;a<l;a++)q.ofree(r[a]);q.ofree(o),q.ofree(i),s===0&&qc(q),this._onigBinding=q,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,r,n){let i=0;if(typeof n=="number"&&(i=n),typeof t=="string"){t=new Jo(t);const o=this._findNextMatchSync(t,r,!1,i);return t.dispose(),o}return this._findNextMatchSync(t,r,!1,i)}_findNextMatchSync(t,r,n,i){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(r),i);if(s===0)return null;const a=o.HEAPU32;let l=s/4;const u=a[l++],d=a[l++],c=[];for(let h=0;h<d;h++){const f=t.convertUtf8OffsetToUtf16(a[l++]),m=t.convertUtf8OffsetToUtf16(a[l++]);c[h]={start:f,end:m,length:m-f}}return{index:u,captureIndices:c}}}function Wc(e){return typeof e.instantiator=="function"}function Hc(e){return typeof e.default=="function"}function Kc(e){return typeof e.data<"u"}function Qc(e){return typeof Response<"u"&&e instanceof Response}function Xc(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}let jt;function Zo(e){if(jt)return jt;async function t(){q=await Gc(async r=>{let n=e;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),Wc(n)?n=await n.instantiator(r):Hc(n)?n=await n.default(r):(Kc(n)&&(n=n.data),Qc(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await Jc(n)(r):n=await Zc(n)(r):Xc(n)?n=await Xr(n)(r):n instanceof WebAssembly.Module?n=await Xr(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await Xr(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return jt=t(),jt}function Xr(e){return t=>WebAssembly.instantiate(e,t)}function Jc(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Zc(e){return async t=>{const r=await e.arrayBuffer();return WebAssembly.instantiate(r,t)}}let Yo;function Yc(e){Yo=e}function ed(){return Yo}async function es(e){return e&&await Zo(e),{createScanner(t){return new zc(t.map(r=>typeof r=="string"?r:r.source))},createString(t){return new Jo(t)}}}const td=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:es,getDefaultWasmLoader:ed,loadWasm:Zo,setDefaultWasmLoader:Yc},Symbol.toStringTag,{value:"Module"}));var ts=Pc({});xc(ts,td);var N=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function rd(e){return Zn(e)}function Zn(e){return Array.isArray(e)?nd(e):e instanceof RegExp?e:typeof e=="object"?id(e):e}function nd(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=Zn(e[r]);return t}function id(e){let t={};for(let r in e)t[r]=Zn(e[r]);return t}function rs(e,...t){return t.forEach(r=>{for(let n in r)e[n]=r[n]}),e}function ns(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?ns(e.substring(0,e.length-1)):e.substr(~t+1)}var Jr=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ut=class{static hasCaptures(e){return e===null?!1:(Jr.lastIndex=0,Jr.test(e))}static replaceCaptures(e,t,r){return e.replace(Jr,(n,i,o,s)=>{let a=r[parseInt(i||o,10)];if(a){let l=t.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return n})}};function is(e,t){return e<t?-1:e>t?1:0}function os(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let i=0;i<r;i++){let o=is(e[i],t[i]);if(o!==0)return o}return 0}return r-n}function bi(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 ss(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var as=class{constructor(e){g(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},hr=class{constructor(e,t,r){g(this,"_cachedMatchRoot",new as(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(ad(e),t)}static createFromParsedTheme(e,t){return ud(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(i=>od(e.parent,i.parentScopes));return n?new ls(n.fontStyle,n.foreground,n.background):null}},Zr=class or{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(const n of r)t=new or(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new or(r,t[n]);return r}push(t){return new or(this,t)}getSegments(){let t=this;const r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push(n.scopeName),n=n.parent;return n===t?r.reverse():void 0}};function od(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let n=t[r],i=!1;if(n===">"){if(r===t.length-1)return!1;n=t[++r],i=!0}for(;e&&!sd(e.scopeName,n);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function sd(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var ls=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function ad(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let i=0,o=t.length;i<o;i++){let s=t[i];if(!s.settings)continue;let a;if(typeof s.scope=="string"){let c=s.scope;c=c.replace(/^[,]+/,""),c=c.replace(/[,]+$/,""),a=c.split(",")}else Array.isArray(s.scope)?a=s.scope:a=[""];let l=-1;if(typeof s.settings.fontStyle=="string"){l=0;let c=s.settings.fontStyle.split(" ");for(let h=0,f=c.length;h<f;h++)switch(c[h]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof s.settings.foreground=="string"&&bi(s.settings.foreground)&&(u=s.settings.foreground);let d=null;typeof s.settings.background=="string"&&bi(s.settings.background)&&(d=s.settings.background);for(let c=0,h=a.length;c<h;c++){let m=a[c].trim().split(" "),b=m[m.length-1],v=null;m.length>1&&(v=m.slice(0,m.length-1),v.reverse()),r[n++]=new ld(b,v,i,l,u,d)}}return r}var ld=class{constructor(e,t,r,n,i,o){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=i,this.background=o}},H=(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))(H||{});function ud(e,t){e.sort((l,u)=>{let d=is(l.scope,u.scope);return d!==0||(d=os(l.parentScopes,u.parentScopes),d!==0)?d:l.index-u.index});let r=0,n="#000000",i="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(r=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(i=l.background)}let o=new cd(t),s=new ls(r,o.getId(n),o.getId(i)),a=new pd(new In(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let d=e[l];a.insert(0,d.scope,d.parentScopes,d.fontStyle,o.getId(d.foreground),o.getId(d.background))}return new hr(o,s,a)}var cd=class{constructor(e){g(this,"_isFrozen");g(this,"_lastColorId");g(this,"_id2color");g(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;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 new 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)}},dd=Object.freeze([]),In=class us{constructor(t,r,n,i,o){g(this,"scopeDepth");g(this,"parentScopes");g(this,"fontStyle");g(this,"foreground");g(this,"background");this.scopeDepth=t,this.parentScopes=r||dd,this.fontStyle=n,this.foreground=i,this.background=o}clone(){return new us(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let n=0,i=t.length;n<i;n++)r[n]=t[n].clone();return r}acceptOverwrite(t,r,n,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},pd=class Tn{constructor(t,r=[],n={}){g(this,"_rulesWithParentScopes");this._mainRule=t,this._children=n,this._rulesWithParentScopes=r}static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let n=0,i=0;for(;t.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=t.parentScopes.length||i>=r.parentScopes.length);){const o=r.parentScopes[i].length-t.parentScopes[n].length;if(o!==0)return o;n++,i++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let n=t.indexOf("."),i,o;if(n===-1?(i=t,o=""):(i=t.substring(0,n),o=t.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Tn._cmpBySpecificity),r}insert(t,r,n,i,o,s){if(r===""){this._doInsertHere(t,n,i,o,s);return}let a=r.indexOf("."),l,u;a===-1?(l=r,u=""):(l=r.substring(0,a),u=r.substring(a+1));let d;this._children.hasOwnProperty(l)?d=this._children[l]:(d=new Tn(this._mainRule.clone(),In.cloneArr(this._rulesWithParentScopes)),this._children[l]=d),d.insert(t+1,u,n,i,o,s)}_doInsertHere(t,r,n,i,o){if(r===null){this._mainRule.acceptOverwrite(t,n,i,o);return}for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let l=this._rulesWithParentScopes[s];if(os(l.parentScopes,r)===0){l.acceptOverwrite(t,n,i,o);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new In(t,r,n,i,o))}},Ue=class te{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const r=te.getLanguageId(t),n=te.getTokenType(t),i=te.getFontStyle(t),o=te.getForeground(t),s=te.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:o,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,n,i,o,s,a){let l=te.getLanguageId(t),u=te.getTokenType(t),d=te.containsBalancedBrackets(t)?1:0,c=te.getFontStyle(t),h=te.getForeground(t),f=te.getBackground(t);return r!==0&&(l=r),n!==8&&(u=n),i!==null&&(d=i?1:0),o!==-1&&(c=o),s!==0&&(h=s),a!==0&&(f=a),(l<<0|u<<8|d<<10|c<<11|h<<15|f<<24)>>>0}};function fr(e,t){const r=[],n=hd(e);let i=n.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let u=s();if(r.push({matcher:u,priority:l}),i!==",")break;i=n.next()}return r;function o(){if(i==="-"){i=n.next();const l=o();return u=>!!l&&!l(u)}if(i==="("){i=n.next();const l=a();return i===")"&&(i=n.next()),l}if(Ei(i)){const l=[];do l.push(i),i=n.next();while(Ei(i));return u=>t(l,u)}return null}function s(){const l=[];let u=o();for(;u;)l.push(u),u=o();return d=>l.every(c=>c(d))}function a(){const l=[];let u=s();for(;u&&(l.push(u),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");u=s()}return d=>l.some(c=>c(d))}}function Ei(e){return!!e&&!!e.match(/[\w\.:]+/)}function hd(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;const n=r[0];return r=t.exec(e),n}}}function cs(e){typeof e.dispose=="function"&&e.dispose()}var Ct=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},fd=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},md=class{constructor(){g(this,"_references",[]);g(this,"_seenReferenceKeys",new Set);g(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},gd=class{constructor(e,t){g(this,"seenFullScopeRequests",new Set);g(this,"seenPartialScopeRequests",new Set);g(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ct(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new md;for(const r of e)_d(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof Ct){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function _d(e,t,r,n){const i=r.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=r.lookup(t);e instanceof Ct?sr({baseGrammar:o,selfGrammar:i},n):Rn(e.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const s=r.injections(e.scopeName);if(s)for(const a of s)n.add(new Ct(a))}function Rn(e,t,r){if(t.repository&&t.repository[e]){const n=t.repository[e];mr([n],t,r)}}function sr(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&mr(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&mr(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function mr(e,t,r){for(const n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?rs({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&mr(n.patterns,{...t,repository:i},r);const o=n.include;if(!o)continue;const s=ds(o);switch(s.kind){case 0:sr({...t,selfGrammar:t.baseGrammar},r);break;case 1:sr(t,r);break;case 2:Rn(s.ruleName,{...t,repository:i},r);break;case 3:case 4:const a=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const l={baseGrammar:t.baseGrammar,selfGrammar:a,repository:i};s.kind===4?Rn(s.ruleName,l,r):sr(l,r)}else s.kind===4?r.add(new fd(s.scopeName,s.ruleName)):r.add(new Ct(s.scopeName));break}}}var yd=class{constructor(){g(this,"kind",0)}},bd=class{constructor(){g(this,"kind",1)}},Ed=class{constructor(e){g(this,"kind",2);this.ruleName=e}},kd=class{constructor(e){g(this,"kind",3);this.scopeName=e}},vd=class{constructor(e,t){g(this,"kind",4);this.scopeName=e,this.ruleName=t}};function ds(e){if(e==="$base")return new yd;if(e==="$self")return new bd;const t=e.indexOf("#");if(t===-1)return new kd(e);if(t===0)return new Ed(e.substring(1));{const r=e.substring(0,t),n=e.substring(t+1);return new vd(r,n)}}var wd=/\\(\d+)/,ki=/\\(\d+)/g,Sd=-1,ps=-2;var Vt=class{constructor(e,t,r,n){g(this,"$location");g(this,"id");g(this,"_nameIsCapturing");g(this,"_name");g(this,"_contentNameIsCapturing");g(this,"_contentName");this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=Ut.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Ut.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${ns(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:Ut.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ut.replaceCaptures(this._contentName,e,t)}},Cd=class extends Vt{constructor(t,r,n,i,o){super(t,r,n,i);g(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,r){throw new Error("Not supported!")}compile(t,r){throw new Error("Not supported!")}compileAG(t,r,n,i){throw new Error("Not supported!")}},Ad=class extends Vt{constructor(t,r,n,i,o){super(t,r,n,null);g(this,"_match");g(this,"captures");g(this,"_cachedCompiledPatterns");this._match=new At(i,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,r){r.push(this._match)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new It,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vi=class extends Vt{constructor(t,r,n,i,o){super(t,r,n,i);g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,r){for(const n of this.patterns)t.getRule(n).collectPatterns(t,r)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new It,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ln=class extends Vt{constructor(t,r,n,i,o,s,a,l,u,d){super(t,r,n,i);g(this,"_begin");g(this,"beginCaptures");g(this,"_end");g(this,"endHasBackReferences");g(this,"endCaptures");g(this,"applyEndPatternLast");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this._begin=new At(o,this.id),this.beginCaptures=s,this._end=new At(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=u||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,r){return this._end.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t,r).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t,r).compileAG(t,n,i)}_getCachedCompiledPatterns(t,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new It;for(const n of this.patterns)t.getRule(n).collectPatterns(t,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,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},gr=class extends Vt{constructor(t,r,n,i,o,s,a,l,u){super(t,r,n,i);g(this,"_begin");g(this,"beginCaptures");g(this,"whileCaptures");g(this,"_while");g(this,"whileHasBackReferences");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");g(this,"_cachedCompiledWhilePatterns");this._begin=new At(o,this.id),this.beginCaptures=s,this.whileCaptures=l,this._while=new At(a,ps),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,r){return this._while.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new It;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,r){return this._getCachedCompiledWhilePatterns(t,r).compile(t)}compileWhileAG(t,r,n,i){return this._getCachedCompiledWhilePatterns(t,r).compileAG(t,n,i)}_getCachedCompiledWhilePatterns(t,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new It,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||""),this._cachedCompiledWhilePatterns}},hs=class W{static createCaptureRule(t,r,n,i,o){return t.registerRule(s=>new Cd(r,s,n,i,o))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(i=>{if(t.id=i,t.match)return new Ad(t.$vscodeTextmateLocation,t.id,t.name,t.match,W._compileCaptures(t.captures,r,n));if(typeof t.begin>"u"){t.repository&&(n=rs({},n,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new vi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,W._compilePatterns(o,r,n))}return t.while?new gr(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,W._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,W._compileCaptures(t.whileCaptures||t.captures,r,n),W._compilePatterns(t.patterns,r,n)):new Ln(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,W._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,W._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,W._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let i=[];if(t){let o=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);a>o&&(o=a)}for(let s=0;s<=o;s++)i[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);let l=0;t[s].patterns&&(l=W.getCompiledRuleId(t[s],r,n)),i[a]=W.createCaptureRule(r,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,l)}}return i}static _compilePatterns(t,r,n){let i=[];if(t)for(let o=0,s=t.length;o<s;o++){const a=t[o];let l=-1;if(a.include){const u=ds(a.include);switch(u.kind){case 0:case 1:l=W.getCompiledRuleId(n[a.include],r,n);break;case 2:let d=n[u.ruleName];d&&(l=W.getCompiledRuleId(d,r,n));break;case 3:case 4:const c=u.scopeName,h=u.kind===4?u.ruleName:null,f=r.getExternalGrammar(c,n);if(f)if(h){let m=f.repository[h];m&&(l=W.getCompiledRuleId(m,r,f.repository))}else l=W.getCompiledRuleId(f.repository.$self,r,f.repository);break}}else l=W.getCompiledRuleId(a,r,n);if(l!==-1){const u=r.getRule(l);let d=!1;if((u instanceof vi||u instanceof Ln||u instanceof gr)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},At=class fs{constructor(t,r){g(this,"source");g(this,"ruleId");g(this,"hasAnchor");g(this,"hasBackReferences");g(this,"_anchorCache");if(t&&typeof t=="string"){const n=t.length;let i=0,o=[],s=!1;for(let a=0;a<n;a++)if(t.charAt(a)==="\\"&&a+1<n){const u=t.charAt(a+1);u==="z"?(o.push(t.substring(i,a)),o.push("$(?!\\n)(?<!\\n)"),i=a+2):(u==="A"||u==="G")&&(s=!0),a++}this.hasAnchor=s,i===0?this.source=t:(o.push(t.substring(i,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=wd.test(this.source):this.hasBackReferences=!1}clone(){return new fs(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>t.substring(i.start,i.end));return ki.lastIndex=0,this.source.replace(ki,(i,o)=>ss(n[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],n=[],i=[],o,s,a,l;for(o=0,s=this.source.length;o<s;o++)a=this.source.charAt(o),t[o]=a,r[o]=a,n[o]=a,i[o]=a,a==="\\"&&o+1<s&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="",r[o+1]="",n[o+1]="A",i[o+1]="A"):l==="G"?(t[o+1]="",r[o+1]="G",n[o+1]="",i[o+1]="G"):(t[o+1]=l,r[o+1]=l,n[o+1]=l,i[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},It=class{constructor(){g(this,"_items");g(this,"_hasAnchors");g(this,"_cached");g(this,"_anchorCache");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(),this._cached=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(r=>r.source);this._cached=new wi(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let n=this._items.map(i=>i.resolveAnchors(t,r));return new wi(e,n,this._items.map(i=>i.ruleId))}},wi=class{constructor(e,t,r){g(this,"scanner");this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,r=this.rules.length;t<r;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=["/app/immutable/chunks/Du_CL2nr.js","/app/immutable/chunks/DSSpBswy.js","/app/immutable/chunks/wDzz0qaB.js","/app/immutable/chunks/CLj8gQPS.js","/app/immutable/chunks/C3jOxTNK.js","/app/immutable/chunks/DT3CNIhV.js","/app/immutable/chunks/Cb_wDuVX.js","/app/immutable/chunks/BGJmEYvX.js","/app/immutable/chunks/CylS5w8V.js","/app/immutable/chunks/Cp-IABpG.js","/app/immutable/chunks/BUtzH8cE.js","/app/immutable/chunks/BPQ3VLAy.js","/app/immutable/chunks/CXtECtnM.js","/app/immutable/chunks/COt5Ahok.js","/app/immutable/chunks/CV-HBevZ.js","/app/immutable/chunks/C9MReZ1T.js","/app/immutable/chunks/CRqJ_cUM.js","/app/immutable/chunks/DohQb4zL.js","/app/immutable/chunks/DVxCFoDh.js","/app/immutable/chunks/CO1LY3CK.js","/app/immutable/chunks/B6aJPvgy.js","/app/immutable/chunks/Ci46zaMS.js","/app/immutable/chunks/BIGW1oBm.js","/app/immutable/chunks/N5GveWjx.js","/app/immutable/chunks/CxbxFI8M.js","/app/immutable/chunks/EtwkZMvg.js","/app/immutable/chunks/CDVJQ6XC.js","/app/immutable/chunks/DZxFcAj9.js","/app/immutable/chunks/DMkUaiYH.js","/app/immutable/chunks/Yzrsuije.js","/app/immutable/chunks/BziH_PKc.js","/app/immutable/chunks/B-0XRHxj.js","/app/immutable/chunks/Ci3HlJdq.js","/app/immutable/chunks/mWv_UL20.js","/app/immutable/chunks/q1caIYAk.js","/app/immutable/chunks/D2j5LXpq.js","/app/immutable/chunks/C9oPPf7i.js","/app/immutable/chunks/g9-lgVsj.js","/app/immutable/chunks/CnsnAmq5.js","/app/immutable/chunks/Buea-lGh.js","/app/immutable/chunks/CuPHTKiy.js","/app/immutable/chunks/Cvjx9yec.js","/app/immutable/chunks/B7c-h3xW.js","/app/immutable/chunks/BxgE0vQu.js","/app/immutable/chunks/BTifaqeh.js","/app/immutable/chunks/DUKdbdZx.js","/app/immutable/chunks/DkwncUOv.js","/app/immutable/chunks/DqcFQ5yU.js","/app/immutable/chunks/CxGSJlkm.js","/app/immutable/chunks/D97Zzqfu.js","/app/immutable/chunks/CSXwinHm.js","/app/immutable/chunks/DZ9PSxVF.js","/app/immutable/chunks/CDBrVQLm.js","/app/immutable/chunks/BL3tgEu7.js","/app/immutable/chunks/CcsQSqEB.js","/app/immutable/chunks/DaZJ10kq.js","/app/immutable/chunks/CVF7vp9Z.js","/app/immutable/chunks/fuZLfV_i.js","/app/immutable/chunks/CaCNOrBN.js","/app/immutable/chunks/CfZj7gIn.js","/app/immutable/chunks/Cogva5lR.js","/app/immutable/chunks/Br6cN0cg.js","/app/immutable/chunks/C4liqeOB.js","/app/immutable/chunks/Cf5RLm7j.js","/app/immutable/chunks/GWc9VfWm.js","/app/immutable/chunks/aqMIE0ez.js","/app/immutable/chunks/CBp1Oudt.js","/app/immutable/chunks/CRHig4t4.js","/app/immutable/chunks/DcWK9jms.js","/app/immutable/chunks/CBaQQc7g.js","/app/immutable/chunks/B1dDrJ26.js","/app/immutable/chunks/DIaYF8wn.js","/app/immutable/chunks/BcllPdc-.js","/app/immutable/chunks/vE_lwT2v.js","/app/immutable/chunks/fbvUeNLU.js","/app/immutable/chunks/DloUtz8x.js","/app/immutable/chunks/BK370A1a.js","/app/immutable/chunks/BEwlwnbL.js","/app/immutable/chunks/CHLpvVh8.js","/app/immutable/chunks/CLbBpDAT.js","/app/immutable/chunks/Cu-pLBUe.js","/app/immutable/chunks/P80f7IUj.js","/app/immutable/chunks/DXmwc3jG.js","/app/immutable/chunks/BcOcwvcX.js","/app/immutable/chunks/C27-OAKa.js","/app/immutable/chunks/gcz8RCvz.js","/app/immutable/chunks/DXvB9xmW.js","/app/immutable/chunks/B1yitclQ.js","/app/immutable/chunks/CqE71os6.js","/app/immutable/chunks/DSvCPggb.js","/app/immutable/chunks/bE4Kk8sk.js","/app/immutable/chunks/C0hk2d4L.js","/app/immutable/chunks/VOosw3JB.js","/app/immutable/chunks/BaaWV1KV.js","/app/immutable/chunks/Dc-5oQ3p.js","/app/immutable/chunks/BVQ-GDCI.js","/app/immutable/chunks/Cgqqbwmm.js","/app/immutable/chunks/DfY5xF4S.js","/app/immutable/chunks/D1j8_8rp.js","/app/immutable/chunks/DhaYTIfE.js","/app/immutable/chunks/BqTXFGrv.js","/app/immutable/chunks/D3lLCCz7.js","/app/immutable/chunks/Cq5zzVJU.js","/app/immutable/chunks/OmYdGuYq.js","/app/immutable/chunks/BRZ36xJF.js","/app/immutable/chunks/BsS91CYL.js","/app/immutable/chunks/HgPamjhh.js","/app/immutable/chunks/CfYcf3Sz.js","/app/immutable/chunks/DhaVEd23.js","/app/immutable/chunks/BVkGXMyj.js","/app/immutable/chunks/BX_0um4d.js","/app/immutable/chunks/DF2lZ9u9.js","/app/immutable/chunks/BdrM2Vnw.js","/app/immutable/chunks/CickPsom.js","/app/immutable/chunks/CHM0blh-.js","/app/immutable/chunks/Des-eS-w.js","/app/immutable/chunks/2UxHyX5q.js","/app/immutable/chunks/BmBUJMz7.js","/app/immutable/chunks/C2oV4EkX.js","/app/immutable/chunks/nZwndyjY.js","/app/immutable/chunks/0hqHdDBg.js","/app/immutable/chunks/BMsVS0qT.js","/app/immutable/chunks/DqQDbK_p.js","/app/immutable/chunks/B5q1GTce.js","/app/immutable/chunks/BEDo0Tqx.js","/app/immutable/chunks/C4Zy0P7R.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/DbKrZJmS.js","/app/immutable/chunks/Cnlend6s.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/-1vWYJiy.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/yZ5s7S5S.js","/app/immutable/chunks/WOicJa2k.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/Cb1eroFO.js","/app/immutable/chunks/G0_EiVNo.js","/app/immutable/chunks/ah7LAYm4.js","/app/immutable/chunks/CVjN4vxe.js","/app/immutable/chunks/D46WSk8U.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Dax20l9D.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/DQT9c-_R.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/C3YfsJGu.js","/app/immutable/chunks/Dfbagr79.js","/app/immutable/chunks/WL4wAA6m.js","/app/immutable/chunks/BRKe81M1.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Qa=Object.defineProperty;var Xa=Object.getPrototypeOf;var Ja=Reflect.get;var mi=e=>{throw TypeError(e)};var Za=(e,t,r)=>t in e?Qa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var g=(e,t,r)=>Za(e,typeof t!="symbol"?t+"":t,r),Wr=(e,t,r)=>t.has(e)||mi("Cannot "+r);var J=(e,t,r)=>(Wr(e,t,"read from private field"),r?r.call(e):t.get(e)),De=(e,t,r)=>t.has(e)?mi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),oe=(e,t,r,n)=>(Wr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Hr=(e,t,r)=>(Wr(e,t,"access private method"),r);var gi=(e,t,r)=>Ja(Xa(e),r,t);import{c as Nt}from"./ChTqQfQN.js";import{ax as Ya,bt as Pr,J as el,bg as tl}from"./Dax20l9D.js";import{_ as p,bo as me}from"./yZ5s7S5S.js";import{g as rl}from"./BJzHxIyr.js";import{Hb as E,n2 as it,uy as nl,uA as il,uz as No,uJ as ol,uI as sl,Hh as al,oW as ll,Ar as ul,BZ as _i,z3 as cl,BY as dl,e5 as Vo,Je as Mo,s4 as pl,Il as hl,im as fl,Ik as ml,n1 as gl,GZ as Xn,CF as _l,CD as yl,sU as bl,CE as El,Dg as kl,D1 as vl,E0 as wl,Cl as Sl,F0 as Cl,E$ as Al,F8 as Il,EX as Tl,DE as Rl,CP as Ll,CC as Pl,CB as Ol,Cj as xl,DT as Dl,BU as Nl,Fh as Vl,Ct as Ml,Fj as $l,Cu as Bl,FC as Fl,E_ as Gl,EZ as jl,DV as Ul,Ei as ql,BO as zl,Br as Wl,gb as Hl,By as Kl,zz as Ql,DA as Xl,De as Jl,Db as Zl,EP as Yl,Du as eu,Dz as tu,Dw as ru,Dx as nu,Ea as iu,EN as ou,Cd as su,F3 as au,Fl as lu,IC as $o,d6 as Bo,ix as Fo,AA as Go}from"./WOicJa2k.js";import{cK as uu,bM as cu,bF as du,c3 as pu,cc as hu,c8 as fu,c9 as mu,a_ as gu,a$ as _u,bE as yu,bG as bu}from"./mFLgyCOK.js";import{y as fe,a0 as Eu,u as ku,a8 as vu}from"./CenrrJuj.js";import{i as Se}from"./D1IlJCd0.js";import{C as wu,c as Su,n as Cu,g as Au}from"./Ck8ZjaJh.js";import{c4 as Gt,bt as Iu,dk as Tu}from"./-1vWYJiy.js";import{h as Ru,$ as Lu,F as Pu,bm as Ou}from"./tzy2FJ3p.js";import{C as xu,b5 as Du,b6 as Nu,aX as Vu,aB as Mu,bg as $u,bx as Bu,aM as Fu,aE as jo,aq as Gu,aC as Uo,aD as qo}from"./BVTor63R.js";import{s as ju,f as Uu}from"./BIqUw3gi.js";import{a as zo,T as qu,d as zu,s as Wu,e as Hu,b as Ku,g as Qu}from"./BghpE59-.js";import{k as Xu,f as Ju,z as Zu,a as Yu,B as ec,L as tc,K as rc,A as nc,x as ic,m as oc,l as sc,I as ac,q as lc,w as uc,t as cc,u as dc,D as pc,G as hc,d as fc,M as mc,N as gc}from"./C3YfsJGu.js";import{S as Kr,n as _c}from"./Cb1eroFO.js";const dt=Nt("ActiveStreamsTracker");class yc{constructor(){g(this,"streamsByWorkspace",new Map);g(this,"allStreams",new Map);g(this,"listeners",new Set);g(this,"isListening",!1);g(this,"scanUpdates",null);g(this,"version",0);g(this,"inFlight",null);g(this,"pendingRefresh",!1);g(this,"refreshGeneration",0)}startPolling(){this.isListening||(this.fetchActiveStreams(),this.isListening=!0,dt.info("Started listening for active stream events"))}stopPolling(){this.isListening&&(this.pendingRefresh=!1,this.inFlight=null,this.refreshGeneration++,this.scanUpdates=null,this.updateStreams([]),this.isListening=!1,dt.info("Stopped listening for active stream events"))}applyEvent(t){if(!this.isListening)return;const r=t.data,n=r?.agentId;if(typeof n!="string"||!t.workspaceId)return;const i=["agent:idle","agent:failed","agent:deleted","agent:delete-scheduled"];let o;if(i.includes(t.type))o=!1;else if(t.type==="agent:status-changed")if(r?.isActive===!0||r?.isResponding===!0||r?.isStreaming===!0)o=!0;else if(r?.isActive===!1||["idle","completed","error","failed","deleted","halted"].includes(String(r?.status)))o=!1;else if(r?.status==="active"||r?.status==="responding")o=!0;else return;else return;const s=this.allStreams.get(n);if(s&&s.workspaceId!==t.workspaceId)return;const a=o?s??{agentId:n,sessionId:t.sessionId??n,workspaceId:t.workspaceId,startTime:Date.parse(t.timestamp)}:null;this.scanUpdates?.set(n,a);const l=new Map(this.allStreams);a?l.set(n,a):l.delete(n),this.updateStreams([...l.values()])}fetchActiveStreams(){if(this.inFlight)return this.pendingRefresh=!0,this.inFlight;const t=this.drainRefreshes(this.refreshGeneration);return this.inFlight=t,t.then(()=>{this.inFlight===t&&(this.inFlight=null)},()=>{this.inFlight===t&&(this.inFlight=null)}),t}async drainRefreshes(t){do this.pendingRefresh=!1,await this.fetchActiveStreamsOnce();while(t===this.refreshGeneration&&this.pendingRefresh)}async fetchActiveStreamsOnce(){const t=this.refreshGeneration,r=new Map;this.scanUpdates=r;try{const n=await Ya("agent.listActive",{});if(t!==this.refreshGeneration)return;if(Array.isArray(n.streams)){const i=new Map(n.streams.map(o=>[o.agentId,o]));for(const[o,s]of r)s?i.set(o,s):i.delete(o);this.updateStreams([...i.values()])}}catch(n){dt.warn("Failed to fetch active streams",{error:n})}finally{this.scanUpdates===r&&(this.scanUpdates=null)}}updateStreams(t){const r=new Map,n=new Map;for(const o of t){n.set(o.agentId,o);let s=r.get(o.workspaceId);s||(s=new Set,r.set(o.workspaceId,s)),s.add(o.agentId)}(this.allStreams.size!==n.size||[...n.keys()].some(o=>!this.allStreams.has(o))||[...this.allStreams.keys()].some(o=>!n.has(o)))&&(this.streamsByWorkspace=r,this.allStreams=n,this.version++,this.notifyListeners(),dt.debug("Active streams updated",{totalStreams:n.size,workspaces:Array.from(r.keys())}))}getStreamingAgentIdsForWorkspace(t){const r=this.streamsByWorkspace.get(t);return r?Array.from(r):[]}isAgentStreaming(t){return this.allStreams.has(t)}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}notifyListeners(){for(const t of this.listeners)try{t()}catch(r){dt.error("Error in active streams listener",r)}}getVersion(){return this.version}}const Cy=new yc,Ay="diffs-container";(()=>{try{return!1}catch{return!1}})();const Iy=/(?=^From [a-f0-9]+ .+$)/m,Ty=/(?=^diff --git)/gm,Ry=/(?<=\n)/,Ly=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Py=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Oy="header-prefix",xy="header-filename-suffix",Dy="header-metadata",Ny="header-custom",pr={dark:"pierre-dark",light:"pierre-light"},Vy="data-theme-css",My="data-unsafe-css",$y="data-diffs-scrollbar-measure",By="--diffs-scrollbar-gutter-measured",Fy=1e5,bc={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},Gy=Object.freeze({fromStart:0,fromEnd:0}),jy={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},Uy={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},We=new Map,Qr=new Map,Ec=new Map,vn=new Set;function Wo(e){for(const t of Array.isArray(e)?e:[e])if(!(t==="text"||t==="ansi")&&!vn.has(t))return!1;return!0}function ir(e=pr){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}const wn=new Set;function St(e){const t=[],r=new Set;for(const c of kc(e.themes)){const h=Ho(c)?c.getThemes():[c];for(const f of h){if(r.has(f.name))throw new Error(`Theme collection already contains theme "${f.name}"`);r.add(f.name),t.push(f)}}const n=Object.freeze([...t]),i=Object.freeze(n.filter(c=>c.colorScheme==="light")),o=Object.freeze(n.filter(c=>c.colorScheme==="dark")),s=new Map(n.map(c=>[c.name,c])),a=Object.freeze(n.map(c=>c.name)),l=Object.freeze(i.map(c=>c.name)),u=Object.freeze(o.map(c=>c.name));function d(c){if(c==null)return n;const{colorScheme:h,collection:f}=c;return f==null?h==="light"?i:h==="dark"?o:n:n.filter(m=>m.collection!==f?!1:h==null||m.colorScheme===h)}return{getTheme(c){return s.get(c)},getThemes(c){return d(c)},getThemeNames(c){return c?.collection==null?c?.colorScheme==="light"?l:c?.colorScheme==="dark"?u:a:d(c).map(h=>h.name)},hasTheme(c){return s.has(c)},orderBy(c){return St({themes:n.map((h,f)=>({descriptor:h,index:f})).sort((h,f)=>{const m=c(h.descriptor,f.descriptor);return m!==0?m:h.index-f.index}).map(h=>h.descriptor)})},pick(c){const h=[],f=new Set;for(const m of c){if(f.has(m))throw new Error(`Theme collection pick already includes theme "${m}"`);f.add(m);const b=s.get(m);if(b==null)throw new Error(`Theme collection does not contain theme "${m}"`);h.push(b)}return St({themes:h})},registerInto(c){for(const h of n)c.registerThemeIfAbsent(h.name,h.load)}}}function kc(e){return vc(e)?[e]:e}function vc(e){return Ho(e)||wc(e)}function wc(e){return typeof e.name=="string"&&typeof e.load=="function"}function Ho(e){return typeof e.getThemes=="function"}function Ko(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var Sc=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Cc=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},Ac=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function Ic(){const e=new Map,t=new Map,r=new Map;let n=0;function i(_,y){if(e.has(_))throw new Sc(_);e.set(_,y)}function o(_,y){return e.has(_)?!1:(e.set(_,y),!0)}function s(_){return e.has(_)}function a(_){const y=t.get(_);if(y!==void 0)return Promise.resolve(y);const k=r.get(_);if(k!==void 0)return k;const S=e.get(_);if(S===void 0)return Promise.reject(new Cc(_));const C=n,A=S().then(I=>{const P=Ko(I);return C===n&&t.set(_,P),r.get(_)===A&&r.delete(_),P}).catch(I=>{throw r.get(_)===A&&r.delete(_),I});return r.set(_,A),A}function l(_){return Promise.all(_.map(y=>a(y)))}function u(_,y){t.set(_,y)}function d(_){for(const[y,k]of _)u(y,k)}function c(_){return t.get(_)}function h(_){const y=[];for(const k of _){const S=t.get(k);if(S===void 0)throw new Ac(k);y.push(S)}return y}function f(_){return t.has(_)}function m(_){for(const y of _)if(!t.has(y))return!1;return!0}function b(_){const y=t.get(_);return y!==void 0?y:a(_)}function v(){n++,t.clear(),r.clear()}return{clearResolvedThemes:v,getResolvedOrResolveTheme:b,getResolvedTheme:c,getResolvedThemes:h,hasRegisteredTheme:s,hasResolvedTheme:f,hasResolvedThemes:m,registerTheme:i,registerThemeIfAbsent:o,resolveTheme:a,resolveThemes:l,seedResolvedTheme:u,seedResolvedThemes:d}}const le=Ic();function Sn(e,t){e=Array.isArray(e)?e:[e];for(let r of e){let n;if(typeof r=="string"){if(n=le.getResolvedTheme(r),n==null)throw new Error(`loadResolvedThemes: ${r} is not resolved, you must resolve it before calling loadResolvedThemes`)}else n=r,r=r.name,le.getResolvedTheme(r)==null&&le.seedResolvedTheme(r,n);wn.has(r)||(wn.add(r),t.loadThemeSync(n))}}function yi(e,t){e=Array.isArray(e)?e:[e];for(const r of e){if(vn.has(r.name))continue;let n=We.get(r.name);n==null&&(n=r,We.set(r.name,n));const i=n.data.find(o=>o.name===n.name||o.aliases?.includes(n.name)===!0);if(i==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);t.loadLanguageSync(n.data);try{t.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${i.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}vn.add(n.name)}}function Qo(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}var Cn=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,Rc=Object.getOwnPropertyNames,Lc=Object.prototype.hasOwnProperty,Pc=(e,t)=>{let r={};for(var n in e)Cn(r,n,{get:e[n],enumerable:!0});return Cn(r,Symbol.toStringTag,{value:"Module"}),r},Oc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Rc(t),o=0,s=i.length,a;o<s;o++)a=i[o],!Lc.call(e,a)&&a!==r&&Cn(e,a,{get:(l=>t[l]).bind(null,a),enumerable:!(n=Tc(t,a))||n.enumerable});return e},xc=(e,t,r)=>(Oc(e,t,"default"),r);const Xo=[{id:"abap",name:"ABAP",import:(()=>p(()=>import("./BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:(()=>p(()=>import("./B3316cI-.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>p(()=>import("./bCR0ucgS.js"),[],import.meta.url))},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:(()=>p(()=>import("./CsyLZFj1.js"),[],import.meta.url))},{id:"ahk2",name:"AutoHotkey2",import:(()=>p(()=>import("./8Zs4aa1G.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>p(()=>import("./Du_CL2nr.js").then(e=>e.a),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>p(()=>import("./C3jOxTNK.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>p(()=>import("./Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>p(()=>import("./DhZFqWV2.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>p(()=>import("./Cb_wDuVX.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>p(()=>import("./Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>p(()=>import("./BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>p(()=>import("./CSVQ5wI8.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>p(()=>import("./D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>p(()=>import("./BUtzH8cE.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>p(()=>import("./DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>p(()=>import("./BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:(()=>p(()=>import("./CickPsom.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>p(()=>import("./k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>p(()=>import("./uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>p(()=>import("./CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>p(()=>import("./Bmn6On1c.js"),[],import.meta.url))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>p(()=>import("./Bx8U0n9b.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>p(()=>import("./CV-HBevZ.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>p(()=>import("./DohQb4zL.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>p(()=>import("./BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>p(()=>import("./Dp5svz6Z.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>p(()=>import("./Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>p(()=>import("./CO1LY3CK.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:(()=>p(()=>import("./Ci46zaMS.js"),__vite__mapDeps([21,22]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>p(()=>import("./Dn5IMItf.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>p(()=>import("./P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>p(()=>import("./D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>p(()=>import("./N5GveWjx.js"),__vite__mapDeps([23,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>p(()=>import("./Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>p(()=>import("./DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>p(()=>import("./CxbxFI8M.js"),__vite__mapDeps([24,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>p(()=>import("./Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Rocq",import:(()=>p(()=>import("./C7JzOVbR.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>p(()=>import("./EtwkZMvg.js"),__vite__mapDeps([25,26,27,22]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>p(()=>import("./DMkUaiYH.js"),__vite__mapDeps([28,1,2,3,16,22,29]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>p(()=>import("./DSvCPggb.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>p(()=>import("./CLj8gQPS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>p(()=>import("./fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>p(()=>import("./D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>p(()=>import("./COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>p(()=>import("./85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>p(()=>import("./bE4Kk8sk.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>p(()=>import("./CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>p(()=>import("./BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>p(()=>import("./D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>p(()=>import("./BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>p(()=>import("./Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>p(()=>import("./BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>p(()=>import("./BziH_PKc.js"),__vite__mapDeps([30,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>p(()=>import("./B-0XRHxj.js"),__vite__mapDeps([31,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>p(()=>import("./Ci3HlJdq.js"),__vite__mapDeps([32,27,22]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>p(()=>import("./C_m_b--Z.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>p(()=>import("./mWv_UL20.js"),__vite__mapDeps([33,1,2,3,34,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>p(()=>import("./CuPHTKiy.js"),__vite__mapDeps([40,41]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>p(()=>import("./BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>p(()=>import("./BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>p(()=>import("./C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>p(()=>import("./B7c-h3xW.js"),__vite__mapDeps([42,43]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>p(()=>import("./BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>p(()=>import("./BTifaqeh.js"),__vite__mapDeps([44,41]),import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>p(()=>import("./DUKdbdZx.js"),__vite__mapDeps([45,46,47]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>p(()=>import("./DqcFQ5yU.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>p(()=>import("./DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>p(()=>import("./D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>p(()=>import("./DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>p(()=>import("./CxGSJlkm.js"),__vite__mapDeps([48,49]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>p(()=>import("./CSXwinHm.js"),__vite__mapDeps([50,29]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>p(()=>import("./BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>p(()=>import("./DZ9PSxVF.js"),__vite__mapDeps([51,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>p(()=>import("./CDBrVQLm.js"),__vite__mapDeps([52,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>p(()=>import("./DZxFcAj9.js"),__vite__mapDeps([27,22]),import.meta.url))},{id:"gn",name:"GN",import:(()=>p(()=>import("./n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>p(()=>import("./DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>p(()=>import("./C27-OAKa.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>p(()=>import("./C9oPPf7i.js"),__vite__mapDeps([36,2,11,37,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>p(()=>import("./gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>p(()=>import("./BL3tgEu7.js"),__vite__mapDeps([53,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>p(()=>import("./D2j5LXpq.js"),__vite__mapDeps([35,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>p(()=>import("./CcsQSqEB.js"),__vite__mapDeps([54,1,2,3,39]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>p(()=>import("./Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>p(()=>import("./CfZj7gIn.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>p(()=>import("./BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>p(()=>import("./D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>p(()=>import("./D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>p(()=>import("./DSSpBswy.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>p(()=>import("./C9MReZ1T.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>p(()=>import("./DaZJ10kq.js"),__vite__mapDeps([55,29,9,7,8,36,2,11,37,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>p(()=>import("./CVF7vp9Z.js"),__vite__mapDeps([56,36,2,11,37,13,7,8,57]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>p(()=>import("./CaCNOrBN.js"),__vite__mapDeps([58,59]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>p(()=>import("./DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>p(()=>import("./DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>p(()=>import("./BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>p(()=>import("./CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>p(()=>import("./wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>p(()=>import("./Cogva5lR.js"),__vite__mapDeps([60,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>p(()=>import("./Br6cN0cg.js"),__vite__mapDeps([61,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>p(()=>import("./Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>p(()=>import("./C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>p(()=>import("./Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>p(()=>import("./DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>p(()=>import("./DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>p(()=>import("./C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>p(()=>import("./g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>p(()=>import("./C4liqeOB.js"),__vite__mapDeps([62,25,26,27,22,20,2,63,16]),import.meta.url))},{id:"just",name:"Just",aliases:["justfile"],import:(()=>p(()=>import("./GWc9VfWm.js"),__vite__mapDeps([64,29,2,11,65,1,3,7,8,16,20,34,35,36,37,13,25,26,27,22,38,39]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>p(()=>import("./DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>p(()=>import("./BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>p(()=>import("./wEQ09or8.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>p(()=>import("./CBp1Oudt.js"),__vite__mapDeps([66,67,63]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>p(()=>import("./BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>p(()=>import("./B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>p(()=>import("./DcWK9jms.js"),__vite__mapDeps([68,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>p(()=>import("./BZoOZj88.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>p(()=>import("./2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>p(()=>import("./BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>p(()=>import("./CnsnAmq5.js"),__vite__mapDeps([38,22]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>p(()=>import("./BnpPk5vE.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>p(()=>import("./CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>p(()=>import("./Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>p(()=>import("./CBaQQc7g.js"),__vite__mapDeps([69,3,70,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>p(()=>import("./D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>p(()=>import("./DIaYF8wn.js"),__vite__mapDeps([71,41,39,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>p(()=>import("./Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>p(()=>import("./CQcHuHx7.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>p(()=>import("./CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>p(()=>import("./DJz3ZmWd.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>p(()=>import("./CHtswR0a.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>p(()=>import("./el3G9tDJ.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>p(()=>import("./DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>p(()=>import("./BcllPdc-.js"),__vite__mapDeps([72,73]),import.meta.url))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>p(()=>import("./vE_lwT2v.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>p(()=>import("./fbvUeNLU.js"),__vite__mapDeps([74,38,22]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>p(()=>import("./DloUtz8x.js"),__vite__mapDeps([75,22,1,2,3,7,8,27,41]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>p(()=>import("./CwoSXNpI.js"),[],import.meta.url))},{id:"nsis",name:"NSIS",import:(()=>p(()=>import("./BlV79W_Q.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>p(()=>import("./D3jzshHO.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>p(()=>import("./DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>p(()=>import("./CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>p(()=>import("./C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>p(()=>import("./BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>p(()=>import("./C4EeE6gA.js"),[],import.meta.url))},{id:"org",name:"Org Markup",import:(()=>p(()=>import("./BK370A1a.js"),__vite__mapDeps([76,2,11,13,8,20,26,3,38,22,77,78,65,1,7,16,63,34,35,36,37,25,27,29,39,79,9,80,81,24,82,49,83,84,85,70,5,86,87,88,89,90,75,41,31,40,91,92,93,48,50,66,67]),import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>p(()=>import("./D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>p(()=>import("./aqMIE0ez.js"),__vite__mapDeps([65,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>p(()=>import("./CLbBpDAT.js"),__vite__mapDeps([79,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>p(()=>import("./u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>p(()=>import("./ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>p(()=>import("./BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>p(()=>import("./C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>p(()=>import("./CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>p(()=>import("./CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:(()=>p(()=>import("./BmBUJMz7.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>p(()=>import("./Vru482bI.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>p(()=>import("./CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>p(()=>import("./C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>p(()=>import("./Dc-5oQ3p.js"),__vite__mapDeps([94,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>p(()=>import("./BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>p(()=>import("./CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>p(()=>import("./B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>p(()=>import("./BVQ-GDCI.js"),__vite__mapDeps([95,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>p(()=>import("./C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>p(()=>import("./IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>p(()=>import("./Cf5RLm7j.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>p(()=>import("./BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>p(()=>import("./DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>p(()=>import("./Cgqqbwmm.js"),__vite__mapDeps([96,1,2,3,89]),import.meta.url))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:(()=>p(()=>import("./CpoqiR4B.js"),[],import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>p(()=>import("./C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>p(()=>import("./CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>p(()=>import("./C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>p(()=>import("./BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>p(()=>import("./D8l8udqQ.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>p(()=>import("./BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>p(()=>import("./DfY5xF4S.js"),__vite__mapDeps([97,15,1,2,3,25,26,27,22,20,29,39,98,34,35,7,8,16,36,11,37,13,38]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>p(()=>import("./q1caIYAk.js"),__vite__mapDeps([34,1,2,3,35,7,8,16,36,11,37,13,25,26,27,22,29,38,39]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>p(()=>import("./B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>p(()=>import("./DhaYTIfE.js"),__vite__mapDeps([99,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>p(()=>import("./Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>p(()=>import("./CqE71os6.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>p(()=>import("./C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>p(()=>import("./DT3CNIhV.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>p(()=>import("./DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>p(()=>import("./BqTXFGrv.js"),__vite__mapDeps([100,101]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>p(()=>import("./Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>p(()=>import("./Cq5zzVJU.js"),__vite__mapDeps([102,29]),import.meta.url))},{id:"smalltalk",name:"GNU Smalltalk",import:(()=>p(()=>import("./BOQMe2GC.js"),[],import.meta.url))},{id:"smithy",name:"Smithy",import:(()=>p(()=>import("./cds9vsN8.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>p(()=>import("./DijEV5ha.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>p(()=>import("./OmYdGuYq.js"),__vite__mapDeps([103,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>p(()=>import("./BRZ36xJF.js"),__vite__mapDeps([104,105]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>p(()=>import("./BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>p(()=>import("./CRqJ_cUM.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>p(()=>import("./_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>p(()=>import("./HgPamjhh.js"),__vite__mapDeps([106,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>p(()=>import("./BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>p(()=>import("./CfYcf3Sz.js"),__vite__mapDeps([107,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>p(()=>import("./DhaVEd23.js"),__vite__mapDeps([108,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>p(()=>import("./C2oV4EkX.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>p(()=>import("./0hqHdDBg.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>p(()=>import("./4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>p(()=>import("./CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>p(()=>import("./QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>p(()=>import("./dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>p(()=>import("./BVkGXMyj.js"),__vite__mapDeps([109,84,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>p(()=>import("./BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>p(()=>import("./CRHig4t4.js"),__vite__mapDeps([67,63]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>p(()=>import("./vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>p(()=>import("./BX_0um4d.js"),__vite__mapDeps([110,11,3,2,27,22,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>p(()=>import("./B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>p(()=>import("./COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>p(()=>import("./BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>p(()=>import("./DF2lZ9u9.js"),__vite__mapDeps([111,3,2,5,79,1,7,8,16,9,20,34,35,36,11,37,13,25,26,27,22,29,38,39]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>p(()=>import("./BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>p(()=>import("./CAFt9gP4.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>p(()=>import("./BdrM2Vnw.js"),__vite__mapDeps([112,113,114,22,81,24,2,25,26,27,3,89,90,49,83,31,1,40,41,44,48,50,29,84,85,54,39,77,8,115,9,62,20,63,16,66,67,70,116,38,78,82,65,7,86,79,117,94,34,35,36,11,37,13,5,118,93,87,88,111,119,120,80]),import.meta.url))},{id:"v",name:"V",import:(()=>p(()=>import("./BGw2Nkan.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>p(()=>import("./CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",import:(()=>p(()=>import("./Cu-pLBUe.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>p(()=>import("./nZwndyjY.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>p(()=>import("./CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>p(()=>import("./CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>p(()=>import("./BMsVS0qT.js"),__vite__mapDeps([121,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>p(()=>import("./DqQDbK_p.js"),__vite__mapDeps([122,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>p(()=>import("./B5q1GTce.js"),__vite__mapDeps([123,3,5,70,124,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>p(()=>import("./CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>p(()=>import("./MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>p(()=>import("./BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>p(()=>import("./Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>p(()=>import("./BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>p(()=>import("./5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>p(()=>import("./lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>p(()=>import("./BGJmEYvX.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>p(()=>import("./BaaWV1KV.js"),__vite__mapDeps([93,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>p(()=>import("./Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>p(()=>import("./DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>p(()=>import("./VOosw3JB.js"),[],import.meta.url))}],Dc=Object.fromEntries(Xo.map(e=>[e.id,e.import])),Nc=Object.fromEntries(Xo.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),An={...Dc,...Nc},Vc=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>p(()=>import("./C4gqWexZ.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>p(()=>import("./D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>p(()=>import("./DYE7WIF3.js"),[],import.meta.url))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>p(()=>import("./BA47KaF1.js"),[],import.meta.url))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>p(()=>import("./32ctXXKs.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>p(()=>import("./CZL1YF0i.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>p(()=>import("./DH-8KZSZ.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>p(()=>import("./B7yYVSCf.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>p(()=>import("./Ct7hS0mc.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>p(()=>import("./C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>p(()=>import("./BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>p(()=>import("./BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>p(()=>import("./BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>p(()=>import("./C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>p(()=>import("./DHJKELXO.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>p(()=>import("./Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>p(()=>import("./DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>p(()=>import("./E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>p(()=>import("./DAi9KRSo.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>p(()=>import("./D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>p(()=>import("./BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>p(()=>import("./CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>p(()=>import("./GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>p(()=>import("./CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>p(()=>import("./CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>p(()=>import("./DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>p(()=>import("./hJgmCMqR.js"),[],import.meta.url))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>p(()=>import("./BUw7H-hv.js"),[],import.meta.url))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>p(()=>import("./CUuTKBJd.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>p(()=>import("./DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>p(()=>import("./BuwD2xS4.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>p(()=>import("./C3DzagqV.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>p(()=>import("./DFGoQZhC.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>p(()=>import("./DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>p(()=>import("./B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>p(()=>import("./D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>p(()=>import("./BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>p(()=>import("./B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>p(()=>import("./CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>p(()=>import("./Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>p(()=>import("./CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>p(()=>import("./CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>p(()=>import("./BRVnQi9A.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>p(()=>import("./C39BiMTA.js"),[],import.meta.url))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>p(()=>import("./CMTm3GFP.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>p(()=>import("./Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>p(()=>import("./DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>p(()=>import("./C3Wv6jpd.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>p(()=>import("./3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>p(()=>import("./CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>p(()=>import("./hvxz__6c.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>p(()=>import("./5qJOZa0Y.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>p(()=>import("./zx0QlTCp.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>p(()=>import("./C9pEdX9L.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>p(()=>import("./BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>p(()=>import("./DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>p(()=>import("./Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>p(()=>import("./CpvCGNkr.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>p(()=>import("./Dlz6yCKv.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>p(()=>import("./CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>p(()=>import("./hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>p(()=>import("./DRje8inN.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>p(()=>import("./Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>p(()=>import("./D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>p(()=>import("./CVO1_9PV.js"),[],import.meta.url))}],Mc=Object.fromEntries(Vc.map(e=>[e.id,e.import]));var Jn=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function $c(){return 2147483648}function Bc(){return typeof performance<"u"?performance.now():Date.now()}const Fc=(e,t)=>e+(t-e%t)%t;async function Gc(e){let t,r;const n={};function i(f){r=f,n.HEAPU8=new Uint8Array(f),n.HEAPU32=new Uint32Array(f)}function o(f,m,b){n.HEAPU8.copyWithin(f,m,m+b)}function s(f){try{return t.grow(f-r.byteLength+65535>>>16),i(t.buffer),1}catch{}}function a(f){const m=n.HEAPU8.length;f=f>>>0;const b=$c();if(f>b)return!1;for(let v=1;v<=4;v*=2){let _=m*(1+.2/v);_=Math.min(_,f+100663296);const y=Math.min(b,Fc(Math.max(f,_),65536));if(s(y))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(f,m,b=1024){const v=m+b;let _=m;for(;f[_]&&!(_>=v);)++_;if(_-m>16&&f.buffer&&l)return l.decode(f.subarray(m,_));let y="";for(;m<_;){let k=f[m++];if(!(k&128)){y+=String.fromCharCode(k);continue}const S=f[m++]&63;if((k&224)===192){y+=String.fromCharCode((k&31)<<6|S);continue}const C=f[m++]&63;if((k&240)===224?k=(k&15)<<12|S<<6|C:k=(k&7)<<18|S<<12|C<<6|f[m++]&63,k<65536)y+=String.fromCharCode(k);else{const A=k-65536;y+=String.fromCharCode(55296|A>>10,56320|A&1023)}}return y}function d(f,m){return f?u(n.HEAPU8,f,m):""}const c={emscripten_get_now:Bc,emscripten_memcpy_big:o,emscripten_resize_heap:a,fd_write:()=>0};async function h(){const m=await e({env:c,wasi_snapshot_preview1:c});t=m.memory,i(t.buffer),Object.assign(n,m),n.UTF8ToString=d}return await h(),n}var jc=Object.defineProperty,Uc=(e,t,r)=>t in e?jc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,G=(e,t,r)=>Uc(e,typeof t!="symbol"?t+"":t,r);let q=null;function qc(e){throw new Jn(e.UTF8ToString(e.getLastOnigError()))}class Or{constructor(t){G(this,"utf16Length"),G(this,"utf8Length"),G(this,"utf16Value"),G(this,"utf8Value"),G(this,"utf16OffsetToUtf8"),G(this,"utf8OffsetToUtf16");const r=t.length,n=Or._utf8ByteLength(t),i=n!==r,o=i?new Uint32Array(r+1):null;i&&(o[r]=n);const s=i?new Uint32Array(n+1):null;i&&(s[n]=r);const a=new Uint8Array(n);let l=0;for(let u=0;u<r;u++){const d=t.charCodeAt(u);let c=d,h=!1;if(d>=55296&&d<=56319&&u+1<r){const f=t.charCodeAt(u+1);f>=56320&&f<=57343&&(c=(d-55296<<10)+65536|f-56320,h=!0)}i&&(o[u]=l,h&&(o[u+1]=l),c<=127?s[l+0]=u:c<=2047?(s[l+0]=u,s[l+1]=u):c<=65535?(s[l+0]=u,s[l+1]=u,s[l+2]=u):(s[l+0]=u,s[l+1]=u,s[l+2]=u,s[l+3]=u)),c<=127?a[l++]=c:c<=2047?(a[l++]=192|(c&1984)>>>6,a[l++]=128|(c&63)>>>0):c<=65535?(a[l++]=224|(c&61440)>>>12,a[l++]=128|(c&4032)>>>6,a[l++]=128|(c&63)>>>0):(a[l++]=240|(c&1835008)>>>18,a[l++]=128|(c&258048)>>>12,a[l++]=128|(c&4032)>>>6,a[l++]=128|(c&63)>>>0),h&&u++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=t,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let r=0;for(let n=0,i=t.length;n<i;n++){const o=t.charCodeAt(n);let s=o,a=!1;if(o>=55296&&o<=56319&&n+1<i){const l=t.charCodeAt(n+1);l>=56320&&l<=57343&&(s=(o-55296<<10)+65536|l-56320,a=!0)}s<=127?r+=1:s<=2047?r+=2:s<=65535?r+=3:r+=4,a&&n++}return r}createString(t){const r=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,r),r}}const xr=class de{constructor(t){if(G(this,"id",++de.LAST_ID),G(this,"_onigBinding"),G(this,"content"),G(this,"utf16Length"),G(this,"utf8Length"),G(this,"utf16OffsetToUtf8"),G(this,"utf8OffsetToUtf16"),G(this,"ptr"),!q)throw new Jn("Must invoke loadWasm first.");this._onigBinding=q,this.content=t;const r=new Or(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!de._sharedPtrInUse?(de._sharedPtr||(de._sharedPtr=q.omalloc(1e4)),de._sharedPtrInUse=!0,q.HEAPU8.set(r.utf8Value,de._sharedPtr),this.ptr=de._sharedPtr):this.ptr=r.createString(q)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===de._sharedPtr?de._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};G(xr,"LAST_ID",0);G(xr,"_sharedPtr",0);G(xr,"_sharedPtrInUse",!1);let Jo=xr;class zc{constructor(t){if(G(this,"_onigBinding"),G(this,"_ptr"),!q)throw new Jn("Must invoke loadWasm first.");const r=[],n=[];for(let a=0,l=t.length;a<l;a++){const u=new Or(t[a]);r[a]=u.createString(q),n[a]=u.utf8Length}const i=q.omalloc(4*t.length);q.HEAPU32.set(r,i/4);const o=q.omalloc(4*t.length);q.HEAPU32.set(n,o/4);const s=q.createOnigScanner(i,o,t.length);for(let a=0,l=t.length;a<l;a++)q.ofree(r[a]);q.ofree(o),q.ofree(i),s===0&&qc(q),this._onigBinding=q,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,r,n){let i=0;if(typeof n=="number"&&(i=n),typeof t=="string"){t=new Jo(t);const o=this._findNextMatchSync(t,r,!1,i);return t.dispose(),o}return this._findNextMatchSync(t,r,!1,i)}_findNextMatchSync(t,r,n,i){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(r),i);if(s===0)return null;const a=o.HEAPU32;let l=s/4;const u=a[l++],d=a[l++],c=[];for(let h=0;h<d;h++){const f=t.convertUtf8OffsetToUtf16(a[l++]),m=t.convertUtf8OffsetToUtf16(a[l++]);c[h]={start:f,end:m,length:m-f}}return{index:u,captureIndices:c}}}function Wc(e){return typeof e.instantiator=="function"}function Hc(e){return typeof e.default=="function"}function Kc(e){return typeof e.data<"u"}function Qc(e){return typeof Response<"u"&&e instanceof Response}function Xc(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}let jt;function Zo(e){if(jt)return jt;async function t(){q=await Gc(async r=>{let n=e;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),Wc(n)?n=await n.instantiator(r):Hc(n)?n=await n.default(r):(Kc(n)&&(n=n.data),Qc(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await Jc(n)(r):n=await Zc(n)(r):Xc(n)?n=await Xr(n)(r):n instanceof WebAssembly.Module?n=await Xr(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await Xr(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return jt=t(),jt}function Xr(e){return t=>WebAssembly.instantiate(e,t)}function Jc(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Zc(e){return async t=>{const r=await e.arrayBuffer();return WebAssembly.instantiate(r,t)}}let Yo;function Yc(e){Yo=e}function ed(){return Yo}async function es(e){return e&&await Zo(e),{createScanner(t){return new zc(t.map(r=>typeof r=="string"?r:r.source))},createString(t){return new Jo(t)}}}const td=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:es,getDefaultWasmLoader:ed,loadWasm:Zo,setDefaultWasmLoader:Yc},Symbol.toStringTag,{value:"Module"}));var ts=Pc({});xc(ts,td);var N=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function rd(e){return Zn(e)}function Zn(e){return Array.isArray(e)?nd(e):e instanceof RegExp?e:typeof e=="object"?id(e):e}function nd(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=Zn(e[r]);return t}function id(e){let t={};for(let r in e)t[r]=Zn(e[r]);return t}function rs(e,...t){return t.forEach(r=>{for(let n in r)e[n]=r[n]}),e}function ns(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?ns(e.substring(0,e.length-1)):e.substr(~t+1)}var Jr=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ut=class{static hasCaptures(e){return e===null?!1:(Jr.lastIndex=0,Jr.test(e))}static replaceCaptures(e,t,r){return e.replace(Jr,(n,i,o,s)=>{let a=r[parseInt(i||o,10)];if(a){let l=t.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return n})}};function is(e,t){return e<t?-1:e>t?1:0}function os(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let i=0;i<r;i++){let o=is(e[i],t[i]);if(o!==0)return o}return 0}return r-n}function bi(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 ss(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var as=class{constructor(e){g(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},hr=class{constructor(e,t,r){g(this,"_cachedMatchRoot",new as(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(ad(e),t)}static createFromParsedTheme(e,t){return ud(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(i=>od(e.parent,i.parentScopes));return n?new ls(n.fontStyle,n.foreground,n.background):null}},Zr=class or{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(const n of r)t=new or(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new or(r,t[n]);return r}push(t){return new or(this,t)}getSegments(){let t=this;const r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push(n.scopeName),n=n.parent;return n===t?r.reverse():void 0}};function od(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let n=t[r],i=!1;if(n===">"){if(r===t.length-1)return!1;n=t[++r],i=!0}for(;e&&!sd(e.scopeName,n);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function sd(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var ls=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function ad(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let i=0,o=t.length;i<o;i++){let s=t[i];if(!s.settings)continue;let a;if(typeof s.scope=="string"){let c=s.scope;c=c.replace(/^[,]+/,""),c=c.replace(/[,]+$/,""),a=c.split(",")}else Array.isArray(s.scope)?a=s.scope:a=[""];let l=-1;if(typeof s.settings.fontStyle=="string"){l=0;let c=s.settings.fontStyle.split(" ");for(let h=0,f=c.length;h<f;h++)switch(c[h]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof s.settings.foreground=="string"&&bi(s.settings.foreground)&&(u=s.settings.foreground);let d=null;typeof s.settings.background=="string"&&bi(s.settings.background)&&(d=s.settings.background);for(let c=0,h=a.length;c<h;c++){let m=a[c].trim().split(" "),b=m[m.length-1],v=null;m.length>1&&(v=m.slice(0,m.length-1),v.reverse()),r[n++]=new ld(b,v,i,l,u,d)}}return r}var ld=class{constructor(e,t,r,n,i,o){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=i,this.background=o}},H=(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))(H||{});function ud(e,t){e.sort((l,u)=>{let d=is(l.scope,u.scope);return d!==0||(d=os(l.parentScopes,u.parentScopes),d!==0)?d:l.index-u.index});let r=0,n="#000000",i="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(r=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(i=l.background)}let o=new cd(t),s=new ls(r,o.getId(n),o.getId(i)),a=new pd(new In(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let d=e[l];a.insert(0,d.scope,d.parentScopes,d.fontStyle,o.getId(d.foreground),o.getId(d.background))}return new hr(o,s,a)}var cd=class{constructor(e){g(this,"_isFrozen");g(this,"_lastColorId");g(this,"_id2color");g(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;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 new 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)}},dd=Object.freeze([]),In=class us{constructor(t,r,n,i,o){g(this,"scopeDepth");g(this,"parentScopes");g(this,"fontStyle");g(this,"foreground");g(this,"background");this.scopeDepth=t,this.parentScopes=r||dd,this.fontStyle=n,this.foreground=i,this.background=o}clone(){return new us(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let n=0,i=t.length;n<i;n++)r[n]=t[n].clone();return r}acceptOverwrite(t,r,n,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},pd=class Tn{constructor(t,r=[],n={}){g(this,"_rulesWithParentScopes");this._mainRule=t,this._children=n,this._rulesWithParentScopes=r}static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let n=0,i=0;for(;t.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=t.parentScopes.length||i>=r.parentScopes.length);){const o=r.parentScopes[i].length-t.parentScopes[n].length;if(o!==0)return o;n++,i++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let n=t.indexOf("."),i,o;if(n===-1?(i=t,o=""):(i=t.substring(0,n),o=t.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Tn._cmpBySpecificity),r}insert(t,r,n,i,o,s){if(r===""){this._doInsertHere(t,n,i,o,s);return}let a=r.indexOf("."),l,u;a===-1?(l=r,u=""):(l=r.substring(0,a),u=r.substring(a+1));let d;this._children.hasOwnProperty(l)?d=this._children[l]:(d=new Tn(this._mainRule.clone(),In.cloneArr(this._rulesWithParentScopes)),this._children[l]=d),d.insert(t+1,u,n,i,o,s)}_doInsertHere(t,r,n,i,o){if(r===null){this._mainRule.acceptOverwrite(t,n,i,o);return}for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let l=this._rulesWithParentScopes[s];if(os(l.parentScopes,r)===0){l.acceptOverwrite(t,n,i,o);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new In(t,r,n,i,o))}},Ue=class te{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const r=te.getLanguageId(t),n=te.getTokenType(t),i=te.getFontStyle(t),o=te.getForeground(t),s=te.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:o,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,n,i,o,s,a){let l=te.getLanguageId(t),u=te.getTokenType(t),d=te.containsBalancedBrackets(t)?1:0,c=te.getFontStyle(t),h=te.getForeground(t),f=te.getBackground(t);return r!==0&&(l=r),n!==8&&(u=n),i!==null&&(d=i?1:0),o!==-1&&(c=o),s!==0&&(h=s),a!==0&&(f=a),(l<<0|u<<8|d<<10|c<<11|h<<15|f<<24)>>>0}};function fr(e,t){const r=[],n=hd(e);let i=n.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let u=s();if(r.push({matcher:u,priority:l}),i!==",")break;i=n.next()}return r;function o(){if(i==="-"){i=n.next();const l=o();return u=>!!l&&!l(u)}if(i==="("){i=n.next();const l=a();return i===")"&&(i=n.next()),l}if(Ei(i)){const l=[];do l.push(i),i=n.next();while(Ei(i));return u=>t(l,u)}return null}function s(){const l=[];let u=o();for(;u;)l.push(u),u=o();return d=>l.every(c=>c(d))}function a(){const l=[];let u=s();for(;u&&(l.push(u),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");u=s()}return d=>l.some(c=>c(d))}}function Ei(e){return!!e&&!!e.match(/[\w\.:]+/)}function hd(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;const n=r[0];return r=t.exec(e),n}}}function cs(e){typeof e.dispose=="function"&&e.dispose()}var Ct=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},fd=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},md=class{constructor(){g(this,"_references",[]);g(this,"_seenReferenceKeys",new Set);g(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},gd=class{constructor(e,t){g(this,"seenFullScopeRequests",new Set);g(this,"seenPartialScopeRequests",new Set);g(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ct(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new md;for(const r of e)_d(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof Ct){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function _d(e,t,r,n){const i=r.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=r.lookup(t);e instanceof Ct?sr({baseGrammar:o,selfGrammar:i},n):Rn(e.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const s=r.injections(e.scopeName);if(s)for(const a of s)n.add(new Ct(a))}function Rn(e,t,r){if(t.repository&&t.repository[e]){const n=t.repository[e];mr([n],t,r)}}function sr(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&mr(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&mr(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function mr(e,t,r){for(const n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?rs({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&mr(n.patterns,{...t,repository:i},r);const o=n.include;if(!o)continue;const s=ds(o);switch(s.kind){case 0:sr({...t,selfGrammar:t.baseGrammar},r);break;case 1:sr(t,r);break;case 2:Rn(s.ruleName,{...t,repository:i},r);break;case 3:case 4:const a=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const l={baseGrammar:t.baseGrammar,selfGrammar:a,repository:i};s.kind===4?Rn(s.ruleName,l,r):sr(l,r)}else s.kind===4?r.add(new fd(s.scopeName,s.ruleName)):r.add(new Ct(s.scopeName));break}}}var yd=class{constructor(){g(this,"kind",0)}},bd=class{constructor(){g(this,"kind",1)}},Ed=class{constructor(e){g(this,"kind",2);this.ruleName=e}},kd=class{constructor(e){g(this,"kind",3);this.scopeName=e}},vd=class{constructor(e,t){g(this,"kind",4);this.scopeName=e,this.ruleName=t}};function ds(e){if(e==="$base")return new yd;if(e==="$self")return new bd;const t=e.indexOf("#");if(t===-1)return new kd(e);if(t===0)return new Ed(e.substring(1));{const r=e.substring(0,t),n=e.substring(t+1);return new vd(r,n)}}var wd=/\\(\d+)/,ki=/\\(\d+)/g,Sd=-1,ps=-2;var Vt=class{constructor(e,t,r,n){g(this,"$location");g(this,"id");g(this,"_nameIsCapturing");g(this,"_name");g(this,"_contentNameIsCapturing");g(this,"_contentName");this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=Ut.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Ut.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${ns(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:Ut.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ut.replaceCaptures(this._contentName,e,t)}},Cd=class extends Vt{constructor(t,r,n,i,o){super(t,r,n,i);g(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,r){throw new Error("Not supported!")}compile(t,r){throw new Error("Not supported!")}compileAG(t,r,n,i){throw new Error("Not supported!")}},Ad=class extends Vt{constructor(t,r,n,i,o){super(t,r,n,null);g(this,"_match");g(this,"captures");g(this,"_cachedCompiledPatterns");this._match=new At(i,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,r){r.push(this._match)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new It,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vi=class extends Vt{constructor(t,r,n,i,o){super(t,r,n,i);g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,r){for(const n of this.patterns)t.getRule(n).collectPatterns(t,r)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new It,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ln=class extends Vt{constructor(t,r,n,i,o,s,a,l,u,d){super(t,r,n,i);g(this,"_begin");g(this,"beginCaptures");g(this,"_end");g(this,"endHasBackReferences");g(this,"endCaptures");g(this,"applyEndPatternLast");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this._begin=new At(o,this.id),this.beginCaptures=s,this._end=new At(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=u||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,r){return this._end.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t,r).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t,r).compileAG(t,n,i)}_getCachedCompiledPatterns(t,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new It;for(const n of this.patterns)t.getRule(n).collectPatterns(t,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,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},gr=class extends Vt{constructor(t,r,n,i,o,s,a,l,u){super(t,r,n,i);g(this,"_begin");g(this,"beginCaptures");g(this,"whileCaptures");g(this,"_while");g(this,"whileHasBackReferences");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");g(this,"_cachedCompiledWhilePatterns");this._begin=new At(o,this.id),this.beginCaptures=s,this.whileCaptures=l,this._while=new At(a,ps),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,r){return this._while.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new It;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,r){return this._getCachedCompiledWhilePatterns(t,r).compile(t)}compileWhileAG(t,r,n,i){return this._getCachedCompiledWhilePatterns(t,r).compileAG(t,n,i)}_getCachedCompiledWhilePatterns(t,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new It,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||""),this._cachedCompiledWhilePatterns}},hs=class W{static createCaptureRule(t,r,n,i,o){return t.registerRule(s=>new Cd(r,s,n,i,o))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(i=>{if(t.id=i,t.match)return new Ad(t.$vscodeTextmateLocation,t.id,t.name,t.match,W._compileCaptures(t.captures,r,n));if(typeof t.begin>"u"){t.repository&&(n=rs({},n,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new vi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,W._compilePatterns(o,r,n))}return t.while?new gr(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,W._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,W._compileCaptures(t.whileCaptures||t.captures,r,n),W._compilePatterns(t.patterns,r,n)):new Ln(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,W._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,W._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,W._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let i=[];if(t){let o=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);a>o&&(o=a)}for(let s=0;s<=o;s++)i[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);let l=0;t[s].patterns&&(l=W.getCompiledRuleId(t[s],r,n)),i[a]=W.createCaptureRule(r,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,l)}}return i}static _compilePatterns(t,r,n){let i=[];if(t)for(let o=0,s=t.length;o<s;o++){const a=t[o];let l=-1;if(a.include){const u=ds(a.include);switch(u.kind){case 0:case 1:l=W.getCompiledRuleId(n[a.include],r,n);break;case 2:let d=n[u.ruleName];d&&(l=W.getCompiledRuleId(d,r,n));break;case 3:case 4:const c=u.scopeName,h=u.kind===4?u.ruleName:null,f=r.getExternalGrammar(c,n);if(f)if(h){let m=f.repository[h];m&&(l=W.getCompiledRuleId(m,r,f.repository))}else l=W.getCompiledRuleId(f.repository.$self,r,f.repository);break}}else l=W.getCompiledRuleId(a,r,n);if(l!==-1){const u=r.getRule(l);let d=!1;if((u instanceof vi||u instanceof Ln||u instanceof gr)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},At=class fs{constructor(t,r){g(this,"source");g(this,"ruleId");g(this,"hasAnchor");g(this,"hasBackReferences");g(this,"_anchorCache");if(t&&typeof t=="string"){const n=t.length;let i=0,o=[],s=!1;for(let a=0;a<n;a++)if(t.charAt(a)==="\\"&&a+1<n){const u=t.charAt(a+1);u==="z"?(o.push(t.substring(i,a)),o.push("$(?!\\n)(?<!\\n)"),i=a+2):(u==="A"||u==="G")&&(s=!0),a++}this.hasAnchor=s,i===0?this.source=t:(o.push(t.substring(i,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=wd.test(this.source):this.hasBackReferences=!1}clone(){return new fs(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>t.substring(i.start,i.end));return ki.lastIndex=0,this.source.replace(ki,(i,o)=>ss(n[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],n=[],i=[],o,s,a,l;for(o=0,s=this.source.length;o<s;o++)a=this.source.charAt(o),t[o]=a,r[o]=a,n[o]=a,i[o]=a,a==="\\"&&o+1<s&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="",r[o+1]="",n[o+1]="A",i[o+1]="A"):l==="G"?(t[o+1]="",r[o+1]="G",n[o+1]="",i[o+1]="G"):(t[o+1]=l,r[o+1]=l,n[o+1]=l,i[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},It=class{constructor(){g(this,"_items");g(this,"_hasAnchors");g(this,"_cached");g(this,"_anchorCache");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(),this._cached=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(r=>r.source);this._cached=new wi(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let n=this._items.map(i=>i.resolveAnchors(t,r));return new wi(e,n,this._items.map(i=>i.ruleId))}},wi=class{constructor(e,t,r){g(this,"scanner");this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
3
3
|
`)}findNextMatchSync(e,t,r){const n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},Yr=class{constructor(e,t){this.languageId=e,this.tokenType=t}},ve,Id=(ve=class{constructor(t,r){g(this,"_defaultAttributes");g(this,"_embeddedLanguagesMatcher");g(this,"_getBasicScopeAttributes",new as(t=>{const r=this._scopeToLanguage(t),n=this._toStandardTokenType(t);return new Yr(r,n)}));this._defaultAttributes=new Yr(t,8),this._embeddedLanguagesMatcher=new Td(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?ve._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const r=t.match(ve.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},g(ve,"_NULL_SCOPE_METADATA",new Yr(0,0)),g(ve,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),ve),Td=class{constructor(e){g(this,"values");g(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([r,n])=>ss(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Si=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ms(e,t,r,n,i,o,s,a){const l=t.content.length;let u=!1,d=-1;if(s){const f=Rd(e,t,r,n,i,o);i=f.stack,n=f.linePos,r=f.isFirstLine,d=f.anchorPosition}const c=Date.now();for(;!u;){if(a!==0&&Date.now()-c>a)return new Si(i,!0);h()}return new Si(i,!1);function h(){const f=Ld(e,t,r,n,i,d);if(!f){o.produce(i,l),u=!0;return}const m=f.captureIndices,b=f.matchedRuleId,v=m&&m.length>0?m[0].end>n:!1;if(b===Sd){const _=i.getRule(e);o.produce(i,m[0].start),i=i.withContentNameScopesList(i.nameScopesList),gt(e,t,r,i,o,_.endCaptures,m),o.produce(i,m[0].end);const y=i;if(i=i.parent,d=y.getAnchorPos(),!v&&y.getEnterPos()===n){i=y,o.produce(i,l),u=!0;return}}else{const _=e.getRule(b);o.produce(i,m[0].start);const y=i,k=_.getName(t.content,m),S=i.contentNameScopesList.pushAttributed(k,e);if(i=i.push(b,n,d,m[0].end===l,null,S,S),_ instanceof Ln){const C=_;gt(e,t,r,i,o,C.beginCaptures,m),o.produce(i,m[0].end),d=m[0].end;const A=C.getContentName(t.content,m),I=S.pushAttributed(A,e);if(i=i.withContentNameScopesList(I),C.endHasBackReferences&&(i=i.withEndRule(C.getEndWithResolvedBackReferences(t.content,m))),!v&&y.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(_ instanceof gr){const C=_;gt(e,t,r,i,o,C.beginCaptures,m),o.produce(i,m[0].end),d=m[0].end;const A=C.getContentName(t.content,m),I=S.pushAttributed(A,e);if(i=i.withContentNameScopesList(I),C.whileHasBackReferences&&(i=i.withEndRule(C.getWhileWithResolvedBackReferences(t.content,m))),!v&&y.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(gt(e,t,r,i,o,_.captures,m),o.produce(i,m[0].end),i=i.pop(),!v){i=i.safePop(),o.produce(i,l),u=!0;return}}m[0].end>n&&(n=m[0].end,r=!1)}}function Rd(e,t,r,n,i,o){let s=i.beginRuleCapturedEOL?0:-1;const a=[];for(let l=i;l;l=l.pop()){const u=l.getRule(e);u instanceof gr&&a.push({rule:u,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:u,findOptions:d}=xd(l.rule,e,l.stack.endRule,r,n===s),c=u.findNextMatchSync(t,n,d);if(c){if(c.ruleId!==ps){i=l.stack.pop();break}c.captureIndices&&c.captureIndices.length&&(o.produce(l.stack,c.captureIndices[0].start),gt(e,t,r,l.stack,o,l.rule.whileCaptures,c.captureIndices),o.produce(l.stack,c.captureIndices[0].end),s=c.captureIndices[0].end,c.captureIndices[0].end>n&&(n=c.captureIndices[0].end,r=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:s,isFirstLine:r}}function Ld(e,t,r,n,i,o){const s=Pd(e,t,r,n,i,o),a=e.getInjections();if(a.length===0)return s;const l=Od(a,e,t,r,n,i,o);if(!l)return s;if(!s)return l;const u=s.captureIndices[0].start,d=l.captureIndices[0].start;return d<u||l.priorityMatch&&d===u?l:s}function Pd(e,t,r,n,i,o){const s=i.getRule(e),{ruleScanner:a,findOptions:l}=gs(s,e,i.endRule,r,n===o),u=a.findNextMatchSync(t,n,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function Od(e,t,r,n,i,o,s){let a=Number.MAX_VALUE,l=null,u,d=0;const c=o.contentNameScopesList.getScopeNames();for(let h=0,f=e.length;h<f;h++){const m=e[h];if(!m.matcher(c))continue;const b=t.getRule(m.ruleId),{ruleScanner:v,findOptions:_}=gs(b,t,null,n,i===s),y=v.findNextMatchSync(r,i,_);if(!y)continue;const k=y.captureIndices[0].start;if(!(k>=a)&&(a=k,l=y.captureIndices,u=y.ruleId,d=m.priority,a===i))break}return l?{priorityMatch:d===-1,captureIndices:l,matchedRuleId:u}:null}function gs(e,t,r,n,i){return{ruleScanner:e.compileAG(t,r,n,i),findOptions:0}}function xd(e,t,r,n,i){return{ruleScanner:e.compileWhileAG(t,r,n,i),findOptions:0}}function gt(e,t,r,n,i,o,s){if(o.length===0)return;const a=t.content,l=Math.min(o.length,s.length),u=[],d=s[0].end;for(let c=0;c<l;c++){const h=o[c];if(h===null)continue;const f=s[c];if(f.length===0)continue;if(f.start>d)break;for(;u.length>0&&u[u.length-1].endPos<=f.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,f.start):i.produce(n,f.start),h.retokenizeCapturedWithRuleId){const b=h.getName(a,s),v=n.contentNameScopesList.pushAttributed(b,e),_=h.getContentName(a,s),y=v.pushAttributed(_,e),k=n.push(h.retokenizeCapturedWithRuleId,f.start,-1,!1,null,v,y),S=e.createOnigString(a.substring(0,f.end));ms(e,S,r&&f.start===0,f.start,k,i,!1,0),cs(S);continue}const m=h.getName(a,s);if(m!==null){const v=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(m,e);u.push(new Dd(v,f.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var Dd=class{constructor(e,t){g(this,"scopes");g(this,"endPos");this.scopes=e,this.endPos=t}};function Nd(e,t,r,n,i,o,s,a){return new Md(e,t,r,n,i,o,s,a)}function Ci(e,t,r,n,i){const o=fr(t,_r),s=hs.getCompiledRuleId(r,n,i.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:s,grammar:i,priority:a.priority})}function _r(e,t){if(t.length<e.length)return!1;let r=0;return e.every(n=>{for(let i=r;i<t.length;i++)if(Vd(t[i],n))return r=i+1,!0;return!1})}function Vd(e,t){if(!e)return!1;if(e===t)return!0;const r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var Md=class{constructor(e,t,r,n,i,o,s,a){g(this,"_rootId");g(this,"_lastRuleId");g(this,"_ruleId2desc");g(this,"_includedGrammars");g(this,"_grammarRepository");g(this,"_grammar");g(this,"_injections");g(this,"_basicScopeAttributesProvider");g(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new Id(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Ai(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const u=fr(l,_r);for(const d of u)this._tokenTypeMatchers.push({matcher:d.matcher,type:i[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},t=[],r=this._rootScopeName,n=e.lookup(r);if(n){const i=n.injections;if(i)for(let s in i)Ci(t,s,i[s],this,n);const o=this._grammarRepository.injections(r);o&&o.forEach(s=>{const a=this.getExternalGrammar(s);if(a){const l=a.injectionSelector;l&&Ci(t,l,a,this,a)}})}return t.sort((i,o)=>i.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=Ai(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){const n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){const n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){this._rootId===-1&&(this._rootId=hs.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Pn.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),c=Ue.set(0,u.languageId,u.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),h=this.getRule(this._rootId).getName(null,null);let f;h?f=bt.createRootAndLookUpScopeName(h,c,this):f=bt.createRoot("unknown",c),t=new Pn(null,this._rootId,-1,-1,!1,null,f,f)}else i=!1,t.reset();e=e+`
|
|
4
4
|
`;const o=this.createOnigString(e),s=o.content.length,a=new Bd(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ms(this,o,i,0,t,a,!0,n);return cs(o),{lineLength:s,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Ai(e,t){return e=rd(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 bt=class pe{constructor(t,r,n){this.parent=t,this.scopePath=r,this.tokenAttributes=n}static fromExtension(t,r){let n=t,i=t?.scopePath??null;for(const o of r)i=Zr.push(i,o.scopeNames),n=new pe(n,i,o.encodedTokenAttributes);return n}static createRoot(t,r){return new pe(null,new Zr(null,t),r)}static createRootAndLookUpScopeName(t,r,n){const i=n.getMetadataForScope(t),o=new Zr(null,t),s=n.themeProvider.themeMatch(o),a=pe.mergeAttributes(r,i,s);return new pe(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return pe.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,n){let i=-1,o=0,s=0;return n!==null&&(i=n.fontStyle,o=n.foregroundId,s=n.backgroundId),Ue.set(t,r.languageId,r.tokenType,null,i,o,s)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return pe._pushAttributed(this,t,r);const n=t.split(/ /g);let i=this;for(const o of n)i=pe._pushAttributed(i,o,r);return i}static _pushAttributed(t,r,n){const i=n.getMetadataForScope(r),o=t.scopePath.push(r),s=n.themeProvider.themeMatch(o),a=pe.mergeAttributes(t.tokenAttributes,i,s);return new pe(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===t?r.reverse():void 0}},re,Pn=(re=class{constructor(t,r,n,i,o,s,a,l){g(this,"_stackElementBrand");g(this,"_enterPos");g(this,"_anchorPos");g(this,"depth");this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(t){return t===null?!1:re._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?bt.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){re._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,i,o,s,a){return new re(this,t,r,n,i,o,s,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new re(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){return{ruleId: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,r){const n=bt.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new re(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,bt.fromExtension(n,r.contentNameScopesList))}},g(re,"NULL",new re(null,0,0,0,!1,null,null,null)),re),$d=class{constructor(e,t){g(this,"balancedBracketScopes");g(this,"unbalancedBracketScopes");g(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):fr(r,_r).map(n=>n.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>fr(r,_r).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Bd=class{constructor(e,t,r,n){g(this,"_emitBinaryTokens");g(this,"_lineText");g(this,"_tokens");g(this,"_binaryTokens");g(this,"_lastTokenEndIndex");g(this,"_tokenTypeOverrides");this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(o)&&(n=Ue.set(n,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(n=Ue.set(n,0,8,i,-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}const r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),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);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}},Fd=class{constructor(e,t){g(this,"_grammars",new Map);g(this,"_rawGrammars",new Map);g(this,"_injectionGrammars",new Map);g(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const 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,r,n,i){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,Nd(e,o,t,r,n,i,this,this._onigLib))}return this._grammars.get(e)}},Gd=class{constructor(t){g(this,"_options");g(this,"_syncRegistry");g(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new Fd(hr.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,r){this._syncRegistry.setTheme(hr.createFromRawTheme(t,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,r,n){return this.loadGrammarWithConfiguration(t,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,r,n){return this._loadGrammar(t,r,n.embeddedLanguages,n.tokenTypes,new $d(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,r,n,i,o){const s=new gd(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(a=>this._loadSingleGrammar(a.scopeName)),s.processQueue();return this._grammarForScopeName(t,r,n,i,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const r=this._options.loadGrammar(t);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(t,r=[],n=0,i=null){return this._syncRegistry.addGrammar(t,r),this._grammarForScopeName(t.scopeName,n,i)}_grammarForScopeName(t,r=0,n=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(t,r,n,i,o)}},On=Pn.NULL;function yr(e,t){const r=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(const[i,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?r[i]=o:i===n&&Object.assign(r,o);return r}function Pe(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function jd(e){return Array.isArray(e)?e:[e]}async function _s(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Dr(e){return!e||["plaintext","txt","text","plain"].includes(e)}function ys(e){return e==="ansi"||Dr(e)}function Nr(e){return e==="none"}function bs(e){return Nr(e)}const Ud=/(\r?\n)/g;function Vr(e,t=!1){if(e.length===0)return[["",0]];const r=e.split(Ud);let n=0;const i=[];for(let o=0;o<r.length;o+=2){const s=t?r[o]+(r[o+1]||""):r[o];i.push([s,n]),n+=r[o].length,n+=r[o+1]?.length||0}return i}const Ii={light:"#333333",dark:"#bbbbbb"},Ti={light:"#fffffe",dark:"#1e1e1e"},Ri="__shiki_resolved";function Mr(e){if(e?.[Ri])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:r,fg:n}=t;if(!r||!n){const a=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;a?.settings?.foreground&&(n=a.settings.foreground),a?.settings?.background&&(r=a.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n=t.type==="light"?Ii.light:Ii.dark),r||(r=t.type==="light"?Ti.light:Ti.dark),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const o=new Map;function s(a){if(o.has(a))return o.get(a);i+=1;const l=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?s(a):(o.set(a,l),l)}t.settings=t.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),u=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!u)return a;const d={...a,settings:{...a.settings}};if(l){const c=s(a.settings.foreground);t.colorReplacements[c]=a.settings.foreground,d.settings.foreground=c}if(u){const c=s(a.settings.background);t.colorReplacements[c]=a.settings.background,d.settings.background=c}return d});for(const a of Object.keys(t.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const l=s(t.colors[a]);t.colorReplacements[l]=t.colors[a],t.colors[a]=l}return Object.defineProperty(t,Ri,{enumerable:!1,writable:!1,value:!0}),t}async function Es(e){return[...new Set((await Promise.all(e.filter(t=>!ys(t)).map(async t=>await _s(t).then(r=>Array.isArray(r)?r:[r])))).flat())]}async function ks(e){return(await Promise.all(e.map(async t=>bs(t)?null:Mr(await _s(t))))).filter(t=>!!t)}function vs(e,t){if(!t)return e;if(t[e]){const r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new N(`Circular alias \`${[...r].join(" -> ")} -> ${e}\``);r.add(e)}}return e}var qd=class extends Gd{constructor(t,r,n,i={}){super(t);g(this,"_resolver");g(this,"_themes");g(this,"_langs");g(this,"_alias");g(this,"_resolvedThemes",new Map);g(this,"_resolvedGrammars",new Map);g(this,"_langMap",new Map);g(this,"_langGraph",new Map);g(this,"_textmateThemeCache",new WeakMap);g(this,"_loadedThemesCache",null);g(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=r,this._langs=n,this._alias=i,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const r=Mr(t);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let r=this._textmateThemeCache.get(t);r||(r=hr.createFromRawTheme(t),this._textmateThemeCache.set(t,r)),this._syncRegistry.setTheme(r)}getGrammar(t){return t=vs(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const r=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const i=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,r.size)for(const o of r)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const i of t)this.resolveEmbeddedLanguages(i);const r=[...this._langGraph.entries()],n=r.filter(([i,o])=>!o);if(n.length){const i=r.filter(([o,s])=>s?(s.embeddedLanguages||s.embeddedLangs)?.some(a=>n.map(([l])=>l).includes(a)):!1).filter(o=>!n.includes(o));throw new N(`Missing languages ${n.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[i,o]of r)this._resolver.addLanguage(o);for(const[i,o]of r)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const r=t.embeddedLanguages??t.embeddedLangs;if(r)for(const n of r)this._langGraph.set(n,this._langMap.get(n))}},zd=class{constructor(e,t){g(this,"_langs",new Map);g(this,"_scopeToLang",new Map);g(this,"_injections",new Map);g(this,"_onigLib");this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}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){const t=e.split(".");let r=[];for(let n=1;n<=t.length;n++){const i=t.slice(0,n).join(".");r=[...r,...this._injections.get(i)||[]]}return r}};let pt=0;function Wd(e){pt+=1,e.warnings!==!1&&pt>=10&&pt%10===0&&console.warn(`[Shiki] ${pt} 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 N("`engine` option is required for synchronous mode");const r=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(Mr),i=new qd(new zd(e.engine,r),n,r,e.langAlias);let o;function s(y){return vs(y,e.langAlias)}function a(y){v();const k=i.getGrammar(typeof y=="string"?y:y.name);if(!k)throw new N(`Language \`${y}\` not found, you may need to load it first`);return k}function l(y){if(y==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const k=i.getTheme(y);if(!k)throw new N(`Theme \`${y}\` not found, you may need to load it first`);return k}function u(y){v();const k=l(y);return o!==y&&(i.setTheme(k),o=y),{theme:k,colorMap:i.getColorMap()}}function d(){return v(),i.getLoadedThemes()}function c(){return v(),i.getLoadedLanguages()}function h(...y){v(),i.loadLanguages(y.flat(1))}async function f(...y){return h(await Es(y))}function m(...y){v();for(const k of y.flat(1))i.loadTheme(k)}async function b(...y){return v(),m(await ks(y))}function v(){if(t)throw new N("Shiki instance has been disposed")}function _(){t||(t=!0,i.dispose(),pt-=1)}return{setTheme:u,getTheme:l,getLanguage:a,getLoadedThemes:d,getLoadedLanguages:c,resolveLangAlias:s,loadLanguage:f,loadLanguageSync:h,loadTheme:b,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function Hd(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,r,n]=await Promise.all([ks(e.themes||[]),Es(e.langs||[]),e.engine]);return Wd({...e,themes:t,langs:r,engine:n})}const ws=new WeakMap;function $r(e,t){ws.set(e,t)}function Tt(e){return ws.get(e)}var Br=class Ss{constructor(...t){g(this,"_stacks",{});g(this,"lang");if(t.length===2){const[r,n]=t;this.lang=n,this._stacks=r}else{const[r,n,i]=t;this.lang=n,this._stacks={[i]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new Ss(Object.fromEntries(jd(r).map(n=>[n,On])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Kd(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Kd(e){const t=[],r=new Set;function n(i){if(r.has(i))return;r.add(i);const o=i?.nameScopesList?.scopeName;o&&t.push(o),i.parent&&n(i.parent)}return n(e),t}function Qd(e,t){if(!(e instanceof Br))throw new N("Invalid grammar state");return e.getInternalStack(t)}const Xd=/,/,Jd=/ /;function Cs(e,t,r={}){const{theme:n=e.getLoadedThemes()[0]}=r;if(Dr(e.resolveLangAlias(r.lang||"text"))||Nr(n))return Vr(t).map(a=>[{content:a[0],offset:a[1]}]);const{theme:i,colorMap:o}=e.setTheme(n),s=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==s.name)throw new N(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${s.name}"`);if(!r.grammarState.themes.includes(i.name))throw new N(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return Yd(t,s,i,o,r)}function Zd(...e){if(e.length===2)return Tt(e[1]);const[t,r,n={}]=e,{lang:i="text",theme:o=t.getLoadedThemes()[0]}=n;if(Dr(i)||Nr(o))throw new N("Plain language does not have grammar state");if(i==="ansi")throw new N("ANSI language does not have grammar state");const{theme:s,colorMap:a}=t.setTheme(o),l=t.getLanguage(i);return new Br(Yn(r,l,s,a,n).stateStack,l.name,s.name)}function Yd(e,t,r,n,i){const o=Yn(e,t,r,n,i),s=new Br(o.stateStack,t.name,r.name);return $r(o.tokens,s),o.tokens}function Yn(e,t,r,n,i){const o=yr(r,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:a=500,includeExplanation:l=!1}=i,u=Vr(e);let d=i.grammarState?Qd(i.grammarState,r.name)??On:i.grammarContextCode!=null?Yn(i.grammarContextCode,t,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:On,c=[];const h=[];for(let f=0,m=u.length;f<m;f++){const[b,v]=u[f];if(b===""){c=[],h.push([]);continue}if(s>0&&b.length>=s){c=[],h.push([{content:b,offset:v,color:"",fontStyle:0}]);continue}let _,y,k;l&&l!=="tokenType"&&(_=t.tokenizeLine(b,d,a),y=_.tokens,k=0);const S=t.tokenizeLine2(b,d,a),C=S.tokens.length/2;for(let A=0;A<C;A++){const I=S.tokens[2*A],P=A+1<C?S.tokens[2*A+2]:b.length;if(I===P)continue;const O=S.tokens[2*A+1],K=Pe(n[Ue.getForeground(O)],o),ct=Ue.getFontStyle(O),T={content:b.substring(I,P),offset:v+I,color:K,fontStyle:ct};if(l==="tokenType")T.type=Ue.getTokenType(O);else if(l){const Q=[];if(l!=="scopeName")for(const V of r.settings){let x;switch(typeof V.scope){case"string":x=V.scope.split(Xd).map(X=>X.trim());break;case"object":x=V.scope;break;default:continue}Q.push({settings:V,selectors:x.map(X=>X.split(Jd))})}T.explanation=[];let M=0;for(;I+M<P;){const V=y[k],x=b.substring(V.startIndex,V.endIndex);M+=x.length,T.explanation.push({content:x,scopes:l==="scopeName"?ep(V.scopes):tp(Q,V.scopes)}),k+=1}}c.push(T)}h.push(c),c=[],d=S.ruleStack}return{tokens:h,stateStack:d}}function ep(e){return e.map(t=>({scopeName:t}))}function tp(e,t){const r=[];for(let n=0,i=t.length;n<i;n++){const o=t[n];r[n]={scopeName:o,themeMatches:np(e,o,t.slice(0,n))}}return r}function Li(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function rp(e,t,r){if(!Li(e.at(-1),t))return!1;let n=e.length-2,i=r.length-1;for(;n>=0&&i>=0;)Li(e[n],r[i])&&(n-=1),i-=1;return n===-1}function np(e,t,r){const n=[];for(const{selectors:i,settings:o}of e)for(const s of i)if(rp(s,t,r)){n.push(o);break}return n}function As(e,t,r,n=Cs){const i=Object.entries(r.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),o=i.map(u=>{const d=n(e,t,{...r,theme:u.theme});return{tokens:d,state:Tt(d),theme:typeof u.theme=="string"?u.theme:u.theme.name}}),s=ip(...o.map(u=>u.tokens)),a=s[0].map((u,d)=>u.map((c,h)=>{const f={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in r&&r.includeExplanation&&(f.explanation=c.explanation),s.forEach((m,b)=>{const{content:v,explanation:_,offset:y,...k}=m[d][h];f.variants[i[b].color]=k}),f})),l=o[0].state?new Br(Object.fromEntries(o.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),o[0].state.lang):void 0;return l&&$r(a,l),a}function ip(...e){const t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){const i=e.map(l=>l[n]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));const s=i.map(()=>0),a=i.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(u=>u.content.length));for(let u=0;u<r;u++){const d=a[u];d.content.length===l?(o[u].push(d),s[u]+=1,a[u]=i[u][s[u]]):(o[u].push({...d,content:d.content.slice(0,l)}),a[u]={...d,content:d.content.slice(l),offset:d.offset+l})}}}return t}const op=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Mt{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Mt.prototype.normal={};Mt.prototype.property={};Mt.prototype.space=void 0;function Is(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Mt(r,n,t)}function xn(e){return e.toLowerCase()}class Z{constructor(t,r){this.attribute=r,this.property=t}}Z.prototype.attribute="";Z.prototype.booleanish=!1;Z.prototype.boolean=!1;Z.prototype.commaOrSpaceSeparated=!1;Z.prototype.commaSeparated=!1;Z.prototype.defined=!1;Z.prototype.mustUseProperty=!1;Z.prototype.number=!1;Z.prototype.overloadedBoolean=!1;Z.prototype.property="";Z.prototype.spaceSeparated=!1;Z.prototype.space=void 0;let sp=0;const R=Xe(),B=Xe(),Dn=Xe(),w=Xe(),D=Xe(),qe=Xe(),Y=Xe();function Xe(){return 2**++sp}const Nn=Object.freeze(Object.defineProperty({__proto__:null,boolean:R,booleanish:B,commaOrSpaceSeparated:Y,commaSeparated:qe,number:w,overloadedBoolean:Dn,spaceSeparated:D},Symbol.toStringTag,{value:"Module"})),en=Object.keys(Nn);class ei extends Z{constructor(t,r,n,i){let o=-1;if(super(t,r),Pi(this,"space",i),typeof n=="number")for(;++o<en.length;){const s=en[o];Pi(this,en[o],(n&Nn[s])===Nn[s])}}}ei.prototype.defined=!0;function Pi(e,t,r){r&&(e[t]=r)}function at(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const o=new ei(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[xn(n)]=n,r[xn(o.attribute)]=n}return new Mt(t,r,e.space)}const Ts=at({properties:{ariaActiveDescendant:null,ariaAtomic:B,ariaAutoComplete:null,ariaBusy:B,ariaChecked:B,ariaColCount:w,ariaColIndex:w,ariaColSpan:w,ariaControls:D,ariaCurrent:null,ariaDescribedBy:D,ariaDetails:null,ariaDisabled:B,ariaDropEffect:D,ariaErrorMessage:null,ariaExpanded:B,ariaFlowTo:D,ariaGrabbed:B,ariaHasPopup:null,ariaHidden:B,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:D,ariaLevel:w,ariaLive:null,ariaModal:B,ariaMultiLine:B,ariaMultiSelectable:B,ariaOrientation:null,ariaOwns:D,ariaPlaceholder:null,ariaPosInSet:w,ariaPressed:B,ariaReadOnly:B,ariaRelevant:null,ariaRequired:B,ariaRoleDescription:D,ariaRowCount:w,ariaRowIndex:w,ariaRowSpan:w,ariaSelected:B,ariaSetSize:w,ariaSort:null,ariaValueMax:w,ariaValueMin:w,ariaValueNow:w,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Rs(e,t){return t in e?e[t]:t}function Ls(e,t){return Rs(e,t.toLowerCase())}const ap=at({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qe,acceptCharset:D,accessKey:D,action:null,allow:null,allowFullScreen:R,allowPaymentRequest:R,allowUserMedia:R,alpha:R,alt:null,as:null,async:R,autoCapitalize:null,autoComplete:D,autoFocus:R,autoPlay:R,blocking:D,capture:null,charSet:null,checked:R,cite:null,className:D,closedBy:null,colorSpace:null,cols:w,colSpan:w,command:null,commandFor:null,content:null,contentEditable:B,controls:R,controlsList:D,coords:w|qe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:R,defer:R,dir:null,dirName:null,disabled:R,download:Dn,draggable:B,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:R,formTarget:null,headers:D,height:w,hidden:Dn,high:w,href:null,hrefLang:null,htmlFor:D,httpEquiv:D,id:null,imageSizes:null,imageSrcSet:null,inert:R,inputMode:null,integrity:null,is:null,isMap:R,itemId:null,itemProp:D,itemRef:D,itemScope:R,itemType:D,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:R,low:w,manifest:null,max:null,maxLength:w,media:null,method:null,min:null,minLength:w,multiple:R,muted:R,name:null,nonce:null,noModule:R,noValidate:R,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:R,optimum:w,pattern:null,ping:D,placeholder:null,playsInline:R,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:R,referrerPolicy:null,rel:D,required:R,reversed:R,rows:w,rowSpan:w,sandbox:D,scope:null,scoped:R,seamless:R,selected:R,shadowRootClonable:R,shadowRootCustomElementRegistry:R,shadowRootDelegatesFocus:R,shadowRootMode:null,shadowRootSerializable:R,shape:null,size:w,sizes:null,slot:null,span:w,spellCheck:B,src:null,srcDoc:null,srcLang:null,srcSet:null,start:w,step:null,style:null,tabIndex:w,target:null,title:null,translate:null,type:null,typeMustMatch:R,useMap:null,value:B,width:w,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:D,axis:null,background:null,bgColor:null,border:w,borderColor:null,bottomMargin:w,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:R,declare:R,event:null,face:null,frame:null,frameBorder:null,hSpace:w,leftMargin:w,link:null,longDesc:null,lowSrc:null,marginHeight:w,marginWidth:w,noResize:R,noHref:R,noShade:R,noWrap:R,object:null,profile:null,prompt:null,rev:null,rightMargin:w,rules:null,scheme:null,scrolling:B,standby:null,summary:null,text:null,topMargin:w,valueType:null,version:null,vAlign:null,vLink:null,vSpace:w,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:R,disablePictureInPicture:R,disableRemotePlayback:R,exportParts:qe,part:D,prefix:null,property:null,results:w,security:null,unselectable:null},space:"html",transform:Ls}),lp=at({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:Y,accentHeight:w,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:w,amplitude:w,arabicForm:null,ascent:w,attributeName:null,attributeType:null,azimuth:w,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:w,by:null,calcMode:null,capHeight:w,className:D,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:w,diffuseConstant:w,direction:null,display:null,dur:null,divisor:w,dominantBaseline:null,download:R,dx:null,dy:null,edgeMode:null,editable:null,elevation:w,enableBackground:null,end:null,event:null,exponent:w,externalResourcesRequired:null,fill:null,fillOpacity:w,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:qe,g2:qe,glyphName:qe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:w,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:w,horizOriginX:w,horizOriginY:w,id:null,ideographic:w,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:w,k:w,k1:w,k2:w,k3:w,k4:w,kernelMatrix:Y,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:w,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:w,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:w,overlineThickness:w,paintOrder:null,panose1:null,path:null,pathLength:w,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:D,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:w,pointsAtY:w,pointsAtZ:w,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Y,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Y,rev:Y,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Y,requiredFeatures:Y,requiredFonts:Y,requiredFormats:Y,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:w,specularExponent:w,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:w,strikethroughThickness:w,string:null,stroke:null,strokeDashArray:Y,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:w,strokeOpacity:w,strokeWidth:null,style:null,surfaceScale:w,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Y,tabIndex:w,tableValues:null,target:null,targetX:w,targetY:w,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Y,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:w,underlineThickness:w,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:w,values:null,vAlphabetic:w,vMathematical:w,vectorEffect:null,vHanging:w,vIdeographic:w,version:null,vertAdvY:w,vertOriginX:w,vertOriginY:w,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:w,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Rs}),Ps=at({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()}}),Os=at({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ls}),xs=at({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),up=/[A-Z]/g,Oi=/-[a-z]/g,cp=/^data[-\w.:]+$/i;function dp(e,t){const r=xn(t);let n=t,i=Z;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&cp.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Oi,hp);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Oi.test(o)){let s=o.replace(up,pp);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=ei}return new i(n,t)}function pp(e){return"-"+e.toLowerCase()}function hp(e){return e.charAt(1).toUpperCase()}const fp=Is([Ts,ap,Ps,Os,xs],"html"),Ds=Is([Ts,lp,Ps,Os,xs],"svg"),xi={}.hasOwnProperty;function mp(e,t){const r=t||{};function n(i,...o){let s=n.invalid;const a=n.handlers;if(i&&xi.call(i,e)){const l=String(i[e]);s=xi.call(a,l)?a[l]:n.unknown}if(s)return s.call(this,i,...o)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const gp=/["&'<>`]/g,_p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yp=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,bp=/[|\\{}()[\]^$+*?.]/g,Di=new WeakMap;function Ep(e,t){if(e=e.replace(t.subset?kp(t.subset):gp,n),t.subset||t.escapeOnly)return e;return e.replace(_p,r).replace(yp,n);function r(i,o,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function n(i,o,s){return t.format(i.charCodeAt(0),s.charCodeAt(o+1),t)}}function kp(e){let t=Di.get(e);return t||(t=vp(e),Di.set(e,t)),t}function vp(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(bp,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const wp=/[\dA-Fa-f]/;function Sp(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!wp.test(String.fromCharCode(t))?n:n+";"}const Cp=/\d/;function Ap(e,t,r){const n="&#"+String(e);return r&&t&&!Cp.test(String.fromCharCode(t))?n:n+";"}const Ip=["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"],tn={nbsp:" ",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:"€"},Tp=["cent","copy","divide","gt","lt","not","para","times"],Ns={}.hasOwnProperty,Vn={};let qt;for(qt in tn)Ns.call(tn,qt)&&(Vn[tn[qt]]=qt);const Rp=/[^\dA-Za-z]/;function Lp(e,t,r,n){const i=String.fromCharCode(e);if(Ns.call(Vn,i)){const o=Vn[i],s="&"+o;return r&&Ip.includes(o)&&!Tp.includes(o)&&(!n||t&&t!==61&&Rp.test(String.fromCharCode(t)))?s:s+";"}return""}function Pp(e,t,r){let n=Sp(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=Lp(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const o=Ap(e,t,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function ot(e,t){return Ep(e,Object.assign({format:Pp},t))}const Op=/^>|^->|<!--|-->|--!>|<!-$/g,xp=[">"],Dp=["<",">"];function Np(e,t,r,n){return n.settings.bogusComments?"<?"+ot(e.value,Object.assign({},n.settings.characterReferences,{subset:xp}))+">":"<!--"+e.value.replace(Op,i)+"-->";function i(o){return ot(o,Object.assign({},n.settings.characterReferences,{subset:Dp}))}}function Vp(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Ni(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}function Mp(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function $p(e){return e.join(" ").trim()}const Bp=/[ \t\n\f\r]/g;function ti(e){return typeof e=="object"?e.type==="text"?Vi(e.value):!1:Vi(e)}function Vi(e){return e.replace(Bp,"")===""}const U=Ms(1),Vs=Ms(-1),Fp=[];function Ms(e){return t;function t(r,n,i){const o=r?r.children:Fp;let s=(n||0)+e,a=o[s];if(!i)for(;a&&ti(a);)s+=e,a=o[s];return a}}const Gp={}.hasOwnProperty;function $s(e){return t;function t(r,n,i){return Gp.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const ri=$s({body:Up,caption:rn,colgroup:rn,dd:Hp,dt:Wp,head:rn,html:jp,li:zp,optgroup:Kp,option:Qp,p:qp,rp:Mi,rt:Mi,tbody:Jp,td:$i,tfoot:Zp,th:$i,thead:Xp,tr:Yp});function rn(e,t,r){const n=U(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&ti(n.value.charAt(0)))}function jp(e,t,r){const n=U(r,t);return!n||n.type!=="comment"}function Up(e,t,r){const n=U(r,t);return!n||n.type!=="comment"}function qp(e,t,r){const n=U(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function zp(e,t,r){const n=U(r,t);return!n||n.type==="element"&&n.tagName==="li"}function Wp(e,t,r){const n=U(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Hp(e,t,r){const n=U(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Mi(e,t,r){const n=U(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function Kp(e,t,r){const n=U(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function Qp(e,t,r){const n=U(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function Xp(e,t,r){const n=U(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Jp(e,t,r){const n=U(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function Zp(e,t,r){return!U(r,t)}function Yp(e,t,r){const n=U(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function $i(e,t,r){const n=U(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const eh=$s({body:nh,colgroup:ih,head:rh,html:th,tbody:oh});function th(e){const t=U(e,-1);return!t||t.type!=="comment"}function rh(e){const t=new Set;for(const 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)}const r=e.children[0];return!r||r.type==="element"}function nh(e){const t=U(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ti(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function ih(e,t,r){const n=Vs(r,t),i=U(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&ri(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function oh(e,t,r){const n=Vs(r,t),i=U(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&ri(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const zt={name:[[`
|
|
5
5
|
\f\r &/=>`.split(""),`
|
|
@@ -155,4 +155,4 @@ XID_Start XIDS`.split(/\s/).map(e=>[Gr(e),e])),nm=new Map([["s",j(383)],[j(383),
|
|
|
155
155
|
`,s)):(s=r+1,r=e.indexOf("\r",s)):(s=n+1,n=e.indexOf(`
|
|
156
156
|
`,s)),t.push(s),++o===og){if(s-i<=sg){for(let a=s;a<e.length;a++){const l=e.charCodeAt(a);(l===po||l===ho)&&(l===ho&&a+1<e.length&&e.charCodeAt(a+1)===po&&a++,t.push(a+1))}return t}i=s,o=0}}return t}function lg(e){const t=ag(e);return Array.from({length:t.length},(r,n)=>{const i=t[n],o=t[n+1]??e.length;return e.slice(i,o)})}function zn(e,t){for(const r of t)e.push(r)}function va(e){return{type:"text",value:e}}function Ke({tagName:e,children:t=[],properties:r={}}){return{type:"element",tagName:e,properties:r,children:t}}function Hy({name:e,width:t=16,height:r=16,properties:n}){return Ke({tagName:"svg",properties:{width:t,height:r,viewBox:"0 0 16 16",...n},children:[Ke({tagName:"use",properties:{href:`#${e.replace(/^#/,"")}`}})]})}function ug(e){let t=e.children[0];for(;t!=null;){if(t.type==="element"&&t.tagName==="code")return t;"children"in t?t=t.children[0]:t=null}}function Ky(e){return Ke({tagName:"div",properties:{"data-gutter":""},children:e})}function Qy(e,t,r,n={}){return Ke({tagName:"div",properties:{"data-line-type":e,"data-column-number":t,"data-line-index":r,...n},children:t!=null?[Ke({tagName:"span",properties:{"data-line-number-content":""},children:[va(`${t}`)]})]:void 0})}function Xy(e,t,r){return Ke({tagName:"div",properties:{"data-gutter-buffer":t,"data-buffer-size":r,"data-line-type":t==="annotation"?void 0:e,style:t==="annotation"?`grid-row: span ${r};`:`grid-row: span ${r};min-height:calc(${r} * 1lh);`}})}function cg(e,t,r){const n=typeof r.lineInfo=="function"?r.lineInfo(t):r.lineInfo[t-1];if(n==null){const i=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(i,{node:e,line:t,state:r}),new Error(i)}return e.tagName="div",e.properties["data-line"]=n.lineNumber,e.properties["data-alt-line"]=n.altLineNumber,e.properties["data-line-type"]=n.type,e.properties["data-line-index"]=n.lineIndex,e.children.length===0&&e.children.push(va(`
|
|
157
157
|
`)),e}const Qt=Symbol("no-token"),fn=Symbol("multiple-tokens");function wa(e){const t=dg(e);if(t!=null)return t;let r=Qt;const n=[];let i=[],o;const s=()=>{if(i.length===0||o==null){i=[],o=void 0;return}if(i.length===1){const l=i[0];if(l?.type==="element"){pg(l,o);for(const u of l.children)lr(u)}else lr(l);n.push(l),i=[],o=void 0;return}for(const l of i)lr(l);n.push(Ke({tagName:"span",properties:{"data-char":o},children:i})),i=[],o=void 0},a=l=>{if(l!==Qt){if(l===fn){r=fn;return}if(r===Qt){r=l;return}r!==l&&(r=fn)}};for(const l of e.children){const u=l.type==="element"?wa(l):Qt;if(a(u),typeof u!="number"){s(),n.push(l);continue}o!=null&&o!==u&&s(),o??=u,i.push(l)}return s(),e.children=n,r}function dg(e){const t=e.properties["data-char"];if(typeof t=="number")return t}function lr(e){if(e.type==="element"){e.properties["data-char"]=void 0;for(const t of e.children)lr(t)}}function pg(e,t){e.properties["data-char"]=t}function hg(e={}){const{classPrefix:t="__shiki_",classSuffix:r="",classReplacer:n=a=>a}=e,i=new Map;function o(a){return Object.entries(a).map(([l,u])=>`${l}:${u}`).join(";")}function s(a){const l=typeof a=="string"?a:o(a);let u=t+fg(l)+r;return u=n(u),i.has(u)||i.set(u,typeof a=="string"?a:{...a}),u}return{name:"@shikijs/transformers:style-to-class",pre(a){if(!a.properties.style)return;const l=s(a.properties.style);delete a.properties.style,this.addClassToHast(a,l)},tokens(a){for(const l of a)for(const u of l){if(!u.htmlStyle)continue;const d=s(u.htmlStyle);u.htmlStyle={},u.htmlAttrs||={},u.htmlAttrs.class?u.htmlAttrs.class+=` ${d}`:u.htmlAttrs.class=d}},getClassRegistry(){return i},getCSS(){let a="";for(const[l,u]of i.entries())a+=`.${l}{${typeof u=="string"?u:o(u)}}`;return a},clearRegistry(){i.clear()}}}function fg(e,t=0){let r=3735928559^t,n=1103547991^t;for(let i=0,o;i<e.length;i++)o=e.charCodeAt(i),r=Math.imul(r^o,2654435761),n=Math.imul(n^o,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),(4294967296*(2097151&n)+(r>>>0)).toString(36).slice(0,6)}function Sa(e=!1,t=!1){const r={lineInfo:[]},n=[{line(i){return delete i.properties.class,i},pre(i){const o=ug(i),s=[];if(o!=null){let a=1;for(const l of o.children)l.type==="element"&&(e&&wa(l),s.push(cg(l,a,r)),a++);o.children=s}return i},...e?{tokens(i){for(const o of i){let s=0;for(const a of o){const l=a;l.__lineChar??=s,s+=a.content.length}}},preprocess(i,o){o.mergeWhitespaces="never"},span(i,o,s,a,l){if(l?.offset!=null&&l.content!=null){const u=l.__lineChar;return u!=null&&(i.properties["data-char"]=u),i}return i}}:null}];return t&&n.push(mg,fo),e&&n.push({line:i=>(i.type==="element"&&i.children.length===0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]}),i)}),{state:r,transformers:n,toClass:fo}}const fo=hg({classPrefix:"hl-"}),mg={name:"token-style-normalizer",tokens(e){for(const t of e)for(const r of t){if(r.htmlStyle!=null)continue;const n={};r.color!=null&&(n.color=r.color),r.bgColor!=null&&(n["background-color"]=r.bgColor),r.fontStyle!=null&&r.fontStyle!==0&&((r.fontStyle&1)!==0&&(n["font-style"]="italic"),(r.fontStyle&2)!==0&&(n["font-weight"]="bold"),(r.fontStyle&4)!==0&&(n["text-decoration"]="underline")),Object.keys(n).length>0&&(r.htmlStyle=n)}}};function ee(e){return`--${e==="token"?"diffs-token":"diffs"}-`}const gg=/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i,_g=/^0(?:\.0+)?%?$/;function yg(e){const t=e.indexOf("(");if(t<=0||!e.endsWith(")"))return;const r=e.slice(0,t).trim();if(!/^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)$/i.test(r))return;const n=e.slice(t+1,-1).trim();if(n.length===0)return;const i=n.lastIndexOf("/");if(i!==-1)return n.slice(i+1).trim();if(/^(?:rgba|hsla)$/i.test(r)){const o=n.split(",");if(o.length===4)return o[3]?.trim()}}function bg(e){const t=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})\b/i.exec(e.trim());if(t==null)return null;const r=t[1];let n,i=1;return r.length===3?n=r.split("").map(o=>o+o).join(""):r.length===6?n=r:(n=r.slice(0,6),i=parseInt(r.slice(6,8),16)/255),[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16),i]}function mn(e){if(e==null)return null;const t=bg(e);if(t==null)return null;const r=t[0]/255,n=t[1]/255,i=t[2]/255,o=s=>s<=.03928?s/12.92:((s+.055)/1.055)**2.4;return .2126*o(r)+.7152*o(n)+.0722*o(i)}function mo(e){if(e==null)return!1;const t=e.trim().toLowerCase();if(t==="transparent"||gg.test(t))return!0;const r=yg(t);return r!=null&&_g.test(r)}function Eg(e,t,r){if(t==null||r==null)return!1;const n=mn(e),i=mn(t),o=mn(r);return n==null||i==null||o==null?!1:Math.abs(n-o)<Math.abs(n-i)}const go=new WeakMap;function gn(e){const t=go.get(e);if(t!=null)return t;const r=e.colors??{},n={...r},i=r["editor.background"]??e.bg,o=r["editor.foreground"]??e.fg,s=r["sideBar.background"]??i,a=r["sideBar.foreground"]??o;ce(n,"editor.background",i),ce(n,"editor.foreground",o),ce(n,"sideBar.background",s),ce(n,"sideBar.foreground",a),ce(n,"input.background",r["input.background"]??s),ce(n,"sideBarSectionHeader.foreground",r["sideBarSectionHeader.foreground"]??a),ce(n,"list.activeSelectionForeground",r["list.activeSelectionForeground"]??a),ce(n,"gitDecoration.addedResourceForeground",_n(r["gitDecoration.addedResourceForeground"],r["terminal.ansiGreen"],r["editorGutter.addedBackground"])),ce(n,"gitDecoration.modifiedResourceForeground",_n(r["gitDecoration.modifiedResourceForeground"],r["terminal.ansiBlue"],r["editorGutter.modifiedBackground"])),ce(n,"gitDecoration.deletedResourceForeground",_n(r["gitDecoration.deletedResourceForeground"],r["terminal.ansiRed"],r["editorGutter.deletedBackground"]));const l=(mo(r["list.focusOutline"])?void 0:r["list.focusOutline"])??(mo(r.focusBorder)?void 0:r.focusBorder);l!=null?n["list.focusOutline"]=l:delete n["list.focusOutline"];const u=r["list.hoverBackground"];u!=null&&(kg(u,s)||Eg(u,s,a))&&delete n["list.hoverBackground"];const d=Object.freeze({...e,colors:Object.freeze(n)});return go.set(e,d),d}function ce(e,t,r){r!=null&&r!==""&&(e[t]=r)}function _n(...e){for(const t of e)if(t!=null&&t!=="")return t}function kg(e,t){return t!=null&&e.toLowerCase()===t.toLowerCase()}function Ca({theme:e=pr,highlighter:t,prefix:r}){let n="";if(typeof e=="string"){const i=t.getTheme(e),o=gn(i);n+=`color:${o.fg};`,n+=`background-color:${o.bg};`,n+=`${ee("global")}fg:${o.fg};`,n+=`${ee("global")}bg:${o.bg};`,n+=yn(i,r)}else{let i=t.getTheme(e.dark),o=gn(i);n+=`${ee("global")}dark:${o.fg};`,n+=`${ee("global")}dark-bg:${o.bg};`,n+=yn(i,"dark"),i=t.getTheme(e.light),o=gn(i),n+=`${ee("global")}light:${o.fg};`,n+=`${ee("global")}light-bg:${o.bg};`,n+=yn(i,"light")}return n}function yn(e,t){t=t!=null?`${t}-`:"";let r="";const n=e.colors?.["gitDecoration.addedResourceForeground"]??e.colors?.["terminal.ansiGreen"];n!=null&&(r+=`${ee("global")}${t}addition-color:${n};`);const i=e.colors?.["gitDecoration.deletedResourceForeground"]??e.colors?.["terminal.ansiRed"];i!=null&&(r+=`${ee("global")}${t}deletion-color:${i};`);const o=e.colors?.["gitDecoration.modifiedResourceForeground"]??e.colors?.["terminal.ansiBlue"];return o!=null&&(r+=`${ee("global")}${t}modified-color:${o};`),r}function Wn(e){let t=e.children[0];for(;t!=null;){if(t.type==="element"&&t.tagName==="code")return t.children;"children"in t?t=t.children[0]:t=null}throw console.error(e),new Error("getLineNodes: Unable to find children")}const vg={forcePlainText:!1};function wg(e,t,{theme:r,tokenizeMaxLineLength:n,useTokenTransformer:i},{forcePlainText:o,startingLine:s,totalLines:a,lines:l}=vg){o?(s??=0,a??=1/0):(s=0,a=1/0);const u=s>0||a<1/0,{state:d,transformers:c}=Sa(i),h=o?"text":e.lang??Ce(e.name),f=typeof r=="string"?t.getTheme(r).type:void 0,m=Ca({theme:r,highlighter:t});d.lineInfo=y=>({type:"context",lineIndex:y-1+s,lineNumber:y+s});const b=typeof r=="string"?{lang:h,theme:r,transformers:c,defaultColor:!1,cssVariablePrefix:ee("token"),tokenizeMaxLineLength:n,tokenizeTimeLimit:0}:{lang:h,themes:r,transformers:c,defaultColor:!1,cssVariablePrefix:ee("token"),tokenizeMaxLineLength:n,tokenizeTimeLimit:0},v=Wn(t.codeToHast(Sg(u?Cg(l??lg(e.contents),s,a):e.contents),b)),_=u?new Array(s):v;return u&&zn(_,v),{code:_,themeStyles:m,baseThemeType:f}}function Sg(e){return e.replace(/\r(?!\n)/g,`
|
|
158
|
-
`)}function Cg(e,t,r){if(e.length===0)return"";const n=Math.min(t+r,e.length);return e.slice(t,n).join("")}function Ag(e,t){return e?.cacheKey!=null||t?.cacheKey!=null?e?.cacheKey===t?.cacheKey:e===t}function Ig(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}function Xt(e,t){return li(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength&&e.lineDiffType===t.lineDiffType&&e.maxLineDiffLength===t.maxLineDiffLength}function _o(e){const t=e.lang??Ce(e.name),r=e.lang??(e.prevName!=null?Ce(e.prevName):"text");return t==="text"&&r==="text"}function Sr(e,t){return e-(t===0?0:1)}function Lt(e,t){return Sr(e,t)+t}function Jy(e){return{...bc,...e}}function Zy(e,t){const r=Tg(e,t);return t?r:e.diffHeaderHeight+r}function Tg(e,t){return e.paddingTop??(t?e.spacing:0)}function Yy(e){return e.paddingBottom??e.spacing}function Rg(e){switch(e){case"simple":return 4;case"metadata":case"line-info":case"line-info-basic":case"custom":return 32}}function Hn(e){return[Sr(e.additionStart,e.additionCount)+1,Lt(e.additionStart,e.additionCount)+1]}function qr({isPartial:e,rangeSize:t,expandedHunks:r,hunkIndex:n,collapsedContextThreshold:i}){const o=Math.max(t,0);if(o===0||e)return{fromStart:0,fromEnd:0,rangeSize:o,collapsedLines:o,renderAll:!1};if(r===!0||o<=i)return{fromStart:o,fromEnd:0,rangeSize:o,collapsedLines:0,renderAll:!0};const s=r?.get(n),a=Math.min(Math.max(s?.fromStart??0,0),o),l=Math.min(Math.max(s?.fromEnd??0,0),o),u=a+l,d=u>=o;return{fromStart:d?o:a,fromEnd:d?0:l,rangeSize:o,collapsedLines:Math.max(o-u,0),renderAll:d}}function eb(e){const t=e.hunks[e.hunks.length-1];if(t==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0)return!1;const r=e.additionLines.length-Lt(t.additionStart,t.additionCount),n=e.deletionLines.length-Lt(t.deletionStart,t.deletionCount);return r<=0&&n<=0?!1:r!==n}function Lg({fileDiff:e,errorPrefix:t}){const r=e.hunks[e.hunks.length-1];if(r==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0)return 0;const n=e.additionLines.length-Lt(r.additionStart,r.additionCount),i=e.deletionLines.length-Lt(r.deletionStart,r.deletionCount);if(n<=0&&i<=0)return 0;if(n!==i)throw new Error(`${t}: trailing context mismatch (additions=${n}, deletions=${i}) for ${e.name}`);return Math.min(n,i)}function zr({fileDiff:e,hunkIndex:t,expandedHunks:r,collapsedContextThreshold:n,errorPrefix:i}){if(t!==e.hunks.length-1)return;const o=Lg({fileDiff:e,errorPrefix:i});if(o<=0)return;if(r===!0||o<=n)return{fromStart:o,fromEnd:0,rangeSize:o,collapsedLines:0,renderAll:!0};const s=r?.get(e.hunks.length),a=Math.min(Math.max(s?.fromStart??0,0),o);return{fromStart:a,fromEnd:0,rangeSize:o,collapsedLines:o-a,renderAll:a>=o}}function tb({fileDiff:e,lineNumber:t,expandedHunks:r,collapsedContextThreshold:n}){if(r===!0||e.isPartial)return!0;for(const[a,l]of e.hunks.entries()){const[u,d]=Hn(l);if(t<u){const c=qr({isPartial:e.isPartial,rangeSize:l.collapsedBefore,expandedHunks:r,hunkIndex:a,collapsedContextThreshold:n}),h=u-c.rangeSize;return c.renderAll||t<h+c.fromStart||t>=u-c.fromEnd}if(t<d)return!0}const i=zr({fileDiff:e,hunkIndex:e.hunks.length-1,expandedHunks:r,collapsedContextThreshold:n,errorPrefix:"isAdditionLineRenderable"});if(i==null||i.renderAll)return!0;const o=e.hunks[e.hunks.length-1],[,s]=Hn(o);return t<s+i.fromStart||t>=s+i.rangeSize}function rb({fileDiff:e,lineNumber:t,direction:r,expandedHunks:n,collapsedContextThreshold:i}){if(n===!0||e.isPartial)return t;const o=[];let s=1;for(const[l,u]of e.hunks.entries()){const[d,c]=Hn(u),h=qr({isPartial:e.isPartial,rangeSize:u.collapsedBefore,expandedHunks:n,hunkIndex:l,collapsedContextThreshold:i}),f=d-h.rangeSize;h.renderAll?o.push([f,d]):(h.fromStart>0&&o.push([f,f+h.fromStart]),h.fromEnd>0&&o.push([d-h.fromEnd,d])),o.push([d,c]),s=c}const a=zr({fileDiff:e,hunkIndex:e.hunks.length-1,expandedHunks:n,collapsedContextThreshold:i,errorPrefix:"getNearestRenderableAdditionLine"});if(a!=null){const l=s;s=l+a.rangeSize,a.renderAll?o.push([l,s]):a.fromStart>0&&o.push([l,l+a.fromStart])}if(t>=s)return t;if(r==="down"){for(const[l,u]of o)if(u>t)return Math.max(l,t);return}for(let l=o.length-1;l>=0;l--){const[u,d]=o[l];if(u<=t)return Math.min(d-1,t)}}function Aa({type:e,metrics:t}){return t.hunkSeparatorHeight??Rg(e)}function Ia({type:e,metrics:t}){return e==="simple"||e==="metadata"||e==="line-info-basic"?0:t.spacing}function Pg({type:e,hunkIndex:t,hunkSpecs:r}){switch(e){case"simple":return t>0;case"metadata":return r!=null;case"line-info":case"line-info-basic":case"custom":return!0}}function Og(e){return e!=="simple"&&e!=="metadata"}function nb({type:e,metrics:t,hunkIndex:r,hunkSpecs:n}){if(!Pg({type:e,hunkIndex:r,hunkSpecs:n}))return;const i=Aa({type:e,metrics:t}),o=Ia({type:e,metrics:t}),s=r>0?o:0,a=o;return{height:i,gapBefore:s,gapAfter:a,totalHeight:s+i+a}}function ib({type:e,metrics:t}){if(!Og(e))return;const r=Aa({type:e,metrics:t}),n=Ia({type:e,metrics:t});return{height:r,gapBefore:n,gapAfter:0,totalHeight:n+r}}function xg({diff:e,diffStyle:t,startingLine:r=0,totalLines:n=1/0,expandedHunks:i,collapsedContextThreshold:o=1,callback:s}){const a=Dg({diff:e,diffStyle:t,startingLine:r,expandedHunks:i,collapsedContextThreshold:o}),l={viewportStart:r,viewportEnd:r+n,isWindowedHighlight:r>0||n<1/0,splitCount:a.splitCount,unifiedCount:a.unifiedCount,finalHunkIndex:e.hunks.length-1,shouldBreak(){if(!l.isWindowedHighlight)return!1;const u=l.unifiedCount>=r+n,d=l.splitCount>=r+n;return t==="unified"?u:(t==="split"||u)&&d},shouldSkip(u,d){if(!l.isWindowedHighlight)return!1;const c=u>0&&l.unifiedCount+u<=r,h=d>0&&l.splitCount+d<=r;return t==="unified"?c:(t==="split"||c)&&h},incrementCounts(u,d){(t==="unified"||t==="both")&&(l.unifiedCount+=u),(t==="split"||t==="both")&&(l.splitCount+=d)},isInWindow(u,d){if(!l.isWindowedHighlight)return!0;const c=l.isInUnifiedWindow(u),h=l.isInSplitWindow(d);return t==="unified"?c:t==="split"?h:c||h},isInUnifiedWindow(u){return!l.isWindowedHighlight||l.unifiedCount>=r-u&&l.unifiedCount<r+n},isInSplitWindow(u){return!l.isWindowedHighlight||l.splitCount>=r-u&&l.splitCount<r+n},emit(u,d=!1){return d||(t==="unified"?l.incrementCounts(1,0):t==="split"?l.incrementCounts(0,1):l.incrementCounts(1,1)),s(u)??!1}};e:for(let u=a.hunkIndex;u<e.hunks.length;u++){let y=function(T,Q){return v==null||v.collapsedLines<=0||v.fromStart+v.fromEnd>0?0:t==="unified"?T===d.unifiedLineStart+d.unifiedLineCount-1?v.collapsedLines:0:Q===d.splitLineStart+d.splitLineCount-1?v.collapsedLines:0},S=function(){return k?0:(k=!0,b.collapsedLines)};const d=e.hunks[u];if(d==null)throw new Error("iterateOverDiff: invalid hunk index");if(l.shouldBreak())break;const c=Sr(d.deletionStart,d.deletionCount),h=Sr(d.additionStart,d.additionCount),f=!e.isPartial&&d.deletionCount===0?c:d.deletionLineIndex,m=!e.isPartial&&d.additionCount===0?h:d.additionLineIndex,b=qr({isPartial:e.isPartial,rangeSize:d.collapsedBefore,expandedHunks:i,hunkIndex:u,collapsedContextThreshold:o}),v=u===l.finalHunkIndex?zr({fileDiff:e,hunkIndex:u,expandedHunks:i,collapsedContextThreshold:o,errorPrefix:"iterateOverDiff"}):void 0,_=b.fromStart+b.fromEnd;let k=b.collapsedLines===0;if(l.shouldSkip(_,_))l.incrementCounts(_,_),S();else{let T=d.unifiedLineStart-b.rangeSize,Q=d.splitLineStart-b.rangeSize,M=f-b.rangeSize,V=m-b.rangeSize,x=c+1-b.rangeSize,X=h+1-b.rangeSize;if(Jt(l,b.fromStart,t,F=>l.emit({hunkIndex:u,hunk:d,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:x+F,lineIndex:M+F,noEOFCR:!1,unifiedLineIndex:T+F,splitLineIndex:Q+F},additionLine:{unifiedLineIndex:T+F,splitLineIndex:Q+F,lineIndex:V+F,lineNumber:X+F,noEOFCR:!1}}))||(T=d.unifiedLineStart-b.fromEnd,Q=d.splitLineStart-b.fromEnd,M=f-b.fromEnd,V=m-b.fromEnd,x=c+1-b.fromEnd,X=h+1-b.fromEnd,Jt(l,b.fromEnd,t,F=>l.emit({hunkIndex:u,hunk:d,collapsedBefore:S(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:x+F,lineIndex:M+F,noEOFCR:!1,unifiedLineIndex:T+F,splitLineIndex:Q+F},additionLine:{unifiedLineIndex:T+F,splitLineIndex:Q+F,lineIndex:V+F,lineNumber:X+F,noEOFCR:!1}}),()=>{S()})))break e}let C=d.unifiedLineStart,A=d.splitLineStart,I=f,P=m,O=c+1,K=h+1;const ct=d.hunkContent.at(-1);for(const T of d.hunkContent){if(l.shouldBreak())break e;const Q=T===ct;if(T.type==="context"){if(l.shouldSkip(T.lines,T.lines))l.incrementCounts(T.lines,T.lines),S();else if(Jt(l,T.lines,t,M=>{const V=Q&&M===T.lines-1,x=C+M,X=A+M;return l.emit({hunkIndex:u,hunk:d,collapsedBefore:S(),collapsedAfter:y(x,X),type:"context",deletionLine:{lineNumber:O+M,lineIndex:I+M,noEOFCR:V&&d.noEOFCRDeletions,unifiedLineIndex:x,splitLineIndex:X},additionLine:{unifiedLineIndex:x,splitLineIndex:X,lineIndex:P+M,lineNumber:K+M,noEOFCR:V&&d.noEOFCRAdditions}})},()=>{S()}))break e;C+=T.lines,A+=T.lines,I+=T.lines,P+=T.lines,O+=T.lines,K+=T.lines}else{const M=Math.max(T.deletions,T.additions),V=T.deletions+T.additions;if(!l.shouldSkip(V,M)){const x=Mg(l,T,t);(x[0]?.[0]??0)>0&&S();for(const[X,F]of x)for(let Ae=X;Ae<F;Ae++){const Ka=y(C+Ae,t==="unified"?A+(Ae<T.deletions?Ae:Ae-T.deletions):A+Ae);if(l.emit($g({hunkIndex:u,hunk:d,collapsedBefore:S(),collapsedAfter:Ka,diffStyle:t,index:Ae,unifiedLineIndex:C,splitLineIndex:A,additionLineIndex:P,deletionLineIndex:I,additionLineNumber:K,deletionLineNumber:O,content:T,isLastContent:Q,unifiedCount:V,splitCount:M}),!0))break e}}S(),l.incrementCounts(V,M),C+=V,A+=M,I+=T.deletions,P+=T.additions,O+=T.deletions,K+=T.additions}}if(v!=null){const{collapsedLines:T,fromStart:Q,fromEnd:M}=v,V=Q+M;if(Jt(l,V,t,x=>{const X=x===V-1;return l.emit({hunkIndex:e.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:X?T:0,type:"context-expanded",deletionLine:{lineNumber:O+x,lineIndex:I+x,noEOFCR:!1,unifiedLineIndex:C+x,splitLineIndex:A+x},additionLine:{unifiedLineIndex:C+x,splitLineIndex:A+x,lineIndex:P+x,lineNumber:K+x,noEOFCR:!1}})},void 0,()=>l.shouldBreak()))break e}}}function Dg({diff:e,diffStyle:t,startingLine:r,expandedHunks:n,collapsedContextThreshold:i}){if(r<=0||t==="both")return{hunkIndex:0,splitCount:0,unifiedCount:0};const o=Ng({diff:e,expandedHunks:n,collapsedContextThreshold:i});let s=0,a=e.hunks.length-1,l=e.hunks.length;for(;s<=a;){const d=s+a>>1,c=o[d+1];if(c==null)throw new Error("iterateOverDiff: invalid hunk prefix index");(t==="unified"?c.unifiedCount:c.splitCount)>r?(l=d,a=d-1):s=d+1}if(l>=e.hunks.length){const d=o[e.hunks.length];if(d==null)throw new Error("iterateOverDiff: invalid terminal hunk prefix index");return{hunkIndex:e.hunks.length,splitCount:d.splitCount,unifiedCount:d.unifiedCount}}const u=o[l];if(u==null)throw new Error("iterateOverDiff: invalid selected hunk prefix index");return{hunkIndex:l,splitCount:u.splitCount,unifiedCount:u.unifiedCount}}function Ng({diff:e,expandedHunks:t,collapsedContextThreshold:r}){let n=0,i=0;const o=e.hunks.length-1,s=[{splitCount:0,unifiedCount:0}];for(let a=0;a<e.hunks.length;a++){const l=e.hunks[a];if(l==null)throw new Error("iterateOverDiff: invalid hunk summary index");const u=qr({isPartial:e.isPartial,rangeSize:l.collapsedBefore,expandedHunks:t,hunkIndex:a,collapsedContextThreshold:r}),d=u.fromStart+u.fromEnd;n+=d+l.splitLineCount,i+=d+l.unifiedLineCount;const c=a===o?zr({fileDiff:e,hunkIndex:a,expandedHunks:t,collapsedContextThreshold:r,errorPrefix:"iterateOverDiff"}):void 0;if(c!=null){const h=c.fromStart+c.fromEnd;n+=h,i+=h}s.push({splitCount:n,unifiedCount:i})}return s}function Vg(e,t,r){if(!e.isWindowedHighlight||t<=0)return[0,t];const n=[];function i(a){const l=Math.max(0,e.viewportStart-a),u=Math.min(t,e.viewportEnd-a);u>l&&n.push([l,u])}if(r!=="split"&&i(e.unifiedCount),r!=="unified"&&i(e.splitCount),n.length===0)return[0,0];let o=n[0][0],s=n[0][1];for(let a=1;a<n.length;a++){const l=n[a];o=Math.min(o,l[0]),s=Math.max(s,l[1])}return[o,s]}function Jt(e,t,r,n,i,o){const[s,a]=Vg(e,t,r);s>0&&(e.incrementCounts(s,s),i?.());let l=s;for(;l<t;){if(o?.()===!0)return!0;if(l>=a){e.incrementCounts(t-l,t-l);break}if(e.isInWindow(0,0)){if(n(l)===!0)return!0}else e.incrementCounts(1,1);l++}return!1}function Mg(e,t,r){if(!e.isWindowedHighlight)return[[0,r==="unified"?t.deletions+t.additions:Math.max(t.deletions,t.additions)]];const n=r!=="split",i=r!=="unified",o=r==="unified"?"unified":"split",s=[];function a(c,h){if(c+h<=e.viewportStart||c>=e.viewportEnd)return;const f=Math.max(0,e.viewportStart-c),m=Math.min(h,e.viewportEnd-c);return m>f?[f,m]:void 0}function l(c,h){return o==="split"?c:h==="additions"?[c[0]+t.deletions,c[1]+t.deletions]:c}function u(c,h){if(c==null)return;const[f,m]=l(c,h);m>f&&s.push([f,m])}if(n&&(u(a(e.unifiedCount,t.deletions),"deletions"),u(a(e.unifiedCount+t.deletions,t.additions),"additions")),i&&(u(a(e.splitCount,t.deletions),"deletions"),u(a(e.splitCount,t.additions),"additions")),s.length===0)return s;s.sort((c,h)=>c[0]-h[0]);const d=[s[0]];for(const[c,h]of s.slice(1)){const f=d[d.length-1];c<=f[1]?f[1]=Math.max(f[1],h):d.push([c,h])}return d}function $g({hunkIndex:e,hunk:t,collapsedAfter:r,collapsedBefore:n,diffStyle:i,index:o,unifiedLineIndex:s,splitLineIndex:a,additionLineIndex:l,deletionLineIndex:u,additionLineNumber:d,deletionLineNumber:c,content:h,isLastContent:f,unifiedCount:m,splitCount:b}){const v=o<h.deletions?s+o:void 0,_=i==="unified"?o>=h.deletions?s+o:void 0:o<h.additions?s+h.deletions+o:void 0,y=i==="unified"?a+(o<h.deletions?o:o-h.deletions):a+o,k=o<h.deletions?u+o:void 0,S=o<h.deletions?c+o:void 0,C=i==="unified"?o>=h.deletions?l+(o-h.deletions):void 0:o<h.additions?l+o:void 0,A=i==="unified"?o>=h.deletions?d+(o-h.deletions):void 0:o<h.additions?d+o:void 0,I=i==="unified"?f&&o===h.deletions-1&&t.noEOFCRDeletions:f&&o===b-1&&t.noEOFCRDeletions,P=i==="unified"?f&&o===m-1&&t.noEOFCRAdditions:f&&o===b-1&&t.noEOFCRAdditions,O=k!=null&&S!=null&&v!=null?{lineNumber:S,lineIndex:k,noEOFCR:I,unifiedLineIndex:v,splitLineIndex:y}:void 0,K=C!=null&&A!=null&&_!=null?{unifiedLineIndex:_,splitLineIndex:y,lineIndex:C,lineNumber:A,noEOFCR:P}:void 0;if(O==null&&K!=null)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:r,collapsedBefore:n,deletionLine:void 0,additionLine:K};if(O!=null&&K==null)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:r,collapsedBefore:n,deletionLine:O,additionLine:void 0};if(O==null||K==null)throw new Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:r,collapsedBefore:n,deletionLine:O,additionLine:K}}function Cr(e){let t=e.length;return e.charCodeAt(t-1)===10&&(t--,e.charCodeAt(t-1)===13&&t--),e.slice(0,t)}class Ta{diff(t,r,n={}){let i;typeof n=="function"?(i=n,n={}):"callback"in n&&(i=n.callback);const o=this.castInput(t,n),s=this.castInput(r,n),a=this.removeEmpty(this.tokenize(o,n)),l=this.removeEmpty(this.tokenize(s,n));return this.diffWithOptionsObj(a,l,n,i)}diffWithOptionsObj(t,r,n,i){var o;const s=y=>{if(y=this.postProcess(y,n),i){setTimeout(function(){i(y)},0);return}else return y},a=r.length,l=t.length;let u=1,d=a+l;n.maxEditLength!=null&&(d=Math.min(d,n.maxEditLength));const c=(o=n.timeout)!==null&&o!==void 0?o:1/0,h=Date.now()+c,f=[{oldPos:-1,lastComponent:void 0}];let m=this.extractCommon(f[0],r,t,0,n);if(f[0].oldPos+1>=l&&m+1>=a)return s(this.buildValues(f[0].lastComponent,r,t));let b=-1/0,v=1/0;const _=()=>{for(let y=Math.max(b,-u);y<=Math.min(v,u);y+=2){let k;const S=f[y-1],C=f[y+1];S&&(f[y-1]=void 0);let A=!1;if(C){const P=C.oldPos-y;A=C&&0<=P&&P<a}const I=S&&S.oldPos+1<l;if(!A&&!I){f[y]=void 0;continue}if(!I||A&&S.oldPos<C.oldPos?k=this.addToPath(C,!0,!1,0,n):k=this.addToPath(S,!1,!0,1,n),m=this.extractCommon(k,r,t,y,n),k.oldPos+1>=l&&m+1>=a)return s(this.buildValues(k.lastComponent,r,t))||!0;f[y]=k,k.oldPos+1>=l&&(v=Math.min(v,y-1)),m+1>=a&&(b=Math.max(b,y+1))}u++};if(i)(function y(){setTimeout(function(){if(u>d||Date.now()>h)return i(void 0);_()||y()},0)})();else for(;u<=d&&Date.now()<=h;){const y=_();if(y)return y}}addToPath(t,r,n,i,o){const s=t.lastComponent;return s&&!o.oneChangePerToken&&s.added===r&&s.removed===n?{oldPos:t.oldPos+i,lastComponent:{count:s.count+1,added:r,removed:n,previousComponent:s.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:r,removed:n,previousComponent:s}}}extractCommon(t,r,n,i,o){const s=r.length,a=n.length;let l=t.oldPos,u=l-i,d=0;for(;u+1<s&&l+1<a&&this.equals(n[l+1],r[u+1],o);)u++,l++,d++,o.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return d&&!o.oneChangePerToken&&(t.lastComponent={count:d,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=l,u}equals(t,r,n){return n.comparator?n.comparator(t,r):t===r||!!n.ignoreCase&&t.toLowerCase()===r.toLowerCase()}removeEmpty(t){const r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r}castInput(t,r){return t}tokenize(t,r){return Array.from(t)}join(t){return t.join("")}postProcess(t,r){return t}get useLongestToken(){return!1}buildValues(t,r,n){const i=[];let o;for(;t;)i.push(t),o=t.previousComponent,delete t.previousComponent,t=o;i.reverse();const s=i.length;let a=0,l=0,u=0;for(;a<s;a++){const d=i[a];if(d.removed)d.value=this.join(n.slice(u,u+d.count)),u+=d.count;else{if(!d.added&&this.useLongestToken){let c=r.slice(l,l+d.count);c=c.map(function(h,f){const m=n[u+f];return m.length>h.length?m:h}),d.value=this.join(c)}else d.value=this.join(r.slice(l,l+d.count));l+=d.count,d.added||(u+=d.count)}}return i}}class Bg extends Ta{}const Fg=new Bg;function Gg(e,t,r){return Fg.diff(e,t,r)}const yo="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class jg extends Ta{tokenize(t){const r=new RegExp(`(\\r?\\n)|[${yo}]+|[^\\S\\n\\r]+|[^${yo}]`,"ug");return t.match(r)||[]}}const Ug=new jg;function qg(e,t,r){return Ug.diff(e,t,r)}function Ar({line:e,spanStart:t,spanLength:r}){return{start:{line:e,character:t},end:{line:e,character:t+r},properties:{"data-diff-span":""},alwaysWrap:!0}}function Zt({item:e,arr:t,enableJoin:r,isNeutral:n=!1,isLastItem:i=!1}){const o=t[t.length-1];if(o==null||i||!r){t.push([n?0:1,e.value]);return}const s=o[0]===0;if(n===s||n&&e.value.length===1&&!s){o[1]+=e.value;return}t.push([n?0:1,e.value])}const zg={forcePlainText:!1};function Wg(e,t,r,{forcePlainText:n,startingLine:i,totalLines:o,expandedHunks:s,collapsedContextThreshold:a=1}=zg){n?(i??=0,o??=1/0):(i=0,o=1/0);const l=i>0||o<1/0,u=typeof r.theme=="string"?t.getTheme(r.theme).type:void 0,d=Ca({theme:r.theme,highlighter:t}),c=n&&!l&&(e.unifiedLineCount>1e3||e.splitLineCount>1e3)?"none":r.lineDiffType,h={deletionLines:[],additionLines:[]},{maxLineDiffLength:f}=r,m=!n&&!e.isPartial,b=n?s:void 0,v=new Map;function _(k){const S=m?0:k,C=v.get(S)??Qg();return v.set(S,C),C}function y(k,S,C,A){if(l){let I=C.at(-1);(I==null||I.targetIndex+I.count!==S)&&(I={targetIndex:S,originalOffset:A.length,count:0},C.push(I)),I.count++}A.push(k)}xg({diff:e,diffStyle:"both",startingLine:i,totalLines:o,expandedHunks:l?b:!0,collapsedContextThreshold:a,callback:({hunkIndex:k,additionLine:S,deletionLine:C,type:A})=>{const I=_(k),P=S!=null?S.splitLineIndex:C.splitLineIndex;A==="change"&&S!=null&&C!=null&&Kg({additionLine:e.additionLines[S.lineIndex],deletionLine:e.deletionLines[C.lineIndex],deletionLineIndex:I.deletionContent.length,additionLineIndex:I.additionContent.length,deletionDecorations:I.deletionDecorations,additionDecorations:I.additionDecorations,lineDiffType:c,maxLineDiffLength:f}),C!=null&&(y(e.deletionLines[C.lineIndex],C.lineIndex,I.deletionSegments,I.deletionContent),I.deletionInfo.push({type:A==="change"?"change-deletion":A,lineNumber:C.lineNumber,altLineNumber:A==="change"?void 0:S.lineNumber??void 0,lineIndex:`${C.unifiedLineIndex},${P}`})),S!=null&&(y(e.additionLines[S.lineIndex],S.lineIndex,I.additionSegments,I.additionContent),I.additionInfo.push({type:A==="change"?"change-addition":A,lineNumber:S.lineNumber,altLineNumber:A==="change"?void 0:C.lineNumber??void 0,lineIndex:`${S.unifiedLineIndex},${P}`}))}});for(const k of v.values()){if(k.deletionContent.length===0&&k.additionContent.length===0)continue;const S={name:e.prevName??e.name,contents:k.deletionContent.value},C={name:e.name,contents:k.additionContent.value},{deletionLines:A,additionLines:I}=Xg({deletionFile:S,deletionInfo:k.deletionInfo,deletionDecorations:k.deletionDecorations,additionFile:C,additionInfo:k.additionInfo,additionDecorations:k.additionDecorations,highlighter:t,options:r,languageOverride:n?"text":e.lang});if(m){h.deletionLines=A,h.additionLines=I;continue}if(k.deletionSegments.length>0)for(const P of k.deletionSegments)for(let O=0;O<P.count;O++)h.deletionLines[P.targetIndex+O]=A[P.originalOffset+O];else zn(h.deletionLines,A);if(k.additionSegments.length>0)for(const P of k.additionSegments)for(let O=0;O<P.count;O++)h.additionLines[P.targetIndex+O]=I[P.originalOffset+O];else zn(h.additionLines,I)}return{code:h,themeStyles:d,baseThemeType:u}}function Hg(e,{deletionLineIndex:t,additionLineIndex:r,deletionDecorations:n,additionDecorations:i}){let o=0,s=0,a=-1,l=0,u=-1,d=0;for(const{value:c,added:h,removed:f}of e)f?(a===-1&&(a=o),o+=c.length,l=o):h?(u===-1&&(u=s),s+=c.length,d=s):(o+=c.length,s+=c.length);a!==-1&&n.push(Ar({line:t,spanStart:a,spanLength:l-a})),u!==-1&&i.push(Ar({line:r,spanStart:u,spanLength:d-u}))}function Kg({deletionLine:e,additionLine:t,deletionLineIndex:r,additionLineIndex:n,deletionDecorations:i,additionDecorations:o,lineDiffType:s,maxLineDiffLength:a}){if(e==null||t==null||s==="none"||(e=Cr(e),t=Cr(t),e.length>a||t.length>a))return;const l=s==="char"?Gg(e,t):qg(e,t);if(s==="word-line"){Hg(l,{deletionLineIndex:r,additionLineIndex:n,deletionDecorations:i,additionDecorations:o});return}const u=[],d=[],c=s==="word-alt",h=l.at(-1);for(const m of l){const b=m===h;!m.added&&!m.removed?(Zt({item:m,arr:u,enableJoin:c,isNeutral:!0,isLastItem:b}),Zt({item:m,arr:d,enableJoin:c,isNeutral:!0,isLastItem:b})):m.removed?Zt({item:m,arr:u,enableJoin:c,isLastItem:b}):Zt({item:m,arr:d,enableJoin:c,isLastItem:b})}let f=0;for(const m of u)m[0]===1&&i.push(Ar({line:r,spanStart:f,spanLength:m[1].length})),f+=m[1].length;f=0;for(const m of d)m[0]===1&&o.push(Ar({line:n,spanStart:f,spanLength:m[1].length})),f+=m[1].length}function Qg(){return{deletionContent:{push(e){this.value+=e,this.length++},value:"",length:0},additionContent:{push(e){this.value+=e,this.length++},value:"",length:0},deletionInfo:[],additionInfo:[],deletionDecorations:[],additionDecorations:[],deletionSegments:[],additionSegments:[]}}function Xg({deletionFile:e,additionFile:t,deletionInfo:r,additionInfo:n,highlighter:i,deletionDecorations:o,additionDecorations:s,languageOverride:a,options:{theme:l,...u}}){const d=a??Ce(e.name),c=a??Ce(t.name),{state:h,transformers:f}=Sa(u.useTokenTransformer),m=typeof l=="string"?{...u,lang:"text",theme:l,transformers:f,decorations:void 0,defaultColor:!1,cssVariablePrefix:ee("token"),tokenizeTimeLimit:0}:{...u,lang:"text",themes:l,transformers:f,decorations:void 0,defaultColor:!1,cssVariablePrefix:ee("token"),tokenizeTimeLimit:0};return{deletionLines:e.contents===""?[]:(m.lang=d,h.lineInfo=r,m.decorations=o,Wn(i.codeToHast(Cr(e.contents),m))),additionLines:t.contents===""?[]:(m.lang=c,m.decorations=s,h.lineInfo=n,Wn(i.codeToHast(Cr(t.contents),m)))}}function bo(e){const t=[];for(const r of e){const n=We.get(r);if(n==null)throw new Error(`getResolvedLanguages: ${r} is not resolved. Please resolve languages before calling getResolvedLanguages`);t.push(n)}return t}function Eo(e){for(const t of Array.isArray(e)?e:[e])if(!We.has(t))return!1;return!0}async function ko(e){const t=[],r=[];for(const n of e){if(n==="text"||n==="ansi")continue;const i=fa(n)??ha(n);"then"in i?r.push(i):t.push(i)}return r.length>0&&await Promise.all(r).then(n=>{for(const i of n){if(i==null)throw new Error("resolvedLanguages: unable to resolve language");t.push(i)}}),t}function vo(e){return le.getResolvedThemes(e)}async function wo(e){for(const r of e)Ea(r);const t=await le.resolveThemes(e);for(let r=0;r<e.length;r++)ka(e[r],t[r]);return t}var _t={exports:{}},Jg=_t.exports,So;function Zg(){return So||(So=1,(function(e,t){(function(r,n){n(t)})(Jg,function(r){const n=Symbol("newer"),i=Symbol("older");class o{constructor(c,h){typeof c!="number"&&(h=c,c=0),this.size=0,this.limit=c,this.oldest=this.newest=void 0,this._keymap=new Map,h&&(this.assign(h),c<1&&(this.limit=this.size))}_markEntryAsUsed(c){c!==this.newest&&(c[n]&&(c===this.oldest&&(this.oldest=c[n]),c[n][i]=c[i]),c[i]&&(c[i][n]=c[n]),c[n]=void 0,c[i]=this.newest,this.newest&&(this.newest[n]=c),this.newest=c)}assign(c){let h,f=this.limit||Number.MAX_VALUE;this._keymap.clear();let m=c[Symbol.iterator]();for(let b=m.next();!b.done;b=m.next()){let v=new s(b.value[0],b.value[1]);if(this._keymap.set(v.key,v),h?(h[n]=v,v[i]=h):this.oldest=v,h=v,f--==0)throw new Error("overflow")}this.newest=h,this.size=this._keymap.size}get(c){var h=this._keymap.get(c);return h?(this._markEntryAsUsed(h),h.value):void 0}set(c,h){var f=this._keymap.get(c);return f?(f.value=h,this._markEntryAsUsed(f),this):(this._keymap.set(c,f=new s(c,h)),this.newest?(this.newest[n]=f,f[i]=this.newest):this.oldest=f,this.newest=f,++this.size,this.size>this.limit&&this.shift(),this)}shift(){var c=this.oldest;if(c)return this.oldest[n]?(this.oldest=this.oldest[n],this.oldest[i]=void 0):(this.oldest=void 0,this.newest=void 0),c[n]=c[i]=void 0,this._keymap.delete(c.key),--this.size,[c.key,c.value]}find(c){let h=this._keymap.get(c);return h?h.value:void 0}has(c){return this._keymap.has(c)}delete(c){var h=this._keymap.get(c);return h?(this._keymap.delete(h.key),h[n]&&h[i]?(h[i][n]=h[n],h[n][i]=h[i]):h[n]?(h[n][i]=void 0,this.oldest=h[n]):h[i]?(h[i][n]=void 0,this.newest=h[i]):this.oldest=this.newest=void 0,this.size--,h.value):void 0}clear(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()}keys(){return new l(this.oldest)}values(){return new u(this.oldest)}entries(){return this}[Symbol.iterator](){return new a(this.oldest)}forEach(c,h){typeof h!="object"&&(h=this);let f=this.oldest;for(;f;)c.call(h,f.value,f.key,this),f=f[n]}toJSON(){for(var c=new Array(this.size),h=0,f=this.oldest;f;)c[h++]={key:f.key,value:f.value},f=f[n];return c}toString(){for(var c="",h=this.oldest;h;)c+=String(h.key)+":"+h.value,h=h[n],h&&(c+=" < ");return c}}r.LRUMap=o;function s(d,c){this.key=d,this.value=c,this[n]=void 0,this[i]=void 0}function a(d){this.entry=d}a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let d=this.entry;return d?(this.entry=d[n],{done:!1,value:[d.key,d.value]}):{done:!0,value:void 0}};function l(d){this.entry=d}l.prototype[Symbol.iterator]=function(){return this},l.prototype.next=function(){let d=this.entry;return d?(this.entry=d[n],{done:!1,value:d.key}):{done:!0,value:void 0}};function u(d){this.entry=d}u.prototype[Symbol.iterator]=function(){return this},u.prototype.next=function(){let d=this.entry;return d?(this.entry=d[n],{done:!1,value:d.value}):{done:!0,value:void 0}}})})(_t,_t.exports)),_t.exports}var Yg=Zg();const Co=rl(Yg),Yt=Symbol("IGNORE_RESPONSE"),e_=1e4;var er=class extends Error{constructor(){super("WorkerPoolManager: operation canceled because the pool terminated")}},bn=class extends Error{constructor(){super("WorkerPoolManager: operation canceled before the task completed")}},t_=class{constructor(e,{langs:t,theme:r=pr,useTokenTransformer:n=!1,lineDiffType:i="word-alt",maxLineDiffLength:o=1e3,tokenizeMaxLineLength:s=1e3,preferredHighlighter:a="shiki-js"}){g(this,"options");g(this,"highlighter");g(this,"preferredHighlighter");g(this,"renderOptions");g(this,"renderOptionsRequestVersion",0);g(this,"renderOptionsVersion",0);g(this,"initialized",!1);g(this,"workers",[]);g(this,"queuedTasks",[]);g(this,"queuedTaskByInstance",new Map);g(this,"taskByHighlightKey",new Map);g(this,"activeTaskById",new Map);g(this,"activeRequestByInstance",new Map);g(this,"nextRequestId",0);g(this,"themeSubscribers",new Set);g(this,"workersFailed",!1);g(this,"statSubscribers",new Set);g(this,"fileCache");g(this,"diffCache");g(this,"_queuedBroadcast");g(this,"lifecycleGeneration",0);g(this,"_broadcastStateChanges",()=>{this._queuedBroadcast!=null&&(cancelAnimationFrame(this._queuedBroadcast),this._queuedBroadcast=void 0);const e=this.getStats();for(const t of this.statSubscribers)t(e)});g(this,"drainQueue",()=>{if(this._queuedDrain=void 0,!(this.initialized!==!0||this.queuedTasks.length===0)){for(let e=0;e<this.queuedTasks.length;){const t=this.queuedTasks[e];if(this.hasActiveRequest(t)){e++;continue}const r=n_(t),n=this.getAvailableWorker(r);if(n==null)break;this.queuedTasks.splice(e,1),this.assignWorkerToTask(t,n),this.resolveLanguagesAndExecuteTask(n,t,r)}this.queueBroadcastStateChanges()}});g(this,"_queuedDrain");this.options=e,this.preferredHighlighter=a,this.renderOptions={theme:r,useTokenTransformer:n,lineDiffType:i,maxLineDiffLength:o,tokenizeMaxLineLength:s},this.fileCache=new Co.LRUMap(e.totalASTLRUCacheSize??100),this.diffCache=new Co.LRUMap(e.totalASTLRUCacheSize??100),this.queueInitialization(t)}isWorkingPool(){return!this.workersFailed}getFileResultCache(e){return e.cacheKey!=null?this.fileCache.get(e.cacheKey):void 0}getDiffResultCache(e){return e.cacheKey!=null?this.diffCache.get(e.cacheKey):void 0}inspectCaches(){const{fileCache:e,diffCache:t}=this;return{fileCache:e,diffCache:t}}evictFileFromCache(e){try{return this.fileCache.delete(e)!==void 0}finally{this.queueBroadcastStateChanges()}}evictDiffFromCache(e){try{return this.diffCache.delete(e)!==void 0}finally{this.queueBroadcastStateChanges()}}async setRenderOptions({theme:e=this.renderOptions.theme??pr,useTokenTransformer:t=this.renderOptions.useTokenTransformer??!1,lineDiffType:r=this.renderOptions.lineDiffType??"word-alt",maxLineDiffLength:n=this.renderOptions.maxLineDiffLength??1e3,tokenizeMaxLineLength:i=this.renderOptions.tokenizeMaxLineLength??1e3}){const{lifecycleGeneration:o}=this,s=++this.renderOptionsRequestVersion,a=()=>this.isCurrentLifecycle(o)&&this.renderOptionsRequestVersion===s;try{const l={theme:e,useTokenTransformer:t,lineDiffType:r,maxLineDiffLength:n,tokenizeMaxLineLength:i};if(this.isInitialized()||await this.initialize(),!a()||Xt(l,this.renderOptions))return;const u=ir(e);let d=[];if(li(l.theme,this.renderOptions.theme)||(uo(u)?d=vo(u):d=await wo(u)),!a())return;if(this.highlighter!=null)Sn(d,this.highlighter);else{const h=await pn({themes:u,langs:["text"],preferredHighlighter:this.preferredHighlighter});if(!a())return;this.highlighter=h}const c=this.setRenderOptionsOnWorkers(l,d);this.renderOptions=l,this.renderOptionsVersion++,this.diffCache.clear(),this.fileCache.clear(),this.invalidateRenderTasks();for(const h of this.themeSubscribers)h.onThemeChange();await c}catch(l){if(l instanceof er||!a())return;throw l}}getPreferredHighlighter(){return this.preferredHighlighter}getFileRenderOptions(){const{tokenizeMaxLineLength:e,theme:t,useTokenTransformer:r}=this.renderOptions;return{theme:t,useTokenTransformer:r,tokenizeMaxLineLength:e}}getDiffRenderOptions(){return{...this.renderOptions}}async setRenderOptionsOnWorkers(e,t){if(this.workersFailed)return;this.isInitialized()||await this.initialize();const r=[];for(const n of this.workers){if(!n.initialized)throw console.log({managedWorker:n}),new Error("setRenderOptionsOnWorkers: Somehow we have an uninitialized worker");r.push(new Promise((i,o)=>{const s=this.generateRequestId(),a={type:"set-render-options",id:s,request:{type:"set-render-options",id:s,renderOptions:e,resolvedThemes:t},resolve:i,reject:o,requestStart:Date.now()};this.activeTaskById.set(s,a),n.pendingSetupRequestId=s,n.worker.postMessage(a.request)}))}await Promise.all(r)}subscribeToThemeChanges(e){return this.themeSubscribers.add(e),this.queueBroadcastStateChanges(),()=>{this.unsubscribeToThemeChanges(e),this.queueBroadcastStateChanges()}}unsubscribeToThemeChanges(e){this.themeSubscribers.delete(e),this.queueBroadcastStateChanges()}subscribeToStatChanges(e){return this.statSubscribers.add(e),e(this.getStats()),()=>{this.statSubscribers.delete(e)}}queueBroadcastStateChanges(){this._queuedBroadcast==null&&(this._queuedBroadcast=requestAnimationFrame(this._broadcastStateChanges))}cleanUpTasks(e){this.detachInstanceFromQueuedTasks(e);const t=this.activeRequestByInstance.get(e);if(t!=null){const r=this.activeTaskById.get(t);Ee(r)?(this.detachInstanceFromRenderTask(r,e),!r.primeCache&&r.instances.size===0&&this.removeActiveTask(r)):this.activeTaskById.delete(t)}this.activeRequestByInstance.delete(e),this.queueBroadcastStateChanges()}isInitialized(){return this.initialized===!0}async initialize(e=[]){if(this.initialized!==!0)if(this.initialized===!1){const{lifecycleGeneration:t}=this;this.initialized=new Promise((r,n)=>{(async()=>{try{const i=ir(this.renderOptions.theme);let o=[];if(uo(i)?o=vo(i):o=await wo(i),!this.isCurrentLifecycle(t)){r();return}let s=[];if(Eo(e)?s=bo(e):s=await ko(e),!this.isCurrentLifecycle(t)){r();return}const[a]=await Promise.all([pn({themes:i,langs:["text",...e],preferredHighlighter:this.preferredHighlighter}),this.initializeWorkers(o,s)]);if(!this.isCurrentLifecycle(t)){this.terminateWorkers(),r();return}this.highlighter=a,this.initialized=!0,this.diffCache.clear(),this.fileCache.clear(),this.drainQueue(),this.queueBroadcastStateChanges(),r()}catch(i){if(i instanceof er||!this.isCurrentLifecycle(t)){r();return}this.initialized=!1,this.workersFailed=!0,this.cancelActiveWorkerTasks(),this.terminateWorkers(),this.activeTaskById.clear();for(const o of this.queuedTasks)this.rejectRenderTaskCallbacks(o,tr(i));this.queueBroadcastStateChanges(),n(i)}})()}),this.queueBroadcastStateChanges()}else return this.initialized}async initializeWorkers(e,t){this.workersFailed=!1;const r=[],n=void 0;this.workers.length>0&&this.terminateWorkers();for(let s=0;s<(this.options.poolSize??8);s++){const a=this.options.workerFactory(),l={worker:a,requestId:void 0,pendingSetupRequestId:void 0,initialized:!1,langs:new Set(["text",...t.map(({name:u})=>u)]),customExtensionsVersion:0};a.addEventListener("message",u=>{this.handleWorkerMessage(l,u.data)}),a.addEventListener("error",u=>this.handleWorkerError(l,u)),this.workers.push(l),r.push(new Promise((u,d)=>{const c=this.generateRequestId(),h={type:"initialize",id:c,request:{type:"initialize",id:c,renderOptions:this.renderOptions,preferredHighlighter:this.preferredHighlighter,resolvedThemes:e,resolvedLanguages:t,customExtensionsVersion:void 0,customExtensionMap:n},resolve(){l.initialized=!0,u()},reject:d,requestStart:Date.now()};l.pendingSetupRequestId=c,this.activeTaskById.set(c,h),this.executeTask(l,h)}))}const i=this.options.workerInitializationTimeout??e_;let o;try{await Promise.race([Promise.all(r),new Promise((s,a)=>{o=setTimeout(()=>{a(new Error(`WorkerPoolManager: worker initialization timed out after ${i}ms`))},i)})])}finally{o!=null&&clearTimeout(o)}}handleWorkerError(e,t){console.error("Worker error:",t,e);const{pendingSetupRequestId:r}=e;if(r==null)return;const n=this.activeTaskById.get(r);n?.type==="initialize"&&(n.reject(tr(t)),this.cleanWorkerAndTask(e,n))}highlightFileAST(e,t){const r=this.getFileResultCache(t);co(t)||r!=null&&hn(r.options,this.getFileRenderOptions())||this.hasMatchingFileInstanceTask(e,t)||this.submitTask(e,{type:"file",file:t})}primeFileHighlightCache(e){if(!this.isWorkingPool())return Promise.reject(new Error("WorkerPoolManager.primeFileHighlightCache: worker pool is not working"));const t=this.getOrCreateFileHighlightCacheTask(e);return t!=null?this.createRenderTaskCallbacks(t):Promise.resolve()}getOrCreateFileHighlightCacheTask(e){if(e.cacheKey==null){console.warn(`WorkerPoolManager.primeFileHighlightCache: priming highlight cache requires file.cacheKey; skipping "${e.name}".`);return}const t=this.getFileResultCache(e),r=this.getFileHighlightKey(e);if(r==null||co(e)||t!=null&&hn(t.options,this.getFileRenderOptions()))return;const n=this.getTaskByHighlightKey(r);if(n!=null)return n.primeCache=!0,n.type==="file"?n:void 0;{const i=this.submitCacheTask({type:"file",file:e},r);return i.type==="file"?i:void 0}}getPlainFileAST(e,t,r,n){if(this.highlighter==null){this.queueInitialization();return}return wg(e,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:t,totalLines:r,lines:n})}highlightDiffAST(e,t){const r=this.getDiffResultCache(t);_o(t)||r!=null&&Xt(r.options,this.getDiffRenderOptions())||this.hasMatchingDiffInstanceTask(e,t)||this.submitTask(e,{type:"diff",diff:t})}primeDiffHighlightCache(e){if(!this.isWorkingPool())return Promise.reject(new Error("WorkerPoolManager.primeDiffHighlightCache: worker pool is not working"));const t=this.getOrCreateDiffHighlightCacheTask(e);return t!=null?this.createRenderTaskCallbacks(t):Promise.resolve()}getOrCreateDiffHighlightCacheTask(e){if(e.cacheKey==null){console.warn(`WorkerPoolManager.primeDiffHighlightCache: priming highlight cache requires diff.cacheKey; skipping "${e.prevName??e.name}" -> "${e.name}".`);return}const t=this.getDiffResultCache(e),r=this.getDiffHighlightKey(e);if(r==null||_o(e)||t!=null&&Xt(t.options,this.getDiffRenderOptions()))return;const n=this.getTaskByHighlightKey(r);if(n!=null)return n.primeCache=!0,n.type==="diff"?n:void 0;{const i=this.submitCacheTask({type:"diff",diff:e},r);return i.type==="diff"?i:void 0}}getPlainDiffAST(e,t,r,n,i){return this.highlighter!=null?Wg(e,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:t,totalLines:r,expandedHunks:n,collapsedContextThreshold:i}):void 0}terminate(){this.lifecycleGeneration++,this.cancelActiveWorkerTasks(),this.terminateWorkers();const e=new er;for(const t of this.queuedTasks)this.rejectRenderTaskCallbacks(t,e);this.fileCache.clear(),this.diffCache.clear(),this.activeRequestByInstance.clear(),this.queuedTasks.length=0,this.queuedTaskByInstance.clear(),this.taskByHighlightKey.clear(),this.activeTaskById.clear(),this.highlighter=void 0,this.initialized=!1,this.workersFailed=!1,this.queueBroadcastStateChanges()}isCurrentLifecycle(e){return this.lifecycleGeneration===e}queueInitialization(e){this.initialize(e).catch(t=>{console.error(t)})}cancelActiveWorkerTasks(){const e=new er;for(const t of this.activeTaskById.values())"reject"in t?t.reject(e):Ee(t)&&this.rejectRenderTaskCallbacks(t,e)}terminateWorkers(){for(const e of this.workers)e.worker.terminate();this.workers.length=0}getStats(){return{managerState:this.initialized===!1?"waiting":this.initialized!==!0?"initializing":"initialized",totalWorkers:this.workers.length,workersFailed:this.workersFailed,busyWorkers:this.workers.filter(e=>e.requestId!=null||e.pendingSetupRequestId!=null).length,queuedTasks:this.queuedTasks.length,activeTasks:this.activeTaskById.size,themeSubscribers:this.themeSubscribers.size,fileCacheSize:this.fileCache.size,diffCacheSize:this.diffCache.size}}submitTask(e,t){this.initialized===!1&&this.queueInitialization();const r=this.getHighlightKeyForRequest(t),n=r!=null?this.getTaskByHighlightKey(r):void 0;if(n!=null){this.detachInstanceFromQueuedTasks(e,n),this.addInstanceToTask(n,e),this.queueBroadcastStateChanges();return}this.detachInstanceFromQueuedTasks(e);const i=this.generateRequestId(),o=Date.now(),{renderOptionsVersion:s}=this,a=(()=>{switch(t.type){case"file":return{type:"file",id:i,request:{...t,id:i},instances:new Set([e]),primeCache:!1,highlightKey:r,callbacks:new Set,renderOptionsVersion:s,requestStart:o};case"diff":return{type:"diff",id:i,request:{...t,id:i},instances:new Set([e]),primeCache:!1,highlightKey:r,callbacks:new Set,renderOptionsVersion:s,requestStart:o}}})();this.enqueueRenderTask(a,e)}submitCacheTask(e,t){this.initialized===!1&&this.queueInitialization();const r=this.generateRequestId(),n=Date.now(),{renderOptionsVersion:i}=this,o=(()=>{switch(e.type){case"file":return{type:"file",id:r,request:{...e,id:r},instances:new Set,primeCache:!0,highlightKey:t,callbacks:new Set,renderOptionsVersion:i,requestStart:n};case"diff":return{type:"diff",id:r,request:{...e,id:r},instances:new Set,primeCache:!0,highlightKey:t,callbacks:new Set,renderOptionsVersion:i,requestStart:n}}})();return this.enqueueRenderTask(o),o}enqueueRenderTask(e,t){this.queuedTasks.push(e),t!=null&&this.queuedTaskByInstance.set(t,e),e.highlightKey!=null&&this.taskByHighlightKey.set(e.highlightKey,e),this.queueDrain()}async resolveLanguagesAndExecuteTask(e,t,r){try{const n=r.filter(o=>!Wo(o));n.length>0&&pn({themes:ir(this.renderOptions.theme),langs:["text",...n],preferredHighlighter:this.preferredHighlighter}).catch(o=>{console.error(o)});const i=r.filter(o=>!e.langs.has(o));if(i.length>0&&(Eo(i)?t.request.resolvedLanguages=bo(i):t.request.resolvedLanguages=await ko(i)),!this.activeTaskById.has(t.id)){e.requestId===t.id&&(this.cleanWorkerAndTask(e,t),this.queueBroadcastStateChanges(),this.queuedTasks.length>0&&this.queueDrain());return}this.executeTask(e,t)}catch(n){this.rejectRenderTaskCallbacks(t,tr(n)),this.cleanWorkerAndTask(e,t),this.queueBroadcastStateChanges(),this.queuedTasks.length>0&&this.queueDrain()}}handleWorkerMessage(e,t){const r=this.activeTaskById.get(t.id);try{if(r==null)throw Yt;if(t.type==="error"){const n=new Error(t.error);if(t.stack&&(n.stack=t.stack),"reject"in r)r.reject(n);else if(Ee(r))this.notifyHighlightError(r,n),this.rejectRenderTaskCallbacks(r,n);else throw new Error("handleWorkerMessage: unknown task type");throw n}else{if(Ee(r))for(const{name:n}of r.request.resolvedLanguages??[])e.langs.add(n);switch(t.requestType){case"initialize":if(r.type!=="initialize")throw new Error("handleWorkerMessage: task/response dont match");this.syncCustomExtensionVersion(e,r.request),r.resolve();break;case"set-render-options":if(r.type!=="set-render-options")throw new Error("handleWorkerMessage: task/response dont match");r.resolve();break;case"file":{if(r.type!=="file")throw new Error("handleWorkerMessage: task/response dont match");const{result:n,options:i}=t;if(!this.isCurrentRenderTask(r)||!hn(i,this.getFileRenderOptions()))throw Yt;const{request:o}=r;this.syncCustomExtensionVersion(e,o),r.cacheKeyAtDispatch!=null&&this.fileCache.set(r.cacheKeyAtDispatch,{result:n,options:i}),this.resolveRenderTaskCallbacks(r),this.notifyFileInstances(r,n,i);break}case"diff":{if(r.type!=="diff")throw new Error("handleWorkerMessage: task/response dont match");const{result:n,options:i}=t;if(!this.isCurrentRenderTask(r)||!Xt(i,this.getDiffRenderOptions()))throw Yt;const{request:o}=r;this.syncCustomExtensionVersion(e,o),r.cacheKeyAtDispatch!=null&&this.diffCache.set(r.cacheKeyAtDispatch,{result:n,options:i}),this.resolveRenderTaskCallbacks(r),this.notifyDiffInstances(r,n,i);break}}}}catch(n){n!==Yt&&console.error(n,r,t)}this.cleanWorkerAndTask(e,r,t.id),this.queueBroadcastStateChanges(),this.queuedTasks.length>0&&this.queueDrain()}queueDrain(){this._queuedDrain==null&&(this._queuedDrain=Promise.resolve().then(this.drainQueue),this.queueBroadcastStateChanges())}assignWorkerToTask(e,t){t.requestId=e.id,Ee(e)&&(this.clearQueuedInstanceRequests(e),this.trackInstanceRequests(e)),this.activeTaskById.set(e.id,e)}cleanWorkerAndTask(e,t,r=t?.id){e.requestId===r&&(e.requestId=void 0),e.pendingSetupRequestId===r&&(e.pendingSetupRequestId=void 0),t!=null&&(Ee(t)&&(this.rejectRenderTaskCallbacks(t,new bn),this.clearInstanceRequests(t),this.clearHighlightKey(t)),this.activeTaskById.delete(t.id))}executeTask(e,t){r_(t.request)&&this.maybeAttachCustomExtensions(e,t.request),this.activeTaskById.has(t.id)||this.assignWorkerToTask(t,e);try{t.type==="file"?t.cacheKeyAtDispatch=t.request.file.cacheKey:t.type==="diff"&&(t.cacheKeyAtDispatch=t.request.diff.cacheKey),e.worker.postMessage(t.request)}catch(r){console.error("Failed to post message to worker:",r),Ee(t)?(this.notifyHighlightError(t,r),this.rejectRenderTaskCallbacks(t,tr(r))):"reject"in t&&t.reject(r),this.cleanWorkerAndTask(e,t),this.queuedTasks.length>0&&this.queueDrain()}this.queueBroadcastStateChanges()}maybeAttachCustomExtensions(e,t){if(t.customExtensionsVersion!=null)return;const r=ng();e.customExtensionsVersion>=r||(t.customExtensionsVersion=r,t.customExtensionMap=ig())}syncCustomExtensionVersion(e,t){t.customExtensionsVersion!=null&&(e.customExtensionsVersion=t.customExtensionsVersion)}getAvailableWorker(e){let t;for(const r of this.workers){if(r.requestId!=null||r.pendingSetupRequestId!=null||!r.initialized)continue;if(t=r,e.length===0)break;let n=!0;for(const i of e)if(!r.langs.has(i)){n=!1;break}if(n)break}return t}getFileHighlightKey(e){if(e.cacheKey!=null)return`file:${e.cacheKey}:${this.renderOptionsVersion}`}getDiffHighlightKey(e){if(e.cacheKey!=null)return`diff:${e.cacheKey}:${this.renderOptionsVersion}`}getHighlightKeyForRequest(e){switch(e.type){case"file":return this.getFileHighlightKey(e.file);case"diff":return this.getDiffHighlightKey(e.diff)}}hasActiveRequest(e){for(const t of ft(e))if(this.activeRequestByInstance.has(t))return!0;return!1}addInstanceToTask(e,t){e.type,e.instances.add(t),this.activeTaskById.has(e.id)?this.activeRequestByInstance.set(t,e.id):this.queuedTaskByInstance.set(t,e)}detachInstanceFromQueuedTasks(e,t){const r=this.queuedTaskByInstance.get(e);r==null||r===t||(this.queuedTaskByInstance.delete(e),this.detachInstanceFromRenderTask(r,e),!r.primeCache&&r.instances.size===0&&this.removeQueuedTask(r))}detachInstanceFromRenderTask(e,t){e.type,e.instances.delete(t)}removeQueuedTask(e){const t=this.queuedTasks.indexOf(e);t!==-1&&this.queuedTasks.splice(t,1),this.rejectRenderTaskCallbacks(e,new bn),this.clearQueuedInstanceRequests(e),this.clearHighlightKey(e)}removeActiveTask(e){this.rejectRenderTaskCallbacks(e,new bn),this.clearInstanceRequests(e),this.clearHighlightKey(e),this.activeTaskById.delete(e.id)}createRenderTaskCallbacks(e){return new Promise((t,r)=>{e.callbacks.add({resolve:t,reject:r})})}resolveRenderTaskCallbacks(e){for(const t of e.callbacks)t.resolve();e.callbacks.clear()}rejectRenderTaskCallbacks(e,t){for(const r of e.callbacks)r.reject(t);e.callbacks.clear()}invalidateRenderTasks(){for(let e=this.queuedTasks.length-1;e>=0;e--){const t=this.queuedTasks[e];t.renderOptionsVersion!==this.renderOptionsVersion&&this.removeQueuedTask(t)}for(const e of Array.from(this.activeTaskById.values()))Ee(e)&&e.renderOptionsVersion!==this.renderOptionsVersion&&this.removeActiveTask(e)}clearQueuedInstanceRequests(e){for(const t of ft(e))this.queuedTaskByInstance.get(t)===e&&this.queuedTaskByInstance.delete(t)}clearHighlightKey(e){e.highlightKey!=null&&this.taskByHighlightKey.get(e.highlightKey)===e&&this.taskByHighlightKey.delete(e.highlightKey)}trackInstanceRequests(e){for(const t of ft(e))this.activeRequestByInstance.set(t,e.id)}clearInstanceRequests(e){for(const t of ft(e))this.activeRequestByInstance.get(t)===e.id&&this.activeRequestByInstance.delete(t)}notifyFileInstances(e,t,r){for(const n of e.instances)this.activeRequestByInstance.get(n)===e.id&&n.onHighlightSuccess(e.request.file,t,r)}notifyDiffInstances(e,t,r){for(const n of e.instances)this.activeRequestByInstance.get(n)===e.id&&n.onHighlightSuccess(e.request.diff,t,r)}notifyHighlightError(e,t){for(const r of ft(e))this.activeRequestByInstance.get(r)===e.id&&r.onHighlightError(t)}hasMatchingFileInstanceTask(e,t){for(const r of this.iterateRenderTasks())if(r.type==="file"&&this.isCurrentRenderTask(r)&&r.instances.has(e)&&Ig(t,r.request.file))return!0;return!1}hasMatchingDiffInstanceTask(e,t){for(const r of this.iterateRenderTasks())if(r.type==="diff"&&this.isCurrentRenderTask(r)&&r.instances.has(e)&&Ag(r.request.diff,t))return!0;return!1}getTaskByHighlightKey(e){const t=this.taskByHighlightKey.get(e);return t!=null&&this.isCurrentRenderTask(t)?t:void 0}isCurrentRenderTask(e){return e.renderOptionsVersion===this.renderOptionsVersion}*iterateRenderTasks(){for(const e of this.queuedTasks)yield e;for(const e of this.activeTaskById.values())Ee(e)&&(yield e)}generateRequestId(){return`req_${++this.nextRequestId}`}};function r_(e){return e.type==="initialize"||e.type==="file"||e.type==="diff"}function n_(e){const t=new Set;if(e.type==="initialize"||e.type==="set-render-options")return[];switch(e.type){case"file":t.add(e.request.file.lang??Ce(e.request.file.name));break;case"diff":t.add(e.request.diff.lang??Ce(e.request.diff.name)),t.add(e.request.diff.lang??Ce(e.request.diff.prevName??"-"))}return t.delete("text"),Array.from(t)}function Ee(e){return e?.type==="file"||e?.type==="diff"}function ft(e){return e.instances}function tr(e){if(e instanceof Error)return e;if(e!=null&&typeof e=="object"){if("error"in e&&e.error instanceof Error)return e.error;if("message"in e&&typeof e.message=="string")return new Error(e.message)}return new Error(String(e))}let kt;function i_({poolOptions:e,highlighterOptions:t}){return kt??=new t_(e,t),kt}function o_(){kt!=null&&(kt.terminate(),kt=void 0)}const Oe=Nt("diff-highlighter-worker-pool"),Ra=["typescript","javascript","tsx","jsx","json","css","html","markdown","python","rust","go","svelte","yaml","bash","powershell"],s_=new Set(Ra);function ob(e){if(!e)return;const t=e.toLowerCase();return s_.has(t)?t:void 0}const a_={dark:"github-dark",light:"github-light"};let ae=null,ur=null,ge=0,vt=null;const l_=3e4,u_=64;let Pt=0,Ot=0,xt=0,Ir=0,La=0;function sb(){return{generation:Pt,created:Ot,terminated:xt,live:Ot-xt,activeLeases:ge,alive:ae!==null,poolSize:ae===null?0:Ir}}function ui(){vt!==null&&(clearTimeout(vt),vt=null)}function Pa(){ui(),vt=setTimeout(()=>{vt=null,ge===0&&xa("idle")},l_)}let Tr=!1;function Oa(e){e.persisted||xa("unload")}function c_(){Tr||typeof window>"u"||(window.addEventListener("pagehide",Oa),Tr=!0)}function d_(){!Tr||typeof window>"u"||(window.removeEventListener("pagehide",Oa),Tr=!1)}function p_(){return new Worker(new URL("/app/immutable/workers/worker-portable-DylDHt6T.js",import.meta.url),{type:"classic"})}function cr(){if(ae)return ae;const e=performance.now();Oe.debug("Initializing diff highlighter worker pool...");const t=typeof navigator<"u"&&typeof navigator.hardwareConcurrency=="number"?navigator.hardwareConcurrency:4,r=Math.min(Math.max(t,2),8);ae=i_({poolOptions:{workerFactory:p_,poolSize:r,totalASTLRUCacheSize:u_},highlighterOptions:{theme:a_,langs:[...Ra]}}),Pt+=1,Ot+=1,Ir=r,La=e,c_();const n=performance.now()-e;return Oe.info(`Diff highlighter worker pool created in ${n.toFixed(0)}ms (generation=${Pt}, poolSize=${r}, leases=${ge}, created=${Ot}, terminated=${xt})`),ge===0&&Pa(),ae}function ab(){const e=cr();return ui(),ge+=1,e}function lb(){if(ge===0){Oe.warn("Diff worker pool lease released with no active leases");return}ge-=1,ge===0&&Pa()}function ub(){if(!ae)return null;const e=ae.inspectCaches();return{fileCacheSize:e.fileCache.size,diffCacheSize:e.diffCache.size}}function cb(){if(ae||ur)return;const e=async()=>{const t=cr();return await t.initialize(),Oe.info("Diff highlighter worker pool initialized"),t};typeof requestIdleCallback<"u"?ur=new Promise(t=>{requestIdleCallback(()=>{e().then(r=>t(r)).catch(r=>{Oe.warn("Failed to initialize worker pool:",r),t(cr())})},{timeout:5e3})}):ur=new Promise(t=>{setTimeout(()=>{e().then(r=>t(r)).catch(r=>{Oe.warn("Failed to initialize worker pool:",r),t(cr())})},100)})}function xa(e="manual"){ui();const t=ge;if(ge=0,ae){o_(),ae=null,ur=null,xt+=1,d_();const r=performance.now()-La;Oe.info(`Diff highlighter worker pool terminated (generation=${Pt}, poolSize=${Ir}, reason=${e}, leases=${t}, lifetimeMs=${r.toFixed(0)}, created=${Ot}, terminated=${xt})`),t>0&&Oe.warn(`Diff highlighter worker pool terminated with ${t} active lease(s) (generation=${Pt}, reason=${e})`),Ir=0}}function h_(e){const t=new Set;for(const r of e)!r.checked||!r.noteId||r.type!=="note"&&r.type!=="spec"||t.add(r.noteId);return t.size>0?[...t]:void 0}const f_=E.createSelector(e=>e.multiPanelContext.panels),m_=E.createSelector(e=>it(f_.select(e))),g_=E.createSelector(e=>m_.select(e).filter(t=>t.checked)),db=E.createSelector(e=>h_(g_.select(e))),__=E.createSelector(e=>e.multiPanelContext.selections),y_=E.createSelector(e=>it(__.select(e))),pb=E.createSelector(e=>y_.select(e).filter(t=>t.checked)),b_="app_msg_";function hb(){return`${b_}${uu()}`}const st=new Map;let E_=0,Ao=!1;function Qe(){try{const e=E.state;return JSON.stringify([e.connections?.windowBackendId,e.daemonHealth?.connectionGeneration,e.daemonHealth?.health,e.workspaceEvents?.subscriptionGeneration,e.principal?.context,e.principal?.boundPrincipalId,e.principal?.invalidation])}catch{return"unmounted"}}function Da(e,t){Ao||(Ao=!0,Pr(()=>st.clear()));const r=Qe();let n=st.get(e);return t??=n?.workspaceId,(!n||n.workspaceId!==t||n.context!==r)&&(n={workspaceId:t,key:String(++E_),context:r},st.set(e,n)),n}function fb(e,t){const r=Da(e,t);return{key:r.key,isCurrent:n=>st.get(e)===r&&r.context===Qe()&&(n===void 0||r.workspaceId===void 0||n===r.workspaceId)}}function Bt(e,t){const r=Da(e,t),n=E.state.agentSessions?.byAgentId[e]?.workspaceId;return{key:r.key,bindWorkspace:i=>{r.workspaceId??=i},isCurrent:()=>{const i=E.state.agentSessions?.byAgentId[e]?.workspaceId;return st.get(e)===r&&r.context===Qe()&&(i===n||i===r.workspaceId)}}}function mb(e,t){if(t===void 0)return!0;const r=st.get(e);return!r||r.context!==Qe()||r.workspaceId===t}function ze(e,t){const r=E.state.pendingSubmissions?.byAgentId[e]?.scope;return r&&(t===void 0||r.workspaceId===t)?cu.select(E.state,r):void 0}function Na(e){return e.filter(t=>t.role==="user").map(t=>({id:t.id,author:t.author,submissionIds:t.metadata?.submissionIds,recoverySources:t.metadata?.recoverySources}))}function gb(e,t,r,n){const i=ze(e,t);i&&E.dispatch(No(i.scope,r,n,Date.now()))}function _b(e,t,r,n){const i=ze(e,t);if(!i)return;const o=Na(r.messages),s=JSON.stringify([i.scope,o,r.truncated,r.nextToken??null,r.initialHistory,r.totalMessages-r.messages.length]),a=s===n&&r.resumed===void 0&&r.resetCachedTranscript!==!0,l=i.queueFresh&&!i.refreshNeeded&&it(i.submissions).length===0&&it(i.seeds).length===0&&it(i.processing).length===0;return(!a||!l)&&E.dispatch(No(i.scope,"history",o,Date.now())),s}function yb(e,t,r){const n=ze(e,t);n&&E.dispatch(nl(n.scope,r))}function bb(e,t,r){const n=ze(e,t);n&&E.dispatch(il(n.scope,r))}function Va(e,t,r){const n=ze(e,t),i=n&&{scope:n.scope,kind:r,id:crypto.randomUUID(),generation:n.generation};return i&&E.dispatch(ol(i)),{isCurrent:()=>i?al(ze(e,t),i):!ze(e,t),complete:o=>{i&&E.dispatch(sl(i,o,Date.now()))}}}const k_=Nt("AgentQueueReadService");let nt=0,Io=!1;function ci(e,t){return Io||(Io=!0,Pr(()=>{nt+=1,dr.clear(),wt.clear(),Rr.clear()})),JSON.stringify([nt,t??null,e])}const dr=new Map,wt=new Set,Rr=new Map;function v_(e,t){t??=E.state.agentSessions?.byAgentId[e]?.workspaceId;const r=ci(e,t);Rr.set(r,(Rr.get(r)??0)+1)}function En(e,t){return t??=E.state.agentSessions?.byAgentId[e]?.workspaceId,Rr.get(ci(e,t))??0}async function Ma(e,t,r){const n=t.key,i=nt;if(Se(e)){wt.delete(n);return}E.dispatch(ll(e,r));const o=En(e,r),s=E.state.pendingSubmissions?.byAgentId[e]?.scope,a=Va(e,r,"queue");try{const l=await fe.agents.getQueue(e,r);if(i!==nt||!t.isCurrent())return;if(!a.isCurrent()){const u=E.state.pendingSubmissions?.byAgentId[e];En(e,r)!==o&&s&&u?.queueFresh&&ul(u.scope,s)||wt.add(n);return}Se(e)?E.dispatch(_i(e,!1)):En(e,r)===o&&(a.complete(l),E.dispatch(cl(e,l,r)),v_(e,r))}catch(l){if(i!==nt||!t.isCurrent())return;k_.error(`Failed to hydrate agent queue for ${e}`,l),Se(e)?E.dispatch(_i(e,!1)):E.dispatch(dl(e,l instanceof Error?l.message:String(l)))}finally{i===nt&&t.isCurrent()&&wt.delete(n)&&await Ma(e,t,r)}}function Eb(e,t){t??=E.state.agentSessions?.byAgentId[e]?.workspaceId,ci(e,t);const r=Bt(e,t),n=r.key;if(!e||Se(e))return Promise.resolve();const i=dr.get(n);if(i)return wt.add(n),i;const o=Ma(e,r,t).finally(()=>{dr.delete(n)});return dr.set(n,o),o}function w_(e){return e.turnInFlight===!0||e.isResponding===!0||e.isStreaming===!0}const S_=Object.freeze({preserveExplicitRuntimeFlags:!1,allowActiveTurnRuntimeFlagClear:!0});function C_(e,t){if(!(!e||w_(t)))return S_}const To=Nt("AgentReadService");let _e=0,Ro=!1;function Ft(e,t){return Ro||(Ro=!0,Pr(()=>{_e+=1,Fe.clear(),Lr.clear(),yt.clear(),di.clear()})),JSON.stringify([_e,Qe(),t??null,e])}const Fe=new Map,Lr=new Map,yt=new Map;let $a=0;const di=new Map,A_=["pendingQuestionsMessageId","dismissedQuestionsMessageId"];function kb(e,t){t??=E.state.agentSessions?.byAgentId[e]?.workspaceId,di.set(Ft(e,t),$a)}function I_(e,t,r){if(!r)return r;const n=di.get(Ft(e,r.workspaceId));if(n===void 0||t>n)return r;const i=E.state.agentSessions?.byAgentId[e],o=i?.workspaceId===r.workspaceId?i.metadata:void 0;if(!o)return r;let s=r.metadata;for(const a of A_){const l=o[a];typeof l!="string"||s?.[a]===l||(s={...s,[a]:l})}return s===r.metadata?r:{...r,metadata:s}}function T_(e,t,r){if(!t||!e||e.workspaceId!==t.workspaceId)return t;const n=E.state.agentSessions?.byAgentId[String(t.id)];if(!n||n.workspaceId!==t.workspaceId)return t;const i=E.state.agentSessions.projectionVersions?.[String(t.id)],o={...t};for(const a of new Set([...Object.keys(n),...Object.keys(i?.fields??{})]))a!=="metadata"&&(n[a]!==e[a]||i?.fields[a]!==r?.fields[a])&&Object.assign(o,{[a]:n[a]});const s={...t.metadata};for(const a of new Set([...Object.keys(e.metadata??{}),...Object.keys(n.metadata??{}),...Object.keys(i?.metadata??{})])){const l=Object.hasOwn(n.metadata??{},a),u=Object.hasOwn(e.metadata??{},a),d=l?n.metadata?.[a]:void 0,c=u?e.metadata?.[a]:void 0,h=Object.hasOwn(i?.metadata??{},a)?i?.metadata[a]:void 0,f=Object.hasOwn(r?.metadata??{},a)?r?.metadata[a]:void 0;(l!==u||d!==c||h!==f)&&(l?Object.defineProperty(s,a,{value:d,enumerable:!0,configurable:!0,writable:!0}):delete s[a])}return o.metadata=s,o}async function vb(e,t){t??=E.state.agentSessions?.byAgentId[e]?.workspaceId;const r=Ft(e,t),n=Bt(e,t),i=Fe.get(r);if(!i)return kn(e,t);const o=_e,s=yt.get(r);if(s)return s;const a=i.then(()=>{if(yt.delete(r),o===_e&&n.isCurrent())return kn(e,t)},()=>{if(yt.delete(r),o===_e&&n.isCurrent())return kn(e,t)});return yt.set(r,a),a}function pi(e,t){t??=E.state.agentSessions?.byAgentId[e]?.workspaceId;const r=Ft(e,t),n=Fe.get(r);if(n)return n;let i,o;try{i=E.state.agentSessions?.byAgentId[e],o=E.state.agentSessions?.projectionVersions?.[e]}catch{i=void 0}const s=Qe(),a=++$a,l=_e,u=fe.agents.get(e,t).then(d=>l===_e&&s===Qe()?T_(i,I_(e,a,d),o):null).finally(()=>{Fe.get(r)===u&&Fe.delete(r)});return Fe.set(r,u),u}async function wb(e,t,r){const n=Ft(e,t),i=_e,o=Bt(e,t),s=Fe.get(n);if(s&&await s.catch(()=>null),i!==_e||!o.isCurrent()||!r())return null;const a=await pi(e,t);return i===_e&&o.isCurrent()&&r()?a:null}async function R_(e,t,r){r??=E.state.agentSessions?.byAgentId[e]?.workspaceId;try{const n=E.state.agentSessions?.byAgentId[e],i=n?.workspaceId===r?n:void 0,o=i?.isStreaming===!0&&i?.isProcessing===!0,s=await pi(e,r);if(s&&t.bindWorkspace(s.workspaceId),t.isCurrent()&&s&&!s.pendingDeleteAt&&!Se(e)){const a=E.state.agentSessions?.byAgentId[e],l=a?.workspaceId===s.workspaceId?{...s,messages:a.messages}:s;return E.dispatch(Vo([l],C_(o,s))),E.dispatch(Mo(l)),E.dispatch(pl(e)),l}return null}catch(n){return Eu(n)?To.warn("Agent no longer exists on daemon; skipping session load",{agentId:e}):To.error("Failed to load agent session",n),null}finally{Lr.delete(t.key)}}async function kn(e,t){t??=E.state.agentSessions?.byAgentId[e]?.workspaceId;const r=Bt(e,t),n=r.key;if(Se(e))return;const i=Lr.get(n);if(i){await i;return}const o=R_(e,r,t);Lr.set(n,o),await o}const L_=Nt("ChatReadService");let Ye=0,Lo=!1;const mt=new Map,rr=new Map;function Po(e,t){const n=E.state.agentSessions?.byAgentId[e];return n?.workspaceId===t?n?.messages??[]:[]}async function Oo(e,t){if(Se(e)||Gt.select(E.state,e))return;Lo||(Lo=!0,Pr(()=>{Ye+=1,mt.clear(),rr.clear()})),t??=E.state.agentSessions?.byAgentId[e]?.workspaceId;const r=Ye,n=Bt(e,t),i=n.key,o=mt.get(i);if(o){const d=rr.get(i);if(d)return d;const c=o.then(()=>{if(rr.delete(i),r===Ye&&n.isCurrent())return Oo(e,t)});return rr.set(i,c),c}let s;const a=new Promise(d=>{s=d});mt.set(i,a);const l=new Set;for(const d of Po(e,t))typeof d.id=="string"&&l.add(d.id),typeof d.appMessageId=="string"&&l.add(d.appMessageId);try{E.dispatch(hl(e))}catch(d){throw mt.delete(i),d}const u=Va(e,t,"history");return(async()=>{try{const d=E.state.agentSessions?.byAgentId[e],c=d&&d.workspaceId===t?d:await pi(e,t);if(!c||r!==Ye||!n.isCurrent()||(n.bindWorkspace(c.workspaceId),t??=c.workspaceId,c.pendingDeleteAt)||Se(e)||Gt.select(E.state,e))return;const h=await fe.agents.getConversation(e,wu,void 0,void 0,void 0,t??c.workspaceId);if(r!==Ye||!n.isCurrent())return;if(!u.isCurrent()){Oo(e,t);return}const f=h.messages;if(Se(e)||Gt.select(E.state,e))return;const m=f,b=Po(e,t).filter(k=>!(typeof k.id=="string"&&l.has(k.id)||typeof k.appMessageId=="string"&&l.has(k.appMessageId))),v=b.length===0?m:fl([...m,...b]),_=E.state.agentSessions?.byAgentId[e],y={..._?.workspaceId===c.workspaceId?_:c,messages:v};u.complete(Na(f)),E.dispatch(Vo([y])),E.dispatch(Mo(y))}catch(d){L_.error("Failed to load agent conversation transcript",d)}finally{try{r===Ye&&n.isCurrent()&&!Gt.select(E.state,e)&&E.dispatch(ml(e))}finally{mt.delete(i),s()}}})(),a}function P_(e){return e.applyToolCallId??e.preview.title}function Sb(e){const t=new Map;if(e.role!=="assistant")return t;for(const r of Ru(e.contentBlocks??[])){const n=Su(r);if(n===null)continue;const i=P_(n);t.has(i)||t.set(i,n)}return t}function Cb(e){if(!Array.isArray(e))return[];const t=[],r=new Set;for(const n of e){if(!n||typeof n!="object")continue;const{proposalId:i,messageId:o}=n;typeof i!="string"||i.length===0||typeof o!="string"||o.length===0||r.has(i)||(r.add(i),t.push({proposalId:i,messageId:o}))}return t}function Ab(e,t){const r=[],n=new Set;for(const i of e)n.has(i.messageId)||(n.add(i.messageId),t(i.messageId)||r.push(i.messageId));return r}const Ib=E.createSelector((e,t)=>gl(e.inlineVisuals.entries,t)),Tb=E.createSelector((e,t)=>it(e.inlineVisuals.drafts).filter(r=>r.ownerId===t));function Rb(e,t,r){const n=r?.trim();if(!n)return"";const i=e.filter(a=>a.id!==t),o=i.find(a=>a.id===n);if(o)return o.id;const s=i.filter(a=>[a.label,a.hostname,a.host].some(l=>l?.toLowerCase()===n.toLowerCase()));return s.length===1?s[0].id:""}function Lb(e){const t=e.label||e.hostname||e.id;return e.host?`${t} (${e.host}:${e.port})`:t}const O_=E.createSelector((e,t)=>e.settingsProposalHistory.entries[t]??null),Pb=E.createSelector(e=>e.settingsProposalHistory.entries),x_=E.createSelector((e,t)=>e.specialistProposalHistory.entries[t]??null),Ob=E.createSelector(e=>e.specialistProposalHistory.entries),xb=E.createSelector((e,t)=>e.proposalLifecycle[t]??null),Db=E.createSelector((e,t)=>e.proposalLifecycle[t]?.status??"idle"),Nb=E.createSelector((e,t)=>e.proposalLifecycle[t]?.error??null),Vb=E.createSelector((e,t)=>e.proposalLifecycle[t]?.errorCode??null),Mb=E.createSelector((e,t)=>e.proposalLifecycle[t]?.result??null),$b=E.createSelector(e=>e.proposalLifecycle);function Kn(e){return e===void 0?"undefined":e===null||typeof e!="object"?JSON.stringify(e):Array.isArray(e)?`[${e.map(Kn).join(",")}]`:`{${Object.entries(e).sort(([t],[r])=>t.localeCompare(r)).map(([t,r])=>`${JSON.stringify(t)}:${Kn(r)}`).join(",")}}`}function D_(e){let t=5381;for(let r=0;r<e.length;r+=1)t=t*33^e.charCodeAt(r);return(t>>>0).toString(36)}function hi(e){if(e.applyToolCallId)return e.applyToolCallId;const t=e.kind==="settings-change"?e.payload.changes:e.payload;return`settings-${D_(Kn(t))}`}function Bb(e,t,r){const n=hi(e);return e.applyToolCallId||e.kind!=="workspace-create"?n:`${n}@${t}/${r}`}const N_=zo.map(({id:e,label:t})=>`${t} (${e})`).join(", "),V_=Object.fromEntries(zo.map(({id:e,label:t})=>[e,t]));function M_(e){try{const t=JSON.stringify(e);return t?t.length>120?`${t.slice(0,117)}…`:t:String(e)}catch{return String(e)}}function Fb(e,t){if(t==null||t===""||e.nullable===!0&&t==="null")return e.nullLabel??"(none)";if(e.type==="number"&&typeof t=="string"&&t.trim()!==""){const r=Number(t);if(Number.isFinite(r))return String(r)}return e.type==="enum"&&typeof t=="string"?e.enumLabels?.[t]??t:typeof t=="boolean"?t?"On":"Off":typeof t=="string"||typeof t=="number"?String(t):M_(t)}const $_=[{path:"preferences.updateChannel",label:"Update channel",description:"Release channel for app updates: stable, beta, or alpha — or disabled to turn updates off.",category:"preferences",type:"enum",enumValues:ku,enumLabels:{stable:"Stable",beta:"Beta",alpha:"Alpha",disabled:"Disabled"},source:"redux",defaultValue:"stable",apply:{kind:"redux-action",action:"userPreferences/setUpdateChannel"}},{path:"preferences.spellcheckEnabled",label:"Notes spellcheck",description:"Whether spellcheck is enabled in note editors.",category:"preferences",type:"boolean",source:"local-storage",storageKey:"note-spellcheck-settings",valuePath:"enabled",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setSpellcheckEnabled"}},{path:"workspaceList.showArchived",label:"Show archived workspaces",description:"Whether archived workspaces are shown in workspace lists.",category:"workspace",type:"boolean",source:"local-storage",storageKey:"workspace-list:showArchived",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setShowArchived"}},{path:"workspaceList.groupByRepo",label:"Group workspaces by repo",description:"Whether workspace lists group workspaces by repository.",category:"workspace",type:"boolean",source:"local-storage",storageKey:"workspace-list:groupByRepo",defaultValue:!0,apply:{kind:"redux-action",action:"userPreferences/setGroupByRepo"}},{path:"providers.completedSetup",label:"Provider setup completed",description:"Whether the provider setup checklist has been completed.",category:"accounts",type:"boolean",source:"local-storage",storageKey:"workspace-list:completedProviderSetup",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setHasCompletedProviderSetup"}},{path:"preferences.language",label:"Language",description:'Display language for the app UI. "system" follows the OS locale; otherwise a BCP-47 tag of an available message catalog.',category:"preferences",type:"enum",enumValues:[Kr,..._c],enumLabels:{[Kr]:"System"},source:"local-storage",storageKey:"language-preference",defaultValue:Kr,apply:{kind:"redux-action",action:"userPreferences/setLanguagePreference"}},{path:"theme.preference",label:"Theme preference",description:"Light, dark, or system theme preference.",category:"theme",type:"enum",enumValues:["light","dark","system"],enumLabels:{light:"Light",dark:"Dark",system:"System"},source:"local-storage",storageKey:"theme",defaultValue:"system",apply:{kind:"redux-action",action:"theme/requestThemePreferenceChange"}},{path:"appearance.chatAurora",label:"Chat aurora",description:"Whether the aurora effect is shown while chat responses are streaming.",category:"theme",type:"boolean",source:"local-storage",storageKey:"chat:auroraEnabled",defaultValue:!0,apply:{kind:"redux-action",action:"userPreferences/setChatAuroraEnabled"}},{path:"appearance.shellTransparency",label:"Shell transparency",description:"Whether the app shell uses translucent backgrounds.",category:"theme",type:"boolean",source:"local-storage",storageKey:"appearance:shellTransparencyEnabled",defaultValue:!0,apply:{kind:"redux-action",action:"userPreferences/setShellTransparencyEnabled"}},{path:"appearance.reduceMotionOnBattery",label:"Reduce motion on battery",description:"Whether animations are reduced while the machine runs on battery power.",category:"theme",type:"boolean",source:"local-storage",storageKey:"appearance:reduceMotionOnBattery",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setReduceMotionOnBattery"}},{path:"appearance.pauseAnimationsWhenUnfocused",label:"Pause animations when not in focus",description:"Whether looping animations pause while the app window is not focused.",category:"theme",type:"boolean",source:"local-storage",storageKey:"appearance:pauseAnimationsWhenUnfocused",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setPauseAnimationsWhenUnfocused"}},{path:"labs.remoteAgents",label:"Remote agents (Labs)",description:"Offer experimental remote agent setup and placement, including letting a backend run agents on your machines. Existing remote sessions remain available when disabled.",category:"labs",type:"boolean",source:"local-storage",storageKey:"labs:remoteAgentsEnabled",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setLabsRemoteAgentsEnabled"}},{path:"labs.plainFolderWorkspaces",label:"Plain-folder workspaces (Labs)",description:"Offer an Initialize as git repository toggle when creating a workspace, so new workspaces can be plain folders without git. Existing plain-folder workspaces keep working when disabled.",category:"labs",type:"boolean",source:"local-storage",storageKey:"labs:plainFolderWorkspacesEnabled",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setLabsPlainFolderWorkspacesEnabled"}},{path:"labs.tabGroups",label:"Tab groups (Labs)",description:"Group workspace tabs into named, colored groups that collapse when not in use. Groups you made are kept but hidden while disabled.",category:"labs",type:"boolean",source:"local-storage",storageKey:"labs:tabGroupsEnabled",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setLabsTabGroupsEnabled"}},{path:"labs.cloudMachines",label:"E2B cloud machines (Labs)",description:"Offer E2B cloud machines: set up E2B in Settings → Machines, list its sandboxes, and start agents on a new E2B sandbox. Needs Remote agents. Agents already on E2B keep showing when disabled.",category:"labs",type:"boolean",source:"local-storage",storageKey:"labs:cloudMachinesEnabled",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setLabsCloudMachinesEnabled"}},{path:"theme.activePresetId",label:"Theme preset",description:`Active built-in color theme preset ID. Available presets: ${N_}.`,category:"theme",type:"enum",enumValues:qu,enumLabels:V_,source:"local-storage",storageKey:"theme-preset-id",defaultValue:null,nullable:!0,nullLabel:"Default",apply:{kind:"redux-action",action:"theme/selectThemePreset"}},{path:"model.default",label:"Default model",description:"Default model used by the model picker for new chats.",category:"agents",type:"string",source:"local-storage",storageKey:"workspaces-selected-model",defaultValue:"",apply:{kind:"redux-action",action:"model/selectModel"}},{path:"model.providerDefaults",label:"Per-provider default models",description:"Remembered selected model for each coding-agent provider.",category:"agents",type:"object",source:"local-storage",storageKey:"workspaces-provider-models",defaultValue:{},apply:{kind:"read-only"}},{path:"model.defaultReasoningEffort",label:"Default reasoning effort",description:"Reasoning-effort level applied to new agents that resolve their model from the default-model setting. Empty means unset (the model default).",category:"agents",type:"string",source:"daemon-settings",storageKey:"model.defaultReasoningEffort",defaultValue:"",apply:{kind:"daemon-settings-update",path:"model.defaultReasoningEffort"}},{path:"model.pickerCollapsedGroups",label:"Collapsed model picker groups",description:"Model picker groups the user has collapsed.",category:"agents",type:"array",source:"local-storage",storageKey:"model-picker-collapsed-groups",defaultValue:[],apply:{kind:"read-only"}},{path:"specialists.default",label:"Default specialist",description:"Daemon setting: specialist applied when none is chosen (e.g. running a task note). Empty means unset (falls back to implementor).",category:"agents",type:"string",source:"daemon-settings",storageKey:"specialists.default",defaultValue:"",apply:{kind:"daemon-settings-update",path:"specialists.default"}},{path:"workspaceInitializer.lastSpecialist",label:"Last workspace initializer specialist",description:"Last submitted workspace initializer specialist selection.",category:"agents",type:"object",source:"local-storage",storageKey:"workspace-initializer-last-agent",defaultValue:null,apply:{kind:"read-only"}},{path:"model.defaultProvider",label:"Default provider",description:"Default provider/coding agent for new work.",category:"agents",type:"string",source:"daemon-settings",storageKey:"model.defaultProvider",defaultValue:"auggie",apply:{kind:"redux-action",action:"providerSettings/setActiveProvider"}},{path:"providers.enabled",label:"Enabled coding agents",description:"Per-provider enabled/disabled settings.",category:"accounts",type:"object",source:"local-storage",storageKey:"additional-agents-settings",defaultValue:{},apply:{kind:"redux-action",action:"providerSettings/setProviderEnabled"}},{path:"providers.paths.auggie",label:"Auggie CLI path",description:"Override path for the Auggie provider executable.",category:"accounts",type:"string",source:"daemon-settings",storageKey:"context.auggiePath",defaultValue:"",apply:{kind:"read-only"}},{path:"providers.paths.claude-code",label:"Claude Code CLI path",description:"Override path for the Claude Code provider executable.",category:"accounts",type:"string",source:"daemon-settings",storageKey:"providers.paths",valuePath:"claude-code",defaultValue:"",apply:{kind:"read-only"}},{path:"providers.paths.codex",label:"Codex CLI path",description:"Override path for the Codex provider executable.",category:"accounts",type:"string",source:"daemon-settings",storageKey:"providers.paths",valuePath:"codex",defaultValue:"",apply:{kind:"read-only"}},{path:"workspace.branchPrefix",label:"Branch prefix",description:"Prefix added to newly-created workspace branches.",category:"workspace",type:"string",source:"daemon-settings",storageKey:"workspace.branchPrefix",defaultValue:"",apply:{kind:"daemon-settings-update",path:"workspace.branchPrefix"}},{path:"workspace.worktreesLocation",label:"Worktrees location",description:"Custom parent directory for workspace worktrees.",category:"workspace",type:"string",source:"daemon-settings",storageKey:"workspace.worktreesLocation",defaultValue:"",apply:{kind:"read-only"}},{path:"workspace.sshKeyPath",label:"SSH key path",description:"Optional SSH private key path used by Git operations.",category:"workspace",type:"string",source:"daemon-settings",storageKey:"workspace.sshKeyPath",defaultValue:"",sensitive:!0,apply:{kind:"read-only"}},{path:"workspace.defaultShell",label:"Default shell",description:"Default shell used for terminals.",category:"workspace",type:"string",source:"daemon-settings",storageKey:"workspace.defaultShell",defaultValue:"auto",apply:{kind:"read-only"}},{path:"workspace.autoArchiveIdleAfterDays",label:"Auto-archive idle workspaces (days)",description:"Archive workspaces after this many days without activity. 0 turns automatic archiving off.",category:"workspace",type:"number",min:0,source:"daemon-settings",storageKey:"workspace.autoArchiveIdleAfterDays",defaultValue:0,apply:{kind:"daemon-settings-update",path:"workspace.autoArchiveIdleAfterDays"}},{path:"workspace.purgeArchivedAfterDays",label:"Purge archived workspace folders (days)",description:"Delete the folders of workspaces archived longer than this many days; notes, conversations and branches are kept. Empty turns automatic purging off.",category:"workspace",type:"number",min:1,source:"daemon-settings",storageKey:"workspace.purgeArchivedAfterDays",defaultValue:null,nullable:!0,nullLabel:"Off",apply:{kind:"daemon-settings-update",path:"workspace.purgeArchivedAfterDays"}},{path:"workspace.autoCommit",label:"Auto-commit",description:"Global default for workspace auto-commit behavior.",category:"workspace",type:"boolean",source:"daemon-settings",storageKey:"git.autoCommit",defaultValue:!0,apply:{kind:"daemon-settings-update",path:"git.autoCommit"}},{path:"notifications.enabled",label:"Notifications enabled",description:"Whether app notifications are enabled.",category:"notifications",type:"boolean",source:"daemon-settings",storageKey:"notifications.enabled",defaultValue:!0,apply:{kind:"redux-action",action:"notificationSettings/setNotificationEnabled"}},{path:"notifications.soundEnabled",label:"Notification sounds",description:"Whether notification sounds are enabled.",category:"notifications",type:"boolean",source:"daemon-settings",storageKey:"notifications.soundEnabled",defaultValue:!0,apply:{kind:"redux-action",action:"notificationSettings/setSoundEnabled"}},{path:"notifications.soundOnlyWhenUnfocused",label:"Sound only when unfocused",description:"Only play notification sounds when the app is unfocused.",category:"notifications",type:"boolean",source:"daemon-settings",storageKey:"notifications.soundOnlyWhenUnfocused",defaultValue:!0,apply:{kind:"redux-action",action:"notificationSettings/setSoundOnlyWhenUnfocused"}},{path:"notifications.volume",label:"Notification volume",description:"Notification sound volume from 0 to 1.",category:"notifications",type:"number",min:0,max:1,source:"daemon-settings",storageKey:"notifications.volume",defaultValue:.5,apply:{kind:"redux-action",action:"notificationSettings/setVolume"}},{path:"mcp.enableUserServers",label:"User MCP servers enabled",description:"Whether custom user MCP servers from ~/.augment/settings.json are enabled.",category:"mcp",type:"boolean",source:"daemon-settings",storageKey:"mcp.enableUserServers",defaultValue:!0,apply:{kind:"daemon-settings-update",path:"mcp.enableUserServers"}},{path:"mcp.disabledServers",label:"Disabled MCP servers",description:"Global list of disabled MCP server names.",category:"mcp",type:"array",source:"daemon-settings",storageKey:"mcp.disabledServers",defaultValue:[],apply:{kind:"daemon-settings-update",path:"mcp.disabledServers"}},{path:"mcp.servers",label:"MCP servers",description:"Configured MCP servers from ~/.augment/settings.json.",category:"mcp",type:"object",source:"augment-settings",storageKey:"mcpServers",defaultValue:{},sensitive:!0,apply:{kind:"user-mcp-settings",key:"mcpServers"}},{path:"quickActions.defaultModel",label:"Default quick action model",description:"Default model for single-shot quick actions (commit messages, PR descriptions, quick tasks). Never applied to agent sessions.",category:"agents",type:"string",source:"local-storage",storageKey:"workspaces-background-agent-settings",valuePath:"defaultModel",defaultValue:"",apply:{kind:"redux-action",action:"backgroundAgentSettings/setDefaultModel"}},{path:"quickActions.typeOverrides",label:"Quick action model overrides",description:"Per-quick-action model overrides.",category:"agents",type:"object",source:"local-storage",storageKey:"workspaces-background-agent-settings",valuePath:"typeOverrides",defaultValue:{commit:"",pr:"",review:"",fast:""},apply:{kind:"redux-action",action:"backgroundAgentSettings/setTypeOverride"}},{path:"quickActions.defaultReasoningEffort",label:"Default quick action effort",description:"Reasoning effort for quick actions. Empty inherits the provider default.",category:"agents",type:"string",source:"local-storage",storageKey:"workspaces-background-agent-settings",valuePath:"defaultReasoningEffort",defaultValue:"",apply:{kind:"redux-action",action:"backgroundAgentSettings/setDefaultReasoningEffort"}},{path:"quickActions.typeReasoningEffortOverrides",label:"Quick action effort overrides",description:"Per-action reasoning effort, independent of the model override.",category:"agents",type:"object",source:"local-storage",storageKey:"workspaces-background-agent-settings",valuePath:"typeReasoningEffortOverrides",defaultValue:{},apply:{kind:"redux-action",action:"backgroundAgentSettings/setTypeReasoningEffortOverrides"}},{path:"quickActions.providerSettings",label:"Per-provider quick action settings",description:"Cached quick action settings by provider ID.",category:"agents",type:"object",source:"local-storage",storageKey:"workspaces-bg-agent-settings-per-provider",defaultValue:{},apply:{kind:"read-only"}},{path:"fonts.agent",label:"Agent font",description:"Font style for agent messages.",category:"fonts",type:"enum",enumValues:["sans","monospace"],source:"local-storage",storageKey:"agent-font-settings",valuePath:"fontStyle",defaultValue:"sans",apply:{kind:"redux-action",action:"fontSettings/setAgentFontStyle"}},{path:"fonts.notes",label:"Notes font",description:"Font style for notes.",category:"fonts",type:"enum",enumValues:["sans","serif","monospace"],source:"local-storage",storageKey:"note-font-settings",valuePath:"fontStyle",defaultValue:"sans",apply:{kind:"redux-action",action:"fontSettings/setNoteFontStyle"}},{path:"fonts.code",label:"Code font",description:"Font family for code editors.",category:"fonts",type:"string",source:"local-storage",storageKey:"code-font-settings",valuePath:"fontFamily",defaultValue:"system-default",apply:{kind:"redux-action",action:"fontSettings/setCodeFontFamily"}},{path:"ui.editor",label:"Editor view options",description:"Code/diff editor wrapping, folding, side-by-side diff, and indicators.",category:"per-feature",type:"object",source:"local-storage",storageKey:"editor-settings",defaultValue:{lineWrapping:!0,foldUnchanged:!0,diffSideBySide:!0,diffIndicators:!0},apply:{kind:"redux-action",action:"uiLayout/editorSettings"}},{path:"ui.layout",label:"Layout settings",description:"Spaces sidebar width/collapse, tab pinning, and sidebar side.",category:"per-feature",type:"object",source:"local-storage",storageKey:"layout-settings",defaultValue:{spacesSidebarWidth:200,spacesSidebarCollapsed:!1,tabbedSidebarPinned:!0,sidebarSide:"left"},apply:{kind:"redux-action",action:"uiLayout/layoutSettings"}},{path:"ui.workspaceLeftPanel.collapsed",label:"Workspace left panel collapsed",description:"Collapsed state for the workspace left panel.",category:"per-feature",type:"boolean",source:"local-storage",storageKey:"workspace-left-panel-collapsed",defaultValue:!1,apply:{kind:"redux-action",action:"uiLayout/setCollapsed"}},{path:"ui.workspaceLeftPanel.widthPercent",label:"Workspace left panel width",description:"Persisted workspace left panel width as a percent of window width.",category:"per-feature",type:"number",source:"local-storage",storageKey:"workspace-left-panel-width",defaultValue:null,apply:{kind:"read-only"}},{path:"ui.workspaceLeftPanel.expandedWidthPercent",label:"Workspace left panel expanded width",description:"Persisted expanded workspace left panel width as a percent of window width.",category:"per-feature",type:"number",source:"local-storage",storageKey:"workspace-left-panel-expanded-width",defaultValue:null,apply:{kind:"read-only"}},{path:"ui.bottomDock",label:"Bottom dock settings",description:"Bottom dock view mode, terminal selection, and height.",category:"per-feature",type:"object",source:"local-storage",storageKey:"bottom-dock-state",defaultValue:{viewMode:"agents",activeTerminalId:null,height:400},apply:{kind:"read-only"}},{path:"ui.workspaceSidebarPanels",label:"Workspace sidebar panels",description:"Collapsed and height settings for workspace sidebar panels.",category:"per-feature",type:"object",source:"local-storage",storageKey:"vscode-resizable-panels",defaultValue:{collapsed:{},heights:{}},apply:{kind:"read-only"}},{path:"openIn.defaultAction",label:"Open In default action",description:"Default action for Open In controls.",category:"per-feature",type:"string",source:"local-storage",storageKey:"open-combo-button-last-action",defaultValue:"vscode",apply:{kind:"redux-action",action:"externalEditors/setOpenAction"}},{path:"openIn.editorOrder",label:"Open In editor order",description:"Preferred order for editors shown in Open In controls.",category:"per-feature",type:"array",source:"local-storage",storageKey:"settings:openInEditorsOrder",defaultValue:[],apply:{kind:"local-storage-set",key:"settings:openInEditorsOrder"}},{path:"githubLinks.defaultAction",label:"GitHub link default action",description:"Default action for plain clicks on GitHub issue and pull request links.",category:"per-feature",type:"enum",enumValues:el,enumLabels:{"show-choices":"Show choices","open-in-browser":"Open in browser","open-in-app":"Open in app","copy-link":"Copy link","start-workspace":"Start workspace"},source:"local-storage",storageKey:"github-links:defaultAction",defaultValue:"show-choices",apply:{kind:"redux-action",action:"userPreferences/setGithubLinkDefaultAction"}},{path:"openIn.hiddenEditors",label:"Hidden Open In editors",description:"Editor IDs hidden from Open In menus.",category:"per-feature",type:"array",source:"local-storage",storageKey:"legacy-settings:hiddenOpenInEditors",defaultValue:[],apply:{kind:"local-storage-set",key:"legacy-settings:hiddenOpenInEditors"}},{path:"rtk.enabled",label:"RTK enabled",description:"Whether RTK helper behavior is enabled.",category:"per-feature",type:"boolean",source:"daemon-settings",storageKey:"rtk.enabled",defaultValue:!1,apply:{kind:"daemon-settings-update",path:"rtk.enabled"}},{path:"linear.issueFilter",label:"Linear issue filter",description:"Saved Linear issue filter used by integrations.",category:"accounts",type:"object",source:"local-storage",storageKey:"legacy-settings:linearIssueFilter",defaultValue:null,apply:{kind:"local-storage-set",key:"legacy-settings:linearIssueFilter"}},{path:"accounts.sentry",label:"Sentry account",description:"Persisted Sentry account status. API tokens are never exposed.",category:"accounts",type:"status",source:"daemon-settings",storageKey:"accounts.sentry",defaultValue:null,sensitive:!0,apply:{kind:"read-only"}},{path:"activityLog.presets",label:"Activity log presets",description:"Saved activity log filter presets.",category:"per-feature",type:"array",source:"local-storage",storageKey:"activityLogPresets",defaultValue:[],apply:{kind:"read-only"}},{path:"keybindings.shortcuts",label:"Keyboard shortcuts",description:"Built-in keyboard shortcut catalog. Custom keybindings are not persisted yet.",category:"keybindings",type:"readonly",source:"static",defaultValue:"Built-in shortcuts are available in the shortcuts cheat sheet.",apply:{kind:"read-only"}}];function Ba(e){return $_.find(t=>t.path===e)}class xo extends Error{constructor(t){super(me.chat_settingsProposalActions_notProposable_error({path:t})),this.name="SettingNotProposableError"}}const Fa=new Set(["boolean","number","string","enum","object"]);function Ga(e){return e.proposable===!0&&e.sensitive!==!0}function ja(e){return{path:e.path,label:e.label||e.path,description:e.description??"",category:e.category??"daemon",type:e.type,source:"daemon-settings",storageKey:e.path,defaultValue:e.defaultValue,nullable:e.defaultValue===void 0,...e.enumValues?{enumValues:e.enumValues}:{},...typeof e.min=="number"?{min:e.min}:{},...typeof e.max=="number"?{max:e.max}:{},apply:{kind:"daemon-settings-update",path:e.path}}}async function B_(e){const t=Ba(e);if(t&&t.apply.kind!=="daemon-settings-update")return{kind:"app",definition:t};const r=t?.apply.kind==="daemon-settings-update"?t.apply.path:e,n=await fe.settings.get(r);if(t){if(n&&(n.proposable===!1||n.sensitive===!0))throw new xo(e);return{kind:"app-daemon",definition:t,entry:n}}if(!n||n.path!==e||!Fa.has(n.type))return{kind:"unknown"};if(!Ga(n))throw new xo(e);return{kind:"daemon",definition:ja(n),entry:n}}async function Gb(e){const t=Ba(e);if(t)return t;try{const r=await fe.settings.get(e);return!r||r.path!==e||!Ga(r)||!Fa.has(r.type)?void 0:ja(r)}catch{return}}function F_(e){return e.payload}function G_(e,t,r){const n=e.editedFields[t.path];if(n===void 0)return t.value;if(r?.nullable===!0&&n==="")return null;if(!r||r.type==="string"||r.type==="enum")return n;if(r.type==="boolean")return n===!0||n==="true";if(r.type==="number"){const i=Number(n);return Number.isFinite(i)?i:t.value}try{return JSON.parse(String(n))}catch{return t.value}}function rt(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function fi(e,t){return t?t.split(".").reduce((r,n)=>{if(!(!r||typeof r!="object"))return r[n]},e):e}function j_(e,t){if(e!=null){if(t.type==="boolean"){if(e==="true")return!0;if(e==="false")return!1}if(t.type==="number"){const r=Number(e);return Number.isFinite(r)?r:void 0}if(t.valuePath||["object","array","status","readonly"].includes(t.type))try{return JSON.parse(e)}catch{return}return e}}function U_(e){if(e===void 0)return null;if(e===null||typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;try{return JSON.parse(JSON.stringify(e))}catch{return String(e)}}function Ua(e){return e instanceof Error?e.message:String(e||me.chat_settingsProposalActions_unknownError_fallback())}async function q_(e){if(!e.storageKey)return e.defaultValue;const t=await fe.settings.get(e.storageKey);return fi(t?.value,e.valuePath)??e.defaultValue}const z_=new Set(["workspaces-active-provider","workspace-list:completedProviderSetup"]);function qa(e){return z_.has(e)?Cu(e,Au(E.state)):e}function W_(e){if(typeof window>"u"||!e.storageKey)return e.defaultValue;const t=j_(window.localStorage.getItem(qa(e.storageKey)),e);return fi(t,e.valuePath)??e.defaultValue}async function H_(e,t,r){if(!t&&r===null){if(!await fe.settings.reset(e))throw new Error(`Could not clear setting "${e}"`);return}if(!t){await fe.settings.update([{path:e,value:r}]);return}const n=await fe.settings.get(e),o={...rt(n?.value),[t]:r};await fe.settings.update([{path:e,value:o}])}function Do(e,t){if(typeof window>"u")return;const r=qa(e);if(t==null){window.localStorage.removeItem(r);return}window.localStorage.setItem(r,JSON.stringify(t))}async function K_(e){const{definition:t}=e;if(e.kind==="daemon")return e.entry.value??null;const r=E.state;switch(t.path){case"preferences.updateChannel":return gc.select(r);case"preferences.spellcheckEnabled":return mc.select(r);case"appearance.chatAurora":return fc.select(r);case"appearance.shellTransparency":return hc.select(r);case"appearance.pauseAnimationsWhenUnfocused":return pc.select(r);case"labs.remoteAgents":return dc.select(r);case"labs.plainFolderWorkspaces":return cc.select(r);case"labs.tabGroups":return uc.select(r);case"labs.cloudMachines":return lc.select(r);case"workspaceList.showArchived":return ac.select(r);case"workspaceList.groupByRepo":return sc.select(r);case"providers.completedSetup":return oc.select(r);case"preferences.language":return ic.select(r);case"theme.preference":return Uu.select(r);case"theme.activePresetId":return ju.select(r);case"model.default":return Ou.select(r);case"model.defaultProvider":return Pu.select(r);case"providers.enabled":return Lu.select(r);case"notifications.enabled":return nc.select(r);case"notifications.soundEnabled":return rc.select(r);case"notifications.soundOnlyWhenUnfocused":return tc.select(r);case"notifications.volume":return ec.select(r);case"quickActions.defaultReasoningEffort":return Ku.select(r);case"quickActions.typeReasoningEffortOverrides":return Hu.select(r);case"quickActions.defaultModel":return Wu.select(r);case"quickActions.typeOverrides":return zu.select(r);case"fonts.agent":return Yu.select(r);case"fonts.notes":return Zu.select(r);case"fonts.code":return Ju.select(r);case"ui.editor":return{lineWrapping:bu.select(r),foldUnchanged:yu.select(r),diffSideBySide:_u.select(r),diffIndicators:gu.select(r)};case"ui.layout":return{spacesSidebarWidth:mu.select(r),spacesSidebarCollapsed:fu.select(r),tabbedSidebarPinned:hu.select(r),sidebarSide:pu.select(r)};case"ui.workspaceLeftPanel.collapsed":return du.select(r);case"openIn.defaultAction":return $u.select(r);case"openIn.editorOrder":return Mu.select(r);case"githubLinks.defaultAction":return Xu.select(r);case"openIn.hiddenEditors":return Vu.select(r);case"mcp.enableUserServers":return Nu.select(r);case"mcp.disabledServers":return Object.keys(Du.select(r));default:return e.kind==="app-daemon"&&e.entry?fi(e.entry.value,t.valuePath)??t.defaultValue:t.source==="daemon-settings"?q_(t):t.source==="local-storage"?W_(t):t.defaultValue}}function Q_(e){return e==="light"||e==="dark"||e==="system"}function X_(e){return e==="sans"||e==="monospace"}function J_(e){return e==="sans"||e==="serif"||e==="monospace"}function Z_(e,t){switch(e){case"preferences.updateChannel":return vu(t)?(E.dispatch(lu(t)),!0):!1;case"preferences.spellcheckEnabled":return E.dispatch(au(!!t)),!0;case"appearance.chatAurora":return E.dispatch(su(!!t)),!0;case"appearance.shellTransparency":return E.dispatch(ou(!!t)),!0;case"appearance.pauseAnimationsWhenUnfocused":return typeof t!="boolean"?!1:(E.dispatch(iu(t)),!0);case"labs.remoteAgents":return typeof t!="boolean"?!1:(E.dispatch(nu(t)),!0);case"labs.plainFolderWorkspaces":return typeof t!="boolean"?!1:(E.dispatch(ru(t)),!0);case"labs.tabGroups":return typeof t!="boolean"?!1:(E.dispatch(tu(t)),!0);case"labs.cloudMachines":return typeof t!="boolean"?!1:(E.dispatch(eu(t)),!0);case"workspaceList.showArchived":return E.dispatch(Yl(!!t)),!0;case"workspaceList.groupByRepo":return E.dispatch(Zl(!!t)),!0;case"providers.completedSetup":return E.dispatch(Jl(!!t)),!0;case"preferences.language":return E.dispatch(Xl(String(t??""))),!0;case"theme.preference":return Q_(t)?(E.dispatch(Ql(t)),!0):!1;case"theme.activePresetId":return t===null?(E.dispatch(Hl()),!0):(E.dispatch(Kl(String(t))),!0);case"model.default":return Qn(e,t),E.dispatch(Wl(String(t??""))),!0;case"model.defaultProvider":return Qn(e,t),E.dispatch(zl(String(t??""))),!0;case"providers.enabled":{const r=Qu.select(E.state);for(const[n,i]of Object.entries(rt(t)))!i&&r[n]||E.dispatch(ql({providerId:n,enabled:!!i}));return!0}case"notifications.enabled":return E.dispatch(Ul(!!t)),!0;case"notifications.soundEnabled":return E.dispatch(jl(!!t)),!0;case"notifications.soundOnlyWhenUnfocused":return E.dispatch(Gl(!!t)),!0;case"notifications.volume":{const r=Number(t);return Number.isFinite(r)?(E.dispatch(Fl(r)),!0):!1}case"quickActions.defaultReasoningEffort":return E.dispatch(Bl(String(t??""))),!0;case"quickActions.typeReasoningEffortOverrides":return E.dispatch($l(Object.fromEntries(Object.entries(rt(t)).map(([r,n])=>[r,String(n??"")])))),!0;case"quickActions.defaultModel":return E.dispatch(Ml(String(t??""))),!0;case"quickActions.typeOverrides":for(const[r,n]of Object.entries(rt(t)))E.dispatch(Vl({type:r,model:String(n??"")}));return!0;case"fonts.agent":return X_(t)?(E.dispatch(Nl(t)),!0):!1;case"fonts.notes":return J_(t)?(E.dispatch(Dl(t)),!0):!1;case"fonts.code":return E.dispatch(xl(String(t??""))),!0;case"ui.editor":{const r=rt(t);return"lineWrapping"in r&&E.dispatch(Rl(!!r.lineWrapping)),"foldUnchanged"in r&&E.dispatch(Ll(!!r.foldUnchanged)),"diffSideBySide"in r&&E.dispatch(Pl(!!r.diffSideBySide)),"diffIndicators"in r&&E.dispatch(Ol(!!r.diffIndicators)),!0}case"ui.layout":{const r=rt(t);return typeof r.spacesSidebarWidth=="number"&&Number.isFinite(r.spacesSidebarWidth)&&E.dispatch(Cl(r.spacesSidebarWidth)),"spacesSidebarCollapsed"in r&&E.dispatch(Al(!!r.spacesSidebarCollapsed)),"tabbedSidebarPinned"in r&&E.dispatch(Il(!!r.tabbedSidebarPinned)),(r.sidebarSide==="left"||r.sidebarSide==="right")&&E.dispatch(Tl(r.sidebarSide)),!0}case"ui.workspaceLeftPanel.collapsed":return E.dispatch(Sl(!!t)),!0;case"openIn.defaultAction":return E.dispatch(wl(String(t??""))),!0;case"githubLinks.defaultAction":return tl(t)?(E.dispatch(vl(t)),!0):!1;default:return!1}}async function za(e,t,r){if(!r)throw new Error(me.chat_settingsProposalActions_unknownSetting_error({path:e}));if(r.kind==="read-only")throw new Error(me.chat_settingsProposalActions_readOnlySetting_error({path:e}));if(!Z_(e,t)){if(r.kind==="redux-action")throw new Error(`Invalid value for setting "${e}": ${JSON.stringify(t)}`);if(r.kind==="daemon-settings-update"){await H_(r.path,r.valuePath,t),e==="mcp.enableUserServers"&&E.dispatch(_l(!!t)),e==="mcp.disabledServers"&&Array.isArray(t)&&E.dispatch(yl(Object.fromEntries(t.map(n=>[String(n),!0]))));return}if(r.kind==="local-storage-set"){if(e==="openIn.editorOrder"){if(!Array.isArray(t))throw new Error(`Invalid value for setting "${e}": ${JSON.stringify(t)}`);const n=bl(t);Do(r.key,n),E.dispatch(El(n));return}Do(r.key,t),e==="openIn.hiddenEditors"&&Array.isArray(t)&&E.dispatch(kl(t.map(String)));return}throw new Error(me.chat_settingsProposalActions_unsupportedPlan_error({path:e,kind:r.kind}))}}async function Y_(e,t){const r=await B_(e.path);if(r.kind==="unknown")return{...e,value:t(e,void 0),rollback:null};const{definition:n}=r,i=n.apply,o=await K_(r);return{...e,value:t(e,n),apply:i,rollback:{path:e.path,value:U_(o),apply:i}}}async function ey(e){const t=[];for(const r of[...e].reverse())if(r.rollback)try{await za(r.rollback.path,r.rollback.value,r.rollback.apply)}catch(n){t.push(`${r.rollback.path}: ${Ua(n)}`)}return t}function Qn(e,t){const r=e==="model.defaultProvider"?String(t??""):e==="model.default"?Xn(String(t??"")).providerId:void 0;if(r&&xu(E.state.backgroundAgentSettings,r))throw new Error(me.settings_backgroundAgent_legacySwitch_error({provider:r}))}async function Wa(e,t,r=n=>n.value){const n=[],i=[];try{for(const o of e)n.push(await Y_(o,r));for(const o of n)Qn(o.path,o.value);for(const o of n)await za(o.path,o.value,o.apply),i.push(o)}catch(o){const s=await ey(i),a=`${t}: ${Ua(o)}`;throw s.length>0?new Error(`${a}; rollback failed for ${s.join(", ")}`):new Error(a)}return n.map(o=>o.rollback).filter(o=>o!==null)}function jb(e){if(e.proposal.kind!=="settings-change")return!1;const t=hi(e.proposal);return E.dispatch(Bo({proposalId:t,kind:"settings-change",detail:e})),!0}async function Ub(e){if(e.proposal.kind!=="settings-change")throw new Error("applySettingsProposalWork requires a settings-change proposal");const t=F_(e.proposal).changes;return{reverseChanges:await Wa(t.map(n=>({path:n.path,value:n.value})),me.chat_settingsProposalActions_applyFailed_label(),(n,i)=>G_(e,n,i))}}async function ty(e){await Wa(e,me.chat_settingsProposalActions_undoFailed_label())}async function qb(e){await ty(e)}function zb(e){const t=E;return O_.select(E.state,e)?(t.dispatch($o({proposalId:e,kind:"settings-change"})),!0):!1}function ry(e,t){return e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/[’']/g,"").replace(/[^a-z0-9]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")||t?.fallback||""}function ny(e,t,r){const n=ry(e,{fallback:"specialist"}),i=t instanceof Set?t:new Set(t);if(!i.has(n))return n;let o=2;for(;i.has(`${n}-${o}`);)o+=1;return`${n}-${o}`}function Ha(e){return e.payload}function nr(e,t,r,n=""){const i=t.editedFields[r];if(i!==void 0)return typeof i=="string"?i:String(i??"");const o=Ha(e)[r];return typeof o=="string"?o:n}function iy(e,t){if(!t)return;const r=Tu.select(e,t);return r?.path??r?.worktreePath??r?.repositoryPath}function oy(e,t){return e==="project"||e==="user"?e:t??"user"}function sy(e,t,r,n,i,o,s){return{id:t,name:r.name,description:r.description,codingAgent:n?.codingAgent??r.codingAgent??qo.select(e,t,s),model:n?.model??r.defaultModel??jo.select(e,t,s),roleReminder:n?.roleReminder??r.roleReminder,behaviorPrompt:n?.behaviorPrompt??Uo.select(e,t,s),scope:i,workspacePath:o,workspaceId:s}}async function ay(e){const{navigateToSettings:t}=await p(async()=>{const{navigateToSettings:r}=await import("./IFT0w_rv.js").then(n=>n.w);return{navigateToSettings:r}},__vite__mapDeps([125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153]),import.meta.url);await t({tab:"agents",specialist:e})}function Wb(e){const{proposal:t}=e;if(t.kind!=="specialist-edit")return!1;const r=hi(t);return E.dispatch(Bo({proposalId:r,kind:"specialist-edit",detail:e})),!0}async function Hb(e){const{proposal:t}=e;if(t.kind!=="specialist-edit")throw new Error("applySpecialistProposalWork requires a specialist-edit proposal");const r=E.state,n=Ha(t),i=n.operation??n.action??"edit",o=n.scope==="project"?e.workspaceId:void 0,s=Bu.select(r,o),a=typeof n.id=="string"?n.id:"",l=a?s.find(O=>O.id===a):void 0,u=nr(t,e,"name",l?.name??"").trim(),d=a||ny(u||"specialist",s.map(O=>O.id)),c=Fu.select(r,d,o),h=oy(n.scope,c?.source),f=h==="project"?e.workspaceId:void 0,m=h==="project"?iy(r,f):void 0,b=i==="create"?{kind:"delete",id:d,scope:h,workspacePath:m,workspaceId:f}:l?{kind:"save",specialist:sy(r,d,l,c,h,m,f)}:{kind:"delete",id:d,scope:h,workspacePath:m,workspaceId:f};if(i==="delete")return await E.dispatch(Fo({id:d,scope:h,workspacePath:m,workspaceId:f})),{reverse:b};const v=l?jo.select(r,l.id,f):Gu.select(r,f),_=nr(t,e,"model",v).trim(),{providerId:y,modelId:k}=Xn(_),S=Iu.select(r,f),C=y||S,A=nr(t,e,"description",l?.description??me.settings_aiBehavior_customSpecialistFallback()).trim(),I=nr(t,e,"prompt",l?Uo.select(r,l.id,f):""),P=Go({id:d,name:u,description:A||me.settings_aiBehavior_customSpecialistFallback(),codingAgent:y||(n.codingAgent??(l?qo.select(r,l.id,f):C)),model:k,roleReminder:n.roleReminder??l?.roleReminder,behaviorPrompt:I,scope:h,workspacePath:m,workspaceId:f});return await E.dispatch(P),i==="create"&&await ay(d),{reverse:b}}async function Kb(e){if(e.kind==="delete"){const{id:t,scope:r,workspacePath:n,workspaceId:i}=e;await E.dispatch(Fo({id:t,scope:r,workspacePath:n,workspaceId:i}));return}await E.dispatch(Go(e.specialist))}function Qb(e){return x_.select(E.state,e)?(E.dispatch($o({proposalId:e,kind:"specialist-edit"})),!0):!1}function Xb(e,t){if(!e)return{model:void 0,provider:t};const{providerId:r,modelId:n}=Xn(e);return{model:n||void 0,provider:r||t}}export{Ce as $,Cr as A,Jy as B,Iy as C,Gy as D,Uy as E,Ly as F,Ty as G,xy as H,Py as I,hb as J,Xy as K,Qy as L,Ky as M,Ke as N,Hy as O,va as P,Gg as Q,kn as R,Ry as S,Vy as T,My as U,Ba as V,Fb as W,ny as X,En as Y,Bb as Z,qr as _,Ny as a,Qb as a$,Wy as a0,Hn as a1,Lt as a2,Sr as a3,nb as a4,rb as a5,hi as a6,ob as a7,pn as a8,ir as a9,vb as aA,lb as aB,Wg as aC,Xb as aD,Rb as aE,db as aF,g_ as aG,pb as aH,Ib as aI,Tb as aJ,m_ as aK,O_ as aL,Nb as aM,Vb as aN,xb as aO,$b as aP,Mb as aQ,Db as aR,y_ as aS,Pb as aT,x_ as aU,Ob as aV,C_ as aW,yh as aX,Lb as aY,zb as aZ,qb as a_,Lg as aa,zr as ab,ib as ac,Zy as ad,Yy as ae,eb as af,Eb as ag,ub as ah,sb as ai,tb as aj,mb as ak,_o as al,xg as am,Gb as an,Oo as ao,Ab as ap,v_ as aq,kb as ar,gb as as,bb as at,_b as au,P_ as av,cb as aw,Sb as ax,pi as ay,wb as az,jy as b,Kb as b0,pr as c,Fy as d,By as e,$y as f,Ay as g,Ta as h,Dy as i,Oy as j,ab as k,Cy as l,yb as m,jb as n,Ub as o,Wb as p,Hb as q,Xt as r,Ag as s,Ig as t,Wo as u,$m as v,li as w,fb as x,Bt as y,Cb as z};
|
|
158
|
+
`)}function Cg(e,t,r){if(e.length===0)return"";const n=Math.min(t+r,e.length);return e.slice(t,n).join("")}function Ag(e,t){return e?.cacheKey!=null||t?.cacheKey!=null?e?.cacheKey===t?.cacheKey:e===t}function Ig(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}function Xt(e,t){return li(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength&&e.lineDiffType===t.lineDiffType&&e.maxLineDiffLength===t.maxLineDiffLength}function _o(e){const t=e.lang??Ce(e.name),r=e.lang??(e.prevName!=null?Ce(e.prevName):"text");return t==="text"&&r==="text"}function Sr(e,t){return e-(t===0?0:1)}function Lt(e,t){return Sr(e,t)+t}function Jy(e){return{...bc,...e}}function Zy(e,t){const r=Tg(e,t);return t?r:e.diffHeaderHeight+r}function Tg(e,t){return e.paddingTop??(t?e.spacing:0)}function Yy(e){return e.paddingBottom??e.spacing}function Rg(e){switch(e){case"simple":return 4;case"metadata":case"line-info":case"line-info-basic":case"custom":return 32}}function Hn(e){return[Sr(e.additionStart,e.additionCount)+1,Lt(e.additionStart,e.additionCount)+1]}function qr({isPartial:e,rangeSize:t,expandedHunks:r,hunkIndex:n,collapsedContextThreshold:i}){const o=Math.max(t,0);if(o===0||e)return{fromStart:0,fromEnd:0,rangeSize:o,collapsedLines:o,renderAll:!1};if(r===!0||o<=i)return{fromStart:o,fromEnd:0,rangeSize:o,collapsedLines:0,renderAll:!0};const s=r?.get(n),a=Math.min(Math.max(s?.fromStart??0,0),o),l=Math.min(Math.max(s?.fromEnd??0,0),o),u=a+l,d=u>=o;return{fromStart:d?o:a,fromEnd:d?0:l,rangeSize:o,collapsedLines:Math.max(o-u,0),renderAll:d}}function eb(e){const t=e.hunks[e.hunks.length-1];if(t==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0)return!1;const r=e.additionLines.length-Lt(t.additionStart,t.additionCount),n=e.deletionLines.length-Lt(t.deletionStart,t.deletionCount);return r<=0&&n<=0?!1:r!==n}function Lg({fileDiff:e,errorPrefix:t}){const r=e.hunks[e.hunks.length-1];if(r==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0)return 0;const n=e.additionLines.length-Lt(r.additionStart,r.additionCount),i=e.deletionLines.length-Lt(r.deletionStart,r.deletionCount);if(n<=0&&i<=0)return 0;if(n!==i)throw new Error(`${t}: trailing context mismatch (additions=${n}, deletions=${i}) for ${e.name}`);return Math.min(n,i)}function zr({fileDiff:e,hunkIndex:t,expandedHunks:r,collapsedContextThreshold:n,errorPrefix:i}){if(t!==e.hunks.length-1)return;const o=Lg({fileDiff:e,errorPrefix:i});if(o<=0)return;if(r===!0||o<=n)return{fromStart:o,fromEnd:0,rangeSize:o,collapsedLines:0,renderAll:!0};const s=r?.get(e.hunks.length),a=Math.min(Math.max(s?.fromStart??0,0),o);return{fromStart:a,fromEnd:0,rangeSize:o,collapsedLines:o-a,renderAll:a>=o}}function tb({fileDiff:e,lineNumber:t,expandedHunks:r,collapsedContextThreshold:n}){if(r===!0||e.isPartial)return!0;for(const[a,l]of e.hunks.entries()){const[u,d]=Hn(l);if(t<u){const c=qr({isPartial:e.isPartial,rangeSize:l.collapsedBefore,expandedHunks:r,hunkIndex:a,collapsedContextThreshold:n}),h=u-c.rangeSize;return c.renderAll||t<h+c.fromStart||t>=u-c.fromEnd}if(t<d)return!0}const i=zr({fileDiff:e,hunkIndex:e.hunks.length-1,expandedHunks:r,collapsedContextThreshold:n,errorPrefix:"isAdditionLineRenderable"});if(i==null||i.renderAll)return!0;const o=e.hunks[e.hunks.length-1],[,s]=Hn(o);return t<s+i.fromStart||t>=s+i.rangeSize}function rb({fileDiff:e,lineNumber:t,direction:r,expandedHunks:n,collapsedContextThreshold:i}){if(n===!0||e.isPartial)return t;const o=[];let s=1;for(const[l,u]of e.hunks.entries()){const[d,c]=Hn(u),h=qr({isPartial:e.isPartial,rangeSize:u.collapsedBefore,expandedHunks:n,hunkIndex:l,collapsedContextThreshold:i}),f=d-h.rangeSize;h.renderAll?o.push([f,d]):(h.fromStart>0&&o.push([f,f+h.fromStart]),h.fromEnd>0&&o.push([d-h.fromEnd,d])),o.push([d,c]),s=c}const a=zr({fileDiff:e,hunkIndex:e.hunks.length-1,expandedHunks:n,collapsedContextThreshold:i,errorPrefix:"getNearestRenderableAdditionLine"});if(a!=null){const l=s;s=l+a.rangeSize,a.renderAll?o.push([l,s]):a.fromStart>0&&o.push([l,l+a.fromStart])}if(t>=s)return t;if(r==="down"){for(const[l,u]of o)if(u>t)return Math.max(l,t);return}for(let l=o.length-1;l>=0;l--){const[u,d]=o[l];if(u<=t)return Math.min(d-1,t)}}function Aa({type:e,metrics:t}){return t.hunkSeparatorHeight??Rg(e)}function Ia({type:e,metrics:t}){return e==="simple"||e==="metadata"||e==="line-info-basic"?0:t.spacing}function Pg({type:e,hunkIndex:t,hunkSpecs:r}){switch(e){case"simple":return t>0;case"metadata":return r!=null;case"line-info":case"line-info-basic":case"custom":return!0}}function Og(e){return e!=="simple"&&e!=="metadata"}function nb({type:e,metrics:t,hunkIndex:r,hunkSpecs:n}){if(!Pg({type:e,hunkIndex:r,hunkSpecs:n}))return;const i=Aa({type:e,metrics:t}),o=Ia({type:e,metrics:t}),s=r>0?o:0,a=o;return{height:i,gapBefore:s,gapAfter:a,totalHeight:s+i+a}}function ib({type:e,metrics:t}){if(!Og(e))return;const r=Aa({type:e,metrics:t}),n=Ia({type:e,metrics:t});return{height:r,gapBefore:n,gapAfter:0,totalHeight:n+r}}function xg({diff:e,diffStyle:t,startingLine:r=0,totalLines:n=1/0,expandedHunks:i,collapsedContextThreshold:o=1,callback:s}){const a=Dg({diff:e,diffStyle:t,startingLine:r,expandedHunks:i,collapsedContextThreshold:o}),l={viewportStart:r,viewportEnd:r+n,isWindowedHighlight:r>0||n<1/0,splitCount:a.splitCount,unifiedCount:a.unifiedCount,finalHunkIndex:e.hunks.length-1,shouldBreak(){if(!l.isWindowedHighlight)return!1;const u=l.unifiedCount>=r+n,d=l.splitCount>=r+n;return t==="unified"?u:(t==="split"||u)&&d},shouldSkip(u,d){if(!l.isWindowedHighlight)return!1;const c=u>0&&l.unifiedCount+u<=r,h=d>0&&l.splitCount+d<=r;return t==="unified"?c:(t==="split"||c)&&h},incrementCounts(u,d){(t==="unified"||t==="both")&&(l.unifiedCount+=u),(t==="split"||t==="both")&&(l.splitCount+=d)},isInWindow(u,d){if(!l.isWindowedHighlight)return!0;const c=l.isInUnifiedWindow(u),h=l.isInSplitWindow(d);return t==="unified"?c:t==="split"?h:c||h},isInUnifiedWindow(u){return!l.isWindowedHighlight||l.unifiedCount>=r-u&&l.unifiedCount<r+n},isInSplitWindow(u){return!l.isWindowedHighlight||l.splitCount>=r-u&&l.splitCount<r+n},emit(u,d=!1){return d||(t==="unified"?l.incrementCounts(1,0):t==="split"?l.incrementCounts(0,1):l.incrementCounts(1,1)),s(u)??!1}};e:for(let u=a.hunkIndex;u<e.hunks.length;u++){let y=function(T,Q){return v==null||v.collapsedLines<=0||v.fromStart+v.fromEnd>0?0:t==="unified"?T===d.unifiedLineStart+d.unifiedLineCount-1?v.collapsedLines:0:Q===d.splitLineStart+d.splitLineCount-1?v.collapsedLines:0},S=function(){return k?0:(k=!0,b.collapsedLines)};const d=e.hunks[u];if(d==null)throw new Error("iterateOverDiff: invalid hunk index");if(l.shouldBreak())break;const c=Sr(d.deletionStart,d.deletionCount),h=Sr(d.additionStart,d.additionCount),f=!e.isPartial&&d.deletionCount===0?c:d.deletionLineIndex,m=!e.isPartial&&d.additionCount===0?h:d.additionLineIndex,b=qr({isPartial:e.isPartial,rangeSize:d.collapsedBefore,expandedHunks:i,hunkIndex:u,collapsedContextThreshold:o}),v=u===l.finalHunkIndex?zr({fileDiff:e,hunkIndex:u,expandedHunks:i,collapsedContextThreshold:o,errorPrefix:"iterateOverDiff"}):void 0,_=b.fromStart+b.fromEnd;let k=b.collapsedLines===0;if(l.shouldSkip(_,_))l.incrementCounts(_,_),S();else{let T=d.unifiedLineStart-b.rangeSize,Q=d.splitLineStart-b.rangeSize,M=f-b.rangeSize,V=m-b.rangeSize,x=c+1-b.rangeSize,X=h+1-b.rangeSize;if(Jt(l,b.fromStart,t,F=>l.emit({hunkIndex:u,hunk:d,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:x+F,lineIndex:M+F,noEOFCR:!1,unifiedLineIndex:T+F,splitLineIndex:Q+F},additionLine:{unifiedLineIndex:T+F,splitLineIndex:Q+F,lineIndex:V+F,lineNumber:X+F,noEOFCR:!1}}))||(T=d.unifiedLineStart-b.fromEnd,Q=d.splitLineStart-b.fromEnd,M=f-b.fromEnd,V=m-b.fromEnd,x=c+1-b.fromEnd,X=h+1-b.fromEnd,Jt(l,b.fromEnd,t,F=>l.emit({hunkIndex:u,hunk:d,collapsedBefore:S(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:x+F,lineIndex:M+F,noEOFCR:!1,unifiedLineIndex:T+F,splitLineIndex:Q+F},additionLine:{unifiedLineIndex:T+F,splitLineIndex:Q+F,lineIndex:V+F,lineNumber:X+F,noEOFCR:!1}}),()=>{S()})))break e}let C=d.unifiedLineStart,A=d.splitLineStart,I=f,P=m,O=c+1,K=h+1;const ct=d.hunkContent.at(-1);for(const T of d.hunkContent){if(l.shouldBreak())break e;const Q=T===ct;if(T.type==="context"){if(l.shouldSkip(T.lines,T.lines))l.incrementCounts(T.lines,T.lines),S();else if(Jt(l,T.lines,t,M=>{const V=Q&&M===T.lines-1,x=C+M,X=A+M;return l.emit({hunkIndex:u,hunk:d,collapsedBefore:S(),collapsedAfter:y(x,X),type:"context",deletionLine:{lineNumber:O+M,lineIndex:I+M,noEOFCR:V&&d.noEOFCRDeletions,unifiedLineIndex:x,splitLineIndex:X},additionLine:{unifiedLineIndex:x,splitLineIndex:X,lineIndex:P+M,lineNumber:K+M,noEOFCR:V&&d.noEOFCRAdditions}})},()=>{S()}))break e;C+=T.lines,A+=T.lines,I+=T.lines,P+=T.lines,O+=T.lines,K+=T.lines}else{const M=Math.max(T.deletions,T.additions),V=T.deletions+T.additions;if(!l.shouldSkip(V,M)){const x=Mg(l,T,t);(x[0]?.[0]??0)>0&&S();for(const[X,F]of x)for(let Ae=X;Ae<F;Ae++){const Ka=y(C+Ae,t==="unified"?A+(Ae<T.deletions?Ae:Ae-T.deletions):A+Ae);if(l.emit($g({hunkIndex:u,hunk:d,collapsedBefore:S(),collapsedAfter:Ka,diffStyle:t,index:Ae,unifiedLineIndex:C,splitLineIndex:A,additionLineIndex:P,deletionLineIndex:I,additionLineNumber:K,deletionLineNumber:O,content:T,isLastContent:Q,unifiedCount:V,splitCount:M}),!0))break e}}S(),l.incrementCounts(V,M),C+=V,A+=M,I+=T.deletions,P+=T.additions,O+=T.deletions,K+=T.additions}}if(v!=null){const{collapsedLines:T,fromStart:Q,fromEnd:M}=v,V=Q+M;if(Jt(l,V,t,x=>{const X=x===V-1;return l.emit({hunkIndex:e.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:X?T:0,type:"context-expanded",deletionLine:{lineNumber:O+x,lineIndex:I+x,noEOFCR:!1,unifiedLineIndex:C+x,splitLineIndex:A+x},additionLine:{unifiedLineIndex:C+x,splitLineIndex:A+x,lineIndex:P+x,lineNumber:K+x,noEOFCR:!1}})},void 0,()=>l.shouldBreak()))break e}}}function Dg({diff:e,diffStyle:t,startingLine:r,expandedHunks:n,collapsedContextThreshold:i}){if(r<=0||t==="both")return{hunkIndex:0,splitCount:0,unifiedCount:0};const o=Ng({diff:e,expandedHunks:n,collapsedContextThreshold:i});let s=0,a=e.hunks.length-1,l=e.hunks.length;for(;s<=a;){const d=s+a>>1,c=o[d+1];if(c==null)throw new Error("iterateOverDiff: invalid hunk prefix index");(t==="unified"?c.unifiedCount:c.splitCount)>r?(l=d,a=d-1):s=d+1}if(l>=e.hunks.length){const d=o[e.hunks.length];if(d==null)throw new Error("iterateOverDiff: invalid terminal hunk prefix index");return{hunkIndex:e.hunks.length,splitCount:d.splitCount,unifiedCount:d.unifiedCount}}const u=o[l];if(u==null)throw new Error("iterateOverDiff: invalid selected hunk prefix index");return{hunkIndex:l,splitCount:u.splitCount,unifiedCount:u.unifiedCount}}function Ng({diff:e,expandedHunks:t,collapsedContextThreshold:r}){let n=0,i=0;const o=e.hunks.length-1,s=[{splitCount:0,unifiedCount:0}];for(let a=0;a<e.hunks.length;a++){const l=e.hunks[a];if(l==null)throw new Error("iterateOverDiff: invalid hunk summary index");const u=qr({isPartial:e.isPartial,rangeSize:l.collapsedBefore,expandedHunks:t,hunkIndex:a,collapsedContextThreshold:r}),d=u.fromStart+u.fromEnd;n+=d+l.splitLineCount,i+=d+l.unifiedLineCount;const c=a===o?zr({fileDiff:e,hunkIndex:a,expandedHunks:t,collapsedContextThreshold:r,errorPrefix:"iterateOverDiff"}):void 0;if(c!=null){const h=c.fromStart+c.fromEnd;n+=h,i+=h}s.push({splitCount:n,unifiedCount:i})}return s}function Vg(e,t,r){if(!e.isWindowedHighlight||t<=0)return[0,t];const n=[];function i(a){const l=Math.max(0,e.viewportStart-a),u=Math.min(t,e.viewportEnd-a);u>l&&n.push([l,u])}if(r!=="split"&&i(e.unifiedCount),r!=="unified"&&i(e.splitCount),n.length===0)return[0,0];let o=n[0][0],s=n[0][1];for(let a=1;a<n.length;a++){const l=n[a];o=Math.min(o,l[0]),s=Math.max(s,l[1])}return[o,s]}function Jt(e,t,r,n,i,o){const[s,a]=Vg(e,t,r);s>0&&(e.incrementCounts(s,s),i?.());let l=s;for(;l<t;){if(o?.()===!0)return!0;if(l>=a){e.incrementCounts(t-l,t-l);break}if(e.isInWindow(0,0)){if(n(l)===!0)return!0}else e.incrementCounts(1,1);l++}return!1}function Mg(e,t,r){if(!e.isWindowedHighlight)return[[0,r==="unified"?t.deletions+t.additions:Math.max(t.deletions,t.additions)]];const n=r!=="split",i=r!=="unified",o=r==="unified"?"unified":"split",s=[];function a(c,h){if(c+h<=e.viewportStart||c>=e.viewportEnd)return;const f=Math.max(0,e.viewportStart-c),m=Math.min(h,e.viewportEnd-c);return m>f?[f,m]:void 0}function l(c,h){return o==="split"?c:h==="additions"?[c[0]+t.deletions,c[1]+t.deletions]:c}function u(c,h){if(c==null)return;const[f,m]=l(c,h);m>f&&s.push([f,m])}if(n&&(u(a(e.unifiedCount,t.deletions),"deletions"),u(a(e.unifiedCount+t.deletions,t.additions),"additions")),i&&(u(a(e.splitCount,t.deletions),"deletions"),u(a(e.splitCount,t.additions),"additions")),s.length===0)return s;s.sort((c,h)=>c[0]-h[0]);const d=[s[0]];for(const[c,h]of s.slice(1)){const f=d[d.length-1];c<=f[1]?f[1]=Math.max(f[1],h):d.push([c,h])}return d}function $g({hunkIndex:e,hunk:t,collapsedAfter:r,collapsedBefore:n,diffStyle:i,index:o,unifiedLineIndex:s,splitLineIndex:a,additionLineIndex:l,deletionLineIndex:u,additionLineNumber:d,deletionLineNumber:c,content:h,isLastContent:f,unifiedCount:m,splitCount:b}){const v=o<h.deletions?s+o:void 0,_=i==="unified"?o>=h.deletions?s+o:void 0:o<h.additions?s+h.deletions+o:void 0,y=i==="unified"?a+(o<h.deletions?o:o-h.deletions):a+o,k=o<h.deletions?u+o:void 0,S=o<h.deletions?c+o:void 0,C=i==="unified"?o>=h.deletions?l+(o-h.deletions):void 0:o<h.additions?l+o:void 0,A=i==="unified"?o>=h.deletions?d+(o-h.deletions):void 0:o<h.additions?d+o:void 0,I=i==="unified"?f&&o===h.deletions-1&&t.noEOFCRDeletions:f&&o===b-1&&t.noEOFCRDeletions,P=i==="unified"?f&&o===m-1&&t.noEOFCRAdditions:f&&o===b-1&&t.noEOFCRAdditions,O=k!=null&&S!=null&&v!=null?{lineNumber:S,lineIndex:k,noEOFCR:I,unifiedLineIndex:v,splitLineIndex:y}:void 0,K=C!=null&&A!=null&&_!=null?{unifiedLineIndex:_,splitLineIndex:y,lineIndex:C,lineNumber:A,noEOFCR:P}:void 0;if(O==null&&K!=null)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:r,collapsedBefore:n,deletionLine:void 0,additionLine:K};if(O!=null&&K==null)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:r,collapsedBefore:n,deletionLine:O,additionLine:void 0};if(O==null||K==null)throw new Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:r,collapsedBefore:n,deletionLine:O,additionLine:K}}function Cr(e){let t=e.length;return e.charCodeAt(t-1)===10&&(t--,e.charCodeAt(t-1)===13&&t--),e.slice(0,t)}class Ta{diff(t,r,n={}){let i;typeof n=="function"?(i=n,n={}):"callback"in n&&(i=n.callback);const o=this.castInput(t,n),s=this.castInput(r,n),a=this.removeEmpty(this.tokenize(o,n)),l=this.removeEmpty(this.tokenize(s,n));return this.diffWithOptionsObj(a,l,n,i)}diffWithOptionsObj(t,r,n,i){var o;const s=y=>{if(y=this.postProcess(y,n),i){setTimeout(function(){i(y)},0);return}else return y},a=r.length,l=t.length;let u=1,d=a+l;n.maxEditLength!=null&&(d=Math.min(d,n.maxEditLength));const c=(o=n.timeout)!==null&&o!==void 0?o:1/0,h=Date.now()+c,f=[{oldPos:-1,lastComponent:void 0}];let m=this.extractCommon(f[0],r,t,0,n);if(f[0].oldPos+1>=l&&m+1>=a)return s(this.buildValues(f[0].lastComponent,r,t));let b=-1/0,v=1/0;const _=()=>{for(let y=Math.max(b,-u);y<=Math.min(v,u);y+=2){let k;const S=f[y-1],C=f[y+1];S&&(f[y-1]=void 0);let A=!1;if(C){const P=C.oldPos-y;A=C&&0<=P&&P<a}const I=S&&S.oldPos+1<l;if(!A&&!I){f[y]=void 0;continue}if(!I||A&&S.oldPos<C.oldPos?k=this.addToPath(C,!0,!1,0,n):k=this.addToPath(S,!1,!0,1,n),m=this.extractCommon(k,r,t,y,n),k.oldPos+1>=l&&m+1>=a)return s(this.buildValues(k.lastComponent,r,t))||!0;f[y]=k,k.oldPos+1>=l&&(v=Math.min(v,y-1)),m+1>=a&&(b=Math.max(b,y+1))}u++};if(i)(function y(){setTimeout(function(){if(u>d||Date.now()>h)return i(void 0);_()||y()},0)})();else for(;u<=d&&Date.now()<=h;){const y=_();if(y)return y}}addToPath(t,r,n,i,o){const s=t.lastComponent;return s&&!o.oneChangePerToken&&s.added===r&&s.removed===n?{oldPos:t.oldPos+i,lastComponent:{count:s.count+1,added:r,removed:n,previousComponent:s.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:r,removed:n,previousComponent:s}}}extractCommon(t,r,n,i,o){const s=r.length,a=n.length;let l=t.oldPos,u=l-i,d=0;for(;u+1<s&&l+1<a&&this.equals(n[l+1],r[u+1],o);)u++,l++,d++,o.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return d&&!o.oneChangePerToken&&(t.lastComponent={count:d,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=l,u}equals(t,r,n){return n.comparator?n.comparator(t,r):t===r||!!n.ignoreCase&&t.toLowerCase()===r.toLowerCase()}removeEmpty(t){const r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r}castInput(t,r){return t}tokenize(t,r){return Array.from(t)}join(t){return t.join("")}postProcess(t,r){return t}get useLongestToken(){return!1}buildValues(t,r,n){const i=[];let o;for(;t;)i.push(t),o=t.previousComponent,delete t.previousComponent,t=o;i.reverse();const s=i.length;let a=0,l=0,u=0;for(;a<s;a++){const d=i[a];if(d.removed)d.value=this.join(n.slice(u,u+d.count)),u+=d.count;else{if(!d.added&&this.useLongestToken){let c=r.slice(l,l+d.count);c=c.map(function(h,f){const m=n[u+f];return m.length>h.length?m:h}),d.value=this.join(c)}else d.value=this.join(r.slice(l,l+d.count));l+=d.count,d.added||(u+=d.count)}}return i}}class Bg extends Ta{}const Fg=new Bg;function Gg(e,t,r){return Fg.diff(e,t,r)}const yo="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class jg extends Ta{tokenize(t){const r=new RegExp(`(\\r?\\n)|[${yo}]+|[^\\S\\n\\r]+|[^${yo}]`,"ug");return t.match(r)||[]}}const Ug=new jg;function qg(e,t,r){return Ug.diff(e,t,r)}function Ar({line:e,spanStart:t,spanLength:r}){return{start:{line:e,character:t},end:{line:e,character:t+r},properties:{"data-diff-span":""},alwaysWrap:!0}}function Zt({item:e,arr:t,enableJoin:r,isNeutral:n=!1,isLastItem:i=!1}){const o=t[t.length-1];if(o==null||i||!r){t.push([n?0:1,e.value]);return}const s=o[0]===0;if(n===s||n&&e.value.length===1&&!s){o[1]+=e.value;return}t.push([n?0:1,e.value])}const zg={forcePlainText:!1};function Wg(e,t,r,{forcePlainText:n,startingLine:i,totalLines:o,expandedHunks:s,collapsedContextThreshold:a=1}=zg){n?(i??=0,o??=1/0):(i=0,o=1/0);const l=i>0||o<1/0,u=typeof r.theme=="string"?t.getTheme(r.theme).type:void 0,d=Ca({theme:r.theme,highlighter:t}),c=n&&!l&&(e.unifiedLineCount>1e3||e.splitLineCount>1e3)?"none":r.lineDiffType,h={deletionLines:[],additionLines:[]},{maxLineDiffLength:f}=r,m=!n&&!e.isPartial,b=n?s:void 0,v=new Map;function _(k){const S=m?0:k,C=v.get(S)??Qg();return v.set(S,C),C}function y(k,S,C,A){if(l){let I=C.at(-1);(I==null||I.targetIndex+I.count!==S)&&(I={targetIndex:S,originalOffset:A.length,count:0},C.push(I)),I.count++}A.push(k)}xg({diff:e,diffStyle:"both",startingLine:i,totalLines:o,expandedHunks:l?b:!0,collapsedContextThreshold:a,callback:({hunkIndex:k,additionLine:S,deletionLine:C,type:A})=>{const I=_(k),P=S!=null?S.splitLineIndex:C.splitLineIndex;A==="change"&&S!=null&&C!=null&&Kg({additionLine:e.additionLines[S.lineIndex],deletionLine:e.deletionLines[C.lineIndex],deletionLineIndex:I.deletionContent.length,additionLineIndex:I.additionContent.length,deletionDecorations:I.deletionDecorations,additionDecorations:I.additionDecorations,lineDiffType:c,maxLineDiffLength:f}),C!=null&&(y(e.deletionLines[C.lineIndex],C.lineIndex,I.deletionSegments,I.deletionContent),I.deletionInfo.push({type:A==="change"?"change-deletion":A,lineNumber:C.lineNumber,altLineNumber:A==="change"?void 0:S.lineNumber??void 0,lineIndex:`${C.unifiedLineIndex},${P}`})),S!=null&&(y(e.additionLines[S.lineIndex],S.lineIndex,I.additionSegments,I.additionContent),I.additionInfo.push({type:A==="change"?"change-addition":A,lineNumber:S.lineNumber,altLineNumber:A==="change"?void 0:C.lineNumber??void 0,lineIndex:`${S.unifiedLineIndex},${P}`}))}});for(const k of v.values()){if(k.deletionContent.length===0&&k.additionContent.length===0)continue;const S={name:e.prevName??e.name,contents:k.deletionContent.value},C={name:e.name,contents:k.additionContent.value},{deletionLines:A,additionLines:I}=Xg({deletionFile:S,deletionInfo:k.deletionInfo,deletionDecorations:k.deletionDecorations,additionFile:C,additionInfo:k.additionInfo,additionDecorations:k.additionDecorations,highlighter:t,options:r,languageOverride:n?"text":e.lang});if(m){h.deletionLines=A,h.additionLines=I;continue}if(k.deletionSegments.length>0)for(const P of k.deletionSegments)for(let O=0;O<P.count;O++)h.deletionLines[P.targetIndex+O]=A[P.originalOffset+O];else zn(h.deletionLines,A);if(k.additionSegments.length>0)for(const P of k.additionSegments)for(let O=0;O<P.count;O++)h.additionLines[P.targetIndex+O]=I[P.originalOffset+O];else zn(h.additionLines,I)}return{code:h,themeStyles:d,baseThemeType:u}}function Hg(e,{deletionLineIndex:t,additionLineIndex:r,deletionDecorations:n,additionDecorations:i}){let o=0,s=0,a=-1,l=0,u=-1,d=0;for(const{value:c,added:h,removed:f}of e)f?(a===-1&&(a=o),o+=c.length,l=o):h?(u===-1&&(u=s),s+=c.length,d=s):(o+=c.length,s+=c.length);a!==-1&&n.push(Ar({line:t,spanStart:a,spanLength:l-a})),u!==-1&&i.push(Ar({line:r,spanStart:u,spanLength:d-u}))}function Kg({deletionLine:e,additionLine:t,deletionLineIndex:r,additionLineIndex:n,deletionDecorations:i,additionDecorations:o,lineDiffType:s,maxLineDiffLength:a}){if(e==null||t==null||s==="none"||(e=Cr(e),t=Cr(t),e.length>a||t.length>a))return;const l=s==="char"?Gg(e,t):qg(e,t);if(s==="word-line"){Hg(l,{deletionLineIndex:r,additionLineIndex:n,deletionDecorations:i,additionDecorations:o});return}const u=[],d=[],c=s==="word-alt",h=l.at(-1);for(const m of l){const b=m===h;!m.added&&!m.removed?(Zt({item:m,arr:u,enableJoin:c,isNeutral:!0,isLastItem:b}),Zt({item:m,arr:d,enableJoin:c,isNeutral:!0,isLastItem:b})):m.removed?Zt({item:m,arr:u,enableJoin:c,isLastItem:b}):Zt({item:m,arr:d,enableJoin:c,isLastItem:b})}let f=0;for(const m of u)m[0]===1&&i.push(Ar({line:r,spanStart:f,spanLength:m[1].length})),f+=m[1].length;f=0;for(const m of d)m[0]===1&&o.push(Ar({line:n,spanStart:f,spanLength:m[1].length})),f+=m[1].length}function Qg(){return{deletionContent:{push(e){this.value+=e,this.length++},value:"",length:0},additionContent:{push(e){this.value+=e,this.length++},value:"",length:0},deletionInfo:[],additionInfo:[],deletionDecorations:[],additionDecorations:[],deletionSegments:[],additionSegments:[]}}function Xg({deletionFile:e,additionFile:t,deletionInfo:r,additionInfo:n,highlighter:i,deletionDecorations:o,additionDecorations:s,languageOverride:a,options:{theme:l,...u}}){const d=a??Ce(e.name),c=a??Ce(t.name),{state:h,transformers:f}=Sa(u.useTokenTransformer),m=typeof l=="string"?{...u,lang:"text",theme:l,transformers:f,decorations:void 0,defaultColor:!1,cssVariablePrefix:ee("token"),tokenizeTimeLimit:0}:{...u,lang:"text",themes:l,transformers:f,decorations:void 0,defaultColor:!1,cssVariablePrefix:ee("token"),tokenizeTimeLimit:0};return{deletionLines:e.contents===""?[]:(m.lang=d,h.lineInfo=r,m.decorations=o,Wn(i.codeToHast(Cr(e.contents),m))),additionLines:t.contents===""?[]:(m.lang=c,m.decorations=s,h.lineInfo=n,Wn(i.codeToHast(Cr(t.contents),m)))}}function bo(e){const t=[];for(const r of e){const n=We.get(r);if(n==null)throw new Error(`getResolvedLanguages: ${r} is not resolved. Please resolve languages before calling getResolvedLanguages`);t.push(n)}return t}function Eo(e){for(const t of Array.isArray(e)?e:[e])if(!We.has(t))return!1;return!0}async function ko(e){const t=[],r=[];for(const n of e){if(n==="text"||n==="ansi")continue;const i=fa(n)??ha(n);"then"in i?r.push(i):t.push(i)}return r.length>0&&await Promise.all(r).then(n=>{for(const i of n){if(i==null)throw new Error("resolvedLanguages: unable to resolve language");t.push(i)}}),t}function vo(e){return le.getResolvedThemes(e)}async function wo(e){for(const r of e)Ea(r);const t=await le.resolveThemes(e);for(let r=0;r<e.length;r++)ka(e[r],t[r]);return t}var _t={exports:{}},Jg=_t.exports,So;function Zg(){return So||(So=1,(function(e,t){(function(r,n){n(t)})(Jg,function(r){const n=Symbol("newer"),i=Symbol("older");class o{constructor(c,h){typeof c!="number"&&(h=c,c=0),this.size=0,this.limit=c,this.oldest=this.newest=void 0,this._keymap=new Map,h&&(this.assign(h),c<1&&(this.limit=this.size))}_markEntryAsUsed(c){c!==this.newest&&(c[n]&&(c===this.oldest&&(this.oldest=c[n]),c[n][i]=c[i]),c[i]&&(c[i][n]=c[n]),c[n]=void 0,c[i]=this.newest,this.newest&&(this.newest[n]=c),this.newest=c)}assign(c){let h,f=this.limit||Number.MAX_VALUE;this._keymap.clear();let m=c[Symbol.iterator]();for(let b=m.next();!b.done;b=m.next()){let v=new s(b.value[0],b.value[1]);if(this._keymap.set(v.key,v),h?(h[n]=v,v[i]=h):this.oldest=v,h=v,f--==0)throw new Error("overflow")}this.newest=h,this.size=this._keymap.size}get(c){var h=this._keymap.get(c);return h?(this._markEntryAsUsed(h),h.value):void 0}set(c,h){var f=this._keymap.get(c);return f?(f.value=h,this._markEntryAsUsed(f),this):(this._keymap.set(c,f=new s(c,h)),this.newest?(this.newest[n]=f,f[i]=this.newest):this.oldest=f,this.newest=f,++this.size,this.size>this.limit&&this.shift(),this)}shift(){var c=this.oldest;if(c)return this.oldest[n]?(this.oldest=this.oldest[n],this.oldest[i]=void 0):(this.oldest=void 0,this.newest=void 0),c[n]=c[i]=void 0,this._keymap.delete(c.key),--this.size,[c.key,c.value]}find(c){let h=this._keymap.get(c);return h?h.value:void 0}has(c){return this._keymap.has(c)}delete(c){var h=this._keymap.get(c);return h?(this._keymap.delete(h.key),h[n]&&h[i]?(h[i][n]=h[n],h[n][i]=h[i]):h[n]?(h[n][i]=void 0,this.oldest=h[n]):h[i]?(h[i][n]=void 0,this.newest=h[i]):this.oldest=this.newest=void 0,this.size--,h.value):void 0}clear(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()}keys(){return new l(this.oldest)}values(){return new u(this.oldest)}entries(){return this}[Symbol.iterator](){return new a(this.oldest)}forEach(c,h){typeof h!="object"&&(h=this);let f=this.oldest;for(;f;)c.call(h,f.value,f.key,this),f=f[n]}toJSON(){for(var c=new Array(this.size),h=0,f=this.oldest;f;)c[h++]={key:f.key,value:f.value},f=f[n];return c}toString(){for(var c="",h=this.oldest;h;)c+=String(h.key)+":"+h.value,h=h[n],h&&(c+=" < ");return c}}r.LRUMap=o;function s(d,c){this.key=d,this.value=c,this[n]=void 0,this[i]=void 0}function a(d){this.entry=d}a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let d=this.entry;return d?(this.entry=d[n],{done:!1,value:[d.key,d.value]}):{done:!0,value:void 0}};function l(d){this.entry=d}l.prototype[Symbol.iterator]=function(){return this},l.prototype.next=function(){let d=this.entry;return d?(this.entry=d[n],{done:!1,value:d.key}):{done:!0,value:void 0}};function u(d){this.entry=d}u.prototype[Symbol.iterator]=function(){return this},u.prototype.next=function(){let d=this.entry;return d?(this.entry=d[n],{done:!1,value:d.value}):{done:!0,value:void 0}}})})(_t,_t.exports)),_t.exports}var Yg=Zg();const Co=rl(Yg),Yt=Symbol("IGNORE_RESPONSE"),e_=1e4;var er=class extends Error{constructor(){super("WorkerPoolManager: operation canceled because the pool terminated")}},bn=class extends Error{constructor(){super("WorkerPoolManager: operation canceled before the task completed")}},t_=class{constructor(e,{langs:t,theme:r=pr,useTokenTransformer:n=!1,lineDiffType:i="word-alt",maxLineDiffLength:o=1e3,tokenizeMaxLineLength:s=1e3,preferredHighlighter:a="shiki-js"}){g(this,"options");g(this,"highlighter");g(this,"preferredHighlighter");g(this,"renderOptions");g(this,"renderOptionsRequestVersion",0);g(this,"renderOptionsVersion",0);g(this,"initialized",!1);g(this,"workers",[]);g(this,"queuedTasks",[]);g(this,"queuedTaskByInstance",new Map);g(this,"taskByHighlightKey",new Map);g(this,"activeTaskById",new Map);g(this,"activeRequestByInstance",new Map);g(this,"nextRequestId",0);g(this,"themeSubscribers",new Set);g(this,"workersFailed",!1);g(this,"statSubscribers",new Set);g(this,"fileCache");g(this,"diffCache");g(this,"_queuedBroadcast");g(this,"lifecycleGeneration",0);g(this,"_broadcastStateChanges",()=>{this._queuedBroadcast!=null&&(cancelAnimationFrame(this._queuedBroadcast),this._queuedBroadcast=void 0);const e=this.getStats();for(const t of this.statSubscribers)t(e)});g(this,"drainQueue",()=>{if(this._queuedDrain=void 0,!(this.initialized!==!0||this.queuedTasks.length===0)){for(let e=0;e<this.queuedTasks.length;){const t=this.queuedTasks[e];if(this.hasActiveRequest(t)){e++;continue}const r=n_(t),n=this.getAvailableWorker(r);if(n==null)break;this.queuedTasks.splice(e,1),this.assignWorkerToTask(t,n),this.resolveLanguagesAndExecuteTask(n,t,r)}this.queueBroadcastStateChanges()}});g(this,"_queuedDrain");this.options=e,this.preferredHighlighter=a,this.renderOptions={theme:r,useTokenTransformer:n,lineDiffType:i,maxLineDiffLength:o,tokenizeMaxLineLength:s},this.fileCache=new Co.LRUMap(e.totalASTLRUCacheSize??100),this.diffCache=new Co.LRUMap(e.totalASTLRUCacheSize??100),this.queueInitialization(t)}isWorkingPool(){return!this.workersFailed}getFileResultCache(e){return e.cacheKey!=null?this.fileCache.get(e.cacheKey):void 0}getDiffResultCache(e){return e.cacheKey!=null?this.diffCache.get(e.cacheKey):void 0}inspectCaches(){const{fileCache:e,diffCache:t}=this;return{fileCache:e,diffCache:t}}evictFileFromCache(e){try{return this.fileCache.delete(e)!==void 0}finally{this.queueBroadcastStateChanges()}}evictDiffFromCache(e){try{return this.diffCache.delete(e)!==void 0}finally{this.queueBroadcastStateChanges()}}async setRenderOptions({theme:e=this.renderOptions.theme??pr,useTokenTransformer:t=this.renderOptions.useTokenTransformer??!1,lineDiffType:r=this.renderOptions.lineDiffType??"word-alt",maxLineDiffLength:n=this.renderOptions.maxLineDiffLength??1e3,tokenizeMaxLineLength:i=this.renderOptions.tokenizeMaxLineLength??1e3}){const{lifecycleGeneration:o}=this,s=++this.renderOptionsRequestVersion,a=()=>this.isCurrentLifecycle(o)&&this.renderOptionsRequestVersion===s;try{const l={theme:e,useTokenTransformer:t,lineDiffType:r,maxLineDiffLength:n,tokenizeMaxLineLength:i};if(this.isInitialized()||await this.initialize(),!a()||Xt(l,this.renderOptions))return;const u=ir(e);let d=[];if(li(l.theme,this.renderOptions.theme)||(uo(u)?d=vo(u):d=await wo(u)),!a())return;if(this.highlighter!=null)Sn(d,this.highlighter);else{const h=await pn({themes:u,langs:["text"],preferredHighlighter:this.preferredHighlighter});if(!a())return;this.highlighter=h}const c=this.setRenderOptionsOnWorkers(l,d);this.renderOptions=l,this.renderOptionsVersion++,this.diffCache.clear(),this.fileCache.clear(),this.invalidateRenderTasks();for(const h of this.themeSubscribers)h.onThemeChange();await c}catch(l){if(l instanceof er||!a())return;throw l}}getPreferredHighlighter(){return this.preferredHighlighter}getFileRenderOptions(){const{tokenizeMaxLineLength:e,theme:t,useTokenTransformer:r}=this.renderOptions;return{theme:t,useTokenTransformer:r,tokenizeMaxLineLength:e}}getDiffRenderOptions(){return{...this.renderOptions}}async setRenderOptionsOnWorkers(e,t){if(this.workersFailed)return;this.isInitialized()||await this.initialize();const r=[];for(const n of this.workers){if(!n.initialized)throw console.log({managedWorker:n}),new Error("setRenderOptionsOnWorkers: Somehow we have an uninitialized worker");r.push(new Promise((i,o)=>{const s=this.generateRequestId(),a={type:"set-render-options",id:s,request:{type:"set-render-options",id:s,renderOptions:e,resolvedThemes:t},resolve:i,reject:o,requestStart:Date.now()};this.activeTaskById.set(s,a),n.pendingSetupRequestId=s,n.worker.postMessage(a.request)}))}await Promise.all(r)}subscribeToThemeChanges(e){return this.themeSubscribers.add(e),this.queueBroadcastStateChanges(),()=>{this.unsubscribeToThemeChanges(e),this.queueBroadcastStateChanges()}}unsubscribeToThemeChanges(e){this.themeSubscribers.delete(e),this.queueBroadcastStateChanges()}subscribeToStatChanges(e){return this.statSubscribers.add(e),e(this.getStats()),()=>{this.statSubscribers.delete(e)}}queueBroadcastStateChanges(){this._queuedBroadcast==null&&(this._queuedBroadcast=requestAnimationFrame(this._broadcastStateChanges))}cleanUpTasks(e){this.detachInstanceFromQueuedTasks(e);const t=this.activeRequestByInstance.get(e);if(t!=null){const r=this.activeTaskById.get(t);Ee(r)?(this.detachInstanceFromRenderTask(r,e),!r.primeCache&&r.instances.size===0&&this.removeActiveTask(r)):this.activeTaskById.delete(t)}this.activeRequestByInstance.delete(e),this.queueBroadcastStateChanges()}isInitialized(){return this.initialized===!0}async initialize(e=[]){if(this.initialized!==!0)if(this.initialized===!1){const{lifecycleGeneration:t}=this;this.initialized=new Promise((r,n)=>{(async()=>{try{const i=ir(this.renderOptions.theme);let o=[];if(uo(i)?o=vo(i):o=await wo(i),!this.isCurrentLifecycle(t)){r();return}let s=[];if(Eo(e)?s=bo(e):s=await ko(e),!this.isCurrentLifecycle(t)){r();return}const[a]=await Promise.all([pn({themes:i,langs:["text",...e],preferredHighlighter:this.preferredHighlighter}),this.initializeWorkers(o,s)]);if(!this.isCurrentLifecycle(t)){this.terminateWorkers(),r();return}this.highlighter=a,this.initialized=!0,this.diffCache.clear(),this.fileCache.clear(),this.drainQueue(),this.queueBroadcastStateChanges(),r()}catch(i){if(i instanceof er||!this.isCurrentLifecycle(t)){r();return}this.initialized=!1,this.workersFailed=!0,this.cancelActiveWorkerTasks(),this.terminateWorkers(),this.activeTaskById.clear();for(const o of this.queuedTasks)this.rejectRenderTaskCallbacks(o,tr(i));this.queueBroadcastStateChanges(),n(i)}})()}),this.queueBroadcastStateChanges()}else return this.initialized}async initializeWorkers(e,t){this.workersFailed=!1;const r=[],n=void 0;this.workers.length>0&&this.terminateWorkers();for(let s=0;s<(this.options.poolSize??8);s++){const a=this.options.workerFactory(),l={worker:a,requestId:void 0,pendingSetupRequestId:void 0,initialized:!1,langs:new Set(["text",...t.map(({name:u})=>u)]),customExtensionsVersion:0};a.addEventListener("message",u=>{this.handleWorkerMessage(l,u.data)}),a.addEventListener("error",u=>this.handleWorkerError(l,u)),this.workers.push(l),r.push(new Promise((u,d)=>{const c=this.generateRequestId(),h={type:"initialize",id:c,request:{type:"initialize",id:c,renderOptions:this.renderOptions,preferredHighlighter:this.preferredHighlighter,resolvedThemes:e,resolvedLanguages:t,customExtensionsVersion:void 0,customExtensionMap:n},resolve(){l.initialized=!0,u()},reject:d,requestStart:Date.now()};l.pendingSetupRequestId=c,this.activeTaskById.set(c,h),this.executeTask(l,h)}))}const i=this.options.workerInitializationTimeout??e_;let o;try{await Promise.race([Promise.all(r),new Promise((s,a)=>{o=setTimeout(()=>{a(new Error(`WorkerPoolManager: worker initialization timed out after ${i}ms`))},i)})])}finally{o!=null&&clearTimeout(o)}}handleWorkerError(e,t){console.error("Worker error:",t,e);const{pendingSetupRequestId:r}=e;if(r==null)return;const n=this.activeTaskById.get(r);n?.type==="initialize"&&(n.reject(tr(t)),this.cleanWorkerAndTask(e,n))}highlightFileAST(e,t){const r=this.getFileResultCache(t);co(t)||r!=null&&hn(r.options,this.getFileRenderOptions())||this.hasMatchingFileInstanceTask(e,t)||this.submitTask(e,{type:"file",file:t})}primeFileHighlightCache(e){if(!this.isWorkingPool())return Promise.reject(new Error("WorkerPoolManager.primeFileHighlightCache: worker pool is not working"));const t=this.getOrCreateFileHighlightCacheTask(e);return t!=null?this.createRenderTaskCallbacks(t):Promise.resolve()}getOrCreateFileHighlightCacheTask(e){if(e.cacheKey==null){console.warn(`WorkerPoolManager.primeFileHighlightCache: priming highlight cache requires file.cacheKey; skipping "${e.name}".`);return}const t=this.getFileResultCache(e),r=this.getFileHighlightKey(e);if(r==null||co(e)||t!=null&&hn(t.options,this.getFileRenderOptions()))return;const n=this.getTaskByHighlightKey(r);if(n!=null)return n.primeCache=!0,n.type==="file"?n:void 0;{const i=this.submitCacheTask({type:"file",file:e},r);return i.type==="file"?i:void 0}}getPlainFileAST(e,t,r,n){if(this.highlighter==null){this.queueInitialization();return}return wg(e,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:t,totalLines:r,lines:n})}highlightDiffAST(e,t){const r=this.getDiffResultCache(t);_o(t)||r!=null&&Xt(r.options,this.getDiffRenderOptions())||this.hasMatchingDiffInstanceTask(e,t)||this.submitTask(e,{type:"diff",diff:t})}primeDiffHighlightCache(e){if(!this.isWorkingPool())return Promise.reject(new Error("WorkerPoolManager.primeDiffHighlightCache: worker pool is not working"));const t=this.getOrCreateDiffHighlightCacheTask(e);return t!=null?this.createRenderTaskCallbacks(t):Promise.resolve()}getOrCreateDiffHighlightCacheTask(e){if(e.cacheKey==null){console.warn(`WorkerPoolManager.primeDiffHighlightCache: priming highlight cache requires diff.cacheKey; skipping "${e.prevName??e.name}" -> "${e.name}".`);return}const t=this.getDiffResultCache(e),r=this.getDiffHighlightKey(e);if(r==null||_o(e)||t!=null&&Xt(t.options,this.getDiffRenderOptions()))return;const n=this.getTaskByHighlightKey(r);if(n!=null)return n.primeCache=!0,n.type==="diff"?n:void 0;{const i=this.submitCacheTask({type:"diff",diff:e},r);return i.type==="diff"?i:void 0}}getPlainDiffAST(e,t,r,n,i){return this.highlighter!=null?Wg(e,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:t,totalLines:r,expandedHunks:n,collapsedContextThreshold:i}):void 0}terminate(){this.lifecycleGeneration++,this.cancelActiveWorkerTasks(),this.terminateWorkers();const e=new er;for(const t of this.queuedTasks)this.rejectRenderTaskCallbacks(t,e);this.fileCache.clear(),this.diffCache.clear(),this.activeRequestByInstance.clear(),this.queuedTasks.length=0,this.queuedTaskByInstance.clear(),this.taskByHighlightKey.clear(),this.activeTaskById.clear(),this.highlighter=void 0,this.initialized=!1,this.workersFailed=!1,this.queueBroadcastStateChanges()}isCurrentLifecycle(e){return this.lifecycleGeneration===e}queueInitialization(e){this.initialize(e).catch(t=>{console.error(t)})}cancelActiveWorkerTasks(){const e=new er;for(const t of this.activeTaskById.values())"reject"in t?t.reject(e):Ee(t)&&this.rejectRenderTaskCallbacks(t,e)}terminateWorkers(){for(const e of this.workers)e.worker.terminate();this.workers.length=0}getStats(){return{managerState:this.initialized===!1?"waiting":this.initialized!==!0?"initializing":"initialized",totalWorkers:this.workers.length,workersFailed:this.workersFailed,busyWorkers:this.workers.filter(e=>e.requestId!=null||e.pendingSetupRequestId!=null).length,queuedTasks:this.queuedTasks.length,activeTasks:this.activeTaskById.size,themeSubscribers:this.themeSubscribers.size,fileCacheSize:this.fileCache.size,diffCacheSize:this.diffCache.size}}submitTask(e,t){this.initialized===!1&&this.queueInitialization();const r=this.getHighlightKeyForRequest(t),n=r!=null?this.getTaskByHighlightKey(r):void 0;if(n!=null){this.detachInstanceFromQueuedTasks(e,n),this.addInstanceToTask(n,e),this.queueBroadcastStateChanges();return}this.detachInstanceFromQueuedTasks(e);const i=this.generateRequestId(),o=Date.now(),{renderOptionsVersion:s}=this,a=(()=>{switch(t.type){case"file":return{type:"file",id:i,request:{...t,id:i},instances:new Set([e]),primeCache:!1,highlightKey:r,callbacks:new Set,renderOptionsVersion:s,requestStart:o};case"diff":return{type:"diff",id:i,request:{...t,id:i},instances:new Set([e]),primeCache:!1,highlightKey:r,callbacks:new Set,renderOptionsVersion:s,requestStart:o}}})();this.enqueueRenderTask(a,e)}submitCacheTask(e,t){this.initialized===!1&&this.queueInitialization();const r=this.generateRequestId(),n=Date.now(),{renderOptionsVersion:i}=this,o=(()=>{switch(e.type){case"file":return{type:"file",id:r,request:{...e,id:r},instances:new Set,primeCache:!0,highlightKey:t,callbacks:new Set,renderOptionsVersion:i,requestStart:n};case"diff":return{type:"diff",id:r,request:{...e,id:r},instances:new Set,primeCache:!0,highlightKey:t,callbacks:new Set,renderOptionsVersion:i,requestStart:n}}})();return this.enqueueRenderTask(o),o}enqueueRenderTask(e,t){this.queuedTasks.push(e),t!=null&&this.queuedTaskByInstance.set(t,e),e.highlightKey!=null&&this.taskByHighlightKey.set(e.highlightKey,e),this.queueDrain()}async resolveLanguagesAndExecuteTask(e,t,r){try{const n=r.filter(o=>!Wo(o));n.length>0&&pn({themes:ir(this.renderOptions.theme),langs:["text",...n],preferredHighlighter:this.preferredHighlighter}).catch(o=>{console.error(o)});const i=r.filter(o=>!e.langs.has(o));if(i.length>0&&(Eo(i)?t.request.resolvedLanguages=bo(i):t.request.resolvedLanguages=await ko(i)),!this.activeTaskById.has(t.id)){e.requestId===t.id&&(this.cleanWorkerAndTask(e,t),this.queueBroadcastStateChanges(),this.queuedTasks.length>0&&this.queueDrain());return}this.executeTask(e,t)}catch(n){this.rejectRenderTaskCallbacks(t,tr(n)),this.cleanWorkerAndTask(e,t),this.queueBroadcastStateChanges(),this.queuedTasks.length>0&&this.queueDrain()}}handleWorkerMessage(e,t){const r=this.activeTaskById.get(t.id);try{if(r==null)throw Yt;if(t.type==="error"){const n=new Error(t.error);if(t.stack&&(n.stack=t.stack),"reject"in r)r.reject(n);else if(Ee(r))this.notifyHighlightError(r,n),this.rejectRenderTaskCallbacks(r,n);else throw new Error("handleWorkerMessage: unknown task type");throw n}else{if(Ee(r))for(const{name:n}of r.request.resolvedLanguages??[])e.langs.add(n);switch(t.requestType){case"initialize":if(r.type!=="initialize")throw new Error("handleWorkerMessage: task/response dont match");this.syncCustomExtensionVersion(e,r.request),r.resolve();break;case"set-render-options":if(r.type!=="set-render-options")throw new Error("handleWorkerMessage: task/response dont match");r.resolve();break;case"file":{if(r.type!=="file")throw new Error("handleWorkerMessage: task/response dont match");const{result:n,options:i}=t;if(!this.isCurrentRenderTask(r)||!hn(i,this.getFileRenderOptions()))throw Yt;const{request:o}=r;this.syncCustomExtensionVersion(e,o),r.cacheKeyAtDispatch!=null&&this.fileCache.set(r.cacheKeyAtDispatch,{result:n,options:i}),this.resolveRenderTaskCallbacks(r),this.notifyFileInstances(r,n,i);break}case"diff":{if(r.type!=="diff")throw new Error("handleWorkerMessage: task/response dont match");const{result:n,options:i}=t;if(!this.isCurrentRenderTask(r)||!Xt(i,this.getDiffRenderOptions()))throw Yt;const{request:o}=r;this.syncCustomExtensionVersion(e,o),r.cacheKeyAtDispatch!=null&&this.diffCache.set(r.cacheKeyAtDispatch,{result:n,options:i}),this.resolveRenderTaskCallbacks(r),this.notifyDiffInstances(r,n,i);break}}}}catch(n){n!==Yt&&console.error(n,r,t)}this.cleanWorkerAndTask(e,r,t.id),this.queueBroadcastStateChanges(),this.queuedTasks.length>0&&this.queueDrain()}queueDrain(){this._queuedDrain==null&&(this._queuedDrain=Promise.resolve().then(this.drainQueue),this.queueBroadcastStateChanges())}assignWorkerToTask(e,t){t.requestId=e.id,Ee(e)&&(this.clearQueuedInstanceRequests(e),this.trackInstanceRequests(e)),this.activeTaskById.set(e.id,e)}cleanWorkerAndTask(e,t,r=t?.id){e.requestId===r&&(e.requestId=void 0),e.pendingSetupRequestId===r&&(e.pendingSetupRequestId=void 0),t!=null&&(Ee(t)&&(this.rejectRenderTaskCallbacks(t,new bn),this.clearInstanceRequests(t),this.clearHighlightKey(t)),this.activeTaskById.delete(t.id))}executeTask(e,t){r_(t.request)&&this.maybeAttachCustomExtensions(e,t.request),this.activeTaskById.has(t.id)||this.assignWorkerToTask(t,e);try{t.type==="file"?t.cacheKeyAtDispatch=t.request.file.cacheKey:t.type==="diff"&&(t.cacheKeyAtDispatch=t.request.diff.cacheKey),e.worker.postMessage(t.request)}catch(r){console.error("Failed to post message to worker:",r),Ee(t)?(this.notifyHighlightError(t,r),this.rejectRenderTaskCallbacks(t,tr(r))):"reject"in t&&t.reject(r),this.cleanWorkerAndTask(e,t),this.queuedTasks.length>0&&this.queueDrain()}this.queueBroadcastStateChanges()}maybeAttachCustomExtensions(e,t){if(t.customExtensionsVersion!=null)return;const r=ng();e.customExtensionsVersion>=r||(t.customExtensionsVersion=r,t.customExtensionMap=ig())}syncCustomExtensionVersion(e,t){t.customExtensionsVersion!=null&&(e.customExtensionsVersion=t.customExtensionsVersion)}getAvailableWorker(e){let t;for(const r of this.workers){if(r.requestId!=null||r.pendingSetupRequestId!=null||!r.initialized)continue;if(t=r,e.length===0)break;let n=!0;for(const i of e)if(!r.langs.has(i)){n=!1;break}if(n)break}return t}getFileHighlightKey(e){if(e.cacheKey!=null)return`file:${e.cacheKey}:${this.renderOptionsVersion}`}getDiffHighlightKey(e){if(e.cacheKey!=null)return`diff:${e.cacheKey}:${this.renderOptionsVersion}`}getHighlightKeyForRequest(e){switch(e.type){case"file":return this.getFileHighlightKey(e.file);case"diff":return this.getDiffHighlightKey(e.diff)}}hasActiveRequest(e){for(const t of ft(e))if(this.activeRequestByInstance.has(t))return!0;return!1}addInstanceToTask(e,t){e.type,e.instances.add(t),this.activeTaskById.has(e.id)?this.activeRequestByInstance.set(t,e.id):this.queuedTaskByInstance.set(t,e)}detachInstanceFromQueuedTasks(e,t){const r=this.queuedTaskByInstance.get(e);r==null||r===t||(this.queuedTaskByInstance.delete(e),this.detachInstanceFromRenderTask(r,e),!r.primeCache&&r.instances.size===0&&this.removeQueuedTask(r))}detachInstanceFromRenderTask(e,t){e.type,e.instances.delete(t)}removeQueuedTask(e){const t=this.queuedTasks.indexOf(e);t!==-1&&this.queuedTasks.splice(t,1),this.rejectRenderTaskCallbacks(e,new bn),this.clearQueuedInstanceRequests(e),this.clearHighlightKey(e)}removeActiveTask(e){this.rejectRenderTaskCallbacks(e,new bn),this.clearInstanceRequests(e),this.clearHighlightKey(e),this.activeTaskById.delete(e.id)}createRenderTaskCallbacks(e){return new Promise((t,r)=>{e.callbacks.add({resolve:t,reject:r})})}resolveRenderTaskCallbacks(e){for(const t of e.callbacks)t.resolve();e.callbacks.clear()}rejectRenderTaskCallbacks(e,t){for(const r of e.callbacks)r.reject(t);e.callbacks.clear()}invalidateRenderTasks(){for(let e=this.queuedTasks.length-1;e>=0;e--){const t=this.queuedTasks[e];t.renderOptionsVersion!==this.renderOptionsVersion&&this.removeQueuedTask(t)}for(const e of Array.from(this.activeTaskById.values()))Ee(e)&&e.renderOptionsVersion!==this.renderOptionsVersion&&this.removeActiveTask(e)}clearQueuedInstanceRequests(e){for(const t of ft(e))this.queuedTaskByInstance.get(t)===e&&this.queuedTaskByInstance.delete(t)}clearHighlightKey(e){e.highlightKey!=null&&this.taskByHighlightKey.get(e.highlightKey)===e&&this.taskByHighlightKey.delete(e.highlightKey)}trackInstanceRequests(e){for(const t of ft(e))this.activeRequestByInstance.set(t,e.id)}clearInstanceRequests(e){for(const t of ft(e))this.activeRequestByInstance.get(t)===e.id&&this.activeRequestByInstance.delete(t)}notifyFileInstances(e,t,r){for(const n of e.instances)this.activeRequestByInstance.get(n)===e.id&&n.onHighlightSuccess(e.request.file,t,r)}notifyDiffInstances(e,t,r){for(const n of e.instances)this.activeRequestByInstance.get(n)===e.id&&n.onHighlightSuccess(e.request.diff,t,r)}notifyHighlightError(e,t){for(const r of ft(e))this.activeRequestByInstance.get(r)===e.id&&r.onHighlightError(t)}hasMatchingFileInstanceTask(e,t){for(const r of this.iterateRenderTasks())if(r.type==="file"&&this.isCurrentRenderTask(r)&&r.instances.has(e)&&Ig(t,r.request.file))return!0;return!1}hasMatchingDiffInstanceTask(e,t){for(const r of this.iterateRenderTasks())if(r.type==="diff"&&this.isCurrentRenderTask(r)&&r.instances.has(e)&&Ag(r.request.diff,t))return!0;return!1}getTaskByHighlightKey(e){const t=this.taskByHighlightKey.get(e);return t!=null&&this.isCurrentRenderTask(t)?t:void 0}isCurrentRenderTask(e){return e.renderOptionsVersion===this.renderOptionsVersion}*iterateRenderTasks(){for(const e of this.queuedTasks)yield e;for(const e of this.activeTaskById.values())Ee(e)&&(yield e)}generateRequestId(){return`req_${++this.nextRequestId}`}};function r_(e){return e.type==="initialize"||e.type==="file"||e.type==="diff"}function n_(e){const t=new Set;if(e.type==="initialize"||e.type==="set-render-options")return[];switch(e.type){case"file":t.add(e.request.file.lang??Ce(e.request.file.name));break;case"diff":t.add(e.request.diff.lang??Ce(e.request.diff.name)),t.add(e.request.diff.lang??Ce(e.request.diff.prevName??"-"))}return t.delete("text"),Array.from(t)}function Ee(e){return e?.type==="file"||e?.type==="diff"}function ft(e){return e.instances}function tr(e){if(e instanceof Error)return e;if(e!=null&&typeof e=="object"){if("error"in e&&e.error instanceof Error)return e.error;if("message"in e&&typeof e.message=="string")return new Error(e.message)}return new Error(String(e))}let kt;function i_({poolOptions:e,highlighterOptions:t}){return kt??=new t_(e,t),kt}function o_(){kt!=null&&(kt.terminate(),kt=void 0)}const Oe=Nt("diff-highlighter-worker-pool"),Ra=["typescript","javascript","tsx","jsx","json","css","html","markdown","python","rust","go","svelte","yaml","bash","powershell"],s_=new Set(Ra);function ob(e){if(!e)return;const t=e.toLowerCase();return s_.has(t)?t:void 0}const a_={dark:"github-dark",light:"github-light"};let ae=null,ur=null,ge=0,vt=null;const l_=3e4,u_=64;let Pt=0,Ot=0,xt=0,Ir=0,La=0;function sb(){return{generation:Pt,created:Ot,terminated:xt,live:Ot-xt,activeLeases:ge,alive:ae!==null,poolSize:ae===null?0:Ir}}function ui(){vt!==null&&(clearTimeout(vt),vt=null)}function Pa(){ui(),vt=setTimeout(()=>{vt=null,ge===0&&xa("idle")},l_)}let Tr=!1;function Oa(e){e.persisted||xa("unload")}function c_(){Tr||typeof window>"u"||(window.addEventListener("pagehide",Oa),Tr=!0)}function d_(){!Tr||typeof window>"u"||(window.removeEventListener("pagehide",Oa),Tr=!1)}function p_(){return new Worker(new URL("/app/immutable/workers/worker-portable-DylDHt6T.js",import.meta.url),{type:"classic"})}function cr(){if(ae)return ae;const e=performance.now();Oe.debug("Initializing diff highlighter worker pool...");const t=typeof navigator<"u"&&typeof navigator.hardwareConcurrency=="number"?navigator.hardwareConcurrency:4,r=Math.min(Math.max(t,2),8);ae=i_({poolOptions:{workerFactory:p_,poolSize:r,totalASTLRUCacheSize:u_},highlighterOptions:{theme:a_,langs:[...Ra]}}),Pt+=1,Ot+=1,Ir=r,La=e,c_();const n=performance.now()-e;return Oe.info(`Diff highlighter worker pool created in ${n.toFixed(0)}ms (generation=${Pt}, poolSize=${r}, leases=${ge}, created=${Ot}, terminated=${xt})`),ge===0&&Pa(),ae}function ab(){const e=cr();return ui(),ge+=1,e}function lb(){if(ge===0){Oe.warn("Diff worker pool lease released with no active leases");return}ge-=1,ge===0&&Pa()}function ub(){if(!ae)return null;const e=ae.inspectCaches();return{fileCacheSize:e.fileCache.size,diffCacheSize:e.diffCache.size}}function cb(){if(ae||ur)return;const e=async()=>{const t=cr();return await t.initialize(),Oe.info("Diff highlighter worker pool initialized"),t};typeof requestIdleCallback<"u"?ur=new Promise(t=>{requestIdleCallback(()=>{e().then(r=>t(r)).catch(r=>{Oe.warn("Failed to initialize worker pool:",r),t(cr())})},{timeout:5e3})}):ur=new Promise(t=>{setTimeout(()=>{e().then(r=>t(r)).catch(r=>{Oe.warn("Failed to initialize worker pool:",r),t(cr())})},100)})}function xa(e="manual"){ui();const t=ge;if(ge=0,ae){o_(),ae=null,ur=null,xt+=1,d_();const r=performance.now()-La;Oe.info(`Diff highlighter worker pool terminated (generation=${Pt}, poolSize=${Ir}, reason=${e}, leases=${t}, lifetimeMs=${r.toFixed(0)}, created=${Ot}, terminated=${xt})`),t>0&&Oe.warn(`Diff highlighter worker pool terminated with ${t} active lease(s) (generation=${Pt}, reason=${e})`),Ir=0}}function h_(e){const t=new Set;for(const r of e)!r.checked||!r.noteId||r.type!=="note"&&r.type!=="spec"||t.add(r.noteId);return t.size>0?[...t]:void 0}const f_=E.createSelector(e=>e.multiPanelContext.panels),m_=E.createSelector(e=>it(f_.select(e))),g_=E.createSelector(e=>m_.select(e).filter(t=>t.checked)),db=E.createSelector(e=>h_(g_.select(e))),__=E.createSelector(e=>e.multiPanelContext.selections),y_=E.createSelector(e=>it(__.select(e))),pb=E.createSelector(e=>y_.select(e).filter(t=>t.checked)),b_="app_msg_";function hb(){return`${b_}${uu()}`}const st=new Map;let E_=0,Ao=!1;function Qe(){try{const e=E.state;return JSON.stringify([e.connections?.windowBackendId,e.daemonHealth?.connectionGeneration,e.daemonHealth?.health,e.workspaceEvents?.subscriptionGeneration,e.principal?.context,e.principal?.boundPrincipalId,e.principal?.invalidation])}catch{return"unmounted"}}function Da(e,t){Ao||(Ao=!0,Pr(()=>st.clear()));const r=Qe();let n=st.get(e);return t??=n?.workspaceId,(!n||n.workspaceId!==t||n.context!==r)&&(n={workspaceId:t,key:String(++E_),context:r},st.set(e,n)),n}function fb(e,t){const r=Da(e,t);return{key:r.key,isCurrent:n=>st.get(e)===r&&r.context===Qe()&&(n===void 0||r.workspaceId===void 0||n===r.workspaceId)}}function Bt(e,t){const r=Da(e,t),n=E.state.agentSessions?.byAgentId[e]?.workspaceId;return{key:r.key,bindWorkspace:i=>{r.workspaceId??=i},isCurrent:()=>{const i=E.state.agentSessions?.byAgentId[e]?.workspaceId;return st.get(e)===r&&r.context===Qe()&&(i===n||i===r.workspaceId)}}}function mb(e,t){if(t===void 0)return!0;const r=st.get(e);return!r||r.context!==Qe()||r.workspaceId===t}function ze(e,t){const r=E.state.pendingSubmissions?.byAgentId[e]?.scope;return r&&(t===void 0||r.workspaceId===t)?cu.select(E.state,r):void 0}function Na(e){return e.filter(t=>t.role==="user").map(t=>({id:t.id,author:t.author,submissionIds:t.metadata?.submissionIds,recoverySources:t.metadata?.recoverySources}))}function gb(e,t,r,n){const i=ze(e,t);i&&E.dispatch(No(i.scope,r,n,Date.now()))}function _b(e,t,r,n){const i=ze(e,t);if(!i)return;const o=Na(r.messages),s=JSON.stringify([i.scope,o,r.truncated,r.nextToken??null,r.initialHistory,r.totalMessages-r.messages.length]),a=s===n&&r.resumed===void 0&&r.resetCachedTranscript!==!0,l=i.queueFresh&&!i.refreshNeeded&&it(i.submissions).length===0&&it(i.seeds).length===0&&it(i.processing).length===0;return(!a||!l)&&E.dispatch(No(i.scope,"history",o,Date.now())),s}function yb(e,t,r){const n=ze(e,t);n&&E.dispatch(nl(n.scope,r))}function bb(e,t,r){const n=ze(e,t);n&&E.dispatch(il(n.scope,r))}function Va(e,t,r){const n=ze(e,t),i=n&&{scope:n.scope,kind:r,id:crypto.randomUUID(),generation:n.generation};return i&&E.dispatch(ol(i)),{isCurrent:()=>i?al(ze(e,t),i):!ze(e,t),complete:o=>{i&&E.dispatch(sl(i,o,Date.now()))}}}const k_=Nt("AgentQueueReadService");let nt=0,Io=!1;function ci(e,t){return Io||(Io=!0,Pr(()=>{nt+=1,dr.clear(),wt.clear(),Rr.clear()})),JSON.stringify([nt,t??null,e])}const dr=new Map,wt=new Set,Rr=new Map;function v_(e,t){t??=E.state.agentSessions?.byAgentId[e]?.workspaceId;const r=ci(e,t);Rr.set(r,(Rr.get(r)??0)+1)}function En(e,t){return t??=E.state.agentSessions?.byAgentId[e]?.workspaceId,Rr.get(ci(e,t))??0}async function Ma(e,t,r){const n=t.key,i=nt;if(Se(e)){wt.delete(n);return}E.dispatch(ll(e,r));const o=En(e,r),s=E.state.pendingSubmissions?.byAgentId[e]?.scope,a=Va(e,r,"queue");try{const l=await fe.agents.getQueue(e,r);if(i!==nt||!t.isCurrent())return;if(!a.isCurrent()){const u=E.state.pendingSubmissions?.byAgentId[e];En(e,r)!==o&&s&&u?.queueFresh&&ul(u.scope,s)||wt.add(n);return}Se(e)?E.dispatch(_i(e,!1)):En(e,r)===o&&(a.complete(l),E.dispatch(cl(e,l,r)),v_(e,r))}catch(l){if(i!==nt||!t.isCurrent())return;k_.error(`Failed to hydrate agent queue for ${e}`,l),Se(e)?E.dispatch(_i(e,!1)):E.dispatch(dl(e,l instanceof Error?l.message:String(l)))}finally{i===nt&&t.isCurrent()&&wt.delete(n)&&await Ma(e,t,r)}}function Eb(e,t){t??=E.state.agentSessions?.byAgentId[e]?.workspaceId,ci(e,t);const r=Bt(e,t),n=r.key;if(!e||Se(e))return Promise.resolve();const i=dr.get(n);if(i)return wt.add(n),i;const o=Ma(e,r,t).finally(()=>{dr.delete(n)});return dr.set(n,o),o}function w_(e){return e.turnInFlight===!0||e.isResponding===!0||e.isStreaming===!0}const S_=Object.freeze({preserveExplicitRuntimeFlags:!1,allowActiveTurnRuntimeFlagClear:!0});function C_(e,t){if(!(!e||w_(t)))return S_}const To=Nt("AgentReadService");let _e=0,Ro=!1;function Ft(e,t){return Ro||(Ro=!0,Pr(()=>{_e+=1,Fe.clear(),Lr.clear(),yt.clear(),di.clear()})),JSON.stringify([_e,Qe(),t??null,e])}const Fe=new Map,Lr=new Map,yt=new Map;let $a=0;const di=new Map,A_=["pendingQuestionsMessageId","dismissedQuestionsMessageId"];function kb(e,t){t??=E.state.agentSessions?.byAgentId[e]?.workspaceId,di.set(Ft(e,t),$a)}function I_(e,t,r){if(!r)return r;const n=di.get(Ft(e,r.workspaceId));if(n===void 0||t>n)return r;const i=E.state.agentSessions?.byAgentId[e],o=i?.workspaceId===r.workspaceId?i.metadata:void 0;if(!o)return r;let s=r.metadata;for(const a of A_){const l=o[a];typeof l!="string"||s?.[a]===l||(s={...s,[a]:l})}return s===r.metadata?r:{...r,metadata:s}}function T_(e,t,r){if(!t||!e||e.workspaceId!==t.workspaceId)return t;const n=E.state.agentSessions?.byAgentId[String(t.id)];if(!n||n.workspaceId!==t.workspaceId)return t;const i=E.state.agentSessions.projectionVersions?.[String(t.id)],o={...t};for(const a of new Set([...Object.keys(n),...Object.keys(i?.fields??{})]))a!=="metadata"&&(n[a]!==e[a]||i?.fields[a]!==r?.fields[a])&&Object.assign(o,{[a]:n[a]});const s={...t.metadata};for(const a of new Set([...Object.keys(e.metadata??{}),...Object.keys(n.metadata??{}),...Object.keys(i?.metadata??{})])){const l=Object.hasOwn(n.metadata??{},a),u=Object.hasOwn(e.metadata??{},a),d=l?n.metadata?.[a]:void 0,c=u?e.metadata?.[a]:void 0,h=Object.hasOwn(i?.metadata??{},a)?i?.metadata[a]:void 0,f=Object.hasOwn(r?.metadata??{},a)?r?.metadata[a]:void 0;(l!==u||d!==c||h!==f)&&(l?Object.defineProperty(s,a,{value:d,enumerable:!0,configurable:!0,writable:!0}):delete s[a])}return o.metadata=s,o}async function vb(e,t){t??=E.state.agentSessions?.byAgentId[e]?.workspaceId;const r=Ft(e,t),n=Bt(e,t),i=Fe.get(r);if(!i)return kn(e,t);const o=_e,s=yt.get(r);if(s)return s;const a=i.then(()=>{if(yt.delete(r),o===_e&&n.isCurrent())return kn(e,t)},()=>{if(yt.delete(r),o===_e&&n.isCurrent())return kn(e,t)});return yt.set(r,a),a}function pi(e,t){t??=E.state.agentSessions?.byAgentId[e]?.workspaceId;const r=Ft(e,t),n=Fe.get(r);if(n)return n;let i,o;try{i=E.state.agentSessions?.byAgentId[e],o=E.state.agentSessions?.projectionVersions?.[e]}catch{i=void 0}const s=Qe(),a=++$a,l=_e,u=fe.agents.get(e,t).then(d=>l===_e&&s===Qe()?T_(i,I_(e,a,d),o):null).finally(()=>{Fe.get(r)===u&&Fe.delete(r)});return Fe.set(r,u),u}async function wb(e,t,r){const n=Ft(e,t),i=_e,o=Bt(e,t),s=Fe.get(n);if(s&&await s.catch(()=>null),i!==_e||!o.isCurrent()||!r())return null;const a=await pi(e,t);return i===_e&&o.isCurrent()&&r()?a:null}async function R_(e,t,r){r??=E.state.agentSessions?.byAgentId[e]?.workspaceId;try{const n=E.state.agentSessions?.byAgentId[e],i=n?.workspaceId===r?n:void 0,o=i?.isStreaming===!0&&i?.isProcessing===!0,s=await pi(e,r);if(s&&t.bindWorkspace(s.workspaceId),t.isCurrent()&&s&&!s.pendingDeleteAt&&!Se(e)){const a=E.state.agentSessions?.byAgentId[e],l=a?.workspaceId===s.workspaceId?{...s,messages:a.messages}:s;return E.dispatch(Vo([l],C_(o,s))),E.dispatch(Mo(l)),E.dispatch(pl(e)),l}return null}catch(n){return Eu(n)?To.warn("Agent no longer exists on daemon; skipping session load",{agentId:e}):To.error("Failed to load agent session",n),null}finally{Lr.delete(t.key)}}async function kn(e,t){t??=E.state.agentSessions?.byAgentId[e]?.workspaceId;const r=Bt(e,t),n=r.key;if(Se(e))return;const i=Lr.get(n);if(i){await i;return}const o=R_(e,r,t);Lr.set(n,o),await o}const L_=Nt("ChatReadService");let Ye=0,Lo=!1;const mt=new Map,rr=new Map;function Po(e,t){const n=E.state.agentSessions?.byAgentId[e];return n?.workspaceId===t?n?.messages??[]:[]}async function Oo(e,t){if(Se(e)||Gt.select(E.state,e))return;Lo||(Lo=!0,Pr(()=>{Ye+=1,mt.clear(),rr.clear()})),t??=E.state.agentSessions?.byAgentId[e]?.workspaceId;const r=Ye,n=Bt(e,t),i=n.key,o=mt.get(i);if(o){const d=rr.get(i);if(d)return d;const c=o.then(()=>{if(rr.delete(i),r===Ye&&n.isCurrent())return Oo(e,t)});return rr.set(i,c),c}let s;const a=new Promise(d=>{s=d});mt.set(i,a);const l=new Set;for(const d of Po(e,t))typeof d.id=="string"&&l.add(d.id),typeof d.appMessageId=="string"&&l.add(d.appMessageId);try{E.dispatch(hl(e))}catch(d){throw mt.delete(i),d}const u=Va(e,t,"history");return(async()=>{try{const d=E.state.agentSessions?.byAgentId[e],c=d&&d.workspaceId===t?d:await pi(e,t);if(!c||r!==Ye||!n.isCurrent()||(n.bindWorkspace(c.workspaceId),t??=c.workspaceId,c.pendingDeleteAt)||Se(e)||Gt.select(E.state,e))return;const h=await fe.agents.getConversation(e,wu,void 0,void 0,void 0,t??c.workspaceId);if(r!==Ye||!n.isCurrent())return;if(!u.isCurrent()){Oo(e,t);return}const f=h.messages;if(Se(e)||Gt.select(E.state,e))return;const m=f,b=Po(e,t).filter(k=>!(typeof k.id=="string"&&l.has(k.id)||typeof k.appMessageId=="string"&&l.has(k.appMessageId))),v=b.length===0?m:fl([...m,...b]),_=E.state.agentSessions?.byAgentId[e],y={..._?.workspaceId===c.workspaceId?_:c,messages:v};u.complete(Na(f)),E.dispatch(Vo([y])),E.dispatch(Mo(y))}catch(d){L_.error("Failed to load agent conversation transcript",d)}finally{try{r===Ye&&n.isCurrent()&&!Gt.select(E.state,e)&&E.dispatch(ml(e))}finally{mt.delete(i),s()}}})(),a}function P_(e){return e.applyToolCallId??e.preview.title}function Sb(e){const t=new Map;if(e.role!=="assistant")return t;for(const r of Ru(e.contentBlocks??[])){const n=Su(r);if(n===null)continue;const i=P_(n);t.has(i)||t.set(i,n)}return t}function Cb(e){if(!Array.isArray(e))return[];const t=[],r=new Set;for(const n of e){if(!n||typeof n!="object")continue;const{proposalId:i,messageId:o}=n;typeof i!="string"||i.length===0||typeof o!="string"||o.length===0||r.has(i)||(r.add(i),t.push({proposalId:i,messageId:o}))}return t}function Ab(e,t){const r=[],n=new Set;for(const i of e)n.has(i.messageId)||(n.add(i.messageId),t(i.messageId)||r.push(i.messageId));return r}const Ib=E.createSelector((e,t)=>gl(e.inlineVisuals.entries,t)),Tb=E.createSelector((e,t)=>it(e.inlineVisuals.drafts).filter(r=>r.ownerId===t));function Rb(e,t,r){const n=r?.trim();if(!n)return"";const i=e.filter(a=>a.id!==t),o=i.find(a=>a.id===n);if(o)return o.id;const s=i.filter(a=>[a.label,a.hostname,a.host].some(l=>l?.toLowerCase()===n.toLowerCase()));return s.length===1?s[0].id:""}function Lb(e){const t=e.label||e.hostname||e.id;return e.host?`${t} (${e.host}:${e.port})`:t}const O_=E.createSelector((e,t)=>e.settingsProposalHistory.entries[t]??null),Pb=E.createSelector(e=>e.settingsProposalHistory.entries),x_=E.createSelector((e,t)=>e.specialistProposalHistory.entries[t]??null),Ob=E.createSelector(e=>e.specialistProposalHistory.entries),xb=E.createSelector((e,t)=>e.proposalLifecycle[t]??null),Db=E.createSelector((e,t)=>e.proposalLifecycle[t]?.status??"idle"),Nb=E.createSelector((e,t)=>e.proposalLifecycle[t]?.error??null),Vb=E.createSelector((e,t)=>e.proposalLifecycle[t]?.errorCode??null),Mb=E.createSelector((e,t)=>e.proposalLifecycle[t]?.result??null),$b=E.createSelector(e=>e.proposalLifecycle);function Kn(e){return e===void 0?"undefined":e===null||typeof e!="object"?JSON.stringify(e):Array.isArray(e)?`[${e.map(Kn).join(",")}]`:`{${Object.entries(e).sort(([t],[r])=>t.localeCompare(r)).map(([t,r])=>`${JSON.stringify(t)}:${Kn(r)}`).join(",")}}`}function D_(e){let t=5381;for(let r=0;r<e.length;r+=1)t=t*33^e.charCodeAt(r);return(t>>>0).toString(36)}function hi(e){if(e.applyToolCallId)return e.applyToolCallId;const t=e.kind==="settings-change"?e.payload.changes:e.payload;return`settings-${D_(Kn(t))}`}function Bb(e,t,r){const n=hi(e);return e.applyToolCallId||e.kind!=="workspace-create"?n:`${n}@${t}/${r}`}const N_=zo.map(({id:e,label:t})=>`${t} (${e})`).join(", "),V_=Object.fromEntries(zo.map(({id:e,label:t})=>[e,t]));function M_(e){try{const t=JSON.stringify(e);return t?t.length>120?`${t.slice(0,117)}…`:t:String(e)}catch{return String(e)}}function Fb(e,t){if(t==null||t===""||e.nullable===!0&&t==="null")return e.nullLabel??"(none)";if(e.type==="number"&&typeof t=="string"&&t.trim()!==""){const r=Number(t);if(Number.isFinite(r))return String(r)}return e.type==="enum"&&typeof t=="string"?e.enumLabels?.[t]??t:typeof t=="boolean"?t?"On":"Off":typeof t=="string"||typeof t=="number"?String(t):M_(t)}const $_=[{path:"preferences.updateChannel",label:"Update channel",description:"Release channel for app updates: stable, beta, or alpha — or disabled to turn updates off.",category:"preferences",type:"enum",enumValues:ku,enumLabels:{stable:"Stable",beta:"Beta",alpha:"Alpha",disabled:"Disabled"},source:"redux",defaultValue:"stable",apply:{kind:"redux-action",action:"userPreferences/setUpdateChannel"}},{path:"preferences.spellcheckEnabled",label:"Notes spellcheck",description:"Whether spellcheck is enabled in note editors.",category:"preferences",type:"boolean",source:"local-storage",storageKey:"note-spellcheck-settings",valuePath:"enabled",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setSpellcheckEnabled"}},{path:"workspaceList.showArchived",label:"Show archived workspaces",description:"Whether archived workspaces are shown in workspace lists.",category:"workspace",type:"boolean",source:"local-storage",storageKey:"workspace-list:showArchived",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setShowArchived"}},{path:"workspaceList.groupByRepo",label:"Group workspaces by repo",description:"Whether workspace lists group workspaces by repository.",category:"workspace",type:"boolean",source:"local-storage",storageKey:"workspace-list:groupByRepo",defaultValue:!0,apply:{kind:"redux-action",action:"userPreferences/setGroupByRepo"}},{path:"providers.completedSetup",label:"Provider setup completed",description:"Whether the provider setup checklist has been completed.",category:"accounts",type:"boolean",source:"local-storage",storageKey:"workspace-list:completedProviderSetup",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setHasCompletedProviderSetup"}},{path:"preferences.language",label:"Language",description:'Display language for the app UI. "system" follows the OS locale; otherwise a BCP-47 tag of an available message catalog.',category:"preferences",type:"enum",enumValues:[Kr,..._c],enumLabels:{[Kr]:"System"},source:"local-storage",storageKey:"language-preference",defaultValue:Kr,apply:{kind:"redux-action",action:"userPreferences/setLanguagePreference"}},{path:"theme.preference",label:"Theme preference",description:"Light, dark, or system theme preference.",category:"theme",type:"enum",enumValues:["light","dark","system"],enumLabels:{light:"Light",dark:"Dark",system:"System"},source:"local-storage",storageKey:"theme",defaultValue:"system",apply:{kind:"redux-action",action:"theme/requestThemePreferenceChange"}},{path:"appearance.chatAurora",label:"Chat aurora",description:"Whether the aurora effect is shown while chat responses are streaming.",category:"theme",type:"boolean",source:"local-storage",storageKey:"chat:auroraEnabled",defaultValue:!0,apply:{kind:"redux-action",action:"userPreferences/setChatAuroraEnabled"}},{path:"appearance.shellTransparency",label:"Shell transparency",description:"Whether the app shell uses translucent backgrounds.",category:"theme",type:"boolean",source:"local-storage",storageKey:"appearance:shellTransparencyEnabled",defaultValue:!0,apply:{kind:"redux-action",action:"userPreferences/setShellTransparencyEnabled"}},{path:"appearance.reduceMotionOnBattery",label:"Reduce motion on battery",description:"Whether animations are reduced while the machine runs on battery power.",category:"theme",type:"boolean",source:"local-storage",storageKey:"appearance:reduceMotionOnBattery",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setReduceMotionOnBattery"}},{path:"appearance.pauseAnimationsWhenUnfocused",label:"Pause animations when not in focus",description:"Whether looping animations pause while the app window is not focused.",category:"theme",type:"boolean",source:"local-storage",storageKey:"appearance:pauseAnimationsWhenUnfocused",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setPauseAnimationsWhenUnfocused"}},{path:"labs.remoteAgents",label:"Remote agents (Labs)",description:"Offer experimental remote agent setup and placement, including letting a backend run agents on your machines. Existing remote sessions remain available when disabled.",category:"labs",type:"boolean",source:"local-storage",storageKey:"labs:remoteAgentsEnabled",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setLabsRemoteAgentsEnabled"}},{path:"labs.plainFolderWorkspaces",label:"Plain-folder workspaces (Labs)",description:"Offer an Initialize as git repository toggle when creating a workspace, so new workspaces can be plain folders without git. Existing plain-folder workspaces keep working when disabled.",category:"labs",type:"boolean",source:"local-storage",storageKey:"labs:plainFolderWorkspacesEnabled",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setLabsPlainFolderWorkspacesEnabled"}},{path:"labs.tabGroups",label:"Tab groups (Labs)",description:"Group workspace tabs into named, colored groups that collapse when not in use. Groups you made are kept but hidden while disabled.",category:"labs",type:"boolean",source:"local-storage",storageKey:"labs:tabGroupsEnabled",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setLabsTabGroupsEnabled"}},{path:"labs.cloudMachines",label:"E2B cloud machines (Labs)",description:"Offer E2B cloud machines: set up E2B in Settings → Machines, list its sandboxes, and start agents on a new E2B sandbox. Needs Remote agents. Agents already on E2B keep showing when disabled.",category:"labs",type:"boolean",source:"local-storage",storageKey:"labs:cloudMachinesEnabled",defaultValue:!1,apply:{kind:"redux-action",action:"userPreferences/setLabsCloudMachinesEnabled"}},{path:"theme.activePresetId",label:"Theme preset",description:`Active built-in color theme preset ID. Available presets: ${N_}.`,category:"theme",type:"enum",enumValues:qu,enumLabels:V_,source:"local-storage",storageKey:"theme-preset-id",defaultValue:null,nullable:!0,nullLabel:"Default",apply:{kind:"redux-action",action:"theme/selectThemePreset"}},{path:"model.default",label:"Default model",description:"Default model used by the model picker for new chats.",category:"agents",type:"string",source:"local-storage",storageKey:"workspaces-selected-model",defaultValue:"",apply:{kind:"redux-action",action:"model/selectModel"}},{path:"model.providerDefaults",label:"Per-provider default models",description:"Remembered selected model for each coding-agent provider.",category:"agents",type:"object",source:"local-storage",storageKey:"workspaces-provider-models",defaultValue:{},apply:{kind:"read-only"}},{path:"model.defaultReasoningEffort",label:"Default reasoning effort",description:"Reasoning-effort level applied to new agents that resolve their model from the default-model setting. Empty means unset (the model default).",category:"agents",type:"string",source:"daemon-settings",storageKey:"model.defaultReasoningEffort",defaultValue:"",apply:{kind:"daemon-settings-update",path:"model.defaultReasoningEffort"}},{path:"model.pickerCollapsedGroups",label:"Collapsed model picker groups",description:"Model picker groups the user has collapsed.",category:"agents",type:"array",source:"local-storage",storageKey:"model-picker-collapsed-groups",defaultValue:[],apply:{kind:"read-only"}},{path:"specialists.default",label:"Default specialist",description:"Daemon setting: specialist applied when none is chosen (e.g. running a task note). Empty means unset (falls back to implementor).",category:"agents",type:"string",source:"daemon-settings",storageKey:"specialists.default",defaultValue:"",apply:{kind:"daemon-settings-update",path:"specialists.default"}},{path:"workspaceInitializer.lastSpecialist",label:"Last workspace initializer specialist",description:"Last submitted workspace initializer specialist selection.",category:"agents",type:"object",source:"local-storage",storageKey:"workspace-initializer-last-agent",defaultValue:null,apply:{kind:"read-only"}},{path:"model.defaultProvider",label:"Default provider",description:"Default provider/coding agent for new work.",category:"agents",type:"string",source:"daemon-settings",storageKey:"model.defaultProvider",defaultValue:"auggie",apply:{kind:"redux-action",action:"providerSettings/setActiveProvider"}},{path:"providers.enabled",label:"Enabled coding agents",description:"Per-provider enabled/disabled settings.",category:"accounts",type:"object",source:"local-storage",storageKey:"additional-agents-settings",defaultValue:{},apply:{kind:"redux-action",action:"providerSettings/setProviderEnabled"}},{path:"providers.paths.auggie",label:"Auggie CLI path",description:"Override path for the Auggie provider executable.",category:"accounts",type:"string",source:"daemon-settings",storageKey:"context.auggiePath",defaultValue:"",apply:{kind:"read-only"}},{path:"providers.paths.claude-code",label:"Claude Code CLI path",description:"Override path for the Claude Code provider executable.",category:"accounts",type:"string",source:"daemon-settings",storageKey:"providers.paths",valuePath:"claude-code",defaultValue:"",apply:{kind:"read-only"}},{path:"providers.paths.codex",label:"Codex CLI path",description:"Override path for the Codex provider executable.",category:"accounts",type:"string",source:"daemon-settings",storageKey:"providers.paths",valuePath:"codex",defaultValue:"",apply:{kind:"read-only"}},{path:"workspace.branchPrefix",label:"Branch prefix",description:"Prefix added to newly-created workspace branches.",category:"workspace",type:"string",source:"daemon-settings",storageKey:"workspace.branchPrefix",defaultValue:"",apply:{kind:"daemon-settings-update",path:"workspace.branchPrefix"}},{path:"workspace.worktreesLocation",label:"Worktrees location",description:"Custom parent directory for workspace worktrees.",category:"workspace",type:"string",source:"daemon-settings",storageKey:"workspace.worktreesLocation",defaultValue:"",apply:{kind:"read-only"}},{path:"workspace.sshKeyPath",label:"SSH key path",description:"Optional SSH private key path used by Git operations.",category:"workspace",type:"string",source:"daemon-settings",storageKey:"workspace.sshKeyPath",defaultValue:"",sensitive:!0,apply:{kind:"read-only"}},{path:"workspace.defaultShell",label:"Default shell",description:"Default shell used for terminals.",category:"workspace",type:"string",source:"daemon-settings",storageKey:"workspace.defaultShell",defaultValue:"auto",apply:{kind:"read-only"}},{path:"workspace.autoArchiveIdleAfterDays",label:"Auto-archive idle workspaces (days)",description:"Archive workspaces after this many days without activity. 0 turns automatic archiving off.",category:"workspace",type:"number",min:0,source:"daemon-settings",storageKey:"workspace.autoArchiveIdleAfterDays",defaultValue:0,apply:{kind:"daemon-settings-update",path:"workspace.autoArchiveIdleAfterDays"}},{path:"workspace.purgeArchivedAfterDays",label:"Purge archived workspace folders (days)",description:"Delete the folders of workspaces archived longer than this many days; notes, conversations and branches are kept. Empty turns automatic purging off.",category:"workspace",type:"number",min:1,source:"daemon-settings",storageKey:"workspace.purgeArchivedAfterDays",defaultValue:null,nullable:!0,nullLabel:"Off",apply:{kind:"daemon-settings-update",path:"workspace.purgeArchivedAfterDays"}},{path:"workspace.autoCommit",label:"Auto-commit",description:"Global default for workspace auto-commit behavior.",category:"workspace",type:"boolean",source:"daemon-settings",storageKey:"git.autoCommit",defaultValue:!0,apply:{kind:"daemon-settings-update",path:"git.autoCommit"}},{path:"notifications.enabled",label:"Notifications enabled",description:"Whether app notifications are enabled.",category:"notifications",type:"boolean",source:"daemon-settings",storageKey:"notifications.enabled",defaultValue:!0,apply:{kind:"redux-action",action:"notificationSettings/setNotificationEnabled"}},{path:"notifications.soundEnabled",label:"Notification sounds",description:"Whether notification sounds are enabled.",category:"notifications",type:"boolean",source:"daemon-settings",storageKey:"notifications.soundEnabled",defaultValue:!0,apply:{kind:"redux-action",action:"notificationSettings/setSoundEnabled"}},{path:"notifications.soundOnlyWhenUnfocused",label:"Sound only when unfocused",description:"Only play notification sounds when the app is unfocused.",category:"notifications",type:"boolean",source:"daemon-settings",storageKey:"notifications.soundOnlyWhenUnfocused",defaultValue:!0,apply:{kind:"redux-action",action:"notificationSettings/setSoundOnlyWhenUnfocused"}},{path:"notifications.volume",label:"Notification volume",description:"Notification sound volume from 0 to 1.",category:"notifications",type:"number",min:0,max:1,source:"daemon-settings",storageKey:"notifications.volume",defaultValue:.5,apply:{kind:"redux-action",action:"notificationSettings/setVolume"}},{path:"mcp.enableUserServers",label:"User MCP servers enabled",description:"Whether custom user MCP servers from ~/.augment/settings.json are enabled.",category:"mcp",type:"boolean",source:"daemon-settings",storageKey:"mcp.enableUserServers",defaultValue:!0,apply:{kind:"daemon-settings-update",path:"mcp.enableUserServers"}},{path:"mcp.disabledServers",label:"Disabled MCP servers",description:"Global list of disabled MCP server names.",category:"mcp",type:"array",source:"daemon-settings",storageKey:"mcp.disabledServers",defaultValue:[],apply:{kind:"daemon-settings-update",path:"mcp.disabledServers"}},{path:"mcp.servers",label:"MCP servers",description:"Configured MCP servers from ~/.augment/settings.json.",category:"mcp",type:"object",source:"augment-settings",storageKey:"mcpServers",defaultValue:{},sensitive:!0,apply:{kind:"user-mcp-settings",key:"mcpServers"}},{path:"quickActions.defaultModel",label:"Default quick action model",description:"Default model for single-shot quick actions (commit messages, PR descriptions, quick tasks). Never applied to agent sessions.",category:"agents",type:"string",source:"local-storage",storageKey:"workspaces-background-agent-settings",valuePath:"defaultModel",defaultValue:"",apply:{kind:"redux-action",action:"backgroundAgentSettings/setDefaultModel"}},{path:"quickActions.typeOverrides",label:"Quick action model overrides",description:"Per-quick-action model overrides.",category:"agents",type:"object",source:"local-storage",storageKey:"workspaces-background-agent-settings",valuePath:"typeOverrides",defaultValue:{commit:"",pr:"",review:"",fast:""},apply:{kind:"redux-action",action:"backgroundAgentSettings/setTypeOverride"}},{path:"quickActions.defaultReasoningEffort",label:"Default quick action effort",description:"Reasoning effort for quick actions. Empty inherits the provider default.",category:"agents",type:"string",source:"local-storage",storageKey:"workspaces-background-agent-settings",valuePath:"defaultReasoningEffort",defaultValue:"",apply:{kind:"redux-action",action:"backgroundAgentSettings/setDefaultReasoningEffort"}},{path:"quickActions.typeReasoningEffortOverrides",label:"Quick action effort overrides",description:"Per-action reasoning effort, independent of the model override.",category:"agents",type:"object",source:"local-storage",storageKey:"workspaces-background-agent-settings",valuePath:"typeReasoningEffortOverrides",defaultValue:{},apply:{kind:"redux-action",action:"backgroundAgentSettings/setTypeReasoningEffortOverrides"}},{path:"quickActions.providerSettings",label:"Per-provider quick action settings",description:"Cached quick action settings by provider ID.",category:"agents",type:"object",source:"local-storage",storageKey:"workspaces-bg-agent-settings-per-provider",defaultValue:{},apply:{kind:"read-only"}},{path:"fonts.agent",label:"Agent font",description:"Font style for agent messages.",category:"fonts",type:"enum",enumValues:["sans","monospace"],source:"local-storage",storageKey:"agent-font-settings",valuePath:"fontStyle",defaultValue:"sans",apply:{kind:"redux-action",action:"fontSettings/setAgentFontStyle"}},{path:"fonts.notes",label:"Notes font",description:"Font style for notes.",category:"fonts",type:"enum",enumValues:["sans","serif","monospace"],source:"local-storage",storageKey:"note-font-settings",valuePath:"fontStyle",defaultValue:"sans",apply:{kind:"redux-action",action:"fontSettings/setNoteFontStyle"}},{path:"fonts.code",label:"Code font",description:"Font family for code editors.",category:"fonts",type:"string",source:"local-storage",storageKey:"code-font-settings",valuePath:"fontFamily",defaultValue:"system-default",apply:{kind:"redux-action",action:"fontSettings/setCodeFontFamily"}},{path:"ui.editor",label:"Editor view options",description:"Code/diff editor wrapping, folding, side-by-side diff, and indicators.",category:"per-feature",type:"object",source:"local-storage",storageKey:"editor-settings",defaultValue:{lineWrapping:!0,foldUnchanged:!0,diffSideBySide:!0,diffIndicators:!0},apply:{kind:"redux-action",action:"uiLayout/editorSettings"}},{path:"ui.layout",label:"Layout settings",description:"Spaces sidebar width/collapse, tab pinning, and sidebar side.",category:"per-feature",type:"object",source:"local-storage",storageKey:"layout-settings",defaultValue:{spacesSidebarWidth:200,spacesSidebarCollapsed:!1,tabbedSidebarPinned:!0,sidebarSide:"left"},apply:{kind:"redux-action",action:"uiLayout/layoutSettings"}},{path:"ui.workspaceLeftPanel.collapsed",label:"Workspace left panel collapsed",description:"Collapsed state for the workspace left panel.",category:"per-feature",type:"boolean",source:"local-storage",storageKey:"workspace-left-panel-collapsed",defaultValue:!1,apply:{kind:"redux-action",action:"uiLayout/setCollapsed"}},{path:"ui.workspaceLeftPanel.widthPercent",label:"Workspace left panel width",description:"Persisted workspace left panel width as a percent of window width.",category:"per-feature",type:"number",source:"local-storage",storageKey:"workspace-left-panel-width",defaultValue:null,apply:{kind:"read-only"}},{path:"ui.workspaceLeftPanel.expandedWidthPercent",label:"Workspace left panel expanded width",description:"Persisted expanded workspace left panel width as a percent of window width.",category:"per-feature",type:"number",source:"local-storage",storageKey:"workspace-left-panel-expanded-width",defaultValue:null,apply:{kind:"read-only"}},{path:"ui.bottomDock",label:"Bottom dock settings",description:"Bottom dock view mode, terminal selection, and height.",category:"per-feature",type:"object",source:"local-storage",storageKey:"bottom-dock-state",defaultValue:{viewMode:"agents",activeTerminalId:null,height:400},apply:{kind:"read-only"}},{path:"ui.workspaceSidebarPanels",label:"Workspace sidebar panels",description:"Collapsed and height settings for workspace sidebar panels.",category:"per-feature",type:"object",source:"local-storage",storageKey:"vscode-resizable-panels",defaultValue:{collapsed:{},heights:{}},apply:{kind:"read-only"}},{path:"openIn.defaultAction",label:"Open In default action",description:"Default action for Open In controls.",category:"per-feature",type:"string",source:"local-storage",storageKey:"open-combo-button-last-action",defaultValue:"vscode",apply:{kind:"redux-action",action:"externalEditors/setOpenAction"}},{path:"openIn.editorOrder",label:"Open In editor order",description:"Preferred order for editors shown in Open In controls.",category:"per-feature",type:"array",source:"local-storage",storageKey:"settings:openInEditorsOrder",defaultValue:[],apply:{kind:"local-storage-set",key:"settings:openInEditorsOrder"}},{path:"githubLinks.defaultAction",label:"GitHub link default action",description:"Default action for plain clicks on GitHub issue and pull request links.",category:"per-feature",type:"enum",enumValues:el,enumLabels:{"show-choices":"Show choices","open-in-browser":"Open in browser","open-in-app":"Open in app","copy-link":"Copy link","start-workspace":"Start workspace"},source:"local-storage",storageKey:"github-links:defaultAction",defaultValue:"show-choices",apply:{kind:"redux-action",action:"userPreferences/setGithubLinkDefaultAction"}},{path:"openIn.hiddenEditors",label:"Hidden Open In editors",description:"Editor IDs hidden from Open In menus.",category:"per-feature",type:"array",source:"local-storage",storageKey:"legacy-settings:hiddenOpenInEditors",defaultValue:[],apply:{kind:"local-storage-set",key:"legacy-settings:hiddenOpenInEditors"}},{path:"rtk.enabled",label:"RTK enabled",description:"Whether RTK helper behavior is enabled.",category:"per-feature",type:"boolean",source:"daemon-settings",storageKey:"rtk.enabled",defaultValue:!1,apply:{kind:"daemon-settings-update",path:"rtk.enabled"}},{path:"linear.issueFilter",label:"Linear issue filter",description:"Saved Linear issue filter used by integrations.",category:"accounts",type:"object",source:"local-storage",storageKey:"legacy-settings:linearIssueFilter",defaultValue:null,apply:{kind:"local-storage-set",key:"legacy-settings:linearIssueFilter"}},{path:"accounts.sentry",label:"Sentry account",description:"Persisted Sentry account status. API tokens are never exposed.",category:"accounts",type:"status",source:"daemon-settings",storageKey:"accounts.sentry",defaultValue:null,sensitive:!0,apply:{kind:"read-only"}},{path:"activityLog.presets",label:"Activity log presets",description:"Saved activity log filter presets.",category:"per-feature",type:"array",source:"local-storage",storageKey:"activityLogPresets",defaultValue:[],apply:{kind:"read-only"}},{path:"keybindings.shortcuts",label:"Keyboard shortcuts",description:"Built-in keyboard shortcut catalog. Custom keybindings are not persisted yet.",category:"keybindings",type:"readonly",source:"static",defaultValue:"Built-in shortcuts are available in the shortcuts cheat sheet.",apply:{kind:"read-only"}}];function Ba(e){return $_.find(t=>t.path===e)}class xo extends Error{constructor(t){super(me.chat_settingsProposalActions_notProposable_error({path:t})),this.name="SettingNotProposableError"}}const Fa=new Set(["boolean","number","string","enum","object"]);function Ga(e){return e.proposable===!0&&e.sensitive!==!0}function ja(e){return{path:e.path,label:e.label||e.path,description:e.description??"",category:e.category??"daemon",type:e.type,source:"daemon-settings",storageKey:e.path,defaultValue:e.defaultValue,nullable:e.defaultValue===void 0,...e.enumValues?{enumValues:e.enumValues}:{},...typeof e.min=="number"?{min:e.min}:{},...typeof e.max=="number"?{max:e.max}:{},apply:{kind:"daemon-settings-update",path:e.path}}}async function B_(e){const t=Ba(e);if(t&&t.apply.kind!=="daemon-settings-update")return{kind:"app",definition:t};const r=t?.apply.kind==="daemon-settings-update"?t.apply.path:e,n=await fe.settings.get(r);if(t){if(n&&(n.proposable===!1||n.sensitive===!0))throw new xo(e);return{kind:"app-daemon",definition:t,entry:n}}if(!n||n.path!==e||!Fa.has(n.type))return{kind:"unknown"};if(!Ga(n))throw new xo(e);return{kind:"daemon",definition:ja(n),entry:n}}async function Gb(e){const t=Ba(e);if(t)return t;try{const r=await fe.settings.get(e);return!r||r.path!==e||!Ga(r)||!Fa.has(r.type)?void 0:ja(r)}catch{return}}function F_(e){return e.payload}function G_(e,t,r){const n=e.editedFields[t.path];if(n===void 0)return t.value;if(r?.nullable===!0&&n==="")return null;if(!r||r.type==="string"||r.type==="enum")return n;if(r.type==="boolean")return n===!0||n==="true";if(r.type==="number"){const i=Number(n);return Number.isFinite(i)?i:t.value}try{return JSON.parse(String(n))}catch{return t.value}}function rt(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function fi(e,t){return t?t.split(".").reduce((r,n)=>{if(!(!r||typeof r!="object"))return r[n]},e):e}function j_(e,t){if(e!=null){if(t.type==="boolean"){if(e==="true")return!0;if(e==="false")return!1}if(t.type==="number"){const r=Number(e);return Number.isFinite(r)?r:void 0}if(t.valuePath||["object","array","status","readonly"].includes(t.type))try{return JSON.parse(e)}catch{return}return e}}function U_(e){if(e===void 0)return null;if(e===null||typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;try{return JSON.parse(JSON.stringify(e))}catch{return String(e)}}function Ua(e){return e instanceof Error?e.message:String(e||me.chat_settingsProposalActions_unknownError_fallback())}async function q_(e){if(!e.storageKey)return e.defaultValue;const t=await fe.settings.get(e.storageKey);return fi(t?.value,e.valuePath)??e.defaultValue}const z_=new Set(["workspaces-active-provider","workspace-list:completedProviderSetup"]);function qa(e){return z_.has(e)?Cu(e,Au(E.state)):e}function W_(e){if(typeof window>"u"||!e.storageKey)return e.defaultValue;const t=j_(window.localStorage.getItem(qa(e.storageKey)),e);return fi(t,e.valuePath)??e.defaultValue}async function H_(e,t,r){if(!t&&r===null){if(!await fe.settings.reset(e))throw new Error(`Could not clear setting "${e}"`);return}if(!t){await fe.settings.update([{path:e,value:r}]);return}const n=await fe.settings.get(e),o={...rt(n?.value),[t]:r};await fe.settings.update([{path:e,value:o}])}function Do(e,t){if(typeof window>"u")return;const r=qa(e);if(t==null){window.localStorage.removeItem(r);return}window.localStorage.setItem(r,JSON.stringify(t))}async function K_(e){const{definition:t}=e;if(e.kind==="daemon")return e.entry.value??null;const r=E.state;switch(t.path){case"preferences.updateChannel":return gc.select(r);case"preferences.spellcheckEnabled":return mc.select(r);case"appearance.chatAurora":return fc.select(r);case"appearance.shellTransparency":return hc.select(r);case"appearance.pauseAnimationsWhenUnfocused":return pc.select(r);case"labs.remoteAgents":return dc.select(r);case"labs.plainFolderWorkspaces":return cc.select(r);case"labs.tabGroups":return uc.select(r);case"labs.cloudMachines":return lc.select(r);case"workspaceList.showArchived":return ac.select(r);case"workspaceList.groupByRepo":return sc.select(r);case"providers.completedSetup":return oc.select(r);case"preferences.language":return ic.select(r);case"theme.preference":return Uu.select(r);case"theme.activePresetId":return ju.select(r);case"model.default":return Ou.select(r);case"model.defaultProvider":return Pu.select(r);case"providers.enabled":return Lu.select(r);case"notifications.enabled":return nc.select(r);case"notifications.soundEnabled":return rc.select(r);case"notifications.soundOnlyWhenUnfocused":return tc.select(r);case"notifications.volume":return ec.select(r);case"quickActions.defaultReasoningEffort":return Ku.select(r);case"quickActions.typeReasoningEffortOverrides":return Hu.select(r);case"quickActions.defaultModel":return Wu.select(r);case"quickActions.typeOverrides":return zu.select(r);case"fonts.agent":return Yu.select(r);case"fonts.notes":return Zu.select(r);case"fonts.code":return Ju.select(r);case"ui.editor":return{lineWrapping:bu.select(r),foldUnchanged:yu.select(r),diffSideBySide:_u.select(r),diffIndicators:gu.select(r)};case"ui.layout":return{spacesSidebarWidth:mu.select(r),spacesSidebarCollapsed:fu.select(r),tabbedSidebarPinned:hu.select(r),sidebarSide:pu.select(r)};case"ui.workspaceLeftPanel.collapsed":return du.select(r);case"openIn.defaultAction":return $u.select(r);case"openIn.editorOrder":return Mu.select(r);case"githubLinks.defaultAction":return Xu.select(r);case"openIn.hiddenEditors":return Vu.select(r);case"mcp.enableUserServers":return Nu.select(r);case"mcp.disabledServers":return Object.keys(Du.select(r));default:return e.kind==="app-daemon"&&e.entry?fi(e.entry.value,t.valuePath)??t.defaultValue:t.source==="daemon-settings"?q_(t):t.source==="local-storage"?W_(t):t.defaultValue}}function Q_(e){return e==="light"||e==="dark"||e==="system"}function X_(e){return e==="sans"||e==="monospace"}function J_(e){return e==="sans"||e==="serif"||e==="monospace"}function Z_(e,t){switch(e){case"preferences.updateChannel":return vu(t)?(E.dispatch(lu(t)),!0):!1;case"preferences.spellcheckEnabled":return E.dispatch(au(!!t)),!0;case"appearance.chatAurora":return E.dispatch(su(!!t)),!0;case"appearance.shellTransparency":return E.dispatch(ou(!!t)),!0;case"appearance.pauseAnimationsWhenUnfocused":return typeof t!="boolean"?!1:(E.dispatch(iu(t)),!0);case"labs.remoteAgents":return typeof t!="boolean"?!1:(E.dispatch(nu(t)),!0);case"labs.plainFolderWorkspaces":return typeof t!="boolean"?!1:(E.dispatch(ru(t)),!0);case"labs.tabGroups":return typeof t!="boolean"?!1:(E.dispatch(tu(t)),!0);case"labs.cloudMachines":return typeof t!="boolean"?!1:(E.dispatch(eu(t)),!0);case"workspaceList.showArchived":return E.dispatch(Yl(!!t)),!0;case"workspaceList.groupByRepo":return E.dispatch(Zl(!!t)),!0;case"providers.completedSetup":return E.dispatch(Jl(!!t)),!0;case"preferences.language":return E.dispatch(Xl(String(t??""))),!0;case"theme.preference":return Q_(t)?(E.dispatch(Ql(t)),!0):!1;case"theme.activePresetId":return t===null?(E.dispatch(Hl()),!0):(E.dispatch(Kl(String(t))),!0);case"model.default":return Qn(e,t),E.dispatch(Wl(String(t??""))),!0;case"model.defaultProvider":return Qn(e,t),E.dispatch(zl(String(t??""))),!0;case"providers.enabled":{const r=Qu.select(E.state);for(const[n,i]of Object.entries(rt(t)))!i&&r[n]||E.dispatch(ql({providerId:n,enabled:!!i}));return!0}case"notifications.enabled":return E.dispatch(Ul(!!t)),!0;case"notifications.soundEnabled":return E.dispatch(jl(!!t)),!0;case"notifications.soundOnlyWhenUnfocused":return E.dispatch(Gl(!!t)),!0;case"notifications.volume":{const r=Number(t);return Number.isFinite(r)?(E.dispatch(Fl(r)),!0):!1}case"quickActions.defaultReasoningEffort":return E.dispatch(Bl(String(t??""))),!0;case"quickActions.typeReasoningEffortOverrides":return E.dispatch($l(Object.fromEntries(Object.entries(rt(t)).map(([r,n])=>[r,String(n??"")])))),!0;case"quickActions.defaultModel":return E.dispatch(Ml(String(t??""))),!0;case"quickActions.typeOverrides":for(const[r,n]of Object.entries(rt(t)))E.dispatch(Vl({type:r,model:String(n??"")}));return!0;case"fonts.agent":return X_(t)?(E.dispatch(Nl(t)),!0):!1;case"fonts.notes":return J_(t)?(E.dispatch(Dl(t)),!0):!1;case"fonts.code":return E.dispatch(xl(String(t??""))),!0;case"ui.editor":{const r=rt(t);return"lineWrapping"in r&&E.dispatch(Rl(!!r.lineWrapping)),"foldUnchanged"in r&&E.dispatch(Ll(!!r.foldUnchanged)),"diffSideBySide"in r&&E.dispatch(Pl(!!r.diffSideBySide)),"diffIndicators"in r&&E.dispatch(Ol(!!r.diffIndicators)),!0}case"ui.layout":{const r=rt(t);return typeof r.spacesSidebarWidth=="number"&&Number.isFinite(r.spacesSidebarWidth)&&E.dispatch(Cl(r.spacesSidebarWidth)),"spacesSidebarCollapsed"in r&&E.dispatch(Al(!!r.spacesSidebarCollapsed)),"tabbedSidebarPinned"in r&&E.dispatch(Il(!!r.tabbedSidebarPinned)),(r.sidebarSide==="left"||r.sidebarSide==="right")&&E.dispatch(Tl(r.sidebarSide)),!0}case"ui.workspaceLeftPanel.collapsed":return E.dispatch(Sl(!!t)),!0;case"openIn.defaultAction":return E.dispatch(wl(String(t??""))),!0;case"githubLinks.defaultAction":return tl(t)?(E.dispatch(vl(t)),!0):!1;default:return!1}}async function za(e,t,r){if(!r)throw new Error(me.chat_settingsProposalActions_unknownSetting_error({path:e}));if(r.kind==="read-only")throw new Error(me.chat_settingsProposalActions_readOnlySetting_error({path:e}));if(!Z_(e,t)){if(r.kind==="redux-action")throw new Error(`Invalid value for setting "${e}": ${JSON.stringify(t)}`);if(r.kind==="daemon-settings-update"){await H_(r.path,r.valuePath,t),e==="mcp.enableUserServers"&&E.dispatch(_l(!!t)),e==="mcp.disabledServers"&&Array.isArray(t)&&E.dispatch(yl(Object.fromEntries(t.map(n=>[String(n),!0]))));return}if(r.kind==="local-storage-set"){if(e==="openIn.editorOrder"){if(!Array.isArray(t))throw new Error(`Invalid value for setting "${e}": ${JSON.stringify(t)}`);const n=bl(t);Do(r.key,n),E.dispatch(El(n));return}Do(r.key,t),e==="openIn.hiddenEditors"&&Array.isArray(t)&&E.dispatch(kl(t.map(String)));return}throw new Error(me.chat_settingsProposalActions_unsupportedPlan_error({path:e,kind:r.kind}))}}async function Y_(e,t){const r=await B_(e.path);if(r.kind==="unknown")return{...e,value:t(e,void 0),rollback:null};const{definition:n}=r,i=n.apply,o=await K_(r);return{...e,value:t(e,n),apply:i,rollback:{path:e.path,value:U_(o),apply:i}}}async function ey(e){const t=[];for(const r of[...e].reverse())if(r.rollback)try{await za(r.rollback.path,r.rollback.value,r.rollback.apply)}catch(n){t.push(`${r.rollback.path}: ${Ua(n)}`)}return t}function Qn(e,t){const r=e==="model.defaultProvider"?String(t??""):e==="model.default"?Xn(String(t??"")).providerId:void 0;if(r&&xu(E.state.backgroundAgentSettings,r))throw new Error(me.settings_backgroundAgent_legacySwitch_error({provider:r}))}async function Wa(e,t,r=n=>n.value){const n=[],i=[];try{for(const o of e)n.push(await Y_(o,r));for(const o of n)Qn(o.path,o.value);for(const o of n)await za(o.path,o.value,o.apply),i.push(o)}catch(o){const s=await ey(i),a=`${t}: ${Ua(o)}`;throw s.length>0?new Error(`${a}; rollback failed for ${s.join(", ")}`):new Error(a)}return n.map(o=>o.rollback).filter(o=>o!==null)}function jb(e){if(e.proposal.kind!=="settings-change")return!1;const t=hi(e.proposal);return E.dispatch(Bo({proposalId:t,kind:"settings-change",detail:e})),!0}async function Ub(e){if(e.proposal.kind!=="settings-change")throw new Error("applySettingsProposalWork requires a settings-change proposal");const t=F_(e.proposal).changes;return{reverseChanges:await Wa(t.map(n=>({path:n.path,value:n.value})),me.chat_settingsProposalActions_applyFailed_label(),(n,i)=>G_(e,n,i))}}async function ty(e){await Wa(e,me.chat_settingsProposalActions_undoFailed_label())}async function qb(e){await ty(e)}function zb(e){const t=E;return O_.select(E.state,e)?(t.dispatch($o({proposalId:e,kind:"settings-change"})),!0):!1}function ry(e,t){return e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/[’']/g,"").replace(/[^a-z0-9]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")||t?.fallback||""}function ny(e,t,r){const n=ry(e,{fallback:"specialist"}),i=t instanceof Set?t:new Set(t);if(!i.has(n))return n;let o=2;for(;i.has(`${n}-${o}`);)o+=1;return`${n}-${o}`}function Ha(e){return e.payload}function nr(e,t,r,n=""){const i=t.editedFields[r];if(i!==void 0)return typeof i=="string"?i:String(i??"");const o=Ha(e)[r];return typeof o=="string"?o:n}function iy(e,t){if(!t)return;const r=Tu.select(e,t);return r?.path??r?.worktreePath??r?.repositoryPath}function oy(e,t){return e==="project"||e==="user"?e:t??"user"}function sy(e,t,r,n,i,o,s){return{id:t,name:r.name,description:r.description,codingAgent:n?.codingAgent??r.codingAgent??qo.select(e,t,s),model:n?.model??r.defaultModel??jo.select(e,t,s),roleReminder:n?.roleReminder??r.roleReminder,behaviorPrompt:n?.behaviorPrompt??Uo.select(e,t,s),scope:i,workspacePath:o,workspaceId:s}}async function ay(e){const{navigateToSettings:t}=await p(async()=>{const{navigateToSettings:r}=await import("./C4Zy0P7R.js").then(n=>n.w);return{navigateToSettings:r}},__vite__mapDeps([125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153]),import.meta.url);await t({tab:"agents",specialist:e})}function Wb(e){const{proposal:t}=e;if(t.kind!=="specialist-edit")return!1;const r=hi(t);return E.dispatch(Bo({proposalId:r,kind:"specialist-edit",detail:e})),!0}async function Hb(e){const{proposal:t}=e;if(t.kind!=="specialist-edit")throw new Error("applySpecialistProposalWork requires a specialist-edit proposal");const r=E.state,n=Ha(t),i=n.operation??n.action??"edit",o=n.scope==="project"?e.workspaceId:void 0,s=Bu.select(r,o),a=typeof n.id=="string"?n.id:"",l=a?s.find(O=>O.id===a):void 0,u=nr(t,e,"name",l?.name??"").trim(),d=a||ny(u||"specialist",s.map(O=>O.id)),c=Fu.select(r,d,o),h=oy(n.scope,c?.source),f=h==="project"?e.workspaceId:void 0,m=h==="project"?iy(r,f):void 0,b=i==="create"?{kind:"delete",id:d,scope:h,workspacePath:m,workspaceId:f}:l?{kind:"save",specialist:sy(r,d,l,c,h,m,f)}:{kind:"delete",id:d,scope:h,workspacePath:m,workspaceId:f};if(i==="delete")return await E.dispatch(Fo({id:d,scope:h,workspacePath:m,workspaceId:f})),{reverse:b};const v=l?jo.select(r,l.id,f):Gu.select(r,f),_=nr(t,e,"model",v).trim(),{providerId:y,modelId:k}=Xn(_),S=Iu.select(r,f),C=y||S,A=nr(t,e,"description",l?.description??me.settings_aiBehavior_customSpecialistFallback()).trim(),I=nr(t,e,"prompt",l?Uo.select(r,l.id,f):""),P=Go({id:d,name:u,description:A||me.settings_aiBehavior_customSpecialistFallback(),codingAgent:y||(n.codingAgent??(l?qo.select(r,l.id,f):C)),model:k,roleReminder:n.roleReminder??l?.roleReminder,behaviorPrompt:I,scope:h,workspacePath:m,workspaceId:f});return await E.dispatch(P),i==="create"&&await ay(d),{reverse:b}}async function Kb(e){if(e.kind==="delete"){const{id:t,scope:r,workspacePath:n,workspaceId:i}=e;await E.dispatch(Fo({id:t,scope:r,workspacePath:n,workspaceId:i}));return}await E.dispatch(Go(e.specialist))}function Qb(e){return x_.select(E.state,e)?(E.dispatch($o({proposalId:e,kind:"specialist-edit"})),!0):!1}function Xb(e,t){if(!e)return{model:void 0,provider:t};const{providerId:r,modelId:n}=Xn(e);return{model:n||void 0,provider:r||t}}export{Ce as $,Cr as A,Jy as B,Iy as C,Gy as D,Uy as E,Ly as F,Ty as G,xy as H,Py as I,hb as J,Xy as K,Qy as L,Ky as M,Ke as N,Hy as O,va as P,Gg as Q,kn as R,Ry as S,Vy as T,My as U,Ba as V,Fb as W,ny as X,En as Y,Bb as Z,qr as _,Ny as a,Qb as a$,Wy as a0,Hn as a1,Lt as a2,Sr as a3,nb as a4,rb as a5,hi as a6,ob as a7,pn as a8,ir as a9,vb as aA,lb as aB,Wg as aC,Xb as aD,Rb as aE,db as aF,g_ as aG,pb as aH,Ib as aI,Tb as aJ,m_ as aK,O_ as aL,Nb as aM,Vb as aN,xb as aO,$b as aP,Mb as aQ,Db as aR,y_ as aS,Pb as aT,x_ as aU,Ob as aV,C_ as aW,yh as aX,Lb as aY,zb as aZ,qb as a_,Lg as aa,zr as ab,ib as ac,Zy as ad,Yy as ae,eb as af,Eb as ag,ub as ah,sb as ai,tb as aj,mb as ak,_o as al,xg as am,Gb as an,Oo as ao,Ab as ap,v_ as aq,kb as ar,gb as as,bb as at,_b as au,P_ as av,cb as aw,Sb as ax,pi as ay,wb as az,jy as b,Kb as b0,pr as c,Fy as d,By as e,$y as f,Ay as g,Ta as h,Dy as i,Oy as j,ab as k,Cy as l,yb as m,jb as n,Ub as o,Wb as p,Hb as q,Xt as r,Ag as s,Ig as t,Wo as u,$m as v,li as w,fb as x,Bt as y,Cb as z};
|