@intent-hq/web 2.375.1 → 2.376.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/{Dn-hGN0g.js → -Hb5Lymn.js} +1 -1
- package/web/app/immutable/chunks/{CQ6jYKtE.js → -bihBnD_.js} +1 -1
- package/web/app/immutable/chunks/{DKUOdUyV.js → 0rEEjvhW.js} +1 -1
- package/web/app/immutable/chunks/1KDVFF23.js +1 -0
- package/web/app/immutable/chunks/{Xgzrv-dN.js → 1wMLd-77.js} +1 -1
- package/web/app/immutable/chunks/{BX9IoE2d.js → 26zQgwyJ.js} +1 -1
- package/web/app/immutable/chunks/{DSiF4FpM.js → 2WaF6vs_.js} +1 -1
- package/web/app/immutable/chunks/{C7Uh4cHO.js → 2tp4E25F.js} +1 -1
- package/web/app/immutable/chunks/{Bd6SODL5.js → 471Fgn_p.js} +1 -1
- package/web/app/immutable/chunks/{Cpr2SOSC.js → 6FXzbKIf.js} +1 -1
- package/web/app/immutable/chunks/{CYYyuCBb.js → 6GF_gyTS.js} +1 -1
- package/web/app/immutable/chunks/{DQiheiDa.js → 6HwVA3Xi.js} +48 -48
- package/web/app/immutable/chunks/{DODG7FHv.js → 6NqQpMgA.js} +1 -1
- package/web/app/immutable/chunks/{DY61j2wq.js → 7n3mxV6t.js} +1 -1
- package/web/app/immutable/chunks/{B_jbAa0I.js → 8PIbpdJu.js} +1 -1
- package/web/app/immutable/chunks/{C-7W2F0B.js → 8UE1B61A.js} +1 -1
- package/web/app/immutable/chunks/{B4SJ0wZk.js → 8VOCP3Xx.js} +1 -1
- package/web/app/immutable/chunks/{B4n9OEnJ.js → B4wiFjXK.js} +1 -1
- package/web/app/immutable/chunks/{CUXVMwZ6.js → B5n1Er-h.js} +1 -1
- package/web/app/immutable/chunks/B61tWwOC.js +1 -0
- package/web/app/immutable/chunks/{BDsVnMYl.js → B6ZbCtHN.js} +1 -1
- package/web/app/immutable/chunks/{CM4xaytB.js → B6Zf-ZTX.js} +1 -1
- package/web/app/immutable/chunks/{YfYAjqUM.js → B77YOXDU.js} +1 -1
- package/web/app/immutable/chunks/{BTKPx9nP.js → B85xL2lt.js} +3 -3
- package/web/app/immutable/chunks/{D3HVFnZe.js → B8tcC_lC.js} +1 -1
- package/web/app/immutable/chunks/{67uMgcnU.js → B9F4r5fH.js} +1 -1
- package/web/app/immutable/chunks/{CtX28OJm.js → BA7mfVzm.js} +1 -1
- package/web/app/immutable/chunks/{kFANwwYX.js → BEbBWmo4.js} +1 -1
- package/web/app/immutable/chunks/{C7TJE1vk.js → BEv4fIdD.js} +1 -1
- package/web/app/immutable/chunks/{C9EedYBu.js → BFT4wQs3.js} +1 -1
- package/web/app/immutable/chunks/{DNozBV3M.js → BGql-rAX.js} +1 -1
- package/web/app/immutable/chunks/{iykV4pvb.js → BHsQzwHt.js} +1 -1
- package/web/app/immutable/chunks/{Ds6Uj2aI.js → BIGkxv6Q.js} +1 -1
- package/web/app/immutable/chunks/{BWtq4mC4.js → BIwMjRQQ.js} +1 -1
- package/web/app/immutable/chunks/{CzEqpD5b.js → BLNcc2k4.js} +1 -1
- package/web/app/immutable/chunks/{BbzFLKZE.js → BMScw2DS.js} +1 -1
- package/web/app/immutable/chunks/{gsUgKMwT.js → BMfUzLG6.js} +1 -1
- package/web/app/immutable/chunks/{DD_c8x6U.js → BOZ6hjJI.js} +2 -2
- package/web/app/immutable/chunks/{mM-wy2h5.js → BP7XtCsE.js} +1 -1
- package/web/app/immutable/chunks/{NgEAPl8f.js → BPo1GPk4.js} +2 -2
- package/web/app/immutable/chunks/{CF0098kp.js → BPqKxoH8.js} +1 -1
- package/web/app/immutable/chunks/{BKPOvbtV.js → BPx3dFHu.js} +1 -1
- package/web/app/immutable/chunks/{DuPkRrZF.js → BSyKFBWd.js} +1 -1
- package/web/app/immutable/chunks/{DaUQbJQJ.js → BWBQA0E0.js} +1 -1
- package/web/app/immutable/chunks/{dqvdjjXR.js → BWIYTJ4a.js} +3 -3
- package/web/app/immutable/chunks/{BDXSQt10.js → BWyPNph7.js} +2 -2
- package/web/app/immutable/chunks/{MBA6k0j3.js → BYBN65Dm.js} +1 -1
- package/web/app/immutable/chunks/{CiD4x8Gl.js → BZytk_HL.js} +1 -1
- package/web/app/immutable/chunks/{ChbTF48b.js → BaO0hXxI.js} +1 -1
- package/web/app/immutable/chunks/{-18XT1CI.js → BblwdMxR.js} +1 -1
- package/web/app/immutable/chunks/{DIylOQL5.js → BcEldzTj.js} +1 -1
- package/web/app/immutable/chunks/{D_o67XD6.js → BcliNPZw.js} +2 -2
- package/web/app/immutable/chunks/{CRl6sOjh.js → Bco7_wmI.js} +1 -1
- package/web/app/immutable/chunks/{B_3JIPw3.js → BdBn1UvT.js} +1 -1
- package/web/app/immutable/chunks/{SMT1sep4.js → BdNdGDSe.js} +1 -1
- package/web/app/immutable/chunks/{DppdhMsn.js → BdaN2XXm.js} +1 -1
- package/web/app/immutable/chunks/{CMFbZICM.js → Bdn-RKqv.js} +2 -2
- package/web/app/immutable/chunks/{MyWfy8xc.js → BePTHsT0.js} +1 -1
- package/web/app/immutable/chunks/{PZRS5x7m.js → Bek4Es60.js} +1 -1
- package/web/app/immutable/chunks/{H3ekn9Mt.js → BjRLyMd2.js} +1 -1
- package/web/app/immutable/chunks/{5mmUTVhd.js → BjYingUt.js} +1 -1
- package/web/app/immutable/chunks/{DZ8q1fkg.js → BkcFLgQ7.js} +1 -1
- package/web/app/immutable/chunks/{C1m4pSe1.js → BkmrZjpE.js} +1 -1
- package/web/app/immutable/chunks/{ClkC2csJ.js → BlXvVwTG.js} +1 -1
- package/web/app/immutable/chunks/{DqujvsHK.js → BntFPxwt.js} +1 -1
- package/web/app/immutable/chunks/{CZJDTQJi.js → Bo5PTszQ.js} +1 -1
- package/web/app/immutable/chunks/{CkRR8JwL.js → BoLBqPln.js} +1 -1
- package/web/app/immutable/chunks/{CSbK1_CV.js → BpT_ybtH.js} +2 -2
- package/web/app/immutable/chunks/{BOsHJKjO.js → BpimY2Bn.js} +2 -2
- package/web/app/immutable/chunks/{eGxC9Zfx.js → Br9RT7xb.js} +1 -1
- package/web/app/immutable/chunks/{BsknvdQb.js → Bs1CY0TU.js} +1 -1
- package/web/app/immutable/chunks/{DV_Q2hiQ.js → Bt2C0fwl.js} +2 -2
- package/web/app/immutable/chunks/{DgOwYCT0.js → BtT-JO5g.js} +1 -1
- package/web/app/immutable/chunks/{Dgn5Otg4.js → Bu4YAtNq.js} +1 -1
- package/web/app/immutable/chunks/{BCKmKE5y.js → BuFlry2f.js} +1 -1
- package/web/app/immutable/chunks/{Bk5eDkyv.js → BuXc_maR.js} +1 -1
- package/web/app/immutable/chunks/{DvOdp8Jx.js → Bv5YjDej.js} +1 -1
- package/web/app/immutable/chunks/{ChoM6f6w.js → BvjVhe2e.js} +1 -1
- package/web/app/immutable/chunks/{Bu7GfLOK.js → BvvCJG4x.js} +1 -1
- package/web/app/immutable/chunks/{BSroN1Rt.js → ByJyX5qZ.js} +1 -1
- package/web/app/immutable/chunks/{C_GpcLP2.js → BzwPeFzF.js} +1 -1
- package/web/app/immutable/chunks/{Q5HWwxnx.js → C0kzahSL.js} +1 -1
- package/web/app/immutable/chunks/{vXh-PQQZ.js → C0nXBDlv.js} +1 -1
- package/web/app/immutable/chunks/{COIbDYtT.js → C22LcJ65.js} +3 -3
- package/web/app/immutable/chunks/{U6kzE96u.js → C3beNZjc.js} +1 -1
- package/web/app/immutable/chunks/{DINI7WNX.js → C3iIVLbv.js} +1 -1
- package/web/app/immutable/chunks/{tnfQ532f.js → C4cfJuJM.js} +1 -1
- package/web/app/immutable/chunks/{iwQqOlmN.js → C7Ibt0hX.js} +1 -1
- package/web/app/immutable/chunks/{fXti0RCR.js → C7hm9bSX.js} +1 -1
- package/web/app/immutable/chunks/{CiJWG6bO.js → C82gBCX8.js} +1 -1
- package/web/app/immutable/chunks/{CXjIzVpl.js → C9x6kmJK.js} +1 -1
- package/web/app/immutable/chunks/{BmC0p6X8.js → CALsJq65.js} +1 -1
- package/web/app/immutable/chunks/{CnMgdwKG.js → CBLFNmYJ.js} +1 -1
- package/web/app/immutable/chunks/{DaysnCXK.js → CBmGf0Ke.js} +1 -1
- package/web/app/immutable/chunks/{gcpLbmeh.js → CCEqDzPP.js} +1 -1
- package/web/app/immutable/chunks/{DgH7yAy-.js → CCWqLSpV.js} +1 -1
- package/web/app/immutable/chunks/{C5l6D9GX.js → CClsvy7n.js} +1 -1
- package/web/app/immutable/chunks/{CFqcGY4P.js → CEgHOs22.js} +1 -1
- package/web/app/immutable/chunks/{GlvfRTgI.js → CEqmtghP.js} +1 -1
- package/web/app/immutable/chunks/{RLFGU-s6.js → CFLXlno6.js} +1 -1
- package/web/app/immutable/chunks/{E0KBz4I2.js → CGx1Vpie.js} +1 -1
- package/web/app/immutable/chunks/{Zw1KxEm0.js → CIzlkLuu.js} +1 -1
- package/web/app/immutable/chunks/{D806p2LW.js → CJBG3N9y.js} +3 -3
- package/web/app/immutable/chunks/{D5HhSqbc.js → CJJ2D2db.js} +1 -1
- package/web/app/immutable/chunks/{LAC4SG96.js → CJfYXtXQ.js} +1 -1
- package/web/app/immutable/chunks/{C0JDt0nm.js → CKGNYRrS.js} +2 -2
- package/web/app/immutable/chunks/{P3O1Bi5N.js → CKKDDlBT.js} +1 -1
- package/web/app/immutable/chunks/{Cy9qAjIU.js → CL6yJ0UM.js} +1 -1
- package/web/app/immutable/chunks/{DGlNRMU1.js → CLG1DPRT.js} +2 -2
- package/web/app/immutable/chunks/{qPYbzgcC.js → CMgAi196.js} +1 -1
- package/web/app/immutable/chunks/{zjXa9LeK.js → CMn7jvlN.js} +1 -1
- package/web/app/immutable/chunks/{LGfIT3MS.js → CN0Csvus.js} +3 -3
- package/web/app/immutable/chunks/{Ctusnxiu.js → CN9rXc7J.js} +1 -1
- package/web/app/immutable/chunks/{DfdqseMI.js → COK2QQN9.js} +1 -1
- package/web/app/immutable/chunks/{LDe4IsYZ.js → COZ3dQ_A.js} +1 -1
- package/web/app/immutable/chunks/{IVk1JAtP.js → CPEu2Vil.js} +1 -1
- package/web/app/immutable/chunks/{DSiZ9qTg.js → CQQvsDes.js} +1 -1
- package/web/app/immutable/chunks/{Cq76BY90.js → CQww8mRz.js} +1 -1
- package/web/app/immutable/chunks/{CberoJl6.js → CQx3pm4t.js} +1 -1
- package/web/app/immutable/chunks/{uE6SDSU_.js → CSepGuJ-.js} +1 -1
- package/web/app/immutable/chunks/CT6GHk2v.js +1 -0
- package/web/app/immutable/chunks/{BxVNHcGR.js → CTDEoCzv.js} +1 -1
- package/web/app/immutable/chunks/{oJ_ZL_ms.js → CToFQRbb.js} +1 -1
- package/web/app/immutable/chunks/{alEgYZuT.js → CUUAtNdA.js} +1 -1
- package/web/app/immutable/chunks/CW7lfTzm.js +177 -0
- package/web/app/immutable/chunks/{C58p8xFm.js → CWFWI1JB.js} +1 -1
- package/web/app/immutable/chunks/{S7_elIn6.js → CX4bqTrJ.js} +1 -1
- package/web/app/immutable/chunks/{y-lOZYhA.js → CXfim-2t.js} +1 -1
- package/web/app/immutable/chunks/{D9JbOH_S.js → CXgy6Mbb.js} +1 -1
- package/web/app/immutable/chunks/{D1JjMDax.js → CYCawVEx.js} +1 -1
- package/web/app/immutable/chunks/{BlyKuyB7.js → CZw2t1gL.js} +1 -1
- package/web/app/immutable/chunks/{kuwy0JZA.js → C_0xgdqY.js} +1 -1
- package/web/app/immutable/chunks/{DzVqblgy.js → C_BHeuK7.js} +1 -1
- package/web/app/immutable/chunks/{DuDStABj.js → Ca9qLvAG.js} +1 -1
- package/web/app/immutable/chunks/{6JKrky9_.js → CbnYiL9b.js} +1 -1
- package/web/app/immutable/chunks/{CHUCX9T6.js → CdgNuFkc.js} +1 -1
- package/web/app/immutable/chunks/{DZCvTRBp.js → CdpTO1ew.js} +1 -1
- package/web/app/immutable/chunks/{CHLHWub0.js → CfCk_l9B.js} +1 -1
- package/web/app/immutable/chunks/{DoIr8Q2r.js → Ch-pFfsN.js} +1 -1
- package/web/app/immutable/chunks/{xS3xfMki.js → Cihg5T05.js} +1 -1
- package/web/app/immutable/chunks/{fXwGuYzr.js → CihneiLA.js} +1 -1
- package/web/app/immutable/chunks/{DgaiTQpw.js → CjK2zm52.js} +1 -1
- package/web/app/immutable/chunks/{BJuNVIII.js → CkrblKaH.js} +1 -1
- package/web/app/immutable/chunks/{gSg6l32T.js → CmdE1AJL.js} +1 -1
- package/web/app/immutable/chunks/{C44hzh9R.js → CntPxeXh.js} +1 -1
- package/web/app/immutable/chunks/{1KCpY35B.js → Co4Bm5eY.js} +1 -1
- package/web/app/immutable/chunks/{BjWOzuMm.js → CpIVKWwx.js} +4 -4
- package/web/app/immutable/chunks/{D_Y9WK2x.js → CqM0ozU7.js} +1 -1
- package/web/app/immutable/chunks/{B4mmdCiF.js → CqsFOLCu.js} +1 -1
- package/web/app/immutable/chunks/{l4TJFOXC.js → CrNPV-Vp.js} +1 -1
- package/web/app/immutable/chunks/{DgIh2Fs6.js → CrgJwS7n.js} +1 -1
- package/web/app/immutable/chunks/{CFhbo3o1.js → Cs85XoQa.js} +1 -1
- package/web/app/immutable/chunks/{DZmV2kHY.js → CtECFAby.js} +1 -1
- package/web/app/immutable/chunks/{D6GBnYDv.js → CtguhKZB.js} +1 -1
- package/web/app/immutable/chunks/{C-JwFHXS.js → CuAAvi1f.js} +1 -1
- package/web/app/immutable/chunks/{DHqMqA41.js → CvZrEuUX.js} +1 -1
- package/web/app/immutable/chunks/{m8gDbIPC.js → Cvp_IOBl.js} +2 -2
- package/web/app/immutable/chunks/{D6hUzfgH.js → Cw3skelK.js} +1 -1
- package/web/app/immutable/chunks/{CGG7txTQ.js → CwBMToxu.js} +1 -1
- package/web/app/immutable/chunks/{B3fU6XQp.js → D-rGNJzU.js} +1 -1
- package/web/app/immutable/chunks/{TodMLsNs.js → D1DNtybi.js} +1 -1
- package/web/app/immutable/chunks/{grQh-L5q.js → D2eaIIb4.js} +2 -2
- package/web/app/immutable/chunks/{DJ2vnC9G.js → D4EwlENg.js} +1 -1
- package/web/app/immutable/chunks/{CFUDIGea.js → D4gtBVLN.js} +1 -1
- package/web/app/immutable/chunks/{BepABSAk.js → D4lP_X71.js} +1 -1
- package/web/app/immutable/chunks/{o1gxvTJU.js → D5bd-ecJ.js} +1 -1
- package/web/app/immutable/chunks/{CpYW1yE7.js → D5raGlU7.js} +2 -2
- package/web/app/immutable/chunks/{B5CW3gDe.js → D6W9Whdp.js} +3 -3
- package/web/app/immutable/chunks/{Byjmi-8z.js → D7u67tV0.js} +2 -2
- package/web/app/immutable/chunks/{BkLJnbD1.js → D7vAVIvz.js} +1 -1
- package/web/app/immutable/chunks/{D85P44Dj.js → D8B7qxXm.js} +1 -1
- package/web/app/immutable/chunks/{Db_i0IkD.js → D8XqXEXt.js} +1 -1
- package/web/app/immutable/chunks/{DoQnqQZn.js → DCibR4Jk.js} +1 -1
- package/web/app/immutable/chunks/{BowQ7sBM.js → DDFAsI-l.js} +1 -1
- package/web/app/immutable/chunks/{LNZr9DCJ.js → DHSWOw-U.js} +1 -1
- package/web/app/immutable/chunks/{C6GJZLOP.js → DHbv9I-C.js} +1 -1
- package/web/app/immutable/chunks/{jG67l4Uo.js → DIDOx8hd.js} +2 -2
- package/web/app/immutable/chunks/{D_otNUZh.js → DJk5np0g.js} +1 -1
- package/web/app/immutable/chunks/{CBl7oWeN.js → DKHSbBis.js} +1 -1
- package/web/app/immutable/chunks/{D-ls8znw.js → DKIi_opT.js} +1 -1
- package/web/app/immutable/chunks/{5uDsFopc.js → DM4cCUDd.js} +1 -1
- package/web/app/immutable/chunks/{B6CxzJhM.js → DOEOrBL9.js} +1 -1
- package/web/app/immutable/chunks/{CyyqjEBc.js → DOMMuuHJ.js} +1 -1
- package/web/app/immutable/chunks/{kFRDyP-N.js → DPF9_zKV.js} +1 -1
- package/web/app/immutable/chunks/{C6jYe9up.js → DPLDRqMC.js} +1 -1
- package/web/app/immutable/chunks/{BO3WriTy.js → DPbnmxjX.js} +1 -1
- package/web/app/immutable/chunks/{CBtQnhwT.js → DPztwkUP.js} +1 -1
- package/web/app/immutable/chunks/{DinWeICM.js → DQGdnFBd.js} +1 -1
- package/web/app/immutable/chunks/{mdoDOmuU.js → DQmW4_9G.js} +1 -1
- package/web/app/immutable/chunks/{DzfHkSZF.js → DS5B84mn.js} +1 -1
- package/web/app/immutable/chunks/{P-zm4ktU.js → DSvyONiq.js} +1 -1
- package/web/app/immutable/chunks/{jaSHlZjt.js → DT8FaJbg.js} +1 -1
- package/web/app/immutable/chunks/{BIo9gpGl.js → DUT4xhYi.js} +1 -1
- package/web/app/immutable/chunks/{D6YX_GFv.js → DVok8lSR.js} +1 -1
- package/web/app/immutable/chunks/{CdvXSvOC.js → DX_ZPiRZ.js} +1 -1
- package/web/app/immutable/chunks/{BmEIQ8E-.js → DY-U3TFa.js} +1 -1
- package/web/app/immutable/chunks/{COUB9dHY.js → DYGC3eZn.js} +1 -1
- package/web/app/immutable/chunks/{Jcrj5YZi.js → DZEGFjPx.js} +1 -1
- package/web/app/immutable/chunks/{BrFnR1vI.js → DZbKPa1t.js} +1 -1
- package/web/app/immutable/chunks/{PCtwJJ25.js → D_xvUCUD.js} +1 -1
- package/web/app/immutable/chunks/{DoA3JmdK.js → DbSttgXv.js} +1 -1
- package/web/app/immutable/chunks/{3rxHCGTW.js → DcZr-m_l.js} +1 -1
- package/web/app/immutable/chunks/{DK-vph3Z.js → DdJ4cD_u.js} +1 -1
- package/web/app/immutable/chunks/{Dtveg46I.js → DeDQhZv5.js} +1 -1
- package/web/app/immutable/chunks/{pZsrsFnW.js → Deoe5X7L.js} +1 -1
- package/web/app/immutable/chunks/{B7ydANq7.js → Dfq_rEeO.js} +1 -1
- package/web/app/immutable/chunks/{BE5ZU7pI.js → DhW_HWBK.js} +1 -1
- package/web/app/immutable/chunks/{CYWgGrsf.js → Dh_eorhd.js} +1 -1
- package/web/app/immutable/chunks/{ChJ4msi3.js → Dhj-Oo-y.js} +1 -1
- package/web/app/immutable/chunks/{CBHXSekd.js → DiEy7mCR.js} +1 -1
- package/web/app/immutable/chunks/{F-NRzkEu.js → DiLFzwi3.js} +1 -1
- package/web/app/immutable/chunks/{BZSs3eKh.js → DiP5BH15.js} +1 -1
- package/web/app/immutable/chunks/{Bb_mQye1.js → Div7CQPf.js} +1 -1
- package/web/app/immutable/chunks/{DK3AlKip.js → DjBxG6q0.js} +3 -3
- package/web/app/immutable/chunks/{BifXEk-G.js → Dk0afiu6.js} +1 -1
- package/web/app/immutable/chunks/{CpV-ehZ5.js → DkYquFOp.js} +1 -1
- package/web/app/immutable/chunks/DmnStjtN.js +1 -0
- package/web/app/immutable/chunks/{DZBnfhEV.js → Dmy603At.js} +1 -1
- package/web/app/immutable/chunks/{DJuFWuFo.js → Dn7Cyi1s.js} +1 -1
- package/web/app/immutable/chunks/{CBRC7st2.js → Domj4ONg.js} +2 -2
- package/web/app/immutable/chunks/{CQxAYjD7.js → DpMsJtM0.js} +1 -1
- package/web/app/immutable/chunks/{kZanyiqf.js → DpSAF6fh.js} +1 -1
- package/web/app/immutable/chunks/{XyC5Phh7.js → DpgIqMGp.js} +1 -1
- package/web/app/immutable/chunks/{aToNeEMa.js → DqPe5uyz.js} +1 -1
- package/web/app/immutable/chunks/{DmQm2Dw6.js → DtEw_Okh.js} +1 -1
- package/web/app/immutable/chunks/{Di9CSB6H.js → DtYDlbcb.js} +1 -1
- package/web/app/immutable/chunks/{Bw0E8D92.js → Dv6PZjTW.js} +1 -1
- package/web/app/immutable/chunks/{yqs-hTyP.js → DvwOszqf.js} +1 -1
- package/web/app/immutable/chunks/{DTutiDCZ.js → DzTe1W0Z.js} +1 -1
- package/web/app/immutable/chunks/{CFtfWLBC.js → Dzl5aoA8.js} +1 -1
- package/web/app/immutable/chunks/{DyiA0AJU.js → DzsC5hAQ.js} +1 -1
- package/web/app/immutable/chunks/{Dv3EtVHJ.js → EmfdzzTF.js} +1 -1
- package/web/app/immutable/chunks/{K7F-rH-C.js → IB26d-_M.js} +4 -4
- package/web/app/immutable/chunks/{BL39LNxU.js → IdqO6uHC.js} +1 -1
- package/web/app/immutable/chunks/{B5bnHhgO.js → J9vGyyn3.js} +1 -1
- package/web/app/immutable/chunks/{a-OtAcF_.js → K0CA4l_-.js} +3 -3
- package/web/app/immutable/chunks/{DbCeN0Lt.js → KImhPY_I.js} +1 -1
- package/web/app/immutable/chunks/{DUXVcIKV.js → KS10KUQ4.js} +1 -1
- package/web/app/immutable/chunks/{DVcCnfZH.js → KaHKnBKn.js} +1 -1
- package/web/app/immutable/chunks/{C-nutp9J.js → L0PmMCK6.js} +1 -1
- package/web/app/immutable/chunks/{YbP7yBkb.js → LFlj1pUW.js} +1 -1
- package/web/app/immutable/chunks/{4r36FIB7.js → MujvTDgv.js} +1 -1
- package/web/app/immutable/chunks/{QjNLPDal.js → Mw2Z7eLx.js} +1 -1
- package/web/app/immutable/chunks/{DtBx3nLm.js → NEcXJ8Qo.js} +1 -1
- package/web/app/immutable/chunks/{CJZ6Gu1k.js → Ow3KARwj.js} +1 -1
- package/web/app/immutable/chunks/{CCEQVSjx.js → P27dN3C7.js} +1 -1
- package/web/app/immutable/chunks/{BK0rB8kZ.js → Pqx84Da9.js} +1 -1
- package/web/app/immutable/chunks/{8TUe2kcz.js → PtMxuYy8.js} +1 -1
- package/web/app/immutable/chunks/Q-Hp56ht.js +6 -0
- package/web/app/immutable/chunks/{zrdFYBgX.js → Qzhec1TY.js} +1 -1
- package/web/app/immutable/chunks/{Cr9glZDh.js → RyWl3sPF.js} +1 -1
- package/web/app/immutable/chunks/{BReER1n3.js → THm8CnE2.js} +1 -1
- package/web/app/immutable/chunks/{C-zY3GF-.js → UHs-xfbd.js} +1 -1
- package/web/app/immutable/chunks/{CqJcYBUx.js → UaQjBP_O.js} +1 -1
- package/web/app/immutable/chunks/{D0Ayz4Dm.js → Ug7t_gUQ.js} +1 -1
- package/web/app/immutable/chunks/{DXwcjaPR.js → Ydj2ePK_.js} +2 -2
- package/web/app/immutable/chunks/{1Wzdy1K8.js → YopO0YfH.js} +6 -6
- package/web/app/immutable/chunks/{DgiJ63hc.js → ZWIGjqdM.js} +3 -3
- package/web/app/immutable/chunks/{BQg4hK6W.js → Zg9SWWIQ.js} +1 -1
- package/web/app/immutable/chunks/{Cwvt_P5T.js → a0CN3en2.js} +1 -1
- package/web/app/immutable/chunks/{njprJ3WZ.js → aqQCGQpk.js} +1 -1
- package/web/app/immutable/chunks/{BYC0ucSR.js → bcfKuKQn.js} +1 -1
- package/web/app/immutable/chunks/{BHni5QqW.js → cP-p0FYL.js} +1 -1
- package/web/app/immutable/chunks/{DMqmqAT4.js → dIyiVmNx.js} +1 -1
- package/web/app/immutable/chunks/{DcNvIFJV.js → ebxZ5PPm.js} +1 -1
- package/web/app/immutable/chunks/{DVNEvaXi.js → fFnyP4ej.js} +1 -1
- package/web/app/immutable/chunks/{eZSKfAFO.js → gY6D1J3N.js} +1 -1
- package/web/app/immutable/chunks/{B9-EoZ1p.js → iNDSBgu7.js} +1 -1
- package/web/app/immutable/chunks/{BLYFfqzj.js → jUAybD8G.js} +1 -1
- package/web/app/immutable/chunks/{ChGLvrw4.js → kZL4nf_J.js} +4 -4
- package/web/app/immutable/chunks/{B0O5mhBM.js → mnnjJoDI.js} +1 -1
- package/web/app/immutable/chunks/{DyT0mOdr.js → my69Ox9w.js} +4 -4
- package/web/app/immutable/chunks/{DQAJLaJ3.js → nHwpsxWy.js} +1 -1
- package/web/app/immutable/chunks/{Dqtmunn7.js → pIjvEfMB.js} +5 -5
- package/web/app/immutable/chunks/{BY16_RoT.js → q9cUG1dc.js} +1 -1
- package/web/app/immutable/chunks/{DRPKvmfX.js → qg2KHuAY.js} +1 -1
- package/web/app/immutable/chunks/{D1HPSWvP.js → qyBT4DY2.js} +1 -1
- package/web/app/immutable/chunks/{Cn8hCY5y.js → rCkv5VsR.js} +2 -2
- package/web/app/immutable/chunks/{hK5d1dQ0.js → rHK6sLv4.js} +1 -1
- package/web/app/immutable/chunks/{BevEoYEw.js → sEj9k2KM.js} +1 -1
- package/web/app/immutable/chunks/{qkmjEtXH.js → sZBOVpM6.js} +3 -3
- package/web/app/immutable/chunks/{CyaIe0jD.js → tGL9OSFf.js} +1 -1
- package/web/app/immutable/chunks/{mF8ZdCMN.js → thdnIk1K.js} +1 -1
- package/web/app/immutable/chunks/{t4bVJhrn.js → ucKP4cAm.js} +4 -4
- package/web/app/immutable/chunks/{BBiqqybB.js → wfSdTH77.js} +1 -1
- package/web/app/immutable/chunks/{Ilt_8E2i.js → x8bssjcx.js} +1 -1
- package/web/app/immutable/chunks/{Cin575hV.js → xFC1lhKl.js} +1 -1
- package/web/app/immutable/chunks/{Bl8fHOk-.js → xIoxAtek.js} +1 -1
- package/web/app/immutable/chunks/{DCTwUEO7.js → xJBWkpxc.js} +1 -1
- package/web/app/immutable/chunks/{DkkEizQf.js → zzl2tBQf.js} +1 -1
- package/web/app/immutable/entry/{app.B-3yrq60.js → app.YY31OTuo.js} +3 -3
- package/web/app/immutable/entry/start.DBl7cnaM.js +1 -0
- package/web/app/immutable/nodes/{0.Dr7z-ndg.js → 0.I2U7Nyeq.js} +1 -1
- package/web/app/immutable/nodes/{1.DszvgcVt.js → 1.CgZVKAf9.js} +1 -1
- package/web/app/immutable/nodes/{10.mpjVYgcT.js → 10.CsryZO2H.js} +5 -5
- package/web/app/immutable/nodes/{11.d9OIWvmS.js → 11.BTowiakT.js} +1 -1
- package/web/app/immutable/nodes/{12.hNKUSgvY.js → 12.S6PrlAwz.js} +1 -1
- package/web/app/immutable/nodes/{13.NTcuwB8X.js → 13.Bs_o-uwb.js} +1 -1
- package/web/app/immutable/nodes/{14.C4hEzDzc.js → 14.CIZDoMeA.js} +3 -3
- package/web/app/immutable/nodes/{15.BGv16BME.js → 15.CzU59iiE.js} +1 -1
- package/web/app/immutable/nodes/{16.BLKEYdtz.js → 16.BgJmXimX.js} +1 -1
- package/web/app/immutable/nodes/{17.Cw1VnAlL.js → 17.BWRlIYI7.js} +1 -1
- package/web/app/immutable/nodes/{18.BC2tc74_.js → 18.BV2orlA1.js} +1 -1
- package/web/app/immutable/nodes/{19.BLf_cCOa.js → 19.vtvcgUzO.js} +2 -2
- package/web/app/immutable/nodes/{2.DT49t-u_.js → 2.xEZtPl1l.js} +4 -4
- package/web/app/immutable/nodes/{20.CAN0HPlm.js → 20.DLg8hCzP.js} +1 -1
- package/web/app/immutable/nodes/{3.CHLlivF3.js → 3.hyVEcKKo.js} +1 -1
- package/web/app/immutable/nodes/{4.D2tKSs2v.js → 4.CdWgO8Xv.js} +1 -1
- package/web/app/immutable/nodes/{5.B9Lx7aa1.js → 5.BhLUauX8.js} +1 -1
- package/web/app/immutable/nodes/{6.BXEdmXk5.js → 6.B3Vi01S1.js} +1 -1
- package/web/app/immutable/nodes/{7.Cg1blkaN.js → 7.DW7p588B.js} +1 -1
- package/web/app/immutable/nodes/{8.B5g4h2T5.js → 8.Bt8gdMyu.js} +1 -1
- package/web/app/immutable/nodes/{9.CQeYWw6-.js → 9.BSZ1-MKZ.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/B6sO6A0G.js +0 -1
- package/web/app/immutable/chunks/BSev9KPj.js +0 -1
- package/web/app/immutable/chunks/Bv8Gaorn.js +0 -1
- package/web/app/immutable/chunks/CAEqRKhy.js +0 -1
- package/web/app/immutable/chunks/Dr4PDf9D.js +0 -6
- package/web/app/immutable/chunks/EZ4dI6hS.js +0 -177
- package/web/app/immutable/entry/start.DZZRsHd3.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./
|
|
1
|
+
import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./kZL4nf_J.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
|
|
2
2
|
`),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ie=p(()=>O,"getAccDescription"),ae=Y,ne=P,oe={clear:J,setTitle:Y,getTitle:P,addRule:Q,getRules:Z,getRule:V,setAccTitle:ee,getAccTitle:te,setAccDescription:re,getAccDescription:ie,setDiagramTitle:ae,getDiagramTitle:ne},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},le=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,se=/^[\w "',.-]+$/,de=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),L=p(e=>e?Object.keys(e).every(i=>i==="railroad"||de.has(i)):!1,"isRailroadStyleOptions"),ce=p(e=>e?"railroad"in e&&e.railroad?e.railroad:L(e)?e:{}:{},"extractRailroadOverrides"),me=p(e=>{if(!e||L(e))return{};const{railroad:i,svgId:n,theme:a,look:t,...r}=e;return r},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return le.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return se.test(n)?n:i},"sanitizeFontFamilyValue"),F=p((e,i)=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:i},"sanitizeNumberValue"),he=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),pe=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=he(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:n,terminalFill:m(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:m(e.lineColor,f.lineColor),markerFill:m(e.lineColor,f.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),E=p(e=>{const i=_(),n={...G(),...i.themeVariables??{},...me(e)},a=pe(n),t={...i.railroad??{},...ce(e)};return{compactMode:t.compactMode??a.compactMode,padding:F(t.padding,a.padding),verticalSeparation:F(t.verticalSeparation,a.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,a.horizontalSeparation),arcRadius:F(t.arcRadius,a.arcRadius),fontSize:F(t.fontSize,a.fontSize),fontFamily:X(t.fontFamily,a.fontFamily),terminalFill:m(t.terminalFill,a.terminalFill),terminalStroke:m(t.terminalStroke,a.terminalStroke),terminalTextColor:m(t.terminalTextColor,a.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:m(t.lineColor,a.lineColor),strokeWidth:F(t.strokeWidth,a.strokeWidth),markerFill:m(t.markerFill,a.markerFill),commentFill:m(t.commentFill,a.commentFill),commentStroke:m(t.commentStroke,a.commentStroke),commentTextColor:m(t.commentTextColor,a.commentTextColor),specialFill:m(t.specialFill,a.specialFill),specialStroke:m(t.specialStroke,a.specialStroke),ruleNameColor:m(t.ruleNameColor,a.ruleNameColor),showMarkers:t.showMarkers??a.showMarkers,markerRadius:F(t.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),Te=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
|
|
3
3
|
.railroad-diagram {
|
|
4
4
|
font-family: ${i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as y,bo as i,bw as _,b as x}from"./
|
|
1
|
+
import{t as y,bo as i,bw as _,b as x}from"./1KDVFF23.js";import{bs as C,bk as z,bH as I,a7 as N,ay as E,aD as S,W as c,bn as k,bV as w,aA as d,a5 as A,bA as P,aB as q}from"./3SdAC2_C.js";import{i as B}from"./Zg9SWWIQ.js";import{s as D}from"./Dmy603At.js";import{e as H}from"./CYCawVEx.js";var M=q("<div><!></div>");function V(l,a){if(new.target)return y({component:V,...l});C(a,!0);let n=i(a,"target",7,"body"),o=i(a,"zIndex",7,10),s=i(a,"children",7),t,m=w(!1);z(()=>{let e;return typeof n()=="string"?e=document.querySelector(n()):e=n(),e||(e=document.body),t=document.createElement("div"),t.className="portal-container",t.style.zIndex=String(o()),t.style.position="relative",e.appendChild(t),I(m,!0),()=>{t&&t.parentNode&&t.parentNode.removeChild(t)}});function f(e){return t&&t.appendChild(e),{destroy(){e&&e.parentNode&&e.parentNode.removeChild(e)}}}var u={get target(){return n()},set target(e="body"){n(e),d()},get zIndex(){return o()},set zIndex(e=10){o(e),d()},get children(){return s()},set children(e){s(e),d()},$set:_,$on:(e,r)=>x(a,e,r)},p=N(),g=E(p);{var v=e=>{var r=M(),b=A(r);D(b,s),P(r),H(r,h=>f?.(h)),c(e,r)};B(g,e=>{S(m)&&e(v)})}return c(l,p),k(u)}export{V as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as te,bo as a,br as le,bw as re,bp as ce,b as ae,bm as Ce}from"./Bv8Gaorn.js";import{bs as oe,a7 as F,ay as P,W as u,bn as se,aA as o,aD as h,c9 as k,aB as E,ca as Le,bS as Z,a5 as K,bf as Oe,bA as Q,aC as Ye,c0 as Ze,bV as et,be as he,b$ as xe,b_ as _e,bO as we,bH as tt}from"./3SdAC2_C.js";import{i as j}from"./BQg4hK6W.js";import{s as ie}from"./DZBnfhEV.js";import{c as q}from"./kZanyiqf.js";import{n as ye,l as ze,c as $e}from"./DgaiTQpw.js";import{b as Ae,e as ue,f as rt}from"./D85P44Dj.js";import{i as at,h as ot,a as st}from"./DCTwUEO7.js";import{a_ as nt,a1 as lt,f as Ne}from"./BO3WriTy.js";import"./CSbK1_CV.js";import{u as je,c as it,o as Pe,f as ct,e as ut,a as dt,D as ft,b as vt,d as gt}from"./DkkEizQf.js";import{c as mt,u as _t,s as pt,a as bt}from"./D9tVylVS.js";import{p as ht}from"./CFtfWLBC.js";import"./CnMgdwKG.js";import{b as qe}from"./Dn334wJv.js";import"./DoIr8Q2r.js";import{F as xt,a0 as wt}from"./CiD4x8Gl.js";import"./BL39LNxU.js";var yt=new Set(["$$slots","$$events","$$legacy","ref","class","forceMount","contained","staticPosition"]),Pt=E("<div></div>");function Ee(p,e){if(new.target)return te({component:Ee,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"forceMount",7,!1),g=a(e,"contained",7,!1),v=a(e,"staticPosition",7,!1),l=ce(e,yt);const i=je();var r={get ref(){return c()},set ref(_=null){c(_),o()},get class(){return n()},set class(_){n(_),o()},get forceMount(){return f()},set forceMount(_=!1){f(_),o()},get contained(){return g()},set contained(_=!1){g(_),o()},get staticPosition(){return v()},set staticPosition(_=!1){v(_),o()},$set:re,$on:(_,S)=>ae(e,_,S)},m=F(),O=P(m);{const _=(S,R)=>{let L=()=>(R?.()).props;var V=F(),U=P(V);{var ee=G=>{var X=Pt();Ae(X,s=>({...L(),"data-slot":"dialog-overlay","data-static-position":v()||void 0,class:s}),[()=>ue(g()||v()?"absolute":"fixed","inset-0 z-[var(--layer-modal)] bg-black/40 dark:bg-black/80 motion-reduce:animate-none motion-reduce:transition-none",n())]),ye(1,X,()=>ze,()=>Pe.backdrop.enter),ye(2,X,()=>$e,()=>Pe.backdrop.exit),u(G,X)},de=k(()=>f()||i());j(U,G=>{h(de)&&G(ee)})}u(S,V)};q(O,()=>it,(S,R)=>{R(S,le({forceMount:!0},()=>l,{get ref(){return c()},set ref(L){c(L)},child:_,$$slots:{child:!0}}))})}return u(p,m),se(r)}var Ot=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","container","size","forceMount","showCloseButton","closeDisabled","closeLabel","role","onInteractOutside","onOpenAutoFocus","onCloseAutoFocus","trapFocus","preventScroll","children"]),At=Ye('<svg aria-hidden="true" viewBox="0 0 16 16" fill="none"><path d="M3 3l10 10M13 3L3 13" stroke="currentColor" stroke-width="1.5"></path></svg>'),kt=E("<div><!> <!></div>"),Dt=E("<!> <!>",1);function Ft(p,e){if(new.target)return te({component:Ft,...p});oe(e,!0);const c=t=>{var A=Dt(),N=P(A);{let T=k(()=>!!v()),W=k(d);Ee(N,{get contained(){return h(T)},get staticPosition(){return h(W)}})}var Y=Z(N,2);{const T=(fe,ve)=>{let ge=()=>(ve?.()).props;var pe=F(),Be=P(pe);{var Re=De=>{var ne=kt();Ae(ne,(me,be)=>({...ge(),role:_(),"data-slot":"dialog-content","data-overlay-surface":!0,"data-size":l(),"data-static-position":me,class:be,"data-surface-level":C,onoutroend:x.finishExit}),[()=>d()||void 0,()=>ue(d()?"relative mx-auto":v()?"absolute":"fixed",!d()&&"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","dialog-editorial-content overlay-surface z-[var(--layer-modal)] grid w-full overflow-y-auto overscroll-contain p-6 text-popover-foreground outline-none motion-reduce:animate-none motion-reduce:transition-none",l()==="sm"&&(z==="compact"?"max-w-90":"max-w-100"),l()==="default"&&"max-w-110",l()==="lg"&&(z==="compact"?"max-w-120":"max-w-135"),l()==="wide"&&"max-w-2xl",l()==="editor"&&"max-w-6xl",bt(C),f())]);var Me=K(ne);ie(Me,()=>ee()??Oe);var Ge=Z(Me,2);{var Je=me=>{var be=F(),Ke=P(be);{const Qe=(Fe,Se)=>{Ne(Fe,le(()=>(Se?.()).props,{get"aria-label"(){return O()},get disabled(){return m()},variant:"ghost",size:"icon-sm",iconOnly:!0,class:"dialog-close-button absolute right-6 -translate-y-1/2 text-muted-foreground",children:(Ue,Ht)=>{var Xe=At();u(Ue,Xe)},$$slots:{default:!0}}))};q(Ke,()=>ft,(Fe,Se)=>{Se(Fe,{get disabled(){return m()},child:Qe,$$slots:{child:!0}})})}u(me,be)};j(Ge,me=>{r()&&me(Je)})}Q(ne),ye(1,ne,()=>ze,()=>Pe.dialog.enter),ye(2,ne,()=>$e,()=>Pe.dialog.exit),u(De,ne)},Ve=k(()=>J());j(Be,De=>{h(Ve)&&De(Re)})}u(fe,pe)};let W=k(()=>d()?I:$),H=k(()=>d()?I:L()),y=k(()=>d()?!1:V()),ke=k(()=>d()?!1:U());q(Y,()=>dt,(fe,ve)=>{ve(fe,le({forceMount:!0},()=>de,{onInteractOutside:b,get onOpenAutoFocus(){return h(W)},get onCloseAutoFocus(){return h(H)},get trapFocus(){return h(y)},get preventScroll(){return h(ke)},get ref(){return n()},set ref(ge){n(ge)},child:T,$$slots:{child:!0}}))})}u(t,A)};let n=a(e,"ref",15,null),f=a(e,"class",7),g=a(e,"portalProps",7),v=a(e,"container",7,null),l=a(e,"size",7,"default"),i=a(e,"forceMount",7,!1),r=a(e,"showCloseButton",7,!0),m=a(e,"closeDisabled",7,!1),O=a(e,"closeLabel",23,()=>Ce.ui_dialog_close_ariaLabel()),_=a(e,"role",7,"dialog"),S=a(e,"onInteractOutside",7),R=a(e,"onOpenAutoFocus",7),L=a(e,"onCloseAutoFocus",7),V=a(e,"trapFocus",7),U=a(e,"preventScroll",7),ee=a(e,"children",7),de=ce(e,Ot);const G=at(),X=ot();Le(()=>{const t=n();if(!(!t||!G))return G.register(t,X)});const s=je(),d=ct(),C=mt(_t()+2);pt(C);const z=nt(),J=()=>i()||s(),x=ut(J);ht(()=>n());function b(t){t.target instanceof Element&&t.target.closest("[data-image-lightbox-root]")&&t.preventDefault(),S()?.(t)}function $(t){if(R()?.(t),t.defaultPrevented||!n())return;const A=y=>y.closest('[data-slot="dialog-content"]')===n(),N=y=>!y.matches(':disabled, [aria-disabled="true"], [inert]')&&!y.closest("[inert]")&&y.getClientRects().length>0&&getComputedStyle(y).visibility==="visible",Y=Array.from(n().querySelectorAll('[data-dialog-primary-action], [data-slot="dialog-footer"] button, [data-slot="dialog-footer"] a[href]')).filter(A),T=Y.find(y=>y.hasAttribute("data-dialog-primary-action"))??Y.at(-1),W=Array.from(n().querySelectorAll('input:not([type="hidden"]), textarea, select, [contenteditable="true"]')).find(y=>A(y)&&N(y)),H=T&&N(T)?T:W??n();t.preventDefault(),H.focus({preventScroll:!0})}function I(t){t.preventDefault()}var D={get ref(){return n()},set ref(t=null){n(t),o()},get class(){return f()},set class(t){f(t),o()},get portalProps(){return g()},set portalProps(t){g(t),o()},get container(){return v()},set container(t=null){v(t),o()},get size(){return l()},set size(t="default"){l(t),o()},get forceMount(){return i()},set forceMount(t=!1){i(t),o()},get showCloseButton(){return r()},set showCloseButton(t=!0){r(t),o()},get closeDisabled(){return m()},set closeDisabled(t=!1){m(t),o()},get closeLabel(){return O()},set closeLabel(t=Ce.ui_dialog_close_ariaLabel()){O(t),o()},get role(){return _()},set role(t="dialog"){_(t),o()},get onInteractOutside(){return S()},set onInteractOutside(t){S(t),o()},get onOpenAutoFocus(){return R()},set onOpenAutoFocus(t){R(t),o()},get onCloseAutoFocus(){return L()},set onCloseAutoFocus(t){L(t),o()},get trapFocus(){return V()},set trapFocus(t){V(t),o()},get preventScroll(){return U()},set preventScroll(t){U(t),o()},get children(){return ee()},set children(t){ee(t),o()},$set:re,$on:(t,A)=>ae(e,t,A)},B=F(),w=P(B);{var M=t=>{var A=F(),N=P(A);{var Y=H=>{c(H)},T=k(()=>d()),W=H=>{var y=F(),ke=P(y);{let fe=k(()=>v()??g()?.to??G?.target());q(ke,()=>lt,(ve,ge)=>{ge(ve,le(g,{get to(){return h(fe)},children:(pe,Be)=>{c(pe)},$$slots:{default:!0}}))})}u(H,y)};j(N,H=>{h(T)?H(Y):H(W,-1)})}u(t,A)};j(w,t=>{x.mounted&&t(M)})}return u(p,B),se(D)}var St=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Te(p,e){if(new.target)return te({component:Te,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=ce(e,St);var g={get ref(){return c()},set ref(i=null){c(i),o()},get class(){return n()},set class(i){n(i),o()},$set:re,$on:(i,r)=>ae(e,i,r)},v=F(),l=P(v);{let i=k(()=>ue("type-caption break-words text-muted-foreground",n()));q(l,()=>vt,(r,m)=>{m(r,le({"data-slot":"dialog-description",get class(){return h(i)}},()=>f,{get ref(){return c()},set ref(O){c(O)}}))})}return u(p,v),se(g)}var Ct=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),It=E("<div><!></div>");function We(p,e){if(new.target)return te({component:We,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"children",7),g=ce(e,Ct);var v={get ref(){return c()},set ref(r=null){c(r),o()},get class(){return n()},set class(r){n(r),o()},get children(){return f()},set children(r){f(r),o()},$set:re,$on:(r,m)=>ae(e,r,m)},l=It();Ae(l,r=>({"data-slot":"dialog-footer",class:r,...g}),[()=>ue("dialog-actions mt-6 flex min-w-0 flex-wrap items-center justify-end gap-2",n())],void 0,void 0,"svelte-1xlmj20");var i=K(l);return ie(i,()=>f()??Oe),Q(l),qe(l,r=>c(r),()=>c()),u(p,l),se(v)}var Bt=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Mt=E("<div><!></div>");function He(p,e){if(new.target)return te({component:He,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"children",7),g=ce(e,Bt);var v={get ref(){return c()},set ref(r=null){c(r),o()},get class(){return n()},set class(r){n(r),o()},get children(){return f()},set children(r){f(r),o()},$set:re,$on:(r,m)=>ae(e,r,m)},l=Mt();Ae(l,r=>({"data-slot":"dialog-header",class:r,...g}),[()=>ue("mb-4 flex min-w-0 flex-col gap-1.5 pr-8",n())]);var i=K(l);return ie(i,()=>f()??Oe),Q(l),qe(l,r=>c(r),()=>c()),u(p,l),se(v)}var Lt=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Ie(p,e){if(new.target)return te({component:Ie,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=ce(e,Lt);var g={get ref(){return c()},set ref(i=null){c(i),o()},get class(){return n()},set class(i){n(i),o()},$set:re,$on:(i,r)=>ae(e,i,r)},v=F(),l=P(v);{let i=k(()=>ue("type-title font-bold text-foreground [anchor-name:--dialog-title]",n()));q(l,()=>gt,(r,m)=>{m(r,le({"data-slot":"dialog-title",get class(){return h(i)}},()=>f,{get ref(){return c()},set ref(O){c(O)}}))})}return u(p,v),se(g)}var zt=E('<div class="flex min-w-0 items-center gap-2"><!> <!></div>'),$t=E('<div class="flex min-w-0 flex-wrap items-center justify-between gap-3"><!> <div class="absolute right-14 top-[calc(1.5rem+var(--text-title-line-height)/2)] -translate-y-1/2"><!></div></div>'),Nt=E("<!> <!>",1),jt=E('<div data-slot="dialog-body"><div class="grid min-w-0 grid-cols-1 gap-4"><!> <!></div></div>'),qt=E('<div class="h-6 shrink-0" aria-hidden="true"></div>'),Et=E('<div class="dialog-layout flex min-h-0 min-w-0 flex-1 flex-col svelte-df1l0r"><!> <!> <!></div>');function Tt(p,e){if(new.target)return te({component:Tt,...p});oe(e,!0);const c=s=>{var d=F(),C=P(d);{var z=x=>{var b=zt(),$=K(b);{let D=k(()=>_()??Ce.ui_navButtons_goBack_tooltip());Ne($,{variant:"ghost",size:"icon",class:"-my-1",get"aria-label"(){return h(D)},get onclick(){return O()},get ref(){return h(S)},set ref(B){tt(S,B,!0)},children:(B,w)=>{xt(B,{get icon(){return wt}})},$$slots:{default:!0}})}var I=Z($,2);q(I,()=>Ie,(D,B)=>{B(D,{get id(){return g()},children:(w,M)=>{he();var t=xe();_e(()=>we(t,n())),u(w,t)},$$slots:{default:!0}})}),Q(b),u(x,b)},J=x=>{var b=F(),$=P(b);q($,()=>Ie,(I,D)=>{D(I,{get id(){return g()},children:(B,w)=>{he();var M=xe();_e(()=>we(M,n())),u(B,M)},$$slots:{default:!0}})}),u(x,b)};j(C,x=>{O()?x(z):x(J,-1)})}u(s,d)};let n=a(e,"title",7),f=a(e,"description",7),g=a(e,"titleId",7),v=a(e,"descriptionId",7),l=a(e,"children",7),i=a(e,"headerActions",7),r=a(e,"footer",7),m=a(e,"error",7),O=a(e,"onBack",7),_=a(e,"backLabel",7),S=et(null);Le(()=>{O()&&Ze().then(()=>h(S)?.focus())});var R={get title(){return n()},set title(s){n(s),o()},get description(){return f()},set description(s){f(s),o()},get titleId(){return g()},set titleId(s){g(s),o()},get descriptionId(){return v()},set descriptionId(s){v(s),o()},get children(){return l()},set children(s){l(s),o()},get headerActions(){return i()},set headerActions(s){i(s),o()},get footer(){return r()},set footer(s){r(s),o()},get error(){return m()},set error(s){m(s),o()},get onBack(){return O()},set onBack(s){O(s),o()},get backLabel(){return _()},set backLabel(s){_(s),o()},$set:re,$on:(s,d)=>ae(e,s,d)},L=Et(),V=K(L);{let s=k(()=>i()?"pr-22":"pr-14");q(V,()=>He,(d,C)=>{C(d,{get class(){return`m-0 shrink-0 px-6 pt-6 ${h(s)??""}`},children:(z,J)=>{var x=Nt(),b=P(x);{var $=w=>{var M=$t(),t=K(M);c(t);var A=Z(t,2),N=K(A);ie(N,i),Q(A),Q(M),u(w,M)},I=w=>{c(w)};j(b,w=>{i()?w($):w(I,-1)})}var D=Z(b,2);{var B=w=>{var M=F(),t=P(M);q(t,()=>Te,(A,N)=>{N(A,{get id(){return v()},children:(Y,T)=>{he();var W=xe();_e(()=>we(W,f())),u(Y,W)},$$slots:{default:!0}})}),u(w,M)};j(D,w=>{f()&&w(B)})}u(z,x)},$$slots:{default:!0}})})}var U=Z(V,2);{var ee=s=>{var d=jt(),C=K(d),z=K(C);ie(z,()=>l()??Oe);var J=Z(z,2);{var x=b=>{st(b,{tone:"error",children:($,I)=>{he();var D=xe();_e(()=>we(D,m())),u($,D)},$$slots:{default:!0}})};j(J,b=>{m()&&b(x)})}Q(C),Q(d),_e(()=>rt(d,1,`min-h-0 min-w-0 overflow-y-auto overscroll-contain px-6 pt-5 ${r()?"pb-5":"pb-6"}`)),u(s,d)};j(U,s=>{(l()||m())&&s(ee)})}var de=Z(U,2);{var G=s=>{var d=F(),C=P(d);{let z=k(()=>l()?"m-0 shrink-0 px-6 pb-6":"m-0 shrink-0 p-6");q(C,()=>We,(J,x)=>{x(J,{get class(){return h(z)},children:(b,$)=>{var I=F(),D=P(I);ie(D,r),u(b,I)},$$slots:{default:!0}})})}u(s,d)},X=s=>{var d=qt();u(s,d)};j(de,s=>{r()?s(G):l()||s(X,1)})}return Q(L),u(p,L),se(R)}export{Tt as D,Ft as a,Te as b,Ie as c};
|
|
1
|
+
import{t as te,bo as a,br as le,bw as re,bp as ce,b as ae,bm as Ce}from"./1KDVFF23.js";import{bs as oe,a7 as F,ay as P,W as u,bn as se,aA as o,aD as h,c9 as k,aB as E,ca as Le,bS as Z,a5 as K,bf as Oe,bA as Q,aC as Ye,c0 as Ze,bV as et,be as he,b$ as xe,b_ as _e,bO as we,bH as tt}from"./3SdAC2_C.js";import{i as j}from"./Zg9SWWIQ.js";import{s as ie}from"./Dmy603At.js";import{c as q}from"./DpSAF6fh.js";import{n as ye,l as ze,c as $e}from"./CjK2zm52.js";import{b as Ae,e as ue,f as rt}from"./D8B7qxXm.js";import{i as at,h as ot,a as st}from"./xJBWkpxc.js";import{a_ as nt,a1 as lt,f as Ne}from"./DPbnmxjX.js";import"./BpT_ybtH.js";import{u as je,c as it,o as Pe,f as ct,e as ut,a as dt,D as ft,b as vt,d as gt}from"./zzl2tBQf.js";import{c as mt,u as _t,s as pt,a as bt}from"./D9tVylVS.js";import{p as ht}from"./Dzl5aoA8.js";import"./CBLFNmYJ.js";import{b as qe}from"./Dn334wJv.js";import"./Ch-pFfsN.js";import{F as xt,a0 as wt}from"./BZytk_HL.js";import"./IdqO6uHC.js";var yt=new Set(["$$slots","$$events","$$legacy","ref","class","forceMount","contained","staticPosition"]),Pt=E("<div></div>");function Ee(p,e){if(new.target)return te({component:Ee,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"forceMount",7,!1),g=a(e,"contained",7,!1),v=a(e,"staticPosition",7,!1),l=ce(e,yt);const i=je();var r={get ref(){return c()},set ref(_=null){c(_),o()},get class(){return n()},set class(_){n(_),o()},get forceMount(){return f()},set forceMount(_=!1){f(_),o()},get contained(){return g()},set contained(_=!1){g(_),o()},get staticPosition(){return v()},set staticPosition(_=!1){v(_),o()},$set:re,$on:(_,S)=>ae(e,_,S)},m=F(),O=P(m);{const _=(S,R)=>{let L=()=>(R?.()).props;var V=F(),U=P(V);{var ee=G=>{var X=Pt();Ae(X,s=>({...L(),"data-slot":"dialog-overlay","data-static-position":v()||void 0,class:s}),[()=>ue(g()||v()?"absolute":"fixed","inset-0 z-[var(--layer-modal)] bg-black/40 dark:bg-black/80 motion-reduce:animate-none motion-reduce:transition-none",n())]),ye(1,X,()=>ze,()=>Pe.backdrop.enter),ye(2,X,()=>$e,()=>Pe.backdrop.exit),u(G,X)},de=k(()=>f()||i());j(U,G=>{h(de)&&G(ee)})}u(S,V)};q(O,()=>it,(S,R)=>{R(S,le({forceMount:!0},()=>l,{get ref(){return c()},set ref(L){c(L)},child:_,$$slots:{child:!0}}))})}return u(p,m),se(r)}var Ot=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","container","size","forceMount","showCloseButton","closeDisabled","closeLabel","role","onInteractOutside","onOpenAutoFocus","onCloseAutoFocus","trapFocus","preventScroll","children"]),At=Ye('<svg aria-hidden="true" viewBox="0 0 16 16" fill="none"><path d="M3 3l10 10M13 3L3 13" stroke="currentColor" stroke-width="1.5"></path></svg>'),kt=E("<div><!> <!></div>"),Dt=E("<!> <!>",1);function Ft(p,e){if(new.target)return te({component:Ft,...p});oe(e,!0);const c=t=>{var A=Dt(),N=P(A);{let T=k(()=>!!v()),W=k(d);Ee(N,{get contained(){return h(T)},get staticPosition(){return h(W)}})}var Y=Z(N,2);{const T=(fe,ve)=>{let ge=()=>(ve?.()).props;var pe=F(),Be=P(pe);{var Re=De=>{var ne=kt();Ae(ne,(me,be)=>({...ge(),role:_(),"data-slot":"dialog-content","data-overlay-surface":!0,"data-size":l(),"data-static-position":me,class:be,"data-surface-level":C,onoutroend:x.finishExit}),[()=>d()||void 0,()=>ue(d()?"relative mx-auto":v()?"absolute":"fixed",!d()&&"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","dialog-editorial-content overlay-surface z-[var(--layer-modal)] grid w-full overflow-y-auto overscroll-contain p-6 text-popover-foreground outline-none motion-reduce:animate-none motion-reduce:transition-none",l()==="sm"&&(z==="compact"?"max-w-90":"max-w-100"),l()==="default"&&"max-w-110",l()==="lg"&&(z==="compact"?"max-w-120":"max-w-135"),l()==="wide"&&"max-w-2xl",l()==="editor"&&"max-w-6xl",bt(C),f())]);var Me=K(ne);ie(Me,()=>ee()??Oe);var Ge=Z(Me,2);{var Je=me=>{var be=F(),Ke=P(be);{const Qe=(Fe,Se)=>{Ne(Fe,le(()=>(Se?.()).props,{get"aria-label"(){return O()},get disabled(){return m()},variant:"ghost",size:"icon-sm",iconOnly:!0,class:"dialog-close-button absolute right-6 -translate-y-1/2 text-muted-foreground",children:(Ue,Ht)=>{var Xe=At();u(Ue,Xe)},$$slots:{default:!0}}))};q(Ke,()=>ft,(Fe,Se)=>{Se(Fe,{get disabled(){return m()},child:Qe,$$slots:{child:!0}})})}u(me,be)};j(Ge,me=>{r()&&me(Je)})}Q(ne),ye(1,ne,()=>ze,()=>Pe.dialog.enter),ye(2,ne,()=>$e,()=>Pe.dialog.exit),u(De,ne)},Ve=k(()=>J());j(Be,De=>{h(Ve)&&De(Re)})}u(fe,pe)};let W=k(()=>d()?I:$),H=k(()=>d()?I:L()),y=k(()=>d()?!1:V()),ke=k(()=>d()?!1:U());q(Y,()=>dt,(fe,ve)=>{ve(fe,le({forceMount:!0},()=>de,{onInteractOutside:b,get onOpenAutoFocus(){return h(W)},get onCloseAutoFocus(){return h(H)},get trapFocus(){return h(y)},get preventScroll(){return h(ke)},get ref(){return n()},set ref(ge){n(ge)},child:T,$$slots:{child:!0}}))})}u(t,A)};let n=a(e,"ref",15,null),f=a(e,"class",7),g=a(e,"portalProps",7),v=a(e,"container",7,null),l=a(e,"size",7,"default"),i=a(e,"forceMount",7,!1),r=a(e,"showCloseButton",7,!0),m=a(e,"closeDisabled",7,!1),O=a(e,"closeLabel",23,()=>Ce.ui_dialog_close_ariaLabel()),_=a(e,"role",7,"dialog"),S=a(e,"onInteractOutside",7),R=a(e,"onOpenAutoFocus",7),L=a(e,"onCloseAutoFocus",7),V=a(e,"trapFocus",7),U=a(e,"preventScroll",7),ee=a(e,"children",7),de=ce(e,Ot);const G=at(),X=ot();Le(()=>{const t=n();if(!(!t||!G))return G.register(t,X)});const s=je(),d=ct(),C=mt(_t()+2);pt(C);const z=nt(),J=()=>i()||s(),x=ut(J);ht(()=>n());function b(t){t.target instanceof Element&&t.target.closest("[data-image-lightbox-root]")&&t.preventDefault(),S()?.(t)}function $(t){if(R()?.(t),t.defaultPrevented||!n())return;const A=y=>y.closest('[data-slot="dialog-content"]')===n(),N=y=>!y.matches(':disabled, [aria-disabled="true"], [inert]')&&!y.closest("[inert]")&&y.getClientRects().length>0&&getComputedStyle(y).visibility==="visible",Y=Array.from(n().querySelectorAll('[data-dialog-primary-action], [data-slot="dialog-footer"] button, [data-slot="dialog-footer"] a[href]')).filter(A),T=Y.find(y=>y.hasAttribute("data-dialog-primary-action"))??Y.at(-1),W=Array.from(n().querySelectorAll('input:not([type="hidden"]), textarea, select, [contenteditable="true"]')).find(y=>A(y)&&N(y)),H=T&&N(T)?T:W??n();t.preventDefault(),H.focus({preventScroll:!0})}function I(t){t.preventDefault()}var D={get ref(){return n()},set ref(t=null){n(t),o()},get class(){return f()},set class(t){f(t),o()},get portalProps(){return g()},set portalProps(t){g(t),o()},get container(){return v()},set container(t=null){v(t),o()},get size(){return l()},set size(t="default"){l(t),o()},get forceMount(){return i()},set forceMount(t=!1){i(t),o()},get showCloseButton(){return r()},set showCloseButton(t=!0){r(t),o()},get closeDisabled(){return m()},set closeDisabled(t=!1){m(t),o()},get closeLabel(){return O()},set closeLabel(t=Ce.ui_dialog_close_ariaLabel()){O(t),o()},get role(){return _()},set role(t="dialog"){_(t),o()},get onInteractOutside(){return S()},set onInteractOutside(t){S(t),o()},get onOpenAutoFocus(){return R()},set onOpenAutoFocus(t){R(t),o()},get onCloseAutoFocus(){return L()},set onCloseAutoFocus(t){L(t),o()},get trapFocus(){return V()},set trapFocus(t){V(t),o()},get preventScroll(){return U()},set preventScroll(t){U(t),o()},get children(){return ee()},set children(t){ee(t),o()},$set:re,$on:(t,A)=>ae(e,t,A)},B=F(),w=P(B);{var M=t=>{var A=F(),N=P(A);{var Y=H=>{c(H)},T=k(()=>d()),W=H=>{var y=F(),ke=P(y);{let fe=k(()=>v()??g()?.to??G?.target());q(ke,()=>lt,(ve,ge)=>{ge(ve,le(g,{get to(){return h(fe)},children:(pe,Be)=>{c(pe)},$$slots:{default:!0}}))})}u(H,y)};j(N,H=>{h(T)?H(Y):H(W,-1)})}u(t,A)};j(w,t=>{x.mounted&&t(M)})}return u(p,B),se(D)}var St=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Te(p,e){if(new.target)return te({component:Te,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=ce(e,St);var g={get ref(){return c()},set ref(i=null){c(i),o()},get class(){return n()},set class(i){n(i),o()},$set:re,$on:(i,r)=>ae(e,i,r)},v=F(),l=P(v);{let i=k(()=>ue("type-caption break-words text-muted-foreground",n()));q(l,()=>vt,(r,m)=>{m(r,le({"data-slot":"dialog-description",get class(){return h(i)}},()=>f,{get ref(){return c()},set ref(O){c(O)}}))})}return u(p,v),se(g)}var Ct=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),It=E("<div><!></div>");function We(p,e){if(new.target)return te({component:We,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"children",7),g=ce(e,Ct);var v={get ref(){return c()},set ref(r=null){c(r),o()},get class(){return n()},set class(r){n(r),o()},get children(){return f()},set children(r){f(r),o()},$set:re,$on:(r,m)=>ae(e,r,m)},l=It();Ae(l,r=>({"data-slot":"dialog-footer",class:r,...g}),[()=>ue("dialog-actions mt-6 flex min-w-0 flex-wrap items-center justify-end gap-2",n())],void 0,void 0,"svelte-1xlmj20");var i=K(l);return ie(i,()=>f()??Oe),Q(l),qe(l,r=>c(r),()=>c()),u(p,l),se(v)}var Bt=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Mt=E("<div><!></div>");function He(p,e){if(new.target)return te({component:He,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"children",7),g=ce(e,Bt);var v={get ref(){return c()},set ref(r=null){c(r),o()},get class(){return n()},set class(r){n(r),o()},get children(){return f()},set children(r){f(r),o()},$set:re,$on:(r,m)=>ae(e,r,m)},l=Mt();Ae(l,r=>({"data-slot":"dialog-header",class:r,...g}),[()=>ue("mb-4 flex min-w-0 flex-col gap-1.5 pr-8",n())]);var i=K(l);return ie(i,()=>f()??Oe),Q(l),qe(l,r=>c(r),()=>c()),u(p,l),se(v)}var Lt=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Ie(p,e){if(new.target)return te({component:Ie,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=ce(e,Lt);var g={get ref(){return c()},set ref(i=null){c(i),o()},get class(){return n()},set class(i){n(i),o()},$set:re,$on:(i,r)=>ae(e,i,r)},v=F(),l=P(v);{let i=k(()=>ue("type-title font-bold text-foreground [anchor-name:--dialog-title]",n()));q(l,()=>gt,(r,m)=>{m(r,le({"data-slot":"dialog-title",get class(){return h(i)}},()=>f,{get ref(){return c()},set ref(O){c(O)}}))})}return u(p,v),se(g)}var zt=E('<div class="flex min-w-0 items-center gap-2"><!> <!></div>'),$t=E('<div class="flex min-w-0 flex-wrap items-center justify-between gap-3"><!> <div class="absolute right-14 top-[calc(1.5rem+var(--text-title-line-height)/2)] -translate-y-1/2"><!></div></div>'),Nt=E("<!> <!>",1),jt=E('<div data-slot="dialog-body"><div class="grid min-w-0 grid-cols-1 gap-4"><!> <!></div></div>'),qt=E('<div class="h-6 shrink-0" aria-hidden="true"></div>'),Et=E('<div class="dialog-layout flex min-h-0 min-w-0 flex-1 flex-col svelte-df1l0r"><!> <!> <!></div>');function Tt(p,e){if(new.target)return te({component:Tt,...p});oe(e,!0);const c=s=>{var d=F(),C=P(d);{var z=x=>{var b=zt(),$=K(b);{let D=k(()=>_()??Ce.ui_navButtons_goBack_tooltip());Ne($,{variant:"ghost",size:"icon",class:"-my-1",get"aria-label"(){return h(D)},get onclick(){return O()},get ref(){return h(S)},set ref(B){tt(S,B,!0)},children:(B,w)=>{xt(B,{get icon(){return wt}})},$$slots:{default:!0}})}var I=Z($,2);q(I,()=>Ie,(D,B)=>{B(D,{get id(){return g()},children:(w,M)=>{he();var t=xe();_e(()=>we(t,n())),u(w,t)},$$slots:{default:!0}})}),Q(b),u(x,b)},J=x=>{var b=F(),$=P(b);q($,()=>Ie,(I,D)=>{D(I,{get id(){return g()},children:(B,w)=>{he();var M=xe();_e(()=>we(M,n())),u(B,M)},$$slots:{default:!0}})}),u(x,b)};j(C,x=>{O()?x(z):x(J,-1)})}u(s,d)};let n=a(e,"title",7),f=a(e,"description",7),g=a(e,"titleId",7),v=a(e,"descriptionId",7),l=a(e,"children",7),i=a(e,"headerActions",7),r=a(e,"footer",7),m=a(e,"error",7),O=a(e,"onBack",7),_=a(e,"backLabel",7),S=et(null);Le(()=>{O()&&Ze().then(()=>h(S)?.focus())});var R={get title(){return n()},set title(s){n(s),o()},get description(){return f()},set description(s){f(s),o()},get titleId(){return g()},set titleId(s){g(s),o()},get descriptionId(){return v()},set descriptionId(s){v(s),o()},get children(){return l()},set children(s){l(s),o()},get headerActions(){return i()},set headerActions(s){i(s),o()},get footer(){return r()},set footer(s){r(s),o()},get error(){return m()},set error(s){m(s),o()},get onBack(){return O()},set onBack(s){O(s),o()},get backLabel(){return _()},set backLabel(s){_(s),o()},$set:re,$on:(s,d)=>ae(e,s,d)},L=Et(),V=K(L);{let s=k(()=>i()?"pr-22":"pr-14");q(V,()=>He,(d,C)=>{C(d,{get class(){return`m-0 shrink-0 px-6 pt-6 ${h(s)??""}`},children:(z,J)=>{var x=Nt(),b=P(x);{var $=w=>{var M=$t(),t=K(M);c(t);var A=Z(t,2),N=K(A);ie(N,i),Q(A),Q(M),u(w,M)},I=w=>{c(w)};j(b,w=>{i()?w($):w(I,-1)})}var D=Z(b,2);{var B=w=>{var M=F(),t=P(M);q(t,()=>Te,(A,N)=>{N(A,{get id(){return v()},children:(Y,T)=>{he();var W=xe();_e(()=>we(W,f())),u(Y,W)},$$slots:{default:!0}})}),u(w,M)};j(D,w=>{f()&&w(B)})}u(z,x)},$$slots:{default:!0}})})}var U=Z(V,2);{var ee=s=>{var d=jt(),C=K(d),z=K(C);ie(z,()=>l()??Oe);var J=Z(z,2);{var x=b=>{st(b,{tone:"error",children:($,I)=>{he();var D=xe();_e(()=>we(D,m())),u($,D)},$$slots:{default:!0}})};j(J,b=>{m()&&b(x)})}Q(C),Q(d),_e(()=>rt(d,1,`min-h-0 min-w-0 overflow-y-auto overscroll-contain px-6 pt-5 ${r()?"pb-5":"pb-6"}`)),u(s,d)};j(U,s=>{(l()||m())&&s(ee)})}var de=Z(U,2);{var G=s=>{var d=F(),C=P(d);{let z=k(()=>l()?"m-0 shrink-0 px-6 pb-6":"m-0 shrink-0 p-6");q(C,()=>We,(J,x)=>{x(J,{get class(){return h(z)},children:(b,$)=>{var I=F(),D=P(I);ie(D,r),u(b,I)},$$slots:{default:!0}})})}u(s,d)},X=s=>{var d=qt();u(s,d)};j(de,s=>{r()?s(G):l()||s(X,1)})}return Q(L),u(p,L),se(R)}export{Tt as D,Ft as a,Te as b,Ie as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as mt,bo as h,bw as dt,bq as ut,b as ft,bs as _,bm as D}from"./
|
|
1
|
+
import{t as mt,bo as h,bw as dt,bq as ut,b as ft,bs as _,bm as D}from"./1KDVFF23.js";import{bs as gt,ca as T,aD as e,bj as vt,a7 as b,ay as m,W as d,bn as _t,c9 as i,cd as j,aA as k,bS as bt,aB as $t}from"./3SdAC2_C.js";import{i as A}from"./Zg9SWWIQ.js";import{k as q}from"./Dhj-Oo-y.js";import{c as J}from"./DpSAF6fh.js";import{aw as wt,cS as It}from"./BZytk_HL.js";import{dC as St,d_ as ht}from"./DkYquFOp.js";import{S as kt,c as Ct}from"./DIDOx8hd.js";import{selectScriptById as yt,selectCanDeleteScript as xt}from"./-bihBnD_.js";import"./D8B7qxXm.js";import"./Dmy603At.js";import"./BpT_ybtH.js";import"./Dzl5aoA8.js";import{M as P}from"./Dk0afiu6.js";import{g as Dt}from"./DWGXN6Nr.js";import{T as Tt}from"./CCEqDzPP.js";import{t as At,e as Bt}from"./CTDEoCzv.js";import{Jr as B,Dt as Vt,vw as Wt,g$ as Rt}from"./BPo1GPk4.js";var Ht=$t("<!> <!>",1);function Mt(V,c){if(new.target)return mt({component:Mt,...V});gt(c,!0);const $=()=>_(L,"$fullContext$",u),z=()=>_(U,"$canDeleteScript$",u),E=()=>_(N,"$scriptContext$",u),F=()=>_(Q,"$script$",u),W=()=>_(X,"$homeView$",u),[u,G]=ut(),K=t=>{var r=b(),n=m(r);{var f=g=>{var I=Ht(),O=m(I);{let v=i(()=>D.workspace_shell_showInBottomBar_tooltip());J(O,()=>P,(S,x)=>{x(S,{get icon(){return wt},get label(){return e(v)},onclick:Z,"data-move-to-bottom-bar":!0})})}var st=bt(O,2);{var nt=v=>{var S=b(),x=m(S);{let it=i(()=>D.scripts_delete_label()),ct=i(()=>z()?void 0:D.scripts_delete_disabled_description());J(x,()=>P,(lt,pt)=>{pt(lt,{get icon(){return It},get label(){return e(it)},destructive:!0,get disabledReason(){return e(ct)},onclick:Y})})}d(v,S)};A(st,v=>{e(o)&&v(nt)})}d(g,I)};A(n,g=>{$()&&g(f)})}d(t,r)};let s=h(c,"tab",7),a=h(c,"workspaceId",7),C=h(c,"layoutId",7),l=h(c,"isActive",7);const w=i(()=>s().terminalId),o=i(()=>s().scriptId),R=Dt(),p=j(""),y=j("");T(()=>p.set(a())),T(()=>y.set(e(o)??""));const L=St(p),N=ht(p),Q=yt(p,y),U=xt(p,y),X=At(p);let H=!0;vt(()=>{H=!1});function Y(){if(!e(o))return;const t=a(),r=e(o),n=s().id;return Ct(t,r,()=>H&&l()&&a()===t&&e(o)===r&&s().id===n)}function Z(){$()&&(e(o)&&B.dispatch(Vt(a(),e(o))),B.dispatch(Wt(a(),e(w))),B.dispatch(Rt(C()??a(),s().id)))}T(()=>{if(!(!R||!l()))return R.registerActions({actions:K})});var tt={get tab(){return s()},set tab(t){s(t),k()},get workspaceId(){return a()},set workspaceId(t){a(t),k()},get layoutId(){return C()},set layoutId(t){C(t),k()},get isActive(){return l()},set isActive(t){l(t),k()},$set:dt,$on:(t,r)=>ft(c,t,r)},M=b(),et=m(M);{var rt=t=>{var r=b(),n=m(r);q(n,()=>e(o),f=>{{let g=i(()=>W()?.unavailable===!0),I=i(()=>Bt(W()));kt(f,{get scriptId(){return e(o)},get workspaceId(){return a()},class:"h-full",get runDisabled(){return e(g)},get runDisabledReason(){return e(I)}})}}),d(t,r)},at=t=>{var r=b(),n=m(r);q(n,()=>e(w),f=>{Tt(f,{get terminalId(){return e(w)},get workspaceId(){return a()},class:"h-full"})}),d(t,r)};A(et,t=>{e(o)&&l()&&E()&&($()||F())?t(rt):e(w)&&l()&&$()&&t(at,1)})}d(V,M);var ot=_t(tt);return G(),ot}export{Mt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as g,bo as h,bm as v,bw as w,b as C}from"./
|
|
1
|
+
import{t as g,bo as h,bm as v,bw as w,b as C}from"./1KDVFF23.js";import{bs as T,a5 as u,bl as l,bS as _,bA as m,b_ as A,bO as p,W as O,bn as S,aA as j,aB as B}from"./3SdAC2_C.js";var I=B('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><div class="text-center"><p class="text-lg font-medium text-foreground"> </p> <p class="text-sm"> </p> <p class="text-xs mt-4 text-subtle"> </p></div></div>');function L(n,a){if(new.target)return g({component:L,...n});T(a,!0);let e=h(a,"tab",7);var c={get tab(){return e()},set tab(t){e(t),j()},$set:w,$on:(t,r)=>C(a,t,r)},s=I(),o=u(s),b=u(o),d=l(b,!0),i=_(b,2),x=l(i,!0),f=_(i,2),y=l(f,!0);return m(o),m(s),A((t,r)=>{p(d,e().title),p(x,t),p(y,r)},[()=>v.layout_panelContent_typeLabel({type:e().type}),()=>v.layout_overviewTab_notImplemented_label()]),O(n,s),S(c)}export{L as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Z as Q,n as j,aA as J,ax as X,aI as z,w as $,b as Y}from"./
|
|
1
|
+
import{Z as Q,n as j,aA as J,ax as X,aI as z,w as $,b as Y}from"./DkYquFOp.js";import{Jr as l,nW as m,nX as C,JA as P,br as O,a3 as Z,nJ as _,rO as q,sa as ee,kp as te,s8 as W,JV as M,rt as ne,fU as K,rP as F,a5 as se,bp as oe,m as ie}from"./BPo1GPk4.js";import{m as x,a0 as re,l as ae}from"./CMgAi196.js";import{g as U}from"./DypB-Dwi.js";const ce=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function de(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!Q(t))return!0}const n=j(e);return ce.some(s=>n.startsWith(s))}const L=1440*60*1e3;function le(e){let t=null;for(const n of e){if(de({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const ue=50,ge=20;function D(e,t){return e===null||t!==null&&t>e?t:e}async function De(e,t){let n,s=null;for(let i=0;i<ge;i++){const r=await e({limit:ue,nextToken:n});if(!r.ok)return null;const d=r.items;s===null&&d.length>0&&(s=d[d.length-1].id);const c=t?.newestId!=null?d.findIndex(a=>a.id===t.newestId):-1,o=le(c>=0?d.slice(c+1):d);if(c>=0)return{latest:D(o,t?.latest??null),newestId:s};if(o!==null)return{latest:D(o,t?.latest??null),newestId:s};if(typeof r.nextToken!="string")return{latest:null,newestId:s};n=r.nextToken}return{latest:t?.latest??null,newestId:s}}function E(e,t){return e!=null&&e<=t&&e>t-L}function fe(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-L}function pe(e,t){const{workspaceId:n,agentId:s,authority:i,nativePairId:r,evidence:d}=e;if(!n||!s||!i||i!==t)return null;const c=JSON.stringify([n,s]);if(r!==c||d?.id!==c)return null;const o=d.clips.find(a=>a.status==="recording");return!o||o.discarding||!Number.isFinite(o.startedAt)||!Number.isFinite(o.pausedMs??0)||o.pausedAt!=null&&!Number.isFinite(o.pausedAt)?null:{workspaceId:n,agentId:s,clipId:o.id,startedAt:o.startedAt,pausedAt:o.pausedAt??null,pausedMs:o.pausedMs??0}}function Ee(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const Ne=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return pe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?m(t.evidence,n):null},U(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const He=l.createSelector(e=>e.hud.rateHistory),Pe=l.createSelector(e=>C(e.workspace.workspaces)),qe=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?P(t):0}),Ke=l.createSelector(e=>e.hud.burnRatePerMin),Fe=l.createSelector(e=>e.hud.burnTrend),xe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:i}=e.daemonHealth,r=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&r?r.split(".",1)[0]??r:null}}),Ue=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Le=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!x(s,n.messageId)}),Ge=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function ke(e,t){return t[String(e.id)]??e.displayStatus}const S=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return C(e.workspace.workspaces).filter(n=>n.status!==O.Archived&&n.status!==O.Retired&&n.status!==O.Deleted).map(n=>{const s=ke(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function w(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ae(n.id))}const Ve=l.createSelector(e=>{const t=Object.fromEntries(Z.map(n=>[n,0]));for(const n of S.select(e))for(const s of w(n))t[I(e,s).bucket]+=1;return t}),Qe=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of B.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),Se=l.createSelector(e=>{const t={};for(const n of S.select(e))for(const s of w(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function N(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const je=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const i of S.select(e)){const r=String(i.id);let d=!1;for(const o of v(i,e)){const{bucket:a,attentionKind:u,hasQuestion:g}=o;if(a!=="needs-attention"&&a!=="failed"||!o.topLevel||o.isBackground||h(e,o.id))continue;const k=g?n[o.id]:void 0,f=u?_(e.agentSessions?.byAgentId[o.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:r,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:o.name,message:k?.question??f??null,sinceTs:o.lastActivityTs}),d=!0}const c=t[r];c&&q(c.attention)&&(s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",attention:c.attention,message:null,sinceTs:c.raisedAtTs}),d=!0),G.has(b(i))&&!d&&s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,r)=>N(r)-N(i))}),Je=l.createSelector(e=>{const t=Se.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:m(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),Ae={total:0,completed:0,inProgress:0};function b(e){const t=ee(e.displayStatus)?e.displayStatus:"not_started";return te(t)??"not_started"}const G=new Set(["wait","blocked","failed"]);function he(e,t,n){if(t==="failed"){const i=n.find(d=>d.bucket==="failed"&&!h(e,d.id)),r=i?e.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof r=="string"&&r.length>0?r:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!h(e,i.id));for(const i of s){if(!i.hasQuestion)continue;const r=e.hud.questionsByAgentId[i.id];if(r?.question)return{kind:"question",text:r.question}}for(const i of["blocker","discussion"])for(const r of s){if(r.attentionKind!==i)continue;const d=e.agentSessions?.byAgentId[r.id],c=_(d)?.reason;if(c)return{kind:i,text:c}}return{kind:"pending",text:""}}const y=new Set(["running","needs-attention","failed"]);function H(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function me(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&y.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",r=s.specialist==="spec-writer";if(i!==r)return i?-1:1;const d=t(n)-t(s);if(d!==0)return d;const c=H(n),o=H(s);return c!==o?o-c:n.id<s.id?-1:n.id>s.id?1:0}}function ye(e,t){const n=new Set(e.map(o=>o.id)),s=new Map,i=[];for(const o of e){const a=typeof o.parentAgentId=="string"&&o.parentAgentId!==o.id&&n.has(o.parentAgentId)?o.parentAgentId:null;if(a){const u=s.get(a)??[];u.push(o),s.set(a,u)}else i.push(o)}i.sort(t);for(const o of s.values())o.sort(t);const r=[],d=new Set,c=(o,a,u)=>{if(!d.has(o.id)){d.add(o.id),r.push({info:o,depth:a,parentAgentId:u});for(const g of s.get(o.id)??[])c(g,a+1,o.id)}};for(const o of i)c(o,0,null);for(const o of e)c(o,0,null);return r}function I(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},i=n?_(n)?.kind??null:null,r=n?J.select(e,t.id)||typeof n.status=="string"&&W(n.status):W(t.status),d=n?M(typeof n.status=="string"?n.status:t.status):null,c=!!n&&d!=="failed"&&d!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),o=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?c&&!o&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":X.select(e,t.id)?a="running":r?a="idle":a=M(typeof n.status=="string"?n.status:t.status):a=t.isResponding===!0||t.isStreaming===!0?"running":M(t.status);const u=e.hud.questionsByAgentId[t.id],g=a!=="failed"&&!!u&&!x(s,u.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function V(e,t){const n=i=>typeof i=="string"&&i!==e.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function h(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function Ie(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=Y(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
|
|
2
2
|
`)?$(t)||null:t:null}}}function v(e,t){const n=w(e),s=new Map(n.map(r=>[r.id,I(t,r)]));return ye(n,me(s)).map(({info:r,depth:d,parentAgentId:c})=>{const o=t.agentSessions?.byAgentId[r.id],a=V(r,o),{bucket:u,attentionKind:g,hasQuestion:k}=s.get(r.id)??I(t,r),f=Array.isArray(o?.waitingForAgentIds)?o.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:r.id,name:r.name,bucket:u,lastActivityTs:r.lastActivity??null,line:Ie(z.select(t,r.id)),parentAgentId:c,depth:d,treePrefix:"",topLevel:K(a)==="topLevel",isBackground:ne(a),attentionKind:g,hasQuestion:k,isWaitingForAgents:o?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(o?.waitingOnHooks)&&o.waitingOnHooks.length>0||Array.isArray(o?.waitingOnPrMonitors)&&o.waitingOnPrMonitors.length>0||Array.isArray(o?.waitingOnScriptMonitors)&&o.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function we(e){const t=new Set;for(const i of e)for(const r of i.waitingForAgentIds)t.add(r);const n=i=>y.has(i.bucket)||i.isWaitingForAgents||t.has(i.id);return e.filter((i,r)=>{if(n(i))return!0;for(let d=r+1;d<e.length&&!(e[d].depth<=i.depth);d++)if(n(e[d]))return!0;return!1}).map((i,r,d)=>{if(i.depth===0)return{...i,treePrefix:""};let c=!0;for(let o=r+1;o<d.length&&!(d[o].depth<i.depth);o++)if(d[o].depth===i.depth){c=!1;break}return{...i,treePrefix:(i.depth>=2?"│ ":"")+(c?"└─":"├─")}})}const B=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=re.select(e);return S.select(e).map(s=>{const i=String(s.id),r=n.indexOf(i),d=t[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null),c=v(s,e),o=b(s),a=e.tokenUsage?.byWorkspaceId[i]?.totals,u=e.workspaceTasks?.byWorkspaceId[i]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:i,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:o,attention:d,isUnread:d===se,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:he(e,o,c),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:r===-1?null:r,tasks:u?{total:u.total,completed:u.completed,inProgress:u.inProgress}:Ae,tokens:a?P(a):0,agents:we(c)}})}),R=4;function be(e,t,n){const s=e.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==t||s.pendingDeleteAt||K(V(n,s))!=="topLevel"?!1:!h(e,n.id)}const ve=l.createSelector(e=>{const t={},n=e.hud.attentionByWorkspaceId;for(const s of S.select(e)){const i=String(s.id),r=new Map,d=(f,p)=>{const A=r.get(f)??[];A.includes(p)||A.push(p),r.set(f,A)},o=w(s).filter(f=>be(e,i,f));for(const f of o){const p=I(e,f);p.bucket==="failed"?d("failed",f.name):p.hasQuestion?d("question",f.name):p.attentionKind==="blocker"?d("blocker",f.name):p.attentionKind==="discussion"&&d("discussion",f.name),p.isRunning&&d("running",f.name)}const a=b(s);a==="failed"&&!r.has("failed")&&r.set("failed",[]),a==="blocked"&&!r.has("blocker")&&r.set("blocker",[]),a==="wait"&&!r.has("question")&&!r.has("blocker")&&!r.has("discussion")&&r.set("needs_input",[]);const u=n[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null);u==="review_required"&&r.set("review",[]),u==="unread"&&r.set("unread",[]),s.activity==="agent_running"&&!r.has("running")&&r.set("running",[]);const g=oe.flatMap(f=>{const p=r.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>R;t[i]={agentCount:o.length,categories:g,visibleCategories:k?g.slice(0,R-1):g,hiddenCategoryCount:k?g.length-(R-1):0}}return t});l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId;let n=0;for(const s of S.select(e)){let i=!1;for(const c of v(s,e))c.topLevel&&!c.isBackground&&!h(e,c.id)&&(c.bucket==="failed"||c.attentionKind!==null||c.hasQuestion)&&(n+=1,i=!0);const r=t[String(s.id)],d=r!==void 0&&q(r.attention);d&&(n+=1),G.has(b(s))&&!i&&!d&&(n+=1)}return n});function Te(e,t,n,s){const i=s.slice().sort((o,a)=>a.createdAt-o.createdAt);for(const o of i){const u=e.agentSessions?.byAgentId[o.agentId]?.metadata?.completionReport;if(typeof u=="string"&&u.trim().length>0)return u}const r=e.workspaceNotes?.byWorkspaceId[t]?.notes,d=r?m(r,n):void 0,c=d?.content||d?.contentPreview;return typeof c=="string"&&c.trim().length>0?c:null}const Xe=l.createSelector((e,t)=>{const n=B.select(e).find(a=>a.workspaceId===t);if(!n)return null;const s=m(e.workspace.workspaces,t),i=s?v(s,e):[],r=new Map(i.map(a=>[a.id,a])),d=e.taskAgentAssociations?.byWorkspaceId[t]?.byNoteId??{},c=e.workspaceTasks?.byWorkspaceId[t],o=c?C(c.tasks).filter(a=>a.status!=="cancelled").map(a=>{const u=Object.values(d[a.id]??{});return{id:a.id,title:a.title,status:a.status,agents:u.map(g=>r.get(g.agentId)).filter(g=>!!g),report:a.status==="complete"?Te(e,t,a.id,u):null,...a.specLinked!==void 0?{specLinked:a.specLinked}:{},...a.dependsOn?{dependsOn:a.dependsOn}:{},...a.conflictsWith?{conflictsWith:a.conflictsWith}:{},...a.unmetDependsOn?{unmetDependsOn:a.unmetDependsOn}:{}}}):[];return{workspaceId:t,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:o,activeAgents:i.filter(a=>y.has(a.bucket)),idleAgents:i.filter(a=>!y.has(a.bucket))}}),Oe=new Set(["failed","blocker","question","discussion","needs_input","review"]);function Me(e){for(const t of e?.categories??[])switch(t.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const Re=3,ze=l.createSelector((e,t="recent")=>{const n=B.select(e),s=ve.select(e),i=new Map(S.select(e).map(c=>[String(c.id),c])),r={action:[],unread:[],active:[]};for(const c of n){const o=i.get(c.workspaceId);if(!o||o.id===ie)continue;const a=e.hud.dockConversationAtByWorkspaceId[c.workspaceId];if(!E(a,e.hud.dockRecencyNow)&&!fe(a,e.hud.dockRecencyNow))continue;const u=s[c.workspaceId],g=u?.categories??[],k=g.some(T=>Oe.has(T.category)),f=c.isUnread,p=g.some(T=>T.category==="running"),A=k?"action":f?"unread":"active";r[A].push({workspace:o,badgeKind:Me(u),priorityGroup:A,isUnread:f,isRunning:p,isWaiting:c.isWaiting})}return[...r.action,...r.unread,...r.active].sort((c,o)=>e.hud.dockConversationAtByWorkspaceId[String(o.workspace.id)]-e.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)]||String(c.workspace.id).localeCompare(String(o.workspace.id))).filter((c,o)=>{const a=o<Re||E(e.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)],e.hud.dockRecencyNow);return t==="older"?!a:a})}),$e=l.createSelector(e=>e.hud.dockPlacement),Ye=l.createSelector(e=>e.hud.dockPlacementError),Ze=l.createSelector(e=>e.hud.dockFocusRequest),et=l.createSelector(e=>e.hud.dockCloseRequest),tt=l.createSelector(e=>e.hud.dockDragStartResult),nt=l.createSelector(e=>e.hud.dockResizeStartResult),st=l.createSelector(e=>({pending:e.hud.dockMachineSwitching,error:e.hud.dockMachineSwitchError})),ot=l.createSelector(e=>{const t=e.hud.dockEditorCompactRequest,n=e.dockConversation,s=n.workspaceId&&n.agentId?m(n.evidence,JSON.stringify([n.workspaceId,n.agentId])):null,i=!!n.nativeSpeech.activeId||!!s?.annotation||s?.clips.some(r=>r.status==="recording")||e.hardwareConsole.pttRecording||e.hardwareConsole.voiceTranscribing;return t&&!i&&e.hud.active&&t.conversationGeneration===n.generation&&t.authority===U(e)&&t.backendId===e.connections.windowBackendId&&t.workspaceId===e.dockConversation.workspaceId&&t.agentId===e.dockConversation.agentId?t:null});export{Pe as A,Qe as B,ve as C,et as a,tt as b,ot as c,Ze as d,st as e,$e as f,Ye as g,Ne as h,de as i,nt as j,ze as k,Le as l,Ve as m,je as n,Ke as o,Fe as p,Je as q,Ee as r,De as s,Ue as t,He as u,xe as v,Ge as w,Xe as x,qe as y,B as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as Mt}from"./
|
|
1
|
+
import{p as Mt}from"./BdNdGDSe.js";import{aZ as Nt,U as zt,Y as Lt,b0 as Tt,V as Xt,a_ as At,b as u,a6 as Et,W as Yt,q as J,ay as Q,aX as It,B as Bt,r as Ft,X as V}from"./kZL4nf_J.js";import{p as Rt}from"./DcZr-m_l.js";var G=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:G(r,`${e} evolution`),y:G(o,`${e} visibility`)}),"toCoordinates"),K=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Ot=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Wt=u((o,r)=>{if(Mt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,R=G(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,R,a,"pipeline-component",C,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=K(e.fromPort)??K(e.toPort);const{flow:d,label:w}=Ot(e.arrow);!a&&d&&(a=d);const C=e.linkLabel,g=w??C;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=G(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),tt={parser:{yy:void 0},parse:u(async o=>{const r=await Rt("wardley",o);Q.debug(r);const e=tt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Wt(r,e)},"parse")},E,Dt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},u(E,"WardleyBuilder"),E),k=new Dt;function et(){return V()["wardley-beta"]}u(et,"getConfig");function at(o,r,e,h,a,d,w,C,g){k.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:C,sourceStrategy:g})}u(at,"addNode");function rt(o,r,e=!1,h,a){k.addLink({source:o,target:r,dashed:e,label:h,flow:a})}u(rt,"addLink");function ot(o,r,e){k.addTrend({nodeId:o,targetX:r,targetY:e})}u(ot,"addTrend");function nt(o,r,e){k.addAnnotation({number:o,coordinates:r,text:e})}u(nt,"addAnnotation");function st(o,r,e){k.addNote({text:o,x:r,y:e})}u(st,"addNote");function it(o,r,e){k.addAccelerator({name:o,x:r,y:e})}u(it,"addAccelerator");function dt(o,r,e){k.addDeaccelerator({name:o,x:r,y:e})}u(dt,"addDeaccelerator");function lt(o,r){k.setAnnotationsBox(o,r)}u(lt,"setAnnotationsBox");function ct(o,r){k.setSize(o,r)}u(ct,"setSize");function pt(o){k.startPipeline(o)}u(pt,"startPipeline");function ft(o,r){k.addPipelineComponent(o,r)}u(ft,"addPipelineComponent");function ht(o){k.setAxes(o)}u(ht,"updateAxes");function xt(o){return k.getNode(o)}u(xt,"getNode");function gt(o){return k.resolveNodeId(o)}u(gt,"resolveNodeId");function yt(){return k.build()}u(yt,"getWardleyData");function ut(){k.clear(),Ft()}u(ut,"clear");var Gt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:dt,setAnnotationsBox:lt,setSize:ct,startPipeline:pt,addPipelineComponent:ft,updateAxes:ht,getNode:xt,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:At,getAccTitle:Xt,setDiagramTitle:Tt,getDiagramTitle:Lt,getAccDescription:zt,setAccDescription:Nt},qt=["Genesis","Custom Built","Product","Commodity"],Ht=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),jt=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{Q.debug(`Rendering Wardley map
|
|
2
2
|
`+o);const a=jt(),d=Ht(),w=a.nodeRadius*1.6,C=h.db,g=C.getWardleyData(),R=C.getDiagramTitle(),S=g.size?.width??a.width,b=g.size?.height??a.height,Y=It(r);Y.selectAll("*").remove(),Bt(Y,b,S,a.useMaxWidth),Y.attr("viewBox",`0 0 ${S} ${b}`);const v=Y.append("g").attr("class","wardley-map"),q=Y.append("defs");q.append("marker").attr("id",`arrow-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-end-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-start-${r}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),v.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",d.backgroundColor);const I=S-a.padding*2,B=b-a.padding*2;R&&v.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",a.padding/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(R);const z=u(t=>a.padding+t/100*I,"projectX"),L=u(t=>b-a.padding-t/100*B,"projectY"),O=v.append("g").attr("class","wardley-axes");O.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1),O.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const wt=g.axes.xLabel??"Evolution",mt=g.axes.yLabel??"Visibility";O.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+I/2).attr("y",b-a.padding/4).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(wt),O.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+B/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+B/2})`).text(mt);const F=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:qt;if(F.length>0){const t=v.append("g").attr("class","wardley-stages"),s=g.axes.stageBoundaries,n=[];if(s&&s.length===F.length){let i=0;s.forEach(p=>{n.push({start:i,end:p}),i=p})}else{const i=1/F.length;F.forEach((p,l)=>{n.push({start:l*i,end:(l+1)*i})})}F.forEach((i,p)=>{const l=n[p],f=a.padding+l.start*I,x=a.padding+l.end*I,y=(f+x)/2;p>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",y).attr("y",b-a.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(a.showGrid){const t=v.append("g").attr("class","wardley-grid");for(let s=1;s<4;s++){const n=s/4,i=a.padding+I*n;t.append("line").attr("x1",i).attr("x2",i).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding-B*n).attr("y2",b-a.padding-B*n).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:z(t.x),y:L(t.y),node:t})}),g.pipelines.length>0){const t=v.append("g").attr("class","wardley-pipelines"),s=v.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(n=>{if(n.componentIds.length===0)return;const i=n.componentIds.map(x=>({id:x,pos:c.get(x),node:g.nodes.find(y=>y.id===x)})).filter(x=>x.pos&&x.node).sort((x,y)=>x.node.x-y.node.x);for(let x=0;x<i.length-1;x++){const y=i[x],m=i[x+1];s.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",y.pos.x).attr("y1",y.pos.y).attr("x2",m.pos.x).attr("y2",m.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let p=1/0,l=-1/0,f=0;if(n.componentIds.forEach(x=>{const y=c.get(x);y&&(p=Math.min(p,y.x),l=Math.max(l,y.x),f=y.y)}),p!==1/0&&l!==-1/0){const y=a.nodeRadius*4,m=f-y/2,P=c.get(n.nodeId);if(P){const N=(p+l)/2;P.x=N,P.y=m-w/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",p-15).attr("y",m).attr("width",l-p+30).attr("height",y).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const _=v.append("g").attr("class","wardley-links"),Z=new Map;g.pipelines.forEach(t=>{Z.set(t.nodeId,new Set(t.componentIds))});const U=g.links.filter(t=>!(!c.has(t.source)||!c.has(t.target)||Z.get(t.target)?.has(t.source)));_.selectAll("line").data(U).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.x+l/x*p}).attr("y1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.y+f/x*p}).attr("x2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.x+l/x*p}).attr("y2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.y+f/x*p}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${r})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${r})`:null),_.selectAll("text").data(U.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=n.y-s.y,l=n.x-s.x,f=Math.sqrt(l*l+p*p),x=8,y=p/f;return i+y*x}).attr("y",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.y+n.y)/2,p=n.x-s.x,l=n.y-s.y,f=Math.sqrt(p*p+l*l),x=8,y=-p/f;return i+y*x}).attr("fill",d.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=(s.y+n.y)/2,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f),y=8,m=f/x,P=-l/x,N=i+m*y,W=p+P*y;let A=Math.atan2(f,l)*180/Math.PI;return(A>90||A<-90)&&(A+=180),`rotate(${A} ${N} ${W})`}).text(t=>t.label);const kt=v.append("g").attr("class","wardley-trends"),bt=g.trends.map(t=>{const s=c.get(t.nodeId);if(!s)return null;const n=z(t.targetX),i=L(t.targetY),p=n-s.x,l=i-s.y,f=Math.sqrt(p*p+l*l),x=a.nodeRadius+2,y=f>x?n-p/f*x:n,m=f>x?i-l/f*x:i;return{origin:s,targetX:n,targetY:i,adjustedX2:y,adjustedY2:m}}).filter(t=>t!==null);kt.selectAll("line").data(bt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${r})`);const M=v.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const H=a.nodeRadius*.7,$=a.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-w/2).attr("y",t=>c.get(t.id).y-w/2).attr("width",w).attr("height",w).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y1",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y-n/2}).attr("x2",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y2",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y+n/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?s.x+t.labelOffsetX:s.x;let n=a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(n+=10);const i=t.labelOffsetX??n;return s.x+i}).attr("y",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?s.y+t.labelOffsetY:s.y-3;let n=-a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(n-=10);const i=t.labelOffsetY??n;return s.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=v.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(s=>{const n=s.coordinates.map(i=>({x:z(i.x),y:L(i.y)}));if(n.length>1)for(let i=0;i<n.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",n[i].x).attr("y1",n[i].y).attr("x2",n[i+1].x).attr("y2",n[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");n.forEach(i=>{const p=t.append("g").attr("class","wardley-annotation");p.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),p.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.number)})}),g.annotationsBox){let s=z(g.annotationsBox.x),n=L(g.annotationsBox.y);const i=10,p=16,l=11,f=t.append("g").attr("class","wardley-annotations-box"),x=[...g.annotations].filter(m=>m.text).sort((m,P)=>m.number-P.number),y=[];if(x.forEach((m,P)=>{const N=f.append("text").attr("x",s+i).attr("y",n+i+(P+1)*p).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${m.number}. ${m.text}`);y.push(N)}),y.length>0){let m=0,P=0;y.forEach(j=>{const D=j.node(),Ct=D.getComputedTextLength();m=Math.max(m,Ct);const St=D.getBBox();P=Math.max(P,St.height)});const N=m+i*2+105,W=x.length*p+i*2+P/2,A=a.padding,$t=S-a.padding-N,vt=a.padding,Pt=b-a.padding-W;s=Math.max(A,Math.min(s,$t)),n=Math.max(vt,Math.min(n,Pt)),y.forEach((j,D)=>{j.attr("x",s+i).attr("y",n+i+(D+1)*p)}),f.insert("rect","text").attr("x",s).attr("y",n).attr("width",N).attr("height",W).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=v.append("g").attr("class","wardley-notes");g.notes.forEach(s=>{const n=z(s.x),i=L(s.y);t.append("text").attr("x",n).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.text)})}if(g.accelerators.length>0){const t=v.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(s=>{const n=z(s.x),i=L(s.y),p=60,l=30,f=20,x=`
|
|
3
3
|
M ${n} ${i-l/2}
|
|
4
4
|
L ${n+p-f} ${i-l/2}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as r}from"./YqTahsxp.js";import{Jr as t}from"./BPo1GPk4.js";import{aK as o}from"./CMgAi196.js";function l(e){return!e||r().status!=="connected"?null:o.select(t.state,e)}export{l as resolveConnectedWorkspaceKeySlot};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as ht,bo as U,bw as $t,bq as It,b as bt,bs as d}from"./
|
|
1
|
+
import{t as ht,bo as U,bw as $t,bq as It,b as bt,bs as d}from"./1KDVFF23.js";import{bs as yt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as wt,bH as v,bV as K,aA as E}from"./3SdAC2_C.js";import{k as At}from"./Dhj-Oo-y.js";import{b as St}from"./Dn334wJv.js";import{Jr as a,eJ as Dt,eK as Pt,oi as Ut,A0 as Et,om as _t,on as Tt,J$ as Ft,Ke as xt,K4 as Wt,vJ as Ht,u_ as qt}from"./BPo1GPk4.js";import{t as vt}from"./C-BsEdGZ.js";import{g as Kt}from"./DWGXN6Nr.js";import{dH as Lt,b$ as Nt,bQ as Ot,bU as Bt,bS as Jt}from"./DkYquFOp.js";import{af as Mt}from"./BWIYTJ4a.js";import{C as Gt}from"./BaO0hXxI.js";import{V as Vt}from"./BvjVhe2e.js";import{bT as jt,bN as Qt,b8 as zt}from"./Cvp_IOBl.js";import{i as Xt}from"./H2jLkRRS.js";function Yt(_,f){if(new.target)return ht({component:Yt,..._});yt(f,!0);const L=()=>d(Z,"$gitRoots$",n),T=()=>d(Y,"$workspace",n),N=()=>d(st,"$ftCommits$",n),O=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),B=()=>d(z,"$foldUnchanged",n),J=()=>d(Q,"$lineWrapping",n),M=()=>d(X,"$diffSideBySide",n),G=()=>d(at,"$ftLoading$",n),[n,V]=It(),j=e=>{Vt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{v(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return B()},onToggleFold:()=>a.dispatch(Wt()),get wrapEnabled(){return J()},onToggleWrap:()=>a.dispatch(xt()),get splitEnabled(){return M()},onToggleSplit:()=>a.dispatch(Ft())})},Q=jt(),z=Qt(),X=zt();let h=U(f,"tab",7),i=U(f,"workspaceId",7),$=U(f,"isActive",7);const F=Kt(),g=vt(()=>i()),Y=Lt(g),Z=Mt(g),w=crypto.randomUUID(),tt=Nt(g,w),c=s(()=>h().data?.commitHash||""),x=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Dt(e,"history")),()=>a.dispatch(Pt(e,"history"))});const r=s(()=>h().data?.gitRootId||""),W=s(()=>t(r)&&L().find(e=>e.id===t(r))?.path||""),et=s(()=>t(W)||T()?.worktreePath||T()?.repositoryPath||""),st=Ot(g),ot=Bt(g),at=Jt(g),nt=s(()=>N()||[]),it=s(()=>O()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),A=s(()=>t(p)?.files||[]),S=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(S)?.result?.kind==="commitDetails"?t(S).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(S)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(A).length>0)return;const u=crypto.randomUUID();return a.dispatch(Ut(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Et(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=K(!0),R=K(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Xt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(x)}}));k(()=>{!F||!$()||F.registerActions({display:j})});const H=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,H)),()=>a.dispatch(Tt(e,H))});var mt={get tab(){return h()},set tab(e){h(e),E()},get workspaceId(){return i()},set workspaceId(e){i(e),E()},get isActive(){return $()},set isActive(e){$(e),E()},$set:$t,$on:(e,o)=>bt(f,e,o)},q=Ct(),gt=Rt(q);At(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>G()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(W)||void 0),ut=s(()=>({hash:t(c),message:t(x),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));St(Gt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(b,m)=>{const D=m?.metaKey||m?.ctrlKey||!1,P=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(qt(i(),{agentId:b,openInAdjacentPanel:D,sourcePanelId:P}))},onOpenNote:(b,m)=>{const D=m?.metaKey||m?.ctrlKey||!1,P=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Ht(i(),b,{openInAdjacentPanel:D,sourcePanelId:P}))}}),b=>v(R,b,!0),()=>t(R))}}),kt(_,q);var pt=wt(mt);return V(),pt}export{Yt as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{fU as B,Jr as n,nX as F,mn as K,me as q,tz as G}from"./
|
|
1
|
+
import{fU as B,Jr as n,nX as F,mn as K,me as q,tz as G}from"./BPo1GPk4.js";import{H as j,n as V,O as Y,e8 as $,cU as W,dH as I,dS as M,e1 as N,cP as z,aO as J}from"./DkYquFOp.js";import{selectCurrentWorkspaceTabId as X,selectWorkspaceTabsHydrated as Q}from"./BblwdMxR.js";import{t as Z}from"./BIwMjRQQ.js";function ee(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function m(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function ve(e){const t=e.filter(ee).map(s=>({agent:s,activity:m(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>B(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",E="New chat";function te(e){const t=e?.trim();return!t||t===E||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function se(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?(r.role==="user"?j(r):V(r)).trim():"";return!t||te(t)?c||E:c||t}const re="chief-of-staff",ne=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function ye(e){const t=e?.trim();return t?`${T}
|
|
2
2
|
|
|
3
3
|
${t}`:T}const oe=n.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?F(s.hooks):[]}),ae=n.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),L=n.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??K),Ce=n.createSelector((e,t,s)=>{const r=L.select(e,t);return r.status==="unsupported"?[]:r.monitors.filter(c=>c.agentId===s)}),u=n.createSelector((e,t,s)=>{const r=G(t,s);return e.agentSubscriptionUI.entries[r]??q}),ce=n.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),ie=n.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),le=n.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),Te=n.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),We=n.createSelector((e,t,s)=>u.select(e,t,s).waitingState),Me=n.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function de(e){return[...new Set(e.filter(Boolean))]}const Ne=n.createSelector((e,t,s)=>{const r=u.select(e,t,s),c=[],l=new Set,i=o=>{for(const a of de(o))l.has(a)||(l.add(a),c.push(a))},h=[...r.subscriptions].sort((o,a)=>o.createdAt.localeCompare(a.createdAt)||o.id.localeCompare(a.id));for(const o of h)o.delegationGroup?.awaitMode!=="all"&&i(o.actorIds);const g=new Map;for(const o of r.delegationGroups)o.awaitMode==="all"&&g.set(o.groupId,o);for(const o of g.values())i(o.expectedAgentIds);for(const o of h){const a=o.delegationGroup;a?.awaitMode==="all"&&!g.has(a.groupId)&&i(a.expectedAgentIds)}const d=new Set;for(const o of r.delegationGroups){for(const a of o.completedAgentIds)d.add(a);for(const a of o.deletedAgentIds)d.add(a);for(const[a,f]of Object.entries(o.agentStatuses))f==="completed"&&d.add(a)}for(const[o,a]of Object.entries(r.agentStatuses))a==="completed"&&d.add(o);const b=e.agentSessions?.byAgentId??{},A=new Set([...d].filter(o=>{const a=b[o];return!a||!Y($(a))})),v=new Map(c.map((o,a)=>[o,a])),y=o=>{const a=b[o];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(A.has(o))return 4;const f=String(a.status).toLowerCase();return f==="responding"||f==="active"||f==="processing"?2:3},C=c.filter(o=>!A.has(o)).sort((o,a)=>y(o)-y(a)||(v.get(o)??0)-(v.get(a)??0));return{visible:r.snapshotStatus==="failed"||r.waitingState==="completed"||c.length>0||r.wokenUpInfo!==null,count:C.length,participantAgentIds:C}}),Ee=n.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),Le=n.createSelector((e,t)=>{const s=`${t}:`,r=[];for(const c of Object.keys(e.agentSubscriptionUI.entries))c.startsWith(s)&&r.push(c.slice(s.length));return r});n.createSelector((e,t,s)=>{const r=le.select(e,t,s);let c=0,l=0;for(const i of r)c+=i.expectedAgentIds.length,l+=i.completedAgentIds.length+i.deletedAgentIds.length;return{total:c,completed:l}});const Oe=n.createSelector(e=>{const t=X.select(e);if(!t||!Q.select(e))return[];const s=new Set;for(const r of Z.select(e,t)){const c=r.panes.find(l=>l.id===r.activePaneId);c?.type==="agent"&&c.agentId&&s.add(c.agentId)}return[...s].map(r=>({wsId:t,agentId:r}))}),O="pinned",pe=64;function k(e){return e.trim().toLocaleLowerCase()}function P(e){return e===O}function Pe(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>pe)return{ok:!1,error:"tooLong"};const r=k(s);return r===O?{ok:!1,error:"reserved"}:t.some(c=>k(c)===r)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function ue(e){const t=new Map;for(const s of e){if(typeof s!="string"||P(s))continue;const r=s.trim();if(r.length===0)continue;const c=k(r);t.has(c)||t.set(c,s)}return[...t.values()].sort((s,r)=>s.localeCompare(r,void 0,{sensitivity:"base"}))}function R(e){const s=e.workspaceAgents?.byWorkspaceId?.[p]?.agentIds,r=s&&s.length>0?new Set(s.map(i=>String(i))):null,c=e.agentSessions?.agentIdsByWorkspace?.[p]??[],l=c.length>0?c.map(i=>e.agentSessions?.byAgentId?.[i]).filter(i=>!!i):Object.values(e.agentSessions?.byAgentId??{}).filter(i=>i.workspaceId===p);return r?l.filter(i=>r.has(String(i.id))):l}function _(e){return e.metadata?.specialist===re&&e.metadata?.chiefPromptVersion===ne}function D(e){return Math.max(e.messages.length,e.messageCount??0)}function S(e){return{agentId:e.id,title:se(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:D(e),pinned:e.pinned===!0,retired:!!e.retiredAt}}function w(e){return R(e).filter(t=>!t.retiredAt)}function H(e,t){return m(t)-m(e)}function U(e,t){const s=r=>new Date(r.lastActivity??r.updatedAt??r.createdAt).getTime()||0;return s(t)-s(e)}const Re=n.createSelector(e=>e.sidebarNav.panelItem),_e=n.createSelector(e=>e.sidebarNav.onboardingActive),De=n.createSelector(e=>e.sidebarNav.showCreateModal),He=n.createSelector(e=>e.sidebarNav.createModalUsesHomeRepository),Ue=n.createSelector(e=>e.sidebarNav.createModalPrefillRequest),x=n.createSelector(e=>W.select(e)?.capabilities.workspaceLabels===1),xe=n.createSelector((e,t)=>I.select(e,t)?.label??null),Be=n.createSelector(e=>ue(M.select(e).map(t=>t.label))),ge=["id","label"],Fe=n.createSelector((e,t)=>x.select(e)&&N.select(e,t,ge)!==null),fe=n.createSelector(e=>W.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),he=n.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),Ke=n.createSelector((e,t)=>I.select(e,t)?.autoArchiveDisabled===!0),Se=["id","autoArchiveDisabled"],qe=n.createSelector((e,t)=>{if(!fe.select(e)||!he.select(e))return!1;const s=I.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:N.select(e,t,Se)!==null}),Ge=n.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),je=n.createSelector(e=>x.select(e)?M.select(e).filter(t=>P(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),Ve=n.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["overview"]),Ye=n.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),$e=n.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),ze=n.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),Je=n.createSelector(e=>e.sidebarNav.chiefActiveAgentId),Xe=n.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const r=ae.select(e,p)==="ready"?oe.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=z.select(e,p)==="ready"?J.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=L.select(e,p),i=l.status==="unsupported"?0:l.status==="ready"?l.monitors.filter(d=>d.agentId===t&&d.state==="active").length:s.waitingOnScriptMonitors?.length??0,h=s.isWaitingForOtherAgents===!1?0:s.waitingForAgentIds?.length??(ce.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),g=ie.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:r,monitors:c+i,subscriptions:h+g}}),Qe=n.createSelector(e=>e.sidebarNav.statsOverlayOpen),me=n.createSelector(e=>w(e).sort((t,s)=>+(s.pinned===!0)-+(t.pinned===!0)||U(t,s)).map(S)),ke=n.createSelector(e=>R(e).filter(t=>!!t.retiredAt).sort(U).map(S)),Ze=n.createSelector(e=>[...me.select(e),...ke.select(e)]),et=n.createSelector(e=>{const t=w(e).filter(_).sort(H)[0];return t?S(t):null}),tt=n.createSelector(e=>{const t=w(e).filter(s=>D(s)===0&&!s.lastMessageId&&_(s)).sort(H)[0];return t?S(t):null});export{_e as A,Re as B,ne as C,E as D,je as E,ke as F,tt as G,L as H,De as I,Qe as J,Ee as K,Le as L,We as M,Me as N,Ke as O,O as P,$e as Q,ze as R,xe as S,Be as T,Ye as U,Pe as V,pe as W,re as a,p as b,ye as c,ee as d,Ne as e,Te as f,ce as g,Ze as h,P as i,Xe as j,oe as k,ae as l,qe as m,Fe as n,Je as o,me as p,Ue as q,ve as r,Ce as s,He as t,et as u,le as v,Oe as w,x,Ge as y,Ve as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,v as h,t as k}from"./Dms_DO28.js";import{Jr as s,vK as w}from"./
|
|
1
|
+
import{d as l,v as h,t as k}from"./Dms_DO28.js";import{Jr as s,vK as w}from"./BPo1GPk4.js";import{i as W,d as E,e as c,n as i,b as m}from"./D7u67tV0.js";const A=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||A.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function I(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function N(n,t){return t.length>0&&I(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function P(n,t){return t?i(n,{state:t}):i(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const u=P(t,e),r={workspaceId:n,epoch:c(),startTabId:a};return await u,r}function b(n){return!n||W()||E()}function y(n,t){if(c()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(b(n))return!1;const a=await S(n,t,e,o(s.state));return y(a,o(s.state))?(s.dispatch(R(n,e)),!0):!1}function*T(n,t,e){if(b(n))return!1;const a=o(yield*h(r=>r)),u=yield*l(S,n,t,e,a);return y(u,o(yield*h(r=>r)))?(yield*k(R(n,e)),!0):!1}function _(){m();const n=c(),t=o(s.state),e=p();return()=>c()===n&&o(s.state)===t&&p()===e}function O(n,t={}){return v(n,d(n,t.query),t.state)}function $(n,t={}){return T(n,d(n,t.query),t.state)}async function j(n){const t=f(n);t?await v(t,n,void 0):await i(n)}function*q(n){const t=f(n);t?yield*l(T,t,n,void 0):yield*l(i,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:_,navigateToAppRoute:j,navigateToAppRouteSaga:q,openAndShowWorkspace:O,showWorkspaceSaga:$,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,q as b,_ as c,$ as d,d as e,N as i,j as n,O as o,f as p,U as s,I as w};
|