@intent-hq/web 2.384.2 → 2.385.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/{CBvkahdk.js → -9EwpXCb.js} +1 -1
- package/web/app/immutable/chunks/{D5u143LD.js → 0Ipp5cFr.js} +1 -1
- package/web/app/immutable/chunks/{6n7e2aNB.js → 3qVSmuIV.js} +1 -1
- package/web/app/immutable/chunks/{CbDsELcV.js → 3xVgojWv.js} +3 -3
- package/web/app/immutable/chunks/{BZidc-yX.js → 418Agcsp.js} +1 -1
- package/web/app/immutable/chunks/{CNzCvSR9.js → 44rP4fzJ.js} +1 -1
- package/web/app/immutable/chunks/{BTtAt-Pu.js → 4PAYwk2I.js} +1 -1
- package/web/app/immutable/chunks/{DXdFemRu.js → 4g_iHoQm.js} +1 -1
- package/web/app/immutable/chunks/{CXul4WJt.js → 5-0LQoqd.js} +1 -1
- package/web/app/immutable/chunks/{BTc_j7Dt.js → 7KxcPj98.js} +1 -1
- package/web/app/immutable/chunks/{CpMQqUEz.js → 7OH6WUSt.js} +1 -1
- package/web/app/immutable/chunks/{BwLxx4IG.js → 7y3Z0Q49.js} +3 -3
- package/web/app/immutable/chunks/{B4mHWFlW.js → 8jMQM9h0.js} +1 -1
- package/web/app/immutable/chunks/{xmnalplU.js → 94vL4WlW.js} +1 -1
- package/web/app/immutable/chunks/{BVlMQ1xQ.js → 9GO97JAL.js} +1 -1
- package/web/app/immutable/chunks/{CpimfPxg.js → A0KsbysW.js} +1 -1
- package/web/app/immutable/chunks/{DaXosNFA.js → B0qb2Ymj.js} +1 -1
- package/web/app/immutable/chunks/{k863GLf6.js → B2CniqS1.js} +1 -1
- package/web/app/immutable/chunks/{MsC14vMO.js → B3SHGkI_.js} +1 -1
- package/web/app/immutable/chunks/{CmImGhNY.js → B433f4mk.js} +1 -1
- package/web/app/immutable/chunks/{55FYKQCf.js → B5qiyEpH.js} +1 -1
- package/web/app/immutable/chunks/{BNN0vAFF.js → B5tvpTFB.js} +1 -1
- package/web/app/immutable/chunks/{CE0jr9sE.js → B6FGs8l2.js} +1 -1
- package/web/app/immutable/chunks/{Di3TE7pQ.js → B6d1Nolc.js} +1 -1
- package/web/app/immutable/chunks/{B4PfEXaO.js → B6eTPmJH.js} +1 -1
- package/web/app/immutable/chunks/{Ipu7_2rx.js → B72XM8Fm.js} +1 -1
- package/web/app/immutable/chunks/{B7JHU89G.js → B8HnjSSF.js} +1 -1
- package/web/app/immutable/chunks/{xeMXLCBg.js → B8QvP_8b.js} +1 -1
- package/web/app/immutable/chunks/{I8XhKsSY.js → BByf3ILj.js} +1 -1
- package/web/app/immutable/chunks/{leDczq9h.js → BD9db4FR.js} +1 -1
- package/web/app/immutable/chunks/{DLvrhtSt.js → BDsciJGp.js} +1 -1
- package/web/app/immutable/chunks/{X-wIiWCo.js → BECK4OaG.js} +1 -1
- package/web/app/immutable/chunks/{qLxI2L63.js → BGReMCaT.js} +1 -1
- package/web/app/immutable/chunks/{BAdVoGAI.js → BHqp2vwo.js} +1 -1
- package/web/app/immutable/chunks/{CIU_APaR.js → BIGqOuh0.js} +1 -1
- package/web/app/immutable/chunks/{DilOhRAO.js → BJO0de_7.js} +1 -1
- package/web/app/immutable/chunks/{BDPP0w0q.js → BJgwBOBz.js} +1 -1
- package/web/app/immutable/chunks/{DxDZbRkP.js → BLKFshyr.js} +1 -1
- package/web/app/immutable/chunks/{BcffwE-d.js → BNV0s95-.js} +1 -1
- package/web/app/immutable/chunks/{D2Rapl2X.js → BNa9zzEx.js} +1 -1
- package/web/app/immutable/chunks/{CVoQx6Vw.js → BO8Bp7Ht.js} +1 -1
- package/web/app/immutable/chunks/{rNjiZ_3W.js → BPuz5cN_.js} +2 -2
- package/web/app/immutable/chunks/{CgJXgMzB.js → BQ53265L.js} +1 -1
- package/web/app/immutable/chunks/{DN-MAVuE.js → BQvwLP7I.js} +1 -1
- package/web/app/immutable/chunks/{Bygp72Wl.js → BSUnflvl.js} +1 -1
- package/web/app/immutable/chunks/{Df4fyHSB.js → BSgFpkqa.js} +1 -1
- package/web/app/immutable/chunks/{BOpszErG.js → BSntxgH1.js} +1 -1
- package/web/app/immutable/chunks/{NZ_vlsKe.js → BTEoQf52.js} +1 -1
- package/web/app/immutable/chunks/{jiLgt56M.js → BTLG1BY-.js} +1 -1
- package/web/app/immutable/chunks/{Cb6nJOfB.js → BV1ayWTC.js} +1 -1
- package/web/app/immutable/chunks/{_0LhNaan.js → BV4VuEnO.js} +1 -1
- package/web/app/immutable/chunks/{CIzFSDuO.js → BVkAOJlr.js} +1 -1
- package/web/app/immutable/chunks/{Bosi029J.js → BVl79jmM.js} +1 -1
- package/web/app/immutable/chunks/{Bw8_vMki.js → BVqF0sgN.js} +1 -1
- package/web/app/immutable/chunks/{iVHs_bWz.js → BVuLEX_p.js} +1 -1
- package/web/app/immutable/chunks/{uAXEbxa8.js → BW1iql_y.js} +1 -1
- package/web/app/immutable/chunks/{DZnKNdAN.js → BWzMAxc1.js} +1 -1
- package/web/app/immutable/chunks/{DDnDtSlm.js → BXJzIaQM.js} +1 -1
- package/web/app/immutable/chunks/{CbucW-av.js → BYl8t9od.js} +1 -1
- package/web/app/immutable/chunks/{D4ZMSrvm.js → BZVhwNIm.js} +3 -3
- package/web/app/immutable/chunks/{Mh0PqgbP.js → B_4WsP9b.js} +1 -1
- package/web/app/immutable/chunks/{D5-RCLzi.js → B_75gRww.js} +1 -1
- package/web/app/immutable/chunks/{CQZUFyS7.js → BbLh3POL.js} +1 -1
- package/web/app/immutable/chunks/{D5q2XDzo.js → BbuLzldI.js} +1 -1
- package/web/app/immutable/chunks/{72S4_8Fo.js → Bc1vJq_Z.js} +1 -1
- package/web/app/immutable/chunks/{BTtqZJEI.js → BcKrkXju.js} +1 -1
- package/web/app/immutable/chunks/{6kZoubzS.js → BdEtT3Ti.js} +1 -1
- package/web/app/immutable/chunks/{BXE_7Biv.js → Bf_nrOhg.js} +1 -1
- package/web/app/immutable/chunks/{CwHPdS9l.js → BgDnzAo4.js} +1 -1
- package/web/app/immutable/chunks/{0tWsVa0y.js → Bi_Yd73A.js} +1 -1
- package/web/app/immutable/chunks/{CEjK2ich.js → BjlMkd10.js} +1 -1
- package/web/app/immutable/chunks/{RWWlGLMu.js → BlIRL_82.js} +1 -1
- package/web/app/immutable/chunks/{Ciei8d6b.js → Bs7M8kXA.js} +3 -3
- package/web/app/immutable/chunks/{CMbvNZma.js → BtBQ5qfh.js} +1 -1
- package/web/app/immutable/chunks/{CcmN1reb.js → Bu-RLSv9.js} +1 -1
- package/web/app/immutable/chunks/{CXrVII1G.js → BuFDqZnJ.js} +1 -1
- package/web/app/immutable/chunks/{CJoPlWyA.js → Bv_xG3nA.js} +1 -1
- package/web/app/immutable/chunks/{Djz9uuuA.js → BvbeTrka.js} +1 -1
- package/web/app/immutable/chunks/{DkET5D1Z.js → BvgjsneA.js} +1 -1
- package/web/app/immutable/chunks/{4jB5IsVV.js → BwPwF85e.js} +1 -1
- package/web/app/immutable/chunks/{B4l71ix-.js → By4iSN8L.js} +1 -1
- package/web/app/immutable/chunks/{CU_25eHm.js → BzSCTZkL.js} +1 -1
- package/web/app/immutable/chunks/{IxfPVMNO.js → C-G2u0Oe.js} +1 -1
- package/web/app/immutable/chunks/{DpeQIGDn.js → C-L0-C2F.js} +2 -2
- package/web/app/immutable/chunks/{0v4yIgtg.js → C-PQQ8rb.js} +1 -1
- package/web/app/immutable/chunks/{D400ElMz.js → C-zB-6G6.js} +1 -1
- package/web/app/immutable/chunks/{YtoDeXhM.js → C0Zo7HuP.js} +1 -1
- package/web/app/immutable/chunks/{ump_SWLl.js → C1AUaRa8.js} +1 -1
- package/web/app/immutable/chunks/{COB2k0Aa.js → C2F2Vd1P.js} +1 -1
- package/web/app/immutable/chunks/{Bm6FDHvN.js → C2WwQCOk.js} +1 -1
- package/web/app/immutable/chunks/{YTt0B0lA.js → C37ZqG4e.js} +1 -1
- package/web/app/immutable/chunks/{D0sQr-H_.js → C429ZMSU.js} +1 -1
- package/web/app/immutable/chunks/{C6g7LzDB.js → C50zlWbZ.js} +1 -1
- package/web/app/immutable/chunks/{4oPBEC4-.js → C5b7nimj.js} +1 -1
- package/web/app/immutable/chunks/{CmbheRhJ.js → C63WwVct.js} +1 -1
- package/web/app/immutable/chunks/{Za_i3D8P.js → C6TTEdST.js} +4 -4
- package/web/app/immutable/chunks/{Bap7o4n5.js → C78AfvXn.js} +1 -1
- package/web/app/immutable/chunks/{CJW4jhjq.js → C8LrJXqa.js} +1 -1
- package/web/app/immutable/chunks/C8qAflad.js +2 -0
- package/web/app/immutable/chunks/{B7h1ZmQS.js → C8zl7aIj.js} +1 -1
- package/web/app/immutable/chunks/{Bb9tq6rt.js → C9ew0Hx2.js} +1 -1
- package/web/app/immutable/chunks/{DpChblex.js → C9p4fddz.js} +1 -1
- package/web/app/immutable/chunks/{C0fFeGdB.js → CAfPEsZt.js} +1 -1
- package/web/app/immutable/chunks/{CBZTF7Qa.js → CC-IHSah.js} +4 -4
- package/web/app/immutable/chunks/CCIZBeez.js +1 -0
- package/web/app/immutable/chunks/{BhVPbMnV.js → CD-M_2xD.js} +1 -1
- package/web/app/immutable/chunks/{cKonll34.js → CDAnHxmJ.js} +1 -1
- package/web/app/immutable/chunks/{Dfh8DRT0.js → CE70-gZI.js} +3 -3
- package/web/app/immutable/chunks/{AYsHMWH3.js → CEEUgGO1.js} +1 -1
- package/web/app/immutable/chunks/{BYU-C1jV.js → CGPajdHq.js} +2 -2
- package/web/app/immutable/chunks/{DETS1-K4.js → CGYPBD6G.js} +1 -1
- package/web/app/immutable/chunks/{C0CrTfQC.js → CHto7_WH.js} +1 -1
- package/web/app/immutable/chunks/{KMO8sO00.js → CI0C7_h-.js} +1 -1
- package/web/app/immutable/chunks/{CHMwcoWM.js → CIaruUrd.js} +1 -1
- package/web/app/immutable/chunks/{BzqJYEOZ.js → CJB-ebPL.js} +1 -1
- package/web/app/immutable/chunks/{DJM7b4MF.js → CN-EAu8o.js} +1 -1
- package/web/app/immutable/chunks/{CYQKXGJn.js → CNE5cVvC.js} +1 -1
- package/web/app/immutable/chunks/{CegXgKbh.js → CNSshwg_.js} +1 -1
- package/web/app/immutable/chunks/CNWb-jYE.js +1 -0
- package/web/app/immutable/chunks/{BEiVNbJd.js → CNnF3Cms.js} +1 -1
- package/web/app/immutable/chunks/{O63l2zGE.js → COgn_CzG.js} +1 -1
- package/web/app/immutable/chunks/{BWtgRgi0.js → CPI5xBWX.js} +1 -1
- package/web/app/immutable/chunks/{McOgUz0K.js → CPO5_F83.js} +1 -1
- package/web/app/immutable/chunks/{ByYwSpDO.js → CQMFoUkp.js} +1 -1
- package/web/app/immutable/chunks/{BmALJKBY.js → CR-JVxLD.js} +1 -1
- package/web/app/immutable/chunks/{CP9jggxp.js → CRSY1kuo.js} +1 -1
- package/web/app/immutable/chunks/{DpmMYKqt.js → CTW83wJs.js} +1 -1
- package/web/app/immutable/chunks/{Cx6Utm5I.js → CUsqN2sK.js} +1 -1
- package/web/app/immutable/chunks/{DMrypNw-.js → CV2tdNDf.js} +1 -1
- package/web/app/immutable/chunks/{C9fPgzDG.js → CWOQ_pUA.js} +1 -1
- package/web/app/immutable/chunks/{CJHIllR1.js → CX4-Z2NI.js} +1 -1
- package/web/app/immutable/chunks/{CWwAStwx.js → CXDUvPYf.js} +1 -1
- package/web/app/immutable/chunks/{BJZU-qAV.js → CXpEvkVR.js} +1 -1
- package/web/app/immutable/chunks/{_Tye__BB.js → CYSndAne.js} +1 -1
- package/web/app/immutable/chunks/{DnHJL326.js → C_SKcJv7.js} +1 -1
- package/web/app/immutable/chunks/{Ct8L3-dh.js → CdSTecgc.js} +1 -1
- package/web/app/immutable/chunks/{D3qs3VJZ.js → CfYZevDu.js} +1 -1
- package/web/app/immutable/chunks/{BEjISjEF.js → Che-KvdU.js} +1 -1
- package/web/app/immutable/chunks/{CUWtSiZ5.js → Cj1KG0_l.js} +1 -1
- package/web/app/immutable/chunks/{BBV_EtXR.js → Cl_O0hHI.js} +1 -1
- package/web/app/immutable/chunks/{edw8TVSr.js → CletI6Pa.js} +1 -1
- package/web/app/immutable/chunks/{CwTWayd0.js → Clo7aK1n.js} +1 -1
- package/web/app/immutable/chunks/{BCx-pM-8.js → CmyBYYR3.js} +1 -1
- package/web/app/immutable/chunks/{CWezNj5-.js → CoJyxFcH.js} +1 -1
- package/web/app/immutable/chunks/{DCP9TL-A.js → Cp02CBjf.js} +1 -1
- package/web/app/immutable/chunks/{BaJfBXet.js → Cp7Byf5d.js} +1 -1
- package/web/app/immutable/chunks/{C4IVoYqo.js → CpFDUMBH.js} +1 -1
- package/web/app/immutable/chunks/{BK6CZrM5.js → CqUPwDgo.js} +1 -1
- package/web/app/immutable/chunks/{DKrlwauu.js → CqVGtsXz.js} +1 -1
- package/web/app/immutable/chunks/{4QXQvR4H.js → Cq_jjcoF.js} +1 -1
- package/web/app/immutable/chunks/{DnozpXMO.js → CrbAS4DB.js} +1 -1
- package/web/app/immutable/chunks/{DXB4L22V.js → CrsbEWnE.js} +1 -1
- package/web/app/immutable/chunks/{DV6uX7ff.js → CrvVM5aL.js} +1 -1
- package/web/app/immutable/chunks/{DOuyIvfN.js → CuPx_r7k.js} +1 -1
- package/web/app/immutable/chunks/{D6Hf6lXy.js → CuWLpCl5.js} +1 -1
- package/web/app/immutable/chunks/{BGaOyp5o.js → CuljOS_X.js} +1 -1
- package/web/app/immutable/chunks/{BhpCwvYl.js → Cv0wEzuo.js} +1 -1
- package/web/app/immutable/chunks/Cw-qJqDx.js +2 -0
- package/web/app/immutable/chunks/{oTjaecL9.js → Cx0QXTIW.js} +1 -1
- package/web/app/immutable/chunks/{WWSsQ21S.js → CxndkliV.js} +1 -1
- package/web/app/immutable/chunks/{2bsrY56g.js → Cy3lhXYa.js} +6 -6
- package/web/app/immutable/chunks/{BD47nZkr.js → Cy9hcA7q.js} +1 -1
- package/web/app/immutable/chunks/{BHKaBN6i.js → CzDPvHAo.js} +1 -1
- package/web/app/immutable/chunks/{Df-2xtN9.js → D-KE4WZ3.js} +1 -1
- package/web/app/immutable/chunks/{CjZEyjv4.js → D-rRuAXZ.js} +1 -1
- package/web/app/immutable/chunks/{Dk0Z1pVU.js → D1zX4MuR.js} +1 -1
- package/web/app/immutable/chunks/{Dm9EHXJZ.js → D2hNxvgD.js} +4 -4
- package/web/app/immutable/chunks/{BGN0Ete3.js → D2kwjrZB.js} +1 -1
- package/web/app/immutable/chunks/{oki3b9jv.js → D5Pfy-wQ.js} +1 -1
- package/web/app/immutable/chunks/{DTU57FsX.js → D7Dfbf5g.js} +1 -1
- package/web/app/immutable/chunks/{CCAcpS1o.js → D7xjMCds.js} +2 -2
- package/web/app/immutable/chunks/{CdMAY9xp.js → DBH_GMOZ.js} +1 -1
- package/web/app/immutable/chunks/{CPel99qV.js → DDb9H7X6.js} +3 -3
- package/web/app/immutable/chunks/{DfOxl3xY.js → DEs9kPtf.js} +1 -1
- package/web/app/immutable/chunks/{DoStKyYK.js → DFGMgfIk.js} +2 -2
- package/web/app/immutable/chunks/{CceLSCZq.js → DG0pBglL.js} +1 -1
- package/web/app/immutable/chunks/{DhHLTWgE.js → DGMrUmNq.js} +1 -1
- package/web/app/immutable/chunks/{CvxVjZLu.js → DI71nFp4.js} +1 -1
- package/web/app/immutable/chunks/{AXE1aiRo.js → DJPIUVkw.js} +1 -1
- package/web/app/immutable/chunks/{BWmYJDmC.js → DLCFUd4s.js} +1 -1
- package/web/app/immutable/chunks/{2V6-Yhg-.js → DM1_VFfD.js} +1 -1
- package/web/app/immutable/chunks/{jmJoSjVa.js → DMe_MB5T.js} +1 -1
- package/web/app/immutable/chunks/{ZNhLMxqQ.js → DN-DN78v.js} +2 -2
- package/web/app/immutable/chunks/{CI-VmE1m.js → DNDlsdj4.js} +1 -1
- package/web/app/immutable/chunks/{wZz1J3UE.js → DOkArUrJ.js} +1 -1
- package/web/app/immutable/chunks/{Bs8vOu-_.js → DPR_clFy.js} +1 -1
- package/web/app/immutable/chunks/{7Em2EC6e.js → DQT1hnTe.js} +1 -1
- package/web/app/immutable/chunks/{BNFLngEB.js → DRqy_Wmb.js} +1 -1
- package/web/app/immutable/chunks/{BPZBxYco.js → DRsDUO-4.js} +1 -1
- package/web/app/immutable/chunks/{D0I7VQ8a.js → DSiGyv9Y.js} +1 -1
- package/web/app/immutable/chunks/{BzllE3aT.js → DT5eV1e8.js} +2 -2
- package/web/app/immutable/chunks/{RzextV4B.js → DTMxJ5IC.js} +2 -2
- package/web/app/immutable/chunks/{DKLk3Wx8.js → DTwG0V2f.js} +1 -1
- package/web/app/immutable/chunks/{CU89eAKc.js → DV7x43jt.js} +1 -1
- package/web/app/immutable/chunks/{Chx7ONT3.js → DVUFgbJK.js} +1 -1
- package/web/app/immutable/chunks/{ez7LBTR9.js → DVwMeV9X.js} +1 -1
- package/web/app/immutable/chunks/{CSIAWhhl.js → DW25Ls6A.js} +1 -1
- package/web/app/immutable/chunks/{BEvFtidS.js → DWa-2rkZ.js} +1 -1
- package/web/app/immutable/chunks/{CRFehAxF.js → DX9N1RQz.js} +1 -1
- package/web/app/immutable/chunks/{DCGl0RXW.js → DXRkYB1Y.js} +47 -47
- package/web/app/immutable/chunks/{DAzQ7i2U.js → DYEwyuIx.js} +1 -1
- package/web/app/immutable/chunks/{BaodMpKG.js → DZmGZ5am.js} +1 -1
- package/web/app/immutable/chunks/{DB4f78Ip.js → D_VvdZe2.js} +1 -1
- package/web/app/immutable/chunks/{BNm3whw0.js → Da-Blgd9.js} +1 -1
- package/web/app/immutable/chunks/{BXT21uPn.js → DcOkWaeN.js} +1 -1
- package/web/app/immutable/chunks/{QFC15GkG.js → De0kCZ4v.js} +2 -2
- package/web/app/immutable/chunks/{CK2Cr1RP.js → Dg0Tdf_A.js} +1 -1
- package/web/app/immutable/chunks/{Cb0AGw5F.js → DgKpR9KC.js} +1 -1
- package/web/app/immutable/chunks/{D2LsUZli.js → DhXcDqZX.js} +1 -1
- package/web/app/immutable/chunks/{DGZLYT-c.js → DiMo2JnB.js} +1 -1
- package/web/app/immutable/chunks/{Jh2BVut2.js → DiURwJNX.js} +1 -1
- package/web/app/immutable/chunks/{gkPeOUJv.js → DjIQY_o5.js} +1 -1
- package/web/app/immutable/chunks/{C5tAJtyd.js → DlU1rxYV.js} +1 -1
- package/web/app/immutable/chunks/{BQ1b28aV.js → DlUpt_0u.js} +1 -1
- package/web/app/immutable/chunks/{BRsOtr8M.js → Dm-WfTCg.js} +1 -1
- package/web/app/immutable/chunks/{Dl9we4aZ.js → DmCKwthV.js} +1 -1
- package/web/app/immutable/chunks/{1MN-thc1.js → Do2KlQU0.js} +1 -1
- package/web/app/immutable/chunks/{2ndYjFQq.js → Dp8FVKoA.js} +1 -1
- package/web/app/immutable/chunks/{BEpYOO0x.js → Dqd75Edx.js} +1 -1
- package/web/app/immutable/chunks/{BqCuw50f.js → DsfORPYa.js} +1 -1
- package/web/app/immutable/chunks/{Cw2ZnpX7.js → DtFzaymP.js} +1 -1
- package/web/app/immutable/chunks/{CcSZrbR4.js → DtqPBHQj.js} +1 -1
- package/web/app/immutable/chunks/{CXCw-Jw-.js → DuAAGnM9.js} +1 -1
- package/web/app/immutable/chunks/{CAmQkXZq.js → Dval4sTX.js} +1 -1
- package/web/app/immutable/chunks/{CJtFSxbf.js → Dvi4g0xk.js} +1 -1
- package/web/app/immutable/chunks/Dws-34a7.js +1 -0
- package/web/app/immutable/chunks/{DaZ7K0cS.js → DxAjMnFs.js} +3 -3
- package/web/app/immutable/chunks/{BdnR40vX.js → DxC0zTSc.js} +1 -1
- package/web/app/immutable/chunks/{B8nUpMEz.js → DxRojUvw.js} +1 -1
- package/web/app/immutable/chunks/{DbDI5c8r.js → Dxfvrgme.js} +1 -1
- package/web/app/immutable/chunks/{BAAb6Ol7.js → DyXAZ9tr.js} +1 -1
- package/web/app/immutable/chunks/{BqU6TsU1.js → DzG7lmwB.js} +1 -1
- package/web/app/immutable/chunks/{Bc3o0U_Z.js → Ex_x2wO5.js} +1 -1
- package/web/app/immutable/chunks/{D4g4334W.js → GP4LXuR4.js} +1 -1
- package/web/app/immutable/chunks/{C0A3yiL9.js → HU1Ksz8U.js} +1 -1
- package/web/app/immutable/chunks/{BvFRd1je.js → JM7CQkWC.js} +1 -1
- package/web/app/immutable/chunks/{Dg5FvxXA.js → KzySRhDw.js} +3 -3
- package/web/app/immutable/chunks/{CJ72QIuX.js → L-Sh3Ble.js} +3 -3
- package/web/app/immutable/chunks/{DOU-V4Cg.js → LI9J8Eor.js} +2 -2
- package/web/app/immutable/chunks/{CGaMCAik.js → LQRHF1eM.js} +1 -1
- package/web/app/immutable/chunks/{DB0jxR-D.js → L_sfch_N.js} +1 -1
- package/web/app/immutable/chunks/{rYnu2FeJ.js → LgyvMkc8.js} +1 -1
- package/web/app/immutable/chunks/{CayjT2l8.js → M1XBe23f.js} +1 -1
- package/web/app/immutable/chunks/{x019Lcmv.js → OGqbAD_O.js} +1 -1
- package/web/app/immutable/chunks/{DZEg_JlV.js → PhAbES0t.js} +1 -1
- package/web/app/immutable/chunks/{ChdMCKvy.js → Q2C1NT93.js} +1 -1
- package/web/app/immutable/chunks/{BaJMqkSd.js → QRUY44Ff.js} +1 -1
- package/web/app/immutable/chunks/{9Bk8hwX5.js → RHSH5iZ7.js} +1 -1
- package/web/app/immutable/chunks/{C9aF-Sor.js → SbTG0nwQ.js} +1 -1
- package/web/app/immutable/chunks/{DltbAw1B.js → THqyVjkf.js} +1 -1
- package/web/app/immutable/chunks/{CyYfX9fz.js → TT8yXpG-.js} +1 -1
- package/web/app/immutable/chunks/{C4VXXfVL.js → U7dpdlAf.js} +1 -1
- package/web/app/immutable/chunks/{H9nIRlnK.js → V6efYFFY.js} +1 -1
- package/web/app/immutable/chunks/{Bcb1iqQJ.js → VeUh5OMZ.js} +1 -1
- package/web/app/immutable/chunks/{DHbqsCcC.js → VvLcPf2a.js} +1 -1
- package/web/app/immutable/chunks/Whej1Dge.js +1 -0
- package/web/app/immutable/chunks/{hcDGwCEP.js → XEsFBJqZ.js} +1 -1
- package/web/app/immutable/chunks/{BziYv9ZW.js → ZR3wQ419.js} +2 -2
- package/web/app/immutable/chunks/{B7RoQL2j.js → _i0M7_-r.js} +2 -2
- package/web/app/immutable/chunks/{DZAKdz0-.js → ada9rZfE.js} +1 -1
- package/web/app/immutable/chunks/{BLZhAOLT.js → deEweluJ.js} +1 -1
- package/web/app/immutable/chunks/{Do6vtrQf.js → dmZv6JOg.js} +1 -1
- package/web/app/immutable/chunks/{DZjKvOyB.js → e2ymG0j7.js} +1 -1
- package/web/app/immutable/chunks/{DLKd3Oyl.js → e3_wv2e_.js} +1 -1
- package/web/app/immutable/chunks/{BJHkJxQ6.js → fHygQTSC.js} +1 -1
- package/web/app/immutable/chunks/{CnHcPhIW.js → fVXs4sxg.js} +4 -4
- package/web/app/immutable/chunks/{CbqBbwIN.js → gU2qspu9.js} +1 -1
- package/web/app/immutable/chunks/{BFc0Rlfo.js → gZJn6Sk0.js} +1 -1
- package/web/app/immutable/chunks/{-J-Hmuck.js → h8JtxU_T.js} +1 -1
- package/web/app/immutable/chunks/{HQDMr2H7.js → iCWz6IE9.js} +1 -1
- package/web/app/immutable/chunks/{h3LTJhAu.js → iPHmrqbo.js} +1 -1
- package/web/app/immutable/chunks/{CbaFGz2w.js → jBG7W4tL.js} +1 -1
- package/web/app/immutable/chunks/{DVL_BM5a.js → jH2J-9un.js} +1 -1
- package/web/app/immutable/chunks/{tF7VK2wM.js → l1lBFBJz.js} +1 -1
- package/web/app/immutable/chunks/{oRcurxpq.js → lTwh0Wzj.js} +1 -1
- package/web/app/immutable/chunks/{DcACHBPs.js → n5-dpvss.js} +1 -1
- package/web/app/immutable/chunks/{DyHx5QFY.js → nwO3KCpP.js} +1 -1
- package/web/app/immutable/chunks/{CjyJQV6j.js → pHBnQb5R.js} +1 -1
- package/web/app/immutable/chunks/{05jEdw2V.js → pMP23LzB.js} +1 -1
- package/web/app/immutable/chunks/{BJTYazIn.js → pomj9evG.js} +1 -1
- package/web/app/immutable/chunks/{mLzVJBUx.js → qO0mYaJv.js} +1 -1
- package/web/app/immutable/chunks/{x_GKKTQV.js → rXKOJqUt.js} +1 -1
- package/web/app/immutable/chunks/rcXEnwTB.js +158 -0
- package/web/app/immutable/chunks/{BXyd6A9p.js → sSXTMg2P.js} +1 -1
- package/web/app/immutable/chunks/{B0fUscDD.js → tLFaYuVN.js} +1 -1
- package/web/app/immutable/chunks/{B7o2QL9R.js → waHi6l7h.js} +1 -1
- package/web/app/immutable/chunks/{DU4sJYad.js → wiGlLVr-.js} +1 -1
- package/web/app/immutable/chunks/{D8s3q34H.js → xGzY0FqC.js} +1 -1
- package/web/app/immutable/chunks/{CCPr9hs_.js → yDmmPu6L.js} +1 -1
- package/web/app/immutable/chunks/{Dv-bjgEk.js → zB9UbdEg.js} +1 -1
- package/web/app/immutable/entry/{app.CHgb5yMQ.js → app.BXfGjD4L.js} +3 -3
- package/web/app/immutable/entry/start.DRVSg-kr.js +1 -0
- package/web/app/immutable/nodes/{0.DECevrtM.js → 0.CoxSTVXk.js} +1 -1
- package/web/app/immutable/nodes/{1.LZZdSQoJ.js → 1.BbjU9IH_.js} +1 -1
- package/web/app/immutable/nodes/10.D6wyP02T.js +39 -0
- package/web/app/immutable/nodes/{11.D5CTYtT6.js → 11.ukc3KQLY.js} +1 -1
- package/web/app/immutable/nodes/{12.iQywXLwT.js → 12.D6rxlIQy.js} +1 -1
- package/web/app/immutable/nodes/{13.m6xe0bMv.js → 13.CHYsmiD_.js} +1 -1
- package/web/app/immutable/nodes/{14.CyaNpqAL.js → 14.mG-YN9pn.js} +3 -3
- package/web/app/immutable/nodes/{15.5st_fzCN.js → 15.CUWA_Nvq.js} +1 -1
- package/web/app/immutable/nodes/{16.MUmBS-bv.js → 16.BsFtzH0D.js} +1 -1
- package/web/app/immutable/nodes/{17.C_k1qpf6.js → 17.me_aOx8O.js} +1 -1
- package/web/app/immutable/nodes/{18.BjTfofOz.js → 18.BO1oZWgm.js} +1 -1
- package/web/app/immutable/nodes/{19.wB7XsK3B.js → 19.D9cBSCEY.js} +2 -2
- package/web/app/immutable/nodes/{2.C7whbYui.js → 2.pGtn3nxM.js} +4 -4
- package/web/app/immutable/nodes/{20.DuDV-BZU.js → 20.LbRPieV_.js} +1 -1
- package/web/app/immutable/nodes/{3.KbBbpAm6.js → 3.Bm-Ewkeu.js} +1 -1
- package/web/app/immutable/nodes/{4.C1b_QyI0.js → 4.bypHtb3m.js} +1 -1
- package/web/app/immutable/nodes/{5.CG-B5vOM.js → 5.YWphdJEW.js} +1 -1
- package/web/app/immutable/nodes/{6.v-GnNHdu.js → 6.DQRfO1Qb.js} +1 -1
- package/web/app/immutable/nodes/{7.D9LU-AZb.js → 7.b1goQuXf.js} +1 -1
- package/web/app/immutable/nodes/{8.BJP_1POW.js → 8.BBgV9gU6.js} +1 -1
- package/web/app/immutable/nodes/{9.f8mHa7_b.js → 9.BJdtENce.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/B8evz7o6.js +0 -2
- package/web/app/immutable/chunks/C0P2MUJp.js +0 -1
- package/web/app/immutable/chunks/D8elUKsb.js +0 -158
- package/web/app/immutable/chunks/DY52XPja.js +0 -2
- package/web/app/immutable/chunks/KU76P7cR.js +0 -1
- package/web/app/immutable/chunks/akx8_VtJ.js +0 -1
- package/web/app/immutable/chunks/hY0rMePc.js +0 -1
- package/web/app/immutable/entry/start.CINDVXKj.js +0 -1
- package/web/app/immutable/nodes/10.KUh1filM.js +0 -39
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Y,bo as a,bw as J,b as X,bp as _e,br as fe,bm as me}from"./hY0rMePc.js";import{bs as Z,bH as le,aD as d,ay as T,a7 as F,bf as re,W as b,bS as de,bn as $,bV as se,aA as n,c9 as y,aB as M,bo as we,a5 as j,bA as Q,bI as Ae,aG as ve,c5 as De,ca as ce,bl as qe,b_ as Ee,bO as Fe,c0 as Le}from"./3SdAC2_C.js";import{t as H}from"./CjZEyjv4.js";import{c as G}from"./BNN0vAFF.js";import{s as Re,i as Ue,f as We}from"./CmbheRhJ.js";import{i as te}from"./BWmYJDmC.js";import{g as Be,e as pe}from"./D400ElMz.js";import{aS as ee,a$ as Me,av as B,H as Ne,az as he,aQ as ze,f as Ge,a1 as He}from"./CIU_APaR.js";import{c as Ke,g as ge,d as je,f as Qe,e as Ye,i as Je,h as Xe}from"./CmImGhNY.js";import{F as Ze,aw as $e}from"./DETS1-K4.js";import{b as oe,e as ie,f as et}from"./leDczq9h.js";import"./rNjiZ_3W.js";import{F as tt,O as rt,a as at,M as nt}from"./D2Rapl2X.js";import{u as ot,b as be,a as lt}from"./BEvFtidS.js";import{c as st,u as it,s as dt}from"./D9tVylVS.js";import"./CbqBbwIN.js";var ut=M("<!> <!>",1);function xe(S,e){if(new.target)return Y({component:xe,...S});Z(e,!0);let m=a(e,"value",15),p=a(e,"onValueChange",7,ee),_=a(e,"name",7,""),c=a(e,"disabled",7,!1),g=a(e,"type",7),v=a(e,"open",15,!1),w=a(e,"onOpenChange",7,ee),C=a(e,"onOpenChangeComplete",7,ee),s=a(e,"loop",7,!1),f=a(e,"scrollAlignment",7,"nearest"),O=a(e,"required",7,!1),L=a(e,"items",23,()=>[]),i=a(e,"allowDeselect",7,!1),x=a(e,"autocomplete",7),k=a(e,"children",7);function W(){m()===void 0&&m(g()==="single"?"":[])}W(),Me.pre(()=>m(),()=>{W()});let A=se("");const R=Ke.create({type:g(),value:B(()=>m(),t=>{m(t),p()(t)}),disabled:B(()=>c()),required:B(()=>O()),open:B(()=>v(),t=>{v(t),w()(t)}),loop:B(()=>s()),scrollAlignment:B(()=>f()),name:B(()=>_()),isCombobox:!1,items:B(()=>L()),allowDeselect:B(()=>i()),inputValue:B(()=>d(A),t=>le(A,t,!0)),onOpenChangeComplete:B(()=>C())});var o={get value(){return m()},set value(t){m(t),n()},get onValueChange(){return p()},set onValueChange(t=ee){p(t),n()},get name(){return _()},set name(t=""){_(t),n()},get disabled(){return c()},set disabled(t=!1){c(t),n()},get type(){return g()},set type(t){g(t),n()},get open(){return v()},set open(t=!1){v(t),n()},get onOpenChange(){return w()},set onOpenChange(t=ee){w(t),n()},get onOpenChangeComplete(){return C()},set onOpenChangeComplete(t=ee){C(t),n()},get loop(){return s()},set loop(t=!1){s(t),n()},get scrollAlignment(){return f()},set scrollAlignment(t="nearest"){f(t),n()},get required(){return O()},set required(t=!1){O(t),n()},get items(){return L()},set items(t=[]){L(t),n()},get allowDeselect(){return i()},set allowDeselect(t=!1){i(t),n()},get autocomplete(){return x()},set autocomplete(t){x(t),n()},get children(){return k()},set children(t){k(t),n()},$set:J,$on:(t,h)=>X(e,t,h)},U=ut(),V=T(U);Ne(V,{children:(t,h)=>{var P=F(),E=T(P);H(E,()=>k()??re),b(t,P)},$$slots:{default:!0}});var l=de(V,2);{var r=t=>{var h=F(),P=T(h);{var E=D=>{ge(D,{get autocomplete(){return x()}})},q=D=>{var N=F(),K=T(N);Be(K,16,()=>R.opts.value.current,z=>z,(z,ae)=>{ge(z,{get value(){return ae},get autocomplete(){return x()}})}),b(D,N)};te(P,D=>{R.opts.value.current.length===0?D(E):D(q,-1)})}b(t,h)},u=y(()=>Array.isArray(R.opts.value.current)),I=t=>{ge(t,{get autocomplete(){return x()},get value(){return R.opts.value.current},set value(h){R.opts.value.current=h}})};te(l,t=>{d(u)?t(r):t(I,-1)})}return b(S,U),$(o)}var ct=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),gt=M("<button><!></button>");function ye(S,e){const m=we();if(new.target)return Y({component:ye,...S});Z(e,!0);let p=a(e,"id",23,()=>he(m)),_=a(e,"ref",15,null),c=a(e,"child",7),g=a(e,"children",7),v=a(e,"type",7,"button"),w=_e(e,ct);const C=je.create({id:B(()=>p()),ref:B(()=>_(),i=>_(i))}),s=y(()=>ze(w,C.props,{type:v()}));var f={get id(){return p()},set id(i=he(m)){p(i),n()},get ref(){return _()},set ref(i=null){_(i),n()},get child(){return c()},set child(i){c(i),n()},get children(){return g()},set children(i){g(i),n()},get type(){return v()},set type(i="button"){v(i),n()},$set:J,$on:(i,x)=>X(e,i,x)},O=F(),L=T(O);return G(L,()=>tt,(i,x)=>{x(i,{get id(){return p()},get ref(){return C.opts.ref},children:(k,W)=>{var A=F(),R=T(A);{var o=V=>{var l=F(),r=T(l);H(r,c,()=>({props:d(s)})),b(V,l)},U=V=>{var l=gt();oe(l,()=>({...d(s)}));var r=j(l);H(r,()=>g()??re),Q(l),b(V,l)};te(R,V=>{c()?V(o):V(U,-1)})}b(k,A)},$$slots:{default:!0}})}),b(S,O),$(f)}var vt=M('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Ce(S,e){const m=we();if(new.target)return Y({component:Ce,...S});Z(e,!0);const p=`${m}-trigger`;let _=se(p),c=a(e,"value",15,""),g=a(e,"open",15,!1),v=a(e,"items",23,()=>[]),w=a(e,"disabled",7,!1),C=a(e,"invalid",7,!1),s=a(e,"required",7,!1),f=a(e,"name",7),O=a(e,"loop",7,!0),L=a(e,"onchange",7),i=a(e,"onopenchange",7),x=a(e,"children",7),k=a(e,"staticPosition",7,!1);Re(()=>{g(!1),i()?.(!1)}),Ae("canonical-select",{get triggerId(){return d(_)},registerTriggerId(o){le(_,o??p,!0)},listboxId:`${m}-listbox`,get value(){return c()},get displayValue(){return v().find(o=>o.value===c())?.label??c()},get invalid(){return C()},get open(){return g()},get staticPosition(){return k()},set open(o){g(o)}});var W={get value(){return c()},set value(o=""){c(o),n()},get open(){return g()},set open(o=!1){g(o),n()},get items(){return v()},set items(o=[]){v(o),n()},get disabled(){return w()},set disabled(o=!1){w(o),n()},get invalid(){return C()},set invalid(o=!1){C(o),n()},get required(){return s()},set required(o=!1){s(o),n()},get name(){return f()},set name(o){f(o),n()},get loop(){return O()},set loop(o=!0){O(o),n()},get onchange(){return L()},set onchange(o){L(o),n()},get onopenchange(){return i()},set onopenchange(o){i(o),n()},get children(){return x()},set children(o){x(o),n()},get staticPosition(){return k()},set staticPosition(o=!1){k(o),n()},$set:J,$on:(o,U)=>X(e,o,U)},A=vt(),R=j(A);return G(R,()=>xe,(o,U)=>{U(o,{type:"single",get items(){return v()},get disabled(){return w()},get required(){return s()},get name(){return f()},get loop(){return O()},get onValueChange(){return L()},get onOpenChange(){return i()},get value(){return c()},set value(V){c(V)},get open(){return g()},set open(V){g(V)},children:(V,l)=>{var r=F(),u=T(r);H(u,()=>x()??re),b(V,r)},$$slots:{default:!0}})}),Q(A),b(S,A),$(W)}var ft=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),mt=M("<!> <!>",1);function Pe(S,e){if(new.target)return Y({component:Pe,...S});Z(e,!0);const m=(l,r)=>{let u=()=>(r?.()).props;const I=y(()=>R(u()));var t=F(),h=T(t);{var P=q=>{var D=F(),N=T(D);H(N,g,()=>({props:d(I)})),b(q,D)},E=q=>{Ge(q,fe(()=>d(I),{get variant(){return d(k)},get active(){return f.open},get class(){return d(W)},children:(D,N)=>{var K=mt(),z=T(K);H(z,()=>c()??re);var ae=de(z,2);{var ue=ne=>{Ze(ne,{get icon(){return $e},class:"size-3 shrink-0 text-muted-foreground transition-transform duration-spring-fast group-data-[state=open]:rotate-180 motion-reduce:transition-none"})};te(ae,ne=>{p()==="default"&&ne(ue)})}b(D,K)},$$slots:{default:!0}}))};te(h,q=>{g()?q(P):q(E,-1)})}b(l,t)};let p=a(e,"variant",7,"default"),_=a(e,"class",7,""),c=a(e,"children",7),g=a(e,"child",7),v=a(e,"onclick",7),w=a(e,"id",7),C=a(e,"ref",15,null),s=_e(e,ft);const f=ve("canonical-select");De(()=>f.registerTriggerId(w())),ce(()=>f.registerTriggerId(w()));let O=se(!1);ce(()=>{const l=f.triggerId;le(O,Array.from(document.querySelectorAll("label[for]")).some(r=>r.htmlFor===l),!0)});const L=y(()=>!s["aria-label"]&&!s["aria-labelledby"]&&!d(O));let i=se(void 0);ce(()=>{const l=C();if(!d(L)||!l){le(i,void 0);return}const r=()=>{le(i,l.textContent?.trim()||void 0,!0)};r();const u=new MutationObserver(r);return u.observe(l,{childList:!0,characterData:!0,subtree:!0}),()=>u.disconnect()});const x={default:"border border-border bg-transparent shadow-none hover:border-input hover:bg-hover px-3",underline:"border-0 bg-transparent underline underline-offset-3 decoration-muted-foreground/30 px-3",ghost:"border-0 bg-transparent shadow-none hover:border-transparent hover:bg-hover px-3",secondary:"border border-border bg-secondary text-secondary-foreground shadow-(--elevation-raised) hover:border-input hover:bg-hover px-3"},k=y(()=>p()==="default"?"outline":p()==="secondary"?"secondary":"ghost"),W=y(()=>ie("group type-caption text-foreground flex h-(--control-height-medium) w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-(--radius-medium) font-medium transition-[border-color,background-color,box-shadow] duration-spring-fast aria-invalid:border-danger aria-invalid:ring-1 aria-invalid:ring-danger/25 disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-50 disabled:hover:border-border disabled:hover:bg-transparent motion-reduce:transition-none",x[p()],_()));function A(l){l.detail===0&&!f.open&&(f.open=!0),v()?.(l)}function R(l){const{"aria-activedescendant":r,"aria-label":u,...I}=l;return{...I,role:"combobox","aria-label":typeof u=="string"?u:d(i),"aria-activedescendant":f.open&&typeof r=="string"?r:void 0}}var o={get variant(){return p()},set variant(l="default"){p(l),n()},get class(){return _()},set class(l=""){_(l),n()},get children(){return c()},set children(l){c(l),n()},get child(){return g()},set child(l){g(l),n()},get onclick(){return v()},set onclick(l){v(l),n()},get id(){return w()},set id(l){w(l),n()},get ref(){return C()},set ref(l=null){C(l),n()},$set:J,$on:(l,r)=>X(e,l,r)},U=F(),V=T(U);{let l=y(()=>f.open?f.listboxId:void 0),r=y(()=>f.invalid||void 0);G(V,()=>ye,(u,I)=>{I(u,fe(()=>s,{get id(){return f.triggerId},get"aria-controls"(){return d(l)},get class(){return d(W)},get"aria-invalid"(){return d(r)},onclick:A,get child(){return m},get ref(){return C()},set ref(t){C(t)}}))})}return b(S,U),$(o)}var pt=M("<span> </span>");function Se(S,e){if(new.target)return Y({component:Se,...S});Z(e,!0);let m=a(e,"placeholder",23,()=>me.ui_select_value_placeholder());const p=ve("canonical-select");var _={get placeholder(){return m()},set placeholder(v=me.ui_select_value_placeholder()){m(v),n()},$set:J,$on:(v,w)=>X(e,v,w)},c=pt(),g=qe(c,!0);return Ee(()=>{et(c,1,`min-w-0 flex-1 truncate text-left ${p.value?"text-foreground":"text-muted-foreground"}`),Fe(g,p.displayValue||m())}),b(S,c),$(_)}var ht=M("<div><!> <!></div>"),bt=M("<div><!></div>"),_t=M("<div><div><!></div></div>");function Ie(S,e){if(new.target)return Y({component:Ie,...S});Z(e,!0);const m=r=>{var u=F(),I=T(u);{const t=(h,P)=>{let E=()=>(P?.()).props;var q=ht();oe(q,()=>({...E(),id:k.listboxId,role:"listbox","aria-labelledby":k.triggerId,tabindex:"-1"}));var D=j(q);at(D,{});var N=de(D,2);H(N,()=>O()??re),Q(q),b(h,q)};G(I,()=>Je,(h,P)=>{P(h,{get class(){return`relative min-h-0 flex-1 overflow-y-auto p-1.5 ${C()??""}`},child:t,$$slots:{child:!0}})})}b(r,u)},p=(r,u)=>{let I=()=>(u?.()).props;const t=y(()=>A(I()));var h=bt();oe(h,()=>({...d(t),...v()?{id:v()}:{}}));var P=j(h);m(P),Q(h),pe(h,E=>g?.(E)),b(r,h)},_=(r,u)=>{let I=()=>(u?.()).props,t=()=>(u?.()).wrapperProps;const h=y(()=>A(I()));var P=_t();oe(P,()=>({...t(),...v()?{id:v()}:{}}));var E=j(P);oe(E,()=>({...d(h)}));var q=j(E);m(q),Q(E),pe(E,D=>g?.(D)),Q(P),b(r,P)},c=Ue(),g=We();let v=a(e,"wrapperId",7),w=a(e,"class",7,""),C=a(e,"wrapperClass",7,""),s=a(e,"dropUp",7,!1),f=a(e,"portal",7),O=a(e,"children",7);const L=y(()=>s()||f()===!0),i=ot(),x=st(it()+2);dt(x);const k=ve("canonical-select");async function W(){const r=document.getElementById(k.triggerId);await Le(),!k.open&&r?.isConnected&&r.focus({preventScroll:!0})}function A(r){const{role:u,tabindex:I,...t}=r;return t}var R={get wrapperId(){return v()},set wrapperId(r){v(r),n()},get class(){return w()},set class(r=""){w(r),n()},get wrapperClass(){return C()},set wrapperClass(r=""){C(r),n()},get dropUp(){return s()},set dropUp(r=!1){s(r),n()},get portal(){return f()},set portal(r){f(r),n()},get children(){return O()},set children(r){O(r),n()},$set:J,$on:(r,u)=>X(e,r,u)},o=F(),U=T(o);{var V=r=>{var u=F(),I=T(u);{let t=y(()=>ie(be(),"w-full max-h-60",w()));G(I,()=>Qe,(h,P)=>{P(h,{preventScroll:!1,onEscapeKeydown:W,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return x},get class(){return d(t)},style:"max-width: calc(100vw - var(--space-4));",get child(){return p}})})}b(r,u)},l=r=>{const u=y(()=>f()===void 0&&!s()?i():void 0);var I=F(),t=T(I);{let h=y(()=>!d(L)&&!d(u)),P=y(()=>d(u)??c?.target());G(t,()=>He,(E,q)=>{q(E,{get disabled(){return d(h)},get to(){return d(P)},children:(D,N)=>{var K=F(),z=T(K);{let ae=y(()=>d(u)?"absolute":"fixed"),ue=y(()=>d(u)!==void 0),ne=y(()=>s()?"top":"bottom"),ke=y(()=>ie(be(),"w-(--bits-select-anchor-width) max-h-60",w()));G(z,()=>Ye,(Ve,Te)=>{Te(Ve,{get strategy(){return d(ae)},get hideWhenDetached(){return d(ue)},onEscapeKeydown:W,"data-slot":"select-content",get"data-surface-level"(){return x},get side(){return d(ne)},sideOffset:4,get collisionPadding(){return rt},get class(){return d(ke)},style:"max-width: calc(100vw - var(--space-4));",get child(){return _}})})}b(D,K)},$$slots:{default:!0}})})}b(r,I)};te(U,r=>{k.staticPosition?r(V):r(l,-1)})}return b(S,o),$(R)}var wt=M('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Oe(S,e){if(new.target)return Y({component:Oe,...S});Z(e,!0);let m=a(e,"value",7),p=a(e,"label",7),_=a(e,"disabled",7,!1),c=a(e,"children",7),g=a(e,"class",7,"");var v={get value(){return m()},set value(s){m(s),n()},get label(){return p()},set label(s){p(s),n()},get disabled(){return _()},set disabled(s=!1){_(s),n()},get children(){return c()},set children(s){c(s),n()},get class(){return g()},set class(s=""){g(s),n()},$set:J,$on:(s,f)=>X(e,s,f)},w=F(),C=T(w);{const s=(i,x)=>{let k=()=>(x?.()).selected;var W=wt(),A=T(W),R=j(A);H(R,()=>c()??re),Q(A);var o=de(A,2);{let U=y(()=>k()?"checked":"empty");nt(o,{get state(){return d(U)},"data-slot":"select-item-check"})}b(i,W)};let f=y(()=>p()??m()),O=y(()=>_()||void 0),L=y(()=>ie(lt(),g()));G(C,()=>Xe,(i,x)=>{x(i,{get value(){return m()},get label(){return d(f)},get disabled(){return _()},get"aria-disabled"(){return d(O)},"data-menu-item":!0,get class(){return d(L)},children:s,$$slots:{default:!0}})})}return b(S,w),$(v)}const Rt={Root:Ce,Trigger:Pe,Value:Se,Content:Ie,Item:Oe};export{Rt as S};
|
|
1
|
+
import{t as Y,bo as a,bw as J,b as X,bp as _e,br as fe,bm as me}from"./Dws-34a7.js";import{bs as Z,bH as le,aD as d,ay as T,a7 as F,bf as re,W as b,bS as de,bn as $,bV as se,aA as n,c9 as y,aB as M,bo as we,a5 as j,bA as Q,bI as Ae,aG as ve,c5 as De,ca as ce,bl as qe,b_ as Ee,bO as Fe,c0 as Le}from"./3SdAC2_C.js";import{t as H}from"./D-rRuAXZ.js";import{c as G}from"./B5tvpTFB.js";import{s as Re,i as Ue,f as We}from"./C63WwVct.js";import{i as te}from"./DLCFUd4s.js";import{g as Be,e as pe}from"./C-zB-6G6.js";import{aS as ee,a$ as Me,av as B,H as Ne,az as he,aQ as ze,f as Ge,a1 as He}from"./BIGqOuh0.js";import{c as Ke,g as ge,d as je,f as Qe,e as Ye,i as Je,h as Xe}from"./B433f4mk.js";import{F as Ze,aw as $e}from"./CGYPBD6G.js";import{b as oe,e as ie,f as et}from"./BD9db4FR.js";import"./BPuz5cN_.js";import{F as tt,O as rt,a as at,M as nt}from"./BNa9zzEx.js";import{u as ot,b as be,a as lt}from"./DWa-2rkZ.js";import{c as st,u as it,s as dt}from"./D9tVylVS.js";import"./gU2qspu9.js";var ut=M("<!> <!>",1);function xe(S,e){if(new.target)return Y({component:xe,...S});Z(e,!0);let m=a(e,"value",15),p=a(e,"onValueChange",7,ee),_=a(e,"name",7,""),c=a(e,"disabled",7,!1),g=a(e,"type",7),v=a(e,"open",15,!1),w=a(e,"onOpenChange",7,ee),C=a(e,"onOpenChangeComplete",7,ee),s=a(e,"loop",7,!1),f=a(e,"scrollAlignment",7,"nearest"),O=a(e,"required",7,!1),L=a(e,"items",23,()=>[]),i=a(e,"allowDeselect",7,!1),x=a(e,"autocomplete",7),k=a(e,"children",7);function W(){m()===void 0&&m(g()==="single"?"":[])}W(),Me.pre(()=>m(),()=>{W()});let A=se("");const R=Ke.create({type:g(),value:B(()=>m(),t=>{m(t),p()(t)}),disabled:B(()=>c()),required:B(()=>O()),open:B(()=>v(),t=>{v(t),w()(t)}),loop:B(()=>s()),scrollAlignment:B(()=>f()),name:B(()=>_()),isCombobox:!1,items:B(()=>L()),allowDeselect:B(()=>i()),inputValue:B(()=>d(A),t=>le(A,t,!0)),onOpenChangeComplete:B(()=>C())});var o={get value(){return m()},set value(t){m(t),n()},get onValueChange(){return p()},set onValueChange(t=ee){p(t),n()},get name(){return _()},set name(t=""){_(t),n()},get disabled(){return c()},set disabled(t=!1){c(t),n()},get type(){return g()},set type(t){g(t),n()},get open(){return v()},set open(t=!1){v(t),n()},get onOpenChange(){return w()},set onOpenChange(t=ee){w(t),n()},get onOpenChangeComplete(){return C()},set onOpenChangeComplete(t=ee){C(t),n()},get loop(){return s()},set loop(t=!1){s(t),n()},get scrollAlignment(){return f()},set scrollAlignment(t="nearest"){f(t),n()},get required(){return O()},set required(t=!1){O(t),n()},get items(){return L()},set items(t=[]){L(t),n()},get allowDeselect(){return i()},set allowDeselect(t=!1){i(t),n()},get autocomplete(){return x()},set autocomplete(t){x(t),n()},get children(){return k()},set children(t){k(t),n()},$set:J,$on:(t,h)=>X(e,t,h)},U=ut(),V=T(U);Ne(V,{children:(t,h)=>{var P=F(),E=T(P);H(E,()=>k()??re),b(t,P)},$$slots:{default:!0}});var l=de(V,2);{var r=t=>{var h=F(),P=T(h);{var E=D=>{ge(D,{get autocomplete(){return x()}})},q=D=>{var N=F(),K=T(N);Be(K,16,()=>R.opts.value.current,z=>z,(z,ae)=>{ge(z,{get value(){return ae},get autocomplete(){return x()}})}),b(D,N)};te(P,D=>{R.opts.value.current.length===0?D(E):D(q,-1)})}b(t,h)},u=y(()=>Array.isArray(R.opts.value.current)),I=t=>{ge(t,{get autocomplete(){return x()},get value(){return R.opts.value.current},set value(h){R.opts.value.current=h}})};te(l,t=>{d(u)?t(r):t(I,-1)})}return b(S,U),$(o)}var ct=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),gt=M("<button><!></button>");function ye(S,e){const m=we();if(new.target)return Y({component:ye,...S});Z(e,!0);let p=a(e,"id",23,()=>he(m)),_=a(e,"ref",15,null),c=a(e,"child",7),g=a(e,"children",7),v=a(e,"type",7,"button"),w=_e(e,ct);const C=je.create({id:B(()=>p()),ref:B(()=>_(),i=>_(i))}),s=y(()=>ze(w,C.props,{type:v()}));var f={get id(){return p()},set id(i=he(m)){p(i),n()},get ref(){return _()},set ref(i=null){_(i),n()},get child(){return c()},set child(i){c(i),n()},get children(){return g()},set children(i){g(i),n()},get type(){return v()},set type(i="button"){v(i),n()},$set:J,$on:(i,x)=>X(e,i,x)},O=F(),L=T(O);return G(L,()=>tt,(i,x)=>{x(i,{get id(){return p()},get ref(){return C.opts.ref},children:(k,W)=>{var A=F(),R=T(A);{var o=V=>{var l=F(),r=T(l);H(r,c,()=>({props:d(s)})),b(V,l)},U=V=>{var l=gt();oe(l,()=>({...d(s)}));var r=j(l);H(r,()=>g()??re),Q(l),b(V,l)};te(R,V=>{c()?V(o):V(U,-1)})}b(k,A)},$$slots:{default:!0}})}),b(S,O),$(f)}var vt=M('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Ce(S,e){const m=we();if(new.target)return Y({component:Ce,...S});Z(e,!0);const p=`${m}-trigger`;let _=se(p),c=a(e,"value",15,""),g=a(e,"open",15,!1),v=a(e,"items",23,()=>[]),w=a(e,"disabled",7,!1),C=a(e,"invalid",7,!1),s=a(e,"required",7,!1),f=a(e,"name",7),O=a(e,"loop",7,!0),L=a(e,"onchange",7),i=a(e,"onopenchange",7),x=a(e,"children",7),k=a(e,"staticPosition",7,!1);Re(()=>{g(!1),i()?.(!1)}),Ae("canonical-select",{get triggerId(){return d(_)},registerTriggerId(o){le(_,o??p,!0)},listboxId:`${m}-listbox`,get value(){return c()},get displayValue(){return v().find(o=>o.value===c())?.label??c()},get invalid(){return C()},get open(){return g()},get staticPosition(){return k()},set open(o){g(o)}});var W={get value(){return c()},set value(o=""){c(o),n()},get open(){return g()},set open(o=!1){g(o),n()},get items(){return v()},set items(o=[]){v(o),n()},get disabled(){return w()},set disabled(o=!1){w(o),n()},get invalid(){return C()},set invalid(o=!1){C(o),n()},get required(){return s()},set required(o=!1){s(o),n()},get name(){return f()},set name(o){f(o),n()},get loop(){return O()},set loop(o=!0){O(o),n()},get onchange(){return L()},set onchange(o){L(o),n()},get onopenchange(){return i()},set onopenchange(o){i(o),n()},get children(){return x()},set children(o){x(o),n()},get staticPosition(){return k()},set staticPosition(o=!1){k(o),n()},$set:J,$on:(o,U)=>X(e,o,U)},A=vt(),R=j(A);return G(R,()=>xe,(o,U)=>{U(o,{type:"single",get items(){return v()},get disabled(){return w()},get required(){return s()},get name(){return f()},get loop(){return O()},get onValueChange(){return L()},get onOpenChange(){return i()},get value(){return c()},set value(V){c(V)},get open(){return g()},set open(V){g(V)},children:(V,l)=>{var r=F(),u=T(r);H(u,()=>x()??re),b(V,r)},$$slots:{default:!0}})}),Q(A),b(S,A),$(W)}var ft=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),mt=M("<!> <!>",1);function Pe(S,e){if(new.target)return Y({component:Pe,...S});Z(e,!0);const m=(l,r)=>{let u=()=>(r?.()).props;const I=y(()=>R(u()));var t=F(),h=T(t);{var P=q=>{var D=F(),N=T(D);H(N,g,()=>({props:d(I)})),b(q,D)},E=q=>{Ge(q,fe(()=>d(I),{get variant(){return d(k)},get active(){return f.open},get class(){return d(W)},children:(D,N)=>{var K=mt(),z=T(K);H(z,()=>c()??re);var ae=de(z,2);{var ue=ne=>{Ze(ne,{get icon(){return $e},class:"size-3 shrink-0 text-muted-foreground transition-transform duration-spring-fast group-data-[state=open]:rotate-180 motion-reduce:transition-none"})};te(ae,ne=>{p()==="default"&&ne(ue)})}b(D,K)},$$slots:{default:!0}}))};te(h,q=>{g()?q(P):q(E,-1)})}b(l,t)};let p=a(e,"variant",7,"default"),_=a(e,"class",7,""),c=a(e,"children",7),g=a(e,"child",7),v=a(e,"onclick",7),w=a(e,"id",7),C=a(e,"ref",15,null),s=_e(e,ft);const f=ve("canonical-select");De(()=>f.registerTriggerId(w())),ce(()=>f.registerTriggerId(w()));let O=se(!1);ce(()=>{const l=f.triggerId;le(O,Array.from(document.querySelectorAll("label[for]")).some(r=>r.htmlFor===l),!0)});const L=y(()=>!s["aria-label"]&&!s["aria-labelledby"]&&!d(O));let i=se(void 0);ce(()=>{const l=C();if(!d(L)||!l){le(i,void 0);return}const r=()=>{le(i,l.textContent?.trim()||void 0,!0)};r();const u=new MutationObserver(r);return u.observe(l,{childList:!0,characterData:!0,subtree:!0}),()=>u.disconnect()});const x={default:"border border-border bg-transparent shadow-none hover:border-input hover:bg-hover px-3",underline:"border-0 bg-transparent underline underline-offset-3 decoration-muted-foreground/30 px-3",ghost:"border-0 bg-transparent shadow-none hover:border-transparent hover:bg-hover px-3",secondary:"border border-border bg-secondary text-secondary-foreground shadow-(--elevation-raised) hover:border-input hover:bg-hover px-3"},k=y(()=>p()==="default"?"outline":p()==="secondary"?"secondary":"ghost"),W=y(()=>ie("group type-caption text-foreground flex h-(--control-height-medium) w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-(--radius-medium) font-medium transition-[border-color,background-color,box-shadow] duration-spring-fast aria-invalid:border-danger aria-invalid:ring-1 aria-invalid:ring-danger/25 disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-50 disabled:hover:border-border disabled:hover:bg-transparent motion-reduce:transition-none",x[p()],_()));function A(l){l.detail===0&&!f.open&&(f.open=!0),v()?.(l)}function R(l){const{"aria-activedescendant":r,"aria-label":u,...I}=l;return{...I,role:"combobox","aria-label":typeof u=="string"?u:d(i),"aria-activedescendant":f.open&&typeof r=="string"?r:void 0}}var o={get variant(){return p()},set variant(l="default"){p(l),n()},get class(){return _()},set class(l=""){_(l),n()},get children(){return c()},set children(l){c(l),n()},get child(){return g()},set child(l){g(l),n()},get onclick(){return v()},set onclick(l){v(l),n()},get id(){return w()},set id(l){w(l),n()},get ref(){return C()},set ref(l=null){C(l),n()},$set:J,$on:(l,r)=>X(e,l,r)},U=F(),V=T(U);{let l=y(()=>f.open?f.listboxId:void 0),r=y(()=>f.invalid||void 0);G(V,()=>ye,(u,I)=>{I(u,fe(()=>s,{get id(){return f.triggerId},get"aria-controls"(){return d(l)},get class(){return d(W)},get"aria-invalid"(){return d(r)},onclick:A,get child(){return m},get ref(){return C()},set ref(t){C(t)}}))})}return b(S,U),$(o)}var pt=M("<span> </span>");function Se(S,e){if(new.target)return Y({component:Se,...S});Z(e,!0);let m=a(e,"placeholder",23,()=>me.ui_select_value_placeholder());const p=ve("canonical-select");var _={get placeholder(){return m()},set placeholder(v=me.ui_select_value_placeholder()){m(v),n()},$set:J,$on:(v,w)=>X(e,v,w)},c=pt(),g=qe(c,!0);return Ee(()=>{et(c,1,`min-w-0 flex-1 truncate text-left ${p.value?"text-foreground":"text-muted-foreground"}`),Fe(g,p.displayValue||m())}),b(S,c),$(_)}var ht=M("<div><!> <!></div>"),bt=M("<div><!></div>"),_t=M("<div><div><!></div></div>");function Ie(S,e){if(new.target)return Y({component:Ie,...S});Z(e,!0);const m=r=>{var u=F(),I=T(u);{const t=(h,P)=>{let E=()=>(P?.()).props;var q=ht();oe(q,()=>({...E(),id:k.listboxId,role:"listbox","aria-labelledby":k.triggerId,tabindex:"-1"}));var D=j(q);at(D,{});var N=de(D,2);H(N,()=>O()??re),Q(q),b(h,q)};G(I,()=>Je,(h,P)=>{P(h,{get class(){return`relative min-h-0 flex-1 overflow-y-auto p-1.5 ${C()??""}`},child:t,$$slots:{child:!0}})})}b(r,u)},p=(r,u)=>{let I=()=>(u?.()).props;const t=y(()=>A(I()));var h=bt();oe(h,()=>({...d(t),...v()?{id:v()}:{}}));var P=j(h);m(P),Q(h),pe(h,E=>g?.(E)),b(r,h)},_=(r,u)=>{let I=()=>(u?.()).props,t=()=>(u?.()).wrapperProps;const h=y(()=>A(I()));var P=_t();oe(P,()=>({...t(),...v()?{id:v()}:{}}));var E=j(P);oe(E,()=>({...d(h)}));var q=j(E);m(q),Q(E),pe(E,D=>g?.(D)),Q(P),b(r,P)},c=Ue(),g=We();let v=a(e,"wrapperId",7),w=a(e,"class",7,""),C=a(e,"wrapperClass",7,""),s=a(e,"dropUp",7,!1),f=a(e,"portal",7),O=a(e,"children",7);const L=y(()=>s()||f()===!0),i=ot(),x=st(it()+2);dt(x);const k=ve("canonical-select");async function W(){const r=document.getElementById(k.triggerId);await Le(),!k.open&&r?.isConnected&&r.focus({preventScroll:!0})}function A(r){const{role:u,tabindex:I,...t}=r;return t}var R={get wrapperId(){return v()},set wrapperId(r){v(r),n()},get class(){return w()},set class(r=""){w(r),n()},get wrapperClass(){return C()},set wrapperClass(r=""){C(r),n()},get dropUp(){return s()},set dropUp(r=!1){s(r),n()},get portal(){return f()},set portal(r){f(r),n()},get children(){return O()},set children(r){O(r),n()},$set:J,$on:(r,u)=>X(e,r,u)},o=F(),U=T(o);{var V=r=>{var u=F(),I=T(u);{let t=y(()=>ie(be(),"w-full max-h-60",w()));G(I,()=>Qe,(h,P)=>{P(h,{preventScroll:!1,onEscapeKeydown:W,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return x},get class(){return d(t)},style:"max-width: calc(100vw - var(--space-4));",get child(){return p}})})}b(r,u)},l=r=>{const u=y(()=>f()===void 0&&!s()?i():void 0);var I=F(),t=T(I);{let h=y(()=>!d(L)&&!d(u)),P=y(()=>d(u)??c?.target());G(t,()=>He,(E,q)=>{q(E,{get disabled(){return d(h)},get to(){return d(P)},children:(D,N)=>{var K=F(),z=T(K);{let ae=y(()=>d(u)?"absolute":"fixed"),ue=y(()=>d(u)!==void 0),ne=y(()=>s()?"top":"bottom"),ke=y(()=>ie(be(),"w-(--bits-select-anchor-width) max-h-60",w()));G(z,()=>Ye,(Ve,Te)=>{Te(Ve,{get strategy(){return d(ae)},get hideWhenDetached(){return d(ue)},onEscapeKeydown:W,"data-slot":"select-content",get"data-surface-level"(){return x},get side(){return d(ne)},sideOffset:4,get collisionPadding(){return rt},get class(){return d(ke)},style:"max-width: calc(100vw - var(--space-4));",get child(){return _}})})}b(D,K)},$$slots:{default:!0}})})}b(r,I)};te(U,r=>{k.staticPosition?r(V):r(l,-1)})}return b(S,o),$(R)}var wt=M('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Oe(S,e){if(new.target)return Y({component:Oe,...S});Z(e,!0);let m=a(e,"value",7),p=a(e,"label",7),_=a(e,"disabled",7,!1),c=a(e,"children",7),g=a(e,"class",7,"");var v={get value(){return m()},set value(s){m(s),n()},get label(){return p()},set label(s){p(s),n()},get disabled(){return _()},set disabled(s=!1){_(s),n()},get children(){return c()},set children(s){c(s),n()},get class(){return g()},set class(s=""){g(s),n()},$set:J,$on:(s,f)=>X(e,s,f)},w=F(),C=T(w);{const s=(i,x)=>{let k=()=>(x?.()).selected;var W=wt(),A=T(W),R=j(A);H(R,()=>c()??re),Q(A);var o=de(A,2);{let U=y(()=>k()?"checked":"empty");nt(o,{get state(){return d(U)},"data-slot":"select-item-check"})}b(i,W)};let f=y(()=>p()??m()),O=y(()=>_()||void 0),L=y(()=>ie(lt(),g()));G(C,()=>Xe,(i,x)=>{x(i,{get value(){return m()},get label(){return d(f)},get disabled(){return _()},get"aria-disabled"(){return d(O)},"data-menu-item":!0,get class(){return d(L)},children:s,$$slots:{default:!0}})})}return b(S,w),$(v)}const Rt={Root:Ce,Trigger:Pe,Value:Se,Content:Ie,Item:Oe};export{Rt as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var Vt=Object.defineProperty;var yt=e=>{throw TypeError(e)};var jt=(e,i,s)=>i in e?Vt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s;var J=(e,i,s)=>jt(e,typeof i!="symbol"?i+"":i,s),bt=(e,i,s)=>i.has(e)||yt("Cannot "+s);var t=(e,i,s)=>(bt(e,i,"read from private field"),s?s.call(e):i.get(e)),g=(e,i,s)=>i.has(e)?yt("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),a=(e,i,s,n)=>(bt(e,i,"write to private field"),n?n.call(e,s):i.set(e,s),s),o=(e,i,s)=>(bt(e,i,"access private method"),s);var vt=(e,i,s,n)=>({set _(r){a(e,i,r,s)},get _(){return t(e,i,n)}});import{_ as wt}from"./hY0rMePc.js";import{m as xt,A as qt,r as Ht,Q as Nt,aX as Gt,R as Jt}from"./CnHcPhIW.js";import{B as Ft,D as Kt}from"./BFc0Rlfo.js";import{I as F,E as Ct,b as Qt,a as Ut}from"./DICr2Lvd.js";function Xt(e,i){for(const s of Array.isArray(e)?e:[e]){let n=xt.get(s.name);n==null&&(n=s,xt.set(s.name,n)),i.attachLanguages([n]),qt.add(n.name)}}function Zt(e,i){let s;return function(...n){clearTimeout(s),s=setTimeout(()=>e.apply(this,n),i)}}const Dt=0;let Wt=0;var H,T,P,Q,L,st,it,C,U,nt,u,D,_,A,O,b,v,z,dt,E,B,X,N,R,Z,Tt,ft,h,K,ut,zt,Et,Y,pt,It,ct,tt,Ot,gt,et,Bt,Pt,At,Yt=(At=class{constructor(e,i,s){g(this,h);J(this,"backend");g(this,H);g(this,T);g(this,P);g(this,Q);g(this,L);g(this,st);g(this,it);g(this,C);g(this,U);g(this,nt,!1);g(this,u,[F]);g(this,D,[]);g(this,_,0);g(this,A,[]);g(this,O,-1);g(this,b,!0);g(this,v,!1);g(this,z,0);g(this,dt,++Wt);g(this,E,-1);g(this,B,-1);g(this,X);g(this,N,0);g(this,R,[]);g(this,Z,!1);g(this,Tt,Zt(async e=>{if(t(this,nt))return;const{startingLine:i=0,totalLines:s=1/0}=e??{},n=Math.min(s===1/0?1/0:i+s,t(this,L).lineCount);if(t(this,T)==null&&!Lt(t(this,L).languageId)){if(await this.backend?.loadLanguages([t(this,L).languageId]),t(this,nt))return;a(this,T,t(this,H).getLanguage(t(this,L).languageId))}o(this,h,K).call(this),o(this,h,It).call(this,n)},500));g(this,ft,({data:e})=>{if(typeof e!="object"||e===null)return;const{type:i,tokenizerId:s,jobId:n}=e;i==="tokenize"&&s===t(this,dt)&&typeof n=="number"&&n===t(this,z)&&(t(this,E)>=0?o(this,h,Bt).call(this,n):o(this,h,Pt).call(this,n))});this.backend=s,a(this,H,e),a(this,L,i.textDocument),a(this,P,i.theme),a(this,Q,[]),a(this,st,i.tokenizeMaxLineLength??1e3),a(this,it,i.onDeferTokenize),a(this,C,i.matchBrackets!==!1),a(this,U,i.__debug??!1),o(this,h,ut).call(this),o(this,h,K).call(this)}getStringCommentRegexpRangesInLine(e){if(!t(this,C)||e<0||e>=t(this,L).lineCount||(o(this,h,ut).call(this),t(this,T)==null))return null;if(t(this,R)[e]===void 0){o(this,h,et).call(this,e);const i=t(this,u)[e]??F,s=o(this,h,ct).call(this,e,i);t(this,u)[e+1]=s.state}return t(this,R)[e]??null}setTheme(e){t(this,P)!==e&&(a(this,P,e),o(this,h,K).call(this),this.stopBackgroundTokenize(),a(this,u,[F]),a(this,D,[]),a(this,_,0),a(this,A,[]),t(this,T)!=null&&t(this,L).lineCount>0&&o(this,h,pt).call(this,0))}dispose(){a(this,nt,!0),this.stopBackgroundTokenize(),o(this,h,Et).call(this)}tokenize(e,i,s=!1){if(o(this,h,ut).call(this),o(this,h,K).call(this),t(this,T)==null&&!Lt(t(this,L).languageId))throw new Error(`Grammar for language "${t(this,L).languageId}" not loaded`);const{lineCount:n}=t(this,L),{startingLine:r=0,totalLines:l=1/0}=i??{},d=l===1/0?n:Math.min(r+l,n),c=e.startLine,f=Math.max(r,c),I=i!=null&&l!==1/0&&e.lineDelta>0&&c<d&&e.endLine>=d,m=e.lineDelta===0&&(e.changedLineChanges?.every(([,,p])=>p===0)??!0);t(this,C)&&!m&&(t(this,R).length=Math.min(t(this,R).length,e.startLine));const M=s&&e.lineDelta!==0&&c>=r,S=m||i==null||c>=f,y=e.changedLineRanges??[[c,e.endLine]];a(this,D,[]),a(this,_,0),a(this,A,[]);let V=-1;if(c<f)for(const[p,w]of y)p<f&&(V=Math.max(V,Math.min(w,f-1)));const mt=V>=c&&(m||e.lineDelta<0);m?o(this,h,et).call(this,c):(o(this,h,Ot).call(this,e),(i==null||c>=f)&&o(this,h,et).call(this,f));let j=0,St=y[j][1],ht,Rt=0,k=m?y[j][0]:f,rt=!1;const Mt=new Map,W=mt?new Map:void 0;if(W!=null&&!m){const p=Math.min(V+1,f,d);if(p>c){o(this,h,et).call(this,p);let w=c,ot=t(this,u)[w]??F;for(;w<p;w++){const x=o(this,h,ct).call(this,w,ot);ot=x.state,W.set(w,x.resolvedTokens)}t(this,u)[p]=ot}}let q=t(this,u)[k]??F;for(;k<d;){const p=m?t(this,u)[k+1]:M?o(this,h,gt).call(this,k+1):void 0;S&&(t(this,u)[k]=q);const{resolvedTokens:w,state:ot}=o(this,h,ct).call(this,k,q);if(q=ot,k>=f?Mt.set(k,w):W?.set(k,w),S&&(t(this,u)[k+1]=q),rt=k>=St&&(m||M)&&p!=null&&q.equals(p),rt){j++;const x=y[j];if(x==null)break;if(x[0]>=d){ht=x[0],Rt=j;break}let lt=t(this,u)[x[0]];if(M)for(let kt=k+2;kt<=x[0]&&(lt=o(this,h,gt).call(this,kt),lt!=null);kt++)t(this,u)[kt]=lt;lt==null?(St=x[1],k++):(k=x[0],q=lt,St=x[1]),rt=!1;continue}k++}if(S&&(k<d?t(this,u)[k+1]=q:t(this,u)[k]=q),rt&&M&&ht==null){for(let p=k+2;p<=n;p++){const w=o(this,h,gt).call(this,p);if(w==null)break;t(this,u)[p]=w}a(this,D,[]),a(this,_,0),a(this,A,[])}if(W!=null&&W.size>0&&t(this,it).call(this,W),ht!=null)t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,ht)),o(this,h,pt).call(this,ht,y,Rt);else if(!rt&&k<n){const p=I&&c>=f?d:c<f&&!m?c:k;t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,p)),o(this,h,pt).call(this,p,y,j)}return Mt}prebuildStateStack(e){o(this,h,ut).call(this),t(this,Tt).call(this,e)}stopBackgroundTokenize(){a(this,B,-1),!t(this,b)&&(a(this,b,!0),a(this,v,!1),a(this,O,-1),a(this,E,-1),a(this,X,void 0),a(this,N,0),a(this,D,[]),a(this,_,0),a(this,A,[]),o(this,h,Et).call(this))}pauseBackgroundTokenize(){t(this,b)||t(this,v)||(t(this,U)&&console.log("[diffs/editor] background tokenization paused",{jobId:t(this,z)}),a(this,v,!0))}resumeBackgroundTokenize(){t(this,b)||!t(this,v)||t(this,T)==null||t(this,O)<0||(t(this,U)&&console.log("[diffs/editor] background tokenization resumed",{jobId:t(this,z)}),a(this,v,!1),o(this,h,Y).call(this,t(this,z)))}},H=new WeakMap,T=new WeakMap,P=new WeakMap,Q=new WeakMap,L=new WeakMap,st=new WeakMap,it=new WeakMap,C=new WeakMap,U=new WeakMap,nt=new WeakMap,u=new WeakMap,D=new WeakMap,_=new WeakMap,A=new WeakMap,O=new WeakMap,b=new WeakMap,v=new WeakMap,z=new WeakMap,dt=new WeakMap,E=new WeakMap,B=new WeakMap,X=new WeakMap,N=new WeakMap,R=new WeakMap,Z=new WeakMap,Tt=new WeakMap,ft=new WeakMap,h=new WeakSet,K=function(){if(t(this,P)==="")return;this.backend?.getTheme(t(this,P));const{colorMap:e}=t(this,H).setTheme(t(this,P));a(this,Q,e)},ut=function(){t(this,T)==null&&!Lt(t(this,L).languageId)&&t(this,H).getLoadedLanguages().includes(t(this,L).languageId)&&a(this,T,t(this,H).getLanguage(t(this,L).languageId))},zt=function(){t(this,Z)||(globalThis.addEventListener("message",t(this,ft)),a(this,Z,!0))},Et=function(){t(this,Z)&&(globalThis.removeEventListener("message",t(this,ft)),a(this,Z,!1))},Y=function(e){globalThis.postMessage({type:"tokenize",tokenizerId:t(this,dt),jobId:e})},pt=function(e,i,s=0){if(Lt(t(this,L).languageId))return;const n=++vt(this,z)._;t(this,U)&&console.log("[diffs/editor] background tokenization scheduled",{jobId:n,startLine:e,changedLineRanges:i,changedRangeIndex:s}),a(this,b,!1),a(this,v,!1),a(this,O,e),t(this,E)>=0&&a(this,B,Math.max(t(this,B),t(this,E))),a(this,E,-1),a(this,X,i),a(this,N,s),o(this,h,zt).call(this),o(this,h,Y).call(this,n)},It=function(e){if(t(this,T)==null||t(this,u).length>e)return;if(!t(this,b)){t(this,E)>=0?a(this,E,Math.max(t(this,E),e)):a(this,B,Math.max(t(this,B),e));return}const i=++vt(this,z)._;a(this,b,!1),a(this,v,!1),a(this,O,t(this,u).length-1),a(this,E,e),a(this,B,-1),a(this,X,void 0),a(this,N,0),o(this,h,zt).call(this),o(this,h,Y).call(this,i)},ct=function(e,i){const s=t(this,L).getLineText(e);if(s.length>=t(this,st))return console.warn(`[diffs] Line(${e}) too long to tokenize: ${s.length}`),o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};if(t(this,T)==null||s===""||s.trim()==="")return o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};const n=_t(t(this,T),t(this,Q),s,i,Dt,t(this,C));return o(this,h,tt).call(this,e,n.bracketIgnoredRanges),{resolvedTokens:n.resolvedTokens,state:n.ruleStack}},tt=function(e,i){t(this,C)&&(t(this,R)[e]=i)},Ot=function(e){const i=e.changedLineChanges??[[e.startLine,e.endLine,e.lineDelta]],s=e.startLine+1;s<=t(this,u).length-s?(a(this,D,t(this,u)),a(this,_,0),a(this,u,t(this,u).slice(0,s))):(a(this,_,s),a(this,D,t(this,u).slice(s)),t(this,u).length=Math.min(t(this,u).length,s)),a(this,A,i)},gt=function(e){let i=e;for(let s=t(this,A).length-1;s>=0;s--){const[n,r,l]=t(this,A)[s];if(l!==0){if(i>r)i-=l;else if(i>n)return t(this,u)[e]}}return t(this,D)[i-t(this,_)]??t(this,u)[e]},et=function(e,i){const s=Math.min(Math.max(0,e),t(this,L).lineCount);if(t(this,u).length>s||t(this,T)==null)return!0;const n=i==null?0:performance.now();let r=t(this,u).length-1,l=t(this,u)[r]??F;for(;r<s;){t(this,u)[r]=l;const d=t(this,L).getLineText(r);if(d.length<t(this,st)&&d!==""&&d.trim()!==""){const c=_t(t(this,T),t(this,Q),d,l,Dt,t(this,C),!1);o(this,h,tt).call(this,r,c.bracketIgnoredRanges),l=c.ruleStack}else o(this,h,tt).call(this,r,null);if(r++,t(this,u)[r]=l,i!=null&&performance.now()-n>i)break}return r>=s},Bt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=o(this,h,et).call(this,t(this,E),1);if(!(t(this,b)||t(this,v)||e!==t(this,z))){if(i){this.stopBackgroundTokenize();return}a(this,O,t(this,u).length-1),o(this,h,Y).call(this,e)}},Pt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=performance.now(),s=new Map,n=t(this,L).lineCount,r=t(this,X);let l=t(this,O),d=t(this,u)[l]??F,c=!1,f=t(this,N),I=r?.[f]?.[1];for(;l<n;){t(this,u)[l]=d;const m=I!=null?o(this,h,gt).call(this,l+1):void 0,M=o(this,h,ct).call(this,l,d);if(s.set(l,M.resolvedTokens),d=M.state,t(this,u)[l+1]=d,c=I!=null&&l>=I&&m!=null&&d.equals(m),l++,c){f++;const S=r?.[f];if(S==null)break;if(I=S[1],t(this,u)[S[0]]==null)c=!1;else{l=S[0],d=t(this,u)[l]??d,c=!1;continue}}if(performance.now()-i>1)break}if(t(this,it).call(this,s),!(t(this,b)||t(this,v)||e!==t(this,z))){if(c||l>=n){const m=t(this,B);this.stopBackgroundTokenize(),m>=0&&o(this,h,It).call(this,m);return}a(this,O,l),a(this,N,f),o(this,h,Y).call(this,e)}},At);function _t(e,i,s,n,r,l=!0,d=!0){const c=e.tokenizeLine2(s,n,r);c.stoppedEarly&&console.warn(`[diffs] Time limit reached when tokenizing line: ${s.substring(0,100)}`);const f=c.tokens,I=f.length/2,m=[],M=[];if(!d&&!l)return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M};for(let S=0;S<I;S++){const y=f[2*S],V=S+1<I?f[2*S+2]:s.length;if(y===V)continue;const mt=f[2*S+1];if(d){const j=Ct.getForeground(mt);m.push([y,i[j],s.slice(y,V)])}l&&Ct.getTokenType(mt)>0&&M.push([y,V])}return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M}}function Lt(e){return e==="text"||e==="ansi"}var $,G,at,te=(at=class extends Ft{constructor(s,n){super();J(this,"highlighter");J(this,"options");g(this,$,"");g(this,G);this.highlighter=s,this.options=n}tokenizeChunk(s,n){const r=(t(this,$)+s).split(/(\r\n|\r|\n)/);let l=[];for(let d=0;d<r.length;d+=2){const c=r[d],f=this.highlighter.codeToTokens(c,{...this.options,grammarState:t(this,G)}),I=f.tokens[0].map(m=>({...m,offset:m.offset+this.stableOffset}));d+1<r.length?(Ht(n,I),this.pushLineBreak(n,c.length,r[d+1]),a(this,G,f.grammarState)):(l=I,a(this,$,c))}return{unstable:l,tailLength:t(this,$).length}}clone(){this.assertActive();const s=new at(this.highlighter,this.options);return this.copyStateTo(s),a(s,$,t(this,$)),a(s,G,t(this,G)),s}resetSource(){a(this,$,""),a(this,G,void 0)}releaseSource(){this.resetSource()}},$=new WeakMap,G=new WeakMap,at),he=class $t extends Kt{constructor(s,n){super(s,Nt(s));J(this,"raw");J(this,"loadedThemes",new Map);J(this,"attachedLanguages",new Set(["text","ansi"]));this.raw=n}static async create(s){const n=s==="shiki-wasm"?(await wt(async()=>{const{createOnigurumaEngine:l}=await import("./fp9mRO0R.js");return{createOnigurumaEngine:l}},[],import.meta.url)).createOnigurumaEngine(wt(()=>import("./Cey7Y6ql.js"),[],import.meta.url)):(await wt(async()=>{const{createJavaScriptRegexEngine:l}=await import("./LU5PuYrD.js");return{createJavaScriptRegexEngine:l}},[],import.meta.url)).createJavaScriptRegexEngine(),r=await Qt({themes:[],langs:[],engine:n});return new $t(s,r)}getTheme(s){this.assertNotDisposed();const n=this.loadedThemes.get(s),r=this.themeResolver.getResolvedTheme(s)??n;if(r==null)throw new Error(`Theme "${s}" has not been resolved`);if(n!==r){const l=r.textmate??(r.cssVariables!=null?Ut(r.cssVariables):void 0);if(l==null)throw new Error(`Theme "${s}" does not support Shiki`);this.raw.setTheme({...l,name:s}),this.loadedThemes.set(s,r)}return r}codeToTokens(s,n){return this.raw.codeToTokens(s,this.resolveOptions(n))}createEditorTokenizer(s){return new Yt(this.raw,s,this)}createStreamTokenizer(s){return new te(this.raw,this.resolveOptions(s))}async loadLanguages(s){this.assertNotDisposed();const n=s.filter(r=>!this.attachedLanguages.has(r));Xt(await Gt(n),this)}hasLoadedLanguages(s){if(this.disposed)return!1;let n;return s.every(r=>this.attachedLanguages.has(r)?!0:Jt.has(r)?!1:(n??=this.raw.getLoadedLanguages(),n.includes(r)))}attachLanguages(s){this.assertNotDisposed();for(const n of s){if(this.attachedLanguages.has(n.name))continue;const r=n.data.find(l=>l.name===n.name||l.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);this.raw.loadLanguageSync(n.data);try{this.raw.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}this.attachedLanguages.add(n.name)}}releaseResources(){this.loadedThemes.clear(),this.attachedLanguages.clear(),this.raw.dispose()}resolveOptions({theme:s,themes:n,...r}){if(this.assertNotDisposed(),s!=null)return this.getTheme(s),{...r,theme:s};if(n==null)throw new Error("A theme or themes option is required");for(const l of Object.values(n))this.getTheme(l);return{...r,themes:n}}};export{he as ShikiHighlighter};
|
|
1
|
+
var Vt=Object.defineProperty;var yt=e=>{throw TypeError(e)};var jt=(e,i,s)=>i in e?Vt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s;var J=(e,i,s)=>jt(e,typeof i!="symbol"?i+"":i,s),bt=(e,i,s)=>i.has(e)||yt("Cannot "+s);var t=(e,i,s)=>(bt(e,i,"read from private field"),s?s.call(e):i.get(e)),g=(e,i,s)=>i.has(e)?yt("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),a=(e,i,s,n)=>(bt(e,i,"write to private field"),n?n.call(e,s):i.set(e,s),s),o=(e,i,s)=>(bt(e,i,"access private method"),s);var vt=(e,i,s,n)=>({set _(r){a(e,i,r,s)},get _(){return t(e,i,n)}});import{_ as wt}from"./Dws-34a7.js";import{m as xt,A as qt,r as Ht,Q as Nt,aX as Gt,R as Jt}from"./fVXs4sxg.js";import{B as Ft,D as Kt}from"./gZJn6Sk0.js";import{I as F,E as Ct,b as Qt,a as Ut}from"./DICr2Lvd.js";function Xt(e,i){for(const s of Array.isArray(e)?e:[e]){let n=xt.get(s.name);n==null&&(n=s,xt.set(s.name,n)),i.attachLanguages([n]),qt.add(n.name)}}function Zt(e,i){let s;return function(...n){clearTimeout(s),s=setTimeout(()=>e.apply(this,n),i)}}const Dt=0;let Wt=0;var H,T,P,Q,L,st,it,C,U,nt,u,D,_,A,O,b,v,z,dt,E,B,X,N,R,Z,Tt,ft,h,K,ut,zt,Et,Y,pt,It,ct,tt,Ot,gt,et,Bt,Pt,At,Yt=(At=class{constructor(e,i,s){g(this,h);J(this,"backend");g(this,H);g(this,T);g(this,P);g(this,Q);g(this,L);g(this,st);g(this,it);g(this,C);g(this,U);g(this,nt,!1);g(this,u,[F]);g(this,D,[]);g(this,_,0);g(this,A,[]);g(this,O,-1);g(this,b,!0);g(this,v,!1);g(this,z,0);g(this,dt,++Wt);g(this,E,-1);g(this,B,-1);g(this,X);g(this,N,0);g(this,R,[]);g(this,Z,!1);g(this,Tt,Zt(async e=>{if(t(this,nt))return;const{startingLine:i=0,totalLines:s=1/0}=e??{},n=Math.min(s===1/0?1/0:i+s,t(this,L).lineCount);if(t(this,T)==null&&!Lt(t(this,L).languageId)){if(await this.backend?.loadLanguages([t(this,L).languageId]),t(this,nt))return;a(this,T,t(this,H).getLanguage(t(this,L).languageId))}o(this,h,K).call(this),o(this,h,It).call(this,n)},500));g(this,ft,({data:e})=>{if(typeof e!="object"||e===null)return;const{type:i,tokenizerId:s,jobId:n}=e;i==="tokenize"&&s===t(this,dt)&&typeof n=="number"&&n===t(this,z)&&(t(this,E)>=0?o(this,h,Bt).call(this,n):o(this,h,Pt).call(this,n))});this.backend=s,a(this,H,e),a(this,L,i.textDocument),a(this,P,i.theme),a(this,Q,[]),a(this,st,i.tokenizeMaxLineLength??1e3),a(this,it,i.onDeferTokenize),a(this,C,i.matchBrackets!==!1),a(this,U,i.__debug??!1),o(this,h,ut).call(this),o(this,h,K).call(this)}getStringCommentRegexpRangesInLine(e){if(!t(this,C)||e<0||e>=t(this,L).lineCount||(o(this,h,ut).call(this),t(this,T)==null))return null;if(t(this,R)[e]===void 0){o(this,h,et).call(this,e);const i=t(this,u)[e]??F,s=o(this,h,ct).call(this,e,i);t(this,u)[e+1]=s.state}return t(this,R)[e]??null}setTheme(e){t(this,P)!==e&&(a(this,P,e),o(this,h,K).call(this),this.stopBackgroundTokenize(),a(this,u,[F]),a(this,D,[]),a(this,_,0),a(this,A,[]),t(this,T)!=null&&t(this,L).lineCount>0&&o(this,h,pt).call(this,0))}dispose(){a(this,nt,!0),this.stopBackgroundTokenize(),o(this,h,Et).call(this)}tokenize(e,i,s=!1){if(o(this,h,ut).call(this),o(this,h,K).call(this),t(this,T)==null&&!Lt(t(this,L).languageId))throw new Error(`Grammar for language "${t(this,L).languageId}" not loaded`);const{lineCount:n}=t(this,L),{startingLine:r=0,totalLines:l=1/0}=i??{},d=l===1/0?n:Math.min(r+l,n),c=e.startLine,f=Math.max(r,c),I=i!=null&&l!==1/0&&e.lineDelta>0&&c<d&&e.endLine>=d,m=e.lineDelta===0&&(e.changedLineChanges?.every(([,,p])=>p===0)??!0);t(this,C)&&!m&&(t(this,R).length=Math.min(t(this,R).length,e.startLine));const M=s&&e.lineDelta!==0&&c>=r,S=m||i==null||c>=f,y=e.changedLineRanges??[[c,e.endLine]];a(this,D,[]),a(this,_,0),a(this,A,[]);let V=-1;if(c<f)for(const[p,w]of y)p<f&&(V=Math.max(V,Math.min(w,f-1)));const mt=V>=c&&(m||e.lineDelta<0);m?o(this,h,et).call(this,c):(o(this,h,Ot).call(this,e),(i==null||c>=f)&&o(this,h,et).call(this,f));let j=0,St=y[j][1],ht,Rt=0,k=m?y[j][0]:f,rt=!1;const Mt=new Map,W=mt?new Map:void 0;if(W!=null&&!m){const p=Math.min(V+1,f,d);if(p>c){o(this,h,et).call(this,p);let w=c,ot=t(this,u)[w]??F;for(;w<p;w++){const x=o(this,h,ct).call(this,w,ot);ot=x.state,W.set(w,x.resolvedTokens)}t(this,u)[p]=ot}}let q=t(this,u)[k]??F;for(;k<d;){const p=m?t(this,u)[k+1]:M?o(this,h,gt).call(this,k+1):void 0;S&&(t(this,u)[k]=q);const{resolvedTokens:w,state:ot}=o(this,h,ct).call(this,k,q);if(q=ot,k>=f?Mt.set(k,w):W?.set(k,w),S&&(t(this,u)[k+1]=q),rt=k>=St&&(m||M)&&p!=null&&q.equals(p),rt){j++;const x=y[j];if(x==null)break;if(x[0]>=d){ht=x[0],Rt=j;break}let lt=t(this,u)[x[0]];if(M)for(let kt=k+2;kt<=x[0]&&(lt=o(this,h,gt).call(this,kt),lt!=null);kt++)t(this,u)[kt]=lt;lt==null?(St=x[1],k++):(k=x[0],q=lt,St=x[1]),rt=!1;continue}k++}if(S&&(k<d?t(this,u)[k+1]=q:t(this,u)[k]=q),rt&&M&&ht==null){for(let p=k+2;p<=n;p++){const w=o(this,h,gt).call(this,p);if(w==null)break;t(this,u)[p]=w}a(this,D,[]),a(this,_,0),a(this,A,[])}if(W!=null&&W.size>0&&t(this,it).call(this,W),ht!=null)t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,ht)),o(this,h,pt).call(this,ht,y,Rt);else if(!rt&&k<n){const p=I&&c>=f?d:c<f&&!m?c:k;t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,p)),o(this,h,pt).call(this,p,y,j)}return Mt}prebuildStateStack(e){o(this,h,ut).call(this),t(this,Tt).call(this,e)}stopBackgroundTokenize(){a(this,B,-1),!t(this,b)&&(a(this,b,!0),a(this,v,!1),a(this,O,-1),a(this,E,-1),a(this,X,void 0),a(this,N,0),a(this,D,[]),a(this,_,0),a(this,A,[]),o(this,h,Et).call(this))}pauseBackgroundTokenize(){t(this,b)||t(this,v)||(t(this,U)&&console.log("[diffs/editor] background tokenization paused",{jobId:t(this,z)}),a(this,v,!0))}resumeBackgroundTokenize(){t(this,b)||!t(this,v)||t(this,T)==null||t(this,O)<0||(t(this,U)&&console.log("[diffs/editor] background tokenization resumed",{jobId:t(this,z)}),a(this,v,!1),o(this,h,Y).call(this,t(this,z)))}},H=new WeakMap,T=new WeakMap,P=new WeakMap,Q=new WeakMap,L=new WeakMap,st=new WeakMap,it=new WeakMap,C=new WeakMap,U=new WeakMap,nt=new WeakMap,u=new WeakMap,D=new WeakMap,_=new WeakMap,A=new WeakMap,O=new WeakMap,b=new WeakMap,v=new WeakMap,z=new WeakMap,dt=new WeakMap,E=new WeakMap,B=new WeakMap,X=new WeakMap,N=new WeakMap,R=new WeakMap,Z=new WeakMap,Tt=new WeakMap,ft=new WeakMap,h=new WeakSet,K=function(){if(t(this,P)==="")return;this.backend?.getTheme(t(this,P));const{colorMap:e}=t(this,H).setTheme(t(this,P));a(this,Q,e)},ut=function(){t(this,T)==null&&!Lt(t(this,L).languageId)&&t(this,H).getLoadedLanguages().includes(t(this,L).languageId)&&a(this,T,t(this,H).getLanguage(t(this,L).languageId))},zt=function(){t(this,Z)||(globalThis.addEventListener("message",t(this,ft)),a(this,Z,!0))},Et=function(){t(this,Z)&&(globalThis.removeEventListener("message",t(this,ft)),a(this,Z,!1))},Y=function(e){globalThis.postMessage({type:"tokenize",tokenizerId:t(this,dt),jobId:e})},pt=function(e,i,s=0){if(Lt(t(this,L).languageId))return;const n=++vt(this,z)._;t(this,U)&&console.log("[diffs/editor] background tokenization scheduled",{jobId:n,startLine:e,changedLineRanges:i,changedRangeIndex:s}),a(this,b,!1),a(this,v,!1),a(this,O,e),t(this,E)>=0&&a(this,B,Math.max(t(this,B),t(this,E))),a(this,E,-1),a(this,X,i),a(this,N,s),o(this,h,zt).call(this),o(this,h,Y).call(this,n)},It=function(e){if(t(this,T)==null||t(this,u).length>e)return;if(!t(this,b)){t(this,E)>=0?a(this,E,Math.max(t(this,E),e)):a(this,B,Math.max(t(this,B),e));return}const i=++vt(this,z)._;a(this,b,!1),a(this,v,!1),a(this,O,t(this,u).length-1),a(this,E,e),a(this,B,-1),a(this,X,void 0),a(this,N,0),o(this,h,zt).call(this),o(this,h,Y).call(this,i)},ct=function(e,i){const s=t(this,L).getLineText(e);if(s.length>=t(this,st))return console.warn(`[diffs] Line(${e}) too long to tokenize: ${s.length}`),o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};if(t(this,T)==null||s===""||s.trim()==="")return o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};const n=_t(t(this,T),t(this,Q),s,i,Dt,t(this,C));return o(this,h,tt).call(this,e,n.bracketIgnoredRanges),{resolvedTokens:n.resolvedTokens,state:n.ruleStack}},tt=function(e,i){t(this,C)&&(t(this,R)[e]=i)},Ot=function(e){const i=e.changedLineChanges??[[e.startLine,e.endLine,e.lineDelta]],s=e.startLine+1;s<=t(this,u).length-s?(a(this,D,t(this,u)),a(this,_,0),a(this,u,t(this,u).slice(0,s))):(a(this,_,s),a(this,D,t(this,u).slice(s)),t(this,u).length=Math.min(t(this,u).length,s)),a(this,A,i)},gt=function(e){let i=e;for(let s=t(this,A).length-1;s>=0;s--){const[n,r,l]=t(this,A)[s];if(l!==0){if(i>r)i-=l;else if(i>n)return t(this,u)[e]}}return t(this,D)[i-t(this,_)]??t(this,u)[e]},et=function(e,i){const s=Math.min(Math.max(0,e),t(this,L).lineCount);if(t(this,u).length>s||t(this,T)==null)return!0;const n=i==null?0:performance.now();let r=t(this,u).length-1,l=t(this,u)[r]??F;for(;r<s;){t(this,u)[r]=l;const d=t(this,L).getLineText(r);if(d.length<t(this,st)&&d!==""&&d.trim()!==""){const c=_t(t(this,T),t(this,Q),d,l,Dt,t(this,C),!1);o(this,h,tt).call(this,r,c.bracketIgnoredRanges),l=c.ruleStack}else o(this,h,tt).call(this,r,null);if(r++,t(this,u)[r]=l,i!=null&&performance.now()-n>i)break}return r>=s},Bt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=o(this,h,et).call(this,t(this,E),1);if(!(t(this,b)||t(this,v)||e!==t(this,z))){if(i){this.stopBackgroundTokenize();return}a(this,O,t(this,u).length-1),o(this,h,Y).call(this,e)}},Pt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=performance.now(),s=new Map,n=t(this,L).lineCount,r=t(this,X);let l=t(this,O),d=t(this,u)[l]??F,c=!1,f=t(this,N),I=r?.[f]?.[1];for(;l<n;){t(this,u)[l]=d;const m=I!=null?o(this,h,gt).call(this,l+1):void 0,M=o(this,h,ct).call(this,l,d);if(s.set(l,M.resolvedTokens),d=M.state,t(this,u)[l+1]=d,c=I!=null&&l>=I&&m!=null&&d.equals(m),l++,c){f++;const S=r?.[f];if(S==null)break;if(I=S[1],t(this,u)[S[0]]==null)c=!1;else{l=S[0],d=t(this,u)[l]??d,c=!1;continue}}if(performance.now()-i>1)break}if(t(this,it).call(this,s),!(t(this,b)||t(this,v)||e!==t(this,z))){if(c||l>=n){const m=t(this,B);this.stopBackgroundTokenize(),m>=0&&o(this,h,It).call(this,m);return}a(this,O,l),a(this,N,f),o(this,h,Y).call(this,e)}},At);function _t(e,i,s,n,r,l=!0,d=!0){const c=e.tokenizeLine2(s,n,r);c.stoppedEarly&&console.warn(`[diffs] Time limit reached when tokenizing line: ${s.substring(0,100)}`);const f=c.tokens,I=f.length/2,m=[],M=[];if(!d&&!l)return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M};for(let S=0;S<I;S++){const y=f[2*S],V=S+1<I?f[2*S+2]:s.length;if(y===V)continue;const mt=f[2*S+1];if(d){const j=Ct.getForeground(mt);m.push([y,i[j],s.slice(y,V)])}l&&Ct.getTokenType(mt)>0&&M.push([y,V])}return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M}}function Lt(e){return e==="text"||e==="ansi"}var $,G,at,te=(at=class extends Ft{constructor(s,n){super();J(this,"highlighter");J(this,"options");g(this,$,"");g(this,G);this.highlighter=s,this.options=n}tokenizeChunk(s,n){const r=(t(this,$)+s).split(/(\r\n|\r|\n)/);let l=[];for(let d=0;d<r.length;d+=2){const c=r[d],f=this.highlighter.codeToTokens(c,{...this.options,grammarState:t(this,G)}),I=f.tokens[0].map(m=>({...m,offset:m.offset+this.stableOffset}));d+1<r.length?(Ht(n,I),this.pushLineBreak(n,c.length,r[d+1]),a(this,G,f.grammarState)):(l=I,a(this,$,c))}return{unstable:l,tailLength:t(this,$).length}}clone(){this.assertActive();const s=new at(this.highlighter,this.options);return this.copyStateTo(s),a(s,$,t(this,$)),a(s,G,t(this,G)),s}resetSource(){a(this,$,""),a(this,G,void 0)}releaseSource(){this.resetSource()}},$=new WeakMap,G=new WeakMap,at),he=class $t extends Kt{constructor(s,n){super(s,Nt(s));J(this,"raw");J(this,"loadedThemes",new Map);J(this,"attachedLanguages",new Set(["text","ansi"]));this.raw=n}static async create(s){const n=s==="shiki-wasm"?(await wt(async()=>{const{createOnigurumaEngine:l}=await import("./fp9mRO0R.js");return{createOnigurumaEngine:l}},[],import.meta.url)).createOnigurumaEngine(wt(()=>import("./Cey7Y6ql.js"),[],import.meta.url)):(await wt(async()=>{const{createJavaScriptRegexEngine:l}=await import("./LU5PuYrD.js");return{createJavaScriptRegexEngine:l}},[],import.meta.url)).createJavaScriptRegexEngine(),r=await Qt({themes:[],langs:[],engine:n});return new $t(s,r)}getTheme(s){this.assertNotDisposed();const n=this.loadedThemes.get(s),r=this.themeResolver.getResolvedTheme(s)??n;if(r==null)throw new Error(`Theme "${s}" has not been resolved`);if(n!==r){const l=r.textmate??(r.cssVariables!=null?Ut(r.cssVariables):void 0);if(l==null)throw new Error(`Theme "${s}" does not support Shiki`);this.raw.setTheme({...l,name:s}),this.loadedThemes.set(s,r)}return r}codeToTokens(s,n){return this.raw.codeToTokens(s,this.resolveOptions(n))}createEditorTokenizer(s){return new Yt(this.raw,s,this)}createStreamTokenizer(s){return new te(this.raw,this.resolveOptions(s))}async loadLanguages(s){this.assertNotDisposed();const n=s.filter(r=>!this.attachedLanguages.has(r));Xt(await Gt(n),this)}hasLoadedLanguages(s){if(this.disposed)return!1;let n;return s.every(r=>this.attachedLanguages.has(r)?!0:Jt.has(r)?!1:(n??=this.raw.getLoadedLanguages(),n.includes(r)))}attachLanguages(s){this.assertNotDisposed();for(const n of s){if(this.attachedLanguages.has(n.name))continue;const r=n.data.find(l=>l.name===n.name||l.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);this.raw.loadLanguageSync(n.data);try{this.raw.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}this.attachedLanguages.add(n.name)}}releaseResources(){this.loadedThemes.clear(),this.attachedLanguages.clear(),this.raw.dispose()}resolveOptions({theme:s,themes:n,...r}){if(this.assertNotDisposed(),s!=null)return this.getTheme(s),{...r,theme:s};if(n==null)throw new Error("A theme or themes option is required");for(const l of Object.values(n))this.getTheme(l);return{...r,themes:n}}};export{he as ShikiHighlighter};
|