@intent-hq/web 2.390.1 → 2.391.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{caKZ9Z4U.js → -CpNnXIW.js} +1 -1
- package/web/app/immutable/chunks/{DRDYIFn4.js → 0R5VEpaM.js} +4 -4
- package/web/app/immutable/chunks/{Cp5royN1.js → 1-MeqddK.js} +1 -1
- package/web/app/immutable/chunks/{BYpep93f.js → 23FyIn6O.js} +1 -1
- package/web/app/immutable/chunks/{xfg66reS.js → 5az3n8fR.js} +1 -1
- package/web/app/immutable/chunks/{DCLLUF6K.js → 6JlgfFWd.js} +1 -1
- package/web/app/immutable/chunks/{BOmWUtDJ.js → 7-WRRruG.js} +1 -1
- package/web/app/immutable/chunks/{Cfr2GX8P.js → 9GL-RXJZ.js} +1 -1
- package/web/app/immutable/chunks/{DxyD9o0t.js → 9eqoPT_C.js} +1 -1
- package/web/app/immutable/chunks/{DvNAieWn.js → 9qqz3Jr0.js} +1 -1
- package/web/app/immutable/chunks/{D672CX3Y.js → Ao0jjYj2.js} +1 -1
- package/web/app/immutable/chunks/{_UjuBCOJ.js → B1lpukIv.js} +1 -1
- package/web/app/immutable/chunks/{CcJmuwXr.js → B26ZHg3s.js} +1 -1
- package/web/app/immutable/chunks/{CrpG0ldr.js → B28HQLvX.js} +1 -1
- package/web/app/immutable/chunks/{BIFBPuAO.js → B2Ny2uiy.js} +1 -1
- package/web/app/immutable/chunks/{DC_9qNLq.js → B2Q_FC4n.js} +3 -3
- package/web/app/immutable/chunks/{DfheqyY9.js → B2awO10u.js} +1 -1
- package/web/app/immutable/chunks/{C4jSaPCg.js → B3T1oiJl.js} +1 -1
- package/web/app/immutable/chunks/{BtmHyUSg.js → B4Yz29Q3.js} +1 -1
- package/web/app/immutable/chunks/{BxmKCIlL.js → B5-Plsom.js} +1 -1
- package/web/app/immutable/chunks/{CZfxrP3m.js → B6m0Dypi.js} +1 -1
- package/web/app/immutable/chunks/{BEP4JwDJ.js → B7hGbqIM.js} +1 -1
- package/web/app/immutable/chunks/{DxKtLuP2.js → B7hWIBzm.js} +1 -1
- package/web/app/immutable/chunks/{9YT9B_ti.js → B7pblHOt.js} +1 -1
- package/web/app/immutable/chunks/B9Nn4kQr.js +3 -0
- package/web/app/immutable/chunks/{CXP7dPfG.js → BAMJ8Hnj.js} +1 -1
- package/web/app/immutable/chunks/{DrA_ZV1y.js → BB2vaoZ2.js} +3 -3
- package/web/app/immutable/chunks/{BhiYNovM.js → BBcnUEuQ.js} +1 -1
- package/web/app/immutable/chunks/{CkmDctRH.js → BCLYeYwk.js} +1 -1
- package/web/app/immutable/chunks/{CLJCnlVH.js → BDeGl6ee.js} +1 -1
- package/web/app/immutable/chunks/{BPcIfv-A.js → BFHmbbvG.js} +2 -2
- package/web/app/immutable/chunks/{BbYWP3Ow.js → BFfRQORP.js} +1 -1
- package/web/app/immutable/chunks/{BrMDTgLg.js → BGeImWEk.js} +1 -1
- package/web/app/immutable/chunks/{BksTLNI4.js → BHgSQJqT.js} +1 -1
- package/web/app/immutable/chunks/{BJEoqPJ5.js → BJCm9MUD.js} +1 -1
- package/web/app/immutable/chunks/{BBPVt-9A.js → BKKCpqXK.js} +2 -2
- package/web/app/immutable/chunks/{CHW1UVsO.js → BLfqsc2a.js} +1 -1
- package/web/app/immutable/chunks/{Dc4V5sMu.js → BLtLj2yz.js} +1 -1
- package/web/app/immutable/chunks/{958SNXkw.js → BM2ubpAw.js} +1 -1
- package/web/app/immutable/chunks/{D36C5UHH.js → BM39k1x6.js} +1 -1
- package/web/app/immutable/chunks/{CjPEI4fg.js → BMTanQ2Z.js} +1 -1
- package/web/app/immutable/chunks/{BtNlG0Qg.js → BNYZa6GV.js} +1 -1
- package/web/app/immutable/chunks/{Cn4A9AjR.js → BOPrepKH.js} +1 -1
- package/web/app/immutable/chunks/{BB9aoG-e.js → BOVldAsb.js} +1 -1
- package/web/app/immutable/chunks/{BNs9wOFa.js → BQCtWEZ2.js} +1 -1
- package/web/app/immutable/chunks/{Dp8b1GoU.js → BRScUzfU.js} +1 -1
- package/web/app/immutable/chunks/{CgrVbtN0.js → BS9WBIBb.js} +1 -1
- package/web/app/immutable/chunks/{DuaPhBil.js → BSKVcPN7.js} +1 -1
- package/web/app/immutable/chunks/{s6kPQOkv.js → BSZu3BUb.js} +1 -1
- package/web/app/immutable/chunks/{D7b2VLAz.js → BT5iyspK.js} +1 -1
- package/web/app/immutable/chunks/{CJsEZbta.js → BT8mEFV6.js} +1 -1
- package/web/app/immutable/chunks/{DBAONTYG.js → BTXzEcFX.js} +2 -2
- package/web/app/immutable/chunks/{DZzwt3PA.js → BTvJ4T_4.js} +1 -1
- package/web/app/immutable/chunks/{aZdb_rCN.js → BU3y3Xes.js} +1 -1
- package/web/app/immutable/chunks/{BYpFXq6h.js → BU9me3Pg.js} +1 -1
- package/web/app/immutable/chunks/{DCs992HX.js → BUSErGiB.js} +1 -1
- package/web/app/immutable/chunks/{B557jpav.js → BVUW22uN.js} +1 -1
- package/web/app/immutable/chunks/{CXz-0Ag_.js → BVwQph9_.js} +1 -1
- package/web/app/immutable/chunks/{p1zR6qAw.js → BWQPB65O.js} +1 -1
- package/web/app/immutable/chunks/{DzDSM2LC.js → BXwdb0J5.js} +3 -3
- package/web/app/immutable/chunks/{BwH4Bvte.js → BZ27qIg1.js} +1 -1
- package/web/app/immutable/chunks/{C4iFTj8I.js → BZCcX8wj.js} +2 -2
- package/web/app/immutable/chunks/{CDwhmkPo.js → B_JGVEqN.js} +1 -1
- package/web/app/immutable/chunks/BaXq2aUL.js +411 -0
- package/web/app/immutable/chunks/{BNCKMxAC.js → Bb-kpHQF.js} +1 -1
- package/web/app/immutable/chunks/{BObTlShq.js → BcdTbj6d.js} +1 -1
- package/web/app/immutable/chunks/{k55njABd.js → BczcQRsN.js} +1 -1
- package/web/app/immutable/chunks/{B5N8LmEF.js → BdhKX9ZN.js} +1 -1
- package/web/app/immutable/chunks/Bheykcr9.js +1 -0
- package/web/app/immutable/chunks/{uvhZkGDU.js → Bhq56Jsu.js} +1 -1
- package/web/app/immutable/chunks/{Bviyt-Xy.js → Bhyo7hBL.js} +1 -1
- package/web/app/immutable/chunks/{DdNhEgdc.js → BjGqF2I6.js} +1 -1
- package/web/app/immutable/chunks/{BPQFiQQc.js → BkcCJyDK.js} +1 -1
- package/web/app/immutable/chunks/{Bq2Q6gce.js → BlzuDW6O.js} +1 -1
- package/web/app/immutable/chunks/{BqMJVUEP.js → BmaG8vdR.js} +1 -1
- package/web/app/immutable/chunks/{UTM5G-w-.js → BpezAJRw.js} +1 -1
- package/web/app/immutable/chunks/{Dcy1uNRG.js → Bpi8OSTE.js} +1 -1
- package/web/app/immutable/chunks/{goTVlBLf.js → BrL12o40.js} +1 -1
- package/web/app/immutable/chunks/{D8xPzBy1.js → BuyrOC4V.js} +1 -1
- package/web/app/immutable/chunks/{CfNIzRu8.js → Bx1P9uW7.js} +1 -1
- package/web/app/immutable/chunks/{BhCMc9G0.js → By2YlE-l.js} +1 -1
- package/web/app/immutable/chunks/{BB3L0Ahp.js → ByP-EusE.js} +1 -1
- package/web/app/immutable/chunks/{CSjV3uYy.js → Byobtdo1.js} +1 -1
- package/web/app/immutable/chunks/{CEE0831H.js → Bz80vYvX.js} +1 -1
- package/web/app/immutable/chunks/{pfX_M-aK.js → C-nTKxY9.js} +1 -1
- package/web/app/immutable/chunks/{CwxM4cLW.js → C00PRSTi.js} +1 -1
- package/web/app/immutable/chunks/{CiCk9_hF.js → C1MYTxgW.js} +1 -1
- package/web/app/immutable/chunks/{CVWwz1Ss.js → C22cBcHz.js} +1 -1
- package/web/app/immutable/chunks/{CpIiMADc.js → C2tSFTTb.js} +1 -1
- package/web/app/immutable/chunks/{D9CNxngf.js → C3JJkOFb.js} +1 -1
- package/web/app/immutable/chunks/{96V4v2iI.js → C3jMXj_V.js} +1 -1
- package/web/app/immutable/chunks/{DRND1Lha.js → C4l6men1.js} +1 -1
- package/web/app/immutable/chunks/{9mJbO8Tf.js → C5fxud9g.js} +1 -1
- package/web/app/immutable/chunks/{llldKyz-.js → C5tJUrGJ.js} +1 -1
- package/web/app/immutable/chunks/C8E14ldW.js +1 -0
- package/web/app/immutable/chunks/{mfOfLDEg.js → C9N7yhqm.js} +1 -1
- package/web/app/immutable/chunks/{CEpPVlB6.js → C9wxB2bb.js} +2 -2
- package/web/app/immutable/chunks/{CgwVRyOb.js → CA-b7pAY.js} +2 -2
- package/web/app/immutable/chunks/{BId1zNus.js → CAGrRNbp.js} +1 -1
- package/web/app/immutable/chunks/{BOVEEbKv.js → CAUJiTuz.js} +1 -1
- package/web/app/immutable/chunks/{CyBTM61A.js → CAUle5iU.js} +1 -1
- package/web/app/immutable/chunks/{BEQVnLdV.js → CCzPC_cB.js} +1 -1
- package/web/app/immutable/chunks/{BR1TNOav.js → CDUYzZ2W.js} +1 -1
- package/web/app/immutable/chunks/CDVPwJHE.js +1 -0
- package/web/app/immutable/chunks/{CiRuCsUo.js → CDh2mZdS.js} +1 -1
- package/web/app/immutable/chunks/{DpCic98X.js → CEA7jD1C.js} +1 -1
- package/web/app/immutable/chunks/{Dp7Hm0g0.js → CEyWnfg4.js} +1 -1
- package/web/app/immutable/chunks/{BwNrQXlF.js → CGmYraIa.js} +1 -1
- package/web/app/immutable/chunks/{yofTuS8P.js → CH6Im5iM.js} +1 -1
- package/web/app/immutable/chunks/{BBFoj-dS.js → CHIxjTWu.js} +1 -1
- package/web/app/immutable/chunks/{BQh5T3Ji.js → CHUYHKuh.js} +1 -1
- package/web/app/immutable/chunks/{DuiDS_zT.js → CIxnaBAb.js} +2 -2
- package/web/app/immutable/chunks/{UuRFnpzE.js → CK543FRe.js} +1 -1
- package/web/app/immutable/chunks/{D2YgP7DB.js → CKTB5KRw.js} +1 -1
- package/web/app/immutable/chunks/{M9xgh-VN.js → CLMwPQBQ.js} +1 -1
- package/web/app/immutable/chunks/{TyAuxp07.js → CLvqghA8.js} +1 -1
- package/web/app/immutable/chunks/{D9y3xvsP.js → COo5pTrI.js} +1 -1
- package/web/app/immutable/chunks/{DPttSllj.js → COofQgO0.js} +1 -1
- package/web/app/immutable/chunks/{Bub6uL1r.js → CPnqf2bo.js} +1 -1
- package/web/app/immutable/chunks/{Bcb_9iMJ.js → CR5XXYcE.js} +1 -1
- package/web/app/immutable/chunks/{Lai6pqjy.js → CREbzS7Z.js} +1 -1
- package/web/app/immutable/chunks/{DtXgUHCj.js → CRXlvdEs.js} +1 -1
- package/web/app/immutable/chunks/{TB9r2XJy.js → CT8vPg_p.js} +2 -2
- package/web/app/immutable/chunks/{hkJYqn41.js → CTgYTdXw.js} +1 -1
- package/web/app/immutable/chunks/{o0-ObNWE.js → CU15H7o_.js} +1 -1
- package/web/app/immutable/chunks/{C3dytrTL.js → CUZpLDKB.js} +1 -1
- package/web/app/immutable/chunks/{2q3SGbtI.js → CUgl7USU.js} +1 -1
- package/web/app/immutable/chunks/{DMrzeQEi.js → CV17KbhT.js} +1 -1
- package/web/app/immutable/chunks/{BbhtQrkZ.js → CVtLV3_x.js} +1 -1
- package/web/app/immutable/chunks/{etz9IKpr.js → CWXVdpgZ.js} +1 -1
- package/web/app/immutable/chunks/{BZYS48ON.js → CaX8Mme7.js} +1 -1
- package/web/app/immutable/chunks/{BNJ3edFz.js → CbB6SI0i.js} +1 -1
- package/web/app/immutable/chunks/{B1bJpz3G.js → Cd-qmx8U.js} +1 -1
- package/web/app/immutable/chunks/{zGyI6qOq.js → CdTSfppl.js} +1 -1
- package/web/app/immutable/chunks/{B6U9KgKY.js → CedswVQA.js} +1 -1
- package/web/app/immutable/chunks/{B6dUCFoz.js → CeoBhFo7.js} +1 -1
- package/web/app/immutable/chunks/{BJ_X8eP6.js → CfDqTHT1.js} +1 -1
- package/web/app/immutable/chunks/{CwEjDuJ3.js → Cgz4dZpP.js} +1 -1
- package/web/app/immutable/chunks/{BGniv2IE.js → ChYLETZB.js} +1 -1
- package/web/app/immutable/chunks/{vj8NdGWd.js → Chbrtg19.js} +1 -1
- package/web/app/immutable/chunks/{D54MIPdF.js → Ci6PI5sn.js} +1 -1
- package/web/app/immutable/chunks/{TBtn8giw.js → CiHhUIjb.js} +1 -1
- package/web/app/immutable/chunks/{B9vHutcJ.js → CiKoEJ2m.js} +1 -1
- package/web/app/immutable/chunks/{D8rVwrWL.js → CiRkFhK8.js} +1 -1
- package/web/app/immutable/chunks/{D4ytz2EC.js → CjpWOZGa.js} +1 -1
- package/web/app/immutable/chunks/{CfQcMKZg.js → CktgkomQ.js} +1 -1
- package/web/app/immutable/chunks/{D99jSct3.js → ClaP_sir.js} +1 -1
- package/web/app/immutable/chunks/{KZwZoyIt.js → Cn-Afla1.js} +1 -1
- package/web/app/immutable/chunks/{C3L0F6Xc.js → Cn4-Fvkn.js} +1 -1
- package/web/app/immutable/chunks/{z3SZgGAK.js → CnDgS0vt.js} +1 -1
- package/web/app/immutable/chunks/{B1CKzIA2.js → CnFZbWXv.js} +1 -1
- package/web/app/immutable/chunks/{GgbLp4i9.js → Cnkux63v.js} +1 -1
- package/web/app/immutable/chunks/{DrgHk1UN.js → CoSEZL3s.js} +1 -1
- package/web/app/immutable/chunks/{BB6LoQke.js → Cp-4w4r1.js} +1 -1
- package/web/app/immutable/chunks/{hk_M7mFx.js → CpwS8V1F.js} +1 -1
- package/web/app/immutable/chunks/{FXkLEPTk.js → Cq8_4net.js} +1 -1
- package/web/app/immutable/chunks/{C9_ZEBkB.js → Cr5mKkdD.js} +1 -1
- package/web/app/immutable/chunks/{VTkMkEPR.js → Cr9C4VDu.js} +1 -1
- package/web/app/immutable/chunks/{D7QZQ0zf.js → Crey45Oa.js} +1 -1
- package/web/app/immutable/chunks/{DJ9ILql1.js → Csqi0oV3.js} +1 -1
- package/web/app/immutable/chunks/CtfEuoOH.js +1 -0
- package/web/app/immutable/chunks/{ClxyT-Se.js → CwCvyVGi.js} +1 -1
- package/web/app/immutable/chunks/{iOLvSy8g.js → CwOdvmTo.js} +3 -3
- package/web/app/immutable/chunks/{BIU3Z0JX.js → CwqJ7uz4.js} +1 -1
- package/web/app/immutable/chunks/{Ctp-YfoS.js → CwqyVbqi.js} +3 -3
- package/web/app/immutable/chunks/{B_vpadVO.js → Cxc8q3rR.js} +1 -1
- package/web/app/immutable/chunks/{vpQRVk8F.js → Cxmepjfl.js} +1 -1
- package/web/app/immutable/chunks/{CzJm3Kxa.js → CyinuwPx.js} +1 -1
- package/web/app/immutable/chunks/{C4fj9uDh.js → CyvzL5p8.js} +3 -3
- package/web/app/immutable/chunks/{X0RLj3lE.js → CzxEKNiF.js} +1 -1
- package/web/app/immutable/chunks/{GnUYJfg_.js → D3JNbQ4D.js} +1 -1
- package/web/app/immutable/chunks/{TsuJPtsq.js → D3pRyooW.js} +1 -1
- package/web/app/immutable/chunks/{Dfp6ssYD.js → D3tqOSzT.js} +1 -1
- package/web/app/immutable/chunks/{Ch_2itxw.js → D49mWFig.js} +1 -1
- package/web/app/immutable/chunks/{CMdo0m6e.js → D59tCG3q.js} +2 -2
- package/web/app/immutable/chunks/{D8EcsS7V.js → D5Jk5CWk.js} +2 -2
- package/web/app/immutable/chunks/{BNu1GhJn.js → D5al-p9o.js} +1 -1
- package/web/app/immutable/chunks/{BzWT_wQw.js → D5tDAzIo.js} +1 -1
- package/web/app/immutable/chunks/{Jg5r77fy.js → D7QFmXLb.js} +1 -1
- package/web/app/immutable/chunks/{nxtepGjE.js → D9R5fzn8.js} +1 -1
- package/web/app/immutable/chunks/{pTmKTjdu.js → D9T_0Eev.js} +3 -3
- package/web/app/immutable/chunks/{DhSY0ZEq.js → DBYe3Dcp.js} +2 -2
- package/web/app/immutable/chunks/{Cio-rWcY.js → DDvFH8QS.js} +1 -1
- package/web/app/immutable/chunks/{BRaBCoIn.js → DE8II0cx.js} +1 -1
- package/web/app/immutable/chunks/{BVXKWrt4.js → DEr2A_-h.js} +2 -2
- package/web/app/immutable/chunks/{BT9lzXEu.js → DF15jnSX.js} +1 -1
- package/web/app/immutable/chunks/{CXEn_RGs.js → DF54qNJU.js} +1 -1
- package/web/app/immutable/chunks/{CIbfGsF-.js → DFKhOU69.js} +1 -1
- package/web/app/immutable/chunks/{BpMXdC4H.js → DG3-me8H.js} +1 -1
- package/web/app/immutable/chunks/{nIshZjK_.js → DGU9U1O6.js} +1 -1
- package/web/app/immutable/chunks/{Ll0WtNFW.js → DHkcvVzr.js} +1 -1
- package/web/app/immutable/chunks/{da_tvSiq.js → DHvVAxAW.js} +1 -1
- package/web/app/immutable/chunks/{tCg_s90g.js → DIIj7EWA.js} +1 -1
- package/web/app/immutable/chunks/{BI0SpAnv.js → DISm8kek.js} +1 -1
- package/web/app/immutable/chunks/{DZOkhMcO.js → DJSvqrCI.js} +1 -1
- package/web/app/immutable/chunks/{D0qNo7Oy.js → DJcR4XQR.js} +1 -1
- package/web/app/immutable/chunks/{BYHw69-J.js → DJqiMUht.js} +1 -1
- package/web/app/immutable/chunks/{i5FUlYpy.js → DLqZuVvj.js} +1 -1
- package/web/app/immutable/chunks/{KqqODIKw.js → DLt9OoMP.js} +1 -1
- package/web/app/immutable/chunks/{Cu5e4npY.js → DMEIbJII.js} +1 -1
- package/web/app/immutable/chunks/{BgXuXJpo.js → DMudvlKI.js} +4 -4
- package/web/app/immutable/chunks/{D1BvOU2l.js → DOhHP999.js} +1 -1
- package/web/app/immutable/chunks/{BniyCzQ9.js → DPk2fLxi.js} +1 -1
- package/web/app/immutable/chunks/{Dj-KLToz.js → DQNtbVVY.js} +3 -3
- package/web/app/immutable/chunks/{BnV9CBUH.js → DQpGArF7.js} +1 -1
- package/web/app/immutable/chunks/{OyqO3fO-.js → DR_b4dt8.js} +1 -1
- package/web/app/immutable/chunks/{R-UFG3MB.js → DRuLniWc.js} +1 -1
- package/web/app/immutable/chunks/{z5FcOXD5.js → DSZbBNDD.js} +1 -1
- package/web/app/immutable/chunks/{DFFA_QTd.js → DSs6r6NG.js} +1 -1
- package/web/app/immutable/chunks/{DtzJzV-4.js → DUTvR2si.js} +1 -1
- package/web/app/immutable/chunks/{D2YDfFKv.js → DW8fwVBf.js} +1 -1
- package/web/app/immutable/chunks/{CpTvA0xC.js → DWBUvNGh.js} +1 -1
- package/web/app/immutable/chunks/{MakwazGY.js → DWRtOXBU.js} +1 -1
- package/web/app/immutable/chunks/{u4iPyMwH.js → DXCHCOFX.js} +1 -1
- package/web/app/immutable/chunks/{Bq7odTLd.js → DXXFBdjF.js} +1 -1
- package/web/app/immutable/chunks/{Cn9MHQyc.js → D__sU8Ug.js} +1 -1
- package/web/app/immutable/chunks/{CvLVVi8w.js → DcPZfWKB.js} +1 -1
- package/web/app/immutable/chunks/{WoMkq5ac.js → DcU8bi_n.js} +2 -2
- package/web/app/immutable/chunks/{DaWmj23r.js → DcraaizU.js} +1 -1
- package/web/app/immutable/chunks/{C6RhewOE.js → Dd_KPYBw.js} +1 -1
- package/web/app/immutable/chunks/{BAAIhuts.js → DeFlL2nh.js} +1 -1
- package/web/app/immutable/chunks/{CWsj4Hb7.js → Dgo57zmq.js} +1 -1
- package/web/app/immutable/chunks/{C8tk9ZQ3.js → Dh-DCh2Y.js} +1 -1
- package/web/app/immutable/chunks/{CvorDgLi.js → Dh1j4V0b.js} +1 -1
- package/web/app/immutable/chunks/{29xygHrF.js → DhTLwmro.js} +1 -1
- package/web/app/immutable/chunks/{CkkpCaXs.js → Di3gErxh.js} +1 -1
- package/web/app/immutable/chunks/{WdSh5fl1.js → DidHgSQp.js} +2 -2
- package/web/app/immutable/chunks/{DogIXhAJ.js → Dk7Kxi97.js} +1 -1
- package/web/app/immutable/chunks/{BESb5QC3.js → Dl1AOLZu.js} +1 -1
- package/web/app/immutable/chunks/{CZr8f1ch.js → DlljGo_I.js} +1 -1
- package/web/app/immutable/chunks/{BOwgyiCF.js → DmQ5G_6J.js} +1 -1
- package/web/app/immutable/chunks/{7pl09QeT.js → DnzDw_9l.js} +1 -1
- package/web/app/immutable/chunks/{ByyFoG6W.js → DoB-G8kB.js} +1 -1
- package/web/app/immutable/chunks/{Dqi2LMpO.js → DoJ49Zrl.js} +1 -1
- package/web/app/immutable/chunks/{CFs3R4lt.js → DqtLBCnq.js} +1 -1
- package/web/app/immutable/chunks/{DpIgdPs7.js → Dr6-g-BO.js} +1 -1
- package/web/app/immutable/chunks/{Crz8kvLc.js → Drn9m8Tp.js} +1 -1
- package/web/app/immutable/chunks/{BWmW9W02.js → Dt_7lHy8.js} +1 -1
- package/web/app/immutable/chunks/{kjO__HeE.js → DuZtgB5V.js} +1 -1
- package/web/app/immutable/chunks/{xvadpoNC.js → DupTZXsI.js} +1 -1
- package/web/app/immutable/chunks/{Tt-VDGAY.js → DvUsJK3H.js} +1 -1
- package/web/app/immutable/chunks/{CbTbQhqy.js → DxmPtFKv.js} +1 -1
- package/web/app/immutable/chunks/{BFgvMDua.js → DynUeYUu.js} +1 -1
- package/web/app/immutable/chunks/{BjE6fvlI.js → DyreqWqr.js} +1 -1
- package/web/app/immutable/chunks/{vIaOEmEw.js → Em5CdgqH.js} +4 -4
- package/web/app/immutable/chunks/{DQ75EkSY.js → FM3MDwzB.js} +1 -1
- package/web/app/immutable/chunks/{B8lliwzm.js → GwtGeFMJ.js} +1 -1
- package/web/app/immutable/chunks/{DWH71rGR.js → HiIoMspb.js} +1 -1
- package/web/app/immutable/chunks/{Drl447ub.js → IxxdIKNN.js} +1 -1
- package/web/app/immutable/chunks/{DX2vfFPI.js → JiW1DfLK.js} +1 -1
- package/web/app/immutable/chunks/{DQw0Iiac.js → JvFe2B29.js} +1 -1
- package/web/app/immutable/chunks/{DmrchYzR.js → K0WiFC8Y.js} +1 -1
- package/web/app/immutable/chunks/{C3EKiijc.js → KWtYfwVq.js} +1 -1
- package/web/app/immutable/chunks/{CYxt6gzD.js → KaOLys0u.js} +1 -1
- package/web/app/immutable/chunks/{1rpeT4f8.js → OsJD3pkm.js} +1 -1
- package/web/app/immutable/chunks/{CfYmMj5F.js → P7zPRuFC.js} +1 -1
- package/web/app/immutable/chunks/{CqKjG3GQ.js → Q1bO23Hj.js} +1 -1
- package/web/app/immutable/chunks/{BRc67QBD.js → QeZhJHLb.js} +1 -1
- package/web/app/immutable/chunks/{BGrimfDs.js → QzxpbvSo.js} +1 -1
- package/web/app/immutable/chunks/{qhd9g-fv.js → RV6uszBL.js} +1 -1
- package/web/app/immutable/chunks/{LXflBOtX.js → S3jMTv3a.js} +1 -1
- package/web/app/immutable/chunks/{Bh9phZlQ.js → SdVpHK7d.js} +1 -1
- package/web/app/immutable/chunks/{l0vFyEGM.js → T9rMC0YB.js} +1 -1
- package/web/app/immutable/chunks/{D4d1iyeR.js → TPru2I57.js} +1 -1
- package/web/app/immutable/chunks/{Rzyk45bZ.js → WYNXUtt9.js} +1 -1
- package/web/app/immutable/chunks/{Chj-azz7.js → Xgzr3BTD.js} +1 -1
- package/web/app/immutable/chunks/{1B7vLvp_.js → YQwkPi_0.js} +1 -1
- package/web/app/immutable/chunks/{Cm0Qloca.js → ZX798KkU.js} +1 -1
- package/web/app/immutable/chunks/{Dd-LQrG1.js → aWBSU8IQ.js} +1 -1
- package/web/app/immutable/chunks/{CgGsxeG7.js → axwUS21u.js} +1 -1
- package/web/app/immutable/chunks/{F__rjLBg.js → bJK6npyT.js} +1 -1
- package/web/app/immutable/chunks/{iXPhOXJa.js → fCtMtGYt.js} +1 -1
- package/web/app/immutable/chunks/{C-HR_nje.js → g5QqP-QE.js} +1 -1
- package/web/app/immutable/chunks/{BTaBiqZj.js → gQ8VFuWN.js} +2 -2
- package/web/app/immutable/chunks/{C2UL5Ler.js → iQDlfKDR.js} +1 -1
- package/web/app/immutable/chunks/jlu1ZSD8.js +1 -0
- package/web/app/immutable/chunks/{CnN8HXjd.js → jyQWudgn.js} +1 -1
- package/web/app/immutable/chunks/{BWfc0sSK.js → k48f0Jn8.js} +1 -1
- package/web/app/immutable/chunks/{BiYZcl7D.js → kkKMJ9w9.js} +1 -1
- package/web/app/immutable/chunks/{BHy9cRzo.js → l7sDKa65.js} +1 -1
- package/web/app/immutable/chunks/{D7AN7xLp.js → mFWmuyR-.js} +1 -1
- package/web/app/immutable/chunks/{CdGOAvU7.js → n0_jgWL7.js} +1 -1
- package/web/app/immutable/chunks/{IXIWcEcs.js → pXrAh3i2.js} +1 -1
- package/web/app/immutable/chunks/{DWF5uerC.js → qWgJ-CUF.js} +2 -2
- package/web/app/immutable/chunks/{BsY6roFy.js → rwibDzZr.js} +1 -1
- package/web/app/immutable/chunks/{BtmBRuf6.js → sFief-xo.js} +1 -1
- package/web/app/immutable/chunks/{D6txwX4Y.js → uyQciu7h.js} +4 -4
- package/web/app/immutable/chunks/{Bw9XtMey.js → z0xDttNV.js} +3 -3
- package/web/app/immutable/chunks/{CZ9ViN3z.js → z4O7yNZ6.js} +1 -1
- package/web/app/immutable/chunks/zXLHCuiE.js +1 -0
- package/web/app/immutable/entry/{app.qraxYAYk.js → app.B0HiWR5T.js} +3 -3
- package/web/app/immutable/entry/start.BFcXwo9Y.js +1 -0
- package/web/app/immutable/nodes/{0.DJcM2RkQ.js → 0.5oa9JC3V.js} +1 -1
- package/web/app/immutable/nodes/{1.Jq1-N2Pd.js → 1.dLY473QL.js} +1 -1
- package/web/app/immutable/nodes/{10.C_zzc0gt.js → 10.Dg3iEVmH.js} +6 -6
- package/web/app/immutable/nodes/{11.6gj6bfPq.js → 11.PFTrUEsb.js} +1 -1
- package/web/app/immutable/nodes/{12.Dwdqbt9T.js → 12.DUMat2GN.js} +1 -1
- package/web/app/immutable/nodes/{13.jK1i4wo4.js → 13.BEiznOPk.js} +1 -1
- package/web/app/immutable/nodes/{14.DdHtnE9x.js → 14.DFolVj6c.js} +3 -3
- package/web/app/immutable/nodes/{15.DzaMQCp_.js → 15.CGEsAjgd.js} +1 -1
- package/web/app/immutable/nodes/{16.DFPLVaTv.js → 16.cptOJ-f9.js} +1 -1
- package/web/app/immutable/nodes/{17.Dylz7DBe.js → 17.BVn1LtfR.js} +1 -1
- package/web/app/immutable/nodes/{18.CxblUMg0.js → 18.BLC8YWHJ.js} +1 -1
- package/web/app/immutable/nodes/{19.cFDk8lfW.js → 19.CqJycQsd.js} +2 -2
- package/web/app/immutable/nodes/{2.ByMlaGl6.js → 2.BaR1WF3o.js} +4 -4
- package/web/app/immutable/nodes/{20.CXw8Twm7.js → 20.g9As4rvG.js} +1 -1
- package/web/app/immutable/nodes/{3.9JGSdcGo.js → 3.DwF_25Xt.js} +1 -1
- package/web/app/immutable/nodes/{4.CBjeaWO7.js → 4.ttOSy2Tq.js} +1 -1
- package/web/app/immutable/nodes/{5.rzCmecJm.js → 5.BVpoghsD.js} +1 -1
- package/web/app/immutable/nodes/{6.ltNDZwKc.js → 6.D6pOrTxH.js} +1 -1
- package/web/app/immutable/nodes/{7.KOkYCHHg.js → 7.BO56ByN2.js} +1 -1
- package/web/app/immutable/nodes/{8.DAi8MaAi.js → 8.CPtVgnSI.js} +1 -1
- package/web/app/immutable/nodes/{9.BzVFDUkR.js → 9.cl9L6J-I.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +45 -45
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/C8rJ090F.js +0 -1
- package/web/app/immutable/chunks/CL3wj1V-.js +0 -1
- package/web/app/immutable/chunks/CLAmm_T1.js +0 -1
- package/web/app/immutable/chunks/CRSiOiSR.js +0 -1
- package/web/app/immutable/chunks/DFh0CfhB.js +0 -1
- package/web/app/immutable/chunks/DmapvbAr.js +0 -3
- package/web/app/immutable/chunks/KnkAG0HD.js +0 -1
- package/web/app/immutable/chunks/fAzcgPHK.js +0 -411
- package/web/app/immutable/entry/start.BWAelo_H.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bm as l}from"./
|
|
1
|
+
import{bm as l}from"./CtfEuoOH.js";import{JH as a}from"./CiKoEJ2m.js";let D=1,d=null;const y=[],m=new Set;function K(){for(const e of m)e(d)}function v(){return typeof document<"u"&&document.activeElement instanceof HTMLElement?document.activeElement:null}function N(e){y.push({...e,id:D++,returnFocus:v()}),d||(d=y.shift()??null,K())}function ee(e){return new Promise(t=>N({kind:"confirm",options:e,resolve:t}))}function te(e){return new Promise(t=>N({kind:"prompt",options:e,resolve:t}))}function ne(e){return m.add(e),e(d),()=>m.delete(e)}function re(e,t){if(!d||d.id!==e)return;const n=d;d=y.shift()??null,n.resolve(t),n.returnFocus?.focus(),K()}const se={IS_AUTHENTICATED:"linear-auth:is-authenticated",START_AUTH:"linear-auth:start-auth",CANCEL_AUTH:"linear-auth:cancel-auth",LOGOUT:"linear-auth:logout",GET_AUTH_STATE:"linear-auth:get-auth-state",GET_STATUS:"linear-auth:get-status",FETCH_MY_ISSUES:"linear-auth:fetch-my-issues",SEARCH_ISSUES:"linear-auth:search-issues"},oe=[{value:"assigned",get label(){return l.linearAuth_filter_assigned_label()},get description(){return l.linearAuth_filter_assigned_description()}},{value:"created",get label(){return l.linearAuth_filter_created_label()},get description(){return l.linearAuth_filter_created_description()}},{value:"subscribed",get label(){return l.linearAuth_filter_subscribed_label()},get description(){return l.linearAuth_filter_subscribed_description()}},{value:"team",get label(){return l.linearAuth_filter_team_label()},get description(){return l.linearAuth_filter_team_description()}},{value:"all",get label(){return l.linearAuth_filter_all_label()},get description(){return l.linearAuth_filter_all_description()}}],ie=a.createSelector(e=>e.linearAuth.operation),ae=a.createSelector((e,t)=>e.linearAuth.operation?.consumerId===t?e.linearAuth.operation:null),ue=a.createSelector(e=>e.linearAuth.operation?.kind==="logout"&&e.linearAuth.operation.status==="pending"),ce=a.createSelector(e=>e.linearAuth.isAuthenticated),le=a.createSelector(e=>e.linearAuth.requiresDaemonAuth),fe=a.createSelector(e=>e.linearAuth.isAuthenticating),de=a.createSelector(e=>e.linearAuth.error),Ae=a.createSelector(e=>e.sentryAuth.operation),_e=a.createSelector((e,t)=>e.sentryAuth.operation?.consumerId===t?e.sentryAuth.operation:null),Ee=a.createSelector(e=>e.sentryAuth.operation?.kind==="logout"&&e.sentryAuth.operation.status==="pending"),he=a.createSelector(e=>e.sentryAuth.isAuthenticated),pe=a.createSelector(e=>e.sentryAuth.organization),Se=a.createSelector(e=>e.sentryAuth.isConnecting),ge=a.createSelector(e=>e.sentryAuth.error),ye="npx not found — install Node.js (with npm) to use Claude Code",H="********",I={claude:"claude-code",codex:"codex",grok:"grok",droid:"droid",auggie:"auggie",cursor:"cursor"},h={claude:"CLAUDE_CONFIG_DIR",codex:"CODEX_HOME"},C={claude:{differentLogin:{set:["CLAUDE_CONFIG_DIR"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},apiKey:{set:["ANTHROPIC_API_KEY"],optionalSet:["ANTHROPIC_BASE_URL"],unset:["ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},token:{set:["CLAUDE_CODE_OAUTH_TOKEN"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN"]}},codex:{differentLogin:{set:["CODEX_HOME"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","CODEX_API_KEY","OPENAI_API_KEY"]},apiKey:{set:["CODEX_API_KEY"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","OPENAI_API_KEY"]},token:{set:["CODEX_ACCESS_TOKEN"],optionalSet:[],unset:["CODEX_API_KEY","OPENAI_API_KEY"]}},grok:{apiKey:{set:["XAI_API_KEY"],optionalSet:[],unset:[]}},droid:{apiKey:{set:["FACTORY_API_KEY"],optionalSet:[],unset:[]}},auggie:{token:{set:["AUGMENT_SESSION_AUTH"],optionalSet:[],unset:[]}},cursor:{apiKey:{set:["CURSOR_API_KEY"],optionalSet:[],unset:["CURSOR_AUTH_TOKEN"]}}},w=["differentLogin","apiKey","token"];function p(e,t){const n=C[e][t];if(!n)throw new Error(`${e} has no ${t} profile kind`);return n}function U(e){return w.filter(t=>C[e][t]!==void 0)}function me(e){const t=U(e);return t.length===1?t[0]:void 0}function Ie(e,t){return C[e][t]!==void 0}const O="ANTHROPIC_BASE_URL";function F(e){return I[e]}function $(e){return Object.keys(I).find(t=>I[t]===e)}function Oe(e){return e.supportsProfiles===!0&&e.id!==void 0&&$(e.id)!==void 0}function Te(e,t){return p(t,e).set[0]}function Ce(e){return h[e]!==void 0}function L(e){const t=h[e];if(!t)throw new Error(`${e} has no account folder`);return t}function x(e){return`~/intent/profiles/${e}`}const A=e=>e.toUpperCase();function ke(e,t){if(t.length===0)return"advanced";const n=new Set,s=new Set;for(const r of t){const o=A(r.key);if(n.has(o)||s.has(o))return"advanced";(r.kind==="set"?n:s).add(o)}for(const r of U(e))if(M(p(e,r),n,s))return r==="differentLogin"&&!X(e,t)?"advanced":r;return"advanced"}function M(e,t,n){const s=e.set.map(A),r=new Set([...s,...e.optionalSet.map(A)]);if(!s.every(i=>t.has(i))||![...t].every(i=>r.has(i)))return!1;const o=new Set(e.unset.map(A));return[...n].every(i=>o.has(i))}function X(e,t){if(!h[e])return!1;const n=Y(e,t);return n!==void 0&&n!==""&&n!==H}function Y(e,t){const n=h[e];if(!n)return;const s=A(n),r=t.find(o=>o.kind==="set"&&A(o.key)===s);return r?.kind==="set"?r.value:void 0}const z=32;function G(e){return e.normalize("NFKD").replace(/\p{M}/gu,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,z).replace(/-+$/g,"")||"profile"}const S="abcdefghijklmnopqrstuvwxyz0123456789",B=4;function P(){const e=new Uint32Array(1);return globalThis.crypto.getRandomValues(e),e[0]/2**32}function q(e=P){let t="";for(let n=0;n<B;n++){const s=Math.min(S.length-1,Math.floor(e()*S.length));t+=S[s]}return t}const V=64;function Ke(e,t,n,s=P){const r=new Set([...n].map(i=>i.toLowerCase())),o=G(t);for(let i=0;i<V;i++){const c=`${o}-${q(s)}`;if(!r.has(c))return`${x(e)}/${c}`}throw new Error(`No unused profile folder found for "${o}"`)}function J(e){return e.map(t=>({key:t,kind:"unset"}))}function E(e,t){const n=e?.trim()??"";if(!n)throw new Error(`Missing ${t}`);return n}function Ne(e,t,n){const s=p(t,e),r=[];if(e==="differentLogin")r.push({key:L(t),kind:"set",value:E(n.folder,"folder")});else if(e==="apiKey"){r.push({key:s.set[0],kind:"set",value:T(t,e,E(n.apiKey,"API key"))});const o=n.baseUrl?.trim();o&&t==="claude"&&r.push({key:O,kind:"set",value:o})}else r.push({key:s.set[0],kind:"set",value:T(t,e,E(n.token,"token"))});return{baseProviderId:F(t),name:n.name.trim(),backup:n.backup??!1,env:[...r,...J(s.unset)]}}function Ue(e,t,n,s={}){const r=p(t,e),o=(u,f)=>n.find(_=>_.kind===f&&A(_.key)===A(u))?.key,i=(u,f)=>{const _=o(u,"set");if(f!==void 0){const k=E(f,u);return{key:_??u,kind:"set",value:e==="differentLogin"?k:T(t,e,k)}}if(!_)throw new Error(`Missing ${u}`);return{key:_,kind:"keep"}},c=[];if(e==="differentLogin")c.push(i(L(t),void 0));else if(e==="apiKey"){c.push(i(r.set[0],s.apiKey));const u=t==="claude"?o(O,"set"):void 0,f=t==="claude"?s.baseUrl:void 0;typeof f=="string"&&f.trim()?c.push({key:u??O,kind:"set",value:f.trim()}):f===void 0&&u&&c.push({key:u,kind:"keep"})}else c.push(i(r.set[0],s.token));for(const u of r.unset)c.push({key:o(u,"unset")??u,kind:"unset"});return c}const g="[A-Za-z0-9_-]+",R=new RegExp(`^${g}\\.${g}\\.${g}$`);function Le(e){return R.test(e.trim())}function Z(e){let t;try{t=JSON.parse(b(e))}catch{return!1}if(typeof t!="object"||t===null||Array.isArray(t))return!1;const n=t;return typeof n.accessToken=="string"&&n.accessToken.trim()!==""&&typeof n.tenantURL=="string"&&/^https:\/\/\S+$/.test(n.tenantURL)&&Array.isArray(n.scopes)}function b(e){const t=e.trim(),n=t.split(/\r?\n/).find(o=>o.trim().startsWith("SESSION="));if(n)return n.trim().slice(8).trim();const s=t.indexOf("{"),r=t.lastIndexOf("}");return s>=0&&r>s?t.slice(s,r+1):t}function T(e,t,n){return e==="auggie"&&t==="token"?b(n):n.trim()}const j={claude:{apiKey:/^sk-ant-api\d*-[A-Za-z0-9_-]{16,}$/,token:/^sk-ant-oat\d*-[A-Za-z0-9_-]{16,}$/},codex:{apiKey:/^sk-(?!ant-)[A-Za-z0-9_-]{20,}$/,token:R},grok:{apiKey:/^xai-[A-Za-z0-9]{20,}$/},droid:{apiKey:/^fk-[A-Za-z0-9_-]{20,}$/},auggie:{token:Z},cursor:{apiKey:/^\S{32,}$/}};function Pe(e,t,n,s={}){const r=n.trim();if(e==="claude"&&t==="apiKey"&&s.customEndpoint)return/^\S+$/.test(r);const o=j[e][t];return o?typeof o=="function"?o(r):o.test(r):!1}function Re(e){if(e==="claude")return"claude auth login";if(e==="codex")return"codex login --device-auth";throw new Error(`${e} has no Different login sign-in`)}export{ue as A,le as B,ye as C,_e as D,Ae as E,ge as F,he as G,Se as H,Ee as I,pe as J,re as K,se as L,H as M,me as N,G as O,ne as P,oe as a,F as b,Ne as c,Ue as d,ee as e,ke as f,L as g,Ce as h,Ie as i,Oe as j,Le as k,Pe as l,Re as m,x as n,U as o,Ke as p,$ as q,te as r,q as s,Y as t,Te as u,ae as v,ie as w,de as x,ce as y,fe as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{at as L,ca as T}from"./3SdAC2_C.js";import{a as C,s as E}from"./BsieX9dN.js";import{o as F,p as H}from"./
|
|
1
|
+
import{at as L,ca as T}from"./3SdAC2_C.js";import{a as C,s as E}from"./BsieX9dN.js";import{o as F,p as H}from"./CnFZbWXv.js";import"./B26ZHg3s.js";import{S as N}from"./Bx1P9uW7.js";function b(e){return typeof e=="object"?{open:e.open??!0,tier:e.tier??"slow",onClosed:e.onClosed}:{open:e??!0,tier:"slow",onClosed:void 0}}function W(e){const l=e.querySelectorAll("[data-animated-height-target]"),t=l.item(l.length-1)||e.firstElementChild;if(!t)return e.scrollHeight;const n=getComputedStyle(t),c=Number.parseFloat(n.height);return Number.isFinite(c)?n.boxSizing==="border-box"?c:c+["paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"].reduce((r,u)=>r+(Number.parseFloat(n[u])||0),0):t.offsetHeight}const P=(e,l=!0)=>{let{open:t,onClosed:n}=b(l);const{tier:c}=b(l),r=new N(0,c);let u=!t,v,i=!1,a,h,s;const O=e.style.overflow,S=e.style.height,m=()=>{e.style.overflow="clip",v=r.current,e.style.height=`${v}px`},M=L(()=>{T(()=>{const o=r.current;!u||i||o===v||(s?.(),s=C(()=>{s=void 0,i||m()}))})}),d=()=>{if(i)return;a?.(),h?.();const o=f=>{h=C(()=>{if(h=void 0,i)return;const z=r.set(f,{instant:!u||H()});u=!0,t||z.then(()=>{!i&&!t&&r.current===0&&n?.()}),s?.(),s=void 0,m()})};t?a=E(()=>{a=void 0,o(W(e))}):o(0)},R=()=>{H()&&d()},p=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{t&&d()});let g=null;const y=()=>{const o=e.querySelectorAll("[data-animated-height-target]"),f=o.item(o.length-1)||e.firstElementChild||e;f!==g&&(g&&p?.unobserve(g),g=f,p?.observe(f))};y();const w=typeof MutationObserver>"u"?void 0:new MutationObserver(()=>{i||(y(),t&&d())});w?.observe(e,{childList:!0,subtree:!0});const x=F(R);return d(),{update(o=!0){({open:t,onClosed:n}=b(o)),d()},destroy(){i=!0,a?.(),h?.(),s?.(),r.set(r.current,{instant:!0}),p?.disconnect(),w?.disconnect(),x(),M(),e.style.height=S,e.style.overflow=O}}};export{P as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as ht,bo as _,bm as g,bw as bt,b as xt}from"./
|
|
1
|
+
import{t as ht,bo as _,bm as g,bw as bt,b as xt}from"./CtfEuoOH.js";import{bs as yt,a7 as kt,ay as Q,W as p,bn as At,aA as h,a5 as q,bS as u,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./3SdAC2_C.js";import{i as f}from"./DynUeYUu.js";import{I as Bt,g as Ct}from"./CnFZbWXv.js";import{n as Pt,j as zt}from"./Bx1P9uW7.js";import{f as F}from"./D9R5fzn8.js";import"./CT8vPg_p.js";import"./B26ZHg3s.js";import"./CGmYraIa.js";import{F as rt,ce as Rt,cq as St,au as Wt}from"./COofQgO0.js";import{A as Dt}from"./B7pblHOt.js";import{D as Ht}from"./BLfqsc2a.js";import{JH as Lt,v1 as $t}from"./CiKoEJ2m.js";import{g as Nt}from"./DgAgTFcK.js";var jt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),qt=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Ft=k("<!> ",1),Mt=k('<div class="mb-2 flex gap-1"></div>'),Ot=k('<div class="border-t border-border p-2"><!> <!></div>'),Vt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Jt(U,n){if(new.target)return ht({component:Jt,...U});yt(n,!0);let A=_(n,"patches",7),M=_(n,"label",23,()=>g.ui_patchBlock_label()),O=_(n,"lastApply",7),w=_(n,"linkedAgentId",7),H=_(n,"workspaceId",7),P=_(n,"applying",7,!1),L=_(n,"onApply",7),$=_(n,"onRevert",7),V=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),J=y(()=>O()?.status==="success");function st(t){const o=t.split(`
|
|
2
2
|
`);let v=0,b=0;for(const I of o)I.startsWith("+")&&!I.startsWith("+++")?v++:I.startsWith("-")&&!I.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),T=y(()=>P()?{label:g.ui_patchBlock_applying_label(),icon:null}:e(J)?{label:g.ui_patchBlock_revert_label(),icon:St}:{label:g.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!(L()||$()));function ot(){et(V,!e(V))}function it(){e(J)?$()?.():L()?.()}var lt={get patches(){return A()},set patches(t){A(t),h()},get label(){return M()},set label(t=g.ui_patchBlock_label()){M(t),h()},get lastApply(){return O()},set lastApply(t){O(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return H()},set workspaceId(t){H(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return L()},set onApply(t){L(t),h()},get onRevert(){return $()},set onRevert(t){$(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=Vt(),v=q(o),b=q(v);{var I=a=>{{let c=y(()=>g.ui_patchBlock_viewAgent_tooltip());F(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:i=>{H()&&Lt.dispatch($t(H(),{agentId:w(),...Nt(i)}))},get title(){return e(c)},children:(i,m)=>{Dt(i,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};f(b,a=>{w()&&a(I)})}var Z=u(b,2);F(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var i=qt(),m=Q(i);{var B=l=>{rt(l,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};f(m,l=>{w()||l(B)})}var C=u(m,2),s=S(C,!0),d=u(C,2),r=q(d),R=S(r),N=u(r,2),G=S(N);W(d);var K=u(d,2);{var tt=l=>{var j=jt(),_t=S(j,!0);D(gt=>x(_t,gt),[()=>g.ui_patchBlock_applied_label()]),p(l,j)};f(K,l=>{e(J)&&l(tt)})}D(()=>{x(s,M()),x(R,`+${e(X).addCount??""}`),x(G,`-${e(X).removeCount??""}`)}),p(a,i)},$$slots:{default:!0}});var ut=u(Z,2);{var ft=a=>{F(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:it,get disabled(){return P()},children:(c,i)=>{var m=Ft(),B=Q(m);{var C=r=>{Bt(r,{size:12})},s=r=>{rt(r,{get icon(){return e(T).icon},size:"xs"})};f(B,r=>{P()?r(C):e(T).icon&&r(s,1)})}var d=u(B);D(()=>x(d,` ${e(T).label??""}`)),p(c,m)},$$slots:{default:!0}})};f(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=u(v,2);{var mt=a=>{var c=Ot(),i=q(c);{var m=s=>{var d=Mt();Ct(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,N)=>{{let G=y(()=>e(N)===e(E)?"default":"ghost-light");F(r,{get variant(){return e(G)},size:"sm",class:"type-caption",onclick:()=>et(E,e(N),!0),children:(K,tt)=>{wt();var l=It();D(j=>x(l,j),[()=>e(R).filePath.split("/").pop()]),p(K,l)},$$slots:{default:!0}})}}),W(d),p(s,d)};f(i,s=>{A().length>1&&s(m)})}var B=u(i,2);{var C=s=>{Ht(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};f(B,s=>{e(z)&&s(C)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),p(a,c)};f(vt,a=>{e(V)&&a(mt)})}W(o),p(t,o)},pt=t=>{var o=Et(),v=S(o,!0);D(b=>x(v,b),[()=>g.ui_patchBlock_invalid_error()]),p(t,o)};f(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return p(U,Y),At(lt)}export{Jt as P};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as e}from"./
|
|
1
|
+
import{p as e}from"./B26ZHg3s.js";const t=[{id:"editorial-card",title:"Editorial card states",states:["default","group","inline","outlined","separated","selected","fluid-hover","header","flush-content","interactive","pressed","empty","long-content","compact","zoom-200","inert","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];e({id:"card",source:"src/lib/components/ui/card/card.svelte",publicImport:"$lib/components/ui/card",legacyImports:[],exports:["Action","CARD_CONTENT_INSET_CLASS","CARD_ROW_GUTTER_CLASS","Card","CardAction","CardContent","CardDescription","CardFooter","CardGroup","CardHeader","CardTitle","Content","Description","Footer","Group","Header","Root","Title","cardMetadata"],usage:`<script lang="ts">
|
|
2
2
|
import * as Card from '$lib/components/ui/card';
|
|
3
3
|
<\/script>
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var dt=Object.defineProperty;var qe=n=>{throw TypeError(n)};var ct=(n,e,r)=>e in n?dt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var y=(n,e,r)=>ct(n,typeof e!="symbol"?e+"":e,r),ut=(n,e,r)=>e.has(n)||qe("Cannot "+r);var l=(n,e,r)=>(ut(n,e,"read from private field"),r?r.call(n):e.get(n)),O=(n,e,r)=>e.has(n)?qe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r);import{t as W,bo as i,bw as X,b as j,bp as L,br as Ne}from"./CLAmm_T1.js";import{bV as M,aD as c,bH as b,c9 as N,bo as be,bs as q,a7 as A,ay as x,W as C,bn as H,aA as a,a5 as Ce,bf as Q,bA as Oe,aB as Y,bS as He,aG as Ye,br as ht,ca as pt,bI as Ze}from"./3SdAC2_C.js";import{i as z}from"./BFgvMDua.js";import{t as E}from"./BwNrQXlF.js";import{b as Pe}from"./CcJmuwXr.js";import{h as gt,a2 as Qe,av as _,a$ as Te,aU as ft,aF as vt,an as _e,ay as mt,aG as $e,aq as Ie,a6 as yt,l as bt,az as R,aQ as B,aS as k,I as Ct,n as Ot,j as Pt,ad as _t,a9 as Ve}from"./nxtepGjE.js";import{c as wt}from"./BwH4Bvte.js";import{s as St}from"./DaWmj23r.js";import{f as xt,k as Nt}from"./CfNIzRu8.js";const It=mt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),U=new gt("Dialog.Root | AlertDialog.Root");var te,re,ne,oe,se,ie,ae,le,de,ce,ue;const Be=class Be{constructor(e,r){y(this,"opts");O(this,te,M(null));O(this,re,M(null));O(this,ne,M(null));O(this,oe,M(null));O(this,se,M(void 0));O(this,ie,M(void 0));O(this,ae,M(void 0));O(this,le,M(void 0));O(this,de,M(null));O(this,ce,M(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>It.getAttr(e,this.opts.variant.current));O(this,ue,N(()=>({"data-state":vt(this.opts.open.current)})));this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qe({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qe({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Te(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const r=U.getOr(null);return U.set(new Be(e,r))}get triggerNode(){return c(l(this,te))}set triggerNode(e){b(l(this,te),e,!0)}get contentNode(){return c(l(this,re))}set contentNode(e){b(l(this,re),e,!0)}get overlayNode(){return c(l(this,ne))}set overlayNode(e){b(l(this,ne),e,!0)}get descriptionNode(){return c(l(this,oe))}set descriptionNode(e){b(l(this,oe),e,!0)}get contentId(){return c(l(this,se))}set contentId(e){b(l(this,se),e,!0)}get titleId(){return c(l(this,ie))}set titleId(e){b(l(this,ie),e,!0)}get triggerId(){return c(l(this,ae))}set triggerId(e){b(l(this,ae),e,!0)}get descriptionId(){return c(l(this,le))}set descriptionId(e){b(l(this,le),e,!0)}get cancelNode(){return c(l(this,de))}set cancelNode(e){b(l(this,de),e,!0)}get nestedOpenCount(){return c(l(this,ce))}set nestedOpenCount(e){b(l(this,ce),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return c(l(this,ue))}set sharedProps(e){b(l(this,ue),e)}};te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap;let Fe=Be;var he;const Ke=class Ke{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,he,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Ke(e,U.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===yt||e.key===bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(l(this,he))}set props(e){b(l(this,he),e)}};he=new WeakMap;let ke=Ke;var pe;const ze=class ze{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,pe,N(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=_e(this.opts.ref),Te.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}static create(e){return new ze(e,U.get())}get props(){return c(l(this,pe))}set props(e){b(l(this,pe),e)}};pe=new WeakMap;let Ee=ze;var ge;const Ge=class Ge{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,ge,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=_e(this.opts.ref,s=>{this.root.descriptionNode=s}),Te.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}static create(e){return new Ge(e,U.get())}get props(){return c(l(this,ge))}set props(e){b(l(this,ge),e)}};ge=new WeakMap;let De=Ge;var fe,ve;const Ue=class Ue{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,fe,N(()=>({open:this.root.opts.open.current})));O(this,ve,N(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}static create(e){return new Ue(e,U.get())}get snippetProps(){return c(l(this,fe))}set snippetProps(e){b(l(this,fe),e)}get props(){return c(l(this,ve))}set props(e){b(l(this,ve),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};fe=new WeakMap,ve=new WeakMap;let Me=Ue;var me,ye;const We=class We{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,me,N(()=>({open:this.root.opts.open.current})));O(this,ye,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>this.root.overlayNode=s)}static create(e){return new We(e,U.get())}get snippetProps(){return c(l(this,me))}set snippetProps(e){b(l(this,me),e)}get props(){return c(l(this,ye))}set props(e){b(l(this,ye),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};me=new WeakMap,ye=new WeakMap;let Re=We;var At=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Ft=Y("<div><!></div>");function kt(n,e){const r=be();if(new.target)return W({component:kt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"ref",15,null),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"level",7,2),w=L(e,At);const p=Ee.create({id:_(()=>s()),level:_(()=>m()),ref:_(()=>g(),t=>g(t))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(t=R(r)){s(t),a()},get ref(){return g()},set ref(t=null){g(t),a()},get child(){return u()},set child(t){u(t),a()},get children(){return v()},set children(t){v(t),a()},get level(){return m()},set level(t=2){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,u,()=>({props:c(f)})),C(t,h)},o=t=>{var h=Ft();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>v()??Q),Oe(h),C(t,h)};z(F,t=>{u()?t(I):t(o,-1)})}return C(n,P),H(S)}var Et=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Dt=Y("<div><!></div>");function Mt(n,e){const r=be();if(new.target)return W({component:Mt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"forceMount",7,!1),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"ref",15,null),w=L(e,Et);const p=Re.create({id:_(()=>s()),ref:_(()=>m(),o=>m(o))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(o=R(r)){s(o),a()},get forceMount(){return g()},set forceMount(o=!1){g(o),a()},get child(){return u()},set child(o){u(o),a()},get children(){return v()},set children(o){v(o),a()},get ref(){return m()},set ref(o=null){m(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},P=A(),F=x(P);{var I=o=>{var t=A(),h=x(t);{var D=K=>{var T=A(),d=x(T);{let V=N(()=>({props:B(c(f)),...p.snippetProps}));E(d,u,()=>c(V))}C(K,T)},we=K=>{var T=Dt();Pe(T,V=>({...V}),[()=>B(c(f))]);var d=Ce(T);E(d,()=>v()??Q,()=>p.snippetProps),Oe(T),C(K,T)};z(h,K=>{u()?K(D):K(we,-1)})}C(o,t)};z(F,o=>{(p.shouldRender||g())&&o(I)})}return C(n,P),H(S)}var Rt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Tt=Y("<div><!></div>");function Bt(n,e){const r=be();if(new.target)return W({component:Bt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=L(e,Rt);const w=De.create({id:_(()=>s()),ref:_(()=>v(),o=>v(o))}),p=N(()=>B(m,w.props));var f={get id(){return s()},set id(o=R(r)){s(o),a()},get children(){return g()},set children(o){g(o),a()},get child(){return u()},set child(o){u(o),a()},get ref(){return v()},set ref(o=null){v(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},S=A(),P=x(S);{var F=o=>{var t=A(),h=x(t);E(h,u,()=>({props:c(p)})),C(o,t)},I=o=>{var t=Tt();Pe(t,()=>({...c(p)}));var h=Ce(t);E(h,()=>g()??Q),Oe(t),C(o,t)};z(P,o=>{u()?o(F):o(I,-1)})}return C(n,S),H(f)}function et(n,e){if(new.target)return W({component:et,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"onOpenChange",7,k),g=i(e,"onOpenChangeComplete",7,k),u=i(e,"children",7);Fe.create({variant:_(()=>"dialog"),open:_(()=>r(),p=>{r(p),s()(p)}),onOpenChangeComplete:_(()=>g())});var v={get open(){return r()},set open(p=!1){r(p),a()},get onOpenChange(){return s()},set onOpenChange(p=k){s(p),a()},get onOpenChangeComplete(){return g()},set onOpenChangeComplete(p=k){g(p),a()},get children(){return u()},set children(p){u(p),a()},$set:X,$on:(p,f)=>j(e,p,f)},m=A(),w=x(m);return E(w,()=>u()??Q),C(n,m),H(v)}var Kt=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),zt=Y("<button><!></button>");function Gt(n,e){const r=be();if(new.target)return W({component:Gt,...n});q(e,!0);let s=i(e,"children",7),g=i(e,"child",7),u=i(e,"id",23,()=>R(r)),v=i(e,"ref",15,null),m=i(e,"disabled",7,!1),w=L(e,Kt);const p=ke.create({variant:_(()=>"close"),id:_(()=>u()),ref:_(()=>v(),t=>v(t)),disabled:_(()=>!!m())}),f=N(()=>B(w,p.props));var S={get children(){return s()},set children(t){s(t),a()},get child(){return g()},set child(t){g(t),a()},get id(){return u()},set id(t=R(r)){u(t),a()},get ref(){return v()},set ref(t=null){v(t),a()},get disabled(){return m()},set disabled(t=!1){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,g,()=>({props:c(f)})),C(t,h)},o=t=>{var h=zt();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>s()??Q),Oe(h),C(t,h)};z(F,t=>{g()?t(I):t(o,-1)})}return C(n,P),H(S)}var Ut=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Wt=Y("<!> <!>",1),Xt=Y("<!> <div><!></div>",1);function jt(n,e){const r=be();if(new.target)return W({component:jt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=i(e,"forceMount",7,!1),w=i(e,"onCloseAutoFocus",7,k),p=i(e,"onOpenAutoFocus",7,k),f=i(e,"onEscapeKeydown",7,k),S=i(e,"onInteractOutside",7,k),P=i(e,"trapFocus",7,!0),F=i(e,"preventScroll",7,!0),I=i(e,"restoreScrollDelay",7,null),o=L(e,Ut);const t=Me.create({id:_(()=>s()),ref:_(()=>v(),d=>v(d))}),h=N(()=>B(o,t.props));var D={get id(){return s()},set id(d=R(r)){s(d),a()},get children(){return g()},set children(d){g(d),a()},get child(){return u()},set child(d){u(d),a()},get ref(){return v()},set ref(d=null){v(d),a()},get forceMount(){return m()},set forceMount(d=!1){m(d),a()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=k){w(d),a()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(d=k){p(d),a()},get onEscapeKeydown(){return f()},set onEscapeKeydown(d=k){f(d),a()},get onInteractOutside(){return S()},set onInteractOutside(d=k){S(d),a()},get trapFocus(){return P()},set trapFocus(d=!0){P(d),a()},get preventScroll(){return F()},set preventScroll(d=!0){F(d),a()},get restoreScrollDelay(){return I()},set restoreScrollDelay(d=null){I(d),a()},$set:X,$on:(d,V)=>j(e,d,V)},we=A(),K=x(we);{var T=d=>{Ct(d,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return P()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return w()},focusScope:(nt,ot)=>{let Xe=()=>(ot?.()).props;Ot(nt,Ne(()=>c(h),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:Se=>{f()(Se),!Se.defaultPrevented&&t.root.handleClose()},children:(Se,Lt)=>{Pt(Se,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:xe=>{S()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,Yt)=>{_t(xe,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(st,Zt)=>{var je=A(),it=x(je);{var at=J=>{var Z=Wt(),$=x(Z);{var ee=G=>{Ve(G,{get preventScroll(){return F()},get restoreScrollDelay(){return I()}})};z($,G=>{t.root.opts.open.current&&G(ee)})}var Ae=He($,2);{let G=N(()=>({props:B(c(h),Xe()),...t.snippetProps}));E(Ae,u,()=>c(G))}C(J,Z)},lt=J=>{var Z=Xt(),$=x(Z);Ve($,{get preventScroll(){return F()}});var ee=He($,2);Pe(ee,G=>({...G}),[()=>B(c(h),Xe())]);var Ae=Ce(ee);E(Ae,()=>g()??Q),Oe(ee),C(J,Z)};z(it,J=>{u()?J(at):J(lt,-1)})}C(st,je)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};z(K,d=>{(t.shouldRender||m())&&d(T)})}return C(n,we),H(D)}const tt=Symbol("overlay-open"),rt=Symbol("overlay-static"),Je={tier:"moderate",x:0,y:0,scale:1,opacity:0},Le={tier:"slow",x:0,y:8,scale:.97,opacity:0},qt={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},dr={backdrop:{enter:Je,exit:Je},dialog:{enter:Le,exit:Le},sheet(n){const e={tier:"slow",scale:1,opacity:1,...qt[n]};return{enter:e,exit:e}}};function Ht(n){Ze(tt,n)}function cr(){const n=Ye(tt);if(!n)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return n}function Qt(n){Ze(rt,n)}function ur(){return Ye(rt)??(()=>!1)}function hr(n){let e=M(ht(n()));return pt(()=>{if(n()){b(e,!0);return}if(!c(e))return;const r=window.setTimeout(()=>b(e,!1),xt(Nt.slow));return()=>window.clearTimeout(r)}),{get mounted(){return c(e)},finishExit(){n()||b(e,!1)}}}var Vt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Jt(n,e){if(new.target)return W({component:Jt,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"staticPosition",7,!1),g=i(e,"children",7),u=i(e,"onOpenChange",7),v=L(e,Vt);Ht(()=>r()),Qt(()=>s()),St(()=>{r(!1),u()?.(!1)});var m={get open(){return r()},set open(f=!1){r(f),a()},get staticPosition(){return s()},set staticPosition(f=!1){s(f),a()},get children(){return g()},set children(f){g(f),a()},get onOpenChange(){return u()},set onOpenChange(f){u(f),a()},$set:X,$on:(f,S)=>j(e,f,S)},w=A(),p=x(w);return wt(p,()=>et,(f,S)=>{S(f,Ne({get onOpenChange(){return u()}},()=>v,{get open(){return r()},set open(P){r(P)},children:(P,F)=>{var I=A(),o=x(I);E(o,()=>g()??Q),C(P,I)},$$slots:{default:!0}}))}),C(n,w),H(m)}export{Gt as D,Jt as O,jt as a,Bt as b,Mt as c,kt as d,hr as e,ur as f,dr as o,cr as u};
|
|
1
|
+
var dt=Object.defineProperty;var qe=n=>{throw TypeError(n)};var ct=(n,e,r)=>e in n?dt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var y=(n,e,r)=>ct(n,typeof e!="symbol"?e+"":e,r),ut=(n,e,r)=>e.has(n)||qe("Cannot "+r);var l=(n,e,r)=>(ut(n,e,"read from private field"),r?r.call(n):e.get(n)),O=(n,e,r)=>e.has(n)?qe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r);import{t as W,bo as i,bw as X,b as j,bp as L,br as Ne}from"./CtfEuoOH.js";import{bV as M,aD as c,bH as b,c9 as N,bo as be,bs as q,a7 as A,ay as x,W as C,bn as H,aA as a,a5 as Ce,bf as Q,bA as Oe,aB as Y,bS as He,aG as Ye,br as ht,ca as pt,bI as Ze}from"./3SdAC2_C.js";import{i as z}from"./DynUeYUu.js";import{t as E}from"./CGmYraIa.js";import{b as Pe}from"./B26ZHg3s.js";import{h as gt,a2 as Qe,av as _,a$ as Te,aU as ft,aF as vt,an as _e,ay as mt,aG as $e,aq as Ie,a6 as yt,l as bt,az as R,aQ as B,aS as k,I as Ct,n as Ot,j as Pt,ad as _t,a9 as Ve}from"./D9R5fzn8.js";import{c as wt}from"./BZ27qIg1.js";import{s as St}from"./DcraaizU.js";import{f as xt,k as Nt}from"./Bx1P9uW7.js";const It=mt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),U=new gt("Dialog.Root | AlertDialog.Root");var te,re,ne,oe,se,ie,ae,le,de,ce,ue;const Be=class Be{constructor(e,r){y(this,"opts");O(this,te,M(null));O(this,re,M(null));O(this,ne,M(null));O(this,oe,M(null));O(this,se,M(void 0));O(this,ie,M(void 0));O(this,ae,M(void 0));O(this,le,M(void 0));O(this,de,M(null));O(this,ce,M(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>It.getAttr(e,this.opts.variant.current));O(this,ue,N(()=>({"data-state":vt(this.opts.open.current)})));this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qe({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qe({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Te(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const r=U.getOr(null);return U.set(new Be(e,r))}get triggerNode(){return c(l(this,te))}set triggerNode(e){b(l(this,te),e,!0)}get contentNode(){return c(l(this,re))}set contentNode(e){b(l(this,re),e,!0)}get overlayNode(){return c(l(this,ne))}set overlayNode(e){b(l(this,ne),e,!0)}get descriptionNode(){return c(l(this,oe))}set descriptionNode(e){b(l(this,oe),e,!0)}get contentId(){return c(l(this,se))}set contentId(e){b(l(this,se),e,!0)}get titleId(){return c(l(this,ie))}set titleId(e){b(l(this,ie),e,!0)}get triggerId(){return c(l(this,ae))}set triggerId(e){b(l(this,ae),e,!0)}get descriptionId(){return c(l(this,le))}set descriptionId(e){b(l(this,le),e,!0)}get cancelNode(){return c(l(this,de))}set cancelNode(e){b(l(this,de),e,!0)}get nestedOpenCount(){return c(l(this,ce))}set nestedOpenCount(e){b(l(this,ce),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return c(l(this,ue))}set sharedProps(e){b(l(this,ue),e)}};te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap;let Fe=Be;var he;const Ke=class Ke{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,he,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Ke(e,U.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===yt||e.key===bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(l(this,he))}set props(e){b(l(this,he),e)}};he=new WeakMap;let ke=Ke;var pe;const ze=class ze{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,pe,N(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=_e(this.opts.ref),Te.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}static create(e){return new ze(e,U.get())}get props(){return c(l(this,pe))}set props(e){b(l(this,pe),e)}};pe=new WeakMap;let Ee=ze;var ge;const Ge=class Ge{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,ge,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=_e(this.opts.ref,s=>{this.root.descriptionNode=s}),Te.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}static create(e){return new Ge(e,U.get())}get props(){return c(l(this,ge))}set props(e){b(l(this,ge),e)}};ge=new WeakMap;let De=Ge;var fe,ve;const Ue=class Ue{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,fe,N(()=>({open:this.root.opts.open.current})));O(this,ve,N(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}static create(e){return new Ue(e,U.get())}get snippetProps(){return c(l(this,fe))}set snippetProps(e){b(l(this,fe),e)}get props(){return c(l(this,ve))}set props(e){b(l(this,ve),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};fe=new WeakMap,ve=new WeakMap;let Me=Ue;var me,ye;const We=class We{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,me,N(()=>({open:this.root.opts.open.current})));O(this,ye,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>this.root.overlayNode=s)}static create(e){return new We(e,U.get())}get snippetProps(){return c(l(this,me))}set snippetProps(e){b(l(this,me),e)}get props(){return c(l(this,ye))}set props(e){b(l(this,ye),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};me=new WeakMap,ye=new WeakMap;let Re=We;var At=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Ft=Y("<div><!></div>");function kt(n,e){const r=be();if(new.target)return W({component:kt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"ref",15,null),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"level",7,2),w=L(e,At);const p=Ee.create({id:_(()=>s()),level:_(()=>m()),ref:_(()=>g(),t=>g(t))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(t=R(r)){s(t),a()},get ref(){return g()},set ref(t=null){g(t),a()},get child(){return u()},set child(t){u(t),a()},get children(){return v()},set children(t){v(t),a()},get level(){return m()},set level(t=2){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,u,()=>({props:c(f)})),C(t,h)},o=t=>{var h=Ft();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>v()??Q),Oe(h),C(t,h)};z(F,t=>{u()?t(I):t(o,-1)})}return C(n,P),H(S)}var Et=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Dt=Y("<div><!></div>");function Mt(n,e){const r=be();if(new.target)return W({component:Mt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"forceMount",7,!1),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"ref",15,null),w=L(e,Et);const p=Re.create({id:_(()=>s()),ref:_(()=>m(),o=>m(o))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(o=R(r)){s(o),a()},get forceMount(){return g()},set forceMount(o=!1){g(o),a()},get child(){return u()},set child(o){u(o),a()},get children(){return v()},set children(o){v(o),a()},get ref(){return m()},set ref(o=null){m(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},P=A(),F=x(P);{var I=o=>{var t=A(),h=x(t);{var D=K=>{var T=A(),d=x(T);{let V=N(()=>({props:B(c(f)),...p.snippetProps}));E(d,u,()=>c(V))}C(K,T)},we=K=>{var T=Dt();Pe(T,V=>({...V}),[()=>B(c(f))]);var d=Ce(T);E(d,()=>v()??Q,()=>p.snippetProps),Oe(T),C(K,T)};z(h,K=>{u()?K(D):K(we,-1)})}C(o,t)};z(F,o=>{(p.shouldRender||g())&&o(I)})}return C(n,P),H(S)}var Rt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Tt=Y("<div><!></div>");function Bt(n,e){const r=be();if(new.target)return W({component:Bt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=L(e,Rt);const w=De.create({id:_(()=>s()),ref:_(()=>v(),o=>v(o))}),p=N(()=>B(m,w.props));var f={get id(){return s()},set id(o=R(r)){s(o),a()},get children(){return g()},set children(o){g(o),a()},get child(){return u()},set child(o){u(o),a()},get ref(){return v()},set ref(o=null){v(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},S=A(),P=x(S);{var F=o=>{var t=A(),h=x(t);E(h,u,()=>({props:c(p)})),C(o,t)},I=o=>{var t=Tt();Pe(t,()=>({...c(p)}));var h=Ce(t);E(h,()=>g()??Q),Oe(t),C(o,t)};z(P,o=>{u()?o(F):o(I,-1)})}return C(n,S),H(f)}function et(n,e){if(new.target)return W({component:et,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"onOpenChange",7,k),g=i(e,"onOpenChangeComplete",7,k),u=i(e,"children",7);Fe.create({variant:_(()=>"dialog"),open:_(()=>r(),p=>{r(p),s()(p)}),onOpenChangeComplete:_(()=>g())});var v={get open(){return r()},set open(p=!1){r(p),a()},get onOpenChange(){return s()},set onOpenChange(p=k){s(p),a()},get onOpenChangeComplete(){return g()},set onOpenChangeComplete(p=k){g(p),a()},get children(){return u()},set children(p){u(p),a()},$set:X,$on:(p,f)=>j(e,p,f)},m=A(),w=x(m);return E(w,()=>u()??Q),C(n,m),H(v)}var Kt=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),zt=Y("<button><!></button>");function Gt(n,e){const r=be();if(new.target)return W({component:Gt,...n});q(e,!0);let s=i(e,"children",7),g=i(e,"child",7),u=i(e,"id",23,()=>R(r)),v=i(e,"ref",15,null),m=i(e,"disabled",7,!1),w=L(e,Kt);const p=ke.create({variant:_(()=>"close"),id:_(()=>u()),ref:_(()=>v(),t=>v(t)),disabled:_(()=>!!m())}),f=N(()=>B(w,p.props));var S={get children(){return s()},set children(t){s(t),a()},get child(){return g()},set child(t){g(t),a()},get id(){return u()},set id(t=R(r)){u(t),a()},get ref(){return v()},set ref(t=null){v(t),a()},get disabled(){return m()},set disabled(t=!1){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,g,()=>({props:c(f)})),C(t,h)},o=t=>{var h=zt();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>s()??Q),Oe(h),C(t,h)};z(F,t=>{g()?t(I):t(o,-1)})}return C(n,P),H(S)}var Ut=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Wt=Y("<!> <!>",1),Xt=Y("<!> <div><!></div>",1);function jt(n,e){const r=be();if(new.target)return W({component:jt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=i(e,"forceMount",7,!1),w=i(e,"onCloseAutoFocus",7,k),p=i(e,"onOpenAutoFocus",7,k),f=i(e,"onEscapeKeydown",7,k),S=i(e,"onInteractOutside",7,k),P=i(e,"trapFocus",7,!0),F=i(e,"preventScroll",7,!0),I=i(e,"restoreScrollDelay",7,null),o=L(e,Ut);const t=Me.create({id:_(()=>s()),ref:_(()=>v(),d=>v(d))}),h=N(()=>B(o,t.props));var D={get id(){return s()},set id(d=R(r)){s(d),a()},get children(){return g()},set children(d){g(d),a()},get child(){return u()},set child(d){u(d),a()},get ref(){return v()},set ref(d=null){v(d),a()},get forceMount(){return m()},set forceMount(d=!1){m(d),a()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=k){w(d),a()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(d=k){p(d),a()},get onEscapeKeydown(){return f()},set onEscapeKeydown(d=k){f(d),a()},get onInteractOutside(){return S()},set onInteractOutside(d=k){S(d),a()},get trapFocus(){return P()},set trapFocus(d=!0){P(d),a()},get preventScroll(){return F()},set preventScroll(d=!0){F(d),a()},get restoreScrollDelay(){return I()},set restoreScrollDelay(d=null){I(d),a()},$set:X,$on:(d,V)=>j(e,d,V)},we=A(),K=x(we);{var T=d=>{Ct(d,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return P()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return w()},focusScope:(nt,ot)=>{let Xe=()=>(ot?.()).props;Ot(nt,Ne(()=>c(h),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:Se=>{f()(Se),!Se.defaultPrevented&&t.root.handleClose()},children:(Se,Lt)=>{Pt(Se,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:xe=>{S()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,Yt)=>{_t(xe,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(st,Zt)=>{var je=A(),it=x(je);{var at=J=>{var Z=Wt(),$=x(Z);{var ee=G=>{Ve(G,{get preventScroll(){return F()},get restoreScrollDelay(){return I()}})};z($,G=>{t.root.opts.open.current&&G(ee)})}var Ae=He($,2);{let G=N(()=>({props:B(c(h),Xe()),...t.snippetProps}));E(Ae,u,()=>c(G))}C(J,Z)},lt=J=>{var Z=Xt(),$=x(Z);Ve($,{get preventScroll(){return F()}});var ee=He($,2);Pe(ee,G=>({...G}),[()=>B(c(h),Xe())]);var Ae=Ce(ee);E(Ae,()=>g()??Q),Oe(ee),C(J,Z)};z(it,J=>{u()?J(at):J(lt,-1)})}C(st,je)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};z(K,d=>{(t.shouldRender||m())&&d(T)})}return C(n,we),H(D)}const tt=Symbol("overlay-open"),rt=Symbol("overlay-static"),Je={tier:"moderate",x:0,y:0,scale:1,opacity:0},Le={tier:"slow",x:0,y:8,scale:.97,opacity:0},qt={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},dr={backdrop:{enter:Je,exit:Je},dialog:{enter:Le,exit:Le},sheet(n){const e={tier:"slow",scale:1,opacity:1,...qt[n]};return{enter:e,exit:e}}};function Ht(n){Ze(tt,n)}function cr(){const n=Ye(tt);if(!n)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return n}function Qt(n){Ze(rt,n)}function ur(){return Ye(rt)??(()=>!1)}function hr(n){let e=M(ht(n()));return pt(()=>{if(n()){b(e,!0);return}if(!c(e))return;const r=window.setTimeout(()=>b(e,!1),xt(Nt.slow));return()=>window.clearTimeout(r)}),{get mounted(){return c(e)},finishExit(){n()||b(e,!1)}}}var Vt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Jt(n,e){if(new.target)return W({component:Jt,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"staticPosition",7,!1),g=i(e,"children",7),u=i(e,"onOpenChange",7),v=L(e,Vt);Ht(()=>r()),Qt(()=>s()),St(()=>{r(!1),u()?.(!1)});var m={get open(){return r()},set open(f=!1){r(f),a()},get staticPosition(){return s()},set staticPosition(f=!1){s(f),a()},get children(){return g()},set children(f){g(f),a()},get onOpenChange(){return u()},set onOpenChange(f){u(f),a()},$set:X,$on:(f,S)=>j(e,f,S)},w=A(),p=x(w);return wt(p,()=>et,(f,S)=>{S(f,Ne({get onOpenChange(){return u()}},()=>v,{get open(){return r()},set open(P){r(P)},children:(P,F)=>{var I=A(),o=x(I);E(o,()=>g()??Q),C(P,I)},$$slots:{default:!0}}))}),C(n,w),H(m)}export{Gt as D,Jt as O,jt as a,Bt as b,Mt as c,kt as d,hr as e,ur as f,dr as o,cr as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h8 as O,gQ as U,JV as B,KJ as H,DG as V,u6 as j,v3 as q,B9 as K,Ba as N,JT as Q,JU as z,Bb as X}from"./
|
|
1
|
+
import{h8 as O,gQ as U,JV as B,KJ as H,DG as V,u6 as j,v3 as q,B9 as K,Ba as N,JT as Q,JU as z,Bb as X}from"./CiKoEJ2m.js";import{selectWorkspaceTabOrder as f,selectCurrentWorkspaceTabId as S,selectLastClosedWorkspaceTab as Y}from"./BU3y3Xes.js";import{i as Z,q as M,b as ee,j as te,l as ae}from"./BkcCJyDK.js";import{g as ne}from"./DXXFBdjF.js";import{bm as l}from"./CtfEuoOH.js";import{z as oe,S as y}from"./CT8vPg_p.js";import{B as h,S as C,Q as ce}from"./Bqd7fdCF.js";import{al as le,aj as E}from"./D5Jk5CWk.js";import{g as se}from"./rwibDzZr.js";function A(e,a){const n=f.select(e.state),o=S.select(e.state);if(!o)return null;const c=n.indexOf(o),s=c+(a==="left"?-1:1),p=n[s];return c<0||!p?null:(e.dispatch(j(o,p,a==="left"?"before":"after")),o)}function P(e){const a=S.select(e);return a&&f.select(e).includes(a)?a:null}function m(e,a,n){const o=P(e.state),c=o?`/workspace/${o}`:ne(e.state);return a!==c&&n(c),o}function ie(e,a,n,o){return e.dispatch(O(a)),m(e,n,o),a}function I(e,a){const o=a.match(/^\/workspace\/([^/]+)/)?.[1];return o?o==="new"?null:o:null}function R(e,a,n,o){if(n==="/")return D(e,a==="next"?0:"last",n,o);e.dispatch(a==="next"?Q():z());const c=S.select(e.state);if(!c)return null;const s=`/workspace/${c}`;return n!==s&&o(s),c}function re(e,a,n){const o=I(e,a);return o?ie(e,o,a,n):null}function pe(e,a,n){const o=I(e,a);if(!o)return null;const c=Z.select(e.state,o);if(!c)return null;const s=c.tabs.find(v=>v.id===c.activeTabId),p=c.tabs.length===0&&c.activeTabId===null,T=M.select(e.state,o)>1&&(p||c.tabs.length===1&&s!==void 0&&s.closable!==!1);if((!s||s.closable===!1)&&!T)return null;const g=n??se(o)?.availableCanvasWidth??void 0;return e.dispatch(U(o,void 0,g)),s?.id??c.id}function ue(e,a){const n=e.state.panelLayout.byWorkspaceId[a];return!n||n.restoreStatus==="pending"?!1:ee.select(e.state,a).length===0}function de(e,a,n){P(e.state)||e.dispatch(B(0)),m(e,a,n)}function L(e,a,{navigate:n,closeWindow:o}){return o?(o(),"window"):(m(e,a,n),null)}function be(e,a,n){const o=I(e,a);return o?pe(e,a,n.availableCanvasWidth)!==null?"panel":ue(e,o)?(e.dispatch(O(o)),f.select(e.state).length>0?(de(e,a,n.navigate),"workspace"):L(e,a,n)??"workspace"):null:f.select(e.state).length>0?null:L(e,a,n)}function fe(e,a,n){return e.dispatch(X()),m(e,a,n)}function ke(e,a,n){const o=a.match(/^\/workspace\/([^/]+)/),c=o&&o[1]!=="new"?o[1]:null,s=Y.select(e.state),p=c?ae.select(e.state,c):null;return c&&p&&(!s||p.closedAt>=s.closedAt)?p.kind==="column"?(e.dispatch(K(c)),"column"):(e.dispatch(N(c)),p.kind):s?(fe(e,a,n),"workspace"):null}function we(e,a){const n=a.match(/^\/workspace\/([^/]+)/),o=n&&n[1]!=="new"?n[1]:null;if(!o)return null;const c=q(o);return e.dispatch(c),te.select(e.state,o)}function D(e,a,n,o){const c=f.select(e.state),s=a==="last"?c.length-1:a;return s<0||s>=c.length?null:(e.dispatch(B(s)),m(e,n,o))}function We({isMac:e,register:a,store:n,getCurrentPath:o,navigate:c,openNewWorkspace:s,getRailMachineIds:p,onCreateAgent:T,onCreateNote:g,onCreateTerminal:v,onCreateBrowser:G,onWorkspaceTabMoved:W,closeWindow:F,resolveBinding:_}){const r=e?{meta:!0}:{ctrl:!0},$=oe("TOGGLE_SIDEBAR",e),k=t=>()=>t(o()),J=t=>()=>{const i=o().match(/^\/workspace\/([^/]+)/);i?.[1]&&i[1]!=="new"&&t(i[1])},u=t=>_?{binding:()=>_(t)}:{},w=t=>_?.(t)??ce(t);a({...u("global.new-space"),...r,key:"n",global:!0,description:l.workspace_shortcuts_newSpace_description(),action:s}),a({...u("panel.toggle-sidebar"),...$,global:!0,description:y.TOGGLE_SIDEBAR.label,action:()=>n.dispatch(H())}),a({...u("navigation.new-tab"),...r,key:"t",global:!0,description:l.workspace_shortcuts_newPanel_description(),action:k(t=>we(n,t))});for(const[t,i,b,d]of[["workspace.new-agent","a",l.ui_shortcuts_newAgent_label(),T],["workspace.new-note","n",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_note_label()}),g],["workspace.new-terminal","t",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_terminal_label()}),v],["workspace.new-browser","b",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_browser_label()}),G]])d&&a({...u(t),...r,key:i,alt:!0,global:!0,allowInTerminal:!0,description:b,action:J(d)});a({...u("navigation.close-tab"),...r,key:"w",global:!0,description:l.workspace_shortcuts_closePanelTab_description(),action:k(t=>be(n,t,{navigate:c,closeWindow:F}))}),a({...u("navigation.close-space-tab"),...r,key:"w",shift:!0,global:!0,description:l.workspace_shortcuts_closeSpaceTab_description(),action:k(t=>re(n,t,c))}),a({...u("navigation.reopen-tab"),...r,key:"t",shift:!0,global:!0,description:l.workspace_shortcuts_reopenClosedTabOrSpace_description(),action:k(t=>ke(n,t,c))}),a({...u("navigation.move-space-tab-left"),...r,key:"ArrowLeft",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_LEFT.label,action:()=>{const t=A(n,"left");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}}),a({...u("navigation.move-space-tab-right"),...r,key:"ArrowRight",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_RIGHT.label,action:()=>{const t=A(n,"right");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}});for(const[t,i]of[["next",!1],["previous",!0]]){a({...u(t==="next"?"global.next-space":"global.previous-space"),key:"Tab",ctrl:!0,shift:i,global:!0,description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))});const b=t==="next"?"global.next-space-alt":"global.previous-space-alt";a({...u(b),...r,key:t==="next"?"}":"{",shift:!0,global:!0,allowInTerminal:!0,preferLocal:!0,enabled:d=>!_||!h(b,d,_,e),description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))})}const x=t=>{t===1?c("/"):D(n,t===9?"last":t-2,o(),c)};for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>w("navigation.go-to-device").replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>E.select(n.state)&&!h("navigation.go-to-device",i,w,e),description:l.machineRail_nav_ariaLabel(),action:()=>{const i=p?.()??le.select(n.state).map(d=>d.id),b=i[t===9?i.length-1:t-1];b&&n.dispatch(V(b))}});for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>C["navigation.go-to-device"].replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>!E.select(n.state)&&w("navigation.go-to-tab")===C["navigation.go-to-tab"]&&!h("navigation.go-to-device",i,w,e),description:l.ui_shortcuts_goToTab_label(),action:()=>x(t)});for(let t=1;t<=9;t++)a({binding:()=>w("navigation.go-to-tab").replace(/([1-8])-9$/,String(t)),...r,alt:!0,key:String(t),global:!0,allowInTerminal:!0,enabled:i=>!h("navigation.go-to-tab",i,w,e),description:t===1?l.home_navigation_description():t===9?l.workspace_shortcuts_selectLastSpaceTab_description():l.workspace_shortcuts_selectSpaceTab_description({digit:t}),action:()=>x(t)})}export{be as c,We as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o}from"./
|
|
1
|
+
import{b as o}from"./DMudvlKI.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as r}from"./
|
|
1
|
+
import{m as r}from"./DMEIbJII.js";function u(e){const o=Math.max(0,Math.floor(e/1e3)),t=a=>r(a,{minimumIntegerDigits:2,useGrouping:!1}),s=t(o%60);return o<3600?`${r(Math.floor(o/60),{useGrouping:!1})}:${s}`:`${r(Math.floor(o/3600),{useGrouping:!1})}:${t(Math.floor(o/60)%60)}:${s}`}export{u as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as S}from"./BdWqymET.js";import{aE as l}from"./3SdAC2_C.js";import{g as c}from"./
|
|
1
|
+
import{a as S}from"./BdWqymET.js";import{aE as l}from"./3SdAC2_C.js";import{g as c}from"./BFHmbbvG.js";import{p as g}from"./C5tJUrGJ.js";import{d as I}from"./B0Z-1lwJ.js";import{dT as f}from"./iQDlfKDR.js";import{CA as u,m as y,JH as o,h7 as A,vJ as m,vK as N,vM as b}from"./CiKoEJ2m.js";import{g as W,n as h}from"./B1lpukIv.js";import{S as D,a as R,n as E}from"./qWgJ-CUF.js";import{n as O,o as v}from"./CoSEZL3s.js";const k="intent:onboarding-skip:v1";function P(e){return u.getItem(h(k,e))==="1"}function re(e){P(e)||u.setItem(h(k,e),"1")}function _(e){return e.connections?.hasReceivedList===!0&&P(W(e))}function F(e,a){return e.some(t=>t.id!==y&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function j(e,a,t=!1){return t||F(e,a)?"/":"/workspace/new"}function d(e,a){return j(f.select(e),a,_(e))}const se=Object.freeze(Object.defineProperty({__proto__:null,resolveWindowEmptyDestination:d},Symbol.toStringTag,{value:"Module"})),r=new S("WorkspaceNavigation");async function L(e){r.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=l(g).params.id;if(!t){r.error("[navigateToAgent] No workspace ID found in current page params");return}const n=new URL(window.location.href);n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","agent"),n.searchParams.set("selectedAgent",e),n.searchParams.delete("selectedTerminal"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"agent",e))}async function C(e){r.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=l(g).params.id;if(!t){r.error("[navigateToTerminal] No workspace ID found in current page params");return}const n=new URL(window.location.href),i=n.searchParams.get("drawerOpen")==="1",s=n.searchParams.get("drawerType")==="terminal";(!i||!s)&&n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","terminal"),n.searchParams.set("selectedTerminal",e),n.searchParams.delete("selectedAgent"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"terminal",e))}function $(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){r.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=l(g),n=a?.workspaceId??t.params.id;if(!n){r.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(b(n,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function M(e,a,t){r.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=l(g).params.id;if(!i){r.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(N(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function U(){r.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function K(){r.info("[closeDrawer] Closing drawer");const a=l(g).params.id;if(!a){r.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(A(a))}async function B(){r.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function H(e,a,t){r.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const n=()=>{I("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),r.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(n,s)}async function G(e){r.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],n=t==="new"?void 0:t,i=e?.workspaceId??n;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await E(a.pathname+a.search+a.hash)}function T(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(D);if(e&&e!=="/"&&!R(e))return e;const a=w();return a?`/workspace/${a.id}`:d(o.state)}async function z(){const e=T();r.info("[navigateBackFromSettings] Navigating back to:",e),await O(e)}function w(e){return f.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function J(){const e=w();if(e){r.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await v(e.id);return}const a=d(o.state);r.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function Y(e){const a=w(e);if(a){r.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await v(a.id);return}const t=d(o.state,e);r.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const ie=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:B,closeDrawer:K,findSourcePanelId:$,getSettingsPreviousPath:T,navigateAfterWorkspaceRemoval:Y,navigateBackFromSettings:z,navigateToAgent:L,navigateToFile:M,navigateToFirstWorkspace:J,navigateToNote:p,navigateToSettings:G,navigateToSpec:U,navigateToTask:H,navigateToTerminal:C},Symbol.toStringTag,{value:"Module"}));export{M as a,J as b,p as c,G as d,H as e,$ as f,d as g,ie as h,_ as i,z as n,re as r,se as w};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ni}from"./
|
|
1
|
+
import{g as Ni}from"./BQCtWEZ2.js";import{s as Ci}from"./CHUYHKuh.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./DMudvlKI.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
|
|
2
2
|
`),S("\r"),S(" "),S("\v"),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S("\u2028"),S("\u2029"),S(" "),S(" "),S(" "),S("\uFEFF")],sa=/[0-9a-fA-F]/,tt=/[0-9]/,na=/[1-9]/;class ia{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Fe(n,"global");break;case"i":Fe(n,"ignoreCase");break;case"m":Fe(n,"multiLine");break;case"u":Fe(n,"unicode");break;case"y":Fe(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}Se(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return ta()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:i,atMost:a}):t={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Se(t);break}if(!(e===!0&&t===void 0)&&Se(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Se(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[S(`
|
|
3
3
|
`),S("\r"),S("\u2028"),S("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=gt;break;case"D":e=gt,t=!0;break;case"s":e=Os;break;case"S":e=Os,t=!0;break;case"w":e=At;break;case"W":e=At,t=!0;break}if(Se(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=S("\f");break;case"n":e=S(`
|
|
4
4
|
`);break;case"r":e=S("\r");break;case"t":e=S(" ");break;case"v":e=S("\v");break}if(Se(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:S("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:S(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h}from"./
|
|
1
|
+
import{c as h}from"./DmQ5G_6J.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"./BczcQRsN.js";import{e as H,i as U,j as y,t as T,k as x}from"./BczcQRsN.js";import{l as s}from"./CyvzL5p8.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,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var F=Object.defineProperty;var $=(c,e,r)=>e in c?F(c,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[e]=r;var u=(c,e,r)=>$(c,typeof e!="symbol"?e+"":e,r);import{l as _}from"./ChTqQfQN.js";import{bm as b,_ as y}from"./CLAmm_T1.js";import{JH as k,CP as M}from"./B9vHutcJ.js";import{h as O}from"./TB9r2XJy.js";import{O as W}from"./DQw0Iiac.js";import{cP as L}from"./DBAONTYG.js";import{u as x,b6 as U,bd as j}from"./BVXKWrt4.js";import{a as z}from"./TyAuxp07.js";const N={USE_DEFAULT_CONTEXT:{id:"use-default-context",type:"command",get label(){return b.chat_mentions_useDefaultContext_label()},get description(){return b.chat_mentions_useDefaultContext_description()},icon:"🔄",uri:"devspace://command/use-default-context"},CLEAR_CONTEXT:{id:"clear-context",type:"command",get label(){return b.chat_mentions_clearContext_label()},get description(){return b.chat_mentions_clearContext_description()},icon:"🗑️",uri:"devspace://command/clear-context"}};function ke(c){return"items"in c||"subgroups"in c}function B(c){if(!c||typeof c!="object")return!1;const e=c;return!(typeof e.id!="string"||typeof e.label!="string"||typeof e.uri!="string"||typeof e.type!="string"||e.subtitle!==void 0&&typeof e.subtitle!="string"||e.description!==void 0&&typeof e.description!="string"||e.icon!==void 0&&typeof e.icon!="string"||e.score!==void 0&&typeof e.score!="number"||e.group!==void 0&&typeof e.group!="string")}function g(c,e){if(!c||!e)return null;const r=c.toLowerCase(),s=e.toLowerCase();let t=0;for(let a=0;a<s.length&&t<r.length;a++)s[a]===r[t]&&t++;if(t!==r.length)return null;const i=K(r,s);return i?{score:V(r,s,i),matches:i}:null}function K(c,e){const r=[];let s=0;for(let t=0;t<c.length;t++){const i=c[t];let n=!1;for(let a=s;a<e.length;a++)if(e[a]===i){r.push(a),s=a+1,n=!0;break}if(!n)return null}return r}function V(c,e,r){let s=0;s+=1;let t=0;for(let l=1;l<r.length;l++)r[l]===r[l-1]+1&&(t+=.1);s+=t;let i=0;for(const l of r)(l===0||J(e,l))&&(i+=.15);s+=i,r[0]===0&&(s+=.2);const a=(r[r.length-1]-r[0])/e.length*.3;return s-=a,Math.min(s/2.5,1)}function J(c,e){if(e===0)return!0;const r=c[e],s=c[e-1];return r===r.toUpperCase()&&s===s.toLowerCase()||!/[a-z0-9]/i.test(s)}function H(c,e){if(!c||!e)return null;if(!c.includes("/"))return g(c,e);const r=c.split("/").filter(n=>n.length>0),s=e.split("/").filter(n=>n.length>0);if(r.length===0||s.length===0)return null;const t=G(r,s);return t?{score:X(r,s,t),matches:[]}:null}function G(c,e){const r=[];let s=0;for(let t=0;t<c.length;t++){const i=c[t];let n=!1;const a=t===c.length-1;for(let o=s;o<e.length;o++){const l=e[o];if(g(i,l)){r.push(o),s=o+1,n=!0;break}if(a){const p=l.split(".")[0],m=l.includes(".")?l.split(".").pop():"";if(m&&g(i,m)){r.push(o),s=o+1,n=!0;break}if(p&&g(i,p)){r.push(o),s=o+1,n=!0;break}}}if(!n)return null}return r}function X(c,e,r){let s=0;s+=1,s+=r.length*.2;let t=0;for(let n=1;n<r.length;n++)r[n]===r[n-1]+1&&(t+=.15);s+=t,r.length>0&&r[r.length-1]===e.length-1&&(s+=.3);for(let n=0;n<c.length&&n<r.length;n++){const a=c[n],o=e[r[n]];a.toLowerCase()===o.toLowerCase()&&(s+=.2)}return Math.min(s/3,1)}function R(c,e,r){return JSON.stringify({query:c,workspaceId:r.workspaceId,repoPath:r.repoPath,currentFile:r.currentFile,currentNote:r.currentNote,providers:e.map(s=>[s.id,s.getCacheKey?.(r)])})}const D="*",Ce=["member","note","agent","file","folder","script","terminal",D,"specialist"];function Q(c,e){if(e.length===0)return[...c].sort((t,i)=>(i.score??0)-(t.score??0));const r=new Map(e.map((t,i)=>[t,i])),s=r.get(D)??e.length;return c.map(t=>({candidate:t,rank:r.get(t.type)??s})).sort((t,i)=>t.rank-i.rank||(i.candidate.score??0)-(t.candidate.score??0)).map(({candidate:t})=>t)}function Y(c,e){const r=new Map;return c.filter(s=>{const t=r.get(s.type)??0;return r.set(s.type,t+1),t<e})}class Ie{constructor(e={}){u(this,"searchDebounceTimer",null);u(this,"currentAbortController",null);u(this,"cache",new Map);u(this,"config");u(this,"isSearching",!1);this.config={debounceMs:e.debounceMs??100,maxResults:e.maxResults??50,cacheMaxAge:e.cacheMaxAge??3e4,enableSemantic:e.enableSemantic??!1,enableLivePreview:e.enableLivePreview??!0,enableCollaboration:e.enableCollaboration??!1,typeOrder:e.typeOrder??[],maxResultsPerKind:e.maxResultsPerKind??20}}async search(e,r,s){this.cancelPendingSearch();const t=R(e,r,s),i=this.cache.get(t);if(i&&!this.isCacheExpired(i))return _.debug("[SearchService] Returning cached results for:",e),i.results;const n=new AbortController;this.currentAbortController=n;const a=n.signal;return new Promise((o,l)=>{this.isSearching=!0;let p=!1;const m=()=>{a.removeEventListener("abort",v),this.currentAbortController===n&&(this.currentAbortController=null,this.searchDebounceTimer=null,this.isSearching=!1)},w=f=>{p||(p=!0,m(),o(f))},d=f=>{p||(p=!0,m(),l(f))},v=()=>d(new DOMException("Search cancelled","AbortError"));a.addEventListener("abort",v,{once:!0});const h=async()=>{try{if(a.aborted){d(new DOMException("Search cancelled","AbortError"));return}_.debug("[SearchService] Searching with providers:",r.map(C=>C.id));const f=R(e,r,s),P=await Promise.all(r.map(C=>this.searchWithProvider(C,e,s,a)));if(a.aborted)return;if(f!==R(e,r,s)){w([]);return}const S=this.combineResults(P.flat()).filter(C=>B(C)),E=this.applyFuzzyMatching(e,S),A=Q(E,this.config.typeOrder),T=this.config.typeOrder.length>0?Y(A,this.config.maxResultsPerKind):A.slice(0,this.config.maxResults);this.cache.set(f,{results:T,timestamp:Date.now()}),_.debug(`[SearchService] Found ${T.length} results`),w(T)}catch(f){a.aborted?d(new DOMException("Search cancelled","AbortError")):(_.error("[SearchService] Search error:",f),d(f instanceof Error?f:new Error(String(f))))}};e?this.searchDebounceTimer=setTimeout(h,this.config.debounceMs):h()})}async searchWithProvider(e,r,s,t){try{const i={...s,signal:t},n=await e.search(r,i),a=e.scoreRelevance?.bind(e);return a?n.map(o=>({...o,score:a(o,s)})):n}catch(i){return t.aborted||_.error(`[SearchService] Provider ${e.id} search failed:`,i),[]}}combineResults(e){const r=new Set,s=[];for(const t of e){const i=`${t.type}:${t.uri}`;r.has(i)||(r.add(i),s.push(t))}return s}applyFuzzyMatching(e,r){if(!e||e.length===0)return r;const t=r.map(i=>{let n=0;const a=i.meta?.path||i.meta?.fullPath||(i.subtitle?`${i.subtitle}/${i.label}`:i.label);if(a){const l=H(e,a);l&&(n=Math.max(n,l.score*1.8))}const o=g(e,i.label);if(o&&(n=Math.max(n,o.score*1.5)),i.subtitle){const l=g(e,i.subtitle);l&&(n=Math.max(n,l.score))}if(i.description){const l=g(e,i.description);l&&(n=Math.max(n,l.score*.5))}return{...i,score:n>0?n:i.score??0}}).filter(i=>i.score>0);return t.length>0?t:r}cancelPendingSearch(){this.searchDebounceTimer&&(clearTimeout(this.searchDebounceTimer),this.searchDebounceTimer=null),this.currentAbortController&&(this.currentAbortController.abort(),this.currentAbortController=null)}isCacheExpired(e){return Date.now()-e.timestamp>this.config.cacheMaxAge}clearCache(){this.cache.clear()}isLoading(){return this.isSearching}destroy(){this.cancelPendingSearch(),this.clearCache()}}class Z{constructor(){u(this,"id","file");u(this,"triggers",["@file","@f"]);u(this,"default",!0);u(this,"supportsRanges",!0);u(this,"supportsLivePreview",!0);u(this,"recentFiles",new Set);u(this,"fileIconMap",{ts:"📘",tsx:"⚛️",js:"📜",jsx:"⚛️",svelte:"🔥",vue:"💚",py:"🐍",rs:"🦀",go:"🐹",java:"☕",cpp:"⚙️",c:"⚙️",h:"📎",md:"📝",json:"📋",yaml:"📋",yml:"📋",toml:"📋",xml:"📋",html:"🌐",css:"🎨",scss:"🎨",sass:"🎨",less:"🎨",sql:"🗃️",sh:"🖥️",bash:"🖥️",zsh:"🖥️",fish:"🖥️",dockerfile:"🐳",docker:"🐳",gitignore:"🚫",env:"🔐",lock:"🔒",test:"🧪",spec:"🧪"})}async search(e,r){_.debug("[FileProvider] Searching for:",{query:e,context:{workspaceId:r.workspaceId}});const s=r.workspaceId;if(!s)return[];try{const t=await O("search.fileNames",{workspaceId:s,pattern:e||"",limit:10}),n=(Array.isArray(t?.files)?t.files:[]).map(a=>{const o=a.split("/").pop()||a,l=o.split(".").pop()||"";return{id:`file-${a}`,label:o,type:"file",uri:`file:${a}`,description:a,subtitle:a,score:.5,meta:{path:a,fullPath:a,relativePath:a,extension:l,language:this.getLanguageFromExtension(l)}}});return this.deduplicateAndDistinguish(n)}catch(t){return _.error("[FileProvider] Search failed:",t),[]}}async searchRecent(e,r){if(!r.recentFiles||r.recentFiles.length===0)return[];const s=await Promise.all(r.recentFiles.filter(t=>e?g(e,t)!==null:!0).slice(0,3).map(t=>{const i=t.split("/").pop()||t,n=i.split(".").pop()||"";return this.fileToCandidate({path:t,name:i,extension:n})}));return s.forEach(t=>{this.recentFiles.add(t.uri)}),s}async searchContextual(e,r){return r.currentFile?[]:[]}async fileToCandidate(e){const r=this.getFileIcon(e.extension),s=e.path,t=this.formatPath(s);return{id:`file-${e.path}`,type:"file",label:e.name,subtitle:t,description:s,icon:r,uri:`devspace://file/${encodeURIComponent(e.path)}`,meta:{path:s,fullPath:e.path,lastModified:e.lastModified,size:e.size,language:e.language||this.getLanguageFromExtension(e.extension)}}}combineResults(...e){const r=new Set,s=[];for(const t of e)for(const i of t)r.has(i.uri)||(r.add(i.uri),s.push(i));return this.deduplicateAndDistinguish(s)}deduplicateAndDistinguish(e){const r=new Map;for(const t of e){const i=t.label;let n=r.get(i);n||(n=[],r.set(i,n)),n.push(t)}const s=[];for(const[t,i]of r.entries())if(i.length===1)s.push(i[0]);else{const n=this.distinguishDuplicates(i);s.push(...n)}return s}distinguishDuplicates(e){const r=e.map(t=>t.description||t.meta?.path||"");return e.map((t,i)=>{const n=r[i],a=r.filter((p,m)=>m!==i),o=n.split("/");let l="";for(let p=o.length;p>0;p--){const m=o.slice(-p).join("/");if(!a.some(d=>d.split("/").slice(-p).join("/")===m)||p===1){l=m;break}}return{...t,subtitle:l}})}groupResults(e){const r={recent:[],relevant:[],other:[]};for(const t of e)this.recentFiles.has(t.uri)?r.recent.push(t):(t.score??0)>.7?r.relevant.push(t):r.other.push(t);const s=[];return r.recent.length>0&&s.push(...r.recent.slice(0,3).map(t=>({...t,group:b.chat_mentions_recentFiles_group()}))),r.relevant.length>0&&s.push(...r.relevant.slice(0,5).map(t=>({...t,group:b.chat_mentions_mostRelevant_group()}))),r.other.length>0&&s.push(...r.other.slice(0,10).map(t=>({...t,group:b.chat_mentions_otherFiles_group()}))),s}scoreRelevance(e,r){let s=.5;if(this.recentFiles.has(e.uri)&&(s+=.2),r.currentFile&&e.meta?.path){const t=r.currentFile.substring(0,r.currentFile.lastIndexOf("/")),i=e.meta.path.substring(0,e.meta.path.lastIndexOf("/"));t===i&&(s+=.15)}return r.imports?.includes(e.meta?.path||"")&&(s+=.25),r.currentFile?.includes(".test.")&&e.meta?.path?.includes(".test.")&&(s+=.1),Math.min(s,1)}getGroups(){return[{id:"files-recent",label:b.chat_mentions_recentFiles_group(),icon:"🕐"},{id:"files-all",label:b.chat_mentions_allFiles_group(),icon:"📁"},{id:"files-tests",label:b.chat_mentions_testFiles_group(),icon:"🧪"}]}getFileIcon(e){return this.fileIconMap[e.toLowerCase()]||"📄"}formatPath(e){if(e.length>40){const r=e.split("/");if(r.length>2)return`.../${r.slice(-2).join("/")}`}return e}getLanguageFromExtension(e){return{ts:"typescript",tsx:"typescriptreact",js:"javascript",jsx:"javascriptreact",py:"python",rs:"rust",go:"go",java:"java",cpp:"cpp",c:"c",svelte:"svelte",vue:"vue",md:"markdown",json:"json",yaml:"yaml",yml:"yaml",html:"html",css:"css",scss:"scss",sql:"sql",sh:"shellscript"}[e.toLowerCase()]||"plaintext"}}class q{constructor(){u(this,"id","member")}getCacheKey(e){const r=k.state;return JSON.stringify({backendId:W.select(r),ownPrincipalId:r.presence.ownPrincipalId,members:e.workspaceId?L.select(r,e.workspaceId):[]})}async search(e,r){const{workspaceId:s}=r;if(!s)return[];const t=e.replace(/^@/,"").toLowerCase();return L.select(k.state,s).filter(i=>i.login.toLowerCase().includes(t)).map(i=>({id:`member-${i.principalId}`,type:"member",label:i.login,subtitle:i.identity?`${i.identity.provider==="github"?"GitHub":"GitLab"} · ${i.identity.host}`:void 0,description:i.displayName??void 0,icon:"👤",uri:`devspace://member/${encodeURIComponent(i.principalId)}?workspaceId=${encodeURIComponent(s)}`,score:.8,meta:{workspaceId:s,principalId:i.principalId,identity:i.identity,avatarUrl:i.avatarUrl??void 0}}))}}class ee{constructor(){u(this,"id","folder");u(this,"triggers",["@folder","@dir"])}async search(e,r){const s=r.workspaceId;if(!s)return[];try{const{backendRequest:t}=await y(async()=>{const{backendRequest:o}=await import("./TB9r2XJy.js").then(l=>l.j);return{backendRequest:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),i=await t("search.fileNames",{workspaceId:s,pattern:e||"",limit:200}),n=Array.isArray(i?.files)?i.files:[],a=new Set;for(const o of n){const l=o.split("/");for(let p=1;p<l.length;p++)a.add(l.slice(0,p).join("/"))}return[...a].filter(o=>e?g(e,o.split("/").pop()||o)!==null:!0).slice(0,10).map(o=>({id:`folder-${o}`,type:"folder",label:o.split("/").pop()||o,description:o,icon:"📁",uri:`devspace://folder/${encodeURIComponent(o)}`,meta:{path:o,fullPath:o,relativePath:o}}))}catch(t){return _.debug("[FolderProvider] Failed to get folders:",t),[]}}}const te=10,re=.3;function se(c){const e=c.toLowerCase().split(/\s+/).filter(Boolean);return(r,s)=>{const t=r?g(c,r):null;if(t)return 1+t.score;if(s){const i=s.toLowerCase();if(e.every(n=>i.includes(n)))return re}return 0}}class ie{constructor(){u(this,"id","note");u(this,"triggers",["@note","@n"]);u(this,"supportsRanges",!0);u(this,"cachedNotes",[]);u(this,"lastCacheUpdate",0);u(this,"cacheTimeout",5e3)}async getSiblingWorkspaces(e){if(!e)return[];try{const[{store:r},{selectWorkspaceItems:s}]=await Promise.all([y(()=>import("./D4ytz2EC.js"),__vite__mapDeps([11,12,13,2,14,15,4,8,1,16,6,3,17,18]),import.meta.url),y(()=>import("./C2UL5Ler.js").then(n=>n.ef),__vite__mapDeps([19,6,4,1,2,12,13,14,15,8,16,3,20,21,22,23,7,9,24,0,5,10,25,26]),import.meta.url)]),t=s.select(r.state),i=t.find(n=>n.id===e);return!i||!i.repositoryPath?[]:t.filter(n=>n.id!==e&&n.repositoryPath===i.repositoryPath)}catch(r){return _.debug("[NoteProvider] Failed to get sibling workspaces:",r),[]}}async fetchNotesFromWorkspace(e,r){try{const[{store:s},{listSlimNotesRequested:t}]=await Promise.all([y(()=>import("./D4ytz2EC.js"),__vite__mapDeps([11,12,13,2,14,15,4,8,1,16,6,3,17,18]),import.meta.url),y(()=>import("./B9vHutcJ.js").then(n=>n.MP),__vite__mapDeps([12,13,2,14,15,4,8,1,16,6,3]),import.meta.url)]);return(await s.dispatch(t(e))).map(n=>({note:n,workspaceId:e,workspaceTitle:r}))}catch(s){_.debug(`[NoteProvider] Failed to fetch notes from workspace ${e}:`,s)}return[]}async search(e,r){if(!r.workspaceId)return[];const s=e.trim(),t=s?se(s):null;try{const i=await this.fetchNotesFromWorkspace(r.workspaceId),a=(await this.getSiblingWorkspaces(r.workspaceId)).map(d=>this.fetchNotesFromWorkspace(d.id,d.title)),l=(await Promise.all(a)).flat(),p=[...i,...l],w=(t?p.map(d=>({entry:d,score:t(d.note.title,d.note.content||d.note.contentPreview)})).filter(({score:d})=>d>0).sort((d,v)=>v.score-d.score):p.map(d=>({entry:d,score:void 0}))).slice(0,te).map(({entry:{note:d,workspaceId:v,workspaceTitle:h},score:f})=>{const P=v===r.workspaceId,I=P?void 0:b.chat_mentions_fromWorkspace_subtitle({workspace:h||v}),S=d.content||d.contentPreview;return{candidate:{id:d.id,type:"note",label:d.title||d.id||b.chat_mentions_untitledNote_label(),subtitle:I,description:S?`${S.substring(0,100)}...`:"",icon:"📝",uri:`devspace://note/${d.id}`,meta:{preview:S?.substring(0,200)||"",workspaceId:v,...P?{}:{isExternalLink:!0}}},score:f}});if(this.cachedNotes=w.map(({candidate:d})=>d),this.lastCacheUpdate=Date.now(),w.length>0)return w.map(({candidate:d,score:v})=>v!==void 0?{...d,score:v}:d)}catch(i){_.debug("[NoteProvider] Failed to fetch notes:",i)}return this.cachedNotes.length>0?t?this.cachedNotes.map(i=>({...i,score:t(i.label,i.meta?.preview)})).filter(i=>i.score>0).sort((i,n)=>n.score-i.score):this.cachedNotes:[]}getCachedNotes(){return Date.now()-this.lastCacheUpdate>this.cacheTimeout?[]:this.cachedNotes}}class ne{constructor(){u(this,"id","external");u(this,"triggers",["@docs","@external"])}async search(e,r){return[{id:"react-docs",label:"React Documentation",url:"https://react.dev",description:"Official React documentation"},{id:"mdn",label:"MDN Web Docs",url:"https://developer.mozilla.org",description:"Web technology documentation"},{id:"typescript",label:"TypeScript Handbook",url:"https://www.typescriptlang.org/docs/",description:"TypeScript documentation"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:`external-${t.id}`,type:"external-source",label:t.label,description:t.description,icon:"📚",uri:`devspace://external/${t.id}`,meta:{url:t.url}}))}}class oe{constructor(){u(this,"id","rule");u(this,"triggers",["@rule","@intent"])}async search(e,r){return[{path:".intent/rules/cli.md",label:"CLI Rules"},{path:".intent/rules/frontend.md",label:"Frontend Rules"},{path:".intent/rules/python.md",label:"Python Rules"},{path:".intent/rules/sidecar.md",label:"Sidecar Rules"},{path:".intent/rules/systems.md",label:"Systems Rules"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:t.path,type:"rule",label:t.label,subtitle:t.path,icon:"📚",uri:`devspace://rule/${encodeURIComponent(t.path)}`,meta:{path:t.path}}))}}class ae{constructor(){u(this,"id","task");u(this,"triggers",["@task","@todo"])}async search(e,r){return[{id:"task-1",label:"Implement authentication",status:"in_progress",assignee:"John Doe"},{id:"task-2",label:"Write tests",status:"not_started",assignee:"Jane Smith"},{id:"task-3",label:"Deploy to production",status:"completed",assignee:"Bob Johnson"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:`task-${t.id}`,type:"task",label:t.label,subtitle:`${t.status} • ${t.assignee}`,icon:"📋",uri:`devspace://task/${t.id}`,meta:{taskStatus:t.status,assignee:t.assignee}}))}}class ce{constructor(){u(this,"id","personality");u(this,"triggers",["@personality","@persona"]);u(this,"personalities",[{id:"auggie-personality-agent-default",name:"Agent Auggie",description:"Default helpful AI assistant",icon:"🤖",temperature:.7,model:"default",promptToken:"auggie-personality-agent-default"},{id:"auggie-personality-prototyper",name:"Prototyper Auggie",description:"Specialized in rapid prototyping",icon:"⚡",temperature:.7,model:"default",promptToken:"auggie-personality-prototyper"},{id:"auggie-personality-brainstorm",name:"Brainstorm Auggie",description:"Creative ideation and exploration",icon:"💡",temperature:.7,model:"default",promptToken:"auggie-personality-brainstorm"},{id:"auggie-personality-reviewer",name:"Reviewer Auggie",description:"Code review and feedback",icon:"🔍",temperature:.7,model:"default",promptToken:"auggie-personality-reviewer"}])}async search(e,r){return this.personalities.filter(s=>!e||g(e,s.name)!==null).map(s=>({id:s.id,type:"personality",label:s.name,subtitle:`${s.model}`,description:s.description,icon:s.icon,uri:`devspace://personality/${s.id}`,meta:{promptToken:s.promptToken}}))}}class le{constructor(){u(this,"id","command");u(this,"triggers",["@cmd","@command"])}async search(e,r){return[N.USE_DEFAULT_CONTEXT,N.CLEAR_CONTEXT].filter(t=>!e||t.label.toLowerCase().includes(e.toLowerCase()))}}class ue{constructor(){u(this,"id","terminal");u(this,"triggers",["@terminal","@term"])}async search(e,r){try{const{terminalManager:s}=await y(async()=>{const{terminalManager:h}=await import("./Ctp-YfoS.js").then(f=>f.b);return{terminalManager:h}},__vite__mapDeps([27,2,1,28,29,3,4,30,31,12,13,14,15,8,16,6,0,5,7,9,10,32,20,33,34,35,36,37,38,39,25,40,41]),import.meta.url),{selectTerminals:t,selectTerminalDisplayName:i}=await y(async()=>{const{selectTerminals:h,selectTerminalDisplayName:f}=await import("./CgGsxeG7.js").then(P=>P.i);return{selectTerminals:h,selectTerminalDisplayName:f}},__vite__mapDeps([40,12,13,2,14,15,4,8,1,16,6,3]),import.meta.url),a=k.state;if(!r.workspaceId)return[];const o=t.select(a,r.workspaceId),l=s.loadTerminalMetadata(r.workspaceId),p=new Set,m=[];for(const h of o)p.add(h.id),m.push({id:h.id,name:i.select(a,r.workspaceId,h.id)});for(const h of l)p.has(h.terminalId)||(p.add(h.terminalId),m.push({id:h.terminalId,name:h.title||b.terminal_quakeOverlay_terminal_fallback()}));if(m.length===0)return[];const d=e?["terminal","term"].some(h=>h.startsWith(e.toLowerCase())||e.toLowerCase().startsWith(h)):!1;return(e&&!d?m.filter(h=>g(e,h.name)!==null):m).slice(0,10).map((h,f)=>({id:h.id,type:"terminal",label:h.name,subtitle:b.chat_mentions_terminalIndex_subtitle({index:f+1}),description:b.chat_mentions_terminalOutput_description(),icon:"💻",uri:`devspace://terminal/${encodeURIComponent(h.id)}`,meta:{workspaceId:r.workspaceId}}))}catch(s){return _.debug("[TerminalProvider] Failed to get terminals:",s),[]}}}class de{constructor(){u(this,"id","script");u(this,"triggers",["@script","@scripts"])}async search(e,r){try{const{selectScriptEntries:s}=await y(async()=>{const{selectScriptEntries:o}=await import("./D0qNo7Oy.js");return{selectScriptEntries:o}},__vite__mapDeps([42,12,13,2,14,15,4,8,1,16,6,3,43,19,20,21,22,23,7,9,24,0,5,10,25,26,44,29,28,45,46,47,48,31,49,50]),import.meta.url);if(!r.workspaceId)return[];const t=s.select(k.state,r.workspaceId);if(t.length===0)return[];const n=e?["script","scripts"].some(o=>o.startsWith(e.toLowerCase())||e.toLowerCase().startsWith(o)):!1;return(e&&!n?t.filter(o=>g(e,o.name)!==null||g(e,M(o))!==null):t).slice(0,10).map(o=>{const l=o.runtime.status,p=x(l)?b.chat_mentions_scriptRunning_label():l==="exited"?b.chat_mentions_scriptExited_label():b.chat_mentions_scriptIdle_label();return{id:o.id,type:"script",label:o.name,subtitle:`${p} · ${M(o)}`,description:b.chat_mentions_scriptOutput_description(),icon:"▶️",uri:`devspace://script/${encodeURIComponent(o.id)}`,meta:{workspaceId:r.workspaceId,command:o.command,status:x(l)?"ok":l==="exited"?"warning":void 0}}})}catch(s){return _.debug("[ScriptProvider] Failed to get scripts:",s),[]}}}class pe{constructor(){u(this,"id","specialist");u(this,"triggers",["@specialist","@spec"])}async search(e,r){try{const s=j.select(k.state);return!s||s.length===0?[]:s.filter(t=>e?g(e,t.name)!==null||g(e,t.id)!==null||g(e,t.description)!==null||g(e,"specialist")!==null:!0).map(t=>({id:`specialist-${t.id}`,type:"specialist",label:t.name,subtitle:t.description,description:t.description,icon:"👤",uri:`devspace://specialist/${encodeURIComponent(t.id)}`,group:"Specialists",score:.8,meta:{promptToken:`specialist/${t.id}`}})).slice(0,10)}catch(s){return _.debug("[SpecialistProvider] Failed to get specialists:",s),[]}}}class he{constructor(){u(this,"id","agent");u(this,"triggers",["@agent"])}async search(e,r){try{const{selectAllWorkspaceAgents:s}=await y(async()=>{const{selectAllWorkspaceAgents:a}=await import("./C2UL5Ler.js").then(o=>o.ec);return{selectAllWorkspaceAgents:a}},__vite__mapDeps([19,6,4,1,2,12,13,14,15,8,16,3,20,21,22,23,7,9,24,0,5,10,25,26]),import.meta.url),t=r.workspaceId;if(!t)return[];const i=s.select(k.state,t);if(i.length===0)return[];const n=[];for(const a of i){const o=a.id,l=a.name||o,p=a.metadata?.specialist||"";let m=a.metadata?.specialistName||"";if(p&&!m){const f=U.select(k.state,p);f&&(m=f.name)}if(e){const f=g(e,l)!==null,P=g(e,"agent")!==null,I=m&&g(e,m)!==null,S=p&&g(e,p)!==null;if(!f&&!P&&!I&&!S)continue}const w=a.isStreaming?"responding":a.status||"active",d=[];m?d.push(m):d.push("Agent"),d.push(w);const v=a.messages?.length||0;v>0&&d.push(`${v} msg${v!==1?"s":""}`);const h=a.lastActivity||a.lastModified;h&&!a.isStreaming&&d.push(z(new Date(h))),n.push({id:o,type:"agent",label:l,subtitle:d.join(" · "),description:m?b.chat_mentions_specialistAgentInWorkspace_description({specialist:m}):b.chat_mentions_agentInWorkspace_description(),icon:"🤖",uri:`devspace://agent/${encodeURIComponent(o)}`,group:b.chat_mentions_agents_group(),score:.7,meta:{workspaceId:t}})}return n.slice(0,10)}catch(s){return _.debug("[AgentProvider] Failed to get agents:",s),[]}}}class me{constructor(){u(this,"providers",new Map);u(this,"defaultProviders",[]);this.register(new Z),this.register(new ee),this.register(new ie),this.register(new ne),this.register(new oe),this.register(new ae),this.register(new ce),this.register(new le),this.register(new ue),this.register(new de),this.register(new he),this.register(new pe),this.register(new q),this.defaultProviders=["file","folder","note","terminal","script","agent","specialist","member"]}register(e){this.providers.set(e.id,e),_.debug("[ProviderRegistry] Registered provider:",e.id)}unregister(e){this.providers.delete(e)}get(e){return this.providers.get(e)}getAll(){return Array.from(this.providers.values())}getDefault(){return this.defaultProviders.map(e=>this.providers.get(e)).filter(Boolean)}getByTrigger(e){return Array.from(this.providers.values()).filter(r=>r.triggers?.includes(e))}async searchAll(e,r){const s=e.startsWith("@")?this.getByTrigger(e.split(" ")[0]):this.getDefault();return(await Promise.all(s.map(i=>i.search(e,r)))).flat()}}const Te=new me;export{Ie as D,Ce as M,Q as a,ke as i,Te as p,R as s};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CT8vPg_p.js","/app/immutable/chunks/CtfEuoOH.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BpezAJRw.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/B26ZHg3s.js","/app/immutable/chunks/CGmYraIa.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CjpWOZGa.js","/app/immutable/chunks/CiKoEJ2m.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CHIxjTWu.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/iQDlfKDR.js","/app/immutable/chunks/B1lpukIv.js","/app/immutable/chunks/COofQgO0.js","/app/immutable/chunks/BZ27qIg1.js","/app/immutable/chunks/DynUeYUu.js","/app/immutable/chunks/CnFZbWXv.js","/app/immutable/chunks/QzxpbvSo.js","/app/immutable/chunks/DMEIbJII.js","/app/immutable/chunks/CwqyVbqi.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/CVtLV3_x.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/RV6uszBL.js","/app/immutable/chunks/CH6Im5iM.js","/app/immutable/chunks/DyreqWqr.js","/app/immutable/chunks/CyvzL5p8.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/axwUS21u.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/DJcR4XQR.js","/app/immutable/chunks/DEr2A_-h.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/JvFe2B29.js","/app/immutable/chunks/BU3y3Xes.js","/app/immutable/chunks/BkcCJyDK.js","/app/immutable/chunks/C8E14ldW.js","/app/immutable/chunks/qWgJ-CUF.js","/app/immutable/chunks/DKwAaLwd.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var F=Object.defineProperty;var $=(c,e,r)=>e in c?F(c,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[e]=r;var u=(c,e,r)=>$(c,typeof e!="symbol"?e+"":e,r);import{l as _}from"./ChTqQfQN.js";import{bm as b,_ as y}from"./CtfEuoOH.js";import{JH as k,CP as M}from"./CiKoEJ2m.js";import{h as O}from"./CT8vPg_p.js";import{O as W}from"./JvFe2B29.js";import{cP as L}from"./BTXzEcFX.js";import{u as x,b6 as U,bd as j}from"./DEr2A_-h.js";import{a as z}from"./CLvqghA8.js";const N={USE_DEFAULT_CONTEXT:{id:"use-default-context",type:"command",get label(){return b.chat_mentions_useDefaultContext_label()},get description(){return b.chat_mentions_useDefaultContext_description()},icon:"🔄",uri:"devspace://command/use-default-context"},CLEAR_CONTEXT:{id:"clear-context",type:"command",get label(){return b.chat_mentions_clearContext_label()},get description(){return b.chat_mentions_clearContext_description()},icon:"🗑️",uri:"devspace://command/clear-context"}};function ke(c){return"items"in c||"subgroups"in c}function B(c){if(!c||typeof c!="object")return!1;const e=c;return!(typeof e.id!="string"||typeof e.label!="string"||typeof e.uri!="string"||typeof e.type!="string"||e.subtitle!==void 0&&typeof e.subtitle!="string"||e.description!==void 0&&typeof e.description!="string"||e.icon!==void 0&&typeof e.icon!="string"||e.score!==void 0&&typeof e.score!="number"||e.group!==void 0&&typeof e.group!="string")}function g(c,e){if(!c||!e)return null;const r=c.toLowerCase(),s=e.toLowerCase();let t=0;for(let a=0;a<s.length&&t<r.length;a++)s[a]===r[t]&&t++;if(t!==r.length)return null;const i=K(r,s);return i?{score:V(r,s,i),matches:i}:null}function K(c,e){const r=[];let s=0;for(let t=0;t<c.length;t++){const i=c[t];let n=!1;for(let a=s;a<e.length;a++)if(e[a]===i){r.push(a),s=a+1,n=!0;break}if(!n)return null}return r}function V(c,e,r){let s=0;s+=1;let t=0;for(let l=1;l<r.length;l++)r[l]===r[l-1]+1&&(t+=.1);s+=t;let i=0;for(const l of r)(l===0||J(e,l))&&(i+=.15);s+=i,r[0]===0&&(s+=.2);const a=(r[r.length-1]-r[0])/e.length*.3;return s-=a,Math.min(s/2.5,1)}function J(c,e){if(e===0)return!0;const r=c[e],s=c[e-1];return r===r.toUpperCase()&&s===s.toLowerCase()||!/[a-z0-9]/i.test(s)}function H(c,e){if(!c||!e)return null;if(!c.includes("/"))return g(c,e);const r=c.split("/").filter(n=>n.length>0),s=e.split("/").filter(n=>n.length>0);if(r.length===0||s.length===0)return null;const t=G(r,s);return t?{score:X(r,s,t),matches:[]}:null}function G(c,e){const r=[];let s=0;for(let t=0;t<c.length;t++){const i=c[t];let n=!1;const a=t===c.length-1;for(let o=s;o<e.length;o++){const l=e[o];if(g(i,l)){r.push(o),s=o+1,n=!0;break}if(a){const p=l.split(".")[0],m=l.includes(".")?l.split(".").pop():"";if(m&&g(i,m)){r.push(o),s=o+1,n=!0;break}if(p&&g(i,p)){r.push(o),s=o+1,n=!0;break}}}if(!n)return null}return r}function X(c,e,r){let s=0;s+=1,s+=r.length*.2;let t=0;for(let n=1;n<r.length;n++)r[n]===r[n-1]+1&&(t+=.15);s+=t,r.length>0&&r[r.length-1]===e.length-1&&(s+=.3);for(let n=0;n<c.length&&n<r.length;n++){const a=c[n],o=e[r[n]];a.toLowerCase()===o.toLowerCase()&&(s+=.2)}return Math.min(s/3,1)}function R(c,e,r){return JSON.stringify({query:c,workspaceId:r.workspaceId,repoPath:r.repoPath,currentFile:r.currentFile,currentNote:r.currentNote,providers:e.map(s=>[s.id,s.getCacheKey?.(r)])})}const D="*",Ce=["member","note","agent","file","folder","script","terminal",D,"specialist"];function Q(c,e){if(e.length===0)return[...c].sort((t,i)=>(i.score??0)-(t.score??0));const r=new Map(e.map((t,i)=>[t,i])),s=r.get(D)??e.length;return c.map(t=>({candidate:t,rank:r.get(t.type)??s})).sort((t,i)=>t.rank-i.rank||(i.candidate.score??0)-(t.candidate.score??0)).map(({candidate:t})=>t)}function Y(c,e){const r=new Map;return c.filter(s=>{const t=r.get(s.type)??0;return r.set(s.type,t+1),t<e})}class Ie{constructor(e={}){u(this,"searchDebounceTimer",null);u(this,"currentAbortController",null);u(this,"cache",new Map);u(this,"config");u(this,"isSearching",!1);this.config={debounceMs:e.debounceMs??100,maxResults:e.maxResults??50,cacheMaxAge:e.cacheMaxAge??3e4,enableSemantic:e.enableSemantic??!1,enableLivePreview:e.enableLivePreview??!0,enableCollaboration:e.enableCollaboration??!1,typeOrder:e.typeOrder??[],maxResultsPerKind:e.maxResultsPerKind??20}}async search(e,r,s){this.cancelPendingSearch();const t=R(e,r,s),i=this.cache.get(t);if(i&&!this.isCacheExpired(i))return _.debug("[SearchService] Returning cached results for:",e),i.results;const n=new AbortController;this.currentAbortController=n;const a=n.signal;return new Promise((o,l)=>{this.isSearching=!0;let p=!1;const m=()=>{a.removeEventListener("abort",v),this.currentAbortController===n&&(this.currentAbortController=null,this.searchDebounceTimer=null,this.isSearching=!1)},w=f=>{p||(p=!0,m(),o(f))},d=f=>{p||(p=!0,m(),l(f))},v=()=>d(new DOMException("Search cancelled","AbortError"));a.addEventListener("abort",v,{once:!0});const h=async()=>{try{if(a.aborted){d(new DOMException("Search cancelled","AbortError"));return}_.debug("[SearchService] Searching with providers:",r.map(C=>C.id));const f=R(e,r,s),P=await Promise.all(r.map(C=>this.searchWithProvider(C,e,s,a)));if(a.aborted)return;if(f!==R(e,r,s)){w([]);return}const S=this.combineResults(P.flat()).filter(C=>B(C)),E=this.applyFuzzyMatching(e,S),A=Q(E,this.config.typeOrder),T=this.config.typeOrder.length>0?Y(A,this.config.maxResultsPerKind):A.slice(0,this.config.maxResults);this.cache.set(f,{results:T,timestamp:Date.now()}),_.debug(`[SearchService] Found ${T.length} results`),w(T)}catch(f){a.aborted?d(new DOMException("Search cancelled","AbortError")):(_.error("[SearchService] Search error:",f),d(f instanceof Error?f:new Error(String(f))))}};e?this.searchDebounceTimer=setTimeout(h,this.config.debounceMs):h()})}async searchWithProvider(e,r,s,t){try{const i={...s,signal:t},n=await e.search(r,i),a=e.scoreRelevance?.bind(e);return a?n.map(o=>({...o,score:a(o,s)})):n}catch(i){return t.aborted||_.error(`[SearchService] Provider ${e.id} search failed:`,i),[]}}combineResults(e){const r=new Set,s=[];for(const t of e){const i=`${t.type}:${t.uri}`;r.has(i)||(r.add(i),s.push(t))}return s}applyFuzzyMatching(e,r){if(!e||e.length===0)return r;const t=r.map(i=>{let n=0;const a=i.meta?.path||i.meta?.fullPath||(i.subtitle?`${i.subtitle}/${i.label}`:i.label);if(a){const l=H(e,a);l&&(n=Math.max(n,l.score*1.8))}const o=g(e,i.label);if(o&&(n=Math.max(n,o.score*1.5)),i.subtitle){const l=g(e,i.subtitle);l&&(n=Math.max(n,l.score))}if(i.description){const l=g(e,i.description);l&&(n=Math.max(n,l.score*.5))}return{...i,score:n>0?n:i.score??0}}).filter(i=>i.score>0);return t.length>0?t:r}cancelPendingSearch(){this.searchDebounceTimer&&(clearTimeout(this.searchDebounceTimer),this.searchDebounceTimer=null),this.currentAbortController&&(this.currentAbortController.abort(),this.currentAbortController=null)}isCacheExpired(e){return Date.now()-e.timestamp>this.config.cacheMaxAge}clearCache(){this.cache.clear()}isLoading(){return this.isSearching}destroy(){this.cancelPendingSearch(),this.clearCache()}}class Z{constructor(){u(this,"id","file");u(this,"triggers",["@file","@f"]);u(this,"default",!0);u(this,"supportsRanges",!0);u(this,"supportsLivePreview",!0);u(this,"recentFiles",new Set);u(this,"fileIconMap",{ts:"📘",tsx:"⚛️",js:"📜",jsx:"⚛️",svelte:"🔥",vue:"💚",py:"🐍",rs:"🦀",go:"🐹",java:"☕",cpp:"⚙️",c:"⚙️",h:"📎",md:"📝",json:"📋",yaml:"📋",yml:"📋",toml:"📋",xml:"📋",html:"🌐",css:"🎨",scss:"🎨",sass:"🎨",less:"🎨",sql:"🗃️",sh:"🖥️",bash:"🖥️",zsh:"🖥️",fish:"🖥️",dockerfile:"🐳",docker:"🐳",gitignore:"🚫",env:"🔐",lock:"🔒",test:"🧪",spec:"🧪"})}async search(e,r){_.debug("[FileProvider] Searching for:",{query:e,context:{workspaceId:r.workspaceId}});const s=r.workspaceId;if(!s)return[];try{const t=await O("search.fileNames",{workspaceId:s,pattern:e||"",limit:10}),n=(Array.isArray(t?.files)?t.files:[]).map(a=>{const o=a.split("/").pop()||a,l=o.split(".").pop()||"";return{id:`file-${a}`,label:o,type:"file",uri:`file:${a}`,description:a,subtitle:a,score:.5,meta:{path:a,fullPath:a,relativePath:a,extension:l,language:this.getLanguageFromExtension(l)}}});return this.deduplicateAndDistinguish(n)}catch(t){return _.error("[FileProvider] Search failed:",t),[]}}async searchRecent(e,r){if(!r.recentFiles||r.recentFiles.length===0)return[];const s=await Promise.all(r.recentFiles.filter(t=>e?g(e,t)!==null:!0).slice(0,3).map(t=>{const i=t.split("/").pop()||t,n=i.split(".").pop()||"";return this.fileToCandidate({path:t,name:i,extension:n})}));return s.forEach(t=>{this.recentFiles.add(t.uri)}),s}async searchContextual(e,r){return r.currentFile?[]:[]}async fileToCandidate(e){const r=this.getFileIcon(e.extension),s=e.path,t=this.formatPath(s);return{id:`file-${e.path}`,type:"file",label:e.name,subtitle:t,description:s,icon:r,uri:`devspace://file/${encodeURIComponent(e.path)}`,meta:{path:s,fullPath:e.path,lastModified:e.lastModified,size:e.size,language:e.language||this.getLanguageFromExtension(e.extension)}}}combineResults(...e){const r=new Set,s=[];for(const t of e)for(const i of t)r.has(i.uri)||(r.add(i.uri),s.push(i));return this.deduplicateAndDistinguish(s)}deduplicateAndDistinguish(e){const r=new Map;for(const t of e){const i=t.label;let n=r.get(i);n||(n=[],r.set(i,n)),n.push(t)}const s=[];for(const[t,i]of r.entries())if(i.length===1)s.push(i[0]);else{const n=this.distinguishDuplicates(i);s.push(...n)}return s}distinguishDuplicates(e){const r=e.map(t=>t.description||t.meta?.path||"");return e.map((t,i)=>{const n=r[i],a=r.filter((p,m)=>m!==i),o=n.split("/");let l="";for(let p=o.length;p>0;p--){const m=o.slice(-p).join("/");if(!a.some(d=>d.split("/").slice(-p).join("/")===m)||p===1){l=m;break}}return{...t,subtitle:l}})}groupResults(e){const r={recent:[],relevant:[],other:[]};for(const t of e)this.recentFiles.has(t.uri)?r.recent.push(t):(t.score??0)>.7?r.relevant.push(t):r.other.push(t);const s=[];return r.recent.length>0&&s.push(...r.recent.slice(0,3).map(t=>({...t,group:b.chat_mentions_recentFiles_group()}))),r.relevant.length>0&&s.push(...r.relevant.slice(0,5).map(t=>({...t,group:b.chat_mentions_mostRelevant_group()}))),r.other.length>0&&s.push(...r.other.slice(0,10).map(t=>({...t,group:b.chat_mentions_otherFiles_group()}))),s}scoreRelevance(e,r){let s=.5;if(this.recentFiles.has(e.uri)&&(s+=.2),r.currentFile&&e.meta?.path){const t=r.currentFile.substring(0,r.currentFile.lastIndexOf("/")),i=e.meta.path.substring(0,e.meta.path.lastIndexOf("/"));t===i&&(s+=.15)}return r.imports?.includes(e.meta?.path||"")&&(s+=.25),r.currentFile?.includes(".test.")&&e.meta?.path?.includes(".test.")&&(s+=.1),Math.min(s,1)}getGroups(){return[{id:"files-recent",label:b.chat_mentions_recentFiles_group(),icon:"🕐"},{id:"files-all",label:b.chat_mentions_allFiles_group(),icon:"📁"},{id:"files-tests",label:b.chat_mentions_testFiles_group(),icon:"🧪"}]}getFileIcon(e){return this.fileIconMap[e.toLowerCase()]||"📄"}formatPath(e){if(e.length>40){const r=e.split("/");if(r.length>2)return`.../${r.slice(-2).join("/")}`}return e}getLanguageFromExtension(e){return{ts:"typescript",tsx:"typescriptreact",js:"javascript",jsx:"javascriptreact",py:"python",rs:"rust",go:"go",java:"java",cpp:"cpp",c:"c",svelte:"svelte",vue:"vue",md:"markdown",json:"json",yaml:"yaml",yml:"yaml",html:"html",css:"css",scss:"scss",sql:"sql",sh:"shellscript"}[e.toLowerCase()]||"plaintext"}}class q{constructor(){u(this,"id","member")}getCacheKey(e){const r=k.state;return JSON.stringify({backendId:W.select(r),ownPrincipalId:r.presence.ownPrincipalId,members:e.workspaceId?L.select(r,e.workspaceId):[]})}async search(e,r){const{workspaceId:s}=r;if(!s)return[];const t=e.replace(/^@/,"").toLowerCase();return L.select(k.state,s).filter(i=>i.login.toLowerCase().includes(t)).map(i=>({id:`member-${i.principalId}`,type:"member",label:i.login,subtitle:i.identity?`${i.identity.provider==="github"?"GitHub":"GitLab"} · ${i.identity.host}`:void 0,description:i.displayName??void 0,icon:"👤",uri:`devspace://member/${encodeURIComponent(i.principalId)}?workspaceId=${encodeURIComponent(s)}`,score:.8,meta:{workspaceId:s,principalId:i.principalId,identity:i.identity,avatarUrl:i.avatarUrl??void 0}}))}}class ee{constructor(){u(this,"id","folder");u(this,"triggers",["@folder","@dir"])}async search(e,r){const s=r.workspaceId;if(!s)return[];try{const{backendRequest:t}=await y(async()=>{const{backendRequest:o}=await import("./CT8vPg_p.js").then(l=>l.j);return{backendRequest:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),i=await t("search.fileNames",{workspaceId:s,pattern:e||"",limit:200}),n=Array.isArray(i?.files)?i.files:[],a=new Set;for(const o of n){const l=o.split("/");for(let p=1;p<l.length;p++)a.add(l.slice(0,p).join("/"))}return[...a].filter(o=>e?g(e,o.split("/").pop()||o)!==null:!0).slice(0,10).map(o=>({id:`folder-${o}`,type:"folder",label:o.split("/").pop()||o,description:o,icon:"📁",uri:`devspace://folder/${encodeURIComponent(o)}`,meta:{path:o,fullPath:o,relativePath:o}}))}catch(t){return _.debug("[FolderProvider] Failed to get folders:",t),[]}}}const te=10,re=.3;function se(c){const e=c.toLowerCase().split(/\s+/).filter(Boolean);return(r,s)=>{const t=r?g(c,r):null;if(t)return 1+t.score;if(s){const i=s.toLowerCase();if(e.every(n=>i.includes(n)))return re}return 0}}class ie{constructor(){u(this,"id","note");u(this,"triggers",["@note","@n"]);u(this,"supportsRanges",!0);u(this,"cachedNotes",[]);u(this,"lastCacheUpdate",0);u(this,"cacheTimeout",5e3)}async getSiblingWorkspaces(e){if(!e)return[];try{const[{store:r},{selectWorkspaceItems:s}]=await Promise.all([y(()=>import("./CjpWOZGa.js"),__vite__mapDeps([11,12,13,2,14,15,4,8,1,16,6,3,17,18]),import.meta.url),y(()=>import("./iQDlfKDR.js").then(n=>n.ef),__vite__mapDeps([19,6,4,1,2,12,13,14,15,8,16,3,20,21,22,23,7,9,24,0,5,10,25,26]),import.meta.url)]),t=s.select(r.state),i=t.find(n=>n.id===e);return!i||!i.repositoryPath?[]:t.filter(n=>n.id!==e&&n.repositoryPath===i.repositoryPath)}catch(r){return _.debug("[NoteProvider] Failed to get sibling workspaces:",r),[]}}async fetchNotesFromWorkspace(e,r){try{const[{store:s},{listSlimNotesRequested:t}]=await Promise.all([y(()=>import("./CjpWOZGa.js"),__vite__mapDeps([11,12,13,2,14,15,4,8,1,16,6,3,17,18]),import.meta.url),y(()=>import("./CiKoEJ2m.js").then(n=>n.MP),__vite__mapDeps([12,13,2,14,15,4,8,1,16,6,3]),import.meta.url)]);return(await s.dispatch(t(e))).map(n=>({note:n,workspaceId:e,workspaceTitle:r}))}catch(s){_.debug(`[NoteProvider] Failed to fetch notes from workspace ${e}:`,s)}return[]}async search(e,r){if(!r.workspaceId)return[];const s=e.trim(),t=s?se(s):null;try{const i=await this.fetchNotesFromWorkspace(r.workspaceId),a=(await this.getSiblingWorkspaces(r.workspaceId)).map(d=>this.fetchNotesFromWorkspace(d.id,d.title)),l=(await Promise.all(a)).flat(),p=[...i,...l],w=(t?p.map(d=>({entry:d,score:t(d.note.title,d.note.content||d.note.contentPreview)})).filter(({score:d})=>d>0).sort((d,v)=>v.score-d.score):p.map(d=>({entry:d,score:void 0}))).slice(0,te).map(({entry:{note:d,workspaceId:v,workspaceTitle:h},score:f})=>{const P=v===r.workspaceId,I=P?void 0:b.chat_mentions_fromWorkspace_subtitle({workspace:h||v}),S=d.content||d.contentPreview;return{candidate:{id:d.id,type:"note",label:d.title||d.id||b.chat_mentions_untitledNote_label(),subtitle:I,description:S?`${S.substring(0,100)}...`:"",icon:"📝",uri:`devspace://note/${d.id}`,meta:{preview:S?.substring(0,200)||"",workspaceId:v,...P?{}:{isExternalLink:!0}}},score:f}});if(this.cachedNotes=w.map(({candidate:d})=>d),this.lastCacheUpdate=Date.now(),w.length>0)return w.map(({candidate:d,score:v})=>v!==void 0?{...d,score:v}:d)}catch(i){_.debug("[NoteProvider] Failed to fetch notes:",i)}return this.cachedNotes.length>0?t?this.cachedNotes.map(i=>({...i,score:t(i.label,i.meta?.preview)})).filter(i=>i.score>0).sort((i,n)=>n.score-i.score):this.cachedNotes:[]}getCachedNotes(){return Date.now()-this.lastCacheUpdate>this.cacheTimeout?[]:this.cachedNotes}}class ne{constructor(){u(this,"id","external");u(this,"triggers",["@docs","@external"])}async search(e,r){return[{id:"react-docs",label:"React Documentation",url:"https://react.dev",description:"Official React documentation"},{id:"mdn",label:"MDN Web Docs",url:"https://developer.mozilla.org",description:"Web technology documentation"},{id:"typescript",label:"TypeScript Handbook",url:"https://www.typescriptlang.org/docs/",description:"TypeScript documentation"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:`external-${t.id}`,type:"external-source",label:t.label,description:t.description,icon:"📚",uri:`devspace://external/${t.id}`,meta:{url:t.url}}))}}class oe{constructor(){u(this,"id","rule");u(this,"triggers",["@rule","@intent"])}async search(e,r){return[{path:".intent/rules/cli.md",label:"CLI Rules"},{path:".intent/rules/frontend.md",label:"Frontend Rules"},{path:".intent/rules/python.md",label:"Python Rules"},{path:".intent/rules/sidecar.md",label:"Sidecar Rules"},{path:".intent/rules/systems.md",label:"Systems Rules"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:t.path,type:"rule",label:t.label,subtitle:t.path,icon:"📚",uri:`devspace://rule/${encodeURIComponent(t.path)}`,meta:{path:t.path}}))}}class ae{constructor(){u(this,"id","task");u(this,"triggers",["@task","@todo"])}async search(e,r){return[{id:"task-1",label:"Implement authentication",status:"in_progress",assignee:"John Doe"},{id:"task-2",label:"Write tests",status:"not_started",assignee:"Jane Smith"},{id:"task-3",label:"Deploy to production",status:"completed",assignee:"Bob Johnson"}].filter(t=>!e||g(e,t.label)!==null).map(t=>({id:`task-${t.id}`,type:"task",label:t.label,subtitle:`${t.status} • ${t.assignee}`,icon:"📋",uri:`devspace://task/${t.id}`,meta:{taskStatus:t.status,assignee:t.assignee}}))}}class ce{constructor(){u(this,"id","personality");u(this,"triggers",["@personality","@persona"]);u(this,"personalities",[{id:"auggie-personality-agent-default",name:"Agent Auggie",description:"Default helpful AI assistant",icon:"🤖",temperature:.7,model:"default",promptToken:"auggie-personality-agent-default"},{id:"auggie-personality-prototyper",name:"Prototyper Auggie",description:"Specialized in rapid prototyping",icon:"⚡",temperature:.7,model:"default",promptToken:"auggie-personality-prototyper"},{id:"auggie-personality-brainstorm",name:"Brainstorm Auggie",description:"Creative ideation and exploration",icon:"💡",temperature:.7,model:"default",promptToken:"auggie-personality-brainstorm"},{id:"auggie-personality-reviewer",name:"Reviewer Auggie",description:"Code review and feedback",icon:"🔍",temperature:.7,model:"default",promptToken:"auggie-personality-reviewer"}])}async search(e,r){return this.personalities.filter(s=>!e||g(e,s.name)!==null).map(s=>({id:s.id,type:"personality",label:s.name,subtitle:`${s.model}`,description:s.description,icon:s.icon,uri:`devspace://personality/${s.id}`,meta:{promptToken:s.promptToken}}))}}class le{constructor(){u(this,"id","command");u(this,"triggers",["@cmd","@command"])}async search(e,r){return[N.USE_DEFAULT_CONTEXT,N.CLEAR_CONTEXT].filter(t=>!e||t.label.toLowerCase().includes(e.toLowerCase()))}}class ue{constructor(){u(this,"id","terminal");u(this,"triggers",["@terminal","@term"])}async search(e,r){try{const{terminalManager:s}=await y(async()=>{const{terminalManager:h}=await import("./CwqyVbqi.js").then(f=>f.b);return{terminalManager:h}},__vite__mapDeps([27,2,1,28,29,3,4,30,31,12,13,14,15,8,16,6,0,5,7,9,10,32,20,33,34,35,36,37,38,39,25,40,41]),import.meta.url),{selectTerminals:t,selectTerminalDisplayName:i}=await y(async()=>{const{selectTerminals:h,selectTerminalDisplayName:f}=await import("./axwUS21u.js").then(P=>P.i);return{selectTerminals:h,selectTerminalDisplayName:f}},__vite__mapDeps([40,12,13,2,14,15,4,8,1,16,6,3]),import.meta.url),a=k.state;if(!r.workspaceId)return[];const o=t.select(a,r.workspaceId),l=s.loadTerminalMetadata(r.workspaceId),p=new Set,m=[];for(const h of o)p.add(h.id),m.push({id:h.id,name:i.select(a,r.workspaceId,h.id)});for(const h of l)p.has(h.terminalId)||(p.add(h.terminalId),m.push({id:h.terminalId,name:h.title||b.terminal_quakeOverlay_terminal_fallback()}));if(m.length===0)return[];const d=e?["terminal","term"].some(h=>h.startsWith(e.toLowerCase())||e.toLowerCase().startsWith(h)):!1;return(e&&!d?m.filter(h=>g(e,h.name)!==null):m).slice(0,10).map((h,f)=>({id:h.id,type:"terminal",label:h.name,subtitle:b.chat_mentions_terminalIndex_subtitle({index:f+1}),description:b.chat_mentions_terminalOutput_description(),icon:"💻",uri:`devspace://terminal/${encodeURIComponent(h.id)}`,meta:{workspaceId:r.workspaceId}}))}catch(s){return _.debug("[TerminalProvider] Failed to get terminals:",s),[]}}}class de{constructor(){u(this,"id","script");u(this,"triggers",["@script","@scripts"])}async search(e,r){try{const{selectScriptEntries:s}=await y(async()=>{const{selectScriptEntries:o}=await import("./DJcR4XQR.js");return{selectScriptEntries:o}},__vite__mapDeps([42,12,13,2,14,15,4,8,1,16,6,3,43,19,20,21,22,23,7,9,24,0,5,10,25,26,44,29,28,45,46,47,48,31,49,50]),import.meta.url);if(!r.workspaceId)return[];const t=s.select(k.state,r.workspaceId);if(t.length===0)return[];const n=e?["script","scripts"].some(o=>o.startsWith(e.toLowerCase())||e.toLowerCase().startsWith(o)):!1;return(e&&!n?t.filter(o=>g(e,o.name)!==null||g(e,M(o))!==null):t).slice(0,10).map(o=>{const l=o.runtime.status,p=x(l)?b.chat_mentions_scriptRunning_label():l==="exited"?b.chat_mentions_scriptExited_label():b.chat_mentions_scriptIdle_label();return{id:o.id,type:"script",label:o.name,subtitle:`${p} · ${M(o)}`,description:b.chat_mentions_scriptOutput_description(),icon:"▶️",uri:`devspace://script/${encodeURIComponent(o.id)}`,meta:{workspaceId:r.workspaceId,command:o.command,status:x(l)?"ok":l==="exited"?"warning":void 0}}})}catch(s){return _.debug("[ScriptProvider] Failed to get scripts:",s),[]}}}class pe{constructor(){u(this,"id","specialist");u(this,"triggers",["@specialist","@spec"])}async search(e,r){try{const s=j.select(k.state);return!s||s.length===0?[]:s.filter(t=>e?g(e,t.name)!==null||g(e,t.id)!==null||g(e,t.description)!==null||g(e,"specialist")!==null:!0).map(t=>({id:`specialist-${t.id}`,type:"specialist",label:t.name,subtitle:t.description,description:t.description,icon:"👤",uri:`devspace://specialist/${encodeURIComponent(t.id)}`,group:"Specialists",score:.8,meta:{promptToken:`specialist/${t.id}`}})).slice(0,10)}catch(s){return _.debug("[SpecialistProvider] Failed to get specialists:",s),[]}}}class he{constructor(){u(this,"id","agent");u(this,"triggers",["@agent"])}async search(e,r){try{const{selectAllWorkspaceAgents:s}=await y(async()=>{const{selectAllWorkspaceAgents:a}=await import("./iQDlfKDR.js").then(o=>o.ec);return{selectAllWorkspaceAgents:a}},__vite__mapDeps([19,6,4,1,2,12,13,14,15,8,16,3,20,21,22,23,7,9,24,0,5,10,25,26]),import.meta.url),t=r.workspaceId;if(!t)return[];const i=s.select(k.state,t);if(i.length===0)return[];const n=[];for(const a of i){const o=a.id,l=a.name||o,p=a.metadata?.specialist||"";let m=a.metadata?.specialistName||"";if(p&&!m){const f=U.select(k.state,p);f&&(m=f.name)}if(e){const f=g(e,l)!==null,P=g(e,"agent")!==null,I=m&&g(e,m)!==null,S=p&&g(e,p)!==null;if(!f&&!P&&!I&&!S)continue}const w=a.isStreaming?"responding":a.status||"active",d=[];m?d.push(m):d.push("Agent"),d.push(w);const v=a.messages?.length||0;v>0&&d.push(`${v} msg${v!==1?"s":""}`);const h=a.lastActivity||a.lastModified;h&&!a.isStreaming&&d.push(z(new Date(h))),n.push({id:o,type:"agent",label:l,subtitle:d.join(" · "),description:m?b.chat_mentions_specialistAgentInWorkspace_description({specialist:m}):b.chat_mentions_agentInWorkspace_description(),icon:"🤖",uri:`devspace://agent/${encodeURIComponent(o)}`,group:b.chat_mentions_agents_group(),score:.7,meta:{workspaceId:t}})}return n.slice(0,10)}catch(s){return _.debug("[AgentProvider] Failed to get agents:",s),[]}}}class me{constructor(){u(this,"providers",new Map);u(this,"defaultProviders",[]);this.register(new Z),this.register(new ee),this.register(new ie),this.register(new ne),this.register(new oe),this.register(new ae),this.register(new ce),this.register(new le),this.register(new ue),this.register(new de),this.register(new he),this.register(new pe),this.register(new q),this.defaultProviders=["file","folder","note","terminal","script","agent","specialist","member"]}register(e){this.providers.set(e.id,e),_.debug("[ProviderRegistry] Registered provider:",e.id)}unregister(e){this.providers.delete(e)}get(e){return this.providers.get(e)}getAll(){return Array.from(this.providers.values())}getDefault(){return this.defaultProviders.map(e=>this.providers.get(e)).filter(Boolean)}getByTrigger(e){return Array.from(this.providers.values()).filter(r=>r.triggers?.includes(e))}async searchAll(e,r){const s=e.startsWith("@")?this.getByTrigger(e.split(" ")[0]):this.getDefault();return(await Promise.all(s.map(i=>i.search(e,r)))).flat()}}const Te=new me;export{Ie as D,Ce as M,Q as a,ke as i,Te as p,R as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b8 as te,ao as j,_ as H,ae as N,c0 as Ce,aR as re,c5 as Oe,by as ne,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as R,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Ne,c9 as z,be as Re,b$ as Fe,b_ as ke,bO as Ae}from"./3SdAC2_C.js";import{t as le,bo as m,bw as de,bp as ce,b as ue}from"./CLAmm_T1.js";import{i as U}from"./BFgvMDua.js";import{b as W,e as F}from"./CcJmuwXr.js";import{b as q}from"./Dn334wJv.js";import{t as Be}from"./BwNrQXlF.js";import{n as G,l as We,c as De}from"./CfNIzRu8.js";import"./C4jSaPCg.js";import{a_ as Me}from"./nxtepGjE.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&H();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),N!==null&&o.add(N),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),N!==null&&o.add(N)),ne(()=>{j&&e.type==="checkbox"&&H();var s=t();if(e===document.activeElement){var i=N;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},S=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});I?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&I?.unobserve?.(v),a?(o.set(b,a),I?.observe(a)):o.delete(b),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),I?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var He=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),Ue=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,He);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=Ue();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>F("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),R(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",qe="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),I=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??I()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),g()},get message(){return I()},set message(r){I(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),R(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?F("selection:bg-primary selection:text-primary-foreground",qe,a()):p()==="search"?F("flex selection:bg-primary selection:text-primary-foreground",Je,a()):F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),J(h,f),R(r,h)};U(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Se=Ne(X,2);{var Ie=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Re();var Y=Fe();ke(()=>Ae(Y,u(y))),R(x,Y)},$$slots:{default:!0}})}};U(Se,r=>{u(y)&&r(Ie)})}return R(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,qe as o,vt as p,Je as q,ct as s,Ge as t};
|
|
1
|
+
import{b8 as te,ao as j,_ as H,ae as N,c0 as Ce,aR as re,c5 as Oe,by as ne,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as R,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Ne,c9 as z,be as Re,b$ as Fe,b_ as ke,bO as Ae}from"./3SdAC2_C.js";import{t as le,bo as m,bw as de,bp as ce,b as ue}from"./CtfEuoOH.js";import{i as U}from"./DynUeYUu.js";import{b as W,e as F}from"./B26ZHg3s.js";import{b as q}from"./Dn334wJv.js";import{t as Be}from"./CGmYraIa.js";import{n as G,l as We,c as De}from"./Bx1P9uW7.js";import"./B3T1oiJl.js";import{a_ as Me}from"./D9R5fzn8.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&H();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),N!==null&&o.add(N),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),N!==null&&o.add(N)),ne(()=>{j&&e.type==="checkbox"&&H();var s=t();if(e===document.activeElement){var i=N;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},S=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});I?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&I?.unobserve?.(v),a?(o.set(b,a),I?.observe(a)):o.delete(b),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),I?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var He=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),Ue=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,He);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=Ue();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>F("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),R(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",qe="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),I=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??I()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),g()},get message(){return I()},set message(r){I(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),R(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?F("selection:bg-primary selection:text-primary-foreground",qe,a()):p()==="search"?F("flex selection:bg-primary selection:text-primary-foreground",Je,a()):F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),J(h,f),R(r,h)};U(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Se=Ne(X,2);{var Ie=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Re();var Y=Fe();ke(()=>Ae(Y,u(y))),R(x,Y)},$$slots:{default:!0}})}};U(Se,r=>{u(y)&&r(Ie)})}return R(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,qe as o,vt as p,Je as q,ct as s,Ge as t};
|