@intent-hq/web 2.337.0 → 2.338.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{lTTQePtc.js → 0bBSTp7d.js} +1 -1
- package/web/app/immutable/chunks/{nN_0xVPP.js → 0powQEfB.js} +1 -1
- package/web/app/immutable/chunks/{CySo6Hld.js → 1o85IiDb.js} +1 -1
- package/web/app/immutable/chunks/{C4Vd7zJw.js → 2_iuLgF6.js} +1 -1
- package/web/app/immutable/chunks/{Br99MG4d.js → 4JmKBb1S.js} +2 -2
- package/web/app/immutable/chunks/{B4LwNWew.js → 5hOq5Q77.js} +1 -1
- package/web/app/immutable/chunks/{D9vZrNKO.js → 9opr9o3v.js} +4 -4
- package/web/app/immutable/chunks/{CLnAb9-Z.js → A32sGrSY.js} +2 -2
- package/web/app/immutable/chunks/{BEuQfXMk.js → B-0WsMI2.js} +1 -1
- package/web/app/immutable/chunks/B0NYLlNL.js +1 -0
- package/web/app/immutable/chunks/{CX0X3Hhd.js → B10dK85Q.js} +1 -1
- package/web/app/immutable/chunks/{Dy7Teydo.js → B1LnLfJ5.js} +1 -1
- package/web/app/immutable/chunks/{Dx4g_-ir.js → B1Uqykzg.js} +2 -2
- package/web/app/immutable/chunks/{CQNAqeGr.js → B1sIjFUL.js} +1 -1
- package/web/app/immutable/chunks/{BemGXpeo.js → B3sZl0S_.js} +2 -2
- package/web/app/immutable/chunks/{Do38NIUt.js → B6kHvZXC.js} +1 -1
- package/web/app/immutable/chunks/{Xlptr-cR.js → B8IFnCn1.js} +1 -1
- package/web/app/immutable/chunks/{BWKfK0nC.js → B8U_ed6z.js} +1 -1
- package/web/app/immutable/chunks/{C3yI1C4G.js → B8iG0xAJ.js} +3 -3
- package/web/app/immutable/chunks/{DnbSKK1K.js → B9fHGP8w.js} +1 -1
- package/web/app/immutable/chunks/{DT9taacO.js → BAyoRX38.js} +1 -1
- package/web/app/immutable/chunks/{CcV1L0JC.js → BBoT7qt7.js} +1 -1
- package/web/app/immutable/chunks/{DkjeaYxe.js → BCcXVXmX.js} +2 -2
- package/web/app/immutable/chunks/{CfImW6ld.js → BE4HMJVM.js} +1 -1
- package/web/app/immutable/chunks/{Cs2gnnmH.js → BFE28qi6.js} +1 -1
- package/web/app/immutable/chunks/{CsA6FCv2.js → BHSrU0fj.js} +1 -1
- package/web/app/immutable/chunks/{BmuBzCY9.js → BJqG-VEG.js} +1 -1
- package/web/app/immutable/chunks/{CJzEBUXT.js → BKf5FMmo.js} +1 -1
- package/web/app/immutable/chunks/{gPe_La8G.js → BNG_lclJ.js} +1 -1
- package/web/app/immutable/chunks/{UHGh7ziL.js → BN_moS2U.js} +1 -1
- package/web/app/immutable/chunks/{onRqWtMn.js → BNjZVlBe.js} +1 -1
- package/web/app/immutable/chunks/{CAfDw9FJ.js → BNjba71c.js} +1 -1
- package/web/app/immutable/chunks/{qkFjZjsb.js → BOzfDsJz.js} +1 -1
- package/web/app/immutable/chunks/{DndWPEwO.js → BQmi2wfe.js} +1 -1
- package/web/app/immutable/chunks/{BQBLdlWI.js → BR4QkFY0.js} +1 -1
- package/web/app/immutable/chunks/{oW7Vyp54.js → BSY2iZcG.js} +3 -3
- package/web/app/immutable/chunks/{CEIZLgcW.js → BUmpw0I3.js} +1 -1
- package/web/app/immutable/chunks/{BgmkJDpT.js → BUooHwjl.js} +1 -1
- package/web/app/immutable/chunks/{Df9OfQpN.js → BY8tSNyl.js} +1 -1
- package/web/app/immutable/chunks/{DAE9tYoR.js → BYGcjSWt.js} +1 -1
- package/web/app/immutable/chunks/{DEPHVrPd.js → BYdX7EnG.js} +1 -1
- package/web/app/immutable/chunks/{DAAJkRP5.js → B_zkbbdR.js} +1 -1
- package/web/app/immutable/chunks/BahFkvC5.js +1 -0
- package/web/app/immutable/chunks/{CpcwLSW9.js → BamyRdJ8.js} +1 -1
- package/web/app/immutable/chunks/{C9jDFW-u.js → Bbd7T6DJ.js} +1 -1
- package/web/app/immutable/chunks/{CLlsAJnV.js → BePtUMMB.js} +3 -3
- package/web/app/immutable/chunks/{DOdSButZ.js → Bf2cI0ld.js} +1 -1
- package/web/app/immutable/chunks/{CKR-Vlsh.js → BftPOniE.js} +1 -1
- package/web/app/immutable/chunks/{DKE4PO8v.js → Bgdxwo64.js} +1 -1
- package/web/app/immutable/chunks/{BHERG37w.js → Bih2mW1U.js} +1 -1
- package/web/app/immutable/chunks/{DhilZ4TU.js → BkOzx8cD.js} +1 -1
- package/web/app/immutable/chunks/{7ceYWfj5.js → BkQYu6CB.js} +1 -1
- package/web/app/immutable/chunks/{Da2MTrvO.js → BklaxVlf.js} +2 -2
- package/web/app/immutable/chunks/{D1QfgDnC.js → BlXsb3Tb.js} +1 -1
- package/web/app/immutable/chunks/{B0D5qZ9V.js → BpPzu7rZ.js} +3 -3
- package/web/app/immutable/chunks/{CU2rVgkY.js → BqgO24EE.js} +1 -1
- package/web/app/immutable/chunks/{tmbtpthl.js → BrYjurft.js} +1 -1
- package/web/app/immutable/chunks/{Bq0fu4pO.js → Bs5xE1sI.js} +1 -1
- package/web/app/immutable/chunks/{gYhZpsnS.js → BtpuPEaR.js} +1 -1
- package/web/app/immutable/chunks/{CweUDQqG.js → BuEB6-jv.js} +1 -1
- package/web/app/immutable/chunks/{4gd4ye6F.js → BvDMLNjQ.js} +1 -1
- package/web/app/immutable/chunks/{BzuQ_wt3.js → Bwy-pB0Y.js} +1 -1
- package/web/app/immutable/chunks/{DCmWIfux.js → ByNwJeiI.js} +1 -1
- package/web/app/immutable/chunks/{DkdJns_L.js → BzNjFKE3.js} +1 -1
- package/web/app/immutable/chunks/{BkR3fSb3.js → C-SF0TBp.js} +1 -1
- package/web/app/immutable/chunks/{Pz-DR477.js → C0WOdEKF.js} +1 -1
- package/web/app/immutable/chunks/{CU3vXCI7.js → C12NEKyz.js} +1 -1
- package/web/app/immutable/chunks/{Dl9kZYl1.js → C1D5VZXx.js} +1 -1
- package/web/app/immutable/chunks/C3BW_tmx.js +6 -0
- package/web/app/immutable/chunks/C4c9jf-L.js +1 -0
- package/web/app/immutable/chunks/{Bi8sTr_0.js → C4rKE1Qu.js} +1 -1
- package/web/app/immutable/chunks/{_0Bc8ljw.js → C78o18Xz.js} +1 -1
- package/web/app/immutable/chunks/{DgycnxOI.js → C9iBDSZ7.js} +1 -1
- package/web/app/immutable/chunks/{mTz7BmTp.js → CAsx8o94.js} +1 -1
- package/web/app/immutable/chunks/{DFCcfXy1.js → CAuwLE2S.js} +1 -1
- package/web/app/immutable/chunks/{B2lThFFV.js → CB56tJ4V.js} +1 -1
- package/web/app/immutable/chunks/{CtMlfG-m.js → CBRXzU98.js} +1 -1
- package/web/app/immutable/chunks/{DFvZgSdc.js → CDeKnPcl.js} +2 -2
- package/web/app/immutable/chunks/{Bfk1jy1c.js → CEpchTPD.js} +1 -1
- package/web/app/immutable/chunks/{DT1OBCpr.js → CErBjij6.js} +4 -4
- package/web/app/immutable/chunks/{jhECz8bb.js → CFRs6hOp.js} +1 -1
- package/web/app/immutable/chunks/{CLIxyCiL.js → CIXZpZMc.js} +1 -1
- package/web/app/immutable/chunks/{Cj_-YRxC.js → CJujnQCp.js} +1 -1
- package/web/app/immutable/chunks/{DFTmZC7j.js → CLOm5Lgj.js} +1 -1
- package/web/app/immutable/chunks/{kgEVl1wg.js → CMTI9mHX.js} +1 -1
- package/web/app/immutable/chunks/{NRmpDFvq.js → CNEGJeth.js} +1 -1
- package/web/app/immutable/chunks/{CDP6fcTa.js → CQsysHl4.js} +1 -1
- package/web/app/immutable/chunks/{CS8jG0Rl.js → CR9KS10J.js} +1 -1
- package/web/app/immutable/chunks/{DBy21ab2.js → CU5p0-oD.js} +1 -1
- package/web/app/immutable/chunks/{CCNcqs35.js → CUQ53Tah.js} +1 -1
- package/web/app/immutable/chunks/{N7WDEZg2.js → CUrYTyIw.js} +1 -1
- package/web/app/immutable/chunks/{D5r-_1WQ.js → CXVNUOR4.js} +1 -1
- package/web/app/immutable/chunks/{inAr7ZXq.js → CXifjfiY.js} +2 -2
- package/web/app/immutable/chunks/{Dic4Fhce.js → CZNkIXcZ.js} +1 -1
- package/web/app/immutable/chunks/Cbr9Hy40.js +2 -0
- package/web/app/immutable/chunks/{BeCS6Gef.js → CdKqytk0.js} +1 -1
- package/web/app/immutable/chunks/{B8tA0CEC.js → CdZL67_m.js} +1 -1
- package/web/app/immutable/chunks/{Dp_9-8n0.js → CdkIgaVJ.js} +1 -1
- package/web/app/immutable/chunks/CdwRultT.js +1 -0
- package/web/app/immutable/chunks/{CdFX5l9o.js → CeZkxRrM.js} +1 -1
- package/web/app/immutable/chunks/{D6oiBgua.js → CfwsUedk.js} +1 -1
- package/web/app/immutable/chunks/{DdXTJasD.js → CgCdkhNg.js} +1 -1
- package/web/app/immutable/chunks/{DzhdVbj4.js → Ch7LOYE_.js} +1 -1
- package/web/app/immutable/chunks/{DHrpSrNe.js → CjU1deOg.js} +1 -1
- package/web/app/immutable/chunks/{C6sQce7J.js → CkSeS0zl.js} +1 -1
- package/web/app/immutable/chunks/{B0NTb6Dk.js → Ck_efhu-.js} +1 -1
- package/web/app/immutable/chunks/{CRaq1sop.js → CkjMOvWd.js} +1 -1
- package/web/app/immutable/chunks/{DeGRVP35.js → CmUwI5cU.js} +1 -1
- package/web/app/immutable/chunks/{jUie4MnL.js → Cq0clA9a.js} +1 -1
- package/web/app/immutable/chunks/{GIsNxnZx.js → CsCasUYF.js} +1 -1
- package/web/app/immutable/chunks/{CG8k7OMl.js → CshM44KH.js} +1 -1
- package/web/app/immutable/chunks/{eOd5i397.js → Ct5KmixI.js} +1 -1
- package/web/app/immutable/chunks/CueFizU8.js +1 -0
- package/web/app/immutable/chunks/{CWT6pR_5.js → CxVlAfTq.js} +1 -1
- package/web/app/immutable/chunks/{CrYJqDlq.js → CyY6TpOV.js} +1 -1
- package/web/app/immutable/chunks/{LBOoUPAv.js → CyiSg3bq.js} +1 -1
- package/web/app/immutable/chunks/{7uyipYlP.js → Czzc8yNT.js} +1 -1
- package/web/app/immutable/chunks/{C0s8hBTc.js → D1Zd2P-K.js} +3 -3
- package/web/app/immutable/chunks/{DruVRP7_.js → D2pEu7en.js} +1 -1
- package/web/app/immutable/chunks/{erCusacs.js → D5pQMBSM.js} +1 -1
- package/web/app/immutable/chunks/{CN885woE.js → D7KWMbdn.js} +2 -2
- package/web/app/immutable/chunks/{DiBEcZCC.js → D7UnKVXH.js} +1 -1
- package/web/app/immutable/chunks/{CX4AdWVU.js → D8-yRWCI.js} +4 -4
- package/web/app/immutable/chunks/{TrbIhOlP.js → D9CLfDd7.js} +1 -1
- package/web/app/immutable/chunks/{BCQHOtP2.js → DAZ23kin.js} +1 -1
- package/web/app/immutable/chunks/{DX4RQn8x.js → DAmKbj_y.js} +3 -3
- package/web/app/immutable/chunks/DBkMUdAo.js +6 -0
- package/web/app/immutable/chunks/{Bn7xrUOP.js → DEAuDYtn.js} +1 -1
- package/web/app/immutable/chunks/{Ch7EwWlH.js → DEQpmzeK.js} +1 -1
- package/web/app/immutable/chunks/{k2_utB1h.js → DFrGQwWL.js} +1 -1
- package/web/app/immutable/chunks/{CuhXFIIT.js → DGMz1v5O.js} +1 -1
- package/web/app/immutable/chunks/{DlV-fFE5.js → DGZNzhTP.js} +1 -1
- package/web/app/immutable/chunks/{DQWnciqS.js → DJFRQOtM.js} +1 -1
- package/web/app/immutable/chunks/DJMCFQnb.js +408 -0
- package/web/app/immutable/chunks/{ubO3Pm6L.js → DLELR2-c.js} +1 -1
- package/web/app/immutable/chunks/DLepjxHn.js +1 -0
- package/web/app/immutable/chunks/{Cqk7o6_S.js → DMLhvvUI.js} +14 -14
- package/web/app/immutable/chunks/{Cmbndvyo.js → DNMYeEBj.js} +1 -1
- package/web/app/immutable/chunks/{DpX51SYY.js → DSEpUouc.js} +4 -4
- package/web/app/immutable/chunks/{Bc0qNt2o.js → DT5OKKIv.js} +1 -1
- package/web/app/immutable/chunks/{Cop40zLp.js → DTDbZc--.js} +1 -1
- package/web/app/immutable/chunks/{B3evI07Y.js → DVzn3H2V.js} +1 -1
- package/web/app/immutable/chunks/{9DDYOu34.js → DZGwVedb.js} +1 -1
- package/web/app/immutable/chunks/{D3OUmpg2.js → DZoPxVWh.js} +1 -1
- package/web/app/immutable/chunks/{CM94EWCS.js → DajiTbWh.js} +1 -1
- package/web/app/immutable/chunks/{CYnaDvgB.js → DbYY-d08.js} +1 -1
- package/web/app/immutable/chunks/{hkWveSHJ.js → Dcpa7_yE.js} +1 -1
- package/web/app/immutable/chunks/{BiO3OGe9.js → DdO35kHO.js} +1 -1
- package/web/app/immutable/chunks/{CuzsGhT8.js → DdeFFw9m.js} +2 -2
- package/web/app/immutable/chunks/{BcuiuPTm.js → DfD-d1VI.js} +1 -1
- package/web/app/immutable/chunks/{DznAmrTO.js → Dm8JS2ey.js} +1 -1
- package/web/app/immutable/chunks/{DGv9J1Xb.js → Dm8iNfxw.js} +1 -1
- package/web/app/immutable/chunks/{DjF0_SuD.js → Dp0bVuA5.js} +1 -1
- package/web/app/immutable/chunks/{07n5BBna.js → DptXPTXh.js} +1 -1
- package/web/app/immutable/chunks/{Cs5JEDGC.js → DqVC3pGp.js} +5 -5
- package/web/app/immutable/chunks/{Dz2Vf5sD.js → DqYfSgD7.js} +1 -1
- package/web/app/immutable/chunks/{Cz0H9Jnq.js → DrwmdNHl.js} +1 -1
- package/web/app/immutable/chunks/{DbDc2YsP.js → Du6ilRmQ.js} +1 -1
- package/web/app/immutable/chunks/{BYRe4mFc.js → Du86t-Cq.js} +1 -1
- package/web/app/immutable/chunks/{DPvl8YXq.js → DvQjcceu.js} +1 -1
- package/web/app/immutable/chunks/{CFdsXm57.js → Dw7MQpgQ.js} +4 -4
- package/web/app/immutable/chunks/{DTR7MF-I.js → Dw7Ns_RJ.js} +1 -1
- package/web/app/immutable/chunks/{DdFw-LGo.js → DxqBdPRK.js} +2 -2
- package/web/app/immutable/chunks/{DP1uWm4M.js → Dy4Y7e-f.js} +1 -1
- package/web/app/immutable/chunks/{CGhAHvgo.js → Dyu_L_q5.js} +1 -1
- package/web/app/immutable/chunks/{DT0htg66.js → GJhwapaa.js} +1 -1
- package/web/app/immutable/chunks/GdlMbZRO.js +1 -0
- package/web/app/immutable/chunks/IHdT9wNR.js +1 -0
- package/web/app/immutable/chunks/{BILk5QxD.js → K1pPu68I.js} +1 -1
- package/web/app/immutable/chunks/{BWsdvLFD.js → KE2Sse94.js} +1 -1
- package/web/app/immutable/chunks/{ChOY95M0.js → L3RQQwzZ.js} +1 -1
- package/web/app/immutable/chunks/{DrmVxRwm.js → RIf_Z9uT.js} +2 -2
- package/web/app/immutable/chunks/{w1aMDv4n.js → Tihcy94v.js} +1 -1
- package/web/app/immutable/chunks/{DEG41NHq.js → Tkyt1Nbv.js} +1 -1
- package/web/app/immutable/chunks/{DqxdzMto.js → W-bBtJiZ.js} +1 -1
- package/web/app/immutable/chunks/{56OXBmSr.js → ZhmlPELZ.js} +1 -1
- package/web/app/immutable/chunks/{DI4TFDQx.js → ZzHle38o.js} +1 -1
- package/web/app/immutable/chunks/{CU39baKU.js → _8iuU7kJ.js} +1 -1
- package/web/app/immutable/chunks/{CLqxA_4F.js → bgkykIgc.js} +1 -1
- package/web/app/immutable/chunks/{Bg8EQgd-.js → fray0_G-.js} +1 -1
- package/web/app/immutable/chunks/{DkWimwl1.js → hvA7NN8H.js} +1 -1
- package/web/app/immutable/chunks/{B2m3LDwK.js → iPP98vvn.js} +3 -3
- package/web/app/immutable/chunks/{BRmxXY4c.js → kSfHw4_T.js} +1 -1
- package/web/app/immutable/chunks/{DU0fErkj.js → lsutgM1j.js} +1 -1
- package/web/app/immutable/chunks/{CBOarq51.js → m03ON1WT.js} +1 -1
- package/web/app/immutable/chunks/{D70pO4a_.js → m0O31dSs.js} +1 -1
- package/web/app/immutable/chunks/{Cs21T7Ky.js → rIWyNHgP.js} +1 -1
- package/web/app/immutable/chunks/{DEZeFMdL.js → wj3KRyaL.js} +1 -1
- package/web/app/immutable/chunks/{xQBzMF7t.js → yTFgKmBB.js} +1 -1
- package/web/app/immutable/chunks/{DZ3Z7bT_.js → zbXs4dhU.js} +1 -1
- package/web/app/immutable/entry/{app.h_mcaxo3.js → app.Dy6ZLalU.js} +3 -3
- package/web/app/immutable/entry/start.BbQrke_e.js +1 -0
- package/web/app/immutable/nodes/{0.CYfb8JDO.js → 0.CnIZjq3K.js} +1 -1
- package/web/app/immutable/nodes/{1.BCdsK1yi.js → 1.D3Gxh1Tr.js} +1 -1
- package/web/app/immutable/nodes/{10.B4UgOZ9E.js → 10.C46mOnPB.js} +4 -4
- package/web/app/immutable/nodes/{12.CJVkjTMQ.js → 12.CwLwGOfk.js} +1 -1
- package/web/app/immutable/nodes/{13.C1C_-cGD.js → 13.DvKRNmRj.js} +1 -1
- package/web/app/immutable/nodes/{14.BV2kGWDU.js → 14.CxkEWIRR.js} +1 -1
- package/web/app/immutable/nodes/{15.yXA_NVjl.js → 15.CLi9Mr7F.js} +1 -1
- package/web/app/immutable/nodes/{16.Dymceed0.js → 16.CH7JJ_PA.js} +1 -1
- package/web/app/immutable/nodes/{17.DjaLtrG0.js → 17.Dr_4bSMQ.js} +2 -2
- package/web/app/immutable/nodes/{2.B25saJWq.js → 2.oQEboi38.js} +4 -4
- package/web/app/immutable/nodes/{3.Dq3q9y6c.js → 3.kiW8apaS.js} +1 -1
- package/web/app/immutable/nodes/{4.B0o9SB30.js → 4.DCsVPTk7.js} +1 -1
- package/web/app/immutable/nodes/5.D9J4fbmE.js +5 -0
- package/web/app/immutable/nodes/{6.DLCIXI5n.js → 6.DxmtSdt4.js} +1 -1
- package/web/app/immutable/nodes/{7.C8pWx_Gt.js → 7.DGTbK8nc.js} +1 -1
- package/web/app/immutable/nodes/{8.C0ZJyqfA.js → 8.DXDK2504.js} +4 -4
- package/web/app/immutable/nodes/{9.BIVqs287.js → 9.C0EHLOit.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/index.html +15 -15
- package/web/app/immutable/chunks/B3A1Zt7J.js +0 -408
- package/web/app/immutable/chunks/B57LhVW0.js +0 -1
- package/web/app/immutable/chunks/B9jMXe4O.js +0 -1
- package/web/app/immutable/chunks/Bal-Lzb0.js +0 -1
- package/web/app/immutable/chunks/BbMsjuvF.js +0 -1
- package/web/app/immutable/chunks/BfI1Z7yR.js +0 -6
- package/web/app/immutable/chunks/BpzSKS8t.js +0 -1
- package/web/app/immutable/chunks/CK98GeJf.js +0 -2
- package/web/app/immutable/chunks/CnBhCwyt.js +0 -1
- package/web/app/immutable/chunks/D1pAc-eB.js +0 -1
- package/web/app/immutable/chunks/DZdKq6JI.js +0 -6
- package/web/app/immutable/chunks/euzu9AIo.js +0 -1
- package/web/app/immutable/entry/start.B6mPqJLK.js +0 -1
- package/web/app/immutable/nodes/5.CG01VGtS.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b8 as te,aR as re,by as ne,ao as j,_ as H,ae as F,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as N,bn as ie,aA as g,aB as D,bo as ze,ay as Te,bS as Fe,c9 as T,be as Ne,b$ as Re,b_ as ke,bO as Ae}from"./DYhIMPy1.js";import{t as le,br as m,bz as de,bs as ce,b as ue,a_ as U}from"./Cv-W__h8.js";import{i as W,l as R}from"./DPvDLGgX.js";import{b as q}from"./BaIAhI85.js";import{s as Be}from"./ClsZrb8B.js";import{I as G,F as We,c as De}from"./j0KL2ItM.js";import"./9s3slwY6.js";import{bL as Me}from"./CLlsAJnV.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&H();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),F!==null&&o.add(F),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),F!==null&&o.add(F)),ne(()=>{j&&e.type==="checkbox"&&H();var s=t();if(e===document.activeElement){var i=F;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function lt(e){ae(fe,e)}function Xe(){return se(fe)}function dt(e){ae(ve,e)}function Ye(){return se(ve)}function ct(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ut(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},I=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},S=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{I()});S?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},z=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",z),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:I,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&S?.unobserve?.(v),a?(o.set(b,a),S?.observe(a)):o.delete(b),I()},destroy(){l!==void 0&&cancelAnimationFrame(l),S?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",z)}}}const ft=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},vt="p-1",bt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",gt="ml-auto first-line-icon w-(--menu-icon-size)";var He=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),Ue=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,He);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=Ue();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>R("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),N(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,mt=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",qe="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=ze();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),I=m(t,"noFocusStyle",7,!1),S=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),z=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=T(()=>typeof l()=="string"?l():o),E=T(()=>typeof l()=="number"?l():void 0),y=T(()=>C()??S()),P=T(()=>[z(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=T(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return I()},set noFocusStyle(r=!1){I(r),g()},get message(){return S()},set message(r){S(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return z()},set"aria-describedby"(r){z(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=Te(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),N(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?R("selection:bg-primary selection:text-primary-foreground",qe,a()):p()==="search"?R("flex selection:bg-primary selection:text-primary-foreground",Je,a()):R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),J(h,f),N(r,h)};U(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Ie=Fe(X,2);{var Se=r=>{{let h=T(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Ne();var Y=Re();ke(()=>Ae(Y,u(y))),N(x,Y)},$$slots:{default:!0}})}};U(Ie,r=>{u(y)&&r(Se)})}return N(e,V),ie(xe)}export{Ze as I,vt as O,be as a,gt as b,bt as c,Ve as d,J as e,ct as f,ut as g,Ye as h,Xe as i,lt as j,Q as k,Z as l,mt as m,$ as n,qe as o,ft as p,Je as q,dt as s,Ge as t};
|
|
1
|
+
import{b8 as te,aR as re,by as ne,ao as j,_ as H,ae as F,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as N,bn as ie,aA as g,aB as D,bo as ze,ay as Te,bS as Fe,c9 as T,be as Ne,b$ as Re,b_ as ke,bO as Ae}from"./DYhIMPy1.js";import{t as le,br as m,bz as de,bs as ce,b as ue,a_ as U}from"./Cv-W__h8.js";import{i as W,l as R}from"./DPvDLGgX.js";import{b as q}from"./BaIAhI85.js";import{s as Be}from"./ClsZrb8B.js";import{I as G,F as We,c as De}from"./j0KL2ItM.js";import"./9s3slwY6.js";import{bL as Me}from"./BePtUMMB.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&H();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),F!==null&&o.add(F),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),F!==null&&o.add(F)),ne(()=>{j&&e.type==="checkbox"&&H();var s=t();if(e===document.activeElement){var i=F;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function lt(e){ae(fe,e)}function Xe(){return se(fe)}function dt(e){ae(ve,e)}function Ye(){return se(ve)}function ct(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ut(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},I=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},S=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{I()});S?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},z=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",z),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:I,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&S?.unobserve?.(v),a?(o.set(b,a),S?.observe(a)):o.delete(b),I()},destroy(){l!==void 0&&cancelAnimationFrame(l),S?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",z)}}}const ft=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},vt="p-1",bt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",gt="ml-auto first-line-icon w-(--menu-icon-size)";var He=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),Ue=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,He);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=Ue();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>R("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),N(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,mt=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",qe="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=ze();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),I=m(t,"noFocusStyle",7,!1),S=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),z=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=T(()=>typeof l()=="string"?l():o),E=T(()=>typeof l()=="number"?l():void 0),y=T(()=>C()??S()),P=T(()=>[z(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=T(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return I()},set noFocusStyle(r=!1){I(r),g()},get message(){return S()},set message(r){S(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return z()},set"aria-describedby"(r){z(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=Te(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),N(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?R("selection:bg-primary selection:text-primary-foreground",qe,a()):p()==="search"?R("flex selection:bg-primary selection:text-primary-foreground",Je,a()):R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),J(h,f),N(r,h)};U(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Ie=Fe(X,2);{var Se=r=>{{let h=T(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Ne();var Y=Re();ke(()=>Ae(Y,u(y))),N(x,Y)},$$slots:{default:!0}})}};U(Ie,r=>{u(y)&&r(Se)})}return N(e,V),ie(xe)}export{Ze as I,vt as O,be as a,gt as b,bt as c,Ve as d,J as e,ct as f,ut as g,Ye as h,Xe as i,lt as j,Q as k,Z as l,mt as m,$ as n,qe as o,ft as p,Je as q,dt as s,Ge as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as st}from"./lTTQePtc.js";import{g as it}from"./DAE9tYoR.js";import{s as at}from"./DFCcfXy1.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./DT1OBCpr.js";import{c as kt}from"./CuhXFIIT.js";import{aP as Et}from"./kgEVl1wg.js";var Pe=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Me=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Me,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Me,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,P,L,Ie,G={},pe,v,Xe,Ae;;){if(P=p[p.length-1],this.defaultActions[P]?L=this.defaultActions[P]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[P]&&ee[P][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[P])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
|
|
1
|
+
import{g as st}from"./0bBSTp7d.js";import{g as it}from"./BYGcjSWt.js";import{s as at}from"./CAuwLE2S.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./CErBjij6.js";import{c as kt}from"./DGMz1v5O.js";import{aP as Et}from"./CMTI9mHX.js";var Pe=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Me=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Me,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Me,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,P,L,Ie,G={},pe,v,Xe,Ae;;){if(P=p[p.length-1],this.defaultActions[P]?L=this.defaultActions[P]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[P]&&ee[P][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[P])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+Ae.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Oe="Parse error on line "+(de+1)+": Unexpected "+(B==We?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Oe,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:Ae})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+B);switch(L[0]){case 1:p.push(B),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ke=D.yyleng,s=D.yytext,de=D.yylineno,ve=D.yylloc;break;case 2:if(v=this.productions_[L[1]][1],G.$=C[C.length-v],G._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},et&&(G._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),Ie=this.performAction.apply(G,[s,Ke,de,V.yy,L[1],C,e].concat($e)),typeof Ie<"u")return Ie;v&&(p=p.slice(0,-1*v*2),C=C.slice(0,-1*v),e=e.slice(0,-1*v)),p.push(this.productions_[L[1]][0]),C.push(G.$),e.push(G._$),Xe=ee[p[p.length-2]][p[p.length-1]],p.push(Xe);break;case 3:return!0}}return!0},"parse")},Je=(function(){var O={EOF:1,parseError:f(function(d,p){if(this.yy.parser)this.yy.parser.parseError(d,p);else throw new Error(d)},"parseError"),setInput:f(function(c,d){return this.yy=d||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:f(function(c){var d=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(c){this.unput(this.match.slice(c))},"less"),pastInput:f(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bp as v,t as Bt,br as y,a_ as D,bz as Ft,b as zt,bs as Qf,bv as bt,bt as ga,bu as el,b7 as Nl,bm as $f,ba as ep,bl as tp,bb as rp,bn as np,a$ as ap,b9 as sp,b8 as op,b2 as ip,bf as lp,bg as cp,bk as dp,be as up,bo as fp,b0 as pp,b4 as gp,bi as vp,bh as mp,b6 as hp,b5 as bp,b3 as yp,bd as _p,bc as xp,bj as wp,b1 as kp,_ as Ip}from"./Cv-W__h8.js";import{bI as Sp,bj as eo,aG as Cp,bs as Ht,aD as e,a5 as S,bS as m,bA as w,W as u,bn as jt,c9 as d,aA as _,a7 as kt,ay as je,be as tr,b$ as Tt,aC as Ha,bl as M,b_ as k,bO as x,aB as I,bo as Rs,ca as wt,bH as A,bV as ye,br as Gr,bk as to,c0 as ca,ai as es,cd as Is,aw as Rn,a as Ep,aj as Rr,c7 as Pp,c6 as Ll,c5 as Mn,bf as So,bz as Id}from"./DYhIMPy1.js";import{G as Es,I as Ap,z as Tp}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/iPP98vvn.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/Cv-W__h8.js","/app/immutable/chunks/ClsZrb8B.js","/app/immutable/chunks/CmUwI5cU.js","/app/immutable/chunks/j0KL2ItM.js","/app/immutable/chunks/DPvDLGgX.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DBkMUdAo.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BZeUwBn0.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/GdlMbZRO.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/BePtUMMB.js","/app/immutable/chunks/D4os-974.js","/app/immutable/chunks/BiLjH_HB.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/B8IFnCn1.js","/app/immutable/chunks/9s3slwY6.js","/app/immutable/chunks/D2pEu7en.js","/app/immutable/chunks/2_iuLgF6.js","/app/immutable/chunks/BKpkoMuv.js","/app/immutable/chunks/BvDMLNjQ.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/DUGj7TPr.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/5hOq5Q77.js","/app/immutable/chunks/Czzc8yNT.js","/app/immutable/chunks/Dj_1qKAG.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/BgcFKXg4.js","/app/immutable/chunks/CgCdkhNg.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/CkjMOvWd.js","/app/immutable/chunks/DAZ23kin.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/DTDbZc--.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CdZL67_m.js","/app/immutable/chunks/B10dK85Q.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/1o85IiDb.js","/app/immutable/chunks/CEpchTPD.js","/app/immutable/chunks/ZhmlPELZ.js","/app/immutable/chunks/CUrYTyIw.js","/app/immutable/chunks/BtpuPEaR.js","/app/immutable/chunks/Ct5KmixI.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/4JmKBb1S.js","/app/immutable/chunks/Dm8iNfxw.js","/app/immutable/chunks/DqVC3pGp.js","/app/immutable/chunks/CAsx8o94.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Ch7LOYE_.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bp as v,t as Bt,br as y,a_ as D,bz as Ft,b as zt,bs as Qf,bv as bt,bt as ga,bu as el,b7 as Nl,bm as $f,ba as ep,bl as tp,bb as rp,bn as np,a$ as ap,b9 as sp,b8 as op,b2 as ip,bf as lp,bg as cp,bk as dp,be as up,bo as fp,b0 as pp,b4 as gp,bi as vp,bh as mp,b6 as hp,b5 as bp,b3 as yp,bd as _p,bc as xp,bj as wp,b1 as kp,_ as Ip}from"./Cv-W__h8.js";import{bI as Sp,bj as eo,aG as Cp,bs as Ht,aD as e,a5 as S,bS as m,bA as w,W as u,bn as jt,c9 as d,aA as _,a7 as kt,ay as je,be as tr,b$ as Tt,aC as Ha,bl as M,b_ as k,bO as x,aB as I,bo as Rs,ca as wt,bH as A,bV as ye,br as Gr,bk as to,c0 as ca,ai as es,cd as Is,aw as Rn,a as Ep,aj as Rr,c7 as Pp,c6 as Ll,c5 as Mn,bf as So,bz as Id}from"./DYhIMPy1.js";import{G as Es,I as Ap,z as Tp}from"./GdlMbZRO.js";import{o as Rp,i as Mp,u as re,g as Un,w as Nn,l as In,j as ir,v as gt,I as ro,n as Rt,p as Tr,q as Np,s as Lp,m as Op,x as Dp}from"./DPvDLGgX.js";import{s as un}from"./ClsZrb8B.js";import{c as Qr}from"./D4os-974.js";import{I as Si,t as nr,n as Bp,i as Ol,u as Dl}from"./j0KL2ItM.js";import{b as pr}from"./BaIAhI85.js";import{i as Sd,bv as Cd,cM as Ed,dG as Fp,ds as zp,ax as Hp,cv as jp,a2 as Wp,cS as Up,dr as qs,aC as Bo,c3 as qp,I as Vp,a as Kp,a0 as Bl,cY as Gp,bT as Jp,M as Yp,dm as Xp,W as Zp,dx as Qp,af as $p,cP as eg,at as tg,g as rg,u as ng}from"./B10dK85Q.js";import{c as ag}from"./D-62MVd3.js";import{k as da,w as sg,C as Pd,c as og,R as ig}from"./DTDbZc--.js";import{f as yt,ap as ws,ai as lg,am as Ci,bc as cg}from"./BePtUMMB.js";import{ar as dg,ae as Fl,a0 as ug,aI as fg,af as pg,h as gg,ag as vg,a$ as mg,I as hg,R as bg,ax as yg,ak as _g,a1 as xg,a as zl,az as wg,s as kg,n as Ig,b5 as Sg,m as Cg,b7 as Ei,A as Hl,aj as Eg,b6 as Pg,at as Ad,T as Td,a9 as Ag,a7 as jl,W as Tg,V as Rg,ad as Mg,a8 as Ng,L as Wl,ay as Lg}from"./9opr9o3v.js";import{F as At,bf as Pi,bK as Og,am as Dg,aO as Bg,cL as Fg,bj as tl,bA as zg,aE as Rd,aJ as rl,c_ as Co,a9 as Ai,cn as Hg,cc as jg,ci as nl,cF as Md,br as Wg,e as Ug,b_ as Ul,c8 as qg,cl as Vg,cW as Nd,bU as ql,b6 as ai,bc as Hs,aD as Kg,ax as Ti,as as Ld,ba as Od,bB as Gg,B as Jg,bu as Yg,a4 as Dd,cg as Xg,aj as Bd,cN as Fd,cJ as Vl,aq as zd,aI as Kl,_ as Zg,cv as Qg,cU as $g,cO as ev,aH as tv,aZ as rv,bN as Hd,bl as nv,al,c4 as Gl,aw as av,a7 as sv,a5 as ov}from"./BKpkoMuv.js";import{c as jd}from"./ChTqQfQN.js";import{g as iv}from"./CgCdkhNg.js";import{Ir as Nt,bM as lv,rT as Jl,st as cv,Jf as dv,Jl as uv,g as Wd,I4 as Ud,nw as qd,nM as Vd,nL as Kd,np as Fo,q0 as sl,xU as fv,uY as yo,uf as Ri,u_ as pv,ne as Gd,Iw as gv,t8 as vv,oA as Jd,rd as ol,lX as Yl,a2 as Xl,qJ as mv,qF as hv,qK as bv,qB as yv,qH as _v,uO as xv,Ar as Yd,Av as Xd,nN as Zl,be as Mi,GP as wv,I0 as kv,h9 as Iv,h8 as Sv,nH as Cv,vZ as Ev,v_ as Pv,vY as Ql,Br as ia,cr as Av,cf as Tv,d0 as Rv,d7 as Mv,AB as Nv}from"./DBkMUdAo.js";import{bH as Lv,bQ as Ov,i as Dv,B as Bv,bT as Fv,ah as zv,aj as Hv,al as jv,a5 as Wv,a4 as Uv,an as qv,V as Vv,bk as Kv,bM as Gv,bm as Jv}from"./CUrYTyIw.js";import{n as Yv,m as Xv,v as Ni,ck as Zv,M as Qv,ci as $v,cb as em,aD as $l,cd as tm,bM as Li,aN as rm,s as nm,c as Vs,d as Oi,cf as Zd,cg as Di,bB as am,b6 as sm,bQ as om,bO as im,E as lm,ce as ec,bv as cm,y as tc,ch as dm}from"./CdZL67_m.js";import{ci as um,ck as fm,cj as pm,b1 as gm,a$ as vm,b0 as mm,a4 as hm,al as go,ak as bm,aA as rc,aI as ym,aj as _m,C as xm,i as wm,E as _o,cT as km,aW as nc,cY as Im,ag as Sm,a8 as Cm,r as Em,p as Pm,aF as Am,c$ as Tm,cK as Rm,cD as Mm,R as Nm,cu as Lm,bS as Om}from"./CMTI9mHX.js";import{i as Dm,I as Ss,c as ac}from"./B8IFnCn1.js";import"./9s3slwY6.js";import{f as sc,y as oc,M as Qd,n as Bm,m as Fm,z as $d,x as Bi,e as Ks,E as Fi,W as us,h as zm}from"./iPP98vvn.js";import"./Dj_1qKAG.js";import{b as eu}from"./DAZ23kin.js";import"./DUGj7TPr.js";import{z as il,P as Hm,p as jm,h as Wm,G as Um,l as qm,i as Vm,M as Km,H as Gm,t as _s,a as Jm,K as Ym,k as Xm,R as Zm}from"./D2pEu7en.js";import{t as Gs,O as Qm,M as $m,S as Fa}from"./2_iuLgF6.js";import{a as eh}from"./BvDMLNjQ.js";import{C as zi}from"./DbYY-d08.js";import{aQ as th,aY as rh,aB as nh,b0 as ah,aO as sh,aU as oh,a7 as Ps,b3 as ic,aK as ih,aR as lh,aX as ll,aS as cl,W as si,aq as ch,X as dh,a_ as uh,aJ as fh,aT as ph,aW as gh,b6 as vh,b4 as mh,ay as tu,p as hh,n as bh,aV as yh,_ as _h,ao as xh,aD as wh,z as kh,aC as Ih,a8 as Sh}from"./DMLhvvUI.js";import{s as Hi}from"./CkSeS0zl.js";import{M as Ch}from"./C-SF0TBp.js";import{s as Eh,a as Ph}from"./BsieX9dN.js";import{u as dl,w as Ah,v as zo,I as Th,A as lc,e as Js,d as za,J as cc,c as Rh,f as Mh,g as dc,i as Nh,b as Lh,o as ru,j as Oh,O as Dh,x as Bh,k as nu,S as Fh,N as zh,q as uc,p as Hh,n as fc,z as jh,s as Wh}from"./DEQpmzeK.js";import{o as pc,a as gc,T as oi,b as Uh}from"./BklaxVlf.js";import{P as qh,y as Vh,j as Kh,h as Gh,T as Jh}from"./C3BW_tmx.js";import{D as Ys}from"./BY8tSNyl.js";import"./C9iBDSZ7.js";import{C as ua}from"./C0WOdEKF.js";import{M as Yh}from"./CErBjij6.js";import{g as ul}from"./CmUwI5cU.js";import{f as vc,d as Xh}from"./Dm8iNfxw.js";import{c as xo}from"./CueFizU8.js";import{handleIntentLink as Zh}from"./A32sGrSY.js";import{s as Qh,a as $h,f as eb,d as tb,r as rb,h as nb,w as js,g as ab,W as sb,H as ob,c as ib,M as au}from"./Dw7MQpgQ.js";import{e as lb,q as cb}from"./BtpuPEaR.js";import{showAssistantContent as db}from"./B3sZl0S_.js";import{o as Eo,c as ub,n as fb}from"./Ch7LOYE_.js";import{p as pb}from"./DrwmdNHl.js";import{m as gb}from"./-DqWFMjY.js";import{h as vo}from"./BNjZVlBe.js";import{i as su}from"./CEpchTPD.js";import{g as vb,e as mb,f as hb,h as bb}from"./BvFAWM27.js";import{T as ii}from"./BN_moS2U.js";import"./Czzc8yNT.js";import{i as yb,r as mc}from"./CBRXzU98.js";import{a as _b}from"./CkjMOvWd.js";import{a as xb}from"./BdWqymET.js";import{p as wb}from"./BftPOniE.js";const kb="intent:inline-visual-draft";function MC(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
|
|
3
3
|
|
|
4
4
|
`:""}${n}
|
|
5
5
|
|
|
@@ -260,7 +260,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
|
|
|
260
260
|
`,L0=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],_i=96,sd=2e4,O0=480,pf=512,D0=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function B0(r,t,n,a,s,o){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const f=(E,z={})=>{window.parent.postMessage({channel:r,type:E,...z},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(E){try{if(!o(E))return!1;const z=JSON.parse(JSON.stringify(E));return i=z.state,p=z,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let O=!1,b=-1,h=innerHeight,P=Number.NaN,R=0,B=0;const F=()=>{if(O=!1,!document.body)return;let E=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,J=E-z;if(z>h+1&&J>1&&Math.abs(J-P)<=1?R+=1:(z!==h||J<=1)&&(R=0),h=z,P=J,!B&&R>=3){B=Math.max(a,z);const Y="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Y),f("layout",{message:Y})}B&&(E=Math.min(E,B)),E!==b&&(b=E,f("resize",{height:E}))},T=()=>{O||(O=!0,requestAnimationFrame(F))},L=E=>{if(!E||typeof E.dark!="boolean"||!E.variables)return;const z=document.documentElement;z.classList.toggle("dark",E.dark),z.style.colorScheme=E.dark?"dark":"light";const J=E.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof J=="string"&&J.length<512&&z.style.setProperty("--inline-html-root-font-size",J);for(const Y of Object.keys(t.variables)){if(Y==="--inline-html-root-font-size")continue;const Q=E.variables[Y];typeof Q=="string"&&Q.length<512&&z.style.setProperty(Y,Q)}T()};window.addEventListener("message",E=>{E.source!==window.parent||!E.data||E.data.channel!==r||E.data.type==="theme"&&L(E.data.theme)});const U=E=>{if(E.defaultPrevented||!E.isTrusted||E.ctrlKey||E.metaKey||E.shiftKey||!E.deltaY||Math.abs(E.deltaX)>Math.abs(E.deltaY))return;const z=Q=>{const Ie=getComputedStyle(Q);if(Q!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Ie.overflowY)||/^(hidden|clip)$/.test(Ie.overflowY))return!1;const le=Q.scrollHeight-Q.clientHeight;return le>1&&(E.deltaY<0?Q.scrollTop>1:Q.scrollTop<le-1)};if(E.composedPath().some(Q=>Q instanceof Element&&z(Q))||document.scrollingElement&&z(document.scrollingElement))return;const J=E.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:E.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Y=Math.max(-n,Math.min(n,E.deltaY*J));Number.isFinite(Y)&&(E.preventDefault(),l({deltaY:Y}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",E=>{E.message&&f("error",{message:E.message.slice(0,300)})}),window.addEventListener("unhandledrejection",E=>{const z=E.reason;f("error",{message:String(z instanceof Error?z.message:z).slice(0,300)})}),window.addEventListener("click",E=>{const z=E.target instanceof Element?E.target.closest("a, area"):null;if(!z)return;(z.getAttribute("href")??z.getAttribute("xlink:href"))?.startsWith("#")||E.preventDefault()},!0),window.addEventListener("submit",E=>E.preventDefault(),!0),L(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(T).observe(document.body),new MutationObserver(T).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",T),document.addEventListener("load",T,!0),document.fonts.ready.then(T),f("ready"),T()},{once:!0})}function F0(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=f=>{const i=f.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!c&&f.ports.length===1){c=f.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function z0(r,t,n,a,s,o,c,l){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=Y=>{Y.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(Q=>Q.remove()),Y.querySelectorAll("template").forEach(Q=>p(Q.content)),Y.querySelectorAll("a, area").forEach(Q=>{for(const Ie of["href","xlink:href"])Q.getAttribute(Ie)?.startsWith("#")||Q.removeAttribute(Ie);Q.removeAttribute("target"),Q.removeAttribute("ping"),Q.removeAttribute("download")})};p(f);const g=Y=>JSON.stringify(Y).replace(/</g,"\\u003c"),O=f.createElement("meta");O.httpEquiv="Content-Security-Policy",O.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),P=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
|
|
261
261
|
font-display: swap; src: url('${l}') format('woff2'); }`:"";h.textContent=`${P}${r.styles}`;const R=f.createElement("script"),B=g([a,s,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);R.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,f.head.prepend(O,b,h,R);const F=`<!doctype html>${f.documentElement.outerHTML}`,T=document.implementation.createHTMLDocument(""),L=T.createElement("meta");L.httpEquiv="Content-Security-Policy",L.content=r.csp.replace("frame-src 'none'","frame-src about:");const U=T.createElement("meta");U.setAttribute("charset","utf-8");const E=T.createElement("style");E.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const z=T.createElement("script"),J=g([a,F,o,r.maxScrollDelta]);return z.textContent=`(${r.shell})(...${J}, (${r.validate}));`,T.head.prepend(L,U,E,z),`<!doctype html>${T.documentElement.outerHTML}`}const H0=()=>({csp:D0,styles:N0,maxScrollDelta:pf,lockHeight:O0,bridge:B0.toString(),shell:F0.toString(),validate:ol.toString()});function j0(r,t,n,a,s=null,o=""){return z0(H0(),ol,r,t,n,a,s,o)}function od(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(L0.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function W0(r,t,n,a,s=null){return j0(r,t,n,a,s,M0)}var U0=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),q0=I('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),V0=I('<p class="sr-only" role="status"> </p>'),K0=I('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),G0=I('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),J0=I('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),Y0=I('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),X0=I('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),Z0=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),Q0=I('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),$0=I('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),ek=I('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),tk=I('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),rk=I('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),nk=I('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function gf(r,t){if(new.target)return Bt({component:gf,...r});Ht(t,!0);const n=720,a=1e4;let s=y(t,"source",7),o=y(t,"isStreaming",7,!1),c=y(t,"isComplete",7,!0),l=y(t,"record",7),f=y(t,"storageStatus",7,"ready"),i=y(t,"onRecordChange",7),p=y(t,"onUseConfiguration",7),g=y(t,"onExport",7),O=y(t,"onRetry",7),b=y(t,"storageError",7),h=y(t,"exportStatus",7),P=y(t,"exportPath",7),R=y(t,"exportError",7),B,F=ye(void 0),T=ye(!1),L=ye(!1),U=ye(0),E=ye(""),z=ye(""),J=ye(!1),Y=ye(""),Q=ye(Gr(_i)),Ie=ye(n),le=ye(""),fe=ye(Yl()),ce=ye(void 0),Le,G=ye(void 0),we=ye(!1);const $=d(()=>l()??e(fe)),We=d(()=>f()!=="loading"&&(f()!=="error"||!!e($).current)),Ee=d(()=>!o()&&c()&&!!s().trim()&&e(We)),Se=d(()=>Math.min(sd,Math.max(_i,e(Q)))),ke=d(()=>o()||f()==="loading"?"loading":c()?s().trim()?e(Y)?"error":e(J)?"ready":"loading":"empty":"incomplete"),Be=d(()=>o()||f()==="loading"||e(Ee)&&!e(J)&&!e(Y));function Xe(se){const ze={...se,current:e(ce)??se.current};A(fe,ze),i()?.(ze)}function ae(){const se=e(ce);!se||e($).scenarios.length>=Xl||(Xe({...e($),scenarios:[...e($).scenarios,{id:crypto.randomUUID(),name:dp({number:Dl(e($).scenarios.length+1)}),snapshot:structuredClone(se)}]}),A(we,!0))}function Z(se,ze){const nt=ze.trim().slice(0,120);nt&&Xe({...e($),scenarios:e($).scenarios.map(dt=>dt.id===se?{...dt,name:nt}:dt)})}function Je(se){const ze=structuredClone(se);A(ce,ze),A(G,ze),Xe({...e($),current:ze}),A(U,e(U)+1)}function K(se){return typeof se=="number"?Dl(se):typeof se=="string"?se:JSON.stringify(se)}function V(){!e(F)?.contentWindow||!e(z)||e(F).contentWindow.postMessage({channel:e(z),type:"theme",theme:od(B)},"*")}function W(se){let ze=B.parentElement;for(;ze;){const nt=getComputedStyle(ze),dt=ze.scrollHeight-ze.clientHeight;if(/^(auto|scroll|overlay)$/.test(nt.overflowY)&&dt>1){if(se<0?ze.scrollTop>0:ze.scrollTop<dt){ze.dispatchEvent(new WheelEvent("wheel",{deltaY:se,bubbles:!0})),ze.scrollTop+=se;return}if(/^(contain|none)$/.test(nt.overscrollBehaviorY))return}ze=ze.parentElement}window.scrollBy({top:se,behavior:"instant"})}wt(()=>{if(!e(T))return;const se=s(),ze=e(Ee);e(U),Mn(()=>{Le!==se&&(A(fe,Yl()),A(ce,void 0),A(we,!1),A(G,void 0),Le=se),A(J,!1),A(Y,""),A(le,""),A(Q,_i,!0),A(z,crypto.randomUUID(),!0),A(E,ze?W0(se,e(z),od(B),Nl(),e(G)??e(ce)??e($).current):"",!0),A(G,void 0)})}),wt(()=>{if(!e(E)||e(J)||e(Y))return;const se=setTimeout(()=>{A(Y,$f(),!0)},a);return()=>clearTimeout(se)}),to(()=>{A(T,!0);const se=Ke=>{if(Ke.source!==e(F)?.contentWindow||Ke.origin!=="null")return;const tt=Ke.data;if(!(!tt||typeof tt!="object"||tt.channel!==e(z))){if(tt.type==="bootstrap"){e(F)?.contentWindow?.postMessage({channel:e(z),type:"initialize",documentHtml:e(E)},"*");return}if(tt.type==="resize"&&typeof tt.height=="number"&&Number.isFinite(tt.height)&&tt.height>=0)A(Q,Math.min(sd,Math.ceil(tt.height)),!0);else if(tt.type==="ready")A(J,!0),V();else if(tt.type==="error"&&typeof tt.message=="string")A(Y,tt.message.slice(0,300),!0);else if(tt.type==="layout"&&typeof tt.message=="string")A(le,tt.message.slice(0,300),!0);else if(tt.type==="snapshot"&&e(Ee)&&ol(tt.snapshot)){const st=tt.snapshot;A(ce,st),Xe({...e($),current:st})}else tt.type==="wheel"&&e(J)&&e(Ee)&&!e(L)&&!e(Be)&&typeof tt.deltaY=="number"&&Number.isFinite(tt.deltaY)&&tt.deltaY!==0&&Math.abs(tt.deltaY)<=pf&&W(tt.deltaY)}},ze=()=>{A(Ie,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},nt=new MutationObserver(V);nt.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const dt=window.matchMedia("(prefers-color-scheme: dark)");return dt.addEventListener("change",V),window.addEventListener("message",se),window.addEventListener("resize",ze),ze(),()=>{nt.disconnect(),dt.removeEventListener("change",V),window.removeEventListener("message",se),window.removeEventListener("resize",ze)}});var ie={get source(){return s()},set source(se){s(se),_()},get isStreaming(){return o()},set isStreaming(se=!1){o(se),_()},get isComplete(){return c()},set isComplete(se=!0){c(se),_()},get record(){return l()},set record(se){l(se),_()},get storageStatus(){return f()},set storageStatus(se="ready"){f(se),_()},get onRecordChange(){return i()},set onRecordChange(se){i(se),_()},get onUseConfiguration(){return p()},set onUseConfiguration(se){p(se),_()},get onExport(){return g()},set onExport(se){g(se),_()},get onRetry(){return O()},set onRetry(se){O(se),_()},get storageError(){return b()},set storageError(se){b(se),_()},get exportStatus(){return h()},set exportStatus(se){h(se),_()},get exportPath(){return P()},set exportPath(se){P(se),_()},get exportError(){return R()},set exportError(se){R(se),_()},$set:Ft,$on:(se,ze)=>zt(t,se,ze)},ge=nk(),X=S(ge),de=S(X);yt(de,{variant:"ghost",size:"sm",get active(){return e(L)},get"aria-pressed"(){return e(L)},onclick:()=>{A(L,!e(L))},children:(se,ze)=>{tr();var nt=Tt();k(dt=>x(nt,dt),[()=>e(L)?ep():tp()]),u(se,nt)},$$slots:{default:!0}});var Ne=m(de,2);{let se=d(()=>!e(Ee));yt(Ne,{variant:"ghost",size:"sm",get disabled(){return e(se)},onclick:()=>{A(U,e(U)+1)},children:(ze,nt)=>{tr();var dt=Tt();k(Ke=>x(dt,Ke),[()=>rp()]),u(ze,dt)},$$slots:{default:!0}})}w(X);var Ce=m(X,2);{var rt=se=>{var ze=q0(),nt=je(ze),dt=S(nt),Ke=M(dt,!0),tt=m(dt,2);{var st=Ot=>{yt(Ot,{variant:"ghost",size:"sm",get onclick(){return O()},children:(Dt,Yt)=>{tr();var Et=Tt();k(Wt=>x(Et,Wt),[()=>up()]),u(Dt,Et)},$$slots:{default:!0}})};D(tt,Ot=>{O()&&Ot(st)})}w(nt);var vt=m(nt,2);{var _t=Ot=>{var Dt=U0(),Yt=M(Dt,!0);k(()=>x(Yt,b())),u(Ot,Dt)};D(vt,Ot=>{b()&&Ot(_t)})}k(Ot=>x(Ke,Ot),[()=>np()]),u(se,ze)};D(Ce,se=>{f()==="error"&&se(rt)})}var me=m(Ce,2);{var Re=se=>{var ze=V0(),nt=M(ze,!0);k(dt=>x(nt,dt),[()=>o()?ap():sp()]),u(se,ze)},q=se=>{var ze=K0(),nt=M(ze,!0);k(dt=>x(nt,dt),[()=>c()?ip():op()]),u(se,ze)},Pe=se=>{var ze=G0(),nt=S(ze),dt=M(nt,!0),Ke=m(nt,2),tt=M(Ke,!0);w(ze),k(st=>{x(dt,st),x(tt,e(Y))},[()=>lp()]),u(se,ze)};D(me,se=>{e(Be)?se(Re):e(Ee)?e(Y)&&se(Pe,2):se(q,1)})}var ue=m(me,2),N=S(ue);{var H=se=>{var ze=kt(),nt=je(ze);Es(nt,()=>e(z),dt=>{var Ke=J0();let tt,st;pr(Ke,vt=>A(F,vt),()=>e(F)),k(vt=>{re(Ke,"title",vt),re(Ke,"src",`/inline-html-sandbox.html#${e(z)}`),tt=gt(Ke,1,"block w-full border-0 svelte-1kkow1d",null,tt,{"preview-hidden":e(L)||!e(J)}),re(Ke,"aria-hidden",e(L)||!e(J)),st=Nn(Ke,"",st,{height:`${e(Se)}px`})},[()=>Nl()]),u(dt,Ke)}),u(se,ze)};D(N,se=>{e(Ee)&&e(E)&&se(H)})}var pe=m(N,2);{var Qe=se=>{ua(se,{get code(){return s()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(Ie)}})},Te=se=>{var ze=Y0(),nt=S(ze),dt=S(nt);_s(dt,{class:"h-4 w-32 max-w-1/2"});var Ke=m(dt,2);_s(Ke,{class:"h-3 w-2/3"}),w(nt);var tt=m(nt,2);_s(tt,{class:"aspect-video max-h-60 w-full rounded-lg"});var st=m(tt,2),vt=S(st);_s(vt,{class:"h-3 w-16"});var _t=m(vt,2);_s(_t,{class:"h-2 min-w-0 flex-1"});var Ot=m(_t,2);_s(Ot,{class:"h-3 w-10"}),w(st),w(ze),u(se,ze)};D(pe,se=>{e(L)?se(Qe):e(Be)&&se(Te,1)})}w(ue);var Fe=m(ue,2);{var et=se=>{var ze=rk(),nt=je(ze),dt=S(nt);{var Ke=Mt=>{{let St=d(()=>!e(J)||!!e(Y));yt(Mt,{size:"sm",get disabled(){return e(St)},onclick:()=>e(ce)&&p()(e(ce)),children:(_e,ee)=>{tr();var Ue=Tt();k(at=>x(Ue,at),[()=>fp()]),u(_e,Ue)},$$slots:{default:!0}})}};D(dt,Mt=>{p()&&Mt(Ke)})}var tt=m(dt,2);{let Mt=d(()=>!e(J)||!!e(Y)||e($).scenarios.length>=Xl);yt(tt,{variant:"ghost",size:"sm",get disabled(){return e(Mt)},onclick:ae,children:(St,_e)=>{tr();var ee=Tt();k(Ue=>x(ee,Ue),[()=>cp()]),u(St,ee)},$$slots:{default:!0}})}var st=m(tt,2);{var vt=Mt=>{yt(Mt,{variant:"ghost",size:"sm",get active(){return e(we)},get"aria-expanded"(){return e(we)},onclick:()=>A(we,!e(we)),children:(St,_e)=>{tr();var ee=Tt();k(Ue=>x(ee,Ue),[()=>pp()]),u(St,ee)},$$slots:{default:!0}})};D(st,Mt=>{e($).scenarios.length&&Mt(vt)})}var _t=m(st,2);{var Ot=Mt=>{{let St=d(()=>!e(J)||h()==="saving");yt(Mt,{variant:"ghost",size:"sm",get disabled(){return e(St)},onclick:()=>g()({...e($),current:e(ce)??null}),children:(_e,ee)=>{tr();var Ue=Tt();k(at=>x(Ue,at),[()=>gp()]),u(_e,Ue)},$$slots:{default:!0}})}};D(_t,Mt=>{g()&&Mt(Ot)})}var Dt=m(_t,2);{var Yt=Mt=>{var St=X0(),_e=M(St,!0);k(ee=>x(_e,ee),[()=>f()==="saving"?vp():f()==="ready"?mp():""]),u(Mt,St)};D(Dt,Mt=>{i()&&Mt(Yt)})}w(nt);var Et=m(nt,2);{var Wt=Mt=>{var St=Z0(),_e=S(St),ee=m(_e);{var Ue=at=>{var ot=Tt();k(()=>x(ot,R())),u(at,ot)};D(ee,at=>{h()==="error"&&R()&&at(Ue)})}w(St),k(at=>x(_e,`${at??""} `),[()=>h()==="saving"?hp():h()==="saved"?bp({path:P()??""}):yp()]),u(Mt,St)};D(Et,Mt=>{h()&&Mt(Wt)})}var Qt=m(Et,2);{var lr=Mt=>{var St=tk(),_e=S(St),ee=S(_e),Ue=S(ee),at=S(Ue),ot=M(at,!0),De=m(at),oe=M(De,!0),ve=m(De);Rt(ve,17,()=>e($).scenarios,Me=>Me.id,(Me,he)=>{var He=Q0(),Ve=S(He);{let Ye=d(()=>wp());Ss(Ve,{get value(){return e(he).name},get"aria-label"(){return e(Ye)},maxlength:120,onblur:xe=>{xe.currentTarget.value.trim()||(xe.currentTarget.value=e(he).name),Z(e(he).id,xe.currentTarget.value)},onkeydown:xe=>{xe.key==="Enter"&&xe.currentTarget.blur(),xe.key==="Escape"&&(xe.currentTarget.value=e(he).name,xe.currentTarget.blur())}})}var qe=m(Ve,2),$e=S(qe);yt($e,{variant:"ghost",size:"sm",onclick:()=>Je(e(he).snapshot),children:(Ye,xe)=>{tr();var Ze=Tt();k(ft=>x(Ze,ft),[()=>_p()]),u(Ye,Ze)},$$slots:{default:!0}});var Oe=m($e,2);yt(Oe,{variant:"ghost",size:"sm",onclick:()=>Xe({...e($),scenarios:e($).scenarios.filter(Ye=>Ye.id!==e(he).id)}),children:(Ye,xe)=>{tr();var Ze=Tt();k(ft=>x(Ze,ft),[()=>xp()]),u(Ye,Ze)},$$slots:{default:!0}}),w(qe),w(He),u(Me,He)}),w(Ue),w(ee);var ne=m(ee);Rt(ne,20,()=>["inputs","results"],Tr,(Me,he)=>{const He=d(()=>he),Ve=d(()=>Array.from(new Set([...Object.keys(e(ce)[e(He)]),...e($).scenarios.flatMap(Oe=>Object.keys(Oe.snapshot[e(He)]))])));var qe=kt(),$e=je(qe);Rt($e,16,()=>e(Ve),Oe=>Oe,(Oe,Ye)=>{var xe=ek(),Ze=S(xe),ft=M(Ze,!0),ct=m(Ze);Rt(ct,17,()=>[e(ce),...e($).scenarios.map(it=>it.snapshot)],Tr,(it,Ct)=>{var mt=$0(),Lt=M(mt,!0);k(Kt=>x(Lt,Kt),[()=>Object.hasOwn(e(Ct)[e(He)],Ye)?K(e(Ct)[e(He)][Ye]):"—"]),u(it,mt)}),w(xe),k(()=>x(ft,Ye)),u(Oe,xe)}),u(Me,qe)}),w(ne),w(_e),w(St),k(Me=>{x(ot,e(ce).title),x(oe,Me)},[()=>kp()]),u(Mt,St)};D(Qt,Mt=>{e(we)&&e($).scenarios.length&&Mt(lr)})}u(se,ze)};D(Fe,se=>{e(ce)&&e(Ee)&&se(et)})}return w(ge),pr(ge,se=>B=se,()=>B),k(()=>{re(ge,"data-inline-html-status",e(ke)),re(ge,"data-inline-html-layout",e(le)?"viewport-locked":void 0),re(ge,"aria-busy",e(Be))}),u(r,ge),jt(ie)}var ak=I('<div class="w-full min-w-0"><!></div>');function sk(r,t){if(new.target)return Bt({component:sk,...r});Ht(t,!0);const n=()=>bt(e(b),"$agent$",s),a=()=>bt(e(B),"$entry$",s),[s,o]=ga();let c=y(t,"block",7),l=y(t,"role",7),f=y(t,"workspaceId",7),i=y(t,"agentId",7),p=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),O=ye(void 0);const b=d(()=>Bo(i()??"")),h=d(()=>l()==="assistant"&&f()&&i()&&p()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!Jd(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),c().metadata?.fenceStart??0]),source:c().content}:void 0),P=d(()=>!!(f()&&i()&&p()&&c().metadata?.fenceClosed&&!n())),R=d(()=>e(h)?_v(e(h)):""),B=d(()=>sh(e(R)));wt(()=>{e(h)&&Nt.dispatch(mv(e(h)))});function F(Y){!f()||!i()||n()?.retiredAt||e(O)?.dispatchEvent(new CustomEvent(kb,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:Y}}))}var T={get block(){return c()},set block(Y){c(Y),_()},get role(){return l()},set role(Y){l(Y),_()},get workspaceId(){return f()},set workspaceId(Y){f(Y),_()},get agentId(){return i()},set agentId(Y){i(Y),_()},get messageId(){return p()},set messageId(Y){p(Y),_()},get contentBlockKey(){return g()},set contentBlockKey(Y=""){g(Y),_()},$set:Ft,$on:(Y,Q)=>zt(t,Y,Q)},L=kt(),U=je(L);{var E=Y=>{var Q=ak(),Ie=S(Q);{let le=d(()=>c().metadata?.isStreaming??!1),fe=d(()=>c().metadata?.fenceClosed??!1),ce=d(()=>a()?.record),Le=d(()=>e(h)?a()?.status??"loading":e(P)?"loading":"ready"),G=d(()=>a()?.error),we=d(()=>e(h)?Xe=>Nt.dispatch(yv(e(R),Xe)):void 0),$=d(()=>f()&&i()&&n()&&!n().retiredAt?F:void 0),We=d(()=>e(h)?()=>Nt.dispatch(bv(e(R))):void 0),Ee=d(()=>e(h)?Xe=>Nt.dispatch(hv(e(R),crypto.randomUUID(),Xe)):void 0),Se=d(()=>a()?.export?.status),ke=d(()=>a()?.export?.path),Be=d(()=>a()?.export?.error);gf(Ie,{get source(){return c().content},get isStreaming(){return e(le)},get isComplete(){return e(fe)},get record(){return e(ce)},get storageStatus(){return e(Le)},get storageError(){return e(G)},get onRecordChange(){return e(we)},get onUseConfiguration(){return e($)},get onRetry(){return e(We)},get onExport(){return e(Ee)},get exportStatus(){return e(Se)},get exportPath(){return e(ke)},get exportError(){return e(Be)}})}w(Q),pr(Q,le=>A(O,le),()=>e(O)),u(Y,Q)},z=Y=>{ua(Y,{get code(){return c().content},language:"html"})};D(U,Y=>{l()==="assistant"?Y(E):Y(z,-1)})}u(r,L);var J=jt(T);return o(),J}var ok=I('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function ik(r,t){if(new.target)return Bt({component:ik,...r});Ht(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),_()},$set:Ft,$on:(c,l)=>zt(t,c,l)},s=ok(),o=M(s,!0);return k(()=>x(o,n())),u(r,s),jt(a)}var lk=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),ck=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),dk=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),uk=I('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),fk=I('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function pk(r,t){if(new.target)return Bt({component:pk,...r});Ht(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:Ft,$on:(b,h)=>zt(t,b,h)},s=fk(),o=S(s),c=S(o);At(c,{get icon(){return Nd},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),f=M(l,!0);w(o);var i=m(o,2);Rt(i,21,n,b=>b.name+b.command,(b,h)=>{var P=uk(),R=S(P),B=S(R),F=S(B),T=M(F,!0),L=m(F,2);{var U=Ie=>{var le=lk(),fe=M(le,!0);k(ce=>x(fe,ce),[()=>v.chat_detectedScripts_service_badge()]),u(Ie,le)},E=Ie=>{var le=ck(),fe=M(le,!0);k(ce=>x(fe,ce),[()=>v.chat_detectedScripts_command_badge()]),u(Ie,le)};D(L,Ie=>{e(h).mode==="service"?Ie(U):Ie(E,-1)})}var z=m(L,2);{var J=Ie=>{var le=dk(),fe=M(le,!0);k(()=>x(fe,e(h).category)),u(Ie,le)};D(z,Ie=>{e(h).category&&e(h).category!=="other"&&Ie(J)})}w(B);var Y=m(B,2),Q=M(Y,!0);w(R),w(P),k(()=>{x(T,e(h).name),x(Q,e(h).command)}),u(b,P)}),w(i);var p=m(i,2),g=S(p),O=M(g,!0);return w(p),w(s),k((b,h)=>{x(f,b),x(O,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:nr(n().length)}):v.chat_detectedScripts_count_many({count:nr(n().length)})]),u(r,s),jt(a)}function gk(r,t){if(new.target)return Bt({component:gk,...r});Ht(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),c=y(t,"onReject",7);function l(){o()?.(),da.success(v.chat_diffViewer_applied_toast())}function f(){c()?.(),da.info(v.chat_diffViewer_rejected_toast())}const i=d(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),g});var p={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return c()},set onReject(g){c(g),_()},$set:Ft,$on:(g,O)=>zt(t,g,O)};{let g=d(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());Ys(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return jt(p)}var vk=Ha('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),id=Ha("<circle></circle>"),mk=Ha('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),hk=I('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Io(r,t){if(new.target)return Bt({component:Io,...r});Ht(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),c=d(()=>s()/2),l=d(()=>e(c)),f=d(()=>e(c)),i=d(()=>s()*.12),p=d(()=>e(c)-e(i)/2),g=d(()=>e(c)*.35),O=d(()=>2*Math.PI*e(g)),b=d(()=>Math.max(0,Math.min(1,a()))*e(O));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let P=d(()=>h[n()]||"currentColor");var R={get phase(){return n()},set phase(le){n(le),_()},get progress(){return a()},set progress(le=0){a(le),_()},get size(){return s()},set size(le=16){s(le),_()},get class(){return o()},set class(le=""){o(le),_()},$set:Ft,$on:(le,fe)=>zt(t,le,fe)},B=hk(),F=S(B),T=S(F),L=m(T);{var U=le=>{},E=le=>{var fe=vk();k(()=>{re(fe,"cx",e(l)),re(fe,"cy",e(f)),re(fe,"r",e(g)*.8),re(fe,"stroke",e(P)),re(fe,"stroke-width",e(g)*1.5),re(fe,"stroke-dasharray",`${e(b)??""} ${e(O)??""}`),re(fe,"stroke-dashoffset",e(O)*.25),re(fe,"transform",`rotate(-90 ${e(l)??""} ${e(f)??""})`)}),u(le,fe)},z=le=>{var fe=id();k(()=>{re(fe,"cx",e(l)),re(fe,"cy",e(f)),re(fe,"r",e(p)*.6),re(fe,"fill",e(P))}),u(le,fe)},J=le=>{var fe=id();k(()=>{re(fe,"cx",e(l)),re(fe,"cy",e(f)),re(fe,"r",e(p)),re(fe,"fill",e(P))}),u(le,fe)};D(L,le=>{n()==="planning"?le(U):n()==="building"?le(E,1):n()==="reviewing"?le(z,2):n()==="shipped"&&le(J,3)})}w(F);var Y=m(F,2);{var Q=le=>{},Ie=le=>{var fe=mk();k(()=>re(fe,"width",s()*.5)),u(le,fe)};D(Y,le=>{n()==="reviewing"?le(Q):n()==="shipped"&&le(Ie,1)})}return w(B),k(()=>{re(F,"width",s()),re(F,"height",s()),re(F,"viewBox",`0 0 ${s()??""} ${s()??""}`),gt(F,0,ir(o())),re(T,"cx",e(l)),re(T,"cy",e(f)),re(T,"r",e(p)),re(T,"stroke",e(P)),re(T,"stroke-width",e(i))}),u(r,B),jt(R)}var ld=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),bk=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),cd=I('<span class="text-ui text-subtle truncate"> </span>'),dd=I('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),ud=I('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),yk=I('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),_k=I('<span class="text-ui text-subtle pl-4"> </span>'),xk=I('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),wk=I('<div class="text-ui text-subtle"> </div>'),kk=I("<!> <!> <!> <!>",1),Ik=I('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),Sk=I('<div class="rounded-[0.5px]"></div>');function vf(r,t){if(new.target)return Bt({component:vf,...r});Ht(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),c=y(t,"barHeight",7,"16px"),l=y(t,"gap",7,"1px"),f=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=d(()=>{const{completed:L,inProgress:U,notStarted:E,total:z}=n();if(z===0)return[];const J=[...Array(L).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,E)).fill("notStarted")];return J.length<=s()?J:J.slice(J.length-s())}),g=d(()=>a().filter(L=>L.status==="complete")),O=d(()=>a().filter(L=>L.status==="in_progress"||L.status==="review_required")),b=d(()=>a().filter(L=>L.status!=="complete"&&L.status!=="in_progress"&&L.status!=="review_required"&&L.status!=="cancelled")),h=d(()=>a().filter(L=>L.status==="cancelled")),P=d(()=>a().length>0);var R={get stats(){return n()},set stats(L){n(L),_()},get tasks(){return a()},set tasks(L=[]){a(L),_()},get maxBars(){return s()},set maxBars(L=20){s(L),_()},get barWidth(){return o()},set barWidth(L="1px"){o(L),_()},get barHeight(){return c()},set barHeight(L="16px"){c(L),_()},get gap(){return l()},set gap(L="1px"){l(L),_()},get class(){return f()},set class(L){f(L),_()},$set:Ft,$on:(L,U)=>zt(t,L,U)},B=kt(),F=je(B);{var T=L=>{Ci(L,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:E=>{var z=Ik(),J=S(z),Y=S(J),Q=M(Y,!0),Ie=m(Y,2),le=S(Ie);{var fe=Ee=>{var Se=ld(),ke=S(Se);Nn(ke,"",{},{"background-color":"#22c55e"});var Be=m(ke);w(Se),k(()=>x(Be,` ${n().completed??""}`)),u(Ee,Se)};D(le,Ee=>{n().completed>0&&Ee(fe)})}var ce=m(le,2);{var Le=Ee=>{var Se=ld(),ke=S(Se);Nn(ke,"",{},{"background-color":"#4F7BF7"});var Be=m(ke);w(Se),k(()=>x(Be,` ${n().inProgress??""}`)),u(Ee,Se)};D(ce,Ee=>{n().inProgress>0&&Ee(Le)})}var G=m(ce,2);{var we=Ee=>{var Se=bk(),ke=m(S(Se));w(Se),k(()=>x(ke,` ${n().notStarted??""}`)),u(Ee,Se)};D(G,Ee=>{n().notStarted>0&&Ee(we)})}w(Ie),w(J);var $=m(J,2);{var We=Ee=>{var Se=kk(),ke=je(Se);Rt(ke,17,()=>e(O),Tr,(K,V)=>{var W=ud(),ie=S(W),ge=S(ie);oi(ge,{get status(){return e(V).status},size:14}),w(ie);var X=m(ie,2),de=S(X),Ne=M(de,!0),Ce=m(de,2);{var rt=me=>{var Re=dd(),q=S(Re);{let N=d(()=>e(V).agentState||"idle");Hl(q,{get agentId(){return e(V).agentId},get state(){return e(N)},size:12,get specialist(){return e(V).agentSpecialist}})}var Pe=m(q,2);{var ue=N=>{var H=cd(),pe=M(H,!0);k(()=>x(pe,e(V).agentName)),u(N,H)};D(Pe,N=>{e(V).agentName&&N(ue)})}w(Re),u(me,Re)};D(Ce,me=>{e(V).agentId&&me(rt)})}w(X),w(W),k(()=>x(Ne,e(V).title)),u(K,W)});var Be=m(ke,2);Rt(Be,17,()=>e(b),Tr,(K,V)=>{var W=ud(),ie=S(W),ge=S(ie);oi(ge,{get status(){return e(V).status},size:14}),w(ie);var X=m(ie,2),de=S(X),Ne=M(de,!0),Ce=m(de,2);{var rt=me=>{var Re=dd(),q=S(Re);{let N=d(()=>e(V).agentState||"idle");Hl(q,{get agentId(){return e(V).agentId},get state(){return e(N)},size:12,get specialist(){return e(V).agentSpecialist}})}var Pe=m(q,2);{var ue=N=>{var H=cd(),pe=M(H,!0);k(()=>x(pe,e(V).agentName)),u(N,H)};D(Pe,N=>{e(V).agentName&&N(ue)})}w(Re),u(me,Re)};D(Ce,me=>{e(V).agentId&&me(rt)})}w(X),w(W),k(()=>x(Ne,e(V).title)),u(K,W)});var Xe=m(Be,2);{var ae=K=>{var V=xk(),W=S(V);Rt(W,17,()=>e(g).slice(0,3),Tr,(X,de)=>{var Ne=yk(),Ce=S(Ne),rt=S(Ce);oi(rt,{status:"complete",size:12}),w(Ce);var me=m(Ce,2),Re=M(me,!0);w(Ne),k(()=>x(Re,e(de).title)),u(X,Ne)});var ie=m(W,2);{var ge=X=>{var de=_k(),Ne=M(de,!0);k(Ce=>x(Ne,Ce),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:nr(e(g).length-3)})]),u(X,de)};D(ie,X=>{e(g).length>3&&X(ge)})}w(V),u(K,V)};D(Xe,K=>{e(g).length>0&&K(ae)})}var Z=m(Xe,2);{var Je=K=>{var V=wk(),W=M(V,!0);k(ie=>x(W,ie),[()=>v.workspace_taskProgressBar_cancelled_label({count:nr(e(h).length)})]),u(K,V)};D(Z,K=>{e(h).length>0&&K(Je)})}u(Ee,Se)};D($,Ee=>{e(P)&&Ee(We)})}w(z),k(Ee=>x(Q,Ee),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)})]),u(E,z)},children:(E,z)=>{{let J=d(()=>In("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),Y=d(()=>`gap: ${l()}`),Q=d(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)}));yt(E,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(J)},get style(){return e(Y)},get"aria-label"(){return e(Q)},"data-task-progress-trigger":!0,children:(Ie,le)=>{var fe=kt(),ce=je(fe);Rt(ce,17,()=>e(p),Tr,(Le,G)=>{var we=Sk();let $;k(()=>$=Nn(we,"",$,{width:o(),height:c(),"background-color":i[e(G)]})),u(Le,we)}),u(Ie,fe)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};D(F,L=>{n().total>0&&L(T)})}return u(r,B),jt(R)}function Il(r,t){if(new.target)return Bt({component:Il,...r});Ht(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),c=y(t,"selection",7),l=y(t,"class",7,"");const f=d(()=>Pg(n(),c(),a()));var i={get items(){return n()},set items(p){n(p),_()},get ariaLabel(){return a()},set ariaLabel(p){a(p),_()},get open(){return s()},set open(p=!1){s(p),_()},get orientation(){return o()},set orientation(p="vertical"){o(p),_()},get selection(){return c()},set selection(p){c(p),_()},get class(){return l()},set class(p=""){l(p),_()},$set:Ft,$on:(p,g)=>zt(t,p,g)};return Jm(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>Eg(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,O)=>{let b=()=>(O?.()).props;yt(g,el(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,P)=>{Ym(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),jt(i)}var Ck=I('<span class="contents"><!></span>'),Ek=I("<!> <!>",1);function mf(r,t){if(new.target)return Bt({component:mf,...r});Ht(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=d(()=>iv(a()));let o=ye(null);wt(()=>{e(o)&&e(o).workspaceId!==n()&&A(o,null)});function c(h){const P=Ad(h);P&&A(o,{...P,workspaceId:n()},!0)}function l(h){h.preventDefault(),h.stopPropagation();const P=h.currentTarget.getBoundingClientRect();A(o,{x:P.left,y:P.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){A(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:Ft,$on:(h,P)=>zt(t,h,P)},p=Ek(),g=je(p);{let h=d(()=>v.workspace_microKeyBadge_ariaLabel({number:nr(a()+1)})),P=d(()=>v.workspace_microKeyBadge_tooltip({number:nr(a()+1)})),R=d(()=>e(o)!==null);yt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(P)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(R)},children:(B,F)=>{var T=Ck(),L=S(T);og(L,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(T),u(B,T)},$$slots:{default:!0}})}var O=m(g,2);{var b=h=>{{let P=d(()=>e(o)?.x??0),R=d(()=>e(o)?.y??0),B=d(()=>e(o)?.returnFocus),F=d(()=>v.workspace_card_assignMicroKey_label()),T=d(()=>eb(n(),f));Td(h,{get x(){return e(P)},get y(){return e(R)},get returnFocus(){return e(B)},selection:"single",get ariaLabel(){return e(F)},get items(){return e(T)},onClickOutside:f})}};D(O,h=>{e(o)&&h(b)})}return u(r,p),jt(i)}var Pk=I('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),Ak=I('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),Tk=I('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),Rk=I('<span data-workspace-card-pr-item=""><!></span>'),Mk=I('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),Nk=I('<span data-workspace-card-time=""><!></span>'),Lk=I('<span aria-hidden="true"><!></span>'),Ok=I("<div><!> <!> <!> <!></div>"),Dk=I('<div data-workspace-card-hover-surface=""><!></div>'),Bk=I('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),Fk=I('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),zk=I('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),Hk=I('<div class="text-sm font-semibold truncate"> </div>'),fd=I('<span class="truncate"> </span>'),jk=I('<span class="text-muted-foreground">·</span>'),Wk=I('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),Uk=I('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),qk=I('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),Vk=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),Kk=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),Gk=I('<div class="flex items-center text-ui"><span> </span></div>'),Jk=I('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),Yk=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),Xk=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),Zk=I('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function hf(r,t){if(new.target)return Bt({component:hf,...r});Ht(t,!0);const n=()=>bt(Be,"$prMonitors$",c),a=()=>bt(Xe,"$microConnected$",c),s=()=>bt(Z,"$hidesOwnerActions$",c),o=()=>bt(ae,"$workspaceKeySlot$",c),[c,l]=ga();let f=y(t,"workspace",7),i=y(t,"phase",7),p=y(t,"stats",7),g=y(t,"variant",7,"compact"),O=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),P=y(t,"isWaiting",7),R=y(t,"isPinned",7,!1),B=y(t,"streamingAgentIds",23,()=>[]),F=y(t,"hasSpec",7,!1),T=y(t,"isAgentRunning",7,!1),L=y(t,"agentDigest",7),U=y(t,"trailingLabel",7),E=y(t,"title",7),z=y(t,"repoName",7),J=y(t,"branch",7),Y=y(t,"onClick",7),Q=y(t,"onAction",7),Ie=y(t,"onTogglePin",7),le=y(t,"onMarkAsRead",7),fe=y(t,"onOpenInNewWindow",7),ce=y(t,"onHover",7),Le=y(t,"highlighted",7,!1),G=y(t,"selected",7,!1),we=y(t,"highlightId",7),$=y(t,"suppressHover",7,!1),We=y(t,"isolateHoverReveal",7,!1),Ee=y(t,"class",7),Se=y(t,"actions",7);const ke=Is("");wt(()=>{ke.set(f()?.id??"")});const Be=Gp(ke),Xe=gb(),ae=Fv(ke),Z=Jp(ke),Je=d(()=>rb(f()??{})),K=d(()=>nb(e(Je)));let V=d(()=>f()?pb.url.pathname===`/workspace/${f().id}`:!1),W=d(()=>f()?`workspace-hover-card-${f().id}`:void 0),ie=ye(!1),ge=ye(null),X=ye(null);wt(()=>{if(!e(X))return;const te=vo(e(X),{id:we()});return()=>te.destroy()});let de=ye(null),Ne=ye(null),Ce=ye(null),rt=ye(0),me=ye(0),Re=d(()=>e(rt)+(e(me)>0?e(me)+4:0));function q(){const te=e(de),pt=e(Ce);A(rt,te?Math.max(0,te.scrollWidth-te.clientWidth):0,!0),A(me,te&&pt&&pt.getClientRects().length>0?Math.max(0,te.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}wt(()=>{const te=e(de),pt=e(Ne),qt=e(Ce);if(!te||!pt||(q(),typeof ResizeObserver>"u"))return;const Jt=new ResizeObserver(q);return Jt.observe(te),Jt.observe(pt),qt&&Jt.observe(qt),()=>Jt.disconnect()});let Pe=null,ue=null,N=!1,H=!1,pe=!1,Qe=!1,Te=!1,Fe=!1,et=ye(!1),se=!1,ze=null,nt=ye(null),dt=null,Ke;function tt(){Pe!==null&&(clearTimeout(Pe),Pe=null)}function st(){ue!==null&&(clearTimeout(ue),ue=null),dt?.(),dt=null}function vt(){st(),A(et,!0),A(ie,!0),!Te&&(Te=!0,js.notifyOpened())}function _t(){st(),clearTimeout(Ke),A(et,!1),A(ie,!1),H=!1,Qe=!1,Te&&(Te=!1,js.notifyClosed())}function Ot(){return N||H||pe||Qe}function Dt(){if(!e(ie)){_t();return}st(),ue=setTimeout(()=>{ue=null,Ot()||_t()},sb),dt=js.deferClose(_t)}function Yt(){H=!0,st()}function Et(){H=!1,!pe&&!Qe&&Dt()}function Wt(){Qe=!0,clearTimeout(Ke),st()}function Qt(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;if(pt&&ve()?.contains(pt)||(Qe=!1,pt&&e(ge)?.contains(pt)))return;if(pt){!N&&!H&&_t();return}const qt=te.target;clearTimeout(Ke),Ke=setTimeout(()=>{const Jt=document.activeElement,_r=ve()?.contains(Jt)||e(ge)?.contains(Jt);Jt&&Jt!==qt&&_r||!N&&!H&&_t()},0)}function lr(){ze!==null&&clearTimeout(ze),se=!0,ze=setTimeout(()=>{se=!1,ze=null},0)}function Mt(te){const pt=te.target,qt=ve();pt instanceof Node&&qt?.contains(pt)||te.type==="scroll"&&e(ge)&&pt instanceof Node&&!pt.contains(e(ge))||(te.type==="pointerdown"&&lr(),tt(),_t())}wt(()=>{if(e(et))return window.addEventListener("pointerdown",Mt,!0),window.addEventListener("scroll",Mt,!0),()=>{window.removeEventListener("pointerdown",Mt,!0),window.removeEventListener("scroll",Mt,!0)}});function St(te){if(te.key!=="Escape")return;const pt=te.target;pt instanceof Node&&ve()?.contains(pt)||(te.preventDefault(),te.stopPropagation(),Fe=pe,tt(),_t())}wt(()=>{if(e(ie))return window.addEventListener("keydown",St,!0),()=>window.removeEventListener("keydown",St,!0)});const _e=d(()=>f()?Xp.select(Nt.state,f().id):null),ee=d(()=>e(_e)?e(_e):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),Ue=d(()=>Yp(f())),at=d(()=>{if(!f()||e(Ue))return[];const te=f(),pt=te.repositoryOwner&&te.repositoryName?`${te.repositoryOwner}/${te.repositoryName}`:void 0;return Ag({workspacePRs:te.pullRequests,activePR:e(ee),monitors:n(),workspaceRepo:pt,buildPrUrl:(qt,Jt)=>Pm(qt,te.repositoryOwner,te.repositoryName,Jt),getDisplayTitle:qt=>qt.title})}),ot=d(()=>e(at)[0]);function De(te){const pt=te.resource?.repository.provider==="gitlab"?`${te.repo} !${te.number}`:te.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:te.repo,number:te.number}):v.workspace_card_prBadge_label({number:` #${te.number}`});return[Zp(pt,te),te.title,te.details].filter(Boolean).join(`
|
|
262
262
|
`)}function oe(te){te.key==="Enter"&&Y()?.(te)}function ve(){return e(W)?document.getElementById(e(W)):null}function ne(){return Array.from(ve()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Me(){const te=e(ge)?.querySelector("[data-workspace-card-trigger]"),pt=ve();if(!te||!pt)return null;const qt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(_r=>_r.tabIndex>=0&&!pt.contains(_r)),Jt=qt.indexOf(te);return Jt>=0?qt[Jt+1]:null}function he(te){Fe=!!e(ge)?.contains(te),_t(),te.focus({preventScroll:!0})}function He(){const te=e(ge)?.querySelector("[data-workspace-card-trigger]");te&&he(te)}async function Ve(te){if(te.key==="Escape"&&e(ie)){te.preventDefault(),te.stopPropagation(),_t();return}te.key!=="ArrowDown"||$()||!f()||(te.preventDefault(),te.stopPropagation(),A(et,!0),A(ie,!0),await ca(),ne()[0]?.focus({preventScroll:!0}))}function qe(te){const pt=ne(),qt=te.key==="Tab"&&te.shiftKey&&te.currentTarget===pt[0],_r=te.key==="Tab"&&!te.shiftKey&&te.currentTarget===pt.at(-1)?Me():null;te.key!=="Escape"&&!qt&&!_r||(te.preventDefault(),te.stopPropagation(),_r?he(_r):He())}function $e(){N=!0,st(),js.settleDeferredCloses(),q(),ce()?.(),f()&&!$()&&!pe&&(tt(),A(et,!0),Pe=setTimeout(()=>{Pe=null,vt()},js.currentOpenDelay))}function Oe(){N=!1,tt(),!pe&&!Qe&&Dt()}function Ye(){pe=!0,tt(),st(),!Fe&&(se||f()&&!$()&&(A(et,!0),A(ie,!0)))}function xe(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;pt&&e(ge)?.contains(pt)||(Fe=!1,pe=!1,!(pt&&ve()?.contains(pt))&&!N&&!H&&_t())}wt(()=>{$()&&(tt(),st(),_t())});let Ze=ye(null),ft=ye(!1),ct;wt(()=>{const te=f()?.id;ct!==te&&(ct=te,A(ft,!1)),e(Ze)&&e(Ze).workspaceId!==f()?.id&&Ct()});function it(te){if(!f())return;const pt=Ad(te);if(pt){if(A(ft,!1),mt().length===0){A(Ze,null);return}A(Ze,{...pt,returnFocus:te.target instanceof HTMLElement?te.target.closest("button")??e(ge)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function Ct(){A(Ze,null),A(ft,!1)}wt(()=>{e(ft)&&A(Ze,null)}),eo(()=>{tt(),st(),ze!==null&&(clearTimeout(ze),ze=null),_t()});function mt(){if(!f())return[];const te=[];return fe()&&te.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:Dd,onClick:()=>{fe()?.(),Ct()}}),te.push(...ab(f().id,{connected:a(),onClose:Ct})),s()||(e(Ue)||te.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:Xg,onClick:()=>{Nt.dispatch(xv({workspaceId:f().id,workspaceTitle:f().title})),Ct()}}),te.push({id:"archive",label:v.workspace_card_archive_label(),icon:Bd,onClick:()=>{Nt.dispatch(Yd(f().id)),Ct()}}),te.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:Fd,destructive:!0,onClick:()=>{Nt.dispatch(Xd(f().id)),Ct()}})),te}let Lt=d(()=>T()&&L()?L():i()?.subtitle??""),Kt=d(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),Zt=d(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),cr=d(()=>e(Ue)?void 0:J()),Hr=d(()=>!p()||e(Ue)?"":p().pr.hasMerged?v.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?v.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),ln=d(()=>i()?.phase==="planning"?T()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:F()||(p()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const $r={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var mr={get workspace(){return f()},set workspace(te){f(te),_()},get phase(){return i()},set phase(te){i(te),_()},get stats(){return p()},set stats(te){p(te),_()},get variant(){return g()},set variant(te="compact"){g(te),_()},get showTime(){return O()},set showTime(te=!0){O(te),_()},get isRunning(){return b()},set isRunning(te=!1){b(te),_()},get isUnread(){return h()},set isUnread(te=!1){h(te),_()},get isWaiting(){return P()},set isWaiting(te){P(te),_()},get isPinned(){return R()},set isPinned(te=!1){R(te),_()},get streamingAgentIds(){return B()},set streamingAgentIds(te=[]){B(te),_()},get hasSpec(){return F()},set hasSpec(te=!1){F(te),_()},get isAgentRunning(){return T()},set isAgentRunning(te=!1){T(te),_()},get agentDigest(){return L()},set agentDigest(te){L(te),_()},get trailingLabel(){return U()},set trailingLabel(te){U(te),_()},get title(){return E()},set title(te){E(te),_()},get repoName(){return z()},set repoName(te){z(te),_()},get branch(){return J()},set branch(te){J(te),_()},get onClick(){return Y()},set onClick(te){Y(te),_()},get onAction(){return Q()},set onAction(te){Q(te),_()},get onTogglePin(){return Ie()},set onTogglePin(te){Ie(te),_()},get onMarkAsRead(){return le()},set onMarkAsRead(te){le(te),_()},get onOpenInNewWindow(){return fe()},set onOpenInNewWindow(te){fe(te),_()},get onHover(){return ce()},set onHover(te){ce(te),_()},get highlighted(){return Le()},set highlighted(te=!1){Le(te),_()},get selected(){return G()},set selected(te=!1){G(te),_()},get highlightId(){return we()},set highlightId(te){we(te),_()},get suppressHover(){return $()},set suppressHover(te=!1){$(te),_()},get isolateHoverReveal(){return We()},set isolateHoverReveal(te=!1){We(te),_()},get class(){return Ee()},set class(te){Ee(te),_()},get actions(){return Se()},set actions(te){Se(te),_()},$set:Ft,$on:(te,pt)=>zt(t,te,pt)},qn=kt(),ea=je(qn);{var Vn=te=>{var pt=Bk(),qt=je(pt);let Jt;var _r=S(qt);{let ht=d(()=>f().title||v.workspace_links_untitled_label()),Pt=d(()=>`workspace-status-state-${f().id}${R()?` workspace-pinned-state-${f().id}`:""}${e(ie)?` ${e(W)}`:""}`),ar=d(()=>e(V)?"page":void 0);yt(_r,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(ht)},get"aria-describedby"(){return e(Pt)},get"aria-current"(){return e(ar)},"data-workspace-card-trigger":!0,onkeydown:Ve,onclick:hr=>{hr.stopPropagation(),Y()?.(hr)}})}var Kn=m(_r,2),Jr=S(Kn);{var Gn=ht=>{var Pt=Pk(),ar=S(Pt);{var hr=wr=>{mf(wr,{get workspaceId(){return f().id},get slot(){return o()}})};D(ar,wr=>{o()!==null&&wr(hr)})}w(Pt),u(ht,Pt)};D(Jr,ht=>{a()&&ht(Gn)})}var fn=m(Jr,2);Ci(fn,{get content(){return e(K).tooltip},side:"bottom",sideOffset:4,children:(ht,Pt)=>{tb(ht,{get status(){return e(Je)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Jn=m(fn,2),ta=M(Jn,!0);w(Kn);var jr=m(Kn,2),en=S(jr),rr=S(en),Wr=S(rr),pn=M(Wr,!0);pr(Wr,ht=>A(Ne,ht),()=>e(Ne)),w(rr),pr(rr,ht=>A(de,ht),()=>e(de));var xr=m(rr,2);{var Or=ht=>{var Pt=Ak(),ar=je(Pt),hr=S(ar);At(hr,{get icon(){return Vl},size:"xs"}),w(ar);var wr=m(ar,2),Dr=M(wr,!0);k(yn=>{gt(ar,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
|
|
263
|
-
${Ie()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),re(wr,"id",`workspace-pinned-state-${f().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(ht,Pt)};D(xr,ht=>{R()&&ht(Or)})}w(en);var gn=m(en,2);{var va=ht=>{var Pt=Tk(),ar=M(Pt,!0);k(()=>x(ar,U())),u(ht,Pt)};D(gn,ht=>{U()&&ht(va)})}var tn=m(gn,2);{var Yr=ht=>{const Pt=d(()=>e(ot));var ar=Mk(),hr=S(ar);{let wr=d(()=>De(e(Pt)));Ci(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=kt(),Dn=je(ra);{var Cr=cn=>{{let Er=d(()=>De(e(Pt)));yt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Pt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Pt).identity},get"data-pr-status"(){return e(Pt).status},onclick:nn=>{nn.stopPropagation();const Ta=f().id;Ip(async()=>{const{handleLink:Yn}=await import("./
|
|
263
|
+
${Ie()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),re(wr,"id",`workspace-pinned-state-${f().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(ht,Pt)};D(xr,ht=>{R()&&ht(Or)})}w(en);var gn=m(en,2);{var va=ht=>{var Pt=Tk(),ar=M(Pt,!0);k(()=>x(ar,U())),u(ht,Pt)};D(gn,ht=>{U()&&ht(va)})}var tn=m(gn,2);{var Yr=ht=>{const Pt=d(()=>e(ot));var ar=Mk(),hr=S(ar);{let wr=d(()=>De(e(Pt)));Ci(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=kt(),Dn=je(ra);{var Cr=cn=>{{let Er=d(()=>De(e(Pt)));yt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Pt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Pt).identity},get"data-pr-status"(){return e(Pt).status},onclick:nn=>{nn.stopPropagation();const Ta=f().id;Ip(async()=>{const{handleLink:Yn}=await import("./iPP98vvn.js").then(vn=>vn.H);return{handleLink:Yn}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65]),import.meta.url).then(({handleLink:Yn})=>Yn(e(Pt).url,{workspaceId:Ta,event:nn}))},children:(nn,Ta)=>{At(nn,{get icon(){return e(Pt).statusIcon},size:14})},$$slots:{default:!0}})}},Cn=cn=>{var Er=Rk(),nn=S(Er);At(nn,{get icon(){return e(Pt).statusIcon},size:14}),w(Er),k(Ta=>{gt(Er,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Pt).foregroundClass??""}`,"svelte-1ct56pd"),re(Er,"aria-label",Ta),re(Er,"data-pr-identity",e(Pt).identity),re(Er,"data-pr-status",e(Pt).status)},[()=>De(e(Pt))]),u(cn,Er)};D(Dn,cn=>{e(Pt).url?cn(Cr):cn(Cn,-1)})}u(Dr,ra)},$$slots:{default:!0}})}w(ar),k(wr=>re(ar,"aria-label",wr),[()=>e(Pt).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),u(ht,ar)};D(tn,ht=>{e(ot)&&ht(Yr)})}var Mr=m(tn,2);{var xa=ht=>{var Pt=Nk(),ar=S(Pt);{var hr=Dr=>{{let yn=d(()=>Zl(f()));ig(Dr,{get date(){return e(yn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},wr=d(()=>Zl(f())>0);D(ar,Dr=>{e(wr)&&Dr(hr)})}w(Pt),k(()=>gt(Pt,1,`wc-secondary shrink-0 ${Se()||Ie()||h()&&le()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(ht,Pt)};D(Mr,ht=>{O()&&ht(xa)})}w(jr);var rs=m(jr,2);{var ns=ht=>{var Pt=Ok(),ar=S(Pt);{var hr=Cr=>{{let Cn=d(()=>R()?"text-primary-ink":"text-muted-foreground"),cn=d(()=>R()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),Er=d(()=>R()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
|
|
264
264
|
${e(Cn)??""}`},onclick:nn=>{nn.stopPropagation(),Ie()?.(nn)},get"aria-label"(){return e(cn)},get title(){return e(Er)},children:(nn,Ta)=>{var Yn=Lk(),vn=S(Yn);At(vn,{get icon(){return Vl},size:"xs"}),w(Yn),u(nn,Yn)},$$slots:{default:!0}})}};D(ar,Cr=>{Ie()&&Cr(hr)})}var wr=m(ar,2);{var Dr=Cr=>{{let Cn=d(()=>v.workspace_card_markAsRead_label()),cn=d(()=>v.workspace_card_markAsRead_label());yt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:Er=>{Er.stopPropagation(),le()?.(Er)},get"aria-label"(){return e(Cn)},get title(){return e(cn)},children:(Er,nn)=>{At(Er,{get icon(){return zd},size:"xs"})},$$slots:{default:!0}})}};D(wr,Cr=>{h()&&le()&&Cr(Dr)})}var yn=m(wr,2);un(yn,()=>Se()??So);var ra=m(yn,2);{var Dn=Cr=>{{let Cn=d(mt),cn=d(()=>v.workspace_progressCard_actions_ariaLabel());Il(Cr,{get items(){return e(Cn)},get ariaLabel(){return e(cn)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ft)},set open(Er){A(ft,Er,!0)}})}};D(ra,Cr=>{fe()&&Cr(Dn)})}w(Pt),pr(Pt,Cr=>A(Ce,Cr),()=>e(Ce)),k(()=>gt(Pt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
|
|
265
265
|
${We()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
|
|
266
266
|
${Le()?"opacity-100":$()?"opacity-0":We()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),u(ht,Pt)};D(rs,ht=>{(Se()||fe()||Ie()||h()&&le())&&ht(ns)})}w(qt),pr(qt,ht=>A(ge,ht),()=>e(ge)),Un(qt,(ht,Pt)=>vo?.(ht,Pt),()=>({id:we()}));var Xr=m(qt,2);{var rn=ht=>{ob(ht,{get id(){return e(W)},get anchor(){return`--workspace-list-${f().id??""}`},position:"right",get anchorElement(){return e(ge)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Yt,onmouseleave:Et,onfocusin:Wt,onfocusout:Qt,children:(Pt,ar)=>{var hr=Dk(),wr=S(hr);ib(wr,{get workspace(){return f()},get activeAgentIds(){return B()},onkeydown:qe}),w(hr),pr(hr,Dr=>A(nt,Dr),()=>e(nt)),Rn("pointerenter",hr,Yt),Rn("pointerleave",hr,Et),Rr("focusin",hr,Wt),Rr("focusout",hr,Qt),u(Pt,hr)},$$slots:{default:!0}})};D(Xr,ht=>{e(ie)&&!$()&&ht(rn)})}var On=m(Xr,2);{var kr=ht=>{const Pt=d(mt);var ar=kt(),hr=je(ar);{var wr=Dr=>{{let yn=d(()=>e(Ze)?.x??0),ra=d(()=>e(Ze)?.y??0),Dn=d(()=>e(Ze)?.returnFocus),Cr=d(()=>v.workspace_progressCard_actions_ariaLabel());Td(Dr,{get x(){return e(yn)},get y(){return e(ra)},get returnFocus(){return e(Dn)},get ariaLabel(){return e(Cr)},get items(){return e(Pt)},onClickOutside:Ct})}};D(hr,Dr=>{e(Pt).length>0&&Dr(wr)})}u(ht,ar)};D(On,ht=>{e(Ze)&&ht(kr)})}k((ht,Pt,ar)=>{gt(qt,1,ht,"svelte-1ct56pd"),re(qt,"data-pinned",R()),re(qt,"data-highlight-id",we()),Jt=Nn(qt,"",Jt,{"anchor-name":`--workspace-list-${f().id??""}`}),re(Jn,"id",`workspace-status-state-${f().id??""}`),x(ta,e(K).accessibleName),gt(rr,1,`wc-title type-body min-w-0 truncate font-normal!
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as h}from"./
|
|
1
|
+
import{J as h}from"./CMTI9mHX.js";import{c as v}from"./ChTqQfQN.js";import{bt as d}from"./BePtUMMB.js";const g=v("AttachmentImageUrl");function y(n,t){const r=t.split("/").filter(e=>e.length>0).map(e=>encodeURIComponent(e)).join("/");return`workspace-file://${n}/${r}`}const u=new Map,a=new Map;let f=0,m=!1;function p(){m||(m=!0,d(()=>{f+=1,u.clear(),a.clear()}))}function A(n,t){u.delete(`${n}/${t}`)}function F(n,t,r){p();let e=!1,i=!1,o=!1;async function l(){if(!e){if(i){o=!0;return}i=!0;try{const c=await $(n,t);e||r(c)}finally{i=!1,o&&(o=!1,l())}}}const s=d(()=>{l()});return l(),{imageFailed(){e||(A(n,t),r(null))},dispose(){e=!0,s()}}}function $(n,t){p();const r=f,e=`${n}/${t}`,i=u.get(e);if(i)return Promise.resolve(i);const o=a.get(e);if(o)return o;const l=(async()=>{try{const s=await h({attachmentId:t,workspaceId:n});if(r!==f)return null;if(!s.exists)return g.warn("Attachment file missing on disk",{attachmentId:t}),null;const c=y(n,s.path);return u.set(e,c),c}catch(s){return g.warn("Failed to resolve attachment image",{attachmentId:t,error:s}),null}finally{r===f&&a.delete(e)}})();return a.set(e,l),l}export{A as e,F as o,$ as r};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{p as re}from"./
|
|
1
|
+
import{p as re}from"./BOzfDsJz.js";import{Y as oe,b0 as se,aZ as de,U as le,V as ce,a_ as me,b as o,ay as g,X as R,aW as ue,b4 as xe,r as fe,q as ge,W as B,O as he,aV as P,bi as S,m as pe}from"./CErBjij6.js";import{p as be,i as ve}from"./BbcRDMCy.js";var D="position frame",N="frame positioned",k="position relation",T="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),fe()},"clear");function C(){w={}}o(C,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...B().eventmodeling}),"getConfig"),w={};function O(){let e=Fe;const{ast:n}=w,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=L(i,n.dataEntities,t);e=v(e,{$kind:D,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:k,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:k,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function W(e){w.ast=void 0;const n=new Set;for(const t of e.frames){if(n.has(t.name)){const i=t.$cstNode?.range.start.line,a=i===void 0?"":` on line ${i+1}`;throw new Error(`Duplicate event modeling frame ID "${t.name}"${a}`)}n.add(t.name)}w.ast=e}o(W,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function I(e){const n=e.split(".");if(n.length===2)return n[0]}o(I,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=I(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function V(e){const{themeVariables:n}=B();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(V,"calculateEntityVisualProps");function L(e,n,t){const i=B(),a=P(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${S(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=P(r,i),r=S(r,t.textMaxWidth,d),r=r.replaceAll(" "," ")),e.dataReference){const p=n.find(y=>y.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{
|
|
2
2
|
`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=P(r,i),r=S(r,t.textMaxWidth,d),r=r.replaceAll(" "," "),r+="<br/>")}const m=r!==void 0;m&&(c+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=pe(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(L,"calculateTextProps");function G(e,n){const t=n,i=V(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:N,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(G,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function Y(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(Y,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function j(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=Y(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p<f.length;p++){const y=f[p],$=f[p-1];y.y=$.y+$.height+s.swimlaneGap}return h}o(j,"evolveFramePositioned");function z(e,n){return e===0&&n.sourceFrames.length===0}o(z,"isFirstFrame");function K(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o(K,"hasSourceFrame");function F(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(F,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function Z(e,n){const t=n;if(z(t.index,t.frame))return[];const i=F(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;if(t.sourceFrame)a=F(e.boxes,t.sourceFrame);else{if(ve(t.frame))return[];a=q(e.boxes,i.swimlane.index,t.index-1)}return a===void 0?[]:[{$kind:T,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(Z,"decidePositionRelation");function J(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(J,"evolveRelationPositioned");var Me={[D]:G,[k]:Z},Be={[N]:j,[T]:J};function Q(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Q,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Q(e,n);return ee(e,t)}o(v,"dispatch");var M={getConfig:ke,preserveCommentsWhenParsing:!0,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:W,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await be("eventmodeling",e);g.debug(n),M.setAst(n),re(n,M)},"parse")},Ae=R(),$e=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var Re=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+`
|
|
3
3
|
`,"id:",n,t),!$e)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=R(),l=ue(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),xe(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),De={draw:Re},Ne=o(e=>"","getStyles"),Te=Ne,Ie={parser:Ee,db:M,renderer:De,styles:Te};export{Ie as diagram};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{fF as U,
|
|
1
|
+
import{fF as U,Ir as o,ny as x,m0 as F,lT as G,sW as K}from"./DBkMUdAo.js";import{g as q,G as j,dS as V,cG as N,dr as w,dC as E,dN as M,cB as Y,aB as $}from"./B10dK85Q.js";import{l as z,R as J,E as Q}from"./BtpuPEaR.js";function X(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function k(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 we(e){const t=e.filter(X).map(s=>({agent:s,activity:k(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})=>U(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",L="New chat";function Z(e){const t=e?.trim();return!t||t===L||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function ee(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?q(r).trim():"";return!t||Z(t)?c||L:c||t}const te="chief-of-staff",se=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 be(e){const t=e?.trim();return t?`${T}
|
|
2
2
|
|
|
3
3
|
${t}`:T}const re=o.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?x(s.hooks):[]}),oe=o.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),O=o.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??F),Ae=o.createSelector((e,t,s)=>{const r=O.select(e,t);return r.status==="unsupported"?[]:r.monitors.filter(c=>c.agentId===s)}),u=o.createSelector((e,t,s)=>{const r=K(t,s);return e.agentSubscriptionUI.entries[r]??G}),ne=o.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),ae=o.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),ce=o.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),ve=o.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),ye=o.createSelector((e,t,s)=>u.select(e,t,s).waitingState),Ce=o.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function ie(e){return[...new Set(e.filter(Boolean))]}const We=o.createSelector((e,t,s)=>{const r=u.select(e,t,s),c=[],l=new Set,i=n=>{for(const a of ie(n))l.has(a)||(l.add(a),c.push(a))},h=[...r.subscriptions].sort((n,a)=>n.createdAt.localeCompare(a.createdAt)||n.id.localeCompare(a.id));for(const n of h)n.delegationGroup?.awaitMode!=="all"&&i(n.actorIds);const g=new Map;for(const n of r.delegationGroups)n.awaitMode==="all"&&g.set(n.groupId,n);for(const n of g.values())i(n.expectedAgentIds);for(const n of h){const a=n.delegationGroup;a?.awaitMode==="all"&&!g.has(a.groupId)&&i(a.expectedAgentIds)}const d=new Set;for(const n of r.delegationGroups){for(const a of n.completedAgentIds)d.add(a);for(const a of n.deletedAgentIds)d.add(a);for(const[a,f]of Object.entries(n.agentStatuses))f==="completed"&&d.add(a)}for(const[n,a]of Object.entries(r.agentStatuses))a==="completed"&&d.add(n);const A=e.agentSessions?.byAgentId??{},v=new Set([...d].filter(n=>{const a=A[n];return!a||!j(V(a))})),y=new Map(c.map((n,a)=>[n,a])),C=n=>{const a=A[n];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(v.has(n))return 4;const f=String(a.status).toLowerCase();return f==="responding"||f==="active"||f==="processing"?2:3},W=c.filter(n=>!v.has(n)).sort((n,a)=>C(n)-C(a)||(y.get(n)??0)-(y.get(a)??0));return{visible:r.snapshotStatus==="failed"||r.waitingState==="completed"||c.length>0||r.wokenUpInfo!==null,count:W.length,participantAgentIds:W}}),Te=o.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),Ne=o.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});o.createSelector((e,t,s)=>{const r=ce.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 Ee=o.createSelector(e=>{const t=z.select(e);if(!t||!J.select(e))return[];const s=new Set;for(const r of Q.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}))}),P="pinned",le=64;function I(e){return e.trim().toLocaleLowerCase()}function R(e){return e===P}function Me(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>le)return{ok:!1,error:"tooLong"};const r=I(s);return r===P?{ok:!1,error:"reserved"}:t.some(c=>I(c)===r)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function de(e){const t=new Map;for(const s of e){if(typeof s!="string"||R(s))continue;const r=s.trim();if(r.length===0)continue;const c=I(r);t.has(c)||t.set(c,s)}return[...t.values()].sort((s,r)=>s.localeCompare(r,void 0,{sensitivity:"base"}))}function _(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 D(e){return e.metadata?.specialist===te&&e.metadata?.chiefPromptVersion===se}function B(e){return Math.max(e.messages.length,e.messageCount??0)}function S(e){return{agentId:e.id,title:ee(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:B(e),pinned:e.pinned===!0,retired:!!e.retiredAt}}function b(e){return _(e).filter(t=>!t.retiredAt)}function m(e,t){return k(t)-k(e)}const Le=o.createSelector(e=>e.sidebarNav.panelItem),Oe=o.createSelector(e=>e.sidebarNav.onboardingActive),Pe=o.createSelector(e=>e.sidebarNav.showCreateModal),Re=o.createSelector(e=>e.sidebarNav.createModalUsesHomeRepository),_e=o.createSelector(e=>e.sidebarNav.createModalPrefillRequest),H=o.createSelector(e=>N.select(e)?.capabilities.workspaceLabels===1),De=o.createSelector((e,t)=>w.select(e,t)?.label??null),Be=o.createSelector(e=>de(E.select(e).map(t=>t.label))),pe=["id","label"],He=o.createSelector((e,t)=>H.select(e)&&M.select(e,t,pe)!==null),ue=o.createSelector(e=>N.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),ge=o.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),Ue=o.createSelector((e,t)=>w.select(e,t)?.autoArchiveDisabled===!0),fe=["id","autoArchiveDisabled"],xe=o.createSelector((e,t)=>{if(!ue.select(e)||!ge.select(e))return!1;const s=w.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:M.select(e,t,fe)!==null}),Fe=o.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),Ge=o.createSelector(e=>H.select(e)?E.select(e).filter(t=>R(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),Ke=o.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["overview"]),qe=o.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),je=o.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),Ve=o.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),Ye=o.createSelector(e=>e.sidebarNav.chiefActiveAgentId),$e=o.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const r=oe.select(e,p)==="ready"?re.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=Y.select(e,p)==="ready"?$.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=O.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??(ne.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),g=ae.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:r,monitors:c+i,subscriptions:h+g}}),ze=o.createSelector(e=>e.sidebarNav.statsOverlayOpen),he=o.createSelector(e=>b(e).sort((t,s)=>+(s.pinned===!0)-+(t.pinned===!0)||m(t,s)).map(S)),Se=o.createSelector(e=>_(e).filter(t=>!!t.retiredAt).sort(m).map(S)),Je=o.createSelector(e=>[...he.select(e),...Se.select(e)]),Qe=o.createSelector(e=>{const t=b(e).filter(D).sort(m)[0];return t?S(t):null}),Xe=o.createSelector(e=>{const t=b(e).filter(s=>B(s)===0&&!s.lastMessageId&&D(s)).sort(m)[0];return t?S(t):null});export{Oe as A,Le as B,se as C,L as D,Ge as E,Se as F,Xe as G,O as H,Pe as I,ze as J,Te as K,Ne as L,ye as M,Ce as N,Ue as O,P,je as Q,Ve as R,De as S,Be as T,qe as U,Me as V,le as W,te as a,p as b,be as c,X as d,We as e,ve as f,ne as g,Je as h,R as i,$e as j,re as k,oe as l,xe as m,He as n,Ye as o,he as p,_e as q,we as r,Ae as s,Re as t,Qe as u,ce as v,Ee as w,H as x,Fe as y,Ke as z};
|