@intent-hq/web 2.320.0 → 2.321.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/{4o1DPfmL.js → -x_SoK5J.js} +1 -1
- package/web/app/immutable/chunks/{DYRPk2Lc.js → 0Orrh1Id.js} +6 -6
- package/web/app/immutable/chunks/{BBHcEtpr.js → 0TFOtiMK.js} +1 -1
- package/web/app/immutable/chunks/{DrzXjqzo.js → 0x0gscua.js} +1 -1
- package/web/app/immutable/chunks/{D2Hsf4lo.js → 45y_L1a9.js} +1 -1
- package/web/app/immutable/chunks/{CVQvxrRM.js → 4iRc0E9v.js} +1 -1
- package/web/app/immutable/chunks/{CCvXttvr.js → 5MGYaOe_.js} +1 -1
- package/web/app/immutable/chunks/{DCnWoCId.js → 5QXDo1_h.js} +1 -1
- package/web/app/immutable/chunks/{VlQJw7Mt.js → 6cxhz2FS.js} +1 -1
- package/web/app/immutable/chunks/{Bw5FiD-Y.js → 7fl6VDRo.js} +1 -1
- package/web/app/immutable/chunks/{D1xDyaMF.js → 8OpKoiOO.js} +1 -1
- package/web/app/immutable/chunks/{Bfb5WFg3.js → 8biy-UQv.js} +1 -1
- package/web/app/immutable/chunks/{H3thz4A8.js → Ab2YxsyL.js} +1 -1
- package/web/app/immutable/chunks/{CAoY2-K6.js → B-WefpDP.js} +1 -1
- package/web/app/immutable/chunks/{DsF7snTf.js → B0FM877X.js} +1 -1
- package/web/app/immutable/chunks/{XppZ9Q2A.js → B0FYEeEw.js} +1 -1
- package/web/app/immutable/chunks/{CpEHCOut.js → B0JWnOsx.js} +1 -1
- package/web/app/immutable/chunks/{C0Eg_x6y.js → B0pgN3Jj.js} +1 -1
- package/web/app/immutable/chunks/{dTdCS8d7.js → B1WyTcs2.js} +3 -3
- package/web/app/immutable/chunks/{CgN5SAW1.js → B2c_0_UD.js} +2 -2
- package/web/app/immutable/chunks/{BtxYdCDO.js → B2yYgkwz.js} +1 -1
- package/web/app/immutable/chunks/{Dyftr3KP.js → B5nbjbRb.js} +1 -1
- package/web/app/immutable/chunks/{Cmsg1-Jz.js → B6DUgu-2.js} +1 -1
- package/web/app/immutable/chunks/{BpzYGtC7.js → B7BTR3Z_.js} +1 -1
- package/web/app/immutable/chunks/{eeOO6ePS.js → B9MBednq.js} +1 -1
- package/web/app/immutable/chunks/{GzyujEXJ.js → BBZiE97y.js} +1 -1
- package/web/app/immutable/chunks/{CjOd6IrN.js → BBeErNG6.js} +1 -1
- package/web/app/immutable/chunks/{CwKQMp5y.js → BC1v75_H.js} +1 -1
- package/web/app/immutable/chunks/{D02FkLBh.js → BD8I8FK1.js} +1 -1
- package/web/app/immutable/chunks/{gV7ZxrZ2.js → BDgfVkJh.js} +1 -1
- package/web/app/immutable/chunks/{CZy8s0G0.js → BEQ_aNVt.js} +2 -2
- package/web/app/immutable/chunks/{C-_w8CdN.js → BG-UHIO1.js} +2 -2
- package/web/app/immutable/chunks/{DgIrJ3hH.js → BGFrQA7m.js} +1 -1
- package/web/app/immutable/chunks/{BJDDeVIO.js → BGiTQR4x.js} +1 -1
- package/web/app/immutable/chunks/{BwTXFSMC.js → BLhWzQz2.js} +1 -1
- package/web/app/immutable/chunks/{hIpW6zoP.js → BM51eWC-.js} +1 -1
- package/web/app/immutable/chunks/{DpAML2LZ.js → BMH4mbSd.js} +2 -2
- package/web/app/immutable/chunks/{CPgvYNNr.js → BMc6OzJ-.js} +2 -2
- package/web/app/immutable/chunks/{CI_jzrtS.js → BMvbnoDk.js} +1 -1
- package/web/app/immutable/chunks/{CAidTZMG.js → BOaNSc_1.js} +1 -1
- package/web/app/immutable/chunks/{go1cucdf.js → BOrghaSd.js} +2 -2
- package/web/app/immutable/chunks/{DDRNgELR.js → BPp7FHiR.js} +1 -1
- package/web/app/immutable/chunks/{BI6L4fKK.js → BS5yagDq.js} +1 -1
- package/web/app/immutable/chunks/{D5mrdrwv.js → BWHu0fap.js} +1 -1
- package/web/app/immutable/chunks/{CT5WLLvq.js → BX-dt_Uh.js} +1 -1
- package/web/app/immutable/chunks/{CR6gKG-r.js → BXPwex0u.js} +1 -1
- package/web/app/immutable/chunks/{CDFwOYFZ.js → BXean12D.js} +1 -1
- package/web/app/immutable/chunks/{Cl6HYldG.js → BZyfa8QR.js} +1 -1
- package/web/app/immutable/chunks/{C5i434eU.js → BbCn81lZ.js} +1 -1
- package/web/app/immutable/chunks/{D2MFHl3c.js → Bc-CUZMV.js} +1 -1
- package/web/app/immutable/chunks/{DHup9Hyk.js → Bcc7Bzbg.js} +1 -1
- package/web/app/immutable/chunks/{D33mZ1q4.js → BcpqnYRX.js} +5 -5
- package/web/app/immutable/chunks/{CI-6MxKa.js → BdWpSBC4.js} +2 -2
- package/web/app/immutable/chunks/{CLHEbYRj.js → BeqbwVaJ.js} +1 -1
- package/web/app/immutable/chunks/{DgDI47Tl.js → BflC9e-C.js} +1 -1
- package/web/app/immutable/chunks/{DSP3ClFU.js → Bgw4M5Hc.js} +1 -1
- package/web/app/immutable/chunks/{lzfQOUtM.js → Bi4OiJD3.js} +1 -1
- package/web/app/immutable/chunks/{DpTF0OML.js → BkR5Qiti.js} +1 -1
- package/web/app/immutable/chunks/{CWHiycVZ.js → Bknqawxe.js} +1 -1
- package/web/app/immutable/chunks/{CK5TbVXs.js → Bm_1OUSw.js} +1 -1
- package/web/app/immutable/chunks/{DVX1HL-4.js → Bmmshx2M.js} +1 -1
- package/web/app/immutable/chunks/{DYepVMa7.js → Bo4s1kgI.js} +3 -3
- package/web/app/immutable/chunks/{D_FHOcPH.js → Bok30zBH.js} +1 -1
- package/web/app/immutable/chunks/{5REd_oE3.js → BsB3ty-n.js} +1 -1
- package/web/app/immutable/chunks/{i6Mg1Q2O.js → BtTBXjdJ.js} +1 -1
- package/web/app/immutable/chunks/{r2I2bB7k.js → BtWwzwrf.js} +1 -1
- package/web/app/immutable/chunks/{D8UQMJEh.js → BvkV35-O.js} +1 -1
- package/web/app/immutable/chunks/{fUyHJpWx.js → BwICfRz9.js} +1 -1
- package/web/app/immutable/chunks/{CfpYQrWa.js → BwYRCP9e.js} +1 -1
- package/web/app/immutable/chunks/{B_dSJdhc.js → ByKL05wN.js} +1 -1
- package/web/app/immutable/chunks/{afj8l-L0.js → Byv2GcxJ.js} +2 -2
- package/web/app/immutable/chunks/{D-NAfI6p.js → BziQ6zwo.js} +1 -1
- package/web/app/immutable/chunks/{SrOLwB5L.js → C-RJDuZ9.js} +1 -1
- package/web/app/immutable/chunks/{BsWKC22i.js → C-neqscP.js} +1 -1
- package/web/app/immutable/chunks/{DHbAKa61.js → C06rhFz-.js} +1 -1
- package/web/app/immutable/chunks/{Bd9YcJpJ.js → C0VXEpDj.js} +1 -1
- package/web/app/immutable/chunks/{ivVGXMNS.js → C0mBOV7w.js} +1 -1
- package/web/app/immutable/chunks/{B9MzVcgv.js → C11XjPnf.js} +3 -3
- package/web/app/immutable/chunks/{C7VzwASa.js → C3AKbypo.js} +6 -6
- package/web/app/immutable/chunks/{8AEPB8vg.js → C3lgqjB4.js} +1 -1
- package/web/app/immutable/chunks/{C_nueLij.js → C5aeZ3Yo.js} +2 -2
- package/web/app/immutable/chunks/{Bk4gFCP5.js → C6-BVYMv.js} +1 -1
- package/web/app/immutable/chunks/C76-jvlr.js +19 -0
- package/web/app/immutable/chunks/{CIO13o1_.js → C7JWgw8J.js} +3 -3
- package/web/app/immutable/chunks/{DLX1zpqU.js → C804xHCz.js} +1 -1
- package/web/app/immutable/chunks/{DdteGby8.js → C8xPpxcv.js} +1 -1
- package/web/app/immutable/chunks/{BoUhyyfU.js → C8zzua9V.js} +1 -1
- package/web/app/immutable/chunks/{P_873CiZ.js → CAgY0H5Q.js} +1 -1
- package/web/app/immutable/chunks/{ApbPdiAE.js → CBxbaIvA.js} +1 -1
- package/web/app/immutable/chunks/CCaX_DIa.js +1 -0
- package/web/app/immutable/chunks/{7z2H_RtS.js → CCnP87Jb.js} +1 -1
- package/web/app/immutable/chunks/{DUBITB6h.js → CCsRc7xx.js} +1 -1
- package/web/app/immutable/chunks/{BFslYMdM.js → CDsY8gY8.js} +1 -1
- package/web/app/immutable/chunks/{BjK8NxLQ.js → CEFpGNTq.js} +1 -1
- package/web/app/immutable/chunks/{V4Dt-iuy.js → CEj75uMJ.js} +1 -1
- package/web/app/immutable/chunks/{DFelFjwN.js → CG9qWr93.js} +3 -3
- package/web/app/immutable/chunks/{DjfcjPFA.js → CGBBhq8k.js} +1 -1
- package/web/app/immutable/chunks/{DU9iEtZ1.js → CGIf2jXM.js} +1 -1
- package/web/app/immutable/chunks/{B02JUP96.js → CGVJO4eq.js} +1 -1
- package/web/app/immutable/chunks/{ipFV2AXr.js → CHM5tGJ6.js} +1 -1
- package/web/app/immutable/chunks/CHRkLzGl.js +1 -0
- package/web/app/immutable/chunks/{D7X4cgrV.js → CHZAzCO9.js} +2 -2
- package/web/app/immutable/chunks/{BuOFVkeK.js → CIh8Ybhq.js} +1 -1
- package/web/app/immutable/chunks/{BUQv-rGq.js → CKO4faLg.js} +1 -1
- package/web/app/immutable/chunks/{Hl0p8Y_K.js → CKwPlZ66.js} +1 -1
- package/web/app/immutable/chunks/{BYWZOhBp.js → CLmrIbfi.js} +1 -1
- package/web/app/immutable/chunks/{qBcLa7Zb.js → CM7Hb3PZ.js} +1 -1
- package/web/app/immutable/chunks/{BcyYpopU.js → CN70DRE5.js} +1 -1
- package/web/app/immutable/chunks/{B_BXfNyq.js → CPKLysog.js} +1 -1
- package/web/app/immutable/chunks/CRyHSgI1.js +1 -0
- package/web/app/immutable/chunks/{EJCOdspF.js → CS7dHtKw.js} +1 -1
- package/web/app/immutable/chunks/{XL81JlY3.js → CTlGDL05.js} +1 -1
- package/web/app/immutable/chunks/{DkrIcKd4.js → CVjlpAWj.js} +3 -3
- package/web/app/immutable/chunks/{vnFqKiHP.js → CVrH3Neh.js} +1 -1
- package/web/app/immutable/chunks/{D7ZBvVv7.js → CXIZuwd7.js} +1 -1
- package/web/app/immutable/chunks/{T8ZYfg6I.js → CY9IKMQG.js} +1 -1
- package/web/app/immutable/chunks/{D_tUKjY4.js → CYOvUFvY.js} +1 -1
- package/web/app/immutable/chunks/{BPBgxP_m.js → CZEWv-Gf.js} +1 -1
- package/web/app/immutable/chunks/{jiIr1QvR.js → C_Vz3LCC.js} +1 -1
- package/web/app/immutable/chunks/{_GzLh8om.js → Cb3FWEmc.js} +1 -1
- package/web/app/immutable/chunks/{HxY68xDO.js → Cbqk5Mud.js} +1 -1
- package/web/app/immutable/chunks/{BkH6TsO0.js → CchM71Qw.js} +1 -1
- package/web/app/immutable/chunks/{RBSqSYOo.js → CdGIN-T1.js} +3 -3
- package/web/app/immutable/chunks/{DaNWGYoy.js → CdVKa6AF.js} +2 -2
- package/web/app/immutable/chunks/{DHA6UXAH.js → Ced26xBL.js} +1 -1
- package/web/app/immutable/chunks/{DukwQosN.js → Ci959ZOg.js} +1 -1
- package/web/app/immutable/chunks/{Uvf6CZvV.js → Cja4W1Zb.js} +4 -4
- package/web/app/immutable/chunks/{DtL3mwiX.js → CmAVmm3T.js} +1 -1
- package/web/app/immutable/chunks/CmYXfe7_.js +1 -0
- package/web/app/immutable/chunks/{5-cDqrnd.js → CoUfnBeR.js} +1 -1
- package/web/app/immutable/chunks/{4PQMLe8m.js → Cq6ekj5I.js} +1 -1
- package/web/app/immutable/chunks/{C_Jtint5.js → CqGkRJXi.js} +1 -1
- package/web/app/immutable/chunks/{BEqt0QSe.js → Cqay3Iio.js} +1 -1
- package/web/app/immutable/chunks/{B1r9HFnN.js → CsqvO7xN.js} +1 -1
- package/web/app/immutable/chunks/{DQhHyGm2.js → Ctggj9Y1.js} +1 -1
- package/web/app/immutable/chunks/{CTIoKRdg.js → Cts399i7.js} +1 -1
- package/web/app/immutable/chunks/{TRcwahzR.js → CulY8r4s.js} +1 -1
- package/web/app/immutable/chunks/{0S9IxBYm.js → CvBuWqyP.js} +4 -4
- package/web/app/immutable/chunks/{DB531Hr_.js → CvegPRPp.js} +2 -2
- package/web/app/immutable/chunks/{DFlMJdQz.js → Cwv7iryQ.js} +1 -1
- package/web/app/immutable/chunks/{BFPcVXtw.js → CxQ0SCX2.js} +1 -1
- package/web/app/immutable/chunks/{DZxiqmZj.js → CxZuxrAL.js} +1 -1
- package/web/app/immutable/chunks/{BxsS3mXG.js → Cz8iOYm8.js} +1 -1
- package/web/app/immutable/chunks/{CFBBhrkC.js → CztKENY4.js} +1 -1
- package/web/app/immutable/chunks/{CxGR0S3R.js → D26IPp5S.js} +1 -1
- package/web/app/immutable/chunks/{DfBOHkPz.js → D2iCI9dn.js} +1 -1
- package/web/app/immutable/chunks/{CSY5tujD.js → D2zJp5fS.js} +29 -29
- package/web/app/immutable/chunks/{Bv-JB2Uu.js → D4e2w8TP.js} +1 -1
- package/web/app/immutable/chunks/{BDWwvOsS.js → D5lr7eae.js} +2 -2
- package/web/app/immutable/chunks/{9Lm8k_8r.js → D6dCvfQe.js} +1 -1
- package/web/app/immutable/chunks/{CMeoq2YD.js → D7q-DSVP.js} +1 -1
- package/web/app/immutable/chunks/{Bq8HB3qA.js → D84A4J8d.js} +1 -1
- package/web/app/immutable/chunks/{B2RDqcyK.js → DDdLPEvL.js} +1 -1
- package/web/app/immutable/chunks/{DU9yd1xn.js → DDnwQoVq.js} +1 -1
- package/web/app/immutable/chunks/{MJGmlCLu.js → DFcwI6Rh.js} +1 -1
- package/web/app/immutable/chunks/{DyyCDL26.js → DFyBaL9d.js} +1 -1
- package/web/app/immutable/chunks/{CCmXROuj.js → DI4wCe7O.js} +1 -1
- package/web/app/immutable/chunks/{DSbw-nyW.js → DJKXcaw9.js} +1 -1
- package/web/app/immutable/chunks/{DIitBWg3.js → DMRQ6CDd.js} +2 -2
- package/web/app/immutable/chunks/{i3h2CX4F.js → DMvfzQWM.js} +1 -1
- package/web/app/immutable/chunks/{D0rBJOMA.js → DNFHGDC9.js} +1 -1
- package/web/app/immutable/chunks/{R6dAjEem.js → DNNMwmDG.js} +1 -1
- package/web/app/immutable/chunks/{CZ5Pr0zI.js → DOzF5uE-.js} +1 -1
- package/web/app/immutable/chunks/{DDdEHmdT.js → DPoarPZL.js} +1 -1
- package/web/app/immutable/chunks/{273-ejOd.js → DR4i54x0.js} +1 -1
- package/web/app/immutable/chunks/{CHGuZ9fZ.js → DRpDjwRs.js} +1 -1
- package/web/app/immutable/chunks/{BvnODxCP.js → DS2Q5gr9.js} +1 -1
- package/web/app/immutable/chunks/{B-ukGsyU.js → DSdY0J1g.js} +1 -1
- package/web/app/immutable/chunks/{BYA94DCT.js → DXySew1R.js} +1 -1
- package/web/app/immutable/chunks/{C72zM9oE.js → DYfBNrOV.js} +1 -1
- package/web/app/immutable/chunks/{CCghBHzC.js → DYhpST_X.js} +1 -1
- package/web/app/immutable/chunks/{QeTaV4Op.js → DZAWjsA4.js} +1 -1
- package/web/app/immutable/chunks/{CBE9bOjQ.js → DZtstCLQ.js} +1 -1
- package/web/app/immutable/chunks/{sZnxO3Td.js → D_HysCp7.js} +1 -1
- package/web/app/immutable/chunks/{BOypJjQg.js → Dd0rdLMI.js} +1 -1
- package/web/app/immutable/chunks/{CwSP6heW.js → Dd7A9glX.js} +1 -1
- package/web/app/immutable/chunks/{Ci8maFTk.js → Dgqdx3pd.js} +1 -1
- package/web/app/immutable/chunks/{Ca0VZzWN.js → DhtKWu39.js} +1 -1
- package/web/app/immutable/chunks/{BBvT7Bb8.js → Dix9BiYu.js} +1 -1
- package/web/app/immutable/chunks/{CtugIh5q.js → DjqPgoUP.js} +1 -1
- package/web/app/immutable/chunks/DlBxdhh5.js +2 -0
- package/web/app/immutable/chunks/{CgQiyraX.js → DlZzAKZ2.js} +1 -1
- package/web/app/immutable/chunks/{PsUBRXJ6.js → DnfX8iZ_.js} +1 -1
- package/web/app/immutable/chunks/Dritbi2C.js +6 -0
- package/web/app/immutable/chunks/{BlAtH_I1.js → DsRLPs6I.js} +10 -10
- package/web/app/immutable/chunks/{DVijqcE1.js → Du7yAEgM.js} +1 -1
- package/web/app/immutable/chunks/{BivhoPt2.js → DuMlpvYZ.js} +1 -1
- package/web/app/immutable/chunks/{CvfkUn8M.js → DwNzQjT_.js} +1 -1
- package/web/app/immutable/chunks/{Dyr9OHj8.js → DwsRDnkS.js} +4 -4
- package/web/app/immutable/chunks/{C7K9s96B.js → DyVNmy1r.js} +1 -1
- package/web/app/immutable/chunks/{IwQXvQKq.js → I0eHZGMz.js} +1 -1
- package/web/app/immutable/chunks/{D1zDcaZa.js → JfyBNQs2.js} +1 -1
- package/web/app/immutable/chunks/{YGDnq71P.js → NeHKo0ZG.js} +1 -1
- package/web/app/immutable/chunks/{DCXOZ-cm.js → O0CxvO89.js} +1 -1
- package/web/app/immutable/chunks/{DudXAl_N.js → Ob5NWDgS.js} +1 -1
- package/web/app/immutable/chunks/{DEbxL_K_.js → PUalo3UE.js} +1 -1
- package/web/app/immutable/chunks/{DXjHY2hF.js → QGE3iD8D.js} +1 -1
- package/web/app/immutable/chunks/{_p09hiud.js → QSR6vsk4.js} +1 -1
- package/web/app/immutable/chunks/{9tzjcklF.js → QjpXu0Du.js} +1 -1
- package/web/app/immutable/chunks/{CPObUSo8.js → UEd-gngc.js} +1 -1
- package/web/app/immutable/chunks/VEkj47bo.js +1 -0
- package/web/app/immutable/chunks/{V7Hjifys.js → VeIqG7dc.js} +4 -4
- package/web/app/immutable/chunks/{j3QkolT-.js → XF_IbTR1.js} +3 -3
- package/web/app/immutable/chunks/{CcVvQKcJ.js → XV0T3w4n.js} +1 -1
- package/web/app/immutable/chunks/{Dzu_kyuP.js → YO4PhogQ.js} +1 -1
- package/web/app/immutable/chunks/{BLl4jbbs.js → aLZSbque.js} +2 -2
- package/web/app/immutable/chunks/{DkBn6nxi.js → csuWDYc9.js} +1 -1
- package/web/app/immutable/chunks/{CnlzKY2y.js → dmSYAakE.js} +1 -1
- package/web/app/immutable/chunks/eK7OULll.js +1 -0
- package/web/app/immutable/chunks/{ZPW-9-jj.js → gCXIPBa3.js} +1 -1
- package/web/app/immutable/chunks/{Rut-2pZ8.js → hxIWaKu8.js} +1 -1
- package/web/app/immutable/chunks/{C3lmZVdU.js → jMKjj8ae.js} +1 -1
- package/web/app/immutable/chunks/{Dpk7e0gp.js → jvHJQ-Xz.js} +1 -1
- package/web/app/immutable/chunks/{e5uo7mZH.js → k4eU_FWk.js} +1 -1
- package/web/app/immutable/chunks/{BigdBsL9.js → nLw8YrmA.js} +1 -1
- package/web/app/immutable/chunks/{C95LwPTq.js → nR16njgN.js} +1 -1
- package/web/app/immutable/chunks/{Dld3dCA-.js → o5rEX9Xy.js} +1 -1
- package/web/app/immutable/chunks/{B30Ssr1r.js → p5gLe3PS.js} +1 -1
- package/web/app/immutable/chunks/{DUTF8GiF.js → pnKMO5U0.js} +53 -53
- package/web/app/immutable/chunks/{BV8VDu62.js → reR1kPlm.js} +1 -1
- package/web/app/immutable/chunks/{BwfkZxtl.js → tGqA6xQ9.js} +1 -1
- package/web/app/immutable/chunks/uLB4Kp9c.js +1 -0
- package/web/app/immutable/chunks/{rytmH58N.js → ubLEbEcV.js} +1 -1
- package/web/app/immutable/chunks/{BrMxn35B.js → uyOfKmty.js} +3 -3
- package/web/app/immutable/chunks/{DVRDTT5s.js → vUGF5JqJ.js} +1 -1
- package/web/app/immutable/chunks/{DamIfQPR.js → vzGm0J_h.js} +1 -1
- package/web/app/immutable/chunks/{Dlalsrb2.js → w6mFE4SD.js} +1 -1
- package/web/app/immutable/chunks/{DQyFaFhy.js → z3QVK190.js} +2 -2
- package/web/app/immutable/entry/{app.D1_zvf06.js → app.PHHlgSoZ.js} +3 -3
- package/web/app/immutable/entry/start.Cltn4m6a.js +1 -0
- package/web/app/immutable/nodes/{0.DncqPHfM.js → 0.D7bJjS_y.js} +1 -1
- package/web/app/immutable/nodes/{1.C0XLYfok.js → 1.B3gH8FG5.js} +1 -1
- package/web/app/immutable/nodes/{10.FOhcPF7P.js → 10.NQcSgQgq.js} +4 -4
- package/web/app/immutable/nodes/{11.DNy1N3E_.js → 11.Drfz7PRj.js} +1 -1
- package/web/app/immutable/nodes/{12.CkJqJXDQ.js → 12.gXokqM9g.js} +1 -1
- package/web/app/immutable/nodes/{13.BQO-XqRU.js → 13.DFxxGy6Y.js} +3 -3
- package/web/app/immutable/nodes/{14.CQ7rNDCc.js → 14.7T2ChNl_.js} +1 -1
- package/web/app/immutable/nodes/{15.Cul5GEsK.js → 15.CgEeXtgJ.js} +1 -1
- package/web/app/immutable/nodes/{16.D1YB7GYH.js → 16.CWrHY2VB.js} +2 -2
- package/web/app/immutable/nodes/{2.BdCIUUeK.js → 2.DQ6QcB9c.js} +8 -8
- package/web/app/immutable/nodes/{3.plIg2MFf.js → 3.Fjkgohv2.js} +1 -1
- package/web/app/immutable/nodes/{4.CcgVPTck.js → 4.D1BNF_ep.js} +1 -1
- package/web/app/immutable/nodes/{5.C_N4OtaU.js → 5.C5OySrRk.js} +2 -2
- package/web/app/immutable/nodes/{6.DGUZaYtw.js → 6.BrxG9qCf.js} +1 -1
- package/web/app/immutable/nodes/{7.C8AkEQkN.js → 7.CvdabbdY.js} +1 -1
- package/web/app/immutable/nodes/8.BSQtFfFS.js +15 -0
- package/web/app/immutable/nodes/{9.DgERn09Y.js → 9.D6DS9Z9f.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/4Qt-u50Z.js +0 -1
- package/web/app/immutable/chunks/BozAh4mR.js +0 -1
- package/web/app/immutable/chunks/C5NmOSh4.js +0 -2
- package/web/app/immutable/chunks/C7-4lB53.js +0 -6
- package/web/app/immutable/chunks/CsBJcTed.js +0 -1
- package/web/app/immutable/chunks/DZyoV8-g.js +0 -19
- package/web/app/immutable/chunks/DakbBhJV.js +0 -1
- package/web/app/immutable/chunks/DozYGPQ1.js +0 -1
- package/web/app/immutable/chunks/TWdtA8BC.js +0 -1
- package/web/app/immutable/chunks/nGAsq1_L.js +0 -1
- package/web/app/immutable/entry/start.UwzduGPr.js +0 -1
- package/web/app/immutable/nodes/8.Bib6c2R5.js +0 -15
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var B=Object.defineProperty;var O=(t,e,a)=>e in t?B(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var T=(t,e,a)=>O(t,typeof e!="symbol"?e+"":e,a);import{HQ as l,lA as L,lV as w,nl as b,nk as S,aX as K,ov as V,bk as $,m3 as G,m1 as H,m0 as z,Gl as j}from"./DYepVMa7.js";import{cD as q,c5 as X,dy as Z,a as Q,M as Y,I as J,t as ee,dM as te,dL as ae,f as se,T as P,O as ne,dm as re,dp as ie}from"./SrOLwB5L.js";import{bo as s,_ as oe}from"./DozYGPQ1.js";import{ak as ce,cP as x}from"./Bd9YcJpJ.js";import{n as _,w as A}from"./4o1DPfmL.js";import"./DYhIMPy1.js";import"./CBE9bOjQ.js";import"./B30Ssr1r.js";import"./DkrIcKd4.js";import"./ChTqQfQN.js";import"./CnlzKY2y.js";import{a as le}from"./BJzHxIyr.js";function Ge(t){return t.type==="image"&&typeof t.data=="string"&&typeof t.mimeType=="string"}function He(t){return t.type==="file"&&typeof t.fileName=="string"&&t.fileName.length>0&&typeof t.attachmentId=="string"&&t.attachmentId.length>0}const I=l.createSelector((t,e)=>t.browser.byWorkspaceId[e]??L),ze=l.createSelector((t,e)=>t.browser.byWorkspaceId[e]),je=l.createSelector((t,e)=>I.select(t,e).recentUrls),qe=l.createSelector((t,e,a)=>{const n=I.select(t,e).pendingZoomByTabId[a];return n&&n.length>0?n:null}),Xe=l.createSelector((t,e)=>Object.values(I.select(t,e).pendingElementCaptures)),Ze=l.createSelector((t,e)=>t.workspaceNotes.byWorkspaceId[e]??w),Qe=l.createSelector((t,e)=>t.workspaceNotes.byWorkspaceId[e]?.loading??!1),Ye=l.createSelector((t,e)=>t.workspaceNotes.byWorkspaceId[e]?.selectedNoteId??null),Je=l.createSelector((t,e)=>t.workspaceNotes.byWorkspaceId[e]?.newlyCreatedNoteId??null),et=l.createSelector((t,e,a)=>t.workspaceNotes.byWorkspaceId[e]?.pendingContentByNoteId[a]===!0),tt=l.createSelector(t=>t.presence.windowVisible),at=l.createSelector((t,e,a)=>b(t.workspaceNotes.byWorkspaceId[e]?.contentViews??w.contentViews).some(n=>n.noteId===a)),st=l.createSelector((t,e,a)=>S(t.workspaceNotes.byWorkspaceId[e]?.contentViews??w.contentViews,a)),nt=l.createSelector((t,e,a)=>S(t.workspaceNotes.byWorkspaceId[e]?.workspaceRoots??w.workspaceRoots,a)),rt=l.createSelector((t,e,a)=>{const n=S(t.workspaceNotes.byWorkspaceId[e]?.presenceViews??w.presenceViews,a);return n?{...n,viewers:b(n.viewers)}:void 0}),it=l.createSelector((t,e,a)=>{if(!e||!a)return;const n=t.workspaceNotes.byWorkspaceId[e];if(n)return S(n.notes,a)}),ot=l.createSelector((t,e)=>{const a=t.workspaceNotes.byWorkspaceId[e];if(a)return S(a.notes,K)}),ct=l.createSelector((t,e)=>{if(!e)return[];const a=t.workspaceNotes.byWorkspaceId[e];return a?b(a.notes):[]}),lt=l.createSelector((t,e)=>t.workspaceNotes.byWorkspaceId[e]?.noteVersions??null),de=l.createSelector(t=>t.knownRepos.repos),_e=l.createSelector(t=>b(de.select(t))),dt=l.createSelector(t=>t.knownRepos.loaded);function ue(t,e){const a=new Map;if(e)for(const n of e)n.owner&&n.name&&n.path&&a.set(n.path,{owner:n.owner,name:n.name});for(const n of t)n.repositoryPath&&n.repositoryOwner&&n.repositoryName&&a.set(n.repositoryPath,{owner:n.repositoryOwner,name:n.repositoryName});return a}function me(t,e,a=s.workspace_grouping_unknownRepository_label()){if(t.repositoryOwner&&t.repositoryName)return{key:`${t.repositoryOwner}/${t.repositoryName}`,label:`${t.repositoryOwner}/${t.repositoryName}`,isGithub:!0,owner:t.repositoryOwner};if(t.repositoryPath){const n=e.get(t.repositoryPath);return n?{key:`${n.owner}/${n.name}`,label:`${n.owner}/${n.name}`,isGithub:!0,owner:n.owner}:{key:t.repositoryPath,label:t.repositoryPath.split("/").pop()||t.repositoryPath,isGithub:!1}}return t.repositoryName&&!t.repositoryOwner?{key:t.repositoryName,label:t.repositoryName,isGithub:!1}:{key:a,label:a,isGithub:!1}}function pe(t,e){const a=e.get(t.path),n=a?.owner??t.owner,r=a?.name??t.name;return n?{key:`${n}/${r}`,label:`${n}/${r}`,isGithub:!0,owner:n}:{key:t.path,label:t.name,isGithub:!1}}function ve({workspaces:t,knownRepos:e,repoPathLookup:a,includeKnownRepos:n}){const r=new Map;if(n)for(const o of e){const c=pe(o,a);r.has(c.key)||r.set(c.key,{...c,repoPath:o.path,name:c.isGithub?c.label.split("/").pop():o.name,workspaces:[]})}for(const o of t){const c=me(o,a);let d=r.get(c.key);d||(d={...c,repoPath:o.repositoryPath,name:o.repositoryName??(c.isGithub?c.label.split("/").pop():c.label),workspaces:[]},r.set(c.key,d)),d.workspaces.push(o)}return Array.from(r.values())}const ye=l.createSelector(t=>t.homeWorkspaces),_t=l.createSelector((t,e)=>t.homeWorkspaces?.previewAgentIds?.[e]??null),ut=l.createSelector(t=>t.workspace.error),be=l.createSelector(t=>{const e=q.select(t)?.principal.id,a=t.connections?.hasReceivedList?t.connections.windowBackendId:null;return e&&a?V(a,e):null}),mt=l.createSelector(t=>{const{repoKey:e}=ye.select(t);if(!e)return;const a=X.select(t),n=Z.select(t).filter(o=>o.status!==$.Deleted&&!o.pendingDeleteAt),r=a?[]:_e.select(t);return ve({workspaces:n,knownRepos:r,repoPathLookup:ue(n,r),includeKnownRepos:!a}).find(o=>o.key===e)}),E=Object.freeze({}),R=l.createSelector(t=>{const e=be.select(t);return e&&t.homeWorkspaces?.persistenceScope===e?t.homeWorkspaces.setAside??E:E}),pt=l.createSelector(t=>Object.entries(R.select(t)).sort(([,e],[,a])=>e.at-a.at).map(([e])=>e)),vt=l.createSelector((t,e)=>!!R.select(t)[e]),yt=l.createSelector(t=>t.connections?.hasReceivedList?t.connections.windowBackendId??null:null);function bt(t,e){return t.filter(a=>a.imageData&&a.imageMimeType||a.attachmentId||a.sourcePath||a.type==="folder"&&a.path||a.type==="selection"&&a.content).map(a=>({id:a.id,type:a.type,label:a.label,...a.description!==void 0?{description:a.description}:{},...a.content!==void 0?{content:a.content}:{},...a.path!==void 0?{path:a.path}:{},...a.imageData!==void 0?{imageData:a.imageData}:{},...a.imageMimeType!==void 0?{imageMimeType:a.imageMimeType}:{},...a.attachmentId!==void 0?{attachmentId:a.attachmentId}:{},...a.attachmentMimeType!==void 0?{attachmentMimeType:a.attachmentMimeType}:{},...a.attachmentSize!==void 0?{attachmentSize:a.attachmentSize}:{},...a.sourcePath!==void 0&&!a.attachmentId?{sourcePath:a.sourcePath}:{},...(a.placementStatus==="placing"||a.placementStatus==="failed")&&!a.attachmentId?{placementStatus:"failed"}:{},...e?.[a.id]!==void 0?{screen:e[a.id]}:{}}))}function gt(t){return t.flatMap(e=>e.screen!==void 0?[[e.id,e.screen]]:[])}function ft(t){return t.map(e=>({id:e.id,type:e.type||"file",label:e.label,...e.description!==void 0?{description:e.description}:{},...e.content!==void 0?{content:e.content}:{},...e.path!==void 0?{path:e.path}:{},...e.imageData!==void 0?{imageData:e.imageData}:{},...e.imageMimeType!==void 0?{imageMimeType:e.imageMimeType}:{},...e.imageMimeType&&!ce(e.imageMimeType)?{placementFileName:e.label}:{},...e.attachmentId!==void 0?{attachmentId:e.attachmentId}:{},...e.attachmentMimeType!==void 0?{attachmentMimeType:e.attachmentMimeType}:{},...e.attachmentSize!==void 0?{attachmentSize:e.attachmentSize}:{},...e.sourcePath!==void 0?{sourcePath:e.sourcePath}:{},...e.placementStatus==="failed"&&e.attachmentId===void 0?{placementStatus:"failed"}:{}}))}const f=l.createSelector((t,e)=>t.transientUi.byWorkspaceId[e]??G),ht=l.createSelector((t,e,a)=>{const n=f.select(t,e).composerContextByAgentId?.[a];return n?b(n):[]}),kt=l.createSelector((t,e)=>f.select(t,e).composerContextByAgentId??{});l.createSelector((t,e)=>f.select(t,e).sidebarActiveTab);const wt=l.createSelector((t,e)=>f.select(t,e).viewedFiles),ge=l.createSelector((t,e,a)=>f.select(t,e).noteViewModeByNoteId[a]??"editor"),St=l.createSelector((t,e,a)=>ge.select(t,e,a)==="raw"),Nt=l.createSelector((t,e,a)=>f.select(t,e).chatDrafts[a]??"");function i(t,e=40){return!t||t.length<=e?t:t.slice(0,e-1)+"…"}function u(t,e){const a=t.actor?.name;return a&&a!=="System"?i(a,30):e??s.events_activity_agent_fallback()}function fe(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function k(t){const e=t.split("/"),a=e.pop()||t,n=e.join("/");return{filename:a,directory:n}}const he={"file:changed":t=>{const e=t.data,a=e?.path?i(k(e.path).filename,35):s.events_activity_file_fallback(),n=u(t,""),r=e?.action,o=r==="create"?s.events_activity_verbCreated_label():r==="delete"?s.events_activity_verbDeleted_label():r==="rename"?s.events_activity_verbRenamed_label():s.events_activity_verbUpdated_label();return n?s.events_activity_actorVerbFile_label({actor:n,verb:o,filename:a}):s.events_activity_verbFile_label({verb:o.charAt(0).toUpperCase()+o.slice(1),filename:a})},"file:created":t=>{const e=t.data,a=e?.path?i(k(e.path).filename,35):s.events_activity_file_fallback(),n=u(t,"");return n?s.events_activity_actorCreatedFile_label({actor:n,filename:a}):s.events_activity_createdFile_label({filename:a})},"file:deleted":t=>{const e=t.data,a=e?.path?i(k(e.path).filename,35):s.events_activity_file_fallback(),n=u(t,"");return n?s.events_activity_actorDeletedFile_label({actor:n,filename:a}):s.events_activity_deletedFile_label({filename:a})},"file:renamed":t=>{const e=t.data,a=e?.path?i(k(e.path).filename,30):s.events_activity_file_fallback(),n=e?.oldPath?i(k(e.oldPath).filename,20):null,r=u(t,"");return n?r?s.events_activity_actorRenamedFileArrow_label({actor:r,oldFilename:n,filename:a}):s.events_activity_renamedFileArrow_label({oldFilename:n,filename:a}):r?s.events_activity_actorRenamedFile_label({actor:r,filename:a}):s.events_activity_renamedFile_label({filename:a})},"note:created":t=>{const e=t.data,a=i(e?.title||e?.name||s.events_activity_note_fallback(),35),n=u(t,"");return n?s.events_activity_actorCreatedNote_label({actor:n,title:a}):s.events_activity_createdNote_label({title:a})},"note:updated":t=>{const e=t.data,a=i(e?.title||e?.name||s.events_activity_note_fallback(),35),n=u(t,"");return n?s.events_activity_actorUpdatedNote_label({actor:n,title:a}):s.events_activity_updatedNote_label({title:a})},"note:deleted":t=>{const e=t.data,a=i(e?.title||e?.name||s.events_activity_note_fallback(),35),n=u(t,"");return n?s.events_activity_actorDeletedNote_label({actor:n,title:a}):s.events_activity_deletedNote_label({title:a})},"git:commit":t=>{const a=t.data?.message;if(a){const n=a.length>40?`${a.slice(0,37)}...`:a;return s.events_activity_committed_label({message:n})}return s.events_activity_madeCommit_label()},"git:push":()=>s.events_activity_pushedChanges_label(),"git:pull":()=>s.events_activity_pulledChanges_label(),"git:branch":t=>{const e=t.data,a=e?.branch||e?.name;return a?s.events_activity_switchedTo_label({branch:a}):s.events_activity_changedBranch_label()},"git:merge":t=>{const e=t.data,a=e?.branch||e?.source;return a?s.events_activity_merged_label({branch:a}):s.events_activity_mergedBranches_label()},"agent:started":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||e?.taskTitle||"",35);return a?s.events_activity_startedWorking_label({name:a}):s.events_activity_agentStarted_label()},"agent:completed":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||"",35);return a?s.events_activity_nameCompleted_label({name:a}):s.events_activity_agentCompleted_label()},"agent:failed":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||"",35);return a?s.events_activity_nameFailed_label({name:a}):s.events_activity_agentFailed_label()},"agent:deleted":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||"",35);return a?s.events_activity_deletedName_label({name:a}):s.events_activity_agentDeleted_label()},"agent:message":t=>{const e=i(u(t,""),30);return e?s.events_activity_nameSentMessage_label({name:e}):s.events_activity_agentSentMessage_label()},"agent:idle":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||"",35);return a?s.events_activity_nameFinished_label({name:a}):s.events_activity_agentFinished_label()},"agent:status-changed":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||"",30),n=e?.status||e?.newStatus,r=a||s.events_activity_agent_fallback();switch(n){case"idle":return s.events_activity_nameFinished_label({name:r});case"responding":case"streaming":case"thinking":return s.events_activity_nameIsWorking_label({name:r});case"waiting":case"waiting_for_input":return s.events_activity_nameIsWaiting_label({name:r});case"completed":case"done":return s.events_activity_nameCompleted_label({name:r});case"error":case"failed":return s.events_activity_nameEncounteredError_label({name:r});default:return n?s.events_activity_nameIsStatus_label({name:r,status:n}):s.events_activity_nameStatusChanged_label({name:r})}},"agent:tool:call":t=>{const e=t.data,a=i(e?.title||e?.input?._acpTitle||"",40);if(a)return a;const n=e?.toolName||e?.name||"",r=Q(n),o=Y(r)||J(n,e?.input??{})?"":i(r,25),c=i(u(t,""),25);if(o&&c)return s.events_activity_actorUsedTool_label({actor:c,toolName:o});if(o)return s.events_activity_usedTool_label({toolName:o});switch(e?.toolKind){case"file":return s.events_activity_toolKindFile_label();case"search":return s.events_activity_toolKindSearch_label();case"terminal":return s.events_activity_toolKindTerminal_label();case"git":return s.events_activity_toolKindGit_label();case"note":return s.events_activity_toolKindNote_label();default:return s.events_activity_usedATool_label()}},"agent:created":t=>{const e=t.data,a=String(e?.agentName||e?.name||""),n=/^agent$/i.test(a.trim())?"":i(a,20),r=i(u(t,""),20);return n&&r?s.events_activity_creatorCreatedAgent_label({creator:r,agentName:n}):n?s.events_activity_createdAgentName_label({agentName:n}):r?s.events_activity_creatorCreatedAnAgent_label({creator:r}):s.events_activity_createdNewAgent_label()},"agent:renamed":t=>{const e=t.data,a=i(e?.name||"",30);return a?s.events_activity_renamedAgentTo_label({name:a}):s.events_activity_renamedAgent_label()},"agent:updated":t=>{const e=t.data,a=i(t.actor?.name||e?.agentName||"",25);if(typeof e?.modelId=="string"&&e.modelId){const n=i(e.modelId,25);return a?s.events_activity_nameModelSet_label({name:a,model:n}):s.events_activity_agentModelSet_label({model:n})}return e?.completionReportCleared?a?s.events_activity_clearedNameReport_label({name:a}):s.events_activity_clearedAgentReport_label():a?s.events_activity_nameSettingsUpdated_label({name:a}):s.events_activity_agentSettingsUpdated_label()},"agent:restored":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||"",30);return a?s.events_activity_restoredName_label({name:a}):s.events_activity_agentRestored_label()},"agent:permission:request":t=>{const e=t.data,a=i(e?.agentName||t.actor?.name||"",20),n=i(e?.title||"",35);return a&&n?s.events_activity_agentAskedTo_label({agentName:a,title:fe(n)}):n?s.events_activity_permissionRequested_label({title:n}):s.events_activity_agentAskedPermission_label()},"agent:permission:resolved":t=>t.data?.outcome?.outcome==="cancelled"?s.events_activity_permissionDismissed_label():s.events_activity_permissionAnswered_label(),"agent:user-message:sent":t=>{const e=t.data,a=i(e?.agentName||e?.toAgentName||"",25);return a?s.events_activity_youMessagedName_label({agentName:a}):s.events_activity_youSentMessage_label()},"task:status-changed":t=>{const e=t.data,a=e?.taskName||e?.noteTitle||"",n=e?.newStatus||e?.status,r=i(u(t,""),25);let o="none",c=s.events_activity_statusUpdated_label();if(n){const d=n.toLowerCase().replace(/_/g," ");d==="complete"||d==="completed"||d==="done"?(o="complete",c=s.events_activity_statusComplete_label()):d==="in progress"||d==="in_progress"?(o="in-progress",c=s.events_activity_statusInProgress_label()):d==="cancelled"||d==="canceled"?(o="cancelled",c=s.events_activity_statusCancelled_label()):(o="other",c=d)}if(a&&a!=="task")switch(o){case"complete":return s.events_activity_completedTask_label({taskName:a});case"in-progress":return s.events_activity_startedTask_label({taskName:a});case"cancelled":return s.events_activity_cancelledTask_label({taskName:a});default:return s.events_activity_markedTaskStatus_label({status:c,taskName:a})}return r?s.events_activity_actorUpdatedTaskStatus_label({actor:r}):s.events_activity_taskMarked_label({status:c})},"task:ready-tasks-changed":t=>{const e=t.data,a=Array.isArray(e?.readyTaskIds)?e.readyTaskIds.length:e?.count||e?.taskCount;return typeof a=="number"?a===0?s.events_activity_noTasksReady_label():a===1?s.events_activity_oneTaskReadyToStart_label():s.events_activity_tasksReadyToStart_label({count:a}):s.events_activity_readyTasksUpdated_label()},"task:agent-linked":t=>{const e=t.data,a=e?.link?.taskText||e?.taskKey||"";return a?s.events_activity_agentAssignedToTask_label({taskText:a}):s.events_activity_agentAssignedToATask_label()},"task:agent-unlinked":t=>{const a=t.data?.taskKey||"";return a?s.events_activity_agentUnassignedFromTask_label({taskText:a}):s.events_activity_agentUnassignedFromATask_label()},"pr:linked":t=>{const a=t.data?.prNumber;return a?s.events_activity_linkedPrNumber_label({prNumber:a}):s.events_activity_linkedPr_label()},"pr:updated":t=>{const e=t.data,a=e?.prNumber,n=typeof e?.prStatus=="string"?e.prStatus.toLowerCase():"";return a&&n?n==="draft"?s.events_activity_prIsDraft_label({prNumber:a}):s.events_activity_prIsStatus_label({prNumber:a,status:n}):a?s.events_activity_prNumberUpdated_label({prNumber:a}):s.events_activity_prUpdated_label()},"pr:unlinked":()=>s.events_activity_prUnlinked_label(),"terminal:command":t=>{const a=t.data?.command,n=i(u(t,""),25);if(a){const r=i(a,25);return n?s.events_activity_actorRanCommand_label({actor:n,command:r}):s.events_activity_ranCommandName_label({command:r})}return n?s.events_activity_actorRanACommand_label({actor:n}):s.events_activity_ranCommand_label()},"terminal:exit":t=>{const a=t.data?.exitCode;return typeof a=="number"&&a!==0?s.events_activity_terminalExitedCode_label({exitCode:a}):s.events_activity_terminalSessionEnded_label()},"terminal:title":t=>{const e=t.data,a=i(e?.title||"",35);return a?s.events_activity_terminalRunningTitle_label({title:a}):s.events_activity_terminalTitleChanged_label()},"script:state":t=>{const e=t.data,a=i(e?.scriptId||"",25),n=e?.status,r=a||s.events_activity_script_fallback();switch(n){case"running":return s.events_activity_scriptStarted_label({name:r});case"stopped":{const o=e?.exitCode;return typeof o=="number"&&o!==0?s.events_activity_scriptFailedExit_label({name:r,exitCode:o}):s.events_activity_scriptStopped_label({name:r})}case"error":return e?.error?s.events_activity_scriptErroredDetail_label({name:r,error:i(e.error,30)}):s.events_activity_scriptErrored_label({name:r});default:return n?s.events_activity_scriptIsStatus_label({name:r,status:n}):s.events_activity_scriptStateChanged_label({name:r})}},"test:started":t=>{const e=t.data,a=i(e?.testName||e?.testSuite||"",30),n=i(u(t,""),25);return a?n?s.events_activity_actorStartedTesting_label({actor:n,testName:a}):s.events_activity_startedTestingName_label({testName:a}):n?s.events_activity_actorStartedTests_label({actor:n}):s.events_activity_startedTests_label()},"test:completed":t=>{const e=t.data,a=e?.status,n=i(e?.testName||e?.testSuite||"",30);return a==="passed"?n?s.events_activity_testsPassedName_label({testName:n}):s.events_activity_testsPassed_label():a==="failed"?n?s.events_activity_testsFailedName_label({testName:n}):s.events_activity_testsFailed_label():n?s.events_activity_testsCompletedName_label({testName:n}):s.events_activity_testsCompleted_label()},"build:started":t=>{const e=t.data,a=i(e?.target||"",30),n=i(u(t,""),25);return a?n?s.events_activity_actorStartedBuilding_label({actor:n,target:a}):s.events_activity_startedBuildingTarget_label({target:a}):n?s.events_activity_actorStartedBuild_label({actor:n}):s.events_activity_startedBuild_label()},"build:completed":t=>{const e=t.data,a=e?.status,n=i(e?.target||"",30);return a==="success"?n?s.events_activity_buildSucceededTarget_label({target:n}):s.events_activity_buildSucceeded_label():a==="failed"?n?s.events_activity_buildFailedTarget_label({target:n}):s.events_activity_buildFailed_label():n?s.events_activity_buildCompletedTarget_label({target:n}):s.events_activity_buildCompleted_label()},"workspace:created":t=>{const e=t.data,a=i(e?.workspace?.title||e?.name||"",35);return a?s.events_activity_createdWorkspaceName_label({name:a}):s.events_activity_createdWorkspace_label()},"workspace:updated":t=>{const e=t.data,a=e?.changes??{};if(typeof a.title=="string"&&a.title)return s.events_activity_renamedWorkspaceTo_label({title:i(a.title,30)});if(typeof a.statusMessage=="string")return a.statusMessage?s.events_activity_workspaceStatus_label({statusMessage:i(a.statusMessage,40)}):s.events_activity_clearedWorkspaceStatus_label();if(typeof a.status=="string"&&a.status)return s.events_activity_workspaceMarkedStatus_label({status:a.status.toLowerCase()});if(typeof a.branch=="string"&&a.branch)return s.events_activity_branchSetTo_label({branch:i(a.branch,30)});if(typeof a.baseRef=="string"&&a.baseRef)return s.events_activity_baseBranchSetTo_label({baseRef:i(a.baseRef,30)});const n={baseCommitSha:s.events_activity_fieldBaseCommit_label(),statusMessage:s.events_activity_fieldStatusMessage_label(),lastActivity:s.events_activity_fieldActivityTime_label(),repositoryPath:s.events_activity_fieldRepositoryPath_label(),repositoryOwner:s.events_activity_fieldRepositoryOwner_label(),repositoryName:s.events_activity_fieldRepositoryName_label(),worktreePath:s.events_activity_fieldWorktreePath_label(),setupScript:s.events_activity_fieldSetupScript_label(),skipWorktree:s.events_activity_fieldWorktreeSetting_label()},r=Object.keys(a).filter(c=>c!=="workspaceId");if(r.length>0){const c=r.map(d=>n[d]??d);return s.events_activity_changedWorkspaceFields_label({fields:i(c.join(", "),35)})}const o=i(e?.name||"",35);return o?s.events_activity_updatedWorkspaceName_label({name:o}):s.events_activity_updatedWorkspace_label()},"workspace:deleted":t=>{const e=t.data,a=i(e?.name||"",35);return a?s.events_activity_deletedWorkspaceName_label({name:a}):s.events_activity_deletedWorkspace_label()},"workspace:opened":t=>{const e=t.data,a=i(e?.name||"",35);return a?s.events_activity_openedName_label({name:a}):s.events_activity_openedWorkspace_label()},"workspace:closed":t=>{const e=t.data,a=i(e?.name||"",35);return a?s.events_activity_closedName_label({name:a}):s.events_activity_closedWorkspace_label()},"workspace:activity":t=>{const e=t.data,a=i(e?.description||"",40);return a||s.events_activity_workspaceActivity_label()},"spec:updated":t=>{const e=t.data,a=i(e?.section||"",30),n=i(u(t,""),25);return a?n?s.events_activity_actorUpdatedSpecSection_label({actor:n,section:a}):s.events_activity_updatedSpecSection_label({section:a}):n?s.events_activity_actorUpdatedSpec_label({actor:n}):s.events_activity_updatedSpec_label()},"goal:updated":t=>{const e=i(u(t,""),30);return e?s.events_activity_actorUpdatedGoal_label({actor:e}):s.events_activity_updatedGoal_label()},"comment:added":t=>{const e=t.data,a=i(t.actor?.name||e?.author||e?.authorName||"",30),n=i(e?.preview||e?.text||"",25);return a&&n?s.events_activity_authorCommentedPreview_label({author:a,preview:n}):a?s.events_activity_authorCommented_label({author:a}):n?s.events_activity_commentPreview_label({preview:n}):s.events_activity_commentAdded_label()},"agent:message:sent":t=>{const e=t.data,a=i(t.actor?.name||e?.fromAgentName||s.events_activity_agent_fallback(),25),n=i(e?.toAgentName||"",25);return n?s.events_activity_fromMessagedTo_label({fromName:a,toName:n}):s.events_activity_fromSentMessage_label({fromName:a})},"agent:message:received":t=>{const e=t.data,a=i(e?.fromAgentName||"",25),n=i(t.actor?.name||e?.toAgentName||s.events_activity_agent_fallback(),25);return a?s.events_activity_receivedMessageFrom_label({toName:n,fromName:a}):s.events_activity_receivedAMessage_label({toName:n})},"agent:message:delivery-failed":t=>{const e=t.data,a=i(e?.toAgentName||e?.agentName||"",25);return a?s.events_activity_messageToNameFailed_label({toName:a}):s.events_activity_messageDeliveryFailed_label()},"agent:subscribed":t=>{const e=t.data,a=i(t.actor?.name||e?.agentName||s.events_activity_agent_fallback(),30),n=e?.eventTypes;return n?.length===1?s.events_activity_watchingCategoryEvents_label({name:a,category:n[0].split(":")[0]}):n?.length>1?s.events_activity_watchingForUpdates_label({name:a}):s.events_activity_startedWatching_label({name:a})},"agent:unsubscribed":t=>{const e=t.data,a=i(t.actor?.name||e?.agentName||s.events_activity_agent_fallback(),30);return s.events_activity_stoppedWatching_label({name:a})},"agent:woken-by-subscription":t=>{const e=t.data,a=i(t.actor?.name||e?.agentName||s.events_activity_agent_fallback(),30),n=e?.eventCount||1;return n===1?s.events_activity_nameResumed_label({name:a}):s.events_activity_nameResumedEvents_label({name:a,count:n})},"agent:resumed":t=>{const e=t.data,a=i(t.actor?.name||e?.agentName||e?.name||"",35);return a?s.events_activity_nameResumed_label({name:a}):s.events_activity_agentResumed_label()},"comment:resolved":t=>t.data?.resolved===!1?s.events_activity_reopenedCommentThread_label():s.events_activity_resolvedCommentThread_label(),"git:clone:done":t=>{const e=t.data,a=i(e?.repository||e?.repo||e?.url||"",35);return a?s.events_activity_clonedRepo_label({repo:a}):s.events_activity_repositoryCloned_label()},"settings:changed":t=>{const e=t.data,a=Array.isArray(e?.changes)?e.changes.map(n=>n?.path).filter(Boolean):[];return a.length===1?s.events_activity_changedSetting_label({path:i(a[0],35)}):a.length>1?s.events_activity_changedSettingsCount_label({count:a.length}):s.events_activity_settingsChanged_label()},"skills:changed":()=>s.events_activity_skillsChanged_label(),"mcp:notification":t=>{const e=t.data,a=i(e?.serverName||e?.server||"",25);return a?s.events_activity_updateFromServer_label({server:a}):s.events_activity_mcpNotification_label()},"mcp.servers:status-changed":()=>s.events_activity_mcpStatusChanged_label(),"github:auth-changed":t=>{const a=t.data?.status;return a==="authenticated"||a==="success"?s.events_activity_githubSignedIn_label():a==="signed-out"||a==="expired"?s.events_activity_githubSignInExpired_label():s.events_activity_githubAuthChanged_label()},"workspace:context-changed":()=>s.events_activity_workspaceContextUpdated_label()};function Tt(t){if(!t?.type)return s.events_activity_unknownActivity_label();const e=he[t.type];if(e)try{return e(t)}catch{}const a=t.type.split(":");if(a.length>=2){const[n,r]=a;return`${n.charAt(0).toUpperCase()+n.slice(1)} ${r}`}return t.type.replace(/[_:]/g," ")}function At({currentScrollTop:t,targetTop:e,containerTop:a,headerBottom:n}){const r=Math.max(a,n??a);return t+e-r}function M(t){const e=t.trimStart();return e.startsWith("[WORKSPACE EVENTS]")||e.startsWith("[TASK WAKE]")||e.startsWith("[AGENT MESSAGE]")}function ke(t,e){return t.metadata?.type?!0:M(e)}function we(t,e){return x(ee(t,e)).replace(/\s+/g," ").trim()}function It(t,e){const a=new Set,n=[];for(const r of t){if(r.role!=="user"||a.has(r.id))continue;const o=se(r);if(ke(r,o))continue;const c=we(r,e);c&&(a.add(r.id),n.push({id:r.id,text:c}))}return n}function Ct(t){const e=new Set,a=[];for(const n of t){if(e.has(n.id)||n.metadata?.type||M(n.preview))continue;const r=x(te(ae(n.preview,n.metadata),n.metadata)).replace(/\s+/g," ").trim();r&&(e.add(n.id),a.push({id:n.id,text:r}))}return a}function Wt(t,e){const a=new Map(e.map(o=>[o.id,o])),n=t.map(o=>a.get(o.id)??o),r=new Set(t.map(o=>o.id));for(const o of e)r.has(o.id)||n.push(o);return n}const g=new le("ReversibleActions");class Se{constructor(){T(this,"pendingActions",new Map);T(this,"completedActions",new Map)}async execute(e){const a=e.duration??15,n=e.id||globalThis.crypto.randomUUID(),r=e.immediate??!0,o=e.showCountdown??!1;if(r&&!o)try{if(await e.action()===!1)return!1;this.completedActions.set(n,e);let c=!1;const d=e.onUndo;if(d){const p=_.warning(e.message,A({duration:a*1e3,action:{label:s.ui_reversibleActions_undo_label(),onClick:async()=>{try{c=!0,await d(),this.completedActions.delete(n),_.dismiss(p)}catch(v){g.error("Failed to undo action:",v instanceof Error?v:new Error(String(v))),_.error(s.ui_reversibleActions_undoFailed_error())}}}},{pauseOnHover:!1}))}else _.success(e.message);return setTimeout(async()=>{if(!c&&e.onExpire)try{await e.onExpire()}catch(p){g.error("Failed to execute onExpire callback:",p instanceof Error?p:new Error(String(p)))}this.completedActions.delete(n)},a*1e3),!0}catch(c){return g.error("Failed to execute action:",c instanceof Error?c:new Error(String(c))),_.error(s.ui_reversibleActions_failed_error({message:c instanceof Error?c.message:s.ui_reversibleActions_unknownError_label()})),!1}else return o?new Promise(c=>{let d=a,p;const v=async()=>{clearInterval(p),this.pendingActions.delete(n);try{await e.action(),_.success(s.ui_reversibleActions_completed_message({message:e.message})),c(!0)}catch(h){g.error("Failed to execute action:",h instanceof Error?h:new Error(String(h))),_.error(s.ui_reversibleActions_failed_error({message:h instanceof Error?h.message:s.ui_reversibleActions_unknownError_label()})),c(!1)}},y=()=>{clearTimeout(W),clearInterval(p),this.pendingActions.delete(n),_.info(s.ui_reversibleActions_cancelled_message()),c(!1)},m=A({duration:a*1e3},{pauseOnHover:!1}),D=_.warning(s.ui_reversibleActions_countdown_message({message:e.message,seconds:d}),{...m,action:{label:s.ui_reversibleActions_cancel_label(),onClick:y},onDismiss:y,onAutoClose:v});p=setInterval(()=>{d--,d>0&&_.warning(s.ui_reversibleActions_countdown_message({message:e.message,seconds:d}),{...m,id:D,duration:d*1e3,action:{label:s.ui_reversibleActions_cancel_label(),onClick:y},onDismiss:y,onAutoClose:v})},1e3);const W=setTimeout(v,a*1e3);this.pendingActions.set(n,{timeout:W,action:e})}):new Promise(c=>{const d=async()=>{clearTimeout(y),this.pendingActions.delete(n);try{await e.action(),_.success(s.ui_reversibleActions_completed_message({message:e.message})),c(!0)}catch(m){g.error("Failed to execute action:",m instanceof Error?m:new Error(String(m))),_.error(s.ui_reversibleActions_failed_error({message:m instanceof Error?m.message:s.ui_reversibleActions_unknownError_label()})),c(!1)}},p=()=>{clearTimeout(y),this.pendingActions.delete(n),_.info(s.ui_reversibleActions_cancelled_message()),c(!1)},v=async()=>{this.pendingActions.delete(n);try{e.onExpire&&await e.onExpire()}catch(m){g.error("Failed to execute onExpire callback:",m instanceof Error?m:new Error(String(m)))}_.info(s.ui_reversibleActions_expired_message()),c(!1)};_.info(`${e.message}`,A({duration:a*1e3,action:{label:s.ui_reversibleActions_execute_label(),onClick:d},onDismiss:p,onAutoClose:d},{pauseOnHover:!1}));const y=setTimeout(v,a*1e3);this.pendingActions.set(n,{timeout:y,action:e})})}cancel(e){const a=this.pendingActions.get(e);return a?(clearTimeout(a.timeout),this.pendingActions.delete(e),_.info(s.ui_reversibleActions_cancelled_message()),!0):!1}cancelAll(){for(const[e,{timeout:a}]of this.pendingActions)clearTimeout(a);this.pendingActions.clear(),this.pendingActions.size>0&&_.info(s.ui_reversibleActions_allCancelled_message())}getPendingActions(){return Array.from(this.pendingActions.keys())}}const F=new Se;async function Et(t,e,a,n={}){return F.execute({id:globalThis.crypto.randomUUID(),message:s.ui_reversibleActions_deleted_message({itemName:t}),action:e,onUndo:a,onExpire:n.onExpire,immediate:n.immediate??!0,showCountdown:n.showCountdown??!1,duration:n.duration??15})}async function Pt(t,e,a,n,r,o={}){return F.execute({id:globalThis.crypto.randomUUID(),message:s.ui_reversibleActions_renamed_message({itemType:t,newName:a}),action:n,onUndo:r,immediate:!0,showCountdown:!1,duration:o.duration??15})}const Ne=/\x1b\[[0-9;?]*[ -/]*[@-~]|\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)|\x1b[@-Z\\-_]/g,Te=/\x1b(\[[0-9;?]*[ -/]*|\][^\x07\x1b]*)?$/;function xt(t){let e="";for(const r of t.chunks)e+=r.text;if(e==="")return[];e=e.replace(Te,"").replace(Ne,"");const a=/\r?\n$/.test(e);a||(e=e.replace(/\r$/,""));const n=e.split(/\r?\n/).map(r=>{const o=r.lastIndexOf("\r");return o===-1?r:r.slice(o+1)});return a&&n[n.length-1]===""&&n.pop(),n}const Ae="No output yet.",Ie=/^\[(?:showing last \d+ of )?\d+ lines\]$/;function Rt(t){if(!t||t.trim()===Ae)return[];const e=t.replace(/\r?\n$/,"").split(/\r?\n/);return Ie.test(e[0]??"")&&e.shift(),e.length===1&&e[0]===""?[]:e}const Ce=new Set(["in_progress","review_required"]),We=new Set(["cancelled"]);function Mt(t){if(!t)return new Set;const e=new Set,a=new RegExp(P.source,"g");for(const n of t.matchAll(a)){const r=n[2];r&&e.add(r)}return e}function Ft(t){if(!t)return[];const e=[],a=new RegExp(P.source,"g");for(const n of t.matchAll(a)){const r=n[2];r&&!e.includes(r)&&e.push(r)}return e}const Ut=l.createSelector((t,e)=>t.workspaceTasks.byWorkspaceId[e]??H);l.createSelector((t,e)=>t.workspaceTasks.byWorkspaceId[e]?.loading??!1);l.createSelector((t,e)=>t.workspaceTasks.byWorkspaceId[e]?.error??null);const Dt=l.createSelector((t,e)=>t.workspaceTasks.byWorkspaceId[e]?.initialized??!1),Bt=l.createSelector(t=>Object.entries(t.workspaceTasks.byWorkspaceId).filter(([,e])=>e.demandIds.length>0).map(([e])=>e)),Ot=l.createSelector((t,e)=>{const a=t.workspaceTasks.byWorkspaceId[e];return!!a?.demandIds.length&&!a.loading&&(!a.initialized||a.stale)}),Lt=l.createSelector((t,e)=>{const a=t.workspaceTasks.byWorkspaceId[e];return a?b(a.tasks):[]}),Kt=l.createSelector((t,e)=>t.workspaceTasks.byWorkspaceId[e]?.stats??z);l.createSelector((t,e)=>{const a=t.workspaceTasks.byWorkspaceId[e];if(!a)return[];const n=[],r=[],o=[];for(const c of b(a.tasks))We.has(c.status)||(Ce.has(c.status)?n.push(c):c.status==="complete"?o.push(c):r.push(c));return[...n,...r,...o]});const N=new Map;function Ee(t){const e=N.get(t);if(e)return e;const a=oe(async()=>{const{appClient:n}=await import("./C7-4lB53.js").then(r=>r.Z);return{appClient:n}},__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]),import.meta.url).then(({appClient:n})=>n.workspaces.get(t)).catch(()=>null).finally(()=>{N.get(t)===a&&N.delete(t)});return N.set(t,a),a}function C(t){return re.select(l.state,t)}async function U(t){const e=await Ee(t);return e&&l.dispatch(j(e,{detailRead:!0})),C(t)}function Vt(t){return ie.select(l.state,t)?Promise.resolve(C(t)):U(t)}function $t(t){const e=C(t);return ne(e)?U(t):Promise.resolve(e)}export{qe as $,ze as A,et as B,at as C,be as D,We as E,_t as F,yt as G,R as H,Ce as I,pt as J,ut as K,vt as L,mt as M,ye as N,St as O,_e as P,dt as Q,Je as R,it as S,st as T,rt as U,lt as V,ge as W,tt as X,nt as Y,Qe as Z,Xe as _,ft as a,Ye as a0,ot as a1,wt as a2,kt as a3,Ze as a4,Kt as a5,Lt as a6,Dt as a7,Ot as a8,Ut as a9,bt as aa,ue as b,$t as c,Et as d,Vt as e,Ft as f,Mt as g,Tt as h,At as i,we as j,It as k,Ct as l,ve as m,He as n,Ge as o,Wt as p,Pt as q,gt as r,F as s,Rt as t,xt as u,ct as v,je as w,Nt as x,ht as y,Bt as z};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Dritbi2C.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/eK7OULll.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/Bo4s1kgI.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/p5gLe3PS.js","/app/immutable/chunks/Dix9BiYu.js","/app/immutable/chunks/CVjlpAWj.js","/app/immutable/chunks/DZtstCLQ.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/DFcwI6Rh.js","/app/immutable/chunks/XV0T3w4n.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/4iRc0E9v.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/B-WefpDP.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var B=Object.defineProperty;var O=(t,e,a)=>e in t?B(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var T=(t,e,a)=>O(t,typeof e!="symbol"?e+"":e,a);import{HR as l,lA as L,lV as w,nl as b,nk as S,aX as K,ov as V,bk as $,m3 as G,m1 as H,m0 as z,Gm as j}from"./Bo4s1kgI.js";import{cD as q,c5 as X,dy as Z,a as Y,M as J,I as Q,t as ee,dM as te,dL as ae,f as se,T as P,O as ne,dm as re,dp as ie}from"./C-RJDuZ9.js";import{bo as s,_ as oe}from"./eK7OULll.js";import{ak as ce,cP as x}from"./C0VXEpDj.js";import{n as _,w as A}from"./-x_SoK5J.js";import"./DYhIMPy1.js";import"./DZtstCLQ.js";import"./p5gLe3PS.js";import"./CVjlpAWj.js";import"./ChTqQfQN.js";import"./dmSYAakE.js";import{a as le}from"./BJzHxIyr.js";function Ge(t){return t.type==="image"&&typeof t.data=="string"&&typeof t.mimeType=="string"}function He(t){return t.type==="file"&&typeof t.fileName=="string"&&t.fileName.length>0&&typeof t.attachmentId=="string"&&t.attachmentId.length>0}const I=l.createSelector((t,e)=>t.browser.byWorkspaceId[e]??L),ze=l.createSelector((t,e)=>t.browser.byWorkspaceId[e]),je=l.createSelector((t,e)=>I.select(t,e).recentUrls),qe=l.createSelector((t,e,a)=>{const n=I.select(t,e).pendingZoomByTabId[a];return n&&n.length>0?n:null}),Xe=l.createSelector((t,e)=>Object.values(I.select(t,e).pendingElementCaptures)),Ze=l.createSelector((t,e)=>t.workspaceNotes.byWorkspaceId[e]??w),Ye=l.createSelector((t,e)=>t.workspaceNotes.byWorkspaceId[e]?.loading??!1),Je=l.createSelector((t,e)=>t.workspaceNotes.byWorkspaceId[e]?.selectedNoteId??null),Qe=l.createSelector((t,e)=>t.workspaceNotes.byWorkspaceId[e]?.newlyCreatedNoteId??null),et=l.createSelector((t,e,a)=>t.workspaceNotes.byWorkspaceId[e]?.pendingContentByNoteId[a]===!0),tt=l.createSelector(t=>t.presence.windowVisible),at=l.createSelector((t,e,a)=>b(t.workspaceNotes.byWorkspaceId[e]?.contentViews??w.contentViews).some(n=>n.noteId===a)),st=l.createSelector((t,e,a)=>S(t.workspaceNotes.byWorkspaceId[e]?.contentViews??w.contentViews,a)),nt=l.createSelector((t,e,a)=>S(t.workspaceNotes.byWorkspaceId[e]?.workspaceRoots??w.workspaceRoots,a)),rt=l.createSelector((t,e,a)=>{const n=S(t.workspaceNotes.byWorkspaceId[e]?.presenceViews??w.presenceViews,a);return n?{...n,viewers:b(n.viewers)}:void 0}),it=l.createSelector((t,e,a)=>{if(!e||!a)return;const n=t.workspaceNotes.byWorkspaceId[e];if(n)return S(n.notes,a)}),ot=l.createSelector((t,e)=>{const a=t.workspaceNotes.byWorkspaceId[e];if(a)return S(a.notes,K)}),ct=l.createSelector((t,e)=>{if(!e)return[];const a=t.workspaceNotes.byWorkspaceId[e];return a?b(a.notes):[]}),lt=l.createSelector((t,e)=>t.workspaceNotes.byWorkspaceId[e]?.noteVersions??null),de=l.createSelector(t=>t.knownRepos.repos),_e=l.createSelector(t=>b(de.select(t))),dt=l.createSelector(t=>t.knownRepos.loaded);function ue(t,e){const a=new Map;if(e)for(const n of e)n.owner&&n.name&&n.path&&a.set(n.path,{owner:n.owner,name:n.name});for(const n of t)n.repositoryPath&&n.repositoryOwner&&n.repositoryName&&a.set(n.repositoryPath,{owner:n.repositoryOwner,name:n.repositoryName});return a}function me(t,e,a=s.workspace_grouping_unknownRepository_label()){if(t.repositoryOwner&&t.repositoryName)return{key:`${t.repositoryOwner}/${t.repositoryName}`,label:`${t.repositoryOwner}/${t.repositoryName}`,isGithub:!0,owner:t.repositoryOwner};if(t.repositoryPath){const n=e.get(t.repositoryPath);return n?{key:`${n.owner}/${n.name}`,label:`${n.owner}/${n.name}`,isGithub:!0,owner:n.owner}:{key:t.repositoryPath,label:t.repositoryPath.split("/").pop()||t.repositoryPath,isGithub:!1}}return t.repositoryName&&!t.repositoryOwner?{key:t.repositoryName,label:t.repositoryName,isGithub:!1}:{key:a,label:a,isGithub:!1}}function pe(t,e){const a=e.get(t.path),n=a?.owner??t.owner,r=a?.name??t.name;return n?{key:`${n}/${r}`,label:`${n}/${r}`,isGithub:!0,owner:n}:{key:t.path,label:t.name,isGithub:!1}}function ve({workspaces:t,knownRepos:e,repoPathLookup:a,includeKnownRepos:n}){const r=new Map;if(n)for(const o of e){const c=pe(o,a);r.has(c.key)||r.set(c.key,{...c,repoPath:o.path,name:c.isGithub?c.label.split("/").pop():o.name,workspaces:[]})}for(const o of t){const c=me(o,a);let d=r.get(c.key);d||(d={...c,repoPath:o.repositoryPath,name:o.repositoryName??(c.isGithub?c.label.split("/").pop():c.label),workspaces:[]},r.set(c.key,d)),d.workspaces.push(o)}return Array.from(r.values())}const ye=l.createSelector(t=>t.homeWorkspaces),_t=l.createSelector((t,e)=>t.homeWorkspaces?.previewAgentIds?.[e]??null),ut=l.createSelector(t=>t.workspace.error),be=l.createSelector(t=>{const e=q.select(t)?.principal.id,a=t.connections?.hasReceivedList?t.connections.windowBackendId:null;return e&&a?V(a,e):null}),mt=l.createSelector(t=>{const{repoKey:e}=ye.select(t);if(!e)return;const a=X.select(t),n=Z.select(t).filter(o=>o.status!==$.Deleted&&!o.pendingDeleteAt),r=a?[]:_e.select(t);return ve({workspaces:n,knownRepos:r,repoPathLookup:ue(n,r),includeKnownRepos:!a}).find(o=>o.key===e)}),E=Object.freeze({}),R=l.createSelector(t=>{const e=be.select(t);return e&&t.homeWorkspaces?.persistenceScope===e?t.homeWorkspaces.setAside??E:E}),pt=l.createSelector(t=>Object.entries(R.select(t)).sort(([,e],[,a])=>e.at-a.at).map(([e])=>e)),vt=l.createSelector((t,e)=>!!R.select(t)[e]),yt=l.createSelector(t=>t.connections?.hasReceivedList?t.connections.windowBackendId??null:null);function bt(t,e){return t.filter(a=>a.imageData&&a.imageMimeType||a.attachmentId||a.sourcePath||a.type==="folder"&&a.path||a.type==="selection"&&a.content).map(a=>({id:a.id,type:a.type,label:a.label,...a.description!==void 0?{description:a.description}:{},...a.content!==void 0?{content:a.content}:{},...a.path!==void 0?{path:a.path}:{},...a.imageData!==void 0?{imageData:a.imageData}:{},...a.imageMimeType!==void 0?{imageMimeType:a.imageMimeType}:{},...a.attachmentId!==void 0?{attachmentId:a.attachmentId}:{},...a.attachmentMimeType!==void 0?{attachmentMimeType:a.attachmentMimeType}:{},...a.attachmentSize!==void 0?{attachmentSize:a.attachmentSize}:{},...a.sourcePath!==void 0&&!a.attachmentId?{sourcePath:a.sourcePath}:{},...(a.placementStatus==="placing"||a.placementStatus==="failed")&&!a.attachmentId?{placementStatus:"failed"}:{},...e?.[a.id]!==void 0?{screen:e[a.id]}:{}}))}function gt(t){return t.flatMap(e=>e.screen!==void 0?[[e.id,e.screen]]:[])}function ft(t){return t.map(e=>({id:e.id,type:e.type||"file",label:e.label,...e.description!==void 0?{description:e.description}:{},...e.content!==void 0?{content:e.content}:{},...e.path!==void 0?{path:e.path}:{},...e.imageData!==void 0?{imageData:e.imageData}:{},...e.imageMimeType!==void 0?{imageMimeType:e.imageMimeType}:{},...e.imageMimeType&&!ce(e.imageMimeType)?{placementFileName:e.label}:{},...e.attachmentId!==void 0?{attachmentId:e.attachmentId}:{},...e.attachmentMimeType!==void 0?{attachmentMimeType:e.attachmentMimeType}:{},...e.attachmentSize!==void 0?{attachmentSize:e.attachmentSize}:{},...e.sourcePath!==void 0?{sourcePath:e.sourcePath}:{},...e.placementStatus==="failed"&&e.attachmentId===void 0?{placementStatus:"failed"}:{}}))}const f=l.createSelector((t,e)=>t.transientUi.byWorkspaceId[e]??G),ht=l.createSelector((t,e,a)=>{const n=f.select(t,e).composerContextByAgentId?.[a];return n?b(n):[]}),kt=l.createSelector((t,e)=>f.select(t,e).composerContextByAgentId??{});l.createSelector((t,e)=>f.select(t,e).sidebarActiveTab);const wt=l.createSelector((t,e)=>f.select(t,e).viewedFiles),ge=l.createSelector((t,e,a)=>f.select(t,e).noteViewModeByNoteId[a]??"editor"),St=l.createSelector((t,e,a)=>ge.select(t,e,a)==="raw"),Nt=l.createSelector((t,e,a)=>f.select(t,e).chatDrafts[a]??"");function i(t,e=40){return!t||t.length<=e?t:t.slice(0,e-1)+"…"}function u(t,e){const a=t.actor?.name;return a&&a!=="System"?i(a,30):e??s.events_activity_agent_fallback()}function fe(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function k(t){const e=t.split("/"),a=e.pop()||t,n=e.join("/");return{filename:a,directory:n}}const he={"file:changed":t=>{const e=t.data,a=e?.path?i(k(e.path).filename,35):s.events_activity_file_fallback(),n=u(t,""),r=e?.action,o=r==="create"?s.events_activity_verbCreated_label():r==="delete"?s.events_activity_verbDeleted_label():r==="rename"?s.events_activity_verbRenamed_label():s.events_activity_verbUpdated_label();return n?s.events_activity_actorVerbFile_label({actor:n,verb:o,filename:a}):s.events_activity_verbFile_label({verb:o.charAt(0).toUpperCase()+o.slice(1),filename:a})},"file:created":t=>{const e=t.data,a=e?.path?i(k(e.path).filename,35):s.events_activity_file_fallback(),n=u(t,"");return n?s.events_activity_actorCreatedFile_label({actor:n,filename:a}):s.events_activity_createdFile_label({filename:a})},"file:deleted":t=>{const e=t.data,a=e?.path?i(k(e.path).filename,35):s.events_activity_file_fallback(),n=u(t,"");return n?s.events_activity_actorDeletedFile_label({actor:n,filename:a}):s.events_activity_deletedFile_label({filename:a})},"file:renamed":t=>{const e=t.data,a=e?.path?i(k(e.path).filename,30):s.events_activity_file_fallback(),n=e?.oldPath?i(k(e.oldPath).filename,20):null,r=u(t,"");return n?r?s.events_activity_actorRenamedFileArrow_label({actor:r,oldFilename:n,filename:a}):s.events_activity_renamedFileArrow_label({oldFilename:n,filename:a}):r?s.events_activity_actorRenamedFile_label({actor:r,filename:a}):s.events_activity_renamedFile_label({filename:a})},"note:created":t=>{const e=t.data,a=i(e?.title||e?.name||s.events_activity_note_fallback(),35),n=u(t,"");return n?s.events_activity_actorCreatedNote_label({actor:n,title:a}):s.events_activity_createdNote_label({title:a})},"note:updated":t=>{const e=t.data,a=i(e?.title||e?.name||s.events_activity_note_fallback(),35),n=u(t,"");return n?s.events_activity_actorUpdatedNote_label({actor:n,title:a}):s.events_activity_updatedNote_label({title:a})},"note:deleted":t=>{const e=t.data,a=i(e?.title||e?.name||s.events_activity_note_fallback(),35),n=u(t,"");return n?s.events_activity_actorDeletedNote_label({actor:n,title:a}):s.events_activity_deletedNote_label({title:a})},"git:commit":t=>{const a=t.data?.message;if(a){const n=a.length>40?`${a.slice(0,37)}...`:a;return s.events_activity_committed_label({message:n})}return s.events_activity_madeCommit_label()},"git:push":()=>s.events_activity_pushedChanges_label(),"git:pull":()=>s.events_activity_pulledChanges_label(),"git:branch":t=>{const e=t.data,a=e?.branch||e?.name;return a?s.events_activity_switchedTo_label({branch:a}):s.events_activity_changedBranch_label()},"git:merge":t=>{const e=t.data,a=e?.branch||e?.source;return a?s.events_activity_merged_label({branch:a}):s.events_activity_mergedBranches_label()},"agent:started":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||e?.taskTitle||"",35);return a?s.events_activity_startedWorking_label({name:a}):s.events_activity_agentStarted_label()},"agent:completed":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||"",35);return a?s.events_activity_nameCompleted_label({name:a}):s.events_activity_agentCompleted_label()},"agent:failed":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||"",35);return a?s.events_activity_nameFailed_label({name:a}):s.events_activity_agentFailed_label()},"agent:deleted":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||"",35);return a?s.events_activity_deletedName_label({name:a}):s.events_activity_agentDeleted_label()},"agent:message":t=>{const e=i(u(t,""),30);return e?s.events_activity_nameSentMessage_label({name:e}):s.events_activity_agentSentMessage_label()},"agent:idle":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||"",35);return a?s.events_activity_nameFinished_label({name:a}):s.events_activity_agentFinished_label()},"agent:status-changed":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||"",30),n=e?.status||e?.newStatus,r=a||s.events_activity_agent_fallback();switch(n){case"idle":return s.events_activity_nameFinished_label({name:r});case"responding":case"streaming":case"thinking":return s.events_activity_nameIsWorking_label({name:r});case"waiting":case"waiting_for_input":return s.events_activity_nameIsWaiting_label({name:r});case"completed":case"done":return s.events_activity_nameCompleted_label({name:r});case"error":case"failed":return s.events_activity_nameEncounteredError_label({name:r});default:return n?s.events_activity_nameIsStatus_label({name:r,status:n}):s.events_activity_nameStatusChanged_label({name:r})}},"agent:tool:call":t=>{const e=t.data,a=i(e?.title||e?.input?._acpTitle||"",40);if(a)return a;const n=e?.toolName||e?.name||"",r=Y(n),o=J(r)||Q(n,e?.input??{})?"":i(r,25),c=i(u(t,""),25);if(o&&c)return s.events_activity_actorUsedTool_label({actor:c,toolName:o});if(o)return s.events_activity_usedTool_label({toolName:o});switch(e?.toolKind){case"file":return s.events_activity_toolKindFile_label();case"search":return s.events_activity_toolKindSearch_label();case"terminal":return s.events_activity_toolKindTerminal_label();case"git":return s.events_activity_toolKindGit_label();case"note":return s.events_activity_toolKindNote_label();default:return s.events_activity_usedATool_label()}},"agent:created":t=>{const e=t.data,a=String(e?.agentName||e?.name||""),n=/^agent$/i.test(a.trim())?"":i(a,20),r=i(u(t,""),20);return n&&r?s.events_activity_creatorCreatedAgent_label({creator:r,agentName:n}):n?s.events_activity_createdAgentName_label({agentName:n}):r?s.events_activity_creatorCreatedAnAgent_label({creator:r}):s.events_activity_createdNewAgent_label()},"agent:renamed":t=>{const e=t.data,a=i(e?.name||"",30);return a?s.events_activity_renamedAgentTo_label({name:a}):s.events_activity_renamedAgent_label()},"agent:updated":t=>{const e=t.data,a=i(t.actor?.name||e?.agentName||"",25);if(typeof e?.modelId=="string"&&e.modelId){const n=i(e.modelId,25);return a?s.events_activity_nameModelSet_label({name:a,model:n}):s.events_activity_agentModelSet_label({model:n})}return e?.completionReportCleared?a?s.events_activity_clearedNameReport_label({name:a}):s.events_activity_clearedAgentReport_label():a?s.events_activity_nameSettingsUpdated_label({name:a}):s.events_activity_agentSettingsUpdated_label()},"agent:restored":t=>{const e=t.data,a=i(t.actor?.name||e?.name||e?.agentName||"",30);return a?s.events_activity_restoredName_label({name:a}):s.events_activity_agentRestored_label()},"agent:permission:request":t=>{const e=t.data,a=i(e?.agentName||t.actor?.name||"",20),n=i(e?.title||"",35);return a&&n?s.events_activity_agentAskedTo_label({agentName:a,title:fe(n)}):n?s.events_activity_permissionRequested_label({title:n}):s.events_activity_agentAskedPermission_label()},"agent:permission:resolved":t=>t.data?.outcome?.outcome==="cancelled"?s.events_activity_permissionDismissed_label():s.events_activity_permissionAnswered_label(),"agent:user-message:sent":t=>{const e=t.data,a=i(e?.agentName||e?.toAgentName||"",25);return a?s.events_activity_youMessagedName_label({agentName:a}):s.events_activity_youSentMessage_label()},"task:status-changed":t=>{const e=t.data,a=e?.taskName||e?.noteTitle||"",n=e?.newStatus||e?.status,r=i(u(t,""),25);let o="none",c=s.events_activity_statusUpdated_label();if(n){const d=n.toLowerCase().replace(/_/g," ");d==="complete"||d==="completed"||d==="done"?(o="complete",c=s.events_activity_statusComplete_label()):d==="in progress"||d==="in_progress"?(o="in-progress",c=s.events_activity_statusInProgress_label()):d==="cancelled"||d==="canceled"?(o="cancelled",c=s.events_activity_statusCancelled_label()):(o="other",c=d)}if(a&&a!=="task")switch(o){case"complete":return s.events_activity_completedTask_label({taskName:a});case"in-progress":return s.events_activity_startedTask_label({taskName:a});case"cancelled":return s.events_activity_cancelledTask_label({taskName:a});default:return s.events_activity_markedTaskStatus_label({status:c,taskName:a})}return r?s.events_activity_actorUpdatedTaskStatus_label({actor:r}):s.events_activity_taskMarked_label({status:c})},"task:ready-tasks-changed":t=>{const e=t.data,a=Array.isArray(e?.readyTaskIds)?e.readyTaskIds.length:e?.count||e?.taskCount;return typeof a=="number"?a===0?s.events_activity_noTasksReady_label():a===1?s.events_activity_oneTaskReadyToStart_label():s.events_activity_tasksReadyToStart_label({count:a}):s.events_activity_readyTasksUpdated_label()},"task:agent-linked":t=>{const e=t.data,a=e?.link?.taskText||e?.taskKey||"";return a?s.events_activity_agentAssignedToTask_label({taskText:a}):s.events_activity_agentAssignedToATask_label()},"task:agent-unlinked":t=>{const a=t.data?.taskKey||"";return a?s.events_activity_agentUnassignedFromTask_label({taskText:a}):s.events_activity_agentUnassignedFromATask_label()},"pr:linked":t=>{const a=t.data?.prNumber;return a?s.events_activity_linkedPrNumber_label({prNumber:a}):s.events_activity_linkedPr_label()},"pr:updated":t=>{const e=t.data,a=e?.prNumber,n=typeof e?.prStatus=="string"?e.prStatus.toLowerCase():"";return a&&n?n==="draft"?s.events_activity_prIsDraft_label({prNumber:a}):s.events_activity_prIsStatus_label({prNumber:a,status:n}):a?s.events_activity_prNumberUpdated_label({prNumber:a}):s.events_activity_prUpdated_label()},"pr:unlinked":()=>s.events_activity_prUnlinked_label(),"terminal:command":t=>{const a=t.data?.command,n=i(u(t,""),25);if(a){const r=i(a,25);return n?s.events_activity_actorRanCommand_label({actor:n,command:r}):s.events_activity_ranCommandName_label({command:r})}return n?s.events_activity_actorRanACommand_label({actor:n}):s.events_activity_ranCommand_label()},"terminal:exit":t=>{const a=t.data?.exitCode;return typeof a=="number"&&a!==0?s.events_activity_terminalExitedCode_label({exitCode:a}):s.events_activity_terminalSessionEnded_label()},"terminal:title":t=>{const e=t.data,a=i(e?.title||"",35);return a?s.events_activity_terminalRunningTitle_label({title:a}):s.events_activity_terminalTitleChanged_label()},"script:state":t=>{const e=t.data,a=i(e?.scriptId||"",25),n=e?.status,r=a||s.events_activity_script_fallback();switch(n){case"running":return s.events_activity_scriptStarted_label({name:r});case"stopped":{const o=e?.exitCode;return typeof o=="number"&&o!==0?s.events_activity_scriptFailedExit_label({name:r,exitCode:o}):s.events_activity_scriptStopped_label({name:r})}case"error":return e?.error?s.events_activity_scriptErroredDetail_label({name:r,error:i(e.error,30)}):s.events_activity_scriptErrored_label({name:r});default:return n?s.events_activity_scriptIsStatus_label({name:r,status:n}):s.events_activity_scriptStateChanged_label({name:r})}},"test:started":t=>{const e=t.data,a=i(e?.testName||e?.testSuite||"",30),n=i(u(t,""),25);return a?n?s.events_activity_actorStartedTesting_label({actor:n,testName:a}):s.events_activity_startedTestingName_label({testName:a}):n?s.events_activity_actorStartedTests_label({actor:n}):s.events_activity_startedTests_label()},"test:completed":t=>{const e=t.data,a=e?.status,n=i(e?.testName||e?.testSuite||"",30);return a==="passed"?n?s.events_activity_testsPassedName_label({testName:n}):s.events_activity_testsPassed_label():a==="failed"?n?s.events_activity_testsFailedName_label({testName:n}):s.events_activity_testsFailed_label():n?s.events_activity_testsCompletedName_label({testName:n}):s.events_activity_testsCompleted_label()},"build:started":t=>{const e=t.data,a=i(e?.target||"",30),n=i(u(t,""),25);return a?n?s.events_activity_actorStartedBuilding_label({actor:n,target:a}):s.events_activity_startedBuildingTarget_label({target:a}):n?s.events_activity_actorStartedBuild_label({actor:n}):s.events_activity_startedBuild_label()},"build:completed":t=>{const e=t.data,a=e?.status,n=i(e?.target||"",30);return a==="success"?n?s.events_activity_buildSucceededTarget_label({target:n}):s.events_activity_buildSucceeded_label():a==="failed"?n?s.events_activity_buildFailedTarget_label({target:n}):s.events_activity_buildFailed_label():n?s.events_activity_buildCompletedTarget_label({target:n}):s.events_activity_buildCompleted_label()},"workspace:created":t=>{const e=t.data,a=i(e?.workspace?.title||e?.name||"",35);return a?s.events_activity_createdWorkspaceName_label({name:a}):s.events_activity_createdWorkspace_label()},"workspace:updated":t=>{const e=t.data,a=e?.changes??{};if(typeof a.title=="string"&&a.title)return s.events_activity_renamedWorkspaceTo_label({title:i(a.title,30)});if(typeof a.statusMessage=="string")return a.statusMessage?s.events_activity_workspaceStatus_label({statusMessage:i(a.statusMessage,40)}):s.events_activity_clearedWorkspaceStatus_label();if(typeof a.status=="string"&&a.status)return s.events_activity_workspaceMarkedStatus_label({status:a.status.toLowerCase()});if(typeof a.branch=="string"&&a.branch)return s.events_activity_branchSetTo_label({branch:i(a.branch,30)});if(typeof a.baseRef=="string"&&a.baseRef)return s.events_activity_baseBranchSetTo_label({baseRef:i(a.baseRef,30)});const n={baseCommitSha:s.events_activity_fieldBaseCommit_label(),statusMessage:s.events_activity_fieldStatusMessage_label(),lastActivity:s.events_activity_fieldActivityTime_label(),repositoryPath:s.events_activity_fieldRepositoryPath_label(),repositoryOwner:s.events_activity_fieldRepositoryOwner_label(),repositoryName:s.events_activity_fieldRepositoryName_label(),worktreePath:s.events_activity_fieldWorktreePath_label(),setupScript:s.events_activity_fieldSetupScript_label(),skipWorktree:s.events_activity_fieldWorktreeSetting_label()},r=Object.keys(a).filter(c=>c!=="workspaceId");if(r.length>0){const c=r.map(d=>n[d]??d);return s.events_activity_changedWorkspaceFields_label({fields:i(c.join(", "),35)})}const o=i(e?.name||"",35);return o?s.events_activity_updatedWorkspaceName_label({name:o}):s.events_activity_updatedWorkspace_label()},"workspace:deleted":t=>{const e=t.data,a=i(e?.name||"",35);return a?s.events_activity_deletedWorkspaceName_label({name:a}):s.events_activity_deletedWorkspace_label()},"workspace:opened":t=>{const e=t.data,a=i(e?.name||"",35);return a?s.events_activity_openedName_label({name:a}):s.events_activity_openedWorkspace_label()},"workspace:closed":t=>{const e=t.data,a=i(e?.name||"",35);return a?s.events_activity_closedName_label({name:a}):s.events_activity_closedWorkspace_label()},"workspace:activity":t=>{const e=t.data,a=i(e?.description||"",40);return a||s.events_activity_workspaceActivity_label()},"spec:updated":t=>{const e=t.data,a=i(e?.section||"",30),n=i(u(t,""),25);return a?n?s.events_activity_actorUpdatedSpecSection_label({actor:n,section:a}):s.events_activity_updatedSpecSection_label({section:a}):n?s.events_activity_actorUpdatedSpec_label({actor:n}):s.events_activity_updatedSpec_label()},"goal:updated":t=>{const e=i(u(t,""),30);return e?s.events_activity_actorUpdatedGoal_label({actor:e}):s.events_activity_updatedGoal_label()},"comment:added":t=>{const e=t.data,a=i(t.actor?.name||e?.author||e?.authorName||"",30),n=i(e?.preview||e?.text||"",25);return a&&n?s.events_activity_authorCommentedPreview_label({author:a,preview:n}):a?s.events_activity_authorCommented_label({author:a}):n?s.events_activity_commentPreview_label({preview:n}):s.events_activity_commentAdded_label()},"agent:message:sent":t=>{const e=t.data,a=i(t.actor?.name||e?.fromAgentName||s.events_activity_agent_fallback(),25),n=i(e?.toAgentName||"",25);return n?s.events_activity_fromMessagedTo_label({fromName:a,toName:n}):s.events_activity_fromSentMessage_label({fromName:a})},"agent:message:received":t=>{const e=t.data,a=i(e?.fromAgentName||"",25),n=i(t.actor?.name||e?.toAgentName||s.events_activity_agent_fallback(),25);return a?s.events_activity_receivedMessageFrom_label({toName:n,fromName:a}):s.events_activity_receivedAMessage_label({toName:n})},"agent:message:delivery-failed":t=>{const e=t.data,a=i(e?.toAgentName||e?.agentName||"",25);return a?s.events_activity_messageToNameFailed_label({toName:a}):s.events_activity_messageDeliveryFailed_label()},"agent:subscribed":t=>{const e=t.data,a=i(t.actor?.name||e?.agentName||s.events_activity_agent_fallback(),30),n=e?.eventTypes;return n?.length===1?s.events_activity_watchingCategoryEvents_label({name:a,category:n[0].split(":")[0]}):n?.length>1?s.events_activity_watchingForUpdates_label({name:a}):s.events_activity_startedWatching_label({name:a})},"agent:unsubscribed":t=>{const e=t.data,a=i(t.actor?.name||e?.agentName||s.events_activity_agent_fallback(),30);return s.events_activity_stoppedWatching_label({name:a})},"agent:woken-by-subscription":t=>{const e=t.data,a=i(t.actor?.name||e?.agentName||s.events_activity_agent_fallback(),30),n=e?.eventCount||1;return n===1?s.events_activity_nameResumed_label({name:a}):s.events_activity_nameResumedEvents_label({name:a,count:n})},"agent:resumed":t=>{const e=t.data,a=i(t.actor?.name||e?.agentName||e?.name||"",35);return a?s.events_activity_nameResumed_label({name:a}):s.events_activity_agentResumed_label()},"comment:resolved":t=>t.data?.resolved===!1?s.events_activity_reopenedCommentThread_label():s.events_activity_resolvedCommentThread_label(),"git:clone:done":t=>{const e=t.data,a=i(e?.repository||e?.repo||e?.url||"",35);return a?s.events_activity_clonedRepo_label({repo:a}):s.events_activity_repositoryCloned_label()},"settings:changed":t=>{const e=t.data,a=Array.isArray(e?.changes)?e.changes.map(n=>n?.path).filter(Boolean):[];return a.length===1?s.events_activity_changedSetting_label({path:i(a[0],35)}):a.length>1?s.events_activity_changedSettingsCount_label({count:a.length}):s.events_activity_settingsChanged_label()},"skills:changed":()=>s.events_activity_skillsChanged_label(),"mcp:notification":t=>{const e=t.data,a=i(e?.serverName||e?.server||"",25);return a?s.events_activity_updateFromServer_label({server:a}):s.events_activity_mcpNotification_label()},"mcp.servers:status-changed":()=>s.events_activity_mcpStatusChanged_label(),"github:auth-changed":t=>{const a=t.data?.status;return a==="authenticated"||a==="success"?s.events_activity_githubSignedIn_label():a==="signed-out"||a==="expired"?s.events_activity_githubSignInExpired_label():s.events_activity_githubAuthChanged_label()},"workspace:context-changed":()=>s.events_activity_workspaceContextUpdated_label()};function Tt(t){if(!t?.type)return s.events_activity_unknownActivity_label();const e=he[t.type];if(e)try{return e(t)}catch{}const a=t.type.split(":");if(a.length>=2){const[n,r]=a;return`${n.charAt(0).toUpperCase()+n.slice(1)} ${r}`}return t.type.replace(/[_:]/g," ")}function At({currentScrollTop:t,targetTop:e,containerTop:a,headerBottom:n}){const r=Math.max(a,n??a);return t+e-r}function M(t){const e=t.trimStart();return e.startsWith("[WORKSPACE EVENTS]")||e.startsWith("[TASK WAKE]")||e.startsWith("[AGENT MESSAGE]")}function ke(t,e){return t.metadata?.type?!0:M(e)}function we(t,e){return x(ee(t,e)).replace(/\s+/g," ").trim()}function It(t,e){const a=new Set,n=[];for(const r of t){if(r.role!=="user"||a.has(r.id))continue;const o=se(r);if(ke(r,o))continue;const c=we(r,e);c&&(a.add(r.id),n.push({id:r.id,text:c}))}return n}function Ct(t){const e=new Set,a=[];for(const n of t){if(e.has(n.id)||n.metadata?.type||M(n.preview))continue;const r=x(te(ae(n.preview,n.metadata),n.metadata)).replace(/\s+/g," ").trim();r&&(e.add(n.id),a.push({id:n.id,text:r}))}return a}function Wt(t,e){const a=new Map(e.map(o=>[o.id,o])),n=t.map(o=>a.get(o.id)??o),r=new Set(t.map(o=>o.id));for(const o of e)r.has(o.id)||n.push(o);return n}const g=new le("ReversibleActions");class Se{constructor(){T(this,"pendingActions",new Map);T(this,"completedActions",new Map)}async execute(e){const a=e.duration??15,n=e.id||globalThis.crypto.randomUUID(),r=e.immediate??!0,o=e.showCountdown??!1;if(r&&!o)try{if(await e.action()===!1)return!1;this.completedActions.set(n,e);let c=!1;const d=e.onUndo;if(d){const p=_.warning(e.message,A({duration:a*1e3,action:{label:s.ui_reversibleActions_undo_label(),onClick:async()=>{try{c=!0,await d(),this.completedActions.delete(n),_.dismiss(p)}catch(v){g.error("Failed to undo action:",v instanceof Error?v:new Error(String(v))),_.error(s.ui_reversibleActions_undoFailed_error())}}}},{pauseOnHover:!1}))}else _.success(e.message);return setTimeout(async()=>{if(!c&&e.onExpire)try{await e.onExpire()}catch(p){g.error("Failed to execute onExpire callback:",p instanceof Error?p:new Error(String(p)))}this.completedActions.delete(n)},a*1e3),!0}catch(c){return g.error("Failed to execute action:",c instanceof Error?c:new Error(String(c))),_.error(s.ui_reversibleActions_failed_error({message:c instanceof Error?c.message:s.ui_reversibleActions_unknownError_label()})),!1}else return o?new Promise(c=>{let d=a,p;const v=async()=>{clearInterval(p),this.pendingActions.delete(n);try{await e.action(),_.success(s.ui_reversibleActions_completed_message({message:e.message})),c(!0)}catch(h){g.error("Failed to execute action:",h instanceof Error?h:new Error(String(h))),_.error(s.ui_reversibleActions_failed_error({message:h instanceof Error?h.message:s.ui_reversibleActions_unknownError_label()})),c(!1)}},y=()=>{clearTimeout(W),clearInterval(p),this.pendingActions.delete(n),_.info(s.ui_reversibleActions_cancelled_message()),c(!1)},m=A({duration:a*1e3},{pauseOnHover:!1}),D=_.warning(s.ui_reversibleActions_countdown_message({message:e.message,seconds:d}),{...m,action:{label:s.ui_reversibleActions_cancel_label(),onClick:y},onDismiss:y,onAutoClose:v});p=setInterval(()=>{d--,d>0&&_.warning(s.ui_reversibleActions_countdown_message({message:e.message,seconds:d}),{...m,id:D,duration:d*1e3,action:{label:s.ui_reversibleActions_cancel_label(),onClick:y},onDismiss:y,onAutoClose:v})},1e3);const W=setTimeout(v,a*1e3);this.pendingActions.set(n,{timeout:W,action:e})}):new Promise(c=>{const d=async()=>{clearTimeout(y),this.pendingActions.delete(n);try{await e.action(),_.success(s.ui_reversibleActions_completed_message({message:e.message})),c(!0)}catch(m){g.error("Failed to execute action:",m instanceof Error?m:new Error(String(m))),_.error(s.ui_reversibleActions_failed_error({message:m instanceof Error?m.message:s.ui_reversibleActions_unknownError_label()})),c(!1)}},p=()=>{clearTimeout(y),this.pendingActions.delete(n),_.info(s.ui_reversibleActions_cancelled_message()),c(!1)},v=async()=>{this.pendingActions.delete(n);try{e.onExpire&&await e.onExpire()}catch(m){g.error("Failed to execute onExpire callback:",m instanceof Error?m:new Error(String(m)))}_.info(s.ui_reversibleActions_expired_message()),c(!1)};_.info(`${e.message}`,A({duration:a*1e3,action:{label:s.ui_reversibleActions_execute_label(),onClick:d},onDismiss:p,onAutoClose:d},{pauseOnHover:!1}));const y=setTimeout(v,a*1e3);this.pendingActions.set(n,{timeout:y,action:e})})}cancel(e){const a=this.pendingActions.get(e);return a?(clearTimeout(a.timeout),this.pendingActions.delete(e),_.info(s.ui_reversibleActions_cancelled_message()),!0):!1}cancelAll(){for(const[e,{timeout:a}]of this.pendingActions)clearTimeout(a);this.pendingActions.clear(),this.pendingActions.size>0&&_.info(s.ui_reversibleActions_allCancelled_message())}getPendingActions(){return Array.from(this.pendingActions.keys())}}const F=new Se;async function Et(t,e,a,n={}){return F.execute({id:globalThis.crypto.randomUUID(),message:s.ui_reversibleActions_deleted_message({itemName:t}),action:e,onUndo:a,onExpire:n.onExpire,immediate:n.immediate??!0,showCountdown:n.showCountdown??!1,duration:n.duration??15})}async function Pt(t,e,a,n,r,o={}){return F.execute({id:globalThis.crypto.randomUUID(),message:s.ui_reversibleActions_renamed_message({itemType:t,newName:a}),action:n,onUndo:r,immediate:!0,showCountdown:!1,duration:o.duration??15})}const Ne=/\x1b\[[0-9;?]*[ -/]*[@-~]|\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)|\x1b[@-Z\\-_]/g,Te=/\x1b(\[[0-9;?]*[ -/]*|\][^\x07\x1b]*)?$/;function xt(t){let e="";for(const r of t.chunks)e+=r.text;if(e==="")return[];e=e.replace(Te,"").replace(Ne,"");const a=/\r?\n$/.test(e);a||(e=e.replace(/\r$/,""));const n=e.split(/\r?\n/).map(r=>{const o=r.lastIndexOf("\r");return o===-1?r:r.slice(o+1)});return a&&n[n.length-1]===""&&n.pop(),n}const Ae="No output yet.",Ie=/^\[(?:showing last \d+ of )?\d+ lines\]$/;function Rt(t){if(!t||t.trim()===Ae)return[];const e=t.replace(/\r?\n$/,"").split(/\r?\n/);return Ie.test(e[0]??"")&&e.shift(),e.length===1&&e[0]===""?[]:e}const Ce=new Set(["in_progress","review_required"]),We=new Set(["cancelled"]);function Mt(t){if(!t)return new Set;const e=new Set,a=new RegExp(P.source,"g");for(const n of t.matchAll(a)){const r=n[2];r&&e.add(r)}return e}function Ft(t){if(!t)return[];const e=[],a=new RegExp(P.source,"g");for(const n of t.matchAll(a)){const r=n[2];r&&!e.includes(r)&&e.push(r)}return e}const Ut=l.createSelector((t,e)=>t.workspaceTasks.byWorkspaceId[e]??H);l.createSelector((t,e)=>t.workspaceTasks.byWorkspaceId[e]?.loading??!1);l.createSelector((t,e)=>t.workspaceTasks.byWorkspaceId[e]?.error??null);const Dt=l.createSelector((t,e)=>t.workspaceTasks.byWorkspaceId[e]?.initialized??!1),Bt=l.createSelector(t=>Object.entries(t.workspaceTasks.byWorkspaceId).filter(([,e])=>e.demandIds.length>0).map(([e])=>e)),Ot=l.createSelector((t,e)=>{const a=t.workspaceTasks.byWorkspaceId[e];return!!a?.demandIds.length&&!a.loading&&(!a.initialized||a.stale)}),Lt=l.createSelector((t,e)=>{const a=t.workspaceTasks.byWorkspaceId[e];return a?b(a.tasks):[]}),Kt=l.createSelector((t,e)=>t.workspaceTasks.byWorkspaceId[e]?.stats??z);l.createSelector((t,e)=>{const a=t.workspaceTasks.byWorkspaceId[e];if(!a)return[];const n=[],r=[],o=[];for(const c of b(a.tasks))We.has(c.status)||(Ce.has(c.status)?n.push(c):c.status==="complete"?o.push(c):r.push(c));return[...n,...r,...o]});const N=new Map;function Ee(t){const e=N.get(t);if(e)return e;const a=oe(async()=>{const{appClient:n}=await import("./Dritbi2C.js").then(r=>r.Z);return{appClient:n}},__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]),import.meta.url).then(({appClient:n})=>n.workspaces.get(t)).catch(()=>null).finally(()=>{N.get(t)===a&&N.delete(t)});return N.set(t,a),a}function C(t){return re.select(l.state,t)}async function U(t){const e=await Ee(t);return e&&l.dispatch(j(e,{detailRead:!0})),C(t)}function Vt(t){return ie.select(l.state,t)?Promise.resolve(C(t)):U(t)}function $t(t){const e=C(t);return ne(e)?U(t):Promise.resolve(e)}export{qe as $,ze as A,et as B,at as C,be as D,We as E,_t as F,yt as G,R as H,Ce as I,pt as J,ut as K,vt as L,mt as M,ye as N,St as O,_e as P,dt as Q,Qe as R,it as S,st as T,rt as U,lt as V,ge as W,tt as X,nt as Y,Ye as Z,Xe as _,ft as a,Je as a0,ot as a1,wt as a2,kt as a3,Ze as a4,Kt as a5,Lt as a6,Dt as a7,Ot as a8,Ut as a9,bt as aa,ue as b,$t as c,Et as d,Vt as e,Ft as f,Mt as g,Tt as h,At as i,we as j,It as k,Ct as l,ve as m,He as n,Ge as o,Wt as p,Pt as q,gt as r,F as s,Rt as t,xt as u,ct as v,je as w,Nt as x,ht as y,Bt as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h}from"./
|
|
1
|
+
import{c as h}from"./DlZzAKZ2.js";import{C as c,H as u,d as p,D as m,R as f,g as _,h as w,b as k,F as v,a as D,S as P,c as R,f as I}from"./Bc-CUZMV.js";import{e as H,i as U,j as y,t as T,k as x}from"./Bc-CUZMV.js";import{l as s}from"./C11XjPnf.js";const C=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>C&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/css.worker-08QwUeFR.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new I(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,H as DocumentLinkAdapter,I as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,U as fromPosition,y as fromRange,E as setupMode,T as toRange,x as toTextEdit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,v as h,t as T}from"./WFvSJ9zU.js";import{
|
|
1
|
+
import{d as l,v as h,t as T}from"./WFvSJ9zU.js";import{HR as c,uv as w}from"./Bo4s1kgI.js";import{i as W,c as s,n as u,b as m}from"./CHZAzCO9.js";const E=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||E.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function A(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function N(n,t){return t.length>0&&A(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function I(n,t){return t?u(n,{state:t}):u(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const i=I(t,e),r={workspaceId:n,epoch:s(),startTabId:a};return await i,r}function y(n){return!n||W()}function b(n,t){if(s()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(y(n))return!1;const a=await S(n,t,e,o(c.state));return b(a,o(c.state))?(c.dispatch(R(n,e)),!0):!1}function*k(n,t,e){if(y(n))return!1;const a=o(yield*h(r=>r)),i=yield*l(S,n,t,e,a);return b(i,o(yield*h(r=>r)))?(yield*T(R(n,e)),!0):!1}function P(){m();const n=s(),t=o(c.state),e=p();return()=>s()===n&&o(c.state)===t&&p()===e}function _(n,t={}){return v(n,d(n,t.query),t.state)}function O(n,t={}){return k(n,d(n,t.query),t.state)}async function $(n){const t=f(n);t?await v(t,n,void 0):await u(n)}function*j(n){const t=f(n);t?yield*l(k,t,n,void 0):yield*l(u,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:P,navigateToAppRoute:$,navigateToAppRouteSaga:j,openAndShowWorkspace:_,showWorkspaceSaga:O,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,P as c,O as d,d as e,N as i,$ as n,_ as o,f as p,U as s,A as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{HR as o,nl as d,nk as r,ob as i,bi as a,rc as p,oV as g,o8 as m}from"./Bo4s1kgI.js";import{b8 as S,aT as f,dz as v,cD as I,b$ as W}from"./C-RJDuZ9.js";const h={status:"loading",members:[]},u=o.createSelector(e=>d(e.guestSessions.sessions)),H=o.createSelector(e=>e.guestSessions.hasReceivedList),l=o.createSelector(e=>r(e.guestSessions.sessions,e.connections.windowBackendId)??null);o.createSelector(e=>l.select(e)!==null);const G=o.createSelector(e=>e.guestSessions.openIds),K=o.createSelector(e=>e.guestSessions.connectedIds),M=o.createSelector(e=>e.guestSessions.leavingIds),F=o.createSelector(e=>e.guestSessions.leavingWorkspaceKeys),O=o.createSelector(e=>u.select(e).filter(s=>e.guestSessions.failedLeaveIds.includes(s.id))),P=o.createSelector(e=>u.select(e).flatMap(s=>(s.workspaces??[]).filter(t=>e.guestSessions.failedLeaveWorkspaceKeys.includes(i(s.id,t.id))).map(t=>({session:s,workspace:t})))),x=o.createSelector(e=>e.guestSessions.failedLeaveIds),B=o.createSelector(e=>d(e.guestSessions.sweepReports)),$=o.createSelector((e,s)=>r(e.guestSessions.sweepReports,s)),N=o.createSelector(e=>e.guestSessions.clearingWorkspaceIds),j=o.createSelector((e,s)=>r(e.workspace.workspaces,a(s))!==void 0),w=o.createSelector((e,s)=>e.guestSessions.hostedRosters[s]?.status==="withheld"?!1:r(e.workspace.workspaces,a(s))!==void 0&&S.select(e)&&f.select(e,s)),R=o.createSelector((e,s)=>{const t=r(e.workspace.workspaces,a(s));if(t?.openInviteCount!=null)return t.openInviteCount;const c=e.guestSessions.hostedRosters[s];return c?.guestCount!=null?Math.max(0,c.guestCount-c.members.filter(p).length):null}),z=o.createSelector(e=>e.workspace.error?"error":v.select(e,e.connections.windowBackendId)?"loaded":"loading"),A=o.createSelector(e=>d(e.workspace.workspaces).filter(s=>{if(!S.select(e)||!f.select(e,s.id))return!1;const t=R.select(e,s.id);if((s.memberCount??1/0)<=1&&t===0)return!1;const c=e.guestSessions.hostedRosters[s.id];return!c||c.status!=="loaded"?!0:c.members.some(p)||t===null||t>0})),k=o.createSelector(e=>{const s=l.select(e),t=I.select(e);return u.select(e).filter(c=>{const n=s?.id===c.id&&t?.principal.id===c.principalId?W.select(e):null;return n?n!=="guest":c.hostRole==="member"})}),D=o.createSelector(e=>{const s=new Set(k.select(e).map(t=>t.id));return u.select(e).filter(t=>!s.has(t.id))}),E=o.createSelector(e=>e.guestSessions.listUnavailable),L=o.createSelector((e,s)=>e.guestSessions.hostedRosters[s]??h),J=o.createSelector((e,s)=>L.select(e,s).members.filter(t=>e.guestSessions.failedMemberKeys.includes(g(s,t.principalId)))),b=[],T=o.createSelector((e,s)=>{const t=g(s,""),c=e.guestSessions.removingMemberKeys.filter(n=>n.startsWith(t)).map(n=>n.slice(t.length));return c.length===0?b:c}),U=o.createSelector((e,s)=>e.guestSessions.clearingWorkspaceIds.includes(s)),V=o.createSelector(e=>{const s=[];for(const[t,c]of Object.entries(e.guestSessions.hostedRosters)){if(c.status==="withheld")continue;const n=r(e.workspace.workspaces,a(t));!n||!w.select(e,t)||s.push(`${t}:${n.memberCount??0},${c.invalidation??0}`)}return s.sort()}),_=o.createSelector(e=>e.guestSessions.inheritedWorkspaceKeys),q=o.createSelector(e=>e.guestSessions.leaveConfirmations),Q=o.createSelector((e,s)=>m(r(e.guestSessions.sessions,s))),X=o.createSelector((e,s)=>{if(!s||!S.select(e))return!1;const t=l.select(e);return!t||!(t.workspaces??[]).some(c=>c.id===s)||k.select(e).some(c=>c.id===t.id)||e.guestSessions.inheritedWorkspaceKeys.includes(i(t.id,s))?!1:r(e.workspace.workspaces,a(s))?.myRole!=="owner"}),Y=o.createSelector((e,s)=>{const t=l.select(e);return!!t&&e.guestSessions.selfLeaveWorkspaceKeys.includes(i(t.id,s))}),Z=o.createSelector((e,s)=>{const t=l.select(e);return!!t&&e.guestSessions.leavingWorkspaceKeys.includes(i(t.id,s))});export{j as A,Z as B,Y as C,k as D,D as E,l as F,w as a,O as b,P as c,q as d,x as e,M as f,F as g,Q as h,u as i,K as j,H as k,G as l,E as m,N as n,J as o,R as p,T as q,L as r,X as s,V as t,z as u,$ as v,B as w,A as x,_ as y,U as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b8 as de,aR as ce,by as ue,ao as K,_ as Q,ae as N,c0 as Fe,c5 as Ne,aG as fe,bI as ge,bV as M,br as Ae,bH as T,aD as u,bs as ve,a5 as We,bA as Be,W as A,bn as be,aA as b,aB as X,bo as Me,ay as qe,bS as De,c9 as k,be as He,b$ as Ve,b_ as Xe,bO as Ye}from"./DYhIMPy1.js";import{t as me,bq as m,by as he,br as pe,b as ye,a_ as Z}from"./DozYGPQ1.js";import{c as H,f as W}from"./CBE9bOjQ.js";import{b as $}from"./BaIAhI85.js";import{s as je}from"./B30Ssr1r.js";import{H as ee,E as Ue,c as Ge}from"./C72zM9oE.js";import"./C3lmZVdU.js";import{bL as Je}from"./DkrIcKd4.js";function te(e,t,n=t){var o=new WeakSet;de(e,"input",async s=>{K&&e.type==="checkbox"&&Q();var i=s?e.defaultValue:e.value;if(i=q(e)?D(i):i,n(i),N!==null&&o.add(N),await Fe(),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))}}}),(ce&&e.defaultValue!==e.value||Ne(t)==null&&e.value)&&(n(q(e)?D(e.value):e.value),N!==null&&o.add(N)),ue(()=>{K&&e.type==="checkbox"&&Q();var s=t();if(e===document.activeElement){var i=N;if(o.has(i))return}q(e)&&s===D(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function q(e){var t=e.type;return t==="number"||t==="range"}function D(e){return e===""?null:+e}function Ke(e,t,n=t){de(e,"change",()=>{n(e.files)}),ce&&e.files&&n(e.files),ue(()=>{e.files=t()})}let R=[],z=[],V=!1,B=!1,F=0;function re(e){if(e.pending){e.pending=!1,F-=1;try{e.fn()}catch(t){queueMicrotask(()=>{throw t})}}}let ne=null;function xe(e){e.pending&&(e.pending=!1,F-=1,!(F>0||B)&&(R=[],z=[]))}function Y(){const e=globalThis.requestAnimationFrame;V&&ne===e||(ne=e,V=!0,e(Qe))}function Qe(){V=!1,B=!0;try{for(;R.length>0;){const e=R;R=[];for(const t of e)re(t)}for(;z.length>0;){const e=z;z=[];for(const t of e)re(t)}}finally{B=!1}F>0?Y():(R=[],z=[])}function pt(e){const t={fn:e,pending:!0};return F+=1,R.push(t),B||Y(),()=>xe(t)}function yt(e){const t={fn:e,pending:!0};return F+=1,z.push(t),B||Y(),()=>xe(t)}const _e=Symbol("owned-popup-context"),we=Symbol("owned-popup-close");function xt(e){ge(_e,e)}function Ze(){return fe(_e)}function _t(e){ge(we,e)}function $e(){return fe(we)}function wt(e){const t=Ze(),n=e??$e();return o=>({destroy:t?.register(o,n)})}function se(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function et(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=se(e.x,f.left,f.width),l=se(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 St(e,t={}){const n=t.axis??"y",o=new Map;let s=M(null),i=M(Ae([])),f=M(null),c=M(0),l;const d=()=>{u(f)&&T(s,et(u(f),u(i),n),!0)},p=v=>{const a=getComputedStyle(e),g=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:g(a.paddingLeft)+g(a.paddingRight)+g(a.borderLeftWidth)+g(a.borderRightWidth)),O=Number.parseFloat(a.height)+(_?0:g(a.paddingTop)+g(a.paddingBottom)+g(a.borderTopWidth)+g(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&v.width/w||1),y:y(O>0&&v.height/O||1)}},S=()=>{const v=e.getBoundingClientRect(),{x:a,y:g}=p(v),_=[];for(const[w,O]of o){const y=O.getBoundingClientRect();_[w]={top:(y.top-v.top)/g-e.clientTop+e.scrollTop,left:(y.left-v.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/g}}T(i,_,!0),d()},I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});I?.observe(e);const C=()=>{T(c,u(c)+1)},E=v=>{const a=e.getBoundingClientRect(),{x:g,y:_}=p(a);T(f,{x:(v.clientX-a.left)/g-e.clientLeft+e.scrollLeft,y:(v.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},L=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,T(f,null),T(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",E),e.addEventListener("pointerleave",L),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(v){T(s,v,!0)},registerItem(v,a){const g=o.get(v);g&&I?.unobserve?.(g),a?(o.set(v,a),I?.observe(a)):o.delete(v),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),I?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",E),e.removeEventListener("pointerleave",L)}}}const It=(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)}}},Ct="p-1",Et="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",Ot="ml-auto first-line-icon w-(--menu-icon-size)";var tt=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),rt=X("<p><!></p>");function Se(e,t){if(new.target)return me({component:Se,...e});ve(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=pe(t,tt);var f={get tone(){return n()},set tone(d="helper"){n(d),b()},get children(){return o()},set children(d){o(d),b()},get class(){return s()},set class(d){s(d),b()},$set:he,$on:(d,p)=>ye(t,d,p)},c=rt();H(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}),[()=>W("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=We(c);return je(l,o),Be(c),ee(1,c,()=>Ue,()=>({tier:"fast",y:-2,scale:1})),ee(2,c,()=>Ge,()=>({tier:"fast"})),A(e,c),be(f)}const Ie="data-[state=hover]:bg-hover",ae=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${Ie} 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`,Pt=`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 ${Ie} 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`,oe="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",nt="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",st="focus-visible:outline-none focus-visible:shadow-none";function ie(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const at="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 ot=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),le=X("<input/>"),it=X("<!> <!>",1);function lt(e,t){const n=Me();if(new.target)return me({component:lt,...e});ve(t,!0);const o=Je();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),I=m(t,"message",7),C=m(t,"error",7),E=m(t,"messageId",23,()=>`${n}-message`),L=m(t,"aria-describedby",7),v=m(t,"aria-invalid",7),a=m(t,"class",7),g=m(t,"data-slot",7,"input"),_=pe(t,ot);const w=k(()=>typeof l()=="string"?l():o),O=k(()=>typeof l()=="number"?l():void 0),y=k(()=>C()??I()),P=k(()=>[L(),u(y)?E():void 0].filter(Boolean).join(" ")||void 0),j=k(()=>C()?!0:v());function Ce(){s()?.focus()}function Ee(){s()?.blur()}function Oe(){s()?.select()}function Pe(r,h,x){s()?.setSelectionRange(r,h,x)}var Te={focus:Ce,blur:Ee,select:Oe,setSelectionRange:Pe,get ref(){return s()},set ref(r){s(r),b()},get id(){return i()},set id(r){i(r),b()},get value(){return f()},set value(r){f(r),b()},get type(){return c()},set type(r){c(r),b()},get size(){return l()},set size(r){l(r),b()},get files(){return d()},set files(r){d(r),b()},get variant(){return p()},set variant(r="default"){p(r),b()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),b()},get message(){return I()},set message(r){I(r),b()},get error(){return C()},set error(r){C(r),b()},get messageId(){return E()},set messageId(r=`${n}-message`){E(r),b()},get"aria-describedby"(){return L()},set"aria-describedby"(r){L(r),b()},get"aria-invalid"(){return v()},set"aria-invalid"(r){v(r),b()},get class(){return a()},set class(r){a(r),b()},get"data-slot"(){return g()},set"data-slot"(r="input"){g(r),b()},$set:he,$on:(r,h)=>ye(t,r,h)},U=it(),G=qe(U);{var Le=r=>{var h=le();H(h,x=>({id:i(),"data-slot":g(),"data-size":u(w),class:x,type:"file",size:u(O),"aria-describedby":u(P),"aria-invalid":u(j),..._}),[()=>W("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",ae,"focus-visible:-outline-offset-2",ie(u(w)),S()&&oe,a())],void 0,void 0,void 0,!0),$(h,x=>s(x),()=>s()),Ke(h,d),te(h,f),A(r,h)},ke=r=>{var h=le();H(h,x=>({id:i(),"data-slot":g(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(O),"aria-describedby":u(P),"aria-invalid":u(j),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?W("selection:bg-primary selection:text-primary-foreground",nt,a()):p()==="search"?W("flex selection:bg-primary selection:text-primary-foreground",at,a()):W("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",ae,st,ie(u(w)),S()&&oe,a())],void 0,void 0,void 0,!0),$(h,x=>s(x),()=>s()),te(h,f),A(r,h)};Z(G,r=>{c()==="file"?r(Le):r(ke,-1)})}var Re=De(G,2);{var ze=r=>{{let h=k(()=>C()?"error":"helper");Se(r,{get id(){return E()},get tone(){return u(h)},children:(x,dt)=>{He();var J=Ve();Xe(()=>Ye(J,u(y))),A(x,J)},$$slots:{default:!0}})}};Z(Re,r=>{u(y)&&r(ze)})}return A(e,U),be(Te)}export{lt as I,Ct as O,Se as a,Ot as b,Et as c,Ke as d,te as e,wt as f,St as g,$e as h,Ze as i,yt as j,_t as k,xt as l,ae as m,oe as n,Pt as o,It as p,ie as q,nt as r,pt as s,st as t,at as u};
|
|
1
|
+
import{b8 as de,aR as ce,by as ue,ao as K,_ as Q,ae as N,c0 as Fe,c5 as Ne,aG as fe,bI as ge,bV as M,br as Ae,bH as T,aD as u,bs as ve,a5 as We,bA as Be,W as A,bn as be,aA as b,aB as X,bo as Me,ay as qe,bS as De,c9 as k,be as He,b$ as Ve,b_ as Xe,bO as Ye}from"./DYhIMPy1.js";import{t as me,bq as m,by as he,br as pe,b as ye,a_ as Z}from"./eK7OULll.js";import{c as H,f as W}from"./DZtstCLQ.js";import{b as $}from"./BaIAhI85.js";import{s as je}from"./p5gLe3PS.js";import{H as ee,E as Ue,c as Ge}from"./DYfBNrOV.js";import"./jMKjj8ae.js";import{bL as Je}from"./CVjlpAWj.js";function te(e,t,n=t){var o=new WeakSet;de(e,"input",async s=>{K&&e.type==="checkbox"&&Q();var i=s?e.defaultValue:e.value;if(i=q(e)?D(i):i,n(i),N!==null&&o.add(N),await Fe(),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))}}}),(ce&&e.defaultValue!==e.value||Ne(t)==null&&e.value)&&(n(q(e)?D(e.value):e.value),N!==null&&o.add(N)),ue(()=>{K&&e.type==="checkbox"&&Q();var s=t();if(e===document.activeElement){var i=N;if(o.has(i))return}q(e)&&s===D(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function q(e){var t=e.type;return t==="number"||t==="range"}function D(e){return e===""?null:+e}function Ke(e,t,n=t){de(e,"change",()=>{n(e.files)}),ce&&e.files&&n(e.files),ue(()=>{e.files=t()})}let R=[],z=[],V=!1,B=!1,F=0;function re(e){if(e.pending){e.pending=!1,F-=1;try{e.fn()}catch(t){queueMicrotask(()=>{throw t})}}}let ne=null;function xe(e){e.pending&&(e.pending=!1,F-=1,!(F>0||B)&&(R=[],z=[]))}function Y(){const e=globalThis.requestAnimationFrame;V&&ne===e||(ne=e,V=!0,e(Qe))}function Qe(){V=!1,B=!0;try{for(;R.length>0;){const e=R;R=[];for(const t of e)re(t)}for(;z.length>0;){const e=z;z=[];for(const t of e)re(t)}}finally{B=!1}F>0?Y():(R=[],z=[])}function pt(e){const t={fn:e,pending:!0};return F+=1,R.push(t),B||Y(),()=>xe(t)}function yt(e){const t={fn:e,pending:!0};return F+=1,z.push(t),B||Y(),()=>xe(t)}const _e=Symbol("owned-popup-context"),we=Symbol("owned-popup-close");function xt(e){ge(_e,e)}function Ze(){return fe(_e)}function _t(e){ge(we,e)}function $e(){return fe(we)}function wt(e){const t=Ze(),n=e??$e();return o=>({destroy:t?.register(o,n)})}function se(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function et(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=se(e.x,f.left,f.width),l=se(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 St(e,t={}){const n=t.axis??"y",o=new Map;let s=M(null),i=M(Ae([])),f=M(null),c=M(0),l;const d=()=>{u(f)&&T(s,et(u(f),u(i),n),!0)},p=v=>{const a=getComputedStyle(e),g=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:g(a.paddingLeft)+g(a.paddingRight)+g(a.borderLeftWidth)+g(a.borderRightWidth)),O=Number.parseFloat(a.height)+(_?0:g(a.paddingTop)+g(a.paddingBottom)+g(a.borderTopWidth)+g(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&v.width/w||1),y:y(O>0&&v.height/O||1)}},S=()=>{const v=e.getBoundingClientRect(),{x:a,y:g}=p(v),_=[];for(const[w,O]of o){const y=O.getBoundingClientRect();_[w]={top:(y.top-v.top)/g-e.clientTop+e.scrollTop,left:(y.left-v.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/g}}T(i,_,!0),d()},I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});I?.observe(e);const C=()=>{T(c,u(c)+1)},E=v=>{const a=e.getBoundingClientRect(),{x:g,y:_}=p(a);T(f,{x:(v.clientX-a.left)/g-e.clientLeft+e.scrollLeft,y:(v.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},L=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,T(f,null),T(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",E),e.addEventListener("pointerleave",L),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(v){T(s,v,!0)},registerItem(v,a){const g=o.get(v);g&&I?.unobserve?.(g),a?(o.set(v,a),I?.observe(a)):o.delete(v),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),I?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",E),e.removeEventListener("pointerleave",L)}}}const It=(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)}}},Ct="p-1",Et="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",Ot="ml-auto first-line-icon w-(--menu-icon-size)";var tt=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),rt=X("<p><!></p>");function Se(e,t){if(new.target)return me({component:Se,...e});ve(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=pe(t,tt);var f={get tone(){return n()},set tone(d="helper"){n(d),b()},get children(){return o()},set children(d){o(d),b()},get class(){return s()},set class(d){s(d),b()},$set:he,$on:(d,p)=>ye(t,d,p)},c=rt();H(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}),[()=>W("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=We(c);return je(l,o),Be(c),ee(1,c,()=>Ue,()=>({tier:"fast",y:-2,scale:1})),ee(2,c,()=>Ge,()=>({tier:"fast"})),A(e,c),be(f)}const Ie="data-[state=hover]:bg-hover",ae=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${Ie} 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`,Pt=`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 ${Ie} 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`,oe="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",nt="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",st="focus-visible:outline-none focus-visible:shadow-none";function ie(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const at="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 ot=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),le=X("<input/>"),it=X("<!> <!>",1);function lt(e,t){const n=Me();if(new.target)return me({component:lt,...e});ve(t,!0);const o=Je();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),I=m(t,"message",7),C=m(t,"error",7),E=m(t,"messageId",23,()=>`${n}-message`),L=m(t,"aria-describedby",7),v=m(t,"aria-invalid",7),a=m(t,"class",7),g=m(t,"data-slot",7,"input"),_=pe(t,ot);const w=k(()=>typeof l()=="string"?l():o),O=k(()=>typeof l()=="number"?l():void 0),y=k(()=>C()??I()),P=k(()=>[L(),u(y)?E():void 0].filter(Boolean).join(" ")||void 0),j=k(()=>C()?!0:v());function Ce(){s()?.focus()}function Ee(){s()?.blur()}function Oe(){s()?.select()}function Pe(r,h,x){s()?.setSelectionRange(r,h,x)}var Te={focus:Ce,blur:Ee,select:Oe,setSelectionRange:Pe,get ref(){return s()},set ref(r){s(r),b()},get id(){return i()},set id(r){i(r),b()},get value(){return f()},set value(r){f(r),b()},get type(){return c()},set type(r){c(r),b()},get size(){return l()},set size(r){l(r),b()},get files(){return d()},set files(r){d(r),b()},get variant(){return p()},set variant(r="default"){p(r),b()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),b()},get message(){return I()},set message(r){I(r),b()},get error(){return C()},set error(r){C(r),b()},get messageId(){return E()},set messageId(r=`${n}-message`){E(r),b()},get"aria-describedby"(){return L()},set"aria-describedby"(r){L(r),b()},get"aria-invalid"(){return v()},set"aria-invalid"(r){v(r),b()},get class(){return a()},set class(r){a(r),b()},get"data-slot"(){return g()},set"data-slot"(r="input"){g(r),b()},$set:he,$on:(r,h)=>ye(t,r,h)},U=it(),G=qe(U);{var Le=r=>{var h=le();H(h,x=>({id:i(),"data-slot":g(),"data-size":u(w),class:x,type:"file",size:u(O),"aria-describedby":u(P),"aria-invalid":u(j),..._}),[()=>W("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",ae,"focus-visible:-outline-offset-2",ie(u(w)),S()&&oe,a())],void 0,void 0,void 0,!0),$(h,x=>s(x),()=>s()),Ke(h,d),te(h,f),A(r,h)},ke=r=>{var h=le();H(h,x=>({id:i(),"data-slot":g(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(O),"aria-describedby":u(P),"aria-invalid":u(j),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?W("selection:bg-primary selection:text-primary-foreground",nt,a()):p()==="search"?W("flex selection:bg-primary selection:text-primary-foreground",at,a()):W("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",ae,st,ie(u(w)),S()&&oe,a())],void 0,void 0,void 0,!0),$(h,x=>s(x),()=>s()),te(h,f),A(r,h)};Z(G,r=>{c()==="file"?r(Le):r(ke,-1)})}var Re=De(G,2);{var ze=r=>{{let h=k(()=>C()?"error":"helper");Se(r,{get id(){return E()},get tone(){return u(h)},children:(x,dt)=>{He();var J=Ve();Xe(()=>Ye(J,u(y))),A(x,J)},$$slots:{default:!0}})}};Z(Re,r=>{u(y)&&r(ze)})}return A(e,U),be(Te)}export{lt as I,Ct as O,Se as a,Ot as b,Et as c,Ke as d,te as e,wt as f,St as g,$e as h,Ze as i,yt as j,_t as k,xt as l,ae as m,oe as n,Pt as o,It as p,ie as q,nt as r,pt as s,st as t,at as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{HR as o,b5 as d}from"./Bo4s1kgI.js";const f=o.createSelector((t,r)=>t.uiHighlight.activeById[r.trim()]??0),H=o.createSelector((t,r)=>t.uiHighlight.durationMsById[r.trim()]),n="ui-highlight-pulse-ring";function u(t){return(t??"").trim()}function T(t,r={}){let s=u(r.id??t.dataset.highlightId),a=0,l;function c(){t.classList.remove(n)}function g(e){t.classList.remove(n),t.offsetWidth,t.classList.add(n),l&&clearTimeout(l),l=setTimeout(c,e??d)}function h(){if(!s)return;let e;try{e=o.state}catch{return}const i=f.select(e,s);i>0&&i!==a&&(a=i,g(H.select(e,s)))}const I=setInterval(h,100);return h(),{update(e={}){const i=u(e.id??t.dataset.highlightId);i!==s&&(s=i,a=0,c(),h())},destroy(){clearInterval(I),l&&clearTimeout(l),c()}}}export{T as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as z,bq as n,a_ as g,by as D,br as E,b as F}from"./
|
|
1
|
+
import{t as z,bq as n,a_ as g,by as D,br as E,b as F}from"./eK7OULll.js";import{bs as G,a5 as s,bS as p,bA as i,W as o,bn as I,aA as d,aB as v}from"./DYhIMPy1.js";import{s as c}from"./p5gLe3PS.js";import{c as J,f as K}from"./DZtstCLQ.js";var L=new Set(["$$slots","$$events","$$legacy","title","description","counter","leading","actions","class"]),M=v('<div class="flex shrink-0 items-center"><!></div>'),O=v('<div data-slot="screen-header-counter" class="type-caption mb-1 text-muted-foreground"><!></div>'),Q=v('<div data-slot="screen-header-description" class="mt-1 text-sm text-muted-foreground"><!></div>'),R=v('<div data-slot="screen-header-actions" class="flex shrink-0 items-center gap-1"><!></div>'),T=v('<header><!> <div class="min-w-0 flex-1"><!> <div data-slot="screen-header-title" class="min-w-0"><!></div> <!></div> <!></header>');function U(w,a){if(new.target)return z({component:U,...w});G(a,!0);let h=n(a,"title",7),l=n(a,"description",7),_=n(a,"counter",7),u=n(a,"leading",7),m=n(a,"actions",7),b=n(a,"class",7),A=E(a,L);var C={get title(){return h()},set title(e){h(e),d()},get description(){return l()},set description(e){l(e),d()},get counter(){return _()},set counter(e){_(e),d()},get leading(){return u()},set leading(e){u(e),d()},get actions(){return m()},set actions(e){m(e),d()},get class(){return b()},set class(e){b(e),d()},$set:D,$on:(e,t)=>F(a,e,t)},f=T();J(f,e=>({"data-slot":"screen-header",class:e,...A}),[()=>K("flex min-w-0 shrink-0 items-start gap-3 px-5 pt-5",b())]);var S=s(f);{var q=e=>{var t=M(),r=s(t);c(r,u),i(t),o(e,t)};g(S,e=>{u()&&e(q)})}var x=p(S,2),k=s(x);{var B=e=>{var t=O(),r=s(t);c(r,_),i(t),o(e,t)};g(k,e=>{_()&&e(B)})}var y=p(k,2),H=s(y);c(H,h),i(y);var N=p(y,2);{var P=e=>{var t=Q(),r=s(t);c(r,l),i(t),o(e,t)};g(N,e=>{l()&&e(P)})}i(x);var W=p(x,2);{var j=e=>{var t=R(),r=s(t);c(r,m),i(t),o(e,t)};g(W,e=>{m()&&e(j)})}return i(f),o(w,f),I(C)}export{U as S};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as xe}from"./rytmH58N.js";import{p as be}from"./DpTF0OML.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./Dyr9OHj8.js";import{p as ze}from"./QeTaV4Op.js";import{f as O,o as Q}from"./CtugIh5q.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
|
|
1
|
+
import{s as xe}from"./ubLEbEcV.js";import{p as be}from"./BkR5Qiti.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./DwsRDnkS.js";import{p as ze}from"./DZAWjsA4.js";import{f as O,o as Q}from"./DjqPgoUP.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${s.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${s.sectionStrokeWidth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as gt,bq as n,bo as a,by as Ct,b as bt,a_ as g}from"./
|
|
1
|
+
import{t as gt,bq as n,bo as a,by as Ct,b as bt,a_ as g}from"./eK7OULll.js";import{bs as pt,aD as C,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as b,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./DYhIMPy1.js";import{s as At}from"./p5gLe3PS.js";import"./DZtstCLQ.js";import"./jMKjj8ae.js";import"./aLZSbque.js";import{D as ht}from"./BdWpSBC4.js";import{t as l}from"./DYfBNrOV.js";import"./CVjlpAWj.js";import"./DhtKWu39.js";var Wt=P('<p class="type-body"> </p>'),X=P('<p class="type-body text-foreground font-medium"> </p>'),Pt=P('<p class="type-body text-muted-foreground font-normal"> </p>'),Rt=P('<p class="type-body text-muted-foreground font-normal"> <!></p>'),St=P('<div class="space-y-2"><!> <!> <!> <!></div>'),Bt=P('<div class="space-y-4"><!> <!> <!></div>');function Dt(J,e){if(new.target)return gt({component:Dt,...J});pt(e,!0);let p=n(e,"open",15,!1),F=n(e,"static",7,!1),H=n(e,"title",23,()=>a.modals_bulkActionConfirm_title()),S=n(e,"description",7,""),T=n(e,"confirmText",23,()=>a.modals_bulkActionConfirm_confirm_label()),w=n(e,"variant",7,"default"),y=n(e,"initialFocus",7,"confirm"),q=n(e,"body",7),c=n(e,"openPrCount",7,0),x=n(e,"preflightReady",7,!0),E=n(e,"mode",7,"delete"),d=n(e,"activeAgentCount",7,0),m=n(e,"activeHookCount",7,0),_=n(e,"guestCount",7,0),I=n(e,"onConfirm",7),K=n(e,"onCancel",7);const Y=b(()=>d()>0||m()>0||c()>0||_()>0);function Z(){p(!1),K()?.()}async function $(){await I()?.(),p(!1)}var tt={get open(){return p()},set open(t=!1){p(t),o()},get static(){return F()},set static(t=!1){F(t),o()},get title(){return H()},set title(t=a.modals_bulkActionConfirm_title()){H(t),o()},get description(){return S()},set description(t=""){S(t),o()},get confirmText(){return T()},set confirmText(t=a.modals_bulkActionConfirm_confirm_label()){T(t),o()},get variant(){return w()},set variant(t="default"){w(t),o()},get initialFocus(){return y()},set initialFocus(t="confirm"){y(t),o()},get body(){return q()},set body(t){q(t),o()},get openPrCount(){return c()},set openPrCount(t=0){c(t),o()},get preflightReady(){return x()},set preflightReady(t=!0){x(t),o()},get mode(){return E()},set mode(t="delete"){E(t),o()},get activeAgentCount(){return d()},set activeAgentCount(t=0){d(t),o()},get activeHookCount(){return m()},set activeHookCount(t=0){m(t),o()},get guestCount(){return _()},set guestCount(t=0){_(t),o()},get onConfirm(){return I()},set onConfirm(t){I(t),o()},get onCancel(){return K()},set onCancel(t){K(t),o()},$set:Ct,$on:(t,L)=>bt(e,t,L)};{const t=O=>{var j=Bt(),M=z(j);{var it=f=>{var k=Wt(),B=D(k,!0);h(()=>W(B,S())),u(f,k)};g(M,f=>{S()&&f(it)})}var N=A(M,2);{var st=f=>{var k=St(),B=z(k);{var lt=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>d()===1?a.modals_deleteWarning_agentsStopped_one({count:l(d())}):a.modals_deleteWarning_agentsStopped_many({count:l(d())})]),u(r,i)};g(B,r=>{d()>0&&r(lt)})}var Q=A(B,2);{var ct=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>m()===1?a.modals_deleteWarning_hooksCancelled_one({count:l(m())}):a.modals_deleteWarning_hooksCancelled_many({count:l(m())})]),u(r,i)};g(Q,r=>{m()>0&&r(ct)})}var U=A(Q,2);{var dt=r=>{var i=Pt(),s=D(i,!0);h(v=>W(s,v),[()=>c()===1?a.modals_deleteWarning_openPrs_one({count:l(c())}):a.modals_deleteWarning_openPrs_many({count:l(c())})]),u(r,i)};g(U,r=>{c()>0&&r(dt)})}var mt=A(U,2);{var _t=r=>{var i=Rt(),s=z(i),v=A(s);{var ft=R=>{var V=kt();h(vt=>W(V,vt),[()=>a.modals_bulkActionConfirm_guestsReinvite_description()]),u(R,V)};g(v,R=>{E()==="archive"&&R(ft)})}G(i),h(R=>W(s,`${R??""} `),[()=>_()===1?a.modals_bulkActionConfirm_guestsRemoved_one({count:l(_())}):a.modals_bulkActionConfirm_guestsRemoved_many({count:l(_())})]),u(r,i)};g(mt,r=>{_()>0&&r(_t)})}G(k),u(f,k)};g(N,f=>{C(Y)&&f(st)})}var ut=A(N,2);At(ut,()=>q()??xt),G(j),u(O,j)};let L=b(()=>!x()),et=b(()=>x()&&y()==="confirm"),nt=b(()=>!x()||y()==="cancel"),ot=b(()=>y()==="cancel"?"ignore":"submit"),rt=b(()=>y()==="cancel"?"ignore":"submit"),at=b(()=>w()==="destructive");ht(J,{get static(){return F()},get title(){return H()},get confirmLabel(){return T()},get submitBusy(){return C(L)},get canSubmit(){return x()},get focusSubmit(){return C(et)},get focusCancel(){return C(nt)},get enterKey(){return C(ot)},get modEnter(){return C(rt)},get destructive(){return C(at)},onConfirm:$,onCancel:Z,get open(){return p()},set open(O){p(O)},details:t,$$slots:{details:!0}})}return yt(tt)}export{Dt as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as g,bq as n,bt as v,by as b,br as h,b as x}from"./
|
|
1
|
+
import{t as g,bq as n,bt as v,by as b,br as h,b as x}from"./eK7OULll.js";import{bs as y,a7 as S,ay as w,aD as _,W as k,bn as z,aA as i,c9 as C}from"./DYhIMPy1.js";import{c as A}from"./DFcwI6Rh.js";import{f as I,p as M}from"./DZtstCLQ.js";import{S as P}from"./Bmmshx2M.js";var W=new Set(["$$slots","$$events","$$legacy","ref","class","data-slot"]);function D(l,t){if(new.target)return g({component:D,...l});y(t,!0);let a=n(t,"ref",15,null),r=n(t,"class",7),s=n(t,"data-slot",7,"separator"),c=h(t,W);var m={get ref(){return a()},set ref(e=null){a(e),i()},get class(){return r()},set class(e){r(e),i()},get"data-slot"(){return s()},set"data-slot"(e="separator"){s(e),i()},$set:b,$on:(e,o)=>x(t,e,o)},p=S(),d=w(p);{let e=C(()=>I("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",r()));A(d,()=>P,(o,u)=>{u(o,v({get"data-slot"(){return s()},get class(){return _(e)}},()=>c,{get ref(){return a()},set ref(f){a(f)}}))})}return k(l,p),z(m)}const F=[{id:"separator-state-matrix",title:"Separator states",states:["horizontal","vertical","decorative","semantic","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];M({id:"separator",source:"src/lib/components/ui/separator/separator.svelte",publicImport:"$lib/components/ui/separator",legacyImports:["$lib/components/ui/separator/index.js"],exports:["Root","Separator","separatorMetadata"],category:"primitive",owner:"design-system",callers:["src/features/discussions/components/DiscussionMentionPicker.svelte","src/features/home/HomeAssistantThreads.svelte","src/features/workspace-sharing/components/WorkspaceSharingSetup.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/components/file-explorer/file-explorer-layout.svelte","src/lib/components/ui/sidebar/sidebar-separator.svelte","src/lib/components/workspace/WorkspaceAgentsList.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/separator/separator.test.ts",removalGate:"Retain while exported and orientation, semantic, and fixture tests pass.",dynamicImports:[],fixtures:F});export{D as S};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ni}from"./
|
|
1
|
+
import{g as Ni}from"./CM7Hb3PZ.js";import{s as Ci}from"./ubLEbEcV.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./DwsRDnkS.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
|
|
2
2
|
`),S("\r"),S(" "),S("\v"),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S("\u2028"),S("\u2029"),S(" "),S(" "),S(" "),S("\uFEFF")],sa=/[0-9a-fA-F]/,tt=/[0-9]/,na=/[1-9]/;class ia{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Fe(n,"global");break;case"i":Fe(n,"ignoreCase");break;case"m":Fe(n,"multiLine");break;case"u":Fe(n,"unicode");break;case"y":Fe(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}Se(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return ta()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:i,atMost:a}):t={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Se(t);break}if(!(e===!0&&t===void 0)&&Se(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Se(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[S(`
|
|
3
3
|
`),S("\r"),S("\u2028"),S("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=gt;break;case"D":e=gt,t=!0;break;case"s":e=Os;break;case"S":e=Os,t=!0;break;case"w":e=At;break;case"W":e=At,t=!0;break}if(Se(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=S("\f");break;case"n":e=S(`
|
|
4
4
|
`);break;case"r":e=S("\r");break;case"t":e=S(" ");break;case"v":e=S("\v");break}if(Se(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:S("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:S(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var nt=t=>{throw TypeError(t)};var st=(t,r,e)=>r.has(t)||nt("Cannot "+e);var m=(t,r,e)=>(st(t,r,"read from private field"),e?e.call(t):r.get(t)),T=(t,r,e)=>r.has(t)?nt("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,e),C=(t,r,e,n)=>(st(t,r,"write to private field"),n?n.call(t,e):r.set(t,e),e);import{O as lt,bR as _t,l as wt,B as Tt,R as Ct,as as Ft,c5 as mt,T as Nt,b1 as kt,bt as ot,bf as R,cc as ht,K as xt,M as St,bV as it,ao as gt,bY as at,by as Ot,bH as B,aD as ct,cd as At,aE as ut,c2 as Et}from"./DYhIMPy1.js";import{j as P}from"./
|
|
1
|
+
var nt=t=>{throw TypeError(t)};var st=(t,r,e)=>r.has(t)||nt("Cannot "+e);var m=(t,r,e)=>(st(t,r,"read from private field"),e?e.call(t):r.get(t)),T=(t,r,e)=>r.has(t)?nt("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,e),C=(t,r,e,n)=>(st(t,r,"write to private field"),n?n.call(t,e):r.set(t,e),e);import{O as lt,bR as _t,l as wt,B as Tt,R as Ct,as as Ft,c5 as mt,T as Nt,b1 as kt,bt as ot,bf as R,cc as ht,K as xt,M as St,bV as it,ao as gt,bY as at,by as Ot,bH as B,aD as ct,cd as At,aE as ut,c2 as Et}from"./DYhIMPy1.js";import{j as P}from"./DZtstCLQ.js";import{f as Mt,k as Rt}from"./p5gLe3PS.js";const Dt=()=>performance.now(),$={tick:t=>requestAnimationFrame(t),now:()=>Dt(),tasks:new Set};function yt(){const t=$.now();$.tasks.forEach(r=>{r.c(t)||($.tasks.delete(r),r.f())}),$.tasks.size!==0&&$.tick(yt)}function K(t){let r;return $.tasks.size===0&&$.tick(yt),{promise:new Promise(e=>{$.tasks.add(r={c:t,f:e})}),abort(){$.tasks.delete(r)}}}function L(t,r){ht(()=>{t.dispatchEvent(new CustomEvent(r))})}function It(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const r=t.split("-");return r.length===1?r[0]:r[0]+r.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}function ft(t){const r={},e=t.split(";");for(const n of e){const[o,s]=n.split(":");if(!o||s===void 0)break;const i=It(o.trim());r[i]=s.trim()}return r}const Pt=t=>t;let bt=null;function Xt(t){bt=t}function Zt(t,r,e){var n=bt??lt,o=n.nodes,s,i,a,c=null;o.a??={element:t,measure(){s=this.element.getBoundingClientRect()},apply(){if(a?.abort(),i=this.element.getBoundingClientRect(),s.left!==i.left||s.right!==i.right||s.top!==i.top||s.bottom!==i.bottom){const u=r()(this.element,{from:s,to:i},e?.());a=V(this.element,u,void 0,1,()=>{},()=>{a?.abort(),a=void 0})}},fix(){if(!t.getAnimations().length){var{position:u,width:f,height:l}=getComputedStyle(t);if(u!=="absolute"&&u!=="fixed"){var d=t.style;c={position:d.position,width:d.width,height:d.height,transform:d.transform},d.position="absolute",d.width=f,d.height=l;var p=t.getBoundingClientRect();if(s.left!==p.left||s.top!==p.top){var g=`translate(${s.left-p.left}px, ${s.top-p.top}px)`;d.transform=d.transform?`${d.transform} ${g}`:g}}}},unfix(){if(c){var u=t.style;u.position=c.position,u.width=c.width,u.height=c.height,u.transform=c.transform}}},o.a.element=t}function tr(t,r,e,n){var o=(t&xt)!==0,s=(t&St)!==0,i=o&&s,a=(t&Nt)!==0,c=i?"both":o?"in":"out",u,f=r.inert,l=r.style.overflow,d,p;function g(){return ht(()=>u??=e()(r,n?.()??{},{direction:c}))}var y={is_global:a,in(){if(r.inert=f,!o){p?.abort(),p?.reset?.();return}s||d?.abort(),d=V(r,g(),p,1,()=>{L(r,"introstart")},()=>{L(r,"introend"),d?.abort(),d=u=void 0,r.style.overflow=l})},out(F){if(!s){F?.(),u=void 0;return}r.inert=!0,p=V(r,g(),d,0,()=>{L(r,"outrostart")},()=>{L(r,"outroend"),F?.()})},stop:()=>{d?.abort(),p?.abort()}},b=lt;if((b.nodes.t??=[]).push(y),o&&_t){var h=a;if(!h){for(var v=b.parent;v&&(v.f&wt)!==0;)for(;(v=v.parent)&&(v.f&Tt)===0;);h=!v||(v.f&Ct)!==0}h&&Ft(()=>{mt(()=>y.in())})}}function V(t,r,e,n,o,s){var i=n===1,a=!1;if(kt(r)){var c;return ot(()=>{if(!a){var y=r({direction:i?"in":"out"});c=V(t,y,e,n,o,s)}}),{abort:()=>{a=!0,c?.abort()},deactivate:()=>c?.deactivate(),reset:()=>c?.reset(),t:()=>c?.t()??1-n}}if(e?.deactivate(),!r?.duration&&!r?.delay)return o(),s(),{abort:R,deactivate:R,reset:R,t:()=>n};const{delay:u=0,css:f,tick:l,easing:d=Pt}=r;var p,g=()=>1-n;return ot(()=>{if(!a){var y=[];if(i&&e===void 0&&(l&&l(0,1),f)){var b=ft(f(0,1));y.push(b,b)}p=t.animate(y,{duration:u,fill:"forwards"}),p.onfinish=()=>{p.cancel(),o();var h=e?.t()??1-n;e?.abort();var v=n-h,F=r.duration*Math.abs(v),X=[];if(F>0){var Z=!1;if(f)for(var tt=Math.ceil(F/16.666666666666668),z=0;z<=tt;z+=1){var rt=h+v*d(z/tt),et=ft(f(rt,1-rt));X.push(et),Z||=et.overflow==="hidden"}Z&&(t.style.overflow="hidden"),g=()=>{var j=p.currentTime;return h+v*d(j/F)},l&&K(()=>{if(p.playState!=="running")return!1;var j=g();return l(j,1-j),!0})}p=t.animate(X,{duration:F,fill:"forwards"}),p.onfinish=()=>{g=()=>n,l?.(n,1-n),s()}}}}),{abort:()=>{a=!0,p&&(p.cancel(),p.effect=null,p.onfinish=R)},deactivate:()=>{s=R},reset:()=>{n===0&&l?.(1,0)},t:()=>g()}}function Y(t){return t}function O(t){const r=t-1;return r*r*r+1}function rr(t){return--t*t*t*t*t+1}function pt(t){return Object.prototype.toString.call(t)==="[object Date]"}function W(t,r){if(t===r||t!==t)return()=>t;const e=typeof t;if(e!==typeof r||Array.isArray(t)!==Array.isArray(r))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const n=r.map((o,s)=>W(t[s],o));return o=>n.map(s=>s(o))}if(e==="object"){if(!t||!r)throw new Error("Object cannot be null");if(pt(t)&&pt(r)){const s=t.getTime(),a=r.getTime()-s;return c=>new Date(s+c*a)}const n=Object.keys(r),o={};return n.forEach(s=>{o[s]=W(t[s],r[s])}),s=>{const i={};return n.forEach(a=>{i[a]=o[a](s)}),i}}if(e==="number"){const n=r-t;return o=>t+o*n}return()=>r}function jt(t,r={}){const e=At(t);let n,o=t;function s(i,a){if(o=i,t==null)return e.set(t=i),Promise.resolve();let c=n,u=!1,{delay:f=0,duration:l=400,easing:d=Y,interpolate:p=W}={...r,...a};if(l===0)return c&&(c.abort(),c=null),e.set(t=o),Promise.resolve();const g=$.now()+f;let y;return n=K(b=>{if(b<g)return!0;u||(y=p(t,i),typeof l=="function"&&(l=l(t,i)),u=!0),c&&(c.abort(),c=null);const h=b-g;return h>l?(e.set(t=i),!1):(e.set(t=y(d(h/l))),!0)}),n.promise}return{set:s,update:(i,a)=>s(i(o,t),a),subscribe:e.subscribe}}var _,x,I,S;const Q=class Q{constructor(r,e={}){T(this,_);T(this,x);T(this,I);T(this,S,null);C(this,_,it(r)),C(this,x,it(r)),C(this,I,e),gt&&(at(m(this,_),"Tween.current"),at(m(this,x),"Tween.target"))}static of(r,e){const n=new Q(r(),e);return Ot(()=>{n.set(r())}),n}set(r,e){B(m(this,x),r);let{delay:n=0,duration:o=400,easing:s=Y,interpolate:i=W}={...m(this,I),...e};if(o===0)return m(this,S)?.abort(),B(m(this,_),r),Promise.resolve();const a=$.now()+n;let c,u=!1,f=m(this,S);return C(this,S,K(l=>{if(l<a)return!0;if(!u){u=!0;const p=m(this,_).v;c=i(p,r),typeof o=="function"&&(o=o(p,r)),f?.abort(),f=null}const d=l-a;return d>o?(B(m(this,_),r),!1):(B(m(this,_),c(s(d/o))),!0)})),m(this,S).promise}get current(){return ct(m(this,_))}get target(){return ct(m(this,x))}set target(r){this.set(r)}};_=new WeakMap,x=new WeakMap,I=new WeakMap,S=new WeakMap;let G=Q;const k={fast:{settleMs:80,easing:O,exit:{duration:60,easing:O}},moderate:{settleMs:160,easing:O,exit:{duration:120,easing:O}},slow:{settleMs:240,easing:O,exit:{duration:160,easing:O}}};var w,A,E;class er{constructor(r,e="moderate"){T(this,w);T(this,A);T(this,E,Promise.resolve());C(this,A,k[e]),C(this,w,new G(r))}get current(){return m(this,w).current}get target(){return m(this,w).target}set target(r){this.set(r)}set(r,e){return mt(()=>{const n=e?.instant||P();return!n&&Object.is(r,m(this,w).target)?m(this,E):(m(this,w).set(m(this,w).current,{duration:0}),C(this,E,m(this,w).set(r,{duration:n?0:m(this,A).settleMs,easing:m(this,A).easing})),m(this,E))})}}w=new WeakMap,A=new WeakMap,E=new WeakMap;function Bt(t,r="moderate"){const e=jt(t);let n=t,o=Promise.resolve();const s=(i,a)=>{const c=a?.hard||P();return!c&&Object.is(i,n)||(n=i,e.set(ut(e),{duration:0}),o=e.set(i,{duration:c?0:k[r].settleMs,easing:k[r].easing})),o};return{subscribe:e.subscribe,set:s,update:(i,a)=>s(i(n,ut(e)),a)}}function nr(t,r="moderate"){const e=Bt(t,r);return{subscribe:e.subscribe,set:n=>e.set(n),update:n=>e.update(n)}}function sr(t){return t.exit.duration+100}const Lt=t=>t;function J(t){const r=t-1;return r*r*r+1}function vt(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function H(t){const r=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[t,"px"]}function N(t,r,e){return Number.isNaN(r)?"":`${t}: ${e*r}px;`}function Vt(t,{delay:r=0,duration:e=400,easing:n=vt,amount:o=5,opacity:s=0}={}){const i=getComputedStyle(t),a=+i.opacity,c=i.filter==="none"?"":i.filter,u=a*(1-s),[f,l]=H(o);return{delay:r,duration:e,easing:n,css:(d,p)=>`opacity: ${a-u*p}; filter: ${c} blur(${p*f}${l});`}}function $t(t,{delay:r=0,duration:e=400,easing:n=Lt}={}){const o=+getComputedStyle(t).opacity;return{delay:r,duration:e,easing:n,css:s=>`opacity: ${s*o}`}}function Wt(t,{delay:r=0,duration:e=400,easing:n=J,x:o=0,y:s=0,opacity:i=0}={}){const a=getComputedStyle(t),c=+a.opacity,u=a.transform==="none"?"":a.transform,f=c*(1-i),[l,d]=H(o),[p,g]=H(s);return{delay:r,duration:e,easing:n,css:(y,b)=>`
|
|
2
2
|
transform: ${u} translate(${(1-y)*l}${d}, ${(1-y)*p}${g});
|
|
3
3
|
opacity: ${c-f*b}`}}var U=!1;function qt(t,{delay:r=0,duration:e=400,easing:n=J,axis:o="y"}={}){const s=getComputedStyle(t);gt&&!U&&/(contents|inline|table)/.test(s.display)&&(U=!0,Promise.resolve().then(()=>U=!1),Et(s.display));const i=+s.opacity,a=o==="y"?"height":"width",c=parseFloat(s[a]),u=o==="y"?["top","bottom"]:["left","right"],f=u.map(h=>`${h[0].toUpperCase()}${h.slice(1)}`),l=parseFloat(s[`padding${f[0]}`]),d=parseFloat(s[`padding${f[1]}`]),p=parseFloat(s[`margin${f[0]}`]),g=parseFloat(s[`margin${f[1]}`]),y=parseFloat(s[`border${f[0]}Width`]),b=parseFloat(s[`border${f[1]}Width`]);return{delay:r,duration:e,easing:n,css:h=>`overflow: hidden;opacity: ${Math.min(h*20,1)*i};`+N(a,c,h)+N(`padding-${u[0]}`,l,h)+N(`padding-${u[1]}`,d,h)+N(`margin-${u[0]}`,p,h)+N(`margin-${u[1]}`,g,h)+N(`border-${u[0]}-width`,y,h)+N(`border-${u[1]}-width`,b,h)+`min-${a}: 0`}}function zt(t,{delay:r=0,duration:e=400,easing:n=J,start:o=0,opacity:s=0}={}){const i=getComputedStyle(t),a=+i.opacity,c=i.transform==="none"?"":i.transform,u=1-o,f=a*(1-s);return{delay:r,duration:e,easing:n,css:(l,d)=>`
|
|
4
4
|
transform: ${c} scale(${1-u*d});
|