@intent-hq/web 2.315.0 → 2.316.0
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/{B36kU0RI.js → 1glN8WZR.js} +1 -1
- package/web/app/immutable/chunks/{C-jm3uXv.js → 2zl9S940.js} +6 -6
- package/web/app/immutable/chunks/{CIkNpS3P.js → 4GOFpkFz.js} +1 -1
- package/web/app/immutable/chunks/{bS-VFUYb.js → 5doW_7tI.js} +1 -1
- package/web/app/immutable/chunks/{Cuq9exmb.js → 62Z5FdlR.js} +1 -1
- package/web/app/immutable/chunks/{BA8g-07b.js → 6TqymR4w.js} +1 -1
- package/web/app/immutable/chunks/{ZaCkwnYl.js → 74ywEOg9.js} +1 -1
- package/web/app/immutable/chunks/{CMqLPRJh.js → 8CCC493y.js} +1 -1
- package/web/app/immutable/chunks/{DEmaG7Ya.js → 8mzXJxUW.js} +1 -1
- package/web/app/immutable/chunks/9c5nR9-O.js +1 -0
- package/web/app/immutable/chunks/{-EpgQj88.js → AQblmNcP.js} +1 -1
- package/web/app/immutable/chunks/{CpELl9t1.js → AXIAXE42.js} +3 -3
- package/web/app/immutable/chunks/B2mK5Z0v.js +4 -0
- package/web/app/immutable/chunks/{Swkg1pRS.js → B4r7cJNO.js} +1 -1
- package/web/app/immutable/chunks/{CpnUYFMu.js → B555xbMg.js} +1 -1
- package/web/app/immutable/chunks/{BDIALQgX.js → B5JU_-gP.js} +1 -1
- package/web/app/immutable/chunks/{jn5owXje.js → B5hFXalj.js} +1 -1
- package/web/app/immutable/chunks/{Csa9LtrA.js → B8NcRhEG.js} +1 -1
- package/web/app/immutable/chunks/{9GP6SafJ.js → B8W3QKCn.js} +1 -1
- package/web/app/immutable/chunks/{B1h0QCy7.js → B9HMXORu.js} +1 -1
- package/web/app/immutable/chunks/{BS-r7N3W.js → B9Y6nB-h.js} +1 -1
- package/web/app/immutable/chunks/{Dj42fWMH.js → BAm6Imyt.js} +1 -1
- package/web/app/immutable/chunks/{CD3v15Ti.js → BAop6WWJ.js} +1 -1
- package/web/app/immutable/chunks/{D22I-TIV.js → BELPi3nC.js} +1 -1
- package/web/app/immutable/chunks/{CtO7SsM-.js → BEZid-wN.js} +1 -1
- package/web/app/immutable/chunks/{eYob4ynm.js → BEm-LQiN.js} +1 -1
- package/web/app/immutable/chunks/{CUjmBXfD.js → BErHxpt7.js} +1 -1
- package/web/app/immutable/chunks/{BHJ90Mf-.js → BFyDkIbG.js} +1 -1
- package/web/app/immutable/chunks/{CjCXWRTy.js → BHdeiQcg.js} +1 -1
- package/web/app/immutable/chunks/{dyJEvFNA.js → BJHfEwR6.js} +1 -1
- package/web/app/immutable/chunks/{PeOOhaLn.js → BJjB6NZq.js} +1 -1
- package/web/app/immutable/chunks/{uDDQZzPe.js → BKLi8eiR.js} +1 -1
- package/web/app/immutable/chunks/{DXHWw6vt.js → BKsZlIeb.js} +2 -2
- package/web/app/immutable/chunks/{BzVDQRgL.js → BLhV_JPM.js} +1 -1
- package/web/app/immutable/chunks/{wc9xM_2L.js → BM8QRBST.js} +1 -1
- package/web/app/immutable/chunks/{WVbSHjXl.js → BOAcRQ1a.js} +1 -1
- package/web/app/immutable/chunks/{CfHhYnBc.js → BPGcNKLB.js} +1 -1
- package/web/app/immutable/chunks/{CHXEA9Fi.js → BP_Rhsa3.js} +4 -4
- package/web/app/immutable/chunks/{B7ZHl5_Y.js → BT0R4C2H.js} +1 -1
- package/web/app/immutable/chunks/{C8LKnqUt.js → BT2B_S_L.js} +1 -1
- package/web/app/immutable/chunks/{hUiIfi2t.js → BTNnUZgK.js} +1 -1
- package/web/app/immutable/chunks/{45Qi4YFf.js → BThHq8_S.js} +1 -1
- package/web/app/immutable/chunks/{Cwy3o6zK.js → BTp-Xr0J.js} +1 -1
- package/web/app/immutable/chunks/{DxI6kRYN.js → BWOGoqnm.js} +1 -1
- package/web/app/immutable/chunks/{D0UXbQbI.js → BXHRKzIU.js} +1 -1
- package/web/app/immutable/chunks/{DRONnAVY.js → BYFOQUHX.js} +1 -1
- package/web/app/immutable/chunks/{BM62R-OM.js → BZyiigVh.js} +1 -1
- package/web/app/immutable/chunks/{r3MPkSU0.js → B_0kLtnu.js} +1 -1
- package/web/app/immutable/chunks/{BsB-PCKs.js → B_B8ZYTz.js} +1 -1
- package/web/app/immutable/chunks/{Clc6wozH.js → B_Uva0b1.js} +1 -1
- package/web/app/immutable/chunks/{BsZr4pOk.js → BaXfVVMz.js} +1 -1
- package/web/app/immutable/chunks/{Bg4RpIu7.js → Bbn8lLgV.js} +1 -1
- package/web/app/immutable/chunks/Bd-hefoB.js +175 -0
- package/web/app/immutable/chunks/{DSyGSHPH.js → Bd7xQNwJ.js} +1 -1
- package/web/app/immutable/chunks/{ZpSdOcUX.js → BdGv2V1p.js} +1 -1
- package/web/app/immutable/chunks/{17xFUwtQ.js → BfvWNMdY.js} +2 -2
- package/web/app/immutable/chunks/{DbrsPlQk.js → BhFD9JDw.js} +1 -1
- package/web/app/immutable/chunks/{D60vJvLR.js → BhK5x93Y.js} +1 -1
- package/web/app/immutable/chunks/{D441f0lY.js → BhXAuYWB.js} +43 -43
- package/web/app/immutable/chunks/{cE62vW_i.js → BhaDL5L2.js} +2 -2
- package/web/app/immutable/chunks/{C7ilG2WB.js → BiJhyKRr.js} +1 -1
- package/web/app/immutable/chunks/{CMMABWQi.js → BiLRO_7d.js} +1 -1
- package/web/app/immutable/chunks/{DUjsEo3X.js → BjZBSon4.js} +1 -1
- package/web/app/immutable/chunks/{CIOSdkrK.js → BkAtFENJ.js} +1 -1
- package/web/app/immutable/chunks/{CLGCkXvY.js → Bl6S6Gmn.js} +1 -1
- package/web/app/immutable/chunks/{Czd6tfZA.js → BlBXbDCF.js} +1 -1
- package/web/app/immutable/chunks/{DDIYUGOD.js → BmKIrGAr.js} +1 -1
- package/web/app/immutable/chunks/{BTxL9if-.js → BnY3EDnN.js} +3 -3
- package/web/app/immutable/chunks/{CBRfvExq.js → BqUqwkFB.js} +1 -1
- package/web/app/immutable/chunks/{DcBvBE74.js → BqjV2AQl.js} +1 -1
- package/web/app/immutable/chunks/{D5arKTNF.js → Bqva_xpl.js} +1 -1
- package/web/app/immutable/chunks/{Bjzk9M3D.js → BszyP2Xm.js} +1 -1
- package/web/app/immutable/chunks/{qmO_2WOw.js → Bt3aaFF4.js} +1 -1
- package/web/app/immutable/chunks/{ja3pdsid.js → Bt8I_YBy.js} +1 -1
- package/web/app/immutable/chunks/{DbHbiWFj.js → BuJ6T8t6.js} +1 -1
- package/web/app/immutable/chunks/{DGvAL7MJ.js → BuNSu9iM.js} +1 -1
- package/web/app/immutable/chunks/{fKsoycU6.js → BvHhinme.js} +1 -1
- package/web/app/immutable/chunks/{2UOzeX2M.js → Bwg81p3K.js} +1 -1
- package/web/app/immutable/chunks/{CwR0GP6W.js → Bwgf8uVs.js} +1 -1
- package/web/app/immutable/chunks/{2j5TR93A.js → Bwn_Ebjg.js} +1 -1
- package/web/app/immutable/chunks/{CzzsK_z0.js → BxKNCFnk.js} +1 -1
- package/web/app/immutable/chunks/{BoXSGPEf.js → BxcHqD0Y.js} +2 -2
- package/web/app/immutable/chunks/{BP6KtsDA.js → BxgdFxC5.js} +1 -1
- package/web/app/immutable/chunks/{B2jOlwPp.js → BzbMU544.js} +1 -1
- package/web/app/immutable/chunks/{D0UrvUQM.js → C0GDF9vt.js} +1 -1
- package/web/app/immutable/chunks/{CzdJ5DN4.js → C17uhWft.js} +1 -1
- package/web/app/immutable/chunks/{DnMKNs0X.js → C2G5AP53.js} +3 -3
- package/web/app/immutable/chunks/{Cufik1EG.js → C2WXNTdR.js} +1 -1
- package/web/app/immutable/chunks/{CFrKPVp-.js → C4RhwIf-.js} +1 -1
- package/web/app/immutable/chunks/{D2QAvk7S.js → C4u6LQEf.js} +1 -1
- package/web/app/immutable/chunks/{DM1ZHS3Y.js → C5_6YJsU.js} +1 -1
- package/web/app/immutable/chunks/{Deg5jWhG.js → C74GZ40P.js} +1 -1
- package/web/app/immutable/chunks/{D1h8l9Ve.js → C7AhvdhC.js} +1 -1
- package/web/app/immutable/chunks/{BKJB_6oY.js → C7v_m4nu.js} +4 -4
- package/web/app/immutable/chunks/{CTX2aXUF.js → C8fjy-FP.js} +1 -1
- package/web/app/immutable/chunks/{dUOQ5AaY.js → C8iHXc33.js} +1 -1
- package/web/app/immutable/chunks/{B-8kHUzd.js → C9Fu7eOC.js} +1 -1
- package/web/app/immutable/chunks/{BMMcARVk.js → C9I4tasT.js} +1 -1
- package/web/app/immutable/chunks/{BW4xwD_u.js → CBp0U57i.js} +1 -1
- package/web/app/immutable/chunks/{Dd-BRJYG.js → CDeRPDfg.js} +1 -1
- package/web/app/immutable/chunks/{CEoXgs7Q.js → CEB_6XsH.js} +1 -1
- package/web/app/immutable/chunks/{CS74N62e.js → CH-kj_g1.js} +1 -1
- package/web/app/immutable/chunks/{B-P4veSb.js → CH1mzr4Y.js} +1 -1
- package/web/app/immutable/chunks/{B6o2T7JU.js → CHzb4PSN.js} +1 -1
- package/web/app/immutable/chunks/{BlQxdvN2.js → CI2w5V5f.js} +1 -1
- package/web/app/immutable/chunks/{UWOPR8uY.js → CJ-bHdsA.js} +2 -2
- package/web/app/immutable/chunks/{BZmsmL8P.js → CK7B4YgF.js} +1 -1
- package/web/app/immutable/chunks/{B6MVuluU.js → CMxkSXKy.js} +1 -1
- package/web/app/immutable/chunks/{CJzNuuJO.js → CTC_IBI6.js} +1 -1
- package/web/app/immutable/chunks/{DQ13AkOA.js → CU7uaRH8.js} +1 -1
- package/web/app/immutable/chunks/{CLSvSGMY.js → CUbl5iZL.js} +1 -1
- package/web/app/immutable/chunks/{D56XXK4f.js → CVRU8SPX.js} +1 -1
- package/web/app/immutable/chunks/{B-2_r0A5.js → CVUE3R4M.js} +1 -1
- package/web/app/immutable/chunks/{DTsLO4aV.js → C_Q7MGH6.js} +1 -1
- package/web/app/immutable/chunks/{DQHfY0wY.js → C_jLGOhH.js} +1 -1
- package/web/app/immutable/chunks/{dRknRrDn.js → CaC6IVGK.js} +1 -1
- package/web/app/immutable/chunks/{DMKbkua9.js → Ce4gTFkK.js} +1 -1
- package/web/app/immutable/chunks/{ChLTaT6L.js → CeJ1IeC2.js} +1 -1
- package/web/app/immutable/chunks/{tVfn9CHP.js → CerYTaaK.js} +1 -1
- package/web/app/immutable/chunks/{daoeIyG_.js → CfwdqJQZ.js} +1 -1
- package/web/app/immutable/chunks/{DnouAZbM.js → Ch1H5x_J.js} +1 -1
- package/web/app/immutable/chunks/{DV6UkZ5a.js → Chd5ygT7.js} +1 -1
- package/web/app/immutable/chunks/{B9pexpLt.js → Cj4zs9c7.js} +1 -1
- package/web/app/immutable/chunks/{HpMdkrj7.js → ClUXFe3K.js} +1 -1
- package/web/app/immutable/chunks/{BGkYz2ud.js → ClcxSKls.js} +1 -1
- package/web/app/immutable/chunks/{DrxYPSVr.js → Cn8aeQJj.js} +1 -1
- package/web/app/immutable/chunks/{j-Hd81da.js → CnnMkIrL.js} +1 -1
- package/web/app/immutable/chunks/{DW_tfZdS.js → CpIRKvcy.js} +3 -3
- package/web/app/immutable/chunks/{JchQH-Q8.js → Cpp_fX-J.js} +1 -1
- package/web/app/immutable/chunks/{IIdGbw6g.js → Cq2f0FWN.js} +1 -1
- package/web/app/immutable/chunks/{hYDzZ9as.js → CqJpu93-.js} +1 -1
- package/web/app/immutable/chunks/{BLyNH-U9.js → CqR1Tb6M.js} +1 -1
- package/web/app/immutable/chunks/{B-7spAu4.js → CsEnNURD.js} +1 -1
- package/web/app/immutable/chunks/{Q95-G3Tv.js → Csc1-9uJ.js} +1 -1
- package/web/app/immutable/chunks/{CVr9pwFM.js → Cscrr3Bj.js} +1 -1
- package/web/app/immutable/chunks/{D38Ru3z6.js → Csm7pADB.js} +1 -1
- package/web/app/immutable/chunks/{gIgvBwPt.js → CtZ1ayFi.js} +1 -1
- package/web/app/immutable/chunks/{82qiqofo.js → Ctd97c_e.js} +1 -1
- package/web/app/immutable/chunks/{6Rt8MvWn.js → Cvz2UPkQ.js} +1 -1
- package/web/app/immutable/chunks/{CZikPtVV.js → Cy5dtLUp.js} +1 -1
- package/web/app/immutable/chunks/{DJZIU3cR.js → Cy_Sd6l-.js} +1 -1
- package/web/app/immutable/chunks/{CXnUJFR2.js → CzJ1Hiue.js} +1 -1
- package/web/app/immutable/chunks/{Dvap-Bcg.js → CzPegY-l.js} +2 -2
- package/web/app/immutable/chunks/{Br9IA-Ja.js → Czwx3NuT.js} +1 -1
- package/web/app/immutable/chunks/{1r2-2NoO.js → D-G3HkWg.js} +1 -1
- package/web/app/immutable/chunks/{AJN9mSFe.js → D0UbOYAT.js} +1 -1
- package/web/app/immutable/chunks/{_pUPWAkF.js → D2F-bT-3.js} +1 -1
- package/web/app/immutable/chunks/{C5DgMO0u.js → D3KzRi1O.js} +3 -3
- package/web/app/immutable/chunks/{yJa3kvR1.js → D3wKW8Yy.js} +1 -1
- package/web/app/immutable/chunks/{BcI-R0js.js → D5FE11xl.js} +1 -1
- package/web/app/immutable/chunks/{Co0AVCAv.js → D5eIiHgJ.js} +1 -1
- package/web/app/immutable/chunks/D5sm9-9m.js +1 -0
- package/web/app/immutable/chunks/{i8qNDIdz.js → DA9qzIbq.js} +1 -1
- package/web/app/immutable/chunks/{DLueLf8l.js → DBctQLOE.js} +1 -1
- package/web/app/immutable/chunks/{E-3i0Fur.js → DD-yOgIr.js} +3 -3
- package/web/app/immutable/chunks/{DmYZE-MO.js → DGcEmYiM.js} +3 -3
- package/web/app/immutable/chunks/{CoJeJSLc.js → DIAJO_LS.js} +1 -1
- package/web/app/immutable/chunks/{BhfbTmVQ.js → DJSQX3k0.js} +1 -1
- package/web/app/immutable/chunks/DJyvWKRG.js +324 -0
- package/web/app/immutable/chunks/{BkDFndY7.js → DLPrhDSX.js} +1 -1
- package/web/app/immutable/chunks/{B9xm9DK7.js → DMMQmvHP.js} +1 -1
- package/web/app/immutable/chunks/{Cso7NntT.js → DO2w7Gng.js} +1 -1
- package/web/app/immutable/chunks/{C3vS1byi.js → DQuBNfnJ.js} +1 -1
- package/web/app/immutable/chunks/{Cpn3qWfd.js → DRL0ipNV.js} +1 -1
- package/web/app/immutable/chunks/{BPhG_Xtj.js → DTDbbaAA.js} +2 -2
- package/web/app/immutable/chunks/{BL1pyapR.js → DTF_sUmd.js} +1 -1
- package/web/app/immutable/chunks/{CnodaVJ0.js → DTww5KdO.js} +2 -2
- package/web/app/immutable/chunks/{9CybJbHN.js → DUo2AvdE.js} +1 -1
- package/web/app/immutable/chunks/{D90jQ3ZZ.js → DVexJC2P.js} +1 -1
- package/web/app/immutable/chunks/{C4C2GjZ7.js → DYFYZyyQ.js} +1 -1
- package/web/app/immutable/chunks/{CqSXeJtk.js → DYpVqbU_.js} +1 -1
- package/web/app/immutable/chunks/{AStlTL_B.js → D_Jfn1sb.js} +1 -1
- package/web/app/immutable/chunks/{DhZDbKoP.js → Da50wjjU.js} +1 -1
- package/web/app/immutable/chunks/{CjGoJ5M9.js → Danz4ZHe.js} +2 -2
- package/web/app/immutable/chunks/{DNOlba2e.js → DeIPtFY7.js} +1 -1
- package/web/app/immutable/chunks/{BbGlxyDx.js → DghTaRWn.js} +1 -1
- package/web/app/immutable/chunks/{DZhHioOL.js → DhpN74ze.js} +1 -1
- package/web/app/immutable/chunks/{6vbvyEDW.js → DicP-4Ux.js} +1 -1
- package/web/app/immutable/chunks/DjccPgw3.js +1 -0
- package/web/app/immutable/chunks/{ClgzRlxs.js → DlpZXKDW.js} +1 -1
- package/web/app/immutable/chunks/{CrskbTlC.js → DoZKSrzO.js} +1 -1
- package/web/app/immutable/chunks/DrBgcA42.js +271 -0
- package/web/app/immutable/chunks/{CTKJUmq_.js → DrZ_vbcS.js} +1 -1
- package/web/app/immutable/chunks/Ds-VHujS.js +1 -0
- package/web/app/immutable/chunks/Ds24foTJ.js +1 -0
- package/web/app/immutable/chunks/{Uxor6krE.js → DtmpL-rV.js} +2 -2
- package/web/app/immutable/chunks/{etKulcEH.js → DwqmbD5O.js} +1 -1
- package/web/app/immutable/chunks/{h8IoI-w7.js → DzNB7FSW.js} +1 -1
- package/web/app/immutable/chunks/{DXYkWPe_.js → DzR_YoBw.js} +1 -1
- package/web/app/immutable/chunks/E2zwcBGL.js +1 -0
- package/web/app/immutable/chunks/{DBOoSzzw.js → EeKDICqL.js} +1 -1
- package/web/app/immutable/chunks/{DCdW5wmG.js → FFV3FwPO.js} +1 -1
- package/web/app/immutable/chunks/{BwdewdLu.js → HRWMjwjy.js} +1 -1
- package/web/app/immutable/chunks/{DyHgOFFg.js → HXa_-lAP.js} +1 -1
- package/web/app/immutable/chunks/{H0ZjbDhN.js → HpeAdZWP.js} +1 -1
- package/web/app/immutable/chunks/{4GsjZWx0.js → IbdXBatB.js} +1 -1
- package/web/app/immutable/chunks/{DdHsJ0nA.js → M-RI-1vB.js} +1 -1
- package/web/app/immutable/chunks/{QihShgnK.js → M2l9pCLN.js} +1 -1
- package/web/app/immutable/chunks/{DWhtEEhJ.js → McgjWRB8.js} +1 -1
- package/web/app/immutable/chunks/{BWdRpmh3.js → S0XLmGl_.js} +1 -1
- package/web/app/immutable/chunks/{CiJSzLSf.js → SOLcVUIP.js} +1 -1
- package/web/app/immutable/chunks/{CZBUuakO.js → SZtG0tfF.js} +2 -2
- package/web/app/immutable/chunks/{D-b9zJlt.js → SwYsdc6L.js} +1 -1
- package/web/app/immutable/chunks/{DCPTVyDU.js → TPQ55key.js} +21 -21
- package/web/app/immutable/chunks/{BW4yj8m7.js → Tb27NKxS.js} +1 -1
- package/web/app/immutable/chunks/{D43c7AFS.js → XFUNRL9U.js} +1 -1
- package/web/app/immutable/chunks/{DsRw0NLx.js → Y5wgJgL5.js} +2 -2
- package/web/app/immutable/chunks/{BX6Kopvz.js → ZEivDyvD.js} +1 -1
- package/web/app/immutable/chunks/{D8NOVJ50.js → _1A-m7jq.js} +1 -1
- package/web/app/immutable/chunks/{Dr41JWYu.js → cHqVrdKP.js} +1 -1
- package/web/app/immutable/chunks/{BYevJ1Pj.js → d-ok7Yxa.js} +1 -1
- package/web/app/immutable/chunks/{DNFEdIdv.js → fMqAYDMd.js} +1 -1
- package/web/app/immutable/chunks/{DaCSSt4n.js → fO0LvqUI.js} +1 -1
- package/web/app/immutable/chunks/{CV9PEzoB.js → fsEhp3Sj.js} +1 -1
- package/web/app/immutable/chunks/{BS1nq856.js → hr4poPaj.js} +1 -1
- package/web/app/immutable/chunks/{DIYS_mcw.js → jnCaD4Bx.js} +1 -1
- package/web/app/immutable/chunks/{Cti1rV_x.js → kWExXPwX.js} +1 -1
- package/web/app/immutable/chunks/{BQupMMp-.js → kzAypc75.js} +1 -1
- package/web/app/immutable/chunks/{CLkwa_R_.js → lgBKvbLS.js} +1 -1
- package/web/app/immutable/chunks/nSg13blK.js +2 -0
- package/web/app/immutable/chunks/{BI7cYdMD.js → oHcSo1N7.js} +3 -3
- package/web/app/immutable/chunks/{DE0RJrWM.js → oZs6h9cF.js} +1 -1
- package/web/app/immutable/chunks/{D9Da4bYx.js → odoS0oyP.js} +1 -1
- package/web/app/immutable/chunks/{DYlSkPA-.js → qj_I7waa.js} +1 -1
- package/web/app/immutable/chunks/{CPS8yuKp.js → s2lvYQ3O.js} +1 -1
- package/web/app/immutable/chunks/{Pb7J418u.js → udwlX3ME.js} +1 -1
- package/web/app/immutable/chunks/{C5-HTPPK.js → voSxo36n.js} +1 -1
- package/web/app/immutable/chunks/{Ch8MPJbT.js → yU3kgZB6.js} +1 -1
- package/web/app/immutable/entry/{app.rwgCwLre.js → app.CK6wucgi.js} +3 -3
- package/web/app/immutable/entry/start.C0Bjrt_E.js +1 -0
- package/web/app/immutable/nodes/{0.CAiwn7VU.js → 0.mmgsFnA_.js} +1 -1
- package/web/app/immutable/nodes/{1.4C-qOEjD.js → 1.B9qwueU_.js} +1 -1
- package/web/app/immutable/nodes/{10.CSnI2pUC.js → 10.BBnulRNq.js} +1 -1
- package/web/app/immutable/nodes/{11.DeNilyai.js → 11.CIaPPQvs.js} +1 -1
- package/web/app/immutable/nodes/{12.ySK4H8-2.js → 12.CO3XhA4p.js} +1 -1
- package/web/app/immutable/nodes/{13._q8cT7vQ.js → 13.x3qcbpU-.js} +3 -3
- package/web/app/immutable/nodes/{14.BVMi0m8a.js → 14.Dnzj-FkG.js} +3 -3
- package/web/app/immutable/nodes/{15.DZYm8wgy.js → 15.CQMgeYc5.js} +1 -1
- package/web/app/immutable/nodes/{16.2kka0tX2.js → 16.uElio-_B.js} +2 -2
- package/web/app/immutable/nodes/{2.BOqim1UO.js → 2.CWwIVRNX.js} +4 -4
- package/web/app/immutable/nodes/{3.rvoF1b9l.js → 3.jpKSaCNS.js} +1 -1
- package/web/app/immutable/nodes/{4.COWGFPUE.js → 4.CWq9I9HW.js} +1 -1
- package/web/app/immutable/nodes/{5.ClB4PiMc.js → 5.Didp-xcw.js} +2 -2
- package/web/app/immutable/nodes/{6.B09HHXQ8.js → 6.BGSR4qYh.js} +1 -1
- package/web/app/immutable/nodes/{7.ivApEpSz.js → 7.CUn8qcxK.js} +1 -1
- package/web/app/immutable/nodes/{8.BSIvYD1L.js → 8.LckDhQwk.js} +12 -12
- package/web/app/immutable/nodes/{9.C9K9J_Xm.js → 9.DAasT3Wd.js} +5 -5
- 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/B3iaLYr6.js +0 -1
- package/web/app/immutable/chunks/BLUkoS8T.js +0 -2
- package/web/app/immutable/chunks/CA0a6eNp.js +0 -1
- package/web/app/immutable/chunks/CPxyG9KJ.js +0 -271
- package/web/app/immutable/chunks/DHNO0898.js +0 -175
- package/web/app/immutable/chunks/DMkYHym4.js +0 -324
- package/web/app/immutable/chunks/DhLTyNrj.js +0 -1
- package/web/app/immutable/chunks/DsAKyTjw.js +0 -4
- package/web/app/immutable/chunks/DuQiXW7a.js +0 -1
- package/web/app/immutable/chunks/FAATYx56.js +0 -1
- package/web/app/immutable/chunks/ye8JXfxU.js +0 -1
- package/web/app/immutable/entry/start.CHX_XseY.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var tn=Object.defineProperty;var $t=i=>{throw TypeError(i)};var rn=(i,e,t)=>e in i?tn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var L=(i,e,t)=>rn(i,typeof e!="symbol"?e+"":e,t),St=(i,e,t)=>e.has(i)||$t("Cannot "+t);var h=(i,e,t)=>(St(i,e,"read from private field"),t?t.call(i):e.get(i)),H=(i,e,t)=>e.has(i)?$t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ne=(i,e,t,r)=>(St(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Pe=(i,e,t)=>(St(i,e,"access private method"),t);import{t as ee,bq as d,a_ as $,by as te,b as re,br as ye,bt as _e,bo as er}from"./B3iaLYr6.js";import{c9 as I,aD as n,bs as ne,a7 as q,ay as F,W as P,bn as oe,aA as u,aB as J,bH as k,bV as Y,bi as nn,ca as de,cb as on,bf as ae,bo as Oe,a5 as Z,bA as Q,bS as Ee,bI as hr,aG as Ct,c5 as sn,bl as gr,b_ as Se,bO as an,br as pr,at as ln,bk as dn,c0 as Et}from"./DYhIMPy1.js";import{s as j}from"./hUiIfi2t.js";import{c as ve}from"./Dj42fWMH.js";import{e as un,k as cn,g as hn,c as gn,i as pn,f as fn,b as vn,s as mn,j as bn}from"./82qiqofo.js";import{c as se,h as Tt,f as ue,k as Me,a as bt,d as vt,o as yn,j as wn,s as fr}from"./DEmaG7Ya.js";import{bI as xn,bn as ce,aI as _n,b4 as In,h as Dt,av as Ie,D as Nt,i as Cn,d as le,a as me,l as yt,ad as kt,ak as wt,a2 as Ft,K as Kt,a1 as Bt,E as Wt,bo as vr,bB as mr,aZ as br,aB as yr,aE as Ut,b1 as qt,aF as wr,bM as be,bi as Nn,bu as Pn,b3 as Sn,b2 as kn,aH as tr,au as xr,a6 as On,aJ as U,aS as En,m as _r,b as Tn,c as An,a8 as Mn,C as Rn,g as Hn,A as Ln,M as Vn,F as Dn,r as Fn,s as Kn,t as Bn,u as Wn,v as Un,w as qn,x as zn,y as Gn,o as Yn,p as jn,q as Jn,B as Xn,z as Zn,aT as he,bp as X,a4 as Ir,a3 as Cr,bw as Qn,H as $n,f as eo,bJ as Nr,a5 as to}from"./CpELl9t1.js";import{F as Pr,av as ro,bW as no,ax as oo,at as so}from"./dUOQ5AaY.js";import{b as io}from"./BaIAhI85.js";import{E as ao}from"./CBRfvExq.js";import{H as rr,g as nr,S as ft}from"./6Rt8MvWn.js";import{c as lo,u as uo,s as co}from"./DfxQWSVU.js";import"./BMMcARVk.js";const Sr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};xn(Sr);var Re,_t;class ho{constructor(e,t){H(this,Re,()=>{});H(this,_t,I(()=>h(this,Re).call(this)));let r;t!==void 0&&(r=t),Ne(this,Re,()=>{try{return r}finally{r=e()}})}get current(){return n(h(this,_t))}}Re=new WeakMap,_t=new WeakMap;var go=new Set(["$$slots","$$events","$$legacy","value"]),or=J("<input/>");function kr(i,e){if(new.target)return ee({component:kr,...i});ne(e,!0);let t=d(e,"value",15),r=ye(e,go);const o=I(()=>ce(r,{"aria-hidden":"true",tabindex:-1,style:{...Sr,position:"absolute",top:"0",left:"0"}}));var s={get value(){return t()},set value(l){t(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},a=q(),g=F(a);{var _=l=>{var c=or();se(c,()=>({...n(o),value:t()}),void 0,void 0,void 0,void 0,!0),P(l,c)},m=l=>{var c=or();se(c,()=>({...n(o)}),void 0,void 0,void 0,void 0,!0),un(c,t),P(l,c)};$(g,l=>{n(o).type==="checkbox"?l(_):l(m,-1)})}return P(i,a),oe(s)}var pe,we,fe;class po{constructor(e){H(this,pe);H(this,we,I(()=>h(this,pe).candidateValues()));H(this,fe);Ne(this,pe,e),Ne(this,fe,_n("",{afterMs:1e3,getWindow:h(this,pe).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!h(this,pe).enabled()||!n(h(this,we)).length)return;h(this,fe).current=h(this,fe).current+e;const t=h(this,pe).getCurrentItem(),r=n(h(this,we)).find(g=>g===t)??"",o=n(h(this,we)).map(g=>g??""),s=In(o,h(this,fe).current,r),a=n(h(this,we)).find(g=>g===s);return a&&h(this,pe).onMatch(a),a}resetTypeahead(){h(this,fe).current=""}}pe=new WeakMap,we=new WeakMap,fe=new WeakMap;const sr=[Tn,_r,An,Mn,Rn,Hn,Ln,Vn,yt,Dn,Fn,Kn,Bn,Wn,Un,qn,zn,Gn,Yn,jn,Jn],fo=[me,Ft,Kt],vo=[le,Bt,Wt],Or=[...fo,...vo],mo=En({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Ce=new Dt("Select.Root | Combobox.Root"),Er=new Dt("Select.Group | Combobox.Group"),Tr=new Dt("Select.Content | Combobox.Content");var He,Le,Ve,De,Fe,Ke,Be,We,Ue,qe,ze,Ge;class Ar{constructor(e){L(this,"opts");H(this,He,Y(!1));H(this,Le,Y(null));H(this,Ve,Y(null));L(this,"contentPresence");H(this,De,Y(null));H(this,Fe,Y(null));H(this,Ke,Y(null));H(this,Be,Y(""));H(this,We,Y(null));H(this,Ue,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));H(this,qe,I(()=>{if(this.highlightedNode)return this.highlightedNode.id}));H(this,ze,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));H(this,Ge,Y(!1));L(this,"isUsingKeyboard",!1);L(this,"isCombobox",!1);L(this,"domContext",new Nt(()=>null));L(this,"getBitsAttr",e=>mo.getAttr(e,this.isCombobox?"combobox":void 0));this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new On({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),on(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return n(h(this,He))}set touchedInput(e){k(h(this,He),e,!0)}get inputNode(){return n(h(this,Le))}set inputNode(e){k(h(this,Le),e,!0)}get contentNode(){return n(h(this,Ve))}set contentNode(e){k(h(this,Ve),e,!0)}get viewportNode(){return n(h(this,De))}set viewportNode(e){k(h(this,De),e,!0)}get triggerNode(){return n(h(this,Fe))}set triggerNode(e){k(h(this,Fe),e,!0)}get valueNode(){return n(h(this,Ke))}set valueNode(e){k(h(this,Ke),e,!0)}get valueId(){return n(h(this,Be))}set valueId(e){k(h(this,Be),e,!0)}get highlightedNode(){return n(h(this,We))}set highlightedNode(e){k(h(this,We),e,!0)}get highlightedValue(){return n(h(this,Ue))}set highlightedValue(e){k(h(this,Ue),e)}get highlightedId(){return n(h(this,qe))}set highlightedId(e){k(h(this,qe),e)}get highlightedLabel(){return n(h(this,ze))}set highlightedLabel(e){k(h(this,ze),e)}get contentIsPositioned(){return n(h(this,Ge))}set contentIsPositioned(e){k(h(this,Ge),e,!0)}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&this.scrollHighlightedNodeIntoView(e)}scrollHighlightedNodeIntoView(e){!this.viewportNode||!this.contentIsPositioned||e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){const r=this.viewportNode.getBoundingClientRect();t=t.filter(o=>{if(!this.viewportNode)return!1;const s=o.getBoundingClientRect();return s.right<=r.right&&s.left>=r.left&&s.bottom<=r.bottom&&s.top>=r.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(r=>r.dataset.value===e)??null}getLabelForValue(e){if(e==="")return"";const t=this.opts.items.current.find(o=>o.value===e)?.label;if(t!==void 0)return t;const r=this.getNodeByValue(e);if(r){const o=r.getAttribute("data-label");return o!==null&&o!==""?o:r.textContent?.trim()??e}return e}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}He=new WeakMap,Le=new WeakMap,Ve=new WeakMap,De=new WeakMap,Fe=new WeakMap,Ke=new WeakMap,Be=new WeakMap,We=new WeakMap,Ue=new WeakMap,qe=new WeakMap,ze=new WeakMap,Ge=new WeakMap;var Ye,je,Je,Xe;class bo extends Ar{constructor(t){super(t);L(this,"opts");L(this,"isMulti",!1);H(this,Ye,I(()=>this.opts.value.current!==""));H(this,je,I(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":""));H(this,Je,I(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]));H(this,Xe,I(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=t,de(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),be(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,Ye))}set hasValue(t){k(h(this,Ye),t)}get currentLabel(){return n(h(this,je))}set currentLabel(t){k(h(this,je),t)}get candidateLabels(){return n(h(this,Je))}set candidateLabels(t){k(h(this,Je),t)}get dataTypeaheadEnabled(){return n(h(this,Xe))}set dataTypeaheadEnabled(t){k(h(this,Xe),t)}includesItem(t){return this.opts.value.current===t}toggleItem(t,r=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=r)}setInitialHighlightedNode(){xr(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ye=new WeakMap,je=new WeakMap,Je=new WeakMap,Xe=new WeakMap;var Ze;class yo extends Ar{constructor(t){super(t);L(this,"opts");L(this,"isMulti",!0);H(this,Ze,I(()=>this.opts.value.current.length>0));this.opts=t,de(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),be(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,Ze))}set hasValue(t){k(h(this,Ze),t)}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,r=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=r}setInitialHighlightedNode(){xr(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ze=new WeakMap;class wo{static create(e){const{type:t,...r}=e,o=t==="single"?new bo(r):new yo(r);return Ce.set(o)}}var Qe;const zt=class zt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,Qe,I(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":wr(this.root.opts.open.current),"data-state":qt(this.root.opts.open.current),"data-disabled":Ut(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.inputNode=r),this.root.domContext=new Nt(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),be([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([r,o],[s])=>{o&&(Array.isArray(r)&&Array.isArray(s)?r.length===0&&s.length!==0&&(this.root.opts.inputValue.current=""):r===""&&s!==""&&(this.root.opts.inputValue.current=""))})}static create(e){return new zt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==_r){if((e.key===le||e.key===me)&&e.preventDefault(),!this.root.opts.open.current){if(sr.includes(e.key)||e.key===wt||e.key===Xn&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===me){const r=t[0];this.root.setHighlightedNode(r)}else if(e.key===le){const r=t[t.length-1];this.root.setHighlightedNode(r)}return}if(e.key===wt){this.root.handleClose();return}if(e.key===yt&&!e.isComposing){e.preventDefault();const t=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t&&this.root.handleClose()}if(e.key===le&&e.altKey&&this.root.handleClose(),Or.includes(e.key)){e.preventDefault();const t=this.root.getCandidateNodes(),r=this.root.highlightedNode,o=r?t.indexOf(r):-1,s=this.root.opts.loop.current;let a;if(e.key===me?a=vr(t,o,s):e.key===le?a=mr(t,o,s):e.key===Bt?a=br(t,o,10,s):e.key===Ft?a=yr(t,o,10,s):e.key===Kt?a=t[0]:e.key===Wt&&(a=t[t.length-1]),!a)return;this.root.setHighlightedNode(a);return}sr.includes(e.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(e){this.root.opts.inputValue.current=e.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return n(h(this,Qe))}set props(e){k(h(this,Qe),e)}};Qe=new WeakMap;let ir=zt;var xe,ke,ge,Mr,Mt,Rt,$e;const Gt=class Gt{constructor(e,t){H(this,ge);L(this,"opts");L(this,"root");L(this,"attachment");H(this,xe);H(this,ke);H(this,$e,I(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":wr(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":qt(this.root.opts.open.current),"data-disabled":Ut(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.triggerNode=r),this.root.domContext=new Nt(e.ref),Ne(this,xe,new Cn({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Ne(this,ke,new po({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:r=>{if(this.root.isMulti||!this.root.opts.items.current)return;const o=this.root.opts.items.current.find(s=>s.label===r);o&&(this.root.opts.value.current=o.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return new Gt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===le||e.key===me)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===yt||e.key===kt||e.key===me||e.key===le)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){h(this,ke).handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const a=this.root.getCandidateNodes();if(!a.length)return;if(e.key===me){const g=a[0];this.root.setHighlightedNode(g)}else if(e.key===le){const g=a[a.length-1];this.root.setHighlightedNode(g)}return}if(e.key===wt){this.root.handleClose();return}if((e.key===yt||e.key===kt&&h(this,xe).search==="")&&!e.isComposing&&(e.preventDefault(),Pe(this,ge,Rt).call(this)))return;if(e.key===le&&e.altKey&&this.root.handleClose(),Or.includes(e.key)){e.preventDefault();const a=this.root.getCandidateNodes(),g=this.root.highlightedNode,_=g?a.indexOf(g):-1,m=this.root.opts.loop.current;let l;if(e.key===me?l=vr(a,_,m):e.key===le?l=mr(a,_,m):e.key===Bt?l=br(a,_,10,m):e.key===Ft?l=yr(a,_,10,m):e.key===Kt?l=a[0]:e.key===Wt&&(l=a[a.length-1]),!l)return;this.root.setHighlightedNode(l);return}const t=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1,o=e.key===kt,s=this.root.getCandidateNodes();if(e.key!==wt){if(!t&&(r||o)){!h(this,xe).handleTypeaheadSearch(e.key,s)&&o&&(e.preventDefault(),Pe(this,ge,Rt).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(e){e.currentTarget.focus()}onpointerdown(e){if(this.root.opts.disabled.current)return;if(e.pointerType==="touch")return e.preventDefault();const t=e.target;t?.hasPointerCapture(e.pointerId)&&t?.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(this.root.opts.open.current===!1?Pe(this,ge,Mt).call(this,e):this.root.handleClose())}onpointerup(e){this.root.opts.disabled.current||(e.preventDefault(),e.pointerType==="touch"&&(this.root.opts.open.current===!1?Pe(this,ge,Mt).call(this,e):this.root.handleClose()))}get props(){return n(h(this,$e))}set props(e){k(h(this,$e),e)}};xe=new WeakMap,ke=new WeakMap,ge=new WeakSet,Mr=function(){this.root.opts.open.current=!0,h(this,ke).resetTypeahead(),h(this,xe).resetTypeahead()},Mt=function(e){Pe(this,ge,Mr).call(this)},Rt=function(){const e=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e?(this.root.handleClose(),!0):!1)},$e=new WeakMap;let At=Gt;var et,It,tt,rt;const Yt=class Yt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,et,Y(!1));L(this,"domContext");H(this,It,I(()=>Sn(this.root.isCombobox?"combobox":"select")));L(this,"onInteractOutside",e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});L(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});L(this,"onOpenAutoFocus",e=>{e.preventDefault()});L(this,"onCloseAutoFocus",e=>{e.preventDefault()});H(this,tt,I(()=>({open:this.root.opts.open.current})));H(this,rt,I(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":qt(this.root.opts.open.current),...kn(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...n(h(this,It))},onpointermove:this.onpointermove,...this.attachment})));L(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.contentNode=r),this.domContext=new Nt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Pn(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),be(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),be([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(e){return Tr.set(new Yt(e,Ce.get()))}get isPositioned(){return n(h(this,et))}set isPositioned(e){k(h(this,et),e,!0)}onpointermove(e){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return n(h(this,tt))}set snippetProps(e){k(h(this,tt),e)}get props(){return n(h(this,rt))}set props(e){k(h(this,rt),e)}};et=new WeakMap,It=new WeakMap,tt=new WeakMap,rt=new WeakMap;let xt=Yt;var nt,ot,st,it,at;const jt=class jt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,nt,I(()=>this.root.includesItem(this.opts.value.current)));H(this,ot,I(()=>this.root.highlightedValue===this.opts.value.current));L(this,"prevHighlighted",new ho(()=>this.isHighlighted));H(this,st,Y(!1));H(this,it,I(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));H(this,at,I(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Ut(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref),be([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),be(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(e){return new jt(e,Ce.get())}get isSelected(){return n(h(this,nt))}set isSelected(e){k(h(this,nt),e)}get isHighlighted(){return n(h(this,ot))}set isHighlighted(e){k(h(this,ot),e)}get mounted(){return n(h(this,st))}set mounted(e){k(h(this,st),e,!0)}handleSelect(){if(this.opts.disabled.current)return;const e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}get snippetProps(){return n(h(this,it))}set snippetProps(e){k(h(this,it),e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!Nn){nn(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return n(h(this,at))}set props(e){k(h(this,at),e)}};nt=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,at=new WeakMap;let Ht=jt;var lt,dt;const Jt=class Jt{constructor(e,t){L(this,"opts");L(this,"root");H(this,lt,Y(null));L(this,"attachment");H(this,dt,I(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref)}static create(e){return Er.set(new Jt(e,Ce.get()))}get labelNode(){return n(h(this,lt))}set labelNode(e){k(h(this,lt),e,!0)}get props(){return n(h(this,dt))}set props(e){k(h(this,dt),e)}};lt=new WeakMap,dt=new WeakMap;let ar=Jt;var ut;const Xt=class Xt{constructor(e,t){L(this,"opts");L(this,"group");L(this,"attachment");H(this,ut,I(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=e,this.group=t,this.attachment=Ie(e.ref,r=>this.group.labelNode=r)}static create(e){return new Xt(e,Er.get())}get props(){return n(h(this,ut))}set props(e){k(h(this,ut),e)}};ut=new WeakMap;let lr=Xt;var ct,ht;const Zt=class Zt{constructor(e,t){L(this,"opts");L(this,"root");H(this,ct,I(()=>this.root.opts.name.current!==""));H(this,ht,I(()=>({disabled:tr(this.root.opts.disabled.current),required:tr(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}static create(e){return new Zt(e,Ce.get())}get shouldRender(){return n(h(this,ct))}set shouldRender(e){k(h(this,ct),e)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return n(h(this,ht))}set props(e){k(h(this,ht),e)}};ct=new WeakMap,ht=new WeakMap;let Lt=Zt;var gt,pt;const Qt=class Qt{constructor(e,t){L(this,"opts");L(this,"content");L(this,"root");L(this,"attachment");H(this,gt,Y(0));H(this,pt,I(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=e,this.content=t,this.root=t.root,this.attachment=Ie(e.ref,r=>{this.root.viewportNode=r})}static create(e){return new Qt(e,Tr.get())}get prevScrollTop(){return n(h(this,gt))}set prevScrollTop(e){k(h(this,gt),e,!0)}get props(){return n(h(this,pt))}set props(e){k(h(this,pt),e)}};gt=new WeakMap,pt=new WeakMap;let Vt=Qt;function mt(i,e){if(new.target)return ee({component:mt,...i});ne(e,!0);let t=d(e,"value",15),r=d(e,"autocomplete",7);const o=Lt.create({value:U(()=>t())});var s={get value(){return t()},set value(m){t(m),u()},get autocomplete(){return r()},set autocomplete(m){r(m),u()},$set:te,$on:(m,l)=>re(e,m,l)},a=q(),g=F(a);{var _=m=>{kr(m,_e(()=>o.props,{get autocomplete(){return r()},get value(){return t()},set value(l){t(l)}}))};$(g,m=>{o.shouldRender&&m(_)})}return P(i,a),oe(s)}function Rr(i,e){if(new.target)return ee({component:Rr,...i});ne(e,!0);let t=d(e,"id",7),r=d(e,"children",7),o=d(e,"virtualEl",7),s=d(e,"ref",7),a=d(e,"tooltip",7,!1);Zn.create({id:U(()=>t()),virtualEl:U(()=>o()),ref:s()},a());var g={get id(){return t()},set id(l){t(l),u()},get children(){return r()},set children(l){r(l),u()},get virtualEl(){return o()},set virtualEl(l){o(l),u()},get ref(){return s()},set ref(l){s(l),u()},get tooltip(){return a()},set tooltip(l=!1){a(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},_=q(),m=F(_);return j(m,()=>r()??ae),P(i,_),oe(g)}var xo=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),dr=J("<div><div><!></div></div>");function Hr(i,e){const t=Oe();if(new.target)return ee({component:Hr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),a=d(e,"side",7,"bottom"),g=d(e,"onInteractOutside",7,X),_=d(e,"onEscapeKeydown",7,X),m=d(e,"children",7),l=d(e,"child",7),c=d(e,"preventScroll",7,!1),T=d(e,"style",7),O=ye(e,xo);const f=xt.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),onInteractOutside:U(()=>g()),onEscapeKeydown:U(()=>_())}),y=I(()=>ce(O,f.props));var b={get id(){return r()},set id(p=he(t)){r(p),u()},get ref(){return o()},set ref(p=null){o(p),u()},get forceMount(){return s()},set forceMount(p=!1){s(p),u()},get side(){return a()},set side(p="bottom"){a(p),u()},get onInteractOutside(){return g()},set onInteractOutside(p=X){g(p),u()},get onEscapeKeydown(){return _()},set onEscapeKeydown(p=X){_(p),u()},get children(){return m()},set children(p){m(p),u()},get child(){return l()},set child(p){l(p),u()},get preventScroll(){return c()},set preventScroll(p=!1){c(p),u()},get style(){return T()},set style(p){T(p),u()},$set:te,$on:(p,V)=>re(e,p,V)},E=q(),R=F(E);{var G=p=>{Ir(p,_e(()=>n(y),()=>f.popperProps,{get ref(){return f.opts.ref},get side(){return a()},get enabled(){return f.root.opts.open.current},get id(){return r()},get preventScroll(){return c()},forceMount:!0,get shouldRender(){return f.shouldRender},popper:(N,w)=>{let M=()=>(w?.()).props,B=()=>(w?.()).wrapperProps;const x=I(()=>ce(M(),{style:f.props.style},{style:T()}));var D=q(),W=F(D);{var K=S=>{var A=q(),z=F(A);{let ie=I(()=>({props:n(x),wrapperProps:B(),...f.snippetProps}));j(z,l,()=>n(ie))}P(S,A)},C=S=>{var A=dr();se(A,()=>({...B()}));var z=Z(A);se(z,()=>({...n(x)}));var ie=Z(z);j(ie,()=>m()??ae),Q(z),Q(A),P(S,A)};$(W,S=>{l()?S(K):S(C,-1)})}P(N,D)},$$slots:{popper:!0}}))},v=p=>{Cr(p,_e(()=>n(y),()=>f.popperProps,{get ref(){return f.opts.ref},get side(){return a()},get open(){return f.root.opts.open.current},get id(){return r()},get preventScroll(){return c()},forceMount:!1,get shouldRender(){return f.shouldRender},popper:(N,w)=>{let M=()=>(w?.()).props,B=()=>(w?.()).wrapperProps;const x=I(()=>ce(M(),{style:f.props.style},{style:T()}));var D=q(),W=F(D);{var K=S=>{var A=q(),z=F(A);{let ie=I(()=>({props:n(x),wrapperProps:B(),...f.snippetProps}));j(z,l,()=>n(ie))}P(S,A)},C=S=>{var A=dr();se(A,()=>({...B()}));var z=Z(A);se(z,()=>({...n(x)}));var ie=Z(z);j(ie,()=>m()??ae),Q(z),Q(A),P(S,A)};$(W,S=>{l()?S(K):S(C,-1)})}P(N,D)},$$slots:{popper:!0}}))};$(R,p=>{s()?p(G):s()||p(v,1)})}return P(i,E),oe(b)}var _o=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),ur=J("<div><!></div>");function Lr(i,e){const t=Oe();if(new.target)return ee({component:Lr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),a=d(e,"onInteractOutside",7,X),g=d(e,"onEscapeKeydown",7,X),_=d(e,"children",7),m=d(e,"child",7),l=d(e,"preventScroll",7,!1),c=d(e,"style",7),T=ye(e,_o);const O=xt.create({id:U(()=>r()),ref:U(()=>o(),v=>o(v)),onInteractOutside:U(()=>a()),onEscapeKeydown:U(()=>g())}),f=I(()=>ce(T,O.props));var y={get id(){return r()},set id(v=he(t)){r(v),u()},get ref(){return o()},set ref(v=null){o(v),u()},get forceMount(){return s()},set forceMount(v=!1){s(v),u()},get onInteractOutside(){return a()},set onInteractOutside(v=X){a(v),u()},get onEscapeKeydown(){return g()},set onEscapeKeydown(v=X){g(v),u()},get children(){return _()},set children(v){_(v),u()},get child(){return m()},set child(v){m(v),u()},get preventScroll(){return l()},set preventScroll(v=!1){l(v),u()},get style(){return c()},set style(v){c(v),u()},$set:te,$on:(v,p)=>re(e,v,p)},b=q(),E=F(b);{var R=v=>{Ir(v,_e(()=>n(f),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get enabled(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return l()},forceMount:!0,get shouldRender(){return O.shouldRender},popper:(V,N)=>{let w=()=>(N?.()).props;const M=I(()=>ce(w(),{style:O.props.style},{style:c()}));var B=q(),x=F(B);{var D=K=>{var C=q(),S=F(C);{let A=I(()=>({props:n(M),...O.snippetProps}));j(S,m,()=>n(A))}P(K,C)},W=K=>{var C=ur();se(C,()=>({...n(M)}));var S=Z(C);j(S,()=>_()??ae),Q(C),P(K,C)};$(x,K=>{m()?K(D):K(W,-1)})}P(V,B)},$$slots:{popper:!0}}))},G=v=>{Cr(v,_e(()=>n(f),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get open(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return l()},forceMount:!1,get shouldRender(){return O.shouldRender},popper:(V,N)=>{let w=()=>(N?.()).props;const M=I(()=>ce(w(),{style:O.props.style},{style:c()}));var B=q(),x=F(B);{var D=K=>{var C=q(),S=F(C);{let A=I(()=>({props:n(M),...O.snippetProps}));j(S,m,()=>n(A))}P(K,C)},W=K=>{var C=ur();se(C,()=>({...n(M)}));var S=Z(C);j(S,()=>_()??ae),Q(C),P(K,C)};$(x,K=>{m()?K(D):K(W,-1)})}P(V,B)},$$slots:{popper:!0}}))};$(E,v=>{s()?v(R):s()||v(G,1)})}return P(i,b),oe(y)}function Vr(i,e){if(new.target)return ee({component:Vr,...i});ne(e,!0);let t=d(e,"mounted",15,!1),r=d(e,"onMountedChange",7,X);Qn(()=>(t(!0),r()(!0),()=>{t(!1),r()(!1)}));var o={get mounted(){return t()},set mounted(s=!1){t(s),u()},get onMountedChange(){return r()},set onMountedChange(s=X){r(s),u()},$set:te,$on:(s,a)=>re(e,s,a)};return oe(o)}var Io=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),Co=J("<div><!></div>"),No=J("<!> <!>",1);function Dr(i,e){const t=Oe();if(new.target)return ee({component:Dr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"value",7),a=d(e,"label",23,s),g=d(e,"disabled",7,!1),_=d(e,"children",7),m=d(e,"child",7),l=d(e,"onHighlight",7,X),c=d(e,"onUnhighlight",7,X),T=ye(e,Io);const O=Ht.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),value:U(()=>s()),disabled:U(()=>g()),label:U(()=>a()),onHighlight:U(()=>l()),onUnhighlight:U(()=>c())}),f=I(()=>ce(T,O.props));var y={get id(){return r()},set id(p=he(t)){r(p),u()},get ref(){return o()},set ref(p=null){o(p),u()},get value(){return s()},set value(p){s(p),u()},get label(){return a()},set label(p=s){a(p),u()},get disabled(){return g()},set disabled(p=!1){g(p),u()},get children(){return _()},set children(p){_(p),u()},get child(){return m()},set child(p){m(p),u()},get onHighlight(){return l()},set onHighlight(p=X){l(p),u()},get onUnhighlight(){return c()},set onUnhighlight(p=X){c(p),u()},$set:te,$on:(p,V)=>re(e,p,V)},b=No(),E=F(b);{var R=p=>{var V=q(),N=F(V);{let w=I(()=>({props:n(f),...O.snippetProps}));j(N,m,()=>n(w))}P(p,V)},G=p=>{var V=Co();se(V,()=>({...n(f)}));var N=Z(V);j(N,()=>_()??ae,()=>O.snippetProps),Q(V),P(p,V)};$(E,p=>{m()?p(R):p(G,-1)})}var v=Ee(E,2);return Vr(v,{get mounted(){return O.mounted},set mounted(p){O.mounted=p}}),P(i,b),oe(y)}var Po=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),So=J("<div><!></div>");function Fr(i,e){const t=Oe();if(new.target)return ee({component:Fr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"children",7),a=d(e,"child",7),g=ye(e,Po);const _=Vt.create({id:U(()=>r()),ref:U(()=>o(),y=>o(y))}),m=I(()=>ce(g,_.props));var l={get id(){return r()},set id(y=he(t)){r(y),u()},get ref(){return o()},set ref(y=null){o(y),u()},get children(){return s()},set children(y){s(y),u()},get child(){return a()},set child(y){a(y),u()},$set:te,$on:(y,b)=>re(e,y,b)},c=q(),T=F(c);{var O=y=>{var b=q(),E=F(b);j(E,a,()=>({props:n(m)})),P(y,b)},f=y=>{var b=So();se(b,()=>({...n(m)}));var E=Z(b);j(E,()=>s()??ae),Q(b),P(y,b)};$(T,y=>{a()?y(O):y(f,-1)})}return P(i,c),oe(l)}var ko=J("<!> <!>",1);function Kr(i,e){if(new.target)return ee({component:Kr,...i});ne(e,!0);let t=d(e,"value",15),r=d(e,"onValueChange",7,X),o=d(e,"name",7,""),s=d(e,"disabled",7,!1),a=d(e,"type",7),g=d(e,"open",15,!1),_=d(e,"onOpenChange",7,X),m=d(e,"onOpenChangeComplete",7,X),l=d(e,"loop",7,!1),c=d(e,"scrollAlignment",7,"nearest"),T=d(e,"required",7,!1),O=d(e,"items",23,()=>[]),f=d(e,"allowDeselect",7,!1),y=d(e,"autocomplete",7),b=d(e,"children",7);function E(){t()===void 0&&t(a()==="single"?"":[])}E(),be.pre(()=>t(),()=>{E()});let R=Y("");const G=wo.create({type:a(),value:U(()=>t(),x=>{t(x),r()(x)}),disabled:U(()=>s()),required:U(()=>T()),open:U(()=>g(),x=>{g(x),_()(x)}),loop:U(()=>l()),scrollAlignment:U(()=>c()),name:U(()=>o()),isCombobox:!1,items:U(()=>O()),allowDeselect:U(()=>f()),inputValue:U(()=>n(R),x=>k(R,x,!0)),onOpenChangeComplete:U(()=>m())});var v={get value(){return t()},set value(x){t(x),u()},get onValueChange(){return r()},set onValueChange(x=X){r(x),u()},get name(){return o()},set name(x=""){o(x),u()},get disabled(){return s()},set disabled(x=!1){s(x),u()},get type(){return a()},set type(x){a(x),u()},get open(){return g()},set open(x=!1){g(x),u()},get onOpenChange(){return _()},set onOpenChange(x=X){_(x),u()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(x=X){m(x),u()},get loop(){return l()},set loop(x=!1){l(x),u()},get scrollAlignment(){return c()},set scrollAlignment(x="nearest"){c(x),u()},get required(){return T()},set required(x=!1){T(x),u()},get items(){return O()},set items(x=[]){O(x),u()},get allowDeselect(){return f()},set allowDeselect(x=!1){f(x),u()},get autocomplete(){return y()},set autocomplete(x){y(x),u()},get children(){return b()},set children(x){b(x),u()},$set:te,$on:(x,D)=>re(e,x,D)},p=ko(),V=F(p);$n(V,{children:(x,D)=>{var W=q(),K=F(W);j(K,()=>b()??ae),P(x,W)},$$slots:{default:!0}});var N=Ee(V,2);{var w=x=>{var D=q(),W=F(D);{var K=S=>{mt(S,{get autocomplete(){return y()}})},C=S=>{var A=q(),z=F(A);Tt(z,16,()=>G.opts.value.current,ie=>ie,(ie,Te)=>{mt(ie,{get value(){return Te},get autocomplete(){return y()}})}),P(S,A)};$(W,S=>{G.opts.value.current.length===0?S(K):S(C,-1)})}P(x,D)},M=I(()=>Array.isArray(G.opts.value.current)),B=x=>{mt(x,{get autocomplete(){return y()},get value(){return G.opts.value.current},set value(D){G.opts.value.current=D}})};$(N,x=>{n(M)?x(w):x(B,-1)})}return P(i,p),oe(v)}var Oo=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),Eo=J("<button><!></button>");function Br(i,e){const t=Oe();if(new.target)return ee({component:Br,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"child",7),a=d(e,"children",7),g=d(e,"type",7,"button"),_=ye(e,Oo);const m=At.create({id:U(()=>r()),ref:U(()=>o(),f=>o(f))}),l=I(()=>ce(_,m.props,{type:g()}));var c={get id(){return r()},set id(f=he(t)){r(f),u()},get ref(){return o()},set ref(f=null){o(f),u()},get child(){return s()},set child(f){s(f),u()},get children(){return a()},set children(f){a(f),u()},get type(){return g()},set type(f="button"){g(f),u()},$set:te,$on:(f,y)=>re(e,f,y)},T=q(),O=F(T);return ve(O,()=>Rr,(f,y)=>{y(f,{get id(){return r()},get ref(){return m.opts.ref},children:(b,E)=>{var R=q(),G=F(R);{var v=V=>{var N=q(),w=F(N);j(w,s,()=>({props:n(l)})),P(V,N)},p=V=>{var N=Eo();se(N,()=>({...n(l)}));var w=Z(N);j(w,()=>a()??ae),Q(N),P(V,N)};$(G,V=>{s()?V(v):V(p,-1)})}P(b,R)},$$slots:{default:!0}})}),P(i,T),oe(c)}var To=J('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Wr(i,e){const t=Oe();if(new.target)return ee({component:Wr,...i});ne(e,!0);const r=`${t}-trigger`;let o=Y(r),s=d(e,"value",15,""),a=d(e,"open",15,!1),g=d(e,"items",23,()=>[]),_=d(e,"disabled",7,!1),m=d(e,"invalid",7,!1),l=d(e,"required",7,!1),c=d(e,"name",7),T=d(e,"loop",7,!0),O=d(e,"onchange",7),f=d(e,"onopenchange",7),y=d(e,"children",7),b=d(e,"staticPosition",7,!1);cn(()=>{a(!1),f()?.(!1)}),hr("canonical-select",{get triggerId(){return n(o)},registerTriggerId(v){k(o,v??r,!0)},listboxId:`${t}-listbox`,get value(){return s()},get displayValue(){return g().find(v=>v.value===s())?.label??s()},get invalid(){return m()},get open(){return a()},get staticPosition(){return b()},set open(v){a(v)}});var E={get value(){return s()},set value(v=""){s(v),u()},get open(){return a()},set open(v=!1){a(v),u()},get items(){return g()},set items(v=[]){g(v),u()},get disabled(){return _()},set disabled(v=!1){_(v),u()},get invalid(){return m()},set invalid(v=!1){m(v),u()},get required(){return l()},set required(v=!1){l(v),u()},get name(){return c()},set name(v){c(v),u()},get loop(){return T()},set loop(v=!0){T(v),u()},get onchange(){return O()},set onchange(v){O(v),u()},get onopenchange(){return f()},set onopenchange(v){f(v),u()},get children(){return y()},set children(v){y(v),u()},get staticPosition(){return b()},set staticPosition(v=!1){b(v),u()},$set:te,$on:(v,p)=>re(e,v,p)},R=To(),G=Z(R);return ve(G,()=>Kr,(v,p)=>{p(v,{type:"single",get items(){return g()},get disabled(){return _()},get required(){return l()},get name(){return c()},get loop(){return T()},get onValueChange(){return O()},get onOpenChange(){return f()},get value(){return s()},set value(V){s(V)},get open(){return a()},set open(V){a(V)},children:(V,N)=>{var w=q(),M=F(w);j(M,()=>y()??ae),P(V,w)},$$slots:{default:!0}})}),Q(R),P(i,R),oe(E)}var Ao=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),Mo=J("<!> <!>",1);function Ur(i,e){if(new.target)return ee({component:Ur,...i});ne(e,!0);const t=(N,w)=>{let M=()=>(w?.()).props;const B=I(()=>G(M()));var x=q(),D=F(x);{var W=C=>{var S=q(),A=F(S);j(A,a,()=>({props:n(B)})),P(C,S)},K=C=>{eo(C,_e(()=>n(B),{get variant(){return n(b)},get active(){return c.open},get class(){return n(E)},children:(S,A)=>{var z=Mo(),ie=F(z);j(ie,()=>s()??ae);var Te=Ee(ie,2);{var Pt=Ae=>{Pr(Ae,{get icon(){return ro},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=>{r()==="default"&&Ae(Pt)})}P(S,z)},$$slots:{default:!0}}))};$(D,C=>{a()?C(W):C(K,-1)})}P(N,x)};let r=d(e,"variant",7,"default"),o=d(e,"class",7,""),s=d(e,"children",7),a=d(e,"child",7),g=d(e,"onclick",7),_=d(e,"id",7),m=d(e,"ref",15,null),l=ye(e,Ao);const c=Ct("canonical-select");sn(()=>c.registerTriggerId(_())),de(()=>c.registerTriggerId(_()));let T=Y(!1);de(()=>{const N=c.triggerId;k(T,Array.from(document.querySelectorAll("label[for]")).some(w=>w.htmlFor===N),!0)});const O=I(()=>!l["aria-label"]&&!l["aria-labelledby"]&&!n(T));let f=Y(void 0);de(()=>{const N=m();if(!n(O)||!N){k(f,void 0);return}const w=()=>{k(f,N.textContent?.trim()||void 0,!0)};w();const M=new MutationObserver(w);return M.observe(N,{childList:!0,characterData:!0,subtree:!0}),()=>M.disconnect()});const y={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"},b=I(()=>r()==="default"?"outline":r()==="secondary"?"secondary":"ghost"),E=I(()=>ue("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) 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",y[r()],o()));function R(N){N.detail===0&&!c.open&&(c.open=!0),g()?.(N)}function G(N){const{"aria-activedescendant":w,"aria-label":M,...B}=N;return{...B,role:"combobox","aria-label":typeof M=="string"?M:n(f),"aria-activedescendant":c.open&&typeof w=="string"?w:void 0}}var v={get variant(){return r()},set variant(N="default"){r(N),u()},get class(){return o()},set class(N=""){o(N),u()},get children(){return s()},set children(N){s(N),u()},get child(){return a()},set child(N){a(N),u()},get onclick(){return g()},set onclick(N){g(N),u()},get id(){return _()},set id(N){_(N),u()},get ref(){return m()},set ref(N=null){m(N),u()},$set:te,$on:(N,w)=>re(e,N,w)},p=q(),V=F(p);{let N=I(()=>c.open?c.listboxId:void 0),w=I(()=>c.invalid||void 0);ve(V,()=>Br,(M,B)=>{B(M,_e(()=>l,{get id(){return c.triggerId},get"aria-controls"(){return n(N)},get class(){return n(E)},get"aria-invalid"(){return n(w)},onclick:R,get child(){return t},get ref(){return m()},set ref(x){m(x)}}))})}return P(i,p),oe(v)}var Ro=J("<span> </span>");function qr(i,e){if(new.target)return ee({component:qr,...i});ne(e,!0);let t=d(e,"placeholder",23,()=>er.ui_select_value_placeholder());const r=Ct("canonical-select");var o={get placeholder(){return t()},set placeholder(g=er.ui_select_value_placeholder()){t(g),u()},$set:te,$on:(g,_)=>re(e,g,_)},s=Ro(),a=gr(s,!0);return Se(()=>{Me(s,1,`min-w-0 flex-1 truncate text-left ${r.value?"text-foreground":"text-muted-foreground"}`),an(a,r.displayValue||t())}),P(i,s),oe(o)}function Ho(i,e){const t=[...e].filter(o=>Number.isInteger(o)&&o>=0&&i[o]!==void 0).sort((o,s)=>o-s),r=[];for(const o of t){const s=r.at(-1);!s||o>s.endIndex+1?r.push({startIndex:o,endIndex:o}):o>s.endIndex&&(s.endIndex=o)}return r.map(({startIndex:o,endIndex:s})=>{let a=Number.POSITIVE_INFINITY,g=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,m=Number.NEGATIVE_INFINITY;for(let l=o;l<=s;l+=1){const c=i[l];c&&(a=Math.min(a,c.top),g=Math.min(g,c.left),_=Math.max(_,c.left+c.width),m=Math.max(m,c.top+c.height))}return{startIndex:o,endIndex:s,rect:{top:a,left:g,width:_-g,height:m-a}}})}function Ot(i,e){return Math.max(0,Math.min(i.endIndex,e.endIndex)-Math.max(i.startIndex,e.startIndex)+1)}function Lo(){let i=Y(pr([])),e=[],t=1;return{get groups(){return n(i)},update(r,o){const s=new Set,a=Ho(r,o).map(g=>{const m=e.filter(l=>!s.has(l.id)&&Ot(l,g)>0).sort((l,c)=>Ot(c,g)-Ot(l,g)||l.id-c.id)[0]?.id??t++;return s.add(m),{id:m,...g}});e=a,k(i,a,!0)},reset(){e=[],k(i,[],!0),t=1}}}var Vo=J('<div data-proximity-highlight="selected" style="border-radius: var(--radius-row)"></div>'),Do=J('<div data-proximity-highlight="hover" style="border-radius: var(--radius-row)"></div>'),Fo=J('<div aria-hidden="true"><!> <!></div>');function zr(i,e){if(new.target)return ee({component:zr,...i});ne(e,!0);let t=d(e,"store",7),r=d(e,"selectedIndexes",23,()=>[]),o=d(e,"selectedClass",7,"bg-selected"),s=d(e,"hoverClass",7,"bg-hover"),a=d(e,"class",7);const g=Lo(),_=I(()=>t().activeIndex===null?void 0:t().itemRects[t().activeIndex]);de(()=>{g.update(t().itemRects,r())});const m=(f,y)=>{const b=new ft(y.rect.top,y.tier),E=new ft(y.rect.left,y.tier),R=new ft(y.rect.width,y.tier),G=new ft(y.rect.height,y.tier),v=ln(()=>{de(()=>{f.style.transform=`translate3d(${E.current}px, ${b.current}px, 0)`,f.style.width=`${R.current}px`,f.style.height=`${G.current}px`})}),p=w=>{b.set(w.rect.top),E.set(w.rect.left),R.set(w.rect.width),G.set(w.rect.height)},N=yn(()=>wn()&&p(y));return{update(w){y=w,p(w)},destroy(){N(),v()}}};var l={get store(){return t()},set store(f){t(f),u()},get selectedIndexes(){return r()},set selectedIndexes(f=[]){r(f),u()},get selectedClass(){return o()},set selectedClass(f="bg-selected"){o(f),u()},get hoverClass(){return s()},set hoverClass(f="bg-hover"){s(f),u()},get class(){return a()},set class(f){a(f),u()},$set:te,$on:(f,y)=>re(e,f,y)},c=Fo(),T=Z(c);Tt(T,17,()=>g.groups,f=>f.id,(f,y)=>{var b=Vo();bt(b,(E,R)=>m?.(E,R),()=>({rect:n(y).rect,tier:"moderate"})),Se(E=>Me(b,1,E),[()=>vt(ue("absolute",o()))]),rr(2,b,()=>nr,()=>({tier:"moderate"})),P(f,b)});var O=Ee(T,2);return ao(O,()=>t().sessionId,f=>{var y=q(),b=F(y);Tt(b,17,()=>n(_)?[n(_)]:[],E=>0,(E,R)=>{var G=Do();bt(G,(v,p)=>m?.(v,p),()=>({rect:n(R),tier:"moderate"})),Se(v=>Me(G,1,v),[()=>vt(ue("absolute",s()))]),rr(2,G,()=>nr,()=>({tier:"fast"})),P(E,G)}),P(f,y)}),Q(c),Se(f=>Me(c,1,f),[()=>vt(ue("pointer-events-none absolute inset-0",a()))]),P(i,c),oe(l)}var Ko=J('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function Gr(i,e){if(new.target)return ee({component:Gr,...i});ne(e,!0);let t=d(e,"activeIndex",7),r=d(e,"onactiveindexchange",7),o=Y(null),s=Y(null),a=Y(pr([])),g=Y(null),_=Y(!1),m=Y(!1),l;const c='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';de(()=>{n(s)&&t()===void 0&&n(_)&&n(s).activeIndex!==n(g)&&n(s).setActiveIndex(n(g))}),de(()=>{!n(s)||t()===void 0||n(s).pointerPosition||n(s).setActiveIndex(t())}),de(()=>{if(!n(s)?.pointerPosition){l=void 0;return}n(s).activeIndex!==l&&(l=n(s).activeIndex,r()?.(n(s).activeIndex))}),dn(()=>{const b=n(o)?.parentElement;if(!b)return;b.dataset.listOverlay="",b.classList.add("relative","isolate");const E=hn(b);k(s,E);let R=[];const G=C=>C instanceof Element&&(C.matches(c)||C.querySelector(c)),v=C=>C.hasAttribute("data-disabled")||C.getAttribute("aria-disabled")==="true",p=C=>C.dataset.selectionAppearance!=="indicator"&&(C.hasAttribute("data-selected")||C.getAttribute("data-state")==="checked"||C.getAttribute("aria-selected")==="true"||C.getAttribute("aria-checked")==="true"),V=()=>{const C=Array.from(b.querySelectorAll(c)).filter(A=>A.closest("[data-list-overlay]")===b&&!v(A));C.length!==R.length||C.some((A,z)=>A!==R[z])?(R.forEach((A,z)=>E.registerItem(z,null)),R=C,R.forEach((A,z)=>E.registerItem(z,A))):E.measure();const S=R.flatMap((A,z)=>p(A)?[z]:[]);if((S.length!==n(a).length||S.some((A,z)=>A!==n(a)[z]))&&k(a,S,!0),t()===void 0){const A=R.findIndex(z=>z.hasAttribute("data-highlighted")||z===document.activeElement);A>=0&&E.setActiveIndex(A)}},N=new MutationObserver(C=>{C.some(S=>S.type==="attributes"||[...S.addedNodes,...S.removedNodes].some(G))&&V()});N.observe(b,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-highlighted","data-selected","data-state","data-disabled","aria-selected","aria-checked","aria-disabled","data-selection-appearance"]});const w=()=>{const C=R.indexOf(document.activeElement);k(g,C>=0?C:null,!0)},M=()=>{k(m,!1),k(_,!0),w(),Et().then(()=>{n(_)&&w()})},B=()=>{k(_,!1)},x=()=>{k(m,!1),k(_,!0),w()},D=C=>{const S=C.target instanceof Element?C.target.closest(c):null,A=R.indexOf(S);C.button!==0||A<0||(k(_,!1),k(m,!0),E.setActiveIndex(A))},W=()=>{k(m,!1)},K=C=>{const S=R.indexOf(C.target);k(g,S>=0?S:null,!0),S>=0&&E.setActiveIndex(S)};return b.addEventListener("keydown",M,!0),b.addEventListener("pointermove",B,!0),b.addEventListener("pointerleave",x),b.addEventListener("pointerdown",D),window.addEventListener("pointerup",W),window.addEventListener("pointercancel",W),b.addEventListener("focusin",K),Et().then(V),()=>{N.disconnect(),b.removeEventListener("keydown",M,!0),b.removeEventListener("pointermove",B,!0),b.removeEventListener("pointerleave",x),b.removeEventListener("pointerdown",D),window.removeEventListener("pointerup",W),window.removeEventListener("pointercancel",W),b.removeEventListener("focusin",K),E.destroy(),k(s,null),delete b.dataset.listOverlay}});var T={get activeIndex(){return t()},set activeIndex(b){t(b),u()},get onactiveindexchange(){return r()},set onactiveindexchange(b){r(b),u()},$set:te,$on:(b,E)=>re(e,b,E)},O=Ko(),f=Z(O);{var y=b=>{{let E=I(()=>n(m)?n(a).includes(n(s).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");zr(b,{get store(){return n(s)},get selectedIndexes(){return n(a)},get hoverClass(){return n(E)}})}};$(f,b=>{n(s)&&b(y)})}return Q(O),io(O,b=>k(o,b),()=>n(o)),Se(()=>fr(O,"data-active-index",n(s)?.activeIndex??void 0)),P(i,O),oe(T)}const Bo=Nr({base:`${gn} menu-row group/menu-item relative z-10 flex w-full min-w-0 cursor-default select-none items-start gap-2.5 border-none bg-transparent px-2.5 py-1.5 transition-colors duration-spring-fast ease-spring-fast focus:text-foreground focus-visible:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 motion-reduce:transition-none`,variants:{inset:{true:"pl-8"}}}),cr=Nr({base:"menu-overlay type-caption relative isolate z-(--layer-popover) overflow-hidden rounded-(--radius-medium) border border-border bg-popover shadow-(--elevation-overlay) [--menu-icon-size:calc(var(--space-3)+var(--space-1)/2)] [--radius-row:calc(var(--radius-small)-var(--space-1)/2)] focus-visible:border-input focus-visible:outline focus-visible:-outline-offset-1 data-[side=bottom]:origin-top data-[side=top]:origin-bottom data-[side=left]:origin-right data-[side=right]:origin-left data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:duration-spring-moderate data-[state=open]:ease-spring-moderate data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-spring-moderate-exit data-[state=closed]:ease-spring-exit motion-reduce:animate-none motion-reduce:transition-none"}),hs="text-shortcut-foreground",gs=-5,ps={enter:{tier:"moderate",y:4,scale:.95},exit:{tier:"moderate"}},Yr=8;function fs(i,e,t=24){if(!i)return!0;const r=i.getBoundingClientRect(),o=e+t+Yr;return r.left>=o||i.ownerDocument.documentElement.clientWidth-r.right>=o}const jr=Symbol("dialog-portal-target");function vs(i){hr(jr,i)}function Wo(){const i=Ct(jr);return()=>i?.()??void 0}const Uo=["[data-bits-floating-content-wrapper]",'[role="combobox"][aria-expanded="true"]','[aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]'].join(", ");function ms(i,e){return i?.querySelector(":scope > [data-bits-floating-content-wrapper]")?!0:e.target instanceof Element&&e.target.closest(Uo)!==null}var qo=J("<div><!> <!></div>"),zo=J("<div><!></div>"),Go=J("<div><div><!></div></div>");function Jr(i,e){if(new.target)return ee({component:Jr,...i});ne(e,!0);const t=w=>{var M=q(),B=F(M);{const x=(D,W)=>{let K=()=>(W?.()).props;var C=qo();se(C,()=>({...K(),id:b.listboxId,role:"listbox","aria-labelledby":b.triggerId,tabindex:"-1"}));var S=Z(C);Gr(S,{});var A=Ee(S,2);j(A,()=>T()??ae),Q(C),P(D,C)};ve(B,()=>Fr,(D,W)=>{W(D,{get class(){return`relative min-h-0 flex-1 overflow-y-auto p-1.5 ${m()??""}`},child:x,$$slots:{child:!0}})})}P(w,M)},r=(w,M)=>{let B=()=>(M?.()).props;const x=I(()=>R(B()));var D=zo();se(D,()=>({...n(x),...g()?{id:g()}:{}}));var W=Z(D);t(W),Q(D),bt(D,K=>a?.(K)),P(w,D)},o=(w,M)=>{let B=()=>(M?.()).props,x=()=>(M?.()).wrapperProps;const D=I(()=>R(B()));var W=Go();se(W,()=>({...x(),...g()?{id:g()}:{}}));var K=Z(W);se(K,()=>({...n(D)}));var C=Z(K);t(C),Q(K),bt(K,S=>a?.(S)),Q(W),P(w,W)},s=pn(),a=fn();let g=d(e,"wrapperId",7),_=d(e,"class",7,""),m=d(e,"wrapperClass",7,""),l=d(e,"dropUp",7,!1),c=d(e,"portal",7),T=d(e,"children",7);const O=I(()=>l()||c()===!0),f=Wo(),y=lo(uo()+2);co(y);const b=Ct("canonical-select");async function E(){const w=document.getElementById(b.triggerId);await Et(),!b.open&&w?.isConnected&&w.focus({preventScroll:!0})}function R(w){const{role:M,tabindex:B,...x}=w;return x}var G={get wrapperId(){return g()},set wrapperId(w){g(w),u()},get class(){return _()},set class(w=""){_(w),u()},get wrapperClass(){return m()},set wrapperClass(w=""){m(w),u()},get dropUp(){return l()},set dropUp(w=!1){l(w),u()},get portal(){return c()},set portal(w){c(w),u()},get children(){return T()},set children(w){T(w),u()},$set:te,$on:(w,M)=>re(e,w,M)},v=q(),p=F(v);{var V=w=>{var M=q(),B=F(M);{let x=I(()=>ue(cr(),"w-full max-h-60",_()));ve(B,()=>Lr,(D,W)=>{W(D,{preventScroll:!1,onEscapeKeydown:E,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return y},get class(){return n(x)},style:"max-width: calc(100vw - var(--space-4));",get child(){return r}})})}P(w,M)},N=w=>{const M=I(()=>c()===void 0&&!l()?f():void 0);var B=q(),x=F(B);{let D=I(()=>!n(O)&&!n(M)),W=I(()=>n(M)??s?.target());ve(x,()=>to,(K,C)=>{C(K,{get disabled(){return n(D)},get to(){return n(W)},children:(S,A)=>{var z=q(),ie=F(z);{let Te=I(()=>n(M)?"absolute":"fixed"),Pt=I(()=>n(M)!==void 0),Ae=I(()=>l()?"top":"bottom"),Qr=I(()=>ue(cr(),"w-(--bits-select-anchor-width) max-h-60",_()));ve(ie,()=>Hr,($r,en)=>{en($r,{get strategy(){return n(Te)},get hideWhenDetached(){return n(Pt)},onEscapeKeydown:E,"data-slot":"select-content",get"data-surface-level"(){return y},get side(){return n(Ae)},sideOffset:4,get collisionPadding(){return Yr},get class(){return n(Qr)},style:"max-width: calc(100vw - var(--space-4));",get child(){return o}})})}P(S,z)},$$slots:{default:!0}})})}P(w,B)};$(p,w=>{b.staticPosition?w(V):w(N,-1)})}return P(i,v),oe(G)}var Yo=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),jo=J('<span><span class="relative block h-3.5 w-6 rounded-full bg-muted-foreground/25 transition-colors duration-spring-fast ease-spring-fast data-[state=checked]:bg-foreground/80 motion-reduce:transition-none"><span></span></span></span>'),Jo=J("<span><!></span>");function Xr(i,e){if(new.target)return ee({component:Xr,...i});ne(e,!0);let t=d(e,"state",7),r=d(e,"class",7),o=d(e,"data-slot",7),s=ye(e,Yo);var a={get state(){return t()},set state(c){t(c),u()},get class(){return r()},set class(c){r(c),u()},get"data-slot"(){return o()},set"data-slot"(c){o(c),u()},$set:te,$on:(c,T)=>re(e,c,T)},g=q(),_=F(g);{var m=c=>{var T=jo();se(T,y=>({...s,"data-slot":o()??"menu-switch",class:y,"aria-hidden":"true"}),[()=>ue("ml-auto flex h-lh shrink-0 items-center",r())]);var O=Z(T),f=gr(O);Q(T),Se(y=>{fr(O,"data-state",t()==="on"?"checked":"unchecked"),Me(f,1,y)},[()=>vt(ue("absolute top-0.5 left-0.5 size-2.5 rounded-full bg-popover transition-transform duration-spring-fast ease-spring-fast motion-reduce:transition-none",t()==="on"&&"translate-x-2.5"))]),P(c,T)},l=c=>{var T=Jo();se(T,y=>({...s,"data-slot":o()??(t()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:y,"aria-hidden":"true"}),[()=>ue(vn,t()==="submenu"?"text-muted-foreground":"text-primary-ink",r())]);var O=Z(T);{var f=y=>{{let b=I(()=>t()==="mixed"?no:t()==="submenu"?oo:so),E=I(()=>t()==="submenu"?"calc(var(--space-2) + var(--space-1) / 2)":"var(--menu-icon-size)"),R=I(()=>t()==="submenu"?"size-2.5 rtl:rotate-180":"size-(--menu-icon-size)");Pr(y,{get icon(){return n(b)},get size(){return n(E)},get class(){return n(R)}})}};$(O,y=>{t()!=="empty"&&y(f)})}Q(T),P(c,T)};$(_,c=>{t()==="on"||t()==="off"?c(m):c(l,-1)})}return P(i,g),oe(a)}var Xo=J('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Zr(i,e){if(new.target)return ee({component:Zr,...i});ne(e,!0);let t=d(e,"value",7),r=d(e,"label",7),o=d(e,"disabled",7,!1),s=d(e,"children",7),a=d(e,"class",7,"");var g={get value(){return t()},set value(l){t(l),u()},get label(){return r()},set label(l){r(l),u()},get disabled(){return o()},set disabled(l=!1){o(l),u()},get children(){return s()},set children(l){s(l),u()},get class(){return a()},set class(l=""){a(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},_=q(),m=F(_);{const l=(f,y)=>{let b=()=>(y?.()).selected;var E=Xo(),R=F(E),G=Z(R);j(G,()=>s()??ae),Q(R);var v=Ee(R,2);{let p=I(()=>b()?"checked":"empty");Xr(v,{get state(){return n(p)},"data-slot":"select-item-check"})}P(f,E)};let c=I(()=>r()??t()),T=I(()=>o()||void 0),O=I(()=>ue(Bo(),a()));ve(m,()=>Dr,(f,y)=>{y(f,{get value(){return t()},get label(){return n(c)},get disabled(){return o()},get"aria-disabled"(){return n(T)},"data-menu-item":!0,get class(){return n(O)},children:l,$$slots:{default:!0}})})}return P(i,_),oe(g)}const bs={Root:Wr,Trigger:Ur,Value:qr,Content:Jr,Item:Zr},Zo=(i,e)=>{let t,r;const o=()=>{t||(t=mn(()=>{t=void 0;const g=i.checkVisibility?.()??!0,_=g?i.clientWidth:0,m=g?i.clientHeight:0,l=_>0&&m>0&&(i.scrollWidth>_||i.scrollHeight>m);r?.(),r=bn(()=>{r=void 0,e(l)})}))},s=typeof ResizeObserver>"u"?void 0:new ResizeObserver(o),a=new MutationObserver(o);return s?.observe(i),a.observe(i,{childList:!0,characterData:!0,subtree:!0}),document.fonts?.addEventListener("loadingdone",o),o(),{update(g){e=g,o()},destroy(){t?.(),r?.(),s?.disconnect(),a.disconnect(),document.fonts?.removeEventListener("loadingdone",o)}}},ys=(i,e)=>{let t=e;const r=s=>{t&&(s||t.trim()!==i.textContent?.trim())?i.title=t:i.removeAttribute("title")},o=Zo(i,r);return{update(s){t=s,o?.update?.(r)},destroy(){o?.destroy?.(),i.removeAttribute("title")}}};export{Rr as F,kr as H,Xr as M,Yr as O,zr as P,bs as S,Gr as a,lr as b,ar as c,ir as d,wo as e,Hr as f,Lr as g,mt as h,Dr as i,Fr as j,fs as k,ms as l,hs as m,Bo as n,cr as o,ps as p,gs as q,Zo as r,vs as s,ys as t,Wo as u};
|
|
1
|
+
var tn=Object.defineProperty;var $t=i=>{throw TypeError(i)};var rn=(i,e,t)=>e in i?tn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var L=(i,e,t)=>rn(i,typeof e!="symbol"?e+"":e,t),St=(i,e,t)=>e.has(i)||$t("Cannot "+t);var h=(i,e,t)=>(St(i,e,"read from private field"),t?t.call(i):e.get(i)),H=(i,e,t)=>e.has(i)?$t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ne=(i,e,t,r)=>(St(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Pe=(i,e,t)=>(St(i,e,"access private method"),t);import{t as ee,bq as d,a_ as $,by as te,b as re,br as ye,bt as _e,bo as er}from"./E2zwcBGL.js";import{c9 as I,aD as n,bs as ne,a7 as q,ay as F,W as P,bn as oe,aA as u,aB as J,bH as k,bV as Y,bi as nn,ca as de,cb as on,bf as ae,bo as Oe,a5 as Z,bA as Q,bS as Ee,bI as hr,aG as Ct,c5 as sn,bl as gr,b_ as Se,bO as an,br as pr,at as ln,bk as dn,c0 as Et}from"./DYhIMPy1.js";import{s as j}from"./BTNnUZgK.js";import{c as ve}from"./BAm6Imyt.js";import{e as un,k as cn,g as hn,c as gn,i as pn,f as fn,b as vn,s as mn,j as bn}from"./Ctd97c_e.js";import{c as se,h as Tt,f as ue,k as Me,a as bt,d as vt,o as yn,j as wn,s as fr}from"./8mzXJxUW.js";import{bI as xn,bn as ce,aI as _n,b4 as In,h as Dt,av as Ie,D as Nt,i as Cn,d as le,a as me,l as yt,ad as kt,ak as wt,a2 as Ft,K as Kt,a1 as Bt,E as Wt,bo as vr,bB as mr,aZ as br,aB as yr,aE as Ut,b1 as qt,aF as wr,bM as be,bi as Nn,bu as Pn,b3 as Sn,b2 as kn,aH as tr,au as xr,a6 as On,aJ as U,aS as En,m as _r,b as Tn,c as An,a8 as Mn,C as Rn,g as Hn,A as Ln,M as Vn,F as Dn,r as Fn,s as Kn,t as Bn,u as Wn,v as Un,w as qn,x as zn,y as Gn,o as Yn,p as jn,q as Jn,B as Xn,z as Zn,aT as he,bp as X,a4 as Ir,a3 as Cr,bw as Qn,H as $n,f as eo,bJ as Nr,a5 as to}from"./AXIAXE42.js";import{F as Pr,av as ro,bW as no,ax as oo,at as so}from"./C8iHXc33.js";import{b as io}from"./BaIAhI85.js";import{E as ao}from"./BqUqwkFB.js";import{H as rr,g as nr,S as ft}from"./Cvz2UPkQ.js";import{c as lo,u as uo,s as co}from"./DfxQWSVU.js";import"./C9I4tasT.js";const Sr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};xn(Sr);var Re,_t;class ho{constructor(e,t){H(this,Re,()=>{});H(this,_t,I(()=>h(this,Re).call(this)));let r;t!==void 0&&(r=t),Ne(this,Re,()=>{try{return r}finally{r=e()}})}get current(){return n(h(this,_t))}}Re=new WeakMap,_t=new WeakMap;var go=new Set(["$$slots","$$events","$$legacy","value"]),or=J("<input/>");function kr(i,e){if(new.target)return ee({component:kr,...i});ne(e,!0);let t=d(e,"value",15),r=ye(e,go);const o=I(()=>ce(r,{"aria-hidden":"true",tabindex:-1,style:{...Sr,position:"absolute",top:"0",left:"0"}}));var s={get value(){return t()},set value(l){t(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},a=q(),g=F(a);{var _=l=>{var c=or();se(c,()=>({...n(o),value:t()}),void 0,void 0,void 0,void 0,!0),P(l,c)},m=l=>{var c=or();se(c,()=>({...n(o)}),void 0,void 0,void 0,void 0,!0),un(c,t),P(l,c)};$(g,l=>{n(o).type==="checkbox"?l(_):l(m,-1)})}return P(i,a),oe(s)}var pe,we,fe;class po{constructor(e){H(this,pe);H(this,we,I(()=>h(this,pe).candidateValues()));H(this,fe);Ne(this,pe,e),Ne(this,fe,_n("",{afterMs:1e3,getWindow:h(this,pe).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!h(this,pe).enabled()||!n(h(this,we)).length)return;h(this,fe).current=h(this,fe).current+e;const t=h(this,pe).getCurrentItem(),r=n(h(this,we)).find(g=>g===t)??"",o=n(h(this,we)).map(g=>g??""),s=In(o,h(this,fe).current,r),a=n(h(this,we)).find(g=>g===s);return a&&h(this,pe).onMatch(a),a}resetTypeahead(){h(this,fe).current=""}}pe=new WeakMap,we=new WeakMap,fe=new WeakMap;const sr=[Tn,_r,An,Mn,Rn,Hn,Ln,Vn,yt,Dn,Fn,Kn,Bn,Wn,Un,qn,zn,Gn,Yn,jn,Jn],fo=[me,Ft,Kt],vo=[le,Bt,Wt],Or=[...fo,...vo],mo=En({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Ce=new Dt("Select.Root | Combobox.Root"),Er=new Dt("Select.Group | Combobox.Group"),Tr=new Dt("Select.Content | Combobox.Content");var He,Le,Ve,De,Fe,Ke,Be,We,Ue,qe,ze,Ge;class Ar{constructor(e){L(this,"opts");H(this,He,Y(!1));H(this,Le,Y(null));H(this,Ve,Y(null));L(this,"contentPresence");H(this,De,Y(null));H(this,Fe,Y(null));H(this,Ke,Y(null));H(this,Be,Y(""));H(this,We,Y(null));H(this,Ue,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));H(this,qe,I(()=>{if(this.highlightedNode)return this.highlightedNode.id}));H(this,ze,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));H(this,Ge,Y(!1));L(this,"isUsingKeyboard",!1);L(this,"isCombobox",!1);L(this,"domContext",new Nt(()=>null));L(this,"getBitsAttr",e=>mo.getAttr(e,this.isCombobox?"combobox":void 0));this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new On({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),on(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return n(h(this,He))}set touchedInput(e){k(h(this,He),e,!0)}get inputNode(){return n(h(this,Le))}set inputNode(e){k(h(this,Le),e,!0)}get contentNode(){return n(h(this,Ve))}set contentNode(e){k(h(this,Ve),e,!0)}get viewportNode(){return n(h(this,De))}set viewportNode(e){k(h(this,De),e,!0)}get triggerNode(){return n(h(this,Fe))}set triggerNode(e){k(h(this,Fe),e,!0)}get valueNode(){return n(h(this,Ke))}set valueNode(e){k(h(this,Ke),e,!0)}get valueId(){return n(h(this,Be))}set valueId(e){k(h(this,Be),e,!0)}get highlightedNode(){return n(h(this,We))}set highlightedNode(e){k(h(this,We),e,!0)}get highlightedValue(){return n(h(this,Ue))}set highlightedValue(e){k(h(this,Ue),e)}get highlightedId(){return n(h(this,qe))}set highlightedId(e){k(h(this,qe),e)}get highlightedLabel(){return n(h(this,ze))}set highlightedLabel(e){k(h(this,ze),e)}get contentIsPositioned(){return n(h(this,Ge))}set contentIsPositioned(e){k(h(this,Ge),e,!0)}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&this.scrollHighlightedNodeIntoView(e)}scrollHighlightedNodeIntoView(e){!this.viewportNode||!this.contentIsPositioned||e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){const r=this.viewportNode.getBoundingClientRect();t=t.filter(o=>{if(!this.viewportNode)return!1;const s=o.getBoundingClientRect();return s.right<=r.right&&s.left>=r.left&&s.bottom<=r.bottom&&s.top>=r.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(r=>r.dataset.value===e)??null}getLabelForValue(e){if(e==="")return"";const t=this.opts.items.current.find(o=>o.value===e)?.label;if(t!==void 0)return t;const r=this.getNodeByValue(e);if(r){const o=r.getAttribute("data-label");return o!==null&&o!==""?o:r.textContent?.trim()??e}return e}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}He=new WeakMap,Le=new WeakMap,Ve=new WeakMap,De=new WeakMap,Fe=new WeakMap,Ke=new WeakMap,Be=new WeakMap,We=new WeakMap,Ue=new WeakMap,qe=new WeakMap,ze=new WeakMap,Ge=new WeakMap;var Ye,je,Je,Xe;class bo extends Ar{constructor(t){super(t);L(this,"opts");L(this,"isMulti",!1);H(this,Ye,I(()=>this.opts.value.current!==""));H(this,je,I(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":""));H(this,Je,I(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]));H(this,Xe,I(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=t,de(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),be(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,Ye))}set hasValue(t){k(h(this,Ye),t)}get currentLabel(){return n(h(this,je))}set currentLabel(t){k(h(this,je),t)}get candidateLabels(){return n(h(this,Je))}set candidateLabels(t){k(h(this,Je),t)}get dataTypeaheadEnabled(){return n(h(this,Xe))}set dataTypeaheadEnabled(t){k(h(this,Xe),t)}includesItem(t){return this.opts.value.current===t}toggleItem(t,r=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=r)}setInitialHighlightedNode(){xr(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ye=new WeakMap,je=new WeakMap,Je=new WeakMap,Xe=new WeakMap;var Ze;class yo extends Ar{constructor(t){super(t);L(this,"opts");L(this,"isMulti",!0);H(this,Ze,I(()=>this.opts.value.current.length>0));this.opts=t,de(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),be(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,Ze))}set hasValue(t){k(h(this,Ze),t)}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,r=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=r}setInitialHighlightedNode(){xr(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ze=new WeakMap;class wo{static create(e){const{type:t,...r}=e,o=t==="single"?new bo(r):new yo(r);return Ce.set(o)}}var Qe;const zt=class zt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,Qe,I(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":wr(this.root.opts.open.current),"data-state":qt(this.root.opts.open.current),"data-disabled":Ut(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.inputNode=r),this.root.domContext=new Nt(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),be([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([r,o],[s])=>{o&&(Array.isArray(r)&&Array.isArray(s)?r.length===0&&s.length!==0&&(this.root.opts.inputValue.current=""):r===""&&s!==""&&(this.root.opts.inputValue.current=""))})}static create(e){return new zt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==_r){if((e.key===le||e.key===me)&&e.preventDefault(),!this.root.opts.open.current){if(sr.includes(e.key)||e.key===wt||e.key===Xn&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===me){const r=t[0];this.root.setHighlightedNode(r)}else if(e.key===le){const r=t[t.length-1];this.root.setHighlightedNode(r)}return}if(e.key===wt){this.root.handleClose();return}if(e.key===yt&&!e.isComposing){e.preventDefault();const t=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t&&this.root.handleClose()}if(e.key===le&&e.altKey&&this.root.handleClose(),Or.includes(e.key)){e.preventDefault();const t=this.root.getCandidateNodes(),r=this.root.highlightedNode,o=r?t.indexOf(r):-1,s=this.root.opts.loop.current;let a;if(e.key===me?a=vr(t,o,s):e.key===le?a=mr(t,o,s):e.key===Bt?a=br(t,o,10,s):e.key===Ft?a=yr(t,o,10,s):e.key===Kt?a=t[0]:e.key===Wt&&(a=t[t.length-1]),!a)return;this.root.setHighlightedNode(a);return}sr.includes(e.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(e){this.root.opts.inputValue.current=e.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return n(h(this,Qe))}set props(e){k(h(this,Qe),e)}};Qe=new WeakMap;let ir=zt;var xe,ke,ge,Mr,Mt,Rt,$e;const Gt=class Gt{constructor(e,t){H(this,ge);L(this,"opts");L(this,"root");L(this,"attachment");H(this,xe);H(this,ke);H(this,$e,I(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":wr(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":qt(this.root.opts.open.current),"data-disabled":Ut(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.triggerNode=r),this.root.domContext=new Nt(e.ref),Ne(this,xe,new Cn({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Ne(this,ke,new po({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:r=>{if(this.root.isMulti||!this.root.opts.items.current)return;const o=this.root.opts.items.current.find(s=>s.label===r);o&&(this.root.opts.value.current=o.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return new Gt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===le||e.key===me)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===yt||e.key===kt||e.key===me||e.key===le)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){h(this,ke).handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const a=this.root.getCandidateNodes();if(!a.length)return;if(e.key===me){const g=a[0];this.root.setHighlightedNode(g)}else if(e.key===le){const g=a[a.length-1];this.root.setHighlightedNode(g)}return}if(e.key===wt){this.root.handleClose();return}if((e.key===yt||e.key===kt&&h(this,xe).search==="")&&!e.isComposing&&(e.preventDefault(),Pe(this,ge,Rt).call(this)))return;if(e.key===le&&e.altKey&&this.root.handleClose(),Or.includes(e.key)){e.preventDefault();const a=this.root.getCandidateNodes(),g=this.root.highlightedNode,_=g?a.indexOf(g):-1,m=this.root.opts.loop.current;let l;if(e.key===me?l=vr(a,_,m):e.key===le?l=mr(a,_,m):e.key===Bt?l=br(a,_,10,m):e.key===Ft?l=yr(a,_,10,m):e.key===Kt?l=a[0]:e.key===Wt&&(l=a[a.length-1]),!l)return;this.root.setHighlightedNode(l);return}const t=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1,o=e.key===kt,s=this.root.getCandidateNodes();if(e.key!==wt){if(!t&&(r||o)){!h(this,xe).handleTypeaheadSearch(e.key,s)&&o&&(e.preventDefault(),Pe(this,ge,Rt).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(e){e.currentTarget.focus()}onpointerdown(e){if(this.root.opts.disabled.current)return;if(e.pointerType==="touch")return e.preventDefault();const t=e.target;t?.hasPointerCapture(e.pointerId)&&t?.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(this.root.opts.open.current===!1?Pe(this,ge,Mt).call(this,e):this.root.handleClose())}onpointerup(e){this.root.opts.disabled.current||(e.preventDefault(),e.pointerType==="touch"&&(this.root.opts.open.current===!1?Pe(this,ge,Mt).call(this,e):this.root.handleClose()))}get props(){return n(h(this,$e))}set props(e){k(h(this,$e),e)}};xe=new WeakMap,ke=new WeakMap,ge=new WeakSet,Mr=function(){this.root.opts.open.current=!0,h(this,ke).resetTypeahead(),h(this,xe).resetTypeahead()},Mt=function(e){Pe(this,ge,Mr).call(this)},Rt=function(){const e=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e?(this.root.handleClose(),!0):!1)},$e=new WeakMap;let At=Gt;var et,It,tt,rt;const Yt=class Yt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,et,Y(!1));L(this,"domContext");H(this,It,I(()=>Sn(this.root.isCombobox?"combobox":"select")));L(this,"onInteractOutside",e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});L(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});L(this,"onOpenAutoFocus",e=>{e.preventDefault()});L(this,"onCloseAutoFocus",e=>{e.preventDefault()});H(this,tt,I(()=>({open:this.root.opts.open.current})));H(this,rt,I(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":qt(this.root.opts.open.current),...kn(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...n(h(this,It))},onpointermove:this.onpointermove,...this.attachment})));L(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.contentNode=r),this.domContext=new Nt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Pn(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),be(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),be([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(e){return Tr.set(new Yt(e,Ce.get()))}get isPositioned(){return n(h(this,et))}set isPositioned(e){k(h(this,et),e,!0)}onpointermove(e){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return n(h(this,tt))}set snippetProps(e){k(h(this,tt),e)}get props(){return n(h(this,rt))}set props(e){k(h(this,rt),e)}};et=new WeakMap,It=new WeakMap,tt=new WeakMap,rt=new WeakMap;let xt=Yt;var nt,ot,st,it,at;const jt=class jt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,nt,I(()=>this.root.includesItem(this.opts.value.current)));H(this,ot,I(()=>this.root.highlightedValue===this.opts.value.current));L(this,"prevHighlighted",new ho(()=>this.isHighlighted));H(this,st,Y(!1));H(this,it,I(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));H(this,at,I(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Ut(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref),be([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),be(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(e){return new jt(e,Ce.get())}get isSelected(){return n(h(this,nt))}set isSelected(e){k(h(this,nt),e)}get isHighlighted(){return n(h(this,ot))}set isHighlighted(e){k(h(this,ot),e)}get mounted(){return n(h(this,st))}set mounted(e){k(h(this,st),e,!0)}handleSelect(){if(this.opts.disabled.current)return;const e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}get snippetProps(){return n(h(this,it))}set snippetProps(e){k(h(this,it),e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!Nn){nn(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return n(h(this,at))}set props(e){k(h(this,at),e)}};nt=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,at=new WeakMap;let Ht=jt;var lt,dt;const Jt=class Jt{constructor(e,t){L(this,"opts");L(this,"root");H(this,lt,Y(null));L(this,"attachment");H(this,dt,I(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref)}static create(e){return Er.set(new Jt(e,Ce.get()))}get labelNode(){return n(h(this,lt))}set labelNode(e){k(h(this,lt),e,!0)}get props(){return n(h(this,dt))}set props(e){k(h(this,dt),e)}};lt=new WeakMap,dt=new WeakMap;let ar=Jt;var ut;const Xt=class Xt{constructor(e,t){L(this,"opts");L(this,"group");L(this,"attachment");H(this,ut,I(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=e,this.group=t,this.attachment=Ie(e.ref,r=>this.group.labelNode=r)}static create(e){return new Xt(e,Er.get())}get props(){return n(h(this,ut))}set props(e){k(h(this,ut),e)}};ut=new WeakMap;let lr=Xt;var ct,ht;const Zt=class Zt{constructor(e,t){L(this,"opts");L(this,"root");H(this,ct,I(()=>this.root.opts.name.current!==""));H(this,ht,I(()=>({disabled:tr(this.root.opts.disabled.current),required:tr(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}static create(e){return new Zt(e,Ce.get())}get shouldRender(){return n(h(this,ct))}set shouldRender(e){k(h(this,ct),e)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return n(h(this,ht))}set props(e){k(h(this,ht),e)}};ct=new WeakMap,ht=new WeakMap;let Lt=Zt;var gt,pt;const Qt=class Qt{constructor(e,t){L(this,"opts");L(this,"content");L(this,"root");L(this,"attachment");H(this,gt,Y(0));H(this,pt,I(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=e,this.content=t,this.root=t.root,this.attachment=Ie(e.ref,r=>{this.root.viewportNode=r})}static create(e){return new Qt(e,Tr.get())}get prevScrollTop(){return n(h(this,gt))}set prevScrollTop(e){k(h(this,gt),e,!0)}get props(){return n(h(this,pt))}set props(e){k(h(this,pt),e)}};gt=new WeakMap,pt=new WeakMap;let Vt=Qt;function mt(i,e){if(new.target)return ee({component:mt,...i});ne(e,!0);let t=d(e,"value",15),r=d(e,"autocomplete",7);const o=Lt.create({value:U(()=>t())});var s={get value(){return t()},set value(m){t(m),u()},get autocomplete(){return r()},set autocomplete(m){r(m),u()},$set:te,$on:(m,l)=>re(e,m,l)},a=q(),g=F(a);{var _=m=>{kr(m,_e(()=>o.props,{get autocomplete(){return r()},get value(){return t()},set value(l){t(l)}}))};$(g,m=>{o.shouldRender&&m(_)})}return P(i,a),oe(s)}function Rr(i,e){if(new.target)return ee({component:Rr,...i});ne(e,!0);let t=d(e,"id",7),r=d(e,"children",7),o=d(e,"virtualEl",7),s=d(e,"ref",7),a=d(e,"tooltip",7,!1);Zn.create({id:U(()=>t()),virtualEl:U(()=>o()),ref:s()},a());var g={get id(){return t()},set id(l){t(l),u()},get children(){return r()},set children(l){r(l),u()},get virtualEl(){return o()},set virtualEl(l){o(l),u()},get ref(){return s()},set ref(l){s(l),u()},get tooltip(){return a()},set tooltip(l=!1){a(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},_=q(),m=F(_);return j(m,()=>r()??ae),P(i,_),oe(g)}var xo=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),dr=J("<div><div><!></div></div>");function Hr(i,e){const t=Oe();if(new.target)return ee({component:Hr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),a=d(e,"side",7,"bottom"),g=d(e,"onInteractOutside",7,X),_=d(e,"onEscapeKeydown",7,X),m=d(e,"children",7),l=d(e,"child",7),c=d(e,"preventScroll",7,!1),T=d(e,"style",7),O=ye(e,xo);const f=xt.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),onInteractOutside:U(()=>g()),onEscapeKeydown:U(()=>_())}),y=I(()=>ce(O,f.props));var b={get id(){return r()},set id(p=he(t)){r(p),u()},get ref(){return o()},set ref(p=null){o(p),u()},get forceMount(){return s()},set forceMount(p=!1){s(p),u()},get side(){return a()},set side(p="bottom"){a(p),u()},get onInteractOutside(){return g()},set onInteractOutside(p=X){g(p),u()},get onEscapeKeydown(){return _()},set onEscapeKeydown(p=X){_(p),u()},get children(){return m()},set children(p){m(p),u()},get child(){return l()},set child(p){l(p),u()},get preventScroll(){return c()},set preventScroll(p=!1){c(p),u()},get style(){return T()},set style(p){T(p),u()},$set:te,$on:(p,V)=>re(e,p,V)},E=q(),R=F(E);{var G=p=>{Ir(p,_e(()=>n(y),()=>f.popperProps,{get ref(){return f.opts.ref},get side(){return a()},get enabled(){return f.root.opts.open.current},get id(){return r()},get preventScroll(){return c()},forceMount:!0,get shouldRender(){return f.shouldRender},popper:(N,w)=>{let M=()=>(w?.()).props,B=()=>(w?.()).wrapperProps;const x=I(()=>ce(M(),{style:f.props.style},{style:T()}));var D=q(),W=F(D);{var K=S=>{var A=q(),z=F(A);{let ie=I(()=>({props:n(x),wrapperProps:B(),...f.snippetProps}));j(z,l,()=>n(ie))}P(S,A)},C=S=>{var A=dr();se(A,()=>({...B()}));var z=Z(A);se(z,()=>({...n(x)}));var ie=Z(z);j(ie,()=>m()??ae),Q(z),Q(A),P(S,A)};$(W,S=>{l()?S(K):S(C,-1)})}P(N,D)},$$slots:{popper:!0}}))},v=p=>{Cr(p,_e(()=>n(y),()=>f.popperProps,{get ref(){return f.opts.ref},get side(){return a()},get open(){return f.root.opts.open.current},get id(){return r()},get preventScroll(){return c()},forceMount:!1,get shouldRender(){return f.shouldRender},popper:(N,w)=>{let M=()=>(w?.()).props,B=()=>(w?.()).wrapperProps;const x=I(()=>ce(M(),{style:f.props.style},{style:T()}));var D=q(),W=F(D);{var K=S=>{var A=q(),z=F(A);{let ie=I(()=>({props:n(x),wrapperProps:B(),...f.snippetProps}));j(z,l,()=>n(ie))}P(S,A)},C=S=>{var A=dr();se(A,()=>({...B()}));var z=Z(A);se(z,()=>({...n(x)}));var ie=Z(z);j(ie,()=>m()??ae),Q(z),Q(A),P(S,A)};$(W,S=>{l()?S(K):S(C,-1)})}P(N,D)},$$slots:{popper:!0}}))};$(R,p=>{s()?p(G):s()||p(v,1)})}return P(i,E),oe(b)}var _o=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),ur=J("<div><!></div>");function Lr(i,e){const t=Oe();if(new.target)return ee({component:Lr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),a=d(e,"onInteractOutside",7,X),g=d(e,"onEscapeKeydown",7,X),_=d(e,"children",7),m=d(e,"child",7),l=d(e,"preventScroll",7,!1),c=d(e,"style",7),T=ye(e,_o);const O=xt.create({id:U(()=>r()),ref:U(()=>o(),v=>o(v)),onInteractOutside:U(()=>a()),onEscapeKeydown:U(()=>g())}),f=I(()=>ce(T,O.props));var y={get id(){return r()},set id(v=he(t)){r(v),u()},get ref(){return o()},set ref(v=null){o(v),u()},get forceMount(){return s()},set forceMount(v=!1){s(v),u()},get onInteractOutside(){return a()},set onInteractOutside(v=X){a(v),u()},get onEscapeKeydown(){return g()},set onEscapeKeydown(v=X){g(v),u()},get children(){return _()},set children(v){_(v),u()},get child(){return m()},set child(v){m(v),u()},get preventScroll(){return l()},set preventScroll(v=!1){l(v),u()},get style(){return c()},set style(v){c(v),u()},$set:te,$on:(v,p)=>re(e,v,p)},b=q(),E=F(b);{var R=v=>{Ir(v,_e(()=>n(f),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get enabled(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return l()},forceMount:!0,get shouldRender(){return O.shouldRender},popper:(V,N)=>{let w=()=>(N?.()).props;const M=I(()=>ce(w(),{style:O.props.style},{style:c()}));var B=q(),x=F(B);{var D=K=>{var C=q(),S=F(C);{let A=I(()=>({props:n(M),...O.snippetProps}));j(S,m,()=>n(A))}P(K,C)},W=K=>{var C=ur();se(C,()=>({...n(M)}));var S=Z(C);j(S,()=>_()??ae),Q(C),P(K,C)};$(x,K=>{m()?K(D):K(W,-1)})}P(V,B)},$$slots:{popper:!0}}))},G=v=>{Cr(v,_e(()=>n(f),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get open(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return l()},forceMount:!1,get shouldRender(){return O.shouldRender},popper:(V,N)=>{let w=()=>(N?.()).props;const M=I(()=>ce(w(),{style:O.props.style},{style:c()}));var B=q(),x=F(B);{var D=K=>{var C=q(),S=F(C);{let A=I(()=>({props:n(M),...O.snippetProps}));j(S,m,()=>n(A))}P(K,C)},W=K=>{var C=ur();se(C,()=>({...n(M)}));var S=Z(C);j(S,()=>_()??ae),Q(C),P(K,C)};$(x,K=>{m()?K(D):K(W,-1)})}P(V,B)},$$slots:{popper:!0}}))};$(E,v=>{s()?v(R):s()||v(G,1)})}return P(i,b),oe(y)}function Vr(i,e){if(new.target)return ee({component:Vr,...i});ne(e,!0);let t=d(e,"mounted",15,!1),r=d(e,"onMountedChange",7,X);Qn(()=>(t(!0),r()(!0),()=>{t(!1),r()(!1)}));var o={get mounted(){return t()},set mounted(s=!1){t(s),u()},get onMountedChange(){return r()},set onMountedChange(s=X){r(s),u()},$set:te,$on:(s,a)=>re(e,s,a)};return oe(o)}var Io=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),Co=J("<div><!></div>"),No=J("<!> <!>",1);function Dr(i,e){const t=Oe();if(new.target)return ee({component:Dr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"value",7),a=d(e,"label",23,s),g=d(e,"disabled",7,!1),_=d(e,"children",7),m=d(e,"child",7),l=d(e,"onHighlight",7,X),c=d(e,"onUnhighlight",7,X),T=ye(e,Io);const O=Ht.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),value:U(()=>s()),disabled:U(()=>g()),label:U(()=>a()),onHighlight:U(()=>l()),onUnhighlight:U(()=>c())}),f=I(()=>ce(T,O.props));var y={get id(){return r()},set id(p=he(t)){r(p),u()},get ref(){return o()},set ref(p=null){o(p),u()},get value(){return s()},set value(p){s(p),u()},get label(){return a()},set label(p=s){a(p),u()},get disabled(){return g()},set disabled(p=!1){g(p),u()},get children(){return _()},set children(p){_(p),u()},get child(){return m()},set child(p){m(p),u()},get onHighlight(){return l()},set onHighlight(p=X){l(p),u()},get onUnhighlight(){return c()},set onUnhighlight(p=X){c(p),u()},$set:te,$on:(p,V)=>re(e,p,V)},b=No(),E=F(b);{var R=p=>{var V=q(),N=F(V);{let w=I(()=>({props:n(f),...O.snippetProps}));j(N,m,()=>n(w))}P(p,V)},G=p=>{var V=Co();se(V,()=>({...n(f)}));var N=Z(V);j(N,()=>_()??ae,()=>O.snippetProps),Q(V),P(p,V)};$(E,p=>{m()?p(R):p(G,-1)})}var v=Ee(E,2);return Vr(v,{get mounted(){return O.mounted},set mounted(p){O.mounted=p}}),P(i,b),oe(y)}var Po=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),So=J("<div><!></div>");function Fr(i,e){const t=Oe();if(new.target)return ee({component:Fr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"children",7),a=d(e,"child",7),g=ye(e,Po);const _=Vt.create({id:U(()=>r()),ref:U(()=>o(),y=>o(y))}),m=I(()=>ce(g,_.props));var l={get id(){return r()},set id(y=he(t)){r(y),u()},get ref(){return o()},set ref(y=null){o(y),u()},get children(){return s()},set children(y){s(y),u()},get child(){return a()},set child(y){a(y),u()},$set:te,$on:(y,b)=>re(e,y,b)},c=q(),T=F(c);{var O=y=>{var b=q(),E=F(b);j(E,a,()=>({props:n(m)})),P(y,b)},f=y=>{var b=So();se(b,()=>({...n(m)}));var E=Z(b);j(E,()=>s()??ae),Q(b),P(y,b)};$(T,y=>{a()?y(O):y(f,-1)})}return P(i,c),oe(l)}var ko=J("<!> <!>",1);function Kr(i,e){if(new.target)return ee({component:Kr,...i});ne(e,!0);let t=d(e,"value",15),r=d(e,"onValueChange",7,X),o=d(e,"name",7,""),s=d(e,"disabled",7,!1),a=d(e,"type",7),g=d(e,"open",15,!1),_=d(e,"onOpenChange",7,X),m=d(e,"onOpenChangeComplete",7,X),l=d(e,"loop",7,!1),c=d(e,"scrollAlignment",7,"nearest"),T=d(e,"required",7,!1),O=d(e,"items",23,()=>[]),f=d(e,"allowDeselect",7,!1),y=d(e,"autocomplete",7),b=d(e,"children",7);function E(){t()===void 0&&t(a()==="single"?"":[])}E(),be.pre(()=>t(),()=>{E()});let R=Y("");const G=wo.create({type:a(),value:U(()=>t(),x=>{t(x),r()(x)}),disabled:U(()=>s()),required:U(()=>T()),open:U(()=>g(),x=>{g(x),_()(x)}),loop:U(()=>l()),scrollAlignment:U(()=>c()),name:U(()=>o()),isCombobox:!1,items:U(()=>O()),allowDeselect:U(()=>f()),inputValue:U(()=>n(R),x=>k(R,x,!0)),onOpenChangeComplete:U(()=>m())});var v={get value(){return t()},set value(x){t(x),u()},get onValueChange(){return r()},set onValueChange(x=X){r(x),u()},get name(){return o()},set name(x=""){o(x),u()},get disabled(){return s()},set disabled(x=!1){s(x),u()},get type(){return a()},set type(x){a(x),u()},get open(){return g()},set open(x=!1){g(x),u()},get onOpenChange(){return _()},set onOpenChange(x=X){_(x),u()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(x=X){m(x),u()},get loop(){return l()},set loop(x=!1){l(x),u()},get scrollAlignment(){return c()},set scrollAlignment(x="nearest"){c(x),u()},get required(){return T()},set required(x=!1){T(x),u()},get items(){return O()},set items(x=[]){O(x),u()},get allowDeselect(){return f()},set allowDeselect(x=!1){f(x),u()},get autocomplete(){return y()},set autocomplete(x){y(x),u()},get children(){return b()},set children(x){b(x),u()},$set:te,$on:(x,D)=>re(e,x,D)},p=ko(),V=F(p);$n(V,{children:(x,D)=>{var W=q(),K=F(W);j(K,()=>b()??ae),P(x,W)},$$slots:{default:!0}});var N=Ee(V,2);{var w=x=>{var D=q(),W=F(D);{var K=S=>{mt(S,{get autocomplete(){return y()}})},C=S=>{var A=q(),z=F(A);Tt(z,16,()=>G.opts.value.current,ie=>ie,(ie,Te)=>{mt(ie,{get value(){return Te},get autocomplete(){return y()}})}),P(S,A)};$(W,S=>{G.opts.value.current.length===0?S(K):S(C,-1)})}P(x,D)},M=I(()=>Array.isArray(G.opts.value.current)),B=x=>{mt(x,{get autocomplete(){return y()},get value(){return G.opts.value.current},set value(D){G.opts.value.current=D}})};$(N,x=>{n(M)?x(w):x(B,-1)})}return P(i,p),oe(v)}var Oo=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),Eo=J("<button><!></button>");function Br(i,e){const t=Oe();if(new.target)return ee({component:Br,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"child",7),a=d(e,"children",7),g=d(e,"type",7,"button"),_=ye(e,Oo);const m=At.create({id:U(()=>r()),ref:U(()=>o(),f=>o(f))}),l=I(()=>ce(_,m.props,{type:g()}));var c={get id(){return r()},set id(f=he(t)){r(f),u()},get ref(){return o()},set ref(f=null){o(f),u()},get child(){return s()},set child(f){s(f),u()},get children(){return a()},set children(f){a(f),u()},get type(){return g()},set type(f="button"){g(f),u()},$set:te,$on:(f,y)=>re(e,f,y)},T=q(),O=F(T);return ve(O,()=>Rr,(f,y)=>{y(f,{get id(){return r()},get ref(){return m.opts.ref},children:(b,E)=>{var R=q(),G=F(R);{var v=V=>{var N=q(),w=F(N);j(w,s,()=>({props:n(l)})),P(V,N)},p=V=>{var N=Eo();se(N,()=>({...n(l)}));var w=Z(N);j(w,()=>a()??ae),Q(N),P(V,N)};$(G,V=>{s()?V(v):V(p,-1)})}P(b,R)},$$slots:{default:!0}})}),P(i,T),oe(c)}var To=J('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Wr(i,e){const t=Oe();if(new.target)return ee({component:Wr,...i});ne(e,!0);const r=`${t}-trigger`;let o=Y(r),s=d(e,"value",15,""),a=d(e,"open",15,!1),g=d(e,"items",23,()=>[]),_=d(e,"disabled",7,!1),m=d(e,"invalid",7,!1),l=d(e,"required",7,!1),c=d(e,"name",7),T=d(e,"loop",7,!0),O=d(e,"onchange",7),f=d(e,"onopenchange",7),y=d(e,"children",7),b=d(e,"staticPosition",7,!1);cn(()=>{a(!1),f()?.(!1)}),hr("canonical-select",{get triggerId(){return n(o)},registerTriggerId(v){k(o,v??r,!0)},listboxId:`${t}-listbox`,get value(){return s()},get displayValue(){return g().find(v=>v.value===s())?.label??s()},get invalid(){return m()},get open(){return a()},get staticPosition(){return b()},set open(v){a(v)}});var E={get value(){return s()},set value(v=""){s(v),u()},get open(){return a()},set open(v=!1){a(v),u()},get items(){return g()},set items(v=[]){g(v),u()},get disabled(){return _()},set disabled(v=!1){_(v),u()},get invalid(){return m()},set invalid(v=!1){m(v),u()},get required(){return l()},set required(v=!1){l(v),u()},get name(){return c()},set name(v){c(v),u()},get loop(){return T()},set loop(v=!0){T(v),u()},get onchange(){return O()},set onchange(v){O(v),u()},get onopenchange(){return f()},set onopenchange(v){f(v),u()},get children(){return y()},set children(v){y(v),u()},get staticPosition(){return b()},set staticPosition(v=!1){b(v),u()},$set:te,$on:(v,p)=>re(e,v,p)},R=To(),G=Z(R);return ve(G,()=>Kr,(v,p)=>{p(v,{type:"single",get items(){return g()},get disabled(){return _()},get required(){return l()},get name(){return c()},get loop(){return T()},get onValueChange(){return O()},get onOpenChange(){return f()},get value(){return s()},set value(V){s(V)},get open(){return a()},set open(V){a(V)},children:(V,N)=>{var w=q(),M=F(w);j(M,()=>y()??ae),P(V,w)},$$slots:{default:!0}})}),Q(R),P(i,R),oe(E)}var Ao=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),Mo=J("<!> <!>",1);function Ur(i,e){if(new.target)return ee({component:Ur,...i});ne(e,!0);const t=(N,w)=>{let M=()=>(w?.()).props;const B=I(()=>G(M()));var x=q(),D=F(x);{var W=C=>{var S=q(),A=F(S);j(A,a,()=>({props:n(B)})),P(C,S)},K=C=>{eo(C,_e(()=>n(B),{get variant(){return n(b)},get active(){return c.open},get class(){return n(E)},children:(S,A)=>{var z=Mo(),ie=F(z);j(ie,()=>s()??ae);var Te=Ee(ie,2);{var Pt=Ae=>{Pr(Ae,{get icon(){return ro},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=>{r()==="default"&&Ae(Pt)})}P(S,z)},$$slots:{default:!0}}))};$(D,C=>{a()?C(W):C(K,-1)})}P(N,x)};let r=d(e,"variant",7,"default"),o=d(e,"class",7,""),s=d(e,"children",7),a=d(e,"child",7),g=d(e,"onclick",7),_=d(e,"id",7),m=d(e,"ref",15,null),l=ye(e,Ao);const c=Ct("canonical-select");sn(()=>c.registerTriggerId(_())),de(()=>c.registerTriggerId(_()));let T=Y(!1);de(()=>{const N=c.triggerId;k(T,Array.from(document.querySelectorAll("label[for]")).some(w=>w.htmlFor===N),!0)});const O=I(()=>!l["aria-label"]&&!l["aria-labelledby"]&&!n(T));let f=Y(void 0);de(()=>{const N=m();if(!n(O)||!N){k(f,void 0);return}const w=()=>{k(f,N.textContent?.trim()||void 0,!0)};w();const M=new MutationObserver(w);return M.observe(N,{childList:!0,characterData:!0,subtree:!0}),()=>M.disconnect()});const y={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"},b=I(()=>r()==="default"?"outline":r()==="secondary"?"secondary":"ghost"),E=I(()=>ue("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) 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",y[r()],o()));function R(N){N.detail===0&&!c.open&&(c.open=!0),g()?.(N)}function G(N){const{"aria-activedescendant":w,"aria-label":M,...B}=N;return{...B,role:"combobox","aria-label":typeof M=="string"?M:n(f),"aria-activedescendant":c.open&&typeof w=="string"?w:void 0}}var v={get variant(){return r()},set variant(N="default"){r(N),u()},get class(){return o()},set class(N=""){o(N),u()},get children(){return s()},set children(N){s(N),u()},get child(){return a()},set child(N){a(N),u()},get onclick(){return g()},set onclick(N){g(N),u()},get id(){return _()},set id(N){_(N),u()},get ref(){return m()},set ref(N=null){m(N),u()},$set:te,$on:(N,w)=>re(e,N,w)},p=q(),V=F(p);{let N=I(()=>c.open?c.listboxId:void 0),w=I(()=>c.invalid||void 0);ve(V,()=>Br,(M,B)=>{B(M,_e(()=>l,{get id(){return c.triggerId},get"aria-controls"(){return n(N)},get class(){return n(E)},get"aria-invalid"(){return n(w)},onclick:R,get child(){return t},get ref(){return m()},set ref(x){m(x)}}))})}return P(i,p),oe(v)}var Ro=J("<span> </span>");function qr(i,e){if(new.target)return ee({component:qr,...i});ne(e,!0);let t=d(e,"placeholder",23,()=>er.ui_select_value_placeholder());const r=Ct("canonical-select");var o={get placeholder(){return t()},set placeholder(g=er.ui_select_value_placeholder()){t(g),u()},$set:te,$on:(g,_)=>re(e,g,_)},s=Ro(),a=gr(s,!0);return Se(()=>{Me(s,1,`min-w-0 flex-1 truncate text-left ${r.value?"text-foreground":"text-muted-foreground"}`),an(a,r.displayValue||t())}),P(i,s),oe(o)}function Ho(i,e){const t=[...e].filter(o=>Number.isInteger(o)&&o>=0&&i[o]!==void 0).sort((o,s)=>o-s),r=[];for(const o of t){const s=r.at(-1);!s||o>s.endIndex+1?r.push({startIndex:o,endIndex:o}):o>s.endIndex&&(s.endIndex=o)}return r.map(({startIndex:o,endIndex:s})=>{let a=Number.POSITIVE_INFINITY,g=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,m=Number.NEGATIVE_INFINITY;for(let l=o;l<=s;l+=1){const c=i[l];c&&(a=Math.min(a,c.top),g=Math.min(g,c.left),_=Math.max(_,c.left+c.width),m=Math.max(m,c.top+c.height))}return{startIndex:o,endIndex:s,rect:{top:a,left:g,width:_-g,height:m-a}}})}function Ot(i,e){return Math.max(0,Math.min(i.endIndex,e.endIndex)-Math.max(i.startIndex,e.startIndex)+1)}function Lo(){let i=Y(pr([])),e=[],t=1;return{get groups(){return n(i)},update(r,o){const s=new Set,a=Ho(r,o).map(g=>{const m=e.filter(l=>!s.has(l.id)&&Ot(l,g)>0).sort((l,c)=>Ot(c,g)-Ot(l,g)||l.id-c.id)[0]?.id??t++;return s.add(m),{id:m,...g}});e=a,k(i,a,!0)},reset(){e=[],k(i,[],!0),t=1}}}var Vo=J('<div data-proximity-highlight="selected" style="border-radius: var(--radius-row)"></div>'),Do=J('<div data-proximity-highlight="hover" style="border-radius: var(--radius-row)"></div>'),Fo=J('<div aria-hidden="true"><!> <!></div>');function zr(i,e){if(new.target)return ee({component:zr,...i});ne(e,!0);let t=d(e,"store",7),r=d(e,"selectedIndexes",23,()=>[]),o=d(e,"selectedClass",7,"bg-selected"),s=d(e,"hoverClass",7,"bg-hover"),a=d(e,"class",7);const g=Lo(),_=I(()=>t().activeIndex===null?void 0:t().itemRects[t().activeIndex]);de(()=>{g.update(t().itemRects,r())});const m=(f,y)=>{const b=new ft(y.rect.top,y.tier),E=new ft(y.rect.left,y.tier),R=new ft(y.rect.width,y.tier),G=new ft(y.rect.height,y.tier),v=ln(()=>{de(()=>{f.style.transform=`translate3d(${E.current}px, ${b.current}px, 0)`,f.style.width=`${R.current}px`,f.style.height=`${G.current}px`})}),p=w=>{b.set(w.rect.top),E.set(w.rect.left),R.set(w.rect.width),G.set(w.rect.height)},N=yn(()=>wn()&&p(y));return{update(w){y=w,p(w)},destroy(){N(),v()}}};var l={get store(){return t()},set store(f){t(f),u()},get selectedIndexes(){return r()},set selectedIndexes(f=[]){r(f),u()},get selectedClass(){return o()},set selectedClass(f="bg-selected"){o(f),u()},get hoverClass(){return s()},set hoverClass(f="bg-hover"){s(f),u()},get class(){return a()},set class(f){a(f),u()},$set:te,$on:(f,y)=>re(e,f,y)},c=Fo(),T=Z(c);Tt(T,17,()=>g.groups,f=>f.id,(f,y)=>{var b=Vo();bt(b,(E,R)=>m?.(E,R),()=>({rect:n(y).rect,tier:"moderate"})),Se(E=>Me(b,1,E),[()=>vt(ue("absolute",o()))]),rr(2,b,()=>nr,()=>({tier:"moderate"})),P(f,b)});var O=Ee(T,2);return ao(O,()=>t().sessionId,f=>{var y=q(),b=F(y);Tt(b,17,()=>n(_)?[n(_)]:[],E=>0,(E,R)=>{var G=Do();bt(G,(v,p)=>m?.(v,p),()=>({rect:n(R),tier:"moderate"})),Se(v=>Me(G,1,v),[()=>vt(ue("absolute",s()))]),rr(2,G,()=>nr,()=>({tier:"fast"})),P(E,G)}),P(f,y)}),Q(c),Se(f=>Me(c,1,f),[()=>vt(ue("pointer-events-none absolute inset-0",a()))]),P(i,c),oe(l)}var Ko=J('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function Gr(i,e){if(new.target)return ee({component:Gr,...i});ne(e,!0);let t=d(e,"activeIndex",7),r=d(e,"onactiveindexchange",7),o=Y(null),s=Y(null),a=Y(pr([])),g=Y(null),_=Y(!1),m=Y(!1),l;const c='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';de(()=>{n(s)&&t()===void 0&&n(_)&&n(s).activeIndex!==n(g)&&n(s).setActiveIndex(n(g))}),de(()=>{!n(s)||t()===void 0||n(s).pointerPosition||n(s).setActiveIndex(t())}),de(()=>{if(!n(s)?.pointerPosition){l=void 0;return}n(s).activeIndex!==l&&(l=n(s).activeIndex,r()?.(n(s).activeIndex))}),dn(()=>{const b=n(o)?.parentElement;if(!b)return;b.dataset.listOverlay="",b.classList.add("relative","isolate");const E=hn(b);k(s,E);let R=[];const G=C=>C instanceof Element&&(C.matches(c)||C.querySelector(c)),v=C=>C.hasAttribute("data-disabled")||C.getAttribute("aria-disabled")==="true",p=C=>C.dataset.selectionAppearance!=="indicator"&&(C.hasAttribute("data-selected")||C.getAttribute("data-state")==="checked"||C.getAttribute("aria-selected")==="true"||C.getAttribute("aria-checked")==="true"),V=()=>{const C=Array.from(b.querySelectorAll(c)).filter(A=>A.closest("[data-list-overlay]")===b&&!v(A));C.length!==R.length||C.some((A,z)=>A!==R[z])?(R.forEach((A,z)=>E.registerItem(z,null)),R=C,R.forEach((A,z)=>E.registerItem(z,A))):E.measure();const S=R.flatMap((A,z)=>p(A)?[z]:[]);if((S.length!==n(a).length||S.some((A,z)=>A!==n(a)[z]))&&k(a,S,!0),t()===void 0){const A=R.findIndex(z=>z.hasAttribute("data-highlighted")||z===document.activeElement);A>=0&&E.setActiveIndex(A)}},N=new MutationObserver(C=>{C.some(S=>S.type==="attributes"||[...S.addedNodes,...S.removedNodes].some(G))&&V()});N.observe(b,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-highlighted","data-selected","data-state","data-disabled","aria-selected","aria-checked","aria-disabled","data-selection-appearance"]});const w=()=>{const C=R.indexOf(document.activeElement);k(g,C>=0?C:null,!0)},M=()=>{k(m,!1),k(_,!0),w(),Et().then(()=>{n(_)&&w()})},B=()=>{k(_,!1)},x=()=>{k(m,!1),k(_,!0),w()},D=C=>{const S=C.target instanceof Element?C.target.closest(c):null,A=R.indexOf(S);C.button!==0||A<0||(k(_,!1),k(m,!0),E.setActiveIndex(A))},W=()=>{k(m,!1)},K=C=>{const S=R.indexOf(C.target);k(g,S>=0?S:null,!0),S>=0&&E.setActiveIndex(S)};return b.addEventListener("keydown",M,!0),b.addEventListener("pointermove",B,!0),b.addEventListener("pointerleave",x),b.addEventListener("pointerdown",D),window.addEventListener("pointerup",W),window.addEventListener("pointercancel",W),b.addEventListener("focusin",K),Et().then(V),()=>{N.disconnect(),b.removeEventListener("keydown",M,!0),b.removeEventListener("pointermove",B,!0),b.removeEventListener("pointerleave",x),b.removeEventListener("pointerdown",D),window.removeEventListener("pointerup",W),window.removeEventListener("pointercancel",W),b.removeEventListener("focusin",K),E.destroy(),k(s,null),delete b.dataset.listOverlay}});var T={get activeIndex(){return t()},set activeIndex(b){t(b),u()},get onactiveindexchange(){return r()},set onactiveindexchange(b){r(b),u()},$set:te,$on:(b,E)=>re(e,b,E)},O=Ko(),f=Z(O);{var y=b=>{{let E=I(()=>n(m)?n(a).includes(n(s).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");zr(b,{get store(){return n(s)},get selectedIndexes(){return n(a)},get hoverClass(){return n(E)}})}};$(f,b=>{n(s)&&b(y)})}return Q(O),io(O,b=>k(o,b),()=>n(o)),Se(()=>fr(O,"data-active-index",n(s)?.activeIndex??void 0)),P(i,O),oe(T)}const Bo=Nr({base:`${gn} menu-row group/menu-item relative z-10 flex w-full min-w-0 cursor-default select-none items-start gap-2.5 border-none bg-transparent px-2.5 py-1.5 transition-colors duration-spring-fast ease-spring-fast focus:text-foreground focus-visible:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 motion-reduce:transition-none`,variants:{inset:{true:"pl-8"}}}),cr=Nr({base:"menu-overlay type-caption relative isolate z-(--layer-popover) overflow-hidden rounded-(--radius-medium) border border-border bg-popover shadow-(--elevation-overlay) [--menu-icon-size:calc(var(--space-3)+var(--space-1)/2)] [--radius-row:calc(var(--radius-small)-var(--space-1)/2)] focus-visible:border-input focus-visible:outline focus-visible:-outline-offset-1 data-[side=bottom]:origin-top data-[side=top]:origin-bottom data-[side=left]:origin-right data-[side=right]:origin-left data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:duration-spring-moderate data-[state=open]:ease-spring-moderate data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-spring-moderate-exit data-[state=closed]:ease-spring-exit motion-reduce:animate-none motion-reduce:transition-none"}),hs="text-shortcut-foreground",gs=-5,ps={enter:{tier:"moderate",y:4,scale:.95},exit:{tier:"moderate"}},Yr=8;function fs(i,e,t=24){if(!i)return!0;const r=i.getBoundingClientRect(),o=e+t+Yr;return r.left>=o||i.ownerDocument.documentElement.clientWidth-r.right>=o}const jr=Symbol("dialog-portal-target");function vs(i){hr(jr,i)}function Wo(){const i=Ct(jr);return()=>i?.()??void 0}const Uo=["[data-bits-floating-content-wrapper]",'[role="combobox"][aria-expanded="true"]','[aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]'].join(", ");function ms(i,e){return i?.querySelector(":scope > [data-bits-floating-content-wrapper]")?!0:e.target instanceof Element&&e.target.closest(Uo)!==null}var qo=J("<div><!> <!></div>"),zo=J("<div><!></div>"),Go=J("<div><div><!></div></div>");function Jr(i,e){if(new.target)return ee({component:Jr,...i});ne(e,!0);const t=w=>{var M=q(),B=F(M);{const x=(D,W)=>{let K=()=>(W?.()).props;var C=qo();se(C,()=>({...K(),id:b.listboxId,role:"listbox","aria-labelledby":b.triggerId,tabindex:"-1"}));var S=Z(C);Gr(S,{});var A=Ee(S,2);j(A,()=>T()??ae),Q(C),P(D,C)};ve(B,()=>Fr,(D,W)=>{W(D,{get class(){return`relative min-h-0 flex-1 overflow-y-auto p-1.5 ${m()??""}`},child:x,$$slots:{child:!0}})})}P(w,M)},r=(w,M)=>{let B=()=>(M?.()).props;const x=I(()=>R(B()));var D=zo();se(D,()=>({...n(x),...g()?{id:g()}:{}}));var W=Z(D);t(W),Q(D),bt(D,K=>a?.(K)),P(w,D)},o=(w,M)=>{let B=()=>(M?.()).props,x=()=>(M?.()).wrapperProps;const D=I(()=>R(B()));var W=Go();se(W,()=>({...x(),...g()?{id:g()}:{}}));var K=Z(W);se(K,()=>({...n(D)}));var C=Z(K);t(C),Q(K),bt(K,S=>a?.(S)),Q(W),P(w,W)},s=pn(),a=fn();let g=d(e,"wrapperId",7),_=d(e,"class",7,""),m=d(e,"wrapperClass",7,""),l=d(e,"dropUp",7,!1),c=d(e,"portal",7),T=d(e,"children",7);const O=I(()=>l()||c()===!0),f=Wo(),y=lo(uo()+2);co(y);const b=Ct("canonical-select");async function E(){const w=document.getElementById(b.triggerId);await Et(),!b.open&&w?.isConnected&&w.focus({preventScroll:!0})}function R(w){const{role:M,tabindex:B,...x}=w;return x}var G={get wrapperId(){return g()},set wrapperId(w){g(w),u()},get class(){return _()},set class(w=""){_(w),u()},get wrapperClass(){return m()},set wrapperClass(w=""){m(w),u()},get dropUp(){return l()},set dropUp(w=!1){l(w),u()},get portal(){return c()},set portal(w){c(w),u()},get children(){return T()},set children(w){T(w),u()},$set:te,$on:(w,M)=>re(e,w,M)},v=q(),p=F(v);{var V=w=>{var M=q(),B=F(M);{let x=I(()=>ue(cr(),"w-full max-h-60",_()));ve(B,()=>Lr,(D,W)=>{W(D,{preventScroll:!1,onEscapeKeydown:E,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return y},get class(){return n(x)},style:"max-width: calc(100vw - var(--space-4));",get child(){return r}})})}P(w,M)},N=w=>{const M=I(()=>c()===void 0&&!l()?f():void 0);var B=q(),x=F(B);{let D=I(()=>!n(O)&&!n(M)),W=I(()=>n(M)??s?.target());ve(x,()=>to,(K,C)=>{C(K,{get disabled(){return n(D)},get to(){return n(W)},children:(S,A)=>{var z=q(),ie=F(z);{let Te=I(()=>n(M)?"absolute":"fixed"),Pt=I(()=>n(M)!==void 0),Ae=I(()=>l()?"top":"bottom"),Qr=I(()=>ue(cr(),"w-(--bits-select-anchor-width) max-h-60",_()));ve(ie,()=>Hr,($r,en)=>{en($r,{get strategy(){return n(Te)},get hideWhenDetached(){return n(Pt)},onEscapeKeydown:E,"data-slot":"select-content",get"data-surface-level"(){return y},get side(){return n(Ae)},sideOffset:4,get collisionPadding(){return Yr},get class(){return n(Qr)},style:"max-width: calc(100vw - var(--space-4));",get child(){return o}})})}P(S,z)},$$slots:{default:!0}})})}P(w,B)};$(p,w=>{b.staticPosition?w(V):w(N,-1)})}return P(i,v),oe(G)}var Yo=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),jo=J('<span><span class="relative block h-3.5 w-6 rounded-full bg-muted-foreground/25 transition-colors duration-spring-fast ease-spring-fast data-[state=checked]:bg-foreground/80 motion-reduce:transition-none"><span></span></span></span>'),Jo=J("<span><!></span>");function Xr(i,e){if(new.target)return ee({component:Xr,...i});ne(e,!0);let t=d(e,"state",7),r=d(e,"class",7),o=d(e,"data-slot",7),s=ye(e,Yo);var a={get state(){return t()},set state(c){t(c),u()},get class(){return r()},set class(c){r(c),u()},get"data-slot"(){return o()},set"data-slot"(c){o(c),u()},$set:te,$on:(c,T)=>re(e,c,T)},g=q(),_=F(g);{var m=c=>{var T=jo();se(T,y=>({...s,"data-slot":o()??"menu-switch",class:y,"aria-hidden":"true"}),[()=>ue("ml-auto flex h-lh shrink-0 items-center",r())]);var O=Z(T),f=gr(O);Q(T),Se(y=>{fr(O,"data-state",t()==="on"?"checked":"unchecked"),Me(f,1,y)},[()=>vt(ue("absolute top-0.5 left-0.5 size-2.5 rounded-full bg-popover transition-transform duration-spring-fast ease-spring-fast motion-reduce:transition-none",t()==="on"&&"translate-x-2.5"))]),P(c,T)},l=c=>{var T=Jo();se(T,y=>({...s,"data-slot":o()??(t()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:y,"aria-hidden":"true"}),[()=>ue(vn,t()==="submenu"?"text-muted-foreground":"text-primary-ink",r())]);var O=Z(T);{var f=y=>{{let b=I(()=>t()==="mixed"?no:t()==="submenu"?oo:so),E=I(()=>t()==="submenu"?"calc(var(--space-2) + var(--space-1) / 2)":"var(--menu-icon-size)"),R=I(()=>t()==="submenu"?"size-2.5 rtl:rotate-180":"size-(--menu-icon-size)");Pr(y,{get icon(){return n(b)},get size(){return n(E)},get class(){return n(R)}})}};$(O,y=>{t()!=="empty"&&y(f)})}Q(T),P(c,T)};$(_,c=>{t()==="on"||t()==="off"?c(m):c(l,-1)})}return P(i,g),oe(a)}var Xo=J('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Zr(i,e){if(new.target)return ee({component:Zr,...i});ne(e,!0);let t=d(e,"value",7),r=d(e,"label",7),o=d(e,"disabled",7,!1),s=d(e,"children",7),a=d(e,"class",7,"");var g={get value(){return t()},set value(l){t(l),u()},get label(){return r()},set label(l){r(l),u()},get disabled(){return o()},set disabled(l=!1){o(l),u()},get children(){return s()},set children(l){s(l),u()},get class(){return a()},set class(l=""){a(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},_=q(),m=F(_);{const l=(f,y)=>{let b=()=>(y?.()).selected;var E=Xo(),R=F(E),G=Z(R);j(G,()=>s()??ae),Q(R);var v=Ee(R,2);{let p=I(()=>b()?"checked":"empty");Xr(v,{get state(){return n(p)},"data-slot":"select-item-check"})}P(f,E)};let c=I(()=>r()??t()),T=I(()=>o()||void 0),O=I(()=>ue(Bo(),a()));ve(m,()=>Dr,(f,y)=>{y(f,{get value(){return t()},get label(){return n(c)},get disabled(){return o()},get"aria-disabled"(){return n(T)},"data-menu-item":!0,get class(){return n(O)},children:l,$$slots:{default:!0}})})}return P(i,_),oe(g)}const bs={Root:Wr,Trigger:Ur,Value:qr,Content:Jr,Item:Zr},Zo=(i,e)=>{let t,r;const o=()=>{t||(t=mn(()=>{t=void 0;const g=i.checkVisibility?.()??!0,_=g?i.clientWidth:0,m=g?i.clientHeight:0,l=_>0&&m>0&&(i.scrollWidth>_||i.scrollHeight>m);r?.(),r=bn(()=>{r=void 0,e(l)})}))},s=typeof ResizeObserver>"u"?void 0:new ResizeObserver(o),a=new MutationObserver(o);return s?.observe(i),a.observe(i,{childList:!0,characterData:!0,subtree:!0}),document.fonts?.addEventListener("loadingdone",o),o(),{update(g){e=g,o()},destroy(){t?.(),r?.(),s?.disconnect(),a.disconnect(),document.fonts?.removeEventListener("loadingdone",o)}}},ys=(i,e)=>{let t=e;const r=s=>{t&&(s||t.trim()!==i.textContent?.trim())?i.title=t:i.removeAttribute("title")},o=Zo(i,r);return{update(s){t=s,o?.update?.(r)},destroy(){o?.destroy?.(),i.removeAttribute("title")}}};export{Rr as F,kr as H,Xr as M,Yr as O,zr as P,bs as S,Gr as a,lr as b,ar as c,ir as d,wo as e,Hr as f,Lr as g,mt as h,Dr as i,Fr as j,fs as k,ms as l,hs as m,Bo as n,cr as o,ps as p,gs as q,Zo as r,vs as s,ys as t,Wo as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as V,bq as d,by as B,b as F,a_ as I,bo as L}from"./
|
|
1
|
+
import{t as V,bq as d,by as B,b as F,a_ as I,bo as L}from"./E2zwcBGL.js";import{bs as H,b_ as z,W as _,bn as j,aA as p,aC as T,a7 as O,ay as P,aD as r,a5 as U,bS as X,bH as b,bA as Y,be as Z,b$ as $,bO as ee,c9 as c,aB as te,bV as k,bk as re}from"./DYhIMPy1.js";import{s as ne,k as ie,d as oe}from"./8mzXJxUW.js";import{E as ae}from"./BqUqwkFB.js";import{I as se}from"./Ctd97c_e.js";import"./6TqymR4w.js";import{L as le}from"./DYpVqbU_.js";import"./DBctQLOE.js";import{D as ue,k as W}from"./B2mK5Z0v.js";import{r as ce,q as y}from"./D2F-bT-3.js";var fe=T('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function me(f,o){if(new.target)return V({component:me,...f});H(o,!0);let e=d(o,"width",7,24),n=d(o,"class",7,"");var a={get width(){return e()},set width(s=24){e(s),p()},get class(){return n()},set class(s=""){n(s),p()},$set:B,$on:(s,m)=>F(o,s,m)},l=fe();return z(()=>{ne(l,"width",e()),ie(l,0,oe(n()))}),_(f,l),j(a)}var de=te('<div class="grid gap-2"><!> <!></div>');function G(f,o){if(new.target)return V({component:G,...f});H(o,!0);let e=d(o,"request",7),n=d(o,"value",15,""),a=d(o,"busy",7,!1),l=d(o,"static",7,!1),s=d(o,"onAccept",7),m=d(o,"onCancel",7),v=k(null);var A={get request(){return e()},set request(t){e(t),p()},get value(){return n()},set value(t=""){n(t),p()},get busy(){return a()},set busy(t=!1){a(t),p()},get static(){return l()},set static(t=!1){l(t),p()},get onAccept(){return s()},set onAccept(t){s(t),p()},get onCancel(){return m()},set onCancel(t){m(t),p()},$set:B,$on:(t,g)=>F(o,t,g)},h=O(),i=P(h);{var u=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_bulkActionConfirm_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_bulkActionConfirm_cancel_label()),S=c(()=>e().options.destructive??!1);ue(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return r(g)},get cancelLabel(){return r(M)},get destructive(){return r(S)},get busy(){return a()},onConfirm:()=>s()(n()),get onCancel(){return m()}})}},q=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_input_cancel_label()),S=c(()=>!e().options.field.required||n().trim().length>0);W(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},get cancelLabel(){return r(M)},get canSubmit(){return r(S)},get busy(){return a()},get initialFocus(){return r(v)},onSubmit:()=>s()(n()),get onCancel(){return m()},children:(J,ge)=>{var D=de(),E=U(D);{var K=C=>{le(C,{for:"confirm-prompt-field",children:(R,w)=>{Z();var N=$();z(()=>ee(N,e().options.field.label)),_(R,N)},$$slots:{default:!0}})};I(E,C=>{e().options.field.label&&C(K)})}var Q=X(E,2);{let C=c(()=>e().options.field.type??"text"),R=c(()=>e().options.field.label?void 0:e().options.title);se(Q,{id:"confirm-prompt-field",get type(){return r(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return r(R)},get ref(){return r(v)},set ref(w){b(v,w,!0)},get value(){return n()},set value(w){n(w)}})}Y(D),_(J,D)},$$slots:{default:!0}})}},x=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label());W(t,{open:!0,get static(){return l()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return a()},onSubmit:()=>s()(n()),onCancel:()=>s()(n())})}};I(i,t=>{e()?.kind==="confirm"?t(u):e()?.kind==="prompt"?t(q,1):e()?.kind==="alert"&&t(x,2)})}return _(f,h),j(A)}function pe(f,o){if(new.target)return V({component:pe,...f});H(o,!0);let e=k(null),n=k(""),a=k(!1);re(()=>ce(i=>{b(e,i,!0),b(n,i?.kind==="prompt"?i.options.field.initialValue??"":"",!0),b(a,!1)}));function l(){!r(e)||r(a)||y(r(e).id,r(e).kind==="confirm"?!1:null)}async function s(){if(!r(e)||r(a))return;const i=r(e);b(a,!0);try{i.kind==="confirm"?(await i.options.onConfirm?.(),y(i.id,!0)):i.kind==="prompt"?(await i.options.onConfirm?.(r(n).trim()),y(i.id,r(n).trim())):y(i.id,void 0)}catch(u){throw console.error("Confirm action failed:",u),b(a,!1),u}}var m={$set:B,$on:(i,u)=>F(o,i,u)},v=O(),A=P(v);{var h=i=>{var u=O(),q=P(u);ae(q,()=>r(e).id,x=>{G(x,{get request(){return r(e)},get busy(){return r(a)},onAccept:s,onCancel:l,get value(){return r(n)},set value(t){b(n,t,!0)}})}),_(i,u)};I(A,i=>{r(e)&&i(h)})}return _(f,v),j(m)}export{pe as C,me as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as G,bq as n,a_ as I,by as P,b as S}from"./
|
|
1
|
+
import{t as G,bq as n,a_ as I,by as P,b as S}from"./E2zwcBGL.js";import{bs as T,a5 as j,bA as q,b_ as E,W as e,bn as N,aA as f,be as l,aC as o}from"./DYhIMPy1.js";import{s}from"./8mzXJxUW.js";import{u as d}from"./Cvz2UPkQ.js";var W=o('<path d="M2 5.5V3.5a1.5 1.5 0 0 1 1.5-1.5h2M10.5 2h2A1.5 1.5 0 0 1 14 3.5v2"></path><path d="M14 10.5v2a1.5 1.5 0 0 1-1.5 1.5h-2M5.5 14h-2A1.5 1.5 0 0 1 2 12.5v-2"></path><circle cx="8" cy="8" r="1.25" fill="currentColor" stroke="none"></circle>',1),F=o('<rect x="1.75" y="2.75" width="12.5" height="10.5" rx="1.75"></rect><path d="M1.75 6h12.5"></path>',1),J=o('<path d="M2 4.5V3a1 1 0 0 1 1-1h1.5M7 2h2M11.5 2H13a1 1 0 0 1 1 1v1.5M14 7v2M14 11.5V13a1 1 0 0 1-1 1h-1.5M9 14H7M4.5 14H3a1 1 0 0 1-1-1v-1.5M2 9V7"></path>'),K=o('<rect x="1.75" y="4" width="8.75" height="8" rx="1.75"></rect><path d="M10.5 7l3.75-2.25v6.5L10.5 9"></path>',1),O=o('<path d="M10.25 2.75l3 3L5.5 13.5 2.25 13.75 2.5 10.5z"></path><path d="M8.75 4.25l3 3"></path>',1),Q=o('<circle cx="8" cy="8" r="5.75"></circle><circle cx="8" cy="8" r="1.75" fill="currentColor" stroke="none"></circle>',1),U=o('<rect x="2.5" y="2.5" width="11" height="11" rx="2"></rect>'),X=o('<path d="M2 11.5c1.5-4 3.25-6.5 4.5-6.5 1.75 0 0 6 1.75 6S11.75 6 14 4.5"></path>'),Y=o('<path d="M3.5 12.5l8.5-8.5M6 3.75h6.25V10"></path>'),Z=o('<rect x="5.5" y="1.75" width="5" height="8" rx="2.5"></rect><path d="M3 7.5a5 5 0 0 0 10 0M8 12.5v2"></path>',1),$=o('<rect x="2" y="2" width="12" height="12" rx="2.5" fill="currentColor" stroke="none"></rect>'),rr=o('<path d="M4.5 3v10l8.5-5z" fill="currentColor"></path>'),ar=o('<path d="M4 4l8 8M12 4l-8 8"></path>'),tr=o('<path d="M3.5 2.5l9 4.25-3.9 1.35L7.25 12z"></path>'),er=o('<path d="M3 8.5l3.25 3.25L13 5"></path>'),or=o('<path d="M9.25 2.5l4.25 4.25-6.25 6.25H4.5L2.5 11z"></path><path d="M5.75 6l4.25 4.25M8 13h5.5"></path>',1),ir=o('<path d="M2.75 4.25h10.5M6.25 4.25V2.75h3.5v1.5M4 4.25l.6 8.1a1 1 0 0 0 1 .9h4.8a1 1 0 0 0 1-.9l.6-8.1M6.75 6.75v4M9.25 6.75v4"></path>'),pr=o('<path d="M13.25 7.5l-5.5 5.5a3.18 3.18 0 0 1-4.5-4.5l5.75-5.75a2.12 2.12 0 0 1 3 3L6.25 11.5a1.06 1.06 0 0 1-1.5-1.5L10 4.75"></path>'),cr=o('<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="round" aria-hidden="true" focusable="false"><!></svg>');function hr(i,p){if(new.target)return G({component:hr,...i});T(p,!0);let t=n(p,"glyph",7),c=n(p,"size",7,16);var v={get glyph(){return t()},set glyph(r){t(r),f()},get size(){return c()},set size(r=16){c(r),f()},$set:P,$on:(r,a)=>S(p,r,a)},h=cr(),g=j(h);{var u=r=>{var a=W();l(2),e(r,a)},_=r=>{var a=F();l(),e(r,a)},M=r=>{var a=J();e(r,a)},m=r=>{var a=K();l(),e(r,a)},x=r=>{var a=O();l(),e(r,a)},y=r=>{var a=Q();l(),e(r,a)},b=r=>{var a=U();e(r,a)},k=r=>{var a=X();e(r,a)},w=r=>{var a=Y();e(r,a)},C=r=>{var a=Z();l(),e(r,a)},z=r=>{var a=$();e(r,a)},D=r=>{var a=rr();e(r,a)},L=r=>{var a=ar();e(r,a)},A=r=>{var a=tr();e(r,a)},V=r=>{var a=er();e(r,a)},H=r=>{var a=or();l(),e(r,a)},R=r=>{var a=ir();e(r,a)},B=r=>{var a=pr();e(r,a)};I(g,r=>{t()==="viewfinder"?r(u):t()==="window"?r(_,1):t()==="region"?r(M,2):t()==="video"?r(m,3):t()==="pencil"?r(x,4):t()==="target"?r(y,5):t()==="box"?r(b,6):t()==="pen"?r(k,7):t()==="arrow"?r(w,8):t()==="mic"?r(C,9):t()==="stop"?r(z,10):t()==="play"?r(D,11):t()==="x"?r(L,12):t()==="cursor"?r(A,13):t()==="check"?r(V,14):t()==="eraser"?r(H,15):t()==="trash"?r(R,16):t()==="paperclip"&&r(B,17)})}return q(h),E(()=>{s(h,"width",c()),s(h,"height",c()),s(h,"data-dock-glyph",t())}),e(i,h),N(v)}function fr(i){const p=Math.max(0,Math.floor(i/1e3)),t=d(Math.floor(p/60),{useGrouping:!1}),c=d(p%60,{minimumIntegerDigits:2,useGrouping:!1});return`${t}:${c}`}function dr(i,p,t,c=!1){const v=i.alerts??{},h=c||!!i.captureDisabled;return{capture:{revision:i.captureRevision,label:p.capture,tooltip:v.capture??i.captureTooltip??(i.captureDisabled?p.captureLimit:p.capture),disabled:h,pending:!!i.capturePending,alert:!!v.capture},record:{label:i.recording?p.stopRecording:p.record,tooltip:v.record??i.recordingTooltip??(i.recording?p.stopRecording:p.record),disabled:c||!!i.recordingDisabled,pending:!!i.recordingPending,alert:!!v.record,recording:i.recording,startedAt:i.recording?t:null}}}export{hr as D,dr as d,fr as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as _t,bq as _,a_ as D,by as mt,bs as gt,b as vt,bo as x,bu as be,bt as Te}from"./B3iaLYr6.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as N,ay as m,W as r,bn as kt,aA as g,aD as t,bS as z,a5 as _e,bH as Le,bA as me,b_ as M,aB as E,c9 as o,bf as It,bl as oe,bO as ae,bV as Ct}from"./DYhIMPy1.js";import{k as $t,h as Pt,s as Be,c as At}from"./DEmaG7Ya.js";import{s as Me}from"./hUiIfi2t.js";import{c as S}from"./Dj42fWMH.js";import{cF as Et,bl as Ot,aK as Ft,F as ne,aX as Tt,aL as Lt,bm as Bt,a7 as Ve,av as Dt}from"./dUOQ5AaY.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Wt,V as Mt}from"./CfHhYnBc.js";import{f as ge}from"./CpELl9t1.js";import{i as Vt}from"./DsAKyTjw.js";import{n as Gt,R as jt,r as qt,q as Kt,p as Xt,o as Ge}from"./CqSXeJtk.js";import{n as ve}from"./DYlSkPA-.js";import{c as Jt}from"./ChTqQfQN.js";import"./D0UrvUQM.js";import{Hp as je,mp as Ut,Ee as Yt}from"./h8IoI-w7.js";import{v as Qt}from"./CBRfvExq.js";import{i as J}from"./Ch8MPJbT.js";import{bp as Zt,b6 as er,b4 as tr}from"./BLUkoS8T.js";import{ck as rr}from"./Cti1rV_x.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Mt,jetbrains:Wt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function qe(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",De="finder",lr={id:De,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),U=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return U.some(({id:Y})=>Y===De)||se.has(De)?U:[...U,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),br=E("<span><!></span>"),_r=E('<img class="w-4 h-4"/>'),mr=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return _t({component:wr,...O});ht(s,!0);const se=()=>be(Je,"$installedEditors$",ie),U=()=>be(Ue,"$hiddenEditorIds$",ie),Y=()=>be(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>be(Xe,"$openAction",ie),[ie,Ke]=gt(),le=(e,d=It)=>{var u=N(),p=m(u);S(p,()=>jt,(te,j)=>{j(te,{get value(){return t(v).id},children:(F,B)=>{var I=N(),T=m(I);Pt(T,17,d,C=>C.id,(C,c)=>{var q=N(),h=m(q);{const $=a=>{var i=N(),y=m(i);{var H=l=>{var A=dr();M(()=>Be(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},b=l=>{const A=o(()=>t(c).icon);var W=N(),L=m(W);S(L,()=>t(A),(K,re)=>{re(K,{size:16})}),r(l,W)},P=l=>{{let A=o(()=>t(c).faIcon??qe(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};D(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(b,1):l(P,-1)})}r(a,i)};let n=o(()=>!k());S(h,()=>Gt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,H)=>{var b=pr(),P=m(b),l=oe(P,!0),A=z(P,2);{var W=L=>{var K=ur(),re=oe(K,!0);M(()=>ae(re,t(c).shortcut)),r(L,K)};D(A,L=>{t(c).shortcut&&L(W)})}M(()=>ae(l,t(c).label)),r(y,b)},$$slots:{leading:!0,default:!0}})})}r(C,q)}),r(F,I)},$$slots:{default:!0}})}),r(e,u)},Ne=Jt("OpenComboButton");let k=_(s,"filePath",7),ce=_(s,"workspaceId",7,""),de=_(s,"isDirectory",7,!0),we=_(s,"workspaceFolderPath",7),xe=_(s,"class",7,""),ue=_(s,"headerText",7),ke=_(s,"usePortal",7,!0),Ie=_(s,"side",7,"bottom"),V=_(s,"variant",7,"default"),Q=_(s,"branchName",7),Ce=_(s,"compact",7,!1),$e=_(s,"embedded",7,!1),Z=_(s,"inline",7,!1),G=_(s,"iconOnly",7,!1),R=_(s,"children",7,void 0);const ze=o(()=>V()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const Xe=Zt(),Je=er(Pe),Ue=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{je.dispatch(Ut())});function Qe(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Ze=Qt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,U()).map(Qe),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Bt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Q()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Lt}]:[]];return!Ze||!Y()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return k();const e=we()||k().substring(0,k().lastIndexOf("/"));return e?{folder:e,file:k()}:k()}async function Oe(e){if(!k())return;const d=de()?k():k().substring(0,k().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(k())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Q()&&(await navigator.clipboard.writeText(Q()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await J("external-editors:open-with-other",{path:d});p?.success?Le(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await J("shell:showItemInFolder",{path:d});break;case"vscode":await J("vscode:open",Ee());break;case"jetbrains":await J("jetbrains:open",Ee());break;case"xcode":await J("xcode:open",Ee());break;case"generic":default:{await J("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){je.dispatch(Yt(e)),Oe(e),Le(ee,!1)}var rt={get filePath(){return k()},set filePath(e){k(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return ke()},set usePortal(e=!0){ke(e),g()},get side(){return Ie()},set side(e="bottom"){Ie(e),g()},get variant(){return V()},set variant(e="default"){V(e),g()},get branchName(){return Q()},set branchName(e){Q(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Z()},set inline(e=!1){Z(e),g()},get iconOnly(){return G()},set iconOnly(e=!1){G(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:mt,$on:(e,d)=>vt(s,e,d)},He=N(),ot=m(He);{var at=e=>{var d=he(),u=m(d);{var p=j=>{var F=he(),B=m(F);S(B,()=>Xt,(T,C)=>{C(T,{children:(c,q)=>{var h=he(),$=m(h);S($,()=>qt,(a,i)=>{i(a,{get icon(){return Ve},children:(y,H)=>{var b=fr(),P=oe(b,!0);M(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,b)},$$slots:{default:!0}})});var n=z($,2);S(n,()=>Kt,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var I=z(B,2);S(I,()=>Ge,(T,C)=>{C(T,{})}),r(j,F)};D(u,j=>{t(fe).length&&j(p)})}var te=z(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=_e(d);{const p=(F,B)=>{let I=()=>(B?.()).props;var T=N(),C=m(T);{var c=n=>{var a=br();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?I():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=_e(a);Me(i,R),me(a),r(n,a)},q=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>G()&&V()!=="sidebar"?"plain":"ghost"),y=o(()=>G()?V()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>G()&&V()==="sidebar"&&t(ee)),b=o(()=>!G()),P=o(()=>G()?V()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?I():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(b)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var W=N(),L=m(W);Me(L,R),r(l,W)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(I,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ve},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=_e(a);{let b=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(b)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,W)=>{var L=mr(),K=m(L);{var re=w=>{var X=_r();M(()=>{Be(X,"src",`data:image/png;base64,${t(v).iconBase64??""}`),Be(X,"alt",t(v).label)}),r(w,X)},it=w=>{const X=o(()=>t(v).icon);var We=N(),pt=m(We);S(pt,()=>t(X),(ft,bt)=>{bt(ft,{size:14})}),r(w,We)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let X=o(()=>qe(t(v).category));ne(w,{get icon(){return t(X)},class:"w-3.5 h-3.5 opacity-60"})}};D(K,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=z(K,2),ut=oe(dt,!0);M(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,L)},$$slots:{default:!0}})}var y=z(i,2);{var H=b=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(b,Te(I,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Dt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};D(y,b=>{t(f).length>1&&b(H)})}me(a),r(n,a)};D(C,n=>{Z()&&R()?n(c):R()?n(q,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var B=hr(),I=_e(B);{var T=h=>{var $=vr(),n=oe($,!0);M(()=>ae(n,ue())),r(h,$)};D(I,h=>{ue()&&h(T)})}var C=z(I,2);{var c=h=>{var $=he(),n=m($);le(n,()=>t(fe));var a=z(n,2);S(a,()=>Ge,(i,y)=>{y(i,{})}),r(h,$)};D(C,h=>{t(fe).length&&h(c)})}var q=z(C,2);le(q,()=>t(Se)),me(B),r(F,B)};let j=o(()=>Z()&&R()?"contents!":"");Vt(u,{align:"end",get portal(){return ke()},get side(){return Ie()},get class(){return t(j)},get open(){return t(ee)},set open(F){Le(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}me(d),M(()=>$t(d,1,`${Z()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};D(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=kt(rt);return Ke(),st}export{wr as O,sr as a,qe as r,ir as s};
|
|
1
|
+
import{t as _t,bq as _,a_ as D,by as mt,bs as gt,b as vt,bo as x,bu as be,bt as Te}from"./E2zwcBGL.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as N,ay as m,W as r,bn as kt,aA as g,aD as t,bS as z,a5 as _e,bH as Le,bA as me,b_ as M,aB as E,c9 as o,bf as It,bl as oe,bO as ae,bV as Ct}from"./DYhIMPy1.js";import{k as $t,h as Pt,s as Be,c as At}from"./8mzXJxUW.js";import{s as Me}from"./BTNnUZgK.js";import{c as S}from"./BAm6Imyt.js";import{cF as Et,bl as Ot,aK as Ft,F as ne,aX as Tt,aL as Lt,bm as Bt,a7 as Ve,av as Dt}from"./C8iHXc33.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Wt,V as Mt}from"./BPGcNKLB.js";import{f as ge}from"./AXIAXE42.js";import{i as Vt}from"./B2mK5Z0v.js";import{n as Gt,R as jt,r as qt,q as Kt,p as Xt,o as Ge}from"./DYpVqbU_.js";import{n as ve}from"./qj_I7waa.js";import{c as Jt}from"./ChTqQfQN.js";import"./C0GDF9vt.js";import{Hp as je,mp as Ut,Ee as Yt}from"./DzNB7FSW.js";import{v as Qt}from"./BqUqwkFB.js";import{i as J}from"./yU3kgZB6.js";import{br as Zt,b8 as er,b5 as tr}from"./nSg13blK.js";import{ck as rr}from"./kWExXPwX.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Mt,jetbrains:Wt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function qe(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",De="finder",lr={id:De,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),U=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return U.some(({id:Y})=>Y===De)||se.has(De)?U:[...U,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),br=E("<span><!></span>"),_r=E('<img class="w-4 h-4"/>'),mr=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return _t({component:wr,...O});ht(s,!0);const se=()=>be(Je,"$installedEditors$",ie),U=()=>be(Ue,"$hiddenEditorIds$",ie),Y=()=>be(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>be(Xe,"$openAction",ie),[ie,Ke]=gt(),le=(e,d=It)=>{var u=N(),p=m(u);S(p,()=>jt,(te,j)=>{j(te,{get value(){return t(v).id},children:(F,B)=>{var I=N(),T=m(I);Pt(T,17,d,C=>C.id,(C,c)=>{var q=N(),h=m(q);{const $=a=>{var i=N(),y=m(i);{var H=l=>{var A=dr();M(()=>Be(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},b=l=>{const A=o(()=>t(c).icon);var W=N(),L=m(W);S(L,()=>t(A),(K,re)=>{re(K,{size:16})}),r(l,W)},P=l=>{{let A=o(()=>t(c).faIcon??qe(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};D(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(b,1):l(P,-1)})}r(a,i)};let n=o(()=>!k());S(h,()=>Gt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,H)=>{var b=pr(),P=m(b),l=oe(P,!0),A=z(P,2);{var W=L=>{var K=ur(),re=oe(K,!0);M(()=>ae(re,t(c).shortcut)),r(L,K)};D(A,L=>{t(c).shortcut&&L(W)})}M(()=>ae(l,t(c).label)),r(y,b)},$$slots:{leading:!0,default:!0}})})}r(C,q)}),r(F,I)},$$slots:{default:!0}})}),r(e,u)},Ne=Jt("OpenComboButton");let k=_(s,"filePath",7),ce=_(s,"workspaceId",7,""),de=_(s,"isDirectory",7,!0),we=_(s,"workspaceFolderPath",7),xe=_(s,"class",7,""),ue=_(s,"headerText",7),ke=_(s,"usePortal",7,!0),Ie=_(s,"side",7,"bottom"),V=_(s,"variant",7,"default"),Q=_(s,"branchName",7),Ce=_(s,"compact",7,!1),$e=_(s,"embedded",7,!1),Z=_(s,"inline",7,!1),G=_(s,"iconOnly",7,!1),R=_(s,"children",7,void 0);const ze=o(()=>V()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const Xe=Zt(),Je=er(Pe),Ue=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{je.dispatch(Ut())});function Qe(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Ze=Qt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,U()).map(Qe),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Bt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Q()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Lt}]:[]];return!Ze||!Y()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return k();const e=we()||k().substring(0,k().lastIndexOf("/"));return e?{folder:e,file:k()}:k()}async function Oe(e){if(!k())return;const d=de()?k():k().substring(0,k().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(k())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Q()&&(await navigator.clipboard.writeText(Q()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await J("external-editors:open-with-other",{path:d});p?.success?Le(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await J("shell:showItemInFolder",{path:d});break;case"vscode":await J("vscode:open",Ee());break;case"jetbrains":await J("jetbrains:open",Ee());break;case"xcode":await J("xcode:open",Ee());break;case"generic":default:{await J("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){je.dispatch(Yt(e)),Oe(e),Le(ee,!1)}var rt={get filePath(){return k()},set filePath(e){k(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return ke()},set usePortal(e=!0){ke(e),g()},get side(){return Ie()},set side(e="bottom"){Ie(e),g()},get variant(){return V()},set variant(e="default"){V(e),g()},get branchName(){return Q()},set branchName(e){Q(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Z()},set inline(e=!1){Z(e),g()},get iconOnly(){return G()},set iconOnly(e=!1){G(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:mt,$on:(e,d)=>vt(s,e,d)},He=N(),ot=m(He);{var at=e=>{var d=he(),u=m(d);{var p=j=>{var F=he(),B=m(F);S(B,()=>Xt,(T,C)=>{C(T,{children:(c,q)=>{var h=he(),$=m(h);S($,()=>qt,(a,i)=>{i(a,{get icon(){return Ve},children:(y,H)=>{var b=fr(),P=oe(b,!0);M(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,b)},$$slots:{default:!0}})});var n=z($,2);S(n,()=>Kt,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var I=z(B,2);S(I,()=>Ge,(T,C)=>{C(T,{})}),r(j,F)};D(u,j=>{t(fe).length&&j(p)})}var te=z(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=_e(d);{const p=(F,B)=>{let I=()=>(B?.()).props;var T=N(),C=m(T);{var c=n=>{var a=br();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?I():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=_e(a);Me(i,R),me(a),r(n,a)},q=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>G()&&V()!=="sidebar"?"plain":"ghost"),y=o(()=>G()?V()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>G()&&V()==="sidebar"&&t(ee)),b=o(()=>!G()),P=o(()=>G()?V()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?I():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(b)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var W=N(),L=m(W);Me(L,R),r(l,W)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(I,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ve},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=_e(a);{let b=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(b)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,W)=>{var L=mr(),K=m(L);{var re=w=>{var X=_r();M(()=>{Be(X,"src",`data:image/png;base64,${t(v).iconBase64??""}`),Be(X,"alt",t(v).label)}),r(w,X)},it=w=>{const X=o(()=>t(v).icon);var We=N(),pt=m(We);S(pt,()=>t(X),(ft,bt)=>{bt(ft,{size:14})}),r(w,We)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let X=o(()=>qe(t(v).category));ne(w,{get icon(){return t(X)},class:"w-3.5 h-3.5 opacity-60"})}};D(K,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=z(K,2),ut=oe(dt,!0);M(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,L)},$$slots:{default:!0}})}var y=z(i,2);{var H=b=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(b,Te(I,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Dt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};D(y,b=>{t(f).length>1&&b(H)})}me(a),r(n,a)};D(C,n=>{Z()&&R()?n(c):R()?n(q,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var B=hr(),I=_e(B);{var T=h=>{var $=vr(),n=oe($,!0);M(()=>ae(n,ue())),r(h,$)};D(I,h=>{ue()&&h(T)})}var C=z(I,2);{var c=h=>{var $=he(),n=m($);le(n,()=>t(fe));var a=z(n,2);S(a,()=>Ge,(i,y)=>{y(i,{})}),r(h,$)};D(C,h=>{t(fe).length&&h(c)})}var q=z(C,2);le(q,()=>t(Se)),me(B),r(F,B)};let j=o(()=>Z()&&R()?"contents!":"");Vt(u,{align:"end",get portal(){return ke()},get side(){return Ie()},get class(){return t(j)},get open(){return t(ee)},set open(F){Le(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}me(d),M(()=>$t(d,1,`${Z()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};D(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=kt(rt);return Ke(),st}export{wr as O,sr as a,qe as r,ir as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as y,e as I,s as S,g as A}from"./
|
|
1
|
+
import{o as y,e as I,s as S,g as A}from"./Cj4zs9c7.js";function U(){return!0}const o=new Date().toISOString(),d=[{id:"mock-ws-1",title:"Example Project",branch:"feature/demo",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/example",repositoryOwner:"demo",repositoryName:"example-project",tags:[],agentSummary:{agentIds:["agent-1"]}},{id:"mock-ws-2",title:"Design System",branch:"feature/tokens",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/design-system",repositoryOwner:"demo",repositoryName:"design-system",tags:[]}],g=[{path:"workspaceInitializer.state",label:"Workspace initializer state",description:"Browser-preview workspace initializer state.",category:"workspace",type:"object",defaultValue:{},value:{hydrated:!0}},{path:"hardwareConsole.state",label:"Hardware console state",description:"Browser-preview hardware console state.",category:"hardwareConsole",type:"object",defaultValue:{},value:{}},{path:"rtk.enabled",label:"RTK enabled",description:"Use RTK compressed command output.",category:"tools",type:"boolean",defaultValue:!1,value:!1,origin:"default"}];let l=0;function C(t){const e=g.find(a=>a.path===t);if(!e)return m("INVALID_PARAMS",-32602,`Browser mock: setting "${String(t)}" not found`);const{value:r,origin:s,...i}=e;return{path:e.path,value:r,definition:i,...s?{origin:s}:{},revision:l}}function M(t){return Array.isArray(t)?Object.fromEntries(t.filter(e=>typeof e=="string").map(e=>[e,{available:!1}])):{}}let w=0,B=0;const W=crypto.randomUUID(),p=Symbol("browser-mock-error");function m(t,e,r){return{[p]:{code:t,message:r,data:{code:t},rpcCode:e}}}function R(t){return typeof t=="object"&&t!==null&&p in t}function T(t,e){if(t==="workspace.list")return{workspaces:d};if(t==="workspace.get"){const r=d.find(s=>s.id===e?.workspaceId);return r?{workspace:r}:m("INVALID_PARAMS",-32602,`Browser mock: workspace "${String(e?.workspaceId)}" not found`)}if(t==="task.listAgentLinks")return{links:[],linksByNoteId:{}};if(t==="workspace.getTokenUsage")return{tokenUsage:{byAgentId:{},totals:{inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0},byModel:{},byAgentModel:[],lastScanAt:null}};if(t==="workspace.getContext")return{items:[]};if(t==="script.list")return{scripts:[]};if(t==="terminal.list")return{terminals:[],daemonBootId:W};if(t==="terminal.create")return{terminalId:`browser-mock-terminal-${++B}`};if(t==="terminal.write"||t==="terminal.resize"||t==="terminal.kill")return{ok:!0};if(t==="terminal.getBuffer")return{terminalId:String(e?.terminalId??""),data:""};if(t==="terminal.readOutput")return"";if(t==="agent.listActive")return{streams:[]};if(t==="prMonitor.list")return{monitors:[]};if(t==="gitRoot.list")return{gitRoots:[]};if(t==="file.tree")return[];if(t==="file-tracking.getChanges")return{changes:[],truncated:!1,totalCount:0};if(t==="file-tracking.loadCommits")return{commits:[],boundarySha:null,nextToken:null};if(t==="repo.list")return{repos:[]};if(t==="settings.list")return{settings:g,revision:l};if(t==="settings.get")return C(e?.path);if(t==="settings.update"){const r=Array.isArray(e?.changes)?e.changes:[],s=[];for(const i of r){if(typeof i!="object"||i===null)continue;const{path:a,value:c}=i,u=g.find(v=>v.path===a);u&&(u.value=c,s.push({path:u.path,value:c,...u.origin?{origin:u.origin}:{}}))}return s.length>0&&(l+=1),{applied:s,revision:l}}if(t==="host.checkAuggie"||t==="host.findBinary")return{available:!1};if(t==="host.toolAvailability")return{tools:M(e?.tools)};if(t==="host.providerAuthStatus")return{providers:[]};if(t==="host.providerDiscovery")return{providers:[]};if(t==="system.status")return{running:!0,listenMode:"browser-mock",version:"0.0.0-browser",protocolVersion:"0.0.0-browser",host:{os:"browser",arch:"browser",locality:"local"}};if(t==="agent.list")return{agents:[],retiredCount:0};if(t==="agent.listInterrupted")return{agents:[]};if(t==="models.list")return{models:[]};if(t==="skill.list")return{skills:[]};if(t==="search.fileNames")return{files:[]};if(t==="comment.list")return{threads:[]};if(t==="task.list")return{tasks:[],stats:{total:0,completed:0,inProgress:0}};if(t==="note.list")return{notes:[]};if(t==="git.status")return{branch:"",ahead:0,behind:0,diverged:!1,files:[],hasUncommittedChanges:!1,hasUntrackedFiles:!1};if(t==="event.query")return e?.paginate===!0||typeof e?.nextToken=="string"?{items:[],nextToken:null}:[];if(t==="events.subscribe")return{subscriptionId:`browser-mock-sub-${++w}`};if(t==="events.unsubscribe")return{}}function O(t,e){if(t==="backend:request"){const r=e?.method;if(typeof r!="string"||r.length===0)return{ok:!1,error:{code:"INVALID_PARAMS",message:"method is required"}};const s=T(r,e?.params);return R(s)?{ok:!1,error:s[p]}:s!==void 0?{ok:!0,result:s}:{ok:!1,error:{code:"NOT_IMPLEMENTED",message:`Browser mock: backend method "${r}" not implemented`}}}if(t==="backend:subscribe")return{ok:!0,result:{subscriptionId:`browser-mock-sub-${++w}`}};if(t==="backend:unsubscribe")return{ok:!0,result:{}};if(t==="backend:get-status"){const r=A();if(r)return{status:r.getStatus(),daemonStartup:r.getStartupState(),transport:{mode:"external-ws",target:r.getTarget()}};const s=I();return s?{status:"connecting",transport:{mode:"external-ws",target:S(s)}}:{status:"connected",transport:"browser-mock"}}}function P(t,e){const r=O(t,e);return r!==void 0?r:t==="workspace:list"?{success:!0,data:d}:t==="workspace:get-recent-repositories"?{success:!0,data:[]}:t==="workspace:get-settings"||t==="workspace:getSettings"?{success:!0,data:{}}:t==="app:version"||t==="app:get-version"?{success:!0,data:"0.0.0-browser"}:t==="system:get-info"?{success:!0,data:{platform:"browser",arch:"wasm",hostname:"localhost"}}:t.endsWith(":get-models")?{success:!0,data:[]}:t==="providers:get-availability"?{success:!0,data:{}}:t==="providers:get-paths"?{success:!0,data:{}}:t==="feature-codes:get-active"?{features:[]}:t==="config:get"||t==="config:get-all"||t==="config:getAll"?{success:!0,data:{}}:t==="settings:get"||t==="settings:getAll"?{success:!0,data:{}}:t==="auto-update:get-state"?{success:!0,data:{channel:"stable",status:"idle"}}:t.startsWith("window:")?{success:!0}:t==="panel-layout:load"?{success:!0,data:null}:t==="first-visit-state:load"?{success:!0,data:null}:t==="rules:list"||t==="rules:load-workspace"?{success:!0,data:[]}:t.startsWith("specialists:")?{success:!0,data:[]}:t.startsWith("user-rules:")?{success:!0,data:t.includes("get-all")?[]:""}:t.startsWith("git:")?{success:!0,data:null}:t.startsWith("persistence:")||t.startsWith("storage:")?{success:!0,data:null}:t.startsWith("notes:")?{success:!0,data:t.includes("list")?[]:null}:t.startsWith("agent:")?{success:!0,data:null}:t.startsWith("log:")?{success:!0,data:null}:t.startsWith("user-mcp:")||t.startsWith("mcp:")?{success:!0,data:t.includes("list")?[]:null}:t==="skills:list"?{success:!0,data:[]}:t.includes("-auth:")||t.includes("auth:")?{success:!0,data:{authenticated:!1}}:t.startsWith("dialog:")?{success:!0,data:{canceled:!0,filePaths:[]}}:(console.debug(`[BrowserMock] Unhandled IPC channel: ${t}`),{success:!1,error:`Browser mock: channel "${t}" not implemented`})}const n=[];function f(t,e){for(const r of[...n])r.channel===t&&r.callback(e)}let k=0;const x={invoke:async(t,e)=>(console.warn(`[BrowserMock] Serving MOCK response for IPC channel '${t}' — this is dev-only mock data, not a real bridge`),P(t,e)),send:(t,...e)=>{},on:(t,e)=>{const r=`browser-mock-${++k}`;return n.push({id:r,channel:t,callback:e}),r},off:(t,e)=>{},offById:(t,e)=>{const r=n.findIndex(s=>s.id===e);r!==-1&&n.splice(r,1)},removeAllListeners:t=>{for(let e=n.length-1;e>=0;e--)n[e].channel===t&&n.splice(e,1)},once:(t,e)=>{const r=`browser-mock-${++k}`,s=(...i)=>{e(...i);const a=n.findIndex(c=>c.id===r);a!==-1&&n.splice(a,1)};n.push({id:r,channel:t,callback:s})},getPathForFile:t=>"",platform:"darwin",arch:"arm64",versions:{node:"20.0.0",chrome:"120.0.0",electron:"0.0.0-browser"}};function D(){return typeof window>"u"||window.electronAPI?!1:(console.warn("[BrowserMock] Installing mock electronAPI for browser-mode rendering — all IPC responses are DEV MOCKS"),window.electronAPI=x,_(),!0)}let b=!1;function _(){if(b)return;b=!0;let t=null,e=null,r=null;y(s=>{t?.(),e?.(),r?.(),t=s.onStatusChange(i=>{f("backend:status",{status:i,daemonStartup:s.getStartupState(),transport:{mode:"external-ws",target:s.getTarget()}})}),r=s.onStartupChange(i=>{f("backend:status",{status:s.getStatus(),daemonStartup:i,transport:{mode:"external-ws",target:s.getTarget()}})}),e=s.onReconnected(()=>{f("backend:status",{status:"connected",reconnected:!0,transport:{mode:"external-ws",target:s.getTarget()}})})})}D();export{D as installBrowserMock,U as isBrowserMockEnabled};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./
|
|
1
|
+
import{l as e}from"./D3KzRi1O.js";const t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},o={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{t as conf,o as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Hp as l,ls as r,n5 as o,n4 as i}from"./
|
|
1
|
+
import{Hp as l,ls as r,n5 as o,n4 as i}from"./DzNB7FSW.js";const a=l.createSelector((e,t)=>e.files.byWorkspaceId[t]??r),F=l.createSelector((e,t)=>o(a.select(e,t).files)),c=l.createSelector((e,t,s)=>{if(s)return i(a.select(e,t).files,s)}),S=l.createSelector((e,t,s)=>c.select(e,t,s)?.localContent??null),f=l.createSelector((e,t,s)=>c.select(e,t,s)?.originalContent??null),g=l.createSelector((e,t,s)=>c.select(e,t,s)?.lastUpdated??0),u=l.createSelector((e,t,s)=>c.select(e,t,s)?.loading??!1),C=l.createSelector((e,t,s)=>c.select(e,t,s)?.saving??!1),p=l.createSelector((e,t,s)=>c.select(e,t,s)?.error??null),y=l.createSelector((e,t,s)=>c.select(e,t,s)?.notFoundCandidates??null),m=l.createSelector((e,t,s)=>c.select(e,t,s)?.isBinary??!1),I=l.createSelector((e,t,s)=>{const n=c.select(e,t,s);return n?n.localContent!==n.originalContent:!1});export{S as a,c as b,p as c,m as d,I as e,g as f,u as g,y as h,C as i,f as j,F as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h}from"./
|
|
1
|
+
import{c as h}from"./fsEhp3Sj.js";import{C as c,H as u,d as p,D as m,R as f,g as _,h as w,b as k,F as v,a as D,S as P,c as R,f as I}from"./62Z5FdlR.js";import{e as H,i as U,j as y,t as T,k as x}from"./62Z5FdlR.js";import{l as s}from"./D3KzRi1O.js";const C=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>C&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/css.worker-08QwUeFR.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new I(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,H as DocumentLinkAdapter,I as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,U as fromPosition,y as fromRange,E as setupMode,T as toRange,x as toTextEdit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aR as o,aP as l,a0 as v,l as y,bu as T,bT as b,bL as f,bM as i,r as m,aQ as p}from"./DYhIMPy1.js";import{B as R}from"./
|
|
1
|
+
import{aR as o,aP as l,a0 as v,l as y,bu as T,bT as b,bL as f,bM as i,r as m,aQ as p}from"./DYhIMPy1.js";import{B as R}from"./E2zwcBGL.js";function E(d,_,e){var s;o&&(s=p,l());var r=new R(d);v(()=>{var a=_()??null;if(o){var h=T(s),u=h===m,c=a!==null;if(u!==c){var t=b();f(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},y)}export{E as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as I}from"./
|
|
1
|
+
import{p as I}from"./CTC_IBI6.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./C7v_m4nu.js";import{p as U}from"./CqJpu93-.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
|
|
2
2
|
.radarCurve-${r} {
|
|
3
3
|
color: ${s};
|
|
4
4
|
fill: ${s};
|